@e1011/es-kit 1.0.46 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/hooks/esm/index.css +43 -43
  2. package/dist/hooks/index.css +43 -43
  3. package/dist/lib/cjs/src/core/ui/components/container/FBox.js +1 -1
  4. package/dist/lib/cjs/src/core/ui/components/container/FBox.js.map +1 -1
  5. package/dist/lib/cjs/src/core/ui/components/dividers/DividerLine.js +1 -1
  6. package/dist/lib/cjs/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  7. package/dist/lib/esm/src/core/ui/components/container/FBox.js +1 -1
  8. package/dist/lib/esm/src/core/ui/components/container/FBox.js.map +1 -1
  9. package/dist/lib/esm/src/core/ui/components/dividers/DividerLine.js +1 -1
  10. package/dist/lib/esm/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  11. package/dist/lib/src/core/ui/components/container/FBox.js +20 -6
  12. package/dist/lib/src/core/ui/components/container/FBox.js.map +1 -1
  13. package/dist/lib/src/core/ui/components/dividers/DividerLine.js +1 -1
  14. package/dist/lib/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  15. package/dist/lib/src/core/utils/test/testRenderer.js +12 -0
  16. package/dist/lib/src/core/utils/test/testRenderer.js.map +1 -0
  17. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  18. package/dist/types/src/core/ui/components/container/FBox.d.ts +2 -2
  19. package/dist/types/src/core/ui/components/container/FBox.d.ts.map +1 -1
  20. package/dist/types/src/core/ui/components/container/Flex.d.ts +3 -3
  21. package/dist/types/src/core/utils/test/testRenderer.d.ts +6 -0
  22. package/dist/types/src/core/utils/test/testRenderer.d.ts.map +1 -0
  23. package/dist/ui/esm/src/core/ui/components/container/FBox.js +1 -1
  24. package/dist/ui/esm/src/core/ui/components/container/FBox.js.map +1 -1
  25. package/dist/ui/esm/src/core/ui/components/dividers/DividerLine.js +1 -1
  26. package/dist/ui/esm/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  27. package/dist/ui/src/core/ui/components/container/FBox.js +1 -1
  28. package/dist/ui/src/core/ui/components/container/FBox.js.map +1 -1
  29. package/dist/ui/src/core/ui/components/dividers/DividerLine.js +1 -1
  30. package/dist/ui/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  31. package/dist/utils/esm/index.css +43 -43
  32. package/dist/utils/index.css +43 -43
  33. package/package.json +8 -5
  34. package/dist/lib/cjs/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  35. package/dist/lib/cjs/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  36. package/dist/lib/esm/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  37. package/dist/lib/esm/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  38. package/dist/lib/src/core/utils/web-components/coreElements/coreElements.js +0 -23
  39. package/dist/lib/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  40. package/dist/lib/src/core/utils/web-components/coreElements/exampleCustomElement.js +0 -41
  41. package/dist/lib/src/core/utils/web-components/coreElements/exampleCustomElement.js.map +0 -1
  42. package/dist/lib/src/core/utils/web-components/coreElements/index.js +0 -2
  43. package/dist/lib/src/core/utils/web-components/coreElements/index.js.map +0 -1
  44. package/dist/lib/src/core/utils/web-components/index.js +0 -2
  45. package/dist/lib/src/core/utils/web-components/index.js.map +0 -1
  46. package/dist/types/src/core/utils/web-components/coreElements/coreElements.d.ts +0 -6
  47. package/dist/types/src/core/utils/web-components/coreElements/coreElements.d.ts.map +0 -1
  48. package/dist/types/src/core/utils/web-components/coreElements/exampleCustomElement.d.ts +0 -7
  49. package/dist/types/src/core/utils/web-components/coreElements/exampleCustomElement.d.ts.map +0 -1
  50. package/dist/types/src/core/utils/web-components/coreElements/index.d.ts +0 -2
  51. package/dist/types/src/core/utils/web-components/coreElements/index.d.ts.map +0 -1
  52. package/dist/types/src/core/utils/web-components/index.d.ts +0 -2
  53. package/dist/types/src/core/utils/web-components/index.d.ts.map +0 -1
  54. package/dist/ui/esm/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  55. package/dist/ui/esm/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  56. package/dist/ui/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  57. package/dist/ui/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  58. package/dist/utils/esm/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  59. package/dist/utils/esm/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
  60. package/dist/utils/src/core/utils/web-components/coreElements/coreElements.js +0 -2
  61. package/dist/utils/src/core/utils/web-components/coreElements/coreElements.js.map +0 -1
@@ -1,2 +0,0 @@
1
- var e=function(e){return function(t){customElements.get(e)||customElements.define(e,t)}};export{e as ced};
2
- //# sourceMappingURL=coreElements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coreElements.js","sources":["../../../../../../../../src/core/utils/web-components/coreElements/coreElements.ts"],"sourcesContent":["\n\n/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n let resolvedAttrValue: string | boolean | null = attrValue\n\n if (resolvedAttrValue === 'true' || resolvedAttrValue === 'false') {\n resolvedAttrValue = resolvedAttrValue === 'true'\n }\n\n const attrValueDefined = (resolvedAttrValue !== undefined && resolvedAttrValue !== null)\n\n if (attrValueDefined && (\n overrideProperty || component[attributeName] === undefined || component[attributeName] === null\n )) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(resolvedAttrValue) : resolvedAttrValue\n }\n\n return attrValueDefined\n}\n\n\nexport const stringArrayParser = (value: string) => JSON.parse(value) as string[]\n\nexport const stringObjectParser = (value: string) => JSON.parse(value) as Record<string, unknown>\n"],"names":["ced","name","componentClass","customElements","get","define"],"mappings":"IAGaA,EAAM,SAACC,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ced=function(e){return function(t){customElements.get(e)||customElements.define(e,t)}};
2
- //# sourceMappingURL=coreElements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coreElements.js","sources":["../../../../../../../src/core/utils/web-components/coreElements/coreElements.ts"],"sourcesContent":["\n\n/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n let resolvedAttrValue: string | boolean | null = attrValue\n\n if (resolvedAttrValue === 'true' || resolvedAttrValue === 'false') {\n resolvedAttrValue = resolvedAttrValue === 'true'\n }\n\n const attrValueDefined = (resolvedAttrValue !== undefined && resolvedAttrValue !== null)\n\n if (attrValueDefined && (\n overrideProperty || component[attributeName] === undefined || component[attributeName] === null\n )) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(resolvedAttrValue) : resolvedAttrValue\n }\n\n return attrValueDefined\n}\n\n\nexport const stringArrayParser = (value: string) => JSON.parse(value) as string[]\n\nexport const stringObjectParser = (value: string) => JSON.parse(value) as Record<string, unknown>\n"],"names":["name","componentClass","customElements","get","define"],"mappings":"gFAGmB,SAACA,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD"}
@@ -1,2 +0,0 @@
1
- var t=function(t){return function(n){customElements.get(t)||customElements.define(t,n)}},n=t,e=function(t){return function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,u=t.getAttribute(n);"true"!==u&&"false"!==u||(u="true"===u);var o=null!=u;return o&&(e||void 0===t[n]||null===t[n])&&(t[n]=r?r(u):u),o}},r=function(t){return JSON.parse(t)},u=function(t){return JSON.parse(t)};export{t as ced,e as createResolveAttribute,n as customElementDefine,r as stringArrayParser,u as stringObjectParser};
2
- //# sourceMappingURL=coreElements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coreElements.js","sources":["../../../../../../../../src/core/utils/web-components/coreElements/coreElements.ts"],"sourcesContent":["\n\n/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n let resolvedAttrValue: string | boolean | null = attrValue\n\n if (resolvedAttrValue === 'true' || resolvedAttrValue === 'false') {\n resolvedAttrValue = resolvedAttrValue === 'true'\n }\n\n const attrValueDefined = (resolvedAttrValue !== undefined && resolvedAttrValue !== null)\n\n if (attrValueDefined && (\n overrideProperty || component[attributeName] === undefined || component[attributeName] === null\n )) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(resolvedAttrValue) : resolvedAttrValue\n }\n\n return attrValueDefined\n}\n\n\nexport const stringArrayParser = (value: string) => JSON.parse(value) as string[]\n\nexport const stringObjectParser = (value: string) => JSON.parse(value) as Record<string, unknown>\n"],"names":["ced","name","componentClass","customElements","get","define","customElementDefine","createResolveAttribute","component","attributeName","overrideProperty","arguments","length","undefined","valueMap","resolvedAttrValue","getAttribute","attrValueDefined","stringArrayParser","value","JSON","parse","stringObjectParser"],"mappings":"IAGaA,EAAM,SAACC,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD,EAEYI,EAAsBN,EAGtBO,EAAyB,SACpCC,GAAwC,OACrC,SACHC,GAIY,IAFZC,IAAgBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAChBG,EAAsCH,UAAAC,OAAAD,EAAAA,kBAAAE,EAGlCE,EADcP,EAAUQ,aAAaP,GAGf,SAAtBM,GAAsD,UAAtBA,IAClCA,EAA0C,SAAtBA,GAGtB,IAAME,EAAoBF,QAS1B,OAPIE,IACFP,QAAiDG,IAA7BL,EAAUC,IAA6D,OAA7BD,EAAUC,MAGxED,EAAUC,GAAiBK,EAAWA,EAASC,GAAqBA,GAG/DE,EACR,EAGYC,EAAoB,SAACC,GAAa,OAAKC,KAAKC,MAAMF,EAAM,EAExDG,EAAqB,SAACH,GAAa,OAAKC,KAAKC,MAAMF,EAAM"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return function(t){customElements.get(e)||customElements.define(e,t)}},t=e;exports.ced=e,exports.createResolveAttribute=function(e){return function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,u=e.getAttribute(t);"true"!==u&&"false"!==u||(u="true"===u);var s=null!=u;return s&&(r||void 0===e[t]||null===e[t])&&(e[t]=n?n(u):u),s}},exports.customElementDefine=t,exports.stringArrayParser=function(e){return JSON.parse(e)},exports.stringObjectParser=function(e){return JSON.parse(e)};
2
- //# sourceMappingURL=coreElements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coreElements.js","sources":["../../../../../../../src/core/utils/web-components/coreElements/coreElements.ts"],"sourcesContent":["\n\n/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n let resolvedAttrValue: string | boolean | null = attrValue\n\n if (resolvedAttrValue === 'true' || resolvedAttrValue === 'false') {\n resolvedAttrValue = resolvedAttrValue === 'true'\n }\n\n const attrValueDefined = (resolvedAttrValue !== undefined && resolvedAttrValue !== null)\n\n if (attrValueDefined && (\n overrideProperty || component[attributeName] === undefined || component[attributeName] === null\n )) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(resolvedAttrValue) : resolvedAttrValue\n }\n\n return attrValueDefined\n}\n\n\nexport const stringArrayParser = (value: string) => JSON.parse(value) as string[]\n\nexport const stringObjectParser = (value: string) => JSON.parse(value) as Record<string, unknown>\n"],"names":["ced","name","componentClass","customElements","get","define","customElementDefine","component","attributeName","overrideProperty","arguments","length","undefined","valueMap","resolvedAttrValue","getAttribute","attrValueDefined","value","JSON","parse"],"mappings":"wEAGaA,EAAM,SAACC,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD,EAEYI,EAAsBN,+CAGG,SACpCO,GAAwC,OACrC,SACHC,GAIY,IAFZC,IAAgBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAChBG,EAAsCH,UAAAC,OAAAD,EAAAA,kBAAAE,EAGlCE,EADcP,EAAUQ,aAAaP,GAGf,SAAtBM,GAAsD,UAAtBA,IAClCA,EAA0C,SAAtBA,GAGtB,IAAME,EAAoBF,QAS1B,OAPIE,IACFP,QAAiDG,IAA7BL,EAAUC,IAA6D,OAA7BD,EAAUC,MAGxED,EAAUC,GAAiBK,EAAWA,EAASC,GAAqBA,GAG/DE,EACR,0DAGgC,SAACC,GAAa,OAAKC,KAAKC,MAAMF,EAAM,6BAEnC,SAACA,GAAa,OAAKC,KAAKC,MAAMF,EAAM"}