@yamada-ui/react 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Hirotomo Yamada
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/hirotomoyamada/yamada-ui/main/logo/logo-colored@2x.png" alt="Yamada UI" width="480" />
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="https://github.com/hirotomoyamada/yamada-ui/blob/main/LICENSE">
7
+ <img alt="MIT License" src="https://img.shields.io/github/license/hirotomoyamada/yamada-ui"/>
8
+ </a>
9
+ <img alt="Github Stars" src="https://badgen.net/github/stars/hirotomoyamada/yamada-ui" />
10
+ </p>
11
+
12
+ Yamada UI is a React UI component library that streamlines the development of cutting-edge web applications and websites. This library offers a diverse range of components that can be easily combined to construct complex user interfaces, incorporating various features such as color modes and animations, which are not typically supported by other React UI component libraries.
13
+
14
+ ## Contents
15
+
16
+ - [Respect](#respect)
17
+ - [Documentation](#documentation)
18
+ - [Features](#features)
19
+ - [Installation](#installation)
20
+ - [Usage](#usage)
21
+ - [Contributing](#contributing)
22
+ - [License](#license)
23
+
24
+ ## Respect
25
+
26
+ Yamada UI has drawn a lot of inspiration from [Chakra UI](https://github.com/chakra-ui/chakra-ui), [MUI](https://github.com/mui/material-ui) and [Mantine UI](https://github.com/mantinedev/mantine). This has brought me wonderful experiences in my life. I am deeply grateful to Segun Adebayo and all the gods who have given me such experiences. And I love them.
27
+
28
+ ## Documentation
29
+
30
+ Currently, the documentation is only available in [Storybook](https://hirotomoyamada.github.io/yamada-ui/). However, Storybook contains usage instructions for each prop of all the components.
31
+
32
+ ## Features
33
+
34
+ - Ease of Styling: Yamada UI contains a set of layout components like `Box` and
35
+ `Stack` that make it easy to style your components by passing props.
36
+ - Flexible & composable: Yamada UI components are built on top of a React UI
37
+ Primitive for endless composability.
38
+ - Animation: Yamada UI provides hooks that allow for easy declaration of animations.
39
+ These hooks can be written similar to CSS animations and are supported by all components.
40
+ - Color mode: Yamada UI makes it easy to set values for each color mode in the props of all components.
41
+ This is not currently implemented in any other React UI component library.
42
+ - Theme switching: Yamada UI allows users to switch themes.
43
+ Users can adapt their own themes and use web applications and websites.
44
+ This is not currently implemented in any other React UI component library.
45
+ - Other features:
46
+ Yamada UI comes with essential loading and notification features that are considered crucial for modern web applications and websites.
47
+ This means you don't have to define them individually yourself.
48
+
49
+ ## Installation
50
+
51
+ ```sh
52
+ $ pnpm add @yamada-ui/react
53
+ ```
54
+
55
+ or
56
+
57
+ ```sh
58
+ $ yarn add @yamada-ui/react
59
+ ```
60
+
61
+ or
62
+
63
+ ```sh
64
+ $ npm install @yamada-ui/react
65
+ ```
66
+
67
+ ## Usage
68
+
69
+ To get started with using the components, please follow the steps below:
70
+
71
+ 1. Wrap your application with the `UIProvider` provided
72
+
73
+ ```tsx
74
+ import { UIProvider } from '@yamada-ui/react'
75
+
76
+ const App = ({ children }) => {
77
+ return <UIProvider>{children}</UIProvider>
78
+ }
79
+
80
+ export default App
81
+ ```
82
+
83
+ Yamada UI supports light and dark modes by default
84
+
85
+ 2. Now you can start using components like so
86
+
87
+ ```tsx
88
+ import { Box, Text } from '@yamada-ui/react'
89
+
90
+ const Example = () => {
91
+ return (
92
+ <Box>
93
+ <Text>ギャルのパンティーおくれーーーっ!!!!!</Text>
94
+ </Box>
95
+ )
96
+ }
97
+ ```
98
+
99
+ ## Contribution
100
+
101
+ Wouldn't you like to contribute? That's amazing! We have prepared a [contribution guide](https://github.com/hirotomoyamada/yamada-ui/blob/main/CONTRIBUTING.md) to assist you.
102
+
103
+ ## Licence
104
+
105
+ This package is licensed under the terms of the
106
+ [MIT license](https://github.com/hirotomoyamada/yamada-ui/blob/main/LICENSE).
@@ -0,0 +1,8 @@
1
+ // src/extend-config.ts
2
+ import { defaultConfig } from "@yamada-ui/theme";
3
+ import { merge } from "@yamada-ui/utils";
4
+ var extendConfig = (theme) => merge(defaultConfig, theme);
5
+
6
+ export {
7
+ extendConfig
8
+ };
@@ -0,0 +1,55 @@
1
+ // src/extend-theme.ts
2
+ import { defaultTheme } from "@yamada-ui/theme";
3
+ import {
4
+ merge as mergeObject,
5
+ getMemoizedObject as get,
6
+ runIfFunc,
7
+ omitObject,
8
+ pickObject,
9
+ isFunction
10
+ } from "@yamada-ui/utils";
11
+ var extendTheme = (...extensions) => ({ merge = true, pick = [], omit = [] } = {}) => {
12
+ let overrides = [...extensions];
13
+ let theme = extensions[extensions.length - 1];
14
+ let computedTheme = defaultTheme;
15
+ if (omit.length)
16
+ computedTheme = omitObject(computedTheme, omit);
17
+ if (pick.length)
18
+ computedTheme = pickObject(computedTheme, pick);
19
+ if (!isFunction(theme) && overrides.length > 1) {
20
+ overrides = overrides.slice(0, overrides.length - 1);
21
+ if (merge)
22
+ theme = mergeObject(computedTheme, theme);
23
+ } else {
24
+ theme = merge ? computedTheme : {};
25
+ }
26
+ return overrides.reduce(
27
+ (prev, extension) => mergeObject(prev, runIfFunc(extension, prev)),
28
+ theme
29
+ );
30
+ };
31
+ var extendToken = (token, tokens) => mergeObject(get(defaultTheme, token, {}), tokens != null ? tokens : {});
32
+ var extendStyle = (name, style) => {
33
+ var _a;
34
+ const props = {
35
+ theme: { __config: {}, __cssMap: {}, __cssVars: {}, __breakpoints: void 0 }
36
+ };
37
+ return mergeObject(
38
+ runIfFunc(get(defaultTheme, `styles.${name}`, {}), props),
39
+ (_a = runIfFunc(style, props)) != null ? _a : {}
40
+ );
41
+ };
42
+ var extendComponent = (name, componentStyle) => mergeObject(get(defaultTheme, `components.${name}`, {}), componentStyle != null ? componentStyle : {});
43
+ var extendComponentSize = (name, componentSizes) => mergeObject(get(defaultTheme, `components.${name}.sizes`, {}), componentSizes != null ? componentSizes : {});
44
+ var extendComponentVariant = (name, componentVariants) => mergeObject(get(defaultTheme, `components.${name}.variants`, {}), componentVariants != null ? componentVariants : {});
45
+ var extendComponentDefaultProps = (name, componentDefaultProps) => mergeObject(get(defaultTheme, `components.${name}.defaultProps`, {}), componentDefaultProps != null ? componentDefaultProps : {});
46
+
47
+ export {
48
+ extendTheme,
49
+ extendToken,
50
+ extendStyle,
51
+ extendComponent,
52
+ extendComponentSize,
53
+ extendComponentVariant,
54
+ extendComponentDefaultProps
55
+ };
@@ -0,0 +1,57 @@
1
+ // src/with-default.ts
2
+ import { isArray, merge } from "@yamada-ui/utils";
3
+ var withDefaultSize = ({
4
+ size,
5
+ components
6
+ }) => (theme) => {
7
+ var _a;
8
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
9
+ if (isArray(components))
10
+ keys = components;
11
+ return merge(theme, {
12
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { size } }]))
13
+ });
14
+ };
15
+ var withDefaultVariant = ({
16
+ variant,
17
+ components
18
+ }) => (theme) => {
19
+ var _a;
20
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
21
+ if (isArray(components))
22
+ keys = components;
23
+ return merge(theme, {
24
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { variant } }]))
25
+ });
26
+ };
27
+ var withDefaultColorScheme = ({
28
+ colorScheme,
29
+ components
30
+ }) => (theme) => {
31
+ var _a;
32
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
33
+ if (isArray(components))
34
+ keys = components;
35
+ return merge(theme, {
36
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { colorScheme } }]))
37
+ });
38
+ };
39
+ var withDefaultProps = ({
40
+ defaultProps,
41
+ components
42
+ }) => (theme) => {
43
+ var _a;
44
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
45
+ if (isArray(components))
46
+ keys = components;
47
+ return merge(theme, {
48
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps }]))
49
+ });
50
+ };
51
+
52
+ export {
53
+ withDefaultSize,
54
+ withDefaultVariant,
55
+ withDefaultColorScheme,
56
+ withDefaultProps
57
+ };
@@ -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,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/extend-config.ts
21
+ var extend_config_exports = {};
22
+ __export(extend_config_exports, {
23
+ extendConfig: () => extendConfig
24
+ });
25
+ module.exports = __toCommonJS(extend_config_exports);
26
+ var import_theme = require("@yamada-ui/theme");
27
+ var import_utils = require("@yamada-ui/utils");
28
+ var extendConfig = (theme) => (0, import_utils.merge)(import_theme.defaultConfig, theme);
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ extendConfig
32
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ extendConfig
3
+ } from "./chunk-5DHJHEGQ.mjs";
4
+ export {
5
+ extendConfig
6
+ };
@@ -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,78 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/extend-theme.ts
21
+ var extend_theme_exports = {};
22
+ __export(extend_theme_exports, {
23
+ extendComponent: () => extendComponent,
24
+ extendComponentDefaultProps: () => extendComponentDefaultProps,
25
+ extendComponentSize: () => extendComponentSize,
26
+ extendComponentVariant: () => extendComponentVariant,
27
+ extendStyle: () => extendStyle,
28
+ extendTheme: () => extendTheme,
29
+ extendToken: () => extendToken
30
+ });
31
+ module.exports = __toCommonJS(extend_theme_exports);
32
+ var import_theme = require("@yamada-ui/theme");
33
+ var import_utils = require("@yamada-ui/utils");
34
+ var extendTheme = (...extensions) => ({ merge = true, pick = [], omit = [] } = {}) => {
35
+ let overrides = [...extensions];
36
+ let theme = extensions[extensions.length - 1];
37
+ let computedTheme = import_theme.defaultTheme;
38
+ if (omit.length)
39
+ computedTheme = (0, import_utils.omitObject)(computedTheme, omit);
40
+ if (pick.length)
41
+ computedTheme = (0, import_utils.pickObject)(computedTheme, pick);
42
+ if (!(0, import_utils.isFunction)(theme) && overrides.length > 1) {
43
+ overrides = overrides.slice(0, overrides.length - 1);
44
+ if (merge)
45
+ theme = (0, import_utils.merge)(computedTheme, theme);
46
+ } else {
47
+ theme = merge ? computedTheme : {};
48
+ }
49
+ return overrides.reduce(
50
+ (prev, extension) => (0, import_utils.merge)(prev, (0, import_utils.runIfFunc)(extension, prev)),
51
+ theme
52
+ );
53
+ };
54
+ var extendToken = (token, tokens) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, token, {}), tokens != null ? tokens : {});
55
+ var extendStyle = (name, style) => {
56
+ var _a;
57
+ const props = {
58
+ theme: { __config: {}, __cssMap: {}, __cssVars: {}, __breakpoints: void 0 }
59
+ };
60
+ return (0, import_utils.merge)(
61
+ (0, import_utils.runIfFunc)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `styles.${name}`, {}), props),
62
+ (_a = (0, import_utils.runIfFunc)(style, props)) != null ? _a : {}
63
+ );
64
+ };
65
+ var extendComponent = (name, componentStyle) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}`, {}), componentStyle != null ? componentStyle : {});
66
+ var extendComponentSize = (name, componentSizes) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.sizes`, {}), componentSizes != null ? componentSizes : {});
67
+ var extendComponentVariant = (name, componentVariants) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.variants`, {}), componentVariants != null ? componentVariants : {});
68
+ var extendComponentDefaultProps = (name, componentDefaultProps) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.defaultProps`, {}), componentDefaultProps != null ? componentDefaultProps : {});
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ extendComponent,
72
+ extendComponentDefaultProps,
73
+ extendComponentSize,
74
+ extendComponentVariant,
75
+ extendStyle,
76
+ extendTheme,
77
+ extendToken
78
+ });
@@ -0,0 +1,18 @@
1
+ import {
2
+ extendComponent,
3
+ extendComponentDefaultProps,
4
+ extendComponentSize,
5
+ extendComponentVariant,
6
+ extendStyle,
7
+ extendTheme,
8
+ extendToken
9
+ } from "./chunk-RYYPCE3B.mjs";
10
+ export {
11
+ extendComponent,
12
+ extendComponentDefaultProps,
13
+ extendComponentSize,
14
+ extendComponentVariant,
15
+ extendStyle,
16
+ extendTheme,
17
+ extendToken
18
+ };
@@ -0,0 +1,87 @@
1
+ export { extendComponent, extendComponentDefaultProps, extendComponentSize, extendComponentVariant, extendStyle, extendTheme, extendToken } from './extend-theme.js';
2
+ export { withDefaultColorScheme, withDefaultProps, withDefaultSize, withDefaultVariant } from './with-default.js';
3
+ export { extendConfig } from './extend-config.js';
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/markdown';
30
+ export * from '@yamada-ui/menu';
31
+ export * from '@yamada-ui/modal';
32
+ export * from '@yamada-ui/motion';
33
+ export * from '@yamada-ui/native-select';
34
+ export * from '@yamada-ui/notice';
35
+ export * from '@yamada-ui/number-input';
36
+ export * from '@yamada-ui/pin-input';
37
+ export * from '@yamada-ui/popover';
38
+ export * from '@yamada-ui/portal';
39
+ export * from '@yamada-ui/progress';
40
+ export * from '@yamada-ui/radio';
41
+ export * from '@yamada-ui/segmented-control';
42
+ export * from '@yamada-ui/select';
43
+ export * from '@yamada-ui/slider';
44
+ export * from '@yamada-ui/switch';
45
+ export * from '@yamada-ui/tabs';
46
+ export * from '@yamada-ui/tag';
47
+ export * from '@yamada-ui/textarea';
48
+ export * from '@yamada-ui/tooltip';
49
+ export * from '@yamada-ui/transitions';
50
+ export * from '@yamada-ui/typography';
51
+ export * from '@yamada-ui/use-animation';
52
+ export * from '@yamada-ui/use-boolean';
53
+ export * from '@yamada-ui/use-breakpoint';
54
+ export * from '@yamada-ui/use-clickable';
55
+ export * from '@yamada-ui/use-controllable-state';
56
+ export * from '@yamada-ui/use-counter';
57
+ export * from '@yamada-ui/use-descendant';
58
+ export * from '@yamada-ui/use-disclosure';
59
+ export * from '@yamada-ui/use-event-listener';
60
+ export * from '@yamada-ui/use-focus';
61
+ export * from '@yamada-ui/use-focus-visible';
62
+ export * from '@yamada-ui/use-interval';
63
+ export * from '@yamada-ui/use-latest-ref';
64
+ export * from '@yamada-ui/use-outside-click';
65
+ export * from '@yamada-ui/use-pan-event';
66
+ export * from '@yamada-ui/use-popper';
67
+ export * from '@yamada-ui/use-resize-observer';
68
+ export * from '@yamada-ui/use-size';
69
+ export * from '@yamada-ui/use-timeout';
70
+ export * from '@yamada-ui/use-token';
71
+ export * from '@yamada-ui/use-value';
72
+ export * from '@yamada-ui/file-input';
73
+ export * from '@yamada-ui/scroll-area';
74
+ export * from '@yamada-ui/dropzone';
75
+ export * from '@yamada-ui/autocomplete';
76
+ export * from '@yamada-ui/carousel';
77
+ export * from '@yamada-ui/avatar';
78
+ export * from '@yamada-ui/reorder';
79
+ export * from '@yamada-ui/pagination';
80
+ export * from '@yamada-ui/calendar';
81
+ export * from '@yamada-ui/date-picker';
82
+ export * from '@yamada-ui/skeleton';
83
+ export * from '@yamada-ui/use-previous';
84
+ export * from '@yamada-ui/stepper';
85
+ export * from '@yamada-ui/native-table';
86
+ export * from '@yamada-ui/table';
87
+ export * from '@yamada-ui/indicator';
package/dist/index.js ADDED
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ extendComponent: () => extendComponent,
25
+ extendComponentDefaultProps: () => extendComponentDefaultProps,
26
+ extendComponentSize: () => extendComponentSize,
27
+ extendComponentVariant: () => extendComponentVariant,
28
+ extendConfig: () => extendConfig,
29
+ extendStyle: () => extendStyle,
30
+ extendTheme: () => extendTheme,
31
+ extendToken: () => extendToken,
32
+ withDefaultColorScheme: () => withDefaultColorScheme,
33
+ withDefaultProps: () => withDefaultProps,
34
+ withDefaultSize: () => withDefaultSize,
35
+ withDefaultVariant: () => withDefaultVariant
36
+ });
37
+ module.exports = __toCommonJS(src_exports);
38
+
39
+ // src/extend-theme.ts
40
+ var import_theme = require("@yamada-ui/theme");
41
+ var import_utils = require("@yamada-ui/utils");
42
+ var extendTheme = (...extensions) => ({ merge: merge3 = true, pick = [], omit = [] } = {}) => {
43
+ let overrides = [...extensions];
44
+ let theme = extensions[extensions.length - 1];
45
+ let computedTheme = import_theme.defaultTheme;
46
+ if (omit.length)
47
+ computedTheme = (0, import_utils.omitObject)(computedTheme, omit);
48
+ if (pick.length)
49
+ computedTheme = (0, import_utils.pickObject)(computedTheme, pick);
50
+ if (!(0, import_utils.isFunction)(theme) && overrides.length > 1) {
51
+ overrides = overrides.slice(0, overrides.length - 1);
52
+ if (merge3)
53
+ theme = (0, import_utils.merge)(computedTheme, theme);
54
+ } else {
55
+ theme = merge3 ? computedTheme : {};
56
+ }
57
+ return overrides.reduce(
58
+ (prev, extension) => (0, import_utils.merge)(prev, (0, import_utils.runIfFunc)(extension, prev)),
59
+ theme
60
+ );
61
+ };
62
+ var extendToken = (token, tokens) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, token, {}), tokens != null ? tokens : {});
63
+ var extendStyle = (name, style) => {
64
+ var _a;
65
+ const props = {
66
+ theme: { __config: {}, __cssMap: {}, __cssVars: {}, __breakpoints: void 0 }
67
+ };
68
+ return (0, import_utils.merge)(
69
+ (0, import_utils.runIfFunc)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `styles.${name}`, {}), props),
70
+ (_a = (0, import_utils.runIfFunc)(style, props)) != null ? _a : {}
71
+ );
72
+ };
73
+ var extendComponent = (name, componentStyle) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}`, {}), componentStyle != null ? componentStyle : {});
74
+ var extendComponentSize = (name, componentSizes) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.sizes`, {}), componentSizes != null ? componentSizes : {});
75
+ var extendComponentVariant = (name, componentVariants) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.variants`, {}), componentVariants != null ? componentVariants : {});
76
+ var extendComponentDefaultProps = (name, componentDefaultProps) => (0, import_utils.merge)((0, import_utils.getMemoizedObject)(import_theme.defaultTheme, `components.${name}.defaultProps`, {}), componentDefaultProps != null ? componentDefaultProps : {});
77
+
78
+ // src/with-default.ts
79
+ var import_utils2 = require("@yamada-ui/utils");
80
+ var withDefaultSize = ({
81
+ size,
82
+ components
83
+ }) => (theme) => {
84
+ var _a;
85
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
86
+ if ((0, import_utils2.isArray)(components))
87
+ keys = components;
88
+ return (0, import_utils2.merge)(theme, {
89
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { size } }]))
90
+ });
91
+ };
92
+ var withDefaultVariant = ({
93
+ variant,
94
+ components
95
+ }) => (theme) => {
96
+ var _a;
97
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
98
+ if ((0, import_utils2.isArray)(components))
99
+ keys = components;
100
+ return (0, import_utils2.merge)(theme, {
101
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { variant } }]))
102
+ });
103
+ };
104
+ var withDefaultColorScheme = ({
105
+ colorScheme,
106
+ components
107
+ }) => (theme) => {
108
+ var _a;
109
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
110
+ if ((0, import_utils2.isArray)(components))
111
+ keys = components;
112
+ return (0, import_utils2.merge)(theme, {
113
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { colorScheme } }]))
114
+ });
115
+ };
116
+ var withDefaultProps = ({
117
+ defaultProps,
118
+ components
119
+ }) => (theme) => {
120
+ var _a;
121
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
122
+ if ((0, import_utils2.isArray)(components))
123
+ keys = components;
124
+ return (0, import_utils2.merge)(theme, {
125
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps }]))
126
+ });
127
+ };
128
+
129
+ // src/extend-config.ts
130
+ var import_theme2 = require("@yamada-ui/theme");
131
+ var import_utils3 = require("@yamada-ui/utils");
132
+ var extendConfig = (theme) => (0, import_utils3.merge)(import_theme2.defaultConfig, theme);
133
+
134
+ // src/index.ts
135
+ __reExport(src_exports, require("@yamada-ui/core"), module.exports);
136
+ __reExport(src_exports, require("@yamada-ui/utils"), module.exports);
137
+ __reExport(src_exports, require("@yamada-ui/theme"), module.exports);
138
+ __reExport(src_exports, require("@yamada-ui/providers"), module.exports);
139
+ __reExport(src_exports, require("@yamada-ui/accordion"), module.exports);
140
+ __reExport(src_exports, require("@yamada-ui/alert"), module.exports);
141
+ __reExport(src_exports, require("@yamada-ui/badge"), module.exports);
142
+ __reExport(src_exports, require("@yamada-ui/breadcrumb"), module.exports);
143
+ __reExport(src_exports, require("@yamada-ui/button"), module.exports);
144
+ __reExport(src_exports, require("@yamada-ui/close-button"), module.exports);
145
+ __reExport(src_exports, require("@yamada-ui/card"), module.exports);
146
+ __reExport(src_exports, require("@yamada-ui/checkbox"), module.exports);
147
+ __reExport(src_exports, require("@yamada-ui/editable"), module.exports);
148
+ __reExport(src_exports, require("@yamada-ui/file-button"), module.exports);
149
+ __reExport(src_exports, require("@yamada-ui/focus-lock"), module.exports);
150
+ __reExport(src_exports, require("@yamada-ui/form-control"), module.exports);
151
+ __reExport(src_exports, require("@yamada-ui/highlight"), module.exports);
152
+ __reExport(src_exports, require("@yamada-ui/icon"), module.exports);
153
+ __reExport(src_exports, require("@yamada-ui/image"), module.exports);
154
+ __reExport(src_exports, require("@yamada-ui/input"), module.exports);
155
+ __reExport(src_exports, require("@yamada-ui/kbd"), module.exports);
156
+ __reExport(src_exports, require("@yamada-ui/layouts"), module.exports);
157
+ __reExport(src_exports, require("@yamada-ui/link"), module.exports);
158
+ __reExport(src_exports, require("@yamada-ui/list"), module.exports);
159
+ __reExport(src_exports, require("@yamada-ui/loading"), module.exports);
160
+ __reExport(src_exports, require("@yamada-ui/markdown"), module.exports);
161
+ __reExport(src_exports, require("@yamada-ui/menu"), module.exports);
162
+ __reExport(src_exports, require("@yamada-ui/modal"), module.exports);
163
+ __reExport(src_exports, require("@yamada-ui/motion"), module.exports);
164
+ __reExport(src_exports, require("@yamada-ui/native-select"), module.exports);
165
+ __reExport(src_exports, require("@yamada-ui/notice"), module.exports);
166
+ __reExport(src_exports, require("@yamada-ui/number-input"), module.exports);
167
+ __reExport(src_exports, require("@yamada-ui/pin-input"), module.exports);
168
+ __reExport(src_exports, require("@yamada-ui/popover"), module.exports);
169
+ __reExport(src_exports, require("@yamada-ui/portal"), module.exports);
170
+ __reExport(src_exports, require("@yamada-ui/progress"), module.exports);
171
+ __reExport(src_exports, require("@yamada-ui/radio"), module.exports);
172
+ __reExport(src_exports, require("@yamada-ui/segmented-control"), module.exports);
173
+ __reExport(src_exports, require("@yamada-ui/select"), module.exports);
174
+ __reExport(src_exports, require("@yamada-ui/slider"), module.exports);
175
+ __reExport(src_exports, require("@yamada-ui/switch"), module.exports);
176
+ __reExport(src_exports, require("@yamada-ui/tabs"), module.exports);
177
+ __reExport(src_exports, require("@yamada-ui/tag"), module.exports);
178
+ __reExport(src_exports, require("@yamada-ui/textarea"), module.exports);
179
+ __reExport(src_exports, require("@yamada-ui/tooltip"), module.exports);
180
+ __reExport(src_exports, require("@yamada-ui/transitions"), module.exports);
181
+ __reExport(src_exports, require("@yamada-ui/typography"), module.exports);
182
+ __reExport(src_exports, require("@yamada-ui/use-animation"), module.exports);
183
+ __reExport(src_exports, require("@yamada-ui/use-boolean"), module.exports);
184
+ __reExport(src_exports, require("@yamada-ui/use-breakpoint"), module.exports);
185
+ __reExport(src_exports, require("@yamada-ui/use-clickable"), module.exports);
186
+ __reExport(src_exports, require("@yamada-ui/use-controllable-state"), module.exports);
187
+ __reExport(src_exports, require("@yamada-ui/use-counter"), module.exports);
188
+ __reExport(src_exports, require("@yamada-ui/use-descendant"), module.exports);
189
+ __reExport(src_exports, require("@yamada-ui/use-disclosure"), module.exports);
190
+ __reExport(src_exports, require("@yamada-ui/use-event-listener"), module.exports);
191
+ __reExport(src_exports, require("@yamada-ui/use-focus"), module.exports);
192
+ __reExport(src_exports, require("@yamada-ui/use-focus-visible"), module.exports);
193
+ __reExport(src_exports, require("@yamada-ui/use-interval"), module.exports);
194
+ __reExport(src_exports, require("@yamada-ui/use-latest-ref"), module.exports);
195
+ __reExport(src_exports, require("@yamada-ui/use-outside-click"), module.exports);
196
+ __reExport(src_exports, require("@yamada-ui/use-pan-event"), module.exports);
197
+ __reExport(src_exports, require("@yamada-ui/use-popper"), module.exports);
198
+ __reExport(src_exports, require("@yamada-ui/use-resize-observer"), module.exports);
199
+ __reExport(src_exports, require("@yamada-ui/use-size"), module.exports);
200
+ __reExport(src_exports, require("@yamada-ui/use-timeout"), module.exports);
201
+ __reExport(src_exports, require("@yamada-ui/use-token"), module.exports);
202
+ __reExport(src_exports, require("@yamada-ui/use-value"), module.exports);
203
+ __reExport(src_exports, require("@yamada-ui/file-input"), module.exports);
204
+ __reExport(src_exports, require("@yamada-ui/scroll-area"), module.exports);
205
+ __reExport(src_exports, require("@yamada-ui/dropzone"), module.exports);
206
+ __reExport(src_exports, require("@yamada-ui/autocomplete"), module.exports);
207
+ __reExport(src_exports, require("@yamada-ui/carousel"), module.exports);
208
+ __reExport(src_exports, require("@yamada-ui/avatar"), module.exports);
209
+ __reExport(src_exports, require("@yamada-ui/reorder"), module.exports);
210
+ __reExport(src_exports, require("@yamada-ui/pagination"), module.exports);
211
+ __reExport(src_exports, require("@yamada-ui/calendar"), module.exports);
212
+ __reExport(src_exports, require("@yamada-ui/date-picker"), module.exports);
213
+ __reExport(src_exports, require("@yamada-ui/skeleton"), module.exports);
214
+ __reExport(src_exports, require("@yamada-ui/use-previous"), module.exports);
215
+ __reExport(src_exports, require("@yamada-ui/stepper"), module.exports);
216
+ __reExport(src_exports, require("@yamada-ui/native-table"), module.exports);
217
+ __reExport(src_exports, require("@yamada-ui/table"), module.exports);
218
+ __reExport(src_exports, require("@yamada-ui/indicator"), module.exports);
219
+ // Annotate the CommonJS export names for ESM import in node:
220
+ 0 && (module.exports = {
221
+ extendComponent,
222
+ extendComponentDefaultProps,
223
+ extendComponentSize,
224
+ extendComponentVariant,
225
+ extendConfig,
226
+ extendStyle,
227
+ extendTheme,
228
+ extendToken,
229
+ withDefaultColorScheme,
230
+ withDefaultProps,
231
+ withDefaultSize,
232
+ withDefaultVariant,
233
+ ...require("@yamada-ui/core"),
234
+ ...require("@yamada-ui/utils"),
235
+ ...require("@yamada-ui/theme"),
236
+ ...require("@yamada-ui/providers"),
237
+ ...require("@yamada-ui/accordion"),
238
+ ...require("@yamada-ui/alert"),
239
+ ...require("@yamada-ui/badge"),
240
+ ...require("@yamada-ui/breadcrumb"),
241
+ ...require("@yamada-ui/button"),
242
+ ...require("@yamada-ui/close-button"),
243
+ ...require("@yamada-ui/card"),
244
+ ...require("@yamada-ui/checkbox"),
245
+ ...require("@yamada-ui/editable"),
246
+ ...require("@yamada-ui/file-button"),
247
+ ...require("@yamada-ui/focus-lock"),
248
+ ...require("@yamada-ui/form-control"),
249
+ ...require("@yamada-ui/highlight"),
250
+ ...require("@yamada-ui/icon"),
251
+ ...require("@yamada-ui/image"),
252
+ ...require("@yamada-ui/input"),
253
+ ...require("@yamada-ui/kbd"),
254
+ ...require("@yamada-ui/layouts"),
255
+ ...require("@yamada-ui/link"),
256
+ ...require("@yamada-ui/list"),
257
+ ...require("@yamada-ui/loading"),
258
+ ...require("@yamada-ui/markdown"),
259
+ ...require("@yamada-ui/menu"),
260
+ ...require("@yamada-ui/modal"),
261
+ ...require("@yamada-ui/motion"),
262
+ ...require("@yamada-ui/native-select"),
263
+ ...require("@yamada-ui/notice"),
264
+ ...require("@yamada-ui/number-input"),
265
+ ...require("@yamada-ui/pin-input"),
266
+ ...require("@yamada-ui/popover"),
267
+ ...require("@yamada-ui/portal"),
268
+ ...require("@yamada-ui/progress"),
269
+ ...require("@yamada-ui/radio"),
270
+ ...require("@yamada-ui/segmented-control"),
271
+ ...require("@yamada-ui/select"),
272
+ ...require("@yamada-ui/slider"),
273
+ ...require("@yamada-ui/switch"),
274
+ ...require("@yamada-ui/tabs"),
275
+ ...require("@yamada-ui/tag"),
276
+ ...require("@yamada-ui/textarea"),
277
+ ...require("@yamada-ui/tooltip"),
278
+ ...require("@yamada-ui/transitions"),
279
+ ...require("@yamada-ui/typography"),
280
+ ...require("@yamada-ui/use-animation"),
281
+ ...require("@yamada-ui/use-boolean"),
282
+ ...require("@yamada-ui/use-breakpoint"),
283
+ ...require("@yamada-ui/use-clickable"),
284
+ ...require("@yamada-ui/use-controllable-state"),
285
+ ...require("@yamada-ui/use-counter"),
286
+ ...require("@yamada-ui/use-descendant"),
287
+ ...require("@yamada-ui/use-disclosure"),
288
+ ...require("@yamada-ui/use-event-listener"),
289
+ ...require("@yamada-ui/use-focus"),
290
+ ...require("@yamada-ui/use-focus-visible"),
291
+ ...require("@yamada-ui/use-interval"),
292
+ ...require("@yamada-ui/use-latest-ref"),
293
+ ...require("@yamada-ui/use-outside-click"),
294
+ ...require("@yamada-ui/use-pan-event"),
295
+ ...require("@yamada-ui/use-popper"),
296
+ ...require("@yamada-ui/use-resize-observer"),
297
+ ...require("@yamada-ui/use-size"),
298
+ ...require("@yamada-ui/use-timeout"),
299
+ ...require("@yamada-ui/use-token"),
300
+ ...require("@yamada-ui/use-value"),
301
+ ...require("@yamada-ui/file-input"),
302
+ ...require("@yamada-ui/scroll-area"),
303
+ ...require("@yamada-ui/dropzone"),
304
+ ...require("@yamada-ui/autocomplete"),
305
+ ...require("@yamada-ui/carousel"),
306
+ ...require("@yamada-ui/avatar"),
307
+ ...require("@yamada-ui/reorder"),
308
+ ...require("@yamada-ui/pagination"),
309
+ ...require("@yamada-ui/calendar"),
310
+ ...require("@yamada-ui/date-picker"),
311
+ ...require("@yamada-ui/skeleton"),
312
+ ...require("@yamada-ui/use-previous"),
313
+ ...require("@yamada-ui/stepper"),
314
+ ...require("@yamada-ui/native-table"),
315
+ ...require("@yamada-ui/table"),
316
+ ...require("@yamada-ui/indicator")
317
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,118 @@
1
+ import {
2
+ extendConfig
3
+ } from "./chunk-5DHJHEGQ.mjs";
4
+ import {
5
+ extendComponent,
6
+ extendComponentDefaultProps,
7
+ extendComponentSize,
8
+ extendComponentVariant,
9
+ extendStyle,
10
+ extendTheme,
11
+ extendToken
12
+ } from "./chunk-RYYPCE3B.mjs";
13
+ import {
14
+ withDefaultColorScheme,
15
+ withDefaultProps,
16
+ withDefaultSize,
17
+ withDefaultVariant
18
+ } from "./chunk-XEQVDUBF.mjs";
19
+
20
+ // src/index.ts
21
+ export * from "@yamada-ui/core";
22
+ export * from "@yamada-ui/utils";
23
+ export * from "@yamada-ui/theme";
24
+ export * from "@yamada-ui/providers";
25
+ export * from "@yamada-ui/accordion";
26
+ export * from "@yamada-ui/alert";
27
+ export * from "@yamada-ui/badge";
28
+ export * from "@yamada-ui/breadcrumb";
29
+ export * from "@yamada-ui/button";
30
+ export * from "@yamada-ui/close-button";
31
+ export * from "@yamada-ui/card";
32
+ export * from "@yamada-ui/checkbox";
33
+ export * from "@yamada-ui/editable";
34
+ export * from "@yamada-ui/file-button";
35
+ export * from "@yamada-ui/focus-lock";
36
+ export * from "@yamada-ui/form-control";
37
+ export * from "@yamada-ui/highlight";
38
+ export * from "@yamada-ui/icon";
39
+ export * from "@yamada-ui/image";
40
+ export * from "@yamada-ui/input";
41
+ export * from "@yamada-ui/kbd";
42
+ export * from "@yamada-ui/layouts";
43
+ export * from "@yamada-ui/link";
44
+ export * from "@yamada-ui/list";
45
+ export * from "@yamada-ui/loading";
46
+ export * from "@yamada-ui/markdown";
47
+ export * from "@yamada-ui/menu";
48
+ export * from "@yamada-ui/modal";
49
+ export * from "@yamada-ui/motion";
50
+ export * from "@yamada-ui/native-select";
51
+ export * from "@yamada-ui/notice";
52
+ export * from "@yamada-ui/number-input";
53
+ export * from "@yamada-ui/pin-input";
54
+ export * from "@yamada-ui/popover";
55
+ export * from "@yamada-ui/portal";
56
+ export * from "@yamada-ui/progress";
57
+ export * from "@yamada-ui/radio";
58
+ export * from "@yamada-ui/segmented-control";
59
+ export * from "@yamada-ui/select";
60
+ export * from "@yamada-ui/slider";
61
+ export * from "@yamada-ui/switch";
62
+ export * from "@yamada-ui/tabs";
63
+ export * from "@yamada-ui/tag";
64
+ export * from "@yamada-ui/textarea";
65
+ export * from "@yamada-ui/tooltip";
66
+ export * from "@yamada-ui/transitions";
67
+ export * from "@yamada-ui/typography";
68
+ export * from "@yamada-ui/use-animation";
69
+ export * from "@yamada-ui/use-boolean";
70
+ export * from "@yamada-ui/use-breakpoint";
71
+ export * from "@yamada-ui/use-clickable";
72
+ export * from "@yamada-ui/use-controllable-state";
73
+ export * from "@yamada-ui/use-counter";
74
+ export * from "@yamada-ui/use-descendant";
75
+ export * from "@yamada-ui/use-disclosure";
76
+ export * from "@yamada-ui/use-event-listener";
77
+ export * from "@yamada-ui/use-focus";
78
+ export * from "@yamada-ui/use-focus-visible";
79
+ export * from "@yamada-ui/use-interval";
80
+ export * from "@yamada-ui/use-latest-ref";
81
+ export * from "@yamada-ui/use-outside-click";
82
+ export * from "@yamada-ui/use-pan-event";
83
+ export * from "@yamada-ui/use-popper";
84
+ export * from "@yamada-ui/use-resize-observer";
85
+ export * from "@yamada-ui/use-size";
86
+ export * from "@yamada-ui/use-timeout";
87
+ export * from "@yamada-ui/use-token";
88
+ export * from "@yamada-ui/use-value";
89
+ export * from "@yamada-ui/file-input";
90
+ export * from "@yamada-ui/scroll-area";
91
+ export * from "@yamada-ui/dropzone";
92
+ export * from "@yamada-ui/autocomplete";
93
+ export * from "@yamada-ui/carousel";
94
+ export * from "@yamada-ui/avatar";
95
+ export * from "@yamada-ui/reorder";
96
+ export * from "@yamada-ui/pagination";
97
+ export * from "@yamada-ui/calendar";
98
+ export * from "@yamada-ui/date-picker";
99
+ export * from "@yamada-ui/skeleton";
100
+ export * from "@yamada-ui/use-previous";
101
+ export * from "@yamada-ui/stepper";
102
+ export * from "@yamada-ui/native-table";
103
+ export * from "@yamada-ui/table";
104
+ export * from "@yamada-ui/indicator";
105
+ export {
106
+ extendComponent,
107
+ extendComponentDefaultProps,
108
+ extendComponentSize,
109
+ extendComponentVariant,
110
+ extendConfig,
111
+ extendStyle,
112
+ extendTheme,
113
+ extendToken,
114
+ withDefaultColorScheme,
115
+ withDefaultProps,
116
+ withDefaultSize,
117
+ withDefaultVariant
118
+ };
@@ -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 };
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/with-default.ts
21
+ var with_default_exports = {};
22
+ __export(with_default_exports, {
23
+ withDefaultColorScheme: () => withDefaultColorScheme,
24
+ withDefaultProps: () => withDefaultProps,
25
+ withDefaultSize: () => withDefaultSize,
26
+ withDefaultVariant: () => withDefaultVariant
27
+ });
28
+ module.exports = __toCommonJS(with_default_exports);
29
+ var import_utils = require("@yamada-ui/utils");
30
+ var withDefaultSize = ({
31
+ size,
32
+ components
33
+ }) => (theme) => {
34
+ var _a;
35
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
36
+ if ((0, import_utils.isArray)(components))
37
+ keys = components;
38
+ return (0, import_utils.merge)(theme, {
39
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { size } }]))
40
+ });
41
+ };
42
+ var withDefaultVariant = ({
43
+ variant,
44
+ components
45
+ }) => (theme) => {
46
+ var _a;
47
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
48
+ if ((0, import_utils.isArray)(components))
49
+ keys = components;
50
+ return (0, import_utils.merge)(theme, {
51
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { variant } }]))
52
+ });
53
+ };
54
+ var withDefaultColorScheme = ({
55
+ colorScheme,
56
+ components
57
+ }) => (theme) => {
58
+ var _a;
59
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
60
+ if ((0, import_utils.isArray)(components))
61
+ keys = components;
62
+ return (0, import_utils.merge)(theme, {
63
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps: { colorScheme } }]))
64
+ });
65
+ };
66
+ var withDefaultProps = ({
67
+ defaultProps,
68
+ components
69
+ }) => (theme) => {
70
+ var _a;
71
+ let keys = Object.keys((_a = theme.components) != null ? _a : {});
72
+ if ((0, import_utils.isArray)(components))
73
+ keys = components;
74
+ return (0, import_utils.merge)(theme, {
75
+ components: Object.fromEntries(keys.map((key) => [key, { defaultProps }]))
76
+ });
77
+ };
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ withDefaultColorScheme,
81
+ withDefaultProps,
82
+ withDefaultSize,
83
+ withDefaultVariant
84
+ });
@@ -0,0 +1,12 @@
1
+ import {
2
+ withDefaultColorScheme,
3
+ withDefaultProps,
4
+ withDefaultSize,
5
+ withDefaultVariant
6
+ } from "./chunk-XEQVDUBF.mjs";
7
+ export {
8
+ withDefaultColorScheme,
9
+ withDefaultProps,
10
+ withDefaultSize,
11
+ withDefaultVariant
12
+ };
package/package.json ADDED
@@ -0,0 +1,156 @@
1
+ {
2
+ "name": "@yamada-ui/react",
3
+ "version": "0.1.0",
4
+ "description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
5
+ "keywords": [
6
+ "yamada",
7
+ "yamada-ui",
8
+ "react",
9
+ "ui",
10
+ "design-system",
11
+ "react-components",
12
+ "uikit",
13
+ "accessible",
14
+ "components",
15
+ "emotion",
16
+ "library",
17
+ "design-system"
18
+ ],
19
+ "author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",
20
+ "license": "MIT",
21
+ "main": "dist/index.js",
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "sideEffects": false,
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/hirotomoyamada/yamada-ui",
32
+ "directory": "packages/react"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
+ },
37
+ "dependencies": {
38
+ "@yamada-ui/avatar": "0.1.0",
39
+ "@yamada-ui/badge": "0.1.0",
40
+ "@yamada-ui/accordion": "0.1.0",
41
+ "@yamada-ui/alert": "0.1.0",
42
+ "@yamada-ui/autocomplete": "0.1.0",
43
+ "@yamada-ui/calendar": "0.1.0",
44
+ "@yamada-ui/button": "0.1.0",
45
+ "@yamada-ui/card": "0.1.0",
46
+ "@yamada-ui/checkbox": "0.1.0",
47
+ "@yamada-ui/close-button": "0.1.0",
48
+ "@yamada-ui/editable": "0.1.0",
49
+ "@yamada-ui/date-picker": "0.1.0",
50
+ "@yamada-ui/breadcrumb": "0.1.0",
51
+ "@yamada-ui/carousel": "0.1.0",
52
+ "@yamada-ui/core": "0.1.0",
53
+ "@yamada-ui/dropzone": "0.1.0",
54
+ "@yamada-ui/file-input": "0.1.0",
55
+ "@yamada-ui/file-button": "0.1.0",
56
+ "@yamada-ui/focus-lock": "0.1.0",
57
+ "@yamada-ui/icon": "0.1.0",
58
+ "@yamada-ui/form-control": "0.1.0",
59
+ "@yamada-ui/highlight": "0.1.0",
60
+ "@yamada-ui/input": "0.1.0",
61
+ "@yamada-ui/image": "0.1.0",
62
+ "@yamada-ui/indicator": "0.1.0",
63
+ "@yamada-ui/kbd": "0.1.0",
64
+ "@yamada-ui/layouts": "0.1.0",
65
+ "@yamada-ui/link": "0.1.0",
66
+ "@yamada-ui/markdown": "0.1.0",
67
+ "@yamada-ui/loading": "0.1.0",
68
+ "@yamada-ui/list": "0.1.0",
69
+ "@yamada-ui/native-select": "0.1.0",
70
+ "@yamada-ui/menu": "0.1.0",
71
+ "@yamada-ui/motion": "0.1.0",
72
+ "@yamada-ui/modal": "0.1.0",
73
+ "@yamada-ui/notice": "0.1.0",
74
+ "@yamada-ui/native-table": "0.1.0",
75
+ "@yamada-ui/number-input": "0.1.0",
76
+ "@yamada-ui/popover": "0.1.0",
77
+ "@yamada-ui/pin-input": "0.1.0",
78
+ "@yamada-ui/pagination": "0.1.0",
79
+ "@yamada-ui/portal": "0.1.0",
80
+ "@yamada-ui/progress": "0.1.0",
81
+ "@yamada-ui/providers": "0.1.0",
82
+ "@yamada-ui/radio": "0.1.0",
83
+ "@yamada-ui/reorder": "0.1.0",
84
+ "@yamada-ui/segmented-control": "0.1.0",
85
+ "@yamada-ui/scroll-area": "0.1.0",
86
+ "@yamada-ui/select": "0.1.0",
87
+ "@yamada-ui/skeleton": "0.1.0",
88
+ "@yamada-ui/stepper": "0.1.0",
89
+ "@yamada-ui/slider": "0.1.0",
90
+ "@yamada-ui/table": "0.1.0",
91
+ "@yamada-ui/tabs": "0.1.0",
92
+ "@yamada-ui/textarea": "0.1.0",
93
+ "@yamada-ui/theme": "0.1.0",
94
+ "@yamada-ui/tooltip": "0.1.0",
95
+ "@yamada-ui/switch": "0.1.0",
96
+ "@yamada-ui/tag": "0.1.0",
97
+ "@yamada-ui/typography": "0.1.0",
98
+ "@yamada-ui/use-animation": "0.1.0",
99
+ "@yamada-ui/use-boolean": "0.1.0",
100
+ "@yamada-ui/use-breakpoint": "0.1.0",
101
+ "@yamada-ui/use-controllable-state": "0.1.0",
102
+ "@yamada-ui/use-clickable": "0.1.0",
103
+ "@yamada-ui/use-counter": "0.1.0",
104
+ "@yamada-ui/use-descendant": "0.1.0",
105
+ "@yamada-ui/use-disclosure": "0.1.0",
106
+ "@yamada-ui/use-focus": "0.1.0",
107
+ "@yamada-ui/transitions": "0.1.0",
108
+ "@yamada-ui/use-event-listener": "0.1.0",
109
+ "@yamada-ui/use-focus-visible": "0.1.0",
110
+ "@yamada-ui/use-interval": "0.1.0",
111
+ "@yamada-ui/use-outside-click": "0.1.0",
112
+ "@yamada-ui/use-latest-ref": "0.1.0",
113
+ "@yamada-ui/use-previous": "0.1.0",
114
+ "@yamada-ui/use-popper": "0.1.0",
115
+ "@yamada-ui/use-pan-event": "0.1.0",
116
+ "@yamada-ui/use-resize-observer": "0.1.0",
117
+ "@yamada-ui/use-size": "0.1.0",
118
+ "@yamada-ui/use-token": "0.1.0",
119
+ "@yamada-ui/use-timeout": "0.1.0",
120
+ "@yamada-ui/use-value": "0.1.0",
121
+ "@yamada-ui/utils": "0.1.0"
122
+ },
123
+ "devDependencies": {
124
+ "clean-package": "2.2.0",
125
+ "react": "^18.0.0"
126
+ },
127
+ "peerDependencies": {
128
+ "react": ">=18"
129
+ },
130
+ "clean-package": "../../clean-package.config.json",
131
+ "tsup": {
132
+ "clean": true,
133
+ "target": "es2019",
134
+ "format": [
135
+ "cjs",
136
+ "esm"
137
+ ]
138
+ },
139
+ "module": "dist/index.mjs",
140
+ "types": "dist/index.d.ts",
141
+ "exports": {
142
+ ".": {
143
+ "types": "./dist/index.d.ts",
144
+ "import": "./dist/index.mjs",
145
+ "require": "./dist/index.js"
146
+ },
147
+ "./package.json": "./package.json"
148
+ },
149
+ "scripts": {
150
+ "dev": "pnpm build:fast -- --watch",
151
+ "build": "tsup src --dts",
152
+ "build:fast": "tsup src",
153
+ "clean": "rimraf dist .turbo",
154
+ "typecheck": "tsc --noEmit"
155
+ }
156
+ }