@iziui/react 0.0.1 → 0.0.2-rc
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/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.cjs +1 -1
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/CardContent.cjs +1 -1
- package/dist/components/Card/CardContent.cjs.map +1 -1
- package/dist/components/Card/CardContent.js +1 -1
- package/dist/components/Card/CardContent.js.map +1 -1
- package/dist/components/Icon/Icon.cjs +1 -1
- package/dist/components/Icon/Icon.cjs.map +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Loading/Loading.cjs +1 -1
- package/dist/components/Loading/Loading.cjs.map +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Loading/Loading.js.map +1 -1
- package/dist/components/Ripple/Ripple.cjs +1 -1
- package/dist/components/Ripple/Ripple.cjs.map +1 -1
- package/dist/components/Ripple/Ripple.js +1 -1
- package/dist/components/Ripple/Ripple.js.map +1 -1
- package/dist/components/Stack/Stack.cjs +1 -1
- package/dist/components/Stack/Stack.cjs.map +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/core/createComponent.cjs +1 -1
- package/dist/core/createComponent.cjs.map +1 -1
- package/dist/core/createComponent.js +1 -1
- package/dist/core/createComponent.js.map +1 -1
- package/dist/core/src/options/createOptions/createOptions.cjs.map +1 -0
- package/dist/core/src/options/createOptions/createOptions.js.map +1 -0
- package/dist/core/src/plugin/color/defineBackground/defineBackground.cjs.map +1 -0
- package/dist/core/src/plugin/color/defineBackground/defineBackground.js.map +1 -0
- package/dist/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.cjs.map +1 -0
- package/dist/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.js.map +1 -0
- package/dist/core/src/plugin/color/defineBorderColor/defineBorderColor.cjs.map +1 -0
- package/dist/core/src/plugin/color/defineBorderColor/defineBorderColor.js.map +1 -0
- package/dist/core/src/plugin/color/defineColor/defineColor.cjs.map +1 -0
- package/dist/core/src/plugin/color/defineColor/defineColor.js.map +1 -0
- package/dist/core/src/plugin/definePlugin/definePlugin.cjs.map +1 -0
- package/dist/core/src/plugin/definePlugin/definePlugin.js.map +1 -0
- package/dist/core/src/theme/applyTheme/applyTheme.cjs.map +1 -0
- package/dist/core/src/theme/applyTheme/applyTheme.js.map +1 -0
- package/dist/core/src/theme/createTheme/createTheme.cjs.map +1 -0
- package/dist/core/src/theme/createTheme/createTheme.js.map +1 -0
- package/dist/core/src/theme/defaultTheme.cjs.map +1 -0
- package/dist/core/src/theme/defaultTheme.js.map +1 -0
- package/dist/core/src/utils/adjustLightness/adjustLightness.cjs.map +1 -0
- package/dist/core/src/utils/adjustLightness/adjustLightness.js.map +1 -0
- package/dist/core/src/utils/convertPathToColor/convertPathToColor.cjs.map +1 -0
- package/dist/core/src/utils/convertPathToColor/convertPathToColor.js.map +1 -0
- package/dist/core/src/utils/generateSupportColors/generateSupportColors.cjs.map +1 -0
- package/dist/core/src/utils/generateSupportColors/generateSupportColors.js.map +1 -0
- package/dist/core/src/utils/getContrastColor/getContrastColor.cjs.map +1 -0
- package/dist/core/src/utils/getContrastColor/getContrastColor.js.map +1 -0
- package/dist/core/src/utils/getOpacityColor/getOpacityColor.cjs.map +1 -0
- package/dist/core/src/utils/getOpacityColor/getOpacityColor.js.map +1 -0
- package/dist/core/src/utils/hexToHsl/hexToHsl.cjs.map +1 -0
- package/dist/core/src/utils/hexToHsl/hexToHsl.js.map +1 -0
- package/dist/core/src/utils/hslToHex/hslToHex.cjs.map +1 -0
- package/dist/core/src/utils/hslToHex/hslToHex.js.map +1 -0
- package/dist/core/src/utils/joinClass/joinClass.cjs.map +1 -0
- package/dist/core/src/utils/joinClass/joinClass.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/theme/ThemeProvider.cjs +1 -1
- package/dist/theme/ThemeProvider.cjs.map +1 -1
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/createTheme.cjs +1 -1
- package/dist/theme/createTheme.js +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/tokens/dist/web/js/index.cjs.map +1 -0
- package/dist/tokens/dist/web/js/index.js.map +1 -0
- package/package.json +4 -4
- package/dist/_virtual/jsx-runtime.cjs +0 -2
- package/dist/_virtual/jsx-runtime.cjs.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -2
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.cjs +0 -2
- package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -2
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/packages/core/src/options/createOptions/createOptions.cjs.map +0 -1
- package/dist/packages/core/src/options/createOptions/createOptions.js.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBackground/defineBackground.cjs.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBackground/defineBackground.js.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.cjs.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.js.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBorderColor/defineBorderColor.cjs.map +0 -1
- package/dist/packages/core/src/plugin/color/defineBorderColor/defineBorderColor.js.map +0 -1
- package/dist/packages/core/src/plugin/color/defineColor/defineColor.cjs.map +0 -1
- package/dist/packages/core/src/plugin/color/defineColor/defineColor.js.map +0 -1
- package/dist/packages/core/src/plugin/definePlugin/definePlugin.cjs.map +0 -1
- package/dist/packages/core/src/plugin/definePlugin/definePlugin.js.map +0 -1
- package/dist/packages/core/src/theme/applyTheme/applyTheme.cjs.map +0 -1
- package/dist/packages/core/src/theme/applyTheme/applyTheme.js.map +0 -1
- package/dist/packages/core/src/theme/createTheme/createTheme.cjs.map +0 -1
- package/dist/packages/core/src/theme/createTheme/createTheme.js.map +0 -1
- package/dist/packages/core/src/theme/defaultTheme.cjs.map +0 -1
- package/dist/packages/core/src/theme/defaultTheme.js.map +0 -1
- package/dist/packages/core/src/utils/adjustLightness/adjustLightness.cjs.map +0 -1
- package/dist/packages/core/src/utils/adjustLightness/adjustLightness.js.map +0 -1
- package/dist/packages/core/src/utils/convertPathToColor/convertPathToColor.cjs.map +0 -1
- package/dist/packages/core/src/utils/convertPathToColor/convertPathToColor.js.map +0 -1
- package/dist/packages/core/src/utils/generateSupportColors/generateSupportColors.cjs.map +0 -1
- package/dist/packages/core/src/utils/generateSupportColors/generateSupportColors.js.map +0 -1
- package/dist/packages/core/src/utils/getContrastColor/getContrastColor.cjs.map +0 -1
- package/dist/packages/core/src/utils/getContrastColor/getContrastColor.js.map +0 -1
- package/dist/packages/core/src/utils/getOpacityColor/getOpacityColor.cjs.map +0 -1
- package/dist/packages/core/src/utils/getOpacityColor/getOpacityColor.js.map +0 -1
- package/dist/packages/core/src/utils/hexToHsl/hexToHsl.cjs.map +0 -1
- package/dist/packages/core/src/utils/hexToHsl/hexToHsl.js.map +0 -1
- package/dist/packages/core/src/utils/hslToHex/hslToHex.cjs.map +0 -1
- package/dist/packages/core/src/utils/hslToHex/hslToHex.js.map +0 -1
- package/dist/packages/core/src/utils/joinClass/joinClass.cjs.map +0 -1
- package/dist/packages/core/src/utils/joinClass/joinClass.js.map +0 -1
- package/dist/packages/tokens/dist/web/js/index.cjs.map +0 -1
- package/dist/packages/tokens/dist/web/js/index.js.map +0 -1
- /package/dist/assets/{packages/styles → styles}/src/components/Button-D84txguY.css +0 -0
- /package/dist/assets/{packages/styles → styles}/src/components/Card-CsjbyRZq.css +0 -0
- /package/dist/assets/{packages/styles → styles}/src/components/Icon-MXyQ1_oo.css +0 -0
- /package/dist/assets/{packages/styles → styles}/src/components/Loading-BeVKXeEI.css +0 -0
- /package/dist/assets/{packages/styles → styles}/src/components/Ripple-D71SUpze.css +0 -0
- /package/dist/assets/{packages/styles → styles}/src/components/Stack-CaqHhBiY.css +0 -0
- /package/dist/{packages/core → core}/src/options/createOptions/createOptions.cjs +0 -0
- /package/dist/{packages/core → core}/src/options/createOptions/createOptions.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBackground/defineBackground.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBackground/defineBackground.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBackgroundColor/defineBackgroundColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBackgroundColor/defineBackgroundColor.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBorderColor/defineBorderColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineBorderColor/defineBorderColor.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineColor/defineColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/color/defineColor/defineColor.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/definePlugin/definePlugin.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/definePlugin/definePlugin.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/index.cjs +0 -0
- /package/dist/{packages/core → core}/src/plugin/index.cjs.map +0 -0
- /package/dist/{packages/core → core}/src/plugin/index.js +0 -0
- /package/dist/{packages/core → core}/src/plugin/index.js.map +0 -0
- /package/dist/{packages/core → core}/src/theme/applyTheme/applyTheme.cjs +0 -0
- /package/dist/{packages/core → core}/src/theme/applyTheme/applyTheme.js +0 -0
- /package/dist/{packages/core → core}/src/theme/createTheme/createTheme.cjs +0 -0
- /package/dist/{packages/core → core}/src/theme/createTheme/createTheme.js +0 -0
- /package/dist/{packages/core → core}/src/theme/defaultTheme.cjs +0 -0
- /package/dist/{packages/core → core}/src/theme/defaultTheme.js +0 -0
- /package/dist/{packages/core → core}/src/utils/adjustLightness/adjustLightness.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/adjustLightness/adjustLightness.js +0 -0
- /package/dist/{packages/core → core}/src/utils/convertPathToColor/convertPathToColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/convertPathToColor/convertPathToColor.js +0 -0
- /package/dist/{packages/core → core}/src/utils/generateSupportColors/generateSupportColors.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/generateSupportColors/generateSupportColors.js +0 -0
- /package/dist/{packages/core → core}/src/utils/getContrastColor/getContrastColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/getContrastColor/getContrastColor.js +0 -0
- /package/dist/{packages/core → core}/src/utils/getOpacityColor/getOpacityColor.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/getOpacityColor/getOpacityColor.js +0 -0
- /package/dist/{packages/core → core}/src/utils/hexToHsl/hexToHsl.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/hexToHsl/hexToHsl.js +0 -0
- /package/dist/{packages/core → core}/src/utils/hslToHex/hslToHex.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/hslToHex/hslToHex.js +0 -0
- /package/dist/{packages/core → core}/src/utils/joinClass/joinClass.cjs +0 -0
- /package/dist/{packages/core → core}/src/utils/joinClass/joinClass.js +0 -0
- /package/dist/{packages/tokens → tokens}/dist/web/js/index.cjs +0 -0
- /package/dist/{packages/tokens → tokens}/dist/web/js/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateSupportColors.js","sources":["../../../../../../../core/src/utils/generateSupportColors/generateSupportColors.ts"],"sourcesContent":["import type { Color } from '../../theme';\nimport { hexToHsl } from '../hexToHsl';\nimport { adjustLightness } from '../adjustLightness';\nimport { getOpacityColor } from '../getOpacityColor';\nimport { getContrastColor } from '../getContrastColor/getContrastColor';\n\nexport function generateSupportColors(hex: string): Color {\n const variation = 20;\n\n const hsl = hexToHsl(hex);\n\n const contrastColor = getContrastColor(hex);\n const lighterColor = adjustLightness(hsl.h, hsl.s, hsl.l, variation);\n const darkerColor = adjustLightness(hsl.h, hsl.s, hsl.l, -variation);\n const opacityColor = getOpacityColor(hex, variation / 100);\n\n return {\n main: hex,\n dark: darkerColor,\n light: lighterColor,\n opacity: opacityColor,\n contrastText: contrastColor\n };\n}"],"names":["generateSupportColors","hex","hsl","hexToHsl","contrastColor","getContrastColor","lighterColor","adjustLightness","darkerColor","opacityColor","getOpacityColor"],"mappings":"8QAMO,SAASA,EAAsBC,EAAoB,CAGxD,MAAMC,EAAMC,EAASF,CAAG,EAElBG,EAAgBC,EAAiBJ,CAAG,EACpCK,EAAeC,EAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,EAAS,EAC7DM,EAAcD,EAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,GAAU,EAC7DO,EAAeC,EAAgBT,EAAK,GAAY,GAAG,EAEzD,MAAO,CACL,KAAMA,EACN,KAAMO,EACN,MAAOF,EACP,QAASG,EACT,aAAcL,CAAA,CAElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContrastColor.cjs","sources":["../../../../../../../core/src/utils/getContrastColor/getContrastColor.ts"],"sourcesContent":["export function getContrastColor(hexColor: string) {\n // Converter hexadecimal para RGB\n const r = parseInt(hexColor.slice(1, 3), 16) / 255;\n const g = parseInt(hexColor.slice(3, 5), 16) / 255;\n const b = parseInt(hexColor.slice(5, 7), 16) / 255;\n\n // Calcular a luminância relativa\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n // Se a luminância for baixa, usar branco como contraste, senão preto\n return luminance > 0.6 ? '#000000' : '#ffffff';\n}"],"names":["getContrastColor","hexColor","r","g","b"],"mappings":"gFAAO,SAASA,EAAiBC,EAAkB,CAEjD,MAAMC,EAAI,SAASD,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCE,EAAI,SAASF,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCG,EAAI,SAASH,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAM/C,MAHkB,OAASC,EAAI,MAASC,EAAI,MAASC,EAGlC,GAAM,UAAY,SACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContrastColor.js","sources":["../../../../../../../core/src/utils/getContrastColor/getContrastColor.ts"],"sourcesContent":["export function getContrastColor(hexColor: string) {\n // Converter hexadecimal para RGB\n const r = parseInt(hexColor.slice(1, 3), 16) / 255;\n const g = parseInt(hexColor.slice(3, 5), 16) / 255;\n const b = parseInt(hexColor.slice(5, 7), 16) / 255;\n\n // Calcular a luminância relativa\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n // Se a luminância for baixa, usar branco como contraste, senão preto\n return luminance > 0.6 ? '#000000' : '#ffffff';\n}"],"names":["getContrastColor","hexColor","r","g","b"],"mappings":"AAAO,SAASA,EAAiBC,EAAkB,CAEjD,MAAMC,EAAI,SAASD,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCE,EAAI,SAASF,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCG,EAAI,SAASH,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAM/C,MAHkB,OAASC,EAAI,MAASC,EAAI,MAASC,EAGlC,GAAM,UAAY,SACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOpacityColor.cjs","sources":["../../../../../../../core/src/utils/getOpacityColor/getOpacityColor.ts"],"sourcesContent":["/**\n * Adiciona opacidade a uma cor em hexadecimal.\n * @param hexColor - A cor em hexadecimal (ex: #RRGGBB ou #RGB).\n * @param opacity - O valor da opacidade (entre 0 e 1).\n * @returns A cor hexadecimal com opacidade (ex: #RRGGBBAA).\n */\nexport function getOpacityColor(hexColor: string, opacity: number): string {\n // Validar entrada do hexadecimal\n const hexPattern = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\n if (!hexPattern.test(hexColor)) {\n throw new Error('Cor inválida. Use um formato hexadecimal (#RRGGBB ou #RGB).');\n }\n\n // Expandir formato #RGB para #RRGGBB\n if (hexColor.length === 4) {\n hexColor = `#${hexColor[1]}${hexColor[1]}${hexColor[2]}${hexColor[2]}${hexColor[3]}${hexColor[3]}`;\n }\n\n // Converter opacidade para formato hexadecimal (0 a 255)\n const alpha = Math.round(opacity * 255);\n const alphaHex = alpha.toString(16).padStart(2, '0').toUpperCase();\n\n // Combinar cor com opacidade\n return `${hexColor}${alphaHex}`;\n}"],"names":["getOpacityColor","hexColor","opacity","alphaHex"],"mappings":"gFAMO,SAASA,EAAgBC,EAAkBC,EAAyB,CAGzE,GAAI,CADe,qCACH,KAAKD,CAAQ,EAC3B,MAAM,IAAI,MAAM,6DAA6D,EAI3EA,EAAS,SAAW,IACtBA,EAAW,IAAIA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAKlG,MAAME,EADQ,KAAK,MAAMD,EAAU,GAAG,EACf,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAAE,YAAA,EAGrD,MAAO,GAAGD,CAAQ,GAAGE,CAAQ,EAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOpacityColor.js","sources":["../../../../../../../core/src/utils/getOpacityColor/getOpacityColor.ts"],"sourcesContent":["/**\n * Adiciona opacidade a uma cor em hexadecimal.\n * @param hexColor - A cor em hexadecimal (ex: #RRGGBB ou #RGB).\n * @param opacity - O valor da opacidade (entre 0 e 1).\n * @returns A cor hexadecimal com opacidade (ex: #RRGGBBAA).\n */\nexport function getOpacityColor(hexColor: string, opacity: number): string {\n // Validar entrada do hexadecimal\n const hexPattern = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\n if (!hexPattern.test(hexColor)) {\n throw new Error('Cor inválida. Use um formato hexadecimal (#RRGGBB ou #RGB).');\n }\n\n // Expandir formato #RGB para #RRGGBB\n if (hexColor.length === 4) {\n hexColor = `#${hexColor[1]}${hexColor[1]}${hexColor[2]}${hexColor[2]}${hexColor[3]}${hexColor[3]}`;\n }\n\n // Converter opacidade para formato hexadecimal (0 a 255)\n const alpha = Math.round(opacity * 255);\n const alphaHex = alpha.toString(16).padStart(2, '0').toUpperCase();\n\n // Combinar cor com opacidade\n return `${hexColor}${alphaHex}`;\n}"],"names":["getOpacityColor","hexColor","opacity","alphaHex"],"mappings":"AAMO,SAASA,EAAgBC,EAAkBC,EAAyB,CAGzE,GAAI,CADe,qCACH,KAAKD,CAAQ,EAC3B,MAAM,IAAI,MAAM,6DAA6D,EAI3EA,EAAS,SAAW,IACtBA,EAAW,IAAIA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAKlG,MAAME,EADQ,KAAK,MAAMD,EAAU,GAAG,EACf,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAAE,YAAA,EAGrD,MAAO,GAAGD,CAAQ,GAAGE,CAAQ,EAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hexToHsl.cjs","sources":["../../../../../../../core/src/utils/hexToHsl/hexToHsl.ts"],"sourcesContent":["export function hexToHsl(hex: string) {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0, s = 0;\n const l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // acromático\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h *= 60;\n }\n\n return { h, s: s * 100, l: l * 100 };\n}"],"names":["hexToHsl","hex","r","g","b","max","min","h","s","l","d"],"mappings":"gFAAO,SAASA,EAASC,EAAa,CACpC,MAAMC,EAAI,SAASD,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCE,EAAI,SAASF,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCG,EAAI,SAASH,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAEpCI,EAAM,KAAK,IAAIH,EAAGC,EAAGC,CAAC,EACtBE,EAAM,KAAK,IAAIJ,EAAGC,EAAGC,CAAC,EAC5B,IAAIG,EAAI,EAAGC,EAAI,EACf,MAAMC,GAAKJ,EAAMC,GAAO,EAExB,GAAID,IAAQC,EACVC,EAAIC,EAAI,MACH,CACL,MAAME,EAAIL,EAAMC,EAGhB,OAFAE,EAAIC,EAAI,GAAMC,GAAK,EAAIL,EAAMC,GAAOI,GAAKL,EAAMC,GAEvCD,EAAA,CACN,KAAKH,EAAGK,GAAKJ,EAAIC,GAAKM,GAAKP,EAAIC,EAAI,EAAI,GAAI,MAC3C,KAAKD,EAAGI,GAAKH,EAAIF,GAAKQ,EAAI,EAAG,MAC7B,KAAKN,EAAGG,GAAKL,EAAIC,GAAKO,EAAI,EAAG,KAAA,CAE/BH,GAAK,EACP,CAEA,MAAO,CAAE,EAAAA,EAAG,EAAGC,EAAI,IAAK,EAAGC,EAAI,GAAA,CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hexToHsl.js","sources":["../../../../../../../core/src/utils/hexToHsl/hexToHsl.ts"],"sourcesContent":["export function hexToHsl(hex: string) {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0, s = 0;\n const l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // acromático\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h *= 60;\n }\n\n return { h, s: s * 100, l: l * 100 };\n}"],"names":["hexToHsl","hex","r","g","b","max","min","h","s","d"],"mappings":"AAAO,SAASA,EAASC,EAAa,CACpC,MAAMC,EAAI,SAASD,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCE,EAAI,SAASF,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCG,EAAI,SAASH,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAEpCI,EAAM,KAAK,IAAIH,EAAGC,EAAGC,CAAC,EACtBE,EAAM,KAAK,IAAIJ,EAAGC,EAAGC,CAAC,EAC5B,IAAIG,EAAI,EAAGC,EAAI,EACf,MAAM,GAAKH,EAAMC,GAAO,EAExB,GAAID,IAAQC,EACVC,EAAIC,EAAI,MACH,CACL,MAAMC,EAAIJ,EAAMC,EAGhB,OAFAE,EAAI,EAAI,GAAMC,GAAK,EAAIJ,EAAMC,GAAOG,GAAKJ,EAAMC,GAEvCD,EAAA,CACN,KAAKH,EAAGK,GAAKJ,EAAIC,GAAKK,GAAKN,EAAIC,EAAI,EAAI,GAAI,MAC3C,KAAKD,EAAGI,GAAKH,EAAIF,GAAKO,EAAI,EAAG,MAC7B,KAAKL,EAAGG,GAAKL,EAAIC,GAAKM,EAAI,EAAG,KAAA,CAE/BF,GAAK,EACP,CAEA,MAAO,CAAE,EAAAA,EAAG,EAAGC,EAAI,IAAK,EAAG,EAAI,GAAA,CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hslToHex.cjs","sources":["../../../../../../../core/src/utils/hslToHex/hslToHex.ts"],"sourcesContent":["export function hslToHex(h: number, s: number, l: number) {\n s /= 100;\n l /= 100;\n\n const c = (1 - Math.abs(2 * l - 1)) * s;\n const x = c * (1 - Math.abs((h / 60) % 2 - 1));\n const m = l - c / 2;\n let r = 0, g = 0, b = 0;\n\n if (0 <= h && h < 60) { r = c; g = x; b = 0; }\n else if (60 <= h && h < 120) { r = x; g = c; b = 0; }\n else if (120 <= h && h < 180) { r = 0; g = c; b = x; }\n else if (180 <= h && h < 240) { r = 0; g = x; b = c; }\n else if (240 <= h && h < 300) { r = x; g = 0; b = c; }\n else if (300 <= h && h < 360) { r = c; g = 0; b = x; }\n\n const newR = Math.round((r + m) * 255).toString(16).padStart(2, '0');\n const newG = Math.round((g + m) * 255).toString(16).padStart(2, '0');\n const newB = Math.round((b + m) * 255).toString(16).padStart(2, '0');\n\n return `#${newR}${newG}${newB}`;\n}"],"names":["hslToHex","h","s","l","c","x","m","r","g","b","newR","newG","newB"],"mappings":"gFAAO,SAASA,EAASC,EAAWC,EAAWC,EAAW,CACxDD,GAAK,IACLC,GAAK,IAEL,MAAMC,GAAK,EAAI,KAAK,IAAI,EAAID,EAAI,CAAC,GAAKD,EAChCG,EAAID,GAAK,EAAI,KAAK,IAAKH,EAAI,GAAM,EAAI,CAAC,GACtCK,EAAIH,EAAIC,EAAI,EAClB,IAAIG,EAAI,EAAGC,EAAI,EAAGC,EAAI,EAElB,GAAKR,GAAKA,EAAI,IAAMM,EAAIH,EAAGI,EAAIH,EAAGI,EAAI,GACjC,IAAMR,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAIJ,EAAGK,EAAI,GACxC,KAAOR,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIJ,EAAGK,EAAIJ,GACzC,KAAOJ,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIH,EAAGI,EAAIL,GACzC,KAAOH,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAI,EAAGC,EAAIL,GACzC,KAAOH,GAAKA,EAAI,MAAOM,EAAIH,EAAGI,EAAI,EAAGC,EAAIJ,GAElD,MAAMK,EAAO,KAAK,OAAOH,EAAID,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DK,EAAO,KAAK,OAAOH,EAAIF,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DM,EAAO,KAAK,OAAOH,EAAIH,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAEnE,MAAO,IAAII,CAAI,GAAGC,CAAI,GAAGC,CAAI,EAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hslToHex.js","sources":["../../../../../../../core/src/utils/hslToHex/hslToHex.ts"],"sourcesContent":["export function hslToHex(h: number, s: number, l: number) {\n s /= 100;\n l /= 100;\n\n const c = (1 - Math.abs(2 * l - 1)) * s;\n const x = c * (1 - Math.abs((h / 60) % 2 - 1));\n const m = l - c / 2;\n let r = 0, g = 0, b = 0;\n\n if (0 <= h && h < 60) { r = c; g = x; b = 0; }\n else if (60 <= h && h < 120) { r = x; g = c; b = 0; }\n else if (120 <= h && h < 180) { r = 0; g = c; b = x; }\n else if (180 <= h && h < 240) { r = 0; g = x; b = c; }\n else if (240 <= h && h < 300) { r = x; g = 0; b = c; }\n else if (300 <= h && h < 360) { r = c; g = 0; b = x; }\n\n const newR = Math.round((r + m) * 255).toString(16).padStart(2, '0');\n const newG = Math.round((g + m) * 255).toString(16).padStart(2, '0');\n const newB = Math.round((b + m) * 255).toString(16).padStart(2, '0');\n\n return `#${newR}${newG}${newB}`;\n}"],"names":["hslToHex","h","s","l","c","x","m","r","g","b","newR","newG","newB"],"mappings":"AAAO,SAASA,EAASC,EAAWC,EAAWC,EAAW,CACxDD,GAAK,IACLC,GAAK,IAEL,MAAMC,GAAK,EAAI,KAAK,IAAI,EAAID,EAAI,CAAC,GAAKD,EAChCG,EAAID,GAAK,EAAI,KAAK,IAAKH,EAAI,GAAM,EAAI,CAAC,GACtCK,EAAIH,EAAIC,EAAI,EAClB,IAAIG,EAAI,EAAGC,EAAI,EAAGC,EAAI,EAElB,GAAKR,GAAKA,EAAI,IAAMM,EAAIH,EAAGI,EAAIH,EAAGI,EAAI,GACjC,IAAMR,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAIJ,EAAGK,EAAI,GACxC,KAAOR,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIJ,EAAGK,EAAIJ,GACzC,KAAOJ,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIH,EAAGI,EAAIL,GACzC,KAAOH,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAI,EAAGC,EAAIL,GACzC,KAAOH,GAAKA,EAAI,MAAOM,EAAIH,EAAGI,EAAI,EAAGC,EAAIJ,GAElD,MAAMK,EAAO,KAAK,OAAOH,EAAID,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DK,EAAO,KAAK,OAAOH,EAAIF,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DM,EAAO,KAAK,OAAOH,EAAIH,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAEnE,MAAO,IAAII,CAAI,GAAGC,CAAI,GAAGC,CAAI,EAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinClass.cjs","sources":["../../../../../../../core/src/utils/joinClass/joinClass.ts"],"sourcesContent":["export function joinClass(...args: Array<string | null | undefined | boolean>) {\n return args\n .filter((value): value is string => typeof value === 'string' && value.length > 0)\n .join(' ');\n};\n"],"names":["joinClass","args","value"],"mappings":"gFAAO,SAASA,KAAaC,EAAkD,CAC7E,OAAOA,EACJ,OAAQC,GAA2B,OAAOA,GAAU,UAAYA,EAAM,OAAS,CAAC,EAChF,KAAK,GAAG,CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinClass.js","sources":["../../../../../../../core/src/utils/joinClass/joinClass.ts"],"sourcesContent":["export function joinClass(...args: Array<string | null | undefined | boolean>) {\n return args\n .filter((value): value is string => typeof value === 'string' && value.length > 0)\n .join(' ');\n};\n"],"names":["joinClass","args","value"],"mappings":"AAAO,SAASA,KAAaC,EAAkD,CAC7E,OAAOA,EACJ,OAAQC,GAA2B,OAAOA,GAAU,UAAYA,EAAM,OAAS,CAAC,EAChF,KAAK,GAAG,CACb"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./components/Button/Button.cjs");const e=require("./components/Card/Card.cjs"),r=require("./components/Card/CardContent.cjs");require("./components/Icon/Icon.cjs");require("./components/Loading/Loading.cjs");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./components/Button/Button.cjs");const e=require("./components/Card/Card.cjs"),r=require("./components/Card/CardContent.cjs");require("./components/Icon/Icon.cjs");require("./components/Loading/Loading.cjs");require("react/jsx-runtime");require("react");;/* empty css */require("./components/Stack/Stack.cjs");const t=require("./theme/useTheme.cjs"),u=require("./theme/ThemeProvider.cjs"),i=require("./core/src/theme/createTheme/createTheme.cjs");exports.Card=e.default;exports.CardContent=r.default;exports.useTheme=t.default;exports.ThemeProvider=u.default;exports.createTheme=i.createTheme;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./components/Button/Button.js";import{default as d}from"./components/Card/Card.js";import{default as u}from"./components/Card/CardContent.js";import"./components/Icon/Icon.js";import"./components/Loading/Loading.js";import"
|
|
1
|
+
import"./components/Button/Button.js";import{default as d}from"./components/Card/Card.js";import{default as u}from"./components/Card/CardContent.js";import"./components/Icon/Icon.js";import"./components/Loading/Loading.js";import"react/jsx-runtime";import"react";/* empty css */import"./components/Stack/Stack.js";import{default as l}from"./theme/useTheme.js";import{default as C}from"./theme/ThemeProvider.js";import{createTheme as n}from"./core/src/theme/createTheme/createTheme.js";export{d as Card,u as CardContent,C as ThemeProvider,n as createTheme,l as useTheme};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),t=require("react"),h=require("../core/src/theme/applyTheme/applyTheme.cjs"),i=require("../core/src/theme/createTheme/createTheme.cjs"),T=require("../core/src/theme/defaultTheme.cjs"),o=t.createContext({theme:i.createTheme(T.themeDefaultLight),updateTheme:()=>{}});function l({theme:u,children:n}){const[e,s]=t.useState(u),c=t.useMemo(()=>({theme:e,updateTheme:r=>m(r)}),[u,e]);t.useEffect(()=>{h.applyTheme(e)},[e]);const m=r=>{s(r)};return a.jsx(o.Provider,{value:c,children:n})}exports.ThemeContext=o;exports.default=l;
|
|
2
2
|
//# sourceMappingURL=ThemeProvider.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.cjs","sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import { createContext, useEffect, useMemo, useState, type PropsWithChildren } from 'react';\n\nimport type { ThemeBuilded } from '@iziui/core/theme';\nimport { createTheme, applyTheme, themeDefaultLight } from '@iziui/core/theme';\n\nexport interface ThemeContextConfig {\n theme: ThemeBuilded;\n updateTheme: (theme: ThemeBuilded) => void;\n}\n\nexport const ThemeContext = createContext<ThemeContextConfig>({\n theme: createTheme(themeDefaultLight),\n updateTheme: () => { },\n});\n\ntype ThemeProviderProps = PropsWithChildren<{ theme: ThemeBuilded; }>\nexport default function ThemeProvider({ theme, children }: ThemeProviderProps) {\n const [_theme, setTheme] = useState<ThemeBuilded>(theme);\n\n const context = useMemo<ThemeContextConfig>(() => ({\n theme: _theme,\n updateTheme: (newTheme: ThemeBuilded) => updateTheme(newTheme),\n }), [theme, _theme]);\n\n useEffect(() => { applyTheme(_theme); }, [_theme]);\n\n const updateTheme = (newTheme: ThemeBuilded) => { setTheme(newTheme); };\n\n return (\n <ThemeContext.Provider value={context}>\n {children}\n </ThemeContext.Provider>\n );\n}\n\n"],"names":["ThemeContext","createContext","createTheme","themeDefaultLight","ThemeProvider","theme","children","_theme","setTheme","useState","context","useMemo","newTheme","updateTheme","useEffect","applyTheme"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.cjs","sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import { createContext, useEffect, useMemo, useState, type PropsWithChildren } from 'react';\n\nimport type { ThemeBuilded } from '@iziui/core/theme';\nimport { createTheme, applyTheme, themeDefaultLight } from '@iziui/core/theme';\n\nexport interface ThemeContextConfig {\n theme: ThemeBuilded;\n updateTheme: (theme: ThemeBuilded) => void;\n}\n\nexport const ThemeContext = createContext<ThemeContextConfig>({\n theme: createTheme(themeDefaultLight),\n updateTheme: () => { },\n});\n\ntype ThemeProviderProps = PropsWithChildren<{ theme: ThemeBuilded; }>\nexport default function ThemeProvider({ theme, children }: ThemeProviderProps) {\n const [_theme, setTheme] = useState<ThemeBuilded>(theme);\n\n const context = useMemo<ThemeContextConfig>(() => ({\n theme: _theme,\n updateTheme: (newTheme: ThemeBuilded) => updateTheme(newTheme),\n }), [theme, _theme]);\n\n useEffect(() => { applyTheme(_theme); }, [_theme]);\n\n const updateTheme = (newTheme: ThemeBuilded) => { setTheme(newTheme); };\n\n return (\n <ThemeContext.Provider value={context}>\n {children}\n </ThemeContext.Provider>\n );\n}\n\n"],"names":["ThemeContext","createContext","createTheme","themeDefaultLight","ThemeProvider","theme","children","_theme","setTheme","useState","context","useMemo","newTheme","updateTheme","useEffect","applyTheme"],"mappings":"wUAUaA,EAAeC,EAAAA,cAAkC,CAC5D,MAAOC,EAAAA,YAAYC,mBAAiB,EACpC,YAAa,IAAM,CAAE,CACvB,CAAC,EAGD,SAAwBC,EAAc,CAAE,MAAAC,EAAO,SAAAC,GAAgC,CAC7E,KAAM,CAACC,EAAQC,CAAQ,EAAIC,EAAAA,SAAuBJ,CAAK,EAEjDK,EAAUC,EAAAA,QAA4B,KAAO,CACjD,MAAOJ,EACP,YAAcK,GAA2BC,EAAYD,CAAQ,CAAA,GAC3D,CAACP,EAAOE,CAAM,CAAC,EAEnBO,EAAAA,UAAU,IAAM,CAAEC,EAAAA,WAAWR,CAAM,CAAG,EAAG,CAACA,CAAM,CAAC,EAEjD,MAAMM,EAAeD,GAA2B,CAAEJ,EAASI,CAAQ,CAAG,EAEtE,aACGZ,EAAa,SAAb,CAAsB,MAAOU,EAC3B,SAAAJ,EACH,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import{createContext as u,useState as f,useMemo as n,useEffect as s}from"react";import{applyTheme as c}from"../core/src/theme/applyTheme/applyTheme.js";import{createTheme as i}from"../core/src/theme/createTheme/createTheme.js";import{themeDefaultLight as T}from"../core/src/theme/defaultTheme.js";const d=u({theme:i(T),updateTheme:()=>{}});function g({theme:m,children:o}){const[e,r]=f(m),h=n(()=>({theme:e,updateTheme:t=>a(t)}),[m,e]);s(()=>{c(e)},[e]);const a=t=>{r(t)};return p(d.Provider,{value:h,children:o})}export{d as ThemeContext,g as default};
|
|
2
2
|
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import { createContext, useEffect, useMemo, useState, type PropsWithChildren } from 'react';\n\nimport type { ThemeBuilded } from '@iziui/core/theme';\nimport { createTheme, applyTheme, themeDefaultLight } from '@iziui/core/theme';\n\nexport interface ThemeContextConfig {\n theme: ThemeBuilded;\n updateTheme: (theme: ThemeBuilded) => void;\n}\n\nexport const ThemeContext = createContext<ThemeContextConfig>({\n theme: createTheme(themeDefaultLight),\n updateTheme: () => { },\n});\n\ntype ThemeProviderProps = PropsWithChildren<{ theme: ThemeBuilded; }>\nexport default function ThemeProvider({ theme, children }: ThemeProviderProps) {\n const [_theme, setTheme] = useState<ThemeBuilded>(theme);\n\n const context = useMemo<ThemeContextConfig>(() => ({\n theme: _theme,\n updateTheme: (newTheme: ThemeBuilded) => updateTheme(newTheme),\n }), [theme, _theme]);\n\n useEffect(() => { applyTheme(_theme); }, [_theme]);\n\n const updateTheme = (newTheme: ThemeBuilded) => { setTheme(newTheme); };\n\n return (\n <ThemeContext.Provider value={context}>\n {children}\n </ThemeContext.Provider>\n );\n}\n\n"],"names":["ThemeContext","createContext","createTheme","themeDefaultLight","ThemeProvider","theme","children","_theme","setTheme","useState","context","useMemo","newTheme","updateTheme","useEffect","applyTheme"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sources":["../../src/theme/ThemeProvider.tsx"],"sourcesContent":["import { createContext, useEffect, useMemo, useState, type PropsWithChildren } from 'react';\n\nimport type { ThemeBuilded } from '@iziui/core/theme';\nimport { createTheme, applyTheme, themeDefaultLight } from '@iziui/core/theme';\n\nexport interface ThemeContextConfig {\n theme: ThemeBuilded;\n updateTheme: (theme: ThemeBuilded) => void;\n}\n\nexport const ThemeContext = createContext<ThemeContextConfig>({\n theme: createTheme(themeDefaultLight),\n updateTheme: () => { },\n});\n\ntype ThemeProviderProps = PropsWithChildren<{ theme: ThemeBuilded; }>\nexport default function ThemeProvider({ theme, children }: ThemeProviderProps) {\n const [_theme, setTheme] = useState<ThemeBuilded>(theme);\n\n const context = useMemo<ThemeContextConfig>(() => ({\n theme: _theme,\n updateTheme: (newTheme: ThemeBuilded) => updateTheme(newTheme),\n }), [theme, _theme]);\n\n useEffect(() => { applyTheme(_theme); }, [_theme]);\n\n const updateTheme = (newTheme: ThemeBuilded) => { setTheme(newTheme); };\n\n return (\n <ThemeContext.Provider value={context}>\n {children}\n </ThemeContext.Provider>\n );\n}\n\n"],"names":["ThemeContext","createContext","createTheme","themeDefaultLight","ThemeProvider","theme","children","_theme","setTheme","useState","context","useMemo","newTheme","updateTheme","useEffect","applyTheme"],"mappings":"iVAUO,MAAMA,EAAeC,EAAkC,CAC5D,MAAOC,EAAYC,CAAiB,EACpC,YAAa,IAAM,CAAE,CACvB,CAAC,EAGD,SAAwBC,EAAc,CAAE,MAAAC,EAAO,SAAAC,GAAgC,CAC7E,KAAM,CAACC,EAAQC,CAAQ,EAAIC,EAAuBJ,CAAK,EAEjDK,EAAUC,EAA4B,KAAO,CACjD,MAAOJ,EACP,YAAcK,GAA2BC,EAAYD,CAAQ,CAAA,GAC3D,CAACP,EAAOE,CAAM,CAAC,EAEnBO,EAAU,IAAM,CAAEC,EAAWR,CAAM,CAAG,EAAG,CAACA,CAAM,CAAC,EAEjD,MAAMM,EAAeD,GAA2B,CAAEJ,EAASI,CAAQ,CAAG,EAEtE,SACGZ,EAAa,SAAb,CAAsB,MAAOU,EAC3B,SAAAJ,EACH,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../core/src/theme/createTheme/createTheme.cjs");exports.createTheme=e.createTheme;
|
|
2
2
|
//# sourceMappingURL=createTheme.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createTheme as m}from"../
|
|
1
|
+
import{createTheme as m}from"../core/src/theme/createTheme/createTheme.js";export{m as createTheme};
|
|
2
2
|
//# sourceMappingURL=createTheme.js.map
|
package/dist/theme/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useTheme.cjs"),r=require("./ThemeProvider.cjs"),t=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useTheme.cjs"),r=require("./ThemeProvider.cjs"),t=require("../core/src/theme/createTheme/createTheme.cjs");exports.useTheme=e.default;exports.ThemeProvider=r.default;exports.createTheme=t.createTheme;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/theme/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{default as o}from"./useTheme.js";import{default as t}from"./ThemeProvider.js";import{createTheme as f}from"../
|
|
1
|
+
import{default as o}from"./useTheme.js";import{default as t}from"./ThemeProvider.js";import{createTheme as f}from"../core/src/theme/createTheme/createTheme.js";export{t as ThemeProvider,f as createTheme,o as useTheme};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../tokens/dist/web/js/index.js"],"sourcesContent":["export const boxShadowsmall = \"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)\";\nexport const boxShadowregular = \"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)\";\nexport const boxShadowlarge = \"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)\";\nexport const proportionbase = \"10.8px 14.4px\";\nexport const proportionsmall = \"10.8px 14.4px\";\nexport const animation = \".3s cubic-bezier(0.4, 0.0, 0.2, 1)\";\nexport const gap = \"0\";\nexport const columns = \"12\";\nexport const rows = \"1\";\nexport const xl = \"1536\";\nexport const lg = \"1535\";\nexport const md = \"1199\";\nexport const sm = \"899\";\nexport const xs = \"599\";\nexport const radius = \"8px\";\nexport const spacing = \"8px\";\nexport const colors = ['primary','secondary','info','error','warning','success'];\n\nexport const sizes = ['xl','lg','md','sm','xs'];\n\nexport const prefix = \"iziui\";\nexport const icon_sizes = {\n small: '16px',\n medium: '24px',\n large: '32px'\n};\n "],"names":["prefix"],"mappings":"gFAoBY,MAACA,EAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../tokens/dist/web/js/index.js"],"sourcesContent":["export const boxShadowsmall = \"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)\";\nexport const boxShadowregular = \"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)\";\nexport const boxShadowlarge = \"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)\";\nexport const proportionbase = \"10.8px 14.4px\";\nexport const proportionsmall = \"10.8px 14.4px\";\nexport const animation = \".3s cubic-bezier(0.4, 0.0, 0.2, 1)\";\nexport const gap = \"0\";\nexport const columns = \"12\";\nexport const rows = \"1\";\nexport const xl = \"1536\";\nexport const lg = \"1535\";\nexport const md = \"1199\";\nexport const sm = \"899\";\nexport const xs = \"599\";\nexport const radius = \"8px\";\nexport const spacing = \"8px\";\nexport const colors = ['primary','secondary','info','error','warning','success'];\n\nexport const sizes = ['xl','lg','md','sm','xs'];\n\nexport const prefix = \"iziui\";\nexport const icon_sizes = {\n small: '16px',\n medium: '24px',\n large: '32px'\n};\n "],"names":["prefix"],"mappings":"AAoBY,MAACA,EAAS"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iziui/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2-rc",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"require": "./dist/index.cjs"
|
|
20
20
|
},
|
|
21
21
|
"./*": {
|
|
22
|
-
"types": "./dist/components
|
|
23
|
-
"import": "./dist/components
|
|
24
|
-
"require": "./dist/components
|
|
22
|
+
"types": "./dist/components/*/index.d.ts",
|
|
23
|
+
"import": "./dist/components/*/index.js",
|
|
24
|
+
"require": "./dist/components/*/index.cjs"
|
|
25
25
|
},
|
|
26
26
|
"./theme": {
|
|
27
27
|
"types": "./dist/theme/index.d.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.production.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOptions.cjs","sources":["../../../../../../../../core/src/options/createOptions/createOptions.ts"],"sourcesContent":["import type { Properties } from 'csstype';\n\nimport type { Plugin } from '../../plugin';\nimport type { ThemeBuilded } from '../../theme';\nimport type { CustomOptions } from '../CustomOptions';\n\ntype Data = {\n sx: CustomOptions;\n theme: ThemeBuilded;\n}\n\nexport default function createOptions({ sx, theme }: Data, ...plugins: Plugin[]): Properties {\n return plugins.reduce<Properties>((acc, plugin) => {\n acc = { ...acc, ...plugin(theme, sx) };\n\n return acc;\n }, {});\n}"],"names":["createOptions","sx","theme","plugins","acc","plugin"],"mappings":"4GAWA,SAAwBA,EAAc,CAAE,GAAAC,EAAI,MAAAC,CAAA,KAAkBC,EAA+B,CAC3F,OAAOA,EAAQ,OAAmB,CAACC,EAAKC,KACtCD,EAAM,CAAE,GAAGA,EAAK,GAAGC,EAAOH,EAAOD,CAAE,CAAA,EAE5BG,GACN,CAAA,CAAE,CACP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOptions.js","sources":["../../../../../../../../core/src/options/createOptions/createOptions.ts"],"sourcesContent":["import type { Properties } from 'csstype';\n\nimport type { Plugin } from '../../plugin';\nimport type { ThemeBuilded } from '../../theme';\nimport type { CustomOptions } from '../CustomOptions';\n\ntype Data = {\n sx: CustomOptions;\n theme: ThemeBuilded;\n}\n\nexport default function createOptions({ sx, theme }: Data, ...plugins: Plugin[]): Properties {\n return plugins.reduce<Properties>((acc, plugin) => {\n acc = { ...acc, ...plugin(theme, sx) };\n\n return acc;\n }, {});\n}"],"names":["createOptions","sx","theme","plugins","acc","plugin"],"mappings":"AAWA,SAAwBA,EAAc,CAAE,GAAAC,EAAI,MAAAC,CAAA,KAAkBC,EAA+B,CAC3F,OAAOA,EAAQ,OAAmB,CAACC,EAAKC,KACtCD,EAAM,CAAE,GAAGA,EAAK,GAAGC,EAAOH,EAAOD,CAAE,CAAA,EAE5BG,GACN,CAAA,CAAE,CACP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBackground.cjs","sources":["../../../../../../../../../core/src/plugin/color/defineBackground/defineBackground.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { background }) => {\n const { palette } = theme;\n\n if (!background) { return {}; }\n\n return {\n background: background(palette)\n };\n});"],"names":["defineBackground","definePlugin","theme","background","palette"],"mappings":"mKAEAA,EAAeC,EAAAA,QAAa,CAACC,EAAO,CAAE,WAAAC,KAAiB,CACrD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,WAAYA,EAAWC,CAAO,CAAA,EAHN,CAAA,CAK5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBackground.js","sources":["../../../../../../../../../core/src/plugin/color/defineBackground/defineBackground.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { background }) => {\n const { palette } = theme;\n\n if (!background) { return {}; }\n\n return {\n background: background(palette)\n };\n});"],"names":["defineBackground","definePlugin","theme","background","palette"],"mappings":"kDAEA,MAAAA,EAAeC,EAAa,CAACC,EAAO,CAAE,WAAAC,KAAiB,CACrD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,WAAYA,EAAWC,CAAO,CAAA,EAHN,CAAA,CAK5B,CAAC"}
|
package/dist/packages/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBackgroundColor.cjs","sources":["../../../../../../../../../core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { backgroundColor }) => {\n const { palette } = theme;\n\n if (!backgroundColor) { return {}; }\n\n return {\n backgroundColor: backgroundColor(palette)\n };\n});"],"names":["defineBackgroundColor","definePlugin","theme","backgroundColor","palette"],"mappings":"mKAEAA,EAAeC,EAAAA,QAAa,CAACC,EAAO,CAAE,gBAAAC,KAAsB,CAC1D,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,gBAAiBA,EAAgBC,CAAO,CAAA,EAHX,CAAA,CAKjC,CAAC"}
|
package/dist/packages/core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBackgroundColor.js","sources":["../../../../../../../../../core/src/plugin/color/defineBackgroundColor/defineBackgroundColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { backgroundColor }) => {\n const { palette } = theme;\n\n if (!backgroundColor) { return {}; }\n\n return {\n backgroundColor: backgroundColor(palette)\n };\n});"],"names":["defineBackgroundColor","definePlugin","theme","backgroundColor","palette"],"mappings":"kDAEA,MAAAA,EAAeC,EAAa,CAACC,EAAO,CAAE,gBAAAC,KAAsB,CAC1D,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,gBAAiBA,EAAgBC,CAAO,CAAA,EAHX,CAAA,CAKjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBorderColor.cjs","sources":["../../../../../../../../../core/src/plugin/color/defineBorderColor/defineBorderColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { borderColor }) => {\n const { palette } = theme;\n\n if (!borderColor) { return {}; }\n\n return {\n borderColor: borderColor(palette)\n };\n});"],"names":["defineBorderColor","definePlugin","theme","borderColor","palette"],"mappings":"mKAEAA,EAAeC,EAAAA,QAAa,CAACC,EAAO,CAAE,YAAAC,KAAkB,CACtD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,YAAaA,EAAYC,CAAO,CAAA,EAHP,CAAA,CAK7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineBorderColor.js","sources":["../../../../../../../../../core/src/plugin/color/defineBorderColor/defineBorderColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { borderColor }) => {\n const { palette } = theme;\n\n if (!borderColor) { return {}; }\n\n return {\n borderColor: borderColor(palette)\n };\n});"],"names":["defineBorderColor","definePlugin","theme","borderColor","palette"],"mappings":"kDAEA,MAAAA,EAAeC,EAAa,CAACC,EAAO,CAAE,YAAAC,KAAkB,CACtD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,YAAaA,EAAYC,CAAO,CAAA,EAHP,CAAA,CAK7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineColor.cjs","sources":["../../../../../../../../../core/src/plugin/color/defineColor/defineColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { color }) => {\n const { palette } = theme;\n\n if (!color) { return {}; }\n\n return {\n color: color(palette)\n };\n});"],"names":["defineColor","definePlugin","theme","color","palette"],"mappings":"mKAEAA,EAAeC,EAAAA,QAAa,CAACC,EAAO,CAAE,MAAAC,KAAY,CAChD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,MAAOA,EAAMC,CAAO,CAAA,EAHD,CAAA,CAKvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineColor.js","sources":["../../../../../../../../../core/src/plugin/color/defineColor/defineColor.ts"],"sourcesContent":["import definePlugin from '../../definePlugin';\n\nexport default definePlugin((theme, { color }) => {\n const { palette } = theme;\n\n if (!color) { return {}; }\n\n return {\n color: color(palette)\n };\n});"],"names":["defineColor","definePlugin","theme","color","palette"],"mappings":"kDAEA,MAAAA,EAAeC,EAAa,CAACC,EAAO,CAAE,MAAAC,KAAY,CAChD,KAAM,CAAE,QAAAC,GAAYF,EAEpB,OAAKC,EAEE,CACL,MAAOA,EAAMC,CAAO,CAAA,EAHD,CAAA,CAKvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definePlugin.cjs","sources":["../../../../../../../../core/src/plugin/definePlugin/definePlugin.ts"],"sourcesContent":["import type { Properties } from 'csstype';\n\nimport type { ThemeBuilded } from '../../theme';\nimport type { CustomOptions } from '../../options';\nimport type { Plugin } from '../plugin';\n\nexport default function definePlugin(cb: (theme: ThemeBuilded, options: CustomOptions) => Properties): Plugin {\n return cb;\n}"],"names":["definePlugin","cb"],"mappings":"4GAMA,SAAwBA,EAAaC,EAAyE,CAC5G,OAAOA,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definePlugin.js","sources":["../../../../../../../../core/src/plugin/definePlugin/definePlugin.ts"],"sourcesContent":["import type { Properties } from 'csstype';\n\nimport type { ThemeBuilded } from '../../theme';\nimport type { CustomOptions } from '../../options';\nimport type { Plugin } from '../plugin';\n\nexport default function definePlugin(cb: (theme: ThemeBuilded, options: CustomOptions) => Properties): Plugin {\n return cb;\n}"],"names":["definePlugin","cb"],"mappings":"AAMA,SAAwBA,EAAaC,EAAyE,CAC5G,OAAOA,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applyTheme.cjs","sources":["../../../../../../../../core/src/theme/applyTheme/applyTheme.ts"],"sourcesContent":["import type { ThemeBuilded, Color } from '../Theme';\n\nfunction setColor(name: string, color: Color) {\n document.documentElement.style.setProperty(`--${name}`, color.main);\n document.documentElement.style.setProperty(`--${name}-light`, color.light);\n document.documentElement.style.setProperty(`--${name}-dark`, color.dark);\n document.documentElement.style.setProperty(`--${name}-contrast`, color.contrastText);\n document.documentElement.style.setProperty(`--${name}-opacity`, color.opacity);\n}\n\nexport function applyTheme(theme: ThemeBuilded) {\n if (typeof window === 'undefined') { return; }\n\n const { palette, shape, spacing } = theme;\n\n // COLORS\n setColor('info', palette.info);\n setColor('error', palette.error);\n setColor('warning', palette.warning);\n setColor('success', palette.success);\n setColor('primary', palette.primary);\n setColor('secondary', palette.secondary);\n\n // GREY\n setColor('grey', palette.grey);\n\n // TEXT\n document.documentElement.style.setProperty('--text-primary', palette.text?.primary);\n document.documentElement.style.setProperty('--text-secondary', palette.text?.secondary);\n document.documentElement.style.setProperty('--text-disabled', palette.text?.disabled);\n\n // BACKGROUND\n document.documentElement.style.setProperty('--background-paper', palette.background?.paper);\n document.documentElement.style.setProperty('--background-default', palette.background?.default);\n\n // DIVIDER\n document.documentElement.style.setProperty('--divider', palette.divider);\n\n // SHAPE\n document.documentElement.style.setProperty('--radius', `${shape.radius}px`);\n\n // SPACING\n document.documentElement.style.setProperty('--spacing', `${spacing}px`);\n}"],"names":["setColor","name","color","applyTheme","theme","palette","shape","spacing"],"mappings":"gFAEA,SAASA,EAASC,EAAcC,EAAc,CAC5C,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,GAAIC,EAAM,IAAI,EAClE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,SAAUC,EAAM,KAAK,EACzE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,QAASC,EAAM,IAAI,EACvE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,YAAaC,EAAM,YAAY,EACnF,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,WAAYC,EAAM,OAAO,CAC/E,CAEO,SAASC,EAAWC,EAAqB,CAC9C,GAAI,OAAO,OAAW,IAAe,OAErC,KAAM,CAAE,QAAAC,EAAS,MAAAC,EAAO,QAAAC,CAAA,EAAYH,EAGpCJ,EAAS,OAAQK,EAAQ,IAAI,EAC7BL,EAAS,QAASK,EAAQ,KAAK,EAC/BL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,YAAaK,EAAQ,SAAS,EAGvCL,EAAS,OAAQK,EAAQ,IAAI,EAG7B,SAAS,gBAAgB,MAAM,YAAY,iBAAkBA,EAAQ,MAAM,OAAO,EAClF,SAAS,gBAAgB,MAAM,YAAY,mBAAoBA,EAAQ,MAAM,SAAS,EACtF,SAAS,gBAAgB,MAAM,YAAY,kBAAmBA,EAAQ,MAAM,QAAQ,EAGpF,SAAS,gBAAgB,MAAM,YAAY,qBAAsBA,EAAQ,YAAY,KAAK,EAC1F,SAAS,gBAAgB,MAAM,YAAY,uBAAwBA,EAAQ,YAAY,OAAO,EAG9F,SAAS,gBAAgB,MAAM,YAAY,YAAaA,EAAQ,OAAO,EAGvE,SAAS,gBAAgB,MAAM,YAAY,WAAY,GAAGC,EAAM,MAAM,IAAI,EAG1E,SAAS,gBAAgB,MAAM,YAAY,YAAa,GAAGC,CAAO,IAAI,CACxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applyTheme.js","sources":["../../../../../../../../core/src/theme/applyTheme/applyTheme.ts"],"sourcesContent":["import type { ThemeBuilded, Color } from '../Theme';\n\nfunction setColor(name: string, color: Color) {\n document.documentElement.style.setProperty(`--${name}`, color.main);\n document.documentElement.style.setProperty(`--${name}-light`, color.light);\n document.documentElement.style.setProperty(`--${name}-dark`, color.dark);\n document.documentElement.style.setProperty(`--${name}-contrast`, color.contrastText);\n document.documentElement.style.setProperty(`--${name}-opacity`, color.opacity);\n}\n\nexport function applyTheme(theme: ThemeBuilded) {\n if (typeof window === 'undefined') { return; }\n\n const { palette, shape, spacing } = theme;\n\n // COLORS\n setColor('info', palette.info);\n setColor('error', palette.error);\n setColor('warning', palette.warning);\n setColor('success', palette.success);\n setColor('primary', palette.primary);\n setColor('secondary', palette.secondary);\n\n // GREY\n setColor('grey', palette.grey);\n\n // TEXT\n document.documentElement.style.setProperty('--text-primary', palette.text?.primary);\n document.documentElement.style.setProperty('--text-secondary', palette.text?.secondary);\n document.documentElement.style.setProperty('--text-disabled', palette.text?.disabled);\n\n // BACKGROUND\n document.documentElement.style.setProperty('--background-paper', palette.background?.paper);\n document.documentElement.style.setProperty('--background-default', palette.background?.default);\n\n // DIVIDER\n document.documentElement.style.setProperty('--divider', palette.divider);\n\n // SHAPE\n document.documentElement.style.setProperty('--radius', `${shape.radius}px`);\n\n // SPACING\n document.documentElement.style.setProperty('--spacing', `${spacing}px`);\n}"],"names":["setColor","name","color","applyTheme","theme","palette","shape","spacing"],"mappings":"AAEA,SAASA,EAASC,EAAcC,EAAc,CAC5C,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,GAAIC,EAAM,IAAI,EAClE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,SAAUC,EAAM,KAAK,EACzE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,QAASC,EAAM,IAAI,EACvE,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,YAAaC,EAAM,YAAY,EACnF,SAAS,gBAAgB,MAAM,YAAY,KAAKD,CAAI,WAAYC,EAAM,OAAO,CAC/E,CAEO,SAASC,EAAWC,EAAqB,CAC9C,GAAI,OAAO,OAAW,IAAe,OAErC,KAAM,CAAE,QAAAC,EAAS,MAAAC,EAAO,QAAAC,CAAA,EAAYH,EAGpCJ,EAAS,OAAQK,EAAQ,IAAI,EAC7BL,EAAS,QAASK,EAAQ,KAAK,EAC/BL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,UAAWK,EAAQ,OAAO,EACnCL,EAAS,YAAaK,EAAQ,SAAS,EAGvCL,EAAS,OAAQK,EAAQ,IAAI,EAG7B,SAAS,gBAAgB,MAAM,YAAY,iBAAkBA,EAAQ,MAAM,OAAO,EAClF,SAAS,gBAAgB,MAAM,YAAY,mBAAoBA,EAAQ,MAAM,SAAS,EACtF,SAAS,gBAAgB,MAAM,YAAY,kBAAmBA,EAAQ,MAAM,QAAQ,EAGpF,SAAS,gBAAgB,MAAM,YAAY,qBAAsBA,EAAQ,YAAY,KAAK,EAC1F,SAAS,gBAAgB,MAAM,YAAY,uBAAwBA,EAAQ,YAAY,OAAO,EAG9F,SAAS,gBAAgB,MAAM,YAAY,YAAaA,EAAQ,OAAO,EAGvE,SAAS,gBAAgB,MAAM,YAAY,WAAY,GAAGC,EAAM,MAAM,IAAI,EAG1E,SAAS,gBAAgB,MAAM,YAAY,YAAa,GAAGC,CAAO,IAAI,CACxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createTheme.cjs","sources":["../../../../../../../../core/src/theme/createTheme/createTheme.ts"],"sourcesContent":["import { generateSupportColors } from '../../utils';\nimport type { ThemeBuilded, ThemeOptions } from '../Theme';\nimport { themeDefaultDark, themeDefaultLight } from '../defaultTheme';\n\nconst SUPPORT_KEYS = [\n 'primary',\n 'secondary',\n 'error',\n 'warning',\n 'success',\n 'info',\n 'grey',\n] as const;\n\ntype SupportKey = (typeof SUPPORT_KEYS)[number];\n\nexport function createTheme(theme?: ThemeOptions): ThemeBuilded {\n const mode = theme?.palette?.mode ?? 'light';\n const ref = mode === 'dark' ? themeDefaultDark : themeDefaultLight;\n\n const paletteFromUser = theme?.palette ?? {};\n const paletteFromRef = ref.palette;\n\n const supportColors = Object.fromEntries(\n SUPPORT_KEYS.map((key) => [\n key,\n generateSupportColors(paletteFromUser[key] ?? paletteFromRef[key]),\n ])\n ) as Record<SupportKey, ThemeBuilded['palette'][SupportKey]>;\n\n return {\n palette: {\n mode,\n text: paletteFromUser.text ?? paletteFromRef.text,\n background: paletteFromUser.background ?? paletteFromRef.background,\n divider: paletteFromUser.divider ?? paletteFromRef.divider,\n ...supportColors,\n },\n shape: theme?.shape ?? ref.shape,\n spacing: theme?.spacing ?? ref.spacing,\n };\n}"],"names":["SUPPORT_KEYS","createTheme","theme","mode","ref","themeDefaultDark","themeDefaultLight","paletteFromUser","paletteFromRef","supportColors","key","generateSupportColors"],"mappings":"gMAIMA,EAAe,CACnB,UACA,YACA,QACA,UACA,UACA,OACA,MACF,EAIO,SAASC,EAAYC,EAAoC,CAC9D,MAAMC,EAAOD,GAAO,SAAS,MAAQ,QAC/BE,EAAMD,IAAS,OAASE,EAAAA,iBAAmBC,EAAAA,kBAE3CC,EAAkBL,GAAO,SAAW,CAAA,EACpCM,EAAiBJ,EAAI,QAErBK,EAAgB,OAAO,YAC3BT,EAAa,IAAKU,GAAQ,CACxBA,EACAC,EAAAA,sBAAsBJ,EAAgBG,CAAG,GAAKF,EAAeE,CAAG,CAAC,CAAA,CAClE,CAAA,EAGH,MAAO,CACL,QAAS,CACP,KAAAP,EACA,KAAMI,EAAgB,MAAQC,EAAe,KAC7C,WAAYD,EAAgB,YAAcC,EAAe,WACzD,QAASD,EAAgB,SAAWC,EAAe,QACnD,GAAGC,CAAA,EAEL,MAAOP,GAAO,OAASE,EAAI,MAC3B,QAASF,GAAO,SAAWE,EAAI,OAAA,CAEnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createTheme.js","sources":["../../../../../../../../core/src/theme/createTheme/createTheme.ts"],"sourcesContent":["import { generateSupportColors } from '../../utils';\nimport type { ThemeBuilded, ThemeOptions } from '../Theme';\nimport { themeDefaultDark, themeDefaultLight } from '../defaultTheme';\n\nconst SUPPORT_KEYS = [\n 'primary',\n 'secondary',\n 'error',\n 'warning',\n 'success',\n 'info',\n 'grey',\n] as const;\n\ntype SupportKey = (typeof SUPPORT_KEYS)[number];\n\nexport function createTheme(theme?: ThemeOptions): ThemeBuilded {\n const mode = theme?.palette?.mode ?? 'light';\n const ref = mode === 'dark' ? themeDefaultDark : themeDefaultLight;\n\n const paletteFromUser = theme?.palette ?? {};\n const paletteFromRef = ref.palette;\n\n const supportColors = Object.fromEntries(\n SUPPORT_KEYS.map((key) => [\n key,\n generateSupportColors(paletteFromUser[key] ?? paletteFromRef[key]),\n ])\n ) as Record<SupportKey, ThemeBuilded['palette'][SupportKey]>;\n\n return {\n palette: {\n mode,\n text: paletteFromUser.text ?? paletteFromRef.text,\n background: paletteFromUser.background ?? paletteFromRef.background,\n divider: paletteFromUser.divider ?? paletteFromRef.divider,\n ...supportColors,\n },\n shape: theme?.shape ?? ref.shape,\n spacing: theme?.spacing ?? ref.spacing,\n };\n}"],"names":["SUPPORT_KEYS","createTheme","theme","mode","ref","themeDefaultDark","themeDefaultLight","paletteFromUser","paletteFromRef","supportColors","key","generateSupportColors"],"mappings":"gLAIA,MAAMA,EAAe,CACnB,UACA,YACA,QACA,UACA,UACA,OACA,MACF,EAIO,SAASC,EAAYC,EAAoC,CAC9D,MAAMC,EAAOD,GAAO,SAAS,MAAQ,QAC/BE,EAAMD,IAAS,OAASE,EAAmBC,EAE3CC,EAAkBL,GAAO,SAAW,CAAA,EACpCM,EAAiBJ,EAAI,QAErBK,EAAgB,OAAO,YAC3BT,EAAa,IAAKU,GAAQ,CACxBA,EACAC,EAAsBJ,EAAgBG,CAAG,GAAKF,EAAeE,CAAG,CAAC,CAAA,CAClE,CAAA,EAGH,MAAO,CACL,QAAS,CACP,KAAAP,EACA,KAAMI,EAAgB,MAAQC,EAAe,KAC7C,WAAYD,EAAgB,YAAcC,EAAe,WACzD,QAASD,EAAgB,SAAWC,EAAe,QACnD,GAAGC,CAAA,EAEL,MAAOP,GAAO,OAASE,EAAI,MAC3B,QAASF,GAAO,SAAWE,EAAI,OAAA,CAEnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.cjs","sources":["../../../../../../../core/src/theme/defaultTheme.ts"],"sourcesContent":["import type { Theme } from './Theme';\n\nexport const defaultSpacing: Theme['spacing'] = 8;\nexport const defaultShape: Theme['shape'] = { radius: 8 };\n\nexport const themeDefaultLight: Theme = {\n palette: {\n mode: 'light',\n info: '#72e4fc',\n error: '#ff5377',\n warning: '#FF9457',\n success: '#36e79b',\n primary: '#6c37f4',\n secondary: '#72e4fc',\n grey: '#F4F4F4',\n text: {\n primary: 'rgb(31, 41, 55)',\n secondary: 'rgb(75, 85, 99)',\n disabled: 'rgb(209, 213, 219)'\n },\n background: {\n paper: '#f9f8f9',\n default: '#FFF',\n },\n divider: 'rgba(0, 0, 0, 0.12)'\n },\n spacing: defaultSpacing,\n shape: defaultShape\n};\n\nexport const themeDefaultDark: Theme = {\n palette: {\n mode: 'dark',\n info: '#72e4fc',\n error: '#ff5377',\n warning: '#FF9457',\n success: '#36e79b',\n primary: '#6c37f4',\n secondary: '#ebff5e',\n grey: '#2A2A2A',\n text: {\n primary: 'rgba(255, 255, 255, 0.87)',\n secondary: 'rgba(255, 255, 255, 0.6)',\n disabled: 'rgba(255, 255, 255, 0.38)'\n },\n background: {\n paper: '#0d0225',\n default: '#30294e',\n },\n divider: 'rgba(255, 255, 255, 0.12)'\n },\n spacing: defaultSpacing,\n shape: defaultShape\n};"],"names":["defaultSpacing","defaultShape","themeDefaultLight","themeDefaultDark"],"mappings":"gFAEO,MAAMA,EAAmC,EACnCC,EAA+B,CAAE,OAAQ,CAAA,EAEzCC,EAA2B,CACtC,QAAS,CACP,KAAM,QACN,KAAM,UACN,MAAO,UACP,QAAS,UACT,QAAS,UACT,QAAS,UACT,UAAW,UACX,KAAM,UACN,KAAM,CACJ,QAAS,kBACT,UAAW,kBACX,SAAU,oBAAA,EAEZ,WAAY,CACV,MAAO,UACP,QAAS,MAAA,EAEX,QAAS,qBAAA,EAEX,QAASF,EACT,MAAOC,CACT,EAEaE,EAA0B,CACrC,QAAS,CACP,KAAM,OACN,KAAM,UACN,MAAO,UACP,QAAS,UACT,QAAS,UACT,QAAS,UACT,UAAW,UACX,KAAM,UACN,KAAM,CACJ,QAAS,4BACT,UAAW,2BACX,SAAU,2BAAA,EAEZ,WAAY,CACV,MAAO,UACP,QAAS,SAAA,EAEX,QAAS,2BAAA,EAEX,QAASH,EACT,MAAOC,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.js","sources":["../../../../../../../core/src/theme/defaultTheme.ts"],"sourcesContent":["import type { Theme } from './Theme';\n\nexport const defaultSpacing: Theme['spacing'] = 8;\nexport const defaultShape: Theme['shape'] = { radius: 8 };\n\nexport const themeDefaultLight: Theme = {\n palette: {\n mode: 'light',\n info: '#72e4fc',\n error: '#ff5377',\n warning: '#FF9457',\n success: '#36e79b',\n primary: '#6c37f4',\n secondary: '#72e4fc',\n grey: '#F4F4F4',\n text: {\n primary: 'rgb(31, 41, 55)',\n secondary: 'rgb(75, 85, 99)',\n disabled: 'rgb(209, 213, 219)'\n },\n background: {\n paper: '#f9f8f9',\n default: '#FFF',\n },\n divider: 'rgba(0, 0, 0, 0.12)'\n },\n spacing: defaultSpacing,\n shape: defaultShape\n};\n\nexport const themeDefaultDark: Theme = {\n palette: {\n mode: 'dark',\n info: '#72e4fc',\n error: '#ff5377',\n warning: '#FF9457',\n success: '#36e79b',\n primary: '#6c37f4',\n secondary: '#ebff5e',\n grey: '#2A2A2A',\n text: {\n primary: 'rgba(255, 255, 255, 0.87)',\n secondary: 'rgba(255, 255, 255, 0.6)',\n disabled: 'rgba(255, 255, 255, 0.38)'\n },\n background: {\n paper: '#0d0225',\n default: '#30294e',\n },\n divider: 'rgba(255, 255, 255, 0.12)'\n },\n spacing: defaultSpacing,\n shape: defaultShape\n};"],"names":["defaultSpacing","defaultShape","themeDefaultLight","themeDefaultDark"],"mappings":"AAEO,MAAMA,EAAmC,EACnCC,EAA+B,CAAE,OAAQ,CAAA,EAEzCC,EAA2B,CACtC,QAAS,CACP,KAAM,QACN,KAAM,UACN,MAAO,UACP,QAAS,UACT,QAAS,UACT,QAAS,UACT,UAAW,UACX,KAAM,UACN,KAAM,CACJ,QAAS,kBACT,UAAW,kBACX,SAAU,oBAAA,EAEZ,WAAY,CACV,MAAO,UACP,QAAS,MAAA,EAEX,QAAS,qBAAA,EAEX,QAAS,EACT,MAAOD,CACT,EAEaE,EAA0B,CACrC,QAAS,CACP,KAAM,OACN,KAAM,UACN,MAAO,UACP,QAAS,UACT,QAAS,UACT,QAAS,UACT,UAAW,UACX,KAAM,UACN,KAAM,CACJ,QAAS,4BACT,UAAW,2BACX,SAAU,2BAAA,EAEZ,WAAY,CACV,MAAO,UACP,QAAS,SAAA,EAEX,QAAS,2BAAA,EAEX,QAAS,EACT,MAAOF,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustLightness.cjs","sources":["../../../../../../../../core/src/utils/adjustLightness/adjustLightness.ts"],"sourcesContent":["import { hslToHex } from '../hslToHex';\n\nexport function adjustLightness(h: number, s: number, l: number, amount: number) {\n l = Math.min(Math.max(l + amount, 0), 100);\n return hslToHex(h, s, l);\n}"],"names":["adjustLightness","h","l","amount","hslToHex"],"mappings":"4HAEO,SAASA,EAAgBC,EAAW,EAAWC,EAAWC,EAAgB,CAC/E,OAAAD,EAAI,KAAK,IAAI,KAAK,IAAIA,EAAIC,EAAQ,CAAC,EAAG,GAAG,EAClCC,WAASH,EAAG,EAAGC,CAAC,CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustLightness.js","sources":["../../../../../../../../core/src/utils/adjustLightness/adjustLightness.ts"],"sourcesContent":["import { hslToHex } from '../hslToHex';\n\nexport function adjustLightness(h: number, s: number, l: number, amount: number) {\n l = Math.min(Math.max(l + amount, 0), 100);\n return hslToHex(h, s, l);\n}"],"names":["adjustLightness","h","s","l","amount","hslToHex"],"mappings":"mDAEO,SAASA,EAAgBC,EAAWC,EAAWC,EAAWC,EAAgB,CAC/E,OAAAD,EAAI,KAAK,IAAI,KAAK,IAAIA,EAAIC,EAAQ,CAAC,EAAG,GAAG,EAClCC,EAASJ,EAAGC,EAAGC,CAAC,CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convertPathToColor.cjs","sources":["../../../../../../../../core/src/utils/convertPathToColor/convertPathToColor.ts"],"sourcesContent":["import type { Path } from '@iziui/toolkit/interface';\n\nimport type { PaletteBuilded } from '../../theme';\n\nexport function convertPathToColor(path: Path<PaletteBuilded>, palette: PaletteBuilded): string {\n return path.split('.').reduce((acc, key) => {\n if (acc && acc[key]) { return acc[key]; }\n\n return palette[key];\n }, '');\n}"],"names":["convertPathToColor","path","palette","acc","key"],"mappings":"gFAIO,SAASA,EAAmBC,EAA4BC,EAAiC,CAC9F,OAAOD,EAAK,MAAM,GAAG,EAAE,OAAO,CAACE,EAAKC,IAC9BD,GAAOA,EAAIC,CAAG,EAAYD,EAAIC,CAAG,EAE9BF,EAAQE,CAAG,EACjB,EAAE,CACP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convertPathToColor.js","sources":["../../../../../../../../core/src/utils/convertPathToColor/convertPathToColor.ts"],"sourcesContent":["import type { Path } from '@iziui/toolkit/interface';\n\nimport type { PaletteBuilded } from '../../theme';\n\nexport function convertPathToColor(path: Path<PaletteBuilded>, palette: PaletteBuilded): string {\n return path.split('.').reduce((acc, key) => {\n if (acc && acc[key]) { return acc[key]; }\n\n return palette[key];\n }, '');\n}"],"names":["convertPathToColor","path","palette","acc","key"],"mappings":"AAIO,SAASA,EAAmBC,EAA4BC,EAAiC,CAC9F,OAAOD,EAAK,MAAM,GAAG,EAAE,OAAO,CAACE,EAAKC,IAC9BD,GAAOA,EAAIC,CAAG,EAAYD,EAAIC,CAAG,EAE9BF,EAAQE,CAAG,EACjB,EAAE,CACP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateSupportColors.cjs","sources":["../../../../../../../../core/src/utils/generateSupportColors/generateSupportColors.ts"],"sourcesContent":["import type { Color } from '../../theme';\nimport { hexToHsl } from '../hexToHsl';\nimport { adjustLightness } from '../adjustLightness';\nimport { getOpacityColor } from '../getOpacityColor';\nimport { getContrastColor } from '../getContrastColor/getContrastColor';\n\nexport function generateSupportColors(hex: string): Color {\n const variation = 20;\n\n const hsl = hexToHsl(hex);\n\n const contrastColor = getContrastColor(hex);\n const lighterColor = adjustLightness(hsl.h, hsl.s, hsl.l, variation);\n const darkerColor = adjustLightness(hsl.h, hsl.s, hsl.l, -variation);\n const opacityColor = getOpacityColor(hex, variation / 100);\n\n return {\n main: hex,\n dark: darkerColor,\n light: lighterColor,\n opacity: opacityColor,\n contrastText: contrastColor\n };\n}"],"names":["generateSupportColors","hex","hsl","hexToHsl","contrastColor","getContrastColor","lighterColor","adjustLightness","darkerColor","opacityColor","getOpacityColor"],"mappings":"0RAMO,SAASA,EAAsBC,EAAoB,CAGxD,MAAMC,EAAMC,EAAAA,SAASF,CAAG,EAElBG,EAAgBC,EAAAA,iBAAiBJ,CAAG,EACpCK,EAAeC,kBAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,EAAS,EAC7DM,EAAcD,kBAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,GAAU,EAC7DO,EAAeC,EAAAA,gBAAgBT,EAAK,GAAY,GAAG,EAEzD,MAAO,CACL,KAAMA,EACN,KAAMO,EACN,MAAOF,EACP,QAASG,EACT,aAAcL,CAAA,CAElB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateSupportColors.js","sources":["../../../../../../../../core/src/utils/generateSupportColors/generateSupportColors.ts"],"sourcesContent":["import type { Color } from '../../theme';\nimport { hexToHsl } from '../hexToHsl';\nimport { adjustLightness } from '../adjustLightness';\nimport { getOpacityColor } from '../getOpacityColor';\nimport { getContrastColor } from '../getContrastColor/getContrastColor';\n\nexport function generateSupportColors(hex: string): Color {\n const variation = 20;\n\n const hsl = hexToHsl(hex);\n\n const contrastColor = getContrastColor(hex);\n const lighterColor = adjustLightness(hsl.h, hsl.s, hsl.l, variation);\n const darkerColor = adjustLightness(hsl.h, hsl.s, hsl.l, -variation);\n const opacityColor = getOpacityColor(hex, variation / 100);\n\n return {\n main: hex,\n dark: darkerColor,\n light: lighterColor,\n opacity: opacityColor,\n contrastText: contrastColor\n };\n}"],"names":["generateSupportColors","hex","hsl","hexToHsl","contrastColor","getContrastColor","lighterColor","adjustLightness","darkerColor","opacityColor","getOpacityColor"],"mappings":"8QAMO,SAASA,EAAsBC,EAAoB,CAGxD,MAAMC,EAAMC,EAASF,CAAG,EAElBG,EAAgBC,EAAiBJ,CAAG,EACpCK,EAAeC,EAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,EAAS,EAC7DM,EAAcD,EAAgBL,EAAI,EAAGA,EAAI,EAAGA,EAAI,EAAG,GAAU,EAC7DO,EAAeC,EAAgBT,EAAK,GAAY,GAAG,EAEzD,MAAO,CACL,KAAMA,EACN,KAAMO,EACN,MAAOF,EACP,QAASG,EACT,aAAcL,CAAA,CAElB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getContrastColor.cjs","sources":["../../../../../../../../core/src/utils/getContrastColor/getContrastColor.ts"],"sourcesContent":["export function getContrastColor(hexColor: string) {\n // Converter hexadecimal para RGB\n const r = parseInt(hexColor.slice(1, 3), 16) / 255;\n const g = parseInt(hexColor.slice(3, 5), 16) / 255;\n const b = parseInt(hexColor.slice(5, 7), 16) / 255;\n\n // Calcular a luminância relativa\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n // Se a luminância for baixa, usar branco como contraste, senão preto\n return luminance > 0.6 ? '#000000' : '#ffffff';\n}"],"names":["getContrastColor","hexColor","r","g","b"],"mappings":"gFAAO,SAASA,EAAiBC,EAAkB,CAEjD,MAAMC,EAAI,SAASD,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCE,EAAI,SAASF,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCG,EAAI,SAASH,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAM/C,MAHkB,OAASC,EAAI,MAASC,EAAI,MAASC,EAGlC,GAAM,UAAY,SACvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getContrastColor.js","sources":["../../../../../../../../core/src/utils/getContrastColor/getContrastColor.ts"],"sourcesContent":["export function getContrastColor(hexColor: string) {\n // Converter hexadecimal para RGB\n const r = parseInt(hexColor.slice(1, 3), 16) / 255;\n const g = parseInt(hexColor.slice(3, 5), 16) / 255;\n const b = parseInt(hexColor.slice(5, 7), 16) / 255;\n\n // Calcular a luminância relativa\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n // Se a luminância for baixa, usar branco como contraste, senão preto\n return luminance > 0.6 ? '#000000' : '#ffffff';\n}"],"names":["getContrastColor","hexColor","r","g","b"],"mappings":"AAAO,SAASA,EAAiBC,EAAkB,CAEjD,MAAMC,EAAI,SAASD,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCE,EAAI,SAASF,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACzCG,EAAI,SAASH,EAAS,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAM/C,MAHkB,OAASC,EAAI,MAASC,EAAI,MAASC,EAGlC,GAAM,UAAY,SACvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOpacityColor.cjs","sources":["../../../../../../../../core/src/utils/getOpacityColor/getOpacityColor.ts"],"sourcesContent":["/**\n * Adiciona opacidade a uma cor em hexadecimal.\n * @param hexColor - A cor em hexadecimal (ex: #RRGGBB ou #RGB).\n * @param opacity - O valor da opacidade (entre 0 e 1).\n * @returns A cor hexadecimal com opacidade (ex: #RRGGBBAA).\n */\nexport function getOpacityColor(hexColor: string, opacity: number): string {\n // Validar entrada do hexadecimal\n const hexPattern = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\n if (!hexPattern.test(hexColor)) {\n throw new Error('Cor inválida. Use um formato hexadecimal (#RRGGBB ou #RGB).');\n }\n\n // Expandir formato #RGB para #RRGGBB\n if (hexColor.length === 4) {\n hexColor = `#${hexColor[1]}${hexColor[1]}${hexColor[2]}${hexColor[2]}${hexColor[3]}${hexColor[3]}`;\n }\n\n // Converter opacidade para formato hexadecimal (0 a 255)\n const alpha = Math.round(opacity * 255);\n const alphaHex = alpha.toString(16).padStart(2, '0').toUpperCase();\n\n // Combinar cor com opacidade\n return `${hexColor}${alphaHex}`;\n}"],"names":["getOpacityColor","hexColor","opacity","alphaHex"],"mappings":"gFAMO,SAASA,EAAgBC,EAAkBC,EAAyB,CAGzE,GAAI,CADe,qCACH,KAAKD,CAAQ,EAC3B,MAAM,IAAI,MAAM,6DAA6D,EAI3EA,EAAS,SAAW,IACtBA,EAAW,IAAIA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAKlG,MAAME,EADQ,KAAK,MAAMD,EAAU,GAAG,EACf,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAAE,YAAA,EAGrD,MAAO,GAAGD,CAAQ,GAAGE,CAAQ,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOpacityColor.js","sources":["../../../../../../../../core/src/utils/getOpacityColor/getOpacityColor.ts"],"sourcesContent":["/**\n * Adiciona opacidade a uma cor em hexadecimal.\n * @param hexColor - A cor em hexadecimal (ex: #RRGGBB ou #RGB).\n * @param opacity - O valor da opacidade (entre 0 e 1).\n * @returns A cor hexadecimal com opacidade (ex: #RRGGBBAA).\n */\nexport function getOpacityColor(hexColor: string, opacity: number): string {\n // Validar entrada do hexadecimal\n const hexPattern = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\n if (!hexPattern.test(hexColor)) {\n throw new Error('Cor inválida. Use um formato hexadecimal (#RRGGBB ou #RGB).');\n }\n\n // Expandir formato #RGB para #RRGGBB\n if (hexColor.length === 4) {\n hexColor = `#${hexColor[1]}${hexColor[1]}${hexColor[2]}${hexColor[2]}${hexColor[3]}${hexColor[3]}`;\n }\n\n // Converter opacidade para formato hexadecimal (0 a 255)\n const alpha = Math.round(opacity * 255);\n const alphaHex = alpha.toString(16).padStart(2, '0').toUpperCase();\n\n // Combinar cor com opacidade\n return `${hexColor}${alphaHex}`;\n}"],"names":["getOpacityColor","hexColor","opacity","alphaHex"],"mappings":"AAMO,SAASA,EAAgBC,EAAkBC,EAAyB,CAGzE,GAAI,CADe,qCACH,KAAKD,CAAQ,EAC3B,MAAM,IAAI,MAAM,6DAA6D,EAI3EA,EAAS,SAAW,IACtBA,EAAW,IAAIA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAKlG,MAAME,EADQ,KAAK,MAAMD,EAAU,GAAG,EACf,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAAE,YAAA,EAGrD,MAAO,GAAGD,CAAQ,GAAGE,CAAQ,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hexToHsl.cjs","sources":["../../../../../../../../core/src/utils/hexToHsl/hexToHsl.ts"],"sourcesContent":["export function hexToHsl(hex: string) {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0, s = 0;\n const l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // acromático\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h *= 60;\n }\n\n return { h, s: s * 100, l: l * 100 };\n}"],"names":["hexToHsl","hex","r","g","b","max","min","h","s","l","d"],"mappings":"gFAAO,SAASA,EAASC,EAAa,CACpC,MAAMC,EAAI,SAASD,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCE,EAAI,SAASF,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCG,EAAI,SAASH,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAEpCI,EAAM,KAAK,IAAIH,EAAGC,EAAGC,CAAC,EACtBE,EAAM,KAAK,IAAIJ,EAAGC,EAAGC,CAAC,EAC5B,IAAIG,EAAI,EAAGC,EAAI,EACf,MAAMC,GAAKJ,EAAMC,GAAO,EAExB,GAAID,IAAQC,EACVC,EAAIC,EAAI,MACH,CACL,MAAME,EAAIL,EAAMC,EAGhB,OAFAE,EAAIC,EAAI,GAAMC,GAAK,EAAIL,EAAMC,GAAOI,GAAKL,EAAMC,GAEvCD,EAAA,CACN,KAAKH,EAAGK,GAAKJ,EAAIC,GAAKM,GAAKP,EAAIC,EAAI,EAAI,GAAI,MAC3C,KAAKD,EAAGI,GAAKH,EAAIF,GAAKQ,EAAI,EAAG,MAC7B,KAAKN,EAAGG,GAAKL,EAAIC,GAAKO,EAAI,EAAG,KAAA,CAE/BH,GAAK,EACP,CAEA,MAAO,CAAE,EAAAA,EAAG,EAAGC,EAAI,IAAK,EAAGC,EAAI,GAAA,CACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hexToHsl.js","sources":["../../../../../../../../core/src/utils/hexToHsl/hexToHsl.ts"],"sourcesContent":["export function hexToHsl(hex: string) {\n const r = parseInt(hex.slice(1, 3), 16) / 255;\n const g = parseInt(hex.slice(3, 5), 16) / 255;\n const b = parseInt(hex.slice(5, 7), 16) / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n let h = 0, s = 0;\n const l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // acromático\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n switch (max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h *= 60;\n }\n\n return { h, s: s * 100, l: l * 100 };\n}"],"names":["hexToHsl","hex","r","g","b","max","min","h","s","d"],"mappings":"AAAO,SAASA,EAASC,EAAa,CACpC,MAAMC,EAAI,SAASD,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCE,EAAI,SAASF,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACpCG,EAAI,SAASH,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IAEpCI,EAAM,KAAK,IAAIH,EAAGC,EAAGC,CAAC,EACtBE,EAAM,KAAK,IAAIJ,EAAGC,EAAGC,CAAC,EAC5B,IAAIG,EAAI,EAAGC,EAAI,EACf,MAAM,GAAKH,EAAMC,GAAO,EAExB,GAAID,IAAQC,EACVC,EAAIC,EAAI,MACH,CACL,MAAMC,EAAIJ,EAAMC,EAGhB,OAFAE,EAAI,EAAI,GAAMC,GAAK,EAAIJ,EAAMC,GAAOG,GAAKJ,EAAMC,GAEvCD,EAAA,CACN,KAAKH,EAAGK,GAAKJ,EAAIC,GAAKK,GAAKN,EAAIC,EAAI,EAAI,GAAI,MAC3C,KAAKD,EAAGI,GAAKH,EAAIF,GAAKO,EAAI,EAAG,MAC7B,KAAKL,EAAGG,GAAKL,EAAIC,GAAKM,EAAI,EAAG,KAAA,CAE/BF,GAAK,EACP,CAEA,MAAO,CAAE,EAAAA,EAAG,EAAGC,EAAI,IAAK,EAAG,EAAI,GAAA,CACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hslToHex.cjs","sources":["../../../../../../../../core/src/utils/hslToHex/hslToHex.ts"],"sourcesContent":["export function hslToHex(h: number, s: number, l: number) {\n s /= 100;\n l /= 100;\n\n const c = (1 - Math.abs(2 * l - 1)) * s;\n const x = c * (1 - Math.abs((h / 60) % 2 - 1));\n const m = l - c / 2;\n let r = 0, g = 0, b = 0;\n\n if (0 <= h && h < 60) { r = c; g = x; b = 0; }\n else if (60 <= h && h < 120) { r = x; g = c; b = 0; }\n else if (120 <= h && h < 180) { r = 0; g = c; b = x; }\n else if (180 <= h && h < 240) { r = 0; g = x; b = c; }\n else if (240 <= h && h < 300) { r = x; g = 0; b = c; }\n else if (300 <= h && h < 360) { r = c; g = 0; b = x; }\n\n const newR = Math.round((r + m) * 255).toString(16).padStart(2, '0');\n const newG = Math.round((g + m) * 255).toString(16).padStart(2, '0');\n const newB = Math.round((b + m) * 255).toString(16).padStart(2, '0');\n\n return `#${newR}${newG}${newB}`;\n}"],"names":["hslToHex","h","s","l","c","x","m","r","g","b","newR","newG","newB"],"mappings":"gFAAO,SAASA,EAASC,EAAWC,EAAWC,EAAW,CACxDD,GAAK,IACLC,GAAK,IAEL,MAAMC,GAAK,EAAI,KAAK,IAAI,EAAID,EAAI,CAAC,GAAKD,EAChCG,EAAID,GAAK,EAAI,KAAK,IAAKH,EAAI,GAAM,EAAI,CAAC,GACtCK,EAAIH,EAAIC,EAAI,EAClB,IAAIG,EAAI,EAAGC,EAAI,EAAGC,EAAI,EAElB,GAAKR,GAAKA,EAAI,IAAMM,EAAIH,EAAGI,EAAIH,EAAGI,EAAI,GACjC,IAAMR,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAIJ,EAAGK,EAAI,GACxC,KAAOR,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIJ,EAAGK,EAAIJ,GACzC,KAAOJ,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIH,EAAGI,EAAIL,GACzC,KAAOH,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAI,EAAGC,EAAIL,GACzC,KAAOH,GAAKA,EAAI,MAAOM,EAAIH,EAAGI,EAAI,EAAGC,EAAIJ,GAElD,MAAMK,EAAO,KAAK,OAAOH,EAAID,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DK,EAAO,KAAK,OAAOH,EAAIF,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DM,EAAO,KAAK,OAAOH,EAAIH,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAEnE,MAAO,IAAII,CAAI,GAAGC,CAAI,GAAGC,CAAI,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hslToHex.js","sources":["../../../../../../../../core/src/utils/hslToHex/hslToHex.ts"],"sourcesContent":["export function hslToHex(h: number, s: number, l: number) {\n s /= 100;\n l /= 100;\n\n const c = (1 - Math.abs(2 * l - 1)) * s;\n const x = c * (1 - Math.abs((h / 60) % 2 - 1));\n const m = l - c / 2;\n let r = 0, g = 0, b = 0;\n\n if (0 <= h && h < 60) { r = c; g = x; b = 0; }\n else if (60 <= h && h < 120) { r = x; g = c; b = 0; }\n else if (120 <= h && h < 180) { r = 0; g = c; b = x; }\n else if (180 <= h && h < 240) { r = 0; g = x; b = c; }\n else if (240 <= h && h < 300) { r = x; g = 0; b = c; }\n else if (300 <= h && h < 360) { r = c; g = 0; b = x; }\n\n const newR = Math.round((r + m) * 255).toString(16).padStart(2, '0');\n const newG = Math.round((g + m) * 255).toString(16).padStart(2, '0');\n const newB = Math.round((b + m) * 255).toString(16).padStart(2, '0');\n\n return `#${newR}${newG}${newB}`;\n}"],"names":["hslToHex","h","s","l","c","x","m","r","g","b","newR","newG","newB"],"mappings":"AAAO,SAASA,EAASC,EAAWC,EAAWC,EAAW,CACxDD,GAAK,IACLC,GAAK,IAEL,MAAMC,GAAK,EAAI,KAAK,IAAI,EAAID,EAAI,CAAC,GAAKD,EAChCG,EAAID,GAAK,EAAI,KAAK,IAAKH,EAAI,GAAM,EAAI,CAAC,GACtCK,EAAIH,EAAIC,EAAI,EAClB,IAAIG,EAAI,EAAGC,EAAI,EAAGC,EAAI,EAElB,GAAKR,GAAKA,EAAI,IAAMM,EAAIH,EAAGI,EAAIH,EAAGI,EAAI,GACjC,IAAMR,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAIJ,EAAGK,EAAI,GACxC,KAAOR,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIJ,EAAGK,EAAIJ,GACzC,KAAOJ,GAAKA,EAAI,KAAOM,EAAI,EAAGC,EAAIH,EAAGI,EAAIL,GACzC,KAAOH,GAAKA,EAAI,KAAOM,EAAIF,EAAGG,EAAI,EAAGC,EAAIL,GACzC,KAAOH,GAAKA,EAAI,MAAOM,EAAIH,EAAGI,EAAI,EAAGC,EAAIJ,GAElD,MAAMK,EAAO,KAAK,OAAOH,EAAID,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DK,EAAO,KAAK,OAAOH,EAAIF,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAC7DM,EAAO,KAAK,OAAOH,EAAIH,GAAK,GAAG,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,EAEnE,MAAO,IAAII,CAAI,GAAGC,CAAI,GAAGC,CAAI,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinClass.cjs","sources":["../../../../../../../../core/src/utils/joinClass/joinClass.ts"],"sourcesContent":["export function joinClass(...args: Array<string | null | undefined | boolean>) {\n return args\n .filter((value): value is string => typeof value === 'string' && value.length > 0)\n .join(' ');\n};\n"],"names":["joinClass","args","value"],"mappings":"gFAAO,SAASA,KAAaC,EAAkD,CAC7E,OAAOA,EACJ,OAAQC,GAA2B,OAAOA,GAAU,UAAYA,EAAM,OAAS,CAAC,EAChF,KAAK,GAAG,CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinClass.js","sources":["../../../../../../../../core/src/utils/joinClass/joinClass.ts"],"sourcesContent":["export function joinClass(...args: Array<string | null | undefined | boolean>) {\n return args\n .filter((value): value is string => typeof value === 'string' && value.length > 0)\n .join(' ');\n};\n"],"names":["joinClass","args","value"],"mappings":"AAAO,SAASA,KAAaC,EAAkD,CAC7E,OAAOA,EACJ,OAAQC,GAA2B,OAAOA,GAAU,UAAYA,EAAM,OAAS,CAAC,EAChF,KAAK,GAAG,CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../../../tokens/dist/web/js/index.js"],"sourcesContent":["export const boxShadowsmall = \"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)\";\nexport const boxShadowregular = \"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)\";\nexport const boxShadowlarge = \"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)\";\nexport const proportionbase = \"10.8px 14.4px\";\nexport const proportionsmall = \"10.8px 14.4px\";\nexport const animation = \".3s cubic-bezier(0.4, 0.0, 0.2, 1)\";\nexport const gap = \"0\";\nexport const columns = \"12\";\nexport const rows = \"1\";\nexport const xl = \"1536\";\nexport const lg = \"1535\";\nexport const md = \"1199\";\nexport const sm = \"899\";\nexport const xs = \"599\";\nexport const radius = \"8px\";\nexport const spacing = \"8px\";\nexport const colors = ['primary','secondary','info','error','warning','success'];\n\nexport const sizes = ['xl','lg','md','sm','xs'];\n\nexport const prefix = \"iziui\";\nexport const icon_sizes = {\n small: '16px',\n medium: '24px',\n large: '32px'\n};\n "],"names":["prefix"],"mappings":"gFAoBY,MAACA,EAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../tokens/dist/web/js/index.js"],"sourcesContent":["export const boxShadowsmall = \"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)\";\nexport const boxShadowregular = \"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)\";\nexport const boxShadowlarge = \"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)\";\nexport const proportionbase = \"10.8px 14.4px\";\nexport const proportionsmall = \"10.8px 14.4px\";\nexport const animation = \".3s cubic-bezier(0.4, 0.0, 0.2, 1)\";\nexport const gap = \"0\";\nexport const columns = \"12\";\nexport const rows = \"1\";\nexport const xl = \"1536\";\nexport const lg = \"1535\";\nexport const md = \"1199\";\nexport const sm = \"899\";\nexport const xs = \"599\";\nexport const radius = \"8px\";\nexport const spacing = \"8px\";\nexport const colors = ['primary','secondary','info','error','warning','success'];\n\nexport const sizes = ['xl','lg','md','sm','xs'];\n\nexport const prefix = \"iziui\";\nexport const icon_sizes = {\n small: '16px',\n medium: '24px',\n large: '32px'\n};\n "],"names":["prefix"],"mappings":"AAoBY,MAACA,EAAS"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{packages/core → core}/src/plugin/color/defineBackgroundColor/defineBackgroundColor.js
RENAMED
|
File without changes
|
/package/dist/{packages/core → core}/src/plugin/color/defineBorderColor/defineBorderColor.cjs
RENAMED
|
File without changes
|
/package/dist/{packages/core → core}/src/plugin/color/defineBorderColor/defineBorderColor.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{packages/core → core}/src/utils/generateSupportColors/generateSupportColors.cjs
RENAMED
|
File without changes
|