@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.51
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/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
- package/dist/DatePicker.css +1 -1
- package/dist/Modal-CjC-CIJ8.js +99 -0
- package/dist/assets/icons/index.js +7 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/chevron-up-DEfvgPCw.js +54 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +81 -53
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +41 -44
- package/dist/components/Badge/Badge.variants.js +52 -13
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +108 -98
- package/dist/components/Card/Card.variants.js +7 -12
- package/dist/components/Checkbox/Checkbox.js +108 -105
- package/dist/components/Checkbox/Checkbox.variants.js +34 -7
- package/dist/components/Command/Command.js +2 -2
- 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 +2 -2
- 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/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/Datepicker/DatePicker.js +1587 -1353
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/Filter.variants.js +8 -7
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
- package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +221 -0
- package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
- package/dist/components/Input/Input.js +185 -118
- package/dist/components/Input/Input.variants.js +24 -19
- package/dist/components/Loading/Loading.js +1 -7
- package/dist/components/Modal/Modal.js +2 -2
- 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 +4 -4
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
- package/dist/components/MultiSelectDropdown/components/index.js +8 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
- package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +463 -482
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +10 -10
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
- package/dist/components/Select/components/List/List.js +172 -0
- package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
- package/dist/components/Select/components/ListItem/ListItem.js +117 -0
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
- package/dist/components/Select/components/Wrapper.js +226 -0
- package/dist/components/Select/constants/index.js +4 -0
- package/dist/components/Select/constants/pagination.js +4 -0
- package/dist/components/Select/contexts/index.js +6 -0
- package/dist/components/Select/contexts/select.context.js +36 -0
- package/dist/components/Select/contexts/select.hook.js +11 -0
- package/dist/components/Select/contexts/select.provider.js +58 -0
- package/dist/components/Select/hooks/useNavigationList.js +50 -0
- package/dist/components/Select/hooks/useSelect.js +103 -0
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +156 -129
- package/dist/components/Switch/Switch.variants.js +19 -10
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +4 -3
- 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 +1 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +26 -14
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
- package/dist/components/Toast/Toast.js +283 -256
- package/dist/components/Toast/Toast.variants.js +37 -24
- package/dist/components/Tooltip/Tooltip.js +15 -14
- package/dist/components/Tooltip/Tooltip.variants.js +5 -4
- package/dist/components/Typography/Typography.js +23 -25
- package/dist/components/Typography/Typography.variants.js +55 -52
- package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
- package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
- package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +8 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
- package/dist/components/index.js +94 -86
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
- package/dist/index-BG8O18ZY.js +93 -0
- package/dist/index-BKjcReYh.js +55 -0
- package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
- package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
- package/dist/index-BmVmDQGH.js +662 -0
- package/dist/index-BvoZGpli.js +60 -0
- package/dist/index-Byr10W8m.js +1873 -0
- package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
- package/dist/index-CeZcoQDw.js +479 -0
- package/dist/index-D6KzX_ef.js +135 -0
- package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
- package/dist/index-DKfEnhKr.js +200 -0
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
- package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
- package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
- package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
- package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
- package/dist/index.d.ts +2142 -99
- package/dist/index.js +116 -106
- package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
- package/dist/loader-juvMSJ9L.js +5 -0
- package/dist/package.json +43 -33
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +194 -168
- package/dist/ui/theme.css +27 -0
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/x-BXShoIAM.js +8 -0
- package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
- package/package.json +43 -33
- package/dist/Modal-D-NOEWMX.js +0 -98
- package/dist/chevron-down-MZvQoT2F.js +0 -11
- package/dist/chevron-right-VYBOBhRt.js +0 -19
- package/dist/components/Dropdown/Dropdown.js +0 -42
- package/dist/components/Dropdown/components/List/List.js +0 -79
- package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
- package/dist/components/Dropdown/components/Wrapper.js +0 -205
- package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
- package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
- package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
- package/dist/components/Dropdown/contexts/index.js +0 -6
- package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
- package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/index-BITvcJAz.js +0 -423
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DBbEcSUG.js +0 -31
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-DzIBBMjs.js +0 -436
- package/dist/index-os7vysFS.js +0 -131
- /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
- /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { jsxs as f, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { R as j } from "../../index-BKjcReYh.js";
|
|
3
|
+
import p, { forwardRef as g, useId as $, useCallback as k } from "react";
|
|
4
|
+
import { cn as d } from "../../utils/index.js";
|
|
5
|
+
import { labelVariants as T, buttonVariants as N, counterVariants as W } from "./Counter.variants.js";
|
|
6
|
+
import { Typography as V } from "../Typography/Typography.js";
|
|
7
|
+
import { P as a } from "../../index-BOE_3f_Z.js";
|
|
8
|
+
function v() {
|
|
9
|
+
return v = Object.assign || function(e) {
|
|
10
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
11
|
+
var r = arguments[o];
|
|
12
|
+
for (var t in r)
|
|
13
|
+
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}, v.apply(this, arguments);
|
|
17
|
+
}
|
|
18
|
+
function M(e, o) {
|
|
19
|
+
if (e == null) return {};
|
|
20
|
+
var r = R(e, o), t, n;
|
|
21
|
+
if (Object.getOwnPropertySymbols) {
|
|
22
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
23
|
+
for (n = 0; n < i.length; n++)
|
|
24
|
+
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
25
|
+
}
|
|
26
|
+
return r;
|
|
27
|
+
}
|
|
28
|
+
function R(e, o) {
|
|
29
|
+
if (e == null) return {};
|
|
30
|
+
var r = {}, t = Object.keys(e), n, i;
|
|
31
|
+
for (i = 0; i < t.length; i++)
|
|
32
|
+
n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
var O = g(function(e, o) {
|
|
36
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, l = M(e, ["color", "size"]);
|
|
37
|
+
return /* @__PURE__ */ p.createElement("svg", v({
|
|
38
|
+
ref: o,
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
width: i,
|
|
41
|
+
height: i,
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
fill: "none",
|
|
44
|
+
stroke: t,
|
|
45
|
+
strokeWidth: "2",
|
|
46
|
+
strokeLinecap: "round",
|
|
47
|
+
strokeLinejoin: "round"
|
|
48
|
+
}, l), /* @__PURE__ */ p.createElement("line", {
|
|
49
|
+
x1: "5",
|
|
50
|
+
y1: "12",
|
|
51
|
+
x2: "19",
|
|
52
|
+
y2: "12"
|
|
53
|
+
}));
|
|
54
|
+
});
|
|
55
|
+
O.propTypes = {
|
|
56
|
+
color: a.string,
|
|
57
|
+
size: a.oneOfType([a.string, a.number])
|
|
58
|
+
};
|
|
59
|
+
O.displayName = "Minus";
|
|
60
|
+
function b() {
|
|
61
|
+
return b = Object.assign || function(e) {
|
|
62
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
63
|
+
var r = arguments[o];
|
|
64
|
+
for (var t in r)
|
|
65
|
+
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
66
|
+
}
|
|
67
|
+
return e;
|
|
68
|
+
}, b.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
function C(e, o) {
|
|
71
|
+
if (e == null) return {};
|
|
72
|
+
var r = B(e, o), t, n;
|
|
73
|
+
if (Object.getOwnPropertySymbols) {
|
|
74
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
75
|
+
for (n = 0; n < i.length; n++)
|
|
76
|
+
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
77
|
+
}
|
|
78
|
+
return r;
|
|
79
|
+
}
|
|
80
|
+
function B(e, o) {
|
|
81
|
+
if (e == null) return {};
|
|
82
|
+
var r = {}, t = Object.keys(e), n, i;
|
|
83
|
+
for (i = 0; i < t.length; i++)
|
|
84
|
+
n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
85
|
+
return r;
|
|
86
|
+
}
|
|
87
|
+
var w = g(function(e, o) {
|
|
88
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, l = C(e, ["color", "size"]);
|
|
89
|
+
return /* @__PURE__ */ p.createElement("svg", b({
|
|
90
|
+
ref: o,
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
width: i,
|
|
93
|
+
height: i,
|
|
94
|
+
viewBox: "0 0 24 24",
|
|
95
|
+
fill: "none",
|
|
96
|
+
stroke: t,
|
|
97
|
+
strokeWidth: "2",
|
|
98
|
+
strokeLinecap: "round",
|
|
99
|
+
strokeLinejoin: "round"
|
|
100
|
+
}, l), /* @__PURE__ */ p.createElement("line", {
|
|
101
|
+
x1: "12",
|
|
102
|
+
y1: "5",
|
|
103
|
+
x2: "12",
|
|
104
|
+
y2: "19"
|
|
105
|
+
}), /* @__PURE__ */ p.createElement("line", {
|
|
106
|
+
x1: "5",
|
|
107
|
+
y1: "12",
|
|
108
|
+
x2: "19",
|
|
109
|
+
y2: "12"
|
|
110
|
+
}));
|
|
111
|
+
});
|
|
112
|
+
w.propTypes = {
|
|
113
|
+
color: a.string,
|
|
114
|
+
size: a.oneOfType([a.string, a.number])
|
|
115
|
+
};
|
|
116
|
+
w.displayName = "Plus";
|
|
117
|
+
const J = g(
|
|
118
|
+
({
|
|
119
|
+
canDecrement: e = !0,
|
|
120
|
+
canIncrement: o = !0,
|
|
121
|
+
className: r,
|
|
122
|
+
decrementButtonClassName: t,
|
|
123
|
+
incrementButtonClassName: n,
|
|
124
|
+
isRequired: i,
|
|
125
|
+
label: l,
|
|
126
|
+
max: y = -1 / 0,
|
|
127
|
+
min: h = 1 / 0,
|
|
128
|
+
name: x,
|
|
129
|
+
theme: P,
|
|
130
|
+
value: z,
|
|
131
|
+
onChange: m
|
|
132
|
+
}, I) => {
|
|
133
|
+
const _ = $(), s = z ?? 0, E = k(() => {
|
|
134
|
+
let c = 0;
|
|
135
|
+
h === 1 / 0 ? c = s - 1 : c = Math.max(h, s - 1), m?.({ target: { value: c } });
|
|
136
|
+
}, [s, h, m]), L = k(() => {
|
|
137
|
+
let c = 0;
|
|
138
|
+
y === -1 / 0 ? c = s + 1 : c = Math.min(y, s + 1), m?.({ target: { value: c } });
|
|
139
|
+
}, [s, y, m]);
|
|
140
|
+
return /* @__PURE__ */ f("div", { className: "flex flex-col gap-1", "data-theme": P, children: [
|
|
141
|
+
l ? /* @__PURE__ */ f(
|
|
142
|
+
V,
|
|
143
|
+
{
|
|
144
|
+
component: "label",
|
|
145
|
+
htmlFor: x ?? _,
|
|
146
|
+
variant: "labelLarge",
|
|
147
|
+
className: d(T()),
|
|
148
|
+
children: [
|
|
149
|
+
"Number of nodes",
|
|
150
|
+
" ",
|
|
151
|
+
i && /* @__PURE__ */ u("span", { className: "text-red-600 dark:text-red-500", children: "*" })
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
) : null,
|
|
155
|
+
/* @__PURE__ */ f("div", { className: "flex items-center", role: "presentation", children: [
|
|
156
|
+
/* @__PURE__ */ f(
|
|
157
|
+
"button",
|
|
158
|
+
{
|
|
159
|
+
type: "button",
|
|
160
|
+
onClick: E,
|
|
161
|
+
className: d(
|
|
162
|
+
N({
|
|
163
|
+
button: "rigth",
|
|
164
|
+
className: t
|
|
165
|
+
})
|
|
166
|
+
),
|
|
167
|
+
disabled: !e,
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ u(O, { className: "w-4 h-4" }),
|
|
170
|
+
/* @__PURE__ */ u(j, { children: "Decrement" })
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ u(
|
|
175
|
+
"input",
|
|
176
|
+
{
|
|
177
|
+
ref: I,
|
|
178
|
+
type: "number",
|
|
179
|
+
value: s,
|
|
180
|
+
name: x,
|
|
181
|
+
className: d(W({ className: r })),
|
|
182
|
+
readOnly: !0,
|
|
183
|
+
"aria-label": typeof l == "string" ? l : "number input"
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ f(
|
|
187
|
+
"button",
|
|
188
|
+
{
|
|
189
|
+
type: "button",
|
|
190
|
+
onClick: L,
|
|
191
|
+
className: d(
|
|
192
|
+
N({
|
|
193
|
+
button: "left",
|
|
194
|
+
className: n
|
|
195
|
+
})
|
|
196
|
+
),
|
|
197
|
+
disabled: !o,
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ u(w, { className: "w-4 h-4" }),
|
|
200
|
+
/* @__PURE__ */ u(j, { children: "Increment" })
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
] })
|
|
205
|
+
] });
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
export {
|
|
209
|
+
J as Counter
|
|
210
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const t = e([
|
|
3
|
+
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
4
|
+
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
5
|
+
"[-moz-appearance:textfield]",
|
|
6
|
+
"appearance-none",
|
|
7
|
+
"border",
|
|
8
|
+
"border-x-0",
|
|
9
|
+
"focus-visible:outline-none",
|
|
10
|
+
"focus-visible:ring-transparent",
|
|
11
|
+
"h-9",
|
|
12
|
+
"max-w-16",
|
|
13
|
+
"text-right",
|
|
14
|
+
"px-3",
|
|
15
|
+
"border-gray-300",
|
|
16
|
+
"text-slate-800",
|
|
17
|
+
"bg-white",
|
|
18
|
+
"dark:bg-metal-800",
|
|
19
|
+
"dark:border-metal-700",
|
|
20
|
+
"dark:text-metal-50"
|
|
21
|
+
]), r = e(
|
|
22
|
+
[
|
|
23
|
+
"h-9",
|
|
24
|
+
"w-9",
|
|
25
|
+
"flex",
|
|
26
|
+
"items-center",
|
|
27
|
+
"justify-center",
|
|
28
|
+
"border",
|
|
29
|
+
"text-slate-500",
|
|
30
|
+
"border-gray-300",
|
|
31
|
+
"bg-white",
|
|
32
|
+
"cursor-pointer",
|
|
33
|
+
"hover:bg-aurora-50",
|
|
34
|
+
"hover:text-slate-600",
|
|
35
|
+
"disabled:hover:bg-white",
|
|
36
|
+
"disabled:bg-white",
|
|
37
|
+
"disabled:text-slate-400",
|
|
38
|
+
"dark:bg-metal-800",
|
|
39
|
+
"dark:border-metal-700",
|
|
40
|
+
"dark:text-aurora-500",
|
|
41
|
+
"dark:hover:bg-aurora-900",
|
|
42
|
+
"dark:hover:text-aurora-500",
|
|
43
|
+
"dark:disabled:text-metal-400",
|
|
44
|
+
"dark:disabled:hover:bg-metal-800",
|
|
45
|
+
"dark:disabled:bg-metal-800",
|
|
46
|
+
"disabled:cursor-not-allowed"
|
|
47
|
+
],
|
|
48
|
+
{
|
|
49
|
+
variants: {
|
|
50
|
+
button: {
|
|
51
|
+
left: ["rounded-e"],
|
|
52
|
+
rigth: ["rounded-s"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
), o = e(["cursor-pointer"], {
|
|
57
|
+
variants: {
|
|
58
|
+
variant: {
|
|
59
|
+
default: ""
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: {
|
|
63
|
+
variant: "default"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
r as buttonVariants,
|
|
68
|
+
t as counterVariants,
|
|
69
|
+
o as labelVariants
|
|
70
|
+
};
|