@mekari/pixel3-theme 0.0.3 → 0.0.5-dev.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/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: "14px",
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
  }
@@ -97,7 +99,8 @@ var tagSlotRecipe = defineSlotRecipe({
97
99
  paddingX: "2",
98
100
  whiteSpace: "normal",
99
101
  overflowWrap: "anywhere",
100
- cursor: "var(--mp-tag--cursor)"
102
+ cursor: "var(--mp-tag--cursor)",
103
+ height: "fit-content"
101
104
  },
102
105
  close: {
103
106
  position: "absolute!",
@@ -178,6 +181,35 @@ var tagSlotRecipe = defineSlotRecipe({
178
181
 
179
182
  // src/recipes/avatar.ts
180
183
  import { defineSlotRecipe as defineSlotRecipe2 } from "@pandacss/dev";
184
+ var variantColor = {
185
+ gray: {
186
+ root: { backgroundColor: "gray.50" }
187
+ },
188
+ sky: {
189
+ root: { backgroundColor: "sky.400" }
190
+ },
191
+ teal: {
192
+ root: { backgroundColor: "teal.400" }
193
+ },
194
+ violet: {
195
+ root: { backgroundColor: "violet.400" }
196
+ },
197
+ amber: {
198
+ root: { backgroundColor: "amber.400" }
199
+ },
200
+ rose: {
201
+ root: { backgroundColor: "rose.400" }
202
+ },
203
+ stone: {
204
+ root: { backgroundColor: "stone.400" }
205
+ },
206
+ lime: {
207
+ root: { backgroundColor: "lime.400" }
208
+ },
209
+ pink: {
210
+ root: { backgroundColor: "pink.400" }
211
+ }
212
+ };
181
213
  var avatarSlotRecipe = defineSlotRecipe2({
182
214
  className: "avatar",
183
215
  jsx: ["MpAvatar", "mp-avatar"],
@@ -225,35 +257,8 @@ var avatarSlotRecipe = defineSlotRecipe2({
225
257
  image: { borderRadius: "full" }
226
258
  }
227
259
  },
228
- variantColor: {
229
- gray: {
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
- },
260
+ "variant-color": variantColor,
261
+ variantColor,
257
262
  size: {
258
263
  sm: {
259
264
  root: { width: "6", height: "6", fontSize: "xs" },
@@ -363,8 +368,8 @@ var buttonRecipe = defineRecipe({
363
368
  display: "inline-flex",
364
369
  justifyContent: "center",
365
370
  alignItems: "center",
366
- alignSelf: "start",
367
371
  gap: "2",
372
+ height: "fit-content",
368
373
  borderWidth: "1px",
369
374
  whiteSpace: "nowrap",
370
375
  userSelect: "none",
@@ -456,7 +461,7 @@ var buttonRecipe = defineRecipe({
456
461
  },
457
462
  textLink: {
458
463
  color: "blue.400",
459
- background: "white",
464
+ background: "transparent",
460
465
  borderColor: "white",
461
466
  _hover: {
462
467
  color: "blue.500"
@@ -466,7 +471,12 @@ var buttonRecipe = defineRecipe({
466
471
  },
467
472
  _disabled: {
468
473
  cursor: "not-allowed",
469
- color: "gray.400"
474
+ color: "gray.400",
475
+ borderColor: "transparent",
476
+ _hover: {
477
+ borderColor: "transparent",
478
+ color: "gray.400"
479
+ }
470
480
  },
471
481
  _loading: {
472
482
  background: "white"
@@ -901,7 +911,8 @@ var textRecipe = defineRecipe2({
901
911
  textDecoration: "line-through"
902
912
  },
903
913
  "&[data-text-link=true]": {
904
- textDecoration: "underline"
914
+ textDecoration: "underline",
915
+ cursor: "pointer"
905
916
  }
906
917
  },
907
918
  variants: {
@@ -1167,8 +1178,8 @@ var badgeRecipe = defineRecipe6({
1167
1178
  size: {
1168
1179
  sm: {
1169
1180
  fontSize: "xs",
1170
- fontWeight: "semibold",
1171
- lineHeight: "1sm",
1181
+ fontWeight: "semiBold",
1182
+ lineHeight: "sm",
1172
1183
  letterSpacing: "normal",
1173
1184
  height: "4"
1174
1185
  },
@@ -2059,7 +2070,7 @@ var progressSlotRecipe = defineSlotRecipe10({
2059
2070
  width: "22px",
2060
2071
  height: "22px",
2061
2072
  background: "transparent",
2062
- alignSelf: "start"
2073
+ alignSelf: "flex-start"
2063
2074
  }
2064
2075
  }
2065
2076
  }
@@ -2429,7 +2440,7 @@ var uploadListSlotRecipe = defineSlotRecipe14({
2429
2440
  width: "full",
2430
2441
  display: "flex",
2431
2442
  alignItems: "center",
2432
- justifyContent: "start",
2443
+ justifyContent: "flex-start",
2433
2444
  gap: "3",
2434
2445
  py: "2",
2435
2446
  px: "1",
@@ -2621,9 +2632,145 @@ var dropzoneSlotRecipe = defineSlotRecipe15({
2621
2632
  }
2622
2633
  });
2623
2634
 
2635
+ // src/recipes/segmented-control.ts
2636
+ import { defineSlotRecipe as defineSlotRecipe16 } from "@pandacss/dev";
2637
+ var segmentedControlSlotRecipe = defineSlotRecipe16({
2638
+ className: "segmented-control",
2639
+ jsx: ["MpSegmentedControl", "mp-segmented-control"],
2640
+ slots: ["root", "item", "hidden", "control", "label", "icon"],
2641
+ base: {
2642
+ root: {
2643
+ position: "relative",
2644
+ display: "inline-flex",
2645
+ gap: "1",
2646
+ flexDirection: "row",
2647
+ justifyContent: "var(--mp-segmented-control--justify-content)",
2648
+ alignItems: "center",
2649
+ width: "var(--mp-segmented-control--width)",
2650
+ height: "9.5",
2651
+ borderWidth: "1px",
2652
+ borderColor: "gray.100",
2653
+ borderRadius: "md",
2654
+ outline: "0px solid transparent",
2655
+ padding: "1"
2656
+ },
2657
+ item: {
2658
+ flex: "var(--mp-segmented-control--flex)",
2659
+ cursor: "var(--mp-segmented-control--cursor)"
2660
+ },
2661
+ hidden: {
2662
+ border: "0px",
2663
+ clip: "rect(0px, 0px, 0px, 0px)",
2664
+ margin: "-1px",
2665
+ padding: "0px",
2666
+ overflow: "hidden",
2667
+ whiteSpace: "nowrap",
2668
+ height: "1px",
2669
+ width: "1px",
2670
+ position: "absolute"
2671
+ },
2672
+ control: {
2673
+ display: "flex",
2674
+ alignItems: "center",
2675
+ justifyContent: "var(--mp-segmented-control--justify-content)",
2676
+ height: "7",
2677
+ paddingY: "1",
2678
+ userSelect: "none",
2679
+ borderRadius: "sm",
2680
+ transition: "all 250ms",
2681
+ color: "gray.600",
2682
+ backgroundColor: "white",
2683
+ gap: "var(--mp-segmented-control--gap)",
2684
+ paddingX: "var(--mp-segmented-control--padding-x)",
2685
+ "input[type=radio]:hover:not(:disabled):not(:checked) + &": {
2686
+ color: "blue.700"
2687
+ },
2688
+ "input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &": {
2689
+ color: "blue.400",
2690
+ backgroundColor: "blue.50"
2691
+ },
2692
+ "input[type=radio]:disabled + &": {
2693
+ color: "gray.400"
2694
+ },
2695
+ "input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &": {
2696
+ color: "blue.700"
2697
+ },
2698
+ "input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &": {
2699
+ color: "blue.700",
2700
+ boxShadow: "outer"
2701
+ },
2702
+ "input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &": {
2703
+ color: "gray.400",
2704
+ backgroundColor: "gray.50"
2705
+ }
2706
+ },
2707
+ label: {
2708
+ color: "currentColor",
2709
+ fontSize: "md",
2710
+ fontFamily: "body",
2711
+ lineHeight: "md",
2712
+ opacity: "1"
2713
+ },
2714
+ icon: {
2715
+ color: "currentColor"
2716
+ }
2717
+ },
2718
+ variants: {},
2719
+ compoundVariants: [],
2720
+ defaultVariants: {}
2721
+ });
2722
+
2723
+ // src/recipes/toast.ts
2724
+ import { defineSlotRecipe as defineSlotRecipe17 } from "@pandacss/dev";
2725
+ var toastSlotRecipe = defineSlotRecipe17({
2726
+ className: "toast",
2727
+ jsx: ["MpToast", "mp-toast"],
2728
+ slots: ["root", "icon", "label"],
2729
+ base: {
2730
+ root: {
2731
+ display: "flex",
2732
+ alignItems: "center",
2733
+ gap: "2",
2734
+ width: "356px",
2735
+ border: "1.5px solid",
2736
+ borderRadius: "md",
2737
+ backgroundColor: "white",
2738
+ padding: "3",
2739
+ boxShadow: "lg",
2740
+ zIndex: "9999"
2741
+ },
2742
+ label: {
2743
+ fontSize: "md"
2744
+ }
2745
+ },
2746
+ variants: {
2747
+ variant: {
2748
+ success: {},
2749
+ error: {}
2750
+ }
2751
+ },
2752
+ compoundVariants: [
2753
+ {
2754
+ variant: "success",
2755
+ css: {
2756
+ root: { borderColor: "green.700" }
2757
+ }
2758
+ },
2759
+ {
2760
+ variant: "error",
2761
+ css: {
2762
+ root: { borderColor: "red.700" }
2763
+ }
2764
+ }
2765
+ ],
2766
+ defaultVariants: {
2767
+ variant: "success"
2768
+ }
2769
+ });
2770
+
2624
2771
  // src/recipes/banner.ts
2625
- import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe16 } from "@pandacss/dev";
2626
- var bannerSlotRecipe = defineSlotRecipe16({
2772
+ import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe18 } from "@pandacss/dev";
2773
+ var bannerSlotRecipe = defineSlotRecipe18({
2627
2774
  className: "banner",
2628
2775
  jsx: ["MpBanner", "mp-banner"],
2629
2776
  slots: ["root", "body"],
@@ -2696,7 +2843,7 @@ var bannerDescriptionRecipe = defineRecipe12({
2696
2843
  compoundVariants: [],
2697
2844
  defaultVariants: {}
2698
2845
  });
2699
- var bannerIconSlotRecipe = defineSlotRecipe16({
2846
+ var bannerIconSlotRecipe = defineSlotRecipe18({
2700
2847
  className: "banner-icon",
2701
2848
  jsx: ["MpBannerIcon", "mp-banner-icon"],
2702
2849
  slots: ["root", "custom"],
@@ -2796,7 +2943,9 @@ var slotRecipes = {
2796
2943
  uploadListSlotRecipe,
2797
2944
  dropzoneSlotRecipe,
2798
2945
  bannerSlotRecipe,
2799
- bannerIconSlotRecipe
2946
+ bannerIconSlotRecipe,
2947
+ segmentedControlSlotRecipe,
2948
+ toastSlotRecipe
2800
2949
  };
2801
2950
 
2802
2951
  // src/text-styles.ts
@@ -2887,7 +3036,7 @@ var colors = defineTokens2.colors({
2887
3036
  800: { value: "rgba(255, 255, 255, 0.80)" },
2888
3037
  900: { value: "rgba(255, 255, 255, 0.92)" }
2889
3038
  },
2890
- blackAplpha: {
3039
+ blackAlpha: {
2891
3040
  50: { value: "rgba(0, 0, 0, 0.04)" },
2892
3041
  100: { value: "rgba(0, 0, 0, 0.06)" },
2893
3042
  200: { value: "rgba(0, 0, 0, 0.08)" },
@@ -3139,7 +3288,7 @@ var zIndex = defineTokens9.zIndex({
3139
3288
  import { defineTokens as defineTokens10 } from "@pandacss/dev";
3140
3289
  var fonts = defineTokens10.fonts({
3141
3290
  body: {
3142
- value: '"inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
3291
+ value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
3143
3292
  },
3144
3293
  mono: {
3145
3294
  value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
@@ -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 };
@@ -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 };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const segmentedControlSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { segmentedControlSlotRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const segmentedControlSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { segmentedControlSlotRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const toastSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { toastSlotRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const toastSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { toastSlotRecipe };
@@ -93,7 +93,7 @@ declare const colors: {
93
93
  value: string;
94
94
  };
95
95
  };
96
- blackAplpha: {
96
+ blackAlpha: {
97
97
  50: {
98
98
  value: string;
99
99
  };
@@ -93,7 +93,7 @@ declare const colors: {
93
93
  value: string;
94
94
  };
95
95
  };
96
- blackAplpha: {
96
+ blackAlpha: {
97
97
  50: {
98
98
  value: string;
99
99
  };
@@ -108,7 +108,7 @@ declare const tokens: {
108
108
  value: string;
109
109
  };
110
110
  };
111
- blackAplpha: {
111
+ blackAlpha: {
112
112
  50: {
113
113
  value: string;
114
114
  };
@@ -108,7 +108,7 @@ declare const tokens: {
108
108
  value: string;
109
109
  };
110
110
  };
111
- blackAplpha: {
111
+ blackAlpha: {
112
112
  50: {
113
113
  value: string;
114
114
  };
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.3",
4
+ "version": "0.0.5-dev.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -9,13 +9,13 @@
9
9
  "src"
10
10
  ],
11
11
  "dependencies": {
12
- "@pandacss/dev": "0.24.1"
12
+ "@pandacss/dev": "^0.24.1"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "vue": "^3.4.9"
16
16
  },
17
17
  "devDependencies": {
18
- "@pandacss/types": "0.24.1",
18
+ "@pandacss/types": "^0.24.1",
19
19
  "vue": "^3.4.9"
20
20
  },
21
21
  "publishConfig": {
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: '14px',
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
  }
@@ -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
- variantColor: {
51
- gray: {
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' },
@@ -26,8 +26,8 @@ const badgeRecipe = defineRecipe({
26
26
  size: {
27
27
  sm: {
28
28
  fontSize: 'xs',
29
- fontWeight: 'semibold',
30
- lineHeight: '1sm',
29
+ fontWeight: 'semiBold',
30
+ lineHeight: 'sm',
31
31
  letterSpacing: 'normal',
32
32
  height: '4'
33
33
  },
@@ -8,8 +8,8 @@ const buttonRecipe = defineRecipe({
8
8
  display: 'inline-flex',
9
9
  justifyContent: 'center',
10
10
  alignItems: 'center',
11
- alignSelf: 'start',
12
11
  gap: '2',
12
+ height: 'fit-content',
13
13
  borderWidth: '1px',
14
14
  whiteSpace: 'nowrap',
15
15
  userSelect: 'none',
@@ -101,7 +101,7 @@ const buttonRecipe = defineRecipe({
101
101
  },
102
102
  textLink: {
103
103
  color: 'blue.400',
104
- background: 'white',
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'
@@ -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
  }
@@ -62,7 +62,7 @@ const progressSlotRecipe = defineSlotRecipe({
62
62
  width: '22px',
63
63
  height: '22px',
64
64
  background: 'transparent',
65
- alignSelf: 'start'
65
+ alignSelf: 'flex-start'
66
66
  }
67
67
  }
68
68
  }