tyrell-components 1.0.0-TC19 → 1.0.0-TC22
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/css/tyrell-brand.css +767 -0
- package/css/tyrell.css +64 -168
- package/dist/tyrell-brand.css +767 -0
- package/dist/tyrell.css +64 -168
- package/dist/tyrell.js +1 -1
- package/lib/components/tooltip.js +1 -1
- package/lib/styles/calendar-month.d.ts +1 -1
- package/lib/styles/calendar-month.js +3 -3
- package/lib/styles/checkbox.d.ts +1 -1
- package/lib/styles/checkbox.d.ts.map +1 -1
- package/lib/styles/custom-scrollbar.d.ts +1 -1
- package/lib/styles/custom-scrollbar.d.ts.map +1 -1
- package/lib/styles/custom-scrollbar.js +8 -8
- package/lib/styles/date-picker.d.ts +1 -1
- package/lib/styles/date-picker.d.ts.map +1 -1
- package/lib/styles/date-picker.js +16 -16
- package/lib/styles/dropdown.d.ts +1 -1
- package/lib/styles/dropdown.d.ts.map +1 -1
- package/lib/styles/dropdown.js +7 -7
- package/lib/styles/input.d.ts +1 -1
- package/lib/styles/input.d.ts.map +1 -1
- package/lib/styles/input.js +16 -16
- package/lib/styles/multiselect.d.ts +1 -1
- package/lib/styles/multiselect.d.ts.map +1 -1
- package/lib/styles/multiselect.js +1 -1
- package/lib/styles/option.d.ts +1 -1
- package/lib/styles/option.js +1 -1
- package/lib/styles/radio.d.ts +1 -1
- package/lib/styles/radio.d.ts.map +1 -1
- package/lib/styles/scroll-container.d.ts +1 -1
- package/lib/styles/scroll-container.d.ts.map +1 -1
- package/lib/styles/scroll-container.js +10 -10
- package/lib/styles/step.d.ts +1 -1
- package/lib/styles/step.d.ts.map +1 -1
- package/lib/styles/switch.d.ts +1 -1
- package/lib/styles/switch.d.ts.map +1 -1
- package/lib/styles/tab.d.ts +1 -1
- package/lib/styles/tab.d.ts.map +1 -1
- package/lib/styles/tag.d.ts +1 -1
- package/lib/styles/tag.d.ts.map +1 -1
- package/lib/styles/tag.js +15 -15
- package/lib/styles/textarea.d.ts +1 -1
- package/lib/styles/textarea.js +1 -1
- package/lib/styles/tooltip.d.ts.map +1 -1
- package/lib/styles/tooltip.js +12 -15
- package/lib/styles/tooltip.js.map +1 -1
- package/lib/styles/wizard.d.ts +12 -7
- package/lib/styles/wizard.d.ts.map +1 -1
- package/lib/styles/wizard.js +46 -74
- package/lib/styles/wizard.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/lib/styles/wizard.d.ts
CHANGED
|
@@ -7,14 +7,19 @@
|
|
|
7
7
|
* - step-circle: Individual step circle indicators
|
|
8
8
|
* - panels-container: The content viewport
|
|
9
9
|
*
|
|
10
|
-
* Theming
|
|
10
|
+
* Theming: four accent-alias knobs (one per state), four surface knobs
|
|
11
|
+
* (container chrome), and a small set of geometry/motion overrides.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Per-state circles read their colors directly from the matching accent
|
|
14
|
+
* variable — no per-state `-bg` indirection. Override one of:
|
|
15
|
+
* --ty-wizard-active-accent (default: --ty-color-primary)
|
|
16
|
+
* --ty-wizard-completed-accent (default: --ty-color-success)
|
|
17
|
+
* --ty-wizard-error-accent (default: --ty-color-danger)
|
|
18
|
+
* --ty-wizard-pending-accent (default: --ty-color-neutral)
|
|
15
19
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
20
|
+
* For per-shade fine control, override the brand-layer's flavor seeds
|
|
21
|
+
* (--ty-color-primary, --ty-color-success-strong, etc.) — they cascade
|
|
22
|
+
* through here.
|
|
18
23
|
*/
|
|
19
|
-
export declare const wizardStyles = "\n/* ============================================================================\n Theming Tokens\n All defaults chain back to global --ty-color-* / --ty-surface-* tokens.\n Override on the host element or a wrapping container.\n ============================================================================ */\n\n:host {\n display: block;\n width: var(--ty-wizard-width, 100%); /* set by width attribute \u2014 not a public token */\n height: var(--ty-wizard-height, 700px); /* set by height attribute \u2014 not a public token */\n box-sizing: border-box;\n\n /* Accent aliases \u2014 override one to shift the matching circle, glow, and progress fill */\n --ty-wizard-active-accent: var(--ty-color-primary);\n --ty-wizard-completed-accent: var(--ty-color-success);\n --ty-wizard-error-accent: var(--ty-color-danger);\n --ty-wizard-pending-accent: var(--ty-color-neutral);\n\n /* Container */\n --ty-wizard-bg: var(--ty-surface-floating);\n --ty-wizard-border: var(--ty-border);\n --ty-wizard-radius: 12px;\n --ty-wizard-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);\n\n /* Header strip */\n --ty-wizard-header-bg: var(--ty-surface-content);\n --ty-wizard-header-border: var(--ty-border-soft, var(--ty-border));\n --ty-wizard-header-padding: 24px 24px 16px;\n\n /* Progress line */\n --ty-wizard-progress-track: var(--ty-border);\n --ty-wizard-progress-fill: var(--ty-wizard-completed-accent);\n --ty-wizard-progress-height: 2px;\n\n /* Transitions */\n --ty-wizard-transition-duration: 300ms;\n --ty-wizard-transition-easing: ease-in-out;\n\n /* Circle geometry */\n --ty-wizard-circle-size: 32px;\n --ty-wizard-circle-border-width: 2px;\n\n /* Step circle \u2014 completed */\n --ty-wizard-completed-bg: var(--ty-wizard-completed-accent);\n --ty-wizard-completed-border: var(--ty-color-success-strong);\n --ty-wizard-completed-color: white;\n --ty-wizard-completed-glow: color-mix(in srgb, var(--ty-wizard-completed-accent) 10%, transparent);\n\n /* Step circle \u2014 active */\n --ty-wizard-active-bg: var(--ty-wizard-active-accent);\n --ty-wizard-active-border: var(--ty-color-primary-strong);\n --ty-wizard-active-color: white;\n --ty-wizard-active-glow: color-mix(in srgb, var(--ty-wizard-active-accent) 10%, transparent);\n\n /* Step circle \u2014 pending */\n --ty-wizard-pending-bg: var(--ty-surface-elevated);\n --ty-wizard-pending-border: var(--ty-border);\n --ty-wizard-pending-color: var(--ty-text-soft);\n\n /* Step circle \u2014 error */\n --ty-wizard-error-bg: var(--ty-wizard-error-accent);\n --ty-wizard-error-border: var(--ty-color-danger-strong);\n --ty-wizard-error-color: white;\n --ty-wizard-error-glow: color-mix(in srgb, var(--ty-wizard-error-accent) 10%, transparent);\n\n /* Labels */\n --ty-wizard-label-color: var(--ty-text);\n --ty-wizard-label-active-color: var(--ty-text-strong);\n --ty-wizard-label-inactive-color: var(--ty-text-soft);\n --ty-wizard-label-size: var(--ty-font-sm, 14px);\n --ty-wizard-label-weight: var(--ty-font-semibold, 600);\n\n /* Descriptions */\n --ty-wizard-description-color: var(--ty-text-soft);\n --ty-wizard-description-active-color: var(--ty-text);\n --ty-wizard-description-size: var(--ty-font-xs, 12px);\n\n /* Panels viewport */\n --ty-wizard-panels-bg: var(--ty-surface-elevated);\n\n /* Focus */\n --ty-wizard-focus-outline: var(--ty-wizard-active-accent);\n}\n\n.wizard-container {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n border-radius: var(--ty-wizard-radius);\n border: 1px solid var(--ty-wizard-border);\n background: var(--ty-wizard-bg);\n box-shadow: var(--ty-wizard-shadow);\n overflow: hidden;\n}\n\n/* ===================================== */\n/* Step Indicators Wrapper */\n/* ===================================== */\n\n.step-indicators-wrapper {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n position: relative;\n padding: var(--ty-wizard-header-padding);\n border-bottom: 1px solid var(--ty-wizard-header-border);\n background: var(--ty-wizard-header-bg);\n}\n\n/* ===================================== */\n/* Progress Line (behind step circles) */\n/* ===================================== */\n\n.progress-line {\n position: absolute;\n /*\n * With equal-width indicators (flex: 1), each takes 100%/N of the width.\n * Circle centers sit at 50%/N from the left edge of each indicator.\n * Inset = 50% / step-count from each side keeps the line between circle centres.\n */\n left: calc(50% / var(--ty-wizard-step-count, 4));\n right: calc(50% / var(--ty-wizard-step-count, 4));\n top: calc(var(--ty-wizard-circle-size, 32px) / 2 - 1px);\n height: var(--ty-wizard-progress-height);\n background: var(--ty-wizard-progress-track);\n z-index: 0;\n pointer-events: none;\n transition: opacity var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n}\n\n.progress-overlay {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n background: var(--ty-wizard-progress-fill);\n transition: width var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n will-change: width;\n}\n\n/* ===================================== */\n/* Step Indicators Container */\n/* ===================================== */\n\n.step-indicators {\n display: flex;\n align-items: flex-start;\n position: relative;\n}\n\n/* ===================================== */\n/* Individual Step Indicator */\n/* ===================================== */\n\n.step-indicator {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n font: inherit;\n transition: opacity 200ms;\n flex: 1;\n min-width: 0;\n}\n\n.step-indicator[aria-disabled=\"true\"] {\n opacity: 0.4;\n cursor: not-allowed;\n pointer-events: none;\n}\n\n.step-indicator:focus-visible {\n outline: 2px solid var(--ty-wizard-focus-outline);\n outline-offset: 4px;\n border-radius: 50%;\n}\n\n/* ===================================== */\n/* Step Circle */\n/* ===================================== */\n\n.step-circle {\n width: var(--ty-wizard-circle-size);\n height: var(--ty-wizard-circle-size);\n border-radius: 50%;\n border: var(--ty-wizard-circle-border-width) solid;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n z-index: 10;\n transition: all var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.step-circle[data-state=\"completed\"] {\n background: var(--ty-wizard-completed-bg);\n border-color: var(--ty-wizard-completed-border);\n color: var(--ty-wizard-completed-color);\n box-shadow: 0 0 0 4px var(--ty-wizard-completed-glow);\n}\n\n.step-circle[data-state=\"active\"] {\n background: var(--ty-wizard-active-bg);\n border-color: var(--ty-wizard-active-border);\n color: var(--ty-wizard-active-color);\n box-shadow: 0 0 0 4px var(--ty-wizard-active-glow);\n}\n\n.step-circle[data-state=\"pending\"] {\n background: var(--ty-wizard-pending-bg);\n border-color: var(--ty-wizard-pending-border);\n color: var(--ty-wizard-pending-color);\n}\n\n.step-circle[data-state=\"error\"] {\n background: var(--ty-wizard-error-bg);\n border-color: var(--ty-wizard-error-border);\n color: var(--ty-wizard-error-color);\n box-shadow: 0 0 0 4px var(--ty-wizard-error-glow);\n}\n\n/* ===================================== */\n/* Step Text Container */\n/* ===================================== */\n\n.step-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n align-items: center;\n}\n\n/* ===================================== */\n/* Step Label */\n/* ===================================== */\n\n.step-label {\n font-size: var(--ty-wizard-label-size);\n font-weight: var(--ty-wizard-label-weight);\n color: var(--ty-wizard-label-color);\n transition: color 200ms;\n}\n\n.step-indicator[aria-selected=\"true\"] .step-label {\n color: var(--ty-wizard-label-active-color);\n}\n\n.step-indicator[aria-selected=\"false\"] .step-label {\n color: var(--ty-wizard-label-inactive-color);\n}\n\n/* ===================================== */\n/* Step Description */\n/* ===================================== */\n\n.step-description {\n font-size: var(--ty-wizard-description-size);\n font-weight: var(--ty-font-normal, 400);\n color: var(--ty-wizard-description-color);\n transition: color 200ms;\n text-align: center;\n max-width: 120px;\n}\n\n.step-indicator[aria-selected=\"true\"] .step-description {\n color: var(--ty-wizard-description-active-color);\n}\n\n/* ===================================== */\n/* Custom Indicator Content via Slots */\n/* ===================================== */\n\n::slotted([slot^=\"indicator-\"]) {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n}\n\n/* ===================================== */\n/* Panels Viewport */\n/* ===================================== */\n\n.panels-viewport {\n position: relative;\n flex: 1;\n overflow: hidden;\n min-height: 0;\n background: var(--ty-wizard-panels-bg);\n}\n\n/* ===================================== */\n/* Panels Wrapper (slides horizontally) */\n/* ===================================== */\n\n.panels-wrapper {\n display: flex;\n height: 100%;\n transition: transform var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n will-change: transform;\n}\n\n/* ===================================== */\n/* Slotted Step Panels */\n/* ===================================== */\n\n::slotted(ty-step) {\n width: var(--ty-wizard-width, 100%);\n height: 100%;\n flex-shrink: 0;\n}\n\n/* ===================================== */\n/* Accessibility & Motion Preferences */\n/* ===================================== */\n\n@media (prefers-reduced-motion: reduce) {\n .panels-wrapper {\n transition-duration: 0ms !important;\n }\n\n .progress-overlay {\n transition-duration: 0ms !important;\n }\n\n .step-circle {\n transition-duration: 0ms !important;\n }\n\n .progress-line {\n transition-duration: 0ms !important;\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n";
|
|
24
|
+
export declare const wizardStyles = "\n/* ============================================================================\n Theming Tokens \u2014 see file header for the override surface.\n Every default chains back to the brand layer / global scale tokens.\n ============================================================================ */\n\n:host {\n display: block;\n width: var(--ty-wizard-width, 100%); /* set by width attribute \u2014 not a public token */\n height: var(--ty-wizard-height, 700px); /* set by height attribute \u2014 not a public token */\n box-sizing: border-box;\n\n /* State accents \u2014 the primary override surface. One variable retints the\n * matching circle background, border, and glow. */\n --ty-wizard-active-accent: var(--ty-color-primary);\n --ty-wizard-completed-accent: var(--ty-color-success);\n --ty-wizard-error-accent: var(--ty-color-danger);\n --ty-wizard-pending-accent: var(--ty-color-neutral);\n\n /* Container chrome \u2014 routes through global scales. Override --ty-radius-lg\n * or --ty-shadow-md app-wide and the wizard follows; override these locally\n * to give the wizard a distinct look. */\n --ty-wizard-bg: var(--ty-surface-floating);\n --ty-wizard-border: var(--ty-border);\n --ty-wizard-radius: var(--ty-radius-lg, 12px);\n --ty-wizard-shadow: var(--ty-shadow-md, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1));\n\n /* Header strip */\n --ty-wizard-header-bg: var(--ty-surface-content);\n --ty-wizard-header-border: var(--ty-border-soft, var(--ty-border));\n --ty-wizard-header-padding: 24px 24px 16px;\n\n /* Progress line */\n --ty-wizard-progress-track: var(--ty-border);\n --ty-wizard-progress-fill: var(--ty-wizard-completed-accent);\n --ty-wizard-progress-height: 2px;\n\n /* Motion \u2014 routes through global motion tokens if defined. */\n --ty-wizard-transition-duration: var(--ty-transition-duration, 300ms);\n --ty-wizard-transition-easing: var(--ty-transition-easing, ease-in-out);\n\n /* Circle geometry */\n --ty-wizard-circle-size: 32px;\n --ty-wizard-circle-border-width: 2px;\n\n /* Panels viewport */\n --ty-wizard-panels-bg: var(--ty-surface-elevated);\n\n /* Focus */\n --ty-wizard-focus-outline: var(--ty-wizard-active-accent);\n}\n\n.wizard-container {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n border-radius: var(--ty-wizard-radius);\n border: 1px solid var(--ty-wizard-border);\n background: var(--ty-wizard-bg);\n box-shadow: var(--ty-wizard-shadow);\n overflow: hidden;\n}\n\n/* ===================================== */\n/* Step Indicators Wrapper */\n/* ===================================== */\n\n.step-indicators-wrapper {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n position: relative;\n padding: var(--ty-wizard-header-padding);\n border-bottom: 1px solid var(--ty-wizard-header-border);\n background: var(--ty-wizard-header-bg);\n}\n\n/* ===================================== */\n/* Progress Line (behind step circles) */\n/* ===================================== */\n\n.progress-line {\n position: absolute;\n /*\n * With equal-width indicators (flex: 1), each takes 100%/N of the width.\n * Circle centers sit at 50%/N from the left edge of each indicator.\n * Inset = 50% / step-count from each side keeps the line between circle centres.\n */\n left: calc(50% / var(--ty-wizard-step-count, 4));\n right: calc(50% / var(--ty-wizard-step-count, 4));\n top: calc(var(--ty-wizard-circle-size, 32px) / 2 - 1px);\n height: var(--ty-wizard-progress-height);\n background: var(--ty-wizard-progress-track);\n z-index: 0;\n pointer-events: none;\n transition: opacity var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n}\n\n.progress-overlay {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n background: var(--ty-wizard-progress-fill);\n transition: width var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n will-change: width;\n}\n\n/* ===================================== */\n/* Step Indicators Container */\n/* ===================================== */\n\n.step-indicators {\n display: flex;\n align-items: flex-start;\n position: relative;\n}\n\n/* ===================================== */\n/* Individual Step Indicator */\n/* ===================================== */\n\n.step-indicator {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n font: inherit;\n transition: opacity 200ms;\n flex: 1;\n min-width: 0;\n}\n\n.step-indicator[aria-disabled=\"true\"] {\n opacity: 0.4;\n cursor: not-allowed;\n pointer-events: none;\n}\n\n.step-indicator:focus-visible {\n outline: 2px solid var(--ty-wizard-focus-outline);\n outline-offset: 4px;\n border-radius: 50%;\n}\n\n/* ===================================== */\n/* Step Circle */\n/* ===================================== */\n\n.step-circle {\n width: var(--ty-wizard-circle-size);\n height: var(--ty-wizard-circle-size);\n border-radius: 50%;\n border: var(--ty-wizard-circle-border-width) solid;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n z-index: 10;\n transition: all var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.step-circle[data-state=\"completed\"] {\n background: var(--ty-wizard-completed-accent);\n border-color: var(--ty-color-success-strong);\n color: var(--ty-solid-success-fg, white);\n box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-completed-accent) 12%, transparent);\n}\n\n.step-circle[data-state=\"active\"] {\n background: var(--ty-wizard-active-accent);\n border-color: var(--ty-color-primary-strong);\n color: var(--ty-solid-primary-fg, white);\n box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-active-accent) 12%, transparent);\n}\n\n.step-circle[data-state=\"pending\"] {\n background: var(--ty-surface-elevated);\n border-color: var(--ty-border);\n color: var(--ty-color-neutral);\n}\n\n.step-circle[data-state=\"error\"] {\n background: var(--ty-wizard-error-accent);\n border-color: var(--ty-color-danger-strong);\n color: var(--ty-solid-danger-fg, white);\n box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-error-accent) 12%, transparent);\n}\n\n/* ===================================== */\n/* Step Text Container */\n/* ===================================== */\n\n.step-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n align-items: center;\n}\n\n/* ===================================== */\n/* Step Label */\n/* ===================================== */\n\n.step-label {\n font-size: var(--ty-font-sm, 14px);\n font-weight: var(--ty-font-semibold, 600);\n color: var(--ty-color-neutral);\n transition: color 200ms;\n}\n\n.step-indicator[aria-selected=\"true\"] .step-label {\n color: var(--ty-color-neutral-strong);\n}\n\n.step-indicator[aria-selected=\"false\"] .step-label {\n color: var(--ty-color-neutral);\n}\n\n/* ===================================== */\n/* Step Description */\n/* ===================================== */\n\n.step-description {\n font-size: var(--ty-font-xs, 12px);\n font-weight: var(--ty-font-normal, 400);\n color: var(--ty-color-neutral);\n transition: color 200ms;\n text-align: center;\n max-width: 120px;\n}\n\n.step-indicator[aria-selected=\"true\"] .step-description {\n color: var(--ty-color-neutral-bold);\n}\n\n/* ===================================== */\n/* Custom Indicator Content via Slots */\n/* ===================================== */\n\n::slotted([slot^=\"indicator-\"]) {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n}\n\n/* ===================================== */\n/* Panels Viewport */\n/* ===================================== */\n\n.panels-viewport {\n position: relative;\n flex: 1;\n overflow: hidden;\n min-height: 0;\n background: var(--ty-wizard-panels-bg);\n}\n\n/* ===================================== */\n/* Panels Wrapper (slides horizontally) */\n/* ===================================== */\n\n.panels-wrapper {\n display: flex;\n height: 100%;\n transition: transform var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n will-change: transform;\n}\n\n/* ===================================== */\n/* Slotted Step Panels */\n/* ===================================== */\n\n::slotted(ty-step) {\n width: var(--ty-wizard-width, 100%);\n height: 100%;\n flex-shrink: 0;\n}\n\n/* ===================================== */\n/* Accessibility & Motion Preferences */\n/* ===================================== */\n\n@media (prefers-reduced-motion: reduce) {\n .panels-wrapper {\n transition-duration: 0ms !important;\n }\n\n .progress-overlay {\n transition-duration: 0ms !important;\n }\n\n .step-circle {\n transition-duration: 0ms !important;\n }\n\n .progress-line {\n transition-duration: 0ms !important;\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n";
|
|
20
25
|
//# sourceMappingURL=wizard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/styles/wizard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/styles/wizard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,eAAO,MAAM,YAAY,yzSAmUxB,CAAC"}
|
package/lib/styles/wizard.js
CHANGED
|
@@ -7,20 +7,24 @@
|
|
|
7
7
|
* - step-circle: Individual step circle indicators
|
|
8
8
|
* - panels-container: The content viewport
|
|
9
9
|
*
|
|
10
|
-
* Theming
|
|
10
|
+
* Theming: four accent-alias knobs (one per state), four surface knobs
|
|
11
|
+
* (container chrome), and a small set of geometry/motion overrides.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Per-state circles read their colors directly from the matching accent
|
|
14
|
+
* variable — no per-state `-bg` indirection. Override one of:
|
|
15
|
+
* --ty-wizard-active-accent (default: --ty-color-primary)
|
|
16
|
+
* --ty-wizard-completed-accent (default: --ty-color-success)
|
|
17
|
+
* --ty-wizard-error-accent (default: --ty-color-danger)
|
|
18
|
+
* --ty-wizard-pending-accent (default: --ty-color-neutral)
|
|
15
19
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
20
|
+
* For per-shade fine control, override the brand-layer's flavor seeds
|
|
21
|
+
* (--ty-color-primary, --ty-color-success-strong, etc.) — they cascade
|
|
22
|
+
* through here.
|
|
18
23
|
*/
|
|
19
24
|
export const wizardStyles = `
|
|
20
25
|
/* ============================================================================
|
|
21
|
-
Theming Tokens
|
|
22
|
-
|
|
23
|
-
Override on the host element or a wrapping container.
|
|
26
|
+
Theming Tokens — see file header for the override surface.
|
|
27
|
+
Every default chains back to the brand layer / global scale tokens.
|
|
24
28
|
============================================================================ */
|
|
25
29
|
|
|
26
30
|
:host {
|
|
@@ -29,17 +33,20 @@ export const wizardStyles = `
|
|
|
29
33
|
height: var(--ty-wizard-height, 700px); /* set by height attribute — not a public token */
|
|
30
34
|
box-sizing: border-box;
|
|
31
35
|
|
|
32
|
-
/*
|
|
36
|
+
/* State accents — the primary override surface. One variable retints the
|
|
37
|
+
* matching circle background, border, and glow. */
|
|
33
38
|
--ty-wizard-active-accent: var(--ty-color-primary);
|
|
34
39
|
--ty-wizard-completed-accent: var(--ty-color-success);
|
|
35
40
|
--ty-wizard-error-accent: var(--ty-color-danger);
|
|
36
41
|
--ty-wizard-pending-accent: var(--ty-color-neutral);
|
|
37
42
|
|
|
38
|
-
/* Container
|
|
43
|
+
/* Container chrome — routes through global scales. Override --ty-radius-lg
|
|
44
|
+
* or --ty-shadow-md app-wide and the wizard follows; override these locally
|
|
45
|
+
* to give the wizard a distinct look. */
|
|
39
46
|
--ty-wizard-bg: var(--ty-surface-floating);
|
|
40
47
|
--ty-wizard-border: var(--ty-border);
|
|
41
|
-
--ty-wizard-radius: 12px;
|
|
42
|
-
--ty-wizard-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
48
|
+
--ty-wizard-radius: var(--ty-radius-lg, 12px);
|
|
49
|
+
--ty-wizard-shadow: var(--ty-shadow-md, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1));
|
|
43
50
|
|
|
44
51
|
/* Header strip */
|
|
45
52
|
--ty-wizard-header-bg: var(--ty-surface-content);
|
|
@@ -51,49 +58,14 @@ export const wizardStyles = `
|
|
|
51
58
|
--ty-wizard-progress-fill: var(--ty-wizard-completed-accent);
|
|
52
59
|
--ty-wizard-progress-height: 2px;
|
|
53
60
|
|
|
54
|
-
/*
|
|
55
|
-
--ty-wizard-transition-duration: 300ms;
|
|
56
|
-
--ty-wizard-transition-easing: ease-in-out;
|
|
61
|
+
/* Motion — routes through global motion tokens if defined. */
|
|
62
|
+
--ty-wizard-transition-duration: var(--ty-transition-duration, 300ms);
|
|
63
|
+
--ty-wizard-transition-easing: var(--ty-transition-easing, ease-in-out);
|
|
57
64
|
|
|
58
65
|
/* Circle geometry */
|
|
59
66
|
--ty-wizard-circle-size: 32px;
|
|
60
67
|
--ty-wizard-circle-border-width: 2px;
|
|
61
68
|
|
|
62
|
-
/* Step circle — completed */
|
|
63
|
-
--ty-wizard-completed-bg: var(--ty-wizard-completed-accent);
|
|
64
|
-
--ty-wizard-completed-border: var(--ty-color-success-strong);
|
|
65
|
-
--ty-wizard-completed-color: white;
|
|
66
|
-
--ty-wizard-completed-glow: color-mix(in srgb, var(--ty-wizard-completed-accent) 10%, transparent);
|
|
67
|
-
|
|
68
|
-
/* Step circle — active */
|
|
69
|
-
--ty-wizard-active-bg: var(--ty-wizard-active-accent);
|
|
70
|
-
--ty-wizard-active-border: var(--ty-color-primary-strong);
|
|
71
|
-
--ty-wizard-active-color: white;
|
|
72
|
-
--ty-wizard-active-glow: color-mix(in srgb, var(--ty-wizard-active-accent) 10%, transparent);
|
|
73
|
-
|
|
74
|
-
/* Step circle — pending */
|
|
75
|
-
--ty-wizard-pending-bg: var(--ty-surface-elevated);
|
|
76
|
-
--ty-wizard-pending-border: var(--ty-border);
|
|
77
|
-
--ty-wizard-pending-color: var(--ty-text-soft);
|
|
78
|
-
|
|
79
|
-
/* Step circle — error */
|
|
80
|
-
--ty-wizard-error-bg: var(--ty-wizard-error-accent);
|
|
81
|
-
--ty-wizard-error-border: var(--ty-color-danger-strong);
|
|
82
|
-
--ty-wizard-error-color: white;
|
|
83
|
-
--ty-wizard-error-glow: color-mix(in srgb, var(--ty-wizard-error-accent) 10%, transparent);
|
|
84
|
-
|
|
85
|
-
/* Labels */
|
|
86
|
-
--ty-wizard-label-color: var(--ty-text);
|
|
87
|
-
--ty-wizard-label-active-color: var(--ty-text-strong);
|
|
88
|
-
--ty-wizard-label-inactive-color: var(--ty-text-soft);
|
|
89
|
-
--ty-wizard-label-size: var(--ty-font-sm, 14px);
|
|
90
|
-
--ty-wizard-label-weight: var(--ty-font-semibold, 600);
|
|
91
|
-
|
|
92
|
-
/* Descriptions */
|
|
93
|
-
--ty-wizard-description-color: var(--ty-text-soft);
|
|
94
|
-
--ty-wizard-description-active-color: var(--ty-text);
|
|
95
|
-
--ty-wizard-description-size: var(--ty-font-xs, 12px);
|
|
96
|
-
|
|
97
69
|
/* Panels viewport */
|
|
98
70
|
--ty-wizard-panels-bg: var(--ty-surface-elevated);
|
|
99
71
|
|
|
@@ -221,30 +193,30 @@ export const wizardStyles = `
|
|
|
221
193
|
}
|
|
222
194
|
|
|
223
195
|
.step-circle[data-state="completed"] {
|
|
224
|
-
background: var(--ty-wizard-completed-
|
|
225
|
-
border-color: var(--ty-
|
|
226
|
-
color: var(--ty-
|
|
227
|
-
box-shadow: 0 0 0 4px var(--ty-wizard-completed-
|
|
196
|
+
background: var(--ty-wizard-completed-accent);
|
|
197
|
+
border-color: var(--ty-color-success-strong);
|
|
198
|
+
color: var(--ty-solid-success-fg, white);
|
|
199
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-completed-accent) 12%, transparent);
|
|
228
200
|
}
|
|
229
201
|
|
|
230
202
|
.step-circle[data-state="active"] {
|
|
231
|
-
background: var(--ty-wizard-active-
|
|
232
|
-
border-color: var(--ty-
|
|
233
|
-
color: var(--ty-
|
|
234
|
-
box-shadow: 0 0 0 4px var(--ty-wizard-active-
|
|
203
|
+
background: var(--ty-wizard-active-accent);
|
|
204
|
+
border-color: var(--ty-color-primary-strong);
|
|
205
|
+
color: var(--ty-solid-primary-fg, white);
|
|
206
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-active-accent) 12%, transparent);
|
|
235
207
|
}
|
|
236
208
|
|
|
237
209
|
.step-circle[data-state="pending"] {
|
|
238
|
-
background: var(--ty-
|
|
239
|
-
border-color: var(--ty-
|
|
240
|
-
color: var(--ty-
|
|
210
|
+
background: var(--ty-surface-elevated);
|
|
211
|
+
border-color: var(--ty-border);
|
|
212
|
+
color: var(--ty-color-neutral);
|
|
241
213
|
}
|
|
242
214
|
|
|
243
215
|
.step-circle[data-state="error"] {
|
|
244
|
-
background: var(--ty-wizard-error-
|
|
245
|
-
border-color: var(--ty-
|
|
246
|
-
color: var(--ty-
|
|
247
|
-
box-shadow: 0 0 0 4px var(--ty-wizard-error-
|
|
216
|
+
background: var(--ty-wizard-error-accent);
|
|
217
|
+
border-color: var(--ty-color-danger-strong);
|
|
218
|
+
color: var(--ty-solid-danger-fg, white);
|
|
219
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ty-wizard-error-accent) 12%, transparent);
|
|
248
220
|
}
|
|
249
221
|
|
|
250
222
|
/* ===================================== */
|
|
@@ -263,18 +235,18 @@ export const wizardStyles = `
|
|
|
263
235
|
/* ===================================== */
|
|
264
236
|
|
|
265
237
|
.step-label {
|
|
266
|
-
font-size: var(--ty-
|
|
267
|
-
font-weight: var(--ty-
|
|
268
|
-
color: var(--ty-
|
|
238
|
+
font-size: var(--ty-font-sm, 14px);
|
|
239
|
+
font-weight: var(--ty-font-semibold, 600);
|
|
240
|
+
color: var(--ty-color-neutral);
|
|
269
241
|
transition: color 200ms;
|
|
270
242
|
}
|
|
271
243
|
|
|
272
244
|
.step-indicator[aria-selected="true"] .step-label {
|
|
273
|
-
color: var(--ty-
|
|
245
|
+
color: var(--ty-color-neutral-strong);
|
|
274
246
|
}
|
|
275
247
|
|
|
276
248
|
.step-indicator[aria-selected="false"] .step-label {
|
|
277
|
-
color: var(--ty-
|
|
249
|
+
color: var(--ty-color-neutral);
|
|
278
250
|
}
|
|
279
251
|
|
|
280
252
|
/* ===================================== */
|
|
@@ -282,16 +254,16 @@ export const wizardStyles = `
|
|
|
282
254
|
/* ===================================== */
|
|
283
255
|
|
|
284
256
|
.step-description {
|
|
285
|
-
font-size: var(--ty-
|
|
257
|
+
font-size: var(--ty-font-xs, 12px);
|
|
286
258
|
font-weight: var(--ty-font-normal, 400);
|
|
287
|
-
color: var(--ty-
|
|
259
|
+
color: var(--ty-color-neutral);
|
|
288
260
|
transition: color 200ms;
|
|
289
261
|
text-align: center;
|
|
290
262
|
max-width: 120px;
|
|
291
263
|
}
|
|
292
264
|
|
|
293
265
|
.step-indicator[aria-selected="true"] .step-description {
|
|
294
|
-
color: var(--ty-
|
|
266
|
+
color: var(--ty-color-neutral-bold);
|
|
295
267
|
}
|
|
296
268
|
|
|
297
269
|
/* ===================================== */
|
package/lib/styles/wizard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard.js","sourceRoot":"","sources":["../../src/styles/wizard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"wizard.js","sourceRoot":"","sources":["../../src/styles/wizard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmU3B,CAAC"}
|
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tyrell-components",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-TC22",
|
|
4
4
|
"description": "Tyrell Components - Framework-agnostic web components with semantic design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"dev": "vite",
|
|
136
136
|
"generate:version": "node scripts/generate-version.js",
|
|
137
137
|
"build:lib": "npm run generate:version && tsc --project tsconfig.lib.json",
|
|
138
|
-
"build:cdn": "npm run generate:version && vite build --config vite.config.cdn.ts && cp css/tyrell.css dist/tyrell.css",
|
|
139
|
-
"build:dev": "npm run generate:version && vite build --config vite.config.dev.ts && cp css/tyrell.css dist/tyrell.css",
|
|
138
|
+
"build:cdn": "npm run generate:version && vite build --config vite.config.cdn.ts && cp css/tyrell.css dist/tyrell.css && cp css/tyrell-brand.css dist/tyrell-brand.css",
|
|
139
|
+
"build:dev": "npm run generate:version && vite build --config vite.config.dev.ts && cp css/tyrell.css dist/tyrell.css && cp css/tyrell-brand.css dist/tyrell-brand.css",
|
|
140
140
|
"build:dev:watch": "vite build --config vite.config.dev.ts --watch",
|
|
141
141
|
"build": "npm run build:lib && npm run build:cdn",
|
|
142
142
|
"prepublishOnly": "npm run build",
|