@tangible/ui 0.2.35 → 0.2.36
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/components/index.d.ts +1 -0
- package/components/index.js +3 -0
- package/figma-tokens.json +15 -3
- package/icons/icons.svg +1 -1
- package/icons/sprite-version.js +1 -1
- package/icons/sprite.php +1 -1
- package/package.json +5 -1
- package/skills/building-with-tui/SKILL.md +28 -0
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +23 -10
- package/styles/all.expanded.unlayered.css +23 -10
- package/styles/all.unlayered.css +1 -1
- package/styles/components/accordion.scss +22 -4
- package/styles/components/chip.scss +11 -10
- package/styles/components/table.scss +3 -1
- package/styles/core.css +1 -1
- package/styles/core.unlayered.css +1 -1
- package/styles/index.scss +13 -0
- package/styles/system/_palettes.scss +1 -0
- package/styles/system/_tokens.scss +1 -1
- package/tui-manifest.json +2 -2
- package/utils/color-scheme.d.ts +61 -10
- package/utils/color-scheme.js +101 -12
- package/utils/index.d.ts +1 -2
- package/utils/index.js +1 -1
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
package/styles/all.expanded.css
CHANGED
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
--tui-theme-secondary-base: #6B7280;
|
|
635
635
|
--tui-theme-secondary-soft: #9CA3AF;
|
|
636
636
|
--tui-theme-secondary-subtle: #E5E7EB;
|
|
637
|
-
--tui-theme-secondary-subtlest: #
|
|
637
|
+
--tui-theme-secondary-subtlest: #ECEEF1;
|
|
638
638
|
/* Success */
|
|
639
639
|
--tui-theme-success-strongest: #003008;
|
|
640
640
|
--tui-theme-success-stronger: #005c12;
|
|
@@ -984,6 +984,11 @@
|
|
|
984
984
|
--tui-motion-duration: 0ms;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
+
[data-tui-theme-switching] .tui-interface,
|
|
988
|
+
.tui-interface[data-tui-theme-switching] {
|
|
989
|
+
--tui-motion-duration: 0ms;
|
|
990
|
+
}
|
|
991
|
+
|
|
987
992
|
:where(.tui-interface) {
|
|
988
993
|
--tui-spacing-base: 4px;
|
|
989
994
|
--tui-palette-spacing-1: calc(var(--tui-spacing-base) * 1);
|
|
@@ -1257,8 +1262,15 @@
|
|
|
1257
1262
|
opacity: var(--tui-opacity-disabled);
|
|
1258
1263
|
}
|
|
1259
1264
|
.tui-interface .tui-accordion__heading {
|
|
1260
|
-
margin: 0;
|
|
1261
|
-
|
|
1265
|
+
margin: 0 !important;
|
|
1266
|
+
padding: 0 !important;
|
|
1267
|
+
border: 0 !important;
|
|
1268
|
+
background: none !important;
|
|
1269
|
+
font: inherit !important;
|
|
1270
|
+
color: inherit !important;
|
|
1271
|
+
letter-spacing: inherit !important;
|
|
1272
|
+
text-transform: inherit !important;
|
|
1273
|
+
text-shadow: inherit !important;
|
|
1262
1274
|
}
|
|
1263
1275
|
:where(.tui-interface) .tui-accordion__trigger {
|
|
1264
1276
|
display: flex;
|
|
@@ -2269,9 +2281,9 @@
|
|
|
2269
2281
|
}
|
|
2270
2282
|
}
|
|
2271
2283
|
:where(.tui-interface) .tui-chip {
|
|
2272
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2284
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2273
2285
|
--_fg: var(--tui-chip-fg, var(--tui-theme-secondary-strongest));
|
|
2274
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2286
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2275
2287
|
--_icon: var(--tui-chip-icon, inherit);
|
|
2276
2288
|
--_radius: var(--tui-chip-radius, var(--tui-radius-sm));
|
|
2277
2289
|
display: inline-flex;
|
|
@@ -2407,9 +2419,9 @@
|
|
|
2407
2419
|
--_border: var(--tui-chip-border, var(--tui-theme-primary-subtlest));
|
|
2408
2420
|
}
|
|
2409
2421
|
:where(.tui-interface) .tui-chip.is-theme-secondary {
|
|
2410
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2422
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2411
2423
|
--_fg: var(--tui-chip-fg, var(--tui-theme-secondary-stronger));
|
|
2412
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2424
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2413
2425
|
--_icon: var(--tui-chip-icon, var(--tui-theme-secondary-base));
|
|
2414
2426
|
}
|
|
2415
2427
|
:where(.tui-interface) .tui-chip.is-theme-success {
|
|
@@ -2436,14 +2448,14 @@
|
|
|
2436
2448
|
}
|
|
2437
2449
|
@media (hover: hover) {
|
|
2438
2450
|
:where(.tui-interface) .tui-chip.is-style-ghost.is-interactive:hover, :where(.tui-interface) .tui-chip.is-style-ghost:is(a, button, [role=button]):hover, :where(.tui-interface) .tui-chip.is-style-ghost:has(input[type=checkbox], input[type=radio]):hover {
|
|
2439
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2451
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2440
2452
|
}
|
|
2441
2453
|
}
|
|
2442
2454
|
:where(.tui-interface) .tui-chip.is-style-ghost.is-interactive:focus, :where(.tui-interface) .tui-chip.is-style-ghost:is(a, button, [role=button]):focus, :where(.tui-interface) .tui-chip.is-style-ghost:has(input[type=checkbox], input[type=radio]):focus {
|
|
2443
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2455
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2444
2456
|
}
|
|
2445
2457
|
:where(.tui-interface) .tui-chip.is-style-ghost:is(:focus-visible, :active, [aria-pressed=true], .is-selected), :where(.tui-interface) .tui-chip.is-style-ghost:has(input:checked) {
|
|
2446
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2458
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2447
2459
|
}
|
|
2448
2460
|
:where(.tui-interface) .tui-chip.is-style-outline {
|
|
2449
2461
|
--_bg: var(--tui-chip-bg, var(--tui-color-bg-surface));
|
|
@@ -8166,6 +8178,7 @@
|
|
|
8166
8178
|
min-width: max-content;
|
|
8167
8179
|
}
|
|
8168
8180
|
:where(.tui-interface) .tui-table-container {
|
|
8181
|
+
position: relative;
|
|
8169
8182
|
overflow-x: auto;
|
|
8170
8183
|
-webkit-overflow-scrolling: touch;
|
|
8171
8184
|
}
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
--tui-theme-secondary-base: #6B7280;
|
|
635
635
|
--tui-theme-secondary-soft: #9CA3AF;
|
|
636
636
|
--tui-theme-secondary-subtle: #E5E7EB;
|
|
637
|
-
--tui-theme-secondary-subtlest: #
|
|
637
|
+
--tui-theme-secondary-subtlest: #ECEEF1;
|
|
638
638
|
/* Success */
|
|
639
639
|
--tui-theme-success-strongest: #003008;
|
|
640
640
|
--tui-theme-success-stronger: #005c12;
|
|
@@ -984,6 +984,11 @@
|
|
|
984
984
|
--tui-motion-duration: 0ms;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
+
[data-tui-theme-switching] .tui-interface,
|
|
988
|
+
.tui-interface[data-tui-theme-switching] {
|
|
989
|
+
--tui-motion-duration: 0ms;
|
|
990
|
+
}
|
|
991
|
+
|
|
987
992
|
:where(.tui-interface) {
|
|
988
993
|
--tui-spacing-base: 4px;
|
|
989
994
|
--tui-palette-spacing-1: calc(var(--tui-spacing-base) * 1);
|
|
@@ -1257,8 +1262,15 @@
|
|
|
1257
1262
|
opacity: var(--tui-opacity-disabled);
|
|
1258
1263
|
}
|
|
1259
1264
|
.tui-interface .tui-accordion__heading {
|
|
1260
|
-
margin: 0;
|
|
1261
|
-
|
|
1265
|
+
margin: 0 !important;
|
|
1266
|
+
padding: 0 !important;
|
|
1267
|
+
border: 0 !important;
|
|
1268
|
+
background: none !important;
|
|
1269
|
+
font: inherit !important;
|
|
1270
|
+
color: inherit !important;
|
|
1271
|
+
letter-spacing: inherit !important;
|
|
1272
|
+
text-transform: inherit !important;
|
|
1273
|
+
text-shadow: inherit !important;
|
|
1262
1274
|
}
|
|
1263
1275
|
:where(.tui-interface) .tui-accordion__trigger {
|
|
1264
1276
|
display: flex;
|
|
@@ -2269,9 +2281,9 @@
|
|
|
2269
2281
|
}
|
|
2270
2282
|
}
|
|
2271
2283
|
:where(.tui-interface) .tui-chip {
|
|
2272
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2284
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2273
2285
|
--_fg: var(--tui-chip-fg, var(--tui-theme-secondary-strongest));
|
|
2274
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2286
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2275
2287
|
--_icon: var(--tui-chip-icon, inherit);
|
|
2276
2288
|
--_radius: var(--tui-chip-radius, var(--tui-radius-sm));
|
|
2277
2289
|
display: inline-flex;
|
|
@@ -2407,9 +2419,9 @@
|
|
|
2407
2419
|
--_border: var(--tui-chip-border, var(--tui-theme-primary-subtlest));
|
|
2408
2420
|
}
|
|
2409
2421
|
:where(.tui-interface) .tui-chip.is-theme-secondary {
|
|
2410
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2422
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2411
2423
|
--_fg: var(--tui-chip-fg, var(--tui-theme-secondary-stronger));
|
|
2412
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2424
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2413
2425
|
--_icon: var(--tui-chip-icon, var(--tui-theme-secondary-base));
|
|
2414
2426
|
}
|
|
2415
2427
|
:where(.tui-interface) .tui-chip.is-theme-success {
|
|
@@ -2436,14 +2448,14 @@
|
|
|
2436
2448
|
}
|
|
2437
2449
|
@media (hover: hover) {
|
|
2438
2450
|
:where(.tui-interface) .tui-chip.is-style-ghost.is-interactive:hover, :where(.tui-interface) .tui-chip.is-style-ghost:is(a, button, [role=button]):hover, :where(.tui-interface) .tui-chip.is-style-ghost:has(input[type=checkbox], input[type=radio]):hover {
|
|
2439
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2451
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2440
2452
|
}
|
|
2441
2453
|
}
|
|
2442
2454
|
:where(.tui-interface) .tui-chip.is-style-ghost.is-interactive:focus, :where(.tui-interface) .tui-chip.is-style-ghost:is(a, button, [role=button]):focus, :where(.tui-interface) .tui-chip.is-style-ghost:has(input[type=checkbox], input[type=radio]):focus {
|
|
2443
|
-
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-
|
|
2455
|
+
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
2444
2456
|
}
|
|
2445
2457
|
:where(.tui-interface) .tui-chip.is-style-ghost:is(:focus-visible, :active, [aria-pressed=true], .is-selected), :where(.tui-interface) .tui-chip.is-style-ghost:has(input:checked) {
|
|
2446
|
-
--_border: var(--tui-chip-border, var(--tui-theme-secondary-
|
|
2458
|
+
--_border: var(--tui-chip-border, var(--tui-theme-secondary-subtlest));
|
|
2447
2459
|
}
|
|
2448
2460
|
:where(.tui-interface) .tui-chip.is-style-outline {
|
|
2449
2461
|
--_bg: var(--tui-chip-bg, var(--tui-color-bg-surface));
|
|
@@ -8166,6 +8178,7 @@
|
|
|
8166
8178
|
min-width: max-content;
|
|
8167
8179
|
}
|
|
8168
8180
|
:where(.tui-interface) .tui-table-container {
|
|
8181
|
+
position: relative;
|
|
8169
8182
|
overflow-x: auto;
|
|
8170
8183
|
-webkit-overflow-scrolling: touch;
|
|
8171
8184
|
}
|