@ufal-lccv/gpsub-ds 0.0.11 → 0.0.13

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 (28) hide show
  1. package/dist/{Checkbox.view-B-GrHFEa.js → Checkbox.view-D75146I3.js} +1033 -982
  2. package/dist/{Checkbox.view-DpYmvx5w.cjs → Checkbox.view-DFbiE7Mi.cjs} +118 -118
  3. package/dist/RequiredLabel.view-Cv_y1fuR.js +130 -0
  4. package/dist/RequiredLabel.view-DRKx7lq3.cjs +1 -0
  5. package/dist/Table.view-BipNpove.cjs +586 -0
  6. package/dist/{Table.view-B9_6CG4G.js → Table.view-CHEV4kuX.js} +826 -711
  7. package/dist/{Title.view-CxaPmd5z.cjs → Title.view-B2dLqH4V.cjs} +1 -1
  8. package/dist/{Title.view-D-L8EJcc.js → Title.view-DGXidSXd.js} +1 -1
  9. package/dist/components/atoms/index.cjs.js +1 -1
  10. package/dist/components/atoms/index.es.js +2 -2
  11. package/dist/components/index.cjs.js +1 -1
  12. package/dist/components/index.es.js +16 -15
  13. package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +4 -1
  14. package/dist/components/molecules/index.cjs.js +1 -1
  15. package/dist/components/molecules/index.es.js +2 -2
  16. package/dist/components/organisms/CollapseSection/CollapseSection.view.d.ts +2 -1
  17. package/dist/components/organisms/TabInfo/TabInfo.style.d.ts +5 -0
  18. package/dist/components/organisms/TabInfo/TabInfo.view.d.ts +19 -0
  19. package/dist/components/organisms/TabInfo/index.d.ts +1 -0
  20. package/dist/components/organisms/index.cjs.js +1 -1
  21. package/dist/components/organisms/index.d.ts +2 -1
  22. package/dist/components/organisms/index.es.js +6 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +25 -24
  25. package/package.json +1 -1
  26. package/dist/RequiredLabel.view-CVWg_TdI.cjs +0 -1
  27. package/dist/RequiredLabel.view-DM5zIUlt.js +0 -98
  28. package/dist/Table.view-BJO6XwCO.cjs +0 -541
@@ -1 +1 @@
1
- "use strict";const t=require("./Checkbox.view-DpYmvx5w.cjs"),h=require("sbwb-ds"),l=require("react"),j=require("./index-BcwQwoIM.cjs"),p=({message:e})=>t.jsxRuntimeExports.jsxs(t.ErrorMessage,{children:[t.jsxRuntimeExports.jsx(t.InfoFill_default,{color:h.sg.colors.feedbackColors.colorFeedbackError}),e]}),w=({id:e,label:i,size:o="Medium",disabled:r=!1,onChange:x,checked:s})=>{const[n,u]=l.useState(s??!1);return l.useEffect(()=>{u(c=>s??!c)},[s]),t.jsxRuntimeExports.jsxs(t.SwitchContainer,{id:`switch-${e}`,"data-testid":"switch-component",children:[t.jsxRuntimeExports.jsxs(t.SwitchWrapper,{size:o,disabled:r,checked:s??n,"data-testid":"switch-wrapper",children:[t.jsxRuntimeExports.jsx(t.SwitchToggle,{type:"checkbox",disabled:r,checked:s??n,"data-testid":"switch-toggle",onChange:c=>{const{target:{checked:a}}=c;j.valuable(a)&&u(a),x==null||x(c)}}),t.jsxRuntimeExports.jsx(t.SwitchButton,{disabled:r,size:o})]}),t.jsxRuntimeExports.jsx(t.SwitchLabel,{size:o,disabled:r,children:i})]})},E=({text:e,color:i})=>t.jsxRuntimeExports.jsx(t.Title,{color:i,children:e});exports.ErrorMessage=p;exports.Switch=w;exports.Title=E;
1
+ "use strict";const t=require("./Checkbox.view-DFbiE7Mi.cjs"),h=require("sbwb-ds"),l=require("react"),j=require("./index-BcwQwoIM.cjs"),p=({message:e})=>t.jsxRuntimeExports.jsxs(t.ErrorMessage,{children:[t.jsxRuntimeExports.jsx(t.InfoFill_default,{color:h.sg.colors.feedbackColors.colorFeedbackError}),e]}),w=({id:e,label:i,size:o="Medium",disabled:r=!1,onChange:x,checked:s})=>{const[n,u]=l.useState(s??!1);return l.useEffect(()=>{u(c=>s??!c)},[s]),t.jsxRuntimeExports.jsxs(t.SwitchContainer,{id:`switch-${e}`,"data-testid":"switch-component",children:[t.jsxRuntimeExports.jsxs(t.SwitchWrapper,{size:o,disabled:r,checked:s??n,"data-testid":"switch-wrapper",children:[t.jsxRuntimeExports.jsx(t.SwitchToggle,{type:"checkbox",disabled:r,checked:s??n,"data-testid":"switch-toggle",onChange:c=>{const{target:{checked:a}}=c;j.valuable(a)&&u(a),x==null||x(c)}}),t.jsxRuntimeExports.jsx(t.SwitchButton,{disabled:r,size:o})]}),t.jsxRuntimeExports.jsx(t.SwitchLabel,{size:o,disabled:r,children:i})]})},E=({text:e,color:i})=>t.jsxRuntimeExports.jsx(t.Title,{color:i,children:e});exports.ErrorMessage=p;exports.Switch=w;exports.Title=E;
@@ -1,4 +1,4 @@
1
- import { l as t, m as p, n as f, o as m, p as u, q as x, r as d, t as w, u as S } from "./Checkbox.view-B-GrHFEa.js";
1
+ import { l as t, m as p, n as f, o as m, p as u, q as x, r as d, t as w, u as S } from "./Checkbox.view-D75146I3.js";
2
2
  import { sg as j } from "sbwb-ds";
3
3
  import { useState as E, useEffect as g } from "react";
4
4
  import { v as k } from "./index-_v6RoRxb.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkbox.view-DpYmvx5w.cjs"),o=require("../../Title.view-CxaPmd5z.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=o.ErrorMessage;exports.Switch=o.Switch;exports.Title=o.Title;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkbox.view-DFbiE7Mi.cjs"),o=require("../../Title.view-B2dLqH4V.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=o.ErrorMessage;exports.Switch=o.Switch;exports.Title=o.Title;
@@ -1,5 +1,5 @@
1
- import { B as o, a as e, c as r, C as t, L as i, b as c, R as n, S as p, T as B } from "../../Checkbox.view-B-GrHFEa.js";
2
- import { E as T, S as b, T as d } from "../../Title.view-D-L8EJcc.js";
1
+ import { B as o, a as e, c as r, C as t, L as i, b as c, R as n, S as p, T as B } from "../../Checkbox.view-D75146I3.js";
2
+ import { E as T, S as b, T as d } from "../../Title.view-DGXidSXd.js";
3
3
  export {
4
4
  o as Badge,
5
5
  e as Button,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.view-DpYmvx5w.cjs"),t=require("../Title.view-CxaPmd5z.cjs"),i=require("../RequiredLabel.view-CVWg_TdI.cjs"),o=require("../Table.view-BJO6XwCO.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=t.ErrorMessage;exports.Switch=t.Switch;exports.Title=t.Title;exports.AlertInline=i.AlertInline;exports.LabelField=i.LabelField;exports.RequiredLabelView=i.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.Table=o.Table;exports.TextareaField=o.TextareaField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.view-DFbiE7Mi.cjs"),t=require("../Title.view-B2dLqH4V.cjs"),i=require("../RequiredLabel.view-DRKx7lq3.cjs"),o=require("../Table.view-BipNpove.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=t.ErrorMessage;exports.Switch=t.Switch;exports.Title=t.Title;exports.AlertInline=i.AlertInline;exports.LabelField=i.LabelField;exports.RequiredLabelView=i.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,7 +1,7 @@
1
- import { A as s, B as o, a as t, c as i, e as r, d as l, e as n, C as c, E as d, F as S, F as m, I as f, f as C, L as p, g as T, b, M as x, R as F, i as u, S as B, j as L, T as M, s as h, h as g } from "../Checkbox.view-B-GrHFEa.js";
2
- import { E as A, S as E, T as I } from "../Title.view-D-L8EJcc.js";
3
- import { A as k, L as V, R as j } from "../RequiredLabel.view-DM5zIUlt.js";
4
- import { C as y, d as v, M as z, a as D, b as G, c as H, S as J, e as K, T as N } from "../Table.view-B9_6CG4G.js";
1
+ import { A as s, B as o, a as t, c as i, e as r, d as l, e as n, C as c, E as d, F as f, F as S, I as m, f as C, L as T, g as b, b as p, M as x, R as F, i as u, S as B, j as L, T as M, s as h, h as g } from "../Checkbox.view-D75146I3.js";
2
+ import { E as I, S as A, T as E } from "../Title.view-DGXidSXd.js";
3
+ import { A as k, L as V, R as j } from "../RequiredLabel.view-Cv_y1fuR.js";
4
+ import { a as y, C as v, M as z, b as D, c as G, d as H, S as J, e as K, f as N, T as O } from "../Table.view-CHEV4kuX.js";
5
5
  export {
6
6
  s as ActionButton,
7
7
  k as AlertInline,
@@ -15,15 +15,15 @@ export {
15
15
  n as ConfirmModal,
16
16
  c as Container,
17
17
  d as Empty,
18
- A as ErrorMessage,
19
- S as Frame,
20
- m as FrameView,
21
- f as Info,
18
+ I as ErrorMessage,
19
+ f as Frame,
20
+ S as FrameView,
21
+ m as Info,
22
22
  C as Input,
23
- p as Label,
23
+ T as Label,
24
24
  V as LabelField,
25
- T as Loading,
26
- b as LoadingBar,
25
+ b as Loading,
26
+ p as LoadingBar,
27
27
  z as MenuSelect,
28
28
  x as Modal,
29
29
  F as Radio,
@@ -34,11 +34,12 @@ export {
34
34
  H as SelectButton,
35
35
  J as SelectField,
36
36
  B as Spacer,
37
- E as Switch,
38
- K as Table,
37
+ A as Switch,
38
+ K as TabInfo,
39
+ N as Table,
39
40
  L as Textarea,
40
- N as TextareaField,
41
- I as Title,
41
+ O as TextareaField,
42
+ E as Title,
42
43
  M as Tooltip,
43
44
  h as showConfirm,
44
45
  g as showModal
@@ -5,6 +5,9 @@ interface AlertInlineViewProps {
5
5
  title?: string | React.ReactNode;
6
6
  message?: string | React.ReactNode;
7
7
  margin?: string;
8
+ open?: boolean;
9
+ onClose?: () => void;
10
+ canClose?: boolean;
8
11
  }
9
- export declare const AlertInline: ({ width, height, type, title, message, margin, }: 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;
10
13
  export default AlertInline;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkbox.view-DpYmvx5w.cjs"),o=require("../../RequiredLabel.view-CVWg_TdI.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("../../Checkbox.view-DFbiE7Mi.cjs"),o=require("../../RequiredLabel.view-DRKx7lq3.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,5 +1,5 @@
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 "../../Checkbox.view-B-GrHFEa.js";
2
- import { A as I, L, R as M } from "../../RequiredLabel.view-DM5zIUlt.js";
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 "../../Checkbox.view-D75146I3.js";
2
+ import { A as I, L, R as M } from "../../RequiredLabel.view-Cv_y1fuR.js";
3
3
  export {
4
4
  e as ActionButton,
5
5
  I as AlertInline,
@@ -7,6 +7,7 @@ type CollapseSectionProps = {
7
7
  wrapperCustomStyles?: CSSProperties;
8
8
  marginBottom?: string;
9
9
  hideAdornmentOnCollapse?: boolean;
10
+ maxHeight?: string;
10
11
  };
11
- export declare const CollapseSection: ({ title, children, endAdornment, marginBottom, customStyles, wrapperCustomStyles, hideAdornmentOnCollapse, }: CollapseSectionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const CollapseSection: ({ title, children, endAdornment, marginBottom, customStyles, wrapperCustomStyles, hideAdornmentOnCollapse, maxHeight, }: CollapseSectionProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -0,0 +1,5 @@
1
+ export declare const Container: any;
2
+ export declare const ContainerItem: any;
3
+ export declare const ContainerItemBetween: any;
4
+ export declare const ContainerContent: any;
5
+ export declare const ContainerBetween: any;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ export type TabInfoProps = {
3
+ width?: string;
4
+ height?: string;
5
+ widthItems?: string;
6
+ heightItems?: string;
7
+ flex?: string;
8
+ backgroundColor?: string;
9
+ options: {
10
+ key: string | number;
11
+ item: ReactNode;
12
+ contentItem: ReactNode;
13
+ }[];
14
+ emptyProps?: {
15
+ title?: string;
16
+ body?: string;
17
+ };
18
+ };
19
+ export declare const TabInfo: ({ width, height, flex, backgroundColor, options, heightItems, widthItems, emptyProps, }: TabInfoProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TabInfo.view';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Table.view-BJO6XwCO.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.Table=e.Table;exports.TextareaField=e.TextareaField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Table.view-BipNpove.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,7 +1,8 @@
1
+ export * from './CollapseSection';
1
2
  export * from './Form';
2
3
  export * from './MenuSelect';
3
4
  export * from './Section';
4
5
  export * from './Select';
5
6
  export * from './SelectButton';
6
- export * from './CollapseSection';
7
+ export * from './TabInfo';
7
8
  export * from './Table';
@@ -1,12 +1,13 @@
1
- import { C as l, d as s, M as t, a as c, b as o, c as S, S as i, e as d, T as n } from "../../Table.view-B9_6CG4G.js";
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-CHEV4kuX.js";
2
2
  export {
3
- l as CheckboxField,
4
- s as CollapseSection,
3
+ s as CheckboxField,
4
+ l as CollapseSection,
5
5
  t as MenuSelect,
6
6
  c as Section,
7
7
  o as Select,
8
8
  S as SelectButton,
9
9
  i as SelectField,
10
- d as Table,
11
- n as TextareaField
10
+ n as TabInfo,
11
+ b as Table,
12
+ d as TextareaField
12
13
  };
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Checkbox.view-DpYmvx5w.cjs"),o=require("./Title.view-CxaPmd5z.cjs"),l=require("./RequiredLabel.view-CVWg_TdI.cjs"),t=require("./Table.view-BJO6XwCO.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.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.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("./Checkbox.view-DFbiE7Mi.cjs"),o=require("./Title.view-B2dLqH4V.cjs"),l=require("./RequiredLabel.view-DRKx7lq3.cjs"),t=require("./Table.view-BipNpove.cjs"),i=require("./index-BcwQwoIM.cjs"),a=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.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=a.stableStringify;
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { A as s, B as t, a as o, c as r, e as i, d as l, e as n, C as c, E as d, F as m, F as S, I as f, f as p, L as b, g as x, b as C, M as F, R as T, i as u, S as L, j as B, T as M, s as g, h, k as w } from "./Checkbox.view-B-GrHFEa.js";
2
- import { E as R, S as y, T as E } from "./Title.view-D-L8EJcc.js";
3
- import { A as k, L as v, R as z } from "./RequiredLabel.view-DM5zIUlt.js";
4
- import { C as V, d as j, M as q, a as H, b as D, c as J, S as K, e as N, T as O } from "./Table.view-B9_6CG4G.js";
5
- import { a as Q, c as U, b as W, d as X, r as Y, v as Z } from "./index-_v6RoRxb.js";
6
- import { stableStringify as $ } from "./helpers/index.es.js";
1
+ import { A as s, B as t, a as o, c as r, e as i, d as l, e as n, C as c, E as d, F as f, F as m, I as S, f as p, L as b, g as x, b as T, M as C, R as F, i as u, S as L, j as B, T as M, s as g, h, k as w } from "./Checkbox.view-D75146I3.js";
2
+ import { E as I, S as R, T as y } from "./Title.view-DGXidSXd.js";
3
+ import { A as k, L as v, R as z } from "./RequiredLabel.view-Cv_y1fuR.js";
4
+ import { a as V, C as j, M as q, b as H, c as D, d as J, S as K, e as N, f as O, T as P } from "./Table.view-CHEV4kuX.js";
5
+ import { a as U, c as W, b as X, d as Y, r as Z, v as _ } from "./index-_v6RoRxb.js";
6
+ import { stableStringify as aa } from "./helpers/index.es.js";
7
7
  export {
8
8
  s as ActionButton,
9
9
  k as AlertInline,
@@ -17,18 +17,18 @@ export {
17
17
  n as ConfirmModal,
18
18
  c as Container,
19
19
  d as Empty,
20
- R as ErrorMessage,
21
- m as Frame,
22
- S as FrameView,
23
- f as Info,
20
+ I as ErrorMessage,
21
+ f as Frame,
22
+ m as FrameView,
23
+ S as Info,
24
24
  p as Input,
25
25
  b as Label,
26
26
  v as LabelField,
27
27
  x as Loading,
28
- C as LoadingBar,
28
+ T as LoadingBar,
29
29
  q as MenuSelect,
30
- F as Modal,
31
- T as Radio,
30
+ C as Modal,
31
+ F as Radio,
32
32
  z as RequiredLabelView,
33
33
  H as Section,
34
34
  u as SectionTitle,
@@ -36,20 +36,21 @@ export {
36
36
  J as SelectButton,
37
37
  K as SelectField,
38
38
  L as Spacer,
39
- y as Switch,
40
- N as Table,
39
+ R as Switch,
40
+ N as TabInfo,
41
+ O as Table,
41
42
  B as Textarea,
42
- O as TextareaField,
43
- E as Title,
43
+ P as TextareaField,
44
+ y as Title,
44
45
  M as Tooltip,
45
- Q as capitalizeAllFirstLetters,
46
- U as capitalizeFirstLetter,
47
- W as convertHexToRGB,
48
- X as dom,
49
- Y as resetStyles,
46
+ U as capitalizeAllFirstLetters,
47
+ W as capitalizeFirstLetter,
48
+ X as convertHexToRGB,
49
+ Y as dom,
50
+ Z as resetStyles,
50
51
  g as showConfirm,
51
52
  h as showModal,
52
- $ as stableStringify,
53
+ aa as stableStringify,
53
54
  w as styleGuide,
54
- Z as valuable
55
+ _ as valuable
55
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ufal-lccv/gpsub-ds",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "description": "Design system temporário do GP-SUB para auxiliar na futura migração para o DS Subweb 2.0",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- "use strict";const r=require("./Checkbox.view-DpYmvx5w.cjs"),s=require("sbwb-ds");require("react");const b=({width:i="100%",height:l="auto",type:e,title:n,message:c,margin:a})=>{var t,d,x,u;const o={info:{backgroundColor:"#D5EBFD",borderColor:s.sg.colors.feedbackColors.colorFeedbackInfo,iconName:"InfoFill1Md"},success:{backgroundColor:"#DAF9DB",borderColor:s.sg.colors.feedbackColors.colorFeedbackSuccess,iconName:"CheckCircleFill1Md"},warning:{backgroundColor:"#FEEECF",borderColor:s.sg.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:s.sg.colors.feedbackColors.colorFeedbackError,iconName:"ErrorFill1Md"}};return r.jsxRuntimeExports.jsxs(r.Container,{width:i,height:l,direction:"horizontal",verticalAlign:n?"top":"center",gap:s.sg.spacings.spacingInset.spacingInsetXs,padding:s.sg.spacings.spacingInline.spacingInlineSm,backgroundColor:(t=o==null?void 0:o[e])==null?void 0:t.backgroundColor,customStyles:{border:`1px solid ${(d=o==null?void 0:o[e])==null?void 0:d.borderColor}`,borderRadius:s.sg.borders.borderRadius.borderRadiusSm,margin:a},children:[e==="warning"?r.jsxRuntimeExports.jsx(r.ContainerWarning,{children:r.jsxRuntimeExports.jsx(r.WarningFill_default,{width:"20px",height:"20px"})}):r.jsxRuntimeExports.jsx(s.Icon,{iconName:(x=o==null?void 0:o[e])==null?void 0:x.iconName,color:(u=o==null?void 0:o[e])==null?void 0:u.borderColor}),r.jsxRuntimeExports.jsxs(r.Container,{width:"100%",flex:"1",children:[r.jsxRuntimeExports.jsx(r.Title$1,{children:n}),r.jsxRuntimeExports.jsx(r.Message,{children:c})]})]})},p=({label:i,labelRender:l,infoProps:e={},withInfo:n=!0,flex:c,width:a="100%",isRequired:o=!1})=>{const t={tooltipProps:{position:"top",...e==null?void 0:e.tooltipProps,size:"Small"}};return r.jsxRuntimeExports.jsxs(r.Container,{width:a,direction:"horizontal",gap:"4px",flex:c,children:[l??r.jsxRuntimeExports.jsxs(r.Label$1,{children:[i," ",o?r.jsxRuntimeExports.jsx(r.Required,{children:"*"}):null]}),n&&r.jsxRuntimeExports.jsx(r.Info,{...t})]})},j=({width:i="100%",flex:l,label:e="Obrigatório",margin:n="0 0 16px 0"})=>r.jsxRuntimeExports.jsx(r.Container,{width:i,flex:l,customStyles:{margin:n},children:r.jsxRuntimeExports.jsx(r.Label$2,{children:`* ${e}`})});exports.AlertInline=b;exports.LabelField=p;exports.RequiredLabelView=j;
@@ -1,98 +0,0 @@
1
- import { l as o, C as c, v as C, W as p, w as g, x as h, y as m, z as k, I as F, D as j } from "./Checkbox.view-B-GrHFEa.js";
2
- import { sg as s, Icon as I } from "sbwb-ds";
3
- import "react";
4
- const S = ({
5
- width: a = "100%",
6
- height: n = "auto",
7
- type: e,
8
- title: l,
9
- message: d,
10
- margin: t
11
- }) => {
12
- var i, b, u, x;
13
- const r = {
14
- info: {
15
- backgroundColor: "#D5EBFD",
16
- borderColor: s.colors.feedbackColors.colorFeedbackInfo,
17
- iconName: "InfoFill1Md"
18
- },
19
- success: {
20
- backgroundColor: "#DAF9DB",
21
- borderColor: s.colors.feedbackColors.colorFeedbackSuccess,
22
- iconName: "CheckCircleFill1Md"
23
- },
24
- warning: {
25
- backgroundColor: "#FEEECF",
26
- borderColor: s.colors.feedbackColors.colorFeedbackWarning
27
- },
28
- error: {
29
- backgroundColor: "#FFE1E1",
30
- borderColor: s.colors.feedbackColors.colorFeedbackError,
31
- iconName: "ErrorFill1Md"
32
- }
33
- };
34
- return /* @__PURE__ */ o.jsxs(
35
- c,
36
- {
37
- width: a,
38
- height: n,
39
- direction: "horizontal",
40
- verticalAlign: l ? "top" : "center",
41
- gap: s.spacings.spacingInset.spacingInsetXs,
42
- padding: s.spacings.spacingInline.spacingInlineSm,
43
- backgroundColor: (i = r == null ? void 0 : r[e]) == null ? void 0 : i.backgroundColor,
44
- customStyles: {
45
- border: `1px solid ${(b = r == null ? void 0 : r[e]) == null ? void 0 : b.borderColor}`,
46
- borderRadius: s.borders.borderRadius.borderRadiusSm,
47
- margin: t
48
- },
49
- children: [
50
- e === "warning" ? /* @__PURE__ */ o.jsx(C, { children: /* @__PURE__ */ o.jsx(p, { width: "20px", height: "20px" }) }) : /* @__PURE__ */ o.jsx(
51
- I,
52
- {
53
- iconName: (u = r == null ? void 0 : r[e]) == null ? void 0 : u.iconName,
54
- color: (x = r == null ? void 0 : r[e]) == null ? void 0 : x.borderColor
55
- }
56
- ),
57
- /* @__PURE__ */ o.jsxs(c, { width: "100%", flex: "1", children: [
58
- /* @__PURE__ */ o.jsx(g, { children: l }),
59
- /* @__PURE__ */ o.jsx(h, { children: d })
60
- ] })
61
- ]
62
- }
63
- );
64
- }, D = ({
65
- label: a,
66
- labelRender: n,
67
- infoProps: e = {},
68
- withInfo: l = !0,
69
- flex: d,
70
- width: t = "100%",
71
- isRequired: r = !1
72
- }) => {
73
- const i = {
74
- tooltipProps: {
75
- position: "top",
76
- ...e == null ? void 0 : e.tooltipProps,
77
- size: "Small"
78
- }
79
- };
80
- return /* @__PURE__ */ o.jsxs(c, { width: t, direction: "horizontal", gap: "4px", flex: d, children: [
81
- n ?? /* @__PURE__ */ o.jsxs(m, { children: [
82
- a,
83
- " ",
84
- r ? /* @__PURE__ */ o.jsx(k, { children: "*" }) : null
85
- ] }),
86
- l && /* @__PURE__ */ o.jsx(F, { ...i })
87
- ] });
88
- }, L = ({
89
- width: a = "100%",
90
- flex: n,
91
- label: e = "Obrigatório",
92
- margin: l = "0 0 16px 0"
93
- }) => /* @__PURE__ */ o.jsx(c, { width: a, flex: n, customStyles: { margin: l }, children: /* @__PURE__ */ o.jsx(j, { children: `* ${e}` }) });
94
- export {
95
- S as A,
96
- D as L,
97
- L as R
98
- };