twenty-ui 2.44.0 → 2.45.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 (147) hide show
  1. package/dist/{Avatar-Da_dlwJP.js → Avatar-C0FtFpJC.js} +1 -1
  2. package/dist/{Avatar-B5-MSVUG.cjs → Avatar-CkI8b3nh.cjs} +1 -1
  3. package/dist/ListItem-B2HOeN2h.cjs +1 -0
  4. package/dist/ListItem-D8BQRK1W.js +97 -0
  5. package/dist/ListItem.module-Dxd8jOJP.js +35 -0
  6. package/dist/ListItem.module-RqrfwrFg.cjs +1 -0
  7. package/dist/{OverflowingTextWithTooltip-maBlogGW.cjs → OverflowingTextWithTooltip-tsJWb_Ie.cjs} +1 -1
  8. package/dist/ProgressBar-21MXyySH.js +108 -0
  9. package/dist/ProgressBar-CyqeRyzA.cjs +1 -0
  10. package/dist/{ResizeHandle-DN1bRxQb.js → ResizeHandle-CGYGfOVF.js} +5 -5
  11. package/dist/{ResizeHandle-cll01qBQ.cjs → ResizeHandle-CI-VTVOi.cjs} +1 -1
  12. package/dist/Shortcut-CRCVbA2m.js +71 -0
  13. package/dist/Shortcut-CuBFak3I.cjs +1 -0
  14. package/dist/Switch-BQp0t6JZ.js +129 -0
  15. package/dist/Switch-CFCj3OQZ.cjs +1 -0
  16. package/dist/TabsTabContent-DZUNi_iE.cjs +1 -0
  17. package/dist/TabsTabContent-s6J5bZ3R.js +39 -0
  18. package/dist/components/code-editor.cjs +1 -1
  19. package/dist/components/code-editor.mjs +1 -1
  20. package/dist/components/data-display/MetricRow/MetricRow.d.ts +2 -0
  21. package/dist/components/data-display/MetricRow/types/MetricRowProps.d.ts +11 -0
  22. package/dist/components/index.d.ts +6 -1
  23. package/dist/components/input/IconButton/types/IconButtonProps.d.ts +1 -1
  24. package/dist/components/input/ImageInput/ImageInput.d.ts +2 -0
  25. package/dist/components/input/ImageInput/__stories__/ImageInputPreviewChangesExample.d.ts +2 -0
  26. package/dist/components/input/ImageInput/__stories__/imageInputPreviewUrl.d.ts +1 -0
  27. package/dist/components/input/ImageInput/internal/ImageInputPreview.d.ts +5 -0
  28. package/dist/components/input/ImageInput/types/ImageInputProps.d.ts +15 -0
  29. package/dist/components/layout/OverflowingList/OverflowingList.d.ts +2 -0
  30. package/dist/components/layout/OverflowingList/__stories__/OVERFLOWING_LIST_STORY_ITEMS.d.ts +1 -0
  31. package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledFocusExample.d.ts +1 -0
  32. package/dist/components/layout/OverflowingList/__stories__/OverflowingListMutableTag.d.ts +1 -0
  33. package/dist/components/layout/OverflowingList/__stories__/OverflowingListResizeExample.d.ts +1 -0
  34. package/dist/components/layout/OverflowingList/__stories__/expectOverflowingListPopupGeometry.d.ts +4 -0
  35. package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +9 -0
  36. package/dist/components/layout/OverflowingList/internal/getVisibleItemCount.d.ts +6 -0
  37. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +5 -0
  38. package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -0
  39. package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +12 -0
  40. package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -0
  41. package/dist/components/navigation/Dropdown/Dropdown.d.ts +3 -3
  42. package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
  43. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  44. package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
  45. package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +1 -1
  46. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +1 -1
  47. package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
  48. package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +3 -3
  49. package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
  50. package/dist/components-BizDepCM.cjs +1 -0
  51. package/dist/components-CC-3jXEq.js +2144 -0
  52. package/dist/components.cjs +1 -1
  53. package/dist/components.mjs +30 -28
  54. package/dist/{data-display-DenoFbuP.cjs → data-display-BgweQocz.cjs} +1 -1
  55. package/dist/{data-display-npY0auY_.js → data-display-Dn_nzrc8.js} +25 -25
  56. package/dist/index.cjs +1 -1
  57. package/dist/index.mjs +631 -622
  58. package/dist/input-C50264Jb.js +407 -0
  59. package/dist/input-CRiX4eQH.cjs +1 -0
  60. package/dist/isRenderableSlot-DT_depzM.js +6 -0
  61. package/dist/isRenderableSlot-Guryb6Nf.cjs +1 -0
  62. package/dist/navigation-B9YTBTaa.cjs +1 -0
  63. package/dist/navigation-CQUyRKgk.js +122 -0
  64. package/dist/primitives/data-display.cjs +1 -1
  65. package/dist/primitives/data-display.mjs +2 -2
  66. package/dist/primitives/feedback/ProgressRing/ProgressRing.d.ts +2 -0
  67. package/dist/primitives/feedback/ProgressRing/types/ProgressRingProps.d.ts +6 -0
  68. package/dist/primitives/feedback/index.d.ts +2 -0
  69. package/dist/primitives/feedback.cjs +1 -1
  70. package/dist/primitives/feedback.mjs +6 -5
  71. package/dist/primitives/input/Button/Button.d.ts +1 -1
  72. package/dist/primitives/input/Button/types/ButtonProps.d.ts +3 -1
  73. package/dist/primitives/input/NumberStepper/NumberStepper.d.ts +2 -0
  74. package/dist/primitives/input/NumberStepper/__stories__/ControlledNumberStepperExample.d.ts +2 -0
  75. package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFieldExample.d.ts +2 -0
  76. package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFormExample.d.ts +4 -0
  77. package/dist/primitives/input/NumberStepper/internal/constants/NumberStepperFormat.d.ts +1 -0
  78. package/dist/primitives/input/NumberStepper/internal/utils/isBlurRoundingOfCurrentValue.d.ts +8 -0
  79. package/dist/primitives/input/NumberStepper/types/NumberStepperProps.d.ts +7 -0
  80. package/dist/primitives/input/index.d.ts +2 -0
  81. package/dist/primitives/input.cjs +1 -1
  82. package/dist/primitives/input.mjs +15 -14
  83. package/dist/primitives/layout.cjs +1 -1
  84. package/dist/primitives/layout.mjs +1 -1
  85. package/dist/primitives/navigation/Breadcrumb/Breadcrumb.d.ts +2 -0
  86. package/dist/primitives/navigation/Breadcrumb/internal/BreadcrumbItemContent.d.ts +6 -0
  87. package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbItem.d.ts +2 -0
  88. package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbProps.d.ts +5 -0
  89. package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
  90. package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -2
  91. package/dist/primitives/navigation/index.d.ts +3 -0
  92. package/dist/primitives/navigation.cjs +1 -1
  93. package/dist/primitives/navigation.mjs +5 -4
  94. package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +2 -2
  95. package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
  96. package/dist/primitives/surfaces.cjs +1 -1
  97. package/dist/primitives/surfaces.mjs +2 -2
  98. package/dist/primitives/typography/Shortcut/Shortcut.d.ts +2 -0
  99. package/dist/primitives/typography/Shortcut/formatShortcut.d.ts +2 -0
  100. package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +8 -0
  101. package/dist/primitives/typography/Shortcut/types/ShortcutDefinition.d.ts +1 -0
  102. package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +7 -0
  103. package/dist/primitives/typography/Shortcut/types/ShortcutProps.d.ts +6 -0
  104. package/dist/primitives/typography/index.d.ts +5 -0
  105. package/dist/primitives/typography.cjs +1 -1
  106. package/dist/primitives/typography.mjs +8 -4
  107. package/dist/primitives.cjs +1 -1
  108. package/dist/primitives.mjs +61 -54
  109. package/dist/style.css +1 -1
  110. package/dist/{surfaces-BJilWRcD.js → surfaces-C9ZUjKxU.js} +10 -10
  111. package/dist/{surfaces-iGk6vB0x.cjs → surfaces-Davk4uBw.cjs} +1 -1
  112. package/dist/typography-D3fk3hSo.cjs +1 -0
  113. package/dist/typography-DUJWRilJ.js +5 -0
  114. package/dist/useIsMobile-CAIiLC-3.js +37 -0
  115. package/dist/useIsMobile-UXHqqYXb.cjs +1 -0
  116. package/dist/utilities/index.d.ts +0 -1
  117. package/dist/utilities-CJKPcDM4.js +28 -0
  118. package/dist/utilities-CdR__WZM.cjs +1 -0
  119. package/dist/utilities.cjs +1 -1
  120. package/dist/utilities.mjs +16 -16
  121. package/package.json +1 -1
  122. package/dist/ListItem-Bg7Sk5Nv.js +0 -112
  123. package/dist/ListItem-UYe5GaEQ.cjs +0 -1
  124. package/dist/ListItem.module-DkSRO3lX.cjs +0 -1
  125. package/dist/ListItem.module-DqkBkYtI.js +0 -38
  126. package/dist/ProgressBar-C8N-1Iav.cjs +0 -1
  127. package/dist/ProgressBar-Cq6EDZz9.js +0 -58
  128. package/dist/Switch-BLO0Y9bi.cjs +0 -1
  129. package/dist/Switch-CMVfAYqP.js +0 -127
  130. package/dist/TabsTabContent-BseLV1Wk.cjs +0 -1
  131. package/dist/TabsTabContent-_NCTxoP6.js +0 -40
  132. package/dist/components/navigation/NavigationBar/NavigationBar.d.ts +0 -13
  133. package/dist/components/navigation/NavigationBar/internal/NavigationBarItem/NavigationBarItem.d.ts +0 -9
  134. package/dist/components-Bs-35QDJ.cjs +0 -1
  135. package/dist/components-kaERZ89J.js +0 -1865
  136. package/dist/input-BNuMVtkM.cjs +0 -1
  137. package/dist/input-COx4wMjs.js +0 -324
  138. package/dist/navigation-CUofX3gO.js +0 -78
  139. package/dist/navigation-qJfYicT7.cjs +0 -1
  140. package/dist/primitives/input/Button/internal/ButtonHotKeys.d.ts +0 -5
  141. package/dist/primitives/navigation/ListItem/internal/MenuItemHotKeys/MenuItemHotKeys.d.ts +0 -6
  142. package/dist/primitives/navigation/Tabs/internal/isRenderableSlot.d.ts +0 -2
  143. package/dist/utilities/device/getOsShortcutSeparator.d.ts +0 -1
  144. package/dist/utilities-B7EwAZ4L.cjs +0 -1
  145. package/dist/utilities-CMrqpiWM.js +0 -64
  146. package/dist/{OverflowingTextWithTooltip-CtHMhu6b.js → OverflowingTextWithTooltip-CNpmkBvJ.js} +1 -1
  147. /package/dist/{primitives/navigation/ListItem → utilities}/internal/isRenderableSlot.d.ts +0 -0
@@ -0,0 +1,28 @@
1
+ import { f as a, h as s } from "./theme-CjHovJAZ.js";
2
+ import { i as n, n as m } from "./useIsMobile-CAIiLC-3.js";
3
+ import { z as l } from "zod";
4
+ var E = (e) => e.replace(/\d+$/, ""), c = l.enum(a), T = (e) => {
5
+ const r = c.safeParse(e ?? "");
6
+ return r.success ? r.data : s;
7
+ }, i = (e) => {
8
+ let r = 0;
9
+ for (let o = 0; o < e.length; o++) r = e.charCodeAt(o) + ((r << 5) - r);
10
+ return a[Math.abs(r) % a.length] ?? a[0];
11
+ }, _ = ({ string: e, variant: r = 9, theme: o }) => {
12
+ if (r < 1 || r > 12) throw new Error("Variant must be between 1 and 12");
13
+ const t = `${i(e)}${r}`;
14
+ return o.color[t];
15
+ }, d = () => {
16
+ const e = n();
17
+ return e === "mac" || e === "ios" ? "⌘" : "Ctrl";
18
+ }, h = "(hover: none) and (pointer: coarse)", f = () => m(h);
19
+ export {
20
+ _ as a,
21
+ E as c,
22
+ i,
23
+ h as n,
24
+ T as o,
25
+ d as r,
26
+ c as s,
27
+ f as t
28
+ };
@@ -0,0 +1 @@
1
+ const o=require("./theme-DumxXtpW.cjs"),n=require("./useIsMobile-UXHqqYXb.cjs");let l=require("zod");var m=e=>e.replace(/\d+$/,""),u=l.z.enum(o.MAIN_COLOR_NAMES),s=e=>{const r=u.safeParse(e??"");return r.success?r.data:o.DEFAULT_THEME_COLOR_FALLBACK},a=e=>{let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r);return o.MAIN_COLOR_NAMES[Math.abs(r)%o.MAIN_COLOR_NAMES.length]??o.MAIN_COLOR_NAMES[0]},C=({string:e,variant:r=9,theme:t})=>{if(r<1||r>12)throw new Error("Variant must be between 1 and 12");const c=`${a(e)}${r}`;return t.color[c]},b=()=>{const e=n.getUserDevice();return e==="mac"||e==="ios"?"⌘":"Ctrl"},i="(hover: none) and (pointer: coarse)",h=()=>n.useMediaQuery(i);Object.defineProperty(exports,"TOUCH_DEVICE_MEDIA_QUERY",{enumerable:!0,get:function(){return i}});Object.defineProperty(exports,"getMainColorNameFromPaletteColorName",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"getOsControlSymbol",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"parseThemeColor",{enumerable:!0,get:function(){return s}});Object.defineProperty(exports,"stringToThemeColor",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"stringToThemeColorP3String",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"themeColorSchema",{enumerable:!0,get:function(){return u}});Object.defineProperty(exports,"useIsTouchDevice",{enumerable:!0,get:function(){return h}});
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./isDefined-DS2Q42p5.cjs"),e=require("./utilities-B7EwAZ4L.cjs"),o=require("./getSafeUrl-BuX_E2_8.cjs");exports.MOBILE_MEDIA_QUERY=e.MOBILE_MEDIA_QUERY;exports.TOUCH_DEVICE_MEDIA_QUERY=e.TOUCH_DEVICE_MEDIA_QUERY;exports.getMainColorNameFromPaletteColorName=e.getMainColorNameFromPaletteColorName;exports.getOsControlSymbol=e.getOsControlSymbol;exports.getOsShortcutSeparator=e.getOsShortcutSeparator;exports.getSafeUrl=o.getSafeUrl;exports.getUserDevice=e.getUserDevice;exports.isDefined=r.isDefined;exports.parseThemeColor=e.parseThemeColor;exports.stringToThemeColor=e.stringToThemeColor;exports.stringToThemeColorP3String=e.stringToThemeColorP3String;exports.themeColorSchema=e.themeColorSchema;exports.useIsMobile=e.useIsMobile;exports.useIsTouchDevice=e.useIsTouchDevice;exports.useMediaQuery=e.useMediaQuery;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./isDefined-DS2Q42p5.cjs"),e=require("./utilities-CdR__WZM.cjs"),r=require("./useIsMobile-UXHqqYXb.cjs"),i=require("./getSafeUrl-BuX_E2_8.cjs");exports.MOBILE_MEDIA_QUERY=r.MOBILE_MEDIA_QUERY;exports.TOUCH_DEVICE_MEDIA_QUERY=e.TOUCH_DEVICE_MEDIA_QUERY;exports.getMainColorNameFromPaletteColorName=e.getMainColorNameFromPaletteColorName;exports.getOsControlSymbol=e.getOsControlSymbol;exports.getSafeUrl=i.getSafeUrl;exports.getUserDevice=r.getUserDevice;exports.isDefined=o.isDefined;exports.parseThemeColor=e.parseThemeColor;exports.stringToThemeColor=e.stringToThemeColor;exports.stringToThemeColorP3String=e.stringToThemeColorP3String;exports.themeColorSchema=e.themeColorSchema;exports.useIsMobile=r.useIsMobile;exports.useIsTouchDevice=e.useIsTouchDevice;exports.useMediaQuery=r.useMediaQuery;
@@ -1,20 +1,20 @@
1
1
  import { t as o } from "./isDefined-fMi6eQ4r.js";
2
- import { a, c as r, d as t, f as m, i, l, n as C, o as g, p as h, r as n, s as p, t as u, u as E } from "./utilities-CMrqpiWM.js";
3
- import { t as c } from "./getSafeUrl-DXwcx-N0.js";
2
+ import { a as s, c as a, i as t, n as m, o as i, r as l, s as C, t as n } from "./utilities-CJKPcDM4.js";
3
+ import { i as E, n as T, r as f, t as h } from "./useIsMobile-CAIiLC-3.js";
4
+ import { t as D } from "./getSafeUrl-DXwcx-N0.js";
4
5
  export {
5
- a as MOBILE_MEDIA_QUERY,
6
- i as TOUCH_DEVICE_MEDIA_QUERY,
7
- h as getMainColorNameFromPaletteColorName,
8
- p as getOsControlSymbol,
9
- g as getOsShortcutSeparator,
10
- c as getSafeUrl,
11
- r as getUserDevice,
6
+ f as MOBILE_MEDIA_QUERY,
7
+ m as TOUCH_DEVICE_MEDIA_QUERY,
8
+ a as getMainColorNameFromPaletteColorName,
9
+ l as getOsControlSymbol,
10
+ D as getSafeUrl,
11
+ E as getUserDevice,
12
12
  o as isDefined,
13
- t as parseThemeColor,
14
- l as stringToThemeColor,
15
- E as stringToThemeColorP3String,
16
- m as themeColorSchema,
17
- C as useIsMobile,
18
- u as useIsTouchDevice,
19
- n as useMediaQuery
13
+ i as parseThemeColor,
14
+ t as stringToThemeColor,
15
+ s as stringToThemeColorP3String,
16
+ C as themeColorSchema,
17
+ h as useIsMobile,
18
+ n as useIsTouchDevice,
19
+ T as useMediaQuery
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty-ui",
3
- "version": "2.44.0",
3
+ "version": "2.45.0",
4
4
  "description": "Twenty's shared React UI component library.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,112 +0,0 @@
1
- import { En as j, Sn as b } from "./icon-B7aZ6RxF.js";
2
- import { t as S } from "./isDefined-fMi6eQ4r.js";
3
- import { t as E } from "./OverflowingTextWithTooltip-CtHMhu6b.js";
4
- import { n as i, r as t, t as e } from "./ListItem.module-DqkBkYtI.js";
5
- import { clsx as o } from "clsx";
6
- import { Fragment as F, jsx as a, jsxs as u } from "react/jsx-runtime";
7
- import { isNonEmptyArray as H, isString as M } from "@sniptt/guards";
8
- import q from "react";
9
- import { useRender as w } from "@base-ui/react/use-render";
10
- var A = "_commandTextContainer_2o210_1", O = "_commandText_2o210_1", W = "_commandKey_2o210_15", p = {
11
- commandTextContainer: A,
12
- commandText: O,
13
- commandKey: W
14
- }, z = ({ hotKeys: n, joinLabel: r = "then" }) => /* @__PURE__ */ a("div", {
15
- className: p.commandText,
16
- children: n && /* @__PURE__ */ a("div", {
17
- className: p.commandTextContainer,
18
- children: n.map((m, s) => /* @__PURE__ */ u(q.Fragment, { children: [/* @__PURE__ */ a("div", {
19
- className: p.commandKey,
20
- children: m
21
- }), s < n.length - 1 && r] }, s))
22
- })
23
- }), B = ({ checked: n, disabled: r }) => /* @__PURE__ */ a("span", {
24
- "aria-hidden": !0,
25
- className: o(i.root, i.solid, i.sm, i.square, i.accent),
26
- "data-checked": n || void 0,
27
- "data-disabled": r || void 0,
28
- children: /* @__PURE__ */ a("span", {
29
- className: i.box,
30
- children: n && /* @__PURE__ */ a("span", {
31
- className: i.indicator,
32
- children: /* @__PURE__ */ a(b, { "aria-hidden": !0 })
33
- })
34
- })
35
- }), $ = ({ color: n = "neutral", selected: r = !1, focused: m = !1, disabled: s = !1, indicator: c = "none", startIcon: f, endIcon: N, description: l, descriptionPlacement: v = "inline", actions: x, actionsVisibility: k = "hover", hotkeys: _, hotkeysJoinLabel: C, hasSubmenu: T = !1, className: y, children: d, render: D, ref: K, onClick: I, ...L }) => {
36
- const g = t(l), R = (h) => {
37
- if (s) {
38
- h.preventDefault();
39
- return;
40
- }
41
- S(I) && (h.stopPropagation(), I(h));
42
- };
43
- return w({
44
- render: D,
45
- ref: K,
46
- state: {
47
- color: n,
48
- indicator: c,
49
- selected: r,
50
- highlighted: m,
51
- disabled: s
52
- },
53
- props: {
54
- ...L,
55
- "data-actions-visibility": k,
56
- className: o(e.root, y),
57
- "aria-disabled": s || void 0,
58
- onClick: R,
59
- children: /* @__PURE__ */ u(F, { children: [
60
- c === "checkbox" && /* @__PURE__ */ a(B, {
61
- checked: r,
62
- disabled: s
63
- }),
64
- t(f) && /* @__PURE__ */ a("span", {
65
- className: e.startIcon,
66
- children: f
67
- }),
68
- /* @__PURE__ */ u("span", {
69
- className: e.label,
70
- children: [/* @__PURE__ */ a("span", {
71
- className: e.text,
72
- children: M(d) ? /* @__PURE__ */ a(E, { text: d }) : d
73
- }), g && v === "inline" && /* @__PURE__ */ a("span", {
74
- className: o(e.description, e.inlineDescription),
75
- children: l
76
- })]
77
- }),
78
- g && v === "end" && /* @__PURE__ */ a("span", {
79
- className: o(e.description, e.endDescription),
80
- children: l
81
- }),
82
- t(x) && /* @__PURE__ */ a("span", {
83
- className: e.actions,
84
- children: x
85
- }),
86
- H(_) && /* @__PURE__ */ a("span", {
87
- className: e.hotkeys,
88
- children: /* @__PURE__ */ a(z, {
89
- hotKeys: _,
90
- joinLabel: C
91
- })
92
- }),
93
- t(N) && /* @__PURE__ */ a("span", {
94
- className: e.endIcon,
95
- children: N
96
- }),
97
- c === "check" && r && /* @__PURE__ */ a(b, {
98
- className: e.checkIndicator,
99
- "aria-hidden": !0
100
- }),
101
- T && /* @__PURE__ */ a(j, {
102
- className: e.submenuIcon,
103
- "aria-hidden": !0
104
- })
105
- ] })
106
- }
107
- });
108
- };
109
- export {
110
- z as n,
111
- $ as t
112
- };
@@ -1 +0,0 @@
1
- const R=require("./theme-DumxXtpW.cjs"),S=require("./isDefined-DS2Q42p5.cjs"),K=require("./OverflowingTextWithTooltip-maBlogGW.cjs"),e=require("./ListItem.module-DkSRO3lX.cjs");let r=require("clsx"),t=require("react/jsx-runtime"),L=require("@sniptt/guards"),m=require("react");m=R.__toESM(m,1);let M=require("@base-ui/react/use-render"),_=require("@tabler/icons-react");var O="_commandTextContainer_2o210_1",H="_commandText_2o210_1",w="_commandKey_2o210_15",u={commandTextContainer:O,commandText:H,commandKey:w},N=({hotKeys:a,joinLabel:s="then"})=>(0,t.jsx)("div",{className:u.commandText,children:a&&(0,t.jsx)("div",{className:u.commandTextContainer,children:a.map((i,l)=>(0,t.jsxs)(m.default.Fragment,{children:[(0,t.jsx)("div",{className:u.commandKey,children:i}),l<a.length-1&&s]},l))})}),E=({checked:a,disabled:s})=>(0,t.jsx)("span",{"aria-hidden":!0,className:(0,r.clsx)(e.Checkbox_module_default.root,e.Checkbox_module_default.solid,e.Checkbox_module_default.sm,e.Checkbox_module_default.square,e.Checkbox_module_default.accent),"data-checked":a||void 0,"data-disabled":s||void 0,children:(0,t.jsx)("span",{className:e.Checkbox_module_default.box,children:a&&(0,t.jsx)("span",{className:e.Checkbox_module_default.indicator,children:(0,t.jsx)(_.IconCheck,{"aria-hidden":!0})})})}),F=({color:a="neutral",selected:s=!1,focused:i=!1,disabled:l=!1,indicator:n="none",startIcon:x,endIcon:h,description:d,descriptionPlacement:f="inline",actions:j,actionsVisibility:v="hover",hotkeys:I,hotkeysJoinLabel:k,hasSubmenu:q=!1,className:C,children:o,render:g,ref:y,onClick:p,...T})=>{const b=e.isRenderableSlot(d),D=c=>{if(l){c.preventDefault();return}S.isDefined(p)&&(c.stopPropagation(),p(c))};return(0,M.useRender)({render:g,ref:y,state:{color:a,indicator:n,selected:s,highlighted:i,disabled:l},props:{...T,"data-actions-visibility":v,className:(0,r.clsx)(e.ListItem_module_default.root,C),"aria-disabled":l||void 0,onClick:D,children:(0,t.jsxs)(t.Fragment,{children:[n==="checkbox"&&(0,t.jsx)(E,{checked:s,disabled:l}),e.isRenderableSlot(x)&&(0,t.jsx)("span",{className:e.ListItem_module_default.startIcon,children:x}),(0,t.jsxs)("span",{className:e.ListItem_module_default.label,children:[(0,t.jsx)("span",{className:e.ListItem_module_default.text,children:(0,L.isString)(o)?(0,t.jsx)(K.OverflowingTextWithTooltip,{text:o}):o}),b&&f==="inline"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.inlineDescription),children:d})]}),b&&f==="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.endDescription),children:d}),e.isRenderableSlot(j)&&(0,t.jsx)("span",{className:e.ListItem_module_default.actions,children:j}),(0,L.isNonEmptyArray)(I)&&(0,t.jsx)("span",{className:e.ListItem_module_default.hotkeys,children:(0,t.jsx)(N,{hotKeys:I,joinLabel:k})}),e.isRenderableSlot(h)&&(0,t.jsx)("span",{className:e.ListItem_module_default.endIcon,children:h}),n==="check"&&s&&(0,t.jsx)(_.IconCheck,{className:e.ListItem_module_default.checkIndicator,"aria-hidden":!0}),q&&(0,t.jsx)(_.IconChevronRight,{className:e.ListItem_module_default.submenuIcon,"aria-hidden":!0})]})}})};Object.defineProperty(exports,"ListItem",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"MenuItemHotKeys",{enumerable:!0,get:function(){return N}});
@@ -1 +0,0 @@
1
- const _=require("./isDefined-DS2Q42p5.cjs");let r=require("@sniptt/guards");var t=e=>_.isDefined(e)&&!(0,r.isBoolean)(e)&&e!=="",n="_root_1fskg_1",a="_solid_1fskg_22",o="_outline_1fskg_26",s="_soft_1fskg_30",i="_sm_1fskg_35",u="_md_1fskg_40",d="_square_1fskg_46",c="_round_1fskg_51",v="_accent_1fskg_57",f="_success_1fskg_63",l="_warning_1fskg_69",k="_hoverable_1fskg_75",g="_box_1fskg_113",p="_indicator_1fskg_134",b="_check_1fskg_150",m="_minus_1fskg_151",h={root:n,solid:a,outline:o,soft:s,sm:i,md:u,square:d,round:c,accent:v,success:f,warning:l,hoverable:k,box:g,indicator:p,check:b,minus:m},I="_root_1dup2_2",x="_submenuIcon_1dup2_51",D="_startIcon_1dup2_55",q="_endIcon_1dup2_56",y="_label_1dup2_72",j="_text_1dup2_82",O="_description_1dup2_90",P="_inlineDescription_1dup2_98",w="_endDescription_1dup2_103",C="_hotkeys_1dup2_108",L="_actions_1dup2_114",R="_checkIndicator_1dup2_131",S={root:I,submenuIcon:x,startIcon:D,endIcon:q,label:y,text:j,description:O,inlineDescription:P,endDescription:w,hotkeys:C,actions:L,checkIndicator:R};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return h}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"isRenderableSlot",{enumerable:!0,get:function(){return t}});
@@ -1,38 +0,0 @@
1
- import { t as r } from "./isDefined-fMi6eQ4r.js";
2
- import { isBoolean as a } from "@sniptt/guards";
3
- var j = (_) => r(_) && !a(_) && _ !== "", s = "_root_1fskg_1", o = "_solid_1fskg_22", e = "_outline_1fskg_26", n = "_soft_1fskg_30", t = "_sm_1fskg_35", i = "_md_1fskg_40", c = "_square_1fskg_46", d = "_round_1fskg_51", v = "_accent_1fskg_57", u = "_success_1fskg_63", f = "_warning_1fskg_69", k = "_hoverable_1fskg_75", p = "_box_1fskg_113", g = "_indicator_1fskg_134", l = "_check_1fskg_150", m = "_minus_1fskg_151", z = {
4
- root: s,
5
- solid: o,
6
- outline: e,
7
- soft: n,
8
- sm: t,
9
- md: i,
10
- square: c,
11
- round: d,
12
- accent: v,
13
- success: u,
14
- warning: f,
15
- hoverable: k,
16
- box: p,
17
- indicator: g,
18
- check: l,
19
- minus: m
20
- }, b = "_root_1dup2_2", h = "_submenuIcon_1dup2_51", I = "_startIcon_1dup2_55", x = "_endIcon_1dup2_56", D = "_label_1dup2_72", q = "_text_1dup2_82", w = "_description_1dup2_90", y = "_inlineDescription_1dup2_98", B = "_endDescription_1dup2_103", C = "_hotkeys_1dup2_108", L = "_actions_1dup2_114", R = "_checkIndicator_1dup2_131", A = {
21
- root: b,
22
- submenuIcon: h,
23
- startIcon: I,
24
- endIcon: x,
25
- label: D,
26
- text: q,
27
- description: w,
28
- inlineDescription: y,
29
- endDescription: B,
30
- hotkeys: C,
31
- actions: L,
32
- checkIndicator: R
33
- };
34
- export {
35
- z as n,
36
- j as r,
37
- A as t
38
- };
@@ -1 +0,0 @@
1
- let d=require("clsx"),a=require("react/jsx-runtime"),y=require("@sniptt/guards"),o=require("@base-ui/react/progress");var B="_banner_i03ag_1",f="_primaryBlue_i03ag_17",k="_primaryDanger_i03ag_23",N="_secondaryBlue_i03ag_29",x="_secondaryDanger_i03ag_35",e={banner:B,primaryBlue:f,primaryDanger:k,secondaryBlue:N,secondaryDanger:x},j={primary:{blue:e.primaryBlue,danger:e.primaryDanger},secondary:{blue:e.secondaryBlue,danger:e.secondaryDanger}},P=({color:r="blue",variant:i="primary",className:t,children:n})=>(0,a.jsx)("div",{className:(0,d.clsx)(e.banner,j[i][r],t),children:n}),A="_bar_1kcc7_1",D="_progressBarGrowIn_1kcc7_1",q="_track_1kcc7_20",E="_indicator_1kcc7_26",O="_glint_1kcc7_45",S="_progressBarGlint_1kcc7_1",s={bar:A,progressBarGrowIn:D,track:q,indicator:E,glint:O,progressBarGlint:S},h=({value:r,size:i="md",className:t,barColor:n,backgroundColor:g="none",withBorderRadius:_=!1,withGrowIn:c=!1,withGlint:u=!1,withSpringFill:m=!1,withMinimumFillWidth:p=!0,ariaLabel:b,onGrowInComplete:v})=>(0,a.jsx)(o.Progress.Root,{className:(0,d.clsx)(s.bar,t),"data-size":i,"data-with-border-radius":_||void 0,"data-grow-in":c||void 0,"aria-label":b,value:r,onAnimationEnd:l=>{c&&l.target===l.currentTarget&&v?.()},style:{"--progress-bar-background-color":g,...(0,y.isNonEmptyString)(n)?{"--progress-bar-color":n}:{}},children:(0,a.jsx)(o.Progress.Track,{className:s.track,children:(0,a.jsx)(o.Progress.Indicator,{className:s.indicator,"data-with-border-radius":_||void 0,"data-spring-fill":m||void 0,"data-nonzero":p&&r>0||void 0,children:u&&(0,a.jsx)("span",{className:s.glint},r)})})});Object.defineProperty(exports,"Banner",{enumerable:!0,get:function(){return P}});Object.defineProperty(exports,"ProgressBar",{enumerable:!0,get:function(){return h}});
@@ -1,58 +0,0 @@
1
- import { clsx as l } from "clsx";
2
- import { jsx as a } from "react/jsx-runtime";
3
- import { isNonEmptyString as b } from "@sniptt/guards";
4
- import { Progress as _ } from "@base-ui/react/progress";
5
- var B = "_banner_i03ag_1", f = "_primaryBlue_i03ag_17", k = "_primaryDanger_i03ag_23", N = "_secondaryBlue_i03ag_29", A = "_secondaryDanger_i03ag_35", e = {
6
- banner: B,
7
- primaryBlue: f,
8
- primaryDanger: k,
9
- secondaryBlue: N,
10
- secondaryDanger: A
11
- }, D = {
12
- primary: {
13
- blue: e.primaryBlue,
14
- danger: e.primaryDanger
15
- },
16
- secondary: {
17
- blue: e.secondaryBlue,
18
- danger: e.secondaryDanger
19
- }
20
- }, z = ({ color: r = "blue", variant: i = "primary", className: s, children: n }) => /* @__PURE__ */ a("div", {
21
- className: l(e.banner, D[i][r], s),
22
- children: n
23
- }), E = "_bar_1kcc7_1", S = "_progressBarGrowIn_1kcc7_1", h = "_track_1kcc7_20", x = "_indicator_1kcc7_26", G = "_glint_1kcc7_45", I = "_progressBarGlint_1kcc7_1", o = {
24
- bar: E,
25
- progressBarGrowIn: S,
26
- track: h,
27
- indicator: x,
28
- glint: G,
29
- progressBarGlint: I
30
- }, L = ({ value: r, size: i = "md", className: s, barColor: n, backgroundColor: g = "none", withBorderRadius: c = !1, withGrowIn: d = !1, withGlint: m = !1, withSpringFill: p = !1, withMinimumFillWidth: v = !0, ariaLabel: u, onGrowInComplete: y }) => /* @__PURE__ */ a(_.Root, {
31
- className: l(o.bar, s),
32
- "data-size": i,
33
- "data-with-border-radius": c || void 0,
34
- "data-grow-in": d || void 0,
35
- "aria-label": u,
36
- value: r,
37
- onAnimationEnd: (t) => {
38
- d && t.target === t.currentTarget && y?.();
39
- },
40
- style: {
41
- "--progress-bar-background-color": g,
42
- ...b(n) ? { "--progress-bar-color": n } : {}
43
- },
44
- children: /* @__PURE__ */ a(_.Track, {
45
- className: o.track,
46
- children: /* @__PURE__ */ a(_.Indicator, {
47
- className: o.indicator,
48
- "data-with-border-radius": c || void 0,
49
- "data-spring-fill": p || void 0,
50
- "data-nonzero": v && r > 0 || void 0,
51
- children: m && /* @__PURE__ */ a("span", { className: o.glint }, r)
52
- })
53
- })
54
- });
55
- export {
56
- z as n,
57
- L as t
58
- };
@@ -1 +0,0 @@
1
- const u=require("./isDefined-DS2Q42p5.cjs"),k=require("./utilities-B7EwAZ4L.cjs"),z=require("./Loader-CMXdrX1d.cjs"),q=require("./useProvidedTextDirection-B7ovnsdr.cjs");let m=require("clsx"),e=require("react/jsx-runtime"),E=require("@sniptt/guards"),v=require("react"),L=require("@base-ui/react/button"),R=require("@base-ui/react/use-render"),H=require("@base-ui/react/input"),N=require("@base-ui/react/switch");var M="_hotkeys_16heq_1",T={hotkeys:M},A=({hotkeys:t})=>(0,e.jsx)("span",{className:T.hotkeys,"aria-hidden":!0,children:t.join(k.getOsShortcutSeparator())}),w=(0,v.createContext)(null),F="_button_vtbjg_1",K="_content_vtbjg_181",V="_label_vtbjg_190",J="_icon_vtbjg_196",Q="_hidden_vtbjg_206",U="_loader_vtbjg_210",i={button:F,content:K,label:V,icon:J,hidden:Q,loader:U},W=({variant:t="outline",color:n="neutral",size:a="md",fullWidth:s=!1,loading:r=!1,elevated:b=!1,startIcon:o,endIcon:l,hotkeys:d,disabled:B=!1,href:p,render:D,className:P,children:x,...g})=>{const j=(0,v.useContext)(w),S=j?.variant??t,G=j?.color??n,I=j?.size??a,O=k.useIsMobile(),_=u.isDefined(p),$=_?{href:p}:void 0;return(0,e.jsxs)(L.Button,{...g,...$,className:q.mergeClassNames(i.button,P),"data-variant":S,"data-color":G,"data-size":I,"data-full-width":s||void 0,"data-loading":r||void 0,"data-elevated":b||void 0,"aria-busy":r?"true":g["aria-busy"],disabled:B||r,role:_?"link":void 0,nativeButton:!_,render:D??(_?(0,e.jsx)("a",{href:p,children:x}):void 0),children:[(0,e.jsxs)("span",{className:(0,m.clsx)(i.content,r&&i.hidden),children:[u.isDefined(o)&&(0,e.jsx)("span",{className:i.icon,"aria-hidden":!0,children:o}),u.isDefined(x)&&(0,e.jsx)("span",{className:i.label,children:x}),u.isDefined(l)&&(0,e.jsx)("span",{className:i.icon,"aria-hidden":!0,children:l}),u.isDefined(d)&&!O&&(0,e.jsx)(A,{hotkeys:d})]}),r&&(0,e.jsx)("span",{className:i.loader,"aria-hidden":!0,children:(0,e.jsx)(z.Loader,{})})]})},C=(0,v.createContext)(null),X="_input_14itx_1",Y="_sm_14itx_45",Z="_md_14itx_49",f={input:X,sm:Y,md:Z},ee=({size:t,className:n,...a})=>{const s=(0,v.useContext)(C),r=t??s?.size??"md";return(0,e.jsx)(H.Input,{...a,className:q.mergeClassNames((0,m.clsx)(f.input,f[r]),n),"data-grouped":u.isDefined(s)||void 0})},te="_root_lk8ci_1",re="_sm_lk8ci_27",ne="_md_lk8ci_31",ae="_startElement_lk8ci_35",se="_endElement_lk8ci_36",c={root:te,sm:re,md:ne,startElement:ae,endElement:se},y=t=>u.isDefined(t)&&!(0,E.isBoolean)(t)&&t!=="",ie=({size:t="md",startElement:n,endElement:a,className:s,children:r,render:b,ref:o,...l})=>{const d=(0,R.useRender)({render:b,ref:o,props:{...l,className:(0,m.clsx)(c.root,c[t],s),children:(0,e.jsxs)(e.Fragment,{children:[y(n)&&(0,e.jsx)("span",{className:c.startElement,children:n}),r,y(a)&&(0,e.jsx)("span",{className:c.endElement,children:a})]})}});return(0,e.jsx)(C.Provider,{value:{size:t},children:d})},ue="_root_rn2ew_1",oe="_sm_rn2ew_33",le="_md_rn2ew_39",de="_thumb_rn2ew_45",h={root:ue,sm:oe,md:le,thumb:de},_e=({size:t="md",className:n,children:a,...s})=>(0,e.jsxs)(N.Switch.Root,{...s,className:q.mergeClassNames((0,m.clsx)(h.root,h[t]),n),children:[(0,e.jsx)(N.Switch.Thumb,{className:h.thumb}),a]});Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"ButtonGroupContext",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"Input_module_default",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return _e}});
@@ -1,127 +0,0 @@
1
- import { t as i } from "./isDefined-fMi6eQ4r.js";
2
- import { n as R, o as H } from "./utilities-CMrqpiWM.js";
3
- import { t as L } from "./Loader-BLkXvZli.js";
4
- import { n as k } from "./useProvidedTextDirection-P1dtjUtE.js";
5
- import { clsx as c } from "clsx";
6
- import { Fragment as M, jsx as a, jsxs as v } from "react/jsx-runtime";
7
- import { isBoolean as q } from "@sniptt/guards";
8
- import { createContext as $, useContext as g } from "react";
9
- import { Button as A } from "@base-ui/react/button";
10
- import { useRender as D } from "@base-ui/react/use-render";
11
- import { Input as F } from "@base-ui/react/input";
12
- import { Switch as j } from "@base-ui/react/switch";
13
- var K = "_hotkeys_16heq_1", O = { hotkeys: K }, T = ({ hotkeys: t }) => /* @__PURE__ */ a("span", {
14
- className: O.hotkeys,
15
- "aria-hidden": !0,
16
- children: t.join(H())
17
- }), V = $(null), J = "_button_vtbjg_1", Q = "_content_vtbjg_181", U = "_label_vtbjg_190", W = "_icon_vtbjg_196", X = "_hidden_vtbjg_206", Y = "_loader_vtbjg_210", n = {
18
- button: J,
19
- content: Q,
20
- label: U,
21
- icon: W,
22
- hidden: X,
23
- loader: Y
24
- }, Bt = ({ variant: t = "outline", color: r = "neutral", size: o = "md", fullWidth: s = !1, loading: e = !1, elevated: p = !1, startIcon: l, endIcon: d, hotkeys: m, disabled: y = !1, href: h, render: C, className: G, children: b, ...x }) => {
25
- const f = g(V), I = f?.variant ?? t, z = f?.color ?? r, E = f?.size ?? o, P = R(), _ = i(h);
26
- return /* @__PURE__ */ v(A, {
27
- ...x,
28
- ..._ ? { href: h } : void 0,
29
- className: k(n.button, G),
30
- "data-variant": I,
31
- "data-color": z,
32
- "data-size": E,
33
- "data-full-width": s || void 0,
34
- "data-loading": e || void 0,
35
- "data-elevated": p || void 0,
36
- "aria-busy": e ? "true" : x["aria-busy"],
37
- disabled: y || e,
38
- role: _ ? "link" : void 0,
39
- nativeButton: !_,
40
- render: C ?? (_ ? /* @__PURE__ */ a("a", {
41
- href: h,
42
- children: b
43
- }) : void 0),
44
- children: [/* @__PURE__ */ v("span", {
45
- className: c(n.content, e && n.hidden),
46
- children: [
47
- i(l) && /* @__PURE__ */ a("span", {
48
- className: n.icon,
49
- "aria-hidden": !0,
50
- children: l
51
- }),
52
- i(b) && /* @__PURE__ */ a("span", {
53
- className: n.label,
54
- children: b
55
- }),
56
- i(d) && /* @__PURE__ */ a("span", {
57
- className: n.icon,
58
- "aria-hidden": !0,
59
- children: d
60
- }),
61
- i(m) && !P && /* @__PURE__ */ a(T, { hotkeys: m })
62
- ]
63
- }), e && /* @__PURE__ */ a("span", {
64
- className: n.loader,
65
- "aria-hidden": !0,
66
- children: /* @__PURE__ */ a(L, {})
67
- })]
68
- });
69
- }, S = $(null), Z = "_input_14itx_1", tt = "_sm_14itx_45", at = "_md_14itx_49", w = {
70
- input: Z,
71
- sm: tt,
72
- md: at
73
- }, $t = ({ size: t, className: r, ...o }) => {
74
- const s = g(S), e = t ?? s?.size ?? "md";
75
- return /* @__PURE__ */ a(F, {
76
- ...o,
77
- className: k(c(w.input, w[e]), r),
78
- "data-grouped": i(s) || void 0
79
- });
80
- }, et = "_root_lk8ci_1", rt = "_sm_lk8ci_27", ot = "_md_lk8ci_31", st = "_startElement_lk8ci_35", nt = "_endElement_lk8ci_36", u = {
81
- root: et,
82
- sm: rt,
83
- md: ot,
84
- startElement: st,
85
- endElement: nt
86
- }, B = (t) => i(t) && !q(t) && t !== "", gt = ({ size: t = "md", startElement: r, endElement: o, className: s, children: e, render: p, ref: l, ...d }) => {
87
- const m = D({
88
- render: p,
89
- ref: l,
90
- props: {
91
- ...d,
92
- className: c(u.root, u[t], s),
93
- children: /* @__PURE__ */ v(M, { children: [
94
- B(r) && /* @__PURE__ */ a("span", {
95
- className: u.startElement,
96
- children: r
97
- }),
98
- e,
99
- B(o) && /* @__PURE__ */ a("span", {
100
- className: u.endElement,
101
- children: o
102
- })
103
- ] })
104
- }
105
- });
106
- return /* @__PURE__ */ a(S.Provider, {
107
- value: { size: t },
108
- children: m
109
- });
110
- }, it = "_root_rn2ew_1", lt = "_sm_rn2ew_33", dt = "_md_rn2ew_39", mt = "_thumb_rn2ew_45", N = {
111
- root: it,
112
- sm: lt,
113
- md: dt,
114
- thumb: mt
115
- }, St = ({ size: t = "md", className: r, children: o, ...s }) => /* @__PURE__ */ v(j.Root, {
116
- ...s,
117
- className: k(c(N.root, N[t]), r),
118
- children: [/* @__PURE__ */ a(j.Thumb, { className: N.thumb }), o]
119
- });
120
- export {
121
- Bt as a,
122
- w as i,
123
- gt as n,
124
- V as o,
125
- $t as r,
126
- St as t
127
- };
@@ -1 +0,0 @@
1
- const i=require("./isDefined-DS2Q42p5.cjs");let r=require("react/jsx-runtime"),o=require("@sniptt/guards");var t=a=>i.isDefined(a)&&!(0,o.isBoolean)(a)&&a!=="",u="_root_ub2oy_1",l="_list_ub2oy_10",b="_tab_ub2oy_37",c="_content_ub2oy_89",d="_label_ub2oy_108",v="_startIcon_ub2oy_114",y="_badge_ub2oy_115",m="_panel_ub2oy_130",p="_indicator_ub2oy_139",e={root:u,list:l,tab:b,content:c,label:d,startIcon:v,badge:y,panel:m,indicator:p},f=({children:a,startIcon:n,endIcon:_,badge:s})=>(0,r.jsxs)("span",{className:e.content,children:[t(n)&&(0,r.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:n}),(0,r.jsx)("span",{className:e.label,children:a}),t(_)&&(0,r.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:_}),t(s)&&(0,r.jsx)("span",{className:e.badge,children:s})]});Object.defineProperty(exports,"Tab_module_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"TabsTabContent",{enumerable:!0,get:function(){return f}});
@@ -1,40 +0,0 @@
1
- import { t as s } from "./isDefined-fMi6eQ4r.js";
2
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
- import { isBoolean as i } from "@sniptt/guards";
4
- var o = (a) => s(a) && !i(a) && a !== "", b = "_root_ub2oy_1", c = "_list_ub2oy_10", d = "_tab_ub2oy_37", u = "_content_ub2oy_89", m = "_label_ub2oy_108", v = "_startIcon_ub2oy_114", p = "_badge_ub2oy_115", y = "_panel_ub2oy_130", h = "_indicator_ub2oy_139", r = {
5
- root: b,
6
- list: c,
7
- tab: d,
8
- content: u,
9
- label: m,
10
- startIcon: v,
11
- badge: p,
12
- panel: y,
13
- indicator: h
14
- }, T = ({ children: a, startIcon: t, endIcon: _, badge: n }) => /* @__PURE__ */ l("span", {
15
- className: r.content,
16
- children: [
17
- o(t) && /* @__PURE__ */ e("span", {
18
- className: r.startIcon,
19
- "aria-hidden": !0,
20
- children: t
21
- }),
22
- /* @__PURE__ */ e("span", {
23
- className: r.label,
24
- children: a
25
- }),
26
- o(_) && /* @__PURE__ */ e("span", {
27
- className: r.startIcon,
28
- "aria-hidden": !0,
29
- children: _
30
- }),
31
- o(n) && /* @__PURE__ */ e("span", {
32
- className: r.badge,
33
- children: n
34
- })
35
- ]
36
- });
37
- export {
38
- r as n,
39
- T as t
40
- };
@@ -1,13 +0,0 @@
1
- import { IconComponent } from '../../../icon/types/IconComponent';
2
- type NavigationBarProps = {
3
- activeItemName: string;
4
- isHidden?: boolean;
5
- items: {
6
- name: string;
7
- label: string;
8
- Icon: IconComponent;
9
- onClick: () => void;
10
- }[];
11
- };
12
- export declare const NavigationBar: ({ activeItemName, isHidden, items, }: NavigationBarProps) => import("react").JSX.Element;
13
- export {};
@@ -1,9 +0,0 @@
1
- import { IconComponent } from '../../../../../icon/types/IconComponent';
2
- type NavigationBarItemProps = {
3
- Icon: IconComponent;
4
- isActive: boolean;
5
- onClick: () => void;
6
- ariaLabel: string;
7
- };
8
- export declare const NavigationBarItem: ({ Icon, isActive, onClick, ariaLabel, }: NavigationBarItemProps) => import("react").JSX.Element;
9
- export {};