@cascivo/react 0.16.1 → 0.17.0
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/accordion/accordion.js +5 -4
- package/dist/app-shell/app-shell.css +1 -1
- package/dist/app-shell/app-shell.js +28 -26
- package/dist/app-shell/app-shell.module.js +8 -8
- package/dist/button/button.css +1 -1
- package/dist/button/button.js +4 -1
- package/dist/button/button.module.js +4 -1
- package/dist/calendar/calendar.js +67 -63
- package/dist/card/card.css +1 -1
- package/dist/card/card.module.js +8 -8
- package/dist/checkbox/checkbox.css +1 -1
- package/dist/checkbox/checkbox.module.js +4 -4
- package/dist/combobox/combobox.js +55 -54
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +155 -160
- package/dist/data-table/data-table.module.js +29 -29
- package/dist/date-picker/date-picker.js +90 -89
- package/dist/field/field.css +1 -1
- package/dist/field/field.module.js +3 -3
- package/dist/index.d.ts +72 -4
- package/dist/layouts/src/grid/grid.css +1 -1
- package/dist/layouts/src/grid/grid.module.js +3 -3
- package/dist/node/accordion/accordion.js +5 -4
- package/dist/node/app-shell/app-shell.js +28 -26
- package/dist/node/app-shell/app-shell.module.js +8 -8
- package/dist/node/button/button.js +4 -1
- package/dist/node/button/button.module.js +4 -1
- package/dist/node/calendar/calendar.js +67 -63
- package/dist/node/card/card.module.js +8 -8
- package/dist/node/checkbox/checkbox.module.js +4 -4
- package/dist/node/combobox/combobox.js +55 -54
- package/dist/node/data-table/data-table.js +155 -160
- package/dist/node/data-table/data-table.module.js +29 -29
- package/dist/node/date-picker/date-picker.js +90 -89
- package/dist/node/field/field.module.js +3 -3
- package/dist/node/layouts/src/grid/grid.module.js +3 -3
- package/dist/node/search/search.js +5 -4
- package/dist/node/side-nav/side-nav.js +90 -89
- package/dist/node/swap/swap.js +2 -3
- package/dist/node/switcher/switcher.js +1 -1
- package/dist/node/tabs/tabs.js +5 -4
- package/dist/node/toc/toc.js +5 -4
- package/dist/search/search.js +5 -4
- package/dist/side-nav/side-nav.js +90 -89
- package/dist/styles.css +7 -7
- package/dist/swap/swap.js +2 -3
- package/dist/switcher/switcher.js +1 -1
- package/dist/tabs/tabs.js +5 -4
- package/dist/toc/toc.js +5 -4
- package/package.json +3 -3
package/dist/tabs/tabs.js
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import e from "./tabs.module.js";
|
|
4
4
|
import { createContext as t, forwardRef as n, useId as r, useRef as i } from "react";
|
|
5
|
-
import { Slot as a, cn as o,
|
|
5
|
+
import { Slot as a, cn as o, useControllableSignal as s, useSignals as c } from "@cascivo/core";
|
|
6
6
|
import { jsx as l } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/tabs/tabs.tsx
|
|
8
8
|
var u = t(null);
|
|
9
9
|
function d({ defaultValue: t, value: n, onValueChange: i, className: a, children: c }) {
|
|
10
|
-
let d = r(), f = s(
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
let d = r(), [f] = s({
|
|
11
|
+
value: n,
|
|
12
|
+
defaultValue: t ?? ""
|
|
13
|
+
}), p = {
|
|
13
14
|
active: f,
|
|
14
15
|
baseId: d,
|
|
15
16
|
setValue: (e) => {
|
package/dist/toc/toc.js
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import e from "./toc.module.js";
|
|
4
4
|
import { useRef as t } from "react";
|
|
5
|
-
import { cn as n,
|
|
5
|
+
import { cn as n, useControllableSignal as r, useSignalEffect as i, useSignals as a } from "@cascivo/core";
|
|
6
6
|
import { builtin as o, t as s } from "@cascivo/i18n";
|
|
7
7
|
import { jsx as c } from "react/jsx-runtime";
|
|
8
8
|
//#region ../components/src/toc/toc.tsx
|
|
9
9
|
function l({ items: l, activeId: u, onActiveChange: d, labels: f, className: p }) {
|
|
10
10
|
a();
|
|
11
|
-
let m = u !== void 0, h = r(
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
let m = u !== void 0, [h] = r({
|
|
12
|
+
value: u,
|
|
13
|
+
defaultValue: l[0]?.id ?? ""
|
|
14
|
+
}), g = t(d);
|
|
14
15
|
return g.current = d, i(() => {
|
|
15
16
|
if (m || typeof document > "u" || typeof IntersectionObserver > "u") return;
|
|
16
17
|
let e = l.map((e) => document.getElementById(e.id)).filter((e) => e !== null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cascivo/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Prebuilt cascivo design system components — use without copying source. @cascivo/themes installs with it; pair with @cascivo/charts (data-viz) and @cascivo/icons. Docs offline: npx @cascivo/docs",
|
|
6
6
|
"keywords": [
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"provenance": true
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cascivo/core": "^0.
|
|
49
|
-
"@cascivo/i18n": "^0.
|
|
48
|
+
"@cascivo/core": "^0.17.0",
|
|
49
|
+
"@cascivo/i18n": "^0.17.0",
|
|
50
50
|
"@cascivo/themes": "^0.4.11"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|