@fluidattacks/design 3.1.11 → 3.1.13

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 (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,224 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("styled-components"),a={typography:{type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},shadows:{none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},breakpoints:{mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},spacing:{0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},palette:{primary:{25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},complementary:{25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},error:{25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},info:{25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},warning:{25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},success:{25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},black:"#0c111d",white:"#ffffff",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gradients:{"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"}}};exports.CustomThemeProvider=({children:f})=>e.jsx(r.ThemeProvider,{theme:a,children:f}),exports.icons=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],exports.theme=a,exports.uniqueIcons=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]];
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ThemeProvider as a } from "styled-components";
3
+ const o = {
4
+ 25: "#fcfcfd",
5
+ 50: "#f9fafb",
6
+ 100: "#f2f4f7",
7
+ 200: "#eaecf0",
8
+ 300: "#d0d5dd",
9
+ 400: "#98a2b3",
10
+ 500: "#667085",
11
+ 600: "#475467",
12
+ 700: "#2f394b",
13
+ 800: "#212a36",
14
+ 900: "#161b25"
15
+ }, f = {
16
+ 25: "#fef2f3",
17
+ 50: "#fddfe2",
18
+ 100: "#fbbac0",
19
+ 200: "#f9959e",
20
+ 300: "#f65e6a",
21
+ 400: "#f32637",
22
+ 500: "#bf0b1a",
23
+ // Brand color
24
+ 600: "#ac0a17",
25
+ 700: "#9a0915",
26
+ 800: "#870812",
27
+ 900: "#750710"
28
+ }, s = {
29
+ 25: "",
30
+ 50: "",
31
+ 100: "#ffe6ff",
32
+ 200: "",
33
+ 300: "#b8075d",
34
+ 400: "",
35
+ 500: "#7f0540",
36
+ 600: "",
37
+ 700: "#59042d",
38
+ 800: "",
39
+ 900: "#460323"
40
+ }, n = {
41
+ 25: "",
42
+ 50: "#fef3f2",
43
+ 100: "",
44
+ 200: "#fecdca",
45
+ 300: "",
46
+ 400: "",
47
+ 500: "#f04438",
48
+ 600: "",
49
+ 700: "#b42318",
50
+ 800: "",
51
+ 900: ""
52
+ }, c = {
53
+ 25: "",
54
+ 50: "#fffaeb",
55
+ 100: "",
56
+ 200: "#fef0c7",
57
+ 300: "",
58
+ 400: "#ffd562",
59
+ 500: "#fdb022",
60
+ 600: "#dc6803",
61
+ 700: "#b54708",
62
+ 800: "",
63
+ 900: ""
64
+ }, p = {
65
+ 25: "",
66
+ 50: "#f6fef9",
67
+ 100: "",
68
+ 200: "#a6f4c5",
69
+ 300: "",
70
+ 400: "",
71
+ 500: "#12b76a",
72
+ 600: "",
73
+ 700: "#027a48",
74
+ 800: "",
75
+ 900: ""
76
+ }, l = {
77
+ 25: "",
78
+ 50: "#eff8ff",
79
+ 100: "",
80
+ 200: "#b2ddff",
81
+ 300: "",
82
+ 400: "",
83
+ 500: "#2e90fa",
84
+ 600: "",
85
+ 700: "#175cd3",
86
+ 800: "",
87
+ 900: ""
88
+ }, t = {
89
+ "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)",
90
+ "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"
91
+ }, i = {
92
+ type: {
93
+ primary: "Roboto, sans-serif",
94
+ poppins: "'Poppins', sans-serif",
95
+ mono: "'Space Mono', monospace"
96
+ },
97
+ heading: {
98
+ xxl: "64px",
99
+ xl: "48px",
100
+ lg: "32px",
101
+ md: "24px",
102
+ sm: "20px",
103
+ xs: "16px"
104
+ },
105
+ text: {
106
+ xl: "20px",
107
+ lg: "18px",
108
+ md: "16px",
109
+ sm: "14px",
110
+ xs: "12px"
111
+ },
112
+ weight: {
113
+ bold: "700",
114
+ semibold: "600",
115
+ regular: "400"
116
+ }
117
+ }, m = {
118
+ none: "none",
119
+ sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)",
120
+ md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)",
121
+ lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)"
122
+ }, d = {
123
+ mobile: "480px",
124
+ tablet: "960px",
125
+ sm: "1024px",
126
+ md: "1440px",
127
+ lg: "1920px"
128
+ }, x = {
129
+ 0: "0rem",
130
+ 0.125: "0.125rem",
131
+ 0.188: "0.188rem",
132
+ 0.25: "0.25rem",
133
+ 0.5: "0.5rem",
134
+ 0.625: "0.625rem",
135
+ 0.75: "0.75rem",
136
+ 1: "1rem",
137
+ 1.25: "1.25rem",
138
+ 1.5: "1.5rem",
139
+ 1.75: "1.75rem",
140
+ 2: "2rem",
141
+ 2.25: "2.25rem",
142
+ 2.5: "2.5rem",
143
+ 3: "3rem",
144
+ 3.5: "3.5rem",
145
+ 4: "4rem",
146
+ 4.5: "4.5rem",
147
+ 5: "5rem",
148
+ 6: "6rem"
149
+ }, u = [
150
+ "lock-keyhole",
151
+ "bars-sort",
152
+ "bolt",
153
+ "books",
154
+ "brain-circuit",
155
+ "briefcase",
156
+ "bug",
157
+ "buildings",
158
+ "bullseye-pointer",
159
+ "calendar-clock",
160
+ "calendar-xmark",
161
+ "chart-network",
162
+ "clipboard-check",
163
+ "comment",
164
+ "envelope",
165
+ "eye",
166
+ "file",
167
+ "flag",
168
+ "globe",
169
+ "hand-holding-dollar",
170
+ "hands-clapping",
171
+ "headset",
172
+ "hexagon-exclamation",
173
+ "light-emergency-on",
174
+ "magnifying-glass",
175
+ "pen-line",
176
+ "plane-departure",
177
+ "screwdriver-wrench",
178
+ "sensor-triangle-exclamation",
179
+ "shield-check",
180
+ "sidebar",
181
+ "skull",
182
+ "sliders",
183
+ "star-christmas",
184
+ "telescope",
185
+ "trash",
186
+ "unlock",
187
+ "user-group",
188
+ "user-hoodie",
189
+ "xmark"
190
+ ], k = [
191
+ ["fal", "arrow-down"],
192
+ ["fal", "arrow-left"],
193
+ ["fal", "arrow-right"],
194
+ ["fal", "arrow-up"],
195
+ ["fal", "plus"],
196
+ ["fal", "minus"],
197
+ ["fas", "check"],
198
+ ["fas", "circle-question"]
199
+ ], b = {
200
+ typography: i,
201
+ shadows: m,
202
+ breakpoints: d,
203
+ spacing: x,
204
+ palette: {
205
+ primary: f,
206
+ complementary: s,
207
+ error: n,
208
+ info: l,
209
+ warning: c,
210
+ success: p,
211
+ black: "#0c111d",
212
+ white: "#ffffff",
213
+ gray: o,
214
+ gradients: t
215
+ }
216
+ }, w = ({
217
+ children: e
218
+ }) => /* @__PURE__ */ r(a, { theme: b, children: e });
219
+ export {
220
+ w as CustomThemeProvider,
221
+ u as icons,
222
+ b as theme,
223
+ k as uniqueIcons
224
+ };
@@ -1 +1,46 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),r=require("../modal/index.js");require("lodash");const o=require("../../use-modal-_bYY6M_n.js"),i=require("../modal/modal-confirm/index.js");exports.useConfirmDialog=()=>{const[a,n]=l.useState(!1),[s,u]=l.useState(),d=l.useRef(null),t=o.useModal("confirm-dialog-modal"),c=l.useCallback((async e=>(u(e),n(!0),new Promise((e=>{d.current=e})))),[]),m=l.useCallback((()=>{var e;n(!1),u(void 0),null==(e=d.current)||e.call(d,!0)}),[]),f=l.useCallback((()=>{var e;n(!1),u(void 0),null==(e=d.current)||e.call(d,!1)}),[]);return l.useEffect((()=>{t.setIsOpen(a)}),[a,t]),{ConfirmDialog:({id:l="confirm-dialog-modal",children:o})=>e.jsxs(r.Modal,{id:l,modalRef:{...t,close:f},size:"sm",title:null==s?void 0:s.title,children:[o,null==s?void 0:s.message,e.jsx(i.ModalConfirm,{id:null==s?void 0:s.id,onCancel:f,onConfirm:m})]}),confirm:c}};
1
+ import { jsxs as d, jsx as p } from "react/jsx-runtime";
2
+ import { useState as f, useRef as C, useCallback as a, useEffect as D } from "react";
3
+ import { Modal as h } from "../modal/index.js";
4
+ import "lodash";
5
+ import { u as x } from "../../use-modal-CtgexKnf.mjs";
6
+ import { ModalConfirm as M } from "../modal/modal-confirm/index.js";
7
+ const y = () => {
8
+ const [c, o] = f(!1), [e, r] = f(), t = C(null), s = x("confirm-dialog-modal"), l = a(
9
+ async (n) => (r(n), o(!0), new Promise((m) => {
10
+ t.current = m;
11
+ })),
12
+ []
13
+ ), u = a(() => {
14
+ var n;
15
+ o(!1), r(void 0), (n = t.current) == null || n.call(t, !0);
16
+ }, []), i = a(() => {
17
+ var n;
18
+ o(!1), r(void 0), (n = t.current) == null || n.call(t, !1);
19
+ }, []);
20
+ return D(() => {
21
+ s.setIsOpen(c);
22
+ }, [c, s]), { ConfirmDialog: ({ id: n = "confirm-dialog-modal", children: m }) => /* @__PURE__ */ d(
23
+ h,
24
+ {
25
+ id: n,
26
+ modalRef: { ...s, close: i },
27
+ size: "sm",
28
+ title: e == null ? void 0 : e.title,
29
+ children: [
30
+ m,
31
+ e == null ? void 0 : e.message,
32
+ /* @__PURE__ */ p(
33
+ M,
34
+ {
35
+ id: e == null ? void 0 : e.id,
36
+ onCancel: i,
37
+ onConfirm: u
38
+ }
39
+ )
40
+ ]
41
+ }
42
+ ), confirm: l };
43
+ };
44
+ export {
45
+ y as useConfirmDialog
46
+ };
@@ -1,3 +1,51 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),t=require("styled-components"),r=require("../../styles-C2CoGJl7.js"),s=t.styled(r.BaseComponent)`
2
- ${({theme:e,$center:n=!1,$styleMd:t,$styleSm:r})=>`\n ${n?"margin: auto;":""}\n scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};\n scroll-padding: ${e.spacing[.5]};\n\n @media screen\n and (min-width: ${e.breakpoints.mobile})\n and (max-width: ${e.breakpoints.tablet})\n {\n ${t};\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n ${r};\n }\n `}
3
- `,a=n.forwardRef((function({as:n="div",center:t,children:r,id:a,onHover:o,onLeave:i,styleMd:l,styleSm:d,...c},m){return e.jsx(s,{$center:t,$styleMd:l,$styleSm:d,as:n,id:a,onMouseLeave:i,onMouseOver:o,ref:m,...c,children:r})}));exports.Container=a;
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as $ } from "react";
3
+ import { styled as c } from "styled-components";
4
+ import { B as f } from "../../styles-CplEd2kw.mjs";
5
+ const b = c(f)`
6
+ ${({ theme: o, $center: r = !1, $styleMd: a, $styleSm: n }) => `
7
+ ${r ? "margin: auto;" : ""}
8
+ scrollbar-color: ${o.palette.gray[600]} ${o.palette.gray[100]};
9
+ scroll-padding: ${o.spacing[0.5]};
10
+
11
+ @media screen
12
+ and (min-width: ${o.breakpoints.mobile})
13
+ and (max-width: ${o.breakpoints.tablet})
14
+ {
15
+ ${a};
16
+ }
17
+
18
+ @media screen and (max-width: ${o.breakpoints.mobile}) {
19
+ ${n};
20
+ }
21
+ `}
22
+ `, x = $(function({
23
+ as: r = "div",
24
+ center: a,
25
+ children: n,
26
+ id: e,
27
+ onHover: t,
28
+ onLeave: i,
29
+ styleMd: s,
30
+ styleSm: d,
31
+ ...l
32
+ }, m) {
33
+ return /* @__PURE__ */ p(
34
+ b,
35
+ {
36
+ $center: a,
37
+ $styleMd: s,
38
+ $styleSm: d,
39
+ as: r,
40
+ id: e,
41
+ onMouseLeave: i,
42
+ onMouseOver: t,
43
+ ref: m,
44
+ ...l,
45
+ children: n
46
+ }
47
+ );
48
+ });
49
+ export {
50
+ x as Container
51
+ };
@@ -1 +1,42 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../../container/index.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const r=require("../../typography/text/index.js");exports.CategoryTag=({tag:n,tagPosition:o})=>{const s=t.useTheme();return n?e.jsx(i.Container,{alignItems:"center",bgColor:s.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===o?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===o?"absolute":"relative",top:"0",width:"max-content",children:e.jsx(r.Text,{color:s.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:n})}):null};
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useTheme as o } from "styled-components";
3
+ import { Container as n } from "../../container/index.js";
4
+ import "../../typography/heading/index.js";
5
+ import "../../typography/span/index.js";
6
+ import { Text as m } from "../../typography/text/index.js";
7
+ const f = ({
8
+ tag: e,
9
+ tagPosition: t
10
+ }) => {
11
+ const r = o();
12
+ return e ? /* @__PURE__ */ i(
13
+ n,
14
+ {
15
+ alignItems: "center",
16
+ bgColor: r.palette.white,
17
+ borderRadius: "8px",
18
+ display: "flex",
19
+ justify: "center",
20
+ margin: t === "top" ? [0.75, 0.75, 0.75, 0.75] : void 0,
21
+ padding: [0.25, 0.5, 0.25, 0.5],
22
+ position: t === "top" ? "absolute" : "relative",
23
+ top: "0",
24
+ width: "max-content",
25
+ children: /* @__PURE__ */ i(
26
+ m,
27
+ {
28
+ color: r.palette.gray[900],
29
+ lineSpacing: 1.5,
30
+ lineSpacingSm: 1.25,
31
+ size: "md",
32
+ sizeSm: "sm",
33
+ textAlign: "center",
34
+ children: e
35
+ }
36
+ )
37
+ }
38
+ ) : null;
39
+ };
40
+ export {
41
+ f as CategoryTag
42
+ };
@@ -1 +1,61 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash"),i=require("styled-components"),n=require("../../container/index.js"),r=require("../../typography/heading/index.js");require("../../typography/span/index.js");const s=require("../../typography/text/index.js");exports.EventDate=({eventDate:o})=>{const l=i.useTheme(),a=t.isEmpty(o)?null:null==o?void 0:o.split("-");if(a){const[t,i]=a;return e.jsxs(n.Container,{alignItems:"center",bgColor:l.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[e.jsx(r.Heading,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),e.jsx(s.Text,{color:l.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:i.toUpperCase()})]})}return null};
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { isEmpty as l } from "lodash";
3
+ import { useTheme as s } from "styled-components";
4
+ import { Container as p } from "../../container/index.js";
5
+ import { Heading as d } from "../../typography/heading/index.js";
6
+ import "../../typography/span/index.js";
7
+ import { Text as c } from "../../typography/text/index.js";
8
+ const b = ({
9
+ eventDate: i
10
+ }) => {
11
+ const o = s(), t = l(i) ? null : i == null ? void 0 : i.split("-");
12
+ if (t) {
13
+ const [r, m] = t;
14
+ return /* @__PURE__ */ n(
15
+ p,
16
+ {
17
+ alignItems: "center",
18
+ bgColor: o.palette.white,
19
+ borderRadius: "8px",
20
+ display: "flex",
21
+ flexDirection: "column",
22
+ margin: [0.75, 0.75, 0.75, 0.75],
23
+ padding: [0.75, 1.5, 0.75, 1.5],
24
+ position: "absolute",
25
+ right: "0",
26
+ shadow: "md",
27
+ top: "0",
28
+ children: [
29
+ /* @__PURE__ */ e(
30
+ d,
31
+ {
32
+ fontWeight: "semibold",
33
+ lineSpacingSm: 1.25,
34
+ size: "md",
35
+ sizeSm: "sm",
36
+ textAlign: "center",
37
+ children: r
38
+ }
39
+ ),
40
+ /* @__PURE__ */ e(
41
+ c,
42
+ {
43
+ color: o.palette.gray[800],
44
+ fontWeight: "semibold",
45
+ lineSpacing: 1.5,
46
+ lineSpacingSm: 1.25,
47
+ size: "md",
48
+ sizeSm: "sm",
49
+ textAlign: "center",
50
+ children: m.toUpperCase()
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ );
56
+ }
57
+ return null;
58
+ };
59
+ export {
60
+ b as EventDate
61
+ };
@@ -1,3 +1,168 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("styled-components"),n=require("./category-tag/index.js"),i=require("./event-date/index.js"),r=require("../button/index.js"),a=require("../../index-TKLFHcRp.js"),s=require("../container/index.js"),o=require("../icon/index.js"),l=require("../typography/heading/index.js");require("../typography/span/index.js");const d=require("../typography/text/index.js"),c=t.div`
2
- ${({theme:e})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[1.5]};\n width: 384px;\n\n img {\n height: 100%;\n width: 100%;\n }\n\n #card-image {\n border-radius: ${e.spacing[1]};\n height: 240px;\n overflow: hidden;\n }\n\n &:hover {\n img {\n transform: scale(1.2);\n }\n\n > #card-content {\n > .title-dark {\n color: ${e.palette.gray[400]};\n }\n > .title-light {\n background: ${e.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n width: 320px;\n\n #card-image {\n height: 200px;\n }\n }\n `}
3
- `;exports.ContentCard=({author:g,buttonText:x,description:p,eventDate:h,href:m,imageId:u,mode:j="light",publishDate:y,readingTime:f,tag:b,tagPosition:v="top",title:q})=>{const w=t.useTheme(),$=null==y?void 0:y.split("-"),z="dark"===j,T=e.jsxs(c,{"data-testid":`content-card-${q}`,children:[u||h||b&&"top"===v?e.jsxs(s.Container,{id:"card-image",position:"relative",children:[u&&e.jsx(a.MemoizedImage,{publicId:u}),"top"===v&&e.jsx(n.CategoryTag,{tag:b,tagPosition:v}),e.jsx(i.EventDate,{eventDate:h})]}):void 0,e.jsxs(s.Container,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===v&&e.jsx(n.CategoryTag,{tag:b,tagPosition:v}),g||$||f?e.jsxs(s.Container,{display:"flex",justify:"space-between",width:"100%",children:[g&&$&&e.jsx(d.Text,{color:w.palette.gray[z?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:g+` ${$[0]} ${$[1]}, ${$[2]}`}),f&&e.jsxs(s.Container,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[e.jsx(o.Icon,{icon:"eye",iconColor:w.palette.gray[z?300:400],iconSize:"xs",iconType:"fa-light"}),e.jsx(d.Text,{color:w.palette.gray[z?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:f})]})]}):void 0,e.jsx(l.Heading,{className:`title-${j}`,color:z?w.palette.white:w.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:q}),p&&e.jsx(d.Text,{color:w.palette.gray[z?100:600],size:"md",sizeSm:"sm",children:p}),x&&m&&e.jsx(r.Button,{href:m,variant:"link",children:x})]})]});return m?e.jsx("a",{className:"flex w-fit",href:m,rel:"noopener noreferrer",target:"_self",children:T}):T};
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import z, { useTheme as b } from "styled-components";
3
+ import { CategoryTag as k } from "./category-tag/index.js";
4
+ import { EventDate as u } from "./event-date/index.js";
5
+ import { Button as C } from "../button/index.js";
6
+ import { M as v } from "../../index-maWH3JYC.mjs";
7
+ import { Container as c } from "../container/index.js";
8
+ import { Icon as S } from "../icon/index.js";
9
+ import { Heading as j } from "../typography/heading/index.js";
10
+ import "../typography/span/index.js";
11
+ import { Text as f } from "../typography/text/index.js";
12
+ const I = z.div`
13
+ ${({ theme: t }) => `
14
+ align-items: flex-start;
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: ${t.spacing[1.5]};
18
+ width: 384px;
19
+
20
+ img {
21
+ height: 100%;
22
+ width: 100%;
23
+ }
24
+
25
+ #card-image {
26
+ border-radius: ${t.spacing[1]};
27
+ height: 240px;
28
+ overflow: hidden;
29
+ }
30
+
31
+ &:hover {
32
+ img {
33
+ transform: scale(1.2);
34
+ }
35
+
36
+ > #card-content {
37
+ > .title-dark {
38
+ color: ${t.palette.gray[400]};
39
+ }
40
+ > .title-light {
41
+ background: ${t.palette.gradients["01"]};
42
+ background-clip: text;
43
+ -webkit-background-clip: text;
44
+ -webkit-text-fill-color: transparent;
45
+ }
46
+ }
47
+ }
48
+
49
+ @media screen and (max-width: ${t.breakpoints.mobile}) {
50
+ width: 320px;
51
+
52
+ #card-image {
53
+ height: 200px;
54
+ }
55
+ }
56
+ `}
57
+ `, G = ({
58
+ author: t,
59
+ buttonText: g,
60
+ description: x,
61
+ eventDate: h,
62
+ href: a,
63
+ imageId: d,
64
+ mode: y = "light",
65
+ publishDate: s,
66
+ readingTime: m,
67
+ tag: p,
68
+ tagPosition: r = "top",
69
+ title: w
70
+ }) => {
71
+ const i = b(), o = s == null ? void 0 : s.split("-"), n = y === "dark", $ = /* @__PURE__ */ l(I, { "data-testid": `content-card-${w}`, children: [
72
+ d || h || p && r === "top" ? /* @__PURE__ */ l(c, { id: "card-image", position: "relative", children: [
73
+ d && /* @__PURE__ */ e(v, { publicId: d }),
74
+ r === "top" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
75
+ /* @__PURE__ */ e(u, { eventDate: h })
76
+ ] }) : void 0,
77
+ /* @__PURE__ */ l(
78
+ c,
79
+ {
80
+ alignItems: "flex-start",
81
+ display: "flex",
82
+ flexDirection: "column",
83
+ gap: 0.5,
84
+ id: "card-content",
85
+ children: [
86
+ r === "bottom" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
87
+ t || o || m ? /* @__PURE__ */ l(c, { display: "flex", justify: "space-between", width: "100%", children: [
88
+ t && o && /* @__PURE__ */ e(
89
+ f,
90
+ {
91
+ color: i.palette.gray[n ? 300 : 400],
92
+ fontWeight: "semibold",
93
+ size: "sm",
94
+ sizeSm: "xs",
95
+ children: t + ` • ${o[0]} ${o[1]}, ${o[2]}`
96
+ }
97
+ ),
98
+ m && /* @__PURE__ */ l(
99
+ c,
100
+ {
101
+ alignItems: "center",
102
+ display: "flex",
103
+ gap: 0.25,
104
+ justify: "center",
105
+ minWidth: "60px",
106
+ children: [
107
+ /* @__PURE__ */ e(
108
+ S,
109
+ {
110
+ icon: "eye",
111
+ iconColor: i.palette.gray[n ? 300 : 400],
112
+ iconSize: "xs",
113
+ iconType: "fa-light"
114
+ }
115
+ ),
116
+ /* @__PURE__ */ e(
117
+ f,
118
+ {
119
+ color: i.palette.gray[n ? 300 : 400],
120
+ size: "sm",
121
+ sizeSm: "xs",
122
+ textAlign: "right",
123
+ children: m
124
+ }
125
+ )
126
+ ]
127
+ }
128
+ )
129
+ ] }) : void 0,
130
+ /* @__PURE__ */ e(
131
+ j,
132
+ {
133
+ className: `title-${y}`,
134
+ color: n ? i.palette.white : i.palette.gray[800],
135
+ fontWeight: "semibold",
136
+ size: "sm",
137
+ sizeSm: "xs",
138
+ children: w
139
+ }
140
+ ),
141
+ x && /* @__PURE__ */ e(
142
+ f,
143
+ {
144
+ color: i.palette.gray[n ? 100 : 600],
145
+ size: "md",
146
+ sizeSm: "sm",
147
+ children: x
148
+ }
149
+ ),
150
+ g && a && /* @__PURE__ */ e(C, { href: a, variant: "link", children: g })
151
+ ]
152
+ }
153
+ )
154
+ ] });
155
+ return a ? /* @__PURE__ */ e(
156
+ "a",
157
+ {
158
+ className: "flex w-fit",
159
+ href: a,
160
+ rel: "noopener noreferrer",
161
+ target: "_self",
162
+ children: $
163
+ }
164
+ ) : $;
165
+ };
166
+ export {
167
+ G as ContentCard
168
+ };