@opensite/ui 1.7.2 → 1.7.3
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/contact-dark.cjs +137 -95
- package/dist/contact-dark.css +279 -0
- package/dist/contact-dark.d.cts +1 -1
- package/dist/contact-dark.d.ts +1 -1
- package/dist/contact-dark.js +138 -96
- package/dist/contact-faq.cjs +49 -16
- package/dist/contact-faq.css +279 -0
- package/dist/contact-faq.d.cts +1 -1
- package/dist/contact-faq.d.ts +1 -1
- package/dist/contact-faq.js +46 -13
- package/dist/contact-photography.cjs +53 -20
- package/dist/contact-photography.css +279 -0
- package/dist/contact-photography.d.cts +1 -1
- package/dist/contact-photography.d.ts +1 -1
- package/dist/contact-photography.js +49 -16
- package/dist/hero-premium-split-avatars.cjs +1 -1
- package/dist/hero-premium-split-avatars.d.cts +1 -1
- package/dist/hero-premium-split-avatars.d.ts +1 -1
- package/dist/hero-premium-split-avatars.js +1 -1
- package/dist/registry.cjs +240 -126
- package/dist/registry.css +279 -0
- package/dist/registry.js +240 -126
- package/package.json +4 -4
package/dist/contact-dark.cjs
CHANGED
|
@@ -33,8 +33,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
33
33
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
34
34
|
|
|
35
35
|
// components/blocks/contact/contact-dark.tsx
|
|
36
|
-
var TextInput = inputs.TextInput;
|
|
37
|
-
var TextArea = inputs.TextArea;
|
|
38
36
|
function cn(...inputs) {
|
|
39
37
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
40
38
|
}
|
|
@@ -1094,7 +1092,6 @@ function ContactDark({
|
|
|
1094
1092
|
socialLinks,
|
|
1095
1093
|
socialLinksSlot,
|
|
1096
1094
|
className,
|
|
1097
|
-
containerClassName,
|
|
1098
1095
|
headerClassName,
|
|
1099
1096
|
headingClassName,
|
|
1100
1097
|
descriptionClassName,
|
|
@@ -1105,10 +1102,11 @@ function ContactDark({
|
|
|
1105
1102
|
infoPanelClassName,
|
|
1106
1103
|
contactOptionsClassName,
|
|
1107
1104
|
socialLinksClassName,
|
|
1108
|
-
background
|
|
1109
|
-
spacing = "
|
|
1105
|
+
background,
|
|
1106
|
+
spacing = "py-8 md:py-32",
|
|
1107
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
1110
1108
|
pattern,
|
|
1111
|
-
patternOpacity
|
|
1109
|
+
patternOpacity,
|
|
1112
1110
|
formConfig,
|
|
1113
1111
|
onSubmit,
|
|
1114
1112
|
onSuccess,
|
|
@@ -1165,7 +1163,14 @@ function ContactDark({
|
|
|
1165
1163
|
if (actionsSlot) return actionsSlot;
|
|
1166
1164
|
if (actions && actions.length > 0) {
|
|
1167
1165
|
return actions.map((action, index) => {
|
|
1168
|
-
const {
|
|
1166
|
+
const {
|
|
1167
|
+
label,
|
|
1168
|
+
icon,
|
|
1169
|
+
iconAfter,
|
|
1170
|
+
children,
|
|
1171
|
+
className: actionClassName,
|
|
1172
|
+
...pressableProps
|
|
1173
|
+
} = action;
|
|
1169
1174
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1170
1175
|
Pressable,
|
|
1171
1176
|
{
|
|
@@ -1231,103 +1236,140 @@ function ContactDark({
|
|
|
1231
1236
|
spacing,
|
|
1232
1237
|
pattern,
|
|
1233
1238
|
patternOpacity,
|
|
1234
|
-
className
|
|
1235
|
-
|
|
1239
|
+
className,
|
|
1240
|
+
containerClassName,
|
|
1241
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1236
1242
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mb-10 text-center", headerClassName), children: [
|
|
1237
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1238
|
-
|
|
1239
|
-
] }),
|
|
1240
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Card, { className: cn("grid gap-0 overflow-hidden lg:grid-cols-2", cardClassName), children: [
|
|
1241
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-6 lg:p-8", formPanelClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1242
|
-
forms.Form,
|
|
1243
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1244
|
+
"h2",
|
|
1243
1245
|
{
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
children:
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1246
|
+
className: cn(
|
|
1247
|
+
"mb-3 text-3xl font-bold tracking-tight",
|
|
1248
|
+
headingClassName
|
|
1249
|
+
),
|
|
1250
|
+
children: heading
|
|
1251
|
+
}
|
|
1252
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
1253
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("leading-relaxed ", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description }))
|
|
1254
|
+
] }),
|
|
1255
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1256
|
+
Card,
|
|
1257
|
+
{
|
|
1258
|
+
className: cn(
|
|
1259
|
+
"grid gap-0 overflow-hidden lg:grid-cols-2",
|
|
1260
|
+
cardClassName
|
|
1261
|
+
),
|
|
1262
|
+
children: [
|
|
1263
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-6 lg:p-8", formPanelClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1264
|
+
forms.Form,
|
|
1265
|
+
{
|
|
1266
|
+
form,
|
|
1267
|
+
action: formConfig?.endpoint,
|
|
1268
|
+
method: formMethod,
|
|
1269
|
+
className: cn("space-y-6", formClassName),
|
|
1270
|
+
children: [
|
|
1271
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [
|
|
1272
|
+
/* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "firstName", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1273
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "first-name", children: "First Name" }),
|
|
1274
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1275
|
+
inputs.TextInput,
|
|
1276
|
+
{
|
|
1277
|
+
...field,
|
|
1278
|
+
id: "first-name",
|
|
1279
|
+
placeholder: "John",
|
|
1280
|
+
error: meta.touched && !!meta.error,
|
|
1281
|
+
"aria-label": "First Name"
|
|
1282
|
+
}
|
|
1283
|
+
)
|
|
1284
|
+
] }) }),
|
|
1285
|
+
/* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "lastName", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1286
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "last-name", children: "Last Name" }),
|
|
1287
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1288
|
+
inputs.TextInput,
|
|
1289
|
+
{
|
|
1290
|
+
...field,
|
|
1291
|
+
id: "last-name",
|
|
1292
|
+
placeholder: "Doe",
|
|
1293
|
+
error: meta.touched && !!meta.error,
|
|
1294
|
+
"aria-label": "Last Name"
|
|
1295
|
+
}
|
|
1296
|
+
)
|
|
1297
|
+
] }) })
|
|
1298
|
+
] }),
|
|
1299
|
+
/* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "email", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1300
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "email", children: "Email Address" }),
|
|
1301
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1302
|
+
inputs.TextInput,
|
|
1303
|
+
{
|
|
1304
|
+
...field,
|
|
1305
|
+
id: "email",
|
|
1306
|
+
type: "email",
|
|
1307
|
+
placeholder: "john@example.com",
|
|
1308
|
+
error: meta.touched && !!meta.error,
|
|
1309
|
+
"aria-label": "Email Address"
|
|
1310
|
+
}
|
|
1311
|
+
)
|
|
1312
|
+
] }) }),
|
|
1313
|
+
/* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "message", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1314
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "message", children: "Message" }),
|
|
1315
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1316
|
+
inputs.TextArea,
|
|
1317
|
+
{
|
|
1318
|
+
...field,
|
|
1319
|
+
id: "message",
|
|
1320
|
+
placeholder: "Tell us how we can help...",
|
|
1321
|
+
rows: 4,
|
|
1322
|
+
error: meta.touched && !!meta.error,
|
|
1323
|
+
"aria-label": "Message"
|
|
1324
|
+
}
|
|
1325
|
+
)
|
|
1326
|
+
] }) }),
|
|
1327
|
+
actionsSlot || actions && actions.length > 0 ? actionsContent : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1328
|
+
Pressable,
|
|
1254
1329
|
{
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1330
|
+
componentType: "button",
|
|
1331
|
+
type: "submit",
|
|
1332
|
+
className: cn("w-full", submitClassName),
|
|
1333
|
+
asButton: true,
|
|
1334
|
+
disabled: form.isSubmitting,
|
|
1335
|
+
children: [
|
|
1336
|
+
buttonIcon,
|
|
1337
|
+
buttonText
|
|
1338
|
+
]
|
|
1260
1339
|
}
|
|
1261
1340
|
)
|
|
1262
|
-
]
|
|
1263
|
-
|
|
1264
|
-
|
|
1341
|
+
]
|
|
1342
|
+
}
|
|
1343
|
+
) }),
|
|
1344
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1345
|
+
"div",
|
|
1346
|
+
{
|
|
1347
|
+
className: cn(
|
|
1348
|
+
"flex flex-col justify-between bg-primary p-6 text-primary-foreground lg:p-8",
|
|
1349
|
+
infoPanelClassName
|
|
1350
|
+
),
|
|
1351
|
+
children: [
|
|
1352
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1353
|
+
contactHeading && (typeof contactHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-xl font-semibold", children: contactHeading }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-3", children: contactHeading })),
|
|
1354
|
+
contactDescription && (typeof contactDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-8 text-sm text-primary-foreground/80", children: contactDescription }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-8", children: contactDescription })),
|
|
1355
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-4", contactOptionsClassName), children: contactOptionsContent })
|
|
1356
|
+
] }),
|
|
1265
1357
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1266
|
-
|
|
1358
|
+
"div",
|
|
1267
1359
|
{
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1360
|
+
className: cn(
|
|
1361
|
+
"mt-8 flex items-center gap-4",
|
|
1362
|
+
socialLinksClassName
|
|
1363
|
+
),
|
|
1364
|
+
children: socialLinksContent
|
|
1273
1365
|
}
|
|
1274
1366
|
)
|
|
1275
|
-
]
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
{
|
|
1282
|
-
...field,
|
|
1283
|
-
id: "email",
|
|
1284
|
-
type: "email",
|
|
1285
|
-
placeholder: "john@example.com",
|
|
1286
|
-
error: meta.touched && !!meta.error,
|
|
1287
|
-
"aria-label": "Email Address"
|
|
1288
|
-
}
|
|
1289
|
-
)
|
|
1290
|
-
] }) }),
|
|
1291
|
-
/* @__PURE__ */ jsxRuntime.jsx(forms.Field, { name: "message", children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1292
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: "message", children: "Message" }),
|
|
1293
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1294
|
-
TextArea,
|
|
1295
|
-
{
|
|
1296
|
-
...field,
|
|
1297
|
-
id: "message",
|
|
1298
|
-
placeholder: "Tell us how we can help...",
|
|
1299
|
-
rows: 4,
|
|
1300
|
-
error: meta.touched && !!meta.error,
|
|
1301
|
-
"aria-label": "Message"
|
|
1302
|
-
}
|
|
1303
|
-
)
|
|
1304
|
-
] }) }),
|
|
1305
|
-
actionsSlot || actions && actions.length > 0 ? actionsContent : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1306
|
-
Pressable,
|
|
1307
|
-
{
|
|
1308
|
-
componentType: "button",
|
|
1309
|
-
type: "submit",
|
|
1310
|
-
className: cn("w-full", submitClassName),
|
|
1311
|
-
asButton: true,
|
|
1312
|
-
disabled: form.isSubmitting,
|
|
1313
|
-
children: [
|
|
1314
|
-
buttonIcon,
|
|
1315
|
-
buttonText
|
|
1316
|
-
]
|
|
1317
|
-
}
|
|
1318
|
-
)
|
|
1319
|
-
]
|
|
1320
|
-
}
|
|
1321
|
-
) }),
|
|
1322
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col justify-between bg-primary p-6 text-primary-foreground lg:p-8", infoPanelClassName), children: [
|
|
1323
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1324
|
-
contactHeading && (typeof contactHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-xl font-semibold", children: contactHeading }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-3", children: contactHeading })),
|
|
1325
|
-
contactDescription && (typeof contactDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-8 text-sm text-primary-foreground/80", children: contactDescription }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-8", children: contactDescription })),
|
|
1326
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-4", contactOptionsClassName), children: contactOptionsContent })
|
|
1327
|
-
] }),
|
|
1328
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-8 flex items-center gap-4", socialLinksClassName), children: socialLinksContent })
|
|
1329
|
-
] })
|
|
1330
|
-
] })
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
)
|
|
1370
|
+
]
|
|
1371
|
+
}
|
|
1372
|
+
)
|
|
1331
1373
|
] })
|
|
1332
1374
|
}
|
|
1333
1375
|
);
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/* components/styles/forms.css */
|
|
2
|
+
.text-input {
|
|
3
|
+
display: flex;
|
|
4
|
+
height: 2.25rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
border-radius: 0.375rem;
|
|
7
|
+
border: 1px solid var(--input);
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
padding: 0.25rem 0.75rem;
|
|
10
|
+
font-size: 1rem;
|
|
11
|
+
line-height: 1.5rem;
|
|
12
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
13
|
+
transition-property:
|
|
14
|
+
color,
|
|
15
|
+
background-color,
|
|
16
|
+
border-color,
|
|
17
|
+
text-decoration-color,
|
|
18
|
+
fill,
|
|
19
|
+
stroke;
|
|
20
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
transition-duration: 150ms;
|
|
22
|
+
}
|
|
23
|
+
.text-input::placeholder {
|
|
24
|
+
color: var(--muted-foreground);
|
|
25
|
+
}
|
|
26
|
+
.text-input:focus-visible {
|
|
27
|
+
outline: none;
|
|
28
|
+
ring: 1px;
|
|
29
|
+
ring-color: var(--ring);
|
|
30
|
+
}
|
|
31
|
+
.text-input:disabled {
|
|
32
|
+
cursor: not-allowed;
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
}
|
|
35
|
+
.text-input--error {
|
|
36
|
+
border-color: rgb(239 68 68);
|
|
37
|
+
ring: 1px;
|
|
38
|
+
ring-color: rgb(239 68 68);
|
|
39
|
+
}
|
|
40
|
+
.textarea {
|
|
41
|
+
display: flex;
|
|
42
|
+
min-height: 5rem;
|
|
43
|
+
width: 100%;
|
|
44
|
+
border-radius: 0.375rem;
|
|
45
|
+
border: 1px solid var(--input);
|
|
46
|
+
background-color: transparent;
|
|
47
|
+
padding: 0.5rem 0.75rem;
|
|
48
|
+
font-size: 1rem;
|
|
49
|
+
line-height: 1.5rem;
|
|
50
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
51
|
+
transition-property:
|
|
52
|
+
color,
|
|
53
|
+
background-color,
|
|
54
|
+
border-color,
|
|
55
|
+
text-decoration-color,
|
|
56
|
+
fill,
|
|
57
|
+
stroke;
|
|
58
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
59
|
+
transition-duration: 150ms;
|
|
60
|
+
}
|
|
61
|
+
.textarea::placeholder {
|
|
62
|
+
color: var(--muted-foreground);
|
|
63
|
+
}
|
|
64
|
+
.textarea:focus-visible {
|
|
65
|
+
outline: none;
|
|
66
|
+
ring: 1px;
|
|
67
|
+
ring-color: var(--ring);
|
|
68
|
+
}
|
|
69
|
+
.textarea:disabled {
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
opacity: 0.5;
|
|
72
|
+
}
|
|
73
|
+
.textarea--error {
|
|
74
|
+
border-color: rgb(239 68 68);
|
|
75
|
+
ring: 1px;
|
|
76
|
+
ring-color: rgb(239 68 68);
|
|
77
|
+
}
|
|
78
|
+
.select {
|
|
79
|
+
position: relative;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.select-trigger {
|
|
83
|
+
display: flex;
|
|
84
|
+
height: 2.25rem;
|
|
85
|
+
width: 100%;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
border-radius: 0.375rem;
|
|
90
|
+
border: 1px solid var(--input);
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
padding: 0.5rem 0.75rem;
|
|
93
|
+
font-size: 0.875rem;
|
|
94
|
+
line-height: 1.25rem;
|
|
95
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
transition-property:
|
|
98
|
+
color,
|
|
99
|
+
background-color,
|
|
100
|
+
border-color,
|
|
101
|
+
text-decoration-color,
|
|
102
|
+
fill,
|
|
103
|
+
stroke;
|
|
104
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
105
|
+
transition-duration: 150ms;
|
|
106
|
+
}
|
|
107
|
+
.select-trigger:hover {
|
|
108
|
+
background-color: var(--accent);
|
|
109
|
+
}
|
|
110
|
+
.select-trigger:focus-visible {
|
|
111
|
+
outline: none;
|
|
112
|
+
ring: 1px;
|
|
113
|
+
ring-color: var(--ring);
|
|
114
|
+
}
|
|
115
|
+
.select-trigger[aria-disabled=true] {
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
opacity: 0.5;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
.select--error .select-trigger {
|
|
121
|
+
border-color: rgb(239 68 68);
|
|
122
|
+
ring: 1px;
|
|
123
|
+
ring-color: rgb(239 68 68);
|
|
124
|
+
}
|
|
125
|
+
.select-value {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
flex: 1;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
text-overflow: ellipsis;
|
|
131
|
+
}
|
|
132
|
+
.select-placeholder {
|
|
133
|
+
color: var(--muted-foreground);
|
|
134
|
+
}
|
|
135
|
+
.select-icons {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 0.25rem;
|
|
139
|
+
margin-left: 0.5rem;
|
|
140
|
+
}
|
|
141
|
+
.select-clear {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
height: 1rem;
|
|
146
|
+
width: 1rem;
|
|
147
|
+
border-radius: 0.125rem;
|
|
148
|
+
border: none;
|
|
149
|
+
background: transparent;
|
|
150
|
+
color: var(--muted-foreground);
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
font-size: 0.75rem;
|
|
153
|
+
padding: 0;
|
|
154
|
+
transition: opacity 150ms;
|
|
155
|
+
}
|
|
156
|
+
.select-clear:hover {
|
|
157
|
+
opacity: 0.7;
|
|
158
|
+
}
|
|
159
|
+
.select-arrow {
|
|
160
|
+
color: var(--muted-foreground);
|
|
161
|
+
font-size: 0.75rem;
|
|
162
|
+
line-height: 1;
|
|
163
|
+
}
|
|
164
|
+
.select-loading {
|
|
165
|
+
font-size: 0.75rem;
|
|
166
|
+
}
|
|
167
|
+
.select-dropdown {
|
|
168
|
+
position: absolute;
|
|
169
|
+
z-index: 50;
|
|
170
|
+
top: 100%;
|
|
171
|
+
margin-top: 0.25rem;
|
|
172
|
+
min-width: 100%;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
border-radius: 0.375rem;
|
|
175
|
+
border: 1px solid var(--border);
|
|
176
|
+
background-color: var(--popover);
|
|
177
|
+
color: var(--popover-foreground);
|
|
178
|
+
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
179
|
+
}
|
|
180
|
+
.select-search {
|
|
181
|
+
padding: 0.5rem;
|
|
182
|
+
border-bottom: 1px solid var(--border);
|
|
183
|
+
}
|
|
184
|
+
.select-search-input {
|
|
185
|
+
width: 100%;
|
|
186
|
+
border: 1px solid var(--input);
|
|
187
|
+
border-radius: 0.25rem;
|
|
188
|
+
padding: 0.25rem 0.5rem;
|
|
189
|
+
font-size: 0.875rem;
|
|
190
|
+
background-color: transparent;
|
|
191
|
+
outline: none;
|
|
192
|
+
}
|
|
193
|
+
.select-search-input:focus {
|
|
194
|
+
ring: 1px;
|
|
195
|
+
ring-color: var(--ring);
|
|
196
|
+
}
|
|
197
|
+
.select-options {
|
|
198
|
+
max-height: 16rem;
|
|
199
|
+
overflow-y: auto;
|
|
200
|
+
padding: 0.25rem;
|
|
201
|
+
}
|
|
202
|
+
.select-option {
|
|
203
|
+
position: relative;
|
|
204
|
+
display: flex;
|
|
205
|
+
width: 100%;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
align-items: center;
|
|
208
|
+
border-radius: 0.25rem;
|
|
209
|
+
padding: 0.375rem 0.5rem 0.375rem 2rem;
|
|
210
|
+
font-size: 0.875rem;
|
|
211
|
+
outline: none;
|
|
212
|
+
transition-property: color, background-color;
|
|
213
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
214
|
+
transition-duration: 150ms;
|
|
215
|
+
}
|
|
216
|
+
.select-option:hover {
|
|
217
|
+
background-color: var(--accent);
|
|
218
|
+
color: var(--accent-foreground);
|
|
219
|
+
}
|
|
220
|
+
.select-option--focused {
|
|
221
|
+
background-color: var(--accent);
|
|
222
|
+
color: var(--accent-foreground);
|
|
223
|
+
}
|
|
224
|
+
.select-option--selected {
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
background-color: var(--accent);
|
|
227
|
+
}
|
|
228
|
+
.select-option--disabled {
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
opacity: 0.5;
|
|
231
|
+
}
|
|
232
|
+
.select-no-options {
|
|
233
|
+
padding: 0.5rem 0.75rem;
|
|
234
|
+
text-align: center;
|
|
235
|
+
font-size: 0.875rem;
|
|
236
|
+
color: var(--muted-foreground);
|
|
237
|
+
}
|
|
238
|
+
.select-optgroup {
|
|
239
|
+
padding: 0.25rem 0;
|
|
240
|
+
}
|
|
241
|
+
.select-optgroup-label {
|
|
242
|
+
padding: 0.375rem 0.5rem;
|
|
243
|
+
font-size: 0.75rem;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
color: var(--muted-foreground);
|
|
246
|
+
}
|
|
247
|
+
.field-label {
|
|
248
|
+
display: block;
|
|
249
|
+
font-size: 0.875rem;
|
|
250
|
+
font-weight: 500;
|
|
251
|
+
line-height: 1.25rem;
|
|
252
|
+
margin-bottom: 0.5rem;
|
|
253
|
+
color: var(--foreground);
|
|
254
|
+
}
|
|
255
|
+
.field-required {
|
|
256
|
+
color: rgb(239 68 68);
|
|
257
|
+
margin-left: 0.125rem;
|
|
258
|
+
}
|
|
259
|
+
.field-description {
|
|
260
|
+
font-size: 0.875rem;
|
|
261
|
+
color: var(--muted-foreground);
|
|
262
|
+
margin-bottom: 0.5rem;
|
|
263
|
+
}
|
|
264
|
+
.field-input {
|
|
265
|
+
}
|
|
266
|
+
.field-error {
|
|
267
|
+
font-size: 0.875rem;
|
|
268
|
+
font-weight: 500;
|
|
269
|
+
color: rgb(239 68 68);
|
|
270
|
+
margin-top: 0.5rem;
|
|
271
|
+
}
|
|
272
|
+
@media (min-width: 768px) {
|
|
273
|
+
.text-input,
|
|
274
|
+
.textarea,
|
|
275
|
+
.select-trigger {
|
|
276
|
+
font-size: 0.875rem;
|
|
277
|
+
line-height: 1.25rem;
|
|
278
|
+
}
|
|
279
|
+
}
|
package/dist/contact-dark.d.cts
CHANGED
|
@@ -223,6 +223,6 @@ interface ContactDarkProps {
|
|
|
223
223
|
* />
|
|
224
224
|
* ```
|
|
225
225
|
*/
|
|
226
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className,
|
|
226
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
227
227
|
|
|
228
228
|
export { ContactDark, type ContactDarkProps };
|
package/dist/contact-dark.d.ts
CHANGED
|
@@ -223,6 +223,6 @@ interface ContactDarkProps {
|
|
|
223
223
|
* />
|
|
224
224
|
* ```
|
|
225
225
|
*/
|
|
226
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className,
|
|
226
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
227
227
|
|
|
228
228
|
export { ContactDark, type ContactDarkProps };
|