@konstructio/ui 0.1.2-alpha.28 → 0.1.2-alpha.29
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/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +124 -124
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/components/List/List.js +45 -39
- package/dist/components/Dropdown/components/Wrapper.js +81 -80
- package/dist/components/Dropdown/hooks/useDropdown.js +21 -21
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Input/Input.variants.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +27 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +621 -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 +6137 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Typography/Typography.variants.js +18 -23
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +5 -5
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1886
- package/dist/components/index.js +72 -70
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index.d.ts +32 -13
- package/dist/index.js +82 -80
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/package.json +7 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { l as t } from "../../../libphonenumber-_7ZyKWA7.js";
|
|
2
|
+
const e = t.PhoneNumberUtil.getInstance(), m = (r) => {
|
|
3
|
+
const o = r.code, n = e.getExampleNumber(o);
|
|
4
|
+
if (!n)
|
|
5
|
+
return;
|
|
6
|
+
const a = e.format(n, t.PhoneNumberFormat.NATIONAL), c = `+${e.getCountryCodeForRegion(o)}`, l = a.replace(/\d/g, "_");
|
|
7
|
+
return `${c} ${l}`;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
m as getPhoneMask
|
|
11
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as a } from "../../index-D29mdTf5.js";
|
|
2
2
|
const r = a([
|
|
3
|
-
"w-
|
|
4
|
-
"h-
|
|
3
|
+
"w-10",
|
|
4
|
+
"h-5",
|
|
5
5
|
"flex",
|
|
6
6
|
"items-center",
|
|
7
7
|
"rounded-full",
|
|
@@ -17,8 +17,8 @@ const r = a([
|
|
|
17
17
|
"kubefirst:bg-kubefirst-primary"
|
|
18
18
|
]), e = a([
|
|
19
19
|
"block",
|
|
20
|
-
"w-
|
|
21
|
-
"h-
|
|
20
|
+
"w-4",
|
|
21
|
+
"h-4",
|
|
22
22
|
"bg-white",
|
|
23
23
|
"dark:bg-gray-400",
|
|
24
24
|
"dark:data-[state=checked]:bg-white",
|
|
@@ -35,7 +35,7 @@ const V = ({
|
|
|
35
35
|
ref: l,
|
|
36
36
|
className: m(
|
|
37
37
|
"w-max text-slate-800 text-sm flex flex-col gap-2",
|
|
38
|
-
g === "12" ? "w-
|
|
38
|
+
g === "12" ? "w-52" : "w-[140px]"
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
41
|
i ? /* @__PURE__ */ t("label", { htmlFor: s, className: "text-slate-500 font-medium", children: [
|
|
@@ -1,51 +1,46 @@
|
|
|
1
1
|
import { c as t } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
2
|
+
const a = t([], {
|
|
3
3
|
variants: {
|
|
4
4
|
variant: {
|
|
5
|
-
h1: ["text-[57px]", "leading-
|
|
5
|
+
h1: ["text-[57px]", "leading-16"],
|
|
6
6
|
h2: ["text-[45px]", "leading-[52px]"],
|
|
7
|
-
h3: ["text-
|
|
8
|
-
h4: ["text-[32px]", "leading-
|
|
9
|
-
h5: ["text-[28px]", "leading-
|
|
10
|
-
h6: ["text-
|
|
11
|
-
subtitle1: ["text-[22px]", "leading-
|
|
12
|
-
subtitle2: [
|
|
13
|
-
"text-[16px]",
|
|
14
|
-
"font-medium",
|
|
15
|
-
"leading-[24px]",
|
|
16
|
-
"tracking-[0.15px]"
|
|
17
|
-
],
|
|
7
|
+
h3: ["text-4xl", "leading-11"],
|
|
8
|
+
h4: ["text-[32px]", "leading-10"],
|
|
9
|
+
h5: ["text-[28px]", "leading-9"],
|
|
10
|
+
h6: ["text-2xl", "font-medium", "leading-8", "tracking-[0.15px]"],
|
|
11
|
+
subtitle1: ["text-[22px]", "leading-7"],
|
|
12
|
+
subtitle2: ["text-sm", "font-medium", "leading-6", "tracking-[0.15px]"],
|
|
18
13
|
subtitle3: [
|
|
19
14
|
"text-[14px]",
|
|
20
15
|
"font-medium",
|
|
21
|
-
"leading-
|
|
16
|
+
"leading-5",
|
|
22
17
|
"tracking-[0.1px]"
|
|
23
18
|
],
|
|
24
|
-
labelLarge: ["text-
|
|
19
|
+
labelLarge: ["text-sm", "leading-5", "tracking-[0.1px]"],
|
|
25
20
|
labelMedium: [
|
|
26
21
|
"text-[12px]",
|
|
27
22
|
"font-medium",
|
|
28
|
-
"leading-
|
|
23
|
+
"leading-4",
|
|
29
24
|
"tracking-[0.5px]",
|
|
30
25
|
"uppercase"
|
|
31
26
|
],
|
|
32
27
|
labelSmall: [
|
|
33
28
|
"text-[11px]",
|
|
34
29
|
"font-medium",
|
|
35
|
-
"leading-
|
|
30
|
+
"leading-4",
|
|
36
31
|
"tracking-[0.5px]",
|
|
37
32
|
"uppercase"
|
|
38
33
|
],
|
|
39
34
|
buttonSmall: [
|
|
40
35
|
"text-[14px]",
|
|
41
36
|
"font-semibold",
|
|
42
|
-
"leading-
|
|
37
|
+
"leading-5",
|
|
43
38
|
"tracking-[0.25px]"
|
|
44
39
|
],
|
|
45
|
-
body1: ["text-
|
|
46
|
-
body2: ["text-
|
|
47
|
-
body3: ["text-
|
|
48
|
-
tooltip: ["text-
|
|
40
|
+
body1: ["text-base", "leading-6", "tracking-[0.5px]"],
|
|
41
|
+
body2: ["text-sm", "leading-5", "tracking-[0.25px]"],
|
|
42
|
+
body3: ["text-xs", "leading-4", "tracking-[0.4px]"],
|
|
43
|
+
tooltip: ["text-sm", "leading-[22px]"]
|
|
49
44
|
}
|
|
50
45
|
},
|
|
51
46
|
defaultVariants: {
|
|
@@ -53,5 +48,5 @@ const e = t([], {
|
|
|
53
48
|
}
|
|
54
49
|
});
|
|
55
50
|
export {
|
|
56
|
-
|
|
51
|
+
a as typographyVariants
|
|
57
52
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as l, useCallback as
|
|
3
|
-
import { Input as
|
|
2
|
+
import { useRef as l, useCallback as c } from "react";
|
|
3
|
+
import { Input as p } from "../../../Input/Input.js";
|
|
4
4
|
import { useTableContext as f } from "../../contexts/table.hook.js";
|
|
5
5
|
const h = () => {
|
|
6
|
-
const r = l(null), { totalPages: e, handlePage: o } = f(), m =
|
|
6
|
+
const r = l(null), { totalPages: e, handlePage: o } = f(), m = c(
|
|
7
7
|
(n) => {
|
|
8
8
|
n.preventDefault();
|
|
9
9
|
const s = new FormData(n.currentTarget), a = Number(s.get("jump-to")), u = (a < e ? a : e) || 1;
|
|
@@ -21,10 +21,10 @@ const h = () => {
|
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ t("span", { className: "min-w-fit", children: "Jump to" }),
|
|
23
23
|
/* @__PURE__ */ t(
|
|
24
|
-
|
|
24
|
+
p,
|
|
25
25
|
{
|
|
26
26
|
type: "number",
|
|
27
|
-
className: "w-
|
|
27
|
+
className: "w-18 text-xs no-spinner",
|
|
28
28
|
name: "jump-to",
|
|
29
29
|
min: 1,
|
|
30
30
|
max: e,
|