twenty-ui 2.50.0 → 2.51.3

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
@@ -0,0 +1,479 @@
1
+ import { t as f } from "./isDefined-fMi6eQ4r.js";
2
+ import { t as Y } from "./doNotTranslate-BSVT8Xyd.js";
3
+ import { r as de, t as Ne } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
4
+ import { t as se } from "./Separator-0LzwPfOn.js";
5
+ import { t as B } from "./Popover-CWeCV7X9.js";
6
+ import { t as Oe } from "./Heading-Nj5BlPqB.js";
7
+ import { useRender as Q } from "@base-ui/react/use-render";
8
+ import { isFunction as Z, isNonEmptyString as Le, isString as X, isUndefined as Ee } from "@sniptt/guards";
9
+ import { clsx as S } from "clsx";
10
+ import { cloneElement as Se, isValidElement as Me, memo as me, useCallback as J, useId as Te, useLayoutEffect as P, useRef as k, useState as q } from "react";
11
+ import { Fragment as j, jsx as u, jsxs as M } from "react/jsx-runtime";
12
+ import { mergeProps as xe } from "@base-ui/react/merge-props";
13
+ import { useMergedRefs as H } from "@base-ui/utils/useMergedRefs";
14
+ import { useControlled as De } from "@base-ui/utils/useControlled";
15
+ import { useStableCallback as z } from "@base-ui/utils/useStableCallback";
16
+ var Ae = "_container_1hm4x_1", Re = "_layer_1hm4x_9", ke = "_visible_1hm4x_23", ze = "_hidden_1hm4x_28", R = {
17
+ container: Ae,
18
+ layer: Re,
19
+ visible: ke,
20
+ hidden: ze
21
+ }, Et = ({ isActive: r, activeIcon: e, inactiveIcon: t, className: n, render: o, ref: s, ...l }) => Q({
22
+ defaultTagName: "span",
23
+ render: o,
24
+ ref: s,
25
+ props: {
26
+ ...l,
27
+ className: S(R.container, n),
28
+ children: /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ u("span", {
29
+ "aria-hidden": "true",
30
+ className: S(R.layer, r ? R.hidden : R.visible),
31
+ children: t
32
+ }), /* @__PURE__ */ u("span", {
33
+ "aria-hidden": "true",
34
+ className: S(R.layer, r ? R.visible : R.hidden),
35
+ children: e
36
+ })] })
37
+ }
38
+ }), We = "_root_izvk1_1", Ue = "_rule_izvk1_14", Ke = "_line_izvk1_22", Ve = "_marker_izvk1_28", Be = "_label_izvk1_36", K = {
39
+ root: We,
40
+ rule: Ue,
41
+ line: Ke,
42
+ marker: Ve,
43
+ label: Be
44
+ }, St = ({ children: r, labelPosition: e = "center", tone: t = "neutral", hasStartMarker: n = !1, className: o, render: s, ref: l, ...i }) => Q({
45
+ render: s,
46
+ ref: l,
47
+ props: {
48
+ role: "separator",
49
+ "aria-orientation": "horizontal",
50
+ "aria-label": r,
51
+ ...i,
52
+ "data-tone": t,
53
+ className: S(K.root, o),
54
+ children: /* @__PURE__ */ M(j, { children: [
55
+ /* @__PURE__ */ M("span", {
56
+ className: K.rule,
57
+ "aria-hidden": "true",
58
+ children: [n && /* @__PURE__ */ u("span", { className: K.marker }), /* @__PURE__ */ u(se, {
59
+ className: K.line,
60
+ "aria-hidden": !0
61
+ })]
62
+ }),
63
+ /* @__PURE__ */ u(de, {
64
+ render: /* @__PURE__ */ u("span", {}),
65
+ size: t === "danger" ? "sm" : "xs",
66
+ weight: t === "danger" ? "medium" : "semibold",
67
+ className: K.label,
68
+ children: r
69
+ }),
70
+ e === "center" && /* @__PURE__ */ u(se, {
71
+ className: K.line,
72
+ "aria-hidden": !0
73
+ })
74
+ ] })
75
+ }
76
+ }), $e = "_root_eheyl_1", He = "_items_eheyl_11", qe = "_item_eheyl_11", je = "_popupItem_eheyl_45", Ge = "_trigger_eheyl_49", Je = "_popup_eheyl_45", V = {
77
+ root: $e,
78
+ items: He,
79
+ item: qe,
80
+ popupItem: je,
81
+ trigger: Ge,
82
+ popup: Je
83
+ }, Qe = ({ props: r, state: e, render: t }) => {
84
+ const n = Me(t) ? t : void 0, o = H(r.ref, n?.props.ref);
85
+ if (Z(t)) return t(r, e);
86
+ const s = {
87
+ ...xe(r, n?.props),
88
+ children: r.children,
89
+ ref: o
90
+ };
91
+ return f(n) ? Se(n, s) : /* @__PURE__ */ u("div", { ...s });
92
+ }, Xe = me(({ elementRef: r, isHidden: e, onFocusLost: t }) => (P(() => {
93
+ const n = r.current, o = f(n) && n.contains(n.ownerDocument.activeElement);
94
+ e && o && t(n);
95
+ }, [
96
+ r,
97
+ e,
98
+ t
99
+ ]), null)), fe = (r) => J((e) => {
100
+ if (f(e))
101
+ return () => {
102
+ const t = e.ownerDocument, n = e.contains(t.activeElement);
103
+ queueMicrotask(() => {
104
+ const o = t.activeElement === t.body;
105
+ n && !e.isConnected && o && r(e);
106
+ });
107
+ };
108
+ }, [r]), ie = ({ children: r, index: e, isHidden: t, isLastVisible: n, isInPopup: o, onFocusLost: s }) => {
109
+ const l = k(null), i = z((a) => {
110
+ s({
111
+ index: e,
112
+ element: a,
113
+ isInPopup: o
114
+ });
115
+ });
116
+ return /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ u("div", {
117
+ ref: H(l, fe(i)),
118
+ className: o ? V.popupItem : V.item,
119
+ "data-item-index": e,
120
+ "data-hidden": t || void 0,
121
+ "data-last-visible": n || void 0,
122
+ "aria-hidden": t || void 0,
123
+ inert: t,
124
+ children: r
125
+ }), /* @__PURE__ */ u(Xe, {
126
+ elementRef: l,
127
+ isHidden: t,
128
+ onFocusLost: i
129
+ })] });
130
+ }, le = ({ itemWidths: r, availableWidth: e, gap: t, includePartialItem: n }) => {
131
+ let o = 0, s = 0;
132
+ for (const l of r) {
133
+ const i = o + l + (s > 0 ? t : 0);
134
+ if (s !== 0 && i > e) {
135
+ const a = o + t < e;
136
+ return n && a ? s + 1 : s;
137
+ }
138
+ o = i, s += 1;
139
+ }
140
+ return s;
141
+ }, Ye = ({ items: r, itemElements: e }) => {
142
+ r.setAttribute("data-measuring", "");
143
+ const t = e.map((n) => n.clientWidth);
144
+ return r.removeAttribute("data-measuring"), t;
145
+ }, Ze = ({ container: r, items: e, trigger: t, itemElements: n, itemCount: o, reserveCountSpace: s }) => {
146
+ const l = Ye({
147
+ items: e,
148
+ itemElements: n
149
+ }), i = parseFloat(getComputedStyle(e).columnGap) || 0, a = r.clientWidth, d = o > le({
150
+ itemWidths: l,
151
+ availableWidth: a,
152
+ gap: i,
153
+ includePartialItem: !1
154
+ }), p = t?.offsetWidth ?? 0;
155
+ return {
156
+ visibleItemCount: le({
157
+ itemWidths: l,
158
+ availableWidth: s && d ? Math.max(0, a - p - i) : a,
159
+ gap: i,
160
+ includePartialItem: !0
161
+ }),
162
+ hasOverflow: d
163
+ };
164
+ }, Pe = 100, et = me(({ containerRef: r, itemsRef: e, triggerRef: t, itemCount: n, inlineItemCount: o, reserveCountSpace: s, isMeasurementEnabled: l, isOpen: i, onLayoutChange: a, onOverflowUnavailable: d }) => {
165
+ const p = k(void 0), O = k(void 0), C = z(() => ({
166
+ itemCount: n,
167
+ inlineItemCount: o,
168
+ reserveCountSpace: s,
169
+ isOpen: i
170
+ })), F = z(a), T = z(d);
171
+ return P(() => {
172
+ const g = r.current, I = e.current;
173
+ if (!l || !f(g) || !f(I)) {
174
+ O.current = void 0;
175
+ return;
176
+ }
177
+ const L = /* @__PURE__ */ new Set(), y = () => {
178
+ const _ = Array.from(I.children), W = /* @__PURE__ */ new Set([g, ..._]);
179
+ f(t.current) && W.add(t.current);
180
+ for (const b of L) W.has(b) || (E?.unobserve(b), L.delete(b));
181
+ for (const b of W) L.has(b) || (E?.observe(b), L.add(b));
182
+ const D = C();
183
+ if (_.length !== D.inlineItemCount) return;
184
+ const c = Ze({
185
+ container: g,
186
+ items: I,
187
+ trigger: t.current,
188
+ itemElements: _,
189
+ itemCount: D.itemCount,
190
+ reserveCountSpace: D.reserveCountSpace
191
+ }), h = O.current, v = f(h) && h.isOpen && !h.layout.hasOverflow, A = D.isOpen && !c.hasOverflow;
192
+ O.current = {
193
+ layout: c,
194
+ isOpen: D.isOpen
195
+ }, F(c), A && !v && T();
196
+ }, E = f(globalThis.ResizeObserver) ? new ResizeObserver(y) : void 0;
197
+ p.current = y, y();
198
+ const x = new MutationObserver(y);
199
+ if (x.observe(I, {
200
+ attributes: !0,
201
+ attributeFilter: [
202
+ "class",
203
+ "style",
204
+ "hidden"
205
+ ],
206
+ characterData: !0,
207
+ childList: !0,
208
+ subtree: !0
209
+ }), x.observe(g, { childList: !0 }), !f(E)) {
210
+ const _ = setInterval(y, Pe);
211
+ return window.addEventListener("resize", y), () => {
212
+ p.current = void 0, clearInterval(_), x.disconnect(), window.removeEventListener("resize", y);
213
+ };
214
+ }
215
+ return () => {
216
+ p.current = void 0, x.disconnect(), E.disconnect();
217
+ };
218
+ }, [
219
+ r,
220
+ e,
221
+ t,
222
+ l,
223
+ C,
224
+ F,
225
+ T
226
+ ]), P(() => {
227
+ p.current?.();
228
+ }, [
229
+ n,
230
+ o,
231
+ s,
232
+ i
233
+ ]), null;
234
+ }), tt = ({ itemCount: r, inlineItemCount: e }) => {
235
+ const t = k(null), n = k(null), o = k(null), [s, l] = q({
236
+ visibleItemCount: e,
237
+ hasOverflow: r > e
238
+ });
239
+ return {
240
+ containerRef: t,
241
+ itemsRef: n,
242
+ triggerRef: o,
243
+ updateLayout: J((i) => {
244
+ l((a) => a.visibleItemCount !== i.visibleItemCount || a.hasOverflow !== i.hasOverflow ? i : a);
245
+ }, []),
246
+ ...s
247
+ };
248
+ }, rt = Y("button, a[href], input, select, textarea, [tabindex]"), ce = ({ items: r, popup: e, trigger: t, root: n, removedIndex: o, excludedItem: s }) => {
249
+ const l = [...Array.from(r?.children ?? []), ...Array.from(e?.children ?? [])].filter((i) => i !== s).sort((i, a) => Math.abs(Number(i.getAttribute("data-item-index")) - o) - Math.abs(Number(a.getAttribute("data-item-index")) - o) || Number(a.getAttribute("data-item-index")) - Number(i.getAttribute("data-item-index")));
250
+ for (const i of l)
251
+ if (!i.hasAttribute("inert")) {
252
+ for (const a of Array.from(i.querySelectorAll(rt))) if (!a.matches(":disabled") && !f(a.closest("[inert]")) && (a.focus(), a.ownerDocument.activeElement === a))
253
+ return;
254
+ }
255
+ t?.focus(), !(f(t) && t.ownerDocument.activeElement === t) && n?.focus();
256
+ }, nt = ({ containerRef: r, itemsRef: e, triggerRef: t, popup: n, itemCount: o, canExpand: s, isPopupOpen: l, isOpen: i, isHovered: a, showOverflowCount: d, onFocusCapture: p, onBlurCapture: O }) => {
257
+ const [C, F] = q(!1), [T, g] = q(), I = d ?? T ?? (a || C || i), L = z(({ index: c, element: h, isInPopup: v }) => {
258
+ ce({
259
+ items: v && s ? null : e.current,
260
+ popup: v && l ? n : null,
261
+ trigger: t.current,
262
+ root: r.current,
263
+ removedIndex: c,
264
+ excludedItem: h
265
+ });
266
+ }), y = J(() => {
267
+ const c = r.current;
268
+ c?.focus(), F(c?.ownerDocument.activeElement === c), g(void 0);
269
+ }, [r]), E = z(() => {
270
+ if (l) return;
271
+ const c = r.current, h = c?.ownerDocument, v = h?.activeElement, A = f(v) && e.current?.contains(v) && !f(v.closest("[inert]")), b = f(v) && v !== h?.body && !c?.contains(v) && !n?.contains(v);
272
+ if (A || b) return;
273
+ if (!s) {
274
+ ce({
275
+ items: e.current,
276
+ popup: null,
277
+ trigger: null,
278
+ root: c,
279
+ removedIndex: o
280
+ });
281
+ return;
282
+ }
283
+ const U = t.current;
284
+ if (f(U) && !U.matches(":disabled")) {
285
+ U.focus({ preventScroll: !0 });
286
+ return;
287
+ }
288
+ c?.focus({ preventScroll: !0 });
289
+ }), x = J(() => (queueMicrotask(E), !1), [E]), _ = fe(y);
290
+ return {
291
+ hasFocus: C,
292
+ isCountVisible: I,
293
+ restoreItemFocus: L,
294
+ schedulePopupFocusRestoration: x,
295
+ resetFocusWhenFocusedTriggerUnmounts: _,
296
+ handleFocusCapture: (c) => {
297
+ F(!0), e.current?.contains(c.target) && g((h) => h ?? I), p?.(c);
298
+ },
299
+ handleBlurCapture: (c) => {
300
+ F(c.currentTarget.contains(c.relatedTarget) || (n?.contains(c.relatedTarget) ?? !1)), e.current?.contains(c.relatedTarget) || g(void 0), O?.(c);
301
+ }
302
+ };
303
+ }, N = (r) => r.stopPropagation(), Mt = ({ children: r, showOverflowCount: e, maxInlineCount: t, overflowLabel: n = Y("Show all items"), open: o, defaultOpen: s = !1, onOpenChange: l, actionsRef: i, triggerProps: a, popupProps: d, className: p, onMouseEnter: O, onMouseLeave: C, onFocusCapture: F, onBlurCapture: T, ref: g, ...I }) => {
304
+ const [L, y] = q(!1), [E, x] = q(null), [_, W] = De({
305
+ controlled: o,
306
+ default: s,
307
+ name: Y("OverflowingList"),
308
+ state: "open"
309
+ }), D = k(null), c = i ?? D, h = f(t) && Number.isFinite(t) ? Math.min(r.length, Math.max(0, Math.floor(t))) : r.length, { containerRef: v, itemsRef: A, triggerRef: b, visibleItemCount: U, hasOverflow: ve, updateLayout: he } = tt({
310
+ itemCount: r.length,
311
+ inlineItemCount: h
312
+ }), G = ve && (_ || e !== !1), ee = _ && G, { hasFocus: _e, isCountVisible: te, restoreItemFocus: re, schedulePopupFocusRestoration: be, resetFocusWhenFocusedTriggerUnmounts: pe, handleFocusCapture: ge, handleBlurCapture: ye } = nt({
313
+ containerRef: v,
314
+ itemsRef: A,
315
+ triggerRef: b,
316
+ popup: E,
317
+ itemCount: r.length,
318
+ canExpand: G,
319
+ isPopupOpen: ee,
320
+ isOpen: _,
321
+ isHovered: L,
322
+ showOverflowCount: e,
323
+ onFocusCapture: F,
324
+ onBlurCapture: T
325
+ }), ne = (e ?? (L || _e)) || _, we = H(v, g), Fe = H(b, pe, a?.ref), Ce = H(x, d?.ref), ae = ne && e !== !1 ? U : h, oe = r.length - U, Ie = z(() => {
326
+ c.current?.close();
327
+ });
328
+ return /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ M("div", {
329
+ ...I,
330
+ ref: we,
331
+ tabIndex: I.tabIndex ?? -1,
332
+ className: S(V.root, p),
333
+ onMouseEnter: (m) => {
334
+ y(!0), O?.(m);
335
+ },
336
+ onMouseLeave: (m) => {
337
+ y(!1), C?.(m);
338
+ },
339
+ onFocusCapture: ge,
340
+ onBlurCapture: ye,
341
+ children: [/* @__PURE__ */ u("div", {
342
+ ref: A,
343
+ className: V.items,
344
+ children: r.slice(0, h).map((m, w) => /* @__PURE__ */ u(ie, {
345
+ index: w,
346
+ isHidden: w >= ae,
347
+ isLastVisible: e !== !1 && w === ae - 1,
348
+ isInPopup: !1,
349
+ onFocusLost: re,
350
+ children: m
351
+ }, m.key ?? w))
352
+ }), (G || _) && /* @__PURE__ */ M(B.Root, {
353
+ open: ee,
354
+ actionsRef: c,
355
+ onOpenChange: (m, w) => {
356
+ l?.(m, w), w.isCanceled || W(m);
357
+ },
358
+ children: [G && /* @__PURE__ */ u(B.Trigger, {
359
+ type: "button",
360
+ "aria-label": `+${oe} ${n}`,
361
+ ...a,
362
+ onClick: a?.onClick ?? N,
363
+ onMouseDown: a?.onMouseDown ?? N,
364
+ onPointerDown: a?.onPointerDown ?? N,
365
+ onKeyDown: a?.onKeyDown ?? N,
366
+ onKeyUp: a?.onKeyUp ?? N,
367
+ ref: Fe,
368
+ className: (m) => S(V.trigger, Z(a?.className) ? a.className(m) : a?.className),
369
+ "data-visible": te || void 0,
370
+ children: Ee(a?.children) ? `+${oe}` : a.children
371
+ }), /* @__PURE__ */ u(B.Portal, { children: /* @__PURE__ */ u(B.Positioner, {
372
+ anchor: v,
373
+ align: "start",
374
+ sideOffset: -9,
375
+ alignOffset: -7,
376
+ children: /* @__PURE__ */ u(B.Popup, {
377
+ "aria-label": n,
378
+ ...d,
379
+ onClick: d?.onClick ?? N,
380
+ onMouseDown: d?.onMouseDown ?? N,
381
+ onPointerDown: d?.onPointerDown ?? N,
382
+ onKeyDown: d?.onKeyDown ?? N,
383
+ onKeyUp: d?.onKeyUp ?? N,
384
+ ref: Ce,
385
+ render: (m, w) => /* @__PURE__ */ u(Qe, {
386
+ props: m,
387
+ state: w,
388
+ render: d?.render
389
+ }),
390
+ finalFocus: d?.finalFocus ?? be,
391
+ className: (m) => S(V.popup, Z(d?.className) ? d.className(m) : d?.className),
392
+ "data-overflowing-list-popup": "",
393
+ children: r.map((m, w) => /* @__PURE__ */ u(ie, {
394
+ index: w,
395
+ isHidden: !1,
396
+ isLastVisible: !1,
397
+ isInPopup: !0,
398
+ onFocusLost: re,
399
+ children: m
400
+ }, m.key ?? w))
401
+ })
402
+ }) })]
403
+ })]
404
+ }), /* @__PURE__ */ u(et, {
405
+ containerRef: v,
406
+ itemsRef: A,
407
+ triggerRef: b,
408
+ itemCount: r.length,
409
+ inlineItemCount: h,
410
+ reserveCountSpace: te,
411
+ isMeasurementEnabled: ne,
412
+ isOpen: _,
413
+ onLayoutChange: he,
414
+ onOverflowUnavailable: Ie
415
+ })] });
416
+ }, at = "_header_1dz7y_1", ot = "_titleRow_1dz7y_8", st = "_title_1dz7y_8", it = "_actions_1dz7y_21", lt = "_description_1dz7y_27", $ = {
417
+ header: at,
418
+ titleRow: ot,
419
+ title: st,
420
+ actions: it,
421
+ description: lt
422
+ }, ct = ({ title: r, description: e, actions: t, level: n = 2, size: o = "md", color: s = "primary", descriptionLineClamp: l = 5, isDescriptionFocusable: i = !1, render: a, ref: d, className: p, ...O }) => {
423
+ const C = Te(), F = X(e) ? Le(e) : f(e) && e !== !1, T = X(e) && l !== !1, g = X(e) ? /* @__PURE__ */ u(de, {
424
+ style: { whiteSpace: "pre-wrap" },
425
+ children: e
426
+ }) : e;
427
+ return Q({
428
+ render: a,
429
+ ref: d,
430
+ props: {
431
+ ...O,
432
+ className: S($.header, p),
433
+ children: /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ M("div", {
434
+ className: $.titleRow,
435
+ children: [/* @__PURE__ */ u(Oe, {
436
+ level: n,
437
+ size: o,
438
+ color: s,
439
+ className: $.title,
440
+ "aria-describedby": F ? C : void 0,
441
+ children: r
442
+ }), f(t) && /* @__PURE__ */ u("div", {
443
+ className: $.actions,
444
+ children: t
445
+ })]
446
+ }), F && /* @__PURE__ */ u("div", {
447
+ id: C,
448
+ className: $.description,
449
+ children: T ? /* @__PURE__ */ u(Ne, {
450
+ text: e,
451
+ lineClamp: l,
452
+ isTooltipMultiline: !0,
453
+ isFocusable: i
454
+ }) : g
455
+ })] })
456
+ }
457
+ });
458
+ }, ut = "_root_ztxxm_1", dt = "_fullWidth_ztxxm_20", ue = {
459
+ root: ut,
460
+ fullWidth: dt
461
+ }, mt = ({ align: r = "left", color: e = "primary", fullWidth: t = !0, className: n, render: o, ref: s, ...l }) => Q({
462
+ render: o,
463
+ ref: s,
464
+ props: {
465
+ ...l,
466
+ "data-align": r,
467
+ "data-color": e,
468
+ className: S(ue.root, t && ue.fullWidth, n)
469
+ }
470
+ }), Tt = {
471
+ Root: mt,
472
+ Header: ct
473
+ };
474
+ export {
475
+ Et as i,
476
+ Mt as n,
477
+ St as r,
478
+ Tt as t
479
+ };
@@ -0,0 +1 @@
1
+ const L=require("./doNotTranslate-CHE7WmRS.cjs"),w=require("./mergeClassNames-D4lshrT6.cjs"),B=require("./Button-iVyxlrwO.cjs"),P=require("./OverflowingTextWithTooltip-ClpPsdpP.cjs"),y=require("./ListItem-B-SFWJZb.cjs"),v=require("./Dropdown-D_hFndP5.cjs"),T=require("./TabsTabContent-6rkARU9F.cjs");let I=require("@base-ui/react/use-render"),f=require("@sniptt/guards"),x=require("clsx"),h=require("react"),r=require("react/jsx-runtime"),k=require("@base-ui/react/button"),j=require("@tabler/icons-react");var O="_pager_wkox0_1",N="_position_wkox0_11",D="_icon_wkox0_21",m={pager:O,position:N,icon:D},z=({index:e,count:t,onIndexChange:o,positionText:a,previousLabel:s,nextLabel:i,disabled:n=!1,positionPlacement:u="between",render:l,ref:c,className:d,...p})=>{const _=(0,f.isInteger)(e)&&(0,f.isInteger)(t)&&e>=0&&e<t,b=n||!_||e===0,q=n||!_||e===t-1,g=(0,r.jsx)(P.Text,{render:(0,r.jsx)("span",{}),className:m.position,"aria-live":"polite","aria-atomic":"true",children:a});return(0,I.useRender)({render:l,ref:c,props:{role:"group",...p,className:(0,x.clsx)(m.pager,d),"data-position-placement":u,children:(0,r.jsxs)(r.Fragment,{children:[u==="start"&&g,(0,r.jsx)(v.LightIconButton,{size:"sm",disabled:b,onClick:()=>o(e-1),"aria-label":s,children:(0,r.jsx)(j.IconChevronLeft,{className:m.icon})}),u==="between"&&g,(0,r.jsx)(v.LightIconButton,{size:"sm",disabled:q,onClick:()=>o(e+1),"aria-label":i,children:(0,r.jsx)(j.IconChevronRight,{className:m.icon})})]})}})},A=()=>{const{pageId:e,isPageActive:t,open:o,goToPage:a,goBack:s,canGoBack:i}=v.useDropdownContext();return{page:e,isActive:t&&o,goToPage:n=>a({id:n}),goBack:s,canGoBack:i}},G=({color:e,selected:t,selectionAppearance:o,active:a,focused:s,indicator:i,startIcon:n,endIcon:u,description:l,descriptionPlacement:c,shortcut:d,shortcutJoinLabel:p,hasSubmenu:_,disabled:b=!1,type:q="button",children:g,...C})=>(0,r.jsx)(y.ListItem,{color:e,selected:t,selectionAppearance:o,active:a,focused:s,indicator:i,startIcon:n,endIcon:u,description:l,descriptionPlacement:c,shortcut:d,shortcutJoinLabel:p,hasSubmenu:_,disabled:b,render:(0,r.jsx)(k.Button,{...C,nativeButton:!0,type:q,disabled:b}),children:g}),R=L.doNotTranslate({gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"}),E="_button_quwcq_1",S={button:E},F=({active:e=!1,className:t,children:o,startIcon:a,endIcon:s,badge:i,size:n,...u})=>{const l=(0,h.useContext)(B.ButtonGroupContext),c=n??l?.size??"sm";return(0,r.jsx)(B.Button,{...u,variant:"ghost",size:c,"data-active":e||void 0,className:w.mergeClassNames((0,x.clsx)(T.Tab_module_default.tab,S.button),t),children:(0,r.jsx)(T.TabsTabContent,{startIcon:a,endIcon:s,badge:i,children:o})})};Object.defineProperty(exports,"CountPager",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return A}});
@@ -0,0 +1,134 @@
1
+ import { Ot as w, kt as T } from "./TablerIcons-B-5Ua_Ne.js";
2
+ import { t as h } from "./doNotTranslate-BSVT8Xyd.js";
3
+ import { t as y } from "./mergeClassNames-ClFMR1v0.js";
4
+ import { r as I, t as L } from "./Button-CU8BS-Yd.js";
5
+ import { r as N } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
6
+ import { t as P } from "./ListItem-WLONJMo5.js";
7
+ import { i as _, o as z } from "./Dropdown-xXsGBv57.js";
8
+ import { n as G, t as x } from "./TabsTabContent-DPkLTBi2.js";
9
+ import { useRender as R } from "@base-ui/react/use-render";
10
+ import { isInteger as B } from "@sniptt/guards";
11
+ import { clsx as C } from "clsx";
12
+ import { useContext as A } from "react";
13
+ import { Fragment as D, jsx as r, jsxs as q } from "react/jsx-runtime";
14
+ import { Button as O } from "@base-ui/react/button";
15
+ var j = "_pager_wkox0_1", F = "_position_wkox0_11", S = "_icon_wkox0_21", d = {
16
+ pager: j,
17
+ position: F,
18
+ icon: S
19
+ }, eo = ({ index: o, count: t, onIndexChange: e, positionText: s, previousLabel: i, nextLabel: n, disabled: a = !1, positionPlacement: m = "between", render: l, ref: u, className: b, ...v }) => {
20
+ const p = B(o) && B(t) && o >= 0 && o < t, c = a || !p || o === 0, f = a || !p || o === t - 1, g = /* @__PURE__ */ r(N, {
21
+ render: /* @__PURE__ */ r("span", {}),
22
+ className: d.position,
23
+ "aria-live": "polite",
24
+ "aria-atomic": "true",
25
+ children: s
26
+ });
27
+ return R({
28
+ render: l,
29
+ ref: u,
30
+ props: {
31
+ role: "group",
32
+ ...v,
33
+ className: C(d.pager, b),
34
+ "data-position-placement": m,
35
+ children: /* @__PURE__ */ q(D, { children: [
36
+ m === "start" && g,
37
+ /* @__PURE__ */ r(_, {
38
+ size: "sm",
39
+ disabled: c,
40
+ onClick: () => e(o - 1),
41
+ "aria-label": i,
42
+ children: /* @__PURE__ */ r(w, { className: d.icon })
43
+ }),
44
+ m === "between" && g,
45
+ /* @__PURE__ */ r(_, {
46
+ size: "sm",
47
+ disabled: f,
48
+ onClick: () => e(o + 1),
49
+ "aria-label": n,
50
+ children: /* @__PURE__ */ r(T, { className: d.icon })
51
+ })
52
+ ] })
53
+ }
54
+ });
55
+ }, ao = () => {
56
+ const { pageId: o, isPageActive: t, open: e, goToPage: s, goBack: i, canGoBack: n } = z();
57
+ return {
58
+ page: o,
59
+ isActive: t && e,
60
+ goToPage: (a) => s({ id: a }),
61
+ goBack: i,
62
+ canGoBack: n
63
+ };
64
+ }, so = ({ color: o, selected: t, selectionAppearance: e, active: s, focused: i, indicator: n, startIcon: a, endIcon: m, description: l, descriptionPlacement: u, shortcut: b, shortcutJoinLabel: v, hasSubmenu: p, disabled: c = !1, type: f = "button", children: g, ...k }) => /* @__PURE__ */ r(P, {
65
+ color: o,
66
+ selected: t,
67
+ selectionAppearance: e,
68
+ active: s,
69
+ focused: i,
70
+ indicator: n,
71
+ startIcon: a,
72
+ endIcon: m,
73
+ description: l,
74
+ descriptionPlacement: u,
75
+ shortcut: b,
76
+ shortcutJoinLabel: v,
77
+ hasSubmenu: p,
78
+ disabled: c,
79
+ render: /* @__PURE__ */ r(O, {
80
+ ...k,
81
+ nativeButton: !0,
82
+ type: f,
83
+ disabled: c
84
+ }),
85
+ children: g
86
+ }), io = h({
87
+ gray: "Gray",
88
+ tomato: "Tomato",
89
+ red: "Red",
90
+ ruby: "Ruby",
91
+ crimson: "Crimson",
92
+ pink: "Pink",
93
+ plum: "Plum",
94
+ purple: "Purple",
95
+ violet: "Violet",
96
+ iris: "Iris",
97
+ cyan: "Cyan",
98
+ turquoise: "Turquoise",
99
+ sky: "Sky",
100
+ blue: "Blue",
101
+ jade: "Jade",
102
+ green: "Green",
103
+ grass: "Grass",
104
+ mint: "Mint",
105
+ lime: "Lime",
106
+ bronze: "Bronze",
107
+ gold: "Gold",
108
+ brown: "Brown",
109
+ orange: "Orange",
110
+ amber: "Amber",
111
+ yellow: "Yellow"
112
+ }), E = "_button_quwcq_1", $ = { button: E }, no = ({ active: o = !1, className: t, children: e, startIcon: s, endIcon: i, badge: n, size: a, ...m }) => {
113
+ const l = A(I), u = a ?? l?.size ?? "sm";
114
+ return /* @__PURE__ */ r(L, {
115
+ ...m,
116
+ variant: "ghost",
117
+ size: u,
118
+ "data-active": o || void 0,
119
+ className: y(C(G.tab, $.button), t),
120
+ children: /* @__PURE__ */ r(x, {
121
+ startIcon: s,
122
+ endIcon: i,
123
+ badge: n,
124
+ children: e
125
+ })
126
+ });
127
+ };
128
+ export {
129
+ eo as a,
130
+ ao as i,
131
+ io as n,
132
+ so as r,
133
+ no as t
134
+ };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-DdES9XqZ.cjs");exports.AVATAR_PROPERTIES_BY_SIZE=e.AVATAR_PROPERTIES_BY_SIZE;exports.Avatar=e.Avatar;exports.Badge=e.Badge;exports.Chip=e.Chip;exports.ColorSample=e.ColorSample;exports.Status=e.Status;exports.Tag=e.Tag;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-DzHM5j7j.cjs");exports.AVATAR_PROPERTIES_BY_SIZE=e.AVATAR_PROPERTIES_BY_SIZE;exports.Avatar=e.Avatar;exports.Badge=e.Badge;exports.Chip=e.Chip;exports.ColorSample=e.ColorSample;exports.Status=e.Status;exports.Tag=e.Tag;
@@ -1,4 +1,4 @@
1
- import { a as s, i as o, n as r, o as t, r as p, s as A, t as S } from "../data-display-CXw-mxeS.js";
1
+ import { a as s, i as o, n as r, o as t, r as p, s as A, t as S } from "../data-display-DUMj_z1t.js";
2
2
  export {
3
3
  t as AVATAR_PROPERTIES_BY_SIZE,
4
4
  A as Avatar,
@@ -1,3 +1,3 @@
1
- export declare const Banner: (({ status, variant, color, icon, action, className, children, render, ref, ...props }: import('..').BannerProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>) & {
1
+ export declare const Banner: (({ status, variant, color, icon, action, onDismiss, closeLabel, className, children, render, ref, ...props }: import('..').BannerProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>) & {
2
2
  Action: (props: import('..').BannerActionProps) => import("react").JSX.Element;
3
3
  };
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../types/BannerProps';
2
- export declare const BannerComponent: ({ status, variant, color, icon, action, className, children, render, ref, ...props }: BannerProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
2
+ export declare const BannerComponent: ({ status, variant, color, icon, action, onDismiss, closeLabel, className, children, render, ref, ...props }: BannerProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
@@ -10,4 +10,6 @@ export type BannerProps = Omit<useRender.ComponentProps<'div', BannerState>, 'co
10
10
  color?: BannerColor;
11
11
  icon?: ReactNode;
12
12
  action?: ReactNode;
13
+ onDismiss?: () => void;
14
+ closeLabel?: string;
13
15
  };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../ProgressRing-g1nHGyUp.cjs"),s=require("../Loader-Bb72CUQ9.cjs"),e=require("../ProgressBar-CzGs7cuE.cjs"),r=require("../feedback-DBRXDPSP.cjs");let n=require("@base-ui/react/progress");exports.Banner=e.Banner;exports.Loader=s.Loader;Object.defineProperty(exports,"Progress",{enumerable:!0,get:function(){return n.Progress}});exports.ProgressBar=e.ProgressBar;exports.ProgressRing=o.ProgressRing;exports.SKELETON_HEIGHT_SIZES=r.SKELETON_HEIGHT_SIZES;exports.Skeleton=r.Skeleton;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../ProgressRing-g1nHGyUp.cjs"),o=require("../Loader-Bb72CUQ9.cjs"),e=require("../ProgressBar-goqxS9NE.cjs"),s=require("../Skeleton-tXeIy4qq.cjs"),n=require("../feedback-B50I0C35.cjs");let t=require("@base-ui/react/progress");exports.Banner=e.Banner;exports.Loader=o.Loader;Object.defineProperty(exports,"Progress",{enumerable:!0,get:function(){return t.Progress}});exports.ProgressBar=e.ProgressBar;exports.ProgressRing=r.ProgressRing;exports.SKELETON_HEIGHT_SIZES=n.SKELETON_HEIGHT_SIZES;exports.Skeleton=s.Skeleton;
@@ -1,14 +1,15 @@
1
1
  import { n as o } from "../getProgressIndicatorPercentage-ejfaM6XU.js";
2
2
  import { t } from "../ProgressRing-8mYV9cxE.js";
3
- import { t as m } from "../Loader-DtHWQH8w.js";
4
- import { n, t as i } from "../ProgressBar-D4tKQ7OA.js";
5
- import { n as f, t as g } from "../feedback-BSOWDBI0.js";
3
+ import { t as a } from "../Loader-DtHWQH8w.js";
4
+ import { n as i, t as p } from "../ProgressBar-8pjpGrmZ.js";
5
+ import { t as n } from "../Skeleton-BbIF780H.js";
6
+ import { t as E } from "../feedback-BQFSnMjh.js";
6
7
  export {
7
- n as Banner,
8
- m as Loader,
8
+ i as Banner,
9
+ a as Loader,
9
10
  o as Progress,
10
- i as ProgressBar,
11
+ p as ProgressBar,
11
12
  t as ProgressRing,
12
- f as SKELETON_HEIGHT_SIZES,
13
- g as Skeleton
13
+ E as SKELETON_HEIGHT_SIZES,
14
+ n as Skeleton
14
15
  };