beesoft-components 0.12.4 → 0.12.6
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.es.js +10835 -10767
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +78 -78
- package/dist/index.umd.js.gz +0 -0
- package/package.json +6 -5
- package/types/index.d.ts +24 -1
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beesoft-components",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@beesoft/common": "^0.2.1",
|
|
38
38
|
"@beesoft/headless-ui": "^0.1.0",
|
|
39
|
-
"@preact/signals": "^2.
|
|
39
|
+
"@preact/signals": "^2.9.0",
|
|
40
40
|
"@react-hook/media-query": "^1.1.1",
|
|
41
41
|
"classnames": "^2.3.2",
|
|
42
42
|
"date-fns": "^3.3.1",
|
|
43
43
|
"dot-object": "^2.1.4",
|
|
44
44
|
"konva": "^10.0.12",
|
|
45
|
-
"lodash": "
|
|
45
|
+
"lodash": "4.18.0",
|
|
46
46
|
"motion": "^12.24.10",
|
|
47
47
|
"react-konva": "^19.2.1",
|
|
48
48
|
"uuid": "^9.0.1"
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"@eslint/js": "^9.29.0",
|
|
54
54
|
"@release-it/bumper": "^7.0.5",
|
|
55
55
|
"@release-it/keep-a-changelog": "^7.0.0",
|
|
56
|
-
"@seahax/eslint-plugin-wrap": "^0.6.7",
|
|
57
56
|
"@storybook/addon-a11y": "^9.0.9",
|
|
58
57
|
"@storybook/addon-links": "^9.0.9",
|
|
59
58
|
"@storybook/builder-vite": "^9.0.9",
|
|
@@ -74,15 +73,17 @@
|
|
|
74
73
|
"@types/uuid": "^9.0.7",
|
|
75
74
|
"@typescript-eslint/parser": "^8.31.1",
|
|
76
75
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
77
|
-
"ajv": "
|
|
76
|
+
"ajv": "8.18.0",
|
|
78
77
|
"caniuse-lite": "^1.0.30001718",
|
|
79
78
|
"chromatic": "^11.3.0",
|
|
80
79
|
"eslint": "^9.29.0",
|
|
80
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
81
81
|
"eslint-plugin-react": "^7.37.5",
|
|
82
82
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
83
83
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
84
84
|
"eslint-plugin-storybook": "^9.0.9",
|
|
85
85
|
"globals": "^16.2.0",
|
|
86
|
+
"prettier": "^3.8.1",
|
|
86
87
|
"react": "^19.2.3",
|
|
87
88
|
"react-dom": "^19.2.3",
|
|
88
89
|
"release-it": "^19.0.3",
|
package/types/index.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ declare interface ContentEditableInputProps extends FormInputControl<string> {
|
|
|
175
175
|
isSingleLine?: boolean;
|
|
176
176
|
allowSingleLineScroll?: boolean;
|
|
177
177
|
inputMode?: 'search' | 'text' | 'none' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | undefined;
|
|
178
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
178
179
|
onInnerTextChange?: (value: string) => void;
|
|
179
180
|
onInnerHTMLChange?: (value: string) => void;
|
|
180
181
|
onElementCreate?: (element: HTMLElement) => void;
|
|
@@ -242,7 +243,7 @@ export declare enum DateSelectorType {
|
|
|
242
243
|
DateRangeSelector = 4
|
|
243
244
|
}
|
|
244
245
|
|
|
245
|
-
export declare const DateTime: ({ value, readOnly, label, useDefaultDateValue, useFormattedInput, allowClear, closeSelector, locale, className, dateSelection, dateFormat, timeConstraints, icon, iconPosition, inputElement, selectableDate, isValidDate, onChange, onError, calendarTemplate, dateScrollerTemplate, inputTemplate, wrapperTemplate, }: DateTimeProps) => JSX_2.Element;
|
|
246
|
+
export declare const DateTime: ({ value, readOnly, label, useDefaultDateValue, useFormattedInput, allowClear, closeSelector, locale, className, dateSelection, dateFormat, timeFormat, timeConstraints, icon, iconPosition, inputElement, selectableDate, isValidDate, onChange, onError, calendarTemplate, dateScrollerTemplate, inputTemplate, wrapperTemplate, }: DateTimeProps) => JSX_2.Element;
|
|
246
247
|
|
|
247
248
|
declare interface DateTimeBaseTemplateProps {
|
|
248
249
|
incrementViewMonths?: (months: number) => void;
|
|
@@ -295,6 +296,7 @@ declare interface DateTimeProps extends FormInputControl<string | TypeOrArray<Da
|
|
|
295
296
|
locale?: string;
|
|
296
297
|
dateSelection?: DateSelectionType;
|
|
297
298
|
dateFormat?: DateFormatType;
|
|
299
|
+
timeFormat?: TimeFormatType;
|
|
298
300
|
timeConstraints?: TimeConstraints;
|
|
299
301
|
icon?: default_2.JSX.Element;
|
|
300
302
|
iconPosition?: CalendarIconPosition;
|
|
@@ -353,6 +355,10 @@ declare enum DomTargetPosition {
|
|
|
353
355
|
}
|
|
354
356
|
|
|
355
357
|
declare interface FormatPart {
|
|
358
|
+
/**
|
|
359
|
+
* Can be used to identify a particular format part.
|
|
360
|
+
*/
|
|
361
|
+
name?: string;
|
|
356
362
|
/**
|
|
357
363
|
* The number of characters available for this part of the format.
|
|
358
364
|
*/
|
|
@@ -410,11 +416,23 @@ declare interface FormatPart {
|
|
|
410
416
|
addInOutputValue?: boolean;
|
|
411
417
|
}
|
|
412
418
|
|
|
419
|
+
declare interface FormatPartEntry extends FormatPart {
|
|
420
|
+
startPosition: number;
|
|
421
|
+
endPosition: number;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare interface FormatPartSlot extends FormatPartEntry {
|
|
425
|
+
partIndex: number;
|
|
426
|
+
partText: string;
|
|
427
|
+
isComplete: boolean;
|
|
428
|
+
}
|
|
429
|
+
|
|
413
430
|
export declare const FormattedInput: default_2.ForwardRefExoticComponent<FormattedInputProps & default_2.RefAttributes<FormattedInputRef>>;
|
|
414
431
|
|
|
415
432
|
declare interface FormattedInputProps extends Omit<ContentEditableInputProps, 'placeholder'> {
|
|
416
433
|
format?: InputFormat;
|
|
417
434
|
isInputValid?: (value?: string) => boolean;
|
|
435
|
+
onSlotKeyDown?: (event: KeyboardEvent, value: FormatPartSlot) => void;
|
|
418
436
|
}
|
|
419
437
|
|
|
420
438
|
declare interface FormattedInputRef {
|
|
@@ -588,6 +606,11 @@ declare interface TimeConstraints {
|
|
|
588
606
|
seconds?: IncrementConstraint;
|
|
589
607
|
}
|
|
590
608
|
|
|
609
|
+
declare enum TimeFormatType {
|
|
610
|
+
TwelveHour = 0,
|
|
611
|
+
TwentyFourHour = 1
|
|
612
|
+
}
|
|
613
|
+
|
|
591
614
|
export declare const Toggle: MemoExoticComponent<({ name, label, value, checked, readOnly, useAnimation, className, onChange, }: ToggleProps) => JSX_2.Element>;
|
|
592
615
|
|
|
593
616
|
declare interface ToggleProps extends MakeRequired<FormInputControl<string | number, CheckboxChangeEvent>, 'name'>, ComponentAnimationProps {
|