@iress-oss/ids-components 6.0.0-alpha.5 → 6.0.0-alpha.7
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-C5ubHBTi.js → Autocomplete-BQ_YPb5A.js} +1 -1
- package/dist/{Button-mmhMLwp9.js → Button-B4nt3P1v.js} +13 -22
- package/dist/{Provider-8wS70V56.js → Provider-CDIbqQK0.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- 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/Checkbox/Checkbox.styles.js +5 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +5 -1
- package/dist/components/Filter/Filter.js +2 -2
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.js +2 -2
- package/dist/components/Label/LabelBase/LabelBase.js +28 -23
- package/dist/components/Modal/Modal.js +39 -38
- package/dist/components/Modal/Modal.styles.js +23 -0
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +41 -41
- package/dist/components/Radio/Radio.styles.js +7 -2
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +2 -4
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -5
- package/dist/components/RichSelect/components/SelectOptions.js +61 -60
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +4 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toggle/Toggle.styles.js +4 -3
- package/dist/constants.js +1 -1
- package/dist/enums.js +3 -3
- package/dist/{index-CZ9ot38T.js → index-aTLA1VIV.js} +1 -1
- package/dist/main.js +3 -3
- package/dist/patterns/Form/FormField/FormField.js +5 -5
- package/dist/patterns/Form/FormField/FormFieldset.js +1 -1
- package/dist/patterns/Form/HookForm/HookForm.js +8 -8
- package/dist/patterns/Form/components/LongForm.js +9 -9
- package/dist/patterns/Form/components/ShortForm.js +7 -7
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Shadow/Shadow.js +73 -69
- package/dist/src/components/Modal/Modal.d.ts +8 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +23 -0
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +10 -0
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/enums.d.ts +2 -1
- package/dist/src/patterns/Form/FormField/hooks/useFieldRenderProps.d.ts +3 -9
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/index.esm-BiUTGNH8.js +0 -1080
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useRef as _, useState as y, useEffect as g, useImperativeHandle as h } from "react";
|
|
3
3
|
import { createPortal as f } from "react-dom";
|
|
4
|
-
import { i as w, I as k } from "../../Provider-
|
|
4
|
+
import { i as w, I as k } from "../../Provider-CDIbqQK0.js";
|
|
5
5
|
const z = `@layer reset, base, tokens, recipes, utilities;
|
|
6
6
|
|
|
7
7
|
@layer reset{
|
|
@@ -337,7 +337,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
337
337
|
--spacing-xl: var(--iress-spacing-10, calc(10 * var(--iress-spacing-100, .25rem)));
|
|
338
338
|
--spacing-button\\.inline: calc((var(--iress-radius-system--button-top-left, var(--iress-radius-075, calc(0.75 * 1rem))) * 0.25) + var(--iress-spacing-2, calc(2 * var(--iress-spacing-100, .25rem))));
|
|
339
339
|
--spacing-button\\.block: calc(var(--iress-radius-system--button-top-left, var(--iress-radius-075, calc(0.75 * 1rem))) * 0.25);
|
|
340
|
-
--spacing-field\\.footer: calc(var(--iress-typography-base-size, .875rem) * 2
|
|
340
|
+
--spacing-field\\.footer: calc(var(--iress-typography-base-size, .875rem) * 2);
|
|
341
341
|
--spacing-slider\\.tick: calc((calc(var(--iress-typography-base-size, .875rem) * (10 / 14)) - calc(var(--iress-typography-base-size, .875rem) * (5 / 14))) / 2);
|
|
342
342
|
--z-index-100: 100;
|
|
343
343
|
--z-index-200: 200;
|
|
@@ -869,6 +869,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
869
869
|
.button__root:is(:focus-visible, [data-focus-visible]) {
|
|
870
870
|
outline: 2px solid transparent;
|
|
871
871
|
outline-offset: 2px;
|
|
872
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
872
873
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
873
874
|
}
|
|
874
875
|
|
|
@@ -1027,12 +1028,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1027
1028
|
transition: none;
|
|
1028
1029
|
}
|
|
1029
1030
|
|
|
1030
|
-
.button__root--inButtonGroup_true::after {
|
|
1031
|
-
border-radius: var(--radii-radius\\.system\\.button);
|
|
1032
|
-
transform: translateZ(-1px) scale(1);
|
|
1033
|
-
transform-origin: center;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
1031
|
.button__root--loading_true {
|
|
1037
1032
|
cursor: not-allowed;
|
|
1038
1033
|
filter: saturate(0.25);
|
|
@@ -1443,6 +1438,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1443
1438
|
}
|
|
1444
1439
|
|
|
1445
1440
|
.layerStyle_elevation\\.focus {
|
|
1441
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1446
1442
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1447
1443
|
}
|
|
1448
1444
|
|
|
@@ -1551,38 +1547,52 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1551
1547
|
}
|
|
1552
1548
|
|
|
1553
1549
|
.group:focus-within .groupFocusWithin\\:layerStyle_elevation\\.focus {
|
|
1550
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1554
1551
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1555
1552
|
}
|
|
1556
1553
|
|
|
1557
1554
|
.focusWithin\\:layerStyle_elevation\\.focus:focus-within {
|
|
1555
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1558
1556
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1559
1557
|
}
|
|
1560
1558
|
|
|
1561
1559
|
.\\[\\&\\:focus-within\\]\\:layerStyle_elevation\\.focus:focus-within {
|
|
1560
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1562
1561
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1563
1562
|
}
|
|
1564
1563
|
|
|
1565
1564
|
.focus\\:layerStyle_elevation\\.focus:is(:focus, [data-focus]) {
|
|
1565
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1566
1566
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
.\\[\\&\\:has\\(input\\:focus\\,_textarea\\:focus\\)\\]\\:layerStyle_elevation\\.focus:has(input:focus, textarea:focus) {
|
|
1570
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1570
1571
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1571
1572
|
}
|
|
1572
1573
|
|
|
1573
1574
|
.focusVisible\\:layerStyle_elevation\\.focus:is(:focus-visible, [data-focus-visible]) {
|
|
1575
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1576
|
+
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
.\\[\\&\\:has\\(select\\:focus\\)\\]\\:layerStyle_elevation\\.focus:has(select:focus) {
|
|
1580
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1574
1581
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1575
1582
|
}
|
|
1576
1583
|
|
|
1577
1584
|
.focusVisibleWebkitSliderThumb\\:layerStyle_elevation\\.focus:focus-visible::-webkit-slider-thumb {
|
|
1585
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1578
1586
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1579
1587
|
}
|
|
1580
1588
|
|
|
1581
1589
|
.focusVisibleMozRangeThumb\\:layerStyle_elevation\\.focus:focus-visible::-moz-range-thumb {
|
|
1590
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1582
1591
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1583
1592
|
}
|
|
1584
1593
|
|
|
1585
1594
|
.\\[\\&\\:has\\(\\[role\\=\\"switch\\"\\]\\:focus-visible\\)\\]\\:layerStyle_elevation\\.focus:has([role="switch"]:focus-visible) {
|
|
1595
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1586
1596
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1587
1597
|
}
|
|
1588
1598
|
|
|
@@ -1592,18 +1602,22 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1592
1602
|
}
|
|
1593
1603
|
|
|
1594
1604
|
.\\[\\&\\:focus\\]\\:layerStyle_elevation\\.focus:focus {
|
|
1605
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1595
1606
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1596
1607
|
}
|
|
1597
1608
|
|
|
1598
1609
|
.active\\:layerStyle_elevation\\.focus:is(:active, [data-active]) {
|
|
1610
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1599
1611
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1600
1612
|
}
|
|
1601
1613
|
|
|
1602
1614
|
.focusVisible\\:before\\:layerStyle_elevation\\.focus:is(:focus-visible, [data-focus-visible])::before {
|
|
1615
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1603
1616
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1604
1617
|
}
|
|
1605
1618
|
|
|
1606
1619
|
.focus\\:\\[\\&_\\+_label\\]\\:after\\:layerStyle_elevation\\.focus:is(:focus, [data-focus]) + label::after {
|
|
1620
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1607
1621
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1608
1622
|
}
|
|
1609
1623
|
|
|
@@ -1621,6 +1635,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1621
1635
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
1622
1636
|
}
|
|
1623
1637
|
.xs\\:layerStyle_elevation\\.focus {
|
|
1638
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1624
1639
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1625
1640
|
}
|
|
1626
1641
|
.xs\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -1739,6 +1754,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1739
1754
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
1740
1755
|
}
|
|
1741
1756
|
.sm\\:layerStyle_elevation\\.focus {
|
|
1757
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1742
1758
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1743
1759
|
}
|
|
1744
1760
|
.sm\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -1857,6 +1873,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1857
1873
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
1858
1874
|
}
|
|
1859
1875
|
.md\\:layerStyle_elevation\\.focus {
|
|
1876
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1860
1877
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1861
1878
|
}
|
|
1862
1879
|
.md\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -1975,6 +1992,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
1975
1992
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
1976
1993
|
}
|
|
1977
1994
|
.lg\\:layerStyle_elevation\\.focus {
|
|
1995
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
1978
1996
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
1979
1997
|
}
|
|
1980
1998
|
.lg\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -2093,6 +2111,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
2093
2111
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
2094
2112
|
}
|
|
2095
2113
|
.xl\\:layerStyle_elevation\\.focus {
|
|
2114
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
2096
2115
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
2097
2116
|
}
|
|
2098
2117
|
.xl\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -2211,6 +2230,7 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
2211
2230
|
box-shadow: var(--iress-elevation-overflow-shadow, inset 7px 0px 5px #091E4215);
|
|
2212
2231
|
}
|
|
2213
2232
|
.xxl\\:layerStyle_elevation\\.focus {
|
|
2233
|
+
border-color: var(--iress-elevation-focus-border-color, #0066FF) !important;
|
|
2214
2234
|
box-shadow: var(--iress-elevation-focus-shadow, 0px 0px 0px 1.5px var(--iress-colour-neutral-10, #FFFFFF), 0px 0px 0px 3.5px #0066FF);
|
|
2215
2235
|
}
|
|
2216
2236
|
.xxl\\:layerStyle_elevation\\.focusCompact {
|
|
@@ -2412,6 +2432,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
2412
2432
|
padding: var(--spacing-spacing\\.3);
|
|
2413
2433
|
}
|
|
2414
2434
|
|
|
2435
|
+
.font_inherit {
|
|
2436
|
+
font: inherit;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2415
2439
|
.bg_\\[currentColor\\] {
|
|
2416
2440
|
background: currentColor;
|
|
2417
2441
|
}
|
|
@@ -3070,6 +3094,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
3070
3094
|
border-width: 0;
|
|
3071
3095
|
}
|
|
3072
3096
|
|
|
3097
|
+
.px_spacing\\.2 {
|
|
3098
|
+
padding-inline: var(--spacing-spacing\\.2);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3073
3101
|
.flex_auto {
|
|
3074
3102
|
flex: 1 1 auto;
|
|
3075
3103
|
}
|
|
@@ -3082,10 +3110,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
3082
3110
|
margin-block: var(--spacing-spacing\\.2);
|
|
3083
3111
|
}
|
|
3084
3112
|
|
|
3085
|
-
.px_spacing\\.2 {
|
|
3086
|
-
padding-inline: var(--spacing-spacing\\.2);
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
3113
|
.px_md {
|
|
3090
3114
|
padding-inline: var(--spacing-md);
|
|
3091
3115
|
}
|
|
@@ -3847,10 +3871,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
3847
3871
|
position: relative;
|
|
3848
3872
|
}
|
|
3849
3873
|
|
|
3850
|
-
.bx-sh_none {
|
|
3851
|
-
box-shadow: none;
|
|
3852
|
-
}
|
|
3853
|
-
|
|
3854
3874
|
.d_contents {
|
|
3855
3875
|
display: contents;
|
|
3856
3876
|
}
|
|
@@ -4370,6 +4390,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
4370
4390
|
opacity: 0.5;
|
|
4371
4391
|
}
|
|
4372
4392
|
|
|
4393
|
+
.bx-sh_none {
|
|
4394
|
+
box-shadow: none;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4373
4397
|
.rg_spacing\\.1 {
|
|
4374
4398
|
row-gap: var(--spacing-spacing\\.1);
|
|
4375
4399
|
}
|
|
@@ -4594,8 +4618,8 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
4594
4618
|
background-color: var(--colors-transparent);
|
|
4595
4619
|
}
|
|
4596
4620
|
|
|
4597
|
-
.
|
|
4598
|
-
margin-inline-start: var(--spacing-spacing\\.1);
|
|
4621
|
+
.ms_\\[calc\\(\\{spacing\\.spacing\\.1\\}_\\*_0\\.5\\)\\] {
|
|
4622
|
+
margin-inline-start: calc(var(--spacing-spacing\\.1) * 0.5);
|
|
4599
4623
|
}
|
|
4600
4624
|
|
|
4601
4625
|
.me_spacing\\.1 {
|
|
@@ -4606,6 +4630,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
4606
4630
|
line-height: 1.5rem;
|
|
4607
4631
|
}
|
|
4608
4632
|
|
|
4633
|
+
.ms_spacing\\.1 {
|
|
4634
|
+
margin-inline-start: var(--spacing-spacing\\.1);
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4609
4637
|
.mbe_spacing\\.1 {
|
|
4610
4638
|
margin-block-end: var(--spacing-spacing\\.1);
|
|
4611
4639
|
}
|
|
@@ -5354,16 +5382,16 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
5354
5382
|
padding-top: var(--spacing-spacing\\.3);
|
|
5355
5383
|
}
|
|
5356
5384
|
|
|
5357
|
-
.w_\\[
|
|
5358
|
-
width:
|
|
5385
|
+
.w_\\[1\\.4em\\] {
|
|
5386
|
+
width: 1.4em;
|
|
5359
5387
|
}
|
|
5360
5388
|
|
|
5361
|
-
.min-w_\\[
|
|
5362
|
-
min-width:
|
|
5389
|
+
.min-w_\\[1\\.4em\\] {
|
|
5390
|
+
min-width: 1.4em;
|
|
5363
5391
|
}
|
|
5364
5392
|
|
|
5365
|
-
.h_\\[
|
|
5366
|
-
height:
|
|
5393
|
+
.h_\\[1\\.4em\\] {
|
|
5394
|
+
height: 1.4em;
|
|
5367
5395
|
}
|
|
5368
5396
|
|
|
5369
5397
|
.w_\\[calc\\(1\\.25_\\*_\\{sizes\\.typography\\.base\\}\\)\\] {
|
|
@@ -5538,6 +5566,14 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
5538
5566
|
max-height: calc(100vh - (var(--spacing-spacing\\.7) * 2));
|
|
5539
5567
|
}
|
|
5540
5568
|
|
|
5569
|
+
.w_overlay\\.sm {
|
|
5570
|
+
width: var(--sizes-overlay\\.sm);
|
|
5571
|
+
}
|
|
5572
|
+
|
|
5573
|
+
.w_overlay\\.lg {
|
|
5574
|
+
width: var(--sizes-overlay\\.lg);
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5541
5577
|
.top_spacing\\.2 {
|
|
5542
5578
|
top: var(--spacing-spacing\\.2);
|
|
5543
5579
|
}
|
|
@@ -5590,14 +5626,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
5590
5626
|
width: 1px;
|
|
5591
5627
|
}
|
|
5592
5628
|
|
|
5593
|
-
.w_\\[calc\\(1\\.3_\\*_1rem\\)\\] {
|
|
5594
|
-
width: calc(1.3 * 1rem);
|
|
5595
|
-
}
|
|
5596
|
-
|
|
5597
|
-
.h_\\[calc\\(1\\.3_\\*_1rem\\)\\] {
|
|
5598
|
-
height: calc(1.3 * 1rem);
|
|
5599
|
-
}
|
|
5600
|
-
|
|
5601
5629
|
.min-h_input\\.height {
|
|
5602
5630
|
min-height: var(--sizes-input\\.height);
|
|
5603
5631
|
}
|
|
@@ -5686,10 +5714,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
5686
5714
|
margin-top: var(--spacing-spacing\\.2);
|
|
5687
5715
|
}
|
|
5688
5716
|
|
|
5689
|
-
.w_overlay\\.sm {
|
|
5690
|
-
width: var(--sizes-overlay\\.sm);
|
|
5691
|
-
}
|
|
5692
|
-
|
|
5693
5717
|
.min-w_slider\\.thumb {
|
|
5694
5718
|
min-width: var(--sizes-slider\\.thumb);
|
|
5695
5719
|
}
|
|
@@ -6842,10 +6866,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
6842
6866
|
width: var(--sizes-container\\.xxl);
|
|
6843
6867
|
}
|
|
6844
6868
|
|
|
6845
|
-
.w_overlay\\.lg {
|
|
6846
|
-
width: var(--sizes-overlay\\.lg);
|
|
6847
|
-
}
|
|
6848
|
-
|
|
6849
6869
|
.w_chevron\\.select {
|
|
6850
6870
|
width: var(--sizes-chevron\\.select);
|
|
6851
6871
|
}
|
|
@@ -7427,6 +7447,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
7427
7447
|
z-index: -1;
|
|
7428
7448
|
}
|
|
7429
7449
|
|
|
7450
|
+
.\\[\\&_\\.ids-popover__content\\]\\:z_100 .ids-popover__content {
|
|
7451
|
+
z-index: var(--z-index-100);
|
|
7452
|
+
}
|
|
7453
|
+
|
|
7430
7454
|
:where([dir=rtl], :dir(rtl)) .rtl\\:selectChevronRtl_true:after {
|
|
7431
7455
|
content: '';
|
|
7432
7456
|
width: calc(var(--iress-typography-base-size, .875rem) * 0.5);
|
|
@@ -7865,19 +7889,11 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
7865
7889
|
min-height: calc(var(--sizes-input\\.height) - var(--spacing-xs) * 2.5);
|
|
7866
7890
|
}
|
|
7867
7891
|
|
|
7868
|
-
.focusWithin\\:bd-c_colour\\.primary\\.fill:focus-within {
|
|
7869
|
-
border-color: var(--colors-colour\\.primary\\.fill);
|
|
7870
|
-
}
|
|
7871
|
-
|
|
7872
7892
|
.focusWithin\\:ring_\\[none\\]:focus-within {
|
|
7873
7893
|
outline: 2px solid transparent;
|
|
7874
7894
|
outline-offset: 2px;
|
|
7875
7895
|
}
|
|
7876
7896
|
|
|
7877
|
-
.\\[\\&\\:focus-within\\]\\:bd-c_colour\\.primary\\.fill:focus-within {
|
|
7878
|
-
border-color: var(--colors-colour\\.primary\\.fill);
|
|
7879
|
-
}
|
|
7880
|
-
|
|
7881
7897
|
.\\[\\&\\:focus-within\\]\\:ring_\\[none\\]:focus-within {
|
|
7882
7898
|
outline: 2px solid transparent;
|
|
7883
7899
|
outline-offset: 2px;
|
|
@@ -7909,14 +7925,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
7909
7925
|
outline-offset: 2px;
|
|
7910
7926
|
}
|
|
7911
7927
|
|
|
7912
|
-
.\\[\\&\\:has\\(input\\:focus\\,_textarea\\:focus\\)\\]\\:bd-c_colour\\.primary\\.fill:has(input:focus, textarea:focus) {
|
|
7913
|
-
border-color: var(--colors-colour\\.primary\\.fill);
|
|
7914
|
-
}
|
|
7915
|
-
|
|
7916
|
-
.\\[\\&\\:focus\\]\\:bd-c_colour\\.primary\\.fill:focus {
|
|
7917
|
-
border-color: var(--colors-colour\\.primary\\.fill);
|
|
7918
|
-
}
|
|
7919
|
-
|
|
7920
7928
|
.\\[\\&\\:focus\\]\\:ring_\\[none\\]:focus {
|
|
7921
7929
|
outline: 2px solid transparent;
|
|
7922
7930
|
outline-offset: 2px;
|
|
@@ -8062,10 +8070,6 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
8062
8070
|
color: var(--colors-colour\\.neutral\\.80);
|
|
8063
8071
|
}
|
|
8064
8072
|
|
|
8065
|
-
.active\\:bd-c_colour\\.primary\\.fill:is(:active, [data-active]) {
|
|
8066
|
-
border-color: var(--colors-colour\\.primary\\.fill);
|
|
8067
|
-
}
|
|
8068
|
-
|
|
8069
8073
|
.active\\:ring_\\[none\\]:is(:active, [data-active]) {
|
|
8070
8074
|
outline: 2px solid transparent;
|
|
8071
8075
|
outline-offset: 2px;
|
|
@@ -21627,8 +21631,8 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
21627
21631
|
if (i.current.shadowRoot)
|
|
21628
21632
|
m(i.current.shadowRoot);
|
|
21629
21633
|
else {
|
|
21630
|
-
const n = i.current.attachShadow({ mode: "open" }),
|
|
21631
|
-
|
|
21634
|
+
const n = i.current.attachShadow({ mode: "open" }), r = document.createElement("style"), s = document.querySelector("meta[name='csp-nonce']")?.getAttribute("content");
|
|
21635
|
+
s && r.setAttribute("nonce", s), r.textContent = z, n.appendChild(r);
|
|
21632
21636
|
const c = document.createElement("div");
|
|
21633
21637
|
n.appendChild(c), l.current = c, m(n);
|
|
21634
21638
|
}
|
|
@@ -21636,8 +21640,8 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
21636
21640
|
e.forEach((n) => {
|
|
21637
21641
|
if (document.head.querySelector(`link[href="${n}"]`))
|
|
21638
21642
|
return;
|
|
21639
|
-
const
|
|
21640
|
-
|
|
21643
|
+
const r = document.createElement("link");
|
|
21644
|
+
r.href = n, r.rel = "stylesheet", document.head.appendChild(r);
|
|
21641
21645
|
});
|
|
21642
21646
|
}, [e]), g(() => {
|
|
21643
21647
|
if (o || !a) return;
|
|
@@ -21647,15 +21651,15 @@ const z = `@layer reset, base, tokens, recipes, utilities;
|
|
|
21647
21651
|
a && t.forEach((n) => {
|
|
21648
21652
|
if (a.querySelector(`link[href="${n}"]`))
|
|
21649
21653
|
return;
|
|
21650
|
-
const
|
|
21651
|
-
|
|
21654
|
+
const r = document.createElement("link");
|
|
21655
|
+
r.href = n, r.rel = "stylesheet", a.appendChild(r);
|
|
21652
21656
|
});
|
|
21653
21657
|
}, [a, t]), g(() => {
|
|
21654
|
-
a && Object.entries(p).forEach(([n,
|
|
21658
|
+
a && Object.entries(p).forEach(([n, r]) => {
|
|
21655
21659
|
if (a.querySelector(`style[id="${n}"]`))
|
|
21656
21660
|
return;
|
|
21657
|
-
const
|
|
21658
|
-
c &&
|
|
21661
|
+
const s = document.createElement("style"), c = document.querySelector("meta[name='csp-nonce']")?.getAttribute("content");
|
|
21662
|
+
c && s.setAttribute("nonce", c), s.setAttribute("id", n), s.textContent = r, a.appendChild(s);
|
|
21659
21663
|
});
|
|
21660
21664
|
}, [a, p]), h(
|
|
21661
21665
|
u,
|
|
@@ -64,6 +64,13 @@ export interface IressModalProps extends IressStyledProps {
|
|
|
64
64
|
* When set to `true` the modal will be visible. Use for controlled modals.
|
|
65
65
|
*/
|
|
66
66
|
show?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Size of the modal
|
|
69
|
+
* - `sm`: Small modals communicate the outcome of an irreversible action. They should be concise and straightforward, containing a single action and, in some cases, a single input field.
|
|
70
|
+
* - `md`: Medium modals provide optional supporting information to help users understand the context of a word or screen. They may contain a single action and, in some cases, a larger input such as a textarea.
|
|
71
|
+
* - `lg`: Large modals are used for more complex tasks that require multiple steps or a lot of information as well as media such as video and PDF documents. They can contain multiple actions, inputs, and supporting information.
|
|
72
|
+
*/
|
|
73
|
+
size?: 'sm' | 'md' | 'lg';
|
|
67
74
|
/**
|
|
68
75
|
* When set to `true`, the modal will act like a static element when open.
|
|
69
76
|
* This means it will not lock scroll or focus within the modal.
|
|
@@ -71,4 +78,4 @@ export interface IressModalProps extends IressStyledProps {
|
|
|
71
78
|
*/
|
|
72
79
|
static?: boolean;
|
|
73
80
|
}
|
|
74
|
-
export declare const IressModal: ({ children, className, closeText, container, "data-testid": dataTestid, defaultShow, disableBackdropClick, fixedFooter, footer, heading: headingProp, noCloseButton, onEntered, onExited, onShowChange, onStatus, onTransitionEnd, show, static: isStatic, style, ...restProps }: IressModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
81
|
+
export declare const IressModal: ({ children, className, closeText, container, "data-testid": dataTestid, defaultShow, disableBackdropClick, fixedFooter, footer, heading: headingProp, noCloseButton, onEntered, onExited, onShowChange, onStatus, onTransitionEnd, show, size, static: isStatic, style, ...restProps }: IressModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -32,6 +32,29 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Size of the modal
|
|
37
|
+
* - `sm`: Small modals communicate the outcome of an irreversible action. They should be concise and straightforward, containing a single action and, in some cases, a single input field.
|
|
38
|
+
* - `md`: Medium modals provide optional supporting information to help users understand the context of a word or screen. They may contain a single action and, in some cases, a larger input such as a textarea.
|
|
39
|
+
* - `lg`: Large modals are used for more complex tasks that require multiple steps or a lot of information as well as media such as video and PDF documents. They can contain multiple actions, inputs, and supporting information.
|
|
40
|
+
*/
|
|
41
|
+
size: {
|
|
42
|
+
sm: {
|
|
43
|
+
modal: {
|
|
44
|
+
width: "overlay.sm";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
md: {
|
|
48
|
+
modal: {
|
|
49
|
+
width: "overlay.md";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
lg: {
|
|
53
|
+
modal: {
|
|
54
|
+
width: "overlay.lg";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
35
58
|
/**
|
|
36
59
|
* The state of the modal.
|
|
37
60
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const radio: import('../../styled-system/types').SlotRecipeRuntimeFn<"input" | "label" | "root" | "checkboxMark" | "radioMark" | "checkedRadioMark", {
|
|
1
|
+
export declare const radio: import('../../styled-system/types').SlotRecipeRuntimeFn<"input" | "label" | "root" | "checkboxMark" | "labelContent" | "radioMark" | "checkedRadioMark", {
|
|
2
2
|
hiddenControl: {
|
|
3
3
|
true: {
|
|
4
4
|
label: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ForwardedRef, ReactElement, ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import { IressSelectMenuProps } from '../RichSelect';
|
|
2
3
|
import { AutocompleteSearchHookProps } from '../Autocomplete';
|
|
3
4
|
import { IressSelectActivatorProps } from './components/SelectActivator';
|
|
4
5
|
import { SelectHiddenInputRenderProps } from './components/SelectHiddenInput';
|
|
@@ -7,6 +8,7 @@ import { ControlledValue } from '../../hooks';
|
|
|
7
8
|
import { FormattedLabelValueMeta, LabelValueMeta, ReactHookFormCompatibleRef } from '../../interfaces';
|
|
8
9
|
import { FloatingUIAligns } from '../../types';
|
|
9
10
|
import { IressPopoverProps, PopoverRef } from '../Popover';
|
|
11
|
+
import { IressButtonProps } from '../Button';
|
|
10
12
|
export interface IressRichSelectProps<TMultiple extends boolean = false> extends Omit<AutocompleteSearchHookProps, 'query'>, Omit<IressPopoverProps, 'activator' | 'children' | 'contentClassName' | 'defaultShow' | 'defaultValue' | 'disabledAutoToggle' | 'onChange' | 'matchActivatorWidth' | 'show' | 'width'>, Pick<IressSelectActivatorProps, 'append' | 'prepend' | 'selectedOptionsText'> {
|
|
11
13
|
/**
|
|
12
14
|
* Sets the alignment of the dropdown relative to the activator element.
|
|
@@ -133,6 +135,14 @@ export interface SelectOptionsRenderProps<TMultiple extends boolean = false> ext
|
|
|
133
135
|
* The query value that was used to filter the items (may be different from query).
|
|
134
136
|
*/
|
|
135
137
|
debouncedQuery: string;
|
|
138
|
+
/**
|
|
139
|
+
* Clears the current selection in the menu.
|
|
140
|
+
*/
|
|
141
|
+
handleClear: IressButtonProps['onClick'] & IressButtonProps['onKeyDown'];
|
|
142
|
+
/**
|
|
143
|
+
* When the menu selection changes, this will set the value and close the menu.
|
|
144
|
+
*/
|
|
145
|
+
handleMenuChange: IressSelectMenuProps<TMultiple>['onChange'];
|
|
136
146
|
/**
|
|
137
147
|
* The query value to filter items by and create search results.
|
|
138
148
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IressRichSelectProps, SelectOptionsRenderProps } from '../RichSelect';
|
|
2
|
-
interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<IressRichSelectProps<TMultiple>, 'autoHighlight' | 'minSearchLength' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'value' | 'initialOptions'>, Omit<SelectOptionsRenderProps<TMultiple>, 'close'> {
|
|
2
|
+
interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<IressRichSelectProps<TMultiple>, 'autoHighlight' | 'minSearchLength' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'value' | 'initialOptions'>, Omit<SelectOptionsRenderProps<TMultiple>, 'close' | 'handleClear' | 'handleMenuChange'> {
|
|
3
3
|
setShow: (show: boolean) => void;
|
|
4
4
|
shouldShowInstructions?: boolean;
|
|
5
5
|
shouldShowNoResults?: boolean;
|
package/dist/src/enums.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare enum GlobalCSSClass {
|
|
|
28
28
|
Input = "ids-input",
|
|
29
29
|
InputCurrency = "ids-input--currency",
|
|
30
30
|
InputPopover = "ids-popover--input",
|
|
31
|
+
Label = "ids-label",
|
|
31
32
|
Link = "ids-link",
|
|
32
33
|
Menu = "ids-menu",
|
|
33
34
|
MenuHeading = "ids-text--menu-heading",
|
|
@@ -77,7 +78,7 @@ export declare enum GlobalCSSClass {
|
|
|
77
78
|
Tooltip = "ids-tooltip",
|
|
78
79
|
ValidationLink = "ids-validation-message--link",
|
|
79
80
|
ValidationMessage = "ids-validation-message",
|
|
80
|
-
ValidationSummary = "ids-validation-
|
|
81
|
+
ValidationSummary = "ids-validation-summary"
|
|
81
82
|
}
|
|
82
83
|
/** @deprecated Breakpoint enum is now deprecated and will be removed in a future version. Please use the Breakpoints type instead. **/
|
|
83
84
|
export declare enum Breakpoint {
|