@bolerish/ui 0.13.0 → 0.16.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/alert-dialog.js +69 -17
- package/dist/alert-dialog.js.map +3 -3
- package/dist/attachment.js +89 -10
- package/dist/attachment.js.map +4 -4
- package/dist/button-group.js +84 -5
- package/dist/button-group.js.map +4 -4
- package/dist/button.d.ts +10 -2
- package/dist/button.js +81 -2
- package/dist/button.js.map +4 -4
- package/dist/calendar.js +16 -11
- package/dist/calendar.js.map +2 -2
- package/dist/card.js +70 -18
- package/dist/card.js.map +3 -3
- package/dist/carousel.d.ts +2 -2
- package/dist/carousel.js +78 -43
- package/dist/carousel.js.map +2 -2
- package/dist/combobox.d.ts +2 -1
- package/dist/combobox.js +140 -77
- package/dist/combobox.js.map +3 -3
- package/dist/date-picker.js +152 -37
- package/dist/date-picker.js.map +4 -4
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +69 -17
- package/dist/dialog.js.map +3 -3
- package/dist/drawer.js +73 -21
- package/dist/drawer.js.map +3 -3
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +76 -20
- package/dist/dropdown-menu.js.map +3 -3
- package/dist/global.css +33 -0
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +66 -14
- package/dist/hover-card.js.map +3 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +19 -15
- package/dist/index.js.map +2 -2
- package/dist/input-group.d.ts +1 -1
- package/dist/input-group.js +111 -44
- package/dist/input-group.js.map +4 -4
- package/dist/input-otp.js +84 -5
- package/dist/input-otp.js.map +4 -4
- package/dist/input.d.ts +1 -1
- package/dist/input.js +122 -17
- package/dist/input.js.map +4 -4
- package/dist/item.d.ts +32 -0
- package/dist/{content-row.js → item.js} +103 -24
- package/dist/item.js.map +7 -0
- package/dist/liquid-refraction.svg +7 -0
- package/dist/liquid.d.ts +10 -0
- package/dist/liquid.js +229 -0
- package/dist/liquid.js.map +7 -0
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.js +66 -14
- package/dist/menubar.js.map +3 -3
- package/dist/native-select.js +102 -22
- package/dist/native-select.js.map +4 -4
- package/dist/navigation-menu.js +71 -19
- package/dist/navigation-menu.js.map +3 -3
- package/dist/pagination.js +2 -0
- package/dist/pagination.js.map +2 -2
- package/dist/popover.js +70 -16
- package/dist/popover.js.map +3 -3
- package/dist/select.js +75 -18
- package/dist/select.js.map +3 -3
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +60 -48
- package/dist/slider.js.map +2 -2
- package/dist/styles/liquid-map.d.ts +5 -0
- package/dist/styles/surface.d.ts +152 -13
- package/dist/stylex.css +205 -17
- package/dist/surface.d.ts +12 -0
- package/dist/surface.js +12 -0
- package/dist/surface.js.map +7 -0
- package/dist/textarea.js +81 -2
- package/dist/textarea.js.map +4 -4
- package/dist/toast.d.ts +3 -1
- package/dist/toast.js +127 -61
- package/dist/toast.js.map +3 -3
- package/dist/toggle-group.js +82 -3
- package/dist/toggle-group.js.map +4 -4
- package/dist/toggle.js +81 -2
- package/dist/toggle.js.map +4 -4
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +85 -2
- package/dist/tooltip.js.map +4 -4
- package/package.json +10 -5
- package/dist/content-row.d.ts +0 -32
- package/dist/content-row.js.map +0 -7
package/dist/input-group.js
CHANGED
|
@@ -19,9 +19,88 @@ function mergeStyles(base, className, style) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
// src/styles/surface.ts
|
|
23
|
+
var styles = {
|
|
24
|
+
edge: {
|
|
25
|
+
kVAM5u: "x1kqtvf4",
|
|
26
|
+
kFGkbq: "x1w1tqly",
|
|
27
|
+
$$css: true
|
|
28
|
+
},
|
|
29
|
+
material: {
|
|
30
|
+
"--bolerish-material-shadow": "xvd6nka",
|
|
31
|
+
kGVxlE: "x16ifxj2 xpqbwuo",
|
|
32
|
+
kWkggS: "x1s4uome x1u5mdis",
|
|
33
|
+
k6WDB: "x1t853zo x1o5bnqd",
|
|
34
|
+
kKwaWg: "x18o3ruo xxit9r9",
|
|
35
|
+
kTahiY: "x1cg02ou",
|
|
36
|
+
kEcs6k: "x11rvarm",
|
|
37
|
+
kWrjR8: "x1ile18z",
|
|
38
|
+
kfloDl: "x1m3y3zz",
|
|
39
|
+
kO6drA: "x9yvj25",
|
|
40
|
+
kkTUmj: "x14hm74v",
|
|
41
|
+
k11ilZ: "xhobzj1",
|
|
42
|
+
ktzNWN: "xwaqzdf",
|
|
43
|
+
$$css: true
|
|
44
|
+
},
|
|
45
|
+
panel: {
|
|
46
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
47
|
+
"--bolerish-material-opacity": "x8fe23t",
|
|
48
|
+
"--bolerish-material-filter": "x1n6mwez",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
control: {
|
|
52
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
53
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
54
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
55
|
+
$$css: true
|
|
56
|
+
},
|
|
57
|
+
subtle: {
|
|
58
|
+
"--bolerish-material-color": "x1819ggx",
|
|
59
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
60
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
61
|
+
$$css: true
|
|
62
|
+
},
|
|
63
|
+
outline: {
|
|
64
|
+
"--bolerish-material-color": "x3m3fbl",
|
|
65
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
66
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
67
|
+
$$css: true
|
|
68
|
+
},
|
|
69
|
+
raised: {
|
|
70
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
71
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
72
|
+
"--bolerish-material-opacity": "x1nqk09",
|
|
73
|
+
"--bolerish-material-filter": "x1gkvbmm",
|
|
74
|
+
$$css: true
|
|
75
|
+
},
|
|
76
|
+
translucent: {
|
|
77
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
78
|
+
"--bolerish-material-opacity": "xoh9gux",
|
|
79
|
+
"--bolerish-material-filter": "xhu24am",
|
|
80
|
+
$$css: true
|
|
81
|
+
},
|
|
82
|
+
floating: {
|
|
83
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
84
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
85
|
+
"--bolerish-material-opacity": "x14p89z6",
|
|
86
|
+
"--bolerish-material-filter": "xunhrho",
|
|
87
|
+
$$css: true
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var surfaceStyles = {
|
|
91
|
+
edge: styles.edge,
|
|
92
|
+
panel: [styles.material, styles.panel],
|
|
93
|
+
control: [styles.material, styles.control],
|
|
94
|
+
subtle: [styles.material, styles.subtle],
|
|
95
|
+
outline: [styles.material, styles.outline],
|
|
96
|
+
raised: [styles.material, styles.raised],
|
|
97
|
+
translucent: [styles.material, styles.translucent],
|
|
98
|
+
floating: [styles.material, styles.floating]
|
|
99
|
+
};
|
|
100
|
+
|
|
22
101
|
// src/input-group.tsx
|
|
23
102
|
import { jsx } from "react/jsx-runtime";
|
|
24
|
-
var
|
|
103
|
+
var styles2 = {
|
|
25
104
|
root: {
|
|
26
105
|
kGNEyG: "x6s0dn4",
|
|
27
106
|
kWkggS: "xcc0o6n",
|
|
@@ -172,7 +251,7 @@ function InputGroup(t0) {
|
|
|
172
251
|
const t2 = invalid || void 0;
|
|
173
252
|
let t3;
|
|
174
253
|
if ($[6] !== className || $[7] !== invalid || $[8] !== style || $[9] !== xstyle) {
|
|
175
|
-
t3 = mergeStyles(stylex.props(
|
|
254
|
+
t3 = mergeStyles(stylex.props(styles2.root, surfaceStyles.control, invalid && styles2.invalid, xstyle), className, style);
|
|
176
255
|
$[6] = className;
|
|
177
256
|
$[7] = invalid;
|
|
178
257
|
$[8] = style;
|
|
@@ -243,7 +322,7 @@ function InputGroupAddon(t0) {
|
|
|
243
322
|
const handleClick = t2;
|
|
244
323
|
let t3;
|
|
245
324
|
if ($[9] !== align || $[10] !== className || $[11] !== style || $[12] !== xstyle) {
|
|
246
|
-
t3 = mergeStyles(stylex.props(
|
|
325
|
+
t3 = mergeStyles(stylex.props(styles2.addon, alignStyles[align], xstyle), className, style);
|
|
247
326
|
$[9] = align;
|
|
248
327
|
$[10] = className;
|
|
249
328
|
$[11] = style;
|
|
@@ -291,7 +370,7 @@ function InputGroupInput(t0) {
|
|
|
291
370
|
}
|
|
292
371
|
let t1;
|
|
293
372
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
294
|
-
t1 = mergeStyles(stylex.props(
|
|
373
|
+
t1 = mergeStyles(stylex.props(styles2.input, styles2.control, xstyle), className, style);
|
|
295
374
|
$[5] = className;
|
|
296
375
|
$[6] = style;
|
|
297
376
|
$[7] = xstyle;
|
|
@@ -336,7 +415,7 @@ function InputGroupTextarea(t0) {
|
|
|
336
415
|
}
|
|
337
416
|
let t1;
|
|
338
417
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
339
|
-
t1 = mergeStyles(stylex.props(
|
|
418
|
+
t1 = mergeStyles(stylex.props(styles2.control, styles2.textarea, xstyle), className, style);
|
|
340
419
|
$[5] = className;
|
|
341
420
|
$[6] = style;
|
|
342
421
|
$[7] = xstyle;
|
|
@@ -355,52 +434,40 @@ function InputGroupTextarea(t0) {
|
|
|
355
434
|
}
|
|
356
435
|
return t2;
|
|
357
436
|
}
|
|
358
|
-
function InputGroupButton(
|
|
359
|
-
const $ = _c(
|
|
360
|
-
let
|
|
361
|
-
|
|
437
|
+
function InputGroupButton(props2) {
|
|
438
|
+
const $ = _c(8);
|
|
439
|
+
let t0;
|
|
440
|
+
if ($[0] !== props2) {
|
|
441
|
+
t0 = props2.size === void 0 ? {
|
|
442
|
+
...props2,
|
|
443
|
+
size: "sm"
|
|
444
|
+
} : props2;
|
|
445
|
+
$[0] = props2;
|
|
446
|
+
$[1] = t0;
|
|
447
|
+
} else {
|
|
448
|
+
t0 = $[1];
|
|
449
|
+
}
|
|
450
|
+
const sizedProps = t0;
|
|
451
|
+
const t1 = props2.variant ?? "ghost";
|
|
362
452
|
let t2;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
size: t1,
|
|
367
|
-
variant: t2,
|
|
368
|
-
xstyle,
|
|
369
|
-
...props2
|
|
370
|
-
} = t0);
|
|
371
|
-
$[0] = t0;
|
|
372
|
-
$[1] = props2;
|
|
373
|
-
$[2] = t1;
|
|
453
|
+
if ($[2] !== props2.xstyle) {
|
|
454
|
+
t2 = [styles2.button, props2.xstyle];
|
|
455
|
+
$[2] = props2.xstyle;
|
|
374
456
|
$[3] = t2;
|
|
375
|
-
$[4] = xstyle;
|
|
376
457
|
} else {
|
|
377
|
-
props2 = $[1];
|
|
378
|
-
t1 = $[2];
|
|
379
458
|
t2 = $[3];
|
|
380
|
-
xstyle = $[4];
|
|
381
459
|
}
|
|
382
|
-
const size = t1 === void 0 ? "sm" : t1;
|
|
383
|
-
const variant = t2 === void 0 ? "ghost" : t2;
|
|
384
460
|
let t3;
|
|
385
|
-
if ($[5] !==
|
|
386
|
-
t3 =
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
392
|
-
let t4;
|
|
393
|
-
if ($[7] !== props2 || $[8] !== size || $[9] !== t3 || $[10] !== variant) {
|
|
394
|
-
t4 = /* @__PURE__ */ jsx(Button, { ...props2, size, variant, xstyle: t3 });
|
|
395
|
-
$[7] = props2;
|
|
396
|
-
$[8] = size;
|
|
397
|
-
$[9] = t3;
|
|
398
|
-
$[10] = variant;
|
|
399
|
-
$[11] = t4;
|
|
461
|
+
if ($[4] !== sizedProps || $[5] !== t1 || $[6] !== t2) {
|
|
462
|
+
t3 = /* @__PURE__ */ jsx(Button, { ...sizedProps, variant: t1, xstyle: t2 });
|
|
463
|
+
$[4] = sizedProps;
|
|
464
|
+
$[5] = t1;
|
|
465
|
+
$[6] = t2;
|
|
466
|
+
$[7] = t3;
|
|
400
467
|
} else {
|
|
401
|
-
|
|
468
|
+
t3 = $[7];
|
|
402
469
|
}
|
|
403
|
-
return
|
|
470
|
+
return t3;
|
|
404
471
|
}
|
|
405
472
|
function InputGroupText(t0) {
|
|
406
473
|
const $ = _c(12);
|
|
@@ -428,7 +495,7 @@ function InputGroupText(t0) {
|
|
|
428
495
|
}
|
|
429
496
|
let t1;
|
|
430
497
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
431
|
-
t1 = mergeStyles(stylex.props(
|
|
498
|
+
t1 = mergeStyles(stylex.props(styles2.text, xstyle), className, style);
|
|
432
499
|
$[5] = className;
|
|
433
500
|
$[6] = style;
|
|
434
501
|
$[7] = xstyle;
|
package/dist/input-group.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/input-group.tsx", "../src/styles/merge-styles.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps, MouseEvent } from \"react\";\nimport { Button, type ButtonProps } from \"./button\";\nimport type { InputProps } from \"./input\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport type { TextareaProps } from \"./textarea\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kAzted: \"x116rqyj\",\n k7Eaqz: \"xeuugli\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"xshfolx\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n kYcSvW: \"x17uuci8\",\n kpj6Ty: \"xyxltx7\",\n kfQpEX: \"x1vzskv2\",\n kXImzq: \"x14xc8xn\",\n krA4I7: \"x1g9kpee\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"x165btzp\",\n kYcSvW: \"xo2tn52\",\n kpj6Ty: \"xlfzi52\",\n $$css: true\n },\n addon: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"xj9e3ow\",\n kkrTdU: \"x1ed109x\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kGuDYH: \"x1lskvfa\",\n kOIVth: \"x136xbx3\",\n kAzted: \"x116rqyj\",\n $$css: true\n },\n control: {\n kysU6D: \"xjyslct\",\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x9r1u3d\",\n ksu8eU: \"xng3xce\",\n kMzoRj: \"xc342km\",\n kaIpWk: \"x1p5vitp\",\n kGVxlE: \"x1gnnqk1\",\n kUk6DE: \"x98rzlu\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kaVNsj: \"x1xfd4ba\",\n kOJeXU: \"x7yu9wt\",\n kZs9gx: \"xz2lg3n\",\n kiEn40: \"xwlpgjh\",\n k7shQP: \"xi5y0ii\",\n kPJHz1: \"x1x65lqo\",\n $$css: true\n },\n textarea: {\n kAzted: \"x1meygxz\",\n $$css: true\n },\n input: {\n kMwMTN: \"x1t28c4i\",\n kGuDYH: \"x1lskvfa\",\n kMv6JI: \"x1b1to7n\",\n kZKoxP: \"x1f00wt4\",\n kLWn49: \"xipl0i2\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kD2jPA: \"xjbuoma\",\n kWC4TW: \"x1vi5fzm\",\n kYPGJ8: \"x1s07b3s\",\n $$css: true\n },\n button: {\n kmuXW: \"x2lah0s\",\n kogj98: \"xgqf4y\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"xj9e3ow\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n kOIVth: \"x136xbx3\",\n $$css: true\n }\n};\nconst alignStyles = {\n \"inline-start\": {\n kayTVb: \"x1clqncf\",\n kZCmMZ: \"x1i08l6l\",\n $$css: true\n },\n \"inline-end\": {\n kayTVb: \"x9ek82g\",\n kwRFfy: \"x79n4ua\",\n $$css: true\n },\n \"block-start\": {\n kSGwAc: \"xkh2ocl\",\n kjj79g: \"x1nhvcw1\",\n kayTVb: \"x1clqncf\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n \"block-end\": {\n kSGwAc: \"xkh2ocl\",\n kjj79g: \"x1nhvcw1\",\n kayTVb: \"x9ek82g\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype AddonAlignment = \"block-end\" | \"block-start\" | \"inline-end\" | \"inline-start\";\nexport type InputGroupProps = StyledProps<ComponentProps<\"div\">> & StyleProps & {\n invalid?: boolean;\n};\nexport function InputGroup(t0) {\n const $ = _c(15);\n let className;\n let props;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n invalid: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = t1;\n $[5] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n t1 = $[4];\n xstyle = $[5];\n }\n const invalid = t1 === undefined ? false : t1;\n const t2 = invalid || undefined;\n let t3;\n if ($[6] !== className || $[7] !== invalid || $[8] !== style || $[9] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, invalid && styles.invalid, xstyle), className, style);\n $[6] = className;\n $[7] = invalid;\n $[8] = style;\n $[9] = xstyle;\n $[10] = t3;\n } else {\n t3 = $[10];\n }\n let t4;\n if ($[11] !== props || $[12] !== t2 || $[13] !== t3) {\n t4 = <div {...props} data-invalid={t2} {...t3} />;\n $[11] = props;\n $[12] = t2;\n $[13] = t3;\n $[14] = t4;\n } else {\n t4 = $[14];\n }\n return t4;\n}\nexport function InputGroupAddon(t0) {\n const $ = _c(19);\n let className;\n let onClick;\n let props;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n align: t1,\n onClick,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = onClick;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = xstyle;\n } else {\n className = $[1];\n onClick = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n xstyle = $[6];\n }\n const align = t1 === undefined ? \"inline-start\" : t1;\n let t2;\n if ($[7] !== onClick) {\n t2 = event => {\n onClick?.(event);\n if (event.defaultPrevented || (event.target as HTMLElement).closest(\"button\")) {\n return;\n }\n event.currentTarget.parentElement?.querySelector(\"input, textarea\")?.focus();\n };\n $[7] = onClick;\n $[8] = t2;\n } else {\n t2 = $[8];\n }\n const handleClick = t2;\n let t3;\n if ($[9] !== align || $[10] !== className || $[11] !== style || $[12] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.addon, alignStyles[align], xstyle), className, style);\n $[9] = align;\n $[10] = className;\n $[11] = style;\n $[12] = xstyle;\n $[13] = t3;\n } else {\n t3 = $[13];\n }\n let t4;\n if ($[14] !== align || $[15] !== handleClick || $[16] !== props || $[17] !== t3) {\n t4 = <div {...props} role=\"presentation\" data-align={align} onClick={handleClick} {...t3} />;\n $[14] = align;\n $[15] = handleClick;\n $[16] = props;\n $[17] = t3;\n $[18] = t4;\n } else {\n t4 = $[18];\n }\n return t4;\n}\nexport function InputGroupInput(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.input, styles.control, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <InputPrimitive {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputGroupTextarea(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.control, styles.textarea, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <textarea {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputGroupButton(t0) {\n const $ = _c(12);\n let props;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n size: t1,\n variant: 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 size = t1 === undefined ? \"sm\" : t1;\n const variant = t2 === undefined ? \"ghost\" : t2;\n let t3;\n if ($[5] !== xstyle) {\n t3 = [styles.button, xstyle];\n $[5] = xstyle;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n let t4;\n if ($[7] !== props || $[8] !== size || $[9] !== t3 || $[10] !== variant) {\n t4 = <Button {...props} size={size} variant={variant} xstyle={t3} />;\n $[7] = props;\n $[8] = size;\n $[9] = t3;\n $[10] = variant;\n $[11] = t4;\n } else {\n t4 = $[11];\n }\n return t4;\n}\nexport function InputGroupText(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.text, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}"],
|
|
5
|
-
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,SAAS,sBAAsB;AAExC,YAAY,YAAY;AAExB,SAAS,cAAgC;;;ACDlC,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;
|
|
6
|
-
"names": ["props"]
|
|
3
|
+
"sources": ["../src/input-group.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps, MouseEvent } from \"react\";\nimport { Button, type ButtonProps } from \"./button\";\nimport type { InputProps } from \"./input\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nimport type { TextareaProps } from \"./textarea\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kAzted: \"x116rqyj\",\n k7Eaqz: \"xeuugli\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"xshfolx\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n kYcSvW: \"x17uuci8\",\n kpj6Ty: \"xyxltx7\",\n kfQpEX: \"x1vzskv2\",\n kXImzq: \"x14xc8xn\",\n krA4I7: \"x1g9kpee\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"x165btzp\",\n kYcSvW: \"xo2tn52\",\n kpj6Ty: \"xlfzi52\",\n $$css: true\n },\n addon: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"xj9e3ow\",\n kkrTdU: \"x1ed109x\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kGuDYH: \"x1lskvfa\",\n kOIVth: \"x136xbx3\",\n kAzted: \"x116rqyj\",\n $$css: true\n },\n control: {\n kysU6D: \"xjyslct\",\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x9r1u3d\",\n ksu8eU: \"xng3xce\",\n kMzoRj: \"xc342km\",\n kaIpWk: \"x1p5vitp\",\n kGVxlE: \"x1gnnqk1\",\n kUk6DE: \"x98rzlu\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kaVNsj: \"x1xfd4ba\",\n kOJeXU: \"x7yu9wt\",\n kZs9gx: \"xz2lg3n\",\n kiEn40: \"xwlpgjh\",\n k7shQP: \"xi5y0ii\",\n kPJHz1: \"x1x65lqo\",\n $$css: true\n },\n textarea: {\n kAzted: \"x1meygxz\",\n $$css: true\n },\n input: {\n kMwMTN: \"x1t28c4i\",\n kGuDYH: \"x1lskvfa\",\n kMv6JI: \"x1b1to7n\",\n kZKoxP: \"x1f00wt4\",\n kLWn49: \"xipl0i2\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kD2jPA: \"xjbuoma\",\n kWC4TW: \"x1vi5fzm\",\n kYPGJ8: \"x1s07b3s\",\n $$css: true\n },\n button: {\n kmuXW: \"x2lah0s\",\n kogj98: \"xgqf4y\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kMwMTN: \"xj9e3ow\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n kOIVth: \"x136xbx3\",\n $$css: true\n }\n};\nconst alignStyles = {\n \"inline-start\": {\n kayTVb: \"x1clqncf\",\n kZCmMZ: \"x1i08l6l\",\n $$css: true\n },\n \"inline-end\": {\n kayTVb: \"x9ek82g\",\n kwRFfy: \"x79n4ua\",\n $$css: true\n },\n \"block-start\": {\n kSGwAc: \"xkh2ocl\",\n kjj79g: \"x1nhvcw1\",\n kayTVb: \"x1clqncf\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n \"block-end\": {\n kSGwAc: \"xkh2ocl\",\n kjj79g: \"x1nhvcw1\",\n kayTVb: \"x9ek82g\",\n kg3NbH: \"x5044ve\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype AddonAlignment = \"block-end\" | \"block-start\" | \"inline-end\" | \"inline-start\";\nexport type InputGroupProps = StyledProps<ComponentProps<\"div\">> & StyleProps & {\n invalid?: boolean;\n};\nexport function InputGroup(t0) {\n const $ = _c(15);\n let className;\n let props;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n invalid: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = t1;\n $[5] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n t1 = $[4];\n xstyle = $[5];\n }\n const invalid = t1 === undefined ? false : t1;\n const t2 = invalid || undefined;\n let t3;\n if ($[6] !== className || $[7] !== invalid || $[8] !== style || $[9] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, surfaceStyles.control, invalid && styles.invalid, xstyle), className, style);\n $[6] = className;\n $[7] = invalid;\n $[8] = style;\n $[9] = xstyle;\n $[10] = t3;\n } else {\n t3 = $[10];\n }\n let t4;\n if ($[11] !== props || $[12] !== t2 || $[13] !== t3) {\n t4 = <div {...props} data-invalid={t2} {...t3} />;\n $[11] = props;\n $[12] = t2;\n $[13] = t3;\n $[14] = t4;\n } else {\n t4 = $[14];\n }\n return t4;\n}\nexport function InputGroupAddon(t0) {\n const $ = _c(19);\n let className;\n let onClick;\n let props;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n align: t1,\n onClick,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = onClick;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = xstyle;\n } else {\n className = $[1];\n onClick = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n xstyle = $[6];\n }\n const align = t1 === undefined ? \"inline-start\" : t1;\n let t2;\n if ($[7] !== onClick) {\n t2 = event => {\n onClick?.(event);\n if (event.defaultPrevented || (event.target as HTMLElement).closest(\"button\")) {\n return;\n }\n event.currentTarget.parentElement?.querySelector(\"input, textarea\")?.focus();\n };\n $[7] = onClick;\n $[8] = t2;\n } else {\n t2 = $[8];\n }\n const handleClick = t2;\n let t3;\n if ($[9] !== align || $[10] !== className || $[11] !== style || $[12] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.addon, alignStyles[align], xstyle), className, style);\n $[9] = align;\n $[10] = className;\n $[11] = style;\n $[12] = xstyle;\n $[13] = t3;\n } else {\n t3 = $[13];\n }\n let t4;\n if ($[14] !== align || $[15] !== handleClick || $[16] !== props || $[17] !== t3) {\n t4 = <div {...props} role=\"presentation\" data-align={align} onClick={handleClick} {...t3} />;\n $[14] = align;\n $[15] = handleClick;\n $[16] = props;\n $[17] = t3;\n $[18] = t4;\n } else {\n t4 = $[18];\n }\n return t4;\n}\nexport function InputGroupInput(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.input, styles.control, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <InputPrimitive {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputGroupTextarea(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.control, styles.textarea, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <textarea {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputGroupButton(props) {\n const $ = _c(8);\n let t0;\n if ($[0] !== props) {\n t0 = props.size === undefined ? {\n ...props,\n size: \"sm\" as const\n } : props;\n $[0] = props;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n const sizedProps = t0;\n const t1 = props.variant ?? \"ghost\";\n let t2;\n if ($[2] !== props.xstyle) {\n t2 = [styles.button, props.xstyle];\n $[2] = props.xstyle;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n let t3;\n if ($[4] !== sizedProps || $[5] !== t1 || $[6] !== t2) {\n t3 = <Button {...sizedProps} variant={t1} xstyle={t2} />;\n $[4] = sizedProps;\n $[5] = t1;\n $[6] = t2;\n $[7] = t3;\n } else {\n t3 = $[7];\n }\n return t3;\n}\nexport function InputGroupText(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.text, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nconst styles = {\n edge: {\n kVAM5u: \"x1kqtvf4\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xpqbwuo\",\n kWkggS: \"x1s4uome x1u5mdis\",\n k6WDB: \"x1t853zo x1o5bnqd\",\n kKwaWg: \"x18o3ruo xxit9r9\",\n kTahiY: \"x1cg02ou\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\n kkTUmj: \"x14hm74v\",\n k11ilZ: \"xhobzj1\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n panel: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"x8fe23t\",\n \"--bolerish-material-filter\": \"x1n6mwez\",\n $$css: true\n },\n control: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\n \"--bolerish-material-color\": \"x3m3fbl\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n raised: {\n \"--bolerish-material-shadow\": \"x1l9gcvt\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x1nqk09\",\n \"--bolerish-material-filter\": \"x1gkvbmm\",\n $$css: true\n },\n translucent: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xoh9gux\",\n \"--bolerish-material-filter\": \"xhu24am\",\n $$css: true\n },\n floating: {\n \"--bolerish-material-shadow\": \"xu02b4h\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x14p89z6\",\n \"--bolerish-material-filter\": \"xunhrho\",\n $$css: true\n }\n};\nexport const surfaceStyles = {\n edge: styles.edge,\n panel: [styles.material, styles.panel],\n control: [styles.material, styles.control],\n subtle: [styles.material, styles.subtle],\n outline: [styles.material, styles.outline],\n raised: [styles.material, styles.raised],\n translucent: [styles.material, styles.translucent],\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|
|
6
|
+
"names": ["styles", "props"]
|
|
7
7
|
}
|
package/dist/input-otp.js
CHANGED
|
@@ -18,9 +18,88 @@ function mergeStyles(base, className, style) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
// src/styles/surface.ts
|
|
22
|
+
var styles = {
|
|
23
|
+
edge: {
|
|
24
|
+
kVAM5u: "x1kqtvf4",
|
|
25
|
+
kFGkbq: "x1w1tqly",
|
|
26
|
+
$$css: true
|
|
27
|
+
},
|
|
28
|
+
material: {
|
|
29
|
+
"--bolerish-material-shadow": "xvd6nka",
|
|
30
|
+
kGVxlE: "x16ifxj2 xpqbwuo",
|
|
31
|
+
kWkggS: "x1s4uome x1u5mdis",
|
|
32
|
+
k6WDB: "x1t853zo x1o5bnqd",
|
|
33
|
+
kKwaWg: "x18o3ruo xxit9r9",
|
|
34
|
+
kTahiY: "x1cg02ou",
|
|
35
|
+
kEcs6k: "x11rvarm",
|
|
36
|
+
kWrjR8: "x1ile18z",
|
|
37
|
+
kfloDl: "x1m3y3zz",
|
|
38
|
+
kO6drA: "x9yvj25",
|
|
39
|
+
kkTUmj: "x14hm74v",
|
|
40
|
+
k11ilZ: "xhobzj1",
|
|
41
|
+
ktzNWN: "xwaqzdf",
|
|
42
|
+
$$css: true
|
|
43
|
+
},
|
|
44
|
+
panel: {
|
|
45
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
46
|
+
"--bolerish-material-opacity": "x8fe23t",
|
|
47
|
+
"--bolerish-material-filter": "x1n6mwez",
|
|
48
|
+
$$css: true
|
|
49
|
+
},
|
|
50
|
+
control: {
|
|
51
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
52
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
53
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
54
|
+
$$css: true
|
|
55
|
+
},
|
|
56
|
+
subtle: {
|
|
57
|
+
"--bolerish-material-color": "x1819ggx",
|
|
58
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
59
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
60
|
+
$$css: true
|
|
61
|
+
},
|
|
62
|
+
outline: {
|
|
63
|
+
"--bolerish-material-color": "x3m3fbl",
|
|
64
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
65
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
66
|
+
$$css: true
|
|
67
|
+
},
|
|
68
|
+
raised: {
|
|
69
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
70
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
71
|
+
"--bolerish-material-opacity": "x1nqk09",
|
|
72
|
+
"--bolerish-material-filter": "x1gkvbmm",
|
|
73
|
+
$$css: true
|
|
74
|
+
},
|
|
75
|
+
translucent: {
|
|
76
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
77
|
+
"--bolerish-material-opacity": "xoh9gux",
|
|
78
|
+
"--bolerish-material-filter": "xhu24am",
|
|
79
|
+
$$css: true
|
|
80
|
+
},
|
|
81
|
+
floating: {
|
|
82
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
83
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
84
|
+
"--bolerish-material-opacity": "x14p89z6",
|
|
85
|
+
"--bolerish-material-filter": "xunhrho",
|
|
86
|
+
$$css: true
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var surfaceStyles = {
|
|
90
|
+
edge: styles.edge,
|
|
91
|
+
panel: [styles.material, styles.panel],
|
|
92
|
+
control: [styles.material, styles.control],
|
|
93
|
+
subtle: [styles.material, styles.subtle],
|
|
94
|
+
outline: [styles.material, styles.outline],
|
|
95
|
+
raised: [styles.material, styles.raised],
|
|
96
|
+
translucent: [styles.material, styles.translucent],
|
|
97
|
+
floating: [styles.material, styles.floating]
|
|
98
|
+
};
|
|
99
|
+
|
|
21
100
|
// src/input-otp.tsx
|
|
22
101
|
import { jsx } from "react/jsx-runtime";
|
|
23
|
-
var
|
|
102
|
+
var styles2 = {
|
|
24
103
|
root: {
|
|
25
104
|
kGNEyG: "x6s0dn4",
|
|
26
105
|
k1xSpc: "x78zum5",
|
|
@@ -96,7 +175,7 @@ function InputOTP(t0) {
|
|
|
96
175
|
}
|
|
97
176
|
let t1;
|
|
98
177
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
99
|
-
t1 = mergeStyles(stylex.props(
|
|
178
|
+
t1 = mergeStyles(stylex.props(styles2.root, surfaceStyles.control, xstyle), className, style);
|
|
100
179
|
$[5] = className;
|
|
101
180
|
$[6] = style;
|
|
102
181
|
$[7] = xstyle;
|
|
@@ -141,7 +220,7 @@ function InputOTPGroup(t0) {
|
|
|
141
220
|
}
|
|
142
221
|
let t1;
|
|
143
222
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
144
|
-
t1 = mergeStyles(stylex.props(
|
|
223
|
+
t1 = mergeStyles(stylex.props(styles2.group, xstyle), className, style);
|
|
145
224
|
$[5] = className;
|
|
146
225
|
$[6] = style;
|
|
147
226
|
$[7] = xstyle;
|
|
@@ -186,7 +265,7 @@ function InputOTPSlot(t0) {
|
|
|
186
265
|
}
|
|
187
266
|
let t1;
|
|
188
267
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
189
|
-
t1 = mergeStyles(stylex.props(
|
|
268
|
+
t1 = mergeStyles(stylex.props(styles2.slot, xstyle), className, style);
|
|
190
269
|
$[5] = className;
|
|
191
270
|
$[6] = style;
|
|
192
271
|
$[7] = xstyle;
|
|
@@ -231,7 +310,7 @@ function InputOTPSeparator(t0) {
|
|
|
231
310
|
}
|
|
232
311
|
let t1;
|
|
233
312
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
234
|
-
t1 = mergeStyles(stylex.props(
|
|
313
|
+
t1 = mergeStyles(stylex.props(styles2.separator, xstyle), className, style);
|
|
235
314
|
$[5] = className;
|
|
236
315
|
$[6] = style;
|
|
237
316
|
$[7] = xstyle;
|
package/dist/input-otp.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/input-otp.tsx", "../src/styles/merge-styles.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { OTPField } from \"@base-ui/react/otp-field\";\nimport { colorVars, motionVars, opacityVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlLayoutStyles, ControlPlacementStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"x136xbx3\",\n $$css: true\n },\n group: {\n k1xSpc: \"x78zum5\",\n $$css: true\n },\n slot: {\n kysU6D: \"xjyslct\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x2u8bby\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n kZKoxP: \"x4rnblq\",\n keTefX: \"x2yqusi\",\n kI3sdo: \"x1a2a7pz\",\n k9WMMc: \"x2b8uid\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"xnib454\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"x16zkcgh\",\n kpxeVS: \"x3ygczw\",\n kO7Kbt: \"xqamik5\",\n kfV8uM: \"x1pwwqoy\",\n k7s7n8: \"xt1p7lf\",\n kh5YYg: \"xghm9d\",\n kLmhY5: \"x1dg55ke\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n k9RWNo: \"x135w3n3\",\n kYPGJ8: \"x1s07b3s\",\n kWCcOm: \"x1qx4qp5\",\n $$css: true\n },\n separator: {\n kMwMTN: \"xhsft5x\",\n kg3NbH: \"xblk7t1\",\n $$css: true\n }\n};\nexport type InputOTPProps = StyledProps<ComponentProps<typeof OTPField.Root>> & {\n xstyle?: ControlLayoutStyles;\n};\nexport function InputOTP(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.root, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <OTPField.Root {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPGroup(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.group, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <div {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPSlot(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.slot, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <OTPField.Input {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPSeparator(t0) {\n const $ = _c(13);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.separator, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n const t2 = props.children ?? \"\\u2013\";\n let t3;\n if ($[9] !== props || $[10] !== t1 || $[11] !== t2) {\n t3 = <span aria-hidden=\"true\" {...props} {...t1}>{t2}</span>;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n $[12] = t3;\n } else {\n t3 = $[12];\n }\n return t3;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}"],
|
|
5
|
-
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,gBAAgB;AAEzB,YAAY,YAAY;;;ACCjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;
|
|
6
|
-
"names": ["props"]
|
|
3
|
+
"sources": ["../src/input-otp.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { OTPField } from \"@base-ui/react/otp-field\";\nimport { colorVars, motionVars, opacityVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlLayoutStyles, ControlPlacementStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"x136xbx3\",\n $$css: true\n },\n group: {\n k1xSpc: \"x78zum5\",\n $$css: true\n },\n slot: {\n kysU6D: \"xjyslct\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x2u8bby\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n kZKoxP: \"x4rnblq\",\n keTefX: \"x2yqusi\",\n kI3sdo: \"x1a2a7pz\",\n k9WMMc: \"x2b8uid\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"xnib454\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"x16zkcgh\",\n kpxeVS: \"x3ygczw\",\n kO7Kbt: \"xqamik5\",\n kfV8uM: \"x1pwwqoy\",\n k7s7n8: \"xt1p7lf\",\n kh5YYg: \"xghm9d\",\n kLmhY5: \"x1dg55ke\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n k9RWNo: \"x135w3n3\",\n kYPGJ8: \"x1s07b3s\",\n kWCcOm: \"x1qx4qp5\",\n $$css: true\n },\n separator: {\n kMwMTN: \"xhsft5x\",\n kg3NbH: \"xblk7t1\",\n $$css: true\n }\n};\nexport type InputOTPProps = StyledProps<ComponentProps<typeof OTPField.Root>> & {\n xstyle?: ControlLayoutStyles;\n};\nexport function InputOTP(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.root, surfaceStyles.control, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <OTPField.Root {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPGroup(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.group, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <div {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPSlot(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.slot, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <OTPField.Input {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function InputOTPSeparator(t0) {\n const $ = _c(13);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.separator, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n const t2 = props.children ?? \"\\u2013\";\n let t3;\n if ($[9] !== props || $[10] !== t1 || $[11] !== t2) {\n t3 = <span aria-hidden=\"true\" {...props} {...t1}>{t2}</span>;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n $[12] = t3;\n } else {\n t3 = $[12];\n }\n return t3;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nconst styles = {\n edge: {\n kVAM5u: \"x1kqtvf4\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xpqbwuo\",\n kWkggS: \"x1s4uome x1u5mdis\",\n k6WDB: \"x1t853zo x1o5bnqd\",\n kKwaWg: \"x18o3ruo xxit9r9\",\n kTahiY: \"x1cg02ou\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\n kkTUmj: \"x14hm74v\",\n k11ilZ: \"xhobzj1\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n panel: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"x8fe23t\",\n \"--bolerish-material-filter\": \"x1n6mwez\",\n $$css: true\n },\n control: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\n \"--bolerish-material-color\": \"x3m3fbl\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n raised: {\n \"--bolerish-material-shadow\": \"x1l9gcvt\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x1nqk09\",\n \"--bolerish-material-filter\": \"x1gkvbmm\",\n $$css: true\n },\n translucent: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xoh9gux\",\n \"--bolerish-material-filter\": \"xhu24am\",\n $$css: true\n },\n floating: {\n \"--bolerish-material-shadow\": \"xu02b4h\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x14p89z6\",\n \"--bolerish-material-filter\": \"xunhrho\",\n $$css: true\n }\n};\nexport const surfaceStyles = {\n edge: styles.edge,\n panel: [styles.material, styles.panel],\n control: [styles.material, styles.control],\n subtle: [styles.material, styles.subtle],\n outline: [styles.material, styles.outline],\n raised: [styles.material, styles.raised],\n translucent: [styles.material, styles.translucent],\n floating: [styles.material, styles.floating]\n};"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACx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,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,gBAAY,EAAE,CAAC;AACf,IAAAA,SAAQ,EAAE,CAAC;AACX,YAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,aAAa,EAAE,CAAC,MAAM,SAAS,EAAE,CAAC,MAAM,QAAQ;AAC3D,SAAK,YAAmB,aAAMD,QAAO,WAAW,MAAM,GAAG,WAAW,KAAK;AACzE,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,KAAKC,OAAM,YAAY;AAC7B,MAAI;AACJ,MAAI,EAAE,CAAC,MAAMA,UAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AAClD,SAAK,oBAAC,UAAK,eAAY,QAAQ,GAAGA,QAAQ,GAAG,IAAK,cAAG;AACrD,MAAE,CAAC,IAAIA;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["styles", "props"]
|
|
7
7
|
}
|
package/dist/input.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import type { ControlLayoutStyles } from "./styles/control-layout";
|
|
|
4
4
|
import type { StyledProps } from "./styles/merge-styles";
|
|
5
5
|
export type InputProps = StyledProps<ComponentProps<typeof InputPrimitive>> & {
|
|
6
6
|
xstyle?: ControlLayoutStyles;
|
|
7
|
-
variant?: "outline" | "inline";
|
|
7
|
+
variant?: "outline" | "inline" | "none" | "underline";
|
|
8
8
|
};
|
|
9
9
|
export declare function Input({ className, style, "aria-invalid": ariaInvalid, variant, xstyle, ...props }: InputProps): import("react").JSX.Element;
|