@publicplan/kern-react-kit 1.0.1 → 1.3.0
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +24 -23
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -628,6 +628,7 @@ interface ButtonProps extends Omit<React$1.ComponentPropsWithoutRef<'button'>, '
|
|
|
628
628
|
iconOnly?: boolean;
|
|
629
629
|
iconLeft?: boolean;
|
|
630
630
|
text?: string | null;
|
|
631
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
631
632
|
}
|
|
632
633
|
declare const Button: React$1.FC<ButtonProps>;
|
|
633
634
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react13 from "react";
|
|
3
3
|
import React$1 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Accordion/Content.d.ts
|
|
@@ -271,13 +271,13 @@ declare const GridRow: React$1.FC<GridRowProps>;
|
|
|
271
271
|
interface CheckboxInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type' | 'aria-describedby'> {
|
|
272
272
|
erroneous?: boolean;
|
|
273
273
|
}
|
|
274
|
-
declare const CheckboxInput$1:
|
|
274
|
+
declare const CheckboxInput$1: react13.ForwardRefExoticComponent<CheckboxInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/components/Input/Primitives/Email/EmailInput.d.ts
|
|
277
277
|
interface EmailInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> {
|
|
278
278
|
erroneous?: boolean;
|
|
279
279
|
}
|
|
280
|
-
declare const EmailInput$1:
|
|
280
|
+
declare const EmailInput$1: react13.ForwardRefExoticComponent<EmailInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
281
281
|
//#endregion
|
|
282
282
|
//#region src/components/Input/Primitives/Error.d.ts
|
|
283
283
|
interface InputErrorProps extends Omit<React.ComponentPropsWithoutRef<'p'>, 'role'> {
|
|
@@ -297,7 +297,7 @@ interface FileInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>,
|
|
|
297
297
|
supportedFormats?: (FileExtension | MimeType)[];
|
|
298
298
|
erroneous?: boolean;
|
|
299
299
|
}
|
|
300
|
-
declare const FileInput$1:
|
|
300
|
+
declare const FileInput$1: react13.ForwardRefExoticComponent<FileInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region src/components/Input/Primitives/Hint.d.ts
|
|
303
303
|
interface HintProps extends React.ComponentPropsWithoutRef<'p'> {
|
|
@@ -333,13 +333,13 @@ declare const Label$1: ({
|
|
|
333
333
|
interface PasswordInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> {
|
|
334
334
|
erroneous?: boolean;
|
|
335
335
|
}
|
|
336
|
-
declare const PasswordInput$1:
|
|
336
|
+
declare const PasswordInput$1: react13.ForwardRefExoticComponent<PasswordInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
337
337
|
//#endregion
|
|
338
338
|
//#region src/components/Input/Primitives/Radio/RadioInput.d.ts
|
|
339
339
|
interface RadioInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type' | 'aria-describedby'> {
|
|
340
340
|
erroneous?: boolean;
|
|
341
341
|
}
|
|
342
|
-
declare const RadioInput$1:
|
|
342
|
+
declare const RadioInput$1: react13.ForwardRefExoticComponent<RadioInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region src/components/Input/Primitives/Root.d.ts
|
|
345
345
|
interface RootProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -360,31 +360,31 @@ interface SelectInputProps$1 extends React.ComponentPropsWithoutRef<'select'> {
|
|
|
360
360
|
label: string;
|
|
361
361
|
}>;
|
|
362
362
|
}
|
|
363
|
-
declare const SelectInput$1:
|
|
363
|
+
declare const SelectInput$1: react13.ForwardRefExoticComponent<SelectInputProps$1 & react13.RefAttributes<HTMLSelectElement>>;
|
|
364
364
|
//#endregion
|
|
365
365
|
//#region src/components/Input/Primitives/Tel/TelInput.d.ts
|
|
366
366
|
interface TelInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type' | 'autoComplete'> {
|
|
367
367
|
erroneous?: boolean;
|
|
368
368
|
}
|
|
369
|
-
declare const TelInput$1:
|
|
369
|
+
declare const TelInput$1: react13.ForwardRefExoticComponent<TelInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
370
370
|
//#endregion
|
|
371
371
|
//#region src/components/Input/Primitives/Text/TextInput.d.ts
|
|
372
372
|
interface TextInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> {
|
|
373
373
|
erroneous?: boolean;
|
|
374
374
|
}
|
|
375
|
-
declare const TextInput$1:
|
|
375
|
+
declare const TextInput$1: react13.ForwardRefExoticComponent<TextInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region src/components/Input/Primitives/Textarea/TextareaInput.d.ts
|
|
378
378
|
interface TextareaInputProps$1 extends React.ComponentPropsWithoutRef<'textarea'> {
|
|
379
379
|
erroneous?: boolean;
|
|
380
380
|
}
|
|
381
|
-
declare const TextareaInput$1:
|
|
381
|
+
declare const TextareaInput$1: react13.ForwardRefExoticComponent<TextareaInputProps$1 & react13.RefAttributes<HTMLTextAreaElement>>;
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region src/components/Input/Primitives/Url/UrlInput.d.ts
|
|
384
384
|
interface UrlInputProps$1 extends Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> {
|
|
385
385
|
erroneous?: boolean;
|
|
386
386
|
}
|
|
387
|
-
declare const UrlInput$1:
|
|
387
|
+
declare const UrlInput$1: react13.ForwardRefExoticComponent<UrlInputProps$1 & react13.RefAttributes<HTMLInputElement>>;
|
|
388
388
|
//#endregion
|
|
389
389
|
//#region src/components/Lists/Root.d.ts
|
|
390
390
|
interface ListsRootProps extends Omit<React.ComponentPropsWithoutRef<'ol' | 'ul'>, 'type'> {
|
|
@@ -626,6 +626,7 @@ interface ButtonProps extends Omit<React$1.ComponentPropsWithoutRef<'button'>, '
|
|
|
626
626
|
iconOnly?: boolean;
|
|
627
627
|
iconLeft?: boolean;
|
|
628
628
|
text?: string | null;
|
|
629
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
629
630
|
}
|
|
630
631
|
declare const Button: React$1.FC<ButtonProps>;
|
|
631
632
|
//#endregion
|
|
@@ -1081,23 +1082,23 @@ declare const ThemeProvider: ({
|
|
|
1081
1082
|
}: ThemeProviderProps) => react_jsx_runtime0.JSX.Element;
|
|
1082
1083
|
//#endregion
|
|
1083
1084
|
//#region src/index.d.ts
|
|
1084
|
-
declare const Accordion:
|
|
1085
|
-
declare const Alert:
|
|
1086
|
-
declare const Card:
|
|
1087
|
-
declare const DescriptionList:
|
|
1088
|
-
declare const Dialog:
|
|
1089
|
-
declare const Fieldset:
|
|
1090
|
-
declare const Grid:
|
|
1085
|
+
declare const Accordion: react13.FC<AccordionRootProps> & typeof index_d_exports;
|
|
1086
|
+
declare const Alert: react13.FC<AlertRootProps> & typeof index_d_exports$1;
|
|
1087
|
+
declare const Card: react13.FC<CardRootProps> & typeof index_d_exports$2;
|
|
1088
|
+
declare const DescriptionList: react13.FC<DescriptionListRootProps> & typeof index_d_exports$3;
|
|
1089
|
+
declare const Dialog: react13.FC<DialogRootProps> & typeof index_d_exports$4;
|
|
1090
|
+
declare const Fieldset: react13.FC<FieldsetRootProps> & typeof index_d_exports$5;
|
|
1091
|
+
declare const Grid: react13.FC<GridRootProps> & typeof index_d_exports$6;
|
|
1091
1092
|
declare const InputPrimitive: (({
|
|
1092
1093
|
className,
|
|
1093
1094
|
erroneous,
|
|
1094
1095
|
...props
|
|
1095
1096
|
}: RootProps) => react_jsx_runtime0.JSX.Element) & typeof index_d_exports$7;
|
|
1096
|
-
declare const Lists:
|
|
1097
|
-
declare const Table:
|
|
1098
|
-
declare const Progress:
|
|
1099
|
-
declare const Summary:
|
|
1100
|
-
declare const TaskList:
|
|
1097
|
+
declare const Lists: react13.FC<ListsRootProps> & typeof index_d_exports$8;
|
|
1098
|
+
declare const Table: react13.FC<TableRootProps> & typeof index_d_exports$11;
|
|
1099
|
+
declare const Progress: react13.FC<ProgressRootProps> & typeof index_d_exports$9;
|
|
1100
|
+
declare const Summary: react13.FC<SummaryProps> & typeof index_d_exports$10;
|
|
1101
|
+
declare const TaskList: react13.FC<TaskListRootProps> & typeof index_d_exports$12;
|
|
1101
1102
|
//#endregion
|
|
1102
1103
|
export { Accordion, type AccordionContentProps, type AccordionGroupProps, type AccordionRootProps, type AccordionSummaryProps, Alert, type AlertBodyProps, type AlertHeaderProps, type AlertRootProps, Badge, type BadgeProps, Body, Button, type ButtonProps, Card, type CardBodyProps, type CardContainerProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardPrelineProps, type CardRootProps, type CardSublineProps, type CardTitleProps, CheckboxInput, type CheckboxInputProps, DateInput, type DateInputProps, DescriptionList, type DescriptionListItemProps, type DescriptionListKeyProps, type DescriptionListRootProps, type DescriptionListValueProps, Dialog, type DialogButtonProps, type DialogContentProps, type DialogFooterProps, type DialogHeaderProps, type DialogModalProps, type DialogRootProps, type DialogTriggerProps, Divider, EmailInput, type EmailInputProps, Fieldset, type FieldsetContentProps, type FieldsetErrorProps, type FieldsetHintProps, type FieldsetLegendProps, type FieldsetRootProps, FileInput, type FileInputProps, Grid, type GridColumnProps, type GridRootProps, type GridRowProps, Heading, Icon, type IconProps, type InputErrorProps, type HintProps as InputHintProps, type LabelProps as InputLabelProps, InputPrimitive, type RootProps as InputRootProps, Kopfzeile, type KopfzeileProps, Label, type LabelProps$1 as LabelProps, Link, type LinkProps, Lists, type ListsBulletProps, type ListsItemProps, type ListsNumberProps, type ListsRootProps, Loader, type LoaderProps, NumberInput, type NumberInputProps, PasswordInput, type PasswordInputProps, Preline, type PrelineProps, Progress, type ProgressBarProps, type ProgressCancelProps, type ProgressHeaderProps, type ProgressLabelProps, type ProgressPercentageProps, type ProgressRootProps, RadioInput, type RadioInputProps, SelectInput, type SelectInputProps, Subline, type SublineProps, Summary, type SummaryActionsProps, type SummaryBodyProps, type SummaryGroupHeadingProps, type SummaryGroupProps, type SummaryHeadingProps, type SummaryProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableFooterProps, type TableHeaderProps, type TableRootProps, type TableRowProps, TaskList, type TaskListHeadingProps, type TaskListItemProps, type TaskListProps, type TaskListRootProps, TelInput, type TelInputProps, TextInput, type TextInputProps, TextareaInput, type TextareaInputProps, type Theme, ThemeProvider, type ThemeProviderProps, Title, type TitleProps, UrlInput, type UrlInputProps };
|
|
1103
1104
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -575,7 +575,7 @@ const Button = (_ref) => {
|
|
|
575
575
|
const iconElement = getIcon(icon);
|
|
576
576
|
if (iconOnly) return /* @__PURE__ */ jsxs("button", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
577
577
|
className: classes,
|
|
578
|
-
children: [iconElement, /* @__PURE__ */ jsx(IconOnlyLabel, { labelText: icon === null || icon === void 0 ? void 0 : icon.name })]
|
|
578
|
+
children: [iconElement, /* @__PURE__ */ jsx(IconOnlyLabel, { labelText: text || (icon === null || icon === void 0 ? void 0 : icon.name) })]
|
|
579
579
|
}));
|
|
580
580
|
return /* @__PURE__ */ jsxs("button", _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
581
581
|
className: classes,
|