@ufal-lccv/gpsub-ds 0.0.21 → 0.0.23
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/README.md +31 -31
- package/dist/{RequiredLabel.view-vhY8Ifny.js → RequiredLabel.view-CozPA47g.js} +26 -25
- package/dist/RequiredLabel.view-Cst1Xi0O.cjs +1 -0
- package/dist/{Table.view-DrGCSijo.js → Table.view-CraTHYN6.js} +37 -37
- package/dist/{Table.view-Cq1l_7IE.cjs → Table.view-oMq7rOZT.cjs} +9 -10
- package/dist/Title.view-BqxGXSW7.cjs +1 -0
- package/dist/Title.view-DY1vs-iO.js +54 -0
- package/dist/Tooltip.view-7yR4bqF1.cjs +1455 -0
- package/dist/{Tooltip.view-B2Qudmep.js → Tooltip.view-Cao5yOMP.js} +2351 -2177
- package/dist/components/atoms/LibraryCard/LibraryCard.view.d.ts +6 -2
- package/dist/components/atoms/LoadingBar/LoadingBar.styles.d.ts +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.view.d.ts +4 -2
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +9 -9
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +35 -31
- package/dist/components/molecules/ActionButton/ActionButton.view.d.ts +1 -1
- package/dist/components/molecules/Alert/Alert.view.d.ts +1 -0
- package/dist/components/molecules/Alert/index.d.ts +1 -0
- package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +1 -1
- package/dist/components/molecules/Confirm/ConfirmModal.view.d.ts +1 -1
- package/dist/components/molecules/Empty/Empty.types.d.ts +2 -1
- package/dist/components/molecules/Loading/Loading.view.d.ts +1 -1
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.types.d.ts +10 -0
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.view.d.ts +3 -0
- package/dist/components/molecules/Modal/DefaultFooter/index.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.view.d.ts +5 -1
- package/dist/components/molecules/MultiSelect/MultiSelect.view.d.ts +1 -0
- package/dist/components/molecules/MultiSelect/index.d.ts +1 -0
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/molecules/index.es.js +21 -18
- package/dist/components/organisms/Autocomplete/Autocomplete.view.d.ts +1 -0
- package/dist/components/organisms/Autocomplete/index.d.ts +1 -0
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.es.js +13 -11
- package/dist/hash-BtT4jVLO.js +25 -0
- package/dist/hash-CJrPvUOz.cjs +1 -0
- package/dist/helpers/functions/getLabelText.d.ts +2 -0
- package/dist/helpers/functions/index.d.ts +1 -0
- package/dist/helpers/index.cjs.js +1 -1
- package/dist/helpers/index.es.js +10 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -39
- package/dist/types/baseProps.d.ts +8 -0
- package/dist/types/icons.d.ts +1 -0
- package/dist/types/styleGuide/index.d.ts +174 -0
- package/dist/types/styleGuide/position.d.ts +1 -0
- package/package.json +121 -120
- package/dist/RequiredLabel.view-Dn02h8aL.cjs +0 -1
- package/dist/Title.view-Bw6K4U1v.cjs +0 -1
- package/dist/Title.view-lFI_ZPGv.js +0 -74
- package/dist/Tooltip.view-DGl4VmmK.cjs +0 -1456
|
@@ -2,8 +2,12 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface CardProps {
|
|
3
3
|
title: string;
|
|
4
4
|
icon: ReactNode;
|
|
5
|
-
|
|
5
|
+
iconBgColor: string;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
onClick?: () => void;
|
|
7
8
|
}
|
|
8
|
-
export declare
|
|
9
|
+
export declare const LibraryCard: {
|
|
10
|
+
({ title, icon, iconBgColor, onClick, disabled, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
9
13
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { Position } from '../../../types/styleGuide/position';
|
|
2
|
+
import { ArrowPositions, Position } from '../../../types/styleGuide/position';
|
|
3
3
|
export interface TooltipProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
label?: ReactNode;
|
|
7
7
|
position?: Position;
|
|
8
|
+
arrowPosition?: ArrowPositions;
|
|
8
9
|
size?: 'Small' | 'Medium';
|
|
9
10
|
tooltipChildren?: ReactNode;
|
|
10
11
|
textAlign?: 'left' | 'center' | 'right';
|
|
@@ -16,6 +17,7 @@ export interface TooltipProps {
|
|
|
16
17
|
wrapperWidth?: string;
|
|
17
18
|
wrapperHeight?: string;
|
|
18
19
|
tooltipMargin?: string;
|
|
20
|
+
tooltipPadding?: string;
|
|
19
21
|
wrapperStyles?: CSSProperties;
|
|
20
22
|
isErrorTooltip?: boolean;
|
|
21
23
|
isActive?: boolean;
|
|
@@ -25,6 +27,6 @@ export interface TooltipProps {
|
|
|
25
27
|
withDropShadow?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare const Tooltip: {
|
|
28
|
-
({ id, label, children, position, size, tooltipChildren, textAlign, customStyle, isErrorTooltip, isActive, isAlwaysVisible, width, maxWidth, color, wrapperWidth, wrapperHeight, height, tooltipMargin, wrapperStyles, withArrow, withBorder, withDropShadow, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
({ id, label, children, position, arrowPosition, size, tooltipChildren, textAlign, customStyle, isErrorTooltip, isActive, isAlwaysVisible, width, maxWidth, color, wrapperWidth, wrapperHeight, height, tooltipMargin, tooltipPadding, wrapperStyles, withArrow, withBorder, withDropShadow, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
29
31
|
displayName: string;
|
|
30
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Tooltip.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Tooltip.view-7yR4bqF1.cjs"),r=require("../../Title.view-BqxGXSW7.cjs");exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Container=e.Container;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.LoadingBar=e.LoadingBar;exports.Radio=e.Radio;exports.Spacer=e.Spacer;exports.Tooltip=e.Tooltip;exports.ErrorMessage=r.ErrorMessage;exports.Switch=r.Switch;exports.Title=r.Title;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { B as r, a as o, C as e, b as t, L as i, c as
|
|
2
|
-
import { E as
|
|
1
|
+
import { B as r, a as o, C as e, b as t, L as i, c as d, d as b, R as c, S as n, T as p } from "../../Tooltip.view-Cao5yOMP.js";
|
|
2
|
+
import { E as C, S as L, T as S } from "../../Title.view-DY1vs-iO.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Badge,
|
|
5
5
|
o as Button,
|
|
6
6
|
e as Checkbox,
|
|
7
7
|
t as Container,
|
|
8
|
-
|
|
8
|
+
C as ErrorMessage,
|
|
9
9
|
i as Label,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
d as LibraryCard,
|
|
11
|
+
b as LoadingBar,
|
|
12
|
+
c as Radio,
|
|
13
|
+
n as Spacer,
|
|
14
|
+
L as Switch,
|
|
15
15
|
S as Title,
|
|
16
|
-
|
|
16
|
+
p as Tooltip
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tooltip.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tooltip.view-7yR4bqF1.cjs"),o=require("../Title.view-BqxGXSW7.cjs"),i=require("sbwb-ds-latest"),r=require("../RequiredLabel.view-Cst1Xi0O.cjs"),t=require("../Table.view-oMq7rOZT.cjs");exports.ActionButton=e.ActionButton;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.Loading=e.Loading;exports.LoadingBar=e.LoadingBar;exports.Modal=e.Modal;exports.Radio=e.Radio;exports.SectionTitle=e.SectionTitle;exports.Spacer=e.Spacer;exports.Textarea=e.Textarea;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.ErrorMessage=o.ErrorMessage;exports.Switch=o.Switch;exports.Title=o.Title;Object.defineProperty(exports,"Alert",{enumerable:!0,get:()=>i.Alert});Object.defineProperty(exports,"Autocomplete",{enumerable:!0,get:()=>i.Autocomplete});Object.defineProperty(exports,"MultiSelect",{enumerable:!0,get:()=>i.MultiSelect});exports.AlertInline=r.AlertInline;exports.LabelField=r.LabelField;exports.RequiredLabelView=r.RequiredLabelView;exports.CheckboxField=t.CheckboxField;exports.CollapseSection=t.CollapseSection;exports.MenuSelect=t.MenuSelect;exports.Section=t.Section;exports.Select=t.Select;exports.SelectButton=t.SelectButton;exports.SelectField=t.SelectField;exports.TabInfo=t.TabInfo;exports.Table=t.Table;exports.TextareaField=t.TextareaField;
|
|
@@ -1,47 +1,51 @@
|
|
|
1
|
-
import { A as s, B as o, a as t, C as r,
|
|
2
|
-
import { E as I,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { A as s, B as o, a as t, C as r, f as i, e as l, f as n, b as c, E as d, F as f, F as m, I as S, g as p, L as C, c as b, h as T, d as u, M as x, R as F, j as L, S as M, k as B, T as h, s as A, i as g } from "../Tooltip.view-Cao5yOMP.js";
|
|
2
|
+
import { E as I, S as E, T as R } from "../Title.view-DY1vs-iO.js";
|
|
3
|
+
import { Alert as y, Autocomplete as V, MultiSelect as j } from "sbwb-ds-latest";
|
|
4
|
+
import { A as v, L as z, R as D } from "../RequiredLabel.view-CozPA47g.js";
|
|
5
|
+
import { a as H, C as J, M as K, b as N, c as O, d as P, S as Q, e as U, f as W, T as X } from "../Table.view-CraTHYN6.js";
|
|
5
6
|
export {
|
|
6
7
|
s as ActionButton,
|
|
7
|
-
y as
|
|
8
|
+
y as Alert,
|
|
9
|
+
v as AlertInline,
|
|
10
|
+
V as Autocomplete,
|
|
8
11
|
o as Badge,
|
|
9
12
|
t as Button,
|
|
10
13
|
r as Checkbox,
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
H as CheckboxField,
|
|
15
|
+
J as CollapseSection,
|
|
13
16
|
i as Confirm,
|
|
14
17
|
l as ConfirmButton,
|
|
15
18
|
n as ConfirmModal,
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
c as Container,
|
|
20
|
+
d as Empty,
|
|
18
21
|
I as ErrorMessage,
|
|
19
22
|
f as Frame,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
m as FrameView,
|
|
24
|
+
S as Info,
|
|
25
|
+
p as Input,
|
|
26
|
+
C as Label,
|
|
27
|
+
z as LabelField,
|
|
28
|
+
b as LibraryCard,
|
|
26
29
|
T as Loading,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
u as LoadingBar,
|
|
31
|
+
K as MenuSelect,
|
|
32
|
+
x as Modal,
|
|
33
|
+
j as MultiSelect,
|
|
34
|
+
F as Radio,
|
|
35
|
+
D as RequiredLabelView,
|
|
36
|
+
N as Section,
|
|
37
|
+
L as SectionTitle,
|
|
38
|
+
O as Select,
|
|
39
|
+
P as SelectButton,
|
|
40
|
+
Q as SelectField,
|
|
41
|
+
M as Spacer,
|
|
38
42
|
E as Switch,
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
U as TabInfo,
|
|
44
|
+
W as Table,
|
|
41
45
|
B as Textarea,
|
|
42
|
-
|
|
46
|
+
X as TextareaField,
|
|
43
47
|
R as Title,
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
h as Tooltip,
|
|
49
|
+
A as showConfirm,
|
|
46
50
|
g as showModal
|
|
47
51
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from 'sbwb-ds-latest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert.view';
|
|
@@ -9,5 +9,5 @@ interface AlertInlineViewProps {
|
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
canClose?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const AlertInline: ({ width, height, type, title, message, margin, open, onClose, canClose }: AlertInlineViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const AlertInline: ({ width, height, type, title, message, margin, open, onClose, canClose, }: AlertInlineViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default AlertInline;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../../atoms';
|
|
3
|
-
import { IconType } from '
|
|
3
|
+
import { IconType } from '../../../types/icons';
|
|
4
4
|
export interface HandledButtonProps extends Omit<ButtonProps, 'onClick'> {
|
|
5
5
|
onClick: (destroy: () => void) => void;
|
|
6
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode, SVGProps } from 'react';
|
|
2
|
-
import { ButtonProps
|
|
2
|
+
import { ButtonProps } from '../../atoms';
|
|
3
|
+
import { IconType } from 'sbwb-ds';
|
|
3
4
|
import { ReactComponentType } from '../../../types/react';
|
|
4
5
|
export type EmptyMode = 'table' | 'data' | 'error' | 'warning' | 'folder';
|
|
5
6
|
export type EmptyCustomIconProps = SVGProps<SVGSVGElement> & {
|
|
@@ -4,7 +4,7 @@ export interface LoadingProps {
|
|
|
4
4
|
animationTitle?: string;
|
|
5
5
|
textWidth?: string;
|
|
6
6
|
wordBreak?: 'break-all' | 'break-word' | 'keep-all' | 'normal' | 'initial' | 'inherit';
|
|
7
|
-
variant?: 'Small' | 'Large' | 'Medium' | 'Auto';
|
|
7
|
+
variant?: 'Small' | 'Large' | 'Medium' | 'Auto' | 'Default';
|
|
8
8
|
fontSize?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const Loading: FC<LoadingProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { FooterProps } from './DefaultFooter';
|
|
2
3
|
export interface ModalViewElementProps {
|
|
3
4
|
id: string;
|
|
4
5
|
render: (handleClose: () => void) => ReactNode;
|
|
@@ -7,12 +8,15 @@ export interface ModalViewElementProps {
|
|
|
7
8
|
height?: string;
|
|
8
9
|
withCloseButton?: boolean;
|
|
9
10
|
customStyles?: CSSProperties;
|
|
11
|
+
customIcon?: Element;
|
|
12
|
+
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
13
|
+
footer?: FooterProps | ReactNode;
|
|
10
14
|
}
|
|
11
15
|
interface ModalViewProps extends ModalViewElementProps {
|
|
12
16
|
destroy: () => void;
|
|
13
17
|
}
|
|
14
18
|
export declare const Modal: {
|
|
15
|
-
({ render, destroy, title, width, height, withCloseButton, customStyles, }: ModalViewProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
({ render, destroy, title, width, height, withCloseButton, customStyles, customIcon, variant, footer, }: ModalViewProps): import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
displayName: string;
|
|
17
21
|
};
|
|
18
22
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MultiSelect } from 'sbwb-ds-latest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiSelect.view';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Tooltip.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Tooltip.view-7yR4bqF1.cjs"),o=require("sbwb-ds-latest"),t=require("../../RequiredLabel.view-Cst1Xi0O.cjs");exports.ActionButton=e.ActionButton;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.Loading=e.Loading;exports.Modal=e.Modal;exports.SectionTitle=e.SectionTitle;exports.Textarea=e.Textarea;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;Object.defineProperty(exports,"Alert",{enumerable:!0,get:()=>o.Alert});Object.defineProperty(exports,"MultiSelect",{enumerable:!0,get:()=>o.MultiSelect});exports.AlertInline=t.AlertInline;exports.LabelField=t.LabelField;exports.RequiredLabelView=t.RequiredLabelView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './ActionButton';
|
|
2
|
+
export * from './Alert';
|
|
2
3
|
export * from './AlertInline';
|
|
3
4
|
export * from './Confirm';
|
|
4
5
|
export * from './Empty';
|
|
@@ -8,6 +9,7 @@ export * from './Input';
|
|
|
8
9
|
export * from './LabelField';
|
|
9
10
|
export * from './Loading';
|
|
10
11
|
export * from './Modal';
|
|
12
|
+
export * from './MultiSelect';
|
|
11
13
|
export * from './RequiredLabel';
|
|
12
14
|
export * from './SectionTitle';
|
|
13
15
|
export * from './Textarea';
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
1
|
+
import { A as o, f as s, e as t, f as r, E as i, F as n, F as l, I as f, g as m, h as d, M as p, j as u, k as A, s as F, i as M } from "../../Tooltip.view-Cao5yOMP.js";
|
|
2
|
+
import { Alert as x, MultiSelect as C } from "sbwb-ds-latest";
|
|
3
|
+
import { A as L, L as c, R as h } from "../../RequiredLabel.view-CozPA47g.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
r as
|
|
10
|
-
|
|
5
|
+
o as ActionButton,
|
|
6
|
+
x as Alert,
|
|
7
|
+
L as AlertInline,
|
|
8
|
+
s as Confirm,
|
|
9
|
+
t as ConfirmButton,
|
|
10
|
+
r as ConfirmModal,
|
|
11
|
+
i as Empty,
|
|
12
|
+
n as Frame,
|
|
11
13
|
l as FrameView,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
f as Info,
|
|
15
|
+
m as Input,
|
|
16
|
+
c as LabelField,
|
|
15
17
|
d as Loading,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
u as
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
p as Modal,
|
|
19
|
+
C as MultiSelect,
|
|
20
|
+
h as RequiredLabelView,
|
|
21
|
+
u as SectionTitle,
|
|
22
|
+
A as Textarea,
|
|
23
|
+
F as showConfirm,
|
|
24
|
+
M as showModal
|
|
22
25
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Autocomplete } from 'sbwb-ds-latest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Autocomplete.view';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Table.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("sbwb-ds-latest"),e=require("../../Table.view-oMq7rOZT.cjs");Object.defineProperty(exports,"Autocomplete",{enumerable:!0,get:()=>t.Autocomplete});exports.CheckboxField=e.CheckboxField;exports.CollapseSection=e.CollapseSection;exports.MenuSelect=e.MenuSelect;exports.Section=e.Section;exports.Select=e.Select;exports.SelectButton=e.SelectButton;exports.SelectField=e.SelectField;exports.TabInfo=e.TabInfo;exports.Table=e.Table;exports.TextareaField=e.TextareaField;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Autocomplete as t } from "sbwb-ds-latest";
|
|
2
|
+
import { a as l, C as s, M as c, b as S, c as i, d as n, S as r, e as b, f as d, T as f } from "../../Table.view-CraTHYN6.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
l as
|
|
5
|
-
|
|
6
|
-
c as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
b as
|
|
12
|
-
d as
|
|
4
|
+
t as Autocomplete,
|
|
5
|
+
l as CheckboxField,
|
|
6
|
+
s as CollapseSection,
|
|
7
|
+
c as MenuSelect,
|
|
8
|
+
S as Section,
|
|
9
|
+
i as Select,
|
|
10
|
+
n as SelectButton,
|
|
11
|
+
r as SelectField,
|
|
12
|
+
b as TabInfo,
|
|
13
|
+
d as Table,
|
|
14
|
+
f as TextareaField
|
|
13
15
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isValidElement as s } from "react";
|
|
2
|
+
const u = (r) => {
|
|
3
|
+
if (!r) return "";
|
|
4
|
+
if (typeof r == "string")
|
|
5
|
+
return r;
|
|
6
|
+
if (s(r)) {
|
|
7
|
+
const e = (t) => typeof t == "string" ? t : typeof t == "number" ? t.toString() : Array.isArray(t) ? t.map(e).join("") : s(t) ? e(t.props.children) : "";
|
|
8
|
+
return e(r.props.children);
|
|
9
|
+
}
|
|
10
|
+
return "";
|
|
11
|
+
};
|
|
12
|
+
function i(r) {
|
|
13
|
+
const e = [], t = Object.entries(r).sort(
|
|
14
|
+
([o], [n]) => o.localeCompare(n)
|
|
15
|
+
);
|
|
16
|
+
for (const [o, n] of t)
|
|
17
|
+
e.push(
|
|
18
|
+
`${o}:${typeof n == "object" && n !== null ? i(n) : n}`
|
|
19
|
+
);
|
|
20
|
+
return `{${e.join(", ")}}`;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
u as g,
|
|
24
|
+
i as s
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react"),u=r=>{if(!r)return"";if(typeof r=="string")return r;if(o.isValidElement(r)){const e=t=>typeof t=="string"?t:typeof t=="number"?t.toString():Array.isArray(t)?t.map(e).join(""):o.isValidElement(t)?e(t.props.children):"";return e(r.props.children)}return""};function s(r){const e=[],t=Object.entries(r).sort(([i],[n])=>i.localeCompare(n));for(const[i,n]of t)e.push(`${i}:${typeof n=="object"&&n!==null?s(n):n}`);return`{${e.join(", ")}}`}exports.getLabelText=u;exports.stableStringify=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BcwQwoIM.cjs"),t=require("../hash-CJrPvUOz.cjs");exports.capitalizeAllFirstLetters=e.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.convertHexToRGB=e.convertHexToRGB;exports.dom=e.dom;exports.resetStyles=e.resetStyles;exports.valuable=e.valuable;exports.getLabelText=t.getLabelText;exports.stableStringify=t.stableStringify;
|
package/dist/helpers/index.es.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
3
|
-
const r = [], o = Object.entries(s).sort(
|
|
4
|
-
([t], [e]) => t.localeCompare(e)
|
|
5
|
-
);
|
|
6
|
-
for (const [t, e] of o)
|
|
7
|
-
r.push(
|
|
8
|
-
`${t}:${typeof e == "object" && e !== null ? a(e) : e}`
|
|
9
|
-
);
|
|
10
|
-
return `{${r.join(", ")}}`;
|
|
11
|
-
}
|
|
1
|
+
import { a as t, c as s, b as r, d as l, r as i, v as o } from "../index-_v6RoRxb.js";
|
|
2
|
+
import { g as c, s as p } from "../hash-BtT4jVLO.js";
|
|
12
3
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
t as capitalizeAllFirstLetters,
|
|
5
|
+
s as capitalizeFirstLetter,
|
|
6
|
+
r as convertHexToRGB,
|
|
7
|
+
l as dom,
|
|
8
|
+
c as getLabelText,
|
|
9
|
+
i as resetStyles,
|
|
10
|
+
p as stableStringify,
|
|
11
|
+
o as valuable
|
|
20
12
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Tooltip.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Tooltip.view-7yR4bqF1.cjs"),o=require("./Title.view-BqxGXSW7.cjs"),r=require("sbwb-ds-latest"),l=require("./RequiredLabel.view-Cst1Xi0O.cjs"),t=require("./Table.view-oMq7rOZT.cjs"),i=require("./index-BcwQwoIM.cjs"),a=require("./hash-CJrPvUOz.cjs");exports.ActionButton=e.ActionButton;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.Loading=e.Loading;exports.LoadingBar=e.LoadingBar;exports.Modal=e.Modal;exports.Radio=e.Radio;exports.SectionTitle=e.SectionTitle;exports.Spacer=e.Spacer;exports.Textarea=e.Textarea;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.styleGuide=e.index;exports.ErrorMessage=o.ErrorMessage;exports.Switch=o.Switch;exports.Title=o.Title;Object.defineProperty(exports,"Alert",{enumerable:!0,get:()=>r.Alert});Object.defineProperty(exports,"Autocomplete",{enumerable:!0,get:()=>r.Autocomplete});Object.defineProperty(exports,"MultiSelect",{enumerable:!0,get:()=>r.MultiSelect});exports.AlertInline=l.AlertInline;exports.LabelField=l.LabelField;exports.RequiredLabelView=l.RequiredLabelView;exports.CheckboxField=t.CheckboxField;exports.CollapseSection=t.CollapseSection;exports.MenuSelect=t.MenuSelect;exports.Section=t.Section;exports.Select=t.Select;exports.SelectButton=t.SelectButton;exports.SelectField=t.SelectField;exports.TabInfo=t.TabInfo;exports.Table=t.Table;exports.TextareaField=t.TextareaField;exports.capitalizeAllFirstLetters=i.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=i.capitalizeFirstLetter;exports.convertHexToRGB=i.convertHexToRGB;exports.dom=i.dom;exports.resetStyles=i.resetStyles;exports.valuable=i.valuable;exports.getLabelText=a.getLabelText;exports.stableStringify=a.stableStringify;
|
package/dist/index.es.js
CHANGED
|
@@ -1,57 +1,62 @@
|
|
|
1
|
-
import { A as s, B as t, a as o, C as r,
|
|
2
|
-
import { E as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
1
|
+
import { A as s, B as t, a as o, C as r, f as l, e as i, f as n, b as c, E as d, F as f, F as m, I as p, g as S, L as b, c as x, h as T, d as u, M as C, R as L, j as F, S as g, k as B, T as M, s as A, i as h, l as w } from "./Tooltip.view-Cao5yOMP.js";
|
|
2
|
+
import { E as I, S as R, T as E } from "./Title.view-DY1vs-iO.js";
|
|
3
|
+
import { Alert as v, Autocomplete as z, MultiSelect as G } from "sbwb-ds-latest";
|
|
4
|
+
import { A as j, L as q, R as H } from "./RequiredLabel.view-CozPA47g.js";
|
|
5
|
+
import { a as J, C as K, M as N, b as O, c as P, d as Q, S as U, e as W, f as X, T as Y } from "./Table.view-CraTHYN6.js";
|
|
6
|
+
import { a as _, c as $, b as aa, d as ea, r as sa, v as ta } from "./index-_v6RoRxb.js";
|
|
7
|
+
import { g as ra, s as la } from "./hash-BtT4jVLO.js";
|
|
7
8
|
export {
|
|
8
9
|
s as ActionButton,
|
|
9
|
-
v as
|
|
10
|
+
v as Alert,
|
|
11
|
+
j as AlertInline,
|
|
12
|
+
z as Autocomplete,
|
|
10
13
|
t as Badge,
|
|
11
14
|
o as Button,
|
|
12
15
|
r as Checkbox,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
J as CheckboxField,
|
|
17
|
+
K as CollapseSection,
|
|
18
|
+
l as Confirm,
|
|
19
|
+
i as ConfirmButton,
|
|
17
20
|
n as ConfirmModal,
|
|
18
21
|
c as Container,
|
|
19
22
|
d as Empty,
|
|
20
|
-
|
|
23
|
+
I as ErrorMessage,
|
|
21
24
|
f as Frame,
|
|
22
25
|
m as FrameView,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
p as Info,
|
|
27
|
+
S as Input,
|
|
28
|
+
b as Label,
|
|
29
|
+
q as LabelField,
|
|
30
|
+
x as LibraryCard,
|
|
31
|
+
T as Loading,
|
|
32
|
+
u as LoadingBar,
|
|
33
|
+
N as MenuSelect,
|
|
34
|
+
C as Modal,
|
|
35
|
+
G as MultiSelect,
|
|
36
|
+
L as Radio,
|
|
37
|
+
H as RequiredLabelView,
|
|
38
|
+
O as Section,
|
|
35
39
|
F as SectionTitle,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
P as Select,
|
|
41
|
+
Q as SelectButton,
|
|
42
|
+
U as SelectField,
|
|
43
|
+
g as Spacer,
|
|
40
44
|
R as Switch,
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
W as TabInfo,
|
|
46
|
+
X as Table,
|
|
43
47
|
B as Textarea,
|
|
44
|
-
|
|
48
|
+
Y as TextareaField,
|
|
45
49
|
E as Title,
|
|
46
50
|
M as Tooltip,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
_ as capitalizeAllFirstLetters,
|
|
52
|
+
$ as capitalizeFirstLetter,
|
|
53
|
+
aa as convertHexToRGB,
|
|
54
|
+
ea as dom,
|
|
55
|
+
ra as getLabelText,
|
|
56
|
+
sa as resetStyles,
|
|
57
|
+
A as showConfirm,
|
|
53
58
|
h as showModal,
|
|
54
|
-
|
|
59
|
+
la as stableStringify,
|
|
55
60
|
w as styleGuide,
|
|
56
|
-
|
|
61
|
+
ta as valuable
|
|
57
62
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
export type CustomDataAttributes = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
'data-cy'?: string;
|
|
5
|
+
};
|
|
6
|
+
export type BaseProps<T extends ElementType = ElementType> = Omit<HTMLAttributes<HTMLElement>, 'as'> & CustomDataAttributes & {
|
|
7
|
+
as?: T;
|
|
8
|
+
} & ComponentPropsWithoutRef<T>;
|
package/dist/types/icons.d.ts
CHANGED