@companix/uikit 0.0.29 → 0.0.31
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/ButtonGroup/index.d.ts +1 -2
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Countdown/index.d.ts +1 -2
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DatePicker/index.d.ts +1 -2
- package/dist/FormGroup/index.d.ts +2 -3
- package/dist/Input/Input.d.ts +1 -1
- package/dist/LoadingButton/index.d.ts +5 -0
- package/dist/OptionItem/OptionItem.d.ts +1 -2
- package/dist/OptionItem/OptionsList.d.ts +2 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Scrollable/ImitateScroll.d.ts +2 -2
- package/dist/Select/index.d.ts +1 -1
- package/dist/Spinner/index.d.ts +2 -3
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/TextArea/index.d.ts +1 -2
- package/dist/Tooltip/index.d.ts +1 -2
- package/dist/bundle.es.js +26 -26
- package/dist/bundle.es10.js +37 -32
- package/dist/bundle.es11.js +32 -52
- package/dist/bundle.es12.js +54 -14
- package/dist/bundle.es13.js +20 -7
- package/dist/bundle.es2.js +1 -1
- package/dist/bundle.es20.js +1 -1
- package/dist/bundle.es24.js +3 -3
- package/dist/bundle.es25.js +2 -2
- package/dist/bundle.es26.js +1 -1
- package/dist/bundle.es29.js +2 -2
- package/dist/bundle.es3.js +7 -10
- package/dist/bundle.es38.js +1 -1
- package/dist/bundle.es4.js +11 -85
- package/dist/bundle.es42.js +2 -2
- package/dist/bundle.es44.js +1 -1
- package/dist/bundle.es45.js +1 -1
- package/dist/bundle.es5.js +82 -82
- package/dist/bundle.es51.js +2 -2
- package/dist/bundle.es6.js +81 -74
- package/dist/bundle.es60.js +20 -14
- package/dist/bundle.es61.js +2 -20
- package/dist/bundle.es62.js +76 -2
- package/dist/bundle.es63.js +45 -72
- package/dist/bundle.es64.js +13 -48
- package/dist/bundle.es7.js +78 -26
- package/dist/bundle.es71.js +3 -14
- package/dist/bundle.es72.js +1 -1
- package/dist/bundle.es73.js +14 -3
- package/dist/bundle.es8.js +21 -70
- package/dist/bundle.es9.js +75 -41
- package/dist/index.d.ts +31 -5
- package/package.json +1 -1
- package/dist/LoadButton/index.d.ts +0 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
interface ButtonGroupProps {
|
|
1
|
+
export interface ButtonGroupProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
className?: string;
|
|
4
4
|
fill?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const ButtonGroup: import('react').ForwardRefExoticComponent<ButtonGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export {};
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
interface CountDownProps {
|
|
1
|
+
export interface CountDownProps {
|
|
2
2
|
expiration: number;
|
|
3
3
|
separator?: string;
|
|
4
4
|
onExpired?: VoidFunction;
|
|
5
5
|
}
|
|
6
6
|
export declare const Countdown: ({ expiration, separator, onExpired }: CountDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateFormat } from '..';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DateInputProps {
|
|
3
3
|
min?: DateFormat;
|
|
4
4
|
max?: DateFormat;
|
|
5
5
|
noDaySelect?: boolean;
|
|
@@ -10,4 +10,4 @@ export interface DatePickerProps {
|
|
|
10
10
|
value: DateFormat;
|
|
11
11
|
onChange: (e: DateFormat) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const DateInput: ({ min, max, disabled, value, noDaySelect, noYearSelect, onChange, required, size }:
|
|
13
|
+
export declare const DateInput: ({ min, max, disabled, value, noDaySelect, noYearSelect, onChange, required, size }: DateInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { InputProps } from '../Input/Input';
|
|
2
2
|
import { CalendarProps } from './Calendar';
|
|
3
|
-
interface DatePickerProps extends Omit<CalendarProps, 'onChange'>, Omit<InputProps, 'value' | 'onChange' | 'rightElement'> {
|
|
3
|
+
export interface DatePickerProps extends Omit<CalendarProps, 'onChange'>, Omit<InputProps, 'value' | 'onChange' | 'rightElement'> {
|
|
4
4
|
onChange?: (value: Date | null) => void;
|
|
5
5
|
clearButton?: boolean;
|
|
6
6
|
clearButtonIcon?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface FormGroupProps {
|
|
2
2
|
label: React.ReactNode;
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
caption?: React.ReactNode;
|
|
@@ -6,5 +6,4 @@ interface FormLabelProps {
|
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const FormGroup: (props:
|
|
10
|
-
export {};
|
|
9
|
+
export declare const FormGroup: (props: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Input/Input.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export interface InputProps extends Omit<InputContainerProps, 'inputRef' | 'chil
|
|
|
7
7
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
8
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
9
9
|
inputClassName?: string;
|
|
10
|
+
inputType?: React.HTMLInputTypeAttribute;
|
|
10
11
|
mask?: string;
|
|
11
12
|
maskChar?: string;
|
|
12
|
-
type?: React.HTMLInputTypeAttribute;
|
|
13
13
|
}
|
|
14
14
|
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
|
+
import { UseLoadingProps } from '../__hooks/use-loading';
|
|
3
|
+
export interface LoadingButtonProps extends UseLoadingProps, Omit<ButtonProps, 'onClick'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const LoadingButton: ({ onClick, appearance, ...rest }: LoadingButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Option } from '../types';
|
|
2
|
-
interface OptionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, Omit<Option<unknown>, 'value'> {
|
|
2
|
+
export interface OptionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, Omit<Option<unknown>, 'value'> {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
minimal?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const OptionItem: import('react').ForwardRefExoticComponent<OptionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface OptionsListProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
maxHeight?: number;
|
|
4
4
|
scrollboxRef?: React.Ref<HTMLDivElement>;
|
|
5
5
|
optionsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare const OptionsList: ({ children, maxHeight, scrollboxRef, optionsWrapperRef }:
|
|
8
|
-
export {};
|
|
7
|
+
export declare const OptionsList: ({ children, maxHeight, scrollboxRef, optionsWrapperRef }: OptionsListProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Radio/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface ImitateScrollProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
thumbClassName: string;
|
|
4
4
|
thumbColor?: string;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
thumbMargin?: number;
|
|
7
7
|
scrollableClassName?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const ImitateScroll: ({ children, thumbClassName, scrollableClassName, thumbMargin, trackWidth }:
|
|
9
|
+
declare const ImitateScroll: ({ children, thumbClassName, scrollableClassName, thumbMargin, trackWidth }: ImitateScrollProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export { ImitateScroll };
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface UnCleanable<T> {
|
|
|
9
9
|
onChange: (event: T) => void;
|
|
10
10
|
}
|
|
11
11
|
type DependedValueType<T> = Cleanable<T> | UnCleanable<T>;
|
|
12
|
-
type SelectProps<T> = Omit<SelectFormProps, 'value' | 'onChange' | 'closeButton'> & DependedValueType<T> & {
|
|
12
|
+
export type SelectProps<T> = Omit<SelectFormProps, 'value' | 'onChange' | 'closeButton'> & DependedValueType<T> & {
|
|
13
13
|
value: T | null;
|
|
14
14
|
options: Option<T>[];
|
|
15
15
|
children?: React.ReactNode;
|
package/dist/Spinner/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface SpinnerProps {
|
|
2
2
|
size?: number;
|
|
3
3
|
width?: number;
|
|
4
4
|
color?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const Spinner: ({ size, className, width, color }:
|
|
8
|
-
export {};
|
|
7
|
+
export declare const Spinner: ({ size, className, width, color }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Tabs/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface TabsProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const Tabs: {
|
|
7
|
-
({ children, value, onChange }:
|
|
7
|
+
({ children, value, onChange }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Tab: ({ children, value, ...restProps }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
};
|
|
10
10
|
interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
2
|
grow?: boolean;
|
|
3
3
|
onResize?: (el: HTMLTextAreaElement) => void;
|
|
4
4
|
fill?: boolean;
|
|
5
5
|
textAreaRef?: React.Ref<HTMLTextAreaElement>;
|
|
6
6
|
}
|
|
7
7
|
export declare const TextArea: ({ onResize, grow, value, onChange, disabled, required, rows, fill, textAreaRef, ...textAreaProps }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Side } from '../Popover';
|
|
2
|
-
interface TooltipProps {
|
|
2
|
+
export interface TooltipProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
content: React.ReactNode;
|
|
5
5
|
side?: Side;
|
|
6
6
|
}
|
|
7
7
|
export declare const Tooltip: ({ children, content, side }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
package/dist/bundle.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Button as e } from "./bundle.es2.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { ButtonGroup as p } from "./bundle.es3.js";
|
|
3
|
+
import { Spinner as x } from "./bundle.es4.js";
|
|
4
|
+
import { Scrollable as a } from "./bundle.es5.js";
|
|
5
|
+
import { ImitateScroll as l } from "./bundle.es6.js";
|
|
6
|
+
import { Popover as c } from "./bundle.es7.js";
|
|
7
|
+
import { Tooltip as u } from "./bundle.es8.js";
|
|
8
|
+
import { Select as T } from "./bundle.es9.js";
|
|
9
|
+
import { Input as D } from "./bundle.es10.js";
|
|
10
|
+
import { OptionItem as P } from "./bundle.es11.js";
|
|
11
|
+
import { NumberInput as h } from "./bundle.es12.js";
|
|
12
|
+
import { OptionsList as v } from "./bundle.es13.js";
|
|
13
13
|
import { Checkbox as B } from "./bundle.es14.js";
|
|
14
14
|
import { Switch as k } from "./bundle.es15.js";
|
|
15
15
|
import { Radio as y, RadioGroup as G } from "./bundle.es16.js";
|
|
16
16
|
import { Drawer as O } from "./bundle.es17.js";
|
|
17
17
|
import { Dialog as F } from "./bundle.es18.js";
|
|
18
18
|
import { AlertDialog as j } from "./bundle.es19.js";
|
|
19
|
-
import {
|
|
19
|
+
import { LoadingButton as z } from "./bundle.es20.js";
|
|
20
20
|
import { Tabs as H } from "./bundle.es21.js";
|
|
21
21
|
import { Countdown as K } from "./bundle.es22.js";
|
|
22
22
|
import { TextArea as Q } from "./bundle.es23.js";
|
|
@@ -29,7 +29,7 @@ import { TimePicker as to } from "./bundle.es29.js";
|
|
|
29
29
|
import { Icon as mo } from "./bundle.es30.js";
|
|
30
30
|
import { ProgressBar as fo } from "./bundle.es31.js";
|
|
31
31
|
import { ThemeProvider as io, useTheme as lo } from "./bundle.es32.js";
|
|
32
|
-
import { useLocalStorage as
|
|
32
|
+
import { useLocalStorage as co } from "./bundle.es33.js";
|
|
33
33
|
import { createAlertAgent as uo } from "./bundle.es34.js";
|
|
34
34
|
import { createToaster as To } from "./bundle.es35.js";
|
|
35
35
|
import { Toast as Do } from "./bundle.es36.js";
|
|
@@ -38,7 +38,7 @@ import { createPopoversRegistry as vo } from "./bundle.es38.js";
|
|
|
38
38
|
export {
|
|
39
39
|
j as AlertDialog,
|
|
40
40
|
e as Button,
|
|
41
|
-
|
|
41
|
+
p as ButtonGroup,
|
|
42
42
|
B as Checkbox,
|
|
43
43
|
K as Countdown,
|
|
44
44
|
Z as DateInput,
|
|
@@ -49,31 +49,31 @@ export {
|
|
|
49
49
|
$ as FileOverlay,
|
|
50
50
|
ro as FormGroup,
|
|
51
51
|
mo as Icon,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
z as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
l as ImitateScroll,
|
|
53
|
+
D as Input,
|
|
54
|
+
z as LoadingButton,
|
|
55
|
+
h as NumberInput,
|
|
56
|
+
P as OptionItem,
|
|
57
|
+
v as OptionsList,
|
|
58
|
+
c as Popover,
|
|
59
59
|
fo as ProgressBar,
|
|
60
60
|
y as Radio,
|
|
61
61
|
G as RadioGroup,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
a as Scrollable,
|
|
63
|
+
T as Select,
|
|
64
64
|
V as SelectTags,
|
|
65
|
-
|
|
65
|
+
x as Spinner,
|
|
66
66
|
k as Switch,
|
|
67
67
|
H as Tabs,
|
|
68
68
|
Q as TextArea,
|
|
69
69
|
io as ThemeProvider,
|
|
70
70
|
to as TimePicker,
|
|
71
71
|
Do as Toast,
|
|
72
|
-
|
|
72
|
+
u as Tooltip,
|
|
73
73
|
uo as createAlertAgent,
|
|
74
74
|
ho as createDialogsRegistry,
|
|
75
75
|
vo as createPopoversRegistry,
|
|
76
76
|
To as createToaster,
|
|
77
|
-
|
|
77
|
+
co as useLocalStorage,
|
|
78
78
|
lo as useTheme
|
|
79
79
|
};
|
package/dist/bundle.es10.js
CHANGED
|
@@ -1,38 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useRef as R } from "react";
|
|
3
|
+
import { mergeRefs as c } from "react-merge-refs";
|
|
4
|
+
import { InputElement as x } from "./bundle.es43.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es44.js";
|
|
6
|
+
import g from "classnames";
|
|
7
|
+
const N = b(
|
|
8
|
+
({
|
|
9
|
+
onChange: m,
|
|
10
|
+
onValueChange: f,
|
|
11
|
+
readOnly: i,
|
|
12
|
+
inputClassName: o,
|
|
13
|
+
value: p,
|
|
14
|
+
placeholder: n,
|
|
15
|
+
mask: d,
|
|
16
|
+
inputType: s = "text",
|
|
17
|
+
maskChar: u,
|
|
18
|
+
inputRef: a,
|
|
19
|
+
...e
|
|
20
|
+
}, l) => {
|
|
21
|
+
const r = R(null);
|
|
22
|
+
return /* @__PURE__ */ t(I, { ref: l, inputRef: r, ...e, children: /* @__PURE__ */ t(
|
|
23
|
+
x,
|
|
14
24
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className:
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
n && /* @__PURE__ */ o("div", { className: "option-label", children: n })
|
|
28
|
-
] })
|
|
29
|
-
] }),
|
|
30
|
-
e && !r && /* @__PURE__ */ o("div", { className: "option-check", children: /* @__PURE__ */ o(v, { icon: x.faCheck }) })
|
|
31
|
-
]
|
|
25
|
+
type: s,
|
|
26
|
+
ref: c([r, a]),
|
|
27
|
+
className: g("form-input form-input-base", o),
|
|
28
|
+
"aria-disabled": e.disabled,
|
|
29
|
+
onChange: m,
|
|
30
|
+
onValueChange: f,
|
|
31
|
+
value: p,
|
|
32
|
+
placeholder: n,
|
|
33
|
+
disabled: e.disabled,
|
|
34
|
+
readOnly: i,
|
|
35
|
+
maskChar: u,
|
|
36
|
+
mask: d
|
|
32
37
|
}
|
|
33
|
-
);
|
|
38
|
+
) });
|
|
34
39
|
}
|
|
35
40
|
);
|
|
36
41
|
export {
|
|
37
|
-
|
|
42
|
+
N as Input
|
|
38
43
|
};
|
package/dist/bundle.es11.js
CHANGED
|
@@ -1,58 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
placeholder: u,
|
|
15
|
-
thousandSeparator: a,
|
|
16
|
-
decimalSeparator: p,
|
|
17
|
-
allowedDecimalSeparators: l,
|
|
18
|
-
thousandsGroupStyle: s,
|
|
19
|
-
decimalScale: d,
|
|
20
|
-
fixedDecimalScale: b,
|
|
21
|
-
allowNegative: R = !1,
|
|
22
|
-
allowLeadingZeros: c,
|
|
23
|
-
suffix: g,
|
|
24
|
-
prefix: x,
|
|
25
|
-
inputRef: I,
|
|
26
|
-
...e
|
|
27
|
-
}, N) => {
|
|
28
|
-
const r = w(null);
|
|
29
|
-
return /* @__PURE__ */ t(F, { ref: N, inputRef: r, ...e, children: /* @__PURE__ */ t(
|
|
30
|
-
V,
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import N from "classnames";
|
|
3
|
+
import { Icon as v } from "./bundle.es30.js";
|
|
4
|
+
import { attr as t } from "@companix/utils-browser";
|
|
5
|
+
import { forwardRef as k } from "react";
|
|
6
|
+
import { f as x } from "./bundle.es45.js";
|
|
7
|
+
const E = k(
|
|
8
|
+
({ title: s, icon: c, active: e, label: n, disabled: a, minimal: r, onClick: d, className: l, ...m }, p) => {
|
|
9
|
+
const f = (h) => {
|
|
10
|
+
a || d?.(h);
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ i(
|
|
13
|
+
"div",
|
|
31
14
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
className:
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
allowLeadingZeros: c,
|
|
50
|
-
suffix: g,
|
|
51
|
-
prefix: x
|
|
15
|
+
ref: p,
|
|
16
|
+
...m,
|
|
17
|
+
className: N("option", l),
|
|
18
|
+
"data-selected": t(e),
|
|
19
|
+
"data-disabled": t(a),
|
|
20
|
+
"data-minimal": t(r),
|
|
21
|
+
onClick: f,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ i("div", { className: "option-content", children: [
|
|
24
|
+
c && /* @__PURE__ */ o("div", { className: "option-icon", children: c }),
|
|
25
|
+
/* @__PURE__ */ i("div", { className: "option-content-layout", children: [
|
|
26
|
+
/* @__PURE__ */ o("div", { className: "option-title", children: s }),
|
|
27
|
+
n && /* @__PURE__ */ o("div", { className: "option-label", children: n })
|
|
28
|
+
] })
|
|
29
|
+
] }),
|
|
30
|
+
e && !r && /* @__PURE__ */ o("div", { className: "option-check", children: /* @__PURE__ */ o(v, { icon: x.faCheck }) })
|
|
31
|
+
]
|
|
52
32
|
}
|
|
53
|
-
)
|
|
33
|
+
);
|
|
54
34
|
}
|
|
55
35
|
);
|
|
56
36
|
export {
|
|
57
|
-
|
|
37
|
+
E as OptionItem
|
|
58
38
|
};
|
package/dist/bundle.es12.js
CHANGED
|
@@ -1,18 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import C from "classnames";
|
|
3
|
+
import { forwardRef as j, useRef as w } from "react";
|
|
4
|
+
import { mergeRefs as y } from "react-merge-refs";
|
|
5
|
+
import { InputContainer as F } from "./bundle.es44.js";
|
|
6
|
+
import { NumericFormat as V } from "react-number-format";
|
|
7
|
+
const D = j(
|
|
8
|
+
({
|
|
9
|
+
onChange: m,
|
|
10
|
+
onValueChange: o,
|
|
11
|
+
readOnly: f,
|
|
12
|
+
inputClassName: i,
|
|
13
|
+
value: n,
|
|
14
|
+
placeholder: u,
|
|
15
|
+
thousandSeparator: a,
|
|
16
|
+
decimalSeparator: p,
|
|
17
|
+
allowedDecimalSeparators: l,
|
|
18
|
+
thousandsGroupStyle: s,
|
|
19
|
+
decimalScale: d,
|
|
20
|
+
fixedDecimalScale: b,
|
|
21
|
+
allowNegative: R = !1,
|
|
22
|
+
allowLeadingZeros: c,
|
|
23
|
+
suffix: g,
|
|
24
|
+
prefix: x,
|
|
25
|
+
inputRef: I,
|
|
26
|
+
...e
|
|
27
|
+
}, N) => {
|
|
28
|
+
const r = w(null);
|
|
29
|
+
return /* @__PURE__ */ t(F, { ref: N, inputRef: r, ...e, children: /* @__PURE__ */ t(
|
|
30
|
+
V,
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
getInputRef: y([r, I]),
|
|
34
|
+
className: C("form-input form-input-base", i),
|
|
35
|
+
"aria-disabled": e.disabled,
|
|
36
|
+
onChange: m,
|
|
37
|
+
onValueChange: ({ floatValue: h }) => o?.(h ?? null),
|
|
38
|
+
value: n,
|
|
39
|
+
placeholder: u,
|
|
40
|
+
disabled: e.disabled,
|
|
41
|
+
readOnly: f,
|
|
42
|
+
thousandSeparator: a,
|
|
43
|
+
decimalSeparator: p,
|
|
44
|
+
allowedDecimalSeparators: l,
|
|
45
|
+
thousandsGroupStyle: s,
|
|
46
|
+
decimalScale: d,
|
|
47
|
+
fixedDecimalScale: b,
|
|
48
|
+
allowNegative: R,
|
|
49
|
+
allowLeadingZeros: c,
|
|
50
|
+
suffix: g,
|
|
51
|
+
prefix: x
|
|
52
|
+
}
|
|
53
|
+
) });
|
|
14
54
|
}
|
|
15
55
|
);
|
|
16
56
|
export {
|
|
17
|
-
|
|
57
|
+
D as NumberInput
|
|
18
58
|
};
|
package/dist/bundle.es13.js
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Scrollable as n } from "./bundle.es5.js";
|
|
3
|
+
const s = ({
|
|
4
|
+
children: o,
|
|
5
|
+
maxHeight: t,
|
|
6
|
+
scrollboxRef: i,
|
|
7
|
+
optionsWrapperRef: e
|
|
8
|
+
}) => /* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
ref: i,
|
|
12
|
+
implementation: "inner",
|
|
13
|
+
padding: 10,
|
|
14
|
+
thumbPadding: 3,
|
|
15
|
+
thumbColor: "#0000002b",
|
|
16
|
+
maxHeight: t,
|
|
17
|
+
scrollY: !0,
|
|
18
|
+
children: /* @__PURE__ */ r("div", { className: "option-list", ref: e, children: o })
|
|
19
|
+
}
|
|
7
20
|
);
|
|
8
21
|
export {
|
|
9
|
-
|
|
22
|
+
s as OptionsList
|
|
10
23
|
};
|
package/dist/bundle.es2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as x, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import j from "classnames";
|
|
3
|
-
import { Spinner as k } from "./bundle.
|
|
3
|
+
import { Spinner as k } from "./bundle.es4.js";
|
|
4
4
|
import { forwardRef as w } from "react";
|
|
5
5
|
import { attr as r } from "@companix/utils-browser";
|
|
6
6
|
const F = w(
|
package/dist/bundle.es20.js
CHANGED
package/dist/bundle.es24.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useFroozeClosing as M } from "./bundle.es39.js";
|
|
3
|
-
import { Popover as j } from "./bundle.
|
|
4
|
-
import { OptionItem as q } from "./bundle.
|
|
5
|
-
import { OptionsList as V } from "./bundle.
|
|
3
|
+
import { Popover as j } from "./bundle.es7.js";
|
|
4
|
+
import { OptionItem as q } from "./bundle.es11.js";
|
|
5
|
+
import { OptionsList as V } from "./bundle.es13.js";
|
|
6
6
|
import { Icon as d } from "./bundle.es30.js";
|
|
7
7
|
import { useState as B, useRef as h, useMemo as g } from "react";
|
|
8
8
|
import { f as H } from "./bundle.es49.js";
|
package/dist/bundle.es25.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { Popover as x } from "./bundle.
|
|
3
|
-
import { Input as A } from "./bundle.
|
|
2
|
+
import { Popover as x } from "./bundle.es7.js";
|
|
3
|
+
import { Input as A } from "./bundle.es10.js";
|
|
4
4
|
import { useState as M, useRef as j } from "react";
|
|
5
5
|
import { Calendar as E } from "./bundle.es51.js";
|
|
6
6
|
import { useDayDisableCheker as N } from "./bundle.es52.js";
|
package/dist/bundle.es26.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as D, jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as M, useEffect as C } from "react";
|
|
3
|
-
import { Select as c } from "./bundle.
|
|
3
|
+
import { Select as c } from "./bundle.es9.js";
|
|
4
4
|
import { createDateValidation as O, getMonthMaxDay as T } from "./bundle.es53.js";
|
|
5
5
|
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es55.js";
|
|
6
6
|
const B = ({
|
package/dist/bundle.es29.js
CHANGED
|
@@ -3,8 +3,8 @@ import { useRef as _, useMemo as b, useState as P, useEffect as j } from "react"
|
|
|
3
3
|
import { getNum as v } from "@companix/utils-js";
|
|
4
4
|
import { getTimesOptions as D, getTimeValue as A, removeDigits as W, convertTimeToOption as q } from "./bundle.es53.js";
|
|
5
5
|
import { SelectRightElements as w } from "./bundle.es54.js";
|
|
6
|
-
import { Select as y } from "./bundle.
|
|
7
|
-
import { Input as z } from "./bundle.
|
|
6
|
+
import { Select as y } from "./bundle.es9.js";
|
|
7
|
+
import { Input as z } from "./bundle.es10.js";
|
|
8
8
|
const r = {
|
|
9
9
|
char: ":",
|
|
10
10
|
toString: (s) => s ? q(s, r.char) : "",
|