@stokelp/ui 1.9.0 → 1.10.1
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/components/accordion/Accordion.d.ts +5 -4
- package/dist/components/box/Box.d.ts +3 -3
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.d.ts +5 -4
- package/dist/components/date-picker/DatePicker.d.ts +4 -3
- package/dist/components/drawer/Drawer.d.ts +16 -22
- package/dist/components/form/FormControl.d.ts +3 -2
- package/dist/components/form/FormHelperText.d.ts +3 -2
- package/dist/components/form/FormLabel.d.ts +3 -2
- package/dist/components/heading/Heading.d.ts +4 -4
- package/dist/components/input/Input.d.ts +3 -2
- package/dist/components/input/InputAddon.d.ts +7 -7
- package/dist/components/input/InputGroup.d.ts +3 -2
- package/dist/components/select/Select.d.ts +4 -3
- package/dist/components/switch/Switch.d.ts +5 -4
- package/dist/components/tabs/Tabs.d.ts +5 -4
- package/dist/components/tag/Tag.d.ts +4 -3
- package/dist/components/text/Text.d.ts +4 -4
- package/dist/components/textarea/Textarea.d.ts +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/shared/ConditionalWrapper.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/theme/utilities.d.ts +2 -1
- package/dist/ui.cjs +3 -3
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +305 -1060
- package/dist/ui.js.map +1 -1
- package/dist/utils/slots.d.ts +4 -3
- package/dist/utils/storybook.d.ts +1 -1
- package/package.json +17 -17
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AccordionRecipe } from '@stokelp/styled-system/recipes';
|
|
2
|
-
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import { ComponentVariants } from '../../utils/slots';
|
|
4
1
|
import { Accordion as ArkAccordion } from '@ark-ui/react';
|
|
5
|
-
import { ForwardRefExoticComponent, RefAttributes
|
|
2
|
+
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import { ComponentVariants } from '../../utils/slots';
|
|
4
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
5
|
+
import { AccordionRecipe } from '@stokelp/styled-system/recipes';
|
|
6
|
+
|
|
6
7
|
export declare const Accordion: ComponentVariants<StyledComponent<ForwardRefExoticComponent<ArkAccordion.RootProps & RefAttributes<HTMLDivElement>>, {}>, AccordionRecipe>;
|
|
7
8
|
export declare const AccordionItem: StyledComponent<ForwardRefExoticComponent<ArkAccordion.ItemProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
8
9
|
export declare const AccordionItemContent: StyledComponent<ForwardRefExoticComponent<ArkAccordion.ItemContentProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { HTMLStyledProps } from '@stokelp/styled-system/types';
|
|
2
|
+
|
|
3
3
|
type As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' | 'header' | 'footer';
|
|
4
4
|
export type BoxProps = {
|
|
5
5
|
as?: As;
|
|
6
6
|
} & HTMLStyledProps<As>;
|
|
7
|
-
export declare const Box: (props: BoxProps) => JSX.Element;
|
|
7
|
+
export declare const Box: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { ButtonVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
export declare const Button: StyledComponent<"button", ButtonVariantProps>;
|
|
5
6
|
export interface ButtonProps extends ComponentProps<typeof Button> {
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { CheckboxRootProps } from '@ark-ui/react';
|
|
2
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import { CheckboxVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
import { Assign, JsxStyleProps } from '@stokelp/styled-system/types';
|
|
5
|
+
|
|
5
6
|
export interface CheckboxProps extends Assign<JsxStyleProps, CheckboxRootProps>, CheckboxVariantProps {
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DatepickerRecipe } from '@stokelp/styled-system/recipes';
|
|
2
|
-
import { ComponentVariants } from '../../utils/slots';
|
|
3
1
|
import { DatePicker as ArkDatePicker } from '@ark-ui/react';
|
|
4
|
-
import {
|
|
2
|
+
import { ComponentProps, FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import { ComponentVariants } from '../../utils/slots';
|
|
4
|
+
import { DatepickerRecipe } from '@stokelp/styled-system/recipes';
|
|
5
|
+
|
|
5
6
|
declare const DatePickerRoot: ComponentVariants<ForwardRefExoticComponent<ArkDatePicker.RootProps & RefAttributes<HTMLDivElement>>, DatepickerRecipe>;
|
|
6
7
|
interface DatePickerRootProps extends ComponentProps<typeof DatePickerRoot> {
|
|
7
8
|
placeholder?: string;
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
1
|
+
import { Dialog as ArkDrawer, PolymorphicProps } from '@ark-ui/react';
|
|
2
|
+
import { ComponentProps, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject, RefAttributes } from 'react';
|
|
4
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>, {}>;
|
|
4
|
+
import { DrawerRecipe } from '@stokelp/styled-system/recipes';
|
|
5
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
6
|
+
|
|
7
|
+
export declare const Drawer: ComponentVariants<(props: ArkDrawer.RootProps) => import("react/jsx-runtime").JSX.Element, DrawerRecipe>;
|
|
8
|
+
export declare const DrawerBody: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
|
|
10
|
+
} & PolymorphicProps>, {}>;
|
|
13
11
|
export declare const DrawerCloseTrigger: StyledComponent<ForwardRefExoticComponent<ArkDrawer.CloseTriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
|
|
14
|
-
export declare const DrawerFooter: StyledComponent<ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLElement | null) => void) | RefObject<HTMLElement> | null | undefined;
|
|
16
|
-
} & {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} & {
|
|
22
|
-
asChild?: boolean | undefined;
|
|
23
|
-
}, "ref"> & {
|
|
24
|
-
showCloseTrigger?: boolean | undefined;
|
|
12
|
+
export declare const DrawerFooter: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
|
|
14
|
+
} & PolymorphicProps>, {}>;
|
|
15
|
+
export declare const DrawerHeader: ForwardRefExoticComponent<Omit<Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLElement> | null | undefined;
|
|
17
|
+
} & PolymorphicProps, "ref"> & {
|
|
18
|
+
showCloseTrigger?: boolean;
|
|
25
19
|
} & RefAttributes<HTMLElement>>;
|
|
26
20
|
export declare const DrawerTitle: StyledComponent<ForwardRefExoticComponent<ArkDrawer.TitleProps & RefAttributes<HTMLHeadingElement>>, {}>;
|
|
27
21
|
export declare const DrawerTrigger: StyledComponent<ForwardRefExoticComponent<ArkDrawer.TriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { FormControlVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
declare const StyledFormControl: StyledComponent<"div", FormControlVariantProps>;
|
|
5
6
|
export interface FormControlProps extends ComponentProps<typeof StyledFormControl> {
|
|
6
7
|
isInvalid?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { FormHelperTextVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
export declare const FormHelperText: StyledComponent<"p", FormHelperTextVariantProps>;
|
|
5
6
|
export interface FormHelperTextProps extends ComponentProps<typeof FormHelperText> {
|
|
6
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { FormLabelVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
declare const StyledFormLabel: StyledComponent<"label", FormLabelVariantProps>;
|
|
5
6
|
export interface FormLabelProps extends ComponentProps<typeof StyledFormLabel> {
|
|
6
7
|
addon?: ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { HTMLStyledProps } from '@stokelp/styled-system/jsx';
|
|
2
|
+
import { HeadingVariantProps } from '@stokelp/styled-system/recipes';
|
|
3
|
+
|
|
4
4
|
type As = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
5
|
export type HeadingProps = {
|
|
6
6
|
as?: As;
|
|
7
7
|
} & HeadingVariantProps & HTMLStyledProps<As>;
|
|
8
|
-
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
|
8
|
+
export declare const Heading: (props: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { InputVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
export declare const Input: StyledComponent<"input", InputVariantProps>;
|
|
5
6
|
export interface InputProps extends ComponentProps<typeof Input> {
|
|
6
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}>, InputAddonVariantProps>;
|
|
3
|
+
import { PolymorphicProps } from '@ark-ui/react';
|
|
4
|
+
import { InputAddonVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
|
+
|
|
6
|
+
export declare const InputAddon: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
} & PolymorphicProps>, InputAddonVariantProps>;
|
|
9
9
|
export interface InputAddonProps extends ComponentProps<typeof InputAddon> {
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import
|
|
3
|
+
import { InputGroupVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
4
5
|
export declare const InputGroup: StyledComponent<"div", InputGroupVariantProps>;
|
|
5
6
|
export interface InputGroupProps extends ComponentProps<typeof InputGroup> {
|
|
6
7
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SelectRootProps } from '@ark-ui/react';
|
|
3
3
|
import { select } from '@stokelp/styled-system/recipes';
|
|
4
4
|
import { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types';
|
|
5
|
+
|
|
5
6
|
export type SelectItem = {
|
|
6
|
-
value: string;
|
|
7
|
+
value: string | number;
|
|
7
8
|
label: string;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { ForwardRefExoticComponent, RefAttributes
|
|
1
|
+
import { SwitchRootProps } from '@ark-ui/react';
|
|
2
|
+
import { SwitchRecipeVariantProps } from '@stokelp/styled-system/recipes';
|
|
3
|
+
import { Assign, JsxStyleProps } from '@stokelp/styled-system/types';
|
|
4
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
|
+
|
|
5
6
|
export interface SwitchProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchRecipeVariantProps {
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { TabsRecipe } from '@stokelp/styled-system/recipes';
|
|
2
|
-
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import { ComponentVariants } from '../../utils/slots.tsx';
|
|
4
1
|
import { Tabs as ArkTab } from '@ark-ui/react';
|
|
5
|
-
import { ForwardRefExoticComponent, RefAttributes
|
|
2
|
+
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import { ComponentVariants } from '../../utils/slots.tsx';
|
|
4
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
5
|
+
import { TabsRecipe } from '@stokelp/styled-system/recipes';
|
|
6
|
+
|
|
6
7
|
export declare const Tabs: ComponentVariants<StyledComponent<ForwardRefExoticComponent<ArkTab.RootProps & RefAttributes<HTMLDivElement>>, {}>, TabsRecipe>;
|
|
7
8
|
export declare const TabsContent: StyledComponent<ForwardRefExoticComponent<ArkTab.ContentProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
8
9
|
export declare const TabsTrigger: StyledComponent<ForwardRefExoticComponent<ArkTab.TriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLArkProps } from '@ark-ui/react';
|
|
2
|
+
import { TagVariantProps } from '@stokelp/styled-system/recipes';
|
|
3
3
|
import { Assign, JsxStyleProps } from '@stokelp/styled-system/types';
|
|
4
|
-
import { ForwardRefExoticComponent, RefAttributes
|
|
4
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
|
+
|
|
5
6
|
export interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { TextVariantProps } from '@stokelp/styled-system/recipes';
|
|
2
|
+
import { HTMLStyledProps } from '@stokelp/styled-system/types';
|
|
3
|
+
|
|
4
4
|
type As = 'p' | 'span' | 'div' | 'label' | 'pre';
|
|
5
5
|
export type TextProps = {
|
|
6
6
|
as?: As;
|
|
7
7
|
} & TextVariantProps & HTMLStyledProps<As>;
|
|
8
|
-
export declare const Text: (props: TextProps) => JSX.Element;
|
|
8
|
+
export declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, DetailedHTMLProps, TextareaHTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject } from 'react';
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}>, TextareaVariantProps>;
|
|
3
|
+
import { PolymorphicProps } from '@ark-ui/react';
|
|
4
|
+
import { TextareaVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
|
+
|
|
6
|
+
export declare const Textarea: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLTextAreaElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLTextAreaElement> | null | undefined;
|
|
8
|
+
} & PolymorphicProps>, TextareaVariantProps>;
|
|
9
9
|
export interface TextareaProps extends ComponentProps<typeof Textarea> {
|
|
10
10
|
}
|
package/dist/index.d.ts
CHANGED