@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,5 +1,26 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const tooltipStyles = () => 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
|
+
* --ml-tooltip-max-width: 320px
|
|
8
|
+
* --ml-tooltip-padding-y: var(--ml-space-2)
|
|
9
|
+
* --ml-tooltip-padding-x: var(--ml-space-3)
|
|
10
|
+
* --ml-tooltip-color: var(--ml-tooltip-text, var(--ml-white))
|
|
11
|
+
* --ml-tooltip-font-size: var(--ml-text-xs)
|
|
12
|
+
* --ml-tooltip-font-weight: var(--ml-font-medium)
|
|
13
|
+
* --ml-tooltip-line-height: var(--ml-leading-snug)
|
|
14
|
+
* --ml-tooltip-radius: var(--ml-radius)
|
|
15
|
+
* --ml-tooltip-shadow: var(--ml-shadow-lg)
|
|
16
|
+
* --ml-tooltip-z-index: 9999
|
|
17
|
+
* --ml-tooltip-transition-duration: var(--ml-duration-150)
|
|
18
|
+
* --ml-tooltip-transition-easing: var(--ml-ease-out)
|
|
19
|
+
*
|
|
20
|
+
* Arrow
|
|
21
|
+
* --ml-tooltip-arrow-size: 8px
|
|
22
|
+
*/
|
|
23
|
+
|
|
3
24
|
:host {
|
|
4
25
|
/* ── Tooltip: content ──
|
|
5
26
|
--ml-tooltip-max-width, --ml-tooltip-padding-y, --ml-tooltip-padding-x,
|
|
@@ -15,21 +36,6 @@ export const tooltipStyles = () => css `
|
|
|
15
36
|
--ml-tooltip-bg on :host would override the theme's dark value and
|
|
16
37
|
consumer overrides, and a same-name alias would be self-referential.
|
|
17
38
|
Rules reference var(--ml-tooltip-bg, fallback) directly. */
|
|
18
|
-
--ml-tooltip-max-width: 320px;
|
|
19
|
-
--ml-tooltip-padding-y: var(--ml-space-2);
|
|
20
|
-
--ml-tooltip-padding-x: var(--ml-space-3);
|
|
21
|
-
--ml-tooltip-color: var(--ml-tooltip-text, var(--ml-white));
|
|
22
|
-
--ml-tooltip-font-size: var(--ml-text-xs);
|
|
23
|
-
--ml-tooltip-font-weight: var(--ml-font-medium);
|
|
24
|
-
--ml-tooltip-line-height: var(--ml-leading-snug);
|
|
25
|
-
--ml-tooltip-radius: var(--ml-radius);
|
|
26
|
-
--ml-tooltip-shadow: var(--ml-shadow-lg);
|
|
27
|
-
--ml-tooltip-z-index: 9999;
|
|
28
|
-
--ml-tooltip-transition-duration: var(--ml-duration-150);
|
|
29
|
-
--ml-tooltip-transition-easing: var(--ml-ease-out);
|
|
30
|
-
|
|
31
|
-
/* Arrow */
|
|
32
|
-
--ml-tooltip-arrow-size: 8px;
|
|
33
39
|
|
|
34
40
|
display: inline-block;
|
|
35
41
|
}
|
|
@@ -45,24 +51,24 @@ export const tooltipStyles = () => css `
|
|
|
45
51
|
|
|
46
52
|
.ml-tooltip__content {
|
|
47
53
|
position: fixed;
|
|
48
|
-
z-index: var(--ml-tooltip-z-index);
|
|
49
|
-
max-width: var(--ml-tooltip-max-width);
|
|
50
|
-
padding: var(--ml-tooltip-padding-y) var(--ml-tooltip-padding-x);
|
|
54
|
+
z-index: var(--ml-tooltip-z-index, 9999);
|
|
55
|
+
max-width: var(--ml-tooltip-max-width, 320px);
|
|
56
|
+
padding: var(--ml-tooltip-padding-y, var(--ml-space-2)) var(--ml-tooltip-padding-x, var(--ml-space-3));
|
|
51
57
|
background-color: var(--ml-tooltip-bg, var(--ml-gray-900));
|
|
52
|
-
color: var(--ml-tooltip-color);
|
|
53
|
-
font-size: var(--ml-tooltip-font-size);
|
|
54
|
-
font-weight: var(--ml-tooltip-font-weight);
|
|
55
|
-
line-height: var(--ml-tooltip-line-height);
|
|
56
|
-
border-radius: var(--ml-tooltip-radius);
|
|
57
|
-
box-shadow: var(--ml-tooltip-shadow);
|
|
58
|
+
color: var(--ml-tooltip-color, var(--ml-tooltip-text, var(--ml-white)));
|
|
59
|
+
font-size: var(--ml-tooltip-font-size, var(--ml-text-xs));
|
|
60
|
+
font-weight: var(--ml-tooltip-font-weight, var(--ml-font-medium));
|
|
61
|
+
line-height: var(--ml-tooltip-line-height, var(--ml-leading-snug));
|
|
62
|
+
border-radius: var(--ml-tooltip-radius, var(--ml-radius));
|
|
63
|
+
box-shadow: var(--ml-tooltip-shadow, var(--ml-shadow-lg));
|
|
58
64
|
text-align: center;
|
|
59
65
|
word-wrap: break-word;
|
|
60
66
|
pointer-events: none;
|
|
61
67
|
opacity: 0;
|
|
62
68
|
transform: scale(0.95);
|
|
63
69
|
transition:
|
|
64
|
-
opacity var(--ml-tooltip-transition-duration) var(--ml-tooltip-transition-easing),
|
|
65
|
-
transform var(--ml-tooltip-transition-duration) var(--ml-tooltip-transition-easing);
|
|
70
|
+
opacity var(--ml-tooltip-transition-duration, var(--ml-duration-150)) var(--ml-tooltip-transition-easing, var(--ml-ease-out)),
|
|
71
|
+
transform var(--ml-tooltip-transition-duration, var(--ml-duration-150)) var(--ml-tooltip-transition-easing, var(--ml-ease-out));
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
.ml-tooltip__content--visible {
|
|
@@ -72,8 +78,8 @@ export const tooltipStyles = () => css `
|
|
|
72
78
|
|
|
73
79
|
.ml-tooltip__arrow {
|
|
74
80
|
position: absolute;
|
|
75
|
-
width: var(--ml-tooltip-arrow-size);
|
|
76
|
-
height: var(--ml-tooltip-arrow-size);
|
|
81
|
+
width: var(--ml-tooltip-arrow-size, 8px);
|
|
82
|
+
height: var(--ml-tooltip-arrow-size, 8px);
|
|
77
83
|
background-color: var(--ml-tooltip-bg, var(--ml-gray-900));
|
|
78
84
|
transform: rotate(45deg);
|
|
79
85
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const authLayoutCss = "\n\t/* ============================================\n\t AUTH LAYOUT - SHARED STYLES\n\t ============================================ */\n\t
|
|
1
|
+
export declare const authLayoutCss = "\n\t/* ============================================\n\t AUTH LAYOUT - SHARED STYLES\n\t ============================================ */\n\t/*\n\t * Tokens. Rules read each one with its default as the var() fallback,\n\t * so a value set on the element or inherited from any ancestor wins.\n\t *\n\t * Background\n\t * --ml-auth-bg: var(--ml-color-surface-secondary)\n\t *\n\t * Font\n\t * --ml-auth-font-family: var(--ml-font-sans)\n\t *\n\t * Card\n\t * --ml-auth-card-max-width: 440px\n\t * --ml-auth-card-bg: var(--ml-color-surface)\n\t * --ml-auth-card-border-width: var(--ml-border)\n\t * --ml-auth-card-border-color: var(--ml-color-border)\n\t * --ml-auth-card-radius: var(--ml-radius-xl)\n\t * --ml-auth-card-shadow: var(--ml-shadow-lg)\n\t * --ml-auth-card-padding: var(--ml-space-10)\n\t *\n\t * Centered variant\n\t * --ml-auth-centered-padding: var(--ml-space-6)\n\t *\n\t * Split variant\n\t * --ml-auth-split-padding: var(--ml-space-10)\n\t * --ml-auth-split-form-padding: var(--ml-auth-split-padding)\n\t * --ml-auth-split-brand-padding: var(--ml-auth-split-padding)\n\t * --ml-auth-split-form-bg: var(--ml-color-surface)\n\t * --ml-auth-split-brand-bg: var(--ml-color-primary)\n\t * --ml-auth-split-brand-color: var(--ml-color-text-inverse)\n\t * --ml-auth-split-brand-max-width: 480px\n\t *\n\t * Logo\n\t * --ml-auth-logo-margin: var(--ml-space-6)\n\t *\n\t * Header\n\t * --ml-auth-header-margin: var(--ml-space-8)\n\t * --ml-auth-title-size: var(--ml-text-2xl)\n\t * --ml-auth-title-weight: var(--ml-font-bold)\n\t * --ml-auth-title-color: var(--ml-color-text)\n\t * --ml-auth-title-line-height: var(--ml-leading-tight)\n\t * --ml-auth-title-margin: var(--ml-space-2)\n\t * --ml-auth-description-size: var(--ml-text-sm)\n\t * --ml-auth-description-color: var(--ml-color-text-muted)\n\t * --ml-auth-description-line-height: var(--ml-leading-normal)\n\t *\n\t * Form / Social / Footer spacing\n\t * --ml-auth-form-margin: var(--ml-space-6)\n\t * --ml-auth-social-margin: var(--ml-space-6)\n\t * --ml-auth-footer-size: var(--ml-text-sm)\n\t * --ml-auth-footer-color: var(--ml-color-text-muted)\n\t *\n\t * Mobile\n\t * --ml-auth-mobile-padding: var(--ml-space-6)\n\t */\n\n\t:host {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t/* ============================================\n\t BASE WRAPPER\n\t ============================================ */\n\t.ml-auth {\n\t\tdisplay: flex;\n\t\tmin-height: 100%;\n\t\theight: 100%;\n\t\tfont-family: var(--ml-auth-font-family, var(--ml-font-sans));\n\t\tbackground-color: var(--ml-auth-bg, var(--ml-color-surface-secondary));\n\t}\n\n\t/* ============================================\n\t CENTERED VARIANT\n\t ============================================ */\n\t.ml-auth--centered {\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpadding: var(--ml-auth-centered-padding, var(--ml-space-6));\n\t}\n\n\t.ml-auth--centered .ml-auth__card {\n\t\twidth: 100%;\n\t\tmax-width: var(--ml-auth-card-max-width, 440px);\n\t\tbackground-color: var(--ml-auth-card-bg, var(--ml-color-surface));\n\t\tborder: var(--ml-auth-card-border-width, var(--ml-border)) solid var(--ml-auth-card-border-color, var(--ml-color-border));\n\t\tborder-radius: var(--ml-auth-card-radius, var(--ml-radius-xl));\n\t\tbox-shadow: var(--ml-auth-card-shadow, var(--ml-shadow-lg));\n\t\tpadding: var(--ml-auth-card-padding, var(--ml-space-10));\n\t}\n\n\t/* ============================================\n\t SPLIT VARIANT\n\t ============================================ */\n\t.ml-auth--split {\n\t\tflex-direction: row;\n\t}\n\n\t.ml-auth--split .ml-auth__form-side {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tflex: 1;\n\t\tpadding: var(--ml-auth-split-form-padding, var(--ml-auth-split-padding, var(--ml-space-10)));\n\t\tbackground-color: var(--ml-auth-split-form-bg, var(--ml-color-surface));\n\t}\n\n\t.ml-auth--split .ml-auth__card {\n\t\twidth: 100%;\n\t\tmax-width: var(--ml-auth-card-max-width, 440px);\n\t}\n\n\t.ml-auth--split .ml-auth__brand-side {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tflex: 1;\n\t\tpadding: var(--ml-auth-split-brand-padding, var(--ml-auth-split-padding, var(--ml-space-10)));\n\t\tbackground-color: var(--ml-auth-split-brand-bg, var(--ml-color-primary));\n\t\tcolor: var(--ml-auth-split-brand-color, var(--ml-color-text-inverse));\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t}\n\n\t.ml-auth__brand-content {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\ttext-align: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmax-width: var(--ml-auth-split-brand-max-width, 480px);\n\t}\n\n\t.ml-auth__brand-content ::slotted(*) {\n\t\tcolor: inherit;\n\t}\n\n\t/* ============================================\n\t LOGO AREA\n\t ============================================ */\n\t.ml-auth__logo {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tmargin-bottom: var(--ml-auth-logo-margin, var(--ml-space-6));\n\t}\n\n\t.ml-auth__logo:empty {\n\t\tdisplay: none;\n\t}\n\n\t/* ============================================\n\t HEADER\n\t ============================================ */\n\t.ml-auth__header {\n\t\ttext-align: center;\n\t\tmargin-bottom: var(--ml-auth-header-margin, var(--ml-space-8));\n\t}\n\n\t.ml-auth__title {\n\t\tmargin: 0 0 var(--ml-auth-title-margin, var(--ml-space-2)) 0;\n\t\tfont-size: var(--ml-auth-title-size, var(--ml-text-2xl));\n\t\tfont-weight: var(--ml-auth-title-weight, var(--ml-font-bold));\n\t\tcolor: var(--ml-auth-title-color, var(--ml-color-text));\n\t\tline-height: var(--ml-auth-title-line-height, var(--ml-leading-tight));\n\t}\n\n\t.ml-auth__description {\n\t\tmargin: 0;\n\t\tfont-size: var(--ml-auth-description-size, var(--ml-text-sm));\n\t\tcolor: var(--ml-auth-description-color, var(--ml-color-text-muted));\n\t\tline-height: var(--ml-auth-description-line-height, var(--ml-leading-normal));\n\t}\n\n\t/* ============================================\n\t FORM AREA\n\t ============================================ */\n\t.ml-auth__form {\n\t\tmargin-bottom: var(--ml-auth-form-margin, var(--ml-space-6));\n\t}\n\n\t.ml-auth__form:empty {\n\t\tdisplay: none;\n\t}\n\n\t/* ============================================\n\t SOCIAL LOGIN\n\t ============================================ */\n\t.ml-auth__social {\n\t\tmargin-bottom: var(--ml-auth-social-margin, var(--ml-space-6));\n\t}\n\n\t.ml-auth__social:empty {\n\t\tdisplay: none;\n\t}\n\n\t/* ============================================\n\t FOOTER\n\t ============================================ */\n\t.ml-auth__footer {\n\t\ttext-align: center;\n\t\tfont-size: var(--ml-auth-footer-size, var(--ml-text-sm));\n\t\tcolor: var(--ml-auth-footer-color, var(--ml-color-text-muted));\n\t}\n\n\t.ml-auth__footer:empty {\n\t\tdisplay: none;\n\t}\n\n\t/* ============================================\n\t RESPONSIVE - SPLIT COLLAPSE\n\t ============================================ */\n\t@media (max-width: 768px) {\n\t\t.ml-auth--split {\n\t\t\tflex-direction: column;\n\t\t}\n\n\t\t.ml-auth--split .ml-auth__brand-side {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.ml-auth--split .ml-auth__form-side {\n\t\t\tmin-height: 100%;\n\t\t\tpadding: var(--ml-auth-mobile-padding, var(--ml-space-6));\n\t\t}\n\t}\n";
|
|
2
2
|
//# sourceMappingURL=auth-layout.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-layout.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/auth-layout.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"auth-layout.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/auth-layout.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,soOAqOzB,CAAC"}
|
|
@@ -2,60 +2,65 @@ export const authLayoutCss = `
|
|
|
2
2
|
/* ============================================
|
|
3
3
|
AUTH LAYOUT - SHARED STYLES
|
|
4
4
|
============================================ */
|
|
5
|
+
/*
|
|
6
|
+
* Tokens. Rules read each one with its default as the var() fallback,
|
|
7
|
+
* so a value set on the element or inherited from any ancestor wins.
|
|
8
|
+
*
|
|
9
|
+
* Background
|
|
10
|
+
* --ml-auth-bg: var(--ml-color-surface-secondary)
|
|
11
|
+
*
|
|
12
|
+
* Font
|
|
13
|
+
* --ml-auth-font-family: var(--ml-font-sans)
|
|
14
|
+
*
|
|
15
|
+
* Card
|
|
16
|
+
* --ml-auth-card-max-width: 440px
|
|
17
|
+
* --ml-auth-card-bg: var(--ml-color-surface)
|
|
18
|
+
* --ml-auth-card-border-width: var(--ml-border)
|
|
19
|
+
* --ml-auth-card-border-color: var(--ml-color-border)
|
|
20
|
+
* --ml-auth-card-radius: var(--ml-radius-xl)
|
|
21
|
+
* --ml-auth-card-shadow: var(--ml-shadow-lg)
|
|
22
|
+
* --ml-auth-card-padding: var(--ml-space-10)
|
|
23
|
+
*
|
|
24
|
+
* Centered variant
|
|
25
|
+
* --ml-auth-centered-padding: var(--ml-space-6)
|
|
26
|
+
*
|
|
27
|
+
* Split variant
|
|
28
|
+
* --ml-auth-split-padding: var(--ml-space-10)
|
|
29
|
+
* --ml-auth-split-form-padding: var(--ml-auth-split-padding)
|
|
30
|
+
* --ml-auth-split-brand-padding: var(--ml-auth-split-padding)
|
|
31
|
+
* --ml-auth-split-form-bg: var(--ml-color-surface)
|
|
32
|
+
* --ml-auth-split-brand-bg: var(--ml-color-primary)
|
|
33
|
+
* --ml-auth-split-brand-color: var(--ml-color-text-inverse)
|
|
34
|
+
* --ml-auth-split-brand-max-width: 480px
|
|
35
|
+
*
|
|
36
|
+
* Logo
|
|
37
|
+
* --ml-auth-logo-margin: var(--ml-space-6)
|
|
38
|
+
*
|
|
39
|
+
* Header
|
|
40
|
+
* --ml-auth-header-margin: var(--ml-space-8)
|
|
41
|
+
* --ml-auth-title-size: var(--ml-text-2xl)
|
|
42
|
+
* --ml-auth-title-weight: var(--ml-font-bold)
|
|
43
|
+
* --ml-auth-title-color: var(--ml-color-text)
|
|
44
|
+
* --ml-auth-title-line-height: var(--ml-leading-tight)
|
|
45
|
+
* --ml-auth-title-margin: var(--ml-space-2)
|
|
46
|
+
* --ml-auth-description-size: var(--ml-text-sm)
|
|
47
|
+
* --ml-auth-description-color: var(--ml-color-text-muted)
|
|
48
|
+
* --ml-auth-description-line-height: var(--ml-leading-normal)
|
|
49
|
+
*
|
|
50
|
+
* Form / Social / Footer spacing
|
|
51
|
+
* --ml-auth-form-margin: var(--ml-space-6)
|
|
52
|
+
* --ml-auth-social-margin: var(--ml-space-6)
|
|
53
|
+
* --ml-auth-footer-size: var(--ml-text-sm)
|
|
54
|
+
* --ml-auth-footer-color: var(--ml-color-text-muted)
|
|
55
|
+
*
|
|
56
|
+
* Mobile
|
|
57
|
+
* --ml-auth-mobile-padding: var(--ml-space-6)
|
|
58
|
+
*/
|
|
59
|
+
|
|
5
60
|
:host {
|
|
6
61
|
display: block;
|
|
7
62
|
width: 100%;
|
|
8
63
|
height: 100%;
|
|
9
|
-
|
|
10
|
-
/* Background */
|
|
11
|
-
--ml-auth-bg: var(--ml-color-surface-secondary);
|
|
12
|
-
|
|
13
|
-
/* Font */
|
|
14
|
-
--ml-auth-font-family: var(--ml-font-sans);
|
|
15
|
-
|
|
16
|
-
/* Card */
|
|
17
|
-
--ml-auth-card-max-width: 440px;
|
|
18
|
-
--ml-auth-card-bg: var(--ml-color-surface);
|
|
19
|
-
--ml-auth-card-border-width: var(--ml-border);
|
|
20
|
-
--ml-auth-card-border-color: var(--ml-color-border);
|
|
21
|
-
--ml-auth-card-radius: var(--ml-radius-xl);
|
|
22
|
-
--ml-auth-card-shadow: var(--ml-shadow-lg);
|
|
23
|
-
--ml-auth-card-padding: var(--ml-space-10);
|
|
24
|
-
|
|
25
|
-
/* Centered variant */
|
|
26
|
-
--ml-auth-centered-padding: var(--ml-space-6);
|
|
27
|
-
|
|
28
|
-
/* Split variant */
|
|
29
|
-
--ml-auth-split-padding: var(--ml-space-10);
|
|
30
|
-
--ml-auth-split-form-padding: var(--ml-auth-split-padding);
|
|
31
|
-
--ml-auth-split-brand-padding: var(--ml-auth-split-padding);
|
|
32
|
-
--ml-auth-split-form-bg: var(--ml-color-surface);
|
|
33
|
-
--ml-auth-split-brand-bg: var(--ml-color-primary);
|
|
34
|
-
--ml-auth-split-brand-color: var(--ml-color-text-inverse);
|
|
35
|
-
--ml-auth-split-brand-max-width: 480px;
|
|
36
|
-
|
|
37
|
-
/* Logo */
|
|
38
|
-
--ml-auth-logo-margin: var(--ml-space-6);
|
|
39
|
-
|
|
40
|
-
/* Header */
|
|
41
|
-
--ml-auth-header-margin: var(--ml-space-8);
|
|
42
|
-
--ml-auth-title-size: var(--ml-text-2xl);
|
|
43
|
-
--ml-auth-title-weight: var(--ml-font-bold);
|
|
44
|
-
--ml-auth-title-color: var(--ml-color-text);
|
|
45
|
-
--ml-auth-title-line-height: var(--ml-leading-tight);
|
|
46
|
-
--ml-auth-title-margin: var(--ml-space-2);
|
|
47
|
-
--ml-auth-description-size: var(--ml-text-sm);
|
|
48
|
-
--ml-auth-description-color: var(--ml-color-text-muted);
|
|
49
|
-
--ml-auth-description-line-height: var(--ml-leading-normal);
|
|
50
|
-
|
|
51
|
-
/* Form / Social / Footer spacing */
|
|
52
|
-
--ml-auth-form-margin: var(--ml-space-6);
|
|
53
|
-
--ml-auth-social-margin: var(--ml-space-6);
|
|
54
|
-
--ml-auth-footer-size: var(--ml-text-sm);
|
|
55
|
-
--ml-auth-footer-color: var(--ml-color-text-muted);
|
|
56
|
-
|
|
57
|
-
/* Mobile */
|
|
58
|
-
--ml-auth-mobile-padding: var(--ml-space-6);
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
/* ============================================
|
|
@@ -65,8 +70,8 @@ export const authLayoutCss = `
|
|
|
65
70
|
display: flex;
|
|
66
71
|
min-height: 100%;
|
|
67
72
|
height: 100%;
|
|
68
|
-
font-family: var(--ml-auth-font-family);
|
|
69
|
-
background-color: var(--ml-auth-bg);
|
|
73
|
+
font-family: var(--ml-auth-font-family, var(--ml-font-sans));
|
|
74
|
+
background-color: var(--ml-auth-bg, var(--ml-color-surface-secondary));
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
/* ============================================
|
|
@@ -75,17 +80,17 @@ export const authLayoutCss = `
|
|
|
75
80
|
.ml-auth--centered {
|
|
76
81
|
align-items: center;
|
|
77
82
|
justify-content: center;
|
|
78
|
-
padding: var(--ml-auth-centered-padding);
|
|
83
|
+
padding: var(--ml-auth-centered-padding, var(--ml-space-6));
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
.ml-auth--centered .ml-auth__card {
|
|
82
87
|
width: 100%;
|
|
83
|
-
max-width: var(--ml-auth-card-max-width);
|
|
84
|
-
background-color: var(--ml-auth-card-bg);
|
|
85
|
-
border: var(--ml-auth-card-border-width) solid var(--ml-auth-card-border-color);
|
|
86
|
-
border-radius: var(--ml-auth-card-radius);
|
|
87
|
-
box-shadow: var(--ml-auth-card-shadow);
|
|
88
|
-
padding: var(--ml-auth-card-padding);
|
|
88
|
+
max-width: var(--ml-auth-card-max-width, 440px);
|
|
89
|
+
background-color: var(--ml-auth-card-bg, var(--ml-color-surface));
|
|
90
|
+
border: var(--ml-auth-card-border-width, var(--ml-border)) solid var(--ml-auth-card-border-color, var(--ml-color-border));
|
|
91
|
+
border-radius: var(--ml-auth-card-radius, var(--ml-radius-xl));
|
|
92
|
+
box-shadow: var(--ml-auth-card-shadow, var(--ml-shadow-lg));
|
|
93
|
+
padding: var(--ml-auth-card-padding, var(--ml-space-10));
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
/* ============================================
|
|
@@ -100,13 +105,13 @@ export const authLayoutCss = `
|
|
|
100
105
|
align-items: center;
|
|
101
106
|
justify-content: center;
|
|
102
107
|
flex: 1;
|
|
103
|
-
padding: var(--ml-auth-split-form-padding);
|
|
104
|
-
background-color: var(--ml-auth-split-form-bg);
|
|
108
|
+
padding: var(--ml-auth-split-form-padding, var(--ml-auth-split-padding, var(--ml-space-10)));
|
|
109
|
+
background-color: var(--ml-auth-split-form-bg, var(--ml-color-surface));
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
.ml-auth--split .ml-auth__card {
|
|
108
113
|
width: 100%;
|
|
109
|
-
max-width: var(--ml-auth-card-max-width);
|
|
114
|
+
max-width: var(--ml-auth-card-max-width, 440px);
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
.ml-auth--split .ml-auth__brand-side {
|
|
@@ -114,9 +119,9 @@ export const authLayoutCss = `
|
|
|
114
119
|
align-items: center;
|
|
115
120
|
justify-content: center;
|
|
116
121
|
flex: 1;
|
|
117
|
-
padding: var(--ml-auth-split-brand-padding);
|
|
118
|
-
background-color: var(--ml-auth-split-brand-bg);
|
|
119
|
-
color: var(--ml-auth-split-brand-color);
|
|
122
|
+
padding: var(--ml-auth-split-brand-padding, var(--ml-auth-split-padding, var(--ml-space-10)));
|
|
123
|
+
background-color: var(--ml-auth-split-brand-bg, var(--ml-color-primary));
|
|
124
|
+
color: var(--ml-auth-split-brand-color, var(--ml-color-text-inverse));
|
|
120
125
|
position: relative;
|
|
121
126
|
overflow: hidden;
|
|
122
127
|
}
|
|
@@ -127,7 +132,7 @@ export const authLayoutCss = `
|
|
|
127
132
|
text-align: center;
|
|
128
133
|
width: 100%;
|
|
129
134
|
height: 100%;
|
|
130
|
-
max-width: var(--ml-auth-split-brand-max-width);
|
|
135
|
+
max-width: var(--ml-auth-split-brand-max-width, 480px);
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
.ml-auth__brand-content ::slotted(*) {
|
|
@@ -140,7 +145,7 @@ export const authLayoutCss = `
|
|
|
140
145
|
.ml-auth__logo {
|
|
141
146
|
display: flex;
|
|
142
147
|
justify-content: center;
|
|
143
|
-
margin-bottom: var(--ml-auth-logo-margin);
|
|
148
|
+
margin-bottom: var(--ml-auth-logo-margin, var(--ml-space-6));
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
.ml-auth__logo:empty {
|
|
@@ -152,29 +157,29 @@ export const authLayoutCss = `
|
|
|
152
157
|
============================================ */
|
|
153
158
|
.ml-auth__header {
|
|
154
159
|
text-align: center;
|
|
155
|
-
margin-bottom: var(--ml-auth-header-margin);
|
|
160
|
+
margin-bottom: var(--ml-auth-header-margin, var(--ml-space-8));
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
.ml-auth__title {
|
|
159
|
-
margin: 0 0 var(--ml-auth-title-margin) 0;
|
|
160
|
-
font-size: var(--ml-auth-title-size);
|
|
161
|
-
font-weight: var(--ml-auth-title-weight);
|
|
162
|
-
color: var(--ml-auth-title-color);
|
|
163
|
-
line-height: var(--ml-auth-title-line-height);
|
|
164
|
+
margin: 0 0 var(--ml-auth-title-margin, var(--ml-space-2)) 0;
|
|
165
|
+
font-size: var(--ml-auth-title-size, var(--ml-text-2xl));
|
|
166
|
+
font-weight: var(--ml-auth-title-weight, var(--ml-font-bold));
|
|
167
|
+
color: var(--ml-auth-title-color, var(--ml-color-text));
|
|
168
|
+
line-height: var(--ml-auth-title-line-height, var(--ml-leading-tight));
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
.ml-auth__description {
|
|
167
172
|
margin: 0;
|
|
168
|
-
font-size: var(--ml-auth-description-size);
|
|
169
|
-
color: var(--ml-auth-description-color);
|
|
170
|
-
line-height: var(--ml-auth-description-line-height);
|
|
173
|
+
font-size: var(--ml-auth-description-size, var(--ml-text-sm));
|
|
174
|
+
color: var(--ml-auth-description-color, var(--ml-color-text-muted));
|
|
175
|
+
line-height: var(--ml-auth-description-line-height, var(--ml-leading-normal));
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
/* ============================================
|
|
174
179
|
FORM AREA
|
|
175
180
|
============================================ */
|
|
176
181
|
.ml-auth__form {
|
|
177
|
-
margin-bottom: var(--ml-auth-form-margin);
|
|
182
|
+
margin-bottom: var(--ml-auth-form-margin, var(--ml-space-6));
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
.ml-auth__form:empty {
|
|
@@ -185,7 +190,7 @@ export const authLayoutCss = `
|
|
|
185
190
|
SOCIAL LOGIN
|
|
186
191
|
============================================ */
|
|
187
192
|
.ml-auth__social {
|
|
188
|
-
margin-bottom: var(--ml-auth-social-margin);
|
|
193
|
+
margin-bottom: var(--ml-auth-social-margin, var(--ml-space-6));
|
|
189
194
|
}
|
|
190
195
|
|
|
191
196
|
.ml-auth__social:empty {
|
|
@@ -197,8 +202,8 @@ export const authLayoutCss = `
|
|
|
197
202
|
============================================ */
|
|
198
203
|
.ml-auth__footer {
|
|
199
204
|
text-align: center;
|
|
200
|
-
font-size: var(--ml-auth-footer-size);
|
|
201
|
-
color: var(--ml-auth-footer-color);
|
|
205
|
+
font-size: var(--ml-auth-footer-size, var(--ml-text-sm));
|
|
206
|
+
color: var(--ml-auth-footer-color, var(--ml-color-text-muted));
|
|
202
207
|
}
|
|
203
208
|
|
|
204
209
|
.ml-auth__footer:empty {
|
|
@@ -219,7 +224,7 @@ export const authLayoutCss = `
|
|
|
219
224
|
|
|
220
225
|
.ml-auth--split .ml-auth__form-side {
|
|
221
226
|
min-height: 100%;
|
|
222
|
-
padding: var(--ml-auth-mobile-padding);
|
|
227
|
+
padding: var(--ml-auth-mobile-padding, var(--ml-space-6));
|
|
223
228
|
}
|
|
224
229
|
}
|
|
225
230
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-page.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/dashboard/dashboard-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"dashboard-page.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/dashboard/dashboard-page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,iDAuH/B,CAAC"}
|
|
@@ -1,38 +1,43 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const dashboardPageStyles = () => 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-dashboard-font-family: var(--ml-font-sans)
|
|
9
|
+
*
|
|
10
|
+
* Padding
|
|
11
|
+
* --ml-dashboard-padding: var(--ml-space-6)
|
|
12
|
+
* --ml-dashboard-mobile-padding: var(--ml-space-4)
|
|
13
|
+
*
|
|
14
|
+
* Metrics grid
|
|
15
|
+
* --ml-dashboard-metrics-min-width: 200px
|
|
16
|
+
* --ml-dashboard-metrics-gap: var(--ml-space-4)
|
|
17
|
+
* --ml-dashboard-metrics-margin: var(--ml-space-6)
|
|
18
|
+
* --ml-dashboard-metrics-mobile-gap: var(--ml-space-3)
|
|
19
|
+
* --ml-dashboard-metrics-mobile-margin: var(--ml-space-4)
|
|
20
|
+
*
|
|
21
|
+
* Body grid
|
|
22
|
+
* --ml-dashboard-body-gap: var(--ml-space-6)
|
|
23
|
+
* --ml-dashboard-body-mobile-gap: var(--ml-space-4)
|
|
24
|
+
*
|
|
25
|
+
* Main & aside
|
|
26
|
+
* --ml-dashboard-main-gap: var(--ml-space-6)
|
|
27
|
+
* --ml-dashboard-aside-gap: var(--ml-space-6)
|
|
28
|
+
*/
|
|
29
|
+
|
|
3
30
|
:host {
|
|
4
31
|
display: block;
|
|
5
32
|
height: 100%;
|
|
6
|
-
|
|
7
|
-
/* Font */
|
|
8
|
-
--ml-dashboard-font-family: var(--ml-font-sans);
|
|
9
|
-
|
|
10
|
-
/* Padding */
|
|
11
|
-
--ml-dashboard-padding: var(--ml-space-6);
|
|
12
|
-
--ml-dashboard-mobile-padding: var(--ml-space-4);
|
|
13
|
-
|
|
14
|
-
/* Metrics grid */
|
|
15
|
-
--ml-dashboard-metrics-min-width: 200px;
|
|
16
|
-
--ml-dashboard-metrics-gap: var(--ml-space-4);
|
|
17
|
-
--ml-dashboard-metrics-margin: var(--ml-space-6);
|
|
18
|
-
--ml-dashboard-metrics-mobile-gap: var(--ml-space-3);
|
|
19
|
-
--ml-dashboard-metrics-mobile-margin: var(--ml-space-4);
|
|
20
|
-
|
|
21
|
-
/* Body grid */
|
|
22
|
-
--ml-dashboard-body-gap: var(--ml-space-6);
|
|
23
|
-
--ml-dashboard-body-mobile-gap: var(--ml-space-4);
|
|
24
|
-
|
|
25
|
-
/* Main & aside */
|
|
26
|
-
--ml-dashboard-main-gap: var(--ml-space-6);
|
|
27
|
-
--ml-dashboard-aside-gap: var(--ml-space-6);
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
/* ============================================
|
|
31
36
|
DASHBOARD CONTENT AREA
|
|
32
37
|
============================================ */
|
|
33
38
|
.ml-dashboard {
|
|
34
|
-
padding: var(--ml-dashboard-padding);
|
|
35
|
-
font-family: var(--ml-dashboard-font-family);
|
|
39
|
+
padding: var(--ml-dashboard-padding, var(--ml-space-6));
|
|
40
|
+
font-family: var(--ml-dashboard-font-family, var(--ml-font-sans));
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
/* ============================================
|
|
@@ -40,9 +45,9 @@ export const dashboardPageStyles = () => css `
|
|
|
40
45
|
============================================ */
|
|
41
46
|
.ml-dashboard__metrics {
|
|
42
47
|
display: grid;
|
|
43
|
-
grid-template-columns: repeat(auto-fit, minmax(var(--ml-dashboard-metrics-min-width), 1fr));
|
|
44
|
-
gap: var(--ml-dashboard-metrics-gap);
|
|
45
|
-
margin-bottom: var(--ml-dashboard-metrics-margin);
|
|
48
|
+
grid-template-columns: repeat(auto-fit, minmax(var(--ml-dashboard-metrics-min-width, 200px), 1fr));
|
|
49
|
+
gap: var(--ml-dashboard-metrics-gap, var(--ml-space-4));
|
|
50
|
+
margin-bottom: var(--ml-dashboard-metrics-margin, var(--ml-space-6));
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
/* ============================================
|
|
@@ -51,7 +56,7 @@ export const dashboardPageStyles = () => css `
|
|
|
51
56
|
.ml-dashboard__body {
|
|
52
57
|
display: grid;
|
|
53
58
|
grid-template-columns: 1fr;
|
|
54
|
-
gap: var(--ml-dashboard-body-gap);
|
|
59
|
+
gap: var(--ml-dashboard-body-gap, var(--ml-space-6));
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
/* Default layout: 2/3 main + 1/3 aside */
|
|
@@ -76,7 +81,7 @@ export const dashboardPageStyles = () => css `
|
|
|
76
81
|
min-width: 0;
|
|
77
82
|
display: flex;
|
|
78
83
|
flex-direction: column;
|
|
79
|
-
gap: var(--ml-dashboard-main-gap);
|
|
84
|
+
gap: var(--ml-dashboard-main-gap, var(--ml-space-6));
|
|
80
85
|
}
|
|
81
86
|
|
|
82
87
|
/* ============================================
|
|
@@ -86,7 +91,7 @@ export const dashboardPageStyles = () => css `
|
|
|
86
91
|
min-width: 0;
|
|
87
92
|
display: flex;
|
|
88
93
|
flex-direction: column;
|
|
89
|
-
gap: var(--ml-dashboard-aside-gap);
|
|
94
|
+
gap: var(--ml-dashboard-aside-gap, var(--ml-space-6));
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
/* ============================================
|
|
@@ -100,17 +105,17 @@ export const dashboardPageStyles = () => css `
|
|
|
100
105
|
|
|
101
106
|
@media (max-width: 640px) {
|
|
102
107
|
.ml-dashboard {
|
|
103
|
-
padding: var(--ml-dashboard-mobile-padding);
|
|
108
|
+
padding: var(--ml-dashboard-mobile-padding, var(--ml-space-4));
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
.ml-dashboard__metrics {
|
|
107
112
|
grid-template-columns: 1fr;
|
|
108
|
-
gap: var(--ml-dashboard-metrics-mobile-gap);
|
|
109
|
-
margin-bottom: var(--ml-dashboard-metrics-mobile-margin);
|
|
113
|
+
gap: var(--ml-dashboard-metrics-mobile-gap, var(--ml-space-3));
|
|
114
|
+
margin-bottom: var(--ml-dashboard-metrics-mobile-margin, var(--ml-space-4));
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
.ml-dashboard__body {
|
|
113
|
-
gap: var(--ml-dashboard-body-mobile-gap);
|
|
118
|
+
gap: var(--ml-dashboard-body-mobile-gap, var(--ml-space-4));
|
|
114
119
|
}
|
|
115
120
|
}
|
|
116
121
|
`;
|
|
@@ -33,12 +33,25 @@ export declare class AppShellComponent implements IElementRef, OnCreate, OnDestr
|
|
|
33
33
|
/** Media query for responsive behavior */
|
|
34
34
|
private _mediaQuery;
|
|
35
35
|
private readonly _handleMediaChange;
|
|
36
|
+
/**
|
|
37
|
+
* The viewport width below which the sidebar becomes a drawer, read from
|
|
38
|
+
* `--ml-app-shell-mobile-breakpoint`. The value used to be hardcoded in
|
|
39
|
+
* both the stylesheet and here, so overriding it in CSS left the JS
|
|
40
|
+
* behaviour switching at the old width.
|
|
41
|
+
*/
|
|
42
|
+
get mobileBreakpoint(): string;
|
|
36
43
|
onCreate(): void;
|
|
37
44
|
onDestroy(): void;
|
|
38
45
|
/** Toggle mobile sidebar drawer */
|
|
39
46
|
toggleMobileSidebar: () => void;
|
|
40
47
|
/** Close mobile sidebar */
|
|
41
48
|
closeMobileSidebar: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Escape closes the mobile drawer. It had no keyboard dismissal at all:
|
|
51
|
+
* the only way out was clicking the backdrop.
|
|
52
|
+
*/
|
|
53
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
54
|
+
private focusMenuButton;
|
|
42
55
|
private onMediaChange;
|
|
43
56
|
}
|
|
44
57
|
//# sourceMappingURL=app-shell.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"app-shell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMzE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/C;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAMa,iBAAkB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IAClE,UAAU,EAAG,WAAW,CAAC;IAEhC,+EAA+E;IACxE,eAAe,EAAE,eAAe,CAAU;IAEjD,sEAAsE;IAC/D,gBAAgB,UAAS;IAEhC,mEAAmE;IAC5D,WAAW,UAAS;IAE3B,oDAAoD;IAC7C,MAAM,UAAS;IAEtB,gDAAgD;IACzC,UAAU,UAAS;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiC;IAEpE;;;;;OAKG;IACH,IAAW,gBAAgB,IAAI,MAAM,CAGpC;IAEM,QAAQ,IAAI,IAAI;IAQhB,SAAS,IAAI,IAAI;IAIxB,mCAAmC;IAC5B,mBAAmB,QAAO,IAAI,CAanC;IAEF,2BAA2B;IACpB,kBAAkB,QAAO,IAAI,CAOlC;IAEF;;;OAGG;IACI,aAAa,GAAI,OAAO,aAAa,KAAG,IAAI,CAKjD;IAEF,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,aAAa;CAOrB"}
|
|
@@ -8,6 +8,7 @@ import { MelodicComponent } from '@melodicdev/core';
|
|
|
8
8
|
import { appShellTemplate } from './app-shell.template.js';
|
|
9
9
|
import { appShellStyles } from './app-shell.styles.js';
|
|
10
10
|
import { defineLegacyAliases } from '../../../functions/index.js';
|
|
11
|
+
import { focusFirst } from '../../../utils/accessibility/focus-utils.js';
|
|
11
12
|
/**
|
|
12
13
|
* ml-app-shell - Application shell layout component
|
|
13
14
|
*
|
|
@@ -44,20 +45,63 @@ let AppShellComponent = class AppShellComponent {
|
|
|
44
45
|
/** Toggle mobile sidebar drawer */
|
|
45
46
|
this.toggleMobileSidebar = () => {
|
|
46
47
|
this.mobileOpen = !this.mobileOpen;
|
|
48
|
+
if (this.mobileOpen) {
|
|
49
|
+
// Move focus into the drawer so a keyboard user lands where the
|
|
50
|
+
// content is, and Escape has somewhere to close from.
|
|
51
|
+
queueMicrotask(() => {
|
|
52
|
+
const sidebar = this.elementRef.shadowRoot?.querySelector('.ml-app-shell__sidebar');
|
|
53
|
+
focusFirst(sidebar ?? this.elementRef);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.focusMenuButton();
|
|
58
|
+
}
|
|
47
59
|
};
|
|
48
60
|
/** Close mobile sidebar */
|
|
49
61
|
this.closeMobileSidebar = () => {
|
|
62
|
+
if (!this.mobileOpen) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
50
65
|
this.mobileOpen = false;
|
|
66
|
+
this.focusMenuButton();
|
|
51
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Escape closes the mobile drawer. It had no keyboard dismissal at all:
|
|
70
|
+
* the only way out was clicking the backdrop.
|
|
71
|
+
*/
|
|
72
|
+
this.handleKeyDown = (event) => {
|
|
73
|
+
if (event.key === 'Escape' && this.mobileOpen) {
|
|
74
|
+
event.preventDefault();
|
|
75
|
+
this.closeMobileSidebar();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The viewport width below which the sidebar becomes a drawer, read from
|
|
81
|
+
* `--ml-app-shell-mobile-breakpoint`. The value used to be hardcoded in
|
|
82
|
+
* both the stylesheet and here, so overriding it in CSS left the JS
|
|
83
|
+
* behaviour switching at the old width.
|
|
84
|
+
*/
|
|
85
|
+
get mobileBreakpoint() {
|
|
86
|
+
const value = getComputedStyle(this.elementRef).getPropertyValue('--ml-app-shell-mobile-breakpoint').trim();
|
|
87
|
+
return value || '768px';
|
|
52
88
|
}
|
|
53
89
|
onCreate() {
|
|
54
|
-
|
|
90
|
+
// Read the breakpoint from the same custom property the stylesheet uses,
|
|
91
|
+
// so overriding one no longer desynchronises JS from CSS.
|
|
92
|
+
this._mediaQuery = window.matchMedia(`(min-width: ${this.mobileBreakpoint})`);
|
|
55
93
|
this._mediaQuery.addEventListener('change', this._handleMediaChange);
|
|
56
94
|
this.mobile = !this._mediaQuery.matches;
|
|
57
95
|
}
|
|
58
96
|
onDestroy() {
|
|
59
97
|
this._mediaQuery?.removeEventListener('change', this._handleMediaChange);
|
|
60
98
|
}
|
|
99
|
+
focusMenuButton() {
|
|
100
|
+
queueMicrotask(() => {
|
|
101
|
+
const button = this.elementRef.shadowRoot?.querySelector('.ml-app-shell__menu-btn');
|
|
102
|
+
button?.focus();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
61
105
|
onMediaChange(event) {
|
|
62
106
|
this.mobile = !event.matches;
|
|
63
107
|
if (event.matches) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iDA+O1B,CAAC"}
|