tyrell-components 1.0.0-RC13 → 1.0.0-RC14
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 +1 -1
- package/css/tyrell-theme.css +167 -178
- package/css/tyrell.css +19 -0
- package/dist/tyrell-theme.css +167 -178
- package/dist/tyrell.css +19 -0
- package/dist/tyrell.js +1 -1
- package/lib/base/ty-component.d.ts +20 -10
- package/lib/base/ty-component.js +21 -144
- package/lib/components/button.d.ts +2 -16
- package/lib/components/button.js +0 -36
- package/lib/components/calendar-month.d.ts +2 -48
- package/lib/components/calendar-month.js +4 -166
- package/lib/components/calendar-navigation.d.ts +3 -48
- package/lib/components/calendar-navigation.js +3 -126
- package/lib/components/calendar.d.ts +3 -80
- package/lib/components/calendar.js +8 -230
- package/lib/components/checkbox.d.ts +4 -71
- package/lib/components/checkbox.js +7 -151
- package/lib/components/copy.d.ts +3 -56
- package/lib/components/copy.js +1 -120
- package/lib/components/date-picker.d.ts +13 -162
- package/lib/components/date-picker.js +41 -592
- package/lib/components/file-upload.d.ts +9 -15
- package/lib/components/file-upload.js +19 -41
- package/lib/components/icon.d.ts +3 -24
- package/lib/components/icon.js +1 -90
- package/lib/components/input.d.ts +7 -107
- package/lib/components/input.js +5 -193
- package/lib/components/modal.d.ts +17 -26
- package/lib/components/modal.js +57 -201
- package/lib/components/option.d.ts +2 -9
- package/lib/components/option.js +0 -48
- package/lib/components/popup.d.ts +2 -17
- package/lib/components/popup.js +8 -139
- package/lib/components/radio.d.ts +3 -23
- package/lib/components/radio.js +10 -65
- package/lib/components/resize-observer.d.ts +3 -30
- package/lib/components/resize-observer.js +12 -46
- package/lib/components/scroll-container.d.ts +2 -12
- package/lib/components/scroll-container.js +3 -46
- package/lib/components/select.d.ts +22 -153
- package/lib/components/select.js +33 -590
- package/lib/components/selected-tags.d.ts +4 -47
- package/lib/components/selected-tags.js +1 -95
- package/lib/components/step.d.ts +1 -6
- package/lib/components/step.js +0 -6
- package/lib/components/switch.d.ts +0 -11
- package/lib/components/switch.js +2 -36
- package/lib/components/tab.d.ts +1 -6
- package/lib/components/tab.js +0 -7
- package/lib/components/tabs.d.ts +5 -63
- package/lib/components/tabs.js +20 -283
- package/lib/components/tag.d.ts +2 -36
- package/lib/components/tag.js +5 -105
- package/lib/components/textarea.d.ts +6 -86
- package/lib/components/textarea.js +2 -173
- package/lib/components/tooltip.d.ts +3 -11
- package/lib/components/tooltip.js +24 -160
- package/lib/components/wizard.d.ts +6 -54
- package/lib/components/wizard.js +15 -228
- 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 +0 -8
- package/lib/icons/heroicons/mini.d.ts +0 -1
- package/lib/icons/heroicons/mini.js +0 -8
- package/lib/icons/heroicons/outline.d.ts +0 -1
- package/lib/icons/heroicons/outline.js +0 -8
- package/lib/icons/heroicons/solid.d.ts +0 -1
- package/lib/icons/heroicons/solid.js +0 -8
- package/lib/icons/lucide.d.ts +0 -1
- package/lib/icons/lucide.js +0 -1872
- package/lib/icons/material/filled.d.ts +0 -1
- package/lib/icons/material/filled.js +0 -10
- package/lib/icons/material/outlined.d.ts +0 -1
- package/lib/icons/material/outlined.js +0 -10
- package/lib/icons/material/round.d.ts +0 -1
- package/lib/icons/material/round.js +0 -10
- package/lib/icons/material/sharp.d.ts +0 -1
- package/lib/icons/material/sharp.js +0 -10
- package/lib/icons/material/two-tone.d.ts +0 -1
- package/lib/icons/material/two-tone.js +0 -10
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -20
- package/lib/styles/button.d.ts +2 -20
- package/lib/styles/button.js +22 -122
- package/lib/styles/calendar-month.d.ts +1 -5
- package/lib/styles/calendar-month.js +4 -61
- package/lib/styles/calendar-navigation.d.ts +2 -6
- package/lib/styles/calendar-navigation.js +2 -27
- package/lib/styles/calendar.d.ts +1 -2
- package/lib/styles/calendar.js +1 -14
- package/lib/styles/checkbox.d.ts +0 -1
- package/lib/styles/checkbox.js +1 -23
- package/lib/styles/copy.d.ts +0 -1
- package/lib/styles/copy.js +2 -17
- package/lib/styles/custom-scrollbar.d.ts +1 -2
- package/lib/styles/custom-scrollbar.js +3 -18
- package/lib/styles/date-picker.d.ts +1 -5
- package/lib/styles/date-picker.js +35 -39
- package/lib/styles/file-upload.d.ts +1 -2
- package/lib/styles/file-upload.js +1 -16
- package/lib/styles/icon.d.ts +2 -6
- package/lib/styles/icon.js +7 -21
- package/lib/styles/input.d.ts +1 -6
- package/lib/styles/input.js +5 -54
- package/lib/styles/modal.d.ts +1 -2
- package/lib/styles/modal.js +21 -23
- package/lib/styles/option.d.ts +2 -6
- package/lib/styles/option.js +17 -12
- package/lib/styles/popup.d.ts +1 -2
- package/lib/styles/popup.js +26 -30
- package/lib/styles/radio.d.ts +0 -1
- package/lib/styles/radio.js +2 -16
- package/lib/styles/resize-observer.d.ts +1 -2
- package/lib/styles/resize-observer.js +0 -7
- package/lib/styles/scroll-container.d.ts +1 -2
- package/lib/styles/scroll-container.js +0 -19
- package/lib/styles/select-base.d.ts +0 -1
- package/lib/styles/select-base.js +68 -79
- package/lib/styles/select.d.ts +1 -2
- package/lib/styles/select.js +7 -15
- package/lib/styles/step.d.ts +1 -2
- package/lib/styles/step.js +0 -4
- package/lib/styles/switch.d.ts +0 -1
- package/lib/styles/switch.js +2 -20
- package/lib/styles/tab.d.ts +1 -2
- package/lib/styles/tab.js +0 -5
- package/lib/styles/tabs.d.ts +3 -11
- package/lib/styles/tabs.js +10 -48
- package/lib/styles/tag.d.ts +1 -5
- package/lib/styles/tag.js +2 -31
- package/lib/styles/textarea.d.ts +1 -2
- package/lib/styles/textarea.js +2 -45
- package/lib/styles/tooltip.d.ts +0 -1
- package/lib/styles/tooltip.js +0 -10
- package/lib/styles/wizard.d.ts +5 -21
- package/lib/styles/wizard.js +8 -88
- package/lib/types/common.d.ts +0 -2
- package/lib/types/common.js +0 -12
- package/lib/utils/calendar-utils.d.ts +4 -21
- package/lib/utils/calendar-utils.js +4 -177
- package/lib/utils/custom-scrollbar.d.ts +6 -20
- package/lib/utils/custom-scrollbar.js +1 -45
- package/lib/utils/flavor-sheet.d.ts +0 -1
- package/lib/utils/flavor-sheet.js +0 -23
- package/lib/utils/icon-registry.d.ts +0 -2
- package/lib/utils/icon-registry.js +1 -107
- 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 +0 -32
- package/lib/utils/locale.d.ts +2 -23
- package/lib/utils/locale.js +0 -86
- package/lib/utils/mobile.d.ts +0 -1
- package/lib/utils/mobile.js +0 -17
- package/lib/utils/number-format.d.ts +6 -3
- package/lib/utils/number-format.js +11 -67
- package/lib/utils/positioning.d.ts +50 -7
- package/lib/utils/positioning.js +52 -62
- package/lib/utils/property-capture.d.ts +5 -27
- package/lib/utils/property-capture.js +0 -108
- package/lib/utils/property-manager.d.ts +0 -1
- package/lib/utils/property-manager.js +0 -70
- package/lib/utils/resize-observer.d.ts +0 -1
- package/lib/utils/resize-observer.js +0 -36
- package/lib/utils/scroll-lock.d.ts +4 -11
- package/lib/utils/scroll-lock.js +0 -107
- package/lib/utils/styles.d.ts +0 -1
- package/lib/utils/styles.js +0 -24
- package/lib/version.d.ts +1 -2
- package/lib/version.js +1 -11
- package/package.json +2 -2
- 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
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calendar Month Styles
|
|
3
|
-
* Improved design with better visual hierarchy and size variants
|
|
4
|
-
*/
|
|
5
1
|
import { FLAVORS } from "../types/common.js";
|
|
6
|
-
/* Flavor rules set --calendar-month-* local vars, wired in as the fallback
|
|
7
|
-
BEHIND every existing --ty-calendar-* public override (so those keep
|
|
8
|
-
working exactly as before) and AHEAD of the hardcoded primary default.
|
|
9
|
-
Doubles as the per-instance override API for a specific flavor: e.g.
|
|
10
|
-
`ty-calendar-month { --calendar-month-accent: ... }`. Fallback flavor
|
|
11
|
-
`fb` is used for custom flavors so missing tokens degrade to neutral. */
|
|
12
2
|
const calendarMonthFlavor = (f, fb) => {
|
|
13
3
|
const color = (s) => fb
|
|
14
4
|
? `var(--ty-color-${f}${s}, var(--ty-color-${fb}${s}))`
|
|
@@ -37,25 +27,14 @@ const calendarMonthFlavor = (f, fb) => {
|
|
|
37
27
|
}
|
|
38
28
|
`;
|
|
39
29
|
};
|
|
40
|
-
/** Rules for one custom (non-built-in) flavor — see utils/flavor-sheet.ts. */
|
|
41
30
|
export const calendarMonthCustomFlavorCss = (base) => calendarMonthFlavor(base, "neutral");
|
|
42
31
|
export const calendarMonthStyles = `
|
|
43
|
-
/* ============================================================================
|
|
44
|
-
Theming Tokens
|
|
45
|
-
Override these to retheme the calendar without touching the global palette.
|
|
46
|
-
Defaults chain back to the global --ty-color-* / --ty-bg-* / --ty-border tokens.
|
|
47
|
-
============================================================================ */
|
|
48
|
-
|
|
49
32
|
/* Theming tokens are applied as var(--ty-calendar-*, <default>) at point
|
|
50
33
|
of use (not declared on :host) so consumers can override any of them
|
|
51
34
|
from outside the shadow root. The 3 accent aliases — --ty-calendar-accent,
|
|
52
35
|
--ty-calendar-today-accent, --ty-calendar-muted — still cascade into the
|
|
53
36
|
derived defaults, so overriding one retints the related cells. */
|
|
54
37
|
|
|
55
|
-
/* ============================================================================
|
|
56
|
-
Base Calendar Container
|
|
57
|
-
============================================================================ */
|
|
58
|
-
|
|
59
38
|
.calendar-flex-container {
|
|
60
39
|
display: flex;
|
|
61
40
|
flex-direction: column;
|
|
@@ -63,17 +42,14 @@ export const calendarMonthStyles = `
|
|
|
63
42
|
gap: 0;
|
|
64
43
|
padding: 0.75rem;
|
|
65
44
|
border-radius: var(--ty-radius-md);
|
|
66
|
-
font-family:
|
|
45
|
+
font-family: inherit;
|
|
67
46
|
user-select: none;
|
|
68
47
|
width: var(--calendar-width, fit-content);
|
|
69
48
|
min-width: 280px;
|
|
70
49
|
max-width: var(--calendar-max-width, none);
|
|
71
50
|
}
|
|
72
51
|
|
|
73
|
-
/*
|
|
74
|
-
Rows (Header + 6 Day Rows)
|
|
75
|
-
============================================================================ */
|
|
76
|
-
|
|
52
|
+
/* Rows: header + 6 day rows */
|
|
77
53
|
.calendar-row {
|
|
78
54
|
display: flex;
|
|
79
55
|
flex: 1;
|
|
@@ -91,10 +67,6 @@ export const calendarMonthStyles = `
|
|
|
91
67
|
margin-bottom: 0.125rem;
|
|
92
68
|
}
|
|
93
69
|
|
|
94
|
-
/* ============================================================================
|
|
95
|
-
Base Cell Styles
|
|
96
|
-
============================================================================ */
|
|
97
|
-
|
|
98
70
|
.calendar-cell {
|
|
99
71
|
flex: 1;
|
|
100
72
|
display: flex;
|
|
@@ -105,10 +77,6 @@ export const calendarMonthStyles = `
|
|
|
105
77
|
box-sizing: border-box;
|
|
106
78
|
}
|
|
107
79
|
|
|
108
|
-
/* ============================================================================
|
|
109
|
-
Header Cells
|
|
110
|
-
============================================================================ */
|
|
111
|
-
|
|
112
80
|
.calendar-header-cell {
|
|
113
81
|
text-align: center;
|
|
114
82
|
font-weight: 500;
|
|
@@ -117,21 +85,14 @@ export const calendarMonthStyles = `
|
|
|
117
85
|
letter-spacing: 0.05em;
|
|
118
86
|
}
|
|
119
87
|
|
|
120
|
-
/* ============================================================================
|
|
121
|
-
Day Cells - Square with Better Visual Hierarchy
|
|
122
|
-
============================================================================ */
|
|
123
|
-
|
|
124
88
|
.calendar-day-cell {
|
|
125
|
-
/* Square cells */
|
|
126
89
|
aspect-ratio: 1;
|
|
127
90
|
|
|
128
|
-
/* Layout */
|
|
129
91
|
display: flex;
|
|
130
92
|
align-items: center;
|
|
131
93
|
justify-content: center;
|
|
132
94
|
flex-direction: column;
|
|
133
95
|
|
|
134
|
-
/* Spacing */
|
|
135
96
|
margin: 0.125rem;
|
|
136
97
|
|
|
137
98
|
/* Visual: ghost cells — no boxes; the border is a theming hook only */
|
|
@@ -142,7 +103,6 @@ export const calendarMonthStyles = `
|
|
|
142
103
|
cursor: pointer;
|
|
143
104
|
transition: var(--ty-local-transition, background-color 0.15s ease, color 0.15s ease);
|
|
144
105
|
|
|
145
|
-
/* Typography */
|
|
146
106
|
font-weight: 400;
|
|
147
107
|
font-variant-numeric: tabular-nums;
|
|
148
108
|
}
|
|
@@ -162,10 +122,6 @@ export const calendarMonthStyles = `
|
|
|
162
122
|
box-shadow: 0 0 0 2px var(--calendar-month-accent, var(--ty-color-primary));
|
|
163
123
|
}
|
|
164
124
|
|
|
165
|
-
/* ============================================================================
|
|
166
|
-
Day States
|
|
167
|
-
============================================================================ */
|
|
168
|
-
|
|
169
125
|
/* Today: accent number, no slab — never collides with hover, and the
|
|
170
126
|
selected pill wins when today is picked */
|
|
171
127
|
.calendar-day-cell.today {
|
|
@@ -222,11 +178,6 @@ export const calendarMonthStyles = `
|
|
|
222
178
|
opacity: 0.7;
|
|
223
179
|
}
|
|
224
180
|
|
|
225
|
-
/* ============================================================================
|
|
226
|
-
Size Variants
|
|
227
|
-
============================================================================ */
|
|
228
|
-
|
|
229
|
-
/* Small - Compact (240px min-width) */
|
|
230
181
|
.calendar-size-sm {
|
|
231
182
|
padding: 0.5rem;
|
|
232
183
|
min-width: 240px;
|
|
@@ -246,7 +197,6 @@ export const calendarMonthStyles = `
|
|
|
246
197
|
min-height: 1.5rem;
|
|
247
198
|
}
|
|
248
199
|
|
|
249
|
-
/* Medium - Default (280px min-width) */
|
|
250
200
|
.calendar-size-md {
|
|
251
201
|
padding: 0.75rem;
|
|
252
202
|
min-width: 280px;
|
|
@@ -266,7 +216,6 @@ export const calendarMonthStyles = `
|
|
|
266
216
|
min-height: 2rem;
|
|
267
217
|
}
|
|
268
218
|
|
|
269
|
-
/* Large - Spacious (360px min-width) */
|
|
270
219
|
.calendar-size-lg {
|
|
271
220
|
padding: 1rem;
|
|
272
221
|
min-width: 360px;
|
|
@@ -286,10 +235,7 @@ export const calendarMonthStyles = `
|
|
|
286
235
|
min-height: 2.5rem;
|
|
287
236
|
}
|
|
288
237
|
|
|
289
|
-
/*
|
|
290
|
-
Backwards Compatibility
|
|
291
|
-
============================================================================ */
|
|
292
|
-
|
|
238
|
+
/* Kept for backwards compatibility */
|
|
293
239
|
.calendar-day {
|
|
294
240
|
width: 100%;
|
|
295
241
|
height: 100%;
|
|
@@ -300,9 +246,6 @@ export const calendarMonthStyles = `
|
|
|
300
246
|
box-sizing: border-box;
|
|
301
247
|
}
|
|
302
248
|
|
|
303
|
-
/*
|
|
304
|
-
Flavor Variants (set --calendar-month-*, consumed above)
|
|
305
|
-
============================================================================ */
|
|
249
|
+
/* Flavor variants set --calendar-month-*, consumed above */
|
|
306
250
|
${FLAVORS.map((f) => calendarMonthFlavor(f)).join("")}
|
|
307
251
|
`;
|
|
308
|
-
//# sourceMappingURL=calendar-month.js.map
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
* Clean, modern design with proper visual hierarchy and size variants
|
|
4
|
-
*/
|
|
5
|
-
export declare const calendarNavigationStyles = "\n/* ============================================================================\n Size Variants (CSS Custom Properties)\n ============================================================================ */\n\n/* Theming tokens applied as var(--ty-calendar-nav-*, <default>) at point of\n use (NOT on :host) so consumers can override them from outside \u2014 this\n component is nested inside ty-calendar's shadow, so a :host default would\n block inherited overrides. --ty-calendar-accent still cascades in. */\n\n:host([data-size=\"md\"]) {\n --nav-btn-size: 2rem;\n --nav-btn-icon-size: 1.25rem;\n --nav-font-size: 1rem;\n --nav-padding: 0.5rem 0.75rem;\n --nav-default-width: 280px;\n}\n\n:host([data-size=\"sm\"]) {\n --nav-btn-size: 1.5rem;\n --nav-btn-icon-size: 1rem;\n --nav-font-size: 0.875rem;\n --nav-padding: 0.375rem 0.5rem;\n --nav-default-width: 240px;\n}\n\n:host([data-size=\"lg\"]) {\n --nav-btn-size: 2.5rem;\n --nav-btn-icon-size: 1.5rem;\n --nav-font-size: 1.125rem;\n --nav-padding: 0.625rem 1rem;\n --nav-default-width: 360px;\n}\n\n/* ============================================================================\n Main Navigation Header\n ============================================================================ */\n\n.calendar-navigation-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--nav-padding);\n font-family: system-ui, sans-serif;\n user-select: none;\n width: var(--nav-width, var(--nav-default-width));\n box-sizing: border-box;\n}\n\n/* ============================================================================\n Navigation Groups (Left, Center, Right)\n ============================================================================ */\n\n.nav-group {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.nav-group-left,\n.nav-group-right {\n flex: 0 0 auto;\n}\n\n.nav-group-center {\n flex: 1;\n justify-content: center;\n}\n\n/* ============================================================================\n Navigation Buttons\n ============================================================================ */\n\n.nav-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nav-btn-size);\n height: var(--nav-btn-size);\n padding: 0;\n border: none;\n border-radius: var(--ty-radius-base);\n background-color: transparent;\n color: var(--ty-calendar-nav-color, var(--ty-color-neutral));\n cursor: pointer;\n transition: var(--ty-local-transition, all 0.15s ease);\n outline: none;\n}\n\n.nav-btn:hover {\n background-color: var(--ty-calendar-nav-hover-bg, var(--ty-bg-neutral-soft));\n color: var(--ty-calendar-nav-hover-color, var(--ty-color-neutral-strong));\n}\n\n.nav-btn:active {\n background-color: var(--ty-calendar-nav-active-bg, var(--ty-bg-neutral));\n transform: scale(0.95);\n}\n\n.nav-btn:disabled {\n opacity: 0.35;\n cursor: default;\n pointer-events: none;\n}\n\n.nav-btn:focus-visible {\n outline: 2px solid var(--ty-calendar-nav-focus-outline, var(--ty-calendar-accent, var(--ty-color-primary)));\n outline-offset: 2px;\n}\n\n/* SVG sizing */\n.nav-btn svg {\n width: var(--nav-btn-icon-size);\n height: var(--nav-btn-icon-size);\n display: block;\n}\n\n/* ============================================================================\n Month/Year Display (Center)\n ============================================================================ */\n\n.month-year-display {\n font-size: var(--nav-font-size);\n font-weight: 600;\n color: var(--ty-calendar-nav-title-color, var(--ty-color-neutral-strong));\n text-align: center;\n white-space: nowrap;\n letter-spacing: -0.01em;\n}\n";
|
|
6
|
-
//# sourceMappingURL=calendar-navigation.d.ts.map
|
|
1
|
+
/** Calendar Navigation Styles */
|
|
2
|
+
export declare const calendarNavigationStyles = "\n/* Theming tokens applied as var(--ty-calendar-nav-*, <default>) at point of\n use (NOT on :host) so consumers can override them from outside \u2014 this\n component is nested inside ty-calendar's shadow, so a :host default would\n block inherited overrides. --ty-calendar-accent still cascades in. */\n\n:host([data-size=\"md\"]) {\n --nav-btn-size: 2rem;\n --nav-btn-icon-size: 1.25rem;\n --nav-font-size: 1rem;\n --nav-padding: 0.5rem 0.75rem;\n --nav-default-width: 280px;\n}\n\n:host([data-size=\"sm\"]) {\n --nav-btn-size: 1.5rem;\n --nav-btn-icon-size: 1rem;\n --nav-font-size: 0.875rem;\n --nav-padding: 0.375rem 0.5rem;\n --nav-default-width: 240px;\n}\n\n:host([data-size=\"lg\"]) {\n --nav-btn-size: 2.5rem;\n --nav-btn-icon-size: 1.5rem;\n --nav-font-size: 1.125rem;\n --nav-padding: 0.625rem 1rem;\n --nav-default-width: 360px;\n}\n\n.calendar-navigation-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--nav-padding);\n font-family: inherit;\n user-select: none;\n width: var(--nav-width, var(--nav-default-width));\n box-sizing: border-box;\n}\n\n/* Navigation groups: left, center, right */\n.nav-group {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.nav-group-left,\n.nav-group-right {\n flex: 0 0 auto;\n}\n\n.nav-group-center {\n flex: 1;\n justify-content: center;\n}\n\n.nav-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nav-btn-size);\n height: var(--nav-btn-size);\n padding: 0;\n border: none;\n border-radius: var(--ty-radius-base);\n background-color: transparent;\n color: var(--ty-calendar-nav-color, var(--ty-color-neutral));\n cursor: pointer;\n transition: var(--ty-local-transition, all 0.15s ease);\n outline: none;\n}\n\n.nav-btn:hover {\n background-color: var(--ty-calendar-nav-hover-bg, var(--ty-bg-neutral-soft));\n color: var(--ty-calendar-nav-hover-color, var(--ty-color-neutral-strong));\n}\n\n.nav-btn:active {\n background-color: var(--ty-calendar-nav-active-bg, var(--ty-bg-neutral));\n transform: scale(0.95);\n}\n\n.nav-btn:disabled {\n opacity: 0.35;\n cursor: default;\n pointer-events: none;\n}\n\n.nav-btn:focus-visible {\n outline: 2px solid var(--ty-calendar-nav-focus-outline, var(--ty-calendar-accent, var(--ty-color-primary)));\n outline-offset: 2px;\n}\n\n.nav-btn svg {\n width: var(--nav-btn-icon-size);\n height: var(--nav-btn-icon-size);\n display: block;\n}\n\n.month-year-display {\n font-size: var(--nav-font-size);\n font-weight: 600;\n color: var(--ty-calendar-nav-title-color, var(--ty-color-neutral-strong));\n text-align: center;\n white-space: nowrap;\n letter-spacing: -0.01em;\n}\n";
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calendar Navigation Styles
|
|
3
|
-
* Clean, modern design with proper visual hierarchy and size variants
|
|
4
|
-
*/
|
|
5
1
|
export const calendarNavigationStyles = `
|
|
6
|
-
/* ============================================================================
|
|
7
|
-
Size Variants (CSS Custom Properties)
|
|
8
|
-
============================================================================ */
|
|
9
|
-
|
|
10
2
|
/* Theming tokens applied as var(--ty-calendar-nav-*, <default>) at point of
|
|
11
3
|
use (NOT on :host) so consumers can override them from outside — this
|
|
12
4
|
component is nested inside ty-calendar's shadow, so a :host default would
|
|
@@ -36,25 +28,18 @@ export const calendarNavigationStyles = `
|
|
|
36
28
|
--nav-default-width: 360px;
|
|
37
29
|
}
|
|
38
30
|
|
|
39
|
-
/* ============================================================================
|
|
40
|
-
Main Navigation Header
|
|
41
|
-
============================================================================ */
|
|
42
|
-
|
|
43
31
|
.calendar-navigation-header {
|
|
44
32
|
display: flex;
|
|
45
33
|
align-items: center;
|
|
46
34
|
justify-content: space-between;
|
|
47
35
|
padding: var(--nav-padding);
|
|
48
|
-
font-family:
|
|
36
|
+
font-family: inherit;
|
|
49
37
|
user-select: none;
|
|
50
38
|
width: var(--nav-width, var(--nav-default-width));
|
|
51
39
|
box-sizing: border-box;
|
|
52
40
|
}
|
|
53
41
|
|
|
54
|
-
/*
|
|
55
|
-
Navigation Groups (Left, Center, Right)
|
|
56
|
-
============================================================================ */
|
|
57
|
-
|
|
42
|
+
/* Navigation groups: left, center, right */
|
|
58
43
|
.nav-group {
|
|
59
44
|
display: flex;
|
|
60
45
|
align-items: center;
|
|
@@ -71,10 +56,6 @@ export const calendarNavigationStyles = `
|
|
|
71
56
|
justify-content: center;
|
|
72
57
|
}
|
|
73
58
|
|
|
74
|
-
/* ============================================================================
|
|
75
|
-
Navigation Buttons
|
|
76
|
-
============================================================================ */
|
|
77
|
-
|
|
78
59
|
.nav-btn {
|
|
79
60
|
display: inline-flex;
|
|
80
61
|
align-items: center;
|
|
@@ -112,17 +93,12 @@ export const calendarNavigationStyles = `
|
|
|
112
93
|
outline-offset: 2px;
|
|
113
94
|
}
|
|
114
95
|
|
|
115
|
-
/* SVG sizing */
|
|
116
96
|
.nav-btn svg {
|
|
117
97
|
width: var(--nav-btn-icon-size);
|
|
118
98
|
height: var(--nav-btn-icon-size);
|
|
119
99
|
display: block;
|
|
120
100
|
}
|
|
121
101
|
|
|
122
|
-
/* ============================================================================
|
|
123
|
-
Month/Year Display (Center)
|
|
124
|
-
============================================================================ */
|
|
125
|
-
|
|
126
102
|
.month-year-display {
|
|
127
103
|
font-size: var(--nav-font-size);
|
|
128
104
|
font-weight: 600;
|
|
@@ -132,4 +108,3 @@ export const calendarNavigationStyles = `
|
|
|
132
108
|
letter-spacing: -0.01em;
|
|
133
109
|
}
|
|
134
110
|
`;
|
|
135
|
-
//# sourceMappingURL=calendar-navigation.js.map
|
package/lib/styles/calendar.d.ts
CHANGED
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* Calendar Orchestration Styles
|
|
3
3
|
* Simple container for navigation + month display
|
|
4
4
|
*/
|
|
5
|
-
export declare const calendarStyles = "\n
|
|
6
|
-
//# sourceMappingURL=calendar.d.ts.map
|
|
5
|
+
export declare const calendarStyles = "\n.calendar-container {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n box-sizing: border-box;\n font-family: inherit;\n}\n\n@media (max-width: 320px) {\n .calendar-container {\n gap: 0.375rem;\n }\n}\n";
|
package/lib/styles/calendar.js
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calendar Orchestration Styles
|
|
3
|
-
* Simple container for navigation + month display
|
|
4
|
-
*/
|
|
5
1
|
export const calendarStyles = `
|
|
6
|
-
/* ============================================================================
|
|
7
|
-
Calendar Container
|
|
8
|
-
============================================================================ */
|
|
9
|
-
|
|
10
2
|
.calendar-container {
|
|
11
3
|
display: flex;
|
|
12
4
|
flex-direction: column;
|
|
13
5
|
gap: 0.125rem;
|
|
14
6
|
box-sizing: border-box;
|
|
15
|
-
font-family:
|
|
7
|
+
font-family: inherit;
|
|
16
8
|
}
|
|
17
9
|
|
|
18
|
-
/* ============================================================================
|
|
19
|
-
Responsive Adjustments
|
|
20
|
-
============================================================================ */
|
|
21
|
-
|
|
22
10
|
@media (max-width: 320px) {
|
|
23
11
|
.calendar-container {
|
|
24
12
|
gap: 0.375rem;
|
|
25
13
|
}
|
|
26
14
|
}
|
|
27
15
|
`;
|
|
28
|
-
//# sourceMappingURL=calendar.js.map
|
package/lib/styles/checkbox.d.ts
CHANGED
package/lib/styles/checkbox.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checkbox Component Styles — self-contained (no inputStyles import).
|
|
3
|
-
*
|
|
4
|
-
* The checkbox is "just the tick": a single checkmark whose color/opacity
|
|
5
|
-
* carries the state. Full flavor color when checked, faint when unchecked,
|
|
6
|
-
* dash at mid-opacity when indeterminate, grayscale when disabled.
|
|
7
|
-
*/
|
|
8
1
|
import { FLAVORS } from "../types/common.js";
|
|
9
|
-
/* Flavor rules only set --checkbox-color (checked) / --checkbox-color-off
|
|
10
|
-
(unchecked) / --checkbox-ring (focus ring); the base rules below consume
|
|
11
|
-
them. Doubles as the per-instance override API: `ty-checkbox {
|
|
12
|
-
--checkbox-color: … }`. --checkbox-ring pre-resolves the color-mix() here
|
|
13
|
-
(rather than inlining a nested var(...,fallback) as a color-mix argument
|
|
14
|
-
directly in the box-shadow rule) — that nested form fails at
|
|
15
|
-
computed-value time in some engines. Fallback flavor `fb` is used for
|
|
16
|
-
custom flavors so missing tokens degrade to neutral. */
|
|
17
2
|
const checkboxFlavor = (f, fb) => {
|
|
18
3
|
const tok = (s) => fb
|
|
19
4
|
? `var(--ty-color-${f}${s}, var(--ty-color-${fb}${s}))`
|
|
@@ -24,7 +9,6 @@ const checkboxFlavor = (f, fb) => {
|
|
|
24
9
|
:host([flavor="${f}-"]) { --checkbox-color: ${tok("-soft")}; --checkbox-color-off: ${tok("-faint")}; --checkbox-ring: color-mix(in oklab, ${tok("-soft")} 25%, transparent); }
|
|
25
10
|
`;
|
|
26
11
|
};
|
|
27
|
-
/** Rules for one custom (non-built-in) flavor — see utils/flavor-sheet.ts. */
|
|
28
12
|
export const checkboxCustomFlavorCss = (base) => checkboxFlavor(base, "neutral");
|
|
29
13
|
export const checkboxStyles = `
|
|
30
14
|
:host {
|
|
@@ -69,8 +53,6 @@ export const checkboxStyles = `
|
|
|
69
53
|
/* Let the container handle the click */
|
|
70
54
|
}
|
|
71
55
|
|
|
72
|
-
/* ===== SIZES ===== */
|
|
73
|
-
|
|
74
56
|
.checkbox-container svg {
|
|
75
57
|
width: 16px;
|
|
76
58
|
height: 16px;
|
|
@@ -96,11 +78,9 @@ export const checkboxStyles = `
|
|
|
96
78
|
height: 24px;
|
|
97
79
|
}
|
|
98
80
|
|
|
99
|
-
/*
|
|
81
|
+
/* Semantic flavors set --checkbox-color[-off], consumed above */
|
|
100
82
|
${FLAVORS.map((f) => checkboxFlavor(f)).join("")}
|
|
101
83
|
|
|
102
|
-
/* ===== STATES ===== */
|
|
103
|
-
|
|
104
84
|
/* Clean tick: no box outline, just the checkmark. Inactive = faint tick. */
|
|
105
85
|
.checkbox-container:not([aria-checked="true"]) {
|
|
106
86
|
opacity: 0.35;
|
|
@@ -124,7 +104,6 @@ ${FLAVORS.map((f) => checkboxFlavor(f)).join("")}
|
|
|
124
104
|
opacity: 0.2;
|
|
125
105
|
}
|
|
126
106
|
|
|
127
|
-
/* Error state */
|
|
128
107
|
.checkbox-container.error .checkbox-icon {
|
|
129
108
|
color: var(--ty-color-danger);
|
|
130
109
|
}
|
|
@@ -133,4 +112,3 @@ ${FLAVORS.map((f) => checkboxFlavor(f)).join("")}
|
|
|
133
112
|
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ty-color-danger) 15%, transparent);
|
|
134
113
|
}
|
|
135
114
|
`;
|
|
136
|
-
//# sourceMappingURL=checkbox.js.map
|
package/lib/styles/copy.d.ts
CHANGED
package/lib/styles/copy.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copy Component Styles
|
|
3
|
-
* Read-only field with copy-to-clipboard functionality
|
|
4
|
-
* Extends input styles with copy-specific styling
|
|
5
|
-
*/
|
|
6
1
|
import { FLAVORS } from "../types/common.js";
|
|
7
|
-
/* Flavor rules only set --copy-color (button), --copy-color-hover, and
|
|
8
|
-
--copy-bg-hover (wrapper hover); the base rules below consume them.
|
|
9
|
-
Doubles as the per-instance override API. Fallback flavor `fb` is used
|
|
10
|
-
for custom flavors so missing tokens degrade to neutral. */
|
|
11
2
|
const copyFlavor = (f, fb) => {
|
|
12
3
|
const c = (s) => fb
|
|
13
4
|
? `var(--ty-color-${f}${s}, var(--ty-color-${fb}${s}))`
|
|
@@ -21,10 +12,8 @@ const copyFlavor = (f, fb) => {
|
|
|
21
12
|
:host([flavor="${f}-"]) { --copy-color: ${c("-soft")}; --copy-color-hover: ${c("")}; --copy-bg-hover: ${bg("-soft")}; }
|
|
22
13
|
`;
|
|
23
14
|
};
|
|
24
|
-
/** Rules for one custom (non-built-in) flavor — see utils/flavor-sheet.ts. */
|
|
25
15
|
export const copyCustomFlavorCss = (base) => copyFlavor(base, "neutral");
|
|
26
16
|
export const copyStyles = `
|
|
27
|
-
/* Copy field value display */
|
|
28
17
|
.copy-field-value {
|
|
29
18
|
flex: 1;
|
|
30
19
|
overflow: hidden;
|
|
@@ -41,7 +30,6 @@ export const copyStyles = `
|
|
|
41
30
|
line-height: inherit;
|
|
42
31
|
}
|
|
43
32
|
|
|
44
|
-
/* Multiline variant */
|
|
45
33
|
.copy-field-value.multiline {
|
|
46
34
|
white-space: pre-wrap;
|
|
47
35
|
word-break: break-word;
|
|
@@ -56,7 +44,7 @@ export const copyStyles = `
|
|
|
56
44
|
padding-bottom: 8px;
|
|
57
45
|
}
|
|
58
46
|
|
|
59
|
-
/*
|
|
47
|
+
/* Scroll long content instead of clipping with an ellipsis */
|
|
60
48
|
.copy-field-value.horizontal-scroll {
|
|
61
49
|
overflow-x: auto;
|
|
62
50
|
overflow-y: hidden;
|
|
@@ -81,7 +69,6 @@ export const copyStyles = `
|
|
|
81
69
|
display: none; /* Chrome/Safari */
|
|
82
70
|
}
|
|
83
71
|
|
|
84
|
-
/* Code format */
|
|
85
72
|
.copy-field-value {
|
|
86
73
|
font-size: 0.8em;
|
|
87
74
|
}
|
|
@@ -92,7 +79,6 @@ export const copyStyles = `
|
|
|
92
79
|
transition: var(--ty-local-transition, background 0.2s ease);
|
|
93
80
|
}
|
|
94
81
|
|
|
95
|
-
/* Copy button */
|
|
96
82
|
.copy-button {
|
|
97
83
|
flex-shrink: 0;
|
|
98
84
|
display: flex;
|
|
@@ -143,7 +129,6 @@ export const copyStyles = `
|
|
|
143
129
|
cursor: not-allowed;
|
|
144
130
|
}
|
|
145
131
|
|
|
146
|
-
/*
|
|
132
|
+
/* Semantic flavors set --copy-*, consumed above */
|
|
147
133
|
${FLAVORS.map((f) => copyFlavor(f)).join("")}
|
|
148
134
|
`;
|
|
149
|
-
//# sourceMappingURL=copy.js.map
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* Shared CSS for CustomScrollbar utility
|
|
3
3
|
* Include this in any component that uses CustomScrollbar
|
|
4
4
|
*/
|
|
5
|
-
export declare const customScrollbarStyles = "\n/*
|
|
6
|
-
//# sourceMappingURL=custom-scrollbar.d.ts.map
|
|
5
|
+
export declare const customScrollbarStyles = "\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";
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared CSS for CustomScrollbar utility
|
|
3
|
-
* Include this in any component that uses CustomScrollbar
|
|
4
|
-
*/
|
|
5
1
|
export const customScrollbarStyles = `
|
|
6
|
-
/*
|
|
7
|
-
/* Custom Scrollbar - Vertical Track */
|
|
8
|
-
/* ===================================== */
|
|
9
|
-
|
|
2
|
+
/* Vertical track */
|
|
10
3
|
.ty-scrollbar-track-y {
|
|
11
4
|
position: absolute;
|
|
12
5
|
top: 0;
|
|
@@ -68,10 +61,7 @@ export const customScrollbarStyles = `
|
|
|
68
61
|
background: var(--ty-scrollbar-thumb-active, color-mix(in oklab, var(--ty-color-neutral-bold) 70%, transparent));
|
|
69
62
|
}
|
|
70
63
|
|
|
71
|
-
/*
|
|
72
|
-
/* Custom Scrollbar - Horizontal Track */
|
|
73
|
-
/* ===================================== */
|
|
74
|
-
|
|
64
|
+
/* Horizontal track */
|
|
75
65
|
.ty-scrollbar-track-x {
|
|
76
66
|
position: absolute;
|
|
77
67
|
bottom: 0;
|
|
@@ -133,10 +123,7 @@ export const customScrollbarStyles = `
|
|
|
133
123
|
background: var(--ty-scrollbar-thumb-active, color-mix(in oklab, var(--ty-color-neutral-bold) 70%, transparent));
|
|
134
124
|
}
|
|
135
125
|
|
|
136
|
-
/*
|
|
137
|
-
/* Touch devices - hide custom scrollbar */
|
|
138
|
-
/* ===================================== */
|
|
139
|
-
|
|
126
|
+
/* Touch devices: hide the custom scrollbar */
|
|
140
127
|
@media (pointer: coarse) and (hover: none) {
|
|
141
128
|
.ty-scrollbar-track-y,
|
|
142
129
|
.ty-scrollbar-track-x {
|
|
@@ -144,7 +131,6 @@ export const customScrollbarStyles = `
|
|
|
144
131
|
}
|
|
145
132
|
}
|
|
146
133
|
|
|
147
|
-
/* Respect reduced motion */
|
|
148
134
|
@media (prefers-reduced-motion: reduce) {
|
|
149
135
|
.ty-scrollbar-track-y,
|
|
150
136
|
.ty-scrollbar-track-x,
|
|
@@ -154,4 +140,3 @@ export const customScrollbarStyles = `
|
|
|
154
140
|
}
|
|
155
141
|
}
|
|
156
142
|
`;
|
|
157
|
-
//# sourceMappingURL=custom-scrollbar.js.map
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Date Picker Component Styles
|
|
3
|
-
* PORTED FROM: cljs/ty/components/date_picker.css
|
|
4
|
-
*/
|
|
1
|
+
/** Date Picker Component Styles */
|
|
5
2
|
/** Rules for one custom (non-built-in) flavor — see utils/flavor-sheet.ts. */
|
|
6
3
|
export declare const datePickerCustomFlavorCss: (base: string) => string;
|
|
7
4
|
export declare const datePickerStyles: string;
|
|
8
|
-
//# sourceMappingURL=date-picker.d.ts.map
|