@mekari/pixel3-theme 0.0.2 → 0.0.4
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/index.js +232 -73
- package/dist/index.mjs +194 -39
- package/dist/recipes/index.d.mts +2 -0
- package/dist/recipes/index.d.ts +2 -0
- package/dist/recipes/segmented-control.d.mts +5 -0
- package/dist/recipes/segmented-control.d.ts +5 -0
- package/dist/recipes/toast.d.mts +5 -0
- package/dist/recipes/toast.d.ts +5 -0
- package/dist/tokens/colors.d.mts +1 -1
- package/dist/tokens/colors.d.ts +1 -1
- package/dist/tokens/index.d.mts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/global-css.ts +4 -2
- package/src/recipes/avatar.ts +32 -29
- package/src/recipes/button.ts +7 -2
- package/src/recipes/index.ts +5 -1
- package/src/recipes/segmented-control.ts +91 -0
- package/src/recipes/text.ts +2 -1
- package/src/recipes/toast.ts +49 -0
- package/src/tokens/colors.ts +1 -1
- package/src/tokens/typography.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,10 +19,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// index.ts
|
|
17
21
|
var theme_exports = {};
|
|
22
|
+
__export(theme_exports, {
|
|
23
|
+
default: () => theme_default
|
|
24
|
+
});
|
|
18
25
|
module.exports = __toCommonJS(theme_exports);
|
|
19
26
|
|
|
20
27
|
// src/index.ts
|
|
21
|
-
var
|
|
28
|
+
var import_dev44 = require("@pandacss/dev");
|
|
22
29
|
|
|
23
30
|
// src/breakpoints.ts
|
|
24
31
|
var breakpoints = {
|
|
@@ -64,7 +71,9 @@ var globalCss = (0, import_dev.defineGlobalStyles)({
|
|
|
64
71
|
background: "var(--mp-colors-white)",
|
|
65
72
|
color: "var(--mp-colors-dark)",
|
|
66
73
|
fontFamily: "var(--mp-fonts-body)",
|
|
67
|
-
fontSize: "
|
|
74
|
+
fontSize: "var(--mp-font-sizes-md)",
|
|
75
|
+
fontWeight: "var(--mp-font-weights-regular)",
|
|
76
|
+
lineHeight: "var(--mp-line-heights-lg)",
|
|
68
77
|
_dark: {
|
|
69
78
|
colorScheme: "dark"
|
|
70
79
|
}
|
|
@@ -197,6 +206,35 @@ var tagSlotRecipe = (0, import_dev3.defineSlotRecipe)({
|
|
|
197
206
|
|
|
198
207
|
// src/recipes/avatar.ts
|
|
199
208
|
var import_dev4 = require("@pandacss/dev");
|
|
209
|
+
var variantColor = {
|
|
210
|
+
gray: {
|
|
211
|
+
root: { backgroundColor: "gray.50" }
|
|
212
|
+
},
|
|
213
|
+
sky: {
|
|
214
|
+
root: { backgroundColor: "sky.400" }
|
|
215
|
+
},
|
|
216
|
+
teal: {
|
|
217
|
+
root: { backgroundColor: "teal.400" }
|
|
218
|
+
},
|
|
219
|
+
violet: {
|
|
220
|
+
root: { backgroundColor: "violet.400" }
|
|
221
|
+
},
|
|
222
|
+
amber: {
|
|
223
|
+
root: { backgroundColor: "amber.400" }
|
|
224
|
+
},
|
|
225
|
+
rose: {
|
|
226
|
+
root: { backgroundColor: "rose.400" }
|
|
227
|
+
},
|
|
228
|
+
stone: {
|
|
229
|
+
root: { backgroundColor: "stone.400" }
|
|
230
|
+
},
|
|
231
|
+
lime: {
|
|
232
|
+
root: { backgroundColor: "lime.400" }
|
|
233
|
+
},
|
|
234
|
+
pink: {
|
|
235
|
+
root: { backgroundColor: "pink.400" }
|
|
236
|
+
}
|
|
237
|
+
};
|
|
200
238
|
var avatarSlotRecipe = (0, import_dev4.defineSlotRecipe)({
|
|
201
239
|
className: "avatar",
|
|
202
240
|
jsx: ["MpAvatar", "mp-avatar"],
|
|
@@ -244,35 +282,8 @@ var avatarSlotRecipe = (0, import_dev4.defineSlotRecipe)({
|
|
|
244
282
|
image: { borderRadius: "full" }
|
|
245
283
|
}
|
|
246
284
|
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
root: { backgroundColor: "gray.50" }
|
|
250
|
-
},
|
|
251
|
-
sky: {
|
|
252
|
-
root: { backgroundColor: "sky.400" }
|
|
253
|
-
},
|
|
254
|
-
teal: {
|
|
255
|
-
root: { backgroundColor: "teal.400" }
|
|
256
|
-
},
|
|
257
|
-
violet: {
|
|
258
|
-
root: { backgroundColor: "violet.400" }
|
|
259
|
-
},
|
|
260
|
-
amber: {
|
|
261
|
-
root: { backgroundColor: "amber.400" }
|
|
262
|
-
},
|
|
263
|
-
rose: {
|
|
264
|
-
root: { backgroundColor: "rose.400" }
|
|
265
|
-
},
|
|
266
|
-
stone: {
|
|
267
|
-
root: { backgroundColor: "stone.400" }
|
|
268
|
-
},
|
|
269
|
-
lime: {
|
|
270
|
-
root: { backgroundColor: "lime.400" }
|
|
271
|
-
},
|
|
272
|
-
pink: {
|
|
273
|
-
root: { backgroundColor: "pink.400" }
|
|
274
|
-
}
|
|
275
|
-
},
|
|
285
|
+
"variant-color": variantColor,
|
|
286
|
+
variantColor,
|
|
276
287
|
size: {
|
|
277
288
|
sm: {
|
|
278
289
|
root: { width: "6", height: "6", fontSize: "xs" },
|
|
@@ -475,7 +486,7 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
|
|
|
475
486
|
},
|
|
476
487
|
textLink: {
|
|
477
488
|
color: "blue.400",
|
|
478
|
-
background: "
|
|
489
|
+
background: "transparent",
|
|
479
490
|
borderColor: "white",
|
|
480
491
|
_hover: {
|
|
481
492
|
color: "blue.500"
|
|
@@ -485,7 +496,12 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
|
|
|
485
496
|
},
|
|
486
497
|
_disabled: {
|
|
487
498
|
cursor: "not-allowed",
|
|
488
|
-
color: "gray.400"
|
|
499
|
+
color: "gray.400",
|
|
500
|
+
borderColor: "transparent",
|
|
501
|
+
_hover: {
|
|
502
|
+
borderColor: "transparent",
|
|
503
|
+
color: "gray.400"
|
|
504
|
+
}
|
|
489
505
|
},
|
|
490
506
|
_loading: {
|
|
491
507
|
background: "white"
|
|
@@ -920,7 +936,8 @@ var textRecipe = (0, import_dev8.defineRecipe)({
|
|
|
920
936
|
textDecoration: "line-through"
|
|
921
937
|
},
|
|
922
938
|
"&[data-text-link=true]": {
|
|
923
|
-
textDecoration: "underline"
|
|
939
|
+
textDecoration: "underline",
|
|
940
|
+
cursor: "pointer"
|
|
924
941
|
}
|
|
925
942
|
},
|
|
926
943
|
variants: {
|
|
@@ -2640,9 +2657,145 @@ var dropzoneSlotRecipe = (0, import_dev28.defineSlotRecipe)({
|
|
|
2640
2657
|
}
|
|
2641
2658
|
});
|
|
2642
2659
|
|
|
2643
|
-
// src/recipes/
|
|
2660
|
+
// src/recipes/segmented-control.ts
|
|
2644
2661
|
var import_dev29 = require("@pandacss/dev");
|
|
2645
|
-
var
|
|
2662
|
+
var segmentedControlSlotRecipe = (0, import_dev29.defineSlotRecipe)({
|
|
2663
|
+
className: "segmented-control",
|
|
2664
|
+
jsx: ["MpSegmentedControl", "mp-segmented-control"],
|
|
2665
|
+
slots: ["root", "item", "hidden", "control", "label", "icon"],
|
|
2666
|
+
base: {
|
|
2667
|
+
root: {
|
|
2668
|
+
position: "relative",
|
|
2669
|
+
display: "inline-flex",
|
|
2670
|
+
gap: "1",
|
|
2671
|
+
flexDirection: "row",
|
|
2672
|
+
justifyContent: "var(--mp-segmented-control--justify-content)",
|
|
2673
|
+
alignItems: "center",
|
|
2674
|
+
width: "var(--mp-segmented-control--width)",
|
|
2675
|
+
height: "9.5",
|
|
2676
|
+
borderWidth: "1px",
|
|
2677
|
+
borderColor: "gray.100",
|
|
2678
|
+
borderRadius: "md",
|
|
2679
|
+
outline: "0px solid transparent",
|
|
2680
|
+
padding: "1"
|
|
2681
|
+
},
|
|
2682
|
+
item: {
|
|
2683
|
+
flex: "var(--mp-segmented-control--flex)",
|
|
2684
|
+
cursor: "var(--mp-segmented-control--cursor)"
|
|
2685
|
+
},
|
|
2686
|
+
hidden: {
|
|
2687
|
+
border: "0px",
|
|
2688
|
+
clip: "rect(0px, 0px, 0px, 0px)",
|
|
2689
|
+
margin: "-1px",
|
|
2690
|
+
padding: "0px",
|
|
2691
|
+
overflow: "hidden",
|
|
2692
|
+
whiteSpace: "nowrap",
|
|
2693
|
+
height: "1px",
|
|
2694
|
+
width: "1px",
|
|
2695
|
+
position: "absolute"
|
|
2696
|
+
},
|
|
2697
|
+
control: {
|
|
2698
|
+
display: "flex",
|
|
2699
|
+
alignItems: "center",
|
|
2700
|
+
justifyContent: "var(--mp-segmented-control--justify-content)",
|
|
2701
|
+
height: "7",
|
|
2702
|
+
paddingY: "1",
|
|
2703
|
+
userSelect: "none",
|
|
2704
|
+
borderRadius: "sm",
|
|
2705
|
+
transition: "all 250ms",
|
|
2706
|
+
color: "gray.600",
|
|
2707
|
+
backgroundColor: "white",
|
|
2708
|
+
gap: "var(--mp-segmented-control--gap)",
|
|
2709
|
+
paddingX: "var(--mp-segmented-control--padding-x)",
|
|
2710
|
+
"input[type=radio]:hover:not(:disabled):not(:checked) + &": {
|
|
2711
|
+
color: "blue.700"
|
|
2712
|
+
},
|
|
2713
|
+
"input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &": {
|
|
2714
|
+
color: "blue.400",
|
|
2715
|
+
backgroundColor: "blue.50"
|
|
2716
|
+
},
|
|
2717
|
+
"input[type=radio]:disabled + &": {
|
|
2718
|
+
color: "gray.400"
|
|
2719
|
+
},
|
|
2720
|
+
"input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &": {
|
|
2721
|
+
color: "blue.700"
|
|
2722
|
+
},
|
|
2723
|
+
"input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &": {
|
|
2724
|
+
color: "blue.700",
|
|
2725
|
+
boxShadow: "outer"
|
|
2726
|
+
},
|
|
2727
|
+
"input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &": {
|
|
2728
|
+
color: "gray.400",
|
|
2729
|
+
backgroundColor: "gray.50"
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
label: {
|
|
2733
|
+
color: "currentColor",
|
|
2734
|
+
fontSize: "md",
|
|
2735
|
+
fontFamily: "body",
|
|
2736
|
+
lineHeight: "md",
|
|
2737
|
+
opacity: "1"
|
|
2738
|
+
},
|
|
2739
|
+
icon: {
|
|
2740
|
+
color: "currentColor"
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
variants: {},
|
|
2744
|
+
compoundVariants: [],
|
|
2745
|
+
defaultVariants: {}
|
|
2746
|
+
});
|
|
2747
|
+
|
|
2748
|
+
// src/recipes/toast.ts
|
|
2749
|
+
var import_dev30 = require("@pandacss/dev");
|
|
2750
|
+
var toastSlotRecipe = (0, import_dev30.defineSlotRecipe)({
|
|
2751
|
+
className: "toast",
|
|
2752
|
+
jsx: ["MpToast", "mp-toast"],
|
|
2753
|
+
slots: ["root", "icon", "label"],
|
|
2754
|
+
base: {
|
|
2755
|
+
root: {
|
|
2756
|
+
display: "flex",
|
|
2757
|
+
alignItems: "center",
|
|
2758
|
+
gap: "2",
|
|
2759
|
+
width: "356px",
|
|
2760
|
+
border: "1.5px solid",
|
|
2761
|
+
borderRadius: "md",
|
|
2762
|
+
backgroundColor: "white",
|
|
2763
|
+
padding: "3",
|
|
2764
|
+
boxShadow: "lg",
|
|
2765
|
+
zIndex: "9999"
|
|
2766
|
+
},
|
|
2767
|
+
label: {
|
|
2768
|
+
fontSize: "md"
|
|
2769
|
+
}
|
|
2770
|
+
},
|
|
2771
|
+
variants: {
|
|
2772
|
+
variant: {
|
|
2773
|
+
success: {},
|
|
2774
|
+
error: {}
|
|
2775
|
+
}
|
|
2776
|
+
},
|
|
2777
|
+
compoundVariants: [
|
|
2778
|
+
{
|
|
2779
|
+
variant: "success",
|
|
2780
|
+
css: {
|
|
2781
|
+
root: { borderColor: "green.700" }
|
|
2782
|
+
}
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
variant: "error",
|
|
2786
|
+
css: {
|
|
2787
|
+
root: { borderColor: "red.700" }
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
],
|
|
2791
|
+
defaultVariants: {
|
|
2792
|
+
variant: "success"
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
|
|
2796
|
+
// src/recipes/banner.ts
|
|
2797
|
+
var import_dev31 = require("@pandacss/dev");
|
|
2798
|
+
var bannerSlotRecipe = (0, import_dev31.defineSlotRecipe)({
|
|
2646
2799
|
className: "banner",
|
|
2647
2800
|
jsx: ["MpBanner", "mp-banner"],
|
|
2648
2801
|
slots: ["root", "body"],
|
|
@@ -2683,7 +2836,7 @@ var bannerSlotRecipe = (0, import_dev29.defineSlotRecipe)({
|
|
|
2683
2836
|
variant: "info"
|
|
2684
2837
|
}
|
|
2685
2838
|
});
|
|
2686
|
-
var bannerTitleRecipe = (0,
|
|
2839
|
+
var bannerTitleRecipe = (0, import_dev31.defineRecipe)({
|
|
2687
2840
|
className: "banner-title",
|
|
2688
2841
|
jsx: ["MpBannerTitle", "mp-banner-title"],
|
|
2689
2842
|
base: {
|
|
@@ -2700,7 +2853,7 @@ var bannerTitleRecipe = (0, import_dev29.defineRecipe)({
|
|
|
2700
2853
|
compoundVariants: [],
|
|
2701
2854
|
defaultVariants: {}
|
|
2702
2855
|
});
|
|
2703
|
-
var bannerDescriptionRecipe = (0,
|
|
2856
|
+
var bannerDescriptionRecipe = (0, import_dev31.defineRecipe)({
|
|
2704
2857
|
className: "banner-description",
|
|
2705
2858
|
jsx: ["MpBannerDescription", "mp-banner-description"],
|
|
2706
2859
|
base: {
|
|
@@ -2715,7 +2868,7 @@ var bannerDescriptionRecipe = (0, import_dev29.defineRecipe)({
|
|
|
2715
2868
|
compoundVariants: [],
|
|
2716
2869
|
defaultVariants: {}
|
|
2717
2870
|
});
|
|
2718
|
-
var bannerIconSlotRecipe = (0,
|
|
2871
|
+
var bannerIconSlotRecipe = (0, import_dev31.defineSlotRecipe)({
|
|
2719
2872
|
className: "banner-icon",
|
|
2720
2873
|
jsx: ["MpBannerIcon", "mp-banner-icon"],
|
|
2721
2874
|
slots: ["root", "custom"],
|
|
@@ -2738,7 +2891,7 @@ var bannerIconSlotRecipe = (0, import_dev29.defineSlotRecipe)({
|
|
|
2738
2891
|
compoundVariants: [],
|
|
2739
2892
|
defaultVariants: {}
|
|
2740
2893
|
});
|
|
2741
|
-
var bannerLinkRecipe = (0,
|
|
2894
|
+
var bannerLinkRecipe = (0, import_dev31.defineRecipe)({
|
|
2742
2895
|
className: "banner-link",
|
|
2743
2896
|
jsx: ["MpBannerLink", "mp-banner-link"],
|
|
2744
2897
|
base: {
|
|
@@ -2751,7 +2904,7 @@ var bannerLinkRecipe = (0, import_dev29.defineRecipe)({
|
|
|
2751
2904
|
compoundVariants: [],
|
|
2752
2905
|
defaultVariants: {}
|
|
2753
2906
|
});
|
|
2754
|
-
var bannerCloseButtonRecipe = (0,
|
|
2907
|
+
var bannerCloseButtonRecipe = (0, import_dev31.defineRecipe)({
|
|
2755
2908
|
className: "banner-close-button",
|
|
2756
2909
|
jsx: ["MpBannerCloseButton", "mp-banner-close-button"],
|
|
2757
2910
|
base: {
|
|
@@ -2815,12 +2968,14 @@ var slotRecipes = {
|
|
|
2815
2968
|
uploadListSlotRecipe,
|
|
2816
2969
|
dropzoneSlotRecipe,
|
|
2817
2970
|
bannerSlotRecipe,
|
|
2818
|
-
bannerIconSlotRecipe
|
|
2971
|
+
bannerIconSlotRecipe,
|
|
2972
|
+
segmentedControlSlotRecipe,
|
|
2973
|
+
toastSlotRecipe
|
|
2819
2974
|
};
|
|
2820
2975
|
|
|
2821
2976
|
// src/text-styles.ts
|
|
2822
|
-
var
|
|
2823
|
-
var textStyles = (0,
|
|
2977
|
+
var import_dev32 = require("@pandacss/dev");
|
|
2978
|
+
var textStyles = (0, import_dev32.defineTextStyles)({
|
|
2824
2979
|
overline: { value: { fontSize: "xs", lineHeight: "xs" } },
|
|
2825
2980
|
body: {
|
|
2826
2981
|
sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
|
|
@@ -2854,11 +3009,11 @@ var textStyles = (0, import_dev30.defineTextStyles)({
|
|
|
2854
3009
|
});
|
|
2855
3010
|
|
|
2856
3011
|
// src/tokens/index.ts
|
|
2857
|
-
var
|
|
3012
|
+
var import_dev43 = require("@pandacss/dev");
|
|
2858
3013
|
|
|
2859
3014
|
// src/tokens/borders.ts
|
|
2860
|
-
var
|
|
2861
|
-
var borders =
|
|
3015
|
+
var import_dev33 = require("@pandacss/dev");
|
|
3016
|
+
var borders = import_dev33.defineTokens.borders({
|
|
2862
3017
|
none: { value: "none" },
|
|
2863
3018
|
sm: { value: "1px" },
|
|
2864
3019
|
md: { value: "1.5px" },
|
|
@@ -2866,8 +3021,8 @@ var borders = import_dev31.defineTokens.borders({
|
|
|
2866
3021
|
});
|
|
2867
3022
|
|
|
2868
3023
|
// src/tokens/colors.ts
|
|
2869
|
-
var
|
|
2870
|
-
var colors =
|
|
3024
|
+
var import_dev34 = require("@pandacss/dev");
|
|
3025
|
+
var colors = import_dev34.defineTokens.colors({
|
|
2871
3026
|
currentcolor: {
|
|
2872
3027
|
value: "currentcolor",
|
|
2873
3028
|
description: "Need to add this for Icon usage"
|
|
@@ -2906,7 +3061,7 @@ var colors = import_dev32.defineTokens.colors({
|
|
|
2906
3061
|
800: { value: "rgba(255, 255, 255, 0.80)" },
|
|
2907
3062
|
900: { value: "rgba(255, 255, 255, 0.92)" }
|
|
2908
3063
|
},
|
|
2909
|
-
|
|
3064
|
+
blackAlpha: {
|
|
2910
3065
|
50: { value: "rgba(0, 0, 0, 0.04)" },
|
|
2911
3066
|
100: { value: "rgba(0, 0, 0, 0.06)" },
|
|
2912
3067
|
200: { value: "rgba(0, 0, 0, 0.08)" },
|
|
@@ -3020,16 +3175,16 @@ var colors = import_dev32.defineTokens.colors({
|
|
|
3020
3175
|
});
|
|
3021
3176
|
|
|
3022
3177
|
// src/tokens/durations.ts
|
|
3023
|
-
var
|
|
3024
|
-
var durations =
|
|
3178
|
+
var import_dev35 = require("@pandacss/dev");
|
|
3179
|
+
var durations = import_dev35.defineTokens.durations({
|
|
3025
3180
|
slow: { value: "100ms" },
|
|
3026
3181
|
normal: { value: "250ms" },
|
|
3027
3182
|
fast: { value: "300ms" }
|
|
3028
3183
|
});
|
|
3029
3184
|
|
|
3030
3185
|
// src/tokens/opacity.ts
|
|
3031
|
-
var
|
|
3032
|
-
var opacity =
|
|
3186
|
+
var import_dev36 = require("@pandacss/dev");
|
|
3187
|
+
var opacity = import_dev36.defineTokens.opacity({
|
|
3033
3188
|
0: { value: 0 },
|
|
3034
3189
|
40: { value: 0.4 },
|
|
3035
3190
|
60: { value: 0.6 },
|
|
@@ -3037,8 +3192,8 @@ var opacity = import_dev34.defineTokens.opacity({
|
|
|
3037
3192
|
});
|
|
3038
3193
|
|
|
3039
3194
|
// src/tokens/radii.ts
|
|
3040
|
-
var
|
|
3041
|
-
var radii =
|
|
3195
|
+
var import_dev37 = require("@pandacss/dev");
|
|
3196
|
+
var radii = import_dev37.defineTokens.radii({
|
|
3042
3197
|
none: { value: "0" },
|
|
3043
3198
|
xs: { value: "0.125rem", description: "2px" },
|
|
3044
3199
|
sm: { value: "0.25rem", description: "4px" },
|
|
@@ -3049,8 +3204,8 @@ var radii = import_dev35.defineTokens.radii({
|
|
|
3049
3204
|
});
|
|
3050
3205
|
|
|
3051
3206
|
// src/tokens/shadows.ts
|
|
3052
|
-
var
|
|
3053
|
-
var shadows =
|
|
3207
|
+
var import_dev38 = require("@pandacss/dev");
|
|
3208
|
+
var shadows = import_dev38.defineTokens.shadows({
|
|
3054
3209
|
xs: {
|
|
3055
3210
|
value: ["0px 0px 2px 0px rgba(0, 0, 0, 0.12)", "0px 2px 4px 0px rgba(0, 0, 0, 0.14)"]
|
|
3056
3211
|
},
|
|
@@ -3090,8 +3245,8 @@ var shadows = import_dev36.defineTokens.shadows({
|
|
|
3090
3245
|
});
|
|
3091
3246
|
|
|
3092
3247
|
// src/tokens/sizes.ts
|
|
3093
|
-
var
|
|
3094
|
-
var sizes =
|
|
3248
|
+
var import_dev39 = require("@pandacss/dev");
|
|
3249
|
+
var sizes = import_dev39.defineTokens.sizes({
|
|
3095
3250
|
0: { value: "0", description: "0px" },
|
|
3096
3251
|
0.25: { value: "0.0625rem", description: "1px" },
|
|
3097
3252
|
0.5: { value: "0.125rem", description: "2px" },
|
|
@@ -3120,8 +3275,8 @@ var sizes = import_dev37.defineTokens.sizes({
|
|
|
3120
3275
|
});
|
|
3121
3276
|
|
|
3122
3277
|
// src/tokens/spacing.ts
|
|
3123
|
-
var
|
|
3124
|
-
var spacing =
|
|
3278
|
+
var import_dev40 = require("@pandacss/dev");
|
|
3279
|
+
var spacing = import_dev40.defineTokens.spacing({
|
|
3125
3280
|
0: { value: "0", description: "0px" },
|
|
3126
3281
|
0.5: { value: "0.125rem", description: "2px" },
|
|
3127
3282
|
1: { value: "0.25rem", description: "4px" },
|
|
@@ -3142,8 +3297,8 @@ var spacing = import_dev38.defineTokens.spacing({
|
|
|
3142
3297
|
});
|
|
3143
3298
|
|
|
3144
3299
|
// src/tokens/z-index.ts
|
|
3145
|
-
var
|
|
3146
|
-
var zIndex =
|
|
3300
|
+
var import_dev41 = require("@pandacss/dev");
|
|
3301
|
+
var zIndex = import_dev41.defineTokens.zIndex({
|
|
3147
3302
|
hide: { value: -1 },
|
|
3148
3303
|
base: { value: 0 },
|
|
3149
3304
|
docked: { value: 10 },
|
|
@@ -3155,16 +3310,16 @@ var zIndex = import_dev39.defineTokens.zIndex({
|
|
|
3155
3310
|
});
|
|
3156
3311
|
|
|
3157
3312
|
// src/tokens/typography.ts
|
|
3158
|
-
var
|
|
3159
|
-
var fonts =
|
|
3313
|
+
var import_dev42 = require("@pandacss/dev");
|
|
3314
|
+
var fonts = import_dev42.defineTokens.fonts({
|
|
3160
3315
|
body: {
|
|
3161
|
-
value: '"
|
|
3316
|
+
value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
3162
3317
|
},
|
|
3163
3318
|
mono: {
|
|
3164
3319
|
value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
|
|
3165
3320
|
}
|
|
3166
3321
|
});
|
|
3167
|
-
var fontSizes =
|
|
3322
|
+
var fontSizes = import_dev42.defineTokens.fontSizes({
|
|
3168
3323
|
xs: { value: "0.625rem", description: "10px" },
|
|
3169
3324
|
sm: { value: "0.75rem", description: "12px" },
|
|
3170
3325
|
md: { value: "0.875rem", description: "14px" },
|
|
@@ -3172,12 +3327,12 @@ var fontSizes = import_dev40.defineTokens.fontSizes({
|
|
|
3172
3327
|
xl: { value: "1.25rem", description: "20px" },
|
|
3173
3328
|
"2xl": { value: "1.5rem", description: "24px" }
|
|
3174
3329
|
});
|
|
3175
|
-
var fontWeights =
|
|
3330
|
+
var fontWeights = import_dev42.defineTokens.fontWeights({
|
|
3176
3331
|
regular: { value: "400" },
|
|
3177
3332
|
semiBold: { value: "600" },
|
|
3178
3333
|
bold: { value: "800" }
|
|
3179
3334
|
});
|
|
3180
|
-
var lineHeights =
|
|
3335
|
+
var lineHeights = import_dev42.defineTokens.lineHeights({
|
|
3181
3336
|
xs: { value: 1.2, description: "12px/10px" },
|
|
3182
3337
|
sm: { value: 1.34, description: "16px/12px or 32px/24px" },
|
|
3183
3338
|
md: { value: 1.4, description: "28px/20px" },
|
|
@@ -3186,7 +3341,7 @@ var lineHeights = import_dev40.defineTokens.lineHeights({
|
|
|
3186
3341
|
"2xl": { value: 1.67, description: "20px/12px" },
|
|
3187
3342
|
"3xl": { value: 1.71, description: "24px/14px" }
|
|
3188
3343
|
});
|
|
3189
|
-
var letterSpacings =
|
|
3344
|
+
var letterSpacings = import_dev42.defineTokens.letterSpacings({
|
|
3190
3345
|
tighter: { value: "-0.05em" },
|
|
3191
3346
|
tight: { value: "-0.025em" },
|
|
3192
3347
|
normal: { value: "0" },
|
|
@@ -3196,7 +3351,7 @@ var letterSpacings = import_dev40.defineTokens.letterSpacings({
|
|
|
3196
3351
|
});
|
|
3197
3352
|
|
|
3198
3353
|
// src/tokens/index.ts
|
|
3199
|
-
var tokens = (0,
|
|
3354
|
+
var tokens = (0, import_dev43.defineTokens)({
|
|
3200
3355
|
borders,
|
|
3201
3356
|
colors,
|
|
3202
3357
|
durations,
|
|
@@ -3214,7 +3369,7 @@ var tokens = (0, import_dev41.defineTokens)({
|
|
|
3214
3369
|
});
|
|
3215
3370
|
|
|
3216
3371
|
// src/index.ts
|
|
3217
|
-
var preset = (0,
|
|
3372
|
+
var preset = (0, import_dev44.definePreset)({
|
|
3218
3373
|
theme: {
|
|
3219
3374
|
extend: {
|
|
3220
3375
|
breakpoints,
|
|
@@ -3228,3 +3383,7 @@ var preset = (0, import_dev42.definePreset)({
|
|
|
3228
3383
|
conditions,
|
|
3229
3384
|
globalCss
|
|
3230
3385
|
});
|
|
3386
|
+
var src_default = preset;
|
|
3387
|
+
|
|
3388
|
+
// index.ts
|
|
3389
|
+
var theme_default = src_default;
|
package/dist/index.mjs
CHANGED
|
@@ -45,7 +45,9 @@ var globalCss = defineGlobalStyles({
|
|
|
45
45
|
background: "var(--mp-colors-white)",
|
|
46
46
|
color: "var(--mp-colors-dark)",
|
|
47
47
|
fontFamily: "var(--mp-fonts-body)",
|
|
48
|
-
fontSize: "
|
|
48
|
+
fontSize: "var(--mp-font-sizes-md)",
|
|
49
|
+
fontWeight: "var(--mp-font-weights-regular)",
|
|
50
|
+
lineHeight: "var(--mp-line-heights-lg)",
|
|
49
51
|
_dark: {
|
|
50
52
|
colorScheme: "dark"
|
|
51
53
|
}
|
|
@@ -178,6 +180,35 @@ var tagSlotRecipe = defineSlotRecipe({
|
|
|
178
180
|
|
|
179
181
|
// src/recipes/avatar.ts
|
|
180
182
|
import { defineSlotRecipe as defineSlotRecipe2 } from "@pandacss/dev";
|
|
183
|
+
var variantColor = {
|
|
184
|
+
gray: {
|
|
185
|
+
root: { backgroundColor: "gray.50" }
|
|
186
|
+
},
|
|
187
|
+
sky: {
|
|
188
|
+
root: { backgroundColor: "sky.400" }
|
|
189
|
+
},
|
|
190
|
+
teal: {
|
|
191
|
+
root: { backgroundColor: "teal.400" }
|
|
192
|
+
},
|
|
193
|
+
violet: {
|
|
194
|
+
root: { backgroundColor: "violet.400" }
|
|
195
|
+
},
|
|
196
|
+
amber: {
|
|
197
|
+
root: { backgroundColor: "amber.400" }
|
|
198
|
+
},
|
|
199
|
+
rose: {
|
|
200
|
+
root: { backgroundColor: "rose.400" }
|
|
201
|
+
},
|
|
202
|
+
stone: {
|
|
203
|
+
root: { backgroundColor: "stone.400" }
|
|
204
|
+
},
|
|
205
|
+
lime: {
|
|
206
|
+
root: { backgroundColor: "lime.400" }
|
|
207
|
+
},
|
|
208
|
+
pink: {
|
|
209
|
+
root: { backgroundColor: "pink.400" }
|
|
210
|
+
}
|
|
211
|
+
};
|
|
181
212
|
var avatarSlotRecipe = defineSlotRecipe2({
|
|
182
213
|
className: "avatar",
|
|
183
214
|
jsx: ["MpAvatar", "mp-avatar"],
|
|
@@ -225,35 +256,8 @@ var avatarSlotRecipe = defineSlotRecipe2({
|
|
|
225
256
|
image: { borderRadius: "full" }
|
|
226
257
|
}
|
|
227
258
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
root: { backgroundColor: "gray.50" }
|
|
231
|
-
},
|
|
232
|
-
sky: {
|
|
233
|
-
root: { backgroundColor: "sky.400" }
|
|
234
|
-
},
|
|
235
|
-
teal: {
|
|
236
|
-
root: { backgroundColor: "teal.400" }
|
|
237
|
-
},
|
|
238
|
-
violet: {
|
|
239
|
-
root: { backgroundColor: "violet.400" }
|
|
240
|
-
},
|
|
241
|
-
amber: {
|
|
242
|
-
root: { backgroundColor: "amber.400" }
|
|
243
|
-
},
|
|
244
|
-
rose: {
|
|
245
|
-
root: { backgroundColor: "rose.400" }
|
|
246
|
-
},
|
|
247
|
-
stone: {
|
|
248
|
-
root: { backgroundColor: "stone.400" }
|
|
249
|
-
},
|
|
250
|
-
lime: {
|
|
251
|
-
root: { backgroundColor: "lime.400" }
|
|
252
|
-
},
|
|
253
|
-
pink: {
|
|
254
|
-
root: { backgroundColor: "pink.400" }
|
|
255
|
-
}
|
|
256
|
-
},
|
|
259
|
+
"variant-color": variantColor,
|
|
260
|
+
variantColor,
|
|
257
261
|
size: {
|
|
258
262
|
sm: {
|
|
259
263
|
root: { width: "6", height: "6", fontSize: "xs" },
|
|
@@ -456,7 +460,7 @@ var buttonRecipe = defineRecipe({
|
|
|
456
460
|
},
|
|
457
461
|
textLink: {
|
|
458
462
|
color: "blue.400",
|
|
459
|
-
background: "
|
|
463
|
+
background: "transparent",
|
|
460
464
|
borderColor: "white",
|
|
461
465
|
_hover: {
|
|
462
466
|
color: "blue.500"
|
|
@@ -466,7 +470,12 @@ var buttonRecipe = defineRecipe({
|
|
|
466
470
|
},
|
|
467
471
|
_disabled: {
|
|
468
472
|
cursor: "not-allowed",
|
|
469
|
-
color: "gray.400"
|
|
473
|
+
color: "gray.400",
|
|
474
|
+
borderColor: "transparent",
|
|
475
|
+
_hover: {
|
|
476
|
+
borderColor: "transparent",
|
|
477
|
+
color: "gray.400"
|
|
478
|
+
}
|
|
470
479
|
},
|
|
471
480
|
_loading: {
|
|
472
481
|
background: "white"
|
|
@@ -901,7 +910,8 @@ var textRecipe = defineRecipe2({
|
|
|
901
910
|
textDecoration: "line-through"
|
|
902
911
|
},
|
|
903
912
|
"&[data-text-link=true]": {
|
|
904
|
-
textDecoration: "underline"
|
|
913
|
+
textDecoration: "underline",
|
|
914
|
+
cursor: "pointer"
|
|
905
915
|
}
|
|
906
916
|
},
|
|
907
917
|
variants: {
|
|
@@ -2621,9 +2631,145 @@ var dropzoneSlotRecipe = defineSlotRecipe15({
|
|
|
2621
2631
|
}
|
|
2622
2632
|
});
|
|
2623
2633
|
|
|
2634
|
+
// src/recipes/segmented-control.ts
|
|
2635
|
+
import { defineSlotRecipe as defineSlotRecipe16 } from "@pandacss/dev";
|
|
2636
|
+
var segmentedControlSlotRecipe = defineSlotRecipe16({
|
|
2637
|
+
className: "segmented-control",
|
|
2638
|
+
jsx: ["MpSegmentedControl", "mp-segmented-control"],
|
|
2639
|
+
slots: ["root", "item", "hidden", "control", "label", "icon"],
|
|
2640
|
+
base: {
|
|
2641
|
+
root: {
|
|
2642
|
+
position: "relative",
|
|
2643
|
+
display: "inline-flex",
|
|
2644
|
+
gap: "1",
|
|
2645
|
+
flexDirection: "row",
|
|
2646
|
+
justifyContent: "var(--mp-segmented-control--justify-content)",
|
|
2647
|
+
alignItems: "center",
|
|
2648
|
+
width: "var(--mp-segmented-control--width)",
|
|
2649
|
+
height: "9.5",
|
|
2650
|
+
borderWidth: "1px",
|
|
2651
|
+
borderColor: "gray.100",
|
|
2652
|
+
borderRadius: "md",
|
|
2653
|
+
outline: "0px solid transparent",
|
|
2654
|
+
padding: "1"
|
|
2655
|
+
},
|
|
2656
|
+
item: {
|
|
2657
|
+
flex: "var(--mp-segmented-control--flex)",
|
|
2658
|
+
cursor: "var(--mp-segmented-control--cursor)"
|
|
2659
|
+
},
|
|
2660
|
+
hidden: {
|
|
2661
|
+
border: "0px",
|
|
2662
|
+
clip: "rect(0px, 0px, 0px, 0px)",
|
|
2663
|
+
margin: "-1px",
|
|
2664
|
+
padding: "0px",
|
|
2665
|
+
overflow: "hidden",
|
|
2666
|
+
whiteSpace: "nowrap",
|
|
2667
|
+
height: "1px",
|
|
2668
|
+
width: "1px",
|
|
2669
|
+
position: "absolute"
|
|
2670
|
+
},
|
|
2671
|
+
control: {
|
|
2672
|
+
display: "flex",
|
|
2673
|
+
alignItems: "center",
|
|
2674
|
+
justifyContent: "var(--mp-segmented-control--justify-content)",
|
|
2675
|
+
height: "7",
|
|
2676
|
+
paddingY: "1",
|
|
2677
|
+
userSelect: "none",
|
|
2678
|
+
borderRadius: "sm",
|
|
2679
|
+
transition: "all 250ms",
|
|
2680
|
+
color: "gray.600",
|
|
2681
|
+
backgroundColor: "white",
|
|
2682
|
+
gap: "var(--mp-segmented-control--gap)",
|
|
2683
|
+
paddingX: "var(--mp-segmented-control--padding-x)",
|
|
2684
|
+
"input[type=radio]:hover:not(:disabled):not(:checked) + &": {
|
|
2685
|
+
color: "blue.700"
|
|
2686
|
+
},
|
|
2687
|
+
"input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &": {
|
|
2688
|
+
color: "blue.400",
|
|
2689
|
+
backgroundColor: "blue.50"
|
|
2690
|
+
},
|
|
2691
|
+
"input[type=radio]:disabled + &": {
|
|
2692
|
+
color: "gray.400"
|
|
2693
|
+
},
|
|
2694
|
+
"input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &": {
|
|
2695
|
+
color: "blue.700"
|
|
2696
|
+
},
|
|
2697
|
+
"input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &": {
|
|
2698
|
+
color: "blue.700",
|
|
2699
|
+
boxShadow: "outer"
|
|
2700
|
+
},
|
|
2701
|
+
"input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &": {
|
|
2702
|
+
color: "gray.400",
|
|
2703
|
+
backgroundColor: "gray.50"
|
|
2704
|
+
}
|
|
2705
|
+
},
|
|
2706
|
+
label: {
|
|
2707
|
+
color: "currentColor",
|
|
2708
|
+
fontSize: "md",
|
|
2709
|
+
fontFamily: "body",
|
|
2710
|
+
lineHeight: "md",
|
|
2711
|
+
opacity: "1"
|
|
2712
|
+
},
|
|
2713
|
+
icon: {
|
|
2714
|
+
color: "currentColor"
|
|
2715
|
+
}
|
|
2716
|
+
},
|
|
2717
|
+
variants: {},
|
|
2718
|
+
compoundVariants: [],
|
|
2719
|
+
defaultVariants: {}
|
|
2720
|
+
});
|
|
2721
|
+
|
|
2722
|
+
// src/recipes/toast.ts
|
|
2723
|
+
import { defineSlotRecipe as defineSlotRecipe17 } from "@pandacss/dev";
|
|
2724
|
+
var toastSlotRecipe = defineSlotRecipe17({
|
|
2725
|
+
className: "toast",
|
|
2726
|
+
jsx: ["MpToast", "mp-toast"],
|
|
2727
|
+
slots: ["root", "icon", "label"],
|
|
2728
|
+
base: {
|
|
2729
|
+
root: {
|
|
2730
|
+
display: "flex",
|
|
2731
|
+
alignItems: "center",
|
|
2732
|
+
gap: "2",
|
|
2733
|
+
width: "356px",
|
|
2734
|
+
border: "1.5px solid",
|
|
2735
|
+
borderRadius: "md",
|
|
2736
|
+
backgroundColor: "white",
|
|
2737
|
+
padding: "3",
|
|
2738
|
+
boxShadow: "lg",
|
|
2739
|
+
zIndex: "9999"
|
|
2740
|
+
},
|
|
2741
|
+
label: {
|
|
2742
|
+
fontSize: "md"
|
|
2743
|
+
}
|
|
2744
|
+
},
|
|
2745
|
+
variants: {
|
|
2746
|
+
variant: {
|
|
2747
|
+
success: {},
|
|
2748
|
+
error: {}
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
compoundVariants: [
|
|
2752
|
+
{
|
|
2753
|
+
variant: "success",
|
|
2754
|
+
css: {
|
|
2755
|
+
root: { borderColor: "green.700" }
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
variant: "error",
|
|
2760
|
+
css: {
|
|
2761
|
+
root: { borderColor: "red.700" }
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
],
|
|
2765
|
+
defaultVariants: {
|
|
2766
|
+
variant: "success"
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
|
|
2624
2770
|
// src/recipes/banner.ts
|
|
2625
|
-
import { defineRecipe as defineRecipe12, defineSlotRecipe as
|
|
2626
|
-
var bannerSlotRecipe =
|
|
2771
|
+
import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe18 } from "@pandacss/dev";
|
|
2772
|
+
var bannerSlotRecipe = defineSlotRecipe18({
|
|
2627
2773
|
className: "banner",
|
|
2628
2774
|
jsx: ["MpBanner", "mp-banner"],
|
|
2629
2775
|
slots: ["root", "body"],
|
|
@@ -2696,7 +2842,7 @@ var bannerDescriptionRecipe = defineRecipe12({
|
|
|
2696
2842
|
compoundVariants: [],
|
|
2697
2843
|
defaultVariants: {}
|
|
2698
2844
|
});
|
|
2699
|
-
var bannerIconSlotRecipe =
|
|
2845
|
+
var bannerIconSlotRecipe = defineSlotRecipe18({
|
|
2700
2846
|
className: "banner-icon",
|
|
2701
2847
|
jsx: ["MpBannerIcon", "mp-banner-icon"],
|
|
2702
2848
|
slots: ["root", "custom"],
|
|
@@ -2796,7 +2942,9 @@ var slotRecipes = {
|
|
|
2796
2942
|
uploadListSlotRecipe,
|
|
2797
2943
|
dropzoneSlotRecipe,
|
|
2798
2944
|
bannerSlotRecipe,
|
|
2799
|
-
bannerIconSlotRecipe
|
|
2945
|
+
bannerIconSlotRecipe,
|
|
2946
|
+
segmentedControlSlotRecipe,
|
|
2947
|
+
toastSlotRecipe
|
|
2800
2948
|
};
|
|
2801
2949
|
|
|
2802
2950
|
// src/text-styles.ts
|
|
@@ -2887,7 +3035,7 @@ var colors = defineTokens2.colors({
|
|
|
2887
3035
|
800: { value: "rgba(255, 255, 255, 0.80)" },
|
|
2888
3036
|
900: { value: "rgba(255, 255, 255, 0.92)" }
|
|
2889
3037
|
},
|
|
2890
|
-
|
|
3038
|
+
blackAlpha: {
|
|
2891
3039
|
50: { value: "rgba(0, 0, 0, 0.04)" },
|
|
2892
3040
|
100: { value: "rgba(0, 0, 0, 0.06)" },
|
|
2893
3041
|
200: { value: "rgba(0, 0, 0, 0.08)" },
|
|
@@ -3139,7 +3287,7 @@ var zIndex = defineTokens9.zIndex({
|
|
|
3139
3287
|
import { defineTokens as defineTokens10 } from "@pandacss/dev";
|
|
3140
3288
|
var fonts = defineTokens10.fonts({
|
|
3141
3289
|
body: {
|
|
3142
|
-
value: '"
|
|
3290
|
+
value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
3143
3291
|
},
|
|
3144
3292
|
mono: {
|
|
3145
3293
|
value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
|
|
@@ -3209,3 +3357,10 @@ var preset = definePreset({
|
|
|
3209
3357
|
conditions,
|
|
3210
3358
|
globalCss
|
|
3211
3359
|
});
|
|
3360
|
+
var src_default = preset;
|
|
3361
|
+
|
|
3362
|
+
// index.ts
|
|
3363
|
+
var theme_default = src_default;
|
|
3364
|
+
export {
|
|
3365
|
+
theme_default as default
|
|
3366
|
+
};
|
package/dist/recipes/index.d.mts
CHANGED
|
@@ -45,6 +45,8 @@ declare const slotRecipes: {
|
|
|
45
45
|
dropzoneSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
46
46
|
bannerSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
47
47
|
bannerIconSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
48
|
+
segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
49
|
+
toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
export { recipes, slotRecipes };
|
package/dist/recipes/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ declare const slotRecipes: {
|
|
|
45
45
|
dropzoneSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
46
46
|
bannerSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
47
47
|
bannerIconSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
48
|
+
segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
49
|
+
toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
export { recipes, slotRecipes };
|
package/dist/tokens/colors.d.mts
CHANGED
package/dist/tokens/colors.d.ts
CHANGED
package/dist/tokens/index.d.mts
CHANGED
package/dist/tokens/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-theme",
|
|
3
3
|
"description": "Theme for mekari pixel 3",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"src"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@pandacss/dev": "0.
|
|
12
|
+
"@pandacss/dev": "^0.24.1"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"vue": "^3.
|
|
15
|
+
"vue": "^3.4.9"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@pandacss/types": "0.
|
|
19
|
-
"vue": "^3.
|
|
18
|
+
"@pandacss/types": "^0.24.1",
|
|
19
|
+
"vue": "^3.4.9"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
package/src/global-css.ts
CHANGED
|
@@ -5,13 +5,15 @@ export const globalCss = defineGlobalStyles({
|
|
|
5
5
|
MozOsxFontSmoothing: 'grayscale',
|
|
6
6
|
textRendering: 'optimizeLegibility',
|
|
7
7
|
WebkitFontSmoothing: 'antialiased',
|
|
8
|
-
WebkitTextSizeAdjust: '100%'
|
|
8
|
+
WebkitTextSizeAdjust: '100%',
|
|
9
9
|
},
|
|
10
10
|
body: {
|
|
11
11
|
background: 'var(--mp-colors-white)',
|
|
12
12
|
color: 'var(--mp-colors-dark)',
|
|
13
13
|
fontFamily: 'var(--mp-fonts-body)',
|
|
14
|
-
fontSize: '
|
|
14
|
+
fontSize: 'var(--mp-font-sizes-md)',
|
|
15
|
+
fontWeight: 'var(--mp-font-weights-regular)',
|
|
16
|
+
lineHeight: 'var(--mp-line-heights-lg)',
|
|
15
17
|
_dark: {
|
|
16
18
|
colorScheme: 'dark'
|
|
17
19
|
}
|
package/src/recipes/avatar.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
2
|
|
|
3
|
+
const variantColor = {
|
|
4
|
+
gray: {
|
|
5
|
+
root: { backgroundColor: 'gray.50' }
|
|
6
|
+
},
|
|
7
|
+
sky: {
|
|
8
|
+
root: { backgroundColor: 'sky.400' }
|
|
9
|
+
},
|
|
10
|
+
teal: {
|
|
11
|
+
root: { backgroundColor: 'teal.400' }
|
|
12
|
+
},
|
|
13
|
+
violet: {
|
|
14
|
+
root: { backgroundColor: 'violet.400' }
|
|
15
|
+
},
|
|
16
|
+
amber: {
|
|
17
|
+
root: { backgroundColor: 'amber.400' }
|
|
18
|
+
},
|
|
19
|
+
rose: {
|
|
20
|
+
root: { backgroundColor: 'rose.400' }
|
|
21
|
+
},
|
|
22
|
+
stone: {
|
|
23
|
+
root: { backgroundColor: 'stone.400' }
|
|
24
|
+
},
|
|
25
|
+
lime: {
|
|
26
|
+
root: { backgroundColor: 'lime.400' }
|
|
27
|
+
},
|
|
28
|
+
pink: {
|
|
29
|
+
root: { backgroundColor: 'pink.400' }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
3
33
|
const avatarSlotRecipe = defineSlotRecipe({
|
|
4
34
|
className: 'avatar',
|
|
5
35
|
jsx: ['MpAvatar', 'mp-avatar'],
|
|
@@ -47,35 +77,8 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
47
77
|
image: { borderRadius: 'full' }
|
|
48
78
|
}
|
|
49
79
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
root: { backgroundColor: 'gray.50' }
|
|
53
|
-
},
|
|
54
|
-
sky: {
|
|
55
|
-
root: { backgroundColor: 'sky.400' }
|
|
56
|
-
},
|
|
57
|
-
teal: {
|
|
58
|
-
root: { backgroundColor: 'teal.400' }
|
|
59
|
-
},
|
|
60
|
-
violet: {
|
|
61
|
-
root: { backgroundColor: 'violet.400' }
|
|
62
|
-
},
|
|
63
|
-
amber: {
|
|
64
|
-
root: { backgroundColor: 'amber.400' }
|
|
65
|
-
},
|
|
66
|
-
rose: {
|
|
67
|
-
root: { backgroundColor: 'rose.400' }
|
|
68
|
-
},
|
|
69
|
-
stone: {
|
|
70
|
-
root: { backgroundColor: 'stone.400' }
|
|
71
|
-
},
|
|
72
|
-
lime: {
|
|
73
|
-
root: { backgroundColor: 'lime.400' }
|
|
74
|
-
},
|
|
75
|
-
pink: {
|
|
76
|
-
root: { backgroundColor: 'pink.400' }
|
|
77
|
-
}
|
|
78
|
-
},
|
|
80
|
+
'variant-color': variantColor,
|
|
81
|
+
variantColor: variantColor,
|
|
79
82
|
size: {
|
|
80
83
|
sm: {
|
|
81
84
|
root: { width: '6', height: '6', fontSize: 'xs' },
|
package/src/recipes/button.ts
CHANGED
|
@@ -101,7 +101,7 @@ const buttonRecipe = defineRecipe({
|
|
|
101
101
|
},
|
|
102
102
|
textLink: {
|
|
103
103
|
color: 'blue.400',
|
|
104
|
-
background: '
|
|
104
|
+
background: 'transparent',
|
|
105
105
|
borderColor: 'white',
|
|
106
106
|
_hover: {
|
|
107
107
|
color: 'blue.500'
|
|
@@ -111,7 +111,12 @@ const buttonRecipe = defineRecipe({
|
|
|
111
111
|
},
|
|
112
112
|
_disabled: {
|
|
113
113
|
cursor: 'not-allowed',
|
|
114
|
-
color: 'gray.400'
|
|
114
|
+
color: 'gray.400',
|
|
115
|
+
borderColor: 'transparent',
|
|
116
|
+
_hover: {
|
|
117
|
+
borderColor: 'transparent',
|
|
118
|
+
color: 'gray.400',
|
|
119
|
+
}
|
|
115
120
|
},
|
|
116
121
|
_loading: {
|
|
117
122
|
background: 'white'
|
package/src/recipes/index.ts
CHANGED
|
@@ -24,6 +24,8 @@ import { dividerRecipe } from './divider'
|
|
|
24
24
|
import { modalSlotRecipe } from './modal'
|
|
25
25
|
import { uploadSlotRecipe, uploadListSlotRecipe } from './upload'
|
|
26
26
|
import { dropzoneSlotRecipe } from './dropzone'
|
|
27
|
+
import { segmentedControlSlotRecipe } from './segmented-control'
|
|
28
|
+
import { toastSlotRecipe } from './toast'
|
|
27
29
|
|
|
28
30
|
import {
|
|
29
31
|
bannerSlotRecipe,
|
|
@@ -79,5 +81,7 @@ export const slotRecipes = {
|
|
|
79
81
|
uploadListSlotRecipe,
|
|
80
82
|
dropzoneSlotRecipe,
|
|
81
83
|
bannerSlotRecipe,
|
|
82
|
-
bannerIconSlotRecipe
|
|
84
|
+
bannerIconSlotRecipe,
|
|
85
|
+
segmentedControlSlotRecipe,
|
|
86
|
+
toastSlotRecipe
|
|
83
87
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'segmented-control',
|
|
5
|
+
jsx: ['MpSegmentedControl', 'mp-segmented-control'],
|
|
6
|
+
slots: ['root', 'item', 'hidden', 'control', 'label', 'icon'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
display: 'inline-flex',
|
|
11
|
+
gap: '1',
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
justifyContent: 'var(--mp-segmented-control--justify-content)',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
width: 'var(--mp-segmented-control--width)',
|
|
16
|
+
height: '9.5',
|
|
17
|
+
borderWidth: '1px',
|
|
18
|
+
borderColor: 'gray.100',
|
|
19
|
+
borderRadius: 'md',
|
|
20
|
+
outline: '0px solid transparent',
|
|
21
|
+
padding: '1'
|
|
22
|
+
},
|
|
23
|
+
item: {
|
|
24
|
+
flex: 'var(--mp-segmented-control--flex)',
|
|
25
|
+
cursor: 'var(--mp-segmented-control--cursor)'
|
|
26
|
+
},
|
|
27
|
+
hidden: {
|
|
28
|
+
border: '0px',
|
|
29
|
+
clip: 'rect(0px, 0px, 0px, 0px)',
|
|
30
|
+
margin: '-1px',
|
|
31
|
+
padding: '0px',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
whiteSpace: 'nowrap',
|
|
34
|
+
height: '1px',
|
|
35
|
+
width: '1px',
|
|
36
|
+
position: 'absolute'
|
|
37
|
+
},
|
|
38
|
+
control: {
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'var(--mp-segmented-control--justify-content)',
|
|
42
|
+
height: '7',
|
|
43
|
+
paddingY: '1',
|
|
44
|
+
userSelect: 'none',
|
|
45
|
+
borderRadius: 'sm',
|
|
46
|
+
transition: 'all 250ms',
|
|
47
|
+
color: 'gray.600',
|
|
48
|
+
backgroundColor: 'white',
|
|
49
|
+
gap: 'var(--mp-segmented-control--gap)',
|
|
50
|
+
paddingX: 'var(--mp-segmented-control--padding-x)',
|
|
51
|
+
'input[type=radio]:hover:not(:disabled):not(:checked) + &': {
|
|
52
|
+
color: 'blue.700'
|
|
53
|
+
},
|
|
54
|
+
'input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &': {
|
|
55
|
+
color: 'blue.400',
|
|
56
|
+
backgroundColor: 'blue.50'
|
|
57
|
+
},
|
|
58
|
+
'input[type=radio]:disabled + &': {
|
|
59
|
+
color: 'gray.400'
|
|
60
|
+
},
|
|
61
|
+
'input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &':
|
|
62
|
+
{
|
|
63
|
+
color: 'blue.700'
|
|
64
|
+
},
|
|
65
|
+
'input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &': {
|
|
66
|
+
color: 'blue.700',
|
|
67
|
+
boxShadow: 'outer'
|
|
68
|
+
},
|
|
69
|
+
'input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &':
|
|
70
|
+
{
|
|
71
|
+
color: 'gray.400',
|
|
72
|
+
backgroundColor: 'gray.50'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
label: {
|
|
76
|
+
color: 'currentColor',
|
|
77
|
+
fontSize: 'md',
|
|
78
|
+
fontFamily: 'body',
|
|
79
|
+
lineHeight: 'md',
|
|
80
|
+
opacity: '1'
|
|
81
|
+
},
|
|
82
|
+
icon: {
|
|
83
|
+
color: 'currentColor'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
variants: {},
|
|
87
|
+
compoundVariants: [],
|
|
88
|
+
defaultVariants: {}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
export { segmentedControlSlotRecipe }
|
package/src/recipes/text.ts
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const toastSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'toast',
|
|
5
|
+
jsx: ['MpToast', 'mp-toast'],
|
|
6
|
+
slots: ['root', 'icon', 'label'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
gap: '2',
|
|
12
|
+
width: '356px',
|
|
13
|
+
border: '1.5px solid',
|
|
14
|
+
borderRadius: 'md',
|
|
15
|
+
backgroundColor: 'white',
|
|
16
|
+
padding: '3',
|
|
17
|
+
boxShadow: 'lg',
|
|
18
|
+
zIndex: '9999'
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
fontSize: 'md'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
success: {},
|
|
27
|
+
error: {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{
|
|
32
|
+
variant: 'success',
|
|
33
|
+
css: {
|
|
34
|
+
root: { borderColor: 'green.700' }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
variant: 'error',
|
|
39
|
+
css: {
|
|
40
|
+
root: { borderColor: 'red.700' }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
variant: 'success'
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
export { toastSlotRecipe }
|
package/src/tokens/colors.ts
CHANGED
|
@@ -39,7 +39,7 @@ export const colors = defineTokens.colors({
|
|
|
39
39
|
800: { value: 'rgba(255, 255, 255, 0.80)' },
|
|
40
40
|
900: { value: 'rgba(255, 255, 255, 0.92)' }
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
blackAlpha: {
|
|
43
43
|
50: { value: 'rgba(0, 0, 0, 0.04)' },
|
|
44
44
|
100: { value: 'rgba(0, 0, 0, 0.06)' },
|
|
45
45
|
200: { value: 'rgba(0, 0, 0, 0.08)' },
|
package/src/tokens/typography.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { defineTokens } from '@pandacss/dev'
|
|
|
3
3
|
export const fonts = defineTokens.fonts({
|
|
4
4
|
body: {
|
|
5
5
|
value:
|
|
6
|
-
'"
|
|
6
|
+
'"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
7
7
|
},
|
|
8
8
|
mono: {
|
|
9
9
|
value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
|