@yamada-ui/react 0.5.6 → 0.5.9

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.
@@ -0,0 +1,5 @@
1
+ import { ThemeConfig } from '@yamada-ui/core';
2
+
3
+ declare const extendConfig: (theme: ThemeConfig) => ThemeConfig;
4
+
5
+ export { extendConfig };
@@ -0,0 +1,18 @@
1
+ import { UsageTheme, ThemeToken, ThemeTokens, UIStyle, ComponentStyle, ComponentSizes, ComponentVariants, ComponentDefaultProps } from '@yamada-ui/core';
2
+ import { defaultTheme } from '@yamada-ui/theme';
3
+ import { Dict } from '@yamada-ui/utils';
4
+
5
+ type Options = {
6
+ merge?: boolean;
7
+ omit?: (keyof typeof defaultTheme)[];
8
+ pick?: (keyof typeof defaultTheme)[];
9
+ };
10
+ declare const extendTheme: (...extensions: (UsageTheme | ((theme: UsageTheme) => UsageTheme))[]) => ({ merge, pick, omit }?: Options) => Dict;
11
+ declare const extendToken: (token: ThemeToken, tokens?: ThemeTokens) => ThemeTokens;
12
+ declare const extendStyle: (name: 'globalStyle' | 'resetStyle', style: UIStyle) => UIStyle;
13
+ declare const extendComponent: (name: keyof (typeof defaultTheme)['components'], componentStyle?: ComponentStyle) => ComponentStyle;
14
+ declare const extendComponentSize: (name: keyof (typeof defaultTheme)['components'], componentSizes?: ComponentSizes) => ComponentSizes;
15
+ declare const extendComponentVariant: (name: keyof (typeof defaultTheme)['components'], componentVariants?: ComponentVariants) => ComponentVariants;
16
+ declare const extendComponentDefaultProps: (name: keyof (typeof defaultTheme)['components'], componentDefaultProps?: ComponentDefaultProps) => ComponentDefaultProps;
17
+
18
+ export { extendComponent, extendComponentDefaultProps, extendComponentSize, extendComponentVariant, extendStyle, extendTheme, extendToken };
@@ -0,0 +1,88 @@
1
+ export { extendComponent, extendComponentDefaultProps, extendComponentSize, extendComponentVariant, extendStyle, extendTheme, extendToken } from './extend-theme.mjs';
2
+ export { withDefaultColorScheme, withDefaultProps, withDefaultSize, withDefaultVariant } from './with-default.mjs';
3
+ export { extendConfig } from './extend-config.mjs';
4
+ export * from '@yamada-ui/core';
5
+ export * from '@yamada-ui/utils';
6
+ export * from '@yamada-ui/theme';
7
+ export * from '@yamada-ui/providers';
8
+ export * from '@yamada-ui/accordion';
9
+ export * from '@yamada-ui/alert';
10
+ export * from '@yamada-ui/badge';
11
+ export * from '@yamada-ui/breadcrumb';
12
+ export * from '@yamada-ui/button';
13
+ export * from '@yamada-ui/close-button';
14
+ export * from '@yamada-ui/card';
15
+ export * from '@yamada-ui/checkbox';
16
+ export * from '@yamada-ui/editable';
17
+ export * from '@yamada-ui/file-button';
18
+ export * from '@yamada-ui/focus-lock';
19
+ export * from '@yamada-ui/form-control';
20
+ export * from '@yamada-ui/highlight';
21
+ export * from '@yamada-ui/icon';
22
+ export * from '@yamada-ui/image';
23
+ export * from '@yamada-ui/input';
24
+ export * from '@yamada-ui/kbd';
25
+ export * from '@yamada-ui/layouts';
26
+ export * from '@yamada-ui/link';
27
+ export * from '@yamada-ui/list';
28
+ export * from '@yamada-ui/loading';
29
+ export * from '@yamada-ui/menu';
30
+ export * from '@yamada-ui/modal';
31
+ export * from '@yamada-ui/motion';
32
+ export * from '@yamada-ui/native-select';
33
+ export * from '@yamada-ui/notice';
34
+ export * from '@yamada-ui/number-input';
35
+ export * from '@yamada-ui/pin-input';
36
+ export * from '@yamada-ui/popover';
37
+ export * from '@yamada-ui/portal';
38
+ export * from '@yamada-ui/progress';
39
+ export * from '@yamada-ui/radio';
40
+ export * from '@yamada-ui/segmented-control';
41
+ export * from '@yamada-ui/select';
42
+ export * from '@yamada-ui/slider';
43
+ export * from '@yamada-ui/switch';
44
+ export * from '@yamada-ui/tabs';
45
+ export * from '@yamada-ui/tag';
46
+ export * from '@yamada-ui/textarea';
47
+ export * from '@yamada-ui/tooltip';
48
+ export * from '@yamada-ui/transitions';
49
+ export * from '@yamada-ui/typography';
50
+ export * from '@yamada-ui/use-animation';
51
+ export * from '@yamada-ui/use-boolean';
52
+ export * from '@yamada-ui/use-breakpoint';
53
+ export * from '@yamada-ui/use-clickable';
54
+ export * from '@yamada-ui/use-controllable-state';
55
+ export * from '@yamada-ui/use-counter';
56
+ export * from '@yamada-ui/use-descendant';
57
+ export * from '@yamada-ui/use-disclosure';
58
+ export * from '@yamada-ui/use-event-listener';
59
+ export * from '@yamada-ui/use-focus';
60
+ export * from '@yamada-ui/use-focus-visible';
61
+ export * from '@yamada-ui/use-interval';
62
+ export * from '@yamada-ui/use-latest-ref';
63
+ export * from '@yamada-ui/use-outside-click';
64
+ export * from '@yamada-ui/use-pan-event';
65
+ export * from '@yamada-ui/use-popper';
66
+ export * from '@yamada-ui/use-resize-observer';
67
+ export * from '@yamada-ui/use-size';
68
+ export * from '@yamada-ui/use-timeout';
69
+ export * from '@yamada-ui/use-token';
70
+ export * from '@yamada-ui/use-value';
71
+ export * from '@yamada-ui/file-input';
72
+ export * from '@yamada-ui/scroll-area';
73
+ export * from '@yamada-ui/autocomplete';
74
+ export * from '@yamada-ui/avatar';
75
+ export * from '@yamada-ui/reorder';
76
+ export * from '@yamada-ui/pagination';
77
+ export * from '@yamada-ui/skeleton';
78
+ export * from '@yamada-ui/use-previous';
79
+ export * from '@yamada-ui/stepper';
80
+ export * from '@yamada-ui/native-table';
81
+ export * from '@yamada-ui/indicator';
82
+ export * from '@yamada-ui/use-hover';
83
+ export * from '@yamada-ui/use-idle';
84
+ export * from '@yamada-ui/use-os';
85
+ export * from '@yamada-ui/use-local-storage';
86
+ export * from '@yamada-ui/use-window-event';
87
+ export * from '@yamada-ui/use-media-query';
88
+ export * from '@yamada-ui/use-clipboard';
@@ -0,0 +1,21 @@
1
+ import { ComponentDefaultProps, UsageTheme } from '@yamada-ui/core';
2
+ import { Union } from '@yamada-ui/utils';
3
+
4
+ declare const withDefaultSize: ({ size, components, }: {
5
+ size: ComponentDefaultProps['size'];
6
+ components?: Union<"Indicator" | "Accordion" | "Alert" | "Avatar" | "Badge" | "Button" | "Calendar" | "Card" | "Carousel" | "Checkbox" | "CloseButton" | "DatePicker" | "Dialog" | "Divider" | "Drawer" | "Dropzone" | "Heading" | "Input" | "Mark" | "Modal" | "NumberInput" | "Pagination" | "PinInput" | "Progress" | "Radio" | "Reorder" | "SegmentedControl" | "Select" | "Slider" | "Stepper" | "Switch" | "Table" | "Tabs" | "Tag" | "Textarea">[] | undefined;
7
+ }) => (theme: UsageTheme) => UsageTheme;
8
+ declare const withDefaultVariant: ({ variant, components, }: {
9
+ variant: ComponentDefaultProps['variant'];
10
+ components?: Union<"Indicator" | "Accordion" | "Alert" | "Avatar" | "Badge" | "Button" | "Calendar" | "Card" | "Carousel" | "Checkbox" | "CloseButton" | "DatePicker" | "Dialog" | "Divider" | "Drawer" | "Dropzone" | "Heading" | "Input" | "Mark" | "Modal" | "NumberInput" | "Pagination" | "PinInput" | "Progress" | "Radio" | "Reorder" | "SegmentedControl" | "Select" | "Slider" | "Stepper" | "Switch" | "Table" | "Tabs" | "Tag" | "Textarea">[] | undefined;
11
+ }) => (theme: UsageTheme) => UsageTheme;
12
+ declare const withDefaultColorScheme: ({ colorScheme, components, }: {
13
+ colorScheme: ComponentDefaultProps['colorScheme'];
14
+ components?: Union<"Indicator" | "Accordion" | "Alert" | "Avatar" | "Badge" | "Button" | "Calendar" | "Card" | "Carousel" | "Checkbox" | "CloseButton" | "DatePicker" | "Dialog" | "Divider" | "Drawer" | "Dropzone" | "Heading" | "Input" | "Mark" | "Modal" | "NumberInput" | "Pagination" | "PinInput" | "Progress" | "Radio" | "Reorder" | "SegmentedControl" | "Select" | "Slider" | "Stepper" | "Switch" | "Table" | "Tabs" | "Tag" | "Textarea">[] | undefined;
15
+ }) => (theme: UsageTheme) => UsageTheme;
16
+ declare const withDefaultProps: ({ defaultProps, components, }: {
17
+ defaultProps: ComponentDefaultProps;
18
+ components?: Union<"Indicator" | "Accordion" | "Alert" | "Avatar" | "Badge" | "Button" | "Calendar" | "Card" | "Carousel" | "Checkbox" | "CloseButton" | "DatePicker" | "Dialog" | "Divider" | "Drawer" | "Dropzone" | "Heading" | "Input" | "Mark" | "Modal" | "NumberInput" | "Pagination" | "PinInput" | "Progress" | "Radio" | "Reorder" | "SegmentedControl" | "Select" | "Slider" | "Stepper" | "Switch" | "Table" | "Tabs" | "Tag" | "Textarea">[] | undefined;
19
+ }) => UsageTheme;
20
+
21
+ export { withDefaultColorScheme, withDefaultProps, withDefaultSize, withDefaultVariant };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
- "version": "0.5.6",
3
+ "version": "0.5.9",
4
4
  "description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,91 +35,91 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/accordion": "0.2.4",
39
- "@yamada-ui/alert": "0.3.3",
40
- "@yamada-ui/autocomplete": "0.2.6",
41
- "@yamada-ui/avatar": "0.2.4",
42
- "@yamada-ui/badge": "0.2.3",
43
- "@yamada-ui/breadcrumb": "0.2.3",
44
- "@yamada-ui/button": "0.2.3",
45
- "@yamada-ui/card": "0.2.3",
46
- "@yamada-ui/checkbox": "0.2.4",
47
- "@yamada-ui/close-button": "0.2.3",
48
- "@yamada-ui/core": "0.4.2",
49
- "@yamada-ui/editable": "0.2.3",
50
- "@yamada-ui/file-button": "0.2.3",
51
- "@yamada-ui/file-input": "0.2.3",
52
- "@yamada-ui/focus-lock": "0.2.1",
53
- "@yamada-ui/form-control": "0.2.3",
54
- "@yamada-ui/highlight": "0.2.3",
55
- "@yamada-ui/icon": "0.2.3",
56
- "@yamada-ui/image": "0.2.3",
57
- "@yamada-ui/indicator": "0.2.3",
58
- "@yamada-ui/input": "0.2.3",
59
- "@yamada-ui/kbd": "0.2.3",
60
- "@yamada-ui/layouts": "0.2.3",
61
- "@yamada-ui/link": "0.2.3",
62
- "@yamada-ui/list": "0.2.3",
63
- "@yamada-ui/loading": "0.3.3",
64
- "@yamada-ui/menu": "0.2.6",
65
- "@yamada-ui/modal": "0.2.4",
66
- "@yamada-ui/motion": "0.3.1",
67
- "@yamada-ui/native-select": "0.2.3",
68
- "@yamada-ui/native-table": "0.2.3",
69
- "@yamada-ui/notice": "0.3.3",
70
- "@yamada-ui/number-input": "0.2.3",
71
- "@yamada-ui/pagination": "0.2.3",
72
- "@yamada-ui/pin-input": "0.2.3",
73
- "@yamada-ui/popover": "0.2.6",
74
- "@yamada-ui/portal": "0.2.1",
75
- "@yamada-ui/progress": "0.3.3",
76
- "@yamada-ui/providers": "0.4.3",
77
- "@yamada-ui/radio": "0.2.3",
78
- "@yamada-ui/reorder": "0.2.4",
79
- "@yamada-ui/scroll-area": "0.2.3",
80
- "@yamada-ui/segmented-control": "0.2.3",
81
- "@yamada-ui/select": "0.2.6",
82
- "@yamada-ui/skeleton": "0.2.3",
83
- "@yamada-ui/slider": "0.2.3",
84
- "@yamada-ui/stepper": "0.2.3",
85
- "@yamada-ui/switch": "0.2.4",
86
- "@yamada-ui/tabs": "0.2.5",
87
- "@yamada-ui/tag": "0.2.3",
88
- "@yamada-ui/textarea": "0.2.3",
89
- "@yamada-ui/theme": "0.3.4",
90
- "@yamada-ui/tooltip": "0.2.6",
91
- "@yamada-ui/transitions": "0.2.4",
92
- "@yamada-ui/typography": "0.2.3",
93
- "@yamada-ui/use-animation": "0.1.15",
38
+ "@yamada-ui/accordion": "0.2.7",
39
+ "@yamada-ui/alert": "0.3.5",
40
+ "@yamada-ui/autocomplete": "0.2.9",
41
+ "@yamada-ui/avatar": "0.2.6",
42
+ "@yamada-ui/badge": "0.2.5",
43
+ "@yamada-ui/breadcrumb": "0.2.5",
44
+ "@yamada-ui/button": "0.2.5",
45
+ "@yamada-ui/card": "0.2.5",
46
+ "@yamada-ui/checkbox": "0.2.6",
47
+ "@yamada-ui/close-button": "0.2.5",
48
+ "@yamada-ui/core": "0.5.0",
49
+ "@yamada-ui/editable": "0.2.5",
50
+ "@yamada-ui/file-button": "0.2.5",
51
+ "@yamada-ui/file-input": "0.2.5",
52
+ "@yamada-ui/focus-lock": "0.2.2",
53
+ "@yamada-ui/form-control": "0.2.5",
54
+ "@yamada-ui/highlight": "0.2.5",
55
+ "@yamada-ui/icon": "0.2.5",
56
+ "@yamada-ui/image": "0.2.5",
57
+ "@yamada-ui/indicator": "0.2.5",
58
+ "@yamada-ui/input": "0.2.5",
59
+ "@yamada-ui/kbd": "0.2.5",
60
+ "@yamada-ui/layouts": "0.2.5",
61
+ "@yamada-ui/link": "0.2.5",
62
+ "@yamada-ui/list": "0.2.5",
63
+ "@yamada-ui/loading": "0.3.5",
64
+ "@yamada-ui/menu": "0.2.9",
65
+ "@yamada-ui/modal": "0.2.6",
66
+ "@yamada-ui/motion": "0.3.3",
67
+ "@yamada-ui/native-select": "0.2.5",
68
+ "@yamada-ui/native-table": "0.2.5",
69
+ "@yamada-ui/notice": "0.3.5",
70
+ "@yamada-ui/number-input": "0.2.5",
71
+ "@yamada-ui/pagination": "0.2.5",
72
+ "@yamada-ui/pin-input": "0.2.6",
73
+ "@yamada-ui/popover": "0.2.8",
74
+ "@yamada-ui/portal": "0.2.2",
75
+ "@yamada-ui/progress": "0.3.5",
76
+ "@yamada-ui/providers": "0.5.1",
77
+ "@yamada-ui/radio": "0.2.5",
78
+ "@yamada-ui/reorder": "0.2.6",
79
+ "@yamada-ui/scroll-area": "0.2.5",
80
+ "@yamada-ui/segmented-control": "0.2.6",
81
+ "@yamada-ui/select": "0.2.9",
82
+ "@yamada-ui/skeleton": "0.2.5",
83
+ "@yamada-ui/slider": "0.2.5",
84
+ "@yamada-ui/stepper": "0.2.6",
85
+ "@yamada-ui/switch": "0.2.6",
86
+ "@yamada-ui/tabs": "0.2.8",
87
+ "@yamada-ui/tag": "0.2.5",
88
+ "@yamada-ui/textarea": "0.2.5",
89
+ "@yamada-ui/theme": "0.3.6",
90
+ "@yamada-ui/tooltip": "0.2.8",
91
+ "@yamada-ui/transitions": "0.2.6",
92
+ "@yamada-ui/typography": "0.2.5",
93
+ "@yamada-ui/use-animation": "0.1.17",
94
94
  "@yamada-ui/use-boolean": "0.1.0",
95
- "@yamada-ui/use-breakpoint": "0.1.15",
96
- "@yamada-ui/use-clickable": "0.2.1",
97
- "@yamada-ui/use-clipboard": "0.1.2",
98
- "@yamada-ui/use-controllable-state": "0.1.3",
99
- "@yamada-ui/use-counter": "0.2.1",
100
- "@yamada-ui/use-descendant": "0.1.2",
101
- "@yamada-ui/use-disclosure": "0.2.3",
102
- "@yamada-ui/use-event-listener": "0.1.2",
103
- "@yamada-ui/use-focus": "0.1.2",
104
- "@yamada-ui/use-focus-visible": "0.1.2",
105
- "@yamada-ui/use-hover": "0.1.2",
106
- "@yamada-ui/use-idle": "0.1.2",
107
- "@yamada-ui/use-interval": "0.1.3",
95
+ "@yamada-ui/use-breakpoint": "0.1.17",
96
+ "@yamada-ui/use-clickable": "0.2.2",
97
+ "@yamada-ui/use-clipboard": "0.1.3",
98
+ "@yamada-ui/use-controllable-state": "0.1.4",
99
+ "@yamada-ui/use-counter": "0.2.2",
100
+ "@yamada-ui/use-descendant": "0.1.4",
101
+ "@yamada-ui/use-disclosure": "0.2.4",
102
+ "@yamada-ui/use-event-listener": "0.1.3",
103
+ "@yamada-ui/use-focus": "0.1.3",
104
+ "@yamada-ui/use-focus-visible": "0.1.3",
105
+ "@yamada-ui/use-hover": "0.1.3",
106
+ "@yamada-ui/use-idle": "0.1.3",
107
+ "@yamada-ui/use-interval": "0.1.4",
108
108
  "@yamada-ui/use-latest-ref": "0.1.0",
109
- "@yamada-ui/use-local-storage": "0.1.4",
110
- "@yamada-ui/use-media-query": "0.1.11",
111
- "@yamada-ui/use-os": "0.1.2",
112
- "@yamada-ui/use-outside-click": "0.1.2",
113
- "@yamada-ui/use-pan-event": "0.1.3",
114
- "@yamada-ui/use-popper": "0.2.3",
115
- "@yamada-ui/use-previous": "0.1.2",
116
- "@yamada-ui/use-resize-observer": "0.1.2",
117
- "@yamada-ui/use-size": "0.1.2",
118
- "@yamada-ui/use-timeout": "0.1.3",
119
- "@yamada-ui/use-token": "0.1.15",
120
- "@yamada-ui/use-value": "0.1.15",
121
- "@yamada-ui/use-window-event": "0.1.2",
122
- "@yamada-ui/utils": "0.1.2"
109
+ "@yamada-ui/use-local-storage": "0.1.5",
110
+ "@yamada-ui/use-media-query": "0.1.14",
111
+ "@yamada-ui/use-os": "0.1.3",
112
+ "@yamada-ui/use-outside-click": "0.1.3",
113
+ "@yamada-ui/use-pan-event": "0.1.4",
114
+ "@yamada-ui/use-popper": "0.2.5",
115
+ "@yamada-ui/use-previous": "0.1.3",
116
+ "@yamada-ui/use-resize-observer": "0.1.3",
117
+ "@yamada-ui/use-size": "0.1.3",
118
+ "@yamada-ui/use-timeout": "0.1.4",
119
+ "@yamada-ui/use-token": "0.1.17",
120
+ "@yamada-ui/use-value": "0.1.17",
121
+ "@yamada-ui/use-window-event": "0.1.3",
122
+ "@yamada-ui/utils": "0.1.3"
123
123
  },
124
124
  "devDependencies": {
125
125
  "clean-package": "2.2.0",