@melodicdev/components 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/assets/fonts/phosphor/phosphor.css +5 -25
- package/assets/melodic-components.css +50 -25
- package/assets/melodic-components.js +9230 -7814
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.css +1 -21
- package/assets/melodic-components.min.js +1895 -26471
- 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.styles.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.styles.js +174 -155
- package/lib/components/data-display/data-grid/data-grid.component.d.ts +43 -2
- 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 +94 -8
- 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 +139 -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 +19 -10
- package/lib/components/data-display/data-grid/index.d.ts +1 -0
- package/lib/components/data-display/data-grid/index.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.js +40 -35
- 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/index.d.ts +1 -0
- package/lib/components/data-display/table/index.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.d.ts +16 -0
- package/lib/components/data-display/table/table.component.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.js +28 -3
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +101 -90
- package/lib/components/data-display/table/table.template.d.ts.map +1 -1
- package/lib/components/data-display/table/table.template.js +8 -6
- package/lib/components/data-display/table-core/index.d.ts +2 -2
- package/lib/components/data-display/table-core/index.d.ts.map +1 -1
- package/lib/components/data-display/table-core/index.js +1 -1
- package/lib/components/data-display/table-core/table-core.d.ts +16 -2
- package/lib/components/data-display/table-core/table-core.d.ts.map +1 -1
- package/lib/components/data-display/table-core/table-core.js +32 -5
- package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/data-display/tag/tag.styles.js +78 -66
- package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.styles.js +89 -76
- package/lib/components/feedback/progress/progress.styles.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.styles.js +110 -106
- package/lib/components/feedback/spinner/spinner.styles.d.ts.map +1 -1
- package/lib/components/feedback/spinner/spinner.styles.js +18 -13
- package/lib/components/feedback/toast/index.d.ts +1 -0
- package/lib/components/feedback/toast/index.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast-container.styles.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast-container.styles.js +20 -0
- package/lib/components/feedback/toast/toast.component.d.ts +16 -0
- package/lib/components/feedback/toast/toast.component.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.component.js +63 -5
- package/lib/components/feedback/toast/toast.service.d.ts +14 -0
- package/lib/components/feedback/toast/toast.service.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.service.js +41 -0
- package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.styles.js +80 -69
- package/lib/components/feedback/toast/toast.template.js +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts +14 -4
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.js +40 -96
- package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.styles.js +191 -170
- package/lib/components/forms/autocomplete/autocomplete.template.js +7 -1
- package/lib/components/forms/button/button.styles.d.ts.map +1 -1
- package/lib/components/forms/button/button.styles.js +73 -57
- package/lib/components/forms/button-group/button-group-item.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group-item.styles.js +11 -0
- package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.styles.js +24 -19
- package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.styles.js +94 -78
- package/lib/components/forms/date-picker/calendar.component.d.ts +20 -7
- package/lib/components/forms/date-picker/calendar.component.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.component.js +88 -13
- package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.styles.js +171 -147
- package/lib/components/forms/date-picker/date-picker.component.d.ts +2 -3
- package/lib/components/forms/date-picker/date-picker.component.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.component.js +70 -18
- package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.styles.js +109 -92
- 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 +99 -83
- package/lib/components/forms/date-time-picker/tz-utils.d.ts.map +1 -1
- package/lib/components/forms/date-time-picker/tz-utils.js +24 -3
- package/lib/components/forms/file-upload/file-upload-item.styles.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload-item.styles.js +13 -1
- package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.styles.js +108 -92
- package/lib/components/forms/form-field/form-field.component.d.ts +18 -1
- package/lib/components/forms/form-field/form-field.component.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.component.js +55 -16
- package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.styles.js +92 -74
- package/lib/components/forms/input/input.styles.d.ts.map +1 -1
- package/lib/components/forms/input/input.styles.js +98 -82
- package/lib/components/forms/listbox-core/index.d.ts +3 -0
- package/lib/components/forms/listbox-core/index.d.ts.map +1 -0
- package/lib/components/forms/listbox-core/index.js +2 -0
- package/lib/components/forms/listbox-core/listbox-core.d.ts +57 -0
- package/lib/components/forms/listbox-core/listbox-core.d.ts.map +1 -0
- package/lib/components/forms/listbox-core/listbox-core.js +168 -0
- package/lib/components/forms/radio/radio-group.styles.js +1 -1
- package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.styles.js +89 -73
- 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 +40 -35
- 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 +124 -108
- package/lib/components/forms/select/select.component.d.ts +12 -4
- package/lib/components/forms/select/select.component.d.ts.map +1 -1
- package/lib/components/forms/select/select.component.js +41 -110
- package/lib/components/forms/select/select.styles.d.ts.map +1 -1
- package/lib/components/forms/select/select.styles.js +181 -159
- package/lib/components/forms/select/select.template.d.ts.map +1 -1
- package/lib/components/forms/select/select.template.js +25 -9
- package/lib/components/forms/slider/slider.component.js +1 -1
- package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.styles.js +93 -77
- package/lib/components/forms/slider/slider.template.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.template.js +5 -1
- package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.styles.js +97 -81
- package/lib/components/forms/time-picker/time-picker.component.d.ts +1 -2
- package/lib/components/forms/time-picker/time-picker.component.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.component.js +8 -17
- package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.styles.js +220 -194
- package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.styles.js +95 -79
- package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
- package/lib/components/foundation/card/card.styles.js +62 -46
- package/lib/components/foundation/container/container.styles.d.ts.map +1 -1
- package/lib/components/foundation/container/container.styles.js +15 -10
- 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.styles.d.ts.map +1 -1
- package/lib/components/foundation/stack/stack.styles.js +16 -10
- 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/navigation/breadcrumb/breadcrumb-item.template.d.ts.map +1 -1
- package/lib/components/navigation/breadcrumb/breadcrumb-item.template.js +5 -3
- 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/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.styles.js +74 -69
- 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 +105 -100
- package/lib/components/navigation/sidebar/sidebar-item.template.js +2 -2
- package/lib/components/navigation/sidebar/sidebar.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.styles.js +180 -175
- package/lib/components/navigation/sidebar/sidebar.template.js +2 -2
- package/lib/components/navigation/steps/step.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.styles.js +155 -150
- package/lib/components/navigation/steps/steps.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.styles.js +175 -170
- package/lib/components/navigation/tabs/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab-panel.styles.js +12 -7
- 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.map +1 -1
- package/lib/components/navigation/tabs/tabs.component.js +4 -1
- package/lib/components/navigation/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.styles.js +134 -129
- package/lib/components/overlays/dialog/dialog.component.d.ts +15 -2
- package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.component.js +33 -1
- package/lib/components/overlays/dialog/dialog.service.d.ts +8 -2
- package/lib/components/overlays/dialog/dialog.service.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.service.js +1 -0
- 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/dialog/index.d.ts +1 -0
- package/lib/components/overlays/dialog/index.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.component.d.ts +18 -3
- package/lib/components/overlays/drawer/drawer.component.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.component.js +59 -16
- 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 +60 -43
- 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 +12 -0
- package/lib/components/overlays/popover/popover.component.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.component.js +28 -1
- 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/popover/popover.template.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.template.js +2 -0
- package/lib/components/overlays/tooltip/tooltip.component.d.ts +8 -5
- package/lib/components/overlays/tooltip/tooltip.component.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.component.js +10 -3
- 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.styles.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.styles.js +63 -57
- 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/directives/tooltip.directive.d.ts.map +1 -1
- package/lib/directives/tooltip.directive.js +22 -3
- package/lib/theme/presets/base.preset.d.ts.map +1 -1
- package/lib/theme/presets/base.preset.js +17 -0
- package/lib/theme/presets/dark.preset.d.ts +8 -0
- package/lib/theme/presets/dark.preset.d.ts.map +1 -1
- package/lib/theme/presets/dark.preset.js +9 -0
- package/lib/theme/presets/light.preset.d.ts +6 -0
- package/lib/theme/presets/light.preset.d.ts.map +1 -1
- package/lib/theme/presets/light.preset.js +7 -0
- package/lib/theme/tokens/all-tokens.d.ts +10 -0
- package/lib/theme/tokens/all-tokens.d.ts.map +1 -1
- package/lib/theme/tokens/colors.tokens.d.ts +8 -0
- package/lib/theme/tokens/colors.tokens.d.ts.map +1 -1
- package/lib/theme/tokens/colors.tokens.js +11 -0
- package/lib/theme/tokens/transitions.tokens.d.ts +1 -0
- package/lib/theme/tokens/transitions.tokens.d.ts.map +1 -1
- package/lib/theme/tokens/transitions.tokens.js +3 -0
- package/lib/theme/tokens/typography.tokens.d.ts +1 -0
- package/lib/theme/tokens/typography.tokens.d.ts.map +1 -1
- package/lib/theme/tokens/typography.tokens.js +1 -0
- package/lib/utils/accessibility/cross-root-aria.d.ts +16 -8
- package/lib/utils/accessibility/cross-root-aria.d.ts.map +1 -1
- package/lib/utils/accessibility/cross-root-aria.js +58 -22
- package/lib/utils/accessibility/focus-trap.d.ts.map +1 -1
- package/lib/utils/accessibility/focus-trap.js +9 -19
- package/lib/utils/accessibility/focus-utils.d.ts +10 -1
- package/lib/utils/accessibility/focus-utils.d.ts.map +1 -1
- package/lib/utils/accessibility/focus-utils.js +48 -14
- package/lib/utils/accessibility/index.d.ts +2 -1
- package/lib/utils/accessibility/index.d.ts.map +1 -1
- package/lib/utils/accessibility/index.js +1 -1
- package/lib/utils/positioning/compute-position.d.ts +6 -1
- package/lib/utils/positioning/compute-position.d.ts.map +1 -1
- package/lib/utils/positioning/compute-position.js +3 -2
- package/lib/utils/positioning/middlewares/flip.middleware.js +2 -51
- package/package.json +8 -5
- package/assets/fonts/phosphor/Phosphor-Bold.svg +0 -3057
- package/assets/fonts/phosphor/Phosphor-Bold.ttf +0 -0
- package/assets/fonts/phosphor/Phosphor-Bold.woff +0 -0
- package/assets/fonts/phosphor/Phosphor-Fill.svg +0 -3057
- package/assets/fonts/phosphor/Phosphor-Fill.ttf +0 -0
- package/assets/fonts/phosphor/Phosphor-Fill.woff +0 -0
- package/assets/fonts/phosphor/Phosphor-Light.svg +0 -3057
- package/assets/fonts/phosphor/Phosphor-Light.ttf +0 -0
- package/assets/fonts/phosphor/Phosphor-Light.woff +0 -0
- package/assets/fonts/phosphor/Phosphor-Thin.svg +0 -3057
- package/assets/fonts/phosphor/Phosphor-Thin.ttf +0 -0
- package/assets/fonts/phosphor/Phosphor-Thin.woff +0 -0
- package/assets/fonts/phosphor/Phosphor.svg +0 -3056
- package/assets/fonts/phosphor/Phosphor.ttf +0 -0
- package/assets/fonts/phosphor/Phosphor.woff +0 -0
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const popoverStyles = () => css `
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
* Content panel
|
|
8
|
+
* --ml-popover-padding-y: var(--ml-space-3)
|
|
9
|
+
* --ml-popover-padding-x: var(--ml-space-4)
|
|
10
|
+
* --ml-popover-border-color: var(--ml-color-border)
|
|
11
|
+
* --ml-popover-radius: var(--ml-radius-lg)
|
|
12
|
+
* --ml-popover-bg: var(--ml-color-surface)
|
|
13
|
+
* --ml-popover-color: var(--ml-color-text)
|
|
14
|
+
* --ml-popover-shadow: var(--ml-shadow-lg)
|
|
15
|
+
* --ml-popover-content-overflow: visible
|
|
16
|
+
* --ml-popover-transition: var(--ml-duration-150) var(--ml-ease-out)
|
|
17
|
+
*
|
|
18
|
+
* Arrow
|
|
19
|
+
* --ml-popover-arrow-size: 8px
|
|
20
|
+
* --ml-popover-arrow-bg: var(--ml-color-surface)
|
|
21
|
+
* --ml-popover-arrow-border-color: var(--ml-color-border)
|
|
22
|
+
*/
|
|
19
23
|
|
|
24
|
+
:host {
|
|
20
25
|
display: inline-block;
|
|
21
26
|
}
|
|
22
27
|
|
|
@@ -34,20 +39,20 @@ export const popoverStyles = () => css `
|
|
|
34
39
|
position: fixed;
|
|
35
40
|
inset: unset;
|
|
36
41
|
margin: 0;
|
|
37
|
-
padding: var(--ml-popover-padding-y) var(--ml-popover-padding-x);
|
|
38
|
-
border: 1px solid var(--ml-popover-border-color);
|
|
39
|
-
border-radius: var(--ml-popover-radius);
|
|
40
|
-
background-color: var(--ml-popover-bg);
|
|
41
|
-
color: var(--ml-popover-color);
|
|
42
|
-
box-shadow: var(--ml-popover-shadow);
|
|
43
|
-
overflow: var(--ml-popover-content-overflow);
|
|
42
|
+
padding: var(--ml-popover-padding-y, var(--ml-space-3)) var(--ml-popover-padding-x, var(--ml-space-4));
|
|
43
|
+
border: 1px solid var(--ml-popover-border-color, var(--ml-color-border));
|
|
44
|
+
border-radius: var(--ml-popover-radius, var(--ml-radius-lg));
|
|
45
|
+
background-color: var(--ml-popover-bg, var(--ml-color-surface));
|
|
46
|
+
color: var(--ml-popover-color, var(--ml-color-text));
|
|
47
|
+
box-shadow: var(--ml-popover-shadow, var(--ml-shadow-lg));
|
|
48
|
+
overflow: var(--ml-popover-content-overflow, visible);
|
|
44
49
|
opacity: 0;
|
|
45
50
|
transform: scale(0.95);
|
|
46
51
|
transition:
|
|
47
|
-
opacity var(--ml-popover-transition),
|
|
48
|
-
transform var(--ml-popover-transition),
|
|
49
|
-
overlay var(--ml-popover-transition) allow-discrete,
|
|
50
|
-
display var(--ml-popover-transition) allow-discrete;
|
|
52
|
+
opacity var(--ml-popover-transition, var(--ml-duration-150) var(--ml-ease-out)),
|
|
53
|
+
transform var(--ml-popover-transition, var(--ml-duration-150) var(--ml-ease-out)),
|
|
54
|
+
overlay var(--ml-popover-transition, var(--ml-duration-150) var(--ml-ease-out)) allow-discrete,
|
|
55
|
+
display var(--ml-popover-transition, var(--ml-duration-150) var(--ml-ease-out)) allow-discrete;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
.ml-popover__content:not(:popover-open) {
|
|
@@ -68,10 +73,10 @@ export const popoverStyles = () => css `
|
|
|
68
73
|
|
|
69
74
|
.ml-popover__arrow {
|
|
70
75
|
position: absolute;
|
|
71
|
-
width: var(--ml-popover-arrow-size);
|
|
72
|
-
height: var(--ml-popover-arrow-size);
|
|
73
|
-
background-color: var(--ml-popover-arrow-bg);
|
|
74
|
-
border: 1px solid var(--ml-popover-arrow-border-color);
|
|
76
|
+
width: var(--ml-popover-arrow-size, 8px);
|
|
77
|
+
height: var(--ml-popover-arrow-size, 8px);
|
|
78
|
+
background-color: var(--ml-popover-arrow-bg, var(--ml-color-surface));
|
|
79
|
+
border: 1px solid var(--ml-popover-arrow-border-color, var(--ml-color-border));
|
|
75
80
|
transform: rotate(45deg);
|
|
76
81
|
}
|
|
77
82
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.template.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/popover/popover.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAgB,eAAe,CAAC,CAAC,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"popover.template.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/popover/popover.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAgB,eAAe,CAAC,CAAC,EAAE,gBAAgB,6CAoBlD"}
|
|
@@ -8,6 +8,8 @@ export function popoverTemplate(c) {
|
|
|
8
8
|
<div
|
|
9
9
|
class="ml-popover__content"
|
|
10
10
|
popover=${c.manual ? 'manual' : 'auto'}
|
|
11
|
+
role="dialog"
|
|
12
|
+
aria-label=${c.label || undefined}
|
|
11
13
|
>
|
|
12
14
|
<slot></slot>
|
|
13
15
|
${when(c.arrow, () => html `<div class="ml-popover__arrow"></div>`)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IElementRef, OnCreate, OnDestroy } from '@melodicdev/core';
|
|
1
|
+
import type { IElementRef, OnCreate, OnDestroy, OnRender } from '@melodicdev/core';
|
|
2
2
|
import type { Placement } from '../../../types/index.js';
|
|
3
3
|
import { type UniqueID } from '../../../functions/new-id.function.js';
|
|
4
4
|
/**
|
|
@@ -17,7 +17,7 @@ import { type UniqueID } from '../../../functions/new-id.function.js';
|
|
|
17
17
|
*
|
|
18
18
|
* @slot default - The trigger element
|
|
19
19
|
*/
|
|
20
|
-
export declare class TooltipComponent implements IElementRef, OnCreate, OnDestroy {
|
|
20
|
+
export declare class TooltipComponent implements IElementRef, OnCreate, OnDestroy, OnRender {
|
|
21
21
|
elementRef: HTMLElement;
|
|
22
22
|
/** Tooltip content text */
|
|
23
23
|
content: string;
|
|
@@ -40,6 +40,7 @@ export declare class TooltipComponent implements IElementRef, OnCreate, OnDestro
|
|
|
40
40
|
private _hideTimeout;
|
|
41
41
|
private readonly _positioner;
|
|
42
42
|
onCreate(): void;
|
|
43
|
+
onRender(): void;
|
|
43
44
|
onDestroy(): void;
|
|
44
45
|
show: () => void;
|
|
45
46
|
hide: () => void;
|
|
@@ -50,9 +51,11 @@ export declare class TooltipComponent implements IElementRef, OnCreate, OnDestro
|
|
|
50
51
|
* Describe the slotted trigger with the tooltip's content element.
|
|
51
52
|
*
|
|
52
53
|
* An `aria-describedby` IDREF pointing INTO this component's shadow root
|
|
53
|
-
* resolves to nothing, so
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* resolves to nothing, and so does an element reference
|
|
55
|
+
* (`ariaDescribedByElements`) in that direction — a light-DOM element may
|
|
56
|
+
* only reference its own tree or an ancestor tree. Either way the tooltip
|
|
57
|
+
* looked wired up in the DOM and was never announced, so the text is
|
|
58
|
+
* copied onto the trigger as `aria-description` instead.
|
|
56
59
|
*/
|
|
57
60
|
private readonly syncTriggerAria;
|
|
58
61
|
private startPositioning;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAS,KAAK,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAK7E;;;;;;;;;;;;;;;GAeG;AACH,qBAMa,gBAAiB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IAC3E,UAAU,EAAG,WAAW,CAAC;IAEhC,2BAA2B;IACpB,OAAO,SAAM;IAEpB,wBAAwB;IACjB,SAAS,EAAE,SAAS,CAAS;IAEpC,gCAAgC;IACzB,KAAK,SAAO;IAEnB,iCAAiC;IAC1B,SAAS,UAAS;IAEzB;;;;;OAKG;IACI,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE3C,8EAA8E;IACvE,SAAS,EAAE,QAAQ,CAAW;IAErC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAKxB;IAEG,QAAQ,IAAI,IAAI;IAMhB,QAAQ,IAAI,IAAI;IAMhB,SAAS,IAAI,IAAI;IAQjB,IAAI,QAAO,IAAI,CAapB;IAEK,IAAI,QAAO,IAAI,CASpB;IAEF,4CAA4C;IAC5C,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAYpC;IAEF;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAW9B;IAEF,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,eAAe;IAIvB,mDAAmD;IACnD,OAAO,CAAC,cAAc;CAGtB"}
|
|
@@ -92,9 +92,11 @@ let TooltipComponent = class TooltipComponent {
|
|
|
92
92
|
* Describe the slotted trigger with the tooltip's content element.
|
|
93
93
|
*
|
|
94
94
|
* An `aria-describedby` IDREF pointing INTO this component's shadow root
|
|
95
|
-
* resolves to nothing, so
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* resolves to nothing, and so does an element reference
|
|
96
|
+
* (`ariaDescribedByElements`) in that direction — a light-DOM element may
|
|
97
|
+
* only reference its own tree or an ancestor tree. Either way the tooltip
|
|
98
|
+
* looked wired up in the DOM and was never announced, so the text is
|
|
99
|
+
* copied onto the trigger as `aria-description` instead.
|
|
98
100
|
*/
|
|
99
101
|
this.syncTriggerAria = () => {
|
|
100
102
|
const root = this.elementRef.shadowRoot;
|
|
@@ -112,6 +114,11 @@ let TooltipComponent = class TooltipComponent {
|
|
|
112
114
|
this.elementRef.shadowRoot?.addEventListener('slotchange', this.syncTriggerAria);
|
|
113
115
|
this.syncTriggerAria();
|
|
114
116
|
}
|
|
117
|
+
onRender() {
|
|
118
|
+
// The description is carried as text (see syncTriggerAria), so it has
|
|
119
|
+
// to follow the content when that changes.
|
|
120
|
+
this.syncTriggerAria();
|
|
121
|
+
}
|
|
115
122
|
onDestroy() {
|
|
116
123
|
if (this._showTimeout)
|
|
117
124
|
clearTimeout(this._showTimeout);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iDAoGzB,CAAC"}
|
|
@@ -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"}
|