@ni/nimble-components 8.0.1 → 8.1.4
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 +35 -9
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2577 -97
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/nimble-components/src/text-field/types.d.ts +2 -1
- package/dist/esm/text-field/styles.js +34 -9
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/text-field/types.d.ts +2 -1
- package/dist/esm/text-field/types.js +1 -0
- package/dist/esm/text-field/types.js.map +1 -1
- package/package.json +3 -3
|
@@ -59,11 +59,8 @@ export const styles = css `
|
|
|
59
59
|
border-bottom-color: ${failColor};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
:host([readonly]
|
|
63
|
-
border:
|
|
64
|
-
padding: 0px;
|
|
65
|
-
padding-bottom: 1px;
|
|
66
|
-
background-color: transparent;
|
|
62
|
+
:host([readonly]) .root {
|
|
63
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
:host([disabled]) .root {
|
|
@@ -77,6 +74,10 @@ export const styles = css `
|
|
|
77
74
|
border-bottom-color: ${borderHoverColor};
|
|
78
75
|
}
|
|
79
76
|
|
|
77
|
+
:host([readonly]) .root:hover {
|
|
78
|
+
--ni-private-bottom-border-width: 1px;
|
|
79
|
+
}
|
|
80
|
+
|
|
80
81
|
:host([disabled]) .root:hover {
|
|
81
82
|
--ni-private-bottom-border-width: 1px;
|
|
82
83
|
}
|
|
@@ -176,10 +177,6 @@ export const styles = css `
|
|
|
176
177
|
white-space: nowrap;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
:host(.invalid[readonly]:not([disabled])) .errortext {
|
|
180
|
-
top: calc(${controlHeight} - ${borderWidth});
|
|
181
|
-
}
|
|
182
|
-
|
|
183
180
|
:host(.invalid) .error-text:empty {
|
|
184
181
|
display: none;
|
|
185
182
|
}
|
|
@@ -203,6 +200,14 @@ export const styles = css `
|
|
|
203
200
|
padding-left: ${borderWidth};
|
|
204
201
|
padding-right: ${borderWidth};
|
|
205
202
|
}
|
|
203
|
+
|
|
204
|
+
:host([disabled]) .root {
|
|
205
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([disabled]) .root:hover {
|
|
209
|
+
--ni-private-bottom-border-width: 1px;
|
|
210
|
+
}
|
|
206
211
|
`), appearanceBehavior(TextFieldAppearance.Block, css `
|
|
207
212
|
.root {
|
|
208
213
|
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
@@ -232,6 +237,11 @@ export const styles = css `
|
|
|
232
237
|
);
|
|
233
238
|
}
|
|
234
239
|
|
|
240
|
+
:host([readonly]) .root {
|
|
241
|
+
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
242
|
+
border-color: transparent;
|
|
243
|
+
}
|
|
244
|
+
|
|
235
245
|
:host([disabled]) .root {
|
|
236
246
|
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
237
247
|
}
|
|
@@ -253,6 +263,21 @@ export const styles = css `
|
|
|
253
263
|
:host(.invalid) .errortext {
|
|
254
264
|
top: calc(${controlHeight} - ${borderWidth});
|
|
255
265
|
}
|
|
266
|
+
`), appearanceBehavior(TextFieldAppearance.Frameless, css `
|
|
267
|
+
.root {
|
|
268
|
+
--ni-private-bottom-border-width: 0px;
|
|
269
|
+
padding-top: ${borderWidth};
|
|
270
|
+
padding-left: ${borderWidth};
|
|
271
|
+
padding-right: ${borderWidth};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:host([readonly]) .root {
|
|
275
|
+
border-color: transparent;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.root:hover {
|
|
279
|
+
--ni-private-bottom-border-width: 0px;
|
|
280
|
+
}
|
|
256
281
|
`), themeBehavior(css `
|
|
257
282
|
${'' /* Light theme */}
|
|
258
283
|
.control::-ms-reveal {
|
|
@@ -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;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,SAAS,EACT,2BAA2B,EAC3B,QAAQ,EACR,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;gBAGb,QAAQ;;;;iBAIP,aAAa;uBACP,WAAW,MAAM,aAAa;;;;iBAIpC,qBAAqB;;;;;iBAKrB,qBAAqB;gBACtB,gBAAgB;;;;iBAIf,6BAA6B;;;;;;;;;;oCAUV,UAAU,oBAAoB,UAAU;;;iCAG3C,qBAAqB;;;;;;;;;;;;;;;+BAevB,SAAS;;;;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB,gBAA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AC,SAAS,EAC7B,GAAG,CAAA;;;+BAGgB,WAAW;gCACV,WAAW;iCACV,WAAW;;;;qCAIP,qBAAqB;;;;;;SAMjD,CACA,EACD,kBAAkB,CACd,mBAAmB,CAAC,KAAK,EACzB,GAAG,CAAA;;yCAE0B,qBAAqB;;+BAE/B,WAAW;gCACV,WAAW;iCACV,WAAW;;;;;;;;;;;;;;;;;;;;;;;;yCAwBH,qBAAqB;;;;;yCAKrB,qBAAqB;;;;;;;;;;SAUrD,CACA,EACD,kBAAkB,CACd,mBAAmB,CAAC,OAAO,EAC3B,GAAG,CAAA;;;gCAGiB,WAAW;;;;;4BAKf,aAAa,MAAM,WAAW;;SAEjD,CACA,EACD,kBAAkB,CACd,mBAAmB,CAAC,SAAS,EAC7B,GAAG,CAAA;;;+BAGgB,WAAW;gCACV,WAAW;iCACV,WAAW;;;;;;;;;;SAUnC,CACA,EACD,aAAa,CACT,GAAG,CAAA;cACD,EAAE,CAAC,iBAAiB;;;;SAIzB,EACG,GAAG,CAAA;cACD,EAAE,CAAC,gBAAgB;;;;SAIxB;AACG,cAAc;AACd,KAAK,CAAC,IAAI,CACb,CACJ,CAAC"}
|
|
@@ -11,5 +11,6 @@ export var TextFieldAppearance;
|
|
|
11
11
|
TextFieldAppearance["Underline"] = "underline";
|
|
12
12
|
TextFieldAppearance["Outline"] = "outline";
|
|
13
13
|
TextFieldAppearance["Block"] = "block";
|
|
14
|
+
TextFieldAppearance["Frameless"] = "frameless";
|
|
14
15
|
})(TextFieldAppearance || (TextFieldAppearance = {}));
|
|
15
16
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAOzB;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAOzB;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,sCAAe,CAAA;IACf,8CAAuB,CAAA;AAC3B,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.4",
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@microsoft/fast-element": "^1.8.0",
|
|
51
51
|
"@microsoft/fast-foundation": "^2.37.1",
|
|
52
52
|
"@microsoft/fast-web-utilities": "^5.1.0",
|
|
53
|
-
"@ni/nimble-tokens": "^3.0.
|
|
53
|
+
"@ni/nimble-tokens": "^3.0.7",
|
|
54
54
|
"hex-rgb": "^5.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"prettier-eslint-cli": "^5.0.1",
|
|
98
98
|
"puppeteer": "^10.1.0",
|
|
99
99
|
"rollup": "^2.61.1",
|
|
100
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
100
101
|
"rollup-plugin-terser": "^7.0.2",
|
|
101
|
-
"rollup-plugin-transform-tagged-template": "^0.0.3",
|
|
102
102
|
"storybook-addon-xd-designs": "^6.0.0",
|
|
103
103
|
"ts-loader": "^9.2.5",
|
|
104
104
|
"typescript": "^4.3.2",
|