@ni/nimble-components 1.0.0-beta.68 → 1.0.0-beta.71
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/esm/button/index.d.ts +3 -0
- package/dist/esm/button/index.js +3 -0
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/menu/index.d.ts +15 -0
- package/dist/esm/menu/index.js +22 -0
- package/dist/esm/menu/index.js.map +1 -0
- package/dist/esm/menu/styles.d.ts +1 -0
- package/dist/esm/menu/styles.js +24 -0
- package/dist/esm/menu/styles.js.map +1 -0
- package/dist/esm/menu/tests/menu-matrix.stories.d.ts +5 -0
- package/dist/esm/menu/tests/menu-matrix.stories.js +26 -0
- package/dist/esm/menu/tests/menu-matrix.stories.js.map +1 -0
- package/dist/esm/menu/tests/menu.stories.d.ts +13 -0
- package/dist/esm/menu/tests/menu.stories.js +43 -0
- package/dist/esm/menu/tests/menu.stories.js.map +1 -0
- package/dist/esm/menu-item/index.d.ts +15 -0
- package/dist/esm/menu-item/index.js +22 -0
- package/dist/esm/menu-item/index.js.map +1 -0
- package/dist/esm/menu-item/styles.d.ts +1 -0
- package/dist/esm/menu-item/styles.js +44 -0
- package/dist/esm/menu-item/styles.js.map +1 -0
- package/dist/esm/number-field/styles.js +1 -0
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/select/styles.js +1 -0
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/tabs/tests/tabs-matrix.stories.d.ts +1 -1
- package/dist/esm/tabs/tests/tabs-matrix.stories.js +1 -1
- package/dist/esm/tabs/tests/tabs-matrix.stories.js.map +1 -1
- package/dist/esm/tabs-toolbar/index.d.ts +3 -0
- package/dist/esm/tabs-toolbar/index.js +3 -0
- package/dist/esm/tabs-toolbar/index.js.map +1 -1
- package/dist/esm/text-field/styles.js +1 -0
- package/dist/esm/text-field/styles.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Button as FoundationButton } from '@microsoft/fast-foundation';
|
|
2
2
|
import { ButtonAppearance } from './types';
|
|
3
3
|
export type { Button };
|
|
4
|
+
/**
|
|
5
|
+
* A nimble-styled HTML button
|
|
6
|
+
*/
|
|
4
7
|
declare class Button extends FoundationButton {
|
|
5
8
|
/**
|
|
6
9
|
* The appearance the button should have.
|
package/dist/esm/button/index.js
CHANGED
|
@@ -3,6 +3,9 @@ import { attr, html } from '@microsoft/fast-element';
|
|
|
3
3
|
import { Button as FoundationButton, buttonTemplate as template, DesignSystem } from '@microsoft/fast-foundation';
|
|
4
4
|
import { styles } from './styles';
|
|
5
5
|
import { ButtonAppearance } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* A nimble-styled HTML button
|
|
8
|
+
*/
|
|
6
9
|
class Button extends FoundationButton {
|
|
7
10
|
connectedCallback() {
|
|
8
11
|
super.connectedCallback();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACH,MAAM,IAAI,gBAAgB,EAE1B,cAAc,IAAI,QAAQ,EAC1B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,MAAO,SAAQ,gBAAgB;IAW1B,iBAAiB;QACpB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAClB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC;SAC9C;IACL,CAAC;CACJ;AARG;IADC,IAAI;0CAC+B;AAUxC;;;;;;;;GAQG;AACH,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAgB;IAC/C,QAAQ,EAAE,QAAQ;IAClB,QAAQ;IACR,KAAK,EAAE,IAAI,CAAQ,oDAAoD;IACvE,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACH,MAAM,IAAI,gBAAgB,EAE1B,cAAc,IAAI,QAAQ,EAC1B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI3C;;GAEG;AACH,MAAM,MAAO,SAAQ,gBAAgB;IAW1B,iBAAiB;QACpB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAClB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC;SAC9C;IACL,CAAC;CACJ;AARG;IADC,IAAI;0CAC+B;AAUxC;;;;;;;;GAQG;AACH,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAgB;IAC/C,QAAQ,EAAE,QAAQ;IAClB,QAAQ;IACR,KAAK,EAAE,IAAI,CAAQ,oDAAoD;IACvE,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Menu as FoundationMenu } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* A nimble-styled menu
|
|
4
|
+
*/
|
|
5
|
+
export { FoundationMenu as Menu };
|
|
6
|
+
/**
|
|
7
|
+
* A function that returns a nimble-menu registration for configuring the component with a DesignSystem.
|
|
8
|
+
* Implements {@link @microsoft/fast-foundation#menuTemplate}
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
* @remarks
|
|
12
|
+
* Generates HTML Element: \<nimble-menu\>
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const nimbleMenu: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof FoundationMenu>;
|
|
@@ -0,0 +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
|
+
export const nimbleMenu = FoundationMenu.compose({
|
|
17
|
+
baseName: 'menu',
|
|
18
|
+
template,
|
|
19
|
+
styles
|
|
20
|
+
});
|
|
21
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,IAAI,IAAI,cAAc,EACtB,YAAY,IAAI,QAAQ,EAC3B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,OAAO,EAAE,cAAc,IAAI,IAAI,EAAE,CAAC;AAElC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC;IAC7C,QAAQ,EAAE,MAAM;IAChB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { applicationBackgroundColor, borderWidth, borderColor, popupBorderColor, popupBoxShadowColor } from '../theme-provider/design-tokens';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('grid')}
|
|
6
|
+
:host {
|
|
7
|
+
background: ${applicationBackgroundColor};
|
|
8
|
+
border: ${borderWidth} solid ${popupBorderColor};
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 4px;
|
|
11
|
+
min-width: 168px;
|
|
12
|
+
width: max-content;
|
|
13
|
+
box-shadow: 0px 2px 3px ${popupBoxShadowColor};
|
|
14
|
+
}
|
|
15
|
+
::slotted(hr) {
|
|
16
|
+
box-sizing: content-box;
|
|
17
|
+
height: 2px;
|
|
18
|
+
margin: 4px;
|
|
19
|
+
border: none;
|
|
20
|
+
background: ${borderColor};
|
|
21
|
+
opacity: 0.1;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/menu/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,0BAA0B,EAC1B,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACtB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;sBAEC,0BAA0B;kBAC9B,WAAW,UAAU,gBAAgB;;;;;kCAKrB,mBAAmB;;;;;;;sBAO/B,WAAW;;;CAGhC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
import { withXD } from 'storybook-addon-xd-designs';
|
|
3
|
+
import { createRenderer } from '../../tests/utilities/storybook-test-helpers';
|
|
4
|
+
import { createMatrix, themeWrapper } from '../../tests/utilities/theme-test-helpers';
|
|
5
|
+
import '../index';
|
|
6
|
+
const metadata = {
|
|
7
|
+
title: 'Tests/Menu',
|
|
8
|
+
decorators: [withXD],
|
|
9
|
+
parameters: {
|
|
10
|
+
design: {
|
|
11
|
+
artboardUrl: 'https://xd.adobe.com/view/8ce280ab-1559-4961-945c-182955c7780b-d9b1/screen/c098395e-30f8-4bd4-b8c5-394326b59919/specs'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export default metadata;
|
|
16
|
+
// prettier-ignore
|
|
17
|
+
const component = () => html `
|
|
18
|
+
<nimble-menu>
|
|
19
|
+
<nimble-menu-item>Item 1</nimble-menu-item>
|
|
20
|
+
<hr>
|
|
21
|
+
<nimble-menu-item disabled>Item 2</nimble-menu-item>
|
|
22
|
+
<nimble-menu-item>Item 3</nimble-menu-item>
|
|
23
|
+
</nimble-menu>
|
|
24
|
+
`;
|
|
25
|
+
export const menuThemeMatrix = createRenderer(themeWrapper(createMatrix(component)));
|
|
26
|
+
//# sourceMappingURL=menu-matrix.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-matrix.stories.js","sourceRoot":"","sources":["../../../../src/menu/tests/menu-matrix.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EACH,YAAY,EACZ,YAAY,EACf,MAAM,0CAA0C,CAAC;AAClD,OAAO,UAAU,CAAC;AAElB,MAAM,QAAQ,GAAS;IACnB,KAAK,EAAE,YAAY;IACnB,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EACP,uHAAuH;SAC9H;KACJ;CACJ,CAAC;AAEF,eAAe,QAAQ,CAAC;AAExB,kBAAkB;AAClB,MAAM,SAAS,GAAG,GAAiB,EAAE,CAAC,IAAI,CAAA;;;;;;;CAOzC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU,cAAc,CAChD,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CACxC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Story, Meta } from '@storybook/html';
|
|
2
|
+
import '../index';
|
|
3
|
+
import '../../menu-item/index';
|
|
4
|
+
interface MenuArgs {
|
|
5
|
+
options: ItemArgs[];
|
|
6
|
+
}
|
|
7
|
+
interface ItemArgs {
|
|
8
|
+
text: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const metadata: Meta<MenuArgs>;
|
|
12
|
+
export default metadata;
|
|
13
|
+
export declare const menu: Story<MenuArgs>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { withXD } from 'storybook-addon-xd-designs';
|
|
2
|
+
import '../index';
|
|
3
|
+
import '../../menu-item/index';
|
|
4
|
+
import { html, repeat } from '@microsoft/fast-element';
|
|
5
|
+
import { createRenderer } from '../../tests/utilities/storybook-test-helpers';
|
|
6
|
+
const metadata = {
|
|
7
|
+
title: 'Menu',
|
|
8
|
+
decorators: [withXD],
|
|
9
|
+
parameters: {
|
|
10
|
+
design: {
|
|
11
|
+
artboardUrl: 'https://xd.adobe.com/view/8ce280ab-1559-4961-945c-182955c7780b-d9b1/screen/c098395e-30f8-4bd4-b8c5-394326b59919/specs'
|
|
12
|
+
},
|
|
13
|
+
actions: {
|
|
14
|
+
handles: ['change']
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
// prettier-ignore
|
|
18
|
+
render: createRenderer(html `
|
|
19
|
+
<nimble-menu>
|
|
20
|
+
${repeat(x => x.options, html `
|
|
21
|
+
<nimble-menu-item ?disabled="${x => x.disabled}">${x => x.text}</nimble-menu-item>`)}
|
|
22
|
+
</nimble-menu>
|
|
23
|
+
`),
|
|
24
|
+
args: {
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
text: 'Item 1',
|
|
28
|
+
disabled: false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
text: 'Item 2',
|
|
32
|
+
disabled: false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
text: 'Item 3',
|
|
36
|
+
disabled: false
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export default metadata;
|
|
42
|
+
export const menu = {};
|
|
43
|
+
//# sourceMappingURL=menu.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.stories.js","sourceRoot":"","sources":["../../../../src/menu/tests/menu.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,UAAU,CAAC;AAClB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAW9E,MAAM,QAAQ,GAAmB;IAC7B,KAAK,EAAE,MAAM;IACb,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EACP,uHAAuH;SAC9H;QACD,OAAO,EAAE;YACL,OAAO,EAAE,CAAC,QAAQ,CAAC;SACtB;KACJ;IACD,kBAAkB;IAClB,MAAM,EAAE,cAAc,CAAC,IAAI,CAAA;;UAErB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,CAAU;2CACJ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,qBAAqB,CAAC;;CAE/F,CAAC;IACE,IAAI,EAAE;QACF,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAClB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAClB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAClB;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,QAAQ,CAAC;AAExB,MAAM,CAAC,MAAM,IAAI,GAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +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>>;
|
|
@@ -0,0 +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());
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAE/B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,QAAQ,EAAE,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,CAAkB;IACtE,QAAQ,EAAE,WAAW;IACrB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { focusVisible } from '../utilities/style/focus';
|
|
4
|
+
import { controlHeight, fontFamily, contentFontSize, fillColorSelected, fillColorHover, contentFontColor, borderColorHover, borderWidth, contentFontColorDisabled } from '../theme-provider/design-tokens';
|
|
5
|
+
export const styles = css `
|
|
6
|
+
${display('flex')}
|
|
7
|
+
:host {
|
|
8
|
+
contain: layout;
|
|
9
|
+
overflow: visible;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
height: ${controlHeight};
|
|
12
|
+
justify-items: start;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding-left: 8px;
|
|
15
|
+
padding-right: 8px;
|
|
16
|
+
margin: 0 0;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
color: ${contentFontColor};
|
|
19
|
+
fill: currentcolor;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
font-family: ${fontFamily};
|
|
22
|
+
font-size: ${contentFontSize};
|
|
23
|
+
}
|
|
24
|
+
:host(${focusVisible}) {
|
|
25
|
+
box-shadow: 0px 0px 0px ${borderWidth} ${borderColorHover} inset;
|
|
26
|
+
outline: ${borderWidth} solid ${borderColorHover};
|
|
27
|
+
outline-offset: -2px;
|
|
28
|
+
}
|
|
29
|
+
:host(:hover) {
|
|
30
|
+
background: ${fillColorHover};
|
|
31
|
+
}
|
|
32
|
+
:host(:active) {
|
|
33
|
+
background: ${fillColorSelected};
|
|
34
|
+
}
|
|
35
|
+
:host([disabled]) {
|
|
36
|
+
color: ${contentFontColorDisabled};
|
|
37
|
+
fill: currentcolor;
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
:host([disabled]:hover) {
|
|
41
|
+
background: transparent;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/menu-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EACH,aAAa,EACb,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EAC3B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;;kBAKH,aAAa;;;;;;;iBAOd,gBAAgB;;;uBAGV,UAAU;qBACZ,eAAe;;YAExB,YAAY;kCACU,WAAW,IAAI,gBAAgB;mBAC9C,WAAW,UAAU,gBAAgB;;;;sBAIlC,cAAc;;;sBAGd,iBAAiB;;;iBAGtB,wBAAwB;;;;;;;CAOxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;uBAGF,UAAU;qBACZ,eAAe;;;iBAGnB,cAAc;uBACR,WAAW,MAAM,aAAa;;;;iBAIpC,wBAAwB;;;;;;;;;;uBAUlB,UAAU;yBACR,WAAW,UAAU,WAAW;;oCAErB,UAAU,oBAAoB,UAAU;;;;;;;;;;mCAUzC,gBAAgB;;;;;;yBAM1B,WAAW,UAAU,wBAAwB
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;uBAGF,UAAU;qBACZ,eAAe;;;iBAGnB,cAAc;uBACR,WAAW,MAAM,aAAa;;;;iBAIpC,wBAAwB;;;;;;;;;;uBAUlB,UAAU;yBACR,WAAW,UAAU,WAAW;;oCAErB,UAAU,oBAAoB,UAAU;;;;;;;;;;mCAUzC,gBAAgB;;;;;;yBAM1B,WAAW,UAAU,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrD,cAAc;2BACJ,oBAAoB;;;;iBAI9B,cAAc;;;;;;;;;iBASd,wBAAwB;;;;;uBAKlB,eAAe;qBACjB,aAAa;uBACX,WAAW;0BACR,kBAAkB;;;;;;;;;;;;;;;;;;;;kBAoB1B,QAAQ;iBACT,QAAQ;gBACT,WAAW;;CAE1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,0BAA0B,EAC1B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;iBAEX,gBAAgB;uBACV,UAAU;kBACf,aAAa;;;;;;;;;;;;;;;;;;kCAkBG,mBAAmB;4BACzB,gBAAgB;4BAChB,0BAA0B;;;;;;;;;;;;;qBAajC,eAAe;;;;yBAIX,WAAW,UAAU,wBAAwB;;;;;;;;;;;yBAW7C,WAAW,UAAU,gBAAgB;oCAC1B,UAAU,oBAAoB,UAAU;;;;mCAIzC,gBAAgB;;oCAEf,UAAU,oBAAoB,UAAU;;;;;yBAKnD,WAAW,UAAU,wBAAwB
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,0BAA0B,EAC1B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;iBAEX,gBAAgB;uBACV,UAAU;kBACf,aAAa;;;;;;;;;;;;;;;;;;kCAkBG,mBAAmB;4BACzB,gBAAgB;4BAChB,0BAA0B;;;;;;;;;;;;;qBAajC,eAAe;;;;yBAIX,WAAW,UAAU,wBAAwB;;;;;;;;;;;yBAW7C,WAAW,UAAU,gBAAgB;oCAC1B,UAAU,oBAAoB,UAAU;;;;mCAIzC,gBAAgB;;oCAEf,UAAU,oBAAoB,UAAU;;;;;yBAKnD,WAAW,UAAU,wBAAwB;;iBAErD,wBAAwB;;;;;;;;;;;;;;kBAcvB,aAAa;;;;oBAIX,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBhB,QAAQ;kBACP,QAAQ;gBACV,gBAAgB;;;;gBAIhB,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAqBvC,CAAC"}
|
|
@@ -23,5 +23,5 @@ const component = ([disabledName, disabled]) => html `
|
|
|
23
23
|
<nimble-tab-panel>Tab content two</nimble-tab-panel>
|
|
24
24
|
</nimble-tabs>
|
|
25
25
|
`;
|
|
26
|
-
export const
|
|
26
|
+
export const tabsThemeMatrix = createRenderer(themeWrapper(createMatrix(component, [disabledStates])));
|
|
27
27
|
//# sourceMappingURL=tabs-matrix.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-matrix.stories.js","sourceRoot":"","sources":["../../../../src/tabs/tests/tabs-matrix.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAEH,cAAc,EACd,YAAY,EACZ,YAAY,EACf,MAAM,0CAA0C,CAAC;AAClD,OAAO,UAAU,CAAC;AAElB,MAAM,QAAQ,GAAS;IACnB,KAAK,EAAE,YAAY;IACnB,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EACP,uHAAuH;SAC9H;KACJ;CACJ,CAAC;AAEF,eAAe,QAAQ,CAAC;AAExB,MAAM,SAAS,GAAG,CAAC,CACf,YAAY,EACZ,QAAQ,CACI,EAAgB,EAAE,CAAC,IAAI,CAAA;;;iCAGN,GAAG,EAAE,CAAC,QAAQ;sBACzB,GAAG,EAAE,CAAC,YAAY;;;;;CAKvC,CAAC;AAEF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"tabs-matrix.stories.js","sourceRoot":"","sources":["../../../../src/tabs/tests/tabs-matrix.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAEH,cAAc,EACd,YAAY,EACZ,YAAY,EACf,MAAM,0CAA0C,CAAC;AAClD,OAAO,UAAU,CAAC;AAElB,MAAM,QAAQ,GAAS;IACnB,KAAK,EAAE,YAAY;IACnB,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EACP,uHAAuH;SAC9H;KACJ;CACJ,CAAC;AAEF,eAAe,QAAQ,CAAC;AAExB,MAAM,SAAS,GAAG,CAAC,CACf,YAAY,EACZ,QAAQ,CACI,EAAgB,EAAE,CAAC,IAAI,CAAA;;;iCAGN,GAAG,EAAE,CAAC,QAAQ;sBACzB,GAAG,EAAE,CAAC,YAAY;;;;;CAKvC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU,cAAc,CAChD,YAAY,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAC1D,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
2
|
import { styles } from './styles';
|
|
3
3
|
import { template } from './template';
|
|
4
|
+
/**
|
|
5
|
+
* A nimble-styled container for toolbar content next to tabs.
|
|
6
|
+
*/
|
|
4
7
|
export class TabsToolbar extends FoundationElement {
|
|
5
8
|
}
|
|
6
9
|
const nimbleTabsToolbar = TabsToolbar.compose({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,WAAY,SAAQ,iBAAiB;CAAG;AAErD,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC;IAC1C,QAAQ,EAAE,cAAc;IACxB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,iBAAiB;CAAG;AAErD,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC;IAC1C,QAAQ,EAAE,cAAc;IACxB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;uBAGF,UAAU;qBACZ,eAAe;;;iBAGnB,cAAc;uBACR,WAAW,MAAM,aAAa;;;;iBAIpC,wBAAwB;;;;;;;;;uBASlB,UAAU;yBACR,WAAW,UAAU,WAAW;;oCAErB,UAAU,oBAAoB,UAAU;;;;;;;;;;;mCAWzC,gBAAgB;;;;;yBAK1B,WAAW,UAAU,SAAS;;;;mCAIpB,SAAS;;;;;;yBAMnB,WAAW,UAAU,wBAAwB
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;uBAGF,UAAU;qBACZ,eAAe;;;iBAGnB,cAAc;uBACR,WAAW,MAAM,aAAa;;;;iBAIpC,wBAAwB;;;;;;;;;uBASlB,UAAU;yBACR,WAAW,UAAU,WAAW;;oCAErB,UAAU,oBAAoB,UAAU;;;;;;;;;;;mCAWzC,gBAAgB;;;;;yBAK1B,WAAW,UAAU,SAAS;;;;mCAIpB,SAAS;;;;;;yBAMnB,WAAW,UAAU,wBAAwB;;;;;;;;;;;;;;;;;;;;;;kBAsBpD,oBAAoB;;;;;;;;;;;iBAWrB,cAAc;2BACJ,oBAAoB;;;;iBAI9B,cAAc;;;;;;;;;;;;;iBAad,wBAAwB;;;;;uBAKlB,eAAe;qBACjB,aAAa;uBACX,WAAW;0BACR,kBAAkB;;;;;;;;;;;;;;;kBAe1B,QAAQ;iBACT,QAAQ;;;;gBAIT,SAAS;;;;gBAIT,wBAAwB;;CAEvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.71",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build-components && npm run build-storybook",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"circular-dependency-plugin": "^5.2.0",
|
|
71
71
|
"css-loader": "^6.2.0",
|
|
72
72
|
"dotenv-webpack": "^7.0.2",
|
|
73
|
+
"eslint-plugin-jsdoc": "^36.1.0",
|
|
73
74
|
"html-webpack-plugin": "^5.3.1",
|
|
74
75
|
"jasmine-core": "^3.7.0",
|
|
75
76
|
"karma": "^6.3.0",
|