ywana-core8 0.1.75 → 0.1.77

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 (122) 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 +10893 -1969
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.css +7768 -1096
  23. package/dist/index.css.map +1 -1
  24. package/dist/index.modern.js +10921 -2005
  25. package/dist/index.modern.js.map +1 -1
  26. package/dist/index.umd.js +10893 -1969
  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 +4 -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 +289 -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/textfield2.css +841 -0
  106. package/src/html/textfield2.example.js +1370 -0
  107. package/src/html/textfield2.js +1143 -0
  108. package/src/html/textfield2.test.js +950 -0
  109. package/src/html/thumbnail.css +289 -2
  110. package/src/html/thumbnail.js +214 -9
  111. package/src/html/tokenfield.css +449 -1
  112. package/src/html/tokenfield.example.js +503 -0
  113. package/src/html/tokenfield.js +561 -56
  114. package/src/html/tokenfield.test.js +423 -0
  115. package/src/html/tooltip-positioning-demo.js +187 -0
  116. package/src/html/tooltip.css +25 -2
  117. package/src/html/tree.css +240 -10
  118. package/src/html/tree.example.js +475 -0
  119. package/src/html/tree.js +714 -28
  120. package/src/html/tree_enhanced.test.js +495 -0
  121. package/table2.test.js +454 -0
  122. package/src/html/button.tsx +0 -38
package/src/html/tab.css CHANGED
@@ -43,3 +43,292 @@
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
+ /* Removed focus outline to avoid interfering with selected tab design */
96
+ .tab:focus {
97
+ outline: none;
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
+ border-bottom: solid 1px var(--divider-color);
130
+ }
131
+
132
+ /* Tab content */
133
+ .tab__content {
134
+ display: flex;
135
+ align-items: center;
136
+ gap: 0.5rem;
137
+ flex: 1;
138
+ }
139
+
140
+ /* Tab badge */
141
+ .tab__badge {
142
+ background-color: var(--primary-color, #2196f3);
143
+ color: white;
144
+ font-size: 0.75rem;
145
+ font-weight: 500;
146
+ padding: 0.125rem 0.375rem;
147
+ border-radius: 10px;
148
+ min-width: 1.25rem;
149
+ height: 1.25rem;
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ line-height: 1;
154
+ }
155
+
156
+ /* Tab actions */
157
+ .tab__actions {
158
+ margin-left: 0.5rem;
159
+ display: flex;
160
+ align-items: center;
161
+ gap: 0.25rem;
162
+ }
163
+
164
+ /* Tab close button */
165
+ .tab__close {
166
+ position: absolute;
167
+ right: 0.25rem;
168
+ top: 50%;
169
+ transform: translateY(-50%);
170
+ background: none;
171
+ border: none;
172
+ cursor: pointer;
173
+ padding: 0.25rem;
174
+ border-radius: 50%;
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ opacity: 0;
179
+ transition: opacity 0.2s ease, background-color 0.2s ease;
180
+ }
181
+
182
+ .tab:hover .tab__close,
183
+ .tab:focus .tab__close {
184
+ opacity: 1;
185
+ }
186
+
187
+ .tab__close:hover {
188
+ background-color: var(--hover-color, rgba(0, 0, 0, 0.08));
189
+ }
190
+
191
+ /* Stack enhancements */
192
+ .stack {
193
+ position: relative;
194
+ flex: 1;
195
+ overflow: hidden;
196
+ }
197
+
198
+ .stack--animated {
199
+ transition: opacity 0.2s ease;
200
+ }
201
+
202
+ .stack__panel {
203
+ width: 100%;
204
+ height: 100%;
205
+ }
206
+
207
+ .stack__panel--hidden {
208
+ display: none;
209
+ }
210
+
211
+ .stack__panel--active {
212
+ display: block;
213
+ }
214
+
215
+ /* Responsive Design */
216
+ @media (max-width: 768px) {
217
+ .tabs {
218
+ overflow-x: auto;
219
+ scrollbar-width: thin;
220
+ }
221
+
222
+ .tab {
223
+ min-width: 4rem;
224
+ padding: 0 0.75rem;
225
+ font-size: 0.8rem;
226
+ }
227
+
228
+ .tab__badge {
229
+ font-size: 0.7rem;
230
+ padding: 0.1rem 0.3rem;
231
+ min-width: 1rem;
232
+ height: 1rem;
233
+ }
234
+
235
+ .tab--closeable {
236
+ padding-right: 2rem;
237
+ }
238
+
239
+ .tab__close {
240
+ right: 0.125rem;
241
+ padding: 0.125rem;
242
+ }
243
+ }
244
+
245
+ /* Dark Theme Support */
246
+ @media (prefers-color-scheme: dark) {
247
+ .tabs--scrollable::-webkit-scrollbar-track {
248
+ background: var(--background-color-light-dark, #424242);
249
+ }
250
+
251
+ .tabs--scrollable::-webkit-scrollbar-thumb {
252
+ background: var(--divider-color-dark, #616161);
253
+ }
254
+
255
+ .tab {
256
+ color: var(--text-color-dark, #ffffff);
257
+ border-color: var(--divider-color-dark, #616161);
258
+ }
259
+
260
+ .tab:hover {
261
+ background-color: var(--hover-color-dark, rgba(255, 255, 255, 0.08));
262
+ }
263
+
264
+ .tab.selected {
265
+ background-color: var(--paper-color-dark, #424242);
266
+ color: var(--text-color-dark, #ffffff);
267
+ border-color: var(--divider-color-dark, #616161);
268
+ }
269
+
270
+ .tab__close:hover {
271
+ background-color: var(--hover-color-dark, rgba(255, 255, 255, 0.12));
272
+ }
273
+ }
274
+
275
+ /* High Contrast Mode */
276
+ @media (prefers-contrast: high) {
277
+ .tab {
278
+ border-width: 2px;
279
+ }
280
+
281
+ .tab:focus {
282
+ outline: none;
283
+ }
284
+
285
+ .tab.selected {
286
+ border-bottom-width: 0;
287
+ }
288
+
289
+ .tab--vertical.selected {
290
+ border-left-width: 4px;
291
+ }
292
+ }
293
+
294
+ /* Reduced Motion */
295
+ @media (prefers-reduced-motion: reduce) {
296
+ .tabs--animated .tab,
297
+ .tab--animated,
298
+ .tab__close,
299
+ .stack--animated {
300
+ transition: none;
301
+ }
302
+
303
+ .tab--animated:hover {
304
+ transform: none;
305
+ }
306
+ }
307
+
308
+ /* Print Styles */
309
+ @media print {
310
+ .tabs {
311
+ border-bottom: 2px solid black !important;
312
+ background: white !important;
313
+ }
314
+
315
+ .tab {
316
+ background: white !important;
317
+ color: black !important;
318
+ border: 1px solid black !important;
319
+ }
320
+
321
+ .tab.selected {
322
+ background: #f0f0f0 !important;
323
+ font-weight: bold !important;
324
+ }
325
+
326
+ .tab__close,
327
+ .tab__actions {
328
+ display: none !important;
329
+ }
330
+
331
+ .stack {
332
+ break-inside: avoid;
333
+ }
334
+ }