@drawbridge/components 0.0.51 → 0.0.53

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/product.js CHANGED
@@ -38,7 +38,7 @@ var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
38
38
  var import_cdn = require("@drawbridge/shopify/cdn");
39
39
  var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
40
40
 
41
- // components/input-group.js
41
+ // components/input-group-error.js
42
42
  var import_react = require("react");
43
43
 
44
44
  // components/icons/warning.js
@@ -67,8 +67,86 @@ var Warning = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
67
  );
68
68
  var warning_default = Warning;
69
69
 
70
- // components/input-group.js
70
+ // components/input-group-error.js
71
71
  var import_jsx_runtime2 = require("react/jsx-runtime");
72
+ var InputGroupError = ({
73
+ className,
74
+ error,
75
+ label,
76
+ message,
77
+ style = {}
78
+ }) => {
79
+ var _a, _b, _c, _d;
80
+ if (!(error || message)) {
81
+ return null;
82
+ }
83
+ const classes = [
84
+ "flex items-center justify-start space-x-2 py-1 rounded text-sm"
85
+ ];
86
+ if (error) {
87
+ classes.push("px-1.5");
88
+ }
89
+ if (className) {
90
+ classes.push(className);
91
+ }
92
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
93
+ "p",
94
+ {
95
+ ...{
96
+ className: classes.join(" "),
97
+ ...error && {
98
+ style: {
99
+ 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)"),
100
+ color: ((_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb) || "rgb( 0, 0, 0 )"
101
+ }
102
+ }
103
+ },
104
+ children: [
105
+ error && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react.Fragment, { children: [
106
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
107
+ warning_default,
108
+ {
109
+ ...{
110
+ className: "w-4 h-4",
111
+ "aria-hidden": true
112
+ }
113
+ }
114
+ ),
115
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
116
+ "span",
117
+ {
118
+ ...{
119
+ className: "text-[0px] opacity-0 w-0 h-0 absolute"
120
+ },
121
+ children: [
122
+ label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react.Fragment, { children: [
123
+ label,
124
+ ": "
125
+ ] }) : null,
126
+ error
127
+ ]
128
+ }
129
+ )
130
+ ] }),
131
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
132
+ "span",
133
+ {
134
+ ...{
135
+ ...error && {
136
+ "aria-hidden": true
137
+ }
138
+ },
139
+ children: error || message
140
+ }
141
+ )
142
+ ]
143
+ }
144
+ );
145
+ };
146
+ var input_group_error_default = InputGroupError;
147
+
148
+ // components/input-group.js
149
+ var import_jsx_runtime3 = require("react/jsx-runtime");
72
150
  var InputGroup = ({
73
151
  className,
74
152
  error,
@@ -78,7 +156,6 @@ var InputGroup = ({
78
156
  style = {},
79
157
  ...rest
80
158
  }) => {
81
- var _a, _b, _c, _d;
82
159
  const classes = [
83
160
  "input-group"
84
161
  ];
@@ -88,7 +165,7 @@ var InputGroup = ({
88
165
  if (error) {
89
166
  classes.push("error");
90
167
  }
91
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
168
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
92
169
  "div",
93
170
  {
94
171
  ...{
@@ -99,14 +176,14 @@ var InputGroup = ({
99
176
  }
100
177
  },
101
178
  children: [
102
- label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
179
+ label ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
103
180
  "div",
104
181
  {
105
182
  ...{
106
183
  className: "space-y-2"
107
184
  },
108
185
  children: [
109
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
186
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
110
187
  "span",
111
188
  {
112
189
  ...{
@@ -119,55 +196,15 @@ var InputGroup = ({
119
196
  ]
120
197
  }
121
198
  ) : input,
122
- (error || message) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
123
- "p",
199
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
200
+ input_group_error_default,
124
201
  {
125
202
  ...{
126
- className: "flex items-center justify-start space-x-2 py-1 rounded text-sm " + (error && "px-1.5"),
127
- ...error && {
128
- style: {
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
- }
132
- }
133
- },
134
- children: [
135
- error && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react.Fragment, { children: [
136
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
137
- warning_default,
138
- {
139
- ...{
140
- className: "w-4 h-4",
141
- "aria-hidden": true
142
- }
143
- }
144
- ),
145
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
146
- "span",
147
- {
148
- ...{
149
- className: "text-[0px] opacity-0 w-0 h-0 absolute"
150
- },
151
- children: [
152
- label,
153
- ": ",
154
- error
155
- ]
156
- }
157
- )
158
- ] }),
159
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
160
- "span",
161
- {
162
- ...{
163
- ...error && {
164
- "aria-hidden": true
165
- }
166
- },
167
- children: error || message
168
- }
169
- )
170
- ]
203
+ error,
204
+ label,
205
+ message,
206
+ style
207
+ }
171
208
  }
172
209
  )
173
210
  ]
@@ -180,8 +217,8 @@ var input_group_default = InputGroup;
180
217
  var import_react2 = require("react");
181
218
 
182
219
  // components/icons/chevron-down.js
183
- var import_jsx_runtime3 = require("react/jsx-runtime");
184
- var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
220
+ var import_jsx_runtime4 = require("react/jsx-runtime");
221
+ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
185
222
  "svg",
186
223
  {
187
224
  ...{
@@ -191,7 +228,7 @@ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
191
228
  viewBox: "0 0 24 24",
192
229
  ...props
193
230
  },
194
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
231
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
195
232
  "path",
196
233
  {
197
234
  ...{
@@ -236,7 +273,7 @@ var inputStyle = (style) => {
236
273
  };
237
274
 
238
275
  // components/input-select.js
239
- var import_jsx_runtime4 = require("react/jsx-runtime");
276
+ var import_jsx_runtime5 = require("react/jsx-runtime");
240
277
  var InputSelect = ({
241
278
  onChange,
242
279
  options = [],
@@ -257,14 +294,14 @@ var InputSelect = ({
257
294
  window.removeEventListener("mousedown", click);
258
295
  };
259
296
  }, []);
260
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
297
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
261
298
  "div",
262
299
  {
263
300
  ...{
264
301
  className: "relative"
265
302
  },
266
303
  children: [
267
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
304
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
268
305
  "select",
269
306
  {
270
307
  ...{
@@ -275,7 +312,7 @@ var InputSelect = ({
275
312
  value
276
313
  },
277
314
  children: [
278
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
315
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
279
316
  "option",
280
317
  {
281
318
  ...{
@@ -286,7 +323,7 @@ var InputSelect = ({
286
323
  children: "Select"
287
324
  }
288
325
  ),
289
- options.map(({ label, option, value: optValue }, key) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
326
+ options.map(({ label, option, value: optValue }, key) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
290
327
  "option",
291
328
  {
292
329
  ...{
@@ -299,14 +336,14 @@ var InputSelect = ({
299
336
  ]
300
337
  }
301
338
  ),
302
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
339
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
303
340
  "div",
304
341
  {
305
342
  ...{
306
343
  "aria-hidden": true,
307
344
  className: "h-full flex items-center absolute inset-y-0 right-0 pointer-events-none px-2.5"
308
345
  },
309
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
346
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
310
347
  chevron_down_default,
311
348
  {
312
349
  ...{
@@ -324,7 +361,7 @@ var input_select_default = InputSelect;
324
361
 
325
362
  // components/wrapper-gradient.js
326
363
  var import_react3 = require("react");
327
- var import_jsx_runtime5 = require("react/jsx-runtime");
364
+ var import_jsx_runtime6 = require("react/jsx-runtime");
328
365
  var WrapperGradientContext = (0, import_react3.createContext)(null);
329
366
  var WrapperGradient = ({
330
367
  children,
@@ -447,14 +484,14 @@ var WrapperGradient = ({
447
484
  }),
448
485
  [scroll.atBottom, scroll.atRight]
449
486
  );
450
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
487
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
451
488
  "div",
452
489
  {
453
490
  ...{
454
491
  className: classes.container.join(" ")
455
492
  },
456
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(WrapperGradientContext.Provider, { value: contextValue, children: [
457
- showY && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
493
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(WrapperGradientContext.Provider, { value: contextValue, children: [
494
+ showY && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
458
495
  "div",
459
496
  {
460
497
  ...{
@@ -470,7 +507,7 @@ var WrapperGradient = ({
470
507
  }
471
508
  }
472
509
  ),
473
- showX && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
510
+ showX && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
474
511
  "div",
475
512
  {
476
513
  ...{
@@ -483,7 +520,7 @@ var WrapperGradient = ({
483
520
  }
484
521
  }
485
522
  ),
486
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
523
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
487
524
  "div",
488
525
  {
489
526
  ...{
@@ -493,7 +530,7 @@ var WrapperGradient = ({
493
530
  children
494
531
  }
495
532
  ),
496
- showY && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
533
+ showY && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
497
534
  "div",
498
535
  {
499
536
  ...{
@@ -506,7 +543,7 @@ var WrapperGradient = ({
506
543
  }
507
544
  }
508
545
  ),
509
- showX && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
546
+ showX && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
510
547
  "div",
511
548
  {
512
549
  ...{
@@ -526,8 +563,8 @@ var WrapperGradient = ({
526
563
  var wrapper_gradient_default = WrapperGradient;
527
564
 
528
565
  // components/icons/loader.js
529
- var import_jsx_runtime6 = require("react/jsx-runtime");
530
- var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
566
+ var import_jsx_runtime7 = require("react/jsx-runtime");
567
+ var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
531
568
  "svg",
532
569
  {
533
570
  ...{
@@ -539,7 +576,7 @@ var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime
539
576
  ...props
540
577
  },
541
578
  children: [
542
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
579
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
543
580
  "circle",
544
581
  {
545
582
  ...{
@@ -552,7 +589,7 @@ var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime
552
589
  }
553
590
  }
554
591
  ),
555
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
592
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
556
593
  "path",
557
594
  {
558
595
  ...{
@@ -568,8 +605,8 @@ var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime
568
605
  var loader_default = Loader;
569
606
 
570
607
  // components/product.js
571
- var import_jsx_runtime7 = require("react/jsx-runtime");
572
- var DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
608
+ var import_jsx_runtime8 = require("react/jsx-runtime");
609
+ var DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
573
610
  "img",
574
611
  {
575
612
  ...{
@@ -666,7 +703,7 @@ var Product = ({
666
703
  }
667
704
  ;
668
705
  };
669
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
706
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
670
707
  "div",
671
708
  {
672
709
  ...{
@@ -678,7 +715,7 @@ var Product = ({
678
715
  },
679
716
  children: [
680
717
  header,
681
- images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
718
+ images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
682
719
  "div",
683
720
  {
684
721
  ...{
@@ -688,14 +725,14 @@ var Product = ({
688
725
  }
689
726
  },
690
727
  children: [
691
- images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
728
+ images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
692
729
  wrapper_gradient_default,
693
730
  {
694
731
  ...{
695
732
  classNameScroll: "flex flex-col w-12 h-48 space-y-3",
696
733
  color: resolved.background.color.rgb
697
734
  },
698
- children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
735
+ children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
699
736
  "button",
700
737
  {
701
738
  ...{
@@ -707,7 +744,7 @@ var Product = ({
707
744
  },
708
745
  type: "button"
709
746
  },
710
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
747
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
711
748
  ImageComponent,
712
749
  {
713
750
  ...{
@@ -731,7 +768,7 @@ var Product = ({
731
768
  ))
732
769
  }
733
770
  ),
734
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
771
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
735
772
  "div",
736
773
  {
737
774
  ...{
@@ -746,7 +783,7 @@ var Product = ({
746
783
  height: "12rem"
747
784
  }
748
785
  },
749
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
786
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
750
787
  "div",
751
788
  {
752
789
  ...{
@@ -755,7 +792,7 @@ var Product = ({
755
792
  height: "100%"
756
793
  }
757
794
  },
758
- children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
795
+ children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
759
796
  "div",
760
797
  {
761
798
  ...{
@@ -765,7 +802,7 @@ var Product = ({
765
802
  height: "100%"
766
803
  }
767
804
  },
768
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
805
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
769
806
  ImageComponent,
770
807
  {
771
808
  ...{
@@ -788,14 +825,14 @@ var Product = ({
788
825
  ]
789
826
  }
790
827
  ),
791
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
828
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
792
829
  "div",
793
830
  {
794
831
  ...{
795
832
  className: "text-center space-y-2"
796
833
  },
797
834
  children: [
798
- (product == null ? void 0 : product.title) && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
835
+ (product == null ? void 0 : product.title) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
799
836
  "h2",
800
837
  {
801
838
  ...{
@@ -809,38 +846,30 @@ var Product = ({
809
846
  children: product == null ? void 0 : product.title
810
847
  }
811
848
  ),
812
- !available.length ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: "Unavailable" }) : (selectedVariant == null ? void 0 : selectedVariant.price) && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: (0, import_drawbridge_utils.formatCurrency)({
849
+ !available.length ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "Unavailable" }) : (selectedVariant == null ? void 0 : selectedVariant.price) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: (0, import_drawbridge_utils.formatCurrency)({
813
850
  code: selectedVariant.currency,
814
851
  display: "parts",
815
852
  value: selectedVariant.price
816
853
  }) }),
817
- (product == null ? void 0 : product.description) && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
854
+ (product == null ? void 0 : product.description) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
818
855
  wrapper_gradient_default,
819
856
  {
820
857
  ...{
821
858
  classNameScroll: "max-h-[4.5em]",
822
859
  color: resolved.background.color.rgb
823
860
  },
824
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
825
- "p",
826
- {
827
- ...{
828
- className: "text-sm"
829
- },
830
- children: product.description
831
- }
832
- )
861
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: product.description })
833
862
  }
834
863
  )
835
864
  ]
836
865
  }
837
866
  ),
838
- available.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
867
+ available.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
839
868
  input_group_default,
840
869
  {
841
870
  ...{
842
871
  error: errors == null ? void 0 : errors.variant,
843
- input: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
872
+ input: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
844
873
  input_select_default,
845
874
  {
846
875
  ...{
@@ -859,19 +888,19 @@ var Product = ({
859
888
  }
860
889
  }
861
890
  ),
862
- available.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
891
+ available.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
863
892
  input_group_default,
864
893
  {
865
894
  ...{
866
895
  error: errors == null ? void 0 : errors.root,
867
- input: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
896
+ input: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
868
897
  "div",
869
898
  {
870
899
  ...{
871
- className: addToCart ? "grid grid-cols-2 gap-4" : ""
900
+ className: addToCart ? "grid grid-cols-2 gap-5" : ""
872
901
  },
873
902
  children: [
874
- addToCart && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
903
+ addToCart && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
875
904
  "button",
876
905
  {
877
906
  ...{
@@ -881,7 +910,7 @@ var Product = ({
881
910
  style: inputStyle(resolved),
882
911
  type: "button"
883
912
  },
884
- children: action === "add" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
913
+ children: action === "add" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
885
914
  loader_default,
886
915
  {
887
916
  ...{
@@ -891,7 +920,7 @@ var Product = ({
891
920
  ) : "Add to cart"
892
921
  }
893
922
  ),
894
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
923
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
895
924
  "button",
896
925
  {
897
926
  ...{
@@ -901,7 +930,7 @@ var Product = ({
901
930
  style: buttonStyle(resolved),
902
931
  type: "button"
903
932
  },
904
- children: action === "buy" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
933
+ children: action === "buy" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
905
934
  loader_default,
906
935
  {
907
936
  ...{
package/dist/product.mjs CHANGED
@@ -1,13 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  product_default
4
- } from "./chunk-NFF5ANXM.mjs";
4
+ } from "./chunk-ASHP6LV5.mjs";
5
+ import "./chunk-3SXAH7B7.mjs";
6
+ import "./chunk-FYA7EAMR.mjs";
5
7
  import "./chunk-2ZYGRSSA.mjs";
6
8
  import "./chunk-XWELEL6Z.mjs";
7
- import "./chunk-3SAKIKZP.mjs";
9
+ import "./chunk-DNK33H3K.mjs";
10
+ import "./chunk-OHJMWJAQ.mjs";
8
11
  import "./chunk-Q3UIVGPQ.mjs";
9
- import "./chunk-3SXAH7B7.mjs";
10
- import "./chunk-FYA7EAMR.mjs";
11
12
  import "./chunk-FJ7PKMAC.mjs";
12
13
  export {
13
14
  product_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawbridge/components",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "exports": {
5
5
  "./advertisement": {
6
6
  "types": "./types/advertisement.d.ts",
@@ -278,6 +278,10 @@
278
278
  "types": "./types/input-group.d.ts",
279
279
  "default": "./dist/input-group.js"
280
280
  },
281
+ "./input-group-error": {
282
+ "types": "./types/input-group-error.d.ts",
283
+ "default": "./dist/input-group-error.js"
284
+ },
281
285
  "./input-name": {
282
286
  "types": "./types/input-name.d.ts",
283
287
  "default": "./dist/input-name.js"
@@ -0,0 +1,14 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { BrandStyle } from './styles';
3
+
4
+ export interface InputGroupErrorProps {
5
+ className?: string;
6
+ error?: ReactNode;
7
+ label?: ReactNode;
8
+ message?: ReactNode;
9
+ style?: BrandStyle;
10
+ }
11
+
12
+ declare const InputGroupError: ComponentType<InputGroupErrorProps>;
13
+
14
+ export default InputGroupError;