@delightui/components 0.1.91 → 0.1.93
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/cjs/components/atoms/CheckboxItem/CheckboxItem.presenter.d.ts +1 -1
- package/dist/cjs/components/atoms/Slider/SliderExample.d.ts +2 -0
- package/dist/cjs/components/atoms/TextArea/TextAreaExample.d.ts +2 -0
- package/dist/cjs/components/molecules/ChipInput/ChipInputExample.d.ts +2 -0
- package/dist/cjs/components/molecules/DatePicker/DatePicker.presenter.d.ts +4 -0
- package/dist/cjs/components/molecules/DatePicker/DatePicker.types.d.ts +12 -0
- package/dist/cjs/components/molecules/DatePicker/DatePickerExample.d.ts +2 -0
- package/dist/cjs/components/molecules/FormField/FormField.utils.d.ts +1 -1
- package/dist/cjs/components/molecules/FormField/useControlledValue.d.ts +10 -0
- package/dist/cjs/components/molecules/RadioGroup/RadioGroupExample.d.ts +2 -0
- package/dist/cjs/components/molecules/Select/SelectExample.d.ts +2 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.presenter.d.ts +1 -1
- package/dist/cjs/components/organisms/Dropzone/DropzoneExample.d.ts +2 -0
- package/dist/cjs/library.css +5 -1
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/CheckboxItem/CheckboxItem.presenter.d.ts +1 -1
- package/dist/esm/components/atoms/Slider/SliderExample.d.ts +2 -0
- package/dist/esm/components/atoms/TextArea/TextAreaExample.d.ts +2 -0
- package/dist/esm/components/molecules/ChipInput/ChipInputExample.d.ts +2 -0
- package/dist/esm/components/molecules/DatePicker/DatePicker.presenter.d.ts +4 -0
- package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +12 -0
- package/dist/esm/components/molecules/DatePicker/DatePickerExample.d.ts +2 -0
- package/dist/esm/components/molecules/FormField/FormField.utils.d.ts +1 -1
- package/dist/esm/components/molecules/FormField/useControlledValue.d.ts +10 -0
- package/dist/esm/components/molecules/RadioGroup/RadioGroupExample.d.ts +2 -0
- package/dist/esm/components/molecules/Select/SelectExample.d.ts +2 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.presenter.d.ts +1 -1
- package/dist/esm/components/organisms/Dropzone/DropzoneExample.d.ts +2 -0
- package/dist/esm/library.css +5 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -28,7 +28,6 @@ declare const usePresenter: (props: CheckboxItemProps) => {
|
|
|
28
28
|
dir?: string | undefined;
|
|
29
29
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
30
30
|
hidden?: boolean | undefined;
|
|
31
|
-
id?: string | undefined;
|
|
32
31
|
lang?: string | undefined;
|
|
33
32
|
nonce?: string | undefined;
|
|
34
33
|
slot?: string | undefined;
|
|
@@ -307,5 +306,6 @@ declare const usePresenter: (props: CheckboxItemProps) => {
|
|
|
307
306
|
showRightButton: boolean;
|
|
308
307
|
onRightButtonClick: (() => void) | undefined;
|
|
309
308
|
rightButtonIcon: import("react").ReactNode;
|
|
309
|
+
id: string | undefined;
|
|
310
310
|
};
|
|
311
311
|
export default usePresenter;
|
|
@@ -23,6 +23,9 @@ declare const usePresenter: (props: DatePickerProps) => {
|
|
|
23
23
|
position?: "auto" | "above" | "below" | "auto left" | "auto center" | "auto right" | "above left" | "above center" | "above right" | "below left" | "below center" | "below right";
|
|
24
24
|
parseDate?: (date: string, format?: string) => Date;
|
|
25
25
|
allowInput?: boolean;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
leadingIcon?: React.ReactNode;
|
|
28
|
+
trailingIcon?: React.ReactNode;
|
|
26
29
|
};
|
|
27
30
|
onInputBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
28
31
|
inputLeadingIcon: false | import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -36,5 +39,6 @@ declare const usePresenter: (props: DatePickerProps) => {
|
|
|
36
39
|
dayVariantProps: {
|
|
37
40
|
'component-variant': string;
|
|
38
41
|
};
|
|
42
|
+
value: string | Date | (string | Date)[] | undefined;
|
|
39
43
|
};
|
|
40
44
|
export default usePresenter;
|
|
@@ -91,6 +91,18 @@ export type DatePickerProps = ControlledFormComponentProps<string | Date | (stri
|
|
|
91
91
|
* For example using this inside a Popover as content
|
|
92
92
|
*/
|
|
93
93
|
useCustomTimeInputForTimePicker?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Placeholder text for the date picker input
|
|
96
|
+
*/
|
|
97
|
+
placeholder?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Icon to be displayed before the input.
|
|
100
|
+
*/
|
|
101
|
+
leadingIcon?: React.ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Icon to be displayed after the input.
|
|
104
|
+
*/
|
|
105
|
+
trailingIcon?: React.ReactNode;
|
|
94
106
|
};
|
|
95
107
|
export type CustomTimePickerConfig = {
|
|
96
108
|
minuteStep: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface UseControlledValueProps<T> {
|
|
2
|
+
value?: T;
|
|
3
|
+
onValueChange?: (value: T) => void;
|
|
4
|
+
defaultValue?: T;
|
|
5
|
+
}
|
|
6
|
+
export declare const useControlledValue: <T>({ value, onValueChange, defaultValue }: UseControlledValueProps<T>) => {
|
|
7
|
+
value: T | undefined;
|
|
8
|
+
onValueChange: (newValue: T) => void;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -3,7 +3,7 @@ declare const usePresenter: (props: DropzoneProps) => {
|
|
|
3
3
|
variantProps: {
|
|
4
4
|
'component-variant': string;
|
|
5
5
|
};
|
|
6
|
-
files: File[];
|
|
6
|
+
files: File[] | undefined;
|
|
7
7
|
getRootProps: <T extends import("react-dropzone").DropzoneRootProps>(props?: T) => T;
|
|
8
8
|
getInputProps: <T extends import("react-dropzone").DropzoneInputProps>(props?: T) => T;
|
|
9
9
|
open: () => void;
|
package/dist/cjs/library.css
CHANGED
|
@@ -415,6 +415,7 @@
|
|
|
415
415
|
.TextArea-module_textArea__JVHCu {
|
|
416
416
|
display: flex;
|
|
417
417
|
height: var(--text-area-height);
|
|
418
|
+
min-height: var(--text-area-min-height);
|
|
418
419
|
-moz-column-gap: var(--text-area-column-gap);
|
|
419
420
|
column-gap: var(--text-area-column-gap);
|
|
420
421
|
border-bottom-width: var(--text-area-border-bottom-width);
|
|
@@ -3204,6 +3205,7 @@ span.flatpickr-weekday {
|
|
|
3204
3205
|
--modal-position-top: 50%;
|
|
3205
3206
|
--modal-position-left: 50%;
|
|
3206
3207
|
--modal-content-height: fit-content;
|
|
3208
|
+
--modal-content-width: auto;
|
|
3207
3209
|
display: flex;
|
|
3208
3210
|
flex-direction: column;
|
|
3209
3211
|
position: fixed;
|
|
@@ -3256,7 +3258,7 @@ span.flatpickr-weekday {
|
|
|
3256
3258
|
height: fit-content;
|
|
3257
3259
|
}
|
|
3258
3260
|
.Modal-module_modal__b2VqT .Modal-module_content__JquMo {
|
|
3259
|
-
width:
|
|
3261
|
+
width: var(--modal-content-width);
|
|
3260
3262
|
height: var(--modal-content-height);
|
|
3261
3263
|
}
|
|
3262
3264
|
.Modal-module_backdrop__62XUz {
|
|
@@ -4383,6 +4385,7 @@ span.flatpickr-weekday {
|
|
|
4383
4385
|
--modal-background-color: var(--slide-out-panel-background-color);
|
|
4384
4386
|
--modal-color: var(--slide-out-panel-color);
|
|
4385
4387
|
--modal-content-height: 100%;
|
|
4388
|
+
--modal-content-width: 100%;
|
|
4386
4389
|
}
|
|
4387
4390
|
.SlideOutPanel-module_slideOutPanel__eBr9a .SlideOutPanel-module_form__lv6bn {
|
|
4388
4391
|
height: 100%;
|
|
@@ -13319,6 +13322,7 @@ span.flatpickr-weekday {
|
|
|
13319
13322
|
}
|
|
13320
13323
|
[data-theme='dark'] [component-variant="text-area-default"], [data-theme='light'] [component-variant="text-area-default"] {
|
|
13321
13324
|
--text-area-height: 64px;
|
|
13325
|
+
--text-area-min-height: 64px;
|
|
13322
13326
|
--text-area-width: 284px;
|
|
13323
13327
|
--text-area-background-color: var(--interactive-surface-secondary-default);
|
|
13324
13328
|
--text-area-color: var(--text-secondary);
|