@konstructio/ui 0.1.2-alpha.71 → 0.1.2-alpha.72
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/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
- package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
- package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
- package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
- package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
- package/dist/assets/icons/components/InfoCircle.js +31 -0
- package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
- package/dist/assets/icons/components/WarningTriangle.js +28 -0
- package/dist/assets/icons/components/index.d.ts +5 -1
- package/dist/assets/icons/components/index.js +124 -116
- package/dist/assets/icons/index.js +124 -116
- package/dist/components/Alert/Alert.d.ts +5 -16
- package/dist/components/Alert/Alert.js +46 -32
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/Alert.variants.d.ts +11 -2
- package/dist/components/Alert/Alert.variants.js +77 -32
- package/dist/components/Badge/Badge.variants.d.ts +2 -2
- package/dist/components/Button/Button.variants.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
- package/dist/components/Filter/Filter.d.ts +2 -2
- package/dist/components/Filter/Filter.js +14 -11
- package/dist/components/Filter/Filter.types.d.ts +2 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
- package/dist/components/Filter/components/index.d.ts +2 -0
- package/dist/components/Filter/components/index.js +10 -8
- package/dist/components/LineChart/LineChart.d.ts +17 -0
- package/dist/components/LineChart/LineChart.js +154 -0
- package/dist/components/LineChart/LineChart.types.d.ts +54 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PieChart/PieChart.js +51 -5095
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
- package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/components/Toast/Toast.variants.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -9
- package/dist/components/Tooltip/Tooltip.js +35 -33
- package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
- package/dist/components/Typography/Typography.variants.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +28 -4
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +121 -91
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +5 -8
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +3 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +179 -168
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +117 -113
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +124 -116
- package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
- package/dist/index-qDQP8rW4.js +7281 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +144 -139
- package/dist/package.json +8 -8
- package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +16 -15
- package/package.json +8 -8
- package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
- package/dist/components/Tooltip/Tooltip.variants.js +0 -86
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as Ee } from "../clsx-OuTLNxxd.js";
|
|
2
|
+
const je = (e, t) => {
|
|
3
3
|
const o = new Array(e.length + t.length);
|
|
4
4
|
for (let r = 0; r < e.length; r++)
|
|
5
5
|
o[r] = e[r];
|
|
@@ -28,7 +28,7 @@ const Ee = (e, t) => {
|
|
|
28
28
|
getConflictingClassGroupIds: (a, b) => {
|
|
29
29
|
if (b) {
|
|
30
30
|
const d = r[a], u = o[a];
|
|
31
|
-
return d ? u ?
|
|
31
|
+
return d ? u ? je(u, d) : d : u || fe;
|
|
32
32
|
}
|
|
33
33
|
return o[a] || fe;
|
|
34
34
|
}
|
|
@@ -278,10 +278,10 @@ const Ee = (e, t) => {
|
|
|
278
278
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
279
279
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
280
280
|
ao.test(e) && !io.test(e)
|
|
281
|
-
), ae = () => !1, po = (e) => lo.test(e), bo = (e) => co.test(e), uo = (e) => !s(e) && !n(e), fo = (e) => M(e, Pe, ae), s = (e) => Ae.test(e),
|
|
281
|
+
), ae = () => !1, po = (e) => lo.test(e), bo = (e) => co.test(e), uo = (e) => !s(e) && !n(e), fo = (e) => M(e, Pe, ae), s = (e) => Ae.test(e), E = (e) => M(e, Ge, mo), we = (e) => M(e, zo, p), go = (e) => M(e, Le, Re), ho = (e) => M(e, Te, ae), xe = (e) => M(e, Ie, ae), wo = (e) => M(e, Me, bo), J = (e) => M(e, Oe, po), n = (e) => Se.test(e), _ = (e) => j(e, Ge), xo = (e) => j(e, Te), ke = (e) => j(e, Ie), ko = (e) => j(e, Pe), yo = (e) => j(e, Me), H = (e) => j(e, Oe, !0), vo = (e) => j(e, Le, !0), M = (e, t, o) => {
|
|
282
282
|
const r = Ae.exec(e);
|
|
283
283
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
284
|
-
},
|
|
284
|
+
}, j = (e, t, o = !1) => {
|
|
285
285
|
const r = Se.exec(e);
|
|
286
286
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
287
287
|
}, Ie = (e) => e === "position" || e === "percentage", Me = (e) => e === "image" || e === "url", Pe = (e) => e === "length" || e === "size" || e === "bg-size", Ge = (e) => e === "length", zo = (e) => e === "number", Te = (e) => e === "family-name", Le = (e) => e === "number" || e === "weight", Oe = (e) => e === "shadow", Co = () => {
|
|
@@ -311,7 +311,7 @@ const Ee = (e, t) => {
|
|
|
311
311
|
repeat: ["", "x", "y", "space", "round"]
|
|
312
312
|
}], pe = () => ["auto", "cover", "contain", ko, fo, {
|
|
313
313
|
size: [n, s]
|
|
314
|
-
}], oe = () => [te, _,
|
|
314
|
+
}], oe = () => [te, _, E], w = () => [
|
|
315
315
|
// Deprecated since Tailwind CSS v4.0.0
|
|
316
316
|
"",
|
|
317
317
|
"none",
|
|
@@ -319,7 +319,7 @@ const Ee = (e, t) => {
|
|
|
319
319
|
u,
|
|
320
320
|
n,
|
|
321
321
|
s
|
|
322
|
-
], x = () => ["", p, _,
|
|
322
|
+
], x = () => ["", p, _, E], D = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], g = () => [p, te, ke, xe], ue = () => [
|
|
323
323
|
// Deprecated since Tailwind CSS v4.0.0
|
|
324
324
|
"",
|
|
325
325
|
"none",
|
|
@@ -1115,7 +1115,7 @@ const Ee = (e, t) => {
|
|
|
1115
1115
|
* @see https://tailwindcss.com/docs/font-size
|
|
1116
1116
|
*/
|
|
1117
1117
|
"font-size": [{
|
|
1118
|
-
text: ["base", o, _,
|
|
1118
|
+
text: ["base", o, _, E]
|
|
1119
1119
|
}],
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Font Smoothing
|
|
@@ -1270,7 +1270,7 @@ const Ee = (e, t) => {
|
|
|
1270
1270
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1271
1271
|
*/
|
|
1272
1272
|
"text-decoration-thickness": [{
|
|
1273
|
-
decoration: [p, "from-font", "auto", n,
|
|
1273
|
+
decoration: [p, "from-font", "auto", n, E]
|
|
1274
1274
|
}],
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Text Decoration Color
|
|
@@ -1785,7 +1785,7 @@ const Ee = (e, t) => {
|
|
|
1785
1785
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1786
1786
|
*/
|
|
1787
1787
|
"outline-w": [{
|
|
1788
|
-
outline: ["", p, _,
|
|
1788
|
+
outline: ["", p, _, E]
|
|
1789
1789
|
}],
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Outline Color
|
|
@@ -1860,7 +1860,7 @@ const Ee = (e, t) => {
|
|
|
1860
1860
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1861
1861
|
*/
|
|
1862
1862
|
"ring-offset-w": [{
|
|
1863
|
-
"ring-offset": [p,
|
|
1863
|
+
"ring-offset": [p, E]
|
|
1864
1864
|
}],
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Ring Offset Color
|
|
@@ -2838,7 +2838,7 @@ const Ee = (e, t) => {
|
|
|
2838
2838
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2839
2839
|
*/
|
|
2840
2840
|
"stroke-w": [{
|
|
2841
|
-
stroke: [p, _,
|
|
2841
|
+
stroke: [p, _, E, we]
|
|
2842
2842
|
}],
|
|
2843
2843
|
/**
|
|
2844
2844
|
* Stroke
|
|
@@ -2913,11 +2913,12 @@ const Ee = (e, t) => {
|
|
|
2913
2913
|
},
|
|
2914
2914
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2915
2915
|
};
|
|
2916
|
-
}, Ao = /* @__PURE__ */ ro(Co), Ro = (...e) => Ao(
|
|
2916
|
+
}, Ao = /* @__PURE__ */ ro(Co), Ro = (...e) => Ao(Ee(e)), Io = (e, t) => e.filter(
|
|
2917
2917
|
(o) => o.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()) > -1
|
|
2918
|
-
), Mo = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2918
|
+
), Mo = !!(typeof window < "u" && window.document && window.document.createElement), Po = (e) => getComputedStyle(document.documentElement).getPropertyValue(e).trim() || e;
|
|
2919
2919
|
export {
|
|
2920
2920
|
Ro as cn,
|
|
2921
2921
|
Io as filterByValue,
|
|
2922
|
-
Mo as isClient
|
|
2922
|
+
Mo as isClient,
|
|
2923
|
+
Po as resolveColor
|
|
2923
2924
|
};
|
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.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.72",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"google-libphonenumber": "^3.2.44",
|
|
100
100
|
"i18n-iso-countries": "^7.14.0",
|
|
101
101
|
"js-cookie": "^3.0.5",
|
|
102
|
-
"lucide-react": "^0.
|
|
103
|
-
"motion": "^12.
|
|
102
|
+
"lucide-react": "^0.577.0",
|
|
103
|
+
"motion": "^12.35.0",
|
|
104
104
|
"react-chartjs-2": "^5.3.1",
|
|
105
105
|
"react-day-picker": "^9.14.0",
|
|
106
106
|
"react-feather": "^2.0.10",
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
"devDependencies": {
|
|
144
144
|
"@faker-js/faker": "^10.3.0",
|
|
145
145
|
"@rollup/plugin-alias": "^6.0.0",
|
|
146
|
-
"@storybook/addon-docs": "^10.2.
|
|
147
|
-
"@storybook/addon-links": "^10.2.
|
|
148
|
-
"@storybook/react-vite": "^10.2.
|
|
146
|
+
"@storybook/addon-docs": "^10.2.15",
|
|
147
|
+
"@storybook/addon-links": "^10.2.15",
|
|
148
|
+
"@storybook/react-vite": "^10.2.15",
|
|
149
149
|
"@tailwindcss/vite": "^4.2.1",
|
|
150
150
|
"@tanstack/react-query": "^5.90.21",
|
|
151
151
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"eslint-plugin-react": "^7.37.5",
|
|
167
167
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
168
168
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
169
|
-
"eslint-plugin-storybook": "^10.2.
|
|
169
|
+
"eslint-plugin-storybook": "^10.2.15",
|
|
170
170
|
"eslint-plugin-vitest": "^0.5.4",
|
|
171
171
|
"glob": "^13.0.6",
|
|
172
172
|
"husky": "^9.1.7",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"postcss": "^8.5.8",
|
|
177
177
|
"prettier": "^3.8.1",
|
|
178
178
|
"rimraf": "^6.1.3",
|
|
179
|
-
"storybook": "^10.2.
|
|
179
|
+
"storybook": "^10.2.15",
|
|
180
180
|
"tailwindcss": "^4.2.1",
|
|
181
181
|
"ts-node": "^10.9.2",
|
|
182
182
|
"typescript": "^5.9.3",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const tooltipVariants: (props?: ({
|
|
2
|
-
position?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const arrowVariants: (props?: ({
|
|
5
|
-
position?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
-
const a = r(
|
|
3
|
-
[
|
|
4
|
-
"absolute",
|
|
5
|
-
"w-max",
|
|
6
|
-
"py-2",
|
|
7
|
-
"px-[6px]",
|
|
8
|
-
"rounded-xs",
|
|
9
|
-
"shadow-md",
|
|
10
|
-
"transition-all",
|
|
11
|
-
"ease-linear",
|
|
12
|
-
"opacity-0",
|
|
13
|
-
"duration-250",
|
|
14
|
-
"[&[data-visible='true']]:opacity-100",
|
|
15
|
-
"delay-100",
|
|
16
|
-
"bg-slate-700"
|
|
17
|
-
],
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
position: {
|
|
21
|
-
top: ["-top-[120%]", "left-[50%]", "-translate-x-1/2"],
|
|
22
|
-
bottom: ["-bottom-[120%]", "right-[50%]", "translate-x-1/2"],
|
|
23
|
-
right: ["top-1/2", "ml-1", "left-[100%]", "-translate-y-2/4"],
|
|
24
|
-
left: ["top-1/2", "mr-1", "right-[100%]", "-translate-y-2/4"]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
position: "right"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
), o = r(
|
|
32
|
-
["absolute", "w-0", "h-0", "border-slate-700"],
|
|
33
|
-
{
|
|
34
|
-
variants: {
|
|
35
|
-
position: {
|
|
36
|
-
top: [
|
|
37
|
-
"top-full",
|
|
38
|
-
"right-1/2",
|
|
39
|
-
"translate-x-2/4",
|
|
40
|
-
"border-l-4",
|
|
41
|
-
"border-l-transparent",
|
|
42
|
-
"border-r-4",
|
|
43
|
-
"border-r-transparent",
|
|
44
|
-
"border-t-4"
|
|
45
|
-
],
|
|
46
|
-
bottom: [
|
|
47
|
-
"bottom-full",
|
|
48
|
-
"right-1/2",
|
|
49
|
-
"translate-x-2/4",
|
|
50
|
-
"border-l-4",
|
|
51
|
-
"border-l-transparent",
|
|
52
|
-
"border-r-4",
|
|
53
|
-
"border-r-transparent",
|
|
54
|
-
"border-b-4"
|
|
55
|
-
],
|
|
56
|
-
right: [
|
|
57
|
-
"right-full",
|
|
58
|
-
"top-1/2",
|
|
59
|
-
"-translate-y-2/4",
|
|
60
|
-
"border-t-4",
|
|
61
|
-
"border-t-transparent",
|
|
62
|
-
"border-b-4",
|
|
63
|
-
"border-b-transparent",
|
|
64
|
-
"border-r-4"
|
|
65
|
-
],
|
|
66
|
-
left: [
|
|
67
|
-
"left-full",
|
|
68
|
-
"top-1/2",
|
|
69
|
-
"-translate-y-2/4",
|
|
70
|
-
"border-t-4",
|
|
71
|
-
"border-t-transparent",
|
|
72
|
-
"border-b-4",
|
|
73
|
-
"border-b-transparent",
|
|
74
|
-
"border-l-4"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
defaultVariants: {
|
|
79
|
-
position: "right"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
export {
|
|
84
|
-
o as arrowVariants,
|
|
85
|
-
a as tooltipVariants
|
|
86
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useRef as r, useState as o, useEffect as l } from "react";
|
|
2
|
-
const u = () => {
|
|
3
|
-
const e = r(null), [s, n] = o(!1);
|
|
4
|
-
return l(() => {
|
|
5
|
-
const t = new AbortController();
|
|
6
|
-
return e.current?.addEventListener(
|
|
7
|
-
"mouseenter",
|
|
8
|
-
() => n(!0),
|
|
9
|
-
{ signal: t.signal }
|
|
10
|
-
), e.current?.addEventListener(
|
|
11
|
-
"mouseleave",
|
|
12
|
-
() => n(!1),
|
|
13
|
-
{ signal: t.signal }
|
|
14
|
-
), () => {
|
|
15
|
-
t.abort();
|
|
16
|
-
};
|
|
17
|
-
}, []), {
|
|
18
|
-
isVisible: s,
|
|
19
|
-
componentRef: e
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
u as useTooltip
|
|
24
|
-
};
|