welcome-ui 7.2.0 → 7.4.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/Breadcrumb.mjs +3 -2
- package/dist/Swiper.mjs +47 -45
- package/dist/Text.mjs +38 -27
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- 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/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 +1 -1
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Text/index.d.ts +2 -0
- 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/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/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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from './theme';
|
|
2
3
|
import { CreateWuiProps } from '../System';
|
|
3
4
|
import * as S from './styles';
|
|
4
5
|
type IconContent = {
|
|
@@ -9,7 +10,6 @@ type IconContent = {
|
|
|
9
10
|
viewBox?: string;
|
|
10
11
|
width?: number;
|
|
11
12
|
};
|
|
12
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
|
|
13
13
|
export interface IconOptions {
|
|
14
14
|
content?: IconContent;
|
|
15
15
|
name?: string;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ThemeValues } from '../../theme';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
xl: string;
|
|
7
|
-
xs: string;
|
|
8
|
-
xxl: string;
|
|
9
|
-
};
|
|
2
|
+
import { LiteralUnion } from '../../utils';
|
|
3
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
4
|
+
export type Size = LiteralUnion<IconSize, number | string>;
|
|
5
|
+
export type ThemeIcons = Record<IconSize, string>;
|
|
10
6
|
export declare const getIcons: ({ toRem }: ThemeValues) => ThemeIcons;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyledIconProps } from './styles';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
export type IconsFontProps = StyledIconProps;
|
|
4
|
-
export declare const IconsFontStyled: import('styled-components').StyledComponent<
|
|
4
|
+
export declare const IconsFontStyled: import('styled-components').StyledComponent<"i", import('@xstyled/system').Theme, StyledIconProps, never>;
|
|
5
5
|
type FormatIconJSX<S extends string> = S extends `${infer F}${infer R}` ? F extends '_' ? FormatIconJSX<Capitalize<R>> : `${F}${FormatIconJSX<R>}` : '';
|
|
6
6
|
declare const unicodeMap: {
|
|
7
7
|
actions: string;
|
|
@@ -4,4 +4,4 @@ export type StyledIconProps = {
|
|
|
4
4
|
name: keyof typeof unicodeMap;
|
|
5
5
|
size: IconOptions['size'];
|
|
6
6
|
};
|
|
7
|
-
export declare const Icon: import('styled-components').StyledComponent<
|
|
7
|
+
export declare const Icon: import('styled-components').StyledComponent<"i", import('@xstyled/system').Theme, StyledIconProps, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputTextOptions } from './index';
|
|
2
|
-
export declare const InputText: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, Pick<InputTextOptions, "
|
|
3
|
-
export declare const Wrapper: import('styled-components').StyledComponent<
|
|
2
|
+
export declare const InputText: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, Pick<InputTextOptions, "size" | "transparent" | "iconPlacement" | "isClearable" | "variant">, never>;
|
|
3
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -2,4 +2,4 @@ export declare const Label: import('styled-components').StyledComponent<"label",
|
|
|
2
2
|
required: boolean;
|
|
3
3
|
}, never>;
|
|
4
4
|
export declare const requiredStyles: import('styled-components').FlattenSimpleInterpolation;
|
|
5
|
-
export declare const Disabled: import('styled-components').StyledComponent<
|
|
5
|
+
export declare const Disabled: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Size } from './theme';
|
|
3
|
+
import { CreateWuiProps } from '../System';
|
|
4
4
|
export interface LoaderOptions {
|
|
5
5
|
color?: CSSObject['color'];
|
|
6
6
|
/** Predefined size xs, sm, md, lg or custom size */
|
|
@@ -8,4 +8,3 @@ export interface LoaderOptions {
|
|
|
8
8
|
}
|
|
9
9
|
export type LoaderProps = CreateWuiProps<'div', LoaderOptions>;
|
|
10
10
|
export declare const Loader: import('../System').CreateWuiComponent<"div", LoaderProps>;
|
|
11
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ThemeValues } from '../../theme';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
xs: string;
|
|
7
|
-
};
|
|
2
|
+
import { LiteralUnion } from '../../utils';
|
|
3
|
+
type LoaderSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type Size = LiteralUnion<LoaderSize, string | number>;
|
|
5
|
+
export type ThemeLoaders = Record<LoaderSize, string>;
|
|
8
6
|
export declare const getLoaders: ({ toRem }: ThemeValues) => ThemeLoaders;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Svg: import('styled-components').StyledComponent<
|
|
1
|
+
export declare const Svg: import('styled-components').StyledComponent<"svg", import('@xstyled/system').Theme, import('@xstyled/util').Props<import('@xstyled/system').Theme> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Assets: string & import('styled-components').StyledComponentBase<
|
|
1
|
+
export declare const Assets: string & import('styled-components').StyledComponentBase<"div", import('@xstyled/system').Theme, {}, never> & import('hoist-non-react-statics').NonReactStatics<never, {}> & {
|
|
2
2
|
AssetWithTitle: import('../../System').CreateWuiComponent<"div", {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
customContent?: JSX.Element | string;
|
|
@@ -9,9 +9,9 @@ export declare const Assets: string & import('styled-components').StyledComponen
|
|
|
9
9
|
Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
10
10
|
Iframe: ({ children }: {
|
|
11
11
|
children: JSX.Element;
|
|
12
|
-
}) => JSX.Element;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
13
|
Title: import('styled-components').StyledComponent<import('../../System').CreateWuiComponent<"p", import('../../Text').TextProps>, import('@xstyled/system').Theme, {
|
|
14
14
|
lines: 2;
|
|
15
15
|
variant: "h4";
|
|
16
|
-
}, "
|
|
16
|
+
}, "variant" | "lines">;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Iframe: import('styled-components').StyledComponent<
|
|
1
|
+
export declare const Iframe: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
3
|
-
export declare const Dialog: import('styled-components').StyledComponent<
|
|
3
|
+
export declare const Dialog: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
4
|
export declare const Title: import('styled-components').StyledComponent<import('../../System').CreateWuiComponent<"p", import('../../Text').TextProps>, import('@xstyled/system').Theme, {
|
|
5
5
|
lines: 2;
|
|
6
6
|
variant: "h4";
|
|
7
|
-
}, "
|
|
7
|
+
}, "variant" | "lines">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { CloseButtonProps } from '../CloseButton';
|
|
2
3
|
type CloseProps = CloseButtonProps & {
|
|
3
4
|
isOnHeader?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare const Close: ({ isOnHeader, ...rest }: CloseProps) => JSX.Element;
|
|
6
|
+
export declare const Close: ({ isOnHeader, ...rest }: CloseProps) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Size } from './theme';
|
|
2
3
|
import { As, CreateWuiProps } from '../System';
|
|
3
4
|
import { BoxProps } from '../Box';
|
|
4
5
|
import { ShapeProps } from '../Shape';
|
|
5
6
|
import * as Ariakit from '@ariakit/react';
|
|
6
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'auto';
|
|
7
7
|
export interface ModalOptions extends Omit<Ariakit.DialogOptions<'div'>, 'as'> {
|
|
8
8
|
ariaLabel: string;
|
|
9
9
|
children: React.ReactElement;
|
|
@@ -33,7 +33,7 @@ export declare const Modal: import('../System').CreateWuiComponent<"div", ModalP
|
|
|
33
33
|
Footer: import('../System').CreateWuiComponent<"div", import('./Footer').FooterProps>;
|
|
34
34
|
Cover: React.FC<ShapeProps>;
|
|
35
35
|
};
|
|
36
|
-
export declare const AssetModal: string & import('styled-components').StyledComponentBase<
|
|
36
|
+
export declare const AssetModal: string & import('styled-components').StyledComponentBase<"div", import('@xstyled/system').Theme, {}, never> & import('hoist-non-react-statics').NonReactStatics<never, {}> & {
|
|
37
37
|
AssetWithTitle: import('../System').CreateWuiComponent<"div", {
|
|
38
38
|
children: React.ReactNode;
|
|
39
39
|
customContent?: JSX.Element | string;
|
|
@@ -44,10 +44,10 @@ export declare const AssetModal: string & import('styled-components').StyledComp
|
|
|
44
44
|
Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
45
45
|
Iframe: ({ children }: {
|
|
46
46
|
children: JSX.Element;
|
|
47
|
-
}) => JSX.Element;
|
|
47
|
+
}) => React.JSX.Element;
|
|
48
48
|
Title: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"p", import('../Text').TextProps>, import('@xstyled/system').Theme, {
|
|
49
49
|
lines: 2;
|
|
50
50
|
variant: "h4";
|
|
51
|
-
}, "
|
|
51
|
+
}, "variant" | "lines">;
|
|
52
52
|
};
|
|
53
53
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../../theme';
|
|
3
|
-
type
|
|
3
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'auto';
|
|
4
4
|
export type ThemeModals = {
|
|
5
5
|
backdrop: CSSObject;
|
|
6
6
|
body: CSSObject;
|
|
@@ -9,9 +9,8 @@ export type ThemeModals = {
|
|
|
9
9
|
footer: CSSObject;
|
|
10
10
|
gutter: string;
|
|
11
11
|
header: CSSObject;
|
|
12
|
-
sizes: Record<
|
|
12
|
+
sizes: Record<Size, {
|
|
13
13
|
width?: string;
|
|
14
14
|
}>;
|
|
15
15
|
};
|
|
16
16
|
export declare const getModals: (theme: ThemeValues) => ThemeModals;
|
|
17
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Pagination: import('styled-components').StyledComponent<
|
|
2
|
-
export declare const List: import('styled-components').StyledComponent<
|
|
1
|
+
export declare const Pagination: import('styled-components').StyledComponent<"nav", import('@xstyled/system').Theme, import('@xstyled/util').Props<import('@xstyled/system').Theme> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
2
|
+
export declare const List: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
|
|
3
3
|
export declare const Item: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
4
|
-
export declare const Dots: import('styled-components').StyledComponent<
|
|
4
|
+
export declare const Dots: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
5
5
|
export declare const abstractLinkStyle: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<import('@xstyled/system').Theme>>;
|
|
6
6
|
export declare const ArrowLink: import('styled-components').StyledComponent<"a", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
7
7
|
export declare const PageLink: import('styled-components').StyledComponent<"a", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { UsePopover } from './usePopover';
|
|
2
3
|
type ArrowProps = {
|
|
3
4
|
store: UsePopover;
|
|
4
5
|
};
|
|
5
|
-
export declare const Arrow: ({ store }: ArrowProps) => JSX.Element;
|
|
6
|
+
export declare const Arrow: ({ store }: ArrowProps) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { UsePopover, UsePopoverHover } from './usePopover';
|
|
2
3
|
import { PopoverProps } from './Popover';
|
|
3
4
|
export interface ContentOptions {
|
|
@@ -6,4 +7,4 @@ export interface ContentOptions {
|
|
|
6
7
|
onClose?: () => void;
|
|
7
8
|
store: UsePopover | UsePopoverHover;
|
|
8
9
|
}
|
|
9
|
-
export declare const Content: ({ children, onClose, store }: ContentOptions) => JSX.Element;
|
|
10
|
+
export declare const Content: ({ children, onClose, store }: ContentOptions) => React.JSX.Element;
|
|
@@ -8,7 +8,7 @@ export interface PopoverOptions extends Ariakit.PopoverProps {
|
|
|
8
8
|
}
|
|
9
9
|
export type PopoverProps = CreateWuiProps<'div', PopoverOptions>;
|
|
10
10
|
export declare const Popover: import('../System').CreateWuiComponent<"div", PopoverProps> & {
|
|
11
|
-
Content: import('styled-components').StyledComponent<
|
|
12
|
-
Title: import('styled-components').StyledComponent<
|
|
11
|
+
Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
12
|
+
Title: import('styled-components').StyledComponent<"h6", import('@xstyled/system').Theme, {}, never>;
|
|
13
13
|
Trigger: import('../System').CreateWuiComponent<"button", import('./Trigger').PopoverTriggerProps>;
|
|
14
14
|
};
|
|
@@ -8,7 +8,7 @@ export interface PopoverHoverOptions extends Ariakit.HovercardProps {
|
|
|
8
8
|
}
|
|
9
9
|
export type PopoverHoverProps = CreateWuiProps<'div', PopoverHoverOptions>;
|
|
10
10
|
export declare const PopoverHover: import('../System').CreateWuiComponent<"div", PopoverHoverProps> & {
|
|
11
|
-
Content: import('styled-components').StyledComponent<
|
|
12
|
-
Title: import('styled-components').StyledComponent<
|
|
11
|
+
Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
12
|
+
Title: import('styled-components').StyledComponent<"h6", import('@xstyled/system').Theme, {}, never>;
|
|
13
13
|
Trigger: import('../System').CreateWuiComponent<"button", import('./Trigger').PopoverHoverTriggerProps>;
|
|
14
14
|
};
|
|
@@ -3,8 +3,8 @@ export declare const Arrow: import('styled-components').StyledComponent<(props:
|
|
|
3
3
|
export declare const ArrowItem: import('styled-components').StyledComponent<"svg", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
4
4
|
$transform: string;
|
|
5
5
|
}, never>;
|
|
6
|
-
export declare const Content: import('styled-components').StyledComponent<
|
|
7
|
-
export declare const Title: import('styled-components').StyledComponent<
|
|
6
|
+
export declare const Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
7
|
+
export declare const Title: import('styled-components').StyledComponent<"h6", import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
export declare const Popover: import('styled-components').StyledComponent<(props: Ariakit.PopoverProps<"div">) => import("react/jsx-runtime").JSX.Element | null, import('@xstyled/system').Theme, {
|
|
9
9
|
$withCloseButton: boolean;
|
|
10
10
|
}, never>;
|
|
@@ -2,6 +2,6 @@ import { RadioProps } from './index';
|
|
|
2
2
|
import * as Ariakit from '@ariakit/react';
|
|
3
3
|
export declare const Radio: import('styled-components').StyledComponent<(props: Ariakit.RadioProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, import('@xstyled/system').Theme, RadioProps, never>;
|
|
4
4
|
export declare const Label: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"label", import('../Label').LabelProps>, import('@xstyled/system').Theme, {}, never>;
|
|
5
|
-
export declare const Input: import('styled-components').StyledComponent<
|
|
5
|
+
export declare const Input: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
6
6
|
export declare const Wrapper: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Box').BoxProps>, import('@xstyled/system').Theme, {}, never>;
|
|
7
|
-
export declare const LabelWithHint: import('styled-components').StyledComponent<
|
|
7
|
+
export declare const LabelWithHint: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WuiProps } from '../System';
|
|
2
2
|
import * as Ariakit from '@ariakit/react';
|
|
3
3
|
export declare const Radio: import('styled-components').StyledComponent<(props: Ariakit.RadioProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, import('@xstyled/system').Theme, {}, never>;
|
|
4
|
-
export declare const Label: import('styled-components').StyledComponent<
|
|
4
|
+
export declare const Label: import('styled-components').StyledComponent<"label", import('@xstyled/system').Theme, {
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
disabledIcon?: React.ReactElement;
|
|
@@ -14,5 +14,5 @@ export declare const Label: import('styled-components').StyledComponent<string,
|
|
|
14
14
|
transparent?: boolean;
|
|
15
15
|
variant: "danger" | "success" | "warning";
|
|
16
16
|
}>, never>;
|
|
17
|
-
export declare const Input: import('styled-components').StyledComponent<
|
|
18
|
-
export declare const Content: import('styled-components').StyledComponent<
|
|
17
|
+
export declare const Input: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
18
|
+
export declare const Content: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -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>;
|
|
@@ -11,4 +11,4 @@ export interface TagOptions {
|
|
|
11
11
|
}
|
|
12
12
|
export type TagProps = CreateWuiProps<'div', TagOptions>;
|
|
13
13
|
export declare const Tag: import('../System').CreateWuiComponent<"div", TagProps>;
|
|
14
|
-
export declare const StyledTag: import('styled-components').StyledComponent<
|
|
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>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { CreateWuiProps } from '../System';
|
|
2
3
|
declare const TAG_NAMES: {
|
|
3
4
|
h0: string;
|
|
@@ -19,6 +20,7 @@ export interface TextOptions {
|
|
|
19
20
|
lines?: number;
|
|
20
21
|
variant?: Variant;
|
|
21
22
|
withDash?: boolean;
|
|
23
|
+
wordBreak?: CSSProperties['wordBreak'];
|
|
22
24
|
}
|
|
23
25
|
export type TextProps = CreateWuiProps<'p', TextOptions>;
|
|
24
26
|
export declare const Text: import('../System').CreateWuiComponent<"p", TextProps>;
|
|
@@ -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
|
/**
|
|
@@ -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 {};
|
|
@@ -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;
|