@lumx/core 2.1.1 → 2.1.5
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/css/design-tokens.css +82 -27
- package/js/constants/design-tokens.js +21 -21
- package/js/constants/design-tokens.min.js +1 -1
- package/js/constants/design-tokens.min.js.map +1 -1
- package/js/constants/design-tokens.ts +21 -21
- package/js/utils.js +17 -0
- package/js/utils.min.js +1 -1
- package/js/utils.min.js.map +1 -1
- package/js/utils.ts +17 -0
- package/lumx.css +1 -1
- package/lumx.js +96 -0
- package/lumx.min.css +1 -1
- package/lumx.min.js +2 -0
- package/lumx.min.js.map +1 -0
- package/package.json +2 -3
- package/scss/_design-tokens.scss +87 -27
- package/scss/components/button/_index.scss +12 -2
- package/scss/components/button/_mixins.scss +18 -9
- package/scss/components/chip/_index.scss +6 -0
- package/scss/components/flag/_index.scss +8 -3
- package/scss/components/icon/_mixins.scss +5 -1
- package/scss/components/list/_index.scss +5 -0
- package/scss/components/list/_mixins.scss +2 -1
- package/scss/components/side-navigation/_mixins.scss +0 -1
- package/scss/components/text-field/_index.scss +2 -1
- package/scss/components/text-field/_mixins.scss +9 -5
- package/scss/components/thumbnail/_index.scss +7 -5
- package/scss/components/thumbnail/_variables.scss +1 -1
- package/scss/components/uploader/_index.scss +2 -2
- package/scss/components/user-block/_index.scss +1 -1
- package/scss/core/state/_mixins.scss +20 -4
package/lumx.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=107)}({107:function(e,t,r){}});
|
|
2
|
+
//# sourceMappingURL=lumx.min.js.map
|
package/lumx.min.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["__webpack_require__","moduleId","installedModules","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aAIE,SAASA,EAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,OAAOC,EAAiBD,GAAUE,QAGnC,IAAIC,EAASF,EAAiBD,GAAY,CACzCI,EAAGJ,EACHK,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQN,GAAUO,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,IAAID,EAAmB,GA4BvBF,EAAoBS,EAAIF,EAGxBP,EAAoBU,EAAIR,EAGxBF,EAAoBW,EAAI,SAASR,EAASS,EAAMC,GAC3Cb,EAAoBc,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEb,EAAoBmB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDtB,EAAoBuB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQtB,EAAoBsB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA3B,EAAoBmB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOtB,EAAoBW,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIR1B,EAAoB8B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAJ,EAAoBW,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRb,EAAoBc,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzGhC,EAAoBmC,EAAI,GAIjBnC,EAAoBA,EAAoBoC,EAAI,K","file":"lumx.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 107);\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -37,12 +37,11 @@
|
|
|
37
37
|
"generate:design-tokens": "yarn node style-dictionary",
|
|
38
38
|
"build": "webpack",
|
|
39
39
|
"postbuild": "rm -rf ./dist/*.js ./dist/*.js.map",
|
|
40
|
-
"postversion": "version-changelog ../../CHANGELOG.md && git add ../../CHANGELOG.md && git commit --amend",
|
|
41
40
|
"prepare": "install-peers || exit 0",
|
|
42
41
|
"prepublishOnly": "yarn build"
|
|
43
42
|
},
|
|
44
43
|
"sideEffects": false,
|
|
45
|
-
"version": "2.1.
|
|
44
|
+
"version": "2.1.5",
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@babel/core": "^7.8.3",
|
|
48
47
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
@@ -79,5 +78,5 @@
|
|
|
79
78
|
"moment": "^2.24.0",
|
|
80
79
|
"moment-range": "^4.0.2"
|
|
81
80
|
},
|
|
82
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "ad5125402db165c2a7d37fb72327153b80193759"
|
|
83
82
|
}
|
package/scss/_design-tokens.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 30 Nov 2021 09:20:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$lumx-button-height: 36px !default;
|
|
@@ -47,7 +47,12 @@ $lumx-button-emphasis-medium-state-default-theme-light-background-color: rgba(
|
|
|
47
47
|
0,
|
|
48
48
|
0.12
|
|
49
49
|
) !default; // Base dark color with 12% opacity
|
|
50
|
-
$lumx-button-emphasis-medium-state-default-theme-light-color: rgba(
|
|
50
|
+
$lumx-button-emphasis-medium-state-default-theme-light-color: rgba(
|
|
51
|
+
0,
|
|
52
|
+
0,
|
|
53
|
+
0,
|
|
54
|
+
0.7
|
|
55
|
+
) !default; // Base dark color with 70% opacity
|
|
51
56
|
$lumx-button-emphasis-medium-state-default-theme-light-border-color: transparent !default;
|
|
52
57
|
$lumx-button-emphasis-medium-state-default-theme-dark-background-color: rgba(
|
|
53
58
|
255,
|
|
@@ -65,7 +70,12 @@ $lumx-button-emphasis-medium-state-hover-theme-light-background-color: rgba(
|
|
|
65
70
|
0,
|
|
66
71
|
0.2
|
|
67
72
|
) !default; // Base dark color with 20% opacity
|
|
68
|
-
$lumx-button-emphasis-medium-state-hover-theme-light-color: rgba(
|
|
73
|
+
$lumx-button-emphasis-medium-state-hover-theme-light-color: rgba(
|
|
74
|
+
0,
|
|
75
|
+
0,
|
|
76
|
+
0,
|
|
77
|
+
0.7
|
|
78
|
+
) !default; // Base dark color with 70% opacity
|
|
69
79
|
$lumx-button-emphasis-medium-state-hover-theme-light-border-color: transparent !default;
|
|
70
80
|
$lumx-button-emphasis-medium-state-hover-theme-dark-background-color: rgba(
|
|
71
81
|
255,
|
|
@@ -83,7 +93,12 @@ $lumx-button-emphasis-medium-state-active-theme-light-background-color: rgba(
|
|
|
83
93
|
0,
|
|
84
94
|
0.38
|
|
85
95
|
) !default; // Base dark color with 38% opacity
|
|
86
|
-
$lumx-button-emphasis-medium-state-active-theme-light-color: rgba(
|
|
96
|
+
$lumx-button-emphasis-medium-state-active-theme-light-color: rgba(
|
|
97
|
+
0,
|
|
98
|
+
0,
|
|
99
|
+
0,
|
|
100
|
+
0.7
|
|
101
|
+
) !default; // Base dark color with 70% opacity
|
|
87
102
|
$lumx-button-emphasis-medium-state-active-theme-light-border-color: transparent !default;
|
|
88
103
|
$lumx-button-emphasis-medium-state-active-theme-dark-background-color: rgba(
|
|
89
104
|
255,
|
|
@@ -96,7 +111,12 @@ $lumx-button-emphasis-medium-state-active-theme-dark-border-color: transparent !
|
|
|
96
111
|
$lumx-button-emphasis-low-state-default-padding-horizontal: 8px !default;
|
|
97
112
|
$lumx-button-emphasis-low-state-default-border-width: 0 !default;
|
|
98
113
|
$lumx-button-emphasis-low-state-default-theme-light-background-color: transparent !default;
|
|
99
|
-
$lumx-button-emphasis-low-state-default-theme-light-color: rgba(
|
|
114
|
+
$lumx-button-emphasis-low-state-default-theme-light-color: rgba(
|
|
115
|
+
0,
|
|
116
|
+
0,
|
|
117
|
+
0,
|
|
118
|
+
0.7
|
|
119
|
+
) !default; // Base dark color with 70% opacity
|
|
100
120
|
$lumx-button-emphasis-low-state-default-theme-light-border-color: transparent !default;
|
|
101
121
|
$lumx-button-emphasis-low-state-default-theme-dark-background-color: transparent !default;
|
|
102
122
|
$lumx-button-emphasis-low-state-default-theme-dark-color: #fff !default; // Neutral light color
|
|
@@ -109,7 +129,12 @@ $lumx-button-emphasis-low-state-hover-theme-light-background-color: rgba(
|
|
|
109
129
|
0,
|
|
110
130
|
0.12
|
|
111
131
|
) !default; // Base dark color with 12% opacity
|
|
112
|
-
$lumx-button-emphasis-low-state-hover-theme-light-color: rgba(
|
|
132
|
+
$lumx-button-emphasis-low-state-hover-theme-light-color: rgba(
|
|
133
|
+
0,
|
|
134
|
+
0,
|
|
135
|
+
0,
|
|
136
|
+
0.7
|
|
137
|
+
) !default; // Base dark color with 70% opacity
|
|
113
138
|
$lumx-button-emphasis-low-state-hover-theme-light-border-color: transparent !default;
|
|
114
139
|
$lumx-button-emphasis-low-state-hover-theme-dark-background-color: rgba(
|
|
115
140
|
255,
|
|
@@ -127,7 +152,12 @@ $lumx-button-emphasis-low-state-active-theme-light-background-color: rgba(
|
|
|
127
152
|
0,
|
|
128
153
|
0.2
|
|
129
154
|
) !default; // Base dark color with 20% opacity
|
|
130
|
-
$lumx-button-emphasis-low-state-active-theme-light-color: rgba(
|
|
155
|
+
$lumx-button-emphasis-low-state-active-theme-light-color: rgba(
|
|
156
|
+
0,
|
|
157
|
+
0,
|
|
158
|
+
0,
|
|
159
|
+
0.7
|
|
160
|
+
) !default; // Base dark color with 70% opacity
|
|
131
161
|
$lumx-button-emphasis-low-state-active-theme-light-border-color: transparent !default;
|
|
132
162
|
$lumx-button-emphasis-low-state-active-theme-dark-background-color: rgba(
|
|
133
163
|
255,
|
|
@@ -229,8 +259,8 @@ $lumx-navigation-item-emphasis-low-state-default-theme-light-icon-color: rgba(
|
|
|
229
259
|
0,
|
|
230
260
|
0,
|
|
231
261
|
0,
|
|
232
|
-
0.
|
|
233
|
-
) !default; //
|
|
262
|
+
0.7
|
|
263
|
+
) !default; // Base dark color with 70% opacity
|
|
234
264
|
$lumx-navigation-item-emphasis-low-state-default-theme-light-label-color: rgba(
|
|
235
265
|
0,
|
|
236
266
|
0,
|
|
@@ -242,8 +272,8 @@ $lumx-navigation-item-emphasis-low-state-default-theme-light-chevron-color: rgba
|
|
|
242
272
|
0,
|
|
243
273
|
0,
|
|
244
274
|
0,
|
|
245
|
-
0.
|
|
246
|
-
) !default; //
|
|
275
|
+
0.7
|
|
276
|
+
) !default; // Base dark color with 70% opacity
|
|
247
277
|
$lumx-navigation-item-emphasis-low-state-default-theme-dark-background-color: transparent !default;
|
|
248
278
|
$lumx-navigation-item-emphasis-low-state-default-theme-dark-border-color: rgba(
|
|
249
279
|
255,
|
|
@@ -275,8 +305,8 @@ $lumx-navigation-item-emphasis-low-state-hover-theme-light-icon-color: rgba(
|
|
|
275
305
|
0,
|
|
276
306
|
0,
|
|
277
307
|
0,
|
|
278
|
-
0.
|
|
279
|
-
) !default; //
|
|
308
|
+
0.7
|
|
309
|
+
) !default; // Base dark color with 70% opacity
|
|
280
310
|
$lumx-navigation-item-emphasis-low-state-hover-theme-light-label-color: rgba(
|
|
281
311
|
0,
|
|
282
312
|
0,
|
|
@@ -293,8 +323,8 @@ $lumx-navigation-item-emphasis-low-state-hover-theme-light-chevron-color: rgba(
|
|
|
293
323
|
0,
|
|
294
324
|
0,
|
|
295
325
|
0,
|
|
296
|
-
0.
|
|
297
|
-
) !default; //
|
|
326
|
+
0.7
|
|
327
|
+
) !default; // Base dark color with 70% opacity
|
|
298
328
|
$lumx-navigation-item-emphasis-low-state-hover-theme-dark-background-color: rgba(
|
|
299
329
|
255,
|
|
300
330
|
255,
|
|
@@ -336,8 +366,8 @@ $lumx-navigation-item-emphasis-low-state-active-theme-light-icon-color: rgba(
|
|
|
336
366
|
0,
|
|
337
367
|
0,
|
|
338
368
|
0,
|
|
339
|
-
0.
|
|
340
|
-
) !default; //
|
|
369
|
+
0.7
|
|
370
|
+
) !default; // Base dark color with 70% opacity
|
|
341
371
|
$lumx-navigation-item-emphasis-low-state-active-theme-light-label-color: rgba(
|
|
342
372
|
0,
|
|
343
373
|
0,
|
|
@@ -354,8 +384,8 @@ $lumx-navigation-item-emphasis-low-state-active-theme-light-chevron-color: rgba(
|
|
|
354
384
|
0,
|
|
355
385
|
0,
|
|
356
386
|
0,
|
|
357
|
-
0.
|
|
358
|
-
) !default; //
|
|
387
|
+
0.7
|
|
388
|
+
) !default; // Base dark color with 70% opacity
|
|
359
389
|
$lumx-navigation-item-emphasis-low-state-active-theme-dark-background-color: rgba(
|
|
360
390
|
255,
|
|
361
391
|
255,
|
|
@@ -480,7 +510,12 @@ $lumx-tabs-link-emphasis-low-state-default-border-right-width: 0 !default;
|
|
|
480
510
|
$lumx-tabs-link-emphasis-low-state-default-border-bottom-width: 2px !default;
|
|
481
511
|
$lumx-tabs-link-emphasis-low-state-default-border-left-width: 0 !default;
|
|
482
512
|
$lumx-tabs-link-emphasis-low-state-default-theme-light-background-color: transparent !default;
|
|
483
|
-
$lumx-tabs-link-emphasis-low-state-default-theme-light-color: rgba(
|
|
513
|
+
$lumx-tabs-link-emphasis-low-state-default-theme-light-color: rgba(
|
|
514
|
+
0,
|
|
515
|
+
0,
|
|
516
|
+
0,
|
|
517
|
+
0.7
|
|
518
|
+
) !default; // Base dark color with 70% opacity
|
|
484
519
|
$lumx-tabs-link-emphasis-low-state-default-theme-light-border-color: rgba(
|
|
485
520
|
0,
|
|
486
521
|
0,
|
|
@@ -505,7 +540,12 @@ $lumx-tabs-link-emphasis-low-state-hover-theme-light-background-color: rgba(
|
|
|
505
540
|
0,
|
|
506
541
|
0.12
|
|
507
542
|
) !default; // Base dark color with 12% opacity
|
|
508
|
-
$lumx-tabs-link-emphasis-low-state-hover-theme-light-color: rgba(
|
|
543
|
+
$lumx-tabs-link-emphasis-low-state-hover-theme-light-color: rgba(
|
|
544
|
+
0,
|
|
545
|
+
0,
|
|
546
|
+
0,
|
|
547
|
+
0.7
|
|
548
|
+
) !default; // Base dark color with 70% opacity
|
|
509
549
|
$lumx-tabs-link-emphasis-low-state-hover-theme-light-border-color: rgba(
|
|
510
550
|
0,
|
|
511
551
|
0,
|
|
@@ -535,7 +575,12 @@ $lumx-tabs-link-emphasis-low-state-active-theme-light-background-color: rgba(
|
|
|
535
575
|
0,
|
|
536
576
|
0.2
|
|
537
577
|
) !default; // Base dark color with 20% opacity
|
|
538
|
-
$lumx-tabs-link-emphasis-low-state-active-theme-light-color: rgba(
|
|
578
|
+
$lumx-tabs-link-emphasis-low-state-active-theme-light-color: rgba(
|
|
579
|
+
0,
|
|
580
|
+
0,
|
|
581
|
+
0,
|
|
582
|
+
0.7
|
|
583
|
+
) !default; // Base dark color with 70% opacity
|
|
539
584
|
$lumx-tabs-link-emphasis-low-state-active-theme-light-border-color: rgba(
|
|
540
585
|
0,
|
|
541
586
|
0,
|
|
@@ -560,7 +605,12 @@ $lumx-tabs-link-emphasis-selected-state-default-border-right-width: 0 !default;
|
|
|
560
605
|
$lumx-tabs-link-emphasis-selected-state-default-border-bottom-width: 2px !default;
|
|
561
606
|
$lumx-tabs-link-emphasis-selected-state-default-border-left-width: 0 !default;
|
|
562
607
|
$lumx-tabs-link-emphasis-selected-state-default-theme-light-background-color: transparent !default;
|
|
563
|
-
$lumx-tabs-link-emphasis-selected-state-default-theme-light-color: rgba(
|
|
608
|
+
$lumx-tabs-link-emphasis-selected-state-default-theme-light-color: rgba(
|
|
609
|
+
0,
|
|
610
|
+
0,
|
|
611
|
+
0,
|
|
612
|
+
0.7
|
|
613
|
+
) !default; // Base dark color with 70% opacity
|
|
564
614
|
$lumx-tabs-link-emphasis-selected-state-default-theme-light-border-color: var(--lumx-color-primary-N) !default;
|
|
565
615
|
$lumx-tabs-link-emphasis-selected-state-default-theme-dark-background-color: transparent !default;
|
|
566
616
|
$lumx-tabs-link-emphasis-selected-state-default-theme-dark-color: #fff !default; // Neutral light color
|
|
@@ -575,7 +625,12 @@ $lumx-tabs-link-emphasis-selected-state-hover-theme-light-background-color: rgba
|
|
|
575
625
|
0,
|
|
576
626
|
0.12
|
|
577
627
|
) !default; // Base dark color with 12% opacity
|
|
578
|
-
$lumx-tabs-link-emphasis-selected-state-hover-theme-light-color: rgba(
|
|
628
|
+
$lumx-tabs-link-emphasis-selected-state-hover-theme-light-color: rgba(
|
|
629
|
+
0,
|
|
630
|
+
0,
|
|
631
|
+
0,
|
|
632
|
+
0.7
|
|
633
|
+
) !default; // Base dark color with 70% opacity
|
|
579
634
|
$lumx-tabs-link-emphasis-selected-state-hover-theme-light-border-color: var(--lumx-color-primary-N) !default;
|
|
580
635
|
$lumx-tabs-link-emphasis-selected-state-hover-theme-dark-background-color: rgba(
|
|
581
636
|
255,
|
|
@@ -595,7 +650,12 @@ $lumx-tabs-link-emphasis-selected-state-active-theme-light-background-color: rgb
|
|
|
595
650
|
0,
|
|
596
651
|
0.2
|
|
597
652
|
) !default; // Base dark color with 20% opacity
|
|
598
|
-
$lumx-tabs-link-emphasis-selected-state-active-theme-light-color: rgba(
|
|
653
|
+
$lumx-tabs-link-emphasis-selected-state-active-theme-light-color: rgba(
|
|
654
|
+
0,
|
|
655
|
+
0,
|
|
656
|
+
0,
|
|
657
|
+
0.7
|
|
658
|
+
) !default; // Base dark color with 70% opacity
|
|
599
659
|
$lumx-tabs-link-emphasis-selected-state-active-theme-light-border-color: var(--lumx-color-primary-N) !default;
|
|
600
660
|
$lumx-tabs-link-emphasis-selected-state-active-theme-dark-background-color: rgba(
|
|
601
661
|
255,
|
|
@@ -730,7 +790,7 @@ $lumx-text-field-state-focus-theme-dark-input-placeholder-color: rgba(
|
|
|
730
790
|
) !default; // Base light color with 80% opacity
|
|
731
791
|
$lumx-border-radius: 4px !default;
|
|
732
792
|
$lumx-color-dark-N: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
|
|
733
|
-
$lumx-color-dark-L1: rgba(0, 0, 0, 0.
|
|
793
|
+
$lumx-color-dark-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 70% opacity
|
|
734
794
|
$lumx-color-dark-L2: rgba(0, 0, 0, 0.54) !default; // Base dark color with 54% opacity
|
|
735
795
|
$lumx-color-dark-L3: rgba(0, 0, 0, 0.38) !default; // Base dark color with 38% opacity
|
|
736
796
|
$lumx-color-dark-L4: rgba(0, 0, 0, 0.2) !default; // Base dark color with 20% opacity
|
|
@@ -814,7 +874,7 @@ $lumx-color-accent-L4: rgba(76, 175, 80, 0.2) !default; // Base green color with
|
|
|
814
874
|
$lumx-color-accent-L5: rgba(76, 175, 80, 0.1) !default; // Base green color with 10% opacity
|
|
815
875
|
$lumx-color-accent-L6: rgba(76, 175, 80, 0.05) !default; // Base green color with 5% opacity
|
|
816
876
|
$lumx-color-black-N: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
|
|
817
|
-
$lumx-color-black-L1: rgba(0, 0, 0, 0.
|
|
877
|
+
$lumx-color-black-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 70% opacity
|
|
818
878
|
$lumx-color-black-L2: rgba(0, 0, 0, 0.54) !default; // Base dark color with 54% opacity
|
|
819
879
|
$lumx-color-black-L3: rgba(0, 0, 0, 0.38) !default; // Base dark color with 38% opacity
|
|
820
880
|
$lumx-color-black-L4: rgba(0, 0, 0, 0.2) !default; // Base dark color with 20% opacity
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
&.#{$lumx-base-prefix}-button--variant-icon {
|
|
62
62
|
& > i,
|
|
63
|
-
& > img
|
|
64
|
-
{
|
|
63
|
+
& > img {
|
|
65
64
|
@include lumx-button-icon('icon', $key);
|
|
66
65
|
}
|
|
67
66
|
}
|
|
@@ -114,6 +113,8 @@
|
|
|
114
113
|
========================================================================== */
|
|
115
114
|
|
|
116
115
|
.#{$lumx-base-prefix}-button-wrapper {
|
|
116
|
+
width: fit-content;
|
|
117
|
+
|
|
117
118
|
&--variant-button {
|
|
118
119
|
border-radius: var(--lumx-border-radius);
|
|
119
120
|
}
|
|
@@ -152,3 +153,12 @@
|
|
|
152
153
|
}
|
|
153
154
|
}
|
|
154
155
|
}
|
|
156
|
+
|
|
157
|
+
/* Button full width
|
|
158
|
+
========================================================================== */
|
|
159
|
+
|
|
160
|
+
.#{$lumx-base-prefix}-button--is-full-width:not(.#{$lumx-base-prefix}-button--variant-icon),
|
|
161
|
+
.#{$lumx-base-prefix}-button-wrapper--is-full-width:not(.#{$lumx-base-prefix}-button-wrapper--variant-icon) {
|
|
162
|
+
width: 100%;
|
|
163
|
+
flex-grow: 1;
|
|
164
|
+
}
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
user-select: none;
|
|
15
15
|
vertical-align: top;
|
|
16
16
|
|
|
17
|
-
&:hover
|
|
17
|
+
&:hover,
|
|
18
|
+
&[class*='--is-hovered'] {
|
|
18
19
|
cursor: pointer;
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -69,7 +70,8 @@
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
&:hover
|
|
73
|
+
&:hover,
|
|
74
|
+
&[class*='--is-hovered'] {
|
|
73
75
|
@if $variant == 'button' {
|
|
74
76
|
@if $size == lumx-base-const('size', 'M') {
|
|
75
77
|
padding: 0 var(--lumx-button-#{$emphasis}-state-hover-padding-horizontal);
|
|
@@ -83,7 +85,8 @@
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
&:active
|
|
88
|
+
&:active,
|
|
89
|
+
&[class*='--is-active'] {
|
|
87
90
|
@if $variant == 'button' {
|
|
88
91
|
@if $size == lumx-base-const('size', 'M') {
|
|
89
92
|
padding: 0 var(--lumx-button-#{$emphasis}-state-active-padding-horizontal);
|
|
@@ -124,7 +127,8 @@
|
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
&:hover
|
|
130
|
+
&:hover,
|
|
131
|
+
&[class*='--is-hovered'] {
|
|
128
132
|
@if $color == 'primary' and $emphasis == lumx-base-const('emphasis', 'HIGH') {
|
|
129
133
|
background-color: var(--lumx-button-#{$emphasis}-state-hover-#{$theme}-background-color);
|
|
130
134
|
color: var(--lumx-button-#{$emphasis}-state-hover-#{$theme}-color);
|
|
@@ -149,7 +153,8 @@
|
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
|
|
152
|
-
&:active
|
|
156
|
+
&:active,
|
|
157
|
+
&[class*='--is-active'] {
|
|
153
158
|
@if $color == 'primary' and $emphasis == lumx-base-const('emphasis', 'HIGH') {
|
|
154
159
|
background-color: var(--lumx-button-#{$emphasis}-state-active-#{$theme}-background-color);
|
|
155
160
|
color: var(--lumx-button-#{$emphasis}-state-active-#{$theme}-color);
|
|
@@ -174,7 +179,8 @@
|
|
|
174
179
|
}
|
|
175
180
|
}
|
|
176
181
|
|
|
177
|
-
&[data-focus-visible-added]
|
|
182
|
+
&[data-focus-visible-added],
|
|
183
|
+
&[class*='--is-focused'] {
|
|
178
184
|
@include lumx-state(lumx-base-const('state', 'FOCUS'), $emphasis, $color, $theme);
|
|
179
185
|
}
|
|
180
186
|
|
|
@@ -187,15 +193,18 @@
|
|
|
187
193
|
@mixin lumx-button-is-selected($theme) {
|
|
188
194
|
@include lumx-state-as-selected(lumx-base-const('state', 'DEFAULT'), $theme);
|
|
189
195
|
|
|
190
|
-
&:hover
|
|
196
|
+
&:hover,
|
|
197
|
+
&[class*='--is-hovered'] {
|
|
191
198
|
@include lumx-state-as-selected(lumx-base-const('state', 'HOVER'), $theme);
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
&:active
|
|
201
|
+
&:active,
|
|
202
|
+
&[class*='--is-active'] {
|
|
195
203
|
@include lumx-state-as-selected(lumx-base-const('state', 'ACTIVE'), $theme);
|
|
196
204
|
}
|
|
197
205
|
|
|
198
|
-
&[data-focus-visible-added]
|
|
206
|
+
&[data-focus-visible-added],
|
|
207
|
+
&[class*='--is-focused'] {
|
|
199
208
|
@include lumx-state-as-selected(lumx-base-const('state', 'FOCUS'), $theme);
|
|
200
209
|
}
|
|
201
210
|
}
|
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
&.#{$lumx-base-prefix}-chip--is-highlighted {
|
|
83
83
|
@include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'MEDIUM'), $key);
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
@if $key == 'dark' {
|
|
87
|
+
.#{$lumx-base-prefix}-chip__label {
|
|
88
|
+
color: lumx-color-variant('dark', 'L1');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
|
|
@@ -25,9 +25,14 @@
|
|
|
25
25
|
@each $key, $color in $lumx-color-palette {
|
|
26
26
|
.#{$lumx-base-prefix}-flag--color-#{$key} {
|
|
27
27
|
border: 2px solid lumx-color-variant($key, 'L4');
|
|
28
|
-
}
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
.#{$lumx-base-prefix}-flag__label,
|
|
30
|
+
.#{$lumx-base-prefix}-flag__icon {
|
|
31
|
+
@if $key == 'dark' {
|
|
32
|
+
color: lumx-color-variant($key, 'L1');
|
|
33
|
+
} @else {
|
|
34
|
+
color: lumx-color-variant($key, 'D2');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
}
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
background-color: lumx-color-variant($color, 'L5');
|
|
17
17
|
color: lumx-color-variant($color, 'L2');
|
|
18
18
|
} @else if $has-shape == false {
|
|
19
|
-
|
|
19
|
+
@if $color == 'dark' {
|
|
20
|
+
color: lumx-color-variant('dark', 'L1');
|
|
21
|
+
} @else {
|
|
22
|
+
color: lumx-color-variant($color, 'N');
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -144,11 +144,15 @@
|
|
|
144
144
|
|
|
145
145
|
@mixin lumx-text-field-input-clear() {
|
|
146
146
|
flex-shrink: 0;
|
|
147
|
-
margin
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
margin:
|
|
148
|
+
// vertical
|
|
149
|
+
calc(
|
|
150
|
+
var(--lumx-text-field-wrapper-padding-vertical) +
|
|
151
|
+
((var(--lumx-material-text-field-input-content-line-height) - (var(--lumx-button-height) / 1.5)) / 2)
|
|
152
|
+
)
|
|
153
|
+
// horizontal
|
|
154
|
+
$lumx-spacing-unit / 2;
|
|
155
|
+
margin-right: 0;
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
@mixin lumx-text-field-chips() {
|
|
@@ -103,8 +103,9 @@
|
|
|
103
103
|
/* Thumbnail states
|
|
104
104
|
========================================================================== */
|
|
105
105
|
|
|
106
|
-
.#{$lumx-base-prefix}-thumbnail
|
|
106
|
+
.#{$lumx-base-prefix}-thumbnail--is-clickable {
|
|
107
107
|
position: relative;
|
|
108
|
+
display: block;
|
|
108
109
|
cursor: pointer;
|
|
109
110
|
|
|
110
111
|
&::after {
|
|
@@ -119,7 +120,8 @@
|
|
|
119
120
|
pointer-events: none;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
|
-
&:hover::after
|
|
123
|
+
&:hover::after,
|
|
124
|
+
&:focus::after {
|
|
123
125
|
@include lumx-state(lumx-base-const('state', 'HOVER'), lumx-base-const('emphasis', 'LOW'), 'dark');
|
|
124
126
|
}
|
|
125
127
|
|
|
@@ -128,19 +130,19 @@
|
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
.#{$lumx-base-prefix}-thumbnail--variant-rounded.#{$lumx-base-prefix}-thumbnail
|
|
133
|
+
.#{$lumx-base-prefix}-thumbnail--variant-rounded.#{$lumx-base-prefix}-thumbnail--is-clickable {
|
|
132
134
|
&[data-focus-visible-added]::after {
|
|
133
135
|
border-radius: var(--lumx-border-radius);
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
.#{$lumx-base-prefix}-thumbnail--theme-light.#{$lumx-base-prefix}-thumbnail
|
|
139
|
+
.#{$lumx-base-prefix}-thumbnail--theme-light.#{$lumx-base-prefix}-thumbnail--is-clickable {
|
|
138
140
|
&[data-focus-visible-added]::after {
|
|
139
141
|
@include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'LOW'), 'dark');
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
.#{$lumx-base-prefix}-thumbnail--theme-dark.#{$lumx-base-prefix}-thumbnail
|
|
145
|
+
.#{$lumx-base-prefix}-thumbnail--theme-dark.#{$lumx-base-prefix}-thumbnail--is-clickable {
|
|
144
146
|
&[data-focus-visible-added]::after {
|
|
145
147
|
@include lumx-state(lumx-base-const('state', 'FOCUS'), lumx-base-const('emphasis', 'LOW'), 'light');
|
|
146
148
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
margin-bottom: $lumx-spacing-unit;
|
|
74
74
|
|
|
75
75
|
#{$self}--theme-light & {
|
|
76
|
-
color: lumx-color-variant('dark', '
|
|
76
|
+
color: lumx-color-variant('dark', 'L1');
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
#{$self}--theme-dark & {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
text-align: center;
|
|
88
88
|
|
|
89
89
|
#{$self}--theme-light & {
|
|
90
|
-
color: lumx-color-variant('dark', '
|
|
90
|
+
color: lumx-color-variant('dark', 'L1');
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
#{$self}--theme-dark & {
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
33
33
|
background-color: lumx-color-variant($color, 'L5');
|
|
34
34
|
color: lumx-color-variant($color, 'N');
|
|
35
|
+
|
|
36
|
+
@if $color == 'dark' {
|
|
37
|
+
.#{$lumx-base-prefix}-icon {
|
|
38
|
+
color: lumx-color-variant('dark', 'L1');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
35
41
|
} @else if $state == lumx-base-const('state', 'HOVER') {
|
|
36
42
|
background-color: lumx-color-variant($color, 'L4');
|
|
37
43
|
} @else if $state == lumx-base-const('state', 'ACTIVE') {
|
|
@@ -50,12 +56,14 @@
|
|
|
50
56
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
51
57
|
background-color: lumx-color-variant('primary', 'L5');
|
|
52
58
|
color: lumx-color-variant('primary', 'D2');
|
|
59
|
+
|
|
60
|
+
.#{$lumx-base-prefix}-icon {
|
|
61
|
+
color: lumx-color-variant('primary', 'D2');
|
|
62
|
+
}
|
|
53
63
|
} @else if $state == lumx-base-const('state', 'HOVER') {
|
|
54
64
|
background-color: lumx-color-variant('primary', 'L4');
|
|
55
|
-
color: lumx-color-variant('primary', 'D2');
|
|
56
65
|
} @else if $state == lumx-base-const('state', 'ACTIVE') {
|
|
57
66
|
background-color: lumx-color-variant('primary', 'L3');
|
|
58
|
-
color: lumx-color-variant('primary', 'D2');
|
|
59
67
|
} @else if $state == lumx-base-const('state', 'FOCUS') {
|
|
60
68
|
@if $has-focus-inset == true {
|
|
61
69
|
box-shadow: inset 0 0 0 2px lumx-color-variant('primary', 'L3');
|
|
@@ -67,12 +75,14 @@
|
|
|
67
75
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
68
76
|
background-color: lumx-color-variant('light', 'L3');
|
|
69
77
|
color: lumx-color-variant('light', 'N');
|
|
78
|
+
|
|
79
|
+
.#{$lumx-base-prefix}-icon {
|
|
80
|
+
color: lumx-color-variant('light', 'N');
|
|
81
|
+
}
|
|
70
82
|
} @else if $state == lumx-base-const('state', 'HOVER') {
|
|
71
83
|
background-color: lumx-color-variant('light', 'L4');
|
|
72
|
-
color: lumx-color-variant('light', 'N');
|
|
73
84
|
} @else if $state == lumx-base-const('state', 'ACTIVE') {
|
|
74
85
|
background-color: lumx-color-variant('light', 'L5');
|
|
75
|
-
color: lumx-color-variant('light', 'N');
|
|
76
86
|
} @else if $state == lumx-base-const('state', 'FOCUS') {
|
|
77
87
|
@if $has-focus-inset == true {
|
|
78
88
|
box-shadow: inset 0 0 0 2px lumx-color-variant('light', 'L3');
|
|
@@ -87,6 +97,12 @@
|
|
|
87
97
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
88
98
|
background-color: transparent;
|
|
89
99
|
color: lumx-color-variant($color, 'N');
|
|
100
|
+
|
|
101
|
+
@if $color == 'dark' {
|
|
102
|
+
.#{$lumx-base-prefix}-icon {
|
|
103
|
+
color: lumx-color-variant('dark', 'L1');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
90
106
|
} @else if $state == lumx-base-const('state', 'HOVER') {
|
|
91
107
|
background-color: lumx-color-variant($color, 'L5');
|
|
92
108
|
} @else if $state == lumx-base-const('state', 'ACTIVE') {
|