@drawbridge/components 0.0.45 → 0.0.47
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.
- package/dist/advertisement.js +273 -481
- package/dist/advertisement.mjs +153 -35
- package/dist/{chunk-JJH46E7B.mjs → chunk-3SAKIKZP.mjs} +3 -3
- package/dist/{chunk-BD3TDNJE.mjs → chunk-3SXAH7B7.mjs} +1 -1
- package/dist/{chunk-BZ6WMIH7.mjs → chunk-B6Y2SNRW.mjs} +1 -1
- package/dist/chunk-FJ7PKMAC.mjs +88 -0
- package/dist/{chunk-EKWIDBFA.mjs → chunk-V3RUI64W.mjs} +31 -13
- package/dist/input-checkbox.js +15 -5
- package/dist/input-checkbox.mjs +1 -1
- package/dist/input-group.js +3 -3
- package/dist/input-group.mjs +1 -1
- package/dist/input-name.js +18 -8
- package/dist/input-name.mjs +3 -3
- package/dist/input-number.js +15 -5
- package/dist/input-number.mjs +1 -1
- package/dist/input-phone.js +15 -5
- package/dist/input-phone.mjs +1 -1
- package/dist/input-select.js +15 -5
- package/dist/input-select.mjs +2 -2
- package/dist/input-text.js +15 -5
- package/dist/input-text.mjs +2 -2
- package/dist/input-textarea.js +15 -5
- package/dist/input-textarea.mjs +1 -1
- package/dist/product.js +49 -21
- package/dist/product.mjs +5 -5
- package/dist/styles.js +40 -45
- package/dist/styles.mjs +1 -1
- package/package.json +1 -5
- package/types/advertisement.d.ts +0 -1
- package/dist/card-advertisement.js +0 -377
- package/dist/card-advertisement.mjs +0 -6
- package/dist/chunk-FJXG3REN.mjs +0 -93
- package/dist/chunk-TJNIR4PF.mjs +0 -358
- package/types/card-advertisement.d.ts +0 -45
package/dist/input-select.js
CHANGED
|
@@ -52,13 +52,23 @@ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
|
52
52
|
var chevron_down_default = ChevronDown;
|
|
53
53
|
|
|
54
54
|
// components/styles.js
|
|
55
|
+
var WHITE = "rgb( 255, 255, 255 )";
|
|
56
|
+
var BLACK = "rgb( 0, 0, 0 )";
|
|
57
|
+
var bgColor = (style) => {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
60
|
+
};
|
|
61
|
+
var textColor = (style) => {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
64
|
+
};
|
|
55
65
|
var inputStyle = (style) => {
|
|
56
|
-
var _a
|
|
66
|
+
var _a;
|
|
57
67
|
return {
|
|
58
|
-
backgroundColor: (
|
|
59
|
-
borderColor: (
|
|
60
|
-
borderRadius: ((
|
|
61
|
-
color: (
|
|
68
|
+
backgroundColor: bgColor(style),
|
|
69
|
+
borderColor: textColor(style),
|
|
70
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
71
|
+
color: textColor(style)
|
|
62
72
|
};
|
|
63
73
|
};
|
|
64
74
|
|
package/dist/input-select.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
input_select_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3SXAH7B7.mjs";
|
|
5
5
|
import "./chunk-FYA7EAMR.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-FJ7PKMAC.mjs";
|
|
7
7
|
export {
|
|
8
8
|
input_select_default as default
|
|
9
9
|
};
|
package/dist/input-text.js
CHANGED
|
@@ -24,13 +24,23 @@ __export(input_text_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(input_text_exports);
|
|
25
25
|
|
|
26
26
|
// components/styles.js
|
|
27
|
+
var WHITE = "rgb( 255, 255, 255 )";
|
|
28
|
+
var BLACK = "rgb( 0, 0, 0 )";
|
|
29
|
+
var bgColor = (style) => {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
32
|
+
};
|
|
33
|
+
var textColor = (style) => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
36
|
+
};
|
|
27
37
|
var inputStyle = (style) => {
|
|
28
|
-
var _a
|
|
38
|
+
var _a;
|
|
29
39
|
return {
|
|
30
|
-
backgroundColor: (
|
|
31
|
-
borderColor: (
|
|
32
|
-
borderRadius: ((
|
|
33
|
-
color: (
|
|
40
|
+
backgroundColor: bgColor(style),
|
|
41
|
+
borderColor: textColor(style),
|
|
42
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
43
|
+
color: textColor(style)
|
|
34
44
|
};
|
|
35
45
|
};
|
|
36
46
|
|
package/dist/input-text.mjs
CHANGED
package/dist/input-textarea.js
CHANGED
|
@@ -24,13 +24,23 @@ __export(input_textarea_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(input_textarea_exports);
|
|
25
25
|
|
|
26
26
|
// components/styles.js
|
|
27
|
+
var WHITE = "rgb( 255, 255, 255 )";
|
|
28
|
+
var BLACK = "rgb( 0, 0, 0 )";
|
|
29
|
+
var bgColor = (style) => {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
32
|
+
};
|
|
33
|
+
var textColor = (style) => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
36
|
+
};
|
|
27
37
|
var inputStyle = (style) => {
|
|
28
|
-
var _a
|
|
38
|
+
var _a;
|
|
29
39
|
return {
|
|
30
|
-
backgroundColor: (
|
|
31
|
-
borderColor: (
|
|
32
|
-
borderRadius: ((
|
|
33
|
-
color: (
|
|
40
|
+
backgroundColor: bgColor(style),
|
|
41
|
+
borderColor: textColor(style),
|
|
42
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
43
|
+
color: textColor(style)
|
|
34
44
|
};
|
|
35
45
|
};
|
|
36
46
|
|
package/dist/input-textarea.mjs
CHANGED
package/dist/product.js
CHANGED
|
@@ -124,10 +124,10 @@ var InputGroup = ({
|
|
|
124
124
|
{
|
|
125
125
|
...{
|
|
126
126
|
className: "flex items-center justify-start space-x-2 py-1 rounded text-sm " + (error && "px-1.5"),
|
|
127
|
-
...error &&
|
|
127
|
+
...error && {
|
|
128
128
|
style: {
|
|
129
|
-
backgroundColor: (_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb.replace(")", ",.1)"),
|
|
130
|
-
color: (_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb
|
|
129
|
+
backgroundColor: (((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || "rgb( 0, 0, 0 )").replace(")", ",.1)"),
|
|
130
|
+
color: ((_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb) || "rgb( 0, 0, 0 )"
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
},
|
|
@@ -206,22 +206,32 @@ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
|
206
206
|
var chevron_down_default = ChevronDown;
|
|
207
207
|
|
|
208
208
|
// components/styles.js
|
|
209
|
+
var WHITE = "rgb( 255, 255, 255 )";
|
|
210
|
+
var BLACK = "rgb( 0, 0, 0 )";
|
|
211
|
+
var bgColor = (style) => {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
214
|
+
};
|
|
215
|
+
var textColor = (style) => {
|
|
216
|
+
var _a, _b;
|
|
217
|
+
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
218
|
+
};
|
|
209
219
|
var buttonStyle = (style) => {
|
|
210
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
220
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
211
221
|
return {
|
|
212
|
-
backgroundColor: ((_c = (_b = (_a = style == null ? void 0 : style.button) == null ? void 0 : _a.background) == null ? void 0 : _b.color) == null ? void 0 : _c.rgb) || (
|
|
213
|
-
borderColor: ((
|
|
214
|
-
borderRadius: ((
|
|
215
|
-
color: ((
|
|
222
|
+
backgroundColor: ((_c = (_b = (_a = style == null ? void 0 : style.button) == null ? void 0 : _a.background) == null ? void 0 : _b.color) == null ? void 0 : _c.rgb) || textColor(style),
|
|
223
|
+
borderColor: ((_f = (_e = (_d = style == null ? void 0 : style.button) == null ? void 0 : _d.background) == null ? void 0 : _e.color) == null ? void 0 : _f.rgb) || textColor(style),
|
|
224
|
+
borderRadius: ((_g = style == null ? void 0 : style.button) == null ? void 0 : _g.radius) != null ? style.button.radius / 4 + "px" : void 0,
|
|
225
|
+
color: ((_j = (_i = (_h = style == null ? void 0 : style.button) == null ? void 0 : _h.text) == null ? void 0 : _i.color) == null ? void 0 : _j.rgb) || bgColor(style)
|
|
216
226
|
};
|
|
217
227
|
};
|
|
218
228
|
var inputStyle = (style) => {
|
|
219
|
-
var _a
|
|
229
|
+
var _a;
|
|
220
230
|
return {
|
|
221
|
-
backgroundColor: (
|
|
222
|
-
borderColor: (
|
|
223
|
-
borderRadius: ((
|
|
224
|
-
color: (
|
|
231
|
+
backgroundColor: bgColor(style),
|
|
232
|
+
borderColor: textColor(style),
|
|
233
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
234
|
+
color: textColor(style)
|
|
225
235
|
};
|
|
226
236
|
};
|
|
227
237
|
|
|
@@ -659,7 +669,7 @@ var Product = ({
|
|
|
659
669
|
"div",
|
|
660
670
|
{
|
|
661
671
|
...{
|
|
662
|
-
className: "space-y-6
|
|
672
|
+
className: "space-y-6",
|
|
663
673
|
style: {
|
|
664
674
|
backgroundColor: resolved.background.color.rgb,
|
|
665
675
|
color: resolved.text.color.rgb
|
|
@@ -671,7 +681,10 @@ var Product = ({
|
|
|
671
681
|
"div",
|
|
672
682
|
{
|
|
673
683
|
...{
|
|
674
|
-
className: "flex items-center
|
|
684
|
+
className: "flex items-center " + (images.length > 1 ? "pr-12" : ""),
|
|
685
|
+
style: {
|
|
686
|
+
height: "12rem"
|
|
687
|
+
}
|
|
675
688
|
},
|
|
676
689
|
children: [
|
|
677
690
|
images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
@@ -717,20 +730,35 @@ var Product = ({
|
|
|
717
730
|
"div",
|
|
718
731
|
{
|
|
719
732
|
...{
|
|
720
|
-
|
|
721
|
-
|
|
733
|
+
// Dimensions are inline rather than Tailwind size utilities:
|
|
734
|
+
// those sizes live only in this package's dist, and a consuming
|
|
735
|
+
// app's Tailwind scan of node_modules can lag and drop them,
|
|
736
|
+
// silently collapsing the carousel. Inline styles are immune.
|
|
737
|
+
className: "overflow-hidden rounded-3xl m-auto",
|
|
738
|
+
ref: emblaRef,
|
|
739
|
+
style: {
|
|
740
|
+
width: "12rem",
|
|
741
|
+
height: "12rem"
|
|
742
|
+
}
|
|
722
743
|
},
|
|
723
744
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
724
745
|
"div",
|
|
725
746
|
{
|
|
726
747
|
...{
|
|
727
|
-
className: "flex
|
|
748
|
+
className: "flex",
|
|
749
|
+
style: {
|
|
750
|
+
height: "100%"
|
|
751
|
+
}
|
|
728
752
|
},
|
|
729
753
|
children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
730
754
|
"div",
|
|
731
755
|
{
|
|
732
756
|
...{
|
|
733
|
-
className: "min-w-0
|
|
757
|
+
className: "min-w-0 relative bg-gray-100",
|
|
758
|
+
style: {
|
|
759
|
+
flex: "0 0 100%",
|
|
760
|
+
height: "100%"
|
|
761
|
+
}
|
|
734
762
|
},
|
|
735
763
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
736
764
|
ImageComponent,
|
|
@@ -834,7 +862,7 @@ var Product = ({
|
|
|
834
862
|
"button",
|
|
835
863
|
{
|
|
836
864
|
...{
|
|
837
|
-
className: "button justify-center border",
|
|
865
|
+
className: "button justify-center border py-3 px-4 rounded",
|
|
838
866
|
disabled: disabled || Boolean(action),
|
|
839
867
|
onClick: onAdd,
|
|
840
868
|
style: inputStyle(resolved),
|
|
@@ -854,7 +882,7 @@ var Product = ({
|
|
|
854
882
|
"button",
|
|
855
883
|
{
|
|
856
884
|
...{
|
|
857
|
-
className: "button justify-center" + (addToCart ? "" : " w-full"),
|
|
885
|
+
className: "button justify-center py-3 px-4 rounded" + (addToCart ? "" : " w-full"),
|
|
858
886
|
disabled: disabled || Boolean(action),
|
|
859
887
|
onClick: onBuy,
|
|
860
888
|
style: buttonStyle(resolved),
|
package/dist/product.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
product_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-BD3TDNJE.mjs";
|
|
6
|
-
import "./chunk-FYA7EAMR.mjs";
|
|
4
|
+
} from "./chunk-V3RUI64W.mjs";
|
|
7
5
|
import "./chunk-2ZYGRSSA.mjs";
|
|
8
6
|
import "./chunk-XWELEL6Z.mjs";
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-3SAKIKZP.mjs";
|
|
10
8
|
import "./chunk-Q3UIVGPQ.mjs";
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3SXAH7B7.mjs";
|
|
10
|
+
import "./chunk-FYA7EAMR.mjs";
|
|
11
|
+
import "./chunk-FJ7PKMAC.mjs";
|
|
12
12
|
export {
|
|
13
13
|
product_default as default
|
|
14
14
|
};
|
package/dist/styles.js
CHANGED
|
@@ -33,35 +33,36 @@ __export(styles_exports, {
|
|
|
33
33
|
textStyle: () => textStyle
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(styles_exports);
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
36
|
+
var WHITE = "rgb( 255, 255, 255 )";
|
|
37
|
+
var BLACK = "rgb( 0, 0, 0 )";
|
|
38
|
+
var bgColor = (style) => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
42
41
|
};
|
|
43
|
-
var
|
|
42
|
+
var textColor = (style) => {
|
|
44
43
|
var _a, _b;
|
|
45
|
-
return
|
|
46
|
-
borderColor: (_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb
|
|
47
|
-
};
|
|
44
|
+
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
48
45
|
};
|
|
46
|
+
var backgroundStyle = (style) => ({
|
|
47
|
+
backgroundColor: bgColor(style),
|
|
48
|
+
color: textColor(style)
|
|
49
|
+
});
|
|
50
|
+
var borderStyle = (style) => ({
|
|
51
|
+
borderColor: textColor(style)
|
|
52
|
+
});
|
|
49
53
|
var buttonStyle = (style) => {
|
|
50
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
51
55
|
return {
|
|
52
|
-
backgroundColor: ((_c = (_b = (_a = style == null ? void 0 : style.button) == null ? void 0 : _a.background) == null ? void 0 : _b.color) == null ? void 0 : _c.rgb) || (
|
|
53
|
-
borderColor: ((
|
|
54
|
-
borderRadius: ((
|
|
55
|
-
color: ((
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
var closeStyle = (style) => {
|
|
59
|
-
var _a, _b, _c, _d;
|
|
60
|
-
return {
|
|
61
|
-
backgroundColor: (_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb,
|
|
62
|
-
color: (_d = (_c = style == null ? void 0 : style.background) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb
|
|
56
|
+
backgroundColor: ((_c = (_b = (_a = style == null ? void 0 : style.button) == null ? void 0 : _a.background) == null ? void 0 : _b.color) == null ? void 0 : _c.rgb) || textColor(style),
|
|
57
|
+
borderColor: ((_f = (_e = (_d = style == null ? void 0 : style.button) == null ? void 0 : _d.background) == null ? void 0 : _e.color) == null ? void 0 : _f.rgb) || textColor(style),
|
|
58
|
+
borderRadius: ((_g = style == null ? void 0 : style.button) == null ? void 0 : _g.radius) != null ? style.button.radius / 4 + "px" : void 0,
|
|
59
|
+
color: ((_j = (_i = (_h = style == null ? void 0 : style.button) == null ? void 0 : _h.text) == null ? void 0 : _i.color) == null ? void 0 : _j.rgb) || bgColor(style)
|
|
63
60
|
};
|
|
64
61
|
};
|
|
62
|
+
var closeStyle = (style) => ({
|
|
63
|
+
backgroundColor: textColor(style),
|
|
64
|
+
color: bgColor(style)
|
|
65
|
+
});
|
|
65
66
|
var headerStyle = (style) => {
|
|
66
67
|
var _a, _b, _c;
|
|
67
68
|
return {
|
|
@@ -71,12 +72,12 @@ var headerStyle = (style) => {
|
|
|
71
72
|
};
|
|
72
73
|
};
|
|
73
74
|
var inputStyle = (style) => {
|
|
74
|
-
var _a
|
|
75
|
+
var _a;
|
|
75
76
|
return {
|
|
76
|
-
backgroundColor: (
|
|
77
|
-
borderColor: (
|
|
78
|
-
borderRadius: ((
|
|
79
|
-
color: (
|
|
77
|
+
backgroundColor: bgColor(style),
|
|
78
|
+
borderColor: textColor(style),
|
|
79
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
80
|
+
color: textColor(style)
|
|
80
81
|
};
|
|
81
82
|
};
|
|
82
83
|
var inputCheckboxStyle = (style) => {
|
|
@@ -88,28 +89,22 @@ var inputCheckboxStyle = (style) => {
|
|
|
88
89
|
};
|
|
89
90
|
var inputNameStyle = (style) => inputStyle(style);
|
|
90
91
|
var inputPhoneStyle = (style) => inputStyle(style);
|
|
91
|
-
var menuStyle = (style) => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
color: (_f = (_e = style == null ? void 0 : style.text) == null ? void 0 : _e.color) == null ? void 0 : _f.rgb
|
|
97
|
-
};
|
|
98
|
-
};
|
|
92
|
+
var menuStyle = (style) => ({
|
|
93
|
+
backgroundColor: bgColor(style),
|
|
94
|
+
borderColor: textColor(style),
|
|
95
|
+
color: textColor(style)
|
|
96
|
+
});
|
|
99
97
|
var selectStyle = (style) => {
|
|
100
|
-
var _a
|
|
101
|
-
return {
|
|
102
|
-
borderColor: (_c = (_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) == null ? void 0 : _c.replace(")", ", 0.3)"),
|
|
103
|
-
borderRadius: ((_d = style == null ? void 0 : style.input) == null ? void 0 : _d.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
104
|
-
color: (_f = (_e = style == null ? void 0 : style.text) == null ? void 0 : _e.color) == null ? void 0 : _f.rgb
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
var textStyle = (style) => {
|
|
108
|
-
var _a, _b;
|
|
98
|
+
var _a;
|
|
109
99
|
return {
|
|
110
|
-
|
|
100
|
+
borderColor: textColor(style).replace(")", ", 0.3)"),
|
|
101
|
+
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
102
|
+
color: textColor(style)
|
|
111
103
|
};
|
|
112
104
|
};
|
|
105
|
+
var textStyle = (style) => ({
|
|
106
|
+
color: textColor(style)
|
|
107
|
+
});
|
|
113
108
|
// Annotate the CommonJS export names for ESM import in node:
|
|
114
109
|
0 && (module.exports = {
|
|
115
110
|
backgroundStyle,
|
package/dist/styles.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./advertisement": {
|
|
6
6
|
"types": "./types/advertisement.d.ts",
|
|
7
7
|
"default": "./dist/advertisement.js"
|
|
8
8
|
},
|
|
9
|
-
"./card-advertisement": {
|
|
10
|
-
"types": "./types/card-advertisement.d.ts",
|
|
11
|
-
"default": "./dist/card-advertisement.js"
|
|
12
|
-
},
|
|
13
9
|
"./embla": {
|
|
14
10
|
"types": "./types/embla.d.ts",
|
|
15
11
|
"default": "./dist/embla.js"
|
package/types/advertisement.d.ts
CHANGED