@iress-oss/ids-components 5.14.2 → 5.15.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 (196) hide show
  1. package/README.md +1 -1
  2. package/dist/{AutocompleteNoResults-CA3kLIMp.js → AutocompleteNoResults-DmkoqKJm.js} +1 -1
  3. package/dist/{ComboboxHiddenInput-3nXQLXWs.js → ComboboxHiddenInput-CLb6Xp8s.js} +5 -5
  4. package/dist/{FieldAppendToLabel-fLFwdVe0.js → FieldAppendToLabel-Dw0Mn-US.js} +7 -6
  5. package/dist/{InputBase-Gu84XDiJ.js → InputBase-55eUCLgT.js} +1 -1
  6. package/dist/Loading.module-DUh3NIWC.js +13 -0
  7. package/dist/{LoadingSuspense-CbdTDOzY.js → LoadingSuspense-BMFBqvXJ.js} +2486 -2471
  8. package/dist/LogoFromSrc-7tFjDtcF.js +59 -0
  9. package/dist/MenuItem.module-bTAQrrT3.js +24 -0
  10. package/dist/Popover.module-Ct33fXgT.js +11 -0
  11. package/dist/PopoverProvider-BAhkQIhz.js +137 -0
  12. package/dist/{SelectControl-CzcS0y-K.js → SelectControl-BbirMx9B.js} +1 -1
  13. package/dist/{SliderTicks-Dfc9Q2il.js → SliderTicks-Jb0VVHsB.js} +1 -1
  14. package/dist/TabSet.module-z2bbww8p.js +13 -0
  15. package/dist/Table.module-DNbVlA6R.js +32 -0
  16. package/dist/components/Alert/Alert.js +1 -1
  17. package/dist/components/Alert/index.js +1 -1
  18. package/dist/components/Autocomplete/Autocomplete.js +6 -5
  19. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
  20. package/dist/components/Autocomplete/index.js +1 -1
  21. package/dist/components/Badge/Badge.js +4 -4
  22. package/dist/components/Button/Button.js +2 -2
  23. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  24. package/dist/components/Button/index.js +1 -1
  25. package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
  26. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
  27. package/dist/components/ButtonGroup/index.js +1 -1
  28. package/dist/components/Checkbox/Checkbox.js +1 -1
  29. package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
  30. package/dist/components/Checkbox/index.js +1 -1
  31. package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
  32. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
  33. package/dist/components/Combobox/Combobox.js +6 -5
  34. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +6 -5
  35. package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
  36. package/dist/components/Combobox/components/ComboboxResults.js +6 -5
  37. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +5 -4
  38. package/dist/components/Combobox/index.js +1 -1
  39. package/dist/components/Expander/Expander.js +1 -1
  40. package/dist/components/Field/Field.js +1 -1
  41. package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
  42. package/dist/components/Field/components/FieldAppendToLabel.js +6 -5
  43. package/dist/components/Filter/Filter.js +6 -5
  44. package/dist/components/Filter/components/FilterResetButton.js +5 -4
  45. package/dist/components/Filter/components/FilterSearch.js +5 -4
  46. package/dist/components/Filter/index.js +1 -1
  47. package/dist/components/Form/Form.js +1 -1
  48. package/dist/components/Form/FormField/FormField.js +10 -9
  49. package/dist/components/Form/FormField/FormFieldset.js +6 -5
  50. package/dist/components/Form/HookForm/HookForm.js +1 -1
  51. package/dist/components/Form/index.js +1 -1
  52. package/dist/components/Hide/Hide.js +1 -1
  53. package/dist/components/Hide/helpers/composeHideClasses.js +6 -5
  54. package/dist/components/Hide/index.js +1 -1
  55. package/dist/components/Icon/Icon.js +5 -4
  56. package/dist/components/Icon/index.js +1 -1
  57. package/dist/components/Inline/Inline.js +5 -4
  58. package/dist/components/Inline/index.js +1 -1
  59. package/dist/components/Input/ClearButton/ClearButton.js +1 -1
  60. package/dist/components/Input/Input.js +2 -2
  61. package/dist/components/Input/InputBase/InputBase.js +1 -1
  62. package/dist/components/Input/index.js +1 -1
  63. package/dist/components/InputCurrency/InputCurrency.js +1 -1
  64. package/dist/components/InputCurrency/index.js +1 -1
  65. package/dist/components/Label/LabelBase/LabelBase.js +1 -1
  66. package/dist/components/Menu/Menu.js +1 -1
  67. package/dist/components/Menu/MenuDivider/MenuDivider.js +5 -4
  68. package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
  69. package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
  70. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
  71. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
  72. package/dist/components/Menu/MenuText/MenuText.js +6 -5
  73. package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
  74. package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
  75. package/dist/components/Menu/index.js +1 -1
  76. package/dist/components/Modal/Modal.js +2 -2
  77. package/dist/components/Modal/index.js +1 -1
  78. package/dist/components/Navbar/Navbar.js +2 -2
  79. package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
  80. package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
  81. package/dist/components/Navbar/components/NavbarLogo.js +2 -2
  82. package/dist/components/Navbar/index.js +1 -1
  83. package/dist/components/Placeholder/Placeholder.js +1 -1
  84. package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
  85. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
  86. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +23 -23
  87. package/dist/components/Popover/Popover.js +12 -12
  88. package/dist/components/Popover/PopoverProvider.js +12 -113
  89. package/dist/components/Popover/components/NestedPopoverActivator.js +3 -3
  90. package/dist/components/Popover/components/PopoverActivator.js +40 -41
  91. package/dist/components/Popover/components/PopoverContent.js +15 -15
  92. package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
  93. package/dist/components/Popover/hooks/usePopover.js +1 -1
  94. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  95. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  96. package/dist/components/Progress/Progress.js +1 -1
  97. package/dist/components/Provider/Provider.js +38 -0
  98. package/dist/components/Provider/index.js +4 -0
  99. package/dist/components/Radio/Radio.js +1 -1
  100. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
  101. package/dist/components/Radio/index.js +1 -1
  102. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  103. package/dist/components/Readonly/Readonly.js +6 -5
  104. package/dist/components/Readonly/index.js +1 -1
  105. package/dist/components/RichSelect/RichSelect.js +5 -4
  106. package/dist/components/RichSelect/SelectBody/SelectBody.js +6 -5
  107. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +10 -9
  108. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +5 -4
  109. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
  110. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +5 -4
  111. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +5 -4
  112. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +4 -3
  113. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
  114. package/dist/components/RichSelect/SelectTags/SelectTags.js +4 -3
  115. package/dist/components/RichSelect/components/SelectActivator.js +1 -1
  116. package/dist/components/RichSelect/components/SelectOptions.js +5 -4
  117. package/dist/components/RichSelect/index.js +1 -1
  118. package/dist/components/Row/Row.js +5 -4
  119. package/dist/components/Row/index.js +1 -1
  120. package/dist/components/Select/Select.js +2 -2
  121. package/dist/components/Select/components/SelectControl.js +1 -1
  122. package/dist/components/Select/components/SelectReadonly.js +5 -4
  123. package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
  124. package/dist/components/Select/helpers/nodesToSelectOptions.js +3 -3
  125. package/dist/components/Select/index.js +1 -1
  126. package/dist/components/Skeleton/Skeleton.js +2 -2
  127. package/dist/components/SkipLink/SkipLink.js +1 -1
  128. package/dist/components/Slideout/Slideout.js +4 -3
  129. package/dist/components/Slideout/components/SlideoutInner.js +3 -2
  130. package/dist/components/Slideout/index.js +1 -1
  131. package/dist/components/Slider/Slider.js +2 -2
  132. package/dist/components/Slider/components/SliderTicks.js +1 -1
  133. package/dist/components/Slider/index.js +1 -1
  134. package/dist/components/Spinner/Spinner.js +1 -1
  135. package/dist/components/Spinner/index.js +1 -1
  136. package/dist/components/TabSet/Tab/Tab.js +1 -1
  137. package/dist/components/TabSet/TabSet.js +2 -2
  138. package/dist/components/TabSet/components/TabSetItem.js +2 -2
  139. package/dist/components/Table/Table.js +2 -2
  140. package/dist/components/Table/TableBody/TableBody.js +15 -15
  141. package/dist/components/Table/components/TableEmpty.js +1 -1
  142. package/dist/components/Table/components/TableHeader.js +1 -1
  143. package/dist/components/Table/components/TableHeaderCell.js +1 -1
  144. package/dist/components/Table/components/TableSortButton.js +3 -3
  145. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
  146. package/dist/components/Table/index.js +1 -1
  147. package/dist/components/Tag/Tag.js +1 -1
  148. package/dist/components/Tag/TagInput/TagInput.js +1 -1
  149. package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
  150. package/dist/components/Tag/index.js +1 -1
  151. package/dist/components/Toaster/Toast/Toast.js +1 -1
  152. package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
  153. package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
  154. package/dist/components/Toaster/Toaster.js +2 -2
  155. package/dist/components/Toaster/ToasterProvider.js +1 -1
  156. package/dist/components/Toaster/hooks/useToaster.js +24 -3
  157. package/dist/components/Toaster/index.js +11 -10
  158. package/dist/components/Toggle/Toggle.js +3 -3
  159. package/dist/components/Tooltip/Tooltip.js +18 -18
  160. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
  161. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  162. package/dist/constants.js +11 -11
  163. package/dist/{floating-ui.react-DfZ-vbiG.js → floating-ui.react-nmA48tb2.js} +18 -18
  164. package/dist/helpers/dom/domUtils.js +12 -0
  165. package/dist/helpers/formatting/formatDateTime.js +21 -16
  166. package/dist/main.js +287 -284
  167. package/dist/patterns/Loading/Loading.js +1 -1
  168. package/dist/patterns/Loading/LoadingSuspense.js +1 -1
  169. package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
  170. package/dist/patterns/Loading/components/DefaultLoading.js +3 -3
  171. package/dist/patterns/Loading/components/LongLoading.js +2 -2
  172. package/dist/patterns/Loading/components/PageLoading.js +3 -3
  173. package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
  174. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  175. package/dist/patterns/Loading/index.js +1 -1
  176. package/dist/src/components/Form/Form.types.d.ts +10 -1
  177. package/dist/src/components/Provider/Provider.d.ts +20 -0
  178. package/dist/src/components/Provider/index.d.ts +1 -0
  179. package/dist/src/components/Toaster/Toast/Toast.types.d.ts +2 -1
  180. package/dist/src/components/Toaster/ToasterProvider.d.ts +5 -2
  181. package/dist/src/components/Toaster/hooks/useToaster.d.ts +3 -3
  182. package/dist/src/constants.d.ts +7 -7
  183. package/dist/src/helpers/dom/domUtils.d.ts +5 -0
  184. package/dist/src/main.d.ts +1 -0
  185. package/dist/src/patterns/Loading/components/PageLoading.d.ts +3 -3
  186. package/dist/style.css +1 -1
  187. package/dist/{useIDSButtonGroupItem-DUZ2VDnl.js → useIDSButtonGroupItem-BdwMUgHj.js} +1 -1
  188. package/dist/vitest.config.d.ts +2 -0
  189. package/package.json +2 -27
  190. package/dist/Loading.module-BoPWGcXe.js +0 -13
  191. package/dist/LogoFromSrc-C3T9li5n.js +0 -59
  192. package/dist/MenuItem.module-36-M9GIW.js +0 -24
  193. package/dist/Popover.module-qeMQ2uo5.js +0 -11
  194. package/dist/TabSet.module-BduoH_21.js +0 -13
  195. package/dist/Table.module-CONHit0r.js +0 -32
  196. /package/dist/{setupTests.d.ts → vitest.setup.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { ac as m } from "../../../LoadingSuspense-CbdTDOzY.js";
2
+ import { a5 as m } from "../../../LoadingSuspense-BMFBqvXJ.js";
3
3
  import "../../Icon/Icon.types.js";
4
4
  export {
5
5
  m as ToastIcon
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "./Toaster.types.js";
4
4
  import "../../index-2QXL0WYc.js";
5
- import { ae as f } from "../../LoadingSuspense-CbdTDOzY.js";
5
+ import { a7 as f } from "../../LoadingSuspense-BMFBqvXJ.js";
6
6
  import "../../enums.js";
7
7
  import "../Stack/Stack.js";
8
- import "../../floating-ui.react-DfZ-vbiG.js";
8
+ import "../../floating-ui.react-nmA48tb2.js";
9
9
  export {
10
10
  f as IressToaster
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { O as s, N as a } from "../../LoadingSuspense-CbdTDOzY.js";
3
+ import { O as s, N as a } from "../../LoadingSuspense-BMFBqvXJ.js";
4
4
  export {
5
5
  s as IressToasterProvider,
6
6
  a as ToasterContext
@@ -1,5 +1,26 @@
1
- import "react";
2
- import { P as s } from "../../../LoadingSuspense-CbdTDOzY.js";
1
+ import { useContext as u, useEffect as a, useMemo as c } from "react";
2
+ import { N as f } from "../../../LoadingSuspense-BMFBqvXJ.js";
3
+ const w = (e) => {
4
+ const r = u(f);
5
+ if (r === void 0)
6
+ throw new Error("useToaster must be used within a IressToasterProvider");
7
+ const { show: t, setOptions: i, options: o, animateOut: n } = r;
8
+ return a(() => {
9
+ e && i({
10
+ ...o,
11
+ position: e ?? o.position
12
+ });
13
+ }, [e]), c(
14
+ () => ({
15
+ success: (s) => t({ ...s, status: "success" }),
16
+ error: (s) => t({ ...s, status: "error" }),
17
+ info: (s) => t({ ...s, status: "info" }),
18
+ close: n,
19
+ options: o
20
+ }),
21
+ [n, o, t]
22
+ );
23
+ };
3
24
  export {
4
- s as useToaster
25
+ w as useToaster
5
26
  };
@@ -1,16 +1,17 @@
1
- import { TOAST_ANIMATION as o, TOAST_STATUS as r } from "./Toast/Toast.types.js";
2
- import { TOASTER_ARIA_ATTRIBUTES as I, TOASTER_POSITION as e, TOAST_POSITION_ANIMATION_MATRIX as t, ToasterPosition as O } from "./Toaster.types.js";
3
- import { M as S, O as _, T as N, N as P, P as R } from "../../LoadingSuspense-CbdTDOzY.js";
1
+ import { TOAST_ANIMATION as r, TOAST_STATUS as s } from "./Toast/Toast.types.js";
2
+ import { TOASTER_ARIA_ATTRIBUTES as e, TOASTER_POSITION as t, TOAST_POSITION_ANIMATION_MATRIX as I, ToasterPosition as O } from "./Toaster.types.js";
3
+ import { M as S, O as _, T as N, N as x } from "../../LoadingSuspense-BMFBqvXJ.js";
4
+ import { useToaster as f } from "./hooks/useToaster.js";
4
5
  export {
5
6
  S as IressToast,
6
7
  _ as IressToasterProvider,
7
- I as TOASTER_ARIA_ATTRIBUTES,
8
- e as TOASTER_POSITION,
9
- o as TOAST_ANIMATION,
10
- t as TOAST_POSITION_ANIMATION_MATRIX,
11
- r as TOAST_STATUS,
8
+ e as TOASTER_ARIA_ATTRIBUTES,
9
+ t as TOASTER_POSITION,
10
+ r as TOAST_ANIMATION,
11
+ I as TOAST_POSITION_ANIMATION_MATRIX,
12
+ s as TOAST_STATUS,
12
13
  N as Toast,
13
- P as ToasterContext,
14
+ x as ToasterContext,
14
15
  O as ToasterPosition,
15
- R as useToaster
16
+ f as useToaster
16
17
  };
@@ -7,7 +7,7 @@ import "../CheckboxMark/CheckboxMark.types.js";
7
7
  import { IressCheckboxMark as N } from "../CheckboxMark/CheckboxMark.js";
8
8
  import { ButtonCssClass as T } from "../Button/Button.types.js";
9
9
  import { ToggleLayout as w } from "./Toggle.types.js";
10
- const L = "ids-toggle--toggle-base-v5142", M = "ids-toggle--checkbox-mark-v5142", S = "ids-toggle--toggle-button-v5142", j = "ids-toggle--button-checked-v5142", R = "ids-toggle--toggle-button-container-v5142", $ = "ids-toggle--label-v5142", E = "ids-toggle--layout__inline-v5142", G = "ids-toggle--layout__stack-v5142", t = {
10
+ const L = "ids-toggle--toggle-base-v5151", M = "ids-toggle--checkbox-mark-v5151", S = "ids-toggle--toggle-button-v5151", j = "ids-toggle--button-checked-v5151", R = "ids-toggle--toggle-button-container-v5151", $ = "ids-toggle--label-v5151", E = "ids-toggle--layout__inline-v5151", G = "ids-toggle--layout__stack-v5151", t = {
11
11
  toggleBase: L,
12
12
  checkboxMark: M,
13
13
  toggleButton: S,
@@ -15,8 +15,8 @@ const L = "ids-toggle--toggle-base-v5142", M = "ids-toggle--checkbox-mark-v5142"
15
15
  toggleButtonContainer: R,
16
16
  label: $,
17
17
  layout__inline: E,
18
- "layout__inline-reverse": "ids-toggle--layout__inline-reverse-v5142",
19
- "layout__inline-between": "ids-toggle--layout__inline-between-v5142",
18
+ "layout__inline-reverse": "ids-toggle--layout__inline-reverse-v5151",
19
+ "layout__inline-between": "ids-toggle--layout__inline-between-v5151",
20
20
  layout__stack: G
21
21
  }, O = ({
22
22
  hiddenLabel: o,
@@ -1,36 +1,36 @@
1
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
2
  import { useState as P, useEffect as R, Fragment as S } from "react";
3
3
  import { c as j } from "../../index-2QXL0WYc.js";
4
- import { d as E, o as H, b as L, f as M, s as B, t as D, v as G, g as U, h as W, i as k } from "../../floating-ui.react-DfZ-vbiG.js";
5
- import { FloatingUIAlign as q } from "../../enums.js";
4
+ import { i as E, o as H, p as L, h as M, q as k, r as q, t as B, k as D, l as G, m as U } from "../../floating-ui.react-nmA48tb2.js";
5
+ import { FloatingUIAlign as W } from "../../enums.js";
6
6
  import { propagateTestid as m } from "../../helpers/utility/propagateTestid.js";
7
7
  import { toArray as z } from "../../helpers/formatting/toArray.js";
8
8
  import { idsLogger as J } from "../../helpers/utility/idsLogger.js";
9
9
  import { focusableElements as K } from "../../helpers/dom/focusableElements.js";
10
- const Q = "ids-tooltip-v5142", V = "ids-tooltip--content-v5142", r = {
10
+ const Q = "ids-tooltip-v5151", V = "ids-tooltip--content-v5151", r = {
11
11
  tooltip: Q,
12
12
  content: V
13
13
  }, X = ({
14
14
  children: o,
15
15
  className: u,
16
16
  align: n = "top",
17
- delay: d = 500,
18
- open: h = !1,
17
+ delay: h = 500,
18
+ open: d = !1,
19
19
  tooltipText: g,
20
20
  "data-testid": s,
21
21
  ...v
22
22
  }) => {
23
23
  const F = {
24
24
  [r.tooltip]: !0
25
- }, I = j(u, F), i = n === "auto", [c, b] = P(h), { refs: t, floatingStyles: A, context: e } = E({
25
+ }, I = j(u, F), i = n === "auto", [c, A] = P(d), { refs: t, floatingStyles: b, context: e } = E({
26
26
  placement: i ? void 0 : n,
27
27
  open: c,
28
- onOpenChange: b,
29
- middleware: [H(5), i ? L() : M(), B()]
30
- }), x = D(e, {
28
+ onOpenChange: A,
29
+ middleware: [H(5), i ? L() : M(), k()]
30
+ }), x = q(e, {
31
31
  move: !1,
32
- delay: { open: d, close: 500 }
33
- }), y = G(e), C = U(e), T = W(e, { role: "tooltip" }), { getReferenceProps: w, getFloatingProps: N } = k([
32
+ delay: { open: h, close: 500 }
33
+ }), y = B(e), C = D(e), T = G(e, { role: "tooltip" }), { getReferenceProps: w, getFloatingProps: N } = U([
34
34
  x,
35
35
  y,
36
36
  C,
@@ -44,7 +44,7 @@ const Q = "ids-tooltip-v5142", V = "ids-tooltip--content-v5142", r = {
44
44
  To fix this warning, change the activator to either IressButton, IressMenuItem or another focusable component.`,
45
45
  "warn"
46
46
  );
47
- }, [o, t.reference]), /* @__PURE__ */ p("div", { className: I, ...v, "data-testid": s, children: [
47
+ }, [o, t.reference]), /* @__PURE__ */ f("div", { className: I, ...v, "data-testid": s, children: [
48
48
  /* @__PURE__ */ a(
49
49
  "div",
50
50
  {
@@ -59,19 +59,19 @@ const Q = "ids-tooltip-v5142", V = "ids-tooltip--content-v5142", r = {
59
59
  "div",
60
60
  {
61
61
  className: r.content,
62
- style: A,
62
+ style: b,
63
63
  "data-testid": m(s, "tooltip-text"),
64
64
  ref: t.setFloating,
65
65
  ...N(),
66
- children: z(g).map((l, f, O) => /* @__PURE__ */ p(S, { children: [
66
+ children: z(g).map((l, p, O) => /* @__PURE__ */ f(S, { children: [
67
67
  l,
68
- f < O.length - 1 && /* @__PURE__ */ a("br", {})
69
- ] }, f))
68
+ p < O.length - 1 && /* @__PURE__ */ a("br", {})
69
+ ] }, p))
70
70
  }
71
71
  )
72
72
  ] });
73
73
  };
74
- X.Align = q;
74
+ X.Align = W;
75
75
  export {
76
76
  X as IressTooltip
77
77
  };
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
2
  import { c as r } from "../../../index-2QXL0WYc.js";
3
3
  import { capitalizeFirstLetter as g } from "../../../helpers/formatting/capitalizeFirstLetter.js";
4
4
  import { GlobalCSSClass as m } from "../../../enums.js";
5
- const v = "ids-validation-message-v5142", f = "ids-validation-message--prefix-v5142", x = "ids-validation-message--message-v5142", p = "ids-validation-message--danger-v5142", u = "ids-validation-message--warning-v5142", N = "ids-validation-message--success-v5142", w = "ids-validation-message--info-v5142", e = {
5
+ const v = "ids-validation-message-v5151", f = "ids-validation-message--prefix-v5151", x = "ids-validation-message--message-v5151", p = "ids-validation-message--danger-v5151", u = "ids-validation-message--warning-v5151", N = "ids-validation-message--success-v5151", w = "ids-validation-message--info-v5151", e = {
6
6
  validationMessage: v,
7
7
  prefix: f,
8
8
  message: x,
@@ -5,7 +5,7 @@ import { IressValidationMessage as p } from "../ValidationMessage.js";
5
5
  import "react";
6
6
  import { useIdIfNeeded as c } from "../../../hooks/useIdIfNeeded.js";
7
7
  import { IressValidationLink as y } from "../ValidationLink/ValidationLink.js";
8
- const v = "ids-validation-summary-v5142", I = {
8
+ const v = "ids-validation-summary-v5151", I = {
9
9
  validationSummary: v
10
10
  }, S = ({
11
11
  children: a,
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "5.14.2", e = {
1
+ const t = "5.15.1", e = {
2
2
  /**
3
3
  * Extra small breakpoint, for mobile devices
4
4
  */
@@ -140,35 +140,35 @@ const t = "5.14.2", e = {
140
140
  "small",
141
141
  "cite",
142
142
  "caption"
143
- ], I = ["top", "middle", "bottom", "stretch"], _ = {
143
+ ], T = ["top", "middle", "bottom", "stretch"], I = {
144
144
  /**
145
145
  * The default z-index used for most elements. Can be combined with raised and floating elevations.
146
146
  */
147
- "000": 0,
147
+ DEFAULT: 0,
148
148
  /**
149
149
  * Used for IressNavbar. Can be combined with overflow elevation.
150
150
  */
151
- 100: 100,
151
+ NAVBAR: 100,
152
152
  /**
153
153
  * Used for IressPopover. Can be combined with floating elevation.
154
154
  */
155
- 200: 200,
155
+ POPOVER: 200,
156
156
  /**
157
157
  * Used for IressSlideout. Can be combined with floating elevation.
158
158
  */
159
- 300: 300,
159
+ SLIDEOUT: 300,
160
160
  /**
161
161
  * Used for IressModal. Can be combined with floating elevation.
162
162
  */
163
- 400: 400,
163
+ MODAL: 400,
164
164
  /**
165
165
  * Used for IressToast. Can be combined with floating elevation.
166
166
  */
167
- 500: 500,
167
+ TOAST: 500,
168
168
  /**
169
169
  * Used for IressTooltip. Can be combined with floating elevation.
170
170
  */
171
- 600: 600
171
+ TOOLTIP: 600
172
172
  };
173
173
  export {
174
174
  n as BREAKPOINTS,
@@ -188,6 +188,6 @@ export {
188
188
  E as TEXT_ALIGNS,
189
189
  W as TEXT_MODES,
190
190
  l as TEXT_VARIANTS,
191
- I as VERTICAL_ALIGNS,
192
- _ as Z_INDEX
191
+ T as VERTICAL_ALIGNS,
192
+ I as Z_INDEX
193
193
  };
@@ -3437,27 +3437,27 @@ export {
3437
3437
  pi as C,
3438
3438
  bi as F,
3439
3439
  gi as a,
3440
- mi as b,
3441
- di as c,
3442
- Ii as d,
3443
- Ei as e,
3444
- fi as f,
3445
- Ci as g,
3446
- Mi as h,
3447
- Oi as i,
3440
+ et as b,
3441
+ hi as c,
3442
+ vi as d,
3443
+ xi as e,
3444
+ Lo as f,
3445
+ wi as g,
3446
+ fi as h,
3447
+ Ii as i,
3448
3448
  ui as j,
3449
- et as k,
3450
- hi as l,
3451
- vi as m,
3452
- xi as n,
3449
+ Ci as k,
3450
+ Mi as l,
3451
+ Oi as m,
3452
+ Ai as n,
3453
3453
  li as o,
3454
- Lo as p,
3455
- wi as q,
3456
- Ai as r,
3457
- ai as s,
3458
- yi as t,
3454
+ mi as p,
3455
+ ai as q,
3456
+ yi as r,
3457
+ di as s,
3458
+ Ti as t,
3459
3459
  Fo as u,
3460
- Ti as v,
3460
+ Ei as v,
3461
3461
  Pi as w,
3462
3462
  Ri as x
3463
3463
  };
@@ -0,0 +1,12 @@
1
+ const o = (s, t) => {
2
+ if (!s || !("closest" in s) || typeof s.closest != "function")
3
+ return null;
4
+ try {
5
+ return s.closest(t);
6
+ } catch {
7
+ return null;
8
+ }
9
+ };
10
+ export {
11
+ o as safeClosest
12
+ };
@@ -1,25 +1,30 @@
1
- import { getDateObj as m, formatShortDate as f } from "./formatDate.js";
1
+ import { getDateObj as c, formatShortDate as f } from "./formatDate.js";
2
2
  const g = (o) => {
3
3
  var r;
4
- const t = m(o);
4
+ const t = c(o);
5
5
  if (!t.getDate()) return "";
6
- const c = t.toLocaleString("default", {
7
- year: "numeric"
6
+ const m = t.toLocaleString("default", {
7
+ year: "numeric",
8
+ timeZone: "UTC"
8
9
  }), n = t.toLocaleString("default", {
9
- month: "2-digit"
10
- }), a = t.toLocaleString("default", {
11
- day: "2-digit"
10
+ month: "2-digit",
11
+ timeZone: "UTC"
12
12
  }), i = t.toLocaleString("default", {
13
+ day: "2-digit",
14
+ timeZone: "UTC"
15
+ }), a = t.toLocaleString("default", {
13
16
  timeStyle: "medium",
14
- hour12: !1
17
+ hour12: !1,
18
+ timeZone: "UTC"
15
19
  });
16
20
  let e = (r = t.toLocaleDateString("default", {
17
21
  day: "2-digit",
18
- timeZoneName: "long"
22
+ timeZoneName: "long",
23
+ timeZone: "UTC"
19
24
  }).substring(4).match(/\b(\w)/g)) == null ? void 0 : r.join("");
20
- return e === "CUT" && (e = "UTC"), `${c}-${n}-${a} ${i} (${e})`;
25
+ return e === "CUT" && (e = "UTC"), `${m}-${n}-${i} ${a} (${e})`;
21
26
  }, y = (o, t = "week") => {
22
- const c = m(o).getTime(), n = Math.round((c - Date.now()) / 1e3), a = [
27
+ const m = c(o).getTime(), n = Math.round((m - Date.now()) / 1e3), i = [
23
28
  60,
24
29
  3600,
25
30
  86400,
@@ -27,7 +32,7 @@ const g = (o) => {
27
32
  86400 * 30,
28
33
  86400 * 365,
29
34
  1 / 0
30
- ], i = [
35
+ ], a = [
31
36
  "second",
32
37
  "minute",
33
38
  "hour",
@@ -35,13 +40,13 @@ const g = (o) => {
35
40
  "week",
36
41
  "month",
37
42
  "year"
38
- ], e = a.findIndex(
43
+ ], e = i.findIndex(
39
44
  (s) => s > Math.abs(n)
40
45
  );
41
- if (e > 0 && t && e >= i.indexOf(t))
46
+ if (e > 0 && t && e >= a.indexOf(t))
42
47
  return f(o);
43
- const r = e ? a[e - 1] : 1;
44
- return new Intl.RelativeTimeFormat("default", { numeric: "auto" }).format(Math.floor(n / r), i[e]);
48
+ const r = e ? i[e - 1] : 1;
49
+ return new Intl.RelativeTimeFormat("default", { numeric: "auto" }).format(Math.floor(n / r), a[e]);
45
50
  };
46
51
  export {
47
52
  g as formatISODateTime,