@rufous/ui 0.1.23 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,4 +1,25 @@
1
- import "./chunk-2WPUS5VV.js";
1
+ import {
2
+ BaseDialog_default
3
+ } from "./chunk-CPLUOEPG.js";
4
+ import "./chunk-HYVDDN42.js";
5
+ import {
6
+ viewIcon_default
7
+ } from "./chunk-XPRBPIS5.js";
8
+ import {
9
+ workItemIcon_default
10
+ } from "./chunk-QJPQC544.js";
11
+ import {
12
+ suspendUserIcon_default
13
+ } from "./chunk-5BB3H3YO.js";
14
+ import {
15
+ tickIcon_default
16
+ } from "./chunk-ITZTTNM2.js";
17
+ import {
18
+ timerIcon_default
19
+ } from "./chunk-WWAHNTUH.js";
20
+ import {
21
+ trashIcon_default
22
+ } from "./chunk-6KIFTMUN.js";
2
23
  import {
3
24
  unArchivedIcon_default
4
25
  } from "./chunk-ZJAV3FEQ.js";
@@ -12,11 +33,17 @@ import {
12
33
  userAssignIcon_default
13
34
  } from "./chunk-BH53P2UM.js";
14
35
  import {
15
- viewIcon_default
16
- } from "./chunk-XPRBPIS5.js";
36
+ refreshIcon_default
37
+ } from "./chunk-RNA4TTYR.js";
17
38
  import {
18
- workItemIcon_default
19
- } from "./chunk-QJPQC544.js";
39
+ resendInviteIcon_default
40
+ } from "./chunk-WG3Q6GZN.js";
41
+ import {
42
+ rolesIcon_default
43
+ } from "./chunk-RJ43D3XB.js";
44
+ import {
45
+ rufousAiIcon_default
46
+ } from "./chunk-DE73YGRW.js";
20
47
  import {
21
48
  rufousBirdIcon_default
22
49
  } from "./chunk-DMP72IAP.js";
@@ -30,17 +57,17 @@ import {
30
57
  subscribeIcon_default
31
58
  } from "./chunk-ZDVP4SUD.js";
32
59
  import {
33
- suspendUserIcon_default
34
- } from "./chunk-5BB3H3YO.js";
60
+ questionStatusAllIcon_default
61
+ } from "./chunk-GYLL3HRD.js";
35
62
  import {
36
- tickIcon_default
37
- } from "./chunk-ITZTTNM2.js";
63
+ questionStatusPrivateIcon_default
64
+ } from "./chunk-WZTZFC36.js";
38
65
  import {
39
- timerIcon_default
40
- } from "./chunk-WWAHNTUH.js";
66
+ questionStatusPublicIcon_default
67
+ } from "./chunk-QA2AYT4A.js";
41
68
  import {
42
- trashIcon_default
43
- } from "./chunk-6KIFTMUN.js";
69
+ questionTypeAllIcon_default
70
+ } from "./chunk-WHGVO3HV.js";
44
71
  import {
45
72
  questionTypeCodingIcon_default
46
73
  } from "./chunk-FOUXNPQA.js";
@@ -54,17 +81,17 @@ import {
54
81
  questionTypeSingleIcon_default
55
82
  } from "./chunk-ZJYLZ6I6.js";
56
83
  import {
57
- refreshIcon_default
58
- } from "./chunk-RNA4TTYR.js";
84
+ industryIcon_default
85
+ } from "./chunk-NSW6ZGZF.js";
59
86
  import {
60
- resendInviteIcon_default
61
- } from "./chunk-WG3Q6GZN.js";
87
+ invoiceIcon_default
88
+ } from "./chunk-KYJ3475B.js";
62
89
  import {
63
- rolesIcon_default
64
- } from "./chunk-RJ43D3XB.js";
90
+ locationPinIcon_default
91
+ } from "./chunk-UTYIBUY2.js";
65
92
  import {
66
- rufousAiIcon_default
67
- } from "./chunk-DE73YGRW.js";
93
+ logsIcon_default
94
+ } from "./chunk-N4EJKMJK.js";
68
95
  import {
69
96
  minExperienceIcon_default
70
97
  } from "./chunk-MKK7M3BH.js";
@@ -78,17 +105,14 @@ import {
78
105
  projectIcon_default
79
106
  } from "./chunk-BYJP2WNC.js";
80
107
  import {
81
- questionStatusAllIcon_default
82
- } from "./chunk-GYLL3HRD.js";
83
- import {
84
- questionStatusPrivateIcon_default
85
- } from "./chunk-WZTZFC36.js";
108
+ editChatIcon_default
109
+ } from "./chunk-QONKYAQ5.js";
86
110
  import {
87
- questionStatusPublicIcon_default
88
- } from "./chunk-QA2AYT4A.js";
111
+ editIcon_default
112
+ } from "./chunk-H372BAXA.js";
89
113
  import {
90
- questionTypeAllIcon_default
91
- } from "./chunk-WHGVO3HV.js";
114
+ engagementIcon_default
115
+ } from "./chunk-FSRABKKC.js";
92
116
  import {
93
117
  functionIcon_default
94
118
  } from "./chunk-ZAYWFYP4.js";
@@ -102,14 +126,14 @@ import {
102
126
  inactiveGroupIcon_default
103
127
  } from "./chunk-7WNPZ4B7.js";
104
128
  import {
105
- industryIcon_default
106
- } from "./chunk-NSW6ZGZF.js";
129
+ closeIcon_default
130
+ } from "./chunk-WXXJX3FF.js";
107
131
  import {
108
- invoiceIcon_default
109
- } from "./chunk-KYJ3475B.js";
132
+ copyIcon_default
133
+ } from "./chunk-6FEUS4CQ.js";
110
134
  import {
111
- logsIcon_default
112
- } from "./chunk-N4EJKMJK.js";
135
+ difficultyAllIcon_default
136
+ } from "./chunk-PPNZC5ZQ.js";
113
137
  import {
114
138
  difficultyEasyIcon_default
115
139
  } from "./chunk-JI5XMLWT.js";
@@ -125,15 +149,6 @@ import {
125
149
  import {
126
150
  downloadIcon_default
127
151
  } from "./chunk-IOEQAR2M.js";
128
- import {
129
- editChatIcon_default
130
- } from "./chunk-QONKYAQ5.js";
131
- import {
132
- editIcon_default
133
- } from "./chunk-H372BAXA.js";
134
- import {
135
- engagementIcon_default
136
- } from "./chunk-FSRABKKC.js";
137
152
  import {
138
153
  RufousThemeProvider,
139
154
  useRufousTheme
@@ -150,12 +165,6 @@ import {
150
165
  import {
151
166
  assignGroupIcon_default
152
167
  } from "./chunk-MNPAE2ZF.js";
153
- import {
154
- copyIcon_default
155
- } from "./chunk-6FEUS4CQ.js";
156
- import {
157
- difficultyAllIcon_default
158
- } from "./chunk-PPNZC5ZQ.js";
159
168
  import "./chunk-JSGUIKOH.js";
160
169
  import {
161
170
  addButton_default
@@ -172,7 +181,9 @@ export {
172
181
  addButton_default as AddButton,
173
182
  archivedIcon_default as ArchivedIcon,
174
183
  assignGroupIcon_default as AssignGroupIcon,
184
+ BaseDialog_default as BaseDialog,
175
185
  cancelButton_default as CancelButton,
186
+ closeIcon_default as CloseIcon,
176
187
  copyIcon_default as CopyIcon,
177
188
  difficultyAllIcon_default as DifficultyAllIcon,
178
189
  difficultyEasyIcon_default as DifficultyEasyIcon,
@@ -189,6 +200,7 @@ export {
189
200
  inactiveGroupIcon_default as InactiveGroupIcon,
190
201
  industryIcon_default as IndustryIcon,
191
202
  invoiceIcon_default as InvoiceIcon,
203
+ locationPinIcon_default as LocationPinIcon,
192
204
  logsIcon_default as LogsIcon,
193
205
  minExperienceIcon_default as MinExperienceIcon,
194
206
  nineDotMenuIcon_default as NineDotMenuIcon,
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;
@@ -68,6 +121,98 @@
68
121
  color: #ffffff;
69
122
  }
70
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
+
71
216
  /* lib/style.css */
72
217
  .theme-rufous .act-icon svg {
73
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;
@@ -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.23",
4
+ "version": "0.1.29",
5
5
  "type": "module",
6
6
  "style": "./dist/style.css",
7
7
  "files": [
File without changes