@konstructio/ui 0.1.2-alpha.27 → 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.
Files changed (43) hide show
  1. package/dist/DatePicker.css +1 -1
  2. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  3. package/dist/components/Badge/Badge.variants.js +1 -1
  4. package/dist/components/Card/Card.variants.js +5 -9
  5. package/dist/components/Datepicker/DatePicker.js +1250 -1190
  6. package/dist/components/Divider/Divider.variants.js +1 -1
  7. package/dist/components/Dropdown/components/List/List.js +45 -39
  8. package/dist/components/Dropdown/components/Wrapper.js +81 -80
  9. package/dist/components/Dropdown/hooks/useDropdown.js +21 -21
  10. package/dist/components/Filter/Filter.variants.js +2 -2
  11. package/dist/components/Input/Input.variants.js +1 -1
  12. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  13. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
  14. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
  15. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
  16. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +27 -0
  17. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  18. package/dist/components/PhoneNumberInput/components/Wrapper.js +621 -0
  19. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  20. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  21. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  22. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  23. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6137 -0
  24. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  25. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  26. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  27. package/dist/components/Switch/Switch.variants.js +4 -4
  28. package/dist/components/Tabs/Tabs.variants.js +1 -1
  29. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  30. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
  31. package/dist/components/Typography/Typography.variants.js +18 -23
  32. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
  33. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +5 -5
  34. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1886
  35. package/dist/components/index.js +72 -70
  36. package/dist/index-2hB40Iuc.js +1873 -0
  37. package/dist/index-C3tHPg8y.js +662 -0
  38. package/dist/index.d.ts +32 -13
  39. package/dist/index.js +82 -80
  40. package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
  41. package/dist/package.json +13 -7
  42. package/dist/styles.css +1 -1
  43. package/package.json +13 -7
@@ -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,10 +1,5 @@
1
1
  import { c as r } from "../../index-D29mdTf5.js";
2
- const e = r([
3
- "flex",
4
- "items-center",
5
- "p-0",
6
- "border-2"
7
- ]);
2
+ const e = r(["flex", "items-center", "p-0", "border"]);
8
3
  export {
9
4
  e as radioCardVariants
10
5
  };
@@ -10,8 +10,8 @@ const e = r([
10
10
  "px-4",
11
11
  "relative",
12
12
  "transition-all",
13
- "w-[72px]",
14
- "md:w-[256px]",
13
+ "w-18",
14
+ "md:w-64",
15
15
  "bg-kubefirst-dark-blue-900"
16
16
  ]), o = r([
17
17
  "absolute",
@@ -1,7 +1,7 @@
1
1
  import { c as a } from "../../index-D29mdTf5.js";
2
2
  const r = a([
3
- "w-[40px]",
4
- "h-[20px]",
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-[16px]",
21
- "h-[16px]",
20
+ "w-4",
21
+ "h-4",
22
22
  "bg-white",
23
23
  "dark:bg-gray-400",
24
24
  "dark:data-[state=checked]:bg-white",
@@ -40,7 +40,7 @@ const r = t([""], {
40
40
  "after:bottom-0",
41
41
  "after:left-0",
42
42
  "after:right-0",
43
- "after:h-[2px]",
43
+ "after:h-0.5",
44
44
  "after:bg-aurora-500",
45
45
  "after:origin-bottom",
46
46
  'after:content-[""]',
@@ -21,8 +21,8 @@ const t = r([
21
21
  "flex",
22
22
  "flex-col"
23
23
  ]), n = r([
24
- "w-[60px]",
25
- "h-[40px]",
24
+ "w-15",
25
+ "h-10",
26
26
  "snap-start",
27
27
  "rounded",
28
28
  "transition-all",
@@ -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-[208px]" : "w-[140px]"
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 e = t([], {
2
+ const a = t([], {
3
3
  variants: {
4
4
  variant: {
5
- h1: ["text-[57px]", "leading-[64px]"],
5
+ h1: ["text-[57px]", "leading-16"],
6
6
  h2: ["text-[45px]", "leading-[52px]"],
7
- h3: ["text-[36px]", "leading-[44px]"],
8
- h4: ["text-[32px]", "leading-[40px]"],
9
- h5: ["text-[28px]", "leading-[36px]"],
10
- h6: ["text-[24px]", "font-medium", "leading-[32px]", "tracking-[0.15px]"],
11
- subtitle1: ["text-[22px]", "leading-[28px]"],
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-[20px]",
16
+ "leading-5",
22
17
  "tracking-[0.1px]"
23
18
  ],
24
- labelLarge: ["text-[14px]", "leading-[20px]", "tracking-[0.1px]"],
19
+ labelLarge: ["text-sm", "leading-5", "tracking-[0.1px]"],
25
20
  labelMedium: [
26
21
  "text-[12px]",
27
22
  "font-medium",
28
- "leading-[16px]",
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-[16px]",
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-[20px]",
37
+ "leading-5",
43
38
  "tracking-[0.25px]"
44
39
  ],
45
- body1: ["text-[16px]", "leading-[24px]", "tracking-[0.5px]"],
46
- body2: ["text-[14px]", "leading-[20px]", "tracking-[0.25px]"],
47
- body3: ["text-[12px]", "leading-[16px]", "tracking-[0.4px]"],
48
- tooltip: ["text-[14px]", "leading-[22px]"]
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
- e as typographyVariants
51
+ a as typographyVariants
57
52
  };
@@ -20,7 +20,7 @@ const b = ({
20
20
  /* @__PURE__ */ a(
21
21
  c,
22
22
  {
23
- className: "w-[88px] [&>div>p]:text-xs bg-white",
23
+ className: "w-22 [&>div>p]:text-xs bg-white",
24
24
  listItemClassName: "[&>p]:text-xs",
25
25
  options: r,
26
26
  value: s.toString(),
@@ -1,9 +1,9 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useRef as l, useCallback as p } from "react";
3
- import { Input as c } from "../../../Input/Input.js";
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 = p(
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
- c,
24
+ p,
25
25
  {
26
26
  type: "number",
27
- className: "w-[72px] text-xs no-spinner",
27
+ className: "w-18 text-xs no-spinner",
28
28
  name: "jump-to",
29
29
  min: 1,
30
30
  max: e,