@ni/nimble-components 1.0.0-beta.101 → 1.0.0-beta.102
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/README.md +20 -20
- package/dist/esm/button/behaviors.d.ts +12 -12
- package/dist/esm/button/behaviors.js +13 -13
- package/dist/esm/button/index.d.ts +17 -17
- package/dist/esm/button/index.js +37 -37
- package/dist/esm/button/styles.d.ts +1 -1
- package/dist/esm/button/styles.js +178 -178
- package/dist/esm/button/types.d.ts +9 -9
- package/dist/esm/button/types.js +10 -10
- package/dist/esm/checkbox/index.d.ts +2 -2
- package/dist/esm/checkbox/index.js +11 -11
- package/dist/esm/checkbox/styles.d.ts +1 -1
- package/dist/esm/checkbox/styles.js +91 -91
- package/dist/esm/drawer/animations.d.ts +14 -14
- package/dist/esm/drawer/animations.js +51 -51
- package/dist/esm/drawer/index.d.ts +39 -39
- package/dist/esm/drawer/index.js +189 -189
- package/dist/esm/drawer/styles.d.ts +1 -1
- package/dist/esm/drawer/styles.js +114 -114
- package/dist/esm/drawer/types.d.ts +10 -10
- package/dist/esm/drawer/types.js +12 -12
- package/dist/esm/icon-base/index.d.ts +12 -12
- package/dist/esm/icon-base/index.js +21 -21
- package/dist/esm/icon-base/styles.d.ts +1 -1
- package/dist/esm/icon-base/styles.js +37 -37
- package/dist/esm/icon-base/template.d.ts +2 -2
- package/dist/esm/icon-base/template.js +6 -6
- package/dist/esm/icons/access-control.d.ts +7 -7
- package/dist/esm/icons/access-control.js +11 -11
- package/dist/esm/icons/admin.d.ts +7 -7
- package/dist/esm/icons/admin.js +11 -11
- package/dist/esm/icons/administration.d.ts +7 -7
- package/dist/esm/icons/administration.js +11 -11
- package/dist/esm/icons/all-icons.d.ts +13 -13
- package/dist/esm/icons/all-icons.js +13 -13
- package/dist/esm/icons/check.d.ts +7 -7
- package/dist/esm/icons/check.js +11 -11
- package/dist/esm/icons/custom-applications.d.ts +7 -7
- package/dist/esm/icons/custom-applications.js +11 -11
- package/dist/esm/icons/delete.d.ts +7 -7
- package/dist/esm/icons/delete.js +11 -11
- package/dist/esm/icons/login.d.ts +7 -7
- package/dist/esm/icons/login.js +11 -11
- package/dist/esm/icons/logout.d.ts +7 -7
- package/dist/esm/icons/logout.js +11 -11
- package/dist/esm/icons/managed-systems.d.ts +7 -7
- package/dist/esm/icons/managed-systems.js +11 -11
- package/dist/esm/icons/measurement-data-analysis.d.ts +7 -7
- package/dist/esm/icons/measurement-data-analysis.js +11 -11
- package/dist/esm/icons/settings.d.ts +7 -7
- package/dist/esm/icons/settings.js +11 -11
- package/dist/esm/icons/test-insights.d.ts +7 -7
- package/dist/esm/icons/test-insights.js +11 -11
- package/dist/esm/icons/utilities.d.ts +7 -7
- package/dist/esm/icons/utilities.js +11 -11
- package/dist/esm/listbox-option/index.d.ts +10 -10
- package/dist/esm/listbox-option/index.js +28 -28
- package/dist/esm/listbox-option/styles.d.ts +1 -1
- package/dist/esm/listbox-option/styles.js +59 -59
- package/dist/esm/menu/index.d.ts +5 -5
- package/dist/esm/menu/index.js +21 -21
- package/dist/esm/menu/styles.d.ts +1 -1
- package/dist/esm/menu/styles.js +39 -39
- package/dist/esm/menu-item/index.d.ts +15 -15
- package/dist/esm/menu-item/index.js +21 -21
- package/dist/esm/menu-item/styles.d.ts +1 -1
- package/dist/esm/menu-item/styles.js +63 -63
- package/dist/esm/number-field/index.d.ts +6 -6
- package/dist/esm/number-field/index.js +22 -22
- package/dist/esm/number-field/styles.d.ts +1 -1
- package/dist/esm/number-field/styles.js +117 -117
- package/dist/esm/select/index.d.ts +12 -12
- package/dist/esm/select/index.js +45 -45
- package/dist/esm/select/styles.d.ts +1 -1
- package/dist/esm/select/styles.js +140 -140
- package/dist/esm/tab/index.d.ts +2 -2
- package/dist/esm/tab/index.js +8 -8
- package/dist/esm/tab/styles.d.ts +1 -1
- package/dist/esm/tab/styles.js +52 -52
- package/dist/esm/tab-panel/index.d.ts +2 -2
- package/dist/esm/tab-panel/index.js +8 -8
- package/dist/esm/tab-panel/styles.d.ts +1 -1
- package/dist/esm/tab-panel/styles.js +14 -14
- package/dist/esm/tabs/index.d.ts +2 -2
- package/dist/esm/tabs/index.js +8 -8
- package/dist/esm/tabs/styles.d.ts +1 -1
- package/dist/esm/tabs/styles.js +42 -42
- package/dist/esm/tabs-toolbar/index.d.ts +6 -6
- package/dist/esm/tabs-toolbar/index.js +14 -14
- package/dist/esm/tabs-toolbar/styles.d.ts +1 -1
- package/dist/esm/tabs-toolbar/styles.js +22 -22
- package/dist/esm/tabs-toolbar/template.d.ts +1 -1
- package/dist/esm/tabs-toolbar/template.js +7 -7
- package/dist/esm/testing/dom-next-update.d.ts +4 -4
- package/dist/esm/testing/dom-next-update.js +5 -5
- package/dist/esm/text-field/index.d.ts +6 -6
- package/dist/esm/text-field/index.js +13 -13
- package/dist/esm/text-field/styles.d.ts +1 -1
- package/dist/esm/text-field/styles.js +141 -141
- package/dist/esm/theme-provider/design-tokens.d.ts +48 -48
- package/dist/esm/theme-provider/design-tokens.js +163 -163
- package/dist/esm/theme-provider/index.d.ts +10 -10
- package/dist/esm/theme-provider/index.js +42 -42
- package/dist/esm/theme-provider/template.d.ts +2 -2
- package/dist/esm/theme-provider/template.js +2 -2
- package/dist/esm/theme-provider/themes.d.ts +6 -6
- package/dist/esm/theme-provider/themes.js +7 -7
- package/dist/esm/tree-item/index.d.ts +28 -28
- package/dist/esm/tree-item/index.js +115 -115
- package/dist/esm/tree-item/styles.d.ts +3 -3
- package/dist/esm/tree-item/styles.js +194 -194
- package/dist/esm/tree-view/index.d.ts +16 -16
- package/dist/esm/tree-view/index.js +33 -33
- package/dist/esm/tree-view/styles.d.ts +1 -1
- package/dist/esm/tree-view/styles.js +16 -16
- package/dist/esm/tree-view/types.d.ts +6 -6
- package/dist/esm/tree-view/types.js +7 -7
- package/dist/esm/utilities/style/focus.d.ts +11 -11
- package/dist/esm/utilities/style/focus.js +13 -13
- package/package.json +95 -94
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon } from '../icon-base';
|
|
2
|
-
/**
|
|
3
|
-
* The icon component for the 'settings' icon
|
|
4
|
-
*/
|
|
5
|
-
export declare class SettingsIcon extends Icon {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
/**
|
|
3
|
+
* The icon component for the 'settings' icon
|
|
4
|
+
*/
|
|
5
|
+
export declare class SettingsIcon extends Icon {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { settings16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
-
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
-
/**
|
|
4
|
-
* The icon component for the 'settings' icon
|
|
5
|
-
*/
|
|
6
|
-
export class SettingsIcon extends Icon {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(settings16X16);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
registerIcon('settings-icon', SettingsIcon);
|
|
1
|
+
import { settings16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'settings' icon
|
|
5
|
+
*/
|
|
6
|
+
export class SettingsIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(settings16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('settings-icon', SettingsIcon);
|
|
12
12
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon } from '../icon-base';
|
|
2
|
-
/**
|
|
3
|
-
* The icon component for the 'test-insights' icon
|
|
4
|
-
*/
|
|
5
|
-
export declare class TestInsightsIcon extends Icon {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
/**
|
|
3
|
+
* The icon component for the 'test-insights' icon
|
|
4
|
+
*/
|
|
5
|
+
export declare class TestInsightsIcon extends Icon {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { testInsights16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
-
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
-
/**
|
|
4
|
-
* The icon component for the 'test-insights' icon
|
|
5
|
-
*/
|
|
6
|
-
export class TestInsightsIcon extends Icon {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(testInsights16X16);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
registerIcon('test-insights-icon', TestInsightsIcon);
|
|
1
|
+
import { testInsights16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'test-insights' icon
|
|
5
|
+
*/
|
|
6
|
+
export class TestInsightsIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(testInsights16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('test-insights-icon', TestInsightsIcon);
|
|
12
12
|
//# sourceMappingURL=test-insights.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon } from '../icon-base';
|
|
2
|
-
/**
|
|
3
|
-
* The icon component for the 'utilities' icon
|
|
4
|
-
*/
|
|
5
|
-
export declare class UtilitiesIcon extends Icon {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
/**
|
|
3
|
+
* The icon component for the 'utilities' icon
|
|
4
|
+
*/
|
|
5
|
+
export declare class UtilitiesIcon extends Icon {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { boxUtilities16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
-
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
-
/**
|
|
4
|
-
* The icon component for the 'utilities' icon
|
|
5
|
-
*/
|
|
6
|
-
export class UtilitiesIcon extends Icon {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(boxUtilities16X16);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
registerIcon('utilities-icon', UtilitiesIcon);
|
|
1
|
+
import { boxUtilities16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'utilities' icon
|
|
5
|
+
*/
|
|
6
|
+
export class UtilitiesIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(boxUtilities16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('utilities-icon', UtilitiesIcon);
|
|
12
12
|
//# sourceMappingURL=utilities.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ListboxOption as FoundationListboxOption } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { ListboxOption };
|
|
3
|
-
/**
|
|
4
|
-
* A nimble-styled HTML listbox option
|
|
5
|
-
*/
|
|
6
|
-
declare class ListboxOption extends FoundationListboxOption {
|
|
7
|
-
get value(): string;
|
|
8
|
-
set value(value: string);
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
}
|
|
1
|
+
import { ListboxOption as FoundationListboxOption } from '@microsoft/fast-foundation';
|
|
2
|
+
export type { ListboxOption };
|
|
3
|
+
/**
|
|
4
|
+
* A nimble-styled HTML listbox option
|
|
5
|
+
*/
|
|
6
|
+
declare class ListboxOption extends FoundationListboxOption {
|
|
7
|
+
get value(): string;
|
|
8
|
+
set value(value: string);
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { DesignSystem, ListboxOption as FoundationListboxOption, listboxOptionTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
-
import { styles } from './styles';
|
|
3
|
-
/**
|
|
4
|
-
* A nimble-styled HTML listbox option
|
|
5
|
-
*/
|
|
6
|
-
class ListboxOption extends FoundationListboxOption {
|
|
7
|
-
// Workaround for https://github.com/microsoft/fast/issues/5219
|
|
8
|
-
get value() {
|
|
9
|
-
return super.value;
|
|
10
|
-
}
|
|
11
|
-
set value(value) {
|
|
12
|
-
// Coerce value to string
|
|
13
|
-
super.value = `${value}`;
|
|
14
|
-
if (this.$fastController.isConnected) {
|
|
15
|
-
this.setAttribute('value', this.value);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
connectedCallback() {
|
|
19
|
-
super.connectedCallback();
|
|
20
|
-
this.setAttribute('value', this.value);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const nimbleListboxOption = ListboxOption.compose({
|
|
24
|
-
baseName: 'listbox-option',
|
|
25
|
-
template,
|
|
26
|
-
styles
|
|
27
|
-
});
|
|
28
|
-
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListboxOption());
|
|
1
|
+
import { DesignSystem, ListboxOption as FoundationListboxOption, listboxOptionTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
+
import { styles } from './styles';
|
|
3
|
+
/**
|
|
4
|
+
* A nimble-styled HTML listbox option
|
|
5
|
+
*/
|
|
6
|
+
class ListboxOption extends FoundationListboxOption {
|
|
7
|
+
// Workaround for https://github.com/microsoft/fast/issues/5219
|
|
8
|
+
get value() {
|
|
9
|
+
return super.value;
|
|
10
|
+
}
|
|
11
|
+
set value(value) {
|
|
12
|
+
// Coerce value to string
|
|
13
|
+
super.value = `${value}`;
|
|
14
|
+
if (this.$fastController.isConnected) {
|
|
15
|
+
this.setAttribute('value', this.value);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
super.connectedCallback();
|
|
20
|
+
this.setAttribute('value', this.value);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const nimbleListboxOption = ListboxOption.compose({
|
|
24
|
+
baseName: 'listbox-option',
|
|
25
|
+
template,
|
|
26
|
+
styles
|
|
27
|
+
});
|
|
28
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListboxOption());
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { focusVisible } from '../utilities/style/focus';
|
|
4
|
-
import { borderColorHover, contentFontSize, fontFamily, contentFontColorDisabled, fillColorSelected, fillColorSelectedHover, fillColorHover } from '../theme-provider/design-tokens';
|
|
5
|
-
export const styles = css `
|
|
6
|
-
${display('flex')}
|
|
7
|
-
|
|
8
|
-
:host {
|
|
9
|
-
font-family: ${fontFamily};
|
|
10
|
-
font-size: ${contentFontSize};
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
justify-content: left;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.content {
|
|
16
|
-
padding: 8px 4px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host(.selected) {
|
|
20
|
-
box-shadow: none;
|
|
21
|
-
outline: none;
|
|
22
|
-
background-color: ${fillColorSelected};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host(:hover.selected) {
|
|
26
|
-
background-color: ${fillColorSelectedHover};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host(:hover) {
|
|
30
|
-
background-color: ${fillColorHover};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host(:hover):host([disabled]) {
|
|
34
|
-
box-shadow: none;
|
|
35
|
-
background-color: transparent;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host(:${focusVisible}) {
|
|
39
|
-
box-shadow: 0px 0px 0px 1px ${borderColorHover} inset;
|
|
40
|
-
outline: 1px solid ${borderColorHover};
|
|
41
|
-
outline-offset: -4px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host(:active) {
|
|
45
|
-
box-shadow: none;
|
|
46
|
-
outline: none;
|
|
47
|
-
background-color: ${fillColorSelected};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:host([disabled]) {
|
|
51
|
-
color: ${contentFontColorDisabled};
|
|
52
|
-
cursor: default;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.content[disabled] {
|
|
56
|
-
box-shadow: none;
|
|
57
|
-
outline: none;
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { focusVisible } from '../utilities/style/focus';
|
|
4
|
+
import { borderColorHover, contentFontSize, fontFamily, contentFontColorDisabled, fillColorSelected, fillColorSelectedHover, fillColorHover } from '../theme-provider/design-tokens';
|
|
5
|
+
export const styles = css `
|
|
6
|
+
${display('flex')}
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
font-family: ${fontFamily};
|
|
10
|
+
font-size: ${contentFontSize};
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
justify-content: left;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
padding: 8px 4px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host(.selected) {
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
background-color: ${fillColorSelected};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host(:hover.selected) {
|
|
26
|
+
background-color: ${fillColorSelectedHover};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(:hover) {
|
|
30
|
+
background-color: ${fillColorHover};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(:hover):host([disabled]) {
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host(:${focusVisible}) {
|
|
39
|
+
box-shadow: 0px 0px 0px 1px ${borderColorHover} inset;
|
|
40
|
+
outline: 1px solid ${borderColorHover};
|
|
41
|
+
outline-offset: -4px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(:active) {
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
outline: none;
|
|
47
|
+
background-color: ${fillColorSelected};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([disabled]) {
|
|
51
|
+
color: ${contentFontColorDisabled};
|
|
52
|
+
cursor: default;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.content[disabled] {
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
60
|
//# sourceMappingURL=styles.js.map
|
package/dist/esm/menu/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Menu as FoundationMenu } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* A nimble-styled menu
|
|
4
|
-
*/
|
|
5
|
-
export { FoundationMenu as Menu };
|
|
1
|
+
import { Menu as FoundationMenu } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* A nimble-styled menu
|
|
4
|
+
*/
|
|
5
|
+
export { FoundationMenu as Menu };
|
package/dist/esm/menu/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { DesignSystem, Menu as FoundationMenu, menuTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
-
import { styles } from './styles';
|
|
3
|
-
/**
|
|
4
|
-
* A nimble-styled menu
|
|
5
|
-
*/
|
|
6
|
-
export { FoundationMenu as Menu };
|
|
7
|
-
/**
|
|
8
|
-
* A function that returns a nimble-menu registration for configuring the component with a DesignSystem.
|
|
9
|
-
* Implements {@link @microsoft/fast-foundation#menuTemplate}
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
* @remarks
|
|
13
|
-
* Generates HTML Element: \<nimble-menu\>
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
const nimbleMenu = FoundationMenu.compose({
|
|
17
|
-
baseName: 'menu',
|
|
18
|
-
template,
|
|
19
|
-
styles
|
|
20
|
-
});
|
|
21
|
-
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
1
|
+
import { DesignSystem, Menu as FoundationMenu, menuTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
+
import { styles } from './styles';
|
|
3
|
+
/**
|
|
4
|
+
* A nimble-styled menu
|
|
5
|
+
*/
|
|
6
|
+
export { FoundationMenu as Menu };
|
|
7
|
+
/**
|
|
8
|
+
* A function that returns a nimble-menu registration for configuring the component with a DesignSystem.
|
|
9
|
+
* Implements {@link @microsoft/fast-foundation#menuTemplate}
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* Generates HTML Element: \<nimble-menu\>
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
const nimbleMenu = FoundationMenu.compose({
|
|
17
|
+
baseName: 'menu',
|
|
18
|
+
template,
|
|
19
|
+
styles
|
|
20
|
+
});
|
|
21
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
package/dist/esm/menu/styles.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { applicationBackgroundColor, borderWidth, borderColor, groupLabelTextTransform, groupLabelFontColor, groupLabelFontFamily, groupLabelFontSize, groupLabelFontWeight, popupBorderColor, popupBoxShadowColor, labelHeight } from '../theme-provider/design-tokens';
|
|
4
|
-
export const styles = css `
|
|
5
|
-
${display('grid')}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
background: ${applicationBackgroundColor};
|
|
9
|
-
border: ${borderWidth} solid ${popupBorderColor};
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 4px;
|
|
12
|
-
min-width: 168px;
|
|
13
|
-
width: max-content;
|
|
14
|
-
box-shadow: 0px 2px 3px ${popupBoxShadowColor};
|
|
15
|
-
}
|
|
16
|
-
::slotted(*) {
|
|
17
|
-
padding-left: 8px;
|
|
18
|
-
padding-right: 8px;
|
|
19
|
-
}
|
|
20
|
-
::slotted(hr) {
|
|
21
|
-
box-sizing: content-box;
|
|
22
|
-
height: 2px;
|
|
23
|
-
margin: 4px;
|
|
24
|
-
border: none;
|
|
25
|
-
background: ${borderColor};
|
|
26
|
-
opacity: 0.1;
|
|
27
|
-
}
|
|
28
|
-
::slotted(header) {
|
|
29
|
-
display: flex;
|
|
30
|
-
font-family: ${groupLabelFontFamily};
|
|
31
|
-
font-size: ${groupLabelFontSize};
|
|
32
|
-
font-weight: ${groupLabelFontWeight};
|
|
33
|
-
line-height: ${labelHeight};
|
|
34
|
-
color: ${groupLabelFontColor};
|
|
35
|
-
text-transform: ${groupLabelTextTransform};
|
|
36
|
-
padding-top: 4px;
|
|
37
|
-
padding-bottom: 4px;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { applicationBackgroundColor, borderWidth, borderColor, groupLabelTextTransform, groupLabelFontColor, groupLabelFontFamily, groupLabelFontSize, groupLabelFontWeight, popupBorderColor, popupBoxShadowColor, labelHeight } from '../theme-provider/design-tokens';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('grid')}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
background: ${applicationBackgroundColor};
|
|
9
|
+
border: ${borderWidth} solid ${popupBorderColor};
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 4px;
|
|
12
|
+
min-width: 168px;
|
|
13
|
+
width: max-content;
|
|
14
|
+
box-shadow: 0px 2px 3px ${popupBoxShadowColor};
|
|
15
|
+
}
|
|
16
|
+
::slotted(*) {
|
|
17
|
+
padding-left: 8px;
|
|
18
|
+
padding-right: 8px;
|
|
19
|
+
}
|
|
20
|
+
::slotted(hr) {
|
|
21
|
+
box-sizing: content-box;
|
|
22
|
+
height: 2px;
|
|
23
|
+
margin: 4px;
|
|
24
|
+
border: none;
|
|
25
|
+
background: ${borderColor};
|
|
26
|
+
opacity: 0.1;
|
|
27
|
+
}
|
|
28
|
+
::slotted(header) {
|
|
29
|
+
display: flex;
|
|
30
|
+
font-family: ${groupLabelFontFamily};
|
|
31
|
+
font-size: ${groupLabelFontSize};
|
|
32
|
+
font-weight: ${groupLabelFontWeight};
|
|
33
|
+
line-height: ${labelHeight};
|
|
34
|
+
color: ${groupLabelFontColor};
|
|
35
|
+
text-transform: ${groupLabelTextTransform};
|
|
36
|
+
padding-top: 4px;
|
|
37
|
+
padding-bottom: 4px;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
40
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { MenuItem as FoundationMenuItem, MenuItemOptions } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* A nimble-styled menu-item
|
|
4
|
-
*/
|
|
5
|
-
export { FoundationMenuItem as MenuItem };
|
|
6
|
-
/**
|
|
7
|
-
* A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.
|
|
8
|
-
* Implements {@link @microsoft/fast-foundation#menuItemTemplate}
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
* @remarks
|
|
12
|
-
* Generates HTML Element: \<nimble-menu-item\>
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare const nimbleMenuItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<MenuItemOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<MenuItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
1
|
+
import { MenuItem as FoundationMenuItem, MenuItemOptions } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* A nimble-styled menu-item
|
|
4
|
+
*/
|
|
5
|
+
export { FoundationMenuItem as MenuItem };
|
|
6
|
+
/**
|
|
7
|
+
* A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.
|
|
8
|
+
* Implements {@link @microsoft/fast-foundation#menuItemTemplate}
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
* @remarks
|
|
12
|
+
* Generates HTML Element: \<nimble-menu-item\>
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const nimbleMenuItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<MenuItemOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<MenuItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { DesignSystem, MenuItem as FoundationMenuItem, menuItemTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
-
import { styles } from './styles';
|
|
3
|
-
/**
|
|
4
|
-
* A nimble-styled menu-item
|
|
5
|
-
*/
|
|
6
|
-
export { FoundationMenuItem as MenuItem };
|
|
7
|
-
/**
|
|
8
|
-
* A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.
|
|
9
|
-
* Implements {@link @microsoft/fast-foundation#menuItemTemplate}
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
* @remarks
|
|
13
|
-
* Generates HTML Element: \<nimble-menu-item\>
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
export const nimbleMenuItem = FoundationMenuItem.compose({
|
|
17
|
-
baseName: 'menu-item',
|
|
18
|
-
template,
|
|
19
|
-
styles
|
|
20
|
-
});
|
|
21
|
-
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
|
|
1
|
+
import { DesignSystem, MenuItem as FoundationMenuItem, menuItemTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
+
import { styles } from './styles';
|
|
3
|
+
/**
|
|
4
|
+
* A nimble-styled menu-item
|
|
5
|
+
*/
|
|
6
|
+
export { FoundationMenuItem as MenuItem };
|
|
7
|
+
/**
|
|
8
|
+
* A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.
|
|
9
|
+
* Implements {@link @microsoft/fast-foundation#menuItemTemplate}
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* Generates HTML Element: \<nimble-menu-item\>
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export const nimbleMenuItem = FoundationMenuItem.compose({
|
|
17
|
+
baseName: 'menu-item',
|
|
18
|
+
template,
|
|
19
|
+
styles
|
|
20
|
+
});
|
|
21
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|