@drawbridge/components 0.0.52 → 0.0.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawbridge/components",
3
- "version": "0.0.52",
3
+ "version": "0.0.55",
4
4
  "exports": {
5
5
  "./advertisement": {
6
6
  "types": "./types/advertisement.d.ts",
@@ -10,6 +10,10 @@
10
10
  "types": "./types/embla.d.ts",
11
11
  "default": "./dist/embla.js"
12
12
  },
13
+ "./embla-fade": {
14
+ "types": "./types/embla-fade.d.ts",
15
+ "default": "./dist/embla-fade.js"
16
+ },
13
17
  "./icons/arrow-down-tray": {
14
18
  "types": "./types/icons/arrow-down-tray.d.ts",
15
19
  "default": "./dist/icons/arrow-down-tray.js"
@@ -278,6 +282,10 @@
278
282
  "types": "./types/input-group.d.ts",
279
283
  "default": "./dist/input-group.js"
280
284
  },
285
+ "./input-group-error": {
286
+ "types": "./types/input-group-error.d.ts",
287
+ "default": "./dist/input-group-error.js"
288
+ },
281
289
  "./input-name": {
282
290
  "types": "./types/input-name.d.ts",
283
291
  "default": "./dist/input-name.js"
@@ -349,6 +357,7 @@
349
357
  },
350
358
  "dependencies": {
351
359
  "@drawbridge/drawbridge-agents": "0.0.10",
360
+ "embla-carousel-fade": "8.6.0",
352
361
  "embla-carousel-react": "8.6.0",
353
362
  "react-player": "2.16.0",
354
363
  "react-phone-number-input": "3.4.12"
@@ -0,0 +1,2 @@
1
+ export { default } from 'embla-carousel-fade';
2
+ export * from 'embla-carousel-fade';
@@ -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;
@@ -1,117 +0,0 @@
1
- import {
2
- warning_default
3
- } from "./chunk-Q3UIVGPQ.mjs";
4
-
5
- // components/input-group.js
6
- import { Fragment } from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- var InputGroup = ({
9
- className,
10
- error,
11
- input,
12
- label,
13
- message,
14
- style = {},
15
- ...rest
16
- }) => {
17
- var _a, _b, _c, _d;
18
- const classes = [
19
- "input-group"
20
- ];
21
- if (className) {
22
- classes.push(className);
23
- }
24
- if (error) {
25
- classes.push("error");
26
- }
27
- return /* @__PURE__ */ jsxs(
28
- "div",
29
- {
30
- ...{
31
- className: classes.join(" "),
32
- "aria-live": "polite",
33
- ...(rest == null ? void 0 : rest["data-guide"]) && {
34
- "data-guide": rest["data-guide"]
35
- }
36
- },
37
- children: [
38
- label ? /* @__PURE__ */ jsxs(
39
- "div",
40
- {
41
- ...{
42
- className: "space-y-2"
43
- },
44
- children: [
45
- /* @__PURE__ */ jsx(
46
- "span",
47
- {
48
- ...{
49
- className: "block"
50
- },
51
- children: label
52
- }
53
- ),
54
- input
55
- ]
56
- }
57
- ) : input,
58
- (error || message) && /* @__PURE__ */ jsxs(
59
- "p",
60
- {
61
- ...{
62
- className: "flex items-center justify-start space-x-2 py-1 rounded text-sm " + (error && "px-1.5"),
63
- ...error && {
64
- style: {
65
- 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)"),
66
- color: ((_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb) || "rgb( 0, 0, 0 )"
67
- }
68
- }
69
- },
70
- children: [
71
- error && /* @__PURE__ */ jsxs(Fragment, { children: [
72
- /* @__PURE__ */ jsx(
73
- warning_default,
74
- {
75
- ...{
76
- className: "w-4 h-4",
77
- "aria-hidden": true
78
- }
79
- }
80
- ),
81
- /* @__PURE__ */ jsxs(
82
- "span",
83
- {
84
- ...{
85
- className: "text-[0px] opacity-0 w-0 h-0 absolute"
86
- },
87
- children: [
88
- label,
89
- ": ",
90
- error
91
- ]
92
- }
93
- )
94
- ] }),
95
- /* @__PURE__ */ jsx(
96
- "span",
97
- {
98
- ...{
99
- ...error && {
100
- "aria-hidden": true
101
- }
102
- },
103
- children: error || message
104
- }
105
- )
106
- ]
107
- }
108
- )
109
- ]
110
- }
111
- );
112
- };
113
- var input_group_default = InputGroup;
114
-
115
- export {
116
- input_group_default
117
- };