@public-ui/react-hook-form-adapter 4.0.0-alpha.5 → 4.0.0-alpha.7
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 +0 -1
- package/dist/index.d.cts +28 -15
- package/dist/index.d.mts +28 -15
- package/dist/index.d.ts +28 -15
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -94,4 +94,3 @@ exports.KolInputTextController = KolInputTextController;
|
|
|
94
94
|
exports.KolSelectController = KolSelectController;
|
|
95
95
|
exports.KolSingleSelectController = KolSingleSelectController;
|
|
96
96
|
exports.KolTextareaController = KolTextareaController;
|
|
97
|
-
exports.withController = withController;
|
package/dist/index.d.cts
CHANGED
|
@@ -1418,6 +1418,9 @@ type InputTypeOnFocus = {
|
|
|
1418
1418
|
type InputTypeOnInput = {
|
|
1419
1419
|
[Callback$1.onInput]?: EventValueOrEventCallback<Event, unknown>;
|
|
1420
1420
|
};
|
|
1421
|
+
type InputTypeOnKeyDown = {
|
|
1422
|
+
[Callback$1.onKeyDown]?: EventCallback<KeyboardEvent>;
|
|
1423
|
+
};
|
|
1421
1424
|
type Option<T> = {
|
|
1422
1425
|
disabled?: boolean;
|
|
1423
1426
|
label: string | number;
|
|
@@ -1432,7 +1435,7 @@ type Optgroup<T> = {
|
|
|
1432
1435
|
options: Option<T>[];
|
|
1433
1436
|
};
|
|
1434
1437
|
type SelectOption<T> = Option<T> | Optgroup<T> | RadioOption<T>;
|
|
1435
|
-
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput;
|
|
1438
|
+
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput & InputTypeOnKeyDown;
|
|
1436
1439
|
|
|
1437
1440
|
type KoliBriModalEventCallbacks = {
|
|
1438
1441
|
onClose?: () => void;
|
|
@@ -1457,6 +1460,8 @@ type KoliBriTableHeaderCell = KoliBriTableCell & {
|
|
|
1457
1460
|
key?: string;
|
|
1458
1461
|
sortDirection?: KoliBriSortDirection;
|
|
1459
1462
|
hidable?: boolean;
|
|
1463
|
+
sortable?: boolean;
|
|
1464
|
+
resizable?: boolean;
|
|
1460
1465
|
};
|
|
1461
1466
|
type KoliBriTableSelection = {
|
|
1462
1467
|
label: (row: KoliBriTableDataType) => string;
|
|
@@ -1470,7 +1475,8 @@ interface ColumnSettings {
|
|
|
1470
1475
|
hidable?: boolean;
|
|
1471
1476
|
key: string;
|
|
1472
1477
|
label: string;
|
|
1473
|
-
|
|
1478
|
+
sortable?: boolean;
|
|
1479
|
+
resizable?: boolean;
|
|
1474
1480
|
visible: boolean;
|
|
1475
1481
|
width?: number;
|
|
1476
1482
|
}
|
|
@@ -1681,8 +1687,9 @@ type PlaceholderPropType = string;
|
|
|
1681
1687
|
|
|
1682
1688
|
type PopoverAlignPropType = AlignPropType;
|
|
1683
1689
|
|
|
1690
|
+
type PopoverCloseEvent = MouseEvent | KeyboardEvent | ToggleEvent;
|
|
1684
1691
|
type PopoverCallbacksPropType = {
|
|
1685
|
-
[Callback$1.onClose]?: EventCallback<
|
|
1692
|
+
[Callback$1.onClose]?: EventCallback<PopoverCloseEvent>;
|
|
1686
1693
|
};
|
|
1687
1694
|
|
|
1688
1695
|
type ReadOnlyPropType = boolean;
|
|
@@ -1720,8 +1727,8 @@ type SortEventPayload = {
|
|
|
1720
1727
|
key: string;
|
|
1721
1728
|
currentSortDirection: KoliBriSortDirection;
|
|
1722
1729
|
};
|
|
1723
|
-
type SelectionChangeEventPayload = KoliBriTableSelectionKeys
|
|
1724
|
-
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] |
|
|
1730
|
+
type SelectionChangeEventPayload = KoliBriTableSelectionKeys;
|
|
1731
|
+
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | null;
|
|
1725
1732
|
type TableCallbacksPropType = {
|
|
1726
1733
|
[Callback$1.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;
|
|
1727
1734
|
[Callback$1.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;
|
|
@@ -1815,6 +1822,7 @@ type KoliBriCardEventCallbacks = {
|
|
|
1815
1822
|
|
|
1816
1823
|
type RequiredProps$e = PropLabelWithExpertSlot & PropSuggestions;
|
|
1817
1824
|
type OptionalProps$e = {
|
|
1825
|
+
hideClearButton: boolean;
|
|
1818
1826
|
msg: Stringified<MsgPropType>;
|
|
1819
1827
|
on: InputTypeOnDefault;
|
|
1820
1828
|
placeholder: string;
|
|
@@ -1822,6 +1830,7 @@ type OptionalProps$e = {
|
|
|
1822
1830
|
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched;
|
|
1823
1831
|
type RequiredStates$d = {
|
|
1824
1832
|
hasValue: boolean;
|
|
1833
|
+
hideClearButton: boolean;
|
|
1825
1834
|
suggestions: W3CInputValue[];
|
|
1826
1835
|
value: string;
|
|
1827
1836
|
} & PropId & PropHideMsg & PropLabelWithExpertSlot;
|
|
@@ -2680,10 +2689,6 @@ declare namespace Components {
|
|
|
2680
2689
|
* Defines the value that the button emits on click.
|
|
2681
2690
|
*/
|
|
2682
2691
|
"_value"?: StencilUnknown;
|
|
2683
|
-
/**
|
|
2684
|
-
* Hides the tooltip.
|
|
2685
|
-
*/
|
|
2686
|
-
"hideTooltip": () => Promise<void>;
|
|
2687
2692
|
/**
|
|
2688
2693
|
* Sets focus on the internal element.
|
|
2689
2694
|
*/
|
|
@@ -2741,6 +2746,11 @@ declare namespace Components {
|
|
|
2741
2746
|
* @default false
|
|
2742
2747
|
*/
|
|
2743
2748
|
"_disabled"?: boolean;
|
|
2749
|
+
/**
|
|
2750
|
+
* Hides the clear button.
|
|
2751
|
+
* @default false
|
|
2752
|
+
*/
|
|
2753
|
+
"_hideClearButton"?: boolean;
|
|
2744
2754
|
/**
|
|
2745
2755
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
2746
2756
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -4985,7 +4995,7 @@ declare namespace Components {
|
|
|
4985
4995
|
}
|
|
4986
4996
|
interface KolSingleSelect {
|
|
4987
4997
|
/**
|
|
4988
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
4998
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
4989
4999
|
*/
|
|
4990
5000
|
"_accessKey"?: string;
|
|
4991
5001
|
/**
|
|
@@ -5280,7 +5290,7 @@ declare namespace Components {
|
|
|
5280
5290
|
/**
|
|
5281
5291
|
* Returns the selected rows.
|
|
5282
5292
|
*/
|
|
5283
|
-
"getSelection": () => Promise<KoliBriTableDataType[] |
|
|
5293
|
+
"getSelection": () => Promise<KoliBriTableDataType[] | null>;
|
|
5284
5294
|
}
|
|
5285
5295
|
interface KolTableStateless {
|
|
5286
5296
|
/**
|
|
@@ -6591,6 +6601,11 @@ declare namespace LocalJSX {
|
|
|
6591
6601
|
* @default false
|
|
6592
6602
|
*/
|
|
6593
6603
|
"_disabled"?: boolean;
|
|
6604
|
+
/**
|
|
6605
|
+
* Hides the clear button.
|
|
6606
|
+
* @default false
|
|
6607
|
+
*/
|
|
6608
|
+
"_hideClearButton"?: boolean;
|
|
6594
6609
|
/**
|
|
6595
6610
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
6596
6611
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -8582,7 +8597,7 @@ declare namespace LocalJSX {
|
|
|
8582
8597
|
}
|
|
8583
8598
|
interface KolSingleSelect {
|
|
8584
8599
|
/**
|
|
8585
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
8600
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
8586
8601
|
*/
|
|
8587
8602
|
"_accessKey"?: string;
|
|
8588
8603
|
/**
|
|
@@ -9318,9 +9333,7 @@ type ControllerBaseProps<TControl = Control<any>> = {
|
|
|
9318
9333
|
shouldUnregister?: boolean;
|
|
9319
9334
|
disabled?: boolean;
|
|
9320
9335
|
};
|
|
9321
|
-
type ExtractProps<T> = T extends React.ComponentType<infer P> ? P : T extends React.ForwardRefExoticComponent<infer P> ? P : never;
|
|
9322
9336
|
type ControllerComponent<P> = React.ForwardRefExoticComponent<P & ControllerBaseProps<any> & RefAttributes<HTMLElement>>;
|
|
9323
|
-
declare function withController<T extends React.ComponentType<any>>(Component: T, valueProp?: string): ControllerComponent<ExtractProps<T>>;
|
|
9324
9337
|
declare const KolInputTextController: ControllerComponent<LocalJSX.KolInputText & Omit<React.HTMLAttributes<HTMLKolInputTextElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputTextElement>>;
|
|
9325
9338
|
declare const KolInputPasswordController: ControllerComponent<LocalJSX.KolInputPassword & Omit<React.HTMLAttributes<HTMLKolInputPasswordElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputPasswordElement>>;
|
|
9326
9339
|
declare const KolInputEmailController: ControllerComponent<LocalJSX.KolInputEmail & Omit<React.HTMLAttributes<HTMLKolInputEmailElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputEmailElement>>;
|
|
@@ -9336,5 +9349,5 @@ declare const KolSingleSelectController: ControllerComponent<LocalJSX.KolSingleS
|
|
|
9336
9349
|
declare const KolInputRadioController: ControllerComponent<LocalJSX.KolInputRadio & Omit<React.HTMLAttributes<HTMLKolInputRadioElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputRadioElement>>;
|
|
9337
9350
|
declare const KolInputCheckboxController: ControllerComponent<LocalJSX.KolInputCheckbox & Omit<React.HTMLAttributes<HTMLKolInputCheckboxElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputCheckboxElement>>;
|
|
9338
9351
|
|
|
9339
|
-
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController
|
|
9352
|
+
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController };
|
|
9340
9353
|
export type { ComboboxAPI, InputCheckboxAPI, InputColorAPI, InputDateAPI, InputEmailAPI, InputFileAPI, InputNumberAPI, InputPasswordAPI, InputRadioAPI, InputRangeAPI, InputTextAPI, SelectAPI, SingleSelectAPI, TextareaAPI };
|
package/dist/index.d.mts
CHANGED
|
@@ -1418,6 +1418,9 @@ type InputTypeOnFocus = {
|
|
|
1418
1418
|
type InputTypeOnInput = {
|
|
1419
1419
|
[Callback$1.onInput]?: EventValueOrEventCallback<Event, unknown>;
|
|
1420
1420
|
};
|
|
1421
|
+
type InputTypeOnKeyDown = {
|
|
1422
|
+
[Callback$1.onKeyDown]?: EventCallback<KeyboardEvent>;
|
|
1423
|
+
};
|
|
1421
1424
|
type Option<T> = {
|
|
1422
1425
|
disabled?: boolean;
|
|
1423
1426
|
label: string | number;
|
|
@@ -1432,7 +1435,7 @@ type Optgroup<T> = {
|
|
|
1432
1435
|
options: Option<T>[];
|
|
1433
1436
|
};
|
|
1434
1437
|
type SelectOption<T> = Option<T> | Optgroup<T> | RadioOption<T>;
|
|
1435
|
-
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput;
|
|
1438
|
+
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput & InputTypeOnKeyDown;
|
|
1436
1439
|
|
|
1437
1440
|
type KoliBriModalEventCallbacks = {
|
|
1438
1441
|
onClose?: () => void;
|
|
@@ -1457,6 +1460,8 @@ type KoliBriTableHeaderCell = KoliBriTableCell & {
|
|
|
1457
1460
|
key?: string;
|
|
1458
1461
|
sortDirection?: KoliBriSortDirection;
|
|
1459
1462
|
hidable?: boolean;
|
|
1463
|
+
sortable?: boolean;
|
|
1464
|
+
resizable?: boolean;
|
|
1460
1465
|
};
|
|
1461
1466
|
type KoliBriTableSelection = {
|
|
1462
1467
|
label: (row: KoliBriTableDataType) => string;
|
|
@@ -1470,7 +1475,8 @@ interface ColumnSettings {
|
|
|
1470
1475
|
hidable?: boolean;
|
|
1471
1476
|
key: string;
|
|
1472
1477
|
label: string;
|
|
1473
|
-
|
|
1478
|
+
sortable?: boolean;
|
|
1479
|
+
resizable?: boolean;
|
|
1474
1480
|
visible: boolean;
|
|
1475
1481
|
width?: number;
|
|
1476
1482
|
}
|
|
@@ -1681,8 +1687,9 @@ type PlaceholderPropType = string;
|
|
|
1681
1687
|
|
|
1682
1688
|
type PopoverAlignPropType = AlignPropType;
|
|
1683
1689
|
|
|
1690
|
+
type PopoverCloseEvent = MouseEvent | KeyboardEvent | ToggleEvent;
|
|
1684
1691
|
type PopoverCallbacksPropType = {
|
|
1685
|
-
[Callback$1.onClose]?: EventCallback<
|
|
1692
|
+
[Callback$1.onClose]?: EventCallback<PopoverCloseEvent>;
|
|
1686
1693
|
};
|
|
1687
1694
|
|
|
1688
1695
|
type ReadOnlyPropType = boolean;
|
|
@@ -1720,8 +1727,8 @@ type SortEventPayload = {
|
|
|
1720
1727
|
key: string;
|
|
1721
1728
|
currentSortDirection: KoliBriSortDirection;
|
|
1722
1729
|
};
|
|
1723
|
-
type SelectionChangeEventPayload = KoliBriTableSelectionKeys
|
|
1724
|
-
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] |
|
|
1730
|
+
type SelectionChangeEventPayload = KoliBriTableSelectionKeys;
|
|
1731
|
+
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | null;
|
|
1725
1732
|
type TableCallbacksPropType = {
|
|
1726
1733
|
[Callback$1.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;
|
|
1727
1734
|
[Callback$1.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;
|
|
@@ -1815,6 +1822,7 @@ type KoliBriCardEventCallbacks = {
|
|
|
1815
1822
|
|
|
1816
1823
|
type RequiredProps$e = PropLabelWithExpertSlot & PropSuggestions;
|
|
1817
1824
|
type OptionalProps$e = {
|
|
1825
|
+
hideClearButton: boolean;
|
|
1818
1826
|
msg: Stringified<MsgPropType>;
|
|
1819
1827
|
on: InputTypeOnDefault;
|
|
1820
1828
|
placeholder: string;
|
|
@@ -1822,6 +1830,7 @@ type OptionalProps$e = {
|
|
|
1822
1830
|
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched;
|
|
1823
1831
|
type RequiredStates$d = {
|
|
1824
1832
|
hasValue: boolean;
|
|
1833
|
+
hideClearButton: boolean;
|
|
1825
1834
|
suggestions: W3CInputValue[];
|
|
1826
1835
|
value: string;
|
|
1827
1836
|
} & PropId & PropHideMsg & PropLabelWithExpertSlot;
|
|
@@ -2680,10 +2689,6 @@ declare namespace Components {
|
|
|
2680
2689
|
* Defines the value that the button emits on click.
|
|
2681
2690
|
*/
|
|
2682
2691
|
"_value"?: StencilUnknown;
|
|
2683
|
-
/**
|
|
2684
|
-
* Hides the tooltip.
|
|
2685
|
-
*/
|
|
2686
|
-
"hideTooltip": () => Promise<void>;
|
|
2687
2692
|
/**
|
|
2688
2693
|
* Sets focus on the internal element.
|
|
2689
2694
|
*/
|
|
@@ -2741,6 +2746,11 @@ declare namespace Components {
|
|
|
2741
2746
|
* @default false
|
|
2742
2747
|
*/
|
|
2743
2748
|
"_disabled"?: boolean;
|
|
2749
|
+
/**
|
|
2750
|
+
* Hides the clear button.
|
|
2751
|
+
* @default false
|
|
2752
|
+
*/
|
|
2753
|
+
"_hideClearButton"?: boolean;
|
|
2744
2754
|
/**
|
|
2745
2755
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
2746
2756
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -4985,7 +4995,7 @@ declare namespace Components {
|
|
|
4985
4995
|
}
|
|
4986
4996
|
interface KolSingleSelect {
|
|
4987
4997
|
/**
|
|
4988
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
4998
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
4989
4999
|
*/
|
|
4990
5000
|
"_accessKey"?: string;
|
|
4991
5001
|
/**
|
|
@@ -5280,7 +5290,7 @@ declare namespace Components {
|
|
|
5280
5290
|
/**
|
|
5281
5291
|
* Returns the selected rows.
|
|
5282
5292
|
*/
|
|
5283
|
-
"getSelection": () => Promise<KoliBriTableDataType[] |
|
|
5293
|
+
"getSelection": () => Promise<KoliBriTableDataType[] | null>;
|
|
5284
5294
|
}
|
|
5285
5295
|
interface KolTableStateless {
|
|
5286
5296
|
/**
|
|
@@ -6591,6 +6601,11 @@ declare namespace LocalJSX {
|
|
|
6591
6601
|
* @default false
|
|
6592
6602
|
*/
|
|
6593
6603
|
"_disabled"?: boolean;
|
|
6604
|
+
/**
|
|
6605
|
+
* Hides the clear button.
|
|
6606
|
+
* @default false
|
|
6607
|
+
*/
|
|
6608
|
+
"_hideClearButton"?: boolean;
|
|
6594
6609
|
/**
|
|
6595
6610
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
6596
6611
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -8582,7 +8597,7 @@ declare namespace LocalJSX {
|
|
|
8582
8597
|
}
|
|
8583
8598
|
interface KolSingleSelect {
|
|
8584
8599
|
/**
|
|
8585
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
8600
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
8586
8601
|
*/
|
|
8587
8602
|
"_accessKey"?: string;
|
|
8588
8603
|
/**
|
|
@@ -9318,9 +9333,7 @@ type ControllerBaseProps<TControl = Control<any>> = {
|
|
|
9318
9333
|
shouldUnregister?: boolean;
|
|
9319
9334
|
disabled?: boolean;
|
|
9320
9335
|
};
|
|
9321
|
-
type ExtractProps<T> = T extends React.ComponentType<infer P> ? P : T extends React.ForwardRefExoticComponent<infer P> ? P : never;
|
|
9322
9336
|
type ControllerComponent<P> = React.ForwardRefExoticComponent<P & ControllerBaseProps<any> & RefAttributes<HTMLElement>>;
|
|
9323
|
-
declare function withController<T extends React.ComponentType<any>>(Component: T, valueProp?: string): ControllerComponent<ExtractProps<T>>;
|
|
9324
9337
|
declare const KolInputTextController: ControllerComponent<LocalJSX.KolInputText & Omit<React.HTMLAttributes<HTMLKolInputTextElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputTextElement>>;
|
|
9325
9338
|
declare const KolInputPasswordController: ControllerComponent<LocalJSX.KolInputPassword & Omit<React.HTMLAttributes<HTMLKolInputPasswordElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputPasswordElement>>;
|
|
9326
9339
|
declare const KolInputEmailController: ControllerComponent<LocalJSX.KolInputEmail & Omit<React.HTMLAttributes<HTMLKolInputEmailElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputEmailElement>>;
|
|
@@ -9336,5 +9349,5 @@ declare const KolSingleSelectController: ControllerComponent<LocalJSX.KolSingleS
|
|
|
9336
9349
|
declare const KolInputRadioController: ControllerComponent<LocalJSX.KolInputRadio & Omit<React.HTMLAttributes<HTMLKolInputRadioElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputRadioElement>>;
|
|
9337
9350
|
declare const KolInputCheckboxController: ControllerComponent<LocalJSX.KolInputCheckbox & Omit<React.HTMLAttributes<HTMLKolInputCheckboxElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputCheckboxElement>>;
|
|
9338
9351
|
|
|
9339
|
-
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController
|
|
9352
|
+
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController };
|
|
9340
9353
|
export type { ComboboxAPI, InputCheckboxAPI, InputColorAPI, InputDateAPI, InputEmailAPI, InputFileAPI, InputNumberAPI, InputPasswordAPI, InputRadioAPI, InputRangeAPI, InputTextAPI, SelectAPI, SingleSelectAPI, TextareaAPI };
|
package/dist/index.d.ts
CHANGED
|
@@ -1418,6 +1418,9 @@ type InputTypeOnFocus = {
|
|
|
1418
1418
|
type InputTypeOnInput = {
|
|
1419
1419
|
[Callback$1.onInput]?: EventValueOrEventCallback<Event, unknown>;
|
|
1420
1420
|
};
|
|
1421
|
+
type InputTypeOnKeyDown = {
|
|
1422
|
+
[Callback$1.onKeyDown]?: EventCallback<KeyboardEvent>;
|
|
1423
|
+
};
|
|
1421
1424
|
type Option<T> = {
|
|
1422
1425
|
disabled?: boolean;
|
|
1423
1426
|
label: string | number;
|
|
@@ -1432,7 +1435,7 @@ type Optgroup<T> = {
|
|
|
1432
1435
|
options: Option<T>[];
|
|
1433
1436
|
};
|
|
1434
1437
|
type SelectOption<T> = Option<T> | Optgroup<T> | RadioOption<T>;
|
|
1435
|
-
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput;
|
|
1438
|
+
type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput & InputTypeOnKeyDown;
|
|
1436
1439
|
|
|
1437
1440
|
type KoliBriModalEventCallbacks = {
|
|
1438
1441
|
onClose?: () => void;
|
|
@@ -1457,6 +1460,8 @@ type KoliBriTableHeaderCell = KoliBriTableCell & {
|
|
|
1457
1460
|
key?: string;
|
|
1458
1461
|
sortDirection?: KoliBriSortDirection;
|
|
1459
1462
|
hidable?: boolean;
|
|
1463
|
+
sortable?: boolean;
|
|
1464
|
+
resizable?: boolean;
|
|
1460
1465
|
};
|
|
1461
1466
|
type KoliBriTableSelection = {
|
|
1462
1467
|
label: (row: KoliBriTableDataType) => string;
|
|
@@ -1470,7 +1475,8 @@ interface ColumnSettings {
|
|
|
1470
1475
|
hidable?: boolean;
|
|
1471
1476
|
key: string;
|
|
1472
1477
|
label: string;
|
|
1473
|
-
|
|
1478
|
+
sortable?: boolean;
|
|
1479
|
+
resizable?: boolean;
|
|
1474
1480
|
visible: boolean;
|
|
1475
1481
|
width?: number;
|
|
1476
1482
|
}
|
|
@@ -1681,8 +1687,9 @@ type PlaceholderPropType = string;
|
|
|
1681
1687
|
|
|
1682
1688
|
type PopoverAlignPropType = AlignPropType;
|
|
1683
1689
|
|
|
1690
|
+
type PopoverCloseEvent = MouseEvent | KeyboardEvent | ToggleEvent;
|
|
1684
1691
|
type PopoverCallbacksPropType = {
|
|
1685
|
-
[Callback$1.onClose]?: EventCallback<
|
|
1692
|
+
[Callback$1.onClose]?: EventCallback<PopoverCloseEvent>;
|
|
1686
1693
|
};
|
|
1687
1694
|
|
|
1688
1695
|
type ReadOnlyPropType = boolean;
|
|
@@ -1720,8 +1727,8 @@ type SortEventPayload = {
|
|
|
1720
1727
|
key: string;
|
|
1721
1728
|
currentSortDirection: KoliBriSortDirection;
|
|
1722
1729
|
};
|
|
1723
|
-
type SelectionChangeEventPayload = KoliBriTableSelectionKeys
|
|
1724
|
-
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] |
|
|
1730
|
+
type SelectionChangeEventPayload = KoliBriTableSelectionKeys;
|
|
1731
|
+
type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | null;
|
|
1725
1732
|
type TableCallbacksPropType = {
|
|
1726
1733
|
[Callback$1.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;
|
|
1727
1734
|
[Callback$1.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;
|
|
@@ -1815,6 +1822,7 @@ type KoliBriCardEventCallbacks = {
|
|
|
1815
1822
|
|
|
1816
1823
|
type RequiredProps$e = PropLabelWithExpertSlot & PropSuggestions;
|
|
1817
1824
|
type OptionalProps$e = {
|
|
1825
|
+
hideClearButton: boolean;
|
|
1818
1826
|
msg: Stringified<MsgPropType>;
|
|
1819
1827
|
on: InputTypeOnDefault;
|
|
1820
1828
|
placeholder: string;
|
|
@@ -1822,6 +1830,7 @@ type OptionalProps$e = {
|
|
|
1822
1830
|
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched;
|
|
1823
1831
|
type RequiredStates$d = {
|
|
1824
1832
|
hasValue: boolean;
|
|
1833
|
+
hideClearButton: boolean;
|
|
1825
1834
|
suggestions: W3CInputValue[];
|
|
1826
1835
|
value: string;
|
|
1827
1836
|
} & PropId & PropHideMsg & PropLabelWithExpertSlot;
|
|
@@ -2680,10 +2689,6 @@ declare namespace Components {
|
|
|
2680
2689
|
* Defines the value that the button emits on click.
|
|
2681
2690
|
*/
|
|
2682
2691
|
"_value"?: StencilUnknown;
|
|
2683
|
-
/**
|
|
2684
|
-
* Hides the tooltip.
|
|
2685
|
-
*/
|
|
2686
|
-
"hideTooltip": () => Promise<void>;
|
|
2687
2692
|
/**
|
|
2688
2693
|
* Sets focus on the internal element.
|
|
2689
2694
|
*/
|
|
@@ -2741,6 +2746,11 @@ declare namespace Components {
|
|
|
2741
2746
|
* @default false
|
|
2742
2747
|
*/
|
|
2743
2748
|
"_disabled"?: boolean;
|
|
2749
|
+
/**
|
|
2750
|
+
* Hides the clear button.
|
|
2751
|
+
* @default false
|
|
2752
|
+
*/
|
|
2753
|
+
"_hideClearButton"?: boolean;
|
|
2744
2754
|
/**
|
|
2745
2755
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
2746
2756
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -4985,7 +4995,7 @@ declare namespace Components {
|
|
|
4985
4995
|
}
|
|
4986
4996
|
interface KolSingleSelect {
|
|
4987
4997
|
/**
|
|
4988
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
4998
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
4989
4999
|
*/
|
|
4990
5000
|
"_accessKey"?: string;
|
|
4991
5001
|
/**
|
|
@@ -5280,7 +5290,7 @@ declare namespace Components {
|
|
|
5280
5290
|
/**
|
|
5281
5291
|
* Returns the selected rows.
|
|
5282
5292
|
*/
|
|
5283
|
-
"getSelection": () => Promise<KoliBriTableDataType[] |
|
|
5293
|
+
"getSelection": () => Promise<KoliBriTableDataType[] | null>;
|
|
5284
5294
|
}
|
|
5285
5295
|
interface KolTableStateless {
|
|
5286
5296
|
/**
|
|
@@ -6591,6 +6601,11 @@ declare namespace LocalJSX {
|
|
|
6591
6601
|
* @default false
|
|
6592
6602
|
*/
|
|
6593
6603
|
"_disabled"?: boolean;
|
|
6604
|
+
/**
|
|
6605
|
+
* Hides the clear button.
|
|
6606
|
+
* @default false
|
|
6607
|
+
*/
|
|
6608
|
+
"_hideClearButton"?: boolean;
|
|
6594
6609
|
/**
|
|
6595
6610
|
* Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it.
|
|
6596
6611
|
* @TODO : Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.
|
|
@@ -8582,7 +8597,7 @@ declare namespace LocalJSX {
|
|
|
8582
8597
|
}
|
|
8583
8598
|
interface KolSingleSelect {
|
|
8584
8599
|
/**
|
|
8585
|
-
* Defines the key combination that can be used to trigger or focus the component
|
|
8600
|
+
* Defines the key combination that can be used to trigger or focus the component's interactive element.
|
|
8586
8601
|
*/
|
|
8587
8602
|
"_accessKey"?: string;
|
|
8588
8603
|
/**
|
|
@@ -9318,9 +9333,7 @@ type ControllerBaseProps<TControl = Control<any>> = {
|
|
|
9318
9333
|
shouldUnregister?: boolean;
|
|
9319
9334
|
disabled?: boolean;
|
|
9320
9335
|
};
|
|
9321
|
-
type ExtractProps<T> = T extends React.ComponentType<infer P> ? P : T extends React.ForwardRefExoticComponent<infer P> ? P : never;
|
|
9322
9336
|
type ControllerComponent<P> = React.ForwardRefExoticComponent<P & ControllerBaseProps<any> & RefAttributes<HTMLElement>>;
|
|
9323
|
-
declare function withController<T extends React.ComponentType<any>>(Component: T, valueProp?: string): ControllerComponent<ExtractProps<T>>;
|
|
9324
9337
|
declare const KolInputTextController: ControllerComponent<LocalJSX.KolInputText & Omit<React.HTMLAttributes<HTMLKolInputTextElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputTextElement>>;
|
|
9325
9338
|
declare const KolInputPasswordController: ControllerComponent<LocalJSX.KolInputPassword & Omit<React.HTMLAttributes<HTMLKolInputPasswordElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputPasswordElement>>;
|
|
9326
9339
|
declare const KolInputEmailController: ControllerComponent<LocalJSX.KolInputEmail & Omit<React.HTMLAttributes<HTMLKolInputEmailElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputEmailElement>>;
|
|
@@ -9336,5 +9349,5 @@ declare const KolSingleSelectController: ControllerComponent<LocalJSX.KolSingleS
|
|
|
9336
9349
|
declare const KolInputRadioController: ControllerComponent<LocalJSX.KolInputRadio & Omit<React.HTMLAttributes<HTMLKolInputRadioElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputRadioElement>>;
|
|
9337
9350
|
declare const KolInputCheckboxController: ControllerComponent<LocalJSX.KolInputCheckbox & Omit<React.HTMLAttributes<HTMLKolInputCheckboxElement>, "style"> & _public_ui_react_v19.StyleReactProps & React.RefAttributes<HTMLKolInputCheckboxElement>>;
|
|
9338
9351
|
|
|
9339
|
-
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController
|
|
9352
|
+
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController };
|
|
9340
9353
|
export type { ComboboxAPI, InputCheckboxAPI, InputColorAPI, InputDateAPI, InputEmailAPI, InputFileAPI, InputNumberAPI, InputPasswordAPI, InputRadioAPI, InputRangeAPI, InputTextAPI, SelectAPI, SingleSelectAPI, TextareaAPI };
|
package/dist/index.mjs
CHANGED
|
@@ -74,4 +74,4 @@ const KolSingleSelectController = withController(KolSingleSelect, "_value");
|
|
|
74
74
|
const KolInputRadioController = withController(KolInputRadio, "_value");
|
|
75
75
|
const KolInputCheckboxController = withController(KolInputCheckbox, "_checked");
|
|
76
76
|
|
|
77
|
-
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController
|
|
77
|
+
export { KolComboboxController, KolInputCheckboxController, KolInputColorController, KolInputDateController, KolInputEmailController, KolInputFileController, KolInputNumberController, KolInputPasswordController, KolInputRadioController, KolInputRangeController, KolInputTextController, KolSelectController, KolSingleSelectController, KolTextareaController };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/react-hook-form-adapter",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.7",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -46,25 +46,25 @@
|
|
|
46
46
|
"react-hook-form"
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/react": "19.2.
|
|
50
|
-
"@types/react-dom": "19.2.
|
|
49
|
+
"@types/react": "19.2.7",
|
|
50
|
+
"@types/react-dom": "19.2.3",
|
|
51
51
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
52
52
|
"@typescript-eslint/parser": "7.18.0",
|
|
53
53
|
"eslint": "8.57.1",
|
|
54
|
-
"prettier": "3.
|
|
54
|
+
"prettier": "3.7.3",
|
|
55
55
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
56
56
|
"react": "19.2.0",
|
|
57
57
|
"react-dom": "19.2.0",
|
|
58
58
|
"react-hook-form": "7.63.0",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
60
|
"unbuild": "3.6.1",
|
|
61
|
-
"@public-ui/
|
|
62
|
-
"@public-ui/
|
|
61
|
+
"@public-ui/components": "4.0.0-alpha.7",
|
|
62
|
+
"@public-ui/react-v19": "4.0.0-alpha.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^19",
|
|
66
66
|
"react-hook-form": "^7",
|
|
67
|
-
"@public-ui/react-v19": "4.0.0-alpha.
|
|
67
|
+
"@public-ui/react-v19": "4.0.0-alpha.7"
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
70
|
"type": "module",
|