@orcestr/ui 0.1.1 → 0.2.1

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 (194) hide show
  1. package/README.md +11 -11
  2. package/README.ru.md +10 -10
  3. package/dist/components/Action/ActionConfirmModal.d.ts.map +1 -1
  4. package/dist/components/Action/ActionTypes.d.ts +1 -1
  5. package/dist/components/Action/ActionTypes.d.ts.map +1 -1
  6. package/dist/components/ActionMenu/ActionMenu.d.ts.map +1 -1
  7. package/dist/components/Alert/Alert.d.ts.map +1 -1
  8. package/dist/components/Alert/Alert.js +1 -1
  9. package/dist/components/AppShell/AppShell.d.ts.map +1 -1
  10. package/dist/components/AppShell/AppShell.js +9 -10
  11. package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -1
  12. package/dist/components/AppSidebar/AppSidebar.js +22 -17
  13. package/dist/components/Badge/Badge.d.ts.map +1 -1
  14. package/dist/components/Badge/Badge.js +1 -1
  15. package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -1
  16. package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +5 -5
  17. package/dist/components/Box/Box.d.ts.map +1 -1
  18. package/dist/components/Box/Box.js +1 -1
  19. package/dist/components/Button/Button.d.ts.map +1 -1
  20. package/dist/components/Button/Button.js +2 -2
  21. package/dist/components/Card/Card.d.ts.map +1 -1
  22. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  23. package/dist/components/Checkbox/Checkbox.js +1 -1
  24. package/dist/components/Collapse/Collapse.d.ts.map +1 -1
  25. package/dist/components/Collapse/Collapse.js +1 -1
  26. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  27. package/dist/components/Combobox/Combobox.js +7 -2
  28. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  29. package/dist/components/CommandPalette/CommandPalette.js +6 -12
  30. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
  31. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
  32. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
  33. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  34. package/dist/components/ContextMenu/ContextMenu.js +3 -3
  35. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -1
  36. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  37. package/dist/components/DataTable/DataTable.js +29 -22
  38. package/dist/components/DataTable/DataTableStateAdapters.d.ts.map +1 -1
  39. package/dist/components/DataTable/DataTableStateAdapters.js +3 -4
  40. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  41. package/dist/components/DatePicker/DatePicker.js +1 -1
  42. package/dist/components/DatePicker/DatePickerState.d.ts.map +1 -1
  43. package/dist/components/DatePicker/DatePickerState.js +3 -1
  44. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  45. package/dist/components/DateRangePresetPicker/DateRangePresetPicker.d.ts.map +1 -1
  46. package/dist/components/DateRangePresetPicker/DateRangePresetPicker.js +1 -1
  47. package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.d.ts.map +1 -1
  48. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  49. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  50. package/dist/components/Drawer/Drawer.js +2 -2
  51. package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
  52. package/dist/components/EntityPicker/EntityPicker.js +2 -2
  53. package/dist/components/Field/Field.d.ts.map +1 -1
  54. package/dist/components/Field/Field.js +1 -1
  55. package/dist/components/Flex/Flex.d.ts.map +1 -1
  56. package/dist/components/Flex/Flex.js +1 -1
  57. package/dist/components/Grid/Grid.d.ts.map +1 -1
  58. package/dist/components/Highlight/Highlight.d.ts.map +1 -1
  59. package/dist/components/Highlight/Highlight.js +1 -1
  60. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  61. package/dist/components/IconButton/IconButton.js +3 -3
  62. package/dist/components/IconText/IconText.d.ts.map +1 -1
  63. package/dist/components/IconText/IconText.js +3 -1
  64. package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -1
  65. package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -1
  66. package/dist/components/InlineEdit/InlineEdit.js +22 -7
  67. package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
  68. package/dist/components/LinkButton/LinkButton.js +2 -2
  69. package/dist/components/Listbox/Listbox.js +2 -2
  70. package/dist/components/Menu/Menu.d.ts.map +1 -1
  71. package/dist/components/Menu/Menu.js +10 -7
  72. package/dist/components/Modal/Modal.d.ts.map +1 -1
  73. package/dist/components/Modal/Modal.js +4 -8
  74. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  75. package/dist/components/MultiSelect/MultiSelect.js +5 -7
  76. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  77. package/dist/components/NumberField/NumberField.js +1 -1
  78. package/dist/components/Overlay/OverlayProvider.d.ts +1 -1
  79. package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
  80. package/dist/components/Overlay/OverlayProvider.js +3 -7
  81. package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
  82. package/dist/components/PaginatedCombobox/PaginatedCombobox.js +9 -8
  83. package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.d.ts.map +1 -1
  84. package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.js +2 -2
  85. package/dist/components/Pagination/Pagination.js +1 -1
  86. package/dist/components/Popover/Popover.d.ts.map +1 -1
  87. package/dist/components/Popover/Popover.js +16 -18
  88. package/dist/components/Portal/Portal.d.ts.map +1 -1
  89. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  90. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  91. package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  92. package/dist/components/ScrollArea/ScrollArea.js +10 -23
  93. package/dist/components/Section/Section.d.ts.map +1 -1
  94. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  95. package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
  96. package/dist/components/Select/Select.d.ts.map +1 -1
  97. package/dist/components/Select/Select.js +4 -4
  98. package/dist/components/Separator/Separator.d.ts.map +1 -1
  99. package/dist/components/Separator/Separator.js +1 -1
  100. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
  101. package/dist/components/Skeleton/Skeleton.js +1 -1
  102. package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -1
  103. package/dist/components/SpecialModal/SpecialModal.js +2 -2
  104. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  105. package/dist/components/Spinner/Spinner.js +1 -1
  106. package/dist/components/Stack/Stack.d.ts.map +1 -1
  107. package/dist/components/Stack/Stack.js +1 -1
  108. package/dist/components/State/State.d.ts.map +1 -1
  109. package/dist/components/State/State.js +5 -5
  110. package/dist/components/State/stateIcon.d.ts.map +1 -1
  111. package/dist/components/StepperInput/StepperInput.js +2 -2
  112. package/dist/components/Switch/Switch.js +1 -1
  113. package/dist/components/Table/Table.d.ts.map +1 -1
  114. package/dist/components/Table/Table.js +2 -2
  115. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  116. package/dist/components/Tabs/Tabs.js +10 -12
  117. package/dist/components/Text/Text.d.ts.map +1 -1
  118. package/dist/components/Text/Text.js +1 -1
  119. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  120. package/dist/components/TextArea/TextArea.js +2 -2
  121. package/dist/components/TextField/TextField.d.ts.map +1 -1
  122. package/dist/components/TextField/TextField.js +3 -3
  123. package/dist/components/Toast/Toast.d.ts.map +1 -1
  124. package/dist/components/Toast/Toast.js +9 -15
  125. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  126. package/dist/components/Tooltip/Tooltip.js +7 -9
  127. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  128. package/dist/example/CodePreview.d.ts.map +1 -1
  129. package/dist/example/CodePreview.js +10 -10
  130. package/dist/example/ExampleActionsSection.d.ts +1 -1
  131. package/dist/example/ExampleActionsSection.d.ts.map +1 -1
  132. package/dist/example/ExampleActionsSection.js +2 -2
  133. package/dist/example/ExampleApplicationSection.d.ts.map +1 -1
  134. package/dist/example/ExampleApplicationSection.js +69 -21
  135. package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
  136. package/dist/example/ExampleBasicsSections.js +15 -7
  137. package/dist/example/ExampleDataSection.d.ts.map +1 -1
  138. package/dist/example/ExampleDataSection.js +5 -5
  139. package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
  140. package/dist/example/ExampleFieldsSection.js +8 -10
  141. package/dist/example/ExampleFoundationsSection.d.ts +1 -1
  142. package/dist/example/ExampleFoundationsSection.d.ts.map +1 -1
  143. package/dist/example/ExampleFoundationsSection.js +4 -4
  144. package/dist/example/ExampleOverlays.d.ts.map +1 -1
  145. package/dist/example/ExampleOverlays.js +4 -4
  146. package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
  147. package/dist/example/ExampleOverlaysSection.js +10 -10
  148. package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
  149. package/dist/example/ExampleSelectionSection.js +8 -8
  150. package/dist/example/ExampleStateSection.d.ts +3 -3
  151. package/dist/example/ExampleStateSection.d.ts.map +1 -1
  152. package/dist/example/ExampleStateSection.js +6 -6
  153. package/dist/example/ExampleThemePlayground.d.ts +25 -25
  154. package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
  155. package/dist/example/ExampleThemePlayground.js +48 -37
  156. package/dist/example/UiExamplePage.d.ts.map +1 -1
  157. package/dist/example/UiExamplePage.js +12 -16
  158. package/dist/example/UiExampleSection.d.ts.map +1 -1
  159. package/dist/example/UiExampleSection.js +1 -1
  160. package/dist/example/codeSamples.d.ts.map +1 -1
  161. package/dist/example/codeSamples.js +10 -10
  162. package/dist/example/exampleData.d.ts.map +1 -1
  163. package/dist/example/exampleData.js +2 -2
  164. package/dist/hooks/useControllableState.d.ts.map +1 -1
  165. package/dist/hooks/useControllableState.js +1 -3
  166. package/dist/hooks/useFloatingLayer.d.ts.map +1 -1
  167. package/dist/hooks/useFloatingLayer.js +1 -1
  168. package/dist/hooks/useFloatingPosition.d.ts.map +1 -1
  169. package/dist/hooks/useFloatingPosition.js +10 -15
  170. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  171. package/dist/hooks/useListNavigation.d.ts +3 -2
  172. package/dist/hooks/useListNavigation.d.ts.map +1 -1
  173. package/dist/hooks/useListNavigation.js +5 -7
  174. package/dist/hooks/useOutsidePointerDown.d.ts.map +1 -1
  175. package/dist/hooks/useTypeahead.d.ts.map +1 -1
  176. package/dist/locale/LocaleProvider.d.ts.map +1 -1
  177. package/dist/locale/LocaleProvider.js +1 -1
  178. package/dist/provider/OrcestrUiProvider.d.ts.map +1 -1
  179. package/dist/styles/orcestr-ui.css +251 -903
  180. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  181. package/dist/theme/ThemeProvider.js +2 -12
  182. package/dist/theme/defaultTheme.d.ts.map +1 -1
  183. package/dist/theme/defaultTheme.js +213 -52
  184. package/dist/theme/systemProps.d.ts +2 -2
  185. package/dist/theme/systemProps.d.ts.map +1 -1
  186. package/dist/theme/systemProps.js +4 -35
  187. package/dist/theme/themeTypes.d.ts +1 -1
  188. package/dist/theme/themeTypes.d.ts.map +1 -1
  189. package/dist/theme/useTheme.d.ts.map +1 -1
  190. package/dist/utils/cn.d.ts.map +1 -1
  191. package/dist/utils/composeRefs.d.ts.map +1 -1
  192. package/dist/utils/mergeProps.d.ts.map +1 -1
  193. package/dist/utils/polymorphic.d.ts.map +1 -1
  194. package/package.json +1 -1
@@ -115,18 +115,18 @@ import {LuCircleAlert, LuCircleCheck, LuCircleX, LuInfo, LuLoaderCircle} from 'r
115
115
  <IconText icon={<LuInfo />} iconTone='info' fs='13px'>Sync scheduled</IconText>
116
116
  </Flex>`,
117
117
  };
118
- export function BadgeSection({ onOpenCode, }) {
118
+ export function BadgeSection({ onOpenCode }) {
119
119
  const [status, setStatus] = useState('review');
120
120
  const statusItems = [
121
121
  { value: 'draft', label: 'Draft' },
122
122
  { value: 'review', label: 'Review' },
123
123
  { value: 'accepted', label: 'Accepted' },
124
124
  ];
125
- return (_jsx(UiExampleSection, { id: 'badges-example', title: 'Badge', description: 'Compact counters and statuses without a special wrapper.', children: _jsx(ExampleTile, { title: 'Badge', code: badgeSample.code, onOpen: onOpenCode, children: _jsxs(Flex, { g: 2, wrap: true, children: [_jsxs(Badge, { tone: 'neutral', children: ["Requested ", _jsx("strong", { children: "43" })] }), _jsxs(Badge, { tone: 'info', icon: _jsx(LuClock3, {}), children: ["Ordered ", _jsx("strong", { children: "12" })] }), _jsxs(Badge, { tone: 'success', icon: _jsx(LuPackageCheck, {}), children: ["Accepted ", _jsx("strong", { children: "8" })] }), _jsx(Badge, { tone: 'warning', v: 'surface', icon: _jsx(LuShieldCheck, {}), children: "Review" }), _jsx(Badge, { tone: 'danger', v: 'outline', children: "Blocked" }), _jsx(Badge, { tone: 'primary', v: 'solid', children: "Primary" }), _jsx(BadgeSelectMenu, { value: status, items: statusItems, onValueChange: setStatus, tone: 'warning' })] }) }) }));
125
+ return (_jsx(UiExampleSection, { id: "badges-example", title: "Badge", description: "Compact counters and statuses without a special wrapper.", children: _jsx(ExampleTile, { title: "Badge", code: badgeSample.code, onOpen: onOpenCode, children: _jsxs(Flex, { g: 2, wrap: true, children: [_jsxs(Badge, { tone: "neutral", children: ["Requested ", _jsx("strong", { children: "43" })] }), _jsxs(Badge, { tone: "info", icon: _jsx(LuClock3, {}), children: ["Ordered ", _jsx("strong", { children: "12" })] }), _jsxs(Badge, { tone: "success", icon: _jsx(LuPackageCheck, {}), children: ["Accepted ", _jsx("strong", { children: "8" })] }), _jsx(Badge, { tone: "warning", v: "surface", icon: _jsx(LuShieldCheck, {}), children: "Review" }), _jsx(Badge, { tone: "danger", v: "outline", children: "Blocked" }), _jsx(Badge, { tone: "primary", v: "solid", children: "Primary" }), _jsx(BadgeSelectMenu, { value: status, items: statusItems, onValueChange: setStatus, tone: "warning" })] }) }) }));
126
126
  }
127
- export function StateCardSection({ onOpenCode, }) {
128
- return (_jsx(UiExampleSection, { id: 'state-card-example', title: 'StateCard', description: 'Block-level state for empty, loading, error, access and status surfaces.', children: _jsx(ExampleTile, { title: 'StateCard', code: stateCardSample.code, onOpen: onOpenCode, children: _jsxs(Stack, { g: 2, children: [_jsx(StateCard, { tone: 'info', title: 'General state', description: 'One card for informational, empty, loading and error states.' }), _jsxs(Grid, { columns: 'repeat(auto-fit, minmax(min(100%, 260px), 1fr))', g: 2, children: [_jsx(StateCard, { v: 'surface', tone: 'primary', title: 'Surface', titleTone: 'primary', description: 'Uses the regular surface with a toned title.', descriptionTone: 'muted' }), _jsx(StateCard, { v: 'outline', tone: 'warning', title: 'Outline', description: 'Useful when the card should stay quiet.' }), _jsx(StateCard, { v: 'ghost', tone: 'success', title: 'Ghost', description: 'No extra background.' })] }), _jsx(StateCard, { tone: 'danger', title: 'Validation failed', children: _jsx(Stack, { g: 1, children: validationItems.map((item) => (_jsxs(Text, { fs: '13px', lh: 1.3, children: [_jsxs("strong", { children: [item.label, ": "] }), item.message] }, item.key))) }) }), _jsxs(Grid, { columns: 'repeat(auto-fit, minmax(min(100%, 260px), 1fr))', g: 2, children: [_jsx(EmptyState, { compact: true, description: 'No records yet.' }), _jsx(LoadingState, { compact: true, description: 'Loading the next page.' }), _jsx(ErrorState, { compact: true, description: 'Request failed.', onRetry: () => undefined })] }), _jsx(StateCard, { tone: 'success', title: 'Saved', description: 'Changes were applied.', action: _jsx(Button, { size: 1, v: 'surface', children: "Open" }) })] }) }) }));
127
+ export function StateCardSection({ onOpenCode }) {
128
+ return (_jsx(UiExampleSection, { id: "state-card-example", title: "StateCard", description: "Block-level state for empty, loading, error, access and status surfaces.", children: _jsx(ExampleTile, { title: "StateCard", code: stateCardSample.code, onOpen: onOpenCode, children: _jsxs(Stack, { g: 2, children: [_jsx(StateCard, { tone: "info", title: "General state", description: "One card for informational, empty, loading and error states." }), _jsxs(Grid, { columns: "repeat(auto-fit, minmax(min(100%, 260px), 1fr))", g: 2, children: [_jsx(StateCard, { v: "surface", tone: "primary", title: "Surface", titleTone: "primary", description: "Uses the regular surface with a toned title.", descriptionTone: "muted" }), _jsx(StateCard, { v: "outline", tone: "warning", title: "Outline", description: "Useful when the card should stay quiet." }), _jsx(StateCard, { v: "ghost", tone: "success", title: "Ghost", description: "No extra background." })] }), _jsx(StateCard, { tone: "danger", title: "Validation failed", children: _jsx(Stack, { g: 1, children: validationItems.map((item) => (_jsxs(Text, { fs: "13px", lh: 1.3, children: [_jsxs("strong", { children: [item.label, ": "] }), item.message] }, item.key))) }) }), _jsxs(Grid, { columns: "repeat(auto-fit, minmax(min(100%, 260px), 1fr))", g: 2, children: [_jsx(EmptyState, { compact: true, description: "No records yet." }), _jsx(LoadingState, { compact: true, description: "Loading the next page." }), _jsx(ErrorState, { compact: true, description: "Request failed.", onRetry: () => undefined })] }), _jsx(StateCard, { tone: "success", title: "Saved", description: "Changes were applied.", action: _jsx(Button, { size: 1, v: "surface", children: "Open" }) })] }) }) }));
129
129
  }
130
- export function IconTextSection({ onOpenCode, }) {
131
- return (_jsx(UiExampleSection, { id: 'icon-text-example', title: 'IconText', description: 'Inline text primitive with an icon, text props and independent icon tone.', children: _jsx(ExampleTile, { title: 'IconText', code: iconTextSample.code, onOpen: onOpenCode, children: _jsxs(Flex, { g: 2, wrap: true, children: [_jsx(IconText, { icon: _jsx(LuLoaderCircle, {}), iconTone: 'info', iconSpin: true, children: "Saving changes" }), _jsx(IconText, { icon: _jsx(LuCircleCheck, {}), iconTone: 'success', children: "Saved" }), _jsx(IconText, { icon: _jsx(LuCircleX, {}), iconTone: 'danger', children: "Save failed" }), _jsx(IconText, { icon: _jsx(LuCircleAlert, {}), iconTone: 'warning', fw: 760, children: "Review required" }), _jsx(IconText, { icon: _jsx(LuInfo, {}), iconTone: 'info', fs: '13px', children: "Sync scheduled" })] }) }) }));
130
+ export function IconTextSection({ onOpenCode }) {
131
+ return (_jsx(UiExampleSection, { id: "icon-text-example", title: "IconText", description: "Inline text primitive with an icon, text props and independent icon tone.", children: _jsx(ExampleTile, { title: "IconText", code: iconTextSample.code, onOpen: onOpenCode, children: _jsxs(Flex, { g: 2, wrap: true, children: [_jsx(IconText, { icon: _jsx(LuLoaderCircle, {}), iconTone: "info", iconSpin: true, children: "Saving changes" }), _jsx(IconText, { icon: _jsx(LuCircleCheck, {}), iconTone: "success", children: "Saved" }), _jsx(IconText, { icon: _jsx(LuCircleX, {}), iconTone: "danger", children: "Save failed" }), _jsx(IconText, { icon: _jsx(LuCircleAlert, {}), iconTone: "warning", fw: 760, children: "Review required" }), _jsx(IconText, { icon: _jsx(LuInfo, {}), iconTone: "info", fs: "13px", children: "Sync scheduled" })] }) }) }));
132
132
  }
@@ -32,17 +32,17 @@ export declare const themePlaygroundPresets: readonly [{
32
32
  readonly previewText: "#f4f6f8";
33
33
  readonly group: "dark";
34
34
  }, {
35
- readonly id: "operations-dark";
35
+ readonly id: "deliveries-dark";
36
36
  readonly label: {
37
- readonly ru: "Operations";
38
- readonly en: "Operations";
37
+ readonly ru: "Deliveries";
38
+ readonly en: "Deliveries";
39
39
  };
40
40
  readonly description: {
41
41
  readonly ru: "Плотная тема для повторяющейся операционной работы.";
42
- readonly en: "Dense theme for repeated operational work.";
42
+ readonly en: "Dense theme for deliveries workflows.";
43
43
  };
44
44
  readonly mode: "dark";
45
- readonly surface: "operations";
45
+ readonly surface: "deliveries";
46
46
  readonly accent: "#34d399";
47
47
  readonly previewBg: "#07140f";
48
48
  readonly previewPanel: "#0d2119";
@@ -166,17 +166,17 @@ export declare const themePlaygroundPresets: readonly [{
166
166
  };
167
167
  };
168
168
  }, {
169
- readonly id: "media-dark";
169
+ readonly id: "beauty-dark";
170
170
  readonly label: {
171
- readonly ru: "Media dark";
172
- readonly en: "Media dark";
171
+ readonly ru: "Beauty dark";
172
+ readonly en: "Beauty dark";
173
173
  };
174
174
  readonly description: {
175
175
  readonly ru: "Мягкая темная тема для контентных интерфейсов.";
176
176
  readonly en: "Soft dark theme for content-heavy interfaces.";
177
177
  };
178
178
  readonly mode: "dark";
179
- readonly surface: "media";
179
+ readonly surface: "beauty";
180
180
  readonly accent: "#f0a6d8";
181
181
  readonly previewBg: "#141116";
182
182
  readonly previewPanel: "#1d1820";
@@ -204,17 +204,17 @@ export declare const themePlaygroundPresets: readonly [{
204
204
  };
205
205
  };
206
206
  }, {
207
- readonly id: "catalog-dark";
207
+ readonly id: "jewelry-dark";
208
208
  readonly label: {
209
- readonly ru: "Catalog dark";
210
- readonly en: "Catalog dark";
209
+ readonly ru: "Jewelry dark";
210
+ readonly en: "Jewelry dark";
211
211
  };
212
212
  readonly description: {
213
213
  readonly ru: "Точная темная тема для структурированных каталогов.";
214
214
  readonly en: "Precise dark theme for structured index surfaces.";
215
215
  };
216
216
  readonly mode: "dark";
217
- readonly surface: "catalog";
217
+ readonly surface: "jewelry";
218
218
  readonly accent: "#e6c26a";
219
219
  readonly previewBg: "#11100d";
220
220
  readonly previewPanel: "#191712";
@@ -276,17 +276,17 @@ export declare const themePlaygroundPresets: readonly [{
276
276
  readonly previewText: "#111827";
277
277
  readonly group: "light";
278
278
  }, {
279
- readonly id: "operations-light";
279
+ readonly id: "deliveries-light";
280
280
  readonly label: {
281
- readonly ru: "Operations light";
282
- readonly en: "Operations light";
281
+ readonly ru: "Deliveries light";
282
+ readonly en: "Deliveries light";
283
283
  };
284
284
  readonly description: {
285
285
  readonly ru: "Плотная светлая тема для повторяющейся операционной работы.";
286
286
  readonly en: "Dense light theme for repeated operational work.";
287
287
  };
288
288
  readonly mode: "light";
289
- readonly surface: "operations";
289
+ readonly surface: "deliveries";
290
290
  readonly accent: "#047857";
291
291
  readonly previewBg: "#eefbf4";
292
292
  readonly previewPanel: "#ffffff";
@@ -308,17 +308,17 @@ export declare const themePlaygroundPresets: readonly [{
308
308
  };
309
309
  };
310
310
  }, {
311
- readonly id: "media-light";
311
+ readonly id: "beauty-light";
312
312
  readonly label: {
313
- readonly ru: "Media light";
314
- readonly en: "Media light";
313
+ readonly ru: "Beauty light";
314
+ readonly en: "Beauty light";
315
315
  };
316
316
  readonly description: {
317
317
  readonly ru: "Мягкая светлая тема для контентных интерфейсов.";
318
318
  readonly en: "Soft light theme for content-heavy interfaces.";
319
319
  };
320
320
  readonly mode: "light";
321
- readonly surface: "media";
321
+ readonly surface: "beauty";
322
322
  readonly accent: "#db2777";
323
323
  readonly previewBg: "#fff1f8";
324
324
  readonly previewPanel: "#ffffff";
@@ -340,17 +340,17 @@ export declare const themePlaygroundPresets: readonly [{
340
340
  };
341
341
  };
342
342
  }, {
343
- readonly id: "catalog-light";
343
+ readonly id: "jewelry-light";
344
344
  readonly label: {
345
- readonly ru: "Catalog light";
346
- readonly en: "Catalog light";
345
+ readonly ru: "Jewelry light";
346
+ readonly en: "Jewelry light";
347
347
  };
348
348
  readonly description: {
349
349
  readonly ru: "Теплая светлая тема для структурированных каталогов.";
350
350
  readonly en: "Warm light theme for structured index surfaces.";
351
351
  };
352
352
  readonly mode: "light";
353
- readonly surface: "catalog";
353
+ readonly surface: "jewelry";
354
354
  readonly accent: "#9b6f12";
355
355
  readonly previewBg: "#fbfaf6";
356
356
  readonly previewPanel: "#ffffff";
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleThemePlayground.d.ts","sourceRoot":"","sources":["../../src/example/ExampleThemePlayground.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAC,MAAM,OAAO,CAAC;AAElG,OAAO,EAOH,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAExB,KAAK,eAAe,EACvB,MAAM,IAAI,CAAC;AAEZ,KAAK,aAAa,GAAG,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyaY,CAAC;AAOhD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAE1E,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,aAAa,GAAG,WAAW,CAEvE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,UAE5E;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,UAElF;AA6FD,wBAAgB,sBAAsB,CAAC,EACnC,cAAc,EACd,KAAK,EACL,MAAM,EACN,cAAc,EACd,sBAAsB,GACzB,EAAE;IACC,cAAc,EAAE,aAAa,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9C,sBAAsB,EAAE,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;CAC3E,2CAwFA;AAED,wBAAgB,mBAAmB,CAAC,EAChC,cAAc,EACd,MAAM,EACN,cAAc,GACjB,EAAE;IACC,cAAc,EAAE,aAAa,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACjD,2CAkDA;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,GAMlD,aAAa,CACrB"}
1
+ {"version":3,"file":"ExampleThemePlayground.d.ts","sourceRoot":"","sources":["../../src/example/ExampleThemePlayground.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpG,OAAO,EAOH,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAExB,KAAK,eAAe,EACvB,MAAM,IAAI,CAAC;AAEZ,KAAK,aAAa,GAAG,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyaY,CAAC;AAOhD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAE1E,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,aAAa,GAAG,WAAW,CAEvE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,UAE5E;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,UAElF;AA0GD,wBAAgB,sBAAsB,CAAC,EACnC,cAAc,EACd,KAAK,EACL,MAAM,EACN,cAAc,EACd,sBAAsB,GACzB,EAAE;IACC,cAAc,EAAE,aAAa,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9C,sBAAsB,EAAE,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;CAC3E,2CAwFA;AAED,wBAAgB,mBAAmB,CAAC,EAChC,cAAc,EACd,MAAM,EACN,cAAc,GACjB,EAAE;IACC,cAAc,EAAE,aAAa,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACjD,2CAoDA;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,GAMlD,aAAa,CACrB"}
@@ -22,17 +22,17 @@ export const themePlaygroundPresets = [
22
22
  group: 'dark',
23
23
  },
24
24
  {
25
- id: 'operations-dark',
25
+ id: 'deliveries-dark',
26
26
  label: {
27
- ru: 'Operations',
28
- en: 'Operations',
27
+ ru: 'Deliveries',
28
+ en: 'Deliveries',
29
29
  },
30
30
  description: {
31
31
  ru: 'Плотная тема для повторяющейся операционной работы.',
32
- en: 'Dense theme for repeated operational work.',
32
+ en: 'Dense theme for deliveries workflows.',
33
33
  },
34
34
  mode: 'dark',
35
- surface: 'operations',
35
+ surface: 'deliveries',
36
36
  accent: '#34d399',
37
37
  previewBg: '#07140f',
38
38
  previewPanel: '#0d2119',
@@ -159,17 +159,17 @@ export const themePlaygroundPresets = [
159
159
  },
160
160
  },
161
161
  {
162
- id: 'media-dark',
162
+ id: 'beauty-dark',
163
163
  label: {
164
- ru: 'Media dark',
165
- en: 'Media dark',
164
+ ru: 'Beauty dark',
165
+ en: 'Beauty dark',
166
166
  },
167
167
  description: {
168
168
  ru: 'Мягкая темная тема для контентных интерфейсов.',
169
169
  en: 'Soft dark theme for content-heavy interfaces.',
170
170
  },
171
171
  mode: 'dark',
172
- surface: 'media',
172
+ surface: 'beauty',
173
173
  accent: '#f0a6d8',
174
174
  previewBg: '#141116',
175
175
  previewPanel: '#1d1820',
@@ -198,17 +198,17 @@ export const themePlaygroundPresets = [
198
198
  },
199
199
  },
200
200
  {
201
- id: 'catalog-dark',
201
+ id: 'jewelry-dark',
202
202
  label: {
203
- ru: 'Catalog dark',
204
- en: 'Catalog dark',
203
+ ru: 'Jewelry dark',
204
+ en: 'Jewelry dark',
205
205
  },
206
206
  description: {
207
207
  ru: 'Точная темная тема для структурированных каталогов.',
208
208
  en: 'Precise dark theme for structured index surfaces.',
209
209
  },
210
210
  mode: 'dark',
211
- surface: 'catalog',
211
+ surface: 'jewelry',
212
212
  accent: '#e6c26a',
213
213
  previewBg: '#11100d',
214
214
  previewPanel: '#191712',
@@ -273,17 +273,17 @@ export const themePlaygroundPresets = [
273
273
  group: 'light',
274
274
  },
275
275
  {
276
- id: 'operations-light',
276
+ id: 'deliveries-light',
277
277
  label: {
278
- ru: 'Operations light',
279
- en: 'Operations light',
278
+ ru: 'Deliveries light',
279
+ en: 'Deliveries light',
280
280
  },
281
281
  description: {
282
282
  ru: 'Плотная светлая тема для повторяющейся операционной работы.',
283
283
  en: 'Dense light theme for repeated operational work.',
284
284
  },
285
285
  mode: 'light',
286
- surface: 'operations',
286
+ surface: 'deliveries',
287
287
  accent: '#047857',
288
288
  previewBg: '#eefbf4',
289
289
  previewPanel: '#ffffff',
@@ -306,17 +306,17 @@ export const themePlaygroundPresets = [
306
306
  },
307
307
  },
308
308
  {
309
- id: 'media-light',
309
+ id: 'beauty-light',
310
310
  label: {
311
- ru: 'Media light',
312
- en: 'Media light',
311
+ ru: 'Beauty light',
312
+ en: 'Beauty light',
313
313
  },
314
314
  description: {
315
315
  ru: 'Мягкая светлая тема для контентных интерфейсов.',
316
316
  en: 'Soft light theme for content-heavy interfaces.',
317
317
  },
318
318
  mode: 'light',
319
- surface: 'media',
319
+ surface: 'beauty',
320
320
  accent: '#db2777',
321
321
  previewBg: '#fff1f8',
322
322
  previewPanel: '#ffffff',
@@ -339,17 +339,17 @@ export const themePlaygroundPresets = [
339
339
  },
340
340
  },
341
341
  {
342
- id: 'catalog-light',
342
+ id: 'jewelry-light',
343
343
  label: {
344
- ru: 'Catalog light',
345
- en: 'Catalog light',
344
+ ru: 'Jewelry light',
345
+ en: 'Jewelry light',
346
346
  },
347
347
  description: {
348
348
  ru: 'Теплая светлая тема для структурированных каталогов.',
349
349
  en: 'Warm light theme for structured index surfaces.',
350
350
  },
351
351
  mode: 'light',
352
- surface: 'catalog',
352
+ surface: 'jewelry',
353
353
  accent: '#9b6f12',
354
354
  previewBg: '#fbfaf6',
355
355
  previewPanel: '#ffffff',
@@ -456,7 +456,15 @@ const flatTokenSections = [
456
456
  'zIndex',
457
457
  'components',
458
458
  ];
459
- const statusKeys = ['neutral', 'primary', 'secondary', 'success', 'warning', 'danger', 'info'];
459
+ const statusKeys = [
460
+ 'neutral',
461
+ 'primary',
462
+ 'secondary',
463
+ 'success',
464
+ 'warning',
465
+ 'danger',
466
+ 'info',
467
+ ];
460
468
  const COLOR_TOKEN_COMMIT_DELAY_MS = 180;
461
469
  const themePlaygroundCopy = {
462
470
  ru: {
@@ -517,7 +525,7 @@ const themePlaygroundCopy = {
517
525
  export function ExampleThemePlayground({ activePresetId, theme, locale, onPresetChange, onThemeOverridesChange, }) {
518
526
  const activePreset = getThemePlaygroundPreset(activePresetId);
519
527
  const copy = themePlaygroundCopy[locale];
520
- return (_jsxs("section", { id: 'theme', className: 'oui-section oui-ui-section', children: [_jsx("div", { className: 'oui-ui-section-head', children: _jsxs("div", { children: [_jsx("h2", { className: 'oui-ui-section-title', children: copy.title }), _jsx("p", { className: 'oui-ui-description', children: copy.description })] }) }), _jsxs("div", { className: 'oui-theme-playground', children: [_jsx(Stack, { className: 'oui-theme-playground-presets', g: 2, children: _jsx(ThemePresetSelector, { activePresetId: activePreset.id, locale: locale, onPresetChange: onPresetChange }) }), _jsxs("div", { className: 'oui-section oui-theme-preview', children: [_jsxs("div", { className: 'oui-theme-preview-head', children: [_jsx(Text, { fw: 760, children: copy.tokenEditor }), _jsx(Button, { size: 1, v: 'surface', onClick: () => onPresetChange(activePreset), children: copy.resetPreset })] }), _jsxs(ScrollArea, { className: 'oui-theme-preview-scroll', highlights: true, highlightColor: 'var(--oui-section-nested-solid-bg)', highlightTop: {
528
+ return (_jsxs("section", { id: "theme", className: "oui-section oui-ui-section", children: [_jsx("div", { className: "oui-ui-section-head", children: _jsxs("div", { children: [_jsx("h2", { className: "oui-ui-section-title", children: copy.title }), _jsx("p", { className: "oui-ui-description", children: copy.description })] }) }), _jsxs("div", { className: "oui-theme-playground", children: [_jsx(Stack, { className: "oui-theme-playground-presets", g: 2, children: _jsx(ThemePresetSelector, { activePresetId: activePreset.id, locale: locale, onPresetChange: onPresetChange }) }), _jsxs("div", { className: "oui-section oui-theme-preview", children: [_jsxs("div", { className: "oui-theme-preview-head", children: [_jsx(Text, { fw: 760, children: copy.tokenEditor }), _jsx(Button, { size: 1, v: "surface", onClick: () => onPresetChange(activePreset), children: copy.resetPreset })] }), _jsxs(ScrollArea, { className: "oui-theme-preview-scroll", highlights: true, highlightColor: "var(--oui-section-nested-solid-bg)", highlightTop: {
521
529
  start: 2,
522
530
  fadeDistance: 28,
523
531
  maxOpacity: 0.94,
@@ -525,10 +533,10 @@ export function ExampleThemePlayground({ activePresetId, theme, locale, onPreset
525
533
  start: 2,
526
534
  fadeDistance: 28,
527
535
  maxOpacity: 0.94,
528
- }, children: [_jsxs("div", { className: 'oui-theme-token-editor', children: [flatTokenSections.map((section) => (_jsx(TokenSection, { title: tokenSectionLabel(section, locale), section: section, values: tokenSectionValues(theme, section), onTokenChange: (key, value) => updateFlatToken(onThemeOverridesChange, section, key, value) }, section))), statusKeys.map((statusKey) => (_jsx(TokenSection, { title: `${copy.statuses} / ${statusKey}`, section: 'status', statusKey: statusKey, values: theme.status[statusKey], onTokenChange: (key, value) => updateStatusToken(onThemeOverridesChange, statusKey, key, String(value)) }, `status-${statusKey}`)))] }), _jsxs(Flex, { g: 2, wrap: true, children: [_jsx(Button, { size: 1, children: copy.primaryAction }), _jsx(Button, { size: 1, v: 'surface', children: copy.surface }), _jsx(Button, { size: 1, v: 'ghost', children: copy.secondary }), _jsx(Badge, { tone: 'success', children: copy.ready }), _jsx(Badge, { tone: 'warning', children: copy.warning })] })] })] })] })] }));
536
+ }, children: [_jsxs("div", { className: "oui-theme-token-editor", children: [flatTokenSections.map((section) => (_jsx(TokenSection, { title: tokenSectionLabel(section, locale), section: section, values: tokenSectionValues(theme, section), onTokenChange: (key, value) => updateFlatToken(onThemeOverridesChange, section, key, value) }, section))), statusKeys.map((statusKey) => (_jsx(TokenSection, { title: `${copy.statuses} / ${statusKey}`, section: "status", statusKey: statusKey, values: theme.status[statusKey], onTokenChange: (key, value) => updateStatusToken(onThemeOverridesChange, statusKey, key, String(value)) }, `status-${statusKey}`)))] }), _jsxs(Flex, { g: 2, wrap: true, children: [_jsx(Button, { size: 1, children: copy.primaryAction }), _jsx(Button, { size: 1, v: "surface", children: copy.surface }), _jsx(Button, { size: 1, v: "ghost", children: copy.secondary }), _jsx(Badge, { tone: "success", children: copy.ready }), _jsx(Badge, { tone: "warning", children: copy.warning })] })] })] })] })] }));
529
537
  }
530
538
  export function ThemePresetSelector({ activePresetId, locale, onPresetChange, }) {
531
- return (_jsx("div", { className: 'oui-theme-preset-grid', children: themePresetGroups.map((group) => (_jsxs("div", { className: 'oui-theme-preset-group', children: [_jsx("div", { className: 'oui-theme-preset-group-label', children: group.label[locale] }), _jsx(ScrollArea, { className: 'oui-theme-preset-scroll', highlights: true, highlightColor: 'var(--oui-section-solid-bg)', highlightTop: {
539
+ return (_jsx("div", { className: "oui-theme-preset-grid", children: themePresetGroups.map((group) => (_jsxs("div", { className: "oui-theme-preset-group", children: [_jsx("div", { className: "oui-theme-preset-group-label", children: group.label[locale] }), _jsx(ScrollArea, { className: "oui-theme-preset-scroll", highlights: true, highlightColor: "var(--oui-section-solid-bg)", highlightTop: {
532
540
  start: 1,
533
541
  fadeDistance: 18,
534
542
  maxOpacity: 0.94,
@@ -536,9 +544,9 @@ export function ThemePresetSelector({ activePresetId, locale, onPresetChange, })
536
544
  start: 1,
537
545
  fadeDistance: 18,
538
546
  maxOpacity: 0.94,
539
- }, children: _jsx("div", { className: 'oui-theme-preset-list', children: themePlaygroundPresets
547
+ }, children: _jsx("div", { className: "oui-theme-preset-list", children: themePlaygroundPresets
540
548
  .filter((preset) => preset.group === group.key)
541
- .map((preset) => (_jsxs("button", { type: 'button', className: 'oui-theme-preset-card', "data-active": activePresetId === preset.id ? 'true' : undefined, style: themePresetPreviewStyle(preset), onClick: () => onPresetChange(preset), children: [_jsxs("span", { className: 'oui-theme-preset-preview', children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] }), _jsxs("span", { className: 'oui-theme-preset-body', children: [_jsx("strong", { children: themePresetLabel(preset, locale) }), _jsx("span", { children: themePresetDescription(preset, locale) })] })] }, preset.id))) }) })] }, group.key))) }));
549
+ .map((preset) => (_jsxs("button", { type: "button", className: "oui-theme-preset-card", "data-active": activePresetId === preset.id ? 'true' : undefined, style: themePresetPreviewStyle(preset), onClick: () => onPresetChange(preset), children: [_jsxs("span", { className: "oui-theme-preset-preview", children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] }), _jsxs("span", { className: "oui-theme-preset-body", children: [_jsx("strong", { children: themePresetLabel(preset, locale) }), _jsx("span", { children: themePresetDescription(preset, locale) })] })] }, preset.id))) }) })] }, group.key))) }));
542
550
  }
543
551
  export function themePresetPreviewStyle(preset) {
544
552
  return {
@@ -549,7 +557,7 @@ export function themePresetPreviewStyle(preset) {
549
557
  };
550
558
  }
551
559
  function TokenSection({ title, section, statusKey, values, onTokenChange, }) {
552
- return (_jsxs("div", { className: 'oui-theme-token-section', children: [_jsx(Text, { fs: '12px', fw: 760, tone: 'muted', children: title }), _jsx("div", { className: 'oui-theme-token-grid', children: Object.entries(values).map(([key, value]) => (_jsx(ThemeTokenControl, { label: readableTokenName(key), path: statusKey ? `${statusKey}.${key}` : key, section: section, value: value, onChange: (next) => onTokenChange(key, next) }, `${title}-${key}`))) })] }));
560
+ return (_jsxs("div", { className: "oui-theme-token-section", children: [_jsx(Text, { fs: "12px", fw: 760, tone: "muted", children: title }), _jsx("div", { className: "oui-theme-token-grid", children: Object.entries(values).map(([key, value]) => (_jsx(ThemeTokenControl, { label: readableTokenName(key), path: statusKey ? `${statusKey}.${key}` : key, section: section, value: value, onChange: (next) => onTokenChange(key, next) }, `${title}-${key}`))) })] }));
553
561
  }
554
562
  function ThemeTokenControl({ label, path, section, value, onChange, }) {
555
563
  const valueText = String(value);
@@ -571,11 +579,14 @@ function ThemeTokenControl({ label, path, section, value, onChange, }) {
571
579
  return;
572
580
  onChange(colorDraft);
573
581
  };
574
- return (_jsxs("div", { className: 'oui-theme-token oui-theme-token-control', children: [_jsx("span", { className: 'oui-theme-token-swatch', style: {
575
- background: visibleColorValue ?? (section === 'colors' || section === 'status'
576
- ? valueText
577
- : 'var(--oui-primary-surface)'),
578
- }, children: colorInputValue ? (_jsx("input", { className: 'oui-theme-token-swatch-input', type: 'color', value: visibleColorValue ?? colorInputValue, "aria-label": `${label} color`, onChange: (event) => setColorDraft(event.target.value), onBlur: commitColorDraft })) : null }), _jsxs("span", { className: 'oui-theme-token-text', children: [_jsx(Text, { fs: '12px', fw: 700, children: label }), _jsx(Text, { fs: '11px', tone: 'muted', children: path })] }), _jsx("span", { className: 'oui-theme-token-control-field', children: selectOptions ? (_jsx("select", { value: valueText, "aria-label": label, onChange: (event) => onChange(event.target.value), children: selectOptions.map((option) => (_jsx("option", { value: option, children: option }, option))) })) : (_jsx("input", { type: typeof value === 'number' ? 'number' : 'text', value: valueText, "aria-label": label, onChange: (event) => onChange(typeof value === 'number' ? Number(event.target.value) : event.target.value) })) })] }));
582
+ return (_jsxs("div", { className: "oui-theme-token oui-theme-token-control", children: [_jsx("span", { className: "oui-theme-token-swatch", style: {
583
+ background: visibleColorValue ??
584
+ (section === 'colors' || section === 'status'
585
+ ? valueText
586
+ : 'var(--oui-primary-surface)'),
587
+ }, children: colorInputValue ? (_jsx("input", { className: "oui-theme-token-swatch-input", type: "color", value: visibleColorValue ?? colorInputValue, "aria-label": `${label} color`, onChange: (event) => setColorDraft(event.target.value), onBlur: commitColorDraft })) : null }), _jsxs("span", { className: "oui-theme-token-text", children: [_jsx(Text, { fs: "12px", fw: 700, children: label }), _jsx(Text, { fs: "11px", tone: "muted", children: path })] }), _jsx("span", { className: "oui-theme-token-control-field", children: selectOptions ? (_jsx("select", { value: valueText, "aria-label": label, onChange: (event) => onChange(event.target.value), children: selectOptions.map((option) => (_jsx("option", { value: option, children: option }, option))) })) : (_jsx("input", { type: typeof value === 'number' ? 'number' : 'text', value: valueText, "aria-label": label, onChange: (event) => onChange(typeof value === 'number'
588
+ ? Number(event.target.value)
589
+ : event.target.value) })) })] }));
579
590
  }
580
591
  function updateFlatToken(updateOverrides, section, key, value) {
581
592
  if (section === 'colors' && key.includes('.')) {
@@ -1 +1 @@
1
- {"version":3,"file":"UiExamplePage.d.ts","sourceRoot":"","sources":["../../src/example/UiExamplePage.tsx"],"names":[],"mappings":"AAYA,OAAO,EAaH,KAAK,eAAe,EACvB,MAAM,IAAI,CAAC;AAwlBZ,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC1B,MAAM,EAAE,gBAAgB,EACxB,aAAoB,EACpB,cAAc,GACjB,GAAE,kBAAuB,2CA8CzB"}
1
+ {"version":3,"file":"UiExamplePage.d.ts","sourceRoot":"","sources":["../../src/example/UiExamplePage.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAaH,KAAK,eAAe,EACvB,MAAM,IAAI,CAAC;AAolBZ,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC1B,MAAM,EAAE,gBAAgB,EACxB,aAAoB,EACpB,cAAc,GACjB,GAAE,kBAAuB,2CAmDzB"}
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
+ import { memo, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
4
4
  import { LuBell, LuCheck, LuExternalLink, LuLanguages, LuRefreshCw, LuTrash2, } from 'react-icons/lu';
5
5
  import { AppShell, AppShellContent, AppShellHeader, AppSidebar, IconButton, Menu, OrcestrUiProvider, ScrollArea, useOrcestrTheme, useToast, } from '..';
6
6
  import { LayoutSection, TextSection } from './ExampleBasicsSections';
@@ -50,9 +50,7 @@ function uiExampleSectionScrollTop(node, scrollRoot) {
50
50
  const maxTop = scrollRoot
51
51
  ? Math.max(0, scrollRoot.scrollHeight - scrollRoot.clientHeight)
52
52
  : Number.POSITIVE_INFINITY;
53
- const targetTop = scrollRoot
54
- ? uiExampleSectionAbsoluteTop(node, scrollRoot)
55
- : node.offsetTop;
53
+ const targetTop = scrollRoot ? uiExampleSectionAbsoluteTop(node, scrollRoot) : node.offsetTop;
56
54
  return Math.min(maxTop, Math.max(0, targetTop - UI_EXAMPLE_SCROLL_LEAD));
57
55
  }
58
56
  function uiExampleSectionAbsoluteTop(node, scrollRoot) {
@@ -186,7 +184,7 @@ function UiExampleContent({ activePresetId, onThemePresetChange, onThemeOverride
186
184
  },
187
185
  ];
188
186
  }, [locale, toast]);
189
- return (_jsxs(AppShell, { sidebarOpen: mobileNavOpen, onSidebarOpenChange: setMobileNavOpen, header: _jsx(AppShellHeader, { sidebarOpen: mobileNavOpen, onSidebarOpenChange: setMobileNavOpen, navigationVisibility: 'mobile', actions: _jsx(UiExampleHeaderActions, { compact: true, locale: locale, onLocaleChange: onLocaleChange }) }), sidebar: _jsx(UiExampleSidebar, { onNavigate: () => setMobileNavOpen(false) }), children: [_jsxs("div", { className: 'oui-ui-workspace', children: [_jsx("div", { className: 'oui-ui-workspace-main', children: _jsxs(AppShellContent, { children: [_jsx(ExampleThemePlayground, { activePresetId: activePresetId, theme: theme, locale: locale, onPresetChange: onThemePresetChange, onThemeOverridesChange: onThemeOverridesChange }), _jsx(MemoFoundationsSection, { onOpenCode: setCodeExample }), _jsx(MemoTextSection, { onOpenCode: setCodeExample }), _jsx(MemoIconTextSection, { onOpenCode: setCodeExample }), _jsx(MemoLayoutSection, { onOpenCode: setCodeExample }), _jsx(MemoActionsSection, { menuItems: menuItems, onOpenCode: setCodeExample, onOpenPalette: openPalette }), _jsx(MemoFieldsSection, { stepperValue: stepperValue, onStepperValueChange: setStepperValue, dateValue: dateValue, onDateValueChange: setDateValue, dateRange: dateRange, onDateRangeChange: setDateRange, onOpenCode: setCodeExample }), _jsx(MemoSelectionSection, { locale: locale, segment: segment, onSegmentChange: setSegment, selectValue: selectValue, onSelectValueChange: setSelectValue, selectNoChevronValue: selectNoChevronValue, onSelectNoChevronValueChange: setSelectNoChevronValue, selectPlainValue: selectPlainValue, onSelectPlainValueChange: setSelectPlainValue, comboValue: comboValue, onComboValueChange: setComboValue, entityValue: entityValue, onEntityValueChange: setEntityValue, paginatedValue: paginatedValue, onPaginatedValueChange: setPaginatedValue, ownerValues: ownerValues, onOwnerValuesChange: setOwnerValues, radioValue: radioValue, onRadioValueChange: setRadioValue, tabValue: tabValue, onTabValueChange: setTabValue, onOpenCode: setCodeExample, onToast: toast.push }), _jsx(MemoStateCardSection, { onOpenCode: setCodeExample }), _jsx(MemoBadgeSection, { onOpenCode: setCodeExample }), _jsx(MemoDataSection, { onOpenCode: setCodeExample }), _jsx(MemoOverlaysSection, { setModalOpen: setModalOpen, setBlurModalOpen: setBlurModalOpen, setFastModalOpen: setFastModalOpen, setRiseModalOpen: setRiseModalOpen, setSlowModalOpen: setSlowModalOpen, setDangerModalOpen: setDangerModalOpen, onOpenCode: setCodeExample }), _jsx(MemoApplicationSection, { onOpenCode: setCodeExample })] }) }), _jsx(UiExampleThemeRail, { activePresetId: activePresetId, locale: locale, onThemePresetChange: onThemePresetChange })] }), _jsx(CodePreviewModal, { example: codeExample, onClose: () => setCodeExample(null) }), _jsx(ExampleOverlays, { locale: locale, modalOpen: modalOpen, setModalOpen: setModalOpen, nestedOpen: nestedOpen, setNestedOpen: setNestedOpen, blurModalOpen: blurModalOpen, setBlurModalOpen: setBlurModalOpen, blurNestedOpen: blurNestedOpen, setBlurNestedOpen: setBlurNestedOpen, blurFinalOpen: blurFinalOpen, setBlurFinalOpen: setBlurFinalOpen, fastModalOpen: fastModalOpen, setFastModalOpen: setFastModalOpen, slowModalOpen: slowModalOpen, setSlowModalOpen: setSlowModalOpen, riseModalOpen: riseModalOpen, setRiseModalOpen: setRiseModalOpen, dangerModalOpen: dangerModalOpen, setDangerModalOpen: setDangerModalOpen, paletteOpen: paletteOpen, setPaletteOpen: setPaletteOpen, onToast: toast.push })] }));
187
+ return (_jsxs(AppShell, { sidebarOpen: mobileNavOpen, onSidebarOpenChange: setMobileNavOpen, header: _jsx(AppShellHeader, { sidebarOpen: mobileNavOpen, onSidebarOpenChange: setMobileNavOpen, navigationVisibility: "mobile", actions: _jsx(UiExampleHeaderActions, { compact: true, locale: locale, onLocaleChange: onLocaleChange }) }), sidebar: _jsx(UiExampleSidebar, { onNavigate: () => setMobileNavOpen(false) }), children: [_jsxs("div", { className: "oui-ui-workspace", children: [_jsx("div", { className: "oui-ui-workspace-main", children: _jsxs(AppShellContent, { children: [_jsx(ExampleThemePlayground, { activePresetId: activePresetId, theme: theme, locale: locale, onPresetChange: onThemePresetChange, onThemeOverridesChange: onThemeOverridesChange }), _jsx(MemoFoundationsSection, { onOpenCode: setCodeExample }), _jsx(MemoTextSection, { onOpenCode: setCodeExample }), _jsx(MemoIconTextSection, { onOpenCode: setCodeExample }), _jsx(MemoLayoutSection, { onOpenCode: setCodeExample }), _jsx(MemoActionsSection, { menuItems: menuItems, onOpenCode: setCodeExample, onOpenPalette: openPalette }), _jsx(MemoFieldsSection, { stepperValue: stepperValue, onStepperValueChange: setStepperValue, dateValue: dateValue, onDateValueChange: setDateValue, dateRange: dateRange, onDateRangeChange: setDateRange, onOpenCode: setCodeExample }), _jsx(MemoSelectionSection, { locale: locale, segment: segment, onSegmentChange: setSegment, selectValue: selectValue, onSelectValueChange: setSelectValue, selectNoChevronValue: selectNoChevronValue, onSelectNoChevronValueChange: setSelectNoChevronValue, selectPlainValue: selectPlainValue, onSelectPlainValueChange: setSelectPlainValue, comboValue: comboValue, onComboValueChange: setComboValue, entityValue: entityValue, onEntityValueChange: setEntityValue, paginatedValue: paginatedValue, onPaginatedValueChange: setPaginatedValue, ownerValues: ownerValues, onOwnerValuesChange: setOwnerValues, radioValue: radioValue, onRadioValueChange: setRadioValue, tabValue: tabValue, onTabValueChange: setTabValue, onOpenCode: setCodeExample, onToast: toast.push }), _jsx(MemoStateCardSection, { onOpenCode: setCodeExample }), _jsx(MemoBadgeSection, { onOpenCode: setCodeExample }), _jsx(MemoDataSection, { onOpenCode: setCodeExample }), _jsx(MemoOverlaysSection, { setModalOpen: setModalOpen, setBlurModalOpen: setBlurModalOpen, setFastModalOpen: setFastModalOpen, setRiseModalOpen: setRiseModalOpen, setSlowModalOpen: setSlowModalOpen, setDangerModalOpen: setDangerModalOpen, onOpenCode: setCodeExample }), _jsx(MemoApplicationSection, { onOpenCode: setCodeExample })] }) }), _jsx(UiExampleThemeRail, { activePresetId: activePresetId, locale: locale, onThemePresetChange: onThemePresetChange })] }), _jsx(CodePreviewModal, { example: codeExample, onClose: () => setCodeExample(null) }), _jsx(ExampleOverlays, { locale: locale, modalOpen: modalOpen, setModalOpen: setModalOpen, nestedOpen: nestedOpen, setNestedOpen: setNestedOpen, blurModalOpen: blurModalOpen, setBlurModalOpen: setBlurModalOpen, blurNestedOpen: blurNestedOpen, setBlurNestedOpen: setBlurNestedOpen, blurFinalOpen: blurFinalOpen, setBlurFinalOpen: setBlurFinalOpen, fastModalOpen: fastModalOpen, setFastModalOpen: setFastModalOpen, slowModalOpen: slowModalOpen, setSlowModalOpen: setSlowModalOpen, riseModalOpen: riseModalOpen, setRiseModalOpen: setRiseModalOpen, dangerModalOpen: dangerModalOpen, setDangerModalOpen: setDangerModalOpen, paletteOpen: paletteOpen, setPaletteOpen: setPaletteOpen, onToast: toast.push })] }));
190
188
  }
191
189
  function UiExampleThemeRail({ activePresetId, locale, onThemePresetChange, }) {
192
190
  const presets = useMemo(() => {
@@ -202,7 +200,7 @@ function UiExampleThemeRail({ activePresetId, locale, onThemePresetChange, }) {
202
200
  }
203
201
  return next;
204
202
  }, []);
205
- return (_jsxs("aside", { className: 'oui-ui-theme-rail', "aria-label": 'Theme presets', children: [_jsx("div", { className: 'oui-ui-theme-rail-title', children: "Themes" }), _jsx(ScrollArea, { className: 'oui-ui-theme-rail-scroll', highlights: true, highlightColor: 'var(--oui-ui-theme-rail-highlight-bg)', highlightTop: {
203
+ return (_jsxs("aside", { className: "oui-ui-theme-rail", "aria-label": "Theme presets", children: [_jsx("div", { className: "oui-ui-theme-rail-title", children: "Themes" }), _jsx(ScrollArea, { className: "oui-ui-theme-rail-scroll", highlights: true, highlightColor: "var(--oui-ui-theme-rail-highlight-bg)", highlightTop: {
206
204
  start: 18,
207
205
  fadeDistance: 90,
208
206
  maxOpacity: 0.94,
@@ -210,7 +208,7 @@ function UiExampleThemeRail({ activePresetId, locale, onThemePresetChange, }) {
210
208
  start: 12,
211
209
  fadeDistance: 90,
212
210
  maxOpacity: 0.94,
213
- }, children: _jsx("div", { className: 'oui-ui-theme-rail-list', children: presets.map((preset) => (_jsxs("button", { type: 'button', className: 'oui-ui-theme-rail-item', "data-active": activePresetId === preset.id ? 'true' : undefined, style: themePresetPreviewStyle(preset), onClick: () => onThemePresetChange(preset), children: [_jsxs("span", { className: 'oui-ui-theme-rail-preview', "aria-hidden": true, children: [_jsx("span", {}), _jsx("span", {})] }), _jsx("span", { className: 'oui-ui-theme-rail-name', children: themePresetLabel(preset, locale) })] }, preset.id))) }) })] }));
211
+ }, children: _jsx("div", { className: "oui-ui-theme-rail-list", children: presets.map((preset) => (_jsxs("button", { type: "button", className: "oui-ui-theme-rail-item", "data-active": activePresetId === preset.id ? 'true' : undefined, style: themePresetPreviewStyle(preset), onClick: () => onThemePresetChange(preset), children: [_jsxs("span", { className: "oui-ui-theme-rail-preview", "aria-hidden": true, children: [_jsx("span", {}), _jsx("span", {})] }), _jsx("span", { className: "oui-ui-theme-rail-name", children: themePresetLabel(preset, locale) })] }, preset.id))) }) })] }));
214
212
  }
215
213
  function UiExampleSidebar({ onNavigate }) {
216
214
  const [activeSection, setActiveSection] = useState('theme');
@@ -219,7 +217,7 @@ function UiExampleSidebar({ onNavigate }) {
219
217
  const scrollNavigationReleaseTimerRef = useRef(null);
220
218
  const setActiveSectionValue = useCallback((id) => {
221
219
  activeSectionRef.current = id;
222
- setActiveSection((current) => current === id ? current : id);
220
+ setActiveSection((current) => (current === id ? current : id));
223
221
  }, []);
224
222
  const lockScrollNavigationTarget = useCallback((id) => {
225
223
  scrollNavigationTargetRef.current = id;
@@ -260,15 +258,13 @@ function UiExampleSidebar({ onNavigate }) {
260
258
  }
261
259
  return;
262
260
  }
263
- const bottomDistance = scrollRoot.scrollHeight
264
- - scrollRoot.clientHeight
265
- - scrollRoot.scrollTop;
261
+ const bottomDistance = scrollRoot.scrollHeight - scrollRoot.clientHeight - scrollRoot.scrollTop;
266
262
  const top = scrollRoot.scrollTop + UI_EXAMPLE_ACTIVE_PROBE_OFFSET;
267
263
  const next = bottomDistance <= 2
268
264
  ? nodes.at(-1)?.id
269
- : nodes
265
+ : (nodes
270
266
  .filter((node) => uiExampleSectionAbsoluteTop(node, scrollRoot) <= top)
271
- .at(-1)?.id ?? nodes[0]?.id;
267
+ .at(-1)?.id ?? nodes[0]?.id);
272
268
  if (next && next !== activeSectionRef.current)
273
269
  setActiveSectionValue(next);
274
270
  };
@@ -304,10 +300,10 @@ function UiExampleSidebar({ onNavigate }) {
304
300
  onSelect: () => navigateToSection(item.id),
305
301
  })),
306
302
  })), [activeSection, navigateToSection]);
307
- return (_jsx(AppSidebar, { className: 'oui-ui-main-sidebar', header: _jsx(UiExampleBrand, {}), itemH: 34, groups: sidebarNavGroups }));
303
+ return (_jsx(AppSidebar, { className: "oui-ui-main-sidebar", header: _jsx(UiExampleBrand, {}), itemH: 34, groups: sidebarNavGroups }));
308
304
  }
309
305
  function UiExampleBrand({ compact = false }) {
310
- return (_jsxs("div", { className: 'oui-ui-brand', "data-compact": compact ? 'true' : undefined, children: [_jsx("span", { className: 'oui-ui-brand-mark', "aria-hidden": 'true', children: _jsx("img", { className: 'oui-ui-brand-logo', src: ORCESTR_LOGO_SRC, alt: '' }) }), _jsx("span", { className: 'oui-ui-brand-text', children: _jsx("strong", { children: "Orcestr UI" }) })] }));
306
+ return (_jsxs("div", { className: "oui-ui-brand", "data-compact": compact ? 'true' : undefined, children: [_jsx("span", { className: "oui-ui-brand-mark", "aria-hidden": "true", children: _jsx("img", { className: "oui-ui-brand-logo", src: ORCESTR_LOGO_SRC, alt: "" }) }), _jsx("span", { className: "oui-ui-brand-text", children: _jsx("strong", { children: "Orcestr UI" }) })] }));
311
307
  }
312
308
  function UiExampleHeaderActions({ compact = false, locale, onLocaleChange, }) {
313
309
  const languageItems = useMemo(() => [
@@ -324,7 +320,7 @@ function UiExampleHeaderActions({ compact = false, locale, onLocaleChange, }) {
324
320
  onSelect: () => onLocaleChange('en'),
325
321
  },
326
322
  ], [locale, onLocaleChange]);
327
- return (_jsxs("div", { className: 'oui-ui-header-actions', "data-compact": compact ? 'true' : undefined, children: [_jsx(Menu, { items: languageItems, trigger: _jsx(IconButton, { className: 'oui-ui-language-button', size: 2, v: 'pad', icon: _jsx(LuLanguages, { size: 16 }), "aria-label": `Language: ${locale.toUpperCase()}` }) }), _jsxs("a", { className: 'oui-ui-header-link', href: 'https://github.com/Artasov/orcestr', target: '_blank', rel: 'noreferrer', children: [_jsx(LuExternalLink, { size: 14, "aria-hidden": true }), _jsx("span", { children: "GitHub" })] })] }));
323
+ return (_jsxs("div", { className: "oui-ui-header-actions", "data-compact": compact ? 'true' : undefined, children: [_jsx(Menu, { items: languageItems, trigger: _jsx(IconButton, { className: "oui-ui-language-button", size: 2, v: "pad", icon: _jsx(LuLanguages, { size: 16 }), "aria-label": `Language: ${locale.toUpperCase()}` }) }), _jsxs("a", { className: "oui-ui-header-link", href: "https://github.com/Artasov/orcestr", target: "_blank", rel: "noreferrer", children: [_jsx(LuExternalLink, { size: 14, "aria-hidden": true }), _jsx("span", { children: "GitHub" })] })] }));
328
324
  }
329
325
  export function UiExamplePage({ locale: controlledLocale, defaultLocale = 'ru', onLocaleChange, } = {}) {
330
326
  const firstPreset = getThemePlaygroundPreset('orcestr-dark');
@@ -1 +1 @@
1
- {"version":3,"file":"UiExampleSection.d.ts","sourceRoot":"","sources":["../../src/example/UiExampleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAIrC,wBAAgB,gBAAgB,CAAC,EAC7B,EAAE,EACF,KAAK,EACL,WAAW,EACX,QAAQ,GACX,EAAE;IACC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACvB,2CAcA"}
1
+ {"version":3,"file":"UiExampleSection.d.ts","sourceRoot":"","sources":["../../src/example/UiExampleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,gBAAgB,CAAC,EAC7B,EAAE,EACF,KAAK,EACL,WAAW,EACX,QAAQ,GACX,EAAE;IACC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACvB,2CAYA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Section } from '../components/Section/Section';
3
3
  export function UiExampleSection({ id, title, description, children, }) {
4
- return (_jsxs(Section, { id: id, className: 'oui-ui-section', children: [_jsx("div", { className: 'oui-ui-section-head', children: _jsxs("div", { children: [_jsx("h2", { className: 'oui-ui-section-title', children: title }), description ? (_jsx("p", { className: 'oui-ui-description', children: description })) : null] }) }), children] }));
4
+ return (_jsxs(Section, { id: id, className: "oui-ui-section", children: [_jsx("div", { className: "oui-ui-section-head", children: _jsxs("div", { children: [_jsx("h2", { className: "oui-ui-section-title", children: title }), description ? _jsx("p", { className: "oui-ui-description", children: description }) : null] }) }), children] }));
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"codeSamples.d.ts","sourceRoot":"","sources":["../../src/example/codeSamples.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq6Cc,CAAC"}
1
+ {"version":3,"file":"codeSamples.d.ts","sourceRoot":"","sources":["../../src/example/codeSamples.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAs6CU,CAAC"}