Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/@react-spectrum/ai/exports/loader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../src/loader/data';
3 changes: 2 additions & 1 deletion packages/@react-spectrum/ai/intl/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"chat.newMessage": "New message",
"messagefeedback.thumbDown": "Bad response",
"messagefeedback.thumbUp": "Good response",
"responsestatus.loading": "Loading"
"responsestatus.loading": "Loading",
"promptfield.placeholder": "Ready to get started? Ask a question, share an idea, or add a task."
}
43 changes: 4 additions & 39 deletions packages/@react-spectrum/ai/src/HorizontalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,46 +115,11 @@ let card = style({
flexDirection: 'row',
position: 'relative',
borderRadius,
'--s2-container-bg': {
type: 'backgroundColor',
value: {
variant: {
primary: 'elevated',
secondary: 'layer-1',
tertiary: 'layer-2'
},
isBasic: {
variant: {
primary: 'layer-2',
secondary: 'layer-1',
tertiary: 'layer-2',
quiet: 'layer-2'
}
},
forcedColors: 'ButtonFace'
}
},
backgroundColor: '--s2-container-bg',
// TODO: No box shadow for basic, secondary, dark
// also none for basic tertiary
boxShadow: {
default: 'emphasized',
isHovered: 'elevated',
isFocusVisible: 'elevated',
isSelected: 'elevated',
forcedColors: '[0 0 0 1px var(--hcm-buttonborder, ButtonBorder)]',
variant: {
tertiary: {
// Render border with box-shadow to avoid affecting layout.
default: `[0 0 0 2px ${color('gray-100')}]`,
isHovered: `[0 0 0 2px ${color('gray-200')}]`,
isFocusVisible: `[0 0 0 2px ${color('gray-200')}]`,
isSelected: 'none',
forcedColors: '[0 0 0 2px var(--hcm-buttonborder, ButtonBorder)]'
},
quiet: 'none'
}
backgroundColor: {
default: lightDark('transparent-white-300', 'transparent-black-300'),
forcedColors: 'ButtonFace'
},
boxShadow: `[inset 0 0 0 1px light-dark(${color('transparent-black-300')}, ${color('transparent-white-300')})]`,
forcedColorAdjust: 'none',
transition: 'default',
fontFamily: 'sans',
Expand Down
Loading
Loading