@momo-webplatform/mobase 0.0.12 → 0.0.14

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.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/publish/cjs/components/AlertDialog/AlertDialog.js +1 -1
  3. package/publish/cjs/components/Button/Button.js +1 -1
  4. package/publish/cjs/components/Select/Select.js +1 -1
  5. package/publish/cjs/components/TextArea/TextArea.js +38 -0
  6. package/publish/cjs/components/TextArea/index.js +5 -0
  7. package/publish/cjs/components/TextInput/TextInput.js +66 -0
  8. package/publish/cjs/components/TextInput/index.js +5 -0
  9. package/publish/cjs/index.js +0 -33
  10. package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
  11. package/publish/esm/components/AlertDialog/AlertDialog.js +1 -1
  12. package/publish/esm/components/Button/Button.js +1 -1
  13. package/publish/esm/components/Select/Select.js +1 -1
  14. package/publish/esm/components/Tabs/Tabs.d.ts +1 -1
  15. package/publish/esm/components/TextArea/TextArea.d.ts +8 -0
  16. package/publish/esm/components/TextArea/TextArea.js +35 -0
  17. package/publish/esm/components/TextArea/index.d.ts +2 -0
  18. package/publish/esm/components/TextArea/index.js +1 -0
  19. package/publish/esm/components/TextInput/TextInput.d.ts +10 -0
  20. package/publish/esm/components/TextInput/TextInput.js +63 -0
  21. package/publish/esm/components/TextInput/index.d.ts +2 -0
  22. package/publish/esm/components/TextInput/index.js +1 -0
  23. package/publish/esm/index.d.ts +0 -33
  24. package/publish/esm/index.js +0 -33
  25. package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
  26. package/publish/cjs/components/Alert/Alert.js +0 -50
  27. package/publish/cjs/components/Alert/index.js +0 -7
  28. package/publish/cjs/components/Avatar/Avatar.js +0 -74
  29. package/publish/cjs/components/Avatar/index.js +0 -7
  30. package/publish/cjs/components/Calendar/calendar.js +0 -39
  31. package/publish/cjs/components/Calendar/index.js +0 -5
  32. package/publish/cjs/components/Card/Card.js +0 -47
  33. package/publish/cjs/components/Card/index.js +0 -10
  34. package/publish/cjs/components/Collapsible/collapsible.js +0 -33
  35. package/publish/cjs/components/Collapsible/index.js +0 -7
  36. package/publish/cjs/components/Command/command.js +0 -62
  37. package/publish/cjs/components/Command/index.js +0 -13
  38. package/publish/cjs/components/Dialog/dialog.js +0 -57
  39. package/publish/cjs/components/Dialog/index.js +0 -14
  40. package/publish/cjs/components/Drawer/drawer.js +0 -57
  41. package/publish/cjs/components/Drawer/index.js +0 -14
  42. package/publish/cjs/components/DropdownMenu/dropdownmenu.js +0 -75
  43. package/publish/cjs/components/DropdownMenu/index.js +0 -19
  44. package/publish/cjs/components/HoverCard/hover-card.js +0 -38
  45. package/publish/cjs/components/HoverCard/index.js +0 -7
  46. package/publish/cjs/components/Input/index.js +0 -5
  47. package/publish/cjs/components/Input/input.js +0 -34
  48. package/publish/cjs/components/Label/Label.js +0 -35
  49. package/publish/cjs/components/Label/index.js +0 -5
  50. package/publish/cjs/components/Menubar/index.js +0 -20
  51. package/publish/cjs/components/Menubar/menubar.js +0 -77
  52. package/publish/cjs/components/NavigationMenu/index.js +0 -14
  53. package/publish/cjs/components/NavigationMenu/navigation-menu.js +0 -102
  54. package/publish/cjs/components/Progress/Progress.js +0 -33
  55. package/publish/cjs/components/Progress/index.js +0 -5
  56. package/publish/cjs/components/RadioGroup/Radio.js +0 -110
  57. package/publish/cjs/components/RadioGroup/RadioGroup.js +0 -53
  58. package/publish/cjs/components/RadioGroup/index.js +0 -6
  59. package/publish/cjs/components/Sheet/index.js +0 -14
  60. package/publish/cjs/components/Sheet/sheet.js +0 -71
  61. package/publish/cjs/components/Skeleton/index.js +0 -5
  62. package/publish/cjs/components/Skeleton/skeleton.js +0 -9
  63. package/publish/cjs/components/Slider/index.js +0 -5
  64. package/publish/cjs/components/Slider/slider.js +0 -33
  65. package/publish/cjs/components/Switch/Switch.js +0 -54
  66. package/publish/cjs/components/Switch/index.js +0 -6
  67. package/publish/cjs/components/Table/Table.js +0 -53
  68. package/publish/cjs/components/Table/index.js +0 -12
  69. package/publish/cjs/components/Textarea/Textarea.js +0 -14
  70. package/publish/cjs/components/Textarea/index.js +0 -5
  71. package/publish/esm/components/Alert/Alert.d.ts +0 -8
  72. package/publish/esm/components/Alert/Alert.js +0 -22
  73. package/publish/esm/components/Alert/index.d.ts +0 -1
  74. package/publish/esm/components/Alert/index.js +0 -1
  75. package/publish/esm/components/Avatar/Avatar.d.ts +0 -33
  76. package/publish/esm/components/Avatar/Avatar.js +0 -46
  77. package/publish/esm/components/Avatar/index.d.ts +0 -2
  78. package/publish/esm/components/Avatar/index.js +0 -1
  79. package/publish/esm/components/Calendar/calendar.d.ts +0 -8
  80. package/publish/esm/components/Calendar/calendar.js +0 -36
  81. package/publish/esm/components/Calendar/index.d.ts +0 -1
  82. package/publish/esm/components/Calendar/index.js +0 -1
  83. package/publish/esm/components/Card/Card.d.ts +0 -8
  84. package/publish/esm/components/Card/Card.js +0 -16
  85. package/publish/esm/components/Card/index.d.ts +0 -1
  86. package/publish/esm/components/Card/index.js +0 -1
  87. package/publish/esm/components/Collapsible/collapsible.d.ts +0 -5
  88. package/publish/esm/components/Collapsible/collapsible.js +0 -5
  89. package/publish/esm/components/Collapsible/index.d.ts +0 -1
  90. package/publish/esm/components/Collapsible/index.js +0 -1
  91. package/publish/esm/components/Command/command.d.ts +0 -50
  92. package/publish/esm/components/Command/command.js +0 -28
  93. package/publish/esm/components/Command/index.d.ts +0 -1
  94. package/publish/esm/components/Command/index.js +0 -1
  95. package/publish/esm/components/Dialog/dialog.d.ts +0 -19
  96. package/publish/esm/components/Dialog/dialog.js +0 -22
  97. package/publish/esm/components/Dialog/index.d.ts +0 -1
  98. package/publish/esm/components/Dialog/index.js +0 -1
  99. package/publish/esm/components/Drawer/drawer.d.ts +0 -24
  100. package/publish/esm/components/Drawer/drawer.js +0 -22
  101. package/publish/esm/components/Drawer/index.d.ts +0 -1
  102. package/publish/esm/components/Drawer/index.js +0 -1
  103. package/publish/esm/components/DropdownMenu/dropdownmenu.d.ts +0 -27
  104. package/publish/esm/components/DropdownMenu/dropdownmenu.js +0 -35
  105. package/publish/esm/components/DropdownMenu/index.d.ts +0 -1
  106. package/publish/esm/components/DropdownMenu/index.js +0 -1
  107. package/publish/esm/components/HoverCard/hover-card.d.ts +0 -6
  108. package/publish/esm/components/HoverCard/hover-card.js +0 -10
  109. package/publish/esm/components/HoverCard/index.d.ts +0 -1
  110. package/publish/esm/components/HoverCard/index.js +0 -1
  111. package/publish/esm/components/Input/index.d.ts +0 -1
  112. package/publish/esm/components/Input/index.js +0 -1
  113. package/publish/esm/components/Input/input.d.ts +0 -5
  114. package/publish/esm/components/Input/input.js +0 -8
  115. package/publish/esm/components/Label/Label.d.ts +0 -5
  116. package/publish/esm/components/Label/Label.js +0 -9
  117. package/publish/esm/components/Label/index.d.ts +0 -1
  118. package/publish/esm/components/Label/index.js +0 -1
  119. package/publish/esm/components/Menubar/index.d.ts +0 -1
  120. package/publish/esm/components/Menubar/index.js +0 -1
  121. package/publish/esm/components/Menubar/menubar.d.ts +0 -31
  122. package/publish/esm/components/Menubar/menubar.js +0 -36
  123. package/publish/esm/components/NavigationMenu/index.d.ts +0 -1
  124. package/publish/esm/components/NavigationMenu/index.js +0 -1
  125. package/publish/esm/components/NavigationMenu/navigation-menu.d.ts +0 -13
  126. package/publish/esm/components/NavigationMenu/navigation-menu.js +0 -64
  127. package/publish/esm/components/Progress/Progress.d.ts +0 -4
  128. package/publish/esm/components/Progress/Progress.js +0 -7
  129. package/publish/esm/components/Progress/index.d.ts +0 -1
  130. package/publish/esm/components/Progress/index.js +0 -1
  131. package/publish/esm/components/RadioGroup/Radio.d.ts +0 -22
  132. package/publish/esm/components/RadioGroup/Radio.js +0 -84
  133. package/publish/esm/components/RadioGroup/RadioGroup.d.ts +0 -44
  134. package/publish/esm/components/RadioGroup/RadioGroup.js +0 -25
  135. package/publish/esm/components/RadioGroup/index.d.ts +0 -2
  136. package/publish/esm/components/RadioGroup/index.js +0 -1
  137. package/publish/esm/components/Sheet/index.d.ts +0 -1
  138. package/publish/esm/components/Sheet/index.js +0 -1
  139. package/publish/esm/components/Sheet/sheet.d.ts +0 -25
  140. package/publish/esm/components/Sheet/sheet.js +0 -36
  141. package/publish/esm/components/Skeleton/index.d.ts +0 -1
  142. package/publish/esm/components/Skeleton/index.js +0 -1
  143. package/publish/esm/components/Skeleton/skeleton.d.ts +0 -2
  144. package/publish/esm/components/Skeleton/skeleton.js +0 -6
  145. package/publish/esm/components/Slider/index.d.ts +0 -1
  146. package/publish/esm/components/Slider/index.js +0 -1
  147. package/publish/esm/components/Slider/slider.d.ts +0 -4
  148. package/publish/esm/components/Slider/slider.js +0 -7
  149. package/publish/esm/components/Switch/Switch.d.ts +0 -37
  150. package/publish/esm/components/Switch/Switch.js +0 -26
  151. package/publish/esm/components/Switch/index.d.ts +0 -2
  152. package/publish/esm/components/Switch/index.js +0 -1
  153. package/publish/esm/components/Table/Table.d.ts +0 -10
  154. package/publish/esm/components/Table/Table.js +0 -20
  155. package/publish/esm/components/Table/index.d.ts +0 -1
  156. package/publish/esm/components/Table/index.js +0 -1
  157. package/publish/esm/components/Textarea/Textarea.d.ts +0 -5
  158. package/publish/esm/components/Textarea/Textarea.js +0 -8
  159. package/publish/esm/components/Textarea/index.d.ts +0 -1
  160. package/publish/esm/components/Textarea/index.js +0 -1
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
- import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
4
- import { Primitive } from "@radix-ui/react-primitive";
5
- import { Radio, RadioIndicator } from "./Radio";
6
- import type * as Radix from "@radix-ui/react-primitive";
7
- export declare const createRadioGroupContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
8
- (props: ContextValueType & {
9
- scope: import("@radix-ui/react-context").Scope<ContextValueType>;
10
- children: React.ReactNode;
11
- }): JSX.Element;
12
- displayName: string;
13
- }, (consumerName: string, scope: import("@radix-ui/react-context").Scope<ContextValueType | undefined>) => ContextValueType], createRadioGroupScope: import("@radix-ui/react-context").CreateScope;
14
- type RadioGroupContextValue = {
15
- name?: string;
16
- required: boolean;
17
- disabled: boolean;
18
- value?: string;
19
- onValueChange(value: string): void;
20
- };
21
- type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
22
- type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
23
- interface RadioGroupProps extends PrimitiveDivProps {
24
- name?: RadioGroupContextValue["name"];
25
- required?: Radix.ComponentPropsWithoutRef<typeof Radio>["required"];
26
- disabled?: Radix.ComponentPropsWithoutRef<typeof Radio>["disabled"];
27
- dir?: RovingFocusGroupProps["dir"];
28
- orientation?: RovingFocusGroupProps["orientation"];
29
- loop?: RovingFocusGroupProps["loop"];
30
- defaultValue?: string;
31
- value?: RadioGroupContextValue["value"];
32
- onValueChange?: RadioGroupContextValue["onValueChange"];
33
- }
34
- type RadioIndicatorProps = Radix.ComponentPropsWithoutRef<typeof RadioIndicator>;
35
- interface RadioGroupIndicatorProps extends RadioIndicatorProps {
36
- }
37
- type RadioProps = Radix.ComponentPropsWithoutRef<typeof Radio>;
38
- interface RadioGroupItemProps extends Omit<RadioProps, "onCheck" | "name"> {
39
- value: string;
40
- }
41
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
- declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
43
- export type { RadioGroupProps, RadioGroupItemProps, RadioGroupIndicatorProps };
44
- export { RadioGroup, RadioGroupItem };
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
4
- import { Circle } from "lucide-react";
5
- import { createContextScope } from "@radix-ui/react-context";
6
- import { createRovingFocusGroupScope } from "@radix-ui/react-roving-focus";
7
- import { cn } from "../../helpers/utils";
8
- import { createRadioScope } from "./Radio";
9
- /* -------------------------------------------------------------------------------------------------
10
- * RadioGroup
11
- * -----------------------------------------------------------------------------------------------*/
12
- const RADIO_GROUP_NAME = "RadioGroup";
13
- export const [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME, [
14
- createRovingFocusGroupScope,
15
- createRadioScope,
16
- ]);
17
- const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
18
- return (_jsx(RadioGroupPrimitive.Root, { className: cn("grid gap-4 text-base", props?.orientation === "horizontal" ? "grid-cols-2" : "", className), ...props, ref: ref }));
19
- });
20
- RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
21
- const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
22
- return (_jsx(RadioGroupPrimitive.Item, { ref: ref, className: cn("aspect-square h-4 w-4 data-[state=checked]:text-white disabled:data-[state=checked]:text-gray-500 disabled:bg-gray-300 disabled:border-none rounded-full border-2 disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 border-gray-300 data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40", className), ...props, children: _jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center w-full h-full rounded-full", children: _jsx(Circle, { className: "h-2 w-2 fill-current text-current" }) }) }));
23
- });
24
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
25
- export { RadioGroup, RadioGroupItem };
@@ -1,2 +0,0 @@
1
- export { RadioGroup, RadioGroupItem } from "./RadioGroup";
2
- export type { RadioGroupProps, RadioGroupItemProps, RadioGroupIndicatorProps, } from "./RadioGroup";
@@ -1 +0,0 @@
1
- export { RadioGroup, RadioGroupItem } from "./RadioGroup";
@@ -1 +0,0 @@
1
- export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from "./sheet";
@@ -1 +0,0 @@
1
- export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from "./sheet";
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import * as SheetPrimitive from "@radix-ui/react-dialog";
3
- import { type VariantProps } from "class-variance-authority";
4
- declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
5
- declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
- declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const sheetVariants: (props?: ({
10
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
11
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
- interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
- }
14
- declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
15
- declare const SheetHeader: {
16
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
- displayName: string;
18
- };
19
- declare const SheetFooter: {
20
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
21
- displayName: string;
22
- };
23
- declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
24
- declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
25
- export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as SheetPrimitive from "@radix-ui/react-dialog";
4
- import { cva } from "class-variance-authority";
5
- import { X } from "lucide-react";
6
- import { cn } from "../../helpers/utils";
7
- const Sheet = SheetPrimitive.Root;
8
- const SheetTrigger = SheetPrimitive.Trigger;
9
- const SheetClose = SheetPrimitive.Close;
10
- const SheetPortal = SheetPrimitive.Portal;
11
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
12
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
13
- const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
14
- variants: {
15
- side: {
16
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
17
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
18
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
19
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
20
- },
21
- },
22
- defaultVariants: {
23
- side: "right",
24
- },
25
- });
26
- const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Content, { ref: ref, className: cn(sheetVariants({ side }), className), ...props, children: [children, _jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [_jsx(X, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] })));
27
- SheetContent.displayName = SheetPrimitive.Content.displayName;
28
- const SheetHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
29
- SheetHeader.displayName = "SheetHeader";
30
- const SheetFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
31
- SheetFooter.displayName = "SheetFooter";
32
- const SheetTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold text-foreground", className), ...props })));
33
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
34
- const SheetDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
35
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
36
- export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -1 +0,0 @@
1
- export { Skeleton } from "./skeleton";
@@ -1 +0,0 @@
1
- export { Skeleton } from "./skeleton";
@@ -1,2 +0,0 @@
1
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
- export { Skeleton };
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../../helpers/utils";
3
- function Skeleton({ className, ...props }) {
4
- return (_jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props }));
5
- }
6
- export { Skeleton };
@@ -1 +0,0 @@
1
- export { Slider } from "./slider";
@@ -1 +0,0 @@
1
- export { Slider } from "./slider";
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import * as SliderPrimitive from "@radix-ui/react-slider";
3
- declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- export { Slider };
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as SliderPrimitive from "@radix-ui/react-slider";
4
- import { cn } from "../../helpers/utils";
5
- const Slider = React.forwardRef(({ className, ...props }, ref) => (_jsxs(SliderPrimitive.Root, { ref: ref, className: cn("relative flex w-full touch-none select-none items-center", className), ...props, children: [_jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: _jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }), _jsx(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })] })));
6
- Slider.displayName = SliderPrimitive.Root.displayName;
7
- export { Slider };
@@ -1,37 +0,0 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
- import type { Scope } from "@radix-ui/react-context";
5
- import type * as Radix from "@radix-ui/react-primitive";
6
- export declare const createSwitchContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
7
- (props: ContextValueType & {
8
- scope: Scope<ContextValueType>;
9
- children: React.ReactNode;
10
- }): JSX.Element;
11
- displayName: string;
12
- }, (consumerName: string, scope: Scope<ContextValueType | undefined>) => ContextValueType], createSwitchScope: import("@radix-ui/react-context").CreateScope;
13
- type SwitchContextValue = {
14
- checked: boolean;
15
- disabled?: boolean;
16
- };
17
- export declare const SwitchProvider: {
18
- (props: SwitchContextValue & {
19
- scope: Scope<SwitchContextValue>;
20
- children: React.ReactNode;
21
- }): JSX.Element;
22
- displayName: string;
23
- }, useSwitchContext: (consumerName: string, scope: Scope<SwitchContextValue | undefined>) => SwitchContextValue;
24
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
25
- interface SwitchProps extends PrimitiveButtonProps {
26
- checked?: boolean;
27
- defaultChecked?: boolean;
28
- required?: boolean;
29
- onCheckedChange?(checked: boolean): void;
30
- }
31
- type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
32
- interface SwitchThumbProps extends PrimitiveSpanProps {
33
- }
34
- declare const SwitchThumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>;
35
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
36
- export { Switch, SwitchThumb };
37
- export type { SwitchProps, SwitchThumbProps };
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as SwitchPrimitives from "@radix-ui/react-switch";
4
- import { createContextScope } from "@radix-ui/react-context";
5
- import { Primitive } from "@radix-ui/react-primitive";
6
- import { cn } from "../../helpers/utils";
7
- const SWITCH_NAME = "Switch";
8
- export const [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
9
- export const [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
10
- function getState(checked) {
11
- return checked ? "checked" : "unchecked";
12
- }
13
- /* -------------------------------------------------------------------------------------------------
14
- * SwitchThumb
15
- * -----------------------------------------------------------------------------------------------*/
16
- const THUMB_NAME = "SwitchThumb";
17
- const SwitchThumb = React.forwardRef((props, forwardedRef) => {
18
- const { __scopeSwitch, ...thumbProps } = props;
19
- const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
20
- return (_jsx(Primitive.span, { "data-state": getState(context.checked), "data-disabled": context.disabled ? "" : undefined, ...thumbProps, ref: forwardedRef }));
21
- });
22
- SwitchThumb.displayName = THUMB_NAME;
23
- /* ---------------------------------------------------------------------------------------------- */
24
- const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400", className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5") }) })));
25
- Switch.displayName = SwitchPrimitives.Root.displayName;
26
- export { Switch, SwitchThumb };
@@ -1,2 +0,0 @@
1
- export { Switch, SwitchThumb } from "./Switch";
2
- export type { SwitchProps, SwitchThumbProps } from "./Switch";
@@ -1 +0,0 @@
1
- export { Switch, SwitchThumb } from "./Switch";
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
- declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
- declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
- declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
- declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
- declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
- declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { cn } from "../../helpers/utils";
4
- const Table = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", { ref: ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })));
5
- Table.displayName = "Table";
6
- const TableHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("thead", { ref: ref, className: cn("[&_tr]:border-b", className), ...props })));
7
- TableHeader.displayName = "TableHeader";
8
- const TableBody = React.forwardRef(({ className, ...props }, ref) => (_jsx("tbody", { ref: ref, className: cn("[&_tr:last-child]:border-0", className), ...props })));
9
- TableBody.displayName = "TableBody";
10
- const TableFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("tfoot", { ref: ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })));
11
- TableFooter.displayName = "TableFooter";
12
- const TableRow = React.forwardRef(({ className, ...props }, ref) => (_jsx("tr", { ref: ref, className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className), ...props })));
13
- TableRow.displayName = "TableRow";
14
- const TableHead = React.forwardRef(({ className, ...props }, ref) => (_jsx("th", { ref: ref, className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className), ...props })));
15
- TableHead.displayName = "TableHead";
16
- const TableCell = React.forwardRef(({ className, ...props }, ref) => (_jsx("td", { ref: ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })));
17
- TableCell.displayName = "TableCell";
18
- const TableCaption = React.forwardRef(({ className, ...props }, ref) => (_jsx("caption", { ref: ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })));
19
- TableCaption.displayName = "TableCaption";
20
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -1 +0,0 @@
1
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./Table";
@@ -1 +0,0 @@
1
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./Table";
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
- }
4
- declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
- export { Textarea };
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../../helpers/utils";
3
- import React from "react";
4
- const Textarea = React.forwardRef(({ className, ...props }, ref) => {
5
- return (_jsx("textarea", { className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props }));
6
- });
7
- Textarea.displayName = "Textarea";
8
- export { Textarea };
@@ -1 +0,0 @@
1
- export { Textarea } from "./Textarea";
@@ -1 +0,0 @@
1
- export { Textarea } from "./Textarea";