@lanaco/lnc-react-ui 4.0.23 → 4.0.26

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 (228) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +2 -2
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +2 -2
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +2 -2
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +2 -2
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +2 -2
  17. package/dist/Button.cjs +1 -1
  18. package/dist/Button.js +2 -2
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +2 -2
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +2 -2
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +2 -2
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +2 -2
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +2 -2
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +1 -1
  31. package/dist/{CustomStyles-Dlqxic2X.cjs → CustomStyles-CBON9fD-.cjs} +1 -1
  32. package/dist/{CustomStyles-BUSJ8bZt.js → CustomStyles-DuADCM-0.js} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +1 -1
  35. package/dist/DateInput.cjs +1 -1
  36. package/dist/DateInput.js +3 -3
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +2 -2
  39. package/dist/DecimalInputV2.cjs +1 -1
  40. package/dist/DecimalInputV2.js +2 -2
  41. package/dist/DetailsView.cjs +1 -1
  42. package/dist/DetailsView.js +2 -2
  43. package/dist/DoubleRangeSlider.cjs +1 -1
  44. package/dist/DoubleRangeSlider.js +2 -2
  45. package/dist/DragAndDropFile.cjs +1 -1
  46. package/dist/DragAndDropFile.js +2 -2
  47. package/dist/DragDropFiles.cjs +1 -1
  48. package/dist/DragDropFiles.js +2 -2
  49. package/dist/Drawer.cjs +1 -1
  50. package/dist/Drawer.js +2 -2
  51. package/dist/Dropdown.cjs +1 -1
  52. package/dist/Dropdown.js +3 -3
  53. package/dist/DropdownItem.cjs +1 -1
  54. package/dist/DropdownItem.js +2 -2
  55. package/dist/DropdownLookup.cjs +1 -1
  56. package/dist/DropdownLookup.js +2 -2
  57. package/dist/DropdownMenu.cjs +1 -1
  58. package/dist/DropdownMenu.js +2 -2
  59. package/dist/EditableTable.cjs +1 -1
  60. package/dist/EditableTable.js +2 -2
  61. package/dist/FileInput.cjs +1 -1
  62. package/dist/FileInput.js +2 -2
  63. package/dist/FlexBox.cjs +1 -1
  64. package/dist/FlexBox.js +1 -1
  65. package/dist/FlexGrid.cjs +1 -1
  66. package/dist/FlexGrid.js +1 -1
  67. package/dist/FlexGridItem.cjs +1 -1
  68. package/dist/FlexGridItem.js +2 -2
  69. package/dist/Footer.cjs +1 -1
  70. package/dist/Footer.js +1 -1
  71. package/dist/FormField.cjs +1 -1
  72. package/dist/FormField.js +2 -2
  73. package/dist/FormView.cjs +1 -1
  74. package/dist/FormView.js +2 -2
  75. package/dist/Grid.cjs +1 -1
  76. package/dist/Grid.js +1 -1
  77. package/dist/GridItem.cjs +1 -1
  78. package/dist/GridItem.js +1 -1
  79. package/dist/Header.cjs +1 -1
  80. package/dist/Header.js +1 -1
  81. package/dist/Icon.cjs +1 -1
  82. package/dist/Icon.js +2 -2
  83. package/dist/IconButton.cjs +1 -1
  84. package/dist/IconButton.js +2 -2
  85. package/dist/Kanban.cjs +2 -2
  86. package/dist/Kanban.js +85 -87
  87. package/dist/KanbanActionsToolbar.cjs +1 -1
  88. package/dist/KanbanActionsToolbar.js +2 -2
  89. package/dist/{KanbanCard-CHZ_C9kk.js → KanbanCard-BDyFaKYd.js} +2 -2
  90. package/dist/{KanbanCard-DV3VnSUi.cjs → KanbanCard-CofqdTrO.cjs} +1 -1
  91. package/dist/KanbanCard.cjs +1 -1
  92. package/dist/KanbanCard.js +2 -2
  93. package/dist/KanbanFooter.cjs +1 -1
  94. package/dist/KanbanFooter.js +1 -1
  95. package/dist/KanbanHeader.cjs +1 -1
  96. package/dist/KanbanHeader.js +1 -1
  97. package/dist/KanbanView.cjs +1 -1
  98. package/dist/KanbanView.js +3 -3
  99. package/dist/Link.cjs +1 -1
  100. package/dist/Link.js +2 -2
  101. package/dist/MenuItem.cjs +1 -1
  102. package/dist/MenuItem.js +2 -2
  103. package/dist/Modal.cjs +1 -1
  104. package/dist/Modal.js +2 -2
  105. package/dist/MultiSelectDropdown.cjs +1 -1
  106. package/dist/MultiSelectDropdown.js +2 -2
  107. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  108. package/dist/MultiSelectDropdownLookup.js +2 -2
  109. package/dist/NestedDropdownItem.cjs +1 -1
  110. package/dist/NestedDropdownItem.js +2 -2
  111. package/dist/NestedMenuItem.cjs +1 -1
  112. package/dist/NestedMenuItem.js +2 -2
  113. package/dist/NotificationContainer.cjs +1 -1
  114. package/dist/NotificationContainer.js +2 -2
  115. package/dist/NotificationMessage.cjs +1 -1
  116. package/dist/NotificationMessage.js +2 -2
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +2 -2
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +1 -1
  121. package/dist/Pagination.cjs +1 -1
  122. package/dist/Pagination.js +1 -1
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +2 -2
  125. package/dist/Popover.cjs +1 -1
  126. package/dist/Popover.js +1 -1
  127. package/dist/PopoverContent.cjs +1 -1
  128. package/dist/PopoverContent.js +2 -2
  129. package/dist/PopoverTrigger.cjs +1 -1
  130. package/dist/PopoverTrigger.js +1 -1
  131. package/dist/ProgressBar.cjs +1 -1
  132. package/dist/ProgressBar.js +2 -2
  133. package/dist/RadioGroup.cjs +1 -1
  134. package/dist/RadioGroup.js +1 -1
  135. package/dist/RadioInput.cjs +1 -1
  136. package/dist/RadioInput.js +2 -2
  137. package/dist/RangeSlider.cjs +1 -1
  138. package/dist/RangeSlider.js +2 -2
  139. package/dist/SearchBar.cjs +1 -1
  140. package/dist/SearchBar.js +1 -1
  141. package/dist/Separator.cjs +1 -1
  142. package/dist/Separator.js +2 -2
  143. package/dist/Sidebar.cjs +1 -1
  144. package/dist/Sidebar.js +2 -2
  145. package/dist/Spinner.cjs +1 -1
  146. package/dist/Spinner.js +2 -2
  147. package/dist/Surface.cjs +1 -1
  148. package/dist/Surface.js +2 -2
  149. package/dist/SwipeableDrawer.cjs +1 -1
  150. package/dist/SwipeableDrawer.js +2 -2
  151. package/dist/TabItem.cjs +1 -1
  152. package/dist/TabItem.js +2 -2
  153. package/dist/Table.cjs +1 -1
  154. package/dist/Table.js +2 -2
  155. package/dist/TableView.cjs +1 -1
  156. package/dist/TableView.js +2 -2
  157. package/dist/Tabs.cjs +1 -1
  158. package/dist/Tabs.js +1 -1
  159. package/dist/TextAreaInput.cjs +1 -1
  160. package/dist/TextAreaInput.js +2 -2
  161. package/dist/TextInput.cjs +1 -1
  162. package/dist/TextInput.js +2 -2
  163. package/dist/ThemeProvider.cjs +1 -1
  164. package/dist/ThemeProvider.js +26 -26
  165. package/dist/TimeInput.cjs +1 -1
  166. package/dist/TimeInput.js +2 -2
  167. package/dist/Toggle.cjs +1 -1
  168. package/dist/Toggle.js +2 -2
  169. package/dist/TreeMenu.cjs +1 -1
  170. package/dist/TreeMenu.js +1 -1
  171. package/dist/TreeMenuSeparator.cjs +1 -1
  172. package/dist/TreeMenuSeparator.js +2 -2
  173. package/dist/UploadedFile.cjs +1 -1
  174. package/dist/UploadedFile.js +2 -2
  175. package/dist/consts-DNVz1x1I.js +4 -0
  176. package/dist/consts-dNz9tpt4.cjs +1 -0
  177. package/dist/{index-BIlhCoy2.cjs → index-BPVoEhTF.cjs} +5 -5
  178. package/dist/index-BlV3tdJ8.cjs +87 -0
  179. package/dist/{index-Cu0xwYjD.js → index-Bq3leL2e.js} +5 -4
  180. package/dist/index-C2M7QHPq.cjs +40 -0
  181. package/dist/index-DGl-lSfF.js +122 -0
  182. package/dist/index-DcYg32le.js +69 -0
  183. package/dist/index-LdP7U1Yl.cjs +114 -0
  184. package/dist/{index-BYnWp42a.js → index-S5Cd7WrG.js} +74 -73
  185. package/dist/index-gY9e_8LL.cjs +5 -0
  186. package/dist/index-jVpIwR2G.js +159 -0
  187. package/dist/index.cjs +1 -1
  188. package/dist/index.js +156 -128
  189. package/dist/index10.cjs +90 -0
  190. package/dist/index10.js +152 -0
  191. package/dist/index11.cjs +85 -0
  192. package/dist/index11.js +125 -0
  193. package/dist/index12.cjs +194 -0
  194. package/dist/index12.js +312 -0
  195. package/dist/index13.cjs +98 -0
  196. package/dist/index13.js +221 -0
  197. package/dist/index14.cjs +161 -0
  198. package/dist/index14.js +254 -0
  199. package/dist/index15.cjs +135 -0
  200. package/dist/index15.js +1534 -0
  201. package/dist/index2.cjs +25 -0
  202. package/dist/index2.js +99 -0
  203. package/dist/index3.cjs +31 -0
  204. package/dist/index3.js +94 -0
  205. package/dist/index4.cjs +68 -0
  206. package/dist/index4.js +135 -0
  207. package/dist/index5.cjs +48 -0
  208. package/dist/index5.js +100 -0
  209. package/dist/index6.cjs +81 -0
  210. package/dist/index6.js +144 -0
  211. package/dist/index7.cjs +65 -0
  212. package/dist/index7.js +104 -0
  213. package/dist/index8.cjs +82 -0
  214. package/dist/index8.js +138 -0
  215. package/dist/index9.cjs +150 -0
  216. package/dist/index9.js +222 -0
  217. package/dist/style-C3OB0uad.cjs +76 -0
  218. package/dist/style-Ch-xOasu.js +84 -0
  219. package/dist/style.css +1 -1
  220. package/dist/useDetectMobile-BookNOsk.js +13 -0
  221. package/dist/useDetectMobile-rBe0FiP2.cjs +1 -0
  222. package/dist/useEffectOnce-DFrzfNzT.cjs +1 -0
  223. package/dist/useEffectOnce-guOKBPuL.js +7 -0
  224. package/dist/{utils-DTAPpJXU.cjs → utils-CE6bljYe.cjs} +43 -5
  225. package/dist/{utils-C52T57HO.js → utils-DtEdJZWa.js} +121 -32
  226. package/package.json +16 -2
  227. package/vite.config.js +60 -1
  228. package/dist/index-CSXL784P.cjs +0 -5
package/dist/index6.js ADDED
@@ -0,0 +1,144 @@
1
+ import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as $ } from "react";
3
+ import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as o } from "./consts-DNVz1x1I.js";
5
+ import v from "./Button.js";
6
+ import { u as y } from "./useDetectMobile-BookNOsk.js";
7
+ const M = r.div`
8
+ display: flex;
9
+ border-radius: 0.75rem;
10
+ background-color: ${(e) => e.bgcolor || "transparent"};
11
+ overflow: hidden;
12
+ max-height: ${(e) => e.height || "22.5rem"};
13
+ min-height: ${(e) => e.height || "22.5rem"};
14
+ background-color: ${(e) => e.bgcolor || "transparent"};
15
+
16
+ & button {
17
+ width: fit-content;
18
+ }
19
+
20
+ ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
21
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
22
+
23
+ `}
24
+
25
+ & img {
26
+ object-fit: cover;
27
+ max-width: ${(e) => e.imgW || "22.5rem"};
28
+ min-width: ${(e) => e.imgW || "22.5rem"};
29
+ max-height: ${(e) => e.height || "22.5rem"};
30
+ min-height: ${(e) => e.height || "22.5rem"};
31
+ }
32
+
33
+ ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
34
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
35
+
36
+ `}
37
+
38
+ @media (max-width: ${o + "px"}) {
39
+ gap: 1.5rem;
40
+ flex-direction: column;
41
+ min-height: unset;
42
+ max-height: unset;
43
+
44
+ & button {
45
+ width: fit-content;
46
+ }
47
+
48
+ & img {
49
+ max-width: 100%;
50
+ min-width: 100%;
51
+ max-height: ${(e) => e.imgHMob || "12.1rem"};
52
+ min-height: ${(e) => e.imgHMob || "12.1rem"};
53
+ }
54
+ }
55
+ `, C = r.div`
56
+ padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
57
+ display: flex;
58
+ gap: 2rem;
59
+ flex-direction: ${(e) => e.isHorizontalContent === !0 ? "row" : "column"};
60
+ flex: 1;
61
+
62
+ ${(e) => e.isHorizontalContent === !0 && "justify-content: space-between;"}
63
+
64
+ @media (max-width: ${o + "px"}) {
65
+ padding: 0;
66
+ flex-direction: column;
67
+ }
68
+ `, H = r.div`
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 0.25rem;
72
+
73
+ & .header-title {
74
+ font-size: 1.75rem;
75
+ font-weight: 600;
76
+ }
77
+
78
+ & .header-subtitle {
79
+ color: var(--gray-950, #14161a);
80
+ font-size: 1rem;
81
+ font-weight: 500;
82
+ }
83
+
84
+ @media (max-width: ${o + "px"}) {
85
+ flex-direction: column;
86
+ }
87
+ `, I = $((e, B) => {
88
+ const {
89
+ title: l,
90
+ subtitle: h,
91
+ buttonText: g,
92
+ image: a,
93
+ imagePosition: n = "right",
94
+ noImageForMobile: m = !1,
95
+ height: s,
96
+ imageWidth: c,
97
+ imageHeightMob: x,
98
+ smallPadding: p = !1,
99
+ isHorizontalContent: u = !1,
100
+ backgroundColor: b,
101
+ hasBorder: f = !1,
102
+ onBannerClick: w
103
+ } = e, d = y();
104
+ return /* @__PURE__ */ t(
105
+ M,
106
+ {
107
+ bgcolor: b,
108
+ height: s,
109
+ imgW: c,
110
+ imgHMob: x,
111
+ hasBorder: f,
112
+ children: [
113
+ n !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a }),
114
+ /* @__PURE__ */ t(
115
+ C,
116
+ {
117
+ isHorizontalContent: u,
118
+ smallPadding: p,
119
+ children: [
120
+ /* @__PURE__ */ t(H, { children: [
121
+ /* @__PURE__ */ i("div", { className: "header-title", children: l }),
122
+ /* @__PURE__ */ i("div", { className: "header-subitle", children: h })
123
+ ] }),
124
+ /* @__PURE__ */ i(
125
+ v,
126
+ {
127
+ size: "medium",
128
+ color: "neutral",
129
+ type: "button",
130
+ onClick: w,
131
+ children: g
132
+ }
133
+ )
134
+ ]
135
+ }
136
+ ),
137
+ n === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a })
138
+ ]
139
+ }
140
+ );
141
+ });
142
+ export {
143
+ I as default
144
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-CE6bljYe.cjs"),h=s.newStyled.div`
2
+ padding-bottom: 1.38rem;
3
+ text-align: center;
4
+ display: flex;
5
+ justify-content: center;
6
+ flex-direction: column;
7
+ gap: 2rem;
8
+ align-items: center;
9
+
10
+ & button {
11
+ width: fit-content;
12
+ }
13
+
14
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
15
+ padding-bottom: 0;
16
+ }
17
+ `,g=s.newStyled.div`
18
+ text-align: center;
19
+ display: flex;
20
+ justify-content: center;
21
+ flex-direction: column;
22
+ gap: 0.25rem;
23
+
24
+ & .header-title {
25
+ font-size: 1.5rem;
26
+ font-weight: 600;
27
+ }
28
+
29
+ & .header-subtitle {
30
+ color: var(--gray-600, #676e79);
31
+ font-size: 1rem;
32
+ font-weight: 500;
33
+ }
34
+
35
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
36
+ }
37
+ `,p=s.newStyled.div`
38
+ text-align: center;
39
+ display: flex;
40
+ flex-direction: column;
41
+ justify-content: center;
42
+ gap: 0.75rem;
43
+ font-size: 0.875rem;
44
+ font-weight: 500;
45
+ align-items: center;
46
+
47
+ & .list-item {
48
+ display: flex;
49
+ align-items: center;
50
+
51
+ & .mng {
52
+ font-size: 1.25rem;
53
+ color: var(--success-600);
54
+ }
55
+ }
56
+
57
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
58
+ & .list-item {
59
+ flex-direction: column;
60
+ text-align: center;
61
+ justify-content: center;
62
+ gap: 0;
63
+ }
64
+ }
65
+ `,j=o.forwardRef((a,y)=>{const{title:i,subtitle:n,buttonText:d,list:r,fallback:m=()=>{},onBannerClick:l}=a;return e.jsxs(h,{children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(g,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(p,{children:r==null?void 0:r.map((x,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:x})]})},f))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",onClick:()=>t.isDefined(l)?l():m(),children:d})]})});module.exports=j;
package/dist/index7.js ADDED
@@ -0,0 +1,104 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as h, Fragment as x } from "react";
3
+ import { n as o } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as a } from "./consts-DNVz1x1I.js";
5
+ import g from "./Button.js";
6
+ import { l as t } from "./utils-DtEdJZWa.js";
7
+ const u = o.div`
8
+ padding-bottom: 1.38rem;
9
+ text-align: center;
10
+ display: flex;
11
+ justify-content: center;
12
+ flex-direction: column;
13
+ gap: 2rem;
14
+ align-items: center;
15
+
16
+ & button {
17
+ width: fit-content;
18
+ }
19
+
20
+ @media (max-width: ${a + "px"}) {
21
+ padding-bottom: 0;
22
+ }
23
+ `, y = o.div`
24
+ text-align: center;
25
+ display: flex;
26
+ justify-content: center;
27
+ flex-direction: column;
28
+ gap: 0.25rem;
29
+
30
+ & .header-title {
31
+ font-size: 1.5rem;
32
+ font-weight: 600;
33
+ }
34
+
35
+ & .header-subtitle {
36
+ color: var(--gray-600, #676e79);
37
+ font-size: 1rem;
38
+ font-weight: 500;
39
+ }
40
+
41
+ @media (max-width: ${a + "px"}) {
42
+ }
43
+ `, b = o.div`
44
+ text-align: center;
45
+ display: flex;
46
+ flex-direction: column;
47
+ justify-content: center;
48
+ gap: 0.75rem;
49
+ font-size: 0.875rem;
50
+ font-weight: 500;
51
+ align-items: center;
52
+
53
+ & .list-item {
54
+ display: flex;
55
+ align-items: center;
56
+
57
+ & .mng {
58
+ font-size: 1.25rem;
59
+ color: var(--success-600);
60
+ }
61
+ }
62
+
63
+ @media (max-width: ${a + "px"}) {
64
+ & .list-item {
65
+ flex-direction: column;
66
+ text-align: center;
67
+ justify-content: center;
68
+ gap: 0;
69
+ }
70
+ }
71
+ `, N = h((m, w) => {
72
+ const {
73
+ title: i,
74
+ subtitle: n,
75
+ buttonText: s,
76
+ list: r,
77
+ fallback: d = () => {
78
+ },
79
+ onBannerClick: c
80
+ } = m;
81
+ return /* @__PURE__ */ l(u, { children: [
82
+ (t(i) || t(n)) && /* @__PURE__ */ l(y, { children: [
83
+ t(i) && /* @__PURE__ */ e("div", { className: "header-title", children: i }),
84
+ t(n) && /* @__PURE__ */ e("div", { className: "header-subitle", children: n })
85
+ ] }),
86
+ /* @__PURE__ */ e(b, { children: r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ l("div", { className: "list-item", children: [
87
+ /* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
88
+ /* @__PURE__ */ e("span", { children: f })
89
+ ] }) }, p)) }),
90
+ /* @__PURE__ */ e(
91
+ g,
92
+ {
93
+ size: "medium",
94
+ color: "neutral",
95
+ type: "button",
96
+ onClick: () => t(c) ? c() : d(),
97
+ children: s
98
+ }
99
+ )
100
+ ] });
101
+ });
102
+ export {
103
+ N as default
104
+ };
@@ -0,0 +1,82 @@
1
+ "use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),b=require("./Button.cjs"),w=t.newStyled.div`
2
+ display: flex;
3
+ border-radius: 0.75rem;
4
+ background-color: ${e=>e.bgcolor||"transparent"};
5
+ overflow: hidden;
6
+
7
+ & button {
8
+ width: fit-content;
9
+ }
10
+
11
+ & img {
12
+ object-fit: cover;
13
+ max-width: ${e=>e.imgW||"33.39346rem"};
14
+ min-width: ${e=>e.imgW||"33.39346rem"};
15
+ max-height: ${e=>e.imgH||"22.5rem"};
16
+ min-height: ${e=>e.imgH||"22.5rem"};
17
+ }
18
+
19
+ ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
20
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
21
+
22
+ `}
23
+
24
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
25
+ flex-direction: column;
26
+ & img {
27
+ max-width: 100%;
28
+ min-width: 100%;
29
+ max-height: ${e=>e.imgHMob||"12.1rem"};
30
+ min-height: ${e=>e.imgHMob||"12.1rem"};
31
+ }
32
+ }
33
+ `,y=t.newStyled.div`
34
+ padding: 2rem;
35
+ display: flex;
36
+ gap: 1.25rem;
37
+ justify-content: space-between;
38
+ flex: 1;
39
+ flex-direction: column;
40
+
41
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
42
+ padding: 1.25rem;
43
+ }
44
+ `,j=t.newStyled.div`
45
+ display: flex;
46
+ flex-direction: column;
47
+ gap: 0.25rem;
48
+
49
+ & .header-title {
50
+ font-size: 1.5rem;
51
+ font-weight: 600;
52
+ }
53
+
54
+ & .header-subtitle {
55
+ color: var(--gray-600, #676e79);
56
+ font-size: 1rem;
57
+ font-weight: 500;
58
+ }
59
+
60
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
61
+ flex-direction: column;
62
+ }
63
+ `,v=t.newStyled.div`
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: 0.75rem;
67
+ font-size: 0.875rem;
68
+ font-weight: 500;
69
+
70
+ & .list-item {
71
+ display: flex;
72
+ align-items: center;
73
+
74
+ & .mng {
75
+ font-size: 1.25rem;
76
+ color: var(--info-600);
77
+ }
78
+ }
79
+
80
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
81
+ }
82
+ `,$=o.forwardRef((e,S)=>{const{title:a,subtitle:m,buttonText:s,list:n,image:d,imageHeight:l,imageWidth:c,imageHeightMob:x,hasBorder:g=!0,backgroundColor:h="transparent",onBannerClick:p}=e;return i.jsxs(w,{imgH:l,imgW:c,imgHMob:x,hasBorder:g,bgColor:h,children:[i.jsxs(y,{children:[i.jsxs(j,{children:[i.jsx("div",{className:"header-title",children:a}),i.jsx("div",{className:"header-subitle",children:m})]}),i.jsx(v,{children:n==null?void 0:n.map((u,f)=>i.jsx(o.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:u})]})},f))}),i.jsx(b,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:p,children:s})]}),i.jsx("img",{src:d})]})});module.exports=$;
package/dist/index8.js ADDED
@@ -0,0 +1,138 @@
1
+ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as u, Fragment as w } from "react";
3
+ import { n as t } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as n } from "./consts-DNVz1x1I.js";
5
+ import v from "./Button.js";
6
+ const y = t.div`
7
+ display: flex;
8
+ border-radius: 0.75rem;
9
+ background-color: ${(e) => e.bgcolor || "transparent"};
10
+ overflow: hidden;
11
+
12
+ & button {
13
+ width: fit-content;
14
+ }
15
+
16
+ & img {
17
+ object-fit: cover;
18
+ max-width: ${(e) => e.imgW || "33.39346rem"};
19
+ min-width: ${(e) => e.imgW || "33.39346rem"};
20
+ max-height: ${(e) => e.imgH || "22.5rem"};
21
+ min-height: ${(e) => e.imgH || "22.5rem"};
22
+ }
23
+
24
+ ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
25
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
26
+
27
+ `}
28
+
29
+ @media (max-width: ${n + "px"}) {
30
+ flex-direction: column;
31
+ & img {
32
+ max-width: 100%;
33
+ min-width: 100%;
34
+ max-height: ${(e) => e.imgHMob || "12.1rem"};
35
+ min-height: ${(e) => e.imgHMob || "12.1rem"};
36
+ }
37
+ }
38
+ `, $ = t.div`
39
+ padding: 2rem;
40
+ display: flex;
41
+ gap: 1.25rem;
42
+ justify-content: space-between;
43
+ flex: 1;
44
+ flex-direction: column;
45
+
46
+ @media (max-width: ${n + "px"}) {
47
+ padding: 1.25rem;
48
+ }
49
+ `, H = t.div`
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 0.25rem;
53
+
54
+ & .header-title {
55
+ font-size: 1.5rem;
56
+ font-weight: 600;
57
+ }
58
+
59
+ & .header-subtitle {
60
+ color: var(--gray-600, #676e79);
61
+ font-size: 1rem;
62
+ font-weight: 500;
63
+ }
64
+
65
+ @media (max-width: ${n + "px"}) {
66
+ flex-direction: column;
67
+ }
68
+ `, W = t.div`
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 0.75rem;
72
+ font-size: 0.875rem;
73
+ font-weight: 500;
74
+
75
+ & .list-item {
76
+ display: flex;
77
+ align-items: center;
78
+
79
+ & .mng {
80
+ font-size: 1.25rem;
81
+ color: var(--info-600);
82
+ }
83
+ }
84
+
85
+ @media (max-width: ${n + "px"}) {
86
+ }
87
+ `, N = u((e, k) => {
88
+ const {
89
+ title: o,
90
+ subtitle: a,
91
+ buttonText: d,
92
+ list: m,
93
+ image: l,
94
+ imageHeight: c,
95
+ imageWidth: s,
96
+ imageHeightMob: g,
97
+ hasBorder: h = !0,
98
+ backgroundColor: p = "transparent",
99
+ onBannerClick: x
100
+ } = e;
101
+ return /* @__PURE__ */ r(
102
+ y,
103
+ {
104
+ imgH: c,
105
+ imgW: s,
106
+ imgHMob: g,
107
+ hasBorder: h,
108
+ bgColor: p,
109
+ children: [
110
+ /* @__PURE__ */ r($, { children: [
111
+ /* @__PURE__ */ r(H, { children: [
112
+ /* @__PURE__ */ i("div", { className: "header-title", children: o }),
113
+ /* @__PURE__ */ i("div", { className: "header-subitle", children: a })
114
+ ] }),
115
+ /* @__PURE__ */ i(W, { children: m == null ? void 0 : m.map((f, b) => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ r("div", { className: "list-item", children: [
116
+ /* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
117
+ /* @__PURE__ */ i("span", { children: f })
118
+ ] }) }, b)) }),
119
+ /* @__PURE__ */ i(
120
+ v,
121
+ {
122
+ size: "medium",
123
+ color: "gray",
124
+ type: "button",
125
+ btnType: "outline",
126
+ onClick: x,
127
+ children: d
128
+ }
129
+ )
130
+ ] }),
131
+ /* @__PURE__ */ i("img", { src: l })
132
+ ]
133
+ }
134
+ );
135
+ });
136
+ export {
137
+ N as default
138
+ };
@@ -0,0 +1,150 @@
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),x=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),i=require("./utils-CE6bljYe.cjs"),h=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=require("./consts-dNz9tpt4.cjs"),f=s.newStyled.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-start;
5
+ border-radius: 0.75rem;
6
+ position: relative;
7
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
8
+
9
+ grid-column: ${t=>{var e;return((e=t.position)==null?void 0:e.columnStart)||"1"}} /
10
+ ${t=>{var e;return((e=t.position)==null?void 0:e.columnEnd)||"6"}};
11
+ grid-row: ${t=>{var e;return((e=t.position)==null?void 0:e.rowStart)||"1"}} /
12
+ ${t=>{var e;return((e=t.position)==null?void 0:e.rowEnd)||"1"}};
13
+
14
+ & .wrapper__image {
15
+ height: 100%;
16
+ width: 100%;
17
+ object-fit: cover;
18
+ border-radius: 0.75rem;
19
+ }
20
+
21
+ & .wrapper__image--skeleton {
22
+ width: 24.5rem;
23
+ height: 30rem;
24
+ border-radius: 0.75rem;
25
+ background-color: ${i.linearGradientAnimation("-90deg")};
26
+ }
27
+
28
+ & .wrapper__text {
29
+ display: flex;
30
+ flex-direction: column;
31
+ align-items: flex-start;
32
+ padding: 1rem;
33
+ position: absolute;
34
+ bottom: 0;
35
+ left: 0;
36
+ gap: 0.75rem;
37
+
38
+ & .text__title {
39
+ color: var(--white, #ffffff);
40
+ font-size: 1rem;
41
+ font-style: normal;
42
+ font-weight: 500;
43
+ line-height: 1.5rem;
44
+ ${i.truncateTextInRows(2)}
45
+ }
46
+
47
+ & .text__tag {
48
+ background-color: var(--warning-600, #d97706);
49
+ color: var(--white, #ffffff);
50
+ font-size: 0.875rem;
51
+ font-style: normal;
52
+ font-weight: 500;
53
+ line-height: 1.25rem;
54
+ padding: 0.25rem 0.5rem;
55
+
56
+ border-radius: 0.375rem;
57
+ background: var(--warning-600, #d97706);
58
+ }
59
+
60
+ & .text__description {
61
+ color: var(--white);
62
+ font-size: 0.875rem;
63
+ font-style: normal;
64
+ font-weight: 400;
65
+ line-height: 1.25rem;
66
+ ${i.truncateTextInRows(2)}
67
+ }
68
+
69
+ & .text__action {
70
+ background: var(--white);
71
+ color: var(--black);
72
+
73
+ &:hover {
74
+ background: var(--primary-500, #f59e0b);
75
+ color: var(--white);
76
+ }
77
+ }
78
+
79
+ & .text__title--skeleton {
80
+ background-color: ${i.linearGradientAnimation("-90deg")};
81
+ height: 1rem;
82
+ width: 9rem;
83
+ }
84
+
85
+ & .text__description--skeleton {
86
+ background-color: ${i.linearGradientAnimation("-90deg")};
87
+ height: 1rem;
88
+ width: 12rem;
89
+ }
90
+
91
+ & .text__action--skeleton {
92
+ background-color: ${i.linearGradientAnimation("-90deg")};
93
+ height: 2rem;
94
+ width: 9rem;
95
+ }
96
+ }
97
+ `,u=c.forwardRef(({title:t,image:e,description:n,actionText:o,onSelectCard:a=()=>{},className:l,position:g,tag:d},y)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:l,onClick:a,position:g,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[d&&r.jsx("div",{className:"text__tag",children:d}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:a,className:"text__action"})]})]})})}),_=s.newStyled.div`
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: 1.5rem;
101
+
102
+ & .regular-title {
103
+ display: flex;
104
+ gap: 0.5rem;
105
+ align-items: center;
106
+ justify-content: space-between;
107
+ font-size: 1.5rem;
108
+ font-weight: 600;
109
+ & .regular-title-text {
110
+ display: flex;
111
+ gap: 0.5rem;
112
+ align-items: center;
113
+ }
114
+
115
+ & i {
116
+ font-size: 1.5rem;
117
+ color: var(--primary-500, #f59e0b);
118
+ }
119
+ }
120
+
121
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
122
+ gap: 1.25rem;
123
+
124
+ & .regular-title {
125
+ font-size: 1.375rem;
126
+
127
+ &.center {
128
+ justify-content: center;
129
+ }
130
+ }
131
+ }
132
+ `,w=s.newStyled.div`
133
+ display: grid;
134
+ grid-template-columns: repeat(12, 1fr);
135
+ grid-template-rows: 15rem 15rem;
136
+ grid-column-gap: 1.25rem;
137
+ grid-row-gap: 1.25rem;
138
+ height: 30rem;
139
+ max-height: 30rem;
140
+
141
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
142
+ display: flex;
143
+ flex-direction: column;
144
+ gap: 1rem;
145
+ width: 100%;
146
+ height: 100%;
147
+ max-height: 100%;
148
+ padding: 0 1rem;
149
+ }
150
+ `,b=c.forwardRef(({title:t,items:e,limit:n=3},o)=>r.jsxs(_,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(w,{limit:n,children:e&&(e==null?void 0:e.map((a,l)=>r.jsx(u,{...a},`landing-page-masonry-general-card__${l+1}`)))})]}));module.exports=b;