@aotearoan/neon 28.0.1 → 28.0.2
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/navigation/dropdown-menu/NeonDropdownMenu.cjs.js +1 -1
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.cjs.js.map +1 -1
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.es.js +29 -27
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.es.js.map +1 -1
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.vue.cjs.js +1 -1
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.vue.cjs.js.map +1 -1
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.vue.es.js +49 -48
- package/dist/components/navigation/dropdown-menu/NeonDropdownMenu.vue.es.js.map +1 -1
- package/dist/src/components/navigation/dropdown-menu/NeonDropdownMenu.d.ts +212 -144
- package/dist/src/components/navigation/menu/NeonMenu.d.ts +1 -0
- package/dist/src/components/navigation/mobile-menu/NeonMobileMenu.d.ts +1 -0
- package/dist/src/model/presentation/dropdown/NeonDropdownMenuItem.d.ts +4 -1
- package/package.json +1 -1
- package/src/sass/components/_button.scss +3 -0
- package/src/sass/components/_dropdown-menu.scss +10 -5
- package/src/sass/components/_dropdown.scss +1 -1
- package/src/sass/variables-global.scss +5 -0
|
@@ -4957,6 +4957,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4957
4957
|
clickItem: (item: import("../../../neon").NeonDropdownMenuItem) => void;
|
|
4958
4958
|
navigateBy: (offset: number, $event: KeyboardEvent) => void;
|
|
4959
4959
|
onPlacement: (placement: import("../../../neon").NeonDropdownPlacement) => void;
|
|
4960
|
+
NeonHorizontalPosition: typeof import("../../../neon").NeonHorizontalPosition;
|
|
4960
4961
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4961
4962
|
model: {
|
|
4962
4963
|
type: () => import("../../../neon").NeonDropdownMenuItem[];
|
|
@@ -4848,6 +4848,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4848
4848
|
clickItem: (item: import("../../../neon").NeonDropdownMenuItem) => void;
|
|
4849
4849
|
navigateBy: (offset: number, $event: KeyboardEvent) => void;
|
|
4850
4850
|
onPlacement: (placement: import("../../../neon").NeonDropdownPlacement) => void;
|
|
4851
|
+
NeonHorizontalPosition: typeof import("../../../neon").NeonHorizontalPosition;
|
|
4851
4852
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4852
4853
|
model: {
|
|
4853
4854
|
type: () => import("../../../neon").NeonDropdownMenuItem[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NeonHorizontalPosition } from '@/model/common/position/NeonHorizontalPosition';
|
|
1
2
|
/**
|
|
2
3
|
* Model object for a dropdown menu item. See <a href="/navigation/dropdown-menu">NeonDropdownMenu</a>.
|
|
3
4
|
*/
|
|
@@ -8,8 +9,10 @@ export interface NeonDropdownMenuItem {
|
|
|
8
9
|
label: string;
|
|
9
10
|
/** The URL if this menu item links to another page or an external URL. */
|
|
10
11
|
href?: string;
|
|
11
|
-
/** The name of an optional icon to be displayed
|
|
12
|
+
/** The name of an optional icon to be displayed with the label. */
|
|
12
13
|
icon?: string;
|
|
14
|
+
/** The position of an icon to be displayed with the label. The default is to the left. */
|
|
15
|
+
iconPosition?: NeonHorizontalPosition;
|
|
13
16
|
/** Boolean to indicate the display of a separator before this menu item in the dropdown list. */
|
|
14
17
|
separatorBefore?: boolean;
|
|
15
18
|
/** Boolean indicating if this menu item is disabled. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aotearoan/neon",
|
|
3
3
|
"description": "Neon is a lightweight design library of Vue 3 components with minimal dependencies.",
|
|
4
|
-
"version": "28.0.
|
|
4
|
+
"version": "28.0.2",
|
|
5
5
|
"main": "./dist/neon.cjs.js",
|
|
6
6
|
"module": "./dist/neon.es.js",
|
|
7
7
|
"types": "./dist/src/neon.d.ts",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
var(--neon-gradient-button-c2) 100%
|
|
14
14
|
);
|
|
15
15
|
transition: all ease-in-out var(--neon-animation-speed-fast);
|
|
16
|
+
transition: background ease-in-out 0ms;
|
|
16
17
|
|
|
17
18
|
&:active:not(:disabled),
|
|
18
19
|
&:hover:not(:disabled) {
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
|
|
31
32
|
@mixin solid-button($color) {
|
|
32
33
|
transition: all ease-in-out var(--neon-animation-speed-fast);
|
|
34
|
+
transition: background ease-in-out 0ms;
|
|
33
35
|
background: linear-gradient(
|
|
34
36
|
var(--neon-background-solid-button-light-#{$color}),
|
|
35
37
|
var(--neon-background-solid-button-dark-#{$color})
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
@mixin outline-button($color) {
|
|
55
57
|
transition: all ease-in-out var(--neon-animation-speed-fast);
|
|
56
58
|
border: var(--neon-border-width-outline-button) var(--neon-border-style) var(--neon-border-color-outline-button-inactive-#{$color});
|
|
59
|
+
|
|
57
60
|
&:not(.neon-button--disabled) {
|
|
58
61
|
color: var(--neon-background-outline-button-active-#{$color});
|
|
59
62
|
@include svg.svg-colors(var(--neon-background-outline-button-active-#{$color}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
&--#{$color} {
|
|
8
8
|
.neon-dropdown-menu__item {
|
|
9
9
|
&--highlighted:not(.neon-dropdown-menu__item--disabled):not(.neon-dropdown-menu__item--selected):not(.neon-dropdown-menu__item--group-title) {
|
|
10
|
-
background-color: rgba(var(--neon-rgb
|
|
10
|
+
background-color: rgba(var(--neon-rgb-low-contrast), 0.125);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -42,16 +42,13 @@
|
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
flex-wrap: nowrap;
|
|
44
44
|
align-items: center;
|
|
45
|
+
gap: var(--neon-space-12);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
&-label {
|
|
48
49
|
white-space: nowrap;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
.neon-icon {
|
|
52
|
-
margin-right: var(--neon-space-12);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
52
|
.neon-link {
|
|
56
53
|
text-decoration: none;
|
|
57
54
|
color: var(--neon-color-text-secondary);
|
|
@@ -71,6 +68,14 @@
|
|
|
71
68
|
height: var(--neon-font-size-s);
|
|
72
69
|
}
|
|
73
70
|
|
|
71
|
+
&--icon-right {
|
|
72
|
+
.neon-dropdown-menu__item-container,
|
|
73
|
+
.neon-link {
|
|
74
|
+
flex-direction: row-reverse;
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
&--grouped {
|
|
75
80
|
.neon-dropdown-menu__item-container,
|
|
76
81
|
.neon-link {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
z-index: var(--neon-z-index-below-top);
|
|
49
49
|
border-radius: var(--neon-border-radius);
|
|
50
50
|
overflow: hidden;
|
|
51
|
-
min-width:
|
|
51
|
+
min-width: var(--neon-min-width-dropdown);
|
|
52
52
|
background-color: var(--neon-background-color-dropdown-content);
|
|
53
53
|
box-shadow: var(--neon-box-shadow-dropdown);
|
|
54
54
|
|
|
@@ -799,6 +799,11 @@
|
|
|
799
799
|
* Max height of the dropdown container when open.
|
|
800
800
|
*/
|
|
801
801
|
--neon-max-height-dropdown: 280rem;
|
|
802
|
+
/**
|
|
803
|
+
* @component NeonDropdown,NeonSelect,NeonSearch,NeonDropdownMenu
|
|
804
|
+
* Min width of the dropdown container when open.
|
|
805
|
+
*/
|
|
806
|
+
--neon-min-width-dropdown: 200rem;
|
|
802
807
|
|
|
803
808
|
/* buttons */
|
|
804
809
|
/**
|