@oslokommune/punkt-react 19.17.1 → 19.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/components/calendar/CalendarGrid.d.ts +1 -1
- package/dist/components/calendar/CalendarNav.d.ts +1 -1
- package/dist/components/combobox/ComboboxInput.d.ts +1 -1
- package/dist/components/combobox/ComboboxTags.d.ts +2 -2
- package/dist/components/combobox/Listbox.d.ts +1 -1
- package/dist/components/datepicker/DateTags.d.ts +1 -1
- package/dist/components/datepicker/DatepickerInputs.d.ts +1 -1
- package/dist/components/datepicker/DatepickerPopup.d.ts +1 -1
- package/dist/components/fileupload/Subcomponents.d.ts +6 -6
- package/dist/components/header-menu/HeaderMenu.d.ts +1 -1
- package/dist/components/icon/Icon.js +7 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/linkcard/LinkCard.d.ts +1 -1
- package/dist/components/stepper/Step.d.ts +1 -1
- package/dist/components/strings/PktStringsProvider.d.ts +1 -1
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/TableBody.d.ts +1 -1
- package/dist/components/table/TableDataCell.d.ts +1 -1
- package/dist/components/table/TableHeader.d.ts +1 -1
- package/dist/components/table/TableHeaderCell.d.ts +1 -1
- package/dist/components/table/TableRow.d.ts +1 -1
- package/dist/components/textarea/Textarea.d.ts +4 -29
- package/dist/components/textarea/Textarea.js +62 -61
- package/dist/punkt-react.cjs +1 -1
- package/dist/shared-types/index.d.ts +2 -0
- package/dist/shared-types/textarea.d.ts +67 -0
- package/dist/shared-types/textarea.js +16 -0
- package/package.json +4 -4
- package/src/components/icon/Icon.test.tsx +22 -0
- package/src/components/icon/Icon.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/src/components/textarea/Textarea.test.tsx +42 -1
- package/src/components/textarea/Textarea.tsx +16 -38
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [19.18.1](https://github.com/oslokommune/punkt/compare/19.18.0...19.18.1) (2026-10-20)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
* Eldre iPhoner, blokkert lagring og ryddigere avhengigheter (#3774). - Elements: Bygg for Safari 15, så komponentene laster på eldre iPhoner
|
|
12
|
+
- Elements: Fjern avhengigheter som bare dev-appen bruker, og oppdater verktøy
|
|
13
|
+
- Elements og React: Ikoner krasjer ikke når sessionStorage er blokkert
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [19.18.0](https://github.com/oslokommune/punkt/compare/19.17.1...19.18.0) (2026-10-20)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
|
|
8
23
|
## [19.17.1](https://github.com/oslokommune/punkt/compare/19.17.0...19.17.1) (2026-10-20)
|
|
9
24
|
|
|
10
25
|
### Bug Fixes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ICalendarNavProps } from './types';
|
|
2
|
-
export declare const CalendarNav: ({ componentId, strings, year, month, earliest, latest, withcontrols, prevMonth, nextMonth, changeMonth, }: ICalendarNavProps) => import(
|
|
2
|
+
export declare const CalendarNav: ({ componentId, strings, year, month, earliest, latest, withcontrols, prevMonth, nextMonth, changeMonth, }: ICalendarNavProps) => import('react').JSX.Element;
|
|
@@ -2,5 +2,5 @@ import { IComboboxState } from './types';
|
|
|
2
2
|
interface IComboboxInputProps {
|
|
3
3
|
state: IComboboxState;
|
|
4
4
|
}
|
|
5
|
-
export declare const ComboboxInput: ({ state }: IComboboxInputProps) => import(
|
|
5
|
+
export declare const ComboboxInput: ({ state }: IComboboxInputProps) => import('react').JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -3,9 +3,9 @@ interface IComboboxTagsProps {
|
|
|
3
3
|
state: IComboboxState;
|
|
4
4
|
outside?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const ComboboxTags: ({ state, outside }: IComboboxTagsProps) => import(
|
|
6
|
+
export declare const ComboboxTags: ({ state, outside }: IComboboxTagsProps) => import('react').JSX.Element | null;
|
|
7
7
|
interface ISingleValueDisplayProps {
|
|
8
8
|
state: IComboboxState;
|
|
9
9
|
}
|
|
10
|
-
export declare const SingleValueDisplay: ({ state }: ISingleValueDisplayProps) => import(
|
|
10
|
+
export declare const SingleValueDisplay: ({ state }: ISingleValueDisplayProps) => import('react').JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -2,5 +2,5 @@ import { IComboboxState } from './types';
|
|
|
2
2
|
interface IListboxProps {
|
|
3
3
|
state: IComboboxState;
|
|
4
4
|
}
|
|
5
|
-
export declare const Listbox: ({ state }: IListboxProps) => import(
|
|
5
|
+
export declare const Listbox: ({ state }: IListboxProps) => import('react').JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -5,5 +5,5 @@ interface DateTagsProps extends IPktStringsProps<'datepicker'> {
|
|
|
5
5
|
idBase: string;
|
|
6
6
|
onDateRemoved: (date: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const DateTags: ({ dates, dateformat, idBase, strings, onDateRemoved, }: DateTagsProps) => import(
|
|
8
|
+
export declare const DateTags: ({ dates, dateformat, idBase, strings, onDateRemoved, }: DateTagsProps) => import('react').JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -17,5 +17,5 @@ interface DatepickerPopupProps {
|
|
|
17
17
|
onDateSelected: (selected: string[]) => void;
|
|
18
18
|
onClose: () => void;
|
|
19
19
|
}
|
|
20
|
-
export declare const DatepickerPopup: ({ open, multiple, range, weeknumbers, withcontrols, selected, earliest, latest, excludedates, excludeweekdays, maxMultiple, currentmonth, today, inputRef, hasCounter, onDateSelected, onClose, }: DatepickerPopupProps) => import(
|
|
20
|
+
export declare const DatepickerPopup: ({ open, multiple, range, weeknumbers, withcontrols, selected, earliest, latest, excludedates, excludeweekdays, maxMultiple, currentmonth, today, inputRef, hasCounter, onDateSelected, onClose, }: DatepickerPopupProps) => import('react').JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -4,26 +4,26 @@ export declare const TransferInProgress: ({ cancelTransfer, transferItem, disabl
|
|
|
4
4
|
transferItem: TTransferItemInProgress;
|
|
5
5
|
cancelTransfer: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
}) => import(
|
|
7
|
+
}) => import('react').JSX.Element;
|
|
8
8
|
export declare const TransferError: ({ transferItem, onRemove, disabled, }: {
|
|
9
9
|
transferItem: TFileAndTransfer;
|
|
10
10
|
onRemove: () => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
}) => import(
|
|
12
|
+
}) => import('react').JSX.Element;
|
|
13
13
|
export declare const OperationButton: ({ operation, context, }: {
|
|
14
14
|
operation: TQueueItemOperation;
|
|
15
15
|
context: TQueueOperationContext;
|
|
16
|
-
}) => import(
|
|
16
|
+
}) => import('react').JSX.Element | null;
|
|
17
17
|
export declare const FilenameRenderer: ({ transferItem, }: {
|
|
18
18
|
transferItem: TFileAndTransfer;
|
|
19
19
|
queueItemOperations?: Array<TQueueItemOperation>;
|
|
20
20
|
onPreviewClick?: () => void;
|
|
21
|
-
}) => import(
|
|
21
|
+
}) => import('react').JSX.Element;
|
|
22
22
|
export declare const ThumbnailRenderer: ({ transferItem, onPreviewClick, }: {
|
|
23
23
|
transferItem: TFileAndTransfer;
|
|
24
24
|
queueItemOperations?: Array<TQueueItemOperation>;
|
|
25
25
|
onPreviewClick?: () => void;
|
|
26
|
-
}) => import(
|
|
26
|
+
}) => import('react').JSX.Element;
|
|
27
27
|
interface IImagePreviewModal {
|
|
28
28
|
isOpen: boolean;
|
|
29
29
|
images: TFileAndTransfer[];
|
|
@@ -32,5 +32,5 @@ interface IImagePreviewModal {
|
|
|
32
32
|
onNavigate: (direction: 'prev' | 'next') => void;
|
|
33
33
|
modalRef: RefObject<HTMLDialogElement | null>;
|
|
34
34
|
}
|
|
35
|
-
export declare const ImagePreviewModal: ({ isOpen, images, currentIndex, onClose, onNavigate, modalRef, }: IImagePreviewModal) => import(
|
|
35
|
+
export declare const ImagePreviewModal: ({ isOpen, images, currentIndex, onClose, onNavigate, modalRef, }: IImagePreviewModal) => import('react').JSX.Element | null;
|
|
36
36
|
export {};
|
|
@@ -22,4 +22,4 @@ export interface IPktHeaderMenu extends Omit<HTMLAttributes<HTMLElement>, 'onErr
|
|
|
22
22
|
* the parent header is expected to control `open` and own focus
|
|
23
23
|
* management.
|
|
24
24
|
*/
|
|
25
|
-
export declare const PktHeaderMenu: ({ dataUrl, data, locale, open, mobileBreakpoint, className, onDataLoaded, onDataError, ref, strings, ...rest }: IPktHeaderMenu) => import(
|
|
25
|
+
export declare const PktHeaderMenu: ({ dataUrl, data, locale, open, mobileBreakpoint, className, onDataLoaded, onDataError, ref, strings, ...rest }: IPktHeaderMenu) => import('react').JSX.Element;
|
|
@@ -7,7 +7,13 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
7
7
|
//#region src/components/icon/Icon.tsx
|
|
8
8
|
var c = /* @__PURE__ */ e(n(), 1);
|
|
9
9
|
typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || t.path);
|
|
10
|
-
var l = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>", u = {}, d = 2, f = 1500, p =
|
|
10
|
+
var l = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>", u = {}, d = 2, f = 1500, p = (() => {
|
|
11
|
+
try {
|
|
12
|
+
return typeof Storage < "u" && typeof sessionStorage < "u";
|
|
13
|
+
} catch {
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
})(), m = typeof window < "u" ? a : i, h = (e, t) => !e || !p ? "" : sessionStorage.getItem(t + e + ".svg") ?? "", g = (e) => window.pktFetch(e).then((t) => {
|
|
11
17
|
if (!t.ok) throw Error("Missing icon: " + e);
|
|
12
18
|
return t.text();
|
|
13
19
|
}), _ = async (e, t = d) => {
|
|
@@ -54,6 +54,7 @@ export { PktTabs } from './tabs/Tabs';
|
|
|
54
54
|
export { PktTabItem } from './tabs/TabItem';
|
|
55
55
|
export { PktTag } from './tag/Tag';
|
|
56
56
|
export { PktTextarea } from './textarea/Textarea';
|
|
57
|
+
export type { IPktTextarea } from './textarea/Textarea';
|
|
57
58
|
export { PktTextinput } from './textinput/Textinput';
|
|
58
59
|
export { PktTimepicker } from './timepicker/Timepicker';
|
|
59
60
|
export * from './interfaces';
|
|
@@ -5,6 +5,6 @@ export interface IPktLinkCard extends IPktLinkCardBase, Omit<HTMLAttributes<HTML
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare const PktLinkCard: {
|
|
8
|
-
({ children, skin, title, href, iconName, openInNewTab, external, className, strings, ...props }: IPktLinkCard): import(
|
|
8
|
+
({ children, skin, title, href, iconName, openInNewTab, external, className, strings, ...props }: IPktLinkCard): import('react').JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
@@ -18,4 +18,4 @@ export interface IPktStep {
|
|
|
18
18
|
*/
|
|
19
19
|
title: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const PktStep: ({ children, className, status, title }: IPktStep) => import(
|
|
21
|
+
export declare const PktStep: ({ children, className, status, title }: IPktStep) => import('react').JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface IPktStringsProvider {
|
|
|
18
18
|
* </PktStringsProvider>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare const PktStringsProvider: ({ strings, children }: IPktStringsProvider) => import(
|
|
21
|
+
export declare const PktStringsProvider: ({ strings, children }: IPktStringsProvider) => import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type TTableSkin = TPktTableSkin;
|
|
|
5
5
|
export interface IPktTable extends IPktTableBase, HTMLAttributes<HTMLTableElement> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: IPktTable) => import(
|
|
8
|
+
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: IPktTable) => import('react').JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface ITableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const PktTableBody: ({ id, children, className, ...props }: ITableBodyProps) => import(
|
|
6
|
+
export declare const PktTableBody: ({ id, children, className, ...props }: ITableBodyProps) => import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,4 +3,4 @@ import { IPktTableDataCellBase } from '../../shared-types';
|
|
|
3
3
|
export interface IPktTableDataCell extends IPktTableDataCellBase, HTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: IPktTableDataCell) => import(
|
|
6
|
+
export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: IPktTableDataCell) => import('react').JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface ITableHeaderProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const PktTableHeader: ({ className, children, ...props }: ITableHeaderProps) => import(
|
|
6
|
+
export declare const PktTableHeader: ({ className, children, ...props }: ITableHeaderProps) => import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface ITableHeaderCellProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const PktTableHeaderCell: ({ className, children, ...props }: ITableHeaderCellProps) => import(
|
|
6
|
+
export declare const PktTableHeaderCell: ({ className, children, ...props }: ITableHeaderCellProps) => import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface ITableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const PktTableRow: ({ className, children, ...props }: ITableRowProps) => import(
|
|
6
|
+
export declare const PktTableRow: ({ className, children, ...props }: ITableRowProps) => import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
import { ChangeEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IPktTextarea extends TextareaHTMLAttributes<HTMLTextAreaElement>, IPktStringsProps<'forms' | 'validation'> {
|
|
2
|
+
import { IPktTextareaBase } from '../../shared-types';
|
|
3
|
+
export interface IPktTextarea extends Omit<IPktTextareaBase, 'helptext' | 'helptextDropdown' | 'errorMessage'>, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof IPktTextareaBase> {
|
|
5
4
|
id: string;
|
|
6
|
-
|
|
7
|
-
ariaLabelledby?: string;
|
|
8
|
-
counter?: boolean;
|
|
9
|
-
hasFieldset?: boolean;
|
|
10
|
-
counterMaxLength?: number;
|
|
11
|
-
disabled?: boolean;
|
|
5
|
+
label: string;
|
|
12
6
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
13
|
-
hasError?: boolean;
|
|
14
7
|
helptext?: string | ReactNode | ReactNode[];
|
|
15
8
|
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
16
|
-
|
|
17
|
-
inline?: boolean;
|
|
18
|
-
fullwidth?: boolean;
|
|
19
|
-
label: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
optionalTag?: boolean;
|
|
22
|
-
optionalText?: string;
|
|
23
|
-
requiredTag?: boolean;
|
|
24
|
-
requiredText?: string;
|
|
25
|
-
tagText?: string | null;
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
rows?: number;
|
|
28
|
-
useWrapper?: boolean;
|
|
29
|
-
value?: string;
|
|
9
|
+
/** @deprecated Bruk `autoComplete`. */
|
|
30
10
|
autocomplete?: string;
|
|
31
|
-
minLength?: number;
|
|
32
|
-
maxLength?: number;
|
|
33
|
-
readOnly?: boolean;
|
|
34
|
-
required?: boolean;
|
|
35
11
|
skipForwardTestid?: boolean;
|
|
36
|
-
inputSize?: TPktInputSize;
|
|
37
12
|
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
38
13
|
}
|
|
39
14
|
export declare const PktTextarea: import('react').ForwardRefExoticComponent<IPktTextarea & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { TEXTAREA_DEFAULTS as e } from "../../shared-types/textarea.js";
|
|
3
|
+
import { useGeneratedId as t } from "../../hooks/useGeneratedId.js";
|
|
4
|
+
import { describedByIds as n } from "../../shared-utils/forms/described-by.js";
|
|
5
|
+
import { PktInputWrapper as r } from "../inputwrapper/InputWrapper.js";
|
|
6
|
+
import { forwardRef as i, useState as a } from "react";
|
|
7
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
7
8
|
//#region src/components/textarea/Textarea.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
|
|
9
|
+
var s = i(({ id: i, ariaDescribedby: s, ariaLabelledby: c, counter: l, hasFieldset: u, counterMaxLength: d, className: f, disabled: p, errorMessage: m, hasError: h = e.hasError, helptext: g, helptextDropdown: _, helptextDropdownButton: v, inline: y, fullwidth: b = e.fullwidth, label: x, name: S, optionalTag: C = e.optionalTag, optionalText: w, requiredTag: T = e.requiredTag, requiredText: E, tagText: D = null, placeholder: O, rows: k, useWrapper: A = e.useWrapper, onChange: j, value: M, autoComplete: N, autocomplete: P, minLength: F, maxLength: I, readOnly: L, skipForwardTestid: R = !1, inputSize: z = e.inputSize, strings: B, ...V }, H) => {
|
|
10
|
+
let U = l ?? (d ?? 0) > 0, W = [
|
|
11
|
+
f,
|
|
11
12
|
"pkt-textinput",
|
|
12
13
|
"pkt-textarea"
|
|
13
|
-
].filter(Boolean).join(" "),
|
|
14
|
-
|
|
14
|
+
].filter(Boolean).join(" "), G = t(i), K = `${G}-input`, q = `${K}-label`, J = c || q, [Y, X] = a(0), Z = M === void 0 ? Y : M?.length || 0, Q = (e) => {
|
|
15
|
+
U && X(e.currentTarget?.value?.length || 0), j && j(e);
|
|
15
16
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
className:
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
strings:
|
|
20
|
-
ariaDescribedby:
|
|
21
|
-
disabled:
|
|
22
|
-
errorMessage:
|
|
23
|
-
forId:
|
|
24
|
-
hasError:
|
|
25
|
-
helptext:
|
|
26
|
-
helptextDropdown:
|
|
27
|
-
helptextDropdownButton:
|
|
28
|
-
inline:
|
|
29
|
-
label:
|
|
30
|
-
optionalTag:
|
|
31
|
-
optionalText:
|
|
32
|
-
requiredTag:
|
|
33
|
-
requiredText:
|
|
34
|
-
tagText:
|
|
35
|
-
useWrapper:
|
|
36
|
-
counter:
|
|
37
|
-
counterCurrent:
|
|
38
|
-
counterMaxLength:
|
|
39
|
-
hasFieldset:
|
|
40
|
-
size:
|
|
41
|
-
children: /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ o("div", {
|
|
18
|
+
className: W,
|
|
19
|
+
children: /* @__PURE__ */ o(r, {
|
|
20
|
+
strings: B,
|
|
21
|
+
ariaDescribedby: s,
|
|
22
|
+
disabled: p,
|
|
23
|
+
errorMessage: m,
|
|
24
|
+
forId: K,
|
|
25
|
+
hasError: h,
|
|
26
|
+
helptext: g,
|
|
27
|
+
helptextDropdown: _,
|
|
28
|
+
helptextDropdownButton: v,
|
|
29
|
+
inline: y,
|
|
30
|
+
label: x,
|
|
31
|
+
optionalTag: C,
|
|
32
|
+
optionalText: w,
|
|
33
|
+
requiredTag: T,
|
|
34
|
+
requiredText: E,
|
|
35
|
+
tagText: D,
|
|
36
|
+
useWrapper: A,
|
|
37
|
+
counter: U,
|
|
38
|
+
counterCurrent: Z,
|
|
39
|
+
counterMaxLength: d,
|
|
40
|
+
hasFieldset: u ?? !1,
|
|
41
|
+
size: z,
|
|
42
|
+
children: /* @__PURE__ */ o("textarea", {
|
|
42
43
|
ref: (e) => {
|
|
43
|
-
|
|
44
|
+
X(e?.value?.length || 0), typeof H == "function" ? H(e) : H && (H.current = e);
|
|
44
45
|
},
|
|
45
|
-
className: `pkt-input pkt-input--${
|
|
46
|
-
name: `${
|
|
47
|
-
id:
|
|
48
|
-
placeholder:
|
|
49
|
-
disabled:
|
|
50
|
-
rows:
|
|
51
|
-
"aria-labelledby":
|
|
52
|
-
"aria-invalid":
|
|
53
|
-
"aria-errormessage":
|
|
54
|
-
"aria-describedby":
|
|
55
|
-
id:
|
|
56
|
-
hasHelptext: !!
|
|
57
|
-
hasCounter:
|
|
58
|
-
ariaDescribedby:
|
|
46
|
+
className: `pkt-input pkt-input--${z} ${b ? "pkt-input--fullwidth" : ""} ${d && Z > d ? "pkt-input--counter-error" : ""}`,
|
|
47
|
+
name: `${S || G}`,
|
|
48
|
+
id: K,
|
|
49
|
+
placeholder: O,
|
|
50
|
+
disabled: p,
|
|
51
|
+
rows: k,
|
|
52
|
+
"aria-labelledby": J,
|
|
53
|
+
"aria-invalid": h,
|
|
54
|
+
"aria-errormessage": h ? `${K}-error` : void 0,
|
|
55
|
+
"aria-describedby": n({
|
|
56
|
+
id: K,
|
|
57
|
+
hasHelptext: !!g,
|
|
58
|
+
hasCounter: U,
|
|
59
|
+
ariaDescribedby: s
|
|
59
60
|
}),
|
|
60
|
-
...
|
|
61
|
-
onChange:
|
|
62
|
-
value:
|
|
63
|
-
autoComplete:
|
|
64
|
-
minLength:
|
|
65
|
-
maxLength:
|
|
66
|
-
readOnly:
|
|
67
|
-
"data-skip-forward-testid":
|
|
61
|
+
...V,
|
|
62
|
+
onChange: Q,
|
|
63
|
+
value: M,
|
|
64
|
+
autoComplete: N ?? P ?? e.autoComplete,
|
|
65
|
+
minLength: F,
|
|
66
|
+
maxLength: I,
|
|
67
|
+
readOnly: L,
|
|
68
|
+
"data-skip-forward-testid": R ? "true" : void 0
|
|
68
69
|
})
|
|
69
70
|
})
|
|
70
71
|
});
|
|
71
72
|
});
|
|
72
|
-
|
|
73
|
+
s.displayName = "PktTextarea";
|
|
73
74
|
//#endregion
|
|
74
|
-
export {
|
|
75
|
+
export { s as PktTextarea };
|