welcome-ui 10.0.0-alpha.2 → 10.0.0-alpha.4
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/Alert.css +1 -1
- package/dist/Alert.js +84 -87
- package/dist/Icon.js +8 -4
- package/dist/Link.js +19 -18
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +155 -76
- package/dist/StickyNote.css +1 -0
- package/dist/StickyNote.js +42 -0
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +40 -40
- package/dist/theme.css +1 -1
- package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
- package/dist/types/components/Alert/components/Title.d.ts +2 -0
- package/dist/types/components/Alert/index.d.ts +4 -3
- package/dist/types/components/Alert/types.d.ts +3 -9
- package/dist/types/components/Icon/icons.d.ts +2 -2
- package/dist/types/components/Pagination/types.d.ts +11 -0
- package/dist/types/components/StickyNote/components/Button.d.ts +2 -0
- package/dist/types/components/StickyNote/components/Title.d.ts +2 -0
- package/dist/types/components/StickyNote/index.d.ts +5 -0
- package/dist/types/components/StickyNote/index.test.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +15 -0
- package/dist/types/theme/types.d.ts +233 -218
- package/package.json +1 -1
package/dist/Alert.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_hm7mj_2{position:relative;display:flex;align-items:flex-start;width:100%;gap:var(--gap, var(--components-dimensions-alert-gap-content-md));border-radius:var(--components-dimensions-alert-border-radius);border-width:var(--border-width-sm);border-style:solid;padding:var(--padding);max-width:var(--maxWidth, max-content);background-color:var(--backgroundColor, var(--components-colors-alert-color-background-brand));border-color:var(--borderColor, var(--components-colors-alert-color-background-brand));color:var(--color, var(--components-colors-alert-color-text-brand-body))}._size-md_hm7mj_18{--padding: var(--components-dimensions-alert-padding-inline-md)}._size-md_hm7mj_18 ._content-actions_hm7mj_21{--gap: var(--components-dimensions-alert-gap-actions-md)}._size-md_hm7mj_18 ._without-title_hm7mj_24 ._icon-wrapper_hm7mj_24{margin-top:-2px}._size-lg_hm7mj_27{--padding: var(--components-dimensions-alert-padding-inline-lg);--gap: var(--components-dimensions-alert-gap-content-lg)}._size-lg_hm7mj_27 ._content-actions_hm7mj_21{--gap: var(--components-dimensions-alert-gap-actions-lg)}._variant-ai_hm7mj_34{--backgroundColor: var(--components-colors-alert-color-background-ai);--borderColor: transparent;background:linear-gradient(var(--components-colors-alert-color-background-ai) 0 0) padding-box,linear-gradient(90deg,var(--color-green-30) 0%,var(--color-teal-40) 20%,var(--color-blue-40) 40%,var(--color-violet-40) 60%,var(--color-pink-40) 80%,var(--color-red-orange-40) 100%) border-box}._variant-danger_hm7mj_39{--backgroundColor: var(--components-colors-alert-color-background-danger);--borderColor: var(--components-colors-alert-color-background-danger);--color: var(--color-icon-danger-primary)}._variant-info_hm7mj_44{--backgroundColor: var(--components-colors-alert-color-background-information);--borderColor: var(--components-colors-alert-color-background-information);--color: var(--color-icon-accent-blue-primary)}._variant-success_hm7mj_49{--backgroundColor: var(--components-colors-alert-color-background-success);--borderColor: var(--components-colors-alert-color-background-success);--color: var(--color-icon-accent-green-primary)}._variant-warning_hm7mj_54{--backgroundColor: var(--components-colors-alert-color-background-warning);--borderColor: var(--components-colors-alert-color-background-warning);--color: var(--color-icon-warning-primary)}._full-width_hm7mj_59{--maxWidth: 100%}._content_hm7mj_21{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:var(--gap, var(--components-dimensions-alert-gap-content-md))}._content-text_hm7mj_70{display:flex;flex-direction:column;gap:var(--gap, var(--components-dimensions-alert-gap-content-md))}._content-text_hm7mj_70._without-title_hm7mj_24{flex-direction:row}._content-text_hm7mj_70._without-title_hm7mj_24 ._icon-wrapper_hm7mj_24{align-self:flex-start}._content-actions_hm7mj_21{display:flex;align-items:center;gap:var(--gap)}._title-close-button_hm7mj_87{margin-right:var(--spacing-xl)}._title-with-icon_hm7mj_90{display:flex;align-items:center;gap:var(--spacing-sm)}._close-button_hm7mj_96{position:absolute;right:var(--spacing-sm);top:var(--spacing-sm)}._icon-wrapper_hm7mj_24{flex-shrink:0;padding:var(--components-dimensions-alert-icon-padding-block);border-radius:var(--components-dimensions-alert-icon-border-radius);background-color:var(--iconWrapperBackgroundColor, var(--components-colors-alert-icon-color-background-brand));color:var(--iconWrapperColor, var(--components-colors-alert-icon-color-icon-brand))}._icon-wrapper-success_hm7mj_109{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-success);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-success)}._icon-wrapper-danger_hm7mj_113{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-danger);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-danger)}._icon-wrapper-info_hm7mj_117{--iconWrapperBackgroundColor: var( --components-colors-alert-icon-color-background-information );--iconWrapperColor: var(--components-colors-alert-icon-color-icon-information)}._icon-wrapper-warning_hm7mj_123{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-warning);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-warning)}._icon-wrapper-ai_hm7mj_127{background:conic-gradient(from 30deg at 50% 50%,var(--color-green-30) 0deg,var(--color-blue-40) 25.96deg,var(--color-violet-40) 51.92deg,var(--color-pink-40) 76.15deg,var(--color-red-orange-40) 110.77deg,var(--color-pink-40) 162.69deg,var(--color-violet-40) 209.42deg,var(--color-blue-40) 254.42deg,var(--color-teal-40) 306.35deg,var(--color-green-30) 360deg);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-ai)}}
|
package/dist/Alert.js
CHANGED
|
@@ -1,101 +1,98 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Text as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
10
|
-
root:
|
|
11
|
-
"size-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"variant-
|
|
17
|
-
"variant-
|
|
18
|
-
"variant-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"content-
|
|
24
|
-
"
|
|
25
|
-
title:
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import l, { forwardRef as w, Children as p, cloneElement as u } from "react";
|
|
4
|
+
import { CloseButton as E } from "./CloseButton.js";
|
|
5
|
+
import { Icon as S } from "./Icon.js";
|
|
6
|
+
import { Text as v } from "./Text.js";
|
|
7
|
+
import { c as y } from "./index-PAaZGbyz.js";
|
|
8
|
+
import { Button as b } from "./Button.js";
|
|
9
|
+
const V = "_root_hm7mj_2", I = "_content_hm7mj_21", N = {
|
|
10
|
+
root: V,
|
|
11
|
+
"size-md": "_size-md_hm7mj_18",
|
|
12
|
+
"content-actions": "_content-actions_hm7mj_21",
|
|
13
|
+
"without-title": "_without-title_hm7mj_24",
|
|
14
|
+
"icon-wrapper": "_icon-wrapper_hm7mj_24",
|
|
15
|
+
"size-lg": "_size-lg_hm7mj_27",
|
|
16
|
+
"variant-ai": "_variant-ai_hm7mj_34",
|
|
17
|
+
"variant-danger": "_variant-danger_hm7mj_39",
|
|
18
|
+
"variant-info": "_variant-info_hm7mj_44",
|
|
19
|
+
"variant-success": "_variant-success_hm7mj_49",
|
|
20
|
+
"variant-warning": "_variant-warning_hm7mj_54",
|
|
21
|
+
"full-width": "_full-width_hm7mj_59",
|
|
22
|
+
content: I,
|
|
23
|
+
"content-text": "_content-text_hm7mj_70",
|
|
24
|
+
"title-close-button": "_title-close-button_hm7mj_87",
|
|
25
|
+
"title-with-icon": "_title-with-icon_hm7mj_90",
|
|
26
|
+
"close-button": "_close-button_hm7mj_96",
|
|
27
|
+
"icon-wrapper-success": "_icon-wrapper-success_hm7mj_109",
|
|
28
|
+
"icon-wrapper-danger": "_icon-wrapper-danger_hm7mj_113",
|
|
29
|
+
"icon-wrapper-info": "_icon-wrapper-info_hm7mj_117",
|
|
30
|
+
"icon-wrapper-warning": "_icon-wrapper-warning_hm7mj_123",
|
|
31
|
+
"icon-wrapper-ai": "_icon-wrapper-ai_hm7mj_127"
|
|
32
|
+
}, x = w(
|
|
33
|
+
({ variant: t = "primary", ...o }, n) => /* @__PURE__ */ i(b, { className: "shrink-0 w-fit", ref: n, variant: t, ...o })
|
|
34
|
+
), A = w(
|
|
35
|
+
({ variant: t = "secondary", ...o }, n) => /* @__PURE__ */ i(b, { className: "shrink-0 w-fit", ref: n, variant: t, ...o })
|
|
36
|
+
), O = y(N), h = ({ children: t, hasCloseButton: o, ...n }) => /* @__PURE__ */ i(v, { as: "span", className: O(o && "title-close-button"), ...n, children: t }), a = y(N), R = {
|
|
37
|
+
ai: "sparkles",
|
|
38
|
+
brand: "lightbulb-alt",
|
|
39
|
+
danger: "exclamation-octagon",
|
|
40
|
+
info: "info-circle",
|
|
41
|
+
success: "check-circle",
|
|
42
|
+
warning: "exclamation-triangle"
|
|
43
|
+
}, z = w(
|
|
44
|
+
({ children: t, className: o, cta: n, handleClose: _, isFullWidth: B, size: c = "md", variant: s = "brand", ...$ }, k) => {
|
|
45
|
+
const C = s === "ai", f = p.toArray(t).some((r) => l.isValidElement(r) ? r.type === h : !1), j = /* @__PURE__ */ i("div", { className: a("icon-wrapper", `icon-wrapper-${s}`), children: /* @__PURE__ */ i(S, { name: R[s] }) }), T = p.toArray(t).map((r) => r.type === h ? /* @__PURE__ */ m("div", { className: a("title-with-icon"), children: [
|
|
46
|
+
j,
|
|
47
|
+
u(r, {
|
|
48
|
+
hasCloseButton: !!_,
|
|
49
|
+
variant: `body-${c}-strong`
|
|
50
|
+
})
|
|
51
|
+
] }) : r), d = (r) => p.toArray(r).flatMap((e) => l.isValidElement(e) && e.type === l.Fragment ? d(e.props.children) : e.type === x ? u(e, {
|
|
52
|
+
size: c,
|
|
53
|
+
variant: C ? "primary-ai" : void 0
|
|
54
|
+
}) : e.type === A ? u(e, {
|
|
55
|
+
size: c
|
|
56
|
+
}) : e), g = !!n && d(n);
|
|
57
|
+
return /* @__PURE__ */ m(
|
|
57
58
|
"div",
|
|
58
59
|
{
|
|
59
|
-
className:
|
|
60
|
+
className: a(
|
|
60
61
|
"root",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
e
|
|
62
|
+
B && "full-width",
|
|
63
|
+
`size-${c}`,
|
|
64
|
+
s && `variant-${s}`,
|
|
65
|
+
o
|
|
66
66
|
),
|
|
67
|
-
ref:
|
|
68
|
-
|
|
67
|
+
ref: k,
|
|
68
|
+
...$,
|
|
69
69
|
children: [
|
|
70
|
-
!!
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
!!_ && /* @__PURE__ */ i(E, { className: a("close-button"), onClick: _ }),
|
|
71
|
+
/* @__PURE__ */ m("div", { className: a("content"), children: [
|
|
72
|
+
/* @__PURE__ */ m(
|
|
73
|
+
v,
|
|
74
|
+
{
|
|
75
|
+
as: "div",
|
|
76
|
+
className: a("content-text", !f && "without-title"),
|
|
77
|
+
variant: `body-${c}`,
|
|
78
|
+
children: [
|
|
79
|
+
!f && j,
|
|
80
|
+
T
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
!!g && /* @__PURE__ */ i("div", { className: a("content-actions"), children: g })
|
|
75
85
|
] })
|
|
76
86
|
]
|
|
77
87
|
}
|
|
78
88
|
);
|
|
79
89
|
}
|
|
80
|
-
),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
), g = ({ children: o, hasCloseButton: e, variant: n, ...a }) => /* @__PURE__ */ i(
|
|
85
|
-
y,
|
|
86
|
-
{
|
|
87
|
-
as: "span",
|
|
88
|
-
className: s("title", `title-size-${n}`, e && "title-close-button"),
|
|
89
|
-
variant: n,
|
|
90
|
-
...a,
|
|
91
|
-
children: o
|
|
92
|
-
}
|
|
93
|
-
), P = Object.assign(D, {
|
|
94
|
-
Button: w,
|
|
95
|
-
SecondaryButton: N,
|
|
96
|
-
Title: g
|
|
90
|
+
), K = Object.assign(z, {
|
|
91
|
+
Button: x,
|
|
92
|
+
SecondaryButton: A,
|
|
93
|
+
Title: h
|
|
97
94
|
});
|
|
98
95
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
K as Alert,
|
|
97
|
+
R as ICON
|
|
101
98
|
};
|
package/dist/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as C } from "react";
|
|
4
4
|
import { c as e } from "./index-PAaZGbyz.js";
|
|
5
|
-
const s = "_root_576cf_2",
|
|
5
|
+
const s = "_root_576cf_2", n = {
|
|
6
6
|
root: s,
|
|
7
7
|
"size-xs": "_size-xs_576cf_7",
|
|
8
8
|
"size-sm": "_size-sm_576cf_10",
|
|
@@ -212,14 +212,18 @@ const s = "_root_576cf_2", A = {
|
|
|
212
212
|
/* @__PURE__ */ a("symbol", { id: "thumbs-down", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
213
213
|
/* @__PURE__ */ a("symbol", { id: "trees", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M16.5,5A4.86,4.86,0,0,0,14,5.69,6,6,0,0,0,2.5,8v4a6,6,0,0,0,5,5.91V21a1,1,0,0,0,2,0V17.91a6.08,6.08,0,0,0,2.78-1.26A5,5,0,0,0,15.5,18.9V21a1,1,0,0,0,2,0V18.9a5,5,0,0,0,4-4.9V10A5,5,0,0,0,16.5,5Zm-5,5v4a5.23,5.23,0,0,0,.06.57,4,4,0,0,1-2.06,1.3V13a1,1,0,0,0-2,0v2.86A4,4,0,0,1,4.5,12V8a4,4,0,0,1,6.83-2.84,3.94,3.94,0,0,1,1.06,2A5,5,0,0,0,11.5,10Zm8,4a3,3,0,0,1-2,2.82V13a1,1,0,0,0-2,0v3.82a3,3,0,0,1-2-2.82V10a3,3,0,0,1,6,0Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
214
214
|
/* @__PURE__ */ a("symbol", { id: "exit", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M4,12a1,1,0,0,0,1,1h7.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-4-4a1,1,0,1,0-1.42,1.42L12.59,11H5A1,1,0,0,0,4,12ZM17,2H7A3,3,0,0,0,4,5V8A1,1,0,0,0,6,8V5A1,1,0,0,1,7,4H17a1,1,0,0,1,1,1V19a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V16a1,1,0,0,0-2,0v3a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V5A3,3,0,0,0,17,2Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
215
|
-
/* @__PURE__ */ a("symbol", { id: "ban", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-8-8A7.92,7.92,0,0,1,5.69,7.1L16.9,18.31A7.92,7.92,0,0,1,12,20Zm6.31-3.1L7.1,5.69A7.92,7.92,0,0,1,12,4a8,8,0,0,1,8,8A7.92,7.92,0,0,1,18.31,16.9Z", xmlns: "http://www.w3.org/2000/svg" }) })
|
|
216
|
-
|
|
215
|
+
/* @__PURE__ */ a("symbol", { id: "ban", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-8-8A7.92,7.92,0,0,1,5.69,7.1L16.9,18.31A7.92,7.92,0,0,1,12,20Zm6.31-3.1L7.1,5.69A7.92,7.92,0,0,1,12,4a8,8,0,0,1,8,8A7.92,7.92,0,0,1,18.31,16.9Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
216
|
+
/* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-double-left", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M11.46,8.29a1,1,0,0,0-1.42,0l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.16,12l2.3-2.29A1,1,0,0,0,11.46,8.29ZM14.66,12,17,9.71a1,1,0,0,0-1.42-1.42l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z" }) }),
|
|
217
|
+
/* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-double-right", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M8.46,8.29A1,1,0,1,0,7,9.71L9.34,12,7,14.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3a1,1,0,0,0,0-1.42Zm8.5,3-3-3a1,1,0,0,0-1.42,1.42L14.84,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3A1,1,0,0,0,17,11.29Z" }) }),
|
|
218
|
+
/* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-right", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14.83,11.29,10.59,7.05a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41L12.71,12,9.17,15.54a1,1,0,0,0,0,1.41,1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29l4.24-4.24A1,1,0,0,0,14.83,11.29Z" }) }),
|
|
219
|
+
/* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-left", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M11.29,12l3.54-3.54a1,1,0,0,0,0-1.41,1,1,0,0,0-1.42,0L9.17,11.29a1,1,0,0,0,0,1.42L13.41,17a1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.41Z" }) })
|
|
220
|
+
] }), A = e(n), v = C(
|
|
217
221
|
({ "aria-label": l, className: w, name: r, size: h = "md", ...i }, t) => /* @__PURE__ */ a(
|
|
218
222
|
"svg",
|
|
219
223
|
{
|
|
220
224
|
"aria-hidden": l ? "false" : "true",
|
|
221
225
|
"aria-label": l,
|
|
222
|
-
className:
|
|
226
|
+
className: A("root", `size-${h}`, `name-${r}`, w),
|
|
223
227
|
ref: t,
|
|
224
228
|
role: l ? "img" : void 0,
|
|
225
229
|
...i,
|
package/dist/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import o from "react";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as u } from "./Icon.js";
|
|
5
5
|
import { c as N } from "./index-PAaZGbyz.js";
|
|
6
6
|
import { f as w } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
7
7
|
const E = "_root_gizuv_2", k = "_isExternal_gizuv_14", M = "_isMultiline_gizuv_131", W = {
|
|
@@ -16,46 +16,47 @@ const E = "_root_gizuv_2", k = "_isExternal_gizuv_14", M = "_isMultiline_gizuv_1
|
|
|
16
16
|
"size-lg": "_size-lg_gizuv_115",
|
|
17
17
|
isMultiline: M,
|
|
18
18
|
"icon-disabled": "_icon-disabled_gizuv_134"
|
|
19
|
-
}, r = N(W),
|
|
19
|
+
}, r = N(W), _ = ({ children: e, isExternal: s }) => /* @__PURE__ */ p("span", { className: r("wui-text"), children: [
|
|
20
20
|
e,
|
|
21
|
-
s ? /* @__PURE__ */ i(
|
|
22
|
-
] }),
|
|
23
|
-
e.props.tagName === "span" || e.props["data-wui-link"] === !0 || typeof e.props.children == "string") ? s ? /* @__PURE__ */ i(
|
|
21
|
+
s ? /* @__PURE__ */ i(u, { name: "external-link-alt", size: "sm" }) : null
|
|
22
|
+
] }), m = (e, s) => typeof e == "string" ? /* @__PURE__ */ i(_, { isExternal: s, children: e }) : o.isValidElement(e) && (e.type === "span" || e.props.as === "span" || // FormattedMessage from react-intl has a span tag by default
|
|
23
|
+
e.props.tagName === "span" || e.props["data-wui-link"] === !0 || typeof e.props.children == "string") ? s ? /* @__PURE__ */ i(_, { isExternal: s, children: e }) : (
|
|
24
24
|
// If it is not external, we just need to add wui-text className to the child as we don't need to wrap it to display the icon
|
|
25
25
|
o.cloneElement(e, {
|
|
26
26
|
className: r("wui-text", e.props.className)
|
|
27
27
|
})
|
|
28
28
|
) : e, C = w((e, s) => {
|
|
29
29
|
const {
|
|
30
|
-
as:
|
|
30
|
+
as: c,
|
|
31
31
|
children: t,
|
|
32
|
-
className:
|
|
32
|
+
className: z,
|
|
33
33
|
disabled: n,
|
|
34
34
|
isExternal: a,
|
|
35
|
-
multiline:
|
|
36
|
-
size:
|
|
37
|
-
target:
|
|
35
|
+
multiline: d,
|
|
36
|
+
size: g = "md",
|
|
37
|
+
target: l,
|
|
38
38
|
variant: v = "primary",
|
|
39
39
|
...f
|
|
40
|
-
} = e, x =
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
} = e, x = c || "a", y = typeof t == "string" ? m(t, a) : o.Children.map(t, (b) => m(b, a));
|
|
41
|
+
return /* @__PURE__ */ p(
|
|
42
42
|
x,
|
|
43
43
|
{
|
|
44
44
|
"aria-disabled": n,
|
|
45
45
|
className: r(
|
|
46
46
|
"root",
|
|
47
47
|
`variant-${v}`,
|
|
48
|
-
`size-${
|
|
48
|
+
`size-${g}`,
|
|
49
49
|
a && "isExternal",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
d && "isMultiline",
|
|
51
|
+
z
|
|
52
52
|
),
|
|
53
53
|
ref: s,
|
|
54
|
-
rel:
|
|
54
|
+
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
55
55
|
tabIndex: n ? -1 : 0,
|
|
56
|
+
target: l,
|
|
56
57
|
...f,
|
|
57
58
|
children: [
|
|
58
|
-
n ? /* @__PURE__ */ i(
|
|
59
|
+
n ? /* @__PURE__ */ i(u, { className: r("icon-disabled"), name: "ban", size: "md" }) : null,
|
|
59
60
|
y
|
|
60
61
|
]
|
|
61
62
|
}
|
package/dist/Pagination.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._list_uyk8e_3{list-style-type:none;padding:0;margin:0;display:flex;gap:var(--components-dimensions-pagination-gap-pages);align-items:center;flex-wrap:wrap}._item_uyk8e_13{color:var(--color, var(--components-colors-pagination-color-icon-unchecked-pressed));background-color:var(--backgroundColor, var(--components-colors-pagination-color-background-unchecked-default));font-size:var(--components-dimensions-pagination-start-padding-inline-trailing-md);font-weight:var(--font-weight-semi-bold);border-radius:var(--components-dimensions-pagination-border-radius);display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;border-color:var(--borderColor, var(--components-colors-pagination-color-border-unchecked-default));border-width:var(--borderWidth, var(--components-dimensions-pagination-border-width-unchecked));border-style:solid;box-shadow:var(--elevation-10)}._item_uyk8e_13:not([disabled]):not([aria-current=true]):hover,._item_uyk8e_13:not([disabled]):not([aria-current=true]):focus-visible{background-color:var(--components-colors-pagination-color-background-unchecked-hover);border-color:var(--components-colors-pagination-color-border-unchecked-hover);box-shadow:var(--elevation-20);outline:none!important}._item_uyk8e_13:not([disabled]):not([aria-current=true]):active{background-color:var(--components-colors-pagination-color-background-unchecked-pressed);border-color:var(--components-colors-pagination-color-border-unchecked-pressed)}._item_uyk8e_13._disabled-arrow_uyk8e_43,._item_uyk8e_13[disabled]{cursor:not-allowed;color:var(--components-colors-pagination-color-text-unchecked-disabled);background:repeating-linear-gradient(-45deg,var(--color-neutral-30),var(--color-neutral-30) 1.75px,var(--color-background-warm-stronger) 3.75px,var(--color-background-warm-stronger) 3.25px) padding-box;box-shadow:none;border:0}._page_uyk8e_52[aria-current=true]{background-color:var(--components-colors-pagination-color-background-checked-default);border-color:var(--components-colors-pagination-color-border-checked-default);border-width:var(--components-dimensions-pagination-border-width-checked);color:var(--components-colors-pagination-color-text-checked-default)}._page_uyk8e_52[aria-current=true]:hover,._page_uyk8e_52[aria-current=true]:focus-visible{background-color:var(--components-colors-pagination-color-background-checked-hover);border-color:var(--components-colors-pagination-color-border-checked-hover);color:var(--components-colors-pagination-color-text-checked-hover);outline:none!important}._page_uyk8e_52[aria-current=true]:active{background-color:var(--components-colors-pagination-color-background-checked-pressed);border-color:var(--components-colors-pagination-color-border-checked-pressed);color:var(--components-colors-pagination-color-text-checked-pressed)}._with-text-left_uyk8e_72,._with-text-right_uyk8e_72{gap:var(--components-dimensions-pagination-gap-content)}._size-lg_uyk8e_75{font-size:var(--font-size-md);height:var(--components-dimensions-pagination-size-max-height-lg);width:var(--components-dimensions-pagination-size-min-height-lg)}._size-lg_uyk8e_75._with-text-right_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-leading-lg);padding-right:var(--components-dimensions-pagination-end-padding-inline-leading-lg);width:auto}._size-lg_uyk8e_75._with-text-left_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-trailing-lg);padding-right:var(--components-dimensions-pagination-end-padding-inline-trailing-lg);width:auto}._size-md_uyk8e_90{font-size:var(--font-size-sm);height:var(--components-dimensions-pagination-size-max-height-md);width:var(--components-dimensions-pagination-size-min-height-md)}._size-md_uyk8e_90._with-text-right_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-leading-md);padding-right:var(--components-dimensions-pagination-end-padding-inline-leading-md);width:auto}._size-md_uyk8e_90._with-text-left_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-trailing-md);padding-right:var(--components-dimensions-pagination-end-padding-inline-trailing-md);width:auto}}
|
package/dist/Pagination.js
CHANGED
|
@@ -1,105 +1,184 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
list:
|
|
8
|
-
item:
|
|
9
|
-
"disabled-arrow": "_disabled-
|
|
10
|
-
page:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { jsx as s, jsxs as N } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as Z, forwardRef as p, useRef as M, useCallback as R } from "react";
|
|
4
|
+
import { Icon as A } from "./Icon.js";
|
|
5
|
+
import { c as H } from "./index-PAaZGbyz.js";
|
|
6
|
+
const I = "_list_uyk8e_3", C = "_item_uyk8e_13", n = "_page_uyk8e_52", a = {
|
|
7
|
+
list: I,
|
|
8
|
+
item: C,
|
|
9
|
+
"disabled-arrow": "_disabled-arrow_uyk8e_43",
|
|
10
|
+
page: n,
|
|
11
|
+
"with-text-left": "_with-text-left_uyk8e_72",
|
|
12
|
+
"with-text-right": "_with-text-right_uyk8e_72",
|
|
13
|
+
"size-lg": "_size-lg_uyk8e_75",
|
|
14
|
+
"size-md": "_size-md_uyk8e_90"
|
|
15
|
+
}, h = 5, x = 3;
|
|
16
|
+
function v({ page: c, pageCount: e, rangeDisplay: _ }) {
|
|
17
|
+
return Z(() => {
|
|
18
|
+
if (e <= _ || e <= h + 1)
|
|
19
|
+
return B(e, (b) => b + 1);
|
|
20
|
+
const u = g(c, e), o = u === "before" ? B(h, (b) => b + 1) : [1], r = u === "center" ? B(x, (b) => b + c - 1) : [], w = u === "after" ? B(h, (b) => b + e - h + 1) : [e];
|
|
21
|
+
return T([o, r, w], "-");
|
|
22
|
+
}, [c, e, _]);
|
|
20
23
|
}
|
|
21
|
-
function
|
|
22
|
-
return Array.from({ length:
|
|
24
|
+
function B(c, e) {
|
|
25
|
+
return Array.from({ length: c }, (_, u) => e(u));
|
|
23
26
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
27
|
+
function g(c, e) {
|
|
28
|
+
return c < h ? "before" : c >= h && c <= e - h + 1 ? "center" : c > e - h + 1 ? "after" : "center";
|
|
26
29
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
const
|
|
30
|
-
return
|
|
30
|
+
function T(c, e) {
|
|
31
|
+
return c.reduce((_, u, o) => {
|
|
32
|
+
const r = [];
|
|
33
|
+
return r.push(..._), r.push(...u), u.length && o < c.length - 1 && r.push(e), r;
|
|
31
34
|
}, []);
|
|
32
35
|
}
|
|
33
|
-
const
|
|
36
|
+
const m = H(a), sl = p(
|
|
34
37
|
({
|
|
35
|
-
"aria-label":
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
"aria-label": c,
|
|
39
|
+
buttonFirstProps: e,
|
|
40
|
+
buttonLastProps: _,
|
|
41
|
+
buttonNextProps: u,
|
|
42
|
+
buttonPrevProps: o,
|
|
38
43
|
dataTestId: r,
|
|
39
|
-
getHref:
|
|
40
|
-
listProps:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
getHref: w,
|
|
45
|
+
listProps: b,
|
|
46
|
+
navigationTexts: l,
|
|
47
|
+
onChange: d,
|
|
48
|
+
page: f,
|
|
49
|
+
pageCount: P,
|
|
50
|
+
rangeDisplay: G = 5,
|
|
51
|
+
showEdgeControls: D = !1,
|
|
52
|
+
size: i = "lg",
|
|
53
|
+
...q
|
|
54
|
+
}, J) => {
|
|
55
|
+
const K = v({ page: f, pageCount: P, rangeDisplay: G }), O = M(null), Q = M(null), k = f === 1, y = f === P, $ = f === 1, z = f === P, j = (l == null ? void 0 : l.firstPage) || "First Page", E = (l == null ? void 0 : l.lastPage) || "Last Page", F = (l == null ? void 0 : l.nextPage) || "Next Page", L = (l == null ? void 0 : l.previousPage) || "Previous Page", S = R(() => {
|
|
56
|
+
$ || d(1);
|
|
57
|
+
}, [$, d]), U = R(() => {
|
|
58
|
+
z || d(P);
|
|
59
|
+
}, [z, P, d]), V = R(() => {
|
|
60
|
+
if (k) return;
|
|
61
|
+
const t = Math.max(f - 1, 1);
|
|
62
|
+
d(t);
|
|
63
|
+
}, [k, f, d]), W = R(() => {
|
|
64
|
+
if (y) return;
|
|
65
|
+
const t = Math.min(f + 1, P);
|
|
66
|
+
d(t);
|
|
67
|
+
}, [y, f, P, d]);
|
|
68
|
+
return /* @__PURE__ */ s("nav", { "aria-label": c ?? "Pagination", "data-testid": r, ref: J, ...q, children: /* @__PURE__ */ N("ol", { className: m("list"), ...b, children: [
|
|
69
|
+
D ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ N(
|
|
58
70
|
"button",
|
|
59
71
|
{
|
|
60
|
-
"aria-label":
|
|
61
|
-
className:
|
|
72
|
+
"aria-label": j,
|
|
73
|
+
className: m(
|
|
74
|
+
"item",
|
|
75
|
+
`size-${i}`,
|
|
76
|
+
(l == null ? void 0 : l.firstPage) && "with-text-right",
|
|
77
|
+
$ && "disabled-arrow"
|
|
78
|
+
),
|
|
79
|
+
"data-testid": r ? `${r}-arrow-first` : void 0,
|
|
80
|
+
disabled: $,
|
|
81
|
+
onClick: S,
|
|
82
|
+
type: "button",
|
|
83
|
+
...e,
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ s(A, { className: m("icon"), name: "angle-double-left", size: "lg" }),
|
|
86
|
+
l != null && l.firstPage ? j : null
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
) }) : null,
|
|
90
|
+
/* @__PURE__ */ s("li", { children: /* @__PURE__ */ N(
|
|
91
|
+
"button",
|
|
92
|
+
{
|
|
93
|
+
"aria-label": L,
|
|
94
|
+
className: m(
|
|
95
|
+
"item",
|
|
96
|
+
`size-${i}`,
|
|
97
|
+
(l == null ? void 0 : l.previousPage) && "with-text-right",
|
|
98
|
+
k && "disabled-arrow"
|
|
99
|
+
),
|
|
62
100
|
"data-testid": r ? `${r}-arrow-prev` : void 0,
|
|
63
|
-
disabled:
|
|
64
|
-
onClick:
|
|
65
|
-
ref:
|
|
101
|
+
disabled: k,
|
|
102
|
+
onClick: V,
|
|
103
|
+
ref: O,
|
|
66
104
|
type: "button",
|
|
67
|
-
...
|
|
68
|
-
children:
|
|
105
|
+
...o,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ s(A, { className: m("icon"), name: "angle-left", size: "lg" }),
|
|
108
|
+
l != null && l.previousPage ? L : null
|
|
109
|
+
]
|
|
69
110
|
}
|
|
70
111
|
) }),
|
|
71
|
-
|
|
72
|
-
(
|
|
112
|
+
K.map(
|
|
113
|
+
(t, X) => t === "-" ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
|
|
114
|
+
"button",
|
|
115
|
+
{
|
|
116
|
+
"aria-label": "Collapsed Pages",
|
|
117
|
+
className: m("item", `size-${i}`),
|
|
118
|
+
type: "button",
|
|
119
|
+
...u,
|
|
120
|
+
children: "..."
|
|
121
|
+
}
|
|
122
|
+
) }, `${X}-`) : /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
|
|
73
123
|
"a",
|
|
74
124
|
{
|
|
75
|
-
"aria-current":
|
|
76
|
-
className:
|
|
77
|
-
"data-testid": r ? `${r}-${
|
|
78
|
-
href:
|
|
79
|
-
onClick: (
|
|
80
|
-
|
|
125
|
+
"aria-current": t === f,
|
|
126
|
+
className: m("item", "page", `size-${i}`),
|
|
127
|
+
"data-testid": r ? `${r}-${t}` : void 0,
|
|
128
|
+
href: w == null ? void 0 : w(t),
|
|
129
|
+
onClick: (Y) => {
|
|
130
|
+
d && (Y.preventDefault(), d(t));
|
|
81
131
|
},
|
|
82
|
-
children:
|
|
132
|
+
children: t
|
|
83
133
|
}
|
|
84
|
-
) },
|
|
134
|
+
) }, t)
|
|
85
135
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ s("li", { children: /* @__PURE__ */ N(
|
|
87
137
|
"button",
|
|
88
138
|
{
|
|
89
|
-
"aria-label":
|
|
90
|
-
className:
|
|
139
|
+
"aria-label": F,
|
|
140
|
+
className: m(
|
|
141
|
+
"item",
|
|
142
|
+
`size-${i}`,
|
|
143
|
+
(l == null ? void 0 : l.nextPage) && "with-text-left",
|
|
144
|
+
y && "disabled-arrow"
|
|
145
|
+
),
|
|
91
146
|
"data-testid": r ? `${r}-arrow-next` : void 0,
|
|
92
|
-
disabled:
|
|
93
|
-
onClick:
|
|
94
|
-
ref:
|
|
147
|
+
disabled: y,
|
|
148
|
+
onClick: W,
|
|
149
|
+
ref: Q,
|
|
150
|
+
type: "button",
|
|
151
|
+
...u,
|
|
152
|
+
children: [
|
|
153
|
+
l != null && l.nextPage ? F : null,
|
|
154
|
+
/* @__PURE__ */ s(A, { name: "angle-right", size: "lg" })
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
) }),
|
|
158
|
+
D ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ N(
|
|
159
|
+
"button",
|
|
160
|
+
{
|
|
161
|
+
"aria-label": E,
|
|
162
|
+
className: m(
|
|
163
|
+
"item",
|
|
164
|
+
`size-${i}`,
|
|
165
|
+
(l == null ? void 0 : l.lastPage) && "with-text-left",
|
|
166
|
+
z && "disabled-arrow"
|
|
167
|
+
),
|
|
168
|
+
"data-testid": r ? `${r}-arrow-last` : void 0,
|
|
169
|
+
disabled: z,
|
|
170
|
+
onClick: U,
|
|
95
171
|
type: "button",
|
|
96
|
-
...
|
|
97
|
-
children:
|
|
172
|
+
..._,
|
|
173
|
+
children: [
|
|
174
|
+
l != null && l.lastPage ? E : null,
|
|
175
|
+
/* @__PURE__ */ s(A, { className: m("icon"), name: "angle-double-right", size: "lg" })
|
|
176
|
+
]
|
|
98
177
|
}
|
|
99
|
-
) })
|
|
178
|
+
) }) : null
|
|
100
179
|
] }) });
|
|
101
180
|
}
|
|
102
181
|
);
|
|
103
182
|
export {
|
|
104
|
-
|
|
183
|
+
sl as Pagination
|
|
105
184
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._root_1m1jb_2{transform:rotate3d(0,0,1,.3deg);border-color:var(--components-colors-sticky-note-color-border-default);border-style:solid;border-width:var(--border-width-xs);border-radius:var(--components-dimensions-sticky-note-border-radius);padding:var(--spacing-3xl) var(--spacing-xl) var(--spacing-xl) var(--spacing-xl);box-shadow:var(--elevation-30);width:var(--StickyNoteWidth);height:var(--StickyNoteHeight);background-color:var(--StickyNoteBackgroundColor);color:var(--StickyNoteColor)}._root_1m1jb_2:before{content:"";position:absolute;top:0;left:0;width:100%;height:var(--spacing-xxl);background-color:#00000005}._shape-rectangle_1m1jb_26{--StickyNoteWidth: var(--components-dimensions-sticky-note-size-width-rectangle);--StickyNoteHeight: var(--components-dimensions-sticky-note-size-height-rectangle)}._shape-square_1m1jb_30{--StickyNoteWidth: var(--components-dimensions-sticky-note-size-width-square);--StickyNoteHeight: var(--components-dimensions-sticky-note-size-height-square)}._variant-brand_1m1jb_34{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-brand);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-brand)}._variant-brand_1m1jb_34 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-brand);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-brand )}._variant-blue_1m1jb_44{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-blue);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-blue)}._variant-blue_1m1jb_44 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-blue);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-blue )}._variant-green_1m1jb_54{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-green);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-green)}._variant-green_1m1jb_54 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-green);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-green )}._variant-violet_1m1jb_64{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-violet);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-violet)}._variant-violet_1m1jb_64 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-violet);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-violet )}._variant-pink_1m1jb_74{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-pink);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-pink)}._variant-pink_1m1jb_74 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-pink);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-pink )}._variant-orange_1m1jb_84{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-orange);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-orange)}._variant-orange_1m1jb_84 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-orange);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-orange )}._variant-teal_1m1jb_94{--StickyNoteBackgroundColor: var(--components-colors-sticky-note-color-background-teal);--StickyNoteColor: var(--components-colors-sticky-note-color-text-body-teal)}._variant-teal_1m1jb_94 ._title-icon_1m1jb_38{--StickyNoteTitleIconColor: var(--components-colors-sticky-note-icon-color-icon-teal);--StickyNoteTitleIconBackgroundColor: var( --components-colors-sticky-note-icon-color-background-teal )}._close-button_1m1jb_104{position:absolute;transform:rotate3d(0,0,1,-.3deg);right:var(--spacing-xs);top:var(--spacing-xs)}._content_1m1jb_110{position:relative;display:flex;flex-direction:column;height:100%;gap:var(--components-dimensions-sticky-note-gap-content);transform:rotate3d(0,0,1,-.3deg);font-size:var(--font-size-md);line-height:var(--font-line-height-md)}._title_1m1jb_38{display:flex;gap:var(--spacing-sm);align-items:center}._title-icon_1m1jb_38{flex-shrink:0;padding:var(--components-dimensions-sticky-note-icon-padding-block);border-radius:var(--components-dimensions-sticky-note-icon-border-radius);color:var(--StickyNoteTitleIconColor);background-color:var(--StickyNoteTitleIconBackgroundColor)}._action_1m1jb_132{margin-top:auto;width:fit-content}}
|