@nightshadeui/components 3.1.1 → 3.3.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.
Files changed (139) hide show
  1. package/README.md +21 -0
  2. package/css.d.ts +2 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
  4. package/dist/_virtual/_rolldown/runtime.js +10 -0
  5. package/dist/components/BaseMenu.css +1 -0
  6. package/dist/components/BaseMenu.js +108 -0
  7. package/dist/components/BaseMenu.vue.d.ts +21 -8
  8. package/dist/components/BaseMenu.vue.d.ts.map +1 -1
  9. package/dist/components/Btn.css +1 -0
  10. package/dist/components/Btn.js +186 -0
  11. package/dist/components/Btn.vue.d.ts +38 -2
  12. package/dist/components/Btn.vue.d.ts.map +1 -1
  13. package/dist/components/Bubble.css +1 -0
  14. package/dist/components/Bubble.js +37 -0
  15. package/dist/components/Bubble.vue.d.ts +12 -2
  16. package/dist/components/Bubble.vue.d.ts.map +1 -1
  17. package/dist/components/Checkbox.css +1 -0
  18. package/dist/components/Checkbox.js +116 -0
  19. package/dist/components/Checkbox.vue.d.ts +15 -3
  20. package/dist/components/Checkbox.vue.d.ts.map +1 -1
  21. package/dist/components/Chip.css +1 -0
  22. package/dist/components/Chip.js +91 -0
  23. package/dist/components/Chip.vue.d.ts +16 -2
  24. package/dist/components/Chip.vue.d.ts.map +1 -1
  25. package/dist/components/ContextMenu.js +56 -0
  26. package/dist/components/ContextMenu.vue.d.ts +28 -8
  27. package/dist/components/ContextMenu.vue.d.ts.map +1 -1
  28. package/dist/components/ContextPopup.js +166 -0
  29. package/dist/components/ContextPopup.vue.d.ts +23 -2
  30. package/dist/components/ContextPopup.vue.d.ts.map +1 -1
  31. package/dist/components/Filler.css +1 -0
  32. package/dist/components/Filler.js +18 -0
  33. package/dist/components/Filler.vue.d.ts +6 -2
  34. package/dist/components/Filler.vue.d.ts.map +1 -1
  35. package/dist/components/HGroup.css +1 -0
  36. package/dist/components/HGroup.js +44 -0
  37. package/dist/components/HGroup.vue.d.ts +21 -8
  38. package/dist/components/HGroup.vue.d.ts.map +1 -1
  39. package/dist/components/InputBase.css +1 -0
  40. package/dist/components/InputBase.js +115 -0
  41. package/dist/components/InputBase.vue.d.ts +16 -2
  42. package/dist/components/InputBase.vue.d.ts.map +1 -1
  43. package/dist/components/InputGroup.css +1 -0
  44. package/dist/components/InputGroup.js +21 -0
  45. package/dist/components/InputGroup.vue.d.ts +12 -2
  46. package/dist/components/InputGroup.vue.d.ts.map +1 -1
  47. package/dist/components/InputSelect.css +1 -0
  48. package/dist/components/InputSelect.js +110 -0
  49. package/dist/components/InputSelect.vue.d.ts +18 -2
  50. package/dist/components/InputSelect.vue.d.ts.map +1 -1
  51. package/dist/components/InputText.css +1 -0
  52. package/dist/components/InputText.js +77 -0
  53. package/dist/components/InputText.vue.d.ts +18 -2
  54. package/dist/components/InputText.vue.d.ts.map +1 -1
  55. package/dist/components/InputTextarea.css +1 -0
  56. package/dist/components/InputTextarea.js +80 -0
  57. package/dist/components/InputTextarea.vue.d.ts +18 -2
  58. package/dist/components/InputTextarea.vue.d.ts.map +1 -1
  59. package/dist/components/ModalOverlay.css +1 -0
  60. package/dist/components/ModalOverlay.js +45 -0
  61. package/dist/components/ModalOverlay.vue.d.ts +12 -2
  62. package/dist/components/ModalOverlay.vue.d.ts.map +1 -1
  63. package/dist/components/RouterBtn.js +39 -0
  64. package/dist/components/RouterBtn.vue.d.ts +10 -2
  65. package/dist/components/RouterBtn.vue.d.ts.map +1 -1
  66. package/dist/components/Slider.css +1 -0
  67. package/dist/components/Slider.js +326 -0
  68. package/dist/components/Slider.vue.d.ts +10 -2
  69. package/dist/components/Slider.vue.d.ts.map +1 -1
  70. package/dist/components/Tab.css +1 -0
  71. package/dist/components/Tab.js +56 -0
  72. package/dist/components/Tab.vue.d.ts +12 -2
  73. package/dist/components/Tab.vue.d.ts.map +1 -1
  74. package/dist/components/TabCap.css +1 -0
  75. package/dist/components/TabCap.js +28 -0
  76. package/dist/components/TabCap.vue.d.ts +6 -2
  77. package/dist/components/TabCap.vue.d.ts.map +1 -1
  78. package/dist/components/Toggle.css +1 -0
  79. package/dist/components/Toggle.js +102 -0
  80. package/dist/components/Toggle.vue.d.ts +6 -2
  81. package/dist/components/Toggle.vue.d.ts.map +1 -1
  82. package/dist/components/ToolPanel.css +1 -0
  83. package/dist/components/ToolPanel.js +33 -0
  84. package/dist/components/ToolPanel.vue.d.ts +12 -2
  85. package/dist/components/ToolPanel.vue.d.ts.map +1 -1
  86. package/dist/components/Tooltip.css +1 -0
  87. package/dist/components/Tooltip.js +97 -0
  88. package/dist/components/Tooltip.vue.d.ts +225 -0
  89. package/dist/components/Tooltip.vue.d.ts.map +1 -0
  90. package/dist/components/VGroup.css +1 -0
  91. package/dist/components/VGroup.js +36 -0
  92. package/dist/components/VGroup.vue.d.ts +21 -8
  93. package/dist/components/VGroup.vue.d.ts.map +1 -1
  94. package/dist/components/index.d.ts +2 -1
  95. package/dist/components/index.d.ts.map +1 -1
  96. package/dist/components/index.js +51 -0
  97. package/dist/components.css +39 -1
  98. package/dist/directives/index.d.ts +2 -0
  99. package/dist/directives/index.d.ts.map +1 -0
  100. package/dist/directives/tooltip.d.ts +14 -0
  101. package/dist/directives/tooltip.d.ts.map +1 -0
  102. package/dist/directives/tooltip.js +23 -0
  103. package/dist/glyphs/GlyphCheck.js +17 -0
  104. package/dist/glyphs/GlyphCheck.vue.d.ts +2 -1
  105. package/dist/glyphs/GlyphCheck.vue.d.ts.map +1 -1
  106. package/dist/glyphs/GlyphXmark.js +17 -0
  107. package/dist/glyphs/GlyphXmark.vue.d.ts +2 -1
  108. package/dist/glyphs/GlyphXmark.vue.d.ts.map +1 -1
  109. package/dist/helpers/props.js +28 -0
  110. package/dist/index.d.ts +1 -0
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +28 -0
  113. package/package.json +14 -8
  114. package/src/components/BaseMenu.vue +36 -29
  115. package/src/components/Btn.vue +197 -191
  116. package/src/components/Bubble.vue +110 -103
  117. package/src/components/Checkbox.vue +93 -86
  118. package/src/components/Chip.vue +109 -102
  119. package/src/components/ContextPopup.vue +9 -1
  120. package/src/components/Filler.vue +21 -14
  121. package/src/components/HGroup.vue +47 -41
  122. package/src/components/InputBase.vue +137 -130
  123. package/src/components/InputGroup.vue +26 -16
  124. package/src/components/InputSelect.vue +28 -21
  125. package/src/components/InputText.vue +24 -17
  126. package/src/components/InputTextarea.vue +31 -24
  127. package/src/components/ModalOverlay.vue +21 -14
  128. package/src/components/Slider.vue +258 -249
  129. package/src/components/Tab.vue +73 -66
  130. package/src/components/TabCap.vue +20 -13
  131. package/src/components/Toggle.vue +102 -95
  132. package/src/components/ToolPanel.vue +36 -35
  133. package/src/components/Tooltip.vue +184 -0
  134. package/src/components/VGroup.vue +43 -37
  135. package/src/components/index.ts +2 -0
  136. package/src/directives/index.ts +1 -0
  137. package/src/directives/tooltip.ts +50 -0
  138. package/src/index.ts +1 -0
  139. package/dist/components.mjs +0 -1719
@@ -121,158 +121,165 @@ export default {
121
121
  </script>
122
122
 
123
123
  <style scoped>
124
- .InputBase {
125
- --InputBase-size: var(--input-major-height);
126
- --InputBase-padding-x: var(--input-major-padding);
127
- --InputBase-padding-y: var(--input-minor-padding);
128
- --InputBase-gap: var(--input-gap);
129
- --InputBase-font-size: var(--input-font-size);
130
-
131
- --InputBase-text: var(--text-base);
132
- --InputBase-background: var(--surface-base);
133
-
134
- --InputBase-outline: transparent;
135
- --InputBase-outline-size: var(--input-outline-size);
136
- --InputBase-outline-offset: var(--input-outline-offset);
137
-
138
- --InputBase-border-size: var(--input-border-size);
139
- --InputBase-border: var(--tone-border);
140
- --InputBase-radius: var(--radius-m);
141
-
142
- --InputBase-shadow: var(--shadow-light);
143
- --InputBase-box-shadow: 0 1px 5px -1px var(--InputBase-shadow) inset;
144
-
145
- --InputBase-label-text: var(--text-base);
146
- --InputBase-label-font-size: var(--font-size-s);
147
-
148
- position: relative;
149
- display: flex;
150
- flex-flow: column nowrap;
151
- outline: 0;
152
- }
124
+ /* The order, stated wherever these styles load first: the styles, then the components */
125
+ @layer nightshade, nightshade-components;
153
126
 
154
- .Container {
155
- position: relative;
156
- z-index: 1;
127
+ @layer nightshade-components {
157
128
 
158
- display: flex;
159
- align-items: center;
160
- box-sizing: border-box;
161
- padding:
162
- calc(var(--InputBase-padding-y) - var(--InputBase-border-size))
163
- calc(var(--InputBase-padding-x) - var(--InputBase-border-size));
164
- gap: var(--InputBase-gap);
165
- width: 100%;
166
- min-height: var(--InputBase-size);
129
+ .InputBase {
130
+ --InputBase-size: var(--input-major-height);
131
+ --InputBase-padding-x: var(--input-major-padding);
132
+ --InputBase-padding-y: var(--input-minor-padding);
133
+ --InputBase-gap: var(--input-gap);
134
+ --InputBase-font-size: var(--input-font-size);
167
135
 
168
- color: var(--InputBase-text);
169
- background: var(--InputBase-background);
170
- box-shadow: var(--InputBase-box-shadow);
136
+ --InputBase-text: var(--text-base);
137
+ --InputBase-background: var(--surface-base);
171
138
 
172
- outline: var(--InputBase-outline-size) solid var(--InputBase-outline);
173
- outline-offset: var(--InputBase-outline-offset);
139
+ --InputBase-outline: transparent;
140
+ --InputBase-outline-size: var(--input-outline-size);
141
+ --InputBase-outline-offset: var(--input-outline-offset);
174
142
 
175
- border: var(--InputBase-border-size) solid var(--InputBase-border);
176
- border-radius: var(--InputBase-radius);
143
+ --InputBase-border-size: var(--input-border-size);
144
+ --InputBase-border: var(--tone-border);
145
+ --InputBase-radius: var(--radius-m);
177
146
 
178
- font-size: var(--InputBase-font-size);
147
+ --InputBase-shadow: var(--shadow-light);
148
+ --InputBase-box-shadow: 0 1px 5px -1px var(--InputBase-shadow) inset;
179
149
 
180
- transition: color .3s, outline .3s, border-radius .3s, filter .3s;
181
- }
150
+ --InputBase-label-text: var(--text-base);
151
+ --InputBase-label-font-size: var(--font-size-s);
182
152
 
183
- /* States */
153
+ position: relative;
154
+ display: flex;
155
+ flex-flow: column nowrap;
156
+ outline: 0;
157
+ }
184
158
 
185
- .InputBase:not(.InputBase-disabled):focus-within, .InputBase.InputBase-forceFocus {
186
- z-index: 10;
187
- --InputBase-outline: var(--tone-focus-outline);
188
- --InputBase-border: var(--tone-focus-border);
189
- --InputBase-label-text: var(--tone-focus-border);
190
- }
159
+ .Container {
160
+ position: relative;
161
+ z-index: 1;
191
162
 
192
- .InputBase-disabled {
193
- --InputBase-background: var(--surface-deep);
194
- }
163
+ display: flex;
164
+ align-items: center;
165
+ box-sizing: border-box;
166
+ padding:
167
+ calc(var(--InputBase-padding-y) - var(--InputBase-border-size))
168
+ calc(var(--InputBase-padding-x) - var(--InputBase-border-size));
169
+ gap: var(--InputBase-gap);
170
+ width: 100%;
171
+ min-height: var(--InputBase-size);
195
172
 
196
- .InputBase-disabled .Container {
197
- opacity: var(--input-disabled-opacity);
198
- filter: var(--input-disabled-filter);
199
- cursor: not-allowed;
200
- }
173
+ color: var(--InputBase-text);
174
+ background: var(--InputBase-background);
175
+ box-shadow: var(--InputBase-box-shadow);
201
176
 
202
- /* Styles */
177
+ outline: var(--InputBase-outline-size) solid var(--InputBase-outline);
178
+ outline-offset: var(--InputBase-outline-offset);
203
179
 
204
- .InputBase-fixedHeight .Container {
205
- height: var(--InputBase-size);
206
- }
180
+ border: var(--InputBase-border-size) solid var(--InputBase-border);
181
+ border-radius: var(--InputBase-radius);
207
182
 
208
- .InputBase-round {
209
- --InputBase-radius: calc(.5 * var(--InputBase-size));
210
- }
183
+ font-size: var(--InputBase-font-size);
211
184
 
212
- .InputBase-flat {
213
- --InputBase-box-shadow: none;
214
- }
185
+ transition: color .3s, outline .3s, border-radius .3s, filter .3s;
186
+ }
215
187
 
216
- /* Labels */
188
+ /* States */
217
189
 
218
- .Label {
219
- max-width: calc(100% - 2 * var(--sp2));
220
- }
190
+ .InputBase:not(.InputBase-disabled):focus-within, .InputBase.InputBase-forceFocus {
191
+ z-index: 10;
192
+ --InputBase-outline: var(--tone-focus-outline);
193
+ --InputBase-border: var(--tone-focus-border);
194
+ --InputBase-label-text: var(--tone-focus-border);
195
+ }
221
196
 
222
- .Label.TabLabel {
223
- align-self: flex-start;
224
- position: relative;
225
- z-index: 0;
226
- margin: 0 var(--sp2);
197
+ .InputBase-disabled {
198
+ --InputBase-background: var(--surface-deep);
199
+ }
227
200
 
228
- --Tab-size: calc(.75 * var(--InputBase-size));
229
- --Tab-cap-size: calc(.75 * var(--InputBase-size));
230
- --Tab-font-size: var(--InputBase-font-size);
231
- }
201
+ .InputBase-disabled .Container {
202
+ opacity: var(--input-disabled-opacity);
203
+ filter: var(--input-disabled-filter);
204
+ cursor: not-allowed;
205
+ }
206
+
207
+ /* Styles */
232
208
 
233
- .Label.TextLabel {
234
- margin: 0 var(--InputBase-padding-x);
235
- height: var(--sp3);
236
- line-height: 1.5;
237
- font-size: var(--InputBase-label-font-size);
209
+ .InputBase-fixedHeight .Container {
210
+ height: var(--InputBase-size);
211
+ }
238
212
 
239
- color: var(--InputBase-text);
213
+ .InputBase-round {
214
+ --InputBase-radius: calc(.5 * var(--InputBase-size));
215
+ }
240
216
 
241
- white-space: nowrap;
242
- overflow: hidden;
243
- text-overflow: ellipsis;
244
- }
217
+ .InputBase-flat {
218
+ --InputBase-box-shadow: none;
219
+ }
220
+
221
+ /* Labels */
222
+
223
+ .Label {
224
+ max-width: calc(100% - 2 * var(--sp2));
225
+ }
226
+
227
+ .Label.TabLabel {
228
+ align-self: flex-start;
229
+ position: relative;
230
+ z-index: 0;
231
+ margin: 0 var(--sp2);
232
+
233
+ --Tab-size: calc(.75 * var(--InputBase-size));
234
+ --Tab-cap-size: calc(.75 * var(--InputBase-size));
235
+ --Tab-font-size: var(--InputBase-font-size);
236
+ }
237
+
238
+ .Label.TextLabel {
239
+ margin: 0 var(--InputBase-padding-x);
240
+ height: var(--sp3);
241
+ line-height: 1.5;
242
+ font-size: var(--InputBase-label-font-size);
243
+
244
+ color: var(--InputBase-text);
245
+
246
+ white-space: nowrap;
247
+ overflow: hidden;
248
+ text-overflow: ellipsis;
249
+ }
250
+
251
+ .Label.InlineLabel {
252
+ position: absolute;
253
+ z-index: 2;
254
+ top: -2px;
255
+ left: -2px;
256
+ margin: 0 var(--InputBase-padding-x);
257
+ padding: 0 2px;
258
+ transform: translateY(-50%);
259
+ height: var(--sp2);
260
+ line-height: var(--sp2);
261
+
262
+ font-size: var(--InputBase-label-font-size);
263
+ border-radius: var(--radius-m);
264
+
265
+ color: var(--InputBase-label-text);
266
+ text-shadow:
267
+ 0 0 3px var(--InputBase-background),
268
+ 0 0 3px var(--InputBase-background),
269
+ 0 0 3px var(--InputBase-background),
270
+ 0 0 3px var(--InputBase-background),
271
+ 0 0 3px var(--InputBase-background),
272
+ 0 0 3px var(--InputBase-background),
273
+ 0 0 3px var(--InputBase-background),
274
+ 0 0 3px var(--InputBase-background),
275
+ 0 0 3px var(--InputBase-background),
276
+ 0 0 3px var(--InputBase-background);
277
+
278
+ user-select: none;
279
+ white-space: nowrap;
280
+ overflow: hidden;
281
+ text-overflow: ellipsis;
282
+ }
245
283
 
246
- .Label.InlineLabel {
247
- position: absolute;
248
- z-index: 2;
249
- top: -2px;
250
- left: -2px;
251
- margin: 0 var(--InputBase-padding-x);
252
- padding: 0 2px;
253
- transform: translateY(-50%);
254
- height: var(--sp2);
255
- line-height: var(--sp2);
256
-
257
- font-size: var(--InputBase-label-font-size);
258
- border-radius: var(--radius-m);
259
-
260
- color: var(--InputBase-label-text);
261
- text-shadow:
262
- 0 0 3px var(--InputBase-background),
263
- 0 0 3px var(--InputBase-background),
264
- 0 0 3px var(--InputBase-background),
265
- 0 0 3px var(--InputBase-background),
266
- 0 0 3px var(--InputBase-background),
267
- 0 0 3px var(--InputBase-background),
268
- 0 0 3px var(--InputBase-background),
269
- 0 0 3px var(--InputBase-background),
270
- 0 0 3px var(--InputBase-background),
271
- 0 0 3px var(--InputBase-background);
272
-
273
- user-select: none;
274
- white-space: nowrap;
275
- overflow: hidden;
276
- text-overflow: ellipsis;
277
284
  }
278
285
  </style>
@@ -21,23 +21,33 @@ export default {
21
21
  </script>
22
22
 
23
23
  <style scoped>
24
- .InputGroup {
25
- display: flex;
26
- flex-flow: row nowrap;
27
- align-items: end;
28
- gap: var(--input-border-size);
29
- }
24
+ /* The order, stated wherever these styles load first: the styles, then the components */
25
+ @layer nightshade, nightshade-components;
30
26
 
31
- /* Joined edges: a control's own frame, or the frame inside a wrapper (`InputText` frames its field in `.InputBase`) */
32
- .InputGroup:deep(> .InputElement:not(:first-child)),
33
- .InputGroup:deep(> :not(:first-child) > .InputElement) {
34
- border-start-start-radius: 0;
35
- border-end-start-radius: 0;
36
- }
27
+ @layer nightshade-components {
28
+
29
+ .InputGroup {
30
+ display: flex;
31
+ flex-flow: row nowrap;
32
+ align-items: end;
33
+ gap: var(--input-border-size);
34
+ }
35
+
36
+ /*
37
+ * Joined edges: a control's own frame, or the frame inside a wrapper
38
+ * (`InputText` frames its field in `.InputBase`)
39
+ */
40
+ .InputGroup:deep(> .InputElement:not(:first-child)),
41
+ .InputGroup:deep(> :not(:first-child) > .InputElement) {
42
+ border-start-start-radius: 0;
43
+ border-end-start-radius: 0;
44
+ }
45
+
46
+ .InputGroup:deep(> .InputElement:not(:last-child)),
47
+ .InputGroup:deep(> :not(:last-child) > .InputElement) {
48
+ border-start-end-radius: 0;
49
+ border-end-end-radius: 0;
50
+ }
37
51
 
38
- .InputGroup:deep(> .InputElement:not(:last-child)),
39
- .InputGroup:deep(> :not(:last-child) > .InputElement) {
40
- border-start-end-radius: 0;
41
- border-end-end-radius: 0;
42
52
  }
43
53
  </style>
@@ -153,28 +153,35 @@ export default {
153
153
  </script>
154
154
 
155
155
  <style scoped>
156
- .InputSelect:not(.InputSelect-disabled) {
157
- cursor: pointer;
158
- }
156
+ /* The order, stated wherever these styles load first: the styles, then the components */
157
+ @layer nightshade, nightshade-components;
159
158
 
160
- select {
161
- -webkit-appearance: none;
162
- appearance: none;
163
- box-sizing: border-box;
164
- flex: 1;
165
- padding: 0;
166
- border: 0;
167
- width: 100%;
168
- min-width: 0;
169
- outline: 0;
170
- user-select: text;
171
- background: transparent;
172
- color: inherit;
173
- font: inherit;
174
- cursor: inherit;
175
- }
159
+ @layer nightshade-components {
160
+
161
+ .InputSelect:not(.InputSelect-disabled) {
162
+ cursor: pointer;
163
+ }
164
+
165
+ select {
166
+ -webkit-appearance: none;
167
+ appearance: none;
168
+ box-sizing: border-box;
169
+ flex: 1;
170
+ padding: 0;
171
+ border: 0;
172
+ width: 100%;
173
+ min-width: 0;
174
+ outline: 0;
175
+ user-select: text;
176
+ background: transparent;
177
+ color: inherit;
178
+ font: inherit;
179
+ cursor: inherit;
180
+ }
181
+
182
+ select[aria-readonly='true'] {
183
+ pointer-events: none;
184
+ }
176
185
 
177
- select[aria-readonly='true'] {
178
- pointer-events: none;
179
186
  }
180
187
  </style>
@@ -81,23 +81,30 @@ export default {
81
81
  </script>
82
82
 
83
83
  <style scoped>
84
- .InputText:not(.InputText-disabled) {
85
- cursor: text;
86
- }
84
+ /* The order, stated wherever these styles load first: the styles, then the components */
85
+ @layer nightshade, nightshade-components;
86
+
87
+ @layer nightshade-components {
88
+
89
+ .InputText:not(.InputText-disabled) {
90
+ cursor: text;
91
+ }
92
+
93
+ input, textarea {
94
+ -webkit-appearance: none;
95
+ box-sizing: border-box;
96
+ flex: 1;
97
+ padding: 0;
98
+ border: 0;
99
+ width: 100%;
100
+ min-width: 0;
101
+ outline: 0;
102
+ user-select: text;
103
+ background: transparent;
104
+ color: inherit;
105
+ font: inherit;
106
+ cursor: inherit;
107
+ }
87
108
 
88
- input, textarea {
89
- -webkit-appearance: none;
90
- box-sizing: border-box;
91
- flex: 1;
92
- padding: 0;
93
- border: 0;
94
- width: 100%;
95
- min-width: 0;
96
- outline: 0;
97
- user-select: text;
98
- background: transparent;
99
- color: inherit;
100
- font: inherit;
101
- cursor: inherit;
102
109
  }
103
110
  </style>
@@ -99,32 +99,39 @@ export default {
99
99
  </script>
100
100
 
101
101
  <style scoped>
102
- .InputTextarea:not(.InputTextarea-disabled) {
103
- cursor: text;
104
- }
102
+ /* The order, stated wherever these styles load first: the styles, then the components */
103
+ @layer nightshade, nightshade-components;
105
104
 
106
- input, textarea {
107
- -webkit-appearance: none;
108
- box-sizing: border-box;
109
- flex: 1;
110
- padding: 0;
111
- border: 0;
112
- width: 100%;
113
- min-width: 0;
114
- outline: 0;
115
- user-select: text;
116
- background: transparent;
117
- color: inherit;
118
- font: inherit;
119
- cursor: inherit;
120
- resize: none;
121
- }
105
+ @layer nightshade-components {
122
106
 
123
- .InputBase:deep(.Container) {
124
- overflow-y: auto;
125
- }
107
+ .InputTextarea:not(.InputTextarea-disabled) {
108
+ cursor: text;
109
+ }
110
+
111
+ input, textarea {
112
+ -webkit-appearance: none;
113
+ box-sizing: border-box;
114
+ flex: 1;
115
+ padding: 0;
116
+ border: 0;
117
+ width: 100%;
118
+ min-width: 0;
119
+ outline: 0;
120
+ user-select: text;
121
+ background: transparent;
122
+ color: inherit;
123
+ font: inherit;
124
+ cursor: inherit;
125
+ resize: none;
126
+ }
127
+
128
+ .InputBase:deep(.Container) {
129
+ overflow-y: auto;
130
+ }
131
+
132
+ textarea {
133
+ align-self: flex-start;
134
+ }
126
135
 
127
- textarea {
128
- align-self: flex-start;
129
136
  }
130
137
  </style>
@@ -53,22 +53,29 @@ export default {
53
53
  </script>
54
54
 
55
55
  <style scoped>
56
- .ModalOverlay {
57
- --ModalOverlay-background: var(--surface-overlay);
56
+ /* The order, stated wherever these styles load first: the styles, then the components */
57
+ @layer nightshade, nightshade-components;
58
58
 
59
- position: fixed;
60
- z-index: 2000;
61
- inset: 0;
62
- pointer-events: none;
63
- }
59
+ @layer nightshade-components {
64
60
 
65
- .ModalOverlay-enabled {
66
- pointer-events: auto;
67
- overscroll-behavior: none;
68
- overflow: auto;
69
- }
61
+ .ModalOverlay {
62
+ --ModalOverlay-background: var(--surface-overlay);
63
+
64
+ position: fixed;
65
+ z-index: 2000;
66
+ inset: 0;
67
+ pointer-events: none;
68
+ }
69
+
70
+ .ModalOverlay-enabled {
71
+ pointer-events: auto;
72
+ overscroll-behavior: none;
73
+ overflow: auto;
74
+ }
75
+
76
+ .ModalOverlay-shown {
77
+ background: var(--ModalOverlay-background);
78
+ }
70
79
 
71
- .ModalOverlay-shown {
72
- background: var(--ModalOverlay-background);
73
80
  }
74
81
  </style>