@maliardic/ma-ui 0.0.0-stage → 0.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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +72 -2
  3. package/fesm2022/maliardic-ma-ui-chart.mjs +261 -0
  4. package/fesm2022/maliardic-ma-ui-chart.mjs.map +1 -0
  5. package/fesm2022/maliardic-ma-ui-editor.mjs +457 -0
  6. package/fesm2022/maliardic-ma-ui-editor.mjs.map +1 -0
  7. package/fesm2022/maliardic-ma-ui.mjs +13466 -0
  8. package/fesm2022/maliardic-ma-ui.mjs.map +1 -0
  9. package/package.json +75 -3
  10. package/styles/components/_accordion.scss +172 -0
  11. package/styles/components/_badge.scss +160 -0
  12. package/styles/components/_button.scss +123 -0
  13. package/styles/components/_chart.scss +12 -0
  14. package/styles/components/_checkbox.scss +88 -0
  15. package/styles/components/_command-menu.scss +49 -0
  16. package/styles/components/_date-picker.scss +247 -0
  17. package/styles/components/_dialog.scss +144 -0
  18. package/styles/components/_drawer.scss +165 -0
  19. package/styles/components/_editor.scss +260 -0
  20. package/styles/components/_file-list.scss +59 -0
  21. package/styles/components/_file-upload.scss +141 -0
  22. package/styles/components/_input-number.scss +18 -0
  23. package/styles/components/_input.scss +197 -0
  24. package/styles/components/_listbox.scss +88 -0
  25. package/styles/components/_menu-search.scss +72 -0
  26. package/styles/components/_menu.scss +177 -0
  27. package/styles/components/_multi-select.scss +216 -0
  28. package/styles/components/_popover.scss +63 -0
  29. package/styles/components/_progress-bar.scss +123 -0
  30. package/styles/components/_progress-spinner.scss +108 -0
  31. package/styles/components/_radio.scss +79 -0
  32. package/styles/components/_select.scss +320 -0
  33. package/styles/components/_switch.scss +63 -0
  34. package/styles/components/_table.scss +599 -0
  35. package/styles/components/_tabs.scss +130 -0
  36. package/styles/components/_textarea.scss +4 -0
  37. package/styles/components/_tiered-menu.scss +96 -0
  38. package/styles/components/_toast.scss +155 -0
  39. package/styles/components/_tooltip.scss +63 -0
  40. package/styles/components.scss +30 -0
  41. package/styles/core.scss +46 -0
  42. package/styles/index.scss +4 -0
  43. package/styles/ma-ui.css +1 -0
  44. package/styles/tokens.scss +368 -0
  45. package/types/maliardic-ma-ui-chart.d.ts +44 -0
  46. package/types/maliardic-ma-ui-editor.d.ts +130 -0
  47. package/types/maliardic-ma-ui.d.ts +3553 -0
package/package.json CHANGED
@@ -1,6 +1,78 @@
1
1
  {
2
2
  "name": "@maliardic/ma-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Standalone Angular UI components, directives and CSS variable themes.",
5
+ "license": "MIT",
6
+ "sideEffects": [
7
+ "**/*.css",
8
+ "**/*.scss"
9
+ ],
10
+ "peerDependencies": {
11
+ "@angular/common": "^22.2.0",
12
+ "@angular/core": "^22.2.0",
13
+ "@angular/forms": "^22.2.0",
14
+ "@angular/router": "^22.2.0",
15
+ "@angular/cdk": "^22.1.1",
16
+ "rxjs": "^7.8.0",
17
+ "chart.js": "^4.5.1",
18
+ "@tiptap/core": "^3.30.0",
19
+ "@tiptap/extension-link": "^3.30.0",
20
+ "@tiptap/extension-placeholder": "^3.30.0",
21
+ "@tiptap/pm": "^3.30.0",
22
+ "@tiptap/starter-kit": "^3.30.0"
23
+ },
24
+ "peerDependenciesMeta": {
25
+ "chart.js": {
26
+ "optional": true
27
+ },
28
+ "@tiptap/core": {
29
+ "optional": true
30
+ },
31
+ "@tiptap/extension-link": {
32
+ "optional": true
33
+ },
34
+ "@tiptap/extension-placeholder": {
35
+ "optional": true
36
+ },
37
+ "@tiptap/pm": {
38
+ "optional": true
39
+ },
40
+ "@tiptap/starter-kit": {
41
+ "optional": true
42
+ }
43
+ },
44
+ "dependencies": {
45
+ "tslib": "^2.3.0"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "registry": "https://registry.npmjs.org/"
50
+ },
51
+ "exports": {
52
+ "./styles": {
53
+ "sass": "./styles/index.scss",
54
+ "style": "./styles/ma-ui.css",
55
+ "default": "./styles/ma-ui.css"
56
+ },
57
+ "./styles/ma-ui.css": "./styles/ma-ui.css",
58
+ "./styles/*": "./styles/*",
59
+ "./package.json": {
60
+ "default": "./package.json"
61
+ },
62
+ ".": {
63
+ "types": "./types/maliardic-ma-ui.d.ts",
64
+ "default": "./fesm2022/maliardic-ma-ui.mjs"
65
+ },
66
+ "./chart": {
67
+ "types": "./types/maliardic-ma-ui-chart.d.ts",
68
+ "default": "./fesm2022/maliardic-ma-ui-chart.mjs"
69
+ },
70
+ "./editor": {
71
+ "types": "./types/maliardic-ma-ui-editor.d.ts",
72
+ "default": "./fesm2022/maliardic-ma-ui-editor.mjs"
73
+ }
74
+ },
75
+ "module": "fesm2022/maliardic-ma-ui.mjs",
76
+ "typings": "types/maliardic-ma-ui.d.ts",
77
+ "type": "module"
6
78
  }
@@ -0,0 +1,172 @@
1
+ .m-accordion-host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .m-accordion {
7
+ --m-accordion-current-header-padding-y: var(
8
+ --m-accordion-md-header-padding-y
9
+ );
10
+ --m-accordion-current-header-padding-x: var(
11
+ --m-accordion-md-header-padding-x
12
+ );
13
+ --m-accordion-current-font-size: var(--m-accordion-md-font-size);
14
+
15
+ width: 100%;
16
+ color: var(--m-color-text);
17
+ font-size: var(--m-accordion-current-font-size);
18
+ }
19
+
20
+ .m-accordion--sm {
21
+ --m-accordion-current-header-padding-y: var(
22
+ --m-accordion-sm-header-padding-y
23
+ );
24
+ --m-accordion-current-header-padding-x: var(
25
+ --m-accordion-sm-header-padding-x
26
+ );
27
+ --m-accordion-current-font-size: var(--m-accordion-sm-font-size);
28
+ }
29
+
30
+ .m-accordion--md {
31
+ --m-accordion-current-header-padding-y: var(
32
+ --m-accordion-md-header-padding-y
33
+ );
34
+ --m-accordion-current-header-padding-x: var(
35
+ --m-accordion-md-header-padding-x
36
+ );
37
+ --m-accordion-current-font-size: var(--m-accordion-md-font-size);
38
+ }
39
+
40
+ .m-accordion--lg {
41
+ --m-accordion-current-header-padding-y: var(
42
+ --m-accordion-lg-header-padding-y
43
+ );
44
+ --m-accordion-current-header-padding-x: var(
45
+ --m-accordion-lg-header-padding-x
46
+ );
47
+ --m-accordion-current-font-size: var(--m-accordion-lg-font-size);
48
+ }
49
+
50
+ .m-accordion {
51
+ display: grid;
52
+ }
53
+
54
+ .m-accordion__item {
55
+ min-width: 0;
56
+ }
57
+
58
+ .m-accordion__item + .m-accordion__item {
59
+ border-block-start: 1px dashed var(--m-secondary-border-color);
60
+ }
61
+
62
+ .m-accordion__header {
63
+ width: 100%;
64
+ min-height: var(--m-accordion-header-min-height);
65
+ display: grid;
66
+ grid-template-columns: minmax(0, 1fr) auto;
67
+ align-items: center;
68
+ gap: var(--m-accordion-header-gap);
69
+ border: 0;
70
+ border-radius: var(--m-accordion-header-border-radius);
71
+ background: transparent;
72
+ color: var(--m-color-muted);
73
+ cursor: pointer;
74
+ font: inherit;
75
+ line-height: 1.25;
76
+ padding: var(--m-accordion-current-header-padding-y)
77
+ var(--m-accordion-current-header-padding-x);
78
+ text-align: start;
79
+ transition:
80
+ background-color var(--m-accordion-transition-duration) ease,
81
+ color var(--m-accordion-transition-duration) ease;
82
+ }
83
+
84
+ .m-accordion__header:hover:not(:disabled) {
85
+ background: var(--m-secondary-background-hover);
86
+ color: var(--m-color-text);
87
+ }
88
+
89
+ .m-accordion__header:focus-visible {
90
+ outline: 0;
91
+ box-shadow: 0 0 0 3px var(--m-focus-ring);
92
+ }
93
+
94
+ .m-accordion__item--expanded > .m-accordion__header,
95
+ .m-accordion__item--expanded > .m-accordion__header:hover:not(:disabled) {
96
+ color: var(--m-color-primary);
97
+ }
98
+
99
+ .m-accordion__header:disabled {
100
+ cursor: not-allowed;
101
+ opacity: var(--m-accordion-disabled-opacity);
102
+ }
103
+
104
+ .m-accordion__header-content {
105
+ min-width: 0;
106
+ display: inline-flex;
107
+ align-items: center;
108
+ gap: var(--m-accordion-header-gap);
109
+ }
110
+
111
+ .m-accordion__icon,
112
+ .m-accordion__chevron {
113
+ width: var(--m-accordion-icon-size);
114
+ color: currentcolor;
115
+ font-size: 0.95em;
116
+ line-height: 1;
117
+ text-align: center;
118
+ }
119
+
120
+ .m-accordion__title {
121
+ min-width: 0;
122
+ overflow: hidden;
123
+ text-overflow: ellipsis;
124
+ white-space: nowrap;
125
+ }
126
+
127
+ .m-accordion__chevron {
128
+ width: var(--m-accordion-chevron-size);
129
+ font-size: 0.78em;
130
+ transform: rotate(-90deg);
131
+ transition: transform var(--m-accordion-transition-duration) ease;
132
+ }
133
+
134
+ .m-accordion__item--expanded > .m-accordion__header .m-accordion__chevron {
135
+ transform: rotate(0deg);
136
+ }
137
+
138
+ .m-accordion-panel-host {
139
+ display: block;
140
+ }
141
+
142
+ .m-accordion-panel {
143
+ display: grid;
144
+ grid-template-rows: 0fr;
145
+ visibility: hidden;
146
+ color: var(--m-color-text);
147
+ line-height: 1.5;
148
+ transition:
149
+ grid-template-rows var(--m-accordion-transition-duration) ease,
150
+ visibility 0s var(--m-accordion-transition-duration);
151
+ }
152
+
153
+ .m-accordion-panel__inner {
154
+ min-height: 0;
155
+ overflow: hidden;
156
+ }
157
+
158
+ .m-accordion-panel__content {
159
+ padding: var(--m-accordion-panel-padding-y) var(--m-accordion-panel-padding-x);
160
+ }
161
+
162
+ .m-accordion__item--expanded > .m-accordion-panel {
163
+ grid-template-rows: 1fr;
164
+ visibility: visible;
165
+ transition-delay: 0s;
166
+ }
167
+
168
+ @media (prefers-reduced-motion: reduce) {
169
+ .m-accordion {
170
+ --m-accordion-transition-duration: 0s;
171
+ }
172
+ }
@@ -0,0 +1,160 @@
1
+ .m-badge-host {
2
+ position: relative !important;
3
+ overflow: visible !important;
4
+ }
5
+
6
+ .m-badge {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ box-sizing: border-box;
11
+ min-width: 1.5rem;
12
+ height: 1.5rem;
13
+ padding: 0 0.45rem;
14
+ border-radius: 9999px;
15
+ font-family: var(--m-font-family);
16
+ font-size: 0.75rem;
17
+ font-weight: 600;
18
+ line-height: 1;
19
+ text-align: center;
20
+ white-space: nowrap;
21
+ vertical-align: baseline;
22
+ transition: all 150ms ease;
23
+ user-select: none;
24
+ }
25
+
26
+ /* Sizes */
27
+ .m-badge--sm {
28
+ min-width: 1.25rem;
29
+ height: 1.25rem;
30
+ padding: 0 0.35rem;
31
+ font-size: 0.6875rem;
32
+ }
33
+
34
+ .m-badge--md {
35
+ min-width: 1.5rem;
36
+ height: 1.5rem;
37
+ padding: 0 0.45rem;
38
+ font-size: 0.75rem;
39
+ }
40
+
41
+ .m-badge--lg {
42
+ min-width: 1.875rem;
43
+ height: 1.875rem;
44
+ padding: 0 0.6rem;
45
+ font-size: 0.875rem;
46
+ }
47
+
48
+ .m-badge--xl {
49
+ min-width: 2.25rem;
50
+ height: 2.25rem;
51
+ padding: 0 0.75rem;
52
+ font-size: 1rem;
53
+ }
54
+
55
+ /* Dot Mode */
56
+ .m-badge--dot {
57
+ min-width: 0.5rem !important;
58
+ width: 0.5rem !important;
59
+ height: 0.5rem !important;
60
+ padding: 0 !important;
61
+ }
62
+
63
+ .m-badge--dot.m-badge--sm {
64
+ min-width: 0.375rem !important;
65
+ width: 0.375rem !important;
66
+ height: 0.375rem !important;
67
+ }
68
+
69
+ .m-badge--dot.m-badge--lg {
70
+ min-width: 0.625rem !important;
71
+ width: 0.625rem !important;
72
+ height: 0.625rem !important;
73
+ }
74
+
75
+ .m-badge--dot.m-badge--xl {
76
+ min-width: 0.75rem !important;
77
+ width: 0.75rem !important;
78
+ height: 0.75rem !important;
79
+ }
80
+
81
+ /* Disabled */
82
+ .m-badge--disabled {
83
+ display: none !important;
84
+ }
85
+
86
+ /* Overlay Position (Directive) */
87
+ .m-badge--overlay {
88
+ position: absolute !important;
89
+ z-index: 10;
90
+ margin: 0 !important;
91
+ }
92
+
93
+ .m-badge--top-right {
94
+ top: 0 !important;
95
+ right: 0 !important;
96
+ bottom: auto !important;
97
+ left: auto !important;
98
+ transform: translate(50%, -50%) !important;
99
+ }
100
+
101
+ .m-badge--top-left {
102
+ top: 0 !important;
103
+ left: 0 !important;
104
+ bottom: auto !important;
105
+ right: auto !important;
106
+ transform: translate(-50%, -50%) !important;
107
+ }
108
+
109
+ .m-badge--bottom-right {
110
+ bottom: 0 !important;
111
+ right: 0 !important;
112
+ top: auto !important;
113
+ left: auto !important;
114
+ transform: translate(50%, 50%) !important;
115
+ }
116
+
117
+ .m-badge--bottom-left {
118
+ bottom: 0 !important;
119
+ left: 0 !important;
120
+ top: auto !important;
121
+ right: auto !important;
122
+ transform: translate(-50%, 50%) !important;
123
+ }
124
+
125
+ /* Built-in Severities */
126
+ .m-badge--primary {
127
+ background-color: var(--m-color-primary);
128
+ color: var(--m-color-on-primary, #ffffff);
129
+ }
130
+
131
+ .m-badge--secondary {
132
+ background-color: var(--m-secondary-background);
133
+ color: var(--m-secondary-text-color);
134
+ border: 1px solid var(--m-secondary-border-color);
135
+ }
136
+
137
+ .m-badge--success {
138
+ background-color: var(--m-success-border-color, #10b981);
139
+ color: #ffffff;
140
+ }
141
+
142
+ .m-badge--info {
143
+ background-color: var(--m-info-border-color, #3b82f6);
144
+ color: #ffffff;
145
+ }
146
+
147
+ .m-badge--warning {
148
+ background-color: var(--m-warning-border-color, #f59e0b);
149
+ color: #ffffff;
150
+ }
151
+
152
+ .m-badge--danger {
153
+ background-color: var(--m-danger-border-color, #ef4444);
154
+ color: #ffffff;
155
+ }
156
+
157
+ .m-badge--contrast {
158
+ background-color: var(--m-color-text, #172033);
159
+ color: var(--m-secondary-background, #ffffff);
160
+ }
@@ -0,0 +1,123 @@
1
+ .m-button-host {
2
+ display: var(--m-button-host-display);
3
+ vertical-align: middle;
4
+ }
5
+
6
+ .m-button-host--block {
7
+ display: var(--m-button-host-block-display);
8
+ width: 100%;
9
+ }
10
+
11
+ .m-button {
12
+ --m-button-current-padding-y: var(--m-button-md-padding-y);
13
+ --m-button-current-padding-x: var(--m-button-md-padding-x);
14
+ --m-button-current-font-size: var(--m-button-md-font-size);
15
+
16
+ box-sizing: border-box;
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ gap: var(--m-button-gap);
21
+ border: var(--m-button-border-width) solid transparent;
22
+ border-radius: var(--m-button-border-radius);
23
+ padding-block: var(--m-button-current-padding-y);
24
+ padding-inline: var(--m-button-current-padding-x);
25
+ font-size: var(--m-button-current-font-size);
26
+ font-weight: var(--m-button-font-weight);
27
+ line-height: var(--m-button-line-height);
28
+ text-decoration: none;
29
+ white-space: nowrap;
30
+ cursor: pointer;
31
+ transition:
32
+ border-color var(--m-button-transition-duration) ease,
33
+ box-shadow var(--m-button-transition-duration) ease,
34
+ background-color var(--m-button-transition-duration) ease,
35
+ color var(--m-button-transition-duration) ease;
36
+ border-color: var(--m-primary-border-color);
37
+ background: var(--m-primary-background);
38
+ color: var(--m-primary-text-color);
39
+ }
40
+
41
+ .m-button:focus-visible {
42
+ box-shadow: 0 0 0 3px var(--m-focus-ring);
43
+ }
44
+
45
+ .m-button:disabled {
46
+ cursor: not-allowed;
47
+ opacity: var(--m-button-disabled-opacity);
48
+ }
49
+
50
+ .m-button > i {
51
+ line-height: 1;
52
+ }
53
+
54
+ .m-button--sm {
55
+ --m-button-current-padding-y: var(--m-button-sm-padding-y);
56
+ --m-button-current-padding-x: var(--m-button-sm-padding-x);
57
+ --m-button-current-font-size: var(--m-button-sm-font-size);
58
+ }
59
+
60
+ .m-button--md {
61
+ --m-button-current-padding-y: var(--m-button-md-padding-y);
62
+ --m-button-current-padding-x: var(--m-button-md-padding-x);
63
+ --m-button-current-font-size: var(--m-button-md-font-size);
64
+ }
65
+
66
+ .m-button--lg {
67
+ --m-button-current-padding-y: var(--m-button-lg-padding-y);
68
+ --m-button-current-padding-x: var(--m-button-lg-padding-x);
69
+ --m-button-current-font-size: var(--m-button-lg-font-size);
70
+ }
71
+
72
+ .m-button.m-button--primary,
73
+ .m-button-host.m-button--primary .m-button {
74
+ border-color: var(--m-primary-border-color);
75
+ background: var(--m-primary-background);
76
+ color: var(--m-primary-text-color);
77
+ }
78
+
79
+ .m-button:hover:not(:disabled),
80
+ .m-button.m-button--primary:hover:not(:disabled),
81
+ .m-button-host.m-button--primary .m-button:hover:not(:disabled) {
82
+ border-color: var(--m-primary-border-color-hover);
83
+ background: var(--m-primary-background-hover);
84
+ }
85
+
86
+ .m-button.m-button--secondary,
87
+ .m-button-host.m-button--secondary .m-button {
88
+ border-color: var(--m-secondary-border-color);
89
+ background: var(--m-secondary-background);
90
+ color: var(--m-secondary-text-color);
91
+ }
92
+
93
+ .m-button.m-button--secondary:hover:not(:disabled),
94
+ .m-button-host.m-button--secondary .m-button:hover:not(:disabled) {
95
+ border-color: var(--m-secondary-border-color-hover);
96
+ background: var(--m-secondary-background-hover);
97
+ }
98
+
99
+ .m-button.m-button--ghost,
100
+ .m-button-host.m-button--ghost .m-button {
101
+ border-color: var(--m-ghost-border-color);
102
+ background: var(--m-ghost-background);
103
+ color: var(--m-ghost-text-color);
104
+ }
105
+
106
+ .m-button.m-button--ghost:hover:not(:disabled),
107
+ .m-button-host.m-button--ghost .m-button:hover:not(:disabled) {
108
+ border-color: var(--m-ghost-border-color-hover);
109
+ background: var(--m-ghost-background-hover);
110
+ }
111
+
112
+ .m-button--block {
113
+ width: 100%;
114
+ }
115
+
116
+ .m-button--icon-only {
117
+ aspect-ratio: 1;
118
+ inline-size: calc(
119
+ 1lh + (var(--m-button-current-padding-y) * 2) +
120
+ (var(--m-button-border-width) * 2)
121
+ );
122
+ padding-inline: 0;
123
+ }
@@ -0,0 +1,12 @@
1
+ .m-chart {
2
+ display: block;
3
+ min-width: 0;
4
+ font-family: var(--m-font-family);
5
+ font-size: var(--m-font-size);
6
+ }
7
+ .m-chart__container {
8
+ position: relative;
9
+ width: 100%;
10
+ height: var(--m-chart-height);
11
+ min-width: 0;
12
+ }
@@ -0,0 +1,88 @@
1
+ .m-checkbox-host {
2
+ display: inline-flex;
3
+ vertical-align: middle;
4
+ align-items: center;
5
+ }
6
+
7
+ .m-checkbox {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ vertical-align: middle;
11
+ gap: var(--m-choice-gap);
12
+ color: var(--m-color-text);
13
+ cursor: pointer;
14
+ user-select: none;
15
+ }
16
+
17
+ .m-checkbox__input {
18
+ position: absolute;
19
+ width: 1px;
20
+ height: 1px;
21
+ opacity: 0;
22
+ pointer-events: none;
23
+ }
24
+
25
+ .m-checkbox__box {
26
+ display: inline-flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ width: var(--m-choice-size);
30
+ height: var(--m-choice-size);
31
+ flex: 0 0 auto;
32
+ box-sizing: border-box;
33
+ border: var(--m-choice-border-width) solid var(--m-secondary-border-color);
34
+ border-radius: 0.25rem;
35
+ background: var(--m-secondary-background);
36
+ color: var(--m-primary-text-color);
37
+ font-size: 0.72rem;
38
+ line-height: 1;
39
+ vertical-align: middle;
40
+ transition:
41
+ border-color var(--m-choice-transition-duration) ease,
42
+ background-color var(--m-choice-transition-duration) ease,
43
+ box-shadow var(--m-choice-transition-duration) ease;
44
+
45
+ i {
46
+ display: inline-flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ width: 100%;
50
+ height: 100%;
51
+ line-height: 1;
52
+ opacity: 0;
53
+ transform: scale(0.6);
54
+ transition:
55
+ opacity var(--m-choice-transition-duration) ease,
56
+ transform var(--m-choice-transition-duration) ease;
57
+
58
+ &.m-checkbox__icon--visible {
59
+ opacity: 1;
60
+ transform: scale(1);
61
+ }
62
+ }
63
+ }
64
+
65
+ .m-checkbox__label {
66
+ display: inline-block;
67
+ vertical-align: middle;
68
+ line-height: 1.2;
69
+ }
70
+
71
+ .m-checkbox__input:checked + .m-checkbox__box,
72
+ .m-checkbox-host--indeterminate .m-checkbox__box {
73
+ border-color: var(--m-primary-border-color);
74
+ background: var(--m-primary-background);
75
+ }
76
+
77
+ .m-checkbox__input:focus + .m-checkbox__box {
78
+ box-shadow: 0 0 0 3px var(--m-focus-ring);
79
+ }
80
+
81
+ .m-checkbox-host--disabled .m-checkbox {
82
+ cursor: not-allowed;
83
+ opacity: var(--m-input-disabled-opacity);
84
+ }
85
+
86
+ .m-checkbox-host.m-checkbox--invalid .m-checkbox__box {
87
+ border-color: var(--m-danger-border-color);
88
+ }
@@ -0,0 +1,49 @@
1
+ .m-dialog.m-command-menu {
2
+ width: min(100%, var(--m-command-menu-width));
3
+ .m-dialog__header {
4
+ position: absolute;
5
+ width: 1px;
6
+ height: 1px;
7
+ padding: 0;
8
+ min-height: 0;
9
+ overflow: hidden;
10
+ clip-path: inset(50%);
11
+ .m-dialog__actions {
12
+ display: none;
13
+ }
14
+ }
15
+ .m-dialog__content {
16
+ padding: var(--m-command-menu-padding);
17
+ overflow: hidden;
18
+ }
19
+ }
20
+ .m-command-menu__content {
21
+ position: relative;
22
+ .m-input-wrapper {
23
+ width: calc(100% - var(--m-command-menu-close-space));
24
+ }
25
+ .m-menu-search__panel {
26
+ max-height: min(var(--m-command-menu-results-height), calc(100dvh - 10rem));
27
+ }
28
+ }
29
+ .m-command-menu__close {
30
+ position: absolute;
31
+ top: 0;
32
+ right: 0;
33
+ width: var(--m-input-icon-button-size);
34
+ aspect-ratio: 1;
35
+ display: grid;
36
+ place-items: center;
37
+ padding: 0;
38
+ border: 0;
39
+ border-radius: var(--m-radius-control);
40
+ color: var(--m-color-muted);
41
+ background: transparent;
42
+ cursor: pointer;
43
+ &:hover {
44
+ background: var(--m-secondary-background-hover);
45
+ }
46
+ &:focus-visible {
47
+ outline: 2px solid var(--m-focus-ring);
48
+ }
49
+ }