@tale-ui/react 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/README.md +58 -25
  2. package/_cx.d.ts +4 -0
  3. package/_cx.js +15 -0
  4. package/accordion/Accordion.styled.d.ts +14 -0
  5. package/accordion/Accordion.styled.js +79 -0
  6. package/accordion/index.d.ts +1 -1
  7. package/accordion/index.js +1 -1
  8. package/alert-dialog/AlertDialog.styled.d.ts +13 -0
  9. package/alert-dialog/AlertDialog.styled.js +58 -0
  10. package/alert-dialog/index.d.ts +1 -1
  11. package/alert-dialog/index.js +1 -1
  12. package/autocomplete/Autocomplete.styled.d.ts +11 -0
  13. package/autocomplete/Autocomplete.styled.js +134 -0
  14. package/autocomplete/index.d.ts +1 -1
  15. package/autocomplete/index.js +1 -1
  16. package/avatar/Avatar.styled.d.ts +10 -0
  17. package/avatar/Avatar.styled.js +42 -0
  18. package/avatar/index.d.ts +1 -1
  19. package/avatar/index.js +1 -1
  20. package/button/Button.styled.d.ts +10 -0
  21. package/button/Button.styled.js +23 -0
  22. package/button/index.d.ts +2 -2
  23. package/button/index.js +1 -1
  24. package/checkbox/Checkbox.styled.d.ts +3 -0
  25. package/checkbox/Checkbox.styled.js +31 -0
  26. package/checkbox/index.d.ts +1 -1
  27. package/checkbox/index.js +1 -1
  28. package/collapsible/Collapsible.styled.d.ts +4 -0
  29. package/collapsible/Collapsible.styled.js +41 -0
  30. package/collapsible/index.d.ts +1 -1
  31. package/collapsible/index.js +1 -1
  32. package/combobox/Combobox.styled.d.ts +38 -0
  33. package/combobox/Combobox.styled.js +115 -0
  34. package/combobox/index.d.ts +1 -1
  35. package/combobox/index.js +1 -1
  36. package/container/Container.d.ts +12 -0
  37. package/container/Container.js +40 -0
  38. package/container/index.d.ts +2 -0
  39. package/container/index.js +18 -0
  40. package/context-menu/ContextMenu.styled.d.ts +21 -0
  41. package/context-menu/ContextMenu.styled.js +111 -0
  42. package/context-menu/index.d.ts +1 -1
  43. package/context-menu/index.js +1 -1
  44. package/context-menu/root/ContextMenuRoot.d.ts +1 -2
  45. package/dialog/Dialog.styled.d.ts +34 -0
  46. package/dialog/Dialog.styled.js +58 -0
  47. package/dialog/index.d.ts +1 -1
  48. package/dialog/index.js +1 -1
  49. package/drawer/Drawer.styled.d.ts +28 -0
  50. package/drawer/Drawer.styled.js +71 -0
  51. package/drawer/index.d.ts +1 -1
  52. package/drawer/index.js +1 -1
  53. package/esm/_cx.d.ts +4 -0
  54. package/esm/_cx.js +9 -0
  55. package/esm/accordion/Accordion.styled.d.ts +14 -0
  56. package/esm/accordion/Accordion.styled.js +72 -0
  57. package/esm/accordion/index.d.ts +1 -1
  58. package/esm/accordion/index.js +1 -1
  59. package/esm/alert-dialog/AlertDialog.styled.d.ts +13 -0
  60. package/esm/alert-dialog/AlertDialog.styled.js +51 -0
  61. package/esm/alert-dialog/index.d.ts +1 -1
  62. package/esm/alert-dialog/index.js +1 -1
  63. package/esm/autocomplete/Autocomplete.styled.d.ts +11 -0
  64. package/esm/autocomplete/Autocomplete.styled.js +49 -0
  65. package/esm/autocomplete/index.d.ts +1 -1
  66. package/esm/autocomplete/index.js +1 -1
  67. package/esm/avatar/Avatar.styled.d.ts +10 -0
  68. package/esm/avatar/Avatar.styled.js +35 -0
  69. package/esm/avatar/index.d.ts +1 -1
  70. package/esm/avatar/index.js +1 -1
  71. package/esm/button/Button.styled.d.ts +10 -0
  72. package/esm/button/Button.styled.js +16 -0
  73. package/esm/button/index.d.ts +2 -2
  74. package/esm/button/index.js +1 -1
  75. package/esm/checkbox/Checkbox.styled.d.ts +3 -0
  76. package/esm/checkbox/Checkbox.styled.js +24 -0
  77. package/esm/checkbox/index.d.ts +1 -1
  78. package/esm/checkbox/index.js +1 -1
  79. package/esm/collapsible/Collapsible.styled.d.ts +4 -0
  80. package/esm/collapsible/Collapsible.styled.js +34 -0
  81. package/esm/collapsible/index.d.ts +1 -1
  82. package/esm/collapsible/index.js +1 -1
  83. package/esm/combobox/Combobox.styled.d.ts +38 -0
  84. package/esm/combobox/Combobox.styled.js +102 -0
  85. package/esm/combobox/index.d.ts +1 -1
  86. package/esm/combobox/index.js +1 -1
  87. package/esm/container/Container.d.ts +12 -0
  88. package/esm/container/Container.js +32 -0
  89. package/esm/container/index.d.ts +2 -0
  90. package/esm/container/index.js +1 -0
  91. package/esm/context-menu/ContextMenu.styled.d.ts +21 -0
  92. package/esm/context-menu/ContextMenu.styled.js +104 -0
  93. package/esm/context-menu/index.d.ts +1 -1
  94. package/esm/context-menu/index.js +1 -1
  95. package/esm/context-menu/root/ContextMenuRoot.d.ts +1 -2
  96. package/esm/dialog/Dialog.styled.d.ts +34 -0
  97. package/esm/dialog/Dialog.styled.js +51 -0
  98. package/esm/dialog/index.d.ts +1 -1
  99. package/esm/dialog/index.js +1 -1
  100. package/esm/drawer/Drawer.styled.d.ts +28 -0
  101. package/esm/drawer/Drawer.styled.js +64 -0
  102. package/esm/drawer/index.d.ts +1 -1
  103. package/esm/drawer/index.js +1 -1
  104. package/esm/field/Field.styled.d.ts +14 -0
  105. package/esm/field/Field.styled.js +45 -0
  106. package/esm/field/index.d.ts +1 -1
  107. package/esm/field/index.js +1 -1
  108. package/esm/fieldset/Fieldset.styled.d.ts +3 -0
  109. package/esm/fieldset/Fieldset.styled.js +24 -0
  110. package/esm/fieldset/index.d.ts +1 -1
  111. package/esm/fieldset/index.js +1 -1
  112. package/esm/form/Form.styled.d.ts +12 -0
  113. package/esm/form/Form.styled.js +14 -0
  114. package/esm/form/index.d.ts +2 -2
  115. package/esm/form/index.js +1 -1
  116. package/esm/index.d.ts +1 -1
  117. package/esm/index.js +2 -2
  118. package/esm/input/Input.styled.d.ts +8 -0
  119. package/esm/input/Input.styled.js +15 -0
  120. package/esm/input/index.d.ts +2 -2
  121. package/esm/input/index.js +1 -1
  122. package/esm/menu/Menu.styled.d.ts +57 -0
  123. package/esm/menu/Menu.styled.js +106 -0
  124. package/esm/menu/index.d.ts +1 -1
  125. package/esm/menu/index.js +1 -1
  126. package/esm/menubar/Menubar.styled.d.ts +7 -0
  127. package/esm/menubar/Menubar.styled.js +14 -0
  128. package/esm/menubar/index.d.ts +1 -1
  129. package/esm/menubar/index.js +1 -1
  130. package/esm/meter/Meter.styled.d.ts +6 -0
  131. package/esm/meter/Meter.styled.js +45 -0
  132. package/esm/meter/index.d.ts +1 -1
  133. package/esm/meter/index.js +1 -1
  134. package/esm/navigation-menu/NavigationMenu.styled.d.ts +23 -0
  135. package/esm/navigation-menu/NavigationMenu.styled.js +89 -0
  136. package/esm/navigation-menu/index.d.ts +1 -1
  137. package/esm/navigation-menu/index.js +1 -1
  138. package/esm/number-field/NumberField.styled.d.ts +16 -0
  139. package/esm/number-field/NumberField.styled.js +59 -0
  140. package/esm/number-field/index.d.ts +1 -1
  141. package/esm/number-field/index.js +1 -1
  142. package/esm/popover/Popover.styled.d.ts +42 -0
  143. package/esm/popover/Popover.styled.js +62 -0
  144. package/esm/popover/index.d.ts +1 -1
  145. package/esm/popover/index.js +1 -1
  146. package/esm/preview-card/PreviewCard.styled.d.ts +39 -0
  147. package/esm/preview-card/PreviewCard.styled.js +32 -0
  148. package/esm/preview-card/index.d.ts +1 -1
  149. package/esm/preview-card/index.js +1 -1
  150. package/esm/progress/Progress.styled.d.ts +8 -0
  151. package/esm/progress/Progress.styled.js +36 -0
  152. package/esm/progress/index.d.ts +1 -1
  153. package/esm/progress/index.js +1 -1
  154. package/esm/radio/Radio.styled.d.ts +11 -0
  155. package/esm/radio/Radio.styled.js +27 -0
  156. package/esm/radio/index.d.ts +1 -1
  157. package/esm/radio/index.js +1 -1
  158. package/esm/scroll-area/ScrollArea.styled.d.ts +7 -0
  159. package/esm/scroll-area/ScrollArea.styled.js +55 -0
  160. package/esm/scroll-area/index.d.ts +1 -1
  161. package/esm/scroll-area/index.js +1 -1
  162. package/esm/select/Select.styled.d.ts +33 -0
  163. package/esm/select/Select.styled.js +118 -0
  164. package/esm/select/index.d.ts +1 -1
  165. package/esm/select/index.js +1 -1
  166. package/esm/separator/Separator.styled.d.ts +7 -0
  167. package/esm/separator/Separator.styled.js +16 -0
  168. package/esm/separator/index.d.ts +2 -2
  169. package/esm/separator/index.js +1 -1
  170. package/esm/slider/Slider.styled.d.ts +16 -0
  171. package/esm/slider/Slider.styled.js +55 -0
  172. package/esm/slider/index.d.ts +1 -1
  173. package/esm/slider/index.js +1 -1
  174. package/esm/switch/Switch.styled.d.ts +3 -0
  175. package/esm/switch/Switch.styled.js +24 -0
  176. package/esm/switch/index.d.ts +1 -1
  177. package/esm/switch/index.js +1 -1
  178. package/esm/tabs/Tabs.styled.d.ts +14 -0
  179. package/esm/tabs/Tabs.styled.js +54 -0
  180. package/esm/tabs/index.d.ts +1 -1
  181. package/esm/tabs/index.js +1 -1
  182. package/esm/toast/Toast.styled.d.ts +21 -0
  183. package/esm/toast/Toast.styled.js +80 -0
  184. package/esm/toast/index.d.ts +1 -1
  185. package/esm/toast/index.js +1 -1
  186. package/esm/toggle/Toggle.styled.d.ts +10 -0
  187. package/esm/toggle/Toggle.styled.js +26 -0
  188. package/esm/toggle/index.d.ts +2 -2
  189. package/esm/toggle/index.js +1 -1
  190. package/esm/toolbar/Toolbar.styled.d.ts +7 -0
  191. package/esm/toolbar/Toolbar.styled.js +64 -0
  192. package/esm/toolbar/index.d.ts +1 -1
  193. package/esm/toolbar/index.js +1 -1
  194. package/esm/tooltip/Tooltip.styled.d.ts +39 -0
  195. package/esm/tooltip/Tooltip.styled.js +32 -0
  196. package/esm/tooltip/index.d.ts +1 -1
  197. package/esm/tooltip/index.js +1 -1
  198. package/field/Field.styled.d.ts +14 -0
  199. package/field/Field.styled.js +70 -0
  200. package/field/index.d.ts +1 -1
  201. package/field/index.js +1 -1
  202. package/fieldset/Fieldset.styled.d.ts +3 -0
  203. package/fieldset/Fieldset.styled.js +31 -0
  204. package/fieldset/index.d.ts +1 -1
  205. package/fieldset/index.js +1 -1
  206. package/form/Form.styled.d.ts +12 -0
  207. package/form/Form.styled.js +21 -0
  208. package/form/index.d.ts +2 -2
  209. package/form/index.js +1 -1
  210. package/index.d.ts +1 -1
  211. package/index.js +12 -12
  212. package/input/Input.styled.d.ts +8 -0
  213. package/input/Input.styled.js +22 -0
  214. package/input/index.d.ts +2 -2
  215. package/input/index.js +1 -1
  216. package/menu/Menu.styled.d.ts +57 -0
  217. package/menu/Menu.styled.js +120 -0
  218. package/menu/index.d.ts +1 -1
  219. package/menu/index.js +1 -1
  220. package/menubar/Menubar.styled.d.ts +7 -0
  221. package/menubar/Menubar.styled.js +21 -0
  222. package/menubar/index.d.ts +1 -1
  223. package/menubar/index.js +1 -1
  224. package/meter/Meter.styled.d.ts +6 -0
  225. package/meter/Meter.styled.js +52 -0
  226. package/meter/index.d.ts +1 -1
  227. package/meter/index.js +1 -1
  228. package/navigation-menu/NavigationMenu.styled.d.ts +23 -0
  229. package/navigation-menu/NavigationMenu.styled.js +96 -0
  230. package/navigation-menu/index.d.ts +1 -1
  231. package/navigation-menu/index.js +1 -1
  232. package/number-field/NumberField.styled.d.ts +16 -0
  233. package/number-field/NumberField.styled.js +77 -0
  234. package/number-field/index.d.ts +1 -1
  235. package/number-field/index.js +1 -1
  236. package/package.json +21 -4
  237. package/popover/Popover.styled.d.ts +42 -0
  238. package/popover/Popover.styled.js +69 -0
  239. package/popover/index.d.ts +1 -1
  240. package/popover/index.js +1 -1
  241. package/preview-card/PreviewCard.styled.d.ts +39 -0
  242. package/preview-card/PreviewCard.styled.js +39 -0
  243. package/preview-card/index.d.ts +1 -1
  244. package/preview-card/index.js +1 -1
  245. package/progress/Progress.styled.d.ts +8 -0
  246. package/progress/Progress.styled.js +49 -0
  247. package/progress/index.d.ts +1 -1
  248. package/progress/index.js +1 -1
  249. package/radio/Radio.styled.d.ts +11 -0
  250. package/radio/Radio.styled.js +34 -0
  251. package/radio/index.d.ts +1 -1
  252. package/radio/index.js +1 -1
  253. package/scroll-area/ScrollArea.styled.d.ts +7 -0
  254. package/scroll-area/ScrollArea.styled.js +67 -0
  255. package/scroll-area/index.d.ts +1 -1
  256. package/scroll-area/index.js +1 -1
  257. package/select/Select.styled.d.ts +33 -0
  258. package/select/Select.styled.js +125 -0
  259. package/select/index.d.ts +1 -1
  260. package/select/index.js +1 -1
  261. package/separator/Separator.styled.d.ts +7 -0
  262. package/separator/Separator.styled.js +23 -0
  263. package/separator/index.d.ts +2 -2
  264. package/separator/index.js +1 -1
  265. package/slider/Slider.styled.d.ts +16 -0
  266. package/slider/Slider.styled.js +67 -0
  267. package/slider/index.d.ts +1 -1
  268. package/slider/index.js +1 -1
  269. package/switch/Switch.styled.d.ts +3 -0
  270. package/switch/Switch.styled.js +31 -0
  271. package/switch/index.d.ts +1 -1
  272. package/switch/index.js +1 -1
  273. package/tabs/Tabs.styled.d.ts +14 -0
  274. package/tabs/Tabs.styled.js +61 -0
  275. package/tabs/index.d.ts +1 -1
  276. package/tabs/index.js +1 -1
  277. package/toast/Toast.styled.d.ts +21 -0
  278. package/toast/Toast.styled.js +87 -0
  279. package/toast/index.d.ts +1 -1
  280. package/toast/index.js +1 -1
  281. package/toggle/Toggle.styled.d.ts +10 -0
  282. package/toggle/Toggle.styled.js +33 -0
  283. package/toggle/index.d.ts +2 -2
  284. package/toggle/index.js +7 -1
  285. package/toolbar/Toolbar.styled.d.ts +7 -0
  286. package/toolbar/Toolbar.styled.js +71 -0
  287. package/toolbar/index.d.ts +1 -1
  288. package/toolbar/index.js +1 -1
  289. package/tooltip/Tooltip.styled.d.ts +39 -0
  290. package/tooltip/Tooltip.styled.js +39 -0
  291. package/tooltip/index.d.ts +1 -1
  292. package/tooltip/index.js +1 -1
@@ -0,0 +1,62 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Root = H.Root;
6
+ export const Trigger = H.Trigger;
7
+ export const Portal = H.Portal;
8
+ export const Positioner = H.Positioner;
9
+ export const Backdrop = H.Backdrop;
10
+ export const Viewport = H.Viewport;
11
+ export const createHandle = H.createHandle;
12
+ export const Handle = H.Handle;
13
+ const StyledArrow = /*#__PURE__*/React.forwardRef(({
14
+ className,
15
+ ...props
16
+ }, ref) => /*#__PURE__*/_jsx(H.Arrow, {
17
+ className: cx('tale-popover__arrow', className),
18
+ ref: ref,
19
+ ...props
20
+ }));
21
+ StyledArrow.displayName = 'Popover.Arrow';
22
+ export const Arrow = StyledArrow;
23
+ const StyledPopup = /*#__PURE__*/React.forwardRef(({
24
+ className,
25
+ ...props
26
+ }, ref) => /*#__PURE__*/_jsx(H.Popup, {
27
+ className: cx('tale-popover__popup', className),
28
+ ref: ref,
29
+ ...props
30
+ }));
31
+ StyledPopup.displayName = 'Popover.Popup';
32
+ export const Popup = StyledPopup;
33
+ const StyledTitle = /*#__PURE__*/React.forwardRef(({
34
+ className,
35
+ ...props
36
+ }, ref) => /*#__PURE__*/_jsx(H.Title, {
37
+ className: cx('tale-popover__title', className),
38
+ ref: ref,
39
+ ...props
40
+ }));
41
+ StyledTitle.displayName = 'Popover.Title';
42
+ export const Title = StyledTitle;
43
+ const StyledDescription = /*#__PURE__*/React.forwardRef(({
44
+ className,
45
+ ...props
46
+ }, ref) => /*#__PURE__*/_jsx(H.Description, {
47
+ className: cx('tale-popover__description', className),
48
+ ref: ref,
49
+ ...props
50
+ }));
51
+ StyledDescription.displayName = 'Popover.Description';
52
+ export const Description = StyledDescription;
53
+ const StyledClose = /*#__PURE__*/React.forwardRef(({
54
+ className,
55
+ ...props
56
+ }, ref) => /*#__PURE__*/_jsx(H.Close, {
57
+ className: cx('tale-popover__close', className),
58
+ ref: ref,
59
+ ...props
60
+ }));
61
+ StyledClose.displayName = 'Popover.Close';
62
+ export const Close = StyledClose;
@@ -1,4 +1,4 @@
1
- export * as Popover from "./index.parts.js";
1
+ export * as Popover from "./Popover.styled.js";
2
2
  export type * from "./root/PopoverRoot.js";
3
3
  export type * from "./trigger/PopoverTrigger.js";
4
4
  export type * from "./portal/PopoverPortal.js";
@@ -1 +1 @@
1
- export * as Popover from "./index.parts.js";
1
+ export * as Popover from "./Popover.styled.js";
@@ -0,0 +1,39 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import type { PreviewCardRootState, PreviewCardRootProps, PreviewCardRootActions, PreviewCardRootChangeEventReason, PreviewCardRootChangeEventDetails } from "./root/PreviewCardRoot.js";
4
+ import type { PreviewCardTriggerState, PreviewCardTriggerProps } from "./trigger/PreviewCardTrigger.js";
5
+ import type { PreviewCardPortalProps } from "./portal/PreviewCardPortal.js";
6
+ import type { PreviewCardPositionerState, PreviewCardPositionerProps } from "./positioner/PreviewCardPositioner.js";
7
+ import type { PreviewCardPopupState, PreviewCardPopupProps } from "./popup/PreviewCardPopup.js";
8
+ export declare const Root: typeof H.Root;
9
+ export declare namespace Root {
10
+ type State = PreviewCardRootState;
11
+ type Props<Payload = unknown> = PreviewCardRootProps<Payload>;
12
+ type Actions = PreviewCardRootActions;
13
+ type ChangeEventReason = PreviewCardRootChangeEventReason;
14
+ type ChangeEventDetails = PreviewCardRootChangeEventDetails;
15
+ }
16
+ export declare const Trigger: H.Trigger;
17
+ export declare namespace Trigger {
18
+ type State = PreviewCardTriggerState;
19
+ type Props<Payload = unknown> = PreviewCardTriggerProps<Payload>;
20
+ }
21
+ export declare const Portal: React.ForwardRefExoticComponent<Omit<PreviewCardPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ export declare namespace Portal {
23
+ type Props = PreviewCardPortalProps;
24
+ }
25
+ export declare const Positioner: React.ForwardRefExoticComponent<Omit<PreviewCardPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
+ export declare namespace Positioner {
27
+ type State = PreviewCardPositionerState;
28
+ type Props = PreviewCardPositionerProps;
29
+ }
30
+ export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").PreviewCardBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ export declare const Viewport: React.ForwardRefExoticComponent<Omit<H.Viewport.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
+ export declare const createHandle: typeof H.createHandle;
33
+ export declare const Handle: typeof H.Handle;
34
+ export declare const Arrow: typeof H.Arrow;
35
+ export declare const Popup: typeof H.Popup;
36
+ export declare namespace Popup {
37
+ type State = PreviewCardPopupState;
38
+ type Props = PreviewCardPopupProps;
39
+ }
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Root = H.Root;
6
+ export const Trigger = H.Trigger;
7
+ export const Portal = H.Portal;
8
+ export const Positioner = H.Positioner;
9
+ export const Backdrop = H.Backdrop;
10
+ export const Viewport = H.Viewport;
11
+ export const createHandle = H.createHandle;
12
+ export const Handle = H.Handle;
13
+ const StyledArrow = /*#__PURE__*/React.forwardRef(({
14
+ className,
15
+ ...props
16
+ }, ref) => /*#__PURE__*/_jsx(H.Arrow, {
17
+ className: cx('tale-preview-card__arrow', className),
18
+ ref: ref,
19
+ ...props
20
+ }));
21
+ StyledArrow.displayName = 'PreviewCard.Arrow';
22
+ export const Arrow = StyledArrow;
23
+ const StyledPopup = /*#__PURE__*/React.forwardRef(({
24
+ className,
25
+ ...props
26
+ }, ref) => /*#__PURE__*/_jsx(H.Popup, {
27
+ className: cx('tale-preview-card__popup', className),
28
+ ref: ref,
29
+ ...props
30
+ }));
31
+ StyledPopup.displayName = 'PreviewCard.Popup';
32
+ export const Popup = StyledPopup;
@@ -1,4 +1,4 @@
1
- export * as PreviewCard from "./index.parts.js";
1
+ export * as PreviewCard from "./PreviewCard.styled.js";
2
2
  export type * from "./root/PreviewCardRoot.js";
3
3
  export type * from "./trigger/PreviewCardTrigger.js";
4
4
  export type * from "./portal/PreviewCardPortal.js";
@@ -1 +1 @@
1
- export * as PreviewCard from "./index.parts.js";
1
+ export * as PreviewCard from "./PreviewCard.styled.js";
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ export declare const Root: typeof H.Root;
4
+ export declare const Value: React.ForwardRefExoticComponent<Omit<import("./index.js").ProgressValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
5
+ export declare const Track: typeof H.Track;
6
+ export declare const Indicator: typeof H.Indicator;
7
+ export { Label } from "./index.parts.js";
8
+ export type { Status } from "./index.parts.js";
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const StyledRoot = /*#__PURE__*/React.forwardRef(({
6
+ className,
7
+ ...props
8
+ }, ref) => /*#__PURE__*/_jsx(H.Root, {
9
+ className: cx('tale-progress', className),
10
+ ref: ref,
11
+ ...props
12
+ }));
13
+ StyledRoot.displayName = 'Progress.Root';
14
+ export const Root = StyledRoot;
15
+ export const Value = H.Value;
16
+ const StyledTrack = /*#__PURE__*/React.forwardRef(({
17
+ className,
18
+ ...props
19
+ }, ref) => /*#__PURE__*/_jsx(H.Track, {
20
+ className: cx('tale-progress__track', className),
21
+ ref: ref,
22
+ ...props
23
+ }));
24
+ StyledTrack.displayName = 'Progress.Track';
25
+ export const Track = StyledTrack;
26
+ const StyledIndicator = /*#__PURE__*/React.forwardRef(({
27
+ className,
28
+ ...props
29
+ }, ref) => /*#__PURE__*/_jsx(H.Indicator, {
30
+ className: cx('tale-progress__indicator', className),
31
+ ref: ref,
32
+ ...props
33
+ }));
34
+ StyledIndicator.displayName = 'Progress.Indicator';
35
+ export const Indicator = StyledIndicator;
36
+ export { Label } from "./index.parts.js";
@@ -1,4 +1,4 @@
1
- export * as Progress from "./index.parts.js";
1
+ export * as Progress from "./Progress.styled.js";
2
2
  export type * from "./root/ProgressRoot.js";
3
3
  export type * from "./indicator/ProgressIndicator.js";
4
4
  export type * from "./label/ProgressLabel.js";
@@ -1 +1 @@
1
- export * as Progress from "./index.parts.js";
1
+ export * as Progress from "./Progress.styled.js";
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { RadioGroup as HGroup } from "../radio-group/RadioGroup.js";
4
+ type Size = 'sm' | 'md' | 'lg';
5
+ export interface RootProps extends React.ComponentPropsWithoutRef<typeof H.Root> {
6
+ size?: Size | undefined;
7
+ }
8
+ export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLSpanElement>>;
9
+ export declare const Indicator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").RadioIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
10
+ export declare const Group: <Value>(props: HGroup.Props<Value>) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { RadioGroup as HGroup } from "../radio-group/RadioGroup.js";
4
+ import { cx } from "../_cx.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const StyledRoot = /*#__PURE__*/React.forwardRef(({
7
+ size = 'md',
8
+ className,
9
+ ...props
10
+ }, ref) => /*#__PURE__*/_jsx(H.Root, {
11
+ className: cx(size !== 'md' ? `tale-radio tale-radio--${size}` : 'tale-radio', className),
12
+ ref: ref,
13
+ ...props
14
+ }));
15
+ StyledRoot.displayName = 'Radio.Root';
16
+ export const Root = StyledRoot;
17
+ export const Indicator = /*#__PURE__*/React.forwardRef(({
18
+ className,
19
+ ...props
20
+ }, ref) => /*#__PURE__*/_jsx(H.Indicator, {
21
+ className: cx('tale-radio__indicator', className),
22
+ ref: ref,
23
+ ...props
24
+ }));
25
+ if (process.env.NODE_ENV !== "production") Indicator.displayName = "Indicator";
26
+ Indicator.displayName = 'Radio.Indicator';
27
+ export const Group = HGroup;
@@ -1,3 +1,3 @@
1
- export * as Radio from "./index.parts.js";
1
+ export * as Radio from "./Radio.styled.js";
2
2
  export type * from "./root/RadioRoot.js";
3
3
  export type * from "./indicator/RadioIndicator.js";
@@ -1 +1 @@
1
- export * as Radio from "./index.parts.js";
1
+ export * as Radio from "./Radio.styled.js";
@@ -0,0 +1,7 @@
1
+ import * as H from "./index.parts.js";
2
+ export declare const Root: typeof H.Root;
3
+ export declare const Viewport: typeof H.Viewport;
4
+ export declare const Scrollbar: typeof H.Scrollbar;
5
+ export declare const Thumb: typeof H.Thumb;
6
+ export declare const Corner: typeof H.Corner;
7
+ export { Content } from "./index.parts.js";
@@ -0,0 +1,55 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const StyledRoot = /*#__PURE__*/React.forwardRef(({
6
+ className,
7
+ ...props
8
+ }, ref) => /*#__PURE__*/_jsx(H.Root, {
9
+ className: cx('tale-scroll-area', className),
10
+ ref: ref,
11
+ ...props
12
+ }));
13
+ StyledRoot.displayName = 'ScrollArea.Root';
14
+ export const Root = StyledRoot;
15
+ const StyledViewport = /*#__PURE__*/React.forwardRef(({
16
+ className,
17
+ ...props
18
+ }, ref) => /*#__PURE__*/_jsx(H.Viewport, {
19
+ className: cx('tale-scroll-area__viewport', className),
20
+ ref: ref,
21
+ ...props
22
+ }));
23
+ StyledViewport.displayName = 'ScrollArea.Viewport';
24
+ export const Viewport = StyledViewport;
25
+ const StyledScrollbar = /*#__PURE__*/React.forwardRef(({
26
+ className,
27
+ ...props
28
+ }, ref) => /*#__PURE__*/_jsx(H.Scrollbar, {
29
+ className: cx('tale-scroll-area__scrollbar', className),
30
+ ref: ref,
31
+ ...props
32
+ }));
33
+ StyledScrollbar.displayName = 'ScrollArea.Scrollbar';
34
+ export const Scrollbar = StyledScrollbar;
35
+ const StyledThumb = /*#__PURE__*/React.forwardRef(({
36
+ className,
37
+ ...props
38
+ }, ref) => /*#__PURE__*/_jsx(H.Thumb, {
39
+ className: cx('tale-scroll-area__thumb', className),
40
+ ref: ref,
41
+ ...props
42
+ }));
43
+ StyledThumb.displayName = 'ScrollArea.Thumb';
44
+ export const Thumb = StyledThumb;
45
+ const StyledCorner = /*#__PURE__*/React.forwardRef(({
46
+ className,
47
+ ...props
48
+ }, ref) => /*#__PURE__*/_jsx(H.Corner, {
49
+ className: cx('tale-scroll-area__corner', className),
50
+ ref: ref,
51
+ ...props
52
+ }));
53
+ StyledCorner.displayName = 'ScrollArea.Corner';
54
+ export const Corner = StyledCorner;
55
+ export { Content } from "./index.parts.js";
@@ -1,4 +1,4 @@
1
- export * as ScrollArea from "./index.parts.js";
1
+ export * as ScrollArea from "./ScrollArea.styled.js";
2
2
  export type * from "./root/ScrollAreaRoot.js";
3
3
  export type * from "./viewport/ScrollAreaViewport.js";
4
4
  export type * from "./scrollbar/ScrollAreaScrollbar.js";
@@ -1 +1 @@
1
- export * as ScrollArea from "./index.parts.js";
1
+ export * as ScrollArea from "./ScrollArea.styled.js";
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import type { SelectRootProps, SelectRootState, SelectRootActions, SelectRootChangeEventReason, SelectRootChangeEventDetails } from "./root/SelectRoot.js";
4
+ import type { SelectTriggerState, SelectTriggerProps } from "./trigger/SelectTrigger.js";
5
+ export declare const Root: typeof H.Root;
6
+ export declare namespace Root {
7
+ type State = SelectRootState;
8
+ type Props<Value = any, Multiple extends boolean | undefined = false> = SelectRootProps<Value, Multiple>;
9
+ type Actions = SelectRootActions;
10
+ type ChangeEventReason = SelectRootChangeEventReason;
11
+ type ChangeEventDetails = SelectRootChangeEventDetails;
12
+ }
13
+ export declare const Portal: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const ScrollDownArrow: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectScrollDownArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ export declare const ScrollUpArrow: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectScrollUpArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ export declare const Group: React.ForwardRefExoticComponent<Omit<import("./index.js").SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ export declare const ItemText: React.NamedExoticComponent<Omit<import("./index.js").SelectItemTextProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ export declare const Trigger: typeof H.Trigger;
22
+ export declare namespace Trigger {
23
+ type State = SelectTriggerState;
24
+ type Props = SelectTriggerProps;
25
+ }
26
+ export declare const Value: typeof H.Value;
27
+ export declare const Icon: typeof H.Icon;
28
+ export declare const Popup: typeof H.Popup;
29
+ export declare const List: typeof H.List;
30
+ export declare const Item: typeof H.Item;
31
+ export declare const ItemIndicator: typeof H.ItemIndicator;
32
+ export declare const GroupLabel: typeof H.GroupLabel;
33
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<import("../index.js").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,118 @@
1
+ var _svg, _React$Fragment, _ChevronIcon;
2
+ import * as React from 'react';
3
+ import * as H from "./index.parts.js";
4
+ import { cx } from "../_cx.js";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ function ChevronIcon() {
7
+ return _svg || (_svg = /*#__PURE__*/_jsx("svg", {
8
+ className: "tale-select__icon",
9
+ viewBox: "0 0 16 16",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: "1.5",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": true,
16
+ children: /*#__PURE__*/_jsx("polyline", {
17
+ points: "4,6 8,10 12,6"
18
+ })
19
+ }));
20
+ }
21
+ export const Root = H.Root;
22
+ export const Portal = H.Portal;
23
+ export const Backdrop = H.Backdrop;
24
+ export const Positioner = H.Positioner;
25
+ export const Arrow = H.Arrow;
26
+ export const ScrollDownArrow = H.ScrollDownArrow;
27
+ export const ScrollUpArrow = H.ScrollUpArrow;
28
+ export const Group = H.Group;
29
+ export const ItemText = H.ItemText;
30
+ const StyledTrigger = /*#__PURE__*/React.forwardRef(({
31
+ className,
32
+ children,
33
+ ...props
34
+ }, ref) => /*#__PURE__*/_jsx(H.Trigger, {
35
+ className: cx('tale-select__trigger', className),
36
+ ref: ref,
37
+ ...props,
38
+ children: children ?? (_React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {
39
+ children: [/*#__PURE__*/_jsx(H.Value, {
40
+ className: "tale-select__value"
41
+ }), /*#__PURE__*/_jsx(ChevronIcon, {})]
42
+ })))
43
+ }));
44
+ StyledTrigger.displayName = 'Select.Trigger';
45
+ export const Trigger = StyledTrigger;
46
+ const StyledValue = /*#__PURE__*/React.forwardRef(({
47
+ className,
48
+ ...props
49
+ }, ref) => /*#__PURE__*/_jsx(H.Value, {
50
+ className: cx('tale-select__value', className),
51
+ ref: ref,
52
+ ...props
53
+ }));
54
+ StyledValue.displayName = 'Select.Value';
55
+ export const Value = StyledValue;
56
+ const StyledIcon = /*#__PURE__*/React.forwardRef(({
57
+ className,
58
+ children = _ChevronIcon || (_ChevronIcon = /*#__PURE__*/_jsx(ChevronIcon, {})),
59
+ ...props
60
+ }, ref) => /*#__PURE__*/_jsx(H.Icon, {
61
+ className: cx('tale-select__icon', className),
62
+ ref: ref,
63
+ ...props,
64
+ children: children
65
+ }));
66
+ StyledIcon.displayName = 'Select.Icon';
67
+ export const Icon = StyledIcon;
68
+ const StyledPopup = /*#__PURE__*/React.forwardRef(({
69
+ className,
70
+ ...props
71
+ }, ref) => /*#__PURE__*/_jsx(H.Popup, {
72
+ className: cx('tale-select__popup', className),
73
+ ref: ref,
74
+ ...props
75
+ }));
76
+ StyledPopup.displayName = 'Select.Popup';
77
+ export const Popup = StyledPopup;
78
+ const StyledList = /*#__PURE__*/React.forwardRef(({
79
+ className,
80
+ ...props
81
+ }, ref) => /*#__PURE__*/_jsx(H.List, {
82
+ className: cx('tale-select__list', className),
83
+ ref: ref,
84
+ ...props
85
+ }));
86
+ StyledList.displayName = 'Select.List';
87
+ export const List = StyledList;
88
+ const StyledItem = /*#__PURE__*/React.forwardRef(({
89
+ className,
90
+ ...props
91
+ }, ref) => /*#__PURE__*/_jsx(H.Item, {
92
+ className: cx('tale-select__item', className),
93
+ ref: ref,
94
+ ...props
95
+ }));
96
+ StyledItem.displayName = 'Select.Item';
97
+ export const Item = StyledItem;
98
+ const StyledItemIndicator = /*#__PURE__*/React.forwardRef(({
99
+ className,
100
+ ...props
101
+ }, ref) => /*#__PURE__*/_jsx(H.ItemIndicator, {
102
+ className: cx('tale-select__item-indicator', className),
103
+ ref: ref,
104
+ ...props
105
+ }));
106
+ StyledItemIndicator.displayName = 'Select.ItemIndicator';
107
+ export const ItemIndicator = StyledItemIndicator;
108
+ const StyledGroupLabel = /*#__PURE__*/React.forwardRef(({
109
+ className,
110
+ ...props
111
+ }, ref) => /*#__PURE__*/_jsx(H.GroupLabel, {
112
+ className: cx('tale-select__group-label', className),
113
+ ref: ref,
114
+ ...props
115
+ }));
116
+ StyledGroupLabel.displayName = 'Select.GroupLabel';
117
+ export const GroupLabel = StyledGroupLabel;
118
+ export const Separator = H.Separator;
@@ -1,4 +1,4 @@
1
- export * as Select from "./index.parts.js";
1
+ export * as Select from "./Select.styled.js";
2
2
  export type * from "./root/SelectRoot.js";
3
3
  export type * from "./trigger/SelectTrigger.js";
4
4
  export type * from "./value/SelectValue.js";
@@ -1 +1 @@
1
- export * as Select from "./index.parts.js";
1
+ export * as Select from "./Select.styled.js";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import type { SeparatorProps, SeparatorState } from "./Separator.js";
3
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export declare namespace Separator {
5
+ type Props = SeparatorProps;
6
+ type State = SeparatorState;
7
+ }
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { Separator as H } from "./Separator.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Separator = /*#__PURE__*/React.forwardRef(({
6
+ orientation = 'horizontal',
7
+ className,
8
+ ...props
9
+ }, ref) => /*#__PURE__*/_jsx(H, {
10
+ orientation: orientation,
11
+ className: cx(orientation === 'vertical' ? 'tale-separator tale-separator--vertical' : 'tale-separator', className),
12
+ ref: ref,
13
+ ...props
14
+ }));
15
+ if (process.env.NODE_ENV !== "production") Separator.displayName = "Separator";
16
+ Separator.displayName = 'Separator';
@@ -1,2 +1,2 @@
1
- export { Separator } from "./Separator.js";
2
- export type * from "./Separator.js";
1
+ export { Separator } from "./Separator.styled.js";
2
+ export type { SeparatorProps, SeparatorState } from "./Separator.js";
@@ -1 +1 @@
1
- export { Separator } from "./Separator.js";
1
+ export { Separator } from "./Separator.styled.js";
@@ -0,0 +1,16 @@
1
+ import * as H from "./index.parts.js";
2
+ import type { SliderRootState, SliderRootProps, SliderRootChangeEventReason, SliderRootChangeEventDetails, SliderRootCommitEventReason, SliderRootCommitEventDetails } from "./root/SliderRoot.js";
3
+ export declare const Root: typeof H.Root;
4
+ export declare namespace Root {
5
+ type State = SliderRootState;
6
+ type Props<Value extends number | readonly number[] = number | readonly number[]> = SliderRootProps<Value>;
7
+ type ChangeEventReason = SliderRootChangeEventReason;
8
+ type ChangeEventDetails = SliderRootChangeEventDetails;
9
+ type CommitEventReason = SliderRootCommitEventReason;
10
+ type CommitEventDetails = SliderRootCommitEventDetails;
11
+ }
12
+ export declare const Control: typeof H.Control;
13
+ export declare const Track: typeof H.Track;
14
+ export declare const Indicator: typeof H.Indicator;
15
+ export declare const Thumb: typeof H.Thumb;
16
+ export { Value } from "./index.parts.js";
@@ -0,0 +1,55 @@
1
+ import * as React from 'react';
2
+ import * as H from "./index.parts.js";
3
+ import { cx } from "../_cx.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const StyledRoot = /*#__PURE__*/React.forwardRef(({
6
+ className,
7
+ ...props
8
+ }, ref) => /*#__PURE__*/_jsx(H.Root, {
9
+ className: cx('tale-slider', className),
10
+ ref: ref,
11
+ ...props
12
+ }));
13
+ StyledRoot.displayName = 'Slider.Root';
14
+ export const Root = StyledRoot;
15
+ const StyledControl = /*#__PURE__*/React.forwardRef(({
16
+ className,
17
+ ...props
18
+ }, ref) => /*#__PURE__*/_jsx(H.Control, {
19
+ className: cx('tale-slider__control', className),
20
+ ref: ref,
21
+ ...props
22
+ }));
23
+ StyledControl.displayName = 'Slider.Control';
24
+ export const Control = StyledControl;
25
+ const StyledTrack = /*#__PURE__*/React.forwardRef(({
26
+ className,
27
+ ...props
28
+ }, ref) => /*#__PURE__*/_jsx(H.Track, {
29
+ className: cx('tale-slider__track', className),
30
+ ref: ref,
31
+ ...props
32
+ }));
33
+ StyledTrack.displayName = 'Slider.Track';
34
+ export const Track = StyledTrack;
35
+ const StyledIndicator = /*#__PURE__*/React.forwardRef(({
36
+ className,
37
+ ...props
38
+ }, ref) => /*#__PURE__*/_jsx(H.Indicator, {
39
+ className: cx('tale-slider__indicator', className),
40
+ ref: ref,
41
+ ...props
42
+ }));
43
+ StyledIndicator.displayName = 'Slider.Indicator';
44
+ export const Indicator = StyledIndicator;
45
+ const StyledThumb = /*#__PURE__*/React.forwardRef(({
46
+ className,
47
+ ...props
48
+ }, ref) => /*#__PURE__*/_jsx(H.Thumb, {
49
+ className: cx('tale-slider__thumb', className),
50
+ ref: ref,
51
+ ...props
52
+ }));
53
+ StyledThumb.displayName = 'Slider.Thumb';
54
+ export const Thumb = StyledThumb;
55
+ export { Value } from "./index.parts.js";
@@ -1,4 +1,4 @@
1
- export * as Slider from "./index.parts.js";
1
+ export * as Slider from "./Slider.styled.js";
2
2
  export type * from "./root/SliderRoot.js";
3
3
  export type * from "./value/SliderValue.js";
4
4
  export type * from "./control/SliderControl.js";
@@ -1 +1 @@
1
- export * as Slider from "./index.parts.js";
1
+ export * as Slider from "./Slider.styled.js";
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").SwitchRootProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
3
+ export declare const Thumb: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").SwitchThumbProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;