@mekari/pixel3-theme 0.0.7 → 0.0.8

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 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_dev45 = require("@pandacss/dev");
28
+ var import_dev46 = require("@pandacss/dev");
29
29
 
30
30
  // src/breakpoints.ts
31
31
  var breakpoints = {
@@ -2869,9 +2869,135 @@ var broadcastSlotRecipe = (0, import_dev31.defineSlotRecipe)({
2869
2869
  }
2870
2870
  });
2871
2871
 
2872
- // src/recipes/banner.ts
2872
+ // src/recipes/rich-text-editor.ts
2873
2873
  var import_dev32 = require("@pandacss/dev");
2874
- var bannerSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2874
+ var richTextEditorSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2875
+ className: "rich-text-editor",
2876
+ jsx: ["MpRichTextEditor", "mp-rich-text-editor"],
2877
+ slots: ["root", "toolbar", "area"],
2878
+ base: {
2879
+ root: {
2880
+ backgroundColor: "var(--mp-rich-text-editor--background-color)",
2881
+ transition: "all 250ms",
2882
+ _hover: {
2883
+ borderColor: "var(--mp-rich-text-editor--border-color-hover)"
2884
+ },
2885
+ _hasBorder: {
2886
+ border: "1px solid",
2887
+ borderRadius: "md",
2888
+ borderColor: "var(--mp-rich-text-editor--border-color)",
2889
+ boxShadow: "var(--mp-rich-text-editor--box-shadow)",
2890
+ padding: "1"
2891
+ }
2892
+ },
2893
+ toolbar: {
2894
+ display: "flex",
2895
+ gap: "1",
2896
+ border: "1px solid",
2897
+ borderColor: "gray.100",
2898
+ borderRadius: "md",
2899
+ backgroundColor: "background",
2900
+ paddingY: "1",
2901
+ paddingX: "3",
2902
+ marginBottom: "1",
2903
+ "& button": {
2904
+ display: "flex",
2905
+ justifyContent: "center",
2906
+ alignItems: "center",
2907
+ color: "gray.600",
2908
+ width: "28px",
2909
+ height: "28px",
2910
+ "&:hover": {
2911
+ borderRadius: "md",
2912
+ color: "blue.400",
2913
+ backgroundColor: "blue.50"
2914
+ },
2915
+ "&.is-active": {
2916
+ color: "blue.400"
2917
+ }
2918
+ },
2919
+ "& button.mp-popover-list-item": {
2920
+ padding: "0",
2921
+ "&:hover": {
2922
+ borderRadius: "0",
2923
+ color: "blue.400",
2924
+ backgroundColor: "transparent"
2925
+ },
2926
+ "& div": {
2927
+ justifyContent: "center!",
2928
+ alignItems: "center!"
2929
+ }
2930
+ },
2931
+ "& button.mp-popover-list-item.text-sizing, button.text-sizing ": {
2932
+ width: "auto",
2933
+ height: "auto",
2934
+ paddingX: "8px"
2935
+ }
2936
+ },
2937
+ area: {
2938
+ paddingLeft: "2",
2939
+ paddingY: "2",
2940
+ paddingRight: "3",
2941
+ "& div.ProseMirror-focused": {
2942
+ outline: "none"
2943
+ },
2944
+ "& div > p.is-editor-empty:first-child::before": {
2945
+ color: "gray.400",
2946
+ content: "attr(data-placeholder)",
2947
+ float: "left",
2948
+ height: "0",
2949
+ pointeEvents: "none"
2950
+ }
2951
+ }
2952
+ },
2953
+ variants: {},
2954
+ compoundVariants: [],
2955
+ defaultVariants: {}
2956
+ });
2957
+ var RTEStyleProviderRecipe = (0, import_dev32.defineRecipe)({
2958
+ className: "typography-style-provider",
2959
+ jsx: ["MpTypographyStyleProvider", "mp-typography-style-provider"],
2960
+ base: {
2961
+ "& h1": {
2962
+ textStyle: "h1"
2963
+ },
2964
+ "& h2": {
2965
+ textStyle: "h2"
2966
+ },
2967
+ "& h3": {
2968
+ textStyle: "h3"
2969
+ },
2970
+ "& p": {
2971
+ textStyle: "body.md"
2972
+ },
2973
+ "& em": {
2974
+ fontStyle: "italic"
2975
+ },
2976
+ "& b, strong": {
2977
+ fontWeight: "bolder"
2978
+ },
2979
+ "& ol, ul": {
2980
+ listStyle: "revert",
2981
+ paddingLeft: "1.5em"
2982
+ },
2983
+ "& ol li": {
2984
+ counterReset: "list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0",
2985
+ counterIncrement: "list-num 1"
2986
+ },
2987
+ "& blockquote": {
2988
+ borderLeft: "4px solid",
2989
+ borderColor: "dark",
2990
+ padding: "2"
2991
+ }
2992
+ },
2993
+ variants: {},
2994
+ compoundVariants: [],
2995
+ defaultVariants: {}
2996
+ });
2997
+
2998
+ // src/recipes/banner.ts
2999
+ var import_dev33 = require("@pandacss/dev");
3000
+ var bannerSlotRecipe = (0, import_dev33.defineSlotRecipe)({
2875
3001
  className: "banner",
2876
3002
  jsx: ["MpBanner", "mp-banner"],
2877
3003
  slots: ["root", "body"],
@@ -2912,7 +3038,7 @@ var bannerSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2912
3038
  variant: "info"
2913
3039
  }
2914
3040
  });
2915
- var bannerTitleRecipe = (0, import_dev32.defineRecipe)({
3041
+ var bannerTitleRecipe = (0, import_dev33.defineRecipe)({
2916
3042
  className: "banner-title",
2917
3043
  jsx: ["MpBannerTitle", "mp-banner-title"],
2918
3044
  base: {
@@ -2929,7 +3055,7 @@ var bannerTitleRecipe = (0, import_dev32.defineRecipe)({
2929
3055
  compoundVariants: [],
2930
3056
  defaultVariants: {}
2931
3057
  });
2932
- var bannerDescriptionRecipe = (0, import_dev32.defineRecipe)({
3058
+ var bannerDescriptionRecipe = (0, import_dev33.defineRecipe)({
2933
3059
  className: "banner-description",
2934
3060
  jsx: ["MpBannerDescription", "mp-banner-description"],
2935
3061
  base: {
@@ -2944,7 +3070,7 @@ var bannerDescriptionRecipe = (0, import_dev32.defineRecipe)({
2944
3070
  compoundVariants: [],
2945
3071
  defaultVariants: {}
2946
3072
  });
2947
- var bannerIconSlotRecipe = (0, import_dev32.defineSlotRecipe)({
3073
+ var bannerIconSlotRecipe = (0, import_dev33.defineSlotRecipe)({
2948
3074
  className: "banner-icon",
2949
3075
  jsx: ["MpBannerIcon", "mp-banner-icon"],
2950
3076
  slots: ["root", "custom"],
@@ -2967,7 +3093,7 @@ var bannerIconSlotRecipe = (0, import_dev32.defineSlotRecipe)({
2967
3093
  compoundVariants: [],
2968
3094
  defaultVariants: {}
2969
3095
  });
2970
- var bannerLinkRecipe = (0, import_dev32.defineRecipe)({
3096
+ var bannerLinkRecipe = (0, import_dev33.defineRecipe)({
2971
3097
  className: "banner-link",
2972
3098
  jsx: ["MpBannerLink", "mp-banner-link"],
2973
3099
  base: {
@@ -2980,7 +3106,7 @@ var bannerLinkRecipe = (0, import_dev32.defineRecipe)({
2980
3106
  compoundVariants: [],
2981
3107
  defaultVariants: {}
2982
3108
  });
2983
- var bannerCloseButtonRecipe = (0, import_dev32.defineRecipe)({
3109
+ var bannerCloseButtonRecipe = (0, import_dev33.defineRecipe)({
2984
3110
  className: "banner-close-button",
2985
3111
  jsx: ["MpBannerCloseButton", "mp-banner-close-button"],
2986
3112
  base: {
@@ -3021,7 +3147,8 @@ var recipes = {
3021
3147
  bannerTitleRecipe,
3022
3148
  bannerDescriptionRecipe,
3023
3149
  bannerLinkRecipe,
3024
- bannerCloseButtonRecipe
3150
+ bannerCloseButtonRecipe,
3151
+ RTEStyleProviderRecipe
3025
3152
  };
3026
3153
  var slotRecipes = {
3027
3154
  accordion,
@@ -3047,12 +3174,13 @@ var slotRecipes = {
3047
3174
  bannerIconSlotRecipe,
3048
3175
  segmentedControlSlotRecipe,
3049
3176
  toastSlotRecipe,
3050
- broadcastSlotRecipe
3177
+ broadcastSlotRecipe,
3178
+ richTextEditorSlotRecipe
3051
3179
  };
3052
3180
 
3053
3181
  // src/text-styles.ts
3054
- var import_dev33 = require("@pandacss/dev");
3055
- var textStyles = (0, import_dev33.defineTextStyles)({
3182
+ var import_dev34 = require("@pandacss/dev");
3183
+ var textStyles = (0, import_dev34.defineTextStyles)({
3056
3184
  overline: { value: { fontSize: "xs", lineHeight: "xs" } },
3057
3185
  body: {
3058
3186
  sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
@@ -3086,11 +3214,11 @@ var textStyles = (0, import_dev33.defineTextStyles)({
3086
3214
  });
3087
3215
 
3088
3216
  // src/tokens/index.ts
3089
- var import_dev44 = require("@pandacss/dev");
3217
+ var import_dev45 = require("@pandacss/dev");
3090
3218
 
3091
3219
  // src/tokens/borders.ts
3092
- var import_dev34 = require("@pandacss/dev");
3093
- var borders = import_dev34.defineTokens.borders({
3220
+ var import_dev35 = require("@pandacss/dev");
3221
+ var borders = import_dev35.defineTokens.borders({
3094
3222
  none: { value: "none" },
3095
3223
  sm: { value: "1px" },
3096
3224
  md: { value: "1.5px" },
@@ -3098,8 +3226,8 @@ var borders = import_dev34.defineTokens.borders({
3098
3226
  });
3099
3227
 
3100
3228
  // src/tokens/colors.ts
3101
- var import_dev35 = require("@pandacss/dev");
3102
- var colors = import_dev35.defineTokens.colors({
3229
+ var import_dev36 = require("@pandacss/dev");
3230
+ var colors = import_dev36.defineTokens.colors({
3103
3231
  currentcolor: {
3104
3232
  value: "currentcolor"
3105
3233
  },
@@ -3245,16 +3373,16 @@ var colors = import_dev35.defineTokens.colors({
3245
3373
  });
3246
3374
 
3247
3375
  // src/tokens/durations.ts
3248
- var import_dev36 = require("@pandacss/dev");
3249
- var durations = import_dev36.defineTokens.durations({
3376
+ var import_dev37 = require("@pandacss/dev");
3377
+ var durations = import_dev37.defineTokens.durations({
3250
3378
  slow: { value: "100ms" },
3251
3379
  normal: { value: "250ms" },
3252
3380
  fast: { value: "300ms" }
3253
3381
  });
3254
3382
 
3255
3383
  // src/tokens/opacity.ts
3256
- var import_dev37 = require("@pandacss/dev");
3257
- var opacity = import_dev37.defineTokens.opacity({
3384
+ var import_dev38 = require("@pandacss/dev");
3385
+ var opacity = import_dev38.defineTokens.opacity({
3258
3386
  0: { value: 0 },
3259
3387
  40: { value: 0.4 },
3260
3388
  60: { value: 0.6 },
@@ -3262,8 +3390,8 @@ var opacity = import_dev37.defineTokens.opacity({
3262
3390
  });
3263
3391
 
3264
3392
  // src/tokens/radii.ts
3265
- var import_dev38 = require("@pandacss/dev");
3266
- var radii = import_dev38.defineTokens.radii({
3393
+ var import_dev39 = require("@pandacss/dev");
3394
+ var radii = import_dev39.defineTokens.radii({
3267
3395
  none: { value: "0" },
3268
3396
  xs: { value: "0.125rem" },
3269
3397
  sm: { value: "0.25rem" },
@@ -3274,8 +3402,8 @@ var radii = import_dev38.defineTokens.radii({
3274
3402
  });
3275
3403
 
3276
3404
  // src/tokens/shadows.ts
3277
- var import_dev39 = require("@pandacss/dev");
3278
- var shadows = import_dev39.defineTokens.shadows({
3405
+ var import_dev40 = require("@pandacss/dev");
3406
+ var shadows = import_dev40.defineTokens.shadows({
3279
3407
  xs: {
3280
3408
  value: ["0px 0px 2px 0px rgba(0, 0, 0, 0.12)", "0px 2px 4px 0px rgba(0, 0, 0, 0.14)"]
3281
3409
  },
@@ -3315,8 +3443,8 @@ var shadows = import_dev39.defineTokens.shadows({
3315
3443
  });
3316
3444
 
3317
3445
  // src/tokens/sizes.ts
3318
- var import_dev40 = require("@pandacss/dev");
3319
- var sizes = import_dev40.defineTokens.sizes({
3446
+ var import_dev41 = require("@pandacss/dev");
3447
+ var sizes = import_dev41.defineTokens.sizes({
3320
3448
  0: { value: "0" },
3321
3449
  0.25: { value: "0.0625rem" },
3322
3450
  0.5: { value: "0.125rem" },
@@ -3345,8 +3473,8 @@ var sizes = import_dev40.defineTokens.sizes({
3345
3473
  });
3346
3474
 
3347
3475
  // src/tokens/spacing.ts
3348
- var import_dev41 = require("@pandacss/dev");
3349
- var spacing = import_dev41.defineTokens.spacing({
3476
+ var import_dev42 = require("@pandacss/dev");
3477
+ var spacing = import_dev42.defineTokens.spacing({
3350
3478
  0: { value: "0" },
3351
3479
  0.5: { value: "0.125rem" },
3352
3480
  1: { value: "0.25rem" },
@@ -3367,8 +3495,8 @@ var spacing = import_dev41.defineTokens.spacing({
3367
3495
  });
3368
3496
 
3369
3497
  // src/tokens/z-index.ts
3370
- var import_dev42 = require("@pandacss/dev");
3371
- var zIndex = import_dev42.defineTokens.zIndex({
3498
+ var import_dev43 = require("@pandacss/dev");
3499
+ var zIndex = import_dev43.defineTokens.zIndex({
3372
3500
  hide: { value: -1 },
3373
3501
  base: { value: 0 },
3374
3502
  docked: { value: 10 },
@@ -3380,8 +3508,8 @@ var zIndex = import_dev42.defineTokens.zIndex({
3380
3508
  });
3381
3509
 
3382
3510
  // src/tokens/typography.ts
3383
- var import_dev43 = require("@pandacss/dev");
3384
- var fonts = import_dev43.defineTokens.fonts({
3511
+ var import_dev44 = require("@pandacss/dev");
3512
+ var fonts = import_dev44.defineTokens.fonts({
3385
3513
  body: {
3386
3514
  value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
3387
3515
  },
@@ -3389,7 +3517,7 @@ var fonts = import_dev43.defineTokens.fonts({
3389
3517
  value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
3390
3518
  }
3391
3519
  });
3392
- var fontSizes = import_dev43.defineTokens.fontSizes({
3520
+ var fontSizes = import_dev44.defineTokens.fontSizes({
3393
3521
  xs: { value: "0.625rem" },
3394
3522
  sm: { value: "0.75rem" },
3395
3523
  md: { value: "0.875rem" },
@@ -3397,12 +3525,12 @@ var fontSizes = import_dev43.defineTokens.fontSizes({
3397
3525
  xl: { value: "1.25rem" },
3398
3526
  "2xl": { value: "1.5rem" }
3399
3527
  });
3400
- var fontWeights = import_dev43.defineTokens.fontWeights({
3528
+ var fontWeights = import_dev44.defineTokens.fontWeights({
3401
3529
  regular: { value: "400" },
3402
3530
  semiBold: { value: "600" },
3403
3531
  bold: { value: "800" }
3404
3532
  });
3405
- var lineHeights = import_dev43.defineTokens.lineHeights({
3533
+ var lineHeights = import_dev44.defineTokens.lineHeights({
3406
3534
  xs: { value: 1.2 },
3407
3535
  sm: { value: 1.34 },
3408
3536
  md: { value: 1.4 },
@@ -3411,7 +3539,7 @@ var lineHeights = import_dev43.defineTokens.lineHeights({
3411
3539
  "2xl": { value: 1.67 },
3412
3540
  "3xl": { value: 1.71 }
3413
3541
  });
3414
- var letterSpacings = import_dev43.defineTokens.letterSpacings({
3542
+ var letterSpacings = import_dev44.defineTokens.letterSpacings({
3415
3543
  tighter: { value: "-0.05em" },
3416
3544
  tight: { value: "-0.025em" },
3417
3545
  normal: { value: "0" },
@@ -3421,7 +3549,7 @@ var letterSpacings = import_dev43.defineTokens.letterSpacings({
3421
3549
  });
3422
3550
 
3423
3551
  // src/tokens/index.ts
3424
- var tokens = (0, import_dev44.defineTokens)({
3552
+ var tokens = (0, import_dev45.defineTokens)({
3425
3553
  borders,
3426
3554
  colors,
3427
3555
  durations,
@@ -3439,7 +3567,7 @@ var tokens = (0, import_dev44.defineTokens)({
3439
3567
  });
3440
3568
 
3441
3569
  // src/index.ts
3442
- var preset = (0, import_dev45.definePreset)({
3570
+ var preset = (0, import_dev46.definePreset)({
3443
3571
  theme: {
3444
3572
  extend: {
3445
3573
  breakpoints,
package/dist/index.mjs CHANGED
@@ -2843,9 +2843,135 @@ var broadcastSlotRecipe = defineSlotRecipe18({
2843
2843
  }
2844
2844
  });
2845
2845
 
2846
- // src/recipes/banner.ts
2846
+ // src/recipes/rich-text-editor.ts
2847
2847
  import { defineRecipe as defineRecipe12, defineSlotRecipe as defineSlotRecipe19 } from "@pandacss/dev";
2848
- var bannerSlotRecipe = defineSlotRecipe19({
2848
+ var richTextEditorSlotRecipe = defineSlotRecipe19({
2849
+ className: "rich-text-editor",
2850
+ jsx: ["MpRichTextEditor", "mp-rich-text-editor"],
2851
+ slots: ["root", "toolbar", "area"],
2852
+ base: {
2853
+ root: {
2854
+ backgroundColor: "var(--mp-rich-text-editor--background-color)",
2855
+ transition: "all 250ms",
2856
+ _hover: {
2857
+ borderColor: "var(--mp-rich-text-editor--border-color-hover)"
2858
+ },
2859
+ _hasBorder: {
2860
+ border: "1px solid",
2861
+ borderRadius: "md",
2862
+ borderColor: "var(--mp-rich-text-editor--border-color)",
2863
+ boxShadow: "var(--mp-rich-text-editor--box-shadow)",
2864
+ padding: "1"
2865
+ }
2866
+ },
2867
+ toolbar: {
2868
+ display: "flex",
2869
+ gap: "1",
2870
+ border: "1px solid",
2871
+ borderColor: "gray.100",
2872
+ borderRadius: "md",
2873
+ backgroundColor: "background",
2874
+ paddingY: "1",
2875
+ paddingX: "3",
2876
+ marginBottom: "1",
2877
+ "& button": {
2878
+ display: "flex",
2879
+ justifyContent: "center",
2880
+ alignItems: "center",
2881
+ color: "gray.600",
2882
+ width: "28px",
2883
+ height: "28px",
2884
+ "&:hover": {
2885
+ borderRadius: "md",
2886
+ color: "blue.400",
2887
+ backgroundColor: "blue.50"
2888
+ },
2889
+ "&.is-active": {
2890
+ color: "blue.400"
2891
+ }
2892
+ },
2893
+ "& button.mp-popover-list-item": {
2894
+ padding: "0",
2895
+ "&:hover": {
2896
+ borderRadius: "0",
2897
+ color: "blue.400",
2898
+ backgroundColor: "transparent"
2899
+ },
2900
+ "& div": {
2901
+ justifyContent: "center!",
2902
+ alignItems: "center!"
2903
+ }
2904
+ },
2905
+ "& button.mp-popover-list-item.text-sizing, button.text-sizing ": {
2906
+ width: "auto",
2907
+ height: "auto",
2908
+ paddingX: "8px"
2909
+ }
2910
+ },
2911
+ area: {
2912
+ paddingLeft: "2",
2913
+ paddingY: "2",
2914
+ paddingRight: "3",
2915
+ "& div.ProseMirror-focused": {
2916
+ outline: "none"
2917
+ },
2918
+ "& div > p.is-editor-empty:first-child::before": {
2919
+ color: "gray.400",
2920
+ content: "attr(data-placeholder)",
2921
+ float: "left",
2922
+ height: "0",
2923
+ pointeEvents: "none"
2924
+ }
2925
+ }
2926
+ },
2927
+ variants: {},
2928
+ compoundVariants: [],
2929
+ defaultVariants: {}
2930
+ });
2931
+ var RTEStyleProviderRecipe = defineRecipe12({
2932
+ className: "typography-style-provider",
2933
+ jsx: ["MpTypographyStyleProvider", "mp-typography-style-provider"],
2934
+ base: {
2935
+ "& h1": {
2936
+ textStyle: "h1"
2937
+ },
2938
+ "& h2": {
2939
+ textStyle: "h2"
2940
+ },
2941
+ "& h3": {
2942
+ textStyle: "h3"
2943
+ },
2944
+ "& p": {
2945
+ textStyle: "body.md"
2946
+ },
2947
+ "& em": {
2948
+ fontStyle: "italic"
2949
+ },
2950
+ "& b, strong": {
2951
+ fontWeight: "bolder"
2952
+ },
2953
+ "& ol, ul": {
2954
+ listStyle: "revert",
2955
+ paddingLeft: "1.5em"
2956
+ },
2957
+ "& ol li": {
2958
+ counterReset: "list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0",
2959
+ counterIncrement: "list-num 1"
2960
+ },
2961
+ "& blockquote": {
2962
+ borderLeft: "4px solid",
2963
+ borderColor: "dark",
2964
+ padding: "2"
2965
+ }
2966
+ },
2967
+ variants: {},
2968
+ compoundVariants: [],
2969
+ defaultVariants: {}
2970
+ });
2971
+
2972
+ // src/recipes/banner.ts
2973
+ import { defineRecipe as defineRecipe13, defineSlotRecipe as defineSlotRecipe20 } from "@pandacss/dev";
2974
+ var bannerSlotRecipe = defineSlotRecipe20({
2849
2975
  className: "banner",
2850
2976
  jsx: ["MpBanner", "mp-banner"],
2851
2977
  slots: ["root", "body"],
@@ -2886,7 +3012,7 @@ var bannerSlotRecipe = defineSlotRecipe19({
2886
3012
  variant: "info"
2887
3013
  }
2888
3014
  });
2889
- var bannerTitleRecipe = defineRecipe12({
3015
+ var bannerTitleRecipe = defineRecipe13({
2890
3016
  className: "banner-title",
2891
3017
  jsx: ["MpBannerTitle", "mp-banner-title"],
2892
3018
  base: {
@@ -2903,7 +3029,7 @@ var bannerTitleRecipe = defineRecipe12({
2903
3029
  compoundVariants: [],
2904
3030
  defaultVariants: {}
2905
3031
  });
2906
- var bannerDescriptionRecipe = defineRecipe12({
3032
+ var bannerDescriptionRecipe = defineRecipe13({
2907
3033
  className: "banner-description",
2908
3034
  jsx: ["MpBannerDescription", "mp-banner-description"],
2909
3035
  base: {
@@ -2918,7 +3044,7 @@ var bannerDescriptionRecipe = defineRecipe12({
2918
3044
  compoundVariants: [],
2919
3045
  defaultVariants: {}
2920
3046
  });
2921
- var bannerIconSlotRecipe = defineSlotRecipe19({
3047
+ var bannerIconSlotRecipe = defineSlotRecipe20({
2922
3048
  className: "banner-icon",
2923
3049
  jsx: ["MpBannerIcon", "mp-banner-icon"],
2924
3050
  slots: ["root", "custom"],
@@ -2941,7 +3067,7 @@ var bannerIconSlotRecipe = defineSlotRecipe19({
2941
3067
  compoundVariants: [],
2942
3068
  defaultVariants: {}
2943
3069
  });
2944
- var bannerLinkRecipe = defineRecipe12({
3070
+ var bannerLinkRecipe = defineRecipe13({
2945
3071
  className: "banner-link",
2946
3072
  jsx: ["MpBannerLink", "mp-banner-link"],
2947
3073
  base: {
@@ -2954,7 +3080,7 @@ var bannerLinkRecipe = defineRecipe12({
2954
3080
  compoundVariants: [],
2955
3081
  defaultVariants: {}
2956
3082
  });
2957
- var bannerCloseButtonRecipe = defineRecipe12({
3083
+ var bannerCloseButtonRecipe = defineRecipe13({
2958
3084
  className: "banner-close-button",
2959
3085
  jsx: ["MpBannerCloseButton", "mp-banner-close-button"],
2960
3086
  base: {
@@ -2995,7 +3121,8 @@ var recipes = {
2995
3121
  bannerTitleRecipe,
2996
3122
  bannerDescriptionRecipe,
2997
3123
  bannerLinkRecipe,
2998
- bannerCloseButtonRecipe
3124
+ bannerCloseButtonRecipe,
3125
+ RTEStyleProviderRecipe
2999
3126
  };
3000
3127
  var slotRecipes = {
3001
3128
  accordion,
@@ -3021,7 +3148,8 @@ var slotRecipes = {
3021
3148
  bannerIconSlotRecipe,
3022
3149
  segmentedControlSlotRecipe,
3023
3150
  toastSlotRecipe,
3024
- broadcastSlotRecipe
3151
+ broadcastSlotRecipe,
3152
+ richTextEditorSlotRecipe
3025
3153
  };
3026
3154
 
3027
3155
  // src/text-styles.ts
@@ -22,6 +22,7 @@ declare const recipes: {
22
22
  bannerDescriptionRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
23
23
  bannerLinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
24
24
  bannerCloseButtonRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
25
+ RTEStyleProviderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
25
26
  };
26
27
  declare const slotRecipes: {
27
28
  accordion: _pandacss_types.SlotRecipeConfig;
@@ -48,6 +49,7 @@ declare const slotRecipes: {
48
49
  segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
49
50
  toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
51
  broadcastSlotRecipe: _pandacss_types.SlotRecipeConfig;
52
+ richTextEditorSlotRecipe: _pandacss_types.SlotRecipeConfig;
51
53
  };
52
54
 
53
55
  export { recipes, slotRecipes };
@@ -22,6 +22,7 @@ declare const recipes: {
22
22
  bannerDescriptionRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
23
23
  bannerLinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
24
24
  bannerCloseButtonRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
25
+ RTEStyleProviderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
25
26
  };
26
27
  declare const slotRecipes: {
27
28
  accordion: _pandacss_types.SlotRecipeConfig;
@@ -48,6 +49,7 @@ declare const slotRecipes: {
48
49
  segmentedControlSlotRecipe: _pandacss_types.SlotRecipeConfig;
49
50
  toastSlotRecipe: _pandacss_types.SlotRecipeConfig;
50
51
  broadcastSlotRecipe: _pandacss_types.SlotRecipeConfig;
52
+ richTextEditorSlotRecipe: _pandacss_types.SlotRecipeConfig;
51
53
  };
52
54
 
53
55
  export { recipes, slotRecipes };
@@ -0,0 +1,6 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const richTextEditorSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+ declare const RTEStyleProviderRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
5
+
6
+ export { RTEStyleProviderRecipe, richTextEditorSlotRecipe };
@@ -0,0 +1,6 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const richTextEditorSlotRecipe: _pandacss_dev.SlotRecipeConfig;
4
+ declare const RTEStyleProviderRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
5
+
6
+ export { RTEStyleProviderRecipe, richTextEditorSlotRecipe };
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.7",
4
+ "version": "0.0.8",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -27,6 +27,7 @@ import { dropzoneSlotRecipe } from './dropzone'
27
27
  import { segmentedControlSlotRecipe } from './segmented-control'
28
28
  import { toastSlotRecipe } from './toast'
29
29
  import { broadcastSlotRecipe } from './broadcast'
30
+ import { richTextEditorSlotRecipe, RTEStyleProviderRecipe } from './rich-text-editor'
30
31
 
31
32
  import {
32
33
  bannerSlotRecipe,
@@ -58,7 +59,8 @@ export const recipes = {
58
59
  bannerTitleRecipe,
59
60
  bannerDescriptionRecipe,
60
61
  bannerLinkRecipe,
61
- bannerCloseButtonRecipe
62
+ bannerCloseButtonRecipe,
63
+ RTEStyleProviderRecipe
62
64
  }
63
65
 
64
66
  export const slotRecipes = {
@@ -85,5 +87,6 @@ export const slotRecipes = {
85
87
  bannerIconSlotRecipe,
86
88
  segmentedControlSlotRecipe,
87
89
  toastSlotRecipe,
88
- broadcastSlotRecipe
90
+ broadcastSlotRecipe,
91
+ richTextEditorSlotRecipe
89
92
  }
@@ -0,0 +1,129 @@
1
+ import { defineRecipe, defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const richTextEditorSlotRecipe = defineSlotRecipe({
4
+ className: 'rich-text-editor',
5
+ jsx: ['MpRichTextEditor', 'mp-rich-text-editor'],
6
+ slots: ['root', 'toolbar', 'area'],
7
+ base: {
8
+ root: {
9
+ backgroundColor: 'var(--mp-rich-text-editor--background-color)',
10
+ transition: 'all 250ms',
11
+ _hover: {
12
+ borderColor: 'var(--mp-rich-text-editor--border-color-hover)'
13
+ },
14
+ _hasBorder: {
15
+ border: '1px solid',
16
+ borderRadius: 'md',
17
+ borderColor: 'var(--mp-rich-text-editor--border-color)',
18
+ boxShadow: 'var(--mp-rich-text-editor--box-shadow)',
19
+ padding: '1'
20
+ }
21
+ },
22
+ toolbar: {
23
+ display: 'flex',
24
+ gap: '1',
25
+ border: '1px solid',
26
+ borderColor: 'gray.100',
27
+ borderRadius: 'md',
28
+ backgroundColor: 'background',
29
+ paddingY: '1',
30
+ paddingX: '3',
31
+ marginBottom: '1',
32
+ '& button': {
33
+ display: 'flex',
34
+ justifyContent: 'center',
35
+ alignItems: 'center',
36
+ color: 'gray.600',
37
+ width: '28px',
38
+ height: '28px',
39
+ '&:hover': {
40
+ borderRadius: 'md',
41
+ color: 'blue.400',
42
+ backgroundColor: 'blue.50'
43
+ },
44
+ '&.is-active': {
45
+ color: 'blue.400'
46
+ }
47
+ },
48
+ '& button.mp-popover-list-item': {
49
+ padding: '0',
50
+ '&:hover': {
51
+ borderRadius: '0',
52
+ color: 'blue.400',
53
+ backgroundColor: 'transparent'
54
+ },
55
+ '& div': {
56
+ justifyContent: 'center!',
57
+ alignItems: 'center!'
58
+ }
59
+ },
60
+ '& button.mp-popover-list-item.text-sizing, button.text-sizing ': {
61
+ width: 'auto',
62
+ height: 'auto',
63
+ paddingX: '8px'
64
+ }
65
+ },
66
+ area: {
67
+ paddingLeft: '2',
68
+ paddingY: '2',
69
+ paddingRight: '3',
70
+ '& div.ProseMirror-focused': {
71
+ outline: 'none'
72
+ },
73
+ '& div > p.is-editor-empty:first-child::before': {
74
+ color: 'gray.400',
75
+ content: 'attr(data-placeholder)',
76
+ float: 'left',
77
+ height: '0',
78
+ pointeEvents: 'none'
79
+ }
80
+ }
81
+ },
82
+ variants: {},
83
+ compoundVariants: [],
84
+ defaultVariants: {}
85
+ })
86
+
87
+ const RTEStyleProviderRecipe = defineRecipe({
88
+ className: 'typography-style-provider',
89
+ jsx: ['MpTypographyStyleProvider', 'mp-typography-style-provider'],
90
+ base: {
91
+ '& h1': {
92
+ textStyle: 'h1'
93
+ },
94
+ '& h2': {
95
+ textStyle: 'h2'
96
+ },
97
+ '& h3': {
98
+ textStyle: 'h3'
99
+ },
100
+ '& p': {
101
+ textStyle: 'body.md'
102
+ },
103
+ '& em': {
104
+ fontStyle: 'italic'
105
+ },
106
+ '& b, strong': {
107
+ fontWeight: 'bolder'
108
+ },
109
+ '& ol, ul': {
110
+ listStyle: 'revert',
111
+ paddingLeft: '1.5em'
112
+ },
113
+ '& ol li': {
114
+ counterReset:
115
+ 'list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0',
116
+ counterIncrement: 'list-num 1'
117
+ },
118
+ '& blockquote': {
119
+ borderLeft: '4px solid',
120
+ borderColor: 'dark',
121
+ padding: '2'
122
+ }
123
+ },
124
+ variants: {},
125
+ compoundVariants: [],
126
+ defaultVariants: {}
127
+ })
128
+
129
+ export { richTextEditorSlotRecipe, RTEStyleProviderRecipe }