@orioncactuscorp/ui 1.2.0 → 1.4.0
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 +56 -27
- package/dist/components/Accordion/Accordion.css +1 -1
- package/dist/components/Accordion/Accordion.js +39 -38
- package/dist/components/Accordion/Accordion.module.scss.js +5 -5
- package/dist/components/ActionArea/ActionArea.css +1 -1
- package/dist/components/ActionArea/ActionArea.js +101 -71
- package/dist/components/ActionArea/ActionAreaLayout.css +1 -0
- package/dist/components/ActionArea/ActionAreaLayout.js +145 -0
- package/dist/components/ActionArea/ActionAreaLayout.module.scss.js +11 -0
- package/dist/components/ActionArea.js +10 -4
- package/dist/components/Alert/Alert.css +1 -1
- package/dist/components/BackgroundIconButton/BackgroundIconButton.css +1 -1
- package/dist/components/BackgroundIconButton/BackgroundIconButton.js +72 -52
- package/dist/components/Badge/Badge.css +1 -1
- package/dist/components/Badge/Badge.js +69 -25
- package/dist/components/Button/Button.css +1 -1
- package/dist/components/Button/Button.js +79 -139
- package/dist/components/Cell/Cell.css +1 -1
- package/dist/components/Cell/Cell.js +98 -88
- package/dist/components/CheckMark/CheckMark.css +1 -1
- package/dist/components/CheckMark/CheckMark.js +20 -18
- package/dist/components/CheckMark/CheckMark.module.scss.js +7 -3
- package/dist/components/Checkbox/Checkbox.css +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.js +10 -8
- package/dist/components/Field/Field.css +1 -1
- package/dist/components/Fieldset/Fieldset.css +1 -1
- package/dist/components/IconButton/IconButton.css +1 -1
- package/dist/components/IconButton/IconButton.js +48 -29
- package/dist/components/Interaction/Interaction.css +1 -1
- package/dist/components/Loading/Loading.css +1 -1
- package/dist/components/Loading/Loading.js +10 -10
- package/dist/components/Menu/Menu.css +1 -1
- package/dist/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +377 -346
- package/dist/components/Modal/useModalDrag.js +654 -614
- package/dist/components/Radio/Radio.css +1 -1
- package/dist/components/Radio/Radio.module.scss.js +9 -7
- package/dist/components/ScrollArea/ScrollArea.css +1 -1
- package/dist/components/SectionHeader/SectionHeader.css +1 -1
- package/dist/components/Select/Select.css +1 -1
- package/dist/components/Select/Select.js +15 -15
- package/dist/components/Select/SelectContent.css +1 -1
- package/dist/components/Switch/Switch.css +1 -1
- package/dist/components/Switch/Switch.module.scss.js +6 -4
- package/dist/components/TextArea/TextArea.css +1 -1
- package/dist/components/TextArea/TextAreaContent.css +1 -1
- package/dist/components/TextButton/TextButton.css +1 -1
- package/dist/components/TextInput/TextInput.css +1 -1
- package/dist/components/TextInput/TextInputContent.css +1 -1
- package/dist/components/Tooltip/Tooltip.css +1 -1
- package/dist/components/internal/Pressable.js +90 -0
- package/dist/foundations/atomic.css +1 -1
- package/dist/foundations/motion.css +1 -1
- package/dist/foundations/typo.css +1 -1
- package/dist/foundations.css +3 -3
- package/dist/index.js +102 -96
- package/dist/react/motion.js +109 -106
- package/dist/styles.css +32 -31
- package/dist/ui/src/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/ui/src/components/ActionArea/ActionArea.d.ts +1 -1
- package/dist/ui/src/components/ActionArea/ActionArea.d.ts.map +1 -1
- package/dist/ui/src/components/ActionArea/ActionAreaLayout.d.ts +12 -0
- package/dist/ui/src/components/ActionArea/ActionAreaLayout.d.ts.map +1 -0
- package/dist/ui/src/components/ActionArea/index.d.ts +2 -1
- package/dist/ui/src/components/ActionArea/index.d.ts.map +1 -1
- package/dist/ui/src/components/ActionArea/types.d.ts +13 -2
- package/dist/ui/src/components/ActionArea/types.d.ts.map +1 -1
- package/dist/ui/src/components/BackgroundIconButton/BackgroundIconButton.d.ts +1 -1
- package/dist/ui/src/components/BackgroundIconButton/BackgroundIconButton.d.ts.map +1 -1
- package/dist/ui/src/components/BackgroundIconButton/index.d.ts +1 -1
- package/dist/ui/src/components/BackgroundIconButton/index.d.ts.map +1 -1
- package/dist/ui/src/components/BackgroundIconButton/types.d.ts +6 -5
- package/dist/ui/src/components/BackgroundIconButton/types.d.ts.map +1 -1
- package/dist/ui/src/components/Badge/Badge.d.ts +1 -1
- package/dist/ui/src/components/Badge/Badge.d.ts.map +1 -1
- package/dist/ui/src/components/Badge/types.d.ts +19 -2
- package/dist/ui/src/components/Badge/types.d.ts.map +1 -1
- package/dist/ui/src/components/Button/Button.d.ts.map +1 -1
- package/dist/ui/src/components/Button/types.d.ts +3 -7
- package/dist/ui/src/components/Button/types.d.ts.map +1 -1
- package/dist/ui/src/components/Cell/Cell.d.ts.map +1 -1
- package/dist/ui/src/components/CheckMark/CheckMark.d.ts +1 -1
- package/dist/ui/src/components/CheckMark/CheckMark.d.ts.map +1 -1
- package/dist/ui/src/components/CheckMark/index.d.ts +1 -1
- package/dist/ui/src/components/CheckMark/index.d.ts.map +1 -1
- package/dist/ui/src/components/CheckMark/types.d.ts +2 -0
- package/dist/ui/src/components/CheckMark/types.d.ts.map +1 -1
- package/dist/ui/src/components/IconButton/IconButton.d.ts +1 -1
- package/dist/ui/src/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/src/components/IconButton/index.d.ts +1 -1
- package/dist/ui/src/components/IconButton/index.d.ts.map +1 -1
- package/dist/ui/src/components/IconButton/types.d.ts +6 -5
- package/dist/ui/src/components/IconButton/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/contexts.d.ts +1 -0
- package/dist/ui/src/components/Modal/contexts.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/types.d.ts +7 -6
- package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
- package/dist/ui/src/components/internal/Pressable.d.ts +19 -0
- package/dist/ui/src/components/internal/Pressable.d.ts.map +1 -0
- package/dist/ui/src/index.d.ts +5 -5
- package/dist/ui/src/index.d.ts.map +1 -1
- package/dist/ui/src/react/motion/index.d.ts +9 -8
- package/dist/ui/src/react/motion/index.d.ts.map +1 -1
- package/dist/ui/src/utils/motion.d.ts +15 -14
- package/dist/ui/src/utils/motion.d.ts.map +1 -1
- package/dist/utils/motion.js +282 -183
- package/dist/vscode/oc-ui-vars.css +31 -16
- package/package.json +2 -2
- package/src/scss/foundations/atomic.scss +12 -10
- package/src/scss/foundations/atomic.test.ts +34 -0
- package/src/scss/foundations/motion.scss +30 -16
- package/src/scss/foundations/typo.scss +1 -1
- package/src/scss/index.scss +1 -0
- package/src/scss/mixins/_motion.scss +168 -77
- package/src/scss/mixins/_motion.test.ts +137 -54
- package/src/scss/mixins/_radius.scss +3 -0
- package/src/scss/mixins/_radius.test.ts +52 -0
- package/src/scss/mixins/_typo.scss +2 -2
|
@@ -1,111 +1,141 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
|
|
2
|
+
import { jsx as e, jsxs as B } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as V, createContext as _, Children as y, isValidElement as A, Fragment as g } from "react";
|
|
4
|
+
import j from "../Button/Button.js";
|
|
5
|
+
import C from "../TextButton/TextButton.js";
|
|
6
|
+
import b from "./ActionArea.module.scss.js";
|
|
7
|
+
const N = _(null), q = {
|
|
8
|
+
strong: ["main", "equal", "alternative", "sub"],
|
|
9
|
+
neutral: ["sub", "alternative", "equal", "main"],
|
|
10
|
+
compact: ["sub", "alternative", "equal", "main"]
|
|
11
|
+
};
|
|
12
|
+
function x(...t) {
|
|
9
13
|
return t.filter(Boolean).join(" ");
|
|
10
14
|
}
|
|
11
15
|
function m(t) {
|
|
12
16
|
return t != null && t !== !1 && t !== "";
|
|
13
17
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
18
|
+
function z() {
|
|
19
|
+
return V(N)?.variant ?? "strong";
|
|
16
20
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
19
|
-
if (!
|
|
20
|
-
if (o.type ===
|
|
21
|
+
function P(t) {
|
|
22
|
+
return y.toArray(t).flatMap((o) => {
|
|
23
|
+
if (!A(o)) return [];
|
|
24
|
+
if (o.type === g) {
|
|
21
25
|
const n = o.props;
|
|
22
|
-
return
|
|
26
|
+
return P(n.children);
|
|
23
27
|
}
|
|
24
|
-
return o.type !==
|
|
28
|
+
return o.type !== v ? [] : [o];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function D(t) {
|
|
32
|
+
return A(t) && t.type === v;
|
|
33
|
+
}
|
|
34
|
+
function E(t) {
|
|
35
|
+
return y.toArray(t).flatMap((o) => {
|
|
36
|
+
if (!A(o) || o.type !== g) return [o];
|
|
37
|
+
const n = o.props;
|
|
38
|
+
return E(n.children);
|
|
25
39
|
});
|
|
26
40
|
}
|
|
27
|
-
function
|
|
41
|
+
function O(t) {
|
|
42
|
+
return t.props.priority ?? "main";
|
|
43
|
+
}
|
|
44
|
+
function I({
|
|
45
|
+
children: t,
|
|
46
|
+
variant: o
|
|
47
|
+
}) {
|
|
48
|
+
const n = q[o ?? "strong"];
|
|
49
|
+
if (!n) return t;
|
|
50
|
+
const r = E(t);
|
|
51
|
+
return r.every(D) ? n.flatMap(
|
|
52
|
+
(i) => r.filter(
|
|
53
|
+
(a) => O(a) === i
|
|
54
|
+
)
|
|
55
|
+
) : t;
|
|
56
|
+
}
|
|
57
|
+
function M({
|
|
28
58
|
variant: t,
|
|
29
59
|
children: o,
|
|
30
60
|
compactContent: n
|
|
31
61
|
}) {
|
|
32
62
|
if (process.env.NODE_ENV === "production") return;
|
|
33
|
-
const r =
|
|
63
|
+
const r = P(o);
|
|
34
64
|
r.filter(
|
|
35
|
-
(a) => a
|
|
65
|
+
(a) => O(a) === "main"
|
|
36
66
|
).length > 1 && console.warn(
|
|
37
67
|
"[@orioncactuscorp/ui] ActionArea should generally contain one main ActionAreaButton."
|
|
38
68
|
), t === "cancel" && r.length > 1 && console.warn(
|
|
39
69
|
'[@orioncactuscorp/ui] ActionArea variant="cancel" is intended for a single main action.'
|
|
40
70
|
), t === "cancel" && r.some(
|
|
41
|
-
(a) => a.props.
|
|
71
|
+
(a) => a.props.priority !== void 0 && a.props.priority !== "main"
|
|
42
72
|
) && console.warn(
|
|
43
|
-
'[@orioncactuscorp/ui] ActionArea variant="cancel" should use ActionAreaButton
|
|
73
|
+
'[@orioncactuscorp/ui] ActionArea variant="cancel" should use ActionAreaButton priority="main".'
|
|
44
74
|
), t !== "compact" && m(n) && console.warn(
|
|
45
75
|
'[@orioncactuscorp/ui] ActionArea compactContent is only rendered with variant="compact".'
|
|
46
76
|
);
|
|
47
77
|
}
|
|
48
|
-
function
|
|
78
|
+
function F({
|
|
49
79
|
children: t,
|
|
50
80
|
className: o = "",
|
|
51
81
|
variant: n = "strong",
|
|
52
82
|
caption: r,
|
|
53
|
-
extraContent:
|
|
83
|
+
extraContent: i,
|
|
54
84
|
compactContent: a,
|
|
55
85
|
background: u = !1,
|
|
56
|
-
ref:
|
|
57
|
-
...
|
|
86
|
+
ref: p,
|
|
87
|
+
...s
|
|
58
88
|
}) {
|
|
59
|
-
const c = m(
|
|
60
|
-
return
|
|
89
|
+
const c = m(i), f = m(r), d = n === "compact" && m(a), l = I({ children: t, variant: n });
|
|
90
|
+
return M({ variant: n, children: t, compactContent: a }), /* @__PURE__ */ e(N.Provider, { value: { variant: n }, children: /* @__PURE__ */ B(
|
|
61
91
|
"div",
|
|
62
92
|
{
|
|
63
|
-
...
|
|
64
|
-
ref:
|
|
65
|
-
className: b
|
|
93
|
+
...s,
|
|
94
|
+
ref: p,
|
|
95
|
+
className: x(b.actionArea, o),
|
|
66
96
|
"data-oc-component": "action-area",
|
|
67
97
|
"data-oc-variant": n,
|
|
68
98
|
"data-oc-background": u ? "true" : void 0,
|
|
69
99
|
"data-oc-has-extra": c ? "true" : void 0,
|
|
70
|
-
"data-oc-has-caption":
|
|
100
|
+
"data-oc-has-caption": f ? "true" : void 0,
|
|
71
101
|
children: [
|
|
72
|
-
c ? /* @__PURE__ */ e("div", { "data-oc-part": "extra-slot", children:
|
|
73
|
-
|
|
74
|
-
|
|
102
|
+
c ? /* @__PURE__ */ e("div", { "data-oc-part": "extra-slot", children: i }) : null,
|
|
103
|
+
f ? /* @__PURE__ */ e("p", { "data-oc-part": "caption", children: r }) : null,
|
|
104
|
+
d ? /* @__PURE__ */ B("div", { "data-oc-part": "compact-row", children: [
|
|
75
105
|
/* @__PURE__ */ e("div", { "data-oc-part": "compact-slot", children: a }),
|
|
76
|
-
/* @__PURE__ */ e("div", { "data-oc-part": "actions", children:
|
|
77
|
-
] }) : /* @__PURE__ */ e("div", { "data-oc-part": "actions", children:
|
|
106
|
+
/* @__PURE__ */ e("div", { "data-oc-part": "actions", children: l })
|
|
107
|
+
] }) : /* @__PURE__ */ e("div", { "data-oc-part": "actions", children: l })
|
|
78
108
|
]
|
|
79
109
|
}
|
|
80
110
|
) });
|
|
81
111
|
}
|
|
82
|
-
function
|
|
112
|
+
function v({
|
|
83
113
|
children: t,
|
|
84
114
|
className: o = "",
|
|
85
|
-
|
|
115
|
+
priority: n = "main",
|
|
86
116
|
disabled: r = !1,
|
|
87
|
-
loading:
|
|
117
|
+
loading: i = !1,
|
|
88
118
|
leadingIcon: a,
|
|
89
119
|
trailingIcon: u,
|
|
90
|
-
icon:
|
|
91
|
-
...
|
|
120
|
+
icon: p,
|
|
121
|
+
...s
|
|
92
122
|
}) {
|
|
93
|
-
const c =
|
|
123
|
+
const c = z();
|
|
94
124
|
process.env.NODE_ENV !== "production" && c === "cancel" && n !== "main" && console.warn(
|
|
95
|
-
'[@orioncactuscorp/ui] ActionAreaButton inside ActionArea variant="cancel" should use
|
|
125
|
+
'[@orioncactuscorp/ui] ActionAreaButton inside ActionArea variant="cancel" should use priority="main".'
|
|
96
126
|
);
|
|
97
|
-
const
|
|
127
|
+
const f = !!(p && t == null && !a && !u), d = {
|
|
98
128
|
"data-oc-action-area-button": "true",
|
|
99
|
-
"data-oc-action-area-button-
|
|
100
|
-
},
|
|
101
|
-
if (n === "sub" && c === "strong" && !
|
|
102
|
-
if ("href" in
|
|
129
|
+
"data-oc-action-area-button-priority": n
|
|
130
|
+
}, l = x(b.actionButton, o), h = c === "cancel";
|
|
131
|
+
if (n === "sub" && c === "strong" && !p && !i && !r) {
|
|
132
|
+
if ("href" in s && s.href !== void 0)
|
|
103
133
|
return /* @__PURE__ */ e(
|
|
104
|
-
|
|
134
|
+
C,
|
|
105
135
|
{
|
|
106
|
-
...
|
|
107
|
-
...
|
|
108
|
-
className:
|
|
136
|
+
...s,
|
|
137
|
+
...d,
|
|
138
|
+
className: l,
|
|
109
139
|
leftIcon: a,
|
|
110
140
|
rightIcon: u,
|
|
111
141
|
variant: "assistive",
|
|
@@ -113,15 +143,15 @@ function N({
|
|
|
113
143
|
children: t
|
|
114
144
|
}
|
|
115
145
|
);
|
|
116
|
-
const
|
|
146
|
+
const R = s, { type: w = "button", ...T } = R;
|
|
117
147
|
return /* @__PURE__ */ e(
|
|
118
|
-
|
|
148
|
+
C,
|
|
119
149
|
{
|
|
120
|
-
...
|
|
121
|
-
...
|
|
150
|
+
...T,
|
|
151
|
+
...d,
|
|
122
152
|
as: "button",
|
|
123
|
-
type:
|
|
124
|
-
className:
|
|
153
|
+
type: w,
|
|
154
|
+
className: l,
|
|
125
155
|
leftIcon: a,
|
|
126
156
|
rightIcon: u,
|
|
127
157
|
variant: "assistive",
|
|
@@ -131,29 +161,29 @@ function N({
|
|
|
131
161
|
);
|
|
132
162
|
}
|
|
133
163
|
return /* @__PURE__ */ e(
|
|
134
|
-
|
|
164
|
+
j,
|
|
135
165
|
{
|
|
136
|
-
...
|
|
137
|
-
...
|
|
138
|
-
className:
|
|
139
|
-
appearance: n === "main" && !
|
|
140
|
-
variant: n === "main" && !
|
|
166
|
+
...s,
|
|
167
|
+
...d,
|
|
168
|
+
className: l,
|
|
169
|
+
appearance: n === "main" && !h ? "solid" : "outlined",
|
|
170
|
+
variant: n === "main" && !h ? "primary" : n === "alternative" ? "secondary" : n === "equal" ? "primary" : "assistive",
|
|
141
171
|
size: "large",
|
|
142
172
|
fullWidth: c === "strong" || c === "cancel",
|
|
143
173
|
disabled: r,
|
|
144
|
-
loading:
|
|
174
|
+
loading: i,
|
|
145
175
|
leadingIcon: a,
|
|
146
176
|
trailingIcon: u,
|
|
147
|
-
icon:
|
|
148
|
-
children:
|
|
177
|
+
icon: p,
|
|
178
|
+
children: f ? void 0 : t
|
|
149
179
|
}
|
|
150
180
|
);
|
|
151
181
|
}
|
|
152
|
-
const
|
|
153
|
-
Button:
|
|
182
|
+
const S = Object.assign(F, {
|
|
183
|
+
Button: v
|
|
154
184
|
});
|
|
155
185
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
186
|
+
F as ActionArea,
|
|
187
|
+
v as ActionAreaButton,
|
|
188
|
+
S as default
|
|
159
189
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.oc-ActionAreaLayout-module__layout__UBL8D{--oc-action-area-layout-block-size: 100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto;min-block-size:0;block-size:var(--oc-action-area-layout-block-size)}.oc-ActionAreaLayout-module__body__Q3-3E{min-block-size:0;overflow-y:auto;overscroll-behavior-y:contain}.oc-ActionAreaLayout-module__footer__-ewkN{position:relative;z-index:1;min-block-size:0}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { useState as b, useCallback as S, useEffect as h, useMemo as N, useContext as O, createContext as C } from "react";
|
|
4
|
+
import { ActionArea as x } from "./ActionArea.js";
|
|
5
|
+
import d from "./ActionAreaLayout.module.scss.js";
|
|
6
|
+
const p = {
|
|
7
|
+
canScroll: !1,
|
|
8
|
+
scrolledToBottom: !0
|
|
9
|
+
}, L = 1, v = C(null);
|
|
10
|
+
function f(...o) {
|
|
11
|
+
return o.filter(Boolean).join(" ");
|
|
12
|
+
}
|
|
13
|
+
function R(o, t) {
|
|
14
|
+
typeof o == "function" ? o(t) : o && (o.current = t);
|
|
15
|
+
}
|
|
16
|
+
function E(o) {
|
|
17
|
+
if (!o) return p;
|
|
18
|
+
const t = o.scrollHeight - o.scrollTop - o.clientHeight, r = o.scrollHeight - o.clientHeight > L;
|
|
19
|
+
return {
|
|
20
|
+
canScroll: r,
|
|
21
|
+
scrolledToBottom: !r || t <= L
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function A(o) {
|
|
25
|
+
const t = O(v);
|
|
26
|
+
if (!t)
|
|
27
|
+
throw new Error(`${o} must be used within ActionAreaLayout.`);
|
|
28
|
+
return t;
|
|
29
|
+
}
|
|
30
|
+
function H(o, t) {
|
|
31
|
+
return o.canScroll === t.canScroll && o.scrolledToBottom === t.scrolledToBottom ? o : t;
|
|
32
|
+
}
|
|
33
|
+
function w({
|
|
34
|
+
children: o,
|
|
35
|
+
className: t = "",
|
|
36
|
+
ref: r,
|
|
37
|
+
...n
|
|
38
|
+
}) {
|
|
39
|
+
const [s, i] = b(p), u = N(
|
|
40
|
+
() => ({
|
|
41
|
+
...s,
|
|
42
|
+
setScrollState: i
|
|
43
|
+
}),
|
|
44
|
+
[s]
|
|
45
|
+
);
|
|
46
|
+
return /* @__PURE__ */ l(v.Provider, { value: u, children: /* @__PURE__ */ l(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
...n,
|
|
50
|
+
ref: r,
|
|
51
|
+
className: f(d.layout, t),
|
|
52
|
+
"data-oc-component": "action-area-layout",
|
|
53
|
+
children: o
|
|
54
|
+
}
|
|
55
|
+
) });
|
|
56
|
+
}
|
|
57
|
+
function _({
|
|
58
|
+
children: o,
|
|
59
|
+
className: t = "",
|
|
60
|
+
onScroll: r,
|
|
61
|
+
ref: n,
|
|
62
|
+
...s
|
|
63
|
+
}) {
|
|
64
|
+
const { setScrollState: i } = A(
|
|
65
|
+
"ActionAreaLayout.Body"
|
|
66
|
+
), [u, g] = b(null), c = S(
|
|
67
|
+
(e) => {
|
|
68
|
+
i(
|
|
69
|
+
(a) => H(a, E(e))
|
|
70
|
+
);
|
|
71
|
+
},
|
|
72
|
+
[i]
|
|
73
|
+
), B = S(
|
|
74
|
+
(e) => {
|
|
75
|
+
g(e), R(n, e), c(e);
|
|
76
|
+
},
|
|
77
|
+
[n, c]
|
|
78
|
+
);
|
|
79
|
+
return h(() => {
|
|
80
|
+
const e = u;
|
|
81
|
+
if (c(e), !e || typeof ResizeObserver > "u")
|
|
82
|
+
return;
|
|
83
|
+
const a = new ResizeObserver(() => c(e)), y = () => {
|
|
84
|
+
a.disconnect(), a.observe(e);
|
|
85
|
+
for (const T of Array.from(e.children))
|
|
86
|
+
a.observe(T);
|
|
87
|
+
c(e);
|
|
88
|
+
}, m = typeof MutationObserver > "u" ? void 0 : new MutationObserver(y);
|
|
89
|
+
return y(), m?.observe(e, { childList: !0 }), () => {
|
|
90
|
+
a.disconnect(), m?.disconnect();
|
|
91
|
+
};
|
|
92
|
+
}, [u, c]), /* @__PURE__ */ l(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
...s,
|
|
96
|
+
ref: B,
|
|
97
|
+
className: f(d.body, t),
|
|
98
|
+
"data-oc-part": "body",
|
|
99
|
+
"data-oc-component": "action-area-layout-body",
|
|
100
|
+
onScroll: (e) => {
|
|
101
|
+
c(e.currentTarget), r?.(e);
|
|
102
|
+
},
|
|
103
|
+
children: o
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function F({
|
|
108
|
+
children: o,
|
|
109
|
+
className: t = "",
|
|
110
|
+
ref: r,
|
|
111
|
+
...n
|
|
112
|
+
}) {
|
|
113
|
+
return A("ActionAreaLayout.Footer"), /* @__PURE__ */ l(
|
|
114
|
+
"footer",
|
|
115
|
+
{
|
|
116
|
+
...n,
|
|
117
|
+
ref: r,
|
|
118
|
+
className: f(d.footer, t),
|
|
119
|
+
"data-oc-part": "footer",
|
|
120
|
+
"data-oc-component": "action-area-layout-footer",
|
|
121
|
+
children: o
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function j({
|
|
126
|
+
background: o = "auto",
|
|
127
|
+
...t
|
|
128
|
+
}) {
|
|
129
|
+
const { canScroll: r, scrolledToBottom: n } = A(
|
|
130
|
+
"ActionAreaLayout.ActionArea"
|
|
131
|
+
);
|
|
132
|
+
return /* @__PURE__ */ l(x, { ...t, background: o === "auto" ? r && !n : o });
|
|
133
|
+
}
|
|
134
|
+
const P = Object.assign(w, {
|
|
135
|
+
Body: _,
|
|
136
|
+
Footer: F,
|
|
137
|
+
ActionArea: j
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
w as ActionAreaLayout,
|
|
141
|
+
j as ActionAreaLayoutActionArea,
|
|
142
|
+
_ as ActionAreaLayoutBody,
|
|
143
|
+
F as ActionAreaLayoutFooter,
|
|
144
|
+
P as default
|
|
145
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './ActionAreaLayout.css';const o = "oc-ActionAreaLayout-module__layout__UBL8D", t = "oc-ActionAreaLayout-module__body__Q3-3E", e = "oc-ActionAreaLayout-module__footer__-ewkN", _ = {
|
|
2
|
+
layout: o,
|
|
3
|
+
body: t,
|
|
4
|
+
footer: e
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
t as body,
|
|
8
|
+
_ as default,
|
|
9
|
+
e as footer,
|
|
10
|
+
o as layout
|
|
11
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ActionArea as
|
|
1
|
+
import { ActionArea as a, ActionAreaButton as A, default as e } from "./ActionArea/ActionArea.js";
|
|
2
|
+
import { default as n, ActionAreaLayoutActionArea as c, ActionAreaLayoutBody as i, ActionAreaLayoutFooter as u, ActionAreaLayout as y } from "./ActionArea/ActionAreaLayout.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
a as ActionArea,
|
|
5
|
+
A as ActionAreaButton,
|
|
6
|
+
n as ActionAreaLayout,
|
|
7
|
+
c as ActionAreaLayoutActionArea,
|
|
8
|
+
i as ActionAreaLayoutBody,
|
|
9
|
+
u as ActionAreaLayoutFooter,
|
|
10
|
+
y as ActionAreaLayoutRoot,
|
|
11
|
+
e as default
|
|
6
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.oc-Alert-module__content__9Fty2{--oc-alert-width: 23em;--oc-modal-width: min(calc(100vw - var(--oc-space-section-padding-viewport-x) * 2), var(--oc-alert-width));--oc-modal-max-height: calc(100dvh - (var(--oc-space-section-padding-viewport-y) * 2));--oc-modal-radius: .75em
|
|
1
|
+
.oc-Alert-module__content__9Fty2{--oc-alert-width: 23em;--oc-modal-width: min(calc(100vw - var(--oc-space-section-padding-viewport-x) * 2), var(--oc-alert-width));--oc-modal-max-height: calc(100dvh - (var(--oc-space-section-padding-viewport-y) * 2));--oc-modal-radius: max(0px, .75em * var(--oc-atomic-radius-factor));font-size:calc(var(--oc-typo-size-body2) * var(--oc-typo-size-factor, 1));line-height:calc(var(--oc-typo-height-body2) * var(--oc-typo-size-factor, 1));letter-spacing:var(--oc-typo-spacing-body2);font-weight:var(--oc-typo-weight-body2-normal)}[data-oc-component=modal-backdrop]:has(+[data-oc-component=modal-viewport] [data-oc-alert=true]){--oc-modal-backdrop-opacity: var(--oc-color-global-opacity-88)}.oc-Alert-module__panel__oJM9V{display:flex;flex-direction:column;max-block-size:var(--oc-modal-max-height);overflow:auto;padding:1.125em}.oc-Alert-module__container__uQbiG{display:flex;flex-direction:column;gap:1em;padding-inline:.25em}.oc-Alert-module__message__Wd9FZ{display:flex;flex-direction:column;gap:.375em;word-break:keep-all;overflow-wrap:break-word}.oc-Alert-module__heading__xJ-uS{font-size:calc(var(--oc-typo-size-body1) * var(--oc-typo-size-factor, 1));line-height:calc(var(--oc-typo-height-body1) * var(--oc-typo-size-factor, 1));letter-spacing:var(--oc-typo-spacing-body1);font-weight:var(--oc-typo-weight-body1-bold);margin:0;color:var(--oc-color-theme-label-strong);text-align:start;padding-block:.0625em}.oc-Alert-module__description__ysmJi{margin:0;color:var(--oc-color-theme-label-alternative);text-align:start;white-space:pre-wrap}.oc-Alert-module__actionArea__AD5Vn{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1.25em}.oc-Alert-module__action__a5XCP{min-inline-size:0}.oc-Alert-module__action__a5XCP[data-oc-alert-action-variant=negative]{--oc-text-button-color: var(--oc-color-theme-status-negative)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.oc-BackgroundIconButton-module__backgroundIconButton__up7D1{position:relative;display:inline-flex;align-items:center;justify-content:center;appearance:none;border:none;background-color:transparent;padding:0;cursor:pointer;text-decoration:none;color:inherit;will-change:transform;transition:transform calc(var(--oc-motion-duration-feedback) * var(--oc-motion-duration-
|
|
1
|
+
.oc-BackgroundIconButton-module__backgroundIconButton__up7D1{position:relative;display:inline-flex;align-items:center;justify-content:center;appearance:none;border:none;background-color:transparent;padding:0;cursor:pointer;text-decoration:none;color:inherit;will-change:transform;transition:transform calc(var(--oc-motion-duration-feedback) * var(--oc-motion-duration-factor) * var(--oc-motion-pace-normal) * 1) var(--oc-motion-timing-feedback)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1{-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;--oc-interaction-inset-x: -.25rem;--oc-interaction-inset-y: -.25rem;--oc-interaction-scale: 1;--oc-interaction-time: .15s;--oc-interaction-z-index: 3;--oc-background-icon-button-blend-opacity: var(--oc-color-global-opacity-8);--oc-background-icon-button-size: 1.5rem;--oc-background-icon-button-webkit-blend-opacity: .2;width:var(--oc-background-icon-button-size);height:var(--oc-background-icon-button-size);transition:transform calc(var(--oc-motion-duration-feedback) * var(--oc-motion-duration-factor) * var(--oc-motion-pace-normal) * 1) var(--oc-motion-timing-feedback)}@media(prefers-reduced-motion:reduce){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1{transition:none;transform:none}}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1>[data-oc-component=interaction]{clip-path:inset(0 round var(--oc-atomic-radius-max))}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:active{transform:scale(max(0,1 + (.95 - 1) * var(--oc-motion-scale-factor-feedback)))}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:focus-visible>[data-oc-component=interaction]{opacity:var(--oc-interaction-opacity-focus);transform:scale(1)}@media(hover:hover){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:hover>[data-oc-component=interaction]{opacity:var(--oc-interaction-opacity-hover);transform:scale(1)}}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:active>[data-oc-component=interaction]{opacity:var(--oc-interaction-opacity-active);transform:scale(1)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=icon]{color:var(--oc-color-theme-static-black);opacity:var(--oc-color-global-opacity-43)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]{background-color:transparent}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]:after{background-color:var(--oc-color-theme-static-white);mix-blend-mode:plus-lighter;opacity:var(--oc-color-global-opacity-35)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]:before{background-color:rgb(0,0,0,var(--oc-background-icon-button-blend-opacity));mix-blend-mode:multiply}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__primary__n6x6u) [data-oc-part=icon]{color:var(--oc-color-theme-static-white)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__primary__n6x6u) [data-oc-part=background]{background-color:var(--oc-color-theme-primary-normal)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=background]{position:absolute;top:-.25rem;left:-.25rem;z-index:0;width:100%;height:100%;padding:.25rem;box-sizing:content-box;-webkit-backdrop-filter:blur(var(--oc-atomic-blur-normal)) saturate(150%) brightness(150%);backdrop-filter:blur(var(--oc-atomic-blur-normal)) saturate(150%) brightness(150%);border-radius:var(--oc-atomic-radius-max);overflow:hidden}@supports (-webkit-backdrop-filter: none){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=background]{clip-path:inset(0 round var(--oc-atomic-radius-max));overflow:auto;border-radius:0}}@supports (-moz-appearance: none){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=background]{clip-path:inset(0 round var(--oc-atomic-radius-max));overflow:auto;border-radius:0}}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=background]:before{content:"";position:absolute;top:0;left:0;z-index:1;width:100%;height:100%}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=background]:after{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;height:100%}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=icon]{display:inline-flex;align-items:center;justify-content:center;width:var(--oc-background-icon-button-size);height:var(--oc-background-icon-button-size);z-index:1}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1 [data-oc-part=icon]>svg{padding:.125rem}@supports (-webkit-backdrop-filter: none){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=icon]{color:var(--oc-color-global-coolNeutral-50);opacity:var(--oc-color-global-opacity-61);mix-blend-mode:plus-darker}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]{-webkit-backdrop-filter:blur(var(--oc-atomic-blur-normal)) saturate(150%) brightness(200%);backdrop-filter:blur(var(--oc-atomic-blur-normal)) saturate(150%) brightness(200%)}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]:before{background-color:#000;opacity:calc(var(--oc-background-icon-button-webkit-blend-opacity) + var(--oc-background-icon-button-webkit-blend-opacity-add, 0))}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__normal__pYVrG) [data-oc-part=background]:after{mix-blend-mode:normal}}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__alternative__YA8Jv) [data-oc-part=icon]{color:var(--oc-color-theme-static-white);opacity:var(--oc-color-global-opacity-88);mix-blend-mode:normal}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__alternative__YA8Jv) [data-oc-part=background]{background-color:color-mix(in srgb,var(--oc-color-global-coolNeutral-30),transparent calc(100% - (100% * var(--oc-color-global-opacity-61))));-webkit-backdrop-filter:none;backdrop-filter:none}.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__alternative__YA8Jv) [data-oc-part=background]:before,.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:where(.oc-BackgroundIconButton-module__alternative__YA8Jv) [data-oc-part=background]:after{background-color:transparent;mix-blend-mode:normal;opacity:1}@media(prefers-reduced-motion:reduce){.oc-BackgroundIconButton-module__backgroundIconButton__up7D1:active{transform:none}}
|
|
@@ -1,61 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as o, jsxs as N, Fragment as E } from "react/jsx-runtime";
|
|
3
|
+
import { isValidElement as I, cloneElement as P } from "react";
|
|
4
|
+
import j from "../Interaction/Interaction.js";
|
|
5
|
+
import y from "../internal/Pressable.js";
|
|
6
|
+
import i from "./BackgroundIconButton.module.scss.js";
|
|
7
|
+
function $({
|
|
8
|
+
className: k = "",
|
|
9
|
+
children: a,
|
|
10
|
+
href: l,
|
|
11
|
+
disabled: s = !1,
|
|
12
|
+
size: t = 24,
|
|
13
|
+
variant: n = "normal",
|
|
14
|
+
alternative: r = !1,
|
|
15
|
+
viewBox: d,
|
|
16
|
+
color: v,
|
|
17
|
+
style: h,
|
|
18
|
+
ref: u,
|
|
19
|
+
"aria-label": c,
|
|
20
|
+
"aria-labelledby": e,
|
|
21
|
+
"data-oc-component": m = "background-icon-button",
|
|
22
|
+
...p
|
|
20
23
|
}) {
|
|
21
|
-
process.env.NODE_ENV !== "production" && !
|
|
24
|
+
process.env.NODE_ENV !== "production" && !c && !e && console.warn(
|
|
22
25
|
"[@orioncactuscorp/ui] BackgroundIconButton requires `aria-label` or `aria-labelledby` for screen reader accessibility."
|
|
23
26
|
);
|
|
24
|
-
const
|
|
25
|
-
size:
|
|
26
|
-
color:
|
|
27
|
-
...
|
|
28
|
-
}) :
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const B = I(a) ? P(a, {
|
|
28
|
+
size: t,
|
|
29
|
+
color: v,
|
|
30
|
+
...d ? { viewBox: d } : {}
|
|
31
|
+
}) : a, b = [
|
|
32
|
+
i.backgroundIconButton,
|
|
33
|
+
i[n],
|
|
34
|
+
r ? i.alternative : "",
|
|
35
|
+
k
|
|
36
|
+
].filter(Boolean).join(" "), f = {
|
|
37
|
+
...h,
|
|
38
|
+
"--oc-background-icon-button-size": `${t / 16}rem`
|
|
39
|
+
}, g = /* @__PURE__ */ N(E, { children: [
|
|
40
|
+
/* @__PURE__ */ o("span", { "data-oc-part": "icon", children: B }),
|
|
41
|
+
/* @__PURE__ */ o("span", { "data-oc-part": "background", "aria-hidden": "true", role: "presentation" }),
|
|
42
|
+
/* @__PURE__ */ o(j, { variant: "light" })
|
|
43
|
+
] });
|
|
44
|
+
return l !== void 0 ? /* @__PURE__ */ o(
|
|
45
|
+
y,
|
|
31
46
|
{
|
|
32
|
-
...
|
|
33
|
-
ref:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
...p,
|
|
48
|
+
ref: u,
|
|
49
|
+
href: l,
|
|
50
|
+
disabled: s,
|
|
51
|
+
className: b,
|
|
52
|
+
"aria-label": c,
|
|
53
|
+
"aria-labelledby": e,
|
|
54
|
+
"data-oc-component": m,
|
|
55
|
+
"data-oc-variant": n,
|
|
56
|
+
"data-oc-size": String(t),
|
|
57
|
+
"data-oc-alternative": r ? "true" : void 0,
|
|
58
|
+
style: f,
|
|
59
|
+
children: g
|
|
60
|
+
}
|
|
61
|
+
) : /* @__PURE__ */ o(
|
|
62
|
+
y,
|
|
63
|
+
{
|
|
64
|
+
...p,
|
|
65
|
+
ref: u,
|
|
66
|
+
disabled: s,
|
|
67
|
+
className: b,
|
|
68
|
+
"aria-label": c,
|
|
69
|
+
"aria-labelledby": e,
|
|
70
|
+
"data-oc-component": m,
|
|
71
|
+
"data-oc-variant": n,
|
|
72
|
+
"data-oc-size": String(t),
|
|
73
|
+
"data-oc-alternative": r ? "true" : void 0,
|
|
74
|
+
style: f,
|
|
75
|
+
children: g
|
|
56
76
|
}
|
|
57
77
|
);
|
|
58
78
|
}
|
|
59
79
|
export {
|
|
60
|
-
|
|
80
|
+
$ as default
|
|
61
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.oc-Badge-module__badge__ZbEBU{font-size:calc(var(--oc-typo-size-label1) * var(--oc-typo-
|
|
1
|
+
.oc-Badge-module__badge__ZbEBU{font-size:calc(var(--oc-typo-size-label1) * var(--oc-typo-size-factor, 1));line-height:calc(var(--oc-typo-height-label1) * var(--oc-typo-size-factor, 1));letter-spacing:var(--oc-typo-spacing-label1);font-weight:var(--oc-typo-weight-label1-medium);display:inline-flex;position:relative;isolation:isolate;align-items:center;justify-content:center;gap:var(--oc-space-item-gap-atom);appearance:none;margin:0;border:none;background:transparent;padding:0;color:var(--oc-badge-color);text-align:center;text-decoration:none;white-space:nowrap}.oc-Badge-module__badge__ZbEBU:before{position:absolute;inset-block-start:calc(-1 * var(--oc-badge-padding-y));inset-inline-start:calc(-1 * var(--oc-badge-padding-x));z-index:1;box-sizing:content-box;border-radius:var(--oc-badge-radius);background-color:var(--oc-badge-background-color);padding:var(--oc-badge-padding-y) var(--oc-badge-padding-x);inline-size:100%;block-size:100%;content:"";opacity:var(--oc-badge-background-opacity)}.oc-Badge-module__badge__ZbEBU:where(.oc-Badge-module__padding__kNk-D){overflow:hidden;border-radius:var(--oc-badge-radius);padding:var(--oc-badge-padding-y) var(--oc-badge-padding-x);--oc-interaction-inset-x: 0;--oc-interaction-inset-y: 0}.oc-Badge-module__badge__ZbEBU:where(.oc-Badge-module__padding__kNk-D):before{inset:0;padding:0}.oc-Badge-module__badge__ZbEBU:focus-visible>[data-oc-component=interaction]{opacity:var(--oc-interaction-opacity-focus);transform:scale(1)}.oc-Badge-module__badge__ZbEBU[data-oc-interactive=true]{-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.oc-Badge-module__badge__ZbEBU[data-oc-interactive=true] [data-oc-part=content]{pointer-events:none}.oc-Badge-module__badge__ZbEBU [data-oc-part=content]{position:relative;z-index:3}.oc-Badge-module__badge__ZbEBU>[data-oc-component=interaction]{z-index:2;border-radius:var(--oc-badge-radius)}.oc-Badge-module__badge__ZbEBU{--oc-badge-padding-x: .4em;--oc-badge-padding-y: .25em;--oc-badge-radius: max(0px, .4em * var(--oc-atomic-radius-factor));--oc-badge-color: var(--oc-color-theme-label-alternative);--oc-badge-background-color: transparent;--oc-badge-background-opacity: var(--oc-color-global-opacity-100);--oc-interaction-color: currentcolor;--oc-interaction-inset-x: calc(-1 * var(--oc-badge-padding-x));--oc-interaction-inset-y: calc(-1 * var(--oc-badge-padding-y));--oc-interaction-radius: var(--oc-badge-radius)}.oc-Badge-module__normal__tNcew{--oc-badge-color: var(--oc-color-theme-label-alternative);--oc-badge-background-color: var(--oc-color-theme-fill-normal)}.oc-Badge-module__accent__nIDKx{--oc-badge-color: var(--oc-badge-accent-color, var(--oc-color-theme-primary-normal));--oc-badge-background-color: var(--oc-badge-accent-color, var(--oc-color-theme-primary-normal));--oc-badge-background-opacity: var(--oc-color-global-opacity-8)}.oc-Badge-module__overlay__4KVqG{-webkit-backdrop-filter:blur(var(--oc-atomic-blur-normal));backdrop-filter:blur(var(--oc-atomic-blur-normal));--oc-badge-color: var(--oc-color-theme-label-normal);--oc-badge-background-color: var(--oc-color-theme-background-normal-normal);--oc-badge-background-opacity: var(--oc-color-global-opacity-74)}.oc-Badge-module__tiny__2VWq-{font-size:calc(var(--oc-typo-size-caption1) * var(--oc-typo-size-factor, 1));line-height:calc(var(--oc-typo-height-caption1) * var(--oc-typo-size-factor, 1));letter-spacing:var(--oc-typo-spacing-caption1);font-weight:var(--oc-typo-weight-caption1-bold);--oc-badge-padding-x: .375em;--oc-badge-padding-y: .1em;--oc-badge-radius: max(0px, .3125em * var(--oc-atomic-radius-factor))}
|