@serendie/ui 1.0.1 → 2.0.0-dev.202507180004
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/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Chart/SerendieChartProps.d.ts +40 -0
- package/dist/components/Chart/SerendieChartProps.js +127 -0
- package/dist/components/Chart/SerendieChartTheme.d.ts +2 -0
- package/dist/components/Chart/SerendieChartTheme.js +150 -0
- package/dist/components/Chart/chartData.d.ts +29 -0
- package/dist/components/Chart/index.d.ts +3 -0
- package/dist/components/Chart/index.js +15 -0
- package/dist/components/CheckBox/CheckBox.js +36 -35
- package/dist/components/ChoiceBox/ChoiceBox.d.ts +1 -3
- package/dist/components/ChoiceBox/ChoiceBox.js +54 -67
- package/dist/components/DataTable/DataTableComponent.d.ts +23 -0
- package/dist/components/DataTable/DataTableComponent.js +52 -0
- package/dist/components/DataTable/createColumnHelper.d.ts +2 -0
- package/dist/components/DataTable/createColumnHelper.js +5 -0
- package/dist/components/DataTable/index.d.ts +19 -0
- package/dist/components/DataTable/index.js +28 -0
- package/dist/components/DataTable/table/BodyCell.d.ts +55 -0
- package/dist/components/DataTable/table/BodyCell.js +127 -0
- package/dist/components/DataTable/table/BodyCheckbox.d.ts +4 -0
- package/dist/components/DataTable/table/BodyCheckbox.js +22 -0
- package/dist/components/DataTable/table/HeaderCell.d.ts +8 -0
- package/dist/components/DataTable/table/HeaderCell.js +79 -0
- package/dist/components/DataTable/table/HeaderCheckbox.d.ts +2 -0
- package/dist/components/DataTable/table/HeaderCheckbox.js +26 -0
- package/dist/components/DataTable/table/HeaderRow.d.ts +11 -0
- package/dist/components/DataTable/table/HeaderRow.js +40 -0
- package/dist/components/DataTable/table/Root.d.ts +5 -0
- package/dist/components/DataTable/table/Root.js +34 -0
- package/dist/components/DataTable/table/Row.d.ts +5 -0
- package/dist/components/DataTable/table/Row.js +90 -0
- package/dist/components/DataTable/table/Tbody.d.ts +1 -0
- package/dist/components/DataTable/table/Tbody.js +7 -0
- package/dist/components/DataTable/table/Thead.d.ts +1 -0
- package/dist/components/DataTable/table/Thead.js +7 -0
- package/dist/components/DataTable/table/Tr.d.ts +1 -0
- package/dist/components/DataTable/table/Tr.js +27 -0
- package/dist/components/DataTable/table/index.d.ts +10 -0
- package/dist/components/DataTable/table/index.js +22 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/Search/Search.d.ts +4 -2
- package/dist/components/Search/Search.js +34 -33
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.js +47 -41
- package/dist/components/Tabs/TabItem.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +109 -92
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +10 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +13 -20
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -18
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +22 -28
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +7 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +17 -18
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +5 -7
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +21 -45
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +6 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +13 -22
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +26 -24
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +1 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +13 -14
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +5 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +13 -19
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +25 -16
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +3 -2
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +18 -18
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +14 -22
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +11 -12
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +20 -47
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +20 -26
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +3 -7
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +28 -15
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +13 -7
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +92 -90
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +230 -216
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +100 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1741 -0
- package/dist/node_modules/@zag-js/accordion/dist/index.js +210 -227
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +49 -12
- package/dist/node_modules/@zag-js/avatar/dist/index.js +119 -134
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +196 -197
- package/dist/node_modules/@zag-js/collapsible/dist/index.js +250 -198
- package/dist/node_modules/@zag-js/collection/dist/index.js +172 -179
- package/dist/node_modules/@zag-js/combobox/dist/index.js +1176 -1082
- package/dist/node_modules/@zag-js/core/dist/index.js +77 -496
- package/dist/node_modules/@zag-js/dialog/dist/index.js +243 -270
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +62 -60
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +462 -255
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +307 -0
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +48 -47
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +112 -80
- package/dist/node_modules/@zag-js/menu/dist/index.js +998 -884
- package/dist/node_modules/@zag-js/pagination/dist/index.js +207 -213
- package/dist/node_modules/@zag-js/popper/dist/index.js +130 -129
- package/dist/node_modules/@zag-js/presence/dist/index.js +139 -122
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +297 -302
- package/dist/node_modules/@zag-js/react/dist/index.js +255 -103
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +18 -31
- package/dist/node_modules/@zag-js/select/dist/index.js +889 -885
- package/dist/node_modules/@zag-js/switch/dist/index.js +199 -191
- package/dist/node_modules/@zag-js/tabs/dist/index.js +383 -386
- package/dist/node_modules/@zag-js/toast/dist/index.js +646 -633
- package/dist/node_modules/@zag-js/types/dist/index.js +6 -6
- package/dist/node_modules/@zag-js/utils/dist/index.js +112 -99
- package/dist/styled-system/tokens/index.js +4758 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/getToken.js +4 -4
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/colors.js +12 -0
- package/package.json +10 -4
- package/dist/node_modules/@ark-ui/react/dist/utils/use-is-server.js +0 -10
- package/dist/node_modules/@zag-js/dom-event/dist/index.js +0 -130
- package/dist/node_modules/@zag-js/element-rect/dist/index.js +0 -32
- package/dist/node_modules/@zag-js/form-utils/dist/index.js +0 -51
- package/dist/node_modules/@zag-js/store/dist/index.js +0 -170
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/focus-trap/dist/focus-trap.esm.js +0 -431
- package/dist/node_modules/klona/full/index.js +0 -21
- package/dist/node_modules/proxy-compare/dist/index.js +0 -109
- package/dist/node_modules/tabbable/dist/index.esm.js +0 -202
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a(r) {
|
|
2
2
|
return new Proxy({}, {
|
|
3
|
-
get() {
|
|
4
|
-
return r;
|
|
3
|
+
get(n, e) {
|
|
4
|
+
return e === "style" ? (t) => r({ style: t }).style : r;
|
|
5
5
|
}
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var o = () => (r) => Array.from(new Set(r));
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
a as createNormalizer,
|
|
11
|
+
o as createProps
|
|
12
12
|
};
|
|
@@ -1,114 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
for (; t.length > 0; ) t.pop();
|
|
4
|
-
return t;
|
|
1
|
+
function w(r) {
|
|
2
|
+
return r == null ? [] : Array.isArray(r) ? r : [r];
|
|
5
3
|
}
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
var k = (r) => r[0], S = (r) => r[r.length - 1], a = (r, t) => r.indexOf(t) !== -1, y = (r, ...t) => r.concat(t), p = (r, ...t) => r.filter((n) => !t.includes(n)), q = (r, t) => a(r, t) ? p(r, t) : y(r, t);
|
|
5
|
+
function f(r, t, n = {}) {
|
|
6
|
+
const { step: o = 1, loop: e = !0 } = n, i = t + o, s = r.length, u = s - 1;
|
|
7
|
+
return t === -1 ? o > 0 ? 0 : u : i < 0 ? e ? u : 0 : i >= s ? e ? 0 : t > s ? s : t : i;
|
|
8
|
+
}
|
|
9
|
+
function F(r, t, n = {}) {
|
|
10
|
+
return r[f(r, t, n)];
|
|
11
|
+
}
|
|
12
|
+
function g(r, t, n = {}) {
|
|
13
|
+
const { step: o = 1, loop: e = !0 } = n;
|
|
14
|
+
return f(r, t, { step: -o, loop: e });
|
|
15
|
+
}
|
|
16
|
+
function N(r, t, n = {}) {
|
|
17
|
+
return r[g(r, t, n)];
|
|
18
|
+
}
|
|
19
|
+
var c = (r) => (r == null ? void 0 : r.constructor.name) === "Array", h = (r, t) => {
|
|
20
|
+
if (r.length !== t.length) return !1;
|
|
21
|
+
for (let n = 0; n < r.length; n++)
|
|
22
|
+
if (!l(r[n], t[n])) return !1;
|
|
10
23
|
return !0;
|
|
11
|
-
},
|
|
12
|
-
if (Object.is(
|
|
13
|
-
if (
|
|
14
|
-
if (typeof (
|
|
15
|
-
return
|
|
16
|
-
if (typeof
|
|
17
|
-
return
|
|
18
|
-
if (c(
|
|
19
|
-
return
|
|
20
|
-
if (typeof
|
|
21
|
-
const
|
|
22
|
-
for (let
|
|
23
|
-
if (!Reflect.has(
|
|
24
|
-
for (let
|
|
25
|
-
const i = e
|
|
26
|
-
if (!
|
|
24
|
+
}, l = (r, t) => {
|
|
25
|
+
if (Object.is(r, t)) return !0;
|
|
26
|
+
if (r == null && t != null || r != null && t == null) return !1;
|
|
27
|
+
if (typeof (r == null ? void 0 : r.isEqual) == "function" && typeof (t == null ? void 0 : t.isEqual) == "function")
|
|
28
|
+
return r.isEqual(t);
|
|
29
|
+
if (typeof r == "function" && typeof t == "function")
|
|
30
|
+
return r.toString() === t.toString();
|
|
31
|
+
if (c(r) && c(t))
|
|
32
|
+
return h(Array.from(r), Array.from(t));
|
|
33
|
+
if (typeof r != "object" || typeof t != "object") return !1;
|
|
34
|
+
const n = Object.keys(t ?? /* @__PURE__ */ Object.create(null)), o = n.length;
|
|
35
|
+
for (let e = 0; e < o; e++)
|
|
36
|
+
if (!Reflect.has(r, n[e])) return !1;
|
|
37
|
+
for (let e = 0; e < o; e++) {
|
|
38
|
+
const i = n[e];
|
|
39
|
+
if (!l(r[i], t[i])) return !1;
|
|
27
40
|
}
|
|
28
41
|
return !0;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
42
|
+
}, m = (r) => Array.isArray(r), $ = (r) => r === !0 || r === !1, O = (r) => r != null && typeof r == "object", x = (r) => O(r) && !m(r), K = (r) => typeof r == "string", d = (r) => typeof r == "function", P = (r) => r == null, R = (r, t) => Object.prototype.hasOwnProperty.call(r, t), v = Function.prototype.toString;
|
|
43
|
+
v.call(Object);
|
|
44
|
+
var I = (r, ...t) => (typeof r == "function" ? r(...t) : r) ?? void 0, T = (r) => r, J = (r) => r(), L = () => {
|
|
45
|
+
}, z = (...r) => (...t) => {
|
|
46
|
+
r.forEach(function(n) {
|
|
47
|
+
n == null || n(...t);
|
|
33
48
|
});
|
|
34
|
-
},
|
|
35
|
-
let
|
|
36
|
-
return () => (
|
|
49
|
+
}, B = /* @__PURE__ */ (() => {
|
|
50
|
+
let r = 0;
|
|
51
|
+
return () => (r++, r.toString(36));
|
|
37
52
|
})();
|
|
38
|
-
function
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
const i = r
|
|
42
|
-
return
|
|
53
|
+
function A(r, t, ...n) {
|
|
54
|
+
var e;
|
|
55
|
+
if (r in t) {
|
|
56
|
+
const i = t[r];
|
|
57
|
+
return d(i) ? i(...n) : i;
|
|
43
58
|
}
|
|
44
|
-
const o = new Error(`No matching key: ${JSON.stringify(
|
|
45
|
-
throw (
|
|
59
|
+
const o = new Error(`No matching key: ${JSON.stringify(r)} in ${JSON.stringify(Object.keys(t))}`);
|
|
60
|
+
throw (e = Error.captureStackTrace) == null || e.call(Error, o, A), o;
|
|
46
61
|
}
|
|
47
|
-
|
|
48
|
-
if (!
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const e = {}, o = {}, n = new Set(r);
|
|
56
|
-
for (const i in t)
|
|
57
|
-
n.has(i) ? o[i] = t[i] : e[i] = t[i];
|
|
58
|
-
return [o, e];
|
|
62
|
+
function j(r) {
|
|
63
|
+
if (!E(r) || r === void 0) return r;
|
|
64
|
+
const t = Reflect.ownKeys(r).filter((o) => typeof o == "string"), n = {};
|
|
65
|
+
for (const o of t) {
|
|
66
|
+
const e = r[o];
|
|
67
|
+
e !== void 0 && (n[o] = j(e));
|
|
68
|
+
}
|
|
69
|
+
return n;
|
|
59
70
|
}
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const r = Reflect.ownKeys(t).filter((o) => typeof o == "string"), e = {};
|
|
67
|
-
for (const o of r) {
|
|
68
|
-
const n = t[o];
|
|
69
|
-
n !== void 0 && (e[o] = N(n));
|
|
71
|
+
var E = (r) => r && typeof r == "object" && r.constructor === Object;
|
|
72
|
+
function D(r, t) {
|
|
73
|
+
const n = performance.now();
|
|
74
|
+
let o;
|
|
75
|
+
function e(i) {
|
|
76
|
+
o = requestAnimationFrame(e), i - n >= t && r();
|
|
70
77
|
}
|
|
71
|
-
return e;
|
|
78
|
+
return o = requestAnimationFrame(e), () => cancelAnimationFrame(o);
|
|
79
|
+
}
|
|
80
|
+
function V(...r) {
|
|
81
|
+
const t = r.length === 1 ? r[0] : r[1];
|
|
82
|
+
(r.length === 2 ? r[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(t);
|
|
72
83
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const r = t.length === 1 ? t[0] : t[1];
|
|
76
|
-
(t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(r);
|
|
84
|
+
function _(r, t) {
|
|
85
|
+
if (r == null) throw new Error(t());
|
|
77
86
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
function C(r, t, n) {
|
|
88
|
+
let o = [];
|
|
89
|
+
for (const e of t)
|
|
90
|
+
r[e] == null && o.push(e);
|
|
91
|
+
if (o.length > 0)
|
|
92
|
+
throw new Error(`[zag-js${` > ${n}`}] missing required props: ${o.join(", ")}`);
|
|
82
93
|
}
|
|
83
94
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
x as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
D as
|
|
113
|
-
|
|
95
|
+
y as add,
|
|
96
|
+
q as addOrRemove,
|
|
97
|
+
z as callAll,
|
|
98
|
+
T as cast,
|
|
99
|
+
j as compact,
|
|
100
|
+
_ as ensure,
|
|
101
|
+
C as ensureProps,
|
|
102
|
+
k as first,
|
|
103
|
+
a as has,
|
|
104
|
+
R as hasProp,
|
|
105
|
+
J as identity,
|
|
106
|
+
m as isArray,
|
|
107
|
+
$ as isBoolean,
|
|
108
|
+
l as isEqual,
|
|
109
|
+
d as isFunction,
|
|
110
|
+
P as isNull,
|
|
111
|
+
x as isObject,
|
|
112
|
+
O as isObjectLike,
|
|
113
|
+
K as isString,
|
|
114
|
+
S as last,
|
|
115
|
+
A as match,
|
|
116
|
+
F as next,
|
|
117
|
+
f as nextIndex,
|
|
118
|
+
L as noop,
|
|
119
|
+
N as prev,
|
|
120
|
+
g as prevIndex,
|
|
121
|
+
p as remove,
|
|
122
|
+
I as runIfFn,
|
|
123
|
+
D as setRafTimeout,
|
|
124
|
+
w as toArray,
|
|
125
|
+
B as uuid,
|
|
126
|
+
V as warn
|
|
114
127
|
};
|