ywana-core8 0.1.74 → 0.1.76

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 (123) hide show
  1. package/ACCORDION_EVALUATION.md +583 -0
  2. package/CHECKBOX_EVALUATION.md +273 -0
  3. package/CHIP_EVALUATION.md +542 -0
  4. package/COLOR_EVALUATION.md +524 -0
  5. package/COMPONENTS_EVALUATION.md +477 -0
  6. package/FORM_EVALUATION.md +459 -0
  7. package/HEADER_EVALUATION.md +436 -0
  8. package/ICON_EVALUATION.md +254 -0
  9. package/LIST_EVALUATION.md +574 -0
  10. package/PROGRESS_EVALUATION.md +450 -0
  11. package/RADIO_EVALUATION.md +439 -0
  12. package/RADIO_VISUAL_FIX.md +183 -0
  13. package/SECTION_IMPROVEMENTS.md +153 -0
  14. package/SWITCH_EVALUATION.md +335 -0
  15. package/SWITCH_VISUAL_FIX.md +232 -0
  16. package/TAB_EVALUATION.md +626 -0
  17. package/TEXTFIELD_EVALUATION.md +747 -0
  18. package/TOOLTIP_FIX.md +157 -0
  19. package/TREE_EVALUATION.md +708 -0
  20. package/dist/index.cjs +7900 -1615
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.css +6094 -1122
  23. package/dist/index.css.map +1 -1
  24. package/dist/index.modern.js +7929 -1645
  25. package/dist/index.modern.js.map +1 -1
  26. package/dist/index.umd.js +7900 -1615
  27. package/dist/index.umd.js.map +1 -1
  28. package/jest.config.js +24 -0
  29. package/package.json +10 -1
  30. package/src/html/accordion.css +208 -4
  31. package/src/html/accordion.example.js +390 -0
  32. package/src/html/accordion.js +284 -28
  33. package/src/html/accordion.unit.test.js +334 -0
  34. package/src/html/button.css +157 -16
  35. package/src/html/button.example.js +374 -0
  36. package/src/html/button.js +240 -60
  37. package/src/html/button.test.js +422 -0
  38. package/src/html/checkbox.css +74 -2
  39. package/src/html/checkbox.example.js +316 -0
  40. package/src/html/checkbox.js +113 -26
  41. package/src/html/checkbox.test.js +285 -0
  42. package/src/html/chip.css +230 -19
  43. package/src/html/chip.example.js +355 -0
  44. package/src/html/chip.js +321 -25
  45. package/src/html/chip.test.js +425 -0
  46. package/src/html/color.css +435 -6
  47. package/src/html/color.example.js +527 -0
  48. package/src/html/color.js +458 -9
  49. package/src/html/color.test.js +362 -4
  50. package/src/html/components.example.js +492 -0
  51. package/src/html/components_enhanced.test.js +581 -0
  52. package/src/html/form.css +70 -3
  53. package/src/html/form.example.js +385 -0
  54. package/src/html/form.js +232 -34
  55. package/src/html/form.test.js +369 -0
  56. package/src/html/header2.css +264 -0
  57. package/src/html/header2.example.js +411 -0
  58. package/src/html/header2.js +203 -0
  59. package/src/html/header2.test.js +377 -0
  60. package/src/html/icon.css +20 -2
  61. package/src/html/icon.example.js +268 -0
  62. package/src/html/icon.js +86 -16
  63. package/src/html/icon.test.js +231 -0
  64. package/src/html/index.js +1 -1
  65. package/src/html/list.css +393 -1
  66. package/src/html/list.example.js +404 -0
  67. package/src/html/list.js +583 -40
  68. package/src/html/list.test.js +383 -0
  69. package/src/html/progress.css +707 -17
  70. package/src/html/progress.example.js +424 -0
  71. package/src/html/progress.js +906 -9
  72. package/src/html/progress.test.js +313 -0
  73. package/src/html/property.css +399 -0
  74. package/src/html/property.example.js +553 -0
  75. package/src/html/property.js +393 -15
  76. package/src/html/property.test.js +351 -2
  77. package/src/html/radio-visual-test.js +289 -0
  78. package/src/html/radio.css +137 -11
  79. package/src/html/radio.example.js +389 -0
  80. package/src/html/radio.js +234 -10
  81. package/src/html/radio.test.js +318 -0
  82. package/src/html/section.example.js +99 -0
  83. package/src/html/section.js +40 -3
  84. package/src/html/section.test.js +131 -0
  85. package/src/html/selector.css +329 -3
  86. package/src/html/selector.js +369 -23
  87. package/src/html/switch-debug.js +197 -0
  88. package/src/html/switch-test-visual.js +294 -0
  89. package/src/html/switch.css +200 -0
  90. package/src/html/switch.example.js +461 -0
  91. package/src/html/switch.js +283 -23
  92. package/src/html/switch.test.js +355 -0
  93. package/src/html/tab.css +288 -0
  94. package/src/html/tab.example.js +446 -0
  95. package/src/html/tab.js +387 -22
  96. package/src/html/tab_enhanced.js +378 -0
  97. package/src/html/tab_enhanced.test.js +504 -0
  98. package/src/html/table2.css +576 -0
  99. package/src/html/table2.example.js +703 -0
  100. package/src/html/table2.js +1252 -0
  101. package/src/html/table2.migration.md +328 -0
  102. package/src/html/table2.test.js +582 -0
  103. package/src/html/text.css +375 -0
  104. package/src/html/text.js +311 -20
  105. package/src/html/textfield.js +1 -1
  106. package/src/html/textfield2.css +842 -0
  107. package/src/html/textfield2.example.js +499 -0
  108. package/src/html/textfield2.js +1130 -0
  109. package/src/html/textfield2.test.js +950 -0
  110. package/src/html/thumbnail.css +289 -2
  111. package/src/html/thumbnail.js +214 -9
  112. package/src/html/tokenfield.css +449 -1
  113. package/src/html/tokenfield.example.js +503 -0
  114. package/src/html/tokenfield.js +561 -56
  115. package/src/html/tokenfield.test.js +423 -0
  116. package/src/html/tooltip-positioning-demo.js +187 -0
  117. package/src/html/tooltip.css +25 -2
  118. package/src/html/tree.css +228 -0
  119. package/src/html/tree.example.js +475 -0
  120. package/src/html/tree.js +712 -28
  121. package/src/html/tree_enhanced.test.js +495 -0
  122. package/table2.test.js +454 -0
  123. package/src/html/button.tsx +0 -38
package/src/html/tab.css CHANGED
@@ -43,3 +43,291 @@
43
43
  .tab.small {
44
44
  padding: .2rem;
45
45
  }
46
+
47
+ /* Enhanced Tab Styles - New functionality while maintaining compatibility */
48
+
49
+ /* Enhanced Tabs container */
50
+ .tabs--vertical {
51
+ flex-direction: column;
52
+ align-items: stretch;
53
+ max-height: none;
54
+ max-width: 200px;
55
+ }
56
+
57
+ .tabs--scrollable {
58
+ overflow-x: auto;
59
+ scrollbar-width: thin;
60
+ }
61
+
62
+ .tabs--scrollable::-webkit-scrollbar {
63
+ height: 4px;
64
+ }
65
+
66
+ .tabs--scrollable::-webkit-scrollbar-track {
67
+ background: var(--background-color-light, #f5f5f5);
68
+ }
69
+
70
+ .tabs--scrollable::-webkit-scrollbar-thumb {
71
+ background: var(--divider-color, #e0e0e0);
72
+ border-radius: 2px;
73
+ }
74
+
75
+ .tabs--centered {
76
+ justify-content: center;
77
+ }
78
+
79
+ .tabs--disabled {
80
+ opacity: 0.6;
81
+ pointer-events: none;
82
+ }
83
+
84
+ .tabs--animated .tab {
85
+ transition: all 0.2s ease;
86
+ }
87
+
88
+ /* Enhanced Tab styles */
89
+ .tab {
90
+ position: relative;
91
+ outline: none;
92
+ transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
93
+ }
94
+
95
+ .tab:focus {
96
+ outline: 2px solid var(--primary-color, #2196f3);
97
+ outline-offset: -2px;
98
+ }
99
+
100
+ .tab--disabled {
101
+ opacity: 0.6;
102
+ cursor: not-allowed;
103
+ pointer-events: none;
104
+ }
105
+
106
+ .tab--closeable {
107
+ padding-right: 2.5rem;
108
+ }
109
+
110
+ .tab--animated {
111
+ transition: all 0.2s ease;
112
+ }
113
+
114
+ .tab--animated:hover {
115
+ transform: translateY(-1px);
116
+ }
117
+
118
+ .tab--vertical {
119
+ width: 100%;
120
+ justify-content: flex-start;
121
+ text-align: left;
122
+ border-bottom: none;
123
+ border-right: solid 1px var(--divider-color);
124
+ }
125
+
126
+ .tab--vertical.selected {
127
+ border-right-width: 0;
128
+ border-left: solid 3px var(--primary-color, #2196f3);
129
+ }
130
+
131
+ /* Tab content */
132
+ .tab__content {
133
+ display: flex;
134
+ align-items: center;
135
+ gap: 0.5rem;
136
+ flex: 1;
137
+ }
138
+
139
+ /* Tab badge */
140
+ .tab__badge {
141
+ background-color: var(--primary-color, #2196f3);
142
+ color: white;
143
+ font-size: 0.75rem;
144
+ font-weight: 500;
145
+ padding: 0.125rem 0.375rem;
146
+ border-radius: 10px;
147
+ min-width: 1.25rem;
148
+ height: 1.25rem;
149
+ display: flex;
150
+ align-items: center;
151
+ justify-content: center;
152
+ line-height: 1;
153
+ }
154
+
155
+ /* Tab actions */
156
+ .tab__actions {
157
+ margin-left: 0.5rem;
158
+ display: flex;
159
+ align-items: center;
160
+ gap: 0.25rem;
161
+ }
162
+
163
+ /* Tab close button */
164
+ .tab__close {
165
+ position: absolute;
166
+ right: 0.25rem;
167
+ top: 50%;
168
+ transform: translateY(-50%);
169
+ background: none;
170
+ border: none;
171
+ cursor: pointer;
172
+ padding: 0.25rem;
173
+ border-radius: 50%;
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ opacity: 0;
178
+ transition: opacity 0.2s ease, background-color 0.2s ease;
179
+ }
180
+
181
+ .tab:hover .tab__close,
182
+ .tab:focus .tab__close {
183
+ opacity: 1;
184
+ }
185
+
186
+ .tab__close:hover {
187
+ background-color: var(--hover-color, rgba(0, 0, 0, 0.08));
188
+ }
189
+
190
+ /* Stack enhancements */
191
+ .stack {
192
+ position: relative;
193
+ flex: 1;
194
+ overflow: hidden;
195
+ }
196
+
197
+ .stack--animated {
198
+ transition: opacity 0.2s ease;
199
+ }
200
+
201
+ .stack__panel {
202
+ width: 100%;
203
+ height: 100%;
204
+ }
205
+
206
+ .stack__panel--hidden {
207
+ display: none;
208
+ }
209
+
210
+ .stack__panel--active {
211
+ display: block;
212
+ }
213
+
214
+ /* Responsive Design */
215
+ @media (max-width: 768px) {
216
+ .tabs {
217
+ overflow-x: auto;
218
+ scrollbar-width: thin;
219
+ }
220
+
221
+ .tab {
222
+ min-width: 4rem;
223
+ padding: 0 0.75rem;
224
+ font-size: 0.8rem;
225
+ }
226
+
227
+ .tab__badge {
228
+ font-size: 0.7rem;
229
+ padding: 0.1rem 0.3rem;
230
+ min-width: 1rem;
231
+ height: 1rem;
232
+ }
233
+
234
+ .tab--closeable {
235
+ padding-right: 2rem;
236
+ }
237
+
238
+ .tab__close {
239
+ right: 0.125rem;
240
+ padding: 0.125rem;
241
+ }
242
+ }
243
+
244
+ /* Dark Theme Support */
245
+ @media (prefers-color-scheme: dark) {
246
+ .tabs--scrollable::-webkit-scrollbar-track {
247
+ background: var(--background-color-light-dark, #424242);
248
+ }
249
+
250
+ .tabs--scrollable::-webkit-scrollbar-thumb {
251
+ background: var(--divider-color-dark, #616161);
252
+ }
253
+
254
+ .tab {
255
+ color: var(--text-color-dark, #ffffff);
256
+ border-color: var(--divider-color-dark, #616161);
257
+ }
258
+
259
+ .tab:hover {
260
+ background-color: var(--hover-color-dark, rgba(255, 255, 255, 0.08));
261
+ }
262
+
263
+ .tab.selected {
264
+ background-color: var(--paper-color-dark, #424242);
265
+ color: var(--text-color-dark, #ffffff);
266
+ border-color: var(--divider-color-dark, #616161);
267
+ }
268
+
269
+ .tab__close:hover {
270
+ background-color: var(--hover-color-dark, rgba(255, 255, 255, 0.12));
271
+ }
272
+ }
273
+
274
+ /* High Contrast Mode */
275
+ @media (prefers-contrast: high) {
276
+ .tab {
277
+ border-width: 2px;
278
+ }
279
+
280
+ .tab:focus {
281
+ outline-width: 3px;
282
+ }
283
+
284
+ .tab.selected {
285
+ border-bottom-width: 0;
286
+ }
287
+
288
+ .tab--vertical.selected {
289
+ border-left-width: 4px;
290
+ }
291
+ }
292
+
293
+ /* Reduced Motion */
294
+ @media (prefers-reduced-motion: reduce) {
295
+ .tabs--animated .tab,
296
+ .tab--animated,
297
+ .tab__close,
298
+ .stack--animated {
299
+ transition: none;
300
+ }
301
+
302
+ .tab--animated:hover {
303
+ transform: none;
304
+ }
305
+ }
306
+
307
+ /* Print Styles */
308
+ @media print {
309
+ .tabs {
310
+ border-bottom: 2px solid black !important;
311
+ background: white !important;
312
+ }
313
+
314
+ .tab {
315
+ background: white !important;
316
+ color: black !important;
317
+ border: 1px solid black !important;
318
+ }
319
+
320
+ .tab.selected {
321
+ background: #f0f0f0 !important;
322
+ font-weight: bold !important;
323
+ }
324
+
325
+ .tab__close,
326
+ .tab__actions {
327
+ display: none !important;
328
+ }
329
+
330
+ .stack {
331
+ break-inside: avoid;
332
+ }
333
+ }