@mekari/pixel3-theme 0.0.5 → 0.0.6-dev.1

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.
@@ -10,6 +10,7 @@ declare const conditions: {
10
10
  collapsed: string;
11
11
  loading: string;
12
12
  hasIcon: string;
13
+ hasLabel: string;
13
14
  active: string;
14
15
  highlight: string;
15
16
  hasBorder: string;
@@ -10,6 +10,7 @@ declare const conditions: {
10
10
  collapsed: string;
11
11
  loading: string;
12
12
  hasIcon: string;
13
+ hasLabel: string;
13
14
  active: string;
14
15
  highlight: string;
15
16
  hasBorder: string;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ __export(theme_exports, {
25
25
  module.exports = __toCommonJS(theme_exports);
26
26
 
27
27
  // src/index.ts
28
- var import_dev44 = require("@pandacss/dev");
28
+ var import_dev45 = require("@pandacss/dev");
29
29
 
30
30
  // src/breakpoints.ts
31
31
  var breakpoints = {
@@ -48,6 +48,7 @@ var conditions = {
48
48
  collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
49
49
  loading: "& > [data-loading=true], &:is([data-loading], [aria-busy=true])",
50
50
  hasIcon: "&[data-has-icon=true]",
51
+ hasLabel: "&[data-has-label=true]",
51
52
  active: "&[data-active=true], [data-active]",
52
53
  highlight: "&[data-highlight=true], [data-highlight]",
53
54
  hasBorder: "&[data-has-border=true]",
@@ -396,6 +397,7 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
396
397
  alignItems: "center",
397
398
  gap: "2",
398
399
  height: "fit-content",
400
+ width: "fit-content",
399
401
  borderWidth: "1px",
400
402
  whiteSpace: "nowrap",
401
403
  userSelect: "none",
@@ -511,8 +513,6 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
511
513
  },
512
514
  size: {
513
515
  sm: {
514
- paddingX: "2",
515
- paddingY: "1",
516
516
  borderRadius: "sm",
517
517
  textStyle: "label.md",
518
518
  fontWeight: "regular",
@@ -520,12 +520,15 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
520
520
  borderRadius: "sm"
521
521
  },
522
522
  _hasIcon: {
523
- padding: "1 !important"
523
+ paddingX: "1",
524
+ paddingY: "1 !important"
525
+ },
526
+ _hasLabel: {
527
+ paddingX: "2 !important",
528
+ paddingY: "1"
524
529
  }
525
530
  },
526
531
  md: {
527
- paddingX: "4",
528
- paddingY: "2",
529
532
  borderRadius: "md",
530
533
  textStyle: "label.md",
531
534
  fontWeight: "semiBold",
@@ -533,7 +536,12 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
533
536
  borderRadius: "md"
534
537
  },
535
538
  _hasIcon: {
536
- padding: "2 !important"
539
+ paddingX: "1.5",
540
+ paddingY: "1.5 !important"
541
+ },
542
+ _hasLabel: {
543
+ paddingX: "4 !important",
544
+ paddingY: "2"
537
545
  }
538
546
  }
539
547
  }
@@ -542,8 +550,6 @@ var buttonRecipe = (0, import_dev5.defineRecipe)({
542
550
  {
543
551
  variant: ["textLink"],
544
552
  css: {
545
- paddingX: "0",
546
- paddingY: "0",
547
553
  borderRadius: "sm",
548
554
  _focusVisible: {
549
555
  borderColor: "white",
@@ -2794,9 +2800,80 @@ var toastSlotRecipe = (0, import_dev30.defineSlotRecipe)({
2794
2800
  }
2795
2801
  });
2796
2802
 
2797
- // src/recipes/banner.ts
2803
+ // src/recipes/broadcast.ts
2798
2804
  var import_dev31 = require("@pandacss/dev");
2799
- var bannerSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2805
+ var broadcastSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2806
+ className: "broadcast",
2807
+ jsx: ["MpBroadcast", "mp-broadcast"],
2808
+ slots: ["root", "container", "wrapper", "icon", "content", "textLink", "action", "close"],
2809
+ base: {
2810
+ root: {
2811
+ width: "full",
2812
+ position: "relative"
2813
+ },
2814
+ container: {
2815
+ display: "flex",
2816
+ flexDirection: "row",
2817
+ alignItems: "center",
2818
+ justifyContent: "space-between",
2819
+ paddingY: "2",
2820
+ paddingX: "6"
2821
+ },
2822
+ wrapper: {
2823
+ display: "flex",
2824
+ flexDirection: "row",
2825
+ alignItems: "center",
2826
+ width: "var(--mp-broadcast--width)"
2827
+ },
2828
+ icon: {
2829
+ marginRight: "3"
2830
+ },
2831
+ textLink: {
2832
+ flex: "none",
2833
+ textDecoration: "underline",
2834
+ marginLeft: "3"
2835
+ },
2836
+ close: {
2837
+ color: "white!",
2838
+ backgroundColor: "transparent!",
2839
+ borderColor: "transparent!",
2840
+ marginLeft: "3",
2841
+ _hover: {
2842
+ color: "white!"
2843
+ }
2844
+ }
2845
+ },
2846
+ variants: {
2847
+ variant: {
2848
+ announcement: {
2849
+ container: { backgroundColor: "stone.400" },
2850
+ icon: { color: "white" },
2851
+ content: { color: "white" },
2852
+ textLink: { color: "white" }
2853
+ },
2854
+ information: {
2855
+ container: { backgroundColor: "violet.400" },
2856
+ icon: { color: "white" },
2857
+ content: { color: "white" },
2858
+ textLink: { color: "white" }
2859
+ },
2860
+ important: {
2861
+ container: { backgroundColor: "amber.100" },
2862
+ icon: { color: "dark" },
2863
+ content: { color: "dark" },
2864
+ textLink: { color: "dark" }
2865
+ }
2866
+ }
2867
+ },
2868
+ compoundVariants: [],
2869
+ defaultVariants: {
2870
+ variant: "announcement"
2871
+ }
2872
+ });
2873
+
2874
+ // src/recipes/banner.ts
2875
+ var import_dev32 = require("@pandacss/dev");
2876
+ var bannerSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2800
2877
  className: "banner",
2801
2878
  jsx: ["MpBanner", "mp-banner"],
2802
2879
  slots: ["root", "body"],
@@ -2837,7 +2914,7 @@ var bannerSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2837
2914
  variant: "info"
2838
2915
  }
2839
2916
  });
2840
- var bannerTitleRecipe = (0, import_dev31.defineRecipe)({
2917
+ var bannerTitleRecipe = (0, import_dev32.defineRecipe)({
2841
2918
  className: "banner-title",
2842
2919
  jsx: ["MpBannerTitle", "mp-banner-title"],
2843
2920
  base: {
@@ -2854,7 +2931,7 @@ var bannerTitleRecipe = (0, import_dev31.defineRecipe)({
2854
2931
  compoundVariants: [],
2855
2932
  defaultVariants: {}
2856
2933
  });
2857
- var bannerDescriptionRecipe = (0, import_dev31.defineRecipe)({
2934
+ var bannerDescriptionRecipe = (0, import_dev32.defineRecipe)({
2858
2935
  className: "banner-description",
2859
2936
  jsx: ["MpBannerDescription", "mp-banner-description"],
2860
2937
  base: {
@@ -2869,7 +2946,7 @@ var bannerDescriptionRecipe = (0, import_dev31.defineRecipe)({
2869
2946
  compoundVariants: [],
2870
2947
  defaultVariants: {}
2871
2948
  });
2872
- var bannerIconSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2949
+ var bannerIconSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2873
2950
  className: "banner-icon",
2874
2951
  jsx: ["MpBannerIcon", "mp-banner-icon"],
2875
2952
  slots: ["root", "custom"],
@@ -2892,7 +2969,7 @@ var bannerIconSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2892
2969
  compoundVariants: [],
2893
2970
  defaultVariants: {}
2894
2971
  });
2895
- var bannerLinkRecipe = (0, import_dev31.defineRecipe)({
2972
+ var bannerLinkRecipe = (0, import_dev32.defineRecipe)({
2896
2973
  className: "banner-link",
2897
2974
  jsx: ["MpBannerLink", "mp-banner-link"],
2898
2975
  base: {
@@ -2905,7 +2982,7 @@ var bannerLinkRecipe = (0, import_dev31.defineRecipe)({
2905
2982
  compoundVariants: [],
2906
2983
  defaultVariants: {}
2907
2984
  });
2908
- var bannerCloseButtonRecipe = (0, import_dev31.defineRecipe)({
2985
+ var bannerCloseButtonRecipe = (0, import_dev32.defineRecipe)({
2909
2986
  className: "banner-close-button",
2910
2987
  jsx: ["MpBannerCloseButton", "mp-banner-close-button"],
2911
2988
  base: {
@@ -2971,12 +3048,13 @@ var slotRecipes = {
2971
3048
  bannerSlotRecipe,
2972
3049
  bannerIconSlotRecipe,
2973
3050
  segmentedControlSlotRecipe,
2974
- toastSlotRecipe
3051
+ toastSlotRecipe,
3052
+ broadcastSlotRecipe
2975
3053
  };
2976
3054
 
2977
3055
  // src/text-styles.ts
2978
- var import_dev32 = require("@pandacss/dev");
2979
- var textStyles = (0, import_dev32.defineTextStyles)({
3056
+ var import_dev33 = require("@pandacss/dev");
3057
+ var textStyles = (0, import_dev33.defineTextStyles)({
2980
3058
  overline: { value: { fontSize: "xs", lineHeight: "xs" } },
2981
3059
  body: {
2982
3060
  sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
@@ -3010,11 +3088,11 @@ var textStyles = (0, import_dev32.defineTextStyles)({
3010
3088
  });
3011
3089
 
3012
3090
  // src/tokens/index.ts
3013
- var import_dev43 = require("@pandacss/dev");
3091
+ var import_dev44 = require("@pandacss/dev");
3014
3092
 
3015
3093
  // src/tokens/borders.ts
3016
- var import_dev33 = require("@pandacss/dev");
3017
- var borders = import_dev33.defineTokens.borders({
3094
+ var import_dev34 = require("@pandacss/dev");
3095
+ var borders = import_dev34.defineTokens.borders({
3018
3096
  none: { value: "none" },
3019
3097
  sm: { value: "1px" },
3020
3098
  md: { value: "1.5px" },
@@ -3022,8 +3100,8 @@ var borders = import_dev33.defineTokens.borders({
3022
3100
  });
3023
3101
 
3024
3102
  // src/tokens/colors.ts
3025
- var import_dev34 = require("@pandacss/dev");
3026
- var colors = import_dev34.defineTokens.colors({
3103
+ var import_dev35 = require("@pandacss/dev");
3104
+ var colors = import_dev35.defineTokens.colors({
3027
3105
  currentcolor: {
3028
3106
  value: "currentcolor",
3029
3107
  description: "Need to add this for Icon usage"
@@ -3176,16 +3254,16 @@ var colors = import_dev34.defineTokens.colors({
3176
3254
  });
3177
3255
 
3178
3256
  // src/tokens/durations.ts
3179
- var import_dev35 = require("@pandacss/dev");
3180
- var durations = import_dev35.defineTokens.durations({
3257
+ var import_dev36 = require("@pandacss/dev");
3258
+ var durations = import_dev36.defineTokens.durations({
3181
3259
  slow: { value: "100ms" },
3182
3260
  normal: { value: "250ms" },
3183
3261
  fast: { value: "300ms" }
3184
3262
  });
3185
3263
 
3186
3264
  // src/tokens/opacity.ts
3187
- var import_dev36 = require("@pandacss/dev");
3188
- var opacity = import_dev36.defineTokens.opacity({
3265
+ var import_dev37 = require("@pandacss/dev");
3266
+ var opacity = import_dev37.defineTokens.opacity({
3189
3267
  0: { value: 0 },
3190
3268
  40: { value: 0.4 },
3191
3269
  60: { value: 0.6 },
@@ -3193,8 +3271,8 @@ var opacity = import_dev36.defineTokens.opacity({
3193
3271
  });
3194
3272
 
3195
3273
  // src/tokens/radii.ts
3196
- var import_dev37 = require("@pandacss/dev");
3197
- var radii = import_dev37.defineTokens.radii({
3274
+ var import_dev38 = require("@pandacss/dev");
3275
+ var radii = import_dev38.defineTokens.radii({
3198
3276
  none: { value: "0" },
3199
3277
  xs: { value: "0.125rem", description: "2px" },
3200
3278
  sm: { value: "0.25rem", description: "4px" },
@@ -3205,8 +3283,8 @@ var radii = import_dev37.defineTokens.radii({
3205
3283
  });
3206
3284
 
3207
3285
  // src/tokens/shadows.ts
3208
- var import_dev38 = require("@pandacss/dev");
3209
- var shadows = import_dev38.defineTokens.shadows({
3286
+ var import_dev39 = require("@pandacss/dev");
3287
+ var shadows = import_dev39.defineTokens.shadows({
3210
3288
  xs: {
3211
3289
  value: ["0px 0px 2px 0px rgba(0, 0, 0, 0.12)", "0px 2px 4px 0px rgba(0, 0, 0, 0.14)"]
3212
3290
  },
@@ -3246,12 +3324,13 @@ var shadows = import_dev38.defineTokens.shadows({
3246
3324
  });
3247
3325
 
3248
3326
  // src/tokens/sizes.ts
3249
- var import_dev39 = require("@pandacss/dev");
3250
- var sizes = import_dev39.defineTokens.sizes({
3327
+ var import_dev40 = require("@pandacss/dev");
3328
+ var sizes = import_dev40.defineTokens.sizes({
3251
3329
  0: { value: "0", description: "0px" },
3252
3330
  0.25: { value: "0.0625rem", description: "1px" },
3253
3331
  0.5: { value: "0.125rem", description: "2px" },
3254
3332
  1: { value: "0.25rem", description: "4px" },
3333
+ 1.5: { value: "0.375rem", description: "6px" },
3255
3334
  2: { value: "0.5rem", description: "8px" },
3256
3335
  2.5: { value: "0.625rem", description: "10px" },
3257
3336
  3: { value: "0.75rem", description: "12px" },
@@ -3276,13 +3355,15 @@ var sizes = import_dev39.defineTokens.sizes({
3276
3355
  });
3277
3356
 
3278
3357
  // src/tokens/spacing.ts
3279
- var import_dev40 = require("@pandacss/dev");
3280
- var spacing = import_dev40.defineTokens.spacing({
3358
+ var import_dev41 = require("@pandacss/dev");
3359
+ var spacing = import_dev41.defineTokens.spacing({
3281
3360
  0: { value: "0", description: "0px" },
3361
+ 0.25: { value: "0.0625rem", description: "1px" },
3282
3362
  0.5: { value: "0.125rem", description: "2px" },
3283
3363
  1: { value: "0.25rem", description: "4px" },
3284
3364
  1.5: { value: "0.375rem", description: "6px" },
3285
3365
  2: { value: "0.5rem", description: "8px" },
3366
+ 2.5: { value: "0.625rem", description: "10px" },
3286
3367
  3: { value: "0.75rem", description: "12px" },
3287
3368
  4: { value: "1rem", description: "16px" },
3288
3369
  5: { value: "1.3rem", description: "20px" },
@@ -3298,8 +3379,8 @@ var spacing = import_dev40.defineTokens.spacing({
3298
3379
  });
3299
3380
 
3300
3381
  // src/tokens/z-index.ts
3301
- var import_dev41 = require("@pandacss/dev");
3302
- var zIndex = import_dev41.defineTokens.zIndex({
3382
+ var import_dev42 = require("@pandacss/dev");
3383
+ var zIndex = import_dev42.defineTokens.zIndex({
3303
3384
  hide: { value: -1 },
3304
3385
  base: { value: 0 },
3305
3386
  docked: { value: 10 },
@@ -3311,8 +3392,8 @@ var zIndex = import_dev41.defineTokens.zIndex({
3311
3392
  });
3312
3393
 
3313
3394
  // src/tokens/typography.ts
3314
- var import_dev42 = require("@pandacss/dev");
3315
- var fonts = import_dev42.defineTokens.fonts({
3395
+ var import_dev43 = require("@pandacss/dev");
3396
+ var fonts = import_dev43.defineTokens.fonts({
3316
3397
  body: {
3317
3398
  value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
3318
3399
  },
@@ -3320,7 +3401,7 @@ var fonts = import_dev42.defineTokens.fonts({
3320
3401
  value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
3321
3402
  }
3322
3403
  });
3323
- var fontSizes = import_dev42.defineTokens.fontSizes({
3404
+ var fontSizes = import_dev43.defineTokens.fontSizes({
3324
3405
  xs: { value: "0.625rem", description: "10px" },
3325
3406
  sm: { value: "0.75rem", description: "12px" },
3326
3407
  md: { value: "0.875rem", description: "14px" },
@@ -3328,12 +3409,12 @@ var fontSizes = import_dev42.defineTokens.fontSizes({
3328
3409
  xl: { value: "1.25rem", description: "20px" },
3329
3410
  "2xl": { value: "1.5rem", description: "24px" }
3330
3411
  });
3331
- var fontWeights = import_dev42.defineTokens.fontWeights({
3412
+ var fontWeights = import_dev43.defineTokens.fontWeights({
3332
3413
  regular: { value: "400" },
3333
3414
  semiBold: { value: "600" },
3334
3415
  bold: { value: "800" }
3335
3416
  });
3336
- var lineHeights = import_dev42.defineTokens.lineHeights({
3417
+ var lineHeights = import_dev43.defineTokens.lineHeights({
3337
3418
  xs: { value: 1.2, description: "12px/10px" },
3338
3419
  sm: { value: 1.34, description: "16px/12px or 32px/24px" },
3339
3420
  md: { value: 1.4, description: "28px/20px" },
@@ -3342,7 +3423,7 @@ var lineHeights = import_dev42.defineTokens.lineHeights({
3342
3423
  "2xl": { value: 1.67, description: "20px/12px" },
3343
3424
  "3xl": { value: 1.71, description: "24px/14px" }
3344
3425
  });
3345
- var letterSpacings = import_dev42.defineTokens.letterSpacings({
3426
+ var letterSpacings = import_dev43.defineTokens.letterSpacings({
3346
3427
  tighter: { value: "-0.05em" },
3347
3428
  tight: { value: "-0.025em" },
3348
3429
  normal: { value: "0" },
@@ -3352,7 +3433,7 @@ var letterSpacings = import_dev42.defineTokens.letterSpacings({
3352
3433
  });
3353
3434
 
3354
3435
  // src/tokens/index.ts
3355
- var tokens = (0, import_dev43.defineTokens)({
3436
+ var tokens = (0, import_dev44.defineTokens)({
3356
3437
  borders,
3357
3438
  colors,
3358
3439
  durations,
@@ -3370,7 +3451,7 @@ var tokens = (0, import_dev43.defineTokens)({
3370
3451
  });
3371
3452
 
3372
3453
  // src/index.ts
3373
- var preset = (0, import_dev44.definePreset)({
3454
+ var preset = (0, import_dev45.definePreset)({
3374
3455
  theme: {
3375
3456
  extend: {
3376
3457
  breakpoints,
package/dist/index.mjs CHANGED
@@ -22,6 +22,7 @@ var conditions = {
22
22
  collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
23
23
  loading: "& > [data-loading=true], &:is([data-loading], [aria-busy=true])",
24
24
  hasIcon: "&[data-has-icon=true]",
25
+ hasLabel: "&[data-has-label=true]",
25
26
  active: "&[data-active=true], [data-active]",
26
27
  highlight: "&[data-highlight=true], [data-highlight]",
27
28
  hasBorder: "&[data-has-border=true]",
@@ -370,6 +371,7 @@ var buttonRecipe = defineRecipe({
370
371
  alignItems: "center",
371
372
  gap: "2",
372
373
  height: "fit-content",
374
+ width: "fit-content",
373
375
  borderWidth: "1px",
374
376
  whiteSpace: "nowrap",
375
377
  userSelect: "none",
@@ -485,8 +487,6 @@ var buttonRecipe = defineRecipe({
485
487
  },
486
488
  size: {
487
489
  sm: {
488
- paddingX: "2",
489
- paddingY: "1",
490
490
  borderRadius: "sm",
491
491
  textStyle: "label.md",
492
492
  fontWeight: "regular",
@@ -494,12 +494,15 @@ var buttonRecipe = defineRecipe({
494
494
  borderRadius: "sm"
495
495
  },
496
496
  _hasIcon: {
497
- padding: "1 !important"
497
+ paddingX: "1",
498
+ paddingY: "1 !important"
499
+ },
500
+ _hasLabel: {
501
+ paddingX: "2 !important",
502
+ paddingY: "1"
498
503
  }
499
504
  },
500
505
  md: {
501
- paddingX: "4",
502
- paddingY: "2",
503
506
  borderRadius: "md",
504
507
  textStyle: "label.md",
505
508
  fontWeight: "semiBold",
@@ -507,7 +510,12 @@ var buttonRecipe = defineRecipe({
507
510
  borderRadius: "md"
508
511
  },
509
512
  _hasIcon: {
510
- padding: "2 !important"
513
+ paddingX: "1.5",
514
+ paddingY: "1.5 !important"
515
+ },
516
+ _hasLabel: {
517
+ paddingX: "4 !important",
518
+ paddingY: "2"
511
519
  }
512
520
  }
513
521
  }
@@ -516,8 +524,6 @@ var buttonRecipe = defineRecipe({
516
524
  {
517
525
  variant: ["textLink"],
518
526
  css: {
519
- paddingX: "0",
520
- paddingY: "0",
521
527
  borderRadius: "sm",
522
528
  _focusVisible: {
523
529
  borderColor: "white",
@@ -2768,9 +2774,80 @@ var toastSlotRecipe = defineSlotRecipe17({
2768
2774
  }
2769
2775
  });
2770
2776
 
2777
+ // src/recipes/broadcast.ts
2778
+ import { defineSlotRecipe as defineSlotRecipe18 } from "@pandacss/dev";
2779
+ var broadcastSlotRecipe = defineSlotRecipe18({
2780
+ className: "broadcast",
2781
+ jsx: ["MpBroadcast", "mp-broadcast"],
2782
+ slots: ["root", "container", "wrapper", "icon", "content", "textLink", "action", "close"],
2783
+ base: {
2784
+ root: {
2785
+ width: "full",
2786
+ position: "relative"
2787
+ },
2788
+ container: {
2789
+ display: "flex",
2790
+ flexDirection: "row",
2791
+ alignItems: "center",
2792
+ justifyContent: "space-between",
2793
+ paddingY: "2",
2794
+ paddingX: "6"
2795
+ },
2796
+ wrapper: {
2797
+ display: "flex",
2798
+ flexDirection: "row",
2799
+ alignItems: "center",
2800
+ width: "var(--mp-broadcast--width)"
2801
+ },
2802
+ icon: {
2803
+ marginRight: "3"
2804
+ },
2805
+ textLink: {
2806
+ flex: "none",
2807
+ textDecoration: "underline",
2808
+ marginLeft: "3"
2809
+ },
2810
+ close: {
2811
+ color: "white!",
2812
+ backgroundColor: "transparent!",
2813
+ borderColor: "transparent!",
2814
+ marginLeft: "3",
2815
+ _hover: {
2816
+ color: "white!"
2817
+ }
2818
+ }
2819
+ },
2820
+ variants: {
2821
+ variant: {
2822
+ announcement: {
2823
+ container: { backgroundColor: "stone.400" },
2824
+ icon: { color: "white" },
2825
+ content: { color: "white" },
2826
+ textLink: { color: "white" }
2827
+ },
2828
+ information: {
2829
+ container: { backgroundColor: "violet.400" },
2830
+ icon: { color: "white" },
2831
+ content: { color: "white" },
2832
+ textLink: { color: "white" }
2833
+ },
2834
+ important: {
2835
+ container: { backgroundColor: "amber.100" },
2836
+ icon: { color: "dark" },
2837
+ content: { color: "dark" },
2838
+ textLink: { color: "dark" }
2839
+ }
2840
+ }
2841
+ },
2842
+ compoundVariants: [],
2843
+ defaultVariants: {
2844
+ variant: "announcement"
2845
+ }
2846
+ });
2847
+
2771
2848
  // src/recipes/banner.ts
2772
- import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe18 } from "@pandacss/dev";
2773
- var bannerSlotRecipe = defineSlotRecipe18({
2849
+ import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe19 } from "@pandacss/dev";
2850
+ var bannerSlotRecipe = defineSlotRecipe19({
2774
2851
  className: "banner",
2775
2852
  jsx: ["MpBanner", "mp-banner"],
2776
2853
  slots: ["root", "body"],
@@ -2843,7 +2920,7 @@ var bannerDescriptionRecipe = defineRecipe12({
2843
2920
  compoundVariants: [],
2844
2921
  defaultVariants: {}
2845
2922
  });
2846
- var bannerIconSlotRecipe = defineSlotRecipe18({
2923
+ var bannerIconSlotRecipe = defineSlotRecipe19({
2847
2924
  className: "banner-icon",
2848
2925
  jsx: ["MpBannerIcon", "mp-banner-icon"],
2849
2926
  slots: ["root", "custom"],
@@ -2945,7 +3022,8 @@ var slotRecipes = {
2945
3022
  bannerSlotRecipe,
2946
3023
  bannerIconSlotRecipe,
2947
3024
  segmentedControlSlotRecipe,
2948
- toastSlotRecipe
3025
+ toastSlotRecipe,
3026
+ broadcastSlotRecipe
2949
3027
  };
2950
3028
 
2951
3029
  // src/text-styles.ts
@@ -3226,6 +3304,7 @@ var sizes = defineTokens7.sizes({
3226
3304
  0.25: { value: "0.0625rem", description: "1px" },
3227
3305
  0.5: { value: "0.125rem", description: "2px" },
3228
3306
  1: { value: "0.25rem", description: "4px" },
3307
+ 1.5: { value: "0.375rem", description: "6px" },
3229
3308
  2: { value: "0.5rem", description: "8px" },
3230
3309
  2.5: { value: "0.625rem", description: "10px" },
3231
3310
  3: { value: "0.75rem", description: "12px" },
@@ -3253,10 +3332,12 @@ var sizes = defineTokens7.sizes({
3253
3332
  import { defineTokens as defineTokens8 } from "@pandacss/dev";
3254
3333
  var spacing = defineTokens8.spacing({
3255
3334
  0: { value: "0", description: "0px" },
3335
+ 0.25: { value: "0.0625rem", description: "1px" },
3256
3336
  0.5: { value: "0.125rem", description: "2px" },
3257
3337
  1: { value: "0.25rem", description: "4px" },
3258
3338
  1.5: { value: "0.375rem", description: "6px" },
3259
3339
  2: { value: "0.5rem", description: "8px" },
3340
+ 2.5: { value: "0.625rem", description: "10px" },
3260
3341
  3: { value: "0.75rem", description: "12px" },
3261
3342
  4: { value: "1rem", description: "16px" },
3262
3343
  5: { value: "1.3rem", description: "20px" },
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const broadcastSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { broadcastSlotRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const broadcastSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+
5
+ export { broadcastSlotRecipe };
@@ -47,6 +47,7 @@ declare const slotRecipes: {
47
47
  bannerIconSlotRecipe: _pandacss_types.SlotRecipeConfig;
48
48
  segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
49
49
  toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
+ broadcastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
51
  };
51
52
 
52
53
  export { recipes, slotRecipes };
@@ -47,6 +47,7 @@ declare const slotRecipes: {
47
47
  bannerIconSlotRecipe: _pandacss_types.SlotRecipeConfig;
48
48
  segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
49
49
  toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
+ broadcastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
51
  };
51
52
 
52
53
  export { recipes, slotRecipes };
@@ -534,6 +534,10 @@ declare const tokens: {
534
534
  value: string;
535
535
  description: string;
536
536
  };
537
+ 1.5: {
538
+ value: string;
539
+ description: string;
540
+ };
537
541
  2: {
538
542
  value: string;
539
543
  description: string;
@@ -622,6 +626,10 @@ declare const tokens: {
622
626
  value: string;
623
627
  description: string;
624
628
  };
629
+ 0.25: {
630
+ value: string;
631
+ description: string;
632
+ };
625
633
  0.5: {
626
634
  value: string;
627
635
  description: string;
@@ -638,6 +646,10 @@ declare const tokens: {
638
646
  value: string;
639
647
  description: string;
640
648
  };
649
+ 2.5: {
650
+ value: string;
651
+ description: string;
652
+ };
641
653
  3: {
642
654
  value: string;
643
655
  description: string;
@@ -534,6 +534,10 @@ declare const tokens: {
534
534
  value: string;
535
535
  description: string;
536
536
  };
537
+ 1.5: {
538
+ value: string;
539
+ description: string;
540
+ };
537
541
  2: {
538
542
  value: string;
539
543
  description: string;
@@ -622,6 +626,10 @@ declare const tokens: {
622
626
  value: string;
623
627
  description: string;
624
628
  };
629
+ 0.25: {
630
+ value: string;
631
+ description: string;
632
+ };
625
633
  0.5: {
626
634
  value: string;
627
635
  description: string;
@@ -638,6 +646,10 @@ declare const tokens: {
638
646
  value: string;
639
647
  description: string;
640
648
  };
649
+ 2.5: {
650
+ value: string;
651
+ description: string;
652
+ };
641
653
  3: {
642
654
  value: string;
643
655
  description: string;
@@ -15,6 +15,10 @@ declare const sizes: {
15
15
  value: string;
16
16
  description: string;
17
17
  };
18
+ 1.5: {
19
+ value: string;
20
+ description: string;
21
+ };
18
22
  2: {
19
23
  value: string;
20
24
  description: string;
@@ -15,6 +15,10 @@ declare const sizes: {
15
15
  value: string;
16
16
  description: string;
17
17
  };
18
+ 1.5: {
19
+ value: string;
20
+ description: string;
21
+ };
18
22
  2: {
19
23
  value: string;
20
24
  description: string;
@@ -3,6 +3,10 @@ declare const spacing: {
3
3
  value: string;
4
4
  description: string;
5
5
  };
6
+ 0.25: {
7
+ value: string;
8
+ description: string;
9
+ };
6
10
  0.5: {
7
11
  value: string;
8
12
  description: string;
@@ -19,6 +23,10 @@ declare const spacing: {
19
23
  value: string;
20
24
  description: string;
21
25
  };
26
+ 2.5: {
27
+ value: string;
28
+ description: string;
29
+ };
22
30
  3: {
23
31
  value: string;
24
32
  description: string;
@@ -3,6 +3,10 @@ declare const spacing: {
3
3
  value: string;
4
4
  description: string;
5
5
  };
6
+ 0.25: {
7
+ value: string;
8
+ description: string;
9
+ };
6
10
  0.5: {
7
11
  value: string;
8
12
  description: string;
@@ -19,6 +23,10 @@ declare const spacing: {
19
23
  value: string;
20
24
  description: string;
21
25
  };
26
+ 2.5: {
27
+ value: string;
28
+ description: string;
29
+ };
22
30
  3: {
23
31
  value: string;
24
32
  description: string;
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.5",
4
+ "version": "0.0.6-dev.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
package/src/conditions.ts CHANGED
@@ -11,6 +11,7 @@ export const conditions = {
11
11
  collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
12
12
  loading: '& > [data-loading=true], &:is([data-loading], [aria-busy=true])',
13
13
  hasIcon: '&[data-has-icon=true]',
14
+ hasLabel: '&[data-has-label=true]',
14
15
  active: '&[data-active=true], [data-active]',
15
16
  highlight: '&[data-highlight=true], [data-highlight]',
16
17
  hasBorder: '&[data-has-border=true]',
@@ -0,0 +1,72 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const broadcastSlotRecipe = defineSlotRecipe({
4
+ className: 'broadcast',
5
+ jsx: ['MpBroadcast', 'mp-broadcast'],
6
+ slots: ['root', 'container', 'wrapper', 'icon', 'content', 'textLink', 'action', 'close'],
7
+ base: {
8
+ root: {
9
+ width: 'full',
10
+ position: 'relative'
11
+ },
12
+ container: {
13
+ display: 'flex',
14
+ flexDirection: 'row',
15
+ alignItems: 'center',
16
+ justifyContent: 'space-between',
17
+ paddingY: '2',
18
+ paddingX: '6'
19
+ },
20
+ wrapper: {
21
+ display: 'flex',
22
+ flexDirection: 'row',
23
+ alignItems: 'center',
24
+ width: 'var(--mp-broadcast--width)'
25
+ },
26
+ icon: {
27
+ marginRight: '3'
28
+ },
29
+ textLink: {
30
+ flex: 'none',
31
+ textDecoration: 'underline',
32
+ marginLeft: '3'
33
+ },
34
+ close: {
35
+ color: 'white!',
36
+ backgroundColor: 'transparent!',
37
+ borderColor: 'transparent!',
38
+ marginLeft: '3',
39
+ _hover: {
40
+ color: 'white!'
41
+ }
42
+ }
43
+ },
44
+ variants: {
45
+ variant: {
46
+ announcement: {
47
+ container: { backgroundColor: 'stone.400' },
48
+ icon: { color: 'white' },
49
+ content: { color: 'white' },
50
+ textLink: { color: 'white' }
51
+ },
52
+ information: {
53
+ container: { backgroundColor: 'violet.400' },
54
+ icon: { color: 'white' },
55
+ content: { color: 'white' },
56
+ textLink: { color: 'white' }
57
+ },
58
+ important: {
59
+ container: { backgroundColor: 'amber.100' },
60
+ icon: { color: 'dark' },
61
+ content: { color: 'dark' },
62
+ textLink: { color: 'dark' }
63
+ }
64
+ },
65
+ },
66
+ compoundVariants: [],
67
+ defaultVariants: {
68
+ variant: 'announcement'
69
+ }
70
+ })
71
+
72
+ export { broadcastSlotRecipe }
@@ -10,6 +10,7 @@ const buttonRecipe = defineRecipe({
10
10
  alignItems: 'center',
11
11
  gap: '2',
12
12
  height: 'fit-content',
13
+ width: 'fit-content',
13
14
  borderWidth: '1px',
14
15
  whiteSpace: 'nowrap',
15
16
  userSelect: 'none',
@@ -125,8 +126,6 @@ const buttonRecipe = defineRecipe({
125
126
  },
126
127
  size: {
127
128
  sm: {
128
- paddingX: '2',
129
- paddingY: '1',
130
129
  borderRadius: 'sm',
131
130
  textStyle: 'label.md',
132
131
  fontWeight: 'regular',
@@ -134,12 +133,15 @@ const buttonRecipe = defineRecipe({
134
133
  borderRadius: 'sm'
135
134
  },
136
135
  _hasIcon: {
137
- padding: '1 !important'
136
+ paddingX: '1',
137
+ paddingY: '1 !important'
138
+ },
139
+ _hasLabel: {
140
+ paddingX: '2 !important',
141
+ paddingY: '1',
138
142
  }
139
143
  },
140
144
  md: {
141
- paddingX: '4',
142
- paddingY: '2',
143
145
  borderRadius: 'md',
144
146
  textStyle: 'label.md',
145
147
  fontWeight: 'semiBold',
@@ -147,7 +149,12 @@ const buttonRecipe = defineRecipe({
147
149
  borderRadius: 'md'
148
150
  },
149
151
  _hasIcon: {
150
- padding: '2 !important'
152
+ paddingX: '1.5',
153
+ paddingY: '1.5 !important'
154
+ },
155
+ _hasLabel: {
156
+ paddingX: '4 !important',
157
+ paddingY: '2',
151
158
  }
152
159
  }
153
160
  }
@@ -156,8 +163,6 @@ const buttonRecipe = defineRecipe({
156
163
  {
157
164
  variant: ['textLink'],
158
165
  css: {
159
- paddingX: '0',
160
- paddingY: '0',
161
166
  borderRadius: 'sm',
162
167
  _focusVisible: {
163
168
  borderColor: 'white',
@@ -26,6 +26,7 @@ import { uploadSlotRecipe, uploadListSlotRecipe } from './upload'
26
26
  import { dropzoneSlotRecipe } from './dropzone'
27
27
  import { segmentedControlSlotRecipe } from './segmented-control'
28
28
  import { toastSlotRecipe } from './toast'
29
+ import { broadcastSlotRecipe } from './broadcast'
29
30
 
30
31
  import {
31
32
  bannerSlotRecipe,
@@ -83,5 +84,6 @@ export const slotRecipes = {
83
84
  bannerSlotRecipe,
84
85
  bannerIconSlotRecipe,
85
86
  segmentedControlSlotRecipe,
86
- toastSlotRecipe
87
+ toastSlotRecipe,
88
+ broadcastSlotRecipe
87
89
  }
@@ -5,6 +5,7 @@ export const sizes = defineTokens.sizes({
5
5
  0.25: { value: '0.0625rem', description: '1px' },
6
6
  0.5: { value: '0.125rem', description: '2px' },
7
7
  1: { value: '0.25rem', description: '4px' },
8
+ 1.5: { value: '0.375rem', description: '6px' },
8
9
  2: { value: '0.5rem', description: '8px' },
9
10
  2.5: { value: '0.625rem', description: '10px' },
10
11
  3: { value: '0.75rem', description: '12px' },
@@ -2,10 +2,12 @@ import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const spacing = defineTokens.spacing({
4
4
  0: { value: '0', description: '0px' },
5
+ 0.25: { value: '0.0625rem', description: '1px' },
5
6
  0.5: { value: '0.125rem', description: '2px' },
6
7
  1: { value: '0.25rem', description: '4px' },
7
8
  1.5: { value: '0.375rem', description: '6px' },
8
9
  2: { value: '0.5rem', description: '8px' },
10
+ 2.5: { value: '0.625rem', description: '10px' },
9
11
  3: { value: '0.75rem', description: '12px' },
10
12
  4: { value: '1rem', description: '16px' },
11
13
  5: { value: '1.3rem', description: '20px' },