scu-web-components 0.0.39 → 0.0.41
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/breakpoints.js +19 -0
- package/dist/breakpoints.js.gz +0 -0
- package/dist/breakpoints.ts +19 -0
- package/dist/custom-elements.json +1608 -1608
- package/dist/custom-elements.json.gz +0 -0
- package/dist/docs/components/manifest.json +30 -30
- package/dist/docs/config.json +1 -1
- package/dist/tokens/css.html +2 -2
- package/dist/tokens/css.html.gz +0 -0
- package/dist/tokens/source/cssPropertiesApi.css +599 -567
- package/dist/tokens/source/cssPropertiesApi.css.gz +0 -0
- package/dist/tokens/source/cssPropertiesApi.ts +5 -0
- package/dist/tokens/source/cssPropertiesApiTypedStyles.ts +15 -5
- package/dist/tokens/source/cssPropertiesApiTypedStylesCssType.ts +12 -4
- package/dist/tokens/source/cssVariables/breakpoints-lg-.json +2 -2
- package/dist/tokens/source/cssVariables/breakpoints-lg-.json.gz +0 -0
- package/dist/tokens/source/cssVariables/breakpoints-md-.json +2 -2
- package/dist/tokens/source/cssVariables/breakpoints-md-.json.gz +0 -0
- package/dist/tokens/source/cssVariables/breakpoints-sm-.json +2 -2
- package/dist/tokens/source/cssVariables/breakpoints-sm-.json.gz +0 -0
- package/dist/tokens/source/cssVariables/breakpoints-xlg-.json +2 -2
- package/dist/tokens/source/cssVariables/breakpoints-xlg-.json.gz +0 -0
- package/dist/tokens/source/cssVariables.css +8 -8
- package/dist/tokens/source/cssVariables.css.gz +0 -0
- package/dist/tokens/source/cssVariables.json +8 -8
- package/dist/tokens/source/cssVariables.json.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +2 -2
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +2 -2
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/tokens/source/tokens.json +8 -8
- package/dist/tokens/source/tokens.json.gz +0 -0
- package/dist/tokens/styles.css +8 -8
- package/dist/tokens/styles.css.gz +0 -0
- package/dist/tokens/stylesEmbedded.css +8 -8
- package/dist/tokens/stylesEmbedded.css.gz +0 -0
- package/dist/tokens/tokens.html +2 -2
- package/dist/tokens/tokens.html.gz +0 -0
- package/package.json +3 -2
|
Binary file
|
|
@@ -19,6 +19,7 @@ export type SCWProp = {
|
|
|
19
19
|
borderBottom? : SCWColorValue,
|
|
20
20
|
borderLeft? : SCWColorValue,
|
|
21
21
|
borderRight? : SCWColorValue,
|
|
22
|
+
border? : SCWColorValue,
|
|
22
23
|
font? : SCWTypeValue,
|
|
23
24
|
size? : SCWSpacingValue,
|
|
24
25
|
maxSize? : SCWSpacingValue,
|
|
@@ -118,6 +119,7 @@ export type SCWProp = {
|
|
|
118
119
|
borderBottomXlg? : SCWColorValue,
|
|
119
120
|
borderLeftXlg? : SCWColorValue,
|
|
120
121
|
borderRightXlg? : SCWColorValue,
|
|
122
|
+
borderXlg? : SCWColorValue,
|
|
121
123
|
fontXlg? : SCWTypeValue,
|
|
122
124
|
sizeXlg? : SCWSpacingValue,
|
|
123
125
|
maxSizeXlg? : SCWSpacingValue,
|
|
@@ -217,6 +219,7 @@ export type SCWProp = {
|
|
|
217
219
|
borderBottomLg? : SCWColorValue,
|
|
218
220
|
borderLeftLg? : SCWColorValue,
|
|
219
221
|
borderRightLg? : SCWColorValue,
|
|
222
|
+
borderLg? : SCWColorValue,
|
|
220
223
|
fontLg? : SCWTypeValue,
|
|
221
224
|
sizeLg? : SCWSpacingValue,
|
|
222
225
|
maxSizeLg? : SCWSpacingValue,
|
|
@@ -316,6 +319,7 @@ export type SCWProp = {
|
|
|
316
319
|
borderBottomMd? : SCWColorValue,
|
|
317
320
|
borderLeftMd? : SCWColorValue,
|
|
318
321
|
borderRightMd? : SCWColorValue,
|
|
322
|
+
borderMd? : SCWColorValue,
|
|
319
323
|
fontMd? : SCWTypeValue,
|
|
320
324
|
sizeMd? : SCWSpacingValue,
|
|
321
325
|
maxSizeMd? : SCWSpacingValue,
|
|
@@ -415,6 +419,7 @@ export type SCWProp = {
|
|
|
415
419
|
borderBottomSm? : SCWColorValue,
|
|
416
420
|
borderLeftSm? : SCWColorValue,
|
|
417
421
|
borderRightSm? : SCWColorValue,
|
|
422
|
+
borderSm? : SCWColorValue,
|
|
418
423
|
fontSm? : SCWTypeValue,
|
|
419
424
|
sizeSm? : SCWSpacingValue,
|
|
420
425
|
maxSizeSm? : SCWSpacingValue,
|
|
@@ -10,20 +10,30 @@ import type * as CSS from 'csstype';
|
|
|
10
10
|
* @param {CSS.Properties} otherStyles
|
|
11
11
|
* @return {string}
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
13
|
+
export default function style(
|
|
14
14
|
dsysStyles: SCWProp,
|
|
15
15
|
otherStyles: CSS.Properties = {},
|
|
16
16
|
) : string {
|
|
17
|
+
|
|
18
|
+
const toKebab = (str) => str.replace(/([a-z0–9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
19
|
+
|
|
17
20
|
return `style="${
|
|
18
21
|
Object.entries(dsysStyles).map((entry) => {
|
|
19
|
-
if (entry[
|
|
20
|
-
|
|
22
|
+
if (!entry[0]) return '';
|
|
23
|
+
const name = toKebab(entry[0]);
|
|
24
|
+
const value = entry[1];
|
|
25
|
+
if (value === true) {
|
|
26
|
+
return `--scw-${name}: 1;`;
|
|
27
|
+
}else if (!isNaN(value as any)) {
|
|
28
|
+
return `--scw-${name}: ${value};`;
|
|
21
29
|
}else{
|
|
22
|
-
return `--scw-${
|
|
30
|
+
return `--scw-${name}: var( --scw-${value} );`;
|
|
23
31
|
}
|
|
24
32
|
}).join('\n ')}${
|
|
25
33
|
Object.entries(otherStyles).map((entry) => {
|
|
26
|
-
|
|
34
|
+
if (!entry[0]) return '';
|
|
35
|
+
const name = toKebab(entry[0]);
|
|
36
|
+
return `${name}: ${entry[1]};`;
|
|
27
37
|
}).join('\n ')
|
|
28
38
|
}"`;
|
|
29
39
|
}
|
|
@@ -3,7 +3,7 @@ import { SCWProp } from "./cssPropertiesApi";
|
|
|
3
3
|
import type * as CSS from 'csstype';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* style
|
|
7
7
|
* Function for dynamically creating and auto-completing
|
|
8
8
|
* scw design system files.
|
|
9
9
|
* @param {DSysProp} dsysStyles
|
|
@@ -14,12 +14,20 @@ export function scw(
|
|
|
14
14
|
dsysStyles: SCWProp,
|
|
15
15
|
otherStyles: CSS.Properties = {},
|
|
16
16
|
) : CSS.Properties {
|
|
17
|
+
|
|
18
|
+
const toKebab = (str) => str.replace(/([a-z0–9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
19
|
+
|
|
17
20
|
const dsysStylesObj: {[key:`--scw-${string}`]: string} = {};
|
|
18
21
|
Object.entries(dsysStyles).map((entry) => {
|
|
19
|
-
if (entry[
|
|
20
|
-
|
|
22
|
+
if (!entry[0]) return '';
|
|
23
|
+
const name = toKebab(entry[0]);
|
|
24
|
+
const value = entry[1];
|
|
25
|
+
if (value === true) {
|
|
26
|
+
dsysStylesObj[`--scw-${name}`] = '1';
|
|
27
|
+
}else if (!isNaN(value as any)) {
|
|
28
|
+
return `--scw-${name}: ${value};`;
|
|
21
29
|
}else{
|
|
22
|
-
dsysStylesObj[`--scw-${
|
|
30
|
+
dsysStylesObj[`--scw-${name}`] = `var( --scw-${value} )`;
|
|
23
31
|
}
|
|
24
32
|
});
|
|
25
33
|
return {
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"category": "Breakpoint"
|
|
6
6
|
},
|
|
7
7
|
"max-width": {
|
|
8
|
-
"output": "--scw-breakpoint-lg-max-width:
|
|
8
|
+
"output": "--scw-breakpoint-lg-max-width: 0px;",
|
|
9
9
|
"property": "--scw-breakpoint-lg-max-width",
|
|
10
10
|
"category": "Breakpoint"
|
|
11
11
|
},
|
|
12
12
|
"min-width": {
|
|
13
|
-
"output": "--scw-breakpoint-lg-min-width:
|
|
13
|
+
"output": "--scw-breakpoint-lg-min-width: 992px;",
|
|
14
14
|
"property": "--scw-breakpoint-lg-min-width",
|
|
15
15
|
"category": "Breakpoint"
|
|
16
16
|
}
|
|
Binary file
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"category": "Breakpoint"
|
|
6
6
|
},
|
|
7
7
|
"max-width": {
|
|
8
|
-
"output": "--scw-breakpoint-md-max-width:
|
|
8
|
+
"output": "--scw-breakpoint-md-max-width: 0px;",
|
|
9
9
|
"property": "--scw-breakpoint-md-max-width",
|
|
10
10
|
"category": "Breakpoint"
|
|
11
11
|
},
|
|
12
12
|
"min-width": {
|
|
13
|
-
"output": "--scw-breakpoint-md-min-width:
|
|
13
|
+
"output": "--scw-breakpoint-md-min-width: 768px;",
|
|
14
14
|
"property": "--scw-breakpoint-md-min-width",
|
|
15
15
|
"category": "Breakpoint"
|
|
16
16
|
}
|
|
Binary file
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"category": "Breakpoint"
|
|
6
6
|
},
|
|
7
7
|
"max-width": {
|
|
8
|
-
"output": "--scw-breakpoint-sm-max-width:
|
|
8
|
+
"output": "--scw-breakpoint-sm-max-width: 0px;",
|
|
9
9
|
"property": "--scw-breakpoint-sm-max-width",
|
|
10
10
|
"category": "Breakpoint"
|
|
11
11
|
},
|
|
12
12
|
"min-width": {
|
|
13
|
-
"output": "--scw-breakpoint-sm-min-width:
|
|
13
|
+
"output": "--scw-breakpoint-sm-min-width: 576px;",
|
|
14
14
|
"property": "--scw-breakpoint-sm-min-width",
|
|
15
15
|
"category": "Breakpoint"
|
|
16
16
|
}
|
|
Binary file
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"category": "Breakpoint"
|
|
6
6
|
},
|
|
7
7
|
"max-width": {
|
|
8
|
-
"output": "--scw-breakpoint-xlg-max-width:
|
|
8
|
+
"output": "--scw-breakpoint-xlg-max-width: 0px;",
|
|
9
9
|
"property": "--scw-breakpoint-xlg-max-width",
|
|
10
10
|
"category": "Breakpoint"
|
|
11
11
|
},
|
|
12
12
|
"min-width": {
|
|
13
|
-
"output": "--scw-breakpoint-xlg-min-width:
|
|
13
|
+
"output": "--scw-breakpoint-xlg-min-width: 1200px;",
|
|
14
14
|
"property": "--scw-breakpoint-xlg-min-width",
|
|
15
15
|
"category": "Breakpoint"
|
|
16
16
|
}
|
|
Binary file
|
|
@@ -309,15 +309,15 @@
|
|
|
309
309
|
--scw-colvw-11: 91.6667vw;
|
|
310
310
|
--scw-colvw-12: 100vw;
|
|
311
311
|
--scw-breakpoint-xlg-name: xlg;
|
|
312
|
-
--scw-breakpoint-xlg-max-width:
|
|
313
|
-
--scw-breakpoint-xlg-min-width:
|
|
312
|
+
--scw-breakpoint-xlg-max-width: 0px;
|
|
313
|
+
--scw-breakpoint-xlg-min-width: 1200px;
|
|
314
314
|
--scw-breakpoint-lg-name: lg;
|
|
315
|
-
--scw-breakpoint-lg-max-width:
|
|
316
|
-
--scw-breakpoint-lg-min-width:
|
|
315
|
+
--scw-breakpoint-lg-max-width: 0px;
|
|
316
|
+
--scw-breakpoint-lg-min-width: 992px;
|
|
317
317
|
--scw-breakpoint-md-name: md;
|
|
318
|
-
--scw-breakpoint-md-max-width:
|
|
319
|
-
--scw-breakpoint-md-min-width:
|
|
318
|
+
--scw-breakpoint-md-max-width: 0px;
|
|
319
|
+
--scw-breakpoint-md-min-width: 768px;
|
|
320
320
|
--scw-breakpoint-sm-name: sm;
|
|
321
|
-
--scw-breakpoint-sm-max-width:
|
|
322
|
-
--scw-breakpoint-sm-min-width:
|
|
321
|
+
--scw-breakpoint-sm-max-width: 0px;
|
|
322
|
+
--scw-breakpoint-sm-min-width: 576px;
|
|
323
323
|
}
|
|
Binary file
|
|
@@ -2152,12 +2152,12 @@
|
|
|
2152
2152
|
"category": "Breakpoint"
|
|
2153
2153
|
},
|
|
2154
2154
|
"max-width": {
|
|
2155
|
-
"output": "--scw-breakpoint-xlg-max-width:
|
|
2155
|
+
"output": "--scw-breakpoint-xlg-max-width: 0px;",
|
|
2156
2156
|
"property": "--scw-breakpoint-xlg-max-width",
|
|
2157
2157
|
"category": "Breakpoint"
|
|
2158
2158
|
},
|
|
2159
2159
|
"min-width": {
|
|
2160
|
-
"output": "--scw-breakpoint-xlg-min-width:
|
|
2160
|
+
"output": "--scw-breakpoint-xlg-min-width: 1200px;",
|
|
2161
2161
|
"property": "--scw-breakpoint-xlg-min-width",
|
|
2162
2162
|
"category": "Breakpoint"
|
|
2163
2163
|
}
|
|
@@ -2169,12 +2169,12 @@
|
|
|
2169
2169
|
"category": "Breakpoint"
|
|
2170
2170
|
},
|
|
2171
2171
|
"max-width": {
|
|
2172
|
-
"output": "--scw-breakpoint-lg-max-width:
|
|
2172
|
+
"output": "--scw-breakpoint-lg-max-width: 0px;",
|
|
2173
2173
|
"property": "--scw-breakpoint-lg-max-width",
|
|
2174
2174
|
"category": "Breakpoint"
|
|
2175
2175
|
},
|
|
2176
2176
|
"min-width": {
|
|
2177
|
-
"output": "--scw-breakpoint-lg-min-width:
|
|
2177
|
+
"output": "--scw-breakpoint-lg-min-width: 992px;",
|
|
2178
2178
|
"property": "--scw-breakpoint-lg-min-width",
|
|
2179
2179
|
"category": "Breakpoint"
|
|
2180
2180
|
}
|
|
@@ -2186,12 +2186,12 @@
|
|
|
2186
2186
|
"category": "Breakpoint"
|
|
2187
2187
|
},
|
|
2188
2188
|
"max-width": {
|
|
2189
|
-
"output": "--scw-breakpoint-md-max-width:
|
|
2189
|
+
"output": "--scw-breakpoint-md-max-width: 0px;",
|
|
2190
2190
|
"property": "--scw-breakpoint-md-max-width",
|
|
2191
2191
|
"category": "Breakpoint"
|
|
2192
2192
|
},
|
|
2193
2193
|
"min-width": {
|
|
2194
|
-
"output": "--scw-breakpoint-md-min-width:
|
|
2194
|
+
"output": "--scw-breakpoint-md-min-width: 768px;",
|
|
2195
2195
|
"property": "--scw-breakpoint-md-min-width",
|
|
2196
2196
|
"category": "Breakpoint"
|
|
2197
2197
|
}
|
|
@@ -2203,12 +2203,12 @@
|
|
|
2203
2203
|
"category": "Breakpoint"
|
|
2204
2204
|
},
|
|
2205
2205
|
"max-width": {
|
|
2206
|
-
"output": "--scw-breakpoint-sm-max-width:
|
|
2206
|
+
"output": "--scw-breakpoint-sm-max-width: 0px;",
|
|
2207
2207
|
"property": "--scw-breakpoint-sm-max-width",
|
|
2208
2208
|
"category": "Breakpoint"
|
|
2209
2209
|
},
|
|
2210
2210
|
"min-width": {
|
|
2211
|
-
"output": "--scw-breakpoint-sm-min-width:
|
|
2211
|
+
"output": "--scw-breakpoint-sm-min-width: 576px;",
|
|
2212
2212
|
"property": "--scw-breakpoint-sm-min-width",
|
|
2213
2213
|
"category": "Breakpoint"
|
|
2214
2214
|
}
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
constructor (config) {// version, extraCssPromise, config ) {
|
|
5
5
|
this.prefix = 'scw';// dynamic
|
|
6
|
-
this.buildUUID = '
|
|
6
|
+
this.buildUUID = '1d7ca81d-9e0b-457a-aec7-0826a63d2aa0';// dynamic
|
|
7
7
|
|
|
8
8
|
this.generator = false;
|
|
9
9
|
this.initialized = false;
|
|
Binary file
|