@nuee/ui 0.4.0 → 0.5.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/Icon.js +2 -0
- package/dist/Icon.js.map +2 -2
- package/dist/accordion.d.ts +4 -4
- package/dist/accordion.js +105 -207
- package/dist/accordion.js.map +4 -4
- package/dist/alert-dialog.d.ts +6 -6
- package/dist/alert-dialog.js +83 -352
- package/dist/alert-dialog.js.map +4 -4
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.js +6 -42
- package/dist/aspect-ratio.js.map +2 -2
- package/dist/attachment.d.ts +8 -8
- package/dist/attachment.js +82 -314
- package/dist/attachment.js.map +4 -4
- package/dist/avatar.d.ts +7 -9
- package/dist/avatar.js +29 -71
- package/dist/avatar.js.map +2 -2
- package/dist/badge.d.ts +2 -4
- package/dist/badge.js +7 -44
- package/dist/badge.js.map +2 -2
- package/dist/banner.d.ts +4 -7
- package/dist/banner.js +35 -273
- package/dist/banner.js.map +2 -2
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.js +12 -92
- package/dist/breadcrumb.js.map +4 -4
- package/dist/bubble.d.ts +6 -4
- package/dist/bubble.js +17 -55
- package/dist/bubble.js.map +2 -2
- package/dist/button-group.d.ts +5 -5
- package/dist/button-group.js +113 -159
- package/dist/button-group.js.map +4 -4
- package/dist/button.d.ts +7 -5
- package/dist/button.js +141 -44
- package/dist/button.js.map +2 -2
- package/dist/calendar.d.ts +9 -0
- package/dist/calendar.js +234 -0
- package/dist/calendar.js.map +7 -0
- package/dist/card.d.ts +3 -3
- package/dist/card.js +31 -216
- package/dist/card.js.map +2 -2
- package/dist/carousel.d.ts +28 -0
- package/dist/carousel.js +427 -0
- package/dist/carousel.js.map +7 -0
- package/dist/checkbox.d.ts +3 -3
- package/dist/checkbox.js +45 -115
- package/dist/checkbox.js.map +4 -4
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.js +96 -184
- package/dist/collapsible.js.map +4 -4
- package/dist/combobox.d.ts +6 -6
- package/dist/combobox.js +182 -268
- package/dist/combobox.js.map +4 -4
- package/dist/content-row.d.ts +7 -7
- package/dist/content-row.js +97 -241
- package/dist/content-row.js.map +3 -3
- package/dist/context-menu.js +15 -738
- package/dist/context-menu.js.map +4 -4
- package/dist/control-layout.d.ts +9 -0
- package/dist/date-picker.d.ts +11 -0
- package/dist/date-picker.js +140 -0
- package/dist/date-picker.js.map +7 -0
- package/dist/dialog.d.ts +5 -5
- package/dist/dialog.js +44 -161
- package/dist/dialog.js.map +4 -4
- package/dist/drawer.d.ts +8 -8
- package/dist/drawer.js +80 -119
- package/dist/drawer.js.map +2 -2
- package/dist/dropdown-menu.d.ts +8 -8
- package/dist/dropdown-menu.js +244 -416
- package/dist/dropdown-menu.js.map +4 -4
- package/dist/empty.d.ts +6 -6
- package/dist/empty.js +31 -210
- package/dist/empty.js.map +2 -2
- package/dist/field.d.ts +9 -9
- package/dist/field.js +81 -31
- package/dist/field.js.map +3 -3
- package/dist/global.css +5 -0
- package/dist/heading.d.ts +6 -0
- package/dist/heading.js +92 -0
- package/dist/heading.js.map +7 -0
- package/dist/hover-card.d.ts +7 -4
- package/dist/hover-card.js +51 -3
- package/dist/hover-card.js.map +2 -2
- package/dist/index.d.ts +14 -8
- package/dist/index.js +295 -12210
- package/dist/index.js.map +4 -4
- package/dist/input-group.d.ts +5 -5
- package/dist/input-group.js +95 -485
- package/dist/input-group.js.map +4 -4
- package/dist/input-otp.d.ts +6 -6
- package/dist/input-otp.js +18 -43
- package/dist/input-otp.js.map +2 -2
- package/dist/input.d.ts +3 -3
- package/dist/input.js +7 -4
- package/dist/input.js.map +2 -2
- package/dist/kbd.d.ts +2 -7
- package/dist/kbd.js +4 -99
- package/dist/kbd.js.map +3 -3
- package/dist/label.d.ts +2 -5
- package/dist/label.js +64 -39
- package/dist/label.js.map +3 -3
- package/dist/link.d.ts +3 -5
- package/dist/link.js +22 -107
- package/dist/link.js.map +4 -4
- package/dist/marker.d.ts +3 -3
- package/dist/marker.js +17 -104
- package/dist/marker.js.map +2 -2
- package/dist/menubar.d.ts +2 -2
- package/dist/menubar.js +36 -772
- package/dist/menubar.js.map +4 -4
- package/dist/message.d.ts +9 -6
- package/dist/message.js +35 -155
- package/dist/message.js.map +2 -2
- package/dist/native-select.d.ts +5 -5
- package/dist/native-select.js +24 -102
- package/dist/native-select.js.map +4 -4
- package/dist/navigation-menu.d.ts +7 -7
- package/dist/navigation-menu.js +183 -307
- package/dist/navigation-menu.js.map +4 -4
- package/dist/pagination.d.ts +5 -5
- package/dist/pagination.js +13 -92
- package/dist/pagination.js.map +4 -4
- package/dist/popover.d.ts +4 -4
- package/dist/popover.js +44 -36
- package/dist/popover.js.map +3 -3
- package/dist/primitives.js +2 -0
- package/dist/primitives.js.map +2 -2
- package/dist/progress.d.ts +3 -3
- package/dist/progress.js +16 -30
- package/dist/progress.js.map +2 -2
- package/dist/radio-group.d.ts +5 -5
- package/dist/radio-group.js +43 -49
- package/dist/radio-group.js.map +3 -3
- package/dist/reset.css +0 -1
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.js +56 -80
- package/dist/scroll-area.js.map +2 -2
- package/dist/select.d.ts +5 -5
- package/dist/select.js +169 -255
- package/dist/select.js.map +4 -4
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +11 -10
- package/dist/separator.js.map +2 -2
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.js +6 -37
- package/dist/skeleton.js.map +2 -2
- package/dist/slider.d.ts +3 -3
- package/dist/slider.js +37 -46
- package/dist/slider.js.map +2 -2
- package/dist/spinner.d.ts +2 -4
- package/dist/spinner.js +5 -61
- package/dist/spinner.js.map +3 -3
- package/dist/stylex.css +463 -307
- package/dist/switch.d.ts +3 -3
- package/dist/switch.js +49 -35
- package/dist/switch.js.map +3 -3
- package/dist/table.d.ts +9 -10
- package/dist/table.js +33 -274
- package/dist/table.js.map +2 -2
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.js +84 -135
- package/dist/tabs.js.map +3 -3
- package/dist/textarea.d.ts +3 -3
- package/dist/textarea.js +11 -43
- package/dist/textarea.js.map +2 -2
- package/dist/timeline.d.ts +19 -0
- package/dist/timeline.js +104 -0
- package/dist/timeline.js.map +7 -0
- package/dist/toast.d.ts +4 -2
- package/dist/toast.js +261 -485
- package/dist/toast.js.map +4 -4
- package/dist/toast.stylex.d.ts +4 -2
- package/dist/toggle-group.d.ts +5 -5
- package/dist/toggle-group.js +52 -60
- package/dist/toggle-group.js.map +3 -3
- package/dist/toggle.d.ts +3 -3
- package/dist/toggle.js +28 -20
- package/dist/toggle.js.map +3 -3
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +52 -44
- package/dist/tooltip.js.map +3 -3
- package/dist/typography.d.ts +50 -294
- package/package.json +15 -7
- package/dist/message-scroller.d.ts +0 -10
- package/dist/message-scroller.js +0 -464
- package/dist/message-scroller.js.map +0 -7
- package/dist/typography.js +0 -85
- package/dist/typography.js.map +0 -7
package/dist/separator.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
2
2
|
import * as stylex from "@stylexjs/stylex";
|
|
3
3
|
import type { ComponentProps } from "react";
|
|
4
|
-
export type SeparatorProps = ComponentProps<typeof SeparatorPrimitive> & {
|
|
4
|
+
export type SeparatorProps = Omit<ComponentProps<typeof SeparatorPrimitive>, "className" | "style"> & {
|
|
5
5
|
decorative?: boolean;
|
|
6
6
|
xstyle?: stylex.StyleXStyles;
|
|
7
7
|
};
|
package/dist/separator.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
// src/separator.tsx
|
|
2
4
|
import { c as _c } from "react/compiler-runtime";
|
|
3
5
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
@@ -47,24 +49,23 @@ function Separator(t0) {
|
|
|
47
49
|
}
|
|
48
50
|
const decorative = t1 === void 0 ? true : t1;
|
|
49
51
|
const orientation = t2 === void 0 ? "horizontal" : t2;
|
|
50
|
-
|
|
52
|
+
const t3 = decorative || void 0;
|
|
53
|
+
const t4 = decorative ? "presentation" : void 0;
|
|
54
|
+
let t5;
|
|
51
55
|
if ($[5] !== orientation || $[6] !== xstyle) {
|
|
52
|
-
|
|
56
|
+
t5 = stylex.props(styles.root, styles[orientation], xstyle);
|
|
53
57
|
$[5] = orientation;
|
|
54
58
|
$[6] = xstyle;
|
|
55
|
-
$[7] =
|
|
59
|
+
$[7] = t5;
|
|
56
60
|
} else {
|
|
57
|
-
|
|
61
|
+
t5 = $[7];
|
|
58
62
|
}
|
|
59
|
-
const stylexProps = t3;
|
|
60
|
-
const t4 = decorative || void 0;
|
|
61
|
-
const t5 = decorative ? "presentation" : void 0;
|
|
62
63
|
let t6;
|
|
63
|
-
if ($[8] !== orientation || $[9] !== props2 || $[10] !==
|
|
64
|
-
t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props2, "aria-hidden":
|
|
64
|
+
if ($[8] !== orientation || $[9] !== props2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {
|
|
65
|
+
t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props2, "aria-hidden": t3, orientation, role: t4, ...t5 });
|
|
65
66
|
$[8] = orientation;
|
|
66
67
|
$[9] = props2;
|
|
67
|
-
$[10] =
|
|
68
|
+
$[10] = t3;
|
|
68
69
|
$[11] = t4;
|
|
69
70
|
$[12] = t5;
|
|
70
71
|
$[13] = t6;
|
package/dist/separator.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/separator.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Separator as SeparatorPrimitive } from \"@base-ui/react/separator\";\nimport { colorVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst styles = {\n root: {\n kWkggS: \"xoec9bc\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n horizontal: {\n kZKoxP: \"x1c2adg6\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n vertical: {\n kSGwAc: \"xkh2ocl\",\n kAzted: \"x43ag4r\",\n kzqmXN: \"x1l4o4rh\",\n $$css: true\n }\n};\nexport type SeparatorProps = Omit<ComponentProps<typeof SeparatorPrimitive>, \"className\" | \"style\"> & {\n decorative?: boolean;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Separator(t0) {\n const $ = _c(14);\n let props;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n decorative: t1,\n orientation: t2,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = t2;\n $[4] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n t2 = $[3];\n xstyle = $[4];\n }\n const decorative = t1 === undefined ? true : t1;\n const orientation = t2 === undefined ? \"horizontal\" : t2;\n const t3 = decorative || undefined;\n const t4 = decorative ? \"presentation\" : undefined;\n let t5;\n if ($[5] !== orientation || $[6] !== xstyle) {\n t5 = stylex.props(styles.root, styles[orientation], xstyle);\n $[5] = orientation;\n $[6] = xstyle;\n $[7] = t5;\n } else {\n t5 = $[7];\n }\n let t6;\n if ($[8] !== orientation || $[9] !== props || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {\n t6 = <SeparatorPrimitive {...props} aria-hidden={t3} orientation={orientation} role={t4} {...t5} />;\n $[8] = orientation;\n $[9] = props;\n $[10] = t3;\n $[11] = t4;\n $[12] = t5;\n $[13] = t6;\n } else {\n t6 = $[13];\n }\n return t6;\n}"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,S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AAE,CAAC,MAAMA,UAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AAC1F,SAAK,oBAAC,sBAAoB,GAAGA,QAAO,eAAa,IAAI,aAA0B,MAAM,IAAK,GAAG,IAAI;AACjG,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as stylex from "@stylexjs/stylex";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
-
export type SkeletonProps = ComponentProps<"div"> & {
|
|
3
|
+
export type SkeletonProps = Omit<ComponentProps<"div">, "className" | "style"> & {
|
|
4
4
|
xstyle?: stylex.StyleXStyles;
|
|
5
5
|
};
|
|
6
6
|
export declare function Skeleton({ xstyle, ...props }: SkeletonProps): import("react").JSX.Element;
|
package/dist/skeleton.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/skeleton.tsx
|
|
2
|
-
import { c as _c } from "react/compiler-runtime";
|
|
3
2
|
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
var styles = {
|
|
@@ -8,47 +7,17 @@ var styles = {
|
|
|
8
7
|
ko0y90: "xa4qsjk",
|
|
9
8
|
kKVMdj: "xcx56e2",
|
|
10
9
|
kyAemX: "x4hg4is",
|
|
11
|
-
kWkggS: "
|
|
10
|
+
kWkggS: "xivdwog",
|
|
12
11
|
kaIpWk: "x7c24we",
|
|
13
12
|
kjO2d4: "x1aquc0h",
|
|
14
13
|
$$css: true
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
|
-
function Skeleton(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
({
|
|
23
|
-
xstyle,
|
|
24
|
-
...props2
|
|
25
|
-
} = t0);
|
|
26
|
-
$[0] = t0;
|
|
27
|
-
$[1] = props2;
|
|
28
|
-
$[2] = xstyle;
|
|
29
|
-
} else {
|
|
30
|
-
props2 = $[1];
|
|
31
|
-
xstyle = $[2];
|
|
32
|
-
}
|
|
33
|
-
let t1;
|
|
34
|
-
if ($[3] !== xstyle) {
|
|
35
|
-
t1 = stylex.props(styles.root, xstyle);
|
|
36
|
-
$[3] = xstyle;
|
|
37
|
-
$[4] = t1;
|
|
38
|
-
} else {
|
|
39
|
-
t1 = $[4];
|
|
40
|
-
}
|
|
41
|
-
const stylexProps = t1;
|
|
42
|
-
let t2;
|
|
43
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
44
|
-
t2 = /* @__PURE__ */ jsx("div", { ...props2, "aria-hidden": "true", ...stylexProps });
|
|
45
|
-
$[5] = props2;
|
|
46
|
-
$[6] = stylexProps;
|
|
47
|
-
$[7] = t2;
|
|
48
|
-
} else {
|
|
49
|
-
t2 = $[7];
|
|
50
|
-
}
|
|
51
|
-
return t2;
|
|
16
|
+
function Skeleton({
|
|
17
|
+
xstyle,
|
|
18
|
+
...props2
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { ...props2, "aria-hidden": "true", ...stylex.props(styles.root, xstyle) });
|
|
52
21
|
}
|
|
53
22
|
export {
|
|
54
23
|
Skeleton
|
package/dist/skeleton.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/skeleton.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { colorVars, radiusVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst pulse = \"x13kz0yu-B\";\nconst styles = {\n root: {\n k44tkh: \"xmg6eyc\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xcx56e2\",\n kyAemX: \"x4hg4is\",\n kWkggS: \"xivdwog\",\n kaIpWk: \"x7c24we\",\n kjO2d4: \"x1aquc0h\",\n $$css: true\n }\n};\nexport type SkeletonProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Skeleton({\n xstyle,\n ...props\n}: SkeletonProps) {\n return <div {...props} aria-hidden=\"true\" {...stylex.props(styles.root, xstyle)} />;\n}"],
|
|
5
|
+
"mappings": ";AACA,YAAY,YAAY;AAsBf;AAnBT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,SAAS;AAAA,EACvB;AAAA,EACA,GAAGA;AACL,GAAkB;AAChB,SAAO,oBAAC,SAAK,GAAGA,QAAO,eAAY,QAAQ,GAAU,aAAM,OAAO,MAAM,MAAM,GAAG;AACnF;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
2
|
-
import * as stylex from "@stylexjs/stylex";
|
|
3
2
|
import type { ComponentProps } from "react";
|
|
4
|
-
|
|
3
|
+
import type { ControlLayoutStyles } from "./control-layout";
|
|
4
|
+
export type SliderProps = Omit<ComponentProps<typeof SliderPrimitive.Root>, "className" | "style"> & {
|
|
5
5
|
/** Returns an accessible name for each thumb in a range slider. */
|
|
6
6
|
getAriaLabel?: (index: number) => string;
|
|
7
|
-
xstyle?:
|
|
7
|
+
xstyle?: ControlLayoutStyles;
|
|
8
8
|
};
|
|
9
9
|
export declare function Slider({ defaultValue, getAriaLabel, value, xstyle, ...props }: SliderProps): import("react").JSX.Element;
|
package/dist/slider.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
// src/slider.tsx
|
|
2
4
|
import { c as _c } from "react/compiler-runtime";
|
|
3
5
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
@@ -6,12 +8,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
8
|
var styles = {
|
|
7
9
|
root: {
|
|
8
10
|
kSiTet: "x1hc1fzr xfz0snt",
|
|
11
|
+
kIyJzY: "xdshaxz",
|
|
12
|
+
k1ekBW: "x19991ni",
|
|
13
|
+
kAMwcw: "xscx6xn",
|
|
9
14
|
kzqmXN: "xh8yej3",
|
|
10
15
|
$$css: true
|
|
11
16
|
}
|
|
12
17
|
};
|
|
13
18
|
function Slider(t0) {
|
|
14
|
-
const $ = _c(
|
|
19
|
+
const $ = _c(23);
|
|
15
20
|
let defaultValue;
|
|
16
21
|
let getAriaLabel;
|
|
17
22
|
let props2;
|
|
@@ -49,56 +54,42 @@ function Slider(t0) {
|
|
|
49
54
|
t1 = $[7];
|
|
50
55
|
}
|
|
51
56
|
const stylexProps = t1;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
t2 = () => stylexProps.className;
|
|
55
|
-
$[8] = stylexProps.className;
|
|
56
|
-
$[9] = t2;
|
|
57
|
-
} else {
|
|
58
|
-
t2 = $[9];
|
|
59
|
-
}
|
|
60
|
-
let t3;
|
|
61
|
-
if ($[10] !== stylexProps.style) {
|
|
62
|
-
t3 = () => stylexProps.style;
|
|
63
|
-
$[10] = stylexProps.style;
|
|
64
|
-
$[11] = t3;
|
|
65
|
-
} else {
|
|
66
|
-
t3 = $[11];
|
|
67
|
-
}
|
|
57
|
+
const t2 = stylexProps.className;
|
|
58
|
+
const t3 = stylexProps.style;
|
|
68
59
|
let t4;
|
|
69
|
-
if ($[
|
|
60
|
+
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
70
61
|
t4 = {
|
|
71
62
|
className: "x6s0dn4 x78zum5 xqq8mc5 x1n2onr6 x5ve5x3 xh8yej3"
|
|
72
63
|
};
|
|
73
|
-
$[
|
|
64
|
+
$[8] = t4;
|
|
74
65
|
} else {
|
|
75
|
-
t4 = $[
|
|
66
|
+
t4 = $[8];
|
|
76
67
|
}
|
|
77
68
|
let t5;
|
|
78
|
-
if ($[
|
|
69
|
+
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
79
70
|
t5 = {
|
|
80
|
-
className: "x13hkpcx x9gkxt8
|
|
71
|
+
className: "x13hkpcx x9gkxt8 x1w91hgg xb3r6kr xh8yej3"
|
|
81
72
|
};
|
|
82
|
-
$[
|
|
73
|
+
$[9] = t5;
|
|
83
74
|
} else {
|
|
84
|
-
t5 = $[
|
|
75
|
+
t5 = $[9];
|
|
85
76
|
}
|
|
86
77
|
let t6;
|
|
87
|
-
if ($[
|
|
78
|
+
if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
88
79
|
t6 = /* @__PURE__ */ jsx(SliderPrimitive.Track, { ...t5, children: /* @__PURE__ */ jsx(SliderPrimitive.Indicator, { className: "x92qhq x9gkxt8 x5yr21d" }) });
|
|
89
|
-
$[
|
|
80
|
+
$[10] = t6;
|
|
90
81
|
} else {
|
|
91
|
-
t6 = $[
|
|
82
|
+
t6 = $[10];
|
|
92
83
|
}
|
|
93
84
|
let t7;
|
|
94
|
-
if ($[
|
|
85
|
+
if ($[11] !== getAriaLabel || $[12] !== thumbCount) {
|
|
95
86
|
let t82;
|
|
96
|
-
if ($[
|
|
97
|
-
t82 = (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { getAriaLabel, index, className: "x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
87
|
+
if ($[14] !== getAriaLabel) {
|
|
88
|
+
t82 = (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { getAriaLabel, index, className: "x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xy4d3ni x1a2a7pz x1mu33zv x7yqiub xzvmsi2 x9v5kkp x11ci167" }, index);
|
|
89
|
+
$[14] = getAriaLabel;
|
|
90
|
+
$[15] = t82;
|
|
100
91
|
} else {
|
|
101
|
-
t82 = $[
|
|
92
|
+
t82 = $[15];
|
|
102
93
|
}
|
|
103
94
|
t7 = /* @__PURE__ */ jsxs(SliderPrimitive.Control, { ...t4, children: [
|
|
104
95
|
t6,
|
|
@@ -106,24 +97,24 @@ function Slider(t0) {
|
|
|
106
97
|
length: thumbCount
|
|
107
98
|
}, t82)
|
|
108
99
|
] });
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
100
|
+
$[11] = getAriaLabel;
|
|
101
|
+
$[12] = thumbCount;
|
|
102
|
+
$[13] = t7;
|
|
112
103
|
} else {
|
|
113
|
-
t7 = $[
|
|
104
|
+
t7 = $[13];
|
|
114
105
|
}
|
|
115
106
|
let t8;
|
|
116
|
-
if ($[
|
|
107
|
+
if ($[16] !== defaultValue || $[17] !== props2 || $[18] !== stylexProps.className || $[19] !== stylexProps.style || $[20] !== t7 || $[21] !== value) {
|
|
117
108
|
t8 = /* @__PURE__ */ jsx(SliderPrimitive.Root, { ...props2, defaultValue, value, className: t2, style: t3, children: t7 });
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
109
|
+
$[16] = defaultValue;
|
|
110
|
+
$[17] = props2;
|
|
111
|
+
$[18] = stylexProps.className;
|
|
112
|
+
$[19] = stylexProps.style;
|
|
113
|
+
$[20] = t7;
|
|
114
|
+
$[21] = value;
|
|
115
|
+
$[22] = t8;
|
|
125
116
|
} else {
|
|
126
|
-
t8 = $[
|
|
117
|
+
t8 = $[22];
|
|
127
118
|
}
|
|
128
119
|
return t8;
|
|
129
120
|
}
|
package/dist/slider.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/slider.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Slider as SliderPrimitive } from \"@base-ui/react/slider\";\nimport { colorVars, motionVars, opacityVars, radiusVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlLayoutStyles } from \"./control-layout\";\nconst styles = {\n root: {\n kSiTet: \"x1hc1fzr xfz0snt\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x19991ni\",\n kAMwcw: \"xscx6xn\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\nexport type SliderProps = Omit<ComponentProps<typeof SliderPrimitive.Root>, \"className\" | \"style\"> & {\n /** Returns an accessible name for each thumb in a range slider. */\n getAriaLabel?: (index: number) => string;\n xstyle?: ControlLayoutStyles;\n};\nexport function Slider(t0) {\n const $ = _c(23);\n let defaultValue;\n let getAriaLabel;\n let props;\n let value;\n let xstyle;\n if ($[0] !== t0) {\n ({\n defaultValue,\n getAriaLabel,\n value,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = defaultValue;\n $[2] = getAriaLabel;\n $[3] = props;\n $[4] = value;\n $[5] = xstyle;\n } else {\n defaultValue = $[1];\n getAriaLabel = $[2];\n props = $[3];\n value = $[4];\n xstyle = $[5];\n }\n const currentValue = value ?? defaultValue;\n const thumbCount = Array.isArray(currentValue) ? currentValue.length : 1;\n let t1;\n if ($[6] !== xstyle) {\n t1 = stylex.props(styles.root, xstyle);\n $[6] = xstyle;\n $[7] = t1;\n } else {\n t1 = $[7];\n }\n const stylexProps = t1;\n const t2 = stylexProps.className;\n const t3 = stylexProps.style;\n let t4;\n if ($[8] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t4 = {\n className: \"x6s0dn4 x78zum5 xqq8mc5 x1n2onr6 x5ve5x3 xh8yej3\"\n };\n $[8] = t4;\n } else {\n t4 = $[8];\n }\n let t5;\n if ($[9] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t5 = {\n className: \"x13hkpcx x9gkxt8 x1w91hgg xb3r6kr xh8yej3\"\n };\n $[9] = t5;\n } else {\n t5 = $[9];\n }\n let t6;\n if ($[10] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t6 = <SliderPrimitive.Track {...t5}><SliderPrimitive.Indicator className=\"x92qhq x9gkxt8 x5yr21d\" /></SliderPrimitive.Track>;\n $[10] = t6;\n } else {\n t6 = $[10];\n }\n let t7;\n if ($[11] !== getAriaLabel || $[12] !== thumbCount) {\n let t8;\n if ($[14] !== getAriaLabel) {\n t8 = (_, index) => <SliderPrimitive.Thumb getAriaLabel={getAriaLabel} index={index} key={index} className=\"x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xy4d3ni x1a2a7pz x1mu33zv x7yqiub xzvmsi2 x9v5kkp x11ci167\" />;\n $[14] = getAriaLabel;\n $[15] = t8;\n } else {\n t8 = $[15];\n }\n t7 = <SliderPrimitive.Control {...t4}>{t6}{Array.from({\n length: thumbCount\n }, t8)}</SliderPrimitive.Control>;\n $[11] = getAriaLabel;\n $[12] = thumbCount;\n $[13] = t7;\n } else {\n t7 = $[13];\n }\n let t8;\n if ($[16] !== defaultValue || $[17] !== props || $[18] !== stylexProps.className || $[19] !== stylexProps.style || $[20] !== t7 || $[21] !== value) {\n t8 = <SliderPrimitive.Root {...props} defaultValue={defaultValue} value={value} className={t2} style={t3}>{t7}</SliderPrimitive.Root>;\n $[16] = defaultValue;\n $[17] = props;\n $[18] = stylexProps.className;\n $[19] = stylexProps.style;\n $[20] = t7;\n $[21] = value;\n $[22] = t8;\n } else {\n t8 = $[22];\n }\n return t8;\n}"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAE1C,YAAY,YAAY;AA+EgB,cAe/B,YAf+B;AA5ExC,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAMO,SAAS,OAAO,IAAI;AACzB,QAAM,IAAI,GAAG,EAAE;AACf,MAAI;AACJ,MAAI;AACJ,MAAIA;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,mBAAe,EAAE,CAAC;AAClB,mBAAe,EAAE,CAAC;AAClB,IAAAA,SAAQ,EAAE,CAAC;AACX,YAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,QAAM,eAAe,SAAS;AAC9B,QAAM,aAAa,MAAM,QAAQ,YAAY,IAAI,aAAa,SAAS;AACvE,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAY,aAAM,OAAO,MAAM,MAAM;AACrC,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,Q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,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,gBAAgB,EAAE,EAAE,MAAMD,UAAS,EAAE,EAAE,MAAM,YAAY,aAAa,EAAE,EAAE,MAAM,YAAY,SAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,OAAO;AAClJ,SAAK,oBAAC,gBAAgB,MAAhB,EAAsB,GAAGA,QAAO,cAA4B,OAAc,WAAW,IAAI,OAAO,IAAK,cAAG;AAC9G,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI,YAAY;AACpB,MAAE,EAAE,IAAI,YAAY;AACpB,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["props", "t8"]
|
|
7
7
|
}
|
package/dist/spinner.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as stylex from "@stylexjs/stylex";
|
|
2
1
|
import type { ComponentProps } from "react";
|
|
3
|
-
export type SpinnerProps = ComponentProps<"output"> & {
|
|
2
|
+
export type SpinnerProps = Omit<ComponentProps<"output">, "className" | "style"> & {
|
|
4
3
|
label?: string;
|
|
5
|
-
xstyle?: stylex.StyleXStyles;
|
|
6
4
|
};
|
|
7
|
-
export declare function Spinner({ label,
|
|
5
|
+
export declare function Spinner({ label, ...props }: SpinnerProps): import("react").JSX.Element;
|
package/dist/spinner.js
CHANGED
|
@@ -1,66 +1,10 @@
|
|
|
1
1
|
// src/spinner.tsx
|
|
2
|
-
import { c as _c } from "react/compiler-runtime";
|
|
3
|
-
import * as stylex from "@stylexjs/stylex";
|
|
4
2
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
kyAemX: "x1esw782",
|
|
11
|
-
kVAM5u: "x13xm7is",
|
|
12
|
-
kaIpWk: "x9gkxt8",
|
|
13
|
-
k26BEO: "x18v6yaz",
|
|
14
|
-
ksu8eU: "x1y0btm7",
|
|
15
|
-
kMzoRj: "x1shk7dx",
|
|
16
|
-
k1xSpc: "x1rg5ohu",
|
|
17
|
-
kZKoxP: "xswfmaf",
|
|
18
|
-
kzqmXN: "xmkpuva",
|
|
19
|
-
kkDQuc: "xfs3gwd",
|
|
20
|
-
$$css: true
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
function Spinner(t0) {
|
|
24
|
-
const $ = _c(10);
|
|
25
|
-
let props2;
|
|
26
|
-
let t1;
|
|
27
|
-
let xstyle;
|
|
28
|
-
if ($[0] !== t0) {
|
|
29
|
-
({
|
|
30
|
-
label: t1,
|
|
31
|
-
xstyle,
|
|
32
|
-
...props2
|
|
33
|
-
} = t0);
|
|
34
|
-
$[0] = t0;
|
|
35
|
-
$[1] = props2;
|
|
36
|
-
$[2] = t1;
|
|
37
|
-
$[3] = xstyle;
|
|
38
|
-
} else {
|
|
39
|
-
props2 = $[1];
|
|
40
|
-
t1 = $[2];
|
|
41
|
-
xstyle = $[3];
|
|
42
|
-
}
|
|
43
|
-
const label = t1 === void 0 ? "Loading" : t1;
|
|
44
|
-
let t2;
|
|
45
|
-
if ($[4] !== xstyle) {
|
|
46
|
-
t2 = stylex.props(styles.root, xstyle);
|
|
47
|
-
$[4] = xstyle;
|
|
48
|
-
$[5] = t2;
|
|
49
|
-
} else {
|
|
50
|
-
t2 = $[5];
|
|
51
|
-
}
|
|
52
|
-
const stylexProps = t2;
|
|
53
|
-
let t3;
|
|
54
|
-
if ($[6] !== label || $[7] !== props2 || $[8] !== stylexProps) {
|
|
55
|
-
t3 = /* @__PURE__ */ jsx("output", { ...props2, "aria-label": label, ...stylexProps });
|
|
56
|
-
$[6] = label;
|
|
57
|
-
$[7] = props2;
|
|
58
|
-
$[8] = stylexProps;
|
|
59
|
-
$[9] = t3;
|
|
60
|
-
} else {
|
|
61
|
-
t3 = $[9];
|
|
62
|
-
}
|
|
63
|
-
return t3;
|
|
3
|
+
function Spinner({
|
|
4
|
+
label = "Loading",
|
|
5
|
+
...props
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx("output", { ...props, "aria-label": label, className: "xx1h35u xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x18v6yaz x1y0btm7 x1shk7dx x1rg5ohu xswfmaf xmkpuva xs9k882" });
|
|
64
8
|
}
|
|
65
9
|
export {
|
|
66
10
|
Spinner
|
package/dist/spinner.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/spinner.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["import { colorVars, motionVars, radiusVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst spin = \"x1fy8ia8-B\";\nexport type SpinnerProps = Omit<ComponentProps<\"output\">, \"className\" | \"style\"> & {\n label?: string;\n};\nexport function Spinner({\n label = \"Loading\",\n ...props\n}: SpinnerProps) {\n return <output {...props} aria-label={label} className=\"xx1h35u xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x18v6yaz x1y0btm7 x1shk7dx x1rg5ohu xswfmaf xmkpuva xs9k882\" />;\n}"],
|
|
5
|
+
"mappings": ";AAWS;AAJF,SAAS,QAAQ;AAAA,EACtB,QAAQ;AAAA,EACR,GAAG;AACL,GAAiB;AACf,SAAO,oBAAC,YAAQ,GAAG,OAAO,cAAY,OAAO,WAAU,iHAAgH;AACzK;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|