@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/bubble.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as stylex from "@stylexjs/stylex";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type BubbleAlign = "start" | "end";
|
|
4
|
+
export type BubbleVariant = "default" | "primary" | "outline";
|
|
5
|
+
export type BubbleProps = Omit<ComponentProps<"div">, "className" | "style"> & {
|
|
6
|
+
align?: BubbleAlign;
|
|
7
|
+
variant?: BubbleVariant;
|
|
6
8
|
xstyle?: stylex.StyleXStyles;
|
|
7
9
|
};
|
|
8
|
-
export declare function Bubble({
|
|
10
|
+
export declare function Bubble({ align, variant, xstyle, ...props }: BubbleProps): import("react").JSX.Element;
|
package/dist/bubble.js
CHANGED
|
@@ -1,91 +1,53 @@
|
|
|
1
1
|
// src/bubble.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 = {
|
|
6
5
|
root: {
|
|
7
6
|
kGuDYH: "x99mhxu",
|
|
8
7
|
kLWn49: "xi1fz51",
|
|
9
|
-
ks0D6T: "
|
|
8
|
+
ks0D6T: "x1ihlfi",
|
|
10
9
|
k8WAf4: "x172mi11",
|
|
11
10
|
kg3NbH: "x19pklni",
|
|
12
11
|
khDVqt: "x126k92a",
|
|
13
12
|
$$css: true
|
|
14
13
|
},
|
|
15
|
-
|
|
14
|
+
alignStart: {
|
|
16
15
|
kSGwAc: "xqcrz7y",
|
|
17
16
|
kqGeR4: "x4cpyzu",
|
|
18
17
|
kaIpWk: "x7c24we",
|
|
19
18
|
$$css: true
|
|
20
19
|
},
|
|
21
|
-
|
|
20
|
+
alignEnd: {
|
|
22
21
|
kSGwAc: "xpvyfi4",
|
|
23
22
|
kYm2EN: "x62l8f0",
|
|
24
23
|
kaIpWk: "x7c24we",
|
|
25
24
|
$$css: true
|
|
26
25
|
},
|
|
27
|
-
|
|
26
|
+
default: {
|
|
28
27
|
kWkggS: "x13hkpcx",
|
|
29
28
|
kMwMTN: "x1alews2",
|
|
30
29
|
$$css: true
|
|
31
30
|
},
|
|
31
|
+
primary: {
|
|
32
|
+
kWkggS: "x1fu17qy",
|
|
33
|
+
kMwMTN: "xrbreni",
|
|
34
|
+
$$css: true
|
|
35
|
+
},
|
|
32
36
|
outline: {
|
|
33
|
-
kWkggS: "x8m6yc2",
|
|
34
37
|
kVAM5u: "x13xm7is",
|
|
35
38
|
ksu8eU: "x1y0btm7",
|
|
36
|
-
kMzoRj: "
|
|
39
|
+
kMzoRj: "xzgztj1",
|
|
37
40
|
kMwMTN: "x1alews2",
|
|
38
41
|
$$css: true
|
|
39
42
|
}
|
|
40
43
|
};
|
|
41
|
-
function Bubble(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
({
|
|
49
|
-
side: t1,
|
|
50
|
-
variant: t2,
|
|
51
|
-
xstyle,
|
|
52
|
-
...props2
|
|
53
|
-
} = t0);
|
|
54
|
-
$[0] = t0;
|
|
55
|
-
$[1] = props2;
|
|
56
|
-
$[2] = t1;
|
|
57
|
-
$[3] = t2;
|
|
58
|
-
$[4] = xstyle;
|
|
59
|
-
} else {
|
|
60
|
-
props2 = $[1];
|
|
61
|
-
t1 = $[2];
|
|
62
|
-
t2 = $[3];
|
|
63
|
-
xstyle = $[4];
|
|
64
|
-
}
|
|
65
|
-
const side = t1 === void 0 ? "incoming" : t1;
|
|
66
|
-
const variant = t2 === void 0 ? "default" : t2;
|
|
67
|
-
let t3;
|
|
68
|
-
if ($[5] !== side || $[6] !== variant || $[7] !== xstyle) {
|
|
69
|
-
t3 = stylex.props(styles.root, styles[side], variant === "default" ? styles.variantDefault : styles[variant], xstyle);
|
|
70
|
-
$[5] = side;
|
|
71
|
-
$[6] = variant;
|
|
72
|
-
$[7] = xstyle;
|
|
73
|
-
$[8] = t3;
|
|
74
|
-
} else {
|
|
75
|
-
t3 = $[8];
|
|
76
|
-
}
|
|
77
|
-
const resolved = t3;
|
|
78
|
-
let t4;
|
|
79
|
-
if ($[9] !== props2 || $[10] !== resolved || $[11] !== side) {
|
|
80
|
-
t4 = /* @__PURE__ */ jsx("div", { ...props2, ...resolved, "data-side": side });
|
|
81
|
-
$[9] = props2;
|
|
82
|
-
$[10] = resolved;
|
|
83
|
-
$[11] = side;
|
|
84
|
-
$[12] = t4;
|
|
85
|
-
} else {
|
|
86
|
-
t4 = $[12];
|
|
87
|
-
}
|
|
88
|
-
return t4;
|
|
44
|
+
function Bubble({
|
|
45
|
+
align = "start",
|
|
46
|
+
variant = "default",
|
|
47
|
+
xstyle,
|
|
48
|
+
...props2
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ jsx("div", { ...props2, "data-align": align, "data-variant": variant, ...stylex.props(styles.root, align === "start" ? styles.alignStart : styles.alignEnd, styles[variant], xstyle) });
|
|
89
51
|
}
|
|
90
52
|
export {
|
|
91
53
|
Bubble
|
package/dist/bubble.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/bubble.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst styles = {\n root: {\n kGuDYH: \"x99mhxu\",\n kLWn49: \"xi1fz51\",\n ks0D6T: \"x1ihlfi\",\n k8WAf4: \"x172mi11\",\n kg3NbH: \"x19pklni\",\n khDVqt: \"x126k92a\",\n $$css: true\n },\n alignStart: {\n kSGwAc: \"xqcrz7y\",\n kqGeR4: \"x4cpyzu\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n alignEnd: {\n kSGwAc: \"xpvyfi4\",\n kYm2EN: \"x62l8f0\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n default: {\n kWkggS: \"x13hkpcx\",\n kMwMTN: \"x1alews2\",\n $$css: true\n },\n primary: {\n kWkggS: \"x1fu17qy\",\n kMwMTN: \"xrbreni\",\n $$css: true\n },\n outline: {\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1alews2\",\n $$css: true\n }\n};\nexport type BubbleAlign = \"start\" | \"end\";\nexport type BubbleVariant = \"default\" | \"primary\" | \"outline\";\nexport type BubbleProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & {\n align?: BubbleAlign;\n variant?: BubbleVariant;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Bubble({\n align = \"start\",\n variant = \"default\",\n xstyle,\n ...props\n}: BubbleProps) {\n return <div {...props} data-align={align} data-variant={variant} {...stylex.props(styles.root, align === \"start\" ? styles.alignStart : styles.alignEnd, styles[variant], xstyle)} />;\n}"],
|
|
5
|
+
"mappings": ";AACA,YAAY,YAAY;AAuDf;AArDT,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,OAAO;AAAA,EACT;AAAA,EACA,YAAY;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAQO,SAAS,OAAO;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV;AAAA,EACA,GAAGA;AACL,GAAgB;AACd,SAAO,oBAAC,SAAK,GAAGA,QAAO,cAAY,OAAO,gBAAc,SAAU,GAAU,aAAM,OAAO,MAAM,UAAU,UAAU,OAAO,aAAa,OAAO,UAAU,OAAO,OAAO,GAAG,MAAM,GAAG;AACpL;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/button-group.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as stylex from "@stylexjs/stylex";
|
|
2
|
-
import { type ComponentProps
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
3
|
import { Separator } from "./separator";
|
|
4
4
|
type StyleProps = {
|
|
5
|
-
style?: CSSProperties;
|
|
6
5
|
xstyle?: stylex.StyleXStyles;
|
|
7
6
|
};
|
|
8
|
-
|
|
7
|
+
/** Direct children must be Nuee buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */
|
|
8
|
+
export type ButtonGroupProps = Omit<ComponentProps<"div">, "className" | "style"> & StyleProps & {
|
|
9
9
|
orientation?: "horizontal" | "vertical";
|
|
10
10
|
};
|
|
11
11
|
export declare function ButtonGroup({ children, orientation, role, xstyle, ...props }: ButtonGroupProps): import("react").JSX.Element;
|
|
12
|
-
export declare function ButtonGroupText({ xstyle, ...props }: ComponentProps<"span"> & StyleProps): import("react").JSX.Element;
|
|
13
|
-
export declare function ButtonGroupSeparator({ orientation, xstyle, ...props }: ComponentProps<typeof Separator> & StyleProps): import("react").JSX.Element;
|
|
12
|
+
export declare function ButtonGroupText({ xstyle, ...props }: Omit<ComponentProps<"span">, "className" | "style"> & StyleProps): import("react").JSX.Element;
|
|
13
|
+
export declare function ButtonGroupSeparator({ orientation, xstyle, ...props }: Omit<ComponentProps<typeof Separator>, "className" | "style"> & StyleProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
package/dist/button-group.js
CHANGED
|
@@ -1,88 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { c as _c2 } from "react/compiler-runtime";
|
|
3
|
-
import * as stylex2 from "@stylexjs/stylex";
|
|
4
|
-
import { Children, cloneElement, isValidElement } from "react";
|
|
1
|
+
"use client";
|
|
5
2
|
|
|
6
|
-
// src/
|
|
3
|
+
// src/button-group.tsx
|
|
7
4
|
import { c as _c } from "react/compiler-runtime";
|
|
8
|
-
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
9
5
|
import * as stylex from "@stylexjs/stylex";
|
|
6
|
+
import { Children, Fragment, cloneElement, isValidElement } from "react";
|
|
7
|
+
import { Separator } from "./separator.js";
|
|
10
8
|
import { jsx } from "react/jsx-runtime";
|
|
11
9
|
var styles = {
|
|
12
|
-
root: {
|
|
13
|
-
kWkggS: "xoec9bc",
|
|
14
|
-
kmuXW: "x2lah0s",
|
|
15
|
-
$$css: true
|
|
16
|
-
},
|
|
17
|
-
horizontal: {
|
|
18
|
-
kZKoxP: "x1c2adg6",
|
|
19
|
-
kzqmXN: "xh8yej3",
|
|
20
|
-
$$css: true
|
|
21
|
-
},
|
|
22
|
-
vertical: {
|
|
23
|
-
kSGwAc: "xkh2ocl",
|
|
24
|
-
kAzted: "x43ag4r",
|
|
25
|
-
kzqmXN: "x1l4o4rh",
|
|
26
|
-
$$css: true
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
function Separator(t0) {
|
|
30
|
-
const $ = _c(14);
|
|
31
|
-
let props3;
|
|
32
|
-
let t1;
|
|
33
|
-
let t2;
|
|
34
|
-
let xstyle;
|
|
35
|
-
if ($[0] !== t0) {
|
|
36
|
-
({
|
|
37
|
-
decorative: t1,
|
|
38
|
-
orientation: t2,
|
|
39
|
-
xstyle,
|
|
40
|
-
...props3
|
|
41
|
-
} = t0);
|
|
42
|
-
$[0] = t0;
|
|
43
|
-
$[1] = props3;
|
|
44
|
-
$[2] = t1;
|
|
45
|
-
$[3] = t2;
|
|
46
|
-
$[4] = xstyle;
|
|
47
|
-
} else {
|
|
48
|
-
props3 = $[1];
|
|
49
|
-
t1 = $[2];
|
|
50
|
-
t2 = $[3];
|
|
51
|
-
xstyle = $[4];
|
|
52
|
-
}
|
|
53
|
-
const decorative = t1 === void 0 ? true : t1;
|
|
54
|
-
const orientation = t2 === void 0 ? "horizontal" : t2;
|
|
55
|
-
let t3;
|
|
56
|
-
if ($[5] !== orientation || $[6] !== xstyle) {
|
|
57
|
-
t3 = stylex.props(styles.root, styles[orientation], xstyle);
|
|
58
|
-
$[5] = orientation;
|
|
59
|
-
$[6] = xstyle;
|
|
60
|
-
$[7] = t3;
|
|
61
|
-
} else {
|
|
62
|
-
t3 = $[7];
|
|
63
|
-
}
|
|
64
|
-
const stylexProps = t3;
|
|
65
|
-
const t4 = decorative || void 0;
|
|
66
|
-
const t5 = decorative ? "presentation" : void 0;
|
|
67
|
-
let t6;
|
|
68
|
-
if ($[8] !== orientation || $[9] !== props3 || $[10] !== stylexProps || $[11] !== t4 || $[12] !== t5) {
|
|
69
|
-
t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props3, "aria-hidden": t4, orientation, role: t5, ...stylexProps });
|
|
70
|
-
$[8] = orientation;
|
|
71
|
-
$[9] = props3;
|
|
72
|
-
$[10] = stylexProps;
|
|
73
|
-
$[11] = t4;
|
|
74
|
-
$[12] = t5;
|
|
75
|
-
$[13] = t6;
|
|
76
|
-
} else {
|
|
77
|
-
t6 = $[13];
|
|
78
|
-
}
|
|
79
|
-
return t6;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// src/button-group.tsx
|
|
83
|
-
import { radiusVars } from "@nuee/tokens/semantic.stylex";
|
|
84
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
85
|
-
var styles2 = {
|
|
86
10
|
root: {
|
|
87
11
|
kGNEyG: "x1qjc9v5",
|
|
88
12
|
k1xSpc: "x3nfvp2",
|
|
@@ -112,7 +36,26 @@ var styles2 = {
|
|
|
112
36
|
keTefX: "x1lziwak",
|
|
113
37
|
$$css: true
|
|
114
38
|
},
|
|
39
|
+
horizontalOnlyItem: {
|
|
40
|
+
kaIpWk: "x7c24we",
|
|
41
|
+
$$css: true
|
|
42
|
+
},
|
|
43
|
+
horizontalFirstItemRadius: {
|
|
44
|
+
kqGeR4: "x4cpyzu",
|
|
45
|
+
kYm2EN: "xjppbhk",
|
|
46
|
+
kIxVMA: "x1nema14",
|
|
47
|
+
ksF3WI: "x1a2w583",
|
|
48
|
+
$$css: true
|
|
49
|
+
},
|
|
50
|
+
horizontalMiddleItem: {
|
|
51
|
+
kaIpWk: "x2u8bby",
|
|
52
|
+
$$css: true
|
|
53
|
+
},
|
|
115
54
|
horizontalLastItem: {
|
|
55
|
+
kqGeR4: "xfrllxf",
|
|
56
|
+
kYm2EN: "x62l8f0",
|
|
57
|
+
kIxVMA: "x1ia1hqs",
|
|
58
|
+
ksF3WI: "x1qb8ewl",
|
|
116
59
|
$$css: true
|
|
117
60
|
},
|
|
118
61
|
verticalItem: {
|
|
@@ -123,7 +66,26 @@ var styles2 = {
|
|
|
123
66
|
keoZOQ: "xdj266r",
|
|
124
67
|
$$css: true
|
|
125
68
|
},
|
|
69
|
+
verticalOnlyItem: {
|
|
70
|
+
kaIpWk: "x7c24we",
|
|
71
|
+
$$css: true
|
|
72
|
+
},
|
|
73
|
+
verticalFirstItemRadius: {
|
|
74
|
+
kqGeR4: "xfrllxf",
|
|
75
|
+
kYm2EN: "xjppbhk",
|
|
76
|
+
kIxVMA: "x1nema14",
|
|
77
|
+
ksF3WI: "x1qb8ewl",
|
|
78
|
+
$$css: true
|
|
79
|
+
},
|
|
80
|
+
verticalMiddleItem: {
|
|
81
|
+
kaIpWk: "x2u8bby",
|
|
82
|
+
$$css: true
|
|
83
|
+
},
|
|
126
84
|
verticalLastItem: {
|
|
85
|
+
kqGeR4: "x4cpyzu",
|
|
86
|
+
kYm2EN: "x62l8f0",
|
|
87
|
+
kIxVMA: "x1ia1hqs",
|
|
88
|
+
ksF3WI: "x1a2w583",
|
|
127
89
|
$$css: true
|
|
128
90
|
},
|
|
129
91
|
text: {
|
|
@@ -150,30 +112,24 @@ var styles2 = {
|
|
|
150
112
|
}
|
|
151
113
|
};
|
|
152
114
|
function isGroupItem(child) {
|
|
153
|
-
return isValidElement(child) && child.type !== ButtonGroupSeparator;
|
|
115
|
+
return isValidElement(child) && typeof child.type !== "string" && child.type !== Fragment && child.type !== ButtonGroupSeparator;
|
|
154
116
|
}
|
|
155
|
-
function
|
|
156
|
-
const isFirst = position === 0;
|
|
157
|
-
const isLast = position === length - 1;
|
|
117
|
+
function getItemPositionStyle(orientation, isFirst, isLast) {
|
|
158
118
|
if (orientation === "horizontal") {
|
|
159
|
-
return
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
borderTopRightRadius: isLast ? radiusVars.sm : 0
|
|
164
|
-
};
|
|
119
|
+
if (isFirst && isLast) return styles.horizontalOnlyItem;
|
|
120
|
+
if (isFirst) return styles.horizontalFirstItemRadius;
|
|
121
|
+
if (isLast) return styles.horizontalLastItem;
|
|
122
|
+
return styles.horizontalMiddleItem;
|
|
165
123
|
}
|
|
166
|
-
return
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
borderTopRightRadius: isFirst ? radiusVars.sm : 0
|
|
171
|
-
};
|
|
124
|
+
if (isFirst && isLast) return styles.verticalOnlyItem;
|
|
125
|
+
if (isFirst) return styles.verticalFirstItemRadius;
|
|
126
|
+
if (isLast) return styles.verticalLastItem;
|
|
127
|
+
return styles.verticalMiddleItem;
|
|
172
128
|
}
|
|
173
129
|
function ButtonGroup(t0) {
|
|
174
|
-
const $ =
|
|
130
|
+
const $ = _c(18);
|
|
175
131
|
let children;
|
|
176
|
-
let
|
|
132
|
+
let props2;
|
|
177
133
|
let role;
|
|
178
134
|
let t1;
|
|
179
135
|
let xstyle;
|
|
@@ -183,103 +139,101 @@ function ButtonGroup(t0) {
|
|
|
183
139
|
orientation: t1,
|
|
184
140
|
role,
|
|
185
141
|
xstyle,
|
|
186
|
-
...
|
|
142
|
+
...props2
|
|
187
143
|
} = t0);
|
|
188
144
|
$[0] = t0;
|
|
189
145
|
$[1] = children;
|
|
190
|
-
$[2] =
|
|
146
|
+
$[2] = props2;
|
|
191
147
|
$[3] = role;
|
|
192
148
|
$[4] = t1;
|
|
193
149
|
$[5] = xstyle;
|
|
194
150
|
} else {
|
|
195
151
|
children = $[1];
|
|
196
|
-
|
|
152
|
+
props2 = $[2];
|
|
197
153
|
role = $[3];
|
|
198
154
|
t1 = $[4];
|
|
199
155
|
xstyle = $[5];
|
|
200
156
|
}
|
|
201
157
|
const orientation = t1 === void 0 ? "horizontal" : t1;
|
|
202
|
-
let
|
|
203
|
-
if ($[6] !==
|
|
204
|
-
t2 = stylex2.props(styles2.root, styles2[orientation], xstyle);
|
|
205
|
-
$[6] = orientation;
|
|
206
|
-
$[7] = xstyle;
|
|
207
|
-
$[8] = t2;
|
|
208
|
-
} else {
|
|
209
|
-
t2 = $[8];
|
|
210
|
-
}
|
|
211
|
-
const stylexProps = t2;
|
|
212
|
-
let t3;
|
|
213
|
-
if ($[9] !== children || $[10] !== orientation) {
|
|
158
|
+
let content;
|
|
159
|
+
if ($[6] !== children || $[7] !== orientation) {
|
|
214
160
|
const childItems = Children.toArray(children);
|
|
215
161
|
const groupItems = childItems.filter(isGroupItem);
|
|
216
|
-
|
|
162
|
+
let position = -1;
|
|
163
|
+
content = [];
|
|
164
|
+
for (const child of childItems) {
|
|
217
165
|
if (!isGroupItem(child)) {
|
|
218
|
-
|
|
166
|
+
content.push(child);
|
|
167
|
+
continue;
|
|
219
168
|
}
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
$[
|
|
232
|
-
|
|
169
|
+
position = position + 1;
|
|
170
|
+
const isFirst = position === 0;
|
|
171
|
+
const isLast = position === groupItems.length - 1;
|
|
172
|
+
const positionStyle = getItemPositionStyle(orientation, isFirst, isLast);
|
|
173
|
+
const itemStyles = [styles.item, styles[`${orientation}Item`], isFirst && styles[`${orientation}FirstItem`], positionStyle];
|
|
174
|
+
content.push(cloneElement(child, {
|
|
175
|
+
xstyle: [...itemStyles, child.props.xstyle]
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
$[6] = children;
|
|
179
|
+
$[7] = orientation;
|
|
180
|
+
$[8] = content;
|
|
181
|
+
} else {
|
|
182
|
+
content = $[8];
|
|
183
|
+
}
|
|
184
|
+
const t2 = role ?? "group";
|
|
185
|
+
let t3;
|
|
186
|
+
if ($[9] !== orientation || $[10] !== xstyle) {
|
|
187
|
+
t3 = stylex.props(styles.root, styles[orientation], xstyle);
|
|
188
|
+
$[9] = orientation;
|
|
189
|
+
$[10] = xstyle;
|
|
233
190
|
$[11] = t3;
|
|
234
191
|
} else {
|
|
235
192
|
t3 = $[11];
|
|
236
193
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if ($[12] !== content || $[13] !== orientation || $[14] !== props3 || $[15] !== stylexProps || $[16] !== t4) {
|
|
241
|
-
t5 = /* @__PURE__ */ jsx2("div", { ...props3, "data-orientation": orientation, role: t4, ...stylexProps, children: content });
|
|
194
|
+
let t4;
|
|
195
|
+
if ($[12] !== content || $[13] !== orientation || $[14] !== props2 || $[15] !== t2 || $[16] !== t3) {
|
|
196
|
+
t4 = /* @__PURE__ */ jsx("div", { ...props2, "data-orientation": orientation, role: t2, ...t3, children: content });
|
|
242
197
|
$[12] = content;
|
|
243
198
|
$[13] = orientation;
|
|
244
|
-
$[14] =
|
|
245
|
-
$[15] =
|
|
246
|
-
$[16] =
|
|
247
|
-
$[17] =
|
|
199
|
+
$[14] = props2;
|
|
200
|
+
$[15] = t2;
|
|
201
|
+
$[16] = t3;
|
|
202
|
+
$[17] = t4;
|
|
248
203
|
} else {
|
|
249
|
-
|
|
204
|
+
t4 = $[17];
|
|
250
205
|
}
|
|
251
|
-
return
|
|
206
|
+
return t4;
|
|
252
207
|
}
|
|
253
208
|
function ButtonGroupText(t0) {
|
|
254
|
-
const $ =
|
|
255
|
-
let
|
|
209
|
+
const $ = _c(8);
|
|
210
|
+
let props2;
|
|
256
211
|
let xstyle;
|
|
257
212
|
if ($[0] !== t0) {
|
|
258
213
|
({
|
|
259
214
|
xstyle,
|
|
260
|
-
...
|
|
215
|
+
...props2
|
|
261
216
|
} = t0);
|
|
262
217
|
$[0] = t0;
|
|
263
|
-
$[1] =
|
|
218
|
+
$[1] = props2;
|
|
264
219
|
$[2] = xstyle;
|
|
265
220
|
} else {
|
|
266
|
-
|
|
221
|
+
props2 = $[1];
|
|
267
222
|
xstyle = $[2];
|
|
268
223
|
}
|
|
269
224
|
let t1;
|
|
270
225
|
if ($[3] !== xstyle) {
|
|
271
|
-
t1 =
|
|
226
|
+
t1 = stylex.props(styles.text, xstyle);
|
|
272
227
|
$[3] = xstyle;
|
|
273
228
|
$[4] = t1;
|
|
274
229
|
} else {
|
|
275
230
|
t1 = $[4];
|
|
276
231
|
}
|
|
277
|
-
const stylexProps = t1;
|
|
278
232
|
let t2;
|
|
279
|
-
if ($[5] !==
|
|
280
|
-
t2 = /* @__PURE__ */
|
|
281
|
-
$[5] =
|
|
282
|
-
$[6] =
|
|
233
|
+
if ($[5] !== props2 || $[6] !== t1) {
|
|
234
|
+
t2 = /* @__PURE__ */ jsx("span", { ...props2, ...t1 });
|
|
235
|
+
$[5] = props2;
|
|
236
|
+
$[6] = t1;
|
|
283
237
|
$[7] = t2;
|
|
284
238
|
} else {
|
|
285
239
|
t2 = $[7];
|
|
@@ -287,39 +241,39 @@ function ButtonGroupText(t0) {
|
|
|
287
241
|
return t2;
|
|
288
242
|
}
|
|
289
243
|
function ButtonGroupSeparator(t0) {
|
|
290
|
-
const $ =
|
|
291
|
-
let
|
|
244
|
+
const $ = _c(10);
|
|
245
|
+
let props2;
|
|
292
246
|
let t1;
|
|
293
247
|
let xstyle;
|
|
294
248
|
if ($[0] !== t0) {
|
|
295
249
|
({
|
|
296
250
|
orientation: t1,
|
|
297
251
|
xstyle,
|
|
298
|
-
...
|
|
252
|
+
...props2
|
|
299
253
|
} = t0);
|
|
300
254
|
$[0] = t0;
|
|
301
|
-
$[1] =
|
|
255
|
+
$[1] = props2;
|
|
302
256
|
$[2] = t1;
|
|
303
257
|
$[3] = xstyle;
|
|
304
258
|
} else {
|
|
305
|
-
|
|
259
|
+
props2 = $[1];
|
|
306
260
|
t1 = $[2];
|
|
307
261
|
xstyle = $[3];
|
|
308
262
|
}
|
|
309
263
|
const orientation = t1 === void 0 ? "vertical" : t1;
|
|
310
264
|
let t2;
|
|
311
265
|
if ($[4] !== xstyle) {
|
|
312
|
-
t2 = [
|
|
266
|
+
t2 = [styles.separator, xstyle];
|
|
313
267
|
$[4] = xstyle;
|
|
314
268
|
$[5] = t2;
|
|
315
269
|
} else {
|
|
316
270
|
t2 = $[5];
|
|
317
271
|
}
|
|
318
272
|
let t3;
|
|
319
|
-
if ($[6] !== orientation || $[7] !==
|
|
320
|
-
t3 = /* @__PURE__ */
|
|
273
|
+
if ($[6] !== orientation || $[7] !== props2 || $[8] !== t2) {
|
|
274
|
+
t3 = /* @__PURE__ */ jsx(Separator, { ...props2, orientation, xstyle: t2 });
|
|
321
275
|
$[6] = orientation;
|
|
322
|
-
$[7] =
|
|
276
|
+
$[7] = props2;
|
|
323
277
|
$[8] = t2;
|
|
324
278
|
$[9] = t3;
|
|
325
279
|
} else {
|
package/dist/button-group.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/button-group.tsx"
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../src/button-group.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { Children, Fragment, cloneElement, isValidElement, type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport { Separator } from \"./separator\";\nconst styles = {\n root: {\n kGNEyG: \"x1qjc9v5\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"xxhr3t\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n horizontal: {\n kXwgrk: \"x1q0g3np\",\n $$css: true\n },\n vertical: {\n kXwgrk: \"xdt5ytf\",\n $$css: true\n },\n item: {\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n k9RWNo: \"x135w3n3\",\n $$css: true\n },\n horizontalItem: {\n keTefX: \"x1hb08if\",\n $$css: true\n },\n horizontalFirstItem: {\n keTefX: \"x1lziwak\",\n $$css: true\n },\n horizontalOnlyItem: {\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n horizontalFirstItemRadius: {\n kqGeR4: \"x4cpyzu\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"x1nema14\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n horizontalMiddleItem: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n horizontalLastItem: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"x62l8f0\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1qb8ewl\",\n $$css: true\n },\n verticalItem: {\n keoZOQ: \"x1y332i5\",\n $$css: true\n },\n verticalFirstItem: {\n keoZOQ: \"xdj266r\",\n $$css: true\n },\n verticalOnlyItem: {\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n verticalFirstItemRadius: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"x1nema14\",\n ksF3WI: \"x1qb8ewl\",\n $$css: true\n },\n verticalMiddleItem: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n verticalLastItem: {\n kqGeR4: \"x4cpyzu\",\n kYm2EN: \"x62l8f0\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1ry1pnm\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x1ek7y2g\",\n kg3NbH: \"xdaxh69\",\n $$css: true\n },\n separator: {\n kSGwAc: \"xkh2ocl\",\n kZKoxP: \"xt7dq6l\",\n kUOVxO: \"xz95peq\",\n kAzted: \"x65nank\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype GroupItem = ReactElement<StyleProps>;\nfunction isGroupItem(child: ReactNode): child is GroupItem {\n return isValidElement(child) && typeof child.type !== \"string\" && child.type !== Fragment && child.type !== ButtonGroupSeparator;\n}\nfunction getItemPositionStyle(orientation: \"horizontal\" | \"vertical\", isFirst: boolean, isLast: boolean) {\n if (orientation === \"horizontal\") {\n if (isFirst && isLast) return styles.horizontalOnlyItem;\n if (isFirst) return styles.horizontalFirstItemRadius;\n if (isLast) return styles.horizontalLastItem;\n return styles.horizontalMiddleItem;\n }\n if (isFirst && isLast) return styles.verticalOnlyItem;\n if (isFirst) return styles.verticalFirstItemRadius;\n if (isLast) return styles.verticalLastItem;\n return styles.verticalMiddleItem;\n}\n\n/** Direct children must be Nuee buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */\nexport type ButtonGroupProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & StyleProps & {\n orientation?: \"horizontal\" | \"vertical\";\n};\nexport function ButtonGroup(t0) {\n const $ = _c(18);\n let children;\n let props;\n let role;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n children,\n orientation: t1,\n role,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = props;\n $[3] = role;\n $[4] = t1;\n $[5] = xstyle;\n } else {\n children = $[1];\n props = $[2];\n role = $[3];\n t1 = $[4];\n xstyle = $[5];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let content;\n if ($[6] !== children || $[7] !== orientation) {\n const childItems = Children.toArray(children);\n const groupItems = childItems.filter(isGroupItem);\n let position = -1;\n content = [];\n for (const child of childItems) {\n if (!isGroupItem(child)) {\n content.push(child);\n continue;\n }\n position = position + 1;\n const isFirst = position === 0;\n const isLast = position === groupItems.length - 1;\n const positionStyle = getItemPositionStyle(orientation, isFirst, isLast);\n const itemStyles = [styles.item, styles[`${orientation}Item`], isFirst && styles[`${orientation}FirstItem`], positionStyle];\n content.push(cloneElement(child, {\n xstyle: [...itemStyles, child.props.xstyle]\n }));\n }\n $[6] = children;\n $[7] = orientation;\n $[8] = content;\n } else {\n content = $[8];\n }\n const t2 = role ?? \"group\";\n let t3;\n if ($[9] !== orientation || $[10] !== xstyle) {\n t3 = stylex.props(styles.root, styles[orientation], xstyle);\n $[9] = orientation;\n $[10] = xstyle;\n $[11] = t3;\n } else {\n t3 = $[11];\n }\n let t4;\n if ($[12] !== content || $[13] !== orientation || $[14] !== props || $[15] !== t2 || $[16] !== t3) {\n t4 = <div {...props} data-orientation={orientation} role={t2} {...t3}>{content}</div>;\n $[12] = content;\n $[13] = orientation;\n $[14] = props;\n $[15] = t2;\n $[16] = t3;\n $[17] = t4;\n } else {\n t4 = $[17];\n }\n return t4;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(8);\n let props;\n let xstyle;\n if ($[0] !== t0) {\n ({\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = xstyle;\n } else {\n props = $[1];\n xstyle = $[2];\n }\n let t1;\n if ($[3] !== xstyle) {\n t1 = stylex.props(styles.text, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n let t2;\n if ($[5] !== props || $[6] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[5] = props;\n $[6] = t1;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\n}\nexport function ButtonGroupSeparator(t0) {\n const $ = _c(10);\n let props;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n orientation: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n xstyle = $[3];\n }\n const orientation = t1 === undefined ? \"vertical\" : t1;\n let t2;\n if ($[4] !== xstyle) {\n t2 = [styles.separator, xstyle];\n $[4] = xstyle;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n let t3;\n if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {\n t3 = <Separator {...props} orientation={orientation} xstyle={t2} />;\n $[6] = orientation;\n $[7] = props;\n $[8] = t2;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;AACxB,SAAS,UAAU,UAAU,cAAc,sBAA8E;AACzH,SAAS,iBAAiB;AAqMjB;AApMT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,YAAY;AAAA,IACV,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,qBAAqB;AAAA,IACnB,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,oBAAoB;AAAA,IAClB,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,2BAA2B;AAAA,IACzB,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,sBAAsB;AAAA,IACpB,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,oBAAoB;AAAA,IAClB,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AA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