@melodicdev/components 3.1.0 → 4.0.1
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/assets/melodic-components.js +8081 -5910
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +9250 -7326
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.js +83 -78
- package/lib/components/data-display/activity-feed/activity-feed.styles.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed.styles.js +10 -5
- package/lib/components/data-display/avatar/avatar.styles.d.ts.map +1 -1
- package/lib/components/data-display/avatar/avatar.styles.js +23 -18
- package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge/badge.styles.js +54 -48
- package/lib/components/data-display/badge-group/badge-group.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge-group/badge-group.styles.js +34 -29
- package/lib/components/data-display/calendar-view/calendar-view-month.template.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view-month.template.js +17 -0
- package/lib/components/data-display/calendar-view/calendar-view.component.d.ts +23 -3
- package/lib/components/data-display/calendar-view/calendar-view.component.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.component.js +76 -21
- package/lib/components/data-display/calendar-view/calendar-view.styles.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.styles.js +160 -155
- package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts +9 -0
- package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.utils.js +68 -19
- package/lib/components/data-display/data-grid/data-grid.component.d.ts +24 -0
- package/lib/components/data-display/data-grid/data-grid.component.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.component.js +104 -31
- package/lib/components/data-display/data-grid/data-grid.styles.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.styles.js +122 -117
- package/lib/components/data-display/data-grid/data-grid.template.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.template.js +3 -0
- package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.js +39 -34
- package/lib/components/data-display/list/list.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list.styles.js +10 -5
- package/lib/components/data-display/profile-card/profile-card.styles.d.ts.map +1 -1
- package/lib/components/data-display/profile-card/profile-card.styles.js +71 -66
- package/lib/components/data-display/stat-card/stat-card.styles.d.ts.map +1 -1
- package/lib/components/data-display/stat-card/stat-card.styles.js +67 -63
- package/lib/components/data-display/table/table.component.d.ts +7 -0
- package/lib/components/data-display/table/table.component.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.js +20 -5
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +94 -89
- package/lib/components/data-display/table/table.template.d.ts.map +1 -1
- package/lib/components/data-display/table/table.template.js +3 -0
- package/lib/components/data-display/table-core/index.d.ts +1 -0
- package/lib/components/data-display/table-core/index.d.ts.map +1 -1
- package/lib/components/data-display/table-core/index.js +1 -0
- package/lib/components/data-display/table-core/memo.d.ts +10 -0
- package/lib/components/data-display/table-core/memo.d.ts.map +1 -0
- package/lib/components/data-display/table-core/memo.js +20 -0
- package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/data-display/tag/tag.styles.js +67 -62
- package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.styles.js +83 -56
- package/lib/components/feedback/progress/progress.styles.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.styles.js +110 -101
- package/lib/components/feedback/spinner/spinner.styles.d.ts.map +1 -1
- package/lib/components/feedback/spinner/spinner.styles.js +20 -24
- package/lib/components/feedback/toast/toast-container.template.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast-container.template.js +4 -0
- package/lib/components/feedback/toast/toast.component.d.ts +3 -2
- package/lib/components/feedback/toast/toast.component.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.component.js +10 -0
- package/lib/components/feedback/toast/toast.service.d.ts +26 -6
- package/lib/components/feedback/toast/toast.service.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.service.js +53 -18
- package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.styles.js +74 -69
- package/lib/components/feedback/toast/toast.template.js +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts +7 -0
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.js +39 -0
- package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.styles.js +169 -164
- package/lib/components/forms/autocomplete/autocomplete.template.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.template.js +5 -1
- package/lib/components/forms/button/button.styles.d.ts.map +1 -1
- package/lib/components/forms/button/button.styles.js +62 -57
- package/lib/components/forms/button-group/button-group.component.d.ts +3 -2
- package/lib/components/forms/button-group/button-group.component.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.component.js +11 -1
- package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.styles.js +23 -18
- package/lib/components/forms/checkbox/checkbox.component.d.ts +4 -0
- package/lib/components/forms/checkbox/checkbox.component.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.component.js +5 -1
- package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.styles.js +83 -78
- package/lib/components/forms/checkbox/checkbox.template.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.template.js +2 -0
- package/lib/components/forms/date-picker/calendar.component.d.ts +21 -0
- package/lib/components/forms/date-picker/calendar.component.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.component.js +69 -2
- package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.styles.js +152 -147
- package/lib/components/forms/date-picker/calendar.template.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.template.js +6 -3
- package/lib/components/forms/date-picker/date-picker.component.d.ts +6 -0
- package/lib/components/forms/date-picker/date-picker.component.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.component.js +41 -12
- package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.styles.js +97 -91
- package/lib/components/forms/date-time-picker/date-time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-time-picker/date-time-picker.styles.js +87 -82
- package/lib/components/forms/file-upload/file-upload.component.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.component.js +15 -5
- package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.styles.js +97 -92
- package/lib/components/forms/form-field/form-field.component.d.ts +8 -0
- package/lib/components/forms/form-field/form-field.component.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.component.js +41 -6
- package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.styles.js +77 -72
- package/lib/components/forms/form-field/form-field.template.js +1 -1
- package/lib/components/forms/input/input.component.d.ts +26 -3
- package/lib/components/forms/input/input.component.d.ts.map +1 -1
- package/lib/components/forms/input/input.component.js +46 -6
- package/lib/components/forms/input/input.styles.d.ts.map +1 -1
- package/lib/components/forms/input/input.styles.js +86 -81
- package/lib/components/forms/input/input.template.d.ts.map +1 -1
- package/lib/components/forms/input/input.template.js +9 -0
- package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.styles.js +78 -73
- package/lib/components/forms/radio-card-group/radio-card-group.component.d.ts +6 -0
- package/lib/components/forms/radio-card-group/radio-card-group.component.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card-group.component.js +34 -0
- package/lib/components/forms/radio-card-group/radio-card-group.styles.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card-group.styles.js +39 -34
- package/lib/components/forms/radio-card-group/radio-card.component.d.ts +6 -0
- package/lib/components/forms/radio-card-group/radio-card.component.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card.component.js +7 -1
- package/lib/components/forms/radio-card-group/radio-card.styles.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card.styles.js +113 -108
- package/lib/components/forms/radio-card-group/radio-card.template.js +1 -1
- package/lib/components/forms/select/select.component.d.ts.map +1 -1
- package/lib/components/forms/select/select.component.js +13 -1
- package/lib/components/forms/select/select.styles.d.ts.map +1 -1
- package/lib/components/forms/select/select.styles.js +158 -153
- package/lib/components/forms/select/select.template.d.ts.map +1 -1
- package/lib/components/forms/select/select.template.js +5 -1
- package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.styles.js +82 -77
- package/lib/components/forms/textarea/textarea.component.d.ts +10 -3
- package/lib/components/forms/textarea/textarea.component.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.component.js +10 -5
- package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.styles.js +84 -79
- package/lib/components/forms/textarea/textarea.template.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.template.js +2 -0
- package/lib/components/forms/time-picker/time-picker.component.d.ts +16 -0
- package/lib/components/forms/time-picker/time-picker.component.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.component.js +43 -3
- package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.styles.js +197 -191
- package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.styles.js +84 -79
- package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
- package/lib/components/foundation/card/card.styles.js +51 -46
- package/lib/components/foundation/container/container.component.js +5 -5
- package/lib/components/foundation/container/container.styles.d.ts.map +1 -1
- package/lib/components/foundation/container/container.styles.js +15 -0
- package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.styles.js +29 -24
- package/lib/components/foundation/stack/stack.component.d.ts +6 -0
- package/lib/components/foundation/stack/stack.component.d.ts.map +1 -1
- package/lib/components/foundation/stack/stack.component.js +11 -5
- package/lib/components/foundation/stack/stack.styles.d.ts.map +1 -1
- package/lib/components/foundation/stack/stack.styles.js +20 -0
- package/lib/components/general/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/general/icon/icon.styles.js +12 -8
- package/lib/components/general/icon/icon.template.d.ts.map +1 -1
- package/lib/components/general/icon/icon.template.js +7 -1
- package/lib/components/navigation/breadcrumb/breadcrumb-item.template.d.ts.map +1 -1
- package/lib/components/navigation/breadcrumb/breadcrumb-item.template.js +2 -1
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.d.ts.map +1 -1
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.js +9 -4
- package/lib/components/navigation/functions/match-by-route.function.d.ts +16 -0
- package/lib/components/navigation/functions/match-by-route.function.d.ts.map +1 -0
- package/lib/components/navigation/functions/match-by-route.function.js +34 -0
- package/lib/components/navigation/functions/route-link.function.d.ts +20 -0
- package/lib/components/navigation/functions/route-link.function.d.ts.map +1 -0
- package/lib/components/navigation/functions/route-link.function.js +34 -0
- package/lib/components/navigation/pagination/pagination.component.d.ts +8 -0
- package/lib/components/navigation/pagination/pagination.component.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.component.js +12 -2
- package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.styles.js +77 -62
- package/lib/components/navigation/pagination/pagination.template.js +2 -2
- package/lib/components/navigation/sidebar/sidebar-group.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-group.styles.js +23 -18
- package/lib/components/navigation/sidebar/sidebar-item.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-item.styles.js +104 -99
- package/lib/components/navigation/sidebar/sidebar-item.template.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-item.template.js +5 -1
- package/lib/components/navigation/sidebar/sidebar.component.d.ts +12 -6
- package/lib/components/navigation/sidebar/sidebar.component.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.component.js +20 -12
- package/lib/components/navigation/sidebar/sidebar.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.styles.js +179 -174
- package/lib/components/navigation/sidebar/sidebar.template.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.template.js +5 -1
- package/lib/components/navigation/steps/step.component.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.component.js +19 -1
- package/lib/components/navigation/steps/step.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.styles.js +154 -149
- package/lib/components/navigation/steps/step.template.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.template.js +6 -0
- package/lib/components/navigation/steps/steps.component.d.ts +10 -0
- package/lib/components/navigation/steps/steps.component.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.component.js +42 -9
- package/lib/components/navigation/steps/steps.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.styles.js +174 -169
- package/lib/components/navigation/steps/steps.template.js +9 -0
- package/lib/components/navigation/tabs/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab-panel.styles.js +12 -2
- package/lib/components/navigation/tabs/tab.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab.styles.js +41 -36
- package/lib/components/navigation/tabs/tabs.component.d.ts +10 -0
- package/lib/components/navigation/tabs/tabs.component.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.component.js +36 -7
- package/lib/components/navigation/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.styles.js +131 -126
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts +19 -9
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog-ref.class.js +37 -5
- package/lib/components/overlays/dialog/dialog.styles.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.styles.js +78 -73
- package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.styles.js +82 -77
- package/lib/components/overlays/dropdown/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown-item.styles.js +48 -43
- package/lib/components/overlays/dropdown/dropdown.component.d.ts +7 -0
- package/lib/components/overlays/dropdown/dropdown.component.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown.component.js +26 -11
- package/lib/components/overlays/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown.styles.js +35 -30
- package/lib/components/overlays/popover/popover.component.d.ts +8 -0
- package/lib/components/overlays/popover/popover.component.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.component.js +17 -0
- package/lib/components/overlays/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.styles.js +36 -31
- package/lib/components/overlays/tooltip/tooltip.component.d.ts +6 -5
- package/lib/components/overlays/tooltip/tooltip.component.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.component.js +14 -10
- package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.styles.js +34 -28
- package/lib/components/pages/auth/auth-layout.styles.d.ts +1 -1
- package/lib/components/pages/auth/auth-layout.styles.d.ts.map +1 -1
- package/lib/components/pages/auth/auth-layout.styles.js +86 -81
- package/lib/components/pages/dashboard/dashboard-page.styles.d.ts.map +1 -1
- package/lib/components/pages/dashboard/dashboard-page.styles.js +39 -34
- package/lib/components/sections/app-shell/app-shell.component.d.ts +13 -0
- package/lib/components/sections/app-shell/app-shell.component.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.component.js +45 -1
- package/lib/components/sections/app-shell/app-shell.styles.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.styles.js +74 -53
- package/lib/components/sections/app-shell/app-shell.template.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.template.js +5 -0
- package/lib/components/sections/hero/hero-section.styles.js +97 -97
- package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.styles.js +69 -64
- package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.styles.js +56 -51
- package/lib/components/sections/page-section/page-section.template.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.template.js +6 -1
- package/lib/directives/tooltip.directive.d.ts.map +1 -1
- package/lib/directives/tooltip.directive.js +39 -6
- package/lib/theme/functions/apply-theme.function.d.ts +4 -1
- package/lib/theme/functions/apply-theme.function.d.ts.map +1 -1
- package/lib/theme/functions/apply-theme.function.js +20 -4
- package/lib/theme/functions/create-theme.function.js +0 -1
- package/lib/utils/accessibility/cross-root-aria.d.ts +40 -0
- package/lib/utils/accessibility/cross-root-aria.d.ts.map +1 -0
- package/lib/utils/accessibility/cross-root-aria.js +97 -0
- package/lib/utils/accessibility/index.d.ts +1 -0
- package/lib/utils/accessibility/index.d.ts.map +1 -1
- package/lib/utils/accessibility/index.js +1 -0
- package/lib/utils/directives/index.d.ts +1 -0
- package/lib/utils/directives/index.d.ts.map +1 -1
- package/lib/utils/directives/index.js +1 -0
- package/lib/utils/directives/watch-light-slots.d.ts +20 -0
- package/lib/utils/directives/watch-light-slots.d.ts.map +1 -0
- package/lib/utils/directives/watch-light-slots.js +36 -0
- package/package.json +2 -2
|
@@ -1,39 +1,49 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const appShellStyles = () => css `
|
|
3
|
+
/*
|
|
4
|
+
* Tokens. Rules read each one with its default as the var() fallback,
|
|
5
|
+
* so a value set on the element or inherited from any ancestor wins.
|
|
6
|
+
*
|
|
7
|
+
* Border
|
|
8
|
+
* --ml-app-shell-border-width: var(--ml-border)
|
|
9
|
+
* --ml-app-shell-border-color: var(--ml-color-border)
|
|
10
|
+
*
|
|
11
|
+
* Header
|
|
12
|
+
* --ml-app-shell-header-bg: var(--ml-color-surface)
|
|
13
|
+
*
|
|
14
|
+
* Mobile sidebar
|
|
15
|
+
* --ml-app-shell-sidebar-width: var(--ml-sidebar-width, 280px)
|
|
16
|
+
* --ml-app-shell-sidebar-collapsed-width: var(--ml-sidebar-collapsed-width, 64px)
|
|
17
|
+
* --ml-app-shell-sidebar-bg: var(--ml-color-surface)
|
|
18
|
+
* --ml-app-shell-sidebar-transition: var(--ml-duration-200)
|
|
19
|
+
*
|
|
20
|
+
* Backdrop
|
|
21
|
+
* --ml-app-shell-backdrop-bg: rgba(0, 0, 0, 0.4)
|
|
22
|
+
* --ml-app-shell-backdrop-transition: var(--ml-duration-200)
|
|
23
|
+
*
|
|
24
|
+
* Menu button
|
|
25
|
+
* --ml-app-shell-menu-btn-size: 36px
|
|
26
|
+
* --ml-app-shell-menu-btn-margin: var(--ml-space-3)
|
|
27
|
+
* --ml-app-shell-menu-btn-radius: var(--ml-radius)
|
|
28
|
+
* --ml-app-shell-menu-btn-color: var(--ml-color-text-secondary)
|
|
29
|
+
* --ml-app-shell-menu-btn-hover-bg: var(--ml-color-surface-secondary)
|
|
30
|
+
* --ml-app-shell-menu-btn-hover-color: var(--ml-color-text)
|
|
31
|
+
* --ml-app-shell-menu-btn-focus-color: var(--ml-color-primary)
|
|
32
|
+
* --ml-app-shell-menu-btn-transition: var(--ml-duration-150)
|
|
33
|
+
*
|
|
34
|
+
* Scrollbar
|
|
35
|
+
* --ml-app-shell-scrollbar-width: 6px
|
|
36
|
+
* --ml-app-shell-scrollbar-thumb-color: var(--ml-color-border)
|
|
37
|
+
* --ml-app-shell-scrollbar-thumb-radius: var(--ml-radius-full)
|
|
38
|
+
*/
|
|
39
|
+
|
|
3
40
|
:host {
|
|
4
41
|
display: block;
|
|
5
42
|
height: 100%;
|
|
6
43
|
|
|
7
|
-
/*
|
|
8
|
-
|
|
9
|
-
--ml-app-shell-
|
|
10
|
-
|
|
11
|
-
/* Header */
|
|
12
|
-
--ml-app-shell-header-bg: var(--ml-color-surface);
|
|
13
|
-
|
|
14
|
-
/* Mobile sidebar */
|
|
15
|
-
--ml-app-shell-sidebar-width: var(--ml-sidebar-width, 280px);
|
|
16
|
-
--ml-app-shell-sidebar-bg: var(--ml-color-surface);
|
|
17
|
-
--ml-app-shell-sidebar-transition: var(--ml-duration-200);
|
|
18
|
-
|
|
19
|
-
/* Backdrop */
|
|
20
|
-
--ml-app-shell-backdrop-bg: rgba(0, 0, 0, 0.4);
|
|
21
|
-
--ml-app-shell-backdrop-transition: var(--ml-duration-200);
|
|
22
|
-
|
|
23
|
-
/* Menu button */
|
|
24
|
-
--ml-app-shell-menu-btn-size: 36px;
|
|
25
|
-
--ml-app-shell-menu-btn-margin: var(--ml-space-3);
|
|
26
|
-
--ml-app-shell-menu-btn-radius: var(--ml-radius);
|
|
27
|
-
--ml-app-shell-menu-btn-color: var(--ml-color-text-secondary);
|
|
28
|
-
--ml-app-shell-menu-btn-hover-bg: var(--ml-color-surface-secondary);
|
|
29
|
-
--ml-app-shell-menu-btn-hover-color: var(--ml-color-text);
|
|
30
|
-
--ml-app-shell-menu-btn-focus-color: var(--ml-color-primary);
|
|
31
|
-
--ml-app-shell-menu-btn-transition: var(--ml-duration-150);
|
|
32
|
-
|
|
33
|
-
/* Scrollbar */
|
|
34
|
-
--ml-app-shell-scrollbar-width: 6px;
|
|
35
|
-
--ml-app-shell-scrollbar-thumb-color: var(--ml-color-border);
|
|
36
|
-
--ml-app-shell-scrollbar-thumb-radius: var(--ml-radius-full);
|
|
44
|
+
/* Viewport width below which the sidebar becomes a drawer. Kept in one
|
|
45
|
+
place so the CSS media query and the component's matchMedia agree. */
|
|
46
|
+
--ml-app-shell-mobile-breakpoint: 768px;
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
/* ============================================
|
|
@@ -47,6 +57,17 @@ export const appShellStyles = () => css `
|
|
|
47
57
|
overflow: hidden;
|
|
48
58
|
}
|
|
49
59
|
|
|
60
|
+
/*
|
|
61
|
+
* Collapsed sidebar: narrow the sidebar column to an icon rail. This
|
|
62
|
+
* modifier class was rendered but had no rules at all, so the documented
|
|
63
|
+
* icon-only collapse did nothing.
|
|
64
|
+
*/
|
|
65
|
+
.ml-app-shell--sidebar-collapsed .ml-app-shell__sidebar {
|
|
66
|
+
width: var(--ml-app-shell-sidebar-collapsed-width, var(--ml-sidebar-collapsed-width, 64px));
|
|
67
|
+
min-width: var(--ml-app-shell-sidebar-collapsed-width, var(--ml-sidebar-collapsed-width, 64px));
|
|
68
|
+
transition: width var(--ml-app-shell-sidebar-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
|
|
69
|
+
}
|
|
70
|
+
|
|
50
71
|
/* Sidebar on the right */
|
|
51
72
|
.ml-app-shell--sidebar-right {
|
|
52
73
|
grid-template-columns: 1fr auto;
|
|
@@ -54,7 +75,7 @@ export const appShellStyles = () => css `
|
|
|
54
75
|
|
|
55
76
|
.ml-app-shell--sidebar-right .ml-app-shell__sidebar {
|
|
56
77
|
order: 2;
|
|
57
|
-
border-left: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
|
|
78
|
+
border-left: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
|
|
58
79
|
border-right: none;
|
|
59
80
|
}
|
|
60
81
|
|
|
@@ -68,7 +89,7 @@ export const appShellStyles = () => css `
|
|
|
68
89
|
.ml-app-shell__sidebar {
|
|
69
90
|
grid-row: 1 / -1;
|
|
70
91
|
overflow: hidden;
|
|
71
|
-
border-right: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
|
|
92
|
+
border-right: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
|
|
72
93
|
}
|
|
73
94
|
|
|
74
95
|
::slotted([slot="sidebar"]) {
|
|
@@ -92,8 +113,8 @@ export const appShellStyles = () => css `
|
|
|
92
113
|
display: flex;
|
|
93
114
|
align-items: center;
|
|
94
115
|
flex-shrink: 0;
|
|
95
|
-
border-bottom: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
|
|
96
|
-
background-color: var(--ml-app-shell-header-bg);
|
|
116
|
+
border-bottom: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
|
|
117
|
+
background-color: var(--ml-app-shell-header-bg, var(--ml-color-surface));
|
|
97
118
|
}
|
|
98
119
|
|
|
99
120
|
.ml-app-shell__header:empty {
|
|
@@ -118,7 +139,7 @@ export const appShellStyles = () => css `
|
|
|
118
139
|
|
|
119
140
|
/* Scrollbar styling */
|
|
120
141
|
.ml-app-shell__content::-webkit-scrollbar {
|
|
121
|
-
width: var(--ml-app-shell-scrollbar-width);
|
|
142
|
+
width: var(--ml-app-shell-scrollbar-width, 6px);
|
|
122
143
|
}
|
|
123
144
|
|
|
124
145
|
.ml-app-shell__content::-webkit-scrollbar-track {
|
|
@@ -126,8 +147,8 @@ export const appShellStyles = () => css `
|
|
|
126
147
|
}
|
|
127
148
|
|
|
128
149
|
.ml-app-shell__content::-webkit-scrollbar-thumb {
|
|
129
|
-
background-color: var(--ml-app-shell-scrollbar-thumb-color);
|
|
130
|
-
border-radius: var(--ml-app-shell-scrollbar-thumb-radius);
|
|
150
|
+
background-color: var(--ml-app-shell-scrollbar-thumb-color, var(--ml-color-border));
|
|
151
|
+
border-radius: var(--ml-app-shell-scrollbar-thumb-radius, var(--ml-radius-full));
|
|
131
152
|
}
|
|
132
153
|
|
|
133
154
|
/* ============================================
|
|
@@ -138,25 +159,25 @@ export const appShellStyles = () => css `
|
|
|
138
159
|
align-items: center;
|
|
139
160
|
justify-content: center;
|
|
140
161
|
flex-shrink: 0;
|
|
141
|
-
width: var(--ml-app-shell-menu-btn-size);
|
|
142
|
-
height: var(--ml-app-shell-menu-btn-size);
|
|
143
|
-
margin-left: var(--ml-app-shell-menu-btn-margin);
|
|
162
|
+
width: var(--ml-app-shell-menu-btn-size, 36px);
|
|
163
|
+
height: var(--ml-app-shell-menu-btn-size, 36px);
|
|
164
|
+
margin-left: var(--ml-app-shell-menu-btn-margin, var(--ml-space-3));
|
|
144
165
|
padding: 0;
|
|
145
166
|
border: none;
|
|
146
|
-
border-radius: var(--ml-app-shell-menu-btn-radius);
|
|
167
|
+
border-radius: var(--ml-app-shell-menu-btn-radius, var(--ml-radius));
|
|
147
168
|
background: transparent;
|
|
148
|
-
color: var(--ml-app-shell-menu-btn-color);
|
|
169
|
+
color: var(--ml-app-shell-menu-btn-color, var(--ml-color-text-secondary));
|
|
149
170
|
cursor: pointer;
|
|
150
|
-
transition: background-color var(--ml-app-shell-menu-btn-transition) var(--ml-ease-in-out);
|
|
171
|
+
transition: background-color var(--ml-app-shell-menu-btn-transition, var(--ml-duration-150)) var(--ml-ease-in-out);
|
|
151
172
|
}
|
|
152
173
|
|
|
153
174
|
.ml-app-shell__menu-btn:hover {
|
|
154
|
-
background-color: var(--ml-app-shell-menu-btn-hover-bg);
|
|
155
|
-
color: var(--ml-app-shell-menu-btn-hover-color);
|
|
175
|
+
background-color: var(--ml-app-shell-menu-btn-hover-bg, var(--ml-color-surface-secondary));
|
|
176
|
+
color: var(--ml-app-shell-menu-btn-hover-color, var(--ml-color-text));
|
|
156
177
|
}
|
|
157
178
|
|
|
158
179
|
.ml-app-shell__menu-btn:focus-visible {
|
|
159
|
-
outline: 2px solid var(--ml-app-shell-menu-btn-focus-color);
|
|
180
|
+
outline: 2px solid var(--ml-app-shell-menu-btn-focus-color, var(--ml-color-primary));
|
|
160
181
|
outline-offset: -2px;
|
|
161
182
|
}
|
|
162
183
|
|
|
@@ -181,18 +202,18 @@ export const appShellStyles = () => css `
|
|
|
181
202
|
left: 0;
|
|
182
203
|
bottom: 0;
|
|
183
204
|
z-index: 50;
|
|
184
|
-
width: var(--ml-app-shell-sidebar-width);
|
|
205
|
+
width: var(--ml-app-shell-sidebar-width, var(--ml-sidebar-width, 280px));
|
|
185
206
|
transform: translateX(-100%);
|
|
186
|
-
transition: transform var(--ml-app-shell-sidebar-transition) var(--ml-ease-in-out);
|
|
187
|
-
border-right: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
|
|
188
|
-
background-color: var(--ml-app-shell-sidebar-bg);
|
|
207
|
+
transition: transform var(--ml-app-shell-sidebar-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
|
|
208
|
+
border-right: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
|
|
209
|
+
background-color: var(--ml-app-shell-sidebar-bg, var(--ml-color-surface));
|
|
189
210
|
}
|
|
190
211
|
|
|
191
212
|
.ml-app-shell--sidebar-right .ml-app-shell__sidebar {
|
|
192
213
|
left: auto;
|
|
193
214
|
right: 0;
|
|
194
215
|
transform: translateX(100%);
|
|
195
|
-
border-left: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
|
|
216
|
+
border-left: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
|
|
196
217
|
border-right: none;
|
|
197
218
|
}
|
|
198
219
|
|
|
@@ -206,10 +227,10 @@ export const appShellStyles = () => css `
|
|
|
206
227
|
position: fixed;
|
|
207
228
|
inset: 0;
|
|
208
229
|
z-index: 40;
|
|
209
|
-
background-color: var(--ml-app-shell-backdrop-bg);
|
|
230
|
+
background-color: var(--ml-app-shell-backdrop-bg, rgba(0, 0, 0, 0.4));
|
|
210
231
|
opacity: 0;
|
|
211
232
|
pointer-events: none;
|
|
212
|
-
transition: opacity var(--ml-app-shell-backdrop-transition) var(--ml-ease-in-out);
|
|
233
|
+
transition: opacity var(--ml-app-shell-backdrop-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
|
|
213
234
|
}
|
|
214
235
|
|
|
215
236
|
.ml-app-shell__backdrop--visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.template.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"app-shell.template.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,6CAgEpD"}
|
|
@@ -14,6 +14,7 @@ export function appShellTemplate(c) {
|
|
|
14
14
|
'ml-app-shell--header-fixed': headerFixed,
|
|
15
15
|
'ml-app-shell--mobile-open': mobileOpen
|
|
16
16
|
})}
|
|
17
|
+
@keydown=${c.handleKeyDown}
|
|
17
18
|
>
|
|
18
19
|
${when(isMobile, () => html `
|
|
19
20
|
<div
|
|
@@ -26,10 +27,12 @@ export function appShellTemplate(c) {
|
|
|
26
27
|
`)}
|
|
27
28
|
|
|
28
29
|
<aside
|
|
30
|
+
id="app-shell-sidebar"
|
|
29
31
|
class=${classMap({
|
|
30
32
|
'ml-app-shell__sidebar': true,
|
|
31
33
|
'ml-app-shell__sidebar--mobile-open': mobileOpen
|
|
32
34
|
})}
|
|
35
|
+
aria-hidden=${isMobile && !mobileOpen ? 'true' : 'false'}
|
|
33
36
|
>
|
|
34
37
|
<slot name="sidebar"></slot>
|
|
35
38
|
</aside>
|
|
@@ -41,6 +44,8 @@ export function appShellTemplate(c) {
|
|
|
41
44
|
class="ml-app-shell__menu-btn"
|
|
42
45
|
type="button"
|
|
43
46
|
aria-label="Toggle navigation"
|
|
47
|
+
aria-expanded=${mobileOpen ? 'true' : 'false'}
|
|
48
|
+
aria-controls="app-shell-sidebar"
|
|
44
49
|
@click=${c.toggleMobileSidebar}
|
|
45
50
|
>
|
|
46
51
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const heroSectionStyles = () => css `
|
|
3
|
+
/*
|
|
4
|
+
* Tokens. Rules read each one with its default as the var() fallback,
|
|
5
|
+
* so a value set on the element or inherited from any ancestor wins.
|
|
6
|
+
*
|
|
7
|
+
* Font
|
|
8
|
+
* --ml-hero-font-family: var(--ml-font-sans)
|
|
9
|
+
*
|
|
10
|
+
* Size: sm
|
|
11
|
+
* --ml-hero-sm-padding: var(--ml-space-12) var(--ml-space-6)
|
|
12
|
+
* --ml-hero-sm-title-size: var(--ml-text-3xl)
|
|
13
|
+
* --ml-hero-sm-description-size: var(--ml-text-base)
|
|
14
|
+
*
|
|
15
|
+
* Size: md
|
|
16
|
+
* --ml-hero-md-padding: var(--ml-space-20) var(--ml-space-6)
|
|
17
|
+
* --ml-hero-md-title-size: var(--ml-text-4xl)
|
|
18
|
+
* --ml-hero-md-description-size: var(--ml-text-lg)
|
|
19
|
+
*
|
|
20
|
+
* Size: lg
|
|
21
|
+
* --ml-hero-lg-padding: calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6)
|
|
22
|
+
* --ml-hero-lg-title-size: var(--ml-text-5xl)
|
|
23
|
+
* --ml-hero-lg-description-size: var(--ml-text-xl)
|
|
24
|
+
*
|
|
25
|
+
* Background variants
|
|
26
|
+
* --ml-hero-bg-subtle: var(--ml-color-surface-secondary)
|
|
27
|
+
* --ml-hero-bg-gradient: linear-gradient( 135deg, var(--ml-color-primary-subtle) 0%, var(--ml-color-surface) 50%, var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100% )
|
|
28
|
+
*
|
|
29
|
+
* Container
|
|
30
|
+
* --ml-hero-container-max-width: var(--ml-container-xl, 1280px)
|
|
31
|
+
* --ml-hero-content-max-width: 800px
|
|
32
|
+
* --ml-hero-split-gap: var(--ml-space-12)
|
|
33
|
+
*
|
|
34
|
+
* Eyebrow
|
|
35
|
+
* --ml-hero-eyebrow-margin-bottom: var(--ml-space-4)
|
|
36
|
+
* --ml-hero-eyebrow-font-size: var(--ml-text-sm)
|
|
37
|
+
* --ml-hero-eyebrow-font-weight: var(--ml-font-semibold)
|
|
38
|
+
* --ml-hero-eyebrow-color: var(--ml-color-primary)
|
|
39
|
+
* --ml-hero-eyebrow-letter-spacing: 0.05em
|
|
40
|
+
*
|
|
41
|
+
* Title
|
|
42
|
+
* --ml-hero-title-margin-bottom: var(--ml-space-4)
|
|
43
|
+
* --ml-hero-title-font-weight: var(--ml-font-bold)
|
|
44
|
+
* --ml-hero-title-color: var(--ml-color-text)
|
|
45
|
+
* --ml-hero-title-letter-spacing: -0.025em
|
|
46
|
+
* --ml-hero-title-line-height: var(--ml-leading-tight)
|
|
47
|
+
*
|
|
48
|
+
* Description
|
|
49
|
+
* --ml-hero-description-margin-bottom: var(--ml-space-8)
|
|
50
|
+
* --ml-hero-description-color: var(--ml-color-text-secondary)
|
|
51
|
+
* --ml-hero-description-line-height: var(--ml-leading-relaxed)
|
|
52
|
+
* --ml-hero-description-max-width: 640px
|
|
53
|
+
*
|
|
54
|
+
* Actions
|
|
55
|
+
* --ml-hero-actions-gap: var(--ml-space-3)
|
|
56
|
+
*
|
|
57
|
+
* Media
|
|
58
|
+
* --ml-hero-media-radius: var(--ml-radius-lg)
|
|
59
|
+
* --ml-hero-media-below-margin: var(--ml-space-10)
|
|
60
|
+
*
|
|
61
|
+
* Social proof
|
|
62
|
+
* --ml-hero-social-proof-margin: var(--ml-space-10)
|
|
63
|
+
*/
|
|
64
|
+
|
|
3
65
|
:host {
|
|
4
66
|
display: block;
|
|
5
67
|
width: 100%;
|
|
6
|
-
|
|
7
|
-
/* Font */
|
|
8
|
-
--ml-hero-font-family: var(--ml-font-sans);
|
|
9
|
-
|
|
10
|
-
/* Size: sm */
|
|
11
|
-
--ml-hero-sm-padding: var(--ml-space-12) var(--ml-space-6);
|
|
12
|
-
--ml-hero-sm-title-size: var(--ml-text-3xl);
|
|
13
|
-
--ml-hero-sm-description-size: var(--ml-text-base);
|
|
14
|
-
|
|
15
|
-
/* Size: md */
|
|
16
|
-
--ml-hero-md-padding: var(--ml-space-20) var(--ml-space-6);
|
|
17
|
-
--ml-hero-md-title-size: var(--ml-text-4xl);
|
|
18
|
-
--ml-hero-md-description-size: var(--ml-text-lg);
|
|
19
|
-
|
|
20
|
-
/* Size: lg */
|
|
21
|
-
--ml-hero-lg-padding: calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6);
|
|
22
|
-
--ml-hero-lg-title-size: var(--ml-text-5xl);
|
|
23
|
-
--ml-hero-lg-description-size: var(--ml-text-xl);
|
|
24
|
-
|
|
25
|
-
/* Background variants */
|
|
26
|
-
--ml-hero-bg-subtle: var(--ml-color-surface-secondary);
|
|
27
|
-
--ml-hero-bg-gradient: linear-gradient(
|
|
28
|
-
135deg,
|
|
29
|
-
var(--ml-color-primary-subtle) 0%,
|
|
30
|
-
var(--ml-color-surface) 50%,
|
|
31
|
-
var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100%
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
/* Container */
|
|
35
|
-
--ml-hero-container-max-width: var(--ml-container-xl, 1280px);
|
|
36
|
-
--ml-hero-content-max-width: 800px;
|
|
37
|
-
--ml-hero-split-gap: var(--ml-space-12);
|
|
38
|
-
|
|
39
|
-
/* Eyebrow */
|
|
40
|
-
--ml-hero-eyebrow-margin-bottom: var(--ml-space-4);
|
|
41
|
-
--ml-hero-eyebrow-font-size: var(--ml-text-sm);
|
|
42
|
-
--ml-hero-eyebrow-font-weight: var(--ml-font-semibold);
|
|
43
|
-
--ml-hero-eyebrow-color: var(--ml-color-primary);
|
|
44
|
-
--ml-hero-eyebrow-letter-spacing: 0.05em;
|
|
45
|
-
|
|
46
|
-
/* Title */
|
|
47
|
-
--ml-hero-title-margin-bottom: var(--ml-space-4);
|
|
48
|
-
--ml-hero-title-font-weight: var(--ml-font-bold);
|
|
49
|
-
--ml-hero-title-color: var(--ml-color-text);
|
|
50
|
-
--ml-hero-title-letter-spacing: -0.025em;
|
|
51
|
-
--ml-hero-title-line-height: var(--ml-leading-tight);
|
|
52
|
-
|
|
53
|
-
/* Description */
|
|
54
|
-
--ml-hero-description-margin-bottom: var(--ml-space-8);
|
|
55
|
-
--ml-hero-description-color: var(--ml-color-text-secondary);
|
|
56
|
-
--ml-hero-description-line-height: var(--ml-leading-relaxed);
|
|
57
|
-
--ml-hero-description-max-width: 640px;
|
|
58
|
-
|
|
59
|
-
/* Actions */
|
|
60
|
-
--ml-hero-actions-gap: var(--ml-space-3);
|
|
61
|
-
|
|
62
|
-
/* Media */
|
|
63
|
-
--ml-hero-media-radius: var(--ml-radius-lg);
|
|
64
|
-
--ml-hero-media-below-margin: var(--ml-space-10);
|
|
65
|
-
|
|
66
|
-
/* Social proof */
|
|
67
|
-
--ml-hero-social-proof-margin: var(--ml-space-10);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/* ============================================
|
|
@@ -73,73 +73,73 @@ export const heroSectionStyles = () => css `
|
|
|
73
73
|
.ml-hero {
|
|
74
74
|
position: relative;
|
|
75
75
|
width: 100%;
|
|
76
|
-
font-family: var(--ml-hero-font-family);
|
|
76
|
+
font-family: var(--ml-hero-font-family, var(--ml-font-sans));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* ============================================
|
|
80
80
|
SIZE VARIANTS (padding & font sizes)
|
|
81
81
|
============================================ */
|
|
82
82
|
.ml-hero--sm {
|
|
83
|
-
padding: var(--ml-hero-sm-padding);
|
|
83
|
+
padding: var(--ml-hero-sm-padding, var(--ml-space-12) var(--ml-space-6));
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.ml-hero--md {
|
|
87
|
-
padding: var(--ml-hero-md-padding);
|
|
87
|
+
padding: var(--ml-hero-md-padding, var(--ml-space-20) var(--ml-space-6));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.ml-hero--lg {
|
|
91
|
-
padding: var(--ml-hero-lg-padding);
|
|
91
|
+
padding: var(--ml-hero-lg-padding, calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6));
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.ml-hero--sm .ml-hero__title,
|
|
95
95
|
.ml-hero--sm ::slotted([slot="title"]) {
|
|
96
|
-
font-size: var(--ml-hero-sm-title-size);
|
|
97
|
-
line-height: var(--ml-hero-title-line-height);
|
|
96
|
+
font-size: var(--ml-hero-sm-title-size, var(--ml-text-3xl));
|
|
97
|
+
line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.ml-hero--md .ml-hero__title,
|
|
101
101
|
.ml-hero--md ::slotted([slot="title"]) {
|
|
102
|
-
font-size: var(--ml-hero-md-title-size);
|
|
103
|
-
line-height: var(--ml-hero-title-line-height);
|
|
102
|
+
font-size: var(--ml-hero-md-title-size, var(--ml-text-4xl));
|
|
103
|
+
line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.ml-hero--lg .ml-hero__title,
|
|
107
107
|
.ml-hero--lg ::slotted([slot="title"]) {
|
|
108
|
-
font-size: var(--ml-hero-lg-title-size);
|
|
109
|
-
line-height: var(--ml-hero-title-line-height);
|
|
108
|
+
font-size: var(--ml-hero-lg-title-size, var(--ml-text-5xl));
|
|
109
|
+
line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.ml-hero--sm .ml-hero__description,
|
|
113
113
|
.ml-hero--sm ::slotted([slot="description"]) {
|
|
114
|
-
font-size: var(--ml-hero-sm-description-size);
|
|
114
|
+
font-size: var(--ml-hero-sm-description-size, var(--ml-text-base));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.ml-hero--md .ml-hero__description,
|
|
118
118
|
.ml-hero--md ::slotted([slot="description"]) {
|
|
119
|
-
font-size: var(--ml-hero-md-description-size);
|
|
119
|
+
font-size: var(--ml-hero-md-description-size, var(--ml-text-lg));
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ml-hero--lg .ml-hero__description,
|
|
123
123
|
.ml-hero--lg ::slotted([slot="description"]) {
|
|
124
|
-
font-size: var(--ml-hero-lg-description-size);
|
|
124
|
+
font-size: var(--ml-hero-lg-description-size, var(--ml-text-xl));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/* ============================================
|
|
128
128
|
BACKGROUND VARIANTS
|
|
129
129
|
============================================ */
|
|
130
130
|
.ml-hero--bg-subtle {
|
|
131
|
-
background-color: var(--ml-hero-bg-subtle);
|
|
131
|
+
background-color: var(--ml-hero-bg-subtle, var(--ml-color-surface-secondary));
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.ml-hero--bg-gradient {
|
|
135
|
-
background: var(--ml-hero-bg-gradient);
|
|
135
|
+
background: var(--ml-hero-bg-gradient, linear-gradient( 135deg, var(--ml-color-primary-subtle) 0%, var(--ml-color-surface) 50%, var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100% ));
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/* ============================================
|
|
139
139
|
LAYOUT: CONTAINER
|
|
140
140
|
============================================ */
|
|
141
141
|
.ml-hero__container {
|
|
142
|
-
max-width: var(--ml-hero-container-max-width);
|
|
142
|
+
max-width: var(--ml-hero-container-max-width, var(--ml-container-xl, 1280px));
|
|
143
143
|
margin: 0 auto;
|
|
144
144
|
width: 100%;
|
|
145
145
|
}
|
|
@@ -158,11 +158,11 @@ export const heroSectionStyles = () => css `
|
|
|
158
158
|
flex-direction: column;
|
|
159
159
|
align-items: center;
|
|
160
160
|
text-align: center;
|
|
161
|
-
max-width: var(--ml-hero-content-max-width);
|
|
161
|
+
max-width: var(--ml-hero-content-max-width, 800px);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.ml-hero--centered .ml-hero__media--below {
|
|
165
|
-
margin-top: var(--ml-hero-media-below-margin);
|
|
165
|
+
margin-top: var(--ml-hero-media-below-margin, var(--ml-space-10));
|
|
166
166
|
width: 100%;
|
|
167
167
|
display: flex;
|
|
168
168
|
justify-content: center;
|
|
@@ -175,7 +175,7 @@ export const heroSectionStyles = () => css `
|
|
|
175
175
|
.ml-hero--split-reverse .ml-hero__container {
|
|
176
176
|
display: grid;
|
|
177
177
|
grid-template-columns: 1fr 1fr;
|
|
178
|
-
gap: var(--ml-hero-split-gap);
|
|
178
|
+
gap: var(--ml-hero-split-gap, var(--ml-space-12));
|
|
179
179
|
align-items: center;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -200,36 +200,36 @@ export const heroSectionStyles = () => css `
|
|
|
200
200
|
/* Eyebrow */
|
|
201
201
|
::slotted([slot="eyebrow"]) {
|
|
202
202
|
display: inline-block;
|
|
203
|
-
margin-bottom: var(--ml-hero-eyebrow-margin-bottom);
|
|
204
|
-
font-size: var(--ml-hero-eyebrow-font-size);
|
|
205
|
-
font-weight: var(--ml-hero-eyebrow-font-weight);
|
|
206
|
-
color: var(--ml-hero-eyebrow-color);
|
|
203
|
+
margin-bottom: var(--ml-hero-eyebrow-margin-bottom, var(--ml-space-4));
|
|
204
|
+
font-size: var(--ml-hero-eyebrow-font-size, var(--ml-text-sm));
|
|
205
|
+
font-weight: var(--ml-hero-eyebrow-font-weight, var(--ml-font-semibold));
|
|
206
|
+
color: var(--ml-hero-eyebrow-color, var(--ml-color-primary));
|
|
207
207
|
text-transform: uppercase;
|
|
208
|
-
letter-spacing: var(--ml-hero-eyebrow-letter-spacing);
|
|
208
|
+
letter-spacing: var(--ml-hero-eyebrow-letter-spacing, 0.05em);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/* Title */
|
|
212
212
|
.ml-hero__title,
|
|
213
213
|
::slotted([slot="title"]) {
|
|
214
|
-
margin: 0 0 var(--ml-hero-title-margin-bottom) 0;
|
|
215
|
-
font-weight: var(--ml-hero-title-font-weight);
|
|
216
|
-
color: var(--ml-hero-title-color);
|
|
217
|
-
letter-spacing: var(--ml-hero-title-letter-spacing);
|
|
214
|
+
margin: 0 0 var(--ml-hero-title-margin-bottom, var(--ml-space-4)) 0;
|
|
215
|
+
font-weight: var(--ml-hero-title-font-weight, var(--ml-font-bold));
|
|
216
|
+
color: var(--ml-hero-title-color, var(--ml-color-text));
|
|
217
|
+
letter-spacing: var(--ml-hero-title-letter-spacing, -0.025em);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/* Description */
|
|
221
221
|
.ml-hero__description,
|
|
222
222
|
::slotted([slot="description"]) {
|
|
223
|
-
margin: 0 0 var(--ml-hero-description-margin-bottom) 0;
|
|
224
|
-
color: var(--ml-hero-description-color);
|
|
225
|
-
line-height: var(--ml-hero-description-line-height);
|
|
226
|
-
max-width: var(--ml-hero-description-max-width);
|
|
223
|
+
margin: 0 0 var(--ml-hero-description-margin-bottom, var(--ml-space-8)) 0;
|
|
224
|
+
color: var(--ml-hero-description-color, var(--ml-color-text-secondary));
|
|
225
|
+
line-height: var(--ml-hero-description-line-height, var(--ml-leading-relaxed));
|
|
226
|
+
max-width: var(--ml-hero-description-max-width, 640px);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/* Actions */
|
|
230
230
|
.ml-hero__actions {
|
|
231
231
|
display: flex;
|
|
232
|
-
gap: var(--ml-hero-actions-gap);
|
|
232
|
+
gap: var(--ml-hero-actions-gap, var(--ml-space-3));
|
|
233
233
|
flex-wrap: wrap;
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -255,12 +255,12 @@ export const heroSectionStyles = () => css `
|
|
|
255
255
|
::slotted([slot="media"]) {
|
|
256
256
|
max-width: 100%;
|
|
257
257
|
height: auto;
|
|
258
|
-
border-radius: var(--ml-hero-media-radius);
|
|
258
|
+
border-radius: var(--ml-hero-media-radius, var(--ml-radius-lg));
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
/* Social proof */
|
|
262
262
|
.ml-hero__social-proof {
|
|
263
|
-
margin-top: var(--ml-hero-social-proof-margin);
|
|
263
|
+
margin-top: var(--ml-hero-social-proof-margin, var(--ml-space-10));
|
|
264
264
|
width: 100%;
|
|
265
265
|
}
|
|
266
266
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/page-header/page-header.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/page-header/page-header.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,iDAsN5B,CAAC"}
|