infinity-ui-elements 1.7.13 → 1.8.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/Alert/Alert.d.ts +60 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.stories.d.ts +16 -0
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Counter/Counter.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.stories.d.ts +60 -60
- package/dist/components/IconButton/IconButton.d.ts +22 -0
- package/dist/components/IconButton/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +17 -0
- package/dist/components/IconButton/IconButton.stories.d.ts.map +1 -0
- package/dist/components/IconButton/index.d.ts +3 -0
- package/dist/components/IconButton/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +3 -3
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/SearchableDropdown/SearchableDropdown.stories.d.ts +74 -74
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/TabItem/TabItem.d.ts +1 -1
- package/dist/components/Table/tableVariants.d.ts +3 -3
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +930 -505
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +932 -503
- package/dist/index.js.map +1 -1
- package/dist/lib/icons.d.ts +3 -0
- package/dist/lib/icons.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const alertVariants: (props?: ({
|
|
3
|
+
emphasis?: "subtle" | "intense" | null | undefined;
|
|
4
|
+
intent?: "info" | "positive" | "negative" | "notice" | "neutral" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
7
|
+
/**
|
|
8
|
+
* The visual emphasis level of the alert
|
|
9
|
+
*/
|
|
10
|
+
emphasis?: "subtle" | "intense";
|
|
11
|
+
/**
|
|
12
|
+
* The intent/type of the alert
|
|
13
|
+
*/
|
|
14
|
+
intent?: "positive" | "negative" | "notice" | "info" | "neutral";
|
|
15
|
+
/**
|
|
16
|
+
* The title of the alert
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The body content of the alert
|
|
21
|
+
*/
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the alert should take full width
|
|
25
|
+
* When true, actions are placed to the right of the content
|
|
26
|
+
* When false, actions are placed below the content
|
|
27
|
+
*/
|
|
28
|
+
isFullWidth?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Callback fired when the close button is clicked
|
|
31
|
+
*/
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Custom icon to display. If not provided, an icon will be automatically selected based on intent
|
|
35
|
+
*/
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Action button text. If provided, a button will be automatically created based on the variant
|
|
39
|
+
*/
|
|
40
|
+
actionButtonText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Callback fired when the action button is clicked
|
|
43
|
+
*/
|
|
44
|
+
onActionButtonClick?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Action link to display
|
|
47
|
+
*/
|
|
48
|
+
actionLinkText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Callback fired when the action link is clicked
|
|
51
|
+
*/
|
|
52
|
+
onActionLinkClick?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Custom class name for the alert
|
|
55
|
+
*/
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export { Alert, alertVariants };
|
|
60
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,QAAA,MAAM,aAAa;;;mFA2ElB,CAAC;AAyJF,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsID,QAAA,MAAM,KAAK,mFAgKV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Alert } from "./Alert";
|
|
3
|
+
declare const meta: Meta<typeof Alert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Alert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllIntentsSubtle: Story;
|
|
8
|
+
export declare const AllIntentsSubtleFullWidth: Story;
|
|
9
|
+
export declare const AllIntentsIntense: Story;
|
|
10
|
+
export declare const AllIntentsIntenseFullWidth: Story;
|
|
11
|
+
export declare const WithoutActions: Story;
|
|
12
|
+
export declare const WithoutCloseButton: Story;
|
|
13
|
+
export declare const WithoutTitle: Story;
|
|
14
|
+
export declare const Interactive: Story;
|
|
15
|
+
export declare const CompleteShowcase: Story;
|
|
16
|
+
//# sourceMappingURL=Alert.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA0D5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAGpC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,KA2E9B,CAAC;AAGF,eAAO,MAAM,yBAAyB,EAAE,KA2EvC,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,KA2E/B,CAAC;AAGF,eAAO,MAAM,0BAA0B,EAAE,KA2ExC,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,KAchC,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,KAiB1B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KA2BzB,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,KAmT9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -4,7 +4,7 @@ type AvatarColor = "a1" | "a2" | "a3" | "a4" | "a5";
|
|
|
4
4
|
type AvatarAppearance = "default" | "inverse";
|
|
5
5
|
declare const avatarVariants: (props?: ({
|
|
6
6
|
color?: "a1" | "a2" | "a3" | "a4" | "a5" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "medium" | "small" | "xlarge" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
|
|
10
10
|
/**
|
|
@@ -2,8 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "light" | "filled" | null | undefined;
|
|
5
|
-
color?: "
|
|
6
|
-
size?: "
|
|
5
|
+
color?: "info" | "primary" | "positive" | "negative" | "notice" | "neutral" | null | undefined;
|
|
6
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const buttonVariants: (props?: ({
|
|
3
3
|
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
4
|
-
color?: "
|
|
5
|
-
size?: "
|
|
4
|
+
color?: "info" | "white" | "primary" | "positive" | "negative" | "notice" | "neutral" | null | undefined;
|
|
5
|
+
size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
|
|
6
6
|
isIconOnly?: boolean | null | undefined;
|
|
7
7
|
isLoading?: boolean | null | undefined;
|
|
8
8
|
isDisabled?: boolean | null | undefined;
|
|
@@ -10,7 +10,7 @@ declare const buttonVariants: (props?: ({
|
|
|
10
10
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
11
11
|
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
12
12
|
variant?: "primary" | "secondary" | "tertiary";
|
|
13
|
-
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral";
|
|
13
|
+
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | "white";
|
|
14
14
|
size?: "xsmall" | "small" | "medium" | "large";
|
|
15
15
|
isIconOnly?: boolean;
|
|
16
16
|
isLoading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,cAAc;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,cAAc;;;;;;;;mFAuTnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C,KAAK,CAAC,EACF,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,QAAA,MAAM,MAAM,uFAqEX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
declare const buttonGroupVariants: (props?: ({
|
|
4
4
|
variant?: "attached" | "separated" | null | undefined;
|
|
5
5
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
|
|
7
7
|
isFullWidth?: boolean | null | undefined;
|
|
8
8
|
isDisabled?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const checkboxVariants: (props?: ({
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
4
4
|
validationState?: "none" | "error" | null | undefined;
|
|
5
5
|
isChecked?: boolean | null | undefined;
|
|
6
6
|
isIndeterminate?: boolean | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const counterVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
5
5
|
color?: "primary" | "positive" | "negative" | "notice" | "neutral" | "information" | null | undefined;
|
|
6
6
|
emphasis?: "subtle" | "intense" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -4,7 +4,7 @@ declare const dividerVariants: (props?: ({
|
|
|
4
4
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
5
|
thickness?: "thick" | "thin" | "thinner" | "thicker" | null | undefined;
|
|
6
6
|
lineStyle?: "dashed" | "solid" | null | undefined;
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "normal" | "subtle" | "muted" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type DropdownMenuItem } from "./DropdownMenu";
|
|
3
3
|
declare const dropdownVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
export type DropdownItem = DropdownMenuItem;
|
|
7
7
|
export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
@@ -34,63 +34,23 @@ declare const meta: {
|
|
|
34
34
|
emptyIcon?: React.ReactNode;
|
|
35
35
|
disableFooter?: boolean | undefined;
|
|
36
36
|
showFooter?: boolean | undefined;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
37
|
+
dangerouslySetInnerHTML?: {
|
|
38
|
+
__html: string | TrustedHTML;
|
|
39
|
+
} | undefined | undefined;
|
|
41
40
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
42
|
-
accessKey?: string | undefined | undefined;
|
|
43
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
44
|
-
autoFocus?: boolean | undefined | undefined;
|
|
45
41
|
className?: string | undefined | undefined;
|
|
46
|
-
|
|
47
|
-
contextMenu?: string | undefined | undefined;
|
|
48
|
-
dir?: string | undefined | undefined;
|
|
49
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
50
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
51
|
-
hidden?: boolean | undefined | undefined;
|
|
42
|
+
color?: string | undefined | undefined;
|
|
52
43
|
id?: string | undefined | undefined;
|
|
53
44
|
lang?: string | undefined | undefined;
|
|
54
|
-
nonce?: string | undefined | undefined;
|
|
55
|
-
slot?: string | undefined | undefined;
|
|
56
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
57
45
|
style?: React.CSSProperties | undefined;
|
|
58
|
-
tabIndex?: number | undefined | undefined;
|
|
59
|
-
title?: string | undefined | undefined;
|
|
60
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
61
|
-
radioGroup?: string | undefined | undefined;
|
|
62
46
|
role?: React.AriaRole | undefined;
|
|
63
|
-
|
|
64
|
-
content?: string | undefined | undefined;
|
|
65
|
-
datatype?: string | undefined | undefined;
|
|
66
|
-
inlist?: any;
|
|
67
|
-
prefix?: string | undefined | undefined;
|
|
68
|
-
property?: string | undefined | undefined;
|
|
69
|
-
rel?: string | undefined | undefined;
|
|
70
|
-
resource?: string | undefined | undefined;
|
|
71
|
-
rev?: string | undefined | undefined;
|
|
72
|
-
typeof?: string | undefined | undefined;
|
|
73
|
-
vocab?: string | undefined | undefined;
|
|
74
|
-
autoCorrect?: string | undefined | undefined;
|
|
75
|
-
autoSave?: string | undefined | undefined;
|
|
76
|
-
itemProp?: string | undefined | undefined;
|
|
77
|
-
itemScope?: boolean | undefined | undefined;
|
|
78
|
-
itemType?: string | undefined | undefined;
|
|
79
|
-
itemID?: string | undefined | undefined;
|
|
80
|
-
itemRef?: string | undefined | undefined;
|
|
81
|
-
results?: number | undefined | undefined;
|
|
82
|
-
security?: string | undefined | undefined;
|
|
83
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
84
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
85
|
-
is?: string | undefined | undefined;
|
|
86
|
-
exportparts?: string | undefined | undefined;
|
|
87
|
-
part?: string | undefined | undefined;
|
|
47
|
+
tabIndex?: number | undefined | undefined;
|
|
88
48
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
89
|
-
"aria-atomic"?: (boolean | "
|
|
49
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
90
50
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
91
51
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
92
52
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
93
|
-
"aria-busy"?: (boolean | "
|
|
53
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
94
54
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
95
55
|
"aria-colcount"?: number | undefined | undefined;
|
|
96
56
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -101,46 +61,43 @@ declare const meta: {
|
|
|
101
61
|
"aria-describedby"?: string | undefined | undefined;
|
|
102
62
|
"aria-description"?: string | undefined | undefined;
|
|
103
63
|
"aria-details"?: string | undefined | undefined;
|
|
104
|
-
"aria-disabled"?: (boolean | "
|
|
64
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
105
65
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
106
66
|
"aria-errormessage"?: string | undefined | undefined;
|
|
107
|
-
"aria-expanded"?: (boolean | "
|
|
67
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
108
68
|
"aria-flowto"?: string | undefined | undefined;
|
|
109
|
-
"aria-grabbed"?: (boolean | "
|
|
69
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
110
70
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
111
|
-
"aria-hidden"?: (boolean | "
|
|
71
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
112
72
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
113
73
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
114
74
|
"aria-label"?: string | undefined | undefined;
|
|
115
75
|
"aria-labelledby"?: string | undefined | undefined;
|
|
116
76
|
"aria-level"?: number | undefined | undefined;
|
|
117
77
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
118
|
-
"aria-modal"?: (boolean | "
|
|
119
|
-
"aria-multiline"?: (boolean | "
|
|
120
|
-
"aria-multiselectable"?: (boolean | "
|
|
78
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
79
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
80
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
121
81
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
122
82
|
"aria-owns"?: string | undefined | undefined;
|
|
123
83
|
"aria-placeholder"?: string | undefined | undefined;
|
|
124
84
|
"aria-posinset"?: number | undefined | undefined;
|
|
125
85
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
126
|
-
"aria-readonly"?: (boolean | "
|
|
86
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
127
87
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
128
|
-
"aria-required"?: (boolean | "
|
|
88
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
129
89
|
"aria-roledescription"?: string | undefined | undefined;
|
|
130
90
|
"aria-rowcount"?: number | undefined | undefined;
|
|
131
91
|
"aria-rowindex"?: number | undefined | undefined;
|
|
132
92
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
133
93
|
"aria-rowspan"?: number | undefined | undefined;
|
|
134
|
-
"aria-selected"?: (boolean | "
|
|
94
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
135
95
|
"aria-setsize"?: number | undefined | undefined;
|
|
136
96
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
137
97
|
"aria-valuemax"?: number | undefined | undefined;
|
|
138
98
|
"aria-valuemin"?: number | undefined | undefined;
|
|
139
99
|
"aria-valuenow"?: number | undefined | undefined;
|
|
140
100
|
"aria-valuetext"?: string | undefined | undefined;
|
|
141
|
-
dangerouslySetInnerHTML?: {
|
|
142
|
-
__html: string | TrustedHTML;
|
|
143
|
-
} | undefined | undefined;
|
|
144
101
|
onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
145
102
|
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
146
103
|
onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -299,6 +256,49 @@ declare const meta: {
|
|
|
299
256
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
300
257
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
301
258
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
259
|
+
hidden?: boolean | undefined | undefined;
|
|
260
|
+
content?: string | undefined | undefined;
|
|
261
|
+
slot?: string | undefined | undefined;
|
|
262
|
+
title?: string | undefined | undefined;
|
|
263
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
264
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
265
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
266
|
+
accessKey?: string | undefined | undefined;
|
|
267
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
268
|
+
autoFocus?: boolean | undefined | undefined;
|
|
269
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
270
|
+
contextMenu?: string | undefined | undefined;
|
|
271
|
+
dir?: string | undefined | undefined;
|
|
272
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
273
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
274
|
+
nonce?: string | undefined | undefined;
|
|
275
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
276
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
277
|
+
radioGroup?: string | undefined | undefined;
|
|
278
|
+
about?: string | undefined | undefined;
|
|
279
|
+
datatype?: string | undefined | undefined;
|
|
280
|
+
inlist?: any;
|
|
281
|
+
prefix?: string | undefined | undefined;
|
|
282
|
+
property?: string | undefined | undefined;
|
|
283
|
+
rel?: string | undefined | undefined;
|
|
284
|
+
resource?: string | undefined | undefined;
|
|
285
|
+
rev?: string | undefined | undefined;
|
|
286
|
+
typeof?: string | undefined | undefined;
|
|
287
|
+
vocab?: string | undefined | undefined;
|
|
288
|
+
autoCorrect?: string | undefined | undefined;
|
|
289
|
+
autoSave?: string | undefined | undefined;
|
|
290
|
+
itemProp?: string | undefined | undefined;
|
|
291
|
+
itemScope?: boolean | undefined | undefined;
|
|
292
|
+
itemType?: string | undefined | undefined;
|
|
293
|
+
itemID?: string | undefined | undefined;
|
|
294
|
+
itemRef?: string | undefined | undefined;
|
|
295
|
+
results?: number | undefined | undefined;
|
|
296
|
+
security?: string | undefined | undefined;
|
|
297
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
298
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
299
|
+
is?: string | undefined | undefined;
|
|
300
|
+
exportparts?: string | undefined | undefined;
|
|
301
|
+
part?: string | undefined | undefined;
|
|
302
302
|
ref?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
303
303
|
key?: React.Key | null | undefined;
|
|
304
304
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type IconName } from "../../lib/icons";
|
|
3
|
+
declare const iconButtonVariants: (props?: ({
|
|
4
|
+
color?: "info" | "white" | "primary" | "positive" | "negative" | "notice" | "neutral" | null | undefined;
|
|
5
|
+
size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
|
|
6
|
+
isLoading?: boolean | null | undefined;
|
|
7
|
+
isDisabled?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
10
|
+
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | "white";
|
|
11
|
+
size?: "xsmall" | "small" | "medium" | "large";
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
/** Icon name from the icon registry */
|
|
16
|
+
icon?: IconName;
|
|
17
|
+
/** Custom icon element (ReactNode) - alternative to icon prop */
|
|
18
|
+
iconElement?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
export { IconButton, iconButtonVariants };
|
|
22
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,QAAA,MAAM,kBAAkB;;;;;mFAkCvB,CAAC;AAEF,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpE,KAAK,CAAC,EACF,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uCAAuC;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,iEAAiE;IACjE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,QAAA,MAAM,UAAU,2FAgGf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { IconButton } from "./IconButton";
|
|
3
|
+
declare const meta: Meta<typeof IconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Colors: Story;
|
|
8
|
+
export declare const Sizes: Story;
|
|
9
|
+
export declare const IconTypes: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
12
|
+
export declare const AllSizesAndColors: Story;
|
|
13
|
+
export declare const Playground: Story;
|
|
14
|
+
export declare const RealWorldExamples: Story;
|
|
15
|
+
export declare const AccessibilityExamples: Story;
|
|
16
|
+
export declare const AccessibilityViolations: Story;
|
|
17
|
+
//# sourceMappingURL=IconButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAoDjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,KAYpB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KA8CtB,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,KA4F/B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,KAuE/B,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,KAgDnC,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,KAsCrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const linkVariants: (props?: ({
|
|
3
3
|
type?: "anchor" | "action" | null | undefined;
|
|
4
|
-
color?: "
|
|
5
|
-
size?: "
|
|
4
|
+
color?: "info" | "white" | "primary" | "positive" | "negative" | "notice" | "neutral" | null | undefined;
|
|
5
|
+
size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
|
|
6
6
|
isIconOnly?: boolean | null | undefined;
|
|
7
7
|
isDisabled?: boolean | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "color"> {
|
|
10
10
|
type?: "anchor" | "action";
|
|
11
|
-
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral";
|
|
11
|
+
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | "white";
|
|
12
12
|
size?: "xsmall" | "small" | "medium" | "large";
|
|
13
13
|
isIconOnly?: boolean;
|
|
14
14
|
isDisabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,YAAY;;;;;;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,YAAY;;;;;;mFAqHjB,CAAC;AAEF,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,KAAK,CAAC,EACF,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED,QAAA,MAAM,IAAI,qFAkFT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const paginationVariants: (props?: ({
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
5
|
export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const radioVariants: (props?: ({
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
4
4
|
validationState?: "none" | "error" | null | undefined;
|
|
5
5
|
isChecked?: boolean | null | undefined;
|
|
6
6
|
isDisabled?: boolean | null | undefined;
|