@iress-oss/ids-components 6.0.0-alpha.23 → 6.0.0-alpha.25
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/{Button-BrpmQKsB.js → Button-DNFXX5JD.js} +229 -104
- package/dist/Provider-uPW2d6U5.js +49 -0
- package/dist/components/Alert/Alert.d.ts +13 -6
- package/dist/components/Alert/Alert.js +67 -67
- package/dist/components/Alert/Alert.styles.d.ts +112 -36
- package/dist/components/Alert/Alert.styles.js +159 -65
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.styles.d.ts +1 -1
- package/dist/components/Badge/Badge.styles.js +4 -3
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.js +9 -4
- package/dist/components/Button/CloseButton/CloseButton.js +13 -15
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/Card/Card.d.ts +5 -1
- package/dist/components/Card/Card.js +26 -24
- package/dist/components/Card/Card.styles.d.ts +8 -4
- package/dist/components/Card/Card.styles.js +13 -10
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.styles.js +8 -9
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.js +20 -35
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +9 -7
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +3 -3
- package/dist/components/Expander/Expander.styles.js +3 -8
- package/dist/components/Field/Field.js +3 -3
- package/dist/components/Field/Field.styles.d.ts +2 -2
- package/dist/components/Field/Field.styles.js +8 -4
- package/dist/components/Field/FieldGroup/FieldGroup.js +3 -3
- package/dist/components/Field/FieldGroup/FieldGroup.styles.d.ts +12 -12
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +13 -13
- package/dist/components/Field/components/FieldFooter.js +25 -23
- package/dist/components/Field/components/FieldHint.js +2 -2
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/Filter.styles.js +1 -1
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Filter/components/FilterResultsDescriptor.js +1 -1
- package/dist/components/Filter/components/FilterSearch.d.ts +2 -0
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +125 -107
- package/dist/components/Input/Input.styles.d.ts +11 -1
- package/dist/components/Input/Input.styles.js +62 -22
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/Label/Label.styles.js +5 -5
- package/dist/components/Label/LabelBase/LabelBase.js +1 -1
- package/dist/components/Link/Link.js +2 -2
- package/dist/components/Link/Link.styles.js +5 -10
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.styles.js +6 -10
- package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +2 -2
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/Modal.styles.d.ts +1 -1
- package/dist/components/Modal/Modal.styles.js +3 -3
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Panel/Panel.styles.d.ts +1 -1
- package/dist/components/Panel/Panel.styles.js +2 -2
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/Popover.styles.js +2 -2
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Progress/Progress.js +4 -4
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +1 -1
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/Radio.styles.d.ts +12 -3
- package/dist/components/Radio/Radio.styles.js +18 -13
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +2 -2
- package/dist/components/Readonly/Readonly.styles.js +4 -4
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +16 -16
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +4 -13
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +8 -15
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +4 -13
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/Select.styles.js +8 -6
- package/dist/components/Select/SelectOption/SelectOption.js +1 -1
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Skeleton/Skeleton.styles.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +1 -1
- package/dist/components/Slideout/Slideout.styles.d.ts +7 -9
- package/dist/components/Slideout/Slideout.styles.js +11 -13
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/Slider.styles.js +5 -13
- package/dist/components/Slider/components/SliderTicks.js +1 -1
- package/dist/components/Spinner/Spinner.styles.js +2 -2
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/Styled/Styled.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/Tab/Tab.styles.d.ts +4 -6
- package/dist/components/TabSet/Tab/Tab.styles.js +10 -14
- package/dist/components/TabSet/TabSet.js +1 -1
- package/dist/components/TabSet/TabSet.styles.d.ts +2 -2
- package/dist/components/TabSet/TabSet.styles.js +9 -12
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.styles.js +3 -3
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/components/TableRows.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +2 -2
- package/dist/components/Tag/Tag.js +4 -4
- package/dist/components/Tag/Tag.styles.d.ts +1 -6
- package/dist/components/Tag/Tag.styles.js +3 -8
- package/dist/components/Tag/TagInput/TagInput.styles.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/Text.styles.js +3 -3
- 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 +2 -2
- package/dist/components/Toaster/components/Toast/Toast.styles.js +2 -2
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/Toggle.styles.js +2 -4
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +2 -2
- package/dist/components/ValidationMessage/ValidationMessage.js +18 -10
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.d.ts +8 -8
- package/dist/constants.js +7 -7
- package/dist/{create-recipe-DUTadmvy.js → create-recipe-BDTG8O8S.js} +2 -2
- package/dist/{css-BStWZDQe.js → css-DVJ-ALYD.js} +13 -13
- package/dist/{cva-DJVW1KHF.js → cva-3iuaj0TL.js} +1 -1
- package/dist/enums.d.ts +1 -0
- package/dist/enums.js +1 -1
- package/dist/{factory-BrouwSOb.js → factory-CcYfm2kB.js} +3 -3
- package/dist/helpers/styling/iressCss.js +1 -1
- package/dist/{index-Bir9MtY7.js → index-7z9nAsjZ.js} +95 -67
- package/dist/interfaces.d.ts +1 -9
- package/dist/is-valid-prop-C5D641yn.js +7 -0
- package/dist/main.js +2 -2
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +11 -11
- package/dist/patterns/Form/HookForm/HookForm.js +1 -1
- package/dist/patterns/Loading/Loading.styles.d.ts +1 -1
- package/dist/patterns/Loading/Loading.styles.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +1 -1
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +1 -1
- package/dist/patterns/Loading/components/PageLoading.js +1 -1
- package/dist/patterns/Loading/components/StartUpLoading.js +1 -1
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Shadow/Shadow.js +886 -814
- package/dist/style.css +1 -1
- package/dist/styled-system/recipes/button.d.ts +2 -1
- package/dist/styled-system/tokens/tokens.d.ts +4 -4
- package/dist/styled-system/types/composition.d.ts +3 -0
- package/dist/styled-system/types/conditions.d.ts +0 -4
- package/dist/styled-system/types/prop-type.d.ts +3 -3
- package/dist/{sva-Df1FmoEW.js → sva-CsHRIRDW.js} +2 -2
- package/package.json +8 -8
- package/dist/Provider-Dw49edAo.js +0 -53
- package/dist/is-valid-prop-DTA0i8bT.js +0 -7
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as j, useId as M, useRef as R, useMemo as
|
|
3
|
-
import { IressSpinner as
|
|
1
|
+
import { jsxs as N, Fragment as O, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useId as M, useRef as R, useMemo as d, useCallback as E, useImperativeHandle as T } from "react";
|
|
3
|
+
import { IressSpinner as A } from "./components/Spinner/Spinner.js";
|
|
4
4
|
import "./components/Spinner/Spinner.styles.js";
|
|
5
|
-
import { GlobalCSSClass as
|
|
5
|
+
import { GlobalCSSClass as b } from "./enums.js";
|
|
6
6
|
import "./components/ButtonGroup/ButtonGroup.js";
|
|
7
7
|
import "./components/ButtonGroup/ButtonGroup.styles.js";
|
|
8
|
-
import { useButtonGroupItem as
|
|
9
|
-
import { s as
|
|
10
|
-
import { m as
|
|
11
|
-
import { c as
|
|
12
|
-
import { c as
|
|
8
|
+
import { useButtonGroupItem as K } from "./components/ButtonGroup/hooks/useButtonGroupItem.js";
|
|
9
|
+
import { s as L } from "./is-valid-prop-C5D641yn.js";
|
|
10
|
+
import { m as W, a as D, s as z, i as J, c as Q } from "./css-DVJ-ALYD.js";
|
|
11
|
+
import { c as U } from "./cx-DN21T1EH.js";
|
|
12
|
+
import { c as X } from "./create-recipe-BDTG8O8S.js";
|
|
13
13
|
import "./components/Popover/Popover.js";
|
|
14
14
|
import "./components/Popover/Popover.styles.js";
|
|
15
15
|
import "./components/Popover/InputPopover/InputPopover.js";
|
|
16
|
-
import { usePopover as
|
|
16
|
+
import { usePopover as Y } from "./components/Popover/hooks/usePopover.js";
|
|
17
17
|
import "./components/Popover/hooks/useFloatingPopover.js";
|
|
18
|
-
|
|
18
|
+
import { IressIcon as Z } from "./components/Icon/Icon.js";
|
|
19
|
+
import "./components/Icon/Icon.styles.js";
|
|
20
|
+
import "./components/Icon/IconProvider.js";
|
|
21
|
+
import { IressTooltip as $ } from "./components/Tooltip/Tooltip.js";
|
|
22
|
+
import "./components/Tooltip/Tooltip.styles.js";
|
|
23
|
+
const I = {}, oo = [
|
|
19
24
|
{
|
|
20
25
|
mode: "primary",
|
|
21
26
|
status: "danger",
|
|
@@ -50,7 +55,7 @@ const h = {}, Y = [
|
|
|
50
55
|
borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surfaceHover}, black 5%)]"
|
|
51
56
|
},
|
|
52
57
|
_active: {
|
|
53
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent
|
|
58
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
54
59
|
}
|
|
55
60
|
},
|
|
56
61
|
spinner: {
|
|
@@ -69,7 +74,7 @@ const h = {}, Y = [
|
|
|
69
74
|
bg: "colour.system.danger.surfaceHover"
|
|
70
75
|
},
|
|
71
76
|
_active: {
|
|
72
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent
|
|
77
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
73
78
|
}
|
|
74
79
|
},
|
|
75
80
|
spinner: {
|
|
@@ -88,7 +93,7 @@ const h = {}, Y = [
|
|
|
88
93
|
bg: "colour.system.danger.surfaceHover"
|
|
89
94
|
},
|
|
90
95
|
_active: {
|
|
91
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent
|
|
96
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
92
97
|
}
|
|
93
98
|
},
|
|
94
99
|
spinner: {
|
|
@@ -145,7 +150,7 @@ const h = {}, Y = [
|
|
|
145
150
|
borderColor: "[color-mix(in srgb, {colors.colour.system.success.surfaceHover}, black 5%)]"
|
|
146
151
|
},
|
|
147
152
|
_active: {
|
|
148
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent
|
|
153
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
149
154
|
}
|
|
150
155
|
},
|
|
151
156
|
spinner: {
|
|
@@ -164,7 +169,7 @@ const h = {}, Y = [
|
|
|
164
169
|
bg: "colour.system.success.surfaceHover"
|
|
165
170
|
},
|
|
166
171
|
_active: {
|
|
167
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent
|
|
172
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
168
173
|
}
|
|
169
174
|
},
|
|
170
175
|
spinner: {
|
|
@@ -183,7 +188,7 @@ const h = {}, Y = [
|
|
|
183
188
|
bg: "colour.system.success.surfaceHover"
|
|
184
189
|
},
|
|
185
190
|
_active: {
|
|
186
|
-
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent
|
|
191
|
+
boxShadow: "color-mix(in srgb, {colors.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px"
|
|
187
192
|
}
|
|
188
193
|
},
|
|
189
194
|
spinner: {
|
|
@@ -207,35 +212,131 @@ const h = {}, Y = [
|
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
},
|
|
215
|
+
{
|
|
216
|
+
mode: "secondary",
|
|
217
|
+
status: "info",
|
|
218
|
+
css: {
|
|
219
|
+
root: {
|
|
220
|
+
bg: "colour.system.info.surface",
|
|
221
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.info.surface}, black 5%)]",
|
|
222
|
+
color: "colour.system.info.text",
|
|
223
|
+
_hover: {
|
|
224
|
+
bg: "colour.system.info.surfaceHover",
|
|
225
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.info.surfaceHover}, black 5%)]"
|
|
226
|
+
},
|
|
227
|
+
_active: {
|
|
228
|
+
boxShadow: "[color-mix(in srgb, {colors.colour.system.info.surface}, transparent 40%) 0px 0px 0px 3px]"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
spinner: {
|
|
232
|
+
color: "colour.system.info.text"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
mode: "tertiary",
|
|
238
|
+
status: "info",
|
|
239
|
+
css: {
|
|
240
|
+
root: {
|
|
241
|
+
borderColor: "colour.system.info.fill",
|
|
242
|
+
color: "colour.system.info.text",
|
|
243
|
+
_hover: {
|
|
244
|
+
bg: "colour.system.info.surfaceHover"
|
|
245
|
+
},
|
|
246
|
+
_active: {
|
|
247
|
+
boxShadow: "[color-mix(in srgb, {colors.colour.system.info.surface}, transparent 40%) 0px 0px 0px 3px]"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
spinner: {
|
|
251
|
+
color: "colour.system.info.text"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
mode: "secondary",
|
|
257
|
+
status: "warning",
|
|
258
|
+
css: {
|
|
259
|
+
root: {
|
|
260
|
+
bg: "colour.system.warning.surface",
|
|
261
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surface}, black 5%)]",
|
|
262
|
+
color: "colour.system.warning.text",
|
|
263
|
+
_hover: {
|
|
264
|
+
bg: "colour.system.warning.surfaceHover",
|
|
265
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surfaceHover}, black 5%)]"
|
|
266
|
+
},
|
|
267
|
+
_active: {
|
|
268
|
+
boxShadow: "[color-mix(in srgb, {colors.colour.system.warning.surface}, transparent 40%) 0px 0px 0px 3px]"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
spinner: {
|
|
272
|
+
color: "colour.system.warning.text"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
mode: "tertiary",
|
|
278
|
+
status: "warning",
|
|
279
|
+
css: {
|
|
280
|
+
root: {
|
|
281
|
+
borderColor: "colour.system.warning.fill",
|
|
282
|
+
color: "colour.system.warning.text",
|
|
283
|
+
_hover: {
|
|
284
|
+
bg: "colour.system.warning.surfaceHover"
|
|
285
|
+
},
|
|
286
|
+
_active: {
|
|
287
|
+
boxShadow: "[color-mix(in srgb, {colors.colour.system.warning.surface}, transparent 40%) 0px 0px 0px 3px]"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
spinner: {
|
|
291
|
+
color: "colour.system.warning.text"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
210
295
|
{
|
|
211
296
|
mode: "primary",
|
|
212
297
|
loading: !0,
|
|
213
298
|
css: {
|
|
214
299
|
root: {
|
|
215
|
-
bg: "colour.neutral.
|
|
216
|
-
borderColor: "colour.neutral.
|
|
217
|
-
color: "colour.neutral.
|
|
300
|
+
bg: "colour.neutral.20",
|
|
301
|
+
borderColor: "colour.neutral.20",
|
|
302
|
+
color: "colour.neutral.70"
|
|
218
303
|
},
|
|
219
304
|
spinner: {
|
|
220
|
-
color: "colour.neutral.
|
|
305
|
+
color: "colour.neutral.70"
|
|
221
306
|
}
|
|
222
307
|
}
|
|
223
308
|
},
|
|
224
309
|
{
|
|
225
310
|
mode: [
|
|
226
311
|
"secondary",
|
|
227
|
-
"tertiary",
|
|
228
312
|
"quaternary"
|
|
229
313
|
],
|
|
230
314
|
loading: !0,
|
|
231
315
|
css: {
|
|
232
316
|
root: {
|
|
233
|
-
bg: "colour.neutral.
|
|
234
|
-
borderColor: "colour.neutral.
|
|
235
|
-
color: "colour.neutral.
|
|
317
|
+
bg: "colour.neutral.20",
|
|
318
|
+
borderColor: "colour.neutral.40",
|
|
319
|
+
color: "colour.neutral.70",
|
|
320
|
+
_hover: {
|
|
321
|
+
boxShadow: "none"
|
|
322
|
+
}
|
|
236
323
|
},
|
|
237
324
|
spinner: {
|
|
238
|
-
color: "colour.neutral.
|
|
325
|
+
color: "colour.neutral.70"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
mode: "tertiary",
|
|
331
|
+
loading: !0,
|
|
332
|
+
css: {
|
|
333
|
+
root: {
|
|
334
|
+
bg: "colour.neutral.20",
|
|
335
|
+
borderColor: "colour.neutral.70",
|
|
336
|
+
color: "colour.neutral.70"
|
|
337
|
+
},
|
|
338
|
+
spinner: {
|
|
339
|
+
color: "colour.neutral.70"
|
|
239
340
|
}
|
|
240
341
|
}
|
|
241
342
|
},
|
|
@@ -282,7 +383,7 @@ const h = {}, Y = [
|
|
|
282
383
|
}
|
|
283
384
|
}
|
|
284
385
|
}
|
|
285
|
-
],
|
|
386
|
+
], ro = [
|
|
286
387
|
[
|
|
287
388
|
"root",
|
|
288
389
|
"button__root"
|
|
@@ -299,20 +400,21 @@ const h = {}, Y = [
|
|
|
299
400
|
"spinner",
|
|
300
401
|
"button__spinner"
|
|
301
402
|
]
|
|
302
|
-
],
|
|
403
|
+
], so = /* @__PURE__ */ ro.map(([o, c]) => [o, X(c, I, J(oo, o))]), eo = W((o = {}) => Object.fromEntries(so.map(([c, r]) => [c, r.recipeFn(o)]))), S = [
|
|
303
404
|
"active",
|
|
304
405
|
"fluid",
|
|
305
406
|
"inButtonGroup",
|
|
407
|
+
"iconOnly",
|
|
306
408
|
"loading",
|
|
307
409
|
"mode",
|
|
308
410
|
"noWrap",
|
|
309
411
|
"status"
|
|
310
|
-
],
|
|
412
|
+
], to = (o) => ({ ...I, ...D(o) }), co = /* @__PURE__ */ Object.assign(eo, {
|
|
311
413
|
__recipe__: !1,
|
|
312
414
|
__name__: "button",
|
|
313
415
|
raw: (o) => o,
|
|
314
416
|
classNameMap: {},
|
|
315
|
-
variantKeys:
|
|
417
|
+
variantKeys: S,
|
|
316
418
|
variantMap: {
|
|
317
419
|
active: [
|
|
318
420
|
"true"
|
|
@@ -329,6 +431,9 @@ const h = {}, Y = [
|
|
|
329
431
|
inButtonGroup: [
|
|
330
432
|
"true"
|
|
331
433
|
],
|
|
434
|
+
iconOnly: [
|
|
435
|
+
"true"
|
|
436
|
+
],
|
|
332
437
|
loading: [
|
|
333
438
|
"true"
|
|
334
439
|
],
|
|
@@ -344,107 +449,127 @@ const h = {}, Y = [
|
|
|
344
449
|
],
|
|
345
450
|
status: [
|
|
346
451
|
"success",
|
|
347
|
-
"danger"
|
|
452
|
+
"danger",
|
|
453
|
+
"info",
|
|
454
|
+
"warning"
|
|
348
455
|
]
|
|
349
456
|
},
|
|
350
457
|
splitVariantProps(o) {
|
|
351
|
-
return
|
|
458
|
+
return z(o, S);
|
|
352
459
|
},
|
|
353
|
-
getVariantProps:
|
|
354
|
-
}),
|
|
460
|
+
getVariantProps: to
|
|
461
|
+
}), no = ({
|
|
355
462
|
active: o,
|
|
356
|
-
append:
|
|
357
|
-
children:
|
|
358
|
-
className:
|
|
359
|
-
element:
|
|
360
|
-
fluid:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
463
|
+
append: c,
|
|
464
|
+
children: r,
|
|
465
|
+
className: x,
|
|
466
|
+
element: u,
|
|
467
|
+
fluid: f,
|
|
468
|
+
icon: l,
|
|
469
|
+
loading: s = !1,
|
|
470
|
+
mode: g = "secondary",
|
|
471
|
+
prepend: y,
|
|
472
|
+
noWrap: k = !1,
|
|
473
|
+
onClick: v,
|
|
474
|
+
status: F,
|
|
475
|
+
value: B,
|
|
476
|
+
..._
|
|
477
|
+
}, G) => {
|
|
478
|
+
const i = M(), P = B ?? (typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? r : void 0), V = Y(), m = R(null), e = K({ value: P }), q = d(() => e ? e.active ? "primary" : "tertiary" : g, [e, g]), t = co({
|
|
371
479
|
active: (
|
|
372
480
|
// eslint-disable-next-line react-hooks/refs -- ref needed for forwarding
|
|
373
|
-
o ??
|
|
481
|
+
o ?? V?.isActiveActivator(m.current)
|
|
374
482
|
),
|
|
375
|
-
fluid:
|
|
376
|
-
inButtonGroup: !!
|
|
377
|
-
mode:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
483
|
+
fluid: f === !0 ? "true" : f,
|
|
484
|
+
inButtonGroup: !!e,
|
|
485
|
+
mode: q,
|
|
486
|
+
iconOnly: !!l,
|
|
487
|
+
loading: !!s,
|
|
488
|
+
noWrap: k,
|
|
489
|
+
status: F
|
|
490
|
+
}), [h, a] = d(
|
|
491
|
+
() => L(_),
|
|
492
|
+
[_]
|
|
493
|
+
), C = E(
|
|
494
|
+
(p) => {
|
|
495
|
+
s || (v?.(p), e?.toggle());
|
|
387
496
|
},
|
|
388
|
-
[
|
|
389
|
-
),
|
|
497
|
+
[e, s, v]
|
|
498
|
+
), w = d(
|
|
390
499
|
() => ({
|
|
391
|
-
children: /* @__PURE__ */
|
|
392
|
-
|
|
393
|
-
!!
|
|
394
|
-
|
|
500
|
+
children: /* @__PURE__ */ N(O, { children: [
|
|
501
|
+
y && !s && /* @__PURE__ */ n("span", { className: t.prepend, children: y }),
|
|
502
|
+
!!s && /* @__PURE__ */ n(
|
|
503
|
+
A,
|
|
395
504
|
{
|
|
396
|
-
className:
|
|
505
|
+
className: t.spinner,
|
|
397
506
|
id: i,
|
|
398
|
-
screenreaderText:
|
|
507
|
+
screenreaderText: s === !0 ? "Loading" : s
|
|
399
508
|
}
|
|
400
509
|
),
|
|
401
|
-
|
|
402
|
-
|
|
510
|
+
l ? /* @__PURE__ */ n(Z, { name: l }) : r,
|
|
511
|
+
c && /* @__PURE__ */ n("span", { className: t.append, children: c })
|
|
403
512
|
] }),
|
|
404
|
-
className:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
513
|
+
className: U(
|
|
514
|
+
x,
|
|
515
|
+
b.FormElement,
|
|
516
|
+
b.FormElementInner,
|
|
517
|
+
t.root,
|
|
518
|
+
Q(h),
|
|
519
|
+
b.Button
|
|
411
520
|
),
|
|
412
|
-
onClick:
|
|
521
|
+
onClick: C
|
|
413
522
|
}),
|
|
414
523
|
[
|
|
415
|
-
|
|
524
|
+
c,
|
|
525
|
+
r,
|
|
526
|
+
x,
|
|
527
|
+
C,
|
|
528
|
+
l,
|
|
416
529
|
s,
|
|
417
530
|
y,
|
|
418
|
-
_,
|
|
419
|
-
r,
|
|
420
|
-
m,
|
|
421
531
|
i,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
532
|
+
h,
|
|
533
|
+
t.append,
|
|
534
|
+
t.prepend,
|
|
535
|
+
t.root,
|
|
536
|
+
t.spinner
|
|
427
537
|
]
|
|
428
538
|
);
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
() =>
|
|
432
|
-
[
|
|
539
|
+
T(G, () => m.current);
|
|
540
|
+
const H = d(
|
|
541
|
+
() => u ?? (a.href ? "a" : "button"),
|
|
542
|
+
[u, a.href]
|
|
433
543
|
);
|
|
434
|
-
|
|
435
|
-
|
|
544
|
+
if (l && r) {
|
|
545
|
+
const p = String(r);
|
|
546
|
+
return /* @__PURE__ */ n($, { tooltipText: p, children: /* @__PURE__ */ n(
|
|
547
|
+
H,
|
|
548
|
+
{
|
|
549
|
+
"aria-label": p,
|
|
550
|
+
"aria-describedby": s ? i : void 0,
|
|
551
|
+
type: u || !a.href ? "button" : void 0,
|
|
552
|
+
...w,
|
|
553
|
+
...e?.props,
|
|
554
|
+
...a,
|
|
555
|
+
ref: m
|
|
556
|
+
}
|
|
557
|
+
) });
|
|
558
|
+
}
|
|
559
|
+
return /* @__PURE__ */ n(
|
|
560
|
+
H,
|
|
436
561
|
{
|
|
437
|
-
"aria-describedby":
|
|
438
|
-
type:
|
|
439
|
-
...
|
|
440
|
-
...
|
|
562
|
+
"aria-describedby": s ? i : void 0,
|
|
563
|
+
type: u || !a.href ? "button" : void 0,
|
|
564
|
+
...w,
|
|
565
|
+
...e?.props,
|
|
441
566
|
...a,
|
|
442
|
-
ref:
|
|
567
|
+
ref: m
|
|
443
568
|
}
|
|
444
569
|
);
|
|
445
|
-
},
|
|
446
|
-
|
|
570
|
+
}, ao = j(no);
|
|
571
|
+
ao.displayName = "IressButton";
|
|
447
572
|
export {
|
|
448
|
-
|
|
449
|
-
|
|
573
|
+
ao as I,
|
|
574
|
+
co as b
|
|
450
575
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "./components/Modal/Modal.styles.js";
|
|
3
|
+
import "./components/Modal/Modal.js";
|
|
4
|
+
import { IressModalProvider as m } from "./components/Modal/ModalProvider.js";
|
|
5
|
+
import "./components/Modal/hooks/useModal.js";
|
|
6
|
+
import { IressToasterProvider as d } from "./components/Toaster/ToasterProvider.js";
|
|
7
|
+
import "./components/Toaster/hooks/useToaster.js";
|
|
8
|
+
import "./components/Toaster/Toaster.styles.js";
|
|
9
|
+
import "./components/Toaster/components/Toast/Toast.styles.js";
|
|
10
|
+
import "./components/Slideout/Slideout.js";
|
|
11
|
+
import "./components/Slideout/Slideout.styles.js";
|
|
12
|
+
import { IressSlideoutProvider as g } from "./components/Slideout/SlideoutProvider.js";
|
|
13
|
+
import "./components/Slideout/hooks/useSlideout.js";
|
|
14
|
+
import { createPortal as n } from "react-dom";
|
|
15
|
+
import "./components/Icon/Icon.js";
|
|
16
|
+
import "./components/Icon/Icon.styles.js";
|
|
17
|
+
import { IressIconProvider as h } from "./components/Icon/IconProvider.js";
|
|
18
|
+
var r = /* @__PURE__ */ ((o) => (o.Color = "color", o.Dimension = "dimension", o.FontFamily = "fontFamily", o.FontSize = "fontSize", o.Background = "background", o.Border = "border", o.Radius = "radius", o.Shadow = "shadow", o.Typography = "typography", o))(r || {});
|
|
19
|
+
const l = [
|
|
20
|
+
"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
|
|
21
|
+
];
|
|
22
|
+
r.FontSize, r.FontFamily, r.FontFamily, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography, r.Typography;
|
|
23
|
+
const $ = ({
|
|
24
|
+
children: o,
|
|
25
|
+
container: p,
|
|
26
|
+
noDefaultFont: y,
|
|
27
|
+
position: i,
|
|
28
|
+
...s
|
|
29
|
+
}) => /* @__PURE__ */ a(m, { container: p, children: [
|
|
30
|
+
/* @__PURE__ */ e(d, { container: p, position: i, children: /* @__PURE__ */ e(g, { container: p, ...s, children: /* @__PURE__ */ e(h, { container: p, noSubsetting: !0, children: o }) }) }),
|
|
31
|
+
!y && n(
|
|
32
|
+
l.map((t) => /* @__PURE__ */ e(
|
|
33
|
+
"link",
|
|
34
|
+
{
|
|
35
|
+
rel: "stylesheet",
|
|
36
|
+
href: t,
|
|
37
|
+
"data-iress-design-system-font": !0
|
|
38
|
+
},
|
|
39
|
+
t
|
|
40
|
+
)),
|
|
41
|
+
document.head,
|
|
42
|
+
"design-system-font"
|
|
43
|
+
)
|
|
44
|
+
] });
|
|
45
|
+
$.displayName = "IressProvider";
|
|
46
|
+
export {
|
|
47
|
+
$ as I,
|
|
48
|
+
l as i
|
|
49
|
+
};
|
|
@@ -3,22 +3,25 @@ import { IressTextProps } from '../Text';
|
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { Statuses } from '../../types';
|
|
5
5
|
import { IressButtonProps, IressCloseButtonProps } from '../Button';
|
|
6
|
+
export interface IressAlertButtonProps extends Omit<IressButtonProps, 'mode' | 'status'> {
|
|
7
|
+
mode?: 'secondary' | 'tertiary';
|
|
8
|
+
}
|
|
6
9
|
export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
|
|
7
10
|
/**
|
|
8
11
|
* Actions to display in the alert. These will be rendered as buttons with opinionated styling.
|
|
9
12
|
* If you want to use custom buttons, use the `footer` prop instead.
|
|
10
13
|
**/
|
|
11
|
-
actions?:
|
|
14
|
+
actions?: IressAlertButtonProps[];
|
|
12
15
|
/**
|
|
13
16
|
* Contents of the alert. Is automatically wrapped in `<IressText />` and will inherit its styling.
|
|
14
17
|
**/
|
|
15
18
|
children?: ReactNode;
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* If true, the alert will be dismissed and unrendered from the DOM. Use for uncontrolled dismissal of the alert, where the component manages its own dismissed state internally.
|
|
18
21
|
**/
|
|
19
22
|
defaultDismissed?: boolean;
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* If true, the alert will be dismissed and unrendered from the DOM. Use for controlled dismissal of the alert, where the parent component manages the dismissed state and passes it down via this prop.
|
|
22
25
|
**/
|
|
23
26
|
dismissed?: boolean;
|
|
24
27
|
/**
|
|
@@ -36,6 +39,10 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
|
|
|
36
39
|
* If not provided, the icon will be determined by the `status` prop.
|
|
37
40
|
**/
|
|
38
41
|
icon?: IressIconProps['name'] | false;
|
|
42
|
+
/**
|
|
43
|
+
* If true, the alert will have a layout that supports longer content, with increased spacing and the icon aligned to the top of the alert instead of centered. Should be used when the content of the alert is more than a couple of sentences.
|
|
44
|
+
*/
|
|
45
|
+
multiLine?: boolean;
|
|
39
46
|
/**
|
|
40
47
|
* Icon to display in the alert.
|
|
41
48
|
* If set to `false`, no icon will be displayed.
|
|
@@ -50,11 +57,11 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
|
|
|
50
57
|
/**
|
|
51
58
|
* Variants of the alert, allowing it to be styled differently based on where its used in the application.
|
|
52
59
|
* - Sidebar: The icon will be aligned to the heading, and the text will appear below the icon.
|
|
53
|
-
* -
|
|
60
|
+
* - Full-width: The border will be removed, except for the bottom border.
|
|
54
61
|
*/
|
|
55
|
-
variant?: 'sidebar' | '
|
|
62
|
+
variant?: 'sidebar' | 'full-width';
|
|
56
63
|
}
|
|
57
64
|
export declare const IressAlert: {
|
|
58
|
-
({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, onDismiss, status, variant, ...restProps }: IressAlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
65
|
+
({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, multiLine, onDismiss, status, variant, ...restProps }: IressAlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
59
66
|
displayName: string;
|
|
60
67
|
};
|