elseware-ui 3.0.13 → 3.0.14
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/README.md +289 -289
- package/dist/index.d.mts +350 -346
- package/dist/index.d.ts +350 -346
- package/dist/index.js +33 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -26
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +15 -15
- package/dist/index.native.d.ts +15 -15
- package/dist/index.native.js +36 -31
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +37 -32
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-TVdFbK-t.d.mts → resolveGlobalConfigs-ClQlBbvH.d.mts} +6 -4
- package/dist/{resolveGlobalConfigs-TVdFbK-t.d.ts → resolveGlobalConfigs-ClQlBbvH.d.ts} +6 -4
- package/package.json +1 -1
- package/tailwind.preset.js +116 -116
package/dist/index.js
CHANGED
|
@@ -6318,6 +6318,7 @@ function useButton(props) {
|
|
|
6318
6318
|
const {
|
|
6319
6319
|
// Consumed by the shared model
|
|
6320
6320
|
icon,
|
|
6321
|
+
iconPosition = "leading",
|
|
6321
6322
|
text: text10,
|
|
6322
6323
|
children: children3,
|
|
6323
6324
|
loading = false,
|
|
@@ -6365,6 +6366,7 @@ function useButton(props) {
|
|
|
6365
6366
|
loading,
|
|
6366
6367
|
iconSize: tokens.icon,
|
|
6367
6368
|
icon: resolvedIcon,
|
|
6369
|
+
iconPosition,
|
|
6368
6370
|
label,
|
|
6369
6371
|
hasTextLabel: typeof label === "string" || typeof label === "number",
|
|
6370
6372
|
variantClassName,
|
|
@@ -6409,6 +6411,32 @@ var Button = React26.forwardRef(function Button2(props, ref) {
|
|
|
6409
6411
|
onClick?.(e);
|
|
6410
6412
|
if (!e.defaultPrevented) model.onPress?.();
|
|
6411
6413
|
};
|
|
6414
|
+
const iconGroup = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6415
|
+
model.loading && /* @__PURE__ */ jsxRuntime.jsx(index_js.AiOutlineLoading, { className: "animate-spin z-10" }),
|
|
6416
|
+
model.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6417
|
+
"span",
|
|
6418
|
+
{
|
|
6419
|
+
className: cn(
|
|
6420
|
+
"z-10 inline-flex shrink-0 items-center justify-center leading-none",
|
|
6421
|
+
contentClassName
|
|
6422
|
+
),
|
|
6423
|
+
style: { height: model.iconSize, width: model.iconSize, lineHeight: 0 },
|
|
6424
|
+
children: model.icon
|
|
6425
|
+
}
|
|
6426
|
+
)
|
|
6427
|
+
] });
|
|
6428
|
+
const labelNode = model.label != null && model.label !== "" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6429
|
+
"span",
|
|
6430
|
+
{
|
|
6431
|
+
className: cn(
|
|
6432
|
+
"z-10 inline-flex items-center justify-center leading-none",
|
|
6433
|
+
labelClassName
|
|
6434
|
+
),
|
|
6435
|
+
style: { minHeight: model.iconSize },
|
|
6436
|
+
children: model.label
|
|
6437
|
+
}
|
|
6438
|
+
) : null;
|
|
6439
|
+
const trailing = model.iconPosition === "trailing";
|
|
6412
6440
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6413
6441
|
"button",
|
|
6414
6442
|
{
|
|
@@ -6444,29 +6472,8 @@ var Button = React26.forwardRef(function Button2(props, ref) {
|
|
|
6444
6472
|
}
|
|
6445
6473
|
}
|
|
6446
6474
|
),
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
"span",
|
|
6450
|
-
{
|
|
6451
|
-
className: cn(
|
|
6452
|
-
"z-10 inline-flex shrink-0 items-center justify-center leading-none",
|
|
6453
|
-
contentClassName
|
|
6454
|
-
),
|
|
6455
|
-
style: { height: model.iconSize, width: model.iconSize, lineHeight: 0 },
|
|
6456
|
-
children: model.icon
|
|
6457
|
-
}
|
|
6458
|
-
),
|
|
6459
|
-
model.label != null && model.label !== "" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6460
|
-
"span",
|
|
6461
|
-
{
|
|
6462
|
-
className: cn(
|
|
6463
|
-
"z-10 inline-flex items-center justify-center leading-none",
|
|
6464
|
-
labelClassName
|
|
6465
|
-
),
|
|
6466
|
-
style: { minHeight: model.iconSize },
|
|
6467
|
-
children: model.label
|
|
6468
|
-
}
|
|
6469
|
-
)
|
|
6475
|
+
trailing ? labelNode : iconGroup,
|
|
6476
|
+
trailing ? iconGroup : labelNode
|
|
6470
6477
|
]
|
|
6471
6478
|
}
|
|
6472
6479
|
);
|
|
@@ -31498,7 +31505,7 @@ var GlowWrapper = ({
|
|
|
31498
31505
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31499
31506
|
"span",
|
|
31500
31507
|
{
|
|
31501
|
-
className: "\
|
|
31508
|
+
className: "\n pointer-events-none absolute inset-0 opacity-0 \n group-hover:opacity-100 transition-opacity duration-300\n ",
|
|
31502
31509
|
style: { background: "var(--glow-bg)" }
|
|
31503
31510
|
}
|
|
31504
31511
|
),
|
|
@@ -59414,6 +59421,8 @@ exports.ProgressBarRating = ProgressBarRating;
|
|
|
59414
59421
|
exports.Quote = Quote;
|
|
59415
59422
|
exports.Radio = Radio_default;
|
|
59416
59423
|
exports.RealtimeChartDataSource = RealtimeChartDataSource;
|
|
59424
|
+
exports.ReviewComposer = ReviewComposer_default;
|
|
59425
|
+
exports.ReviewForm = ReviewForm_default;
|
|
59417
59426
|
exports.ReviewThread = ReviewThread_default;
|
|
59418
59427
|
exports.RouteTab = RouteTab_default;
|
|
59419
59428
|
exports.RouteTabs = RouteTabs_default;
|