@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.
- package/README.md +1 -1
- package/dist/{AutocompleteNoResults-CA3kLIMp.js → AutocompleteNoResults-DmkoqKJm.js} +1 -1
- package/dist/{ComboboxHiddenInput-3nXQLXWs.js → ComboboxHiddenInput-CLb6Xp8s.js} +5 -5
- package/dist/{FieldAppendToLabel-fLFwdVe0.js → FieldAppendToLabel-Dw0Mn-US.js} +7 -6
- package/dist/{InputBase-Gu84XDiJ.js → InputBase-55eUCLgT.js} +1 -1
- package/dist/Loading.module-DUh3NIWC.js +13 -0
- package/dist/{LoadingSuspense-CbdTDOzY.js → LoadingSuspense-BMFBqvXJ.js} +2486 -2471
- package/dist/LogoFromSrc-7tFjDtcF.js +59 -0
- package/dist/MenuItem.module-bTAQrrT3.js +24 -0
- package/dist/Popover.module-Ct33fXgT.js +11 -0
- package/dist/PopoverProvider-BAhkQIhz.js +137 -0
- package/dist/{SelectControl-CzcS0y-K.js → SelectControl-BbirMx9B.js} +1 -1
- package/dist/{SliderTicks-Dfc9Q2il.js → SliderTicks-Jb0VVHsB.js} +1 -1
- package/dist/TabSet.module-z2bbww8p.js +13 -0
- package/dist/Table.module-DNbVlA6R.js +32 -0
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +6 -5
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Combobox/Combobox.js +6 -5
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +6 -5
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +6 -5
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +5 -4
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Expander/Expander.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
- package/dist/components/Field/components/FieldAppendToLabel.js +6 -5
- package/dist/components/Filter/Filter.js +6 -5
- package/dist/components/Filter/components/FilterResetButton.js +5 -4
- package/dist/components/Filter/components/FilterSearch.js +5 -4
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +10 -9
- package/dist/components/Form/FormField/FormFieldset.js +6 -5
- package/dist/components/Form/HookForm/HookForm.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/composeHideClasses.js +6 -5
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +5 -4
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +5 -4
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/InputCurrency/index.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +5 -4
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +6 -5
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +2 -2
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
- package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +2 -2
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +23 -23
- package/dist/components/Popover/Popover.js +12 -12
- package/dist/components/Popover/PopoverProvider.js +12 -113
- package/dist/components/Popover/components/NestedPopoverActivator.js +3 -3
- package/dist/components/Popover/components/PopoverActivator.js +40 -41
- package/dist/components/Popover/components/PopoverContent.js +15 -15
- 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 +1 -1
- package/dist/components/Provider/Provider.js +38 -0
- package/dist/components/Provider/index.js +4 -0
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/Readonly/Readonly.js +6 -5
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +5 -4
- package/dist/components/RichSelect/SelectBody/SelectBody.js +6 -5
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +10 -9
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +5 -4
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +5 -4
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +5 -4
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +4 -3
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +4 -3
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +5 -4
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +5 -4
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +5 -4
- package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
- package/dist/components/Select/helpers/nodesToSelectOptions.js +3 -3
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +4 -3
- package/dist/components/Slideout/components/SlideoutInner.js +3 -2
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/components/SliderTicks.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/components/TabSetItem.js +2 -2
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableBody/TableBody.js +15 -15
- 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/TableSortButton.js +3 -3
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +1 -1
- package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- package/dist/components/Toaster/ToasterProvider.js +1 -1
- package/dist/components/Toaster/hooks/useToaster.js +24 -3
- package/dist/components/Toaster/index.js +11 -10
- package/dist/components/Toggle/Toggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +18 -18
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.js +11 -11
- package/dist/{floating-ui.react-DfZ-vbiG.js → floating-ui.react-nmA48tb2.js} +18 -18
- package/dist/helpers/dom/domUtils.js +12 -0
- package/dist/helpers/formatting/formatDateTime.js +21 -16
- package/dist/main.js +287 -284
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
- package/dist/patterns/Loading/components/DefaultLoading.js +3 -3
- package/dist/patterns/Loading/components/LongLoading.js +2 -2
- package/dist/patterns/Loading/components/PageLoading.js +3 -3
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/src/components/Form/Form.types.d.ts +10 -1
- package/dist/src/components/Provider/Provider.d.ts +20 -0
- package/dist/src/components/Provider/index.d.ts +1 -0
- package/dist/src/components/Toaster/Toast/Toast.types.d.ts +2 -1
- package/dist/src/components/Toaster/ToasterProvider.d.ts +5 -2
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +3 -3
- package/dist/src/constants.d.ts +7 -7
- package/dist/src/helpers/dom/domUtils.d.ts +5 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-DUZ2VDnl.js → useIDSButtonGroupItem-BdwMUgHj.js} +1 -1
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -27
- package/dist/Loading.module-BoPWGcXe.js +0 -13
- package/dist/LogoFromSrc-C3T9li5n.js +0 -59
- package/dist/MenuItem.module-36-M9GIW.js +0 -24
- package/dist/Popover.module-qeMQ2uo5.js +0 -11
- package/dist/TabSet.module-BduoH_21.js +0 -13
- package/dist/Table.module-CONHit0r.js +0 -32
- /package/dist/{setupTests.d.ts → vitest.setup.d.ts} +0 -0
|
@@ -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 {
|
|
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-
|
|
8
|
+
import "../../floating-ui.react-nmA48tb2.js";
|
|
9
9
|
export {
|
|
10
10
|
f as IressToaster
|
|
11
11
|
};
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import {
|
|
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
|
-
|
|
25
|
+
w as useToaster
|
|
5
26
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { TOAST_ANIMATION as
|
|
2
|
-
import { TOASTER_ARIA_ATTRIBUTES as
|
|
3
|
-
import { M as S, O as _, T as N, N as
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
14
|
+
x as ToasterContext,
|
|
14
15
|
O as ToasterPosition,
|
|
15
|
-
|
|
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-
|
|
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-
|
|
19
|
-
"layout__inline-between": "ids-toggle--layout__inline-between-
|
|
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
|
|
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 {
|
|
5
|
-
import { FloatingUIAlign as
|
|
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-
|
|
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:
|
|
18
|
-
open:
|
|
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,
|
|
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:
|
|
29
|
-
middleware: [H(5), i ? L() : M(),
|
|
30
|
-
}), x =
|
|
28
|
+
onOpenChange: A,
|
|
29
|
+
middleware: [H(5), i ? L() : M(), k()]
|
|
30
|
+
}), x = q(e, {
|
|
31
31
|
move: !1,
|
|
32
|
-
delay: { open:
|
|
33
|
-
}), y =
|
|
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__ */
|
|
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:
|
|
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,
|
|
66
|
+
children: z(g).map((l, p, O) => /* @__PURE__ */ f(S, { children: [
|
|
67
67
|
l,
|
|
68
|
-
|
|
69
|
-
] },
|
|
68
|
+
p < O.length - 1 && /* @__PURE__ */ a("br", {})
|
|
69
|
+
] }, p))
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
|
-
X.Align =
|
|
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-
|
|
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-
|
|
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.
|
|
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
|
-
],
|
|
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
|
-
|
|
147
|
+
DEFAULT: 0,
|
|
148
148
|
/**
|
|
149
149
|
* Used for IressNavbar. Can be combined with overflow elevation.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
NAVBAR: 100,
|
|
152
152
|
/**
|
|
153
153
|
* Used for IressPopover. Can be combined with floating elevation.
|
|
154
154
|
*/
|
|
155
|
-
|
|
155
|
+
POPOVER: 200,
|
|
156
156
|
/**
|
|
157
157
|
* Used for IressSlideout. Can be combined with floating elevation.
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
SLIDEOUT: 300,
|
|
160
160
|
/**
|
|
161
161
|
* Used for IressModal. Can be combined with floating elevation.
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
MODAL: 400,
|
|
164
164
|
/**
|
|
165
165
|
* Used for IressToast. Can be combined with floating elevation.
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
TOAST: 500,
|
|
168
168
|
/**
|
|
169
169
|
* Used for IressTooltip. Can be combined with floating elevation.
|
|
170
170
|
*/
|
|
171
|
-
|
|
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
|
-
|
|
192
|
-
|
|
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
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
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
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3449
|
+
Ci as k,
|
|
3450
|
+
Mi as l,
|
|
3451
|
+
Oi as m,
|
|
3452
|
+
Ai as n,
|
|
3453
3453
|
li as o,
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
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
|
-
|
|
3460
|
+
Ei as v,
|
|
3461
3461
|
Pi as w,
|
|
3462
3462
|
Ri as x
|
|
3463
3463
|
};
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { getDateObj as
|
|
1
|
+
import { getDateObj as c, formatShortDate as f } from "./formatDate.js";
|
|
2
2
|
const g = (o) => {
|
|
3
3
|
var r;
|
|
4
|
-
const t =
|
|
4
|
+
const t = c(o);
|
|
5
5
|
if (!t.getDate()) return "";
|
|
6
|
-
const
|
|
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
|
-
|
|
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"), `${
|
|
25
|
+
return e === "CUT" && (e = "UTC"), `${m}-${n}-${i} ${a} (${e})`;
|
|
21
26
|
}, y = (o, t = "week") => {
|
|
22
|
-
const
|
|
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
|
-
],
|
|
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 =
|
|
43
|
+
], e = i.findIndex(
|
|
39
44
|
(s) => s > Math.abs(n)
|
|
40
45
|
);
|
|
41
|
-
if (e > 0 && t && e >=
|
|
46
|
+
if (e > 0 && t && e >= a.indexOf(t))
|
|
42
47
|
return f(o);
|
|
43
|
-
const r = e ?
|
|
44
|
-
return new Intl.RelativeTimeFormat("default", { numeric: "auto" }).format(Math.floor(n / r),
|
|
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,
|