@rufous/ui 0.1.63 → 0.2.0-beta.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.
- package/dist/Buttons/addButton.js +1 -0
- package/dist/Buttons/cancelButton.js +1 -0
- package/dist/Buttons/index.cjs +2 -2
- package/dist/Buttons/index.js +3 -2
- package/dist/Buttons/stdButton.js +1 -0
- package/dist/Buttons/submitButton.cjs +2 -2
- package/dist/Buttons/submitButton.js +3 -2
- package/dist/CheckBoxes/CheckBox.cjs +1 -1
- package/dist/CheckBoxes/CheckBox.js +4 -25
- package/dist/Contexts/rufousThemeProvider.cjs +81 -101
- package/dist/Contexts/rufousThemeProvider.js +3 -2
- package/dist/DataGrid/DataGrid.cjs +418 -0
- package/dist/DataGrid/DataGrid.d.cts +8 -0
- package/dist/DataGrid/DataGrid.d.ts +8 -0
- package/dist/DataGrid/DataGrid.js +9 -0
- package/dist/DataGrid/index.cjs +418 -0
- package/dist/DataGrid/index.d.cts +3 -0
- package/dist/DataGrid/index.d.ts +3 -0
- package/dist/DataGrid/index.js +8 -0
- package/dist/{TextFields/FloatingInput.d.cjs → DataGrid/types.cjs} +3 -3
- package/dist/DataGrid/types.d.cts +31 -0
- package/dist/DataGrid/types.d.ts +31 -0
- package/dist/Dialogs/BaseDialog.cjs +18 -10
- package/dist/Dialogs/BaseDialog.css +8247 -162
- package/dist/Dialogs/BaseDialog.d.cts +1 -0
- package/dist/Dialogs/BaseDialog.d.ts +1 -0
- package/dist/Dialogs/BaseDialog.js +39 -32
- package/dist/Dialogs/index.cjs +18 -10
- package/dist/Dialogs/index.css +8247 -162
- package/dist/Dialogs/index.js +39 -32
- package/dist/Editors/RichTextEditor.cjs +29477 -0
- package/dist/Editors/RichTextEditor.css +7179 -0
- package/dist/Editors/RichTextEditor.d.cts +57 -0
- package/dist/Editors/RichTextEditor.d.ts +57 -0
- package/dist/Editors/RichTextEditor.js +9 -0
- package/dist/Editors/index.cjs +29477 -0
- package/dist/Editors/index.css +7179 -0
- package/dist/Editors/index.d.cts +2 -0
- package/dist/Editors/index.d.ts +2 -0
- package/dist/Editors/index.js +8 -0
- package/dist/Progress/circularProgress.cjs +2 -2
- package/dist/Progress/circularProgress.d.cts +3 -3
- package/dist/Progress/circularProgress.d.ts +3 -3
- package/dist/Progress/circularProgress.js +2 -1
- package/dist/TextFields/AddressLookup.cjs +390 -0
- package/dist/TextFields/AddressLookup.d.cts +49 -0
- package/dist/TextFields/AddressLookup.d.ts +49 -0
- package/dist/TextFields/AddressLookup.js +304 -0
- package/dist/TextFields/FloatingInput.cjs +6 -4
- package/dist/TextFields/FloatingInput.d.cts +13 -19
- package/dist/TextFields/FloatingInput.d.ts +13 -19
- package/dist/TextFields/FloatingInput.js +4 -28
- package/dist/chunk-66HHM7VI.js +468 -0
- package/dist/chunk-7KRG7VNW.js +0 -0
- package/dist/{chunk-YRFUVQDN.js → chunk-CTBYVXFP.js} +2 -2
- package/dist/chunk-GJGRMMAQ.js +0 -0
- package/dist/chunk-J6E3UO2W.js +402 -0
- package/dist/chunk-LI4N7JWK.js +39 -0
- package/dist/chunk-QGXXOQJF.js +61 -0
- package/dist/{chunk-AQXTOTWY.js → chunk-TYTZEAV5.js} +19 -11
- package/dist/chunk-UPCMMCPQ.js +34 -0
- package/dist/chunk-WNZLBFLQ.js +73 -0
- package/dist/chunk-X357WQOT.js +29 -0
- package/dist/{chunk-7YKG3WYS.js → chunk-YRLN3TBF.js} +1 -1
- package/dist/esm-5T53WHPT.js +27362 -0
- package/dist/icons/activateUserIcon.js +1 -0
- package/dist/icons/archivedIcon.js +1 -0
- package/dist/icons/assignGroupIcon.js +1 -0
- package/dist/icons/closeIcon.js +1 -0
- package/dist/icons/copyIcon.js +1 -0
- package/dist/icons/difficultyAllIcon.js +1 -0
- package/dist/icons/difficultyEasyIcon.js +1 -0
- package/dist/icons/difficultyHardIcon.js +1 -0
- package/dist/icons/difficultyMediumIcon.js +1 -0
- package/dist/icons/dollarIcon.js +1 -0
- package/dist/icons/downloadIcon.js +1 -0
- package/dist/icons/downloadPdfIcon.js +1 -0
- package/dist/icons/editChatIcon.js +1 -0
- package/dist/icons/editIcon.js +1 -0
- package/dist/icons/engagementIcon.js +1 -0
- package/dist/icons/functionIcon.js +1 -0
- package/dist/icons/helpOutlinedIcon.js +1 -0
- package/dist/icons/hierarchyIcon.js +1 -0
- package/dist/icons/inactiveGroupIcon.js +1 -0
- package/dist/icons/index.js +64 -63
- package/dist/icons/industryIcon.js +1 -0
- package/dist/icons/invoiceIcon.js +1 -0
- package/dist/icons/locationPinIcon.js +1 -0
- package/dist/icons/logsIcon.js +1 -0
- package/dist/icons/minExperienceIcon.js +1 -0
- package/dist/icons/nineDotMenuIcon.js +1 -0
- package/dist/icons/notificationIcon.js +1 -0
- package/dist/icons/projectIcon.js +1 -0
- package/dist/icons/qualificationsIcon.js +1 -0
- package/dist/icons/questionStatusAllIcon.js +1 -0
- package/dist/icons/questionStatusPrivateIcon.js +1 -0
- package/dist/icons/questionStatusPublicIcon.js +1 -0
- package/dist/icons/questionTypeAllIcon.js +1 -0
- package/dist/icons/questionTypeCodingIcon.js +1 -0
- package/dist/icons/questionTypeDescriptiveIcon.js +1 -0
- package/dist/icons/questionTypeMultipleIcon.js +1 -0
- package/dist/icons/questionTypeSingleIcon.js +1 -0
- package/dist/icons/refreshIcon.js +1 -0
- package/dist/icons/resendInviteIcon.js +1 -0
- package/dist/icons/rolesIcon.js +1 -0
- package/dist/icons/rufousAiIcon.js +1 -0
- package/dist/icons/rufousBirdIcon.js +1 -0
- package/dist/icons/rufousLauncherBird.js +1 -0
- package/dist/icons/sidebarIcon.js +1 -0
- package/dist/icons/softSkillsIcon.js +1 -0
- package/dist/icons/subscribeIcon.js +1 -0
- package/dist/icons/suspendUserIcon.js +1 -0
- package/dist/icons/technicalSkillsIcon.js +1 -0
- package/dist/icons/tickIcon.js +1 -0
- package/dist/icons/timerIcon.js +1 -0
- package/dist/icons/trashIcon.js +1 -0
- package/dist/icons/unArchivedIcon.js +1 -0
- package/dist/icons/unsubscribeIcon.js +1 -0
- package/dist/icons/uploadIcon.js +1 -0
- package/dist/icons/userAssignIcon.js +1 -0
- package/dist/icons/viewIcon.js +1 -0
- package/dist/icons/workItemIcon.js +1 -0
- package/dist/main.cjs +30097 -223
- package/dist/main.css +8247 -162
- package/dist/main.d.cts +6 -0
- package/dist/main.d.ts +6 -0
- package/dist/main.js +89 -67
- package/dist/style.css +1068 -163
- package/dist/styles/button.css +82 -110
- package/dist/styles/checkbox.css +60 -0
- package/dist/styles/checkbox.d.cts +2 -0
- package/dist/styles/checkbox.d.ts +2 -0
- package/dist/styles/datagrid.css +531 -0
- package/dist/styles/datagrid.d.cts +2 -0
- package/dist/styles/datagrid.d.ts +2 -0
- package/dist/styles/dialog.css +78 -51
- package/dist/styles/editor.css +211 -0
- package/dist/styles/editor.d.cts +2 -0
- package/dist/styles/editor.d.ts +2 -0
- package/dist/utils/constants.cjs +47 -69
- package/dist/utils/constants.d.cts +34 -56
- package/dist/utils/constants.d.ts +34 -56
- package/dist/utils/constants.js +2 -1
- package/package.json +13 -2
- package/dist/TextFields/FloatingInput.d.d.cts +0 -23
- package/dist/TextFields/FloatingInput.d.d.ts +0 -23
- package/dist/chunk-2FHTGYR4.js +0 -83
- package/dist/chunk-BCGCLMKA.js +0 -71
- /package/dist/{TextFields/FloatingInput.d.js → DataGrid/types.js} +0 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* lib/styles/editor.css */
|
|
2
|
+
.rte-wrapper {
|
|
3
|
+
position: relative;
|
|
4
|
+
font-family: var(--font-family, "Roboto", "Helvetica", "Arial", sans-serif);
|
|
5
|
+
}
|
|
6
|
+
.rte-speech-popup {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 2000;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
padding: 8px 14px;
|
|
13
|
+
background: rgba(255, 255, 255, 0.9);
|
|
14
|
+
backdrop-filter: blur(6px);
|
|
15
|
+
border-radius: 10px;
|
|
16
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
|
17
|
+
font-size: 0.85rem;
|
|
18
|
+
font-style: italic;
|
|
19
|
+
color: #212121;
|
|
20
|
+
max-width: 280px;
|
|
21
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
.rte-speech-dot {
|
|
25
|
+
width: 8px;
|
|
26
|
+
height: 8px;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
background: #dc2626;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
animation: rte-pulse 1s ease-in-out infinite;
|
|
31
|
+
}
|
|
32
|
+
@keyframes rte-pulse {
|
|
33
|
+
0%, 100% {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
50% {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.rte-error {
|
|
41
|
+
margin: 4px 14px 0;
|
|
42
|
+
font-size: 0.75rem;
|
|
43
|
+
line-height: 1.66;
|
|
44
|
+
color: #d32f2f;
|
|
45
|
+
}
|
|
46
|
+
.jodit-toolbar__box:not(:empty) {
|
|
47
|
+
background-color: #fff !important;
|
|
48
|
+
}
|
|
49
|
+
.jodit-toolbar-button__button:focus-visible:not([disabled]),
|
|
50
|
+
.jodit-toolbar-button__button:hover:not([disabled]) {
|
|
51
|
+
background-color: #f9e0e0 !important;
|
|
52
|
+
opacity: 1;
|
|
53
|
+
outline: 0;
|
|
54
|
+
}
|
|
55
|
+
.jodit-toolbar-button__button:active:not([disabled]),
|
|
56
|
+
.jodit-toolbar-button__trigger:focus-visible:not([disabled]),
|
|
57
|
+
.jodit-toolbar-button__trigger:hover:not([disabled]) {
|
|
58
|
+
background-color: #f9e0e0 !important;
|
|
59
|
+
}
|
|
60
|
+
.jodit-toolbar-button__button[aria-pressed=true]:not([disabled]) {
|
|
61
|
+
background-color: #f9e0e0 !important;
|
|
62
|
+
}
|
|
63
|
+
.jodit-ui-button_variant_primary {
|
|
64
|
+
background-color: #a81c08 !important;
|
|
65
|
+
}
|
|
66
|
+
.jodit-ui-button_variant_primary:hover:not([disabled]),
|
|
67
|
+
.jodit-ui-button_variant_primary:focus:not([disabled]) {
|
|
68
|
+
background-color: #a81c08 !important;
|
|
69
|
+
outline: 1px solid #a81c08 !important;
|
|
70
|
+
}
|
|
71
|
+
.rte-listening .jodit-toolbar-button_customSpeechRecognize button {
|
|
72
|
+
background-color: #f9e0e0 !important;
|
|
73
|
+
}
|
|
74
|
+
.jodit-checkbox {
|
|
75
|
+
appearance: none;
|
|
76
|
+
width: 18px !important;
|
|
77
|
+
height: 18px !important;
|
|
78
|
+
border: 2px solid #000 !important;
|
|
79
|
+
border-radius: 4px;
|
|
80
|
+
background-color: #fff !important;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
display: inline-block;
|
|
83
|
+
position: relative;
|
|
84
|
+
}
|
|
85
|
+
.jodit-checkbox:checked {
|
|
86
|
+
background-color: #a81c08 !important;
|
|
87
|
+
border-color: #a81c08 !important;
|
|
88
|
+
}
|
|
89
|
+
.jodit-checkbox:checked::before {
|
|
90
|
+
content: "";
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 0px;
|
|
93
|
+
left: 4px;
|
|
94
|
+
width: 5px;
|
|
95
|
+
height: 10px;
|
|
96
|
+
border: solid #fff;
|
|
97
|
+
border-width: 0 2px 2px 0;
|
|
98
|
+
transform: rotate(45deg);
|
|
99
|
+
}
|
|
100
|
+
.jodit-ui-group__aiContinuePrompt,
|
|
101
|
+
.jodit-ui-group__aiTranslateToJapanesePrompt,
|
|
102
|
+
.jodit-ui-group__aiTranslateToArabicPrompt,
|
|
103
|
+
.jodit-ui-group__aiTranslateToRussianPrompt,
|
|
104
|
+
.jodit-ui-group__aiTranslateToKoreanPrompt,
|
|
105
|
+
.jodit-ui-group__aiTranslateToChinesePrompt,
|
|
106
|
+
.jodit-ui-group__aiTranslateToEnglishPrompt,
|
|
107
|
+
.jodit-ui-group__aiTranslateToPortuguesePrompt,
|
|
108
|
+
.jodit-ui-group__aiTranslateToItalianPrompt,
|
|
109
|
+
.jodit-ui-group__aiTranslateToGermanPrompt,
|
|
110
|
+
.jodit-ui-group__aiTranslateToFrenchPrompt,
|
|
111
|
+
.jodit-ui-group__aiTranslateToSpanishPrompt,
|
|
112
|
+
.jodit-ui-group__aiChangeStylePoeticPrompt,
|
|
113
|
+
.jodit-ui-group__aiChangeStyleJournalismPrompt,
|
|
114
|
+
.jodit-ui-group__aiChangeStyleLegalPrompt,
|
|
115
|
+
.jodit-ui-group__aiChangeToneConfidentPrompt,
|
|
116
|
+
.jodit-ui-group__aiChangeToneDirectPrompt,
|
|
117
|
+
.jodit-ui-group__aiChangeToneCasualPrompt,
|
|
118
|
+
.jodit-ui-group__aiChangeToneFriendlyPrompt {
|
|
119
|
+
display: none !important;
|
|
120
|
+
}
|
|
121
|
+
.jodit-popup-container:has(.jodit-toolbar-button_buttonGenerator) {
|
|
122
|
+
display: none !important;
|
|
123
|
+
}
|
|
124
|
+
.jodit-dialog:has(.jodit-ui-button-generator) {
|
|
125
|
+
display: none !important;
|
|
126
|
+
}
|
|
127
|
+
.jodit-wysiwyg .todo-item,
|
|
128
|
+
.rte-wrapper .todo-item {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
margin-left: 0 !important;
|
|
132
|
+
margin-bottom: 4px !important;
|
|
133
|
+
min-height: 24px;
|
|
134
|
+
width: 100%;
|
|
135
|
+
position: relative;
|
|
136
|
+
}
|
|
137
|
+
.jodit-wysiwyg .todo-item-button,
|
|
138
|
+
.rte-wrapper .todo-item-button {
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
margin-right: 8px;
|
|
141
|
+
margin-top: 1px;
|
|
142
|
+
border: none;
|
|
143
|
+
background: transparent;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
padding: 0;
|
|
146
|
+
width: 16px;
|
|
147
|
+
height: 16px;
|
|
148
|
+
min-width: 16px;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
}
|
|
153
|
+
.jodit-wysiwyg .todo-item-button img,
|
|
154
|
+
.rte-wrapper .todo-item-button img {
|
|
155
|
+
width: 16px !important;
|
|
156
|
+
height: 16px !important;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
}
|
|
159
|
+
.jodit-wysiwyg .todo-item-text,
|
|
160
|
+
.rte-wrapper .todo-item-text {
|
|
161
|
+
flex: 1;
|
|
162
|
+
margin-top: -2px;
|
|
163
|
+
word-break: break-word;
|
|
164
|
+
white-space: pre-wrap;
|
|
165
|
+
overflow-wrap: anywhere;
|
|
166
|
+
display: block;
|
|
167
|
+
}
|
|
168
|
+
.mention-jodit {
|
|
169
|
+
background-color: rgba(153, 0, 48, 0.1);
|
|
170
|
+
border-radius: 4px;
|
|
171
|
+
padding: 2px 4px;
|
|
172
|
+
color: #990030;
|
|
173
|
+
}
|
|
174
|
+
.jodit-ui-translate-list__item:hover .jodit-ui-translate-list__item-title,
|
|
175
|
+
.jodit-ui-translate-list__item[data-active=true] .jodit-ui-translate-list__item-title,
|
|
176
|
+
.jodit-ui-translate-list__item:hover .jodit-ui-translate-list__item-key,
|
|
177
|
+
.jodit-ui-translate-list__item[data-active=true] .jodit-ui-translate-list__item-key {
|
|
178
|
+
background-color: #f9e0e0 !important;
|
|
179
|
+
color: #000;
|
|
180
|
+
}
|
|
181
|
+
.jodit-toolbar-button_close {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: 0;
|
|
184
|
+
right: 0;
|
|
185
|
+
background: #fff;
|
|
186
|
+
}
|
|
187
|
+
.jodit-toolbar-button_close .jodit-icon {
|
|
188
|
+
width: 22px !important;
|
|
189
|
+
height: 22px !important;
|
|
190
|
+
}
|
|
191
|
+
.jodit-dialog .jodit-ui-ai-assistant {
|
|
192
|
+
width: 800px;
|
|
193
|
+
}
|
|
194
|
+
@media (max-width: 750px) {
|
|
195
|
+
.jodit-dialog .jodit-ui-ai-assistant {
|
|
196
|
+
width: 500px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
@media (max-width: 500px) {
|
|
200
|
+
.jodit-dialog .jodit-ui-ai-assistant {
|
|
201
|
+
width: 360px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
.todo-option {
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: 5px;
|
|
208
|
+
}
|
|
209
|
+
.todo-option img {
|
|
210
|
+
margin-right: 5px;
|
|
211
|
+
}
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -23,81 +23,59 @@ __export(constants_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(constants_exports);
|
|
25
25
|
var APP_THEMES = {
|
|
26
|
-
default: {
|
|
27
|
-
name: "Default",
|
|
28
|
-
primaryColor: "#707070",
|
|
29
|
-
secondaryColor: "#e0e0e0",
|
|
30
|
-
backgroundColor: "#f5f5f5",
|
|
31
|
-
surfaceColor: "#ffffff",
|
|
32
|
-
iconColor: "#707070",
|
|
33
|
-
textColor: "#2d2d2d",
|
|
34
|
-
textSecondaryColor: "#6f6f6f",
|
|
35
|
-
borderColor: "#dcdcdc",
|
|
36
|
-
hoverColor: "#d4d4d4",
|
|
37
|
-
activeColor: "#5a5a5a",
|
|
38
|
-
button: {
|
|
39
|
-
background: "#707070",
|
|
40
|
-
text: "#ffffff",
|
|
41
|
-
hoverBackground: "#5f5f5f",
|
|
42
|
-
disabledBackground: "#cfcfcf"
|
|
43
|
-
},
|
|
44
|
-
input: {
|
|
45
|
-
background: "#ffffff",
|
|
46
|
-
text: "#2d2d2d",
|
|
47
|
-
border: "#ccc",
|
|
48
|
-
placeholder: "#999",
|
|
49
|
-
focusBorder: "#707070"
|
|
50
|
-
},
|
|
51
|
-
card: {
|
|
52
|
-
background: "#ffffff",
|
|
53
|
-
shadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
54
|
-
},
|
|
55
|
-
sidebar: {
|
|
56
|
-
background: "#e8e8e8",
|
|
57
|
-
text: "#2d2d2d",
|
|
58
|
-
hover: "#dcdcdc"
|
|
59
|
-
},
|
|
60
|
-
success: "#4CAF50",
|
|
61
|
-
warning: "#FFC107",
|
|
62
|
-
error: "#F44336"
|
|
63
|
-
},
|
|
64
26
|
rufous: {
|
|
65
27
|
name: "Rufous",
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
surfaceColor: "#fff",
|
|
70
|
-
iconColor: "#a81c08",
|
|
71
|
-
textColor: "#2d2d2d",
|
|
72
|
-
textSecondaryColor: "#6f6f6f",
|
|
73
|
-
borderColor: "#e5e5e5",
|
|
74
|
-
hoverColor: "#f3c2b9",
|
|
75
|
-
activeColor: "#c01708",
|
|
76
|
-
button: {
|
|
77
|
-
background: "#a81c08",
|
|
78
|
-
text: "#ffffff",
|
|
79
|
-
hoverBackground: "#8f1907",
|
|
80
|
-
disabledBackground: "#f4cccc"
|
|
81
|
-
},
|
|
82
|
-
input: {
|
|
28
|
+
light: {
|
|
29
|
+
primary: "#a41b06",
|
|
30
|
+
secondary: "#8b1605",
|
|
83
31
|
background: "#ffffff",
|
|
32
|
+
surface: "#ffffff",
|
|
84
33
|
text: "#2d2d2d",
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
34
|
+
textSecondary: "#666666",
|
|
35
|
+
border: "#e0e0e0",
|
|
36
|
+
hover: "#fff5f5",
|
|
37
|
+
selection: "#fce4ec",
|
|
38
|
+
icon: "#a41b06"
|
|
88
39
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
40
|
+
dark: {
|
|
41
|
+
primary: "#dc2626",
|
|
42
|
+
secondary: "#a41b06",
|
|
43
|
+
background: "#121212",
|
|
44
|
+
surface: "#1e1e1e",
|
|
45
|
+
text: "#f5f5f5",
|
|
46
|
+
textSecondary: "#b0b0b0",
|
|
47
|
+
border: "#333333",
|
|
48
|
+
hover: "#2d1a1a",
|
|
49
|
+
selection: "#4a1212",
|
|
50
|
+
icon: "#dc2626"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
slate: {
|
|
54
|
+
name: "Slate",
|
|
55
|
+
light: {
|
|
56
|
+
primary: "#334155",
|
|
57
|
+
secondary: "#475569",
|
|
58
|
+
background: "#f8fafc",
|
|
59
|
+
surface: "#ffffff",
|
|
60
|
+
text: "#0f172a",
|
|
61
|
+
textSecondary: "#64748b",
|
|
62
|
+
border: "#e2e8f0",
|
|
63
|
+
hover: "#f1f5f9",
|
|
64
|
+
selection: "#e0f2fe",
|
|
65
|
+
icon: "#334155"
|
|
97
66
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
67
|
+
dark: {
|
|
68
|
+
primary: "#94a3b8",
|
|
69
|
+
secondary: "#64748b",
|
|
70
|
+
background: "#0f172a",
|
|
71
|
+
surface: "#1e293b",
|
|
72
|
+
text: "#f1f5f9",
|
|
73
|
+
textSecondary: "#94a3b8",
|
|
74
|
+
border: "#334155",
|
|
75
|
+
hover: "#1e293b",
|
|
76
|
+
selection: "#0c4a6e",
|
|
77
|
+
icon: "#94a3b8"
|
|
78
|
+
}
|
|
101
79
|
}
|
|
102
80
|
};
|
|
103
81
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,79 +1,57 @@
|
|
|
1
1
|
declare const APP_THEMES: {
|
|
2
|
-
|
|
2
|
+
rufous: {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
surfaceColor: string;
|
|
8
|
-
iconColor: string;
|
|
9
|
-
textColor: string;
|
|
10
|
-
textSecondaryColor: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
hoverColor: string;
|
|
13
|
-
activeColor: string;
|
|
14
|
-
button: {
|
|
15
|
-
background: string;
|
|
16
|
-
text: string;
|
|
17
|
-
hoverBackground: string;
|
|
18
|
-
disabledBackground: string;
|
|
19
|
-
};
|
|
20
|
-
input: {
|
|
4
|
+
light: {
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
21
7
|
background: string;
|
|
8
|
+
surface: string;
|
|
22
9
|
text: string;
|
|
10
|
+
textSecondary: string;
|
|
23
11
|
border: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
card: {
|
|
28
|
-
background: string;
|
|
29
|
-
shadow: string;
|
|
12
|
+
hover: string;
|
|
13
|
+
selection: string;
|
|
14
|
+
icon: string;
|
|
30
15
|
};
|
|
31
|
-
|
|
16
|
+
dark: {
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
32
19
|
background: string;
|
|
20
|
+
surface: string;
|
|
33
21
|
text: string;
|
|
22
|
+
textSecondary: string;
|
|
23
|
+
border: string;
|
|
34
24
|
hover: string;
|
|
25
|
+
selection: string;
|
|
26
|
+
icon: string;
|
|
35
27
|
};
|
|
36
|
-
success: string;
|
|
37
|
-
warning: string;
|
|
38
|
-
error: string;
|
|
39
28
|
};
|
|
40
|
-
|
|
29
|
+
slate: {
|
|
41
30
|
name: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
surfaceColor: string;
|
|
46
|
-
iconColor: string;
|
|
47
|
-
textColor: string;
|
|
48
|
-
textSecondaryColor: string;
|
|
49
|
-
borderColor: string;
|
|
50
|
-
hoverColor: string;
|
|
51
|
-
activeColor: string;
|
|
52
|
-
button: {
|
|
53
|
-
background: string;
|
|
54
|
-
text: string;
|
|
55
|
-
hoverBackground: string;
|
|
56
|
-
disabledBackground: string;
|
|
57
|
-
};
|
|
58
|
-
input: {
|
|
31
|
+
light: {
|
|
32
|
+
primary: string;
|
|
33
|
+
secondary: string;
|
|
59
34
|
background: string;
|
|
35
|
+
surface: string;
|
|
60
36
|
text: string;
|
|
37
|
+
textSecondary: string;
|
|
61
38
|
border: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
card: {
|
|
66
|
-
background: string;
|
|
67
|
-
shadow: string;
|
|
39
|
+
hover: string;
|
|
40
|
+
selection: string;
|
|
41
|
+
icon: string;
|
|
68
42
|
};
|
|
69
|
-
|
|
43
|
+
dark: {
|
|
44
|
+
primary: string;
|
|
45
|
+
secondary: string;
|
|
70
46
|
background: string;
|
|
47
|
+
surface: string;
|
|
71
48
|
text: string;
|
|
49
|
+
textSecondary: string;
|
|
50
|
+
border: string;
|
|
72
51
|
hover: string;
|
|
52
|
+
selection: string;
|
|
53
|
+
icon: string;
|
|
73
54
|
};
|
|
74
|
-
success: string;
|
|
75
|
-
warning: string;
|
|
76
|
-
error: string;
|
|
77
55
|
};
|
|
78
56
|
};
|
|
79
57
|
|
|
@@ -1,79 +1,57 @@
|
|
|
1
1
|
declare const APP_THEMES: {
|
|
2
|
-
|
|
2
|
+
rufous: {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
surfaceColor: string;
|
|
8
|
-
iconColor: string;
|
|
9
|
-
textColor: string;
|
|
10
|
-
textSecondaryColor: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
hoverColor: string;
|
|
13
|
-
activeColor: string;
|
|
14
|
-
button: {
|
|
15
|
-
background: string;
|
|
16
|
-
text: string;
|
|
17
|
-
hoverBackground: string;
|
|
18
|
-
disabledBackground: string;
|
|
19
|
-
};
|
|
20
|
-
input: {
|
|
4
|
+
light: {
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
21
7
|
background: string;
|
|
8
|
+
surface: string;
|
|
22
9
|
text: string;
|
|
10
|
+
textSecondary: string;
|
|
23
11
|
border: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
card: {
|
|
28
|
-
background: string;
|
|
29
|
-
shadow: string;
|
|
12
|
+
hover: string;
|
|
13
|
+
selection: string;
|
|
14
|
+
icon: string;
|
|
30
15
|
};
|
|
31
|
-
|
|
16
|
+
dark: {
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
32
19
|
background: string;
|
|
20
|
+
surface: string;
|
|
33
21
|
text: string;
|
|
22
|
+
textSecondary: string;
|
|
23
|
+
border: string;
|
|
34
24
|
hover: string;
|
|
25
|
+
selection: string;
|
|
26
|
+
icon: string;
|
|
35
27
|
};
|
|
36
|
-
success: string;
|
|
37
|
-
warning: string;
|
|
38
|
-
error: string;
|
|
39
28
|
};
|
|
40
|
-
|
|
29
|
+
slate: {
|
|
41
30
|
name: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
surfaceColor: string;
|
|
46
|
-
iconColor: string;
|
|
47
|
-
textColor: string;
|
|
48
|
-
textSecondaryColor: string;
|
|
49
|
-
borderColor: string;
|
|
50
|
-
hoverColor: string;
|
|
51
|
-
activeColor: string;
|
|
52
|
-
button: {
|
|
53
|
-
background: string;
|
|
54
|
-
text: string;
|
|
55
|
-
hoverBackground: string;
|
|
56
|
-
disabledBackground: string;
|
|
57
|
-
};
|
|
58
|
-
input: {
|
|
31
|
+
light: {
|
|
32
|
+
primary: string;
|
|
33
|
+
secondary: string;
|
|
59
34
|
background: string;
|
|
35
|
+
surface: string;
|
|
60
36
|
text: string;
|
|
37
|
+
textSecondary: string;
|
|
61
38
|
border: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
card: {
|
|
66
|
-
background: string;
|
|
67
|
-
shadow: string;
|
|
39
|
+
hover: string;
|
|
40
|
+
selection: string;
|
|
41
|
+
icon: string;
|
|
68
42
|
};
|
|
69
|
-
|
|
43
|
+
dark: {
|
|
44
|
+
primary: string;
|
|
45
|
+
secondary: string;
|
|
70
46
|
background: string;
|
|
47
|
+
surface: string;
|
|
71
48
|
text: string;
|
|
49
|
+
textSecondary: string;
|
|
50
|
+
border: string;
|
|
72
51
|
hover: string;
|
|
52
|
+
selection: string;
|
|
53
|
+
icon: string;
|
|
73
54
|
};
|
|
74
|
-
success: string;
|
|
75
|
-
warning: string;
|
|
76
|
-
error: string;
|
|
77
55
|
};
|
|
78
56
|
};
|
|
79
57
|
|
package/dist/utils/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rufous/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0-beta.0",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"description": "Experimental: A lightweight React UI component library (Beta)",
|
|
6
7
|
"style": "./dist/style.css",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
@@ -24,14 +25,24 @@
|
|
|
24
25
|
"dev": "vite",
|
|
25
26
|
"build": "tsup lib --dts --format esm,cjs --outDir dist --clean",
|
|
26
27
|
"build:dev": "npm version patch --no-git-tag-version && npm run build",
|
|
28
|
+
"build:staging": "vite build --config vite.app.config.ts",
|
|
27
29
|
"prebuild": "rm -rf dist",
|
|
28
30
|
"lint": "eslint .",
|
|
29
31
|
"preview": "vite preview",
|
|
30
32
|
"build:types": "tsc -p tsconfig.json"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
35
|
+
"@types/crypto-js": "^4.2.2",
|
|
36
|
+
"axios": "^1.13.5",
|
|
37
|
+
"country-state-city": "^3.2.1",
|
|
38
|
+
"crypto-js": "^4.2.0",
|
|
39
|
+
"jodit-react": "^5.3.21",
|
|
40
|
+
"lucide-react": "^0.575.0",
|
|
41
|
+
"motion": "^12.34.3",
|
|
33
42
|
"react": "^18.0.0 || ^19.0.0",
|
|
34
43
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"react-router-dom": "^7.13.1",
|
|
45
|
+
"react-secure-storage": "^1.3.2",
|
|
35
46
|
"rufous-ui": "^0.4.6",
|
|
36
47
|
"vite": "^6.3.5",
|
|
37
48
|
"vite-tsconfig-paths": "^5.1.4"
|
|
@@ -56,4 +67,4 @@
|
|
|
56
67
|
"react": "^18.0.0 || ^19.0.0",
|
|
57
68
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
58
69
|
}
|
|
59
|
-
}
|
|
70
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FloatingInputProps
|
|
4
|
-
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
-
/** Label text shown above the input */
|
|
6
|
-
label: string;
|
|
7
|
-
|
|
8
|
-
/** Name attribute for the input (used for forms) */
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
-
id?: string;
|
|
13
|
-
|
|
14
|
-
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
|
|
17
|
-
/** Optional class name to apply to the outer wrapper */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
-
|
|
23
|
-
export { FloatingInput, type FloatingInputProps };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FloatingInputProps
|
|
4
|
-
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
-
/** Label text shown above the input */
|
|
6
|
-
label: string;
|
|
7
|
-
|
|
8
|
-
/** Name attribute for the input (used for forms) */
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
-
id?: string;
|
|
13
|
-
|
|
14
|
-
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
|
|
17
|
-
/** Optional class name to apply to the outer wrapper */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
-
|
|
23
|
-
export { FloatingInput, type FloatingInputProps };
|