@nethru/ui 1.0.82 → 2.0.0

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 (140) hide show
  1. package/base/AddableFormList.js +56 -0
  2. package/base/Alert.js +27 -0
  3. package/base/Checkbox.js +20 -0
  4. package/base/CircularProgressButton.js +36 -0
  5. package/base/ColumnedSection.js +44 -0
  6. package/base/DropdownButton.js +74 -0
  7. package/base/MainHeader.js +56 -0
  8. package/base/MenuItem.js +92 -0
  9. package/base/PropertyTable.js +69 -0
  10. package/base/SearchTextField.js +44 -0
  11. package/base/SearchableSelect.js +64 -0
  12. package/base/Select.js +33 -0
  13. package/{dist → base}/Slider.js +12 -13
  14. package/base/Snackbar.js +33 -0
  15. package/base/Switch.js +20 -0
  16. package/base/assets/icons.js +390 -0
  17. package/base/assets/images.js +1 -0
  18. package/{dist → base}/colors/blue.js +3 -1
  19. package/{dist → base}/colors/blueGrey.js +1 -1
  20. package/base/datagrid/DataGrid.js +57 -0
  21. package/base/datagrid/Footer.js +51 -0
  22. package/base/datagrid/Pagination.js +24 -0
  23. package/base/dialog/AlertDialog.js +21 -0
  24. package/base/dialog/ConfirmDialog.js +29 -0
  25. package/base/dialog/Dialog.js +56 -0
  26. package/base/dialog/SimpleDialog.js +33 -0
  27. package/{dist → base}/error/Error.js +1 -2
  28. package/base/frame/AppBar.js +54 -0
  29. package/base/frame/Brand.js +36 -0
  30. package/base/frame/Frame.js +49 -0
  31. package/{dist → base/frame}/sidebar/MenuToggler.js +14 -3
  32. package/{dist → base/frame}/sidebar/PrimaryMenu.js +15 -20
  33. package/base/frame/sidebar/SecondaryMenu.js +41 -0
  34. package/{dist → base/frame}/sidebar/Sidebar.js +21 -10
  35. package/base/frame/sidebar/SidebarContext.js +74 -0
  36. package/base/frame/sidebar/css/primary.module.css +69 -0
  37. package/base/frame/sidebar/css/sidebar.module.css +63 -0
  38. package/base/index.js +33 -0
  39. package/{dist → base}/samples/menu.sample.json +2 -2
  40. package/base/styles/borderRadius.js +7 -0
  41. package/base/styles/createTheme.js +90 -0
  42. package/base/styles/globalStyles.js +47 -0
  43. package/base/styles/mui/alert.js +40 -0
  44. package/base/styles/mui/appBar.js +17 -0
  45. package/base/styles/mui/autocomplete.js +46 -0
  46. package/base/styles/mui/avatar.js +14 -0
  47. package/base/styles/mui/button.js +276 -0
  48. package/base/styles/mui/buttonBase.js +10 -0
  49. package/base/styles/mui/checkbox.js +37 -0
  50. package/base/styles/mui/chip.js +83 -0
  51. package/base/styles/mui/cssBaseline.js +12 -0
  52. package/base/styles/mui/dataGrid.js +101 -0
  53. package/base/styles/mui/dialog.js +13 -0
  54. package/base/styles/mui/dialogActions.js +8 -0
  55. package/base/styles/mui/dialogContent.js +10 -0
  56. package/base/styles/mui/dialogTitle.js +11 -0
  57. package/base/styles/mui/formControl.js +8 -0
  58. package/base/styles/mui/formControlLabel.js +9 -0
  59. package/base/styles/mui/formHelperText.js +10 -0
  60. package/base/styles/mui/grid.js +15 -0
  61. package/base/styles/mui/icon.js +12 -0
  62. package/base/styles/mui/iconButton.js +79 -0
  63. package/base/styles/mui/inputLabel.js +13 -0
  64. package/base/styles/mui/list.js +11 -0
  65. package/base/styles/mui/menuItem.js +83 -0
  66. package/base/styles/mui/outlinedInput.js +53 -0
  67. package/base/styles/mui/paginationItem.js +25 -0
  68. package/base/styles/mui/paper.js +8 -0
  69. package/base/styles/mui/popover.js +11 -0
  70. package/base/styles/mui/select.js +11 -0
  71. package/base/styles/mui/slider.js +15 -0
  72. package/base/styles/mui/snackbar.js +24 -0
  73. package/base/styles/mui/switch.js +33 -0
  74. package/base/styles/mui/tab.js +23 -0
  75. package/base/styles/mui/tablePagination.js +8 -0
  76. package/base/styles/mui/tabs.js +20 -0
  77. package/base/styles/mui/textField.js +11 -0
  78. package/base/styles/mui/toggleButton.js +96 -0
  79. package/base/styles/mui/tooltip.js +22 -0
  80. package/base/styles/palette.js +40 -0
  81. package/base/styles/shadow.js +8 -0
  82. package/base/styles/typography.js +131 -0
  83. package/package.json +6 -5
  84. package/dist/Accordion.js +0 -45
  85. package/dist/AccordionDetails.js +0 -19
  86. package/dist/AccordionSummary.js +0 -35
  87. package/dist/AlertDialog.js +0 -55
  88. package/dist/AppBar.js +0 -68
  89. package/dist/AppendableFormList.js +0 -56
  90. package/dist/AvatarDropdown.js +0 -80
  91. package/dist/Button.js +0 -61
  92. package/dist/Checkbox.js +0 -27
  93. package/dist/CircularProgress.js +0 -33
  94. package/dist/ColumnedSection.js +0 -64
  95. package/dist/ConfirmDialog.js +0 -65
  96. package/dist/DataGrid.js +0 -150
  97. package/dist/Dialog.js +0 -42
  98. package/dist/DropdownButton.js +0 -59
  99. package/dist/FormLabel.js +0 -23
  100. package/dist/Frame.js +0 -47
  101. package/dist/GroupSelect.js +0 -67
  102. package/dist/ListItem.js +0 -21
  103. package/dist/ListItemDivider.js +0 -15
  104. package/dist/ListItemGrid.js +0 -12
  105. package/dist/ListItemText.js +0 -44
  106. package/dist/MainHeader.js +0 -59
  107. package/dist/PropertyTable.js +0 -141
  108. package/dist/ReferenceChipList.js +0 -59
  109. package/dist/SearchTextField.js +0 -24
  110. package/dist/SearchableSelect.js +0 -41
  111. package/dist/Section.js +0 -22
  112. package/dist/Select.js +0 -48
  113. package/dist/ShadowedSection.js +0 -36
  114. package/dist/Snackbar.js +0 -51
  115. package/dist/StatusChip.js +0 -34
  116. package/dist/Switch.js +0 -37
  117. package/dist/TabbedSection.js +0 -37
  118. package/dist/Tabs.js +0 -38
  119. package/dist/TextField.js +0 -25
  120. package/dist/index.js +0 -44
  121. package/dist/samples/global.sample.css +0 -59
  122. package/dist/sidebar/MenuTree.js +0 -95
  123. package/dist/sidebar/MenuTreeGroup.js +0 -65
  124. package/dist/sidebar/SecondaryMenu.js +0 -36
  125. package/dist/sidebar/SidebarContext.js +0 -122
  126. package/dist/sidebar/css/primary.module.css +0 -80
  127. package/dist/sidebar/css/sidebar.module.css +0 -50
  128. package/dist/variables.js +0 -6
  129. /package/{dist → base}/colors/green.js +0 -0
  130. /package/{dist → base}/colors/grey.js +0 -0
  131. /package/{dist → base}/colors/index.js +0 -0
  132. /package/{dist → base}/colors/lime.js +0 -0
  133. /package/{dist → base}/colors/orange.js +0 -0
  134. /package/{dist → base}/colors/purple.js +0 -0
  135. /package/{dist → base}/colors/red.js +0 -0
  136. /package/{dist → base}/colors/yellow.js +0 -0
  137. /package/{dist → base}/editor/Editor.js +0 -0
  138. /package/{dist → base}/editor/nScript.js +0 -0
  139. /package/{dist → base}/editor/nScriptKeywords.js +0 -0
  140. /package/{dist → base}/error/HttpError.js +0 -0
@@ -0,0 +1,33 @@
1
+ import { blue, grey } from "../../colors";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ '& + .MuiFormControlLabel-label': {
6
+ margin: -5
7
+ }
8
+ },
9
+ switchBase: ({
10
+ ownerState
11
+ }) => ({
12
+ ':hover, &.Mui-focusVisible': {
13
+ backgroundColor: grey[5]
14
+ },
15
+ '&.Mui-checked + .MuiSwitch-track': {
16
+ backgroundColor: blue[100],
17
+ opacity: 1
18
+ },
19
+ '&.Mui-disabled .MuiSwitch-thumb': {
20
+ backgroundColor: grey[50],
21
+ opacity: 1
22
+ },
23
+ '&.Mui-disabled + .MuiSwitch-track': {
24
+ backgroundColor: ownerState.checked ? blue[100] : grey[150],
25
+ opacity: 1
26
+ }
27
+ }),
28
+ track: {
29
+ backgroundColor: grey[300],
30
+ opacity: 1
31
+ }
32
+ }
33
+ };
@@ -0,0 +1,23 @@
1
+ import typography from "../typography";
2
+ import { grey } from "../../colors";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ root: {
6
+ fontFamily: typography.fontFamily,
7
+ ...typography.bodyXlMedium,
8
+ color: grey[600],
9
+ '&:hover, &.Mui-focusVisible': {
10
+ color: grey[900]
11
+ },
12
+ '&.Mui-focusVisible.Mui-selected': {
13
+ backgroundColor: grey[5]
14
+ },
15
+ '&.Mui-selected': {
16
+ ...typography.headline2
17
+ },
18
+ minWidth: 'unset',
19
+ minHeight: 40,
20
+ padding: 0
21
+ }
22
+ }
23
+ };
@@ -0,0 +1,8 @@
1
+ import { grey } from "../../colors";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ selectLabel: {
5
+ color: grey[700]
6
+ }
7
+ }
8
+ };
@@ -0,0 +1,20 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ root: {
4
+ minHeight: 42
5
+ },
6
+ flexContainer: {
7
+ gap: 16
8
+ },
9
+ flexContainerVertical: ({
10
+ ownerState,
11
+ theme
12
+ }) => ({
13
+ gap: 16,
14
+ '.MuiTab-root': {
15
+ minHeight: 'unset',
16
+ paddingRight: theme.spacing(2)
17
+ }
18
+ })
19
+ }
20
+ };
@@ -0,0 +1,11 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ root: ({
4
+ ownerState
5
+ }) => {
6
+ return ownerState.label && {
7
+ marginTop: 17
8
+ };
9
+ }
10
+ }
11
+ };
@@ -0,0 +1,96 @@
1
+ import { blue, grey } from "../../colors";
2
+ import typography from "../typography";
3
+ import borderRadius from "../borderRadius";
4
+ export const styles = {
5
+ variants: [{
6
+ props: {
7
+ variant: 'normal'
8
+ },
9
+ style: {}
10
+ }, {
11
+ props: {
12
+ variant: 'apps'
13
+ },
14
+ style: {
15
+ '&': {
16
+ borderColor: 'transparent'
17
+ },
18
+ '&.Mui-selected': {
19
+ backgroundColor: grey[10],
20
+ borderColor: grey[700]
21
+ }
22
+ }
23
+ }, {
24
+ props: {
25
+ variant: 'gnb'
26
+ },
27
+ style: {
28
+ '&.Mui-selected': {
29
+ backgroundColor: grey[10],
30
+ borderColor: grey[700]
31
+ }
32
+ }
33
+ }, {
34
+ props: {
35
+ variant: 'lnb'
36
+ },
37
+ style: {
38
+ '&': {
39
+ borderColor: 'transparent'
40
+ },
41
+ '&.Mui-selected': {
42
+ backgroundColor: grey[10]
43
+ }
44
+ }
45
+ }],
46
+ defaultProps: {
47
+ variant: 'normal'
48
+ },
49
+ styleOverrides: {
50
+ root: ({
51
+ ownerState,
52
+ theme
53
+ }) => ({
54
+ fontFamily: typography.fontFamily,
55
+ ...typography.bodyMdMedium,
56
+ color: grey[600],
57
+ borderColor: grey[300],
58
+ borderRadius: borderRadius[2],
59
+ ':hover, &.Mui-focusVisible': {
60
+ backgroundColor: grey[5]
61
+ },
62
+ '&:active': {
63
+ backgroundColor: grey[10]
64
+ },
65
+ '&.Mui-selected': {
66
+ color: theme.palette.info.main,
67
+ backgroundColor: blue[50],
68
+ ':hover, &.Mui-focusVisible': {
69
+ backgroundColor: blue[100]
70
+ },
71
+ '&.MuiToggleButtonGroup-grouped.MuiToggleButtonGroup-middleButton': {
72
+ borderLeftColor: grey[300]
73
+ }
74
+ },
75
+ '&.Mui-disabled': {
76
+ color: grey[400],
77
+ borderColor: grey[300]
78
+ }
79
+ }),
80
+ sizeLarge: undefined,
81
+ sizeMedium: ({
82
+ ownerState,
83
+ theme
84
+ }) => ({
85
+ width: ownerState.variant === 'apps' || ownerState.variant === 'gnb' ? 36 : undefined,
86
+ height: 36
87
+ }),
88
+ sizeSmall: ({
89
+ ownerState,
90
+ theme
91
+ }) => ({
92
+ width: ownerState.variant === 'apps' || ownerState.variant === 'gnb' ? 26 : undefined,
93
+ height: 26
94
+ })
95
+ }
96
+ };
@@ -0,0 +1,22 @@
1
+ import typography from "../typography";
2
+ import shadow from "../shadow";
3
+ import { grey } from "../../colors";
4
+ export const styles = {
5
+ defaultProps: {
6
+ arrow: true
7
+ },
8
+ styleOverrides: {
9
+ root: {
10
+ fontFamily: typography.fontFamily,
11
+ ...typography.bodySmMedium
12
+ },
13
+ tooltip: {
14
+ color: grey[900],
15
+ backgroundColor: '#fff',
16
+ boxShadow: shadow[4]
17
+ },
18
+ arrow: {
19
+ color: '#fff'
20
+ }
21
+ }
22
+ };
@@ -0,0 +1,40 @@
1
+ import { blue, green, grey, lime, orange, red } from "../colors";
2
+ const palette = {
3
+ primary: {
4
+ main: grey[900],
5
+ contrastText: '#fff'
6
+ },
7
+ info: {
8
+ main: blue[500],
9
+ contrastText: '#fff'
10
+ },
11
+ warning: {
12
+ main: orange[500],
13
+ contrastText: '#fff'
14
+ },
15
+ error: {
16
+ main: red[500],
17
+ contrastText: '#fff'
18
+ },
19
+ crud: {
20
+ main: blue[50],
21
+ contrastText: blue[500]
22
+ },
23
+ blue: {
24
+ main: blue[500],
25
+ contrastText: blue[700]
26
+ },
27
+ green: {
28
+ main: green[500],
29
+ contrastText: green[700]
30
+ },
31
+ orange: {
32
+ main: orange[500],
33
+ contrastText: orange[700]
34
+ },
35
+ lime: {
36
+ main: lime[500],
37
+ contrastText: lime[700]
38
+ }
39
+ };
40
+ export default palette;
@@ -0,0 +1,8 @@
1
+ const shadow = {
2
+ 1: '0px 18px 20px -20px rgba(90, 90, 90, 0.20)',
3
+ 2: '1px 1px 8px 1px rgba(101, 101, 101, 0.20)',
4
+ 3: '0px 5px 10px 0px rgba(101, 101, 101, 0.16),' + '0px 3px 4px -1px rgba(101, 101, 101, 0.08)',
5
+ 4: '0px 2px 10px 0px rgba(0, 0, 0, 0.14),' + '0px 1px 5px -1px rgba(0, 0, 0, 0.20)',
6
+ 5: '0px 20px 31px 3px rgba(0, 0, 0, 0.14),' + '0px 10px 13px -6px rgba(0, 0, 0, 0.20)'
7
+ };
8
+ export default shadow;
@@ -0,0 +1,131 @@
1
+ import { grey } from "../colors";
2
+ const typography = {
3
+ fontFamily: '"Pretendard Variable", Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"',
4
+ fontSize: 12,
5
+ h1: undefined,
6
+ h2: undefined,
7
+ h3: undefined,
8
+ h4: undefined,
9
+ h5: undefined,
10
+ h6: undefined,
11
+ subtitle1: undefined,
12
+ subtitle2: undefined,
13
+ body1: undefined,
14
+ body2: undefined,
15
+ button: undefined,
16
+ caption: undefined,
17
+ overline: undefined,
18
+ logo: {
19
+ color: grey[900],
20
+ fontSize: '18px',
21
+ fontWeight: 600,
22
+ lineHeight: 1.6,
23
+ letterSpacing: 0
24
+ },
25
+ headline1: {
26
+ color: grey[900],
27
+ fontSize: '24px',
28
+ fontWeight: 700,
29
+ lineHeight: 1.6,
30
+ letterSpacing: 0
31
+ },
32
+ headline2: {
33
+ color: grey[900],
34
+ fontSize: '16px',
35
+ fontWeight: 700,
36
+ lineHeight: 1.6,
37
+ letterSpacing: 0
38
+ },
39
+ bodyXlSemibold: {
40
+ color: grey[900],
41
+ fontSize: '16px',
42
+ fontWeight: 600,
43
+ lineHeight: 1.6,
44
+ letterSpacing: 0
45
+ },
46
+ bodyXlMedium: {
47
+ color: grey[900],
48
+ fontSize: '16px',
49
+ fontWeight: 500,
50
+ lineHeight: 1.6,
51
+ letterSpacing: 0
52
+ },
53
+ bodyLgSemibold: {
54
+ color: grey[900],
55
+ fontSize: '14px',
56
+ fontWeight: 600,
57
+ lineHeight: 1.6,
58
+ letterSpacing: 0
59
+ },
60
+ bodyLgMedium: {
61
+ color: grey[900],
62
+ fontSize: '14px',
63
+ fontWeight: 500,
64
+ lineHeight: 1.6,
65
+ letterSpacing: 0
66
+ },
67
+ bodyMdSemibold: {
68
+ color: grey[900],
69
+ fontSize: '13px',
70
+ fontWeight: 600,
71
+ lineHeight: 1.4,
72
+ letterSpacing: 0
73
+ },
74
+ bodyMdMedium: {
75
+ color: grey[900],
76
+ fontSize: '13px',
77
+ fontWeight: 500,
78
+ lineHeight: 1.4,
79
+ letterSpacing: 0
80
+ },
81
+ bodySmBold: {
82
+ color: grey[900],
83
+ fontSize: '12px',
84
+ fontWeight: 700,
85
+ lineHeight: 1.4,
86
+ letterSpacing: 0
87
+ },
88
+ bodySmSemibold: {
89
+ color: grey[900],
90
+ fontSize: '12px',
91
+ fontWeight: 600,
92
+ lineHeight: 1.4,
93
+ letterSpacing: 0
94
+ },
95
+ bodySmMedium: {
96
+ color: grey[900],
97
+ fontSize: '12px',
98
+ fontWeight: 500,
99
+ lineHeight: 1.4,
100
+ letterSpacing: 0
101
+ },
102
+ bodySmRegular: {
103
+ color: grey[900],
104
+ fontSize: '12px',
105
+ fontWeight: 400,
106
+ lineHeight: 1.4,
107
+ letterSpacing: 0
108
+ },
109
+ bodyXsSemibold: {
110
+ color: grey[900],
111
+ fontSize: '10px',
112
+ fontWeight: 600,
113
+ lineHeight: 1.4,
114
+ letterSpacing: 0
115
+ },
116
+ bodyXsMedium: {
117
+ color: grey[900],
118
+ fontSize: '10px',
119
+ fontWeight: 500,
120
+ lineHeight: 1.4,
121
+ letterSpacing: 0
122
+ },
123
+ code: {
124
+ color: grey[900],
125
+ fontSize: '13px',
126
+ fontWeight: 500,
127
+ lineHeight: 1.6,
128
+ letterSpacing: 0
129
+ }
130
+ };
131
+ export default typography;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.82",
4
- "main": "dist/index.js",
3
+ "version": "2.0.0",
4
+ "main": "base/index.js",
5
5
  "files": [
6
- "/dist"
6
+ "/base"
7
7
  ],
8
8
  "dependencies": {
9
9
  "@codemirror/lang-javascript": "^6.2.1",
@@ -30,14 +30,15 @@
30
30
  "react-dom": "^18.2.0",
31
31
  "react-router-dom": "^6.20.1",
32
32
  "react-scripts": "5.0.1",
33
- "styled-components": "^6.1.11"
33
+ "styled-components": "^6.1.11",
34
+ "uuid": "^10.0.0"
34
35
  },
35
36
  "scripts": {
36
37
  "start": "react-scripts start",
37
38
  "build": "react-scripts build",
38
39
  "test": "react-scripts test",
39
40
  "eject": "react-scripts eject",
40
- "publish:npm": "rm -rf dist && mkdir dist && babel src/lib -d dist --copy-files"
41
+ "publish": "rm -rf base && mkdir base && babel src/lib -d base --copy-files"
41
42
  },
42
43
  "babel": {
43
44
  "presets": [
package/dist/Accordion.js DELETED
@@ -1,45 +0,0 @@
1
- import MuiAccordion from "@mui/material/Accordion";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const styles = {
4
- border: '1px solid #eaeaea',
5
- boxShadow: 'none',
6
- '.MuiAccordionDetails-root': {
7
- pt: 0,
8
- pl: 8,
9
- pr: 8
10
- },
11
- '.MuiFormLabel-root.MuiInputLabel-root': {
12
- fontSize: '14px'
13
- },
14
- '.MuiInputBase-input.MuiInput-input': {
15
- color: '#555',
16
- fontSize: '15px'
17
- },
18
- '.MuiTabs-root.MuiTabs-vertical': {
19
- mt: 2
20
- },
21
- '.MuiTabs-root.MuiTabs-vertical .MuiButtonBase-root.MuiTab-root': {
22
- fontSize: '14px',
23
- minWidth: '32px',
24
- maxWidth: '32px'
25
- },
26
- '.MuiButtonBase-root.MuiToggleButton-root': {
27
- pt: '1px',
28
- pb: '1px',
29
- fontSize: '12px'
30
- }
31
- };
32
- export default function Accordion({
33
- children,
34
- sx,
35
- ...props
36
- }) {
37
- return /*#__PURE__*/_jsx(MuiAccordion, {
38
- sx: {
39
- ...sx,
40
- ...styles
41
- },
42
- ...props,
43
- children: children
44
- });
45
- }
@@ -1,19 +0,0 @@
1
- import MuiAccordionDetails from "@mui/material/AccordionDetails";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const styles = {
4
- mb: 2
5
- };
6
- export default function AccordionDetails({
7
- children,
8
- sx,
9
- ...props
10
- }) {
11
- return /*#__PURE__*/_jsx(MuiAccordionDetails, {
12
- sx: {
13
- ...sx,
14
- ...styles
15
- },
16
- ...props,
17
- children: children
18
- });
19
- }
@@ -1,35 +0,0 @@
1
- import { Stack, Typography } from "@mui/material";
2
- import MuiAccordionSummary from "@mui/material/AccordionSummary";
3
- import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
- import { Fragment as _Fragment } from "react/jsx-runtime";
7
- export default function AccordionSummary({
8
- title,
9
- desc,
10
- children,
11
- ...props
12
- }) {
13
- return /*#__PURE__*/_jsxs(_Fragment, {
14
- children: [title && /*#__PURE__*/_jsx(MuiAccordionSummary, {
15
- expandIcon: /*#__PURE__*/_jsx(ExpandMoreIcon, {}),
16
- ...props,
17
- children: /*#__PURE__*/_jsxs(Stack, {
18
- direction: "row",
19
- alignItems: "flex-end",
20
- gap: 1,
21
- children: [/*#__PURE__*/_jsx(Typography, {
22
- children: title
23
- }), desc && /*#__PURE__*/_jsx(Typography, {
24
- variant: "caption",
25
- color: "#aaa",
26
- children: desc
27
- })]
28
- })
29
- }), !title && /*#__PURE__*/_jsx(MuiAccordionSummary, {
30
- expandIcon: /*#__PURE__*/_jsx(ExpandMoreIcon, {}),
31
- ...props,
32
- children: children
33
- })]
34
- });
35
- }
@@ -1,55 +0,0 @@
1
- import { Box, Button, Stack } from "@mui/material";
2
- import DialogContent from "@mui/material/DialogContent";
3
- import DialogContentText from "@mui/material/DialogContentText";
4
- import DialogActions from "@mui/material/DialogActions";
5
- import Dialog from "./Dialog";
6
- import CampaignIcon from "@mui/icons-material/Campaign";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
- export default function AlertDialog({
10
- open,
11
- onClose,
12
- content,
13
- closeText = '확인'
14
- }) {
15
- return /*#__PURE__*/_jsxs(Dialog, {
16
- contentFontSize: 15,
17
- open: open,
18
- onClose: onClose,
19
- children: [/*#__PURE__*/_jsx(DialogContent, {
20
- children: /*#__PURE__*/_jsxs(Stack, {
21
- direction: "row",
22
- alignItems: "center",
23
- gap: 2,
24
- children: [/*#__PURE__*/_jsx(CampaignIcon, {
25
- sx: {
26
- color: '#777',
27
- '&': {
28
- fontSize: 50
29
- }
30
- }
31
- }), /*#__PURE__*/_jsx(DialogContentText, {
32
- component: "div",
33
- children: /*#__PURE__*/_jsx(Box, {
34
- component: "div",
35
- sx: {
36
- whiteSpace: 'pre-wrap'
37
- },
38
- children: content.replace(/(\\n)/g, '\n')
39
- })
40
- })]
41
- })
42
- }), /*#__PURE__*/_jsx(DialogActions, {
43
- sx: {
44
- mt: 0,
45
- mb: 1,
46
- justifyContent: 'center'
47
- },
48
- children: /*#__PURE__*/_jsx(Button, {
49
- variant: "contained",
50
- onClick: onClose,
51
- children: closeText
52
- })
53
- })]
54
- });
55
- }
package/dist/AppBar.js DELETED
@@ -1,68 +0,0 @@
1
- import { Box, Divider, Stack, Toolbar, Typography } from "@mui/material";
2
- import MuiAppBar from "@mui/material/AppBar";
3
- import { grey } from "@mui/material/colors";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
- export default function AppBar({
7
- title,
8
- logoUri,
9
- onLogoClick,
10
- children,
11
- sx
12
- }) {
13
- const appbarStyles = {
14
- boxShadow: 'none',
15
- borderBottom: `1px solid ${grey[300]}`,
16
- '@media (min-width: 600px)': {
17
- '.MuiToolbar-root': {
18
- paddingLeft: '16px',
19
- paddingRight: '16px'
20
- }
21
- }
22
- };
23
- const logoStyles = {
24
- width: 37,
25
- height: 32,
26
- cursor: onLogoClick ? 'pointer' : 'default'
27
- };
28
- const dividerStyles = {
29
- borderColor: grey[200],
30
- mt: 2,
31
- mb: 2,
32
- ml: 2,
33
- mr: 1
34
- };
35
- return /*#__PURE__*/_jsx(MuiAppBar, {
36
- color: "transparent",
37
- sx: {
38
- ...sx,
39
- ...appbarStyles
40
- },
41
- children: /*#__PURE__*/_jsxs(Toolbar, {
42
- children: [/*#__PURE__*/_jsxs(Stack, {
43
- spacing: 1,
44
- direction: "row",
45
- alignItems: "center",
46
- children: [/*#__PURE__*/_jsx(Box, {
47
- component: "img",
48
- src: logoUri,
49
- alt: "logo",
50
- onClick: onLogoClick,
51
- sx: logoStyles
52
- }), /*#__PURE__*/_jsx(Typography, {
53
- noWrap: true,
54
- sx: {
55
- color: 'text.secondary',
56
- cursor: 'default'
57
- },
58
- children: title
59
- })]
60
- }), /*#__PURE__*/_jsx(Divider, {
61
- orientation: "vertical",
62
- variant: "middle",
63
- sx: dividerStyles,
64
- flexItem: true
65
- }), children]
66
- })
67
- });
68
- }