frst-components 0.22.64 → 0.22.65

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
@@ -13923,7 +13923,32 @@ const AssideNewFeatures = styled__default["default"].aside `
13923
13923
  align-items: center;
13924
13924
  justify-content: flex-start;
13925
13925
  gap: 60px;
13926
+ position: relative;
13927
+ left: 13px;
13926
13928
  }
13929
+ `;
13930
+ const divExit = styled__default["default"].div `
13931
+
13932
+
13933
+ width: 963px;
13934
+ position: absolute;
13935
+ cursor: pointer;
13936
+ display: flex;
13937
+ z-index: 3000;
13938
+ `;
13939
+ const TextExit = styled__default["default"].h2 `
13940
+
13941
+ width: 30px;
13942
+ height: 20px;
13943
+ right: 0px;
13944
+ position: absolute;
13945
+ color: #000;
13946
+ font-family: "PT Sans";
13947
+ font-size: 16px;
13948
+ font-style: normal;
13949
+ font-weight: 400;
13950
+ line-height: 110%;
13951
+
13927
13952
  `;
13928
13953
  const Text$1 = styled__default["default"].p `
13929
13954
  font-family: PT Sans;
@@ -13932,7 +13957,8 @@ const Text$1 = styled__default["default"].p `
13932
13957
  font-weight: 400;
13933
13958
  line-height: 110%;
13934
13959
  color: #222;
13935
-
13960
+ text-align: left;
13961
+ width: 100%;
13936
13962
  /* max-width: 83ch; */
13937
13963
  max-height: 69px;
13938
13964
  overflow: hidden;
@@ -13966,11 +13992,11 @@ const ListTopics = styled__default["default"].ul `
13966
13992
  flex-direction: column;
13967
13993
  padding-left: 0;
13968
13994
  gap: 16px;
13969
- overflow-y: scroll;
13995
+ overflow-y: auto;
13970
13996
  height: 308px;
13971
13997
 
13972
13998
  ::-webkit-scrollbar {
13973
- width: 7px;
13999
+ width: 8px;
13974
14000
  height: 90%;
13975
14001
  display: flex;
13976
14002
  box-sizing: border-box;
@@ -14061,7 +14087,7 @@ const ContentDescription = styled__default["default"].div `
14061
14087
  gap: 16px;
14062
14088
  `;
14063
14089
 
14064
- const modalNewFeatures = ({ title = 'Novidades', open, onClose, onFinish, steps }) => {
14090
+ const modalNewFeatures = ({ title = 'Novidades', open, onClose, onFinish, steps, Exit = 'X' }) => {
14065
14091
  const [numberCurrentStep, setNumberCurrentStep] = React.useState(0);
14066
14092
  const [currentTopic, setCurrentTopic] = React.useState(steps[numberCurrentStep]);
14067
14093
  const isLastStep = currentTopic === steps[steps.length - 1];
@@ -14086,9 +14112,9 @@ const modalNewFeatures = ({ title = 'Novidades', open, onClose, onFinish, steps
14086
14112
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: open && (jsxRuntime.jsx(ModalNewFeaturesContainer, { id: "container-modal", onClick: (e) => {
14087
14113
  const target = e.target;
14088
14114
  target.id === 'container-modal' && onClose();
14089
- }, children: jsxRuntime.jsxs(ModalNewFeaturesContent, { children: [jsxRuntime.jsxs(AssideNewFeatures, { children: [jsxRuntime.jsxs("div", { className: "list", children: [jsxRuntime.jsx(Text$1, { id: "modal-title", className: "title", children: title }), jsxRuntime.jsx(ListTopics, { children: steps.map((topic, i) => {
14115
+ }, children: jsxRuntime.jsxs(ModalNewFeaturesContent, { children: [jsxRuntime.jsx(divExit, { children: jsxRuntime.jsx(TextExit, { onClick: onClose, children: Exit }) }), jsxRuntime.jsxs(AssideNewFeatures, { children: [jsxRuntime.jsxs("div", { className: "list", children: [jsxRuntime.jsx(Text$1, { id: "modal-title", className: "title", children: title }), jsxRuntime.jsx(ListTopics, { children: steps.map((topic, i) => {
14090
14116
  return (jsxRuntime.jsx(Topic, { id: `step${i + 1}`, className: currentTopic.topicName === topic.topicName ? 'active' : '', onClick: () => handleClickTopic(i), children: topic.topicName }, i));
14091
- }) })] }), jsxRuntime.jsx(Button$4, { id: isLastStep ? 'button-finish' : 'button-nextStep', label: labelButton, variant: variantButton, handleClick: handleClickButtonNext, style: { padding: '8px 32px', height: 'fit-content' } })] }), jsxRuntime.jsxs(MidiaContent, { children: [jsxRuntime.jsx(Midia, { id: "midia-container", children: jsxRuntime.jsx("div", { className: "content", children: currentTopic.typeMidia !== 'video' ? (jsxRuntime.jsx("img", { style: currentTopic.styleImage, src: currentTopic.midia, alt: currentTopic.title })) : (jsxRuntime.jsx(ReactPlayer__default["default"], { url: currentTopic.midia, controls: true, playing: true, style: { width: '100%', height: '100%' } })) }) }), jsxRuntime.jsxs(ContentDescription, { children: [jsxRuntime.jsx(Text$1, { id: "step-title", className: "subtitle", children: currentTopic.title }), jsxRuntime.jsx(Text$1, { id: "step-description", children: currentTopic.description })] })] })] }) })) }));
14117
+ }) })] }), jsxRuntime.jsx(Button$4, { id: isLastStep ? 'button-finish' : 'button-nextStep', label: labelButton, variant: variantButton, handleClick: handleClickButtonNext, style: { padding: '8px 32px', height: 'fit-content' } })] }), jsxRuntime.jsxs(MidiaContent, { children: [jsxRuntime.jsx(Midia, { id: "midia-container", children: jsxRuntime.jsx("div", { className: "content", children: currentTopic.typeMidia !== 'video' ? (jsxRuntime.jsx("img", { style: currentTopic.styleImage, src: currentTopic.midia, alt: currentTopic.title })) : (jsxRuntime.jsx(ReactPlayer__default["default"], { url: 'currentTopic.midia', controls: true, playing: true, style: { width: '100%', height: '100%' } })) }) }), jsxRuntime.jsxs(ContentDescription, { children: [jsxRuntime.jsx(Text$1, { id: "step-title", className: "subtitle", children: currentTopic.title }), jsxRuntime.jsx(Text$1, { id: "step-description", children: currentTopic.description })] })] })] }) })) }));
14092
14118
  };
14093
14119
 
14094
14120
  const ProgressBox = styled__default["default"](_.Box) `
@@ -1,6 +1,8 @@
1
1
  export declare const ModalNewFeaturesContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const ModalNewFeaturesContent: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const AssideNewFeatures: import("styled-components").StyledComponent<"aside", any, {}, never>;
4
+ export declare const divExit: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const TextExit: import("styled-components").StyledComponent<"h2", any, {}, never>;
4
6
  export declare const Text: import("styled-components").StyledComponent<"p", any, {}, never>;
5
7
  export declare const ListTopics: import("styled-components").StyledComponent<"ul", any, {}, never>;
6
8
  export declare const Topic: import("styled-components").StyledComponent<"li", any, {}, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"ModalNewFeatures.style.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/modalNewFeatures/ModalNewFeatures.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,oEAWrC,CAAA;AAED,eAAO,MAAM,uBAAuB,oEAOnC,CAAA;AAED,eAAO,MAAM,iBAAiB,sEAiB7B,CAAA;AAED,eAAO,MAAM,IAAI,kEAkChB,CAAA;AAGD,eAAO,MAAM,UAAU,mEAiCtB,CAAA;AACD,eAAO,MAAM,KAAK,mEAcjB,CAAA;AACD,eAAO,MAAM,YAAY,oEAUxB,CAAA;AAED,eAAO,MAAM,KAAK,oEA+BjB,CAAA;AAED,eAAO,MAAM,kBAAkB,oEAO9B,CAAA"}
1
+ {"version":3,"file":"ModalNewFeatures.style.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/modalNewFeatures/ModalNewFeatures.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,oEAWrC,CAAA;AAED,eAAO,MAAM,uBAAuB,oEAOnC,CAAA;AAED,eAAO,MAAM,iBAAiB,sEAmB7B,CAAA;AAED,eAAO,MAAM,OAAO,oEAQnB,CAAA;AAED,eAAO,MAAM,QAAQ,mEAapB,CAAA;AAED,eAAO,MAAM,IAAI,kEAmChB,CAAA;AAGD,eAAO,MAAM,UAAU,mEAiCtB,CAAA;AACD,eAAO,MAAM,KAAK,mEAcjB,CAAA;AACD,eAAO,MAAM,YAAY,oEAUxB,CAAA;AAED,eAAO,MAAM,KAAK,oEA+BjB,CAAA;AAED,eAAO,MAAM,kBAAkB,oEAO9B,CAAA"}
@@ -10,10 +10,11 @@ type TopicsNewFeatues = {
10
10
  type ModalNewFeaturesProps = {
11
11
  title: string;
12
12
  open: boolean;
13
+ Exit: string;
13
14
  onClose: () => void;
14
15
  onFinish: () => void;
15
16
  steps: TopicsNewFeatues[];
16
17
  };
17
- declare const modalNewFeatures: ({ title, open, onClose, onFinish, steps }: ModalNewFeaturesProps) => JSX.Element;
18
+ declare const modalNewFeatures: ({ title, open, onClose, onFinish, steps, Exit }: ModalNewFeaturesProps) => JSX.Element;
18
19
  export default modalNewFeatures;
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/modalNewFeatures/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACrC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAA;CACrC,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,gBAAgB,8CAA6D,qBAAqB,gBAmGvG,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/modalNewFeatures/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACrC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAA;CACrC,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAC,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,gBAAgB,oDAAuE,qBAAqB,gBAyGjH,CAAA;AAED,eAAe,gBAAgB,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.22.64",
4
+ "version": "0.22.65",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",