dawn-ui-react 1.0.0-alpha.12 → 1.0.0-alpha.13
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TabsProps } from '.';
|
|
2
|
-
export declare const Tabs: ({ variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Tabs: ({ size, tone, variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,10 @@ export type TabsTabProps = ComponentProps<typeof BaseTabs.Tab>;
|
|
|
6
6
|
export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
|
|
7
7
|
export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
|
|
8
8
|
export declare const tabsVariants: (props?: ({
|
|
9
|
+
size?: "small" | "large" | "medium" | null | undefined;
|
|
10
|
+
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
9
11
|
variant?: "ghost" | "default" | "underline" | null | undefined;
|
|
10
12
|
fill?: boolean | null | undefined;
|
|
11
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
14
|
export type TabsProps = React.ComponentProps<typeof BaseTabs.Root> & VariantProps<typeof tabsVariants>;
|
|
15
|
+
export type TabsTabValue = TabsTabProps['value'];
|
package/dist/dawn-ui-react.js
CHANGED
|
@@ -27574,27 +27574,202 @@ var sU = sr.createContext(null), cU = ({ id: e, initialDimension: t = {
|
|
|
27574
27574
|
});
|
|
27575
27575
|
}, nW = y("", {
|
|
27576
27576
|
variants: {
|
|
27577
|
+
size: {
|
|
27578
|
+
small: "",
|
|
27579
|
+
medium: "",
|
|
27580
|
+
large: ""
|
|
27581
|
+
},
|
|
27582
|
+
tone: {
|
|
27583
|
+
brand: "",
|
|
27584
|
+
accent: "",
|
|
27585
|
+
neutral: "",
|
|
27586
|
+
error: "",
|
|
27587
|
+
info: "",
|
|
27588
|
+
success: "",
|
|
27589
|
+
warning: ""
|
|
27590
|
+
},
|
|
27577
27591
|
variant: {
|
|
27578
|
-
default: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-
|
|
27579
|
-
ghost: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-
|
|
27580
|
-
underline: "space-y-2xs [&_[role=
|
|
27592
|
+
default: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-full [&_[role=tab]]:rounded-full [&_[role=tablist]]:rounded-full [&_[role=tablist]]:bg-surface-low",
|
|
27593
|
+
ghost: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-full [&_[role=presentation]]:border [&_[role=tab]]:rounded-full [&_[role=tablist]]:rounded-full",
|
|
27594
|
+
underline: "space-y-2xs [&_[role=tablist]]:border-border"
|
|
27581
27595
|
},
|
|
27582
27596
|
fill: {
|
|
27583
27597
|
true: "[&_[role=tab]]:grow [&_[role=tablist]]:w-full",
|
|
27584
27598
|
false: "[&_[role=tablist]]:w-fit"
|
|
27585
27599
|
}
|
|
27586
27600
|
},
|
|
27601
|
+
compoundVariants: [
|
|
27602
|
+
{
|
|
27603
|
+
variant: "default",
|
|
27604
|
+
tone: "brand",
|
|
27605
|
+
class: "[&_[role=presentation]]:bg-brand-default [&_[role=tab]]:data-active:text-brand-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default"
|
|
27606
|
+
},
|
|
27607
|
+
{
|
|
27608
|
+
variant: "default",
|
|
27609
|
+
tone: "accent",
|
|
27610
|
+
class: "[&_[role=presentation]]:bg-accent-default [&_[role=tab]]:data-active:text-accent-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default"
|
|
27611
|
+
},
|
|
27612
|
+
{
|
|
27613
|
+
variant: "default",
|
|
27614
|
+
tone: "neutral",
|
|
27615
|
+
class: "[&_[role=presentation]]:bg-neutral-default [&_[role=tab]]:data-active:text-neutral-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default"
|
|
27616
|
+
},
|
|
27617
|
+
{
|
|
27618
|
+
variant: "default",
|
|
27619
|
+
tone: "error",
|
|
27620
|
+
class: "[&_[role=presentation]]:bg-error-default [&_[role=tab]]:data-active:text-error-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default"
|
|
27621
|
+
},
|
|
27622
|
+
{
|
|
27623
|
+
variant: "default",
|
|
27624
|
+
tone: "neutral",
|
|
27625
|
+
class: "[&_[role=presentation]]:bg-neutral-default [&_[role=tab]]:data-active:text-neutral-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default"
|
|
27626
|
+
},
|
|
27627
|
+
{
|
|
27628
|
+
variant: "default",
|
|
27629
|
+
tone: "info",
|
|
27630
|
+
class: "[&_[role=presentation]]:bg-info-default [&_[role=tab]]:data-active:text-info-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default"
|
|
27631
|
+
},
|
|
27632
|
+
{
|
|
27633
|
+
variant: "default",
|
|
27634
|
+
tone: "success",
|
|
27635
|
+
class: "[&_[role=presentation]]:bg-success-default [&_[role=tab]]:data-active:text-success-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default"
|
|
27636
|
+
},
|
|
27637
|
+
{
|
|
27638
|
+
variant: "default",
|
|
27639
|
+
tone: "warning",
|
|
27640
|
+
class: "[&_[role=presentation]]:bg-warning-default [&_[role=tab]]:data-active:text-warning-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default"
|
|
27641
|
+
},
|
|
27642
|
+
{
|
|
27643
|
+
variant: "ghost",
|
|
27644
|
+
tone: "brand",
|
|
27645
|
+
class: "[&_[role=presentation]]:border-brand-border [&_[role=presentation]]:bg-brand-container [&_[role=tab]]:data-active:text-brand-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default"
|
|
27646
|
+
},
|
|
27647
|
+
{
|
|
27648
|
+
variant: "ghost",
|
|
27649
|
+
tone: "accent",
|
|
27650
|
+
class: "[&_[role=presentation]]:border-accent-border [&_[role=presentation]]:bg-accent-container [&_[role=tab]]:data-active:text-accent-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default"
|
|
27651
|
+
},
|
|
27652
|
+
{
|
|
27653
|
+
variant: "ghost",
|
|
27654
|
+
tone: "neutral",
|
|
27655
|
+
class: "[&_[role=presentation]]:border-neutral-border [&_[role=presentation]]:bg-neutral-container [&_[role=tab]]:data-active:text-neutral-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default"
|
|
27656
|
+
},
|
|
27657
|
+
{
|
|
27658
|
+
variant: "ghost",
|
|
27659
|
+
tone: "error",
|
|
27660
|
+
class: "[&_[role=presentation]]:border-error-border [&_[role=presentation]]:bg-error-container [&_[role=tab]]:data-active:text-error-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default"
|
|
27661
|
+
},
|
|
27662
|
+
{
|
|
27663
|
+
variant: "ghost",
|
|
27664
|
+
tone: "info",
|
|
27665
|
+
class: "[&_[role=presentation]]:border-info-border [&_[role=presentation]]:bg-info-container [&_[role=tab]]:data-active:text-info-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default"
|
|
27666
|
+
},
|
|
27667
|
+
{
|
|
27668
|
+
variant: "ghost",
|
|
27669
|
+
tone: "success",
|
|
27670
|
+
class: "[&_[role=presentation]]:border-success-border [&_[role=presentation]]:bg-success-container [&_[role=tab]]:data-active:text-success-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default"
|
|
27671
|
+
},
|
|
27672
|
+
{
|
|
27673
|
+
variant: "ghost",
|
|
27674
|
+
tone: "warning",
|
|
27675
|
+
class: "[&_[role=presentation]]:border-warning-border [&_[role=presentation]]:bg-warning-container [&_[role=tab]]:data-active:text-warning-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default"
|
|
27676
|
+
},
|
|
27677
|
+
{
|
|
27678
|
+
variant: "underline",
|
|
27679
|
+
tone: "brand",
|
|
27680
|
+
class: "[&_[role=presentation]]:bg-brand-default [&_[role=tab]]:data-active:text-brand-default [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default"
|
|
27681
|
+
},
|
|
27682
|
+
{
|
|
27683
|
+
variant: "underline",
|
|
27684
|
+
tone: "accent",
|
|
27685
|
+
class: "[&_[role=presentation]]:bg-accent-default [&_[role=tab]]:data-active:text-accent-default [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default"
|
|
27686
|
+
},
|
|
27687
|
+
{
|
|
27688
|
+
variant: "underline",
|
|
27689
|
+
tone: "neutral",
|
|
27690
|
+
class: "[&_[role=presentation]]:bg-neutral-default [&_[role=tab]]:data-active:text-neutral-default [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default"
|
|
27691
|
+
},
|
|
27692
|
+
{
|
|
27693
|
+
variant: "underline",
|
|
27694
|
+
tone: "error",
|
|
27695
|
+
class: "[&_[role=presentation]]:bg-error-default [&_[role=tab]]:data-active:text-error-default [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default"
|
|
27696
|
+
},
|
|
27697
|
+
{
|
|
27698
|
+
variant: "underline",
|
|
27699
|
+
tone: "info",
|
|
27700
|
+
class: "[&_[role=presentation]]:bg-info-default [&_[role=tab]]:data-active:text-info-default [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default"
|
|
27701
|
+
},
|
|
27702
|
+
{
|
|
27703
|
+
variant: "underline",
|
|
27704
|
+
tone: "success",
|
|
27705
|
+
class: "[&_[role=presentation]]:bg-success-default [&_[role=tab]]:data-active:text-success-default [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default"
|
|
27706
|
+
},
|
|
27707
|
+
{
|
|
27708
|
+
variant: "underline",
|
|
27709
|
+
tone: "warning",
|
|
27710
|
+
class: "[&_[role=presentation]]:bg-warning-default [&_[role=tab]]:data-active:text-warning-default [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default"
|
|
27711
|
+
},
|
|
27712
|
+
{
|
|
27713
|
+
size: "small",
|
|
27714
|
+
variant: "default",
|
|
27715
|
+
class: "[&_[role=tab]]:h-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:gap-2xs [&_[role=tablist]]:p-3xs"
|
|
27716
|
+
},
|
|
27717
|
+
{
|
|
27718
|
+
size: "medium",
|
|
27719
|
+
variant: "default",
|
|
27720
|
+
class: "[&_[role=tab]]:h-xl [&_[role=tab]]:px-md [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:gap-xs [&_[role=tablist]]:p-2xs"
|
|
27721
|
+
},
|
|
27722
|
+
{
|
|
27723
|
+
size: "large",
|
|
27724
|
+
variant: "default",
|
|
27725
|
+
class: "[&_[role=tab]]:h-2xl [&_[role=tab]]:px-lg [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:gap-sm [&_[role=tablist]]:p-xs"
|
|
27726
|
+
},
|
|
27727
|
+
{
|
|
27728
|
+
size: "small",
|
|
27729
|
+
variant: "ghost",
|
|
27730
|
+
class: "[&_[role=tab]]:h-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:gap-2xs [&_[role=tablist]]:p-3xs"
|
|
27731
|
+
},
|
|
27732
|
+
{
|
|
27733
|
+
size: "medium",
|
|
27734
|
+
variant: "ghost",
|
|
27735
|
+
class: "[&_[role=tab]]:h-xl [&_[role=tab]]:px-md [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:gap-xs"
|
|
27736
|
+
},
|
|
27737
|
+
{
|
|
27738
|
+
size: "large",
|
|
27739
|
+
variant: "ghost",
|
|
27740
|
+
class: "[&_[role=tab]]:h-2xl [&_[role=tab]]:px-lg [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:gap-sm [&_[role=tablist]]:p-xs"
|
|
27741
|
+
},
|
|
27742
|
+
{
|
|
27743
|
+
size: "small",
|
|
27744
|
+
variant: "underline",
|
|
27745
|
+
class: "[&_[role=tab]]:px-lg [&_[role=tab]]:pb-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:h-lg [&_[role=tablist]]:gap-md [&_[role=tablist]]:border-b-2 **:[[role=presentation]]:bottom-[-3px] **:[[role=presentation]]:h-[2px]"
|
|
27746
|
+
},
|
|
27747
|
+
{
|
|
27748
|
+
size: "medium",
|
|
27749
|
+
variant: "underline",
|
|
27750
|
+
class: "[&_[role=tab]]:px-xl [&_[role=tab]]:pb-xs [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:h-xl [&_[role=tablist]]:gap-lg [&_[role=tablist]]:border-b-3 **:[[role=presentation]]:bottom-[-4px] **:[[role=presentation]]:h-[3px]"
|
|
27751
|
+
},
|
|
27752
|
+
{
|
|
27753
|
+
size: "large",
|
|
27754
|
+
variant: "underline",
|
|
27755
|
+
class: "[&_[role=tab]]:px-2xl [&_[role=tab]]:pb-2xs [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:h-2xl [&_[role=tablist]]:gap-xl [&_[role=tablist]]:border-b-4 **:[[role=presentation]]:bottom-[-5px] **:[[role=presentation]]:h-[4px]"
|
|
27756
|
+
}
|
|
27757
|
+
],
|
|
27587
27758
|
defaultVariants: {
|
|
27588
|
-
|
|
27589
|
-
|
|
27759
|
+
fill: !1,
|
|
27760
|
+
size: "medium",
|
|
27761
|
+
tone: "brand",
|
|
27762
|
+
variant: "default"
|
|
27590
27763
|
}
|
|
27591
|
-
}), rW = ({
|
|
27764
|
+
}), rW = ({ size: e, tone: t, variant: n, fill: r, className: i, ref: a, ...o }) => /* @__PURE__ */ X(Wg, {
|
|
27592
27765
|
className: J(nW({
|
|
27593
|
-
|
|
27594
|
-
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
27766
|
+
size: e,
|
|
27767
|
+
tone: t,
|
|
27768
|
+
variant: n,
|
|
27769
|
+
fill: r
|
|
27770
|
+
}), i),
|
|
27771
|
+
ref: a,
|
|
27772
|
+
...o
|
|
27598
27773
|
}), iW = ({ className: e, ...t }) => /* @__PURE__ */ X(Zg, {
|
|
27599
27774
|
className: J("absolute left-[0px] z-[-1] h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) -translate-y-1/2 transition-all duration-300", e),
|
|
27600
27775
|
...t
|