sibujs 4.5.0 → 4.7.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/README.md +1 -1
- package/dist/browser.cjs +326 -133
- package/dist/browser.d.cts +46 -14
- package/dist/browser.d.ts +46 -14
- package/dist/browser.js +8 -6
- package/dist/build.cjs +2094 -1033
- package/dist/build.d.cts +133 -44
- package/dist/build.d.ts +133 -44
- package/dist/build.js +1372 -574
- package/dist/cdn.dev.global.js +10 -10
- package/dist/cdn.full.dev.global.js +11 -11
- package/dist/cdn.full.global.js +10 -10
- package/dist/cdn.global.js +10 -10
- package/dist/{chunk-2DCGACUU.js → chunk-2BPG2XDA.js} +251 -66
- package/dist/{chunk-IXKSNWV5.js → chunk-2INLLLMZ.js} +1 -1
- package/dist/{chunk-4PMLNECI.js → chunk-3QWBSL5R.js} +98 -29
- package/dist/{chunk-KKLW7YWL.js → chunk-4AWA2PVD.js} +275 -144
- package/dist/chunk-5HZXGZ6T.js +24 -0
- package/dist/{chunk-PCT43HW3.js → chunk-7LUJQAOJ.js} +1 -1
- package/dist/{chunk-5DXA2J44.js → chunk-7XHATCIH.js} +5 -2
- package/dist/chunk-BC2SECJD.js +44 -0
- package/dist/{chunk-TBYTO6BS.js → chunk-BSY63EM6.js} +136 -80
- package/dist/{chunk-FTIR4QW2.js → chunk-DKXRACVN.js} +6 -8
- package/dist/{chunk-ONOHFDLG.js → chunk-FNJXNGYZ.js} +3 -3
- package/dist/{chunk-XZZOBQAY.js → chunk-FQRUXCEE.js} +6 -5
- package/dist/{chunk-NIOYEGBQ.js → chunk-HURREPU2.js} +27 -13
- package/dist/chunk-J6FW5TV6.js +233 -0
- package/dist/{chunk-UGRX3S57.js → chunk-JWKYU5GV.js} +22 -4
- package/dist/chunk-NYNYSPK7.js +318 -0
- package/dist/{chunk-RBTPLM32.js → chunk-RUSSKG6G.js} +13 -12
- package/dist/{chunk-7LN645I6.js → chunk-SLM3IA34.js} +3 -3
- package/dist/{chunk-R25EFXXC.js → chunk-TUCPL2HB.js} +3 -3
- package/dist/{chunk-B3WHI2QA.js → chunk-UNWRJRKC.js} +55 -31
- package/dist/{chunk-KEISJXBU.js → chunk-UOL2ECCS.js} +44 -17
- package/dist/{chunk-RJE2BNI4.js → chunk-VZSG24LS.js} +108 -45
- package/dist/{chunk-RIXRAYIU.js → chunk-WEQ3DMVL.js} +10 -4
- package/dist/{chunk-3JZ4L5TJ.js → chunk-WOLJZUFQ.js} +354 -90
- package/dist/{chunk-S373NSMK.js → chunk-XYV3EDB7.js} +283 -123
- package/dist/{chunk-VZKNK2V7.js → chunk-XZR4PXRE.js} +296 -38
- package/dist/{chunk-GW3SCCZG.js → chunk-Z3OHK6QT.js} +153 -110
- package/dist/{chunk-OMJJM3KM.js → chunk-ZVL7TY4K.js} +287 -130
- package/dist/{contracts-DBdg9J_a.d.ts → contracts-CLqzJnOV.d.ts} +36 -17
- package/dist/{contracts-DBdg9J_a.d.cts → contracts-CTOJXu-x.d.cts} +36 -17
- package/dist/{customElement-OB9CIsc5.d.cts → customElement-MmInOW1U.d.cts} +21 -0
- package/dist/{customElement-OB9CIsc5.d.ts → customElement-MmInOW1U.d.ts} +21 -0
- package/dist/data.cjs +410 -155
- package/dist/data.d.cts +166 -12
- package/dist/data.d.ts +166 -12
- package/dist/data.js +12 -9
- package/dist/devtools.cjs +98 -61
- package/dist/devtools.js +7 -8
- package/dist/dispose-GEIG2KOF.js +28 -0
- package/dist/ecosystem.cjs +372 -126
- package/dist/ecosystem.d.cts +20 -3
- package/dist/ecosystem.d.ts +20 -3
- package/dist/ecosystem.js +12 -12
- package/dist/extras.cjs +2366 -909
- package/dist/extras.d.cts +11 -9
- package/dist/extras.d.ts +11 -9
- package/dist/extras.js +39 -28
- package/dist/index.cjs +421 -158
- package/dist/index.d.cts +213 -171
- package/dist/index.d.ts +213 -171
- package/dist/index.js +24 -27
- package/dist/motion.cjs +118 -44
- package/dist/motion.js +5 -5
- package/dist/patterns.cjs +344 -53
- package/dist/patterns.d.cts +28 -9
- package/dist/patterns.d.ts +28 -9
- package/dist/patterns.js +8 -8
- package/dist/performance.cjs +325 -220
- package/dist/performance.d.cts +2 -2
- package/dist/performance.d.ts +2 -2
- package/dist/performance.js +8 -9
- package/dist/plugin-DVgSnTfK.d.cts +112 -0
- package/dist/plugin-DVgSnTfK.d.ts +112 -0
- package/dist/plugins.cjs +664 -233
- package/dist/plugins.d.cts +127 -14
- package/dist/plugins.d.ts +127 -14
- package/dist/plugins.js +96 -42
- package/dist/signal-EotCj4hS.d.cts +110 -0
- package/dist/signal-EotCj4hS.d.ts +110 -0
- package/dist/{ssr-BiPRdZ6n.d.cts → ssr-Bli9XRW5.d.cts} +5 -0
- package/dist/{ssr-BiPRdZ6n.d.ts → ssr-Bli9XRW5.d.ts} +5 -0
- package/dist/{ssr-Y7XOEPEN.js → ssr-XOTUASDO.js} +4 -5
- package/dist/ssr.cjs +229 -84
- package/dist/ssr.d.cts +9 -3
- package/dist/ssr.d.ts +9 -3
- package/dist/ssr.js +11 -12
- package/dist/{startup-BMpaiMhP.d.ts → startup-BLfSeL15.d.cts} +73 -22
- package/dist/{startup-BMpaiMhP.d.cts → startup-BLfSeL15.d.ts} +73 -22
- package/dist/tagFactory-8qL9LCIx.d.cts +156 -0
- package/dist/tagFactory-BL2fymez.d.ts +156 -0
- package/dist/testing.cjs +2503 -2191
- package/dist/testing.d.cts +56 -5
- package/dist/testing.d.ts +56 -5
- package/dist/testing.js +580 -307
- package/dist/types-CJFViL6Q.d.cts +26 -0
- package/dist/types-CJFViL6Q.d.ts +26 -0
- package/dist/ui.cjs +732 -329
- package/dist/ui.d.cts +41 -7
- package/dist/ui.d.ts +41 -7
- package/dist/ui.js +151 -56
- package/dist/widgets.cjs +267 -291
- package/dist/widgets.js +9 -10
- package/package.json +4 -2
- package/dist/chunk-2WLZ6757.js +0 -149
- package/dist/chunk-CCSJMTRN.js +0 -15
- package/dist/chunk-QKRPLZ2V.js +0 -108
- package/dist/chunk-VUF4ALSW.js +0 -60
- package/dist/chunk-WWV3SJ3L.js +0 -131
- package/dist/dispose-46BOMMQJ.js +0 -19
- package/dist/plugin-D30wlGW5.d.cts +0 -71
- package/dist/plugin-D30wlGW5.d.ts +0 -71
- package/dist/tagFactory-DVoDpHye.d.cts +0 -215
- package/dist/tagFactory-DVoDpHye.d.ts +0 -215
package/dist/ecosystem.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { S as SibuPlugin } from './plugin-
|
|
2
|
-
import { D as DerivedAccessor, T as TagProps } from './tagFactory-
|
|
1
|
+
import { S as SibuPlugin } from './plugin-DVgSnTfK.cjs';
|
|
2
|
+
import { D as DerivedAccessor, T as TagProps } from './tagFactory-8qL9LCIx.cjs';
|
|
3
|
+
import { N as NodeChildren } from './types-CJFViL6Q.cjs';
|
|
4
|
+
import './signal-EotCj4hS.cjs';
|
|
3
5
|
|
|
4
6
|
/** MobX autorun disposer function type. */
|
|
5
7
|
type MobXReactionDisposer = () => void;
|
|
@@ -163,6 +165,16 @@ interface ThemeAPI {
|
|
|
163
165
|
setTheme: (config: Partial<ThemeConfig>) => void;
|
|
164
166
|
/** Resolve a component class name using prefix and overrides */
|
|
165
167
|
resolveClass: (component: string, variant?: string) => string;
|
|
168
|
+
/**
|
|
169
|
+
* Install the theme's CSS variables on `root` (the theme root — typically the
|
|
170
|
+
* app container) and keep them in sync: variables added, changed or removed by
|
|
171
|
+
* `setTheme()` are reflected, and custom properties the theme never set are left
|
|
172
|
+
* alone. Handles may overlap on one root and be released in any order: the
|
|
173
|
+
* most recently applied live handle's value wins, and when no handle sets a
|
|
174
|
+
* property any more, the value and priority it had before are restored.
|
|
175
|
+
* Returns a function that stops syncing and releases this handle.
|
|
176
|
+
*/
|
|
177
|
+
applyTo: (root: HTMLElement) => () => void;
|
|
166
178
|
}
|
|
167
179
|
/**
|
|
168
180
|
* Creates a reactive theme for a UI component library adapter.
|
|
@@ -194,7 +206,12 @@ interface AdaptedComponentProps extends TagProps {
|
|
|
194
206
|
/** Component size (e.g., "sm", "md", "lg") */
|
|
195
207
|
size?: string;
|
|
196
208
|
}
|
|
197
|
-
|
|
209
|
+
/**
|
|
210
|
+
* A component produced by {@link componentAdapter}. Children may be passed
|
|
211
|
+
* positionally, exactly like a tag factory: `Button({ variant: "primary" }, "Save")`.
|
|
212
|
+
* Positional children take precedence over a `nodes` prop.
|
|
213
|
+
*/
|
|
214
|
+
type AdaptedComponent = (props?: AdaptedComponentProps, children?: NodeChildren) => Element;
|
|
198
215
|
/**
|
|
199
216
|
* Creates a set of SibuJS components from a CSS framework's class mappings.
|
|
200
217
|
*
|
package/dist/ecosystem.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { S as SibuPlugin } from './plugin-
|
|
2
|
-
import { D as DerivedAccessor, T as TagProps } from './tagFactory-
|
|
1
|
+
import { S as SibuPlugin } from './plugin-DVgSnTfK.js';
|
|
2
|
+
import { D as DerivedAccessor, T as TagProps } from './tagFactory-BL2fymez.js';
|
|
3
|
+
import { N as NodeChildren } from './types-CJFViL6Q.js';
|
|
4
|
+
import './signal-EotCj4hS.js';
|
|
3
5
|
|
|
4
6
|
/** MobX autorun disposer function type. */
|
|
5
7
|
type MobXReactionDisposer = () => void;
|
|
@@ -163,6 +165,16 @@ interface ThemeAPI {
|
|
|
163
165
|
setTheme: (config: Partial<ThemeConfig>) => void;
|
|
164
166
|
/** Resolve a component class name using prefix and overrides */
|
|
165
167
|
resolveClass: (component: string, variant?: string) => string;
|
|
168
|
+
/**
|
|
169
|
+
* Install the theme's CSS variables on `root` (the theme root — typically the
|
|
170
|
+
* app container) and keep them in sync: variables added, changed or removed by
|
|
171
|
+
* `setTheme()` are reflected, and custom properties the theme never set are left
|
|
172
|
+
* alone. Handles may overlap on one root and be released in any order: the
|
|
173
|
+
* most recently applied live handle's value wins, and when no handle sets a
|
|
174
|
+
* property any more, the value and priority it had before are restored.
|
|
175
|
+
* Returns a function that stops syncing and releases this handle.
|
|
176
|
+
*/
|
|
177
|
+
applyTo: (root: HTMLElement) => () => void;
|
|
166
178
|
}
|
|
167
179
|
/**
|
|
168
180
|
* Creates a reactive theme for a UI component library adapter.
|
|
@@ -194,7 +206,12 @@ interface AdaptedComponentProps extends TagProps {
|
|
|
194
206
|
/** Component size (e.g., "sm", "md", "lg") */
|
|
195
207
|
size?: string;
|
|
196
208
|
}
|
|
197
|
-
|
|
209
|
+
/**
|
|
210
|
+
* A component produced by {@link componentAdapter}. Children may be passed
|
|
211
|
+
* positionally, exactly like a tag factory: `Button({ variant: "primary" }, "Save")`.
|
|
212
|
+
* Positional children take precedence over a `nodes` prop.
|
|
213
|
+
*/
|
|
214
|
+
type AdaptedComponent = (props?: AdaptedComponentProps, children?: NodeChildren) => Element;
|
|
198
215
|
/**
|
|
199
216
|
* Creates a set of SibuJS components from a CSS framework's class mappings.
|
|
200
217
|
*
|
package/dist/ecosystem.js
CHANGED
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
mobXAdapter,
|
|
8
8
|
reduxAdapter,
|
|
9
9
|
zustandAdapter
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-3QWBSL5R.js";
|
|
11
|
+
import "./chunk-J6FW5TV6.js";
|
|
12
|
+
import "./chunk-UOL2ECCS.js";
|
|
13
|
+
import "./chunk-FNJXNGYZ.js";
|
|
14
|
+
import "./chunk-RUSSKG6G.js";
|
|
15
|
+
import "./chunk-2INLLLMZ.js";
|
|
16
16
|
import "./chunk-7ZHH77QA.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-WEQ3DMVL.js";
|
|
18
|
+
import "./chunk-7XHATCIH.js";
|
|
19
|
+
import "./chunk-5HZXGZ6T.js";
|
|
20
|
+
import "./chunk-FQRUXCEE.js";
|
|
21
|
+
import "./chunk-JWKYU5GV.js";
|
|
22
|
+
import "./chunk-NYNYSPK7.js";
|
|
23
23
|
export {
|
|
24
24
|
antdAdapter,
|
|
25
25
|
chakraAdapter,
|