@aotearoan/neon 22.3.0 → 22.4.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/dist/components/layout/swiper/NeonSwiper.cjs.js +1 -1
- package/dist/components/layout/swiper/NeonSwiper.cjs.js.map +1 -1
- package/dist/components/layout/swiper/NeonSwiper.es.js +27 -14
- package/dist/components/layout/swiper/NeonSwiper.es.js.map +1 -1
- package/dist/components/layout/swiper/NeonSwiper.vue.cjs.js +1 -1
- package/dist/components/layout/swiper/NeonSwiper.vue.cjs.js.map +1 -1
- package/dist/components/layout/swiper/NeonSwiper.vue.es.js +21 -16
- package/dist/components/layout/swiper/NeonSwiper.vue.es.js.map +1 -1
- package/dist/components/navigation/link/NeonLink.cjs.js +1 -1
- package/dist/components/navigation/link/NeonLink.cjs.js.map +1 -1
- package/dist/components/navigation/link/NeonLink.es.js +23 -22
- package/dist/components/navigation/link/NeonLink.es.js.map +1 -1
- package/dist/components/navigation/link/NeonLink.vue.cjs.js +1 -1
- package/dist/components/navigation/link/NeonLink.vue.cjs.js.map +1 -1
- package/dist/components/navigation/link/NeonLink.vue.es.js +14 -11
- package/dist/components/navigation/link/NeonLink.vue.es.js.map +1 -1
- package/dist/components/presentation/tabs/NeonTabs.cjs.js +1 -1
- package/dist/components/presentation/tabs/NeonTabs.cjs.js.map +1 -1
- package/dist/components/presentation/tabs/NeonTabs.es.js +35 -18
- package/dist/components/presentation/tabs/NeonTabs.es.js.map +1 -1
- package/dist/components/presentation/tabs/NeonTabs.vue.cjs.js +1 -1
- package/dist/components/presentation/tabs/NeonTabs.vue.cjs.js.map +1 -1
- package/dist/components/presentation/tabs/NeonTabs.vue.es.js +55 -42
- package/dist/components/presentation/tabs/NeonTabs.vue.es.js.map +1 -1
- package/dist/src/common/models/NeonTabModel.d.ts +2 -0
- package/dist/src/components/feedback/alert/NeonAlert.d.ts +1 -0
- package/dist/src/components/feedback/alert/container/NeonAlertContainer.d.ts +1 -0
- package/dist/src/components/feedback/dialog/NeonDialog.d.ts +6 -12
- package/dist/src/components/feedback/note/NeonNote.d.ts +9 -8
- package/dist/src/components/layout/card-list/NeonCardList.d.ts +4 -8
- package/dist/src/components/layout/modal/NeonModal.d.ts +1 -0
- package/dist/src/components/layout/swiper/NeonSwiper.d.ts +46 -0
- package/dist/src/components/navigation/action-menu/NeonActionMenu.d.ts +3 -6
- package/dist/src/components/navigation/dropdown-menu/NeonDropdownMenu.d.ts +7 -0
- package/dist/src/components/navigation/link/NeonLink.d.ts +1 -0
- package/dist/src/components/navigation/menu/NeonMenu.d.ts +8 -0
- package/dist/src/components/navigation/mobile-menu/NeonMobileMenu.d.ts +8 -0
- package/dist/src/components/navigation/tree-menu/NeonTreeMenu.d.ts +1 -0
- package/dist/src/components/presentation/badge/NeonBadge.d.ts +1 -0
- package/dist/src/components/presentation/dropdown/NeonDropdown.d.ts +8 -2
- package/dist/src/components/presentation/image-carousel/NeonImageCarousel.d.ts +2 -0
- package/dist/src/components/presentation/tabs/NeonTabs.d.ts +374 -0
- package/dist/src/components/user-input/button/NeonButton.d.ts +1 -0
- package/dist/src/components/user-input/date-picker/NeonDatePicker.d.ts +3 -0
- package/dist/src/components/user-input/file/NeonFile.d.ts +2 -4
- package/dist/src/components/user-input/filter-list/NeonFilterList.d.ts +1 -0
- package/dist/src/components/user-input/number/NeonNumber.d.ts +1 -0
- package/dist/src/components/user-input/search/NeonSearch.d.ts +30 -6
- package/dist/src/components/user-input/select/NeonSelect.d.ts +6 -0
- package/package.json +1 -1
- package/src/sass/components/_swiper.scss +91 -27
- package/src/sass/components/_tabs.scss +50 -30
- package/src/sass/includes/_dependencies.scss +1 -1
- package/src/sass/variables.scss +7 -3
|
@@ -6,18 +6,14 @@
|
|
|
6
6
|
flex-direction: row;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
width: 100%;
|
|
9
|
-
overflow-x: hidden;
|
|
10
9
|
|
|
11
10
|
.neon-swiper__container {
|
|
12
11
|
position: relative;
|
|
13
12
|
top: 0;
|
|
14
13
|
left: 0;
|
|
15
|
-
overflow-x: auto;
|
|
16
14
|
overscroll-behavior: contain;
|
|
17
15
|
width: 100%;
|
|
18
16
|
height: 100%;
|
|
19
|
-
|
|
20
|
-
@include scrollbars.hide-scrollbars();
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
.neon-swiper__fade-out {
|
|
@@ -29,40 +25,108 @@
|
|
|
29
25
|
z-index: var(--neon-z-index-above);
|
|
30
26
|
width: 100%;
|
|
31
27
|
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--horizontal {
|
|
31
|
+
overflow-x: hidden;
|
|
32
|
+
|
|
33
|
+
.neon-swiper__container {
|
|
34
|
+
overflow-x: auto;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
@include scrollbars.hide-scrollbars();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.neon-swiper__fade-out {
|
|
40
|
+
&:before {
|
|
41
|
+
content: '';
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
background: linear-gradient(to left, transparent, var(--neon-background-color-swiper));
|
|
45
|
+
height: 100%;
|
|
46
|
+
width: 0;
|
|
47
|
+
transition: width ease-in-out var(--neon-animation-speed-fast);
|
|
48
|
+
}
|
|
32
49
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
&:after {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 0;
|
|
54
|
+
background: linear-gradient(to right, transparent, var(--neon-background-color-swiper));
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 0;
|
|
57
|
+
transition: width ease-in-out var(--neon-animation-speed-fastest);
|
|
58
|
+
}
|
|
41
59
|
}
|
|
42
60
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
&.neon-swiper--overflowing.neon-swiper--fade {
|
|
62
|
+
&:not(.neon-swiper--start) {
|
|
63
|
+
.neon-swiper__fade-out:before {
|
|
64
|
+
width: var(--neon-space-24);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:not(.neon-swiper--end) {
|
|
69
|
+
.neon-swiper__fade-out:after {
|
|
70
|
+
width: var(--neon-space-24);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
51
73
|
}
|
|
52
74
|
}
|
|
53
75
|
|
|
54
|
-
&--
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
76
|
+
&--vertical {
|
|
77
|
+
overflow-y: hidden;
|
|
78
|
+
|
|
79
|
+
.neon-swiper__container {
|
|
80
|
+
overflow-y: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.neon-swiper__fade-out {
|
|
84
|
+
&:before {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 0;
|
|
88
|
+
background: linear-gradient(to top, transparent, var(--neon-background-color-swiper));
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 0;
|
|
91
|
+
transition: width ease-in-out var(--neon-animation-speed-fastest);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:after {
|
|
95
|
+
content: '';
|
|
96
|
+
position: absolute;
|
|
97
|
+
bottom: 0;
|
|
98
|
+
background: linear-gradient(to bottom, transparent, var(--neon-background-color-swiper));
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 0;
|
|
101
|
+
transition: width ease-in-out var(--neon-animation-speed-fastest);
|
|
58
102
|
}
|
|
59
103
|
}
|
|
60
104
|
|
|
61
|
-
|
|
62
|
-
.neon-
|
|
63
|
-
|
|
105
|
+
&.neon-swiper--overflowing.neon-swiper--fade {
|
|
106
|
+
&:not(.neon-swiper--start) {
|
|
107
|
+
.neon-swiper__fade-out:before {
|
|
108
|
+
height: var(--neon-space-24);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:not(.neon-swiper--end) {
|
|
113
|
+
.neon-swiper__fade-out:after {
|
|
114
|
+
height: var(--neon-space-24);
|
|
115
|
+
}
|
|
64
116
|
}
|
|
65
117
|
}
|
|
66
118
|
}
|
|
119
|
+
|
|
120
|
+
&.neon-swiper--hide-fade-start {
|
|
121
|
+
.neon-swiper__fade-out:before {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.neon-swiper--hide-fade-end {
|
|
127
|
+
.neon-swiper__fade-out:after {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
67
131
|
}
|
|
68
132
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
$tab-hover-color: var(--neon-color-tab-hover-#{$color});
|
|
12
12
|
|
|
13
13
|
.neon-tabs__menu-item {
|
|
14
|
-
|
|
14
|
+
&.neon-tabs__menu-item {
|
|
15
15
|
.neon-tabs__menu-item-container:before {
|
|
16
16
|
background-color: $tab-selected-color;
|
|
17
17
|
}
|
|
@@ -24,13 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.neon-tabs__menu-item-container:focus {
|
|
28
|
+
background-color: rgba(var(--neon-rgb-#{$color}), var(--neon-opacity-tab-focus));
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
&-container:focus:before {
|
|
28
32
|
background-color: $tab-hover-color;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
.neon-tab {
|
|
33
|
-
&:focus:before {
|
|
37
|
+
&:focus-visible:before {
|
|
34
38
|
background-color: $tab-hover-color;
|
|
35
39
|
}
|
|
36
40
|
}
|
|
@@ -38,13 +42,17 @@
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.neon-tabs__menu-items {
|
|
45
|
+
height: var(--neon-height-tabs);
|
|
41
46
|
display: flex;
|
|
42
47
|
flex-direction: row;
|
|
43
48
|
align-items: center;
|
|
44
|
-
font-weight: var(--neon-font-weight-medium);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
.neon-tabs__menu-item {
|
|
52
|
+
--neon-border-width-link: 0rem;
|
|
53
|
+
--neon-border-width-link-hover: 0rem;
|
|
54
|
+
|
|
55
|
+
text-decoration: none;
|
|
48
56
|
position: relative;
|
|
49
57
|
display: flex;
|
|
50
58
|
flex-direction: row;
|
|
@@ -56,6 +64,12 @@
|
|
|
56
64
|
transition: color ease-in-out var(--neon-animation-speed-fast);
|
|
57
65
|
@include svg.color-with-svg(var(--neon-color-low-contrast));
|
|
58
66
|
|
|
67
|
+
font-weight: var(--neon-font-weight-tabs);
|
|
68
|
+
|
|
69
|
+
&--selected {
|
|
70
|
+
font-weight: var(--neon-font-weight-tabs-selected);
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
&:focus {
|
|
60
74
|
outline: none;
|
|
61
75
|
}
|
|
@@ -84,6 +98,7 @@
|
|
|
84
98
|
position: absolute;
|
|
85
99
|
height: var(--neon-border-width-tabs);
|
|
86
100
|
bottom: 0;
|
|
101
|
+
left: 0;
|
|
87
102
|
border-radius: var(--neon-border-radius-tabs);
|
|
88
103
|
transition: all ease-in-out var(--neon-animation-speed-fast);
|
|
89
104
|
}
|
|
@@ -92,7 +107,6 @@
|
|
|
92
107
|
|
|
93
108
|
&.neon-tabs--s {
|
|
94
109
|
.neon-tabs__menu-items {
|
|
95
|
-
height: var(--neon-size-s);
|
|
96
110
|
font-size: var(--neon-font-size-m);
|
|
97
111
|
|
|
98
112
|
svg {
|
|
@@ -105,7 +119,6 @@
|
|
|
105
119
|
|
|
106
120
|
&.neon-tabs--m {
|
|
107
121
|
.neon-tabs__menu-items {
|
|
108
|
-
height: var(--neon-size-m);
|
|
109
122
|
font-size: var(--neon-font-size-l);
|
|
110
123
|
|
|
111
124
|
svg {
|
|
@@ -118,7 +131,6 @@
|
|
|
118
131
|
|
|
119
132
|
&.neon-tabs--l {
|
|
120
133
|
.neon-tabs__menu-items {
|
|
121
|
-
height: var(--neon-size-l);
|
|
122
134
|
font-size: var(--neon-font-size-l);
|
|
123
135
|
|
|
124
136
|
svg {
|
|
@@ -129,29 +141,48 @@
|
|
|
129
141
|
}
|
|
130
142
|
}
|
|
131
143
|
|
|
144
|
+
.neon-tabs__menu-items--full-width-mobile {
|
|
145
|
+
@include responsive.responsive(mobile-large) {
|
|
146
|
+
margin: 0 calc(-1 * var(--neon-gutter-mobile));
|
|
147
|
+
max-width: calc(100% + 2 * var(--neon-gutter-mobile));
|
|
148
|
+
width: calc(100% + 2 * var(--neon-gutter-mobile));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
132
152
|
.neon-tabs__menu-items--underlined {
|
|
133
|
-
|
|
153
|
+
.neon-swiper__container {
|
|
154
|
+
position: relative;
|
|
155
|
+
|
|
156
|
+
&:after {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
display: flex;
|
|
160
|
+
bottom: 0;
|
|
161
|
+
left: 0;
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: var(--neon-border-width-tabs);
|
|
164
|
+
background-color: var(--neon-border-color-tabs-underline);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.neon-tabs__menu-item-container:before {
|
|
168
|
+
background-color: var(--neon-border-color-tabs-underline);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
134
171
|
|
|
135
172
|
.neon-tabs__menu-item-container:before {
|
|
136
|
-
bottom:
|
|
173
|
+
bottom: 0;
|
|
174
|
+
z-index: var(--neon-z-index-above);
|
|
137
175
|
}
|
|
138
176
|
}
|
|
139
177
|
|
|
140
178
|
.neon-tabs__menu-item {
|
|
141
|
-
& + .neon-tabs__menu-item {
|
|
142
|
-
margin-left: calc(6 * var(--neon-base-space));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
179
|
&-container {
|
|
180
|
+
padding: 0 calc(8 * var(--neon-base-space));
|
|
146
181
|
flex-direction: row;
|
|
147
182
|
}
|
|
148
183
|
|
|
149
|
-
.neon-tabs__menu-
|
|
150
|
-
|
|
151
|
-
margin-left: var(--neon-base-space);
|
|
152
|
-
margin-right: var(--neon-base-space);
|
|
153
|
-
width: calc(100% - 2 * var(--neon-base-space));
|
|
154
|
-
}
|
|
184
|
+
.neon-tabs__menu-label {
|
|
185
|
+
white-space: nowrap;
|
|
155
186
|
}
|
|
156
187
|
}
|
|
157
188
|
}
|
|
@@ -178,7 +209,7 @@
|
|
|
178
209
|
transition: all var(--neon-animation-speed-fast) ease-in-out;
|
|
179
210
|
}
|
|
180
211
|
|
|
181
|
-
&:focus {
|
|
212
|
+
&:focus-visible {
|
|
182
213
|
outline: none;
|
|
183
214
|
|
|
184
215
|
&:before {
|
|
@@ -187,17 +218,6 @@
|
|
|
187
218
|
}
|
|
188
219
|
}
|
|
189
220
|
|
|
190
|
-
@include responsive.responsive(mobile-large) {
|
|
191
|
-
.neon-tabs__menu-items {
|
|
192
|
-
display: none;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.neon-tab {
|
|
196
|
-
display: flex;
|
|
197
|
-
padding-bottom: 0;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
221
|
.neon-card-body--full-width {
|
|
202
222
|
.neon-tabs__menu-items {
|
|
203
223
|
@include layout.padding-horizontal;
|
package/src/sass/variables.scss
CHANGED
|
@@ -245,8 +245,12 @@
|
|
|
245
245
|
--neon-letter-spacing-button: var(--neon-letter-spacing-m);
|
|
246
246
|
|
|
247
247
|
/* tabs */
|
|
248
|
-
--neon-
|
|
248
|
+
--neon-height-tabs: 48rem;
|
|
249
|
+
--neon-border-width-tabs: 2rem;
|
|
249
250
|
--neon-border-radius-tabs: 0;
|
|
251
|
+
--neon-font-weight-tabs: var(--neon-font-weight-normal);
|
|
252
|
+
--neon-font-weight-tabs-selected: var(--neon-font-weight-bold);
|
|
253
|
+
--neon-opacity-tab-focus: 0.125;
|
|
250
254
|
|
|
251
255
|
/* chips */
|
|
252
256
|
--neon-border-radius-chip: var(--neon-border-radius);
|
|
@@ -592,7 +596,7 @@
|
|
|
592
596
|
--neon-box-shadow-tooltip: calc(0.5 * var(--neon-base-space)) calc(0.5 * var(--neon-base-space)) calc(2 * var(--neon-base-space)) var(--neon-color-neutral-d5);
|
|
593
597
|
|
|
594
598
|
/* tabs */
|
|
595
|
-
--neon-border-color-tabs-underline:
|
|
599
|
+
--neon-border-color-tabs-underline: var(--neon-border-color);
|
|
596
600
|
--neon-color-tab-selected-low-contrast: var(--neon-color-low-contrast-l1);
|
|
597
601
|
--neon-color-tab-selected-neutral: var(--neon-color-neutral-l1);
|
|
598
602
|
--neon-color-tab-selected-high-contrast: var(--neon-color-high-contrast-l1);
|
|
@@ -902,7 +906,7 @@
|
|
|
902
906
|
--neon-box-shadow-tooltip: calc(0.5 * var(--neon-base-space)) calc(0.5 * var(--neon-base-space)) calc(2 * var(--neon-base-space)) rgba(var(--neon-rgb-neutral-d1), 0.5);
|
|
903
907
|
|
|
904
908
|
/* tabs */
|
|
905
|
-
--neon-border-color-tabs-underline:
|
|
909
|
+
--neon-border-color-tabs-underline: var(--neon-border-color);
|
|
906
910
|
--neon-color-tab-selected-low-contrast: var(--neon-color-low-contrast-d2);
|
|
907
911
|
--neon-color-tab-selected-neutral: var(--neon-color-neutral-d2);
|
|
908
912
|
--neon-color-tab-selected-high-contrast: var(--neon-color-high-contrast-d2);
|