@konstructio/ui 0.1.0-alpha.3 → 0.1.0-alpha.4

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 (67) hide show
  1. package/dist/{Combination-b348x__d.js → Combination-Cvr3uETz.js} +102 -102
  2. package/dist/{Modal-B2ujmsSW.js → Modal-DXYBiafI.js} +3 -3
  3. package/dist/components/Alert/Alert.js +1 -1
  4. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Badge/Badge.js +2 -2
  8. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  9. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  10. package/dist/components/Button/Button.js +1 -1
  11. package/dist/components/Checkbox/Checkbox.js +3 -3
  12. package/dist/components/Command/Command.js +2 -2
  13. package/dist/components/Command/components/Command.js +1 -1
  14. package/dist/components/Command/components/CommandEmpty.js +1 -1
  15. package/dist/components/Command/components/CommandGroup.js +1 -1
  16. package/dist/components/Command/components/CommandInput.js +1 -1
  17. package/dist/components/Command/components/CommandItem.js +1 -1
  18. package/dist/components/Command/components/CommandList.js +1 -1
  19. package/dist/components/Command/components/CommandSeparator.js +1 -1
  20. package/dist/components/Command/components/DialogContent.js +1 -1
  21. package/dist/components/Command/components/DialogOverlay.js +1 -1
  22. package/dist/components/Datepicker/DatePicker.js +3 -3
  23. package/dist/components/Dropdown/components/List/List.js +49 -17
  24. package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -17
  25. package/dist/components/Dropdown/components/Wrapper.js +64 -59
  26. package/dist/components/Loading/Loading.js +2 -2
  27. package/dist/components/Modal/Modal.js +2 -2
  28. package/dist/components/Modal/components/Body/Body.js +1 -1
  29. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  30. package/dist/components/Modal/components/Header/Header.js +1 -1
  31. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  32. package/dist/components/Modal/components/index.js +1 -1
  33. package/dist/components/NumberInput/NumberInput.js +1 -1
  34. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  35. package/dist/components/Range/Range.js +1 -1
  36. package/dist/components/Slider/Slider.js +1 -1
  37. package/dist/components/Switch/Switch.js +2 -2
  38. package/dist/components/Tabs/Tabs.js +1 -1
  39. package/dist/components/Tabs/components/Content.js +1 -1
  40. package/dist/components/Tabs/components/List.js +1 -1
  41. package/dist/components/Tabs/components/Trigger.js +1 -1
  42. package/dist/components/Tag/Tag.js +1 -1
  43. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
  44. package/dist/components/Toast/Toast.js +6 -6
  45. package/dist/components/Tooltip/Tooltip.js +1 -1
  46. package/dist/components/Typography/Typography.js +14 -16
  47. package/dist/components/index.js +1 -1
  48. package/dist/{createLucideIcon-BA2PlKw1.js → createLucideIcon-vyksFS6P.js} +4 -4
  49. package/dist/{index-BRcC_VTj.js → index--EmNlyHx.js} +1 -1
  50. package/dist/{index-Ud3-A7-K.js → index-1RDo-S_f.js} +5 -5
  51. package/dist/index-B5MIi2tR.js +83 -0
  52. package/dist/{index-ObZsP5Eh.js → index-BCGvACM9.js} +1 -1
  53. package/dist/{index-xPmNHv1y.js → index-BuxebbOg.js} +2 -2
  54. package/dist/{index-55GVbfLI.js → index-BvCZBMfr.js} +3 -3
  55. package/dist/{index-C2xwUZXm.js → index-CvfCCTEO.js} +4 -4
  56. package/dist/{index-DmCJ8fIR.js → index-Cz09twLl.js} +3 -3
  57. package/dist/{index-CQ6ORxI_.js → index-DNRcvRTB.js} +2 -2
  58. package/dist/{index-Y44iCJcQ.js → index-Dm-ooN_M.js} +1 -1
  59. package/dist/{index-B-qIIQlg.js → index-rUBNhTeF.js} +1 -1
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.js +1 -1
  62. package/dist/package.json +28 -28
  63. package/dist/styles.css +1 -1
  64. package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
  65. package/package.json +28 -28
  66. package/dist/index-tIydFizp.js +0 -83
  67. package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.0-alpha.3",
5
+ "version": "0.1.0-alpha.4",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -55,25 +55,25 @@
55
55
  "test:watch": "vitest dev"
56
56
  },
57
57
  "dependencies": {
58
- "@radix-ui/react-alert-dialog": "^1.1.13",
59
- "@radix-ui/react-checkbox": "^1.3.1",
60
- "@radix-ui/react-dialog": "^1.1.13",
61
- "@radix-ui/react-slider": "^1.3.4",
62
- "@radix-ui/react-slot": "^1.2.2",
63
- "@radix-ui/react-switch": "^1.2.4",
64
- "@radix-ui/react-toast": "^1.2.13",
65
- "@radix-ui/react-tabs": "^1.1.11",
66
- "@radix-ui/react-visually-hidden": "^1.2.2",
58
+ "@radix-ui/react-alert-dialog": "^1.1.14",
59
+ "@radix-ui/react-checkbox": "^1.3.2",
60
+ "@radix-ui/react-dialog": "^1.1.14",
61
+ "@radix-ui/react-slider": "^1.3.5",
62
+ "@radix-ui/react-slot": "^1.2.3",
63
+ "@radix-ui/react-switch": "^1.2.5",
64
+ "@radix-ui/react-toast": "^1.2.14",
65
+ "@radix-ui/react-tabs": "^1.1.12",
66
+ "@radix-ui/react-visually-hidden": "^1.2.3",
67
67
  "class-variance-authority": "^0.7.1",
68
68
  "clsx": "^2.1.1",
69
69
  "cmdk": "^1.1.1",
70
70
  "countries-and-timezones": "^3.8.0",
71
71
  "js-cookie": "^3.0.5",
72
- "lucide-react": "^0.510.0",
72
+ "lucide-react": "^0.511.0",
73
73
  "react-day-picker": "^9.7.0",
74
74
  "react-feather": "^2.0.10",
75
75
  "react-focus-lock": "^2.13.6",
76
- "react-remove-scroll": "^2.6.3",
76
+ "react-remove-scroll": "^2.7.0",
77
77
  "tailwind-merge": "^3.3.0"
78
78
  },
79
79
  "peerDependencies": {
@@ -106,28 +106,28 @@
106
106
  },
107
107
  "devDependencies": {
108
108
  "@rollup/plugin-alias": "^5.1.1",
109
- "@storybook/addon-docs": "^8.6.12",
110
- "@storybook/addon-essentials": "^8.6.12",
111
- "@storybook/addon-interactions": "^8.6.12",
112
- "@storybook/addon-links": "^8.6.12",
109
+ "@storybook/addon-docs": "^8.6.14",
110
+ "@storybook/addon-essentials": "^8.6.14",
111
+ "@storybook/addon-interactions": "^8.6.14",
112
+ "@storybook/addon-links": "^8.6.14",
113
113
  "@storybook/addon-styling-webpack": "^1.0.1",
114
- "@storybook/blocks": "^8.6.12",
115
- "@storybook/react": "^8.6.12",
116
- "@storybook/react-vite": "^8.6.12",
117
- "@storybook/test": "^8.6.12",
118
- "@tailwindcss/vite": "^4.1.6",
114
+ "@storybook/blocks": "^8.6.14",
115
+ "@storybook/react": "^8.6.14",
116
+ "@storybook/react-vite": "^8.6.14",
117
+ "@storybook/test": "^8.6.14",
118
+ "@tailwindcss/vite": "^4.1.7",
119
119
  "@testing-library/jest-dom": "^6.6.3",
120
120
  "@testing-library/react": "^16.3.0",
121
121
  "@testing-library/user-event": "^14.6.1",
122
122
  "@types/jest-axe": "^3.5.9",
123
123
  "@types/js-cookie": "^3.0.6",
124
- "@types/lodash": "^4.17.16",
125
- "@types/react": "^19.1.4",
124
+ "@types/lodash": "^4.17.17",
125
+ "@types/react": "^19.1.5",
126
126
  "@types/react-dom": "^19.1.5",
127
127
  "@typescript-eslint/eslint-plugin": "^8.32.1",
128
128
  "@typescript-eslint/parser": "^8.32.1",
129
129
  "@vitejs/plugin-react": "^4.4.1",
130
- "@vitest/coverage-v8": "^3.1.3",
130
+ "@vitest/coverage-v8": "^3.1.4",
131
131
  "autoprefixer": "^10.4.21",
132
132
  "eslint": "^8.57.0",
133
133
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -141,15 +141,15 @@
141
141
  "postcss": "^8.5.3",
142
142
  "prettier": "^3.5.3",
143
143
  "rimraf": "^6.0.1",
144
- "storybook": "^8.6.12",
145
- "tailwindcss": "^4.1.6",
144
+ "storybook": "^8.6.14",
145
+ "tailwindcss": "^4.1.7",
146
146
  "ts-node": "^10.9.2",
147
147
  "typescript": "^5.8.3",
148
148
  "vite": "^6.3.5",
149
- "vite-plugin-dts": "^4.5.3",
149
+ "vite-plugin-dts": "^4.5.4",
150
150
  "vite-plugin-lib-inject-css": "^2.2.2",
151
151
  "vite-plugin-svgr": "^4.3.0",
152
152
  "vite-tsconfig-paths": "^5.1.4",
153
- "vitest": "^3.1.3"
153
+ "vitest": "^3.1.4"
154
154
  }
155
155
  }
@@ -1,83 +0,0 @@
1
- import * as l from "react";
2
- import { jsx as f, Fragment as S } from "react/jsx-runtime";
3
- function d(e, t) {
4
- if (typeof e == "function")
5
- return e(t);
6
- e != null && (e.current = t);
7
- }
8
- function g(...e) {
9
- return (t) => {
10
- let r = !1;
11
- const o = e.map((n) => {
12
- const i = d(n, t);
13
- return !r && typeof i == "function" && (r = !0), i;
14
- });
15
- if (r)
16
- return () => {
17
- for (let n = 0; n < o.length; n++) {
18
- const i = o[n];
19
- typeof i == "function" ? i() : d(e[n], null);
20
- }
21
- };
22
- };
23
- }
24
- function C(...e) {
25
- return l.useCallback(g(...e), e);
26
- }
27
- // @__NO_SIDE_EFFECTS__
28
- function E(e) {
29
- const t = /* @__PURE__ */ R(e), r = l.forwardRef((o, n) => {
30
- const { children: i, ...c } = o, a = l.Children.toArray(i), s = a.find(b);
31
- if (s) {
32
- const u = s.props.children, y = a.map((p) => p === s ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : p);
33
- return /* @__PURE__ */ f(t, { ...c, ref: n, children: l.isValidElement(u) ? l.cloneElement(u, void 0, y) : null });
34
- }
35
- return /* @__PURE__ */ f(t, { ...c, ref: n, children: i });
36
- });
37
- return r.displayName = `${e}.Slot`, r;
38
- }
39
- var x = /* @__PURE__ */ E("Slot");
40
- // @__NO_SIDE_EFFECTS__
41
- function R(e) {
42
- const t = l.forwardRef((r, o) => {
43
- const { children: n, ...i } = r, c = l.isValidElement(n) ? V(n) : void 0, a = C(c, o);
44
- if (l.isValidElement(n)) {
45
- const s = h(i, n.props);
46
- return n.type !== l.Fragment && (s.ref = a), l.cloneElement(n, s);
47
- }
48
- return l.Children.count(n) > 1 ? l.Children.only(null) : null;
49
- });
50
- return t.displayName = `${e}.SlotClone`, t;
51
- }
52
- var m = Symbol("radix.slottable");
53
- // @__NO_SIDE_EFFECTS__
54
- function I(e) {
55
- const t = ({ children: r }) => /* @__PURE__ */ f(S, { children: r });
56
- return t.displayName = `${e}.Slottable`, t.__radixId = m, t;
57
- }
58
- function b(e) {
59
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === m;
60
- }
61
- function h(e, t) {
62
- const r = { ...t };
63
- for (const o in t) {
64
- const n = e[o], i = t[o];
65
- /^on[A-Z]/.test(o) ? n && i ? r[o] = (...a) => {
66
- const s = i(...a);
67
- return n(...a), s;
68
- } : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...i } : o === "className" && (r[o] = [n, i].filter(Boolean).join(" "));
69
- }
70
- return { ...e, ...r };
71
- }
72
- function V(e) {
73
- var o, n;
74
- let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
75
- return r ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
76
- }
77
- export {
78
- x as S,
79
- g as a,
80
- I as b,
81
- E as c,
82
- C as u
83
- };