@lunit/design-system 1.0.0-a.3 → 1.0.0-a.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/cjs/components/Alert/index.js +1 -1
  2. package/dist/cjs/components/Alert/index.js.map +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/components/Alert/Alert.js +5 -1
  6. package/dist/components/Alert/Alert.js.map +1 -1
  7. package/dist/components/Alert/Alert.styled.js +9 -8
  8. package/dist/components/Alert/Alert.styled.js.map +1 -1
  9. package/dist/components/Alert/{Alert.utils..js → Alert.utils.js} +4 -5
  10. package/dist/components/Alert/Alert.utils.js.map +1 -0
  11. package/dist/components/Toast/Toast.styled.js +1 -1
  12. package/dist/components/Toast/Toast.styled.js.map +1 -1
  13. package/dist/components/Toast/Toast.utils.js +1 -2
  14. package/dist/components/Toast/Toast.utils.js.map +1 -1
  15. package/dist/types/components/Alert/Alert.utils.d.ts +4 -0
  16. package/dist/types/components/Button/Button.d.ts +1 -1
  17. package/dist/types/components/Button/Button.styled.d.ts +3 -3
  18. package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
  19. package/dist/types/components/Chip/Chip.d.ts +1 -1
  20. package/dist/types/components/Chip/Chip.styled.d.ts +12 -12
  21. package/dist/types/components/DataTable/DataTable.d.ts +1 -1
  22. package/dist/types/components/DatePicker/DatePicker.d.ts +1 -1
  23. package/dist/types/components/Dropdown/Dropdown.d.ts +1 -1
  24. package/dist/types/components/FormLabel/FormLabel.d.ts +1 -1
  25. package/dist/types/components/Modal/Modal.d.ts +1 -1
  26. package/dist/types/components/Radio/Radio.d.ts +1 -1
  27. package/dist/types/components/TextField/TextField.d.ts +1 -1
  28. package/dist/types/components/TextField/TextFieldIcon.d.ts +1 -1
  29. package/dist/types/components/Toast/Toast.utils.d.ts +2 -2
  30. package/dist/types/components/Toggle/Toggle.d.ts +1 -1
  31. package/dist/types/components/ToggleButton/ToggleButton.d.ts +1 -1
  32. package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -2
  33. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  34. package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/src/components/Alert/Alert.styled.ts +33 -30
  37. package/src/components/Alert/Alert.tsx +5 -7
  38. package/src/components/Alert/{Alert.utils..ts → Alert.utils.ts} +13 -5
  39. package/src/components/Toast/Toast.styled.ts +1 -1
  40. package/src/components/Toast/Toast.utils.ts +5 -3
  41. package/dist/components/Alert/Alert.utils..js.map +0 -1
  42. package/dist/types/components/Alert/Alert.utils..d.ts +0 -4
@@ -1,7 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Success from "@lunit/design-system-icons/Success16";
3
+ import Error from "@lunit/design-system-icons/Error16";
4
+ import Warning from "@lunit/design-system-icons/Warning16";
5
+ import Information from "@lunit/design-system-icons/Information16";
6
+ import Close from "@lunit/design-system-icons/Close";
2
7
  import { forwardRef } from "react";
3
8
  import { StyledAlert, StyledAlertTitle, StyledAlertChildren, StyledBottomAction, } from "./Alert.styled";
4
- import { Close, Success, Error, Warning, Information, } from "@lunit/design-system-icons";
5
9
  import Button from "../Button";
6
10
  const MAPPED_ICON = {
7
11
  success: _jsx(Success, { variant: "filled" }),
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,WAAW,GACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,MAAM,MAAM,WAAW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B,IAC5D,CACf,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC"}
@@ -1,24 +1,25 @@
1
1
  import { Alert as MuiAlert, AlertTitle as MuiAlertTitle, styled, } from "@mui/material";
2
- import { getBorderColor, getBackgroundColor, getIconColor, } from "./Alert.utils.";
3
- export const StyledAlert = styled(MuiAlert)(({ severity }) => ({
2
+ import { getBorderColor, getBackgroundColor, getIconColor, } from "./Alert.utils";
3
+ export const StyledAlert = styled(MuiAlert)(({ severity, theme }) => ({
4
4
  "&.MuiAlert-root": {
5
5
  display: "flex",
6
- padding: "15px",
6
+ padding: "12px",
7
7
  borderRadius: "8px",
8
- border: `1px solid ${getBorderColor(severity)}`,
9
- backgroundColor: getBackgroundColor(severity),
8
+ border: `1px solid ${getBorderColor(theme, severity)}`,
9
+ backgroundColor: getBackgroundColor(theme, severity),
10
10
  boxShadow: "none",
11
11
  },
12
12
  "& .MuiAlert-icon": {
13
13
  padding: "4px",
14
+ marginRight: "0",
14
15
  fontSize: "20px",
15
- marginRight: "16px",
16
- color: `${getIconColor(severity)} !important`,
16
+ color: `${getIconColor(theme, severity)} !important`,
17
17
  },
18
18
  "& .MuiAlert-message": {
19
- padding: "4px 0",
20
19
  width: "100%",
21
20
  minHeight: "28px",
21
+ padding: "4px 0 0",
22
+ margin: "0 8px 0 8px",
22
23
  },
23
24
  "& .MuiAlert-action": {
24
25
  margin: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.styled.js","sourceRoot":"","sources":["../../../src/components/Alert/Alert.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,QAAQ,EACjB,UAAU,IAAI,aAAa,EAC3B,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAa,CAAC,EAAE,QAAQ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AC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM;CAClB,CAAC,CAAC"}
1
+ {"version":3,"file":"Alert.styled.js","sourceRoot":"","sources":["../../../src/components/Alert/Alert.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,QAAQ,EACjB,UAAU,IAAI,aAAa,EAC3B,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CACzC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,iBAAiB,EAAE;QACjB,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,MAAM;QACf,YAAY,EAAE,KAAK;QACnB,MAAM,EAAE,aAAa,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;QACtD,eAAe,EAAE,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC;QACpD,SAAS,EAAE,MAAM;KAClB;IACD,kBAAkB,EAAE;QAClB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,GAAG;QAChB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,GAAG,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa;KACrD;IACD,qBAAqB,EAAE;QACrB,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,aAAa;KACtB;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;KACX;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,sBAAsB,EAAE;QACtB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;KAC5C;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;CAC5C,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM;CAClB,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
- import theme from "@/theme";
2
- export const getBackgroundColor = (severity) => {
1
+ export const getBackgroundColor = (theme, severity) => {
3
2
  switch (severity) {
4
3
  case "info":
5
4
  return theme.palette.token.component.alert_info_bg;
@@ -11,7 +10,7 @@ export const getBackgroundColor = (severity) => {
11
10
  return theme.palette.token.component.alert_success_bg;
12
11
  }
13
12
  };
14
- export const getBorderColor = (severity) => {
13
+ export const getBorderColor = (theme, severity) => {
15
14
  switch (severity) {
16
15
  case "info":
17
16
  return theme.palette.token.component.alert_info_border;
@@ -23,7 +22,7 @@ export const getBorderColor = (severity) => {
23
22
  return theme.palette.token.component.alert_success_border;
24
23
  }
25
24
  };
26
- export const getIconColor = (severity) => {
25
+ export const getIconColor = (theme, severity) => {
27
26
  switch (severity) {
28
27
  case "info":
29
28
  return theme.palette.token.core.icon_info_02;
@@ -35,4 +34,4 @@ export const getIconColor = (severity) => {
35
34
  return theme.palette.token.core.icon_success_02;
36
35
  }
37
36
  };
38
- //# sourceMappingURL=Alert.utils..js.map
37
+ //# sourceMappingURL=Alert.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.utils.js","sourceRoot":"","sources":["../../../src/components/Alert/Alert.utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,KAAY,EACZ,QAAgC,EAChC,EAAE;IACF,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;QACrD,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;QACxD,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;QACtD;YACE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;KACzD;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAAY,EACZ,QAAgC,EAChC,EAAE;IACF,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;QACzD,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;QAC5D,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC;QAC1D;YACE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;KAC7D;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAY,EACZ,QAAgC,EAChC,EAAE;IACF,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QAC/C,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QAClD,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;QAChD;YACE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;KACnD;AACH,CAAC,CAAC"}
@@ -17,7 +17,7 @@ export const StyledToast = styled(Alert)(({ theme, severity }) => {
17
17
  height: "36px",
18
18
  marginRight: "16px",
19
19
  fontSize: 20,
20
- color: `${getIconColor(severity)}`,
20
+ color: `${getIconColor(theme, severity)}`,
21
21
  "& .MuiSvgIcon-root": {
22
22
  height: "16px",
23
23
  width: "16px",
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.styled.js","sourceRoot":"","sources":["../../../src/components/Toast/Toast.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/D,OAAO;QACL,wBAAwB,EAAE;YACxB,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,QAAQ;SACrB;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,mBAAmB;YAC5B,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;YAC3C,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;YAC/C,YAAY,EAAE,KAAK;SACpB;QACD,kBAAkB,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC,EAAE;YAClC,oBAAoB,EAAE;gBACpB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,MAAM;aACd;SACF;QACD,qBAAqB,EAAE;YACrB,uCAAuC;YACvC,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,MAAM;YACjB,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,kBAAkB,EAAE;gBAClB,OAAO,EAAE,OAAO;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,MAAM;YACjB,WAAW,EAAE,KAAK;YAClB,OAAO,EAAE,CAAC;YACV,oBAAoB,EAAE;gBACpB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;aAC5C;SACF;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Toast.styled.js","sourceRoot":"","sources":["../../../src/components/Toast/Toast.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/D,OAAO;QACL,wBAAwB,EAAE;YACxB,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,QAAQ;SACrB;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,mBAAmB;YAC5B,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;YAC3C,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;YAC/C,YAAY,EAAE,KAAK;SACpB;QACD,kBAAkB,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,GAAG,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;YACzC,oBAAoB,EAAE;gBACpB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,MAAM;aACd;SACF;QACD,qBAAqB,EAAE;YACrB,uCAAuC;YACvC,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,MAAM;YACjB,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,kBAAkB,EAAE;gBAClB,OAAO,EAAE,OAAO;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,MAAM;YACjB,WAAW,EAAE,KAAK;YAClB,OAAO,EAAE,CAAC;YACV,oBAAoB,EAAE;gBACpB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;aAC5C;SACF;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
- import theme from "@/theme";
2
- export const getIconColor = (severity) => {
1
+ export const getIconColor = (theme, severity) => {
3
2
  switch (severity) {
4
3
  case "info":
5
4
  return theme.palette.token.core.icon_info_02;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.utils.js","sourceRoot":"","sources":["../../../src/components/Toast/Toast.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAgC,EAAE,EAAE;IAC/D,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QAC/C,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QAClD,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;QAChD;YACE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;KACnD;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"Toast.utils.js","sourceRoot":"","sources":["../../../src/components/Toast/Toast.utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAY,EACZ,QAAgC,EAChC,EAAE;IACF,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QAC/C,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QAClD,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;QAChD;YACE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;KACnD;AACH,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AlertColor, Theme } from "@mui/material";
2
+ export declare const getBackgroundColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
3
+ export declare const getBorderColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
4
+ export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { ButtonProps } from "./Button.types";
2
- declare const Button: (props: ButtonProps) => JSX.Element;
2
+ declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Button;
@@ -881,7 +881,7 @@ export declare const iconStyle: ({ size, hasIconOnly, }: Pick<CustomButtonProps,
881
881
  export declare const CustomButton: import("@emotion/styled").StyledComponent<{
882
882
  children?: import("react").ReactNode;
883
883
  classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
884
- color?: "inherit" | "primary" | "secondary" | "error" | "warning" | "success" | "info" | undefined;
884
+ color?: "success" | "info" | "warning" | "error" | "inherit" | "primary" | "secondary" | undefined;
885
885
  disabled?: boolean | undefined;
886
886
  disableElevation?: boolean | undefined;
887
887
  disableFocusRipple?: boolean | undefined;
@@ -891,7 +891,7 @@ export declare const CustomButton: import("@emotion/styled").StyledComponent<{
891
891
  size?: "small" | "medium" | "large" | undefined;
892
892
  startIcon?: import("react").ReactNode;
893
893
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
894
- variant?: "outlined" | "text" | "contained" | undefined;
894
+ variant?: "text" | "outlined" | "contained" | undefined;
895
895
  } & Omit<{
896
896
  action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
897
897
  centerRipple?: boolean | undefined;
@@ -910,5 +910,5 @@ export declare const CustomButton: import("@emotion/styled").StyledComponent<{
910
910
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
911
911
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
912
912
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
913
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "size" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomButtonProps, {}, {}>;
913
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "tabIndex" | "color" | "action" | "href" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomButtonProps, {}, {}>;
914
914
  export {};
@@ -1,3 +1,3 @@
1
1
  import type { CheckboxProps } from "@mui/material";
2
- declare const Checkbox: (props: CheckboxProps) => JSX.Element;
2
+ declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Checkbox;
@@ -1,3 +1,3 @@
1
1
  import type { ChipProps } from "./Chip.types";
2
- declare const Chip: (props: ChipProps) => JSX.Element;
2
+ declare const Chip: (props: ChipProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Chip;
@@ -6,7 +6,7 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
6
6
  children?: null | undefined;
7
7
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
8
8
  clickable?: boolean | undefined;
9
- color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
9
+ color?: "success" | "info" | "warning" | "error" | "primary" | "secondary" | "default" | undefined;
10
10
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -16,16 +16,16 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
16
16
  skipFocusWhenDisabled?: boolean | undefined;
17
17
  sx?: import("@mui/material").SxProps<Theme> | undefined;
18
18
  tabIndex?: number | undefined;
19
- variant?: "outlined" | "filled" | undefined;
19
+ variant?: "filled" | "outlined" | undefined;
20
20
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
21
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "avatar" | "clickable" | "deleteIcon" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
22
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
23
23
  export declare const StyledContainedChipBase: import("@emotion/styled").StyledComponent<{
24
24
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
25
25
  children?: null | undefined;
26
26
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
27
27
  clickable?: boolean | undefined;
28
- color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
28
+ color?: "success" | "info" | "warning" | "error" | "primary" | "secondary" | "default" | undefined;
29
29
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
30
30
  disabled?: boolean | undefined;
31
31
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -35,16 +35,16 @@ export declare const StyledContainedChipBase: import("@emotion/styled").StyledCo
35
35
  skipFocusWhenDisabled?: boolean | undefined;
36
36
  sx?: import("@mui/material").SxProps<Theme> | undefined;
37
37
  tabIndex?: number | undefined;
38
- variant?: "outlined" | "filled" | undefined;
38
+ variant?: "filled" | "outlined" | undefined;
39
39
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
40
40
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
41
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "avatar" | "clickable" | "deleteIcon" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
41
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
42
42
  export declare const StyledContainedChipEnable: import("@emotion/styled").StyledComponent<{
43
43
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
44
44
  children?: null | undefined;
45
45
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
46
46
  clickable?: boolean | undefined;
47
- color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
47
+ color?: "success" | "info" | "warning" | "error" | "primary" | "secondary" | "default" | undefined;
48
48
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
49
49
  disabled?: boolean | undefined;
50
50
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -54,16 +54,16 @@ export declare const StyledContainedChipEnable: import("@emotion/styled").Styled
54
54
  skipFocusWhenDisabled?: boolean | undefined;
55
55
  sx?: import("@mui/material").SxProps<Theme> | undefined;
56
56
  tabIndex?: number | undefined;
57
- variant?: "outlined" | "filled" | undefined;
57
+ variant?: "filled" | "outlined" | undefined;
58
58
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
59
59
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
60
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "avatar" | "clickable" | "deleteIcon" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
60
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
61
61
  export declare const StyledContainedChipDeletable: import("@emotion/styled").StyledComponent<{
62
62
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
63
63
  children?: null | undefined;
64
64
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
65
65
  clickable?: boolean | undefined;
66
- color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
66
+ color?: "success" | "info" | "warning" | "error" | "primary" | "secondary" | "default" | undefined;
67
67
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
68
68
  disabled?: boolean | undefined;
69
69
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -73,7 +73,7 @@ export declare const StyledContainedChipDeletable: import("@emotion/styled").Sty
73
73
  skipFocusWhenDisabled?: boolean | undefined;
74
74
  sx?: import("@mui/material").SxProps<Theme> | undefined;
75
75
  tabIndex?: number | undefined;
76
- variant?: "outlined" | "filled" | undefined;
76
+ variant?: "filled" | "outlined" | undefined;
77
77
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
78
78
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
79
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "avatar" | "clickable" | "deleteIcon" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
79
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
@@ -1,2 +1,2 @@
1
- declare const DataTable: () => JSX.Element;
1
+ declare const DataTable: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default DataTable;
@@ -1,2 +1,2 @@
1
- declare const DatePicker: () => JSX.Element;
1
+ declare const DatePicker: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default DatePicker;
@@ -1,2 +1,2 @@
1
- declare const Dropdown: () => JSX.Element;
1
+ declare const Dropdown: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default Dropdown;
@@ -1,3 +1,3 @@
1
1
  import { FormControlLabelProps } from "@mui/material";
2
- declare const FormLabel: (props: FormControlLabelProps) => JSX.Element;
2
+ declare const FormLabel: (props: FormControlLabelProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default FormLabel;
@@ -1,2 +1,2 @@
1
- declare const Modal: () => JSX.Element;
1
+ declare const Modal: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default Modal;
@@ -1,3 +1,3 @@
1
1
  import { RadioProps } from "@mui/material/Radio";
2
- declare const Radio: (props: RadioProps) => JSX.Element;
2
+ declare const Radio: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Radio;
@@ -1,3 +1,3 @@
1
1
  import type { TextFieldProps } from "./TextField.types";
2
- declare const TextField: (props: TextFieldProps) => JSX.Element;
2
+ declare const TextField: (props: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TextField;
@@ -4,5 +4,5 @@ interface TextFieldProps {
4
4
  icon: JSX.Element;
5
5
  onIconClick?: () => void;
6
6
  }
7
- declare const TextFieldIcon: ({ sx, icon, onIconClick }: TextFieldProps) => JSX.Element;
7
+ declare const TextFieldIcon: ({ sx, icon, onIconClick }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default TextFieldIcon;
@@ -1,2 +1,2 @@
1
- import type { AlertColor } from "@mui/material";
2
- export declare const getIconColor: (severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
1
+ import type { AlertColor, Theme } from "@mui/material";
2
+ export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { ToggleProps } from './Toggle.types';
2
- declare const Toggle: (props: ToggleProps) => JSX.Element;
2
+ declare const Toggle: (props: ToggleProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Toggle;
@@ -1,3 +1,3 @@
1
1
  import type { ToggleButtonProps } from "./ToggleButton.types";
2
- declare const ToggleButton: (props: ToggleButtonProps) => JSX.Element;
2
+ declare const ToggleButton: (props: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ToggleButton;
@@ -6,7 +6,7 @@ type CustomToggleButtonProps = ToggleButtonProps & {
6
6
  export declare const CustomToggleButton: import("@emotion/styled").StyledComponent<{
7
7
  children?: import("react").ReactNode;
8
8
  classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
9
- color?: "primary" | "secondary" | "error" | "warning" | "success" | "info" | "standard" | undefined;
9
+ color?: "success" | "info" | "warning" | "error" | "standard" | "primary" | "secondary" | undefined;
10
10
  disabled?: boolean | undefined;
11
11
  disableFocusRipple?: boolean | undefined;
12
12
  fullWidth?: boolean | undefined;
@@ -34,6 +34,6 @@ export declare const CustomToggleButton: import("@emotion/styled").StyledCompone
34
34
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
35
35
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
36
36
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
37
- }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "value" | "size" | "selected" | "disableFocusRipple" | "fullWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomToggleButtonProps, {}, {}>;
37
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "tabIndex" | "color" | "onChange" | "onClick" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomToggleButtonProps, {}, {}>;
38
38
  export declare const IconAndChildrenWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
39
39
  export {};
@@ -1,3 +1,3 @@
1
1
  import { ToggleButtonGroupProps } from "@mui/material/ToggleButtonGroup";
2
- declare const ToggleButtonGroup: ({ size, ...props }: ToggleButtonGroupProps) => JSX.Element;
2
+ declare const ToggleButtonGroup: ({ size, ...props }: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ToggleButtonGroup;
@@ -1,2 +1,2 @@
1
- declare const Tooltip: () => JSX.Element;
1
+ declare const Tooltip: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default Tooltip;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunit/design-system",
3
- "version": "1.0.0-a.3",
3
+ "version": "1.0.0-a.4",
4
4
  "description": "Lunit Design System",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/index.js",
@@ -8,37 +8,40 @@ import {
8
8
  getBorderColor,
9
9
  getBackgroundColor,
10
10
  getIconColor,
11
- } from "./Alert.utils.";
11
+ } from "./Alert.utils";
12
12
 
13
- export const StyledAlert = styled(MuiAlert)<AlertProps>(({ severity }) => ({
14
- "&.MuiAlert-root": {
15
- display: "flex",
16
- padding: "15px",
17
- borderRadius: "8px",
18
- border: `1px solid ${getBorderColor(severity)}`,
19
- backgroundColor: getBackgroundColor(severity),
20
- boxShadow: "none",
21
- },
22
- "& .MuiAlert-icon": {
23
- padding: "4px",
24
- fontSize: "20px",
25
- marginRight: "16px",
26
- color: `${getIconColor(severity)} !important`,
27
- },
28
- "& .MuiAlert-message": {
29
- padding: "4px 0",
30
- width: "100%",
31
- minHeight: "28px",
32
- },
33
- "& .MuiAlert-action": {
34
- margin: 0,
35
- padding: 0,
36
- },
37
- "& .MuiSvgIcon-root": {
38
- height: "20px",
39
- width: "20px",
40
- },
41
- }));
13
+ export const StyledAlert = styled(MuiAlert)<AlertProps>(
14
+ ({ severity, theme }) => ({
15
+ "&.MuiAlert-root": {
16
+ display: "flex",
17
+ padding: "12px",
18
+ borderRadius: "8px",
19
+ border: `1px solid ${getBorderColor(theme, severity)}`,
20
+ backgroundColor: getBackgroundColor(theme, severity),
21
+ boxShadow: "none",
22
+ },
23
+ "& .MuiAlert-icon": {
24
+ padding: "4px",
25
+ marginRight: "0",
26
+ fontSize: "20px",
27
+ color: `${getIconColor(theme, severity)} !important`,
28
+ },
29
+ "& .MuiAlert-message": {
30
+ width: "100%",
31
+ minHeight: "28px",
32
+ padding: "4px 0 0",
33
+ margin: "0 8px 0 8px",
34
+ },
35
+ "& .MuiAlert-action": {
36
+ margin: 0,
37
+ padding: 0,
38
+ },
39
+ "& .MuiSvgIcon-root": {
40
+ height: "20px",
41
+ width: "20px",
42
+ },
43
+ })
44
+ );
42
45
 
43
46
  export const StyledAlertTitle = styled(MuiAlertTitle)(({ theme }) => ({
44
47
  "&.MuiAlertTitle-root": {
@@ -1,3 +1,8 @@
1
+ import Success from "@lunit/design-system-icons/Success16";
2
+ import Error from "@lunit/design-system-icons/Error16";
3
+ import Warning from "@lunit/design-system-icons/Warning16";
4
+ import Information from "@lunit/design-system-icons/Information16";
5
+ import Close from "@lunit/design-system-icons/Close";
1
6
  import React, { forwardRef } from "react";
2
7
  import {
3
8
  StyledAlert,
@@ -6,13 +11,6 @@ import {
6
11
  StyledBottomAction,
7
12
  } from "./Alert.styled";
8
13
  import { AlertProps } from "./Alert.types";
9
- import {
10
- Close,
11
- Success,
12
- Error,
13
- Warning,
14
- Information,
15
- } from "@lunit/design-system-icons";
16
14
  import Button from "../Button";
17
15
 
18
16
  const MAPPED_ICON = {
@@ -1,7 +1,9 @@
1
- import theme from "@/theme";
2
- import { AlertColor } from "@mui/material";
1
+ import { AlertColor, Theme } from "@mui/material";
3
2
 
4
- export const getBackgroundColor = (severity: AlertColor | undefined) => {
3
+ export const getBackgroundColor = (
4
+ theme: Theme,
5
+ severity: AlertColor | undefined
6
+ ) => {
5
7
  switch (severity) {
6
8
  case "info":
7
9
  return theme.palette.token.component.alert_info_bg;
@@ -14,7 +16,10 @@ export const getBackgroundColor = (severity: AlertColor | undefined) => {
14
16
  }
15
17
  };
16
18
 
17
- export const getBorderColor = (severity: AlertColor | undefined) => {
19
+ export const getBorderColor = (
20
+ theme: Theme,
21
+ severity: AlertColor | undefined
22
+ ) => {
18
23
  switch (severity) {
19
24
  case "info":
20
25
  return theme.palette.token.component.alert_info_border;
@@ -27,7 +32,10 @@ export const getBorderColor = (severity: AlertColor | undefined) => {
27
32
  }
28
33
  };
29
34
 
30
- export const getIconColor = (severity: AlertColor | undefined) => {
35
+ export const getIconColor = (
36
+ theme: Theme,
37
+ severity: AlertColor | undefined
38
+ ) => {
31
39
  switch (severity) {
32
40
  case "info":
33
41
  return theme.palette.token.core.icon_info_02;
@@ -18,7 +18,7 @@ export const StyledToast = styled(Alert)(({ theme, severity }) => {
18
18
  height: "36px",
19
19
  marginRight: "16px",
20
20
  fontSize: 20,
21
- color: `${getIconColor(severity)}`,
21
+ color: `${getIconColor(theme, severity)}`,
22
22
  "& .MuiSvgIcon-root": {
23
23
  height: "16px",
24
24
  width: "16px",
@@ -1,7 +1,9 @@
1
- import theme from "@/theme";
2
- import type { AlertColor } from "@mui/material";
1
+ import type { AlertColor, Theme } from "@mui/material";
3
2
 
4
- export const getIconColor = (severity: AlertColor | undefined) => {
3
+ export const getIconColor = (
4
+ theme: Theme,
5
+ severity: AlertColor | undefined
6
+ ) => {
5
7
  switch (severity) {
6
8
  case "info":
7
9
  return theme.palette.token.core.icon_info_02;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert.utils..js","sourceRoot":"","sources":["../../../src/components/Alert/Alert.utils..ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAgC,EAAE,EAAE;IACrE,QAAQ,QAAQ,EAAE;QAChB,KAAK,MAAM;YACT,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,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,4 +0,0 @@
1
- import { AlertColor } from "@mui/material";
2
- export declare const getBackgroundColor: (severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
3
- export declare const getBorderColor: (severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
4
- export declare const getIconColor: (severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;