@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.
Files changed (54) hide show
  1. package/README.md +31 -31
  2. package/dist/{RequiredLabel.view-vhY8Ifny.js → RequiredLabel.view-CozPA47g.js} +26 -25
  3. package/dist/RequiredLabel.view-Cst1Xi0O.cjs +1 -0
  4. package/dist/{Table.view-DrGCSijo.js → Table.view-CraTHYN6.js} +37 -37
  5. package/dist/{Table.view-Cq1l_7IE.cjs → Table.view-oMq7rOZT.cjs} +9 -10
  6. package/dist/Title.view-BqxGXSW7.cjs +1 -0
  7. package/dist/Title.view-DY1vs-iO.js +54 -0
  8. package/dist/Tooltip.view-7yR4bqF1.cjs +1455 -0
  9. package/dist/{Tooltip.view-B2Qudmep.js → Tooltip.view-Cao5yOMP.js} +2351 -2177
  10. package/dist/components/atoms/LibraryCard/LibraryCard.view.d.ts +6 -2
  11. package/dist/components/atoms/LoadingBar/LoadingBar.styles.d.ts +1 -0
  12. package/dist/components/atoms/Tooltip/Tooltip.view.d.ts +4 -2
  13. package/dist/components/atoms/index.cjs.js +1 -1
  14. package/dist/components/atoms/index.es.js +9 -9
  15. package/dist/components/index.cjs.js +1 -1
  16. package/dist/components/index.es.js +35 -31
  17. package/dist/components/molecules/ActionButton/ActionButton.view.d.ts +1 -1
  18. package/dist/components/molecules/Alert/Alert.view.d.ts +1 -0
  19. package/dist/components/molecules/Alert/index.d.ts +1 -0
  20. package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +1 -1
  21. package/dist/components/molecules/Confirm/ConfirmModal.view.d.ts +1 -1
  22. package/dist/components/molecules/Empty/Empty.types.d.ts +2 -1
  23. package/dist/components/molecules/Loading/Loading.view.d.ts +1 -1
  24. package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.types.d.ts +10 -0
  25. package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.view.d.ts +3 -0
  26. package/dist/components/molecules/Modal/DefaultFooter/index.d.ts +2 -0
  27. package/dist/components/molecules/Modal/Modal.view.d.ts +5 -1
  28. package/dist/components/molecules/MultiSelect/MultiSelect.view.d.ts +1 -0
  29. package/dist/components/molecules/MultiSelect/index.d.ts +1 -0
  30. package/dist/components/molecules/index.cjs.js +1 -1
  31. package/dist/components/molecules/index.d.ts +2 -0
  32. package/dist/components/molecules/index.es.js +21 -18
  33. package/dist/components/organisms/Autocomplete/Autocomplete.view.d.ts +1 -0
  34. package/dist/components/organisms/Autocomplete/index.d.ts +1 -0
  35. package/dist/components/organisms/index.cjs.js +1 -1
  36. package/dist/components/organisms/index.d.ts +1 -0
  37. package/dist/components/organisms/index.es.js +13 -11
  38. package/dist/hash-BtT4jVLO.js +25 -0
  39. package/dist/hash-CJrPvUOz.cjs +1 -0
  40. package/dist/helpers/functions/getLabelText.d.ts +2 -0
  41. package/dist/helpers/functions/index.d.ts +1 -0
  42. package/dist/helpers/index.cjs.js +1 -1
  43. package/dist/helpers/index.es.js +10 -18
  44. package/dist/index.cjs.js +1 -1
  45. package/dist/index.es.js +44 -39
  46. package/dist/types/baseProps.d.ts +8 -0
  47. package/dist/types/icons.d.ts +1 -0
  48. package/dist/types/styleGuide/index.d.ts +174 -0
  49. package/dist/types/styleGuide/position.d.ts +1 -0
  50. package/package.json +121 -120
  51. package/dist/RequiredLabel.view-Dn02h8aL.cjs +0 -1
  52. package/dist/Title.view-Bw6K4U1v.cjs +0 -1
  53. package/dist/Title.view-lFI_ZPGv.js +0 -74
  54. 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
- disabled: boolean;
5
+ iconBgColor: string;
6
+ disabled?: boolean;
6
7
  onClick?: () => void;
7
8
  }
8
- export declare function LibraryCard({ title, icon, onClick, disabled, }: CardProps): import("react/jsx-runtime").JSX.Element;
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,3 +1,4 @@
1
+ export declare const resetStyles = "\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0;\n";
1
2
  export declare const Container: any;
2
3
  export declare const Text: any;
3
4
  export declare const loadingContainer: any;
@@ -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-DGl4VmmK.cjs"),r=require("../../Title.view-Bw6K4U1v.cjs");exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Container=e.Container;exports.Label=e.Label;exports.LoadingBar=e.LoadingBar;exports.Radio=e.Radio;exports.Spacer=e.Spacer;exports.Tooltip=e.Tooltip;exports.ErrorMessage=r.ErrorMessage;exports.LibraryCard=r.LibraryCard;exports.Switch=r.Switch;exports.Title=r.Title;
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 L, R as b, S as c, T as d } from "../../Tooltip.view-B2Qudmep.js";
2
- import { E as p, L as B, S as C, T as S } from "../../Title.view-lFI_ZPGv.js";
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
- p as ErrorMessage,
8
+ C as ErrorMessage,
9
9
  i as Label,
10
- B as LibraryCard,
11
- L as LoadingBar,
12
- b as Radio,
13
- c as Spacer,
14
- C as Switch,
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
- d as Tooltip
16
+ p as Tooltip
17
17
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tooltip.view-DGl4VmmK.cjs"),i=require("../Title.view-Bw6K4U1v.cjs"),t=require("../RequiredLabel.view-Dn02h8aL.cjs"),o=require("../Table.view-Cq1l_7IE.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.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=i.ErrorMessage;exports.LibraryCard=i.LibraryCard;exports.Switch=i.Switch;exports.Title=i.Title;exports.AlertInline=t.AlertInline;exports.LabelField=t.LabelField;exports.RequiredLabelView=t.RequiredLabelView;exports.CheckboxField=o.CheckboxField;exports.CollapseSection=o.CollapseSection;exports.MenuSelect=o.MenuSelect;exports.Section=o.Section;exports.Select=o.Select;exports.SelectButton=o.SelectButton;exports.SelectField=o.SelectField;exports.TabInfo=o.TabInfo;exports.Table=o.Table;exports.TextareaField=o.TextareaField;
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, e as i, d as l, e as n, b as d, E as c, F as f, F as S, I as m, f as C, L as b, g as T, c as p, M as L, R as x, i as F, S as u, j as B, T as M, s as h, h as g } from "../Tooltip.view-B2Qudmep.js";
2
- import { E as I, L as A, S as E, T as R } from "../Title.view-lFI_ZPGv.js";
3
- import { A as y, L as V, R as j } from "../RequiredLabel.view-vhY8Ifny.js";
4
- import { a as v, C as z, M as D, b as G, c as H, d as J, S as K, e as N, f as O, T as P } from "../Table.view-DrGCSijo.js";
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 AlertInline,
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
- v as CheckboxField,
12
- z as CollapseSection,
14
+ H as CheckboxField,
15
+ J as CollapseSection,
13
16
  i as Confirm,
14
17
  l as ConfirmButton,
15
18
  n as ConfirmModal,
16
- d as Container,
17
- c as Empty,
19
+ c as Container,
20
+ d as Empty,
18
21
  I as ErrorMessage,
19
22
  f as Frame,
20
- S as FrameView,
21
- m as Info,
22
- C as Input,
23
- b as Label,
24
- V as LabelField,
25
- A as LibraryCard,
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
- p as LoadingBar,
28
- D as MenuSelect,
29
- L as Modal,
30
- x as Radio,
31
- j as RequiredLabelView,
32
- G as Section,
33
- F as SectionTitle,
34
- H as Select,
35
- J as SelectButton,
36
- K as SelectField,
37
- u as Spacer,
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
- N as TabInfo,
40
- O as Table,
43
+ U as TabInfo,
44
+ W as Table,
41
45
  B as Textarea,
42
- P as TextareaField,
46
+ X as TextareaField,
43
47
  R as Title,
44
- M as Tooltip,
45
- h as showConfirm,
48
+ h as Tooltip,
49
+ A as showConfirm,
46
50
  g as showModal
47
51
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { BadgeProps, TooltipProps } from '../../atoms';
3
- import { IconType } from 'sbwb-ds';
3
+ import { IconType } from '../../../types/icons';
4
4
  export interface ActionButtonElementProps {
5
5
  id?: string;
6
6
  name?: string;
@@ -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 'sbwb-ds';
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, IconType } from 'sbwb-ds';
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>;
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '../../../atoms';
2
+ import { Key } from 'react';
3
+ interface FooterButton extends ButtonProps {
4
+ key?: Key;
5
+ }
6
+ export type FooterProps = {
7
+ cancel?: FooterButton;
8
+ confirm?: FooterButton;
9
+ };
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { FooterProps } from './DefaultFooter.types';
3
+ export declare const DefaultFooter: FC<FooterProps>;
@@ -0,0 +1,2 @@
1
+ export * from './DefaultFooter.view';
2
+ export * from './DefaultFooter.types';
@@ -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-DGl4VmmK.cjs"),o=require("../../RequiredLabel.view-Dn02h8aL.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;exports.AlertInline=o.AlertInline;exports.LabelField=o.LabelField;exports.RequiredLabelView=o.RequiredLabelView;
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 e, e as o, d as i, e as n, E as r, F as t, F as l, I as m, f, g as d, M as F, i as p, j as u, s as w, h as A } from "../../Tooltip.view-B2Qudmep.js";
2
- import { A as I, L, R as M } from "../../RequiredLabel.view-vhY8Ifny.js";
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
- e as ActionButton,
5
- I as AlertInline,
6
- o as Confirm,
7
- i as ConfirmButton,
8
- n as ConfirmModal,
9
- r as Empty,
10
- t as Frame,
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
- m as Info,
13
- f as Input,
14
- L as LabelField,
14
+ f as Info,
15
+ m as Input,
16
+ c as LabelField,
15
17
  d as Loading,
16
- F as Modal,
17
- M as RequiredLabelView,
18
- p as SectionTitle,
19
- u as Textarea,
20
- w as showConfirm,
21
- A as showModal
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-Cq1l_7IE.cjs");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
+ "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,3 +1,4 @@
1
+ export * from './Autocomplete';
1
2
  export * from './CollapseSection';
2
3
  export * from './Form';
3
4
  export * from './MenuSelect';
@@ -1,13 +1,15 @@
1
- import { a as s, C as l, M as t, b as c, c as o, d as S, S as i, e as n, f as b, T as d } from "../../Table.view-DrGCSijo.js";
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
- s as CheckboxField,
4
- l as CollapseSection,
5
- t as MenuSelect,
6
- c as Section,
7
- o as Select,
8
- S as SelectButton,
9
- i as SelectField,
10
- n as TabInfo,
11
- b as Table,
12
- d as TextareaField
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;
@@ -0,0 +1,2 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const getLabelText: (label?: string | ReactNode) => string;
@@ -1 +1,2 @@
1
1
  export * from './valuable';
2
+ export * from './getLabelText';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-BcwQwoIM.cjs");function l(o){const i=[],s=Object.entries(o).sort(([r],[e])=>r.localeCompare(e));for(const[r,e]of s)i.push(`${r}:${typeof e=="object"&&e!==null?l(e):e}`);return`{${i.join(", ")}}`}exports.capitalizeAllFirstLetters=t.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.convertHexToRGB=t.convertHexToRGB;exports.dom=t.dom;exports.resetStyles=t.resetStyles;exports.valuable=t.valuable;exports.stableStringify=l;
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;
@@ -1,20 +1,12 @@
1
- import { a as l, c, b as p, d as b, r as f, v as u } from "../index-_v6RoRxb.js";
2
- function a(s) {
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
- l as capitalizeAllFirstLetters,
14
- c as capitalizeFirstLetter,
15
- p as convertHexToRGB,
16
- b as dom,
17
- f as resetStyles,
18
- a as stableStringify,
19
- u as valuable
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-DGl4VmmK.cjs"),o=require("./Title.view-Bw6K4U1v.cjs"),l=require("./RequiredLabel.view-Dn02h8aL.cjs"),t=require("./Table.view-Cq1l_7IE.cjs"),i=require("./index-BcwQwoIM.cjs"),r=require("./helpers/index.cjs.js");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.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.LibraryCard=o.LibraryCard;exports.Switch=o.Switch;exports.Title=o.Title;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.stableStringify=r.stableStringify;
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, e as i, d as l, e as n, b as c, E as d, F as f, F as m, I as S, f as b, L as p, g as x, c as C, M as L, R as T, i as F, S as u, j as B, T as M, s as g, h, k as w } from "./Tooltip.view-B2Qudmep.js";
2
- import { E as A, L as I, S as R, T as E } from "./Title.view-lFI_ZPGv.js";
3
- import { A as v, L as z, R as G } from "./RequiredLabel.view-vhY8Ifny.js";
4
- import { a as j, C as q, M as H, b as D, c as J, d as K, S as N, e as O, f as P, T as Q } from "./Table.view-DrGCSijo.js";
5
- import { a as W, c as X, b as Y, d as Z, r as _, v as $ } from "./index-_v6RoRxb.js";
6
- import { stableStringify as ea } from "./helpers/index.es.js";
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 AlertInline,
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
- j as CheckboxField,
14
- q as CollapseSection,
15
- i as Confirm,
16
- l as ConfirmButton,
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
- A as ErrorMessage,
23
+ I as ErrorMessage,
21
24
  f as Frame,
22
25
  m as FrameView,
23
- S as Info,
24
- b as Input,
25
- p as Label,
26
- z as LabelField,
27
- I as LibraryCard,
28
- x as Loading,
29
- C as LoadingBar,
30
- H as MenuSelect,
31
- L as Modal,
32
- T as Radio,
33
- G as RequiredLabelView,
34
- D as Section,
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
- J as Select,
37
- K as SelectButton,
38
- N as SelectField,
39
- u as Spacer,
40
+ P as Select,
41
+ Q as SelectButton,
42
+ U as SelectField,
43
+ g as Spacer,
40
44
  R as Switch,
41
- O as TabInfo,
42
- P as Table,
45
+ W as TabInfo,
46
+ X as Table,
43
47
  B as Textarea,
44
- Q as TextareaField,
48
+ Y as TextareaField,
45
49
  E as Title,
46
50
  M as Tooltip,
47
- W as capitalizeAllFirstLetters,
48
- X as capitalizeFirstLetter,
49
- Y as convertHexToRGB,
50
- Z as dom,
51
- _ as resetStyles,
52
- g as showConfirm,
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
- ea as stableStringify,
59
+ la as stableStringify,
55
60
  w as styleGuide,
56
- $ as valuable
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>;
@@ -1 +1,2 @@
1
1
  export { type IconType } from 'sbwb-ds';
2
+ export { type IconType as IconTypeV2 } from 'sbwb-ds-latest';