@alexgorbatchev/shadcn 0.0.197 → 0.0.198
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.
|
@@ -35,7 +35,7 @@ function Tabs2({ analytics, density, className, orientation = "horizontal", ...p
|
|
|
35
35
|
var tabsListVariants2 = cva("group/tabs-list inline-flex w-fit items-center justify-center rounded-sm p-px text-muted-foreground group-data-[orientation=horizontal]/tabs:h-control group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
36
36
|
variants: {
|
|
37
37
|
variant: {
|
|
38
|
-
default: "bg-
|
|
38
|
+
default: "bg-muted",
|
|
39
39
|
line: "gap-1 bg-transparent"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
@@ -56,7 +56,7 @@ function TabsTrigger2({ density, className, ...props }) {
|
|
|
56
56
|
return /* @__PURE__ */ jsx(TabsPrimitive.Tab, {
|
|
57
57
|
"data-density": density,
|
|
58
58
|
"data-slot": "tabs-trigger",
|
|
59
|
-
className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-sm border border-transparent px-2 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:border-input data-active:bg-
|
|
59
|
+
className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-sm border border-transparent px-2 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:border-input data-active:bg-background data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:border-transparent", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", typeof className === "function" ? className(state) : className),
|
|
60
60
|
...props
|
|
61
61
|
});
|
|
62
62
|
}
|
package/dist/index.js
CHANGED
package/dist/prototype.js
CHANGED
|
@@ -2051,7 +2051,7 @@ var program = new Command;
|
|
|
2051
2051
|
// package.json
|
|
2052
2052
|
var package_default = {
|
|
2053
2053
|
name: "@alexgorbatchev/shadcn",
|
|
2054
|
-
version: "0.0.
|
|
2054
|
+
version: "0.0.198",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -56,7 +56,7 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
56
56
|
{}
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### MutedListLight
|
|
60
60
|
|
|
61
61
|
```tsx
|
|
62
62
|
{
|
|
@@ -65,7 +65,7 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
###
|
|
68
|
+
### MutedListDark
|
|
69
69
|
|
|
70
70
|
```tsx
|
|
71
71
|
{
|
|
@@ -105,6 +105,22 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
105
105
|
}
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
### LineBorderOverride
|
|
109
|
+
|
|
110
|
+
```tsx
|
|
111
|
+
{
|
|
112
|
+
render: (args) => (<Tabs {...args}>
|
|
113
|
+
<TabsList variant="line" aria-label="Project sections">
|
|
114
|
+
<TabsTrigger value="overview" className="data-active:border-transparent">
|
|
115
|
+
Overview
|
|
116
|
+
</TabsTrigger>
|
|
117
|
+
<TabsTrigger value="settings">Settings</TabsTrigger>
|
|
118
|
+
</TabsList>
|
|
119
|
+
<TabsContent value="overview">Project overview.</TabsContent>
|
|
120
|
+
</Tabs>)
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
108
124
|
### NativeRootCallback
|
|
109
125
|
|
|
110
126
|
```tsx
|