@maliardic/ma-ui 0.0.0-stage → 0.1.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/FONT_AWESOME_LICENSE.txt +165 -0
- package/LICENSE +21 -0
- package/README.md +77 -2
- package/fesm2022/maliardic-ma-ui-chart.mjs +261 -0
- package/fesm2022/maliardic-ma-ui-chart.mjs.map +1 -0
- package/fesm2022/maliardic-ma-ui-editor.mjs +457 -0
- package/fesm2022/maliardic-ma-ui-editor.mjs.map +1 -0
- package/fesm2022/maliardic-ma-ui.mjs +13466 -0
- package/fesm2022/maliardic-ma-ui.mjs.map +1 -0
- package/package.json +76 -3
- package/styles/components/_accordion.scss +172 -0
- package/styles/components/_badge.scss +160 -0
- package/styles/components/_button.scss +123 -0
- package/styles/components/_chart.scss +12 -0
- package/styles/components/_checkbox.scss +88 -0
- package/styles/components/_command-menu.scss +49 -0
- package/styles/components/_date-picker.scss +247 -0
- package/styles/components/_dialog.scss +144 -0
- package/styles/components/_drawer.scss +165 -0
- package/styles/components/_editor.scss +260 -0
- package/styles/components/_file-list.scss +59 -0
- package/styles/components/_file-upload.scss +141 -0
- package/styles/components/_input-number.scss +18 -0
- package/styles/components/_input.scss +197 -0
- package/styles/components/_listbox.scss +88 -0
- package/styles/components/_menu-search.scss +72 -0
- package/styles/components/_menu.scss +177 -0
- package/styles/components/_multi-select.scss +216 -0
- package/styles/components/_popover.scss +63 -0
- package/styles/components/_progress-bar.scss +123 -0
- package/styles/components/_progress-spinner.scss +108 -0
- package/styles/components/_radio.scss +79 -0
- package/styles/components/_select.scss +320 -0
- package/styles/components/_switch.scss +63 -0
- package/styles/components/_table.scss +599 -0
- package/styles/components/_tabs.scss +130 -0
- package/styles/components/_textarea.scss +4 -0
- package/styles/components/_tiered-menu.scss +96 -0
- package/styles/components/_toast.scss +155 -0
- package/styles/components/_tooltip.scss +63 -0
- package/styles/components.scss +30 -0
- package/styles/core.scss +46 -0
- package/styles/index.scss +5 -0
- package/styles/ma-ui.css +5 -0
- package/styles/tokens.scss +368 -0
- package/types/maliardic-ma-ui-chart.d.ts +44 -0
- package/types/maliardic-ma-ui-editor.d.ts +130 -0
- package/types/maliardic-ma-ui.d.ts +3553 -0
- package/webfonts/fa-brands-400.ttf +0 -0
- package/webfonts/fa-brands-400.woff2 +0 -0
- package/webfonts/fa-regular-400.ttf +0 -0
- package/webfonts/fa-regular-400.woff2 +0 -0
- package/webfonts/fa-solid-900.ttf +0 -0
- package/webfonts/fa-solid-900.woff2 +0 -0
- package/webfonts/fa-v4compatibility.ttf +0 -0
- package/webfonts/fa-v4compatibility.woff2 +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
.m-tiered-menu-host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: min(var(--m-tiered-menu-width), calc(100vw - 1rem));
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
font-family: var(--m-font-family);
|
|
6
|
+
font-size: var(--m-font-size);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.m-tiered-menu-host--popup {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.m-tiered-menu {
|
|
14
|
+
--m-tiered-padding-y: var(--m-menu-md-item-padding-y);
|
|
15
|
+
--m-tiered-padding-x: var(--m-menu-md-item-padding-x);
|
|
16
|
+
display: grid;
|
|
17
|
+
gap: var(--m-menu-list-gap);
|
|
18
|
+
padding: var(--m-menu-list-gap);
|
|
19
|
+
max-height: calc(100dvh - 1rem);
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
background: var(--m-color-surface);
|
|
22
|
+
color: var(--m-color-text);
|
|
23
|
+
border: 1px solid var(--m-secondary-border-color);
|
|
24
|
+
border-radius: var(--m-menu-item-border-radius);
|
|
25
|
+
font-size: var(--m-menu-md-font-size);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.m-tiered-menu--sm {
|
|
29
|
+
--m-tiered-padding-y: var(--m-menu-sm-item-padding-y);
|
|
30
|
+
--m-tiered-padding-x: var(--m-menu-sm-item-padding-x);
|
|
31
|
+
font-size: var(--m-menu-sm-font-size);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m-tiered-menu-host--icon-only {
|
|
35
|
+
width: fit-content;
|
|
36
|
+
|
|
37
|
+
> .m-tiered-menu {
|
|
38
|
+
border: 0;
|
|
39
|
+
background: transparent;
|
|
40
|
+
|
|
41
|
+
> .m-tiered-menu__item {
|
|
42
|
+
justify-content: center;
|
|
43
|
+
aspect-ratio: 1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.m-tiered-menu--lg {
|
|
48
|
+
--m-tiered-padding-y: var(--m-menu-lg-item-padding-y);
|
|
49
|
+
--m-tiered-padding-x: var(--m-menu-lg-item-padding-x);
|
|
50
|
+
font-size: var(--m-menu-lg-font-size);
|
|
51
|
+
}
|
|
52
|
+
.m-tiered-menu__item {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: var(--m-menu-item-gap);
|
|
56
|
+
width: 100%;
|
|
57
|
+
padding: var(--m-tiered-padding-y) var(--m-tiered-padding-x);
|
|
58
|
+
border: 0;
|
|
59
|
+
border-radius: var(--m-menu-item-border-radius);
|
|
60
|
+
background: transparent;
|
|
61
|
+
color: inherit;
|
|
62
|
+
font: inherit;
|
|
63
|
+
line-height: 1.25;
|
|
64
|
+
text-align: start;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
.m-tiered-menu__item:hover:not(:disabled),
|
|
68
|
+
.m-tiered-menu__item[aria-expanded="true"] {
|
|
69
|
+
background: var(--m-secondary-background-hover);
|
|
70
|
+
}
|
|
71
|
+
.m-tiered-menu__item--active {
|
|
72
|
+
color: var(--m-color-primary);
|
|
73
|
+
background: var(--m-color-primary-soft);
|
|
74
|
+
}
|
|
75
|
+
.m-tiered-menu__item:focus-visible {
|
|
76
|
+
outline: 2px solid var(--m-focus-ring);
|
|
77
|
+
outline-offset: -2px;
|
|
78
|
+
}
|
|
79
|
+
.m-tiered-menu__item:disabled {
|
|
80
|
+
opacity: var(--m-menu-disabled-opacity);
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
.m-tiered-menu__label {
|
|
84
|
+
flex: 1;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
overflow-wrap: anywhere;
|
|
87
|
+
}
|
|
88
|
+
.m-tiered-menu__icon,
|
|
89
|
+
.m-tiered-menu__arrow {
|
|
90
|
+
width: var(--m-menu-icon-size);
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
.m-tiered-menu__arrow {
|
|
95
|
+
font-size: 0.75em;
|
|
96
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
.m-toast-host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.m-toast {
|
|
6
|
+
--m-toast-enter-y: -0.35rem;
|
|
7
|
+
--m-toast-exit-y: -0.35rem;
|
|
8
|
+
|
|
9
|
+
position: fixed;
|
|
10
|
+
z-index: var(--m-toast-z-index);
|
|
11
|
+
display: grid;
|
|
12
|
+
width: min(calc(100dvw - 2rem), var(--m-toast-width));
|
|
13
|
+
gap: var(--m-toast-gap);
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m-toast--top-right,
|
|
18
|
+
.m-toast--top-left,
|
|
19
|
+
.m-toast--top-center {
|
|
20
|
+
top: var(--m-toast-top-offset);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.m-toast--bottom-right,
|
|
24
|
+
.m-toast--bottom-left,
|
|
25
|
+
.m-toast--bottom-center {
|
|
26
|
+
--m-toast-enter-y: 0.35rem;
|
|
27
|
+
--m-toast-exit-y: 0.35rem;
|
|
28
|
+
|
|
29
|
+
bottom: var(--m-toast-bottom-offset);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.m-toast--top-right,
|
|
33
|
+
.m-toast--bottom-right {
|
|
34
|
+
right: var(--m-toast-side-offset);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.m-toast--top-left,
|
|
38
|
+
.m-toast--bottom-left {
|
|
39
|
+
left: var(--m-toast-side-offset);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.m-toast--top-center,
|
|
43
|
+
.m-toast--bottom-center {
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translateX(-50%);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.m-toast-message {
|
|
49
|
+
--m-toast-message-background: var(--m-info-background);
|
|
50
|
+
--m-toast-message-border-color: var(--m-info-border-color);
|
|
51
|
+
--m-toast-message-text-color: var(--m-info-text-color);
|
|
52
|
+
|
|
53
|
+
display: grid;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
56
|
+
align-items: start;
|
|
57
|
+
gap: var(--m-toast-content-gap);
|
|
58
|
+
border: 1px solid var(--m-toast-message-border-color);
|
|
59
|
+
border-radius: var(--m-toast-border-radius);
|
|
60
|
+
background: var(--m-toast-message-background);
|
|
61
|
+
box-shadow: 0 0.3rem 0.3rem rgb(15 23 42 / 10%);
|
|
62
|
+
color: var(--m-color-text);
|
|
63
|
+
font-size: var(--m-font-size);
|
|
64
|
+
line-height: 1.4;
|
|
65
|
+
opacity: 1;
|
|
66
|
+
padding: var(--m-toast-padding);
|
|
67
|
+
pointer-events: auto;
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
transition:
|
|
70
|
+
opacity var(--m-toast-transition-duration) ease,
|
|
71
|
+
transform var(--m-toast-transition-duration) ease;
|
|
72
|
+
|
|
73
|
+
@starting-style {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
transform: translateY(var(--m-toast-enter-y));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.m-toast-message--closing {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
transform: translateY(var(--m-toast-exit-y));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.m-toast-message--success {
|
|
86
|
+
--m-toast-message-background: var(--m-success-background);
|
|
87
|
+
--m-toast-message-border-color: var(--m-success-border-color);
|
|
88
|
+
--m-toast-message-text-color: var(--m-success-text-color);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.m-toast-message--warn {
|
|
92
|
+
--m-toast-message-background: var(--m-warning-background);
|
|
93
|
+
--m-toast-message-border-color: var(--m-warning-border-color);
|
|
94
|
+
--m-toast-message-text-color: var(--m-warning-text-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.m-toast-message--error {
|
|
98
|
+
--m-toast-message-background: var(--m-danger-background);
|
|
99
|
+
--m-toast-message-border-color: var(--m-danger-border-color);
|
|
100
|
+
--m-toast-message-text-color: var(--m-danger-text-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.m-toast-message__icon {
|
|
104
|
+
width: var(--m-toast-icon-size);
|
|
105
|
+
color: var(--m-toast-message-text-color);
|
|
106
|
+
font-size: var(--m-toast-icon-size);
|
|
107
|
+
line-height: 1.35;
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.m-toast-message__content {
|
|
112
|
+
display: grid;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
gap: 0.15rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.m-toast-message__title {
|
|
118
|
+
color: var(--m-color-text);
|
|
119
|
+
font-weight: 700;
|
|
120
|
+
line-height: 1.25;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.m-toast-message__text {
|
|
124
|
+
min-width: 0;
|
|
125
|
+
color: var(--m-color-muted);
|
|
126
|
+
overflow-wrap: anywhere;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.m-toast-message__close {
|
|
130
|
+
display: inline-grid;
|
|
131
|
+
width: var(--m-toast-close-size);
|
|
132
|
+
height: var(--m-toast-close-size);
|
|
133
|
+
place-items: center;
|
|
134
|
+
border: 0;
|
|
135
|
+
border-radius: var(--m-radius-control);
|
|
136
|
+
background: transparent;
|
|
137
|
+
color: var(--m-color-muted);
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
font: inherit;
|
|
140
|
+
line-height: 1;
|
|
141
|
+
margin: calc(var(--m-toast-close-size) * -0.2);
|
|
142
|
+
opacity: 0.7;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.m-toast-message__close:hover {
|
|
147
|
+
background: rgb(0 0 0 / 6%);
|
|
148
|
+
color: var(--m-color-text);
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.m-toast-message__close:focus-visible {
|
|
153
|
+
outline: 0;
|
|
154
|
+
box-shadow: 0 0 0 3px var(--m-focus-ring);
|
|
155
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.m-tooltip {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: var(--m-tooltip-z-index);
|
|
4
|
+
max-width: var(--m-tooltip-max-width);
|
|
5
|
+
border-radius: var(--m-tooltip-border-radius);
|
|
6
|
+
background: var(--m-tooltip-bg-color);
|
|
7
|
+
color: var(--m-color-surface);
|
|
8
|
+
font-size: var(--m-tooltip-font-size);
|
|
9
|
+
line-height: var(--m-tooltip-line-height);
|
|
10
|
+
opacity: 0;
|
|
11
|
+
padding: var(--m-tooltip-padding-y) var(--m-tooltip-padding-x);
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
transform: scale(0.98);
|
|
14
|
+
transition:
|
|
15
|
+
opacity var(--m-tooltip-transition-duration) ease,
|
|
16
|
+
transform var(--m-tooltip-transition-duration) ease;
|
|
17
|
+
word-break: break-word;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.m-tooltip--visible {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.m-tooltip::after {
|
|
26
|
+
position: absolute;
|
|
27
|
+
width: 0;
|
|
28
|
+
height: 0;
|
|
29
|
+
border: var(--m-tooltip-arrow-size) solid transparent;
|
|
30
|
+
content: "";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.m-tooltip--top::after,
|
|
34
|
+
.m-tooltip--bottom::after {
|
|
35
|
+
inset-inline-start: 50%;
|
|
36
|
+
transform: translateX(-50%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.m-tooltip--left::after,
|
|
40
|
+
.m-tooltip--right::after {
|
|
41
|
+
inset-block-start: 50%;
|
|
42
|
+
transform: translateY(-50%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.m-tooltip--top::after {
|
|
46
|
+
inset-block-start: 100%;
|
|
47
|
+
border-block-start-color: var(--m-tooltip-bg-color);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.m-tooltip--bottom::after {
|
|
51
|
+
inset-block-end: 100%;
|
|
52
|
+
border-block-end-color: var(--m-tooltip-bg-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.m-tooltip--left::after {
|
|
56
|
+
inset-inline-start: 100%;
|
|
57
|
+
border-inline-start-color: var(--m-tooltip-bg-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.m-tooltip--right::after {
|
|
61
|
+
inset-inline-end: 100%;
|
|
62
|
+
border-inline-end-color: var(--m-tooltip-bg-color);
|
|
63
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use "./components/accordion";
|
|
2
|
+
@use "./components/input";
|
|
3
|
+
@use "./components/input-number";
|
|
4
|
+
@use "./components/select";
|
|
5
|
+
@use "./components/listbox";
|
|
6
|
+
@use "./components/checkbox";
|
|
7
|
+
@use "./components/radio";
|
|
8
|
+
@use "./components/switch";
|
|
9
|
+
@use "./components/textarea";
|
|
10
|
+
@use "./components/date-picker";
|
|
11
|
+
@use "./components/dialog";
|
|
12
|
+
@use "./components/drawer";
|
|
13
|
+
@use "./components/menu";
|
|
14
|
+
@use "./components/chart";
|
|
15
|
+
@use "./components/menu-search";
|
|
16
|
+
@use "./components/command-menu";
|
|
17
|
+
@use "./components/tiered-menu";
|
|
18
|
+
@use "./components/multi-select";
|
|
19
|
+
@use "./components/file-upload";
|
|
20
|
+
@use "./components/file-list";
|
|
21
|
+
@use "./components/table";
|
|
22
|
+
@use "./components/tabs";
|
|
23
|
+
@use "./components/toast";
|
|
24
|
+
@use "./components/button";
|
|
25
|
+
@use "./components/tooltip";
|
|
26
|
+
@use "./components/editor";
|
|
27
|
+
@use "./components/badge";
|
|
28
|
+
@use "./components/popover";
|
|
29
|
+
@use "./components/progress-bar";
|
|
30
|
+
@use "./components/progress-spinner";
|
package/styles/core.scss
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.m-theme,
|
|
2
|
+
.m-light,
|
|
3
|
+
.m-dark {
|
|
4
|
+
color: var(--m-color-text);
|
|
5
|
+
font-family: var(--m-font-family);
|
|
6
|
+
font-size: var(--m-font-size);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.m-control {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
color: var(--m-color-text);
|
|
13
|
+
font: inherit;
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m-icon {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
width: var(--m-icon-size, 1em);
|
|
20
|
+
height: var(--m-icon-size, 1em);
|
|
21
|
+
flex: 0 0 auto;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
color: currentColor;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.m-helper-text {
|
|
29
|
+
margin: 0;
|
|
30
|
+
color: var(--m-helper-text-color, var(--m-color-muted));
|
|
31
|
+
font-size: var(--m-helper-text-font-size, 0.85em);
|
|
32
|
+
line-height: var(--m-helper-text-line-height, 1.35);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.m-visually-hidden {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 1px;
|
|
38
|
+
height: 1px;
|
|
39
|
+
padding: 0;
|
|
40
|
+
border: 0;
|
|
41
|
+
margin: -1px;
|
|
42
|
+
clip: rect(0, 0, 0, 0);
|
|
43
|
+
clip-path: inset(50%);
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|