@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,73 +1,78 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const tableStyles = () => 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
|
+
* Table: surface
|
|
8
|
+
* --ml-table-bg: var(--ml-color-surface)
|
|
9
|
+
* --ml-table-font: var(--ml-font-sans)
|
|
10
|
+
*
|
|
11
|
+
* Deprecated aliases — prefer container-* and divider-* tokens below
|
|
12
|
+
* --ml-table-border-width: var(--ml-border)
|
|
13
|
+
* --ml-table-border-color: var(--ml-color-border)
|
|
14
|
+
* --ml-table-radius: var(--ml-radius-lg)
|
|
15
|
+
*
|
|
16
|
+
* Table: container chrome (outer border + radius)
|
|
17
|
+
* --ml-table-container-border-width: var(--ml-table-border-width)
|
|
18
|
+
* --ml-table-container-border-color: var(--ml-table-border-color)
|
|
19
|
+
* --ml-table-container-radius: var(--ml-table-radius)
|
|
20
|
+
*
|
|
21
|
+
* Table: internal dividers (header/row/footer separators)
|
|
22
|
+
* --ml-table-divider-width: var(--ml-table-border-width)
|
|
23
|
+
* --ml-table-divider-color: var(--ml-table-border-color)
|
|
24
|
+
*
|
|
25
|
+
* Table: header section
|
|
26
|
+
* --ml-table-title-color: var(--ml-color-text)
|
|
27
|
+
* --ml-table-description-color: var(--ml-color-text-muted)
|
|
28
|
+
*
|
|
29
|
+
* Table: column header
|
|
30
|
+
* --ml-table-header-bg: var(--ml-color-surface-sunken)
|
|
31
|
+
* --ml-table-header-color: var(--ml-color-text-muted)
|
|
32
|
+
* --ml-table-header-sorted-color: var(--ml-color-text)
|
|
33
|
+
*
|
|
34
|
+
* Table: sort icon
|
|
35
|
+
* --ml-table-sort-color: var(--ml-color-text-muted)
|
|
36
|
+
* --ml-table-sort-active-color: var(--ml-color-primary)
|
|
37
|
+
*
|
|
38
|
+
* Table: rows
|
|
39
|
+
* --ml-table-row-hover-bg: var(--ml-color-surface-sunken)
|
|
40
|
+
* --ml-table-row-hover-border-color: transparent
|
|
41
|
+
* --ml-table-row-hover-border-width: 0
|
|
42
|
+
* --ml-table-row-hover-border-left-width: 0
|
|
43
|
+
* --ml-table-row-hover-border-left-color: transparent
|
|
44
|
+
* --ml-table-row-selected-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.04))
|
|
45
|
+
* --ml-table-row-selected-hover-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.06))
|
|
46
|
+
* --ml-table-row-striped-bg: var(--ml-color-surface-sunken)
|
|
47
|
+
* --ml-table-row-striped-hover-bg: var(--ml-color-surface-raised)
|
|
48
|
+
*
|
|
49
|
+
* Table: cells
|
|
50
|
+
* --ml-table-cell-color: var(--ml-color-text)
|
|
51
|
+
* --ml-table-cell-padding-y: var(--ml-space-4)
|
|
52
|
+
* --ml-table-cell-padding-x: var(--ml-space-6)
|
|
53
|
+
* --ml-table-cell-padding-y-sm: var(--ml-space-2-5)
|
|
54
|
+
* --ml-table-cell-padding-x-sm: var(--ml-space-4)
|
|
55
|
+
*
|
|
56
|
+
* Table: header cells
|
|
57
|
+
* --ml-table-header-padding-y: var(--ml-space-3)
|
|
58
|
+
* --ml-table-header-padding-x: var(--ml-space-6)
|
|
59
|
+
* --ml-table-header-padding-y-sm: var(--ml-space-2)
|
|
60
|
+
* --ml-table-header-padding-x-sm: var(--ml-space-4)
|
|
61
|
+
*
|
|
62
|
+
* Table: checkbox
|
|
63
|
+
* --ml-table-checkbox-accent: var(--ml-color-primary)
|
|
64
|
+
*/
|
|
65
|
+
|
|
3
66
|
:host {
|
|
4
67
|
display: block;
|
|
5
|
-
|
|
6
|
-
/* ── Table: surface ── */
|
|
7
|
-
--ml-table-bg: var(--ml-color-surface);
|
|
8
|
-
--ml-table-font: var(--ml-font-sans);
|
|
9
|
-
|
|
10
|
-
/* Deprecated aliases — prefer container-* and divider-* tokens below */
|
|
11
|
-
--ml-table-border-width: var(--ml-border);
|
|
12
|
-
--ml-table-border-color: var(--ml-color-border);
|
|
13
|
-
--ml-table-radius: var(--ml-radius-lg);
|
|
14
|
-
|
|
15
|
-
/* ── Table: container chrome (outer border + radius) ── */
|
|
16
|
-
--ml-table-container-border-width: var(--ml-table-border-width);
|
|
17
|
-
--ml-table-container-border-color: var(--ml-table-border-color);
|
|
18
|
-
--ml-table-container-radius: var(--ml-table-radius);
|
|
19
|
-
|
|
20
|
-
/* ── Table: internal dividers (header/row/footer separators) ── */
|
|
21
|
-
--ml-table-divider-width: var(--ml-table-border-width);
|
|
22
|
-
--ml-table-divider-color: var(--ml-table-border-color);
|
|
23
|
-
|
|
24
|
-
/* ── Table: header section ── */
|
|
25
|
-
--ml-table-title-color: var(--ml-color-text);
|
|
26
|
-
--ml-table-description-color: var(--ml-color-text-muted);
|
|
27
|
-
|
|
28
|
-
/* ── Table: column header ── */
|
|
29
|
-
--ml-table-header-bg: var(--ml-color-surface-sunken);
|
|
30
|
-
--ml-table-header-color: var(--ml-color-text-muted);
|
|
31
|
-
--ml-table-header-sorted-color: var(--ml-color-text);
|
|
32
|
-
|
|
33
|
-
/* ── Table: sort icon ── */
|
|
34
|
-
--ml-table-sort-color: var(--ml-color-text-muted);
|
|
35
|
-
--ml-table-sort-active-color: var(--ml-color-primary);
|
|
36
|
-
|
|
37
|
-
/* ── Table: rows ── */
|
|
38
|
-
--ml-table-row-hover-bg: var(--ml-color-surface-sunken);
|
|
39
|
-
--ml-table-row-hover-border-color: transparent;
|
|
40
|
-
--ml-table-row-hover-border-width: 0;
|
|
41
|
-
--ml-table-row-hover-border-left-width: 0;
|
|
42
|
-
--ml-table-row-hover-border-left-color: transparent;
|
|
43
|
-
--ml-table-row-selected-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.04));
|
|
44
|
-
--ml-table-row-selected-hover-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.06));
|
|
45
|
-
--ml-table-row-striped-bg: var(--ml-color-surface-sunken);
|
|
46
|
-
--ml-table-row-striped-hover-bg: var(--ml-color-surface-raised);
|
|
47
|
-
|
|
48
|
-
/* ── Table: cells ── */
|
|
49
|
-
--ml-table-cell-color: var(--ml-color-text);
|
|
50
|
-
--ml-table-cell-padding-y: var(--ml-space-4);
|
|
51
|
-
--ml-table-cell-padding-x: var(--ml-space-6);
|
|
52
|
-
--ml-table-cell-padding-y-sm: var(--ml-space-2-5);
|
|
53
|
-
--ml-table-cell-padding-x-sm: var(--ml-space-4);
|
|
54
|
-
|
|
55
|
-
/* ── Table: header cells ── */
|
|
56
|
-
--ml-table-header-padding-y: var(--ml-space-3);
|
|
57
|
-
--ml-table-header-padding-x: var(--ml-space-6);
|
|
58
|
-
--ml-table-header-padding-y-sm: var(--ml-space-2);
|
|
59
|
-
--ml-table-header-padding-x-sm: var(--ml-space-4);
|
|
60
|
-
|
|
61
|
-
/* ── Table: checkbox ── */
|
|
62
|
-
--ml-table-checkbox-accent: var(--ml-color-primary);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
.ml-table {
|
|
66
|
-
border: var(--ml-table-container-border-width) solid var(--ml-table-container-border-color);
|
|
67
|
-
border-radius: var(--ml-table-container-radius);
|
|
68
|
-
background-color: var(--ml-table-bg);
|
|
71
|
+
border: var(--ml-table-container-border-width, var(--ml-table-border-width, var(--ml-border))) solid var(--ml-table-container-border-color, var(--ml-table-border-color, var(--ml-color-border)));
|
|
72
|
+
border-radius: var(--ml-table-container-radius, var(--ml-table-radius, var(--ml-radius-lg)));
|
|
73
|
+
background-color: var(--ml-table-bg, var(--ml-color-surface));
|
|
69
74
|
overflow: hidden;
|
|
70
|
-
font-family: var(--ml-table-font);
|
|
75
|
+
font-family: var(--ml-table-font, var(--ml-font-sans));
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
/* ── Header ── */
|
|
@@ -77,7 +82,7 @@ export const tableStyles = () => css `
|
|
|
77
82
|
justify-content: space-between;
|
|
78
83
|
gap: var(--ml-space-4);
|
|
79
84
|
padding: var(--ml-space-5) var(--ml-space-6);
|
|
80
|
-
border-bottom: var(--ml-table-divider-width) solid var(--ml-table-divider-color);
|
|
85
|
+
border-bottom: var(--ml-table-divider-width, var(--ml-table-border-width, var(--ml-border))) solid var(--ml-table-divider-color, var(--ml-table-border-color, var(--ml-color-border)));
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
.ml-table__header-text {
|
|
@@ -90,14 +95,14 @@ export const tableStyles = () => css `
|
|
|
90
95
|
margin: 0;
|
|
91
96
|
font-size: var(--ml-text-lg);
|
|
92
97
|
font-weight: var(--ml-font-semibold);
|
|
93
|
-
color: var(--ml-table-title-color);
|
|
98
|
+
color: var(--ml-table-title-color, var(--ml-color-text));
|
|
94
99
|
line-height: var(--ml-leading-tight);
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
.ml-table__description {
|
|
98
103
|
margin: 0;
|
|
99
104
|
font-size: var(--ml-text-sm);
|
|
100
|
-
color: var(--ml-table-description-color);
|
|
105
|
+
color: var(--ml-table-description-color, var(--ml-color-text-muted));
|
|
101
106
|
line-height: var(--ml-leading-normal);
|
|
102
107
|
}
|
|
103
108
|
|
|
@@ -114,7 +119,7 @@ export const tableStyles = () => css `
|
|
|
114
119
|
|
|
115
120
|
/* ── Header cells ── */
|
|
116
121
|
thead {
|
|
117
|
-
background-color: var(--ml-table-header-bg);
|
|
122
|
+
background-color: var(--ml-table-header-bg, var(--ml-color-surface-sunken));
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
.ml-table--sticky-header thead {
|
|
@@ -124,14 +129,14 @@ export const tableStyles = () => css `
|
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
thead tr {
|
|
127
|
-
border-bottom: var(--ml-table-divider-width) solid var(--ml-table-divider-color);
|
|
132
|
+
border-bottom: var(--ml-table-divider-width, var(--ml-table-border-width, var(--ml-border))) solid var(--ml-table-divider-color, var(--ml-table-border-color, var(--ml-color-border)));
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
.ml-table__th {
|
|
131
|
-
padding: var(--ml-table-header-padding-y) var(--ml-table-header-padding-x);
|
|
136
|
+
padding: var(--ml-table-header-padding-y, var(--ml-space-3)) var(--ml-table-header-padding-x, var(--ml-space-6));
|
|
132
137
|
font-size: var(--ml-text-xs);
|
|
133
138
|
font-weight: var(--ml-font-medium);
|
|
134
|
-
color: var(--ml-table-header-color);
|
|
139
|
+
color: var(--ml-table-header-color, var(--ml-color-text-muted));
|
|
135
140
|
text-transform: uppercase;
|
|
136
141
|
letter-spacing: 0.05em;
|
|
137
142
|
text-align: left;
|
|
@@ -140,7 +145,7 @@ export const tableStyles = () => css `
|
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
.ml-table--sm .ml-table__th {
|
|
143
|
-
padding: var(--ml-table-header-padding-y-sm) var(--ml-table-header-padding-x-sm);
|
|
148
|
+
padding: var(--ml-table-header-padding-y-sm, var(--ml-space-2)) var(--ml-table-header-padding-x-sm, var(--ml-space-4));
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
.ml-table__th--center { text-align: center; }
|
|
@@ -152,11 +157,11 @@ export const tableStyles = () => css `
|
|
|
152
157
|
}
|
|
153
158
|
|
|
154
159
|
.ml-table__th--sortable:hover {
|
|
155
|
-
color: var(--ml-table-header-sorted-color);
|
|
160
|
+
color: var(--ml-table-header-sorted-color, var(--ml-color-text));
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
.ml-table__th--sorted {
|
|
159
|
-
color: var(--ml-table-header-sorted-color);
|
|
164
|
+
color: var(--ml-table-header-sorted-color, var(--ml-color-text));
|
|
160
165
|
}
|
|
161
166
|
|
|
162
167
|
.ml-table__th-content {
|
|
@@ -169,11 +174,11 @@ export const tableStyles = () => css `
|
|
|
169
174
|
display: inline-flex;
|
|
170
175
|
align-items: center;
|
|
171
176
|
flex-shrink: 0;
|
|
172
|
-
color: var(--ml-table-sort-color);
|
|
177
|
+
color: var(--ml-table-sort-color, var(--ml-color-text-muted));
|
|
173
178
|
}
|
|
174
179
|
|
|
175
180
|
.ml-table__th--sorted .ml-table__sort-icon {
|
|
176
|
-
color: var(--ml-table-sort-active-color);
|
|
181
|
+
color: var(--ml-table-sort-active-color, var(--ml-color-primary));
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
/* ── Body rows ── */
|
|
@@ -181,7 +186,7 @@ export const tableStyles = () => css `
|
|
|
181
186
|
participates in layout — hover/selected/striped state changes can't
|
|
182
187
|
collapse it and shift rows below by 1px. */
|
|
183
188
|
.ml-table__row {
|
|
184
|
-
box-shadow: inset 0 calc(-1 * var(--ml-table-divider-width)) 0 var(--ml-table-divider-color);
|
|
189
|
+
box-shadow: inset 0 calc(-1 * var(--ml-table-divider-width, var(--ml-table-border-width, var(--ml-border)))) 0 var(--ml-table-divider-color, var(--ml-table-border-color, var(--ml-color-border)));
|
|
185
190
|
transition: background-color var(--ml-duration-150) var(--ml-ease-in-out);
|
|
186
191
|
}
|
|
187
192
|
|
|
@@ -190,12 +195,12 @@ export const tableStyles = () => css `
|
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
.ml-table--hoverable .ml-table__row:hover {
|
|
193
|
-
background-color: var(--ml-table-row-hover-bg);
|
|
194
|
-
border-color: var(--ml-table-row-hover-border-color);
|
|
195
|
-
border-width: var(--ml-table-row-hover-border-width);
|
|
198
|
+
background-color: var(--ml-table-row-hover-bg, var(--ml-color-surface-sunken));
|
|
199
|
+
border-color: var(--ml-table-row-hover-border-color, transparent);
|
|
200
|
+
border-width: var(--ml-table-row-hover-border-width, 0);
|
|
196
201
|
border-style: solid;
|
|
197
|
-
border-left-width: var(--ml-table-row-hover-border-left-width);
|
|
198
|
-
border-left-color: var(--ml-table-row-hover-border-left-color);
|
|
202
|
+
border-left-width: var(--ml-table-row-hover-border-left-width, 0);
|
|
203
|
+
border-left-color: var(--ml-table-row-hover-border-left-color, transparent);
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
.ml-table--row-clickable .ml-table__row {
|
|
@@ -203,32 +208,32 @@ export const tableStyles = () => css `
|
|
|
203
208
|
}
|
|
204
209
|
|
|
205
210
|
.ml-table__row--selected {
|
|
206
|
-
background-color: var(--ml-table-row-selected-bg);
|
|
211
|
+
background-color: var(--ml-table-row-selected-bg, var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.04)));
|
|
207
212
|
}
|
|
208
213
|
|
|
209
214
|
.ml-table--hoverable .ml-table__row--selected:hover {
|
|
210
|
-
background-color: var(--ml-table-row-selected-hover-bg);
|
|
215
|
+
background-color: var(--ml-table-row-selected-hover-bg, var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.06)));
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
/* Striped */
|
|
214
219
|
.ml-table--striped .ml-table__row:nth-child(even) {
|
|
215
|
-
background-color: var(--ml-table-row-striped-bg);
|
|
220
|
+
background-color: var(--ml-table-row-striped-bg, var(--ml-color-surface-sunken));
|
|
216
221
|
}
|
|
217
222
|
|
|
218
223
|
.ml-table--striped.ml-table--hoverable .ml-table__row:hover {
|
|
219
|
-
background-color: var(--ml-table-row-striped-hover-bg);
|
|
224
|
+
background-color: var(--ml-table-row-striped-hover-bg, var(--ml-color-surface-raised));
|
|
220
225
|
}
|
|
221
226
|
|
|
222
227
|
/* ── Body cells ── */
|
|
223
228
|
.ml-table__td {
|
|
224
|
-
padding: var(--ml-table-cell-padding-y) var(--ml-table-cell-padding-x);
|
|
229
|
+
padding: var(--ml-table-cell-padding-y, var(--ml-space-4)) var(--ml-table-cell-padding-x, var(--ml-space-6));
|
|
225
230
|
font-size: var(--ml-text-sm);
|
|
226
|
-
color: var(--ml-table-cell-color);
|
|
231
|
+
color: var(--ml-table-cell-color, var(--ml-color-text));
|
|
227
232
|
vertical-align: middle;
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
.ml-table--sm .ml-table__td {
|
|
231
|
-
padding: var(--ml-table-cell-padding-y-sm) var(--ml-table-cell-padding-x-sm);
|
|
236
|
+
padding: var(--ml-table-cell-padding-y-sm, var(--ml-space-2-5)) var(--ml-table-cell-padding-x-sm, var(--ml-space-4));
|
|
232
237
|
font-size: var(--ml-text-xs);
|
|
233
238
|
}
|
|
234
239
|
|
|
@@ -250,7 +255,7 @@ export const tableStyles = () => css `
|
|
|
250
255
|
.ml-table__checkbox {
|
|
251
256
|
width: 1rem;
|
|
252
257
|
height: 1rem;
|
|
253
|
-
accent-color: var(--ml-table-checkbox-accent);
|
|
258
|
+
accent-color: var(--ml-table-checkbox-accent, var(--ml-color-primary));
|
|
254
259
|
cursor: pointer;
|
|
255
260
|
margin: 0;
|
|
256
261
|
vertical-align: middle;
|
|
@@ -301,7 +306,7 @@ export const tableStyles = () => css `
|
|
|
301
306
|
align-items: center;
|
|
302
307
|
justify-content: space-between;
|
|
303
308
|
padding: var(--ml-space-3) var(--ml-space-6);
|
|
304
|
-
border-top: var(--ml-table-divider-width) solid var(--ml-table-divider-color);
|
|
309
|
+
border-top: var(--ml-table-divider-width, var(--ml-table-border-width, var(--ml-border))) solid var(--ml-table-divider-color, var(--ml-table-border-color, var(--ml-color-border)));
|
|
305
310
|
}
|
|
306
311
|
|
|
307
312
|
.ml-table--sm .ml-table__footer--visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.template.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table/table.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,wBAAgB,aAAa,CAAC,CAAC,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"table.template.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table/table.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,wBAAgB,aAAa,CAAC,CAAC,EAAE,cAAc,6CAkI9C"}
|
|
@@ -47,7 +47,10 @@ export function tableTemplate(c) {
|
|
|
47
47
|
[`ml-table__th--${col.align ?? 'left'}`]: true
|
|
48
48
|
})}
|
|
49
49
|
style=${col.width ? `width: ${col.width}` : ''}
|
|
50
|
+
tabindex=${col.sortable ? '0' : ''}
|
|
51
|
+
role=${col.sortable ? 'columnheader button' : ''}
|
|
50
52
|
@click=${() => c.handleSort(col)}
|
|
53
|
+
@keydown=${(e) => c.handleHeaderKeyDown(col, e)}
|
|
51
54
|
aria-sort=${c.sortKey === col.key ? (c.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none'}
|
|
52
55
|
>
|
|
53
56
|
<span class="ml-table__th-content">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tiny dependency-keyed memo for derived row sets.
|
|
3
|
+
*
|
|
4
|
+
* `displayRows()` is called by `VirtualScroller.itemCount` on every scroll
|
|
5
|
+
* event and four to six times per render, and each call cloned, filtered and
|
|
6
|
+
* sorted the whole dataset. Memoizing on the identity of the inputs makes the
|
|
7
|
+
* repeat calls free while still recomputing the moment anything real changes.
|
|
8
|
+
*/
|
|
9
|
+
export declare function memoOn<T>(): (deps: readonly unknown[], compute: () => T) => T;
|
|
10
|
+
//# sourceMappingURL=memo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memo.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/memo.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAa7E"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tiny dependency-keyed memo for derived row sets.
|
|
3
|
+
*
|
|
4
|
+
* `displayRows()` is called by `VirtualScroller.itemCount` on every scroll
|
|
5
|
+
* event and four to six times per render, and each call cloned, filtered and
|
|
6
|
+
* sorted the whole dataset. Memoizing on the identity of the inputs makes the
|
|
7
|
+
* repeat calls free while still recomputing the moment anything real changes.
|
|
8
|
+
*/
|
|
9
|
+
export function memoOn() {
|
|
10
|
+
let lastDeps = null;
|
|
11
|
+
let lastValue;
|
|
12
|
+
return (deps, compute) => {
|
|
13
|
+
if (lastDeps !== null && lastDeps.length === deps.length && lastDeps.every((dep, i) => Object.is(dep, deps[i]))) {
|
|
14
|
+
return lastValue;
|
|
15
|
+
}
|
|
16
|
+
lastDeps = deps;
|
|
17
|
+
lastValue = compute();
|
|
18
|
+
return lastValue;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iDA0OrB,CAAC"}
|
|
@@ -1,58 +1,63 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const tagStyles = () => 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
|
+
* Tag: base
|
|
8
|
+
* --ml-tag-font: var(--ml-font-sans)
|
|
9
|
+
* --ml-tag-font-weight: var(--ml-font-medium)
|
|
10
|
+
* --ml-tag-radius: var(--ml-radius-md)
|
|
11
|
+
* --ml-tag-border-width: var(--ml-border)
|
|
12
|
+
* --ml-tag-border-color: var(--ml-color-border)
|
|
13
|
+
* --ml-tag-bg: var(--ml-color-surface)
|
|
14
|
+
* --ml-tag-color: var(--ml-color-text)
|
|
15
|
+
*
|
|
16
|
+
* Tag: dot colors
|
|
17
|
+
* --ml-tag-dot-success: var(--ml-color-success)
|
|
18
|
+
* --ml-tag-dot-warning: var(--ml-color-warning)
|
|
19
|
+
* --ml-tag-dot-danger: var(--ml-color-danger)
|
|
20
|
+
* --ml-tag-dot-info: var(--ml-color-info)
|
|
21
|
+
* --ml-tag-dot-primary: var(--ml-color-primary)
|
|
22
|
+
* --ml-tag-dot-secondary: var(--ml-color-secondary)
|
|
23
|
+
*
|
|
24
|
+
* Tag: count
|
|
25
|
+
* --ml-tag-count-color: var(--ml-color-text-secondary)
|
|
26
|
+
*
|
|
27
|
+
* Tag: close button
|
|
28
|
+
* --ml-tag-close-color: var(--ml-color-text-muted)
|
|
29
|
+
* --ml-tag-close-hover-color: var(--ml-color-text-secondary)
|
|
30
|
+
* --ml-tag-close-active-color: var(--ml-color-text)
|
|
31
|
+
*
|
|
32
|
+
* Tag: checkbox
|
|
33
|
+
* --ml-tag-checkbox-border: var(--ml-color-border-strong)
|
|
34
|
+
* --ml-tag-checkbox-bg: var(--ml-color-surface)
|
|
35
|
+
* --ml-tag-checkbox-checked-bg: var(--ml-color-primary)
|
|
36
|
+
* --ml-tag-checkbox-checked-border: var(--ml-color-primary)
|
|
37
|
+
* --ml-tag-checkbox-hover-border: var(--ml-color-primary)
|
|
38
|
+
* --ml-tag-checkbox-checked-hover-bg: var(--ml-color-primary-hover)
|
|
39
|
+
* --ml-tag-checkbox-checked-hover-border: var(--ml-color-primary-hover)
|
|
40
|
+
*
|
|
41
|
+
* Tag: disabled
|
|
42
|
+
* --ml-tag-disabled-opacity: 0.5
|
|
43
|
+
*/
|
|
44
|
+
|
|
3
45
|
:host {
|
|
4
46
|
display: inline-block;
|
|
5
|
-
|
|
6
|
-
/* ── Tag: base ── */
|
|
7
|
-
--ml-tag-font: var(--ml-font-sans);
|
|
8
|
-
--ml-tag-font-weight: var(--ml-font-medium);
|
|
9
|
-
--ml-tag-radius: var(--ml-radius-md);
|
|
10
|
-
--ml-tag-border-width: var(--ml-border);
|
|
11
|
-
--ml-tag-border-color: var(--ml-color-border);
|
|
12
|
-
--ml-tag-bg: var(--ml-color-surface);
|
|
13
|
-
--ml-tag-color: var(--ml-color-text);
|
|
14
|
-
|
|
15
|
-
/* ── Tag: dot colors ── */
|
|
16
|
-
--ml-tag-dot-success: var(--ml-color-success);
|
|
17
|
-
--ml-tag-dot-warning: var(--ml-color-warning);
|
|
18
|
-
--ml-tag-dot-danger: var(--ml-color-danger);
|
|
19
|
-
--ml-tag-dot-info: var(--ml-color-info);
|
|
20
|
-
--ml-tag-dot-primary: var(--ml-color-primary);
|
|
21
|
-
--ml-tag-dot-secondary: var(--ml-color-secondary);
|
|
22
|
-
|
|
23
|
-
/* ── Tag: count ── */
|
|
24
|
-
--ml-tag-count-color: var(--ml-color-text-secondary);
|
|
25
|
-
|
|
26
|
-
/* ── Tag: close button ── */
|
|
27
|
-
--ml-tag-close-color: var(--ml-color-text-muted);
|
|
28
|
-
--ml-tag-close-hover-color: var(--ml-color-text-secondary);
|
|
29
|
-
--ml-tag-close-active-color: var(--ml-color-text);
|
|
30
|
-
|
|
31
|
-
/* ── Tag: checkbox ── */
|
|
32
|
-
--ml-tag-checkbox-border: var(--ml-color-border-strong);
|
|
33
|
-
--ml-tag-checkbox-bg: var(--ml-color-surface);
|
|
34
|
-
--ml-tag-checkbox-checked-bg: var(--ml-color-primary);
|
|
35
|
-
--ml-tag-checkbox-checked-border: var(--ml-color-primary);
|
|
36
|
-
--ml-tag-checkbox-hover-border: var(--ml-color-primary);
|
|
37
|
-
--ml-tag-checkbox-checked-hover-bg: var(--ml-color-primary-hover);
|
|
38
|
-
--ml-tag-checkbox-checked-hover-border: var(--ml-color-primary-hover);
|
|
39
|
-
|
|
40
|
-
/* ── Tag: disabled ── */
|
|
41
|
-
--ml-tag-disabled-opacity: 0.5;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.ml-tag {
|
|
45
50
|
display: inline-flex;
|
|
46
51
|
align-items: center;
|
|
47
52
|
gap: var(--ml-space-1-5);
|
|
48
|
-
font-family: var(--ml-tag-font);
|
|
49
|
-
font-weight: var(--ml-tag-font-weight);
|
|
53
|
+
font-family: var(--ml-tag-font, var(--ml-font-sans));
|
|
54
|
+
font-weight: var(--ml-tag-font-weight, var(--ml-font-medium));
|
|
50
55
|
line-height: 1;
|
|
51
56
|
white-space: nowrap;
|
|
52
|
-
border-radius: var(--ml-tag-radius);
|
|
53
|
-
border: var(--ml-tag-border-width) solid var(--ml-tag-border-color);
|
|
54
|
-
background-color: var(--ml-tag-bg);
|
|
55
|
-
color: var(--ml-tag-color);
|
|
57
|
+
border-radius: var(--ml-tag-radius, var(--ml-radius-md));
|
|
58
|
+
border: var(--ml-tag-border-width, var(--ml-border)) solid var(--ml-tag-border-color, var(--ml-color-border));
|
|
59
|
+
background-color: var(--ml-tag-bg, var(--ml-color-surface));
|
|
60
|
+
color: var(--ml-tag-color, var(--ml-color-text));
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
/* Sizes */
|
|
@@ -85,27 +90,27 @@ export const tagStyles = () => css `
|
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
.ml-tag__dot--success {
|
|
88
|
-
background-color: var(--ml-tag-dot-success);
|
|
93
|
+
background-color: var(--ml-tag-dot-success, var(--ml-color-success));
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
.ml-tag__dot--warning {
|
|
92
|
-
background-color: var(--ml-tag-dot-warning);
|
|
97
|
+
background-color: var(--ml-tag-dot-warning, var(--ml-color-warning));
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
.ml-tag__dot--danger {
|
|
96
|
-
background-color: var(--ml-tag-dot-danger);
|
|
101
|
+
background-color: var(--ml-tag-dot-danger, var(--ml-color-danger));
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
.ml-tag__dot--info {
|
|
100
|
-
background-color: var(--ml-tag-dot-info);
|
|
105
|
+
background-color: var(--ml-tag-dot-info, var(--ml-color-info));
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
.ml-tag__dot--primary {
|
|
104
|
-
background-color: var(--ml-tag-dot-primary);
|
|
109
|
+
background-color: var(--ml-tag-dot-primary, var(--ml-color-primary));
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
.ml-tag__dot--secondary {
|
|
108
|
-
background-color: var(--ml-tag-dot-secondary);
|
|
113
|
+
background-color: var(--ml-tag-dot-secondary, var(--ml-color-secondary));
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
/* Avatar */
|
|
@@ -146,8 +151,8 @@ export const tagStyles = () => css `
|
|
|
146
151
|
align-items: center;
|
|
147
152
|
justify-content: center;
|
|
148
153
|
font-size: inherit;
|
|
149
|
-
font-weight: var(--ml-tag-font-weight);
|
|
150
|
-
color: var(--ml-tag-count-color);
|
|
154
|
+
font-weight: var(--ml-tag-font-weight, var(--ml-font-medium));
|
|
155
|
+
color: var(--ml-tag-count-color, var(--ml-color-text-secondary));
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
/* Close button */
|
|
@@ -160,7 +165,7 @@ export const tagStyles = () => css `
|
|
|
160
165
|
margin-right: calc(var(--ml-space-1) * -1);
|
|
161
166
|
border: none;
|
|
162
167
|
background: none;
|
|
163
|
-
color: var(--ml-tag-close-color);
|
|
168
|
+
color: var(--ml-tag-close-color, var(--ml-color-text-muted));
|
|
164
169
|
cursor: pointer;
|
|
165
170
|
border-radius: var(--ml-radius-sm);
|
|
166
171
|
transition: color 0.15s ease;
|
|
@@ -168,11 +173,11 @@ export const tagStyles = () => css `
|
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
.ml-tag__close:hover {
|
|
171
|
-
color: var(--ml-tag-close-hover-color);
|
|
176
|
+
color: var(--ml-tag-close-hover-color, var(--ml-color-text-secondary));
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
.ml-tag__close:active {
|
|
175
|
-
color: var(--ml-tag-close-active-color);
|
|
180
|
+
color: var(--ml-tag-close-active-color, var(--ml-color-text));
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
/* Checkbox */
|
|
@@ -185,9 +190,9 @@ export const tagStyles = () => css `
|
|
|
185
190
|
padding: 0;
|
|
186
191
|
margin: 0;
|
|
187
192
|
margin-left: calc(var(--ml-space-0-5) * -1);
|
|
188
|
-
border: var(--ml-tag-border-width) solid var(--ml-tag-checkbox-border);
|
|
193
|
+
border: var(--ml-tag-border-width, var(--ml-border)) solid var(--ml-tag-checkbox-border, var(--ml-color-border-strong));
|
|
189
194
|
border-radius: var(--ml-radius-sm);
|
|
190
|
-
background: var(--ml-tag-checkbox-bg);
|
|
195
|
+
background: var(--ml-tag-checkbox-bg, var(--ml-color-surface));
|
|
191
196
|
cursor: pointer;
|
|
192
197
|
flex-shrink: 0;
|
|
193
198
|
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
@@ -210,22 +215,22 @@ export const tagStyles = () => css `
|
|
|
210
215
|
}
|
|
211
216
|
|
|
212
217
|
.ml-tag__checkbox--checked {
|
|
213
|
-
background-color: var(--ml-tag-checkbox-checked-bg);
|
|
214
|
-
border-color: var(--ml-tag-checkbox-checked-border);
|
|
218
|
+
background-color: var(--ml-tag-checkbox-checked-bg, var(--ml-color-primary));
|
|
219
|
+
border-color: var(--ml-tag-checkbox-checked-border, var(--ml-color-primary));
|
|
215
220
|
}
|
|
216
221
|
|
|
217
222
|
.ml-tag__checkbox:hover {
|
|
218
|
-
border-color: var(--ml-tag-checkbox-hover-border);
|
|
223
|
+
border-color: var(--ml-tag-checkbox-hover-border, var(--ml-color-primary));
|
|
219
224
|
}
|
|
220
225
|
|
|
221
226
|
.ml-tag__checkbox--checked:hover {
|
|
222
|
-
background-color: var(--ml-tag-checkbox-checked-hover-bg);
|
|
223
|
-
border-color: var(--ml-tag-checkbox-checked-hover-border);
|
|
227
|
+
background-color: var(--ml-tag-checkbox-checked-hover-bg, var(--ml-color-primary-hover));
|
|
228
|
+
border-color: var(--ml-tag-checkbox-checked-hover-border, var(--ml-color-primary-hover));
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
/* Disabled state */
|
|
227
232
|
.ml-tag--disabled {
|
|
228
|
-
opacity: var(--ml-tag-disabled-opacity);
|
|
233
|
+
opacity: var(--ml-tag-disabled-opacity, 0.5);
|
|
229
234
|
pointer-events: none;
|
|
230
235
|
}
|
|
231
236
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAqKvB,CAAC"}
|