@symbo.ls/scratch 3.2.3 → 3.2.8

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.
Files changed (66) hide show
  1. package/dist/cjs/factory.js +23 -494
  2. package/dist/cjs/index.js +11 -2742
  3. package/dist/cjs/set.js +66 -2060
  4. package/dist/esm/factory.js +43 -0
  5. package/dist/esm/index.js +12 -0
  6. package/dist/esm/set.js +148 -0
  7. package/dist/iife/index.js +2580 -0
  8. package/package.json +25 -15
  9. package/src/set.js +22 -7
  10. package/src/system/color.js +48 -11
  11. package/src/system/font.js +19 -5
  12. package/src/system/reset.js +12 -3
  13. package/src/system/shadow.js +20 -13
  14. package/src/system/spacing.js +63 -56
  15. package/src/system/theme.js +4 -3
  16. package/src/system/timing.js +1 -1
  17. package/src/transforms/index.js +212 -95
  18. package/src/utils/color.js +79 -0
  19. package/src/utils/font.js +54 -14
  20. package/src/utils/sequence.js +94 -39
  21. package/src/utils/sprite.js +2 -2
  22. package/src/utils/unit.js +69 -2
  23. package/src/utils/var.js +1 -2
  24. package/dist/cjs/defaultConfig/animation.js +0 -26
  25. package/dist/cjs/defaultConfig/cases.js +0 -26
  26. package/dist/cjs/defaultConfig/class.js +0 -27
  27. package/dist/cjs/defaultConfig/color.js +0 -28
  28. package/dist/cjs/defaultConfig/document.js +0 -26
  29. package/dist/cjs/defaultConfig/font-family.js +0 -34
  30. package/dist/cjs/defaultConfig/font.js +0 -26
  31. package/dist/cjs/defaultConfig/grid.js +0 -27
  32. package/dist/cjs/defaultConfig/icons.js +0 -28
  33. package/dist/cjs/defaultConfig/index.js +0 -222
  34. package/dist/cjs/defaultConfig/media.js +0 -31
  35. package/dist/cjs/defaultConfig/responsive.js +0 -52
  36. package/dist/cjs/defaultConfig/sequence.js +0 -51
  37. package/dist/cjs/defaultConfig/shadow.js +0 -26
  38. package/dist/cjs/defaultConfig/spacing.js +0 -87
  39. package/dist/cjs/defaultConfig/svg.js +0 -28
  40. package/dist/cjs/defaultConfig/templates.js +0 -26
  41. package/dist/cjs/defaultConfig/theme.js +0 -26
  42. package/dist/cjs/defaultConfig/timing.js +0 -68
  43. package/dist/cjs/defaultConfig/typography.js +0 -72
  44. package/dist/cjs/defaultConfig/unit.js +0 -28
  45. package/dist/cjs/package.json +0 -4
  46. package/dist/cjs/system/color.js +0 -1175
  47. package/dist/cjs/system/document.js +0 -987
  48. package/dist/cjs/system/font.js +0 -1009
  49. package/dist/cjs/system/index.js +0 -2227
  50. package/dist/cjs/system/reset.js +0 -1099
  51. package/dist/cjs/system/shadow.js +0 -1384
  52. package/dist/cjs/system/spacing.js +0 -1338
  53. package/dist/cjs/system/svg.js +0 -1086
  54. package/dist/cjs/system/theme.js +0 -1276
  55. package/dist/cjs/system/timing.js +0 -1213
  56. package/dist/cjs/system/typography.js +0 -1311
  57. package/dist/cjs/tests/index.js +0 -30
  58. package/dist/cjs/transforms/index.js +0 -1613
  59. package/dist/cjs/utils/color.js +0 -333
  60. package/dist/cjs/utils/font.js +0 -69
  61. package/dist/cjs/utils/index.js +0 -1548
  62. package/dist/cjs/utils/sequence.js +0 -1198
  63. package/dist/cjs/utils/sprite.js +0 -579
  64. package/dist/cjs/utils/theme.js +0 -31
  65. package/dist/cjs/utils/unit.js +0 -28
  66. package/dist/cjs/utils/var.js +0 -1040
@@ -1,9 +1,10 @@
1
1
  'use strict'
2
2
 
3
3
  import { isString } from '@domql/utils'
4
- import { toDashCase } from '@symbo.ls/utils'
4
+ import { toDashCase } from '@symbo.ls/smbls-utils'
5
5
  import { getActiveConfig } from '../factory.js'
6
- import { isScalingUnit } from './unit.js'
6
+ import { CSS_UNITS, isScalingUnit } from './unit.js'
7
+ import { isCSSVar } from './color.js'
7
8
 
8
9
  export const numToLetterMap = {
9
10
  '-6': 'U',
@@ -39,7 +40,7 @@ const setSequenceValue = (props, sequenceProps) => {
39
40
  sequenceProps.sequence[key] = {
40
41
  key,
41
42
  decimal: ~~(value * 100) / 100,
42
- val: ~~(value),
43
+ val: ~~value,
43
44
  scaling,
44
45
  index,
45
46
  scalingVariable,
@@ -49,6 +50,13 @@ const setSequenceValue = (props, sequenceProps) => {
49
50
  sequenceProps.vars[variable] = scaling + sequenceProps.unit
50
51
  }
51
52
 
53
+ export const getFnPrefixAndValue = (val) => {
54
+ if (!val.includes('(')) return val
55
+ const prefix = val.split('(')[0]
56
+ const value = val.slice(val.indexOf('(') + 1, val.lastIndexOf(')'))
57
+ return [prefix, value]
58
+ }
59
+
52
60
  export const setScalingVar = (key, sequenceProps) => {
53
61
  const { base, type, unit } = sequenceProps
54
62
 
@@ -81,16 +89,16 @@ export const setSubScalingVar = (index, arr, variable, sequenceProps) => {
81
89
  }
82
90
 
83
91
  export const getSubratioDifference = (base, ratio) => {
84
- const diff = (base * ratio - base)
92
+ const diff = base * ratio - base
85
93
  const subRatio = diff / 1.618
86
- const first = (base * ratio - subRatio)
94
+ const first = base * ratio - subRatio
87
95
  const second = base + subRatio
88
96
  const middle = (first + second) / 2
89
97
  return [first, middle, second]
90
98
  }
91
99
 
92
100
  export const getSubratio = (base, ratio) => {
93
- return getSubratioDifference(base, ratio).map(v => v / base)
101
+ return getSubratioDifference(base, ratio).map((v) => v / base)
94
102
  }
95
103
 
96
104
  export const generateSubSequence = (props, sequenceProps) => {
@@ -105,10 +113,15 @@ export const generateSubSequence = (props, sequenceProps) => {
105
113
  else arr = [first, second]
106
114
 
107
115
  arr.forEach((v, k) => {
108
- const scaling = ~~(v / base * 1000) / 1000
116
+ const scaling = ~~((v / base) * 1000) / 1000
109
117
  const newVar = variable + (k + 1)
110
118
  const newIndex = index + (k + 1) / 10
111
- const scalingVariable = setSubScalingVar(k + 1, arr, variable, sequenceProps)
119
+ const scalingVariable = setSubScalingVar(
120
+ k + 1,
121
+ arr,
122
+ variable,
123
+ sequenceProps
124
+ )
112
125
 
113
126
  const props = {
114
127
  key: key + (k + 1),
@@ -146,7 +159,7 @@ export const generateSequence = (sequenceProps) => {
146
159
  const key = range[1] - i
147
160
  const letterKey = numToLetterMap[key]
148
161
  const value = switchSequenceOnNegative(key, base, ratio)
149
- const scaling = ~~(value / base * 100) / 100
162
+ const scaling = ~~((value / base) * 100) / 100
150
163
  const variable = prefix + letterKey
151
164
  const scalingVariable = setScalingVar(key, sequenceProps)
152
165
 
@@ -176,7 +189,7 @@ export const generateSequencePosition = (sequenceProps, position = 0) => {
176
189
  ([, value]) => value === position
177
190
  )?.[0]
178
191
  : position
179
-
192
+
180
193
  if (!letterKey) {
181
194
  console.warn(`Position ${position} is out of range in numToLetterMap`)
182
195
  return null
@@ -219,32 +232,31 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
219
232
  const CONFIG = getActiveConfig()
220
233
  const { UNIT } = CONFIG
221
234
 
222
- const {
223
- sequence,
224
- unit = UNIT.default,
225
- useVariable
226
- } = sequenceProps
235
+ if (isString(value) && isCSSVar(value)) return `var(${value})`
227
236
 
228
- if (isString(value) && value.slice(0, 2) === '--') return `var(${value})`
229
-
230
- const prefix = `--${toDashCase(sequenceProps.type.replace('.', '-'))}-`
237
+ const { sequence, unit = UNIT.default, useVariable } = sequenceProps
231
238
 
232
239
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i
233
240
  const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value)
234
241
 
235
- if (
236
- value === 'none' ||
237
- value === 'auto' ||
238
- value === 'unset' ||
239
- value === 'inherit' ||
240
- value === 'fit-content' ||
241
- value === 'min-content' ||
242
- value === 'max-content' ||
243
- value.includes('calc') ||
244
- value.includes('var') ||
245
- !startsWithDashOrLetter
246
- ) return value
242
+ const hasUnits = CSS_UNITS.some((unit) => value.includes(unit))
243
+ if (hasUnits || !startsWithDashOrLetter) return value
244
+
245
+ const skipArr = [
246
+ 'none',
247
+ 'auto',
248
+ 'max-content',
249
+ 'min-content',
250
+ 'fit-content',
251
+ 'inherit',
252
+ 'initial',
253
+ 'unset',
254
+ 'revert',
255
+ 'revert-layer'
256
+ ]
257
+ if (skipArr.includes(value)) return value
247
258
 
259
+ const prefix = `--${toDashCase(sequenceProps.type.replace('.', '-'))}-`
248
260
  const letterVal = value.toUpperCase()
249
261
  const isNegative = letterVal.slice(0, 1) === '-' ? '-' : ''
250
262
  let absValue = isNegative ? letterVal.slice(1) : letterVal
@@ -255,7 +267,8 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
255
267
  absValue = absValue.split('_')[0]
256
268
  }
257
269
 
258
- const varValue = v => startsWithDashOrLetterRegex.test(v) ? `var(${prefix}${v}${mediaName})` : v
270
+ const varValue = (v) =>
271
+ startsWithDashOrLetterRegex.test(v) ? `var(${prefix}${v}${mediaName})` : v
259
272
  if (absValue.includes('+')) {
260
273
  const [first, second] = absValue.split('+')
261
274
  const joint = `${varValue(first)} + ${varValue(second)}`
@@ -274,7 +287,11 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
274
287
 
275
288
  // if subsequence is not set but value is applied
276
289
  if (!sequence[absValue] && absValue.length === 2) {
277
- if (CONFIG.verbose) console.warn(absValue, '- value is not found because `subSequence` is set to false')
290
+ if (CONFIG.verbose)
291
+ console.warn(
292
+ absValue,
293
+ '- value is not found because `subSequence` is set to false'
294
+ )
278
295
  absValue = absValue.slice(0, 1)
279
296
  }
280
297
 
@@ -284,7 +301,7 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
284
301
  }
285
302
 
286
303
  const sequenceItem = sequence ? sequence[absValue] : null
287
- if (!sequenceItem) return console.warn('can\'t find', sequence, absValue)
304
+ if (!sequenceItem) return console.warn("can't find", sequence, absValue)
288
305
 
289
306
  if (unit === 'ms' || unit === 's') {
290
307
  return isNegative + sequenceItem.val + unit
@@ -293,19 +310,57 @@ export const getSequenceValue = (value = 'A', sequenceProps) => {
293
310
  return isNegative + sequenceItem.scaling + unit
294
311
  }
295
312
 
296
- export const getSequenceValuePropertyPair = (value, propertyName, sequenceProps) => {
313
+ export const getSequenceValueBySymbols = (value, sequenceProps) => {
314
+ const mathArr = ['+', '-', '*', '/', ','].filter((v) =>
315
+ value.includes(v + ' ')
316
+ )
317
+ if (!mathArr.length) return value
318
+
319
+ return mathArr
320
+ .map((symbol) => {
321
+ const valuesArr = value.split(symbol + ' ').map((v) => v.trim())
322
+ const transformedValues = valuesArr.map((v) => {
323
+ return getSequenceValue(v, sequenceProps)
324
+ })
325
+ return transformedValues.join(' ' + symbol + ' ')
326
+ })
327
+ .join('')
328
+ }
329
+
330
+ export const getSequenceValuePropertyPair = (
331
+ value,
332
+ propertyName,
333
+ sequenceProps,
334
+ fnPrefix
335
+ ) => {
297
336
  if (typeof value !== 'string') {
298
337
  const CONFIG = getActiveConfig()
299
338
  if (CONFIG.verbose) console.warn(propertyName, value, 'is not a string')
300
- return ({ [propertyName]: value })
339
+ return { [propertyName]: value }
301
340
  }
302
- if (value === '-' || value === '') return ({})
303
- return { [propertyName]: getSequenceValue(value, sequenceProps) }
341
+
342
+ if (value === '-' || value === '') return {}
343
+
344
+ if (!fnPrefix && value.includes('(')) {
345
+ const fnArr = getFnPrefixAndValue(value)
346
+ fnPrefix = fnArr[0]
347
+ value = fnArr[1]
348
+ }
349
+
350
+ const mathArr = ['+', '-', '*', '/', ','].filter((v) =>
351
+ value.includes(v + ' ')
352
+ )
353
+ if (mathArr.length) {
354
+ value = getSequenceValueBySymbols(value, sequenceProps)
355
+ } else value = getSequenceValue(value, sequenceProps)
356
+
357
+ return { [propertyName]: fnPrefix ? `${fnPrefix}(${value})` : value }
304
358
  }
305
359
 
306
- export const findHeadingLetter = (h1Matches, index) => numToLetterMap[h1Matches - index]
360
+ export const findHeadingLetter = (h1Matches, index) =>
361
+ numToLetterMap[h1Matches - index]
307
362
 
308
- export const findHeadings = propertyNames => {
363
+ export const findHeadings = (propertyNames) => {
309
364
  const { h1Matches, sequence } = propertyNames
310
365
  return new Array(6).fill(null).map((_, i) => {
311
366
  const findLetter = findHeadingLetter(h1Matches, i)
@@ -5,7 +5,7 @@ import { getActiveConfig } from '../factory'
5
5
 
6
6
  const isDev = isNotProduction()
7
7
 
8
- export const generateSprite = icons => {
8
+ export const generateSprite = (icons) => {
9
9
  const CONFIG = getActiveConfig()
10
10
 
11
11
  let sprite = ''
@@ -19,7 +19,7 @@ export const generateSprite = icons => {
19
19
  return sprite
20
20
  }
21
21
 
22
- const parseRootAttributes = htmlString => {
22
+ const parseRootAttributes = (htmlString) => {
23
23
  const val = htmlString.default || htmlString
24
24
  if (!isString(val)) {
25
25
  if (isDev) console.warn('parseRootAttributes:', val, 'is not a string')
package/src/utils/unit.js CHANGED
@@ -1,5 +1,72 @@
1
1
  'use strict'
2
2
 
3
- export const isScalingUnit = unit => {
4
- return unit === 'em' || unit === 'rem' || unit === 'vw' || unit === 'vh' || unit === 'vmax' || unit === 'vmin'
3
+ export const isScalingUnit = (unit) => {
4
+ return (
5
+ unit === 'em' ||
6
+ unit === 'rem' ||
7
+ unit === 'vw' ||
8
+ unit === 'vh' ||
9
+ unit === 'vmax' ||
10
+ unit === 'vmin'
11
+ )
5
12
  }
13
+
14
+ export const CSS_UNITS = [
15
+ // Absolute
16
+ 'px',
17
+ 'cm',
18
+ 'mm',
19
+ 'in',
20
+ 'pt',
21
+ 'pc',
22
+
23
+ // Font-relative
24
+ 'em',
25
+ 'rem',
26
+ 'ex',
27
+ 'cap',
28
+ 'ch',
29
+ 'ic',
30
+ 'lh',
31
+ 'rlh',
32
+
33
+ // Viewport-relative
34
+ '%',
35
+ 'vw',
36
+ 'vh',
37
+ 'vmin',
38
+ 'vmax',
39
+ 'svw',
40
+ 'svh',
41
+ 'lvw',
42
+ 'lvh',
43
+ 'dvw',
44
+ 'dvh',
45
+
46
+ // Container query units
47
+ 'cqw',
48
+ 'cqh',
49
+ 'cqi',
50
+ 'cqb',
51
+ 'cqmin',
52
+ 'cqmax',
53
+
54
+ // Angle
55
+ 'deg',
56
+ 'rad',
57
+ 'grad',
58
+ 'turn',
59
+
60
+ // Time
61
+ 's',
62
+ 'ms',
63
+
64
+ // Resolution
65
+ 'dpi',
66
+ 'dpcm',
67
+ 'dppx',
68
+
69
+ // Grid fractional
70
+ 'fr',
71
+ 'auto'
72
+ ]
package/src/utils/var.js CHANGED
@@ -9,8 +9,7 @@ export const setVariables = (result, key) => {
9
9
  const CONFIG = getActiveConfig()
10
10
  const { CSS_VARS } = CONFIG
11
11
  if (isObjectLike(result.value)) {
12
- // for (const key in result.value) {
13
- // }
12
+ // TODO: handle nested object variables
14
13
  } else {
15
14
  CSS_VARS[result.var] = result.value
16
15
  }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/animation.js
21
- var animation_exports = {};
22
- __export(animation_exports, {
23
- ANIMATION: () => ANIMATION
24
- });
25
- module.exports = __toCommonJS(animation_exports);
26
- var ANIMATION = {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/cases.js
21
- var cases_exports = {};
22
- __export(cases_exports, {
23
- CASES: () => CASES
24
- });
25
- module.exports = __toCommonJS(cases_exports);
26
- var CASES = {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/class.js
21
- var class_exports = {};
22
- __export(class_exports, {
23
- CLASS: () => CLASS
24
- });
25
- module.exports = __toCommonJS(class_exports);
26
- var defaultProps = {};
27
- var CLASS = defaultProps;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/color.js
21
- var color_exports = {};
22
- __export(color_exports, {
23
- COLOR: () => COLOR,
24
- GRADIENT: () => GRADIENT
25
- });
26
- module.exports = __toCommonJS(color_exports);
27
- var COLOR = {};
28
- var GRADIENT = {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/document.js
21
- var document_exports = {};
22
- __export(document_exports, {
23
- DOCUMENT: () => DOCUMENT
24
- });
25
- module.exports = __toCommonJS(document_exports);
26
- var DOCUMENT = {};
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/font-family.js
21
- var font_family_exports = {};
22
- __export(font_family_exports, {
23
- FONT_FACE: () => FONT_FACE,
24
- FONT_FAMILY: () => FONT_FAMILY,
25
- FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES
26
- });
27
- module.exports = __toCommonJS(font_family_exports);
28
- var FONT_FAMILY = {};
29
- var FONT_FAMILY_TYPES = {
30
- "sans-serif": "Helvetica, Arial, sans-serif, --system-default",
31
- serif: "Times New Roman, Georgia, serif, --system-default",
32
- monospace: "Courier New, monospace, --system-default"
33
- };
34
- var FONT_FACE = {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/font.js
21
- var font_exports = {};
22
- __export(font_exports, {
23
- FONT: () => FONT
24
- });
25
- module.exports = __toCommonJS(font_exports);
26
- var FONT = {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/grid.js
21
- var grid_exports = {};
22
- __export(grid_exports, {
23
- GRID: () => GRID
24
- });
25
- module.exports = __toCommonJS(grid_exports);
26
- var defaultProps = {};
27
- var GRID = defaultProps;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/defaultConfig/icons.js
21
- var icons_exports = {};
22
- __export(icons_exports, {
23
- ICONS: () => ICONS,
24
- SEMANTIC_ICONS: () => SEMANTIC_ICONS
25
- });
26
- module.exports = __toCommonJS(icons_exports);
27
- var ICONS = {};
28
- var SEMANTIC_ICONS = {};