@likec4/styles 1.46.4 → 1.47.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.
@@ -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,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_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,_shapeBucket,_shapeDocument,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_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 = /^@|&|&$/
@@ -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,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,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,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,WebkitTextFillColor,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,_whenSelectable,_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,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,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,WebkitTextFillColor,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,_shapeBucket,_shapeDocument,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_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);
package/dist/preset.d.mts CHANGED
@@ -11,6 +11,8 @@ declare const edgeLabel: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVari
11
11
 
12
12
  declare const edgePath: _pandacss_types.SlotRecipeConfig;
13
13
 
14
+ declare const elementNode: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
15
+
14
16
  declare const elementNodeData: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
15
17
 
16
18
  declare const elementShapeRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
@@ -28,6 +30,7 @@ declare const recipes_compoundNode: typeof compoundNode;
28
30
  declare const recipes_edgeActionBtn: typeof edgeActionBtn;
29
31
  declare const recipes_edgeLabel: typeof edgeLabel;
30
32
  declare const recipes_edgePath: typeof edgePath;
33
+ declare const recipes_elementNode: typeof elementNode;
31
34
  declare const recipes_elementNodeData: typeof elementNodeData;
32
35
  declare const recipes_elementShapeRecipe: typeof elementShapeRecipe;
33
36
  declare const recipes_likec4tag: typeof likec4tag;
@@ -35,14 +38,17 @@ declare const recipes_markdownBlock: typeof markdownBlock;
35
38
  declare const recipes_navigationPanelActionIcon: typeof navigationPanelActionIcon;
36
39
  declare const recipes_overlay: typeof overlay;
37
40
  declare namespace recipes {
38
- export { recipes_actionBtn as actionBtn, recipes_compoundNode as compoundNode, recipes_edgeActionBtn as edgeActionBtn, recipes_edgeLabel as edgeLabel, recipes_edgePath as edgePath, recipes_elementNodeData as elementNodeData, recipes_elementShapeRecipe as elementShapeRecipe, recipes_likec4tag as likec4tag, recipes_markdownBlock as markdownBlock, recipes_navigationPanelActionIcon as navigationPanelActionIcon, recipes_overlay as overlay };
41
+ export { recipes_actionBtn as actionBtn, recipes_compoundNode as compoundNode, recipes_edgeActionBtn as edgeActionBtn, recipes_edgeLabel as edgeLabel, recipes_edgePath as edgePath, recipes_elementNode as elementNode, recipes_elementNodeData as elementNodeData, recipes_elementShapeRecipe as elementShapeRecipe, recipes_likec4tag as likec4tag, recipes_markdownBlock as markdownBlock, recipes_navigationPanelActionIcon as navigationPanelActionIcon, recipes_overlay as overlay };
39
42
  }
40
43
 
41
44
  declare const navigationLink: _pandacss_types.SlotRecipeConfig;
42
45
 
46
+ declare const navigationPanel: _pandacss_types.SlotRecipeConfig;
47
+
43
48
  declare const slotRecipes_navigationLink: typeof navigationLink;
49
+ declare const slotRecipes_navigationPanel: typeof navigationPanel;
44
50
  declare namespace slotRecipes {
45
- export { slotRecipes_navigationLink as navigationLink };
51
+ export { slotRecipes_navigationLink as navigationLink, slotRecipes_navigationPanel as navigationPanel };
46
52
  }
47
53
 
48
54
  declare const theme: {
package/dist/preset.mjs CHANGED
@@ -3935,12 +3935,10 @@ function createPreset(options) {
3935
3935
  const keyframes = defineKeyframes({
3936
3936
  "indicatorOpacity": {
3937
3937
  "0%": {
3938
- opacity: 0.8,
3939
- strokeOpacity: 0.8
3938
+ opacity: 0.8
3940
3939
  },
3941
3940
  "100%": {
3942
- opacity: 0.4,
3943
- strokeOpacity: 0.4
3941
+ opacity: 0.3
3944
3942
  }
3945
3943
  },
3946
3944
  "xyedgeAnimated": {
@@ -3956,10 +3954,11 @@ const keyframes = defineKeyframes({
3956
3954
  const animationStyles = defineAnimationStyles({
3957
3955
  "indicator": {
3958
3956
  value: {
3959
- animationDuration: "1s",
3957
+ animationDuration: ".8s",
3960
3958
  animationIterationCount: "infinite",
3961
3959
  animationDirection: "alternate",
3962
- animationName: "indicatorOpacity"
3960
+ animationName: "indicatorOpacity",
3961
+ animationTimingFunction: "{easings.in}"
3963
3962
  }
3964
3963
  },
3965
3964
  "xyedgeAnimated": {
@@ -4704,7 +4703,9 @@ const conditions$1 = {
4704
4703
  shapeMobile: ":where([data-likec4-shape='mobile']) &",
4705
4704
  shapeCylinder: ":where([data-likec4-shape='cylinder']) &",
4706
4705
  shapeStorage: ":where([data-likec4-shape='storage']) &",
4707
- shapeQueue: ":where([data-likec4-shape='queue']) &"
4706
+ shapeQueue: ":where([data-likec4-shape='queue']) &",
4707
+ shapeBucket: ":where([data-likec4-shape='bucket']) &",
4708
+ shapeDocument: ":where([data-likec4-shape='document']) &"
4708
4709
  };
4709
4710
  const generatedGlobalCss = {
4710
4711
  ":where([data-likec4-text-size='xs'])": {
@@ -5734,6 +5735,52 @@ const edgePath = defineSlotRecipe({
5734
5735
  conditions: ["*"]
5735
5736
  }]
5736
5737
  });
5738
+ const elementNode = defineRecipe({
5739
+ className: "likec4-element-node",
5740
+ jsx: ["ElementNodeContainer", "ElementNode"],
5741
+ base: {
5742
+ position: "relative",
5743
+ width: "full",
5744
+ height: "full",
5745
+ padding: "0",
5746
+ margin: "0",
5747
+ display: "flex",
5748
+ alignItems: "center",
5749
+ justifyContent: "center",
5750
+ pointerEvents: "none",
5751
+ _focusVisible: {
5752
+ outline: "none"
5753
+ },
5754
+ _whenSelectable: {
5755
+ pointerEvents: "all",
5756
+ _before: {
5757
+ content: '" "',
5758
+ position: "absolute",
5759
+ top: "[calc(100% - 4px)]",
5760
+ left: "0",
5761
+ width: "full",
5762
+ height: "24px",
5763
+ background: "transparent",
5764
+ pointerEvents: "all"
5765
+ }
5766
+ },
5767
+ _reduceGraphicsOnPan: {
5768
+ _before: {
5769
+ display: "none"
5770
+ }
5771
+ },
5772
+ [`:where(.react-flow__node.selectable:not(.dragging)) &`]: {
5773
+ cursor: "pointer"
5774
+ },
5775
+ [`&:is([data-likec4-shape="document"])`]: {
5776
+ paddingBottom: "16px"
5777
+ }
5778
+ },
5779
+ staticCss: [{
5780
+ conditions: ["*"],
5781
+ responsive: true
5782
+ }]
5783
+ });
5737
5784
  const parts$2 = defineParts({
5738
5785
  root: { selector: "&" },
5739
5786
  icon: { selector: "& [data-likec4-icon]" },
@@ -5786,6 +5833,10 @@ const elementNodeData = defineRecipe({
5786
5833
  paddingTop: "32px",
5787
5834
  paddingBottom: "28px"
5788
5835
  },
5836
+ _shapeBucket: {
5837
+ paddingLeft: "calc(var(--likec4-spacing) + 20px)",
5838
+ paddingRight: "calc(var(--likec4-spacing) + 20px)"
5839
+ },
5789
5840
  _shapeSizeXs: {
5790
5841
  [iconSize$1]: "24px"
5791
5842
  },
@@ -5940,6 +5991,7 @@ const elementShapeRecipe = defineRecipe({
5940
5991
  ["--likec4-outline-size"]: `4px`
5941
5992
  },
5942
5993
  outline: {
5994
+ opacity: 0.8,
5943
5995
  visibility: {
5944
5996
  base: "hidden",
5945
5997
  _smallZoom: "hidden",
@@ -5962,6 +6014,7 @@ const elementShapeRecipe = defineRecipe({
5962
6014
  html: parts$1({
5963
6015
  root: {
5964
6016
  backgroundColor: "var(--likec4-palette-fill)",
6017
+ border: "none",
5965
6018
  borderRadius: "[6px]",
5966
6019
  boxShadow: {
5967
6020
  base: [
@@ -6050,7 +6103,7 @@ const elementShapeRecipe = defineRecipe({
6050
6103
  fill: "var(--likec4-palette-stroke)"
6051
6104
  },
6052
6105
  '& [data-likec4-fill="mix-stroke"]': {
6053
- fill: "[color-mix(in oklab, var(--likec4-palette-stroke) 90%, var(--likec4-palette-fill))]"
6106
+ fill: "[color-mix(in oklab, var(--likec4-palette-stroke) 80%, var(--likec4-palette-fill))]"
6054
6107
  }
6055
6108
  },
6056
6109
  multipleSvg: {
@@ -6079,16 +6132,39 @@ const elementShapeRecipe = defineRecipe({
6079
6132
  },
6080
6133
  outline: {
6081
6134
  stroke: "var(--likec4-palette-outline)",
6082
- fill: "[none]",
6083
- strokeWidth: 3,
6084
- strokeOpacity: 0.8,
6135
+ fill: "none",
6136
+ strokeWidth: 4,
6085
6137
  animationStyle: "indicator"
6086
6138
  }
6087
6139
  })
6140
+ },
6141
+ withBorder: {
6142
+ true: {},
6143
+ false: {}
6088
6144
  }
6089
6145
  },
6146
+ defaultVariants: {
6147
+ withBorder: false
6148
+ },
6149
+ compoundVariants: [{
6150
+ shapetype: "html",
6151
+ withBorder: true,
6152
+ css: parts$1({
6153
+ root: {
6154
+ borderStyle: "solid",
6155
+ borderWidth: "3px",
6156
+ borderColor: "var(--likec4-palette-stroke)",
6157
+ "--likec4-outline-size": "6px"
6158
+ },
6159
+ outline: {
6160
+ borderRadius: "10px"
6161
+ }
6162
+ })
6163
+ }],
6090
6164
  staticCss: [{
6091
6165
  shapetype: ["*"],
6166
+ withBorder: ["*"],
6167
+ responsive: true,
6092
6168
  conditions: ["*"]
6093
6169
  }]
6094
6170
  });
@@ -6671,6 +6747,7 @@ const recipes = {
6671
6747
  edgeActionBtn,
6672
6748
  edgeLabel,
6673
6749
  edgePath,
6750
+ elementNode,
6674
6751
  elementNodeData,
6675
6752
  elementShapeRecipe,
6676
6753
  likec4tag,
@@ -6941,9 +7018,118 @@ const navigationLink = defineSlotRecipe({
6941
7018
  conditions: ["*"]
6942
7019
  }]
6943
7020
  });
7021
+ const navigationPanel = defineSlotRecipe({
7022
+ className: "likec4-navigation-panel",
7023
+ jsx: ["NavigationPanel", /NavigationPanel/],
7024
+ slots: ["root", "body", "logo", "label", "dropdown"],
7025
+ description: "LikeC4 Navigation panel",
7026
+ base: {
7027
+ root: {
7028
+ display: "flex",
7029
+ flexDirection: "column",
7030
+ alignItems: "flex-start",
7031
+ pointerEvents: "none",
7032
+ position: "absolute",
7033
+ top: "0",
7034
+ left: "0",
7035
+ margin: "0",
7036
+ width: "100%",
7037
+ gap: "xxs",
7038
+ maxWidth: [
7039
+ "calc(100vw)",
7040
+ "calc(100cqw)"
7041
+ ],
7042
+ "@/sm": {
7043
+ margin: "xs",
7044
+ gap: "xs",
7045
+ width: "max-content",
7046
+ maxWidth: [
7047
+ "calc(100vw - 2 * {spacing.md})",
7048
+ "calc(100cqw - 2 * {spacing.md})"
7049
+ ]
7050
+ },
7051
+ _print: {
7052
+ display: "none"
7053
+ }
7054
+ },
7055
+ body: {
7056
+ display: "flex",
7057
+ flexDirection: "row",
7058
+ alignItems: "center",
7059
+ layerStyle: "likec4.panel",
7060
+ position: "relative",
7061
+ gap: "xs",
7062
+ pointerEvents: "all",
7063
+ width: "100%",
7064
+ cursor: "default"
7065
+ },
7066
+ logo: {
7067
+ display: "flex",
7068
+ flexDirection: "row",
7069
+ padding: "0.5",
7070
+ margin: "0",
7071
+ background: "none",
7072
+ border: "none",
7073
+ cursor: "pointer"
7074
+ },
7075
+ label: {
7076
+ fontSize: "sm",
7077
+ fontWeight: "500",
7078
+ transition: "fast",
7079
+ userSelect: "none",
7080
+ color: "likec4.panel.text"
7081
+ }
7082
+ },
7083
+ variants: {
7084
+ size: {
7085
+ md: {
7086
+ body: {
7087
+ minHeight: "40px"
7088
+ },
7089
+ logo: {
7090
+ width: {
7091
+ base: "[20px]",
7092
+ "@/md": "[64px]"
7093
+ }
7094
+ }
7095
+ },
7096
+ lg: {
7097
+ body: {
7098
+ "@/sm": {
7099
+ gap: "sm",
7100
+ minHeight: "48px",
7101
+ paddingInline: "md",
7102
+ _hover: {
7103
+ boxShadow: "xl"
7104
+ }
7105
+ }
7106
+ },
7107
+ logo: {
7108
+ "@/sm": {
7109
+ width: "[74px]"
7110
+ }
7111
+ },
7112
+ label: {
7113
+ "@/sm": {
7114
+ fontSize: "md"
7115
+ }
7116
+ }
7117
+ }
7118
+ }
7119
+ },
7120
+ defaultVariants: {
7121
+ size: "md"
7122
+ },
7123
+ staticCss: [{
7124
+ conditions: ["*"],
7125
+ size: ["*"],
7126
+ responsive: true
7127
+ }]
7128
+ });
6944
7129
  const slotRecipes = {
6945
7130
  __proto__: null,
6946
- navigationLink
7131
+ navigationLink,
7132
+ navigationPanel
6947
7133
  };
6948
7134
  const textStyles = defineTextStyles({
6949
7135
  dimmed: {
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ElementNodeVariant {
6
+
7
+ }
8
+
9
+ type ElementNodeVariantMap = {
10
+ [key in keyof ElementNodeVariant]: Array<ElementNodeVariant[key]>
11
+ }
12
+
13
+
14
+
15
+ export type ElementNodeVariantProps = {
16
+ [key in keyof ElementNodeVariant]?: ConditionalValue<ElementNodeVariant[key]> | undefined
17
+ }
18
+
19
+ export interface ElementNodeRecipe {
20
+
21
+ __type: ElementNodeVariantProps
22
+ (props?: ElementNodeVariantProps): string
23
+ raw: (props?: ElementNodeVariantProps) => ElementNodeVariantProps
24
+ variantMap: ElementNodeVariantMap
25
+ variantKeys: Array<keyof ElementNodeVariant>
26
+ splitVariantProps<Props extends ElementNodeVariantProps>(props: Props): [ElementNodeVariantProps, Pretty<DistributiveOmit<Props, keyof ElementNodeVariantProps>>]
27
+ getVariantProps: (props?: ElementNodeVariantProps) => ElementNodeVariantProps
28
+ }
29
+
30
+
31
+ export declare const elementNode: ElementNodeRecipe
@@ -0,0 +1,24 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const elementNodeFn = /* @__PURE__ */ createRecipe('likec4-element-node', {}, [])
5
+
6
+ const elementNodeVariantMap = {}
7
+
8
+ const elementNodeVariantKeys = Object.keys(elementNodeVariantMap)
9
+
10
+ export const elementNode = /* @__PURE__ */ Object.assign(memo(elementNodeFn.recipeFn), {
11
+ __recipe__: true,
12
+ __name__: 'elementNode',
13
+ __getCompoundVariantCss__: elementNodeFn.__getCompoundVariantCss__,
14
+ raw: (props) => props,
15
+ variantKeys: elementNodeVariantKeys,
16
+ variantMap: elementNodeVariantMap,
17
+ merge(recipe) {
18
+ return mergeRecipes(this, recipe)
19
+ },
20
+ splitVariantProps(props) {
21
+ return splitProps(props, elementNodeVariantKeys)
22
+ },
23
+ getVariantProps: elementNodeFn.getVariantProps,
24
+ })
@@ -4,6 +4,10 @@ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
4
 
5
5
  interface ElementShapeRecipeVariant {
6
6
  shapetype: "html" | "svg"
7
+ /**
8
+ * @default false
9
+ */
10
+ withBorder: boolean
7
11
  }
8
12
 
9
13
  type ElementShapeRecipeVariantMap = {
@@ -13,7 +17,7 @@ type ElementShapeRecipeVariantMap = {
13
17
 
14
18
 
15
19
  export type ElementShapeRecipeVariantProps = {
16
- [key in keyof ElementShapeRecipeVariant]?: ConditionalValue<ElementShapeRecipeVariant[key]> | undefined
20
+ [key in keyof ElementShapeRecipeVariant]?: ElementShapeRecipeVariant[key] | undefined
17
21
  }
18
22
 
19
23
  export interface ElementShapeRecipeRecipe {
@@ -1,12 +1,34 @@
1
1
  import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
- const elementShapeRecipeFn = /* @__PURE__ */ createRecipe('likec4-element-shape', {}, [])
4
+ const elementShapeRecipeFn = /* @__PURE__ */ createRecipe('likec4-element-shape', {
5
+ "withBorder": false
6
+ }, [
7
+ {
8
+ "shapetype": "html",
9
+ "withBorder": true,
10
+ "css": {
11
+ "&": {
12
+ "borderStyle": "solid",
13
+ "borderWidth": "3px",
14
+ "borderColor": "var(--likec4-palette-stroke)",
15
+ "--likec4-outline-size": "6px"
16
+ },
17
+ "& .likec4-shape-outline": {
18
+ "borderRadius": "10px"
19
+ }
20
+ }
21
+ }
22
+ ])
5
23
 
6
24
  const elementShapeRecipeVariantMap = {
7
25
  "shapetype": [
8
26
  "html",
9
27
  "svg"
28
+ ],
29
+ "withBorder": [
30
+ "true",
31
+ "false"
10
32
  ]
11
33
  }
12
34
 
@@ -4,10 +4,12 @@ export * from './compound-node';
4
4
  export * from './edge-action-btn';
5
5
  export * from './edge-label';
6
6
  export * from './edge-path';
7
+ export * from './element-node';
7
8
  export * from './element-node-data';
8
9
  export * from './element-shape-recipe';
9
10
  export * from './likec4tag';
10
11
  export * from './markdown-block';
11
12
  export * from './navigation-panel-action-icon';
12
13
  export * from './overlay';
13
- export * from './navigation-link';
14
+ export * from './navigation-link';
15
+ export * from './navigation-panel';
@@ -3,10 +3,12 @@ export * from './compound-node.mjs';
3
3
  export * from './edge-action-btn.mjs';
4
4
  export * from './edge-label.mjs';
5
5
  export * from './edge-path.mjs';
6
+ export * from './element-node.mjs';
6
7
  export * from './element-node-data.mjs';
7
8
  export * from './element-shape-recipe.mjs';
8
9
  export * from './likec4tag.mjs';
9
10
  export * from './markdown-block.mjs';
10
11
  export * from './navigation-panel-action-icon.mjs';
11
12
  export * from './overlay.mjs';
12
- export * from './navigation-link.mjs';
13
+ export * from './navigation-link.mjs';
14
+ export * from './navigation-panel.mjs';
@@ -0,0 +1,36 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface NavigationPanelVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md" | "lg"
10
+ }
11
+
12
+ type NavigationPanelVariantMap = {
13
+ [key in keyof NavigationPanelVariant]: Array<NavigationPanelVariant[key]>
14
+ }
15
+
16
+ type NavigationPanelSlot = "root" | "body" | "logo" | "label" | "dropdown"
17
+
18
+ export type NavigationPanelVariantProps = {
19
+ [key in keyof NavigationPanelVariant]?: ConditionalValue<NavigationPanelVariant[key]> | undefined
20
+ }
21
+
22
+ export interface NavigationPanelRecipe {
23
+ __slot: NavigationPanelSlot
24
+ __type: NavigationPanelVariantProps
25
+ (props?: NavigationPanelVariantProps): Pretty<Record<NavigationPanelSlot, string>>
26
+ raw: (props?: NavigationPanelVariantProps) => NavigationPanelVariantProps
27
+ variantMap: NavigationPanelVariantMap
28
+ variantKeys: Array<keyof NavigationPanelVariant>
29
+ splitVariantProps<Props extends NavigationPanelVariantProps>(props: Props): [NavigationPanelVariantProps, Pretty<DistributiveOmit<Props, keyof NavigationPanelVariantProps>>]
30
+ getVariantProps: (props?: NavigationPanelVariantProps) => NavigationPanelVariantProps
31
+ }
32
+
33
+ /**
34
+ * LikeC4 Navigation panel
35
+ */
36
+ export declare const navigationPanel: NavigationPanelRecipe
@@ -0,0 +1,58 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const navigationPanelDefaultVariants = {
5
+ "size": "md"
6
+ }
7
+ const navigationPanelCompoundVariants = []
8
+
9
+ const navigationPanelSlotNames = [
10
+ [
11
+ "root",
12
+ "likec4-navigation-panel__root"
13
+ ],
14
+ [
15
+ "body",
16
+ "likec4-navigation-panel__body"
17
+ ],
18
+ [
19
+ "logo",
20
+ "likec4-navigation-panel__logo"
21
+ ],
22
+ [
23
+ "label",
24
+ "likec4-navigation-panel__label"
25
+ ],
26
+ [
27
+ "dropdown",
28
+ "likec4-navigation-panel__dropdown"
29
+ ]
30
+ ]
31
+ const navigationPanelSlotFns = /* @__PURE__ */ navigationPanelSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, navigationPanelDefaultVariants, getSlotCompoundVariant(navigationPanelCompoundVariants, slotName))])
32
+
33
+ const navigationPanelFn = memo((props = {}) => {
34
+ return Object.fromEntries(navigationPanelSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
35
+ })
36
+
37
+ const navigationPanelVariantKeys = [
38
+ "size"
39
+ ]
40
+ const getVariantProps = (variants) => ({ ...navigationPanelDefaultVariants, ...compact(variants) })
41
+
42
+ export const navigationPanel = /* @__PURE__ */ Object.assign(navigationPanelFn, {
43
+ __recipe__: false,
44
+ __name__: 'navigationPanel',
45
+ raw: (props) => props,
46
+ classNameMap: {},
47
+ variantKeys: navigationPanelVariantKeys,
48
+ variantMap: {
49
+ "size": [
50
+ "md",
51
+ "lg"
52
+ ]
53
+ },
54
+ splitVariantProps(props) {
55
+ return splitProps(props, navigationPanelVariantKeys)
56
+ },
57
+ getVariantProps
58
+ })
@@ -240,6 +240,10 @@ export interface Conditions {
240
240
  "_shapeStorage": string
241
241
  /** `:where([data-likec4-shape='queue']) &` */
242
242
  "_shapeQueue": string
243
+ /** `:where([data-likec4-shape='bucket']) &` */
244
+ "_shapeBucket": string
245
+ /** `:where([data-likec4-shape='document']) &` */
246
+ "_shapeDocument": string
243
247
  /** `&:not(:is(:disabled, [disabled], [data-disabled]))` */
244
248
  "_notDisabled": string
245
249
  /** `.likec4-root:is([data-likec4-reduced-graphics]) &` */
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.46.4",
5
+ "version": "1.47.0",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -71,8 +71,8 @@
71
71
  "./dev": "./dev.ts"
72
72
  },
73
73
  "peerDependencies": {
74
- "@pandacss/dev": "^1.7.1",
75
- "@pandacss/types": "^1.7.1",
74
+ "@pandacss/dev": "^1.7.2",
75
+ "@pandacss/types": "^1.7.2",
76
76
  "react": "^18.x || ^19.x",
77
77
  "@types/react": "^18.x || ^19.x"
78
78
  },
@@ -89,8 +89,8 @@
89
89
  "@pandabox/panda-plugins": "^0.0.8",
90
90
  "@pandabox/utils": "^0.0.5",
91
91
  "@pandabox/unplugin": "^0.2.2",
92
- "@pandacss/dev": "^1.7.1",
93
- "@pandacss/types": "^1.7.1",
92
+ "@pandacss/dev": "^1.7.2",
93
+ "@pandacss/types": "^1.7.2",
94
94
  "@types/picomatch": "^4.0.2",
95
95
  "@types/react": "19.2.7",
96
96
  "@types/react-dom": "19.2.3",
@@ -98,7 +98,7 @@
98
98
  "nano-spawn": "^2.0.0",
99
99
  "unbuild": "3.5.0",
100
100
  "typescript": "5.9.3",
101
- "@likec4/style-preset": "1.46.4",
101
+ "@likec4/style-preset": "1.47.0",
102
102
  "@likec4/devops": "1.42.0",
103
103
  "@likec4/tsconfig": "1.46.1"
104
104
  },