@iress-oss/ids-components 6.0.0-alpha.1 → 6.0.0-alpha.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/dist/{Autocomplete-CLvWVHp6.js → Autocomplete-C5ubHBTi.js} +1 -1
- package/dist/{Button-D6AL0bia.js → Button-mmhMLwp9.js} +4 -1
- package/dist/{Provider-BXQiO7Gp.js → Provider-8wS70V56.js} +13 -13
- package/dist/{TableProvider-_4Whj6P5.js → TableProvider-bdUNuoG-.js} +1 -11
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/Alert.styles.js +14 -14
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.styles.js +4 -4
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/Card.styles.js +16 -16
- package/dist/components/Checkbox/Checkbox.styles.js +5 -5
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -10
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +9 -9
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +5 -5
- package/dist/components/Field/components/FieldHint.js +1 -1
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/Filter.styles.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +84 -86
- package/dist/components/Input/Input.styles.js +7 -7
- package/dist/components/Label/Label.styles.js +3 -3
- package/dist/components/Link/Link.styles.js +2 -2
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.styles.js +11 -11
- package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +1 -1
- package/dist/components/Modal/Modal.js +106 -112
- package/dist/components/Modal/Modal.styles.js +8 -8
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +35 -41
- package/dist/components/Progress/Progress.styles.js +3 -3
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +66 -60
- package/dist/components/Radio/Radio.styles.js +5 -5
- package/dist/components/RadioGroup/RadioGroup.styles.js +4 -4
- package/dist/components/Readonly/Readonly.styles.js +4 -4
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/RichSelect.styles.js +9 -9
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +5 -5
- package/dist/components/RichSelect/SelectTags/SelectTags.js +49 -51
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -3
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +8 -8
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +75 -70
- package/dist/components/Slideout/Slideout.styles.js +7 -7
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slider/Slider.styles.js +3 -3
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/Tab/Tab.styles.js +2 -2
- package/dist/components/TabSet/TabSet.js +55 -52
- package/dist/components/TabSet/TabSet.styles.js +3 -3
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableRows.js +1 -1
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.styles.js +4 -4
- package/dist/components/Text/Text.styles.js +3 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.styles.js +12 -12
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +18 -16
- package/dist/components/Toggle/Toggle.js +63 -58
- package/dist/components/Toggle/Toggle.styles.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +4 -4
- package/dist/{composeTableColumnDefs-Hmd6yfdj.js → composeTableColumnDefs-BfFBOARB.js} +0 -10
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-CmSaAiNF.js → floating-ui.react-BetVZ099.js} +1 -1
- package/dist/helpers/styling/mapGutterToGap.js +7 -7
- package/dist/helpers/transition/getTransitionDuration.js +2 -2
- package/dist/{index-CvOVcYUc.js → index-CZ9ot38T.js} +83 -131
- package/dist/{index.esm-8uZEha-3.js → index.esm-CL8gh5wr.js} +0 -4
- package/dist/main.js +3 -3
- package/dist/patterns/Loading/Loading.styles.js +13 -13
- package/dist/patterns/Loading/LoadingSuspense.js +27 -27
- package/dist/patterns/Loading/components/ComponentLoading.js +38 -43
- package/dist/patterns/Loading/components/PageLoading.js +57 -60
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
- package/dist/patterns/Shadow/Shadow.js +8831 -19057
- package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
- package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/src/components/Card/Card.styles.d.ts +2 -2
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
- package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
- package/dist/src/components/Field/Field.styles.d.ts +6 -6
- package/dist/src/components/Inline/Inline.d.ts +1 -2
- package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
- package/dist/src/components/Modal/Modal.styles.d.ts +2 -2
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
- package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
- package/dist/src/components/Row/Row.d.ts +1 -2
- package/dist/src/components/Select/Select.styles.d.ts +7 -7
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
- package/dist/src/components/Stack/Stack.d.ts +1 -2
- package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
- package/dist/src/components/Toggle/Toggle.d.ts +10 -2
- package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
- package/dist/src/interfaces.d.ts +8 -10
- package/dist/src/patterns/Loading/Loading.styles.d.ts +10 -10
- package/dist/src/styled-system/jsx/create-style-context.d.ts +17 -10
- package/dist/src/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/src/styled-system/types/conditions.d.ts +1 -1
- package/dist/src/styled-system/types/jsx.d.ts +8 -6
- package/dist/src/styled-system/types/prop-type.d.ts +2 -2
- package/dist/src/types.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +17 -17
|
@@ -108,7 +108,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
108
108
|
borderBottomLeftRadius: "radius.000";
|
|
109
109
|
borderWidth: "[0]";
|
|
110
110
|
borderLeftWidth: "[2.5px]";
|
|
111
|
-
paddingBlock: "spacing.
|
|
111
|
+
paddingBlock: "spacing.4";
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
'site-wide': {
|
|
@@ -3,8 +3,8 @@ export declare const badge: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
3
3
|
true: {
|
|
4
4
|
badge: {
|
|
5
5
|
position: "absolute";
|
|
6
|
-
insetBlockStart: "spacing.
|
|
7
|
-
insetInlineEnd: "spacing.
|
|
6
|
+
insetBlockStart: "spacing.0";
|
|
7
|
+
insetInlineEnd: "spacing.0";
|
|
8
8
|
zIndex: "100";
|
|
9
9
|
transformOrigin: "100% 0";
|
|
10
10
|
borderRadius: "radius.100";
|
|
@@ -56,7 +56,7 @@ export declare const card: import('../../styled-system/types').SlotRecipeRuntime
|
|
|
56
56
|
gridTemplateAreas: "\"prepend body topRight\" \"footer footer footer\"";
|
|
57
57
|
gridAutoColumns: "[minmax(0, min-content) auto min-content]";
|
|
58
58
|
gridAutoRows: "[auto min-content]";
|
|
59
|
-
padding: "spacing.
|
|
59
|
+
padding: "spacing.0";
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -69,7 +69,7 @@ export declare const card: import('../../styled-system/types').SlotRecipeRuntime
|
|
|
69
69
|
hasMedia: {
|
|
70
70
|
true: {
|
|
71
71
|
root: {
|
|
72
|
-
padding: "spacing.
|
|
72
|
+
padding: "spacing.0";
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
};
|
|
@@ -5,7 +5,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
|
|
|
5
5
|
display: "inline-block";
|
|
6
6
|
};
|
|
7
7
|
mark: {
|
|
8
|
-
marginInlineEnd: "spacing.
|
|
8
|
+
marginInlineEnd: "spacing.0";
|
|
9
9
|
};
|
|
10
10
|
labelSpan: {
|
|
11
11
|
srOnly: true;
|
|
@@ -16,7 +16,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
|
|
|
16
16
|
true: {
|
|
17
17
|
label: {
|
|
18
18
|
position: "relative";
|
|
19
|
-
padding: "spacing.
|
|
19
|
+
padding: "spacing.0";
|
|
20
20
|
width: "[100%]";
|
|
21
21
|
cursor: "pointer";
|
|
22
22
|
borderRadius: "radius.system.form";
|
|
@@ -45,7 +45,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
|
|
|
45
45
|
borderStyle: "solid";
|
|
46
46
|
borderWidth: "1px";
|
|
47
47
|
borderRadius: "radius.system.form";
|
|
48
|
-
padding: "spacing.
|
|
48
|
+
padding: "spacing.3";
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -3,7 +3,7 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
|
|
|
3
3
|
block: {
|
|
4
4
|
display: "flex";
|
|
5
5
|
flexWrap: "wrap";
|
|
6
|
-
rowGap: "spacing.
|
|
6
|
+
rowGap: "spacing.2";
|
|
7
7
|
'& label': {
|
|
8
8
|
display: "flex";
|
|
9
9
|
flexBasis: "[100%]";
|
|
@@ -18,7 +18,7 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
|
|
|
18
18
|
stack: {
|
|
19
19
|
display: "flex";
|
|
20
20
|
flexWrap: "wrap";
|
|
21
|
-
rowGap: "spacing.
|
|
21
|
+
rowGap: "spacing.2";
|
|
22
22
|
'& > *': {
|
|
23
23
|
flexBasis: "[100%]";
|
|
24
24
|
};
|
|
@@ -27,8 +27,8 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
|
|
|
27
27
|
display: "flex";
|
|
28
28
|
flexFlow: "row wrap";
|
|
29
29
|
width: "[100%]";
|
|
30
|
-
rowGap: "spacing.
|
|
31
|
-
columnGap: "spacing.
|
|
30
|
+
rowGap: "spacing.2";
|
|
31
|
+
columnGap: "spacing.4";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
readOnly: {
|
|
@@ -7,11 +7,11 @@ export declare const expander: import('../../styled-system/types').SlotRecipeRun
|
|
|
7
7
|
alignItems: "flex-end";
|
|
8
8
|
width: "[100%]";
|
|
9
9
|
textStyle: "typography.heading.4";
|
|
10
|
-
py: "spacing.
|
|
10
|
+
py: "spacing.3";
|
|
11
11
|
borderBottom: "divider";
|
|
12
12
|
transition: "[all 0.2s ease-in-out]";
|
|
13
13
|
_after: {
|
|
14
|
-
mr: "spacing.
|
|
14
|
+
mr: "spacing.2";
|
|
15
15
|
};
|
|
16
16
|
_hover: {
|
|
17
17
|
color: "colour.primary.text";
|
|
@@ -6,7 +6,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
6
6
|
gridTemplateColumns: "auto 1fr";
|
|
7
7
|
gridTemplateRows: "auto auto";
|
|
8
8
|
gridTemplateAreas: "\"label field\" \". footer\"";
|
|
9
|
-
columnGap: "spacing.
|
|
9
|
+
columnGap: "spacing.2";
|
|
10
10
|
alignItems: "center";
|
|
11
11
|
};
|
|
12
12
|
labelContainer: {
|
|
@@ -18,7 +18,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
18
18
|
};
|
|
19
19
|
footer: {
|
|
20
20
|
gridArea: "footer";
|
|
21
|
-
mt: "spacing.
|
|
21
|
+
mt: "spacing.1";
|
|
22
22
|
};
|
|
23
23
|
label: {
|
|
24
24
|
mb: "none";
|
|
@@ -37,7 +37,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
37
37
|
hasHint: {
|
|
38
38
|
true: {
|
|
39
39
|
label: {
|
|
40
|
-
mb: "spacing.
|
|
40
|
+
mb: "spacing.0";
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
};
|
|
@@ -78,10 +78,10 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
78
78
|
};
|
|
79
79
|
footer: {
|
|
80
80
|
position: "absolute";
|
|
81
|
-
left: "spacing.
|
|
82
|
-
right: "spacing.
|
|
81
|
+
left: "spacing.0";
|
|
82
|
+
right: "spacing.0";
|
|
83
83
|
top: "[100%]";
|
|
84
|
-
mt: "spacing.
|
|
84
|
+
mt: "spacing.1";
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HorizontalAligns, VerticalAligns, IressStyledProps, ResponsiveProp } from '../../types';
|
|
1
|
+
import { HorizontalAligns, VerticalAligns, IressStyledProps, ResponsiveProp, PositiveSpacingToken } from '../../types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { PositiveSpacingToken } from '../../../theme-preset/tokens/spacing';
|
|
4
3
|
export interface IressInlineProps extends IressStyledProps {
|
|
5
4
|
/**
|
|
6
5
|
* Content to be displayed inline.
|
|
@@ -33,8 +33,8 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
|
|
|
33
33
|
insidePopover: {
|
|
34
34
|
true: {
|
|
35
35
|
root: {
|
|
36
|
-
my: "spacing.
|
|
37
|
-
px: "spacing.
|
|
36
|
+
my: "spacing.2";
|
|
37
|
+
px: "spacing.2";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -52,13 +52,13 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
|
|
|
52
52
|
display: "inline-flex";
|
|
53
53
|
flexWrap: "wrap";
|
|
54
54
|
flexDirection: "column";
|
|
55
|
-
rowGap: "spacing.
|
|
55
|
+
rowGap: "spacing.1";
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
inline: {
|
|
59
59
|
root: {
|
|
60
60
|
display: "inline-flex";
|
|
61
|
-
columnGap: "spacing.
|
|
61
|
+
columnGap: "spacing.1";
|
|
62
62
|
flexWrap: "wrap";
|
|
63
63
|
};
|
|
64
64
|
item: {
|
|
@@ -71,7 +71,7 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
|
|
|
71
71
|
root: {
|
|
72
72
|
display: "flex";
|
|
73
73
|
flexDirection: "row";
|
|
74
|
-
columnGap: "spacing.
|
|
74
|
+
columnGap: "spacing.1";
|
|
75
75
|
'& > :not(hr)': {
|
|
76
76
|
flex: "1";
|
|
77
77
|
textAlign: "center";
|
|
@@ -12,7 +12,7 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
12
12
|
modal: {
|
|
13
13
|
display: "flex";
|
|
14
14
|
flexDirection: "column";
|
|
15
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
15
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]";
|
|
16
16
|
'@media (min-height: 600px)': {
|
|
17
17
|
maxHeight: "[calc(100vh - (100px * 2))]";
|
|
18
18
|
};
|
|
@@ -22,7 +22,7 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
22
22
|
flex: "[1]";
|
|
23
23
|
overflowX: "hidden";
|
|
24
24
|
overflowY: "auto";
|
|
25
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
25
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]";
|
|
26
26
|
'@media (min-height: 600px)': {
|
|
27
27
|
maxHeight: "[calc(100vh - (100px * 2))]";
|
|
28
28
|
};
|
|
@@ -3,7 +3,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
|
|
|
3
3
|
stack: {
|
|
4
4
|
display: "inline-flex";
|
|
5
5
|
flexFlow: "column wrap";
|
|
6
|
-
rowGap: "spacing.
|
|
6
|
+
rowGap: "spacing.2";
|
|
7
7
|
'& > *': {
|
|
8
8
|
flexBasis: "[0]";
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
|
|
|
11
11
|
block: {
|
|
12
12
|
display: "flex";
|
|
13
13
|
flexFlow: "column wrap";
|
|
14
|
-
rowGap: "spacing.
|
|
14
|
+
rowGap: "spacing.2";
|
|
15
15
|
'& label': {
|
|
16
16
|
flexBasis: "[100%]";
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
|
|
|
20
20
|
display: "flex";
|
|
21
21
|
flexFlow: "row wrap";
|
|
22
22
|
width: "[100%]";
|
|
23
|
-
gap: "spacing.
|
|
23
|
+
gap: "spacing.2";
|
|
24
24
|
'& label': {
|
|
25
25
|
flexBasis: "[auto]";
|
|
26
26
|
flexGrow: "[0]";
|
|
@@ -28,7 +28,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
|
|
|
28
28
|
};
|
|
29
29
|
inlineFlex: {
|
|
30
30
|
display: "inline-flex";
|
|
31
|
-
gap: "spacing.
|
|
31
|
+
gap: "spacing.2";
|
|
32
32
|
};
|
|
33
33
|
inlineEqualWidth: {
|
|
34
34
|
display: "flex";
|
|
@@ -2,37 +2,37 @@ export declare const richSelect: import('../../styled-system/types').SlotRecipeR
|
|
|
2
2
|
width: {
|
|
3
3
|
'2': {
|
|
4
4
|
richSelect: {
|
|
5
|
-
width: "[calc({spacing.spacing.
|
|
5
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
'4': {
|
|
9
9
|
richSelect: {
|
|
10
|
-
width: "[calc({spacing.spacing.
|
|
10
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
'6': {
|
|
14
14
|
richSelect: {
|
|
15
|
-
width: "[calc({spacing.spacing.
|
|
15
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
'8': {
|
|
19
19
|
richSelect: {
|
|
20
|
-
width: "[calc({spacing.spacing.
|
|
20
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
'10': {
|
|
24
24
|
richSelect: {
|
|
25
|
-
width: "[calc({spacing.spacing.
|
|
25
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
'12': {
|
|
29
29
|
richSelect: {
|
|
30
|
-
width: "[calc({spacing.spacing.
|
|
30
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
'16': {
|
|
34
34
|
richSelect: {
|
|
35
|
-
width: "[calc({spacing.spacing.
|
|
35
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
'25perc': {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HorizontalAligns, IressStyledProps, ResponsiveProp, VerticalAligns } from '../../types';
|
|
1
|
+
import { PositiveSpacingToken, HorizontalAligns, IressStyledProps, ResponsiveProp, VerticalAligns } from '../../types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { PositiveSpacingToken } from '../../../theme-preset/tokens/spacing';
|
|
4
3
|
export interface IressRowProps extends IressStyledProps {
|
|
5
4
|
/**
|
|
6
5
|
* Any content you would like to be contained. Best used with `IressCol`.
|
|
@@ -7,7 +7,7 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
7
7
|
width: {
|
|
8
8
|
'2': {
|
|
9
9
|
wrapper: {
|
|
10
|
-
width: "[calc({spacing.spacing.
|
|
10
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
|
|
11
11
|
};
|
|
12
12
|
element: {
|
|
13
13
|
width: "auto";
|
|
@@ -15,7 +15,7 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
15
15
|
};
|
|
16
16
|
'4': {
|
|
17
17
|
wrapper: {
|
|
18
|
-
width: "[calc({spacing.spacing.
|
|
18
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
|
|
19
19
|
};
|
|
20
20
|
element: {
|
|
21
21
|
width: "auto";
|
|
@@ -23,7 +23,7 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
23
23
|
};
|
|
24
24
|
'6': {
|
|
25
25
|
wrapper: {
|
|
26
|
-
width: "[calc({spacing.spacing.
|
|
26
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
|
|
27
27
|
};
|
|
28
28
|
element: {
|
|
29
29
|
width: "auto";
|
|
@@ -31,7 +31,7 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
31
31
|
};
|
|
32
32
|
'8': {
|
|
33
33
|
wrapper: {
|
|
34
|
-
width: "[calc({spacing.spacing.
|
|
34
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
|
|
35
35
|
};
|
|
36
36
|
element: {
|
|
37
37
|
width: "auto";
|
|
@@ -39,7 +39,7 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
39
39
|
};
|
|
40
40
|
'10': {
|
|
41
41
|
wrapper: {
|
|
42
|
-
width: "[calc({spacing.spacing.
|
|
42
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
|
|
43
43
|
};
|
|
44
44
|
element: {
|
|
45
45
|
width: "auto";
|
|
@@ -47,12 +47,12 @@ export declare const select: import('../../styled-system/types').SlotRecipeRunti
|
|
|
47
47
|
};
|
|
48
48
|
'12': {
|
|
49
49
|
wrapper: {
|
|
50
|
-
width: "[calc({spacing.spacing.
|
|
50
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
'16': {
|
|
54
54
|
wrapper: {
|
|
55
|
-
width: "[calc({spacing.spacing.
|
|
55
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
|
|
56
56
|
};
|
|
57
57
|
element: {
|
|
58
58
|
width: "auto";
|
|
@@ -2,7 +2,7 @@ export declare const slideout: import('../../styled-system/types').SlotRecipeRun
|
|
|
2
2
|
position: {
|
|
3
3
|
right: {
|
|
4
4
|
root: {
|
|
5
|
-
insetInlineEnd: "spacing.
|
|
5
|
+
insetInlineEnd: "spacing.0";
|
|
6
6
|
borderStartStartRadius: "radius.050";
|
|
7
7
|
borderEndStartRadius: "radius.050";
|
|
8
8
|
borderStartEndRadius: "radius.000";
|
|
@@ -14,7 +14,7 @@ export declare const slideout: import('../../styled-system/types').SlotRecipeRun
|
|
|
14
14
|
};
|
|
15
15
|
left: {
|
|
16
16
|
root: {
|
|
17
|
-
insetInlineStart: "spacing.
|
|
17
|
+
insetInlineStart: "spacing.0";
|
|
18
18
|
borderStartStartRadius: "radius.000";
|
|
19
19
|
borderEndStartRadius: "radius.000";
|
|
20
20
|
borderStartEndRadius: "radius.050";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { HorizontalAligns, IressStyledProps, ResponsiveProp } from '../../types';
|
|
3
|
-
import { PositiveSpacingToken } from '../../../theme-preset/tokens/spacing';
|
|
2
|
+
import { PositiveSpacingToken, HorizontalAligns, IressStyledProps, ResponsiveProp } from '../../types';
|
|
4
3
|
export type IressStackProps<E extends keyof React.JSX.IntrinsicElements = 'div'> = IressStyledProps<E> & {
|
|
5
4
|
/**
|
|
6
5
|
* Content to be separated by a gutter.
|
|
@@ -35,24 +35,24 @@ export declare const toast: import('../../../../styled-system/types').SlotRecipe
|
|
|
35
35
|
'start-x': {
|
|
36
36
|
root: {
|
|
37
37
|
insetInlineStart: "[-100%]";
|
|
38
|
-
ms: "spacing.
|
|
38
|
+
ms: "spacing.4";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
'end-x': {
|
|
42
42
|
root: {
|
|
43
43
|
insetInlineEnd: "[-100%]";
|
|
44
|
-
me: "spacing.
|
|
44
|
+
me: "spacing.4";
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
'start-y': {
|
|
48
48
|
root: {
|
|
49
|
-
mt: "spacing.
|
|
49
|
+
mt: "spacing.4";
|
|
50
50
|
transform: "[translateY(-100%)]";
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
'end-y': {
|
|
54
54
|
root: {
|
|
55
|
-
mb: "spacing.
|
|
55
|
+
mb: "spacing.4";
|
|
56
56
|
transform: "[translateY(100%)]";
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -2,13 +2,21 @@ import { MouseEvent, ReactNode } from 'react';
|
|
|
2
2
|
import { IressStyledProps } from '../../types';
|
|
3
3
|
export interface IressToggleProps extends Omit<IressStyledProps, 'onChange'> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* If true, the toggle on.
|
|
6
|
+
* Please use this when are rendering the toggle in controlled mode,
|
|
7
|
+
* meaning it will not change unless you explicitly set the value using `onChange` and `checked`.
|
|
6
8
|
*/
|
|
7
9
|
checked?: boolean;
|
|
8
10
|
/**
|
|
9
11
|
* Provides the label for the Toggle.
|
|
10
12
|
*/
|
|
11
13
|
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* If true, the toggle will be initially rendered as off.
|
|
16
|
+
* Please use this when are rendering the toggle in uncontrolled mode,
|
|
17
|
+
* meaning the value will change automatically when the user interacts with the toggle.
|
|
18
|
+
*/
|
|
19
|
+
defaultChecked?: boolean;
|
|
12
20
|
/**
|
|
13
21
|
* Hides the label if true (label will still be read out by screen readers).
|
|
14
22
|
*/
|
|
@@ -22,4 +30,4 @@ export interface IressToggleProps extends Omit<IressStyledProps, 'onChange'> {
|
|
|
22
30
|
*/
|
|
23
31
|
onChange?: (checked: boolean, event: MouseEvent<HTMLButtonElement>) => void;
|
|
24
32
|
}
|
|
25
|
-
export declare const IressToggle: ({ checked: checkedProp, hiddenLabel, children, layout, className, onChange, "data-testid": testid, ...restProps }: IressToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const IressToggle: ({ checked: checkedProp, hiddenLabel, defaultChecked, children, layout, className, onChange, "data-testid": testid, ...restProps }: IressToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,8 +13,8 @@ export declare const toggle: import('../../styled-system/types').SlotRecipeRunti
|
|
|
13
13
|
flexDirection: "row-reverse";
|
|
14
14
|
};
|
|
15
15
|
label: {
|
|
16
|
-
marginInlineStart: "spacing.
|
|
17
|
-
marginInlineEnd: "spacing.
|
|
16
|
+
marginInlineStart: "spacing.1";
|
|
17
|
+
marginInlineEnd: "spacing.0";
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
'inline-between': {
|
|
@@ -33,7 +33,7 @@ export declare const toggle: import('../../styled-system/types').SlotRecipeRunti
|
|
|
33
33
|
};
|
|
34
34
|
label: {
|
|
35
35
|
display: "block";
|
|
36
|
-
marginBlockEnd: "spacing.
|
|
36
|
+
marginBlockEnd: "spacing.1";
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
};
|
|
@@ -44,7 +44,7 @@ export declare const toggle: import('../../styled-system/types').SlotRecipeRunti
|
|
|
44
44
|
display: "inline-block";
|
|
45
45
|
};
|
|
46
46
|
checkboxMark: {
|
|
47
|
-
marginInlineEnd: "spacing.
|
|
47
|
+
marginInlineEnd: "spacing.1";
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
};
|
package/dist/src/interfaces.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SystemValidationStatus, PaddingSize } from './enums';
|
|
3
|
-
import { FormControlValue, PaddingSizes, ResponsiveProp, SystemValidationStatuses } from './types';
|
|
4
|
-
import { SpacingToken } from './styled-system/tokens';
|
|
3
|
+
import { PositiveSpacingToken, FormControlValue, PaddingSizes, ResponsiveProp, SystemValidationStatuses, SpacingToken } from './types';
|
|
5
4
|
import { UtilityValues } from './styled-system/types/prop-type';
|
|
6
|
-
import { PositiveSpacingToken } from '../theme-preset/tokens/spacing';
|
|
7
5
|
/**
|
|
8
6
|
* This interface is used to ensure that the ref returned by a component is compatible with React Hook Form.
|
|
9
7
|
* It provides the contract for necessary methods to interact with the third-party library, such as `blur` and `focus`.
|
|
@@ -207,7 +205,7 @@ export interface IressCSSProps {
|
|
|
207
205
|
*
|
|
208
206
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin
|
|
209
207
|
*/
|
|
210
|
-
m?: ResponsiveProp<
|
|
208
|
+
m?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
211
209
|
/**
|
|
212
210
|
* The **`my`** property is short for `margin-block`. It defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
|
|
213
211
|
*
|
|
@@ -219,7 +217,7 @@ export interface IressCSSProps {
|
|
|
219
217
|
*
|
|
220
218
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-block
|
|
221
219
|
*/
|
|
222
|
-
my?: ResponsiveProp<
|
|
220
|
+
my?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
223
221
|
/**
|
|
224
222
|
* The **`mx`** property is short for `margin-inline`. It is a shorthand property that defines both the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
|
|
225
223
|
*
|
|
@@ -231,7 +229,7 @@ export interface IressCSSProps {
|
|
|
231
229
|
*
|
|
232
230
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-inline
|
|
233
231
|
*/
|
|
234
|
-
mx?: ResponsiveProp<
|
|
232
|
+
mx?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
235
233
|
/**
|
|
236
234
|
* The **`mb`** property is short for `margin-bottom` and sets the margin area on the bottom side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
237
235
|
*
|
|
@@ -243,7 +241,7 @@ export interface IressCSSProps {
|
|
|
243
241
|
*
|
|
244
242
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
245
243
|
*/
|
|
246
|
-
mb?: ResponsiveProp<
|
|
244
|
+
mb?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
247
245
|
/**
|
|
248
246
|
* The **`ml`** property is short for `margin-left` and sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
249
247
|
*
|
|
@@ -255,7 +253,7 @@ export interface IressCSSProps {
|
|
|
255
253
|
*
|
|
256
254
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
257
255
|
*/
|
|
258
|
-
ml?: ResponsiveProp<
|
|
256
|
+
ml?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
259
257
|
/**
|
|
260
258
|
* The **`mr`** property is short for `margin-right` and sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
261
259
|
*
|
|
@@ -267,7 +265,7 @@ export interface IressCSSProps {
|
|
|
267
265
|
*
|
|
268
266
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
269
267
|
*/
|
|
270
|
-
mr?: ResponsiveProp<
|
|
268
|
+
mr?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
271
269
|
/**
|
|
272
270
|
* The **`mt`** property is short for `margin-top` and sets the margin area on the top side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
273
271
|
*
|
|
@@ -279,7 +277,7 @@ export interface IressCSSProps {
|
|
|
279
277
|
*
|
|
280
278
|
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
281
279
|
*/
|
|
282
|
-
mt?: ResponsiveProp<
|
|
280
|
+
mt?: ResponsiveProp<SpacingToken | 'auto'>;
|
|
283
281
|
/**
|
|
284
282
|
* The **`noGutter`** property is used to remove the bottom margin from the last child of a component.
|
|
285
283
|
* This is useful when you want to avoid extra spacing at the end of a layout.
|
|
@@ -27,8 +27,8 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
27
27
|
left: "[50%]";
|
|
28
28
|
transform: "translate(-50%, -50%)";
|
|
29
29
|
width: "[fit-content]";
|
|
30
|
-
px: "spacing.
|
|
31
|
-
py: "spacing.
|
|
30
|
+
px: "spacing.2";
|
|
31
|
+
py: "spacing.1";
|
|
32
32
|
textStyle: "typography.body.sm";
|
|
33
33
|
bg: "colour.neutral.20";
|
|
34
34
|
color: "colour.neutral.70";
|
|
@@ -58,8 +58,8 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
58
58
|
zIndex: "600";
|
|
59
59
|
};
|
|
60
60
|
message: {
|
|
61
|
-
px: "spacing.
|
|
62
|
-
py: "spacing.
|
|
61
|
+
px: "spacing.4";
|
|
62
|
+
py: "spacing.2";
|
|
63
63
|
bg: "colour.neutral.20";
|
|
64
64
|
color: "colour.neutral.70";
|
|
65
65
|
border: "divider";
|
|
@@ -79,7 +79,7 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
79
79
|
width: "overlay.sm";
|
|
80
80
|
};
|
|
81
81
|
message: {
|
|
82
|
-
p: "spacing.
|
|
82
|
+
p: "spacing.10";
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
page: {
|
|
@@ -92,8 +92,8 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
92
92
|
opacity: number;
|
|
93
93
|
transition: "[opacity 0.2s linear]";
|
|
94
94
|
position: "absolute";
|
|
95
|
-
top: "spacing.
|
|
96
|
-
left: "spacing.
|
|
95
|
+
top: "spacing.0";
|
|
96
|
+
left: "spacing.0";
|
|
97
97
|
};
|
|
98
98
|
message: {
|
|
99
99
|
opacity: number;
|
|
@@ -129,10 +129,10 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
129
129
|
};
|
|
130
130
|
message: {
|
|
131
131
|
position: "absolute";
|
|
132
|
-
left: "spacing.
|
|
132
|
+
left: "spacing.0";
|
|
133
133
|
width: "[max-content]";
|
|
134
134
|
color: "colour.neutral.70";
|
|
135
|
-
padding: "spacing.
|
|
135
|
+
padding: "spacing.2";
|
|
136
136
|
bg: "colour.neutral.10";
|
|
137
137
|
textStyle: "typography.body.md";
|
|
138
138
|
animationStyle: "loading-fade-next";
|
|
@@ -167,7 +167,7 @@ export declare const loading: import('../../styled-system/types').SlotRecipeRunt
|
|
|
167
167
|
true: {};
|
|
168
168
|
};
|
|
169
169
|
}>;
|
|
170
|
-
export declare const loadingList: import('../../styled-system/types').SlotRecipeRuntimeFn<"svg" | "circle" | "marker" | "dots" | "root" | "item"
|
|
170
|
+
export declare const loadingList: import('../../styled-system/types').SlotRecipeRuntimeFn<"tick" | "svg" | "circle" | "marker" | "dots" | "root" | "item", {
|
|
171
171
|
finished: {
|
|
172
172
|
true: {
|
|
173
173
|
svg: {
|