welcome-ui 7.1.1 → 7.3.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/README.md +2 -8
- package/dist/Accordion.mjs +8 -8
- package/dist/Alert.mjs +79 -72
- package/dist/Breadcrumb.mjs +3 -2
- package/dist/Button.mjs +59 -45
- package/dist/Icons.mjs +621 -625
- package/dist/Swiper.mjs +47 -45
- package/dist/VariantIcon.mjs +22 -21
- package/dist/index-BrfXjmHY.mjs +36 -0
- package/dist/theme.mjs +411 -350
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Alert/index.d.ts +3 -5
- package/dist/types/components/Alert/theme.d.ts +5 -5
- package/dist/types/components/Avatar/index.d.ts +2 -5
- package/dist/types/components/Avatar/theme.d.ts +4 -3
- package/dist/types/components/Avatar/utils.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -4
- package/dist/types/components/Button/index.d.ts +8 -6
- package/dist/types/components/Button/theme.d.ts +3 -3
- package/dist/types/components/ButtonGroup/styles.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/styles.d.ts +2 -2
- package/dist/types/components/Drawer/styles.d.ts +1 -1
- package/dist/types/components/DropdownMenu/Item.styled.d.ts +1 -1
- package/dist/types/components/DropdownMenu/Separator.styled.d.ts +1 -1
- package/dist/types/components/Field/styles.d.ts +2 -2
- package/dist/types/components/FileDrop/styles.d.ts +2 -2
- package/dist/types/components/Hint/index.d.ts +1 -1
- package/dist/types/components/Hint/styles.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +1 -1
- package/dist/types/components/Icon/theme.d.ts +5 -8
- package/dist/types/components/IconsFont/index.d.ts +1 -1
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +2 -2
- package/dist/types/components/Label/styles.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +2 -3
- package/dist/types/components/Loader/theme.d.ts +5 -6
- package/dist/types/components/Logo/styles.d.ts +1 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +2 -1
- package/dist/types/components/Modal/Assets/index.d.ts +3 -3
- package/dist/types/components/Modal/Assets/styles.d.ts +3 -3
- package/dist/types/components/Modal/Close.d.ts +2 -1
- package/dist/types/components/Modal/index.d.ts +4 -4
- package/dist/types/components/Modal/theme.d.ts +2 -3
- package/dist/types/components/Pagination/styles.d.ts +3 -3
- package/dist/types/components/Popover/Arrow.d.ts +2 -1
- package/dist/types/components/Popover/Content.d.ts +2 -1
- package/dist/types/components/Popover/Popover.d.ts +2 -2
- package/dist/types/components/Popover/PopoverHover.d.ts +2 -2
- package/dist/types/components/Popover/styles.d.ts +2 -2
- package/dist/types/components/Radio/styles.d.ts +2 -2
- package/dist/types/components/RadioTab/styles.d.ts +3 -3
- package/dist/types/components/Search/styles.d.ts +5 -5
- package/dist/types/components/Select/styles.d.ts +4 -4
- package/dist/types/components/Slider/styles.d.ts +2 -2
- package/dist/types/components/Swiper/index.d.ts +2 -2
- package/dist/types/components/Swiper/styles.d.ts +2 -2
- package/dist/types/components/System/index.d.ts +2 -3
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +2 -5
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +1 -1
- package/dist/types/components/Text/styles.d.ts +1 -1
- package/dist/types/components/TimePicker/styles.d.ts +1 -1
- package/dist/types/components/Toast/Growl.d.ts +2 -1
- package/dist/types/components/Toast/Snackbar.d.ts +2 -1
- package/dist/types/components/Toast/styles.d.ts +4 -4
- package/dist/types/components/Toast/theme.d.ts +1 -0
- package/dist/types/components/Toggle/index.d.ts +1 -2
- package/dist/types/components/Toggle/styles.d.ts +1 -2
- package/dist/types/components/Toggle/theme.d.ts +4 -3
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/index.d.ts +1 -3
- package/dist/types/components/VariantIcon/theme.d.ts +3 -7
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/ts-utils.d.ts +19 -0
- package/package.json +6 -6
- package/dist/index-RUkz9Z2V.mjs +0 -31
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { SearchOptions } from './index';
|
|
2
2
|
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/util').Props<import('@xstyled/system').Theme> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
3
|
-
export declare const InputWrapper: import('styled-components').StyledComponent<
|
|
3
|
+
export declare const InputWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
4
|
export declare const Input: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, SearchOptions, never>;
|
|
5
|
-
export declare const Menu: import('styled-components').StyledComponent<
|
|
6
|
-
export declare const Item: import('styled-components').StyledComponent<
|
|
5
|
+
export declare const Menu: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
|
|
6
|
+
export declare const Item: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, {
|
|
7
7
|
isExisting?: boolean;
|
|
8
8
|
isHighlighted?: boolean;
|
|
9
9
|
isSelected?: boolean;
|
|
10
10
|
}, never>;
|
|
11
|
-
export declare const Indicators: import('styled-components').StyledComponent<
|
|
12
|
-
export declare const DropDownIndicator: import('styled-components').StyledComponent<
|
|
11
|
+
export declare const Indicators: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
12
|
+
export declare const DropDownIndicator: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {
|
|
13
13
|
isOpen?: boolean;
|
|
14
14
|
size: SearchOptions["size"];
|
|
15
15
|
}, never>;
|
|
@@ -7,7 +7,7 @@ export declare const IconWrapper: import('styled-components').StyledComponent<"d
|
|
|
7
7
|
export declare const Wrapper: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Box').BoxProps>, import('@xstyled/system').Theme, {
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
}, never>;
|
|
10
|
-
export declare const InputWrapper: import('styled-components').StyledComponent<
|
|
10
|
+
export declare const InputWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
11
11
|
export declare const Input: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
12
12
|
iconPlacement?: "both" | "right";
|
|
13
13
|
isClearable?: boolean;
|
|
@@ -15,8 +15,8 @@ export declare const Input: import('styled-components').StyledComponent<"div", i
|
|
|
15
15
|
transparent?: boolean;
|
|
16
16
|
variant: SelectOptions["variant"];
|
|
17
17
|
}, never>;
|
|
18
|
-
export declare const Menu: import('styled-components').StyledComponent<
|
|
19
|
-
export declare const Item: import('styled-components').StyledComponent<
|
|
18
|
+
export declare const Menu: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
|
|
19
|
+
export declare const Item: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, {
|
|
20
20
|
allowUnselectFromList: boolean;
|
|
21
21
|
isDisabled?: boolean;
|
|
22
22
|
isHighlighted: boolean;
|
|
@@ -26,7 +26,7 @@ export declare const Item: import('styled-components').StyledComponent<string, i
|
|
|
26
26
|
export declare const Indicators: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
27
27
|
size: DefaultFieldStylesProps["size"];
|
|
28
28
|
}, never>;
|
|
29
|
-
export declare const DropDownIndicator: import('styled-components').StyledComponent<
|
|
29
|
+
export declare const DropDownIndicator: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {
|
|
30
30
|
isOpen?: boolean;
|
|
31
31
|
}, never>;
|
|
32
32
|
export declare const Tags: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -2,8 +2,8 @@ type BorderProps = {
|
|
|
2
2
|
borderSelectorColor?: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const Slider: import('styled-components').StyledComponent<
|
|
6
|
-
export declare const RangeInput: import('styled-components').StyledComponent<
|
|
5
|
+
export declare const Slider: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, BorderProps, never>;
|
|
6
|
+
export declare const RangeInput: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, BorderProps, never>;
|
|
7
7
|
export declare const Track: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Box').BoxProps>, import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
type RangeProps = {
|
|
9
9
|
disabled?: boolean;
|
|
@@ -74,7 +74,7 @@ export type SwiperInitialProps = {
|
|
|
74
74
|
};
|
|
75
75
|
export type SwiperProps = CreateWuiProps<'div', SwiperInitialProps>;
|
|
76
76
|
export declare const Swiper: {
|
|
77
|
-
({ children, dataTestId, store, ...rest }: SwiperProps): JSX.Element;
|
|
77
|
+
({ children, dataTestId, store, ...rest }: SwiperProps): React.JSX.Element;
|
|
78
78
|
displayName: string;
|
|
79
79
|
};
|
|
80
|
-
export declare const StyledSwiper: import('styled-components').StyledComponent<
|
|
80
|
+
export declare const StyledSwiper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, CreateWuiProps<"div">, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateWuiProps } from '../System';
|
|
2
|
-
export declare const Swiper: import('styled-components').StyledComponent<
|
|
2
|
+
export declare const Swiper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, CreateWuiProps<"div">, never>;
|
|
3
3
|
export declare const Arrow: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"button", import('../Button').ButtonProps>, import('@xstyled/system').Theme, {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
} & Pick<{
|
|
@@ -68,7 +68,7 @@ export declare const Pagination: import('styled-components').StyledComponent<"di
|
|
|
68
68
|
showLeftArrow: boolean;
|
|
69
69
|
showRightArrow: boolean;
|
|
70
70
|
}, "withPagination">, never>;
|
|
71
|
-
export declare const Bullet: import('styled-components').StyledComponent<
|
|
71
|
+
export declare const Bullet: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
72
72
|
active: boolean;
|
|
73
73
|
} & Pick<{
|
|
74
74
|
centeredSlides: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, PropsWithoutRef } from 'react';
|
|
2
2
|
import { SystemProps } from '@xstyled/styled-components';
|
|
3
3
|
import { StyledConfig } from 'styled-components';
|
|
4
4
|
import * as S from '@xstyled/styled-components';
|
|
@@ -36,5 +36,4 @@ export type CreateWuiComponent<Component extends As, Options = {}> = {
|
|
|
36
36
|
(props: CreateWuiProps<Component, Options>): JSX.Element;
|
|
37
37
|
displayName?: string;
|
|
38
38
|
};
|
|
39
|
-
export declare const forwardRef: <Component extends As, Props = {}>(component: React.ForwardRefRenderFunction<any, Props
|
|
40
|
-
export type ExtraSize = number | string;
|
|
39
|
+
export declare const forwardRef: <Component extends As, Props = {}>(component: React.ForwardRefRenderFunction<any, PropsWithoutRef<Props>>) => CreateWuiComponent<Component, Props>;
|
|
@@ -12,7 +12,7 @@ export declare const Table: import('../System').CreateWuiComponent<"div", TableP
|
|
|
12
12
|
Tbody: import('styled-components').StyledComponent<"tbody", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
13
13
|
Th: import('styled-components').StyledComponent<"th", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
14
14
|
Tr: import('styled-components').StyledComponent<"tr", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
15
|
-
variant?: "default" | "danger" | "warning" | "
|
|
15
|
+
variant?: "default" | "danger" | "warning" | "info" | "success";
|
|
16
16
|
}, never>;
|
|
17
17
|
Td: import('styled-components').StyledComponent<"td", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableOptions } from './index';
|
|
2
2
|
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & TableOptions, never>;
|
|
3
|
-
export declare const Content: import('styled-components').StyledComponent<
|
|
3
|
+
export declare const Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
4
|
export declare const Table: import('styled-components').StyledComponent<"table", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
5
5
|
export declare const Thead: import('styled-components').StyledComponent<"thead", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
6
6
|
export declare const Tbody: import('styled-components').StyledComponent<"tbody", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -4,6 +4,6 @@ import * as Ariakit from '@ariakit/react';
|
|
|
4
4
|
export declare const TabList: import('styled-components').StyledComponent<(props: Ariakit.TabListProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, import('@xstyled/system').Theme, {
|
|
5
5
|
size: SizeOptions;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const Tab: import('styled-components').StyledComponent<
|
|
7
|
+
export declare const Tab: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
export declare const TabPanel: import('styled-components').StyledComponent<(props: Ariakit.TabPanelProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, import('@xstyled/system').Theme, Pick<Ariakit.TabStoreState, "orientation">, never>;
|
|
9
|
-
export declare const ActiveBar: import('styled-components').StyledComponent<
|
|
9
|
+
export declare const ActiveBar: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, ActiveBarReturn, never>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Size, Variant } from './theme';
|
|
2
2
|
import { CreateWuiProps } from '../System';
|
|
3
3
|
import * as S from './styles';
|
|
4
|
-
type Size = 'xs' | 'sm' | 'md';
|
|
5
|
-
type Variant = ThemeSecondaryColors | 'default' | 'info' | 'success' | 'danger' | 'warning' | 'primary';
|
|
6
4
|
export interface TagOptions {
|
|
7
5
|
href?: string;
|
|
8
6
|
onClick?: () => void;
|
|
@@ -13,5 +11,4 @@ export interface TagOptions {
|
|
|
13
11
|
}
|
|
14
12
|
export type TagProps = CreateWuiProps<'div', TagOptions>;
|
|
15
13
|
export declare const Tag: import('../System').CreateWuiComponent<"div", TagProps>;
|
|
16
|
-
export declare const StyledTag: import('styled-components').StyledComponent<
|
|
17
|
-
export {};
|
|
14
|
+
export declare const StyledTag: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, S.StyledTagProps & import('../System').WuiProps, never>;
|
|
@@ -8,7 +8,7 @@ export interface StyledTagProps {
|
|
|
8
8
|
size: TagOptions['size'];
|
|
9
9
|
variant: TagOptions['variant'];
|
|
10
10
|
}
|
|
11
|
-
export declare const Tag: import('styled-components').StyledComponent<
|
|
11
|
+
export declare const Tag: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, StyledTagProps & WuiProps, never>;
|
|
12
12
|
export declare const ActionIcon: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
13
13
|
size: TagOptions["size"];
|
|
14
14
|
}, never>;
|
|
@@ -2,7 +2,7 @@ import { CSSObject } from '@xstyled/styled-components';
|
|
|
2
2
|
import { ThemeSecondaryColors } from '../../theme/colors';
|
|
3
3
|
import { ThemeValues } from '../../theme';
|
|
4
4
|
export type Size = 'xs' | 'sm' | 'md';
|
|
5
|
-
export type Variant = ThemeSecondaryColors | 'default' | 'danger' | 'info' | 'success' | 'warning' | 'primary';
|
|
5
|
+
export type Variant = ThemeSecondaryColors | 'default' | 'danger' | 'info' | 'success' | 'warning' | 'primary' | 'ai';
|
|
6
6
|
export type ThemeTags = {
|
|
7
7
|
default: CSSObject;
|
|
8
8
|
hover: Record<Variant, CSSObject>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TextOptions } from './index';
|
|
2
|
-
export declare const Text: import('styled-components').StyledComponent<
|
|
2
|
+
export declare const Text: import('styled-components').StyledComponent<"p", import('@xstyled/system').Theme, TextOptions, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Wrapper: import('styled-components').StyledComponent<
|
|
1
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ToastVariant } from './theme';
|
|
1
2
|
import { CreateWuiProps } from '../System';
|
|
2
3
|
export interface GrowlOptions {
|
|
3
4
|
hasCloseButton?: boolean;
|
|
4
5
|
icon?: JSX.Element | null;
|
|
5
6
|
onClose?: () => void;
|
|
6
|
-
variant?:
|
|
7
|
+
variant?: ToastVariant;
|
|
7
8
|
}
|
|
8
9
|
export type GrowlProps = CreateWuiProps<'div', GrowlOptions>;
|
|
9
10
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ToastVariant } from './theme';
|
|
1
2
|
import { ButtonProps } from '../Button';
|
|
2
3
|
import { CreateWuiProps } from '../System';
|
|
3
4
|
export interface SnackbarOptions {
|
|
@@ -8,7 +9,7 @@ export interface SnackbarOptions {
|
|
|
8
9
|
hasCloseButton?: boolean;
|
|
9
10
|
icon?: JSX.Element | null;
|
|
10
11
|
onClose?: () => void;
|
|
11
|
-
variant?:
|
|
12
|
+
variant?: ToastVariant;
|
|
12
13
|
}
|
|
13
14
|
export type SnackbarProps = CreateWuiProps<'div', SnackbarOptions>;
|
|
14
15
|
/**
|
|
@@ -5,14 +5,14 @@ export declare const ToastWrapper: import('styled-components').StyledComponent<i
|
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const Growl: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Alert').AlertProps> & {
|
|
7
7
|
Title: import('react').FC<import('../Alert/Title').AlertTitleProps>;
|
|
8
|
-
Button: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size"
|
|
9
|
-
SecondaryButton: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size"
|
|
8
|
+
Button: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size">>;
|
|
9
|
+
SecondaryButton: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size">>;
|
|
10
10
|
}, import('@xstyled/system').Theme, GrowlOptions, never>;
|
|
11
11
|
export declare const Title: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Box').BoxProps>, import('@xstyled/system').Theme, {}, never>;
|
|
12
12
|
export declare const Snackbar: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Alert').AlertProps> & {
|
|
13
13
|
Title: import('react').FC<import('../Alert/Title').AlertTitleProps>;
|
|
14
|
-
Button: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size"
|
|
15
|
-
SecondaryButton: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size"
|
|
14
|
+
Button: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size">>;
|
|
15
|
+
SecondaryButton: import('../System').CreateWuiComponent<"button", Omit<import('../Button').ButtonProps, "size">>;
|
|
16
16
|
}, import('@xstyled/system').Theme, {}, never>;
|
|
17
17
|
export declare const SnackbarSeparator: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
18
18
|
variant: SnackbarProps["variant"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Size } from './theme';
|
|
1
2
|
import { CheckboxProps } from '../Checkbox';
|
|
2
3
|
import { CreateWuiProps } from '../System';
|
|
3
|
-
type Size = 'xs' | 'sm' | 'md';
|
|
4
4
|
export type ToggleOptions = Omit<CheckboxProps, 'Component' | 'iconPlacement' | 'indeterminate' | 'hasIcon' | 'transparent' | 'isClearable'> & {
|
|
5
5
|
checkedIcon?: JSX.Element;
|
|
6
6
|
size?: Size;
|
|
@@ -8,4 +8,3 @@ export type ToggleOptions = Omit<CheckboxProps, 'Component' | 'iconPlacement' |
|
|
|
8
8
|
};
|
|
9
9
|
export type ToggleProps = CreateWuiProps<'input', ToggleOptions>;
|
|
10
10
|
export declare const Toggle: import('../System').CreateWuiComponent<"input", ToggleProps>;
|
|
11
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Size } from './theme';
|
|
1
2
|
import { ToggleOptions } from './index';
|
|
2
3
|
import * as Ariakit from '@ariakit/react';
|
|
3
|
-
type Size = 'xs' | 'sm' | 'md';
|
|
4
4
|
export declare const Toggle: import('styled-components').StyledComponent<(props: Ariakit.CheckboxProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, import('@xstyled/system').Theme, ToggleOptions, never>;
|
|
5
5
|
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
6
6
|
onClick: React.MouseEventHandler<HTMLInputElement>;
|
|
@@ -9,4 +9,3 @@ export declare const IconWrapper: import('styled-components').StyledComponent<"d
|
|
|
9
9
|
checked: boolean;
|
|
10
10
|
size: Size;
|
|
11
11
|
}, never>;
|
|
12
|
-
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../../theme';
|
|
3
|
-
type
|
|
3
|
+
export type Size = 'xs' | 'sm' | 'md';
|
|
4
|
+
type State = 'default' | 'checked' | 'disabled';
|
|
4
5
|
export type ThemeToggles = {
|
|
5
|
-
after: Record<State, CSSObject>;
|
|
6
|
+
after: Record<State | 'sizes', CSSObject>;
|
|
6
7
|
icon: Record<'sizes' | 'position', CSSObject>;
|
|
7
|
-
item: Record<State, CSSObject>;
|
|
8
|
+
item: Record<State | 'sizes', CSSObject>;
|
|
8
9
|
};
|
|
9
10
|
export declare const getToggles: (theme: ThemeValues) => ThemeToggles;
|
|
10
11
|
export {};
|
|
@@ -6,5 +6,5 @@ type FadeIn = {
|
|
|
6
6
|
withArrow?: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare const FadeIn: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & FadeIn, never>;
|
|
9
|
-
export declare const ChildItem: import('styled-components').StyledComponent<
|
|
9
|
+
export declare const ChildItem: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { Size, Variant } from './theme';
|
|
1
2
|
import { CreateWuiProps } from '../System';
|
|
2
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
3
|
-
type Variant = 'danger' | 'warning' | 'success' | 'info' | 'default';
|
|
4
3
|
export interface VariantIconOptions {
|
|
5
4
|
icon?: JSX.Element;
|
|
6
5
|
size?: Size;
|
|
@@ -8,4 +7,3 @@ export interface VariantIconOptions {
|
|
|
8
7
|
}
|
|
9
8
|
export type VariantIconProps = CreateWuiProps<'div', VariantIconOptions>;
|
|
10
9
|
export declare const VariantIcon: import('../System').CreateWuiComponent<"div", VariantIconProps>;
|
|
11
|
-
export {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../../theme';
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
info: CSSObject;
|
|
7
|
-
success: CSSObject;
|
|
8
|
-
warning: CSSObject;
|
|
9
|
-
};
|
|
3
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
4
|
+
export type Variant = 'danger' | 'warning' | 'success' | 'info' | 'default' | 'ai';
|
|
5
|
+
export type ThemeVariantIcon = Record<Variant, CSSObject>;
|
|
10
6
|
export declare const getVariantIcon: (theme: ThemeValues) => ThemeVariantIcon;
|
|
@@ -117,6 +117,7 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
117
117
|
variantIcon: ThemeVariantIcon;
|
|
118
118
|
}
|
|
119
119
|
export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
|
|
120
|
+
export type ThemeColorTokens = keyof ThemeColors;
|
|
120
121
|
export type ThemeProps = {
|
|
121
122
|
[param: string]: unknown;
|
|
122
123
|
defaultFontFamily?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preserve type intellisence and autocomplete on union like
|
|
3
|
+
* type test = 'some string' | string
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* // The following type:
|
|
7
|
+
* type color = 'red' | 'blue' | 'green' | string
|
|
8
|
+
* // would be interpreted as
|
|
9
|
+
* type color = string
|
|
10
|
+
*
|
|
11
|
+
* // Using LiteralUnion<T>
|
|
12
|
+
* type color = LiteralUnion<'red' | 'blue' | 'green'>
|
|
13
|
+
* // would be interpreted as
|
|
14
|
+
* type color = 'red' | 'blue' | 'green'
|
|
15
|
+
* // While still allowing any literal string
|
|
16
|
+
* const bg: color = 'yellow'
|
|
17
|
+
* const bg: color = '#FFF'
|
|
18
|
+
*/
|
|
19
|
+
export type LiteralUnion<T, U = string> = T | (U & Record<never, never>);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "welcome-ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Customizable design system with react • styled-components • styled-system and ariakit.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"@types/lodash.capitalize": "^4.2.9",
|
|
85
85
|
"@types/lodash.debounce": "^4.0.6",
|
|
86
86
|
"@types/lodash.range": "^3.2.9",
|
|
87
|
-
"@types/node": "22.
|
|
87
|
+
"@types/node": "22.13.4",
|
|
88
88
|
"@types/ramda": "^0.30.2",
|
|
89
|
-
"@types/react": "18.
|
|
89
|
+
"@types/react": "18.3.12",
|
|
90
90
|
"@types/react-datepicker": "^4.15.0",
|
|
91
|
-
"@types/react-dom": "18.
|
|
91
|
+
"@types/react-dom": "18.3.1",
|
|
92
92
|
"@xstyled/styled-components": "^3.7.3",
|
|
93
93
|
"babel-jest": "^29.7.0",
|
|
94
94
|
"babel-plugin-annotate-pure-calls": "^0.4.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"jest-environment-jsdom": "^29.7.0",
|
|
99
99
|
"jest-styled-components": "7.2.0",
|
|
100
100
|
"ramda": "^0.30.1",
|
|
101
|
-
"react": "^18.
|
|
101
|
+
"react": "^18.3.1",
|
|
102
102
|
"release-it": "^18.1.2",
|
|
103
103
|
"rollup-preserve-directives": "^1.1.3",
|
|
104
104
|
"styled-components": "^5.3.9",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"@xstyled/styled-components": "^3.7.3",
|
|
113
|
-
"react": "^18.
|
|
113
|
+
"react": "^18.3.1",
|
|
114
114
|
"styled-components": "^5.3.9"
|
|
115
115
|
},
|
|
116
116
|
"resolutions": {
|
package/dist/index-RUkz9Z2V.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import c from "react";
|
|
3
|
-
import { Icon as e } from "./Icon.mjs";
|
|
4
|
-
const o = 15, n = 15, l = '<path fill="currentColor" d="m55.542 9.07 41.48 66.67a6.395 6.395 0 0 1 .32 6.225 6.482 6.482 0 0 1-5.123 3.604L9.256 94.957A6.502 6.502 0 0 1 3.12 92.15a6.41 6.41 0 0 1-.33-6.703L44.27 9.39v-.001c1.12-2.053 3.193-3.318 5.544-3.385a6.475 6.475 0 0 1 5.728 3.067Zm-3.217 61.689a3.726 3.726 0 0 0-.493-.601c-1.495-1.497-4.173-1.497-5.655 0a4.016 4.016 0 0 0-1.173 2.833c0 1.042.428 2.085 1.173 2.833A3.992 3.992 0 0 0 49.004 77a4.015 4.015 0 0 0 2.828-1.176 4.414 4.414 0 0 0 .867-1.31c.092-.24.173-.494.226-.748a5.24 5.24 0 0 0 .067-.775c0-.268-.028-.535-.067-.789a4.985 4.985 0 0 0-.226-.748 4.443 4.443 0 0 0-.374-.695ZM45 37.009v20.257a4.005 4.005 0 0 0 4 4.009c2.21 0 4-1.796 4-4.01V37.01c0-2.215-1.79-4.01-4-4.01-2.209 0-4 1.795-4 4.01Z"/>', a = {
|
|
5
|
-
width: o,
|
|
6
|
-
height: n,
|
|
7
|
-
block: l
|
|
8
|
-
}, A = (t) => /* @__PURE__ */ c.createElement(e, { alt: "Alert", content: a, ...t }), r = 15, h = 15, i = '<path fill="currentColor" fill-rule="evenodd" d="M74.68 21.64a6.51 6.51 0 0 1 9.155-.492 6.453 6.453 0 0 1 .707 8.907l-.211.246-43.47 48.058a6.495 6.495 0 0 1-4.828 2.141c-1.449 0-2.86-.48-4.013-1.385l-.283-.235-15.54-13.665a6.455 6.455 0 0 1-.555-9.153 6.512 6.512 0 0 1 8.902-.756l.248.208 10.72 9.425L74.68 21.641Z" clip-rule="evenodd"/>', s = {
|
|
9
|
-
width: r,
|
|
10
|
-
height: h,
|
|
11
|
-
block: i
|
|
12
|
-
}, L = (t) => /* @__PURE__ */ c.createElement(e, { alt: "Check", content: s, ...t }), d = 15, u = 15, m = '<path fill="currentColor" d="M83.95 12.62C74.807 4.513 62.657.85 49.731 2.317 23.412 5.297 2 29.005 2 55.167c0 12.738 4.992 24.178 14.054 32.214C23.876 94.32 33.9 98 44.73 98c1.824 0 3.674-.105 5.536-.315C76.587 94.703 98 70.995 98 44.833c0-12.737-4.99-24.177-14.05-32.213ZM56.492 66.181c2.219-.25 4.228 1.293 4.48 3.432.254 2.139-1.341 4.07-3.562 4.314-.439.048-.878.073-1.314.073-2.838 0-5.599-1.003-7.737-2.84-2.467-2.121-3.882-5.163-3.882-8.347V49.825l-3.97.436c-2.224.244-4.23-1.293-4.482-3.432-.253-2.139 1.342-4.07 3.565-4.314l8.477-.93a4.142 4.142 0 0 1 3.155.963 3.842 3.842 0 0 1 1.352 2.91v17.355a3.29 3.29 0 0 0 1.177 2.529 3.582 3.582 0 0 0 2.74.84Zm-12.33-35.895a4.548 4.548 0 0 1-.365-1.742 4.52 4.52 0 0 1 1.391-3.222c1.092-1.053 2.725-1.533 4.264-1.235.298.052.593.143.877.26.283.104.567.247.81.416.27.17.514.351.728.559a4.51 4.51 0 0 1 1.377 3.223c0 .298-.027.597-.095.883a3.677 3.677 0 0 1-.27.858 3.699 3.699 0 0 1-.43.78c-.175.246-.366.48-.582.688a4.43 4.43 0 0 1-.729.572 5.21 5.21 0 0 1-.81.416 5.177 5.177 0 0 1-.877.26c-.31.051-.62.09-.93.09a4.846 4.846 0 0 1-3.928-2.027 5.523 5.523 0 0 1-.432-.78Z"/>', $ = {
|
|
13
|
-
width: d,
|
|
14
|
-
height: u,
|
|
15
|
-
block: m
|
|
16
|
-
}, M = (t) => /* @__PURE__ */ c.createElement(e, { alt: "Information", content: $, ...t }), f = 15, k = 15, p = '<path fill="currentColor" fill-rule="evenodd" d="M80.086 40.154a2.402 2.402 0 0 0-2.25-1.02l-24.929 2.81V6.365a2.37 2.37 0 0 0-1.812-2.294 2.4 2.4 0 0 0-2.692 1.183L19.781 58.402a2.345 2.345 0 0 0 .133 2.443 2.4 2.4 0 0 0 2.25 1.021l24.928-2.81v35.578a2.37 2.37 0 0 0 1.813 2.296c.194.047.388.07.58.07.869 0 1.69-.468 2.111-1.253l28.624-53.15a2.348 2.348 0 0 0-.134-2.443Z" clip-rule="evenodd"/>', v = {
|
|
17
|
-
width: f,
|
|
18
|
-
height: k,
|
|
19
|
-
block: p
|
|
20
|
-
}, E = (t) => /* @__PURE__ */ c.createElement(e, { alt: "Promote", content: v, ...t }), C = 15, Z = 15, b = '<path fill="currentColor" fill-rule="evenodd" d="M5.863 49.971c-3.518 3.745-3.835 8.974-.723 11.924L41.114 96c3.378 3.203 9.445 2.476 13.264-1.589L95.137 51.03c3.518-3.745 3.835-8.974.723-11.924L59.886 5c-3.378-3.203-9.445-2.476-13.264 1.589L5.862 49.97ZM53.325 64.76c.145.214.267.454.373.695.093.24.174.494.227.748.039.254.067.522.067.789 0 .254-.028.52-.067.775a5 5 0 0 1-.226.748c-.107.24-.228.481-.374.695a3.822 3.822 0 0 1-.493.615A4.015 4.015 0 0 1 50.004 71a3.991 3.991 0 0 1-2.827-1.176 4.062 4.062 0 0 1-1.173-2.833c0-1.056.428-2.098 1.173-2.833 1.481-1.497 4.16-1.497 5.655 0 .185.173.345.387.493.601ZM46 31.009a4.005 4.005 0 0 1 4-4.01c2.21 0 4 1.796 4 4.01v20.257a4.005 4.005 0 0 1-4 4.009c-2.209 0-4-1.796-4-4.01V31.01Z" clip-rule="evenodd"/>', g = {
|
|
21
|
-
width: C,
|
|
22
|
-
height: Z,
|
|
23
|
-
block: b
|
|
24
|
-
}, V = (t) => /* @__PURE__ */ c.createElement(e, { alt: "SquareAlert", content: g, ...t });
|
|
25
|
-
export {
|
|
26
|
-
A,
|
|
27
|
-
L as C,
|
|
28
|
-
M as I,
|
|
29
|
-
E as P,
|
|
30
|
-
V as S
|
|
31
|
-
};
|