@drawbridge/components 0.0.39 → 0.0.42

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 (248) hide show
  1. package/dist/advertisement.js +1303 -0
  2. package/dist/advertisement.mjs +98 -0
  3. package/dist/card-advertisement.mjs +3 -354
  4. package/dist/chunk-2ZYGRSSA.mjs +45 -0
  5. package/dist/chunk-7ZLMDYBR.mjs +113 -0
  6. package/dist/chunk-BD3TDNJE.mjs +98 -0
  7. package/dist/chunk-FJXG3REN.mjs +93 -0
  8. package/dist/chunk-FYA7EAMR.mjs +29 -0
  9. package/dist/chunk-GFDZ7ER6.mjs +29 -0
  10. package/dist/chunk-GUSVATKJ.mjs +335 -0
  11. package/dist/chunk-HH7WF5BT.mjs +29 -0
  12. package/dist/chunk-Q3UIVGPQ.mjs +29 -0
  13. package/dist/chunk-T5QQBFM3.mjs +29 -0
  14. package/dist/chunk-TJNIR4PF.mjs +358 -0
  15. package/dist/chunk-XWELEL6Z.mjs +208 -0
  16. package/dist/embla.js +41 -0
  17. package/dist/embla.mjs +6 -0
  18. package/dist/icons/arrow-down-tray.js +48 -0
  19. package/dist/icons/arrow-down-tray.mjs +28 -0
  20. package/dist/icons/arrow-left.js +48 -0
  21. package/dist/icons/arrow-left.mjs +28 -0
  22. package/dist/icons/arrow-right.js +48 -0
  23. package/dist/icons/arrow-right.mjs +28 -0
  24. package/dist/icons/arrow-up-tray.js +48 -0
  25. package/dist/icons/arrow-up-tray.mjs +28 -0
  26. package/dist/icons/bars-arrow-down.js +48 -0
  27. package/dist/icons/bars-arrow-down.mjs +28 -0
  28. package/dist/icons/bars-arrow-up.js +48 -0
  29. package/dist/icons/bars-arrow-up.mjs +28 -0
  30. package/dist/icons/bold.js +47 -0
  31. package/dist/icons/bold.mjs +27 -0
  32. package/dist/icons/bolt.js +48 -0
  33. package/dist/icons/bolt.mjs +28 -0
  34. package/dist/icons/calendar.js +48 -0
  35. package/dist/icons/calendar.mjs +28 -0
  36. package/dist/icons/cancel.js +48 -0
  37. package/dist/icons/cancel.mjs +28 -0
  38. package/dist/icons/card.js +48 -0
  39. package/dist/icons/card.mjs +28 -0
  40. package/dist/icons/chart.js +48 -0
  41. package/dist/icons/chart.mjs +28 -0
  42. package/dist/icons/check.js +48 -0
  43. package/dist/icons/check.mjs +6 -0
  44. package/dist/icons/chevron-down.js +48 -0
  45. package/dist/icons/chevron-down.mjs +6 -0
  46. package/dist/icons/chevron-left.js +48 -0
  47. package/dist/icons/chevron-left.mjs +28 -0
  48. package/dist/icons/chevron-right.js +48 -0
  49. package/dist/icons/chevron-right.mjs +28 -0
  50. package/dist/icons/chevron-up-down.js +48 -0
  51. package/dist/icons/chevron-up-down.mjs +28 -0
  52. package/dist/icons/chevron-up.js +48 -0
  53. package/dist/icons/chevron-up.mjs +28 -0
  54. package/dist/icons/clock.js +48 -0
  55. package/dist/icons/clock.mjs +28 -0
  56. package/dist/icons/code-bracket.js +48 -0
  57. package/dist/icons/code-bracket.mjs +28 -0
  58. package/dist/icons/cog.js +60 -0
  59. package/dist/icons/cog.mjs +40 -0
  60. package/dist/icons/copy.js +48 -0
  61. package/dist/icons/copy.mjs +28 -0
  62. package/dist/icons/document.js +48 -0
  63. package/dist/icons/document.mjs +28 -0
  64. package/dist/icons/download.js +48 -0
  65. package/dist/icons/download.mjs +28 -0
  66. package/dist/icons/drag.js +51 -0
  67. package/dist/icons/drag.mjs +31 -0
  68. package/dist/icons/ellipsis.js +48 -0
  69. package/dist/icons/ellipsis.mjs +28 -0
  70. package/dist/icons/email.js +48 -0
  71. package/dist/icons/email.mjs +28 -0
  72. package/dist/icons/external.js +48 -0
  73. package/dist/icons/external.mjs +28 -0
  74. package/dist/icons/filter.js +48 -0
  75. package/dist/icons/filter.mjs +28 -0
  76. package/dist/icons/flag.js +48 -0
  77. package/dist/icons/flag.mjs +28 -0
  78. package/dist/icons/google.js +74 -0
  79. package/dist/icons/google.mjs +54 -0
  80. package/dist/icons/home.js +48 -0
  81. package/dist/icons/home.mjs +28 -0
  82. package/dist/icons/image.js +48 -0
  83. package/dist/icons/image.mjs +28 -0
  84. package/dist/icons/italic.js +48 -0
  85. package/dist/icons/italic.mjs +28 -0
  86. package/dist/icons/link.js +48 -0
  87. package/dist/icons/link.mjs +28 -0
  88. package/dist/icons/loader.js +64 -0
  89. package/dist/icons/loader.mjs +6 -0
  90. package/dist/icons/lock.js +48 -0
  91. package/dist/icons/lock.mjs +28 -0
  92. package/dist/icons/logo-mark.js +55 -0
  93. package/dist/icons/logo-mark.mjs +35 -0
  94. package/dist/icons/logo-tagline.js +137 -0
  95. package/dist/icons/logo-tagline.mjs +117 -0
  96. package/dist/icons/map-pin.js +60 -0
  97. package/dist/icons/map-pin.mjs +40 -0
  98. package/dist/icons/menu.js +48 -0
  99. package/dist/icons/menu.mjs +28 -0
  100. package/dist/icons/minus.js +48 -0
  101. package/dist/icons/minus.mjs +6 -0
  102. package/dist/icons/muted.js +48 -0
  103. package/dist/icons/muted.mjs +28 -0
  104. package/dist/icons/pause.js +48 -0
  105. package/dist/icons/pause.mjs +28 -0
  106. package/dist/icons/pencil.js +48 -0
  107. package/dist/icons/pencil.mjs +28 -0
  108. package/dist/icons/play.js +48 -0
  109. package/dist/icons/play.mjs +28 -0
  110. package/dist/icons/plus.js +48 -0
  111. package/dist/icons/plus.mjs +6 -0
  112. package/dist/icons/powered-by.js +45 -0
  113. package/dist/icons/powered-by.mjs +25 -0
  114. package/dist/icons/qr-code.js +60 -0
  115. package/dist/icons/qr-code.mjs +40 -0
  116. package/dist/icons/queue.js +48 -0
  117. package/dist/icons/queue.mjs +28 -0
  118. package/dist/icons/refresh.js +48 -0
  119. package/dist/icons/refresh.mjs +28 -0
  120. package/dist/icons/refund.js +48 -0
  121. package/dist/icons/refund.mjs +28 -0
  122. package/dist/icons/rocket.js +48 -0
  123. package/dist/icons/rocket.mjs +28 -0
  124. package/dist/icons/search.js +48 -0
  125. package/dist/icons/search.mjs +28 -0
  126. package/dist/icons/share.js +48 -0
  127. package/dist/icons/share.mjs +28 -0
  128. package/dist/icons/shop.js +46 -0
  129. package/dist/icons/shop.mjs +26 -0
  130. package/dist/icons/sparkles.js +48 -0
  131. package/dist/icons/sparkles.mjs +28 -0
  132. package/dist/icons/star.js +48 -0
  133. package/dist/icons/star.mjs +28 -0
  134. package/dist/icons/switch.js +48 -0
  135. package/dist/icons/switch.mjs +28 -0
  136. package/dist/icons/times.js +48 -0
  137. package/dist/icons/times.mjs +28 -0
  138. package/dist/icons/trash.js +48 -0
  139. package/dist/icons/trash.mjs +28 -0
  140. package/dist/icons/underline.js +48 -0
  141. package/dist/icons/underline.mjs +28 -0
  142. package/dist/icons/upload.js +48 -0
  143. package/dist/icons/upload.mjs +28 -0
  144. package/dist/icons/volume.js +48 -0
  145. package/dist/icons/volume.mjs +28 -0
  146. package/dist/icons/warning.js +48 -0
  147. package/dist/icons/warning.mjs +6 -0
  148. package/dist/input-checkbox.js +130 -0
  149. package/dist/input-checkbox.mjs +71 -0
  150. package/dist/input-group.js +156 -0
  151. package/dist/input-group.mjs +7 -0
  152. package/dist/input-number.js +211 -0
  153. package/dist/input-number.mjs +136 -0
  154. package/dist/input-select.js +150 -0
  155. package/dist/input-select.mjs +9 -0
  156. package/dist/input-text.js +65 -0
  157. package/dist/input-text.mjs +36 -0
  158. package/dist/input-textarea.js +69 -0
  159. package/dist/input-textarea.mjs +40 -0
  160. package/dist/product.js +865 -0
  161. package/dist/product.mjs +14 -0
  162. package/dist/provider-font.js +94 -0
  163. package/dist/provider-font.mjs +74 -0
  164. package/dist/styles.js +127 -0
  165. package/dist/styles.mjs +28 -0
  166. package/dist/video.js +195 -0
  167. package/dist/video.mjs +125 -0
  168. package/dist/wrapper-gradient.js +232 -0
  169. package/dist/wrapper-gradient.mjs +9 -0
  170. package/package.json +316 -2
  171. package/types/advertisement.d.ts +36 -0
  172. package/types/embla.d.ts +2 -0
  173. package/types/icons/arrow-down-tray.d.ts +5 -0
  174. package/types/icons/arrow-left.d.ts +5 -0
  175. package/types/icons/arrow-right.d.ts +5 -0
  176. package/types/icons/arrow-up-tray.d.ts +5 -0
  177. package/types/icons/bars-arrow-down.d.ts +5 -0
  178. package/types/icons/bars-arrow-up.d.ts +5 -0
  179. package/types/icons/bold.d.ts +5 -0
  180. package/types/icons/bolt.d.ts +5 -0
  181. package/types/icons/calendar.d.ts +5 -0
  182. package/types/icons/cancel.d.ts +5 -0
  183. package/types/icons/card.d.ts +5 -0
  184. package/types/icons/chart.d.ts +5 -0
  185. package/types/icons/check.d.ts +5 -0
  186. package/types/icons/chevron-down.d.ts +5 -0
  187. package/types/icons/chevron-left.d.ts +5 -0
  188. package/types/icons/chevron-right.d.ts +5 -0
  189. package/types/icons/chevron-up-down.d.ts +5 -0
  190. package/types/icons/chevron-up.d.ts +5 -0
  191. package/types/icons/clock.d.ts +5 -0
  192. package/types/icons/code-bracket.d.ts +5 -0
  193. package/types/icons/cog.d.ts +5 -0
  194. package/types/icons/copy.d.ts +5 -0
  195. package/types/icons/document.d.ts +5 -0
  196. package/types/icons/download.d.ts +5 -0
  197. package/types/icons/drag.d.ts +5 -0
  198. package/types/icons/ellipsis.d.ts +5 -0
  199. package/types/icons/email.d.ts +5 -0
  200. package/types/icons/external.d.ts +5 -0
  201. package/types/icons/filter.d.ts +5 -0
  202. package/types/icons/flag.d.ts +5 -0
  203. package/types/icons/google.d.ts +5 -0
  204. package/types/icons/home.d.ts +5 -0
  205. package/types/icons/image.d.ts +5 -0
  206. package/types/icons/italic.d.ts +5 -0
  207. package/types/icons/link.d.ts +5 -0
  208. package/types/icons/loader.d.ts +5 -0
  209. package/types/icons/lock.d.ts +5 -0
  210. package/types/icons/logo-mark.d.ts +5 -0
  211. package/types/icons/logo-tagline.d.ts +5 -0
  212. package/types/icons/map-pin.d.ts +5 -0
  213. package/types/icons/menu.d.ts +5 -0
  214. package/types/icons/minus.d.ts +5 -0
  215. package/types/icons/muted.d.ts +5 -0
  216. package/types/icons/pause.d.ts +5 -0
  217. package/types/icons/pencil.d.ts +5 -0
  218. package/types/icons/play.d.ts +5 -0
  219. package/types/icons/plus.d.ts +5 -0
  220. package/types/icons/powered-by.d.ts +5 -0
  221. package/types/icons/qr-code.d.ts +5 -0
  222. package/types/icons/queue.d.ts +5 -0
  223. package/types/icons/refresh.d.ts +5 -0
  224. package/types/icons/refund.d.ts +5 -0
  225. package/types/icons/rocket.d.ts +5 -0
  226. package/types/icons/search.d.ts +5 -0
  227. package/types/icons/share.d.ts +5 -0
  228. package/types/icons/shop.d.ts +5 -0
  229. package/types/icons/sparkles.d.ts +5 -0
  230. package/types/icons/star.d.ts +5 -0
  231. package/types/icons/switch.d.ts +5 -0
  232. package/types/icons/times.d.ts +5 -0
  233. package/types/icons/trash.d.ts +5 -0
  234. package/types/icons/underline.d.ts +5 -0
  235. package/types/icons/upload.d.ts +5 -0
  236. package/types/icons/volume.d.ts +5 -0
  237. package/types/icons/warning.d.ts +5 -0
  238. package/types/input-checkbox.d.ts +14 -0
  239. package/types/input-group.d.ts +15 -0
  240. package/types/input-number.d.ts +17 -0
  241. package/types/input-select.d.ts +19 -0
  242. package/types/input-text.d.ts +12 -0
  243. package/types/input-textarea.d.ts +13 -0
  244. package/types/product.d.ts +21 -0
  245. package/types/provider-font.d.ts +23 -0
  246. package/types/styles.d.ts +37 -0
  247. package/types/video.d.ts +22 -0
  248. package/types/wrapper-gradient.d.ts +17 -0
@@ -0,0 +1,232 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // components/wrapper-gradient.js
21
+ var wrapper_gradient_exports = {};
22
+ __export(wrapper_gradient_exports, {
23
+ default: () => wrapper_gradient_default,
24
+ useWrapperGradient: () => useWrapperGradient
25
+ });
26
+ module.exports = __toCommonJS(wrapper_gradient_exports);
27
+ var import_react = require("react");
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var WrapperGradientContext = (0, import_react.createContext)(null);
30
+ var useWrapperGradient = () => (0, import_react.useContext)(WrapperGradientContext);
31
+ var WrapperGradient = ({
32
+ children,
33
+ className,
34
+ classNameGradient,
35
+ classNameScroll,
36
+ color,
37
+ gradientTopOffset,
38
+ horizontal = false
39
+ }) => {
40
+ const showX = horizontal === true || horizontal === "both";
41
+ const showY = horizontal === false || horizontal === "both";
42
+ const overflowClass = horizontal === "both" ? "overflow-scroll" : horizontal ? "overflow-x-scroll overflow-y-visible" : "overflow-y-scroll overflow-x-visible";
43
+ const overscrollClass = horizontal === "both" ? "overscroll-none" : horizontal ? "overscroll-x-none overscroll-y-auto" : "overscroll-y-none overscroll-x-auto";
44
+ const themed = Boolean(color);
45
+ const gradientDefaults = "absolute z-[2] " + (themed ? "pointer-events-none " : "") + "transition-all duration-[100ms] ";
46
+ const classes = {
47
+ container: [
48
+ themed ? "relative" : "w-full relative",
49
+ ...className ? [className] : []
50
+ ],
51
+ inner: [
52
+ "w-full relative scroll-smooth hide-scrollbar",
53
+ overscrollClass,
54
+ overflowClass,
55
+ ...classNameScroll ? [classNameScroll] : []
56
+ ],
57
+ topGradient: [
58
+ gradientDefaults,
59
+ "w-full -top-[1px]",
60
+ ...themed ? [] : ["bg-gradient-to-b"],
61
+ ...classNameGradient ? [classNameGradient] : themed ? ["h-10"] : ["from-white to-transparent h-10"]
62
+ ],
63
+ bottomGradient: [
64
+ gradientDefaults,
65
+ "w-full -bottom-[1px]",
66
+ ...themed ? [] : ["bg-gradient-to-t"],
67
+ ...classNameGradient ? [classNameGradient] : themed ? ["h-10"] : ["from-white to-transparent h-10"]
68
+ ],
69
+ leftGradient: [
70
+ gradientDefaults,
71
+ "h-full top-0 left-0",
72
+ ...themed ? [] : ["bg-gradient-to-r"],
73
+ ...classNameGradient ? [classNameGradient] : themed ? ["w-4"] : ["from-white from-30% to-transparent w-4"]
74
+ ],
75
+ rightGradient: [
76
+ gradientDefaults,
77
+ "h-full top-0 right-0",
78
+ ...themed ? [] : ["bg-gradient-to-l"],
79
+ ...classNameGradient ? [classNameGradient] : themed ? ["w-4"] : ["from-white from-30% to-transparent w-4"]
80
+ ]
81
+ };
82
+ const gradients = {
83
+ top: "linear-gradient( to bottom, " + color + " 0%, transparent 100% )",
84
+ bottom: "linear-gradient( to top, " + color + " 0%, transparent 100% )",
85
+ left: "linear-gradient( to right, " + color + " 0%, transparent 100% )",
86
+ right: "linear-gradient( to left, " + color + " 0%, transparent 100% )"
87
+ };
88
+ const containerRef = (0, import_react.useRef)(null);
89
+ const [scroll, setScroll] = (0, import_react.useState)({
90
+ top: 0,
91
+ left: 0,
92
+ atBottom: true,
93
+ atRight: true
94
+ });
95
+ (0, import_react.useEffect)(
96
+ () => {
97
+ const container = containerRef.current;
98
+ const handleScroll = () => {
99
+ const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } = container;
100
+ setScroll({
101
+ top: scrollTop,
102
+ left: scrollLeft,
103
+ atBottom: scrollTop + clientHeight >= scrollHeight - 1,
104
+ atRight: scrollLeft + clientWidth >= scrollWidth - 1
105
+ });
106
+ };
107
+ const handleUpdate = () => {
108
+ const { scrollHeight, scrollWidth, clientHeight, clientWidth } = container;
109
+ if (scrollHeight <= clientHeight && scrollWidth <= clientWidth) {
110
+ setScroll({
111
+ top: 0,
112
+ left: 0,
113
+ atBottom: true,
114
+ atRight: true
115
+ });
116
+ return;
117
+ }
118
+ ;
119
+ handleScroll();
120
+ };
121
+ handleUpdate();
122
+ container.addEventListener("scroll", handleScroll);
123
+ const observer = new MutationObserver((mutations) => {
124
+ for (const mutation of mutations) {
125
+ if (mutation.type === "childList" && mutation.addedNodes.length > 0) {
126
+ handleUpdate();
127
+ break;
128
+ }
129
+ }
130
+ });
131
+ observer.observe(container, {
132
+ childList: true,
133
+ subtree: true
134
+ });
135
+ const resizeObserver = new ResizeObserver(handleUpdate);
136
+ resizeObserver.observe(container);
137
+ return () => {
138
+ container.removeEventListener("scroll", handleScroll);
139
+ observer.disconnect();
140
+ resizeObserver.disconnect();
141
+ };
142
+ },
143
+ [horizontal]
144
+ );
145
+ const contextValue = (0, import_react.useMemo)(
146
+ () => ({
147
+ atBottom: scroll.atBottom,
148
+ atRight: scroll.atRight
149
+ }),
150
+ [scroll.atBottom, scroll.atRight]
151
+ );
152
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
+ "div",
154
+ {
155
+ ...{
156
+ className: classes.container.join(" ")
157
+ },
158
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(WrapperGradientContext.Provider, { value: contextValue, children: [
159
+ showY && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
160
+ "div",
161
+ {
162
+ ...{
163
+ className: classes.topGradient.join(" ") + (scroll.top > 5 ? " opacity-100 visible" : " opacity-0 invisible"),
164
+ style: {
165
+ ...themed && {
166
+ backgroundImage: gradients.top
167
+ },
168
+ ...gradientTopOffset && {
169
+ top: gradientTopOffset
170
+ }
171
+ }
172
+ }
173
+ }
174
+ ),
175
+ showX && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
+ "div",
177
+ {
178
+ ...{
179
+ className: classes.leftGradient.join(" ") + (scroll.left > 5 ? " opacity-100 visible" : " opacity-0 invisible"),
180
+ style: {
181
+ ...themed && {
182
+ backgroundImage: gradients.left
183
+ }
184
+ }
185
+ }
186
+ }
187
+ ),
188
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
189
+ "div",
190
+ {
191
+ ...{
192
+ className: classes.inner.join(" "),
193
+ ref: containerRef
194
+ },
195
+ children
196
+ }
197
+ ),
198
+ showY && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
199
+ "div",
200
+ {
201
+ ...{
202
+ className: classes.bottomGradient.join(" ") + (!scroll.atBottom ? " opacity-100 visible" : " opacity-0 invisible"),
203
+ style: {
204
+ ...themed && {
205
+ backgroundImage: gradients.bottom
206
+ }
207
+ }
208
+ }
209
+ }
210
+ ),
211
+ showX && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
212
+ "div",
213
+ {
214
+ ...{
215
+ className: classes.rightGradient.join(" ") + (!scroll.atRight ? " opacity-100 visible" : " opacity-0 invisible"),
216
+ style: {
217
+ ...themed && {
218
+ backgroundImage: gradients.right
219
+ }
220
+ }
221
+ }
222
+ }
223
+ )
224
+ ] })
225
+ }
226
+ );
227
+ };
228
+ var wrapper_gradient_default = WrapperGradient;
229
+ // Annotate the CommonJS export names for ESM import in node:
230
+ 0 && (module.exports = {
231
+ useWrapperGradient
232
+ });
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ useWrapperGradient,
4
+ wrapper_gradient_default
5
+ } from "./chunk-XWELEL6Z.mjs";
6
+ export {
7
+ wrapper_gradient_default as default,
8
+ useWrapperGradient
9
+ };
package/package.json CHANGED
@@ -1,10 +1,322 @@
1
1
  {
2
2
  "name": "@drawbridge/components",
3
- "version": "0.0.39",
3
+ "version": "0.0.42",
4
4
  "exports": {
5
+ "./advertisement": {
6
+ "types": "./types/advertisement.d.ts",
7
+ "default": "./dist/advertisement.js"
8
+ },
5
9
  "./card-advertisement": {
6
10
  "types": "./types/card-advertisement.d.ts",
7
11
  "default": "./dist/card-advertisement.js"
12
+ },
13
+ "./embla": {
14
+ "types": "./types/embla.d.ts",
15
+ "default": "./dist/embla.js"
16
+ },
17
+ "./icons/arrow-down-tray": {
18
+ "types": "./types/icons/arrow-down-tray.d.ts",
19
+ "default": "./dist/icons/arrow-down-tray.js"
20
+ },
21
+ "./icons/arrow-left": {
22
+ "types": "./types/icons/arrow-left.d.ts",
23
+ "default": "./dist/icons/arrow-left.js"
24
+ },
25
+ "./icons/arrow-right": {
26
+ "types": "./types/icons/arrow-right.d.ts",
27
+ "default": "./dist/icons/arrow-right.js"
28
+ },
29
+ "./icons/arrow-up-tray": {
30
+ "types": "./types/icons/arrow-up-tray.d.ts",
31
+ "default": "./dist/icons/arrow-up-tray.js"
32
+ },
33
+ "./icons/bars-arrow-down": {
34
+ "types": "./types/icons/bars-arrow-down.d.ts",
35
+ "default": "./dist/icons/bars-arrow-down.js"
36
+ },
37
+ "./icons/bars-arrow-up": {
38
+ "types": "./types/icons/bars-arrow-up.d.ts",
39
+ "default": "./dist/icons/bars-arrow-up.js"
40
+ },
41
+ "./icons/bold": {
42
+ "types": "./types/icons/bold.d.ts",
43
+ "default": "./dist/icons/bold.js"
44
+ },
45
+ "./icons/bolt": {
46
+ "types": "./types/icons/bolt.d.ts",
47
+ "default": "./dist/icons/bolt.js"
48
+ },
49
+ "./icons/calendar": {
50
+ "types": "./types/icons/calendar.d.ts",
51
+ "default": "./dist/icons/calendar.js"
52
+ },
53
+ "./icons/cancel": {
54
+ "types": "./types/icons/cancel.d.ts",
55
+ "default": "./dist/icons/cancel.js"
56
+ },
57
+ "./icons/card": {
58
+ "types": "./types/icons/card.d.ts",
59
+ "default": "./dist/icons/card.js"
60
+ },
61
+ "./icons/chart": {
62
+ "types": "./types/icons/chart.d.ts",
63
+ "default": "./dist/icons/chart.js"
64
+ },
65
+ "./icons/check": {
66
+ "types": "./types/icons/check.d.ts",
67
+ "default": "./dist/icons/check.js"
68
+ },
69
+ "./icons/chevron-down": {
70
+ "types": "./types/icons/chevron-down.d.ts",
71
+ "default": "./dist/icons/chevron-down.js"
72
+ },
73
+ "./icons/chevron-left": {
74
+ "types": "./types/icons/chevron-left.d.ts",
75
+ "default": "./dist/icons/chevron-left.js"
76
+ },
77
+ "./icons/chevron-right": {
78
+ "types": "./types/icons/chevron-right.d.ts",
79
+ "default": "./dist/icons/chevron-right.js"
80
+ },
81
+ "./icons/chevron-up-down": {
82
+ "types": "./types/icons/chevron-up-down.d.ts",
83
+ "default": "./dist/icons/chevron-up-down.js"
84
+ },
85
+ "./icons/chevron-up": {
86
+ "types": "./types/icons/chevron-up.d.ts",
87
+ "default": "./dist/icons/chevron-up.js"
88
+ },
89
+ "./icons/clock": {
90
+ "types": "./types/icons/clock.d.ts",
91
+ "default": "./dist/icons/clock.js"
92
+ },
93
+ "./icons/code-bracket": {
94
+ "types": "./types/icons/code-bracket.d.ts",
95
+ "default": "./dist/icons/code-bracket.js"
96
+ },
97
+ "./icons/cog": {
98
+ "types": "./types/icons/cog.d.ts",
99
+ "default": "./dist/icons/cog.js"
100
+ },
101
+ "./icons/copy": {
102
+ "types": "./types/icons/copy.d.ts",
103
+ "default": "./dist/icons/copy.js"
104
+ },
105
+ "./icons/document": {
106
+ "types": "./types/icons/document.d.ts",
107
+ "default": "./dist/icons/document.js"
108
+ },
109
+ "./icons/download": {
110
+ "types": "./types/icons/download.d.ts",
111
+ "default": "./dist/icons/download.js"
112
+ },
113
+ "./icons/drag": {
114
+ "types": "./types/icons/drag.d.ts",
115
+ "default": "./dist/icons/drag.js"
116
+ },
117
+ "./icons/ellipsis": {
118
+ "types": "./types/icons/ellipsis.d.ts",
119
+ "default": "./dist/icons/ellipsis.js"
120
+ },
121
+ "./icons/email": {
122
+ "types": "./types/icons/email.d.ts",
123
+ "default": "./dist/icons/email.js"
124
+ },
125
+ "./icons/external": {
126
+ "types": "./types/icons/external.d.ts",
127
+ "default": "./dist/icons/external.js"
128
+ },
129
+ "./icons/filter": {
130
+ "types": "./types/icons/filter.d.ts",
131
+ "default": "./dist/icons/filter.js"
132
+ },
133
+ "./icons/flag": {
134
+ "types": "./types/icons/flag.d.ts",
135
+ "default": "./dist/icons/flag.js"
136
+ },
137
+ "./icons/google": {
138
+ "types": "./types/icons/google.d.ts",
139
+ "default": "./dist/icons/google.js"
140
+ },
141
+ "./icons/home": {
142
+ "types": "./types/icons/home.d.ts",
143
+ "default": "./dist/icons/home.js"
144
+ },
145
+ "./icons/image": {
146
+ "types": "./types/icons/image.d.ts",
147
+ "default": "./dist/icons/image.js"
148
+ },
149
+ "./icons/italic": {
150
+ "types": "./types/icons/italic.d.ts",
151
+ "default": "./dist/icons/italic.js"
152
+ },
153
+ "./icons/link": {
154
+ "types": "./types/icons/link.d.ts",
155
+ "default": "./dist/icons/link.js"
156
+ },
157
+ "./icons/loader": {
158
+ "types": "./types/icons/loader.d.ts",
159
+ "default": "./dist/icons/loader.js"
160
+ },
161
+ "./icons/lock": {
162
+ "types": "./types/icons/lock.d.ts",
163
+ "default": "./dist/icons/lock.js"
164
+ },
165
+ "./icons/logo-mark": {
166
+ "types": "./types/icons/logo-mark.d.ts",
167
+ "default": "./dist/icons/logo-mark.js"
168
+ },
169
+ "./icons/logo-tagline": {
170
+ "types": "./types/icons/logo-tagline.d.ts",
171
+ "default": "./dist/icons/logo-tagline.js"
172
+ },
173
+ "./icons/map-pin": {
174
+ "types": "./types/icons/map-pin.d.ts",
175
+ "default": "./dist/icons/map-pin.js"
176
+ },
177
+ "./icons/menu": {
178
+ "types": "./types/icons/menu.d.ts",
179
+ "default": "./dist/icons/menu.js"
180
+ },
181
+ "./icons/minus": {
182
+ "types": "./types/icons/minus.d.ts",
183
+ "default": "./dist/icons/minus.js"
184
+ },
185
+ "./icons/muted": {
186
+ "types": "./types/icons/muted.d.ts",
187
+ "default": "./dist/icons/muted.js"
188
+ },
189
+ "./icons/pause": {
190
+ "types": "./types/icons/pause.d.ts",
191
+ "default": "./dist/icons/pause.js"
192
+ },
193
+ "./icons/pencil": {
194
+ "types": "./types/icons/pencil.d.ts",
195
+ "default": "./dist/icons/pencil.js"
196
+ },
197
+ "./icons/play": {
198
+ "types": "./types/icons/play.d.ts",
199
+ "default": "./dist/icons/play.js"
200
+ },
201
+ "./icons/plus": {
202
+ "types": "./types/icons/plus.d.ts",
203
+ "default": "./dist/icons/plus.js"
204
+ },
205
+ "./icons/powered-by": {
206
+ "types": "./types/icons/powered-by.d.ts",
207
+ "default": "./dist/icons/powered-by.js"
208
+ },
209
+ "./icons/qr-code": {
210
+ "types": "./types/icons/qr-code.d.ts",
211
+ "default": "./dist/icons/qr-code.js"
212
+ },
213
+ "./icons/queue": {
214
+ "types": "./types/icons/queue.d.ts",
215
+ "default": "./dist/icons/queue.js"
216
+ },
217
+ "./icons/refresh": {
218
+ "types": "./types/icons/refresh.d.ts",
219
+ "default": "./dist/icons/refresh.js"
220
+ },
221
+ "./icons/refund": {
222
+ "types": "./types/icons/refund.d.ts",
223
+ "default": "./dist/icons/refund.js"
224
+ },
225
+ "./icons/rocket": {
226
+ "types": "./types/icons/rocket.d.ts",
227
+ "default": "./dist/icons/rocket.js"
228
+ },
229
+ "./icons/search": {
230
+ "types": "./types/icons/search.d.ts",
231
+ "default": "./dist/icons/search.js"
232
+ },
233
+ "./icons/share": {
234
+ "types": "./types/icons/share.d.ts",
235
+ "default": "./dist/icons/share.js"
236
+ },
237
+ "./icons/shop": {
238
+ "types": "./types/icons/shop.d.ts",
239
+ "default": "./dist/icons/shop.js"
240
+ },
241
+ "./icons/sparkles": {
242
+ "types": "./types/icons/sparkles.d.ts",
243
+ "default": "./dist/icons/sparkles.js"
244
+ },
245
+ "./icons/star": {
246
+ "types": "./types/icons/star.d.ts",
247
+ "default": "./dist/icons/star.js"
248
+ },
249
+ "./icons/switch": {
250
+ "types": "./types/icons/switch.d.ts",
251
+ "default": "./dist/icons/switch.js"
252
+ },
253
+ "./icons/times": {
254
+ "types": "./types/icons/times.d.ts",
255
+ "default": "./dist/icons/times.js"
256
+ },
257
+ "./icons/trash": {
258
+ "types": "./types/icons/trash.d.ts",
259
+ "default": "./dist/icons/trash.js"
260
+ },
261
+ "./icons/underline": {
262
+ "types": "./types/icons/underline.d.ts",
263
+ "default": "./dist/icons/underline.js"
264
+ },
265
+ "./icons/upload": {
266
+ "types": "./types/icons/upload.d.ts",
267
+ "default": "./dist/icons/upload.js"
268
+ },
269
+ "./icons/volume": {
270
+ "types": "./types/icons/volume.d.ts",
271
+ "default": "./dist/icons/volume.js"
272
+ },
273
+ "./icons/warning": {
274
+ "types": "./types/icons/warning.d.ts",
275
+ "default": "./dist/icons/warning.js"
276
+ },
277
+ "./input-checkbox": {
278
+ "types": "./types/input-checkbox.d.ts",
279
+ "default": "./dist/input-checkbox.js"
280
+ },
281
+ "./input-group": {
282
+ "types": "./types/input-group.d.ts",
283
+ "default": "./dist/input-group.js"
284
+ },
285
+ "./input-number": {
286
+ "types": "./types/input-number.d.ts",
287
+ "default": "./dist/input-number.js"
288
+ },
289
+ "./input-select": {
290
+ "types": "./types/input-select.d.ts",
291
+ "default": "./dist/input-select.js"
292
+ },
293
+ "./input-text": {
294
+ "types": "./types/input-text.d.ts",
295
+ "default": "./dist/input-text.js"
296
+ },
297
+ "./input-textarea": {
298
+ "types": "./types/input-textarea.d.ts",
299
+ "default": "./dist/input-textarea.js"
300
+ },
301
+ "./product": {
302
+ "types": "./types/product.d.ts",
303
+ "default": "./dist/product.js"
304
+ },
305
+ "./provider-font": {
306
+ "types": "./types/provider-font.d.ts",
307
+ "default": "./dist/provider-font.js"
308
+ },
309
+ "./styles": {
310
+ "types": "./types/styles.d.ts",
311
+ "default": "./dist/styles.js"
312
+ },
313
+ "./video": {
314
+ "types": "./types/video.d.ts",
315
+ "default": "./dist/video.js"
316
+ },
317
+ "./wrapper-gradient": {
318
+ "types": "./types/wrapper-gradient.d.ts",
319
+ "default": "./dist/wrapper-gradient.js"
8
320
  }
9
321
  },
10
322
  "files": [
@@ -32,6 +344,8 @@
32
344
  "tsup": "8.5.1"
33
345
  },
34
346
  "dependencies": {
35
- "@drawbridge/drawbridge-agents": "0.0.10"
347
+ "@drawbridge/drawbridge-agents": "0.0.10",
348
+ "embla-carousel-react": "8.6.0",
349
+ "react-player": "2.16.0"
36
350
  }
37
351
  }
@@ -0,0 +1,36 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { BrandStyle } from './styles';
3
+
4
+ export interface AdvertisementProps {
5
+ action?: 'add' | 'buy' | null;
6
+ affiliate?: string;
7
+ brand?: { style?: BrandStyle };
8
+ button?: string;
9
+ campaign?: string;
10
+ disabled?: boolean;
11
+ errors?: { variant?: ReactNode; root?: ReactNode };
12
+ file?: any;
13
+ fonts?: Record<string, unknown>;
14
+ header?: ReactNode;
15
+ id?: string;
16
+ ImageComponent?: ComponentType<any>;
17
+ lead?: string;
18
+ onAdd?: () => void;
19
+ onBuy?: () => void;
20
+ onClick?: () => void;
21
+ onVariantChange?: ( value: string ) => void;
22
+ onVariantSelect?: ( variant: any ) => void;
23
+ organization?: string;
24
+ page?: string;
25
+ preview?: boolean;
26
+ product?: any;
27
+ style?: BrandStyle;
28
+ title?: string;
29
+ url?: string;
30
+ variant?: string;
31
+ VideoComponent?: ComponentType<any>;
32
+ }
33
+
34
+ declare const Advertisement: ComponentType<AdvertisementProps>;
35
+
36
+ export default Advertisement;
@@ -0,0 +1,2 @@
1
+ export { default } from 'embla-carousel-react';
2
+ export * from 'embla-carousel-react';
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+
3
+ declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
+
5
+ export default Icon;