@adam-milo/ui 1.0.33 → 1.0.34
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/index.cjs +1 -1
- package/dist/index.js +57 -23
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +94 -56
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +199 -40
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +305 -105
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +260 -74
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +135 -27
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +52 -469
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +57 -111
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +101 -20
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +76 -21
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +25 -29
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +6 -4
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +468 -31
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +155 -39
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +16 -27
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -12
- package/dist/index24.cjs +1 -0
- package/dist/index24.js +46 -0
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +80 -263
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +52 -13
- package/dist/index27.cjs +1 -0
- package/dist/index27.js +45 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.js +53 -0
- package/dist/index29.cjs +1 -0
- package/dist/index29.js +55 -0
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +33 -33
- package/dist/index30.cjs +1 -0
- package/dist/index30.js +72 -0
- package/dist/index31.cjs +1 -0
- package/dist/index31.js +14 -0
- package/dist/index32.cjs +1 -0
- package/dist/index32.js +332 -0
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +383 -6
- package/dist/index37.cjs +1 -0
- package/dist/index37.js +16 -0
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +59 -11
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +19 -35
- package/dist/index50.cjs +1 -0
- package/dist/index50.js +9 -0
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +11 -101
- package/dist/index62.cjs +1 -0
- package/dist/index62.js +502 -0
- package/dist/index64.cjs +1 -0
- package/dist/index64.js +11 -0
- package/dist/index65.cjs +1 -0
- package/dist/index65.js +39 -0
- package/dist/index66.cjs +1 -0
- package/dist/index66.js +64 -0
- package/dist/index67.cjs +1 -0
- package/dist/index67.js +212 -0
- package/dist/index68.cjs +1 -0
- package/dist/index68.js +14 -0
- package/dist/index69.cjs +1 -0
- package/dist/index69.js +293 -0
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +46 -97
- package/dist/index70.cjs +1 -0
- package/dist/index70.js +18 -0
- package/dist/index71.cjs +1 -0
- package/dist/index71.js +129 -0
- package/dist/index72.cjs +1 -0
- package/dist/index72.js +43 -0
- package/dist/index73.cjs +1 -0
- package/dist/index73.js +99 -0
- package/dist/index74.cjs +1 -0
- package/dist/index74.js +71 -0
- package/dist/index75.cjs +1 -0
- package/dist/index75.js +36 -0
- package/dist/index76.cjs +1 -0
- package/dist/index76.js +14 -0
- package/dist/index77.cjs +1 -0
- package/dist/index77.js +17 -0
- package/dist/index78.cjs +1 -0
- package/dist/index78.js +6 -0
- package/dist/index79.cjs +1 -0
- package/dist/index79.js +297 -0
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +97 -88
- package/dist/index80.cjs +1 -0
- package/dist/index80.js +25 -0
- package/dist/index81.cjs +1 -0
- package/dist/index81.js +39 -0
- package/dist/index82.cjs +1 -0
- package/dist/index82.js +625 -0
- package/dist/index83.cjs +1 -0
- package/dist/index83.js +721 -0
- package/dist/index84.cjs +1 -0
- package/dist/index84.js +154 -0
- package/dist/index85.cjs +1 -0
- package/dist/index85.js +173 -0
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +55 -197
- package/dist/src/components/core/button/Button.component.d.ts +13 -7
- package/dist/src/components/core/button/Button.component.d.ts.map +1 -1
- package/dist/src/components/core/icon/Icon.component.d.ts +1 -1
- package/dist/src/components/core/icon/Icon.component.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.component.d.ts +36 -0
- package/dist/src/components/core/icon-button/IconButton.component.d.ts.map +1 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts +79 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts.map +1 -0
- package/dist/src/components/feedback/spinner/Spinner.component.d.ts +62 -0
- package/dist/src/components/feedback/spinner/Spinner.component.d.ts.map +1 -0
- package/dist/src/components/forms/input/Input.component.d.ts +5 -0
- package/dist/src/components/forms/input/Input.component.d.ts.map +1 -1
- package/dist/src/components/forms/otp-input/OTPInput.component.d.ts +82 -0
- package/dist/src/components/forms/otp-input/OTPInput.component.d.ts.map +1 -0
- package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts +96 -0
- package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts.map +1 -0
- package/dist/src/components/forms/phone-input/countries.d.ts +93 -0
- package/dist/src/components/forms/phone-input/countries.d.ts.map +1 -0
- package/dist/src/components/forms/select/Select.component.d.ts +5 -1
- package/dist/src/components/forms/select/Select.component.d.ts.map +1 -1
- package/dist/src/components/forms/toggle/Toggle.component.d.ts +80 -0
- package/dist/src/components/forms/toggle/Toggle.component.d.ts.map +1 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts +86 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts.map +1 -0
- package/dist/src/components/overlays/dialog/Dialog.component.d.ts +36 -2
- package/dist/src/components/overlays/dialog/Dialog.component.d.ts.map +1 -1
- package/dist/src/components/typography/heading/Heading.component.d.ts +3 -2
- package/dist/src/components/typography/heading/Heading.component.d.ts.map +1 -1
- package/dist/src/components/typography/link/Link.component.d.ts +80 -0
- package/dist/src/components/typography/link/Link.component.d.ts.map +1 -0
- package/dist/src/index.d.ts +22 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
- /package/dist/{index44.cjs → index61.cjs} +0 -0
- /package/dist/{index44.js → index61.js} +0 -0
package/dist/index21.js
CHANGED
|
@@ -1,53 +1,169 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import { cn } from "./index31.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { Icon } from "@adam-milo/icons";
|
|
7
|
+
const Dialog = DialogPrimitive.Root;
|
|
8
|
+
const DialogTrigger = DialogPrimitive.Trigger;
|
|
9
|
+
const DialogPortal = DialogPrimitive.Portal;
|
|
10
|
+
const DialogClose = DialogPrimitive.Close;
|
|
11
|
+
const DialogCloseButton = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
|
|
12
|
+
const finalDataCy = dataCy || "dialog-close-button";
|
|
13
|
+
const finalTestId = dataTestId || "dialog-close-button";
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
DialogPrimitive.Close,
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
className: cn("dialog-close-button", className),
|
|
19
|
+
"data-cy": finalDataCy,
|
|
20
|
+
"data-testid": finalTestId,
|
|
21
|
+
"aria-label": "Close dialog",
|
|
22
|
+
...props,
|
|
23
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "Cross2Icon", size: "sm", decorative: true })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
DialogCloseButton.displayName = "DialogCloseButton";
|
|
28
|
+
const DialogIcon = ({
|
|
29
|
+
children,
|
|
30
|
+
variant = "default",
|
|
31
|
+
className,
|
|
32
|
+
"data-cy": dataCy,
|
|
33
|
+
"data-testid": dataTestId,
|
|
34
|
+
...props
|
|
35
|
+
}) => {
|
|
36
|
+
const finalDataCy = dataCy || "dialog-icon";
|
|
37
|
+
const finalTestId = dataTestId || "dialog-icon";
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: cn("dialog-icon", `dialog-icon--${variant}`, className),
|
|
42
|
+
"data-cy": finalDataCy,
|
|
43
|
+
"data-testid": finalTestId,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
...props,
|
|
46
|
+
children
|
|
47
|
+
}
|
|
48
|
+
);
|
|
11
49
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
].filter(Boolean).join(" ");
|
|
36
|
-
const Tag = `h${level}`;
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
Tag,
|
|
50
|
+
DialogIcon.displayName = "DialogIcon";
|
|
51
|
+
const DialogOverlay = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
|
|
52
|
+
const finalDataCy = dataCy || "dialog-overlay";
|
|
53
|
+
const finalTestId = dataTestId || "dialog-overlay";
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
DialogPrimitive.Overlay,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn("dialog-overlay", className),
|
|
59
|
+
"data-cy": finalDataCy,
|
|
60
|
+
"data-testid": finalTestId,
|
|
61
|
+
...props
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
});
|
|
65
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
66
|
+
const DialogContent = forwardRef(({ className, children, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
|
|
67
|
+
const finalDataCy = dataCy || "dialog-content";
|
|
68
|
+
const finalTestId = dataTestId || "dialog-content";
|
|
69
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
70
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
DialogPrimitive.Content,
|
|
39
73
|
{
|
|
40
74
|
ref,
|
|
41
|
-
className:
|
|
75
|
+
className: cn("dialog-content", className),
|
|
42
76
|
"data-cy": finalDataCy,
|
|
43
|
-
"data-testid":
|
|
77
|
+
"data-testid": finalTestId,
|
|
44
78
|
...props,
|
|
45
79
|
children
|
|
46
80
|
}
|
|
81
|
+
)
|
|
82
|
+
] });
|
|
83
|
+
});
|
|
84
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
85
|
+
const DialogHeader = ({
|
|
86
|
+
centered = false,
|
|
87
|
+
className,
|
|
88
|
+
"data-cy": dataCy,
|
|
89
|
+
"data-testid": dataTestId,
|
|
90
|
+
...props
|
|
91
|
+
}) => {
|
|
92
|
+
const finalDataCy = dataCy || "dialog-header";
|
|
93
|
+
const finalTestId = dataTestId || "dialog-header";
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
className: cn("dialog-header", centered && "dialog-header--centered", className),
|
|
98
|
+
"data-cy": finalDataCy,
|
|
99
|
+
"data-testid": finalTestId,
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
DialogHeader.displayName = "DialogHeader";
|
|
105
|
+
const DialogFooter = ({
|
|
106
|
+
className,
|
|
107
|
+
"data-cy": dataCy,
|
|
108
|
+
"data-testid": dataTestId,
|
|
109
|
+
...props
|
|
110
|
+
}) => {
|
|
111
|
+
const finalDataCy = dataCy || "dialog-footer";
|
|
112
|
+
const finalTestId = dataTestId || "dialog-footer";
|
|
113
|
+
return /* @__PURE__ */ jsx(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: cn("dialog-footer", className),
|
|
117
|
+
"data-cy": finalDataCy,
|
|
118
|
+
"data-testid": finalTestId,
|
|
119
|
+
...props
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
DialogFooter.displayName = "DialogFooter";
|
|
124
|
+
const DialogTitle = forwardRef(
|
|
125
|
+
({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
|
|
126
|
+
const finalDataCy = dataCy || "dialog-title";
|
|
127
|
+
const finalTestId = dataTestId || "dialog-title";
|
|
128
|
+
return /* @__PURE__ */ jsx(
|
|
129
|
+
DialogPrimitive.Title,
|
|
130
|
+
{
|
|
131
|
+
ref,
|
|
132
|
+
className: cn("dialog-title", className),
|
|
133
|
+
"data-cy": finalDataCy,
|
|
134
|
+
"data-testid": finalTestId,
|
|
135
|
+
...props
|
|
136
|
+
}
|
|
47
137
|
);
|
|
48
138
|
}
|
|
49
139
|
);
|
|
50
|
-
|
|
140
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
141
|
+
const DialogDescription = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
|
|
142
|
+
const finalDataCy = dataCy || "dialog-description";
|
|
143
|
+
const finalTestId = dataTestId || "dialog-description";
|
|
144
|
+
return /* @__PURE__ */ jsx(
|
|
145
|
+
DialogPrimitive.Description,
|
|
146
|
+
{
|
|
147
|
+
ref,
|
|
148
|
+
className: cn("dialog-description", className),
|
|
149
|
+
"data-cy": finalDataCy,
|
|
150
|
+
"data-testid": finalTestId,
|
|
151
|
+
...props
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
});
|
|
155
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
51
156
|
export {
|
|
52
|
-
|
|
157
|
+
Dialog,
|
|
158
|
+
DialogClose,
|
|
159
|
+
DialogCloseButton,
|
|
160
|
+
DialogContent,
|
|
161
|
+
DialogDescription,
|
|
162
|
+
DialogFooter,
|
|
163
|
+
DialogHeader,
|
|
164
|
+
DialogIcon,
|
|
165
|
+
DialogOverlay,
|
|
166
|
+
DialogPortal,
|
|
167
|
+
DialogTitle,
|
|
168
|
+
DialogTrigger
|
|
53
169
|
};
|
package/dist/index22.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),e=require("./index31.cjs");;/* empty css */const s=a.forwardRef(({direction:a="vertical",spacing:s="4",align:c="stretch",justify:r="start",wrap:i=!1,className:n,children:d,"data-cy":l,"data-testid":o,...u},k)=>{const p=l||`stack-${a}`,j=o||`stack-${a}`;return t.jsx("div",{ref:k,className:e.cn("stack",`stack--${a}`,`stack--spacing-${s}`,`stack--align-${c}`,`stack--justify-${r}`,i&&"stack--wrap",n),"data-cy":p,"data-testid":j,...u,children:d})});s.displayName="Stack",exports.Stack=s;
|
package/dist/index22.js
CHANGED
|
@@ -1,46 +1,35 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { cn } from "./
|
|
3
|
+
import { cn } from "./index31.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
const
|
|
5
|
+
const Stack = forwardRef(
|
|
6
6
|
({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gap = "4",
|
|
10
|
-
rowGap,
|
|
11
|
-
columnGap,
|
|
7
|
+
direction = "vertical",
|
|
8
|
+
spacing = "4",
|
|
12
9
|
align = "stretch",
|
|
13
|
-
justify = "
|
|
14
|
-
|
|
10
|
+
justify = "start",
|
|
11
|
+
wrap = false,
|
|
15
12
|
className,
|
|
16
13
|
children,
|
|
17
|
-
style,
|
|
18
14
|
"data-cy": dataCy,
|
|
19
15
|
"data-testid": dataTestId,
|
|
20
16
|
...props
|
|
21
17
|
}, ref) => {
|
|
22
|
-
const finalDataCy = dataCy || `
|
|
23
|
-
const finalTestId = dataTestId || `
|
|
24
|
-
const customStyle = {
|
|
25
|
-
...style,
|
|
26
|
-
...columns === "auto" && { "--grid-auto-fit-min": autoFitMinWidth }
|
|
27
|
-
};
|
|
18
|
+
const finalDataCy = dataCy || `stack-${direction}`;
|
|
19
|
+
const finalTestId = dataTestId || `stack-${direction}`;
|
|
28
20
|
return /* @__PURE__ */ jsx(
|
|
29
21
|
"div",
|
|
30
22
|
{
|
|
31
23
|
ref,
|
|
32
24
|
className: cn(
|
|
33
|
-
"
|
|
34
|
-
`
|
|
35
|
-
|
|
36
|
-
`
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`grid--align-${align}`,
|
|
40
|
-
`grid--justify-${justify}`,
|
|
25
|
+
"stack",
|
|
26
|
+
`stack--${direction}`,
|
|
27
|
+
`stack--spacing-${spacing}`,
|
|
28
|
+
`stack--align-${align}`,
|
|
29
|
+
`stack--justify-${justify}`,
|
|
30
|
+
wrap && "stack--wrap",
|
|
41
31
|
className
|
|
42
32
|
),
|
|
43
|
-
style: customStyle,
|
|
44
33
|
"data-cy": finalDataCy,
|
|
45
34
|
"data-testid": finalTestId,
|
|
46
35
|
...props,
|
|
@@ -49,7 +38,7 @@ const Grid = forwardRef(
|
|
|
49
38
|
);
|
|
50
39
|
}
|
|
51
40
|
);
|
|
52
|
-
|
|
41
|
+
Stack.displayName = "Stack";
|
|
53
42
|
export {
|
|
54
|
-
|
|
43
|
+
Stack
|
|
55
44
|
};
|
package/dist/index23.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index31.cjs");;/* empty css */const a=t.forwardRef(({className:t,maxWidth:a="lg",padding:n="md","data-cy":i,"data-testid":d,children:c,...s},o)=>{const l=i||"container",u=d||"container";return e.jsx("div",{ref:o,className:r.cn("container",`container--max-width-${a}`,`container--padding-${n}`,t),"data-cy":l,"data-testid":u,...s,children:c})});a.displayName="Container",exports.Container=a;
|
package/dist/index23.js
CHANGED
|
@@ -1,14 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "./index31.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const Container = forwardRef(
|
|
6
|
+
({
|
|
7
|
+
className,
|
|
8
|
+
maxWidth = "lg",
|
|
9
|
+
padding = "md",
|
|
10
|
+
"data-cy": dataCy,
|
|
11
|
+
"data-testid": dataTestId,
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => {
|
|
15
|
+
const finalDataCy = dataCy || "container";
|
|
16
|
+
const finalTestId = dataTestId || "container";
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
ref,
|
|
21
|
+
className: cn(
|
|
22
|
+
"container",
|
|
23
|
+
`container--max-width-${maxWidth}`,
|
|
24
|
+
`container--padding-${padding}`,
|
|
25
|
+
className
|
|
26
|
+
),
|
|
27
|
+
"data-cy": finalDataCy,
|
|
28
|
+
"data-testid": finalTestId,
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
Container.displayName = "Container";
|
|
11
36
|
export {
|
|
12
|
-
|
|
13
|
-
generateId
|
|
37
|
+
Container
|
|
14
38
|
};
|
package/dist/index24.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("@radix-ui/react-separator"),i=require("./index31.cjs");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)};/* empty css */const o=a(t),d=r.forwardRef(({orientation:r="horizontal",decorative:t=!0,spacing:a="0",color:d,className:c,style:n,"data-cy":s,"data-testid":u,...l},f)=>{const v=s||`divider-${r}`,g=u||`divider-${r}`;return e.jsx(o.Root,{ref:f,decorative:t,orientation:r,className:i.cn("divider",`divider--${r}`,`divider--spacing-${a}`,c),style:{...d&&{backgroundColor:d},...n},"data-cy":v,"data-testid":g,...l})});d.displayName="Divider",exports.Divider=d;
|
package/dist/index24.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
|
+
import { cn } from "./index31.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const Divider = forwardRef(
|
|
7
|
+
({
|
|
8
|
+
orientation = "horizontal",
|
|
9
|
+
decorative = true,
|
|
10
|
+
spacing = "0",
|
|
11
|
+
color,
|
|
12
|
+
className,
|
|
13
|
+
style,
|
|
14
|
+
"data-cy": dataCy,
|
|
15
|
+
"data-testid": dataTestId,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
const finalDataCy = dataCy || `divider-${orientation}`;
|
|
19
|
+
const finalTestId = dataTestId || `divider-${orientation}`;
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
SeparatorPrimitive.Root,
|
|
22
|
+
{
|
|
23
|
+
ref,
|
|
24
|
+
decorative,
|
|
25
|
+
orientation,
|
|
26
|
+
className: cn(
|
|
27
|
+
"divider",
|
|
28
|
+
`divider--${orientation}`,
|
|
29
|
+
`divider--spacing-${spacing}`,
|
|
30
|
+
className
|
|
31
|
+
),
|
|
32
|
+
style: {
|
|
33
|
+
...color && { backgroundColor: color },
|
|
34
|
+
...style
|
|
35
|
+
},
|
|
36
|
+
"data-cy": finalDataCy,
|
|
37
|
+
"data-testid": finalTestId,
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
Divider.displayName = "Divider";
|
|
44
|
+
export {
|
|
45
|
+
Divider
|
|
46
|
+
};
|
package/dist/index25.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),e=require("./index31.cjs"),s=require("./index4.cjs");;/* empty css */const d=t.forwardRef(({children:t,cardSize:d="lg",logo:i,showSettings:n=!0,showUserMenu:r=!0,userInitials:u,onSettingsClick:c,onUserMenuClick:l,activeMenu:o=null,"data-testid":h,"data-cy":y,...m},$)=>{const g=y||"auth-layout",x=h||"auth-layout";return a.jsxs("div",{ref:$,className:"auth-layout","data-testid":x,"data-cy":g,...m,children:[a.jsx("div",{className:"auth-layout__background","data-testid":`${x}-background`,"data-cy":`${g}-background`,"aria-hidden":"true"}),a.jsxs("header",{className:"auth-layout__header","data-testid":`${x}-header`,"data-cy":`${g}-header`,children:[a.jsx("div",{className:"auth-layout__logo","data-testid":`${x}-logo`,"data-cy":`${g}-logo`,children:i}),a.jsxs("div",{className:"auth-layout__menu","data-testid":`${x}-menu`,"data-cy":`${g}-menu`,children:[n&&a.jsx(s.MenuIconButton,{variant:"settings",selected:"settings"===o,onClick:c,"aria-label":"Settings","data-testid":`${x}-settings-btn`,"data-cy":`${g}-settings-btn`}),r&&a.jsx(s.MenuIconButton,{variant:"user",initials:u,selected:"user"===o,onClick:l,"aria-label":u?`User menu - ${u}`:"User menu","data-testid":`${x}-user-btn`,"data-cy":`${g}-user-btn`})]})]}),a.jsx("main",{className:"auth-layout__main","data-testid":`${x}-main`,"data-cy":`${g}-main`,children:a.jsx("div",{className:e.cn("auth-layout__card",`auth-layout__card--${d}`),"data-testid":`${x}-card`,"data-cy":`${g}-card`,children:t})})]})});d.displayName="AuthLayout",exports.AuthLayout=d;
|