rk-designsystem 1.3.0 → 1.3.1
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 +14 -7
- package/dist/assets/images/ChevronLeftIcon.js +31 -0
- package/dist/assets/images/ChevronRightIcon.js +31 -0
- package/dist/components/Alert/index.js +16 -0
- package/dist/components/Avatar/index.js +9 -0
- package/dist/components/Badge/index.js +11 -0
- package/dist/components/Breadcrumbs/index.js +9 -0
- package/dist/components/Button/index.js +11 -0
- package/dist/components/Card/index.js +8 -0
- package/dist/components/Carousel/index.js +379 -0
- package/dist/components/Carousel/styles.module.css.js +38 -0
- package/dist/components/Checkbox/index.js +10 -0
- package/dist/components/Chip/index.js +6 -0
- package/dist/components/DateInput/index.js +258 -0
- package/dist/components/DateInput/styles.module.css.js +20 -0
- package/dist/components/DatePicker/index.js +357 -0
- package/dist/components/DatePicker/styles.module.css.js +30 -0
- package/dist/components/Details/index.js +6 -0
- package/dist/components/Dialog/index.js +6 -0
- package/dist/components/Divider/index.js +6 -0
- package/dist/components/Donor/index.js +382 -0
- package/dist/components/Donor/styles.module.css.js +42 -0
- package/dist/components/Dropdown/index.js +12 -0
- package/dist/components/ErrorSummary/index.js +6 -0
- package/dist/components/Field/index.js +10 -0
- package/dist/components/Fieldset/index.js +6 -0
- package/dist/components/Footer/index.js +722 -0
- package/dist/components/Footer/styles.module.css.js +138 -0
- package/dist/components/GraphicElement/index.js +317 -0
- package/dist/components/GraphicElement/styles.module.css.js +16 -0
- package/dist/components/Header/index.js +653 -0
- package/dist/components/Header/styles.module.css.js +114 -0
- package/dist/components/Heading/index.js +9 -0
- package/dist/components/Input/index.js +7 -0
- package/dist/components/Label/index.js +9 -0
- package/dist/components/Link/index.js +6 -0
- package/dist/components/List/index.js +6 -0
- package/dist/components/Pagination/index.js +11 -0
- package/dist/components/Paragraph/index.js +11 -0
- package/dist/components/Popover/index.js +6 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/Search/index.js +10 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/SkeletonLoader/index.js +6 -0
- package/dist/components/SkipLink/index.js +6 -0
- package/dist/components/SpinnerLoader/index.js +6 -0
- package/dist/components/Suggestion/index.js +7 -0
- package/dist/components/Switch/index.js +6 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Tabs/index.js +6 -0
- package/dist/components/Tag/index.js +14 -0
- package/dist/components/Textarea/index.js +6 -0
- package/dist/components/Textfield/index.js +6 -0
- package/dist/components/ToggleGroup/index.js +6 -0
- package/dist/components/Tooltip/index.js +6 -0
- package/dist/components/ValidationMessage/index.js +9 -0
- package/dist/context/LanguageContext.js +91 -0
- package/dist/index.d.ts +170 -147
- package/dist/index.js +118 -0
- package/dist/rk-designsystem.css +1 -1
- package/dist/{componentlibrary.es.js → translations/index.js} +267 -3904
- package/dist/utils/search-index.js +106 -0
- package/package.json +18 -26
- package/dist/componentlibrary.umd.js +0 -1266
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const t = "_footer_vkvg2_1", n = "_mainSection_vkvg2_7", o = "_mainContainer_vkvg2_21", e = "_graphicElementTopRight_vkvg2_31", c = "_graphicElementBottomLeft_vkvg2_38", s = "_contentRow_vkvg2_46", _ = "_newsletterSection_vkvg2_56", i = "_newsletterDescription_vkvg2_63", v = "_newsletterForm_vkvg2_72", a = "_newsletterInputGroup_vkvg2_78", l = "_newsletterInput_vkvg2_78", r = "_consentText_vkvg2_89", k = "_linksSection_vkvg2_99", g = "_linksColumn_vkvg2_105", p = "_linksTitle_vkvg2_112", d = "_linksList_vkvg2_123", L = "_footerLink_vkvg2_132", C = "_divider_vkvg2_154", m = "_contactSection_vkvg2_162", w = "_contactColumn_vkvg2_169", P = "_contactTitle_vkvg2_177", h = "_contactContent_vkvg2_186", T = "_copyrightSection_vkvg2_200", S = "_copyrightText_vkvg2_205", u = "_whiteSection_vkvg2_215", R = "_whiteContainer_vkvg2_220", M = "_whiteContent_vkvg2_228", f = "_logo_vkvg2_236", x = "_redCrossLogo_vkvg2_250", y = "_slotLarge_vkvg2_256", D = "_contentRowContact_vkvg2_311", E = "_socialLinksSection_vkvg2_321", I = "_socialLinksTitle_vkvg2_328", b = "_socialLinksList_vkvg2_339", B = "_socialLink_vkvg2_321", G = "_socialLinkIcon_vkvg2_372", A = "_contactPersonsSection_vkvg2_387", F = "_contactPersonsTitle_vkvg2_394", N = "_contactPersonsGrid_vkvg2_405", j = "_contactPersonCard_vkvg2_411", q = "_contactPersonName_vkvg2_418", z = "_contactPersonRole_vkvg2_427", H = "_contactPersonDetails_vkvg2_436", J = "_contactPersonLabel_vkvg2_443", K = "_contactPersonEmail_vkvg2_447", O = "_contactPersonPhone_vkvg2_448", Q = "_contactPersonAddress_vkvg2_449", U = "_bottomRowContact_vkvg2_470", V = "_legalLinksRow_vkvg2_479", W = "_legalLink_vkvg2_479", X = "_dpMain_vkvg2_554", Y = "_dpContainer_vkvg2_563", Z = "_dpColumns_vkvg2_571", $ = "_dpColumn_vkvg2_571", tt = "_dpColTitle_vkvg2_584", nt = "_dpList_vkvg2_592", ot = "_dpLink_vkvg2_601", et = "_dpDivider_vkvg2_615", ct = "_dpMeta_vkvg2_623", st = "_dpMetaCol_vkvg2_629", _t = "_dpMetaTitle_vkvg2_637", it = "_dpMetaText_vkvg2_645", vt = "_dpBottom_vkvg2_653", at = "_dpLegal_vkvg2_661", lt = "_dpLegalLink_vkvg2_670", rt = "_dpCopyright_vkvg2_682", kt = {
|
|
3
|
+
footer: t,
|
|
4
|
+
mainSection: n,
|
|
5
|
+
mainContainer: o,
|
|
6
|
+
graphicElementTopRight: e,
|
|
7
|
+
graphicElementBottomLeft: c,
|
|
8
|
+
contentRow: s,
|
|
9
|
+
newsletterSection: _,
|
|
10
|
+
newsletterDescription: i,
|
|
11
|
+
newsletterForm: v,
|
|
12
|
+
newsletterInputGroup: a,
|
|
13
|
+
newsletterInput: l,
|
|
14
|
+
consentText: r,
|
|
15
|
+
linksSection: k,
|
|
16
|
+
linksColumn: g,
|
|
17
|
+
linksTitle: p,
|
|
18
|
+
linksList: d,
|
|
19
|
+
footerLink: L,
|
|
20
|
+
divider: C,
|
|
21
|
+
contactSection: m,
|
|
22
|
+
contactColumn: w,
|
|
23
|
+
contactTitle: P,
|
|
24
|
+
contactContent: h,
|
|
25
|
+
copyrightSection: T,
|
|
26
|
+
copyrightText: S,
|
|
27
|
+
whiteSection: u,
|
|
28
|
+
whiteContainer: R,
|
|
29
|
+
whiteContent: M,
|
|
30
|
+
logo: f,
|
|
31
|
+
redCrossLogo: x,
|
|
32
|
+
slotLarge: y,
|
|
33
|
+
contentRowContact: D,
|
|
34
|
+
socialLinksSection: E,
|
|
35
|
+
socialLinksTitle: I,
|
|
36
|
+
socialLinksList: b,
|
|
37
|
+
socialLink: B,
|
|
38
|
+
socialLinkIcon: G,
|
|
39
|
+
contactPersonsSection: A,
|
|
40
|
+
contactPersonsTitle: F,
|
|
41
|
+
contactPersonsGrid: N,
|
|
42
|
+
contactPersonCard: j,
|
|
43
|
+
contactPersonName: q,
|
|
44
|
+
contactPersonRole: z,
|
|
45
|
+
contactPersonDetails: H,
|
|
46
|
+
contactPersonLabel: J,
|
|
47
|
+
contactPersonEmail: K,
|
|
48
|
+
contactPersonPhone: O,
|
|
49
|
+
contactPersonAddress: Q,
|
|
50
|
+
bottomRowContact: U,
|
|
51
|
+
legalLinksRow: V,
|
|
52
|
+
legalLink: W,
|
|
53
|
+
dpMain: X,
|
|
54
|
+
dpContainer: Y,
|
|
55
|
+
dpColumns: Z,
|
|
56
|
+
dpColumn: $,
|
|
57
|
+
dpColTitle: tt,
|
|
58
|
+
dpList: nt,
|
|
59
|
+
dpLink: ot,
|
|
60
|
+
dpDivider: et,
|
|
61
|
+
dpMeta: ct,
|
|
62
|
+
dpMetaCol: st,
|
|
63
|
+
dpMetaTitle: _t,
|
|
64
|
+
dpMetaText: it,
|
|
65
|
+
dpBottom: vt,
|
|
66
|
+
dpLegal: at,
|
|
67
|
+
dpLegalLink: lt,
|
|
68
|
+
dpCopyright: rt
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
U as bottomRowContact,
|
|
72
|
+
r as consentText,
|
|
73
|
+
w as contactColumn,
|
|
74
|
+
h as contactContent,
|
|
75
|
+
Q as contactPersonAddress,
|
|
76
|
+
j as contactPersonCard,
|
|
77
|
+
H as contactPersonDetails,
|
|
78
|
+
K as contactPersonEmail,
|
|
79
|
+
J as contactPersonLabel,
|
|
80
|
+
q as contactPersonName,
|
|
81
|
+
O as contactPersonPhone,
|
|
82
|
+
z as contactPersonRole,
|
|
83
|
+
N as contactPersonsGrid,
|
|
84
|
+
A as contactPersonsSection,
|
|
85
|
+
F as contactPersonsTitle,
|
|
86
|
+
m as contactSection,
|
|
87
|
+
P as contactTitle,
|
|
88
|
+
s as contentRow,
|
|
89
|
+
D as contentRowContact,
|
|
90
|
+
T as copyrightSection,
|
|
91
|
+
S as copyrightText,
|
|
92
|
+
kt as default,
|
|
93
|
+
C as divider,
|
|
94
|
+
vt as dpBottom,
|
|
95
|
+
tt as dpColTitle,
|
|
96
|
+
$ as dpColumn,
|
|
97
|
+
Z as dpColumns,
|
|
98
|
+
Y as dpContainer,
|
|
99
|
+
rt as dpCopyright,
|
|
100
|
+
et as dpDivider,
|
|
101
|
+
at as dpLegal,
|
|
102
|
+
lt as dpLegalLink,
|
|
103
|
+
ot as dpLink,
|
|
104
|
+
nt as dpList,
|
|
105
|
+
X as dpMain,
|
|
106
|
+
ct as dpMeta,
|
|
107
|
+
st as dpMetaCol,
|
|
108
|
+
it as dpMetaText,
|
|
109
|
+
_t as dpMetaTitle,
|
|
110
|
+
t as footer,
|
|
111
|
+
L as footerLink,
|
|
112
|
+
c as graphicElementBottomLeft,
|
|
113
|
+
e as graphicElementTopRight,
|
|
114
|
+
W as legalLink,
|
|
115
|
+
V as legalLinksRow,
|
|
116
|
+
g as linksColumn,
|
|
117
|
+
d as linksList,
|
|
118
|
+
k as linksSection,
|
|
119
|
+
p as linksTitle,
|
|
120
|
+
f as logo,
|
|
121
|
+
o as mainContainer,
|
|
122
|
+
n as mainSection,
|
|
123
|
+
i as newsletterDescription,
|
|
124
|
+
v as newsletterForm,
|
|
125
|
+
l as newsletterInput,
|
|
126
|
+
a as newsletterInputGroup,
|
|
127
|
+
_ as newsletterSection,
|
|
128
|
+
x as redCrossLogo,
|
|
129
|
+
y as slotLarge,
|
|
130
|
+
B as socialLink,
|
|
131
|
+
G as socialLinkIcon,
|
|
132
|
+
b as socialLinksList,
|
|
133
|
+
E as socialLinksSection,
|
|
134
|
+
I as socialLinksTitle,
|
|
135
|
+
R as whiteContainer,
|
|
136
|
+
M as whiteContent,
|
|
137
|
+
u as whiteSection
|
|
138
|
+
};
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as W, useEffect as k } from "react";
|
|
4
|
+
import a from "./styles.module.css.js";
|
|
5
|
+
function T(t) {
|
|
6
|
+
return `
|
|
7
|
+
.${t.graphicElement} {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
--graphic-element-color: var(--ds-color-base-default, #DA4236);
|
|
11
|
+
--graphic-element-face-front: var(--ds-color-border-subtle, #EEABA6);
|
|
12
|
+
--graphic-element-face-top: var(--ds-color-surface-active, #E5776F);
|
|
13
|
+
}
|
|
14
|
+
/* data-color scoping: the theme's [data-color] scopes swap the generic
|
|
15
|
+
--ds-color-* variables, so no per-ramp rules are needed here. */
|
|
16
|
+
.${t.shape} {
|
|
17
|
+
fill: var(--graphic-element-color);
|
|
18
|
+
}
|
|
19
|
+
/* Outline variant: thin stroke, no fill */
|
|
20
|
+
.${t.graphicElement}[data-variant="outline"] {
|
|
21
|
+
overflow: visible;
|
|
22
|
+
}
|
|
23
|
+
.${t.graphicElement}[data-variant="outline"] .${t.shape} {
|
|
24
|
+
fill: none;
|
|
25
|
+
stroke: var(--graphic-element-color);
|
|
26
|
+
stroke-width: 2px;
|
|
27
|
+
}
|
|
28
|
+
/* Isometric variant: three token-driven cube faces */
|
|
29
|
+
.${t.faceFront} {
|
|
30
|
+
fill: var(--graphic-element-face-front);
|
|
31
|
+
}
|
|
32
|
+
.${t.faceTop} {
|
|
33
|
+
fill: var(--graphic-element-face-top);
|
|
34
|
+
}
|
|
35
|
+
.${t.faceRight} {
|
|
36
|
+
fill: var(--graphic-element-color);
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
const N = {
|
|
41
|
+
sm: 24,
|
|
42
|
+
md: 34,
|
|
43
|
+
lg: 48
|
|
44
|
+
}, O = {
|
|
45
|
+
"top-left": 270,
|
|
46
|
+
"top-right": 0,
|
|
47
|
+
"bottom-right": 90,
|
|
48
|
+
"bottom-left": 180
|
|
49
|
+
}, _ = {
|
|
50
|
+
// One unit square. Outline: bottom edge only.
|
|
51
|
+
square: {
|
|
52
|
+
viewBoxW: 34,
|
|
53
|
+
viewBoxH: 34,
|
|
54
|
+
solid: "M0 0H34V34H0V0Z",
|
|
55
|
+
outline: "M0 34H34"
|
|
56
|
+
},
|
|
57
|
+
// Three cells of a 2x2 grid with the TOP-LEFT cell missing:
|
|
58
|
+
// (1,0), (0,1), (1,1). Outline: bottom + right edges (open step).
|
|
59
|
+
corner: {
|
|
60
|
+
viewBoxW: 68,
|
|
61
|
+
viewBoxH: 68,
|
|
62
|
+
solid: "M34 0H68V68H0V34H34V0Z",
|
|
63
|
+
outline: "M0 68H68V0"
|
|
64
|
+
},
|
|
65
|
+
// The corner rotated -90deg: (0,0), (1,0), (1,1) - top bar plus the
|
|
66
|
+
// bottom-right cell (this is the legacy CrossCorner form).
|
|
67
|
+
// Outline: top + right edges.
|
|
68
|
+
angle: {
|
|
69
|
+
viewBoxW: 68,
|
|
70
|
+
viewBoxH: 68,
|
|
71
|
+
solid: "M0 0H68V68H34V34H0V0Z",
|
|
72
|
+
outline: "M0 0H68V68"
|
|
73
|
+
},
|
|
74
|
+
// Three unit squares rotated 45deg (diamonds, radius 24 = U*sqrt(2)/2):
|
|
75
|
+
// two side by side on top (centers (24,24) and (72,24)) and one
|
|
76
|
+
// centered below/between them (center (48,48)). Their union forms
|
|
77
|
+
// the angular heart. Outline: only the two bottom edges (open V).
|
|
78
|
+
heart: {
|
|
79
|
+
viewBoxW: 96,
|
|
80
|
+
viewBoxH: 72,
|
|
81
|
+
solid: "M24 0L48 24L72 0L96 24L48 72L0 24L24 0Z",
|
|
82
|
+
outline: "M0 24L48 72L96 24"
|
|
83
|
+
},
|
|
84
|
+
// Four cells: a 3x1 row plus one center cell above it -
|
|
85
|
+
// (1,0), (0,1), (1,1), (2,1). T pointing up.
|
|
86
|
+
// Outline: 2U horizontal line with a 1U tick rising from its midpoint.
|
|
87
|
+
tee: {
|
|
88
|
+
viewBoxW: 102,
|
|
89
|
+
viewBoxH: 68,
|
|
90
|
+
solid: "M34 0H68V34H102V68H0V34H34V0Z",
|
|
91
|
+
outline: "M17 68H85M51 34V68"
|
|
92
|
+
},
|
|
93
|
+
// Three cells in a row. Outline: bottom edge (one 3U line).
|
|
94
|
+
bar: {
|
|
95
|
+
viewBoxW: 102,
|
|
96
|
+
viewBoxH: 34,
|
|
97
|
+
solid: "M0 0H102V34H0V0Z",
|
|
98
|
+
outline: "M0 34H102"
|
|
99
|
+
},
|
|
100
|
+
// Four cells with NO center cell: (1,0), (0,1), (2,1), (1,2) -
|
|
101
|
+
// the gapped, checkerboard-style cross.
|
|
102
|
+
// Outline: full-height vertical axis plus two 1U horizontal ticks,
|
|
103
|
+
// leaving a gap over the (empty) center cell.
|
|
104
|
+
cross: {
|
|
105
|
+
viewBoxW: 102,
|
|
106
|
+
viewBoxH: 102,
|
|
107
|
+
solid: "M34 0H68V34H34V0ZM0 34H34V68H0V34ZM68 34H102V68H68V34ZM34 68H68V102H34V68Z",
|
|
108
|
+
outline: "M51 0V102M0 51H34M68 51H102"
|
|
109
|
+
}
|
|
110
|
+
}, e = {
|
|
111
|
+
cube: {
|
|
112
|
+
w: 58.89,
|
|
113
|
+
h: 68,
|
|
114
|
+
faces: [
|
|
115
|
+
{ face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
|
|
116
|
+
{ face: "right", d: "M29.44 34L58.89 17L58.89 51L29.44 68Z" },
|
|
117
|
+
{ face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" }
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
cornerStanding: {
|
|
121
|
+
w: 88.33,
|
|
122
|
+
h: 102,
|
|
123
|
+
faces: [
|
|
124
|
+
{ face: "top", d: "M0 34L29.44 17L58.89 34L29.44 51Z" },
|
|
125
|
+
{ face: "front", d: "M0 34L29.44 51L29.44 85L0 68Z" },
|
|
126
|
+
{ face: "right", d: "M58.89 68L88.33 51L88.33 85L58.89 102Z" },
|
|
127
|
+
{ face: "front", d: "M29.44 51L58.89 68L58.89 102L29.44 85Z" },
|
|
128
|
+
{ face: "top", d: "M29.44 17L58.89 0L88.33 17L58.89 34Z" },
|
|
129
|
+
{ face: "right", d: "M58.89 34L88.33 17L88.33 51L58.89 68Z" },
|
|
130
|
+
{ face: "front", d: "M29.44 17L58.89 34L58.89 68L29.44 51Z" }
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
cornerLying: {
|
|
134
|
+
w: 117.78,
|
|
135
|
+
h: 85,
|
|
136
|
+
faces: [
|
|
137
|
+
{ face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
|
|
138
|
+
{ face: "top", d: "M0 17L29.44 34L58.89 17L29.44 0Z" },
|
|
139
|
+
{ face: "right", d: "M88.33 34L117.78 17L117.78 51L88.33 68Z" },
|
|
140
|
+
{ face: "top", d: "M58.89 17L88.33 34L117.78 17L88.33 0Z" },
|
|
141
|
+
{ face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" },
|
|
142
|
+
{ face: "right", d: "M58.89 51L88.33 34L88.33 68L58.89 85Z" },
|
|
143
|
+
{ face: "top", d: "M29.44 34L58.89 51L88.33 34L58.89 17Z" }
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
angleStanding: {
|
|
147
|
+
w: 88.33,
|
|
148
|
+
h: 119,
|
|
149
|
+
faces: [
|
|
150
|
+
{ face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
|
|
151
|
+
{ face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
|
|
152
|
+
{ face: "right", d: "M58.89 85L88.33 68L88.33 102L58.89 119Z" },
|
|
153
|
+
{ face: "front", d: "M29.44 68L58.89 85L58.89 119L29.44 102Z" },
|
|
154
|
+
{ face: "top", d: "M29.44 34L58.89 17L88.33 34L58.89 51Z" },
|
|
155
|
+
{ face: "right", d: "M58.89 51L88.33 34L88.33 68L58.89 85Z" },
|
|
156
|
+
{ face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" }
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
angleLying: {
|
|
160
|
+
w: 88.33,
|
|
161
|
+
h: 102,
|
|
162
|
+
faces: [
|
|
163
|
+
{ face: "right", d: "M58.89 34L88.33 17L88.33 51L58.89 68Z" },
|
|
164
|
+
{ face: "top", d: "M29.44 17L58.89 34L88.33 17L58.89 0Z" },
|
|
165
|
+
{ face: "front", d: "M0 34L29.44 51L29.44 85L0 68Z" },
|
|
166
|
+
{ face: "top", d: "M0 34L29.44 51L58.89 34L29.44 17Z" },
|
|
167
|
+
{ face: "front", d: "M29.44 51L58.89 68L58.89 102L29.44 85Z" },
|
|
168
|
+
{ face: "right", d: "M58.89 68L88.33 51L88.33 85L58.89 102Z" },
|
|
169
|
+
{ face: "top", d: "M29.44 51L58.89 68L88.33 51L58.89 34Z" }
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
heart: {
|
|
173
|
+
w: 102,
|
|
174
|
+
h: 88.33,
|
|
175
|
+
faces: [
|
|
176
|
+
{ face: "front", d: "M17 0L34 29.44L17 58.89L0 29.44Z" },
|
|
177
|
+
{ face: "top", d: "M17 0L51 0L68 29.44L34 29.44Z" },
|
|
178
|
+
{ face: "right", d: "M51 58.89L85 58.89L68 88.33L34 88.33Z" },
|
|
179
|
+
{ face: "front", d: "M34 29.44L51 58.89L34 88.33L17 58.89Z" },
|
|
180
|
+
{ face: "right", d: "M68 29.44L102 29.44L85 58.89L51 58.89Z" },
|
|
181
|
+
{ face: "front", d: "M51 0L68 29.44L51 58.89L34 29.44Z" },
|
|
182
|
+
{ face: "top", d: "M51 0L85 0L102 29.44L68 29.44Z" }
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
heartMirrored: {
|
|
186
|
+
w: 102,
|
|
187
|
+
h: 88.33,
|
|
188
|
+
faces: [
|
|
189
|
+
{ face: "front", d: "M85 0L68 29.44L85 58.89L102 29.44Z" },
|
|
190
|
+
{ face: "top", d: "M85 0L51 0L34 29.44L68 29.44Z" },
|
|
191
|
+
{ face: "right", d: "M51 58.89L17 58.89L34 88.33L68 88.33Z" },
|
|
192
|
+
{ face: "front", d: "M68 29.44L51 58.89L68 88.33L85 58.89Z" },
|
|
193
|
+
{ face: "right", d: "M34 29.44L0 29.44L17 58.89L51 58.89Z" },
|
|
194
|
+
{ face: "front", d: "M51 0L34 29.44L51 58.89L68 29.44Z" },
|
|
195
|
+
{ face: "top", d: "M51 0L17 0L0 29.44L34 29.44Z" }
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
barHorizontal: {
|
|
199
|
+
w: 117.78,
|
|
200
|
+
h: 102,
|
|
201
|
+
faces: [
|
|
202
|
+
{ face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
|
|
203
|
+
{ face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
|
|
204
|
+
{ face: "top", d: "M29.44 34L58.89 17L88.33 34L58.89 51Z" },
|
|
205
|
+
{ face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" },
|
|
206
|
+
{ face: "top", d: "M58.89 51L88.33 34L117.78 51L88.33 68Z" },
|
|
207
|
+
{ face: "right", d: "M88.33 68L117.78 51L117.78 85L88.33 102Z" },
|
|
208
|
+
{ face: "front", d: "M58.89 51L88.33 68L88.33 102L58.89 85Z" }
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
barVertical: {
|
|
212
|
+
w: 58.89,
|
|
213
|
+
h: 136,
|
|
214
|
+
faces: [
|
|
215
|
+
{ face: "right", d: "M29.44 102L58.89 85L58.89 119L29.44 136Z" },
|
|
216
|
+
{ face: "front", d: "M0 85L29.44 102L29.44 136L0 119Z" },
|
|
217
|
+
{ face: "right", d: "M29.44 68L58.89 51L58.89 85L29.44 102Z" },
|
|
218
|
+
{ face: "front", d: "M0 51L29.44 68L29.44 102L0 85Z" },
|
|
219
|
+
{ face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
|
|
220
|
+
{ face: "right", d: "M29.44 34L58.89 17L58.89 51L29.44 68Z" },
|
|
221
|
+
{ face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" }
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
}, H = {
|
|
225
|
+
square: {
|
|
226
|
+
"top-left": e.cube,
|
|
227
|
+
"top-right": e.cube,
|
|
228
|
+
"bottom-left": e.cube,
|
|
229
|
+
"bottom-right": e.cube
|
|
230
|
+
},
|
|
231
|
+
corner: {
|
|
232
|
+
"top-left": e.cornerStanding,
|
|
233
|
+
"top-right": e.cornerStanding,
|
|
234
|
+
"bottom-left": e.cornerLying,
|
|
235
|
+
"bottom-right": e.cornerLying
|
|
236
|
+
},
|
|
237
|
+
angle: {
|
|
238
|
+
"top-left": e.angleStanding,
|
|
239
|
+
"top-right": e.angleStanding,
|
|
240
|
+
"bottom-left": e.angleLying,
|
|
241
|
+
"bottom-right": e.angleLying
|
|
242
|
+
},
|
|
243
|
+
heart: {
|
|
244
|
+
"top-left": e.heart,
|
|
245
|
+
"top-right": e.heart,
|
|
246
|
+
"bottom-left": e.heart,
|
|
247
|
+
"bottom-right": e.heart
|
|
248
|
+
},
|
|
249
|
+
bar: {
|
|
250
|
+
"top-left": e.barVertical,
|
|
251
|
+
"top-right": e.barHorizontal,
|
|
252
|
+
"bottom-left": e.barHorizontal,
|
|
253
|
+
"bottom-right": e.barVertical
|
|
254
|
+
}
|
|
255
|
+
}, v = 34, z = {
|
|
256
|
+
front: a.faceFront,
|
|
257
|
+
top: a.faceTop,
|
|
258
|
+
right: a.faceRight
|
|
259
|
+
};
|
|
260
|
+
function C(t) {
|
|
261
|
+
return t in H;
|
|
262
|
+
}
|
|
263
|
+
const P = W(
|
|
264
|
+
({
|
|
265
|
+
shape: t = "corner",
|
|
266
|
+
variant: l = "solid",
|
|
267
|
+
position: h = "top-left",
|
|
268
|
+
size: w = "md",
|
|
269
|
+
mirrored: b = !1,
|
|
270
|
+
className: V,
|
|
271
|
+
"aria-label": x,
|
|
272
|
+
"aria-hidden": M = !0,
|
|
273
|
+
"data-color": B,
|
|
274
|
+
"data-size": E,
|
|
275
|
+
...$
|
|
276
|
+
}, y) => {
|
|
277
|
+
k(() => {
|
|
278
|
+
const L = "rk-graphic-element-inline-styles";
|
|
279
|
+
if (typeof document > "u" || document.getElementById(L)) return;
|
|
280
|
+
const d = T(a), s = document.createElement("style");
|
|
281
|
+
s.id = L, s.textContent = d, document.head.appendChild(s);
|
|
282
|
+
}, []);
|
|
283
|
+
const g = N[w], c = _[t], o = l === "isometric" && C(t) ? t === "heart" && b ? e.heartMirrored : H[t][h] : void 0, p = l === "isometric" && !o ? "solid" : l, r = o ? 0 : O[h], n = o ? o.w : c.viewBoxW, i = o ? o.h : c.viewBoxH, Z = r === 90 || r === 270, m = Z ? i : n, u = Z ? n : i, A = Math.round(g * m / v), S = Math.round(g * u / v), I = r === 90 ? `rotate(90) translate(0 ${-i})` : r === 180 ? `rotate(180) translate(${-n} ${-i})` : r === 270 ? `rotate(-90) translate(${-n} 0)` : void 0;
|
|
284
|
+
return /* @__PURE__ */ f(
|
|
285
|
+
"svg",
|
|
286
|
+
{
|
|
287
|
+
ref: y,
|
|
288
|
+
className: `${a.graphicElement} ${V || ""}`,
|
|
289
|
+
width: A,
|
|
290
|
+
height: S,
|
|
291
|
+
viewBox: `0 0 ${m} ${u}`,
|
|
292
|
+
fill: "none",
|
|
293
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
294
|
+
"aria-label": x,
|
|
295
|
+
"aria-hidden": M,
|
|
296
|
+
role: M ? void 0 : "img",
|
|
297
|
+
"data-shape": t,
|
|
298
|
+
"data-variant": p,
|
|
299
|
+
"data-color": B,
|
|
300
|
+
"data-size": E,
|
|
301
|
+
...$,
|
|
302
|
+
children: /* @__PURE__ */ f("g", { transform: I, children: o ? o.faces.map((L, d) => /* @__PURE__ */ f("path", { d: L.d, className: z[L.face] }, d)) : /* @__PURE__ */ f(
|
|
303
|
+
"path",
|
|
304
|
+
{
|
|
305
|
+
d: p === "outline" ? c.outline : c.solid,
|
|
306
|
+
className: a.shape,
|
|
307
|
+
vectorEffect: "non-scaling-stroke"
|
|
308
|
+
}
|
|
309
|
+
) })
|
|
310
|
+
}
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
P.displayName = "GraphicElement";
|
|
315
|
+
export {
|
|
316
|
+
P as GraphicElement
|
|
317
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const c = "_graphicElement_134cx_1", e = "_shape_134cx_12", t = "_faceFront_134cx_28", a = "_faceTop_134cx_32", _ = "_faceRight_134cx_36", n = {
|
|
3
|
+
graphicElement: c,
|
|
4
|
+
shape: e,
|
|
5
|
+
faceFront: t,
|
|
6
|
+
faceTop: a,
|
|
7
|
+
faceRight: _
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as default,
|
|
11
|
+
t as faceFront,
|
|
12
|
+
_ as faceRight,
|
|
13
|
+
a as faceTop,
|
|
14
|
+
c as graphicElement,
|
|
15
|
+
e as shape
|
|
16
|
+
};
|