@maliardic/ma-ui 0.1.2 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maliardic/ma-ui",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "Standalone Angular UI components, directives and CSS variable themes.",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -42,8 +42,8 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "tslib": "^2.3.0",
46
- "@fortawesome/fontawesome-free": "^6.7.2"
45
+ "@maliardic/ma-icon": "^3.0.0",
46
+ "tslib": "^2.3.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public",
@@ -47,8 +47,8 @@
47
47
  opacity: var(--m-button-disabled-opacity);
48
48
  }
49
49
 
50
- .m-button > i {
51
- line-height: 1;
50
+ .m-button > .m-icon {
51
+ flex-shrink: 0;
52
52
  }
53
53
 
54
54
  .m-button--sm {
@@ -42,7 +42,7 @@
42
42
  background-color var(--m-choice-transition-duration) ease,
43
43
  box-shadow var(--m-choice-transition-duration) ease;
44
44
 
45
- i {
45
+ .m-icon {
46
46
  display: inline-flex;
47
47
  align-items: center;
48
48
  justify-content: center;
@@ -102,7 +102,7 @@
102
102
  white-space: nowrap;
103
103
  }
104
104
 
105
- .m-file-upload__file-name i {
105
+ .m-file-upload__file-name .m-icon {
106
106
  color: var(--m-color-primary);
107
107
  }
108
108
 
@@ -0,0 +1,17 @@
1
+ .m-icon {
2
+ display: inline-flex;
3
+ flex: none;
4
+ align-items: center;
5
+ justify-content: center;
6
+ width: 1em;
7
+ height: 1em;
8
+ line-height: 0;
9
+ vertical-align: -0.125em;
10
+ }
11
+
12
+ .m-icon__svg {
13
+ display: block;
14
+ width: 1em;
15
+ height: 1em;
16
+ overflow: visible;
17
+ }
@@ -46,7 +46,7 @@
46
46
  border-radius: var(--m-menu-item-border-radius);
47
47
  overflow-wrap: anywhere;
48
48
  cursor: pointer;
49
- i {
49
+ .m-icon {
50
50
  flex-shrink: 0;
51
51
  width: var(--m-menu-icon-size);
52
52
  text-align: center;
@@ -424,7 +424,7 @@
424
424
  min-width: min-content;
425
425
  }
426
426
 
427
- .m-table__sort-button > i,
427
+ .m-table__sort-button > .m-icon,
428
428
  .m-table__reorder {
429
429
  flex-shrink: 0;
430
430
  }
@@ -571,8 +571,8 @@
571
571
  background-color var(--m-table-transition-duration) ease,
572
572
  border-color var(--m-table-transition-duration) ease,
573
573
  color var(--m-table-transition-duration) ease;
574
- i{
575
- font-size: 0.8em;
574
+ .m-icon {
575
+ font-size: 0.9em;
576
576
  }
577
577
  }
578
578
 
@@ -94,3 +94,17 @@
94
94
  .m-tiered-menu__arrow {
95
95
  font-size: 0.75em;
96
96
  }
97
+ .m-tiered-menu__dot {
98
+ display: inline-flex;
99
+ align-items: center;
100
+ justify-content: center;
101
+ height: 1em;
102
+
103
+ &::before {
104
+ content: "";
105
+ width: 0.4em;
106
+ height: 0.4em;
107
+ border-radius: 50%;
108
+ background: currentcolor;
109
+ }
110
+ }
@@ -1,3 +1,4 @@
1
+ @use "./components/icon";
1
2
  @use "./components/accordion";
2
3
  @use "./components/input";
3
4
  @use "./components/input-number";
package/styles/index.scss CHANGED
@@ -1,4 +1,3 @@
1
- @use "@fortawesome/fontawesome-free/css/all.min.css";
2
1
  @use "@angular/cdk/overlay-prebuilt.css";
3
2
  @use "./tokens";
4
3
  @use "./core";