frst-components 0.27.7 → 0.27.8

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/index.js CHANGED
@@ -7474,7 +7474,8 @@ const Tab$1 = styled__default["default"]('div') `
7474
7474
  font-weight: ${props => props.selected ? 700 : 400};
7475
7475
  white-space: nowrap;
7476
7476
  text-overflow: ellipsis;
7477
- overflow: hidden
7477
+ overflow: hidden;
7478
+ text-align: center;
7478
7479
  }
7479
7480
 
7480
7481
  :hover {
@@ -7758,7 +7759,7 @@ function AddImpedimentoModal({ isOpen, onClose, onSaveBtn, anchor }) {
7758
7759
  }, transformOrigin: {
7759
7760
  horizontal: 'right',
7760
7761
  vertical: 'top'
7761
- }, children: jsxRuntime.jsxs(ContainerModal, { children: [jsxRuntime.jsxs("div", { style: { width: '100%' }, children: [jsxRuntime.jsx(TextField, { value: text, onChange: (e) => setText(e.target.value), placeholder: "Sugira o impedimento aqui", maxLength: limitCaraterersImpediments }), text?.length >= limitCaraterersImpediments && (jsxRuntime.jsxs("div", { style: {
7762
+ }, children: jsxRuntime.jsxs(ContainerModal, { children: [jsxRuntime.jsxs("div", { style: { width: '100%' }, children: [jsxRuntime.jsx(TextField, { value: text, onChange: (e) => setText(e.target.value), placeholder: "Sugira a causa aqui", maxLength: limitCaraterersImpediments }), text?.length >= limitCaraterersImpediments && (jsxRuntime.jsxs("div", { style: {
7762
7763
  display: 'flex',
7763
7764
  alignItems: 'flex-start',
7764
7765
  marginTop: '4px',
@@ -7910,7 +7911,14 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
7910
7911
  setEditDescription(selectedTab.description || '');
7911
7912
  }
7912
7913
  }, [selectedTab]);
7913
- return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: allTabs?.length > 0 ? (jsxRuntime.jsxs(ContainerImpedimentos, { children: [jsxRuntime.jsxs(TabWrapper, { children: [jsxRuntime.jsxs(material.Box, { display: 'flex', alignItems: 'center', children: [onShowTabs.map((item, index) => renderTabs(item, index)), onHideTabs.length > 0 ? (jsxRuntime.jsx(Tooltip$2, { content: "Ver todos os impedimentos", direction: "bottom", delay: 200, style: { textAlign: 'center' }, children: jsxRuntime.jsxs(WrapperImpedimentoSelect, { activeSelect: openImpedimentoSelect, onClick: (e) => setImpedimentoSelectAnchor(e.currentTarget), style: style, children: [jsxRuntime.jsxs("p", { children: ["Mais ", onHideTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon$1, { isOpenSelect: openImpedimentoSelect, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}))] }), jsxRuntime.jsx(material.Box, { display: 'flex', alignItems: 'center', children: showAddButton ? (jsxRuntime.jsx(Tooltip$2, { content: "Sugerir impedimento", direction: "bottom", delay: 200, style: { textAlign: 'center' }, children: jsxRuntime.jsxs(WrapperAddButton, { activeButton: openAddImpedimento, onClick: handleClickAddImpedimento, children: [jsxRuntime.jsx(AddIcon, {}), jsxRuntime.jsx("p", { children: addButtonText })] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {})) })] }), selectedTab?.id ? (jsxRuntime.jsxs(TabInfoWrapper, { onDoubleClick: () => selectedTab?.showOptions && setIsEdit(true), children: [jsxRuntime.jsx(Tooltip$2, { content: selectedTab?.user_name, direction: "bottom", delay: 200, style: {
7914
+ return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: allTabs?.length > 0 ? (jsxRuntime.jsxs(ContainerImpedimentos, { children: [jsxRuntime.jsxs(TabWrapper, { children: [jsxRuntime.jsxs(material.Box, { display: 'flex', alignItems: 'center', children: [onShowTabs.map((item, index) => renderTabs(item, index)), onHideTabs.length > 0 ? (jsxRuntime.jsx(Tooltip$2, { content: "Ver todas as causas", direction: "bottom", delay: 200, style: {
7915
+ fontFamily: 'PT Sans',
7916
+ fontWeight: 400,
7917
+ fontSize: '14px',
7918
+ color: 'rgba(117, 117, 117, 1)',
7919
+ textAlign: 'center',
7920
+ boxShadow: ' 0px 0px 18px 0px rgba(34, 34, 34, 0.2)'
7921
+ }, children: jsxRuntime.jsxs(WrapperImpedimentoSelect, { activeSelect: openImpedimentoSelect, onClick: (e) => setImpedimentoSelectAnchor(e.currentTarget), style: style, children: [jsxRuntime.jsxs("p", { children: ["Mais ", onHideTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon$1, { isOpenSelect: openImpedimentoSelect, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}))] }), jsxRuntime.jsx(material.Box, { display: 'flex', alignItems: 'center', children: showAddButton ? (jsxRuntime.jsxs(WrapperAddButton, { activeButton: openAddImpedimento, onClick: handleClickAddImpedimento, children: [jsxRuntime.jsx(AddIcon, {}), jsxRuntime.jsx("p", { children: addButtonText })] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {})) })] }), selectedTab?.id ? (jsxRuntime.jsxs(TabInfoWrapper, { onDoubleClick: () => selectedTab?.showOptions && setIsEdit(true), children: [jsxRuntime.jsx(Tooltip$2, { content: selectedTab?.user_name, direction: "bottom", delay: 200, style: {
7914
7922
  fontFamily: 'PT Sans',
7915
7923
  fontWeight: 400,
7916
7924
  fontSize: '14px',
@@ -8213,10 +8221,10 @@ const HypothesisAndImpediment = ({ description, variant, type, avatar, id, index
8213
8221
  if (type === 'prioritize' && variant === 'hypothesis')
8214
8222
  return 'HIPÓTESE PRIORIZADA';
8215
8223
  if (type === 'prioritize' && variant === 'impediment')
8216
- return 'IMPEDIMENTO PRIORIZADO';
8224
+ return 'CAUSA PRIORIZADA';
8217
8225
  if (variant == 'hypothesis')
8218
8226
  return `HIPÓTESE ${index}`;
8219
- return `IMPEDIMENTO ${index}`;
8227
+ return `CAUSA ${index}`;
8220
8228
  }, [type, variant, index]);
8221
8229
  const avatarBorder = isOwnerGoal ? `2px solid ${borderAvatar[variant][type]}` : 'none';
8222
8230
  const handleSaveDescription = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/styles.ts"],"names":[],"mappings":";AAGA,UAAU,sBAAsB;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,qBAAqB,oEAIjC,CAAA;AAED,eAAO,MAAM,UAAU,oEAItB,CAAA;AAED,eAAO,MAAM,GAAG,wFAoCf,CAAA;AAED,eAAO,MAAM,cAAc,oEAkB1B,CAAA;AAED,eAAO,MAAM,gBAAgB;kBAAgC,OAAO;SAgDnE,CAAA;AAED,eAAO,MAAM,wBAAwB,wFA4BpC,CAAA;AAED,eAAO,MAAM,iBAAiB;kBAAgC,OAAO;SAepE,CAAA;AAED,eAAO,MAAM,eAAe,oEAG3B,CAAA;AAED,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;iBAA+B,MAAM;SAQ5D,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/styles.ts"],"names":[],"mappings":";AAGA,UAAU,sBAAsB;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,qBAAqB,oEAIjC,CAAA;AAED,eAAO,MAAM,UAAU,oEAItB,CAAA;AAED,eAAO,MAAM,GAAG,wFAqCf,CAAA;AAED,eAAO,MAAM,cAAc,oEAkB1B,CAAA;AAED,eAAO,MAAM,gBAAgB;kBAAgC,OAAO;SAgDnE,CAAA;AAED,eAAO,MAAM,wBAAwB,wFA4BpC,CAAA;AAED,eAAO,MAAM,iBAAiB;kBAAgC,OAAO;SAepE,CAAA;AAED,eAAO,MAAM,eAAe,oEAG3B,CAAA;AAED,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;iBAA+B,MAAM;SAQ5D,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.27.7",
4
+ "version": "0.27.8",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",