@rededor/cura 1.6.1-alpha.4 → 1.6.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5a7ddb39.js → app-globals-28c6f5c4.js} +2 -2
- package/dist/cjs/{app-globals-5a7ddb39.js.map → app-globals-28c6f5c4.js.map} +1 -1
- package/dist/cjs/cura-accordion_18.cjs.entry.js +3 -3
- package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js +1 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-modal.cjs.entry.js +2 -2
- package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/{cura-theme-module-a100c643.js → cura-theme-module-f1e4a309.js} +2 -2
- package/dist/cjs/{cura-theme-module-a100c643.js.map → cura-theme-module-f1e4a309.js.map} +1 -1
- package/dist/cjs/cura-toast.cjs.entry.js +1 -1
- package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/cura.cjs.js +3 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{static-4e83652c.js → static-44199808.js} +16 -2
- package/dist/cjs/static-44199808.js.map +1 -0
- package/dist/collection/api/theme-presets/static.js +15 -1
- package/dist/collection/api/theme-presets/static.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +3 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +3 -3
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +2 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-modal/cura-modal.css +2 -1
- package/dist/collection/components/cura-modal/cura-modal.js +1 -1
- package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
- package/dist/collection/components/cura-toast/cura-toast.css +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +2 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
- package/dist/collection/utils/utils.js +2 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-badge-pill2.js +1 -1
- package/dist/components/cura-badge-pill2.js.map +1 -1
- package/dist/components/cura-icon2.js +1 -1
- package/dist/components/cura-icon2.js.map +1 -1
- package/dist/components/cura-input-text2.js +15 -1
- package/dist/components/cura-input-text2.js.map +1 -1
- package/dist/components/cura-loader-bar2.js +1 -1
- package/dist/components/cura-loader-bar2.js.map +1 -1
- package/dist/components/cura-loader-circle2.js +1 -1
- package/dist/components/cura-loader-circle2.js.map +1 -1
- package/dist/components/cura-modal.js +2 -2
- package/dist/components/cura-modal.js.map +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-toast.js.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/{p-3519d0ba.entry.js → p-0aeaf57a.entry.js} +2 -2
- package/dist/cura/p-0aeaf57a.entry.js.map +1 -0
- package/dist/cura/{p-daf9feac.js → p-0c25333f.js} +2 -2
- package/dist/cura/{p-daf9feac.js.map → p-0c25333f.js.map} +1 -1
- package/dist/cura/{p-e6cf81b6.entry.js → p-1c9c62f1.entry.js} +2 -2
- package/dist/cura/p-1c9c62f1.entry.js.map +1 -0
- package/dist/cura/p-24707984.entry.js +2 -0
- package/dist/cura/p-24707984.entry.js.map +1 -0
- package/dist/cura/p-2db4deb3.js +2 -0
- package/dist/cura/p-2db4deb3.js.map +1 -0
- package/dist/cura/p-57c854b3.entry.js +2 -0
- package/dist/cura/p-57c854b3.entry.js.map +1 -0
- package/dist/cura/{p-e1916252.entry.js → p-7e10b146.entry.js} +2 -2
- package/dist/cura/p-7e10b146.entry.js.map +1 -0
- package/dist/cura/{p-ec4996c2.js → p-bf8e2037.js} +2 -2
- package/dist/cura/p-d6897ac1.entry.js +2 -0
- package/dist/cura/p-d6897ac1.entry.js.map +1 -0
- package/dist/esm/{app-globals-83a601d0.js → app-globals-ca1945d1.js} +2 -2
- package/dist/esm/{app-globals-83a601d0.js.map → app-globals-ca1945d1.js.map} +1 -1
- package/dist/esm/cura-accordion_18.entry.js +3 -3
- package/dist/esm/cura-accordion_18.entry.js.map +1 -1
- package/dist/esm/cura-alert.entry.js +1 -1
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-badge-pill.entry.js +1 -1
- package/dist/esm/cura-badge-pill.entry.js.map +1 -1
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-loader-bar.entry.js.map +1 -1
- package/dist/esm/cura-modal.entry.js +2 -2
- package/dist/esm/cura-modal.entry.js.map +1 -1
- package/dist/esm/{cura-theme-module-59e8e460.js → cura-theme-module-0fa5ee0b.js} +2 -2
- package/dist/esm/{cura-theme-module-59e8e460.js.map → cura-theme-module-0fa5ee0b.js.map} +1 -1
- package/dist/esm/cura-toast.entry.js +1 -1
- package/dist/esm/cura-toast.entry.js.map +1 -1
- package/dist/esm/cura.js +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{static-061aa850.js → static-090f0088.js} +16 -2
- package/dist/esm/static-090f0088.js.map +1 -0
- package/dist/types/api/theme-presets/static.d.ts +7 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +2 -2
- package/dist/cjs/static-4e83652c.js.map +0 -1
- package/dist/cura/p-09ce32d6.entry.js +0 -2
- package/dist/cura/p-09ce32d6.entry.js.map +0 -1
- package/dist/cura/p-1016108a.entry.js +0 -2
- package/dist/cura/p-1016108a.entry.js.map +0 -1
- package/dist/cura/p-1b201271.js +0 -2
- package/dist/cura/p-1b201271.js.map +0 -1
- package/dist/cura/p-3519d0ba.entry.js.map +0 -1
- package/dist/cura/p-948249cf.entry.js +0 -2
- package/dist/cura/p-948249cf.entry.js.map +0 -1
- package/dist/cura/p-e1916252.entry.js.map +0 -1
- package/dist/cura/p-e6cf81b6.entry.js.map +0 -1
- package/dist/esm/static-061aa850.js.map +0 -1
- /package/dist/cura/{p-ec4996c2.js.map → p-bf8e2037.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const curaThemeModule = require('./cura-theme-module-
|
|
3
|
+
const curaThemeModule = require('./cura-theme-module-f1e4a309.js');
|
|
4
4
|
|
|
5
5
|
class CuraAPI {
|
|
6
6
|
constructor(config) {
|
|
@@ -67,4 +67,4 @@ const globalScripts = appGlobalScript;
|
|
|
67
67
|
|
|
68
68
|
exports.globalScripts = globalScripts;
|
|
69
69
|
|
|
70
|
-
//# sourceMappingURL=app-globals-
|
|
70
|
+
//# sourceMappingURL=app-globals-28c6f5c4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"app-globals-
|
|
1
|
+
{"file":"app-globals-28c6f5c4.js","mappings":";;;;MAGqB,OAAO;IAK1B,YAAa,MAAmB;QAC9B,IAAI,CAAC,eAAe,GAAG,MAAM,IAAI,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,GAAG,SAAS,CAAC;QAC7F,MAAM,WAAW,GAAG,IAAIA,+BAAe,EAAE,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG;YACX,IAAI,EAAE,UAAS,QAAgB,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE;YAChE,SAAS,EAAE,UAAS,sBAAuC,IAAI,WAAW,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC,EAAE;YAC/G,MAAM,EAAE;gBACN,QAAQ,EAAE,UAAS,cAAuB,EAAE,OAAgB,IAAI,OAAO,WAAW,CAAC,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QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAC/C,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC;YAC1B,YAAY,CAAC,WAAW,GAAG;;;;;;;;OAQ1B,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;SACzC;KACF;;;;IC3CD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC/B,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,EAAC,GAAG,EAAC,EAAE,CAAC,CAAC,CAAC;IACzE,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;QAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC1E;;ACjBY,MAAC,aAAa,GAAG;;;;","names":["CuraThemeModule"],"sources":["src/api/cura-api.ts","src/rededor-cura-start.ts","@stencil/core/internal/app-globals"],"sourcesContent":["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 this._addGlobalClasses();\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 _addGlobalClasses() {\n const styleId = \"cura_global_classes\";\n let styleElement = document.head.querySelector(`#${styleId}`);\n if (!styleElement) {\n styleElement = document.createElement(\"style\");\n styleElement.id = styleId;\n styleElement.textContent = `\n .cura-body-scroll-lock {\n overflow: hidden;\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n }\n `;\n document.head.appendChild(styleElement);\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}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-60783089.js');
|
|
6
6
|
const curaButton_definitions = require('./cura-button.definitions-f036371c.js');
|
|
7
|
-
const _static = require('./static-
|
|
7
|
+
const _static = require('./static-44199808.js');
|
|
8
8
|
const curaIcon_definitions = require('./cura-icon.definitions-5223028b.js');
|
|
9
9
|
|
|
10
10
|
const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}";
|
|
@@ -979,7 +979,7 @@ const CuraIcon = class {
|
|
|
979
979
|
this.host.style.setProperty(prop, value);
|
|
980
980
|
}
|
|
981
981
|
render() {
|
|
982
|
-
return (index.h(index.Host, { key: '
|
|
982
|
+
return (index.h(index.Host, { key: '5dfb1ead36b19cb799e5dad924426356b23500d4', role: "img" }, index.h("svg", { key: '9df09822b70978c96afb525cf5967145513b4a56', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, index.h("use", { key: '8ce9a2c0e434ee559a8c0ff2fb14a30093ce434a', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
983
983
|
}
|
|
984
984
|
get host() { return index.getElement(this); }
|
|
985
985
|
static get watchers() { return {
|
|
@@ -5052,7 +5052,7 @@ const CuraLoaderCircle = class {
|
|
|
5052
5052
|
};
|
|
5053
5053
|
}
|
|
5054
5054
|
render() {
|
|
5055
|
-
return (index.h(index.Host, { key: '
|
|
5055
|
+
return (index.h(index.Host, { key: '5681023e48d452e968e13c95759900f9b9e2ca04', style: this.getStyles(), role: "progressbar" }, index.h("svg", { key: '010916114948876e3bfb11f70aeb23ce88e582aa', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: '738ba83e424453ee974e694b87d1aef03949a0d2' }, index.h("circle", { key: 'df9f0d86e2f7806324fb93e04280ffdcc62e5cfe', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), index.h("path", { key: '7c2e746cd731dce20609f8f55051d540077fb748', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), index.h("defs", { key: '53a76bde6d4398783b111c9c3f62baa59359b4af' }, index.h("linearGradient", { key: '2cef8fb23782caf0302c2384c1e68219aab9ddcd', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, index.h("stop", { key: '7332a418e255cda7691825f4c9ea508614123a75' }), index.h("stop", { key: '5a33eb0cd2df624a9e14a3878e1dd5d5c25c1cf6', offset: "1" }))))));
|
|
5056
5056
|
}
|
|
5057
5057
|
};
|
|
5058
5058
|
CuraLoaderCircle.style = CuraLoaderCircleStyle0;
|