@iress-oss/ids-components 6.0.0-alpha.1 → 6.0.0-alpha.3

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.
Files changed (141) hide show
  1. package/dist/{Autocomplete-CLvWVHp6.js → Autocomplete-C5ubHBTi.js} +1 -1
  2. package/dist/{Button-D6AL0bia.js → Button-mmhMLwp9.js} +4 -1
  3. package/dist/{Provider-BXQiO7Gp.js → Provider-8wS70V56.js} +13 -13
  4. package/dist/{TableProvider-_4Whj6P5.js → TableProvider-bdUNuoG-.js} +1 -11
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/Alert/Alert.styles.js +14 -14
  7. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  8. package/dist/components/Autocomplete/index.js +1 -1
  9. package/dist/components/Badge/Badge.styles.js +4 -4
  10. package/dist/components/Button/Button.js +1 -1
  11. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  12. package/dist/components/Button/index.js +1 -1
  13. package/dist/components/Card/Card.styles.js +16 -16
  14. package/dist/components/Checkbox/Checkbox.styles.js +5 -5
  15. package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -10
  16. package/dist/components/Container/Container.styles.js +1 -1
  17. package/dist/components/Divider/Divider.styles.js +1 -1
  18. package/dist/components/Expander/Expander.styles.js +3 -3
  19. package/dist/components/Field/Field.styles.js +9 -9
  20. package/dist/components/Field/FieldGroup/FieldGroup.styles.js +5 -5
  21. package/dist/components/Field/components/FieldHint.js +1 -1
  22. package/dist/components/Filter/Filter.js +3 -3
  23. package/dist/components/Filter/Filter.styles.js +3 -3
  24. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  25. package/dist/components/Inline/Inline.styles.js +1 -1
  26. package/dist/components/Input/Input.js +84 -86
  27. package/dist/components/Input/Input.styles.js +7 -7
  28. package/dist/components/Label/Label.styles.js +3 -3
  29. package/dist/components/Link/Link.styles.js +2 -2
  30. package/dist/components/Menu/Menu.js +1 -1
  31. package/dist/components/Menu/Menu.styles.js +11 -11
  32. package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
  33. package/dist/components/Menu/MenuText/MenuText.js +1 -1
  34. package/dist/components/Modal/Modal.js +106 -112
  35. package/dist/components/Modal/Modal.styles.js +8 -8
  36. package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
  37. package/dist/components/Popover/components/PopoverContent.js +1 -1
  38. package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
  39. package/dist/components/Popover/hooks/usePopover.js +1 -1
  40. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  41. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  42. package/dist/components/Progress/Progress.js +35 -41
  43. package/dist/components/Progress/Progress.styles.js +3 -3
  44. package/dist/components/Provider/Provider.js +3 -3
  45. package/dist/components/Provider/index.js +1 -1
  46. package/dist/components/Radio/Radio.js +66 -60
  47. package/dist/components/Radio/Radio.styles.js +5 -5
  48. package/dist/components/RadioGroup/RadioGroup.styles.js +4 -4
  49. package/dist/components/Readonly/Readonly.styles.js +4 -4
  50. package/dist/components/RichSelect/RichSelect.js +2 -2
  51. package/dist/components/RichSelect/RichSelect.styles.js +9 -9
  52. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
  53. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +5 -5
  54. package/dist/components/RichSelect/SelectTags/SelectTags.js +49 -51
  55. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -3
  56. package/dist/components/RichSelect/index.js +1 -1
  57. package/dist/components/Select/Select.styles.js +8 -8
  58. package/dist/components/Skeleton/Skeleton.styles.js +1 -1
  59. package/dist/components/SkipLink/SkipLink.js +1 -1
  60. package/dist/components/SkipLink/SkipLink.styles.js +1 -1
  61. package/dist/components/Slideout/Slideout.js +75 -70
  62. package/dist/components/Slideout/Slideout.styles.js +7 -7
  63. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  64. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  65. package/dist/components/Slider/Slider.styles.js +3 -3
  66. package/dist/components/Stack/Stack.styles.js +1 -1
  67. package/dist/components/TabSet/Tab/Tab.js +1 -1
  68. package/dist/components/TabSet/Tab/Tab.styles.js +2 -2
  69. package/dist/components/TabSet/TabSet.js +55 -52
  70. package/dist/components/TabSet/TabSet.styles.js +3 -3
  71. package/dist/components/Table/Table.js +1 -1
  72. package/dist/components/Table/TableBody/TableBody.js +1 -1
  73. package/dist/components/Table/TableProvider.js +2 -2
  74. package/dist/components/Table/components/TableEmpty.js +1 -1
  75. package/dist/components/Table/components/TableHeader.js +1 -1
  76. package/dist/components/Table/components/TableHeaderCell.js +1 -1
  77. package/dist/components/Table/components/TableRows.js +1 -1
  78. package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
  79. package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
  80. package/dist/components/Table/hooks/useTableColumnStyles.js +1 -1
  81. package/dist/components/Tag/Tag.js +1 -1
  82. package/dist/components/Tag/Tag.styles.js +4 -4
  83. package/dist/components/Text/Text.styles.js +3 -2
  84. package/dist/components/Toaster/Toaster.js +1 -1
  85. package/dist/components/Toaster/Toaster.styles.js +1 -1
  86. package/dist/components/Toaster/components/Toast/Toast.js +1 -1
  87. package/dist/components/Toaster/components/Toast/Toast.styles.js +12 -12
  88. package/dist/components/Toaster/components/Toast/ToastAnimated.js +18 -16
  89. package/dist/components/Toggle/Toggle.js +63 -58
  90. package/dist/components/Toggle/Toggle.styles.js +12 -12
  91. package/dist/components/Tooltip/Tooltip.js +1 -1
  92. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  93. package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
  94. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +4 -4
  95. package/dist/{composeTableColumnDefs-Hmd6yfdj.js → composeTableColumnDefs-BfFBOARB.js} +0 -10
  96. package/dist/constants.js +1 -1
  97. package/dist/{floating-ui.react-CmSaAiNF.js → floating-ui.react-BetVZ099.js} +1 -1
  98. package/dist/helpers/styling/mapGutterToGap.js +7 -7
  99. package/dist/helpers/transition/getTransitionDuration.js +2 -2
  100. package/dist/{index-CvOVcYUc.js → index-CZ9ot38T.js} +83 -131
  101. package/dist/{index.esm-8uZEha-3.js → index.esm-CL8gh5wr.js} +0 -4
  102. package/dist/main.js +3 -3
  103. package/dist/patterns/Loading/Loading.styles.js +13 -13
  104. package/dist/patterns/Loading/LoadingSuspense.js +27 -27
  105. package/dist/patterns/Loading/components/ComponentLoading.js +38 -43
  106. package/dist/patterns/Loading/components/PageLoading.js +57 -60
  107. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  108. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
  109. package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
  110. package/dist/patterns/Shadow/Shadow.js +8832 -19058
  111. package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
  112. package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
  113. package/dist/src/components/Card/Card.styles.d.ts +2 -2
  114. package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
  115. package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
  116. package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
  117. package/dist/src/components/Field/Field.styles.d.ts +6 -6
  118. package/dist/src/components/Inline/Inline.d.ts +1 -2
  119. package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
  120. package/dist/src/components/Modal/Modal.styles.d.ts +2 -2
  121. package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
  122. package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
  123. package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
  124. package/dist/src/components/Row/Row.d.ts +1 -2
  125. package/dist/src/components/Select/Select.styles.d.ts +7 -7
  126. package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
  127. package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
  128. package/dist/src/components/Stack/Stack.d.ts +1 -2
  129. package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
  130. package/dist/src/components/Toggle/Toggle.d.ts +10 -2
  131. package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
  132. package/dist/src/interfaces.d.ts +8 -10
  133. package/dist/src/patterns/Loading/Loading.styles.d.ts +10 -10
  134. package/dist/src/styled-system/jsx/create-style-context.d.ts +17 -10
  135. package/dist/src/styled-system/tokens/tokens.d.ts +1 -1
  136. package/dist/src/styled-system/types/conditions.d.ts +1 -1
  137. package/dist/src/styled-system/types/jsx.d.ts +8 -6
  138. package/dist/src/styled-system/types/prop-type.d.ts +2 -2
  139. package/dist/src/types.d.ts +3 -1
  140. package/dist/style.css +1 -1
  141. package/package.json +19 -18
@@ -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.400";
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.000";
7
- insetInlineEnd: "spacing.000";
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.000";
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.000";
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.000";
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.000";
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.300";
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.200";
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.200";
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.200";
31
- columnGap: "spacing.400";
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.300";
10
+ py: "spacing.3";
11
11
  borderBottom: "divider";
12
12
  transition: "[all 0.2s ease-in-out]";
13
13
  _after: {
14
- mr: "spacing.200";
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.200";
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.100";
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.000";
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.000";
82
- right: "spacing.000";
81
+ left: "spacing.0";
82
+ right: "spacing.0";
83
83
  top: "[100%]";
84
- mt: "spacing.100";
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.200";
37
- px: "spacing.200";
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.100";
55
+ rowGap: "spacing.1";
56
56
  };
57
57
  };
58
58
  inline: {
59
59
  root: {
60
60
  display: "inline-flex";
61
- columnGap: "spacing.100";
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.100";
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.700} * 2))]";
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.700} * 2))]";
25
+ maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]";
26
26
  '@media (min-height: 600px)': {
27
27
  maxHeight: "[calc(100vh - (100px * 2))]";
28
28
  };
@@ -23,7 +23,7 @@ export declare const radio: import('../../styled-system/types').SlotRecipeRuntim
23
23
  borderStyle: "solid";
24
24
  borderColor: "colour.neutral.40";
25
25
  borderRadius: "radius.050";
26
- padding: "spacing.400";
26
+ padding: "spacing.4";
27
27
  };
28
28
  };
29
29
  };
@@ -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.200";
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.200";
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.200";
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.200";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
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.200} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
55
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
56
56
  };
57
57
  element: {
58
58
  width: "auto";
@@ -11,7 +11,7 @@ export declare const skeleton: import('../../styled-system/types').RecipeRuntime
11
11
  };
12
12
  text: {
13
13
  width: "[100%]";
14
- height: "[spacing.600]";
14
+ height: "[spacing.6]";
15
15
  };
16
16
  };
17
17
  }>;
@@ -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.000";
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.000";
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.400";
38
+ ms: "spacing.4";
39
39
  };
40
40
  };
41
41
  'end-x': {
42
42
  root: {
43
43
  insetInlineEnd: "[-100%]";
44
- me: "spacing.400";
44
+ me: "spacing.4";
45
45
  };
46
46
  };
47
47
  'start-y': {
48
48
  root: {
49
- mt: "spacing.400";
49
+ mt: "spacing.4";
50
50
  transform: "[translateY(-100%)]";
51
51
  };
52
52
  };
53
53
  'end-y': {
54
54
  root: {
55
- mb: "spacing.400";
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
- * Sets the checked state of the Toggle.
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.100";
17
- marginInlineEnd: "spacing.000";
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.100";
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.100";
47
+ marginInlineEnd: "spacing.1";
48
48
  };
49
49
  };
50
50
  };
@@ -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<UtilityValues['margin']>;
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<UtilityValues['marginBlock']>;
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<UtilityValues['marginInline']>;
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<UtilityValues['marginBottom']>;
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<UtilityValues['marginLeft']>;
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<UtilityValues['marginRight']>;
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<UtilityValues['marginTop']>;
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.200";
31
- py: "spacing.100";
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.400";
62
- py: "spacing.200";
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.1200";
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.000";
96
- left: "spacing.000";
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.000";
132
+ left: "spacing.0";
133
133
  width: "[max-content]";
134
134
  color: "colour.neutral.70";
135
- padding: "spacing.200";
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" | "tick", {
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: {