@saas-ui/react 3.0.0-next.44 → 3.0.0-next.48
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/dist/.tsbuildinfo.json +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.js +1 -1
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/grid-list/grid-list.d.ts +1 -1
- package/dist/components/persona/persona-composed.d.ts +1 -1
- package/dist/components/persona/persona.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/preset.d.ts +1 -3
- package/dist/preset.js +1 -10
- package/package.json +4 -3
- package/dist/components/accordion/accordion.recipe.d.ts +0 -84
- package/dist/components/accordion/accordion.recipe.js +0 -148
- package/dist/components/action-bar/action-bar.recipe.d.ts +0 -1
- package/dist/components/action-bar/action-bar.recipe.js +0 -56
- package/dist/components/alert/alert.recipe.d.ts +0 -120
- package/dist/components/alert/alert.recipe.js +0 -149
- package/dist/components/app-shell/app-shell.recipe.d.ts +0 -13
- package/dist/components/app-shell/app-shell.recipe.js +0 -41
- package/dist/components/avatar/avatar.recipe.d.ts +0 -88
- package/dist/components/avatar/avatar.recipe.js +0 -129
- package/dist/components/badge/badge.recipe.d.ts +0 -48
- package/dist/components/badge/badge.recipe.js +0 -66
- package/dist/components/blockquote/blockquote.recipe.d.ts +0 -52
- package/dist/components/blockquote/blockquote.recipe.js +0 -77
- package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +0 -46
- package/dist/components/breadcrumb/breadcrumb.recipe.js +0 -90
- package/dist/components/button/button.recipe.d.ts +0 -141
- package/dist/components/button/button.recipe.js +0 -185
- package/dist/components/card/card.recipe.d.ts +0 -78
- package/dist/components/card/card.recipe.js +0 -133
- package/dist/components/checkbox/checkbox.recipe.d.ts +0 -80
- package/dist/components/checkbox/checkbox.recipe.js +0 -64
- package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +0 -188
- package/dist/components/checkbox-card/checkbox-card.recipe.js +0 -202
- package/dist/components/checkmark/checkmark.recipe.d.ts +0 -54
- package/dist/components/checkmark/checkmark.recipe.js +0 -80
- package/dist/components/code/code.recipe.d.ts +0 -48
- package/dist/components/code/code.recipe.js +0 -14
- package/dist/components/collapsible/collapsible.recipe.d.ts +0 -1
- package/dist/components/collapsible/collapsible.recipe.js +0 -19
- package/dist/components/combobox/combobox.recipe.d.ts +0 -144
- package/dist/components/combobox/combobox.recipe.js +0 -292
- package/dist/components/command/command.recipe.d.ts +0 -15
- package/dist/components/command/command.recipe.js +0 -34
- package/dist/components/container/container.recipe.d.ts +0 -14
- package/dist/components/container/container.recipe.js +0 -25
- package/dist/components/data-list/data-list.recipe.d.ts +0 -55
- package/dist/components/data-list/data-list.recipe.js +0 -78
- package/dist/components/dialog/dialog.recipe.d.ts +0 -166
- package/dist/components/dialog/dialog.recipe.js +0 -256
- package/dist/components/drawer/drawer.recipe.d.ts +0 -113
- package/dist/components/drawer/drawer.recipe.js +0 -202
- package/dist/components/editable/editable.recipe.d.ts +0 -37
- package/dist/components/editable/editable.recipe.js +0 -89
- package/dist/components/empty-state/empty-state.recipe.d.ts +0 -83
- package/dist/components/empty-state/empty-state.recipe.js +0 -137
- package/dist/components/field/field.recipe.d.ts +0 -29
- package/dist/components/field/field.recipe.js +0 -74
- package/dist/components/fieldset/fieldset.recipe.d.ts +0 -37
- package/dist/components/fieldset/fieldset.recipe.js +0 -59
- package/dist/components/file-upload/file-upload.recipe.d.ts +0 -1
- package/dist/components/file-upload/file-upload.recipe.js +0 -90
- package/dist/components/grid-list/grid-list.recipe.d.ts +0 -60
- package/dist/components/grid-list/grid-list.recipe.js +0 -131
- package/dist/components/heading/heading.recipe.d.ts +0 -59
- package/dist/components/heading/heading.recipe.js +0 -70
- package/dist/components/hover-card/hover-card.recipe.d.ts +0 -28
- package/dist/components/hover-card/hover-card.recipe.js +0 -70
- package/dist/components/icon/icon.recipe.d.ts +0 -25
- package/dist/components/icon/icon.recipe.js +0 -27
- package/dist/components/icon-badge/icon-badge.recipe.d.ts +0 -43
- package/dist/components/icon-badge/icon-badge.recipe.js +0 -57
- package/dist/components/input/input.recipe.d.ts +0 -66
- package/dist/components/input/input.recipe.js +0 -93
- package/dist/components/input-addon/input-addon.recipe.d.ts +0 -56
- package/dist/components/input-addon/input-addon.recipe.js +0 -36
- package/dist/components/kbd/kbd.recipe.d.ts +0 -36
- package/dist/components/kbd/kbd.recipe.js +0 -56
- package/dist/components/link/link.recipe.d.ts +0 -18
- package/dist/components/link/link.recipe.js +0 -34
- package/dist/components/list/list.recipe.d.ts +0 -38
- package/dist/components/list/list.recipe.js +0 -62
- package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +0 -26
- package/dist/components/loading-overlay/loading-overlay.recipe.js +0 -51
- package/dist/components/mark/mark.recipe.d.ts +0 -16
- package/dist/components/mark/mark.recipe.js +0 -25
- package/dist/components/menu/menu.recipe.d.ts +0 -58
- package/dist/components/menu/menu.recipe.js +0 -133
- package/dist/components/native-select/native-select.recipe.d.ts +0 -90
- package/dist/components/native-select/native-select.recipe.js +0 -134
- package/dist/components/navbar/navbar.recipe.d.ts +0 -46
- package/dist/components/navbar/navbar.recipe.js +0 -124
- package/dist/components/number-input/number-input.recipe.d.ts +0 -144
- package/dist/components/number-input/number-input.recipe.js +0 -111
- package/dist/components/page/page.recipe.d.ts +0 -61
- package/dist/components/page/page.recipe.js +0 -99
- package/dist/components/persona/persona.recipe.d.ts +0 -104
- package/dist/components/persona/persona.recipe.js +0 -106
- package/dist/components/pin-input/pin-input.recipe.d.ts +0 -236
- package/dist/components/pin-input/pin-input.recipe.js +0 -32
- package/dist/components/popover/popover.recipe.d.ts +0 -24
- package/dist/components/popover/popover.recipe.js +0 -84
- package/dist/components/progress/progress.recipe.d.ts +0 -82
- package/dist/components/progress/progress.recipe.js +0 -121
- package/dist/components/progress-circle/progress-circle.recipe.d.ts +0 -49
- package/dist/components/progress-circle/progress-circle.recipe.js +0 -91
- package/dist/components/radio/radiomark.recipe.d.ts +0 -56
- package/dist/components/radio/radiomark.recipe.js +0 -95
- package/dist/components/radio-card/radio-card.recipe.d.ts +0 -191
- package/dist/components/radio-card/radio-card.recipe.js +0 -209
- package/dist/components/radio-group/radio-group.recipe.d.ts +0 -77
- package/dist/components/radio-group/radio-group.recipe.js +0 -61
- package/dist/components/rating-group/rating-group.recipe.d.ts +0 -24
- package/dist/components/rating-group/rating-group.recipe.js +0 -83
- package/dist/components/section/section.recipe.d.ts +0 -27
- package/dist/components/section/section.recipe.js +0 -63
- package/dist/components/segmented-control/segment-group.recipe.d.ts +0 -48
- package/dist/components/segmented-control/segment-group.recipe.js +0 -127
- package/dist/components/select/select.recipe.d.ts +0 -155
- package/dist/components/select/select.recipe.js +0 -285
- package/dist/components/separator/separator.recipe.d.ts +0 -37
- package/dist/components/separator/separator.recipe.js +0 -50
- package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +0 -67
- package/dist/components/sidebar/sidebar-nav-item.recipe.js +0 -118
- package/dist/components/sidebar/sidebar.recipe.d.ts +0 -108
- package/dist/components/sidebar/sidebar.recipe.js +0 -280
- package/dist/components/skeleton/skeleton.recipe.d.ts +0 -41
- package/dist/components/skeleton/skeleton.recipe.js +0 -50
- package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +0 -1
- package/dist/components/skip-nav-link/skip-nav-link.recipe.js +0 -31
- package/dist/components/slider/slider.recipe.d.ts +0 -101
- package/dist/components/slider/slider.recipe.js +0 -175
- package/dist/components/spinner/spinner.recipe.d.ts +0 -22
- package/dist/components/spinner/spinner.recipe.js +0 -31
- package/dist/components/stat/stat.recipe.d.ts +0 -19
- package/dist/components/stat/stat.recipe.js +0 -76
- package/dist/components/status/status.recipe.d.ts +0 -19
- package/dist/components/status/status.recipe.js +0 -44
- package/dist/components/steps/steps.recipe.d.ts +0 -142
- package/dist/components/steps/steps.recipe.js +0 -213
- package/dist/components/switch/switch.recipe.d.ts +0 -77
- package/dist/components/switch/switch.recipe.js +0 -157
- package/dist/components/table/table.recipe.d.ts +0 -121
- package/dist/components/table/table.recipe.js +0 -161
- package/dist/components/tabs/tabs.recipe.d.ts +0 -263
- package/dist/components/tabs/tabs.recipe.js +0 -332
- package/dist/components/tag/tag.recipe.d.ts +0 -95
- package/dist/components/tag/tag.recipe.js +0 -154
- package/dist/components/textarea/textarea.recipe.d.ts +0 -65
- package/dist/components/textarea/textarea.recipe.js +0 -90
- package/dist/components/timeline/timeline.recipe.d.ts +0 -62
- package/dist/components/timeline/timeline.recipe.js +0 -134
- package/dist/components/toaster/toast.recipe.d.ts +0 -1
- package/dist/components/toaster/toast.recipe.js +0 -90
- package/dist/components/tooltip/tooltip.recipe.d.ts +0 -10
- package/dist/components/tooltip/tooltip.recipe.js +0 -52
- package/dist/theme/animation-styles.d.ts +0 -1
- package/dist/theme/animation-styles.js +0 -49
- package/dist/theme/breakpoints.d.ts +0 -10
- package/dist/theme/breakpoints.js +0 -8
- package/dist/theme/conditions.d.ts +0 -18
- package/dist/theme/conditions.js +0 -19
- package/dist/theme/fluid-font-sizes.d.ts +0 -0
- package/dist/theme/fluid-font-sizes.js +0 -61
- package/dist/theme/global-css.d.ts +0 -1
- package/dist/theme/global-css.js +0 -56
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +0 -72
- package/dist/theme/layer-styles.d.ts +0 -1
- package/dist/theme/layer-styles.js +0 -133
- package/dist/theme/recipes.d.ts +0 -861
- package/dist/theme/recipes.js +0 -44
- package/dist/theme/semantic-tokens/colors.d.ts +0 -1298
- package/dist/theme/semantic-tokens/colors.js +0 -687
- package/dist/theme/semantic-tokens/radii.d.ts +0 -44
- package/dist/theme/semantic-tokens/radii.js +0 -39
- package/dist/theme/semantic-tokens/shadows.d.ts +0 -56
- package/dist/theme/semantic-tokens/shadows.js +0 -57
- package/dist/theme/slot-recipes.d.ts +0 -4030
- package/dist/theme/slot-recipes.js +0 -108
- package/dist/theme/text-styles.d.ts +0 -1
- package/dist/theme/text-styles.js +0 -82
- package/dist/theme/tokens/animations.d.ts +0 -14
- package/dist/theme/tokens/animations.js +0 -7
- package/dist/theme/tokens/aspect-ratios.d.ts +0 -20
- package/dist/theme/tokens/aspect-ratios.js +0 -9
- package/dist/theme/tokens/blurs.d.ts +0 -26
- package/dist/theme/tokens/blurs.js +0 -11
- package/dist/theme/tokens/borders.d.ts +0 -17
- package/dist/theme/tokens/borders.js +0 -8
- package/dist/theme/tokens/colors.d.ts +0 -820
- package/dist/theme/tokens/colors.js +0 -306
- package/dist/theme/tokens/cursor.d.ts +0 -26
- package/dist/theme/tokens/cursor.js +0 -11
- package/dist/theme/tokens/durations.d.ts +0 -23
- package/dist/theme/tokens/durations.js +0 -10
- package/dist/theme/tokens/easings.d.ts +0 -20
- package/dist/theme/tokens/easings.js +0 -9
- package/dist/theme/tokens/font-sizes.d.ts +0 -44
- package/dist/theme/tokens/font-sizes.js +0 -18
- package/dist/theme/tokens/font-weights.d.ts +0 -29
- package/dist/theme/tokens/font-weights.js +0 -12
- package/dist/theme/tokens/fonts.d.ts +0 -11
- package/dist/theme/tokens/fonts.js +0 -13
- package/dist/theme/tokens/keyframes.d.ts +0 -1
- package/dist/theme/tokens/keyframes.js +0 -157
- package/dist/theme/tokens/letter-spacing.d.ts +0 -56
- package/dist/theme/tokens/letter-spacing.js +0 -21
- package/dist/theme/tokens/line-heights.d.ts +0 -77
- package/dist/theme/tokens/line-heights.js +0 -29
- package/dist/theme/tokens/radius.d.ts +0 -32
- package/dist/theme/tokens/radius.js +0 -15
- package/dist/theme/tokens/sizes.d.ts +0 -257
- package/dist/theme/tokens/sizes.js +0 -66
- package/dist/theme/tokens/spacing.d.ts +0 -101
- package/dist/theme/tokens/spacing.js +0 -37
- package/dist/theme/tokens/z-indices.d.ts +0 -53
- package/dist/theme/tokens/z-indices.js +0 -32
- package/dist/theme/utilities.d.ts +0 -10
- package/dist/theme/utilities.js +0 -49
- package/dist/theme/utils.d.ts +0 -19
- package/dist/theme/utils.js +0 -34
package/dist/colors.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { colors } from '
|
|
1
|
+
export { colors } from '@saas-ui/chakra-preset/colors';
|
package/dist/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { colors } from
|
|
1
|
+
export { colors } from '@saas-ui/chakra-preset/colors';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type HTMLChakraProps, UnstyledProp } from '@chakra-ui/react/styled-system';
|
|
3
|
+
import type { CommandVariantProps } from '@saas-ui/chakra-preset/recipes/command';
|
|
3
4
|
import type { RecipeProps } from '../../types.ts';
|
|
4
|
-
import type { CommandVariantProps } from './command.recipe.ts';
|
|
5
5
|
export interface CommandBaseProps extends RecipeProps<'suiCommand', CommandVariantProps>, UnstyledProp {
|
|
6
6
|
}
|
|
7
7
|
export interface CommandProps extends HTMLChakraProps<'span'>, CommandBaseProps, CommandVariantProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLChakraProps } from '@chakra-ui/react/styled-system';
|
|
2
|
+
import type { GridListVariantProps } from '@saas-ui/chakra-preset/slot-recipes/grid-list';
|
|
2
3
|
import type { SlotRecipeProps } from '../../types.ts';
|
|
3
|
-
import type { GridListVariantProps } from './grid-list.recipe.ts';
|
|
4
4
|
interface GridListRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiGridList', GridListVariantProps> {
|
|
5
5
|
}
|
|
6
6
|
declare const GridListRoot: import("react").ForwardRefExoticComponent<GridListRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { PersonaVariantProps } from '@saas-ui/chakra-preset/slot-recipes/persona';
|
|
2
3
|
import * as PersonaPrimitive from './persona.tsx';
|
|
3
|
-
import type { PersonaVariantProps } from './persona.recipe.ts';
|
|
4
4
|
import type { PersonaPresence } from './presence.ts';
|
|
5
5
|
interface PersonaOptions {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HTMLChakraProps, type ImageProps, type SlotRecipeProps } from '@chakra-ui/react';
|
|
3
|
+
import type { PersonaVariantProps } from '@saas-ui/chakra-preset/slot-recipes/persona';
|
|
3
4
|
import { type AvatarProps } from '../avatar/avatar.tsx';
|
|
4
|
-
import type { PersonaVariantProps } from './persona.recipe.ts';
|
|
5
5
|
import type { PersonaPresence } from './presence.ts';
|
|
6
6
|
interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'>, PersonaVariantProps {
|
|
7
7
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export { Strong, type StrongProps } from './components/strong/index.ts';
|
|
|
136
136
|
export { VisuallyHidden } from './components/visually-hidden/index.ts';
|
|
137
137
|
export { Wrap, type WrapProps } from './components/wrap/index.ts';
|
|
138
138
|
export { Flex, type FlexProps } from './components/flex/index.ts';
|
|
139
|
-
export type { ColorPalette } from '
|
|
139
|
+
export type { ColorPalette } from '@saas-ui/chakra-preset/colors';
|
|
140
140
|
export { For } from '@chakra-ui/react/for';
|
|
141
141
|
export { LocaleProvider, useLocaleContext, useFilter, } from '@chakra-ui/react/locale';
|
|
142
142
|
export { Theme } from '@chakra-ui/react';
|
package/dist/preset.d.ts
CHANGED
package/dist/preset.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { defaultThemeConfig } from "./theme/index.js";
|
|
3
|
-
import { utilities } from "./theme/utilities.js";
|
|
4
|
-
const defaultConfig = mergeConfigs(defaultBaseConfig, defaultThemeConfig);
|
|
5
|
-
/**
|
|
6
|
-
* TODO: This is a temporary fix to add the utilities to the default config.
|
|
7
|
-
*/
|
|
8
|
-
defaultConfig.utilities = Object.assign(defaultConfig.utilities ?? {}, utilities);
|
|
9
|
-
export const defaultSystem = createSystem(defaultConfig);
|
|
10
|
-
export { defaultSystem as system, defaultConfig };
|
|
1
|
+
export * from '@saas-ui/chakra-preset';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saas-ui/react",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.48",
|
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,8 +62,9 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@ark-ui/react": "^5.25.1",
|
|
64
64
|
"next-themes": "^0.4.6",
|
|
65
|
-
"@saas-ui/
|
|
66
|
-
"@saas-ui/core": "3.0.0-next.11"
|
|
65
|
+
"@saas-ui/chakra-preset": "3.0.0-next.3",
|
|
66
|
+
"@saas-ui/core": "3.0.0-next.11",
|
|
67
|
+
"@saas-ui/hooks": "3.0.0-next.3"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"@chakra-ui/react": "^3.27.0",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export declare const accordionSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator" | "itemBody", {
|
|
2
|
-
variant: {
|
|
3
|
-
outline: {
|
|
4
|
-
item: {
|
|
5
|
-
borderBottomWidth: "1px";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
subtle: {
|
|
9
|
-
itemTrigger: {
|
|
10
|
-
px: "var(--accordion-padding-x)";
|
|
11
|
-
};
|
|
12
|
-
itemContent: {
|
|
13
|
-
px: "var(--accordion-padding-x)";
|
|
14
|
-
};
|
|
15
|
-
item: {
|
|
16
|
-
borderRadius: "var(--accordion-radius)";
|
|
17
|
-
_open: {
|
|
18
|
-
bg: "colorPalette.subtle";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
enclosed: {
|
|
23
|
-
root: {
|
|
24
|
-
borderWidth: "1px";
|
|
25
|
-
borderRadius: "var(--accordion-radius)";
|
|
26
|
-
divideY: string;
|
|
27
|
-
overflow: "hidden";
|
|
28
|
-
};
|
|
29
|
-
itemTrigger: {
|
|
30
|
-
px: "var(--accordion-padding-x)";
|
|
31
|
-
};
|
|
32
|
-
itemContent: {
|
|
33
|
-
px: "var(--accordion-padding-x)";
|
|
34
|
-
};
|
|
35
|
-
item: {
|
|
36
|
-
_open: {
|
|
37
|
-
bg: "bg.subtle";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
plain: {};
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
sm: {
|
|
45
|
-
root: {
|
|
46
|
-
'--accordion-padding-x': "spacing.3";
|
|
47
|
-
'--accordion-padding-y': "spacing.2";
|
|
48
|
-
};
|
|
49
|
-
itemTrigger: {
|
|
50
|
-
textStyle: "sm";
|
|
51
|
-
py: "var(--accordion-padding-y)";
|
|
52
|
-
};
|
|
53
|
-
itemContent: {
|
|
54
|
-
textStyle: "sm";
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
md: {
|
|
58
|
-
root: {
|
|
59
|
-
'--accordion-padding-x': "spacing.4";
|
|
60
|
-
'--accordion-padding-y': "spacing.2";
|
|
61
|
-
};
|
|
62
|
-
itemTrigger: {
|
|
63
|
-
textStyle: "md";
|
|
64
|
-
py: "var(--accordion-padding-y)";
|
|
65
|
-
};
|
|
66
|
-
itemContent: {
|
|
67
|
-
textStyle: "md";
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
lg: {
|
|
71
|
-
root: {
|
|
72
|
-
'--accordion-padding-x': "spacing.4.5";
|
|
73
|
-
'--accordion-padding-y': "spacing.2.5";
|
|
74
|
-
};
|
|
75
|
-
itemTrigger: {
|
|
76
|
-
textStyle: "lg";
|
|
77
|
-
py: "var(--accordion-padding-y)";
|
|
78
|
-
};
|
|
79
|
-
itemContent: {
|
|
80
|
-
textStyle: "lg";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
}>;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { accordionAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const accordionSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-accordion',
|
|
5
|
-
slots: accordionAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
width: 'full',
|
|
9
|
-
'--accordion-radius': 'radii.panel.md',
|
|
10
|
-
},
|
|
11
|
-
item: {
|
|
12
|
-
overflowAnchor: 'none',
|
|
13
|
-
},
|
|
14
|
-
itemTrigger: {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
width: 'full',
|
|
18
|
-
outline: '0',
|
|
19
|
-
gap: '3',
|
|
20
|
-
fontWeight: 'medium',
|
|
21
|
-
borderRadius: 'var(--accordion-radius)',
|
|
22
|
-
_focusVisible: {
|
|
23
|
-
outline: '2px solid',
|
|
24
|
-
outlineColor: 'colorPalette.focusRing',
|
|
25
|
-
},
|
|
26
|
-
_disabled: {
|
|
27
|
-
layerStyle: 'disabled',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
itemBody: {
|
|
31
|
-
pt: 'var(--accordion-padding-y)',
|
|
32
|
-
pb: 'calc(var(--accordion-padding-y) * 2)',
|
|
33
|
-
},
|
|
34
|
-
itemContent: {
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
borderRadius: 'var(--accordion-radius)',
|
|
37
|
-
_open: {
|
|
38
|
-
animationName: 'expand-height, fade-in',
|
|
39
|
-
animationDuration: 'moderate',
|
|
40
|
-
},
|
|
41
|
-
_closed: {
|
|
42
|
-
animationName: 'collapse-height, fade-out',
|
|
43
|
-
animationDuration: 'moderate',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
itemIndicator: {
|
|
47
|
-
ms: 'auto',
|
|
48
|
-
transition: 'rotate 0.2s',
|
|
49
|
-
transformOrigin: 'center',
|
|
50
|
-
color: 'fg.subtle',
|
|
51
|
-
_open: {
|
|
52
|
-
rotate: '90deg',
|
|
53
|
-
},
|
|
54
|
-
_icon: {
|
|
55
|
-
width: '1.2em',
|
|
56
|
-
height: '1.2em',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
variants: {
|
|
61
|
-
variant: {
|
|
62
|
-
outline: {
|
|
63
|
-
item: {
|
|
64
|
-
borderBottomWidth: '1px',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
subtle: {
|
|
68
|
-
itemTrigger: {
|
|
69
|
-
px: 'var(--accordion-padding-x)',
|
|
70
|
-
},
|
|
71
|
-
itemContent: {
|
|
72
|
-
px: 'var(--accordion-padding-x)',
|
|
73
|
-
},
|
|
74
|
-
item: {
|
|
75
|
-
borderRadius: 'var(--accordion-radius)',
|
|
76
|
-
_open: {
|
|
77
|
-
bg: 'colorPalette.subtle',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
enclosed: {
|
|
82
|
-
root: {
|
|
83
|
-
borderWidth: '1px',
|
|
84
|
-
borderRadius: 'var(--accordion-radius)',
|
|
85
|
-
divideY: '1px',
|
|
86
|
-
overflow: 'hidden',
|
|
87
|
-
},
|
|
88
|
-
itemTrigger: {
|
|
89
|
-
px: 'var(--accordion-padding-x)',
|
|
90
|
-
},
|
|
91
|
-
itemContent: {
|
|
92
|
-
px: 'var(--accordion-padding-x)',
|
|
93
|
-
},
|
|
94
|
-
item: {
|
|
95
|
-
_open: {
|
|
96
|
-
bg: 'bg.subtle',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
plain: {},
|
|
101
|
-
},
|
|
102
|
-
size: {
|
|
103
|
-
sm: {
|
|
104
|
-
root: {
|
|
105
|
-
'--accordion-padding-x': 'spacing.3',
|
|
106
|
-
'--accordion-padding-y': 'spacing.2',
|
|
107
|
-
},
|
|
108
|
-
itemTrigger: {
|
|
109
|
-
textStyle: 'sm',
|
|
110
|
-
py: 'var(--accordion-padding-y)',
|
|
111
|
-
},
|
|
112
|
-
itemContent: {
|
|
113
|
-
textStyle: 'sm',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
md: {
|
|
117
|
-
root: {
|
|
118
|
-
'--accordion-padding-x': 'spacing.4',
|
|
119
|
-
'--accordion-padding-y': 'spacing.2',
|
|
120
|
-
},
|
|
121
|
-
itemTrigger: {
|
|
122
|
-
textStyle: 'md',
|
|
123
|
-
py: 'var(--accordion-padding-y)',
|
|
124
|
-
},
|
|
125
|
-
itemContent: {
|
|
126
|
-
textStyle: 'md',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
lg: {
|
|
130
|
-
root: {
|
|
131
|
-
'--accordion-padding-x': 'spacing.4.5',
|
|
132
|
-
'--accordion-padding-y': 'spacing.2.5',
|
|
133
|
-
},
|
|
134
|
-
itemTrigger: {
|
|
135
|
-
textStyle: 'lg',
|
|
136
|
-
py: 'var(--accordion-padding-y)',
|
|
137
|
-
},
|
|
138
|
-
itemContent: {
|
|
139
|
-
textStyle: 'lg',
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
defaultVariants: {
|
|
145
|
-
size: 'md',
|
|
146
|
-
variant: 'outline',
|
|
147
|
-
},
|
|
148
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const actionBarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "positioner" | "separator" | "selectionTrigger" | "closeTrigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "positioner" | "separator" | "selectionTrigger" | "closeTrigger">>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { actionBarAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const actionBarSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-action-bar',
|
|
5
|
-
slots: actionBarAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
positioner: {
|
|
8
|
-
position: 'fixed',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
justifyContent: 'center',
|
|
11
|
-
pointerEvents: 'none',
|
|
12
|
-
insetInline: '0',
|
|
13
|
-
top: 'unset',
|
|
14
|
-
bottom: 'calc(env(safe-area-inset-bottom) + 20px)',
|
|
15
|
-
},
|
|
16
|
-
content: {
|
|
17
|
-
bg: 'bg.panel',
|
|
18
|
-
shadow: 'md',
|
|
19
|
-
display: 'flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
gap: '3',
|
|
22
|
-
borderRadius: 'panel.md',
|
|
23
|
-
py: '2.5',
|
|
24
|
-
px: '3',
|
|
25
|
-
pointerEvents: 'auto',
|
|
26
|
-
// Stabilize the position of the action bar when the scrollbar is hidden
|
|
27
|
-
// by using the scrollbar width to offset the position.
|
|
28
|
-
translate: 'calc(-1 * var(--scrollbar-width) / 2) 0px',
|
|
29
|
-
_open: {
|
|
30
|
-
animationName: 'slide-from-bottom, fade-in',
|
|
31
|
-
animationDuration: 'moderate',
|
|
32
|
-
},
|
|
33
|
-
_closed: {
|
|
34
|
-
animationName: 'slide-to-bottom, fade-out',
|
|
35
|
-
animationDuration: 'faster',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
separator: {
|
|
39
|
-
width: '1px',
|
|
40
|
-
height: '5',
|
|
41
|
-
bg: 'border',
|
|
42
|
-
},
|
|
43
|
-
selectionTrigger: {
|
|
44
|
-
display: 'inline-flex',
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
gap: '2',
|
|
47
|
-
alignSelf: 'stretch',
|
|
48
|
-
textStyle: 'sm',
|
|
49
|
-
px: '4',
|
|
50
|
-
py: '1',
|
|
51
|
-
borderRadius: 'control.md',
|
|
52
|
-
borderWidth: '1px',
|
|
53
|
-
borderStyle: 'dashed',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
});
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
export declare const alertSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "indicator" | "root" | "title", {
|
|
2
|
-
status: {
|
|
3
|
-
info: {
|
|
4
|
-
root: {
|
|
5
|
-
colorPalette: "blue";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
warning: {
|
|
9
|
-
root: {
|
|
10
|
-
colorPalette: "orange";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
success: {
|
|
14
|
-
root: {
|
|
15
|
-
colorPalette: "green";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
error: {
|
|
19
|
-
root: {
|
|
20
|
-
colorPalette: "red";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
neutral: {
|
|
24
|
-
root: {
|
|
25
|
-
colorPalette: "gray";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
inline: {
|
|
30
|
-
true: {
|
|
31
|
-
content: {
|
|
32
|
-
display: "inline-flex";
|
|
33
|
-
flexDirection: "row";
|
|
34
|
-
alignItems: "center";
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
false: {
|
|
38
|
-
content: {
|
|
39
|
-
display: "flex";
|
|
40
|
-
flexDirection: "column";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
variant: {
|
|
45
|
-
subtle: {
|
|
46
|
-
root: {
|
|
47
|
-
bg: "colorPalette.subtle";
|
|
48
|
-
color: "colorPalette.fg";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
surface: {
|
|
52
|
-
root: {
|
|
53
|
-
bg: "colorPalette.subtle";
|
|
54
|
-
color: "colorPalette.fg";
|
|
55
|
-
shadow: "inset 0 0 0px 1px var(--shadow-color)";
|
|
56
|
-
shadowColor: "colorPalette.solid";
|
|
57
|
-
};
|
|
58
|
-
indicator: {
|
|
59
|
-
color: "colorPalette.fg";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
outline: {
|
|
63
|
-
root: {
|
|
64
|
-
color: "colorPalette.fg";
|
|
65
|
-
shadow: "inset 0 0 0px 1px var(--shadow-color)";
|
|
66
|
-
shadowColor: "colorPalette.subtle";
|
|
67
|
-
};
|
|
68
|
-
indicator: {
|
|
69
|
-
color: "colorPalette.fg";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
solid: {
|
|
73
|
-
root: {
|
|
74
|
-
bg: "colorPalette.solid";
|
|
75
|
-
color: "colorPalette.contrast";
|
|
76
|
-
};
|
|
77
|
-
indicator: {
|
|
78
|
-
color: "colorPalette.contrast";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
size: {
|
|
83
|
-
sm: {
|
|
84
|
-
root: {
|
|
85
|
-
gap: "2";
|
|
86
|
-
px: "3";
|
|
87
|
-
py: "3";
|
|
88
|
-
textStyle: "xs";
|
|
89
|
-
borderRadius: "panel.sm";
|
|
90
|
-
};
|
|
91
|
-
indicator: {
|
|
92
|
-
textStyle: "lg";
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
md: {
|
|
96
|
-
root: {
|
|
97
|
-
gap: "3";
|
|
98
|
-
px: "4";
|
|
99
|
-
py: "4";
|
|
100
|
-
textStyle: "sm";
|
|
101
|
-
borderRadius: "panel.md";
|
|
102
|
-
};
|
|
103
|
-
indicator: {
|
|
104
|
-
textStyle: "xl";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
lg: {
|
|
108
|
-
root: {
|
|
109
|
-
gap: "3";
|
|
110
|
-
px: "4";
|
|
111
|
-
py: "4";
|
|
112
|
-
textStyle: "md";
|
|
113
|
-
borderRadius: "panel.lg";
|
|
114
|
-
};
|
|
115
|
-
indicator: {
|
|
116
|
-
textStyle: "2xl";
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
}>;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { alertAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const alertSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: alertAnatomy.keys(),
|
|
5
|
-
className: 'chakra-alert',
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
width: 'full',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'flex-start',
|
|
11
|
-
position: 'relative',
|
|
12
|
-
},
|
|
13
|
-
title: {
|
|
14
|
-
fontWeight: 'medium',
|
|
15
|
-
},
|
|
16
|
-
description: {
|
|
17
|
-
display: 'inline',
|
|
18
|
-
},
|
|
19
|
-
indicator: {
|
|
20
|
-
display: 'inline-flex',
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
justifyContent: 'center',
|
|
23
|
-
flexShrink: '0',
|
|
24
|
-
width: '1em',
|
|
25
|
-
height: '1em',
|
|
26
|
-
},
|
|
27
|
-
content: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
flex: '1',
|
|
30
|
-
gap: '1',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
variants: {
|
|
34
|
-
status: {
|
|
35
|
-
info: {
|
|
36
|
-
root: { colorPalette: 'blue' },
|
|
37
|
-
},
|
|
38
|
-
warning: {
|
|
39
|
-
root: { colorPalette: 'orange' },
|
|
40
|
-
},
|
|
41
|
-
success: {
|
|
42
|
-
root: { colorPalette: 'green' },
|
|
43
|
-
},
|
|
44
|
-
error: {
|
|
45
|
-
root: { colorPalette: 'red' },
|
|
46
|
-
},
|
|
47
|
-
neutral: {
|
|
48
|
-
root: { colorPalette: 'gray' },
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
inline: {
|
|
52
|
-
true: {
|
|
53
|
-
content: {
|
|
54
|
-
display: 'inline-flex',
|
|
55
|
-
flexDirection: 'row',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
false: {
|
|
60
|
-
content: {
|
|
61
|
-
display: 'flex',
|
|
62
|
-
flexDirection: 'column',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
variant: {
|
|
67
|
-
subtle: {
|
|
68
|
-
root: {
|
|
69
|
-
bg: 'colorPalette.subtle',
|
|
70
|
-
color: 'colorPalette.fg',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
surface: {
|
|
74
|
-
root: {
|
|
75
|
-
bg: 'colorPalette.subtle',
|
|
76
|
-
color: 'colorPalette.fg',
|
|
77
|
-
shadow: 'inset 0 0 0px 1px var(--shadow-color)',
|
|
78
|
-
shadowColor: 'colorPalette.solid',
|
|
79
|
-
},
|
|
80
|
-
indicator: {
|
|
81
|
-
color: 'colorPalette.fg',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
outline: {
|
|
85
|
-
root: {
|
|
86
|
-
color: 'colorPalette.fg',
|
|
87
|
-
shadow: 'inset 0 0 0px 1px var(--shadow-color)',
|
|
88
|
-
shadowColor: 'colorPalette.subtle',
|
|
89
|
-
},
|
|
90
|
-
indicator: {
|
|
91
|
-
color: 'colorPalette.fg',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
solid: {
|
|
95
|
-
root: {
|
|
96
|
-
bg: 'colorPalette.solid',
|
|
97
|
-
color: 'colorPalette.contrast',
|
|
98
|
-
},
|
|
99
|
-
indicator: {
|
|
100
|
-
color: 'colorPalette.contrast',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
size: {
|
|
105
|
-
sm: {
|
|
106
|
-
root: {
|
|
107
|
-
gap: '2',
|
|
108
|
-
px: '3',
|
|
109
|
-
py: '3',
|
|
110
|
-
textStyle: 'xs',
|
|
111
|
-
borderRadius: 'panel.sm',
|
|
112
|
-
},
|
|
113
|
-
indicator: {
|
|
114
|
-
textStyle: 'lg',
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
md: {
|
|
118
|
-
root: {
|
|
119
|
-
gap: '3',
|
|
120
|
-
px: '4',
|
|
121
|
-
py: '4',
|
|
122
|
-
textStyle: 'sm',
|
|
123
|
-
borderRadius: 'panel.md',
|
|
124
|
-
},
|
|
125
|
-
indicator: {
|
|
126
|
-
textStyle: 'xl',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
lg: {
|
|
130
|
-
root: {
|
|
131
|
-
gap: '3',
|
|
132
|
-
px: '4',
|
|
133
|
-
py: '4',
|
|
134
|
-
textStyle: 'md',
|
|
135
|
-
borderRadius: 'panel.lg',
|
|
136
|
-
},
|
|
137
|
-
indicator: {
|
|
138
|
-
textStyle: '2xl',
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
defaultVariants: {
|
|
144
|
-
status: 'info',
|
|
145
|
-
variant: 'subtle',
|
|
146
|
-
size: 'md',
|
|
147
|
-
inline: false,
|
|
148
|
-
},
|
|
149
|
-
});
|