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.
- package/CHANGELOG.md +5 -0
- package/README.md +36 -32
- package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
- package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
- package/dist/Dropdown-D_hFndP5.cjs +1 -0
- package/dist/Dropdown-xXsGBv57.js +1056 -0
- package/dist/Input-D1sIHUZ5.js +25 -0
- package/dist/Input-D69M4UwD.cjs +1 -0
- package/dist/ListItem-B-SFWJZb.cjs +1 -0
- package/dist/ListItem-WLONJMo5.js +91 -0
- package/dist/ListItem.module-B31VK9XZ.js +34 -0
- package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
- package/dist/ProgressBar-8pjpGrmZ.js +99 -0
- package/dist/ProgressBar-goqxS9NE.cjs +1 -0
- package/dist/Radio-CpQPRHXa.cjs +1 -0
- package/dist/Radio-VTjpEz8M.js +175 -0
- package/dist/Skeleton-BbIF780H.js +31 -0
- package/dist/Skeleton-tXeIy4qq.cjs +1 -0
- package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
- package/dist/{Tooltip-DL3sfbuw.cjs → Tooltip-08dDawT_.cjs} +1 -1
- package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
- package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
- package/dist/components/data-display/index.d.ts +2 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
- package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
- package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
- package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
- package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
- package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
- package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
- package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
- package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
- package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
- package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
- package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
- package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
- package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
- package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
- package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlVariant.d.ts +1 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +17 -13
- package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
- package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +5 -4
- package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
- package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +7 -6
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -37
- package/dist/{data-display-CXw-mxeS.js → data-display-DUMj_z1t.js} +25 -25
- package/dist/data-display-D_kbXJJd.cjs +2 -0
- package/dist/{data-display-DdES9XqZ.cjs → data-display-DzHM5j7j.cjs} +1 -1
- package/dist/data-display-b-9s0RTe.js +422 -0
- package/dist/feedback-B50I0C35.cjs +1 -0
- package/dist/feedback-BQFSnMjh.js +10 -0
- package/dist/{feedback-DspXawf9.cjs → feedback-BzR4ggrP.cjs} +1 -1
- package/dist/{feedback-4HKPcMRs.js → feedback-EaZszoXf.js} +29 -29
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
- package/dist/icon-TSBamkxk.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +510 -504
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +666 -652
- package/dist/input-BQABEELu.cjs +1 -0
- package/dist/input-CuySKbhm.js +2356 -0
- package/dist/input-DxoXgI5-.js +373 -0
- package/dist/input-ExCbk62Y.cjs +1 -0
- package/dist/layout-B1Iwc9ku.cjs +1 -0
- package/dist/layout-B2KvJ900.js +479 -0
- package/dist/navigation-DP5Edsq_.cjs +1 -0
- package/dist/navigation-DXMjQMPm.js +134 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
- package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +9 -8
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
- package/dist/primitives/input/Input/Input.d.ts +1 -1
- package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
- package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
- package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
- package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
- package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
- package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
- package/dist/primitives/input/index.d.ts +1 -0
- package/dist/primitives/input/types/InputVariant.d.ts +1 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -14
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
- package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
- package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/surfaces/Card/Card.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +4 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
- package/dist/primitives/typography/Text/Text.d.ts +1 -1
- package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
- package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
- package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
- package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +52 -51
- package/dist/{settings-XGSJtobU.js → settings-BTFAqYrD.js} +1 -1
- package/dist/{settings-DT5bEO6A.cjs → settings-D_iT1ngl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-DtZwsfms.cjs +1 -0
- package/dist/surfaces-v0kQLZYO.js +224 -0
- package/dist/{typography-CWtuNruY.cjs → typography-B05olPwL.cjs} +1 -1
- package/dist/{typography-BPdXzW2T.js → typography-BwyZEDDi.js} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/package.json +3 -1
- package/dist/Dropdown-ChTVyesF.js +0 -1018
- package/dist/Dropdown-DlItz8Gh.cjs +0 -1
- package/dist/Input-DZWl81G_.js +0 -23
- package/dist/Input-DvL77rvu.cjs +0 -1
- package/dist/ListItem-C6Xl00m1.cjs +0 -1
- package/dist/ListItem-C84ANa76.js +0 -86
- package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
- package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BQmpPObX.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BtB9cGdJ.js +0 -89
- package/dist/ProgressBar-CzGs7cuE.cjs +0 -1
- package/dist/ProgressBar-D4tKQ7OA.js +0 -84
- package/dist/Radio-BwBZ4e8g.js +0 -103
- package/dist/Radio-sIYxZnR_.cjs +0 -1
- package/dist/data-display-C-eoJ5En.js +0 -378
- package/dist/data-display-CM1yXpnE.cjs +0 -2
- package/dist/feedback-BSOWDBI0.js +0 -38
- package/dist/feedback-DBRXDPSP.cjs +0 -1
- package/dist/icon-BNcdwwdl.cjs +0 -1
- package/dist/input-CWWp7cqL.cjs +0 -1
- package/dist/input-CvZ_uB_9.cjs +0 -1
- package/dist/input-Qn5_aFYU.js +0 -785
- package/dist/input-k5cMhFI_.js +0 -428
- package/dist/layout-DDqeMgFv.js +0 -439
- package/dist/layout-iSfGrMrH.cjs +0 -1
- package/dist/navigation-7Y6gHFlj.cjs +0 -1
- package/dist/navigation-BcXCiLE1.js +0 -86
- package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
- package/dist/surfaces-q8voTXEJ.cjs +0 -1
- package/dist/surfaces-vhSZBmbz.js +0 -201
- package/dist/{Tooltip-6uS8_wdA.js → Tooltip-C7zc16gI.js} +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as d } from "./mergeClassNames-ClFMR1v0.js";
|
|
3
|
+
import { clsx as l } from "clsx";
|
|
4
|
+
import { createContext as _, useContext as f } from "react";
|
|
5
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
6
|
+
import { Input as c } from "@base-ui/react/input";
|
|
7
|
+
var x = _(null), C = "_input_1ah48_1", I = "_sm_1ah48_58", g = "_md_1ah48_62", a = {
|
|
8
|
+
input: C,
|
|
9
|
+
sm: I,
|
|
10
|
+
md: g
|
|
11
|
+
}, S = ({ size: o, variant: e = "default", hasFocusRing: s = !0, className: n, ...m }) => {
|
|
12
|
+
const t = f(x), i = o ?? t?.size ?? "md", r = u(t), p = r ? "plain" : e;
|
|
13
|
+
return /* @__PURE__ */ v(c, {
|
|
14
|
+
...m,
|
|
15
|
+
className: d(l(a.input, a[i]), n),
|
|
16
|
+
"data-variant": p,
|
|
17
|
+
"data-focus-ring": s,
|
|
18
|
+
"data-grouped": r || void 0
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
a as n,
|
|
23
|
+
x as r,
|
|
24
|
+
S as t
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _=require("./isDefined-DS2Q42p5.cjs"),c=require("./mergeClassNames-D4lshrT6.cjs");let m=require("clsx"),u=require("react"),f=require("react/jsx-runtime"),v=require("@base-ui/react/input");var n=(0,u.createContext)(null),q="_input_1ah48_1",x="_sm_1ah48_58",b="_md_1ah48_62",e={input:q,sm:x,md:b},g=({size:a,variant:i="default",hasFocusRing:s=!0,className:o,...l})=>{const t=(0,u.useContext)(n),d=a??t?.size??"md",r=_.isDefined(t),p=r?"plain":i;return(0,f.jsx)(v.Input,{...l,className:c.mergeClassNames((0,m.clsx)(e.input,e[d]),o),"data-variant":p,"data-focus-ring":s,"data-grouped":r||void 0})};Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"InputGroupContext",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"Input_module_default",{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const R=require("./isDefined-DS2Q42p5.cjs"),i=require("./isRenderableSlot-Guryb6Nf.cjs"),D=require("./Shortcut-N8TELGPI.cjs"),w=require("./OverflowingTextWithTooltip-ClpPsdpP.cjs"),e=require("./ListItem.module-DiUK6-0Z.cjs");let T=require("@base-ui/react/use-render"),y=require("@sniptt/guards"),r=require("clsx"),t=require("react/jsx-runtime"),o=require("@tabler/icons-react");var O=({checked:l,disabled:a})=>(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":l||void 0,"data-disabled":a||void 0,children:l&&(0,t.jsx)("span",{className:e.Checkbox_module_default.indicator,children:(0,t.jsx)(o.IconCheck,{"aria-hidden":!0})})}),W=({color:l="neutral",selected:a=!1,selectionAppearance:I="default",active:j=!1,focused:p=!1,disabled:c=!1,indicator:d="none",startIcon:_,endIcon:m,description:u,descriptionPlacement:s="inline",actions:h,actionsVisibility:L="hover",actionsPlacement:q="auto",shortcut:x,shortcutJoinLabel:k,hasSubmenu:N=!1,className:C,children:n,render:g,ref:v,...S})=>{const f=i.isRenderableSlot(u),b=i.isRenderableSlot(h)?(0,t.jsx)("span",{className:e.ListItem_module_default.actions,children:h}):null;return(0,T.useRender)({render:g,ref:v,state:{color:l,indicator:d,selected:a,active:j,highlighted:p,disabled:c},props:{...S,"data-actions-visibility":L,"data-actions-placement":q,"data-description-placement":s,"data-selection-appearance":I,className:(0,r.clsx)(e.ListItem_module_default.root,C),children:(0,t.jsxs)(t.Fragment,{children:[d==="checkbox"&&(0,t.jsx)(O,{checked:a,disabled:c}),i.isRenderableSlot(_)&&(0,t.jsx)("span",{className:e.ListItem_module_default.startIcon,children:_}),(0,t.jsxs)("span",{className:e.ListItem_module_default.label,children:[(0,t.jsx)("span",{className:e.ListItem_module_default.text,children:(0,y.isString)(n)?(0,t.jsx)(w.OverflowingTextWithTooltip,{text:n}):n}),f&&s!=="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,s==="inline"&&e.ListItem_module_default.inlineDescription),children:u})]}),f&&s==="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.endDescription),children:u}),s!=="below"&&b,R.isDefined(x)&&(0,t.jsx)(D.Shortcut,{className:e.ListItem_module_default.hotkeys,shortcut:x,sequenceJoinLabel:k}),i.isRenderableSlot(m)&&(0,t.jsx)("span",{className:e.ListItem_module_default.endIcon,children:m}),d==="check"&&a&&(0,t.jsx)(o.IconCheck,{className:e.ListItem_module_default.checkIndicator,"aria-hidden":!0}),N&&(0,t.jsx)(o.IconChevronRight,{className:e.ListItem_module_default.submenuIcon,"aria-hidden":!0}),s==="below"&&b]})}})};Object.defineProperty(exports,"ListItem",{enumerable:!0,get:function(){return W}});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as j } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as n } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
+
import { Tt as k, kt as q } from "./TablerIcons-B-5Ua_Ne.js";
|
|
4
|
+
import { t as y } from "./Shortcut-Bp9iDdQg.js";
|
|
5
|
+
import { t as F } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
|
|
6
|
+
import { n as t, t as e } from "./ListItem.module-B31VK9XZ.js";
|
|
7
|
+
import { useRender as J } from "@base-ui/react/use-render";
|
|
8
|
+
import { isString as O } from "@sniptt/guards";
|
|
9
|
+
import { clsx as r } from "clsx";
|
|
10
|
+
import { Fragment as W, jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
11
|
+
var z = ({ checked: o, disabled: i }) => /* @__PURE__ */ a("span", {
|
|
12
|
+
"aria-hidden": !0,
|
|
13
|
+
className: r(t.root, t.solid, t.sm, t.square, t.accent),
|
|
14
|
+
"data-checked": o || void 0,
|
|
15
|
+
"data-disabled": i || void 0,
|
|
16
|
+
children: o && /* @__PURE__ */ a("span", {
|
|
17
|
+
className: t.indicator,
|
|
18
|
+
children: /* @__PURE__ */ a(k, { "aria-hidden": !0 })
|
|
19
|
+
})
|
|
20
|
+
}), X = ({ color: o = "neutral", selected: i = !1, selectionAppearance: v = "default", active: I = !1, focused: g = !1, disabled: d = !1, indicator: l = "none", startIcon: h, endIcon: p, description: c, descriptionPlacement: s = "inline", actions: f, actionsVisibility: C = "hover", actionsPlacement: D = "auto", shortcut: u, shortcutJoinLabel: L, hasSubmenu: S = !1, className: _, children: m, render: w, ref: R, ...T }) => {
|
|
21
|
+
const N = n(c), b = n(f) ? /* @__PURE__ */ a("span", {
|
|
22
|
+
className: e.actions,
|
|
23
|
+
children: f
|
|
24
|
+
}) : null;
|
|
25
|
+
return J({
|
|
26
|
+
render: w,
|
|
27
|
+
ref: R,
|
|
28
|
+
state: {
|
|
29
|
+
color: o,
|
|
30
|
+
indicator: l,
|
|
31
|
+
selected: i,
|
|
32
|
+
active: I,
|
|
33
|
+
highlighted: g,
|
|
34
|
+
disabled: d
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
...T,
|
|
38
|
+
"data-actions-visibility": C,
|
|
39
|
+
"data-actions-placement": D,
|
|
40
|
+
"data-description-placement": s,
|
|
41
|
+
"data-selection-appearance": v,
|
|
42
|
+
className: r(e.root, _),
|
|
43
|
+
children: /* @__PURE__ */ x(W, { children: [
|
|
44
|
+
l === "checkbox" && /* @__PURE__ */ a(z, {
|
|
45
|
+
checked: i,
|
|
46
|
+
disabled: d
|
|
47
|
+
}),
|
|
48
|
+
n(h) && /* @__PURE__ */ a("span", {
|
|
49
|
+
className: e.startIcon,
|
|
50
|
+
children: h
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ x("span", {
|
|
53
|
+
className: e.label,
|
|
54
|
+
children: [/* @__PURE__ */ a("span", {
|
|
55
|
+
className: e.text,
|
|
56
|
+
children: O(m) ? /* @__PURE__ */ a(F, { text: m }) : m
|
|
57
|
+
}), N && s !== "end" && /* @__PURE__ */ a("span", {
|
|
58
|
+
className: r(e.description, s === "inline" && e.inlineDescription),
|
|
59
|
+
children: c
|
|
60
|
+
})]
|
|
61
|
+
}),
|
|
62
|
+
N && s === "end" && /* @__PURE__ */ a("span", {
|
|
63
|
+
className: r(e.description, e.endDescription),
|
|
64
|
+
children: c
|
|
65
|
+
}),
|
|
66
|
+
s !== "below" && b,
|
|
67
|
+
j(u) && /* @__PURE__ */ a(y, {
|
|
68
|
+
className: e.hotkeys,
|
|
69
|
+
shortcut: u,
|
|
70
|
+
sequenceJoinLabel: L
|
|
71
|
+
}),
|
|
72
|
+
n(p) && /* @__PURE__ */ a("span", {
|
|
73
|
+
className: e.endIcon,
|
|
74
|
+
children: p
|
|
75
|
+
}),
|
|
76
|
+
l === "check" && i && /* @__PURE__ */ a(k, {
|
|
77
|
+
className: e.checkIndicator,
|
|
78
|
+
"aria-hidden": !0
|
|
79
|
+
}),
|
|
80
|
+
S && /* @__PURE__ */ a(q, {
|
|
81
|
+
className: e.submenuIcon,
|
|
82
|
+
"aria-hidden": !0
|
|
83
|
+
}),
|
|
84
|
+
s === "below" && b
|
|
85
|
+
] })
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
X as t
|
|
91
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var _ = "_root_xrjjl_1", r = "_solid_xrjjl_23", a = "_outline_xrjjl_27", o = "_soft_xrjjl_31", e = "_sm_xrjjl_36", v = "_md_xrjjl_41", n = "_square_xrjjl_47", t = "_round_xrjjl_52", c = "_accent_xrjjl_58", i = "_success_xrjjl_64", s = "_warning_xrjjl_70", l = "_hoverable_xrjjl_76", j = "_indicator_xrjjl_128", m = "_check_xrjjl_149", d = "_minus_xrjjl_150", y = {
|
|
2
|
+
root: _,
|
|
3
|
+
solid: r,
|
|
4
|
+
outline: a,
|
|
5
|
+
soft: o,
|
|
6
|
+
sm: e,
|
|
7
|
+
md: v,
|
|
8
|
+
square: n,
|
|
9
|
+
round: t,
|
|
10
|
+
accent: c,
|
|
11
|
+
success: i,
|
|
12
|
+
warning: s,
|
|
13
|
+
hoverable: l,
|
|
14
|
+
indicator: j,
|
|
15
|
+
check: m,
|
|
16
|
+
minus: d
|
|
17
|
+
}, x = "_root_15vm9_2", u = "_submenuIcon_15vm9_57", h = "_startIcon_15vm9_61", I = "_endIcon_15vm9_62", b = "_label_15vm9_78", k = "_text_15vm9_88", p = "_description_15vm9_96", f = "_inlineDescription_15vm9_104", D = "_endDescription_15vm9_109", g = "_hotkeys_15vm9_115", q = "_actions_15vm9_121", w = "_checkIndicator_15vm9_146", C = {
|
|
18
|
+
root: x,
|
|
19
|
+
submenuIcon: u,
|
|
20
|
+
startIcon: h,
|
|
21
|
+
endIcon: I,
|
|
22
|
+
label: b,
|
|
23
|
+
text: k,
|
|
24
|
+
description: p,
|
|
25
|
+
inlineDescription: f,
|
|
26
|
+
endDescription: D,
|
|
27
|
+
hotkeys: g,
|
|
28
|
+
actions: q,
|
|
29
|
+
checkIndicator: w
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
y as n,
|
|
33
|
+
C as t
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _="_root_xrjjl_1",r="_solid_xrjjl_23",e="_outline_xrjjl_27",a="_soft_xrjjl_31",t="_sm_xrjjl_36",n="_md_xrjjl_41",o="_square_xrjjl_47",v="_round_xrjjl_52",c="_accent_xrjjl_58",i="_success_xrjjl_64",l="_warning_xrjjl_70",j="_hoverable_xrjjl_76",s="_indicator_xrjjl_128",u="_check_xrjjl_149",m="_minus_xrjjl_150",d={root:_,solid:r,outline:e,soft:a,sm:t,md:n,square:o,round:v,accent:c,success:i,warning:l,hoverable:j,indicator:s,check:u,minus:m},x="_root_15vm9_2",b="_submenuIcon_15vm9_57",f="_startIcon_15vm9_61",h="_endIcon_15vm9_62",I="_label_15vm9_78",k="_text_15vm9_88",p="_description_15vm9_96",g="_inlineDescription_15vm9_104",y="_endDescription_15vm9_109",D="_hotkeys_15vm9_115",q="_actions_15vm9_121",w="_checkIndicator_15vm9_146",C={root:x,submenuIcon:b,startIcon:f,endIcon:h,label:I,text:k,description:p,inlineDescription:g,endDescription:y,hotkeys:D,actions:q,checkIndicator:w};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return d}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return C}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=require("./isDefined-DS2Q42p5.cjs"),o=require("./Tooltip-08dDawT_.cjs");let J=require("@base-ui/react/use-render"),R=require("@sniptt/guards"),E=require("clsx"),n=require("react"),r=require("react/jsx-runtime"),K=require("@base-ui/react/merge-props"),L=require("@base-ui/utils/useMergedRefs");var Q="_typography_qms7s_1",U="_truncate_qms7s_44",V="_lineClamp_qms7s_50",x={typography:Q,truncate:U,lineClamp:V},N=({render:t,size:l,weight:d,color:f,truncate:p,lineClamp:i,className:g,style:s,ref:u,..._})=>{const c=a.isDefined(i)&&Number.isInteger(i)&&i>0;return(0,J.useRender)({render:t,ref:u,props:{..._,"data-size":l,"data-weight":d,"data-color":f,className:(0,E.clsx)(x.typography,p&&x.truncate,c&&x.lineClamp,g),style:c?{...s,"--text-line-clamp":i}:s}})},X=t=>a.isDefined(t)&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth),W=(0,n.createContext)("measure-on-hover"),Y="_overflowingMultilineText_1fi6s_1",Z="_overflowingText_1fi6s_24",$="_multilineTooltip_1fi6s_45",m={overflowingMultilineText:Y,overflowingText:Z,multilineTooltip:$},ee=(0,n.memo)(function({text:l,size:d,weight:f,color:p,isTooltipMultiline:i,truncate:g,lineClamp:s,tooltipContent:u,tooltipDelay:_=500,tooltipPlace:c="bottom",alwaysShowTooltip:h=!1,isFocusable:I=!1,render:S,ref:k,className:H,...z}){const O=(0,n.useContext)(W),w=O==="disabled",v=(0,n.useRef)(null),[b,B]=(0,n.useState)(!1),[F,q]=(0,n.useState)(!1),A=(0,L.useMergedRefs)(v,k),y=()=>{const e=X(v.current);return B(e),e},j=e=>{if(!e){q(!1);return}q(y()||h)},G=e=>{e.stopPropagation(),e.preventDefault()},T=(0,R.isNonEmptyString)(u)?u:(0,R.isNonEmptyString)(l)?l:null,D=a.isDefined(s),M=(0,r.jsx)(N,{...D?{lineClamp:s}:{truncate:g??!0},dir:"auto","data-content-overflowing":b?"":void 0,className:(0,E.clsx)(D?m.overflowingMultilineText:m.overflowingText,H),render:S,ref:A,...(0,K.mergeProps)({tabIndex:I?0:void 0,...w?{}:{onPointerEnter:y,onFocus:()=>j(!0)}},z),size:d,weight:f,color:p,children:l});return w?M:(0,r.jsxs)(o.Tooltip.Root,{open:F&&a.isDefined(T),onOpenChange:(...e)=>{const[P,C]=e;if(!P&&C.reason==="trigger-hover"&&v.current?.contains(document.activeElement)){C.cancel();return}j(P)},disabled:!a.isDefined(T)||O==="measure-on-hover"&&!b&&!h,children:[(0,r.jsx)(o.Tooltip.Trigger,{delay:_,closeOnClick:!1,render:M}),(0,r.jsx)(o.Tooltip.Portal,{children:(0,r.jsx)(o.Tooltip.Positioner,{sideOffset:5,side:c,children:(0,r.jsx)(o.Tooltip.Popup,{className:i?m.multilineTooltip:void 0,onClick:G,children:(0,r.jsx)(o.TooltipBody,{children:T})})})})]})});Object.defineProperty(exports,"OverflowingTextTooltipModeContext",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return N}});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { n as A, t as l } from "./Tooltip-C7zc16gI.js";
|
|
3
|
+
import { useRender as G } from "@base-ui/react/use-render";
|
|
4
|
+
import { isNonEmptyString as N } from "@sniptt/guards";
|
|
5
|
+
import { clsx as D } from "clsx";
|
|
6
|
+
import { createContext as J, memo as K, useContext as L, useRef as Q, useState as W } from "react";
|
|
7
|
+
import { jsx as r, jsxs as U } from "react/jsx-runtime";
|
|
8
|
+
import { mergeProps as V } from "@base-ui/react/merge-props";
|
|
9
|
+
import { useMergedRefs as X } from "@base-ui/utils/useMergedRefs";
|
|
10
|
+
var Y = "_typography_qms7s_1", Z = "_truncate_qms7s_44", $ = "_lineClamp_qms7s_50", T = {
|
|
11
|
+
typography: Y,
|
|
12
|
+
truncate: Z,
|
|
13
|
+
lineClamp: $
|
|
14
|
+
}, ee = ({ render: t, size: i, weight: f, color: p, truncate: u, lineClamp: o, className: d, style: n, ref: a, ...m }) => {
|
|
15
|
+
const c = s(o) && Number.isInteger(o) && o > 0;
|
|
16
|
+
return G({
|
|
17
|
+
render: t,
|
|
18
|
+
ref: a,
|
|
19
|
+
props: {
|
|
20
|
+
...m,
|
|
21
|
+
"data-size": i,
|
|
22
|
+
"data-weight": f,
|
|
23
|
+
"data-color": p,
|
|
24
|
+
className: D(T.typography, u && T.truncate, c && T.lineClamp, d),
|
|
25
|
+
style: c ? {
|
|
26
|
+
...n,
|
|
27
|
+
"--text-line-clamp": o
|
|
28
|
+
} : n
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}, te = (t) => s(t) && (t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth), oe = J("measure-on-hover"), re = "_overflowingMultilineText_1fi6s_1", ie = "_overflowingText_1fi6s_24", ne = "_multilineTooltip_1fi6s_45", h = {
|
|
32
|
+
overflowingMultilineText: re,
|
|
33
|
+
overflowingText: ie,
|
|
34
|
+
multilineTooltip: ne
|
|
35
|
+
}, ve = K(function({ text: i, size: f, weight: p, color: u, isTooltipMultiline: o, truncate: d, lineClamp: n, tooltipContent: a, tooltipDelay: m = 500, tooltipPlace: c = "bottom", alwaysShowTooltip: x = !1, isFocusable: I = !1, render: k, ref: q, className: j, ...H }) {
|
|
36
|
+
const _ = L(oe), w = _ === "disabled", v = Q(null), [O, S] = W(!1), [z, y] = W(!1), B = X(v, q), C = () => {
|
|
37
|
+
const e = te(v.current);
|
|
38
|
+
return S(e), e;
|
|
39
|
+
}, M = (e) => {
|
|
40
|
+
if (!e) {
|
|
41
|
+
y(!1);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
y(C() || x);
|
|
45
|
+
}, F = (e) => {
|
|
46
|
+
e.stopPropagation(), e.preventDefault();
|
|
47
|
+
}, g = N(a) ? a : N(i) ? i : null, b = s(n), P = /* @__PURE__ */ r(ee, {
|
|
48
|
+
...b ? { lineClamp: n } : { truncate: d ?? !0 },
|
|
49
|
+
dir: "auto",
|
|
50
|
+
"data-content-overflowing": O ? "" : void 0,
|
|
51
|
+
className: D(b ? h.overflowingMultilineText : h.overflowingText, j),
|
|
52
|
+
render: k,
|
|
53
|
+
ref: B,
|
|
54
|
+
...V({
|
|
55
|
+
tabIndex: I ? 0 : void 0,
|
|
56
|
+
...w ? {} : {
|
|
57
|
+
onPointerEnter: C,
|
|
58
|
+
onFocus: () => M(!0)
|
|
59
|
+
}
|
|
60
|
+
}, H),
|
|
61
|
+
size: f,
|
|
62
|
+
weight: p,
|
|
63
|
+
color: u,
|
|
64
|
+
children: i
|
|
65
|
+
});
|
|
66
|
+
return w ? P : /* @__PURE__ */ U(l.Root, {
|
|
67
|
+
open: z && s(g),
|
|
68
|
+
onOpenChange: (...e) => {
|
|
69
|
+
const [R, E] = e;
|
|
70
|
+
if (!R && E.reason === "trigger-hover" && v.current?.contains(document.activeElement)) {
|
|
71
|
+
E.cancel();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
M(R);
|
|
75
|
+
},
|
|
76
|
+
disabled: !s(g) || _ === "measure-on-hover" && !O && !x,
|
|
77
|
+
children: [/* @__PURE__ */ r(l.Trigger, {
|
|
78
|
+
delay: m,
|
|
79
|
+
closeOnClick: !1,
|
|
80
|
+
render: P
|
|
81
|
+
}), /* @__PURE__ */ r(l.Portal, { children: /* @__PURE__ */ r(l.Positioner, {
|
|
82
|
+
sideOffset: 5,
|
|
83
|
+
side: c,
|
|
84
|
+
children: /* @__PURE__ */ r(l.Popup, {
|
|
85
|
+
className: o ? h.multilineTooltip : void 0,
|
|
86
|
+
onClick: F,
|
|
87
|
+
children: /* @__PURE__ */ r(A, { children: g })
|
|
88
|
+
})
|
|
89
|
+
}) })]
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
oe as n,
|
|
94
|
+
ee as r,
|
|
95
|
+
ve as t
|
|
96
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as b } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
+
import { Cc as B } from "./TablerIcons-B-5Ua_Ne.js";
|
|
4
|
+
import { t as N } from "./doNotTranslate-BSVT8Xyd.js";
|
|
5
|
+
import { t as j } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
|
+
import { n as g, t as y } from "./getProgressIndicatorPercentage-ejfaM6XU.js";
|
|
7
|
+
import { t as f } from "./Button-CU8BS-Yd.js";
|
|
8
|
+
import { useRender as k } from "@base-ui/react/use-render";
|
|
9
|
+
import { isFunction as C, isNonEmptyString as I } from "@sniptt/guards";
|
|
10
|
+
import { clsx as P } from "clsx";
|
|
11
|
+
import { Fragment as S, jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
12
|
+
var w = {
|
|
13
|
+
neutral: "gray",
|
|
14
|
+
info: "blue",
|
|
15
|
+
success: "green",
|
|
16
|
+
warning: "orange",
|
|
17
|
+
error: "red"
|
|
18
|
+
}, x = (a) => /* @__PURE__ */ r(f, {
|
|
19
|
+
...a,
|
|
20
|
+
size: "sm",
|
|
21
|
+
variant: "outline",
|
|
22
|
+
color: "inherit"
|
|
23
|
+
}), A = "_banner_8yjvn_1", F = "_icon_8yjvn_52", T = "_action_8yjvn_53", z = "_dismissible_8yjvn_59", E = "_closeButton_8yjvn_64", i = {
|
|
24
|
+
banner: A,
|
|
25
|
+
icon: F,
|
|
26
|
+
action: T,
|
|
27
|
+
dismissible: z,
|
|
28
|
+
closeButton: E
|
|
29
|
+
}, O = ({ status: a = "info", variant: l = "solid", color: o = w[a], icon: s, action: n, onDismiss: t, closeLabel: c = N("Close"), className: d, children: _, render: e, ref: m, ...v }) => k({
|
|
30
|
+
render: e,
|
|
31
|
+
ref: m,
|
|
32
|
+
state: {
|
|
33
|
+
status: a,
|
|
34
|
+
variant: l,
|
|
35
|
+
color: o
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
...v,
|
|
39
|
+
className: P(i.banner, u(t) && i.dismissible, d),
|
|
40
|
+
children: /* @__PURE__ */ h(S, { children: [
|
|
41
|
+
b(s) && /* @__PURE__ */ r("span", {
|
|
42
|
+
className: i.icon,
|
|
43
|
+
children: s
|
|
44
|
+
}),
|
|
45
|
+
_,
|
|
46
|
+
b(n) && /* @__PURE__ */ r("div", {
|
|
47
|
+
className: i.action,
|
|
48
|
+
children: n
|
|
49
|
+
}),
|
|
50
|
+
u(t) && /* @__PURE__ */ r(f, {
|
|
51
|
+
type: "button",
|
|
52
|
+
size: "sm",
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
color: "inherit",
|
|
55
|
+
className: i.closeButton,
|
|
56
|
+
"aria-label": c,
|
|
57
|
+
onClick: t,
|
|
58
|
+
startIcon: /* @__PURE__ */ r(B, { "aria-hidden": "true" })
|
|
59
|
+
})
|
|
60
|
+
] })
|
|
61
|
+
}
|
|
62
|
+
}), Z = Object.assign(O, { Action: x }), R = "_bar_o09oi_1", K = "_track_o09oi_17", L = "_indicator_o09oi_23", M = "_progressBarIndeterminate_o09oi_1", p = {
|
|
63
|
+
bar: R,
|
|
64
|
+
track: K,
|
|
65
|
+
indicator: L,
|
|
66
|
+
progressBarIndeterminate: M
|
|
67
|
+
}, $ = ({ size: a = "md", className: l, style: o, children: s, barColor: n, backgroundColor: t = "none", withBorderRadius: c = !1, withMinimumFillWidth: d = !0, ..._ }) => /* @__PURE__ */ h(g.Root, {
|
|
68
|
+
..._,
|
|
69
|
+
className: j(p.bar, l),
|
|
70
|
+
"data-size": a,
|
|
71
|
+
"data-with-border-radius": c || void 0,
|
|
72
|
+
style: (e) => ({
|
|
73
|
+
"--progress-bar-background-color": t,
|
|
74
|
+
...I(n) ? { "--progress-bar-color": n } : {},
|
|
75
|
+
...C(o) ? o(e) : o
|
|
76
|
+
}),
|
|
77
|
+
children: [/* @__PURE__ */ r(g.Track, {
|
|
78
|
+
className: p.track,
|
|
79
|
+
children: /* @__PURE__ */ r(g.Indicator, {
|
|
80
|
+
className: p.indicator,
|
|
81
|
+
"data-with-border-radius": c || void 0,
|
|
82
|
+
render: (e) => {
|
|
83
|
+
const m = y({
|
|
84
|
+
width: e.style?.width,
|
|
85
|
+
fallbackPercentage: 0
|
|
86
|
+
}), v = d && m > 0 && m < 100;
|
|
87
|
+
return /* @__PURE__ */ r("div", {
|
|
88
|
+
...e,
|
|
89
|
+
"data-minimum-fill": v || void 0
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
}), s]
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
Z as n,
|
|
97
|
+
w as r,
|
|
98
|
+
$ as t
|
|
99
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const v=require("./isDefined-DS2Q42p5.cjs"),j=require("./isRenderableSlot-Guryb6Nf.cjs"),p=require("./doNotTranslate-CHE7WmRS.cjs"),h=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./getProgressIndicatorPercentage-Mii9lnYd.cjs"),B=require("./Button-iVyxlrwO.cjs");let P=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),N=require("clsx"),e=require("react/jsx-runtime"),y=require("@tabler/icons-react"),m=require("@base-ui/react/progress");var f={neutral:"gray",info:"blue",success:"green",warning:"orange",error:"red"},S=r=>(0,e.jsx)(B.Button,{...r,size:"sm",variant:"outline",color:"inherit"}),C="_banner_8yjvn_1",O="_icon_8yjvn_52",k="_action_8yjvn_53",I="_dismissible_8yjvn_59",T="_closeButton_8yjvn_64",i={banner:C,icon:O,action:k,dismissible:I,closeButton:T},A=({status:r="info",variant:u="solid",color:a=f[r],icon:o,action:t,onDismiss:s,closeLabel:c=p.doNotTranslate("Close"),className:_,children:d,render:n,ref:l,...g})=>(0,P.useRender)({render:n,ref:l,state:{status:r,variant:u,color:a},props:{...g,className:(0,N.clsx)(i.banner,v.isDefined(s)&&i.dismissible,_),children:(0,e.jsxs)(e.Fragment,{children:[j.isRenderableSlot(o)&&(0,e.jsx)("span",{className:i.icon,children:o}),d,j.isRenderableSlot(t)&&(0,e.jsx)("div",{className:i.action,children:t}),v.isDefined(s)&&(0,e.jsx)(B.Button,{type:"button",size:"sm",variant:"ghost",color:"inherit",className:i.closeButton,"aria-label":c,onClick:s,startIcon:(0,e.jsx)(y.IconX,{"aria-hidden":"true"})})]})}}),R=Object.assign(A,{Action:S}),E="_bar_o09oi_1",F="_track_o09oi_17",w="_indicator_o09oi_23",z="_progressBarIndeterminate_o09oi_1",b={bar:E,track:F,indicator:w,progressBarIndeterminate:z},D=({size:r="md",className:u,style:a,children:o,barColor:t,backgroundColor:s="none",withBorderRadius:c=!1,withMinimumFillWidth:_=!0,...d})=>(0,e.jsxs)(m.Progress.Root,{...d,className:h.mergeClassNames(b.bar,u),"data-size":r,"data-with-border-radius":c||void 0,style:n=>({"--progress-bar-background-color":s,...(0,q.isNonEmptyString)(t)?{"--progress-bar-color":t}:{},...(0,q.isFunction)(a)?a(n):a}),children:[(0,e.jsx)(m.Progress.Track,{className:b.track,children:(0,e.jsx)(m.Progress.Indicator,{className:b.indicator,"data-with-border-radius":c||void 0,render:n=>{const l=x.getProgressIndicatorPercentage({width:n.style?.width,fallbackPercentage:0}),g=_&&l>0&&l<100;return(0,e.jsx)("div",{...n,"data-minimum-fill":g||void 0})}})}),o]});Object.defineProperty(exports,"Banner",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"FEEDBACK_STATUS_COLORS",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"ProgressBar",{enumerable:!0,get:function(){return D}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const F=require("./theme-1XkFz8Qu.cjs"),L=require("./isDefined-DS2Q42p5.cjs"),o=require("./mergeClassNames-D4lshrT6.cjs"),j=require("./Button-iVyxlrwO.cjs"),g=require("./useProvidedTextDirection-PVaoQCLH.cjs"),d=require("./ListItem.module-DiUK6-0Z.cjs"),_=require("./Input-D69M4UwD.cjs");let G=require("@base-ui/react/use-render"),S=require("@sniptt/guards"),i=require("clsx"),t=require("react/jsx-runtime"),a=require("@base-ui/react/select"),u=require("@base-ui/react/number-field"),x=require("@base-ui/react/radio"),I=require("@tabler/icons-react");var A="_trigger_hijh9_1",D="_value_hijh9_12",T="_icon_hijh9_31",w="_positioner_hijh9_42",B="_popup_hijh9_46",O="_item_hijh9_71",k="_indicator_hijh9_75",y="_groupLabel_hijh9_81",E="_separator_hijh9_89",l={trigger:A,value:D,icon:T,positioner:w,popup:B,item:O,indicator:k,groupLabel:y,separator:E},$=({className:e,...r})=>(0,t.jsx)(a.Select.GroupLabel,{...r,className:o.mergeClassNames(l.groupLabel,e)}),U=({className:e,children:r=(0,t.jsx)(I.IconChevronDown,{}),...s})=>(0,t.jsx)(a.Select.Icon,{...s,className:o.mergeClassNames(l.icon,e),children:r}),V=({className:e,...r})=>(0,t.jsx)(a.Select.Item,{"data-color":"neutral","data-indicator":"check",...r,className:o.mergeClassNames((0,i.clsx)(d.ListItem_module_default.root,l.item),e)}),H=({className:e,children:r=(0,t.jsx)(I.IconCheck,{className:d.ListItem_module_default.checkIndicator}),...s})=>(0,t.jsx)(a.Select.ItemIndicator,{...s,className:o.mergeClassNames(l.indicator,e),children:r}),J=({className:e,...r})=>(0,t.jsx)(a.Select.ItemText,{...r,className:o.mergeClassNames((0,i.clsx)(d.ListItem_module_default.label,d.ListItem_module_default.text),e)}),K=({className:e,...r})=>(0,t.jsx)(a.Select.Popup,{...r,className:o.mergeClassNames(l.popup,e)}),M=({container:e,...r})=>{const s=F.useThemeContainer(),c=g.useProvidedTextDirection();return(0,t.jsx)(a.Select.Portal,{dir:c,...r,container:(0,S.isUndefined)(e)?s??void 0:e})},Q=({className:e,...r})=>{const s=g.useProvidedTextDirection();return(0,t.jsx)(a.Select.Positioner,{dir:s,...r,className:o.mergeClassNames(l.positioner,e)})},W=({className:e,...r})=>(0,t.jsx)(a.Select.Separator,{...r,className:o.mergeClassNames(l.separator,e)}),X=({size:e="md",className:r,...s})=>(0,t.jsx)(a.Select.Trigger,{...s,className:o.mergeClassNames((0,i.clsx)(_.Input_module_default.input,_.Input_module_default[e],l.trigger),r)}),Y=({className:e,...r})=>(0,t.jsx)(a.Select.Value,{...r,className:o.mergeClassNames(l.value,e)}),Z=()=>({Root:a.Select.Root,Label:a.Select.Label,Trigger:X,Value:Y,Icon:U,Portal:M,Backdrop:a.Select.Backdrop,Positioner:Q,Popup:K,List:a.Select.List,Item:V,ItemIndicator:H,ItemText:J,Arrow:a.Select.Arrow,ScrollDownArrow:a.Select.ScrollDownArrow,ScrollUpArrow:a.Select.ScrollUpArrow,Group:a.Select.Group,GroupLabel:$,Separator:W}),z=Z(),ee="_group_mv9ls_1",re="_button_mv9ls_7",N={group:ee,button:re},te=({className:e,...r})=>(0,t.jsx)(u.NumberField.Decrement,{...r,className:o.mergeClassNames((0,i.clsx)(j.Button_module_default.button,N.button),e)}),ae=({className:e,...r})=>(0,t.jsx)(u.NumberField.Group,{...r,className:o.mergeClassNames(N.group,e)}),oe=({className:e,...r})=>(0,t.jsx)(u.NumberField.Increment,{...r,className:o.mergeClassNames((0,i.clsx)(j.Button_module_default.button,N.button),e)}),se=({className:e,...r})=>(0,t.jsx)(u.NumberField.Input,{...r,className:o.mergeClassNames(_.Input_module_default.input,e)}),le={Root:u.NumberField.Root,Group:ae,Input:se,Increment:oe,Decrement:te,ScrubArea:u.NumberField.ScrubArea,ScrubAreaCursor:u.NumberField.ScrubAreaCursor},ce="_root_g72rh_1",ue="_sm_g72rh_30",ie="_md_g72rh_34",ne="_startElement_g72rh_38",me="_endElement_g72rh_39",m={root:ce,sm:ue,md:ie,startElement:ne,endElement:me},b=e=>L.isDefined(e)&&!(0,S.isBoolean)(e)&&e!=="",de=({size:e="md",hasFocusRing:r=!0,startElement:s,endElement:c,className:p,children:v,render:C,ref:q,...P})=>{const R=(0,G.useRender)({render:C,ref:q,props:{...P,className:(0,i.clsx)(m.root,m[e],p),"data-focus-ring":r,children:(0,t.jsxs)(t.Fragment,{children:[b(s)&&(0,t.jsx)("span",{className:m.startElement,children:s}),v,b(c)&&(0,t.jsx)("span",{className:m.endElement,children:c})]})}});return(0,t.jsx)(_.InputGroupContext.Provider,{value:{size:e},children:R})},_e="_root_1pdpj_1",pe="_control_1pdpj_18",ve="_sm_1pdpj_33",Ne="_md_1pdpj_38",be="_indicator_1pdpj_49",je="_card_1pdpj_90",ge="_cardContent_1pdpj_111",n={root:_e,control:pe,sm:ve,md:Ne,indicator:be,card:je,cardContent:ge},h=x.Radio.Indicator,f=x.Radio.Root,Se=({children:e,className:r,size:s="sm",variant:c="default",render:p=c==="card"?(0,t.jsx)("div",{}):void 0,...v})=>(0,t.jsxs)(f,{...v,render:p,className:o.mergeClassNames((0,i.clsx)(n.root,n[s],c==="card"&&n.card),r),children:[(0,t.jsx)("span",{className:n.control,"aria-hidden":!0,children:(0,t.jsx)(h,{className:n.indicator})}),c==="card"?(0,t.jsx)("span",{className:n.cardContent,children:e}):e]}),xe=Object.assign(Se,{Root:f,Indicator:h});Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"NumberField",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return xe}});Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"Select_module_default",{enumerable:!0,get:function(){return l}});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { t as L } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Dt as P, Tt as x } from "./TablerIcons-B-5Ua_Ne.js";
|
|
3
|
+
import { t as w } from "./theme-B2EaXhye.js";
|
|
4
|
+
import { t } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
+
import { n as N } from "./Button-CU8BS-Yd.js";
|
|
6
|
+
import { t as b } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
7
|
+
import { t as p } from "./ListItem.module-B31VK9XZ.js";
|
|
8
|
+
import { n as v, r as D } from "./Input-D1sIHUZ5.js";
|
|
9
|
+
import { useRender as T } from "@base-ui/react/use-render";
|
|
10
|
+
import { isBoolean as F, isUndefined as $ } from "@sniptt/guards";
|
|
11
|
+
import { clsx as l } from "clsx";
|
|
12
|
+
import { Fragment as k, jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
13
|
+
import { Select as o } from "@base-ui/react/select";
|
|
14
|
+
import { NumberField as m } from "@base-ui/react/number-field";
|
|
15
|
+
import { Radio as f } from "@base-ui/react/radio";
|
|
16
|
+
var B = "_trigger_hijh9_1", E = "_value_hijh9_12", U = "_icon_hijh9_31", V = "_positioner_hijh9_42", O = "_popup_hijh9_46", q = "_item_hijh9_71", y = "_indicator_hijh9_75", H = "_groupLabel_hijh9_81", J = "_separator_hijh9_89", c = {
|
|
17
|
+
trigger: B,
|
|
18
|
+
value: E,
|
|
19
|
+
icon: U,
|
|
20
|
+
positioner: V,
|
|
21
|
+
popup: O,
|
|
22
|
+
item: q,
|
|
23
|
+
indicator: y,
|
|
24
|
+
groupLabel: H,
|
|
25
|
+
separator: J
|
|
26
|
+
}, K = ({ className: r, ...e }) => /* @__PURE__ */ a(o.GroupLabel, {
|
|
27
|
+
...e,
|
|
28
|
+
className: t(c.groupLabel, r)
|
|
29
|
+
}), M = ({ className: r, children: e = /* @__PURE__ */ a(P, {}), ...i }) => /* @__PURE__ */ a(o.Icon, {
|
|
30
|
+
...i,
|
|
31
|
+
className: t(c.icon, r),
|
|
32
|
+
children: e
|
|
33
|
+
}), Q = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Item, {
|
|
34
|
+
"data-color": "neutral",
|
|
35
|
+
"data-indicator": "check",
|
|
36
|
+
...e,
|
|
37
|
+
className: t(l(p.root, c.item), r)
|
|
38
|
+
}), W = ({ className: r, children: e = /* @__PURE__ */ a(x, { className: p.checkIndicator }), ...i }) => /* @__PURE__ */ a(o.ItemIndicator, {
|
|
39
|
+
...i,
|
|
40
|
+
className: t(c.indicator, r),
|
|
41
|
+
children: e
|
|
42
|
+
}), X = ({ className: r, ...e }) => /* @__PURE__ */ a(o.ItemText, {
|
|
43
|
+
...e,
|
|
44
|
+
className: t(l(p.label, p.text), r)
|
|
45
|
+
}), Y = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Popup, {
|
|
46
|
+
...e,
|
|
47
|
+
className: t(c.popup, r)
|
|
48
|
+
}), Z = ({ container: r, ...e }) => {
|
|
49
|
+
const i = w(), n = b();
|
|
50
|
+
return /* @__PURE__ */ a(o.Portal, {
|
|
51
|
+
dir: n,
|
|
52
|
+
...e,
|
|
53
|
+
container: $(r) ? i ?? void 0 : r
|
|
54
|
+
});
|
|
55
|
+
}, z = ({ className: r, ...e }) => {
|
|
56
|
+
const i = b();
|
|
57
|
+
return /* @__PURE__ */ a(o.Positioner, {
|
|
58
|
+
dir: i,
|
|
59
|
+
...e,
|
|
60
|
+
className: t(c.positioner, r)
|
|
61
|
+
});
|
|
62
|
+
}, rr = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Separator, {
|
|
63
|
+
...e,
|
|
64
|
+
className: t(c.separator, r)
|
|
65
|
+
}), er = ({ size: r = "md", className: e, ...i }) => /* @__PURE__ */ a(o.Trigger, {
|
|
66
|
+
...i,
|
|
67
|
+
className: t(l(v.input, v[r], c.trigger), e)
|
|
68
|
+
}), ar = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Value, {
|
|
69
|
+
...e,
|
|
70
|
+
className: t(c.value, r)
|
|
71
|
+
}), or = () => ({
|
|
72
|
+
Root: o.Root,
|
|
73
|
+
Label: o.Label,
|
|
74
|
+
Trigger: er,
|
|
75
|
+
Value: ar,
|
|
76
|
+
Icon: M,
|
|
77
|
+
Portal: Z,
|
|
78
|
+
Backdrop: o.Backdrop,
|
|
79
|
+
Positioner: z,
|
|
80
|
+
Popup: Y,
|
|
81
|
+
List: o.List,
|
|
82
|
+
Item: Q,
|
|
83
|
+
ItemIndicator: W,
|
|
84
|
+
ItemText: X,
|
|
85
|
+
Arrow: o.Arrow,
|
|
86
|
+
ScrollDownArrow: o.ScrollDownArrow,
|
|
87
|
+
ScrollUpArrow: o.ScrollUpArrow,
|
|
88
|
+
Group: o.Group,
|
|
89
|
+
GroupLabel: K,
|
|
90
|
+
Separator: rr
|
|
91
|
+
}), Er = /* @__PURE__ */ or(), tr = "_group_mv9ls_1", ir = "_button_mv9ls_7", h = {
|
|
92
|
+
group: tr,
|
|
93
|
+
button: ir
|
|
94
|
+
}, cr = ({ className: r, ...e }) => /* @__PURE__ */ a(m.Decrement, {
|
|
95
|
+
...e,
|
|
96
|
+
className: t(l(N.button, h.button), r)
|
|
97
|
+
}), nr = ({ className: r, ...e }) => /* @__PURE__ */ a(m.Group, {
|
|
98
|
+
...e,
|
|
99
|
+
className: t(h.group, r)
|
|
100
|
+
}), mr = ({ className: r, ...e }) => /* @__PURE__ */ a(m.Increment, {
|
|
101
|
+
...e,
|
|
102
|
+
className: t(l(N.button, h.button), r)
|
|
103
|
+
}), lr = ({ className: r, ...e }) => /* @__PURE__ */ a(m.Input, {
|
|
104
|
+
...e,
|
|
105
|
+
className: t(v.input, r)
|
|
106
|
+
}), Ur = {
|
|
107
|
+
Root: m.Root,
|
|
108
|
+
Group: nr,
|
|
109
|
+
Input: lr,
|
|
110
|
+
Increment: mr,
|
|
111
|
+
Decrement: cr,
|
|
112
|
+
ScrubArea: m.ScrubArea,
|
|
113
|
+
ScrubAreaCursor: m.ScrubAreaCursor
|
|
114
|
+
}, sr = "_root_g72rh_1", dr = "_sm_g72rh_30", pr = "_md_g72rh_34", ur = "_startElement_g72rh_38", _r = "_endElement_g72rh_39", d = {
|
|
115
|
+
root: sr,
|
|
116
|
+
sm: dr,
|
|
117
|
+
md: pr,
|
|
118
|
+
startElement: ur,
|
|
119
|
+
endElement: _r
|
|
120
|
+
}, I = (r) => L(r) && !F(r) && r !== "", Vr = ({ size: r = "md", hasFocusRing: e = !0, startElement: i, endElement: n, className: u, children: _, render: R, ref: C, ...A }) => {
|
|
121
|
+
const G = T({
|
|
122
|
+
render: R,
|
|
123
|
+
ref: C,
|
|
124
|
+
props: {
|
|
125
|
+
...A,
|
|
126
|
+
className: l(d.root, d[r], u),
|
|
127
|
+
"data-focus-ring": e,
|
|
128
|
+
children: /* @__PURE__ */ g(k, { children: [
|
|
129
|
+
I(i) && /* @__PURE__ */ a("span", {
|
|
130
|
+
className: d.startElement,
|
|
131
|
+
children: i
|
|
132
|
+
}),
|
|
133
|
+
_,
|
|
134
|
+
I(n) && /* @__PURE__ */ a("span", {
|
|
135
|
+
className: d.endElement,
|
|
136
|
+
children: n
|
|
137
|
+
})
|
|
138
|
+
] })
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
return /* @__PURE__ */ a(D.Provider, {
|
|
142
|
+
value: { size: r },
|
|
143
|
+
children: G
|
|
144
|
+
});
|
|
145
|
+
}, vr = "_root_1pdpj_1", hr = "_control_1pdpj_18", Ir = "_sm_1pdpj_33", Nr = "_md_1pdpj_38", br = "_indicator_1pdpj_49", gr = "_card_1pdpj_90", fr = "_cardContent_1pdpj_111", s = {
|
|
146
|
+
root: vr,
|
|
147
|
+
control: hr,
|
|
148
|
+
sm: Ir,
|
|
149
|
+
md: Nr,
|
|
150
|
+
indicator: br,
|
|
151
|
+
card: gr,
|
|
152
|
+
cardContent: fr
|
|
153
|
+
}, S = f.Indicator, j = f.Root, Sr = ({ children: r, className: e, size: i = "sm", variant: n = "default", render: u = n === "card" ? /* @__PURE__ */ a("div", {}) : void 0, ..._ }) => /* @__PURE__ */ g(j, {
|
|
154
|
+
..._,
|
|
155
|
+
render: u,
|
|
156
|
+
className: t(l(s.root, s[i], n === "card" && s.card), e),
|
|
157
|
+
children: [/* @__PURE__ */ a("span", {
|
|
158
|
+
className: s.control,
|
|
159
|
+
"aria-hidden": !0,
|
|
160
|
+
children: /* @__PURE__ */ a(S, { className: s.indicator })
|
|
161
|
+
}), n === "card" ? /* @__PURE__ */ a("span", {
|
|
162
|
+
className: s.cardContent,
|
|
163
|
+
children: r
|
|
164
|
+
}) : r]
|
|
165
|
+
}), Or = Object.assign(Sr, {
|
|
166
|
+
Root: j,
|
|
167
|
+
Indicator: S
|
|
168
|
+
});
|
|
169
|
+
export {
|
|
170
|
+
c as a,
|
|
171
|
+
Er as i,
|
|
172
|
+
Vr as n,
|
|
173
|
+
Ur as r,
|
|
174
|
+
Or as t
|
|
175
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useRender as u } from "@base-ui/react/use-render";
|
|
2
|
+
import { clsx as v } from "clsx";
|
|
3
|
+
var _ = "_root_17v1i_1", c = "_skeletonShimmer_17v1i_1", h = {
|
|
4
|
+
root: _,
|
|
5
|
+
skeletonShimmer: c
|
|
6
|
+
}, g = ({ width: r, height: t, borderRadius: a, baseColor: e, highlightColor: l, animated: i = !0, layout: o = "block", className: n, style: d, render: s, ref: m, ...k }) => u({
|
|
7
|
+
defaultTagName: "span",
|
|
8
|
+
render: s,
|
|
9
|
+
ref: m,
|
|
10
|
+
props: {
|
|
11
|
+
"aria-hidden": !0,
|
|
12
|
+
...k,
|
|
13
|
+
"data-skeleton": "",
|
|
14
|
+
"data-animated": i || void 0,
|
|
15
|
+
"data-layout": o,
|
|
16
|
+
className: v(h.root, n),
|
|
17
|
+
style: {
|
|
18
|
+
width: r,
|
|
19
|
+
height: t,
|
|
20
|
+
borderRadius: a,
|
|
21
|
+
backgroundColor: e,
|
|
22
|
+
"--skeleton-base-color": e,
|
|
23
|
+
"--skeleton-highlight-color": l,
|
|
24
|
+
...d
|
|
25
|
+
},
|
|
26
|
+
children: o === "inline" ? "" : void 0
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
g as t
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let c=require("@base-ui/react/use-render"),k=require("clsx");var m="_root_17v1i_1",v="_skeletonShimmer_17v1i_1",h={root:m,skeletonShimmer:v},b=({width:t,height:o,borderRadius:a,baseColor:e,highlightColor:l,animated:n=!0,layout:r="block",className:i,style:d,render:u,ref:s,..._})=>(0,c.useRender)({defaultTagName:"span",render:u,ref:s,props:{"aria-hidden":!0,..._,"data-skeleton":"","data-animated":n||void 0,"data-layout":r,className:(0,k.clsx)(h.root,i),style:{width:t,height:o,borderRadius:a,backgroundColor:e,"--skeleton-base-color":e,"--skeleton-highlight-color":l,...d},children:r==="inline"?"":void 0}});Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return b}});
|