@likec4/styles 1.37.0 → 1.38.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.
@@ -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,_complete,_incomplete,_dragging,_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,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base"
3
+ const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_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,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base"
4
4
  const conditions = new Set(conditionsStr.split(','))
5
5
 
6
6
  const conditionRegex = /^@|&|&$/
package/dist/css/css.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createCss, createMergeCss, hypenateProperty, withoutSpace } from '../helpers.mjs';
2
2
  import { sortConditions, finalizeConditions } from './conditions.mjs';
3
3
 
4
- const utilities = "aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle"
4
+ const utilities = "aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle"
5
5
 
6
6
  const classNameByProp = new Map()
7
7
  const shorthands = new Map()
package/dist/css/sva.mjs CHANGED
@@ -2,14 +2,17 @@ import { compact, getSlotRecipes, memo, splitProps } from '../helpers.mjs';
2
2
  import { cva } from './cva.mjs';
3
3
  import { cx } from './cx.mjs';
4
4
 
5
- const slotClass = (className, slot) => className + '__' + slot
6
-
7
5
  export function sva(config) {
8
6
  const slots = Object.entries(getSlotRecipes(config)).map(([slot, slotCva]) => [slot, cva(slotCva)])
9
7
  const defaultVariants = config.defaultVariants ?? {}
10
8
 
9
+ const classNameMap = slots.reduce((acc, [slot, cvaFn]) => {
10
+ if (config.className) acc[slot] = cvaFn.config.className
11
+ return acc
12
+ }, {})
13
+
11
14
  function svaFn(props) {
12
- const result = slots.map(([slot, cvaFn]) => [slot, cx(cvaFn(props), config.className && slotClass(config.className, slot))])
15
+ const result = slots.map(([slot, cvaFn]) => [slot, cx(cvaFn(props), classNameMap[slot])])
13
16
  return Object.fromEntries(result)
14
17
  }
15
18
 
@@ -24,7 +27,7 @@ export function sva(config) {
24
27
  function splitVariantProps(props) {
25
28
  return splitProps(props, variantKeys);
26
29
  }
27
- const getVariantProps = (variants) => ({ ...(defaultVariants || {}), ...compact(variants) })
30
+ const getVariantProps = (variants) => ({ ...defaultVariants, ...compact(variants) })
28
31
 
29
32
  const variantMap = Object.fromEntries(
30
33
  Object.entries(variants).map(([key, value]) => [key, Object.keys(value)])
@@ -33,8 +36,10 @@ export function sva(config) {
33
36
  return Object.assign(memo(svaFn), {
34
37
  __cva__: false,
35
38
  raw,
39
+ config,
36
40
  variantMap,
37
41
  variantKeys,
42
+ classNameMap,
38
43
  splitVariantProps,
39
44
  getVariantProps,
40
45
  })
package/dist/helpers.mjs CHANGED
@@ -22,14 +22,12 @@ function toChar(code) {
22
22
  function toName(code) {
23
23
  let name = "";
24
24
  let x;
25
- for (x = Math.abs(code); x > 52; x = x / 52 | 0)
26
- name = toChar(x % 52) + name;
25
+ for (x = Math.abs(code); x > 52; x = x / 52 | 0) name = toChar(x % 52) + name;
27
26
  return toChar(x % 52) + name;
28
27
  }
29
28
  function toPhash(h, x) {
30
29
  let i = x.length;
31
- while (i)
32
- h = h * 33 ^ x.charCodeAt(--i);
30
+ while (i) h = h * 33 ^ x.charCodeAt(--i);
33
31
  return h;
34
32
  }
35
33
  function toHash(value) {
@@ -67,11 +65,9 @@ var memo = (fn) => {
67
65
  var MERGE_OMIT = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
68
66
  function mergeProps(...sources) {
69
67
  return sources.reduce((prev, obj) => {
70
- if (!obj)
71
- return prev;
68
+ if (!obj) return prev;
72
69
  Object.keys(obj).forEach((key) => {
73
- if (MERGE_OMIT.has(key))
74
- return;
70
+ if (MERGE_OMIT.has(key)) return;
75
71
  const prevValue = prev[key];
76
72
  const value = obj[key];
77
73
  if (isObject(prevValue) && isObject(value)) {
@@ -109,10 +105,8 @@ function walkObject(target, predicate, options = {}) {
109
105
  return inner(target);
110
106
  }
111
107
  function mapObject(obj, fn) {
112
- if (Array.isArray(obj))
113
- return obj.map((value) => fn(value));
114
- if (!isObject(obj))
115
- return fn(obj);
108
+ if (Array.isArray(obj)) return obj.map((value) => fn(value));
109
+ if (!isObject(obj)) return fn(obj);
116
110
  return walkObject(obj, (value) => fn(value));
117
111
  }
118
112
 
@@ -170,15 +164,13 @@ function createCss(context) {
170
164
  const normalizedObject = normalizeStyleObject(styleObject, context);
171
165
  const classNames = /* @__PURE__ */ new Set();
172
166
  walkObject(normalizedObject, (value, paths) => {
173
- if (value == null)
174
- return;
167
+ if (value == null) return;
175
168
  const important = isImportant(value);
176
169
  const [prop, ...allConditions] = conds.shift(paths);
177
170
  const conditions = filterBaseConditions(allConditions);
178
171
  const transformed = utility.transform(prop, withoutImportant(sanitize(value)));
179
172
  let className = hashFn(conditions, transformed.className);
180
- if (important)
181
- className = `${className}!`;
173
+ if (important) className = `${className}!`;
182
174
  classNames.add(className);
183
175
  });
184
176
  return Array.from(classNames).join(" ");
@@ -190,8 +182,7 @@ function compactStyles(...styles) {
190
182
  function createMergeCss(context) {
191
183
  function resolve(styles) {
192
184
  const allStyles = compactStyles(...styles);
193
- if (allStyles.length === 1)
194
- return allStyles;
185
+ if (allStyles.length === 1) return allStyles;
195
186
  return allStyles.map((style) => normalizeStyleObject(style, context));
196
187
  }
197
188
  function mergeCss(...styles) {
@@ -207,8 +198,7 @@ function createMergeCss(context) {
207
198
  var wordRegex = /([A-Z])/g;
208
199
  var msRegex = /^ms-/;
209
200
  var hypenateProperty = memo((property) => {
210
- if (property.startsWith("--"))
211
- return property;
201
+ if (property.startsWith("--")) return property;
212
202
  return property.replace(wordRegex, "-$1").replace(msRegex, "-ms-").toLowerCase();
213
203
  });
214
204
 
@@ -234,8 +224,7 @@ var patternFns = {
234
224
  isCssUnit
235
225
  };
236
226
  var getPatternStyles = (pattern, styles) => {
237
- if (!pattern?.defaultValues)
238
- return styles;
227
+ if (!pattern?.defaultValues) return styles;
239
228
  const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues;
240
229
  return Object.assign({}, defaults, compact(styles));
241
230
  };
@@ -0,0 +1,47 @@
1
+ /* eslint-disable */
2
+ import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe';
3
+ import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types';
4
+ import type { JsxFactoryOptions } from '../types/jsx';
5
+ import type { ComponentType, ElementType, ComponentPropsWithoutRef, ElementRef, Ref } from 'react'
6
+
7
+ interface UnstyledProps {
8
+ unstyled?: boolean
9
+ }
10
+
11
+ type SvaFn<S extends string = any> = SlotRecipeRuntimeFn<S, any>
12
+ interface SlotRecipeFn {
13
+ __type: any
14
+ __slot: string
15
+ (props?: any): any
16
+ }
17
+ type SlotRecipe = SvaFn | SlotRecipeFn
18
+
19
+ type InferSlot<R extends SlotRecipe> = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn<infer S> ? S : never
20
+
21
+ type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
22
+ ref?: Ref<ElementRef<T>>
23
+ }
24
+
25
+ type StyleContextProvider<T extends ElementType, R extends SlotRecipe> = ComponentType<
26
+ JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<RecipeVariantProps<R>, JsxStyleProps>>
27
+ >
28
+
29
+ type StyleContextConsumer<T extends ElementType> = ComponentType<
30
+ JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
31
+ >
32
+
33
+ export interface StyleContext<R extends SlotRecipe> {
34
+ withRootProvider: <T extends ElementType>(Component: T) => StyleContextProvider<T, R>
35
+ withProvider: <T extends ElementType>(
36
+ Component: T,
37
+ slot: InferSlot<R>,
38
+ options?: JsxFactoryOptions<ComponentProps<T>>
39
+ ) => StyleContextProvider<T, R>
40
+ withContext: <T extends ElementType>(
41
+ Component: T,
42
+ slot: InferSlot<R>,
43
+ options?: JsxFactoryOptions<ComponentProps<T>>
44
+ ) => StyleContextConsumer<T>
45
+ }
46
+
47
+ export declare function createStyleContext<R extends SlotRecipe>(recipe: R): StyleContext<R>
@@ -0,0 +1,94 @@
1
+ 'use client'
2
+
3
+ import { cx, css, sva } from '../css/index.mjs';
4
+ import { styled } from './factory.mjs';
5
+ import { getDisplayName } from './factory-helper.mjs';
6
+ import { createContext, useContext, createElement, forwardRef } from 'react'
7
+
8
+ export function createStyleContext(recipe) {
9
+ const StyleContext = createContext({})
10
+ const isConfigRecipe = '__recipe__' in recipe
11
+ const svaFn = isConfigRecipe ? recipe : sva(recipe.config)
12
+
13
+ const getResolvedProps = (props, slotStyles) => {
14
+ const { unstyled, ...restProps } = props
15
+ if (unstyled) return restProps
16
+ if (isConfigRecipe) {
17
+ return { ...restProps, className: cx(slotStyles, restProps.className) }
18
+ }
19
+ return { ...slotStyles, ...restProps }
20
+ }
21
+
22
+ const withRootProvider = (Component) => {
23
+ const WithRootProvider = (props) => {
24
+ const [variantProps, otherProps] = svaFn.splitVariantProps(props)
25
+
26
+ const slotStyles = isConfigRecipe ? svaFn(variantProps) : svaFn.raw(variantProps)
27
+ slotStyles._classNameMap = svaFn.classNameMap
28
+
29
+ return createElement(StyleContext.Provider, {
30
+ value: slotStyles,
31
+ children: createElement(Component, otherProps)
32
+ })
33
+ }
34
+
35
+ const componentName = getDisplayName(Component)
36
+ WithRootProvider.displayName = `withRootProvider(${componentName})`
37
+
38
+ return WithRootProvider
39
+ }
40
+
41
+ const withProvider = (Component, slot, options) => {
42
+ const StyledComponent = styled(Component, {}, options)
43
+
44
+ const WithProvider = forwardRef((props, ref) => {
45
+ const [variantProps, restProps] = svaFn.splitVariantProps(props)
46
+
47
+ const slotStyles = isConfigRecipe ? svaFn(variantProps) : svaFn.raw(variantProps)
48
+ slotStyles._classNameMap = svaFn.classNameMap
49
+
50
+ const propsWithClass = { ...restProps, className: restProps.className ?? options?.defaultProps?.className }
51
+ const resolvedProps = getResolvedProps(propsWithClass, slotStyles[slot])
52
+ return createElement(StyleContext.Provider, {
53
+ value: slotStyles,
54
+ children: createElement(StyledComponent, {
55
+ ...resolvedProps,
56
+ className: cx(resolvedProps.className, slotStyles._classNameMap[slot]),
57
+ ref,
58
+ })
59
+ })
60
+ })
61
+
62
+ const componentName = getDisplayName(Component)
63
+ WithProvider.displayName = `withProvider(${componentName})`
64
+
65
+ return WithProvider
66
+ }
67
+
68
+ const withContext = (Component, slot, options) => {
69
+ const StyledComponent = styled(Component, {}, options)
70
+
71
+ const WithContext = forwardRef((props, ref) => {
72
+ const slotStyles = useContext(StyleContext)
73
+
74
+ const propsWithClass = { ...props, className: props.className ?? options?.defaultProps?.className }
75
+ const resolvedProps = getResolvedProps(propsWithClass, slotStyles[slot])
76
+ return createElement(StyledComponent, {
77
+ ...resolvedProps,
78
+ className: cx(resolvedProps.className, slotStyles._classNameMap[slot]),
79
+ ref,
80
+ })
81
+ })
82
+
83
+ const componentName = getDisplayName(Component)
84
+ WithContext.displayName = `withContext(${componentName})`
85
+
86
+ return WithContext
87
+ }
88
+
89
+ return {
90
+ withRootProvider,
91
+ withProvider,
92
+ withContext,
93
+ }
94
+ }
@@ -8,8 +8,11 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
8
8
  const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
9
9
 
10
10
  const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
11
- const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
12
-
11
+ const shouldForwardProp = (prop) => {
12
+ if (options.forwardProps?.includes(prop)) return true
13
+ return forwardFn(prop, cvaFn.variantKeys)
14
+ }
15
+
13
16
  const defaultProps = Object.assign(
14
17
  options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
15
18
  options.defaultProps,
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable */
2
2
  export * from './factory';
3
3
  export * from './is-valid-prop';
4
+ export * from './create-style-context';
4
5
  export * from './box';
5
6
  export * from './flex';
6
7
  export * from './stack';
@@ -1,5 +1,6 @@
1
1
  export * from './factory.mjs';
2
2
  export * from './is-valid-prop.mjs';
3
+ export * from './create-style-context.mjs';
3
4
  export * from './box.mjs';
4
5
  export * from './flex.mjs';
5
6
  export * from './stack.mjs';
@@ -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,borderBlockStartWidth,borderBlockEndWidth,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,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_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,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle"
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,bgLinear,bgRadial,bgConic,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,boxSize,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,backgroundLinear,backgroundRadial,backgroundConic,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,borderBlockStartWidth,borderBlockEndWidth,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,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_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,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle"
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,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,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,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,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,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,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,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical";
7
7
  var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
@@ -21,11 +21,14 @@ type ActionBtnVariantMap = {
21
21
  [key in keyof ActionBtnVariant]: Array<ActionBtnVariant[key]>
22
22
  }
23
23
 
24
+
25
+
24
26
  export type ActionBtnVariantProps = {
25
27
  [key in keyof ActionBtnVariant]?: ConditionalValue<ActionBtnVariant[key]> | undefined
26
28
  }
27
29
 
28
30
  export interface ActionBtnRecipe {
31
+
29
32
  __type: ActionBtnVariantProps
30
33
  (props?: ActionBtnVariantProps): string
31
34
  raw: (props?: ActionBtnVariantProps) => ActionBtnVariantProps
@@ -12,11 +12,14 @@ type CompoundNodeVariantMap = {
12
12
  [key in keyof CompoundNodeVariant]: Array<CompoundNodeVariant[key]>
13
13
  }
14
14
 
15
+
16
+
15
17
  export type CompoundNodeVariantProps = {
16
18
  [key in keyof CompoundNodeVariant]?: ConditionalValue<CompoundNodeVariant[key]> | undefined
17
19
  }
18
20
 
19
21
  export interface CompoundNodeRecipe {
22
+
20
23
  __type: CompoundNodeVariantProps
21
24
  (props?: CompoundNodeVariantProps): string
22
25
  raw: (props?: CompoundNodeVariantProps) => CompoundNodeVariantProps
@@ -10,11 +10,14 @@ type EdgeActionBtnVariantMap = {
10
10
  [key in keyof EdgeActionBtnVariant]: Array<EdgeActionBtnVariant[key]>
11
11
  }
12
12
 
13
+
14
+
13
15
  export type EdgeActionBtnVariantProps = {
14
16
  [key in keyof EdgeActionBtnVariant]?: ConditionalValue<EdgeActionBtnVariant[key]> | undefined
15
17
  }
16
18
 
17
19
  export interface EdgeActionBtnRecipe {
20
+
18
21
  __type: EdgeActionBtnVariantProps
19
22
  (props?: EdgeActionBtnVariantProps): string
20
23
  raw: (props?: EdgeActionBtnVariantProps) => EdgeActionBtnVariantProps
@@ -17,13 +17,16 @@ type EdgeLabelVariantMap = {
17
17
  [key in keyof EdgeLabelVariant]: Array<EdgeLabelVariant[key]>
18
18
  }
19
19
 
20
+ type EdgeLabelSlot = "root" | "stepNumber" | "labelContents" | "labelText" | "labelTechnology"
21
+
20
22
  export type EdgeLabelVariantProps = {
21
23
  [key in keyof EdgeLabelVariant]?: ConditionalValue<EdgeLabelVariant[key]> | undefined
22
24
  }
23
25
 
24
26
  export interface EdgeLabelRecipe {
27
+ __slot: EdgeLabelSlot
25
28
  __type: EdgeLabelVariantProps
26
- (props?: EdgeLabelVariantProps): Pretty<Record<"root" | "stepNumber" | "labelContents" | "labelText" | "labelTechnology", string>>
29
+ (props?: EdgeLabelVariantProps): Pretty<Record<EdgeLabelSlot, string>>
27
30
  raw: (props?: EdgeLabelVariantProps) => EdgeLabelVariantProps
28
31
  variantMap: EdgeLabelVariantMap
29
32
  variantKeys: Array<keyof EdgeLabelVariant>
@@ -45,6 +45,7 @@ export const edgeLabel = /* @__PURE__ */ Object.assign(edgeLabelFn, {
45
45
  __recipe__: false,
46
46
  __name__: 'edgeLabel',
47
47
  raw: (props) => props,
48
+ classNameMap: {},
48
49
  variantKeys: edgeLabelVariantKeys,
49
50
  variantMap: {
50
51
  "cursor": [
@@ -15,13 +15,16 @@ type ElementNodeDataVariantMap = {
15
15
  [key in keyof ElementNodeDataVariant]: Array<ElementNodeDataVariant[key]>
16
16
  }
17
17
 
18
+ type ElementNodeDataSlot = "root" | "textContainer" | "title" | "description" | "technology" | "icon"
19
+
18
20
  export type ElementNodeDataVariantProps = {
19
21
  [key in keyof ElementNodeDataVariant]?: ElementNodeDataVariant[key] | undefined
20
22
  }
21
23
 
22
24
  export interface ElementNodeDataRecipe {
25
+ __slot: ElementNodeDataSlot
23
26
  __type: ElementNodeDataVariantProps
24
- (props?: ElementNodeDataVariantProps): Pretty<Record<"root" | "textContainer" | "title" | "description" | "technology" | "icon", string>>
27
+ (props?: ElementNodeDataVariantProps): Pretty<Record<ElementNodeDataSlot, string>>
25
28
  raw: (props?: ElementNodeDataVariantProps) => ElementNodeDataVariantProps
26
29
  variantMap: ElementNodeDataVariantMap
27
30
  variantKeys: Array<keyof ElementNodeDataVariant>
@@ -59,6 +59,7 @@ export const elementNodeData = /* @__PURE__ */ Object.assign(elementNodeDataFn,
59
59
  __recipe__: false,
60
60
  __name__: 'elementNodeData',
61
61
  raw: (props) => props,
62
+ classNameMap: {},
62
63
  variantKeys: elementNodeDataVariantKeys,
63
64
  variantMap: {
64
65
  "hasIcon": [
@@ -10,11 +10,14 @@ type ElementNodeIconVariantMap = {
10
10
  [key in keyof ElementNodeIconVariant]: Array<ElementNodeIconVariant[key]>
11
11
  }
12
12
 
13
+
14
+
13
15
  export type ElementNodeIconVariantProps = {
14
16
  [key in keyof ElementNodeIconVariant]?: ConditionalValue<ElementNodeIconVariant[key]> | undefined
15
17
  }
16
18
 
17
19
  export interface ElementNodeIconRecipe {
20
+
18
21
  __type: ElementNodeIconVariantProps
19
22
  (props?: ElementNodeIconVariantProps): string
20
23
  raw: (props?: ElementNodeIconVariantProps) => ElementNodeIconVariantProps
@@ -10,11 +10,14 @@ type ElementShapeRecipeVariantMap = {
10
10
  [key in keyof ElementShapeRecipeVariant]: Array<ElementShapeRecipeVariant[key]>
11
11
  }
12
12
 
13
+
14
+
13
15
  export type ElementShapeRecipeVariantProps = {
14
16
  [key in keyof ElementShapeRecipeVariant]?: ConditionalValue<ElementShapeRecipeVariant[key]> | undefined
15
17
  }
16
18
 
17
19
  export interface ElementShapeRecipeRecipe {
20
+
18
21
  __type: ElementShapeRecipeVariantProps
19
22
  (props?: ElementShapeRecipeVariantProps): string
20
23
  raw: (props?: ElementShapeRecipeVariantProps) => ElementShapeRecipeVariantProps
@@ -13,11 +13,14 @@ type Likec4tagVariantMap = {
13
13
  [key in keyof Likec4tagVariant]: Array<Likec4tagVariant[key]>
14
14
  }
15
15
 
16
+
17
+
16
18
  export type Likec4tagVariantProps = {
17
19
  [key in keyof Likec4tagVariant]?: ConditionalValue<Likec4tagVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface Likec4tagRecipe {
23
+
21
24
  __type: Likec4tagVariantProps
22
25
  (props?: Likec4tagVariantProps): string
23
26
  raw: (props?: Likec4tagVariantProps) => Likec4tagVariantProps
@@ -13,11 +13,14 @@ type MarkdownBlockVariantMap = {
13
13
  [key in keyof MarkdownBlockVariant]: Array<MarkdownBlockVariant[key]>
14
14
  }
15
15
 
16
+
17
+
16
18
  export type MarkdownBlockVariantProps = {
17
19
  [key in keyof MarkdownBlockVariant]?: ConditionalValue<MarkdownBlockVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface MarkdownBlockRecipe {
23
+
21
24
  __type: MarkdownBlockVariantProps
22
25
  (props?: MarkdownBlockVariantProps): string
23
26
  raw: (props?: MarkdownBlockVariantProps) => MarkdownBlockVariantProps
@@ -13,13 +13,16 @@ type NavigationLinkVariantMap = {
13
13
  [key in keyof NavigationLinkVariant]: Array<NavigationLinkVariant[key]>
14
14
  }
15
15
 
16
+ type NavigationLinkSlot = "root" | "body" | "section" | "label" | "description"
17
+
16
18
  export type NavigationLinkVariantProps = {
17
19
  [key in keyof NavigationLinkVariant]?: ConditionalValue<NavigationLinkVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface NavigationLinkRecipe {
23
+ __slot: NavigationLinkSlot
21
24
  __type: NavigationLinkVariantProps
22
- (props?: NavigationLinkVariantProps): Pretty<Record<"root" | "body" | "section" | "label" | "description", string>>
25
+ (props?: NavigationLinkVariantProps): Pretty<Record<NavigationLinkSlot, string>>
23
26
  raw: (props?: NavigationLinkVariantProps) => NavigationLinkVariantProps
24
27
  variantMap: NavigationLinkVariantMap
25
28
  variantKeys: Array<keyof NavigationLinkVariant>
@@ -43,6 +43,7 @@ export const navigationLink = /* @__PURE__ */ Object.assign(navigationLinkFn, {
43
43
  __recipe__: false,
44
44
  __name__: 'navigationLink',
45
45
  raw: (props) => props,
46
+ classNameMap: {},
46
47
  variantKeys: navigationLinkVariantKeys,
47
48
  variantMap: {
48
49
  "truncateLabel": [
@@ -13,11 +13,14 @@ type NavigationPanelActionIconVariantMap = {
13
13
  [key in keyof NavigationPanelActionIconVariant]: Array<NavigationPanelActionIconVariant[key]>
14
14
  }
15
15
 
16
+
17
+
16
18
  export type NavigationPanelActionIconVariantProps = {
17
19
  [key in keyof NavigationPanelActionIconVariant]?: ConditionalValue<NavigationPanelActionIconVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface NavigationPanelActionIconRecipe {
23
+
21
24
  __type: NavigationPanelActionIconVariantProps
22
25
  (props?: NavigationPanelActionIconVariantProps): string
23
26
  raw: (props?: NavigationPanelActionIconVariantProps) => NavigationPanelActionIconVariantProps
package/dist/styles.css CHANGED
@@ -106,28 +106,32 @@
106
106
  syntax: '<length> | <percentage>';
107
107
 
108
108
  inherits: false;
109
-
109
+
110
+ initial-value: initial;
110
111
  }
111
112
 
112
113
  @property --likec4-spacing {
113
114
  syntax: '<length> | <percentage>';
114
115
 
115
116
  inherits: false;
116
-
117
+
118
+ initial-value: initial;
117
119
  }
118
120
 
119
121
  @property --text-fz {
120
122
  syntax: '<length> | <percentage>';
121
123
 
122
124
  inherits: false;
123
-
125
+
126
+ initial-value: initial;
124
127
  }
125
128
 
126
129
  @property --likec4-icon-size {
127
130
  syntax: '<length> | <percentage>';
128
131
 
129
132
  inherits: false;
130
-
133
+
134
+ initial-value: initial;
131
135
  }
132
136
  }
133
137
 
@@ -46,7 +46,7 @@ export interface Conditions {
46
46
  "_firstLetter": string
47
47
  /** `&::first-line` */
48
48
  "_firstLine": string
49
- /** `&::marker` */
49
+ /** `&:is(::marker, ::-webkit-details-marker)` */
50
50
  "_marker": string
51
51
  /** `&::selection` */
52
52
  "_selection": string
@@ -142,7 +142,7 @@ export interface Conditions {
142
142
  "_default": string
143
143
  /** `&:optional` */
144
144
  "_optional": string
145
- /** `&:is([open], [data-open], [data-state="open"])` */
145
+ /** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
146
146
  "_open": string
147
147
  /** `&:is([closed], [data-closed], [data-state="closed"])` */
148
148
  "_closed": string
@@ -194,9 +194,9 @@ export interface Conditions {
194
194
  "_lessContrast": string
195
195
  /** `@media (prefers-contrast: more)` */
196
196
  "_moreContrast": string
197
- /** `[dir=ltr] &` */
197
+ /** `:where([dir=ltr], :dir(ltr)) &` */
198
198
  "_ltr": string
199
- /** `[dir=rtl] &` */
199
+ /** `:where([dir=rtl], :dir(rtl)) &` */
200
200
  "_rtl": string
201
201
  /** `&::-webkit-scrollbar` */
202
202
  "_scrollbar": string
@@ -212,6 +212,10 @@ export interface Conditions {
212
212
  "_icon": string
213
213
  /** `@starting-style` */
214
214
  "_starting": string
215
+ /** `@media (scripting: none)` */
216
+ "_noscript": string
217
+ /** `@media (inverted-colors: inverted)` */
218
+ "_invertedColors": string
215
219
  /** `:where([data-likec4-shape-size='xs']) &` */
216
220
  "_shapeSizeXs": string
217
221
  /** `:where([data-likec4-shape-size='sm']) &` */
@@ -23,7 +23,8 @@ interface RecipeFn {
23
23
  interface JsxFactoryOptions<TProps extends Dict> {
24
24
  dataAttr?: boolean
25
25
  defaultProps?: TProps
26
- shouldForwardProp?(prop: string, variantKeys: string[]): boolean
26
+ shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
27
+ forwardProps?: string[]
27
28
  }
28
29
 
29
30
  export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T>, P>;
@@ -68,6 +68,7 @@ export interface UtilityValues {
68
68
  minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
69
69
  maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
70
70
  maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
71
+ boxSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
71
72
  color: Tokens["colors"];
72
73
  fontFamily: Tokens["fonts"];
73
74
  fontSize: Tokens["fontSizes"];
@@ -83,6 +84,7 @@ export interface UtilityValues {
83
84
  background: Tokens["colors"];
84
85
  backgroundColor: Tokens["colors"];
85
86
  backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
87
+ backgroundLinear: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
86
88
  textGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
87
89
  gradientFrom: Tokens["colors"];
88
90
  gradientTo: Tokens["colors"];
@@ -6992,6 +6992,9 @@ bgBlendMode?: ConditionalValue<WithEscapeHatch<CssProperties["backgroundBlendMod
6992
6992
  */
6993
6993
  bgSize?: ConditionalValue<WithEscapeHatch<CssProperties["backgroundSize"]>>
6994
6994
  bgGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | CssProperties["backgroundGradient"]>
6995
+ bgLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | CssProperties["backgroundLinear"]>
6996
+ bgRadial?: ConditionalValue<string | number | CssProperties["backgroundRadial"]>
6997
+ bgConic?: ConditionalValue<string | number | CssProperties["backgroundConic"]>
6995
6998
  /**
6996
6999
  * The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
6997
7000
  *
@@ -7363,9 +7366,13 @@ scrollPaddingX?: ConditionalValue<WithEscapeHatch<UtilityValues["scrollPaddingIn
7363
7366
  divideY?: ConditionalValue<string | number | CssProperties["divideY"]>
7364
7367
  divideColor?: ConditionalValue<WithEscapeHatch<UtilityValues["divideColor"] | CssVars>>
7365
7368
  divideStyle?: ConditionalValue<string | number | CssProperties["divideStyle"]>
7369
+ boxSize?: ConditionalValue<UtilityValues["boxSize"] | CssVars | CssProperties["boxSize"]>
7366
7370
  fontSmoothing?: ConditionalValue<UtilityValues["fontSmoothing"] | CssVars | CssProperties["fontSmoothing"]>
7367
7371
  truncate?: ConditionalValue<UtilityValues["truncate"] | CssVars | CssProperties["truncate"]>
7368
7372
  backgroundGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | CssProperties["backgroundGradient"]>
7373
+ backgroundLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | CssProperties["backgroundLinear"]>
7374
+ backgroundRadial?: ConditionalValue<string | number | CssProperties["backgroundRadial"]>
7375
+ backgroundConic?: ConditionalValue<string | number | CssProperties["backgroundConic"]>
7369
7376
  textGradient?: ConditionalValue<UtilityValues["textGradient"] | CssVars | CssProperties["textGradient"]>
7370
7377
  gradientFromPosition?: ConditionalValue<string | number | CssProperties["gradientFromPosition"]>
7371
7378
  gradientToPosition?: ConditionalValue<string | number | CssProperties["gradientToPosition"]>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@likec4/styles",
3
3
  "description": "Shared PandaCSS preset and generated styles, used in LikeC4",
4
4
  "license": "MIT",
5
- "version": "1.37.0",
5
+ "version": "1.38.1",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -58,7 +58,7 @@
58
58
  "./dev": "./dev.ts"
59
59
  },
60
60
  "peerDependencies": {
61
- "@pandacss/dev": "^0.54.0"
61
+ "@pandacss/dev": "^1.0.1"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@pandacss/dev": {
@@ -71,15 +71,15 @@
71
71
  "@pandabox/utils": "^0.0.5",
72
72
  "@pandabox/unplugin": "^0.2.2",
73
73
  "@types/picomatch": "^4.0.2",
74
- "@types/react": "19.1.9",
74
+ "@types/react": "19.1.10",
75
75
  "@types/react-dom": "19.1.7",
76
- "@pandacss/dev": "^0.54.0",
76
+ "@pandacss/dev": "^1.0.1",
77
77
  "postcss": "8.5.5",
78
78
  "nano-spawn": "^1.0.2",
79
79
  "unbuild": "3.5.0",
80
80
  "typescript": "5.9.2",
81
- "@likec4/style-preset": "1.37.0",
82
- "@likec4/tsconfig": "1.37.0"
81
+ "@likec4/style-preset": "1.38.1",
82
+ "@likec4/tsconfig": "1.38.1"
83
83
  },
84
84
  "scripts": {
85
85
  "typecheck": "tsc --build --verbose",