@nuee/ui 0.3.2 → 0.4.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.d.ts +4 -4
- package/dist/accordion.js +129 -219
- package/dist/accordion.js.map +2 -2
- package/dist/alert-dialog.d.ts +5 -5
- package/dist/alert-dialog.js +138 -249
- package/dist/alert-dialog.js.map +3 -3
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.js +19 -50
- package/dist/aspect-ratio.js.map +2 -2
- package/dist/attachment.d.ts +8 -8
- package/dist/attachment.js +158 -286
- package/dist/attachment.js.map +3 -3
- package/dist/avatar.d.ts +6 -6
- package/dist/avatar.js +98 -212
- package/dist/avatar.js.map +3 -3
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +19 -50
- package/dist/badge.js.map +2 -2
- package/dist/banner.d.ts +3 -3
- package/dist/banner.js +111 -204
- package/dist/banner.js.map +2 -2
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.js +90 -178
- package/dist/breadcrumb.js.map +3 -3
- package/dist/bubble.d.ts +1 -1
- package/dist/bubble.js +23 -54
- package/dist/bubble.js.map +2 -2
- package/dist/button-group.d.ts +2 -2
- package/dist/button-group.js +69 -162
- package/dist/button-group.js.map +2 -2
- package/dist/button.d.ts +1 -1
- package/dist/button.js +42 -73
- package/dist/button.js.map +2 -2
- package/dist/card.d.ts +6 -6
- package/dist/card.js +97 -283
- package/dist/card.js.map +2 -2
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +23 -42
- package/dist/checkbox.js.map +2 -2
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.js +108 -180
- package/dist/collapsible.js.map +2 -2
- package/dist/combobox.d.ts +3 -3
- package/dist/combobox.js +194 -275
- package/dist/combobox.js.map +2 -2
- package/dist/content-row.d.ts +7 -7
- package/dist/content-row.js +96 -184
- package/dist/content-row.js.map +3 -3
- package/dist/context-menu.js +257 -386
- package/dist/context-menu.js.map +2 -2
- package/dist/dialog.d.ts +5 -5
- package/dist/dialog.js +106 -189
- package/dist/dialog.js.map +3 -3
- package/dist/drawer.d.ts +7 -7
- package/dist/drawer.js +152 -266
- package/dist/drawer.js.map +3 -3
- package/dist/dropdown-menu.d.ts +6 -6
- package/dist/dropdown-menu.js +257 -386
- package/dist/dropdown-menu.js.map +2 -2
- package/dist/empty.d.ts +6 -6
- package/dist/empty.js +91 -164
- package/dist/empty.js.map +3 -3
- package/dist/field.d.ts +9 -9
- package/dist/field.js +154 -367
- package/dist/field.js.map +3 -3
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +40 -91
- package/dist/hover-card.js.map +2 -2
- package/dist/index.js +3838 -6825
- package/dist/index.js.map +4 -4
- package/dist/input-group.d.ts +3 -3
- package/dist/input-group.js +139 -325
- package/dist/input-group.js.map +2 -2
- package/dist/input-otp.d.ts +4 -4
- package/dist/input-otp.js +67 -133
- package/dist/input-otp.js.map +3 -3
- package/dist/input.d.ts +1 -1
- package/dist/input.js +18 -49
- package/dist/input.js.map +2 -2
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.js +32 -94
- package/dist/kbd.js.map +2 -2
- package/dist/label.d.ts +1 -1
- package/dist/label.js +16 -47
- package/dist/label.js.map +2 -2
- package/dist/link.js +31 -63
- package/dist/link.js.map +2 -2
- package/dist/marker.d.ts +3 -3
- package/dist/marker.js +42 -87
- package/dist/marker.js.map +3 -3
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.js +300 -456
- package/dist/menubar.js.map +3 -3
- package/dist/message-scroller.d.ts +1 -1
- package/dist/message-scroller.js +99 -161
- package/dist/message-scroller.js.map +2 -2
- package/dist/message.d.ts +4 -4
- package/dist/message.js +55 -111
- package/dist/message.js.map +3 -3
- package/dist/native-select.d.ts +1 -1
- package/dist/native-select.js +36 -67
- package/dist/native-select.js.map +2 -2
- package/dist/navigation-menu.d.ts +4 -4
- package/dist/navigation-menu.js +234 -333
- package/dist/navigation-menu.js.map +2 -2
- package/dist/pagination.d.ts +5 -5
- package/dist/pagination.js +68 -133
- package/dist/pagination.js.map +3 -3
- package/dist/popover.d.ts +4 -4
- package/dist/popover.js +73 -136
- package/dist/popover.js.map +3 -3
- package/dist/progress.d.ts +1 -1
- package/dist/progress.js +28 -41
- package/dist/progress.js.map +2 -2
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.js +48 -82
- package/dist/radio-group.js.map +2 -2
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.js +80 -106
- package/dist/scroll-area.js.map +2 -2
- package/dist/select.d.ts +3 -3
- package/dist/select.js +190 -271
- package/dist/select.js.map +2 -2
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +24 -55
- package/dist/separator.js.map +2 -2
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.js +16 -47
- package/dist/skeleton.js.map +2 -2
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +52 -65
- package/dist/slider.js.map +2 -2
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.js +19 -50
- package/dist/spinner.js.map +2 -2
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +28 -48
- package/dist/switch.js.map +2 -2
- package/dist/table.d.ts +8 -8
- package/dist/table.js +112 -212
- package/dist/table.js.map +3 -3
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.js +115 -194
- package/dist/tabs.js.map +2 -2
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.js +18 -49
- package/dist/textarea.js.map +2 -2
- package/dist/toggle-group.d.ts +2 -2
- package/dist/toggle-group.js +67 -103
- package/dist/toggle-group.js.map +2 -2
- package/dist/toggle.d.ts +1 -1
- package/dist/toggle.js +26 -46
- package/dist/toggle.js.map +2 -2
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +39 -56
- package/dist/tooltip.js.map +2 -2
- package/dist/typography.d.ts +7 -4
- package/dist/typography.js +1 -8
- package/dist/typography.js.map +2 -2
- package/package.json +3 -3
- package/dist/stylex-props.d.ts +0 -3
package/dist/input.js
CHANGED
|
@@ -42,78 +42,47 @@ var styles = {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
function Input(t0) {
|
|
45
|
-
const $ = _c(
|
|
45
|
+
const $ = _c(11);
|
|
46
46
|
let ariaInvalid;
|
|
47
|
-
let className;
|
|
48
47
|
let props2;
|
|
49
|
-
let style;
|
|
50
48
|
let xstyle;
|
|
51
49
|
if ($[0] !== t0) {
|
|
52
50
|
({
|
|
53
51
|
"aria-invalid": ariaInvalid,
|
|
54
|
-
className,
|
|
55
|
-
style,
|
|
56
52
|
xstyle,
|
|
57
53
|
...props2
|
|
58
54
|
} = t0);
|
|
59
55
|
$[0] = t0;
|
|
60
56
|
$[1] = ariaInvalid;
|
|
61
|
-
$[2] =
|
|
62
|
-
$[3] =
|
|
63
|
-
$[4] = style;
|
|
64
|
-
$[5] = xstyle;
|
|
57
|
+
$[2] = props2;
|
|
58
|
+
$[3] = xstyle;
|
|
65
59
|
} else {
|
|
66
60
|
ariaInvalid = $[1];
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
style = $[4];
|
|
70
|
-
xstyle = $[5];
|
|
61
|
+
props2 = $[2];
|
|
62
|
+
xstyle = $[3];
|
|
71
63
|
}
|
|
72
64
|
const isInvalid = ariaInvalid === true || ariaInvalid === "true";
|
|
73
65
|
let t1;
|
|
74
|
-
if ($[
|
|
66
|
+
if ($[4] !== isInvalid || $[5] !== xstyle) {
|
|
75
67
|
t1 = stylex.props(styles.root, isInvalid && styles.invalid, xstyle);
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
68
|
+
$[4] = isInvalid;
|
|
69
|
+
$[5] = xstyle;
|
|
70
|
+
$[6] = t1;
|
|
79
71
|
} else {
|
|
80
|
-
t1 = $[
|
|
72
|
+
t1 = $[6];
|
|
81
73
|
}
|
|
82
74
|
const stylexProps = t1;
|
|
83
75
|
let t2;
|
|
84
|
-
if ($[
|
|
85
|
-
t2 =
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
|
|
90
|
-
t2 = $[11];
|
|
91
|
-
}
|
|
92
|
-
const mergedClassName = t2.join(" ");
|
|
93
|
-
let t3;
|
|
94
|
-
if ($[12] !== style || $[13] !== stylexProps.style) {
|
|
95
|
-
t3 = {
|
|
96
|
-
...stylexProps.style,
|
|
97
|
-
...style
|
|
98
|
-
};
|
|
99
|
-
$[12] = style;
|
|
100
|
-
$[13] = stylexProps.style;
|
|
101
|
-
$[14] = t3;
|
|
102
|
-
} else {
|
|
103
|
-
t3 = $[14];
|
|
104
|
-
}
|
|
105
|
-
let t4;
|
|
106
|
-
if ($[15] !== ariaInvalid || $[16] !== mergedClassName || $[17] !== props2 || $[18] !== t3) {
|
|
107
|
-
t4 = /* @__PURE__ */ jsx(InputPrimitive, { ...props2, "aria-invalid": ariaInvalid, className: mergedClassName, style: t3 });
|
|
108
|
-
$[15] = ariaInvalid;
|
|
109
|
-
$[16] = mergedClassName;
|
|
110
|
-
$[17] = props2;
|
|
111
|
-
$[18] = t3;
|
|
112
|
-
$[19] = t4;
|
|
76
|
+
if ($[7] !== ariaInvalid || $[8] !== props2 || $[9] !== stylexProps) {
|
|
77
|
+
t2 = /* @__PURE__ */ jsx(InputPrimitive, { ...props2, "aria-invalid": ariaInvalid, ...stylexProps });
|
|
78
|
+
$[7] = ariaInvalid;
|
|
79
|
+
$[8] = props2;
|
|
80
|
+
$[9] = stylexProps;
|
|
81
|
+
$[10] = t2;
|
|
113
82
|
} else {
|
|
114
|
-
|
|
83
|
+
t2 = $[10];
|
|
115
84
|
}
|
|
116
|
-
return
|
|
85
|
+
return t2;
|
|
117
86
|
}
|
|
118
87
|
export {
|
|
119
88
|
Input
|
package/dist/input.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/input.tsx"],
|
|
4
|
-
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kysU6D: \"xjyslct\",\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x7c24we\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1alews2\",\n kGuDYH: \"x99mhxu\",\n kZKoxP: \"x1f831s2\",\n kLWn49: \"xi1fz51\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kg3NbH: \"xdaxh69\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xscx6xn\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"xr4g7lh\",\n kaVNsj: \"x17tsfxz\",\n kZs9gx: \"x7yqiub\",\n kiEn40: \"x1q375v2\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x11ci167\",\n kD2jPA: \"x1ukozmc\",\n kdODIN: \"x1myz13v\",\n kWC4TW: \"xgokf5d\",\n kYPGJ8: \"x1s07b3s\",\n kqcrZL: \"xakpnpt\",\n kHRqo9: \"x1gb4maz\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"xrv7ry5\",\n $$css: true\n }\n};\nexport type InputProps = ComponentProps<typeof InputPrimitive> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Input(t0) {\n const $ = _c(
|
|
5
|
-
"mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,SAAS,SAAS,sBAAsB;AACxC,YAAY,YAAY;
|
|
4
|
+
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kysU6D: \"xjyslct\",\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x7c24we\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1alews2\",\n kGuDYH: \"x99mhxu\",\n kZKoxP: \"x1f831s2\",\n kLWn49: \"xi1fz51\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kg3NbH: \"xdaxh69\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xscx6xn\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"xr4g7lh\",\n kaVNsj: \"x17tsfxz\",\n kZs9gx: \"x7yqiub\",\n kiEn40: \"x1q375v2\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x11ci167\",\n kD2jPA: \"x1ukozmc\",\n kdODIN: \"x1myz13v\",\n kWC4TW: \"xgokf5d\",\n kYPGJ8: \"x1s07b3s\",\n kqcrZL: \"xakpnpt\",\n kHRqo9: \"x1gb4maz\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"xrv7ry5\",\n $$css: true\n }\n};\nexport type InputProps = ComponentProps<typeof InputPrimitive> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Input(t0) {\n const $ = _c(11);\n let ariaInvalid;\n let props;\n let xstyle;\n if ($[0] !== t0) {\n ({\n \"aria-invalid\": ariaInvalid,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = ariaInvalid;\n $[2] = props;\n $[3] = xstyle;\n } else {\n ariaInvalid = $[1];\n props = $[2];\n xstyle = $[3];\n }\n const isInvalid = ariaInvalid === true || ariaInvalid === \"true\";\n let t1;\n if ($[4] !== isInvalid || $[5] !== xstyle) {\n t1 = stylex.props(styles.root, isInvalid && styles.invalid, xstyle);\n $[4] = isInvalid;\n $[5] = xstyle;\n $[6] = t1;\n } else {\n t1 = $[6];\n }\n const stylexProps = t1;\n let t2;\n if ($[7] !== ariaInvalid || $[8] !== props || $[9] !== stylexProps) {\n t2 = <InputPrimitive {...props} aria-invalid={ariaInvalid} {...stylexProps} />;\n $[7] = ariaInvalid;\n $[8] = props;\n $[9] = stylexProps;\n $[10] = t2;\n } else {\n t2 = $[10];\n }\n return t2;\n}"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,SAAS,SAAS,sBAAsB;AACxC,YAAY,YAAY;AA6Ef;AA1ET,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,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,MAAM,IAAI;AACxB,QAAM,IAAI,GAAG,EAAE;AACf,MAAI;AACJ,MAAIA;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC,gBAAgB;AAAA,MAChB;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,kBAAc,EAAE,CAAC;AACjB,IAAAA,SAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,QAAM,YAAY,gBAAgB,QAAQ,gBAAgB;AAC1D,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,aAAa,EAAE,CAAC,MAAM,QAAQ;AACzC,SAAY,aAAM,OAAO,MAAM,aAAa,OAAO,SAAS,MAAM;AAClE,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,eAAe,EAAE,CAAC,MAAMA,UAAS,EAAE,CAAC,MAAM,aAAa;AAClE,SAAK,oBAAC,kBAAgB,GAAGA,QAAO,gBAAc,aAAc,GAAG,aAAa;AAC5E,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/kbd.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import type { ComponentProps } from "react";
|
|
|
3
3
|
type StyleProps = {
|
|
4
4
|
xstyle?: stylex.StyleXStyles;
|
|
5
5
|
};
|
|
6
|
-
export declare function Kbd({
|
|
7
|
-
export declare function KbdGroup({
|
|
6
|
+
export declare function Kbd({ xstyle, ...props }: ComponentProps<"kbd"> & StyleProps): import("react").JSX.Element;
|
|
7
|
+
export declare function KbdGroup({ xstyle, ...props }: ComponentProps<"span"> & StyleProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
package/dist/kbd.js
CHANGED
|
@@ -30,138 +30,76 @@ var styles = {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
function Kbd(t0) {
|
|
33
|
-
const $ = _c(
|
|
34
|
-
let className;
|
|
33
|
+
const $ = _c(8);
|
|
35
34
|
let props2;
|
|
36
|
-
let style;
|
|
37
35
|
let xstyle;
|
|
38
36
|
if ($[0] !== t0) {
|
|
39
37
|
({
|
|
40
|
-
className,
|
|
41
|
-
style,
|
|
42
38
|
xstyle,
|
|
43
39
|
...props2
|
|
44
40
|
} = t0);
|
|
45
41
|
$[0] = t0;
|
|
46
|
-
$[1] =
|
|
47
|
-
$[2] =
|
|
48
|
-
$[3] = style;
|
|
49
|
-
$[4] = xstyle;
|
|
42
|
+
$[1] = props2;
|
|
43
|
+
$[2] = xstyle;
|
|
50
44
|
} else {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
style = $[3];
|
|
54
|
-
xstyle = $[4];
|
|
45
|
+
props2 = $[1];
|
|
46
|
+
xstyle = $[2];
|
|
55
47
|
}
|
|
56
48
|
let t1;
|
|
57
|
-
if ($[
|
|
49
|
+
if ($[3] !== xstyle) {
|
|
58
50
|
t1 = stylex.props(styles.root, xstyle);
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
51
|
+
$[3] = xstyle;
|
|
52
|
+
$[4] = t1;
|
|
61
53
|
} else {
|
|
62
|
-
t1 = $[
|
|
54
|
+
t1 = $[4];
|
|
63
55
|
}
|
|
64
56
|
const stylexProps = t1;
|
|
65
57
|
let t2;
|
|
66
|
-
if ($[
|
|
67
|
-
t2 =
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
58
|
+
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
59
|
+
t2 = /* @__PURE__ */ jsx("kbd", { ...props2, ...stylexProps });
|
|
60
|
+
$[5] = props2;
|
|
61
|
+
$[6] = stylexProps;
|
|
62
|
+
$[7] = t2;
|
|
71
63
|
} else {
|
|
72
|
-
t2 = $[
|
|
64
|
+
t2 = $[7];
|
|
73
65
|
}
|
|
74
|
-
|
|
75
|
-
let t4;
|
|
76
|
-
if ($[10] !== style || $[11] !== stylexProps.style) {
|
|
77
|
-
t4 = {
|
|
78
|
-
...stylexProps.style,
|
|
79
|
-
...style
|
|
80
|
-
};
|
|
81
|
-
$[10] = style;
|
|
82
|
-
$[11] = stylexProps.style;
|
|
83
|
-
$[12] = t4;
|
|
84
|
-
} else {
|
|
85
|
-
t4 = $[12];
|
|
86
|
-
}
|
|
87
|
-
let t5;
|
|
88
|
-
if ($[13] !== props2 || $[14] !== t3 || $[15] !== t4) {
|
|
89
|
-
t5 = /* @__PURE__ */ jsx("kbd", { ...props2, className: t3, style: t4 });
|
|
90
|
-
$[13] = props2;
|
|
91
|
-
$[14] = t3;
|
|
92
|
-
$[15] = t4;
|
|
93
|
-
$[16] = t5;
|
|
94
|
-
} else {
|
|
95
|
-
t5 = $[16];
|
|
96
|
-
}
|
|
97
|
-
return t5;
|
|
66
|
+
return t2;
|
|
98
67
|
}
|
|
99
68
|
function KbdGroup(t0) {
|
|
100
|
-
const $ = _c(
|
|
101
|
-
let className;
|
|
69
|
+
const $ = _c(8);
|
|
102
70
|
let props2;
|
|
103
|
-
let style;
|
|
104
71
|
let xstyle;
|
|
105
72
|
if ($[0] !== t0) {
|
|
106
73
|
({
|
|
107
|
-
className,
|
|
108
|
-
style,
|
|
109
74
|
xstyle,
|
|
110
75
|
...props2
|
|
111
76
|
} = t0);
|
|
112
77
|
$[0] = t0;
|
|
113
|
-
$[1] =
|
|
114
|
-
$[2] =
|
|
115
|
-
$[3] = style;
|
|
116
|
-
$[4] = xstyle;
|
|
78
|
+
$[1] = props2;
|
|
79
|
+
$[2] = xstyle;
|
|
117
80
|
} else {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
style = $[3];
|
|
121
|
-
xstyle = $[4];
|
|
81
|
+
props2 = $[1];
|
|
82
|
+
xstyle = $[2];
|
|
122
83
|
}
|
|
123
84
|
let t1;
|
|
124
|
-
if ($[
|
|
85
|
+
if ($[3] !== xstyle) {
|
|
125
86
|
t1 = stylex.props(styles.group, xstyle);
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
87
|
+
$[3] = xstyle;
|
|
88
|
+
$[4] = t1;
|
|
128
89
|
} else {
|
|
129
|
-
t1 = $[
|
|
90
|
+
t1 = $[4];
|
|
130
91
|
}
|
|
131
92
|
const stylexProps = t1;
|
|
132
93
|
let t2;
|
|
133
|
-
if ($[
|
|
134
|
-
t2 =
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
} else {
|
|
139
|
-
t2 = $[9];
|
|
140
|
-
}
|
|
141
|
-
const t3 = t2.join(" ");
|
|
142
|
-
let t4;
|
|
143
|
-
if ($[10] !== style || $[11] !== stylexProps.style) {
|
|
144
|
-
t4 = {
|
|
145
|
-
...stylexProps.style,
|
|
146
|
-
...style
|
|
147
|
-
};
|
|
148
|
-
$[10] = style;
|
|
149
|
-
$[11] = stylexProps.style;
|
|
150
|
-
$[12] = t4;
|
|
151
|
-
} else {
|
|
152
|
-
t4 = $[12];
|
|
153
|
-
}
|
|
154
|
-
let t5;
|
|
155
|
-
if ($[13] !== props2 || $[14] !== t3 || $[15] !== t4) {
|
|
156
|
-
t5 = /* @__PURE__ */ jsx("span", { ...props2, className: t3, style: t4 });
|
|
157
|
-
$[13] = props2;
|
|
158
|
-
$[14] = t3;
|
|
159
|
-
$[15] = t4;
|
|
160
|
-
$[16] = t5;
|
|
94
|
+
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
95
|
+
t2 = /* @__PURE__ */ jsx("span", { ...props2, ...stylexProps });
|
|
96
|
+
$[5] = props2;
|
|
97
|
+
$[6] = stylexProps;
|
|
98
|
+
$[7] = t2;
|
|
161
99
|
} else {
|
|
162
|
-
|
|
100
|
+
t2 = $[7];
|
|
163
101
|
}
|
|
164
|
-
return
|
|
102
|
+
return t2;
|
|
165
103
|
}
|
|
166
104
|
export {
|
|
167
105
|
Kbd,
|
package/dist/kbd.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/kbd.tsx"],
|
|
4
|
-
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x13hkpcx\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x7c24we\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1ry1pnm\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"x14e0hi7\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x2umgb4\",\n k7Eaqz: \"x199i5n0\",\n kg3NbH: \"x1gvcc05\",\n kfSwDN: \"x87ps6o\",\n $$css: true\n },\n group: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"x1kr9b5u\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Kbd(t0) {\n const $ = _c(
|
|
5
|
-
"mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,YAAY,YAAY;
|
|
4
|
+
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x13hkpcx\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x7c24we\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1ry1pnm\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"x14e0hi7\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x2umgb4\",\n k7Eaqz: \"x199i5n0\",\n kg3NbH: \"x1gvcc05\",\n kfSwDN: \"x87ps6o\",\n $$css: true\n },\n group: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"x1kr9b5u\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Kbd(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.root, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n const stylexProps = t1;\n let t2;\n if ($[5] !== props || $[6] !== stylexProps) {\n t2 = <kbd {...props} {...stylexProps} />;\n $[5] = props;\n $[6] = stylexProps;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\n}\nexport function KbdGroup(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.group, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n const stylexProps = t1;\n let t2;\n if ($[5] !== props || $[6] !== stylexProps) {\n t2 = <span {...props} {...stylexProps} />;\n $[5] = props;\n $[6] = stylexProps;\n $[7] = t2;\n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A;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;AACO,SAAS,SAAS,IAAI;AAC3B,QAAM,IAAI,GAAG,CAAC;AACd,MAAIA;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,IAAAA,SAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAY,aAAM,OAAO,OAAO,MAAM;AACtC,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAMA,UAAS,EAAE,CAAC,MAAM,aAAa;AAC1C,SAAK,oBAAC,UAAM,GAAGA,QAAQ,GAAG,aAAa;AACvC,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/label.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { ComponentProps } from "react";
|
|
|
3
3
|
export type LabelProps = ComponentProps<"label"> & {
|
|
4
4
|
xstyle?: stylex.StyleXStyles;
|
|
5
5
|
};
|
|
6
|
-
export declare function Label({
|
|
6
|
+
export declare function Label({ xstyle, ...props }: LabelProps): import("react").JSX.Element;
|
package/dist/label.js
CHANGED
|
@@ -17,71 +17,40 @@ var styles = {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
function Label(t0) {
|
|
20
|
-
const $ = _c(
|
|
21
|
-
let className;
|
|
20
|
+
const $ = _c(8);
|
|
22
21
|
let props2;
|
|
23
|
-
let style;
|
|
24
22
|
let xstyle;
|
|
25
23
|
if ($[0] !== t0) {
|
|
26
24
|
({
|
|
27
|
-
className,
|
|
28
|
-
style,
|
|
29
25
|
xstyle,
|
|
30
26
|
...props2
|
|
31
27
|
} = t0);
|
|
32
28
|
$[0] = t0;
|
|
33
|
-
$[1] =
|
|
34
|
-
$[2] =
|
|
35
|
-
$[3] = style;
|
|
36
|
-
$[4] = xstyle;
|
|
29
|
+
$[1] = props2;
|
|
30
|
+
$[2] = xstyle;
|
|
37
31
|
} else {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
style = $[3];
|
|
41
|
-
xstyle = $[4];
|
|
32
|
+
props2 = $[1];
|
|
33
|
+
xstyle = $[2];
|
|
42
34
|
}
|
|
43
35
|
let t1;
|
|
44
|
-
if ($[
|
|
36
|
+
if ($[3] !== xstyle) {
|
|
45
37
|
t1 = stylex.props(styles.root, xstyle);
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
38
|
+
$[3] = xstyle;
|
|
39
|
+
$[4] = t1;
|
|
48
40
|
} else {
|
|
49
|
-
t1 = $[
|
|
41
|
+
t1 = $[4];
|
|
50
42
|
}
|
|
51
43
|
const stylexProps = t1;
|
|
52
44
|
let t2;
|
|
53
|
-
if ($[
|
|
54
|
-
t2 =
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
45
|
+
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
46
|
+
t2 = /* @__PURE__ */ jsx("label", { ...props2, ...stylexProps });
|
|
47
|
+
$[5] = props2;
|
|
48
|
+
$[6] = stylexProps;
|
|
49
|
+
$[7] = t2;
|
|
58
50
|
} else {
|
|
59
|
-
t2 = $[
|
|
51
|
+
t2 = $[7];
|
|
60
52
|
}
|
|
61
|
-
|
|
62
|
-
let t4;
|
|
63
|
-
if ($[10] !== style || $[11] !== stylexProps.style) {
|
|
64
|
-
t4 = {
|
|
65
|
-
...stylexProps.style,
|
|
66
|
-
...style
|
|
67
|
-
};
|
|
68
|
-
$[10] = style;
|
|
69
|
-
$[11] = stylexProps.style;
|
|
70
|
-
$[12] = t4;
|
|
71
|
-
} else {
|
|
72
|
-
t4 = $[12];
|
|
73
|
-
}
|
|
74
|
-
let t5;
|
|
75
|
-
if ($[13] !== props2 || $[14] !== t3 || $[15] !== t4) {
|
|
76
|
-
t5 = /* @__PURE__ */ jsx("label", { ...props2, className: t3, style: t4 });
|
|
77
|
-
$[13] = props2;
|
|
78
|
-
$[14] = t3;
|
|
79
|
-
$[15] = t4;
|
|
80
|
-
$[16] = t5;
|
|
81
|
-
} else {
|
|
82
|
-
t5 = $[16];
|
|
83
|
-
}
|
|
84
|
-
return t5;
|
|
53
|
+
return t2;
|
|
85
54
|
}
|
|
86
55
|
export {
|
|
87
56
|
Label
|
package/dist/label.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/label.tsx"],
|
|
4
|
-
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\n/* oxlint-disable jsx-a11y/label-has-associated-control -- The caller provides htmlFor or nests the control. */\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"x1alews2\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kOIVth: \"x1uj7ll3\",\n kLWn49: \"x1hfsx4t\",\n kfSwDN: \"x87ps6o\",\n $$css: true\n }\n};\nexport type LabelProps = ComponentProps<\"label\"> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Label(t0) {\n const $ = _c(
|
|
5
|
-
"mappings": ";AAAA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;
|
|
4
|
+
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\n/* oxlint-disable jsx-a11y/label-has-associated-control -- The caller provides htmlFor or nests the control. */\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"x1alews2\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kOIVth: \"x1uj7ll3\",\n kLWn49: \"x1hfsx4t\",\n kfSwDN: \"x87ps6o\",\n $$css: true\n }\n};\nexport type LabelProps = ComponentProps<\"label\"> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Label(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.root, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n const stylexProps = t1;\n let t2;\n if ($[5] !== props || $[6] !== stylexProps) {\n t2 = <label {...props} {...stylexProps} />;\n $[5] = props;\n $[6] = stylexProps;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\n}"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;AA+Cf;AA5CT,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,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,MAAM,IAAI;AACxB,QAAM,IAAI,GAAG,CAAC;AACd,MAAIA;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,IAAAA,SAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,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,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAMA,UAAS,EAAE,CAAC,MAAM,aAAa;AAC1C,SAAK,oBAAC,WAAO,GAAGA,QAAQ,GAAG,aAAa;AACxC,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
package/dist/link.js
CHANGED
|
@@ -128,100 +128,68 @@ var styles = {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
var LinkBase = forwardRef(function Link(t0, ref) {
|
|
131
|
-
const $ = _c(
|
|
132
|
-
let className;
|
|
131
|
+
const $ = _c(15);
|
|
133
132
|
let props2;
|
|
134
133
|
let render;
|
|
135
|
-
let style;
|
|
136
134
|
let t1;
|
|
137
135
|
let xstyle;
|
|
138
136
|
if ($[0] !== t0) {
|
|
139
137
|
({
|
|
140
|
-
className,
|
|
141
138
|
render,
|
|
142
|
-
style,
|
|
143
139
|
variant: t1,
|
|
144
140
|
xstyle,
|
|
145
141
|
...props2
|
|
146
142
|
} = t0);
|
|
147
143
|
$[0] = t0;
|
|
148
|
-
$[1] =
|
|
149
|
-
$[2] =
|
|
150
|
-
$[3] =
|
|
151
|
-
$[4] =
|
|
152
|
-
$[5] = t1;
|
|
153
|
-
$[6] = xstyle;
|
|
144
|
+
$[1] = props2;
|
|
145
|
+
$[2] = render;
|
|
146
|
+
$[3] = t1;
|
|
147
|
+
$[4] = xstyle;
|
|
154
148
|
} else {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
t1 = $[5];
|
|
160
|
-
xstyle = $[6];
|
|
149
|
+
props2 = $[1];
|
|
150
|
+
render = $[2];
|
|
151
|
+
t1 = $[3];
|
|
152
|
+
xstyle = $[4];
|
|
161
153
|
}
|
|
162
154
|
const variant = t1 === void 0 ? "inline" : t1;
|
|
163
155
|
let t2;
|
|
164
|
-
if ($[
|
|
156
|
+
if ($[5] !== variant || $[6] !== xstyle) {
|
|
165
157
|
t2 = stylex.props(styles.root, styles[variant], xstyle);
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
158
|
+
$[5] = variant;
|
|
159
|
+
$[6] = xstyle;
|
|
160
|
+
$[7] = t2;
|
|
169
161
|
} else {
|
|
170
|
-
t2 = $[
|
|
162
|
+
t2 = $[7];
|
|
171
163
|
}
|
|
172
164
|
const stylexProps = t2;
|
|
173
165
|
let t3;
|
|
174
|
-
if ($[
|
|
175
|
-
t3 =
|
|
176
|
-
$[10] = className;
|
|
177
|
-
$[11] = stylexProps.className;
|
|
178
|
-
$[12] = t3;
|
|
179
|
-
} else {
|
|
180
|
-
t3 = $[12];
|
|
181
|
-
}
|
|
182
|
-
const t4 = t3.join(" ");
|
|
183
|
-
let t5;
|
|
184
|
-
if ($[13] !== style || $[14] !== stylexProps.style) {
|
|
185
|
-
t5 = {
|
|
186
|
-
...stylexProps.style,
|
|
187
|
-
...style
|
|
188
|
-
};
|
|
189
|
-
$[13] = style;
|
|
190
|
-
$[14] = stylexProps.style;
|
|
191
|
-
$[15] = t5;
|
|
192
|
-
} else {
|
|
193
|
-
t5 = $[15];
|
|
194
|
-
}
|
|
195
|
-
let t6;
|
|
196
|
-
if ($[16] !== props2 || $[17] !== t4 || $[18] !== t5) {
|
|
197
|
-
t6 = {
|
|
166
|
+
if ($[8] !== props2 || $[9] !== stylexProps) {
|
|
167
|
+
t3 = {
|
|
198
168
|
...props2,
|
|
199
|
-
|
|
200
|
-
style: t5
|
|
169
|
+
...stylexProps
|
|
201
170
|
};
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[19] = t6;
|
|
171
|
+
$[8] = props2;
|
|
172
|
+
$[9] = stylexProps;
|
|
173
|
+
$[10] = t3;
|
|
206
174
|
} else {
|
|
207
|
-
|
|
175
|
+
t3 = $[10];
|
|
208
176
|
}
|
|
209
|
-
let
|
|
210
|
-
if ($[
|
|
211
|
-
|
|
177
|
+
let t4;
|
|
178
|
+
if ($[11] !== ref || $[12] !== render || $[13] !== t3) {
|
|
179
|
+
t4 = {
|
|
212
180
|
defaultTagName: "a",
|
|
213
|
-
props:
|
|
181
|
+
props: t3,
|
|
214
182
|
ref,
|
|
215
183
|
render
|
|
216
184
|
};
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
185
|
+
$[11] = ref;
|
|
186
|
+
$[12] = render;
|
|
187
|
+
$[13] = t3;
|
|
188
|
+
$[14] = t4;
|
|
221
189
|
} else {
|
|
222
|
-
|
|
190
|
+
t4 = $[14];
|
|
223
191
|
}
|
|
224
|
-
return useRender(
|
|
192
|
+
return useRender(t4);
|
|
225
193
|
});
|
|
226
194
|
function ExternalIcon(props2) {
|
|
227
195
|
const $ = _c(2);
|
package/dist/link.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/link.tsx", "../src/Icon.tsx"],
|
|
4
|
-
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { forwardRef, type ComponentProps } from \"react\";\nimport { Icon } from \"./Icon\";\nimport { colorVars, motionVars, sizeVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kaIpWk: \"x1aepk7r\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"x14e0hi7\",\n kOIVth: \"x3yxr07\",\n kI3sdo: \"x1a2a7pz\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x1cp1di3\",\n kAMwcw: \"xscx6xn\",\n kZs9gx: \"x7yqiub\",\n kiEn40: \"x1q375v2\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x11ci167\",\n $$css: true\n },\n inline: {\n kMwMTN: \"x4uijr7\",\n kMnn75: \"xujl8zx\",\n kNySMw: \"x1wxkhrt\",\n kcSHmL: \"xg830sg\",\n kKhh5M: \"x184fef6\",\n $$css: true\n },\n current: {\n kMwMTN: \"x15rks2t\",\n kMnn75: \"xujl8zx\",\n kNySMw: \"x1wxkhrt\",\n kcSHmL: \"xg830sg\",\n kKhh5M: \"x184fef6\",\n $$css: true\n },\n plain: {\n kMwMTN: \"x4uijr7\",\n kMnn75: \"xkrqix3\",\n kKhh5M: \"x184fef6\",\n $$css: true\n }\n};\nexport type LinkVariant = \"current\" | \"inline\" | \"plain\";\nexport type LinkProps = useRender.ComponentProps<\"a\"> & {\n variant?: LinkVariant;\n xstyle?: stylex.StyleXStyles;\n};\nconst LinkBase = forwardRef<HTMLAnchorElement, LinkProps>(function Link(t0, ref) {\n const $ = _c(
|
|
5
|
-
"mappings": ";AAAA,SAAS,KAAK,UAAU;AAC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;AACnD;;;
|
|
4
|
+
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { forwardRef, type ComponentProps } from \"react\";\nimport { Icon } from \"./Icon\";\nimport { colorVars, motionVars, sizeVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kaIpWk: \"x1aepk7r\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"x14e0hi7\",\n kOIVth: \"x3yxr07\",\n kI3sdo: \"x1a2a7pz\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x1cp1di3\",\n kAMwcw: \"xscx6xn\",\n kZs9gx: \"x7yqiub\",\n kiEn40: \"x1q375v2\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x11ci167\",\n $$css: true\n },\n inline: {\n kMwMTN: \"x4uijr7\",\n kMnn75: \"xujl8zx\",\n kNySMw: \"x1wxkhrt\",\n kcSHmL: \"xg830sg\",\n kKhh5M: \"x184fef6\",\n $$css: true\n },\n current: {\n kMwMTN: \"x15rks2t\",\n kMnn75: \"xujl8zx\",\n kNySMw: \"x1wxkhrt\",\n kcSHmL: \"xg830sg\",\n kKhh5M: \"x184fef6\",\n $$css: true\n },\n plain: {\n kMwMTN: \"x4uijr7\",\n kMnn75: \"xkrqix3\",\n kKhh5M: \"x184fef6\",\n $$css: true\n }\n};\nexport type LinkVariant = \"current\" | \"inline\" | \"plain\";\nexport type LinkProps = useRender.ComponentProps<\"a\"> & {\n variant?: LinkVariant;\n xstyle?: stylex.StyleXStyles;\n};\nconst LinkBase = forwardRef<HTMLAnchorElement, LinkProps>(function Link(t0, ref) {\n const $ = _c(15);\n let props;\n let render;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n render,\n variant: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = render;\n $[3] = t1;\n $[4] = xstyle;\n } else {\n props = $[1];\n render = $[2];\n t1 = $[3];\n xstyle = $[4];\n }\n const variant = t1 === undefined ? \"inline\" : t1;\n let t2;\n if ($[5] !== variant || $[6] !== xstyle) {\n t2 = stylex.props(styles.root, styles[variant], xstyle);\n $[5] = variant;\n $[6] = xstyle;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n const stylexProps = t2;\n let t3;\n if ($[8] !== props || $[9] !== stylexProps) {\n t3 = {\n ...props,\n ...stylexProps\n };\n $[8] = props;\n $[9] = stylexProps;\n $[10] = t3;\n } else {\n t3 = $[10];\n }\n let t4;\n if ($[11] !== ref || $[12] !== render || $[13] !== t3) {\n t4 = {\n defaultTagName: \"a\",\n props: t3,\n ref,\n render\n };\n $[11] = ref;\n $[12] = render;\n $[13] = t3;\n $[14] = t4;\n } else {\n t4 = $[14];\n }\n return useRender(t4);\n});\nfunction ExternalIcon(props) {\n const $ = _c(2);\n let t0;\n if ($[0] !== props) {\n t0 = <Icon aria-hidden=\"true\" name=\"externalLink\" size=\"1em\" {...props} />;\n $[0] = props;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport const Link = Object.assign(LinkBase, {\n ExternalIcon\n});", "import type { Icon as PhosphorIcon, IconProps as PhosphorIconProps } from \"@phosphor-icons/react\";\nimport {\n ArrowDownIcon,\n ArrowSquareOutIcon,\n ArrowsDownUpIcon,\n ArrowUpIcon,\n CalendarIcon,\n CaretDoubleLeftIcon,\n CaretDoubleRightIcon,\n CaretDownIcon,\n CaretLeftIcon,\n CaretRightIcon,\n CaretUpIcon,\n CaretUpDownIcon,\n CheckCircleIcon,\n CheckIcon,\n ChecksIcon,\n ClockIcon,\n ColumnsIcon,\n CopyIcon,\n DotsThreeIcon,\n EyeSlashIcon,\n FileIcon,\n FolderIcon,\n FunnelIcon,\n GitBranchIcon,\n InfoIcon,\n ListIcon,\n MagnifyingGlassIcon,\n MicrophoneIcon,\n PaperclipIcon,\n DownloadSimpleIcon,\n StopIcon,\n WarningIcon,\n WrenchIcon,\n XCircleIcon,\n XIcon,\n} from \"@phosphor-icons/react\";\n\nexport const iconRegistry = {\n close: XIcon,\n chevronDown: CaretDownIcon,\n chevronLeft: CaretLeftIcon,\n chevronRight: CaretRightIcon,\n chevronUp: CaretUpIcon,\n chevronsLeft: CaretDoubleLeftIcon,\n chevronsRight: CaretDoubleRightIcon,\n caretUpDown: CaretUpDownIcon,\n check: CheckIcon,\n success: CheckCircleIcon,\n error: XCircleIcon,\n warning: WarningIcon,\n info: InfoIcon,\n calendar: CalendarIcon,\n clock: ClockIcon,\n externalLink: ArrowSquareOutIcon,\n menu: ListIcon,\n moreHorizontal: DotsThreeIcon,\n search: MagnifyingGlassIcon,\n arrowUp: ArrowUpIcon,\n arrowDown: ArrowDownIcon,\n arrowsUpDown: ArrowsDownUpIcon,\n funnel: FunnelIcon,\n eyeSlash: EyeSlashIcon,\n viewColumns: ColumnsIcon,\n copy: CopyIcon,\n checkDouble: ChecksIcon,\n wrench: WrenchIcon,\n stop: StopIcon,\n microphone: MicrophoneIcon,\n folder: FolderIcon,\n file: FileIcon,\n paperclip: PaperclipIcon,\n download: DownloadSimpleIcon,\n branch: GitBranchIcon,\n} satisfies Record<string, PhosphorIcon>;\n\nexport type IconName = keyof typeof iconRegistry;\n\nexport type IconProps = PhosphorIconProps & {\n name: IconName;\n};\n\nexport function Icon({ name, weight = \"regular\", ...props }: IconProps) {\n const IconComponent = iconRegistry[name];\n\n return <IconComponent {...props} weight={weight} />;\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,SAAS,iBAAiB;AAC1B,YAAY,YAAY;AACxB,SAAS,kBAAuC;;;ACFhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,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