@saas-ui/react 3.0.0-next.27 → 3.0.0-next.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/components/action-bar/action-bar.recipe.js +1 -1
- package/dist/components/app-shell/app-shell.d.ts +5 -7
- package/dist/components/app-shell/app-shell.recipe.d.ts +3 -8
- package/dist/components/app-shell/app-shell.recipe.js +4 -8
- package/dist/components/breadcrumb/breadcrumb.recipe.js +1 -1
- package/dist/components/button/button.recipe.d.ts +4 -1
- package/dist/components/button/button.recipe.js +4 -1
- package/dist/components/card/card.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +1 -1
- package/dist/components/checkbox-card/checkbox-card.recipe.js +3 -2
- package/dist/components/code/code.recipe.js +1 -1
- package/dist/components/collapsible/collapsible.recipe.d.ts +1 -1
- package/dist/components/dialog/dialog.recipe.d.ts +1 -1
- package/dist/components/drawer/drawer.recipe.js +5 -0
- package/dist/components/editable/editable.recipe.js +1 -1
- package/dist/components/kbd/kbd.recipe.js +1 -1
- package/dist/components/link/link.recipe.js +1 -1
- package/dist/components/menu/menu.js +2 -1
- package/dist/components/menu/menu.recipe.d.ts +2 -0
- package/dist/components/menu/menu.recipe.js +2 -0
- package/dist/components/native-select/native-select.recipe.js +1 -1
- package/dist/components/navbar/navbar.d.ts +3 -3
- package/dist/components/navbar/navbar.recipe.d.ts +1 -1
- package/dist/components/page/page.d.ts +3 -3
- package/dist/components/progress/progress.recipe.d.ts +2 -2
- package/dist/components/progress/progress.recipe.js +3 -2
- package/dist/components/radio-card/radio-card.recipe.js +1 -1
- package/dist/components/section/section.d.ts +2 -2
- package/dist/components/select/select.recipe.js +5 -4
- package/dist/components/sidebar/sidebar.d.ts +13 -13
- package/dist/components/sidebar/sidebar.js +2 -2
- package/dist/components/sidebar/sidebar.recipe.js +1 -1
- package/dist/components/skeleton/skeleton.recipe.d.ts +1 -1
- package/dist/components/skeleton/skeleton.recipe.js +1 -1
- package/dist/components/skip-nav-link/skip-nav-link.recipe.js +1 -1
- package/dist/components/stat/stat.recipe.js +1 -1
- package/dist/components/steps/steps.recipe.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +2 -1
- package/dist/components/tabs/tabs.recipe.js +1 -0
- package/dist/components/tag/tag.recipe.d.ts +1 -1
- package/dist/components/tooltip/tooltip.recipe.js +1 -1
- package/dist/theme/conditions.d.ts +1 -0
- package/dist/theme/conditions.js +1 -0
- package/dist/theme/global-css.js +5 -2
- package/dist/theme/recipes.d.ts +5 -2
- package/dist/theme/semantic-tokens/colors.js +1 -1
- package/dist/theme/semantic-tokens/shadows.js +1 -1
- package/dist/theme/slot-recipes.d.ts +47 -49
- package/package.json +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type HTMLChakraProps, type SlotRecipeProps } from '@chakra-ui/react/styled-system';
|
2
2
|
declare const useAppShellStyles: () => Record<string, import("@chakra-ui/react").SystemStyleObject>;
|
3
3
|
export { useAppShellStyles };
|
4
|
-
export interface
|
4
|
+
export interface AppShellBaseProps {
|
5
5
|
/**
|
6
6
|
* The top header navigation
|
7
7
|
*/
|
@@ -18,12 +18,8 @@ export interface AppShellProps extends HTMLChakraProps<'div'> {
|
|
18
18
|
* The footer
|
19
19
|
*/
|
20
20
|
footer?: React.ReactNode;
|
21
|
-
/**
|
22
|
-
* The main content
|
23
|
-
*/
|
24
|
-
children: React.ReactNode;
|
25
21
|
}
|
26
|
-
export interface AppShellRootProps extends
|
22
|
+
export interface AppShellRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiAppShell'> {
|
27
23
|
}
|
28
24
|
/**
|
29
25
|
* The App Shell defines the main structure of your app.
|
@@ -37,4 +33,6 @@ export declare const AppShellContent: import("react").ForwardRefExoticComponent<
|
|
37
33
|
export interface AppShellMainProps extends HTMLChakraProps<'div'> {
|
38
34
|
}
|
39
35
|
export declare const AppShellMain: import("react").ForwardRefExoticComponent<AppShellMainProps & import("react").RefAttributes<HTMLDivElement>>;
|
40
|
-
export
|
36
|
+
export interface AppShellProps extends AppShellBaseProps, HTMLChakraProps<'div'> {
|
37
|
+
}
|
38
|
+
export declare const AppShell: import("react").ForwardRefExoticComponent<AppShellProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -1,11 +1,6 @@
|
|
1
|
-
export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2
|
-
|
3
|
-
|
4
|
-
root: {
|
5
|
-
height: "100dvh";
|
6
|
-
};
|
7
|
-
};
|
8
|
-
fullscreen: {
|
1
|
+
export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "content" | "main", {
|
2
|
+
fullscreen: {
|
3
|
+
true: {
|
9
4
|
root: {
|
10
5
|
position: "fixed";
|
11
6
|
inset: number;
|
@@ -6,6 +6,7 @@ export const appShellSlotRecipe = defineSlotRecipe({
|
|
6
6
|
root: {
|
7
7
|
display: 'flex',
|
8
8
|
flexDirection: 'column',
|
9
|
+
height: '100dvh',
|
9
10
|
},
|
10
11
|
content: {
|
11
12
|
display: 'flex',
|
@@ -21,13 +22,8 @@ export const appShellSlotRecipe = defineSlotRecipe({
|
|
21
22
|
},
|
22
23
|
},
|
23
24
|
variants: {
|
24
|
-
|
25
|
-
|
26
|
-
root: {
|
27
|
-
height: '100dvh',
|
28
|
-
},
|
29
|
-
},
|
30
|
-
fullscreen: {
|
25
|
+
fullscreen: {
|
26
|
+
true: {
|
31
27
|
root: {
|
32
28
|
position: 'fixed',
|
33
29
|
inset: 0,
|
@@ -39,7 +35,7 @@ export const appShellSlotRecipe = defineSlotRecipe({
|
|
39
35
|
},
|
40
36
|
},
|
41
37
|
defaultVariants: {
|
42
|
-
|
38
|
+
fullscreen: false,
|
43
39
|
variant: 'plain',
|
44
40
|
},
|
45
41
|
});
|
@@ -67,7 +67,10 @@ export declare const buttonRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
67
67
|
bg: "colorPalette.solid";
|
68
68
|
color: "colorPalette.contrast";
|
69
69
|
'--btn-shadow': "shadows.sm";
|
70
|
-
boxShadow:
|
70
|
+
boxShadow: {
|
71
|
+
base: "0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
|
72
|
+
_dark: " 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
|
73
|
+
};
|
71
74
|
textShadow: "0 1px 2px rgba(0,0,0,0.3)";
|
72
75
|
overflow: "clip";
|
73
76
|
_after: {
|
@@ -97,7 +97,10 @@ export const buttonRecipe = defineRecipe({
|
|
97
97
|
bg: 'colorPalette.solid',
|
98
98
|
color: 'colorPalette.contrast',
|
99
99
|
'--btn-shadow': 'shadows.sm',
|
100
|
-
boxShadow:
|
100
|
+
boxShadow: {
|
101
|
+
base: '0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
|
102
|
+
_dark: ' 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
|
103
|
+
},
|
101
104
|
textShadow: '0 1px 2px rgba(0,0,0,0.3)',
|
102
105
|
overflow: 'clip',
|
103
106
|
_after: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "
|
1
|
+
export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "body" | "root" | "title" | "header" | "footer", {
|
2
2
|
size: {
|
3
3
|
sm: {
|
4
4
|
root: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "
|
1
|
+
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "group", {
|
2
2
|
size: {
|
3
3
|
xs: {
|
4
4
|
root: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const checkboxCardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"
|
1
|
+
export declare const checkboxCardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "label" | "control" | "indicator" | "root" | "addon", {
|
2
2
|
size: {
|
3
3
|
sm: {
|
4
4
|
root: {
|
@@ -6,11 +6,12 @@ export const checkboxCardSlotRecipe = defineSlotRecipe({
|
|
6
6
|
className: 'chakra-checkbox-card',
|
7
7
|
base: {
|
8
8
|
root: {
|
9
|
+
colorPalette: 'accent',
|
9
10
|
display: 'flex',
|
10
11
|
flexDirection: 'column',
|
11
12
|
userSelect: 'none',
|
12
13
|
position: 'relative',
|
13
|
-
borderRadius: '
|
14
|
+
borderRadius: 'panel.md',
|
14
15
|
flex: '1',
|
15
16
|
focusVisibleRing: 'outside',
|
16
17
|
_disabled: {
|
@@ -26,7 +27,7 @@ export const checkboxCardSlotRecipe = defineSlotRecipe({
|
|
26
27
|
display: 'inline-flex',
|
27
28
|
flex: '1',
|
28
29
|
position: 'relative',
|
29
|
-
borderRadius: '
|
30
|
+
borderRadius: 'panel.md',
|
30
31
|
justifyContent: 'var(--checkbox-card-justify)',
|
31
32
|
alignItems: 'var(--checkbox-card-align)',
|
32
33
|
},
|
@@ -1 +1 @@
|
|
1
|
-
export declare const collapsibleSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "trigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "root" | "trigger">>;
|
1
|
+
export declare const collapsibleSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "root" | "trigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "indicator" | "root" | "trigger">>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const dialogSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "
|
1
|
+
export declare const dialogSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "body" | "backdrop" | "positioner" | "closeTrigger" | "title" | "header" | "footer" | "trigger", {
|
2
2
|
variant: {
|
3
3
|
dialog: {};
|
4
4
|
confirm: {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
import { forwardRef } from 'react';
|
4
|
+
import { Flex } from '@chakra-ui/react';
|
4
5
|
import { Menu as ChakraMenu } from '@chakra-ui/react/menu';
|
5
6
|
import { Portal } from '@chakra-ui/react/portal';
|
6
7
|
import { Button } from "../button/index.js";
|
@@ -22,7 +23,7 @@ const MenuRadioItem = forwardRef(function MenuRadioItem(props, ref) {
|
|
22
23
|
});
|
23
24
|
const MenuItemIndicator = forwardRef(function MenuItemIndicator(props, ref) {
|
24
25
|
const { children = _jsx(CheckIcon, {}), ...rest } = props;
|
25
|
-
return (_jsx(ChakraMenu.ItemIndicator, { ref: ref, ...rest, children: children }));
|
26
|
+
return (_jsx(Flex, { alignItems: "center", justifyContent: "center", w: "4", children: _jsx(ChakraMenu.ItemIndicator, { ref: ref, ...rest, children: children }) }));
|
26
27
|
});
|
27
28
|
const MenuItemGroup = forwardRef(function MenuItemGroup(props, ref) {
|
28
29
|
const { title, children, ...rest } = props;
|
@@ -27,6 +27,7 @@ export declare const menuSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
27
27
|
textStyle: "xs";
|
28
28
|
py: "1";
|
29
29
|
px: "1.5";
|
30
|
+
ps: "var(--menu-item-inset, {sizes.1.5})";
|
30
31
|
};
|
31
32
|
itemGroupLabel: {
|
32
33
|
textStyle: "xs";
|
@@ -44,6 +45,7 @@ export declare const menuSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
44
45
|
textStyle: "sm";
|
45
46
|
py: "1.5";
|
46
47
|
px: "2";
|
48
|
+
ps: "var(--menu-item-inset, {sizes.2})";
|
47
49
|
};
|
48
50
|
itemGroupLabel: {
|
49
51
|
textStyle: "sm";
|
@@ -97,6 +97,7 @@ export const menuSlotRecipe = defineSlotRecipe({
|
|
97
97
|
textStyle: 'xs',
|
98
98
|
py: '1',
|
99
99
|
px: '1.5',
|
100
|
+
ps: 'var(--menu-item-inset, {sizes.1.5})',
|
100
101
|
},
|
101
102
|
itemGroupLabel: {
|
102
103
|
textStyle: 'xs',
|
@@ -114,6 +115,7 @@ export const menuSlotRecipe = defineSlotRecipe({
|
|
114
115
|
textStyle: 'sm',
|
115
116
|
py: '1.5',
|
116
117
|
px: '2',
|
118
|
+
ps: 'var(--menu-item-inset, {sizes.2})',
|
117
119
|
},
|
118
120
|
itemGroupLabel: {
|
119
121
|
textStyle: 'sm',
|