@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
@@ -5,25 +5,25 @@ const ThemeDefault = {
5
5
  /* Colors */
6
6
  color: {
7
7
  primary: {
8
- '100': '#71C5E8',
9
- '300': '#449CD5',
10
- '500': '#005EB8',
11
- '700': '#004890',
12
- '900': '#002855'
8
+ '100': '113,197,232',
9
+ '300': '68,142,205',
10
+ '500': '0,61,165',
11
+ '700': '0,48,117',
12
+ '900': '0,40,85'
13
13
  },
14
14
  secondary: {
15
- '100': '#F5ECE3',
16
- '300': '#DDC0A2',
17
- '500': '#CCA074',
18
- '700': '#886B4D',
19
- '900': '#292017'
15
+ '100': '245,236,227',
16
+ '300': '221,192,162',
17
+ '500': '204,160,116',
18
+ '700': '136,107,77',
19
+ '900': '41,32,23'
20
20
  },
21
21
  accent: {
22
- '100': '#FFC27B',
23
- '300': '#FFA84A',
24
- '500': '#FF8200',
25
- '700': '#D7720A',
26
- '900': '#9B5A1A'
22
+ '100': '255,194,123',
23
+ '300': '255,168,74',
24
+ '500': '255,130,0',
25
+ '700': '215,114,10',
26
+ '900': '155,90,26'
27
27
  }
28
28
  },
29
29
  /* Spacing */
@@ -56,25 +56,25 @@ const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
56
56
  /* Colors */
57
57
  color: {
58
58
  primary: {
59
- '100': '#F8E3E2',
60
- '300': '#FFB3AB',
61
- '500': '#DA716F',
62
- '700': '#914B4A',
63
- '900': '#492625'
59
+ '100': '248,227,226',
60
+ '300': '255,179,171',
61
+ '500': '218,113,111',
62
+ '700': '145,75,74',
63
+ '900': '73,38,37'
64
64
  },
65
65
  secondary: {
66
- '100': '#FDFBF9',
67
- '300': '#F7F4EE',
68
- '500': '#F5ECE3',
69
- '700': '#CCC5BD',
70
- '900': '#A39D97'
66
+ '100': '253,251,249',
67
+ '300': '247,244,238',
68
+ '500': '245,236,227',
69
+ '700': '204,197,189',
70
+ '900': '163,157,151'
71
71
  },
72
72
  accent: {
73
- '100': '#ECEFF9',
74
- '300': '#8599CB',
75
- '500': '#0B1497',
76
- '700': '#070D65',
77
- '900': '#040732'
73
+ '100': '236,239,249',
74
+ '300': '133,153,203',
75
+ '500': '11,20,151',
76
+ '700': '7,13,101',
77
+ '900': '4,7,50'
78
78
  }
79
79
  }, font: {
80
80
  size: '14px',
@@ -100,32 +100,32 @@ const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
100
100
  /* Colors */
101
101
  color: {
102
102
  primary: {
103
- '100': '#AABEE1',
104
- '300': '#557EC4',
105
- '500': '#003DA6',
106
- '700': '#00296F',
107
- '900': '#000C21'
103
+ '100': '170,190,225',
104
+ '300': '85,126,196',
105
+ '500': '0,61,166',
106
+ '700': '0,41,111',
107
+ '900': '0,12,33'
108
108
  },
109
109
  secondary: {
110
- '100': '#CDD7E3',
111
- '300': '#9BAFC7',
112
- '500': '#6886AB',
113
- '700': '#365E8F',
114
- '900': '#043673',
110
+ '100': '205,215,227',
111
+ '300': '155,175,199',
112
+ '500': '104,134,171',
113
+ '700': '54,95,143',
114
+ '900': '4,54,115',
115
115
  },
116
116
  accent: {
117
- '100': '#99CFFF',
118
- '300': '#47A9FF',
119
- '500': '#0083F5',
120
- '700': '#006DCC',
121
- '900': '#0058A4',
117
+ '100': '153,207,255',
118
+ '300': '71,169,255',
119
+ '500': '0,131,245',
120
+ '700': '0,109,204',
121
+ '900': '0,88,164',
122
122
  },
123
123
  aux: {
124
- '100': '#DAF2EF',
125
- '300': '#84D4CA',
126
- '500': '#47BFB0',
127
- '700': '#2F7F75',
128
- '900': '#0E2623',
124
+ '100': '218,242,239',
125
+ '300': '132,212,202',
126
+ '500': '71,191,176',
127
+ '700': '33,100,92',
128
+ '900': '14,38,35',
129
129
  },
130
130
  }, font: {
131
131
  size: '14px',
@@ -151,11 +151,25 @@ const ThemeLegacyDefault = Object.assign(Object.assign({}, ThemeDefault), {
151
151
  /* Colors */
152
152
  color: {
153
153
  primary: {
154
- '100': '#CCD9E7',
155
- '300': '#85A0BC',
156
- '500': '#004186',
157
- '700': '#002B59',
158
- '900': '#002042'
154
+ '100': '204,217,231',
155
+ '300': '85,128,174',
156
+ '500': '0,65,134',
157
+ '700': '0,43,89',
158
+ '900': '0,13,27'
159
+ },
160
+ secondary: {
161
+ '100': '238,232,206',
162
+ '300': '198,180,92',
163
+ '500': '170,142,11',
164
+ '700': '113,95,7',
165
+ '900': '34,28,2'
166
+ },
167
+ accent: {
168
+ '100': '249,232,213',
169
+ '300': '228,160,79',
170
+ '500': '223,141,44',
171
+ '700': '149,94,29',
172
+ '900': '45,28,9'
159
173
  }
160
174
  } });
161
175
 
@@ -173,44 +187,44 @@ const Static = {
173
187
  /* Colors */
174
188
  color: {
175
189
  success: {
176
- '100': '#DFF6E9',
177
- '300': '#94E1B5',
178
- '500': '#5FD290',
179
- '700': '#31734D',
180
- '900': '#132A1D',
190
+ '100': '223,246,233',
191
+ '300': '148,225,181',
192
+ '500': '95,210,144',
193
+ '700': '49,115,77',
194
+ '900': '19,42,29',
181
195
  },
182
196
  info: {
183
- '100': '#CFE2FF',
184
- '300': '#95BFFF',
185
- '500': '#6EA8FF',
186
- '700': '#426499',
187
- '900': '#253855',
197
+ '100': '207,226,255',
198
+ '300': '149,191,255',
199
+ '500': '110,168,255',
200
+ '700': '66,100,153',
201
+ '900': '37,56,85',
188
202
  },
189
203
  error: {
190
- '100': '#FBDDDD',
191
- '300': '#F28F8F',
192
- '500': '#EB5757',
193
- '700': '#9D3A3A',
194
- '900': '#2F1111',
204
+ '100': '251,221,221',
205
+ '300': '242,143,143',
206
+ '500': '235,87,87',
207
+ '700': '157,58,58',
208
+ '900': '47,17,17',
195
209
  },
196
210
  warning: {
197
- '100': '#FCFAC4',
198
- '300': '#F8F489',
199
- '500': '#F5EF4E',
200
- '700': '#6C6A20',
201
- '900': '#313010',
211
+ '100': '252,250,196',
212
+ '300': '248,244,137',
213
+ '500': '245,239,78',
214
+ '700': '108,106,32',
215
+ '900': '49,48,16',
202
216
  },
203
217
  neutral: {
204
- '0': '#FFFFFF',
205
- '100': '#F6F6F6',
206
- '200': '#E9E9E9',
207
- '300': '#E2E2E2',
208
- '400': '#D4D4D4',
209
- '500': '#B7B7B7',
210
- '600': '#929292',
211
- '700': '#6E6E6E',
212
- '800': '#4A4A4A',
213
- '900': '#262626',
218
+ '0': '255,255,255',
219
+ '100': '246,246,246',
220
+ '200': '233,233,233',
221
+ '300': '226,226,226',
222
+ '400': '212,212,212',
223
+ '500': '183,183,183',
224
+ '600': '146,146,146',
225
+ '700': '110,110,110',
226
+ '800': '74,74,74',
227
+ '900': '38,38,38',
214
228
  },
215
229
  },
216
230
  breakpoints: {
@@ -262,47 +276,48 @@ class CuraThemeColorsModule {
262
276
  /**
263
277
  * Get theme color.
264
278
  * @param colorWithDepth string Ex.: primary-light
265
- * @returns css color property. Color definition or related css var from the theme.
279
+ * @returns RGBA value.
266
280
  */
267
- getColor(colorWithDepth = "primary-base") {
281
+ getColor(colorWithDepth = "primary-base", opacity = 1) {
268
282
  const { color, depth } = this.splitColorDepth(colorWithDepth);
269
283
  const staticColor = this.getStatic(color, depth);
270
284
  if (staticColor)
271
285
  return staticColor;
272
- return this.getDynamic(color, depth);
286
+ return this.getDynamic(color, depth, opacity);
273
287
  }
274
288
  /**
275
289
  * Internal: Look for static color by name and depth.
276
290
  * @param color Color name.
277
291
  * @param depth Depth number or alias.
278
- * @returns Static color definition.
292
+ * @returns RGBA value.
279
293
  */
280
- getStatic(color, depth) {
281
- var _a, _b, _c, _d;
294
+ getStatic(color, depth, opacity = 1) {
295
+ var _a, _b, _c;
282
296
  const colorObj = Static.color[color];
283
297
  if (!colorObj)
284
298
  return null;
285
- return color === 'neutral'
286
- ? ((_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])
287
- : ((_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]);
299
+ const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
300
+ return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
301
+ ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
302
+ : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
288
303
  }
289
304
  /**
290
305
  * Internal: Look for theme dynamic colors.
291
306
  * @param color Color name.
292
- * @param depth Depth number or alias.
293
- * @returns Related CSS variable defined by the theme.
307
+ * @param depth Color depth.
308
+ * @returns RGBA value.
294
309
  */
295
- getDynamic(color, depth) {
310
+ getDynamic(color, depth, opacity) {
296
311
  const themeVar = this.ColorDepthAlias[depth]
297
312
  ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
298
313
  : `--cura-color-${color}-${depth}`;
299
- return getComputedStyle(document.body).getPropertyValue(themeVar)
300
- ? `var(${themeVar})`
301
- : `var(--cura-color-primary-500)`;
314
+ return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
315
+ ? `rgba(var(${themeVar}), ${opacity})`
316
+ : `rgba(var(--cura-color-primary-500), ${opacity})`;
302
317
  }
303
318
  /**
304
319
  * Internal: Split color strings
305
- * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark or primary-700.
320
+ * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
306
321
  * @returns Object { color: string, depth: string }.
307
322
  */
308
323
  splitColorDepth(colorWithDepth) {
@@ -383,7 +398,7 @@ class CuraThemeModule {
383
398
  /** Set css var based on object structure */
384
399
  this.setCssVar = (prop, path) => {
385
400
  const varName = this.groupPath(path, prop[0]);
386
- this.body.style.setProperty(varName, prop[1]);
401
+ this.rootElement.style.setProperty(varName, prop[1]);
387
402
  };
388
403
  this.groupPath = (a, b) => `${a}-${b}`;
389
404
  this.isObject = (val) => {
@@ -413,7 +428,7 @@ class CuraThemeModule {
413
428
  }
414
429
  }
415
430
  };
416
- this.body = window.document.documentElement.querySelector('body');
431
+ this.rootElement = window.document.documentElement;
417
432
  }
418
433
  /**
419
434
  * Load a theme.
@@ -453,7 +468,7 @@ class CuraAPI {
453
468
  load: function (themeTag) { themeModule.load(themeTag); },
454
469
  setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
455
470
  colors: {
456
- getColor: function (colorWithDepth) { return themeModule.colors.getColor(colorWithDepth); },
471
+ getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
457
472
  },
458
473
  fonts: {
459
474
  getFamily: function (type) { return themeModule.fonts.getFamily(type); },
@@ -491,4 +506,4 @@ const globalScripts = appGlobalScript;
491
506
 
492
507
  export { globalScripts as g };
493
508
 
494
- //# sourceMappingURL=app-globals-70cb334e.js.map
509
+ //# sourceMappingURL=app-globals-cc003eaf.js.map
@@ -0,0 +1 @@
1
+ {"file":"app-globals-cc003eaf.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,aAAa;MACpB,KAAK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a,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}
@@ -524,7 +524,7 @@ const CuraIcon = class {
524
524
  };
525
525
  CuraIcon.style = curaIconCss;
526
526
 
527
- 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"];
527
+ 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"];
528
528
 
529
529
  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}";
530
530