@luscii-healthtech/web-ui 48.2.0 → 48.3.0
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.development.js +94 -0
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/PrimaryTabBar/PrimaryTabBar.d.ts +48 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +7 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -0
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +7 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBar.d.ts +48 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +7 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -0
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +7 -0
- package/dist/src/generated/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/stories/PrimaryTabBar.stories.d.ts +299 -0
- package/dist/web-ui-tailwind.css +214 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3486,6 +3486,99 @@ const Tabs = {
|
|
|
3486
3486
|
LabelText: TabLabelText
|
|
3487
3487
|
};
|
|
3488
3488
|
|
|
3489
|
+
const PrimaryTabBarRoot = React.forwardRef((_a, ref) => {
|
|
3490
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3491
|
+
return jsxRuntime.jsx(TabsPrimitive__namespace.Root, Object.assign({ ref, className: classNames__default.default("ui:pt-f_l", className) }, props));
|
|
3492
|
+
});
|
|
3493
|
+
PrimaryTabBarRoot.displayName = "PrimaryTabBar.Root";
|
|
3494
|
+
|
|
3495
|
+
const PrimaryTabBarList = React.forwardRef((_a, ref) => {
|
|
3496
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3497
|
+
return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: classNames__default.default("ui:flex ui:items-end ui:px-f_l", "ui:border-b ui:border-border-neutral-secondary-default", className), loop: true }, props));
|
|
3498
|
+
});
|
|
3499
|
+
PrimaryTabBarList.displayName = "PrimaryTabBar.List";
|
|
3500
|
+
|
|
3501
|
+
function splitChildren(children) {
|
|
3502
|
+
const text = [];
|
|
3503
|
+
const elements = [];
|
|
3504
|
+
React.Children.forEach(children, (child) => {
|
|
3505
|
+
if (React.isValidElement(child)) {
|
|
3506
|
+
elements.push(child);
|
|
3507
|
+
} else if (child !== null && child !== false && child !== true) {
|
|
3508
|
+
text.push(child);
|
|
3509
|
+
}
|
|
3510
|
+
});
|
|
3511
|
+
return { text, elements };
|
|
3512
|
+
}
|
|
3513
|
+
const PrimaryTabBarTrigger = React.forwardRef((_a, ref) => {
|
|
3514
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3515
|
+
const { text, elements } = splitChildren(children);
|
|
3516
|
+
return jsxRuntime.jsxs(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: classNames__default.default(
|
|
3517
|
+
// Layout
|
|
3518
|
+
"ui:relative ui:inline-flex ui:items-center ui:gap-f_l ui:py-f_m ui:px-f_l",
|
|
3519
|
+
// Sizing
|
|
3520
|
+
"ui:max-w-[250px] ui:min-w-[100px] ui:shrink",
|
|
3521
|
+
// Shape
|
|
3522
|
+
"ui:rounded-tl-[var(--ui-semantic-radius-l)] ui:rounded-tr-[var(--ui-semantic-radius-l)]",
|
|
3523
|
+
// Typography
|
|
3524
|
+
"ui-typo-h4 ui:transition-[color]",
|
|
3525
|
+
// Focus ring
|
|
3526
|
+
"ui:outline-offset-2",
|
|
3527
|
+
// Border — all sides transparent except bottom; overlaps List border via -mb-px
|
|
3528
|
+
"ui:border ui:border-transparent ui:border-b-border-neutral-secondary-default ui:-mb-px",
|
|
3529
|
+
// Inactive state
|
|
3530
|
+
"ui:text-text-neutral-primary-disabled",
|
|
3531
|
+
"ui:data-[state=inactive]:[&>div]:opacity-50",
|
|
3532
|
+
// Active state
|
|
3533
|
+
"ui:data-[state=active]:z-[1]",
|
|
3534
|
+
"ui:data-[state=active]:border-border-neutral-secondary-default",
|
|
3535
|
+
"ui:data-[state=active]:border-b-transparent",
|
|
3536
|
+
"ui:data-[state=active]:bg-background-neutral-secondary-default",
|
|
3537
|
+
"ui:data-[state=active]:text-text-neutral-primary-default",
|
|
3538
|
+
// Scallops (inverse border-radius) — shared pseudo-element base
|
|
3539
|
+
"ui:before:absolute ui:before:bottom-[-1px] ui:before:hidden ui:before:h-[var(--ui-semantic-radius-l)] ui:before:w-[var(--ui-semantic-radius-l)] ui:before:content-['']",
|
|
3540
|
+
"ui:after:absolute ui:after:bottom-[-1px] ui:after:hidden ui:after:h-[var(--ui-semantic-radius-l)] ui:after:w-[var(--ui-semantic-radius-l)] ui:after:content-['']",
|
|
3541
|
+
"ui:data-[state=active]:before:block ui:data-[state=active]:after:block",
|
|
3542
|
+
// Left scallop
|
|
3543
|
+
"ui:before:left-[calc(var(--ui-semantic-radius-l)*-1)] ui:before:rounded-br-[var(--ui-semantic-radius-l)]",
|
|
3544
|
+
"ui:before:border-b ui:before:border-r ui:before:border-border-neutral-secondary-default",
|
|
3545
|
+
"ui:before:shadow-[3px_3px_0_2px_var(--ui-color-background-neutral-secondary-default)]",
|
|
3546
|
+
// Right scallop
|
|
3547
|
+
"ui:after:right-[calc(var(--ui-semantic-radius-l)*-1)] ui:after:rounded-bl-[var(--ui-semantic-radius-l)]",
|
|
3548
|
+
"ui:after:border-b ui:after:border-l ui:after:border-border-neutral-secondary-default",
|
|
3549
|
+
"ui:after:shadow-[-3px_3px_0_2px_var(--ui-color-background-neutral-secondary-default)]",
|
|
3550
|
+
className
|
|
3551
|
+
) }, props, { children: [text.length > 0 && jsxRuntime.jsx("span", { className: "ui:truncate", children: text }), elements] }));
|
|
3552
|
+
});
|
|
3553
|
+
PrimaryTabBarTrigger.displayName = "PrimaryTabBar.Trigger";
|
|
3554
|
+
|
|
3555
|
+
const PrimaryTabBarContent = React.forwardRef((_a, ref) => {
|
|
3556
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3557
|
+
return jsxRuntime.jsx(TabsPrimitive__namespace.Content, Object.assign({ ref, className: classNames__default.default("ui:relative ui:z-[1]", className), tabIndex: -1 }, props));
|
|
3558
|
+
});
|
|
3559
|
+
PrimaryTabBarContent.displayName = "PrimaryTabBar.Content";
|
|
3560
|
+
|
|
3561
|
+
const PrimaryTabBarOverflowIndicator = React.forwardRef((_a, ref) => {
|
|
3562
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3563
|
+
return jsxRuntime.jsx("span", Object.assign({ ref, className: classNames__default.default("ui-typo-body-small-regular", "ui:text-text-neutral-secondary-disabled", "ui:self-center ui:whitespace-nowrap", className) }, props, { children }));
|
|
3564
|
+
});
|
|
3565
|
+
PrimaryTabBarOverflowIndicator.displayName = "PrimaryTabBar.OverflowIndicator";
|
|
3566
|
+
|
|
3567
|
+
const PrimaryTabBarExtras = React.forwardRef((_a, ref) => {
|
|
3568
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3569
|
+
return jsxRuntime.jsx("div", Object.assign({ ref, className: classNames__default.default("ui:flex ui:items-center ui:self-center ui:gap-f_base ui:mx-f_l", className) }, props, { children }));
|
|
3570
|
+
});
|
|
3571
|
+
PrimaryTabBarExtras.displayName = "PrimaryTabBar.Extras";
|
|
3572
|
+
|
|
3573
|
+
const PrimaryTabBar = {
|
|
3574
|
+
Root: PrimaryTabBarRoot,
|
|
3575
|
+
List: PrimaryTabBarList,
|
|
3576
|
+
Trigger: PrimaryTabBarTrigger,
|
|
3577
|
+
Content: PrimaryTabBarContent,
|
|
3578
|
+
OverflowIndicator: PrimaryTabBarOverflowIndicator,
|
|
3579
|
+
Extras: PrimaryTabBarExtras
|
|
3580
|
+
};
|
|
3581
|
+
|
|
3489
3582
|
const Line = ({ left, right, className }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3490
3583
|
"div",
|
|
3491
3584
|
{
|
|
@@ -7090,6 +7183,7 @@ exports.PlusIcon = PlusIcon;
|
|
|
7090
7183
|
exports.PreviewPhone = PreviewPhone;
|
|
7091
7184
|
exports.PrimaryButton = PrimaryButton;
|
|
7092
7185
|
exports.PrimaryIconButton = PrimaryIconButton;
|
|
7186
|
+
exports.PrimaryTabBar = PrimaryTabBar;
|
|
7093
7187
|
exports.PrintIcon = PrinterIcon;
|
|
7094
7188
|
exports.PrinterIcon = PrinterIcon;
|
|
7095
7189
|
exports.RadioGroupV2 = RadioGroupV2;
|