@beydesign/storybook 0.1.21 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/App.js +9 -9
  2. package/dist/stories/Agent/AgentCard.js +9 -9
  3. package/dist/stories/Agent/AgentCardSkeleton.js +1 -1
  4. package/dist/stories/Agent/CreateNewCard.js +4 -4
  5. package/dist/stories/Buttons/MainButton.js +51 -51
  6. package/dist/stories/Buttons/ToggleButtonGroup.js +4 -4
  7. package/dist/stories/Credits/CreditsCard.js +4 -4
  8. package/dist/stories/Credits/CreditsCardSkeleton.js +2 -2
  9. package/dist/stories/EntityCard/EntityCard.js +3 -3
  10. package/dist/stories/EntityCard/EntityCardSkeleton.js +1 -1
  11. package/dist/stories/Form/AutoComplete.js +10 -10
  12. package/dist/stories/Form/Checkbox.js +7 -7
  13. package/dist/stories/Form/Dropdown.js +16 -16
  14. package/dist/stories/Form/FileUpload/FileUpload.js +15 -15
  15. package/dist/stories/Form/FileUpload/FileUploading.js +8 -8
  16. package/dist/stories/Form/FileUpload/UploadedFile.js +2 -2
  17. package/dist/stories/Form/TextArea.js +7 -7
  18. package/dist/stories/Form/TextInput.js +10 -10
  19. package/dist/stories/Form/Toggle.js +5 -5
  20. package/dist/stories/Form/Toggle.stories.js +1 -1
  21. package/dist/stories/Foundations/Colors.js +69 -71
  22. package/dist/stories/Navigation/ComplexHeader.js +1 -1
  23. package/dist/stories/Navigation/Header.js +1 -1
  24. package/dist/stories/Navigation/NavItem.js +9 -9
  25. package/dist/stories/Navigation/NavItem.stories.js +2 -2
  26. package/dist/stories/Navigation/Sidebar.js +7 -8
  27. package/dist/stories/Navigation/Sidebar.stories.js +1 -1
  28. package/dist/stories/PlanCard/PlanCard.js +4 -4
  29. package/dist/stories/PlanCard/PlanCardSkeleton.js +1 -1
  30. package/dist/stories/StripeProduct/StripeProduct.js +5 -7
  31. package/dist/stories/StripeProduct/StripeProductCardSkeleton.js +1 -1
  32. package/dist/stories/Typography/Typography.js +1 -1
  33. package/dist/stories/UI/Avatar.js +6 -6
  34. package/dist/stories/UI/Badge.js +4 -4
  35. package/dist/stories/UI/CheckIcon.js +5 -5
  36. package/dist/stories/UI/CheckIcon.stories.js +1 -1
  37. package/dist/stories/UI/FeatureBanner.js +2 -2
  38. package/dist/stories/UI/HintBubble.js +3 -3
  39. package/dist/stories/UI/Logo.js +1 -1
  40. package/dist/stories/UI/Logo.stories.js +1 -1
  41. package/dist/stories/UI/Menu.js +10 -3
  42. package/dist/stories/UI/ProgressIndicator.js +1 -1
  43. package/dist/stories/UI/PromoBanner.js +6 -3
  44. package/dist/stories/UI/SkeletonLoader.js +1 -1
  45. package/dist/stories/UI/Stepper.js +12 -12
  46. package/package.json +2 -2
@@ -112,14 +112,14 @@ export const Dropdown = ({ disabled = false, placeholder = 'Select an option', l
112
112
  return Array.isArray(props.value) && props.value.includes(option);
113
113
  };
114
114
  return (_jsx(ClickAwayListener, { onClickAway: () => setOpen(false), children: _jsxs(Box, { display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', position: 'relative', width: "100%", minWidth: '300px', children: [label && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, textStyle: { textAlign: 'left' }, required: required, children: label })), _jsxs(Box, { ref: anchorRef, display: 'flex', flexDirection: 'row', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', alignItems: 'center', justifyContent: 'space-between', border: `1px solid ${open
115
- ? 'var(--colors-light-border-border-component-active)'
116
- : 'var(--colors-light-border-border-component)'}`, borderRadius: '4px', bgcolor: disabled
117
- ? 'var(--primitives-desktop-primary-gray-25)'
118
- : 'var(--primitives-desktop-primary-white-100)', position: 'relative', onClick: () => !disabled && setOpen((prev) => !prev), onKeyDown: handleKeyDown, tabIndex: disabled ? -1 : 0, "aria-haspopup": "listbox", "aria-expanded": open, "aria-disabled": disabled, role: "combobox", children: [_jsx(Box, { display: "flex", alignItems: "center", flexShrink: 0, children: showLeadingIcon &&
115
+ ? 'var(--color-border-border-component-active)'
116
+ : 'var(--color-border-border-component)'}`, borderRadius: '4px', bgcolor: disabled
117
+ ? 'var(--color-background-bg-component-disabled)'
118
+ : 'var(--color-background-bg-component)', position: 'relative', onClick: () => !disabled && setOpen((prev) => !prev), onKeyDown: handleKeyDown, tabIndex: disabled ? -1 : 0, "aria-haspopup": "listbox", "aria-expanded": open, "aria-disabled": disabled, role: "combobox", children: [_jsx(Box, { display: "flex", alignItems: "center", flexShrink: 0, children: showLeadingIcon &&
119
119
  getIconComponent(leadingIcon, {
120
120
  width: '24px',
121
121
  height: '24px',
122
- color: 'var(--colors-light-foreground-fg-secondary)',
122
+ color: 'var(--color-foreground-fg-secondary)',
123
123
  'aria-hidden': 'true',
124
124
  }) }), _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, textStyle: {
125
125
  flexGrow: 1,
@@ -130,14 +130,14 @@ export const Dropdown = ({ disabled = false, placeholder = 'Select an option', l
130
130
  whiteSpace: 'nowrap',
131
131
  maxWidth: '100%',
132
132
  }, color: value
133
- ? 'var(--colors-light-text-text-title)'
134
- : 'var(--colors-light-text-text-placeholder)', children: value || placeholder }), _jsxs(Box, { display: "flex", alignItems: "center", gap: "var(--spacing-tokens-size-in-px-spacing-spacing-sm)", flexShrink: 0, children: [!disabled &&
133
+ ? 'var(--color-text-text-title)'
134
+ : 'var(--color-text-text-placeholder)', children: value || placeholder }), _jsxs(Box, { display: "flex", alignItems: "center", gap: "var(--spacing-tokens-size-in-px-spacing-spacing-sm)", flexShrink: 0, children: [!disabled &&
135
135
  showClear &&
136
136
  value &&
137
137
  getIconComponent('X', {
138
138
  width: '24px',
139
139
  height: '24px',
140
- color: 'var(--colors-light-foreground-fg-secondary)',
140
+ color: 'var(--color-foreground-fg-secondary)',
141
141
  onClick: handleClear,
142
142
  'aria-label': 'Clear selection',
143
143
  role: 'button',
@@ -152,23 +152,23 @@ export const Dropdown = ({ disabled = false, placeholder = 'Select an option', l
152
152
  getIconComponent(open ? 'CaretUp' : 'CaretDown', {
153
153
  width: '24px',
154
154
  height: '24px',
155
- color: 'var(--colors-light-foreground-fg-secondary)',
155
+ color: 'var(--color-foreground-fg-secondary)',
156
156
  'aria-hidden': 'true',
157
- })] })] }), _jsx(Popper, { open: open, anchorEl: anchorRef.current, placement: "bottom-start", style: { width: anchorRef.current?.offsetWidth, zIndex: 1300 }, children: _jsx(Box, { ref: optionsContainerRef, bgcolor: 'var(--primitives-desktop-primary-white-100)', borderRadius: '4px', width: '100%', maxHeight: '200px', overflow: 'auto', boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)', mt: '4px', role: "listbox", sx: {
158
- border: '1px solid var(--colors-light-border-border-component)',
157
+ })] })] }), _jsx(Popper, { open: open, anchorEl: anchorRef.current, placement: "bottom-start", style: { width: anchorRef.current?.offsetWidth, zIndex: 1300 }, children: _jsx(Box, { ref: optionsContainerRef, bgcolor: 'var(--color-background-bg-component)', borderRadius: '4px', width: '100%', maxHeight: '200px', overflow: 'auto', boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)', mt: '4px', role: "listbox", sx: {
158
+ border: '1px solid var(--color-border-border-component)',
159
159
  }, children: options.length === 0 ? (_jsx(Box, { display: 'flex', flexDirection: 'row', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', paddingY: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', children: _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, children: "No options found" }) })) : (options.map((option, index) => (_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', onClick: () => handleOptionSelect(option), onMouseEnter: () => setHighlightedIndex(index), sx: {
160
160
  cursor: 'pointer',
161
161
  backgroundColor: highlightedIndex === index
162
- ? 'var(--primitives-desktop-primary-gray-25)'
162
+ ? 'var(--color-background-bg-page)'
163
163
  : isOptionSelected(option)
164
- ? 'var(--primitives-desktop-primary-gray-10)'
164
+ ? 'var(--color-background-bg-element)'
165
165
  : 'transparent',
166
166
  '&:hover': {
167
- backgroundColor: 'var(--colors-light-background-bg-card-highlight)',
167
+ backgroundColor: 'var(--color-background-bg-card-highlight)',
168
168
  },
169
169
  width: '100%',
170
170
  boxSizing: 'border-box',
171
- }, role: "option", "aria-selected": isOptionSelected(option), children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', width: "calc(100% - 24px)", overflow: "hidden", children: [showCheckboxes && (_jsx(Box, { flexShrink: 0, children: _jsx(Checkbox, { checked: isOptionSelected(option), onChange: () => handleOptionSelect(option), style: { margin: 0, padding: 0 } }) })), _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: "var(--colors-light-text-text-title)", textStyle: {
171
+ }, role: "option", "aria-selected": isOptionSelected(option), children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', width: "calc(100% - 24px)", overflow: "hidden", children: [showCheckboxes && (_jsx(Box, { flexShrink: 0, children: _jsx(Checkbox, { checked: isOptionSelected(option), onChange: () => handleOptionSelect(option), style: { margin: 0, padding: 0 } }) })), _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: "var(--color-text-text-title)", textStyle: {
172
172
  overflow: 'hidden',
173
173
  textOverflow: 'ellipsis',
174
174
  whiteSpace: 'nowrap',
@@ -178,6 +178,6 @@ export const Dropdown = ({ disabled = false, placeholder = 'Select an option', l
178
178
  getIconComponent('Check', {
179
179
  width: '16px',
180
180
  height: '16px',
181
- color: 'var(--colors-light-foreground-fg-brand-primary)',
181
+ color: 'var(--color-foreground-fg-brand-primary)',
182
182
  }) })] }, option)))) }) })] }) }));
183
183
  };
@@ -107,22 +107,22 @@ export const FileUpload = ({ disabled, sx, acceptedFileTypes = '.pdf,.doc,.docx,
107
107
  height: '20px',
108
108
  width: '20px',
109
109
  color: disabled
110
- ? 'var(--colors-light-text-text-subtle)'
111
- : 'var(--colors-light-text-text-paragraph)',
110
+ ? 'var(--color-text-text-subtle)'
111
+ : 'var(--color-text-text-paragraph)',
112
112
  };
113
- return (_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', border: `1.5px dashed ${isDragging ? 'var(--colors-light-background-bg-brand-hover)' : 'var(--colors-light-background-bg-brand)'}`, bgcolor: disabled
114
- ? 'var(--colors-light-background-bg-component-contrast-subtle)'
113
+ return (_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', border: `1.5px dashed ${isDragging ? 'var(--color-background-bg-brand-primary-hover)' : 'var(--color-background-bg-brand-primary)'}`, bgcolor: disabled
114
+ ? 'var(--color-background-bg-component-contrast-subtle)'
115
115
  : isDragging
116
- ? 'var(--colors-light-background-bg-element-hover)'
117
- : 'var(--colors-light-background-bg-element)', sx: { cursor: disabled ? 'not-allowed' : 'pointer', ...sx }, onClick: handleClick, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [_jsx("input", { type: "file", ref: fileInputRef, style: { display: 'none' }, accept: acceptedFileTypes, onChange: handleInputChange, disabled: disabled }), _jsx(Box, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', border: `2px solid ${disabled
118
- ? 'var(--colors-light-border-border-component)'
116
+ ? 'var(--color-background-bg-component-hover)'
117
+ : 'var(--color-background-bg-element)', sx: { cursor: disabled ? 'not-allowed' : 'pointer', ...sx }, onClick: handleClick, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [_jsx("input", { type: "file", ref: fileInputRef, style: { display: 'none' }, accept: acceptedFileTypes, onChange: handleInputChange, disabled: disabled }), _jsx(Box, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', border: `2px solid ${disabled
118
+ ? 'var(--color-border-border-component)'
119
119
  : isDragging
120
- ? 'var(--colors-light-background-bg-brand-hover)'
121
- : 'var(--colors-light-background-bg-brand)'}`, borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', bgcolor: 'var(--primitives-desktop-primary-white-100)', children: _jsx(UploadSimple, { height: '20px', width: '20px', weight: "bold", color: disabled
122
- ? 'var(--colors-light-foreground-fg-disabled)'
123
- : 'var(--colors-light-foreground-fg-brand-primary)' }) }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.SemiBold, color: disabled
124
- ? 'var(--colors-light-text-text-disabled)'
125
- : 'var(--colors-light-text-text-accent)', textStyle: { cursor: disabled ? 'not-allowed' : 'pointer' }, children: "Click to upload" }), _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: disabled
126
- ? 'var(--colors-light-text-text-subtle)'
127
- : 'var(--colors-light-text-text-paragraph)', children: "or drag and drop" }), _jsxs(Box, { display: 'flex', flexDirection: 'row', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [fileIcons.map((Icon, index) => (_jsx(Icon, { ...iconProps }, index))), fileIcons.length === 0 && _jsx(FileCode, { ...iconProps })] })] })] }));
120
+ ? 'var(--color-background-bg-brand-primary-hover)'
121
+ : 'var(--color-background-bg-brand-primary)'}`, borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', bgcolor: 'var(--color-background-bg-component)', children: _jsx(UploadSimple, { height: '20px', width: '20px', weight: "bold", color: disabled
122
+ ? 'var(--color-foreground-fg-disabled)'
123
+ : 'var(--color-foreground-fg-brand-primary)' }) }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.SemiBold, color: disabled
124
+ ? 'var(--color-text-text-disabled)'
125
+ : 'var(--color-text-text-accent)', textStyle: { cursor: disabled ? 'not-allowed' : 'pointer' }, children: "Click to upload" }), _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: disabled
126
+ ? 'var(--color-text-text-subtle)'
127
+ : 'var(--color-text-text-paragraph)', children: "or drag and drop" }), _jsxs(Box, { display: 'flex', flexDirection: 'row', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [fileIcons.map((Icon, index) => (_jsx(Icon, { ...iconProps }, index))), fileIcons.length === 0 && _jsx(FileCode, { ...iconProps })] })] })] }));
128
128
  };
@@ -23,27 +23,27 @@ export const FileUploading = ({ uploadProgress, uploadingStatus, progressMode =
23
23
  return 'FileTxt';
24
24
  return 'File';
25
25
  };
26
- return (_jsxs(Box, { display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-xl)', paddingY: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', border: `1px solid ${isError ? 'var(--colors-light-border-border-error)' : 'var(--colors-light-border-border-component)'}`, bgcolor: 'var(--colors-light-background-bg-component-contrast-subtle)', minWidth: '300px', sx: { ...sx }, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [getIconComponent(getFileIcon(), {
26
+ return (_jsxs(Box, { display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-xl)', paddingY: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', border: `1px solid ${isError ? 'var(--color-border-border-error)' : 'var(--color-border-border-component)'}`, bgcolor: 'var(--color-background-bg-component-contrast-subtle)', minWidth: '300px', sx: { ...sx }, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [getIconComponent(getFileIcon(), {
27
27
  width: '24px',
28
28
  height: '24px',
29
29
  color: isError
30
- ? 'var(--colors-light-text-text-error)'
31
- : 'var(--colors-light-foreground-fg-primary)',
30
+ ? 'var(--color-text-text-error)'
31
+ : 'var(--color-foreground-fg-primary)',
32
32
  }), _jsx(Typography, { size: TypographySize.TextM, weight: TypographyWeight.Regular, color: isError
33
- ? 'var(--colors-light-text-text-error)'
34
- : 'var(--primitives-desktop-primary-gray-950)', children: fileName })] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', paddingY: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [showCancel &&
33
+ ? 'var(--color-text-text-error)'
34
+ : 'var(--color-text-text-title)', children: fileName })] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', paddingY: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [showCancel &&
35
35
  onCancel &&
36
36
  isUploading &&
37
37
  getIconComponent('X', {
38
38
  width: '24px',
39
39
  height: '24px',
40
- color: 'var(--colors-light-text-text-title)',
40
+ color: 'var(--color-text-text-title)',
41
41
  onClick: onCancel,
42
42
  style: { cursor: 'pointer' },
43
43
  }), isSuccess &&
44
44
  getIconComponent('Check', {
45
45
  width: '24px',
46
46
  height: '24px',
47
- color: 'var(--colors-light-foreground-fg-success)',
48
- })] })] }), _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', width: '100%', children: [isUploading && isAnimationProgress && (_jsx(Player, { autoplay: true, loop: true, src: loadingAnimation, style: { height: '100%', width: '100%' } })), isUploading && isPercentageProgress && (_jsx(ProgressIndicator, { currentValue: uploadProgress || 0, maxValue: 100, mode: ProgressIndicatorMode.Percentage, style: { width: '100%', height: '100%' } })), isError && (_jsxs(Fragment, { children: [_jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-error)', children: "Upload failed, please try again." }), showRetry && onRetry && (_jsx(Box, { onClick: onRetry, style: { cursor: 'pointer' }, children: _jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.SemiBold, color: 'var(--colors-light-text-text-error)', children: "Try again" }) }))] }))] })] }));
47
+ color: 'var(--color-foreground-fg-success)',
48
+ })] })] }), _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', width: '100%', children: [isUploading && isAnimationProgress && (_jsx(Player, { autoplay: true, loop: true, src: loadingAnimation, style: { height: '100%', width: '100%' } })), isUploading && isPercentageProgress && (_jsx(ProgressIndicator, { currentValue: uploadProgress || 0, maxValue: 100, mode: ProgressIndicatorMode.Percentage, style: { width: '100%', height: '100%' } })), isError && (_jsxs(Fragment, { children: [_jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-error)', children: "Upload failed, please try again." }), showRetry && onRetry && (_jsx(Box, { onClick: onRetry, style: { cursor: 'pointer' }, children: _jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.SemiBold, color: 'var(--color-text-text-error)', children: "Try again" }) }))] }))] })] }));
49
49
  };
@@ -7,6 +7,6 @@ import { ButtonDisplayMode, ButtonHierarchy, ButtonSize, MainButton, } from '../
7
7
  export const UploadedFile = ({ type = FileType.Default, showDelete = true, onDelete, showDownload = true, onDownload, fileName, sx, }) => {
8
8
  const isSampleFile = type === FileType.Sample;
9
9
  return (_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', paddingLeft: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', bgcolor: isSampleFile
10
- ? 'var(--colors-light-background-bg-card-highlight)'
11
- : 'var(--colors-light-background-bg-component-contrast-subtle)', minWidth: '240px', minHeight: '36px', sx: { ...sx }, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [_jsx(File, { width: '24px', height: '24px', color: 'var(--colors-light-foreground-fg-primary)' }), _jsx(Typography, { size: TypographySize.TextM, weight: TypographyWeight.Medium, color: 'var(--colors-light-foreground-fg-primary)', children: fileName })] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [showDownload && onDownload && (_jsx(MainButton, { hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, displayIconMode: ButtonDisplayMode.Only, displayIcon: "DownloadSimple", onClick: onDownload })), showDelete && onDelete && (_jsx(MainButton, { hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, displayIconMode: ButtonDisplayMode.Only, displayIcon: "X", onClick: onDelete }))] })] }));
10
+ ? 'var(--color-background-bg-card-highlight)'
11
+ : 'var(--color-background-bg-component-contrast-subtle)', minWidth: '240px', minHeight: '36px', sx: { ...sx }, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [_jsx(File, { width: '24px', height: '24px', color: 'var(--color-foreground-fg-primary)' }), _jsx(Typography, { size: TypographySize.TextM, weight: TypographyWeight.Medium, color: 'var(--color-foreground-fg-primary)', children: fileName })] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [showDownload && onDownload && (_jsx(MainButton, { hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, displayIconMode: ButtonDisplayMode.Only, displayIcon: "DownloadSimple", onClick: onDownload })), showDelete && onDelete && (_jsx(MainButton, { hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, displayIconMode: ButtonDisplayMode.Only, displayIcon: "X", onClick: onDelete }))] })] }));
12
12
  };
@@ -5,19 +5,19 @@ import { Typography, TypographySize, TypographyWeight } from '../Typography';
5
5
  import { HintBubble, HintBubbleSize } from '../UI';
6
6
  export const TextArea = ({ label, value, onChange, placeholder, hintText, errorText, disabled, allowMaxLength = false, maxLength = 256, showMaxLengthIndicator = false, numberOfRows = 5, style, hintBubbleProps, hintBubbleText, required, labelTrailingElement, labelContainerStyle, }) => {
7
7
  const [focused, setFocused] = useState(false);
8
- return (_jsx(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: style, children: _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', minWidth: '260px', children: [label && (_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: labelContainerStyle, children: [_jsx(Typography, { size: TypographySize.HeadingXS, weight: TypographyWeight.SemiBold, required: required, children: label }), labelTrailingElement] })), hintBubbleText && (_jsx(HintBubble, { text: hintBubbleText, size: HintBubbleSize.sm, ...hintBubbleProps })), _jsx(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', bgcolor: 'var(--colors-light-background-bg-component)', border: `1px solid ${errorText
9
- ? 'var(--colors-light-border-border-error)'
8
+ return (_jsx(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: style, children: _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', minWidth: '260px', children: [label && (_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: labelContainerStyle, children: [_jsx(Typography, { size: TypographySize.HeadingXS, weight: TypographyWeight.SemiBold, required: required, children: label }), labelTrailingElement] })), hintBubbleText && (_jsx(HintBubble, { text: hintBubbleText, size: HintBubbleSize.sm, ...hintBubbleProps })), _jsx(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', bgcolor: 'var(--color-background-bg-component)', border: `1px solid ${errorText
9
+ ? 'var(--color-border-border-error)'
10
10
  : focused
11
- ? 'var(--colors-light-border-border-component-active)'
12
- : 'var(--colors-light-border-border-component)'}`, overflow: 'hidden', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', width: '100%', children: _jsx("textarea", { value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, disabled: disabled, rows: numberOfRows, style: {
11
+ ? 'var(--color-border-border-component-active)'
12
+ : 'var(--color-border-border-component)'}`, overflow: 'hidden', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', width: '100%', children: _jsx("textarea", { value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, disabled: disabled, rows: numberOfRows, style: {
13
13
  border: 'none',
14
14
  outline: 'none',
15
15
  width: '100%',
16
16
  height: '100%',
17
17
  color: disabled
18
- ? 'var(--colors-light-text-text-disabled)'
19
- : 'var(--colors-light-text-text-title)',
18
+ ? 'var(--color-text-text-disabled)'
19
+ : 'var(--color-text-text-title)',
20
20
  backgroundColor: 'transparent',
21
21
  resize: 'none',
22
- }, maxLength: allowMaxLength ? maxLength : undefined, onFocus: () => setFocused(true), onBlur: () => setFocused(false), required: required }) }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', children: [errorText ? (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-error)', children: errorText })) : hintText ? (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-subtle)', children: hintText })) : (_jsx(Box, { style: { flex: 1 } })), showMaxLengthIndicator && allowMaxLength && maxLength && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-subtle)', children: `${maxLength - value.length}` }))] })] }) }));
22
+ }, maxLength: allowMaxLength ? maxLength : undefined, onFocus: () => setFocused(true), onBlur: () => setFocused(false), required: required }) }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', children: [errorText ? (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-error)', children: errorText })) : hintText ? (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-subtle)', children: hintText })) : (_jsx(Box, { style: { flex: 1 } })), showMaxLengthIndicator && allowMaxLength && maxLength && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-subtle)', children: `${maxLength - value.length}` }))] })] }) }));
23
23
  };
@@ -22,21 +22,21 @@ export const TextInput = ({ label, value, onChange, placeholder, type = 'text',
22
22
  setShowPassword((prev) => !prev);
23
23
  };
24
24
  const iconColor = disabled
25
- ? 'var(--colors-light-text-text-disabled)'
26
- : 'var(--colors-light-foreground-fg-secondary)';
27
- return (_jsx(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: style, children: _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', minWidth: '260px', children: [label && (_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: labelContainerStyle, children: [_jsx(Typography, { size: TypographySize.HeadingXS, weight: TypographyWeight.SemiBold, required: required, children: label }), labelTrailingElement] })), hintBubbleText && (_jsx(HintBubble, { text: hintBubbleText, size: HintBubbleSize.sm, ...hintBubbleProps })), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', bgcolor: 'var(--colors-light-background-bg-component)', border: errorText
25
+ ? 'var(--color-text-text-disabled)'
26
+ : 'var(--color-foreground-fg-secondary)';
27
+ return (_jsx(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: style, children: _jsxs(Box, { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', minWidth: '260px', children: [label && (_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', sx: labelContainerStyle, children: [_jsx(Typography, { size: TypographySize.HeadingXS, weight: TypographyWeight.SemiBold, required: required, children: label }), labelTrailingElement] })), hintBubbleText && (_jsx(HintBubble, { text: hintBubbleText, size: HintBubbleSize.sm, ...hintBubbleProps })), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', bgcolor: 'var(--color-background-bg-component)', border: errorText
28
28
  ? 'none'
29
- : '1px solid var(--colors-light-border-border-component)', overflow: 'hidden', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', width: '100%', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs) 0 0 var(--spacing-tokens-size-in-px-spacing-spacing-xs)', border: `${errorText
30
- ? '1px solid var(--colors-light-border-border-error)'
29
+ : '1px solid var(--color-border-border-component)', overflow: 'hidden', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs)', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', width: '100%', borderRadius: 'var(--spacing-tokens-size-in-px-spacing-spacing-xs) 0 0 var(--spacing-tokens-size-in-px-spacing-spacing-xs)', border: `${errorText
30
+ ? '1px solid var(--color-border-border-error)'
31
31
  : focused
32
- ? '1px solid var(--colors-light-border-border-component-active)'
32
+ ? '1px solid var(--color-border-border-component-active)'
33
33
  : 'transparent'}`, children: [_jsx("input", { type: inputType, value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, disabled: disabled, style: {
34
34
  border: 'none',
35
35
  outline: 'none',
36
36
  width: '100%',
37
37
  color: disabled
38
- ? 'var(--colors-light-text-text-disabled)'
39
- : 'var(--colors-light-text-text-title)',
38
+ ? 'var(--color-text-text-disabled)'
39
+ : 'var(--color-text-text-title)',
40
40
  backgroundColor: 'transparent',
41
41
  }, onFocus: () => setFocused(true), onBlur: () => setFocused(false), required: required }), enablePasswordToggle && (_jsx(Box, { component: 'button', type: 'button', onClick: togglePasswordVisibility, disabled: disabled, "aria-label": showPassword ? 'Hide password' : 'Show password', "aria-pressed": showPassword, display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0, sx: {
42
42
  padding: 0,
@@ -45,7 +45,7 @@ export const TextInput = ({ label, value, onChange, placeholder, type = 'text',
45
45
  backgroundColor: 'transparent',
46
46
  cursor: disabled ? 'not-allowed' : 'pointer',
47
47
  '&:focus-visible': {
48
- outline: '2px solid var(--colors-light-border-border-component-active)',
48
+ outline: '2px solid var(--color-border-border-component-active)',
49
49
  outlineOffset: '2px',
50
50
  },
51
51
  }, children: getIconComponent(showPassword ? 'EyeSlash' : 'Eye', {
@@ -53,5 +53,5 @@ export const TextInput = ({ label, value, onChange, placeholder, type = 'text',
53
53
  height: '20px',
54
54
  color: iconColor,
55
55
  'aria-hidden': 'true',
56
- }) }))] }), trailingText && (_jsx(Box, { display: 'flex', alignItems: 'center', height: '100%', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', borderLeft: '1px solid var(--colors-light-border-border-component)', children: _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-paragraph)', children: trailingText }) }))] }), errorText && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-error)', children: errorText })), hintText && !errorText && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--colors-light-text-text-subtle)', children: hintText }))] }) }));
56
+ }) }))] }), trailingText && (_jsx(Box, { display: 'flex', alignItems: 'center', height: '100%', padding: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', borderLeft: '1px solid var(--color-border-border-component)', children: _jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-paragraph)', children: trailingText }) }))] }), errorText && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-error)', children: errorText })), hintText && !errorText && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Regular, color: 'var(--color-text-text-subtle)', children: hintText }))] }) }));
57
57
  };
@@ -30,7 +30,7 @@ const IOSSwitch = styled((props) => (_jsx(Switch, { focusVisibleClassName: ".Mui
30
30
  color: theme.palette.grey[100],
31
31
  },
32
32
  '&.Mui-disabled + .MuiSwitch-track': {
33
- backgroundColor: 'var(--primitives-desktop-primary-gray-50)',
33
+ backgroundColor: 'var(--color-background-bg-element)',
34
34
  opacity: 0.7,
35
35
  },
36
36
  },
@@ -38,20 +38,20 @@ const IOSSwitch = styled((props) => (_jsx(Switch, { focusVisibleClassName: ".Mui
38
38
  boxSizing: 'border-box',
39
39
  width: 16,
40
40
  height: 16,
41
- backgroundColor: 'var(--colors-light-foreground-fg-white)',
41
+ backgroundColor: 'var(--color-foreground-fg-white)',
42
42
  },
43
43
  '& .MuiSwitch-track': {
44
44
  borderRadius: 26 / 2,
45
- backgroundColor: 'var(--primitives-desktop-primary-gray-100)',
45
+ backgroundColor: 'var(--color-background-bg-element)',
46
46
  opacity: 1,
47
47
  transition: theme.transitions.create(['background-color'], {
48
48
  duration: 500,
49
49
  }),
50
50
  '&:hover': {
51
- backgroundColor: 'var(--primitives-desktop-primary-gray-200)',
51
+ backgroundColor: 'var(--color-border-border-component)',
52
52
  },
53
53
  },
54
54
  }));
55
- export const Toggle = ({ checked, onChange, text = 'Click me', title, disabled = false, togglePosition = TogglePosition.Left, style, textColor = 'var(--colors-light-text-text-title)', titleColor = '#475467', }) => {
55
+ export const Toggle = ({ checked, onChange, text = 'Click me', title, disabled = false, togglePosition = TogglePosition.Left, style, textColor = 'var(--color-text-text-title)', titleColor = '#475467', }) => {
56
56
  return (_jsxs(Box, { display: "flex", alignItems: "flex-start", flexDirection: togglePosition === TogglePosition.Left ? 'row' : 'row-reverse', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', sx: style, children: [_jsx(IOSSwitch, { checked: checked, onChange: (e) => onChange(e.target.checked), disabled: disabled }), text && (_jsxs(Box, { display: "flex", flexDirection: "column", children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Medium, color: textColor, children: text }), title && (_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Medium, color: titleColor, children: title }))] }))] }));
57
57
  };
@@ -73,7 +73,7 @@ export const Default = {
73
73
  title: 'This is a toggle',
74
74
  disabled: false,
75
75
  togglePosition: TogglePosition.Right,
76
- textColor: 'var(--colors-light-text-text-title)',
76
+ textColor: 'var(--color-text-text-title)',
77
77
  titleColor: '#475467',
78
78
  },
79
79
  };
@@ -34,15 +34,15 @@ const ColorSwatch = ({ name, value }) => {
34
34
  return (_jsxs("div", { className: styles.swatch, children: [_jsx("div", { className: styles.color, style: {
35
35
  background: isGradient ? displayValue : value,
36
36
  backgroundSize: 'cover',
37
- } }), _jsxs("div", { className: styles.details, children: [_jsxs("div", { className: styles.name, style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Medium, color: "var(--colors-light-text-text-label)", children: name }), _jsx(Copy, { size: 16, onClick: handleCopyName, style: {
37
+ } }), _jsxs("div", { className: styles.details, children: [_jsxs("div", { className: styles.name, style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.Medium, color: "var(--color-text-text-label)", children: name }), _jsx(Copy, { size: 16, onClick: handleCopyName, style: {
38
38
  cursor: 'pointer',
39
- color: 'var(--colors-light-text-text-subtle)',
40
- } }), copiedName && (_jsx("div", { className: `${styles.copyIndicator} ${styles.visible}`, children: "Copied!" }))] }), _jsxs("div", { className: styles.value, style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.Regular, color: "var(--colors-light-text-text-subtle)", children: displayValue }), _jsx(Copy, { size: 16, onClick: handleCopyValue, style: {
39
+ color: 'var(--color-text-text-subtle)',
40
+ } }), copiedName && (_jsx("div", { className: `${styles.copyIndicator} ${styles.visible}`, children: "Copied!" }))] }), _jsxs("div", { className: styles.value, style: { display: 'flex', alignItems: 'center', gap: '8px' }, children: [_jsx(Typography, { size: TypographySize.TextXS, weight: TypographyWeight.Regular, color: "var(--color-text-text-subtle)", children: displayValue }), _jsx(Copy, { size: 16, onClick: handleCopyValue, style: {
41
41
  cursor: 'pointer',
42
- color: 'var(--colors-light-text-text-subtle)',
42
+ color: 'var(--color-text-text-subtle)',
43
43
  } }), copiedValue && (_jsx("div", { className: `${styles.copyIndicator} ${styles.visible}`, children: "Copied!" }))] })] })] }));
44
44
  };
45
- const ColorGroup = ({ title, colors }) => (_jsxs("div", { className: styles.group, children: [_jsx(Typography, { size: TypographySize.TextM, weight: TypographyWeight.Medium, color: "var(--colors-light-text-text-label)", children: title }), _jsx("div", { className: styles.swatchGrid, children: Object.entries(colors).map(([name, value]) => (_jsx(ColorSwatch, { name: name, value: value }, name))) })] }));
45
+ const ColorGroup = ({ title, colors }) => (_jsxs("div", { className: styles.group, children: [_jsx(Typography, { size: TypographySize.TextM, weight: TypographyWeight.Medium, color: "var(--color-text-text-label)", children: title }), _jsx("div", { className: styles.swatchGrid, children: Object.entries(colors).map(([name, value]) => (_jsx(ColorSwatch, { name: name, value: value }, name))) })] }));
46
46
  export const Colors = () => {
47
47
  // Group colors by their categories
48
48
  const primitives = {
@@ -184,77 +184,75 @@ export const Colors = () => {
184
184
  };
185
185
  const semanticColors = {
186
186
  Background: {
187
- '--colors-light-background-bg-brand': 'var(--colors-light-background-bg-brand)',
188
- '--colors-light-background-bg-brand-hover': 'var(--colors-light-background-bg-brand-hover)',
189
- '--colors-light-background-bg-brand-lemon': 'var(--colors-light-background-bg-brand-lemon)',
190
- '--colors-light-background-bg-brand-lemon-hover': 'var(--colors-light-background-bg-brand-lemon-hover)',
191
- '--colors-light-background-bg-error': 'var(--colors-light-background-bg-error)',
192
- '--colors-light-background-bg-error-solid': 'var(--colors-light-background-bg-error-solid)',
193
- '--colors-light-background-bg-error-subtle': 'var(--colors-light-background-bg-error-subtle)',
194
- '--colors-light-background-bg-success': 'var(--colors-light-background-bg-success)',
195
- '--colors-light-background-bg-white': 'var(--colors-light-background-bg-white)',
196
- '--colors-light-background-bg-page': 'var(--colors-light-background-bg-page)',
197
- '--colors-light-background-bg-page-contrast': 'var(--colors-light-background-bg-page-contrast)',
198
- '--colors-light-background-bg-element': 'var(--colors-light-background-bg-element)',
199
- '--colors-light-background-bg-component': 'var(--colors-light-background-bg-component)',
200
- '--colors-light-background-bg-component-hover': 'var(--colors-light-background-bg-component-hover)',
201
- '--colors-light-background-bg-component-disabled': 'var(--colors-light-background-bg-component-disabled)',
202
- '--colors-light-background-bg-component-dark': 'var(--colors-light-background-bg-component-dark)',
203
- '--colors-light-background-bg-card-highlight': 'var(--colors-light-background-bg-card-highlight)',
204
- '--colors-light-background-bg-card-highlight-hover': 'var(--colors-light-background-bg-card-highlight-hover)',
205
- '--colors-light-background-bg-component-contrast-subtle': 'var(--colors-light-background-bg-component-contrast-subtle)',
206
- '--colors-light-background-bg-component-contrast-subtle-hover': 'var(--colors-light-background-bg-component-contrast-subtle-hover)',
207
- '--colors-light-background-bg-overlay-1': 'var(--colors-light-background-bg-overlay-1)',
208
- '--colors-light-background-bg-badge-accent1': 'var(--colors-light-background-bg-badge-accent1)',
209
- '--colors-light-background-bg-badge-accent2': 'var(--colors-light-background-bg-badge-accent2)',
210
- '--colors-light-background-bg-badge-accent3': 'var(--colors-light-background-bg-badge-accent3)',
211
- '--colors-light-background-bg-badge-accent4': 'var(--colors-light-background-bg-badge-accent4)',
212
- '--colors-light-background-bg-badge-accent5': 'var(--colors-light-background-bg-badge-accent5)',
213
- '--colors-light-background-bg-button-disabled': 'var(--colors-light-background-bg-button-disabled)',
214
- '--colors-light-background-bg-overlay-2': 'var(--colors-light-background-bg-overlay-2)',
187
+ '--color-background-bg-brand-primary': 'var(--color-background-bg-brand-primary)',
188
+ '--color-background-bg-brand-primary-hover': 'var(--color-background-bg-brand-primary-hover)',
189
+ '--color-background-bg-brand-secondary-hover': 'var(--color-background-bg-brand-secondary-hover)',
190
+ '--color-background-bg-error': 'var(--color-background-bg-error)',
191
+ '--color-background-bg-error-solid': 'var(--color-background-bg-error-solid)',
192
+ '--color-background-bg-error-subtle': 'var(--color-background-bg-error-subtle)',
193
+ '--color-background-bg-success': 'var(--color-background-bg-success)',
194
+ '--color-background-bg-white': 'var(--color-background-bg-white)',
195
+ '--color-background-bg-page': 'var(--color-background-bg-page)',
196
+ '--color-background-bg-page-contrast': 'var(--color-background-bg-page-contrast)',
197
+ '--color-background-bg-element': 'var(--color-background-bg-element)',
198
+ '--color-background-bg-component': 'var(--color-background-bg-component)',
199
+ '--color-background-bg-component-hover': 'var(--color-background-bg-component-hover)',
200
+ '--color-background-bg-component-disabled': 'var(--color-background-bg-component-disabled)',
201
+ '--color-background-bg-component-dark': 'var(--color-background-bg-component-dark)',
202
+ '--color-background-bg-card-highlight': 'var(--color-background-bg-card-highlight)',
203
+ '--color-background-bg-card-highlight-hover': 'var(--color-background-bg-card-highlight-hover)',
204
+ '--color-background-bg-component-contrast-subtle': 'var(--color-background-bg-component-contrast-subtle)',
205
+ '--color-background-bg-component-contrast-subtle-hover': 'var(--color-background-bg-component-contrast-subtle-hover)',
206
+ '--color-background-bg-overlay-1': 'var(--color-background-bg-overlay-1)',
207
+ '--color-background-bg-badge-accent-success': 'var(--color-background-bg-badge-accent-success)',
208
+ '--color-background-bg-badge-accent-brand-violet': 'var(--color-background-bg-badge-accent-brand-violet)',
209
+ '--color-background-bg-badge-accent-red': 'var(--color-background-bg-badge-accent-red)',
210
+ '--color-background-bg-badge-accent-gray': 'var(--color-background-bg-badge-accent-gray)',
211
+ '--color-background-bg-badge-accent-yellow': 'var(--color-background-bg-badge-accent-yellow)',
212
+ '--color-background-bg-button-disabled': 'var(--color-background-bg-button-disabled)',
213
+ '--color-background-bg-overlay-2': 'var(--color-background-bg-overlay-2)',
215
214
  },
216
215
  Border: {
217
- '--colors-light-border-border-brand': 'var(--colors-light-border-border-brand)',
218
- '--colors-light-border-border-brand-hover': 'var(--colors-light-border-border-brand-hover)',
219
- '--colors-light-border-border-divider': 'var(--colors-light-border-border-divider)',
220
- '--colors-light-border-border-component': 'var(--colors-light-border-border-component)',
221
- '--colors-light-border-border-component-active': 'var(--colors-light-border-border-component-active)',
222
- '--colors-light-border-border-subtle': 'var(--colors-light-border-border-subtle)',
223
- '--colors-light-border-border-error': 'var(--colors-light-border-border-error)',
224
- '--colors-light-border-border-white': 'var(--colors-light-border-border-white)',
216
+ '--color-border-border-brand': 'var(--color-border-border-brand)',
217
+ '--color-border-border-brand-hover': 'var(--color-border-border-brand-hover)',
218
+ '--color-border-border-divider': 'var(--color-border-border-divider)',
219
+ '--color-border-border-component': 'var(--color-border-border-component)',
220
+ '--color-border-border-component-active': 'var(--color-border-border-component-active)',
221
+ '--color-border-border-subtle': 'var(--color-border-border-subtle)',
222
+ '--color-border-border-error': 'var(--color-border-border-error)',
223
+ '--color-border-border-white': 'var(--color-border-border-white)',
225
224
  },
226
225
  Text: {
227
- '--colors-light-text-text-title': 'var(--colors-light-text-text-title)',
228
- '--colors-light-text-text-label': 'var(--colors-light-text-text-label)',
229
- '--colors-light-text-text-paragraph': 'var(--colors-light-text-text-paragraph)',
230
- '--colors-light-text-text-accent': 'var(--colors-light-text-text-accent)',
231
- '--colors-light-text-text-clicable': 'var(--colors-light-text-text-clicable)',
232
- '--colors-light-text-text-clicable-hover': 'var(--colors-light-text-text-clicable-hover)',
233
- '--colors-light-text-text-subtle': 'var(--colors-light-text-text-subtle)',
234
- '--colors-light-text-text-white': 'var(--colors-light-text-text-white)',
235
- '--colors-light-text-text-inactive': 'var(--colors-light-text-text-inactive)',
236
- '--colors-light-text-text-disabled-white': 'var(--colors-light-text-text-disabled-white)',
237
- '--colors-light-text-text-placeholder': 'var(--colors-light-text-text-placeholder)',
238
- '--colors-light-text-text-error': 'var(--colors-light-text-text-error)',
239
- '--colors-light-text-text-success': 'var(--colors-light-text-text-success)',
240
- '--colors-light-text-text-warning': 'var(--colors-light-text-text-warning)',
241
- '--colors-light-text-text-disabled': 'var(--colors-light-text-text-disabled)',
226
+ '--color-text-text-title': 'var(--color-text-text-title)',
227
+ '--color-text-text-label': 'var(--color-text-text-label)',
228
+ '--color-text-text-paragraph': 'var(--color-text-text-paragraph)',
229
+ '--color-text-text-accent': 'var(--color-text-text-accent)',
230
+ '--color-text-text-clicable': 'var(--color-text-text-clicable)',
231
+ '--color-text-text-clicable-hover': 'var(--color-text-text-clicable-hover)',
232
+ '--color-text-text-subtle': 'var(--color-text-text-subtle)',
233
+ '--color-text-text-white': 'var(--color-text-text-white)',
234
+ '--color-text-text-inactive': 'var(--color-text-text-inactive)',
235
+ '--color-text-text-placeholder': 'var(--color-text-text-placeholder)',
236
+ '--color-text-text-error': 'var(--color-text-text-error)',
237
+ '--color-text-text-success': 'var(--color-text-text-success)',
238
+ '--color-text-text-warning': 'var(--color-text-text-warning)',
239
+ '--color-text-text-disabled': 'var(--color-text-text-disabled)',
242
240
  },
243
241
  Foreground: {
244
- '--colors-light-foreground-fg-white': 'var(--colors-light-foreground-fg-white)',
245
- '--colors-light-foreground-fg-disabled': 'var(--colors-light-foreground-fg-disabled)',
246
- '--colors-light-foreground-fg-primary': 'var(--colors-light-foreground-fg-primary)',
247
- '--colors-light-foreground-fg-secondary': 'var(--colors-light-foreground-fg-secondary)',
248
- '--colors-light-foreground-fg-secondary-hover': 'var(--colors-light-foreground-fg-secondary-hover)',
249
- '--colors-light-foreground-fg-tertiary': 'var(--colors-light-foreground-fg-tertiary)',
250
- '--colors-light-foreground-fg-tertiary-hover': 'var(--colors-light-foreground-fg-tertiary-hover)',
251
- '--colors-light-foreground-fg-quaternary': 'var(--colors-light-foreground-fg-quaternary)',
252
- '--colors-light-foreground-fg-quaternary-hover-brand': 'var(--colors-light-foreground-fg-quaternary-hover-brand)',
253
- '--colors-light-foreground-fg-quaternary-hover': 'var(--colors-light-foreground-fg-quaternary-hover)',
254
- '--colors-light-foreground-fg-error': 'var(--colors-light-foreground-fg-error)',
255
- '--colors-light-foreground-fg-success': 'var(--colors-light-foreground-fg-success)',
256
- '--colors-light-foreground-fg-warning': 'var(--colors-light-foreground-fg-warning)',
257
- '--colors-light-foreground-fg-brand-primary': 'var(--colors-light-foreground-fg-brand-primary)',
242
+ '--color-foreground-fg-white': 'var(--color-foreground-fg-white)',
243
+ '--color-foreground-fg-disabled': 'var(--color-foreground-fg-disabled)',
244
+ '--color-foreground-fg-primary': 'var(--color-foreground-fg-primary)',
245
+ '--color-foreground-fg-secondary': 'var(--color-foreground-fg-secondary)',
246
+ '--color-foreground-fg-secondary-hover': 'var(--color-foreground-fg-secondary-hover)',
247
+ '--color-foreground-fg-tertiary': 'var(--color-foreground-fg-tertiary)',
248
+ '--color-foreground-fg-tertiary-hover': 'var(--color-foreground-fg-tertiary-hover)',
249
+ '--color-foreground-fg-quaternary': 'var(--color-foreground-fg-quaternary)',
250
+ '--color-foreground-fg-quaternary-hover-brand': 'var(--color-foreground-fg-quaternary-hover-brand)',
251
+ '--color-foreground-fg-quaternary-hover': 'var(--color-foreground-fg-quaternary-hover)',
252
+ '--color-foreground-fg-error': 'var(--color-foreground-fg-error)',
253
+ '--color-foreground-fg-success': 'var(--color-foreground-fg-success)',
254
+ '--color-foreground-fg-warning': 'var(--color-foreground-fg-warning)',
255
+ '--color-foreground-fg-brand-primary': 'var(--color-foreground-fg-brand-primary)',
258
256
  },
259
257
  };
260
258
  const gradients = {
@@ -264,5 +262,5 @@ export const Colors = () => {
264
262
  '--global-bp-gradient': 'var(--global-bp-gradient)',
265
263
  },
266
264
  };
267
- return (_jsxs("div", { className: styles.container, children: [_jsx(Typography, { size: TypographySize.HeadingXL, weight: TypographyWeight.Bold, color: "var(--colors-light-text-text-title)", children: "Color System" }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--colors-light-text-text-label)", children: "Gradients" }), Object.entries(gradients).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--colors-light-text-text-label)", children: "Primitive Colors" }), Object.entries(primitives).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--colors-light-text-text-label)", children: "Semantic Colors" }), Object.entries(semanticColors).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] })] }));
265
+ return (_jsxs("div", { className: styles.container, children: [_jsx(Typography, { size: TypographySize.HeadingXL, weight: TypographyWeight.Bold, color: "var(--color-text-text-title)", children: "Color System" }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--color-text-text-label)", children: "Gradients" }), Object.entries(gradients).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--color-text-text-label)", children: "Primitive Colors" }), Object.entries(primitives).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] }), _jsxs("section", { children: [_jsx(Typography, { size: TypographySize.HeadingM, weight: TypographyWeight.SemiBold, color: "var(--color-text-text-label)", children: "Semantic Colors" }), Object.entries(semanticColors).map(([title, colors]) => (_jsx(ColorGroup, { title: title, colors: colors }, title)))] })] }));
268
266
  };
@@ -13,7 +13,7 @@ export const ComplexHeader = ({ title = 'Title', badgeText = '22', newButtonText
13
13
  setLayoutType(type);
14
14
  onLayoutChange?.(type);
15
15
  };
16
- return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottom: '1px solid var(--primitives-desktop-primary-gray-200)', bgcolor: 'var(--colors-light-background-bg-white)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', sx: sx, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [_jsx(Typography, { size: TypographySize.HeadingS, weight: TypographyWeight.Bold, children: title }), badgeText && (_jsx(Badge, { text: badgeText, size: BadgeSize.md, color: BadgeColor.Violet }))] }), onNewClick && (_jsx(MainButton, { text: newButtonText, hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, showTrailingIcon: true, trailingIcon: 'Plus', onClick: onNewClick }))] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', children: [_jsx(AutoComplete, { options: [], placeholder: "Search", onChange: () => { }, value: '' }), _jsx(MainButton, { text: 'Output File', hierarchy: ButtonHierarchy.SecondaryColor, size: ButtonSize.lg, showTrailingIcon: true, trailingIcon: 'DownloadSimple', onClick: onOutputFileClick }), _jsx(MainButton, { text: 'Download All', hierarchy: ButtonHierarchy.Primary, size: ButtonSize.lg, showTrailingIcon: true, trailingIcon: 'DownloadSimple', onClick: onDownloadAllClick }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center', children: [_jsx(MainButton, { hierarchy: layoutType === LayoutType.Grid
16
+ return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottom: '1px solid var(--color-border-border-component)', bgcolor: 'var(--color-background-bg-page-contrast)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', sx: sx, children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', children: [_jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-md)', children: [_jsx(Typography, { size: TypographySize.HeadingS, weight: TypographyWeight.Bold, children: title }), badgeText && (_jsx(Badge, { text: badgeText, size: BadgeSize.md, color: BadgeColor.Violet }))] }), onNewClick && (_jsx(MainButton, { text: newButtonText, hierarchy: ButtonHierarchy.Secondary, size: ButtonSize.xs, showTrailingIcon: true, trailingIcon: 'Plus', onClick: onNewClick }))] }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', gap: 'var(--spacing-tokens-size-in-px-spacing-spacing-lg)', children: [_jsx(AutoComplete, { options: [], placeholder: "Search", onChange: () => { }, value: '' }), _jsx(MainButton, { text: 'Output File', hierarchy: ButtonHierarchy.SecondaryColor, size: ButtonSize.lg, showTrailingIcon: true, trailingIcon: 'DownloadSimple', onClick: onOutputFileClick }), _jsx(MainButton, { text: 'Download All', hierarchy: ButtonHierarchy.Primary, size: ButtonSize.lg, showTrailingIcon: true, trailingIcon: 'DownloadSimple', onClick: onDownloadAllClick }), _jsxs(Box, { display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center', children: [_jsx(MainButton, { hierarchy: layoutType === LayoutType.Grid
17
17
  ? ButtonHierarchy.TertiaryColor
18
18
  : ButtonHierarchy.Tertiary, size: ButtonSize.sm, displayIconMode: ButtonDisplayMode.Only, displayIcon: "GridFour", onClick: () => handleLayoutChange(LayoutType.Grid) }), _jsx(MainButton, { hierarchy: layoutType === LayoutType.List
19
19
  ? ButtonHierarchy.TertiaryColor
@@ -5,5 +5,5 @@ import { ButtonHierarchy, ButtonSize } from '../Buttons';
5
5
  import { Typography, TypographySize, TypographyWeight } from '../Typography';
6
6
  import { Avatar, AvatarSize } from '../UI';
7
7
  export const Header = ({ title = 'Beyond Presence', email, avatarProps, backButtonText = 'Back', onBackClick, onLogoutClick, className, }) => {
8
- return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottom: '1px solid var(--primitives-desktop-primary-gray-200)', bgcolor: 'var(--colors-light-background-bg-white)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', children: [onBackClick ? (_jsx(MainButton, { text: backButtonText, hierarchy: ButtonHierarchy.Tertiary, showLeadingIcon: true, leadingIcon: 'ArrowLeft', onClick: onBackClick })) : (_jsx(Typography, { size: TypographySize.HeadingS, weight: TypographyWeight.SemiBold, children: title })), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '8px', children: [_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'flex-end', justifyContent: 'space-between', children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.SemiBold, children: email }), _jsx(MainButton, { text: 'Log Out', size: ButtonSize.sm, hierarchy: ButtonHierarchy.Tertiary, onClick: onLogoutClick, style: { paddingInline: '0px', paddingBlock: '0.1rem' } })] }), _jsx(Avatar, { ...avatarProps, size: AvatarSize.md })] })] }));
8
+ return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', borderBottom: '1px solid var(--color-border-border-component)', bgcolor: 'var(--color-background-bg-page-contrast)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', children: [onBackClick ? (_jsx(MainButton, { text: backButtonText, hierarchy: ButtonHierarchy.Tertiary, showLeadingIcon: true, leadingIcon: 'ArrowLeft', onClick: onBackClick })) : (_jsx(Typography, { size: TypographySize.HeadingS, weight: TypographyWeight.SemiBold, children: title })), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '8px', children: [_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'flex-end', justifyContent: 'space-between', children: [_jsx(Typography, { size: TypographySize.TextS, weight: TypographyWeight.SemiBold, children: email }), _jsx(MainButton, { text: 'Log Out', size: ButtonSize.sm, hierarchy: ButtonHierarchy.Tertiary, onClick: onLogoutClick, style: { paddingInline: '0px', paddingBlock: '0.1rem' } })] }), _jsx(Avatar, { ...avatarProps, size: AvatarSize.md })] })] }));
9
9
  };