@publicplan/kern-react-kit 1.3.1 → 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.
- package/dist/index.cjs +118 -153
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -36
- package/dist/index.d.ts +24 -36
- package/dist/index.js +118 -153
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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",
|
|
@@ -272,7 +272,7 @@ const getIcon$1 = (iconProps) => iconProps ? /* @__PURE__ */ jsx(Icon, {
|
|
|
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), {}, {
|
|
@@ -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,7 +548,7 @@ 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",
|
|
@@ -570,7 +570,7 @@ const IconOnlyLabel = ({ labelText }) => {
|
|
|
570
570
|
});
|
|
571
571
|
};
|
|
572
572
|
const Button = (_ref) => {
|
|
573
|
-
let { variant = "primary", isBlock, icon, iconOnly, iconLeft, text, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
573
|
+
let { variant = "primary", isBlock, icon, iconOnly, iconLeft, text, children, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$70);
|
|
574
574
|
const classes = cn("kern-btn", isBlock && "kern-btn--block", `kern-btn--${variant}`, className);
|
|
575
575
|
const iconElement = getIcon(icon);
|
|
576
576
|
if (iconOnly) return /* @__PURE__ */ jsxs("button", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -602,9 +602,9 @@ const useDialogContext = () => {
|
|
|
602
602
|
|
|
603
603
|
//#endregion
|
|
604
604
|
//#region src/components/Dialog/Button.tsx
|
|
605
|
-
const _excluded$
|
|
605
|
+
const _excluded$69 = ["onClick", "title"];
|
|
606
606
|
const DialogButton = (_ref) => {
|
|
607
|
-
let { onClick, title } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
607
|
+
let { onClick, title } = _ref, props = _objectWithoutProperties(_ref, _excluded$69);
|
|
608
608
|
const { closeDialog } = useDialogContext();
|
|
609
609
|
return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
610
610
|
text: title,
|
|
@@ -618,9 +618,9 @@ DialogButton.displayName = "Dialog.Button";
|
|
|
618
618
|
|
|
619
619
|
//#endregion
|
|
620
620
|
//#region src/components/Dialog/Content.tsx
|
|
621
|
-
const _excluded$
|
|
621
|
+
const _excluded$68 = ["className", "children"];
|
|
622
622
|
const DialogContent = (_ref) => {
|
|
623
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
623
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$68);
|
|
624
624
|
return /* @__PURE__ */ jsx("section", _objectSpread2(_objectSpread2({ className: cn("kern-dialog__body", className) }, rest), {}, { children: typeof children === "string" ? /* @__PURE__ */ jsx("p", {
|
|
625
625
|
className: "kern-body",
|
|
626
626
|
children
|
|
@@ -630,9 +630,9 @@ DialogContent.displayName = "Dialog.Content";
|
|
|
630
630
|
|
|
631
631
|
//#endregion
|
|
632
632
|
//#region src/components/Dialog/Footer.tsx
|
|
633
|
-
const _excluded$
|
|
633
|
+
const _excluded$67 = ["className", "children"];
|
|
634
634
|
const DialogFooter = (_ref) => {
|
|
635
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
635
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$67);
|
|
636
636
|
return /* @__PURE__ */ jsx("footer", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
637
637
|
className: cn("kern-dialog__footer", className),
|
|
638
638
|
children
|
|
@@ -642,14 +642,14 @@ DialogFooter.displayName = "Dialog.Footer";
|
|
|
642
642
|
|
|
643
643
|
//#endregion
|
|
644
644
|
//#region src/components/Dialog/Header.tsx
|
|
645
|
-
const _excluded$
|
|
645
|
+
const _excluded$66 = [
|
|
646
646
|
"dialogTitle",
|
|
647
647
|
"hasCloseButton",
|
|
648
648
|
"aria-label",
|
|
649
649
|
"className"
|
|
650
650
|
];
|
|
651
651
|
const DialogHeader = (_ref) => {
|
|
652
|
-
let { dialogTitle, hasCloseButton = true, "aria-label": ariaLabel = "Schließen", className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
652
|
+
let { dialogTitle, hasCloseButton = true, "aria-label": ariaLabel = "Schließen", className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$66);
|
|
653
653
|
const { closeDialog, id } = useDialogContext();
|
|
654
654
|
const headerClass = cn("kern-dialog__header", className);
|
|
655
655
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -677,9 +677,9 @@ DialogHeader.displayName = "Dialog.Header";
|
|
|
677
677
|
|
|
678
678
|
//#endregion
|
|
679
679
|
//#region src/components/Dialog/Modal.tsx
|
|
680
|
-
const _excluded$
|
|
680
|
+
const _excluded$65 = ["className", "children"];
|
|
681
681
|
const DialogModal = (_ref) => {
|
|
682
|
-
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
682
|
+
let { className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$65);
|
|
683
683
|
const { dialogRef, closeDialog, isOpen, disableOverlayClose, id } = useDialogContext();
|
|
684
684
|
const handleOverlayClick = (e) => {
|
|
685
685
|
if (disableOverlayClose && e.target === dialogRef.current) e.preventDefault();
|
|
@@ -732,13 +732,13 @@ DialogModal.displayName = "Dialog.Modal";
|
|
|
732
732
|
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/components/Dialog/Root.tsx
|
|
735
|
-
const _excluded$
|
|
735
|
+
const _excluded$64 = [
|
|
736
736
|
"disableOverlayClose",
|
|
737
737
|
"children",
|
|
738
738
|
"id"
|
|
739
739
|
];
|
|
740
740
|
const DialogRoot = (_ref) => {
|
|
741
|
-
let { disableOverlayClose = false, children, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
741
|
+
let { disableOverlayClose = false, children, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$64);
|
|
742
742
|
const [isOpen, setIsOpen] = useState(false);
|
|
743
743
|
const dialogRef = useRef(null);
|
|
744
744
|
const openDialog = () => {
|
|
@@ -825,13 +825,13 @@ FieldsetContent.displayName = "Fieldset.Content";
|
|
|
825
825
|
|
|
826
826
|
//#endregion
|
|
827
827
|
//#region src/components/Fieldset/Error.tsx
|
|
828
|
-
const _excluded$
|
|
828
|
+
const _excluded$63 = [
|
|
829
829
|
"children",
|
|
830
830
|
"className",
|
|
831
831
|
"id"
|
|
832
832
|
];
|
|
833
833
|
const FieldsetError = (_ref) => {
|
|
834
|
-
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
834
|
+
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$63);
|
|
835
835
|
const errorId = id || `error-${Math.random().toString(36).substr(2, 9)}`;
|
|
836
836
|
return /* @__PURE__ */ jsxs("p", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
837
837
|
className: cn(`kern-error`, className),
|
|
@@ -850,13 +850,13 @@ FieldsetError.displayName = "Fieldset.Error";
|
|
|
850
850
|
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region src/components/Fieldset/Hint.tsx
|
|
853
|
-
const _excluded$
|
|
853
|
+
const _excluded$62 = [
|
|
854
854
|
"children",
|
|
855
855
|
"className",
|
|
856
856
|
"id"
|
|
857
857
|
];
|
|
858
858
|
const FieldsetHint = (_ref) => {
|
|
859
|
-
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
859
|
+
let { children, className, id } = _ref, rest = _objectWithoutProperties(_ref, _excluded$62);
|
|
860
860
|
const hintId = id || `hint-${Math.random().toString(36).substr(2, 9)}`;
|
|
861
861
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
862
862
|
className: cn(`kern-hint`, className),
|
|
@@ -868,9 +868,9 @@ FieldsetHint.displayName = "Fieldset.Hint";
|
|
|
868
868
|
|
|
869
869
|
//#endregion
|
|
870
870
|
//#region src/components/Fieldset/Legend.tsx
|
|
871
|
-
const _excluded$
|
|
871
|
+
const _excluded$61 = ["children", "hasOptionalLabel"];
|
|
872
872
|
const FieldsetLegend = (_ref) => {
|
|
873
|
-
let { children, hasOptionalLabel } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
873
|
+
let { children, hasOptionalLabel } = _ref, rest = _objectWithoutProperties(_ref, _excluded$61);
|
|
874
874
|
return /* @__PURE__ */ jsxs("legend", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
875
875
|
className: cn(`kern-label`, rest.className),
|
|
876
876
|
children: [children, hasOptionalLabel && /* @__PURE__ */ jsx("span", {
|
|
@@ -883,9 +883,9 @@ FieldsetLegend.displayName = "Fieldset.Legend";
|
|
|
883
883
|
|
|
884
884
|
//#endregion
|
|
885
885
|
//#region src/components/Input/Primitives/Checkbox/CheckboxInput.tsx
|
|
886
|
-
const _excluded$
|
|
886
|
+
const _excluded$60 = ["erroneous", "required"];
|
|
887
887
|
const CheckboxInput$1 = forwardRef((_ref, ref) => {
|
|
888
|
-
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
888
|
+
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$60);
|
|
889
889
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
890
890
|
ref,
|
|
891
891
|
type: "checkbox",
|
|
@@ -896,13 +896,13 @@ const CheckboxInput$1 = forwardRef((_ref, ref) => {
|
|
|
896
896
|
|
|
897
897
|
//#endregion
|
|
898
898
|
//#region src/components/Input/Primitives/Email/EmailInput.tsx
|
|
899
|
-
const _excluded$
|
|
899
|
+
const _excluded$59 = [
|
|
900
900
|
"erroneous",
|
|
901
901
|
"autoComplete",
|
|
902
902
|
"required"
|
|
903
903
|
];
|
|
904
904
|
const EmailInput$1 = forwardRef((_ref, ref) => {
|
|
905
|
-
let { erroneous = false, autoComplete = "email", required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
905
|
+
let { erroneous = false, autoComplete = "email", required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$59);
|
|
906
906
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
907
907
|
ref,
|
|
908
908
|
required,
|
|
@@ -914,9 +914,9 @@ const EmailInput$1 = forwardRef((_ref, ref) => {
|
|
|
914
914
|
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region src/components/Input/Primitives/Error.tsx
|
|
917
|
-
const _excluded$
|
|
917
|
+
const _excluded$58 = ["className", "message"];
|
|
918
918
|
const InputError = (_ref) => {
|
|
919
|
-
let { className, message } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
919
|
+
let { className, message } = _ref, props = _objectWithoutProperties(_ref, _excluded$58);
|
|
920
920
|
return /* @__PURE__ */ jsxs("p", _objectSpread2(_objectSpread2({
|
|
921
921
|
className: cn("kern-error", className),
|
|
922
922
|
role: "alert"
|
|
@@ -928,14 +928,14 @@ const InputError = (_ref) => {
|
|
|
928
928
|
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region src/components/Input/Primitives/File/FileInput.tsx
|
|
931
|
-
const _excluded$
|
|
931
|
+
const _excluded$57 = [
|
|
932
932
|
"supportedFormats",
|
|
933
933
|
"erroneous",
|
|
934
934
|
"required"
|
|
935
935
|
];
|
|
936
936
|
const FileInput$1 = forwardRef((_ref, ref) => {
|
|
937
937
|
var _rest$accept;
|
|
938
|
-
let { supportedFormats = [], erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
938
|
+
let { supportedFormats = [], erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$57);
|
|
939
939
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
940
940
|
ref,
|
|
941
941
|
type: "file",
|
|
@@ -947,15 +947,15 @@ const FileInput$1 = forwardRef((_ref, ref) => {
|
|
|
947
947
|
|
|
948
948
|
//#endregion
|
|
949
949
|
//#region src/components/Input/Primitives/Hint.tsx
|
|
950
|
-
const _excluded$
|
|
950
|
+
const _excluded$56 = ["className", "children"];
|
|
951
951
|
const Hint = (_ref) => {
|
|
952
|
-
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
952
|
+
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$56);
|
|
953
953
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({ className: cn("kern-hint", className) }, props), {}, { children }));
|
|
954
954
|
};
|
|
955
955
|
|
|
956
956
|
//#endregion
|
|
957
957
|
//#region src/components/Label/Label.tsx
|
|
958
|
-
const _excluded$
|
|
958
|
+
const _excluded$55 = [
|
|
959
959
|
"variant",
|
|
960
960
|
"textWrapper",
|
|
961
961
|
"className",
|
|
@@ -963,7 +963,7 @@ const _excluded$56 = [
|
|
|
963
963
|
"text"
|
|
964
964
|
];
|
|
965
965
|
const Label = (_ref) => {
|
|
966
|
-
let { variant = "default", textWrapper = "label", className, children, text } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
966
|
+
let { variant = "default", textWrapper = "label", className, children, text } = _ref, rest = _objectWithoutProperties(_ref, _excluded$55);
|
|
967
967
|
const Wrapper = textWrapper;
|
|
968
968
|
const labelClass = cn("kern-label", variant ? `kern-label--${variant}` : "", className, className);
|
|
969
969
|
return /* @__PURE__ */ jsx(Wrapper, _objectSpread2(_objectSpread2({ className: labelClass }, rest), {}, { children: text || children }));
|
|
@@ -971,9 +971,9 @@ const Label = (_ref) => {
|
|
|
971
971
|
|
|
972
972
|
//#endregion
|
|
973
973
|
//#region src/components/Input/Primitives/Label.tsx
|
|
974
|
-
const _excluded$
|
|
974
|
+
const _excluded$54 = ["children", "isOptional"];
|
|
975
975
|
const Label$1 = (_ref) => {
|
|
976
|
-
let { children, isOptional } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
976
|
+
let { children, isOptional } = _ref, props = _objectWithoutProperties(_ref, _excluded$54);
|
|
977
977
|
return /* @__PURE__ */ jsxs(Label, _objectSpread2(_objectSpread2({ textWrapper: "label" }, props), {}, { children: [children, isOptional && /* @__PURE__ */ jsx("span", {
|
|
978
978
|
className: "kern-label__optional",
|
|
979
979
|
children: "– Optional"
|
|
@@ -982,13 +982,13 @@ const Label$1 = (_ref) => {
|
|
|
982
982
|
|
|
983
983
|
//#endregion
|
|
984
984
|
//#region src/components/Input/Primitives/Password/PasswordInput.tsx
|
|
985
|
-
const _excluded$
|
|
985
|
+
const _excluded$53 = [
|
|
986
986
|
"erroneous",
|
|
987
987
|
"required",
|
|
988
988
|
"autoComplete"
|
|
989
989
|
];
|
|
990
990
|
const PasswordInput$1 = forwardRef((_ref, ref) => {
|
|
991
|
-
let { erroneous = false, required, autoComplete = "password" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
991
|
+
let { erroneous = false, required, autoComplete = "password" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$53);
|
|
992
992
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
993
993
|
ref,
|
|
994
994
|
type: "password",
|
|
@@ -1000,13 +1000,13 @@ const PasswordInput$1 = forwardRef((_ref, ref) => {
|
|
|
1000
1000
|
|
|
1001
1001
|
//#endregion
|
|
1002
1002
|
//#region src/components/Input/Primitives/Radio/RadioInput.tsx
|
|
1003
|
-
const _excluded$
|
|
1003
|
+
const _excluded$52 = [
|
|
1004
1004
|
"erroneous",
|
|
1005
1005
|
"required",
|
|
1006
1006
|
"autoComplete"
|
|
1007
1007
|
];
|
|
1008
1008
|
const RadioInput$1 = forwardRef((_ref, ref) => {
|
|
1009
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1009
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$52);
|
|
1010
1010
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1011
1011
|
ref,
|
|
1012
1012
|
type: "radio",
|
|
@@ -1018,22 +1018,22 @@ const RadioInput$1 = forwardRef((_ref, ref) => {
|
|
|
1018
1018
|
|
|
1019
1019
|
//#endregion
|
|
1020
1020
|
//#region src/components/Input/Primitives/Root.tsx
|
|
1021
|
-
const _excluded$
|
|
1021
|
+
const _excluded$51 = ["className", "erroneous"];
|
|
1022
1022
|
const Root = (_ref) => {
|
|
1023
|
-
let { className, erroneous } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1023
|
+
let { className, erroneous } = _ref, props = _objectWithoutProperties(_ref, _excluded$51);
|
|
1024
1024
|
return /* @__PURE__ */ jsx("div", _objectSpread2({ className: cn("kern-form-input", erroneous && "kern-form-input--error", className) }, props));
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
1027
|
//#endregion
|
|
1028
1028
|
//#region src/components/Input/Primitives/Select/SelectInput.tsx
|
|
1029
|
-
const _excluded$
|
|
1029
|
+
const _excluded$50 = [
|
|
1030
1030
|
"erroneous",
|
|
1031
1031
|
"required",
|
|
1032
1032
|
"autoComplete",
|
|
1033
1033
|
"options"
|
|
1034
1034
|
];
|
|
1035
1035
|
const SelectInput$1 = forwardRef((_ref, ref) => {
|
|
1036
|
-
let { erroneous = false, required, autoComplete = "", options = [] } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1036
|
+
let { erroneous = false, required, autoComplete = "", options = [] } = _ref, rest = _objectWithoutProperties(_ref, _excluded$50);
|
|
1037
1037
|
return /* @__PURE__ */ jsx("div", {
|
|
1038
1038
|
className: "kern-form-input__select-wrapper",
|
|
1039
1039
|
children: /* @__PURE__ */ jsx("select", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -1051,9 +1051,9 @@ const SelectInput$1 = forwardRef((_ref, ref) => {
|
|
|
1051
1051
|
|
|
1052
1052
|
//#endregion
|
|
1053
1053
|
//#region src/components/Input/Primitives/Tel/TelInput.tsx
|
|
1054
|
-
const _excluded$
|
|
1054
|
+
const _excluded$49 = ["erroneous", "required"];
|
|
1055
1055
|
const TelInput$1 = forwardRef((_ref, ref) => {
|
|
1056
|
-
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1056
|
+
let { erroneous = false, required } = _ref, rest = _objectWithoutProperties(_ref, _excluded$49);
|
|
1057
1057
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1058
1058
|
ref,
|
|
1059
1059
|
required,
|
|
@@ -1066,13 +1066,13 @@ const TelInput$1 = forwardRef((_ref, ref) => {
|
|
|
1066
1066
|
|
|
1067
1067
|
//#endregion
|
|
1068
1068
|
//#region src/components/Input/Primitives/Text/TextInput.tsx
|
|
1069
|
-
const _excluded$
|
|
1069
|
+
const _excluded$48 = [
|
|
1070
1070
|
"erroneous",
|
|
1071
1071
|
"required",
|
|
1072
1072
|
"autoComplete"
|
|
1073
1073
|
];
|
|
1074
1074
|
const TextInput$1 = forwardRef((_ref, ref) => {
|
|
1075
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1075
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$48);
|
|
1076
1076
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1077
1077
|
ref,
|
|
1078
1078
|
type: "text",
|
|
@@ -1084,13 +1084,13 @@ const TextInput$1 = forwardRef((_ref, ref) => {
|
|
|
1084
1084
|
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/components/Input/Primitives/Textarea/TextareaInput.tsx
|
|
1087
|
-
const _excluded$
|
|
1087
|
+
const _excluded$47 = [
|
|
1088
1088
|
"erroneous",
|
|
1089
1089
|
"required",
|
|
1090
1090
|
"autoComplete"
|
|
1091
1091
|
];
|
|
1092
1092
|
const TextareaInput$1 = forwardRef((_ref, ref) => {
|
|
1093
|
-
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1093
|
+
let { erroneous = false, required, autoComplete } = _ref, rest = _objectWithoutProperties(_ref, _excluded$47);
|
|
1094
1094
|
return /* @__PURE__ */ jsx("textarea", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1095
1095
|
ref,
|
|
1096
1096
|
required,
|
|
@@ -1101,13 +1101,13 @@ const TextareaInput$1 = forwardRef((_ref, ref) => {
|
|
|
1101
1101
|
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region src/components/Input/Primitives/Url/UrlInput.tsx
|
|
1104
|
-
const _excluded$
|
|
1104
|
+
const _excluded$46 = [
|
|
1105
1105
|
"erroneous",
|
|
1106
1106
|
"required",
|
|
1107
1107
|
"autoComplete"
|
|
1108
1108
|
];
|
|
1109
1109
|
const UrlInput$1 = forwardRef((_ref, ref) => {
|
|
1110
|
-
let { erroneous = false, required, autoComplete = "url" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1110
|
+
let { erroneous = false, required, autoComplete = "url" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$46);
|
|
1111
1111
|
return /* @__PURE__ */ jsx("input", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1112
1112
|
required,
|
|
1113
1113
|
autoComplete,
|
|
@@ -1139,7 +1139,7 @@ var Primitives_exports = /* @__PURE__ */ __export({
|
|
|
1139
1139
|
|
|
1140
1140
|
//#endregion
|
|
1141
1141
|
//#region src/components/Input/Checkbox/index.tsx
|
|
1142
|
-
const _excluded$
|
|
1142
|
+
const _excluded$45 = [
|
|
1143
1143
|
"id",
|
|
1144
1144
|
"error",
|
|
1145
1145
|
"disabled",
|
|
@@ -1149,7 +1149,7 @@ const _excluded$46 = [
|
|
|
1149
1149
|
"style"
|
|
1150
1150
|
];
|
|
1151
1151
|
const CheckboxInput = (_ref) => {
|
|
1152
|
-
let { id, error = false, disabled = false, hasOptionalLabel = false, label, className, style } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1152
|
+
let { id, error = false, disabled = false, hasOptionalLabel = false, label, className, style } = _ref, rest = _objectWithoutProperties(_ref, _excluded$45);
|
|
1153
1153
|
const isErrorString = typeof error === "string";
|
|
1154
1154
|
const errorId = `${id}-error`;
|
|
1155
1155
|
const describedBy = rest["aria-describedby"] ? [rest["aria-describedby"]] : [];
|
|
@@ -1215,7 +1215,7 @@ var Fieldset_exports = /* @__PURE__ */ __export({
|
|
|
1215
1215
|
|
|
1216
1216
|
//#endregion
|
|
1217
1217
|
//#region src/components/Grid/Column.tsx
|
|
1218
|
-
const _excluded$
|
|
1218
|
+
const _excluded$44 = [
|
|
1219
1219
|
"children",
|
|
1220
1220
|
"breakpoint",
|
|
1221
1221
|
"width",
|
|
@@ -1225,7 +1225,7 @@ const _excluded$45 = [
|
|
|
1225
1225
|
"className"
|
|
1226
1226
|
];
|
|
1227
1227
|
const GridColumn = (_ref) => {
|
|
1228
|
-
let { children, breakpoint, width, isOffset, offsetWidth, alignItem, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1228
|
+
let { children, breakpoint, width, isOffset, offsetWidth, alignItem, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$44);
|
|
1229
1229
|
const classes = cn(...[
|
|
1230
1230
|
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
1231
|
alignItem ? `kern-align-self-${alignItem}` : "",
|
|
@@ -1240,13 +1240,13 @@ GridColumn.displayName = "Grid.Column";
|
|
|
1240
1240
|
|
|
1241
1241
|
//#endregion
|
|
1242
1242
|
//#region src/components/Grid/Root.tsx
|
|
1243
|
-
const _excluded$
|
|
1243
|
+
const _excluded$43 = [
|
|
1244
1244
|
"type",
|
|
1245
1245
|
"className",
|
|
1246
1246
|
"children"
|
|
1247
1247
|
];
|
|
1248
1248
|
const GridRoot = (_ref) => {
|
|
1249
|
-
let { type, className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1249
|
+
let { type, className, children } = _ref, rest = _objectWithoutProperties(_ref, _excluded$43);
|
|
1250
1250
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1251
1251
|
className: cn(type ? `kern-container-${type}` : "kern-container", className),
|
|
1252
1252
|
children
|
|
@@ -1256,14 +1256,14 @@ GridRoot.displayName = "Grid.Root";
|
|
|
1256
1256
|
|
|
1257
1257
|
//#endregion
|
|
1258
1258
|
//#region src/components/Grid/Row.tsx
|
|
1259
|
-
const _excluded$
|
|
1259
|
+
const _excluded$42 = [
|
|
1260
1260
|
"children",
|
|
1261
1261
|
"alignItems",
|
|
1262
1262
|
"horizontalAlignment",
|
|
1263
1263
|
"className"
|
|
1264
1264
|
];
|
|
1265
1265
|
const GridRow = (_ref) => {
|
|
1266
|
-
let { children, alignItems, horizontalAlignment, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1266
|
+
let { children, alignItems, horizontalAlignment, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$42);
|
|
1267
1267
|
const rowClasses = cn("kern-row", alignItems && `kern-align-items-${alignItems}`, horizontalAlignment && `kern-justify-content-${horizontalAlignment}`, className);
|
|
1268
1268
|
return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1269
1269
|
className: rowClasses,
|
|
@@ -1282,14 +1282,14 @@ var Grid_exports = /* @__PURE__ */ __export({
|
|
|
1282
1282
|
|
|
1283
1283
|
//#endregion
|
|
1284
1284
|
//#region src/components/Lists/Root.tsx
|
|
1285
|
-
const _excluded$
|
|
1285
|
+
const _excluded$41 = [
|
|
1286
1286
|
"children",
|
|
1287
1287
|
"className",
|
|
1288
1288
|
"size",
|
|
1289
1289
|
"type"
|
|
1290
1290
|
];
|
|
1291
1291
|
const ListsRoot = (_ref) => {
|
|
1292
|
-
let { children, className, size = "default", type = "bullet" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1292
|
+
let { children, className, size = "default", type = "bullet" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$41);
|
|
1293
1293
|
const Component = type === "number" ? "ol" : "ul";
|
|
1294
1294
|
const listClasses = cn("kern-list", size !== "default" && `kern-list--${size}`, type && `kern-list--${type}`, className);
|
|
1295
1295
|
return /* @__PURE__ */ jsx(Component, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -1310,13 +1310,13 @@ ListsItem.displayName = "Lists.Item";
|
|
|
1310
1310
|
|
|
1311
1311
|
//#endregion
|
|
1312
1312
|
//#region src/components/Lists/Bullet.tsx
|
|
1313
|
-
const _excluded$
|
|
1313
|
+
const _excluded$40 = [
|
|
1314
1314
|
"title",
|
|
1315
1315
|
"items",
|
|
1316
1316
|
"className"
|
|
1317
1317
|
];
|
|
1318
1318
|
const ListsBullet = (_ref) => {
|
|
1319
|
-
let { title, items, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1319
|
+
let { title, items, className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$40);
|
|
1320
1320
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1321
1321
|
className: cn(className),
|
|
1322
1322
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -1332,14 +1332,14 @@ ListsBullet.displayName = "Lists.Bullet";
|
|
|
1332
1332
|
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region src/components/Lists/Number.tsx
|
|
1335
|
-
const _excluded$
|
|
1335
|
+
const _excluded$39 = [
|
|
1336
1336
|
"children",
|
|
1337
1337
|
"className",
|
|
1338
1338
|
"size",
|
|
1339
1339
|
"type"
|
|
1340
1340
|
];
|
|
1341
1341
|
const ListsNumber = (_ref) => {
|
|
1342
|
-
let { children, className, size = "default", type } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1342
|
+
let { children, className, size = "default", type } = _ref, rest = _objectWithoutProperties(_ref, _excluded$39);
|
|
1343
1343
|
return /* @__PURE__ */ jsx("ol", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1344
1344
|
className: cn("kern-list", size && `kern-list--${size}`, type && `kern-list--${type}`, className),
|
|
1345
1345
|
children
|
|
@@ -1358,7 +1358,7 @@ var Lists_exports = /* @__PURE__ */ __export({
|
|
|
1358
1358
|
|
|
1359
1359
|
//#endregion
|
|
1360
1360
|
//#region src/components/Progress/Root.tsx
|
|
1361
|
-
const _excluded$
|
|
1361
|
+
const _excluded$38 = [
|
|
1362
1362
|
"value",
|
|
1363
1363
|
"max",
|
|
1364
1364
|
"className",
|
|
@@ -1372,7 +1372,7 @@ const useProgressContext = () => {
|
|
|
1372
1372
|
return context;
|
|
1373
1373
|
};
|
|
1374
1374
|
const ProgressRoot = (_ref) => {
|
|
1375
|
-
let { value = 0, max = 100, className, children, progressId: propProgressId } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
1375
|
+
let { value = 0, max = 100, className, children, progressId: propProgressId } = _ref, rest = _objectWithoutProperties(_ref, _excluded$38);
|
|
1376
1376
|
const percentage = Math.round(value / max * 100);
|
|
1377
1377
|
const progressId = React.useMemo(() => propProgressId || `progress-${Math.random().toString(36).slice(2, 11)}`, [propProgressId]);
|
|
1378
1378
|
const contextValue = {
|
|
@@ -1393,39 +1393,19 @@ ProgressRoot.displayName = "Progress.Root";
|
|
|
1393
1393
|
|
|
1394
1394
|
//#endregion
|
|
1395
1395
|
//#region src/components/Progress/Bar.tsx
|
|
1396
|
-
const _excluded$
|
|
1396
|
+
const _excluded$37 = ["className"];
|
|
1397
1397
|
const ProgressBar = (_ref) => {
|
|
1398
|
-
let { className
|
|
1398
|
+
let { className } = _ref, rest = _objectWithoutProperties(_ref, _excluded$37);
|
|
1399
1399
|
const { value, max, progressId } = useProgressContext();
|
|
1400
1400
|
return /* @__PURE__ */ jsx("progress", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1401
1401
|
id: progressId,
|
|
1402
|
+
className,
|
|
1402
1403
|
value,
|
|
1403
|
-
|
|
1404
|
-
max,
|
|
1405
|
-
className
|
|
1404
|
+
max
|
|
1406
1405
|
}));
|
|
1407
1406
|
};
|
|
1408
1407
|
ProgressBar.displayName = "Progress.Bar";
|
|
1409
1408
|
|
|
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
1409
|
//#endregion
|
|
1430
1410
|
//#region src/components/Progress/Header.tsx
|
|
1431
1411
|
const ProgressHeader = ({ className, style, children }) => {
|
|
@@ -1456,27 +1436,12 @@ const ProgressLabel = (_ref) => {
|
|
|
1456
1436
|
};
|
|
1457
1437
|
ProgressLabel.displayName = "Progress.Label";
|
|
1458
1438
|
|
|
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
1439
|
//#endregion
|
|
1473
1440
|
//#region src/components/Progress/index.ts
|
|
1474
1441
|
var Progress_exports = /* @__PURE__ */ __export({
|
|
1475
1442
|
Bar: () => ProgressBar,
|
|
1476
|
-
Cancel: () => ProgressCancel,
|
|
1477
1443
|
Header: () => ProgressHeader,
|
|
1478
1444
|
Label: () => ProgressLabel,
|
|
1479
|
-
Percentage: () => ProgressPercentage,
|
|
1480
1445
|
Root: () => ProgressRoot
|
|
1481
1446
|
});
|
|
1482
1447
|
|