@iress-oss/ids-components 6.0.0-alpha.1 → 6.0.0-alpha.3
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 +8832 -19058
- 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 +19 -18
|
@@ -7,10 +7,10 @@ import { IressPopover as ae } from "../Popover/Popover.js";
|
|
|
7
7
|
import "../Popover/Popover.styles.js";
|
|
8
8
|
import "../Popover/InputPopover/InputPopover.js";
|
|
9
9
|
import "../Popover/hooks/usePopover.js";
|
|
10
|
-
import { I as ne } from "../../Button-
|
|
10
|
+
import { I as ne } from "../../Button-mmhMLwp9.js";
|
|
11
11
|
import "../Button/CloseButton/CloseButton.js";
|
|
12
12
|
import { useRichSelectState as me } from "../RichSelect/hooks/useRichSelectState.js";
|
|
13
|
-
import "../../Autocomplete-
|
|
13
|
+
import "../../Autocomplete-C5ubHBTi.js";
|
|
14
14
|
import "../RichSelect/SelectBody/SelectBody.styles.js";
|
|
15
15
|
import { GlobalCSSClass as pe } from "../../enums.js";
|
|
16
16
|
import { useIdIfNeeded as le } from "../../hooks/useIdIfNeeded.js";
|
|
@@ -163,7 +163,7 @@ const I = {
|
|
|
163
163
|
children: [
|
|
164
164
|
E,
|
|
165
165
|
p.showHeader && /* @__PURE__ */ n(T, { children: [
|
|
166
|
-
/* @__PURE__ */ n(fe, { bg: "transparent", p: "spacing.
|
|
166
|
+
/* @__PURE__ */ n(fe, { bg: "transparent", p: "spacing.2", children: [
|
|
167
167
|
S && /* @__PURE__ */ e(
|
|
168
168
|
ve,
|
|
169
169
|
{
|
|
@@ -16,7 +16,7 @@ const e = t({
|
|
|
16
16
|
root: {},
|
|
17
17
|
chevron: {
|
|
18
18
|
selectChevron: !0,
|
|
19
|
-
marginInlineStart: "spacing.
|
|
19
|
+
marginInlineStart: "spacing.2",
|
|
20
20
|
_rtl: {
|
|
21
21
|
selectChevronRtl: !0
|
|
22
22
|
}
|
|
@@ -25,11 +25,11 @@ const e = t({
|
|
|
25
25
|
minWidth: "[270px]",
|
|
26
26
|
position: "relative",
|
|
27
27
|
"&:not(:last-child)": {
|
|
28
|
-
marginBottom: "spacing.
|
|
28
|
+
marginBottom: "spacing.4"
|
|
29
29
|
},
|
|
30
30
|
"& .ids-spinner": {
|
|
31
31
|
position: "absolute",
|
|
32
|
-
right: "spacing.
|
|
32
|
+
right: "spacing.5"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
optionList: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { I as i } from "../../../Button-
|
|
2
|
+
import { I as i } from "../../../Button-mmhMLwp9.js";
|
|
3
3
|
import "../../Button/CloseButton/CloseButton.js";
|
|
4
4
|
import { filter as p } from "../Filter.styles.js";
|
|
5
5
|
import { usePopoverItem as f } from "../../Popover/hooks/usePopoverItem.js";
|
|
@@ -1,146 +1,144 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { GlobalCSSClass as
|
|
4
|
-
import { getFormControlValueAsString as
|
|
5
|
-
import { InputBase as
|
|
6
|
-
import { IressSpinner as
|
|
1
|
+
import { jsx as r, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useRef as N, useState as G, useImperativeHandle as H } from "react";
|
|
3
|
+
import { GlobalCSSClass as d } from "../../enums.js";
|
|
4
|
+
import { getFormControlValueAsString as U } from "../../helpers/form/getFormControlValueAsString.js";
|
|
5
|
+
import { InputBase as z } from "./InputBase/InputBase.js";
|
|
6
|
+
import { IressSpinner as J } from "../Spinner/Spinner.js";
|
|
7
7
|
import "../Spinner/Spinner.styles.js";
|
|
8
|
-
import { useControlledState as
|
|
9
|
-
import { IressReadonly as
|
|
8
|
+
import { useControlledState as K } from "../../hooks/useControlledState.js";
|
|
9
|
+
import { IressReadonly as L } from "../Readonly/Readonly.js";
|
|
10
10
|
import "../Readonly/Readonly.styles.js";
|
|
11
|
-
import { c as
|
|
12
|
-
import { input as
|
|
13
|
-
import { s as
|
|
14
|
-
import { s as
|
|
15
|
-
import { useNoDefaultValueInForms as
|
|
16
|
-
import "../../Button-
|
|
17
|
-
import { IressCloseButton as
|
|
18
|
-
const
|
|
11
|
+
import { c as s } from "../../cx-DN21T1EH.js";
|
|
12
|
+
import { input as Q } from "./Input.styles.js";
|
|
13
|
+
import { s as W } from "../../factory-oPXoMw9H.js";
|
|
14
|
+
import { s as X } from "../../is-valid-prop-Ce0wiweq.js";
|
|
15
|
+
import { useNoDefaultValueInForms as Y } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
16
|
+
import "../../Button-mmhMLwp9.js";
|
|
17
|
+
import { IressCloseButton as Z } from "../Button/CloseButton/CloseButton.js";
|
|
18
|
+
const _ = ({ rows: a, ...f }, S) => {
|
|
19
19
|
const {
|
|
20
|
-
loading:
|
|
20
|
+
loading: l = !1,
|
|
21
21
|
clearable: P = !1,
|
|
22
|
-
defaultValue:
|
|
22
|
+
defaultValue: v,
|
|
23
23
|
onClear: D,
|
|
24
|
-
width:
|
|
25
|
-
prepend:
|
|
26
|
-
append:
|
|
27
|
-
onChange:
|
|
28
|
-
className:
|
|
29
|
-
readOnly:
|
|
30
|
-
formatter:
|
|
31
|
-
type:
|
|
24
|
+
width: M,
|
|
25
|
+
prepend: g,
|
|
26
|
+
append: u,
|
|
27
|
+
onChange: R,
|
|
28
|
+
className: C,
|
|
29
|
+
readOnly: B,
|
|
30
|
+
formatter: i,
|
|
31
|
+
type: E,
|
|
32
32
|
inline: T,
|
|
33
|
-
alignRight:
|
|
33
|
+
alignRight: I,
|
|
34
34
|
...t
|
|
35
|
-
} =
|
|
36
|
-
|
|
35
|
+
} = f;
|
|
36
|
+
Y({
|
|
37
37
|
component: "IressInput",
|
|
38
|
-
defaultValue:
|
|
38
|
+
defaultValue: v
|
|
39
39
|
});
|
|
40
|
-
const
|
|
40
|
+
const c = N(null), p = N(null), { value: m, setValue: h } = K({
|
|
41
41
|
component: "IressInput",
|
|
42
|
-
defaultValue:
|
|
43
|
-
value:
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (U(
|
|
49
|
-
M,
|
|
42
|
+
defaultValue: v,
|
|
43
|
+
value: f.value
|
|
44
|
+
}), y = U(m), [x, V] = G(!1), [j, O] = X(t), b = i && !x ? i(m) : y;
|
|
45
|
+
let w = i && !x ? { type: "text" } : { type: E };
|
|
46
|
+
if (a !== void 0 && (w = void 0), H(
|
|
47
|
+
S,
|
|
50
48
|
() => ({
|
|
51
|
-
...
|
|
49
|
+
...c.current,
|
|
52
50
|
extras: {
|
|
53
51
|
additionalOnChangeProps: ["onClear"]
|
|
54
52
|
}
|
|
55
53
|
})
|
|
56
|
-
),
|
|
54
|
+
), B)
|
|
57
55
|
return /* @__PURE__ */ r(
|
|
58
|
-
|
|
56
|
+
L,
|
|
59
57
|
{
|
|
60
58
|
...t,
|
|
61
59
|
defaultValue: void 0,
|
|
62
|
-
value:
|
|
63
|
-
alignRight:
|
|
64
|
-
append:
|
|
65
|
-
className:
|
|
66
|
-
children:
|
|
60
|
+
value: m,
|
|
61
|
+
alignRight: I,
|
|
62
|
+
append: u,
|
|
63
|
+
className: C,
|
|
64
|
+
children: b
|
|
67
65
|
}
|
|
68
66
|
);
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
67
|
+
const k = (e) => {
|
|
68
|
+
h(""), c.current?.focus();
|
|
69
|
+
const o = new Event("change", {
|
|
72
70
|
bubbles: !0
|
|
73
71
|
});
|
|
74
|
-
Object.defineProperty(
|
|
72
|
+
Object.defineProperty(o, "target", {
|
|
75
73
|
writable: !1,
|
|
76
74
|
value: { value: "", ...e.target }
|
|
77
|
-
}), D?.(
|
|
78
|
-
},
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
alignRight:
|
|
75
|
+
}), D?.(o);
|
|
76
|
+
}, q = (e) => {
|
|
77
|
+
const o = e.target.value;
|
|
78
|
+
h(o), R?.(e, o);
|
|
79
|
+
}, n = Q({
|
|
80
|
+
alignRight: I,
|
|
83
81
|
inline: T,
|
|
84
82
|
isTextarea: a !== void 0,
|
|
85
|
-
width:
|
|
83
|
+
width: M
|
|
86
84
|
});
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
|
|
85
|
+
return /* @__PURE__ */ F(
|
|
86
|
+
W.div,
|
|
89
87
|
{
|
|
90
|
-
className:
|
|
88
|
+
className: s(
|
|
91
89
|
// classes.root,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
d.FormElement,
|
|
91
|
+
d.Input,
|
|
92
|
+
C,
|
|
93
|
+
n.wrapper,
|
|
94
|
+
d.FormElementInner
|
|
97
95
|
),
|
|
98
96
|
"data-testid": t["data-testid"],
|
|
99
97
|
...j,
|
|
100
98
|
children: [
|
|
101
|
-
|
|
99
|
+
g && /* @__PURE__ */ r("div", { className: s(n.addon), children: g }),
|
|
102
100
|
/* @__PURE__ */ r(
|
|
103
|
-
|
|
101
|
+
z,
|
|
104
102
|
{
|
|
105
103
|
...O,
|
|
106
|
-
...
|
|
107
|
-
className:
|
|
108
|
-
value:
|
|
109
|
-
onChange:
|
|
104
|
+
...w,
|
|
105
|
+
className: n.formControl,
|
|
106
|
+
value: b,
|
|
107
|
+
onChange: q,
|
|
110
108
|
onFocus: (e) => {
|
|
111
|
-
|
|
109
|
+
V(!0), t?.onFocus?.(e), p.current ? p.current = null : queueMicrotask(() => e.target.select());
|
|
112
110
|
},
|
|
113
111
|
onMouseDown: (e) => {
|
|
114
|
-
t?.onMouseDown?.(e),
|
|
112
|
+
t?.onMouseDown?.(e), p.current = !0;
|
|
115
113
|
},
|
|
116
114
|
onBlur: (e) => {
|
|
117
|
-
|
|
115
|
+
V(!1), t?.onBlur?.(e);
|
|
118
116
|
},
|
|
119
117
|
rows: a,
|
|
120
|
-
ref:
|
|
118
|
+
ref: c
|
|
121
119
|
}
|
|
122
120
|
),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
/* @__PURE__ */ F("div", { className: s(n.internal), children: [
|
|
122
|
+
l && /* @__PURE__ */ r(
|
|
123
|
+
J,
|
|
126
124
|
{
|
|
127
|
-
screenreaderText:
|
|
125
|
+
screenreaderText: l === !0 ? "loading" : l
|
|
128
126
|
}
|
|
129
127
|
),
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
y && P && /* @__PURE__ */ r(
|
|
129
|
+
Z,
|
|
132
130
|
{
|
|
133
|
-
onClick:
|
|
131
|
+
onClick: k,
|
|
134
132
|
onMouseDown: (e) => e.preventDefault(),
|
|
135
133
|
screenreaderText: "Clear"
|
|
136
134
|
}
|
|
137
135
|
)
|
|
138
136
|
] }),
|
|
139
|
-
|
|
137
|
+
u && /* @__PURE__ */ r("div", { className: s(n.addon), children: u })
|
|
140
138
|
]
|
|
141
139
|
}
|
|
142
140
|
);
|
|
143
|
-
},
|
|
141
|
+
}, ge = A(_);
|
|
144
142
|
export {
|
|
145
|
-
|
|
143
|
+
ge as IressInput
|
|
146
144
|
};
|
|
@@ -27,7 +27,7 @@ const o = r({
|
|
|
27
27
|
alignItems: "center",
|
|
28
28
|
py: "none",
|
|
29
29
|
"&:not(:empty)": {
|
|
30
|
-
px: "spacing.
|
|
30
|
+
px: "spacing.3"
|
|
31
31
|
},
|
|
32
32
|
_empty: {
|
|
33
33
|
display: "none"
|
|
@@ -40,7 +40,7 @@ const o = r({
|
|
|
40
40
|
display: "flex",
|
|
41
41
|
alignItems: "center",
|
|
42
42
|
"& > *": {
|
|
43
|
-
padding: "[0 {spacing.spacing.
|
|
43
|
+
padding: "[0 {spacing.spacing.3}]"
|
|
44
44
|
},
|
|
45
45
|
_empty: {
|
|
46
46
|
display: "none"
|
|
@@ -49,7 +49,7 @@ const o = r({
|
|
|
49
49
|
formControl: {
|
|
50
50
|
borderWidth: 0,
|
|
51
51
|
borderRadius: "radius.system.form",
|
|
52
|
-
padding: "spacing.
|
|
52
|
+
padding: "spacing.2",
|
|
53
53
|
backgroundColor: "colour.neutral.10",
|
|
54
54
|
textStyle: "typography.body.md",
|
|
55
55
|
color: "colour.neutral.80",
|
|
@@ -69,10 +69,10 @@ const o = r({
|
|
|
69
69
|
backgroundColor: "colour.primary.surface",
|
|
70
70
|
color: "colour.primary.text",
|
|
71
71
|
borderRadius: "radius.system.form",
|
|
72
|
-
py: "spacing.
|
|
73
|
-
px: "spacing.
|
|
74
|
-
m: "-spacing.
|
|
75
|
-
mr: "spacing.
|
|
72
|
+
py: "spacing.2",
|
|
73
|
+
px: "spacing.2",
|
|
74
|
+
m: "-spacing.1",
|
|
75
|
+
mr: "spacing.2",
|
|
76
76
|
cursor: "pointer",
|
|
77
77
|
_hover: {
|
|
78
78
|
backgroundColor: "colour.primary.surfaceHover"
|
|
@@ -10,8 +10,8 @@ const e = t({
|
|
|
10
10
|
display: "inline-block",
|
|
11
11
|
position: "relative",
|
|
12
12
|
textStyle: "typography.body.sm.strong",
|
|
13
|
-
top: "-spacing.
|
|
14
|
-
mr: "spacing.
|
|
13
|
+
top: "-spacing.1",
|
|
14
|
+
mr: "spacing.1"
|
|
15
15
|
},
|
|
16
16
|
text: {
|
|
17
17
|
textStyle: "typography.body.md.strong"
|
|
@@ -23,7 +23,7 @@ const e = t({
|
|
|
23
23
|
hiddenLabel: !0,
|
|
24
24
|
css: {
|
|
25
25
|
root: {
|
|
26
|
-
mb: "spacing.
|
|
26
|
+
mb: "spacing.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -18,9 +18,9 @@ const e = ["root", "content", "prepend", "append", "spinner"], n = o({
|
|
|
18
18
|
cursor: "pointer",
|
|
19
19
|
display: "inline-flex",
|
|
20
20
|
fontKerning: "none",
|
|
21
|
-
gap: "spacing.
|
|
21
|
+
gap: "spacing.1",
|
|
22
22
|
pointerEvents: "auto",
|
|
23
|
-
textStyle: "typography.body.md",
|
|
23
|
+
textStyle: "typography.body.md.medium",
|
|
24
24
|
whiteSpace: "normal",
|
|
25
25
|
width: "auto",
|
|
26
26
|
color: "colour.primary.text",
|
|
@@ -2,7 +2,7 @@ import { jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as w, useContext as z, useMemo as s, useCallback as E, useEffect as G } from "react";
|
|
3
3
|
import { useControlledState as H } from "../../hooks/useControlledState.js";
|
|
4
4
|
import { useIdIfNeeded as K } from "../../hooks/useIdIfNeeded.js";
|
|
5
|
-
import { C as R } from "../../floating-ui.react-
|
|
5
|
+
import { C as R } from "../../floating-ui.react-BetVZ099.js";
|
|
6
6
|
import { s as v } from "../../factory-oPXoMw9H.js";
|
|
7
7
|
import { toArray as q } from "../../helpers/formatting/toArray.js";
|
|
8
8
|
import { menu as B } from "./Menu.styles.js";
|
|
@@ -77,8 +77,8 @@ const o = e({
|
|
|
77
77
|
insidePopover: {
|
|
78
78
|
true: {
|
|
79
79
|
root: {
|
|
80
|
-
my: "spacing.
|
|
81
|
-
px: "spacing.
|
|
80
|
+
my: "spacing.2",
|
|
81
|
+
px: "spacing.2"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
},
|
|
@@ -96,13 +96,13 @@ const o = e({
|
|
|
96
96
|
display: "inline-flex",
|
|
97
97
|
flexWrap: "wrap",
|
|
98
98
|
flexDirection: "column",
|
|
99
|
-
rowGap: "spacing.
|
|
99
|
+
rowGap: "spacing.1"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
inline: {
|
|
103
103
|
root: {
|
|
104
104
|
display: "inline-flex",
|
|
105
|
-
columnGap: "spacing.
|
|
105
|
+
columnGap: "spacing.1",
|
|
106
106
|
flexWrap: "wrap"
|
|
107
107
|
},
|
|
108
108
|
item: {
|
|
@@ -115,7 +115,7 @@ const o = e({
|
|
|
115
115
|
root: {
|
|
116
116
|
display: "flex",
|
|
117
117
|
flexDirection: "row",
|
|
118
|
-
columnGap: "spacing.
|
|
118
|
+
columnGap: "spacing.1",
|
|
119
119
|
"& > :not(hr)": {
|
|
120
120
|
flex: "1",
|
|
121
121
|
textAlign: "center"
|
|
@@ -173,9 +173,9 @@ const o = e({
|
|
|
173
173
|
_after: {
|
|
174
174
|
content: '""',
|
|
175
175
|
position: "absolute",
|
|
176
|
-
top: "spacing.
|
|
177
|
-
left: "spacing.
|
|
178
|
-
bottom: "spacing.
|
|
176
|
+
top: "spacing.0",
|
|
177
|
+
left: "spacing.0",
|
|
178
|
+
bottom: "spacing.0",
|
|
179
179
|
width: "[{radii.radius.025}]",
|
|
180
180
|
bg: "colour.primary.fill",
|
|
181
181
|
borderRadius: "radius.system.badge"
|
|
@@ -192,9 +192,9 @@ const o = e({
|
|
|
192
192
|
_after: {
|
|
193
193
|
content: '""',
|
|
194
194
|
position: "absolute",
|
|
195
|
-
left: "spacing.
|
|
196
|
-
right: "spacing.
|
|
197
|
-
bottom: "spacing.
|
|
195
|
+
left: "spacing.0",
|
|
196
|
+
right: "spacing.0",
|
|
197
|
+
bottom: "spacing.0",
|
|
198
198
|
height: "[{radii.radius.025}]",
|
|
199
199
|
bg: "colour.primary.fill",
|
|
200
200
|
borderRadius: "radius.system.badge"
|
|
@@ -14,7 +14,7 @@ import "../../Popover/Popover.js";
|
|
|
14
14
|
import "../../Popover/Popover.styles.js";
|
|
15
15
|
import "../../Popover/InputPopover/InputPopover.js";
|
|
16
16
|
import { usePopoverItem as ee } from "../../Popover/hooks/usePopoverItem.js";
|
|
17
|
-
import { a as te } from "../../../floating-ui.react-
|
|
17
|
+
import { a as te } from "../../../floating-ui.react-BetVZ099.js";
|
|
18
18
|
import { IressMenuDivider as re } from "../MenuDivider/MenuDivider.js";
|
|
19
19
|
import { PopoverContext as oe } from "../../Popover/hooks/usePopover.js";
|
|
20
20
|
import { GlobalCSSClass as se } from "../../../enums.js";
|
|
@@ -179,7 +179,7 @@ const ie = ({
|
|
|
179
179
|
const R = n(() => u === "listitem" ? /* @__PURE__ */ l("span", { role: "listitem", children: g }) : g, [g, u]);
|
|
180
180
|
return /* @__PURE__ */ K(U, { children: [
|
|
181
181
|
e?.isComposite ? /* @__PURE__ */ l(te, { render: (t) => $(R, t) }) : R,
|
|
182
|
-
D && /* @__PURE__ */ l(re, { mt: "spacing.
|
|
182
|
+
D && /* @__PURE__ */ l(re, { mt: "spacing.1" })
|
|
183
183
|
] });
|
|
184
184
|
}, Ae = H(ie);
|
|
185
185
|
export {
|