@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.
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 +8831 -19057
  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 +17 -17
@@ -1,148 +1,142 @@
1
- import { jsx as l, jsxs as P } from "react/jsx-runtime";
2
- import { useState as Z, useRef as oo, useEffect as u, useMemo as eo, useCallback as to } from "react";
3
- import "../../Button-D6AL0bia.js";
4
- import { IressCloseButton as ro } from "../Button/CloseButton/CloseButton.js";
5
- import { u as so, b as no, c as ao, d as lo, e as io, F as co, f as fo, g as mo } from "../../floating-ui.react-CmSaAiNF.js";
6
- import { timeStringToNumber as uo } from "../../helpers/transition/timeStringToNumber.js";
7
- import { idsLogger as po } from "../../helpers/utility/idsLogger.js";
8
- import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
9
- import { useIdIfNeeded as go } from "../../hooks/useIdIfNeeded.js";
10
- import { text as ho } from "../Text/Text.styles.js";
11
- import { IressText as bo } from "../Text/Text.js";
12
- import { useProviderModal as yo } from "./hooks/useProviderModal.js";
13
- import { modal as wo } from "./Modal.styles.js";
14
- import { c as S } from "../../cx-DN21T1EH.js";
15
- import { s as p } from "../../factory-oPXoMw9H.js";
16
- import { s as Fo } from "../../is-valid-prop-Ce0wiweq.js";
17
- import { GlobalCSSClass as g } from "../../enums.js";
18
- const Eo = ({
19
- children: R,
20
- className: B,
21
- closeText: j,
22
- container: h,
23
- "data-testid": r,
24
- defaultShow: D = !1,
25
- disableBackdropClick: O,
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: b,
27
+ footer: h,
28
28
  heading: d,
29
- noCloseButton: _,
30
- onEntered: y,
31
- onExited: w,
32
- onShowChange: $,
33
- onStatus: F,
34
- onTransitionEnd: I,
29
+ noCloseButton: j,
30
+ onEntered: D,
31
+ onExited: O,
32
+ onShowChange: R,
33
+ onStatus: b,
34
+ onTransitionEnd: _,
35
35
  show: c,
36
- static: n,
37
- style: E,
38
- ...f
36
+ static: a,
37
+ style: $,
38
+ ...m
39
39
  }) => {
40
- const [G, L] = Z(D), v = oo(240), a = yo(f.id), M = go({ id: f.id }), m = `${M}--heading`, U = a.opened || c || G, N = (o) => {
41
- a.show(o), L(o), $?.(o);
42
- }, { context: e } = so({
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: N
45
- }), q = no(e, {
46
- enabled: !O,
47
- outsidePress: (o) => !o.target.closest(`.${g.Toaster}`),
46
+ onOpenChange: I
47
+ }), q = ro(e, {
48
+ enabled: !B,
49
+ outsidePress: (o) => !o.target.closest(`.${p.Toaster}`),
48
50
  outsidePressEvent: "mousedown"
49
- }), z = ao(e), A = lo([q, z]), { isMounted: H, status: t } = io(e, {
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: v.current
59
+ close: y
52
60
  }
53
- }), s = wo({
61
+ }), r = ho({
54
62
  fixedFooter: T,
55
- static: n,
56
- status: t
57
- }), [J, K] = Fo(f), { p: x = "lg", width: Q = "overlay.md", ...V } = J;
58
- u(() => {
59
- a.opened && c && po(
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
- }, [a.opened, c]), u(() => {
63
- F?.(t);
64
- }, [t, F]), u(() => {
65
- t === "initial" && e.refs.floating?.current && (v.current = uo(
66
- window.getComputedStyle(e.refs.floating.current, null)?.transitionDuration || ".3s"
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: s.header,
73
- id: m,
76
+ className: r.header,
77
+ id: f,
74
78
  element: "h2",
75
- "data-testid": i(r, "heading"),
79
+ "data-testid": l(t, "heading"),
76
80
  children: d
77
81
  }
78
- ) : d, [r, m, d, s.header]), W = to(
79
- (o) => {
80
- I?.(o), !(!(o.propertyName === "opacity" || !o.propertyName) || o.target !== o.currentTarget) && (t === "open" ? (y?.(), n || e.refs.floating?.current?.focus()) : t === "close" && w?.());
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 k = /* @__PURE__ */ l(
93
- co,
86
+ const M = /* @__PURE__ */ n(
87
+ io,
94
88
  {
95
- className: S(B, s.backdrop, g.ModalBackdrop),
96
- "data-testid": i(r, "backdrop"),
97
- lockScroll: !n,
98
- style: E,
99
- children: /* @__PURE__ */ l(
100
- fo,
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: n,
105
- children: /* @__PURE__ */ P(
106
- p.div,
98
+ disabled: a,
99
+ children: /* @__PURE__ */ w(
100
+ u.div,
107
101
  {
108
102
  ref: (o) => e.refs.setFloating(o),
109
- className: S(s.modal, ho(), g.Modal),
110
- id: M,
111
- "data-testid": r,
112
- "aria-labelledby": C ? m : void 0,
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
- !_ && /* @__PURE__ */ l(
119
- ro,
112
+ !j && /* @__PURE__ */ n(
113
+ eo,
120
114
  {
121
- onClick: () => N(!1),
122
- screenreaderText: j,
123
- className: s.closeButton,
124
- "data-testid": i(r, "close-button__button")
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__ */ P(
128
- p.div,
121
+ /* @__PURE__ */ w(
122
+ u.div,
129
123
  {
130
- className: s.content,
131
- "data-testid": i(r, "content"),
132
- p: x,
124
+ className: r.content,
125
+ "data-testid": l(t, "content"),
126
+ p: v,
133
127
  children: [
134
- C,
135
- R
128
+ x,
129
+ P
136
130
  ]
137
131
  }
138
132
  ),
139
- b && /* @__PURE__ */ l(
140
- p.div,
133
+ h && /* @__PURE__ */ n(
134
+ u.div,
141
135
  {
142
- className: s.footer,
143
- "data-testid": i(r, "footer"),
144
- p: x,
145
- children: b
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 = h ?? a?.container;
155
- return n && !X ? k : /* @__PURE__ */ l(mo, { root: h ?? a?.container, children: k });
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
- Eo as IressModal
152
+ Ro as IressModal
159
153
  };
@@ -16,11 +16,11 @@ const o = [
16
16
  },
17
17
  closeButton: {
18
18
  position: "absolute",
19
- top: "spacing.200",
20
- right: "spacing.200"
19
+ top: "spacing.2",
20
+ right: "spacing.2"
21
21
  },
22
22
  header: {
23
- mb: "spacing.400"
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.000",
31
+ padding: "spacing.0",
32
32
  width: "overlay.md",
33
- maxWidth: "[calc(100vw - ({spacing.spacing.700}))]",
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.700",
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.700} * 2))]",
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.700} * 2))]",
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 r } from "react/jsx-runtime";
2
- import { w as e } from "../../../floating-ui.react-CmSaAiNF.js";
2
+ import { w as e } from "../../../floating-ui.react-BetVZ099.js";
3
3
  const m = ({
4
4
  children: t,
5
5
  parentPopover: o
@@ -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-CmSaAiNF.js";
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-8uZEha-3.js";
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-CmSaAiNF.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-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-CmSaAiNF.js";
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-CmSaAiNF.js";
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 n } from "react/jsx-runtime";
2
- import { useState as v, useEffect as M } from "react";
3
- import { stringReplacer as b } from "../../helpers/formatting/stringReplacer.js";
4
- import { c as x } from "../../css-fGu_jDvv.js";
5
- import { c as C } from "../../cx-DN21T1EH.js";
6
- import { progress as h } from "./Progress.styles.js";
7
- import { s as c } from "../../factory-oPXoMw9H.js";
8
- import { s as N } from "../../is-valid-prop-Ce0wiweq.js";
9
- import { GlobalCSSClass as V } from "../../enums.js";
10
- import { t as j } from "../../index-CvOVcYUc.js";
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: f = "Progress is {{current}} of {{max}}",
17
- style: u,
18
- value: o = 0,
19
- ...d
15
+ sectionTitle: c = "Progress is {{current}} of {{max}}",
16
+ style: f,
17
+ value: u = 0,
18
+ ...g
20
19
  }) => {
21
- const [t, g] = v(o), [S, a] = N(d), l = C(
20
+ const [d, t] = b(g), a = S(
22
21
  p,
23
- x(h.raw(), S),
24
- V.Progress
25
- ), i = () => b(f, [
26
- { name: "{{current}}", value: String(t) },
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
- M(() => {
30
- const P = Math.max(o, s ?? 0), y = Math.min(P, r);
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__ */ n(
38
- c.meter,
31
+ return s !== void 0 ? /* @__PURE__ */ m(
32
+ n.meter,
39
33
  {
40
34
  "aria-label": i(),
41
- className: l,
35
+ className: a,
42
36
  max: r,
43
37
  min: s,
44
- value: t,
45
- ...a,
46
- style: m
38
+ value: o,
39
+ ...t,
40
+ style: l
47
41
  }
48
- ) : /* @__PURE__ */ n(
49
- c.progress,
42
+ ) : /* @__PURE__ */ m(
43
+ n.progress,
50
44
  {
51
45
  "aria-label": i(),
52
- className: l,
46
+ className: a,
53
47
  max: r,
54
- value: t,
55
- ...a,
56
- style: m
48
+ value: o,
49
+ ...t,
50
+ style: l
57
51
  }
58
52
  );
59
53
  };
60
54
  export {
61
- A as IressProgress
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.000"
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.000",
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.000",
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-D6AL0bia.js";
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-CvOVcYUc.js";
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-BXQiO7Gp.js";
17
+ import { I as h } from "../../Provider-8wS70V56.js";
18
18
  export {
19
19
  h as IressProvider
20
20
  };
@@ -1,4 +1,4 @@
1
- import { I as o } from "../../Provider-BXQiO7Gp.js";
1
+ import { I as o } from "../../Provider-8wS70V56.js";
2
2
  export {
3
3
  o as IressProvider
4
4
  };