@mekari/pixel3-styled-system 0.1.1 → 0.1.2-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/CHANGELOG.md +39 -0
- package/css/conditions.mjs +1 -1
- package/jsx/is-valid-prop.mjs +1 -1
- package/package.json +1 -1
- package/recipes/avatar-slot-recipe.mjs +4 -1
- package/recipes/badge-recipe.d.ts +4 -4
- package/recipes/badge-recipe.mjs +250 -42
- package/recipes/button-recipe.mjs +21 -4
- package/recipes/selected-border-recipe.mjs +80 -76
- package/recipes/tab-recipe.mjs +6 -0
- package/recipes/tab-selected-border-recipe.mjs +7 -1
- package/recipes/tag-slot-recipe.mjs +18 -2
- package/recipes/toast-slot-recipe.mjs +8 -2
- package/themes/index.d.ts +21 -0
- package/themes/index.mjs +24 -0
- package/themes/new.json +5 -0
- package/themes/next.json +5 -0
- package/tokens/index.mjs +1191 -211
- package/tokens/tokens.d.ts +6 -6
- package/types/conditions.d.ts +5 -1
- package/types/prop-type.d.ts +14 -13
- package/types/style-props.d.ts +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @mekari/pixel3-styled-system
|
|
2
2
|
|
|
3
|
+
## 0.1.2-dev.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ae2765b: - Update New Token Pixel 2.4 :
|
|
8
|
+
- `Accordion`
|
|
9
|
+
- `AutoColete`
|
|
10
|
+
- `Avatar`
|
|
11
|
+
- `Banner`
|
|
12
|
+
- `Broadcast`
|
|
13
|
+
- `Button`
|
|
14
|
+
- `Carousel`
|
|
15
|
+
- `Chart`
|
|
16
|
+
- `ColorPicker`
|
|
17
|
+
- `DatePicker`
|
|
18
|
+
- `Divider`
|
|
19
|
+
- `Dropzone`
|
|
20
|
+
- `FormControl`
|
|
21
|
+
- `InputTag`
|
|
22
|
+
- `Input`
|
|
23
|
+
- `Modal`
|
|
24
|
+
- `PopOver`
|
|
25
|
+
- `Progress`
|
|
26
|
+
- `Radio`
|
|
27
|
+
- `RichTextEditor`
|
|
28
|
+
- `SegmentedControl`
|
|
29
|
+
- `Select`
|
|
30
|
+
- `Slider`
|
|
31
|
+
- `Table`
|
|
32
|
+
- `Tabs`
|
|
33
|
+
- `Tag`
|
|
34
|
+
- `Texarea`
|
|
35
|
+
- `Timeline`
|
|
36
|
+
- `Toast`
|
|
37
|
+
- `Toggle`
|
|
38
|
+
- `ToolTip`
|
|
39
|
+
- `Upload`
|
|
40
|
+
- ae2765b: - Update `theme` global css with new token
|
|
41
|
+
|
|
3
42
|
## 0.1.1
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
package/css/conditions.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withoutSpace } from '../helpers.mjs';
|
|
2
2
|
|
|
3
|
-
const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_hidden,_collapsed,_hasIcon,_hasLabel,_highlight,_hasBorder,_hasBackground,_isFullWidth,_placementLeft,_placementRight,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,base"
|
|
3
|
+
const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_hidden,_collapsed,_hasIcon,_hasLabel,_highlight,_hasBorder,_hasBackground,_isFullWidth,_placementLeft,_placementRight,_nextTheme,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,_themeNext,base"
|
|
4
4
|
const conditions = new Set(conditionsStr.split(','))
|
|
5
5
|
|
|
6
6
|
export function isCondition(value){
|
package/jsx/is-valid-prop.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { memo } from '../helpers.mjs';
|
|
3
3
|
// src/index.ts
|
|
4
|
-
var userGeneratedStr = "css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_hidden,_collapsed,_hasIcon,_hasLabel,_highlight,_hasBorder,_hasBackground,_isFullWidth,_placementLeft,_placementRight,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,textStyle"
|
|
4
|
+
var userGeneratedStr = "css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_starting,_hidden,_collapsed,_hasIcon,_hasLabel,_highlight,_hasBorder,_hasBackground,_isFullWidth,_placementLeft,_placementRight,_nextTheme,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,_themeNext,textStyle"
|
|
5
5
|
var userGenerated = userGeneratedStr.split(",");
|
|
6
6
|
var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect";
|
|
7
7
|
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@ import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
|
4
4
|
|
|
5
5
|
interface BadgeRecipeVariant {
|
|
6
6
|
/**
|
|
7
|
-
* @default "
|
|
7
|
+
* @default "additionalInformation"
|
|
8
8
|
*/
|
|
9
|
-
variant: "solid" | "subtle"
|
|
9
|
+
variant: "solid" | "subtle" | "additionalInformation" | "tableStatus" | "indicator"
|
|
10
10
|
/**
|
|
11
|
-
* @default "
|
|
11
|
+
* @default "information"
|
|
12
12
|
*/
|
|
13
|
-
variantColor: "blue" | "green" | "orange" | "red" | "gray"
|
|
13
|
+
variantColor: "blue" | "green" | "orange" | "red" | "gray" | "announcement" | "information" | "warning" | "completed" | "critical"
|
|
14
14
|
/**
|
|
15
15
|
* @default "md"
|
|
16
16
|
*/
|
package/recipes/badge-recipe.mjs
CHANGED
|
@@ -2,125 +2,325 @@ import { memo, splitProps } from '../helpers.mjs';
|
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const badgeRecipeFn = /* @__PURE__ */ createRecipe('badge', {
|
|
5
|
-
"variant": "
|
|
5
|
+
"variant": "additionalInformation",
|
|
6
6
|
"size": "md",
|
|
7
|
-
"variantColor": "
|
|
7
|
+
"variantColor": "information"
|
|
8
8
|
}, [
|
|
9
9
|
{
|
|
10
|
-
"variant":
|
|
10
|
+
"variant": [
|
|
11
|
+
"solid",
|
|
12
|
+
"additionalInformation",
|
|
13
|
+
"tableStatus"
|
|
14
|
+
],
|
|
11
15
|
"size": "md",
|
|
12
16
|
"css": {
|
|
13
17
|
"paddingX": "1.5",
|
|
14
|
-
"paddingY": "0.5"
|
|
18
|
+
"paddingY": "0.5",
|
|
19
|
+
"minWidth": "5",
|
|
20
|
+
"height": "5"
|
|
15
21
|
}
|
|
16
22
|
},
|
|
17
23
|
{
|
|
18
|
-
"variant":
|
|
24
|
+
"variant": [
|
|
25
|
+
"solid",
|
|
26
|
+
"additionalInformation",
|
|
27
|
+
"tableStatus"
|
|
28
|
+
],
|
|
19
29
|
"size": "sm",
|
|
20
30
|
"css": {
|
|
21
31
|
"paddingX": "1",
|
|
22
|
-
"paddingY": "0.5"
|
|
32
|
+
"paddingY": "0.5",
|
|
33
|
+
"minWidth": "4",
|
|
34
|
+
"height": "4"
|
|
23
35
|
}
|
|
24
36
|
},
|
|
25
37
|
{
|
|
26
|
-
"variant":
|
|
38
|
+
"variant": [
|
|
39
|
+
"subtle",
|
|
40
|
+
"additionalInformation",
|
|
41
|
+
"tableStatus"
|
|
42
|
+
],
|
|
27
43
|
"size": "md",
|
|
28
44
|
"css": {
|
|
29
45
|
"paddingX": "2",
|
|
30
|
-
"paddingY": "0"
|
|
46
|
+
"paddingY": "0",
|
|
47
|
+
"minWidth": "5",
|
|
48
|
+
"height": "5"
|
|
31
49
|
}
|
|
32
50
|
},
|
|
33
51
|
{
|
|
34
|
-
"variant":
|
|
52
|
+
"variant": [
|
|
53
|
+
"subtle",
|
|
54
|
+
"additionalInformation",
|
|
55
|
+
"tableStatus"
|
|
56
|
+
],
|
|
35
57
|
"size": "sm",
|
|
36
58
|
"css": {
|
|
37
59
|
"paddingX": "1",
|
|
38
|
-
"paddingY": "0"
|
|
60
|
+
"paddingY": "0",
|
|
61
|
+
"minWidth": "4",
|
|
62
|
+
"height": "4"
|
|
39
63
|
}
|
|
40
64
|
},
|
|
41
65
|
{
|
|
42
|
-
"variant": "
|
|
43
|
-
"
|
|
66
|
+
"variant": "indicator",
|
|
67
|
+
"size": [
|
|
68
|
+
"sm",
|
|
69
|
+
"md"
|
|
70
|
+
],
|
|
44
71
|
"css": {
|
|
45
|
-
"
|
|
72
|
+
"width": "3",
|
|
73
|
+
"height": "3"
|
|
46
74
|
}
|
|
47
75
|
},
|
|
48
76
|
{
|
|
49
|
-
"variant":
|
|
50
|
-
|
|
77
|
+
"variant": [
|
|
78
|
+
"solid",
|
|
79
|
+
"additionalInformation"
|
|
80
|
+
],
|
|
81
|
+
"variantColor": [
|
|
82
|
+
"blue",
|
|
83
|
+
"information"
|
|
84
|
+
],
|
|
51
85
|
"css": {
|
|
52
|
-
"backgroundColor": "
|
|
86
|
+
"backgroundColor": "sky.400",
|
|
87
|
+
"color": "white",
|
|
88
|
+
"_nextTheme": {
|
|
89
|
+
"backgroundColor": "background.brand.bold",
|
|
90
|
+
"color": "text.inverse"
|
|
91
|
+
}
|
|
53
92
|
}
|
|
54
93
|
},
|
|
55
94
|
{
|
|
56
|
-
"variant":
|
|
57
|
-
|
|
95
|
+
"variant": [
|
|
96
|
+
"solid",
|
|
97
|
+
"additionalInformation"
|
|
98
|
+
],
|
|
99
|
+
"variantColor": [
|
|
100
|
+
"green",
|
|
101
|
+
"completed"
|
|
102
|
+
],
|
|
58
103
|
"css": {
|
|
59
|
-
"backgroundColor": "
|
|
104
|
+
"backgroundColor": "teal.400",
|
|
105
|
+
"color": "white",
|
|
106
|
+
"_nextTheme": {
|
|
107
|
+
"backgroundColor": "background.success.bold",
|
|
108
|
+
"color": "text.inverse"
|
|
109
|
+
}
|
|
60
110
|
}
|
|
61
111
|
},
|
|
62
112
|
{
|
|
63
|
-
"variant":
|
|
64
|
-
|
|
113
|
+
"variant": [
|
|
114
|
+
"solid",
|
|
115
|
+
"additionalInformation"
|
|
116
|
+
],
|
|
117
|
+
"variantColor": [
|
|
118
|
+
"orange",
|
|
119
|
+
"warning"
|
|
120
|
+
],
|
|
121
|
+
"css": {
|
|
122
|
+
"backgroundColor": "amber.400",
|
|
123
|
+
"color": "white",
|
|
124
|
+
"_nextTheme": {
|
|
125
|
+
"backgroundColor": "background.warning.bold",
|
|
126
|
+
"color": "text.warning.inverse"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"variant": [
|
|
132
|
+
"solid",
|
|
133
|
+
"additionalInformation"
|
|
134
|
+
],
|
|
135
|
+
"variantColor": [
|
|
136
|
+
"red",
|
|
137
|
+
"critical"
|
|
138
|
+
],
|
|
65
139
|
"css": {
|
|
66
|
-
"backgroundColor": "rose.400"
|
|
140
|
+
"backgroundColor": "rose.400",
|
|
141
|
+
"color": "white",
|
|
142
|
+
"_nextTheme": {
|
|
143
|
+
"backgroundColor": "background.danger.bold",
|
|
144
|
+
"color": "text.inverse"
|
|
145
|
+
}
|
|
67
146
|
}
|
|
68
147
|
},
|
|
69
148
|
{
|
|
70
|
-
"variant":
|
|
71
|
-
|
|
149
|
+
"variant": [
|
|
150
|
+
"solid",
|
|
151
|
+
"additionalInformation"
|
|
152
|
+
],
|
|
153
|
+
"variantColor": [
|
|
154
|
+
"gray",
|
|
155
|
+
"announcement"
|
|
156
|
+
],
|
|
72
157
|
"css": {
|
|
73
|
-
"backgroundColor": "stone.400"
|
|
158
|
+
"backgroundColor": "stone.400",
|
|
159
|
+
"color": "white",
|
|
160
|
+
"_nextTheme": {
|
|
161
|
+
"backgroundColor": "background.neutral.bold",
|
|
162
|
+
"color": "text.inverse"
|
|
163
|
+
}
|
|
74
164
|
}
|
|
75
165
|
},
|
|
76
166
|
{
|
|
77
167
|
"variant": [
|
|
78
|
-
"subtle"
|
|
168
|
+
"subtle",
|
|
169
|
+
"tableStatus"
|
|
170
|
+
],
|
|
171
|
+
"variantColor": [
|
|
172
|
+
"blue",
|
|
173
|
+
"information"
|
|
79
174
|
],
|
|
80
|
-
"variantColor": "blue",
|
|
81
175
|
"css": {
|
|
82
176
|
"backgroundColor": "blue.50",
|
|
83
|
-
"color": "blue.700"
|
|
177
|
+
"color": "blue.700",
|
|
178
|
+
"_nextTheme": {
|
|
179
|
+
"backgroundColor": "background.brand",
|
|
180
|
+
"color": "text.information"
|
|
181
|
+
}
|
|
84
182
|
}
|
|
85
183
|
},
|
|
86
184
|
{
|
|
87
185
|
"variant": [
|
|
88
|
-
"subtle"
|
|
186
|
+
"subtle",
|
|
187
|
+
"tableStatus"
|
|
188
|
+
],
|
|
189
|
+
"variantColor": [
|
|
190
|
+
"green",
|
|
191
|
+
"completed"
|
|
89
192
|
],
|
|
90
|
-
"variantColor": "green",
|
|
91
193
|
"css": {
|
|
92
194
|
"backgroundColor": "green.50",
|
|
93
|
-
"color": "green.700"
|
|
195
|
+
"color": "green.700",
|
|
196
|
+
"_nextTheme": {
|
|
197
|
+
"backgroundColor": "background.success",
|
|
198
|
+
"color": "text.success"
|
|
199
|
+
}
|
|
94
200
|
}
|
|
95
201
|
},
|
|
96
202
|
{
|
|
97
203
|
"variant": [
|
|
98
|
-
"subtle"
|
|
204
|
+
"subtle",
|
|
205
|
+
"tableStatus"
|
|
206
|
+
],
|
|
207
|
+
"variantColor": [
|
|
208
|
+
"orange",
|
|
209
|
+
"warning"
|
|
99
210
|
],
|
|
100
|
-
"variantColor": "orange",
|
|
101
211
|
"css": {
|
|
102
212
|
"backgroundColor": "orange.50",
|
|
103
|
-
"color": "orange.700"
|
|
213
|
+
"color": "orange.700",
|
|
214
|
+
"_nextTheme": {
|
|
215
|
+
"backgroundColor": "background.warning",
|
|
216
|
+
"color": "text.warning"
|
|
217
|
+
}
|
|
104
218
|
}
|
|
105
219
|
},
|
|
106
220
|
{
|
|
107
221
|
"variant": [
|
|
108
|
-
"subtle"
|
|
222
|
+
"subtle",
|
|
223
|
+
"tableStatus"
|
|
224
|
+
],
|
|
225
|
+
"variantColor": [
|
|
226
|
+
"red",
|
|
227
|
+
"critical"
|
|
109
228
|
],
|
|
110
|
-
"variantColor": "red",
|
|
111
229
|
"css": {
|
|
112
230
|
"backgroundColor": "red.50",
|
|
113
|
-
"color": "red.700"
|
|
231
|
+
"color": "red.700",
|
|
232
|
+
"_nextTheme": {
|
|
233
|
+
"backgroundColor": "background.danger",
|
|
234
|
+
"color": "text.danger"
|
|
235
|
+
}
|
|
114
236
|
}
|
|
115
237
|
},
|
|
116
238
|
{
|
|
117
239
|
"variant": [
|
|
118
|
-
"subtle"
|
|
240
|
+
"subtle",
|
|
241
|
+
"tableStatus"
|
|
242
|
+
],
|
|
243
|
+
"variantColor": [
|
|
244
|
+
"gray",
|
|
245
|
+
"announcement"
|
|
119
246
|
],
|
|
120
|
-
"variantColor": "gray",
|
|
121
247
|
"css": {
|
|
122
248
|
"backgroundColor": "gray.50",
|
|
123
|
-
"color": "black"
|
|
249
|
+
"color": "black",
|
|
250
|
+
"_nextTheme": {
|
|
251
|
+
"color": "text.default",
|
|
252
|
+
"backgroundColor": "background.neutral.subtle"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"variant": "indicator",
|
|
258
|
+
"variantColor": [
|
|
259
|
+
"blue",
|
|
260
|
+
"information"
|
|
261
|
+
],
|
|
262
|
+
"css": {
|
|
263
|
+
"backgroundColor": "sky.400",
|
|
264
|
+
"_nextTheme": {
|
|
265
|
+
"backgroundColor": "icon.brand",
|
|
266
|
+
"color": "text.inverse"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"variant": "indicator",
|
|
272
|
+
"variantColor": [
|
|
273
|
+
"green",
|
|
274
|
+
"completed"
|
|
275
|
+
],
|
|
276
|
+
"css": {
|
|
277
|
+
"backgroundColor": "teal.400",
|
|
278
|
+
"_nextTheme": {
|
|
279
|
+
"backgroundColor": "icon.success",
|
|
280
|
+
"color": "text.inverse"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"variant": "indicator",
|
|
286
|
+
"variantColor": [
|
|
287
|
+
"orange",
|
|
288
|
+
"warning"
|
|
289
|
+
],
|
|
290
|
+
"css": {
|
|
291
|
+
"backgroundColor": "amber.400",
|
|
292
|
+
"_nextTheme": {
|
|
293
|
+
"backgroundColor": "icon.warning",
|
|
294
|
+
"color": "text.warning.inverse"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"variant": "indicator",
|
|
300
|
+
"variantColor": [
|
|
301
|
+
"red",
|
|
302
|
+
"critical"
|
|
303
|
+
],
|
|
304
|
+
"css": {
|
|
305
|
+
"backgroundColor": "rose.400",
|
|
306
|
+
"_nextTheme": {
|
|
307
|
+
"backgroundColor": "icon.danger",
|
|
308
|
+
"color": "text.inverse"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"variant": "indicator",
|
|
314
|
+
"variantColor": [
|
|
315
|
+
"gray",
|
|
316
|
+
"announcement"
|
|
317
|
+
],
|
|
318
|
+
"css": {
|
|
319
|
+
"backgroundColor": "stone.400",
|
|
320
|
+
"_nextTheme": {
|
|
321
|
+
"color": "text.inverse",
|
|
322
|
+
"backgroundColor": "icon.default"
|
|
323
|
+
}
|
|
124
324
|
}
|
|
125
325
|
}
|
|
126
326
|
])
|
|
@@ -128,14 +328,22 @@ const badgeRecipeFn = /* @__PURE__ */ createRecipe('badge', {
|
|
|
128
328
|
const badgeRecipeVariantMap = {
|
|
129
329
|
"variant": [
|
|
130
330
|
"solid",
|
|
131
|
-
"subtle"
|
|
331
|
+
"subtle",
|
|
332
|
+
"additionalInformation",
|
|
333
|
+
"tableStatus",
|
|
334
|
+
"indicator"
|
|
132
335
|
],
|
|
133
336
|
"variantColor": [
|
|
134
337
|
"blue",
|
|
135
338
|
"green",
|
|
136
339
|
"orange",
|
|
137
340
|
"red",
|
|
138
|
-
"gray"
|
|
341
|
+
"gray",
|
|
342
|
+
"announcement",
|
|
343
|
+
"information",
|
|
344
|
+
"warning",
|
|
345
|
+
"completed",
|
|
346
|
+
"critical"
|
|
139
347
|
],
|
|
140
348
|
"size": [
|
|
141
349
|
"sm",
|
|
@@ -11,9 +11,13 @@ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
11
11
|
],
|
|
12
12
|
"css": {
|
|
13
13
|
"borderRadius": "sm",
|
|
14
|
-
"
|
|
14
|
+
"_focus": {
|
|
15
15
|
"borderColor": "white",
|
|
16
|
-
"boxShadow": "focus"
|
|
16
|
+
"boxShadow": "focus",
|
|
17
|
+
"_nextTheme": {
|
|
18
|
+
"borderColor": "border.focused",
|
|
19
|
+
"boxShadow": "focus"
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
},
|
|
@@ -33,9 +37,13 @@ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
33
37
|
"ghost"
|
|
34
38
|
],
|
|
35
39
|
"css": {
|
|
36
|
-
"
|
|
40
|
+
"_focus": {
|
|
37
41
|
"borderColor": "blue.400",
|
|
38
|
-
"boxShadow": "focus"
|
|
42
|
+
"boxShadow": "focus",
|
|
43
|
+
"_nextTheme": {
|
|
44
|
+
"borderColor": "border.focused",
|
|
45
|
+
"boxShadow": "focus"
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
},
|
|
@@ -55,6 +63,15 @@ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
55
63
|
"_hover": {
|
|
56
64
|
"background": "gray.50",
|
|
57
65
|
"borderColor": "gray.50"
|
|
66
|
+
},
|
|
67
|
+
"_nextTheme": {
|
|
68
|
+
"color": "text.disabled",
|
|
69
|
+
"background": "background.disabled",
|
|
70
|
+
"borderColor": "background.disabled",
|
|
71
|
+
"_hover": {
|
|
72
|
+
"background": "background.disabled",
|
|
73
|
+
"borderColor": "background.disabled"
|
|
74
|
+
}
|
|
58
75
|
}
|
|
59
76
|
}
|
|
60
77
|
}
|