@ni/nimble-components 18.8.0 → 18.8.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.
@@ -1,5 +1,12 @@
1
1
  import { DesignSystem, Menu as FoundationMenu, menuTemplate as template } from '@microsoft/fast-foundation';
2
2
  import { styles } from './styles';
3
+ // FAST menu item uses DesignSystem.tagFor(anchoredRegion) to position nested menus
4
+ // https://github.com/microsoft/fast/blob/3ad50c8eec98b3156a4559586ca76e4abebefad8/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts#L83
5
+ // This needs to be able to find the Nimble anchored region even if the application doesn't import it explicitly or via all-components
6
+ // This may become unnecessary with fast-foundation vNext which no longer uses anchored region
7
+ // https://github.com/microsoft/fast/pull/6457
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
+ import '../anchored-region';
3
10
  /**
4
11
  * A nimble-styled menu
5
12
  */
@@ -1 +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;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,cAAc;CAAG;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,cAAc;IACzB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC"}
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;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,mFAAmF;AACnF,kKAAkK;AAClK,sIAAsI;AACtI,8FAA8F;AAC9F,8CAA8C;AAC9C,6DAA6D;AAC7D,OAA+B,oBAAoB,CAAC;AAQpD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,cAAc;CAAG;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,cAAc;IACzB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC"}
@@ -16,7 +16,6 @@ export const styles = css `
16
16
 
17
17
  .sort-indicator {
18
18
  padding: 0px calc(${standardPadding} / 2);
19
- width: ${standardPadding};
20
19
  }
21
20
  `;
22
21
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/header/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,aAAa,EACb,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACvB,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;kBAGH,aAAa;;4BAEH,eAAe;gBAC3B,eAAe;iBACd,oBAAoB;UAC3B,SAAS,CAAC,iBAAiB,KAAK,oBAAoB;;;;;4BAKlC,eAAe;iBAC1B,eAAe;;CAE/B,CAAC"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/header/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,aAAa,EACb,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACvB,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;kBAGH,aAAa;;4BAEH,eAAe;gBAC3B,eAAe;iBACd,oBAAoB;UAC3B,SAAS,CAAC,iBAAiB,KAAK,oBAAoB;;;;;4BAKlC,eAAe;;CAE1C,CAAC"}
@@ -7,14 +7,12 @@ export const template = html `
7
7
  <template role="columnheader" aria-sort="${x => x.ariaSort}">
8
8
  <slot></slot>
9
9
 
10
- <span class="sort-indicator" aria-hidden="true">
11
- ${when(x => x.sortDirection === TableColumnSortDirection.ascending, html `
12
- <${iconArrowUpTag}></${iconArrowUpTag}>
13
- `)}
14
- ${when(x => x.sortDirection === TableColumnSortDirection.descending, html `
15
- <${iconArrowDownTag}></${iconArrowDownTag}>
16
- `)}
17
- </span>
10
+ ${when(x => x.sortDirection === TableColumnSortDirection.ascending, html `
11
+ <${iconArrowUpTag} class="sort-indicator" aria-hidden="true"></${iconArrowUpTag}>
12
+ `)}
13
+ ${when(x => x.sortDirection === TableColumnSortDirection.descending, html `
14
+ <${iconArrowDownTag} class="sort-indicator" aria-hidden="true"></${iconArrowDownTag}>
15
+ `)}
18
16
  </template>
19
17
  `;
20
18
  //# sourceMappingURL=template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table/components/header/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAa;+CACM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;;;;cAIhD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,wBAAwB,CAAC,SAAS,EAAE,IAAI,CAAA;mBACjE,cAAc,MAAM,cAAc;aACxC,CAAC;cACA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,wBAAwB,CAAC,UAAU,EAAE,IAAI,CAAA;mBAClE,gBAAgB,MAAM,gBAAgB;aAC5C,CAAC;;;CAGb,CAAC"}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table/components/header/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAa;+CACM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;;;UAGpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,wBAAwB,CAAC,SAAS,EAAE,IAAI,CAAA;eACjE,cAAc,gDAAgD,cAAc;SAClF,CAAC;UACA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,wBAAwB,CAAC,UAAU,EAAE,IAAI,CAAA;eAClE,gBAAgB,gDAAgD,gBAAgB;SACtF,CAAC;;CAET,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "18.8.0",
3
+ "version": "18.8.2",
4
4
  "description": "Styled web components for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
@@ -12,8 +12,8 @@
12
12
  "prettier-fix": "prettier-eslint \"**/*.*\" --write --prettier-ignore",
13
13
  "pack": "npm pack",
14
14
  "invoke-publish": "npm publish",
15
- "storybook": "start-storybook -p 6006",
16
- "build-storybook": "build-storybook -o dist/storybook --webpack-stats-json",
15
+ "storybook": "storybook dev -p 6006",
16
+ "build-storybook": "storybook build -o dist/storybook --webpack-stats-json",
17
17
  "storybook-open-webkit": "playwright wk http://localhost:6006",
18
18
  "build-components": "tsc -p ./tsconfig.json",
19
19
  "build-components:watch": "tsc -p ./tsconfig.json -w",
@@ -70,26 +70,24 @@
70
70
  "devDependencies": {
71
71
  "@babel/cli": "^7.13.16",
72
72
  "@babel/core": "^7.20.12",
73
- "@babel/preset-env": "^7.20.2",
74
- "@mdx-js/react": "^2.2.1",
75
73
  "@ni/eslint-config-javascript": "^4.2.0",
76
74
  "@ni/eslint-config-typescript": "^4.2.0",
77
75
  "@rollup/plugin-commonjs": "^24.0.1",
78
76
  "@rollup/plugin-node-resolve": "^15.0.1",
79
77
  "@rollup/plugin-replace": "^5.0.1",
80
78
  "@rollup/plugin-terser": "^0.4.0",
81
- "@storybook/addon-a11y": "^6.5.10",
82
- "@storybook/addon-actions": "^6.5.10",
83
- "@storybook/addon-docs": "^6.5.10",
84
- "@storybook/addon-essentials": "^6.5.10",
85
- "@storybook/addon-interactions": "^6.5.10",
86
- "@storybook/addon-links": "^6.5.10",
87
- "@storybook/addons": "^6.5.10",
88
- "@storybook/builder-webpack5": "^6.5.10",
89
- "@storybook/html": "^6.5.10",
90
- "@storybook/manager-webpack5": "^6.5.10",
91
- "@storybook/mdx2-csf": "^0.0.4",
92
- "@storybook/theming": "^6.5.10",
79
+ "@storybook/addon-a11y": "^7.0.0-rc.8",
80
+ "@storybook/addon-actions": "^7.0.0-rc.8",
81
+ "@storybook/addon-docs": "^7.0.0-rc.8",
82
+ "@storybook/addon-essentials": "^7.0.0-rc.8",
83
+ "@storybook/addon-interactions": "^7.0.0-rc.8",
84
+ "@storybook/addon-links": "^7.0.0-rc.8",
85
+ "@storybook/addons": "^7.0.0-rc.8",
86
+ "@storybook/cli": "^7.0.0-rc.8",
87
+ "@storybook/csf": "0.0.2-next.10",
88
+ "@storybook/html": "^7.0.0-rc.8",
89
+ "@storybook/html-webpack5": "^7.0.0-rc.8",
90
+ "@storybook/theming": "^7.0.0-rc.8",
93
91
  "@types/jasmine": "^4.3.1",
94
92
  "@types/webpack-env": "^1.15.2",
95
93
  "babel-loader": "^ 9.1.2",
@@ -114,9 +112,10 @@
114
112
  "prettier": "^2.0.0",
115
113
  "prettier-eslint": "^15.0.1",
116
114
  "prettier-eslint-cli": "^7.1.0",
115
+ "puppeteer": "^10.1.0",
117
116
  "rollup": "^3.10.1",
118
117
  "rollup-plugin-sourcemaps": "^0.6.3",
119
- "storybook-addon-xd-designs": "^6.0.0",
118
+ "storybook": "^7.0.0-rc.8",
120
119
  "ts-loader": "^9.2.5",
121
120
  "typescript": "~4.6.4",
122
121
  "webpack": "^5.75.0",