@publicplan/kern-react-kit 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +235 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +24 -0
- package/dist/index.d.cts +52 -44
- package/dist/index.d.ts +52 -44
- package/dist/index.js +235 -188
- package/dist/index.js.map +1 -1
- package/dist/skills/kern-react-kit/SKILL.md +343 -0
- package/dist/skills/kern-react-kit/references/COMPONENTS.md +686 -0
- package/dist/skills/kern-react-kit/references/REFERENCE.md +316 -0
- package/dist/skills/skills.index.json +10 -0
- package/package.json +10 -4
package/dist/index.js
CHANGED
|
@@ -99,9 +99,9 @@ function _objectSpread2(e) {
|
|
|
99
99
|
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/components/Accordion/Content.tsx
|
|
102
|
-
const _excluded$
|
|
102
|
+
const _excluded$94 = ["children", "className"];
|
|
103
103
|
const AccordionContent = (_ref) => {
|
|
104
|
-
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
104
|
+
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$94);
|
|
105
105
|
return /* @__PURE__ */ jsx("section", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
106
106
|
className: cn("kern-accordion__body", className),
|
|
107
107
|
children: /* @__PURE__ */ jsx("p", {
|
|
@@ -114,7 +114,7 @@ AccordionContent.displayName = "Accordion.Content";
|
|
|
114
114
|
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region src/components/Accordion/Root.tsx
|
|
117
|
-
const _excluded$
|
|
117
|
+
const _excluded$93 = [
|
|
118
118
|
"className",
|
|
119
119
|
"children",
|
|
120
120
|
"isOpened",
|
|
@@ -122,7 +122,7 @@ const _excluded$94 = [
|
|
|
122
122
|
"totalItems"
|
|
123
123
|
];
|
|
124
124
|
const AccordionRoot = (_ref) => {
|
|
125
|
-
let { className, children, isOpened, position = 0, totalItems = 0 } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
125
|
+
let { className, children, isOpened, position = 0, totalItems = 0 } = _ref, rest = _objectWithoutProperties(_ref, _excluded$93);
|
|
126
126
|
return /* @__PURE__ */ jsxs("details", _objectSpread2(_objectSpread2(_objectSpread2({}, rest), {}, { className: cn("kern-accordion", className) }, isOpened ? { open: true } : {}), {}, { children: [position > 0 && totalItems > 0 && /* @__PURE__ */ jsx("span", {
|
|
127
127
|
className: "kern-sr-only",
|
|
128
128
|
children: `Item ${position} of ${totalItems}`
|
|
@@ -132,7 +132,7 @@ AccordionRoot.displayName = "Accordion.Root";
|
|
|
132
132
|
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/components/Title/Title.tsx
|
|
135
|
-
const _excluded$
|
|
135
|
+
const _excluded$92 = [
|
|
136
136
|
"variant",
|
|
137
137
|
"textWrapper",
|
|
138
138
|
"title",
|
|
@@ -140,7 +140,7 @@ const _excluded$93 = [
|
|
|
140
140
|
"className"
|
|
141
141
|
];
|
|
142
142
|
const Title = (_ref) => {
|
|
143
|
-
let { variant = "default", textWrapper = "h2", title, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
143
|
+
let { variant = "default", textWrapper = "h2", title, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$92);
|
|
144
144
|
const Wrapper = textWrapper;
|
|
145
145
|
const titleClass = cn("kern-title", `kern-title--${variant}`, className);
|
|
146
146
|
return /* @__PURE__ */ jsx(Wrapper, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -151,14 +151,14 @@ const Title = (_ref) => {
|
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/components/Accordion/Group.tsx
|
|
154
|
-
const _excluded$
|
|
154
|
+
const _excluded$91 = [
|
|
155
155
|
"aria-label",
|
|
156
156
|
"className",
|
|
157
157
|
"title",
|
|
158
158
|
"children"
|
|
159
159
|
];
|
|
160
160
|
const AccordionGroup = (_ref) => {
|
|
161
|
-
let { "aria-label": ariaLabel, className, title, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
161
|
+
let { "aria-label": ariaLabel, className, title, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$91);
|
|
162
162
|
const totalItems = React.Children.count(children);
|
|
163
163
|
const isAccordionItem = (child) => {
|
|
164
164
|
if (!React.isValidElement(child)) return false;
|
|
@@ -178,9 +178,9 @@ AccordionGroup.displayName = "Accordion.Group";
|
|
|
178
178
|
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/components/Accordion/Summary.tsx
|
|
181
|
-
const _excluded$
|
|
181
|
+
const _excluded$90 = ["title", "className"];
|
|
182
182
|
const AccordionSummary = (_ref) => {
|
|
183
|
-
let { title, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
183
|
+
let { title, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$90);
|
|
184
184
|
return /* @__PURE__ */ jsx("summary", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
185
185
|
className: cn("kern-accordion__header", className),
|
|
186
186
|
children: /* @__PURE__ */ jsx(Title, _objectSpread2({}, title))
|
|
@@ -199,9 +199,9 @@ var Accordion_exports = /* @__PURE__ */ __export({
|
|
|
199
199
|
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region src/components/Alert/Body.tsx
|
|
202
|
-
const _excluded$
|
|
202
|
+
const _excluded$89 = ["children", "className"];
|
|
203
203
|
const AlertBody = (_ref) => {
|
|
204
|
-
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
204
|
+
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$89);
|
|
205
205
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
206
206
|
className: cn("kern-alert__body", className),
|
|
207
207
|
children
|
|
@@ -211,7 +211,7 @@ AlertBody.displayName = "Alert.Body";
|
|
|
211
211
|
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region src/components/Icon/Icon.tsx
|
|
214
|
-
const _excluded$
|
|
214
|
+
const _excluded$88 = [
|
|
215
215
|
"name",
|
|
216
216
|
"aria-hidden",
|
|
217
217
|
"size",
|
|
@@ -219,7 +219,7 @@ const _excluded$89 = [
|
|
|
219
219
|
"className"
|
|
220
220
|
];
|
|
221
221
|
const Icon = (_ref) => {
|
|
222
|
-
let { name = "home", "aria-hidden": ariaHidden = true, size = "default", role, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
222
|
+
let { name = "home", "aria-hidden": ariaHidden = true, size = "default", role, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$88);
|
|
223
223
|
return /* @__PURE__ */ jsx("span", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
224
224
|
className: cn("kern-icon", `kern-icon--${name}`, `kern-icon--${size}`, className),
|
|
225
225
|
"aria-hidden": ariaHidden,
|
|
@@ -236,14 +236,14 @@ function useAlertVariant() {
|
|
|
236
236
|
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/components/Alert/Header.tsx
|
|
239
|
-
const _excluded$
|
|
239
|
+
const _excluded$87 = [
|
|
240
240
|
"hasIcon",
|
|
241
241
|
"icon",
|
|
242
242
|
"title",
|
|
243
243
|
"className"
|
|
244
244
|
];
|
|
245
245
|
const AlertHeader = (_ref) => {
|
|
246
|
-
let { hasIcon = true, icon, title, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
246
|
+
let { hasIcon = true, icon, title, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$87);
|
|
247
247
|
const variant = useAlertVariant();
|
|
248
248
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
249
249
|
className: cn("kern-alert__header", className),
|
|
@@ -257,7 +257,7 @@ AlertHeader.displayName = "Alert.Header";
|
|
|
257
257
|
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/Link/Link.tsx
|
|
260
|
-
const _excluded$
|
|
260
|
+
const _excluded$86 = [
|
|
261
261
|
"variant",
|
|
262
262
|
"icon",
|
|
263
263
|
"iconLeft",
|
|
@@ -267,21 +267,21 @@ const _excluded$87 = [
|
|
|
267
267
|
"isStretched",
|
|
268
268
|
"className"
|
|
269
269
|
];
|
|
270
|
-
const getIcon
|
|
270
|
+
const getIcon = (iconProps) => iconProps ? /* @__PURE__ */ jsx(Icon, {
|
|
271
271
|
name: iconProps.name,
|
|
272
272
|
size: iconProps.size
|
|
273
273
|
}) : null;
|
|
274
274
|
const Link = (_ref) => {
|
|
275
|
-
let { variant = "default", icon, iconLeft, title, target = "_self", children, isStretched, className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
275
|
+
let { variant = "default", icon, iconLeft, title, target = "_self", children, isStretched, className } = _ref, props = _objectWithoutProperties(_ref, _excluded$86);
|
|
276
276
|
const linkText = title !== null && title !== void 0 ? title : children;
|
|
277
277
|
const linkClass = cn(isStretched ? "kern-link--stretched" : "kern-link", variant === "small" && "kern-link--small", className);
|
|
278
278
|
return /* @__PURE__ */ jsxs("a", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
279
279
|
className: linkClass,
|
|
280
280
|
target: (icon === null || icon === void 0 ? void 0 : icon.name) === "open-in-new" ? "_blank" : target,
|
|
281
281
|
children: [
|
|
282
|
-
iconLeft && getIcon
|
|
282
|
+
iconLeft && getIcon(icon),
|
|
283
283
|
linkText,
|
|
284
|
-
!iconLeft && getIcon
|
|
284
|
+
!iconLeft && getIcon(icon)
|
|
285
285
|
]
|
|
286
286
|
}));
|
|
287
287
|
};
|
|
@@ -296,13 +296,13 @@ AlertLink.displayName = "Alert.Link";
|
|
|
296
296
|
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region src/components/Alert/Root.tsx
|
|
299
|
-
const _excluded$
|
|
299
|
+
const _excluded$85 = [
|
|
300
300
|
"children",
|
|
301
301
|
"variant",
|
|
302
302
|
"className"
|
|
303
303
|
];
|
|
304
304
|
const AlertRoot = (_ref) => {
|
|
305
|
-
let { children = null, variant, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
305
|
+
let { children = null, variant, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$85);
|
|
306
306
|
return /* @__PURE__ */ jsx(AlertVariantContext.Provider, {
|
|
307
307
|
value: variant,
|
|
308
308
|
children: /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -325,9 +325,9 @@ var Alert_exports = /* @__PURE__ */ __export({
|
|
|
325
325
|
|
|
326
326
|
//#endregion
|
|
327
327
|
//#region src/components/Card/Body.tsx
|
|
328
|
-
const _excluded$
|
|
328
|
+
const _excluded$84 = ["className", "children"];
|
|
329
329
|
const CardBody = (_ref) => {
|
|
330
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
330
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$84);
|
|
331
331
|
return /* @__PURE__ */ jsx("section", _objectSpread2(_objectSpread2({ className: cn("kern-card__body", className) }, rest), {}, { children: /* @__PURE__ */ jsx("p", {
|
|
332
332
|
className: "kern-body",
|
|
333
333
|
children
|
|
@@ -337,9 +337,9 @@ CardBody.displayName = "Card.Body";
|
|
|
337
337
|
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region src/components/Card/Container.tsx
|
|
340
|
-
const _excluded$
|
|
340
|
+
const _excluded$83 = ["className", "children"];
|
|
341
341
|
const CardContainer = (_ref) => {
|
|
342
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
342
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$83);
|
|
343
343
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
344
344
|
className: cn("kern-card__container", className),
|
|
345
345
|
children
|
|
@@ -349,9 +349,9 @@ CardContainer.displayName = "Card.Container";
|
|
|
349
349
|
|
|
350
350
|
//#endregion
|
|
351
351
|
//#region src/components/Card/Footer.tsx
|
|
352
|
-
const _excluded$
|
|
352
|
+
const _excluded$82 = ["className", "children"];
|
|
353
353
|
const CardFooter = (_ref) => {
|
|
354
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
354
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$82);
|
|
355
355
|
return /* @__PURE__ */ jsx("footer", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
356
356
|
className: cn("kern-card__footer", className),
|
|
357
357
|
children
|
|
@@ -361,9 +361,9 @@ CardFooter.displayName = "Card.Footer";
|
|
|
361
361
|
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/Card/Header.tsx
|
|
364
|
-
const _excluded$
|
|
364
|
+
const _excluded$81 = ["className", "children"];
|
|
365
365
|
const CardHeader = (_ref) => {
|
|
366
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
366
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$81);
|
|
367
367
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
368
368
|
className: cn("kern-card__header", className),
|
|
369
369
|
children
|
|
@@ -373,7 +373,7 @@ CardHeader.displayName = "Card.Header";
|
|
|
373
373
|
|
|
374
374
|
//#endregion
|
|
375
375
|
//#region src/components/Card/Media.tsx
|
|
376
|
-
const _excluded$
|
|
376
|
+
const _excluded$80 = [
|
|
377
377
|
"src",
|
|
378
378
|
"alt",
|
|
379
379
|
"width",
|
|
@@ -381,7 +381,7 @@ const _excluded$81 = [
|
|
|
381
381
|
"className"
|
|
382
382
|
];
|
|
383
383
|
const CardMedia = (_ref) => {
|
|
384
|
-
let { src, alt, width, height, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
384
|
+
let { src, alt, width, height, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$80);
|
|
385
385
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
386
386
|
className: cn("kern-card__media", className),
|
|
387
387
|
children: /* @__PURE__ */ jsx("img", {
|
|
@@ -396,9 +396,9 @@ CardMedia.displayName = "Card.Media";
|
|
|
396
396
|
|
|
397
397
|
//#endregion
|
|
398
398
|
//#region src/components/Card/Preline.tsx
|
|
399
|
-
const _excluded$
|
|
399
|
+
const _excluded$79 = ["className", "children"];
|
|
400
400
|
const CardPreline = (_ref) => {
|
|
401
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
401
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$79);
|
|
402
402
|
return /* @__PURE__ */ jsx("p", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
403
403
|
className: cn("kern-preline", className),
|
|
404
404
|
children
|
|
@@ -408,7 +408,7 @@ CardPreline.displayName = "Card.Preline";
|
|
|
408
408
|
|
|
409
409
|
//#endregion
|
|
410
410
|
//#region src/components/Card/Root.tsx
|
|
411
|
-
const _excluded$
|
|
411
|
+
const _excluded$78 = [
|
|
412
412
|
"className",
|
|
413
413
|
"style",
|
|
414
414
|
"children",
|
|
@@ -417,7 +417,7 @@ const _excluded$79 = [
|
|
|
417
417
|
"isCardHug"
|
|
418
418
|
];
|
|
419
419
|
const CardRoot = (_ref) => {
|
|
420
|
-
let { className, style, children, active = false, size = "medium", isCardHug = false } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
420
|
+
let { className, style, children, active = false, size = "medium", isCardHug = false } = _ref, rest = _objectWithoutProperties(_ref, _excluded$78);
|
|
421
421
|
return /* @__PURE__ */ jsx("article", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
422
422
|
className: cn("kern-card", active && "kern-card--active", size && `kern-card--${size}`, isCardHug && ` kern-card--hug`, className),
|
|
423
423
|
style,
|
|
@@ -428,9 +428,9 @@ CardRoot.displayName = "Card.Root";
|
|
|
428
428
|
|
|
429
429
|
//#endregion
|
|
430
430
|
//#region src/components/Card/Subline.tsx
|
|
431
|
-
const _excluded$
|
|
431
|
+
const _excluded$77 = ["className", "children"];
|
|
432
432
|
const CardSubline = (_ref) => {
|
|
433
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
433
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$77);
|
|
434
434
|
return /* @__PURE__ */ jsx("h3", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
435
435
|
className: cn("kern-subline", className),
|
|
436
436
|
children
|
|
@@ -440,13 +440,13 @@ CardSubline.displayName = "Card.Subline";
|
|
|
440
440
|
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/components/Card/Title.tsx
|
|
443
|
-
const _excluded$
|
|
443
|
+
const _excluded$76 = [
|
|
444
444
|
"className",
|
|
445
445
|
"children",
|
|
446
446
|
"textWrapper"
|
|
447
447
|
];
|
|
448
448
|
const CardTitle = (_ref) => {
|
|
449
|
-
let { className, children, textWrapper = "h2" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
449
|
+
let { className, children, textWrapper = "h2" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$76);
|
|
450
450
|
return /* @__PURE__ */ jsx(textWrapper, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
451
451
|
className: cn("kern-title", className),
|
|
452
452
|
children
|
|
@@ -470,13 +470,13 @@ var Card_exports = /* @__PURE__ */ __export({
|
|
|
470
470
|
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region src/components/DescriptionList/Heading.tsx
|
|
473
|
-
const _excluded$
|
|
473
|
+
const _excluded$75 = [
|
|
474
474
|
"title",
|
|
475
475
|
"children",
|
|
476
476
|
"className"
|
|
477
477
|
];
|
|
478
478
|
const DescriptionListHeading = (_ref) => {
|
|
479
|
-
let { title, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
479
|
+
let { title, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$75);
|
|
480
480
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
481
481
|
className: cn("kern-description-list__heading", className),
|
|
482
482
|
children: [/* @__PURE__ */ jsx(Title, _objectSpread2({}, title)), children]
|
|
@@ -486,9 +486,9 @@ DescriptionListHeading.displayName = "DescriptionList.Heading";
|
|
|
486
486
|
|
|
487
487
|
//#endregion
|
|
488
488
|
//#region src/components/DescriptionList/Item.tsx
|
|
489
|
-
const _excluded$
|
|
489
|
+
const _excluded$74 = ["children", "className"];
|
|
490
490
|
const DescriptionListItem = (_ref) => {
|
|
491
|
-
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
491
|
+
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$74);
|
|
492
492
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
493
493
|
className: cn(`kern-description-list-item`, className),
|
|
494
494
|
children
|
|
@@ -498,9 +498,9 @@ DescriptionListItem.displayName = "DescriptionList.Item";
|
|
|
498
498
|
|
|
499
499
|
//#endregion
|
|
500
500
|
//#region src/components/DescriptionList/Key.tsx
|
|
501
|
-
const _excluded$
|
|
501
|
+
const _excluded$73 = ["children", "className"];
|
|
502
502
|
const DescriptionListKey = (_ref) => {
|
|
503
|
-
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
503
|
+
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$73);
|
|
504
504
|
return /* @__PURE__ */ jsx("dt", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
505
505
|
className: cn("kern-description-list-item__key", className),
|
|
506
506
|
children
|
|
@@ -510,13 +510,13 @@ DescriptionListKey.displayName = "DescriptionList.Key";
|
|
|
510
510
|
|
|
511
511
|
//#endregion
|
|
512
512
|
//#region src/components/DescriptionList/Root.tsx
|
|
513
|
-
const _excluded$
|
|
513
|
+
const _excluded$72 = [
|
|
514
514
|
"variant",
|
|
515
515
|
"children",
|
|
516
516
|
"className"
|
|
517
517
|
];
|
|
518
518
|
const DescriptionListRoot = (_ref) => {
|
|
519
|
-
let { variant = "row", children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
519
|
+
let { variant = "row", children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$72);
|
|
520
520
|
return /* @__PURE__ */ jsx("dl", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
521
521
|
className: cn("kern-description-list", variant === "column" && "kern-description-list--col", className),
|
|
522
522
|
children
|
|
@@ -526,9 +526,9 @@ DescriptionListRoot.displayName = "DescriptionList.Root";
|
|
|
526
526
|
|
|
527
527
|
//#endregion
|
|
528
528
|
//#region src/components/DescriptionList/Value.tsx
|
|
529
|
-
const _excluded$
|
|
529
|
+
const _excluded$71 = ["children", "className"];
|
|
530
530
|
const DescriptionListValue = (_ref) => {
|
|
531
|
-
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
531
|
+
let { children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$71);
|
|
532
532
|
return /* @__PURE__ */ jsx("dd", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
533
533
|
className: cn("kern-description-list-item__value", className),
|
|
534
534
|
children
|
|
@@ -548,20 +548,22 @@ var DescriptionList_exports = /* @__PURE__ */ __export({
|
|
|
548
548
|
|
|
549
549
|
//#endregion
|
|
550
550
|
//#region src/components/Button/Button.tsx
|
|
551
|
-
const _excluded$
|
|
551
|
+
const _excluded$70 = [
|
|
552
552
|
"variant",
|
|
553
553
|
"isBlock",
|
|
554
554
|
"icon",
|
|
555
|
+
"iconSize",
|
|
555
556
|
"iconOnly",
|
|
556
557
|
"iconLeft",
|
|
557
558
|
"text",
|
|
558
559
|
"children",
|
|
559
560
|
"className"
|
|
561
|
+
], _excluded2 = [
|
|
562
|
+
"href",
|
|
563
|
+
"target",
|
|
564
|
+
"disabled"
|
|
560
565
|
];
|
|
561
|
-
const
|
|
562
|
-
name: iconProps.name,
|
|
563
|
-
size: iconProps.size
|
|
564
|
-
}) : null;
|
|
566
|
+
const isIconProps = (icon) => typeof icon === "object" && icon !== null && "name" in icon && !React.isValidElement(icon);
|
|
565
567
|
const IconOnlyLabel = ({ labelText }) => {
|
|
566
568
|
if (!labelText) return null;
|
|
567
569
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -569,26 +571,80 @@ const IconOnlyLabel = ({ labelText }) => {
|
|
|
569
571
|
children: labelText.replace(/^./, (c) => c.toUpperCase())
|
|
570
572
|
});
|
|
571
573
|
};
|
|
572
|
-
const Button = (
|
|
573
|
-
|
|
574
|
+
const Button = React.forwardRef((props, ref) => {
|
|
575
|
+
const { variant = "primary", isBlock, icon, iconSize = "default", iconOnly, iconLeft, text, children, className } = props, rest = _objectWithoutProperties(props, _excluded$70);
|
|
574
576
|
const classes = cn("kern-btn", isBlock && "kern-btn--block", `kern-btn--${variant}`, className);
|
|
575
|
-
|
|
576
|
-
if (
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
577
|
+
let iconElement = null;
|
|
578
|
+
if (icon && (typeof icon === "object" && "name" in icon && icon.name.length > 0 || React.isValidElement(icon))) {
|
|
579
|
+
if (isIconProps(icon)) iconElement = /* @__PURE__ */ jsx(Icon, {
|
|
580
|
+
name: icon.name,
|
|
581
|
+
size: icon.size
|
|
582
|
+
});
|
|
583
|
+
else if (React.isValidElement(icon)) iconElement = /* @__PURE__ */ jsx("span", {
|
|
584
|
+
className: cn("kern-icon", `kern-icon--${iconSize}`),
|
|
585
|
+
style: {
|
|
586
|
+
mask: "none",
|
|
587
|
+
WebkitMask: "none",
|
|
588
|
+
background: "none",
|
|
589
|
+
display: "inline-flex"
|
|
590
|
+
},
|
|
591
|
+
"aria-hidden": true,
|
|
592
|
+
children: icon
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
if ("as" in props && props.as === "a" && props.href) {
|
|
596
|
+
const _ref = rest, { href, target, disabled } = _ref, anchorRest = _objectWithoutProperties(_ref, _excluded2);
|
|
597
|
+
if (iconOnly) {
|
|
598
|
+
const labelText = text || (isIconProps(icon) ? icon.name : void 0);
|
|
599
|
+
const ariaDisabled = disabled ? {
|
|
600
|
+
"aria-disabled": true,
|
|
601
|
+
tabIndex: -1,
|
|
602
|
+
onClick: (e) => e.preventDefault(),
|
|
603
|
+
href: void 0
|
|
604
|
+
} : {};
|
|
605
|
+
return /* @__PURE__ */ jsxs("a", _objectSpread2(_objectSpread2(_objectSpread2({
|
|
606
|
+
ref,
|
|
607
|
+
href,
|
|
608
|
+
target,
|
|
609
|
+
className: classes
|
|
610
|
+
}, anchorRest), ariaDisabled), {}, { children: [iconElement, /* @__PURE__ */ jsx(IconOnlyLabel, { labelText })] }));
|
|
611
|
+
}
|
|
612
|
+
return /* @__PURE__ */ jsxs("a", _objectSpread2(_objectSpread2({
|
|
613
|
+
ref,
|
|
614
|
+
href,
|
|
615
|
+
target,
|
|
616
|
+
className: classes
|
|
617
|
+
}, anchorRest), {}, { children: [
|
|
583
618
|
iconLeft && iconElement,
|
|
584
|
-
|
|
619
|
+
/* @__PURE__ */ jsx("span", {
|
|
585
620
|
className: "kern-label",
|
|
586
621
|
children: children || text
|
|
587
622
|
}),
|
|
588
623
|
!iconLeft && iconElement
|
|
589
|
-
]
|
|
590
|
-
}
|
|
591
|
-
|
|
624
|
+
] }));
|
|
625
|
+
}
|
|
626
|
+
const buttonRest = rest;
|
|
627
|
+
if (iconOnly) {
|
|
628
|
+
const labelText = text || (isIconProps(icon) ? icon.name : void 0);
|
|
629
|
+
return /* @__PURE__ */ jsxs("button", _objectSpread2(_objectSpread2({
|
|
630
|
+
ref,
|
|
631
|
+
type: "button",
|
|
632
|
+
className: classes
|
|
633
|
+
}, buttonRest), {}, { children: [iconElement, /* @__PURE__ */ jsx(IconOnlyLabel, { labelText })] }));
|
|
634
|
+
}
|
|
635
|
+
return /* @__PURE__ */ jsxs("button", _objectSpread2(_objectSpread2({
|
|
636
|
+
ref,
|
|
637
|
+
type: "button",
|
|
638
|
+
className: classes
|
|
639
|
+
}, buttonRest), {}, { children: [
|
|
640
|
+
iconLeft && iconElement,
|
|
641
|
+
text && /* @__PURE__ */ jsx("span", {
|
|
642
|
+
className: "kern-label",
|
|
643
|
+
children: children || text
|
|
644
|
+
}),
|
|
645
|
+
!iconLeft && iconElement
|
|
646
|
+
] }));
|
|
647
|
+
});
|
|
592
648
|
Button.isInteractive = true;
|
|
593
649
|
|
|
594
650
|
//#endregion
|
|
@@ -602,9 +658,9 @@ const useDialogContext = () => {
|
|
|
602
658
|
|
|
603
659
|
//#endregion
|
|
604
660
|
//#region src/components/Dialog/Button.tsx
|
|
605
|
-
const _excluded$
|
|
661
|
+
const _excluded$69 = ["onClick", "title"];
|
|
606
662
|
const DialogButton = (_ref) => {
|
|
607
|
-
let { onClick, title } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
663
|
+
let { onClick, title } = _ref, props = _objectWithoutProperties(_ref, _excluded$69);
|
|
608
664
|
const { closeDialog } = useDialogContext();
|
|
609
665
|
return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
610
666
|
text: title,
|
|
@@ -618,9 +674,9 @@ DialogButton.displayName = "Dialog.Button";
|
|
|
618
674
|
|
|
619
675
|
//#endregion
|
|
620
676
|
//#region src/components/Dialog/Content.tsx
|
|
621
|
-
const _excluded$
|
|
677
|
+
const _excluded$68 = ["className", "children"];
|
|
622
678
|
const DialogContent = (_ref) => {
|
|
623
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
679
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$68);
|
|
624
680
|
return /* @__PURE__ */ jsx("section", _objectSpread2(_objectSpread2({ className: cn("kern-dialog__body", className) }, rest), {}, { children: typeof children === "string" ? /* @__PURE__ */ jsx("p", {
|
|
625
681
|
className: "kern-body",
|
|
626
682
|
children
|
|
@@ -630,9 +686,9 @@ DialogContent.displayName = "Dialog.Content";
|
|
|
630
686
|
|
|
631
687
|
//#endregion
|
|
632
688
|
//#region src/components/Dialog/Footer.tsx
|
|
633
|
-
const _excluded$
|
|
689
|
+
const _excluded$67 = ["className", "children"];
|
|
634
690
|
const DialogFooter = (_ref) => {
|
|
635
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
691
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$67);
|
|
636
692
|
return /* @__PURE__ */ jsx("footer", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
637
693
|
className: cn("kern-dialog__footer", className),
|
|
638
694
|
children
|
|
@@ -642,14 +698,14 @@ DialogFooter.displayName = "Dialog.Footer";
|
|
|
642
698
|
|
|
643
699
|
//#endregion
|
|
644
700
|
//#region src/components/Dialog/Header.tsx
|
|
645
|
-
const _excluded$
|
|
701
|
+
const _excluded$66 = [
|
|
646
702
|
"dialogTitle",
|
|
647
703
|
"hasCloseButton",
|
|
648
704
|
"aria-label",
|
|
649
705
|
"className"
|
|
650
706
|
];
|
|
651
707
|
const DialogHeader = (_ref) => {
|
|
652
|
-
let { dialogTitle, hasCloseButton = true, "aria-label": ariaLabel = "Schließen", className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
708
|
+
let { dialogTitle, hasCloseButton = true, "aria-label": ariaLabel = "Schließen", className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$66);
|
|
653
709
|
const { closeDialog, id } = useDialogContext();
|
|
654
710
|
const headerClass = cn("kern-dialog__header", className);
|
|
655
711
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -677,9 +733,9 @@ DialogHeader.displayName = "Dialog.Header";
|
|
|
677
733
|
|
|
678
734
|
//#endregion
|
|
679
735
|
//#region src/components/Dialog/Modal.tsx
|
|
680
|
-
const _excluded$
|
|
736
|
+
const _excluded$65 = ["className", "children"];
|
|
681
737
|
const DialogModal = (_ref) => {
|
|
682
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
738
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$65);
|
|
683
739
|
const { dialogRef, closeDialog, isOpen, disableOverlayClose, id } = useDialogContext();
|
|
684
740
|
const handleOverlayClick = (e) => {
|
|
685
741
|
if (disableOverlayClose && e.target === dialogRef.current) e.preventDefault();
|
|
@@ -732,13 +788,13 @@ DialogModal.displayName = "Dialog.Modal";
|
|
|
732
788
|
|
|
733
789
|
//#endregion
|
|
734
790
|
//#region src/components/Dialog/Root.tsx
|
|
735
|
-
const _excluded$
|
|
791
|
+
const _excluded$64 = [
|
|
736
792
|
"disableOverlayClose",
|
|
737
793
|
"children",
|
|
738
794
|
"id"
|
|
739
795
|
];
|
|
740
796
|
const DialogRoot = (_ref) => {
|
|
741
|
-
let { disableOverlayClose = false, children, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
797
|
+
let { disableOverlayClose = false, children, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$64);
|
|
742
798
|
const [isOpen, setIsOpen] = useState(false);
|
|
743
799
|
const dialogRef = useRef(null);
|
|
744
800
|
const openDialog = () => {
|
|
@@ -825,13 +881,13 @@ FieldsetContent.displayName = "Fieldset.Content";
|
|
|
825
881
|
|
|
826
882
|
//#endregion
|
|
827
883
|
//#region src/components/Fieldset/Error.tsx
|
|
828
|
-
const _excluded$
|
|
884
|
+
const _excluded$63 = [
|
|
829
885
|
"children",
|
|
830
886
|
"className",
|
|
831
887
|
"id"
|
|
832
888
|
];
|
|
833
889
|
const FieldsetError = (_ref) => {
|
|
834
|
-
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
890
|
+
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$63);
|
|
835
891
|
const errorId = id || `error-${Math.random().toString(36).substr(2, 9)}`;
|
|
836
892
|
return /* @__PURE__ */ jsxs("p", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
837
893
|
className: cn(`kern-error`, className),
|
|
@@ -850,13 +906,13 @@ FieldsetError.displayName = "Fieldset.Error";
|
|
|
850
906
|
|
|
851
907
|
//#endregion
|
|
852
908
|
//#region src/components/Fieldset/Hint.tsx
|
|
853
|
-
const _excluded$
|
|
909
|
+
const _excluded$62 = [
|
|
854
910
|
"children",
|
|
855
911
|
"className",
|
|
856
912
|
"id"
|
|
857
913
|
];
|
|
858
914
|
const FieldsetHint = (_ref) => {
|
|
859
|
-
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
915
|
+
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$62);
|
|
860
916
|
const hintId = id || `hint-${Math.random().toString(36).substr(2, 9)}`;
|
|
861
917
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
862
918
|
className: cn(`kern-hint`, className),
|
|
@@ -868,9 +924,9 @@ FieldsetHint.displayName = "Fieldset.Hint";
|
|
|
868
924
|
|
|
869
925
|
//#endregion
|
|
870
926
|
//#region src/components/Fieldset/Legend.tsx
|
|
871
|
-
const _excluded$
|
|
927
|
+
const _excluded$61 = ["children", "hasOptionalLabel"];
|
|
872
928
|
const FieldsetLegend = (_ref) => {
|
|
873
|
-
let { children, hasOptionalLabel } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
929
|
+
let { children, hasOptionalLabel } = _ref, rest = _objectWithoutProperties(_ref, _excluded$61);
|
|
874
930
|
return /* @__PURE__ */ jsxs("legend", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
875
931
|
className: cn(`kern-label`, rest.className),
|
|
876
932
|
children: [children, hasOptionalLabel && /* @__PURE__ */ jsx("span", {
|
|
@@ -883,9 +939,9 @@ FieldsetLegend.displayName = "Fieldset.Legend";
|
|
|
883
939
|
|
|
884
940
|
//#endregion
|
|
885
941
|
//#region src/components/Input/Primitives/Checkbox/CheckboxInput.tsx
|
|
886
|
-
const _excluded$
|
|
942
|
+
const _excluded$60 = ["erroneous", "required"];
|
|
887
943
|
const CheckboxInput$1 = forwardRef((_ref, ref) => {
|
|
888
|
-
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
944
|
+
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$60);
|
|
889
945
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
890
946
|
ref,
|
|
891
947
|
type: "checkbox",
|
|
@@ -896,13 +952,13 @@ const CheckboxInput$1 = forwardRef((_ref, ref) => {
|
|
|
896
952
|
|
|
897
953
|
//#endregion
|
|
898
954
|
//#region src/components/Input/Primitives/Email/EmailInput.tsx
|
|
899
|
-
const _excluded$
|
|
955
|
+
const _excluded$59 = [
|
|
900
956
|
"erroneous",
|
|
901
957
|
"autoComplete",
|
|
902
958
|
"required"
|
|
903
959
|
];
|
|
904
960
|
const EmailInput$1 = forwardRef((_ref, ref) => {
|
|
905
|
-
let { erroneous = false, autoComplete = "email", required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
961
|
+
let { erroneous = false, autoComplete = "email", required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$59);
|
|
906
962
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
907
963
|
ref,
|
|
908
964
|
required,
|
|
@@ -914,9 +970,9 @@ const EmailInput$1 = forwardRef((_ref, ref) => {
|
|
|
914
970
|
|
|
915
971
|
//#endregion
|
|
916
972
|
//#region src/components/Input/Primitives/Error.tsx
|
|
917
|
-
const _excluded$
|
|
973
|
+
const _excluded$58 = ["className", "message"];
|
|
918
974
|
const InputError = (_ref) => {
|
|
919
|
-
let { className, message } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
975
|
+
let { className, message } = _ref, props = _objectWithoutProperties(_ref, _excluded$58);
|
|
920
976
|
return /* @__PURE__ */ jsxs("p", _objectSpread2(_objectSpread2({
|
|
921
977
|
className: cn("kern-error", className),
|
|
922
978
|
role: "alert"
|
|
@@ -928,14 +984,14 @@ const InputError = (_ref) => {
|
|
|
928
984
|
|
|
929
985
|
//#endregion
|
|
930
986
|
//#region src/components/Input/Primitives/File/FileInput.tsx
|
|
931
|
-
const _excluded$
|
|
987
|
+
const _excluded$57 = [
|
|
932
988
|
"supportedFormats",
|
|
933
989
|
"erroneous",
|
|
934
990
|
"required"
|
|
935
991
|
];
|
|
936
992
|
const FileInput$1 = forwardRef((_ref, ref) => {
|
|
937
993
|
var _rest$accept;
|
|
938
|
-
let { supportedFormats = [], erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
994
|
+
let { supportedFormats = [], erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$57);
|
|
939
995
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
940
996
|
ref,
|
|
941
997
|
type: "file",
|
|
@@ -947,15 +1003,15 @@ const FileInput$1 = forwardRef((_ref, ref) => {
|
|
|
947
1003
|
|
|
948
1004
|
//#endregion
|
|
949
1005
|
//#region src/components/Input/Primitives/Hint.tsx
|
|
950
|
-
const _excluded$
|
|
1006
|
+
const _excluded$56 = ["className", "children"];
|
|
951
1007
|
const Hint = (_ref) => {
|
|
952
|
-
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1008
|
+
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$56);
|
|
953
1009
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({ className: cn("kern-hint", className) }, props), {}, { children }));
|
|
954
1010
|
};
|
|
955
1011
|
|
|
956
1012
|
//#endregion
|
|
957
1013
|
//#region src/components/Label/Label.tsx
|
|
958
|
-
const _excluded$
|
|
1014
|
+
const _excluded$55 = [
|
|
959
1015
|
"variant",
|
|
960
1016
|
"textWrapper",
|
|
961
1017
|
"className",
|
|
@@ -963,7 +1019,7 @@ const _excluded$56 = [
|
|
|
963
1019
|
"text"
|
|
964
1020
|
];
|
|
965
1021
|
const Label = (_ref) => {
|
|
966
|
-
let { variant = "default", textWrapper = "label", className, children, text } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1022
|
+
let { variant = "default", textWrapper = "label", className, children, text } = _ref, rest = _objectWithoutProperties(_ref, _excluded$55);
|
|
967
1023
|
const Wrapper = textWrapper;
|
|
968
1024
|
const labelClass = cn("kern-label", variant ? `kern-label--${variant}` : "", className, className);
|
|
969
1025
|
return /* @__PURE__ */ jsx(Wrapper, _objectSpread2(_objectSpread2({ className: labelClass }, rest), {}, { children: text || children }));
|
|
@@ -971,9 +1027,9 @@ const Label = (_ref) => {
|
|
|
971
1027
|
|
|
972
1028
|
//#endregion
|
|
973
1029
|
//#region src/components/Input/Primitives/Label.tsx
|
|
974
|
-
const _excluded$
|
|
1030
|
+
const _excluded$54 = ["children", "isOptional"];
|
|
975
1031
|
const Label$1 = (_ref) => {
|
|
976
|
-
let { children, isOptional } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1032
|
+
let { children, isOptional } = _ref, props = _objectWithoutProperties(_ref, _excluded$54);
|
|
977
1033
|
return /* @__PURE__ */ jsxs(Label, _objectSpread2(_objectSpread2({ textWrapper: "label" }, props), {}, { children: [children, isOptional && /* @__PURE__ */ jsx("span", {
|
|
978
1034
|
className: "kern-label__optional",
|
|
979
1035
|
children: "– Optional"
|
|
@@ -982,13 +1038,13 @@ const Label$1 = (_ref) => {
|
|
|
982
1038
|
|
|
983
1039
|
//#endregion
|
|
984
1040
|
//#region src/components/Input/Primitives/Password/PasswordInput.tsx
|
|
985
|
-
const _excluded$
|
|
1041
|
+
const _excluded$53 = [
|
|
986
1042
|
"erroneous",
|
|
987
1043
|
"required",
|
|
988
1044
|
"autoComplete"
|
|
989
1045
|
];
|
|
990
1046
|
const PasswordInput$1 = forwardRef((_ref, ref) => {
|
|
991
|
-
let { erroneous = false, required, autoComplete = "password" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1047
|
+
let { erroneous = false, required, autoComplete = "password" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$53);
|
|
992
1048
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
993
1049
|
ref,
|
|
994
1050
|
type: "password",
|
|
@@ -1000,13 +1056,13 @@ const PasswordInput$1 = forwardRef((_ref, ref) => {
|
|
|
1000
1056
|
|
|
1001
1057
|
//#endregion
|
|
1002
1058
|
//#region src/components/Input/Primitives/Radio/RadioInput.tsx
|
|
1003
|
-
const _excluded$
|
|
1059
|
+
const _excluded$52 = [
|
|
1004
1060
|
"erroneous",
|
|
1005
1061
|
"required",
|
|
1006
1062
|
"autoComplete"
|
|
1007
1063
|
];
|
|
1008
1064
|
const RadioInput$1 = forwardRef((_ref, ref) => {
|
|
1009
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1065
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$52);
|
|
1010
1066
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1011
1067
|
ref,
|
|
1012
1068
|
type: "radio",
|
|
@@ -1018,22 +1074,22 @@ const RadioInput$1 = forwardRef((_ref, ref) => {
|
|
|
1018
1074
|
|
|
1019
1075
|
//#endregion
|
|
1020
1076
|
//#region src/components/Input/Primitives/Root.tsx
|
|
1021
|
-
const _excluded$
|
|
1077
|
+
const _excluded$51 = ["className", "erroneous"];
|
|
1022
1078
|
const Root = (_ref) => {
|
|
1023
|
-
let { className, erroneous } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1079
|
+
let { className, erroneous } = _ref, props = _objectWithoutProperties(_ref, _excluded$51);
|
|
1024
1080
|
return /* @__PURE__ */ jsx("div", _objectSpread2({ className: cn("kern-form-input", erroneous && "kern-form-input--error", className) }, props));
|
|
1025
1081
|
};
|
|
1026
1082
|
|
|
1027
1083
|
//#endregion
|
|
1028
1084
|
//#region src/components/Input/Primitives/Select/SelectInput.tsx
|
|
1029
|
-
const _excluded$
|
|
1085
|
+
const _excluded$50 = [
|
|
1030
1086
|
"erroneous",
|
|
1031
1087
|
"required",
|
|
1032
1088
|
"autoComplete",
|
|
1033
1089
|
"options"
|
|
1034
1090
|
];
|
|
1035
1091
|
const SelectInput$1 = forwardRef((_ref, ref) => {
|
|
1036
|
-
let { erroneous = false, required, autoComplete = "", options = [] } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1092
|
+
let { erroneous = false, required, autoComplete = "", options = [] } = _ref, rest = _objectWithoutProperties(_ref, _excluded$50);
|
|
1037
1093
|
return /* @__PURE__ */ jsx("div", {
|
|
1038
1094
|
className: "kern-form-input__select-wrapper",
|
|
1039
1095
|
children: /* @__PURE__ */ jsx("select", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -1051,9 +1107,9 @@ const SelectInput$1 = forwardRef((_ref, ref) => {
|
|
|
1051
1107
|
|
|
1052
1108
|
//#endregion
|
|
1053
1109
|
//#region src/components/Input/Primitives/Tel/TelInput.tsx
|
|
1054
|
-
const _excluded$
|
|
1110
|
+
const _excluded$49 = ["erroneous", "required"];
|
|
1055
1111
|
const TelInput$1 = forwardRef((_ref, ref) => {
|
|
1056
|
-
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1112
|
+
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$49);
|
|
1057
1113
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1058
1114
|
ref,
|
|
1059
1115
|
required,
|
|
@@ -1066,13 +1122,13 @@ const TelInput$1 = forwardRef((_ref, ref) => {
|
|
|
1066
1122
|
|
|
1067
1123
|
//#endregion
|
|
1068
1124
|
//#region src/components/Input/Primitives/Text/TextInput.tsx
|
|
1069
|
-
const _excluded$
|
|
1125
|
+
const _excluded$48 = [
|
|
1070
1126
|
"erroneous",
|
|
1071
1127
|
"required",
|
|
1072
1128
|
"autoComplete"
|
|
1073
1129
|
];
|
|
1074
1130
|
const TextInput$1 = forwardRef((_ref, ref) => {
|
|
1075
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1131
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$48);
|
|
1076
1132
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1077
1133
|
ref,
|
|
1078
1134
|
type: "text",
|
|
@@ -1084,13 +1140,13 @@ const TextInput$1 = forwardRef((_ref, ref) => {
|
|
|
1084
1140
|
|
|
1085
1141
|
//#endregion
|
|
1086
1142
|
//#region src/components/Input/Primitives/Textarea/TextareaInput.tsx
|
|
1087
|
-
const _excluded$
|
|
1143
|
+
const _excluded$47 = [
|
|
1088
1144
|
"erroneous",
|
|
1089
1145
|
"required",
|
|
1090
1146
|
"autoComplete"
|
|
1091
1147
|
];
|
|
1092
1148
|
const TextareaInput$1 = forwardRef((_ref, ref) => {
|
|
1093
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1149
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$47);
|
|
1094
1150
|
return /* @__PURE__ */ jsx("textarea", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1095
1151
|
ref,
|
|
1096
1152
|
required,
|
|
@@ -1101,13 +1157,13 @@ const TextareaInput$1 = forwardRef((_ref, ref) => {
|
|
|
1101
1157
|
|
|
1102
1158
|
//#endregion
|
|
1103
1159
|
//#region src/components/Input/Primitives/Url/UrlInput.tsx
|
|
1104
|
-
const _excluded$
|
|
1160
|
+
const _excluded$46 = [
|
|
1105
1161
|
"erroneous",
|
|
1106
1162
|
"required",
|
|
1107
1163
|
"autoComplete"
|
|
1108
1164
|
];
|
|
1109
1165
|
const UrlInput$1 = forwardRef((_ref, ref) => {
|
|
1110
|
-
let { erroneous = false, required, autoComplete = "url" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1166
|
+
let { erroneous = false, required, autoComplete = "url" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$46);
|
|
1111
1167
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1112
1168
|
required,
|
|
1113
1169
|
autoComplete,
|
|
@@ -1139,7 +1195,7 @@ var Primitives_exports = /* @__PURE__ */ __export({
|
|
|
1139
1195
|
|
|
1140
1196
|
//#endregion
|
|
1141
1197
|
//#region src/components/Input/Checkbox/index.tsx
|
|
1142
|
-
const _excluded$
|
|
1198
|
+
const _excluded$45 = [
|
|
1143
1199
|
"id",
|
|
1144
1200
|
"error",
|
|
1145
1201
|
"disabled",
|
|
@@ -1149,7 +1205,7 @@ const _excluded$46 = [
|
|
|
1149
1205
|
"style"
|
|
1150
1206
|
];
|
|
1151
1207
|
const CheckboxInput = (_ref) => {
|
|
1152
|
-
let { id, error = false, disabled = false, hasOptionalLabel = false, label, className, style } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1208
|
+
let { id, error = false, disabled = false, hasOptionalLabel = false, label, className, style } = _ref, rest = _objectWithoutProperties(_ref, _excluded$45);
|
|
1153
1209
|
const isErrorString = typeof error === "string";
|
|
1154
1210
|
const errorId = `${id}-error`;
|
|
1155
1211
|
const describedBy = rest["aria-describedby"] ? [rest["aria-describedby"]] : [];
|
|
@@ -1196,7 +1252,6 @@ const FieldsetRoot = ({ children, id, className, style, error = false }) => {
|
|
|
1196
1252
|
className: cn(`kern-fieldset`, error && "kern-fieldset--error", className),
|
|
1197
1253
|
style,
|
|
1198
1254
|
id,
|
|
1199
|
-
role: "group",
|
|
1200
1255
|
"aria-describedby": hintText,
|
|
1201
1256
|
children
|
|
1202
1257
|
});
|
|
@@ -1215,7 +1270,7 @@ var Fieldset_exports = /* @__PURE__ */ __export({
|
|
|
1215
1270
|
|
|
1216
1271
|
//#endregion
|
|
1217
1272
|
//#region src/components/Grid/Column.tsx
|
|
1218
|
-
const _excluded$
|
|
1273
|
+
const _excluded$44 = [
|
|
1219
1274
|
"children",
|
|
1220
1275
|
"breakpoint",
|
|
1221
1276
|
"width",
|
|
@@ -1225,7 +1280,7 @@ const _excluded$45 = [
|
|
|
1225
1280
|
"className"
|
|
1226
1281
|
];
|
|
1227
1282
|
const GridColumn = (_ref) => {
|
|
1228
|
-
let { children, breakpoint, width, isOffset, offsetWidth, alignItem, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1283
|
+
let { children, breakpoint, width, isOffset, offsetWidth, alignItem, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$44);
|
|
1229
1284
|
const classes = cn(...[
|
|
1230
1285
|
isOffset && offsetWidth && breakpoint && width ? `kern-col-${width + offsetWidth} kern-col-${breakpoint}-${width} kern-col-${breakpoint}-offset-${offsetWidth}` : breakpoint && width ? `kern-col-${breakpoint}-${width}` : width ? `kern-col-${width}` : "kern-col",
|
|
1231
1286
|
alignItem ? `kern-align-self-${alignItem}` : "",
|
|
@@ -1240,13 +1295,13 @@ GridColumn.displayName = "Grid.Column";
|
|
|
1240
1295
|
|
|
1241
1296
|
//#endregion
|
|
1242
1297
|
//#region src/components/Grid/Root.tsx
|
|
1243
|
-
const _excluded$
|
|
1298
|
+
const _excluded$43 = [
|
|
1244
1299
|
"type",
|
|
1245
1300
|
"className",
|
|
1246
1301
|
"children"
|
|
1247
1302
|
];
|
|
1248
1303
|
const GridRoot = (_ref) => {
|
|
1249
|
-
let { type, className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1304
|
+
let { type, className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$43);
|
|
1250
1305
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1251
1306
|
className: cn(type ? `kern-container-${type}` : "kern-container", className),
|
|
1252
1307
|
children
|
|
@@ -1256,14 +1311,14 @@ GridRoot.displayName = "Grid.Root";
|
|
|
1256
1311
|
|
|
1257
1312
|
//#endregion
|
|
1258
1313
|
//#region src/components/Grid/Row.tsx
|
|
1259
|
-
const _excluded$
|
|
1314
|
+
const _excluded$42 = [
|
|
1260
1315
|
"children",
|
|
1261
1316
|
"alignItems",
|
|
1262
1317
|
"horizontalAlignment",
|
|
1263
1318
|
"className"
|
|
1264
1319
|
];
|
|
1265
1320
|
const GridRow = (_ref) => {
|
|
1266
|
-
let { children, alignItems, horizontalAlignment, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1321
|
+
let { children, alignItems, horizontalAlignment, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$42);
|
|
1267
1322
|
const rowClasses = cn("kern-row", alignItems && `kern-align-items-${alignItems}`, horizontalAlignment && `kern-justify-content-${horizontalAlignment}`, className);
|
|
1268
1323
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1269
1324
|
className: rowClasses,
|
|
@@ -1282,16 +1337,17 @@ var Grid_exports = /* @__PURE__ */ __export({
|
|
|
1282
1337
|
|
|
1283
1338
|
//#endregion
|
|
1284
1339
|
//#region src/components/Lists/Root.tsx
|
|
1285
|
-
const _excluded$
|
|
1340
|
+
const _excluded$41 = [
|
|
1286
1341
|
"children",
|
|
1287
1342
|
"className",
|
|
1288
1343
|
"size",
|
|
1289
|
-
"type"
|
|
1344
|
+
"type",
|
|
1345
|
+
"horizontal"
|
|
1290
1346
|
];
|
|
1291
1347
|
const ListsRoot = (_ref) => {
|
|
1292
|
-
let { children, className, size = "default", type = "bullet" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1348
|
+
let { children, className, size = "default", type = "bullet", horizontal = false } = _ref, rest = _objectWithoutProperties(_ref, _excluded$41);
|
|
1293
1349
|
const Component = type === "number" ? "ol" : "ul";
|
|
1294
|
-
const listClasses = cn("kern-list", size !== "default" && `kern-list--${size}`, type && `kern-list--${type}`, className);
|
|
1350
|
+
const listClasses = cn("kern-list", size !== "default" && `kern-list--${size}`, type && `kern-list--${type}`, horizontal && "kern-list--horizontal", className);
|
|
1295
1351
|
return /* @__PURE__ */ jsx(Component, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1296
1352
|
className: listClasses,
|
|
1297
1353
|
children
|
|
@@ -1310,13 +1366,13 @@ ListsItem.displayName = "Lists.Item";
|
|
|
1310
1366
|
|
|
1311
1367
|
//#endregion
|
|
1312
1368
|
//#region src/components/Lists/Bullet.tsx
|
|
1313
|
-
const _excluded$
|
|
1369
|
+
const _excluded$40 = [
|
|
1314
1370
|
"title",
|
|
1315
1371
|
"items",
|
|
1316
1372
|
"className"
|
|
1317
1373
|
];
|
|
1318
1374
|
const ListsBullet = (_ref) => {
|
|
1319
|
-
let { title, items, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1375
|
+
let { title, items, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$40);
|
|
1320
1376
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1321
1377
|
className: cn(className),
|
|
1322
1378
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -1332,14 +1388,14 @@ ListsBullet.displayName = "Lists.Bullet";
|
|
|
1332
1388
|
|
|
1333
1389
|
//#endregion
|
|
1334
1390
|
//#region src/components/Lists/Number.tsx
|
|
1335
|
-
const _excluded$
|
|
1391
|
+
const _excluded$39 = [
|
|
1336
1392
|
"children",
|
|
1337
1393
|
"className",
|
|
1338
1394
|
"size",
|
|
1339
1395
|
"type"
|
|
1340
1396
|
];
|
|
1341
1397
|
const ListsNumber = (_ref) => {
|
|
1342
|
-
let { children, className, size = "default", type } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1398
|
+
let { children, className, size = "default", type } = _ref, rest = _objectWithoutProperties(_ref, _excluded$39);
|
|
1343
1399
|
return /* @__PURE__ */ jsx("ol", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1344
1400
|
className: cn("kern-list", size && `kern-list--${size}`, type && `kern-list--${type}`, className),
|
|
1345
1401
|
children
|
|
@@ -1358,7 +1414,7 @@ var Lists_exports = /* @__PURE__ */ __export({
|
|
|
1358
1414
|
|
|
1359
1415
|
//#endregion
|
|
1360
1416
|
//#region src/components/Progress/Root.tsx
|
|
1361
|
-
const _excluded$
|
|
1417
|
+
const _excluded$38 = [
|
|
1362
1418
|
"value",
|
|
1363
1419
|
"max",
|
|
1364
1420
|
"className",
|
|
@@ -1372,7 +1428,7 @@ const useProgressContext = () => {
|
|
|
1372
1428
|
return context;
|
|
1373
1429
|
};
|
|
1374
1430
|
const ProgressRoot = (_ref) => {
|
|
1375
|
-
let { value = 0, max = 100, className, children, progressId: propProgressId } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1431
|
+
let { value = 0, max = 100, className, children, progressId: propProgressId } = _ref, rest = _objectWithoutProperties(_ref, _excluded$38);
|
|
1376
1432
|
const percentage = Math.round(value / max * 100);
|
|
1377
1433
|
const progressId = React.useMemo(() => propProgressId || `progress-${Math.random().toString(36).slice(2, 11)}`, [propProgressId]);
|
|
1378
1434
|
const contextValue = {
|
|
@@ -1393,39 +1449,19 @@ ProgressRoot.displayName = "Progress.Root";
|
|
|
1393
1449
|
|
|
1394
1450
|
//#endregion
|
|
1395
1451
|
//#region src/components/Progress/Bar.tsx
|
|
1396
|
-
const _excluded$
|
|
1452
|
+
const _excluded$37 = ["className"];
|
|
1397
1453
|
const ProgressBar = (_ref) => {
|
|
1398
|
-
let { className
|
|
1454
|
+
let { className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$37);
|
|
1399
1455
|
const { value, max, progressId } = useProgressContext();
|
|
1400
1456
|
return /* @__PURE__ */ jsx("progress", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1401
1457
|
id: progressId,
|
|
1458
|
+
className,
|
|
1402
1459
|
value,
|
|
1403
|
-
|
|
1404
|
-
max,
|
|
1405
|
-
className
|
|
1460
|
+
max
|
|
1406
1461
|
}));
|
|
1407
1462
|
};
|
|
1408
1463
|
ProgressBar.displayName = "Progress.Bar";
|
|
1409
1464
|
|
|
1410
|
-
//#endregion
|
|
1411
|
-
//#region src/components/Progress/Cancel.tsx
|
|
1412
|
-
const _excluded$37 = ["children", "onCancel"];
|
|
1413
|
-
const ProgressCancel = (_ref) => {
|
|
1414
|
-
let { children = "Abbrechen", onCancel } = _ref, rest = _objectWithoutProperties(_ref, _excluded$37);
|
|
1415
|
-
return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1416
|
-
variant: "tertiary",
|
|
1417
|
-
text: typeof children === "string" ? children : void 0,
|
|
1418
|
-
icon: {
|
|
1419
|
-
name: "close",
|
|
1420
|
-
size: "small"
|
|
1421
|
-
},
|
|
1422
|
-
iconLeft: true,
|
|
1423
|
-
onClick: onCancel,
|
|
1424
|
-
children: typeof children !== "string" ? children : void 0
|
|
1425
|
-
}));
|
|
1426
|
-
};
|
|
1427
|
-
ProgressCancel.displayName = "Progress.Cancel";
|
|
1428
|
-
|
|
1429
1465
|
//#endregion
|
|
1430
1466
|
//#region src/components/Progress/Header.tsx
|
|
1431
1467
|
const ProgressHeader = ({ className, style, children }) => {
|
|
@@ -1456,27 +1492,12 @@ const ProgressLabel = (_ref) => {
|
|
|
1456
1492
|
};
|
|
1457
1493
|
ProgressLabel.displayName = "Progress.Label";
|
|
1458
1494
|
|
|
1459
|
-
//#endregion
|
|
1460
|
-
//#region src/components/Progress/Percentage.tsx
|
|
1461
|
-
const ProgressPercentage = ({ className, style, formatter }) => {
|
|
1462
|
-
const { percentage } = useProgressContext();
|
|
1463
|
-
const displayText = formatter ? formatter(percentage) : `${percentage}%`;
|
|
1464
|
-
return /* @__PURE__ */ jsx("span", {
|
|
1465
|
-
className: cn("kern-body--small", className),
|
|
1466
|
-
style: _objectSpread2({ color: "var(--kern-color-layout-text-muted, #404565)" }, style),
|
|
1467
|
-
children: displayText
|
|
1468
|
-
});
|
|
1469
|
-
};
|
|
1470
|
-
ProgressPercentage.displayName = "Progress.Percentage";
|
|
1471
|
-
|
|
1472
1495
|
//#endregion
|
|
1473
1496
|
//#region src/components/Progress/index.ts
|
|
1474
1497
|
var Progress_exports = /* @__PURE__ */ __export({
|
|
1475
1498
|
Bar: () => ProgressBar,
|
|
1476
|
-
Cancel: () => ProgressCancel,
|
|
1477
1499
|
Header: () => ProgressHeader,
|
|
1478
1500
|
Label: () => ProgressLabel,
|
|
1479
|
-
Percentage: () => ProgressPercentage,
|
|
1480
1501
|
Root: () => ProgressRoot
|
|
1481
1502
|
});
|
|
1482
1503
|
|
|
@@ -1910,23 +1931,39 @@ const _excluded$18 = [
|
|
|
1910
1931
|
"variant",
|
|
1911
1932
|
"className",
|
|
1912
1933
|
"icon",
|
|
1934
|
+
"iconSize",
|
|
1913
1935
|
"showIcon"
|
|
1914
1936
|
];
|
|
1915
1937
|
const Badge = (_ref) => {
|
|
1916
|
-
let { title, variant, className, icon, showIcon = false } = _ref, rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
1938
|
+
let { title, variant, className, icon, iconSize = "default", showIcon = false } = _ref, rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
1939
|
+
const customIconElement = icon ? /* @__PURE__ */ jsx("span", {
|
|
1940
|
+
className: cn("kern-icon", `kern-icon--${iconSize}`),
|
|
1941
|
+
style: {
|
|
1942
|
+
mask: "none",
|
|
1943
|
+
WebkitMask: "none",
|
|
1944
|
+
background: "none",
|
|
1945
|
+
display: "inline-flex"
|
|
1946
|
+
},
|
|
1947
|
+
"aria-hidden": true,
|
|
1948
|
+
children: icon
|
|
1949
|
+
}) : null;
|
|
1917
1950
|
return /* @__PURE__ */ jsxs("span", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1918
1951
|
role: "status",
|
|
1919
1952
|
className: cn(`kern-badge kern-badge--${variant}`, className),
|
|
1920
|
-
children: [
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1953
|
+
children: [
|
|
1954
|
+
customIconElement,
|
|
1955
|
+
!icon && showIcon && /* @__PURE__ */ jsx(Icon, {
|
|
1956
|
+
"aria-hidden": true,
|
|
1957
|
+
name: variant
|
|
1958
|
+
}),
|
|
1959
|
+
/* @__PURE__ */ jsxs("span", {
|
|
1960
|
+
className: "kern-label kern-label-small",
|
|
1961
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
1962
|
+
className: "kern-label kern-sr-only",
|
|
1963
|
+
children: variant.replace(/^./, (c) => c.toUpperCase())
|
|
1964
|
+
}), title]
|
|
1965
|
+
})
|
|
1966
|
+
]
|
|
1930
1967
|
}));
|
|
1931
1968
|
};
|
|
1932
1969
|
|
|
@@ -2477,6 +2514,16 @@ const Kopfzeile = (_ref) => {
|
|
|
2477
2514
|
})), customStyle] });
|
|
2478
2515
|
};
|
|
2479
2516
|
|
|
2517
|
+
//#endregion
|
|
2518
|
+
//#region src/components/LinkButton/LinkButton.tsx
|
|
2519
|
+
const LinkButton = (props) => {
|
|
2520
|
+
if (!props.href) {
|
|
2521
|
+
console.error("href ist für LinkButton erforderlich");
|
|
2522
|
+
return null;
|
|
2523
|
+
}
|
|
2524
|
+
return /* @__PURE__ */ jsx(Button, _objectSpread2({ as: "a" }, props));
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2480
2527
|
//#endregion
|
|
2481
2528
|
//#region src/components/Loader/Loader.tsx
|
|
2482
2529
|
const _excluded$3 = [
|
|
@@ -2622,5 +2669,5 @@ const Summary = Object.assign(SummaryRoot, Summary_exports);
|
|
|
2622
2669
|
const TaskList = Object.assign(TaskListRoot, TaskList_exports);
|
|
2623
2670
|
|
|
2624
2671
|
//#endregion
|
|
2625
|
-
export { Accordion, Alert, Badge, Body, Button, Card, CheckboxInput, DateInput, DescriptionList, Dialog, Divider, EmailInput, Fieldset, FileInput, Grid, Heading, Icon, InputPrimitive, Kopfzeile, Label, Link, Lists, Loader, NumberInput, PasswordInput, Preline, Progress, RadioInput, SelectInput, Subline, Summary, Table, TaskList, TelInput, TextInput, TextareaInput, ThemeProvider, Title, UrlInput };
|
|
2672
|
+
export { Accordion, Alert, Badge, Body, Button, Card, CheckboxInput, DateInput, DescriptionList, Dialog, Divider, EmailInput, Fieldset, FileInput, Grid, Heading, Icon, InputPrimitive, Kopfzeile, Label, Link, LinkButton, Lists, Loader, NumberInput, PasswordInput, Preline, Progress, RadioInput, SelectInput, Subline, Summary, Table, TaskList, TelInput, TextInput, TextareaInput, ThemeProvider, Title, UrlInput };
|
|
2626
2673
|
//# sourceMappingURL=index.js.map
|