@ni/nimble-components 32.2.0 → 32.2.1
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 +6 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2 -1
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/drawer/styles.js +6 -1
- package/dist/esm/drawer/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -80,7 +80,12 @@ export const styles = css `
|
|
|
80
80
|
|
|
81
81
|
@keyframes ni-private-drawer-slide-in-right-keyframes {
|
|
82
82
|
0% {
|
|
83
|
-
|
|
83
|
+
${
|
|
84
|
+
/*
|
|
85
|
+
Why 95% instead of 100%? See the following Safari bug:
|
|
86
|
+
https://bugs.webkit.org/show_bug.cgi?id=279148
|
|
87
|
+
*/ ''}
|
|
88
|
+
transform: translate(95%);
|
|
84
89
|
}
|
|
85
90
|
100% {
|
|
86
91
|
transform: translate(0%);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/drawer/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,QAAQ,EACR,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,OAAO,CAAC;;;;;;;gBAON,QAAQ;iBACP,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8BR,kBAAkB;;;;yDAIiB,UAAU;;;;;;;;;;;iBAWlD,WAAW;;4BAEA,0BAA0B;;;;;;;;;;;;;;;;;+DAiBS,UAAU
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/drawer/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,QAAQ,EACR,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,OAAO,CAAC;;;;;;;gBAON,QAAQ;iBACP,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8BR,kBAAkB;;;;yDAIiB,UAAU;;;;;;;;;;;iBAWlD,WAAW;;4BAEA,0BAA0B;;;;;;;;;;;;;;;;;+DAiBS,UAAU;;;;;;cAM3D;AACE;;;EAGE,CAAC,EACP;;;;;;;;;;;;;;gEAcoD,UAAU;;;;;;;6DAOb,UAAU;;;;;;;;;;;;MAYjE;AACE;;;EAGE,CAAC,EACP;;;mBAGe,eAAe;;gBAElB,cAAc;;;;mBAIX,eAAe;;;;;;mBAMf,eAAe;;;;qCAIG,qBAAqB;;CAEzD,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '../utilities/style/display';\nimport {\n applicationBackgroundColor,\n bodyFont,\n bodyFontColor,\n standardPadding,\n titlePlus1Font,\n drawerWidth,\n largeDelay,\n actionRgbPartialColor,\n modalBackdropColor\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('block')}\n\n :host {\n position: absolute;\n width: auto;\n height: 100%;\n outline: none;\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n dialog {\n color: inherit;\n font: inherit;\n background-color: transparent;\n width: auto;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n border-width: 0px;\n height: 100%;\n margin: 0px;\n padding: 0px;\n max-width: none;\n max-height: none;\n overflow: hidden;\n }\n\n @keyframes ni-private-drawer-fade-in-keyframes {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n dialog::backdrop {\n background: ${modalBackdropColor};\n }\n\n dialog.animating::backdrop {\n animation: ni-private-drawer-fade-in-keyframes ${largeDelay} ease-in;\n }\n\n dialog.closing::backdrop {\n animation-direction: reverse;\n }\n\n .dialog-contents {\n display: flex;\n flex-direction: column;\n position: absolute;\n width: ${drawerWidth};\n height: 100%;\n background-color: ${applicationBackgroundColor};\n }\n\n @keyframes ni-private-drawer-slide-in-left-keyframes {\n 0% {\n transform: translate(-100%);\n }\n 100% {\n transform: translate(0%);\n }\n }\n\n :host([location='left']) .dialog-contents {\n box-shadow: 3px 0px 8px #00000033;\n }\n\n :host([location='left']) dialog.animating .dialog-contents {\n animation: ni-private-drawer-slide-in-left-keyframes ${largeDelay}\n ease-in;\n }\n\n @keyframes ni-private-drawer-slide-in-right-keyframes {\n 0% {\n ${\n /*\n Why 95% instead of 100%? See the following Safari bug:\n https://bugs.webkit.org/show_bug.cgi?id=279148\n */ ''\n }\n transform: translate(95%);\n }\n 100% {\n transform: translate(0%);\n }\n }\n\n :host([location='right']) .dialog-contents {\n right: 0px;\n box-shadow: -3px 0px 8px #00000033;\n }\n\n :host([location='right']) dialog.animating .dialog-contents {\n animation: ni-private-drawer-slide-in-right-keyframes ${largeDelay}\n ease-in;\n }\n\n @media (prefers-reduced-motion) {\n :host([location='left']) dialog.animating .dialog-contents,\n :host([location='right']) dialog.animating .dialog-contents {\n animation: ni-private-drawer-fade-in-keyframes ${largeDelay} ease-in;\n }\n }\n\n :host([location='left']) dialog.closing .dialog-contents {\n animation-direction: reverse;\n }\n\n :host([location='right']) dialog.closing .dialog-contents {\n animation-direction: reverse;\n }\n\n ${\n /*\n Styling for a 3-panel drawer with header, footer, and a content\n region filling the remaining space/height\n */ ''\n }\n\n ::slotted(header) {\n padding: ${standardPadding};\n flex: none;\n font: ${titlePlus1Font};\n }\n\n ::slotted(section) {\n padding: ${standardPadding};\n flex: auto;\n overflow-y: auto;\n }\n\n ::slotted(footer) {\n padding: ${standardPadding};\n flex: none;\n display: flex;\n justify-content: flex-end;\n border-top: 2px solid rgba(${actionRgbPartialColor}, 0.1);\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "32.2.
|
|
3
|
+
"version": "32.2.1",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run generate-workers && npm run build-components && npm run bundle-components && npm run generate-scss",
|