rk-designsystem 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +14 -7
  2. package/dist/assets/images/ChevronLeftIcon.js +31 -0
  3. package/dist/assets/images/ChevronRightIcon.js +31 -0
  4. package/dist/components/Alert/index.js +16 -0
  5. package/dist/components/Avatar/index.js +9 -0
  6. package/dist/components/Badge/index.js +11 -0
  7. package/dist/components/Breadcrumbs/index.js +9 -0
  8. package/dist/components/Button/index.js +11 -0
  9. package/dist/components/Card/index.js +8 -0
  10. package/dist/components/Carousel/index.js +379 -0
  11. package/dist/components/Carousel/styles.module.css.js +38 -0
  12. package/dist/components/Checkbox/index.js +10 -0
  13. package/dist/components/Chip/index.js +6 -0
  14. package/dist/components/DateInput/index.js +258 -0
  15. package/dist/components/DateInput/styles.module.css.js +20 -0
  16. package/dist/components/DatePicker/index.js +360 -0
  17. package/dist/components/DatePicker/styles.module.css.js +30 -0
  18. package/dist/components/Details/index.js +6 -0
  19. package/dist/components/Dialog/index.js +6 -0
  20. package/dist/components/Divider/index.js +6 -0
  21. package/dist/components/Donor/index.js +382 -0
  22. package/dist/components/Donor/styles.module.css.js +42 -0
  23. package/dist/components/Dropdown/index.js +12 -0
  24. package/dist/components/ErrorSummary/index.js +6 -0
  25. package/dist/components/Field/index.js +10 -0
  26. package/dist/components/Fieldset/index.js +6 -0
  27. package/dist/components/Footer/index.js +722 -0
  28. package/dist/components/Footer/styles.module.css.js +138 -0
  29. package/dist/components/GraphicElement/index.js +317 -0
  30. package/dist/components/GraphicElement/styles.module.css.js +16 -0
  31. package/dist/components/Header/index.js +677 -0
  32. package/dist/components/Header/styles.module.css.js +114 -0
  33. package/dist/components/Heading/index.js +9 -0
  34. package/dist/components/Input/index.js +7 -0
  35. package/dist/components/Label/index.js +9 -0
  36. package/dist/components/Link/index.js +6 -0
  37. package/dist/components/List/index.js +6 -0
  38. package/dist/components/Pagination/index.js +11 -0
  39. package/dist/components/Paragraph/index.js +11 -0
  40. package/dist/components/Popover/index.js +6 -0
  41. package/dist/components/Radio/index.js +7 -0
  42. package/dist/components/Search/index.js +10 -0
  43. package/dist/components/Select/index.js +6 -0
  44. package/dist/components/SkeletonLoader/index.js +6 -0
  45. package/dist/components/SkipLink/index.js +6 -0
  46. package/dist/components/SpinnerLoader/index.js +6 -0
  47. package/dist/components/Suggestion/index.js +7 -0
  48. package/dist/components/Switch/index.js +6 -0
  49. package/dist/components/Table/index.js +6 -0
  50. package/dist/components/Tabs/index.js +6 -0
  51. package/dist/components/Tag/index.js +14 -0
  52. package/dist/components/Textarea/index.js +6 -0
  53. package/dist/components/Textfield/index.js +6 -0
  54. package/dist/components/ToggleGroup/index.js +6 -0
  55. package/dist/components/Tooltip/index.js +6 -0
  56. package/dist/components/ValidationMessage/index.js +9 -0
  57. package/dist/context/LanguageContext.js +91 -0
  58. package/dist/index.d.ts +170 -147
  59. package/dist/index.js +118 -0
  60. package/dist/rk-designsystem.css +1 -1
  61. package/dist/{componentlibrary.es.js → translations/index.js} +267 -3904
  62. package/dist/utils/search-index.js +106 -0
  63. package/package.json +21 -35
  64. package/dist/componentlibrary.umd.js +0 -1266
@@ -0,0 +1,138 @@
1
+ "use client";
2
+ const t = "_footer_17i24_1", n = "_mainSection_17i24_7", o = "_mainContainer_17i24_21", i = "_graphicElementTopRight_17i24_31", e = "_graphicElementBottomLeft_17i24_38", c = "_contentRow_17i24_46", s = "_newsletterSection_17i24_56", _ = "_newsletterDescription_17i24_70", a = "_newsletterForm_17i24_79", l = "_newsletterInputGroup_17i24_85", r = "_newsletterInput_17i24_85", p = "_consentText_17i24_96", d = "_linksSection_17i24_106", L = "_linksColumn_17i24_112", C = "_linksTitle_17i24_119", k = "_linksList_17i24_130", m = "_footerLink_17i24_139", g = "_divider_17i24_161", w = "_contactSection_17i24_169", P = "_contactColumn_17i24_176", h = "_contactTitle_17i24_184", T = "_contactContent_17i24_193", S = "_copyrightSection_17i24_207", u = "_copyrightText_17i24_212", R = "_whiteSection_17i24_222", M = "_whiteContainer_17i24_227", f = "_whiteContent_17i24_235", x = "_logo_17i24_243", y = "_redCrossLogo_17i24_257", D = "_slotLarge_17i24_263", E = "_contentRowContact_17i24_318", I = "_socialLinksSection_17i24_328", b = "_socialLinksTitle_17i24_335", v = "_socialLinksList_17i24_346", B = "_socialLink_17i24_328", G = "_socialLinkIcon_17i24_379", A = "_contactPersonsSection_17i24_394", F = "_contactPersonsTitle_17i24_401", N = "_contactPersonsGrid_17i24_412", j = "_contactPersonCard_17i24_418", q = "_contactPersonName_17i24_425", z = "_contactPersonRole_17i24_434", H = "_contactPersonDetails_17i24_443", J = "_contactPersonLabel_17i24_450", K = "_contactPersonEmail_17i24_454", O = "_contactPersonPhone_17i24_455", Q = "_contactPersonAddress_17i24_456", U = "_bottomRowContact_17i24_477", V = "_legalLinksRow_17i24_486", W = "_legalLink_17i24_486", X = "_dpMain_17i24_561", Y = "_dpContainer_17i24_570", Z = "_dpColumns_17i24_578", $ = "_dpColumn_17i24_578", tt = "_dpColTitle_17i24_591", nt = "_dpList_17i24_599", ot = "_dpLink_17i24_608", it = "_dpDivider_17i24_622", et = "_dpMeta_17i24_630", ct = "_dpMetaCol_17i24_636", st = "_dpMetaTitle_17i24_644", _t = "_dpMetaText_17i24_652", at = "_dpBottom_17i24_660", lt = "_dpLegal_17i24_668", rt = "_dpLegalLink_17i24_677", pt = "_dpCopyright_17i24_689", dt = {
3
+ footer: t,
4
+ mainSection: n,
5
+ mainContainer: o,
6
+ graphicElementTopRight: i,
7
+ graphicElementBottomLeft: e,
8
+ contentRow: c,
9
+ newsletterSection: s,
10
+ newsletterDescription: _,
11
+ newsletterForm: a,
12
+ newsletterInputGroup: l,
13
+ newsletterInput: r,
14
+ consentText: p,
15
+ linksSection: d,
16
+ linksColumn: L,
17
+ linksTitle: C,
18
+ linksList: k,
19
+ footerLink: m,
20
+ divider: g,
21
+ contactSection: w,
22
+ contactColumn: P,
23
+ contactTitle: h,
24
+ contactContent: T,
25
+ copyrightSection: S,
26
+ copyrightText: u,
27
+ whiteSection: R,
28
+ whiteContainer: M,
29
+ whiteContent: f,
30
+ logo: x,
31
+ redCrossLogo: y,
32
+ slotLarge: D,
33
+ contentRowContact: E,
34
+ socialLinksSection: I,
35
+ socialLinksTitle: b,
36
+ socialLinksList: v,
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: it,
61
+ dpMeta: et,
62
+ dpMetaCol: ct,
63
+ dpMetaTitle: st,
64
+ dpMetaText: _t,
65
+ dpBottom: at,
66
+ dpLegal: lt,
67
+ dpLegalLink: rt,
68
+ dpCopyright: pt
69
+ };
70
+ export {
71
+ U as bottomRowContact,
72
+ p as consentText,
73
+ P as contactColumn,
74
+ T 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
+ w as contactSection,
87
+ h as contactTitle,
88
+ c as contentRow,
89
+ E as contentRowContact,
90
+ S as copyrightSection,
91
+ u as copyrightText,
92
+ dt as default,
93
+ g as divider,
94
+ at as dpBottom,
95
+ tt as dpColTitle,
96
+ $ as dpColumn,
97
+ Z as dpColumns,
98
+ Y as dpContainer,
99
+ pt as dpCopyright,
100
+ it as dpDivider,
101
+ lt as dpLegal,
102
+ rt as dpLegalLink,
103
+ ot as dpLink,
104
+ nt as dpList,
105
+ X as dpMain,
106
+ et as dpMeta,
107
+ ct as dpMetaCol,
108
+ _t as dpMetaText,
109
+ st as dpMetaTitle,
110
+ t as footer,
111
+ m as footerLink,
112
+ e as graphicElementBottomLeft,
113
+ i as graphicElementTopRight,
114
+ W as legalLink,
115
+ V as legalLinksRow,
116
+ L as linksColumn,
117
+ k as linksList,
118
+ d as linksSection,
119
+ C as linksTitle,
120
+ x as logo,
121
+ o as mainContainer,
122
+ n as mainSection,
123
+ _ as newsletterDescription,
124
+ a as newsletterForm,
125
+ r as newsletterInput,
126
+ l as newsletterInputGroup,
127
+ s as newsletterSection,
128
+ y as redCrossLogo,
129
+ D as slotLarge,
130
+ B as socialLink,
131
+ G as socialLinkIcon,
132
+ v as socialLinksList,
133
+ I as socialLinksSection,
134
+ b as socialLinksTitle,
135
+ M as whiteContainer,
136
+ f as whiteContent,
137
+ R 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 P(t) {
261
+ return t in H;
262
+ }
263
+ const R = 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.prepend(s);
282
+ }, []);
283
+ const g = N[w], c = _[t], o = l === "isometric" && P(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
+ R.displayName = "GraphicElement";
315
+ export {
316
+ R 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
+ };