@saas-ui/react 3.0.0-next.35 → 3.0.0-next.37

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.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.tsbuildinfo.json +1 -1
  3. package/dist/components/accordion/accordion.recipe.d.ts +9 -0
  4. package/dist/components/accordion/accordion.recipe.js +10 -1
  5. package/dist/components/app-shell/app-shell.recipe.d.ts +1 -1
  6. package/dist/components/color-mode/color-mode.d.ts +19 -0
  7. package/dist/components/color-mode/color-mode.js +35 -0
  8. package/dist/components/color-mode/index.d.ts +2 -0
  9. package/dist/components/color-mode/index.js +1 -0
  10. package/dist/components/combobox/combobox.recipe.d.ts +128 -0
  11. package/dist/components/combobox/combobox.recipe.js +279 -0
  12. package/dist/components/combobox/index.d.ts +1 -0
  13. package/dist/components/combobox/index.js +1 -0
  14. package/dist/components/file-upload/file-upload.recipe.d.ts +1 -1
  15. package/dist/components/link-box/index.d.ts +2 -0
  16. package/dist/components/link-box/index.js +1 -0
  17. package/dist/components/menu/menu.recipe.d.ts +1 -1
  18. package/dist/components/navbar/navbar.d.ts +3 -3
  19. package/dist/components/page/page.d.ts +3 -3
  20. package/dist/components/persona/persona-primitive.js +1 -1
  21. package/dist/components/progress-circle/progress-circle.recipe.d.ts +2 -2
  22. package/dist/components/progress-circle/progress-circle.recipe.js +2 -2
  23. package/dist/components/section/section.d.ts +2 -2
  24. package/dist/components/segmented-control/segment-group.recipe.d.ts +1 -1
  25. package/dist/components/select/select.recipe.d.ts +1 -1
  26. package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +5 -0
  27. package/dist/components/sidebar/sidebar-nav-item.recipe.js +5 -0
  28. package/dist/components/sidebar/sidebar.d.ts +12 -12
  29. package/dist/components/toaster/toaster.d.ts +3 -2
  30. package/dist/index.d.ts +4 -0
  31. package/dist/index.js +3 -0
  32. package/dist/theme/slot-recipes.d.ts +169 -27
  33. package/dist/theme/slot-recipes.js +2 -0
  34. package/package.json +22 -17
  35. package/CHANGELOG.md +0 -4209
@@ -50,6 +50,9 @@ export declare const accordionSlotRecipe: import("@chakra-ui/react").SlotRecipeD
50
50
  textStyle: "sm";
51
51
  py: "var(--accordion-padding-y)";
52
52
  };
53
+ itemContent: {
54
+ textStyle: "sm";
55
+ };
53
56
  };
54
57
  md: {
55
58
  root: {
@@ -60,6 +63,9 @@ export declare const accordionSlotRecipe: import("@chakra-ui/react").SlotRecipeD
60
63
  textStyle: "md";
61
64
  py: "var(--accordion-padding-y)";
62
65
  };
66
+ itemContent: {
67
+ textStyle: "md";
68
+ };
63
69
  };
64
70
  lg: {
65
71
  root: {
@@ -70,6 +76,9 @@ export declare const accordionSlotRecipe: import("@chakra-ui/react").SlotRecipeD
70
76
  textStyle: "lg";
71
77
  py: "var(--accordion-padding-y)";
72
78
  };
79
+ itemContent: {
80
+ textStyle: "lg";
81
+ };
73
82
  };
74
83
  };
75
84
  }>;
@@ -30,7 +30,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
30
30
  },
31
31
  itemBody: {
32
32
  pt: 'var(--accordion-padding-y)',
33
- pb: 'calc(var(--accordion-padding-y) * 2)',
33
+ // pb: 'calc(var(--accordion-padding-y) * 2)',
34
34
  },
35
35
  itemContent: {
36
36
  overflow: 'hidden',
@@ -109,6 +109,9 @@ export const accordionSlotRecipe = defineSlotRecipe({
109
109
  textStyle: 'sm',
110
110
  py: 'var(--accordion-padding-y)',
111
111
  },
112
+ itemContent: {
113
+ textStyle: 'sm',
114
+ },
112
115
  },
113
116
  md: {
114
117
  root: {
@@ -119,6 +122,9 @@ export const accordionSlotRecipe = defineSlotRecipe({
119
122
  textStyle: 'md',
120
123
  py: 'var(--accordion-padding-y)',
121
124
  },
125
+ itemContent: {
126
+ textStyle: 'md',
127
+ },
122
128
  },
123
129
  lg: {
124
130
  root: {
@@ -129,6 +135,9 @@ export const accordionSlotRecipe = defineSlotRecipe({
129
135
  textStyle: 'lg',
130
136
  py: 'var(--accordion-padding-y)',
131
137
  },
138
+ itemContent: {
139
+ textStyle: 'lg',
140
+ },
132
141
  },
133
142
  },
134
143
  },
@@ -1,4 +1,4 @@
1
- export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "content" | "main", {
1
+ export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "main", {
2
2
  fullscreen: {
3
3
  true: {
4
4
  root: {
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import type { SpanProps } from '@chakra-ui/react';
3
+ import type { ThemeProviderProps } from 'next-themes';
4
+ export interface ColorModeProviderProps extends ThemeProviderProps {
5
+ }
6
+ export declare function ColorModeProvider(props: ColorModeProviderProps): import("react/jsx-runtime").JSX.Element;
7
+ export type ColorMode = 'light' | 'dark';
8
+ export interface UseColorModeReturn {
9
+ colorMode: ColorMode;
10
+ setColorMode: (colorMode: ColorMode) => void;
11
+ toggleColorMode: () => void;
12
+ }
13
+ export declare function useColorMode(): UseColorModeReturn;
14
+ export declare function useColorModeValue<T>(light: T, dark: T): T;
15
+ export declare const ColorModeTrigger: React.ForwardRefExoticComponent<Omit<import("@chakra-ui/react").PatchHtmlProps<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">>, "zIndex" | "opacity" | "cursor" | "page" | "container" | "_hover" | "_active" | "_focus" | "_focusWithin" | "_focusVisible" | "_disabled" | "_visited" | "_target" | "_readOnly" | "_readWrite" | "_empty" | "_checked" | "_enabled" | "_expanded" | "_highlighted" | "_complete" | "_incomplete" | "_dragging" | "_before" | "_after" | "_firstLetter" | "_firstLine" | "_marker" | "_selection" | "_file" | "_backdrop" | "_first" | "_last" | "_notFirst" | "_notLast" | "_only" | "_even" | "_odd" | "_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" | "sm" | "smOnly" | "smDown" | "md" | "mdOnly" | "mdDown" | "lg" | "lgOnly" | "lgDown" | "xl" | "xlOnly" | "xlDown" | "2xl" | "2xlOnly" | "2xlDown" | "smToMd" | "smToLg" | "smToXl" | "smTo2xl" | "mdToLg" | "mdToXl" | "mdTo2xl" | "lgToXl" | "lgTo2xl" | "xlTo2xl" | "base" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "animationRange" | "animationRangeStart" | "animationRangeEnd" | "animationTimeline" | "transformOrigin" | "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" | "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" | "containerName" | "containerType" | "content" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "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" | "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" | "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" | "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" | "zoom" | "alignmentBaseline" | "baselineShift" | "colorInterpolation" | "colorRendering" | "glyphOrientationVertical" | "bg" | "bgColor" | "bgSize" | "bgPos" | "bgRepeat" | "bgAttachment" | "bgClip" | "bgGradient" | "bgImg" | "bgImage" | "borderStart" | "borderEnd" | "borderX" | "borderY" | "borderStartColor" | "borderEndColor" | "borderStartStyle" | "borderEndStyle" | "rounded" | "roundedTopLeft" | "roundedStartStart" | "borderTopStartRadius" | "roundedEndStart" | "borderBottomStartRadius" | "roundedTopRight" | "roundedStartEnd" | "borderTopEndRadius" | "roundedEndEnd" | "borderBottomEndRadius" | "roundedBottomLeft" | "roundedBottomRight" | "roundedStart" | "borderStartRadius" | "roundedEnd" | "borderEndRadius" | "roundedTop" | "roundedBottom" | "roundedLeft" | "roundedRight" | "borderXWidth" | "borderStartWidth" | "borderEndWidth" | "borderYWidth" | "shadow" | "shadowColor" | "blendMode" | "bgBlendMode" | "gapY" | "gapX" | "flexDir" | "w" | "h" | "minW" | "minH" | "maxW" | "maxH" | "overscroll" | "overscrollX" | "overscrollY" | "scrollPaddingX" | "scrollPaddingY" | "listStylePos" | "listStyleImg" | "pos" | "insetX" | "insetY" | "insetStart" | "insetEnd" | "m" | "mt" | "mr" | "mb" | "ml" | "ms" | "marginStart" | "me" | "marginEnd" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "ps" | "paddingStart" | "pe" | "paddingEnd" | "px" | "paddingX" | "py" | "paddingY" | "textDecor" | "backgroundGradient" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderInlineStartRadius" | "borderInlineEndRadius" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius" | "divideX" | "divideY" | "divideColor" | "divideStyle" | "boxShadowColor" | "blur" | "brightness" | "contrast" | "grayscale" | "hueRotate" | "invert" | "saturate" | "sepia" | "dropShadow" | "backdropBlur" | "backdropBrightness" | "backdropContrast" | "backdropGrayscale" | "backdropHueRotate" | "backdropInvert" | "backdropOpacity" | "backdropSaturate" | "backdropSepia" | "focusRing" | "focusVisibleRing" | "focusRingColor" | "focusRingOffset" | "focusRingWidth" | "focusRingStyle" | "boxSize" | "hideFrom" | "hideBelow" | "scrollbar" | "scrollMarginX" | "scrollMarginY" | "scrollSnapStrictness" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "ring" | "ringColor" | "ringOffset" | "ringOffsetColor" | "ringInset" | "skewX" | "skewY" | "scaleX" | "scaleY" | "spaceXReverse" | "spaceX" | "spaceYReverse" | "spaceY" | "rotateX" | "rotateY" | "translateX" | "translateY" | "truncate" | "srOnly" | "debug" | "colorPalette" | "textStyle" | "layerStyle" | "animationStyle" | "css" | keyof import("@chakra-ui/react").PolymorphicProps> & Omit<import("@chakra-ui/react").JsxStyleProps, never> & import("@chakra-ui/react").PolymorphicProps & {
16
+ fallback?: React.ReactNode;
17
+ } & React.RefAttributes<HTMLButtonElement>>;
18
+ export declare const LightMode: React.ForwardRefExoticComponent<SpanProps & React.RefAttributes<HTMLSpanElement>>;
19
+ export declare const DarkMode: React.ForwardRefExoticComponent<SpanProps & React.RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from 'react';
4
+ import { ClientOnly, Span, chakra } from '@chakra-ui/react';
5
+ import { ThemeProvider, useTheme } from 'next-themes';
6
+ export function ColorModeProvider(props) {
7
+ return (_jsx(ThemeProvider, { attribute: "class", disableTransitionOnChange: true, ...props }));
8
+ }
9
+ export function useColorMode() {
10
+ const { resolvedTheme, setTheme, forcedTheme } = useTheme();
11
+ const colorMode = forcedTheme || resolvedTheme;
12
+ const toggleColorMode = () => {
13
+ setTheme(resolvedTheme === 'dark' ? 'light' : 'dark');
14
+ };
15
+ return {
16
+ colorMode: colorMode,
17
+ setColorMode: setTheme,
18
+ toggleColorMode,
19
+ };
20
+ }
21
+ export function useColorModeValue(light, dark) {
22
+ const { colorMode } = useColorMode();
23
+ return colorMode === 'dark' ? dark : light;
24
+ }
25
+ export const ColorModeTrigger = React.forwardRef(function ColorModeButton(props, ref) {
26
+ const { fallback, children, ...rest } = props;
27
+ const { toggleColorMode } = useColorMode();
28
+ return (_jsx(ClientOnly, { fallback: props.fallback, children: _jsx(chakra.button, { onClick: toggleColorMode, "aria-label": "Toggle color mode", ref: ref, ...rest, children: children }) }));
29
+ });
30
+ export const LightMode = React.forwardRef(function LightMode(props, ref) {
31
+ return (_jsx(Span, { color: "fg", display: "contents", className: "chakra-theme light", colorPalette: "gray", colorScheme: "light", ref: ref, ...props }));
32
+ });
33
+ export const DarkMode = React.forwardRef(function DarkMode(props, ref) {
34
+ return (_jsx(Span, { color: "fg", display: "contents", className: "chakra-theme dark", colorPalette: "gray", colorScheme: "dark", ref: ref, ...props }));
35
+ });
@@ -0,0 +1,2 @@
1
+ export { ColorModeProvider, useColorMode, useColorModeValue, DarkMode, LightMode, ColorModeTrigger, } from './color-mode.tsx';
2
+ export type { ColorMode, UseColorModeReturn } from './color-mode.tsx';
@@ -0,0 +1 @@
1
+ export { ColorModeProvider, useColorMode, useColorModeValue, DarkMode, LightMode, ColorModeTrigger, } from "./color-mode.js";
@@ -0,0 +1,128 @@
1
+ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "label" | "control" | "root" | "item" | "itemIndicator" | "positioner" | "list" | "trigger" | "input" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "itemText" | "indicatorGroup" | "empty", {
2
+ variant: {
3
+ outline: {
4
+ input: {
5
+ bg: "transparent";
6
+ borderWidth: "1px";
7
+ borderColor: "border";
8
+ focusVisibleRing: "inside";
9
+ };
10
+ };
11
+ subtle: {
12
+ input: {
13
+ borderWidth: "1px";
14
+ borderColor: "transparent";
15
+ bg: "bg.muted";
16
+ focusVisibleRing: "inside";
17
+ };
18
+ };
19
+ flushed: {
20
+ input: {
21
+ bg: "transparent";
22
+ borderBottomWidth: "1px";
23
+ borderBottomColor: "border";
24
+ borderRadius: "0";
25
+ px: "0";
26
+ _focusVisible: {
27
+ borderColor: "var(--focus-color)";
28
+ boxShadow: "0px 1px 0px 0px var(--focus-color)";
29
+ };
30
+ };
31
+ indicatorGroup: {
32
+ px: "0";
33
+ };
34
+ };
35
+ };
36
+ size: {
37
+ xs: {
38
+ root: {
39
+ '--combobox-input-height': "sizes.6";
40
+ '--combobox-input-padding-x': "spacing.2";
41
+ '--combobox-indicator-size': "sizes.3.5";
42
+ };
43
+ input: {
44
+ textStyle: "xs";
45
+ };
46
+ content: {
47
+ '--combobox-item-padding-x': "spacing.1";
48
+ '--combobox-item-padding-y': "spacing.0.5";
49
+ '--combobox-indicator-size': "sizes.3.5";
50
+ p: "0.5";
51
+ textStyle: "xs";
52
+ };
53
+ trigger: {
54
+ textStyle: "xs";
55
+ gap: "1";
56
+ };
57
+ };
58
+ sm: {
59
+ root: {
60
+ '--combobox-input-height': "sizes.7";
61
+ '--combobox-input-padding-x': "spacing.2.5";
62
+ '--combobox-indicator-size': "sizes.4";
63
+ };
64
+ input: {
65
+ textStyle: "sm";
66
+ };
67
+ content: {
68
+ '--combobox-item-padding-x': "spacing.1.5";
69
+ '--combobox-item-padding-y': "spacing.1";
70
+ '--combobox-indicator-size': "sizes.4";
71
+ p: "0.5";
72
+ textStyle: "xs";
73
+ };
74
+ trigger: {
75
+ textStyle: "xs";
76
+ gap: "1";
77
+ };
78
+ };
79
+ md: {
80
+ root: {
81
+ '--combobox-input-height': "sizes.8";
82
+ '--combobox-input-padding-x': "spacing.3";
83
+ '--combobox-indicator-size': "sizes.4";
84
+ };
85
+ input: {
86
+ textStyle: "sm";
87
+ };
88
+ content: {
89
+ '--combobox-item-padding-x': "spacing.2";
90
+ '--combobox-item-padding-y': "spacing.1.5";
91
+ '--combobox-indicator-size': "sizes.4";
92
+ p: "1";
93
+ textStyle: "sm";
94
+ };
95
+ itemIndicator: {
96
+ display: "flex";
97
+ alignItems: "center";
98
+ justifyContent: "center";
99
+ };
100
+ trigger: {
101
+ textStyle: "sm";
102
+ gap: "2";
103
+ };
104
+ };
105
+ lg: {
106
+ root: {
107
+ '--combobox-input-height': "sizes.10";
108
+ '--combobox-input-padding-x': "spacing.4";
109
+ '--combobox-indicator-size': "sizes.5";
110
+ };
111
+ input: {
112
+ textStyle: "md";
113
+ };
114
+ content: {
115
+ '--combobox-item-padding-y': "spacing.2";
116
+ '--combobox-item-padding-x': "spacing.3";
117
+ '--combobox-indicator-size': "sizes.5";
118
+ p: "1.5";
119
+ textStyle: "md";
120
+ };
121
+ trigger: {
122
+ textStyle: "md";
123
+ py: "3";
124
+ gap: "2";
125
+ };
126
+ };
127
+ };
128
+ }>;
@@ -0,0 +1,279 @@
1
+ import { comboboxAnatomy } from '@chakra-ui/react/anatomy';
2
+ import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
+ export const comboboxSlotRecipe = defineSlotRecipe({
4
+ className: 'chakra-combobox',
5
+ slots: comboboxAnatomy.keys(),
6
+ base: {
7
+ root: {
8
+ display: 'flex',
9
+ flexDirection: 'column',
10
+ gap: '1.5',
11
+ width: 'full',
12
+ },
13
+ label: {
14
+ fontWeight: 'medium',
15
+ userSelect: 'none',
16
+ textStyle: 'sm',
17
+ _disabled: {
18
+ layerStyle: 'disabled',
19
+ },
20
+ },
21
+ input: {
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ justifyContent: 'space-between',
25
+ background: 'bg.panel',
26
+ width: 'full',
27
+ minH: 'var(--combobox-input-height)',
28
+ px: 'var(--combobox-input-padding-x)',
29
+ '--input-height': 'var(--combobox-input-height)',
30
+ borderRadius: 'control.md',
31
+ outline: 0,
32
+ userSelect: 'none',
33
+ textAlign: 'start',
34
+ _placeholderShown: {
35
+ color: 'fg.muted',
36
+ },
37
+ _disabled: {
38
+ layerStyle: 'disabled',
39
+ },
40
+ '--focus-color': 'colors.colorPalette.focusRing',
41
+ '--error-color': 'colors.border.error',
42
+ _invalid: {
43
+ focusRingColor: 'var(--error-color)',
44
+ borderColor: 'var(--error-color)',
45
+ },
46
+ },
47
+ trigger: {
48
+ display: 'inline-flex',
49
+ alignItems: 'center',
50
+ justifyContent: 'center',
51
+ '--input-height': 'var(--combobox-input-height)',
52
+ },
53
+ clearTrigger: {
54
+ color: 'fg.muted',
55
+ pointerEvents: 'auto',
56
+ focusVisibleRing: 'inside',
57
+ focusRingWidth: '2px',
58
+ rounded: 'control.sm',
59
+ },
60
+ control: {
61
+ pos: 'relative',
62
+ },
63
+ indicatorGroup: {
64
+ display: 'flex',
65
+ alignItems: 'center',
66
+ justifyContent: 'center',
67
+ gap: '1',
68
+ pos: 'absolute',
69
+ insetEnd: '0',
70
+ top: '0',
71
+ bottom: '0',
72
+ px: 'var(--combobox-input-padding-x)',
73
+ _icon: {
74
+ boxSize: 'var(--combobox-indicator-size)',
75
+ },
76
+ '[data-disabled] &': {
77
+ opacity: 0.5,
78
+ },
79
+ },
80
+ content: {
81
+ layerStyle: 'overlay',
82
+ boxShadow: 'md',
83
+ borderWidth: '1px',
84
+ borderColor: 'border',
85
+ display: 'flex',
86
+ flexDirection: 'column',
87
+ '--menu-z-index': 'zIndex.layer-3',
88
+ zIndex: 'calc(var(--menu-z-index) + var(--layer-index, 0))',
89
+ outline: 0,
90
+ maxH: '96',
91
+ overflowY: 'auto',
92
+ _open: {
93
+ animationStyle: 'slide-fade-in',
94
+ animationDuration: 'fast',
95
+ },
96
+ _closed: {
97
+ animationStyle: 'slide-fade-out',
98
+ animationDuration: '0s',
99
+ },
100
+ '&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))': {
101
+ opacity: 0,
102
+ },
103
+ },
104
+ item: {
105
+ position: 'relative',
106
+ userSelect: 'none',
107
+ display: 'flex',
108
+ alignItems: 'center',
109
+ gap: '2',
110
+ py: 'var(--combobox-item-padding-y)',
111
+ px: 'var(--combobox-item-padding-x)',
112
+ cursor: 'option',
113
+ justifyContent: 'space-between',
114
+ flex: '1',
115
+ textAlign: 'start',
116
+ borderRadius: 'control.md',
117
+ _highlighted: {
118
+ bg: 'bg.emphasized/60',
119
+ },
120
+ _disabled: {
121
+ pointerEvents: 'none',
122
+ opacity: '0.5',
123
+ },
124
+ _icon: {
125
+ boxSize: 'var(--combobox-indicator-size)',
126
+ },
127
+ },
128
+ empty: {
129
+ py: 'var(--combobox-item-padding-y)',
130
+ px: 'var(--combobox-item-padding-x)',
131
+ },
132
+ itemText: {
133
+ flex: '1',
134
+ },
135
+ itemGroup: {
136
+ pb: 'var(--combobox-item-padding-y)',
137
+ _last: {
138
+ pb: '0',
139
+ },
140
+ },
141
+ itemGroupLabel: {
142
+ fontWeight: 'medium',
143
+ py: 'var(--combobox-item-padding-y)',
144
+ px: 'var(--combobox-item-padding-x)',
145
+ },
146
+ },
147
+ variants: {
148
+ variant: {
149
+ outline: {
150
+ input: {
151
+ bg: 'transparent',
152
+ borderWidth: '1px',
153
+ borderColor: 'border',
154
+ focusVisibleRing: 'inside',
155
+ },
156
+ },
157
+ subtle: {
158
+ input: {
159
+ borderWidth: '1px',
160
+ borderColor: 'transparent',
161
+ bg: 'bg.muted',
162
+ focusVisibleRing: 'inside',
163
+ },
164
+ },
165
+ flushed: {
166
+ input: {
167
+ bg: 'transparent',
168
+ borderBottomWidth: '1px',
169
+ borderBottomColor: 'border',
170
+ borderRadius: '0',
171
+ px: '0',
172
+ _focusVisible: {
173
+ borderColor: 'var(--focus-color)',
174
+ boxShadow: '0px 1px 0px 0px var(--focus-color)',
175
+ },
176
+ },
177
+ indicatorGroup: {
178
+ px: '0',
179
+ },
180
+ },
181
+ },
182
+ size: {
183
+ xs: {
184
+ root: {
185
+ '--combobox-input-height': 'sizes.6',
186
+ '--combobox-input-padding-x': 'spacing.2',
187
+ '--combobox-indicator-size': 'sizes.3.5',
188
+ },
189
+ input: {
190
+ textStyle: 'xs',
191
+ },
192
+ content: {
193
+ '--combobox-item-padding-x': 'spacing.1',
194
+ '--combobox-item-padding-y': 'spacing.0.5',
195
+ '--combobox-indicator-size': 'sizes.3.5',
196
+ p: '0.5',
197
+ textStyle: 'xs',
198
+ },
199
+ trigger: {
200
+ textStyle: 'xs',
201
+ gap: '1',
202
+ },
203
+ },
204
+ sm: {
205
+ root: {
206
+ '--combobox-input-height': 'sizes.7',
207
+ '--combobox-input-padding-x': 'spacing.2.5',
208
+ '--combobox-indicator-size': 'sizes.4',
209
+ },
210
+ input: {
211
+ textStyle: 'sm',
212
+ },
213
+ content: {
214
+ '--combobox-item-padding-x': 'spacing.1.5',
215
+ '--combobox-item-padding-y': 'spacing.1',
216
+ '--combobox-indicator-size': 'sizes.4',
217
+ p: '0.5',
218
+ textStyle: 'xs',
219
+ },
220
+ trigger: {
221
+ textStyle: 'xs',
222
+ gap: '1',
223
+ },
224
+ },
225
+ md: {
226
+ root: {
227
+ '--combobox-input-height': 'sizes.8',
228
+ '--combobox-input-padding-x': 'spacing.3',
229
+ '--combobox-indicator-size': 'sizes.4',
230
+ },
231
+ input: {
232
+ textStyle: 'sm',
233
+ },
234
+ content: {
235
+ '--combobox-item-padding-x': 'spacing.2',
236
+ '--combobox-item-padding-y': 'spacing.1.5',
237
+ '--combobox-indicator-size': 'sizes.4',
238
+ p: '1',
239
+ textStyle: 'sm',
240
+ },
241
+ itemIndicator: {
242
+ display: 'flex',
243
+ alignItems: 'center',
244
+ justifyContent: 'center',
245
+ },
246
+ trigger: {
247
+ textStyle: 'sm',
248
+ gap: '2',
249
+ },
250
+ },
251
+ lg: {
252
+ root: {
253
+ '--combobox-input-height': 'sizes.10',
254
+ '--combobox-input-padding-x': 'spacing.4',
255
+ '--combobox-indicator-size': 'sizes.5',
256
+ },
257
+ input: {
258
+ textStyle: 'md',
259
+ },
260
+ content: {
261
+ '--combobox-item-padding-y': 'spacing.2',
262
+ '--combobox-item-padding-x': 'spacing.3',
263
+ '--combobox-indicator-size': 'sizes.5',
264
+ p: '1.5',
265
+ textStyle: 'md',
266
+ },
267
+ trigger: {
268
+ textStyle: 'md',
269
+ py: '3',
270
+ gap: '2',
271
+ },
272
+ },
273
+ },
274
+ },
275
+ defaultVariants: {
276
+ size: 'md',
277
+ variant: 'outline',
278
+ },
279
+ });
@@ -0,0 +1 @@
1
+ export { Combobox, useCombobox, useComboboxContext, useComboboxItemContext, useComboboxStyles, } from '@chakra-ui/react/combobox';
@@ -0,0 +1 @@
1
+ export { Combobox, useCombobox, useComboboxContext, useComboboxItemContext, useComboboxStyles, } from '@chakra-ui/react/combobox';
@@ -1 +1 @@
1
- export declare const fileUploadSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "clearTrigger" | "dropzoneContent" | "fileText", import("@chakra-ui/react").SlotRecipeVariantRecord<"label" | "root" | "item" | "itemContent" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "clearTrigger" | "dropzoneContent" | "fileText">>;
1
+ export declare const fileUploadSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "dropzoneContent" | "fileText", import("@chakra-ui/react").SlotRecipeVariantRecord<"label" | "root" | "item" | "itemContent" | "trigger" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "dropzoneContent" | "fileText">>;
@@ -0,0 +1,2 @@
1
+ export { LinkBox, LinkOverlay } from '@chakra-ui/react/link';
2
+ export type { LinkBoxProps, LinkOverlayProps } from '@chakra-ui/react/link';
@@ -0,0 +1 @@
1
+ export { LinkBox, LinkOverlay } from '@chakra-ui/react/link';
@@ -1,4 +1,4 @@
1
- export declare const menuSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "item" | "itemIndicator" | "positioner" | "separator" | "trigger" | "itemGroup" | "arrow" | "arrowTip" | "contextTrigger" | "itemGroupLabel" | "itemText" | "triggerItem" | "itemCommand", {
1
+ export declare const menuSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "item" | "itemIndicator" | "positioner" | "separator" | "trigger" | "itemGroup" | "itemGroupLabel" | "itemText" | "arrow" | "arrowTip" | "contextTrigger" | "triggerItem" | "itemCommand", {
2
2
  variant: {
3
3
  subtle: {
4
4
  item: {