@ni/spright-components 1.0.0 → 1.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/all-components-bundle.js +317 -242
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4901 -4862
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/rectangle/styles.js +1 -1
- package/dist/esm/rectangle/styles.js.map +1 -1
- package/dist/esm/utilities/style/display.d.ts +6 -0
- package/dist/esm/utilities/style/display.js +9 -0
- package/dist/esm/utilities/style/display.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
3
2
|
import { bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
|
|
3
|
+
import { display } from '../utilities/style/display';
|
|
4
4
|
export const styles = css `
|
|
5
5
|
${display('inline-block')}
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/rectangle/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/rectangle/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;4BAGD,gBAAgB;;;;;;;;6BAQf,qBAAqB;;;;gBAIlC,QAAQ;iBACP,aAAa;;;;iBAIb,qBAAqB;;CAErC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport {\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n borderRgbPartialColor\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { display } from '../utilities/style/display';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n border: 2px solid ${borderHoverColor};\n }\n\n :host(:hover) {\n border-width: 4px;\n }\n\n :host([disabled]) {\n border-color: rgba(${borderRgbPartialColor}, 0.2);\n }\n\n slot {\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n :host([disabled]) slot {\n color: ${bodyDisabledFontColor};\n }\n`;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { display as foundationDisplay } from '@microsoft/fast-foundation';
|
|
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.
|
|
5
|
+
*/
|
|
6
|
+
export declare const display: typeof foundationDisplay;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// eslint-disable-next-line no-restricted-imports
|
|
3
|
+
display as foundationDisplay } from '@microsoft/fast-foundation';
|
|
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.
|
|
7
|
+
*/
|
|
8
|
+
export const display = (displayValue) => `${foundationDisplay(displayValue)}`;
|
|
9
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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.
|
|
58
|
+
"@ni/nimble-components": "29.1.1",
|
|
59
59
|
"@ni/nimble-tokens": "^6.13.6",
|
|
60
60
|
"tslib": "^2.2.0"
|
|
61
61
|
},
|