twenty-ui 2.50.0 → 2.51.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 (215) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +36 -32
  3. package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
  4. package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
  5. package/dist/Dropdown-D_hFndP5.cjs +1 -0
  6. package/dist/Dropdown-xXsGBv57.js +1056 -0
  7. package/dist/Input-D1sIHUZ5.js +25 -0
  8. package/dist/Input-D69M4UwD.cjs +1 -0
  9. package/dist/ListItem-B-SFWJZb.cjs +1 -0
  10. package/dist/ListItem-WLONJMo5.js +91 -0
  11. package/dist/ListItem.module-B31VK9XZ.js +34 -0
  12. package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
  13. package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
  14. package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
  15. package/dist/ProgressBar-8pjpGrmZ.js +99 -0
  16. package/dist/ProgressBar-goqxS9NE.cjs +1 -0
  17. package/dist/Radio-CpQPRHXa.cjs +1 -0
  18. package/dist/Radio-VTjpEz8M.js +175 -0
  19. package/dist/Skeleton-BbIF780H.js +31 -0
  20. package/dist/Skeleton-tXeIy4qq.cjs +1 -0
  21. package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
  22. package/dist/{Tooltip-DL3sfbuw.cjs → Tooltip-08dDawT_.cjs} +1 -1
  23. package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
  24. package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
  25. package/dist/components/data-display/index.d.ts +2 -0
  26. package/dist/components/data-display.cjs +1 -1
  27. package/dist/components/data-display.mjs +9 -8
  28. package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -1
  29. package/dist/components/feedback.cjs +1 -1
  30. package/dist/components/feedback.mjs +1 -1
  31. package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
  32. package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
  33. package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
  34. package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
  35. package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
  36. package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
  37. package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
  38. package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
  39. package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
  40. package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
  41. package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
  42. package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
  43. package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
  44. package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
  45. package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
  46. package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
  47. package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
  48. package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
  49. package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
  50. package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
  51. package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
  52. package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
  53. package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
  54. package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
  55. package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
  56. package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
  57. package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
  58. package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
  59. package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
  60. package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
  61. package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
  62. package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
  63. package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
  64. package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
  65. package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
  66. package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
  67. package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
  68. package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
  69. package/dist/components/input/SegmentedControl/types/SegmentedControlVariant.d.ts +1 -0
  70. package/dist/components/input/index.d.ts +10 -0
  71. package/dist/components/input.cjs +1 -1
  72. package/dist/components/input.mjs +17 -13
  73. package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
  74. package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
  75. package/dist/components/layout/index.d.ts +2 -0
  76. package/dist/components/layout.cjs +1 -1
  77. package/dist/components/layout.mjs +5 -4
  78. package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
  79. package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
  80. package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
  81. package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
  82. package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
  83. package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
  84. package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
  85. package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
  86. package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
  87. package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
  88. package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
  89. package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
  90. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
  91. package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
  92. package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
  93. package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
  94. package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
  95. package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
  96. package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
  97. package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
  98. package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
  99. package/dist/components/navigation/index.d.ts +2 -0
  100. package/dist/components/navigation.cjs +1 -1
  101. package/dist/components/navigation.mjs +7 -6
  102. package/dist/components/settings.cjs +1 -1
  103. package/dist/components/settings.mjs +1 -1
  104. package/dist/components.cjs +1 -1
  105. package/dist/components.mjs +44 -37
  106. package/dist/{data-display-CXw-mxeS.js → data-display-DUMj_z1t.js} +25 -25
  107. package/dist/data-display-D_kbXJJd.cjs +2 -0
  108. package/dist/{data-display-DdES9XqZ.cjs → data-display-DzHM5j7j.cjs} +1 -1
  109. package/dist/data-display-b-9s0RTe.js +422 -0
  110. package/dist/feedback-B50I0C35.cjs +1 -0
  111. package/dist/feedback-BQFSnMjh.js +10 -0
  112. package/dist/{feedback-DspXawf9.cjs → feedback-BzR4ggrP.cjs} +1 -1
  113. package/dist/{feedback-4HKPcMRs.js → feedback-EaZszoXf.js} +29 -29
  114. package/dist/icon/components/TablerIcons.d.ts +1 -1
  115. package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
  116. package/dist/icon/index.d.ts +1 -1
  117. package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
  118. package/dist/icon-TSBamkxk.cjs +1 -0
  119. package/dist/icon.cjs +1 -1
  120. package/dist/icon.mjs +510 -504
  121. package/dist/index.cjs +1 -1
  122. package/dist/index.mjs +666 -652
  123. package/dist/input-BQABEELu.cjs +1 -0
  124. package/dist/input-CuySKbhm.js +2356 -0
  125. package/dist/input-DxoXgI5-.js +373 -0
  126. package/dist/input-ExCbk62Y.cjs +1 -0
  127. package/dist/layout-B1Iwc9ku.cjs +1 -0
  128. package/dist/layout-B2KvJ900.js +479 -0
  129. package/dist/navigation-DP5Edsq_.cjs +1 -0
  130. package/dist/navigation-DXMjQMPm.js +134 -0
  131. package/dist/primitives/data-display.cjs +1 -1
  132. package/dist/primitives/data-display.mjs +1 -1
  133. package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
  134. package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
  135. package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
  136. package/dist/primitives/feedback.cjs +1 -1
  137. package/dist/primitives/feedback.mjs +9 -8
  138. package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
  139. package/dist/primitives/input/Input/Input.d.ts +1 -1
  140. package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
  141. package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
  142. package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
  143. package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
  144. package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
  145. package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
  146. package/dist/primitives/input/index.d.ts +1 -0
  147. package/dist/primitives/input/types/InputVariant.d.ts +1 -0
  148. package/dist/primitives/input.cjs +1 -1
  149. package/dist/primitives/input.mjs +14 -14
  150. package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
  151. package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
  152. package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
  153. package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
  154. package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
  155. package/dist/primitives/navigation.cjs +1 -1
  156. package/dist/primitives/navigation.mjs +1 -1
  157. package/dist/primitives/surfaces/Card/Card.d.ts +2 -0
  158. package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
  159. package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
  160. package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
  161. package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
  162. package/dist/primitives/surfaces/index.d.ts +2 -0
  163. package/dist/primitives/surfaces.cjs +1 -1
  164. package/dist/primitives/surfaces.mjs +2 -2
  165. package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +4 -2
  166. package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
  167. package/dist/primitives/typography/Text/Text.d.ts +1 -1
  168. package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
  169. package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
  170. package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
  171. package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
  172. package/dist/primitives/typography.cjs +1 -1
  173. package/dist/primitives/typography.mjs +2 -2
  174. package/dist/primitives.cjs +1 -1
  175. package/dist/primitives.mjs +52 -51
  176. package/dist/{settings-XGSJtobU.js → settings-BTFAqYrD.js} +1 -1
  177. package/dist/{settings-DT5bEO6A.cjs → settings-D_iT1ngl.cjs} +1 -1
  178. package/dist/style.css +1 -1
  179. package/dist/surfaces-DtZwsfms.cjs +1 -0
  180. package/dist/surfaces-v0kQLZYO.js +224 -0
  181. package/dist/{typography-CWtuNruY.cjs → typography-B05olPwL.cjs} +1 -1
  182. package/dist/{typography-BPdXzW2T.js → typography-BwyZEDDi.js} +1 -1
  183. package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
  184. package/package.json +3 -1
  185. package/dist/Dropdown-ChTVyesF.js +0 -1018
  186. package/dist/Dropdown-DlItz8Gh.cjs +0 -1
  187. package/dist/Input-DZWl81G_.js +0 -23
  188. package/dist/Input-DvL77rvu.cjs +0 -1
  189. package/dist/ListItem-C6Xl00m1.cjs +0 -1
  190. package/dist/ListItem-C84ANa76.js +0 -86
  191. package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
  192. package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
  193. package/dist/OverflowingTextWithTooltip-BQmpPObX.cjs +0 -1
  194. package/dist/OverflowingTextWithTooltip-BtB9cGdJ.js +0 -89
  195. package/dist/ProgressBar-CzGs7cuE.cjs +0 -1
  196. package/dist/ProgressBar-D4tKQ7OA.js +0 -84
  197. package/dist/Radio-BwBZ4e8g.js +0 -103
  198. package/dist/Radio-sIYxZnR_.cjs +0 -1
  199. package/dist/data-display-C-eoJ5En.js +0 -378
  200. package/dist/data-display-CM1yXpnE.cjs +0 -2
  201. package/dist/feedback-BSOWDBI0.js +0 -38
  202. package/dist/feedback-DBRXDPSP.cjs +0 -1
  203. package/dist/icon-BNcdwwdl.cjs +0 -1
  204. package/dist/input-CWWp7cqL.cjs +0 -1
  205. package/dist/input-CvZ_uB_9.cjs +0 -1
  206. package/dist/input-Qn5_aFYU.js +0 -785
  207. package/dist/input-k5cMhFI_.js +0 -428
  208. package/dist/layout-DDqeMgFv.js +0 -439
  209. package/dist/layout-iSfGrMrH.cjs +0 -1
  210. package/dist/navigation-7Y6gHFlj.cjs +0 -1
  211. package/dist/navigation-BcXCiLE1.js +0 -86
  212. package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
  213. package/dist/surfaces-q8voTXEJ.cjs +0 -1
  214. package/dist/surfaces-vhSZBmbz.js +0 -201
  215. package/dist/{Tooltip-6uS8_wdA.js → Tooltip-C7zc16gI.js} +1 -1
@@ -1,428 +0,0 @@
1
- import { t as u } from "./isDefined-fMi6eQ4r.js";
2
- import { Cn as j, So as ue, Tn as de } from "./icon-CUE-QGQK.js";
3
- import { t as q } from "./theme-B2EaXhye.js";
4
- import { t as a } from "./mergeClassNames-ClFMR1v0.js";
5
- import { r as pe } from "./Button-CU8BS-Yd.js";
6
- import { t as T } from "./isRenderableSlot-DT_depzM.js";
7
- import { t as G } from "./useProvidedTextDirection-Dk8LBQeF.js";
8
- import { n as f, t as m } from "./ListItem.module-BJ9Ttjrc.js";
9
- import { n as k, r as ve } from "./Input-DZWl81G_.js";
10
- import { i as h } from "./Radio-BwBZ4e8g.js";
11
- import { useRender as z } from "@base-ui/react/use-render";
12
- import { isFunction as R, isNumber as _e, isUndefined as W } from "@sniptt/guards";
13
- import { clsx as d } from "clsx";
14
- import { forwardRef as F, useContext as fe, useLayoutEffect as B, useMemo as he, useRef as be, useState as Se } from "react";
15
- import { jsx as t, jsxs as L } from "react/jsx-runtime";
16
- import { mergeProps as Ne } from "@base-ui/react/merge-props";
17
- import { Input as Ie } from "@base-ui/react/input";
18
- import { RadioGroup as ge } from "@base-ui/react/radio-group";
19
- import { Autocomplete as s } from "@base-ui/react/autocomplete";
20
- import { Checkbox as O } from "@base-ui/react/checkbox";
21
- import { Field as S } from "@base-ui/react/field";
22
- import { Select as n } from "@base-ui/react/select";
23
- import { Slider as N } from "@base-ui/react/slider";
24
- var Ce = "_inputGroup_17li0_1", Ae = "_positioner_17li0_8", we = "_popup_17li0_12", xe = "_arrow_17li0_31", Te = "_separator_17li0_72", Pe = "_list_17li0_86", ke = "_empty_17li0_93", I = {
25
- inputGroup: Ce,
26
- positioner: Ae,
27
- popup: we,
28
- arrow: xe,
29
- separator: Te,
30
- list: Pe,
31
- empty: ke
32
- }, Le = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Arrow, {
33
- ...r,
34
- className: a(I.arrow, e)
35
- }), Ge = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Empty, {
36
- ...r,
37
- className: a(I.empty, e)
38
- }), Re = ({ size: e, className: r, render: o, ...i }) => {
39
- const l = fe(ve);
40
- if (u(o)) return /* @__PURE__ */ t(s.Input, {
41
- ...i,
42
- className: r,
43
- render: o
44
- });
45
- const c = e ?? l?.size ?? "md";
46
- return /* @__PURE__ */ t(s.Input, {
47
- ...i,
48
- className: a(d(k.input, k[c]), r),
49
- "data-grouped": u(l) || void 0
50
- });
51
- }, Fe = ({ className: e, ...r }) => /* @__PURE__ */ t(s.InputGroup, {
52
- ...r,
53
- className: a(I.inputGroup, e)
54
- }), ye = ({ className: e, children: r, startIcon: o, endIcon: i, description: l, descriptionPlacement: c = "inline", ...p }) => /* @__PURE__ */ L(s.Item, {
55
- ...p,
56
- className: a(m.root, e),
57
- "data-color": "neutral",
58
- children: [
59
- T(o) && /* @__PURE__ */ t("div", {
60
- className: m.startIcon,
61
- "aria-hidden": !0,
62
- children: o
63
- }),
64
- /* @__PURE__ */ L("div", {
65
- className: m.label,
66
- children: [/* @__PURE__ */ t("div", {
67
- className: m.text,
68
- children: r
69
- }), T(l) && c === "inline" && /* @__PURE__ */ t("div", {
70
- className: d(m.description, m.inlineDescription),
71
- children: l
72
- })]
73
- }),
74
- T(l) && c === "end" && /* @__PURE__ */ t("div", {
75
- className: d(m.description, m.endDescription),
76
- children: l
77
- }),
78
- T(i) && /* @__PURE__ */ t("div", {
79
- className: m.endIcon,
80
- "aria-hidden": !0,
81
- children: i
82
- })
83
- ]
84
- }), De = ({ className: e, ...r }) => /* @__PURE__ */ t(s.List, {
85
- ...r,
86
- className: a(I.list, e)
87
- }), Ee = ({ width: e, style: r, className: o, ...i }) => /* @__PURE__ */ t(s.Popup, {
88
- ...i,
89
- className: a(I.popup, o),
90
- style: (l) => ({
91
- width: e,
92
- minInlineSize: u(e) ? 0 : void 0,
93
- ...R(r) ? r(l) : r
94
- })
95
- }), Be = ({ container: e, ...r }) => {
96
- const o = q(), i = G();
97
- return /* @__PURE__ */ t(s.Portal, {
98
- dir: i,
99
- ...r,
100
- container: W(e) ? o ?? void 0 : e
101
- });
102
- }, Ve = ({ className: e, align: r = "start", sideOffset: o = 8, ...i }) => {
103
- const l = G();
104
- return /* @__PURE__ */ t(s.Positioner, {
105
- dir: l,
106
- align: r,
107
- sideOffset: o,
108
- ...i,
109
- className: a(I.positioner, e)
110
- });
111
- }, $e = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Separator, {
112
- ...r,
113
- className: a(I.separator, e)
114
- }), je = () => ({
115
- Root: s.Root,
116
- Value: s.Value,
117
- Trigger: s.Trigger,
118
- InputGroup: Fe,
119
- Input: Re,
120
- Icon: s.Icon,
121
- Clear: s.Clear,
122
- Portal: Be,
123
- Backdrop: s.Backdrop,
124
- Positioner: Ve,
125
- Popup: Ee,
126
- Arrow: Le,
127
- List: De,
128
- Status: s.Status,
129
- Group: s.Group,
130
- GroupLabel: s.GroupLabel,
131
- Item: ye,
132
- Row: s.Row,
133
- Collection: s.Collection,
134
- Empty: Ge,
135
- Separator: $e,
136
- useFilter: s.useFilter,
137
- useFilteredItems: s.useFilteredItems
138
- }), oo = /* @__PURE__ */ je(), qe = "_container_262rx_1", ze = { container: qe }, to = ({ attached: e = !0, framed: r = !1, className: o, children: i, variant: l, size: c, color: p, render: g, ref: C, ...A }) => {
139
- const w = z({
140
- render: g,
141
- ref: C,
142
- props: {
143
- role: "group",
144
- "data-attached": e || void 0,
145
- "data-framed": r || void 0,
146
- ...A,
147
- className: d(ze.container, o),
148
- children: i
149
- }
150
- });
151
- return /* @__PURE__ */ t(pe.Provider, {
152
- value: {
153
- variant: l,
154
- color: p,
155
- size: c
156
- },
157
- children: w
158
- });
159
- }, H = ({ className: e, ...r }) => /* @__PURE__ */ t(O.Indicator, {
160
- ...r,
161
- className: a(f.indicator, e)
162
- }), U = ({ size: e = "sm", variant: r = "solid", shape: o = "square", color: i = "accent", hoverable: l = !0, className: c, ...p }) => /* @__PURE__ */ t(O.Root, {
163
- ...p,
164
- className: a(d(f.root, f[e], f[r], f[o], f[i], l && f.hoverable), c)
165
- }), We = ({ children: e, ...r }) => /* @__PURE__ */ L(U, {
166
- ...r,
167
- children: [/* @__PURE__ */ L(H, { children: [/* @__PURE__ */ t(j, {
168
- className: f.check,
169
- "aria-hidden": !0
170
- }), /* @__PURE__ */ t(ue, {
171
- className: f.minus,
172
- "aria-hidden": !0
173
- })] }), e]
174
- }), ao = Object.assign(We, {
175
- Root: U,
176
- Indicator: H
177
- }), Oe = "_description_yrj5x_1", He = { description: Oe }, M = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Description, {
178
- ref: o,
179
- className: a(He.description, e),
180
- ...r
181
- }));
182
- M.displayName = "FieldDescription";
183
- var Ue = "_error_179et_1", Me = { error: Ue }, J = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Error, {
184
- ref: o,
185
- className: a(Me.error, e),
186
- ...r
187
- }));
188
- J.displayName = "FieldError";
189
- var Je = "_label_1yxve_1", Ke = { label: Je }, K = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Label, {
190
- ref: o,
191
- className: a(Ke.label, e),
192
- ...r
193
- }));
194
- K.displayName = "FieldLabel";
195
- var io = {
196
- Root: S.Root,
197
- Item: S.Item,
198
- Label: K,
199
- Control: S.Control,
200
- Description: M,
201
- Error: J,
202
- Validity: S.Validity
203
- }, Qe = "_root_1bvm7_1", Xe = { root: Qe }, lo = ({ className: e, orientation: r = "vertical", ...o }) => /* @__PURE__ */ t(ge, {
204
- ...o,
205
- className: a(Xe.root, e),
206
- "data-orientation": r
207
- }), Ye = ({ className: e, ...r }) => /* @__PURE__ */ t(n.GroupLabel, {
208
- ...r,
209
- className: a(h.groupLabel, e)
210
- }), Ze = ({ className: e, children: r = /* @__PURE__ */ t(de, {}), ...o }) => /* @__PURE__ */ t(n.Icon, {
211
- ...o,
212
- className: a(h.icon, e),
213
- children: r
214
- }), er = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Item, {
215
- "data-color": "neutral",
216
- "data-indicator": "check",
217
- ...r,
218
- className: a(d(m.root, h.item), e)
219
- }), rr = ({ className: e, children: r = /* @__PURE__ */ t(j, { className: m.checkIndicator }), ...o }) => /* @__PURE__ */ t(n.ItemIndicator, {
220
- ...o,
221
- className: a(h.indicator, e),
222
- children: r
223
- }), or = ({ className: e, ...r }) => /* @__PURE__ */ t(n.ItemText, {
224
- ...r,
225
- className: a(d(m.label, m.text), e)
226
- }), tr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Popup, {
227
- ...r,
228
- className: a(h.popup, e)
229
- }), ar = ({ container: e, ...r }) => {
230
- const o = q(), i = G();
231
- return /* @__PURE__ */ t(n.Portal, {
232
- dir: i,
233
- ...r,
234
- container: W(e) ? o ?? void 0 : e
235
- });
236
- }, ir = ({ className: e, ...r }) => {
237
- const o = G();
238
- return /* @__PURE__ */ t(n.Positioner, {
239
- dir: o,
240
- ...r,
241
- className: a(h.positioner, e)
242
- });
243
- }, lr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Separator, {
244
- ...r,
245
- className: a(h.separator, e)
246
- }), sr = ({ size: e = "md", className: r, ...o }) => /* @__PURE__ */ t(n.Trigger, {
247
- ...o,
248
- className: a(d(k.input, k[e], h.trigger), r)
249
- }), nr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Value, {
250
- ...r,
251
- className: a(h.value, e)
252
- }), cr = () => ({
253
- Root: n.Root,
254
- Label: n.Label,
255
- Trigger: sr,
256
- Value: nr,
257
- Icon: Ze,
258
- Portal: ar,
259
- Backdrop: n.Backdrop,
260
- Positioner: ir,
261
- Popup: tr,
262
- List: n.List,
263
- Item: er,
264
- ItemIndicator: rr,
265
- ItemText: or,
266
- Arrow: n.Arrow,
267
- ScrollDownArrow: n.ScrollDownArrow,
268
- ScrollUpArrow: n.ScrollUpArrow,
269
- Group: n.Group,
270
- GroupLabel: Ye,
271
- Separator: lr
272
- }), so = /* @__PURE__ */ cr(), mr = "_root_1mh0w_1", ur = "_accent_1mh0w_16", dr = "_success_1mh0w_20", pr = "_control_1mh0w_24", vr = "_track_1mh0w_42", _r = "_indicator_1mh0w_55", fr = "_thumb_1mh0w_66", hr = "_label_1mh0w_80", br = "_value_1mh0w_81", b = {
273
- root: mr,
274
- accent: ur,
275
- success: dr,
276
- control: pr,
277
- track: vr,
278
- indicator: _r,
279
- thumb: fr,
280
- label: hr,
281
- value: br
282
- }, Sr = ({ className: e, color: r = "accent", thumbAlignment: o = "edge", ...i }) => /* @__PURE__ */ t(N.Root, {
283
- ...i,
284
- thumbAlignment: o,
285
- className: a(d(b.root, b[r]), e)
286
- }), Nr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Control, {
287
- ...r,
288
- className: a(b.control, e)
289
- }), Ir = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Track, {
290
- ...r,
291
- className: a(b.track, e)
292
- }), gr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Indicator, {
293
- ...r,
294
- className: a(b.indicator, e)
295
- }), Cr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Thumb, {
296
- ...r,
297
- className: a(b.thumb, e)
298
- }), Ar = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Label, {
299
- ...r,
300
- className: a(b.label, e)
301
- }), wr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Value, {
302
- ...r,
303
- className: a(b.value, e)
304
- }), no = {
305
- Root: Sr,
306
- Control: Nr,
307
- Track: Ir,
308
- Indicator: gr,
309
- Thumb: Cr,
310
- Label: Ar,
311
- Value: wr
312
- }, xr = ({ controlProps: e, nativeProps: r, state: o, render: i }) => {
313
- const { ref: l, ...c } = e, { ref: p, ...g } = r;
314
- return z({
315
- defaultTagName: "textarea",
316
- render: i,
317
- state: { ...o },
318
- ref: [l ?? null, p ?? null],
319
- props: Ne(c, g)
320
- });
321
- }, Tr = (e) => u(e) ? _e(e) ? `${e}px` : String(e) : "", V = (e, r) => {
322
- if (u(e)) {
323
- if (R(e)) return e(r);
324
- e.current = r;
325
- }
326
- }, Pr = (...e) => (r) => {
327
- const o = e.map((i) => {
328
- const l = V(i, r);
329
- return R(l) ? l : () => V(i, null);
330
- });
331
- return () => {
332
- for (const i of o) i();
333
- };
334
- }, P = (e) => {
335
- e.style.blockSize = "auto";
336
- const r = e.offsetHeight - e.clientHeight;
337
- e.style.blockSize = `${e.scrollHeight + r}px`;
338
- }, kr = (e) => {
339
- if (!u(globalThis.ResizeObserver)) return;
340
- let r, o = e.clientWidth;
341
- const i = new ResizeObserver(() => {
342
- const l = e.clientWidth;
343
- l !== o && (o = l, u(r) && cancelAnimationFrame(r), r = requestAnimationFrame(() => {
344
- r = void 0, P(e);
345
- }));
346
- });
347
- return i.observe(e), () => {
348
- i.disconnect(), u(r) && cancelAnimationFrame(r);
349
- };
350
- }, Lr = "_textarea_1qcvj_1", Gr = "_sm_1qcvj_38", Rr = "_md_1qcvj_42", $ = {
351
- textarea: Lr,
352
- sm: Gr,
353
- md: Rr
354
- }, co = ({ size: e = "md", autoResize: r = !1, maxRows: o, className: i, style: l, ref: c, render: p, onChange: g, value: C, rows: A, ...w }) => {
355
- const [v, Q] = Se(null), X = he(() => Pr(c, Q), [c]), Y = u(C), y = l?.blockSize, D = be(!1);
356
- B(() => {
357
- if (!u(v)) return;
358
- const _ = D.current;
359
- if (D.current = r, r) {
360
- P(v);
361
- return;
362
- }
363
- _ && (v.style.blockSize = Tr(y));
364
- }, [
365
- v,
366
- r,
367
- C,
368
- o,
369
- A,
370
- e,
371
- y
372
- ]), B(() => {
373
- if (!r || !u(v)) return;
374
- let _ = !0;
375
- const x = (me) => {
376
- requestAnimationFrame(() => {
377
- _ && !me.defaultPrevented && P(v);
378
- });
379
- }, E = v.form, ce = kr(v);
380
- return E?.addEventListener("reset", x), () => {
381
- _ = !1, E?.removeEventListener("reset", x), ce?.();
382
- };
383
- }, [
384
- v,
385
- r,
386
- w.form
387
- ]);
388
- const Z = (_) => {
389
- r && !Y && P(_.currentTarget), g?.(_);
390
- }, ee = u(o) ? {
391
- ...l,
392
- "--tw-textarea-max-rows": o
393
- } : l, { "aria-describedby": re, id: oe, name: te, disabled: ae, autoFocus: ie, defaultValue: le, onValueChange: se, ...ne } = w;
394
- return /* @__PURE__ */ t(Ie, {
395
- "aria-describedby": re,
396
- id: oe,
397
- name: te,
398
- disabled: ae,
399
- autoFocus: ie,
400
- defaultValue: le,
401
- onValueChange: se,
402
- render: (_, x) => /* @__PURE__ */ t(xr, {
403
- controlProps: _,
404
- nativeProps: {
405
- ...ne,
406
- rows: A,
407
- onChange: Z,
408
- ref: X
409
- },
410
- state: x,
411
- render: p
412
- }),
413
- value: C,
414
- className: a(d($.textarea, $[e]), i),
415
- style: ee,
416
- "data-auto-resize": r || void 0
417
- });
418
- };
419
- export {
420
- io as a,
421
- oo as c,
422
- lo as i,
423
- no as n,
424
- ao as o,
425
- so as r,
426
- to as s,
427
- co as t
428
- };