@ni/spright-components 1.0.18 → 1.0.19

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,6 +1,8 @@
1
1
  import { display as foundationDisplay } from '@microsoft/fast-foundation';
2
2
  /**
3
- * This utility will generate the appropriate display style, as well as a style rule
4
- * to hide the host element when its `hidden` attribute is set.
3
+ * Each element should use the display utility which will create styles to:
4
+ * - Set the `:host` display property
5
+ * - Respond to the `hidden` attribute set on `:host`
6
+ * - Configure `box-sizing` for `:host`, all elements in shadow root, and `::before` / `::after` pseudoelements
5
7
  */
6
8
  export declare const display: typeof foundationDisplay;
@@ -2,8 +2,10 @@ import {
2
2
  // eslint-disable-next-line no-restricted-imports
3
3
  display as foundationDisplay } from '@microsoft/fast-foundation';
4
4
  /**
5
- * This utility will generate the appropriate display style, as well as a style rule
6
- * to hide the host element when its `hidden` attribute is set.
5
+ * Each element should use the display utility which will create styles to:
6
+ * - Set the `:host` display property
7
+ * - Respond to the `hidden` attribute set on `:host`
8
+ * - Configure `box-sizing` for `:host`, all elements in shadow root, and `::before` / `::after` pseudoelements
7
9
  */
8
- export const display = (displayValue) => `${foundationDisplay(displayValue)}`;
10
+ export const display = (displayValue) => `${foundationDisplay(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;
9
11
  //# sourceMappingURL=display.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../src/utilities/style/display.ts"],"names":[],"mappings":"AAAA,OAAO;AAEH,iDAAiD;AACjD,OAAO,IAAI,iBAAiB,EAC/B,MAAM,4BAA4B,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAA6B,CAC7C,YAAqC,EACvC,EAAE,CAAC,GAAG,iBAAiB,CAAC,YAAY,CAAC,EAAE,CAAC","sourcesContent":["import {\n type CSSDisplayPropertyValue,\n // eslint-disable-next-line no-restricted-imports\n display as foundationDisplay\n} from '@microsoft/fast-foundation';\n\n/**\n * This utility will generate the appropriate display style, as well as a style rule\n * to hide the host element when its `hidden` attribute is set.\n */\nexport const display: typeof foundationDisplay = (\n displayValue: CSSDisplayPropertyValue\n) => `${foundationDisplay(displayValue)}`;\n"]}
1
+ {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../src/utilities/style/display.ts"],"names":[],"mappings":"AAAA,OAAO;AAEH,iDAAiD;AACjD,OAAO,IAAI,iBAAiB,EAC/B,MAAM,4BAA4B,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAA6B,CAC7C,YAAqC,EACvC,EAAE,CAAC,GAAG,iBAAiB,CAAC,YAAY,CAAC,2HAA2H,CAAC","sourcesContent":["import {\n type CSSDisplayPropertyValue,\n // eslint-disable-next-line no-restricted-imports\n display as foundationDisplay\n} from '@microsoft/fast-foundation';\n\n/**\n * Each element should use the display utility which will create styles to:\n * - Set the `:host` display property\n * - Respond to the `hidden` attribute set on `:host`\n * - Configure `box-sizing` for `:host`, all elements in shadow root, and `::before` / `::after` pseudoelements\n */\nexport const display: typeof foundationDisplay = (\n displayValue: CSSDisplayPropertyValue\n) => `${foundationDisplay(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/spright-components",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "NI Spright Components",
5
5
  "scripts": {
6
6
  "build": "npm run build-components && npm run bundle-components",
@@ -55,7 +55,7 @@
55
55
  "@microsoft/fast-element": "^1.12.0",
56
56
  "@microsoft/fast-foundation": "^2.49.6",
57
57
  "@microsoft/fast-web-utilities": "^6.0.0",
58
- "@ni/nimble-components": "29.3.4",
58
+ "@ni/nimble-components": "29.3.5",
59
59
  "@ni/nimble-tokens": "^6.15.0",
60
60
  "tslib": "^2.2.0"
61
61
  },