@koobiq/react-components 0.7.1 → 0.8.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/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/DateInput/DateInput.js +14 -8
- package/dist/components/DateInput/types.d.ts +19 -3
- package/dist/components/DateInput/types.js +5 -0
- package/dist/components/DatePicker/DatePicker.js +5 -1
- package/dist/components/DatePicker/types.d.ts +13 -1
- package/dist/components/Dialog/components/DialogCloseButton.d.ts +2 -2
- package/dist/components/FieldComponents/Field/Field.d.ts +4 -0
- package/dist/components/FieldComponents/Field/Field.js +10 -0
- package/dist/components/FieldComponents/Field/Field.module.css.js +8 -0
- package/dist/components/FieldComponents/Field/index.d.ts +2 -0
- package/dist/components/FieldComponents/Field/types.d.ts +4 -0
- package/dist/components/FieldComponents/index.d.ts +1 -2
- package/dist/components/FormControl/FormControl.d.ts +4 -0
- package/dist/components/FormControl/FormControl.js +33 -0
- package/dist/components/FormControl/FormControl.module.css.js +17 -0
- package/dist/components/FormControl/index.d.ts +2 -0
- package/dist/components/FormControl/types.d.ts +19 -0
- package/dist/components/FormControl/types.js +6 -0
- package/dist/components/FormControlLabel/FormControlLabel.d.ts +4 -2
- package/dist/components/{FieldComponents/FieldLabel/FieldLabel.js → FormControlLabel/FormControlLabel.js} +14 -7
- package/dist/components/FormControlLabel/FormControlLabel.module.css.js +14 -0
- package/dist/components/FormControlLabel/types.d.ts +6 -31
- package/dist/components/Input/Input.d.ts +8 -4
- package/dist/components/Input/Input.js +14 -8
- package/dist/components/Input/types.d.ts +19 -3
- package/dist/components/Input/types.js +5 -0
- package/dist/components/InputNumber/InputNumber.d.ts +8 -4
- package/dist/components/InputNumber/InputNumber.js +14 -8
- package/dist/components/InputNumber/types.d.ts +19 -3
- package/dist/components/InputNumber/types.js +5 -0
- package/dist/components/List/components/ListSection/ListSection.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +71 -18
- package/dist/components/RadioGroup/RadioGroup.module.css.js +8 -0
- package/dist/components/RadioGroup/components/Radio/Radio.d.ts +1 -1
- package/dist/components/RadioGroup/components/index.d.ts +0 -2
- package/dist/components/RadioGroup/types.d.ts +40 -5
- package/dist/components/RadioGroup/types.js +5 -0
- package/dist/components/SearchInput/SearchInput.d.ts +8 -4
- package/dist/components/SearchInput/SearchInput.js +14 -8
- package/dist/components/SearchInput/types.d.ts +19 -3
- package/dist/components/SearchInput/types.js +5 -0
- package/dist/components/Select/Select.js +20 -13
- package/dist/components/Select/Select.module.css.js +0 -6
- package/dist/components/Select/types.d.ts +18 -2
- package/dist/components/Select/types.js +5 -0
- package/dist/components/Textarea/Textarea.d.ts +4 -2
- package/dist/components/Textarea/Textarea.js +7 -4
- package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.d.ts +1 -1
- package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.js +9 -9
- package/dist/components/Textarea/types.d.ts +18 -2
- package/dist/components/Textarea/types.js +5 -0
- package/dist/components/TimePicker/TimePicker.js +21 -15
- package/dist/components/TimePicker/types.d.ts +19 -3
- package/dist/components/TimePicker/types.js +7 -0
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +31 -11
- package/dist/style.css +96 -80
- package/package.json +5 -5
- package/dist/components/FieldComponents/FieldControl/FieldControl.d.ts +0 -8
- package/dist/components/FieldComponents/FieldControl/FieldControl.js +0 -17
- package/dist/components/FieldComponents/FieldControl/FieldControl.module.css.js +0 -11
- package/dist/components/FieldComponents/FieldControl/index.d.ts +0 -1
- package/dist/components/FieldComponents/FieldLabel/FieldLabel.d.ts +0 -9
- package/dist/components/FieldComponents/FieldLabel/FieldLabel.module.css.js +0 -14
- package/dist/components/FieldComponents/FieldLabel/index.d.ts +0 -1
- package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.d.ts +0 -7
- package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.js +0 -21
- package/dist/components/RadioGroup/components/RadioGroupDescription/index.d.ts +0 -1
- package/dist/components/RadioGroup/components/RadioGroupLabel/RadioGroupLabel.d.ts +0 -6
- package/dist/components/RadioGroup/components/RadioGroupLabel/RadioGroupLabel.js +0 -14
- package/dist/components/RadioGroup/components/RadioGroupLabel/index.d.ts +0 -1
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { formControlPropLabelPlacement, formControlPropLabelAlign } from "../FormControl/types.js";
|
|
1
2
|
const selectPropSelectedTagsOverflow = [
|
|
2
3
|
"multiline",
|
|
3
4
|
"responsive"
|
|
4
5
|
];
|
|
6
|
+
const selectPropLabelPlacement = formControlPropLabelPlacement;
|
|
7
|
+
const selectPropLabelAlign = formControlPropLabelAlign;
|
|
5
8
|
export {
|
|
9
|
+
selectPropLabelAlign,
|
|
10
|
+
selectPropLabelPlacement,
|
|
6
11
|
selectPropSelectedTagsOverflow
|
|
7
12
|
};
|
|
@@ -4,20 +4,22 @@ export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
4
4
|
required?: boolean;
|
|
5
5
|
hiddenLabel?: boolean;
|
|
6
6
|
readonly?: boolean;
|
|
7
|
-
} & Omit<import("@koobiq/react-primitives").TextFieldProps<HTMLTextAreaElement>, "children" | "style" | "className" | "validationState" | "validationBehavior" | "validate" | "description" | "inputElementType">, "caption" | "style" | "className" | "cols" | "rows" | "
|
|
7
|
+
} & Omit<import("@koobiq/react-primitives").TextFieldProps<HTMLTextAreaElement>, "children" | "style" | "className" | "validationState" | "validationBehavior" | "validate" | "description" | "inputElementType">, "caption" | "style" | "className" | "cols" | "rows" | "labelPlacement" | "labelAlign" | "fullWidth" | "variant" | "slotProps" | "data-testid" | "errorMessage" | "isLabelHidden" | "expand"> & {
|
|
8
8
|
className?: string;
|
|
9
9
|
style?: import("react").CSSProperties;
|
|
10
10
|
variant?: import("./types").TextareaPropVariant;
|
|
11
11
|
errorMessage?: import("react").ReactNode;
|
|
12
12
|
fullWidth?: boolean;
|
|
13
13
|
isLabelHidden?: boolean;
|
|
14
|
+
labelPlacement?: import("./types").TextareaPropLabelPlacement;
|
|
15
|
+
labelAlign?: import("./types").TextareaPropLabelAlign;
|
|
14
16
|
caption?: import("react").ReactNode;
|
|
15
17
|
rows?: number;
|
|
16
18
|
cols?: number;
|
|
17
19
|
expand?: import("./types").TextareaPropExpand;
|
|
18
20
|
'data-testid'?: string | number;
|
|
19
21
|
slotProps?: {
|
|
20
|
-
label?: import("
|
|
22
|
+
label?: import("..").FormControlLabelProps;
|
|
21
23
|
caption?: import("../FieldComponents").FieldCaptionProps;
|
|
22
24
|
textarea?: import("../FieldComponents").FieldInputProps<"textarea">;
|
|
23
25
|
errorMessage?: import("../FieldComponents").FieldErrorProps;
|
|
@@ -5,7 +5,7 @@ import { deprecate } from "@koobiq/logger";
|
|
|
5
5
|
import { mergeProps } from "@koobiq/react-core";
|
|
6
6
|
import { TextField } from "@koobiq/react-primitives";
|
|
7
7
|
import { TextareaContextConsumer } from "./components/TextareaContextConsumer/TextareaContextConsumer.js";
|
|
8
|
-
import {
|
|
8
|
+
import { FormControl } from "../FormControl/FormControl.js";
|
|
9
9
|
const Textarea = forwardRef((props, ref) => {
|
|
10
10
|
const {
|
|
11
11
|
variant = "filled",
|
|
@@ -20,6 +20,8 @@ const Textarea = forwardRef((props, ref) => {
|
|
|
20
20
|
isRequired: isRequiredProp,
|
|
21
21
|
readonly,
|
|
22
22
|
isReadOnly: isReadOnlyProp,
|
|
23
|
+
labelPlacement,
|
|
24
|
+
labelAlign,
|
|
23
25
|
rows,
|
|
24
26
|
cols,
|
|
25
27
|
expand,
|
|
@@ -68,12 +70,13 @@ const Textarea = forwardRef((props, ref) => {
|
|
|
68
70
|
isReadOnly,
|
|
69
71
|
isInvalid,
|
|
70
72
|
errorMessage,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
labelPlacement,
|
|
74
|
+
labelAlign,
|
|
75
|
+
"data-variant": variant
|
|
73
76
|
},
|
|
74
77
|
other
|
|
75
78
|
);
|
|
76
|
-
return /* @__PURE__ */ jsx(
|
|
79
|
+
return /* @__PURE__ */ jsx(FormControl, { as: TextField, inputElementType: "textarea", ...rootProps, children: (values) => /* @__PURE__ */ jsx(
|
|
77
80
|
TextareaContextConsumer,
|
|
78
81
|
{
|
|
79
82
|
...values,
|
package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare const TextareaContextConsumer: import("react").ForwardRefExoticCo
|
|
|
3
3
|
isRequired?: boolean;
|
|
4
4
|
isInvalid?: boolean;
|
|
5
5
|
isDisabled?: boolean;
|
|
6
|
-
} & Pick<TextareaProps, "caption" | "label" | "cols" | "rows" | "variant" | "slotProps" | "errorMessage" | "isLabelHidden" | "expand"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
} & Pick<TextareaProps, "caption" | "label" | "cols" | "rows" | "labelPlacement" | "variant" | "slotProps" | "errorMessage" | "isLabelHidden" | "expand"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.js
CHANGED
|
@@ -4,7 +4,8 @@ import { useDOMRef, mergeProps } from "@koobiq/react-core";
|
|
|
4
4
|
import { useTextareaContext } from "@koobiq/react-primitives";
|
|
5
5
|
import s from "../../Textarea.module.css.js";
|
|
6
6
|
import { useTextareaAutosize } from "../../utils/useTextareaAutosize.js";
|
|
7
|
-
import {
|
|
7
|
+
import { FormControlLabel } from "../../../FormControlLabel/FormControlLabel.js";
|
|
8
|
+
import { Field } from "../../../FieldComponents/Field/Field.js";
|
|
8
9
|
import { FieldContentGroup } from "../../../FieldComponents/FieldContentGroup/FieldContentGroup.js";
|
|
9
10
|
import { FieldInput } from "../../../FieldComponents/FieldInput/FieldInput.js";
|
|
10
11
|
import { FieldCaption } from "../../../FieldComponents/FieldCaption/FieldCaption.js";
|
|
@@ -50,15 +51,14 @@ const TextareaContextConsumer = forwardRef((props, ref) => {
|
|
|
50
51
|
isInvalid,
|
|
51
52
|
isDisabled
|
|
52
53
|
};
|
|
53
|
-
const labelProps = mergeProps(
|
|
54
|
-
{ isHidden: isLabelHidden, children: label, isRequired },
|
|
55
|
-
slotProps?.label
|
|
56
|
-
);
|
|
54
|
+
const labelProps = mergeProps({ isHidden: isLabelHidden, children: label, isRequired }, slotProps?.label);
|
|
57
55
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58
|
-
/* @__PURE__ */ jsx(
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
/* @__PURE__ */ jsx(FormControlLabel, { ...labelProps }),
|
|
57
|
+
/* @__PURE__ */ jsxs(Field, { children: [
|
|
58
|
+
/* @__PURE__ */ jsx(FieldContentGroup, { ...groupProps, children: /* @__PURE__ */ jsx(FieldInput, { as: "textarea", ...textareaProps }) }),
|
|
59
|
+
/* @__PURE__ */ jsx(FieldCaption, { ...captionProps }),
|
|
60
|
+
/* @__PURE__ */ jsx(FieldError, { ...errorProps })
|
|
61
|
+
] })
|
|
62
62
|
] });
|
|
63
63
|
});
|
|
64
64
|
TextareaContextConsumer.displayName = "TextareaContextConsumer";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { ComponentRef, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { ExtendableProps } from '@koobiq/react-core';
|
|
3
3
|
import type { TextFieldProps } from '@koobiq/react-primitives';
|
|
4
|
-
import { type FieldCaptionProps, type FieldContentGroupPropVariant, type FieldErrorProps, type FieldInputProps
|
|
4
|
+
import { type FieldCaptionProps, type FieldContentGroupPropVariant, type FieldErrorProps, type FieldInputProps } from '../FieldComponents';
|
|
5
|
+
import { type FormControlPropLabelAlign, type FormControlPropLabelPlacement } from '../FormControl';
|
|
6
|
+
import type { FormControlLabelProps } from '../FormControlLabel';
|
|
5
7
|
export declare const textareaPropVariant: readonly ["filled", "transparent"];
|
|
6
8
|
export type TextareaPropVariant = FieldContentGroupPropVariant;
|
|
7
9
|
export declare const textareaPropExpand: readonly ["auto-size", "vertical-resize"];
|
|
8
10
|
export type TextareaPropExpand = (typeof textareaPropExpand)[number];
|
|
11
|
+
export declare const textareaPropLabelPlacement: readonly ["top", "side"];
|
|
12
|
+
export type TextareaPropLabelPlacement = FormControlPropLabelPlacement;
|
|
13
|
+
export declare const textareaPropLabelAlign: readonly ["start", "end"];
|
|
14
|
+
export type TextareaPropLabelAlign = FormControlPropLabelAlign;
|
|
9
15
|
type TextareaDeprecatedProps = {
|
|
10
16
|
/**
|
|
11
17
|
* If `true`, the component is disabled.
|
|
@@ -65,6 +71,16 @@ export type TextareaProps = ExtendableProps<{
|
|
|
65
71
|
* @default false
|
|
66
72
|
*/
|
|
67
73
|
isLabelHidden?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The label's overall position relative to the element it is labeling.
|
|
76
|
+
* @default 'top'
|
|
77
|
+
*/
|
|
78
|
+
labelPlacement?: TextareaPropLabelPlacement;
|
|
79
|
+
/**
|
|
80
|
+
* The label's horizontal alignment relative to the element it is labeling.
|
|
81
|
+
* @default 'start'
|
|
82
|
+
*/
|
|
83
|
+
labelAlign?: TextareaPropLabelAlign;
|
|
68
84
|
/** The helper text content. */
|
|
69
85
|
caption?: ReactNode;
|
|
70
86
|
/** The rows property specifies the visible height of a text area, in lines. */
|
|
@@ -82,7 +98,7 @@ export type TextareaProps = ExtendableProps<{
|
|
|
82
98
|
'data-testid'?: string | number;
|
|
83
99
|
/** The props used for each slot inside. */
|
|
84
100
|
slotProps?: {
|
|
85
|
-
label?:
|
|
101
|
+
label?: FormControlLabelProps;
|
|
86
102
|
caption?: FieldCaptionProps;
|
|
87
103
|
textarea?: FieldInputProps<'textarea'>;
|
|
88
104
|
errorMessage?: FieldErrorProps;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { fieldContentGroupPropVariant } from "../FieldComponents/FieldContentGroup/types.js";
|
|
2
|
+
import { formControlPropLabelPlacement, formControlPropLabelAlign } from "../FormControl/types.js";
|
|
2
3
|
const textareaPropVariant = fieldContentGroupPropVariant;
|
|
3
4
|
const textareaPropExpand = ["auto-size", "vertical-resize"];
|
|
5
|
+
const textareaPropLabelPlacement = formControlPropLabelPlacement;
|
|
6
|
+
const textareaPropLabelAlign = formControlPropLabelAlign;
|
|
4
7
|
export {
|
|
5
8
|
textareaPropExpand,
|
|
9
|
+
textareaPropLabelAlign,
|
|
10
|
+
textareaPropLabelPlacement,
|
|
6
11
|
textareaPropVariant
|
|
7
12
|
};
|
|
@@ -4,8 +4,9 @@ import { useLocale, useDOMRef, mergeProps, clsx } from "@koobiq/react-core";
|
|
|
4
4
|
import { IconClock16 } from "@koobiq/react-icons";
|
|
5
5
|
import { useTimeFieldState, removeDataAttributes, useTimeField } from "@koobiq/react-primitives";
|
|
6
6
|
import s from "./TimePicker.module.css.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { FormControl } from "../FormControl/FormControl.js";
|
|
8
|
+
import { FormControlLabel } from "../FormControlLabel/FormControlLabel.js";
|
|
9
|
+
import { Field } from "../FieldComponents/Field/Field.js";
|
|
9
10
|
import { FieldContentGroup } from "../FieldComponents/FieldContentGroup/FieldContentGroup.js";
|
|
10
11
|
import { FieldInputDate } from "../FieldComponents/FieldInputDate/FieldInputDate.js";
|
|
11
12
|
import { DateSegment } from "../DateSegment/DateSegment.js";
|
|
@@ -16,6 +17,8 @@ function TimePickerRender(props, ref) {
|
|
|
16
17
|
const domRef = useDOMRef(ref);
|
|
17
18
|
const {
|
|
18
19
|
isLabelHidden,
|
|
20
|
+
labelPlacement,
|
|
21
|
+
labelAlign,
|
|
19
22
|
caption,
|
|
20
23
|
label,
|
|
21
24
|
slotProps,
|
|
@@ -44,11 +47,12 @@ function TimePickerRender(props, ref) {
|
|
|
44
47
|
{
|
|
45
48
|
style,
|
|
46
49
|
fullWidth,
|
|
50
|
+
labelPlacement,
|
|
51
|
+
labelAlign,
|
|
47
52
|
"data-testid": testId,
|
|
48
53
|
"data-variant": variant,
|
|
49
54
|
"data-invalid": isInvalid,
|
|
50
55
|
"data-disabled": isDisabled,
|
|
51
|
-
"data-fullwidth": fullWidth,
|
|
52
56
|
"data-required": isRequired,
|
|
53
57
|
"data-readonly": isReadOnly,
|
|
54
58
|
className: clsx(s.base, className)
|
|
@@ -92,18 +96,20 @@ function TimePickerRender(props, ref) {
|
|
|
92
96
|
slotProps?.errorMessage,
|
|
93
97
|
errorMessageProps
|
|
94
98
|
);
|
|
95
|
-
return /* @__PURE__ */ jsxs(
|
|
96
|
-
/* @__PURE__ */ jsx(
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
return /* @__PURE__ */ jsxs(FormControl, { ...rootProps, children: [
|
|
100
|
+
/* @__PURE__ */ jsx(FormControlLabel, { ...labelProps }),
|
|
101
|
+
/* @__PURE__ */ jsxs(Field, { children: [
|
|
102
|
+
/* @__PURE__ */ jsx(
|
|
103
|
+
FieldContentGroup,
|
|
104
|
+
{
|
|
105
|
+
...groupProps,
|
|
106
|
+
slotProps: { startAddon: { className: s.startAddon } },
|
|
107
|
+
children: /* @__PURE__ */ jsx(FieldInputDate, { ...controlProps, children: state.segments.map((segment, i) => /* @__PURE__ */ jsx(DateSegment, { segment, state }, i)) })
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ jsx(FieldCaption, { ...captionProps }),
|
|
111
|
+
/* @__PURE__ */ jsx(FieldError, { ...errorProps })
|
|
112
|
+
] })
|
|
107
113
|
] });
|
|
108
114
|
}
|
|
109
115
|
const TimePicker = forwardRef(TimePickerRender);
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { ComponentRef, CSSProperties, ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import type { AriaTimeFieldProps, TimeValue } from '@koobiq/react-primitives';
|
|
3
3
|
import type { DateInputPropVariant } from '../DateInput';
|
|
4
|
-
import type
|
|
4
|
+
import { type FieldCaptionProps, type FieldErrorProps, type FieldInputDateProps, type FieldContentGroupProps } from '../FieldComponents';
|
|
5
|
+
import { type FormControlProps, type FormControlPropLabelAlign, type FormControlPropLabelPlacement } from '../FormControl';
|
|
6
|
+
import type { FormControlLabelProps } from '../FormControlLabel';
|
|
7
|
+
export declare const timePickerPropLabelPlacement: readonly ["top", "side"];
|
|
8
|
+
export type TimePickerPropLabelPlacement = FormControlPropLabelPlacement;
|
|
9
|
+
export declare const timePickerPropLabelAlign: readonly ["start", "end"];
|
|
10
|
+
export type TimePickerPropLabelAlign = FormControlPropLabelAlign;
|
|
5
11
|
export type TimePickerProps<T extends TimeValue> = {
|
|
6
12
|
/** Inline styles. */
|
|
7
13
|
style?: CSSProperties;
|
|
@@ -23,8 +29,8 @@ export type TimePickerProps<T extends TimeValue> = {
|
|
|
23
29
|
fullWidth?: boolean;
|
|
24
30
|
/** The props used for each slot inside. */
|
|
25
31
|
slotProps?: {
|
|
26
|
-
root?:
|
|
27
|
-
label?:
|
|
32
|
+
root?: FormControlProps;
|
|
33
|
+
label?: FormControlLabelProps;
|
|
28
34
|
group?: FieldContentGroupProps;
|
|
29
35
|
caption?: FieldCaptionProps;
|
|
30
36
|
inputDate?: FieldInputDateProps;
|
|
@@ -37,6 +43,16 @@ export type TimePickerProps<T extends TimeValue> = {
|
|
|
37
43
|
* @default false
|
|
38
44
|
*/
|
|
39
45
|
isLabelHidden?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The label's overall position relative to the element it is labeling.
|
|
48
|
+
* @default 'top'
|
|
49
|
+
*/
|
|
50
|
+
labelPlacement?: TimePickerPropLabelPlacement;
|
|
51
|
+
/**
|
|
52
|
+
* The label's horizontal alignment relative to the element it is labeling.
|
|
53
|
+
* @default 'start'
|
|
54
|
+
*/
|
|
55
|
+
labelAlign?: TimePickerPropLabelAlign;
|
|
40
56
|
/** Addon placed before the children. */
|
|
41
57
|
startAddon?: ReactNode;
|
|
42
58
|
/** Addon placed after the children. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { formControlPropLabelPlacement, formControlPropLabelAlign } from "../FormControl/types.js";
|
|
2
|
+
const timePickerPropLabelPlacement = formControlPropLabelPlacement;
|
|
3
|
+
const timePickerPropLabelAlign = formControlPropLabelAlign;
|
|
4
|
+
export {
|
|
5
|
+
timePickerPropLabelAlign,
|
|
6
|
+
timePickerPropLabelPlacement
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SwitchProps } from '@koobiq/react-primitives';
|
|
2
|
-
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<Omit<SwitchProps, "inputRef">, "children" | "style" | "className" | "size" | "
|
|
2
|
+
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<Omit<SwitchProps, "inputRef">, "children" | "style" | "className" | "size" | "labelPlacement" | "slotProps" | keyof {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
error?: boolean;
|
|
5
5
|
checked?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<import("@react-types/tooltip").TooltipTriggerProps, "children" | "className" | "id" | "offset" |
|
|
1
|
+
export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<import("@react-types/tooltip").TooltipTriggerProps, "children" | "className" | "id" | "offset" | `data-${string}` | "variant" | "placement" | "control" | "portalContainer" | "anchorRef" | "hideArrow" | "arrowBoundaryOffset" | "crossOffset" | "delay" | "closeDelay" | keyof {
|
|
2
2
|
open?: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,9 @@ import { BreakpointsContext, useBreakpoints, useMatchedBreakpoints } from "./com
|
|
|
8
8
|
import { FlexBox } from "./components/FlexBox/FlexBox.js";
|
|
9
9
|
import { Container } from "./components/Container/Container.js";
|
|
10
10
|
import { containerMarginsProp, containerPositionProp } from "./components/Container/types.js";
|
|
11
|
+
import { FormControl } from "./components/FormControl/FormControl.js";
|
|
12
|
+
import { formControlPropLabelAlign, formControlPropLabelPlacement } from "./components/FormControl/types.js";
|
|
13
|
+
import { FormControlLabel } from "./components/FormControlLabel/FormControlLabel.js";
|
|
11
14
|
import { Alert } from "./components/Alert/Alert.js";
|
|
12
15
|
import { alertPropStatus } from "./components/Alert/types.js";
|
|
13
16
|
import { Button } from "./components/Button/Button.js";
|
|
@@ -22,18 +25,16 @@ import { Link } from "./components/Link/Link.js";
|
|
|
22
25
|
import { Badge } from "./components/Badge/Badge.js";
|
|
23
26
|
import { badgePropSize, badgePropVariant } from "./components/Badge/types.js";
|
|
24
27
|
import { Input } from "./components/Input/Input.js";
|
|
25
|
-
import { inputPropVariant } from "./components/Input/types.js";
|
|
28
|
+
import { inputPropLabelAlign, inputPropLabelPlacement, inputPropVariant } from "./components/Input/types.js";
|
|
26
29
|
import { Textarea } from "./components/Textarea/Textarea.js";
|
|
27
|
-
import { textareaPropExpand, textareaPropVariant } from "./components/Textarea/types.js";
|
|
30
|
+
import { textareaPropExpand, textareaPropLabelAlign, textareaPropLabelPlacement, textareaPropVariant } from "./components/Textarea/types.js";
|
|
28
31
|
import { InputNumber } from "./components/InputNumber/InputNumber.js";
|
|
29
|
-
import { inputNumberPropVariant } from "./components/InputNumber/types.js";
|
|
32
|
+
import { inputNumberPropLabelAlign, inputNumberPropLabelPlacement, inputNumberPropVariant } from "./components/InputNumber/types.js";
|
|
30
33
|
import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
|
|
31
34
|
import { RadioGroupContext, useRadioGroupState } from "./components/RadioGroup/RadioContext.js";
|
|
32
35
|
import { Radio } from "./components/RadioGroup/components/Radio/Radio.js";
|
|
33
36
|
import { radioPropLabelPlacement, radioPropSize } from "./components/RadioGroup/components/Radio/types.js";
|
|
34
|
-
import {
|
|
35
|
-
import { RadioGroupDescription } from "./components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.js";
|
|
36
|
-
import { radioGroupPropOrientation, radioGroupPropSize } from "./components/RadioGroup/types.js";
|
|
37
|
+
import { radioGroupPropLabelAlign, radioGroupPropLabelPlacement, radioGroupPropOrientation, radioGroupPropSize } from "./components/RadioGroup/types.js";
|
|
37
38
|
import { Toggle } from "./components/Toggle/Toggle.js";
|
|
38
39
|
import { togglePropLabelPlacement, togglePropSize } from "./components/Toggle/types.js";
|
|
39
40
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
|
|
@@ -62,7 +63,7 @@ import { List, ListInner } from "./components/List/List.js";
|
|
|
62
63
|
import { ListItemText } from "./components/List/components/ListItemText/ListItemText.js";
|
|
63
64
|
import { AnimatedIcon } from "./components/AnimatedIcon/AnimatedIcon.js";
|
|
64
65
|
import { Select } from "./components/Select/Select.js";
|
|
65
|
-
import { selectPropSelectedTagsOverflow } from "./components/Select/types.js";
|
|
66
|
+
import { selectPropLabelAlign, selectPropLabelPlacement, selectPropSelectedTagsOverflow } from "./components/Select/types.js";
|
|
66
67
|
import { Divider } from "./components/Divider/Divider.js";
|
|
67
68
|
import { dividerPropDisplay } from "./components/Divider/types.js";
|
|
68
69
|
import { Menu } from "./components/Menu/Menu.js";
|
|
@@ -75,11 +76,12 @@ import { Table } from "./components/Table/Table.js";
|
|
|
75
76
|
import { TableContainer } from "./components/Table/components/TableContainer/TableContainer.js";
|
|
76
77
|
import { Calendar } from "./components/Calendar/Calendar.js";
|
|
77
78
|
import { DateInput, DateInputRender } from "./components/DateInput/DateInput.js";
|
|
78
|
-
import { dateInputPropVariant } from "./components/DateInput/types.js";
|
|
79
|
+
import { dateInputPropLabelAlign, dateInputPropLabelPlacement, dateInputPropVariant } from "./components/DateInput/types.js";
|
|
79
80
|
import { DatePicker, DatePickerRender } from "./components/DatePicker/DatePicker.js";
|
|
80
81
|
import { TimePicker, TimePickerRender } from "./components/TimePicker/TimePicker.js";
|
|
82
|
+
import { timePickerPropLabelAlign, timePickerPropLabelPlacement } from "./components/TimePicker/types.js";
|
|
81
83
|
import { SearchInput } from "./components/SearchInput/SearchInput.js";
|
|
82
|
-
import { searchInputPropVariant } from "./components/SearchInput/types.js";
|
|
84
|
+
import { searchInputPropLabelAlign, searchInputPropLabelPlacement, searchInputPropVariant } from "./components/SearchInput/types.js";
|
|
83
85
|
import { flex, flexPropAlignItems, flexPropDirection, flexPropFlex, flexPropGap, flexPropJustifyContent, flexPropOrder, flexPropWrap } from "./components/layout/flex/flex.js";
|
|
84
86
|
import { spacing, spacingGap } from "./components/layout/spacing/spacing.js";
|
|
85
87
|
export {
|
|
@@ -100,6 +102,8 @@ export {
|
|
|
100
102
|
DatePickerRender,
|
|
101
103
|
Divider,
|
|
102
104
|
FlexBox,
|
|
105
|
+
FormControl,
|
|
106
|
+
FormControlLabel,
|
|
103
107
|
Grid,
|
|
104
108
|
GridItem,
|
|
105
109
|
IconButton,
|
|
@@ -127,8 +131,6 @@ export {
|
|
|
127
131
|
Radio,
|
|
128
132
|
RadioGroup,
|
|
129
133
|
RadioGroupContext,
|
|
130
|
-
RadioGroupDescription,
|
|
131
|
-
RadioGroupLabel,
|
|
132
134
|
RouterProvider,
|
|
133
135
|
SearchInput,
|
|
134
136
|
Select,
|
|
@@ -156,6 +158,8 @@ export {
|
|
|
156
158
|
checkboxPropSize,
|
|
157
159
|
containerMarginsProp,
|
|
158
160
|
containerPositionProp,
|
|
161
|
+
dateInputPropLabelAlign,
|
|
162
|
+
dateInputPropLabelPlacement,
|
|
159
163
|
dateInputPropVariant,
|
|
160
164
|
defaultBreakpoints,
|
|
161
165
|
dividerPropDisplay,
|
|
@@ -167,10 +171,16 @@ export {
|
|
|
167
171
|
flexPropJustifyContent,
|
|
168
172
|
flexPropOrder,
|
|
169
173
|
flexPropWrap,
|
|
174
|
+
formControlPropLabelAlign,
|
|
175
|
+
formControlPropLabelPlacement,
|
|
170
176
|
gridPropGap,
|
|
171
177
|
iconButtonPropSize,
|
|
172
178
|
iconButtonPropVariant,
|
|
179
|
+
inputNumberPropLabelAlign,
|
|
180
|
+
inputNumberPropLabelPlacement,
|
|
173
181
|
inputNumberPropVariant,
|
|
182
|
+
inputPropLabelAlign,
|
|
183
|
+
inputPropLabelPlacement,
|
|
174
184
|
inputPropVariant,
|
|
175
185
|
modalPropSize,
|
|
176
186
|
popoverPropPlacement,
|
|
@@ -179,11 +189,17 @@ export {
|
|
|
179
189
|
progressBarPropVariant,
|
|
180
190
|
progressSpinnerPropSize,
|
|
181
191
|
progressSpinnerPropVariant,
|
|
192
|
+
radioGroupPropLabelAlign,
|
|
193
|
+
radioGroupPropLabelPlacement,
|
|
182
194
|
radioGroupPropOrientation,
|
|
183
195
|
radioGroupPropSize,
|
|
184
196
|
radioPropLabelPlacement,
|
|
185
197
|
radioPropSize,
|
|
198
|
+
searchInputPropLabelAlign,
|
|
199
|
+
searchInputPropLabelPlacement,
|
|
186
200
|
searchInputPropVariant,
|
|
201
|
+
selectPropLabelAlign,
|
|
202
|
+
selectPropLabelPlacement,
|
|
187
203
|
selectPropSelectedTagsOverflow,
|
|
188
204
|
sidePanelPropPlacement,
|
|
189
205
|
sidePanelPropPosition,
|
|
@@ -192,7 +208,11 @@ export {
|
|
|
192
208
|
spacingGap,
|
|
193
209
|
tagGroupPropVariant,
|
|
194
210
|
textareaPropExpand,
|
|
211
|
+
textareaPropLabelAlign,
|
|
212
|
+
textareaPropLabelPlacement,
|
|
195
213
|
textareaPropVariant,
|
|
214
|
+
timePickerPropLabelAlign,
|
|
215
|
+
timePickerPropLabelPlacement,
|
|
196
216
|
togglePropLabelPlacement,
|
|
197
217
|
togglePropSize,
|
|
198
218
|
tooltipPropPlacement,
|