@bubo-squared/ui-framework 0.2.16 → 0.2.18
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.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
11
11
|
import { ClassValue } from 'clsx';
|
|
12
12
|
|
|
13
13
|
declare const buttonVariants: (props?: ({
|
|
14
|
-
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
14
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | "destructive" | null | undefined;
|
|
15
15
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
16
16
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
17
|
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -27,7 +27,7 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
28
28
|
|
|
29
29
|
declare const iconButtonVariants: (props?: ({
|
|
30
|
-
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
30
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | "destructive" | null | undefined;
|
|
31
31
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
32
32
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
33
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
11
11
|
import { ClassValue } from 'clsx';
|
|
12
12
|
|
|
13
13
|
declare const buttonVariants: (props?: ({
|
|
14
|
-
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
14
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | "destructive" | null | undefined;
|
|
15
15
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
16
16
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
17
|
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -27,7 +27,7 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
28
28
|
|
|
29
29
|
declare const iconButtonVariants: (props?: ({
|
|
30
|
-
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
30
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | "destructive" | null | undefined;
|
|
31
31
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
32
32
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
33
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,9 @@ var buttonVariants = cva(
|
|
|
26
26
|
"btn-secondary",
|
|
27
27
|
"focus-ring-secondary"
|
|
28
28
|
],
|
|
29
|
+
ghost: [
|
|
30
|
+
"btn-ghost"
|
|
31
|
+
],
|
|
29
32
|
outline: [
|
|
30
33
|
"btn-outline",
|
|
31
34
|
"focus-ring-outline"
|
|
@@ -138,7 +141,7 @@ import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
|
138
141
|
import { cva as cva3 } from "class-variance-authority";
|
|
139
142
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
140
143
|
var iconButtonVariants = cva3(
|
|
141
|
-
"inline-flex items-center justify-center whitespace-nowrap transition-colors disabled:pointer-events-none overflow-hidden p-
|
|
144
|
+
"inline-flex items-center justify-center whitespace-nowrap transition-colors disabled:pointer-events-none overflow-hidden p-2 cursor-pointer",
|
|
142
145
|
{
|
|
143
146
|
variants: {
|
|
144
147
|
variant: {
|
|
@@ -150,6 +153,9 @@ var iconButtonVariants = cva3(
|
|
|
150
153
|
"btn-secondary",
|
|
151
154
|
"focus-ring-secondary"
|
|
152
155
|
],
|
|
156
|
+
ghost: [
|
|
157
|
+
"btn-ghost"
|
|
158
|
+
],
|
|
153
159
|
outline: [
|
|
154
160
|
"btn-outline",
|
|
155
161
|
"focus-ring-outline"
|
|
@@ -3451,7 +3457,7 @@ var Slider = (props) => {
|
|
|
3451
3457
|
style: {
|
|
3452
3458
|
left: `${percent}%`,
|
|
3453
3459
|
top: `calc(50% - ${trackHeight / 2}px)`,
|
|
3454
|
-
"--slider-halo-color": "color-mix(in srgb, var(--color-brand)
|
|
3460
|
+
"--slider-halo-color": "color-mix(in srgb, var(--color-brand) 15%, transparent)"
|
|
3455
3461
|
},
|
|
3456
3462
|
onPointerEnter: () => {
|
|
3457
3463
|
setHoveredThumbIndex(index);
|
|
@@ -3484,7 +3490,7 @@ var Slider = (props) => {
|
|
|
3484
3490
|
offset: 8,
|
|
3485
3491
|
open: isTooltipVisible,
|
|
3486
3492
|
disableHoverableContent: true,
|
|
3487
|
-
className: "z-50",
|
|
3493
|
+
className: "z-50 pointer-events-none py-2",
|
|
3488
3494
|
children: handle
|
|
3489
3495
|
}
|
|
3490
3496
|
);
|