@krosoft/react 0.0.92 → 0.0.93
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/{AppSubTitle-CvJlatS9.js → AppSubTitle-CrQq4gjE.js} +1 -1
- package/dist/{AppTitle-LIQCjpo5.js → AppTitle-Cdnl1Ep3.js} +19 -18
- package/dist/{AppVerticalTabs-BHrad7wu.js → AppVerticalTabs-tg4OMyaw.js} +3 -3
- package/dist/{ConfirmationDialog-BlRXnFH5.js → ConfirmationDialog-ClYOz40y.js} +55 -54
- package/dist/{MetricCard-BGT2QRn0.js → MetricCard-mB38b3Mw.js} +7 -6
- package/dist/{SearchInput-DpOuKSIf.js → SearchInput-DaMu6Bni.js} +19 -18
- package/dist/{TableFilter-DFtN_-Bg.js → TableFilter-Bq5bpUoa.js} +12 -11
- package/dist/{TableSettings-m2q3s0wU.js → TableSettings-DbTxUWk3.js} +13 -12
- package/dist/{ThemeSelector-D9KTJAWz.js → ThemeSelector-Bzxc7UEq.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/index.js +10 -10
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/layouts/index.js +2 -2
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +97 -95
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +54 -52
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/{select-D6_XPD6x.js → select-zzSnHs9S.js} +481 -456
- package/dist/toaster-Cjk453ai.js +134 -0
- package/dist/toggle-group-5ImQF6h-.js +20235 -0
- package/package.json +8 -7
- package/dist/toaster-D6ND7OTk.js +0 -113
- package/dist/toggle-group-VJoGbVQm.js +0 -19987
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -91,10 +91,9 @@
|
|
|
91
91
|
"@krosoft/tooling-eslint-react": "^0.0.21",
|
|
92
92
|
"@krosoft/tooling-prettier": "^0.0.14",
|
|
93
93
|
"@krosoft/tooling-tsconfig-react": "^0.0.10",
|
|
94
|
-
"@storybook/addon-
|
|
95
|
-
"@storybook/
|
|
96
|
-
"@storybook/react": "^
|
|
97
|
-
"@storybook/react-vite": "^8.6.18",
|
|
94
|
+
"@storybook/addon-themes": "^10.4.1",
|
|
95
|
+
"@storybook/react": "^10.4.1",
|
|
96
|
+
"@storybook/react-vite": "^10.4.1",
|
|
98
97
|
"@types/node": "^25.9.1",
|
|
99
98
|
"@types/react": "^19.2.15",
|
|
100
99
|
"@types/react-dom": "^19.2.3",
|
|
@@ -107,10 +106,12 @@
|
|
|
107
106
|
"react-i18next": "^17.0.8",
|
|
108
107
|
"react-resizable-panels": "^4.11.2",
|
|
109
108
|
"react-router-dom": "^7.15.1",
|
|
110
|
-
"storybook": "^
|
|
109
|
+
"storybook": "^10.4.1",
|
|
111
110
|
"tailwindcss": "^3.4.19",
|
|
112
111
|
"typescript": "^5.9.3",
|
|
113
112
|
"vite": "^6.4.2",
|
|
114
|
-
"vitest": "^4.1.7"
|
|
113
|
+
"vitest": "^4.1.7",
|
|
114
|
+
"eslint-plugin-storybook": "10.4.1",
|
|
115
|
+
"@storybook/addon-docs": "^10.4.1"
|
|
115
116
|
}
|
|
116
117
|
}
|
package/dist/toaster-D6ND7OTk.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import "react-dom";
|
|
3
|
-
import { e as m } from "./tooltip-CAu4DEhc.js";
|
|
4
|
-
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
5
|
-
import { c9 as v, ca as b, cb as g, cc as h, cd as w, ce as x, b_ as R, bW as T, b$ as y, bZ as C, bY as N, c0 as P } from "./toggle-group-VJoGbVQm.js";
|
|
6
|
-
import { c as n } from "./index-gWiv5-6R.js";
|
|
7
|
-
import { G as $ } from "./grip-vertical-CJ07_87Y.js";
|
|
8
|
-
import { u as S } from "./useToast-BFTk4lWz.js";
|
|
9
|
-
var A = [
|
|
10
|
-
"a",
|
|
11
|
-
"button",
|
|
12
|
-
"div",
|
|
13
|
-
"form",
|
|
14
|
-
"h2",
|
|
15
|
-
"h3",
|
|
16
|
-
"img",
|
|
17
|
-
"input",
|
|
18
|
-
"label",
|
|
19
|
-
"li",
|
|
20
|
-
"nav",
|
|
21
|
-
"ol",
|
|
22
|
-
"p",
|
|
23
|
-
"select",
|
|
24
|
-
"span",
|
|
25
|
-
"svg",
|
|
26
|
-
"ul"
|
|
27
|
-
], j = A.reduce((a, e) => {
|
|
28
|
-
const r = m(`Primitive.${e}`), i = c.forwardRef((o, s) => {
|
|
29
|
-
const { asChild: d, ...f } = o, u = d ? r : e;
|
|
30
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t(u, { ...f, ref: s });
|
|
31
|
-
});
|
|
32
|
-
return i.displayName = `Primitive.${e}`, { ...a, [e]: i };
|
|
33
|
-
}, {}), z = "AspectRatio", p = c.forwardRef(
|
|
34
|
-
(a, e) => {
|
|
35
|
-
const { ratio: r = 1 / 1, style: i, ...o } = a;
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
style: {
|
|
40
|
-
// ensures inner element is contained
|
|
41
|
-
position: "relative",
|
|
42
|
-
// ensures padding bottom trick maths works
|
|
43
|
-
width: "100%",
|
|
44
|
-
paddingBottom: `${100 / r}%`
|
|
45
|
-
},
|
|
46
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
47
|
-
children: /* @__PURE__ */ t(
|
|
48
|
-
j.div,
|
|
49
|
-
{
|
|
50
|
-
...o,
|
|
51
|
-
ref: e,
|
|
52
|
-
style: {
|
|
53
|
-
...i,
|
|
54
|
-
// ensures children expand in ratio
|
|
55
|
-
position: "absolute",
|
|
56
|
-
top: 0,
|
|
57
|
-
right: 0,
|
|
58
|
-
bottom: 0,
|
|
59
|
-
left: 0
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
p.displayName = z;
|
|
68
|
-
var G = p;
|
|
69
|
-
const M = G, O = v, Q = g, U = b, W = ({ className: a, ...e }) => /* @__PURE__ */ t(x, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", a), ...e }), Z = h, _ = ({
|
|
70
|
-
withHandle: a,
|
|
71
|
-
className: e,
|
|
72
|
-
...r
|
|
73
|
-
}) => /* @__PURE__ */ t(
|
|
74
|
-
w,
|
|
75
|
-
{
|
|
76
|
-
className: n(
|
|
77
|
-
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
78
|
-
e
|
|
79
|
-
),
|
|
80
|
-
...r,
|
|
81
|
-
children: a && /* @__PURE__ */ t("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ t($, { className: "h-2.5 w-2.5" }) })
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
function q({ className: a, ...e }) {
|
|
85
|
-
return /* @__PURE__ */ t("div", { className: n("animate-pulse rounded-md bg-muted", a), ...e });
|
|
86
|
-
}
|
|
87
|
-
function F() {
|
|
88
|
-
const { toasts: a } = S();
|
|
89
|
-
return /* @__PURE__ */ l(R, { children: [
|
|
90
|
-
a.map(function({ id: e, title: r, description: i, action: o, ...s }) {
|
|
91
|
-
return /* @__PURE__ */ l(T, { ...s, children: [
|
|
92
|
-
/* @__PURE__ */ l("div", { className: "grid gap-1", children: [
|
|
93
|
-
r && /* @__PURE__ */ t(y, { children: r }),
|
|
94
|
-
i && /* @__PURE__ */ t(C, { children: i })
|
|
95
|
-
] }),
|
|
96
|
-
o,
|
|
97
|
-
/* @__PURE__ */ t(N, {})
|
|
98
|
-
] }, e);
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ t(P, {})
|
|
101
|
-
] });
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
M as A,
|
|
105
|
-
O as C,
|
|
106
|
-
_ as R,
|
|
107
|
-
q as S,
|
|
108
|
-
F as T,
|
|
109
|
-
U as a,
|
|
110
|
-
Q as b,
|
|
111
|
-
Z as c,
|
|
112
|
-
W as d
|
|
113
|
-
};
|