@delightui/components 0.1.147 → 0.1.149
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/Chip/ChipExample.d.ts +2 -0
- package/dist/cjs/components/atoms/ToastNotification/ToastNotification.types.d.ts +7 -2
- package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +14 -10
- package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +2 -1
- package/dist/cjs/components/organisms/Dropzone/components/DropzoneDrag.d.ts +3 -0
- package/dist/cjs/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +1 -1
- package/dist/cjs/library.css +105 -9
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/notification/types.d.ts +4 -0
- package/dist/esm/components/atoms/Chip/ChipExample.d.ts +2 -0
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +7 -2
- package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +14 -10
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +2 -1
- package/dist/esm/components/organisms/Dropzone/components/DropzoneDrag.d.ts +3 -0
- package/dist/esm/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +1 -1
- package/dist/esm/library.css +105 -9
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/notification/types.d.ts +4 -0
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type ToastNotificationStyleEnum = 'Neutral' | 'Error' | 'Success';
|
|
3
3
|
export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
4
4
|
/**
|
|
@@ -11,6 +11,11 @@ export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style
|
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
isDismissable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Determines if the toast notification is displayed with close button.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
isCloseButtonShown?: boolean;
|
|
14
19
|
/**
|
|
15
20
|
* Icon displayed before the message content.
|
|
16
21
|
*/
|
|
@@ -26,7 +31,7 @@ export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style
|
|
|
26
31
|
/**
|
|
27
32
|
* Click event handler for the close action.
|
|
28
33
|
*/
|
|
29
|
-
removeToast?: (
|
|
34
|
+
removeToast?: () => void;
|
|
30
35
|
/**
|
|
31
36
|
* Duration before the toast auto-closes (in milliseconds).
|
|
32
37
|
*/
|
package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Instance } from 'flatpickr/dist/types/instance';
|
|
2
|
+
import DatePicker from 'react-flatpickr';
|
|
2
3
|
import { DatePickerBaseProps } from './DatePickerBase.types';
|
|
3
4
|
declare const usePresenter: (props: DatePickerBaseProps) => {
|
|
4
5
|
value: import("./DatePickerBase.types").DatePickerValue | undefined;
|
|
5
|
-
datePickerRef: import("react").RefObject<
|
|
6
|
+
datePickerRef: import("react").RefObject<DatePicker>;
|
|
6
7
|
disabled: boolean | undefined;
|
|
7
8
|
required: boolean | undefined;
|
|
8
9
|
mode: "range" | "single";
|
|
@@ -11,10 +12,22 @@ declare const usePresenter: (props: DatePickerBaseProps) => {
|
|
|
11
12
|
isTimePickerOnly: boolean | undefined;
|
|
12
13
|
customPlugin: import("flatpickr/dist/types/options").Plugin[];
|
|
13
14
|
handleKeyDown: (_selectedDates: Date[], _dateStr: string, instance: Instance, event: KeyboardEvent) => void;
|
|
15
|
+
onDateChange: (dates: Date[]) => void;
|
|
16
|
+
onCloseDatePicker: import("flatpickr/dist/types/options").Hook;
|
|
17
|
+
onOpenDatePicker: import("flatpickr/dist/types/options").Hook;
|
|
18
|
+
calendarVariantProps: {
|
|
19
|
+
'component-variant': string;
|
|
20
|
+
};
|
|
21
|
+
dayVariantProps: {
|
|
22
|
+
'component-variant': string;
|
|
23
|
+
};
|
|
24
|
+
isInDialog: boolean;
|
|
14
25
|
otherProps: {
|
|
15
26
|
initialValue?: import("./DatePickerBase.types").DatePickerValue | undefined;
|
|
16
27
|
checked?: boolean;
|
|
28
|
+
invalid?: boolean;
|
|
17
29
|
id?: string;
|
|
30
|
+
className?: string;
|
|
18
31
|
minDate?: string | Date;
|
|
19
32
|
maxDate?: string | Date;
|
|
20
33
|
defaultDate?: string | Date;
|
|
@@ -25,14 +38,5 @@ declare const usePresenter: (props: DatePickerBaseProps) => {
|
|
|
25
38
|
allowInput?: boolean;
|
|
26
39
|
renderInput?: ((props: Omit<import("react-flatpickr").DateTimePickerProps, "options" | "render">, ref: (node: HTMLInputElement | null) => void) => React.ReactElement) | undefined;
|
|
27
40
|
};
|
|
28
|
-
onDateChange: (dates: Date[]) => void;
|
|
29
|
-
onCloseDatePicker: import("flatpickr/dist/types/options").Hook;
|
|
30
|
-
onOpenDatePicker: import("flatpickr/dist/types/options").Hook;
|
|
31
|
-
calendarVariantProps: {
|
|
32
|
-
'component-variant': string;
|
|
33
|
-
};
|
|
34
|
-
dayVariantProps: {
|
|
35
|
-
'component-variant': string;
|
|
36
|
-
};
|
|
37
41
|
};
|
|
38
42
|
export default usePresenter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps, IconButtonProps, TextProps } from '../../atoms';
|
|
3
3
|
import { ControlledFormComponentProps } from '../../molecules/FormField/FormField.types';
|
|
4
4
|
export type DropzoneStatus = 'Empty' | 'Loading' | 'Uploaded';
|
|
@@ -101,3 +101,4 @@ export type DropzoneFilenameProps = TextProps & {
|
|
|
101
101
|
*/
|
|
102
102
|
fileIndex?: number;
|
|
103
103
|
};
|
|
104
|
+
export type DropzoneDragProps = HTMLAttributes<HTMLDivElement>;
|
package/dist/cjs/library.css
CHANGED
|
@@ -319,6 +319,7 @@
|
|
|
319
319
|
}
|
|
320
320
|
.Input-module_input__NAeHe {
|
|
321
321
|
display: flex;
|
|
322
|
+
align-items: center;
|
|
322
323
|
height: var(--input-height);
|
|
323
324
|
row-gap: var(--input-row-gap);
|
|
324
325
|
-moz-column-gap: var(--input-column-gap);
|
|
@@ -362,10 +363,14 @@
|
|
|
362
363
|
.Input-module_input__NAeHe .Input-module_trailingIcon__UDufB {
|
|
363
364
|
padding-right: var(--input-column-gap);
|
|
364
365
|
align-self: center;
|
|
366
|
+
padding-top: calc(var(--input-padding-top) - var(--input-border-top-width));
|
|
367
|
+
padding-bottom: calc(var(--input-padding-bottom) - var(--input-border-bottom-width));
|
|
365
368
|
}
|
|
366
369
|
.Input-module_input__NAeHe .Input-module_leadingIcon__bUFw5 {
|
|
367
370
|
padding-left: var(--input-column-gap);
|
|
368
371
|
align-self: center;
|
|
372
|
+
padding-top: calc(var(--input-padding-top) - var(--input-border-top-width));
|
|
373
|
+
padding-bottom: calc(var(--input-padding-bottom) - var(--input-border-bottom-width));
|
|
369
374
|
}
|
|
370
375
|
.Input-module_input__NAeHe .Input-module_error__qP189 {
|
|
371
376
|
--a: 100;
|
|
@@ -418,11 +423,9 @@
|
|
|
418
423
|
--input-placeholder-paragraph-indent: var(--password-placeholder-paragraph-indent);
|
|
419
424
|
}
|
|
420
425
|
.Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr {
|
|
421
|
-
padding: 0;
|
|
422
426
|
border: none;
|
|
423
427
|
}
|
|
424
428
|
.Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr:hover, .Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr:active, .Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr:focus, .Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr:focus-visible, .Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr:disabled {
|
|
425
|
-
padding: 0;
|
|
426
429
|
border: none;
|
|
427
430
|
}
|
|
428
431
|
.Password-module_password__nk-zf.Password-module_password__nk-zf .Password-module_toggle__1yQxr .Password-module_hide__N8Nxt {
|
|
@@ -911,11 +914,11 @@
|
|
|
911
914
|
flex-direction: row;
|
|
912
915
|
justify-content: flex-start;
|
|
913
916
|
align-items: center;
|
|
914
|
-
gap: var(--chip-
|
|
915
|
-
padding-top: var(--chip-
|
|
916
|
-
padding-bottom: var(--chip-
|
|
917
|
-
padding-left: var(--chip-
|
|
918
|
-
padding-right: var(--chip-
|
|
917
|
+
gap: var(--chip-content-row-gap) var(--chip-content-column-gap);
|
|
918
|
+
padding-top: var(--chip-content-padding-top);
|
|
919
|
+
padding-bottom: var(--chip-content-padding-bottom);
|
|
920
|
+
padding-left: var(--chip-content-padding-left);
|
|
921
|
+
padding-right: var(--chip-content-padding-right);
|
|
919
922
|
}
|
|
920
923
|
.Chip-module_chip__gFkbn .Chip-module_leadingIcon__wzuFC,
|
|
921
924
|
.Chip-module_chip__gFkbn .Chip-module_trailingIcon__jGkIh {
|
|
@@ -3028,8 +3031,8 @@ span.flatpickr-weekday {
|
|
|
3028
3031
|
}
|
|
3029
3032
|
.flatpickr-calendar .flatpickr-months .flatpickr-current-month .numInput.cur-year:focus, .flatpickr-calendar .flatpickr-months .flatpickr-current-month .numInput.cur-year:active {
|
|
3030
3033
|
cursor: text;
|
|
3031
|
-
outline:
|
|
3032
|
-
|
|
3034
|
+
outline: none;
|
|
3035
|
+
border: 1px solid var(--border-border-4, var(--border-primary));
|
|
3033
3036
|
padding-left: calc(var(--date-picker-months-trigger-padding-left) - 1px);
|
|
3034
3037
|
padding-right: calc(var(--date-picker-months-trigger-padding-right) - 1px);
|
|
3035
3038
|
padding-top: calc(var(--date-picker-months-trigger-padding-top) - 1px);
|
|
@@ -3183,6 +3186,9 @@ span.flatpickr-weekday {
|
|
|
3183
3186
|
.time-dropdown .dropdown-option:hover {
|
|
3184
3187
|
background-color: var(--date-picker-time-color--hover);
|
|
3185
3188
|
}
|
|
3189
|
+
.flatpickr-wrapper {
|
|
3190
|
+
width: 100%;
|
|
3191
|
+
}
|
|
3186
3192
|
.FormField-module_formField__vNu-s {
|
|
3187
3193
|
display: flex;
|
|
3188
3194
|
flex-direction: column;
|
|
@@ -4175,6 +4181,8 @@ span.flatpickr-weekday {
|
|
|
4175
4181
|
--spinner__width: 4rem;
|
|
4176
4182
|
--spinner__height: 4rem;
|
|
4177
4183
|
--spinner__border-width: 6px;
|
|
4184
|
+
--spinner-inner-width: 4rem;
|
|
4185
|
+
--spinner-inner-height: 4rem;
|
|
4178
4186
|
--spinner-border-color: var(--icon-primary);
|
|
4179
4187
|
}
|
|
4180
4188
|
.DropzoneContent-module_dropzoneContent__UjfAn .DropzoneContent-module_dropzoneRemoveUploadButtonDeleteButton__kUcdq {
|
|
@@ -4185,6 +4193,16 @@ span.flatpickr-weekday {
|
|
|
4185
4193
|
display: block;
|
|
4186
4194
|
color: rgb(233, 233, 234);
|
|
4187
4195
|
}
|
|
4196
|
+
.DropzoneContent-module_dropzoneContent__UjfAn .DropzoneContent-module_dropzoneDrag__PlBJv {
|
|
4197
|
+
display: flex;
|
|
4198
|
+
height: 100%;
|
|
4199
|
+
width: 100%;
|
|
4200
|
+
border-style: dashed;
|
|
4201
|
+
border-width: 1px;
|
|
4202
|
+
border-color: var(--colours-grey-450);
|
|
4203
|
+
background-color: rgb(128, 128, 128);
|
|
4204
|
+
opacity: 0.5;
|
|
4205
|
+
}
|
|
4188
4206
|
.DropzoneContent-module_type--Empty__5ejbg {
|
|
4189
4207
|
display: flex;
|
|
4190
4208
|
flex-flow: column nowrap;
|
|
@@ -4232,6 +4250,8 @@ span.flatpickr-weekday {
|
|
|
4232
4250
|
}
|
|
4233
4251
|
.DropzoneContent-module_type--Empty__5ejbg .DropzoneContent-module_dropzoneSupportedFormats__mEgzt {
|
|
4234
4252
|
color: var(--text-primary);
|
|
4253
|
+
max-width: 80%;
|
|
4254
|
+
text-align: center;
|
|
4235
4255
|
}
|
|
4236
4256
|
.DropzoneContent-module_type--Empty__5ejbg .DropzoneContent-module_dropzoneRemoveUploadButton__McYoe {
|
|
4237
4257
|
display: none;
|
|
@@ -4243,6 +4263,9 @@ span.flatpickr-weekday {
|
|
|
4243
4263
|
display: none;
|
|
4244
4264
|
color: rgb(233, 233, 234);
|
|
4245
4265
|
}
|
|
4266
|
+
.DropzoneContent-module_type--Empty__5ejbg .DropzoneContent-module_dropzoneDrag__PlBJv {
|
|
4267
|
+
display: none;
|
|
4268
|
+
}
|
|
4246
4269
|
.DropzoneContent-module_type--Uploaded__4aQy7 {
|
|
4247
4270
|
display: flex;
|
|
4248
4271
|
flex-flow: row nowrap;
|
|
@@ -4300,6 +4323,9 @@ span.flatpickr-weekday {
|
|
|
4300
4323
|
display: block;
|
|
4301
4324
|
color: rgb(233, 233, 234);
|
|
4302
4325
|
}
|
|
4326
|
+
.DropzoneContent-module_type--Uploaded__4aQy7 .DropzoneContent-module_dropzoneDrag__PlBJv {
|
|
4327
|
+
display: none;
|
|
4328
|
+
}
|
|
4303
4329
|
.DropzoneContent-module_type--Loading__4VgoL {
|
|
4304
4330
|
display: flex;
|
|
4305
4331
|
flex-flow: column nowrap;
|
|
@@ -4361,6 +4387,76 @@ span.flatpickr-weekday {
|
|
|
4361
4387
|
display: none;
|
|
4362
4388
|
color: rgb(233, 233, 234);
|
|
4363
4389
|
}
|
|
4390
|
+
.DropzoneContent-module_type--Loading__4VgoL .DropzoneContent-module_dropzoneDrag__PlBJv {
|
|
4391
|
+
display: none;
|
|
4392
|
+
}
|
|
4393
|
+
.DropzoneContent-module_type--Drag__9BalI {
|
|
4394
|
+
display: flex;
|
|
4395
|
+
flex-flow: column nowrap;
|
|
4396
|
+
justify-content: center;
|
|
4397
|
+
align-items: center;
|
|
4398
|
+
height: 202px;
|
|
4399
|
+
flex-shrink: 0;
|
|
4400
|
+
gap: 12px;
|
|
4401
|
+
border-width: 1px;
|
|
4402
|
+
border-style: dashed;
|
|
4403
|
+
border-color: rgb(56, 58, 68);
|
|
4404
|
+
border-radius: 4px;
|
|
4405
|
+
}
|
|
4406
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_infoTextAndButtonContainer__ZvsDL {
|
|
4407
|
+
display: none;
|
|
4408
|
+
height: auto;
|
|
4409
|
+
width: auto;
|
|
4410
|
+
gap: 8px;
|
|
4411
|
+
}
|
|
4412
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_infoText__hywuA {
|
|
4413
|
+
display: none;
|
|
4414
|
+
height: auto;
|
|
4415
|
+
width: auto;
|
|
4416
|
+
color: rgb(186, 187, 191);
|
|
4417
|
+
white-space: nowrap;
|
|
4418
|
+
text-align: left;
|
|
4419
|
+
}
|
|
4420
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneFileUploadTrigger__-Ai9k {
|
|
4421
|
+
display: none;
|
|
4422
|
+
}
|
|
4423
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneFileUploadTriggerChooseFileButton__I7Erl {
|
|
4424
|
+
display: none;
|
|
4425
|
+
border-color: rgb(56, 58, 68);
|
|
4426
|
+
border-radius: 4px;
|
|
4427
|
+
}
|
|
4428
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_loaderAnim__XxG7G {
|
|
4429
|
+
display: none;
|
|
4430
|
+
height: 64px;
|
|
4431
|
+
width: 64px;
|
|
4432
|
+
flex-shrink: 0;
|
|
4433
|
+
}
|
|
4434
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneFileName__wcqMo {
|
|
4435
|
+
display: none;
|
|
4436
|
+
}
|
|
4437
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneSupportedFormats__mEgzt {
|
|
4438
|
+
display: none;
|
|
4439
|
+
}
|
|
4440
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneRemoveUploadButton__McYoe {
|
|
4441
|
+
display: none;
|
|
4442
|
+
}
|
|
4443
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneRemoveUploadButtonDeleteButton__kUcdq {
|
|
4444
|
+
display: none;
|
|
4445
|
+
}
|
|
4446
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneRemoveUploadButtonDeleteButtoncloseDelete__TgTog {
|
|
4447
|
+
display: none;
|
|
4448
|
+
color: rgb(233, 233, 234);
|
|
4449
|
+
}
|
|
4450
|
+
.DropzoneContent-module_type--Drag__9BalI .DropzoneContent-module_dropzoneDrag__PlBJv {
|
|
4451
|
+
display: flex;
|
|
4452
|
+
height: 100%;
|
|
4453
|
+
width: 100%;
|
|
4454
|
+
border-style: dashed;
|
|
4455
|
+
border-width: 1px;
|
|
4456
|
+
border-color: var(--colours-grey-450);
|
|
4457
|
+
background-color: rgb(128, 128, 128);
|
|
4458
|
+
opacity: 0.5;
|
|
4459
|
+
}
|
|
4364
4460
|
.Form-module_form__9JYdv {
|
|
4365
4461
|
display: flex;
|
|
4366
4462
|
flex-direction: column;
|