react-core-ts 4.0.3 → 4.0.4
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/AutoCompleteWithTabFilter.js +1 -1
- package/dist/AutoCompleteWithTabFilter.js.map +1 -1
- package/dist/AutoCompleteWithTreeStructure.js +1 -1
- package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
- package/dist/ReactAutoComplete.js +7 -7
- package/dist/ReactAutoComplete.js.map +1 -1
- package/dist/ReactAutoCompleteDropdown.js +6 -6
- package/dist/ReactAutoCompleteDropdown.js.map +1 -1
- package/dist/ReactAutoCompleteSuggections.js +6 -6
- package/dist/ReactAutoCompleteSuggections.js.map +1 -1
- package/dist/ReactAutoCompleteTableView.js +6 -6
- package/dist/ReactAutoCompleteTableView.js.map +1 -1
- package/dist/ReactTextArea.js +6 -6
- package/dist/ReactTextArea.js.map +1 -1
- package/dist/ReactTextField.js +7 -8
- package/dist/ReactTextField.js.map +1 -1
- package/dist/components/TreeNode.js +1 -1
- package/dist/components/TreeNode.js.map +1 -1
- package/dist/generated/stylesContent.d.ts +1 -1
- package/dist/generated/stylesContent.js +1 -1
- package/dist/generated/stylesContent.js.map +1 -1
- package/dist/react-core-ts.css +227 -12
- package/dist/styles/components/modern-input.css +51 -1
- package/dist/styles/components/qbs-fallbacks.css +174 -0
- package/dist/styles/global.css +1 -0
- package/dist/styles/library-entry.css +1 -0
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ input.qbs-peer.qbs-h-\[25px\],
|
|
|
43
43
|
font-size: 0.75rem;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
input.qbs-peer:focus {
|
|
46
|
+
input.qbs-peer:focus:not(.qbs-input-error) {
|
|
47
47
|
border-color: #001f3f;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -53,6 +53,25 @@ input.qbs-peer:disabled {
|
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/*
|
|
57
|
+
* Error state — must beat `input.qbs-peer` / `:focus` (element+class specificity).
|
|
58
|
+
* Broken Tailwind classes like `focus:qbs-border-error-[#FDA29B]` never ship in CSS.
|
|
59
|
+
*/
|
|
60
|
+
input.qbs-peer.qbs-input-error,
|
|
61
|
+
.qbs-textfield input.qbs-input-error,
|
|
62
|
+
.qbs-autocomplete-container-table-view input.qbs-input-error {
|
|
63
|
+
border-color: #fda29b !important;
|
|
64
|
+
outline: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input.qbs-peer.qbs-input-error:focus,
|
|
68
|
+
.qbs-textfield input.qbs-input-error:focus,
|
|
69
|
+
.qbs-autocomplete-container-table-view input.qbs-input-error:focus {
|
|
70
|
+
border-color: #fda29b !important;
|
|
71
|
+
outline: none;
|
|
72
|
+
box-shadow: 0 0 0 3px rgba(253, 162, 155, 0.35);
|
|
73
|
+
}
|
|
74
|
+
|
|
56
75
|
/* Host-token fallbacks (prefixed utilities that are not in default Tailwind theme) */
|
|
57
76
|
.qbs-border-input-light {
|
|
58
77
|
border-color: #d0d5dd;
|
|
@@ -74,9 +93,29 @@ input.qbs-peer:disabled {
|
|
|
74
93
|
.qbs-text-error-light {
|
|
75
94
|
color: #f04438;
|
|
76
95
|
}
|
|
96
|
+
.qbs-text-error-icon,
|
|
97
|
+
.qbs-text-error-label {
|
|
98
|
+
color: #f04438;
|
|
99
|
+
}
|
|
100
|
+
.qbs-text-warning-icon,
|
|
101
|
+
.qbs-text-warning-label {
|
|
102
|
+
color: #f79009;
|
|
103
|
+
}
|
|
104
|
+
.qbs-text-tick-label {
|
|
105
|
+
color: #28b440;
|
|
106
|
+
}
|
|
77
107
|
.qbs-text-grey-medium {
|
|
78
108
|
color: #667085;
|
|
79
109
|
}
|
|
110
|
+
.qbs-border-grey-light {
|
|
111
|
+
border-color: #d0d5dd;
|
|
112
|
+
}
|
|
113
|
+
.qbs-text-table-bodyColor {
|
|
114
|
+
color: #667085;
|
|
115
|
+
}
|
|
116
|
+
.placeholder-input-label::placeholder {
|
|
117
|
+
color: #667085;
|
|
118
|
+
}
|
|
80
119
|
.qbs-bg-bodyBG {
|
|
81
120
|
background-color: #f9fafb;
|
|
82
121
|
}
|
|
@@ -157,3 +196,14 @@ input.qbs-peer:disabled {
|
|
|
157
196
|
.qbs-border {
|
|
158
197
|
border-style: solid;
|
|
159
198
|
}
|
|
199
|
+
|
|
200
|
+
/* Utilities that apps expect but Tailwind may not emit / lose specificity */
|
|
201
|
+
.qbs-z-1 {
|
|
202
|
+
z-index: 1;
|
|
203
|
+
}
|
|
204
|
+
.qbs-start-\[14px\] {
|
|
205
|
+
inset-inline-start: 14px;
|
|
206
|
+
}
|
|
207
|
+
.hover\:qbs-text-dark:hover {
|
|
208
|
+
color: #101828;
|
|
209
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic / host-token fallbacks that Tailwind may not emit, or that
|
|
3
|
+
* need guaranteed styles when the library is consumed in Vite apps.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* --- Missing important / RTL utilities --- */
|
|
7
|
+
.\!qbs-pt-\[10px\] {
|
|
8
|
+
padding-top: 10px !important;
|
|
9
|
+
}
|
|
10
|
+
.\!qbs-pl-\[45px\] {
|
|
11
|
+
padding-left: 45px !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* TextArea RTL peer-focus nudge (class used in ReactTextArea) */
|
|
15
|
+
[dir='rtl'] .qbs-peer:focus ~ .rtl\:peer-focus\:qbs-translate-x-1\/6,
|
|
16
|
+
.qbs-peer:focus ~ .rtl\:peer-focus\:qbs-translate-x-1\/6:where([dir='rtl'] *) {
|
|
17
|
+
transform: translateX(16.666667%);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* --- Labels / selected chrome --- */
|
|
21
|
+
.qbs-label-text,
|
|
22
|
+
.labels.qbs-label-text {
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
color: #344054;
|
|
26
|
+
line-height: 16px;
|
|
27
|
+
}
|
|
28
|
+
.qbs-selected-label-text {
|
|
29
|
+
color: #344054;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
.qbs-text-hundred-plus {
|
|
36
|
+
font-size: 10px;
|
|
37
|
+
letter-spacing: -0.02em;
|
|
38
|
+
}
|
|
39
|
+
.qbs-text-grey-label {
|
|
40
|
+
color: #667085;
|
|
41
|
+
font-size: 0.875rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* --- Search-on-button chrome --- */
|
|
45
|
+
.qbs-btn-search-on {
|
|
46
|
+
background: transparent;
|
|
47
|
+
border: none;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
color: #667085;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
.qbs-btn-search-on:disabled {
|
|
56
|
+
opacity: 0.7;
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
}
|
|
59
|
+
.qbs-btn-search-on:focus-visible {
|
|
60
|
+
outline: 2px solid #cbd5e1;
|
|
61
|
+
outline-offset: 1px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* --- Adornment hooks --- */
|
|
65
|
+
.qbs-custom-dorpdown-adorement,
|
|
66
|
+
.qbs-auto-dorpdown-adorement,
|
|
67
|
+
.qbs-autocomplete-adorement {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 4px;
|
|
71
|
+
height: 100%;
|
|
72
|
+
padding-right: 4px;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
.adorement {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* --- Loader / empty dropdown padding --- */
|
|
81
|
+
.qbs-autocomplete-loader {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
width: 100%;
|
|
86
|
+
min-height: 64px;
|
|
87
|
+
padding-top: 4rem;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* --- Suggestion list (Name/Count autocomplete) --- */
|
|
92
|
+
.qbs-autocomplete-with-suggection {
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.qbs-suggection-list {
|
|
96
|
+
margin-top: 4px;
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
.qbs-suggection-item {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
padding-top: 4px;
|
|
102
|
+
padding-bottom: 4px;
|
|
103
|
+
}
|
|
104
|
+
.qbs-suggection-item:hover {
|
|
105
|
+
background-color: #f8f8f8;
|
|
106
|
+
}
|
|
107
|
+
.qbs-suggection-label {
|
|
108
|
+
color: #344054;
|
|
109
|
+
font-size: 0.75rem;
|
|
110
|
+
line-height: 1rem;
|
|
111
|
+
}
|
|
112
|
+
.qbs-suggection-count {
|
|
113
|
+
background-color: #f97316;
|
|
114
|
+
color: #fff;
|
|
115
|
+
}
|
|
116
|
+
.qbs-autosuggection-list {
|
|
117
|
+
position: absolute;
|
|
118
|
+
z-index: 50;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Warning / success suggestion containers */
|
|
122
|
+
.suggection-warning-container .qbs-peer {
|
|
123
|
+
border-color: #fdb022;
|
|
124
|
+
}
|
|
125
|
+
.suggection-okey-container .qbs-peer {
|
|
126
|
+
border-color: #28b440;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* --- Radio / checkbox hooks --- */
|
|
130
|
+
.qbs-custom-radio-container {
|
|
131
|
+
gap: 8px;
|
|
132
|
+
}
|
|
133
|
+
.qbs-radio-button {
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* --- Misc icon hooks (no-op safe defaults) --- */
|
|
138
|
+
.qbs-all-dropdow-arrow-icon,
|
|
139
|
+
.qbs-tools-arrow-icon,
|
|
140
|
+
.qbs-tree-single-select-icon {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
vertical-align: middle;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Extra color tokens often expected from host design systems */
|
|
146
|
+
.qbs-text-gray-500 {
|
|
147
|
+
color: #6b7280;
|
|
148
|
+
}
|
|
149
|
+
.qbs-text-gray-700 {
|
|
150
|
+
color: #374151;
|
|
151
|
+
}
|
|
152
|
+
.qbs-text-gray-900 {
|
|
153
|
+
color: #111827;
|
|
154
|
+
}
|
|
155
|
+
.qbs-bg-gray-100 {
|
|
156
|
+
background-color: #f3f4f6;
|
|
157
|
+
}
|
|
158
|
+
.qbs-shadow-gray-300 {
|
|
159
|
+
--tw-shadow-color: #d1d5db;
|
|
160
|
+
}
|
|
161
|
+
.qbs-border-b {
|
|
162
|
+
border-bottom-width: 1px;
|
|
163
|
+
border-bottom-style: solid;
|
|
164
|
+
}
|
|
165
|
+
.qbs-border-r {
|
|
166
|
+
border-right-width: 1px;
|
|
167
|
+
border-right-style: solid;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Ensure focus outline utilities work when host CSS resets outlines */
|
|
171
|
+
.focus-visible\:qbs-outline-slate-100:focus-visible {
|
|
172
|
+
outline: 2px solid #f1f5f9;
|
|
173
|
+
outline-offset: 2px;
|
|
174
|
+
}
|
package/dist/styles/global.css
CHANGED