norma-library 0.4.3 → 0.4.6
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/.babelrc.json +18 -0
- package/buildcache/front-end +1 -0
- package/dist/esm/components/Accordion.d.ts +3 -0
- package/dist/esm/components/Accordion.js +24 -0
- package/dist/esm/components/Accordion.js.map +1 -0
- package/dist/esm/components/Button.d.ts +3 -0
- package/dist/esm/components/Button.js +22 -0
- package/dist/esm/components/Button.js.map +1 -0
- package/dist/esm/components/Card.d.ts +7 -0
- package/dist/esm/components/Card.js +31 -0
- package/dist/esm/components/Card.js.map +1 -0
- package/dist/esm/components/CheckBox.d.ts +3 -0
- package/dist/esm/components/CheckBox.js +13 -0
- package/dist/esm/components/CheckBox.js.map +1 -0
- package/dist/esm/components/DropDown.d.ts +3 -0
- package/dist/esm/components/DropDown.js +17 -0
- package/dist/esm/components/DropDown.js.map +1 -0
- package/dist/esm/components/IconButton.d.ts +3 -0
- package/dist/esm/components/IconButton.js +31 -0
- package/dist/esm/components/IconButton.js.map +1 -0
- package/dist/esm/components/Icons.d.ts +7 -0
- package/dist/esm/components/Icons.js +49 -0
- package/dist/esm/components/Icons.js.map +1 -0
- package/dist/esm/components/Modal.d.ts +4 -0
- package/dist/esm/components/Modal.js +32 -0
- package/dist/esm/components/Modal.js.map +1 -0
- package/dist/esm/components/Paper.d.ts +3 -0
- package/dist/esm/components/Paper.js +14 -0
- package/dist/esm/components/Paper.js.map +1 -0
- package/dist/esm/components/ProgressBar.d.ts +6 -0
- package/dist/esm/components/ProgressBar.js +31 -0
- package/dist/esm/components/ProgressBar.js.map +1 -0
- package/dist/esm/components/RadioGroup.d.ts +3 -0
- package/dist/esm/components/RadioGroup.js +18 -0
- package/dist/esm/components/RadioGroup.js.map +1 -0
- package/dist/esm/components/RangerSlider.d.ts +3 -0
- package/dist/esm/components/RangerSlider.js +64 -0
- package/dist/esm/components/RangerSlider.js.map +1 -0
- package/dist/esm/components/Select.d.ts +3 -0
- package/dist/esm/components/Select.js +45 -0
- package/dist/esm/components/Select.js.map +1 -0
- package/dist/{components/icon/norma.d.ts → esm/components/Svgs.d.ts} +29 -30
- package/dist/esm/components/Svgs.js +102 -0
- package/dist/esm/components/Svgs.js.map +1 -0
- package/dist/esm/components/Tabs.d.ts +3 -0
- package/dist/esm/components/Tabs.js +78 -0
- package/dist/esm/components/Tabs.js.map +1 -0
- package/dist/esm/components/Tag.d.ts +3 -0
- package/dist/esm/components/Tag.js +27 -0
- package/dist/esm/components/Tag.js.map +1 -0
- package/dist/esm/components/TextField.d.ts +3 -0
- package/dist/esm/components/TextField.js +18 -0
- package/dist/esm/components/TextField.js.map +1 -0
- package/dist/esm/components/index.d.ts +16 -0
- package/dist/esm/components/index.js +17 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/helpers/alignments.d.ts +2 -0
- package/dist/esm/helpers/alignments.js +14 -0
- package/dist/esm/helpers/alignments.js.map +1 -0
- package/dist/esm/helpers/borders.d.ts +2 -0
- package/dist/esm/helpers/borders.js +18 -0
- package/dist/esm/helpers/borders.js.map +1 -0
- package/dist/{helpers → esm/helpers}/colors.d.ts +172 -174
- package/dist/esm/helpers/colors.js +156 -0
- package/dist/esm/helpers/colors.js.map +1 -0
- package/dist/esm/helpers/index.d.ts +5 -0
- package/dist/esm/helpers/index.js +6 -0
- package/dist/esm/helpers/index.js.map +1 -0
- package/dist/esm/helpers/radios.d.ts +2 -0
- package/dist/esm/helpers/radios.js +24 -0
- package/dist/esm/helpers/radios.js.map +1 -0
- package/dist/esm/helpers/sizes.d.ts +11 -0
- package/dist/esm/helpers/sizes.js +67 -0
- package/dist/esm/helpers/sizes.js.map +1 -0
- package/dist/esm/index.d.ts +17 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces/Accordion.d.ts +12 -0
- package/dist/esm/interfaces/Accordion.js +2 -0
- package/dist/esm/interfaces/Accordion.js.map +1 -0
- package/dist/esm/interfaces/Button.d.ts +14 -0
- package/dist/esm/interfaces/Button.js +2 -0
- package/dist/esm/interfaces/Button.js.map +1 -0
- package/dist/esm/interfaces/Card.d.ts +11 -0
- package/dist/esm/interfaces/Card.js +2 -0
- package/dist/esm/interfaces/Card.js.map +1 -0
- package/dist/esm/interfaces/CheckBox.d.ts +19 -0
- package/dist/esm/interfaces/CheckBox.js +2 -0
- package/dist/esm/interfaces/CheckBox.js.map +1 -0
- package/dist/esm/interfaces/DropDown.d.ts +11 -0
- package/dist/esm/interfaces/DropDown.js +2 -0
- package/dist/esm/interfaces/DropDown.js.map +1 -0
- package/dist/esm/interfaces/IconButton.d.ts +14 -0
- package/dist/esm/interfaces/IconButton.js +2 -0
- package/dist/esm/interfaces/IconButton.js.map +1 -0
- package/dist/esm/interfaces/Icons.d.ts +15 -0
- package/dist/esm/interfaces/Icons.js +2 -0
- package/dist/esm/interfaces/Icons.js.map +1 -0
- package/dist/esm/interfaces/Modal.d.ts +15 -0
- package/dist/esm/interfaces/Modal.js +2 -0
- package/dist/esm/interfaces/Modal.js.map +1 -0
- package/dist/esm/interfaces/Paper.d.ts +12 -0
- package/dist/esm/interfaces/Paper.js +2 -0
- package/dist/esm/interfaces/Paper.js.map +1 -0
- package/dist/esm/interfaces/ProgressBar.d.ts +17 -0
- package/dist/esm/interfaces/ProgressBar.js +2 -0
- package/dist/esm/interfaces/ProgressBar.js.map +1 -0
- package/dist/esm/interfaces/RadioGroup.d.ts +15 -0
- package/dist/esm/interfaces/RadioGroup.js +2 -0
- package/dist/esm/interfaces/RadioGroup.js.map +1 -0
- package/dist/esm/interfaces/RangerSlider.d.ts +18 -0
- package/dist/esm/interfaces/RangerSlider.js +2 -0
- package/dist/esm/interfaces/RangerSlider.js.map +1 -0
- package/dist/esm/interfaces/Select.d.ts +17 -0
- package/dist/esm/interfaces/Select.js +2 -0
- package/dist/esm/interfaces/Select.js.map +1 -0
- package/dist/esm/interfaces/Tabs.d.ts +18 -0
- package/dist/esm/interfaces/Tabs.js +2 -0
- package/dist/esm/interfaces/Tabs.js.map +1 -0
- package/dist/esm/interfaces/Tag.d.ts +18 -0
- package/dist/esm/interfaces/Tag.js +2 -0
- package/dist/esm/interfaces/Tag.js.map +1 -0
- package/dist/esm/interfaces/TextField.d.ts +40 -0
- package/dist/esm/interfaces/TextField.js +2 -0
- package/dist/esm/interfaces/TextField.js.map +1 -0
- package/dist/esm/interfaces/index.d.ts +17 -0
- package/dist/esm/interfaces/index.js +18 -0
- package/dist/esm/interfaces/index.js.map +1 -0
- package/dist/esm/types/index.d.ts +78 -0
- package/dist/esm/types/index.js +10 -0
- package/dist/esm/types/index.js.map +1 -0
- package/norma-library.tar +0 -0
- package/package.json +75 -90
- package/postcss.config.js +6 -0
- package/src/components/Accordion.tsx +64 -0
- package/src/components/Button.tsx +38 -0
- package/src/components/Card.tsx +47 -0
- package/src/components/CheckBox.tsx +35 -0
- package/src/components/DropDown.tsx +38 -0
- package/src/components/IconButton.tsx +58 -0
- package/src/components/Icons.tsx +87 -0
- package/src/components/Modal.tsx +123 -0
- package/src/components/Paper.tsx +22 -0
- package/src/components/ProgressBar.tsx +62 -0
- package/src/components/RadioGroup.tsx +55 -0
- package/src/components/RangerSlider.tsx +81 -0
- package/src/components/Select.tsx +98 -0
- package/src/components/{icon/norma.tsx → Svgs.tsx} +54 -55
- package/src/components/Tabs.tsx +140 -0
- package/src/components/Tag.tsx +45 -0
- package/src/components/TextField.tsx +35 -0
- package/src/components/index.ts +16 -8
- package/src/helpers/alignments.ts +14 -0
- package/src/helpers/borders.ts +18 -0
- package/src/helpers/colors.ts +173 -209
- package/src/helpers/index.ts +5 -3
- package/src/helpers/radios.ts +24 -0
- package/src/helpers/sizes.ts +79 -26
- package/src/index.css +2 -0
- package/src/index.ts +36 -0
- package/src/interfaces/Accordion.ts +12 -0
- package/src/interfaces/Button.ts +27 -0
- package/src/interfaces/Card.ts +11 -0
- package/src/interfaces/CheckBox.ts +33 -0
- package/src/interfaces/DropDown.ts +14 -0
- package/src/interfaces/IconButton.ts +27 -0
- package/src/interfaces/Icons.ts +17 -0
- package/src/interfaces/Modal.ts +15 -0
- package/src/interfaces/Paper.ts +12 -0
- package/src/interfaces/ProgressBar.ts +25 -0
- package/src/interfaces/RadioGroup.ts +28 -0
- package/src/interfaces/RangerSlider.ts +32 -0
- package/src/interfaces/Select.ts +17 -0
- package/src/interfaces/Tabs.ts +24 -0
- package/src/interfaces/Tag.ts +17 -0
- package/src/interfaces/TextField.ts +63 -0
- package/src/interfaces/index.ts +17 -0
- package/src/stories/Accordion.stories.tsx +65 -0
- package/src/stories/Button.stories.tsx +99 -0
- package/src/stories/Card.stories.tsx +55 -0
- package/src/stories/CheckBox.stories.tsx +94 -0
- package/src/stories/Colors.stories.mdx +127 -0
- package/src/stories/DropDown.stories.tsx +57 -0
- package/src/stories/IconButton.stories.tsx +114 -0
- package/src/stories/Icons.stories.mdx +27 -0
- package/src/stories/Modal.stories.tsx +190 -0
- package/src/stories/Paper.stories.tsx +53 -0
- package/src/stories/ProgressBar.stories.tsx +139 -0
- package/src/stories/RadioGroup.stories.tsx +94 -0
- package/src/stories/RangerSlider.stories.tsx +68 -0
- package/src/stories/Select.stories.tsx +128 -0
- package/src/stories/Tabs.stories.tsx +62 -0
- package/src/stories/Tag.stories.tsx +76 -0
- package/src/{components/textfield/textfield.stories.tsx → stories/TextField.stories.tsx} +445 -376
- package/src/styles/custom.css +5 -0
- package/src/styles/globals.css +21 -0
- package/src/types/index.ts +220 -0
- package/tailwind.config.js +58 -0
- package/tsconfig.json +32 -0
- package/README.md +0 -160
- package/dist/components/button/button.d.ts +0 -3
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/button/types.d.ts +0 -18
- package/dist/components/card/card-header.d.ts +0 -3
- package/dist/components/card/card.d.ts +0 -3
- package/dist/components/card/index.d.ts +0 -1
- package/dist/components/card/styles.d.ts +0 -811
- package/dist/components/card/types.d.ts +0 -12
- package/dist/components/checkbox/checkbox.d.ts +0 -3
- package/dist/components/checkbox/index.d.ts +0 -1
- package/dist/components/checkbox/types.d.ts +0 -23
- package/dist/components/icon/default.d.ts +0 -210
- package/dist/components/icon/defaultIcon.d.ts +0 -5
- package/dist/components/icon/icons-ia.d.ts +0 -71
- package/dist/components/icon/index.d.ts +0 -234
- package/dist/components/icon/normaIcon.d.ts +0 -13
- package/dist/components/icon/styles.d.ts +0 -481
- package/dist/components/icon/svg.d.ts +0 -6
- package/dist/components/icon/types.d.ts +0 -12
- package/dist/components/index.d.ts +0 -8
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/modal.d.ts +0 -3
- package/dist/components/modal/modalFooter.d.ts +0 -3
- package/dist/components/modal/modalHeader.d.ts +0 -3
- package/dist/components/modal/styles.d.ts +0 -540
- package/dist/components/modal/types.d.ts +0 -27
- package/dist/components/progress-bar/index.d.ts +0 -1
- package/dist/components/progress-bar/progress-bar.d.ts +0 -7
- package/dist/components/progress-bar/styles.d.ts +0 -272
- package/dist/components/progress-bar/types.d.ts +0 -22
- package/dist/components/radio/index.d.ts +0 -1
- package/dist/components/radio/radio.d.ts +0 -3
- package/dist/components/radio/types.d.ts +0 -16
- package/dist/components/tag/index.d.ts +0 -1
- package/dist/components/tag/tag.d.ts +0 -3
- package/dist/components/tag/types.d.ts +0 -25
- package/dist/components/textfield/index.d.ts +0 -1
- package/dist/components/textfield/textfield.d.ts +0 -3
- package/dist/components/textfield/types.d.ts +0 -42
- package/dist/helpers/clients.d.ts +0 -5
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/sizes.d.ts +0 -6
- package/dist/helpers/variants.d.ts +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -8
- package/dist/norma-library.cjs.development.js +0 -1286
- package/dist/norma-library.cjs.development.js.map +0 -1
- package/dist/norma-library.cjs.production.min.js +0 -2
- package/dist/norma-library.cjs.production.min.js.map +0 -1
- package/dist/norma-library.esm.js +0 -1274
- package/dist/norma-library.esm.js.map +0 -1
- package/src/components/button/button.stories.tsx +0 -44
- package/src/components/button/button.tsx +0 -18
- package/src/components/button/index.ts +0 -1
- package/src/components/button/types.ts +0 -48
- package/src/components/card/card-header.tsx +0 -8
- package/src/components/card/card.stories.tsx +0 -28
- package/src/components/card/card.tsx +0 -13
- package/src/components/card/index.ts +0 -1
- package/src/components/card/styles.tsx +0 -29
- package/src/components/card/types.ts +0 -14
- package/src/components/checkbox/checkbox.stories.tsx +0 -66
- package/src/components/checkbox/checkbox.tsx +0 -13
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/checkbox/types.ts +0 -30
- package/src/components/icon/default.tsx +0 -1459
- package/src/components/icon/defaultIcon.tsx +0 -82
- package/src/components/icon/icon.stories.tsx +0 -44
- package/src/components/icon/icons-ia.tsx +0 -107
- package/src/components/icon/index.ts +0 -11
- package/src/components/icon/normaIcon.tsx +0 -94
- package/src/components/icon/styles.ts +0 -11
- package/src/components/icon/svg.tsx +0 -24
- package/src/components/icon/types.ts +0 -14
- package/src/components/modal/index.ts +0 -1
- package/src/components/modal/modal.stories.tsx +0 -55
- package/src/components/modal/modal.tsx +0 -42
- package/src/components/modal/modalFooter.tsx +0 -32
- package/src/components/modal/modalHeader.tsx +0 -46
- package/src/components/modal/styles.tsx +0 -13
- package/src/components/modal/types.ts +0 -47
- package/src/components/progress-bar/index.ts +0 -1
- package/src/components/progress-bar/progress-bar.stories.tsx +0 -68
- package/src/components/progress-bar/progress-bar.tsx +0 -38
- package/src/components/progress-bar/styles.tsx +0 -27
- package/src/components/progress-bar/types.ts +0 -35
- package/src/components/radio/index.ts +0 -1
- package/src/components/radio/radio.stories.tsx +0 -150
- package/src/components/radio/radio.tsx +0 -13
- package/src/components/radio/types.ts +0 -27
- package/src/components/tag/index.ts +0 -1
- package/src/components/tag/tag.stories.tsx +0 -80
- package/src/components/tag/tag.tsx +0 -13
- package/src/components/tag/types.ts +0 -47
- package/src/components/textfield/index.ts +0 -1
- package/src/components/textfield/textfield.tsx +0 -23
- package/src/components/textfield/types.ts +0 -93
- package/src/helpers/clients.ts +0 -6
- package/src/helpers/variants.ts +0 -3
- package/src/index.tsx +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Accordion } from "./components/Accordion";
|
|
2
|
+
import { Button } from "./components/Button";
|
|
3
|
+
import { Card } from "./components/Card";
|
|
4
|
+
import { CheckBox } from "./components/CheckBox";
|
|
5
|
+
import { IconButton } from "./components/IconButton";
|
|
6
|
+
import { Icons } from "./components/Icons";
|
|
7
|
+
import { Modal } from "./components/Modal";
|
|
8
|
+
import { Paper } from "./components/Paper";
|
|
9
|
+
import { ProgressBar } from "./components/ProgressBar";
|
|
10
|
+
import { RadioGroup } from "./components/RadioGroup";
|
|
11
|
+
import { RangerSlider } from "./components/RangerSlider";
|
|
12
|
+
import { Select } from "./components/Select";
|
|
13
|
+
import { Tabs } from "./components/Tabs";
|
|
14
|
+
import { Tag } from "./components/Tag";
|
|
15
|
+
import { TextField } from "./components/TextField";
|
|
16
|
+
import { themes, getPalette } from "./helpers";
|
|
17
|
+
export { Accordion, Button, Card, CheckBox, getPalette, IconButton, Icons, Modal, Paper, ProgressBar, RadioGroup, RangerSlider, Select, Tabs, Tag, TextField, themes, };
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACT,MAAM,GACP,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { DataAccordion, MuiAccordionBaseProps } from "../types";
|
|
5
|
+
export interface AccordionBaseProps extends MuiAccordionBaseProps {
|
|
6
|
+
label?: React.ReactNode | String;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
|
|
9
|
+
defaultExpanded?: boolean | string;
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
data?: DataAccordion[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/interfaces/Accordion.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Theme } from "@emotion/react";
|
|
3
|
+
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, SxProps } from "@mui/material";
|
|
4
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
5
|
+
import { ColorVariant, ButtonVariant, SizeVariant, MuiButtonBaseProps } from "../types";
|
|
6
|
+
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
color?: OverridableStringUnion<ColorVariant, ButtonPropsColorOverrides>;
|
|
12
|
+
size?: OverridableStringUnion<SizeVariant, ButtonPropsSizeOverrides>;
|
|
13
|
+
variant?: OverridableStringUnion<ButtonVariant, ButtonPropsVariantOverrides>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/interfaces/Button.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { ColorVariant, MuiCardBaseProps } from "../types";
|
|
5
|
+
export interface CardBaseProps extends MuiCardBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
raised?: boolean;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
color?: ColorVariant;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/interfaces/Card.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
2
|
+
import { Checkbox, SxProps, Theme } from "@mui/material";
|
|
3
|
+
import { SwitchBaseProps } from "@mui/material/internal/SwitchBase";
|
|
4
|
+
import { CheckBoxColorVariant, CheckboxPropsColorOverrides, CheckboxPropsSizeOverrides, MuiCheckBoxBaseProps, TextFieldSizeVariant } from "../types";
|
|
5
|
+
export interface CheckBoxBaseProps extends MuiCheckBoxBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
name?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
checked?: SwitchBaseProps["checked"];
|
|
10
|
+
color?: OverridableStringUnion<CheckBoxColorVariant, CheckboxPropsColorOverrides>;
|
|
11
|
+
disabled?: SwitchBaseProps["disabled"];
|
|
12
|
+
id?: SwitchBaseProps["id"];
|
|
13
|
+
onChange?: SwitchBaseProps["onChange"];
|
|
14
|
+
required?: SwitchBaseProps["required"];
|
|
15
|
+
size?: OverridableStringUnion<TextFieldSizeVariant, CheckboxPropsSizeOverrides>;
|
|
16
|
+
value?: SwitchBaseProps["value"];
|
|
17
|
+
defaultChecked?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type CheckboxType = keyof typeof Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckBox.js","sourceRoot":"","sources":["../../../src/interfaces/CheckBox.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Theme } from "@emotion/react";
|
|
3
|
+
import { SxProps } from "@mui/material";
|
|
4
|
+
import { DropVariant, MuiDropDownBaseProps } from "../types";
|
|
5
|
+
export interface DropDownBaseProps extends MuiDropDownBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose?: React.ReactEventHandler<{}>;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
variant?: DropVariant;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropDown.js","sourceRoot":"","sources":["../../../src/interfaces/DropDown.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Theme } from "@emotion/react";
|
|
3
|
+
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, SxProps } from "@mui/material";
|
|
4
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
5
|
+
import { ColorVariant, ButtonVariant, SizeVariant, MuiIconButtonBaseProps } from "../types";
|
|
6
|
+
export interface IconButtonBaseProps extends MuiIconButtonBaseProps {
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
circle?: boolean;
|
|
10
|
+
cursor?: string;
|
|
11
|
+
color?: OverridableStringUnion<ColorVariant, ButtonPropsColorOverrides>;
|
|
12
|
+
size?: OverridableStringUnion<SizeVariant, ButtonPropsSizeOverrides>;
|
|
13
|
+
variant?: OverridableStringUnion<ButtonVariant, ButtonPropsVariantOverrides>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/interfaces/IconButton.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { IconScale, IconColors, IconType } from "../types";
|
|
3
|
+
import { Svg } from "../components/Icons";
|
|
4
|
+
export interface IconsProps extends ComponentProps<typeof Svg> {
|
|
5
|
+
useSymbol?: boolean;
|
|
6
|
+
scale?: IconScale;
|
|
7
|
+
color?: IconColors;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
fill?: string;
|
|
11
|
+
icon: IconType;
|
|
12
|
+
}
|
|
13
|
+
export interface SvgProps {
|
|
14
|
+
inline?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../src/interfaces/Icons.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { MuiModalBaseProps, OnAction } from "@/types";
|
|
5
|
+
export interface ModalBaseProps extends MuiModalBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
open: boolean;
|
|
9
|
+
onClose?: React.ReactEventHandler<{}>;
|
|
10
|
+
action?: OnAction[];
|
|
11
|
+
className?: string;
|
|
12
|
+
full?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/interfaces/Modal.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaperPropsVariantOverrides, SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { MuiPaperBaseProps, PaperVariant } from "../types";
|
|
5
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
6
|
+
export interface PaperBaseProps extends MuiPaperBaseProps {
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
elevation?: number;
|
|
9
|
+
square?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
variant?: OverridableStringUnion<PaperVariant, PaperPropsVariantOverrides>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paper.js","sourceRoot":"","sources":["../../../src/interfaces/Paper.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SxProps } from "@mui/material";
|
|
2
|
+
import { Theme } from "@emotion/react";
|
|
3
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
4
|
+
import { ColorVariant, MuiProgressBarBaseProps, ProgressVariant } from "../types";
|
|
5
|
+
import { ProgressBar } from "..";
|
|
6
|
+
export interface LinearProgressPropsColorOverrides {
|
|
7
|
+
}
|
|
8
|
+
export interface ProgressBarBaseProps extends MuiProgressBarBaseProps {
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
value?: number;
|
|
11
|
+
total?: number;
|
|
12
|
+
label?: string;
|
|
13
|
+
colorCustom?: string;
|
|
14
|
+
variant?: ProgressVariant;
|
|
15
|
+
color?: OverridableStringUnion<ColorVariant, LinearProgressPropsColorOverrides>;
|
|
16
|
+
}
|
|
17
|
+
export type ProgressBarType = keyof typeof ProgressBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../src/interfaces/ProgressBar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { CheckBoxColorVariant, DirectionVariant, MuiRadioBaseProps, OptionsRadios, TextFieldSizeVariant } from "../types";
|
|
3
|
+
import { CheckboxPropsColorOverrides, RadioPropsSizeOverrides } from "@mui/material";
|
|
4
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
5
|
+
export interface RadioBaseProps extends MuiRadioBaseProps {
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
options?: OptionsRadios[];
|
|
9
|
+
required?: boolean;
|
|
10
|
+
direction?: DirectionVariant;
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
size?: OverridableStringUnion<TextFieldSizeVariant, RadioPropsSizeOverrides>;
|
|
13
|
+
color?: OverridableStringUnion<CheckBoxColorVariant, CheckboxPropsColorOverrides>;
|
|
14
|
+
checked?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../src/interfaces/RadioGroup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Theme } from "@emotion/react";
|
|
2
|
+
import { SliderPropsColorOverrides, SliderPropsSizeOverrides, SxProps } from "@mui/material";
|
|
3
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
4
|
+
import { MuiRangerSliderBaseProps } from "../types";
|
|
5
|
+
export interface RangerSliderBaseProps extends MuiRangerSliderBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
max?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
mode?: Boolean;
|
|
11
|
+
onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
|
|
12
|
+
orientation?: "horizontal" | "vertical";
|
|
13
|
+
size?: OverridableStringUnion<"small" | "medium", SliderPropsSizeOverrides>;
|
|
14
|
+
step?: number | null;
|
|
15
|
+
defaultValue?: number | number[];
|
|
16
|
+
valueLabelDisplay?: "on" | "auto" | "off";
|
|
17
|
+
color?: OverridableStringUnion<"primary" | "secondary", SliderPropsColorOverrides>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangerSlider.js","sourceRoot":"","sources":["../../../src/interfaces/RangerSlider.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { DataSelect, MuiSelectBaseProps, TextFieldVariant } from "../types";
|
|
5
|
+
export interface SelectBaseProps extends MuiSelectBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
id?: string;
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
input?: React.ReactElement<any, any>;
|
|
10
|
+
variant?: TextFieldVariant;
|
|
11
|
+
value?: string;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
onOpen?: (event: React.SyntheticEvent) => void;
|
|
14
|
+
onClose?: (event: React.SyntheticEvent) => void;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
data?: DataSelect[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/interfaces/Select.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { ColorVariant, DataTabs, MuiTabsBaseProps, TabsVariant } from "../types";
|
|
5
|
+
export interface TabsBaseProps extends MuiTabsBaseProps {
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onChange?: (event: React.SyntheticEvent, value: any) => void;
|
|
9
|
+
color?: ColorVariant;
|
|
10
|
+
variant?: TabsVariant;
|
|
11
|
+
value?: any;
|
|
12
|
+
data?: DataTabs[];
|
|
13
|
+
}
|
|
14
|
+
export interface TabPanelProps {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
index: number;
|
|
17
|
+
value: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/interfaces/Tabs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
import { Theme } from "@emotion/react";
|
|
4
|
+
import { ColorVariant, MuiTagBaseProps } from "../types";
|
|
5
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
6
|
+
export interface ChipPropsColorOverrides {
|
|
7
|
+
}
|
|
8
|
+
export interface ChipPropsSizeOverrides {
|
|
9
|
+
}
|
|
10
|
+
export interface TagBaseProps extends MuiTagBaseProps {
|
|
11
|
+
label?: React.ReactNode | String;
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
avatar?: React.ReactElement;
|
|
14
|
+
outlined?: Boolean;
|
|
15
|
+
size?: OverridableStringUnion<"small" | "medium", ChipPropsSizeOverrides>;
|
|
16
|
+
color?: OverridableStringUnion<ColorVariant, ChipPropsColorOverrides>;
|
|
17
|
+
onClose?: React.ReactEventHandler<{}>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/interfaces/Tag.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { TextFieldPropsColorOverrides, TextFieldPropsSizeOverrides } from "@mui/material/TextField";
|
|
3
|
+
import { FormHelperTextProps, InputBaseProps, InputLabelProps, OutlinedInputProps, SelectProps } from "@mui/material";
|
|
4
|
+
import { InputProps as StandardInputProps } from "@mui/material/Input";
|
|
5
|
+
import { OverridableStringUnion } from "@mui/types";
|
|
6
|
+
import { TextField } from "@mui/material";
|
|
7
|
+
import { TextFieldColorVariant, MuiTextFieldBaseProps, TextFieldSizeVariant, TextFieldVariant } from "../types";
|
|
8
|
+
export interface TextFieldBaseProps extends MuiTextFieldBaseProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
type?: React.InputHTMLAttributes<unknown>["type"];
|
|
15
|
+
hasError?: boolean;
|
|
16
|
+
label?: ReactNode;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
variant?: TextFieldVariant;
|
|
20
|
+
helperText?: React.ReactNode;
|
|
21
|
+
InputLabelProps?: Partial<InputLabelProps>;
|
|
22
|
+
InputProps?: Partial<OutlinedInputProps>;
|
|
23
|
+
autoComplete?: string;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
multiline?: boolean;
|
|
26
|
+
rows?: string | number;
|
|
27
|
+
maxRows?: string | number;
|
|
28
|
+
minRows?: string | number;
|
|
29
|
+
select?: boolean;
|
|
30
|
+
SelectProps?: Partial<SelectProps>;
|
|
31
|
+
onChange?: OutlinedInputProps["onChange"];
|
|
32
|
+
onClick?: InputBaseProps["onClick"];
|
|
33
|
+
onBlur?: InputBaseProps["onBlur"];
|
|
34
|
+
onFocus?: StandardInputProps["onFocus"];
|
|
35
|
+
size?: OverridableStringUnion<TextFieldSizeVariant, TextFieldPropsSizeOverrides>;
|
|
36
|
+
FormHelperTextProps?: Partial<FormHelperTextProps>;
|
|
37
|
+
color?: OverridableStringUnion<TextFieldColorVariant, TextFieldPropsColorOverrides>;
|
|
38
|
+
value?: unknown;
|
|
39
|
+
}
|
|
40
|
+
export type TextFieldType = keyof typeof TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../src/interfaces/TextField.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./Accordion";
|
|
2
|
+
export * from "./Button";
|
|
3
|
+
export * from "./Card";
|
|
4
|
+
export * from "./CheckBox";
|
|
5
|
+
export * from "./DropDown";
|
|
6
|
+
export * from "./IconButton";
|
|
7
|
+
export * from "./Icons";
|
|
8
|
+
export * from "./Modal";
|
|
9
|
+
export * from "./Paper";
|
|
10
|
+
export * from "./ProgressBar";
|
|
11
|
+
export * from "./RadioGroup";
|
|
12
|
+
export * from "./RadioGroup";
|
|
13
|
+
export * from "./RangerSlider";
|
|
14
|
+
export * from "./Select";
|
|
15
|
+
export * from "./Tabs";
|
|
16
|
+
export * from "./Tag";
|
|
17
|
+
export * from "./TextField";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./Accordion";
|
|
2
|
+
export * from "./Button";
|
|
3
|
+
export * from "./Card";
|
|
4
|
+
export * from "./CheckBox";
|
|
5
|
+
export * from "./DropDown";
|
|
6
|
+
export * from "./IconButton";
|
|
7
|
+
export * from "./Icons";
|
|
8
|
+
export * from "./Modal";
|
|
9
|
+
export * from "./Paper";
|
|
10
|
+
export * from "./ProgressBar";
|
|
11
|
+
export * from "./RadioGroup";
|
|
12
|
+
export * from "./RadioGroup";
|
|
13
|
+
export * from "./RangerSlider";
|
|
14
|
+
export * from "./Select";
|
|
15
|
+
export * from "./Tabs";
|
|
16
|
+
export * from "./Tag";
|
|
17
|
+
export * from "./TextField";
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps as MuiButtonProps, IconButtonProps as MuiIconButtonProps, TextFieldProps as MuiTextFieldProps, CheckboxProps as MuiCheckBoxProps, MenuProps as MuiDropDownProps, ChipProps as MuiChipProps, LinearProgressProps as MuiLinearProgressProps, SliderProps as MuiSliderProps, AccordionProps as MuiAccordionProps, TabsProps as MuiTabsProps, SelectProps as MuiSelectProps, PaperProps as MuiPaperProps, SvgIconProps, ModalProps, CardProps as MuiCardProps } from "@mui/material";
|
|
3
|
+
import { SwitchBaseProps as MuiSwitchBaseProps } from "@mui/material/internal/SwitchBase";
|
|
4
|
+
import { iconsSVG } from "../components/Svgs";
|
|
5
|
+
export type ColorVariant = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
6
|
+
export type TextFieldColorVariant = "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
7
|
+
export type CheckBoxColorVariant = "primary" | "secondary" | "error" | "info" | "success" | "warning" | "default";
|
|
8
|
+
export type SizeVariant = "small" | "medium" | "large";
|
|
9
|
+
export type ButtonVariant = "text" | "outlined" | "contained";
|
|
10
|
+
export type DropVariant = "menu" | "selectedMenu";
|
|
11
|
+
export type TagVariant = "outlined" | "contained";
|
|
12
|
+
export type TabsVariant = "standard" | "scrollable" | "fullWidth";
|
|
13
|
+
export type ProgressVariant = "determinate" | "indeterminate" | "buffer" | "query";
|
|
14
|
+
export type MuiButtonBaseProps = Omit<MuiButtonProps, "sx" | "color" | "size" | "variant">;
|
|
15
|
+
export type MuiIconButtonBaseProps = Omit<MuiIconButtonProps, "sx" | "color" | "size" | "variant">;
|
|
16
|
+
export type TextFieldValue = string | number;
|
|
17
|
+
export type TextFieldVariant = "standard" | "outlined" | "filled";
|
|
18
|
+
export type TextFieldSizeVariant = "small" | "medium";
|
|
19
|
+
export type DirectionVariant = "vertical" | "horizontal";
|
|
20
|
+
export type PaperVariant = "elevation" | "outlined";
|
|
21
|
+
export type MuiTextFieldBaseProps = Omit<MuiTextFieldProps, "onChange" | "onBlur" | "onFocus" | "defaultValue" | "size" | "value" | "id" | "fullWidth" | "helperText" | "type" | "InputProps" | "InputLabelProps" | "autoComplete" | "label" | "helperText" | "InputLabelProps" | "margin" | "maxRows" | "minRows" | "multiline" | "name" | "placeholder" | "rows" | "select" | "SelectProps" | "sx" | "autoFocus" | "error" | "classes" | "children" | "color" | "variant">;
|
|
22
|
+
export interface CheckboxPropsSizeOverrides {
|
|
23
|
+
}
|
|
24
|
+
export interface CheckboxPropsColorOverrides {
|
|
25
|
+
}
|
|
26
|
+
export type MuiCheckBoxBaseProps = Omit<MuiCheckBoxProps, "sx">;
|
|
27
|
+
export type MuiModalBaseProps = Omit<ModalProps, "sx">;
|
|
28
|
+
export type MuiCardBaseProps = Omit<MuiCardProps, "sx">;
|
|
29
|
+
export type MuiDropDownBaseProps = Omit<MuiDropDownProps, "sx" | "variant">;
|
|
30
|
+
export type MuiTagBaseProps = Omit<MuiChipProps, "sx" | "color">;
|
|
31
|
+
export type MuiRangerSliderBaseProps = Omit<MuiSliderProps, "sx" | "color">;
|
|
32
|
+
export type MuiProgressBarBaseProps = Omit<MuiLinearProgressProps, "sx">;
|
|
33
|
+
export type MuiTabsBaseProps = Omit<MuiTabsProps, "sx" | "children" | "onChange" | "variant" | "value">;
|
|
34
|
+
export type MuiAccordionBaseProps = Omit<MuiAccordionProps, "sx" | "children" | "defaultExpanded" | "onChange">;
|
|
35
|
+
export type MuiSelectBaseProps = Omit<MuiSelectProps, "sx" | "value" | "onClose" | "onOpen" | "input" | "label">;
|
|
36
|
+
export type MuiPaperBaseProps = Omit<MuiPaperProps, "sx">;
|
|
37
|
+
export type IconScale = "xsmall" | "small" | "medium" | "large" | "xlarge" | "2xlarge" | "3xlarge";
|
|
38
|
+
export type IconColors = "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | "white" | "black";
|
|
39
|
+
export declare const scaleSize: Record<IconScale, number>;
|
|
40
|
+
export type SVGIconProps = {
|
|
41
|
+
icon: React.ReactNode;
|
|
42
|
+
} & SvgIconProps;
|
|
43
|
+
export type IconType = keyof typeof iconsSVG;
|
|
44
|
+
export type IconKey = keyof typeof iconsSVG;
|
|
45
|
+
export type MuiRadioBaseProps = Omit<MuiSwitchBaseProps, "checkedIcon" | "color" | "icon" | "type" | "checked" | "size">;
|
|
46
|
+
export type OptionsRadios = {
|
|
47
|
+
label: string;
|
|
48
|
+
value: string;
|
|
49
|
+
size?: TextFieldSizeVariant;
|
|
50
|
+
};
|
|
51
|
+
export type OnAction = {
|
|
52
|
+
label: string;
|
|
53
|
+
action: React.ReactEventHandler<{}>;
|
|
54
|
+
color?: ColorVariant;
|
|
55
|
+
size?: SizeVariant;
|
|
56
|
+
variant?: ButtonVariant;
|
|
57
|
+
};
|
|
58
|
+
export type DataAccordion = {
|
|
59
|
+
label: string;
|
|
60
|
+
id: string;
|
|
61
|
+
children: NonNullable<React.ReactNode>;
|
|
62
|
+
};
|
|
63
|
+
export type DataTabs = {
|
|
64
|
+
label: string;
|
|
65
|
+
id: string;
|
|
66
|
+
children: NonNullable<React.ReactNode>;
|
|
67
|
+
};
|
|
68
|
+
export type DataSelect = {
|
|
69
|
+
label: string;
|
|
70
|
+
value: string | number;
|
|
71
|
+
};
|
|
72
|
+
export type RenderProps<E extends HTMLElement = HTMLElement> = {
|
|
73
|
+
focusRef?: React.MutableRefObject<E | null>;
|
|
74
|
+
id?: string;
|
|
75
|
+
};
|
|
76
|
+
export type StyledProgressBarProps = {
|
|
77
|
+
colorCustom?: string;
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AA+JA,MAAM,CAAC,IAAM,SAAS,GAA8B;IAClD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;CACd,CAAC"}
|
|
Binary file
|