@nation-a/ui 0.16.28 → 0.17.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/dist/ark-ui-D--_sKY0.js +7066 -0
- package/dist/ark-ui-D--_sKY0.js.map +1 -0
- package/dist/ark-ui-e4-hVrsF.cjs +2 -0
- package/dist/ark-ui-e4-hVrsF.cjs.map +1 -0
- package/dist/{index-BroabscA.cjs → index-B5IKaL0m.cjs} +2 -2
- package/dist/index-B5IKaL0m.cjs.map +1 -0
- package/dist/{index-B4n-XEbJ.js → index-FC3cETza.js} +2 -2
- package/dist/index-FC3cETza.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5010 -4958
- package/dist/index.js.map +1 -1
- package/dist/react-hot-toast-BCKriZQY.js +404 -0
- package/dist/react-hot-toast-BCKriZQY.js.map +1 -0
- package/dist/react-hot-toast-CvGdrsnM.cjs +178 -0
- package/dist/react-hot-toast-CvGdrsnM.cjs.map +1 -0
- package/dist/{react-lottie-DygynGMG.js → react-lottie-BoWlnUa4.js} +257 -257
- package/dist/react-lottie-BoWlnUa4.js.map +1 -0
- package/dist/react-lottie-D3xAW5ky.cjs +29 -0
- package/dist/react-lottie-D3xAW5ky.cjs.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +1 -1
- package/dist/styled-system/css/sva.mjs +9 -4
- package/dist/styled-system/helpers.mjs +12 -20
- package/dist/styled-system/jsx/create-style-context.d.ts +54 -0
- package/dist/styled-system/jsx/create-style-context.mjs +98 -0
- package/dist/styled-system/jsx/factory.mjs +14 -5
- package/dist/styled-system/jsx/index.d.ts +1 -0
- package/dist/styled-system/jsx/index.mjs +1 -0
- package/dist/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/styled-system/patterns/box.d.ts +0 -1
- package/dist/styled-system/patterns/center.d.ts +0 -1
- package/dist/styled-system/patterns/circle.d.ts +0 -1
- package/dist/styled-system/patterns/container.d.ts +0 -1
- package/dist/styled-system/patterns/cq.d.ts +0 -1
- package/dist/styled-system/patterns/divider.d.ts +0 -1
- package/dist/styled-system/patterns/flex.d.ts +0 -1
- package/dist/styled-system/patterns/float.d.ts +0 -1
- package/dist/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/styled-system/patterns/grid.d.ts +0 -1
- package/dist/styled-system/patterns/grid.mjs +1 -1
- package/dist/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/styled-system/patterns/hstack.mjs +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/styled-system/patterns/square.d.ts +0 -1
- package/dist/styled-system/patterns/stack.d.ts +0 -1
- package/dist/styled-system/patterns/stack.mjs +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/styled-system/patterns/vstack.mjs +1 -1
- package/dist/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/styled-system/patterns/wrap.mjs +1 -1
- package/dist/styled-system/styles.css +1003 -993
- package/dist/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/styled-system/types/composition.d.ts +83 -23
- package/dist/styled-system/types/conditions.d.ts +13 -9
- package/dist/styled-system/types/jsx.d.ts +25 -10
- package/dist/styled-system/types/prop-type.d.ts +12 -1
- package/dist/styled-system/types/style-props.d.ts +17 -5
- package/dist/styled-system/types/system-types.d.ts +76 -0
- package/dist/types/components/BottomSheet/BottomSheet.stories.d.ts +322 -4
- package/dist/types/components/BottomSheet/index.d.ts +23 -21
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetBackdrop.d.ts +6 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetContainer.d.ts +7 -5
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetContent.d.ts +7 -6
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetHeader.d.ts +7 -6
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetScroller.d.ts +7 -3
- package/dist/types/components/BottomSheet/react-modal-sheet/constants.d.ts +3 -8
- package/dist/types/components/BottomSheet/react-modal-sheet/hooks.d.ts +1 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/index.d.ts +1 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/sheet.d.ts +7 -16
- package/dist/types/components/BottomSheet/react-modal-sheet/types.d.ts +5 -5
- package/dist/types/components/Button/Button.stories.d.ts +10 -3
- package/dist/types/components/Button/index.d.ts +8 -298
- package/dist/types/components/Checkbox/checkbox.stories.d.ts +15 -3
- package/dist/types/components/Checkbox/checkbox.styled.d.ts +29 -12
- package/dist/types/components/Checkbox/index.d.ts +4 -1
- package/dist/types/components/Dialog/Dialog.stories.d.ts +9 -3
- package/dist/types/components/Dialog/index.d.ts +15 -25
- package/dist/types/components/Fab/Fab.stories.d.ts +25 -3
- package/dist/types/components/Fab/index.d.ts +301 -2
- package/dist/types/components/IconButton/IconButton.stories.d.ts +43 -3
- package/dist/types/components/IconButton/index.d.ts +5 -6
- package/dist/types/components/Input/Input.stories.d.ts +1 -1
- package/dist/types/components/Input/index.d.ts +4 -1
- package/dist/types/components/Layout/index.d.ts +16 -16
- package/dist/types/components/List/List.stories.d.ts +64 -4
- package/dist/types/components/List/index.d.ts +82 -13
- package/dist/types/components/Navigation/Navigation.stories.d.ts +9 -4
- package/dist/types/components/Navigation/index.d.ts +6 -9
- package/dist/types/components/RadioGroup/Radio.stories.d.ts +8 -3
- package/dist/types/components/RadioGroup/index.d.ts +10 -9
- package/dist/types/components/RadioGroup/radio.recipe.d.ts +1 -1
- package/dist/types/components/Select/Select.stories.d.ts +1 -9
- package/dist/types/components/Select/index.d.ts +75 -28
- package/dist/types/components/Select/select.recipe.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.stories.d.ts +1 -1
- package/dist/types/components/Spinner/index.d.ts +4 -1
- package/dist/types/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/types/components/Switch/index.d.ts +5 -2
- package/dist/types/components/Switch/switch.styled.d.ts +89 -15
- package/dist/types/components/Tabs/Tabs.stories.d.ts +8 -4
- package/dist/types/components/Tabs/index.d.ts +208 -29
- package/dist/types/components/Tag/Tag.stories.d.ts +9 -4
- package/dist/types/components/Tag/index.d.ts +5 -2
- package/dist/types/components/Text/Text.stories.d.ts +25 -3
- package/dist/types/components/Text/index.d.ts +4 -276
- package/dist/types/components/TextArea/TextArea.stories.d.ts +9 -4
- package/dist/types/components/TextArea/index.d.ts +4 -1
- package/dist/types/components/Toast/Toast.stories.d.ts +9 -4
- package/dist/types/components/Toast/index.d.ts +47 -24
- package/dist/types/index.d.ts +0 -1
- package/dist/types/utils/with-polymorphic-component.d.ts +5 -4
- package/package.json +35 -40
- package/dist/ark-ui-BakX7_HR.cjs +0 -2
- package/dist/ark-ui-BakX7_HR.cjs.map +0 -1
- package/dist/ark-ui-BitYUtmQ.js +0 -6713
- package/dist/ark-ui-BitYUtmQ.js.map +0 -1
- package/dist/index-B4n-XEbJ.js.map +0 -1
- package/dist/index-BroabscA.cjs.map +0 -1
- package/dist/react-hot-toast-BQTk3w2h.cjs +0 -178
- package/dist/react-hot-toast-BQTk3w2h.cjs.map +0 -1
- package/dist/react-hot-toast-CPO7pUT3.js +0 -389
- package/dist/react-hot-toast-CPO7pUT3.js.map +0 -1
- package/dist/react-lottie-DTf3gNPc.cjs +0 -29
- package/dist/react-lottie-DTf3gNPc.cjs.map +0 -1
- package/dist/react-lottie-DygynGMG.js.map +0 -1
- package/dist/types/utils/create-style-context.d.ts +0 -20
- package/dist/types/utils/index.d.ts +0 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { Tabs as ArkTabs } from '@ark-ui/react/tabs';
|
|
2
|
-
import { Assign } from '@ark-ui/react';
|
|
3
2
|
import { ComponentProps } from 'react';
|
|
4
|
-
import { HTMLStyledProps } from '../../../styled-system/jsx';
|
|
5
3
|
export type NavigationProps = ComponentProps<typeof Root>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type ListProps = Assign<HTMLStyledProps<'div'>, ArkTabs.ListBaseProps>;
|
|
4
|
+
declare const Root: import('../../../styled-system/jsx').StyleContextRootProvider<import('react').ForwardRefExoticComponent<ArkTabs.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "content" | "trigger" | "indicator" | "root", import('../../../styled-system/types').SlotRecipeVariantRecord<"list" | "content" | "trigger" | "indicator" | "root">>>;
|
|
5
|
+
export type NavigationTriggerProps = ComponentProps<typeof Trigger>;
|
|
6
|
+
declare const Trigger: import('../../../styled-system/jsx').StyleContextConsumer<({ ...props }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
10
7
|
declare const Navigation: {
|
|
11
|
-
Root: (
|
|
12
|
-
Item: import('
|
|
13
|
-
List: import('react').ForwardRefExoticComponent<
|
|
8
|
+
Root: import('../../../styled-system/jsx').StyleContextRootProvider<import('react').ForwardRefExoticComponent<ArkTabs.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "content" | "trigger" | "indicator" | "root", import('../../../styled-system/types').SlotRecipeVariantRecord<"list" | "content" | "trigger" | "indicator" | "root">>>;
|
|
9
|
+
Item: import('../../../styled-system/jsx').StyleContextConsumer<({ ...props }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
List: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.ListProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
14
11
|
};
|
|
15
12
|
export default Navigation;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof meta>;
|
|
6
11
|
export declare const DefaultRadioGroup: Story;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { Assign } from '@ark-ui/react';
|
|
2
1
|
import { RadioGroup as ArkRadioGroup } from '@ark-ui/react/radio-group';
|
|
3
|
-
import { ComponentProps
|
|
4
|
-
|
|
5
|
-
declare const RootProvider: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"div">, ArkRadioGroup.RootProviderBaseProps>, never> & {}, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
import { ComponentProps } from 'styled-system/types';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
6
4
|
export type RadioGroupProps = ComponentProps<typeof Root>;
|
|
7
|
-
declare const Root: import('react').ForwardRefExoticComponent<
|
|
5
|
+
declare const Root: import('../../../styled-system/jsx').StyleContextProvider<import('react').ForwardRefExoticComponent<ArkRadioGroup.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('styled-system/types').SlotRecipeRuntimeFn<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl", import('styled-system/types').SlotRecipeVariantRecord<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl">>>;
|
|
6
|
+
declare const Item: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkRadioGroup.ItemProps & import('react').RefAttributes<HTMLLabelElement>>>;
|
|
8
7
|
declare const RadioGroup: {
|
|
9
|
-
Root: import('react').ForwardRefExoticComponent<
|
|
10
|
-
Item: import('
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Root: import('../../../styled-system/jsx').StyleContextProvider<import('react').ForwardRefExoticComponent<ArkRadioGroup.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('styled-system/types').SlotRecipeRuntimeFn<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl", import('styled-system/types').SlotRecipeVariantRecord<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl">>>;
|
|
9
|
+
Item: import('../../../styled-system/jsx').StyleContextConsumer<({ children, ...props }: ComponentProps<typeof Item> & {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
Label: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkRadioGroup.LabelProps & import('react').RefAttributes<HTMLLabelElement>>>;
|
|
13
|
+
Context: (props: import('@ark-ui/react').RadioGroupContextProps) => ReactNode;
|
|
13
14
|
};
|
|
14
15
|
export default RadioGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
2
2
|
export type RadioGroupRecipeVariantProps = RecipeVariantProps<typeof radioGroupRecipe>;
|
|
3
|
-
export declare const radioGroupRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "
|
|
3
|
+
export declare const radioGroupRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl", import('../../../styled-system/types').SlotRecipeVariantRecord<"label" | "item" | "indicator" | "root" | "itemText" | "itemControl">>;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (props: Omit<import('../../../styled-system/jsx').HTMLStyledProps<"div">, keyof import('@ark-ui/react').SelectRootProps<T>> & {
|
|
5
|
-
collection: any;
|
|
6
|
-
} & import('@ark-ui/react').SelectRootProps<any>) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
tags: string[];
|
|
8
5
|
parameters: {
|
|
9
6
|
layout: string;
|
|
10
7
|
};
|
|
11
|
-
argTypes: {
|
|
12
|
-
className: {
|
|
13
|
-
control: "text";
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
8
|
};
|
|
17
9
|
export default meta;
|
|
18
10
|
type Story = StoryObj<typeof meta>;
|
|
@@ -4,34 +4,81 @@ import { Assign } from '@ark-ui/react';
|
|
|
4
4
|
import { ComponentProps } from 'react';
|
|
5
5
|
export { createListCollection } from '@ark-ui/react/select';
|
|
6
6
|
export type SelectProps = ComponentProps<typeof Root>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
declare const Root: import('../../../styled-system/jsx').StyleContextProvider<ArkSelect.RootComponent<any>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "description" | "list" | "content" | "trigger" | "positioner" | "item" | "indicator" | "root" | "clearTrigger" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "control" | "valueText", {
|
|
8
|
+
radius: {
|
|
9
|
+
md: {
|
|
10
|
+
trigger: {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
};
|
|
13
|
+
content: {
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
lg: {
|
|
18
|
+
trigger: {
|
|
19
|
+
borderRadius: number;
|
|
20
|
+
};
|
|
21
|
+
content: {
|
|
22
|
+
borderRadius: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
true: {
|
|
28
|
+
trigger: {
|
|
29
|
+
opacity: number;
|
|
30
|
+
cursor: "not-allowed";
|
|
31
|
+
'&:hover': {
|
|
32
|
+
backgroundColor: "background.neutral.default";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>>;
|
|
26
38
|
declare const Select: {
|
|
27
|
-
Root: (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
Root: import('../../../styled-system/jsx').StyleContextProvider<ArkSelect.RootComponent<any>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "description" | "list" | "content" | "trigger" | "positioner" | "item" | "indicator" | "root" | "clearTrigger" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "control" | "valueText", {
|
|
40
|
+
radius: {
|
|
41
|
+
md: {
|
|
42
|
+
trigger: {
|
|
43
|
+
borderRadius: number;
|
|
44
|
+
};
|
|
45
|
+
content: {
|
|
46
|
+
borderRadius: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
lg: {
|
|
50
|
+
trigger: {
|
|
51
|
+
borderRadius: number;
|
|
52
|
+
};
|
|
53
|
+
content: {
|
|
54
|
+
borderRadius: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
disabled: {
|
|
59
|
+
true: {
|
|
60
|
+
trigger: {
|
|
61
|
+
opacity: number;
|
|
62
|
+
cursor: "not-allowed";
|
|
63
|
+
'&:hover': {
|
|
64
|
+
backgroundColor: "background.neutral.default";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}>>;
|
|
70
|
+
Label: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.LabelProps & import('react').RefAttributes<HTMLLabelElement>>>;
|
|
71
|
+
Trigger: import('../../../styled-system/jsx').StyleContextConsumer<({ description, ...props }: Assign<HTMLStyledProps<"button">, ArkSelect.TriggerProps & {
|
|
72
|
+
description?: string;
|
|
73
|
+
}>) => import("react/jsx-runtime").JSX.Element>;
|
|
74
|
+
Content: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.ContentProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
75
|
+
Item: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.ItemProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
76
|
+
ValueText: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.ValueTextProps & import('react').RefAttributes<HTMLSpanElement>>>;
|
|
77
|
+
Description: import('../../../styled-system/jsx').StyleContextConsumer<({ className, text, ...props }: Assign<HTMLStyledProps<"div">, {
|
|
78
|
+
text: string;
|
|
79
|
+
className?: string;
|
|
80
|
+
}>) => import("react/jsx-runtime").JSX.Element>;
|
|
81
|
+
Positioner: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.PositionerProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
82
|
+
Control: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkSelect.ControlProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
36
83
|
};
|
|
37
84
|
export default Select;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type SelectVariantProps = keyof typeof selectRecipe.variantMap;
|
|
2
|
-
export declare const selectRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "description" | "list" | "content" | "trigger" | "positioner" | "
|
|
2
|
+
export declare const selectRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "description" | "list" | "content" | "trigger" | "positioner" | "item" | "indicator" | "root" | "clearTrigger" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "control" | "valueText", {
|
|
3
3
|
radius: {
|
|
4
4
|
md: {
|
|
5
5
|
trigger: {
|
|
@@ -4,5 +4,8 @@ import { UtilityValues } from '../../../styled-system/types/prop-type';
|
|
|
4
4
|
export type SpinnerProps = HTMLStyledProps<'div'> & SpinnerVariantProps & {
|
|
5
5
|
color?: UtilityValues['color'];
|
|
6
6
|
};
|
|
7
|
-
declare const Spinner:
|
|
7
|
+
declare const Spinner: {
|
|
8
|
+
({ className, size, color, ref, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
8
11
|
export default Spinner;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as StyledSwitch from './switch.styled';
|
|
2
|
-
export type SwitchProps = StyledSwitch.
|
|
3
|
-
declare const Switch:
|
|
2
|
+
export type SwitchProps = StyledSwitch.SwitchProps;
|
|
3
|
+
declare const Switch: {
|
|
4
|
+
(props: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
4
7
|
export default Switch;
|
|
@@ -1,17 +1,91 @@
|
|
|
1
|
-
import { Assign } from '@ark-ui/react';
|
|
2
1
|
import { Switch } from '@ark-ui/react/switch';
|
|
3
|
-
import { ComponentProps
|
|
4
|
-
export type
|
|
5
|
-
export declare const
|
|
6
|
-
size
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { ComponentProps } from 'styled-system/types';
|
|
3
|
+
export type SwitchProps = ComponentProps<typeof Root>;
|
|
4
|
+
export declare const Root: import('../../../styled-system/jsx').StyleContextProvider<import('react').ForwardRefExoticComponent<Switch.RootProps & import('react').RefAttributes<HTMLLabelElement>>, import('styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "control" | "thumb", {
|
|
5
|
+
size: {
|
|
6
|
+
md: {
|
|
7
|
+
control: {
|
|
8
|
+
width: number;
|
|
9
|
+
p: number;
|
|
10
|
+
};
|
|
11
|
+
thumb: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
control: {
|
|
18
|
+
width: number;
|
|
19
|
+
p: number;
|
|
20
|
+
};
|
|
21
|
+
thumb: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
neutral: {
|
|
29
|
+
thumb: {
|
|
30
|
+
_checked: {
|
|
31
|
+
background: "content.neutralInverse.bold";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
neuroid: {
|
|
36
|
+
control: {
|
|
37
|
+
_checked: {
|
|
38
|
+
background: "background.neuroidSecondary.selected";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
thumb: {
|
|
42
|
+
_checked: {
|
|
43
|
+
background: "content.static.white.bold";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
heyd: {
|
|
48
|
+
control: {
|
|
49
|
+
_checked: {
|
|
50
|
+
background: "background.heydPrimary.selected";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
thumb: {
|
|
54
|
+
_checked: {
|
|
55
|
+
background: "content.static.white.bold";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
heybee: {
|
|
60
|
+
control: {
|
|
61
|
+
_checked: {
|
|
62
|
+
background: "background.heybeePrimary.selected";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
thumb: {
|
|
66
|
+
_checked: {
|
|
67
|
+
background: "content.static.white.bold";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
zoltarina: {
|
|
72
|
+
control: {
|
|
73
|
+
_checked: {
|
|
74
|
+
background: "background.zoltarinaPrimary.selected";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
thumb: {
|
|
78
|
+
_checked: {
|
|
79
|
+
background: "content.static.white.bold";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}>>;
|
|
85
|
+
export type SwitchControlProps = ComponentProps<typeof Control>;
|
|
86
|
+
export declare const Control: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<Switch.ControlProps & import('react').RefAttributes<HTMLSpanElement>>>;
|
|
87
|
+
export type SwitchLabelProps = ComponentProps<typeof Label>;
|
|
88
|
+
export declare const Label: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<Switch.LabelProps & import('react').RefAttributes<HTMLSpanElement>>>;
|
|
89
|
+
export type SwitchThumbProps = ComponentProps<typeof Thumb>;
|
|
90
|
+
export declare const Thumb: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<Switch.ThumbProps & import('react').RefAttributes<HTMLSpanElement>>>;
|
|
17
91
|
export { SwitchContext as Context, SwitchHiddenInput as HiddenInput } from '@ark-ui/react/switch';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
4
8
|
export default meta;
|
|
5
|
-
type Story = StoryObj<
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
6
10
|
export declare const Basic: Story;
|
|
7
11
|
export declare const Enclosed: Story;
|
|
8
12
|
export declare const Fitted: Story;
|
|
@@ -1,34 +1,213 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ComponentProps } from '../../../styled-system/types';
|
|
3
2
|
import { Tabs as ArkTabs } from '@ark-ui/react/tabs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
declare const Root: import('../../../styled-system/jsx').StyleContextRootProvider<import('react').ForwardRefExoticComponent<ArkTabs.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "content" | "trigger" | "indicator" | "root", {
|
|
4
|
+
variant: {
|
|
5
|
+
line: {
|
|
6
|
+
list: {
|
|
7
|
+
borderBottomWidth: "1px";
|
|
8
|
+
borderColor: "background.neutral.selected";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
enclosed: {
|
|
12
|
+
list: {
|
|
13
|
+
p: "16px 0 0 16px";
|
|
14
|
+
borderRadius: "md";
|
|
15
|
+
gap: "16";
|
|
16
|
+
};
|
|
17
|
+
trigger: {
|
|
18
|
+
borderRadius: "full";
|
|
19
|
+
_selected: {
|
|
20
|
+
background: "background.neutral.selected";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
indicator: {
|
|
24
|
+
display: "none";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
fitted: {
|
|
29
|
+
true: {
|
|
30
|
+
root: {
|
|
31
|
+
width: "100%";
|
|
32
|
+
};
|
|
33
|
+
list: {
|
|
34
|
+
width: "100%";
|
|
35
|
+
p: number;
|
|
36
|
+
overflowX: "visible";
|
|
37
|
+
};
|
|
38
|
+
trigger: {
|
|
39
|
+
flex: number;
|
|
40
|
+
justifyContent: "center";
|
|
41
|
+
overflow: "hidden";
|
|
42
|
+
textOverflow: "ellipsis";
|
|
43
|
+
whiteSpace: "nowrap";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
bottomLine: {
|
|
48
|
+
true: {
|
|
49
|
+
list: {
|
|
50
|
+
borderBottomWidth: "1px";
|
|
51
|
+
borderColor: "background.neutral.selected";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
false: {
|
|
55
|
+
list: {
|
|
56
|
+
borderBottomWidth: "0px";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
shadow: {
|
|
61
|
+
true: {
|
|
62
|
+
list: {
|
|
63
|
+
boxShadow: "0px 8px 12px 0px var(--colors-semantic-shadow-overlay, rgba(0, 0, 0, 0.08))";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}>>;
|
|
11
68
|
export type TabsProps = ComponentProps<typeof Root>;
|
|
12
|
-
export type TabsListProps =
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
69
|
+
export type TabsListProps = ComponentProps<typeof List>;
|
|
70
|
+
declare const List: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.ListProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
71
|
+
export type TabsTriggerProps = ComponentProps<typeof Trigger>;
|
|
72
|
+
declare const Trigger: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.TriggerProps & import('react').RefAttributes<HTMLButtonElement>>>;
|
|
73
|
+
export type TabsContentProps = ComponentProps<typeof Content>;
|
|
74
|
+
declare const Content: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.ContentProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
75
|
+
export type TabsIndicatorProps = ComponentProps<typeof Indicator>;
|
|
76
|
+
declare const Indicator: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.IndicatorProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
77
|
+
declare const Tabs: import('../../../styled-system/jsx').StyleContextRootProvider<import('react').ForwardRefExoticComponent<ArkTabs.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "content" | "trigger" | "indicator" | "root", {
|
|
78
|
+
variant: {
|
|
79
|
+
line: {
|
|
80
|
+
list: {
|
|
81
|
+
borderBottomWidth: "1px";
|
|
82
|
+
borderColor: "background.neutral.selected";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
enclosed: {
|
|
86
|
+
list: {
|
|
87
|
+
p: "16px 0 0 16px";
|
|
88
|
+
borderRadius: "md";
|
|
89
|
+
gap: "16";
|
|
90
|
+
};
|
|
91
|
+
trigger: {
|
|
92
|
+
borderRadius: "full";
|
|
93
|
+
_selected: {
|
|
94
|
+
background: "background.neutral.selected";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
indicator: {
|
|
98
|
+
display: "none";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
fitted: {
|
|
103
|
+
true: {
|
|
104
|
+
root: {
|
|
105
|
+
width: "100%";
|
|
106
|
+
};
|
|
107
|
+
list: {
|
|
108
|
+
width: "100%";
|
|
109
|
+
p: number;
|
|
110
|
+
overflowX: "visible";
|
|
111
|
+
};
|
|
112
|
+
trigger: {
|
|
113
|
+
flex: number;
|
|
114
|
+
justifyContent: "center";
|
|
115
|
+
overflow: "hidden";
|
|
116
|
+
textOverflow: "ellipsis";
|
|
117
|
+
whiteSpace: "nowrap";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
bottomLine: {
|
|
122
|
+
true: {
|
|
123
|
+
list: {
|
|
124
|
+
borderBottomWidth: "1px";
|
|
125
|
+
borderColor: "background.neutral.selected";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
false: {
|
|
129
|
+
list: {
|
|
130
|
+
borderBottomWidth: "0px";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
shadow: {
|
|
135
|
+
true: {
|
|
136
|
+
list: {
|
|
137
|
+
boxShadow: "0px 8px 12px 0px var(--colors-semantic-shadow-overlay, rgba(0, 0, 0, 0.08))";
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}>> & {
|
|
142
|
+
Root: import('../../../styled-system/jsx').StyleContextRootProvider<import('react').ForwardRefExoticComponent<ArkTabs.RootProps & import('react').RefAttributes<HTMLDivElement>>, import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "content" | "trigger" | "indicator" | "root", {
|
|
143
|
+
variant: {
|
|
144
|
+
line: {
|
|
145
|
+
list: {
|
|
146
|
+
borderBottomWidth: "1px";
|
|
147
|
+
borderColor: "background.neutral.selected";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
enclosed: {
|
|
151
|
+
list: {
|
|
152
|
+
p: "16px 0 0 16px";
|
|
153
|
+
borderRadius: "md";
|
|
154
|
+
gap: "16";
|
|
155
|
+
};
|
|
156
|
+
trigger: {
|
|
157
|
+
borderRadius: "full";
|
|
158
|
+
_selected: {
|
|
159
|
+
background: "background.neutral.selected";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
indicator: {
|
|
163
|
+
display: "none";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
fitted: {
|
|
168
|
+
true: {
|
|
169
|
+
root: {
|
|
170
|
+
width: "100%";
|
|
171
|
+
};
|
|
172
|
+
list: {
|
|
173
|
+
width: "100%";
|
|
174
|
+
p: number;
|
|
175
|
+
overflowX: "visible";
|
|
176
|
+
};
|
|
177
|
+
trigger: {
|
|
178
|
+
flex: number;
|
|
179
|
+
justifyContent: "center";
|
|
180
|
+
overflow: "hidden";
|
|
181
|
+
textOverflow: "ellipsis";
|
|
182
|
+
whiteSpace: "nowrap";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
bottomLine: {
|
|
187
|
+
true: {
|
|
188
|
+
list: {
|
|
189
|
+
borderBottomWidth: "1px";
|
|
190
|
+
borderColor: "background.neutral.selected";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
false: {
|
|
194
|
+
list: {
|
|
195
|
+
borderBottomWidth: "0px";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
shadow: {
|
|
200
|
+
true: {
|
|
201
|
+
list: {
|
|
202
|
+
boxShadow: "0px 8px 12px 0px var(--colors-semantic-shadow-overlay, rgba(0, 0, 0, 0.08))";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}>>;
|
|
207
|
+
List: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.ListProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
208
|
+
Trigger: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.TriggerProps & import('react').RefAttributes<HTMLButtonElement>>>;
|
|
209
|
+
Content: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.ContentProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
210
|
+
Indicator: import('../../../styled-system/jsx').StyleContextConsumer<import('react').ForwardRefExoticComponent<ArkTabs.IndicatorProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
32
211
|
};
|
|
33
|
-
export declare const TabsContext: (props: ArkTabs.ContextProps) =>
|
|
212
|
+
export declare const TabsContext: (props: ArkTabs.ContextProps) => import('react').ReactNode;
|
|
34
213
|
export default Tabs;
|