@bolerish/ui 0.15.0 → 0.17.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 +2 -2
- package/dist/alert-dialog.js.map +1 -1
- package/dist/attachment.js +2 -2
- package/dist/attachment.js.map +1 -1
- package/dist/button-group.js +2 -2
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +2 -2
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/card.js.map +1 -1
- package/dist/combobox.js +2 -2
- package/dist/combobox.js.map +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-picker.js.map +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dialog.js.map +1 -1
- package/dist/drawer.js +2 -2
- package/dist/drawer.js.map +1 -1
- package/dist/dropdown-menu.js +2 -2
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/global.css +19 -14
- package/dist/hover-card.js +2 -2
- package/dist/hover-card.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/dist/input-group.js +2 -2
- package/dist/input-group.js.map +1 -1
- package/dist/input-otp.js +2 -2
- package/dist/input-otp.js.map +1 -1
- package/dist/input.js +2 -2
- package/dist/input.js.map +1 -1
- package/dist/item.js +2 -2
- package/dist/item.js.map +1 -1
- 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.js +2 -2
- package/dist/menubar.js.map +1 -1
- package/dist/native-select.js +2 -2
- package/dist/native-select.js.map +1 -1
- package/dist/navigation-menu.js +2 -2
- package/dist/navigation-menu.js.map +1 -1
- package/dist/popover.js +2 -2
- package/dist/popover.js.map +1 -1
- package/dist/select.js +2 -2
- package/dist/select.js.map +1 -1
- package/dist/styles/liquid-map.d.ts +5 -0
- package/dist/styles/surface.d.ts +2 -2
- package/dist/stylex.css +49 -18
- package/dist/surface.d.ts +12 -0
- package/dist/surface.js +12 -0
- package/dist/surface.js.map +7 -0
- package/dist/textarea.js +2 -2
- package/dist/textarea.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toast.js.map +1 -1
- package/dist/toggle-group.js +2 -2
- package/dist/toggle-group.js.map +1 -1
- package/dist/toggle.js +2 -2
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.js +3 -3
- package/dist/tooltip.js.map +1 -1
- package/package.json +7 -4
package/dist/stylex.css
CHANGED
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
background-color: var(--xy25sql);
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
.x1sigxaw {
|
|
598
|
+
.x1sigxaw, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
599
599
|
background-color: var(--xzfcwl2);
|
|
600
600
|
}
|
|
601
601
|
|
|
@@ -643,13 +643,13 @@
|
|
|
643
643
|
caption-side: bottom;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
.xntwwlm {
|
|
646
|
+
.xntwwlm, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
647
647
|
--lightningcss-light: ;
|
|
648
648
|
--lightningcss-dark: initial;
|
|
649
649
|
color-scheme: dark;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
.x19aimcq {
|
|
652
|
+
.x19aimcq, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root {
|
|
653
653
|
--lightningcss-light: initial;
|
|
654
654
|
--lightningcss-dark: ;
|
|
655
655
|
color-scheme: light;
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
color: inherit;
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
.x1t28c4i {
|
|
666
|
+
.x1t28c4i, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
667
667
|
color: var(--x11f2mpi);
|
|
668
668
|
}
|
|
669
669
|
|
|
@@ -735,6 +735,10 @@
|
|
|
735
735
|
display: inline-flex;
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
+
.x1ctqcxj {
|
|
739
|
+
display: var(--bolerish-liquid-display, none);
|
|
740
|
+
}
|
|
741
|
+
|
|
738
742
|
.x1839e5r {
|
|
739
743
|
fill: var(--x11f2mpi);
|
|
740
744
|
}
|
|
@@ -763,7 +767,7 @@
|
|
|
763
767
|
flex-wrap: wrap;
|
|
764
768
|
}
|
|
765
769
|
|
|
766
|
-
.x1b1to7n {
|
|
770
|
+
.x1b1to7n, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
767
771
|
font-family: var(--x1po5mk9);
|
|
768
772
|
}
|
|
769
773
|
|
|
@@ -1668,6 +1672,18 @@
|
|
|
1668
1672
|
}
|
|
1669
1673
|
}
|
|
1670
1674
|
|
|
1675
|
+
@media (forced-colors: active) {
|
|
1676
|
+
.x1c7sf14.x1c7sf14 {
|
|
1677
|
+
display: none;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
1682
|
+
.x1izksy.x1izksy {
|
|
1683
|
+
display: none;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1671
1687
|
@media (width <= 40rem) {
|
|
1672
1688
|
.xrezwjf.xrezwjf {
|
|
1673
1689
|
justify-content: center;
|
|
@@ -2548,6 +2564,8 @@
|
|
|
2548
2564
|
}
|
|
2549
2565
|
}
|
|
2550
2566
|
|
|
2567
|
+
@layer priority1{
|
|
2568
|
+
|
|
2551
2569
|
:root, .xhnwndr {
|
|
2552
2570
|
--x1fdqiih: calc(65 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1));
|
|
2553
2571
|
}
|
|
@@ -2708,14 +2726,14 @@
|
|
|
2708
2726
|
--x12uov37: var(--x1upjba4);
|
|
2709
2727
|
}
|
|
2710
2728
|
|
|
2711
|
-
:root, .x3m01uk {
|
|
2729
|
+
:root, .x3m01uk, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2712
2730
|
--x8hspg3: 0 1px 4px #00000014;
|
|
2713
2731
|
--x1tk9q2c: 0 2px 10px #0000001a;
|
|
2714
2732
|
--x4xk9rt: 0 4px 16px #0000001f;
|
|
2715
2733
|
}
|
|
2716
2734
|
|
|
2717
2735
|
@supports (color: lab(0% 0 0)) {
|
|
2718
|
-
:root, .x3m01uk {
|
|
2736
|
+
:root, .x3m01uk, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2719
2737
|
--x8hspg3: 0 1px 4px lab(0% 0 0 / .08);
|
|
2720
2738
|
--x1tk9q2c: 0 2px 10px lab(0% 0 0 / .1);
|
|
2721
2739
|
--x4xk9rt: 0 4px 16px lab(0% 0 0 / .12);
|
|
@@ -2791,7 +2809,7 @@
|
|
|
2791
2809
|
--x1byxumr: 70;
|
|
2792
2810
|
}
|
|
2793
2811
|
|
|
2794
|
-
:root, .x16kgm3k {
|
|
2812
|
+
:root, .x16kgm3k, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2795
2813
|
--xzfcwl2: var(--x7i9wdw);
|
|
2796
2814
|
--x1v7ela7: var(--x1nijpcc);
|
|
2797
2815
|
--x8n3f78: var(--xahu6a);
|
|
@@ -2843,7 +2861,7 @@
|
|
|
2843
2861
|
--x1pr580m: var(--x12vwzb9);
|
|
2844
2862
|
}
|
|
2845
2863
|
|
|
2846
|
-
.xd9p2sl.xd9p2sl, .xd9p2sl.xd9p2sl:root {
|
|
2864
|
+
.xd9p2sl.xd9p2sl, .xd9p2sl.xd9p2sl:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2847
2865
|
--x11x010x: var(--xnd9k6d);
|
|
2848
2866
|
--x1dz9nj7: var(--x1mk4mbm);
|
|
2849
2867
|
--x1ka47bg: var(--x1juuggh);
|
|
@@ -2895,7 +2913,7 @@
|
|
|
2895
2913
|
--x1htlk9h: var(--xhyoz57);
|
|
2896
2914
|
}
|
|
2897
2915
|
|
|
2898
|
-
.x1sb35tf.x1sb35tf, .x1sb35tf.x1sb35tf:root {
|
|
2916
|
+
.x1sb35tf.x1sb35tf, .x1sb35tf.x1sb35tf:root, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root {
|
|
2899
2917
|
--x11x010x: var(--xnd9k6d);
|
|
2900
2918
|
--x1dz9nj7: var(--xfkl7sq);
|
|
2901
2919
|
--x1ka47bg: var(--x1lkhngl);
|
|
@@ -2947,28 +2965,28 @@
|
|
|
2947
2965
|
--x1htlk9h: var(--x6zm9ng);
|
|
2948
2966
|
}
|
|
2949
2967
|
|
|
2950
|
-
.x1523l1u.x1523l1u, .x1523l1u.x1523l1u:root {
|
|
2968
|
+
.x1523l1u.x1523l1u, .x1523l1u.x1523l1u:root, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root {
|
|
2951
2969
|
--x1tk9q2c: 0 2px 10px #0000001a;
|
|
2952
2970
|
--x4xk9rt: 0 4px 16px #0000001f;
|
|
2953
2971
|
--x8hspg3: 0 1px 4px #00000014;
|
|
2954
2972
|
}
|
|
2955
2973
|
|
|
2956
2974
|
@supports (color: lab(0% 0 0)) {
|
|
2957
|
-
.x1523l1u.x1523l1u, .x1523l1u.x1523l1u:root {
|
|
2975
|
+
.x1523l1u.x1523l1u, .x1523l1u.x1523l1u:root, [data-bolerish-theme="light"], [data-bolerish-theme="light"]:root {
|
|
2958
2976
|
--x1tk9q2c: 0 2px 10px lab(0% 0 0 / .1);
|
|
2959
2977
|
--x4xk9rt: 0 4px 16px lab(0% 0 0 / .12);
|
|
2960
2978
|
--x8hspg3: 0 1px 4px lab(0% 0 0 / .08);
|
|
2961
2979
|
}
|
|
2962
2980
|
}
|
|
2963
2981
|
|
|
2964
|
-
.x7fu8ln.x7fu8ln, .x7fu8ln.x7fu8ln:root {
|
|
2982
|
+
.x7fu8ln.x7fu8ln, .x7fu8ln.x7fu8ln:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2965
2983
|
--x1tk9q2c: 0 8px 24px #00000085;
|
|
2966
2984
|
--x4xk9rt: 0 16px 40px #000000a3;
|
|
2967
2985
|
--x8hspg3: 0 1px 4px #0000005c;
|
|
2968
2986
|
}
|
|
2969
2987
|
|
|
2970
2988
|
@supports (color: lab(0% 0 0)) {
|
|
2971
|
-
.x7fu8ln.x7fu8ln, .x7fu8ln.x7fu8ln:root {
|
|
2989
|
+
.x7fu8ln.x7fu8ln, .x7fu8ln.x7fu8ln:root, [data-bolerish-theme="dark"], [data-bolerish-theme="dark"]:root {
|
|
2972
2990
|
--x1tk9q2c: 0 8px 24px lab(0% 0 0 / .52);
|
|
2973
2991
|
--x4xk9rt: 0 16px 40px lab(0% 0 0 / .64);
|
|
2974
2992
|
--x8hspg3: 0 1px 4px lab(0% 0 0 / .36);
|
|
@@ -3023,6 +3041,10 @@
|
|
|
3023
3041
|
--bolerish-material-color: var(--x6f99ho);
|
|
3024
3042
|
}
|
|
3025
3043
|
|
|
3044
|
+
.x9f78pr {
|
|
3045
|
+
--bolerish-material-filter: none;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3026
3048
|
.x1mpfm11 {
|
|
3027
3049
|
--bolerish-material-filter: var(--bolerish-control-filter, none);
|
|
3028
3050
|
}
|
|
@@ -3055,6 +3077,10 @@
|
|
|
3055
3077
|
--bolerish-material-opacity: var(--bolerish-floating-opacity, 94%);
|
|
3056
3078
|
}
|
|
3057
3079
|
|
|
3080
|
+
.xf4qlvf {
|
|
3081
|
+
--bolerish-material-opacity: var(--bolerish-liquid-opacity, 100%);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3058
3084
|
.x8fe23t {
|
|
3059
3085
|
--bolerish-material-opacity: var(--bolerish-panel-opacity, 100%);
|
|
3060
3086
|
}
|
|
@@ -3067,12 +3093,16 @@
|
|
|
3067
3093
|
--bolerish-material-shadow: 0 0 transparent;
|
|
3068
3094
|
}
|
|
3069
3095
|
|
|
3070
|
-
.
|
|
3071
|
-
--bolerish-material-shadow: var(--x1tk9q2c);
|
|
3096
|
+
.xu02b4h {
|
|
3097
|
+
--bolerish-material-shadow: var(--bolerish-floating-shadow, var(--x1tk9q2c));
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
.x1l9gcvt {
|
|
3101
|
+
--bolerish-material-shadow: var(--bolerish-raised-shadow, var(--x4xk9rt));
|
|
3072
3102
|
}
|
|
3073
3103
|
|
|
3074
|
-
.
|
|
3075
|
-
--bolerish-
|
|
3104
|
+
.xepbi11 {
|
|
3105
|
+
--bolerish-surface-reflection: var(--bolerish-liquid-reflection, 0 0 transparent);
|
|
3076
3106
|
}
|
|
3077
3107
|
|
|
3078
3108
|
.xfm59fq {
|
|
@@ -3110,3 +3140,4 @@
|
|
|
3110
3140
|
.x7dg23c:user-invalid {
|
|
3111
3141
|
--bolerish-input-focus-color: var(--x1wmomuh);
|
|
3112
3142
|
}
|
|
3143
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SurfaceOptions = {
|
|
2
|
+
mode: "solid" | "liquid";
|
|
3
|
+
};
|
|
4
|
+
export type SurfaceProps = {
|
|
5
|
+
"data-bolerish-surface": SurfaceOptions["mode"];
|
|
6
|
+
};
|
|
7
|
+
declare function props({ mode }: SurfaceOptions): SurfaceProps;
|
|
8
|
+
/** Selects the shared material without replacing an element's className or style. */
|
|
9
|
+
export declare const surface: {
|
|
10
|
+
props: typeof props;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
package/dist/surface.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/surface.ts
|
|
2
|
+
function props({ mode }) {
|
|
3
|
+
if (mode !== "solid" && mode !== "liquid") {
|
|
4
|
+
throw new TypeError('surface.props requires mode "solid" or "liquid".');
|
|
5
|
+
}
|
|
6
|
+
return { "data-bolerish-surface": mode };
|
|
7
|
+
}
|
|
8
|
+
var surface = { props };
|
|
9
|
+
export {
|
|
10
|
+
surface
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=surface.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/surface.ts"],
|
|
4
|
+
"sourcesContent": ["export type SurfaceOptions = {\n mode: \"solid\" | \"liquid\";\n};\n\nexport type SurfaceProps = {\n \"data-bolerish-surface\": SurfaceOptions[\"mode\"];\n};\n\nfunction props({ mode }: SurfaceOptions): SurfaceProps {\n if (mode !== \"solid\" && mode !== \"liquid\") {\n throw new TypeError('surface.props requires mode \"solid\" or \"liquid\".');\n }\n return { \"data-bolerish-surface\": mode };\n}\n\n/** Selects the shared material without replacing an element's className or style. */\nexport const surface = { props };\n"],
|
|
5
|
+
"mappings": ";AAQA,SAAS,MAAM,EAAE,KAAK,GAAiC;AACrD,MAAI,SAAS,WAAW,SAAS,UAAU;AACzC,UAAM,IAAI,UAAU,kDAAkD;AAAA,EACxE;AACA,SAAO,EAAE,yBAAyB,KAAK;AACzC;AAGO,IAAM,UAAU,EAAE,MAAM;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/textarea.js
CHANGED
|
@@ -62,7 +62,7 @@ var styles = {
|
|
|
62
62
|
$$css: true
|
|
63
63
|
},
|
|
64
64
|
raised: {
|
|
65
|
-
"--bolerish-material-shadow": "
|
|
65
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
66
66
|
"--bolerish-material-color": "x1y5ilfp",
|
|
67
67
|
"--bolerish-material-opacity": "x1nqk09",
|
|
68
68
|
"--bolerish-material-filter": "x1gkvbmm",
|
|
@@ -75,7 +75,7 @@ var styles = {
|
|
|
75
75
|
$$css: true
|
|
76
76
|
},
|
|
77
77
|
floating: {
|
|
78
|
-
"--bolerish-material-shadow": "
|
|
78
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
79
79
|
"--bolerish-material-color": "x1y5ilfp",
|
|
80
80
|
"--bolerish-material-opacity": "x14p89z6",
|
|
81
81
|
"--bolerish-material-filter": "xunhrho",
|
package/dist/textarea.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/textarea.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
-
"sourcesContent": ["import { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlFieldStyles } 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 kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n kLWn49: \"xipl0i2\",\n kAzted: \"x1meygxz\",\n kI3sdo: \"x1a2a7pz\",\n kmVPX3: \"xha17u1\",\n kHenm0: \"x288g5\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kOMSMr: \"x1f9m9q7\",\n kOJeXU: \"xafblzd\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kD2jPA: \"xjbuoma\",\n kdODIN: \"xwaks2a\",\n kWC4TW: \"x1vi5fzm\",\n kYPGJ8: \"x1s07b3s\",\n k9uboQ: \"x1yl1c4z\",\n kqcrZL: \"x8jboxv\",\n kHRqo9: \"x1sw6lzt\",\n kbkt0F: \"x14wfgs2\",\n kO0ooq: \"xdz4axu\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"x165btzp\",\n kOJeXU: \"x1vzo2n\",\n kZs9gx: \"x1rovn1u\",\n $$css: true\n }\n};\nexport type TextareaProps = StyledProps<ComponentProps<\"textarea\">> & {\n xstyle?: ControlFieldStyles;\n};\nexport function Textarea({\n className,\n style,\n \"aria-invalid\": ariaInvalid,\n xstyle,\n ...props\n}: TextareaProps) {\n const isInvalid = ariaInvalid === true || ariaInvalid === \"true\";\n return <textarea {...props} aria-invalid={ariaInvalid} {...mergeStyles(stylex.props(styles.root, !props.disabled && surfaceStyles.control, isInvalid && styles.invalid, xstyle), className, style)} />;\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\": \"
|
|
4
|
+
"sourcesContent": ["import { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlFieldStyles } 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 kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n kLWn49: \"xipl0i2\",\n kAzted: \"x1meygxz\",\n kI3sdo: \"x1a2a7pz\",\n kmVPX3: \"xha17u1\",\n kHenm0: \"x288g5\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kOMSMr: \"x1f9m9q7\",\n kOJeXU: \"xafblzd\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kD2jPA: \"xjbuoma\",\n kdODIN: \"xwaks2a\",\n kWC4TW: \"x1vi5fzm\",\n kYPGJ8: \"x1s07b3s\",\n k9uboQ: \"x1yl1c4z\",\n kqcrZL: \"x8jboxv\",\n kHRqo9: \"x1sw6lzt\",\n kbkt0F: \"x14wfgs2\",\n kO0ooq: \"xdz4axu\",\n $$css: true\n },\n invalid: {\n kVAM5u: \"x165btzp\",\n kOJeXU: \"x1vzo2n\",\n kZs9gx: \"x1rovn1u\",\n $$css: true\n }\n};\nexport type TextareaProps = StyledProps<ComponentProps<\"textarea\">> & {\n xstyle?: ControlFieldStyles;\n};\nexport function Textarea({\n className,\n style,\n \"aria-invalid\": ariaInvalid,\n xstyle,\n ...props\n}: TextareaProps) {\n const isInvalid = ariaInvalid === true || ariaInvalid === \"true\";\n return <textarea {...props} aria-invalid={ariaInvalid} {...mergeStyles(stylex.props(styles.root, !props.disabled && surfaceStyles.control, isInvalid && styles.invalid, xstyle), className, style)} />;\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
5
|
"mappings": ";AACA,YAAY,YAAY;;;ACKjB,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;;;ACjBA,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,8BAA8B;AAAA,IAC9B,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,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,OAAO;AAAA,IACL,6BAA6B;AAAA,IAC7B,+BAA+B;AAAA,IAC/B,8BAA8B;AAAA,IAC9B,OAAO;AAAA,EACT;AAAA,E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AA,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,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA,GAAGC;AACL,GAAkB;AAChB,QAAM,YAAY,gBAAgB,QAAQ,gBAAgB;AAC1D,SAAO,oBAAC,cAAU,GAAGA,QAAO,gBAAc,aAAc,GAAG,YAAmB,aAAMD,QAAO,MAAM,CAACC,OAAM,YAAY,cAAc,SAAS,aAAaD,QAAO,SAAS,MAAM,GAAG,WAAW,KAAK,GAAG;AACtM;",
|
|
6
6
|
"names": ["styles", "props"]
|
|
7
7
|
}
|
package/dist/toast.js
CHANGED
|
@@ -68,7 +68,7 @@ var styles = {
|
|
|
68
68
|
$$css: true
|
|
69
69
|
},
|
|
70
70
|
raised: {
|
|
71
|
-
"--bolerish-material-shadow": "
|
|
71
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
72
72
|
"--bolerish-material-color": "x1y5ilfp",
|
|
73
73
|
"--bolerish-material-opacity": "x1nqk09",
|
|
74
74
|
"--bolerish-material-filter": "x1gkvbmm",
|
|
@@ -81,7 +81,7 @@ var styles = {
|
|
|
81
81
|
$$css: true
|
|
82
82
|
},
|
|
83
83
|
floating: {
|
|
84
|
-
"--bolerish-material-shadow": "
|
|
84
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
85
85
|
"--bolerish-material-color": "x1y5ilfp",
|
|
86
86
|
"--bolerish-material-opacity": "x14p89z6",
|
|
87
87
|
"--bolerish-material-filter": "xunhrho",
|
package/dist/toast.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/toast.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts", "../src/toast.stylex.ts", "../src/typography.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Toast as ToastPrimitive } from \"@base-ui/react/toast\";\nimport { colorVars, layerVars, motionVars, radiusVars, shadowVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport { CheckCircleIcon, InfoIcon, WarningIcon, XCircleIcon, XIcon } from \"@phosphor-icons/react\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { useEffect, useLayoutEffect, useRef, useState, type ComponentProps } from \"react\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nimport { toastViewportVars } from \"./toast.stylex\";\nimport { typographyStyles } from \"./typography\";\nconst spin = \"x1fy8ia8-B\";\nconst _temp3 = {\n krVfgx: \"x1ey2m1c\",\n k1C7PZ: \"x135c27o\",\n kbCHJM: \"xu96u03\",\n kfzvcC: \"x19gcdlt\",\n kVAEAm: \"x10l6tqk\",\n kCIrl2: \"x3m8u43\",\n \"$$css\": true\n};\nconst styles = {\n viewport: {\n ks0D6T: \"xx2ukoz\",\n kI3sdo: \"x1a2a7pz\",\n kfzvcC: \"x47corl\",\n kVAEAm: \"xixxii4\",\n kzqmXN: \"x1jjrdmz\",\n kY2c9j: \"x1p9f38c\",\n \"--x1jg9r7c\": \"xubdx0t x4v2x3q\",\n \"--x1b09lcw\": \"xfm59fq x1o7wwc1\",\n \"--x1vywji9\": \"x195h665 xakxg0y\",\n \"--x4bl00v\": \"x1yudz8v xapp0bv\",\n $$css: true\n },\n stack: (height: number | string) => [_temp3, {\n kZKoxP: height != null ? \"x16ye13r\" : height,\n $$css: true\n }, {\n \"--x-height\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(height)\n }],\n stackTop: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"x13vifvy\",\n $$css: true\n },\n root: {\n kWkggS: \"xssngo0\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n krVfgx: \"x1ey2m1c\",\n kGVxlE: \"x1wlfqej\",\n kMwMTN: \"x1t28c4i\",\n kZKoxP: \"x4a9ltk\",\n kI3sdo: \"x1a2a7pz\",\n kVQacm: \"xb3r6kr\",\n kfzvcC: \"x67bb7w\",\n kVAEAm: \"x10l6tqk\",\n kbCHJM: \"x1c0vqr\",\n kCIrl2: \"xxvvz4p\",\n k3aq6I: \"x11u84u\",\n k3nNDw: \"xm4efwp\",\n kmkexE: \"x5oyd77\",\n kfSwDN: \"x87ps6o\",\n kzqmXN: \"x14atkfc\",\n kY2c9j: \"x1l48cz2\",\n k5JduY: \"x1s928wv\",\n k4zj60: \"x1kk1a3e\",\n kH8cDV: \"x17cx49\",\n kwXMNM: \"x1j6awrg\",\n k3foIR: \"x1srwf7z\",\n kkgrvl: \"x4eaejv\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kTrA0T: \"xnbj6on\",\n kuPko: \"x1p2l3ex\",\n knvh1L: \"x83jlts\",\n kfkD4s: \"x1pn4af4\",\n kBPcrh: \"x1tsqv5g\",\n keMjcj: \"x1a042xe\",\n k4F3UM: \"xlq082z\",\n krwDK1: \"xm69ghq\",\n kJcGZN: \"x1llxi74\",\n kWGbKe: \"x1i389j4\",\n kMqVnt: \"x1gqblgl\",\n kkOw2F: \"x1yzz94r\",\n k9qGvA: \"xkjqs5f\",\n kNwbpG: \"x17lkgwk\",\n kAHiuG: \"xnikld8\",\n krnjz7: \"x4efaqc\",\n kxero2: \"xt8ron0\",\n kX3iK1: \"xjxp94\",\n ko3PSZ: \"x8no7jv\",\n $$css: true\n },\n rootTop: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"x13vifvy\",\n k3aq6I: \"xhvwxil\",\n k3nNDw: \"xtj8gnn\",\n kBPcrh: \"x11k6b27\",\n kWGbKe: \"xv51xxh\",\n kkOw2F: \"x18p6d6d\",\n kAHiuG: \"xde6doo\",\n krnjz7: \"xf2eeoe\",\n kX3iK1: \"x97zdyu\",\n ko3PSZ: \"x1kkyvpd\",\n $$css: true\n },\n title: {\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n description: {\n kMwMTN: \"xj9e3ow\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n }\n};\nconst verticalPositionStyles = {\n top: {\n k87sOh: \"x1rfcczn\",\n $$css: true\n },\n bottom: {\n krVfgx: \"x1tfherw\",\n $$css: true\n }\n};\nconst horizontalPositionStyles = {\n left: {\n kbCHJM: \"x1vitsko\",\n $$css: true\n },\n center: {\n kbCHJM: \"x1nrll8i\",\n k3aq6I: \"xuuh30\",\n $$css: true\n },\n right: {\n kCIrl2: \"x1pyr0o\",\n $$css: true\n }\n};\nexport type ToastPosition = \"bottom-center\" | \"bottom-left\" | \"bottom-right\" | \"top-center\" | \"top-left\" | \"top-right\";\nexport type ToasterProps = StyledProps<Omit<ComponentProps<typeof ToastPrimitive.Provider>, \"children\" | \"toastManager\">> & {\n /** Toast viewport position. @default \"bottom-right\" */\n position?: ToastPosition;\n /** Content and accessible label for the action that dismisses all toasts. */\n clearAllProps?: Pick<ComponentProps<\"button\">, \"children\" | \"aria-label\">;\n /** Accessible name for each dismiss button. @default \"Close toast\" */\n closeLabel?: string;\n xstyle?: stylex.StyleXStyles;\n};\nexport const toast = ToastPrimitive.createToastManager();\ntype ToastIconType = \"success\" | \"info\" | \"warning\" | \"error\";\nconst toastIcons = {\n success: CheckCircleIcon,\n info: InfoIcon,\n warning: WarningIcon,\n error: XCircleIcon\n} satisfies Record<ToastIconType, typeof InfoIcon>;\nfunction hasToastIcon(type: string): type is ToastIconType {\n return Object.hasOwn(toastIcons, type);\n}\nfunction ToastStatusIcon(t0) {\n const $ = _c(4);\n const {\n type\n } = t0;\n if (!type || type === \"default\") {\n return null;\n }\n if (type === \"loading\") {\n let t1;\n if ($[0] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = <span aria-hidden=\"true\" className=\"xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv xl56j7k x1ts0t7r x12vebyb\"><span className=\"x12dvent xa4qsjk xpedhrg x1esw782 x1kqtvf4 xwhwt5f x1y0btm7 xqvd2ze x2lah0s x1oo1j9p x1ts0t7r xl6f310\" /></span>;\n $[0] = t1;\n } else {\n t1 = $[0];\n }\n return t1;\n }\n if (!hasToastIcon(type)) {\n return null;\n }\n const IconComponent = toastIcons[type];\n let t1;\n if ($[1] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = {\n className: \"xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv xl56j7k x1ts0t7r x12vebyb\"\n };\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n let t2;\n if ($[2] !== IconComponent) {\n t2 = <span aria-hidden=\"true\" {...t1}><IconComponent /></span>;\n $[2] = IconComponent;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n return t2;\n}\nfunction ToastStack(t0) {\n const $ = _c(11);\n const {\n position,\n clearAllProps,\n closeLabel\n } = t0;\n const {\n toasts\n } = ToastPrimitive.useToastManager();\n const stackRef = useRef(null);\n let t1;\n if ($[0] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = new Set();\n $[0] = t1;\n } else {\n t1 = $[0];\n }\n const dismissedIds = useRef(t1);\n const [height, setHeight] = useState(0);\n const isTop = position.startsWith(\"top\");\n const hasClearAction = toasts.length > 1;\n const stackHeight = hasClearAction ? `calc(${height}px + ${toastViewportVars.clearActionOffset})` : height;\n let t2;\n let t3;\n if ($[1] !== toasts) {\n t2 = () => {\n const stack = stackRef.current;\n if (!stack) {\n return;\n }\n const document = stack.ownerDocument;\n const currentIds = new Set(toasts.map(_temp));\n for (const id of dismissedIds.current) {\n if (!currentIds.has(id)) {\n dismissedIds.current.delete(id);\n }\n }\n const handleEscape = event => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing) {\n return;\n }\n const target = event.target;\n if (target instanceof Element && !stack.contains(target) && target.closest(\"input, textarea, select, [contenteditable]:not([contenteditable=\\\"false\\\"]), [role=\\\"textbox\\\"]\")) {\n return;\n }\n const latest = toasts.find(item_0 => item_0.transitionStatus !== \"ending\" && !dismissedIds.current.has(item_0.id));\n if (!latest) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n if (event.repeat) {\n return;\n }\n dismissedIds.current.add(latest.id);\n toast.close(latest.id);\n };\n stack.addEventListener(\"keydown\", handleEscape, true);\n document.addEventListener(\"keydown\", handleEscape);\n return () => {\n stack.removeEventListener(\"keydown\", handleEscape, true);\n document.removeEventListener(\"keydown\", handleEscape);\n };\n };\n t3 = [toasts];\n $[1] = toasts;\n $[2] = t2;\n $[3] = t3;\n } else {\n t2 = $[2];\n t3 = $[3];\n }\n useEffect(t2, t3);\n let t4;\n if ($[4] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t4 = () => {\n const stack_0 = stackRef.current;\n if (!stack_0) {\n return;\n }\n const updateHeight = () => {\n const rootList = Array.from(stack_0.querySelectorAll(\"[data-bolerish-toast-root]:not([data-limited])\"));\n const toastGap = Number.parseFloat(getComputedStyle(stack_0).columnGap) || 0;\n let nextHeight = 0;\n for (const root of rootList) {\n const rootStyles = getComputedStyle(root);\n const offset = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-offset-y\")) || 0;\n const index = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-index\")) || 0;\n const rootHeight = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-height\")) || root.offsetHeight;\n nextHeight = Math.max(nextHeight, offset + index * toastGap + rootHeight);\n }\n setHeight(nextHeight);\n };\n updateHeight();\n const resizeObserver = new ResizeObserver(updateHeight);\n const rootList_0 = stack_0.querySelectorAll(\"[data-bolerish-toast-root]\");\n rootList_0.forEach(root_0 => resizeObserver.observe(root_0));\n window.addEventListener(\"resize\", updateHeight);\n return () => {\n resizeObserver.disconnect();\n window.removeEventListener(\"resize\", updateHeight);\n };\n };\n $[4] = t4;\n } else {\n t4 = $[4];\n }\n let t5;\n if ($[5] !== toasts) {\n t5 = [toasts];\n $[5] = toasts;\n $[6] = t5;\n } else {\n t5 = $[6];\n }\n useLayoutEffect(t4, t5);\n const t6 = stylex.props(styles.stack(stackHeight), isTop && styles.stackTop);\n const t7 = toasts.map(item_1 => <ToastPrimitive.Root key={item_1.id} toast={item_1} data-bolerish-toast-root=\"\" {...stylex.props(styles.root, surfaceStyles.raised, surfaceStyles.edge, isTop && styles.rootTop)}><ToastPrimitive.Content className=\"x6s0dn4 x78zum5 x6tv65x x5yr21d x1m7qoog xb3r6kr xv3ig3d x1n2onr6 x1vrxc1k x19991ni xrkjf8i x14vjn7q x14cldyx\"><ToastStatusIcon type={item_1.type} /><div className=\"xoi2r2e x78zum5 x98rzlu xdt5ytf x7gjopr xeuugli\"><ToastPrimitive.Title {...stylex.props(typographyStyles.title, styles.title)} /><ToastPrimitive.Description {...stylex.props(typographyStyles.description, styles.description)} /></div>{item_1.actionProps ? <ToastPrimitive.Action className=\"xoi2r2e x6s0dn4 xjyslct xjbqb8w x1p5vitp xng3xce xc342km x1t28c4i x1ypdohk x3nfvp2 x2lah0s x1b1to7n x1gag4p9 xoop9yj x15rnifv x1nb8khz xl56j7k x1a2a7pz x5044ve xznvecg xt3l3uh xrkjf8i xt0b8zv x768paa x1p3hdyt x9v5kkp x1k4h2j2\" /> : null}<ToastPrimitive.Close aria-label={closeLabel} className=\"xoi2r2e x6s0dn4 xjyslct xjbqb8w x9r1u3d x1p5vitp x1y0btm7 x1al7nqq xj9e3ow x1ypdohk x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv x1nb8khz xl56j7k x1a2a7pz xznvecg xs2xxs2 xrkjf8i xcasm8m x12vebyb xk9i4fa x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2\"><XIcon aria-hidden=\"true\" /></ToastPrimitive.Close></ToastPrimitive.Content></ToastPrimitive.Root>);\n const t8 = hasClearAction ? <button {...clearAllProps} type=\"button\" onClick={_temp2} {...{\n 0: {\n className: \"xjyslct xssngo0 x1kqtvf4 x1y0btm7 x1p5vitp x1al7nqq xj9e3ow x1ypdohk x1b1to7n x1gag4p9 xoop9yj x1dvwle6 x1a2a7pz x1mmca2r x1gr5eyh x1o036j4 xcmrzjo x10l6tqk x3m8u43 x13vifvy xznvecg x7h6xqb xrkjf8i x1bkdxzg xc0dknh x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2\"\n },\n 1: {\n className: \"xjyslct xssngo0 x1kqtvf4 x1y0btm7 x1p5vitp x1al7nqq xj9e3ow x1ypdohk x1b1to7n x1gag4p9 xoop9yj x1dvwle6 x1a2a7pz x1mmca2r x1gr5eyh x1o036j4 xcmrzjo x10l6tqk x3m8u43 xznvecg x7h6xqb xrkjf8i x1bkdxzg xc0dknh x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2 x1ey2m1c x80663w\"\n }\n }[!!isTop << 0]}>{clearAllProps?.children ?? \"Clear all\"}</button> : null;\n let t9;\n if ($[7] !== t6 || $[8] !== t7 || $[9] !== t8) {\n t9 = <div ref={stackRef} {...t6}>{t7}{t8}</div>;\n $[7] = t6;\n $[8] = t7;\n $[9] = t8;\n $[10] = t9;\n } else {\n t9 = $[10];\n }\n return t9;\n}\nfunction _temp2() {\n return toast.close();\n}\nfunction _temp(item) {\n return item.id;\n}\nexport function Toaster(t0) {\n const $ = _c(28);\n let className;\n let clearAllProps;\n let props;\n let style;\n let t1;\n let t2;\n let t3;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n limit: t1,\n position: t2,\n clearAllProps,\n closeLabel: t3,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = clearAllProps;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = t2;\n $[7] = t3;\n $[8] = xstyle;\n } else {\n className = $[1];\n clearAllProps = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n t2 = $[6];\n t3 = $[7];\n xstyle = $[8];\n }\n const limit = t1 === undefined ? 3 : t1;\n const position = t2 === undefined ? \"bottom-right\" : t2;\n const closeLabel = t3 === undefined ? \"Close toast\" : t3;\n let t4;\n if ($[9] !== position) {\n t4 = position.split(\"-\");\n $[9] = position;\n $[10] = t4;\n } else {\n t4 = $[10];\n }\n const [verticalPosition, horizontalPosition] = t4 as [\"bottom\" | \"top\", \"center\" | \"left\" | \"right\"];\n let t5;\n if ($[11] !== className || $[12] !== horizontalPosition || $[13] !== style || $[14] !== verticalPosition || $[15] !== xstyle) {\n t5 = mergeStyles(stylex.props(styles.viewport, verticalPositionStyles[verticalPosition], horizontalPositionStyles[horizontalPosition], xstyle), className, style);\n $[11] = className;\n $[12] = horizontalPosition;\n $[13] = style;\n $[14] = verticalPosition;\n $[15] = xstyle;\n $[16] = t5;\n } else {\n t5 = $[16];\n }\n let t6;\n if ($[17] !== clearAllProps || $[18] !== closeLabel || $[19] !== position) {\n t6 = <ToastStack position={position} clearAllProps={clearAllProps} closeLabel={closeLabel} />;\n $[17] = clearAllProps;\n $[18] = closeLabel;\n $[19] = position;\n $[20] = t6;\n } else {\n t6 = $[20];\n }\n let t7;\n if ($[21] !== t5 || $[22] !== t6) {\n t7 = <ToastPrimitive.Portal><ToastPrimitive.Viewport {...t5}>{t6}</ToastPrimitive.Viewport></ToastPrimitive.Portal>;\n $[21] = t5;\n $[22] = t6;\n $[23] = t7;\n } else {\n t7 = $[23];\n }\n let t8;\n if ($[24] !== limit || $[25] !== props || $[26] !== t7) {\n t8 = <ToastPrimitive.Provider {...props} limit={limit} toastManager={toast}>{t7}</ToastPrimitive.Provider>;\n $[24] = limit;\n $[25] = props;\n $[26] = t7;\n $[27] = t8;\n } else {\n t8 = $[27];\n }\n return t8;\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\": \"x8605wn\",\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\": \"x1edk1m7\",\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};", "import * as stylex from \"@stylexjs/stylex\";\nexport const toastViewportVars = {\n contentMinHeight: \"var(--x1jisfxj)\",\n clearActionOffset: \"var(--x1b09lcw)\",\n clearActionOpacity: \"var(--x1vywji9)\",\n clearActionPointerEvents: \"var(--x4bl00v)\",\n stackPointerEvents: \"var(--x1jg9r7c)\",\n __varGroupHash__: \"x1da2mid\"\n};", "import { typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const typographyStyles = {\n body: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n description: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n caption: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1gag4p9\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n label: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n title: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n page: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xw8z6gz\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n section: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xr5nsds\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n subsection: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n }\n};"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Toast as ToastPrimitive } from \"@base-ui/react/toast\";\nimport { colorVars, layerVars, motionVars, radiusVars, shadowVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport { CheckCircleIcon, InfoIcon, WarningIcon, XCircleIcon, XIcon } from \"@phosphor-icons/react\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { useEffect, useLayoutEffect, useRef, useState, type ComponentProps } from \"react\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nimport { toastViewportVars } from \"./toast.stylex\";\nimport { typographyStyles } from \"./typography\";\nconst spin = \"x1fy8ia8-B\";\nconst _temp3 = {\n krVfgx: \"x1ey2m1c\",\n k1C7PZ: \"x135c27o\",\n kbCHJM: \"xu96u03\",\n kfzvcC: \"x19gcdlt\",\n kVAEAm: \"x10l6tqk\",\n kCIrl2: \"x3m8u43\",\n \"$$css\": true\n};\nconst styles = {\n viewport: {\n ks0D6T: \"xx2ukoz\",\n kI3sdo: \"x1a2a7pz\",\n kfzvcC: \"x47corl\",\n kVAEAm: \"xixxii4\",\n kzqmXN: \"x1jjrdmz\",\n kY2c9j: \"x1p9f38c\",\n \"--x1jg9r7c\": \"xubdx0t x4v2x3q\",\n \"--x1b09lcw\": \"xfm59fq x1o7wwc1\",\n \"--x1vywji9\": \"x195h665 xakxg0y\",\n \"--x4bl00v\": \"x1yudz8v xapp0bv\",\n $$css: true\n },\n stack: (height: number | string) => [_temp3, {\n kZKoxP: height != null ? \"x16ye13r\" : height,\n $$css: true\n }, {\n \"--x-height\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(height)\n }],\n stackTop: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"x13vifvy\",\n $$css: true\n },\n root: {\n kWkggS: \"xssngo0\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n krVfgx: \"x1ey2m1c\",\n kGVxlE: \"x1wlfqej\",\n kMwMTN: \"x1t28c4i\",\n kZKoxP: \"x4a9ltk\",\n kI3sdo: \"x1a2a7pz\",\n kVQacm: \"xb3r6kr\",\n kfzvcC: \"x67bb7w\",\n kVAEAm: \"x10l6tqk\",\n kbCHJM: \"x1c0vqr\",\n kCIrl2: \"xxvvz4p\",\n k3aq6I: \"x11u84u\",\n k3nNDw: \"xm4efwp\",\n kmkexE: \"x5oyd77\",\n kfSwDN: \"x87ps6o\",\n kzqmXN: \"x14atkfc\",\n kY2c9j: \"x1l48cz2\",\n k5JduY: \"x1s928wv\",\n k4zj60: \"x1kk1a3e\",\n kH8cDV: \"x17cx49\",\n kwXMNM: \"x1j6awrg\",\n k3foIR: \"x1srwf7z\",\n kkgrvl: \"x4eaejv\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kTrA0T: \"xnbj6on\",\n kuPko: \"x1p2l3ex\",\n knvh1L: \"x83jlts\",\n kfkD4s: \"x1pn4af4\",\n kBPcrh: \"x1tsqv5g\",\n keMjcj: \"x1a042xe\",\n k4F3UM: \"xlq082z\",\n krwDK1: \"xm69ghq\",\n kJcGZN: \"x1llxi74\",\n kWGbKe: \"x1i389j4\",\n kMqVnt: \"x1gqblgl\",\n kkOw2F: \"x1yzz94r\",\n k9qGvA: \"xkjqs5f\",\n kNwbpG: \"x17lkgwk\",\n kAHiuG: \"xnikld8\",\n krnjz7: \"x4efaqc\",\n kxero2: \"xt8ron0\",\n kX3iK1: \"xjxp94\",\n ko3PSZ: \"x8no7jv\",\n $$css: true\n },\n rootTop: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"x13vifvy\",\n k3aq6I: \"xhvwxil\",\n k3nNDw: \"xtj8gnn\",\n kBPcrh: \"x11k6b27\",\n kWGbKe: \"xv51xxh\",\n kkOw2F: \"x18p6d6d\",\n kAHiuG: \"xde6doo\",\n krnjz7: \"xf2eeoe\",\n kX3iK1: \"x97zdyu\",\n ko3PSZ: \"x1kkyvpd\",\n $$css: true\n },\n title: {\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n description: {\n kMwMTN: \"xj9e3ow\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n }\n};\nconst verticalPositionStyles = {\n top: {\n k87sOh: \"x1rfcczn\",\n $$css: true\n },\n bottom: {\n krVfgx: \"x1tfherw\",\n $$css: true\n }\n};\nconst horizontalPositionStyles = {\n left: {\n kbCHJM: \"x1vitsko\",\n $$css: true\n },\n center: {\n kbCHJM: \"x1nrll8i\",\n k3aq6I: \"xuuh30\",\n $$css: true\n },\n right: {\n kCIrl2: \"x1pyr0o\",\n $$css: true\n }\n};\nexport type ToastPosition = \"bottom-center\" | \"bottom-left\" | \"bottom-right\" | \"top-center\" | \"top-left\" | \"top-right\";\nexport type ToasterProps = StyledProps<Omit<ComponentProps<typeof ToastPrimitive.Provider>, \"children\" | \"toastManager\">> & {\n /** Toast viewport position. @default \"bottom-right\" */\n position?: ToastPosition;\n /** Content and accessible label for the action that dismisses all toasts. */\n clearAllProps?: Pick<ComponentProps<\"button\">, \"children\" | \"aria-label\">;\n /** Accessible name for each dismiss button. @default \"Close toast\" */\n closeLabel?: string;\n xstyle?: stylex.StyleXStyles;\n};\nexport const toast = ToastPrimitive.createToastManager();\ntype ToastIconType = \"success\" | \"info\" | \"warning\" | \"error\";\nconst toastIcons = {\n success: CheckCircleIcon,\n info: InfoIcon,\n warning: WarningIcon,\n error: XCircleIcon\n} satisfies Record<ToastIconType, typeof InfoIcon>;\nfunction hasToastIcon(type: string): type is ToastIconType {\n return Object.hasOwn(toastIcons, type);\n}\nfunction ToastStatusIcon(t0) {\n const $ = _c(4);\n const {\n type\n } = t0;\n if (!type || type === \"default\") {\n return null;\n }\n if (type === \"loading\") {\n let t1;\n if ($[0] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = <span aria-hidden=\"true\" className=\"xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv xl56j7k x1ts0t7r x12vebyb\"><span className=\"x12dvent xa4qsjk xpedhrg x1esw782 x1kqtvf4 xwhwt5f x1y0btm7 xqvd2ze x2lah0s x1oo1j9p x1ts0t7r xl6f310\" /></span>;\n $[0] = t1;\n } else {\n t1 = $[0];\n }\n return t1;\n }\n if (!hasToastIcon(type)) {\n return null;\n }\n const IconComponent = toastIcons[type];\n let t1;\n if ($[1] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = {\n className: \"xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv xl56j7k x1ts0t7r x12vebyb\"\n };\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n let t2;\n if ($[2] !== IconComponent) {\n t2 = <span aria-hidden=\"true\" {...t1}><IconComponent /></span>;\n $[2] = IconComponent;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n return t2;\n}\nfunction ToastStack(t0) {\n const $ = _c(11);\n const {\n position,\n clearAllProps,\n closeLabel\n } = t0;\n const {\n toasts\n } = ToastPrimitive.useToastManager();\n const stackRef = useRef(null);\n let t1;\n if ($[0] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = new Set();\n $[0] = t1;\n } else {\n t1 = $[0];\n }\n const dismissedIds = useRef(t1);\n const [height, setHeight] = useState(0);\n const isTop = position.startsWith(\"top\");\n const hasClearAction = toasts.length > 1;\n const stackHeight = hasClearAction ? `calc(${height}px + ${toastViewportVars.clearActionOffset})` : height;\n let t2;\n let t3;\n if ($[1] !== toasts) {\n t2 = () => {\n const stack = stackRef.current;\n if (!stack) {\n return;\n }\n const document = stack.ownerDocument;\n const currentIds = new Set(toasts.map(_temp));\n for (const id of dismissedIds.current) {\n if (!currentIds.has(id)) {\n dismissedIds.current.delete(id);\n }\n }\n const handleEscape = event => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing) {\n return;\n }\n const target = event.target;\n if (target instanceof Element && !stack.contains(target) && target.closest(\"input, textarea, select, [contenteditable]:not([contenteditable=\\\"false\\\"]), [role=\\\"textbox\\\"]\")) {\n return;\n }\n const latest = toasts.find(item_0 => item_0.transitionStatus !== \"ending\" && !dismissedIds.current.has(item_0.id));\n if (!latest) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n if (event.repeat) {\n return;\n }\n dismissedIds.current.add(latest.id);\n toast.close(latest.id);\n };\n stack.addEventListener(\"keydown\", handleEscape, true);\n document.addEventListener(\"keydown\", handleEscape);\n return () => {\n stack.removeEventListener(\"keydown\", handleEscape, true);\n document.removeEventListener(\"keydown\", handleEscape);\n };\n };\n t3 = [toasts];\n $[1] = toasts;\n $[2] = t2;\n $[3] = t3;\n } else {\n t2 = $[2];\n t3 = $[3];\n }\n useEffect(t2, t3);\n let t4;\n if ($[4] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t4 = () => {\n const stack_0 = stackRef.current;\n if (!stack_0) {\n return;\n }\n const updateHeight = () => {\n const rootList = Array.from(stack_0.querySelectorAll(\"[data-bolerish-toast-root]:not([data-limited])\"));\n const toastGap = Number.parseFloat(getComputedStyle(stack_0).columnGap) || 0;\n let nextHeight = 0;\n for (const root of rootList) {\n const rootStyles = getComputedStyle(root);\n const offset = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-offset-y\")) || 0;\n const index = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-index\")) || 0;\n const rootHeight = Number.parseFloat(rootStyles.getPropertyValue(\"--toast-height\")) || root.offsetHeight;\n nextHeight = Math.max(nextHeight, offset + index * toastGap + rootHeight);\n }\n setHeight(nextHeight);\n };\n updateHeight();\n const resizeObserver = new ResizeObserver(updateHeight);\n const rootList_0 = stack_0.querySelectorAll(\"[data-bolerish-toast-root]\");\n rootList_0.forEach(root_0 => resizeObserver.observe(root_0));\n window.addEventListener(\"resize\", updateHeight);\n return () => {\n resizeObserver.disconnect();\n window.removeEventListener(\"resize\", updateHeight);\n };\n };\n $[4] = t4;\n } else {\n t4 = $[4];\n }\n let t5;\n if ($[5] !== toasts) {\n t5 = [toasts];\n $[5] = toasts;\n $[6] = t5;\n } else {\n t5 = $[6];\n }\n useLayoutEffect(t4, t5);\n const t6 = stylex.props(styles.stack(stackHeight), isTop && styles.stackTop);\n const t7 = toasts.map(item_1 => <ToastPrimitive.Root key={item_1.id} toast={item_1} data-bolerish-toast-root=\"\" {...stylex.props(styles.root, surfaceStyles.raised, surfaceStyles.edge, isTop && styles.rootTop)}><ToastPrimitive.Content className=\"x6s0dn4 x78zum5 x6tv65x x5yr21d x1m7qoog xb3r6kr xv3ig3d x1n2onr6 x1vrxc1k x19991ni xrkjf8i x14vjn7q x14cldyx\"><ToastStatusIcon type={item_1.type} /><div className=\"xoi2r2e x78zum5 x98rzlu xdt5ytf x7gjopr xeuugli\"><ToastPrimitive.Title {...stylex.props(typographyStyles.title, styles.title)} /><ToastPrimitive.Description {...stylex.props(typographyStyles.description, styles.description)} /></div>{item_1.actionProps ? <ToastPrimitive.Action className=\"xoi2r2e x6s0dn4 xjyslct xjbqb8w x1p5vitp xng3xce xc342km x1t28c4i x1ypdohk x3nfvp2 x2lah0s x1b1to7n x1gag4p9 xoop9yj x15rnifv x1nb8khz xl56j7k x1a2a7pz x5044ve xznvecg xt3l3uh xrkjf8i xt0b8zv x768paa x1p3hdyt x9v5kkp x1k4h2j2\" /> : null}<ToastPrimitive.Close aria-label={closeLabel} className=\"xoi2r2e x6s0dn4 xjyslct xjbqb8w x9r1u3d x1p5vitp x1y0btm7 x1al7nqq xj9e3ow x1ypdohk x3nfvp2 x2lah0s x1b1to7n x1lskvfa xoop9yj x15rnifv x1nb8khz xl56j7k x1a2a7pz xznvecg xs2xxs2 xrkjf8i xcasm8m x12vebyb xk9i4fa x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2\"><XIcon aria-hidden=\"true\" /></ToastPrimitive.Close></ToastPrimitive.Content></ToastPrimitive.Root>);\n const t8 = hasClearAction ? <button {...clearAllProps} type=\"button\" onClick={_temp2} {...{\n 0: {\n className: \"xjyslct xssngo0 x1kqtvf4 x1y0btm7 x1p5vitp x1al7nqq xj9e3ow x1ypdohk x1b1to7n x1gag4p9 xoop9yj x1dvwle6 x1a2a7pz x1mmca2r x1gr5eyh x1o036j4 xcmrzjo x10l6tqk x3m8u43 x13vifvy xznvecg x7h6xqb xrkjf8i x1bkdxzg xc0dknh x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2\"\n },\n 1: {\n className: \"xjyslct xssngo0 x1kqtvf4 x1y0btm7 x1p5vitp x1al7nqq xj9e3ow x1ypdohk x1b1to7n x1gag4p9 xoop9yj x1dvwle6 x1a2a7pz x1mmca2r x1gr5eyh x1o036j4 xcmrzjo x10l6tqk x3m8u43 xznvecg x7h6xqb xrkjf8i x1bkdxzg xc0dknh x1woi373 x768paa x1p3hdyt x9v5kkp x1k4h2j2 x1ey2m1c x80663w\"\n }\n }[!!isTop << 0]}>{clearAllProps?.children ?? \"Clear all\"}</button> : null;\n let t9;\n if ($[7] !== t6 || $[8] !== t7 || $[9] !== t8) {\n t9 = <div ref={stackRef} {...t6}>{t7}{t8}</div>;\n $[7] = t6;\n $[8] = t7;\n $[9] = t8;\n $[10] = t9;\n } else {\n t9 = $[10];\n }\n return t9;\n}\nfunction _temp2() {\n return toast.close();\n}\nfunction _temp(item) {\n return item.id;\n}\nexport function Toaster(t0) {\n const $ = _c(28);\n let className;\n let clearAllProps;\n let props;\n let style;\n let t1;\n let t2;\n let t3;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n limit: t1,\n position: t2,\n clearAllProps,\n closeLabel: t3,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = clearAllProps;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = t2;\n $[7] = t3;\n $[8] = xstyle;\n } else {\n className = $[1];\n clearAllProps = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n t2 = $[6];\n t3 = $[7];\n xstyle = $[8];\n }\n const limit = t1 === undefined ? 3 : t1;\n const position = t2 === undefined ? \"bottom-right\" : t2;\n const closeLabel = t3 === undefined ? \"Close toast\" : t3;\n let t4;\n if ($[9] !== position) {\n t4 = position.split(\"-\");\n $[9] = position;\n $[10] = t4;\n } else {\n t4 = $[10];\n }\n const [verticalPosition, horizontalPosition] = t4 as [\"bottom\" | \"top\", \"center\" | \"left\" | \"right\"];\n let t5;\n if ($[11] !== className || $[12] !== horizontalPosition || $[13] !== style || $[14] !== verticalPosition || $[15] !== xstyle) {\n t5 = mergeStyles(stylex.props(styles.viewport, verticalPositionStyles[verticalPosition], horizontalPositionStyles[horizontalPosition], xstyle), className, style);\n $[11] = className;\n $[12] = horizontalPosition;\n $[13] = style;\n $[14] = verticalPosition;\n $[15] = xstyle;\n $[16] = t5;\n } else {\n t5 = $[16];\n }\n let t6;\n if ($[17] !== clearAllProps || $[18] !== closeLabel || $[19] !== position) {\n t6 = <ToastStack position={position} clearAllProps={clearAllProps} closeLabel={closeLabel} />;\n $[17] = clearAllProps;\n $[18] = closeLabel;\n $[19] = position;\n $[20] = t6;\n } else {\n t6 = $[20];\n }\n let t7;\n if ($[21] !== t5 || $[22] !== t6) {\n t7 = <ToastPrimitive.Portal><ToastPrimitive.Viewport {...t5}>{t6}</ToastPrimitive.Viewport></ToastPrimitive.Portal>;\n $[21] = t5;\n $[22] = t6;\n $[23] = t7;\n } else {\n t7 = $[23];\n }\n let t8;\n if ($[24] !== limit || $[25] !== props || $[26] !== t7) {\n t8 = <ToastPrimitive.Provider {...props} limit={limit} toastManager={toast}>{t7}</ToastPrimitive.Provider>;\n $[24] = limit;\n $[25] = props;\n $[26] = t7;\n $[27] = t8;\n } else {\n t8 = $[27];\n }\n return t8;\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};", "import * as stylex from \"@stylexjs/stylex\";\nexport const toastViewportVars = {\n contentMinHeight: \"var(--x1jisfxj)\",\n clearActionOffset: \"var(--x1b09lcw)\",\n clearActionOpacity: \"var(--x1vywji9)\",\n clearActionPointerEvents: \"var(--x4bl00v)\",\n stackPointerEvents: \"var(--x1jg9r7c)\",\n __varGroupHash__: \"x1da2mid\"\n};", "import { typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const typographyStyles = {\n body: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n description: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n caption: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1gag4p9\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n label: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n title: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n page: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xw8z6gz\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n section: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xr5nsds\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n subsection: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n }\n};"],
|
|
5
5
|
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,SAAS,sBAAsB;AAExC,SAAS,iBAAiB,UAAU,aAAa,aAAa,aAAa;AAC3E,YAAY,YAAY;AACxB,SAAS,WAAW,iBAAiB,QAAQ,gBAAqC;;;ACD3E,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;;;ACjBA,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,8BAA8B;AAAA,IAC9B,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,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AA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AAChC,SAAK,oBAAC,eAAe,QAAf,EAAsB,8BAAC,eAAe,UAAf,EAAyB,GAAG,IAAK,cAAG,GAA0B;AAC3F,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,SAAS,EAAE,EAAE,MAAME,UAAS,EAAE,EAAE,MAAM,IAAI;AACtD,SAAK,oBAAC,eAAe,UAAf,EAAyB,GAAGA,QAAO,OAAc,cAAc,OAAQ,cAAG;AAChF,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["styles", "t1", "props"]
|
|
7
7
|
}
|
package/dist/toggle-group.js
CHANGED
|
@@ -68,7 +68,7 @@ var styles = {
|
|
|
68
68
|
$$css: true
|
|
69
69
|
},
|
|
70
70
|
raised: {
|
|
71
|
-
"--bolerish-material-shadow": "
|
|
71
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
72
72
|
"--bolerish-material-color": "x1y5ilfp",
|
|
73
73
|
"--bolerish-material-opacity": "x1nqk09",
|
|
74
74
|
"--bolerish-material-filter": "x1gkvbmm",
|
|
@@ -81,7 +81,7 @@ var styles = {
|
|
|
81
81
|
$$css: true
|
|
82
82
|
},
|
|
83
83
|
floating: {
|
|
84
|
-
"--bolerish-material-shadow": "
|
|
84
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
85
85
|
"--bolerish-material-color": "x1y5ilfp",
|
|
86
86
|
"--bolerish-material-opacity": "x14p89z6",
|
|
87
87
|
"--bolerish-material-filter": "xunhrho",
|
package/dist/toggle-group.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/toggle-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 { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\";\nimport { ToggleGroup as ToggleGroupPrimitive } from \"@base-ui/react/toggle-group\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { createContext, useContext, type ComponentProps, type ReactNode } 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\";\nimport type { ToggleSize, ToggleVariant } from \"./toggle\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x3nfvp2\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n outlineItem: {\n kVAM5u: \"x9r1u3d\",\n kaIpWk: \"x2u8bby\",\n keTefX: \"x2yqusi\",\n kiQ9C1: \"x15hlyvw\",\n kWfW7Y: \"x6kgtcc\",\n k2IYYg: \"x1xzjtzd\",\n k1boJ8: \"xopb9it\",\n $$css: true\n },\n item: {\n kGNEyG: \"x6s0dn4\",\n kVAM5u: \"x9r1u3d\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kOIVth: \"x7gjopr\",\n kjj79g: \"xl56j7k\",\n kHBbk8: \"xc8icb0\",\n kI3sdo: \"x1a2a7pz\",\n kVAEAm: \"x1n2onr6\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x1qsmvhx\",\n kAMwcw: \"xrkjf8i\",\n ks3ayO: \"x17ctvpv xb90rde xn0w0t3\",\n kUfP38: \"x1k48kgn\",\n k5JduY: \"x1s928wv\",\n kv0HGH: \"xarstr8\",\n kloYau: \"x2q1x1w\",\n kwXMNM: \"x1j6awrg\",\n kPNhGg: \"x1byudbu\",\n kRicXK: \"x1ywzrc5\",\n kA8PQs: \"xe2lpi4\",\n kDVEDD: \"xi4xitw\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1m0b1kh\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kYPGJ8: \"x1s07b3s\",\n $$css: true\n },\n softPressed: {\n kWkggS: \"x14itwj6\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"xi3myl\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n outlinePressed: {\n kGVxlE: \"xzq8p8k\",\n $$css: true\n },\n unavailable: {\n kWkggS: \"xx34gk8\",\n $$css: true\n },\n itemDisabled: {\n kMwMTN: \"xdmzwdx\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n }\n};\nconst variantStyles = {\n default: {\n kOIVth: \"x7gjopr\",\n $$css: true\n },\n soft: {\n kOIVth: \"x6bpos\",\n kmVPX3: \"xzsj1fb\",\n kWkggS: \"xmqg8ag\",\n kVAM5u: \"x1kqtvf4\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kaIpWk: \"x1p5vitp\",\n $$css: true\n },\n outline: {\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kOIVth: \"xxhr3t\",\n $$css: true\n }\n};\nconst itemSizeStyles = {\n sm: {\n kZKoxP: \"x1dvwle6\",\n k7Eaqz: \"xbl05st\",\n kg3NbH: \"x1gr5eyh\",\n $$css: true\n },\n md: {\n kZKoxP: \"x1f00wt4\",\n k7Eaqz: \"x1gxa3zx\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n lg: {\n kZKoxP: \"x4rnblq\",\n k7Eaqz: \"x1msgxsh\",\n kg3NbH: \"x9eqyeb\",\n $$css: true\n }\n};\nconst itemVariantStyles = {\n default: {\n kWkggS: \"xjbqb8w\",\n $$css: true\n },\n soft: {\n kWkggS: \"xjbqb8w\",\n $$css: true\n },\n outline: {\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n $$css: true\n }\n};\ntype ToggleGroupContextValue = {\n size: ToggleSize;\n variant: ToggleVariant;\n};\nconst ToggleGroupContext = createContext<ToggleGroupContextValue>({\n size: \"md\",\n variant: \"default\"\n});\nexport type ToggleGroupProps = StyledProps<ComponentProps<typeof ToggleGroupPrimitive>> & {\n children: ReactNode;\n size?: ToggleSize;\n variant?: ToggleVariant;\n xstyle?: ControlLayoutStyles;\n};\nexport function ToggleGroup(t0) {\n const $ = _c(23);\n let children;\n let className;\n let props;\n let style;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n children,\n size: t1,\n variant: t2,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = t2;\n $[7] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n t2 = $[6];\n xstyle = $[7];\n }\n const size = t1 === undefined ? \"md\" : t1;\n const variant = t2 === undefined ? \"default\" : t2;\n let t3;\n if ($[8] !== className || $[9] !== style || $[10] !== variant || $[11] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, variantStyles[variant], variant === \"outline\" && surfaceStyles.control, xstyle), className, style);\n $[8] = className;\n $[9] = style;\n $[10] = variant;\n $[11] = xstyle;\n $[12] = t3;\n } else {\n t3 = $[12];\n }\n let t4;\n if ($[13] !== size || $[14] !== variant) {\n t4 = {\n size,\n variant\n };\n $[13] = size;\n $[14] = variant;\n $[15] = t4;\n } else {\n t4 = $[15];\n }\n let t5;\n if ($[16] !== children || $[17] !== t4) {\n t5 = <ToggleGroupContext value={t4}>{children}</ToggleGroupContext>;\n $[16] = children;\n $[17] = t4;\n $[18] = t5;\n } else {\n t5 = $[18];\n }\n let t6;\n if ($[19] !== props || $[20] !== t3 || $[21] !== t5) {\n t6 = <ToggleGroupPrimitive {...props} {...t3}>{t5}</ToggleGroupPrimitive>;\n $[19] = props;\n $[20] = t3;\n $[21] = t5;\n $[22] = t6;\n } else {\n t6 = $[22];\n }\n return t6;\n}\nexport type ToggleGroupItemProps = StyledProps<ComponentProps<typeof TogglePrimitive>> & {\n size?: ToggleSize;\n variant?: ToggleVariant;\n xstyle?: ControlPlacementStyles;\n};\nexport function ToggleGroupItem(t0) {\n const $ = _c(20);\n let className;\n let props;\n let size;\n let style;\n let variant;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n size,\n variant,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = size;\n $[4] = style;\n $[5] = variant;\n $[6] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n size = $[3];\n style = $[4];\n variant = $[5];\n xstyle = $[6];\n }\n const context = useContext(ToggleGroupContext);\n const finalSize = size ?? context.size;\n const finalVariant = variant ?? context.variant;\n let t1;\n if ($[7] !== className || $[8] !== finalSize || $[9] !== finalVariant || $[10] !== style || $[11] !== xstyle) {\n t1 = function getToggleStyles(state) {\n return mergeStyles(stylex.props(styles.item, itemSizeStyles[finalSize], itemVariantStyles[finalVariant], finalVariant === \"outline\" && !state.pressed && !state.disabled && surfaceStyles.control, state.pressed && styles.itemPressed, state.pressed && finalVariant === \"outline\" && styles.outlinePressed, state.pressed && finalVariant === \"soft\" && styles.softPressed, state.disabled && !state.pressed && styles.unavailable, state.disabled && styles.itemDisabled, finalVariant === \"outline\" && styles.outlineItem, xstyle), className, style);\n };\n $[7] = className;\n $[8] = finalSize;\n $[9] = finalVariant;\n $[10] = style;\n $[11] = xstyle;\n $[12] = t1;\n } else {\n t1 = $[12];\n }\n const getToggleStyles = t1;\n let t2;\n let t3;\n if ($[13] !== getToggleStyles) {\n t2 = state_0 => getToggleStyles(state_0).className;\n t3 = state_1 => getToggleStyles(state_1).style;\n $[13] = getToggleStyles;\n $[14] = t2;\n $[15] = t3;\n } else {\n t2 = $[14];\n t3 = $[15];\n }\n let t4;\n if ($[16] !== props || $[17] !== t2 || $[18] !== t3) {\n t4 = <TogglePrimitive {...props} className={t2} style={t3} />;\n $[16] = props;\n $[17] = t2;\n $[18] = t3;\n $[19] = t4;\n } else {\n t4 = $[19];\n }\n return t4;\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\": \"x8605wn\",\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\": \"x1edk1m7\",\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};"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\";\nimport { ToggleGroup as ToggleGroupPrimitive } from \"@base-ui/react/toggle-group\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { createContext, useContext, type ComponentProps, type ReactNode } 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\";\nimport type { ToggleSize, ToggleVariant } from \"./toggle\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x3nfvp2\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n outlineItem: {\n kVAM5u: \"x9r1u3d\",\n kaIpWk: \"x2u8bby\",\n keTefX: \"x2yqusi\",\n kiQ9C1: \"x15hlyvw\",\n kWfW7Y: \"x6kgtcc\",\n k2IYYg: \"x1xzjtzd\",\n k1boJ8: \"xopb9it\",\n $$css: true\n },\n item: {\n kGNEyG: \"x6s0dn4\",\n kVAM5u: \"x9r1u3d\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kOIVth: \"x7gjopr\",\n kjj79g: \"xl56j7k\",\n kHBbk8: \"xc8icb0\",\n kI3sdo: \"x1a2a7pz\",\n kVAEAm: \"x1n2onr6\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x1qsmvhx\",\n kAMwcw: \"xrkjf8i\",\n ks3ayO: \"x17ctvpv xb90rde xn0w0t3\",\n kUfP38: \"x1k48kgn\",\n k5JduY: \"x1s928wv\",\n kv0HGH: \"xarstr8\",\n kloYau: \"x2q1x1w\",\n kwXMNM: \"x1j6awrg\",\n kPNhGg: \"x1byudbu\",\n kRicXK: \"x1ywzrc5\",\n kA8PQs: \"xe2lpi4\",\n kDVEDD: \"xi4xitw\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1m0b1kh\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kYPGJ8: \"x1s07b3s\",\n $$css: true\n },\n softPressed: {\n kWkggS: \"x14itwj6\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"xi3myl\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n outlinePressed: {\n kGVxlE: \"xzq8p8k\",\n $$css: true\n },\n unavailable: {\n kWkggS: \"xx34gk8\",\n $$css: true\n },\n itemDisabled: {\n kMwMTN: \"xdmzwdx\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n }\n};\nconst variantStyles = {\n default: {\n kOIVth: \"x7gjopr\",\n $$css: true\n },\n soft: {\n kOIVth: \"x6bpos\",\n kmVPX3: \"xzsj1fb\",\n kWkggS: \"xmqg8ag\",\n kVAM5u: \"x1kqtvf4\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kaIpWk: \"x1p5vitp\",\n $$css: true\n },\n outline: {\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kOIVth: \"xxhr3t\",\n $$css: true\n }\n};\nconst itemSizeStyles = {\n sm: {\n kZKoxP: \"x1dvwle6\",\n k7Eaqz: \"xbl05st\",\n kg3NbH: \"x1gr5eyh\",\n $$css: true\n },\n md: {\n kZKoxP: \"x1f00wt4\",\n k7Eaqz: \"x1gxa3zx\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n lg: {\n kZKoxP: \"x4rnblq\",\n k7Eaqz: \"x1msgxsh\",\n kg3NbH: \"x9eqyeb\",\n $$css: true\n }\n};\nconst itemVariantStyles = {\n default: {\n kWkggS: \"xjbqb8w\",\n $$css: true\n },\n soft: {\n kWkggS: \"xjbqb8w\",\n $$css: true\n },\n outline: {\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n $$css: true\n }\n};\ntype ToggleGroupContextValue = {\n size: ToggleSize;\n variant: ToggleVariant;\n};\nconst ToggleGroupContext = createContext<ToggleGroupContextValue>({\n size: \"md\",\n variant: \"default\"\n});\nexport type ToggleGroupProps = StyledProps<ComponentProps<typeof ToggleGroupPrimitive>> & {\n children: ReactNode;\n size?: ToggleSize;\n variant?: ToggleVariant;\n xstyle?: ControlLayoutStyles;\n};\nexport function ToggleGroup(t0) {\n const $ = _c(23);\n let children;\n let className;\n let props;\n let style;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n children,\n size: t1,\n variant: t2,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = t2;\n $[7] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n t2 = $[6];\n xstyle = $[7];\n }\n const size = t1 === undefined ? \"md\" : t1;\n const variant = t2 === undefined ? \"default\" : t2;\n let t3;\n if ($[8] !== className || $[9] !== style || $[10] !== variant || $[11] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, variantStyles[variant], variant === \"outline\" && surfaceStyles.control, xstyle), className, style);\n $[8] = className;\n $[9] = style;\n $[10] = variant;\n $[11] = xstyle;\n $[12] = t3;\n } else {\n t3 = $[12];\n }\n let t4;\n if ($[13] !== size || $[14] !== variant) {\n t4 = {\n size,\n variant\n };\n $[13] = size;\n $[14] = variant;\n $[15] = t4;\n } else {\n t4 = $[15];\n }\n let t5;\n if ($[16] !== children || $[17] !== t4) {\n t5 = <ToggleGroupContext value={t4}>{children}</ToggleGroupContext>;\n $[16] = children;\n $[17] = t4;\n $[18] = t5;\n } else {\n t5 = $[18];\n }\n let t6;\n if ($[19] !== props || $[20] !== t3 || $[21] !== t5) {\n t6 = <ToggleGroupPrimitive {...props} {...t3}>{t5}</ToggleGroupPrimitive>;\n $[19] = props;\n $[20] = t3;\n $[21] = t5;\n $[22] = t6;\n } else {\n t6 = $[22];\n }\n return t6;\n}\nexport type ToggleGroupItemProps = StyledProps<ComponentProps<typeof TogglePrimitive>> & {\n size?: ToggleSize;\n variant?: ToggleVariant;\n xstyle?: ControlPlacementStyles;\n};\nexport function ToggleGroupItem(t0) {\n const $ = _c(20);\n let className;\n let props;\n let size;\n let style;\n let variant;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n size,\n variant,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = size;\n $[4] = style;\n $[5] = variant;\n $[6] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n size = $[3];\n style = $[4];\n variant = $[5];\n xstyle = $[6];\n }\n const context = useContext(ToggleGroupContext);\n const finalSize = size ?? context.size;\n const finalVariant = variant ?? context.variant;\n let t1;\n if ($[7] !== className || $[8] !== finalSize || $[9] !== finalVariant || $[10] !== style || $[11] !== xstyle) {\n t1 = function getToggleStyles(state) {\n return mergeStyles(stylex.props(styles.item, itemSizeStyles[finalSize], itemVariantStyles[finalVariant], finalVariant === \"outline\" && !state.pressed && !state.disabled && surfaceStyles.control, state.pressed && styles.itemPressed, state.pressed && finalVariant === \"outline\" && styles.outlinePressed, state.pressed && finalVariant === \"soft\" && styles.softPressed, state.disabled && !state.pressed && styles.unavailable, state.disabled && styles.itemDisabled, finalVariant === \"outline\" && styles.outlineItem, xstyle), className, style);\n };\n $[7] = className;\n $[8] = finalSize;\n $[9] = finalVariant;\n $[10] = style;\n $[11] = xstyle;\n $[12] = t1;\n } else {\n t1 = $[12];\n }\n const getToggleStyles = t1;\n let t2;\n let t3;\n if ($[13] !== getToggleStyles) {\n t2 = state_0 => getToggleStyles(state_0).className;\n t3 = state_1 => getToggleStyles(state_1).style;\n $[13] = getToggleStyles;\n $[14] = t2;\n $[15] = t3;\n } else {\n t2 = $[14];\n t3 = $[15];\n }\n let t4;\n if ($[16] !== props || $[17] !== t2 || $[18] !== t3) {\n t4 = <TogglePrimitive {...props} className={t2} style={t3} />;\n $[16] = props;\n $[17] = t2;\n $[18] = t3;\n $[19] = t4;\n } else {\n t4 = $[19];\n }\n return t4;\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
5
|
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAC1C,SAAS,eAAe,4BAA4B;AAEpD,YAAY,YAAY;AACxB,SAAS,eAAe,kBAAuD;;;ACDxE,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAA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MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,QAAM,kBAAkB;AACxB,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,iBAAiB;AAC7B,SAAK,aAAW,gBAAgB,OAAO,EAAE;AACzC,SAAK,aAAW,gBAAgB,OAAO,EAAE;AACzC,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AACT,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAMC,UAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AACnD,SAAK,oBAAC,mBAAiB,GAAGA,QAAO,WAAW,IAAI,OAAO,IAAI;AAC3D,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
6
|
"names": ["styles", "props", "getToggleStyles"]
|
|
7
7
|
}
|
package/dist/toggle.js
CHANGED
|
@@ -66,7 +66,7 @@ var styles = {
|
|
|
66
66
|
$$css: true
|
|
67
67
|
},
|
|
68
68
|
raised: {
|
|
69
|
-
"--bolerish-material-shadow": "
|
|
69
|
+
"--bolerish-material-shadow": "x1l9gcvt",
|
|
70
70
|
"--bolerish-material-color": "x1y5ilfp",
|
|
71
71
|
"--bolerish-material-opacity": "x1nqk09",
|
|
72
72
|
"--bolerish-material-filter": "x1gkvbmm",
|
|
@@ -79,7 +79,7 @@ var styles = {
|
|
|
79
79
|
$$css: true
|
|
80
80
|
},
|
|
81
81
|
floating: {
|
|
82
|
-
"--bolerish-material-shadow": "
|
|
82
|
+
"--bolerish-material-shadow": "xu02b4h",
|
|
83
83
|
"--bolerish-material-color": "x1y5ilfp",
|
|
84
84
|
"--bolerish-material-opacity": "x14p89z6",
|
|
85
85
|
"--bolerish-material-filter": "xunhrho",
|