@edu-tosel/design 1.0.44 → 1.0.46

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 (154) hide show
  1. package/README.md +42 -42
  2. package/asset/SVG.d.ts +5 -0
  3. package/asset/SVG.js +2 -0
  4. package/asset/SVG.tsx +23 -21
  5. package/asset/svg/Close.tsx +32 -32
  6. package/asset/svg/Direction.tsx +36 -36
  7. package/asset/svg/Email.tsx +20 -20
  8. package/asset/svg/Image.tsx +24 -24
  9. package/asset/svg/Notification.tsx +34 -34
  10. package/asset/svg/Operation.d.ts +11 -0
  11. package/asset/svg/Operation.js +16 -0
  12. package/asset/svg/Operation.tsx +66 -0
  13. package/asset/svg/Phone.tsx +20 -20
  14. package/asset/svg/Profile.tsx +27 -27
  15. package/asset/svg/TOSEL.tsx +63 -63
  16. package/board/design/Board.design.d.ts +1 -1
  17. package/board/design/Board.design.js +4 -4
  18. package/board/template/CanvasBoard.d.ts +1 -1
  19. package/board/template/CanvasBoard.js +3 -3
  20. package/board/template/ManageBoard.d.ts +1 -1
  21. package/board/template/ManageBoard.js +6 -6
  22. package/board/widget/Header.js +1 -1
  23. package/card/design/Card.design.js +4 -3
  24. package/card/design/NavCard.design.js +1 -1
  25. package/card/design/RollCard.design.d.ts +2 -0
  26. package/card/design/RollCard.design.js +13 -0
  27. package/card/design/TableCard.design.js +9 -8
  28. package/card/index.d.ts +1 -0
  29. package/card/index.js +1 -0
  30. package/card/template/InfoCard/Academy.js +1 -1
  31. package/card/template/InfoCard/Exam.js +1 -1
  32. package/card/template/InfoCard/ExamData.js +3 -3
  33. package/card/template/InfoCard/Finance.js +1 -1
  34. package/card/template/InfoCard/Grade.js +1 -1
  35. package/card/template/InfoCard/Student.js +1 -1
  36. package/card/template/RollCard.d.ts +2 -0
  37. package/card/template/RollCard.js +5 -0
  38. package/globals.css +226 -226
  39. package/hook/useFlag.js +2 -2
  40. package/index.d.ts +1 -1
  41. package/index.js +1 -1
  42. package/interaction/template/Loading.d.ts +3 -3
  43. package/interaction/template/Loading.js +3 -3
  44. package/interaction/template/NoData.js +2 -2
  45. package/interface/{Widget.d.ts → Action.d.ts} +3 -3
  46. package/interface/Board.d.ts +2 -2
  47. package/interface/Card.d.ts +9 -2
  48. package/interface/HTMLElement.d.ts +0 -4
  49. package/interface/Layout.d.ts +3 -3
  50. package/interface/Modal.d.ts +5 -2
  51. package/interface/Overlay.d.ts +2 -2
  52. package/interface/Property.d.ts +4 -4
  53. package/interface/Shelf.d.ts +2 -2
  54. package/interface/UtilityType.d.ts +2 -0
  55. package/interface/UtilityType.js +1 -0
  56. package/interface/index.d.ts +2 -1
  57. package/interface/index.js +2 -1
  58. package/interface/widget/Switch.d.ts +19 -0
  59. package/interface/widget/Switch.js +1 -0
  60. package/interface/widget/index.d.ts +1 -0
  61. package/interface/widget/index.js +1 -0
  62. package/layout/design/DataField.design.js +2 -2
  63. package/layout/design/Row.design.js +1 -1
  64. package/layout/design/Tab.design.d.ts +15 -4
  65. package/layout/design/Tab.design.js +26 -11
  66. package/layout/index.d.ts +1 -1
  67. package/layout/index.js +1 -1
  68. package/layout/template/Action.d.ts +8 -0
  69. package/layout/template/{Events.js → Action.js} +12 -12
  70. package/layout/template/Gallery.d.ts +2 -2
  71. package/layout/template/Gallery.js +10 -3
  72. package/layout/template/Shelf.js +3 -1
  73. package/layout/widget/dashboard/Header.js +5 -5
  74. package/layout/widget/dashboard/Layout.js +2 -2
  75. package/layout/widget/dashboard/Menu.d.ts +1 -1
  76. package/layout/widget/dashboard/Menu.js +5 -5
  77. package/layout/widget/dashboard/Navigation.js +1 -1
  78. package/layout/widget/dashboard/Notification.d.ts +1 -1
  79. package/layout/widget/dashboard/Notification.js +4 -4
  80. package/layout/widget/dashboard/buttonClassNames.js +2 -2
  81. package/layout/widget/dashboard/mypage/Layout.js +2 -2
  82. package/layout/widget/dashboard/mypage/Profile.js +1 -1
  83. package/layout/widget/sign/WithTitle.js +1 -1
  84. package/modal/design/ConfirmModal.design.d.ts +1 -1
  85. package/modal/design/ConfirmModal.design.js +3 -3
  86. package/modal/design/Modal.design.d.ts +1 -1
  87. package/modal/design/Modal.design.js +8 -7
  88. package/modal/template/Alert.d.ts +1 -1
  89. package/modal/template/Alert.js +2 -2
  90. package/modal/template/ConfirmModal/Input.js +1 -1
  91. package/modal/template/ConfirmModal/Switch.d.ts +11 -0
  92. package/modal/template/ConfirmModal/Switch.js +19 -0
  93. package/modal/template/ConfirmModal/Tag.d.ts +13 -0
  94. package/modal/template/ConfirmModal/Tag.js +19 -0
  95. package/modal/template/ConfirmModal/index.d.ts +2 -0
  96. package/modal/template/ConfirmModal/index.js +4 -0
  97. package/modal/template/Input.d.ts +1 -1
  98. package/modal/template/Input.js +2 -2
  99. package/overlay/design/Overlay.design.d.ts +1 -1
  100. package/overlay/design/Overlay.design.js +4 -4
  101. package/overlay/template/Info.d.ts +1 -1
  102. package/overlay/template/Info.js +2 -2
  103. package/overlay/template/Manage.d.ts +1 -1
  104. package/overlay/template/Manage.js +2 -2
  105. package/package.json +1 -1
  106. package/store/index.d.ts +4 -4
  107. package/store/index.js +1 -1
  108. package/tailwind.config.ts +605 -602
  109. package/util/select.d.ts +10 -0
  110. package/util/select.js +10 -0
  111. package/version.txt +1 -1
  112. package/{html/widget → widget}/CheckBox.d.ts +1 -1
  113. package/{html/widget → widget}/DatePicker.d.ts +1 -1
  114. package/{html/widget → widget}/EmailInput.d.ts +1 -1
  115. package/{html/widget → widget}/EmailInput.js +1 -1
  116. package/{html/widget → widget}/Obstacle.d.ts +1 -1
  117. package/{html/widget → widget}/Obstacle.js +1 -1
  118. package/widget/Toggle.d.ts +6 -0
  119. package/{html/widget → widget}/Toggle.js +1 -10
  120. package/{html → widget}/design/Label.design.js +1 -1
  121. package/{html → widget}/design/Select.design.js +2 -2
  122. package/widget/design/Tag.design.d.ts +0 -0
  123. package/widget/design/Tag.design.js +1 -0
  124. package/{html → widget}/index.d.ts +3 -2
  125. package/{html → widget}/index.js +3 -2
  126. package/{html → widget}/template/Input.js +1 -1
  127. package/widget/template/Switch/Handle.d.ts +2 -0
  128. package/widget/template/Switch/Handle.js +26 -0
  129. package/widget/template/Switch/Switch.d.ts +3 -0
  130. package/widget/template/Switch/Switch.js +44 -0
  131. package/widget/template/Switch/index.d.ts +6 -0
  132. package/widget/template/Switch/index.js +4 -0
  133. package/html/widget/Toggle.d.ts +0 -2
  134. package/layout/template/Events.d.ts +0 -8
  135. /package/interaction/{widget → design}/Jumper.design.d.ts +0 -0
  136. /package/interaction/{widget → design}/Jumper.design.js +0 -0
  137. /package/interaction/{widget → design}/Script.design.d.ts +0 -0
  138. /package/interaction/{widget → design}/Script.design.js +0 -0
  139. /package/interaction/{widget → design}/Sign.design.d.ts +0 -0
  140. /package/interaction/{widget → design}/Sign.design.js +0 -0
  141. /package/interaction/{widget → design}/Spinner.design.d.ts +0 -0
  142. /package/interaction/{widget → design}/Spinner.design.js +0 -0
  143. /package/interaction/{widget → design}/Worm.design.d.ts +0 -0
  144. /package/interaction/{widget → design}/Worm.design.js +0 -0
  145. /package/interface/{Widget.js → Action.js} +0 -0
  146. /package/{html/widget → widget}/CheckBox.js +0 -0
  147. /package/{html/widget → widget}/DatePicker.js +0 -0
  148. /package/{html → widget}/design/Label.design.d.ts +0 -0
  149. /package/{html → widget}/design/Select.design.d.ts +0 -0
  150. /package/{html → widget}/template/Input.d.ts +0 -0
  151. /package/{html → widget}/template/Label.d.ts +0 -0
  152. /package/{html → widget}/template/Label.js +0 -0
  153. /package/{html → widget}/template/Select.d.ts +0 -0
  154. /package/{html → widget}/template/Select.js +0 -0
package/globals.css CHANGED
@@ -1,226 +1,226 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @font-face {
6
- font-family: "Pretendard-Medium";
7
- src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
8
- }
9
-
10
- @font-face {
11
- font-family: "Pretendard-Bold";
12
- src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
13
- }
14
-
15
- @font-face {
16
- font-family: "Pretendard-Light";
17
- src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
18
- }
19
-
20
- @font-face {
21
- font-family: "Kostar";
22
- src: url("./asset/fonts/Kostar.ttf") format("truetype");
23
- }
24
-
25
- @font-face {
26
- font-family: "NicoMoji";
27
- src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
28
- }
29
-
30
- @font-face {
31
- font-family: "Megrim";
32
- src: url("./asset/fonts/Megrim.ttf") format("truetype");
33
- }
34
-
35
- @font-face {
36
- font-family: "Times-Newer-Roman-Bold";
37
- src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
38
- }
39
-
40
- @font-face {
41
- font-family: "Times-Newer-Roman-BoldItalic";
42
- src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
43
- }
44
-
45
- input[type="date"]::-webkit-inner-spin-button,
46
- input[type="date"]::-webkit-calendar-picker-indicator {
47
- display: none;
48
- -webkit-appearance: none;
49
- }
50
-
51
- ::-webkit-scrollbar {
52
- width: 3px;
53
- padding-right: 10px;
54
- }
55
-
56
- ::-webkit-scrollbar-track {
57
- background-color: transparent;
58
- }
59
- ::-webkit-scrollbar-thumb {
60
- background-color: #808080;
61
- opacity: 0.5;
62
- border-radius: 10px;
63
- }
64
-
65
- .box-shadow {
66
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
67
- }
68
-
69
- .box-shadow-sm {
70
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
71
- }
72
-
73
- .border-gradient-green-to-red {
74
- }
75
-
76
- .x-shape {
77
- position: relative;
78
- width: 0.83625rem;
79
- height: 0.83625rem;
80
- }
81
-
82
- .x-shape::before,
83
- .x-shape::after {
84
- content: "";
85
- position: absolute;
86
- top: 50%;
87
- left: 50%;
88
- width: 2.5px;
89
- border-radius: 2px;
90
- height: 100%;
91
- background-color: white;
92
- transform-origin: center;
93
- }
94
-
95
- .x-shape::before {
96
- transform: translate(-50%, -50%) rotate(45deg);
97
- }
98
-
99
- .x-shape::after {
100
- transform: translate(-50%, -50%) rotate(-45deg);
101
- }
102
-
103
- .border-inner {
104
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
105
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
106
- }
107
- .box-shadow-focus:focus {
108
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
109
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
110
- }
111
- .box-shadow-focus-red:focus {
112
- box-shadow: 0px 0px 10px 0px #ff8383;
113
- }
114
- .box-green {
115
- background: rgba(16, 86, 82, 0.1);
116
- color: #105652;
117
- }
118
- .box-green-focus:focus {
119
- background: white;
120
- color: black;
121
- box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
122
- }
123
- /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
124
- .box-inner-shadow:hover {
125
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
126
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
127
- }
128
- /* Date Picker Css */
129
- .react-datepicker__day--selected {
130
- background-color: #105652 !important;
131
- }
132
- .react-datepicker__header {
133
- background: white !important;
134
- border: none !important;
135
- }
136
- .react-datepicker {
137
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
138
- border-radius: 0.375rem !important;
139
- border: none !important;
140
- }
141
- .react-datepicker__day--keyboard-selected {
142
- background-color: white !important;
143
- color: black !important;
144
- }
145
- .react-datepicker__day--outside-month {
146
- color: rgb(161 161 170) !important;
147
- }
148
- .react-datepicker__month-container {
149
- padding-top: 1rem;
150
- padding-left: 1rem;
151
- padding-right: 1rem;
152
- padding-bottom: 0.5rem;
153
- }
154
- .react-datepicker-popper {
155
- transform: translate(0px 295px) !important;
156
- }
157
- .react-datepicker__input-container {
158
- text-align: center !important;
159
- border-radius: 0.375rem !important;
160
- transition: all 0.3s;
161
- }
162
- .react-datepicker__input-container > input {
163
- cursor: pointer !important;
164
- }
165
- .react-datepicker__input-container:hover {
166
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
167
- }
168
- .react-datepicker__navigation {
169
- top: 18px !important;
170
- }
171
- .react-datepicker__navigation--next {
172
- right: 20px !important;
173
- }
174
- .react-datepicker__navigation--previous {
175
- left: 182px !important;
176
- }
177
- .react-datepicker__current-month {
178
- text-align: left !important;
179
- margin-left: 16px !important;
180
- }
181
- .react-datepicker__triangle {
182
- display: none !important;
183
- }
184
- .react-datepicker__children-container {
185
- width: 16rem !important;
186
- }
187
- /* toggle button */
188
- .toggle[type="checkbox"]::before {
189
- content: "";
190
- position: absolute;
191
- left: 1px;
192
- top: 1px;
193
- width: 1.1rem;
194
- height: 1.1rem;
195
- border-radius: 50%;
196
- transform: scale(0.9);
197
- background-color: white;
198
- transition: left 100ms linear;
199
- }
200
- .toggle[type="checkbox"]:checked::before {
201
- background-color: white;
202
- left: 1.32rem;
203
- }
204
- .toggle[type="checkbox"]:checked {
205
- background-color: #105652;
206
- }
207
- .toggle[type="checkbox"]:disabled {
208
- opacity: 0.3;
209
- cursor: not-allowed;
210
- }
211
- .toggle[type="checkbox"]:disabled + span {
212
- opacity: 0.3;
213
- cursor: not-allowed;
214
- }
215
-
216
- /* checkbox */
217
- .check-box[type="checkbox"]:checked {
218
- border-color: transparent;
219
- background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
220
- background-size: 150%;
221
- background-position: 50%;
222
- background-repeat: no-repeat;
223
- }
224
- .check-box[type="checkbox"]:disabled {
225
- background-color: #7f7f7f;
226
- }
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @font-face {
6
+ font-family: "Pretendard-Medium";
7
+ src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: "Pretendard-Bold";
12
+ src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Pretendard-Light";
17
+ src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
18
+ }
19
+
20
+ @font-face {
21
+ font-family: "Kostar";
22
+ src: url("./asset/fonts/Kostar.ttf") format("truetype");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "NicoMoji";
27
+ src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
28
+ }
29
+
30
+ @font-face {
31
+ font-family: "Megrim";
32
+ src: url("./asset/fonts/Megrim.ttf") format("truetype");
33
+ }
34
+
35
+ @font-face {
36
+ font-family: "Times-Newer-Roman-Bold";
37
+ src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
38
+ }
39
+
40
+ @font-face {
41
+ font-family: "Times-Newer-Roman-BoldItalic";
42
+ src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
43
+ }
44
+
45
+ input[type="date"]::-webkit-inner-spin-button,
46
+ input[type="date"]::-webkit-calendar-picker-indicator {
47
+ display: none;
48
+ -webkit-appearance: none;
49
+ }
50
+
51
+ ::-webkit-scrollbar {
52
+ width: 3px;
53
+ padding-right: 10px;
54
+ }
55
+
56
+ ::-webkit-scrollbar-track {
57
+ background-color: transparent;
58
+ }
59
+ ::-webkit-scrollbar-thumb {
60
+ background-color: #808080;
61
+ opacity: 0.5;
62
+ border-radius: 10px;
63
+ }
64
+
65
+ .box-shadow {
66
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
67
+ }
68
+
69
+ .box-shadow-sm {
70
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
71
+ }
72
+
73
+ .border-gradient-green-to-red {
74
+ }
75
+
76
+ .x-shape {
77
+ position: relative;
78
+ width: 0.83625rem;
79
+ height: 0.83625rem;
80
+ }
81
+
82
+ .x-shape::before,
83
+ .x-shape::after {
84
+ content: "";
85
+ position: absolute;
86
+ top: 50%;
87
+ left: 50%;
88
+ width: 2.5px;
89
+ border-radius: 2px;
90
+ height: 100%;
91
+ background-color: white;
92
+ transform-origin: center;
93
+ }
94
+
95
+ .x-shape::before {
96
+ transform: translate(-50%, -50%) rotate(45deg);
97
+ }
98
+
99
+ .x-shape::after {
100
+ transform: translate(-50%, -50%) rotate(-45deg);
101
+ }
102
+
103
+ .border-inner {
104
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
105
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
106
+ }
107
+ .box-shadow-focus:focus {
108
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
109
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
110
+ }
111
+ .box-shadow-focus-red:focus {
112
+ box-shadow: 0px 0px 10px 0px #ff8383;
113
+ }
114
+ .box-green {
115
+ background: rgba(16, 86, 82, 0.1);
116
+ color: #105652;
117
+ }
118
+ .box-green-focus:focus {
119
+ background: white;
120
+ color: black;
121
+ box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
122
+ }
123
+ /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
124
+ .box-inner-shadow:hover {
125
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
126
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
127
+ }
128
+ /* Date Picker Css */
129
+ .react-datepicker__day--selected {
130
+ background-color: #105652 !important;
131
+ }
132
+ .react-datepicker__header {
133
+ background: white !important;
134
+ border: none !important;
135
+ }
136
+ .react-datepicker {
137
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
138
+ border-radius: 0.375rem !important;
139
+ border: none !important;
140
+ }
141
+ .react-datepicker__day--keyboard-selected {
142
+ background-color: white !important;
143
+ color: black !important;
144
+ }
145
+ .react-datepicker__day--outside-month {
146
+ color: rgb(161 161 170) !important;
147
+ }
148
+ .react-datepicker__month-container {
149
+ padding-top: 1rem;
150
+ padding-left: 1rem;
151
+ padding-right: 1rem;
152
+ padding-bottom: 0.5rem;
153
+ }
154
+ .react-datepicker-popper {
155
+ transform: translate(0px 295px) !important;
156
+ }
157
+ .react-datepicker__input-container {
158
+ text-align: center !important;
159
+ border-radius: 0.375rem !important;
160
+ transition: all 0.3s;
161
+ }
162
+ .react-datepicker__input-container > input {
163
+ cursor: pointer !important;
164
+ }
165
+ .react-datepicker__input-container:hover {
166
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
167
+ }
168
+ .react-datepicker__navigation {
169
+ top: 18px !important;
170
+ }
171
+ .react-datepicker__navigation--next {
172
+ right: 20px !important;
173
+ }
174
+ .react-datepicker__navigation--previous {
175
+ left: 182px !important;
176
+ }
177
+ .react-datepicker__current-month {
178
+ text-align: left !important;
179
+ margin-left: 16px !important;
180
+ }
181
+ .react-datepicker__triangle {
182
+ display: none !important;
183
+ }
184
+ .react-datepicker__children-container {
185
+ width: 16rem !important;
186
+ }
187
+ /* toggle button */
188
+ .toggle[type="checkbox"]::before {
189
+ content: "";
190
+ position: absolute;
191
+ left: 1px;
192
+ top: 1px;
193
+ width: 1.1rem;
194
+ height: 1.1rem;
195
+ border-radius: 50%;
196
+ transform: scale(0.9);
197
+ background-color: white;
198
+ transition: left 100ms linear;
199
+ }
200
+ .toggle[type="checkbox"]:checked::before {
201
+ background-color: white;
202
+ left: 1.32rem;
203
+ }
204
+ .toggle[type="checkbox"]:checked {
205
+ background-color: #105652;
206
+ }
207
+ .toggle[type="checkbox"]:disabled {
208
+ opacity: 0.3;
209
+ cursor: not-allowed;
210
+ }
211
+ .toggle[type="checkbox"]:disabled + span {
212
+ opacity: 0.3;
213
+ cursor: not-allowed;
214
+ }
215
+
216
+ /* checkbox */
217
+ .check-box[type="checkbox"]:checked {
218
+ border-color: transparent;
219
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
220
+ background-size: 150%;
221
+ background-position: 50%;
222
+ background-repeat: no-repeat;
223
+ }
224
+ .check-box[type="checkbox"]:disabled {
225
+ background-color: #7f7f7f;
226
+ }
package/hook/useFlag.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { useEffect } from "react";
2
- import { useWidgetStore } from "../store";
2
+ import { useActionStore } from "../store";
3
3
  export default function useFlag({ safe, state, }) {
4
4
  const [value, action] = state;
5
- const { flag, isOwn, setIsOwn } = useWidgetStore();
5
+ const { flag, isOwn, setIsOwn } = useActionStore();
6
6
  safe;
7
7
  useEffect(() => {
8
8
  if (isOwn) {
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import "./globals.css";
2
2
  export * from "./board";
3
3
  export * from "./card";
4
4
  export * from "./layout";
5
- export * from "./html";
5
+ export * from "./widget";
6
6
  export * from "./interaction";
7
7
  export * from "./modal";
8
8
  export * from "./overlay";
package/index.js CHANGED
@@ -2,7 +2,7 @@ import "./globals.css";
2
2
  export * from "./board";
3
3
  export * from "./card";
4
4
  export * from "./layout";
5
- export * from "./html";
5
+ export * from "./widget";
6
6
  export * from "./interaction";
7
7
  export * from "./modal";
8
8
  export * from "./overlay";
@@ -1,6 +1,6 @@
1
- import Jumper from "../widget/Jumper.design";
2
- import Spinner from "../widget/Spinner.design";
3
- import Worm from "../widget/Worm.design";
1
+ import Jumper from "../design/Jumper.design";
2
+ import Spinner from "../design/Spinner.design";
3
+ import Worm from "../design/Worm.design";
4
4
  declare const Loading: {
5
5
  Jumper: typeof Jumper;
6
6
  Spinner: typeof Spinner;
@@ -1,6 +1,6 @@
1
- import Jumper from "../widget/Jumper.design";
2
- import Spinner from "../widget/Spinner.design";
3
- import Worm from "../widget/Worm.design";
1
+ import Jumper from "../design/Jumper.design";
2
+ import Spinner from "../design/Spinner.design";
3
+ import Worm from "../design/Worm.design";
4
4
  const Loading = {
5
5
  Jumper,
6
6
  Spinner,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import ScriptDesign from "../widget/Script.design";
3
- import SignDesign from "../widget/Sign.design";
2
+ import ScriptDesign from "../design/Script.design";
3
+ import SignDesign from "../design/Sign.design";
4
4
  function Script(props) {
5
5
  return _jsx(ScriptDesign, { ...props });
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { HTMLLabelElement } from "./HTMLElement";
2
2
  import { DataField, OnClick } from "./Property";
3
- export interface WidgetEvent {
3
+ export interface ActionEvent {
4
4
  event: string;
5
5
  type: "view" | "modal";
6
6
  }
@@ -15,11 +15,11 @@ export interface ShowAction {
15
15
  isVisible: boolean;
16
16
  }
17
17
  export interface ShowProps {
18
- widgets?: Show[];
18
+ actions?: Show[];
19
19
  children: React.ReactNode;
20
20
  }
21
21
  export interface ReplaceProps {
22
- widgets?: Replace[];
22
+ actions?: Replace[];
23
23
  children: React.ReactNode;
24
24
  }
25
25
  export interface EventsProps {
@@ -1,5 +1,5 @@
1
1
  import { DataField, DataSet, Size, Titles } from "./Property";
2
- import { EventsProps } from "./Widget";
2
+ import { EventsProps } from "./Action";
3
3
  import { HTMLInput, HTMLLabelElement, HTMLSelectElement } from "./HTMLElement";
4
4
  interface OptionsProps {
5
5
  className?: string;
@@ -15,7 +15,7 @@ interface OptionsProps {
15
15
  export interface BoardProps<B> {
16
16
  header?: BoardHeaderProps<B>;
17
17
  children?: React.ReactNode;
18
- widgets?: EventsProps;
18
+ action?: EventsProps;
19
19
  options?: OptionsProps;
20
20
  debug?: string;
21
21
  buttons?: HTMLLabelElement[];
@@ -1,4 +1,5 @@
1
1
  import { Button, DataField, DataSet, Disabled, ImageSize, OnClick, Size, State, Titles } from "./Property";
2
+ import { Flexify } from "./UtilityType";
2
3
  interface CardOptions {
3
4
  className?: string;
4
5
  boundary?: string;
@@ -10,7 +11,7 @@ interface CardOptions {
10
11
  border?: string;
11
12
  onClick?: OnClick;
12
13
  onMouse?: State<boolean>;
13
- overflow?: "hiden" | "y-scroll" | "auto";
14
+ overflow?: string;
14
15
  noPadding?: boolean;
15
16
  padding?: string | false;
16
17
  noShadow?: boolean;
@@ -109,7 +110,7 @@ export interface AddCardProps extends Omit<CardProps, "children"> {
109
110
  onClick: OnClick;
110
111
  }
111
112
  export interface TableCardProps<T> extends Omit<CardProps, "children"> {
112
- dataSet: Omit<DataSet<T>, "renderItem">;
113
+ dataSet: Flexify<DataSet<T>, "renderItem">;
113
114
  dataField?: DataField<T>;
114
115
  options?: CardOptions & {
115
116
  className?: string;
@@ -120,4 +121,10 @@ export interface TableCardProps<T> extends Omit<CardProps, "children"> {
120
121
  noHeader?: boolean;
121
122
  };
122
123
  }
124
+ export interface RollCardProps extends CardProps {
125
+ titles: Titles & {
126
+ icon?: string;
127
+ };
128
+ state: State<boolean>;
129
+ }
123
130
  export {};
@@ -38,10 +38,6 @@ export interface HTMLInput extends HTMLElement {
38
38
  type?: HTMLInputType;
39
39
  label?: HTMLLabelElement;
40
40
  }
41
- export interface HTMLToggleElement extends HTMLElement {
42
- state: State<boolean>;
43
- labels?: [[true, string], [false, string]];
44
- }
45
41
  export type ColorType = "red" | "blue" | "green";
46
42
  export interface HTMLCheckBoxElement extends HTMLElement {
47
43
  state: State<boolean>;
@@ -1,5 +1,5 @@
1
1
  import { OnClick, State } from "./Property";
2
- import { ShowAction } from "./Widget";
2
+ import { ShowAction } from "./Action";
3
3
  interface Notification {
4
4
  id: number;
5
5
  userId: number;
@@ -16,7 +16,7 @@ interface NotificationProps {
16
16
  color?: string;
17
17
  }
18
18
  export interface MenuProps {
19
- action?: ShowAction;
19
+ showAction?: ShowAction;
20
20
  profile?: {
21
21
  name: string;
22
22
  belong: string;
@@ -54,7 +54,7 @@ export interface MyPageProps extends DashboardProps {
54
54
  };
55
55
  }
56
56
  export interface DashboardNotification {
57
- action?: ShowAction;
57
+ showAction?: ShowAction;
58
58
  notifications?: Partial<Notification>[];
59
59
  }
60
60
  export {};
@@ -1,16 +1,19 @@
1
1
  import { Button, Scripts, Size, Titles } from "./Property";
2
- import { ShowAction } from "./Widget";
2
+ import { ShowAction } from "./Action";
3
3
  interface Options {
4
4
  width: Size;
5
5
  height: Size;
6
6
  padding: boolean;
7
7
  buttons: Button[];
8
+ position: string;
8
9
  noClose: boolean;
10
+ noBackground: boolean;
11
+ isShadow: boolean;
9
12
  }
10
13
  interface ModalProps {
11
14
  titles: Titles;
12
15
  children: React.ReactNode;
13
- action?: ShowAction;
16
+ showAction?: ShowAction;
14
17
  className?: string;
15
18
  options?: Partial<Options>;
16
19
  debug?: string;
@@ -1,9 +1,9 @@
1
1
  import { HTMLElementFrame, HTMLLabelElement } from "./HTMLElement";
2
2
  import { Titles } from "./Property";
3
- import { ShowAction } from "./Widget";
3
+ import { ShowAction } from "./Action";
4
4
  export interface OverlayProps {
5
5
  titles: Titles;
6
- action?: ShowAction;
6
+ showAction?: ShowAction;
7
7
  children?: React.ReactNode;
8
8
  }
9
9
  export interface InfoOverlayProps extends OverlayProps {