@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
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
export declare const numberInputSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "input" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber", {
|
|
2
|
-
size: {
|
|
3
|
-
xs: {
|
|
4
|
-
input: {
|
|
5
|
-
borderRadius: "control.sm";
|
|
6
|
-
textStyle: "xs";
|
|
7
|
-
px: "2";
|
|
8
|
-
'--input-height': "sizes.6";
|
|
9
|
-
};
|
|
10
|
-
control: {
|
|
11
|
-
fontSize: "2xs";
|
|
12
|
-
'--stepper-width': "sizes.4";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
sm: {
|
|
16
|
-
input: {
|
|
17
|
-
borderRadius: "control.md";
|
|
18
|
-
textStyle: "sm";
|
|
19
|
-
px: "2.5";
|
|
20
|
-
'--input-height': "sizes.7";
|
|
21
|
-
};
|
|
22
|
-
control: {
|
|
23
|
-
fontSize: "xs";
|
|
24
|
-
'--stepper-width': "sizes.5";
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
md: {
|
|
28
|
-
input: {
|
|
29
|
-
borderRadius: "control.md";
|
|
30
|
-
textStyle: "sm";
|
|
31
|
-
px: "3";
|
|
32
|
-
'--input-height': "sizes.8";
|
|
33
|
-
};
|
|
34
|
-
control: {
|
|
35
|
-
fontSize: "sm";
|
|
36
|
-
'--stepper-width': "sizes.6";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
lg: {
|
|
40
|
-
input: {
|
|
41
|
-
borderRadius: "control.lg";
|
|
42
|
-
textStyle: "md";
|
|
43
|
-
px: "4.5";
|
|
44
|
-
'--input-height': "sizes.10";
|
|
45
|
-
};
|
|
46
|
-
control: {
|
|
47
|
-
fontSize: "sm";
|
|
48
|
-
'--stepper-width': "sizes.6";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
variant: {
|
|
53
|
-
outline: {
|
|
54
|
-
input: {
|
|
55
|
-
bg: "transparent";
|
|
56
|
-
borderWidth: "1px";
|
|
57
|
-
borderColor: "border";
|
|
58
|
-
focusVisibleRing: "inside";
|
|
59
|
-
focusRingWidth: "0";
|
|
60
|
-
_hover: {
|
|
61
|
-
borderColor: "border.emphasized";
|
|
62
|
-
_focusVisible: {
|
|
63
|
-
borderColor: "var(--focus-ring-color)";
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
} | {
|
|
67
|
-
borderWidth: "1px";
|
|
68
|
-
borderColor: "transparent";
|
|
69
|
-
bg: "bg.muted";
|
|
70
|
-
focusVisibleRing: "inside";
|
|
71
|
-
} | {
|
|
72
|
-
bg: "transparent";
|
|
73
|
-
borderBottomWidth: "1px";
|
|
74
|
-
borderBottomColor: "border";
|
|
75
|
-
borderRadius: "0";
|
|
76
|
-
px: "0";
|
|
77
|
-
_focusVisible: {
|
|
78
|
-
borderColor: "var(--focus-color)";
|
|
79
|
-
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
subtle: {
|
|
84
|
-
input: {
|
|
85
|
-
bg: "transparent";
|
|
86
|
-
borderWidth: "1px";
|
|
87
|
-
borderColor: "border";
|
|
88
|
-
focusVisibleRing: "inside";
|
|
89
|
-
focusRingWidth: "0";
|
|
90
|
-
_hover: {
|
|
91
|
-
borderColor: "border.emphasized";
|
|
92
|
-
_focusVisible: {
|
|
93
|
-
borderColor: "var(--focus-ring-color)";
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
} | {
|
|
97
|
-
borderWidth: "1px";
|
|
98
|
-
borderColor: "transparent";
|
|
99
|
-
bg: "bg.muted";
|
|
100
|
-
focusVisibleRing: "inside";
|
|
101
|
-
} | {
|
|
102
|
-
bg: "transparent";
|
|
103
|
-
borderBottomWidth: "1px";
|
|
104
|
-
borderBottomColor: "border";
|
|
105
|
-
borderRadius: "0";
|
|
106
|
-
px: "0";
|
|
107
|
-
_focusVisible: {
|
|
108
|
-
borderColor: "var(--focus-color)";
|
|
109
|
-
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
flushed: {
|
|
114
|
-
input: {
|
|
115
|
-
bg: "transparent";
|
|
116
|
-
borderWidth: "1px";
|
|
117
|
-
borderColor: "border";
|
|
118
|
-
focusVisibleRing: "inside";
|
|
119
|
-
focusRingWidth: "0";
|
|
120
|
-
_hover: {
|
|
121
|
-
borderColor: "border.emphasized";
|
|
122
|
-
_focusVisible: {
|
|
123
|
-
borderColor: "var(--focus-ring-color)";
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
} | {
|
|
127
|
-
borderWidth: "1px";
|
|
128
|
-
borderColor: "transparent";
|
|
129
|
-
bg: "bg.muted";
|
|
130
|
-
focusVisibleRing: "inside";
|
|
131
|
-
} | {
|
|
132
|
-
bg: "transparent";
|
|
133
|
-
borderBottomWidth: "1px";
|
|
134
|
-
borderBottomColor: "border";
|
|
135
|
-
borderRadius: "0";
|
|
136
|
-
px: "0";
|
|
137
|
-
_focusVisible: {
|
|
138
|
-
borderColor: "var(--focus-color)";
|
|
139
|
-
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
}>;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { numberInputAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe, defineStyle } from '@chakra-ui/react/styled-system';
|
|
3
|
-
import { mapEntries } from "../../theme/utils.js";
|
|
4
|
-
import { inputRecipe } from "../input/input.recipe.js";
|
|
5
|
-
const triggerStyle = defineStyle({
|
|
6
|
-
display: 'flex',
|
|
7
|
-
justifyContent: 'center',
|
|
8
|
-
alignItems: 'center',
|
|
9
|
-
flex: '1',
|
|
10
|
-
userSelect: 'none',
|
|
11
|
-
cursor: 'button',
|
|
12
|
-
lineHeight: '1',
|
|
13
|
-
color: 'fg.muted',
|
|
14
|
-
'--stepper-base-radius': 'radii.xs',
|
|
15
|
-
'--stepper-radius': 'calc(var(--stepper-base-radius) + 1px)',
|
|
16
|
-
_icon: {
|
|
17
|
-
boxSize: '1em',
|
|
18
|
-
},
|
|
19
|
-
_disabled: {
|
|
20
|
-
opacity: '0.5',
|
|
21
|
-
},
|
|
22
|
-
_hover: {
|
|
23
|
-
bg: 'bg.muted',
|
|
24
|
-
},
|
|
25
|
-
_active: {
|
|
26
|
-
bg: 'bg.emphasized',
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
export const numberInputSlotRecipe = defineSlotRecipe({
|
|
30
|
-
className: 'chakra-number-input',
|
|
31
|
-
slots: numberInputAnatomy.keys(),
|
|
32
|
-
base: {
|
|
33
|
-
root: {
|
|
34
|
-
position: 'relative',
|
|
35
|
-
zIndex: '0',
|
|
36
|
-
isolation: 'isolate',
|
|
37
|
-
width: 'full',
|
|
38
|
-
},
|
|
39
|
-
input: {
|
|
40
|
-
...inputRecipe.base,
|
|
41
|
-
verticalAlign: 'top',
|
|
42
|
-
pe: 'calc(var(--stepper-width) + 0.5rem)',
|
|
43
|
-
},
|
|
44
|
-
control: {
|
|
45
|
-
display: 'flex',
|
|
46
|
-
flexDirection: 'column',
|
|
47
|
-
position: 'absolute',
|
|
48
|
-
top: '0',
|
|
49
|
-
insetEnd: '0px',
|
|
50
|
-
margin: '1px',
|
|
51
|
-
width: 'var(--stepper-width)',
|
|
52
|
-
height: 'calc(100% - 2px)',
|
|
53
|
-
zIndex: '1',
|
|
54
|
-
borderStartWidth: '1px',
|
|
55
|
-
divideY: '1px',
|
|
56
|
-
},
|
|
57
|
-
incrementTrigger: {
|
|
58
|
-
...triggerStyle,
|
|
59
|
-
borderTopEndRadius: 'var(--stepper-radius)',
|
|
60
|
-
},
|
|
61
|
-
decrementTrigger: {
|
|
62
|
-
...triggerStyle,
|
|
63
|
-
borderBottomEndRadius: 'var(--stepper-radius)',
|
|
64
|
-
},
|
|
65
|
-
valueText: {
|
|
66
|
-
fontWeight: 'medium',
|
|
67
|
-
fontFeatureSettings: 'pnum',
|
|
68
|
-
fontVariantNumeric: 'proportional-nums',
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
variants: {
|
|
72
|
-
size: {
|
|
73
|
-
xs: {
|
|
74
|
-
input: inputRecipe.variants.size.xs,
|
|
75
|
-
control: {
|
|
76
|
-
fontSize: '2xs',
|
|
77
|
-
'--stepper-width': 'sizes.4',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
sm: {
|
|
81
|
-
input: inputRecipe.variants.size.sm,
|
|
82
|
-
control: {
|
|
83
|
-
fontSize: 'xs',
|
|
84
|
-
'--stepper-width': 'sizes.5',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
md: {
|
|
88
|
-
input: inputRecipe.variants.size.md,
|
|
89
|
-
control: {
|
|
90
|
-
fontSize: 'sm',
|
|
91
|
-
'--stepper-width': 'sizes.6',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
lg: {
|
|
95
|
-
input: inputRecipe.variants.size.lg,
|
|
96
|
-
control: {
|
|
97
|
-
fontSize: 'sm',
|
|
98
|
-
'--stepper-width': 'sizes.6',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
variant: mapEntries(inputRecipe.variants.variant, (key, variantStyles) => [
|
|
103
|
-
key,
|
|
104
|
-
{ input: variantStyles },
|
|
105
|
-
]),
|
|
106
|
-
},
|
|
107
|
-
defaultVariants: {
|
|
108
|
-
size: 'md',
|
|
109
|
-
variant: 'outline',
|
|
110
|
-
},
|
|
111
|
-
});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare const pageSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<string, {
|
|
2
|
-
variant: {
|
|
3
|
-
panel: {
|
|
4
|
-
root: {
|
|
5
|
-
bg: "var(--page-bg-color)";
|
|
6
|
-
zIndex: number;
|
|
7
|
-
};
|
|
8
|
-
header: {
|
|
9
|
-
'--page-header-row-height': "40px";
|
|
10
|
-
display: "grid";
|
|
11
|
-
gridTemplateAreas: "\"nav heading actions\"\n \"footer footer footer\"";
|
|
12
|
-
gridTemplateColumns: "auto max-content 1fr";
|
|
13
|
-
gridTemplateRows: "minmax(var(--page-header-row-height), auto)";
|
|
14
|
-
columnGap: number;
|
|
15
|
-
alignItems: "center";
|
|
16
|
-
justifyContent: "stretch";
|
|
17
|
-
flexShrink: number;
|
|
18
|
-
px: number;
|
|
19
|
-
borderBottomWidth: "1px";
|
|
20
|
-
};
|
|
21
|
-
title: {
|
|
22
|
-
me: number;
|
|
23
|
-
textStyle: "sm";
|
|
24
|
-
};
|
|
25
|
-
description: {
|
|
26
|
-
textStyle: "xs";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
settings: {
|
|
30
|
-
root: {
|
|
31
|
-
overflowY: "auto";
|
|
32
|
-
px: number;
|
|
33
|
-
};
|
|
34
|
-
header: {
|
|
35
|
-
flexDirection: "row";
|
|
36
|
-
alignItems: "center";
|
|
37
|
-
mb: {
|
|
38
|
-
base: number;
|
|
39
|
-
lg: number;
|
|
40
|
-
};
|
|
41
|
-
minH: number;
|
|
42
|
-
};
|
|
43
|
-
heading: {
|
|
44
|
-
py: {
|
|
45
|
-
base: number;
|
|
46
|
-
lg: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
title: {
|
|
50
|
-
textStyle: "2xl";
|
|
51
|
-
};
|
|
52
|
-
description: {
|
|
53
|
-
textStyle: "md";
|
|
54
|
-
};
|
|
55
|
-
body: {
|
|
56
|
-
overflow: "visible";
|
|
57
|
-
p: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
}>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
2
|
-
const slots = [
|
|
3
|
-
'root',
|
|
4
|
-
'header',
|
|
5
|
-
'headerContent',
|
|
6
|
-
'heading',
|
|
7
|
-
'headerFooter',
|
|
8
|
-
'title',
|
|
9
|
-
'description',
|
|
10
|
-
'body',
|
|
11
|
-
];
|
|
12
|
-
export const pageSlotRecipe = defineSlotRecipe({
|
|
13
|
-
className: 'sui-page',
|
|
14
|
-
slots,
|
|
15
|
-
base: {
|
|
16
|
-
root: {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
flex: 1,
|
|
20
|
-
minH: 0,
|
|
21
|
-
},
|
|
22
|
-
title: {
|
|
23
|
-
fontWeight: 'medium',
|
|
24
|
-
},
|
|
25
|
-
description: {
|
|
26
|
-
color: 'fg.muted',
|
|
27
|
-
},
|
|
28
|
-
body: {
|
|
29
|
-
flex: 1,
|
|
30
|
-
overflowY: 'auto',
|
|
31
|
-
p: 4,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
variants: {
|
|
35
|
-
variant: {
|
|
36
|
-
panel: {
|
|
37
|
-
root: {
|
|
38
|
-
bg: 'var(--page-bg-color)',
|
|
39
|
-
zIndex: 1,
|
|
40
|
-
},
|
|
41
|
-
header: {
|
|
42
|
-
'--page-header-row-height': '40px',
|
|
43
|
-
display: 'grid',
|
|
44
|
-
gridTemplateAreas: `"nav heading actions"
|
|
45
|
-
"footer footer footer"`,
|
|
46
|
-
gridTemplateColumns: 'auto max-content 1fr',
|
|
47
|
-
gridTemplateRows: 'minmax(var(--page-header-row-height), auto)',
|
|
48
|
-
columnGap: 2,
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
justifyContent: 'stretch',
|
|
51
|
-
flexShrink: 0,
|
|
52
|
-
px: 3,
|
|
53
|
-
borderBottomWidth: '1px',
|
|
54
|
-
},
|
|
55
|
-
title: {
|
|
56
|
-
me: 4,
|
|
57
|
-
textStyle: 'sm',
|
|
58
|
-
},
|
|
59
|
-
description: {
|
|
60
|
-
textStyle: 'xs',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
settings: {
|
|
64
|
-
root: {
|
|
65
|
-
overflowY: 'auto',
|
|
66
|
-
px: 4,
|
|
67
|
-
},
|
|
68
|
-
header: {
|
|
69
|
-
flexDirection: 'row',
|
|
70
|
-
alignItems: 'center',
|
|
71
|
-
mb: {
|
|
72
|
-
base: 4,
|
|
73
|
-
lg: 8,
|
|
74
|
-
},
|
|
75
|
-
minH: 24,
|
|
76
|
-
},
|
|
77
|
-
heading: {
|
|
78
|
-
py: {
|
|
79
|
-
base: 4,
|
|
80
|
-
lg: 8,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
title: {
|
|
84
|
-
textStyle: '2xl',
|
|
85
|
-
},
|
|
86
|
-
description: {
|
|
87
|
-
textStyle: 'md',
|
|
88
|
-
},
|
|
89
|
-
body: {
|
|
90
|
-
overflow: 'visible',
|
|
91
|
-
p: 0,
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
defaultVariants: {
|
|
97
|
-
variant: 'panel',
|
|
98
|
-
},
|
|
99
|
-
});
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { type RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export declare const personaSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "presence" | "root" | "avatar" | "details" | "secondaryLabel" | "tertiaryLabel", {
|
|
3
|
-
size: {
|
|
4
|
-
'2xs': {
|
|
5
|
-
details: {
|
|
6
|
-
ms: number;
|
|
7
|
-
};
|
|
8
|
-
label: {
|
|
9
|
-
fontSize: "xs";
|
|
10
|
-
};
|
|
11
|
-
secondaryLabel: {
|
|
12
|
-
display: "none";
|
|
13
|
-
};
|
|
14
|
-
tertiaryLabel: {
|
|
15
|
-
display: "none";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
xs: {
|
|
19
|
-
details: {
|
|
20
|
-
ms: number;
|
|
21
|
-
};
|
|
22
|
-
label: {
|
|
23
|
-
fontSize: "xs";
|
|
24
|
-
};
|
|
25
|
-
secondaryLabel: {
|
|
26
|
-
display: "none";
|
|
27
|
-
};
|
|
28
|
-
tertiaryLabel: {
|
|
29
|
-
display: "none";
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
sm: {
|
|
33
|
-
details: {
|
|
34
|
-
ms: number;
|
|
35
|
-
};
|
|
36
|
-
label: {
|
|
37
|
-
fontSize: "sm";
|
|
38
|
-
};
|
|
39
|
-
secondaryLabel: {
|
|
40
|
-
fontSize: "xs";
|
|
41
|
-
};
|
|
42
|
-
tertiaryLabel: {
|
|
43
|
-
display: "none";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
md: {
|
|
47
|
-
details: {
|
|
48
|
-
ms: number;
|
|
49
|
-
};
|
|
50
|
-
label: {
|
|
51
|
-
fontSize: "sm";
|
|
52
|
-
};
|
|
53
|
-
secondaryLabel: {
|
|
54
|
-
fontSize: "xs";
|
|
55
|
-
};
|
|
56
|
-
tertiaryLabel: {
|
|
57
|
-
display: "none";
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
lg: {
|
|
61
|
-
details: {
|
|
62
|
-
ms: number;
|
|
63
|
-
};
|
|
64
|
-
label: {
|
|
65
|
-
fontSize: "md";
|
|
66
|
-
};
|
|
67
|
-
secondaryLabel: {
|
|
68
|
-
fontSize: "sm";
|
|
69
|
-
};
|
|
70
|
-
tertiaryLabel: {
|
|
71
|
-
fontSize: "sm";
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
xl: {
|
|
75
|
-
details: {
|
|
76
|
-
ms: number;
|
|
77
|
-
};
|
|
78
|
-
label: {
|
|
79
|
-
fontSize: "lg";
|
|
80
|
-
};
|
|
81
|
-
secondaryLabel: {
|
|
82
|
-
fontSize: "md";
|
|
83
|
-
};
|
|
84
|
-
tertiaryLabel: {
|
|
85
|
-
fontSize: "md";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
'2xl': {
|
|
89
|
-
details: {
|
|
90
|
-
ms: number;
|
|
91
|
-
};
|
|
92
|
-
label: {
|
|
93
|
-
fontSize: "xl";
|
|
94
|
-
};
|
|
95
|
-
secondaryLabel: {
|
|
96
|
-
fontSize: "lg";
|
|
97
|
-
};
|
|
98
|
-
tertiaryLabel: {
|
|
99
|
-
fontSize: "lg";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
export type PersonaVariantProps = RecipeVariantProps<typeof personaSlotRecipe>;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineSlotRecipe, defineStyle, } from '@chakra-ui/react/styled-system';
|
|
2
|
-
const baseStyleLabel = defineStyle({
|
|
3
|
-
overflow: 'hidden',
|
|
4
|
-
whiteSpace: 'nowrap',
|
|
5
|
-
textOverflow: 'ellipsis',
|
|
6
|
-
minW: 0,
|
|
7
|
-
color: 'fg',
|
|
8
|
-
});
|
|
9
|
-
export const personaSlotRecipe = defineSlotRecipe({
|
|
10
|
-
className: 'sui-persona',
|
|
11
|
-
slots: [
|
|
12
|
-
'root',
|
|
13
|
-
'avatar',
|
|
14
|
-
'presence',
|
|
15
|
-
'details',
|
|
16
|
-
'label',
|
|
17
|
-
'secondaryLabel',
|
|
18
|
-
'tertiaryLabel',
|
|
19
|
-
],
|
|
20
|
-
base: {
|
|
21
|
-
root: {
|
|
22
|
-
'--presence-border-color': 'var(--bg-currentcolor)',
|
|
23
|
-
display: 'flex',
|
|
24
|
-
flexDirection: 'row',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
},
|
|
27
|
-
presence: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
alignItems: 'center',
|
|
30
|
-
justifyContent: 'center',
|
|
31
|
-
position: 'absolute',
|
|
32
|
-
bottom: 0,
|
|
33
|
-
right: 0,
|
|
34
|
-
boxSize: 'calc(var(--avatar-size) / 3)',
|
|
35
|
-
transform: 'translate(12%, 12%)',
|
|
36
|
-
borderWidth: '0.10em',
|
|
37
|
-
borderRadius: '50%',
|
|
38
|
-
borderColor: 'var(--presence-border-color)',
|
|
39
|
-
bg: 'var(--persona-presence)',
|
|
40
|
-
},
|
|
41
|
-
details: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexDirection: 'column',
|
|
44
|
-
minW: 0,
|
|
45
|
-
lineHeight: 'short',
|
|
46
|
-
},
|
|
47
|
-
label: baseStyleLabel,
|
|
48
|
-
secondaryLabel: {
|
|
49
|
-
...baseStyleLabel,
|
|
50
|
-
color: 'fg/60',
|
|
51
|
-
},
|
|
52
|
-
tertiaryLabel: {
|
|
53
|
-
...baseStyleLabel,
|
|
54
|
-
color: 'fg/60',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
variants: {
|
|
58
|
-
size: {
|
|
59
|
-
'2xs': {
|
|
60
|
-
details: { ms: 1 },
|
|
61
|
-
label: { fontSize: 'xs' },
|
|
62
|
-
secondaryLabel: { display: 'none' },
|
|
63
|
-
tertiaryLabel: { display: 'none' },
|
|
64
|
-
},
|
|
65
|
-
xs: {
|
|
66
|
-
details: { ms: 1.5 },
|
|
67
|
-
label: { fontSize: 'xs' },
|
|
68
|
-
secondaryLabel: { display: 'none' },
|
|
69
|
-
tertiaryLabel: { display: 'none' },
|
|
70
|
-
},
|
|
71
|
-
sm: {
|
|
72
|
-
details: { ms: 2 },
|
|
73
|
-
label: { fontSize: 'sm' },
|
|
74
|
-
secondaryLabel: { fontSize: 'xs' },
|
|
75
|
-
tertiaryLabel: { display: 'none' },
|
|
76
|
-
},
|
|
77
|
-
md: {
|
|
78
|
-
details: { ms: 2 },
|
|
79
|
-
label: { fontSize: 'sm' },
|
|
80
|
-
secondaryLabel: { fontSize: 'xs' },
|
|
81
|
-
tertiaryLabel: { display: 'none' },
|
|
82
|
-
},
|
|
83
|
-
lg: {
|
|
84
|
-
details: { ms: 3 },
|
|
85
|
-
label: { fontSize: 'md' },
|
|
86
|
-
secondaryLabel: { fontSize: 'sm' },
|
|
87
|
-
tertiaryLabel: { fontSize: 'sm' },
|
|
88
|
-
},
|
|
89
|
-
xl: {
|
|
90
|
-
details: { ms: 4 },
|
|
91
|
-
label: { fontSize: 'lg' },
|
|
92
|
-
secondaryLabel: { fontSize: 'md' },
|
|
93
|
-
tertiaryLabel: { fontSize: 'md' },
|
|
94
|
-
},
|
|
95
|
-
'2xl': {
|
|
96
|
-
details: { ms: 4 },
|
|
97
|
-
label: { fontSize: 'xl' },
|
|
98
|
-
secondaryLabel: { fontSize: 'lg' },
|
|
99
|
-
tertiaryLabel: { fontSize: 'lg' },
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
defaultVariants: {
|
|
104
|
-
size: 'md',
|
|
105
|
-
},
|
|
106
|
-
});
|