@websolutespa/bom-mixer-ui 0.0.1

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 (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +11 -0
  3. package/dist/carousel-1-DVCEK6QW.mjs +13 -0
  4. package/dist/carousel-1-DXYGMXKJ.mjs +14 -0
  5. package/dist/chunk-2NOCZCBX.mjs +494 -0
  6. package/dist/chunk-2QPVBWSO.mjs +27 -0
  7. package/dist/chunk-3O6XPTXR.mjs +54 -0
  8. package/dist/chunk-4G2V76JL.mjs +87 -0
  9. package/dist/chunk-4GP5DTTM.mjs +1101 -0
  10. package/dist/chunk-56QPQUHL.mjs +87 -0
  11. package/dist/chunk-5HED55DH.mjs +89 -0
  12. package/dist/chunk-5JVP5WNM.mjs +109 -0
  13. package/dist/chunk-5OIM36YU.mjs +43 -0
  14. package/dist/chunk-6HX6MNJA.mjs +808 -0
  15. package/dist/chunk-6RQBZFNK.mjs +13 -0
  16. package/dist/chunk-74GX2GU5.mjs +84 -0
  17. package/dist/chunk-A5PJ35ED.mjs +30 -0
  18. package/dist/chunk-A7SAZJPB.mjs +54 -0
  19. package/dist/chunk-AWRVGAMB.mjs +34 -0
  20. package/dist/chunk-B5WDQW62.mjs +469 -0
  21. package/dist/chunk-CCBJBAAA.mjs +47 -0
  22. package/dist/chunk-DANHURV6.mjs +84 -0
  23. package/dist/chunk-DBOW5IIN.mjs +5138 -0
  24. package/dist/chunk-DC3AZYXP.mjs +48 -0
  25. package/dist/chunk-DV6WR2TC.mjs +51 -0
  26. package/dist/chunk-G4IKIC5S.mjs +36 -0
  27. package/dist/chunk-GDCL5WRV.mjs +47 -0
  28. package/dist/chunk-GGXSEAD2.mjs +494 -0
  29. package/dist/chunk-GNG6WR62.mjs +220 -0
  30. package/dist/chunk-GZ4XU7KO.mjs +84 -0
  31. package/dist/chunk-HCSER4UQ.mjs +31 -0
  32. package/dist/chunk-IF5CE4SD.mjs +89 -0
  33. package/dist/chunk-IG66RP7S.mjs +54 -0
  34. package/dist/chunk-IK736OHT.mjs +31 -0
  35. package/dist/chunk-IZQZVLFR.mjs +84 -0
  36. package/dist/chunk-J7LSTFGB.mjs +51 -0
  37. package/dist/chunk-JQPC4MHB.mjs +40 -0
  38. package/dist/chunk-JTGZNI2A.mjs +92 -0
  39. package/dist/chunk-JYFB4EY7.mjs +26 -0
  40. package/dist/chunk-KJAR4KTH.mjs +114 -0
  41. package/dist/chunk-LEHIZSHR.mjs +122 -0
  42. package/dist/chunk-LSXKWZBB.mjs +808 -0
  43. package/dist/chunk-LV3AK64L.mjs +37 -0
  44. package/dist/chunk-MU4CJBV7.mjs +82 -0
  45. package/dist/chunk-MW5M3AIG.mjs +29 -0
  46. package/dist/chunk-MZ764V34.mjs +33 -0
  47. package/dist/chunk-N5J24WJE.mjs +22 -0
  48. package/dist/chunk-NLXIPXSN.mjs +44 -0
  49. package/dist/chunk-NM3CSEJ3.mjs +33 -0
  50. package/dist/chunk-NWHJ5ZAA.mjs +27 -0
  51. package/dist/chunk-OAAW3SV6.mjs +199 -0
  52. package/dist/chunk-OAVF6LFH.mjs +58 -0
  53. package/dist/chunk-PFPUP4FL.mjs +807 -0
  54. package/dist/chunk-QSN3F243.mjs +33 -0
  55. package/dist/chunk-QXUK3J2W.mjs +199 -0
  56. package/dist/chunk-RU2KB7XM.mjs +51 -0
  57. package/dist/chunk-SBQY6FWU.mjs +77 -0
  58. package/dist/chunk-TNJCCH5V.mjs +220 -0
  59. package/dist/chunk-U4CLZOPI.mjs +232 -0
  60. package/dist/chunk-UGZQFVRQ.mjs +29 -0
  61. package/dist/chunk-VTNTTQXM.mjs +54 -0
  62. package/dist/chunk-W346ZVLC.mjs +13 -0
  63. package/dist/chunk-XAXJC3FV.mjs +36 -0
  64. package/dist/chunk-Y2QTR7KM.mjs +55 -0
  65. package/dist/chunk-ZBPDMEV4.mjs +122 -0
  66. package/dist/chunk-ZFNJUDPN.mjs +43 -0
  67. package/dist/download-1-FRTTCFSC.mjs +14 -0
  68. package/dist/download-1-HFDPW6PG.mjs +13 -0
  69. package/dist/index.d.ts +2548 -0
  70. package/dist/index.js +15611 -0
  71. package/dist/index.mjs +11555 -0
  72. package/dist/magazine-related-D3WTHTLF.mjs +14 -0
  73. package/dist/magazine-related-JCGUUCUP.mjs +15 -0
  74. package/dist/media-full-1-BDODTFLB.mjs +10 -0
  75. package/dist/media-full-1-EBZLR4NY.mjs +10 -0
  76. package/dist/media-full-2-2PO7MSS6.mjs +11 -0
  77. package/dist/media-full-2-M4O7HRCV.mjs +11 -0
  78. package/dist/media-media-1-ET3G2SWF.mjs +12 -0
  79. package/dist/media-media-1-HIJUPGM7.mjs +12 -0
  80. package/dist/media-media-1-V6ZQ6RZG.mjs +12 -0
  81. package/dist/not-found-JWIKAAPV.mjs +10 -0
  82. package/dist/not-found-YT633IOF.mjs +10 -0
  83. package/dist/products-detail-download-4FB5IJ3Q.mjs +13 -0
  84. package/dist/products-detail-download-7G2TYM3Q.mjs +14 -0
  85. package/dist/products-detail-related-2PVSOSDY.mjs +16 -0
  86. package/dist/products-detail-related-EVYW6HQA.mjs +15 -0
  87. package/dist/products-detail-related-YIFMTUCQ.mjs +15 -0
  88. package/dist/products-detail-size-color-AKSUWV6K.mjs +15 -0
  89. package/dist/products-detail-size-color-DN3E6KET.mjs +15 -0
  90. package/dist/products-detail-size-color-YLQ352FR.mjs +15 -0
  91. package/dist/related-1-27HY3JEE.mjs +16 -0
  92. package/dist/related-1-RW2MS6XN.mjs +15 -0
  93. package/dist/related-1-XXICN6PY.mjs +15 -0
  94. package/dist/shop-detail-related-AW5RTFOH.mjs +15 -0
  95. package/dist/shop-detail-related-OS5YUH6Y.mjs +15 -0
  96. package/dist/shop-detail-related-SQ5MBIA2.mjs +16 -0
  97. package/dist/sizes-colors-1-IPWE45PQ.mjs +15 -0
  98. package/dist/sizes-colors-1-JSJSGDQB.mjs +15 -0
  99. package/dist/sizes-colors-1-R36L2GI3.mjs +15 -0
  100. package/dist/text-1-265D6JDN.mjs +11 -0
  101. package/dist/text-1-4LCCLSTO.mjs +11 -0
  102. package/dist/text-aside-1-5COCRCVM.mjs +12 -0
  103. package/dist/text-aside-1-H56SUGSM.mjs +12 -0
  104. package/dist/text-aside-1-YIXPMUBS.mjs +12 -0
  105. package/dist/text-media-1-FTVDNKGV.mjs +13 -0
  106. package/dist/text-media-1-QQY7WNS2.mjs +13 -0
  107. package/dist/text-media-1-ZGI6ITM6.mjs +13 -0
  108. package/dist/text-text-1-KCRMHXGX.mjs +11 -0
  109. package/dist/text-text-1-NOFPMB5T.mjs +11 -0
  110. package/package.json +79 -0
@@ -0,0 +1,13 @@
1
+ import {
2
+ getCssResponsive
3
+ } from "./chunk-B5WDQW62.mjs";
4
+
5
+ // src/components/box/box.tsx
6
+ import styled from "styled-components";
7
+ var Box = styled.div`
8
+ ${(props) => getCssResponsive(props)}
9
+ `;
10
+
11
+ export {
12
+ Box
13
+ };
@@ -0,0 +1,84 @@
1
+ import {
2
+ Card
3
+ } from "./chunk-LEHIZSHR.mjs";
4
+ import {
5
+ Flex
6
+ } from "./chunk-OAAW3SV6.mjs";
7
+ import {
8
+ Button
9
+ } from "./chunk-A7SAZJPB.mjs";
10
+ import {
11
+ Grid
12
+ } from "./chunk-6HX6MNJA.mjs";
13
+ import {
14
+ Media
15
+ } from "./chunk-GNG6WR62.mjs";
16
+ import {
17
+ Container,
18
+ Section,
19
+ Text
20
+ } from "./chunk-GGXSEAD2.mjs";
21
+ import {
22
+ __objRest,
23
+ __spreadProps,
24
+ __spreadValues
25
+ } from "./chunk-B5WDQW62.mjs";
26
+
27
+ // src/sections/shop-detail-related/shop-detail-related.tsx
28
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
29
+ import dynamic from "next/dynamic";
30
+
31
+ // src/sections/shop-detail-related/shop-detail-related-card.tsx
32
+ import Link from "next/link";
33
+ import styled from "styled-components";
34
+ import { jsx, jsxs } from "react/jsx-runtime";
35
+ var StyledCard = styled(Card)`
36
+ .media{
37
+ .image {
38
+ position: absolute;
39
+ top: 0;
40
+ right: 0;
41
+ bottom: 0;
42
+ left: 0;
43
+ object-fit: cover;
44
+
45
+ &:not(:first-child) {
46
+ opacity: 0!important;
47
+ }
48
+ }
49
+ }
50
+ &:hover {
51
+ .media {
52
+ .image:nth-child(2) {
53
+ opacity: 1!important;
54
+ }
55
+ }
56
+ }
57
+ `;
58
+ var ShopDetailRelatedCard = (_a) => {
59
+ var _b = _a, { item } = _b, props = __objRest(_b, ["item"]);
60
+ return /* @__PURE__ */ jsxs(StyledCard, __spreadProps(__spreadValues({}, props), { hoverable: true, children: [
61
+ /* @__PURE__ */ jsx(Link, { href: item.href || "#", passHref: true, children: /* @__PURE__ */ jsx(Media, { as: "a", aspectRatio: 1, borderRadius: "0.4rem", marginBottom: "1.5rem", item: item.media }) }),
62
+ /* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsx(Flex.Row, { justifyContent: "space-between", children: /* @__PURE__ */ jsx(Button, { variant: "nav", children: /* @__PURE__ */ jsx(Text, { size: "8", dangerouslySetInnerHTML: { __html: item.title || "untitled" } }) }) }) })
63
+ ] }));
64
+ };
65
+
66
+ // src/sections/shop-detail-related/shop-detail-related.tsx
67
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
68
+ var ShopDetailRelated = ({ id, item }) => {
69
+ const classNames = getClassNames(item.schema);
70
+ return /* @__PURE__ */ jsx2(Section, { id, className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsxs2(Container.Fluid, { children: [
71
+ item.title && /* @__PURE__ */ jsx2(Text, { size: "3", textAlign: "center", marginBottom: "4rem", dangerouslySetInnerHTML: { __html: item.title } }),
72
+ /* @__PURE__ */ jsx2(Grid.Row, { rowGap: "3rem", children: item.items && item.items.map((related, r) => /* @__PURE__ */ jsx2(Grid, { sm: 6, md: 3, justifyContent: "center", children: /* @__PURE__ */ jsx2(ShopDetailRelatedCard, { item: related }) }, r)) })
73
+ ] }) });
74
+ };
75
+ var ShopDetailRelatedExport = {
76
+ "shop-detail-related": dynamic(() => Promise.resolve().then(() => require_shop_detail_related()).then(
77
+ (module) => module.ShopDetailRelated
78
+ ))
79
+ };
80
+
81
+ export {
82
+ ShopDetailRelated,
83
+ ShopDetailRelatedExport
84
+ };
@@ -0,0 +1,30 @@
1
+ import {
2
+ Media
3
+ } from "./chunk-GNG6WR62.mjs";
4
+ import {
5
+ Container,
6
+ Section,
7
+ Text
8
+ } from "./chunk-GGXSEAD2.mjs";
9
+
10
+ // src/lazy/media-full-2/media-full-2.tsx
11
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
12
+ import dynamic from "next/dynamic";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ var MediaFull2 = ({ item }) => {
15
+ const classNames = getClassNames(item.schema);
16
+ return /* @__PURE__ */ jsx(Section, { className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsxs(Container.Fluid, { children: [
17
+ /* @__PURE__ */ jsx(Media, { aspectRatio: 16 / 10, item: item.media }),
18
+ item.media.alt && /* @__PURE__ */ jsx(Text, { size: "8", marginTop: "1rem", children: item.media.alt })
19
+ ] }) });
20
+ };
21
+ var MediaFull2Export = {
22
+ "media-full-2": dynamic(() => Promise.resolve().then(() => require_media_full_2()).then(
23
+ (module) => module.MediaFull2
24
+ ))
25
+ };
26
+
27
+ export {
28
+ MediaFull2,
29
+ MediaFull2Export
30
+ };
@@ -0,0 +1,54 @@
1
+ import {
2
+ CssButtonCircle,
3
+ CssButtonDefault,
4
+ CssButtonGhost,
5
+ CssButtonLink,
6
+ CssButtonNav,
7
+ CssButtonOutline,
8
+ CssButtonPrimary,
9
+ CssButtonSecondary,
10
+ CssButtonToggle,
11
+ CssButtonUnderline,
12
+ CssDefault
13
+ } from "./chunk-GGXSEAD2.mjs";
14
+ import {
15
+ __objRest,
16
+ __spreadProps,
17
+ __spreadValues,
18
+ getCssResponsive,
19
+ getVariant
20
+ } from "./chunk-B5WDQW62.mjs";
21
+
22
+ // src/components/button/button.tsx
23
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
24
+ import { forwardRef } from "react";
25
+ import styled, { css } from "styled-components";
26
+ import { jsx } from "react/jsx-runtime";
27
+ var variants = {
28
+ default: CssButtonDefault,
29
+ primary: CssButtonPrimary,
30
+ secondary: CssButtonSecondary,
31
+ outline: CssButtonOutline,
32
+ ghost: CssButtonGhost,
33
+ link: CssButtonLink,
34
+ underline: CssButtonUnderline,
35
+ nav: CssButtonNav,
36
+ circle: CssButtonCircle,
37
+ toggle: CssButtonToggle
38
+ };
39
+ var StyledButton = styled.div`
40
+ ${CssDefault}
41
+ ${(props) => getVariant(variants, props.variant)}
42
+ ${(props) => css`font-size: var(--button-size-${props.size || "md"});`}
43
+ ${(props) => getCssResponsive(props)}
44
+ `;
45
+ var Button = forwardRef((_a, ref) => {
46
+ var _b = _a, { children, className, as = "button", type = "button" } = _b, props = __objRest(_b, ["children", "className", "as", "type"]);
47
+ const classNames = getClassNames("button", className, { disabled: props.disabled });
48
+ return /* @__PURE__ */ jsx(StyledButton, __spreadProps(__spreadValues({ className: classNames, ref, as, type }, props), { children }));
49
+ });
50
+ Button.displayName = "Button";
51
+
52
+ export {
53
+ Button
54
+ };
@@ -0,0 +1,34 @@
1
+ import {
2
+ Media
3
+ } from "./chunk-TNJCCH5V.mjs";
4
+ import {
5
+ Container,
6
+ Section,
7
+ Text
8
+ } from "./chunk-2NOCZCBX.mjs";
9
+ import {
10
+ __toESM,
11
+ require_dynamic
12
+ } from "./chunk-4GP5DTTM.mjs";
13
+
14
+ // src/lazy/media-full-2/media-full-2.tsx
15
+ var import_dynamic = __toESM(require_dynamic());
16
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
17
+ import { jsx, jsxs } from "react/jsx-runtime";
18
+ var MediaFull2 = ({ item }) => {
19
+ const classNames = getClassNames(item.schema);
20
+ return /* @__PURE__ */ jsx(Section, { className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsxs(Container.Fluid, { children: [
21
+ /* @__PURE__ */ jsx(Media, { aspectRatio: 16 / 10, item: item.media }),
22
+ item.media.alt && /* @__PURE__ */ jsx(Text, { size: "8", marginTop: "1rem", children: item.media.alt })
23
+ ] }) });
24
+ };
25
+ var MediaFull2Export = {
26
+ "media-full-2": (0, import_dynamic.default)(() => Promise.resolve().then(() => require_media_full_2()).then(
27
+ (module) => module.MediaFull2
28
+ ))
29
+ };
30
+
31
+ export {
32
+ MediaFull2,
33
+ MediaFull2Export
34
+ };
@@ -0,0 +1,469 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ var __async = (__this, __arguments, generator) => {
33
+ return new Promise((resolve, reject) => {
34
+ var fulfilled = (value) => {
35
+ try {
36
+ step(generator.next(value));
37
+ } catch (e) {
38
+ reject(e);
39
+ }
40
+ };
41
+ var rejected = (value) => {
42
+ try {
43
+ step(generator.throw(value));
44
+ } catch (e) {
45
+ reject(e);
46
+ }
47
+ };
48
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
49
+ step((generator = generator.apply(__this, __arguments)).next());
50
+ });
51
+ };
52
+
53
+ // src/components/utils.ts
54
+ import React from "react";
55
+ import { css } from "styled-components";
56
+
57
+ // src/components/css.ts
58
+ var CssObj = {
59
+ "alignContent": "align-content",
60
+ "alignItems": "align-items",
61
+ "alignSelf": "align-self",
62
+ /*
63
+ "animation": "animation",
64
+ "animationDelay": "animation-delay",
65
+ "animationDirection": "animation-direction",
66
+ "animationDuration": "animation-duration",
67
+ "animationFillMode": "animation-fill-mode",
68
+ "animationIterationCount": "animation-iteration-count",
69
+ "animationName": "animation-name",
70
+ "animationPlayState": "animation-play-state",
71
+ "animationTimingFunction": "animation-timing-function",
72
+ */
73
+ "aspectRatio": "aspect-ratio",
74
+ /*
75
+ "backfaceVisibility": "backface-visibility",
76
+ */
77
+ "background": "background",
78
+ /*
79
+ "backgroundAttachment": "background-attachment",
80
+ "backgroundClip": "background-clip",
81
+ */
82
+ "backgroundColor": "background-color",
83
+ /*
84
+ "backgroundImage": "background-image",
85
+ "backgroundOrigin": "background-origin",
86
+ "backgroundPosition": "background-position",
87
+ "backgroundRepeat": "background-repeat",
88
+ "backgroundSize": "background-size",
89
+ */
90
+ "border": "border",
91
+ "borderBottom": "border-bottom",
92
+ /*
93
+ "borderBottomColor": "border-bottom-color",
94
+ "borderBottomLeftRadius": "border-bottom-left-radius",
95
+ "borderBottomRightRadius": "border-bottom-right-radius",
96
+ "borderBottomStyle": "border-bottom-style",
97
+ "borderBottomWidth": "border-bottom-width",
98
+ "borderCollapse": "border-collapse",
99
+ "borderColor": "border-color",
100
+ "borderImage": "border-image",
101
+ "borderImageOutset": "border-image-outset",
102
+ "borderImageRepeat": "border-image-repeat",
103
+ "borderImageSlice": "border-image-slice",
104
+ "borderImageSource": "border-image-source",
105
+ "borderImageWidth": "border-image-width",
106
+ */
107
+ "borderLeft": "border-left",
108
+ /*
109
+ "borderLeftColor": "border-left-color",
110
+ "borderLeftStyle": "border-left-style",
111
+ "borderLeftWidth": "border-left-width",
112
+ */
113
+ "borderRadius": "border-radius",
114
+ "borderRight": "border-right",
115
+ /*
116
+ "borderRightColor": "border-right-color",
117
+ "borderRightStyle": "border-right-style",
118
+ "borderRightWidth": "border-right-width",
119
+ "borderSpacing": "border-spacing",
120
+ "borderStyle": "border-style",
121
+ */
122
+ "borderTop": "border-top",
123
+ /*
124
+ "borderTopColor": "border-top-color",
125
+ "borderTopLeftRadius": "border-top-left-radius",
126
+ "borderTopRightRadius": "border-top-right-radius",
127
+ "borderTopStyle": "border-top-style",
128
+ "borderTopWidth": "border-top-width",
129
+ "borderWidth": "border-width",
130
+ */
131
+ "bottom": "bottom",
132
+ "boxShadow": "box-shadow",
133
+ /*
134
+ "boxSizing": "box-sizing",
135
+ "captionSide": "caption-side",
136
+ "clear": "clear",
137
+ */
138
+ "clip": "clip",
139
+ "color": "color",
140
+ "columnCount": "column-count",
141
+ "columnFill": "column-fill",
142
+ "columnGap": "column-gap",
143
+ "columnRule": "column-rule",
144
+ /*
145
+ "columnRuleColor": "column-rule-color",
146
+ "columnRuleStyle": "column-rule-style",
147
+ "columnRuleWidth": "column-rule-width",
148
+ */
149
+ "columnSpan": "column-span",
150
+ "columnWidth": "column-width",
151
+ "columns": "columns",
152
+ "content": "content",
153
+ /*
154
+ "counterIncrement": "counter-increment",
155
+ "counterReset": "counter-reset",
156
+ */
157
+ "cursor": "cursor",
158
+ "direction": "direction",
159
+ "display": "display",
160
+ /*
161
+ "emptyCells": "empty-cells",
162
+ */
163
+ "flex": "flex",
164
+ "flexBasis": "flex-basis",
165
+ "flexDirection": "flex-direction",
166
+ "flexFlow": "flex-flow",
167
+ "flexGrow": "flex-grow",
168
+ "flexShrink": "flex-shrink",
169
+ "flexWrap": "flex-wrap",
170
+ "float": "float",
171
+ /*
172
+ "font": "font",
173
+ "fontFamily": "font-family",
174
+ */
175
+ "fontSize": "font-size",
176
+ /*
177
+ "fontSizeAdjust": "font-size-adjust",
178
+ "fontStretch": "font-stretch",
179
+ "fontStyle": "font-style",
180
+ "fontVariant": "font-variant",
181
+ */
182
+ "fontWeight": "font-weight",
183
+ "gap": "gap",
184
+ "grid": "grid",
185
+ "gridAutoColumns": "grid-auto-columns",
186
+ "gridColumnEnd": "grid-column-end",
187
+ "gridColumnStart": "grid-column-start",
188
+ "gridTemplate": "grid-template",
189
+ "gridTemplateColumns": "grid-template-columns",
190
+ "height": "height",
191
+ "justifyContent": "justify-content",
192
+ "left": "left",
193
+ "letterSpacing": "letter-spacing",
194
+ "lineHeight": "line-height",
195
+ /*
196
+ "listStyle": "list-style",
197
+ "listStyleImage": "list-style-image",
198
+ "listStylePosition": "list-style-position",
199
+ "listStyleType": "list-style-type",
200
+ */
201
+ "margin": "margin",
202
+ "marginBottom": "margin-bottom",
203
+ "marginLeft": "margin-left",
204
+ "marginRight": "margin-right",
205
+ "marginTop": "margin-top",
206
+ "maxHeight": "max-height",
207
+ "maxWidth": "max-width",
208
+ "minHeight": "min-height",
209
+ "minWidth": "min-width",
210
+ "opacity": "opacity",
211
+ "order": "order",
212
+ "outline": "outline",
213
+ /*
214
+ "outlineColor": "outline-color",
215
+ "outlineOffset": "outline-offset",
216
+ "outlineStyle": "outline-style",
217
+ "outlineWidth": "outline-width",
218
+ */
219
+ "overflow": "overflow",
220
+ "overflowX": "overflow-x",
221
+ "overflowY": "overflow-y",
222
+ "padding": "padding",
223
+ "paddingBottom": "padding-bottom",
224
+ "paddingLeft": "padding-left",
225
+ "paddingRight": "padding-right",
226
+ "paddingTop": "padding-top",
227
+ /*
228
+ "pageBreakAfter": "page-break-after",
229
+ "pageBreakBefore": "page-break-before",
230
+ "pageBreakInside": "page-break-inside",
231
+ "perspective": "perspective",
232
+ "perspectiveOrigin": "perspective-origin",
233
+ */
234
+ "position": "position",
235
+ /*
236
+ "quotes": "quotes",
237
+ "resize": "resize",
238
+ */
239
+ "right": "right",
240
+ "rowGap": "row-gap",
241
+ /*
242
+ "tabSize": "tab-size",
243
+ "tableLayout": "table-layout",
244
+ */
245
+ "textAlign": "text-align",
246
+ /*
247
+ "textAlignLast": "text-align-last",
248
+ */
249
+ "textDecoration": "text-decoration",
250
+ /*
251
+ "textDecorationColor": "text-decoration-color",
252
+ "textDecorationLine": "text-decoration-line",
253
+ "textDecorationStyle": "text-decoration-style",
254
+ "textIndent": "text-indent",
255
+ "textJustify": "text-justify",
256
+ "textOverflow": "text-overflow",
257
+ "textShadow": "text-shadow",
258
+ */
259
+ "textTransform": "text-transform",
260
+ "top": "top",
261
+ "transform": "transform",
262
+ /*
263
+ "transformOrigin": "transform-origin",
264
+ "transformStyle": "transform-style",
265
+ */
266
+ "transition": "transition",
267
+ /*
268
+ "transitionDelay": "transition-delay",
269
+ "transitionDuration": "transition-duration",
270
+ "transitionProperty": "transition-property",
271
+ "transitionTimingFunction": "transition-timing-function",
272
+ "verticalAlign": "vertical-align",
273
+ */
274
+ "visibility": "visibility",
275
+ "whiteSpace": "white-space",
276
+ "width": "width",
277
+ /*
278
+ "wordBreak": "word-break",
279
+ "wordSpacing": "word-spacing",
280
+ "wordWrap": "word-wrap",
281
+ */
282
+ "zIndex": "z-index"
283
+ };
284
+ var CssMap = new Map(Object.entries(CssObj));
285
+
286
+ // src/components/utils.ts
287
+ var ObjectKeys = Object.keys;
288
+ function getContainer(props, fluid) {
289
+ if (fluid) {
290
+ return `
291
+ max-width: calc(100% - var(--grid-column-gap) * 2);
292
+ `;
293
+ } else {
294
+ const theme = props.theme;
295
+ if (theme.maxWidth && theme.mediaQuery) {
296
+ return ObjectKeys(theme.mediaQuery).map((key) => {
297
+ const value = theme.mediaQuery[key];
298
+ return `
299
+ @media(min-width: ${value}px) {
300
+ max-width: ${theme.container.maxWidth[key]};
301
+ }
302
+ `;
303
+ }).join("\n");
304
+ } else {
305
+ return "";
306
+ }
307
+ }
308
+ }
309
+ function getCssResponsive(props, defaultValue = {}) {
310
+ props = __spreadValues(__spreadValues({}, defaultValue), props);
311
+ let rules = "";
312
+ for (const [key, value] of Object.entries(props)) {
313
+ const rule = key.replace(/(.+?)(Sm|Md|Lg|Xl)?$/, function(m, g1, g2) {
314
+ const prop = g1;
315
+ if (CssMap.has(prop)) {
316
+ const rule2 = `${CssMap.get(prop)}: ${value};`;
317
+ if (g2) {
318
+ const size = g2.toLowerCase();
319
+ return `@media(min-width: ${props.theme.mediaQuery[size]}px) {
320
+ ${rule2}
321
+ }`;
322
+ } else {
323
+ return rule2;
324
+ }
325
+ } else {
326
+ return "";
327
+ }
328
+ });
329
+ rules += rule + "\n";
330
+ }
331
+ return rules;
332
+ }
333
+ function getAspectResponsive(props, defaultValue = {}) {
334
+ props = __spreadValues(__spreadValues({}, defaultValue), props);
335
+ let rules = "";
336
+ for (const [key, value] of Object.entries(props)) {
337
+ const rule = key.replace(/(.+?)(Sm|Md|Lg|Xl)?$/, function(m, g1, g2) {
338
+ const prop = g1;
339
+ if (prop === "aspectRatio") {
340
+ const rule2 = `
341
+ position: relative;
342
+ overflow: hidden;
343
+ `;
344
+ if (g2) {
345
+ const size = g2.toLowerCase();
346
+ return `@media(min-width: ${props.theme.mediaQuery[size]}px) {
347
+ ${rule2}
348
+ }`;
349
+ } else {
350
+ return rule2;
351
+ }
352
+ } else {
353
+ return "";
354
+ }
355
+ });
356
+ rules += rule + "\n";
357
+ }
358
+ return rules;
359
+ }
360
+ function getGrid(props, defaultValue = {}) {
361
+ props = __spreadValues(__spreadValues({}, defaultValue), props);
362
+ return css`
363
+ ${props.columns ? css`
364
+ --grid-columns: ${props.columns};
365
+ ` : ""}
366
+ ${props.columnGap ? css`
367
+ --grid-column-gap: ${props.columnGap};
368
+ ` : ""}
369
+ ${props.rowGap ? css`
370
+ --grid-row-gap: ${props.rowGap};
371
+ ` : ""}
372
+ ${props.size ? css`
373
+ --grid-size: ${props.size};
374
+ ` : ""}
375
+ display: grid;
376
+ grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
377
+ grid-column-gap: var(--grid-column-gap);
378
+ grid-row-gap: var(--grid-row-gap);
379
+ `;
380
+ }
381
+ function eachMedia(props, callback) {
382
+ const theme = props.theme;
383
+ if (theme.mediaQuery && typeof callback === "function") {
384
+ return ObjectKeys(theme.mediaQuery).map((key) => {
385
+ const value = theme.mediaQuery[key];
386
+ const rule = callback(key);
387
+ return rule ? `@media(min-width: ${value}px) { ${rule} }` : "";
388
+ }).join("\n");
389
+ } else {
390
+ return "";
391
+ }
392
+ }
393
+ function getVariant(variants, type) {
394
+ return type && variants[type] ? variants[type] || "" : "";
395
+ }
396
+ function isChildElement(parent, child) {
397
+ if (!parent || !child) {
398
+ return false;
399
+ }
400
+ let node = child;
401
+ while (node) {
402
+ if (node === parent) {
403
+ return true;
404
+ }
405
+ node = node.parentNode;
406
+ }
407
+ return false;
408
+ }
409
+ function mapChildsByType(children, type, mapMethod) {
410
+ return React.Children.map(children, (child) => {
411
+ if (!React.isValidElement(child)) {
412
+ return child;
413
+ }
414
+ if (child.type === type) {
415
+ return mapMethod(child);
416
+ } else if (child.props.children) {
417
+ child = React.cloneElement(child, __spreadProps(__spreadValues({}, child.props), {
418
+ children: mapChildsByType(child.props.children, type, mapMethod)
419
+ }));
420
+ }
421
+ return child;
422
+ });
423
+ }
424
+ function getChildsByType(children, type) {
425
+ const items = [];
426
+ const others = React.Children.map(children, (item) => {
427
+ if (!React.isValidElement(item)) {
428
+ return item;
429
+ }
430
+ if (item.type === type) {
431
+ items.push(item);
432
+ return null;
433
+ }
434
+ return item;
435
+ });
436
+ const childs = items.length > 0 ? items : void 0;
437
+ return [childs, others];
438
+ }
439
+ function hasChildOfType(children, type) {
440
+ const [foundChildren, otherChildren] = getChildsByType(children, type);
441
+ const hasChildOfType2 = foundChildren !== void 0;
442
+ return hasChildOfType2;
443
+ }
444
+ function hypenize(text) {
445
+ return text.replace(new RegExp("(?<![A-Z])[A-Z]|(?<![0-9]|^)[0-9]", "g"), (m) => "-" + m.toLowerCase());
446
+ }
447
+ function camelize(text) {
448
+ return text.replace(/(^[a-z])|-([a-z0-9])/gi, ($0, $1, $2) => $2 ? $2.toUpperCase() : $1.toUpperCase());
449
+ }
450
+
451
+ export {
452
+ __spreadValues,
453
+ __spreadProps,
454
+ __objRest,
455
+ __async,
456
+ ObjectKeys,
457
+ getContainer,
458
+ getCssResponsive,
459
+ getAspectResponsive,
460
+ getGrid,
461
+ eachMedia,
462
+ getVariant,
463
+ isChildElement,
464
+ mapChildsByType,
465
+ getChildsByType,
466
+ hasChildOfType,
467
+ hypenize,
468
+ camelize
469
+ };