@elliemae/ds-basic 3.9.1-rc.8 → 3.9.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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1,128 @@
1
- @import '../../ds-common/src/DropdownMenu/DSDropdownMenu';
1
+ // ********************************************
2
+ // container definition
3
+ $menu-container: #{$prefix}-menu;
4
+ $menu-select-container: #{$prefix}-menu-select;
5
+ $item-container: #{$prefix}-menu-item;
6
+ $backdrop-el: #{$prefix}-menu__backdrop;
7
+ $select-container: #{$prefix}-selectbox;
8
+
9
+ $border-radius: $theme-base-border-radius;
10
+
11
+ .#{$backdrop-el} {
12
+ width: 100%;
13
+ height: 100%;
14
+ opacity: 0.5;
15
+ position: fixed;
16
+ top: 0;
17
+ left: 0;
18
+ }
19
+ .#{$menu-container}-s {
20
+ &--is-root {
21
+ margin: space(xxs) 0
22
+ }
23
+ border: 1px solid color(neutral, 200);
24
+ margin: 0;
25
+ display: inline-block;
26
+ padding: space(xs) 0;
27
+ background: color(neutral, 000);
28
+ color: color(neutral, 800);
29
+ list-style: none;
30
+ width: 100%;
31
+ min-width: space(xxl) * 2;
32
+ @include border-radius($border-radius);
33
+ @include box-shadow(depth(200));
34
+
35
+ .#{$select-container}__control {
36
+ margin: 0 space(xs)
37
+ }
38
+
39
+ .#{$select-container}__option {
40
+ // todo: we need a way to avoid doing arithmetic here
41
+ padding: space(xs) * 1.25 space(l) space(xs) * 1.25 space(s);
42
+ }
43
+ }
44
+
45
+ .#{$menu-container}__separator1 {
46
+ margin: space(xs) 0;
47
+ small {
48
+ padding: 0 space(s);
49
+ color: color(neutral, 500)
50
+ }
51
+ &:after {
52
+ content: '';
53
+ display: block;
54
+ height: 1px;
55
+ width: 100%;
56
+ background-color: color(neutral, 100);
57
+ }
58
+ }
59
+
60
+ .#{$item-container}s {
61
+ display: flex;
62
+ padding: space(xs) space(xs) * 1.5 space(xs) space(xs) * 1.5;
63
+ transition: background-color duration(fast) easing(base);
64
+ align-items: center;
65
+ height: space(l);
66
+
67
+ &__content {
68
+ cursor: pointer;
69
+ display: flex;
70
+ flex: 1;
71
+ align-items: center;
72
+ }
73
+
74
+ &__selectable-container {
75
+ padding-right: space(xs);
76
+ min-width: space(m);
77
+ svg, svg:not([fill]) {
78
+ @include icon(s, color(brand-primary, 600));
79
+ }
80
+ }
81
+
82
+ &:hover, &--active {
83
+ background-color: color(brand-primary, 200);
84
+ }
85
+
86
+ .menu-item-icon {
87
+ @include icon(s, color(neutral, 600));
88
+ margin-right: space(xs) * 1.5;
89
+ }
90
+
91
+ .drill-down-icon {
92
+ @include icon(s, color(brand-primary, 600));
93
+ margin-left: space(xs);
94
+ margin-right: space(xxs) * -1;
95
+ }
96
+
97
+ &__label {
98
+ white-space: nowrap;
99
+ text-overflow: ellipsis;
100
+ user-select: none;
101
+ margin-right: space(s);
102
+ margin-top: space(xxs) * 0.5;
103
+ flex: 1;
104
+ }
105
+
106
+ &--selected {
107
+ background: color(brand-primary, 600);
108
+ color: color(neutral, 000);
109
+ svg, svg:not([fill]) {
110
+ fill: color(neutral, 000);
111
+ }
112
+ }
113
+
114
+ &:active {
115
+ background-color: color(brand-primary, 600);
116
+ color: color(neutral, 000);
117
+ svg, svg:not([fill]) {
118
+ fill: color(neutral, 000);
119
+ }
120
+ }
121
+
122
+ }
123
+
124
+ .#{$menu-select-container} {
125
+ &__icon {
126
+ padding: 0 space(xxs) 0 space(xxs);
127
+ }
128
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-basic",
3
- "version": "3.9.1-rc.8",
3
+ "version": "3.9.1",
4
4
  "license": "MIT",
5
5
  "description": "EllieMae UI Design System Library",
6
6
  "files": [
@@ -55,6 +55,5 @@
55
55
  "prebuild": "exit 0",
56
56
  "build": "pnpm run build:css",
57
57
  "dev": "exit 0"
58
- },
59
- "readme": "basic, atomic components\n"
58
+ }
60
59
  }
@@ -1,128 +0,0 @@
1
- // ********************************************
2
- // container definition
3
- $menu-container: #{$prefix}-menu;
4
- $menu-select-container: #{$prefix}-menu-select;
5
- $item-container: #{$prefix}-menu-item;
6
- $backdrop-el: #{$prefix}-menu__backdrop;
7
- $select-container: #{$prefix}-selectbox;
8
-
9
- $border-radius: $theme-base-border-radius;
10
-
11
- .#{$backdrop-el} {
12
- width: 100%;
13
- height: 100%;
14
- opacity: 0.5;
15
- position: fixed;
16
- top: 0;
17
- left: 0;
18
- }
19
- .#{$menu-container}-s {
20
- &--is-root {
21
- margin: space(xxs) 0
22
- }
23
- border: 1px solid color(neutral, 200);
24
- margin: 0;
25
- display: inline-block;
26
- padding: space(xs) 0;
27
- background: color(neutral, 000);
28
- color: color(neutral, 800);
29
- list-style: none;
30
- width: 100%;
31
- min-width: space(xxl) * 2;
32
- @include border-radius($border-radius);
33
- @include box-shadow(depth(200));
34
-
35
- .#{$select-container}__control {
36
- margin: 0 space(xs)
37
- }
38
-
39
- .#{$select-container}__option {
40
- // todo: we need a way to avoid doing arithmetic here
41
- padding: space(xs) * 1.25 space(l) space(xs) * 1.25 space(s);
42
- }
43
- }
44
-
45
- .#{$menu-container}__separator1 {
46
- margin: space(xs) 0;
47
- small {
48
- padding: 0 space(s);
49
- color: color(neutral, 500)
50
- }
51
- &:after {
52
- content: '';
53
- display: block;
54
- height: 1px;
55
- width: 100%;
56
- background-color: color(neutral, 100);
57
- }
58
- }
59
-
60
- .#{$item-container}s {
61
- display: flex;
62
- padding: space(xs) space(xs) * 1.5 space(xs) space(xs) * 1.5;
63
- transition: background-color duration(fast) easing(base);
64
- align-items: center;
65
- height: space(l);
66
-
67
- &__content {
68
- cursor: pointer;
69
- display: flex;
70
- flex: 1;
71
- align-items: center;
72
- }
73
-
74
- &__selectable-container {
75
- padding-right: space(xs);
76
- min-width: space(m);
77
- svg, svg:not([fill]) {
78
- @include icon(s, color(brand-primary, 600));
79
- }
80
- }
81
-
82
- &:hover, &--active {
83
- background-color: color(brand-primary, 200);
84
- }
85
-
86
- .menu-item-icon {
87
- @include icon(s, color(neutral, 600));
88
- margin-right: space(xs) * 1.5;
89
- }
90
-
91
- .drill-down-icon {
92
- @include icon(s, color(brand-primary, 600));
93
- margin-left: space(xs);
94
- margin-right: space(xxs) * -1;
95
- }
96
-
97
- &__label {
98
- white-space: nowrap;
99
- text-overflow: ellipsis;
100
- user-select: none;
101
- margin-right: space(s);
102
- margin-top: space(xxs) * 0.5;
103
- flex: 1;
104
- }
105
-
106
- &--selected {
107
- background: color(brand-primary, 600);
108
- color: color(neutral, 000);
109
- svg, svg:not([fill]) {
110
- fill: color(neutral, 000);
111
- }
112
- }
113
-
114
- &:active {
115
- background-color: color(brand-primary, 600);
116
- color: color(neutral, 000);
117
- svg, svg:not([fill]) {
118
- fill: color(neutral, 000);
119
- }
120
- }
121
-
122
- }
123
-
124
- .#{$menu-select-container} {
125
- &__icon {
126
- padding: 0 space(xxs) 0 space(xxs);
127
- }
128
- }