@iress-oss/ids-components 6.0.0-alpha.1 → 6.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Autocomplete-CLvWVHp6.js → Autocomplete-C5ubHBTi.js} +1 -1
- package/dist/{Button-D6AL0bia.js → Button-mmhMLwp9.js} +4 -1
- package/dist/{Provider-BXQiO7Gp.js → Provider-8wS70V56.js} +13 -13
- package/dist/{TableProvider-_4Whj6P5.js → TableProvider-bdUNuoG-.js} +1 -11
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/Alert.styles.js +14 -14
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.styles.js +4 -4
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/Card.styles.js +16 -16
- package/dist/components/Checkbox/Checkbox.styles.js +5 -5
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -10
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +9 -9
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +5 -5
- package/dist/components/Field/components/FieldHint.js +1 -1
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/Filter.styles.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +84 -86
- package/dist/components/Input/Input.styles.js +7 -7
- package/dist/components/Label/Label.styles.js +3 -3
- package/dist/components/Link/Link.styles.js +2 -2
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.styles.js +11 -11
- package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +1 -1
- package/dist/components/Modal/Modal.js +106 -112
- package/dist/components/Modal/Modal.styles.js +8 -8
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +35 -41
- package/dist/components/Progress/Progress.styles.js +3 -3
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +66 -60
- package/dist/components/Radio/Radio.styles.js +5 -5
- package/dist/components/RadioGroup/RadioGroup.styles.js +4 -4
- package/dist/components/Readonly/Readonly.styles.js +4 -4
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/RichSelect.styles.js +9 -9
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +5 -5
- package/dist/components/RichSelect/SelectTags/SelectTags.js +49 -51
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -3
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +8 -8
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +75 -70
- package/dist/components/Slideout/Slideout.styles.js +7 -7
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slider/Slider.styles.js +3 -3
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/Tab/Tab.styles.js +2 -2
- package/dist/components/TabSet/TabSet.js +55 -52
- package/dist/components/TabSet/TabSet.styles.js +3 -3
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableRows.js +1 -1
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.styles.js +4 -4
- package/dist/components/Text/Text.styles.js +3 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.styles.js +12 -12
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +18 -16
- package/dist/components/Toggle/Toggle.js +63 -58
- package/dist/components/Toggle/Toggle.styles.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +4 -4
- package/dist/{composeTableColumnDefs-Hmd6yfdj.js → composeTableColumnDefs-BfFBOARB.js} +0 -10
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-CmSaAiNF.js → floating-ui.react-BetVZ099.js} +1 -1
- package/dist/helpers/styling/mapGutterToGap.js +7 -7
- package/dist/helpers/transition/getTransitionDuration.js +2 -2
- package/dist/{index-CvOVcYUc.js → index-CZ9ot38T.js} +83 -131
- package/dist/{index.esm-8uZEha-3.js → index.esm-CL8gh5wr.js} +0 -4
- package/dist/main.js +3 -3
- package/dist/patterns/Loading/Loading.styles.js +13 -13
- package/dist/patterns/Loading/LoadingSuspense.js +27 -27
- package/dist/patterns/Loading/components/ComponentLoading.js +38 -43
- package/dist/patterns/Loading/components/PageLoading.js +57 -60
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
- package/dist/patterns/Shadow/Shadow.js +8831 -19057
- package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
- package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/src/components/Card/Card.styles.d.ts +2 -2
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
- package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
- package/dist/src/components/Field/Field.styles.d.ts +6 -6
- package/dist/src/components/Inline/Inline.d.ts +1 -2
- package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
- package/dist/src/components/Modal/Modal.styles.d.ts +2 -2
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
- package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
- package/dist/src/components/Row/Row.d.ts +1 -2
- package/dist/src/components/Select/Select.styles.d.ts +7 -7
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
- package/dist/src/components/Stack/Stack.d.ts +1 -2
- package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
- package/dist/src/components/Toggle/Toggle.d.ts +10 -2
- package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
- package/dist/src/interfaces.d.ts +8 -10
- package/dist/src/patterns/Loading/Loading.styles.d.ts +10 -10
- package/dist/src/styled-system/jsx/create-style-context.d.ts +17 -10
- package/dist/src/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/src/styled-system/types/conditions.d.ts +1 -1
- package/dist/src/styled-system/types/jsx.d.ts +8 -6
- package/dist/src/styled-system/types/prop-type.d.ts +2 -2
- package/dist/src/types.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +17 -17
|
@@ -1,148 +1,142 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as Z,
|
|
3
|
-
import "../../Button-
|
|
4
|
-
import { IressCloseButton as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { s as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
const
|
|
19
|
-
children:
|
|
20
|
-
className:
|
|
21
|
-
closeText:
|
|
22
|
-
container:
|
|
23
|
-
"data-testid":
|
|
24
|
-
defaultShow:
|
|
25
|
-
disableBackdropClick:
|
|
1
|
+
import { jsx as n, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import { useState as Z, useEffect as N, useMemo as oo } from "react";
|
|
3
|
+
import "../../Button-mmhMLwp9.js";
|
|
4
|
+
import { IressCloseButton as eo } from "../Button/CloseButton/CloseButton.js";
|
|
5
|
+
import { u as to, b as ro, c as so, d as no, e as ao, F as io, f as lo, g as co } from "../../floating-ui.react-BetVZ099.js";
|
|
6
|
+
import { idsLogger as mo } from "../../helpers/utility/idsLogger.js";
|
|
7
|
+
import { propagateTestid as l } from "../../helpers/utility/propagateTestid.js";
|
|
8
|
+
import { useIdIfNeeded as fo } from "../../hooks/useIdIfNeeded.js";
|
|
9
|
+
import { text as uo } from "../Text/Text.styles.js";
|
|
10
|
+
import { IressText as po } from "../Text/Text.js";
|
|
11
|
+
import { useProviderModal as go } from "./hooks/useProviderModal.js";
|
|
12
|
+
import { modal as ho } from "./Modal.styles.js";
|
|
13
|
+
import { c as C } from "../../cx-DN21T1EH.js";
|
|
14
|
+
import { s as u } from "../../factory-oPXoMw9H.js";
|
|
15
|
+
import { s as bo } from "../../is-valid-prop-Ce0wiweq.js";
|
|
16
|
+
import { GlobalCSSClass as p } from "../../enums.js";
|
|
17
|
+
import { getTransitionDuration as yo } from "../../helpers/transition/getTransitionDuration.js";
|
|
18
|
+
const Ro = ({
|
|
19
|
+
children: P,
|
|
20
|
+
className: k,
|
|
21
|
+
closeText: S,
|
|
22
|
+
container: g,
|
|
23
|
+
"data-testid": t,
|
|
24
|
+
defaultShow: E = !1,
|
|
25
|
+
disableBackdropClick: B,
|
|
26
26
|
fixedFooter: T,
|
|
27
|
-
footer:
|
|
27
|
+
footer: h,
|
|
28
28
|
heading: d,
|
|
29
|
-
noCloseButton:
|
|
30
|
-
onEntered:
|
|
31
|
-
onExited:
|
|
32
|
-
onShowChange:
|
|
33
|
-
onStatus:
|
|
34
|
-
onTransitionEnd:
|
|
29
|
+
noCloseButton: j,
|
|
30
|
+
onEntered: D,
|
|
31
|
+
onExited: O,
|
|
32
|
+
onShowChange: R,
|
|
33
|
+
onStatus: b,
|
|
34
|
+
onTransitionEnd: _,
|
|
35
35
|
show: c,
|
|
36
|
-
static:
|
|
37
|
-
style:
|
|
38
|
-
...
|
|
36
|
+
static: a,
|
|
37
|
+
style: $,
|
|
38
|
+
...m
|
|
39
39
|
}) => {
|
|
40
|
-
const [G, L] = Z(
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const [G, L] = Z(E);
|
|
41
|
+
let y = 240;
|
|
42
|
+
const s = go(m.id), F = fo({ id: m.id }), f = `${F}--heading`, U = s.opened || c || G, I = (o) => {
|
|
43
|
+
s.show(o), L(o), R?.(o);
|
|
44
|
+
}, { context: e } = to({
|
|
43
45
|
open: U,
|
|
44
|
-
onOpenChange:
|
|
45
|
-
}), q =
|
|
46
|
-
enabled: !
|
|
47
|
-
outsidePress: (o) => !o.target.closest(`.${
|
|
46
|
+
onOpenChange: I
|
|
47
|
+
}), q = ro(e, {
|
|
48
|
+
enabled: !B,
|
|
49
|
+
outsidePress: (o) => !o.target.closest(`.${p.Toaster}`),
|
|
48
50
|
outsidePressEvent: "mousedown"
|
|
49
|
-
}), z =
|
|
51
|
+
}), z = so(e), A = no([q, z]);
|
|
52
|
+
e.refs.floating.current && (y = yo(
|
|
53
|
+
e.refs.floating.current,
|
|
54
|
+
1.2,
|
|
55
|
+
240
|
|
56
|
+
));
|
|
57
|
+
const { isMounted: H, status: i } = ao(e, {
|
|
50
58
|
duration: {
|
|
51
|
-
close:
|
|
59
|
+
close: y
|
|
52
60
|
}
|
|
53
|
-
}),
|
|
61
|
+
}), r = ho({
|
|
54
62
|
fixedFooter: T,
|
|
55
|
-
static:
|
|
56
|
-
status:
|
|
57
|
-
}), [J, K] =
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
static: a,
|
|
64
|
+
status: i
|
|
65
|
+
}), [J, K] = bo(m), { p: v = "lg", width: Q = "overlay.md", ...V } = J;
|
|
66
|
+
N(() => {
|
|
67
|
+
s.opened && c && mo(
|
|
60
68
|
"IressModal: Please use either IressModalProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the modal will become unpredictable. If you want to show a modal by default in uncontrolled mode, use the defaultShow prop."
|
|
61
69
|
);
|
|
62
|
-
}, [
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
) * 1.2);
|
|
68
|
-
}, [e.refs.floating, t]);
|
|
69
|
-
const C = eo(() => typeof d == "string" ? /* @__PURE__ */ l(
|
|
70
|
-
bo,
|
|
70
|
+
}, [s.opened, c]), N(() => {
|
|
71
|
+
b?.(i);
|
|
72
|
+
}, [i, b]);
|
|
73
|
+
const x = oo(() => typeof d == "string" ? /* @__PURE__ */ n(
|
|
74
|
+
po,
|
|
71
75
|
{
|
|
72
|
-
className:
|
|
73
|
-
id:
|
|
76
|
+
className: r.header,
|
|
77
|
+
id: f,
|
|
74
78
|
element: "h2",
|
|
75
|
-
"data-testid":
|
|
79
|
+
"data-testid": l(t, "heading"),
|
|
76
80
|
children: d
|
|
77
81
|
}
|
|
78
|
-
) : d, [
|
|
79
|
-
(o)
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
[
|
|
83
|
-
I,
|
|
84
|
-
t,
|
|
85
|
-
y,
|
|
86
|
-
e.refs.floating,
|
|
87
|
-
w,
|
|
88
|
-
n
|
|
89
|
-
]
|
|
90
|
-
);
|
|
82
|
+
) : d, [t, f, d, r.header]), W = (o) => {
|
|
83
|
+
_?.(o), !(!(o.propertyName === "opacity" || !o.propertyName) || o.target !== o.currentTarget) && (i === "open" ? (D?.(), a || e.refs.floating?.current?.focus()) : i === "close" && O?.());
|
|
84
|
+
};
|
|
91
85
|
if (!H) return null;
|
|
92
|
-
const
|
|
93
|
-
|
|
86
|
+
const M = /* @__PURE__ */ n(
|
|
87
|
+
io,
|
|
94
88
|
{
|
|
95
|
-
className:
|
|
96
|
-
"data-testid":
|
|
97
|
-
lockScroll: !
|
|
98
|
-
style:
|
|
99
|
-
children: /* @__PURE__ */
|
|
100
|
-
|
|
89
|
+
className: C(k, r.backdrop, p.ModalBackdrop),
|
|
90
|
+
"data-testid": l(t, "backdrop"),
|
|
91
|
+
lockScroll: !a,
|
|
92
|
+
style: $,
|
|
93
|
+
children: /* @__PURE__ */ n(
|
|
94
|
+
lo,
|
|
101
95
|
{
|
|
102
96
|
context: e,
|
|
103
97
|
initialFocus: e.refs.floating,
|
|
104
|
-
disabled:
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
98
|
+
disabled: a,
|
|
99
|
+
children: /* @__PURE__ */ w(
|
|
100
|
+
u.div,
|
|
107
101
|
{
|
|
108
102
|
ref: (o) => e.refs.setFloating(o),
|
|
109
|
-
className:
|
|
110
|
-
id:
|
|
111
|
-
"data-testid":
|
|
112
|
-
"aria-labelledby":
|
|
103
|
+
className: C(r.modal, uo(), p.Modal),
|
|
104
|
+
id: F,
|
|
105
|
+
"data-testid": t,
|
|
106
|
+
"aria-labelledby": x ? f : void 0,
|
|
113
107
|
...A.getFloatingProps(K),
|
|
114
108
|
...V,
|
|
115
109
|
w: Q,
|
|
116
110
|
onTransitionEnd: W,
|
|
117
111
|
children: [
|
|
118
|
-
!
|
|
119
|
-
|
|
112
|
+
!j && /* @__PURE__ */ n(
|
|
113
|
+
eo,
|
|
120
114
|
{
|
|
121
|
-
onClick: () =>
|
|
122
|
-
screenreaderText:
|
|
123
|
-
className:
|
|
124
|
-
"data-testid":
|
|
115
|
+
onClick: () => I(!1),
|
|
116
|
+
screenreaderText: S,
|
|
117
|
+
className: r.closeButton,
|
|
118
|
+
"data-testid": l(t, "close-button__button")
|
|
125
119
|
}
|
|
126
120
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
121
|
+
/* @__PURE__ */ w(
|
|
122
|
+
u.div,
|
|
129
123
|
{
|
|
130
|
-
className:
|
|
131
|
-
"data-testid":
|
|
132
|
-
p:
|
|
124
|
+
className: r.content,
|
|
125
|
+
"data-testid": l(t, "content"),
|
|
126
|
+
p: v,
|
|
133
127
|
children: [
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
x,
|
|
129
|
+
P
|
|
136
130
|
]
|
|
137
131
|
}
|
|
138
132
|
),
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
h && /* @__PURE__ */ n(
|
|
134
|
+
u.div,
|
|
141
135
|
{
|
|
142
|
-
className:
|
|
143
|
-
"data-testid":
|
|
144
|
-
p:
|
|
145
|
-
children:
|
|
136
|
+
className: r.footer,
|
|
137
|
+
"data-testid": l(t, "footer"),
|
|
138
|
+
p: v,
|
|
139
|
+
children: h
|
|
146
140
|
}
|
|
147
141
|
)
|
|
148
142
|
]
|
|
@@ -151,9 +145,9 @@ const Eo = ({
|
|
|
151
145
|
}
|
|
152
146
|
)
|
|
153
147
|
}
|
|
154
|
-
), X =
|
|
155
|
-
return
|
|
148
|
+
), X = g ?? s?.container;
|
|
149
|
+
return a && !X ? M : /* @__PURE__ */ n(co, { root: g ?? s?.container, children: M });
|
|
156
150
|
};
|
|
157
151
|
export {
|
|
158
|
-
|
|
152
|
+
Ro as IressModal
|
|
159
153
|
};
|
|
@@ -16,11 +16,11 @@ const o = [
|
|
|
16
16
|
},
|
|
17
17
|
closeButton: {
|
|
18
18
|
position: "absolute",
|
|
19
|
-
top: "spacing.
|
|
20
|
-
right: "spacing.
|
|
19
|
+
top: "spacing.2",
|
|
20
|
+
right: "spacing.2"
|
|
21
21
|
},
|
|
22
22
|
header: {
|
|
23
|
-
mb: "spacing.
|
|
23
|
+
mb: "spacing.4"
|
|
24
24
|
},
|
|
25
25
|
footer: {
|
|
26
26
|
borderBlockStart: "divider"
|
|
@@ -28,16 +28,16 @@ const o = [
|
|
|
28
28
|
modal: {
|
|
29
29
|
position: "relative",
|
|
30
30
|
borderRadius: "radius.system.layout",
|
|
31
|
-
padding: "spacing.
|
|
31
|
+
padding: "spacing.0",
|
|
32
32
|
width: "overlay.md",
|
|
33
|
-
maxWidth: "[calc(100vw - ({spacing.spacing.
|
|
33
|
+
maxWidth: "[calc(100vw - ({spacing.spacing.7}))]",
|
|
34
34
|
minHeight: "auto",
|
|
35
35
|
layerStyle: "elevation.floating",
|
|
36
36
|
background: "colour.neutral.10",
|
|
37
37
|
outline: "[0]",
|
|
38
38
|
opacity: 0,
|
|
39
39
|
transition: "[all 0.3s ease-in-out]",
|
|
40
|
-
marginBlock: "spacing.
|
|
40
|
+
marginBlock: "spacing.7",
|
|
41
41
|
"@media (min-height: 600px)": {
|
|
42
42
|
marginBlock: "[100px]"
|
|
43
43
|
},
|
|
@@ -53,7 +53,7 @@ const o = [
|
|
|
53
53
|
modal: {
|
|
54
54
|
display: "flex",
|
|
55
55
|
flexDirection: "column",
|
|
56
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
56
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]",
|
|
57
57
|
"@media (min-height: 600px)": {
|
|
58
58
|
maxHeight: "[calc(100vh - (100px * 2))]"
|
|
59
59
|
},
|
|
@@ -63,7 +63,7 @@ const o = [
|
|
|
63
63
|
flex: "[1]",
|
|
64
64
|
overflowX: "hidden",
|
|
65
65
|
overflowY: "auto",
|
|
66
|
-
maxHeight: "[calc(100vh - ({spacing.spacing.
|
|
66
|
+
maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]",
|
|
67
67
|
"@media (min-height: 600px)": {
|
|
68
68
|
maxHeight: "[calc(100vh - (100px * 2))]"
|
|
69
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { q as F, r as v, t as x, v as c, g as I, w as P, f as w } from "../../../floating-ui.react-
|
|
2
|
+
import { q as F, r as v, t as x, v as c, g as I, w as P, f as w } from "../../../floating-ui.react-BetVZ099.js";
|
|
3
3
|
import { composePopoverFloatingProps as C } from "../helpers/composeFloatingProps.js";
|
|
4
4
|
import { useContext as E, useEffect as T } from "react";
|
|
5
5
|
import { s as N } from "../../../factory-oPXoMw9H.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../index.esm-
|
|
1
|
+
import { t as o } from "../../../index.esm-CL8gh5wr.js";
|
|
2
2
|
import { FOCUSABLE_QUERY_SELECTOR as c } from "../../../constants.js";
|
|
3
3
|
import { focusableElements as l } from "../../../helpers/dom/focusableElements.js";
|
|
4
4
|
import { waitUntilTrue as u } from "./waitUntilTrue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext as z, useRef as V, useMemo as p, useCallback as x } from "react";
|
|
2
2
|
import { useControlledState as D } from "../../../hooks/useControlledState.js";
|
|
3
|
-
import { o as A, j as E, i as K, s as T, m as W, u as X, n as B, b as J, c as L, d as Q, p as Y } from "../../../floating-ui.react-
|
|
3
|
+
import { o as A, j as E, i as K, s as T, m as W, u as X, n as B, b as J, c as L, d as Q, p as Y } from "../../../floating-ui.react-BetVZ099.js";
|
|
4
4
|
import { usePopoverNavigation as Z } from "./usePopoverNavigation.js";
|
|
5
5
|
import { focusableElements as ee } from "../../../helpers/dom/focusableElements.js";
|
|
6
6
|
import { usePopoverAria as oe } from "./usePopoverAria.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as c } from "../../../floating-ui.react-
|
|
1
|
+
import { h as c } from "../../../floating-ui.react-BetVZ099.js";
|
|
2
2
|
import { useContext as p, useId as f, useMemo as m, useEffect as v } from "react";
|
|
3
3
|
import { PopoverContext as d } from "./usePopover.js";
|
|
4
4
|
const l = (r, t = null) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as r, useState as O, useEffect as N, useRef as c } from "react";
|
|
2
|
-
import { x as R } from "../../../floating-ui.react-
|
|
2
|
+
import { x as R } from "../../../floating-ui.react-BetVZ099.js";
|
|
3
3
|
const b = (s, e, o, m, u = 0) => {
|
|
4
4
|
const t = r(
|
|
5
5
|
() => !!(e && ["menu", "listbox"].includes(e)),
|
|
@@ -1,62 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const A = ({
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { stringReplacer as v } from "../../helpers/formatting/stringReplacer.js";
|
|
3
|
+
import { c as P } from "../../css-fGu_jDvv.js";
|
|
4
|
+
import { c as S } from "../../cx-DN21T1EH.js";
|
|
5
|
+
import { progress as y } from "./Progress.styles.js";
|
|
6
|
+
import { s as n } from "../../factory-oPXoMw9H.js";
|
|
7
|
+
import { s as b } from "../../is-valid-prop-Ce0wiweq.js";
|
|
8
|
+
import { GlobalCSSClass as x } from "../../enums.js";
|
|
9
|
+
import { t as C } from "../../index-CZ9ot38T.js";
|
|
10
|
+
const V = ({
|
|
12
11
|
borderRadius: e,
|
|
13
12
|
className: p,
|
|
14
13
|
max: r = 100,
|
|
15
14
|
min: s,
|
|
16
|
-
sectionTitle:
|
|
17
|
-
style:
|
|
18
|
-
value:
|
|
19
|
-
...
|
|
15
|
+
sectionTitle: c = "Progress is {{current}} of {{max}}",
|
|
16
|
+
style: f,
|
|
17
|
+
value: u = 0,
|
|
18
|
+
...g
|
|
20
19
|
}) => {
|
|
21
|
-
const [
|
|
20
|
+
const [d, t] = b(g), a = S(
|
|
22
21
|
p,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
), i = () =>
|
|
26
|
-
{ name: "{{current}}", value: String(
|
|
22
|
+
P(y.raw(), d),
|
|
23
|
+
x.Progress
|
|
24
|
+
), o = Math.min(Math.max(u, s ?? 0), r), i = () => v(c, [
|
|
25
|
+
{ name: "{{current}}", value: String(o) },
|
|
27
26
|
{ name: "{{max}}", value: r.toString() }
|
|
28
|
-
])
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
g(y);
|
|
32
|
-
}, [o, s, r]);
|
|
33
|
-
const m = {
|
|
34
|
-
"--iress-border-radius": e ? j(`radii.${e}`) : void 0,
|
|
35
|
-
...u
|
|
27
|
+
]), l = {
|
|
28
|
+
"--iress-border-radius": e ? C(`radii.${e}`) : void 0,
|
|
29
|
+
...f
|
|
36
30
|
};
|
|
37
|
-
return s !== void 0 ? /* @__PURE__ */
|
|
38
|
-
|
|
31
|
+
return s !== void 0 ? /* @__PURE__ */ m(
|
|
32
|
+
n.meter,
|
|
39
33
|
{
|
|
40
34
|
"aria-label": i(),
|
|
41
|
-
className:
|
|
35
|
+
className: a,
|
|
42
36
|
max: r,
|
|
43
37
|
min: s,
|
|
44
|
-
value:
|
|
45
|
-
...
|
|
46
|
-
style:
|
|
38
|
+
value: o,
|
|
39
|
+
...t,
|
|
40
|
+
style: l
|
|
47
41
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
49
|
-
|
|
42
|
+
) : /* @__PURE__ */ m(
|
|
43
|
+
n.progress,
|
|
50
44
|
{
|
|
51
45
|
"aria-label": i(),
|
|
52
|
-
className:
|
|
46
|
+
className: a,
|
|
53
47
|
max: r,
|
|
54
|
-
value:
|
|
55
|
-
...
|
|
56
|
-
style:
|
|
48
|
+
value: o,
|
|
49
|
+
...t,
|
|
50
|
+
style: l
|
|
57
51
|
}
|
|
58
52
|
);
|
|
59
53
|
};
|
|
60
54
|
export {
|
|
61
|
-
|
|
55
|
+
V as IressProgress
|
|
62
56
|
};
|
|
@@ -13,20 +13,20 @@ const e = r({
|
|
|
13
13
|
_progressBar: {
|
|
14
14
|
bg: "transparent",
|
|
15
15
|
height: "progress.height",
|
|
16
|
-
margin: "spacing.
|
|
16
|
+
margin: "spacing.0"
|
|
17
17
|
},
|
|
18
18
|
_progressValue: {
|
|
19
19
|
appearance: "none",
|
|
20
20
|
bg: "[currentColor]",
|
|
21
21
|
borderRadius: "var(--iress-border-radius)",
|
|
22
|
-
margin: "spacing.
|
|
22
|
+
margin: "spacing.0",
|
|
23
23
|
transition: "all"
|
|
24
24
|
},
|
|
25
25
|
_mozProgressValue: {
|
|
26
26
|
appearance: "none",
|
|
27
27
|
bg: "[currentColor]",
|
|
28
28
|
borderRadius: "var(--iress-border-radius)",
|
|
29
|
-
margin: "spacing.
|
|
29
|
+
margin: "spacing.0",
|
|
30
30
|
transition: "all"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../Modal/Modal.styles.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../Button-
|
|
4
|
+
import "../../Button-mmhMLwp9.js";
|
|
5
5
|
import "../Button/CloseButton/CloseButton.js";
|
|
6
6
|
import "../Modal/hooks/useModal.js";
|
|
7
7
|
import "../Modal/ModalProvider.js";
|
|
@@ -10,11 +10,11 @@ import "../Toaster/hooks/useToaster.js";
|
|
|
10
10
|
import "../Toaster/Toaster.styles.js";
|
|
11
11
|
import "../Toaster/components/Toast/Toast.styles.js";
|
|
12
12
|
import "../Slideout/Slideout.styles.js";
|
|
13
|
-
import "../../index-
|
|
13
|
+
import "../../index-CZ9ot38T.js";
|
|
14
14
|
import "../Slideout/hooks/useSlideout.js";
|
|
15
15
|
import "../Slideout/SlideoutProvider.js";
|
|
16
16
|
import "react-dom";
|
|
17
|
-
import { I as h } from "../../Provider-
|
|
17
|
+
import { I as h } from "../../Provider-8wS70V56.js";
|
|
18
18
|
export {
|
|
19
19
|
h as IressProvider
|
|
20
20
|
};
|