@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.106
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/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-BOrb536P.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-DVBxqgW_.js} +2 -2
- package/dist/Checkbox-B20uoUKD.js +249 -0
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-BWt6-vUK.js} +3 -3
- package/dist/{Counter-BV680M5r.js → Counter-DiQb-he2.js} +2 -2
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-hCVYZ1LA.js} +5 -5
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-CnJjnsp6.js} +11 -8
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-BT2yUUJ-.js} +2 -2
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-DgCBCa5X.js} +1 -1
- package/dist/{Input-Cf44DzfE.js → Input-wp-rsCmX.js} +2 -2
- package/dist/{Modal-Dyn088X7.js → Modal-CkAf9UY7.js} +3 -3
- package/dist/{Switch-aPhL5rNG.js → Switch-CyJXptgc.js} +80 -77
- package/dist/{Toast-3NEz7LLa.js → Toast-DLJDExxw.js} +7 -6
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-B8Ja3k4j.js} +63 -63
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CvDRHgN4.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- 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/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +1 -1
- package/dist/components/Command/components/Command.js +1 -1
- 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 +1 -1
- 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/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- 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 +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- 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/Datepicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.js +27 -25
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +42 -40
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Modal/Modal.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/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 +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +30 -27
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +36 -33
- package/dist/components/Select/components/List/List.js +31 -31
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +8 -8
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.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/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 +11 -11
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +16 -16
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +3 -3
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +10 -10
- package/dist/{components-Cf345jTv.js → components-MnxnhLqM.js} +1 -1
- package/dist/{constants-CxJJRVK3.js → constants-CSsr7_YV.js} +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-BaPW7qXd2.js → dist-B6ExqXM_2.js} +1 -1
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-C87gsBDM.js} +1 -1
- package/dist/{dist-DDck_2lb.js → dist-CqNOgbfR.js} +117 -116
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR2.js} +38 -38
- package/dist/{dist-DFCz63oC2.js → dist-Z0F27ATp2.js} +157 -158
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-tGUUcv8n.js → dist-oJzmvhAb.js} +114 -115
- package/dist/{dist-BlPTJNIm.js → dist-ut_BEHii.js} +1 -1
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/index.js +10 -10
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +21 -21
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-B6Nc0Fib.js} +835 -827
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-DfZ74xMZ.js} +95 -95
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +21 -21
- package/dist/Checkbox-B_ngk9Dj.js +0 -249
- package/dist/es2015-DigR3dar.js +0 -795
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { Button as
|
|
1
|
+
import { t as o } from "../../../../Checkbox-B20uoUKD.js";
|
|
2
|
+
import { t as c } from "../../../../utils-Cx-WzRZF.js";
|
|
3
|
+
import { Button as m } from "../../../Button/Button.js";
|
|
4
4
|
import { t as O } from "../../../../chevron-down-DNP-OOAQ.js";
|
|
5
|
-
import { Badge as
|
|
5
|
+
import { Badge as i } from "../../../Badge/Badge.js";
|
|
6
6
|
import { filterButtonIconVariants as S, filterButtonVariants as B } from "../../Filter.variants.js";
|
|
7
|
-
import { FilterDropdown as
|
|
8
|
-
import { useBadgeMultiSelect as
|
|
9
|
-
import { Fragment as j, jsx as a, jsxs as
|
|
10
|
-
var
|
|
11
|
-
const { isOpen:
|
|
12
|
-
onApply:
|
|
13
|
-
options:
|
|
7
|
+
import { FilterDropdown as I } from "../FilterDropdown/FilterDropdown.js";
|
|
8
|
+
import { useBadgeMultiSelect as A } from "./BadgeMultiSelect.hook.js";
|
|
9
|
+
import { Fragment as j, jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
10
|
+
var G = ({ options: l, label: h, position: g = "left", onApply: p, showSelectAll: f = !0, selectAllLabel: d = "All" }) => {
|
|
11
|
+
const { isOpen: n, isAllSelected: u, selectedOptions: x, selectedCount: s, handleOpenChange: b, handleResetOptions: v, handleApplyOptions: C, handleSelectAll: k, handleSelectOption: y } = A({
|
|
12
|
+
onApply: p,
|
|
13
|
+
options: l
|
|
14
14
|
});
|
|
15
|
-
return
|
|
16
|
-
isOpen:
|
|
17
|
-
position:
|
|
15
|
+
return l.length === 0 ? null : /* @__PURE__ */ r(I, {
|
|
16
|
+
isOpen: n,
|
|
17
|
+
position: g,
|
|
18
18
|
contentClassName: "border border-gray-200",
|
|
19
|
-
triggerClassName:
|
|
20
|
-
trigger: /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
s.length > 0 && /* @__PURE__ */ a(
|
|
23
|
-
/* @__PURE__ */ a(O, { className:
|
|
19
|
+
triggerClassName: c(B(), { "text-slate-700 dark:text-metal-50": n }),
|
|
20
|
+
trigger: /* @__PURE__ */ r(j, { children: [
|
|
21
|
+
h,
|
|
22
|
+
s.length > 0 && /* @__PURE__ */ a(i, { label: s.length.toString() }),
|
|
23
|
+
/* @__PURE__ */ a(O, { className: c(S(), { "rotate-180 text-blue-600 dark:text-aurora-500": n }) })
|
|
24
24
|
] }),
|
|
25
25
|
onOpenChange: b,
|
|
26
26
|
children: [/* @__PURE__ */ a("div", {
|
|
27
27
|
className: "px-6 py-4",
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ r("div", {
|
|
29
29
|
className: "flex flex-col gap-2",
|
|
30
|
-
children: [
|
|
30
|
+
children: [f && /* @__PURE__ */ r("div", {
|
|
31
31
|
className: "flex gap-4",
|
|
32
|
-
children: [/* @__PURE__ */ a(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
children: [/* @__PURE__ */ a(o, {
|
|
33
|
+
checked: u,
|
|
34
|
+
"aria-label": d,
|
|
35
|
+
onChange: (e) => k(l, e)
|
|
36
|
+
}), /* @__PURE__ */ a(i, { label: d })]
|
|
37
|
+
}), l.map((e) => {
|
|
38
|
+
const N = x.some((t) => t.id === e.id && !t.isRemoved);
|
|
39
|
+
return /* @__PURE__ */ r("div", {
|
|
39
40
|
className: "flex gap-4",
|
|
40
|
-
children: [/* @__PURE__ */ a(
|
|
41
|
-
|
|
41
|
+
children: [/* @__PURE__ */ a(o, {
|
|
42
|
+
checked: N,
|
|
43
|
+
"aria-label": e.label,
|
|
42
44
|
"data-label": e.id,
|
|
43
|
-
onChange: (
|
|
44
|
-
}
|
|
45
|
+
onChange: (t) => y(e, t)
|
|
46
|
+
}), /* @__PURE__ */ a(i, {
|
|
45
47
|
label: e.label,
|
|
46
48
|
variant: e.variant,
|
|
47
49
|
leftIcon: e.leftIcon,
|
|
@@ -51,21 +53,21 @@ var E = ({ options: r, label: g, position: p = "left", onApply: f, showSelectAll
|
|
|
51
53
|
}, e.id);
|
|
52
54
|
})]
|
|
53
55
|
})
|
|
54
|
-
}), /* @__PURE__ */
|
|
55
|
-
className:
|
|
56
|
-
children: [/* @__PURE__ */ a(
|
|
56
|
+
}), /* @__PURE__ */ r("div", {
|
|
57
|
+
className: c("flex", "justify-center", "items-center", "gap-4", "px-6", "py-4", "border-t", "border-gray-200", "dark:border-metal-700"),
|
|
58
|
+
children: [/* @__PURE__ */ a(m, {
|
|
57
59
|
variant: "secondary",
|
|
58
60
|
appearance: "compact",
|
|
59
61
|
onClick: v,
|
|
60
62
|
children: "Reset"
|
|
61
|
-
}), /* @__PURE__ */ a(
|
|
63
|
+
}), /* @__PURE__ */ a(m, {
|
|
62
64
|
appearance: "compact",
|
|
63
|
-
onClick:
|
|
65
|
+
onClick: C,
|
|
64
66
|
children: "Apply"
|
|
65
67
|
})]
|
|
66
68
|
})]
|
|
67
69
|
});
|
|
68
70
|
};
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
G as BadgeMultiSelect
|
|
71
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFilterContext as O } from "../../contexts/filter.hook.js";
|
|
2
2
|
import { sendOpenFilterEvent as v } from "../../events/index.js";
|
|
3
3
|
import { useFilterDropdownSync as C } from "../../hooks/useFilterDropdownSync.js";
|
|
4
|
-
import { t as g } from "../../../../utils-
|
|
4
|
+
import { t as g } from "../../../../utils-DVYdP0CJ.js";
|
|
5
5
|
import { useCallback as a, useId as w, useMemo as x, useState as l } from "react";
|
|
6
6
|
var A = ({ onApply: o, countryCode: r = "US" }) => {
|
|
7
7
|
const { closeOnApply: i } = O(), s = w(), [f, e] = l(!1), [n, c] = l(), [d, p] = l(), D = x(() => d?.toLocaleDateString(g(r), {
|
package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFilterContext as F } from "../../contexts/filter.hook.js";
|
|
2
2
|
import { sendOpenFilterEvent as O } from "../../events/index.js";
|
|
3
3
|
import { useFilterDropdownSync as w } from "../../hooks/useFilterDropdownSync.js";
|
|
4
|
-
import { t as x } from "../../../../utils-
|
|
4
|
+
import { t as x } from "../../../../utils-DVYdP0CJ.js";
|
|
5
5
|
import { useCallback as a, useId as y, useMemo as I, useState as i } from "react";
|
|
6
6
|
var E = ({ defaultRange: d, onApply: n, countryCode: p = "US" }) => {
|
|
7
7
|
const { closeOnApply: l } = F(), r = y(), [g, o] = i(!1), [s, c] = i(d), [t, m] = i(), u = I(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as l } from "../../../../utils-Cx-WzRZF.js";
|
|
2
2
|
import { useFilterContext as f } from "../../contexts/filter.hook.js";
|
|
3
|
-
import { i as p, n as c, r as h, t as g } from "../../../../dist-
|
|
3
|
+
import { i as p, n as c, r as h, t as g } from "../../../../dist-B6ExqXM_2.js";
|
|
4
4
|
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
var j = ({ isOpen: t, trigger: r, triggerClassName: o, position: a = "left", contentClassName: n, children: s, onOpenChange: i }) => {
|
|
6
6
|
const { theme: m } = f();
|
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as d } from "../../../../Checkbox-B20uoUKD.js";
|
|
2
2
|
import { t as s } from "../../../../utils-Cx-WzRZF.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as m } from "../../../Button/Button.js";
|
|
4
4
|
import { t as y } from "../../../../chevron-down-DNP-OOAQ.js";
|
|
5
5
|
import { Badge as O } from "../../../Badge/Badge.js";
|
|
6
6
|
import { filterButtonIconVariants as S, filterButtonVariants as w } from "../../Filter.variants.js";
|
|
7
|
-
import { FilterDropdown as
|
|
8
|
-
import { useBadgeMultiSelect as
|
|
9
|
-
import { Fragment as j, jsx as e, jsxs as
|
|
10
|
-
var
|
|
11
|
-
const { isOpen:
|
|
12
|
-
onApply:
|
|
13
|
-
options:
|
|
7
|
+
import { FilterDropdown as B } from "../FilterDropdown/FilterDropdown.js";
|
|
8
|
+
import { useBadgeMultiSelect as A } from "../BadgeDropdown/BadgeMultiSelect.hook.js";
|
|
9
|
+
import { Fragment as j, jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
10
|
+
var E = ({ options: r, label: o, position: p = "left", onApply: h, showSelectAll: x = !0, selectAllLabel: c = "All" }) => {
|
|
11
|
+
const { isOpen: n, isAllSelected: g, selectedOptions: f, selectedCount: i, handleOpenChange: u, handleResetOptions: b, handleApplyOptions: C, handleSelectAll: k, handleSelectOption: N } = A({
|
|
12
|
+
onApply: h,
|
|
13
|
+
options: r
|
|
14
14
|
});
|
|
15
|
-
return
|
|
16
|
-
isOpen:
|
|
17
|
-
position:
|
|
15
|
+
return r.length === 0 ? null : /* @__PURE__ */ t(B, {
|
|
16
|
+
isOpen: n,
|
|
17
|
+
position: p,
|
|
18
18
|
contentClassName: "border border-gray-200",
|
|
19
|
-
triggerClassName: s(w(), { "text-slate-700 dark:text-metal-50":
|
|
20
|
-
trigger: /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ e(y, { className: s(S(), { "rotate-180 text-blue-600 dark:text-aurora-500":
|
|
19
|
+
triggerClassName: s(w(), { "text-slate-700 dark:text-metal-50": n }),
|
|
20
|
+
trigger: /* @__PURE__ */ t(j, { children: [
|
|
21
|
+
o,
|
|
22
|
+
i.length > 0 && /* @__PURE__ */ e(O, { label: i.length.toString() }),
|
|
23
|
+
/* @__PURE__ */ e(y, { className: s(S(), { "rotate-180 text-blue-600 dark:text-aurora-500": n }) })
|
|
24
24
|
] }),
|
|
25
|
-
onOpenChange:
|
|
25
|
+
onOpenChange: u,
|
|
26
26
|
children: [/* @__PURE__ */ e("div", {
|
|
27
27
|
className: "px-6 py-4",
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ t("div", {
|
|
29
29
|
className: "flex flex-col gap-2",
|
|
30
|
-
children: [x && /* @__PURE__ */
|
|
30
|
+
children: [x && /* @__PURE__ */ t("div", {
|
|
31
31
|
className: "flex gap-4",
|
|
32
|
-
children: [/* @__PURE__ */ e(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
children: [/* @__PURE__ */ e(d, {
|
|
33
|
+
checked: g,
|
|
34
|
+
"aria-label": c,
|
|
35
|
+
onChange: (a) => k(r, a)
|
|
36
|
+
}), /* @__PURE__ */ e("span", {
|
|
36
37
|
className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap",
|
|
37
|
-
children:
|
|
38
|
+
children: c
|
|
38
39
|
})]
|
|
39
|
-
}),
|
|
40
|
-
const
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
}), r.map((a) => {
|
|
41
|
+
const v = f.some((l) => l.id === a.id && !l.isRemoved);
|
|
42
|
+
return /* @__PURE__ */ t("div", {
|
|
42
43
|
className: "flex gap-4",
|
|
43
|
-
children: [/* @__PURE__ */ e(
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
children: [/* @__PURE__ */ e(d, {
|
|
45
|
+
checked: v,
|
|
46
|
+
"aria-label": a.label,
|
|
47
|
+
"data-label": a.id,
|
|
48
|
+
onChange: (l) => N(a, l)
|
|
49
|
+
}), /* @__PURE__ */ e("span", {
|
|
48
50
|
className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap",
|
|
49
|
-
children:
|
|
51
|
+
children: a.label
|
|
50
52
|
})]
|
|
51
|
-
},
|
|
53
|
+
}, a.id);
|
|
52
54
|
})]
|
|
53
55
|
})
|
|
54
|
-
}), /* @__PURE__ */
|
|
56
|
+
}), /* @__PURE__ */ t("div", {
|
|
55
57
|
className: s("flex", "justify-center", "items-center", "gap-4", "px-6", "py-4", "border-t", "border-gray-200", "dark:border-metal-700"),
|
|
56
|
-
children: [/* @__PURE__ */ e(
|
|
58
|
+
children: [/* @__PURE__ */ e(m, {
|
|
57
59
|
variant: "secondary",
|
|
58
60
|
appearance: "compact",
|
|
59
61
|
onClick: b,
|
|
60
62
|
children: "Reset"
|
|
61
|
-
}), /* @__PURE__ */ e(
|
|
63
|
+
}), /* @__PURE__ */ e(m, {
|
|
62
64
|
appearance: "compact",
|
|
63
|
-
onClick:
|
|
65
|
+
onClick: C,
|
|
64
66
|
children: "Apply"
|
|
65
67
|
})]
|
|
66
68
|
})]
|
|
67
69
|
});
|
|
68
70
|
};
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
E as TextMultiSelect
|
|
71
73
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as l, t as _ } from "../../utils-Cx-WzRZF.js";
|
|
2
2
|
import { Typography as z } from "../Typography/Typography.js";
|
|
3
|
-
import { a as P, c as j, d as D, i as E, l as F, n as H, o as N, s as O, u as M } from "../../dist-
|
|
3
|
+
import { a as P, c as j, d as D, i as E, l as F, n as H, o as N, s as O, u as M } from "../../dist-iUAHw-3y.js";
|
|
4
4
|
import { useMemo as h } from "react";
|
|
5
5
|
import { jsx as p, jsxs as V } from "react/jsx-runtime";
|
|
6
6
|
P.register(E, F, M, O, N, j, D);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as o } from "./Body/Body.js";
|
|
2
2
|
import { Footer as p } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as e } from "./Header/Header.js";
|
|
4
|
-
import { n as i } from "../../../Modal-
|
|
4
|
+
import { n as i } from "../../../Modal-CkAf9UY7.js";
|
|
5
5
|
export {
|
|
6
6
|
o as Body,
|
|
7
7
|
p as Footer,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useClickOutside as
|
|
2
|
-
import { useMultiSelectDropdown as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
var
|
|
5
|
-
const o =
|
|
6
|
-
return l(o, a(() => {
|
|
1
|
+
import { useClickOutside as s } from "../../../hooks/useClickOutside.js";
|
|
2
|
+
import { useMultiSelectDropdown as a } from "../contexts/MultiSelectDropdown.hook.js";
|
|
3
|
+
import { useCallback as u, useEffect as c, useRef as d } from "react";
|
|
4
|
+
var w = () => {
|
|
5
|
+
const o = d(null), { onOpen: e } = a(), n = u(() => {
|
|
7
6
|
e(!1);
|
|
8
|
-
}, [e])
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
}, [e]);
|
|
8
|
+
return s(o, n), c(() => {
|
|
9
|
+
const t = new AbortController(), r = (l) => {
|
|
10
|
+
l.key === "Escape" && e(!1);
|
|
11
11
|
};
|
|
12
|
-
return document.addEventListener("keydown",
|
|
12
|
+
return document.addEventListener("keydown", r, { signal: t.signal }), () => {
|
|
13
13
|
t.abort();
|
|
14
14
|
};
|
|
15
15
|
}, [e]), {
|
|
@@ -20,5 +20,5 @@ var m = () => {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
w as useMultiSelectDropdown
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as p } from "../../phone-number.provider-
|
|
2
|
-
import { t } from "../../Wrapper-
|
|
1
|
+
import { t as p } from "../../phone-number.provider-Dkq_p1Gi.js";
|
|
2
|
+
import { t } from "../../Wrapper-B8Ja3k4j.js";
|
|
3
3
|
import { forwardRef as f } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
var h = f(({ defaultCountryCode: o = "US", ...m }, e) => /* @__PURE__ */ r(p, {
|
package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as i } from "../../../../Input-
|
|
1
|
+
import { t as i } from "../../../../Input-wp-rsCmX.js";
|
|
2
2
|
import { t as c } from "../../../../utils-Cx-WzRZF.js";
|
|
3
|
-
import { t as d } from "../../../../FlagSelectorList-
|
|
3
|
+
import { t as d } from "../../../../FlagSelectorList-CnJjnsp6.js";
|
|
4
4
|
import { usePhoneNumberContext as p } from "../../contexts/phone-number.hook.js";
|
|
5
5
|
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
6
6
|
var v = ({ placeholder: e = "Search", showFlagOnSearch: a, showInputFilter: o, showNameOnSearch: t, showPlaceHolder: m = !0 }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as f } from "../../../../rolldown-runtime-
|
|
2
|
-
import { a as u, i as b, n as m, o as p } from "../../../../dist-
|
|
3
|
-
import { t as h } from "../../../../debounce-
|
|
1
|
+
import { o as f } from "../../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { a as u, i as b, n as m, o as p } from "../../../../dist-oJzmvhAb.js";
|
|
3
|
+
import { t as h } from "../../../../debounce-BdyZeJQk.js";
|
|
4
4
|
import { useCallback as w, useEffect as i, useRef as g, useState as v } from "react";
|
|
5
5
|
import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
var k = /* @__PURE__ */ f(h(), 1), N = ({ text: r, prefix: n }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../../FlagSelectorList-
|
|
2
|
-
import { t as p } from "../../../Wrapper-
|
|
1
|
+
import { t } from "../../../FlagSelectorList-CnJjnsp6.js";
|
|
2
|
+
import { t as p } from "../../../Wrapper-B8Ja3k4j.js";
|
|
3
3
|
export {
|
|
4
4
|
t as FlagSelectorList,
|
|
5
5
|
p as Wrapper
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PhoneNumberContext as r } from "./phone-number.context.js";
|
|
2
|
-
import { t as m } from "../../../phone-number.provider-
|
|
2
|
+
import { t as m } from "../../../phone-number.provider-Dkq_p1Gi.js";
|
|
3
3
|
import { usePhoneNumberContext as n } from "./phone-number.hook.js";
|
|
4
4
|
export {
|
|
5
5
|
r as PhoneNumberContext,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { jsx as
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
data:
|
|
2
|
+
import { a as A, r as T, t as j } from "../../dist-iUAHw-3y.js";
|
|
3
|
+
import { useMemo as i } from "react";
|
|
4
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
5
|
+
A.register(T);
|
|
6
|
+
var G = ({ values: d, colors: m = [e("--color-neutral-600"), e("--color-emerald-400")], borderColors: p = [e("--color-white"), e("--color-white")], borderWidth: h = 0, cutoutPercentage: x = 80, title: n, subtitle: s, titleFontSize: a = 16, subtitleFontSize: t = 14, titleColor: g = e("--color-gray-900"), subtitleColor: w = e("--color-gray-500"), titleFontWeight: u = "bold", subtitleFontWeight: y = "normal", redraw: $ = !0 }) => {
|
|
7
|
+
const v = i(() => ({ datasets: [{
|
|
8
|
+
data: d,
|
|
9
9
|
backgroundColor: m,
|
|
10
10
|
borderWidth: h,
|
|
11
11
|
borderColor: p
|
|
@@ -13,40 +13,43 @@ var E = ({ values: c, colors: m = [e("--color-neutral-600"), e("--color-emerald-
|
|
|
13
13
|
p,
|
|
14
14
|
h,
|
|
15
15
|
m,
|
|
16
|
-
|
|
17
|
-
]),
|
|
18
|
-
options: d(() => ({
|
|
16
|
+
d
|
|
17
|
+
]), C = i(() => ({
|
|
19
18
|
plugins: { legend: { display: !1 } },
|
|
20
19
|
cutout: `${x}%`,
|
|
21
20
|
hover: { mode: null }
|
|
22
|
-
}), [x]),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return a && t.push({
|
|
21
|
+
}), [x]), D = i(() => {
|
|
22
|
+
const l = [];
|
|
23
|
+
return n && l.push({
|
|
26
24
|
id: "titleCenter",
|
|
27
25
|
beforeDraw(o) {
|
|
28
|
-
const r = o.ctx,
|
|
29
|
-
r.restore(), r.font = `${u} ${
|
|
26
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
27
|
+
r.restore(), r.font = `${u} ${a}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(n, c / 2, f / 2 - (s ? a / 2 : 0)), r.save();
|
|
30
28
|
}
|
|
31
|
-
}), s &&
|
|
29
|
+
}), s && l.push({
|
|
32
30
|
id: "subtitleCenter",
|
|
33
31
|
beforeDraw(o) {
|
|
34
|
-
const r = o.ctx,
|
|
35
|
-
r.restore(), r.font = `${y} ${
|
|
32
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
33
|
+
r.restore(), r.font = `${y} ${t}px sans-serif`, r.fillStyle = w, r.fillText(s, c / 2, f / 2 + t / 2), r.save();
|
|
36
34
|
}
|
|
37
|
-
}),
|
|
35
|
+
}), l;
|
|
38
36
|
}, [
|
|
39
37
|
s,
|
|
40
38
|
w,
|
|
41
|
-
|
|
39
|
+
t,
|
|
42
40
|
y,
|
|
43
|
-
a,
|
|
44
|
-
g,
|
|
45
41
|
n,
|
|
42
|
+
g,
|
|
43
|
+
a,
|
|
46
44
|
u
|
|
47
|
-
])
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ k(j, {
|
|
47
|
+
data: v,
|
|
48
|
+
options: C,
|
|
49
|
+
plugins: D,
|
|
50
|
+
redraw: $
|
|
51
|
+
});
|
|
52
|
+
};
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
G as PieChart
|
|
52
55
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { i as v, n as V, r as i, t as S } from "../../dist-
|
|
2
|
+
import { i as v, n as V, r as i, t as S } from "../../dist-CqNOgbfR.js";
|
|
3
3
|
import { rangeOutsideVariants as R, rangeVariants as j, thumbVariants as c, trackVariants as w } from "./Range.variants.js";
|
|
4
4
|
import { forwardRef as y, useEffect as b, useImperativeHandle as k, useRef as C, useState as T } from "react";
|
|
5
5
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
import { t as a } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { SelectProvider as
|
|
4
|
-
import { n as
|
|
2
|
+
import { t as v } from "../../Wrapper-R8fik3ah.js";
|
|
3
|
+
import { SelectProvider as N } from "./contexts/select.provider.js";
|
|
4
|
+
import { n as O } from "../../AdditionalOptions-D0BAS2HG.js";
|
|
5
5
|
import { forwardRef as g, useMemo as j } from "react";
|
|
6
6
|
import { jsx as r, jsxs as k } from "react/jsx-runtime";
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
children:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
7
|
+
var W = g(({ error: e, errorClassName: m, helperText: s, helperTextClassName: n, highlightSearch: p, mainWrapperClassName: d, name: l, value: f, options: t, onChange: o, onBlur: i, ...c }, x) => {
|
|
8
|
+
const u = j(() => t.length ? O(t.at(0)) ? t.flatMap((h) => h.options) : t : [], [t]);
|
|
9
|
+
return /* @__PURE__ */ r(N, {
|
|
10
|
+
highlightSearch: p,
|
|
11
|
+
name: l,
|
|
12
|
+
value: f,
|
|
13
|
+
options: u,
|
|
14
|
+
onBlur: i,
|
|
15
|
+
onChange: o,
|
|
16
|
+
children: /* @__PURE__ */ k("div", {
|
|
17
|
+
className: a("relative w-full", d),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r(v, {
|
|
20
|
+
error: e,
|
|
21
|
+
name: l,
|
|
22
|
+
ref: x,
|
|
23
|
+
onBlur: i,
|
|
24
|
+
groupedOptions: t,
|
|
25
|
+
...c
|
|
26
|
+
}),
|
|
27
|
+
e ? /* @__PURE__ */ r("span", {
|
|
28
|
+
className: a("text-xs text-red-700 dark:text-red-400", m),
|
|
29
|
+
children: e
|
|
30
|
+
}) : null,
|
|
31
|
+
!e && s ? /* @__PURE__ */ r("span", {
|
|
32
|
+
className: a("text-xs text-slate-600 dark:text-slate-200", n),
|
|
33
|
+
children: s
|
|
34
|
+
}) : null
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
});
|
|
36
39
|
export {
|
|
37
|
-
|
|
40
|
+
W as Select
|
|
38
41
|
};
|