@momo-webplatform/mobase 0.2.5 → 0.2.6
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/esm/index.d.ts +13 -13
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { TextareaHTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { AccordionSingleProps, AccordionMultipleProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps } from '@radix-ui/react-accordion';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -59,7 +59,7 @@ declare const BreadcrumbEllipsis: {
|
|
|
59
59
|
declare const buttonVariants: (props?: ({
|
|
60
60
|
variant?: "primary" | "secondary" | "outline" | "tonal" | "danger" | "transparent" | null | undefined;
|
|
61
61
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
62
|
-
} &
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
63
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
64
64
|
/**
|
|
65
65
|
* CSS class to be appended to the root element.
|
|
@@ -231,7 +231,7 @@ declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
231
231
|
declare const iconButtonVariants: (props?: ({
|
|
232
232
|
variant?: "primary" | "secondary" | "outline" | "tonal" | "danger" | "transparent" | null | undefined;
|
|
233
233
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
234
|
-
} &
|
|
234
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
235
235
|
interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
236
236
|
/**
|
|
237
237
|
* CSS class to be appended to the root element.
|
|
@@ -293,7 +293,7 @@ declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$
|
|
|
293
293
|
|
|
294
294
|
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
295
295
|
variant?: "sucess" | "warning" | "error" | null | undefined;
|
|
296
|
-
} &
|
|
296
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
297
297
|
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
298
298
|
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
299
299
|
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
@@ -319,9 +319,9 @@ declare function useToast(): {
|
|
|
319
319
|
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
320
320
|
|
|
321
321
|
declare const textButtonVariants: (props?: ({
|
|
322
|
-
variant?: "
|
|
322
|
+
variant?: "primary" | "secondary" | "default" | null | undefined;
|
|
323
323
|
size?: "default" | "lg" | null | undefined;
|
|
324
|
-
} &
|
|
324
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
325
325
|
interface TextButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof textButtonVariants> {
|
|
326
326
|
/**
|
|
327
327
|
* CSS class to be appended to the root element.
|
|
@@ -394,7 +394,7 @@ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrim
|
|
|
394
394
|
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
395
395
|
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
396
396
|
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
397
|
-
declare const navigationMenuTriggerStyle: (props?:
|
|
397
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
398
398
|
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
399
399
|
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
400
400
|
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -405,7 +405,7 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.Sw
|
|
|
405
405
|
|
|
406
406
|
declare const radioGroupVariants: (props?: ({
|
|
407
407
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
408
|
-
} &
|
|
408
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
409
409
|
interface RadioGroupProps extends VariantProps<typeof radioGroupVariants> {
|
|
410
410
|
className?: string;
|
|
411
411
|
disabled?: boolean;
|
|
@@ -567,10 +567,10 @@ interface CalloutProps {
|
|
|
567
567
|
declare const Callout: React$1.ForwardRefExoticComponent<CalloutProps & VariantProps<(props?: ({
|
|
568
568
|
typeDiv?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
|
|
569
569
|
disabled?: boolean | null | undefined;
|
|
570
|
-
} &
|
|
570
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & VariantProps<(props?: ({
|
|
571
571
|
typeIcon?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
|
|
572
572
|
disabled?: boolean | null | undefined;
|
|
573
|
-
} &
|
|
573
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
574
574
|
|
|
575
575
|
interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
576
576
|
inputClassName?: string;
|
|
@@ -641,8 +641,8 @@ declare const ChoiceboxGroup: ({ direction, label, type, value, children, disabl
|
|
|
641
641
|
}) => react_jsx_runtime.JSX.Element;
|
|
642
642
|
|
|
643
643
|
declare const badgeVariants: (props?: ({
|
|
644
|
-
variant?: "
|
|
645
|
-
} &
|
|
644
|
+
variant?: "secondary" | "outline" | "danger" | "default" | null | undefined;
|
|
645
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
646
646
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
647
647
|
}
|
|
648
648
|
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
@@ -654,7 +654,7 @@ interface ProgressBarProps {
|
|
|
654
654
|
}
|
|
655
655
|
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & ProgressBarProps & VariantProps<(props?: ({
|
|
656
656
|
variant?: "progress" | "disabled" | "success" | "empty" | null | undefined;
|
|
657
|
-
} &
|
|
657
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
658
658
|
|
|
659
659
|
interface HeroContentProps {
|
|
660
660
|
template?: 1 | 2 | 3 | 4 | 5 | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-webplatform/mobase",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Mobase is the UI framework upon we build product experiences at MoMo.vn, base on Radix primitives, and Tailwind CSS.",
|
|
5
5
|
"author": "MoMo - Front-end dev",
|
|
6
6
|
"license": "MIT",
|