prometeo-design-system 2.7.0 → 2.7.2
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/Avatar.es.js +72 -33
- package/dist/Button.es.js +398 -2
- package/dist/DatePicker.es.js +2 -2
- package/dist/DrawerDesktop.es.js +31 -30
- package/dist/FAButton.es.js +69 -18
- package/dist/Header.es.js +14 -14
- package/dist/Icons/Icons.d.ts +5 -0
- package/dist/Icons.es.js +432 -330
- package/dist/{ImageGallery-DKzJg3un.js → ImageGallery-D8nIvBpV.js} +7 -7
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input-CnXDg2s7.js +253 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormikV2.es.js +30 -18
- package/dist/ProgressBar.es.js +63 -35
- package/dist/{Select-BQMdfu1n.js → Select-CiaBY4E0.js} +332 -235
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +21 -20
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Switch.es.js +4 -4
- package/dist/Toast.es.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +9 -4
- package/dist/components/Button/Button.d.ts +8 -14
- package/dist/components/Button/Button_Legacy.d.ts +29 -0
- package/dist/components/Input/Input.d.ts +7 -10
- package/dist/components/ProgressBar/ProgressBar.d.ts +13 -3
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +5 -5
- package/dist/components/Select/Select.d.ts +5 -5
- package/dist/exports/ProgressBar.d.ts +1 -1
- package/dist/index-BOQuZ0gG.js +34 -0
- package/dist/index.d.ts +1 -3
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +19 -21
- package/package.json +1 -5
- package/dist/Button-CvBWH1HX.js +0 -183
- package/dist/ButtonV2.d.ts +0 -6
- package/dist/ButtonV2.es.js +0 -217
- package/dist/Input-BTsR-vNF.js +0 -281
- package/dist/components/Button/ButtonV2.d.ts +0 -23
- package/dist/exports/ButtonV2.d.ts +0 -2
package/dist/Select.es.js
CHANGED
package/dist/SelectFormik.es.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as c } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { useField as y } from "formik";
|
|
3
|
-
import { S as m } from "./Select-
|
|
3
|
+
import { S as m } from "./Select-CiaBY4E0.js";
|
|
4
4
|
import { useRef as p, useEffect as g } from "react";
|
|
5
5
|
function f(e) {
|
|
6
6
|
return Array.isArray(e) && e.every(
|
|
7
|
-
(
|
|
7
|
+
(l) => typeof l == "string" || typeof l == "number"
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
10
|
function v(e) {
|
|
11
11
|
return e == null || typeof e == "string" || typeof e == "number";
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
const [
|
|
13
|
+
const S = (e) => {
|
|
14
|
+
const [l, a, r] = y(e.name), u = p(!1), o = Array.isArray(l.value);
|
|
15
15
|
if (g(() => {
|
|
16
|
-
u.current || (u.current = !0, o ? f(
|
|
16
|
+
u.current || (u.current = !0, o ? f(l.value) || (console.warn(
|
|
17
17
|
`SelectFormik: El valor del campo "${e.name}" no es un array válido de string | number. Valor recibido:`,
|
|
18
|
-
|
|
18
|
+
l.value,
|
|
19
19
|
"Inicializando como array vacío."
|
|
20
|
-
),
|
|
20
|
+
), r.setValue([])) : v(l.value) || (console.warn(
|
|
21
21
|
`SelectFormik: El valor del campo "${e.name}" no es un valor válido (string | number | null). Valor recibido:`,
|
|
22
|
-
|
|
22
|
+
l.value,
|
|
23
23
|
"Inicializando como null."
|
|
24
|
-
),
|
|
25
|
-
}, [
|
|
26
|
-
const n = (
|
|
27
|
-
|
|
28
|
-
}, i = f(
|
|
29
|
-
return /* @__PURE__ */
|
|
24
|
+
), r.setValue(null)));
|
|
25
|
+
}, [l.value, r, e.name, o]), o) {
|
|
26
|
+
const n = (d) => {
|
|
27
|
+
r.setValue(d.map((s) => s.value));
|
|
28
|
+
}, i = f(l.value) ? l.value : [], t = e?.displayMode || "chips";
|
|
29
|
+
return /* @__PURE__ */ c.jsx(
|
|
30
30
|
m,
|
|
31
31
|
{
|
|
32
32
|
...e,
|
|
@@ -40,9 +40,9 @@ const b = (e) => {
|
|
|
40
40
|
);
|
|
41
41
|
} else {
|
|
42
42
|
const n = (s) => {
|
|
43
|
-
|
|
44
|
-
}, i = v(
|
|
45
|
-
return /* @__PURE__ */
|
|
43
|
+
r.setValue(s?.value ?? null);
|
|
44
|
+
}, i = v(l.value) ? l.value : void 0, { ...t } = e;
|
|
45
|
+
return /* @__PURE__ */ c.jsx(
|
|
46
46
|
m,
|
|
47
47
|
{
|
|
48
48
|
...t,
|
|
@@ -51,11 +51,12 @@ const b = (e) => {
|
|
|
51
51
|
value: i,
|
|
52
52
|
onChange: n,
|
|
53
53
|
variant: a.error ? "error" : "default",
|
|
54
|
-
errorComponent: a.error || void 0
|
|
54
|
+
errorComponent: a.error || void 0,
|
|
55
|
+
disabled: e.disabled
|
|
55
56
|
}
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
S as default
|
|
61
62
|
};
|
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as G } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { g as i, S as H } from "./Select-
|
|
2
|
+
import { g as i, S as H } from "./Select-CiaBY4E0.js";
|
|
3
3
|
import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
|
|
4
4
|
function te(e) {
|
|
5
5
|
const {
|
package/dist/Switch.es.js
CHANGED
|
@@ -52,22 +52,22 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
52
52
|
/* @__PURE__ */ a.jsx(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
|
+
onClick: h,
|
|
55
56
|
className: r(
|
|
56
|
-
"w-14 h-8 rounded-full relative px-2",
|
|
57
|
+
"w-14 h-8 rounded-full relative px-2 cursor-pointer",
|
|
58
|
+
t && "cursor-default",
|
|
57
59
|
i[e][s].container
|
|
58
60
|
),
|
|
59
61
|
children: /* @__PURE__ */ a.jsx(
|
|
60
62
|
c.span,
|
|
61
63
|
{
|
|
62
|
-
onClick: h,
|
|
63
64
|
animate: m[e],
|
|
64
65
|
whileHover: t ? {} : {
|
|
65
66
|
background: e === "off" ? "rgba(29, 27, 32, 0.08)" : "rgba(101, 85, 143, 0.12)"
|
|
66
67
|
},
|
|
67
68
|
className: r(
|
|
68
69
|
"absolute top-1/2 -translate-y-1/2 grid place-items-center ",
|
|
69
|
-
"size-10 aspect-square rounded-full absolute top-1/2 -translate-y-1/2"
|
|
70
|
-
"cursor-pointer"
|
|
70
|
+
"size-10 aspect-square rounded-full absolute top-1/2 -translate-y-1/2"
|
|
71
71
|
),
|
|
72
72
|
children: /* @__PURE__ */ a.jsx(
|
|
73
73
|
c.span,
|
package/dist/Toast.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import b from "react";
|
|
|
3
3
|
import { toast as p } from "sonner";
|
|
4
4
|
import { Icons as m } from "./Icons.es.js";
|
|
5
5
|
import { c as s } from "./cn-B6yFEsav.js";
|
|
6
|
-
import
|
|
6
|
+
import u from "./Button.es.js";
|
|
7
7
|
const x = {
|
|
8
8
|
dark: {
|
|
9
9
|
success: {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SizeVariant = "xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
2
|
+
interface IAvatar {
|
|
2
3
|
imageUrl?: string;
|
|
3
|
-
sizeImage?:
|
|
4
|
-
sizeFallback?:
|
|
4
|
+
sizeImage?: SizeVariant;
|
|
5
|
+
sizeFallback?: SizeVariant;
|
|
5
6
|
fallbackText?: string;
|
|
6
|
-
|
|
7
|
+
subImageUrl?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function Avatar({ imageUrl, sizeImage, sizeFallback, fallbackText, subImageUrl, borderColor, }: IAvatar): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
variant?: "text" | "outline" | "filled" | null | undefined;
|
|
4
|
-
color?: "primary" | "secondary" | null | undefined;
|
|
5
|
-
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
|
-
disabled?: boolean | null | undefined;
|
|
7
|
-
loading?: boolean | null | undefined;
|
|
8
|
-
customSize?: boolean | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
export interface ButtonProps extends VariantProps<typeof buttonVariants> {
|
|
1
|
+
import { ButtonVariant, ColorVariant, SizeVariant } from '../Shared/types';
|
|
2
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
3
|
label?: string;
|
|
12
4
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
5
|
icon?: React.ReactNode;
|
|
@@ -17,13 +9,15 @@ export interface ButtonProps extends VariantProps<typeof buttonVariants> {
|
|
|
17
9
|
animateIcon?: boolean;
|
|
18
10
|
isLoading?: boolean;
|
|
19
11
|
children?: React.ReactNode;
|
|
20
|
-
|
|
12
|
+
spinner?: React.ReactNode;
|
|
21
13
|
type?: 'button' | "submit" | "reset";
|
|
22
14
|
className?: string;
|
|
23
15
|
disabled?: boolean;
|
|
24
|
-
variant?:
|
|
16
|
+
variant?: ButtonVariant;
|
|
25
17
|
form?: string;
|
|
18
|
+
size?: SizeVariant;
|
|
19
|
+
color?: ColorVariant;
|
|
20
|
+
hideSpinner?: boolean;
|
|
26
21
|
}
|
|
27
|
-
declare
|
|
28
|
-
declare const _default: import('react').MemoExoticComponent<typeof Button>;
|
|
22
|
+
declare const _default: import('react').MemoExoticComponent<({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, children, hideSpinner, spinner, type, className, disabled, variant, form, size, color }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
29
23
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const buttonVariants: (props?: ({
|
|
3
|
+
variant?: "text" | "outline" | "filled" | null | undefined;
|
|
4
|
+
color?: "primary" | "secondary" | null | undefined;
|
|
5
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
|
+
disabled?: boolean | null | undefined;
|
|
7
|
+
loading?: boolean | null | undefined;
|
|
8
|
+
customSize?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export interface ButtonProps extends VariantProps<typeof buttonVariants> {
|
|
11
|
+
label?: string;
|
|
12
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
contentClassName?: string;
|
|
15
|
+
loadingText?: string;
|
|
16
|
+
animate?: boolean;
|
|
17
|
+
animateIcon?: boolean;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
Spinner?: React.ReactNode;
|
|
21
|
+
type?: 'button' | "submit" | "reset";
|
|
22
|
+
className?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
variant?: "filled" | "outline" | "text";
|
|
25
|
+
form?: string;
|
|
26
|
+
}
|
|
27
|
+
declare function Button({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, disabled, type, variant, color, size, children, Spinner, className, form, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare const _default: import('react').MemoExoticComponent<typeof Button>;
|
|
29
|
+
export default _default;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
export type InputVariant = "default" | "error" | "success";
|
|
2
2
|
export type InputSize = "small" | "medium" | "large";
|
|
3
3
|
export type LabelVariant = "default" | "static";
|
|
4
|
-
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
4
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
5
5
|
label: string;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
|
-
iconPosition?:
|
|
7
|
+
iconPosition?: "left" | "right";
|
|
8
8
|
isFetching?: boolean;
|
|
9
9
|
id?: string;
|
|
10
|
-
onChange: (value: string, name?: string) => void;
|
|
11
10
|
value?: string;
|
|
12
|
-
debounceMs?: number;
|
|
13
11
|
width?: string;
|
|
14
12
|
height?: string;
|
|
15
|
-
name
|
|
13
|
+
name?: string;
|
|
16
14
|
variant?: InputVariant;
|
|
17
15
|
labelVariant?: LabelVariant;
|
|
18
16
|
size?: InputSize;
|
|
@@ -23,15 +21,14 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
23
21
|
placeholder?: string;
|
|
24
22
|
required?: boolean;
|
|
25
23
|
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
onClear?: () => void;
|
|
26
28
|
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
27
29
|
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
28
|
-
onEmptied?: () => void;
|
|
29
30
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
30
31
|
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
31
|
-
isActive?: boolean;
|
|
32
|
-
style?: React.CSSProperties;
|
|
33
|
-
readOnly?: boolean;
|
|
34
|
-
onClear?: () => void;
|
|
35
32
|
}
|
|
36
33
|
declare const _default: import('react').NamedExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
37
34
|
export default _default;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
interface BaseProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
interface DateProgressProps extends BaseProgressProps {
|
|
6
|
+
variant: 'date';
|
|
3
7
|
startDate: string | Date;
|
|
4
8
|
endDate: string | Date;
|
|
5
|
-
label?: string;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
interface QuantityProgressProps extends BaseProgressProps {
|
|
11
|
+
variant: 'quantity';
|
|
12
|
+
current: number;
|
|
13
|
+
total: number;
|
|
14
|
+
unit?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ProgressBarProps = DateProgressProps | QuantityProgressProps;
|
|
17
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
18
|
export default ProgressBar;
|
|
@@ -8,22 +8,22 @@ export type CustomFrequencySettingsValue = {
|
|
|
8
8
|
dayOfMonth?: string;
|
|
9
9
|
};
|
|
10
10
|
type CustomFrequencySettingsValueDeltaBase = {
|
|
11
|
-
kind:
|
|
11
|
+
kind: "setInterval" | "setFrequency" | "setWeekdays" | "setDayOfMonth";
|
|
12
12
|
};
|
|
13
13
|
type CustomFrequencySettingsValueDeltaInterval = CustomFrequencySettingsValueDeltaBase & {
|
|
14
|
-
kind:
|
|
14
|
+
kind: "setInterval";
|
|
15
15
|
interval: number;
|
|
16
16
|
};
|
|
17
17
|
type CustomFrequencySettingsValueDeltaFrequency = CustomFrequencySettingsValueDeltaBase & {
|
|
18
|
-
kind:
|
|
18
|
+
kind: "setFrequency";
|
|
19
19
|
frequency: CustomFrequency;
|
|
20
20
|
};
|
|
21
21
|
type CustomFrequencySettingsValueDeltaWeekdays = CustomFrequencySettingsValueDeltaBase & {
|
|
22
|
-
kind:
|
|
22
|
+
kind: "setWeekdays";
|
|
23
23
|
weekdays: weekDay[];
|
|
24
24
|
};
|
|
25
25
|
type CustomFrequencySettingsValueDeltaDayOfMonth = CustomFrequencySettingsValueDeltaBase & {
|
|
26
|
-
kind:
|
|
26
|
+
kind: "setDayOfMonth";
|
|
27
27
|
dayOfMonth: string;
|
|
28
28
|
};
|
|
29
29
|
export type CustomFrequencySettingsValueDelta = CustomFrequencySettingsValueDeltaInterval | CustomFrequencySettingsValueDeltaFrequency | CustomFrequencySettingsValueDeltaWeekdays | CustomFrequencySettingsValueDeltaDayOfMonth;
|
|
@@ -26,7 +26,7 @@ interface SelectOptionRendererProps<T = unknown> {
|
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
isLoading?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export interface CustomSelectOptionRendererProps<T, TContext = unknown> extends Omit<SelectOptionRendererProps<T>,
|
|
29
|
+
export interface CustomSelectOptionRendererProps<T, TContext = unknown> extends Omit<SelectOptionRendererProps<T>, "onSelect"> {
|
|
30
30
|
option: T;
|
|
31
31
|
onSelect: (closeOnSelect?: boolean) => void;
|
|
32
32
|
disabled?: boolean;
|
|
@@ -42,7 +42,7 @@ export interface CustomSelectOptionGroupHeaderProps<T, TContext = unknown> {
|
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
expanded: boolean;
|
|
44
44
|
toggleGroup: (nextExpanded?: boolean) => void;
|
|
45
|
-
selectGroup: (mode?:
|
|
45
|
+
selectGroup: (mode?: "toggle" | "select" | "deselect") => void;
|
|
46
46
|
renderContext?: TContext;
|
|
47
47
|
}
|
|
48
48
|
export type SelectVariant = "default" | "error" | "success";
|
|
@@ -87,7 +87,7 @@ export interface BaseSelectProps<T, TContext = unknown> {
|
|
|
87
87
|
errorComponent?: React.ReactNode;
|
|
88
88
|
helperComponent?: React.ReactNode;
|
|
89
89
|
variant?: ComponentVariant;
|
|
90
|
-
overflow?:
|
|
90
|
+
overflow?: "wrap" | "scroll";
|
|
91
91
|
containerClassName?: string;
|
|
92
92
|
buttonClassName?: string;
|
|
93
93
|
dropdownClassName?: string;
|
|
@@ -107,13 +107,13 @@ export interface MultipleSelectProps<T, TContext = unknown> extends BaseSelectPr
|
|
|
107
107
|
multiple: true;
|
|
108
108
|
value: (string | number)[];
|
|
109
109
|
onChange?: (newValue: SelectOptionType[], name?: string) => void;
|
|
110
|
-
displayMode?:
|
|
110
|
+
displayMode?: "compact" | "chips";
|
|
111
111
|
}
|
|
112
112
|
export interface SingleSelectProps<T, TContext = unknown> extends BaseSelectProps<T, TContext> {
|
|
113
113
|
multiple?: false;
|
|
114
114
|
value: string | number | undefined;
|
|
115
115
|
onChange?: (newValue: SelectOptionType | undefined, name?: string) => void;
|
|
116
|
-
displayMode?:
|
|
116
|
+
displayMode?: "compact";
|
|
117
117
|
}
|
|
118
118
|
export type SelectProps<T = unknown, TContext = unknown> = MultipleSelectProps<T, TContext> | SingleSelectProps<T, TContext>;
|
|
119
119
|
declare const SelectWithOverloads: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from '../components/ProgressBar/ProgressBar';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ProgressBarProps } from '../components/ProgressBar/ProgressBar';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { clsx as O } from "clsx";
|
|
2
|
+
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
|
+
var u;
|
|
4
|
+
if (l?.variants == null) return y(e, n?.class, n?.className);
|
|
5
|
+
const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
|
|
6
|
+
const a = n?.[t], s = d?.[t];
|
|
7
|
+
if (a === null) return null;
|
|
8
|
+
const i = m(a) || m(s);
|
|
9
|
+
return r[t][i];
|
|
10
|
+
}), v = n && Object.entries(n).reduce((t, a) => {
|
|
11
|
+
let [s, i] = a;
|
|
12
|
+
return i === void 0 || (t[s] = i), t;
|
|
13
|
+
}, {}), N = l == null || (u = l.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((t, a) => {
|
|
14
|
+
let { class: s, className: i, ...f } = a;
|
|
15
|
+
return Object.entries(f).every((C) => {
|
|
16
|
+
let [c, o] = C;
|
|
17
|
+
return Array.isArray(o) ? o.includes({
|
|
18
|
+
...d,
|
|
19
|
+
...v
|
|
20
|
+
}[c]) : {
|
|
21
|
+
...d,
|
|
22
|
+
...v
|
|
23
|
+
}[c] === o;
|
|
24
|
+
}) ? [
|
|
25
|
+
...t,
|
|
26
|
+
s,
|
|
27
|
+
i
|
|
28
|
+
] : t;
|
|
29
|
+
}, []);
|
|
30
|
+
return y(e, V, N, n?.class, n?.className);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
j as c
|
|
34
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export { default as FAButton } from './components/FAB/FAButton';
|
|
|
41
41
|
export { default as InputFormikV2 } from './components/InputFormik/InputFormikV2';
|
|
42
42
|
export { default as RadioButtonFormik } from './components/RadioButtonFormik/RadioButtonFormik';
|
|
43
43
|
export { default as RadioButton } from './components/RadioButton/RadioButton';
|
|
44
|
-
export { default as ButtonV2 } from './components/Button/ButtonV2';
|
|
45
44
|
export * from './components/Sidebar';
|
|
46
45
|
export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
47
46
|
export { Badge } from './components/Sidebar/components/badge';
|
|
@@ -87,7 +86,7 @@ export type { DialogHandle } from './components/Dialog/Dialog';
|
|
|
87
86
|
export { DropZone } from './components/DropZone/DropZone';
|
|
88
87
|
export type { PyrionToastProps as ToasterPrometeo } from './components/Toaster/Toaster';
|
|
89
88
|
export type { LayoutGenericProps } from './components/Layout/LayoutGeneric';
|
|
90
|
-
export type {
|
|
89
|
+
export type { ProgressBarProps } from './components/ProgressBar/ProgressBar';
|
|
91
90
|
export type { IToolTipProps } from './components/Tooltip/Tootip';
|
|
92
91
|
export type { InputMultipleProps } from './components/InputMultiple/InputMultiple';
|
|
93
92
|
export type { SwitchProps } from './components/Switch/Switch';
|
|
@@ -110,5 +109,4 @@ export type { FAButtonProps } from './components/FAB/FAButton';
|
|
|
110
109
|
export type { IInputFormikV2 } from './components/InputFormik/InputFormikV2';
|
|
111
110
|
export type { RadioButtonProps } from './components/RadioButton/RadioButton';
|
|
112
111
|
export type { RadioButtonFormikProps } from './components/RadioButtonFormik/RadioButtonFormik';
|
|
113
|
-
export type { ButtonProps as ButtonV2Props } from './components/Button/ButtonV2';
|
|
114
112
|
export { Icons } from './Icons/Icons';
|