@midas-ds/components 1.0.2
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/Breadcrumbs.css +1 -0
- package/Button-CCevm2s3.js +183 -0
- package/Button.css +1 -0
- package/ButtonGroup.css +1 -0
- package/CHANGELOG.md +76 -0
- package/Card.css +1 -0
- package/Checkbox-CllWDBxF.js +405 -0
- package/Checkbox.css +1 -0
- package/Collection-B3xUVWPF.js +483 -0
- package/ComboBox.css +1 -0
- package/DatePicker.css +1 -0
- package/Dialog-CLTyYwkS.js +1889 -0
- package/DragAndDrop-OTN7La7U.js +42 -0
- package/Dropdown.css +1 -0
- package/FileUpload.css +1 -0
- package/Flex.css +1 -0
- package/Flex.module-CpoxBzQX.js +37 -0
- package/FocusScope-BR0SJ-cZ.js +512 -0
- package/Form-DXLoQL91.js +240 -0
- package/Grid.css +1 -0
- package/Grid.module-Ia0e9Dix.js +36 -0
- package/Group-DPMuN3h8.js +44 -0
- package/Hidden-BQWDvze4.js +37 -0
- package/InfoBanner.css +1 -0
- package/Label-C18A_4Z5.js +69 -0
- package/Layout.css +1 -0
- package/Link-BU1h3K2a.js +77 -0
- package/Link.css +1 -0
- package/LinkButton.css +1 -0
- package/ListBox-D21tdwTs.js +463 -0
- package/ListKeyboardDelegate-DxMjfMsI.js +172 -0
- package/Logo.css +1 -0
- package/Modal.css +1 -0
- package/MultiSelect.css +1 -0
- package/PressResponder-DP8ZDNGy.js +31 -0
- package/README.md +7 -0
- package/RSPContexts-EOiWkKOf.js +11 -0
- package/Radio.css +1 -0
- package/SearchField.css +1 -0
- package/Select.css +1 -0
- package/SelectionManager-D4WtKtey.js +988 -0
- package/Separator-DLUHK9vv.js +48 -0
- package/Spinner.css +1 -0
- package/Table.css +1 -0
- package/Tabs.css +1 -0
- package/Tag-CEd6WWSc.js +725 -0
- package/Tag.css +1 -0
- package/Text-DGLaY3HR.js +17 -0
- package/TextArea.css +1 -0
- package/TextField-C_hq9WeT.js +226 -0
- package/TextField.css +1 -0
- package/TextField.module-Cwq1FAm7.js +141 -0
- package/Toast.css +1 -0
- package/VisuallyHidden-B_XzVvlX.js +39 -0
- package/accordion/Accordion.d.ts +13 -0
- package/accordion/AccordionContent.d.ts +3 -0
- package/accordion/AccordionItem.d.ts +3 -0
- package/accordion/AccordionTagContext.d.ts +3 -0
- package/accordion/AccordionTrigger.d.ts +3 -0
- package/accordion/index.d.ts +5 -0
- package/breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/breadcrumbs/index.d.ts +1 -0
- package/button/Button.d.ts +41 -0
- package/button/ButtonGroup.d.ts +12 -0
- package/button/index.d.ts +2 -0
- package/card/Card.d.ts +34 -0
- package/card/index.d.ts +1 -0
- package/checkbox/Checkbox.d.ts +2 -0
- package/checkbox/CheckboxGroup.d.ts +10 -0
- package/checkbox/index.d.ts +2 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/chevron-right-DBMc9VMi.js +23 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/combobox/ComboBox.d.ts +12 -0
- package/combobox/index.d.ts +1 -0
- package/context-ScOIq_Gu.js +80 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-picker/DatePicker.d.ts +14 -0
- package/date-picker/index.d.ts +2 -0
- package/dropdown/Dropdown.d.ts +8 -0
- package/dropdown/index.d.ts +1 -0
- package/file-upload/FileUpload.d.ts +11 -0
- package/file-upload/index.d.ts +1 -0
- package/flex/Flex.d.ts +17 -0
- package/flex/FlexItem.d.ts +15 -0
- package/flex/index.d.ts +2 -0
- package/grid/Grid.d.ts +16 -0
- package/grid/GridItem.d.ts +7 -0
- package/grid/index.d.ts +2 -0
- package/index-CEg5vZQH.js +132 -0
- package/index-CgfokhRq.js +674 -0
- package/index-CorR1LBD.js +3122 -0
- package/index-Dl1Q-tbj.js +26984 -0
- package/index.css +1 -0
- package/index.d.ts +29 -0
- package/index.js +114 -0
- package/index10.js +4 -0
- package/index11.js +5 -0
- package/index12.js +4 -0
- package/index13.js +4 -0
- package/index14.js +4 -0
- package/index15.js +6 -0
- package/index16.js +6 -0
- package/index17.js +6 -0
- package/index18.js +4 -0
- package/index19.js +6 -0
- package/index2.js +8 -0
- package/index20.js +6 -0
- package/index21.js +4 -0
- package/index22.js +5 -0
- package/index23.js +5 -0
- package/index24.js +5 -0
- package/index25.js +6 -0
- package/index26.js +6 -0
- package/index27.js +6 -0
- package/index28.js +4 -0
- package/index29.js +12 -0
- package/index3.js +8 -0
- package/index30.js +20 -0
- package/index31.js +22 -0
- package/index32.js +14 -0
- package/index33.js +11 -0
- package/index34.js +31 -0
- package/index35.js +8 -0
- package/index36.js +9 -0
- package/index37.js +19 -0
- package/index38.js +9 -0
- package/index39.js +9 -0
- package/index4.js +4 -0
- package/index40.js +16 -0
- package/index41.js +16 -0
- package/index42.js +31 -0
- package/index43.js +16 -0
- package/index44.js +6 -0
- package/index45.js +53 -0
- package/index46.js +18 -0
- package/index47.js +27 -0
- package/index48.js +18 -0
- package/index49.js +21 -0
- package/index5.js +5 -0
- package/index50.js +49 -0
- package/index51.js +5 -0
- package/index52.js +25 -0
- package/index53.js +18 -0
- package/index54.js +9 -0
- package/index55.js +25 -0
- package/index56.js +18 -0
- package/index57.js +11 -0
- package/index58.js +12 -0
- package/index59.js +15 -0
- package/index6.js +4 -0
- package/index60.js +9 -0
- package/index61.js +9 -0
- package/index62.js +19 -0
- package/index63.js +22 -0
- package/index64.js +61 -0
- package/index65.js +15 -0
- package/index66.js +11 -0
- package/index67.js +63 -0
- package/index68.js +85 -0
- package/index69.js +74 -0
- package/index7.js +9 -0
- package/index70.js +24 -0
- package/index71.js +69 -0
- package/index72.js +80 -0
- package/index73.js +140 -0
- package/index74.js +70 -0
- package/index75.js +42 -0
- package/index76.js +82 -0
- package/index77.js +71 -0
- package/index78.js +104 -0
- package/index79.js +274 -0
- package/index8.js +4 -0
- package/index80.js +724 -0
- package/index81.js +491 -0
- package/index82.js +317 -0
- package/index83.js +391 -0
- package/index84.js +254 -0
- package/index85.js +1364 -0
- package/index86.js +1009 -0
- package/index87.js +388 -0
- package/index88.js +2105 -0
- package/index89.js +2371 -0
- package/index9.js +5 -0
- package/index90.js +6834 -0
- package/index91.js +17 -0
- package/index92.js +14 -0
- package/index93.js +6 -0
- package/index94.js +9 -0
- package/info-banner/InfoBanner.d.ts +21 -0
- package/info-banner/index.d.ts +1 -0
- package/intlStrings-Cd44R5hT.js +278 -0
- package/layout/Layout.d.ts +51 -0
- package/layout/index.d.ts +1 -0
- package/link/Link.d.ts +13 -0
- package/link/index.d.ts +1 -0
- package/link-button/LinkButton.d.ts +18 -0
- package/link-button/index.d.ts +1 -0
- package/logo/Logo.d.ts +16 -0
- package/logo/index.d.ts +1 -0
- package/modal/Modal.d.ts +13 -0
- package/modal/index.d.ts +1 -0
- package/multi-select/MultiSelect.d.ts +28 -0
- package/multi-select/index.d.ts +1 -0
- package/package.json +29 -0
- package/radio/Radio.d.ts +20 -0
- package/radio/index.d.ts +1 -0
- package/react.esm-D8HpDGKP.js +11060 -0
- package/search-field/SearchField.d.ts +13 -0
- package/search-field/index.d.ts +1 -0
- package/select/Select.d.ts +11 -0
- package/select/index.d.ts +1 -0
- package/spinner/Spinner.d.ts +11 -0
- package/spinner/index.d.ts +1 -0
- package/table/Table.d.ts +12 -0
- package/table/index.d.ts +1 -0
- package/tabs/Tabs.d.ts +12 -0
- package/tabs/index.d.ts +1 -0
- package/tag/Tag.d.ts +11 -0
- package/tag/index.d.ts +1 -0
- package/textarea/TextArea.d.ts +20 -0
- package/textarea/index.d.ts +1 -0
- package/textfield/TextField.d.ts +16 -0
- package/textfield/index.d.ts +3 -0
- package/theme/index.d.ts +138 -0
- package/theme/tokens.d.ts +135 -0
- package/toast/Toast.d.ts +25 -0
- package/toast/index.d.ts +1 -0
- package/tokens-CjXmpXTi.js +160 -0
- package/triangle-alert-1OYl9KWz.js +56 -0
- package/useControlledState-S_TYcV_c.js +45 -0
- package/useDescription-D4_zk_sA.js +32 -0
- package/useFilter-BnJDBCkt.js +35 -0
- package/useFocusRing-D97-G3fT.js +1324 -0
- package/useFocusable-C-N9wcwm.js +56 -0
- package/useGridSelectionCheckbox-i1rsjlC-.js +22 -0
- package/useHasTabbableChild-DeuCnGGv.js +34 -0
- package/useHighlightSelectionDescription-JVx2MW_e.js +552 -0
- package/useListState-DSOTbsL3.js +119 -0
- package/useLocalizedStringFormatter-DVCAZqcL.js +96 -0
- package/useSingleSelectListState-CmX9_L5H.js +34 -0
- package/useUpdateEffect-Dtz-i14F.js +12 -0
- package/x-JK7i-TQC.js +14 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface SearchFieldProps extends AriaSearchFieldProps {
|
|
4
|
+
/** Placeholder text */
|
|
5
|
+
placeholder: string;
|
|
6
|
+
/**
|
|
7
|
+
* Text displayed on the 'search' button
|
|
8
|
+
* @default
|
|
9
|
+
* 'Sök'
|
|
10
|
+
*/
|
|
11
|
+
buttonText?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SearchField: React.FC<SearchFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchField } from './SearchField';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ListBoxItemProps, SelectProps as AriaSelectProps, ValidationResult } from 'react-aria-components';
|
|
3
|
+
export interface SelectProps<T extends object> extends Omit<AriaSelectProps<T>, 'children'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
7
|
+
items?: Iterable<T>;
|
|
8
|
+
children: React.ReactNode | ((item: T) => React.ReactNode);
|
|
9
|
+
}
|
|
10
|
+
export declare function Select<T extends object>({ label, description, errorMessage, children, items, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Item(props: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from './Spinner';
|
package/table/Table.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RowProps, TableHeaderProps, ColumnProps, TableProps as AriaTableProps, CellProps, TableBody } from 'react-aria-components';
|
|
2
|
+
export interface TableProps<T> extends AriaTableProps {
|
|
3
|
+
narrow?: boolean;
|
|
4
|
+
striped?: boolean;
|
|
5
|
+
rows: T[];
|
|
6
|
+
}
|
|
7
|
+
export declare const Table: <T extends object>({ narrow, striped, ...rest }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TableHeader: <T extends object>({ columns, children }: TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Row: <T extends object>({ id, columns, children, ...rest }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Column: ({ children, ...rest }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const Cell: ({ ...rest }: CellProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { TableBody };
|
package/table/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table, TableHeader, TableBody, Row, Cell, Column } from './Table';
|
package/tabs/Tabs.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TabsProps<T extends string> {
|
|
3
|
+
/** An array of tab titles */
|
|
4
|
+
tabs: T[];
|
|
5
|
+
/** Lable for accecibility */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Choose another than the first tab to be selected by default. Name must match one of the tabs */
|
|
8
|
+
defaultSelected?: T;
|
|
9
|
+
/** Amount of children must match the amount of tabs */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tabs: <T extends string>({ tabs, label, defaultSelected, children }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/tabs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from './Tabs';
|
package/tag/Tag.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TagGroupProps as AriaTagGroupProps, TagProps as AriaTagProps } from 'react-aria-components';
|
|
3
|
+
export interface TagGroupProp extends AriaTagGroupProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface TagProps extends AriaTagProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
dismissable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const TagGroup: React.FC<TagGroupProp>;
|
|
11
|
+
export declare const Tag: React.FC<TagProps>;
|
package/tag/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag, TagGroup } from './Tag';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValidationResult, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface TextAreaProps extends AriaTextFieldProps {
|
|
4
|
+
/** Specify label displayed above the TextArea*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Specify description displayed below the label */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Set number of rows for the TextArea */
|
|
9
|
+
rows?: number;
|
|
10
|
+
/** Set number of characters that are allowed before the TextArea is put in an invalid state */
|
|
11
|
+
maxCharacters?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to show the character counter or not
|
|
14
|
+
* @default
|
|
15
|
+
* false
|
|
16
|
+
*/
|
|
17
|
+
showCounter?: boolean;
|
|
18
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
19
|
+
}
|
|
20
|
+
export declare const TextArea: React.FC<TextAreaProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextArea } from './TextArea';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { TextFieldProps as AriaTextFieldProps, ValidationResult } from 'react-aria-components';
|
|
3
|
+
export interface TextFieldProps extends AriaTextFieldProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
errorMessage?: string | ((validation: ValidationResult) => string) | undefined;
|
|
8
|
+
validationType?: 'ssn' | RegExp;
|
|
9
|
+
maxCharacters?: number;
|
|
10
|
+
showCounter?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TextField: React.FC<TextFieldProps>;
|
|
13
|
+
type InputWrapperProps = Pick<TextFieldProps, 'label' | 'description' | 'errorMessage' | 'children'>;
|
|
14
|
+
export declare const InputWrapper: ({ label, description, errorMessage, children }: InputWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const ssnRegEx: RegExp;
|
|
16
|
+
export {};
|
package/theme/index.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export * from './tokens';
|
|
2
|
+
export declare const theme: {
|
|
3
|
+
baseColors: {
|
|
4
|
+
white: string;
|
|
5
|
+
black: string;
|
|
6
|
+
gray10: string;
|
|
7
|
+
gray20: string;
|
|
8
|
+
gray30: string;
|
|
9
|
+
gray40: string;
|
|
10
|
+
gray50: string;
|
|
11
|
+
gray60: string;
|
|
12
|
+
gray70: string;
|
|
13
|
+
gray80: string;
|
|
14
|
+
gray90: string;
|
|
15
|
+
gray100: string;
|
|
16
|
+
gray130: string;
|
|
17
|
+
gray150: string;
|
|
18
|
+
red10: string;
|
|
19
|
+
red20: string;
|
|
20
|
+
red30: string;
|
|
21
|
+
red40: string;
|
|
22
|
+
red50: string;
|
|
23
|
+
red60: string;
|
|
24
|
+
red70: string;
|
|
25
|
+
red80: string;
|
|
26
|
+
red90: string;
|
|
27
|
+
red100: string;
|
|
28
|
+
red130: string;
|
|
29
|
+
red150: string;
|
|
30
|
+
blue10: string;
|
|
31
|
+
blue20: string;
|
|
32
|
+
blue30: string;
|
|
33
|
+
blue40: string;
|
|
34
|
+
blue50: string;
|
|
35
|
+
blue60: string;
|
|
36
|
+
blue70: string;
|
|
37
|
+
blue80: string;
|
|
38
|
+
blue90: string;
|
|
39
|
+
blue100: string;
|
|
40
|
+
blue130: string;
|
|
41
|
+
blue150: string;
|
|
42
|
+
};
|
|
43
|
+
buttonColors: {
|
|
44
|
+
outline: string;
|
|
45
|
+
primaryBackground: string;
|
|
46
|
+
primaryText: string;
|
|
47
|
+
primaryHover: string;
|
|
48
|
+
primaryFocus: string;
|
|
49
|
+
primaryActive: string;
|
|
50
|
+
secondaryBackground: string;
|
|
51
|
+
secondaryText: string;
|
|
52
|
+
secondaryHover: string;
|
|
53
|
+
secondaryActive: string;
|
|
54
|
+
};
|
|
55
|
+
inputColor: {
|
|
56
|
+
inputText: string;
|
|
57
|
+
};
|
|
58
|
+
signalColors: {
|
|
59
|
+
signalGreen10: string;
|
|
60
|
+
signalGreen100: string;
|
|
61
|
+
signalBlue10: string;
|
|
62
|
+
signalBlue100: string;
|
|
63
|
+
signalYellow10: string;
|
|
64
|
+
signalYellow100: string;
|
|
65
|
+
signalRed10: string;
|
|
66
|
+
signalRed100: string;
|
|
67
|
+
signalRed130: string;
|
|
68
|
+
signalRed150: string;
|
|
69
|
+
};
|
|
70
|
+
borderRadius: {
|
|
71
|
+
sRadius: string;
|
|
72
|
+
mRadius: string;
|
|
73
|
+
};
|
|
74
|
+
borderWidths: {
|
|
75
|
+
xsWidth: string;
|
|
76
|
+
sWidth: string;
|
|
77
|
+
mWidth: string;
|
|
78
|
+
};
|
|
79
|
+
fontWeights: {
|
|
80
|
+
lightWeight: string;
|
|
81
|
+
regularWeight: string;
|
|
82
|
+
mediumWeight: string;
|
|
83
|
+
semiBoldWeight: string;
|
|
84
|
+
boldWeight: string;
|
|
85
|
+
blackWeight: string;
|
|
86
|
+
};
|
|
87
|
+
fontSizes: {
|
|
88
|
+
desktopSize: string;
|
|
89
|
+
mobileSize: string;
|
|
90
|
+
largeSize: string;
|
|
91
|
+
inputNormalSize: string;
|
|
92
|
+
inputMessageSize: string;
|
|
93
|
+
inputLabelSize: string;
|
|
94
|
+
inputDescriptionSize: string;
|
|
95
|
+
};
|
|
96
|
+
midasColors: {
|
|
97
|
+
logoPrimary: string;
|
|
98
|
+
logoSecondary: string;
|
|
99
|
+
textPrimary: string;
|
|
100
|
+
textSecondary: string;
|
|
101
|
+
textTertiary: string;
|
|
102
|
+
link: string;
|
|
103
|
+
linkVisited: string;
|
|
104
|
+
backgroundPrimary: string;
|
|
105
|
+
backgroundSecondary: string;
|
|
106
|
+
backgroundFooter1: string;
|
|
107
|
+
backgroundFooter2: string;
|
|
108
|
+
backgroundInfo: string;
|
|
109
|
+
backgroundImportant: string;
|
|
110
|
+
borderPrimary: string;
|
|
111
|
+
borderSecondary: string;
|
|
112
|
+
borderFocusOuter: string;
|
|
113
|
+
borderFocusInner: string;
|
|
114
|
+
iconPrimary: string;
|
|
115
|
+
iconInverted: string;
|
|
116
|
+
};
|
|
117
|
+
midasTransitions: {
|
|
118
|
+
slowTransition: string;
|
|
119
|
+
normalTransition: string;
|
|
120
|
+
fastTransition: string;
|
|
121
|
+
};
|
|
122
|
+
breakpoints: {
|
|
123
|
+
smBreakpoint: string;
|
|
124
|
+
mdBreakpoint: string;
|
|
125
|
+
lgBreakpoint: string;
|
|
126
|
+
xlBreakpoint: string;
|
|
127
|
+
};
|
|
128
|
+
accessibility: {
|
|
129
|
+
forcedColorsMode: string;
|
|
130
|
+
prefersReducedMotion: string;
|
|
131
|
+
};
|
|
132
|
+
font: {
|
|
133
|
+
display: string;
|
|
134
|
+
};
|
|
135
|
+
boxShadow: {
|
|
136
|
+
focus: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const baseColors: {
|
|
2
|
+
white: string;
|
|
3
|
+
black: string;
|
|
4
|
+
gray10: string;
|
|
5
|
+
gray20: string;
|
|
6
|
+
gray30: string;
|
|
7
|
+
gray40: string;
|
|
8
|
+
gray50: string;
|
|
9
|
+
gray60: string;
|
|
10
|
+
gray70: string;
|
|
11
|
+
gray80: string;
|
|
12
|
+
gray90: string;
|
|
13
|
+
gray100: string;
|
|
14
|
+
gray130: string;
|
|
15
|
+
gray150: string;
|
|
16
|
+
red10: string;
|
|
17
|
+
red20: string;
|
|
18
|
+
red30: string;
|
|
19
|
+
red40: string;
|
|
20
|
+
red50: string;
|
|
21
|
+
red60: string;
|
|
22
|
+
red70: string;
|
|
23
|
+
red80: string;
|
|
24
|
+
red90: string;
|
|
25
|
+
red100: string;
|
|
26
|
+
red130: string;
|
|
27
|
+
red150: string;
|
|
28
|
+
blue10: string;
|
|
29
|
+
blue20: string;
|
|
30
|
+
blue30: string;
|
|
31
|
+
blue40: string;
|
|
32
|
+
blue50: string;
|
|
33
|
+
blue60: string;
|
|
34
|
+
blue70: string;
|
|
35
|
+
blue80: string;
|
|
36
|
+
blue90: string;
|
|
37
|
+
blue100: string;
|
|
38
|
+
blue130: string;
|
|
39
|
+
blue150: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const buttonColors: {
|
|
42
|
+
outline: string;
|
|
43
|
+
primaryBackground: string;
|
|
44
|
+
primaryText: string;
|
|
45
|
+
primaryHover: string;
|
|
46
|
+
primaryFocus: string;
|
|
47
|
+
primaryActive: string;
|
|
48
|
+
secondaryBackground: string;
|
|
49
|
+
secondaryText: string;
|
|
50
|
+
secondaryHover: string;
|
|
51
|
+
secondaryActive: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const inputColor: {
|
|
54
|
+
inputText: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const signalColors: {
|
|
57
|
+
signalGreen10: string;
|
|
58
|
+
signalGreen100: string;
|
|
59
|
+
signalBlue10: string;
|
|
60
|
+
signalBlue100: string;
|
|
61
|
+
signalYellow10: string;
|
|
62
|
+
signalYellow100: string;
|
|
63
|
+
signalRed10: string;
|
|
64
|
+
signalRed100: string;
|
|
65
|
+
signalRed130: string;
|
|
66
|
+
signalRed150: string;
|
|
67
|
+
};
|
|
68
|
+
export declare const borderRadius: {
|
|
69
|
+
sRadius: string;
|
|
70
|
+
mRadius: string;
|
|
71
|
+
};
|
|
72
|
+
export declare const borderWidths: {
|
|
73
|
+
xsWidth: string;
|
|
74
|
+
sWidth: string;
|
|
75
|
+
mWidth: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const fontWeights: {
|
|
78
|
+
lightWeight: string;
|
|
79
|
+
regularWeight: string;
|
|
80
|
+
mediumWeight: string;
|
|
81
|
+
semiBoldWeight: string;
|
|
82
|
+
boldWeight: string;
|
|
83
|
+
blackWeight: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const fontSizes: {
|
|
86
|
+
desktopSize: string;
|
|
87
|
+
mobileSize: string;
|
|
88
|
+
largeSize: string;
|
|
89
|
+
inputNormalSize: string;
|
|
90
|
+
inputMessageSize: string;
|
|
91
|
+
inputLabelSize: string;
|
|
92
|
+
inputDescriptionSize: string;
|
|
93
|
+
};
|
|
94
|
+
export declare const midasColors: {
|
|
95
|
+
logoPrimary: string;
|
|
96
|
+
logoSecondary: string;
|
|
97
|
+
textPrimary: string;
|
|
98
|
+
textSecondary: string;
|
|
99
|
+
textTertiary: string;
|
|
100
|
+
link: string;
|
|
101
|
+
linkVisited: string;
|
|
102
|
+
backgroundPrimary: string;
|
|
103
|
+
backgroundSecondary: string;
|
|
104
|
+
backgroundFooter1: string;
|
|
105
|
+
backgroundFooter2: string;
|
|
106
|
+
backgroundInfo: string;
|
|
107
|
+
backgroundImportant: string;
|
|
108
|
+
borderPrimary: string;
|
|
109
|
+
borderSecondary: string;
|
|
110
|
+
borderFocusOuter: string;
|
|
111
|
+
borderFocusInner: string;
|
|
112
|
+
iconPrimary: string;
|
|
113
|
+
iconInverted: string;
|
|
114
|
+
};
|
|
115
|
+
export declare const midasTransitions: {
|
|
116
|
+
slowTransition: string;
|
|
117
|
+
normalTransition: string;
|
|
118
|
+
fastTransition: string;
|
|
119
|
+
};
|
|
120
|
+
export declare const breakpoints: {
|
|
121
|
+
smBreakpoint: string;
|
|
122
|
+
mdBreakpoint: string;
|
|
123
|
+
lgBreakpoint: string;
|
|
124
|
+
xlBreakpoint: string;
|
|
125
|
+
};
|
|
126
|
+
export declare const accessibility: {
|
|
127
|
+
forcedColorsMode: string;
|
|
128
|
+
prefersReducedMotion: string;
|
|
129
|
+
};
|
|
130
|
+
export declare const font: {
|
|
131
|
+
display: string;
|
|
132
|
+
};
|
|
133
|
+
export declare const boxShadow: {
|
|
134
|
+
focus: string;
|
|
135
|
+
};
|
package/toast/Toast.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AriaToastProps, AriaToastRegionProps } from '@react-aria/toast';
|
|
2
|
+
import { QueuedToast, ToastQueue, ToastState } from '@react-stately/toast';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface MidasToast {
|
|
5
|
+
message: string;
|
|
6
|
+
type: 'success' | 'info' | 'warning' | 'important';
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
interface ToastRegionProps<T> extends AriaToastRegionProps {
|
|
10
|
+
state: ToastState<T>;
|
|
11
|
+
}
|
|
12
|
+
export interface ToastProps<T> extends AriaToastProps<T> {
|
|
13
|
+
state: ToastState<T>;
|
|
14
|
+
toast: QueuedToast<T>;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
interface ToastProviderProps extends AriaToastRegionProps {
|
|
18
|
+
children?: ((state: ToastState<MidasToast>) => React.ReactNode) | React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare const toastQueue: ToastQueue<MidasToast>;
|
|
21
|
+
export declare const GlobalToastRegion: (props: ToastProviderProps) => React.ReactPortal | null;
|
|
22
|
+
export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function ToastRegion<T extends MidasToast>({ state, ...props }: ToastRegionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function Toast<T extends MidasToast>({ state, ...props }: ToastProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
package/toast/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toast';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
white: "#ffffff",
|
|
3
|
+
black: "#000000",
|
|
4
|
+
gray10: "#f2f2f2",
|
|
5
|
+
gray20: "#e6e6e6",
|
|
6
|
+
gray30: "#d9d9d9",
|
|
7
|
+
gray40: "#cccccc",
|
|
8
|
+
gray50: "#bfbfbf",
|
|
9
|
+
gray60: "#b3b3b3",
|
|
10
|
+
gray70: "#a6a6a6",
|
|
11
|
+
gray80: "#999999",
|
|
12
|
+
gray90: "#8c8c8c",
|
|
13
|
+
gray100: "#808080",
|
|
14
|
+
gray130: "#5d5d5d",
|
|
15
|
+
gray150: "#1f1f1f",
|
|
16
|
+
red10: "#f7e9e7",
|
|
17
|
+
red20: "#f1d4d1",
|
|
18
|
+
red30: "#e9beba",
|
|
19
|
+
red40: "#e2a8a4",
|
|
20
|
+
red50: "#d9918e",
|
|
21
|
+
red60: "#d37a7a",
|
|
22
|
+
red70: "#cc6467",
|
|
23
|
+
red80: "#c54c56",
|
|
24
|
+
red90: "#be3345",
|
|
25
|
+
red100: "#b90835",
|
|
26
|
+
red130: "#8b1327",
|
|
27
|
+
red150: "#641018",
|
|
28
|
+
blue10: "#eaf2f6",
|
|
29
|
+
blue20: "#d5e5ed",
|
|
30
|
+
blue30: "#c0d7e4",
|
|
31
|
+
blue40: "#abcbdb",
|
|
32
|
+
blue50: "#94bcd1",
|
|
33
|
+
blue60: "#82b0c9",
|
|
34
|
+
blue70: "#6ca3c0",
|
|
35
|
+
blue80: "#5897b8",
|
|
36
|
+
blue90: "#4289ad",
|
|
37
|
+
blue100: "#2e7ca5",
|
|
38
|
+
blue130: "#25607f",
|
|
39
|
+
blue150: "#143c50"
|
|
40
|
+
}, a = {
|
|
41
|
+
outline: "#303030",
|
|
42
|
+
primaryBackground: e.blue150,
|
|
43
|
+
primaryText: "#303030",
|
|
44
|
+
primaryHover: e.blue130,
|
|
45
|
+
primaryFocus: e.black,
|
|
46
|
+
primaryActive: "#4289ae",
|
|
47
|
+
secondaryBackground: e.gray130,
|
|
48
|
+
secondaryText: e.white,
|
|
49
|
+
secondaryHover: "#303030",
|
|
50
|
+
secondaryActive: "#303030"
|
|
51
|
+
}, o = {
|
|
52
|
+
inputText: e.gray150
|
|
53
|
+
}, r = {
|
|
54
|
+
signalGreen10: "#d5f2d9",
|
|
55
|
+
signalGreen100: "#008d3c",
|
|
56
|
+
signalBlue10: e.blue10,
|
|
57
|
+
signalBlue100: "#0066cc",
|
|
58
|
+
signalYellow10: "#fff8e1",
|
|
59
|
+
signalYellow100: "#f1c21b",
|
|
60
|
+
signalRed10: "#ffdfdf",
|
|
61
|
+
signalRed100: "#e62323",
|
|
62
|
+
signalRed130: "#b31b1b",
|
|
63
|
+
signalRed150: "#801313"
|
|
64
|
+
}, i = {
|
|
65
|
+
sRadius: " 0.125rem",
|
|
66
|
+
// 2px
|
|
67
|
+
mRadius: " 0.25rem"
|
|
68
|
+
// 4px
|
|
69
|
+
}, d = {
|
|
70
|
+
xsWidth: " 0.0625rem",
|
|
71
|
+
// 1px
|
|
72
|
+
sWidth: " 0.125rem",
|
|
73
|
+
// 2px
|
|
74
|
+
mWidth: " 0.25rem"
|
|
75
|
+
// 4px
|
|
76
|
+
}, s = {
|
|
77
|
+
lightWeight: "300",
|
|
78
|
+
regularWeight: "400",
|
|
79
|
+
mediumWeight: "500",
|
|
80
|
+
semiBoldWeight: "600",
|
|
81
|
+
boldWeight: "700",
|
|
82
|
+
blackWeight: "900"
|
|
83
|
+
}, t = {
|
|
84
|
+
desktopSize: "1rem",
|
|
85
|
+
mobileSize: "1rem",
|
|
86
|
+
largeSize: "1.5rem",
|
|
87
|
+
inputNormalSize: "0.875rem",
|
|
88
|
+
inputMessageSize: "0.75rem",
|
|
89
|
+
inputLabelSize: "1rem",
|
|
90
|
+
inputDescriptionSize: "0.875rem"
|
|
91
|
+
}, n = {
|
|
92
|
+
logoPrimary: e.red100,
|
|
93
|
+
logoSecondary: e.white,
|
|
94
|
+
textPrimary: e.gray150,
|
|
95
|
+
textSecondary: e.white,
|
|
96
|
+
textTertiary: e.red100,
|
|
97
|
+
link: e.blue130,
|
|
98
|
+
linkVisited: "#663366",
|
|
99
|
+
backgroundPrimary: e.white,
|
|
100
|
+
backgroundSecondary: e.gray10,
|
|
101
|
+
backgroundFooter1: e.red100,
|
|
102
|
+
backgroundFooter2: e.red130,
|
|
103
|
+
backgroundInfo: e.blue10,
|
|
104
|
+
backgroundImportant: r.signalYellow10,
|
|
105
|
+
borderPrimary: e.black,
|
|
106
|
+
borderSecondary: e.gray60,
|
|
107
|
+
borderFocusOuter: e.black,
|
|
108
|
+
borderFocusInner: e.white,
|
|
109
|
+
iconPrimary: e.black,
|
|
110
|
+
iconInverted: e.white
|
|
111
|
+
}, c = {
|
|
112
|
+
slowTransition: "500ms",
|
|
113
|
+
normalTransition: "300ms",
|
|
114
|
+
fastTransition: "250ms"
|
|
115
|
+
}, l = {
|
|
116
|
+
smBreakpoint: "(max-width: 767px)",
|
|
117
|
+
mdBreakpoint: "(min-width: 768px)",
|
|
118
|
+
lgBreakpoint: "(min-width: 1200px)",
|
|
119
|
+
xlBreakpoint: "(min-width: 1440px)"
|
|
120
|
+
}, b = {
|
|
121
|
+
forcedColorsMode: "(forced-colors: active)",
|
|
122
|
+
prefersReducedMotion: "(prefers-reduced-motion: reduced)"
|
|
123
|
+
}, g = {
|
|
124
|
+
display: '"Inter", sans-serif'
|
|
125
|
+
}, u = {
|
|
126
|
+
focus: "0 0 0 2px white, 0 0 0 4px black"
|
|
127
|
+
}, m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
128
|
+
__proto__: null,
|
|
129
|
+
accessibility: b,
|
|
130
|
+
baseColors: e,
|
|
131
|
+
borderRadius: i,
|
|
132
|
+
borderWidths: d,
|
|
133
|
+
boxShadow: u,
|
|
134
|
+
breakpoints: l,
|
|
135
|
+
buttonColors: a,
|
|
136
|
+
font: g,
|
|
137
|
+
fontSizes: t,
|
|
138
|
+
fontWeights: s,
|
|
139
|
+
inputColor: o,
|
|
140
|
+
midasColors: n,
|
|
141
|
+
midasTransitions: c,
|
|
142
|
+
signalColors: r
|
|
143
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
144
|
+
export {
|
|
145
|
+
a,
|
|
146
|
+
e as b,
|
|
147
|
+
i as c,
|
|
148
|
+
d,
|
|
149
|
+
t as e,
|
|
150
|
+
s as f,
|
|
151
|
+
c as g,
|
|
152
|
+
l as h,
|
|
153
|
+
o as i,
|
|
154
|
+
b as j,
|
|
155
|
+
g as k,
|
|
156
|
+
u as l,
|
|
157
|
+
n as m,
|
|
158
|
+
r as s,
|
|
159
|
+
m as t
|
|
160
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { c as e } from "./createLucideIcon-DeWljiyi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const y = e("CircleAlert", [
|
|
9
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
11
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* @license lucide-react v0.453.0 - ISC
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the ISC license.
|
|
17
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
const a = e("CircleCheck", [
|
|
20
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
21
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* @license lucide-react v0.453.0 - ISC
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the ISC license.
|
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/
|
|
29
|
+
const r = e("Info", [
|
|
30
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
32
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
33
|
+
]);
|
|
34
|
+
/**
|
|
35
|
+
* @license lucide-react v0.453.0 - ISC
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the ISC license.
|
|
38
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
const l = e("TriangleAlert", [
|
|
41
|
+
[
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
45
|
+
key: "wmoenq"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
49
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
50
|
+
]);
|
|
51
|
+
export {
|
|
52
|
+
a as C,
|
|
53
|
+
r as I,
|
|
54
|
+
l as T,
|
|
55
|
+
y as a
|
|
56
|
+
};
|