norma-library 0.6.78 → 0.6.80
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/.eslintrc.cjs +89 -0
- package/.prettierrc +8 -0
- package/.storybook/main.ts +1 -1
- package/dist/esm/components/Button/index.d.ts +9 -0
- package/dist/esm/components/Button/index.js +16 -0
- package/dist/esm/components/Button/index.js.map +1 -0
- package/dist/esm/components/Button/types.d.ts +18 -0
- package/dist/esm/components/Button/types.js +2 -0
- package/dist/esm/components/Button/types.js.map +1 -0
- package/dist/esm/components/Card/Card.d.ts +4 -0
- package/dist/esm/components/Card/Card.js +11 -0
- package/dist/esm/components/Card/Card.js.map +1 -0
- package/dist/esm/components/Card/CardHeader.d.ts +4 -0
- package/dist/esm/components/Card/CardHeader.js +8 -0
- package/dist/esm/components/Card/CardHeader.js.map +1 -0
- package/dist/esm/components/Card/index.d.ts +4 -0
- package/dist/esm/components/Card/index.js +5 -0
- package/dist/esm/components/Card/index.js.map +1 -0
- package/dist/esm/components/Card/styles.d.ts +2 -0
- package/dist/esm/components/Card/styles.js +6 -0
- package/dist/esm/components/Card/styles.js.map +1 -0
- package/dist/esm/components/Card/types.d.ts +8 -0
- package/dist/esm/components/Card/types.js +2 -0
- package/dist/esm/components/Card/types.js.map +1 -0
- package/dist/esm/components/IconifyIcon.d.ts +8 -0
- package/dist/esm/components/IconifyIcon.js +7 -0
- package/dist/esm/components/IconifyIcon.js.map +1 -0
- package/dist/esm/components/Modal.js +7 -3
- package/dist/esm/components/Modal.js.map +1 -1
- package/dist/esm/components/ProductCard/ProductCard.d.ts +3 -0
- package/dist/esm/components/ProductCard/ProductCard.js +34 -0
- package/dist/esm/components/ProductCard/ProductCard.js.map +1 -0
- package/dist/esm/components/ProductCard/ProductCard.style.d.ts +19 -0
- package/dist/esm/components/ProductCard/ProductCard.style.js +8 -0
- package/dist/esm/components/ProductCard/ProductCard.style.js.map +1 -0
- package/dist/esm/components/RangerSlider.d.ts +1 -1
- package/dist/esm/components/RangerSlider.js +28 -3
- package/dist/esm/components/RangerSlider.js.map +1 -1
- package/dist/esm/components/ServiceCard/ServiceCard.d.ts +3 -0
- package/dist/esm/components/ServiceCard/ServiceCard.js +20 -0
- package/dist/esm/components/ServiceCard/ServiceCard.js.map +1 -0
- package/dist/esm/components/ServiceCard/ServiceCard.style.d.ts +18 -0
- package/dist/esm/components/ServiceCard/ServiceCard.style.js +8 -0
- package/dist/esm/components/ServiceCard/ServiceCard.style.js.map +1 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/Modal.d.ts +1 -0
- package/dist/esm/interfaces/ProductCard.d.ts +18 -0
- package/dist/esm/interfaces/ProductCard.js +2 -0
- package/dist/esm/interfaces/ProductCard.js.map +1 -0
- package/dist/esm/interfaces/RangerSlider.d.ts +3 -0
- package/dist/esm/interfaces/ServiceCard.d.ts +10 -0
- package/dist/esm/interfaces/ServiceCard.js +2 -0
- package/dist/esm/interfaces/ServiceCard.js.map +1 -0
- package/dist/esm/utils/pxToRem.d.ts +1 -0
- package/dist/esm/utils/pxToRem.js +4 -0
- package/dist/esm/utils/pxToRem.js.map +1 -0
- package/index.html +13 -0
- package/package.json +2 -1
- package/public/vite.svg +1 -0
- package/src/assets/react.svg +1 -0
- package/src/components/Card/Card.tsx +15 -0
- package/src/components/Card/CardHeader.tsx +9 -0
- package/src/components/Card/index.ts +5 -0
- package/src/components/Card/styles.ts +16 -0
- package/src/components/Card/types.ts +10 -0
- package/src/components/IconifyIcon.tsx +23 -0
- package/src/components/Modal.tsx +11 -4
- package/src/components/ProductCard/ProductCard.style.ts +56 -0
- package/src/components/ProductCard/ProductCard.tsx +71 -0
- package/src/components/RangerSlider.tsx +59 -3
- package/src/components/ServiceCard/ServiceCard.style.ts +53 -0
- package/src/components/ServiceCard/ServiceCard.tsx +30 -0
- package/src/components/index.ts +2 -0
- package/src/index.ts +3 -1
- package/src/interfaces/Modal.ts +2 -1
- package/src/interfaces/ProductCard.ts +23 -0
- package/src/interfaces/RangerSlider.ts +3 -0
- package/src/interfaces/ServiceCard.ts +11 -0
- package/src/stories/IconifyIcon.stories.tsx +31 -0
- package/src/stories/Modal.stories.tsx +54 -0
- package/src/stories/ProductCard.stories.tsx +22 -0
- package/src/stories/RangerSlider.stories.tsx +6 -2
- package/src/stories/ServiceCard.stories.tsx +20 -0
- package/src/utils/pxToRem.ts +4 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +32 -32
- package/tsconfig.node.json +10 -0
- package/dist/esm/components/NormaTimeLine/NormaTimeLine.d.ts +0 -14
- package/dist/esm/components/NormaTimeLine/NormaTimeLine.js +0 -48
- package/dist/esm/components/NormaTimeLine/NormaTimeLine.js.map +0 -1
- package/dist/esm/components/TimeLine.d.ts +0 -3
- package/dist/esm/components/TimeLine.js +0 -56
- package/dist/esm/components/TimeLine.js.map +0 -1
- package/dist/esm/components/UncontrolledTable/components/tbody/index.d.ts +0 -3
- package/dist/esm/components/UncontrolledTable/components/tbody/index.js +0 -15
- package/dist/esm/components/UncontrolledTable/components/tbody/index.js.map +0 -1
- package/dist/esm/components/UncontrolledTable/components/tbody/styles.d.ts +0 -2
- package/dist/esm/components/UncontrolledTable/components/tbody/styles.js +0 -12
- package/dist/esm/components/UncontrolledTable/components/tbody/styles.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Tabs } from './components/Tabs';
|
|
|
14
14
|
import { Tag } from './components/Tag';
|
|
15
15
|
import { TextField } from './components/TextField';
|
|
16
16
|
import { DatePicker } from './components/DatePicker';
|
|
17
|
-
import { ChatMessage, ChatMessageBalloon } from './components';
|
|
17
|
+
import { ChatMessage, ChatMessageBalloon, ProductCard, ServiceCard } from './components';
|
|
18
18
|
import { NormaProvider } from './providers/NormaProvider';
|
|
19
19
|
import { themes, getPalette } from './helpers';
|
|
20
20
|
import DateInput from './components/DateInput';
|
|
@@ -31,5 +31,5 @@ import { TimeLine } from './components/TimeLine/TimeLine';
|
|
|
31
31
|
import { ModalStatus } from './components/StatusModal/StatusModal';
|
|
32
32
|
import { breakpoints } from './utils/styledBreakpoints';
|
|
33
33
|
import { useTheme } from '@mui/material';
|
|
34
|
-
export { Accordion, Button, Card, ChatMessage, ChatMessageBalloon, CheckBox, DatePicker, getPalette, IconButton, Icons, Modal, Paper, ProgressBar, RadioGroup, RangerSlider, Select, Tabs, Tag, TextField, NormaProvider, themes, DateInput, Box, Breadcrumb, SelectInput, MultiSelectInput, Text, Title, TextInput, Table, UncontrolledTable, UncontrolledTabs, ModalStatus, breakpoints, useTheme, TimeLine, };
|
|
34
|
+
export { Accordion, Button, Card, ChatMessage, ChatMessageBalloon, CheckBox, DatePicker, getPalette, IconButton, Icons, Modal, Paper, ProgressBar, ProductCard, RadioGroup, RangerSlider, Select, Tabs, Tag, TextField, NormaProvider, themes, DateInput, Box, Breadcrumb, SelectInput, ServiceCard, MultiSelectInput, Text, Title, TextInput, Table, UncontrolledTable, UncontrolledTabs, ModalStatus, breakpoints, useTheme, TimeLine, };
|
|
35
35
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAgB,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EACL,SAAS,EACT,MAAM,EACN,IAAI,EACJ,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACT,aAAa,EACb,MAAM,EACN,SAAS,EACT,GAAG,EACH,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,GAET,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ProductCardProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
color: string;
|
|
6
|
+
iconColor: string;
|
|
7
|
+
iconName: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
hasBorder?: boolean;
|
|
11
|
+
flaggable?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface BgIconProps {
|
|
14
|
+
$bColor: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
color: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../src/interfaces/ProductCard.ts"],"names":[],"mappings":""}
|
|
@@ -15,4 +15,7 @@ export interface RangerSliderBaseProps extends MuiRangerSliderBaseProps {
|
|
|
15
15
|
defaultValue?: number | number[];
|
|
16
16
|
valueLabelDisplay?: 'on' | 'auto' | 'off';
|
|
17
17
|
color?: OverridableStringUnion<'primary' | 'secondary', SliderPropsColorOverrides>;
|
|
18
|
+
label?: string;
|
|
19
|
+
showValueInline?: boolean;
|
|
20
|
+
valueLabelFormat?: string | ((value: number, index: number) => React.ReactNode);
|
|
18
21
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceCard.js","sourceRoot":"","sources":["../../../src/interfaces/ServiceCard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pxToRem: (px: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pxToRem.js","sourceRoot":"","sources":["../../../src/utils/pxToRem.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,OAAO,GAAG,UAAC,EAAU;IAC9B,OAAO,UAAG,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,QAAK,CAAC;AACnC,CAAC,CAAC"}
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite + React + TS</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "norma-library",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
|
|
6
6
|
"scripts": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@babel/preset-typescript": "^7.22.15",
|
|
34
34
|
"@emotion/core": "^11.0.0",
|
|
35
35
|
"@emotion/styled-base": "^11.0.0",
|
|
36
|
+
"@iconify/react": "^5.2.0",
|
|
36
37
|
"@mdx-js/loader": "^2.3.0",
|
|
37
38
|
"@storybook/addon-essentials": "^7.5.0",
|
|
38
39
|
"@storybook/addon-interactions": "^7.5.0",
|
package/public/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import CardHeader from './CardHeader'
|
|
3
|
+
import { CardBaseProps } from './types'
|
|
4
|
+
import { StyledCard } from './styles'
|
|
5
|
+
|
|
6
|
+
const Card = ({ children, title }: CardBaseProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<StyledCard>
|
|
9
|
+
{title && <CardHeader title={title} />}
|
|
10
|
+
{children}
|
|
11
|
+
</StyledCard>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default Card
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CardHeaderBaseProps } from './types'
|
|
3
|
+
import { StyledCardHeader } from './styles'
|
|
4
|
+
|
|
5
|
+
const CardHeader = ({ title }: CardHeaderBaseProps) => {
|
|
6
|
+
return <StyledCardHeader>{title}</StyledCardHeader>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default CardHeader
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const StyledCard = styled.div`
|
|
4
|
+
padding: 16px;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
7
|
+
`
|
|
8
|
+
export const StyledCardHeader = styled.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
border-bottom: 1px solid #ccc;
|
|
15
|
+
padding-bottom: 8px;
|
|
16
|
+
`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Icon } from '@iconify/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface IconProps {
|
|
5
|
+
iconName: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const IconifyIcon: React.FC<IconProps> = ({
|
|
11
|
+
iconName,
|
|
12
|
+
color,
|
|
13
|
+
size
|
|
14
|
+
}) => {
|
|
15
|
+
return (
|
|
16
|
+
<Icon
|
|
17
|
+
icon={iconName}
|
|
18
|
+
color={color}
|
|
19
|
+
width={size}
|
|
20
|
+
strokeWidth={2.5}
|
|
21
|
+
/>
|
|
22
|
+
)
|
|
23
|
+
}
|
package/src/components/Modal.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { Button } from './Button';
|
|
|
7
7
|
|
|
8
8
|
const ModalStyled = styled(MuiModal)({});
|
|
9
9
|
|
|
10
|
-
const ModalContentStyled = styled(Paper)<{ $w?: string }>`
|
|
10
|
+
const ModalContentStyled = styled(Paper) <{ $w?: string }>`
|
|
11
11
|
border: 1px solid #00000033;
|
|
12
12
|
border-radius: 4px;
|
|
13
13
|
position: absolute;
|
|
@@ -16,6 +16,7 @@ const ModalContentStyled = styled(Paper)<{ $w?: string }>`
|
|
|
16
16
|
width: ${props => props.$w || '421px'};
|
|
17
17
|
transform: translate(-50%, -50%);
|
|
18
18
|
background-color: #fff;
|
|
19
|
+
outline: none;
|
|
19
20
|
`;
|
|
20
21
|
|
|
21
22
|
const ModalHeaderStyled = styled(Box)`
|
|
@@ -35,7 +36,7 @@ const ModalHeaderStyled = styled(Box)`
|
|
|
35
36
|
}
|
|
36
37
|
`;
|
|
37
38
|
|
|
38
|
-
const ModalFooterStyled = styled(Box)<{ $spaceBetween?: boolean }>`
|
|
39
|
+
const ModalFooterStyled = styled(Box) <{ $spaceBetween?: boolean }>`
|
|
39
40
|
box-sizing: border-box;
|
|
40
41
|
position: relative;
|
|
41
42
|
padding: 24px;
|
|
@@ -69,8 +70,14 @@ export function Close() {
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
export const Modal = ({ open, children, paperProps, ...props }: ModalBaseProps) => {
|
|
73
|
+
|
|
74
|
+
const handleClose = (event: {}, reason: "backdropClick" | "escapeKeyDown") => {
|
|
75
|
+
(reason === "escapeKeyDown" || !props.shouldNotCloseOnOutsideClick) && props.onClose?.(event as React.SyntheticEvent);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
|
|
72
79
|
return (
|
|
73
|
-
<ModalStyled open {...props}>
|
|
80
|
+
<ModalStyled open {...props} onClose={handleClose}>
|
|
74
81
|
<ModalContentStyled {...paperProps} $w={props.width}>
|
|
75
82
|
<IconButton
|
|
76
83
|
onClick={props.onClose}
|
|
@@ -78,7 +85,7 @@ export const Modal = ({ open, children, paperProps, ...props }: ModalBaseProps)
|
|
|
78
85
|
color="inherit"
|
|
79
86
|
variant="text"
|
|
80
87
|
cursor="pointer"
|
|
81
|
-
sx={{ padding: '0', position: 'absolute', right: '22px', top: '22px' }}
|
|
88
|
+
sx={{ padding: '0', position: 'absolute', right: '22px', top: '22px', zIndex: 2}}
|
|
82
89
|
className='Modal__Close'
|
|
83
90
|
>
|
|
84
91
|
<Close />
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { pxToRem } from "../../utils/pxToRem";
|
|
3
|
+
|
|
4
|
+
export const ProductCardStyle = styled.div<{ disabled?: boolean, $bColor?: string, hasBorder?: boolean }>`
|
|
5
|
+
max-width: 380px;
|
|
6
|
+
cursor: ${(props) => (props.disabled ? "not-allowed" : "pointer")};
|
|
7
|
+
opacity: ${(props) => (props.disabled ? 0.5 : 1)};
|
|
8
|
+
height: 100%;
|
|
9
|
+
border-left: 7px solid ${(props) => props.hasBorder ? props.$bColor : 'transparent'} !important;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
p.description {
|
|
14
|
+
margin-bottom: ${pxToRem(17)};
|
|
15
|
+
line-height: ${pxToRem(24)};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.MuiPaper-root {
|
|
19
|
+
min-height: 180px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (max-width: 1535px) {
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export const IconCardStyle = styled.div<{ $bColor?: string; $iColor: string }>`
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
border-radius: 5px;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
padding: 10px;
|
|
33
|
+
background-color: ${(props) => props.$bColor};
|
|
34
|
+
min-width: ${pxToRem(50)};
|
|
35
|
+
min-height: ${pxToRem(50)};
|
|
36
|
+
margin-right: ${pxToRem(10)};
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
|
|
39
|
+
svg {
|
|
40
|
+
max-height: 24px;
|
|
41
|
+
|
|
42
|
+
path {
|
|
43
|
+
fill: ${(props) => props.$iColor};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
export const TitleContainer = styled.div`
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
margin-bottom: ${pxToRem(16)};
|
|
52
|
+
|
|
53
|
+
p {
|
|
54
|
+
font-size: ${pxToRem(24)};
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Grid } from "@mui/material";
|
|
2
|
+
import { ProductCardProps } from "../../interfaces/ProductCard";
|
|
3
|
+
import { Card } from "../Card";
|
|
4
|
+
import { IconCardStyle, ProductCardStyle, TitleContainer } from "./ProductCard.style";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { IconButton } from "../IconButton";
|
|
7
|
+
import GradeIcon from '@mui/icons-material/Grade'
|
|
8
|
+
import { IconifyIcon } from "../IconifyIcon";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const ProductCard: React.FC<ProductCardProps> = ({
|
|
12
|
+
// product = 'analytics'
|
|
13
|
+
color,
|
|
14
|
+
iconColor,
|
|
15
|
+
onClick,
|
|
16
|
+
hasBorder = true,
|
|
17
|
+
disabled = false,
|
|
18
|
+
title,
|
|
19
|
+
description,
|
|
20
|
+
iconName,
|
|
21
|
+
flaggable = false
|
|
22
|
+
}) => {
|
|
23
|
+
|
|
24
|
+
/* const colors: { [key: string]: string } = {
|
|
25
|
+
primaryDark: '#B74608',
|
|
26
|
+
primaryLight: '#FCF1E3',
|
|
27
|
+
secondaryDark: '#6788B8',
|
|
28
|
+
secondaryLight: '#EEF7FB'
|
|
29
|
+
}
|
|
30
|
+
*/
|
|
31
|
+
return (
|
|
32
|
+
<ProductCardStyle disabled={disabled} $bColor={iconColor} hasBorder={hasBorder}>
|
|
33
|
+
<Card
|
|
34
|
+
variant="outlined"
|
|
35
|
+
onClick={() => onClick && onClick()}
|
|
36
|
+
>
|
|
37
|
+
{flaggable && (
|
|
38
|
+
<Grid container justifyContent={'flex-end'} alignItems={'flex-start'}>
|
|
39
|
+
<Grid item>
|
|
40
|
+
<IconButton
|
|
41
|
+
sx={{ padding: 0 }}
|
|
42
|
+
aria-label="favorite"
|
|
43
|
+
onClick={(event) => {
|
|
44
|
+
event.preventDefault()
|
|
45
|
+
event.stopPropagation()
|
|
46
|
+
}}
|
|
47
|
+
cursor="pointer"
|
|
48
|
+
>
|
|
49
|
+
<GradeIcon />
|
|
50
|
+
</IconButton>
|
|
51
|
+
</Grid>
|
|
52
|
+
</Grid>
|
|
53
|
+
)}
|
|
54
|
+
|
|
55
|
+
<TitleContainer>
|
|
56
|
+
<IconCardStyle
|
|
57
|
+
$iColor={iconColor}
|
|
58
|
+
$bColor={color}
|
|
59
|
+
>
|
|
60
|
+
<IconifyIcon iconName={iconName} color={iconColor} size="100%" />
|
|
61
|
+
</IconCardStyle>
|
|
62
|
+
<p>{title}</p>
|
|
63
|
+
</TitleContainer>
|
|
64
|
+
|
|
65
|
+
<p className="description">
|
|
66
|
+
{description}
|
|
67
|
+
</p>
|
|
68
|
+
</Card>
|
|
69
|
+
</ProductCardStyle>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Slider as MuiSlider } from '@mui/material';
|
|
2
|
+
import { Box, Slider as MuiSlider, Typography } from '@mui/material';
|
|
3
3
|
import { palette } from '../helpers';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import { ColorVariant } from '@/types';
|
|
@@ -60,6 +60,62 @@ const RangerSliderStyled = styled(MuiSlider)(() => ({
|
|
|
60
60
|
},
|
|
61
61
|
}));
|
|
62
62
|
|
|
63
|
-
export const RangerSlider = ({
|
|
64
|
-
|
|
63
|
+
export const RangerSlider = ({
|
|
64
|
+
value,
|
|
65
|
+
defaultValue,
|
|
66
|
+
color = 'primary',
|
|
67
|
+
showValueInline = false,
|
|
68
|
+
min = 0,
|
|
69
|
+
max = 100,
|
|
70
|
+
valueLabelFormat,
|
|
71
|
+
...props
|
|
72
|
+
}: RangerSliderBaseProps) => {
|
|
73
|
+
const [currentValue, setCurrentValue] = React.useState<number | number[]>(
|
|
74
|
+
value ?? defaultValue ?? (Array.isArray(defaultValue) ? [min, max] : min),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
const handleChange = (event: Event, newValue: number | number[]) => {
|
|
78
|
+
setCurrentValue(newValue);
|
|
79
|
+
props.onChange?.(event, newValue, Array.isArray(newValue) ? 1 : 0);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
React.useEffect(() => {
|
|
83
|
+
value !== undefined && setCurrentValue(value);
|
|
84
|
+
}, [value]);
|
|
85
|
+
|
|
86
|
+
const formatValue = (val: number | number[]) =>
|
|
87
|
+
Array.isArray(val)
|
|
88
|
+
? val[0] === val[1]
|
|
89
|
+
? valueLabelFormat && typeof valueLabelFormat === 'function'
|
|
90
|
+
? valueLabelFormat(val[0], 0)
|
|
91
|
+
: val[0]
|
|
92
|
+
: `${valueLabelFormat && typeof valueLabelFormat === 'function' ? valueLabelFormat(val[0], 0) : val[0]} - ${
|
|
93
|
+
valueLabelFormat && typeof valueLabelFormat === 'function' ? valueLabelFormat(val[1], 1) : val[1]
|
|
94
|
+
}`
|
|
95
|
+
: valueLabelFormat && typeof valueLabelFormat === 'function'
|
|
96
|
+
? valueLabelFormat(val, 0)
|
|
97
|
+
: val;
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<Box sx={{ width: '100%' }}>
|
|
101
|
+
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
|
102
|
+
<Typography gutterBottom>{props.label}</Typography>
|
|
103
|
+
{showValueInline && (
|
|
104
|
+
<Typography style={{ display: 'flex', alignItems: 'center', fontSize: 12 }}>
|
|
105
|
+
{formatValue(currentValue)}
|
|
106
|
+
</Typography>
|
|
107
|
+
)}
|
|
108
|
+
</div>
|
|
109
|
+
<RangerSliderStyled
|
|
110
|
+
value={currentValue}
|
|
111
|
+
defaultValue={undefined}
|
|
112
|
+
min={min}
|
|
113
|
+
max={max}
|
|
114
|
+
color={color}
|
|
115
|
+
onChange={handleChange}
|
|
116
|
+
valueLabelFormat={valueLabelFormat}
|
|
117
|
+
{...props}
|
|
118
|
+
/>
|
|
119
|
+
</Box>
|
|
120
|
+
);
|
|
65
121
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { pxToRem } from "../../utils/pxToRem";
|
|
3
|
+
|
|
4
|
+
export const ServiceCardStyle = styled.div<{ disabled?: boolean, $bColor?: string }>`
|
|
5
|
+
max-width: 380px;
|
|
6
|
+
min-width: 380px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
cursor: ${(props) => (props.disabled ? "not-allowed" : "pointer")};
|
|
9
|
+
opacity: ${(props) => (props.disabled ? 0.5 : 1)};
|
|
10
|
+
height: 100%;
|
|
11
|
+
border-left: 7px solid ${(props) => props.$bColor};
|
|
12
|
+
border-radius: 5px;
|
|
13
|
+
|
|
14
|
+
p.description, p.title {
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 1330px) {
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export const IconCardStyle = styled.div<{ $bColor?: string; $iColor: string }>`
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 10px;
|
|
27
|
+
background-color: ${(props) => props.$bColor};
|
|
28
|
+
min-width: ${pxToRem(50)};
|
|
29
|
+
min-height: ${pxToRem(50)};
|
|
30
|
+
margin-right: ${pxToRem(10)};
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
max-height: 24px;
|
|
35
|
+
|
|
36
|
+
path.stroke {
|
|
37
|
+
stroke: ${(props) => props.$iColor};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
path.fill {
|
|
41
|
+
fill: ${(props) => props.$iColor};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
export const TitleContainer = styled.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
|
|
49
|
+
p.title {
|
|
50
|
+
font-size: ${pxToRem(18)};
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ServiceCardProps } from "../../interfaces/ServiceCard";
|
|
3
|
+
import { IconCardStyle, ServiceCardStyle, TitleContainer } from "./ServiceCard.style";
|
|
4
|
+
import { Card } from "../Card";
|
|
5
|
+
import { IconifyIcon } from "../IconifyIcon";
|
|
6
|
+
|
|
7
|
+
export const ServiceCard: React.FC<ServiceCardProps> = ({iconName, onClick, disabled = false, color, iconColor, description, title }) => {
|
|
8
|
+
return (
|
|
9
|
+
<ServiceCardStyle disabled={disabled} $bColor={iconColor}>
|
|
10
|
+
<Card
|
|
11
|
+
border={true}
|
|
12
|
+
variant="outlined"
|
|
13
|
+
onClick={() => {
|
|
14
|
+
if (disabled) return;
|
|
15
|
+
onClick && onClick();
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
<TitleContainer>
|
|
19
|
+
<IconCardStyle $iColor={iconColor || ""} $bColor={color || ""}>
|
|
20
|
+
<IconifyIcon iconName={iconName || ""} color={iconColor} size="100%"/>
|
|
21
|
+
</IconCardStyle>
|
|
22
|
+
<div className="text">
|
|
23
|
+
<p className="title">{title}</p>
|
|
24
|
+
<p className="description">{description}</p>
|
|
25
|
+
</div>
|
|
26
|
+
</TitleContainer>
|
|
27
|
+
</Card>
|
|
28
|
+
</ServiceCardStyle>
|
|
29
|
+
);
|
|
30
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -12,10 +12,12 @@ export * from './IconButton';
|
|
|
12
12
|
export * from './Icons';
|
|
13
13
|
export * from './Modal';
|
|
14
14
|
export * from './Paper';
|
|
15
|
+
export * from './ProductCard/ProductCard';
|
|
15
16
|
export * from './ProgressBar';
|
|
16
17
|
export * from './RadioGroup';
|
|
17
18
|
export * from './RangerSlider';
|
|
18
19
|
export * from './Select';
|
|
20
|
+
export * from './ServiceCard/ServiceCard';
|
|
19
21
|
export * from './Tabs';
|
|
20
22
|
export * from './Tag';
|
|
21
23
|
export * from './Table';
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { Tabs } from './components/Tabs';
|
|
|
14
14
|
import { Tag } from './components/Tag';
|
|
15
15
|
import { TextField } from './components/TextField';
|
|
16
16
|
import { DatePicker } from './components/DatePicker';
|
|
17
|
-
import { ChatMessage, ChatMessageBalloon } from './components';
|
|
17
|
+
import { ChatMessage, ChatMessageBalloon, ProductCard, ServiceCard } from './components';
|
|
18
18
|
import { NormaProvider } from './providers/NormaProvider';
|
|
19
19
|
import { themes, getPalette } from './helpers';
|
|
20
20
|
import DateInput from './components/DateInput';
|
|
@@ -47,6 +47,7 @@ export {
|
|
|
47
47
|
Modal,
|
|
48
48
|
Paper,
|
|
49
49
|
ProgressBar,
|
|
50
|
+
ProductCard,
|
|
50
51
|
RadioGroup,
|
|
51
52
|
RangerSlider,
|
|
52
53
|
Select,
|
|
@@ -59,6 +60,7 @@ export {
|
|
|
59
60
|
Box,
|
|
60
61
|
Breadcrumb,
|
|
61
62
|
SelectInput,
|
|
63
|
+
ServiceCard,
|
|
62
64
|
MultiSelectInput,
|
|
63
65
|
Text,
|
|
64
66
|
Title,
|
package/src/interfaces/Modal.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
export interface ProductCardProps {
|
|
4
|
+
// product?: string
|
|
5
|
+
onClick?: () => void
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
color: string
|
|
8
|
+
iconColor: string
|
|
9
|
+
iconName: string
|
|
10
|
+
title: string
|
|
11
|
+
description: string
|
|
12
|
+
hasBorder?: boolean
|
|
13
|
+
flaggable?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export interface BgIconProps {
|
|
18
|
+
$bColor: string
|
|
19
|
+
children?: ReactNode
|
|
20
|
+
className?: string
|
|
21
|
+
color: string
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -18,4 +18,7 @@ export interface RangerSliderBaseProps extends MuiRangerSliderBaseProps {
|
|
|
18
18
|
defaultValue?: number | number[];
|
|
19
19
|
valueLabelDisplay?: 'on' | 'auto' | 'off';
|
|
20
20
|
color?: OverridableStringUnion<'primary' | 'secondary', SliderPropsColorOverrides>;
|
|
21
|
+
label?: string;
|
|
22
|
+
showValueInline?: boolean;
|
|
23
|
+
valueLabelFormat?: string | ((value: number, index: number) => React.ReactNode);
|
|
21
24
|
}
|