@rufous/ui 0.1.22 → 0.1.27

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 (39) hide show
  1. package/dist/Buttons/addButton.cjs +1 -1
  2. package/dist/Buttons/addButton.js +1 -1
  3. package/dist/Buttons/index.cjs +1 -1
  4. package/dist/Buttons/index.js +1 -1
  5. package/dist/Dialogs/BaseDialog.cjs +125 -0
  6. package/dist/Dialogs/BaseDialog.css +224 -0
  7. package/dist/Dialogs/BaseDialog.d.cts +30 -0
  8. package/dist/Dialogs/BaseDialog.d.ts +30 -0
  9. package/dist/Dialogs/BaseDialog.js +64 -0
  10. package/dist/Dialogs/index.cjs +131 -0
  11. package/dist/Dialogs/index.css +224 -0
  12. package/dist/Dialogs/index.d.cts +2 -0
  13. package/dist/Dialogs/index.d.ts +2 -0
  14. package/dist/Dialogs/index.js +64 -0
  15. package/dist/chunk-CPLUOEPG.js +91 -0
  16. package/dist/chunk-DE73YGRW.js +8 -0
  17. package/dist/{chunk-5TL73FV7.js → chunk-MB7R5AKK.js} +1 -1
  18. package/dist/chunk-WXXJX3FF.js +8 -0
  19. package/dist/icons/closeIcon.cjs +37 -0
  20. package/dist/icons/closeIcon.d.cts +8 -0
  21. package/dist/icons/closeIcon.d.ts +8 -0
  22. package/dist/icons/closeIcon.js +6 -0
  23. package/dist/icons/index.cjs +14 -0
  24. package/dist/icons/index.d.cts +2 -0
  25. package/dist/icons/index.d.ts +2 -0
  26. package/dist/icons/index.js +48 -40
  27. package/dist/icons/rufousAiIcon.js +3 -4
  28. package/dist/main.cjs +113 -16
  29. package/dist/main.css +146 -0
  30. package/dist/main.d.cts +3 -0
  31. package/dist/main.d.ts +3 -0
  32. package/dist/main.js +53 -41
  33. package/dist/style.css +146 -0
  34. package/dist/styles/button.css +54 -0
  35. package/dist/styles/dialog.css +91 -0
  36. package/dist/styles/dialog.d.cts +2 -0
  37. package/dist/styles/dialog.d.ts +2 -0
  38. package/package.json +1 -1
  39. /package/dist/{chunk-CC7BNJL3.js → chunk-QGUQF6OF.js} +0 -0
package/dist/main.js CHANGED
@@ -1,4 +1,19 @@
1
- import "./chunk-CC7BNJL3.js";
1
+ import {
2
+ BaseDialog_default
3
+ } from "./chunk-CPLUOEPG.js";
4
+ import "./chunk-QGUQF6OF.js";
5
+ import {
6
+ workItemIcon_default
7
+ } from "./chunk-QJPQC544.js";
8
+ import {
9
+ tickIcon_default
10
+ } from "./chunk-ITZTTNM2.js";
11
+ import {
12
+ timerIcon_default
13
+ } from "./chunk-WWAHNTUH.js";
14
+ import {
15
+ trashIcon_default
16
+ } from "./chunk-6KIFTMUN.js";
2
17
  import {
3
18
  unArchivedIcon_default
4
19
  } from "./chunk-ZJAV3FEQ.js";
@@ -15,8 +30,14 @@ import {
15
30
  viewIcon_default
16
31
  } from "./chunk-XPRBPIS5.js";
17
32
  import {
18
- workItemIcon_default
19
- } from "./chunk-QJPQC544.js";
33
+ resendInviteIcon_default
34
+ } from "./chunk-WG3Q6GZN.js";
35
+ import {
36
+ rolesIcon_default
37
+ } from "./chunk-RJ43D3XB.js";
38
+ import {
39
+ rufousAiIcon_default
40
+ } from "./chunk-DE73YGRW.js";
20
41
  import {
21
42
  rufousBirdIcon_default
22
43
  } from "./chunk-DMP72IAP.js";
@@ -33,14 +54,14 @@ import {
33
54
  suspendUserIcon_default
34
55
  } from "./chunk-5BB3H3YO.js";
35
56
  import {
36
- tickIcon_default
37
- } from "./chunk-ITZTTNM2.js";
57
+ questionStatusPrivateIcon_default
58
+ } from "./chunk-WZTZFC36.js";
38
59
  import {
39
- timerIcon_default
40
- } from "./chunk-WWAHNTUH.js";
60
+ questionStatusPublicIcon_default
61
+ } from "./chunk-QA2AYT4A.js";
41
62
  import {
42
- trashIcon_default
43
- } from "./chunk-6KIFTMUN.js";
63
+ questionTypeAllIcon_default
64
+ } from "./chunk-WHGVO3HV.js";
44
65
  import {
45
66
  questionTypeCodingIcon_default
46
67
  } from "./chunk-FOUXNPQA.js";
@@ -57,11 +78,14 @@ import {
57
78
  refreshIcon_default
58
79
  } from "./chunk-RNA4TTYR.js";
59
80
  import {
60
- resendInviteIcon_default
61
- } from "./chunk-WG3Q6GZN.js";
81
+ industryIcon_default
82
+ } from "./chunk-NSW6ZGZF.js";
62
83
  import {
63
- rolesIcon_default
64
- } from "./chunk-RJ43D3XB.js";
84
+ invoiceIcon_default
85
+ } from "./chunk-KYJ3475B.js";
86
+ import {
87
+ logsIcon_default
88
+ } from "./chunk-N4EJKMJK.js";
65
89
  import {
66
90
  minExperienceIcon_default
67
91
  } from "./chunk-MKK7M3BH.js";
@@ -78,14 +102,14 @@ import {
78
102
  questionStatusAllIcon_default
79
103
  } from "./chunk-GYLL3HRD.js";
80
104
  import {
81
- questionStatusPrivateIcon_default
82
- } from "./chunk-WZTZFC36.js";
105
+ editChatIcon_default
106
+ } from "./chunk-QONKYAQ5.js";
83
107
  import {
84
- questionStatusPublicIcon_default
85
- } from "./chunk-QA2AYT4A.js";
108
+ editIcon_default
109
+ } from "./chunk-H372BAXA.js";
86
110
  import {
87
- questionTypeAllIcon_default
88
- } from "./chunk-WHGVO3HV.js";
111
+ engagementIcon_default
112
+ } from "./chunk-FSRABKKC.js";
89
113
  import {
90
114
  functionIcon_default
91
115
  } from "./chunk-ZAYWFYP4.js";
@@ -99,14 +123,14 @@ import {
99
123
  inactiveGroupIcon_default
100
124
  } from "./chunk-7WNPZ4B7.js";
101
125
  import {
102
- industryIcon_default
103
- } from "./chunk-NSW6ZGZF.js";
126
+ closeIcon_default
127
+ } from "./chunk-WXXJX3FF.js";
104
128
  import {
105
- invoiceIcon_default
106
- } from "./chunk-KYJ3475B.js";
129
+ copyIcon_default
130
+ } from "./chunk-6FEUS4CQ.js";
107
131
  import {
108
- logsIcon_default
109
- } from "./chunk-N4EJKMJK.js";
132
+ difficultyAllIcon_default
133
+ } from "./chunk-PPNZC5ZQ.js";
110
134
  import {
111
135
  difficultyEasyIcon_default
112
136
  } from "./chunk-JI5XMLWT.js";
@@ -122,15 +146,6 @@ import {
122
146
  import {
123
147
  downloadIcon_default
124
148
  } from "./chunk-IOEQAR2M.js";
125
- import {
126
- editChatIcon_default
127
- } from "./chunk-QONKYAQ5.js";
128
- import {
129
- editIcon_default
130
- } from "./chunk-H372BAXA.js";
131
- import {
132
- engagementIcon_default
133
- } from "./chunk-FSRABKKC.js";
134
149
  import {
135
150
  RufousThemeProvider,
136
151
  useRufousTheme
@@ -147,16 +162,10 @@ import {
147
162
  import {
148
163
  assignGroupIcon_default
149
164
  } from "./chunk-MNPAE2ZF.js";
150
- import {
151
- copyIcon_default
152
- } from "./chunk-6FEUS4CQ.js";
153
- import {
154
- difficultyAllIcon_default
155
- } from "./chunk-PPNZC5ZQ.js";
156
165
  import "./chunk-JSGUIKOH.js";
157
166
  import {
158
167
  addButton_default
159
- } from "./chunk-5TL73FV7.js";
168
+ } from "./chunk-MB7R5AKK.js";
160
169
  import {
161
170
  cancelButton_default
162
171
  } from "./chunk-UF3Q3GWG.js";
@@ -169,7 +178,9 @@ export {
169
178
  addButton_default as AddButton,
170
179
  archivedIcon_default as ArchivedIcon,
171
180
  assignGroupIcon_default as AssignGroupIcon,
181
+ BaseDialog_default as BaseDialog,
172
182
  cancelButton_default as CancelButton,
183
+ closeIcon_default as CloseIcon,
173
184
  copyIcon_default as CopyIcon,
174
185
  difficultyAllIcon_default as DifficultyAllIcon,
175
186
  difficultyEasyIcon_default as DifficultyEasyIcon,
@@ -202,6 +213,7 @@ export {
202
213
  refreshIcon_default as RefreshIcon,
203
214
  resendInviteIcon_default as ResendInviteIcon,
204
215
  rolesIcon_default as RolesIcon,
216
+ rufousAiIcon_default as RufousAiIcon,
205
217
  rufousBirdIcon_default as RufousBirdIcon,
206
218
  rufousLauncherBird_default as RufousLauncherIcon,
207
219
  RufousThemeProvider,
package/dist/style.css CHANGED
@@ -31,6 +31,59 @@
31
31
  cursor: not-allowed;
32
32
  }
33
33
  .submit-btn {
34
+ display: -webkit-inline-box;
35
+ display: -webkit-inline-flex;
36
+ display: -ms-inline-flexbox;
37
+ display: inline-flex;
38
+ -webkit-align-items: center;
39
+ -webkit-box-align: center;
40
+ -ms-flex-align: center;
41
+ align-items: center;
42
+ -webkit-box-pack: center;
43
+ -ms-flex-pack: center;
44
+ -webkit-justify-content: center;
45
+ justify-content: center;
46
+ position: relative;
47
+ box-sizing: border-box;
48
+ -webkit-tap-highlight-color: transparent;
49
+ background-color: transparent;
50
+ outline: 0;
51
+ margin: 0;
52
+ cursor: pointer;
53
+ -webkit-user-select: none;
54
+ -moz-user-select: none;
55
+ -ms-user-select: none;
56
+ user-select: none;
57
+ vertical-align: middle;
58
+ -moz-appearance: none;
59
+ -webkit-appearance: none;
60
+ -webkit-text-decoration: none;
61
+ text-decoration: none;
62
+ color: inherit;
63
+ font-family:
64
+ "Roboto",
65
+ "Helvetica",
66
+ "Arial",
67
+ sans-serif;
68
+ font-weight: 500;
69
+ font-size: 0.875rem;
70
+ line-height: 1.75;
71
+ letter-spacing: 0.02857em;
72
+ min-width: 64px;
73
+ padding: 6px 8px;
74
+ border-radius: 4px;
75
+ -webkit-transition:
76
+ background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
77
+ box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
78
+ border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
79
+ color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
80
+ transition:
81
+ background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
82
+ box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
83
+ border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
84
+ color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
85
+ background: #a81c07;
86
+ border: 1px solid #a81c07;
34
87
  background-color: #9b1906;
35
88
  color: #fff;
36
89
  font-size: 12px;
@@ -41,6 +94,7 @@
41
94
  border-radius: 6px;
42
95
  cursor: pointer;
43
96
  transition: background-color 250ms ease-in-out;
97
+ font-size: 600;
44
98
  }
45
99
  .submit-btn:hover {
46
100
  background-color: #9b1906;
@@ -67,6 +121,98 @@
67
121
  color: #ffffff;
68
122
  }
69
123
 
124
+ /* lib/styles/dialog.css */
125
+ .dialog-overlay {
126
+ position: fixed;
127
+ inset: 0;
128
+ background: rgba(0, 0, 0, 0.5);
129
+ display: flex;
130
+ justify-content: center;
131
+ align-items: center;
132
+ z-index: 1300;
133
+ }
134
+ .dialog-container {
135
+ background: white;
136
+ border-radius: 8px;
137
+ max-height: 90vh;
138
+ display: flex;
139
+ flex-direction: column;
140
+ }
141
+ .dialog-title {
142
+ background: #fff;
143
+ padding: 8px 16px;
144
+ position: sticky;
145
+ top: 0;
146
+ display: flex;
147
+ justify-content: space-between;
148
+ align-items: center;
149
+ color: #707070;
150
+ z-index: 2;
151
+ }
152
+ .dialog-title h2 {
153
+ font-size: 1.125rem;
154
+ margin: 0;
155
+ }
156
+ .btn-close {
157
+ background: none;
158
+ border: none;
159
+ cursor: pointer;
160
+ }
161
+ .dialog-divider {
162
+ border-top: 1px solid #e0e0e0;
163
+ }
164
+ .dialog-body {
165
+ overflow: auto;
166
+ padding: 16px 30px;
167
+ flex: 1;
168
+ }
169
+ .dialog-footer {
170
+ display: flex;
171
+ gap: 8px;
172
+ padding: 8px 16px;
173
+ }
174
+ .btn-cancel {
175
+ border: 1px solid #a41b06;
176
+ border-radius: 34px;
177
+ padding: 7px 10px;
178
+ background: #fff;
179
+ color: #a41b06;
180
+ font-size: 12px;
181
+ cursor: pointer;
182
+ }
183
+ .btn-cancel:hover {
184
+ background: #f5f5f5;
185
+ }
186
+ .btn-confirm {
187
+ border-radius: 34px;
188
+ padding: 7px 16px;
189
+ background: #a21b07;
190
+ color: white;
191
+ font-size: 12px;
192
+ cursor: pointer;
193
+ border: none;
194
+ }
195
+ .btn-confirm:hover {
196
+ background: #a21b07;
197
+ }
198
+ .spinner {
199
+ border: 2px solid #f3f3f3;
200
+ border-top: 2px solid #c5c5c5;
201
+ border-radius: 50%;
202
+ width: 16px;
203
+ height: 16px;
204
+ animation: spin 1s linear infinite;
205
+ display: inline-block;
206
+ }
207
+ @keyframes spin {
208
+ 0% {
209
+ transform: rotate(0deg);
210
+ }
211
+ 100% {
212
+ transform: rotate(360deg);
213
+ }
214
+ }
215
+
70
216
  /* lib/style.css */
71
217
  .theme-rufous .act-icon svg {
72
218
  color: #a81c08 !important;
@@ -31,6 +31,59 @@
31
31
  cursor: not-allowed;
32
32
  }
33
33
  .submit-btn {
34
+ display: -webkit-inline-box;
35
+ display: -webkit-inline-flex;
36
+ display: -ms-inline-flexbox;
37
+ display: inline-flex;
38
+ -webkit-align-items: center;
39
+ -webkit-box-align: center;
40
+ -ms-flex-align: center;
41
+ align-items: center;
42
+ -webkit-box-pack: center;
43
+ -ms-flex-pack: center;
44
+ -webkit-justify-content: center;
45
+ justify-content: center;
46
+ position: relative;
47
+ box-sizing: border-box;
48
+ -webkit-tap-highlight-color: transparent;
49
+ background-color: transparent;
50
+ outline: 0;
51
+ margin: 0;
52
+ cursor: pointer;
53
+ -webkit-user-select: none;
54
+ -moz-user-select: none;
55
+ -ms-user-select: none;
56
+ user-select: none;
57
+ vertical-align: middle;
58
+ -moz-appearance: none;
59
+ -webkit-appearance: none;
60
+ -webkit-text-decoration: none;
61
+ text-decoration: none;
62
+ color: inherit;
63
+ font-family:
64
+ "Roboto",
65
+ "Helvetica",
66
+ "Arial",
67
+ sans-serif;
68
+ font-weight: 500;
69
+ font-size: 0.875rem;
70
+ line-height: 1.75;
71
+ letter-spacing: 0.02857em;
72
+ min-width: 64px;
73
+ padding: 6px 8px;
74
+ border-radius: 4px;
75
+ -webkit-transition:
76
+ background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
77
+ box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
78
+ border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
79
+ color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
80
+ transition:
81
+ background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
82
+ box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
83
+ border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
84
+ color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
85
+ background: #a81c07;
86
+ border: 1px solid #a81c07;
34
87
  background-color: #9b1906;
35
88
  color: #fff;
36
89
  font-size: 12px;
@@ -41,6 +94,7 @@
41
94
  border-radius: 6px;
42
95
  cursor: pointer;
43
96
  transition: background-color 250ms ease-in-out;
97
+ font-size: 600;
44
98
  }
45
99
  .submit-btn:hover {
46
100
  background-color: #9b1906;
@@ -0,0 +1,91 @@
1
+ /* lib/styles/dialog.css */
2
+ .dialog-overlay {
3
+ position: fixed;
4
+ inset: 0;
5
+ background: rgba(0, 0, 0, 0.5);
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ z-index: 1300;
10
+ }
11
+ .dialog-container {
12
+ background: white;
13
+ border-radius: 8px;
14
+ max-height: 90vh;
15
+ display: flex;
16
+ flex-direction: column;
17
+ }
18
+ .dialog-title {
19
+ background: #fff;
20
+ padding: 8px 16px;
21
+ position: sticky;
22
+ top: 0;
23
+ display: flex;
24
+ justify-content: space-between;
25
+ align-items: center;
26
+ color: #707070;
27
+ z-index: 2;
28
+ }
29
+ .dialog-title h2 {
30
+ font-size: 1.125rem;
31
+ margin: 0;
32
+ }
33
+ .btn-close {
34
+ background: none;
35
+ border: none;
36
+ cursor: pointer;
37
+ }
38
+ .dialog-divider {
39
+ border-top: 1px solid #e0e0e0;
40
+ }
41
+ .dialog-body {
42
+ overflow: auto;
43
+ padding: 16px 30px;
44
+ flex: 1;
45
+ }
46
+ .dialog-footer {
47
+ display: flex;
48
+ gap: 8px;
49
+ padding: 8px 16px;
50
+ }
51
+ .btn-cancel {
52
+ border: 1px solid #a41b06;
53
+ border-radius: 34px;
54
+ padding: 7px 10px;
55
+ background: #fff;
56
+ color: #a41b06;
57
+ font-size: 12px;
58
+ cursor: pointer;
59
+ }
60
+ .btn-cancel:hover {
61
+ background: #f5f5f5;
62
+ }
63
+ .btn-confirm {
64
+ border-radius: 34px;
65
+ padding: 7px 16px;
66
+ background: #a21b07;
67
+ color: white;
68
+ font-size: 12px;
69
+ cursor: pointer;
70
+ border: none;
71
+ }
72
+ .btn-confirm:hover {
73
+ background: #a21b07;
74
+ }
75
+ .spinner {
76
+ border: 2px solid #f3f3f3;
77
+ border-top: 2px solid #c5c5c5;
78
+ border-radius: 50%;
79
+ width: 16px;
80
+ height: 16px;
81
+ animation: spin 1s linear infinite;
82
+ display: inline-block;
83
+ }
84
+ @keyframes spin {
85
+ 0% {
86
+ transform: rotate(0deg);
87
+ }
88
+ 100% {
89
+ transform: rotate(360deg);
90
+ }
91
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rufous/ui",
3
3
  "private": false,
4
- "version": "0.1.22",
4
+ "version": "0.1.27",
5
5
  "type": "module",
6
6
  "style": "./dist/style.css",
7
7
  "files": [
File without changes