@konstructio/ui 0.1.2-alpha.103 → 0.1.2-alpha.105
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/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/{AlertDialogTrigger-CgcsW_ta.js → AlertDialogTrigger-BGo_acd5.js} +3 -3
- package/dist/{Checkbox-DzAx7n67.js → Checkbox-B_ngk9Dj.js} +56 -56
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-BnvRMfLI.js → CommandInput-BLq69pOT.js} +1 -1
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/{FlagSelectorList-BoYG-_It.js → FlagSelectorList-CkTR3j6O.js} +222 -218
- package/dist/{HamburgerTrigger-1vOTrm8-.js → HamburgerTrigger-DRylBL2d.js} +1 -1
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-CW0VwW2T.js → Input-Cf44DzfE.js} +18 -18
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-Lw9mZYhg.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/{Switch-WBRr8uOJ.js → Switch-aPhL5rNG.js} +4 -4
- package/dist/{Toast-ByH-l4XK.js → Toast-3NEz7LLa.js} +149 -148
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-XeeD3av7.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/Wrapper-R8fik3ah.js +182 -0
- package/dist/components/Alert/Alert.js +21 -21
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +13 -13
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +23 -22
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -56
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +30 -43
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +36 -49
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +31 -45
- package/dist/components/Filter/contexts/filter.provider.js +15 -10
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +28 -39
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -29
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +0 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +5 -5
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -53
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +95 -89
- package/dist/{components-BIHlj4yH.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{dist-DISvWx7U.js → dist-BUocnzkM.js} +1 -1
- package/dist/{dist-Dse3gSmZ.js → dist-BZNE2Tnx.js} +4 -4
- package/dist/{dist-2bGlmy8N2.js → dist-BaPW7qXd2.js} +27 -26
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/{dist-BiJrNvNo.js → dist-C3YVLapk.js} +29 -28
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/{dist-C2aTw0m62.js → dist-DFCz63oC2.js} +5 -5
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/{dist-CTvBzxW8.js → dist-DX0sBG3Q.js} +1 -1
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/{dist-CVDFmWf2.js → dist-tGUUcv8n.js} +17 -16
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/{es2015-BWf6xQHm.js → es2015-CoHq2g4y.js} +95 -86
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +146 -138
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +2 -0
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +2 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -3
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +6 -5
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +24 -24
- package/dist/styles.css +1 -1
- package/dist/{table.provider-2sAkE7z_.js → table.provider-B0BafHuU.js} +395 -381
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/package.json +24 -24
- package/dist/Counter-CY0xGnVM.js +0 -208
- package/dist/DropdownButton-DnlwdPmb.js +0 -92
- package/dist/Modal-Bfzggwlr.js +0 -76
- package/dist/Wrapper-ClJ_Mham.js +0 -110
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BuFiu480.js +0 -13
- package/dist/dist-C2s4VX-42.js +0 -31
- package/dist/dist-CT6d9xe7.js +0 -441
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-D4FePjTS.js +0 -194
- package/dist/dist-Db6UeFo4.js +0 -291
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-j7FOUrFU.js +0 -206
- package/dist/dist-l-aDnQZC.js +0 -62
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { t as r } from "./utils-Cx-WzRZF.js";
|
|
2
|
+
import { LoaderIcon as oe } from "./assets/icons/components/Loader.js";
|
|
3
|
+
import { t as se } from "./createLucideIcon-MbzNWCaI.js";
|
|
4
|
+
import { t as ie } from "./chevron-up-Bjpvg6ui.js";
|
|
5
|
+
import { Typography as ce } from "./components/Typography/Typography.js";
|
|
6
|
+
import { useSelectContext as ue } from "./components/Select/contexts/select.hook.js";
|
|
7
|
+
import { List as me } from "./components/Select/components/List/List.js";
|
|
8
|
+
import { inputVariants as fe, labelVariants as pe, selectVariants as de } from "./components/Select/Select.variants.js";
|
|
9
|
+
import { useSelect as xe } from "./components/Select/hooks/useSelect.js";
|
|
10
|
+
import { forwardRef as he, useEffect as we, useId as Ne, useImperativeHandle as ge, useMemo as ve, useRef as h } from "react";
|
|
11
|
+
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
12
|
+
var ye = [["path", {
|
|
13
|
+
d: "m21 21-4.34-4.34",
|
|
14
|
+
key: "14j7rj"
|
|
15
|
+
}], ["circle", {
|
|
16
|
+
cx: "11",
|
|
17
|
+
cy: "11",
|
|
18
|
+
r: "8",
|
|
19
|
+
key: "4ej97u"
|
|
20
|
+
}]], ke = se("search", ye), Se = he(({ additionalOptions: R, className: D, defaultValue: w, disabled: a = !1, error: p, groupedOptions: T, iconClassName: S, inputClassName: E, isInfiniteScrollEnabled: F = !1, isLoading: k, isRequired: N, label: g, labelAction: K, labelClassName: M, labelWrapperClassName: W, listClassName: _, listItemClassName: $, listItemSecondRowClassName: q, name: d, noOptionsText: A, placeholder: v, searchable: C = !1, showSearchIcon: y, theme: H, visibleItems: P, wrapperClassName: U, onFetchMoreOptions: B, onBlur: G, onSearchChange: J, ...I }, Q) => {
|
|
21
|
+
const j = Ne(), c = h(null), L = h(null), O = h(null), X = h(0), { isOpen: o, options: l, searchTerm: Y, value: s, setCanFilter: Z, setSearchTerm: ee, setValue: u, toggleOpen: te } = ue(), t = ve(() => l.find(({ value: e }) => e === s), [l, s]), { wrapperRef: ae, wrapperInputRef: V, handleOpen: x } = xe({
|
|
22
|
+
inputRef: c,
|
|
23
|
+
searchInputRef: L,
|
|
24
|
+
internalValue: t,
|
|
25
|
+
onBlur: G
|
|
26
|
+
}), b = () => {
|
|
27
|
+
if (!a) {
|
|
28
|
+
if (o) {
|
|
29
|
+
te(!1);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
x();
|
|
33
|
+
}
|
|
34
|
+
}, re = (e) => {
|
|
35
|
+
if (!a) {
|
|
36
|
+
if (e.key === "ArrowDown") {
|
|
37
|
+
if (e.preventDefault(), !o) {
|
|
38
|
+
x();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
O.current?.querySelector("li")?.focus();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), b());
|
|
45
|
+
}
|
|
46
|
+
}, m = d ? `${j}-${d}` : j;
|
|
47
|
+
ge(Q, () => c.current, [c]), we(() => {
|
|
48
|
+
if (w && !s) {
|
|
49
|
+
const e = l && l.find((f) => f.value === w);
|
|
50
|
+
e && u(e.value);
|
|
51
|
+
}
|
|
52
|
+
}, [
|
|
53
|
+
w,
|
|
54
|
+
l,
|
|
55
|
+
u,
|
|
56
|
+
s
|
|
57
|
+
]);
|
|
58
|
+
const ne = (e) => {
|
|
59
|
+
const f = e.target.value;
|
|
60
|
+
Z(!0), u(""), ee(f ?? ""), J?.(f);
|
|
61
|
+
const z = l.find((le) => le.value.toLocaleLowerCase() === f.toLocaleLowerCase());
|
|
62
|
+
u(z ? z.value : t?.value ?? "");
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ i("div", {
|
|
65
|
+
ref: ae,
|
|
66
|
+
className: r("flex flex-col gap-2 w-full relative", U),
|
|
67
|
+
"data-theme": H,
|
|
68
|
+
children: [
|
|
69
|
+
g ? /* @__PURE__ */ i("div", {
|
|
70
|
+
className: r("flex items-center justify-between", W),
|
|
71
|
+
children: [/* @__PURE__ */ i("label", {
|
|
72
|
+
id: m,
|
|
73
|
+
className: r(pe({ className: M })),
|
|
74
|
+
htmlFor: m,
|
|
75
|
+
onClick: () => !a && x(),
|
|
76
|
+
children: [g, N && /* @__PURE__ */ n("span", {
|
|
77
|
+
className: "text-red-600 dark:text-red-500 ml-1",
|
|
78
|
+
children: "*"
|
|
79
|
+
})]
|
|
80
|
+
}), K]
|
|
81
|
+
}) : null,
|
|
82
|
+
/* @__PURE__ */ i("div", {
|
|
83
|
+
ref: V,
|
|
84
|
+
id: m,
|
|
85
|
+
className: r(de({
|
|
86
|
+
className: D,
|
|
87
|
+
hasError: !!p,
|
|
88
|
+
disabled: a
|
|
89
|
+
})),
|
|
90
|
+
role: "combobox",
|
|
91
|
+
onClick: b,
|
|
92
|
+
onKeyDown: re,
|
|
93
|
+
"aria-expanded": o,
|
|
94
|
+
tabIndex: X.current,
|
|
95
|
+
"aria-labelledby": m,
|
|
96
|
+
children: [/* @__PURE__ */ i("div", {
|
|
97
|
+
className: "flex gap-2.5 items-center flex-1",
|
|
98
|
+
children: [
|
|
99
|
+
t?.leftIcon && !y && /* @__PURE__ */ n("span", {
|
|
100
|
+
className: "w-4 h-4 flex justify-center items-center dark:text-metal-50",
|
|
101
|
+
children: t.leftIcon
|
|
102
|
+
}),
|
|
103
|
+
y && /* @__PURE__ */ n(ke, { className: r("w-4", "h-4", "text-zinc-500", "select-none", "transition-colors", "duration-300", "dark:text-metal-300", "dark:group-focus-within:text-metal-50") }),
|
|
104
|
+
C ? /* @__PURE__ */ n("input", {
|
|
105
|
+
ref: L,
|
|
106
|
+
type: "text",
|
|
107
|
+
value: o ? Y : t?.label ?? s ?? "",
|
|
108
|
+
onChange: ne,
|
|
109
|
+
placeholder: v,
|
|
110
|
+
className: r(fe({ className: E }), { "text-red-700 placeholder:text-red-700": !!p }),
|
|
111
|
+
onClick: (e) => {
|
|
112
|
+
e.stopPropagation(), a || x();
|
|
113
|
+
},
|
|
114
|
+
"aria-label": g || v,
|
|
115
|
+
"aria-labelledby": m,
|
|
116
|
+
required: N,
|
|
117
|
+
autoComplete: "off",
|
|
118
|
+
autoCapitalize: "words",
|
|
119
|
+
disabled: a,
|
|
120
|
+
tabIndex: -1,
|
|
121
|
+
...I
|
|
122
|
+
}) : /* @__PURE__ */ i(ce, {
|
|
123
|
+
variant: "body2",
|
|
124
|
+
className: r("flex-1 text-zinc-400 text-sm dark:text-metal-400 flex gap-2 items-center", {
|
|
125
|
+
"text-red-700": !!p,
|
|
126
|
+
"select-none": !t,
|
|
127
|
+
"text-metal-800 dark:text-metal-50": t,
|
|
128
|
+
"text-metal-400/50 dark:text-metal-50/50": a
|
|
129
|
+
}, t?.wrapperClassNameOnSelectedValue),
|
|
130
|
+
children: [
|
|
131
|
+
t?.label || v,
|
|
132
|
+
" ",
|
|
133
|
+
t?.showRightComponentOnselectedValue ? t?.rightComponent : null
|
|
134
|
+
]
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
}), k ? /* @__PURE__ */ n(oe, {
|
|
138
|
+
size: 16,
|
|
139
|
+
className: "text-metal-400 animate-spin select-none"
|
|
140
|
+
}) : !y && /* @__PURE__ */ n(ie, {
|
|
141
|
+
"data-state": o ? "open" : "closed",
|
|
142
|
+
className: r("w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none dark:group-focus-within:text-metal-50", S, {
|
|
143
|
+
"text-red-700": !!p,
|
|
144
|
+
"text-metal-400/50 dark:group-focus-within:text-zinc-500": a
|
|
145
|
+
})
|
|
146
|
+
})]
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ n("input", {
|
|
149
|
+
ref: c,
|
|
150
|
+
type: "text",
|
|
151
|
+
name: d,
|
|
152
|
+
className: "hidden",
|
|
153
|
+
"aria-hidden": "true",
|
|
154
|
+
required: N,
|
|
155
|
+
inert: !0,
|
|
156
|
+
defaultValue: t?.value ?? s ?? void 0,
|
|
157
|
+
...I
|
|
158
|
+
}),
|
|
159
|
+
o && /* @__PURE__ */ n(me, {
|
|
160
|
+
ref: O,
|
|
161
|
+
additionalOptions: R,
|
|
162
|
+
className: _,
|
|
163
|
+
groupedOptions: T,
|
|
164
|
+
itemClassName: $,
|
|
165
|
+
name: d,
|
|
166
|
+
wrapperInputRef: V,
|
|
167
|
+
inputRef: c,
|
|
168
|
+
options: l,
|
|
169
|
+
isLoading: !!k,
|
|
170
|
+
searchable: C,
|
|
171
|
+
listItemSecondRowClassName: q,
|
|
172
|
+
isInfiniteScrollEnabled: F,
|
|
173
|
+
onFetchMoreOptions: B,
|
|
174
|
+
noOptionsText: A,
|
|
175
|
+
visibleItems: P
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
export {
|
|
181
|
+
Se as t
|
|
182
|
+
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as h } from "../../x-BI9jmc7e.js";
|
|
3
|
-
import { n as C } from "../../dist-
|
|
3
|
+
import { n as C } from "../../dist-DX0sBG3Q.js";
|
|
4
4
|
import { t as n } from "../../utils-Cx-WzRZF.js";
|
|
5
5
|
import { CheckCircleFilledIcon as v } from "../../assets/icons/components/CheckCircleFilled.js";
|
|
6
6
|
import { ErrorIcon as I } from "../../assets/icons/components/Error.js";
|
|
7
|
-
import { InfoCircleIcon as
|
|
8
|
-
import { WarningTriangleIcon as
|
|
9
|
-
import { alertVariants as
|
|
10
|
-
import {
|
|
7
|
+
import { InfoCircleIcon as g } from "../../assets/icons/components/InfoCircle.js";
|
|
8
|
+
import { WarningTriangleIcon as N } from "../../assets/icons/components/WarningTriangle.js";
|
|
9
|
+
import { alertVariants as b, closeButtonVariants as x, descriptionVariants as V, iconVariants as w, titleVariants as A } from "./Alert.variants.js";
|
|
10
|
+
import { useEffect as k, useRef as E, useState as j } from "react";
|
|
11
11
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
12
|
-
var
|
|
12
|
+
var P = {
|
|
13
13
|
success: v,
|
|
14
|
-
info:
|
|
15
|
-
warning:
|
|
14
|
+
info: g,
|
|
15
|
+
warning: N,
|
|
16
16
|
danger: I
|
|
17
|
-
},
|
|
18
|
-
const a =
|
|
17
|
+
}, W = ({ theme: m, type: r, title: i, description: l, isVisible: o = !0, showCloseButton: d = !1 }) => {
|
|
18
|
+
const a = E(null), [f, u] = j(o), p = () => {
|
|
19
19
|
const e = a.current;
|
|
20
20
|
e && e.setAttribute("data-state", "hidden");
|
|
21
|
-
}
|
|
22
|
-
if (
|
|
21
|
+
};
|
|
22
|
+
if (k(() => {
|
|
23
23
|
const e = new AbortController();
|
|
24
24
|
return a.current?.addEventListener("animationend", () => {
|
|
25
25
|
a.current?.style.setProperty("display", "none"), u(!1);
|
|
26
26
|
}, { signal: e.signal }), () => e.abort();
|
|
27
27
|
}, []), !f) return null;
|
|
28
|
-
const c = r ?
|
|
28
|
+
const c = r ? P[r] : null;
|
|
29
29
|
return /* @__PURE__ */ s("div", {
|
|
30
30
|
ref: a,
|
|
31
|
-
className: n(
|
|
31
|
+
className: n(b({
|
|
32
32
|
type: r,
|
|
33
33
|
isVisible: o
|
|
34
34
|
})),
|
|
@@ -37,15 +37,15 @@ var R = {
|
|
|
37
37
|
role: "alert",
|
|
38
38
|
"aria-live": "polite",
|
|
39
39
|
children: [
|
|
40
|
-
c && /* @__PURE__ */ t(c, { className: n(
|
|
40
|
+
c && /* @__PURE__ */ t(c, { className: n(w({ type: r })) }),
|
|
41
41
|
/* @__PURE__ */ s("div", {
|
|
42
42
|
className: "flex flex-col gap-1 flex-1",
|
|
43
|
-
children: [
|
|
44
|
-
className: n(
|
|
45
|
-
children: l
|
|
46
|
-
}), i && /* @__PURE__ */ t("div", {
|
|
47
|
-
className: n(V({ type: r })),
|
|
43
|
+
children: [i && /* @__PURE__ */ t("p", {
|
|
44
|
+
className: n(A({ type: r })),
|
|
48
45
|
children: i
|
|
46
|
+
}), l && /* @__PURE__ */ t("div", {
|
|
47
|
+
className: n(V({ type: r })),
|
|
48
|
+
children: l
|
|
49
49
|
})]
|
|
50
50
|
}),
|
|
51
51
|
d && /* @__PURE__ */ s("button", {
|
|
@@ -57,5 +57,5 @@ var R = {
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
W as Alert
|
|
61
61
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as n } from "../../utils-Cx-WzRZF.js";
|
|
3
|
-
import { a as T, c as z, i as B, l as E, n as P, o as S, r as q, s as F, t as G } from "../../AlertDialogTrigger-
|
|
3
|
+
import { a as T, c as z, i as B, l as E, n as P, o as S, r as q, s as F, t as G } from "../../AlertDialogTrigger-BGo_acd5.js";
|
|
4
4
|
import { Button as i } from "../Button/Button.js";
|
|
5
5
|
import { useAlertDialog as H } from "./hooks/useAlertDialog.js";
|
|
6
6
|
import { useEffect as I, useRef as J, useState as L } from "react";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
const [
|
|
1
|
+
import { useState as l } from "react";
|
|
2
|
+
var c = ({ onConfirm: n }) => {
|
|
3
|
+
const [a, e] = l(!1);
|
|
4
4
|
return {
|
|
5
|
-
isOpen:
|
|
6
|
-
handleCancel:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
isOpen: a,
|
|
6
|
+
handleCancel: () => {
|
|
7
|
+
e(!1);
|
|
8
|
+
},
|
|
9
|
+
handleConfirm: () => {
|
|
10
|
+
n?.(), e(!1);
|
|
11
|
+
},
|
|
12
|
+
handleOpen: () => {
|
|
13
|
+
e(!0);
|
|
14
|
+
}
|
|
11
15
|
};
|
|
12
16
|
};
|
|
13
17
|
export {
|
|
14
|
-
|
|
18
|
+
c as useAlertDialog
|
|
15
19
|
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import { t } from "../../../../utils-Cx-WzRZF.js";
|
|
1
|
+
import { t as e } from "../../../../utils-Cx-WzRZF.js";
|
|
2
2
|
import { useNavigationUlList as f } from "../../hooks/useNavigationList.js";
|
|
3
|
-
import {
|
|
3
|
+
import { emptyListVariants as p, listItemVariants as u, listVariants as x } from "./List.variants.js";
|
|
4
4
|
import { useRef as d } from "react";
|
|
5
|
-
import { jsx as
|
|
6
|
-
var
|
|
7
|
-
const
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
var g = ({ className: l, inputRef: a, options: r, placeholder: m, placeholderClassName: o, wrapperRef: n, onClick: c }) => {
|
|
7
|
+
const i = d(null);
|
|
8
8
|
return f({
|
|
9
|
-
ulRef:
|
|
10
|
-
inputRef:
|
|
11
|
-
wrapperRef:
|
|
12
|
-
options:
|
|
13
|
-
}),
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
16
|
-
}) : /* @__PURE__ */
|
|
17
|
-
ref:
|
|
9
|
+
ulRef: i,
|
|
10
|
+
inputRef: a,
|
|
11
|
+
wrapperRef: n,
|
|
12
|
+
options: r
|
|
13
|
+
}), r.length === 0 ? /* @__PURE__ */ s("span", {
|
|
14
|
+
className: e(p({ className: o })),
|
|
15
|
+
children: m
|
|
16
|
+
}) : /* @__PURE__ */ s("ul", {
|
|
17
|
+
ref: i,
|
|
18
18
|
role: "listbox",
|
|
19
|
-
className:
|
|
20
|
-
children:
|
|
19
|
+
className: e(x({ className: l })),
|
|
20
|
+
children: r.map(({ value: t }) => /* @__PURE__ */ s("li", {
|
|
21
21
|
role: "option",
|
|
22
|
+
"aria-selected": !1,
|
|
22
23
|
tabIndex: 0,
|
|
23
|
-
className:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: t(p()),
|
|
28
|
-
onClick: () => c(a),
|
|
29
|
-
children: a
|
|
30
|
-
})
|
|
31
|
-
}, a))
|
|
24
|
+
className: e(u(), "cursor-pointer px-3 py-1.5 w-full text-left"),
|
|
25
|
+
onClick: () => c(t),
|
|
26
|
+
children: t
|
|
27
|
+
}, t))
|
|
32
28
|
});
|
|
33
29
|
};
|
|
34
30
|
export {
|
|
35
|
-
|
|
31
|
+
g as List
|
|
36
32
|
};
|
|
@@ -1,36 +1,24 @@
|
|
|
1
1
|
import { t as r } from "../../../../dist-B9GE4SXf.js";
|
|
2
|
-
var
|
|
3
|
-
"max-h-
|
|
2
|
+
var e = r([
|
|
3
|
+
"max-h-62.5",
|
|
4
4
|
"overflow-y-auto",
|
|
5
5
|
"bg-white"
|
|
6
|
-
]),
|
|
6
|
+
]), a = r([
|
|
7
7
|
"p-1",
|
|
8
8
|
"text-center",
|
|
9
9
|
"w-full",
|
|
10
10
|
"block",
|
|
11
11
|
"bg-white"
|
|
12
|
-
]),
|
|
12
|
+
]), o = r([
|
|
13
13
|
"focus-visible:outline-none",
|
|
14
14
|
"kubefirst:focus:bg-purple-100",
|
|
15
15
|
"kubefirst:hover:bg-purple-100",
|
|
16
16
|
"border-transparent",
|
|
17
17
|
"focus:bg-aurora-50",
|
|
18
18
|
"hover:bg-aurora-50"
|
|
19
|
-
]), u = r([
|
|
20
|
-
"cursor-pointer",
|
|
21
|
-
"focus-visible:outline-none",
|
|
22
|
-
"px-3",
|
|
23
|
-
"py-1.5",
|
|
24
|
-
"w-full",
|
|
25
|
-
"text-left",
|
|
26
|
-
"focus:bg-aurora-50",
|
|
27
|
-
"hover:bg-aurora-50",
|
|
28
|
-
"kubefirst:focus:bg-purple-100",
|
|
29
|
-
"kubefirst:hover:bg-purple-100"
|
|
30
19
|
]);
|
|
31
20
|
export {
|
|
32
|
-
|
|
33
|
-
o as
|
|
34
|
-
|
|
35
|
-
t as listVariants
|
|
21
|
+
a as emptyListVariants,
|
|
22
|
+
o as listItemVariants,
|
|
23
|
+
e as listVariants
|
|
36
24
|
};
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { n as f } from "../../../utils-Cx-WzRZF.js";
|
|
2
|
+
import { useClickOutside as C } from "../../../hooks/useClickOutside.js";
|
|
3
|
+
import { useCallback as E, useEffect as a, useState as c } from "react";
|
|
4
|
+
var S = ({ options: s, inputRef: t, wrapperRef: l, onChange: u }) => {
|
|
5
|
+
const [h, i] = c(() => s ?? []), [m, n] = c(!1), [b, d] = c("");
|
|
6
|
+
a(() => {
|
|
7
|
+
const e = new AbortController();
|
|
8
|
+
return t.current?.addEventListener("focus", () => n(!0), { signal: e.signal }), () => {
|
|
9
|
+
e.abort();
|
|
9
10
|
};
|
|
10
|
-
}, [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
}, [t]), C(l, E(() => {
|
|
12
|
+
n(!1);
|
|
13
|
+
}, [])), a(() => {
|
|
14
|
+
const e = new AbortController(), r = (o) => {
|
|
15
|
+
o.key === "Escape" && (n(!1), t.current?.blur());
|
|
15
16
|
};
|
|
16
|
-
return document.addEventListener("keydown",
|
|
17
|
-
|
|
17
|
+
return document.addEventListener("keydown", r, { signal: e.signal }), () => {
|
|
18
|
+
e.abort();
|
|
18
19
|
};
|
|
19
|
-
}, [
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
}, { signal:
|
|
24
|
-
|
|
20
|
+
}, [t]), a(() => {
|
|
21
|
+
const e = new AbortController();
|
|
22
|
+
return l.current?.addEventListener("focusout", (r) => {
|
|
23
|
+
l.current?.contains(r.relatedTarget) || n(!1);
|
|
24
|
+
}, { signal: e.signal }), () => {
|
|
25
|
+
e.abort();
|
|
25
26
|
};
|
|
26
|
-
}, [
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
27
|
+
}, [l]);
|
|
28
|
+
const g = (e) => {
|
|
29
|
+
if (e.length === 0) i(s);
|
|
29
30
|
else {
|
|
30
|
-
const
|
|
31
|
-
|
|
31
|
+
const r = f(s.map(({ value: o }) => o), e).map((o) => ({ value: o }));
|
|
32
|
+
i(r);
|
|
32
33
|
}
|
|
33
|
-
}
|
|
34
|
+
};
|
|
34
35
|
return {
|
|
35
|
-
inputRef:
|
|
36
|
-
newOptions:
|
|
37
|
-
showOptions:
|
|
38
|
-
value:
|
|
39
|
-
handleChange:
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
handleSelectValue:
|
|
43
|
-
|
|
44
|
-
}
|
|
36
|
+
inputRef: t,
|
|
37
|
+
newOptions: h,
|
|
38
|
+
showOptions: m,
|
|
39
|
+
value: b,
|
|
40
|
+
handleChange: (e) => {
|
|
41
|
+
d(e.target.value), g(e.target.value), u?.(e.target.value);
|
|
42
|
+
},
|
|
43
|
+
handleSelectValue: (e) => {
|
|
44
|
+
d(e), g(e), u?.(e), n(!1);
|
|
45
|
+
}
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
S as useAutocomplete
|
|
49
50
|
};
|
|
@@ -19,7 +19,8 @@ var k = ({ ulRef: t, inputRef: c, wrapperRef: u, options: a }) => {
|
|
|
19
19
|
r.current === 0 ? c.current?.focus() : i();
|
|
20
20
|
break;
|
|
21
21
|
case "Enter":
|
|
22
|
-
|
|
22
|
+
case " ":
|
|
23
|
+
e[r.current].click();
|
|
23
24
|
break;
|
|
24
25
|
}
|
|
25
26
|
}, { signal: n.signal }), () => {
|
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { LoaderIcon as
|
|
4
|
-
import { t as
|
|
5
|
-
import { badgeVariants as
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as s, jsxs as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
t.stopPropagation(),
|
|
11
|
-
}
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { t as c } from "../../dist-xCbHbMLA.js";
|
|
2
|
+
import { t as p } from "../../utils-Cx-WzRZF.js";
|
|
3
|
+
import { LoaderIcon as x } from "../../assets/icons/components/Loader.js";
|
|
4
|
+
import { t as D } from "../../x-a_LpoXzG2.js";
|
|
5
|
+
import { badgeVariants as V, buttonDismissVariants as j } from "./Badge.variants.js";
|
|
6
|
+
import { useEffect as E, useRef as L, useState as P } from "react";
|
|
7
|
+
import { jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, leftIcon: n, loading: o = !1, rightIcon: l, size: m, variant: d, onClick: e, onDismiss: v }) => {
|
|
9
|
+
const u = L(null), [r, N] = P("visible"), y = (t) => {
|
|
10
|
+
t.stopPropagation(), v?.(), N("hidden");
|
|
11
|
+
};
|
|
12
|
+
return E(() => {
|
|
13
|
+
if (r !== "hidden") return;
|
|
14
|
+
const t = new AbortController(), a = u.current;
|
|
15
|
+
return a?.addEventListener("animationend", (w) => {
|
|
16
|
+
w.target === a && (a.style.setProperty("display", "none"), a.remove());
|
|
16
17
|
}, { signal: t.signal }), () => t.abort();
|
|
17
|
-
}, []), /* @__PURE__ */
|
|
18
|
-
ref:
|
|
19
|
-
className:
|
|
20
|
-
variant:
|
|
21
|
-
size:
|
|
18
|
+
}, [r]), /* @__PURE__ */ f("span", {
|
|
19
|
+
ref: u,
|
|
20
|
+
className: p(V({
|
|
21
|
+
variant: d,
|
|
22
|
+
size: m,
|
|
22
23
|
className: b
|
|
23
24
|
}), {
|
|
24
|
-
"select-none": !
|
|
25
|
+
"select-none": !g,
|
|
25
26
|
"cursor-pointer": e
|
|
26
27
|
}),
|
|
27
28
|
role: e ? "button" : void 0,
|
|
28
29
|
onClick: e,
|
|
29
30
|
tabIndex: e ? 0 : void 0,
|
|
30
|
-
"aria-label": e ? `${
|
|
31
|
-
"aria-busy":
|
|
31
|
+
"aria-label": e ? `${i} badge` : void 0,
|
|
32
|
+
"aria-busy": o,
|
|
32
33
|
"aria-live": "polite",
|
|
33
|
-
"data-state":
|
|
34
|
+
"data-state": r,
|
|
34
35
|
children: [
|
|
35
|
-
|
|
36
|
+
o && /* @__PURE__ */ s(x, {
|
|
36
37
|
size: 12,
|
|
37
38
|
className: "animate-spin animate-duration-time-2"
|
|
38
39
|
}),
|
|
39
|
-
|
|
40
|
+
n ? /* @__PURE__ */ s(c, {
|
|
40
41
|
className: "h-3 w-3",
|
|
41
|
-
children:
|
|
42
|
+
children: n
|
|
42
43
|
}) : null,
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
i,
|
|
45
|
+
h ? /* @__PURE__ */ f("button", {
|
|
45
46
|
type: "button",
|
|
46
|
-
className:
|
|
47
|
-
size:
|
|
48
|
-
variant:
|
|
47
|
+
className: p(j({
|
|
48
|
+
size: m,
|
|
49
|
+
variant: d
|
|
49
50
|
})),
|
|
50
51
|
onClick: y,
|
|
51
52
|
"aria-label": "Dismiss",
|
|
52
|
-
children: [/* @__PURE__ */ s(
|
|
53
|
+
children: [/* @__PURE__ */ s(D, { className: "h-full w-full" }), /* @__PURE__ */ s("span", {
|
|
53
54
|
className: "sr-only",
|
|
54
55
|
children: "Dismiss"
|
|
55
56
|
})]
|
|
56
|
-
}) :
|
|
57
|
+
}) : l ? /* @__PURE__ */ s(c, {
|
|
57
58
|
className: "h-3 w-3",
|
|
58
|
-
children:
|
|
59
|
+
children: l
|
|
59
60
|
}) : null
|
|
60
61
|
]
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
q as Badge
|
|
65
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as d } from "../../dist-
|
|
1
|
+
import { n as d } from "../../dist-DX0sBG3Q.js";
|
|
2
2
|
import { t as o } from "../../utils-Cx-WzRZF.js";
|
|
3
|
-
import { s, t as p } from "../../dist-
|
|
3
|
+
import { s, t as p } from "../../dist-C3YVLapk.js";
|
|
4
4
|
import { wrapperVariants as l } from "./Command.variants.js";
|
|
5
5
|
import { CommandGroup as D } from "./components/CommandGroup.js";
|
|
6
6
|
import { CommandItem as v } from "./components/CommandItem.js";
|