@rededor/cura 0.4.9 → 0.5.0

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 (82) hide show
  1. package/dist/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/icons/iconset-default-tmp.svg +976 -0
  3. package/dist/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/{app-globals-a9efc5b2.js → app-globals-0e3b7fc6.js} +120 -105
  5. package/dist/cjs/app-globals-0e3b7fc6.js.map +1 -0
  6. package/dist/cjs/cura-accordion_12.cjs.entry.js +1 -1
  7. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/api/cura-api.js +1 -1
  11. package/dist/collection/api/cura-api.js.map +1 -1
  12. package/dist/collection/api/cura-api.type.js.map +1 -1
  13. package/dist/collection/api/modules/cura-theme-colors-module.js +17 -16
  14. package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
  15. package/dist/collection/api/modules/cura-theme-module.js +2 -2
  16. package/dist/collection/api/modules/cura-theme-module.js.map +1 -1
  17. package/dist/collection/api/theme-presets/static.js +30 -30
  18. package/dist/collection/api/theme-presets/static.js.map +1 -1
  19. package/dist/collection/api/theme-presets/theme-default.js +15 -15
  20. package/dist/collection/api/theme-presets/theme-default.js.map +1 -1
  21. package/dist/collection/api/theme-presets/theme-legacy-default.js +19 -5
  22. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -1
  23. package/dist/collection/api/theme-presets/theme-maternity.js +15 -15
  24. package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -1
  25. package/dist/collection/api/theme-presets/theme-oncology.js +20 -20
  26. package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -1
  27. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  28. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  29. package/dist/collection/assets/icons/iconset-default-tmp.svg +976 -0
  30. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  31. package/dist/collection/assets-raw/icons/default/currency.svg +3 -0
  32. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +11 -0
  33. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -0
  34. package/dist/components/cura-icons-view.js +1 -1
  35. package/dist/components/cura-icons-view.js.map +1 -1
  36. package/dist/components/index.js +119 -104
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/cura/cura.esm.js +1 -1
  39. package/dist/cura/cura.js +1 -1
  40. package/dist/cura/{p-9ae6b01a.system.entry.js → p-4cdbc8a1.system.entry.js} +2 -2
  41. package/dist/cura/{p-9ae6b01a.system.entry.js.map → p-4cdbc8a1.system.entry.js.map} +1 -1
  42. package/dist/cura/p-788e035b.system.js +2 -0
  43. package/dist/cura/p-788e035b.system.js.map +1 -0
  44. package/dist/cura/{p-95d99b0d.entry.js → p-c54ce246.entry.js} +2 -2
  45. package/dist/cura/{p-95d99b0d.entry.js.map → p-c54ce246.entry.js.map} +1 -1
  46. package/dist/cura/p-d5c64a5f.js +2 -0
  47. package/dist/cura/p-d5c64a5f.js.map +1 -0
  48. package/dist/cura/{p-0ac3b5f1.system.js → p-f4232daa.system.js} +2 -2
  49. package/dist/esm/{app-globals-70cb334e.js → app-globals-cc003eaf.js} +120 -105
  50. package/dist/esm/app-globals-cc003eaf.js.map +1 -0
  51. package/dist/esm/cura-accordion_12.entry.js +1 -1
  52. package/dist/esm/cura-accordion_12.entry.js.map +1 -1
  53. package/dist/esm/cura.js +1 -1
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm-es5/app-globals-cc003eaf.js +2 -0
  56. package/dist/esm-es5/app-globals-cc003eaf.js.map +1 -0
  57. package/dist/esm-es5/cura-accordion_12.entry.js +1 -1
  58. package/dist/esm-es5/cura-accordion_12.entry.js.map +1 -1
  59. package/dist/esm-es5/cura.js +1 -1
  60. package/dist/esm-es5/loader.js +1 -1
  61. package/dist/types/api/cura-api.type.d.ts +1 -1
  62. package/dist/types/api/modules/cura-theme-colors-module.d.ts +8 -8
  63. package/dist/types/api/modules/cura-theme-module.d.ts +1 -1
  64. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +14 -0
  65. package/dist/types/api/theme-presets/theme-presets.d.ts +14 -0
  66. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +7 -0
  67. package/package.json +3 -3
  68. package/dist/cjs/app-globals-a9efc5b2.js.map +0 -1
  69. package/dist/cura/p-bd027c48.system.js +0 -2
  70. package/dist/cura/p-bd027c48.system.js.map +0 -1
  71. package/dist/cura/p-d7cd7699.js +0 -2
  72. package/dist/cura/p-d7cd7699.js.map +0 -1
  73. package/dist/esm/app-globals-70cb334e.js.map +0 -1
  74. package/dist/esm-es5/app-globals-70cb334e.js +0 -2
  75. package/dist/esm-es5/app-globals-70cb334e.js.map +0 -1
  76. /package/dist/collection/stories/{Button.js → olds/Button.js} +0 -0
  77. /package/dist/collection/stories/{Button.st.js → olds/Button.st.js} +0 -0
  78. /package/dist/collection/stories/{Header.js → olds/Header.js} +0 -0
  79. /package/dist/collection/stories/{Header.st.js → olds/Header.st.js} +0 -0
  80. /package/dist/collection/stories/{Page.js → olds/Page.js} +0 -0
  81. /package/dist/collection/stories/{Page.st.js → olds/Page.st.js} +0 -0
  82. /package/dist/cura/{p-0ac3b5f1.system.js.map → p-f4232daa.system.js.map} +0 -0
@@ -7,25 +7,25 @@ const ThemeDefault = {
7
7
  /* Colors */
8
8
  color: {
9
9
  primary: {
10
- '100': '#71C5E8',
11
- '300': '#449CD5',
12
- '500': '#005EB8',
13
- '700': '#004890',
14
- '900': '#002855'
10
+ '100': '113,197,232',
11
+ '300': '68,142,205',
12
+ '500': '0,61,165',
13
+ '700': '0,48,117',
14
+ '900': '0,40,85'
15
15
  },
16
16
  secondary: {
17
- '100': '#F5ECE3',
18
- '300': '#DDC0A2',
19
- '500': '#CCA074',
20
- '700': '#886B4D',
21
- '900': '#292017'
17
+ '100': '245,236,227',
18
+ '300': '221,192,162',
19
+ '500': '204,160,116',
20
+ '700': '136,107,77',
21
+ '900': '41,32,23'
22
22
  },
23
23
  accent: {
24
- '100': '#FFC27B',
25
- '300': '#FFA84A',
26
- '500': '#FF8200',
27
- '700': '#D7720A',
28
- '900': '#9B5A1A'
24
+ '100': '255,194,123',
25
+ '300': '255,168,74',
26
+ '500': '255,130,0',
27
+ '700': '215,114,10',
28
+ '900': '155,90,26'
29
29
  }
30
30
  },
31
31
  /* Spacing */
@@ -58,25 +58,25 @@ const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
58
58
  /* Colors */
59
59
  color: {
60
60
  primary: {
61
- '100': '#F8E3E2',
62
- '300': '#FFB3AB',
63
- '500': '#DA716F',
64
- '700': '#914B4A',
65
- '900': '#492625'
61
+ '100': '248,227,226',
62
+ '300': '255,179,171',
63
+ '500': '218,113,111',
64
+ '700': '145,75,74',
65
+ '900': '73,38,37'
66
66
  },
67
67
  secondary: {
68
- '100': '#FDFBF9',
69
- '300': '#F7F4EE',
70
- '500': '#F5ECE3',
71
- '700': '#CCC5BD',
72
- '900': '#A39D97'
68
+ '100': '253,251,249',
69
+ '300': '247,244,238',
70
+ '500': '245,236,227',
71
+ '700': '204,197,189',
72
+ '900': '163,157,151'
73
73
  },
74
74
  accent: {
75
- '100': '#ECEFF9',
76
- '300': '#8599CB',
77
- '500': '#0B1497',
78
- '700': '#070D65',
79
- '900': '#040732'
75
+ '100': '236,239,249',
76
+ '300': '133,153,203',
77
+ '500': '11,20,151',
78
+ '700': '7,13,101',
79
+ '900': '4,7,50'
80
80
  }
81
81
  }, font: {
82
82
  size: '14px',
@@ -102,32 +102,32 @@ const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
102
102
  /* Colors */
103
103
  color: {
104
104
  primary: {
105
- '100': '#AABEE1',
106
- '300': '#557EC4',
107
- '500': '#003DA6',
108
- '700': '#00296F',
109
- '900': '#000C21'
105
+ '100': '170,190,225',
106
+ '300': '85,126,196',
107
+ '500': '0,61,166',
108
+ '700': '0,41,111',
109
+ '900': '0,12,33'
110
110
  },
111
111
  secondary: {
112
- '100': '#CDD7E3',
113
- '300': '#9BAFC7',
114
- '500': '#6886AB',
115
- '700': '#365E8F',
116
- '900': '#043673',
112
+ '100': '205,215,227',
113
+ '300': '155,175,199',
114
+ '500': '104,134,171',
115
+ '700': '54,95,143',
116
+ '900': '4,54,115',
117
117
  },
118
118
  accent: {
119
- '100': '#99CFFF',
120
- '300': '#47A9FF',
121
- '500': '#0083F5',
122
- '700': '#006DCC',
123
- '900': '#0058A4',
119
+ '100': '153,207,255',
120
+ '300': '71,169,255',
121
+ '500': '0,131,245',
122
+ '700': '0,109,204',
123
+ '900': '0,88,164',
124
124
  },
125
125
  aux: {
126
- '100': '#DAF2EF',
127
- '300': '#84D4CA',
128
- '500': '#47BFB0',
129
- '700': '#2F7F75',
130
- '900': '#0E2623',
126
+ '100': '218,242,239',
127
+ '300': '132,212,202',
128
+ '500': '71,191,176',
129
+ '700': '33,100,92',
130
+ '900': '14,38,35',
131
131
  },
132
132
  }, font: {
133
133
  size: '14px',
@@ -153,11 +153,25 @@ const ThemeLegacyDefault = Object.assign(Object.assign({}, ThemeDefault), {
153
153
  /* Colors */
154
154
  color: {
155
155
  primary: {
156
- '100': '#CCD9E7',
157
- '300': '#85A0BC',
158
- '500': '#004186',
159
- '700': '#002B59',
160
- '900': '#002042'
156
+ '100': '204,217,231',
157
+ '300': '85,128,174',
158
+ '500': '0,65,134',
159
+ '700': '0,43,89',
160
+ '900': '0,13,27'
161
+ },
162
+ secondary: {
163
+ '100': '238,232,206',
164
+ '300': '198,180,92',
165
+ '500': '170,142,11',
166
+ '700': '113,95,7',
167
+ '900': '34,28,2'
168
+ },
169
+ accent: {
170
+ '100': '249,232,213',
171
+ '300': '228,160,79',
172
+ '500': '223,141,44',
173
+ '700': '149,94,29',
174
+ '900': '45,28,9'
161
175
  }
162
176
  } });
163
177
 
@@ -175,44 +189,44 @@ const Static = {
175
189
  /* Colors */
176
190
  color: {
177
191
  success: {
178
- '100': '#DFF6E9',
179
- '300': '#94E1B5',
180
- '500': '#5FD290',
181
- '700': '#31734D',
182
- '900': '#132A1D',
192
+ '100': '223,246,233',
193
+ '300': '148,225,181',
194
+ '500': '95,210,144',
195
+ '700': '49,115,77',
196
+ '900': '19,42,29',
183
197
  },
184
198
  info: {
185
- '100': '#CFE2FF',
186
- '300': '#95BFFF',
187
- '500': '#6EA8FF',
188
- '700': '#426499',
189
- '900': '#253855',
199
+ '100': '207,226,255',
200
+ '300': '149,191,255',
201
+ '500': '110,168,255',
202
+ '700': '66,100,153',
203
+ '900': '37,56,85',
190
204
  },
191
205
  error: {
192
- '100': '#FBDDDD',
193
- '300': '#F28F8F',
194
- '500': '#EB5757',
195
- '700': '#9D3A3A',
196
- '900': '#2F1111',
206
+ '100': '251,221,221',
207
+ '300': '242,143,143',
208
+ '500': '235,87,87',
209
+ '700': '157,58,58',
210
+ '900': '47,17,17',
197
211
  },
198
212
  warning: {
199
- '100': '#FCFAC4',
200
- '300': '#F8F489',
201
- '500': '#F5EF4E',
202
- '700': '#6C6A20',
203
- '900': '#313010',
213
+ '100': '252,250,196',
214
+ '300': '248,244,137',
215
+ '500': '245,239,78',
216
+ '700': '108,106,32',
217
+ '900': '49,48,16',
204
218
  },
205
219
  neutral: {
206
- '0': '#FFFFFF',
207
- '100': '#F6F6F6',
208
- '200': '#E9E9E9',
209
- '300': '#E2E2E2',
210
- '400': '#D4D4D4',
211
- '500': '#B7B7B7',
212
- '600': '#929292',
213
- '700': '#6E6E6E',
214
- '800': '#4A4A4A',
215
- '900': '#262626',
220
+ '0': '255,255,255',
221
+ '100': '246,246,246',
222
+ '200': '233,233,233',
223
+ '300': '226,226,226',
224
+ '400': '212,212,212',
225
+ '500': '183,183,183',
226
+ '600': '146,146,146',
227
+ '700': '110,110,110',
228
+ '800': '74,74,74',
229
+ '900': '38,38,38',
216
230
  },
217
231
  },
218
232
  breakpoints: {
@@ -264,47 +278,48 @@ class CuraThemeColorsModule {
264
278
  /**
265
279
  * Get theme color.
266
280
  * @param colorWithDepth string Ex.: primary-light
267
- * @returns css color property. Color definition or related css var from the theme.
281
+ * @returns RGBA value.
268
282
  */
269
- getColor(colorWithDepth = "primary-base") {
283
+ getColor(colorWithDepth = "primary-base", opacity = 1) {
270
284
  const { color, depth } = this.splitColorDepth(colorWithDepth);
271
285
  const staticColor = this.getStatic(color, depth);
272
286
  if (staticColor)
273
287
  return staticColor;
274
- return this.getDynamic(color, depth);
288
+ return this.getDynamic(color, depth, opacity);
275
289
  }
276
290
  /**
277
291
  * Internal: Look for static color by name and depth.
278
292
  * @param color Color name.
279
293
  * @param depth Depth number or alias.
280
- * @returns Static color definition.
294
+ * @returns RGBA value.
281
295
  */
282
- getStatic(color, depth) {
283
- var _a, _b, _c, _d;
296
+ getStatic(color, depth, opacity = 1) {
297
+ var _a, _b, _c;
284
298
  const colorObj = Static.color[color];
285
299
  if (!colorObj)
286
300
  return null;
287
- return color === 'neutral'
288
- ? ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[this.NeutralDepthAlias[depth]]) || ((_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[depth])
289
- : ((_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[this.ColorDepthAlias[depth]]) || ((_d = Static.color[color]) === null || _d === void 0 ? void 0 : _d[depth]);
301
+ const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
302
+ return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
303
+ ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
304
+ : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
290
305
  }
291
306
  /**
292
307
  * Internal: Look for theme dynamic colors.
293
308
  * @param color Color name.
294
- * @param depth Depth number or alias.
295
- * @returns Related CSS variable defined by the theme.
309
+ * @param depth Color depth.
310
+ * @returns RGBA value.
296
311
  */
297
- getDynamic(color, depth) {
312
+ getDynamic(color, depth, opacity) {
298
313
  const themeVar = this.ColorDepthAlias[depth]
299
314
  ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
300
315
  : `--cura-color-${color}-${depth}`;
301
- return getComputedStyle(document.body).getPropertyValue(themeVar)
302
- ? `var(${themeVar})`
303
- : `var(--cura-color-primary-500)`;
316
+ return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
317
+ ? `rgba(var(${themeVar}), ${opacity})`
318
+ : `rgba(var(--cura-color-primary-500), ${opacity})`;
304
319
  }
305
320
  /**
306
321
  * Internal: Split color strings
307
- * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark or primary-700.
322
+ * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
308
323
  * @returns Object { color: string, depth: string }.
309
324
  */
310
325
  splitColorDepth(colorWithDepth) {
@@ -385,7 +400,7 @@ class CuraThemeModule {
385
400
  /** Set css var based on object structure */
386
401
  this.setCssVar = (prop, path) => {
387
402
  const varName = this.groupPath(path, prop[0]);
388
- this.body.style.setProperty(varName, prop[1]);
403
+ this.rootElement.style.setProperty(varName, prop[1]);
389
404
  };
390
405
  this.groupPath = (a, b) => `${a}-${b}`;
391
406
  this.isObject = (val) => {
@@ -415,7 +430,7 @@ class CuraThemeModule {
415
430
  }
416
431
  }
417
432
  };
418
- this.body = window.document.documentElement.querySelector('body');
433
+ this.rootElement = window.document.documentElement;
419
434
  }
420
435
  /**
421
436
  * Load a theme.
@@ -455,7 +470,7 @@ class CuraAPI {
455
470
  load: function (themeTag) { themeModule.load(themeTag); },
456
471
  setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
457
472
  colors: {
458
- getColor: function (colorWithDepth) { return themeModule.colors.getColor(colorWithDepth); },
473
+ getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
459
474
  },
460
475
  fonts: {
461
476
  getFamily: function (type) { return themeModule.fonts.getFamily(type); },
@@ -493,4 +508,4 @@ const globalScripts = appGlobalScript;
493
508
 
494
509
  exports.globalScripts = globalScripts;
495
510
 
496
- //# sourceMappingURL=app-globals-a9efc5b2.js.map
511
+ //# sourceMappingURL=app-globals-0e3b7fc6.js.map
@@ -0,0 +1 @@
1
+ {"file":"app-globals-0e3b7fc6.js","mappings":";;AAAA;;;AAGO,MAAM,YAAY,GAAG;;EAE1B,KAAK,EAAE;IACL,OAAO,EAAE;MACP,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,YAAY;MACnB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,SAAS;KACjB;IACD,SAAS,EAAE;MACT,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,YAAY;MACnB,KAAK,EAAE,UAAU;KAClB;IACD,MAAM,EAAE;MACN,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,YAAY;MACnB,KAAK,EAAE,WAAW;MAClB,KAAK,EAAE,YAAY;MACnB,KAAK,EAAE,WAAW;KACnB;GACF;;EAED,OAAO,EAAE;IACP,IAAI,EAAE,CAAC;GACR;;EAED,IAAI,EAAE;IACJ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,wCAAwC;IAC9C,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE;MACP,IAAI,EAAE,GAAG;MACT,KAAK,EAAE,GAAG;MACV,OAAO,EAAE,GAAG;MACZ,MAAM,EAAE,GAAG;MACX,IAAI,EAAE,GAAG;MACT,KAAK,EAAE,GAAG;KACX;GACF;CACF;;AChDD;;;AAKO,MAAM,cAAc,mCAEtB,YAAY;;;EAIf,KAAK,EAAE;IACL,OAAO,EAAE;MACP,KAAK,EAAE,aAAa;MACpB,KAAK,EAAE,aA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AAM,CAAC,aAAa,CAAC,IAAI;EACzB,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;IAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC1E;;ACjBY,MAAC,aAAa,GAAG;;;;","names":[],"sources":["./src/api/theme-presets/theme-default.ts","./src/api/theme-presets/theme-maternity.ts","./src/api/theme-presets/theme-oncology.ts","./src/api/theme-presets/theme-legacy-default.ts","./src/api/theme-presets/theme-presets.ts","./src/api/theme-presets/static.ts","./src/api/modules/cura-theme-colors-module.ts","./src/api/modules/cura-theme-spacing-module.ts","./src/api/modules/cura-theme-fonts-module.ts","./src/api/modules/cura-theme-breakpoints-module.ts","./src/api/modules/cura-theme-module.ts","./src/api/cura-api.ts","./src/rededor-cura-start.ts","@stencil/core/internal/app-globals"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85'\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23'\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26'\n }\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Roboto', Arial, Helvetica, sans-serif\",\n heading: \"'Roboto', Arial, Helvetica, sans-serif\",\n display: \"'Roboto', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Maternity Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeMaternity = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '248,227,226',\n '300': '255,179,171',\n '500': '218,113,111',\n '700': '145,75,74',\n '900': '73,38,37'\n },\n secondary: {\n '100': '253,251,249',\n '300': '247,244,238',\n '500': '245,236,227',\n '700': '204,197,189',\n '900': '163,157,151'\n },\n accent: {\n '100': '236,239,249',\n '300': '133,153,203',\n '500': '11,20,151',\n '700': '7,13,101',\n '900': '4,7,50'\n }\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 325,\n light: 325,\n regular: 325,\n medium: 350,\n bold: 400,\n black: 425\n },\n }\n};\n","/**\n * Oncology Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeOncology = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '170,190,225',\n '300': '85,126,196',\n '500': '0,61,166',\n '700': '0,41,111',\n '900': '0,12,33'\n },\n secondary: {\n '100': '205,215,227',\n '300': '155,175,199',\n '500': '104,134,171',\n '700': '54,95,143',\n '900': '4,54,115',\n },\n accent: {\n '100': '153,207,255',\n '300': '71,169,255',\n '500': '0,131,245',\n '700': '0,109,204',\n '900': '0,88,164',\n },\n aux: {\n '100': '218,242,239',\n '300': '132,212,202',\n '500': '71,191,176',\n '700': '33,100,92',\n '900': '14,38,35',\n },\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n heading: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n display: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Legacy Default Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeLegacyDefault = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '204,217,231',\n '300': '85,128,174',\n '500': '0,65,134',\n '700': '0,43,89',\n '900': '0,13,27'\n },\n secondary: {\n '100': '238,232,206',\n '300': '198,180,92',\n '500': '170,142,11',\n '700': '113,95,7',\n '900': '34,28,2'\n },\n accent: {\n '100': '249,232,213',\n '300': '228,160,79',\n '500': '223,141,44',\n '700': '149,94,29',\n '900': '45,28,9'\n }\n }\n};\n","import { ThemeDefault } from './theme-default';\nimport { ThemeMaternity } from './theme-maternity';\nimport { ThemeOncology } from './theme-oncology';\nimport { ThemeLegacyDefault } from './theme-legacy-default';\n\nexport const ThemePresets = {\n 'default': ThemeDefault,\n 'maternidade': ThemeMaternity,\n 'oncologia': ThemeOncology,\n 'legacyDefault': ThemeLegacyDefault\n};\n","/**\n * Static\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480\n },\n small: {\n min: 481,\n max: 768\n },\n medium: {\n min: 769,\n max: 992\n },\n large: {\n min: 993,\n max: 1919\n },\n xlarge: {\n min: 1920,\n max: 4096\n }\n }\n};\n","import { Static } from \"../theme-presets/static\";\n\nexport default class CuraThemeColorsModule {\n\n NeutralDepthAlias = {\n 'purewhite': '0',\n 'white': '100',\n 'pale': '200',\n 'lighter': '300',\n 'light': '400',\n 'base': '500',\n 'medium': '600',\n 'dark': '700',\n 'darker': '800',\n 'black': '900',\n };\n\n ColorDepthAlias = {\n 'lighter': '100',\n 'light': '300',\n 'base': '500',\n 'dark': '700',\n 'darker': '900'\n }\n\n constructor() {}\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = \"primary-base\", opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @returns RGBA value.\n */\n getStatic(color: string, depth: string, opacity = 1) {\n const colorObj = Static.color[color];\n if (!colorObj) return null;\n const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];\n return Static.color[color]?.[alias]\n ? `rgba(${Static.color[color]?.[alias]}, ${opacity})`\n : `rgba(${Static.color[color]?.[depth]}, ${opacity})`;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @returns RGBA value.\n */\n getDynamic(color: string, depth: string, opacity: number) {\n const themeVar = this.ColorDepthAlias[depth]\n ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`\n : `--cura-color-${color}-${depth}`;\n return getComputedStyle(document.documentElement).getPropertyValue(themeVar)\n ? `rgba(var(${themeVar}), ${opacity})`\n : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string, depth: string } {\n const [ color, depth ] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? \"primary\", depth: depth ?? \"base\" };\n }\n\n}\n","export default class CuraThemeSpacingModule {\n\n private curaSpacing = '--cura-spacing-base';\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n getSpacing(): string {\n if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {\n return `var(${this.curaSpacing})`;\n }\n return '4';\n }\n}\n","import { ThemeDefault } from \"../theme-presets/theme-default\";\n\nexport default class CuraThemeFontsModule {\n\n constructor() {}\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = \"body\"): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)\n ? `var(${curaFontFamilyCSSVar})`\n : 'var(--cura-font-body)';\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize = () => `var(--cura-font-size)`;\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor = () => `var(--cura-font-color)`;\n\n}\n","import { Static } from '../theme-presets/static';\n\nexport default class CuraThemeBreakpointsModule {\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n get(size: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' = null, position: 'min' | 'max' = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { ThemePresets } from \"../theme-presets/theme-presets\";\nimport { CuraCustomTheme } from \"../cura-api.type\";\nimport CuraThemeColorsModule from \"./cura-theme-colors-module\";\nimport CuraThemeSpacingModule from \"./cura-theme-spacing-module\";\nimport CuraThemeFontsModule from \"./cura-theme-fonts-module\";\nimport CuraThemeBreakpointsModule from \"./cura-theme-breakpoints-module\";\n\nexport default class CuraThemeModule {\n\n rootElement: HTMLElement;\n prefix = '--cura';\n colors = new CuraThemeColorsModule();\n spacing = new CuraThemeSpacingModule();\n fonts = new CuraThemeFontsModule();\n breakpoints = new CuraThemeBreakpointsModule();\n\n constructor() {\n this.rootElement = window.document.documentElement;\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default') {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;\n this.buildCssVars(this.prefix, preset);\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme) {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets\n ? ThemePresets[customTheme.fromPreset]\n : ThemePresets.default;\n const newTheme = {...JSON.parse(JSON.stringify(preset))};\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private */\n\n /** Set css var based on object structure */\n setCssVar = (prop, path) => {\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n }\n\n groupPath = (a, b) => `${a}-${b}`;\n\n isObject = (val) => {\n return val && typeof val === 'object' && !Array.isArray(val);\n }\n\n /** Deep merge objects */\n mergeObject = (from, to) => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n }\n\n /** Set css vars from preset object */\n buildCssVars = (path, obj) => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1]);\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n}\n","import { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.type';\nimport CuraThemeModule from './modules/cura-theme-module';\n\nexport default class CuraAPI {\n\n theme: APIThemeFunctions;\n localAssetsPath: string;\n\n constructor (config?: CuraConfig) {\n this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;\n const themeModule = new CuraThemeModule();\n this.theme = {\n load: function(themeTag: string) { themeModule.load(themeTag); },\n setCustom: function(customThemeDefinitions: CuraCustomTheme) { themeModule.setCustom(customThemeDefinitions); },\n colors: {\n getColor: function(colorWithDepth?: string, opacity?: number) { return themeModule.colors.getColor(colorWithDepth, opacity) },\n },\n fonts: {\n getFamily: function(type?: string) { return themeModule.fonts.getFamily(type) },\n getWeights: function() { return themeModule.fonts.getWeights() },\n getSize: function() { return themeModule.fonts.getSize() },\n getColor: function() { return themeModule.fonts.getColor() }\n },\n spacing: {\n getSpacing: function() { return themeModule.spacing.getSpacing(); },\n },\n breakpoints: {\n get: function(size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge', position?: 'min' | 'max') { return themeModule.breakpoints.get(size, position); }\n }\n };\n if (config && config.customTheme) {\n this.theme.setCustom(config.customTheme);\n } else {\n const theme = config && config.theme ? config.theme : 'default';\n this.theme.load(theme);\n }\n }\n\n}\n","import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n","import appGlobalScript from '/Users/fellipesoares/Code/cura/packages/component-lib/src/rededor-cura-start.ts';\nexport const globalScripts = appGlobalScript;\n"],"version":3}
@@ -528,7 +528,7 @@ const CuraIcon = class {
528
528
  };
529
529
  CuraIcon.style = curaIconCss;
530
530
 
531
- const iconsetdefaulticons = ["360", "accessibility", "addUser", "airdrop", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "delete", "desktop", "doc", "down", "download", "duplicate", "edit", "exam", "examDoc", "expand", "facebook", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "geotagUnity", "geotagUnityGroup", "google", "graph", "healthPlan", "heart", "height", "height2", "home", "horizontalList", "imageUp", "infoCircle", "instagram", "key", "lamp", "language", "language2", "languageEN", "languagePT", "lattes", "left", "like", "link", "linkExternal", "linkedin", "list", "login", "logout", "mail", "maintenance", "medDoc", "medEspec", "medImg", "medUser", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "news", "notification", "npsDeslike", "npsHate", "npsLike", "npsLove", "npsNeutral", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profileCircle", "questionCircle", "questionSquare", "range", "reload", "ribbon", "right", "schedule", "scheduleCheck", "scheduleHistorico", "search", "secure", "share", "siren", "sound", "soundOff", "subItem", "target", "team", "telegram", "twitter", "unLink", "unSecure", "unity", "unlike", "up", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "whatsapp", "wifi", "wifiOff", "youtube", "zoomIn", "zoomOut"];
531
+ const iconsetdefaulticons = ["360", "accessibility", "addUser", "airdrop", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "currency", "delete", "desktop", "doc", "down", "download", "duplicate", "edit", "exam", "examDoc", "expand", "facebook", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "geotagUnity", "geotagUnityGroup", "google", "graph", "healthPlan", "heart", "height", "height2", "home", "horizontalList", "imageUp", "infoCircle", "instagram", "key", "lamp", "language", "language2", "languageEN", "languagePT", "lattes", "left", "like", "link", "linkExternal", "linkedin", "list", "login", "logout", "mail", "maintenance", "medDoc", "medEspec", "medImg", "medUser", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "news", "notification", "npsDeslike", "npsHate", "npsLike", "npsLove", "npsNeutral", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profileCircle", "questionCircle", "questionSquare", "range", "reload", "ribbon", "right", "schedule", "scheduleCheck", "scheduleHistorico", "search", "secure", "share", "siren", "sound", "soundOff", "subItem", "target", "team", "telegram", "twitter", "unLink", "unSecure", "unity", "unlike", "up", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "whatsapp", "wifi", "wifiOff", "youtube", "zoomIn", "zoomOut"];
532
532
 
533
533
  const curaIconsViewCss = ":host{display:block;padding:24px;font-family:\"Roboto\", Arial, Helvetica, sans-serif}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";
534
534