@luscii-healthtech/web-ui 52.4.1 → 52.5.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 +27 -2
- 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/Tabbar/Tabbar.d.ts +18 -0
- package/dist/src/components/Tabbar/TabbarItem.d.ts +7 -0
- package/dist/src/generated/components/Tabbar/Tabbar.d.ts +18 -0
- package/dist/src/generated/components/Tabbar/TabbarItem.d.ts +7 -0
- package/dist/stories/Tabbar.stories.d.ts +8 -0
- package/dist/stories/Tabs.stories.d.ts +40 -0
- package/dist/web-ui-tailwind.css +10 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3095,12 +3095,37 @@ const TabsRoot = React__namespace.forwardRef((props, ref) => jsxRuntime.jsx(Tabs
|
|
|
3095
3095
|
TabsRoot.displayName = "Tabs.Root";
|
|
3096
3096
|
const TabsList = React__namespace.forwardRef((_a, ref) => {
|
|
3097
3097
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3098
|
-
return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: cn(
|
|
3098
|
+
return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: cn(
|
|
3099
|
+
// `items-stretch` lets the tallest trigger drive the row height
|
|
3100
|
+
// so every trigger — with or without an adornment (Badge,
|
|
3101
|
+
// spinner, …) — shares the same content-box. This keeps the
|
|
3102
|
+
// underline flush across the row and any sibling `<hr>` aligned
|
|
3103
|
+
// with every trigger's bottom edge.
|
|
3104
|
+
"ui:inline-flex ui:items-stretch ui:justify-center ui:gap-(--ui-spacing-xl)",
|
|
3105
|
+
className
|
|
3106
|
+
) }, props));
|
|
3099
3107
|
});
|
|
3100
3108
|
TabsList.displayName = "Tabs.List";
|
|
3101
3109
|
const TabsTrigger = React__namespace.forwardRef((_a, ref) => {
|
|
3102
3110
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3103
|
-
return jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: cn(
|
|
3111
|
+
return jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: cn(
|
|
3112
|
+
// Use an inline-flex context so the label and any adornments
|
|
3113
|
+
// (Badge, LoadingIndicator, etc.) align by flex cross-axis
|
|
3114
|
+
// centering rather than by text baseline. Without this the
|
|
3115
|
+
// trigger falls back to inline layout, where atomic inline
|
|
3116
|
+
// adornments with `vertical-align: baseline` grow the line-box
|
|
3117
|
+
// and make triggers with adornments taller than plain-text ones.
|
|
3118
|
+
// Row-wide height equalization is handled by `Tabs.List` via
|
|
3119
|
+
// `items-stretch` — this trigger only centers its own children.
|
|
3120
|
+
"ui:inline-flex ui:items-center",
|
|
3121
|
+
"ui:transition-all",
|
|
3122
|
+
"ui:hover:text-primary",
|
|
3123
|
+
"ui:disabled:pointer-events-none ui:disabled:opacity-50",
|
|
3124
|
+
"ui:border-b-2 ui:border-transparent",
|
|
3125
|
+
"ui:data-[state=active]:text-primary ui:data-[state=active]:border-primary",
|
|
3126
|
+
"ui:py-(--ui-spacing-m)",
|
|
3127
|
+
className
|
|
3128
|
+
) }, props));
|
|
3104
3129
|
});
|
|
3105
3130
|
TabsTrigger.displayName = "Tabs.Trigger";
|
|
3106
3131
|
const TabsContent = React__namespace.forwardRef((_a, ref) => {
|