tyrell-components 1.0.0-RC13 → 1.0.0-RC15
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/README.md +10 -2
- package/css/tyrell-theme.css +192 -180
- package/css/tyrell.css +23 -0
- package/dist/tyrell-colors-static.css +1 -316
- package/dist/tyrell-theme.css +1 -1454
- package/dist/tyrell.css +1 -1371
- package/dist/tyrell.js +1 -1
- package/lib/base/ty-component.d.ts +20 -10
- package/lib/base/ty-component.js +196 -319
- package/lib/components/button.d.ts +3 -17
- package/lib/components/button.js +261 -295
- package/lib/components/calendar-month.d.ts +4 -50
- package/lib/components/calendar-month.js +443 -582
- package/lib/components/calendar-navigation.d.ts +3 -48
- package/lib/components/calendar-navigation.js +239 -362
- package/lib/components/calendar.d.ts +8 -83
- package/lib/components/calendar.js +616 -829
- package/lib/components/checkbox.d.ts +5 -72
- package/lib/components/checkbox.js +273 -416
- package/lib/components/copy.d.ts +4 -57
- package/lib/components/copy.js +280 -397
- package/lib/components/date-picker.d.ts +21 -163
- package/lib/components/date-picker.js +1143 -1674
- package/lib/components/file-upload.d.ts +9 -15
- package/lib/components/file-upload.js +404 -426
- package/lib/components/icon.d.ts +3 -24
- package/lib/components/icon.js +141 -230
- package/lib/components/input.d.ts +8 -108
- package/lib/components/input.js +593 -784
- package/lib/components/modal.d.ts +17 -26
- package/lib/components/modal.js +340 -484
- package/lib/components/option.d.ts +2 -9
- package/lib/components/option.js +168 -216
- package/lib/components/popup.d.ts +2 -17
- package/lib/components/popup.js +249 -380
- package/lib/components/radio.d.ts +5 -25
- package/lib/components/radio.js +407 -461
- package/lib/components/resize-observer.d.ts +3 -30
- package/lib/components/resize-observer.js +69 -103
- package/lib/components/scroll-container.d.ts +2 -12
- package/lib/components/scroll-container.js +293 -338
- package/lib/components/select.d.ts +87 -159
- package/lib/components/select.js +1609 -2090
- package/lib/components/selected-tags.d.ts +5 -48
- package/lib/components/selected-tags.js +188 -276
- package/lib/components/step.d.ts +1 -6
- package/lib/components/step.js +62 -68
- package/lib/components/switch.d.ts +1 -12
- package/lib/components/switch.js +214 -247
- package/lib/components/tab.d.ts +1 -6
- package/lib/components/tab.js +62 -69
- package/lib/components/tabs.d.ts +6 -63
- package/lib/components/tabs.js +545 -777
- package/lib/components/tag.d.ts +3 -37
- package/lib/components/tag.js +236 -335
- package/lib/components/textarea.d.ts +7 -87
- package/lib/components/textarea.js +457 -627
- package/lib/components/tooltip.d.ts +3 -11
- package/lib/components/tooltip.js +307 -443
- package/lib/components/wizard.d.ts +6 -54
- package/lib/components/wizard.js +405 -618
- package/lib/icons/fontawesome/brands.d.ts +0 -1
- package/lib/icons/fontawesome/brands.js +0 -8
- package/lib/icons/fontawesome/regular.d.ts +0 -1
- package/lib/icons/fontawesome/regular.js +0 -8
- package/lib/icons/fontawesome/solid.d.ts +0 -1
- package/lib/icons/fontawesome/solid.js +0 -8
- package/lib/icons/heroicons/micro.d.ts +0 -1
- package/lib/icons/heroicons/micro.js +392 -400
- package/lib/icons/heroicons/mini.d.ts +0 -1
- package/lib/icons/heroicons/mini.js +382 -390
- package/lib/icons/heroicons/outline.d.ts +0 -1
- package/lib/icons/heroicons/outline.js +337 -345
- package/lib/icons/heroicons/solid.d.ts +0 -1
- package/lib/icons/heroicons/solid.js +407 -415
- package/lib/icons/lucide.d.ts +0 -1
- package/lib/icons/lucide.js +24479 -26351
- package/lib/icons/material/filled.d.ts +0 -1
- package/lib/icons/material/filled.js +9653 -9663
- package/lib/icons/material/outlined.d.ts +0 -1
- package/lib/icons/material/outlined.js +10271 -10281
- package/lib/icons/material/round.d.ts +0 -1
- package/lib/icons/material/round.js +10495 -10505
- package/lib/icons/material/sharp.d.ts +0 -1
- package/lib/icons/material/sharp.js +9905 -9915
- package/lib/icons/material/two-tone.d.ts +0 -1
- package/lib/icons/material/two-tone.js +12792 -12802
- package/lib/index.d.ts +0 -1
- package/lib/index.js +21 -41
- package/lib/styles/button.d.ts +2 -20
- package/lib/styles/button.js +202 -404
- package/lib/styles/calendar-month.d.ts +1 -5
- package/lib/styles/calendar-month.js +127 -244
- package/lib/styles/calendar-navigation.d.ts +2 -6
- package/lib/styles/calendar-navigation.js +64 -104
- package/lib/styles/calendar.d.ts +1 -2
- package/lib/styles/calendar.js +9 -22
- package/lib/styles/checkbox.d.ts +0 -1
- package/lib/styles/checkbox.js +45 -94
- package/lib/styles/copy.d.ts +0 -1
- package/lib/styles/copy.js +67 -106
- package/lib/styles/custom-scrollbar.d.ts +1 -2
- package/lib/styles/custom-scrollbar.js +80 -115
- package/lib/styles/date-picker.d.ts +1 -5
- package/lib/styles/date-picker.js +261 -335
- package/lib/styles/field-size.d.ts +6 -0
- package/lib/styles/field-size.js +91 -0
- package/lib/styles/file-upload.d.ts +1 -2
- package/lib/styles/file-upload.js +143 -188
- package/lib/styles/icon.d.ts +2 -6
- package/lib/styles/icon.js +92 -170
- package/lib/styles/input.d.ts +1 -6
- package/lib/styles/input.js +125 -290
- package/lib/styles/modal.d.ts +1 -2
- package/lib/styles/modal.js +71 -108
- package/lib/styles/option.d.ts +2 -6
- package/lib/styles/option.js +49 -64
- package/lib/styles/popup.d.ts +1 -2
- package/lib/styles/popup.js +42 -77
- package/lib/styles/radio.d.ts +0 -1
- package/lib/styles/radio.js +69 -110
- package/lib/styles/resize-observer.d.ts +1 -2
- package/lib/styles/resize-observer.js +2 -12
- package/lib/styles/scroll-container.d.ts +1 -2
- package/lib/styles/scroll-container.js +100 -149
- package/lib/styles/select-base.d.ts +0 -1
- package/lib/styles/select-base.js +597 -785
- package/lib/styles/select.d.ts +1 -2
- package/lib/styles/select.js +140 -236
- package/lib/styles/step.d.ts +1 -2
- package/lib/styles/step.js +22 -33
- package/lib/styles/switch.d.ts +0 -1
- package/lib/styles/switch.js +34 -73
- package/lib/styles/tab.d.ts +1 -2
- package/lib/styles/tab.js +22 -34
- package/lib/styles/tabs.d.ts +3 -11
- package/lib/styles/tabs.js +190 -222
- package/lib/styles/tag.d.ts +1 -5
- package/lib/styles/tag.js +136 -218
- package/lib/styles/textarea.d.ts +1 -2
- package/lib/styles/textarea.js +210 -319
- package/lib/styles/tooltip.d.ts +0 -1
- package/lib/styles/tooltip.js +3 -13
- package/lib/styles/wizard.d.ts +5 -21
- package/lib/styles/wizard.js +170 -306
- package/lib/types/common.d.ts +2 -2
- package/lib/types/common.js +6 -17
- package/lib/utils/calendar-utils.d.ts +4 -21
- package/lib/utils/calendar-utils.js +100 -273
- package/lib/utils/custom-scrollbar.d.ts +6 -20
- package/lib/utils/custom-scrollbar.js +273 -317
- package/lib/utils/flavor-sheet.d.ts +0 -1
- package/lib/utils/flavor-sheet.js +14 -37
- package/lib/utils/icon-registry.d.ts +0 -2
- package/lib/utils/icon-registry.js +137 -243
- package/lib/utils/icons.d.ts +0 -1
- package/lib/utils/icons.js +0 -9
- package/lib/utils/loader-registry.d.ts +0 -1
- package/lib/utils/loader-registry.js +3 -35
- package/lib/utils/locale.d.ts +2 -23
- package/lib/utils/locale.js +34 -120
- package/lib/utils/mobile.d.ts +0 -1
- package/lib/utils/mobile.js +1 -18
- package/lib/utils/number-format.d.ts +6 -3
- package/lib/utils/number-format.js +54 -110
- package/lib/utils/positioning.d.ts +50 -7
- package/lib/utils/positioning.js +224 -234
- package/lib/utils/property-capture.d.ts +5 -27
- package/lib/utils/property-capture.js +36 -144
- package/lib/utils/property-manager.d.ts +0 -1
- package/lib/utils/property-manager.js +126 -196
- package/lib/utils/resize-observer.d.ts +0 -1
- package/lib/utils/resize-observer.js +23 -59
- package/lib/utils/scroll-lock.d.ts +4 -11
- package/lib/utils/scroll-lock.js +65 -172
- package/lib/utils/styles.d.ts +0 -1
- package/lib/utils/styles.js +17 -41
- package/lib/version.d.ts +1 -2
- package/lib/version.js +1 -11
- package/package.json +4 -4
- package/lib/base/ty-component.d.ts.map +0 -1
- package/lib/base/ty-component.js.map +0 -1
- package/lib/components/button.d.ts.map +0 -1
- package/lib/components/button.js.map +0 -1
- package/lib/components/calendar-month.d.ts.map +0 -1
- package/lib/components/calendar-month.js.map +0 -1
- package/lib/components/calendar-navigation.d.ts.map +0 -1
- package/lib/components/calendar-navigation.js.map +0 -1
- package/lib/components/calendar.d.ts.map +0 -1
- package/lib/components/calendar.js.map +0 -1
- package/lib/components/checkbox.d.ts.map +0 -1
- package/lib/components/checkbox.js.map +0 -1
- package/lib/components/copy.d.ts.map +0 -1
- package/lib/components/copy.js.map +0 -1
- package/lib/components/date-picker.d.ts.map +0 -1
- package/lib/components/date-picker.js.map +0 -1
- package/lib/components/file-upload.d.ts.map +0 -1
- package/lib/components/file-upload.js.map +0 -1
- package/lib/components/icon.d.ts.map +0 -1
- package/lib/components/icon.js.map +0 -1
- package/lib/components/input.d.ts.map +0 -1
- package/lib/components/input.js.map +0 -1
- package/lib/components/modal.d.ts.map +0 -1
- package/lib/components/modal.js.map +0 -1
- package/lib/components/option.d.ts.map +0 -1
- package/lib/components/option.js.map +0 -1
- package/lib/components/popup.d.ts.map +0 -1
- package/lib/components/popup.js.map +0 -1
- package/lib/components/radio.d.ts.map +0 -1
- package/lib/components/radio.js.map +0 -1
- package/lib/components/resize-observer.d.ts.map +0 -1
- package/lib/components/resize-observer.js.map +0 -1
- package/lib/components/scroll-container.d.ts.map +0 -1
- package/lib/components/scroll-container.js.map +0 -1
- package/lib/components/select.d.ts.map +0 -1
- package/lib/components/select.js.map +0 -1
- package/lib/components/selected-tags.d.ts.map +0 -1
- package/lib/components/selected-tags.js.map +0 -1
- package/lib/components/step.d.ts.map +0 -1
- package/lib/components/step.js.map +0 -1
- package/lib/components/switch.d.ts.map +0 -1
- package/lib/components/switch.js.map +0 -1
- package/lib/components/tab.d.ts.map +0 -1
- package/lib/components/tab.js.map +0 -1
- package/lib/components/tabs.d.ts.map +0 -1
- package/lib/components/tabs.js.map +0 -1
- package/lib/components/tag.d.ts.map +0 -1
- package/lib/components/tag.js.map +0 -1
- package/lib/components/textarea.d.ts.map +0 -1
- package/lib/components/textarea.js.map +0 -1
- package/lib/components/tooltip.d.ts.map +0 -1
- package/lib/components/tooltip.js.map +0 -1
- package/lib/components/wizard.d.ts.map +0 -1
- package/lib/components/wizard.js.map +0 -1
- package/lib/icons/fontawesome/brands.d.ts.map +0 -1
- package/lib/icons/fontawesome/brands.js.map +0 -1
- package/lib/icons/fontawesome/regular.d.ts.map +0 -1
- package/lib/icons/fontawesome/regular.js.map +0 -1
- package/lib/icons/fontawesome/solid.d.ts.map +0 -1
- package/lib/icons/fontawesome/solid.js.map +0 -1
- package/lib/icons/heroicons/micro.d.ts.map +0 -1
- package/lib/icons/heroicons/micro.js.map +0 -1
- package/lib/icons/heroicons/mini.d.ts.map +0 -1
- package/lib/icons/heroicons/mini.js.map +0 -1
- package/lib/icons/heroicons/outline.d.ts.map +0 -1
- package/lib/icons/heroicons/outline.js.map +0 -1
- package/lib/icons/heroicons/solid.d.ts.map +0 -1
- package/lib/icons/heroicons/solid.js.map +0 -1
- package/lib/icons/lucide.d.ts.map +0 -1
- package/lib/icons/lucide.js.map +0 -1
- package/lib/icons/material/filled.d.ts.map +0 -1
- package/lib/icons/material/filled.js.map +0 -1
- package/lib/icons/material/outlined.d.ts.map +0 -1
- package/lib/icons/material/outlined.js.map +0 -1
- package/lib/icons/material/round.d.ts.map +0 -1
- package/lib/icons/material/round.js.map +0 -1
- package/lib/icons/material/sharp.d.ts.map +0 -1
- package/lib/icons/material/sharp.js.map +0 -1
- package/lib/icons/material/two-tone.d.ts.map +0 -1
- package/lib/icons/material/two-tone.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/styles/button.d.ts.map +0 -1
- package/lib/styles/button.js.map +0 -1
- package/lib/styles/calendar-month.d.ts.map +0 -1
- package/lib/styles/calendar-month.js.map +0 -1
- package/lib/styles/calendar-navigation.d.ts.map +0 -1
- package/lib/styles/calendar-navigation.js.map +0 -1
- package/lib/styles/calendar.d.ts.map +0 -1
- package/lib/styles/calendar.js.map +0 -1
- package/lib/styles/checkbox.d.ts.map +0 -1
- package/lib/styles/checkbox.js.map +0 -1
- package/lib/styles/copy.d.ts.map +0 -1
- package/lib/styles/copy.js.map +0 -1
- package/lib/styles/custom-scrollbar.d.ts.map +0 -1
- package/lib/styles/custom-scrollbar.js.map +0 -1
- package/lib/styles/date-picker.d.ts.map +0 -1
- package/lib/styles/date-picker.js.map +0 -1
- package/lib/styles/file-upload.d.ts.map +0 -1
- package/lib/styles/file-upload.js.map +0 -1
- package/lib/styles/icon.d.ts.map +0 -1
- package/lib/styles/icon.js.map +0 -1
- package/lib/styles/input.d.ts.map +0 -1
- package/lib/styles/input.js.map +0 -1
- package/lib/styles/modal.d.ts.map +0 -1
- package/lib/styles/modal.js.map +0 -1
- package/lib/styles/multiselect.d.ts +0 -8
- package/lib/styles/multiselect.d.ts.map +0 -1
- package/lib/styles/multiselect.js +0 -849
- package/lib/styles/multiselect.js.map +0 -1
- package/lib/styles/option.d.ts.map +0 -1
- package/lib/styles/option.js.map +0 -1
- package/lib/styles/popup.d.ts.map +0 -1
- package/lib/styles/popup.js.map +0 -1
- package/lib/styles/radio.d.ts.map +0 -1
- package/lib/styles/radio.js.map +0 -1
- package/lib/styles/resize-observer.d.ts.map +0 -1
- package/lib/styles/resize-observer.js.map +0 -1
- package/lib/styles/scroll-container.d.ts.map +0 -1
- package/lib/styles/scroll-container.js.map +0 -1
- package/lib/styles/select-base.d.ts.map +0 -1
- package/lib/styles/select-base.js.map +0 -1
- package/lib/styles/select.d.ts.map +0 -1
- package/lib/styles/select.js.map +0 -1
- package/lib/styles/step.d.ts.map +0 -1
- package/lib/styles/step.js.map +0 -1
- package/lib/styles/switch.d.ts.map +0 -1
- package/lib/styles/switch.js.map +0 -1
- package/lib/styles/tab.d.ts.map +0 -1
- package/lib/styles/tab.js.map +0 -1
- package/lib/styles/tabs.d.ts.map +0 -1
- package/lib/styles/tabs.js.map +0 -1
- package/lib/styles/tag.d.ts.map +0 -1
- package/lib/styles/tag.js.map +0 -1
- package/lib/styles/textarea.d.ts.map +0 -1
- package/lib/styles/textarea.js.map +0 -1
- package/lib/styles/tooltip.d.ts.map +0 -1
- package/lib/styles/tooltip.js.map +0 -1
- package/lib/styles/wizard.d.ts.map +0 -1
- package/lib/styles/wizard.js.map +0 -1
- package/lib/types/common.d.ts.map +0 -1
- package/lib/types/common.js.map +0 -1
- package/lib/utils/calendar-utils.d.ts.map +0 -1
- package/lib/utils/calendar-utils.js.map +0 -1
- package/lib/utils/custom-scrollbar.d.ts.map +0 -1
- package/lib/utils/custom-scrollbar.js.map +0 -1
- package/lib/utils/flavor-sheet.d.ts.map +0 -1
- package/lib/utils/flavor-sheet.js.map +0 -1
- package/lib/utils/icon-registry.d.ts.map +0 -1
- package/lib/utils/icon-registry.js.map +0 -1
- package/lib/utils/icons.d.ts.map +0 -1
- package/lib/utils/icons.js.map +0 -1
- package/lib/utils/loader-registry.d.ts.map +0 -1
- package/lib/utils/loader-registry.js.map +0 -1
- package/lib/utils/locale.d.ts.map +0 -1
- package/lib/utils/locale.js.map +0 -1
- package/lib/utils/mobile.d.ts.map +0 -1
- package/lib/utils/mobile.js.map +0 -1
- package/lib/utils/number-format.d.ts.map +0 -1
- package/lib/utils/number-format.js.map +0 -1
- package/lib/utils/parse-boolean.d.ts +0 -39
- package/lib/utils/parse-boolean.d.ts.map +0 -1
- package/lib/utils/parse-boolean.js +0 -58
- package/lib/utils/parse-boolean.js.map +0 -1
- package/lib/utils/positioning.d.ts.map +0 -1
- package/lib/utils/positioning.js.map +0 -1
- package/lib/utils/property-capture.d.ts.map +0 -1
- package/lib/utils/property-capture.js.map +0 -1
- package/lib/utils/property-manager.d.ts.map +0 -1
- package/lib/utils/property-manager.js.map +0 -1
- package/lib/utils/resize-observer.d.ts.map +0 -1
- package/lib/utils/resize-observer.js.map +0 -1
- package/lib/utils/scroll-lock.d.ts.map +0 -1
- package/lib/utils/scroll-lock.js.map +0 -1
- package/lib/utils/styles.d.ts.map +0 -1
- package/lib/utils/styles.js.map +0 -1
- package/lib/version.d.ts.map +0 -1
- package/lib/version.js.map +0 -1
package/lib/styles/radio.js
CHANGED
|
@@ -1,163 +1,122 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Radio Group + Radio Styles
|
|
3
|
-
*
|
|
4
|
-
* ty-radio-group: optional label + vertical/horizontal stack of radios + error message
|
|
5
|
-
* ty-radio: circle with inner dot when checked
|
|
6
|
-
*/
|
|
7
1
|
import { FLAVORS } from "../types/common.js";
|
|
8
2
|
import { inputStyles } from "./input.js";
|
|
9
|
-
/* Flavor rules only set --radio-color (checked border + inner dot); base
|
|
10
|
-
rules below consume it. Doubles as the per-instance override API:
|
|
11
|
-
`ty-radio { --radio-color: … }`. Fallback flavor `fb` is used for custom
|
|
12
|
-
flavors so missing tokens degrade to neutral. */
|
|
13
3
|
const radioFlavor = (f, fb) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
const tok = (s) => fb
|
|
5
|
+
? `var(--ty-color-${f}${s}, var(--ty-color-${fb}${s}))`
|
|
6
|
+
: `var(--ty-color-${f}${s})`;
|
|
7
|
+
return `
|
|
18
8
|
:host([flavor="${f}"]) { --radio-color: ${tok("")}; }
|
|
19
9
|
:host([flavor="${f}+"]) { --radio-color: ${tok("-strong")}; }
|
|
20
10
|
:host([flavor="${f}-"]) { --radio-color: ${tok("-soft")}; }
|
|
21
11
|
`;
|
|
22
12
|
};
|
|
23
|
-
/** Rules for one custom (non-built-in) flavor — see utils/flavor-sheet.ts. */
|
|
24
13
|
export const radioCustomFlavorCss = (base) => radioFlavor(base, "neutral");
|
|
25
14
|
export const radioStyles = `
|
|
26
15
|
${inputStyles}
|
|
27
|
-
|
|
28
|
-
/* Override input's :host. ty-radio is just the circle (inline);
|
|
29
|
-
ty-radio-group is a form-field block. */
|
|
30
16
|
:host(ty-radio) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
width: auto;
|
|
19
|
+
vertical-align: middle;
|
|
34
20
|
}
|
|
35
|
-
|
|
36
21
|
:host(ty-radio-group) {
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
display: block;
|
|
23
|
+
width: 100%;
|
|
39
24
|
}
|
|
40
|
-
|
|
41
|
-
/* ===== RADIO GROUP ===== */
|
|
42
25
|
.radio-group-container {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 0.4rem;
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
color: var(--ty-color-text);
|
|
48
31
|
}
|
|
49
|
-
|
|
50
32
|
.radio-group-label {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
33
|
+
font-size: var(--ty-font-sm);
|
|
34
|
+
line-height: var(--ty-leading-sm);
|
|
35
|
+
font-weight: var(--ty-font-medium);
|
|
36
|
+
color: var(--ty-color-text);
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 0.25rem;
|
|
40
|
+
}
|
|
60
41
|
.radio-group-list {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: 0.6rem;
|
|
44
|
+
align-items: flex-start;
|
|
64
45
|
}
|
|
65
|
-
|
|
66
46
|
.radio-group-list.vertical {
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
align-items: flex-start;
|
|
69
49
|
}
|
|
70
|
-
|
|
71
50
|
.radio-group-list.horizontal {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
flex-direction: row;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
align-items: center;
|
|
75
54
|
}
|
|
76
|
-
|
|
77
55
|
.radio-group-error {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
56
|
+
font-size: var(--ty-font-xs);
|
|
57
|
+
line-height: var(--ty-leading-xs);
|
|
58
|
+
color: var(--ty-color-danger);
|
|
81
59
|
}
|
|
82
|
-
|
|
83
60
|
.radio-group-container .required-icon {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
61
|
+
width: 0.65em;
|
|
62
|
+
height: 0.65em;
|
|
63
|
+
color: var(--ty-color-danger);
|
|
87
64
|
}
|
|
88
65
|
.radio-group-container .required-icon svg {
|
|
89
|
-
|
|
90
|
-
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
91
68
|
}
|
|
92
|
-
|
|
93
|
-
/* ===== RADIO ITEM (just the circle) ===== */
|
|
94
69
|
.radio-container {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
70
|
+
display: inline-block;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
user-select: none;
|
|
73
|
+
outline: none;
|
|
74
|
+
vertical-align: middle;
|
|
100
75
|
}
|
|
101
|
-
|
|
102
76
|
.radio-container.disabled {
|
|
103
|
-
|
|
104
|
-
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
opacity: 0.55;
|
|
105
79
|
}
|
|
106
|
-
|
|
107
80
|
.radio-container:focus-visible .radio-circle,
|
|
108
81
|
.radio-container.focused .radio-circle {
|
|
109
|
-
|
|
82
|
+
box-shadow: 0 0 0 3px var(--ty-input-shadow-focus);
|
|
110
83
|
}
|
|
111
|
-
|
|
112
84
|
.radio-circle {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* Default (no flavor attribute) is primary — defaults don't reflect to the
|
|
125
|
-
host attribute, so the base rules' fallback carries the default look. */
|
|
85
|
+
position: relative;
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
width: 18px;
|
|
88
|
+
height: 18px;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
border: 2px solid var(--ty-input-border);
|
|
91
|
+
background: var(--ty-input-bg);
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
transition: var(--ty-local-transition, border-color 0.15s ease-in-out);
|
|
94
|
+
}
|
|
126
95
|
.radio-circle::after {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
96
|
+
content: "";
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
left: 50%;
|
|
100
|
+
width: 8px;
|
|
101
|
+
height: 8px;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
background: var(--radio-color, var(--ty-color-primary));
|
|
104
|
+
transform: translate(-50%, -50%) scale(0);
|
|
105
|
+
transition: transform 0.15s ease-in-out;
|
|
106
|
+
}
|
|
139
107
|
.radio-container[aria-checked="true"] .radio-circle {
|
|
140
|
-
|
|
108
|
+
border-color: var(--radio-color, var(--ty-color-primary));
|
|
141
109
|
}
|
|
142
|
-
|
|
143
110
|
.radio-container[aria-checked="true"] .radio-circle::after {
|
|
144
|
-
|
|
111
|
+
transform: translate(-50%, -50%) scale(1);
|
|
145
112
|
}
|
|
146
|
-
|
|
147
|
-
/* Size variants */
|
|
148
113
|
.radio-container.xs .radio-circle { width: 14px; height: 14px; }
|
|
149
114
|
.radio-container.xs .radio-circle::after { width: 6px; height: 6px; }
|
|
150
|
-
|
|
151
115
|
.radio-container.sm .radio-circle { width: 16px; height: 16px; }
|
|
152
116
|
.radio-container.sm .radio-circle::after { width: 7px; height: 7px; }
|
|
153
|
-
|
|
154
117
|
.radio-container.lg .radio-circle { width: 22px; height: 22px; }
|
|
155
118
|
.radio-container.lg .radio-circle::after { width: 10px; height: 10px; }
|
|
156
|
-
|
|
157
119
|
.radio-container.xl .radio-circle { width: 26px; height: 26px; }
|
|
158
120
|
.radio-container.xl .radio-circle::after { width: 12px; height: 12px; }
|
|
159
|
-
|
|
160
|
-
/* Flavor variants — set --radio-color, consumed by the base rules above */
|
|
161
121
|
${FLAVORS.map((f) => radioFlavor(f)).join("")}
|
|
162
122
|
`;
|
|
163
|
-
//# sourceMappingURL=radio.js.map
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* TyResizeObserver styles
|
|
3
3
|
* Minimal styling - just ensures component participates in layout
|
|
4
4
|
*/
|
|
5
|
-
export declare const resizeObserverStyles = "\n:host {\n /* Default to block display, user can override */\n display: block;\n
|
|
6
|
-
//# sourceMappingURL=resize-observer.d.ts.map
|
|
5
|
+
export declare const resizeObserverStyles = "\n:host {\n /* Default to block display, user can override */\n display: block;\n position: relative;\n}\n\n::slotted(*) {\n /* No default styling - preserve natural layout */\n}\n";
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TyResizeObserver styles
|
|
3
|
-
* Minimal styling - just ensures component participates in layout
|
|
4
|
-
*/
|
|
5
1
|
export const resizeObserverStyles = `
|
|
6
2
|
:host {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/* Ensure the component can participate in layout */
|
|
10
|
-
position: relative;
|
|
3
|
+
display: block;
|
|
4
|
+
position: relative;
|
|
11
5
|
}
|
|
12
|
-
|
|
13
|
-
/* Slot content styling */
|
|
14
6
|
::slotted(*) {
|
|
15
|
-
/* No default styling - preserve natural layout */
|
|
16
7
|
}
|
|
17
8
|
`;
|
|
18
|
-
//# sourceMappingURL=resize-observer.js.map
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* TyScrollContainer styles
|
|
3
3
|
* Component-specific styles + shared custom scrollbar styles
|
|
4
4
|
*/
|
|
5
|
-
export declare const scrollContainerStyles = "\n:host {\n display: block;\n position: relative;\n overflow: hidden;\n}\n\n.scroll-wrapper {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n
|
|
6
|
-
//# sourceMappingURL=scroll-container.d.ts.map
|
|
5
|
+
export declare const scrollContainerStyles = "\n:host {\n display: block;\n position: relative;\n overflow: hidden;\n}\n\n.scroll-wrapper {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n:host([overflow-x]) .scroll-wrapper {\n overflow-x: auto;\n}\n\n:host([max-height]) .scroll-wrapper {\n max-height: var(--scroll-max-height);\n}\n\n/* hide-scrollbar: hides native, no custom */\n:host([hide-scrollbar]) .scroll-wrapper {\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n:host([hide-scrollbar]) .scroll-wrapper::-webkit-scrollbar {\n display: none;\n}\n\n/* scroll-anchoring: we manage scroll position in JS, so turn off the browser's\n native scroll anchoring to avoid double-compensation. */\n:host([scroll-anchoring]) .scroll-wrapper {\n overflow-anchor: none;\n}\n\n/* custom-scrollbar: hides native */\n:host([custom-scrollbar]) .scroll-wrapper {\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n:host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar {\n display: none;\n}\n\n:host([custom-scrollbar]:hover) .ty-scrollbar-track-y.has-overflow,\n:host([custom-scrollbar]:hover) .ty-scrollbar-track-x.has-overflow {\n opacity: 1;\n}\n\n/* Corner gap when both axes are present */\n:host([custom-scrollbar][overflow-x]) .ty-scrollbar-track-y {\n bottom: var(--ty-scrollbar-width, 8px);\n}\n\n:host([custom-scrollbar]) .ty-scrollbar-track-x {\n right: var(--ty-scrollbar-width, 8px);\n}\n\n.shadow-overlay {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 2;\n}\n\n.shadow-top,\n.shadow-bottom,\n.shadow-left,\n.shadow-right {\n position: absolute;\n opacity: 0;\n transition: var(--ty-scroll-shadow-transition, opacity 0.2s ease-out);\n pointer-events: none;\n}\n\n.shadow-top {\n top: -40px;\n left: 0;\n right: 0;\n height: 80px;\n background: var(--ty-scroll-shadow-top, radial-gradient(\n ellipse 100% 30% at center,\n color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),\n transparent,\n transparent\n ));\n clip-path: inset(50% 0 0 0);\n}\n\n.shadow-bottom {\n bottom: -30px;\n left: 0;\n right: 0;\n height: 60px;\n background: var(--ty-scroll-shadow-bottom, radial-gradient(\n ellipse 100% 20% at center,\n color-mix(in oklab, var(--ty-color-neutral-bold) 18%, transparent),\n transparent,\n transparent\n ));\n clip-path: inset(0 0 50% 0);\n}\n\n.shadow-left {\n left: -30px;\n top: 0;\n bottom: 0;\n width: 60px;\n background: var(--ty-scroll-shadow-left, radial-gradient(\n ellipse 30% 100% at center,\n color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),\n transparent,\n transparent\n ));\n clip-path: inset(0 0 0 50%);\n}\n\n.shadow-right {\n right: -30px;\n top: 0;\n bottom: 0;\n width: 60px;\n background: var(--ty-scroll-shadow-right, radial-gradient(\n ellipse 30% 100% at center,\n color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),\n transparent,\n transparent\n ));\n clip-path: inset(0 50% 0 0);\n}\n\n.shadow-left,\n.shadow-right {\n display: none;\n}\n\n:host([overflow-x]) .shadow-left,\n:host([overflow-x]) .shadow-right {\n display: block;\n}\n\n.shadow-top.visible,\n.shadow-bottom.visible,\n.shadow-left.visible,\n.shadow-right.visible {\n opacity: 1;\n}\n\n:host([shadow=\"false\"]) .shadow-overlay {\n display: none;\n}\n\n/* Touch devices - restore native scrollbar */\n@media (pointer: coarse) and (hover: none) {\n :host([custom-scrollbar]) .scroll-wrapper {\n scrollbar-width: thin;\n scrollbar-color: var(--ty-border, color-mix(in oklab, var(--ty-color-neutral-bold) 25%, transparent)) transparent;\n }\n :host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar {\n display: block;\n width: 4px;\n height: 4px;\n }\n :host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar-thumb {\n background: var(--ty-border, color-mix(in oklab, var(--ty-color-neutral-bold) 25%, transparent));\n border-radius: 2px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .shadow-top,\n .shadow-bottom,\n .shadow-left,\n .shadow-right {\n transition-duration: 0ms !important;\n }\n}\n\n\n/* Vertical track */\n.ty-scrollbar-track-y {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: var(--ty-scrollbar-width, 8px);\n z-index: 3;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.25s ease-out;\n cursor: pointer;\n}\n\n.ty-scrollbar-track-y.has-overflow {\n pointer-events: auto;\n}\n\n.ty-scrollbar-track-y.has-overflow:hover,\n.ty-scrollbar-track-y.has-overflow.scrolling,\n.ty-scrollbar-track-y.dragging {\n opacity: 1;\n}\n\n.ty-scrollbar-track-y::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--ty-scrollbar-track, transparent);\n border-radius: var(--ty-scrollbar-radius, 4px);\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.ty-scrollbar-track-y:hover::before,\n.ty-scrollbar-track-y.dragging::before {\n opacity: 1;\n background: var(--ty-scrollbar-track-hover, color-mix(in oklab, var(--ty-color-neutral-bold) 8%, transparent));\n}\n\n.ty-scrollbar-thumb-y {\n position: absolute;\n right: 0;\n width: 100%;\n min-height: var(--ty-scrollbar-thumb-min-height, 30px);\n background: var(--ty-scrollbar-thumb, color-mix(in oklab, var(--ty-color-neutral-bold) 40%, transparent));\n border-radius: var(--ty-scrollbar-radius, 4px);\n transition: var(--ty-local-transition, background 0.15s ease-out);\n box-sizing: border-box;\n border: 1px solid transparent;\n}\n\n.ty-scrollbar-thumb-y:hover,\n.ty-scrollbar-track-y.dragging .ty-scrollbar-thumb-y {\n background: var(--ty-scrollbar-thumb-hover, color-mix(in oklab, var(--ty-color-neutral-bold) 55%, transparent));\n}\n\n.ty-scrollbar-thumb-y:active,\n.ty-scrollbar-track-y.dragging .ty-scrollbar-thumb-y {\n background: var(--ty-scrollbar-thumb-active, color-mix(in oklab, var(--ty-color-neutral-bold) 70%, transparent));\n}\n\n/* Horizontal track */\n.ty-scrollbar-track-x {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: var(--ty-scrollbar-width, 8px);\n z-index: 3;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.25s ease-out;\n cursor: pointer;\n}\n\n.ty-scrollbar-track-x.has-overflow {\n pointer-events: auto;\n}\n\n.ty-scrollbar-track-x.has-overflow:hover,\n.ty-scrollbar-track-x.has-overflow.scrolling,\n.ty-scrollbar-track-x.dragging {\n opacity: 1;\n}\n\n.ty-scrollbar-track-x::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--ty-scrollbar-track, transparent);\n border-radius: var(--ty-scrollbar-radius, 4px);\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.ty-scrollbar-track-x:hover::before,\n.ty-scrollbar-track-x.dragging::before {\n opacity: 1;\n background: var(--ty-scrollbar-track-hover, color-mix(in oklab, var(--ty-color-neutral-bold) 8%, transparent));\n}\n\n.ty-scrollbar-thumb-x {\n position: absolute;\n bottom: 0;\n height: 100%;\n min-width: var(--ty-scrollbar-thumb-min-height, 30px);\n background: var(--ty-scrollbar-thumb, color-mix(in oklab, var(--ty-color-neutral-bold) 40%, transparent));\n border-radius: var(--ty-scrollbar-radius, 4px);\n transition: var(--ty-local-transition, background 0.15s ease-out);\n box-sizing: border-box;\n border: 1px solid transparent;\n}\n\n.ty-scrollbar-thumb-x:hover,\n.ty-scrollbar-track-x.dragging .ty-scrollbar-thumb-x {\n background: var(--ty-scrollbar-thumb-hover, color-mix(in oklab, var(--ty-color-neutral-bold) 55%, transparent));\n}\n\n.ty-scrollbar-thumb-x:active,\n.ty-scrollbar-track-x.dragging .ty-scrollbar-thumb-x {\n background: var(--ty-scrollbar-thumb-active, color-mix(in oklab, var(--ty-color-neutral-bold) 70%, transparent));\n}\n\n/* Touch devices: hide the custom scrollbar */\n@media (pointer: coarse) and (hover: none) {\n .ty-scrollbar-track-y,\n .ty-scrollbar-track-x {\n display: none !important;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .ty-scrollbar-track-y,\n .ty-scrollbar-track-x,\n .ty-scrollbar-thumb-y,\n .ty-scrollbar-thumb-x {\n transition-duration: 0ms !important;\n }\n}\n\n";
|
|
@@ -1,204 +1,155 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TyScrollContainer styles
|
|
3
|
-
* Component-specific styles + shared custom scrollbar styles
|
|
4
|
-
*/
|
|
5
1
|
import { customScrollbarStyles } from './custom-scrollbar.js';
|
|
6
2
|
export const scrollContainerStyles = `
|
|
7
3
|
:host {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
display: block;
|
|
5
|
+
position: relative;
|
|
6
|
+
overflow: hidden;
|
|
11
7
|
}
|
|
12
|
-
|
|
13
8
|
.scroll-wrapper {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
overflow-x: hidden;
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
/* Allow horizontal scrolling when enabled */
|
|
21
14
|
:host([overflow-x]) .scroll-wrapper {
|
|
22
|
-
|
|
15
|
+
overflow-x: auto;
|
|
23
16
|
}
|
|
24
|
-
|
|
25
17
|
:host([max-height]) .scroll-wrapper {
|
|
26
|
-
|
|
18
|
+
max-height: var(--scroll-max-height);
|
|
27
19
|
}
|
|
28
|
-
|
|
29
|
-
/* ===================================== */
|
|
30
|
-
/* hide-scrollbar: hides native, no custom */
|
|
31
|
-
/* ===================================== */
|
|
32
|
-
|
|
33
20
|
:host([hide-scrollbar]) .scroll-wrapper {
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
scrollbar-width: none;
|
|
22
|
+
-ms-overflow-style: none;
|
|
36
23
|
}
|
|
37
|
-
|
|
38
24
|
:host([hide-scrollbar]) .scroll-wrapper::-webkit-scrollbar {
|
|
39
|
-
|
|
25
|
+
display: none;
|
|
40
26
|
}
|
|
41
|
-
|
|
42
|
-
/* scroll-anchoring: we manage scroll position in JS, so turn off the browser's
|
|
43
|
-
native scroll anchoring to avoid double-compensation. */
|
|
44
27
|
:host([scroll-anchoring]) .scroll-wrapper {
|
|
45
|
-
|
|
28
|
+
overflow-anchor: none;
|
|
46
29
|
}
|
|
47
|
-
|
|
48
|
-
/* ===================================== */
|
|
49
|
-
/* custom-scrollbar: hides native */
|
|
50
|
-
/* ===================================== */
|
|
51
|
-
|
|
52
30
|
:host([custom-scrollbar]) .scroll-wrapper {
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
scrollbar-width: none;
|
|
32
|
+
-ms-overflow-style: none;
|
|
55
33
|
}
|
|
56
|
-
|
|
57
34
|
:host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar {
|
|
58
|
-
|
|
35
|
+
display: none;
|
|
59
36
|
}
|
|
60
|
-
|
|
61
|
-
/* Show scrollbar tracks on host hover */
|
|
62
37
|
:host([custom-scrollbar]:hover) .ty-scrollbar-track-y.has-overflow,
|
|
63
38
|
:host([custom-scrollbar]:hover) .ty-scrollbar-track-x.has-overflow {
|
|
64
|
-
|
|
39
|
+
opacity: 1;
|
|
65
40
|
}
|
|
66
|
-
|
|
67
|
-
/* Corner gap when both axes are present */
|
|
68
41
|
:host([custom-scrollbar][overflow-x]) .ty-scrollbar-track-y {
|
|
69
|
-
|
|
42
|
+
bottom: var(--ty-scrollbar-width, 8px);
|
|
70
43
|
}
|
|
71
|
-
|
|
72
44
|
:host([custom-scrollbar]) .ty-scrollbar-track-x {
|
|
73
|
-
|
|
45
|
+
right: var(--ty-scrollbar-width, 8px);
|
|
74
46
|
}
|
|
75
|
-
|
|
76
|
-
/* ===================================== */
|
|
77
|
-
/* Shadow Indicators */
|
|
78
|
-
/* ===================================== */
|
|
79
|
-
|
|
80
47
|
.shadow-overlay {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 0;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
z-index: 2;
|
|
85
52
|
}
|
|
86
|
-
|
|
87
53
|
.shadow-top,
|
|
88
54
|
.shadow-bottom,
|
|
89
55
|
.shadow-left,
|
|
90
56
|
.shadow-right {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
57
|
+
position: absolute;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition: var(--ty-scroll-shadow-transition, opacity 0.2s ease-out);
|
|
60
|
+
pointer-events: none;
|
|
95
61
|
}
|
|
96
|
-
|
|
97
62
|
.shadow-top {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
63
|
+
top: -40px;
|
|
64
|
+
left: 0;
|
|
65
|
+
right: 0;
|
|
66
|
+
height: 80px;
|
|
67
|
+
background: var(--ty-scroll-shadow-top, radial-gradient(
|
|
68
|
+
ellipse 100% 30% at center,
|
|
69
|
+
color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),
|
|
70
|
+
transparent,
|
|
71
|
+
transparent
|
|
72
|
+
));
|
|
73
|
+
clip-path: inset(50% 0 0 0);
|
|
74
|
+
}
|
|
111
75
|
.shadow-bottom {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
76
|
+
bottom: -30px;
|
|
77
|
+
left: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
height: 60px;
|
|
80
|
+
background: var(--ty-scroll-shadow-bottom, radial-gradient(
|
|
81
|
+
ellipse 100% 20% at center,
|
|
82
|
+
color-mix(in oklab, var(--ty-color-neutral-bold) 18%, transparent),
|
|
83
|
+
transparent,
|
|
84
|
+
transparent
|
|
85
|
+
));
|
|
86
|
+
clip-path: inset(0 0 50% 0);
|
|
87
|
+
}
|
|
125
88
|
.shadow-left {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
89
|
+
left: -30px;
|
|
90
|
+
top: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
width: 60px;
|
|
93
|
+
background: var(--ty-scroll-shadow-left, radial-gradient(
|
|
94
|
+
ellipse 30% 100% at center,
|
|
95
|
+
color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),
|
|
96
|
+
transparent,
|
|
97
|
+
transparent
|
|
98
|
+
));
|
|
99
|
+
clip-path: inset(0 0 0 50%);
|
|
100
|
+
}
|
|
139
101
|
.shadow-right {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
102
|
+
right: -30px;
|
|
103
|
+
top: 0;
|
|
104
|
+
bottom: 0;
|
|
105
|
+
width: 60px;
|
|
106
|
+
background: var(--ty-scroll-shadow-right, radial-gradient(
|
|
107
|
+
ellipse 30% 100% at center,
|
|
108
|
+
color-mix(in oklab, var(--ty-color-neutral-bold) 12%, transparent),
|
|
109
|
+
transparent,
|
|
110
|
+
transparent
|
|
111
|
+
));
|
|
112
|
+
clip-path: inset(0 50% 0 0);
|
|
113
|
+
}
|
|
153
114
|
.shadow-left,
|
|
154
115
|
.shadow-right {
|
|
155
|
-
|
|
116
|
+
display: none;
|
|
156
117
|
}
|
|
157
|
-
|
|
158
118
|
:host([overflow-x]) .shadow-left,
|
|
159
119
|
:host([overflow-x]) .shadow-right {
|
|
160
|
-
|
|
120
|
+
display: block;
|
|
161
121
|
}
|
|
162
|
-
|
|
163
122
|
.shadow-top.visible,
|
|
164
123
|
.shadow-bottom.visible,
|
|
165
124
|
.shadow-left.visible,
|
|
166
125
|
.shadow-right.visible {
|
|
167
|
-
|
|
126
|
+
opacity: 1;
|
|
168
127
|
}
|
|
169
|
-
|
|
170
128
|
:host([shadow="false"]) .shadow-overlay {
|
|
171
|
-
|
|
129
|
+
display: none;
|
|
172
130
|
}
|
|
173
|
-
|
|
174
|
-
/* Touch devices - restore native scrollbar */
|
|
175
131
|
@media (pointer: coarse) and (hover: none) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/* Respect reduced motion */
|
|
132
|
+
:host([custom-scrollbar]) .scroll-wrapper {
|
|
133
|
+
scrollbar-width: thin;
|
|
134
|
+
scrollbar-color: var(--ty-border, color-mix(in oklab, var(--ty-color-neutral-bold) 25%, transparent)) transparent;
|
|
135
|
+
}
|
|
136
|
+
:host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar {
|
|
137
|
+
display: block;
|
|
138
|
+
width: 4px;
|
|
139
|
+
height: 4px;
|
|
140
|
+
}
|
|
141
|
+
:host([custom-scrollbar]) .scroll-wrapper::-webkit-scrollbar-thumb {
|
|
142
|
+
background: var(--ty-border, color-mix(in oklab, var(--ty-color-neutral-bold) 25%, transparent));
|
|
143
|
+
border-radius: 2px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
192
146
|
@media (prefers-reduced-motion: reduce) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/* Shared scrollbar styles */
|
|
147
|
+
.shadow-top,
|
|
148
|
+
.shadow-bottom,
|
|
149
|
+
.shadow-left,
|
|
150
|
+
.shadow-right {
|
|
151
|
+
transition-duration: 0ms !important;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
202
154
|
${customScrollbarStyles}
|
|
203
155
|
`;
|
|
204
|
-
//# sourceMappingURL=scroll-container.js.map
|