@orcestr/ui 0.0.3 → 0.1.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 (184) hide show
  1. package/dist/components/Alert/Alert.d.ts +5 -4
  2. package/dist/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/components/Alert/Alert.js +5 -2
  4. package/dist/components/AppShell/AppShell.d.ts +13 -0
  5. package/dist/components/AppShell/AppShell.d.ts.map +1 -1
  6. package/dist/components/AppShell/AppShell.js +14 -9
  7. package/dist/components/AppSidebar/AppSidebar.d.ts +36 -0
  8. package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -0
  9. package/dist/components/AppSidebar/AppSidebar.js +117 -0
  10. package/dist/components/Badge/Badge.d.ts +8 -6
  11. package/dist/components/Badge/Badge.d.ts.map +1 -1
  12. package/dist/components/Badge/Badge.js +4 -4
  13. package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts +22 -0
  14. package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -0
  15. package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +50 -0
  16. package/dist/components/Box/Box.d.ts +2 -0
  17. package/dist/components/Box/Box.d.ts.map +1 -1
  18. package/dist/components/Box/Box.js +15 -2
  19. package/dist/components/Button/Button.d.ts +7 -3
  20. package/dist/components/Button/Button.d.ts.map +1 -1
  21. package/dist/components/Button/Button.js +23 -3
  22. package/dist/components/Card/Card.d.ts +26 -0
  23. package/dist/components/Card/Card.d.ts.map +1 -0
  24. package/dist/components/Card/Card.js +25 -0
  25. package/dist/components/Checkbox/Checkbox.d.ts +6 -2
  26. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  27. package/dist/components/Checkbox/Checkbox.js +13 -4
  28. package/dist/components/Collapse/Collapse.d.ts.map +1 -1
  29. package/dist/components/Collapse/Collapse.js +5 -25
  30. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  31. package/dist/components/CommandPalette/CommandPalette.js +10 -9
  32. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
  33. package/dist/components/ConfirmDialog/ConfirmDialog.js +5 -2
  34. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  35. package/dist/components/ContextMenu/ContextMenu.js +2 -2
  36. package/dist/components/CopyButton/CopyButton.d.ts +24 -0
  37. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
  38. package/dist/components/CopyButton/CopyButton.js +81 -0
  39. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  40. package/dist/components/DatePicker/DatePicker.js +9 -1
  41. package/dist/components/Dialog/Dialog.d.ts +69 -1
  42. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  43. package/dist/components/Dialog/Dialog.js +48 -1
  44. package/dist/components/Drawer/Drawer.d.ts +2 -1
  45. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  46. package/dist/components/Drawer/Drawer.js +4 -4
  47. package/dist/components/EntityPicker/EntityPicker.d.ts +2 -1
  48. package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
  49. package/dist/components/EntityPicker/EntityPicker.js +2 -2
  50. package/dist/components/Flex/Flex.d.ts +5 -1
  51. package/dist/components/Flex/Flex.d.ts.map +1 -1
  52. package/dist/components/Flex/Flex.js +16 -3
  53. package/dist/components/Grid/Grid.d.ts +9 -2
  54. package/dist/components/Grid/Grid.d.ts.map +1 -1
  55. package/dist/components/Grid/Grid.js +22 -1
  56. package/dist/components/IconButton/IconButton.d.ts +19 -7
  57. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  58. package/dist/components/IconButton/IconButton.js +40 -5
  59. package/dist/components/IconTextButton/IconTextButton.d.ts +20 -0
  60. package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -0
  61. package/dist/components/IconTextButton/IconTextButton.js +24 -0
  62. package/dist/components/InlineEdit/InlineEdit.d.ts +63 -0
  63. package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -0
  64. package/dist/components/InlineEdit/InlineEdit.js +98 -0
  65. package/dist/components/LinkButton/LinkButton.d.ts +25 -0
  66. package/dist/components/LinkButton/LinkButton.d.ts.map +1 -0
  67. package/dist/components/LinkButton/LinkButton.js +12 -0
  68. package/dist/components/Modal/Modal.d.ts +29 -6
  69. package/dist/components/Modal/Modal.d.ts.map +1 -1
  70. package/dist/components/Modal/Modal.js +37 -13
  71. package/dist/components/Overlay/OverlayProvider.d.ts +1 -0
  72. package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
  73. package/dist/components/Overlay/OverlayProvider.js +18 -1
  74. package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts +2 -1
  75. package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
  76. package/dist/components/PaginatedCombobox/PaginatedCombobox.js +3 -3
  77. package/dist/components/Popover/Popover.d.ts +37 -3
  78. package/dist/components/Popover/Popover.d.ts.map +1 -1
  79. package/dist/components/Popover/Popover.js +56 -9
  80. package/dist/components/ScrollArea/ScrollArea.d.ts +4 -0
  81. package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  82. package/dist/components/ScrollArea/ScrollArea.js +30 -4
  83. package/dist/components/Section/Section.d.ts +2 -0
  84. package/dist/components/Section/Section.d.ts.map +1 -1
  85. package/dist/components/SegmentedControl/SegmentedControl.d.ts +24 -1
  86. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  87. package/dist/components/SegmentedControl/SegmentedControl.js +28 -2
  88. package/dist/components/Select/Select.d.ts +36 -4
  89. package/dist/components/Select/Select.d.ts.map +1 -1
  90. package/dist/components/Select/Select.js +70 -3
  91. package/dist/components/Separator/Separator.d.ts +3 -1
  92. package/dist/components/Separator/Separator.d.ts.map +1 -1
  93. package/dist/components/Separator/Separator.js +4 -2
  94. package/dist/components/SpecialModal/SpecialModal.d.ts +43 -0
  95. package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -0
  96. package/dist/components/SpecialModal/SpecialModal.js +34 -0
  97. package/dist/components/Spinner/Spinner.d.ts +3 -1
  98. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  99. package/dist/components/Spinner/Spinner.js +2 -2
  100. package/dist/components/State/State.d.ts +8 -1
  101. package/dist/components/State/State.d.ts.map +1 -1
  102. package/dist/components/State/State.js +2 -2
  103. package/dist/components/Switch/Switch.d.ts +2 -0
  104. package/dist/components/Switch/Switch.d.ts.map +1 -1
  105. package/dist/components/Switch/Switch.js +2 -1
  106. package/dist/components/Table/Table.d.ts +64 -0
  107. package/dist/components/Table/Table.d.ts.map +1 -0
  108. package/dist/components/Table/Table.js +38 -0
  109. package/dist/components/Tabs/Tabs.d.ts +33 -2
  110. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  111. package/dist/components/Tabs/Tabs.js +201 -5
  112. package/dist/components/Text/Text.d.ts +13 -3
  113. package/dist/components/Text/Text.d.ts.map +1 -1
  114. package/dist/components/Text/Text.js +16 -3
  115. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  116. package/dist/components/TextArea/TextArea.js +1 -1
  117. package/dist/components/TextField/TextField.d.ts.map +1 -1
  118. package/dist/components/TextField/TextField.js +1 -1
  119. package/dist/components/Toast/Toast.d.ts +1 -4
  120. package/dist/components/Toast/Toast.d.ts.map +1 -1
  121. package/dist/components/Toast/Toast.js +72 -37
  122. package/dist/components/Tooltip/Tooltip.d.ts +11 -3
  123. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  124. package/dist/components/Tooltip/Tooltip.js +58 -9
  125. package/dist/example/CodePreview.d.ts +2 -1
  126. package/dist/example/CodePreview.d.ts.map +1 -1
  127. package/dist/example/CodePreview.js +16 -51
  128. package/dist/example/ExampleActionsSection.d.ts.map +1 -1
  129. package/dist/example/ExampleActionsSection.js +3 -3
  130. package/dist/example/ExampleApplicationSection.d.ts +7 -0
  131. package/dist/example/ExampleApplicationSection.d.ts.map +1 -0
  132. package/dist/example/ExampleApplicationSection.js +88 -0
  133. package/dist/example/ExampleBasicsSections.d.ts +1 -1
  134. package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
  135. package/dist/example/ExampleBasicsSections.js +15 -13
  136. package/dist/example/ExampleDataSection.d.ts.map +1 -1
  137. package/dist/example/ExampleDataSection.js +31 -30
  138. package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
  139. package/dist/example/ExampleFieldsSection.js +51 -3
  140. package/dist/example/ExampleFoundationsSection.js +1 -1
  141. package/dist/example/ExampleOverlays.d.ts.map +1 -1
  142. package/dist/example/ExampleOverlays.js +7 -2
  143. package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
  144. package/dist/example/ExampleOverlaysSection.js +20 -30
  145. package/dist/example/ExampleSelectionSection.d.ts +3 -1
  146. package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
  147. package/dist/example/ExampleSelectionSection.js +10 -3
  148. package/dist/example/ExampleStateSection.d.ts +3 -0
  149. package/dist/example/ExampleStateSection.d.ts.map +1 -1
  150. package/dist/example/ExampleStateSection.js +65 -9
  151. package/dist/example/ExampleThemePlayground.d.ts +84 -54
  152. package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
  153. package/dist/example/ExampleThemePlayground.js +129 -63
  154. package/dist/example/UiExamplePage.d.ts.map +1 -1
  155. package/dist/example/UiExamplePage.js +39 -19
  156. package/dist/example/codeSamples.d.ts +8 -1
  157. package/dist/example/codeSamples.d.ts.map +1 -1
  158. package/dist/example/codeSamples.js +590 -119
  159. package/dist/example/exampleData.d.ts.map +1 -1
  160. package/dist/example/exampleData.js +18 -10
  161. package/dist/example/styles.css +277 -146
  162. package/dist/hooks/useFloatingPosition.js +1 -1
  163. package/dist/hooks/usePresence.d.ts.map +1 -1
  164. package/dist/hooks/usePresence.js +9 -7
  165. package/dist/index.d.ts +9 -1
  166. package/dist/index.d.ts.map +1 -1
  167. package/dist/index.js +9 -1
  168. package/dist/styles/orcestr-ui.css +3002 -872
  169. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  170. package/dist/theme/ThemeProvider.js +109 -53
  171. package/dist/theme/defaultTheme.d.ts.map +1 -1
  172. package/dist/theme/defaultTheme.js +356 -223
  173. package/dist/theme/systemProps.d.ts +48 -28
  174. package/dist/theme/systemProps.d.ts.map +1 -1
  175. package/dist/theme/systemProps.js +103 -1
  176. package/dist/theme/themeTypes.d.ts +44 -35
  177. package/dist/theme/themeTypes.d.ts.map +1 -1
  178. package/dist/utils/slot.d.ts +11 -0
  179. package/dist/utils/slot.d.ts.map +1 -0
  180. package/dist/utils/slot.js +18 -0
  181. package/package.json +4 -1
  182. package/dist/components/Workflow/Workflow.d.ts +0 -82
  183. package/dist/components/Workflow/Workflow.d.ts.map +0 -1
  184. package/dist/components/Workflow/Workflow.js +0 -73
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from 'react';
2
- import type { UiSize } from '../../theme/systemProps';
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ import { type SystemProps, type UiSize } from '../../theme/systemProps';
3
3
  export type SelectItem<V extends string = string> = {
4
4
  value: V;
5
5
  label: ReactNode;
@@ -7,7 +7,7 @@ export type SelectItem<V extends string = string> = {
7
7
  triggerLabel?: ReactNode;
8
8
  disabled?: boolean;
9
9
  };
10
- export declare function Select<V extends string = string>({ items, value, onValueChange, placeholder, selectedFallbackLabel, clearable, disabled, emptyText, size, maxHeight, onClear, className, showChevron, clearLabel, testId, }: {
10
+ export declare function Select<V extends string = string>({ items, value, onValueChange, placeholder, selectedFallbackLabel, clearable, disabled, emptyText, size, maxHeight, onClear, className, style, showChevron, clearLabel, testId, ...props }: {
11
11
  items: ReadonlyArray<SelectItem<V>>;
12
12
  value: V | null;
13
13
  onValueChange: (value: V | null) => void;
@@ -20,8 +20,40 @@ export declare function Select<V extends string = string>({ items, value, onValu
20
20
  maxHeight?: number;
21
21
  onClear?: () => void;
22
22
  className?: string;
23
+ style?: CSSProperties;
23
24
  showChevron?: boolean;
24
25
  clearLabel?: string;
25
26
  testId?: string;
26
- }): import("react/jsx-runtime").JSX.Element;
27
+ } & SystemProps): import("react/jsx-runtime").JSX.Element;
28
+ type SelectRootProps<V extends string = string> = {
29
+ value: V | null;
30
+ onValueChange?: (value: V) => void;
31
+ disabled?: boolean;
32
+ children: ReactNode;
33
+ };
34
+ type SelectTriggerProps = {
35
+ placeholder?: string;
36
+ style?: CSSProperties;
37
+ width?: number | string;
38
+ size?: UiSize;
39
+ };
40
+ type SelectContentProps = {
41
+ children: ReactNode;
42
+ };
43
+ type SelectItemProps<V extends string = string> = {
44
+ value: V;
45
+ disabled?: boolean;
46
+ children: ReactNode;
47
+ };
48
+ declare function SelectRoot<V extends string = string>({ value, onValueChange, disabled, children, }: SelectRootProps<V>): import("react/jsx-runtime").JSX.Element;
49
+ declare function SelectTrigger(_props: SelectTriggerProps): null;
50
+ declare function SelectContent(_props: SelectContentProps): null;
51
+ declare function SelectItem<V extends string = string>(_props: SelectItemProps<V>): null;
52
+ export declare namespace Select {
53
+ const Root: typeof SelectRoot;
54
+ const Trigger: typeof SelectTrigger;
55
+ const Content: typeof SelectContent;
56
+ const Item: typeof SelectItem;
57
+ }
58
+ export {};
27
59
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EAQH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAKpD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAChD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAC9C,KAAK,EACL,KAAK,EACL,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,SAAS,EACT,IAAQ,EACR,SAAe,EACf,OAAO,EACP,SAAS,EACT,WAAkB,EAClB,UAAU,EACV,MAAM,GACT,EAAE;IACC,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAoNA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EASH,KAAK,aAAa,EAGlB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAKxF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAChD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,SA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QAAQ,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9C,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,iBAAS,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAC3C,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,GACX,EAAE,eAAe,CAAC,CAAC,CAAC,2CAsBpB;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,kBAAkB,QAEhD;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,kBAAkB,QAEhD;AAED,iBAAS,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,QAExE;AAwCD,yBAAiB,MAAM,CAAC;IACb,MAAM,IAAI,mBAAa,CAAC;IACxB,MAAM,OAAO,sBAAgB,CAAC;IAC9B,MAAM,OAAO,sBAAgB,CAAC;IAC9B,MAAM,IAAI,mBAAa,CAAC;CAClC"}
@@ -1,13 +1,14 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useCallback, useEffect, useId, useMemo, useRef, useState, } from 'react';
3
+ import { useCallback, useEffect, useId, useMemo, useRef, useState, Children, isValidElement, } from 'react';
4
4
  import { LuCheck, LuChevronsUpDown, LuX } from 'react-icons/lu';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Popover } from '../Popover/Popover';
7
+ import { splitSystemProps } from '../../theme/systemProps';
7
8
  import { useOrcestrUiLocale } from '../../locale/LocaleProvider';
8
9
  import { useListNavigation } from '../../hooks/useListNavigation';
9
10
  import { useTypeahead } from '../../hooks/useTypeahead';
10
- export function Select({ items, value, onValueChange, placeholder, selectedFallbackLabel, clearable = false, disabled = false, emptyText, size = 3, maxHeight = 280, onClear, className, showChevron = true, clearLabel, testId, }) {
11
+ export function Select({ items, value, onValueChange, placeholder, selectedFallbackLabel, clearable = false, disabled = false, emptyText, size = 3, maxHeight = 280, onClear, className, style, showChevron = true, clearLabel, testId, ...props }) {
11
12
  const { copy } = useOrcestrUiLocale();
12
13
  const actualPlaceholder = placeholder ?? copy.common.selectValue;
13
14
  const actualEmptyText = emptyText ?? copy.common.noOptions;
@@ -89,11 +90,12 @@ export function Select({ items, value, onValueChange, placeholder, selectedFallb
89
90
  const hasSelectedValue = value !== null;
90
91
  const canClear = clearable && hasSelectedValue && !disabled;
91
92
  const triggerLabel = selected?.triggerLabel ?? selected?.label ?? selectedFallbackLabel ?? null;
93
+ const { systemStyle } = splitSystemProps(props);
92
94
  return (_jsx(Popover, { open: open, onOpenChange: (next) => {
93
95
  setOpen(next);
94
96
  if (!next)
95
97
  navigation.reset();
96
- }, trigger: _jsx(Button, { type: 'button', v: 'surface', size: size, disabled: disabled, fullWidth: true, pressAnimation: 'none', className: 'oui-combobox-trigger', "data-state": open ? 'open' : 'closed', testId: testId, "aria-haspopup": 'listbox', "aria-expanded": open, "aria-controls": listboxId, onKeyDown: handleKeyDown, rightIcon: _jsxs("span", { className: 'oui-combobox-trigger-actions', children: [canClear ? (_jsx("span", { "aria-label": clearLabel ?? copy.common.clear, className: 'oui-combobox-clear', onPointerDown: (event) => {
98
+ }, trigger: _jsx(Button, { type: 'button', v: 'surface', size: size, disabled: disabled, fullWidth: true, pressAnimation: 'none', className: 'oui-combobox-trigger', "data-state": open ? 'open' : 'closed', testId: testId, style: { ...systemStyle, ...style }, "aria-haspopup": 'listbox', "aria-expanded": open, "aria-controls": listboxId, onKeyDown: handleKeyDown, rightIcon: _jsxs("span", { className: 'oui-combobox-trigger-actions', children: [canClear ? (_jsx("span", { "aria-label": clearLabel ?? copy.common.clear, className: 'oui-combobox-clear', onPointerDown: (event) => {
97
99
  event.preventDefault();
98
100
  event.stopPropagation();
99
101
  }, onClick: (event) => {
@@ -117,6 +119,71 @@ export function Select({ items, value, onValueChange, placeholder, selectedFallb
117
119
  }, children: [_jsx("span", { className: 'oui-combobox-option-main', children: item.label }), isSelected ? (_jsx(LuCheck, { className: 'oui-combobox-check', size: 15 })) : null] }, item.value));
118
120
  })) }) }));
119
121
  }
122
+ function SelectRoot({ value, onValueChange, disabled, children, }) {
123
+ const trigger = findChild(children, SelectTrigger);
124
+ const content = findChild(children, SelectContent);
125
+ const items = collectSelectItems(content?.props.children);
126
+ const triggerStyle = {
127
+ ...trigger?.props.style,
128
+ width: trigger?.props.width,
129
+ };
130
+ return (_jsx(Select, { items: items, value: value, onValueChange: (next) => {
131
+ if (next !== null)
132
+ onValueChange?.(next);
133
+ }, disabled: disabled, placeholder: trigger?.props.placeholder, size: trigger?.props.size, style: triggerStyle }));
134
+ }
135
+ function SelectTrigger(_props) {
136
+ return null;
137
+ }
138
+ function SelectContent(_props) {
139
+ return null;
140
+ }
141
+ function SelectItem(_props) {
142
+ return null;
143
+ }
144
+ function collectSelectItems(children) {
145
+ const items = [];
146
+ Children.forEach(children, (child) => {
147
+ if (!isValidElement(child))
148
+ return;
149
+ if (child.type === SelectItem) {
150
+ const props = child.props;
151
+ items.push({
152
+ value: props.value,
153
+ label: props.children,
154
+ disabled: props.disabled,
155
+ });
156
+ }
157
+ else {
158
+ const props = child.props;
159
+ if (props && 'children' in props) {
160
+ items.push(...collectSelectItems(props.children));
161
+ }
162
+ }
163
+ });
164
+ return items;
165
+ }
166
+ function findChild(children, type) {
167
+ let found = null;
168
+ Children.forEach(children, (child) => {
169
+ if (!found && isValidElement(child) && child.type === type) {
170
+ found = child;
171
+ }
172
+ });
173
+ return found;
174
+ }
175
+ Object.assign(Select, {
176
+ Root: SelectRoot,
177
+ Trigger: SelectTrigger,
178
+ Content: SelectContent,
179
+ Item: SelectItem,
180
+ });
181
+ (function (Select) {
182
+ Select.Root = SelectRoot;
183
+ Select.Trigger = SelectTrigger;
184
+ Select.Content = SelectContent;
185
+ Select.Item = SelectItem;
186
+ })(Select || (Select = {}));
120
187
  function labelText(item) {
121
188
  if (item.searchText)
122
189
  return item.searchText;
@@ -1,4 +1,6 @@
1
- export declare function Separator({ orientation, className, testId, }: {
1
+ import type { HTMLAttributes } from 'react';
2
+ import { type SystemProps } from '../../theme/systemProps';
3
+ export declare function Separator({ orientation, className, style, testId, ...props }: HTMLAttributes<HTMLSpanElement> & SystemProps & {
2
4
  orientation?: 'horizontal' | 'vertical';
3
5
  className?: string;
4
6
  testId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.tsx"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,EACtB,WAA0B,EAC1B,SAAS,EACT,MAAM,GACT,EAAE;IACC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAUA"}
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAmB,KAAK,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAG3E,wBAAgB,SAAS,CAAC,EACtB,WAA0B,EAC1B,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,eAAe,CAAC,GAAG,WAAW,GAAG;IAC/C,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAaA"}
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { splitSystemProps } from '../../theme/systemProps';
2
3
  import { cn } from '../../utils/cn';
3
- export function Separator({ orientation = 'horizontal', className, testId, }) {
4
- return (_jsx("span", { className: cn('oui-separator', className), "data-orientation": orientation, "data-testid": testId, role: 'separator', "aria-orientation": orientation }));
4
+ export function Separator({ orientation = 'horizontal', className, style, testId, ...props }) {
5
+ const { systemStyle, restProps } = splitSystemProps(props);
6
+ return (_jsx("span", { className: cn('oui-separator', className), "data-orientation": orientation, "data-testid": testId, role: 'separator', "aria-orientation": orientation, style: { ...systemStyle, ...style }, ...restProps }));
5
7
  }
@@ -0,0 +1,43 @@
1
+ import { type ComponentPropsWithoutRef, type CSSProperties, type ReactNode } from 'react';
2
+ import { type ModalProps } from '../Modal/Modal';
3
+ export type SpecialModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
4
+ export type SpecialModalScroll = 'body' | 'content';
5
+ export type SpecialModalDensity = 'regular' | 'compact';
6
+ export type SpecialModalProps = Omit<ModalProps, 'maxWidth'> & {
7
+ size?: SpecialModalSize;
8
+ maxW?: number | string;
9
+ scroll?: SpecialModalScroll;
10
+ density?: SpecialModalDensity;
11
+ };
12
+ declare function SpecialModalRoot({ size, maxW, scroll, density, className, contentClassName, children, ...props }: SpecialModalProps): import("react/jsx-runtime").JSX.Element;
13
+ type SpecialModalPartProps = ComponentPropsWithoutRef<'div'> & {
14
+ testId?: string;
15
+ };
16
+ export type SpecialModalHeaderProps = SpecialModalPartProps & {
17
+ title?: ReactNode;
18
+ meta?: ReactNode;
19
+ actions?: ReactNode;
20
+ };
21
+ type SpecialModalCloseProps = Omit<ComponentPropsWithoutRef<'button'>, 'children'> & {
22
+ children?: ReactNode;
23
+ };
24
+ declare function SpecialModalClose({ className, children, 'aria-label': ariaLabel, ...props }: SpecialModalCloseProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare const SpecialModal: typeof SpecialModalRoot & {
26
+ Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
27
+ testId?: string;
28
+ } & {
29
+ title?: ReactNode;
30
+ meta?: ReactNode;
31
+ actions?: ReactNode;
32
+ } & import("react").RefAttributes<HTMLDivElement>>;
33
+ Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
+ testId?: string;
35
+ } & import("react").RefAttributes<HTMLDivElement>>;
36
+ Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
37
+ testId?: string;
38
+ } & import("react").RefAttributes<HTMLDivElement>>;
39
+ Close: typeof SpecialModalClose;
40
+ };
41
+ export type SpecialModalContentStyle = CSSProperties;
42
+ export {};
43
+ //# sourceMappingURL=SpecialModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialModal.d.ts","sourceRoot":"","sources":["../../../src/components/SpecialModal/SpecialModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAQ,KAAK,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,CAAC;AACpD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAUF,iBAAS,gBAAgB,CAAC,EACtB,IAAW,EACX,IAAI,EACJ,MAAe,EACf,OAAmB,EACnB,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,iBAAiB,2CAiBnB;AAED,KAAK,qBAAqB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,GAAG;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AA4DF,KAAK,sBAAsB,GAAG,IAAI,CAC9B,wBAAwB,CAAC,QAAQ,CAAC,EAClC,UAAU,CACb,GAAG;IACA,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,YAAY,EAAE,SAAmB,EACjC,GAAG,KAAK,EACX,EAAE,sBAAsB,2CAcxB;AAED,eAAO,MAAM,YAAY;;iBA/FZ,MAAM;;gBAIP,SAAS;eACV,SAAS;kBACN,SAAS;;;iBANV,MAAM;;;iBAAN,MAAM;;;CAoGjB,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC"}
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { forwardRef, } from 'react';
4
+ import { LuX } from 'react-icons/lu';
5
+ import { cn } from '../../utils/cn';
6
+ import { Modal } from '../Modal/Modal';
7
+ const sizeMaxWidth = {
8
+ sm: '420px',
9
+ md: '640px',
10
+ lg: '960px',
11
+ xl: 'min(1480px, calc(100vw - 48px))',
12
+ full: 'calc(100vw - 48px)',
13
+ };
14
+ function SpecialModalRoot({ size = 'lg', maxW, scroll = 'body', density = 'regular', className, contentClassName, children, ...props }) {
15
+ return (_jsx(Modal, { ...props, maxWidth: maxW ?? sizeMaxWidth[size], className: cn('oui-special-modal-layer', className), contentClassName: cn('oui-special-modal', `oui-special-modal-size-${size}`, `oui-special-modal-scroll-${scroll}`, `oui-special-modal-density-${density}`, contentClassName), children: children }));
16
+ }
17
+ const SpecialModalHeader = forwardRef(function SpecialModalHeader({ className, title, meta, actions, children, testId, ...props }, ref) {
18
+ return (_jsx("div", { ref: ref, className: cn('oui-special-modal-header', className), "data-testid": testId, ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'oui-special-modal-title-wrap', children: [title ? (_jsx("h2", { className: 'oui-special-modal-title', children: title })) : null, meta ? (_jsx("div", { className: 'oui-special-modal-meta', children: meta })) : null] }), actions ? (_jsx("div", { className: 'oui-special-modal-actions', children: actions })) : null] })) }));
19
+ });
20
+ const SpecialModalBody = forwardRef(function SpecialModalBody({ className, testId, ...props }, ref) {
21
+ return (_jsx("div", { ref: ref, className: cn('oui-special-modal-body', className), "data-testid": testId, ...props }));
22
+ });
23
+ const SpecialModalFooter = forwardRef(function SpecialModalFooter({ className, testId, ...props }, ref) {
24
+ return (_jsx("div", { ref: ref, className: cn('oui-special-modal-footer', className), "data-testid": testId, ...props }));
25
+ });
26
+ function SpecialModalClose({ className, children, 'aria-label': ariaLabel = 'Close', ...props }) {
27
+ return (_jsx(Modal.Close, { ...props, className: cn('oui-icon-button oui-special-modal-close', className), "aria-label": ariaLabel, "data-size": '2', "data-variant": 'ghost', "data-tone": 'neutral', "data-round": 'true', children: children ?? _jsx(LuX, { size: 18 }) }));
28
+ }
29
+ export const SpecialModal = Object.assign(SpecialModalRoot, {
30
+ Header: SpecialModalHeader,
31
+ Body: SpecialModalBody,
32
+ Footer: SpecialModalFooter,
33
+ Close: SpecialModalClose,
34
+ });
@@ -1,7 +1,9 @@
1
1
  import type { UiSize } from '../../theme/systemProps';
2
- export declare function Spinner({ size, className, testId, }: {
2
+ import type { CSSProperties } from 'react';
3
+ export declare function Spinner({ size, className, style, testId, }: {
3
4
  size?: UiSize;
4
5
  className?: string;
6
+ style?: CSSProperties;
5
7
  testId?: string;
6
8
  }): import("react/jsx-runtime").JSX.Element;
7
9
  //# sourceMappingURL=Spinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAEpD,wBAAgB,OAAO,CAAC,EACpB,IAAQ,EACR,SAAS,EACT,MAAM,GACT,EAAE;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAEA"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,wBAAgB,OAAO,CAAC,EACpB,IAAQ,EACR,SAAS,EACT,KAAK,EACL,MAAM,GACT,EAAE;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAEA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from '../../utils/cn';
3
- export function Spinner({ size = 2, className, testId, }) {
4
- return _jsx("span", { className: cn('oui-spinner', className), "data-size": size, "data-testid": testId });
3
+ export function Spinner({ size = 2, className, style, testId, }) {
4
+ return _jsx("span", { className: cn('oui-spinner', className), "data-size": size, "data-testid": testId, style: style });
5
5
  }
@@ -1,18 +1,25 @@
1
1
  import type { HTMLAttributes, ReactNode } from 'react';
2
2
  import type { SystemProps, Tone } from '../../theme/systemProps';
3
+ import { type IconTextProps } from '../IconText/IconText';
4
+ import { type TextProps } from '../Text/Text';
3
5
  export type StateCardTone = Tone;
6
+ export type StateCardVariant = 'soft' | 'surface' | 'outline' | 'ghost';
4
7
  export type StateCardProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
5
8
  tone?: StateCardTone;
9
+ v?: StateCardVariant;
6
10
  icon?: ReactNode;
11
+ iconTone?: IconTextProps['iconTone'];
7
12
  title?: ReactNode;
13
+ titleTone?: TextProps['tone'];
8
14
  description?: ReactNode;
15
+ descriptionTone?: TextProps['tone'];
9
16
  titleFs?: SystemProps['fs'];
10
17
  descriptionFs?: SystemProps['fs'];
11
18
  action?: ReactNode;
12
19
  compact?: boolean;
13
20
  testId?: string;
14
21
  };
15
- export declare function StateCard({ tone, icon, title, description, titleFs, descriptionFs, action, compact, className, children, testId, ...props }: StateCardProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function StateCard({ tone, v, icon, iconTone, title, titleTone, description, descriptionTone, titleFs, descriptionFs, action, compact, className, children, testId, ...props }: StateCardProps): import("react/jsx-runtime").JSX.Element;
16
23
  export declare function EmptyState({ title, ...props }: Omit<StateCardProps, 'tone'>): import("react/jsx-runtime").JSX.Element;
17
24
  export declare function LoadingState({ title, description, ...props }: Omit<StateCardProps, 'icon' | 'tone'>): import("react/jsx-runtime").JSX.Element;
18
25
  export declare function ErrorState({ title, retryLabel, onRetry, action, ...props }: Omit<StateCardProps, 'tone'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/components/State/State.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAC,WAAW,EAAE,IAAI,EAAC,MAAM,yBAAyB,CAAC;AAO/D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG;IACzE,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACtB,IAAgB,EAChB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAsB,EACtB,MAAM,EACN,OAAe,EACf,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACX,EAAE,cAAc,2CAkChB;AAED,wBAAgB,UAAU,CAAC,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,2CAGzE;AAED,wBAAgB,YAAY,CAAC,EACzB,KAAK,EACL,WAAW,EACX,GAAG,KAAK,EACX,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,2CAWvC;AAED,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,UAAU,EACV,OAAO,EACP,MAAM,EAC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C,IAAI,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACtB,IAAgB,EAChB,CAAU,EACV,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,WAAW,EACX,eAAe,EACf,OAAO,EACP,aAAsB,EACtB,MAAM,EACN,OAAe,EACf,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACX,EAAE,cAAc,2CAwChB;AAED,wBAAgB,UAAU,CAAC,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,2CAGzE;AAED,wBAAgB,YAAY,CAAC,EACzB,KAAK,EACL,WAAW,EACX,GAAG,KAAK,EACX,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,2CAWvC;AAED,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,UAAU,EACV,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACX,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IAC9B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,2CAgBA;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,2CAE7E"}
@@ -8,10 +8,10 @@ import { IconText } from '../IconText/IconText';
8
8
  import { Spinner } from '../Spinner/Spinner';
9
9
  import { Text } from '../Text/Text';
10
10
  import { stateIcon } from './stateIcon';
11
- export function StateCard({ tone = 'neutral', icon, title, description, titleFs, descriptionFs = '13px', action, compact = false, className, children, testId, ...props }) {
11
+ export function StateCard({ tone = 'neutral', v = 'soft', icon, iconTone, title, titleTone, description, descriptionTone, titleFs, descriptionFs = '13px', action, compact = false, className, children, testId, ...props }) {
12
12
  const hasBody = description || children;
13
13
  const actualTitleFs = titleFs ?? (compact ? '14px' : '15px');
14
- return (_jsxs("div", { className: cn('oui-state-card', className), "data-tone": tone, "data-compact": compact ? 'true' : undefined, "data-testid": testId, ...props, children: [_jsxs("div", { className: 'oui-state-card-main', children: [_jsx(IconText, { fw: 760, fs: actualTitleFs, icon: icon ?? stateIcon(tone), iconTone: tone === 'neutral' ? 'muted' : tone, children: title }), hasBody ? (_jsxs("div", { className: 'oui-state-card-body', children: [description ? (_jsx(Text, { className: 'oui-state-card-description', fs: descriptionFs, children: description })) : null, children] })) : null] }), action ? _jsx("div", { className: 'oui-state-card-action', children: action }) : null] }));
14
+ return (_jsxs("div", { className: cn('oui-state-card', className), "data-tone": tone, "data-variant": v, "data-compact": compact ? 'true' : undefined, "data-testid": testId, ...props, children: [_jsxs("div", { className: 'oui-state-card-main', children: [_jsx(IconText, { fw: 760, fs: actualTitleFs, icon: icon ?? stateIcon(tone), iconTone: iconTone ?? (tone === 'neutral' ? 'muted' : tone), tone: titleTone, children: title }), hasBody ? (_jsxs("div", { className: 'oui-state-card-body', children: [description ? (_jsx(Text, { className: 'oui-state-card-description', fs: descriptionFs, tone: descriptionTone, children: description })) : null, children] })) : null] }), action ? _jsx("div", { className: 'oui-state-card-action', children: action }) : null] }));
15
15
  }
16
16
  export function EmptyState({ title, ...props }) {
17
17
  const { copy } = useOrcestrUiLocale();
@@ -1,10 +1,12 @@
1
1
  import { type InputHTMLAttributes, type ReactNode } from 'react';
2
2
  export type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
3
3
  label?: ReactNode;
4
+ onCheckedChange?: (checked: boolean) => void;
4
5
  testId?: string;
5
6
  };
6
7
  export declare const Switch: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
7
8
  label?: ReactNode;
9
+ onCheckedChange?: (checked: boolean) => void;
8
10
  testId?: string;
9
11
  } & import("react").RefAttributes<HTMLInputElement>>;
10
12
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG;IAC5E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,MAAM;YAJP,SAAS;aACR,MAAM;oDA6CjB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG;IAC5E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,MAAM;YALP,SAAS;sBACC,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;aACnC,MAAM;oDAgDjB,CAAC"}
@@ -2,13 +2,14 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useState, } from 'react';
4
4
  import { cn } from '../../utils/cn';
5
- export const Switch = forwardRef(function Switch({ className, label, children, checked, defaultChecked, disabled, onChange, testId, ...props }, ref) {
5
+ export const Switch = forwardRef(function Switch({ className, label, children, checked, defaultChecked, disabled, onChange, onCheckedChange, testId, dangerouslySetInnerHTML: _dangerouslySetInnerHTML, ...props }, ref) {
6
6
  const [internalChecked, setInternalChecked] = useState(Boolean(defaultChecked));
7
7
  const actualChecked = checked ?? internalChecked;
8
8
  const handleChange = (event) => {
9
9
  if (checked === undefined)
10
10
  setInternalChecked(event.target.checked);
11
11
  onChange?.(event);
12
+ onCheckedChange?.(event.target.checked);
12
13
  };
13
14
  return (_jsxs("label", { className: cn('oui-switch', className), "data-checked": actualChecked ? 'true' : undefined, "data-disabled": disabled ? 'true' : undefined, "data-testid": testId, children: [_jsx("input", { ref: ref, type: 'checkbox', checked: actualChecked, disabled: disabled, onChange: handleChange, ...props }), _jsx("span", { className: 'oui-switch-track', children: _jsx("span", { className: 'oui-switch-thumb' }) }), label || children ? _jsx("span", { children: label ?? children }) : null] }));
14
15
  });
@@ -0,0 +1,64 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ import { type SystemProps, type UiSize } from '../../theme/systemProps';
3
+ type Align = 'left' | 'center' | 'right';
4
+ export type TableRootProps = ComponentPropsWithoutRef<'table'> & SystemProps & {
5
+ size?: UiSize;
6
+ v?: 'ghost' | 'surface';
7
+ testId?: string;
8
+ };
9
+ export declare const TableRoot: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & SystemProps & {
10
+ size?: UiSize;
11
+ v?: "ghost" | "surface";
12
+ testId?: string;
13
+ } & import("react").RefAttributes<HTMLTableElement>>;
14
+ export declare const TableHeader: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import("react").RefAttributes<HTMLTableSectionElement>>;
15
+ export declare const TableBody: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import("react").RefAttributes<HTMLTableSectionElement>>;
16
+ export declare const TableRow: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & import("react").RefAttributes<HTMLTableRowElement>>;
17
+ export type TableCellProps = ComponentPropsWithoutRef<'td'> & SystemProps & {
18
+ align?: Align;
19
+ testId?: string;
20
+ };
21
+ export declare const TableCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & SystemProps & {
22
+ align?: Align;
23
+ testId?: string;
24
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
25
+ export type TableHeaderCellProps = ComponentPropsWithoutRef<'th'> & SystemProps & {
26
+ align?: Align;
27
+ testId?: string;
28
+ };
29
+ export declare const TableColumnHeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & SystemProps & {
30
+ align?: Align;
31
+ testId?: string;
32
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
33
+ export declare const TableRowHeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & SystemProps & {
34
+ align?: Align;
35
+ testId?: string;
36
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
37
+ export declare const Table: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & SystemProps & {
38
+ size?: UiSize;
39
+ v?: "ghost" | "surface";
40
+ testId?: string;
41
+ } & import("react").RefAttributes<HTMLTableElement>> & {
42
+ Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & SystemProps & {
43
+ size?: UiSize;
44
+ v?: "ghost" | "surface";
45
+ testId?: string;
46
+ } & import("react").RefAttributes<HTMLTableElement>>;
47
+ Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import("react").RefAttributes<HTMLTableSectionElement>>;
48
+ Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & import("react").RefAttributes<HTMLTableSectionElement>>;
49
+ Row: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & import("react").RefAttributes<HTMLTableRowElement>>;
50
+ Cell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & SystemProps & {
51
+ align?: Align;
52
+ testId?: string;
53
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
54
+ ColumnHeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & SystemProps & {
55
+ align?: Align;
56
+ testId?: string;
57
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
58
+ RowHeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & SystemProps & {
59
+ align?: Align;
60
+ testId?: string;
61
+ } & import("react").RefAttributes<HTMLTableCellElement>>;
62
+ };
63
+ export {};
64
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,w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K;iBACJ,MAAM;;;gBAqBP,KAAK;iBACJ,MAAM;;;gBADP,KAAK;iBACJ,MAAM;;CA8CrB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ import { splitSystemProps } from '../../theme/systemProps';
4
+ import { cn } from '../../utils/cn';
5
+ export const TableRoot = forwardRef(function TableRoot({ className, style, size = 2, v = 'ghost', testId, ...props }, ref) {
6
+ const { systemStyle, restProps } = splitSystemProps(props);
7
+ return (_jsx("table", { ref: ref, className: cn('oui-table', className), "data-size": size, "data-variant": v, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps }));
8
+ });
9
+ export const TableHeader = forwardRef(function TableHeader({ className, ...props }, ref) {
10
+ return _jsx("thead", { ref: ref, className: cn('oui-table-header', className), ...props });
11
+ });
12
+ export const TableBody = forwardRef(function TableBody({ className, ...props }, ref) {
13
+ return _jsx("tbody", { ref: ref, className: cn('oui-table-body', className), ...props });
14
+ });
15
+ export const TableRow = forwardRef(function TableRow({ className, ...props }, ref) {
16
+ return _jsx("tr", { ref: ref, className: cn('oui-table-row', className), ...props });
17
+ });
18
+ export const TableCell = forwardRef(function TableCell({ className, style, align, testId, ...props }, ref) {
19
+ const { systemStyle, restProps } = splitSystemProps(props);
20
+ return (_jsx("td", { ref: ref, className: cn('oui-table-cell', className), "data-align": align, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps }));
21
+ });
22
+ export const TableColumnHeaderCell = forwardRef(function TableColumnHeaderCell({ className, style, align, testId, ...props }, ref) {
23
+ const { systemStyle, restProps } = splitSystemProps(props);
24
+ return (_jsx("th", { ref: ref, scope: 'col', className: cn('oui-table-column-header-cell', className), "data-align": align, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps }));
25
+ });
26
+ export const TableRowHeaderCell = forwardRef(function TableRowHeaderCell({ className, style, align, testId, ...props }, ref) {
27
+ const { systemStyle, restProps } = splitSystemProps(props);
28
+ return (_jsx("th", { ref: ref, scope: 'row', className: cn('oui-table-row-header-cell', className), "data-align": align, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps }));
29
+ });
30
+ export const Table = Object.assign(TableRoot, {
31
+ Root: TableRoot,
32
+ Header: TableHeader,
33
+ Body: TableBody,
34
+ Row: TableRow,
35
+ Cell: TableCell,
36
+ ColumnHeaderCell: TableColumnHeaderCell,
37
+ RowHeaderCell: TableRowHeaderCell,
38
+ });
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
2
  export type TabItem = {
3
3
  value: string;
4
4
  label: ReactNode;
@@ -6,7 +6,7 @@ export type TabItem = {
6
6
  icon?: ReactNode;
7
7
  badge?: ReactNode;
8
8
  };
9
- export declare function Tabs({ items, value, onValueChange, className, listClassName, contentClassName, testId, }: {
9
+ declare function ItemTabs({ items, value, onValueChange, className, listClassName, contentClassName, testId, }: {
10
10
  items: ReadonlyArray<TabItem>;
11
11
  value: string;
12
12
  onValueChange: (value: string) => void;
@@ -15,4 +15,35 @@ export declare function Tabs({ items, value, onValueChange, className, listClass
15
15
  contentClassName?: string;
16
16
  testId?: string;
17
17
  }): import("react/jsx-runtime").JSX.Element | null;
18
+ type RootProps = Omit<ComponentPropsWithoutRef<'div'>, 'defaultValue' | 'onChange'> & {
19
+ children: ReactNode;
20
+ value?: string;
21
+ defaultValue?: string;
22
+ onValueChange?: (value: string) => void;
23
+ };
24
+ declare function Root({ value, defaultValue, onValueChange, children, className, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
25
+ type ListProps = Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onWheel'> & {
26
+ children: ReactNode;
27
+ indicatorPaddingY?: number;
28
+ };
29
+ declare function List({ children, indicatorPaddingY, className, style, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
30
+ type TriggerProps = Omit<ComponentPropsWithoutRef<'button'>, 'value'> & {
31
+ value: string;
32
+ children: ReactNode;
33
+ icon?: ReactNode;
34
+ size?: '2' | '3';
35
+ };
36
+ declare function Trigger({ value, children, icon, size, className, onMouseEnter, onClick, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
37
+ type ContentProps = Omit<ComponentPropsWithoutRef<'div'>, 'value'> & {
38
+ value: string;
39
+ mountOnActive?: boolean;
40
+ };
41
+ declare function Content({ value, children, className, mountOnActive, ...props }: ContentProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare const Tabs: typeof ItemTabs & {
43
+ Root: typeof Root;
44
+ List: typeof List;
45
+ Trigger: typeof Trigger;
46
+ Content: typeof Content;
47
+ };
48
+ export {};
18
49
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,OAAO,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AASF,wBAAgB,IAAI,CAAC,EACjB,KAAK,EACL,KAAK,EACL,aAAa,EACb,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,MAAM,GACT,EAAE;IACC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,kDAgKA"}
1
+ {"version":3,"file":"Tabs.d.ts","sour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