@me1a/ui 1.2.12 → 2.0.0
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.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +63 -0
- package/dist/index.d.ts +63 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +80 -95
- package/dist/components/iconify/iconify.d.ts +0 -7
- package/dist/components/iconify/index.d.ts +0 -2
- package/dist/components/iconify/types.d.ts +0 -2
- package/dist/components/index.cjs.js +0 -7961
- package/dist/components/index.cjs.js.map +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.es.js +0 -7941
- package/dist/components/index.es.js.map +0 -1
- package/dist/hook-forms/form-provider.d.ts +0 -8
- package/dist/hook-forms/index.cjs.js +0 -27806
- package/dist/hook-forms/index.cjs.js.map +0 -1
- package/dist/hook-forms/index.d.ts +0 -11
- package/dist/hook-forms/index.es.js +0 -27765
- package/dist/hook-forms/index.es.js.map +0 -1
- package/dist/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/hook-forms/rhf-select.d.ts +0 -11
- package/dist/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/hooks/index.cjs.js +0 -27
- package/dist/hooks/index.cjs.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.es.js +0 -25
- package/dist/hooks/index.es.js.map +0 -1
- package/dist/hooks/use-boolean.d.ts +0 -9
- package/dist/index.cjs.js +0 -27828
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -27786
- package/dist/index.es.js.map +0 -1
- package/dist/redux/index.cjs.js +0 -1347
- package/dist/redux/index.cjs.js.map +0 -1
- package/dist/redux/index.d.ts +0 -1
- package/dist/redux/index.es.js +0 -1317
- package/dist/redux/index.es.js.map +0 -1
- package/dist/redux-toolkit/index.cjs.js +0 -6471
- package/dist/redux-toolkit/index.cjs.js.map +0 -1
- package/dist/redux-toolkit/index.d.ts +0 -2
- package/dist/redux-toolkit/index.es.js +0 -6410
- package/dist/redux-toolkit/index.es.js.map +0 -1
- package/dist/snackbar/index.cjs.js +0 -10873
- package/dist/snackbar/index.cjs.js.map +0 -1
- package/dist/snackbar/index.d.ts +0 -2
- package/dist/snackbar/index.es.js +0 -10849
- package/dist/snackbar/index.es.js.map +0 -1
- package/dist/snackbar/snackbar-provider.d.ts +0 -7
package/dist/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@tailwind base;@tailwind components;@tailwind utilities;@layer base{:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}}@layer base{*{@apply border-border;}body{@apply bg-background text-foreground;}}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/globals.css"],"sourcesContent":["@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 222.2 84% 4.9%;\n\n --card: 0 0% 100%;\n --card-foreground: 222.2 84% 4.9%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 222.2 84% 4.9%;\n \n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n \n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n \n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n \n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 40% 98%;\n\n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n --ring: 222.2 84% 4.9%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 222.2 84% 4.9%;\n --foreground: 210 40% 98%;\n \n --card: 222.2 84% 4.9%;\n --card-foreground: 210 40% 98%;\n \n --popover: 222.2 84% 4.9%;\n --popover-foreground: 210 40% 98%;\n \n --primary: 210 40% 98%;\n --primary-foreground: 222.2 47.4% 11.2%;\n \n --secondary: 217.2 32.6% 17.5%;\n --secondary-foreground: 210 40% 98%;\n \n --muted: 217.2 32.6% 17.5%;\n --muted-foreground: 215 20.2% 65.1%;\n \n --accent: 217.2 32.6% 17.5%;\n --accent-foreground: 210 40% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 40% 98%;\n \n --border: 217.2 32.6% 17.5%;\n --input: 217.2 32.6% 17.5%;\n --ring: 212.7 26.8% 83.9%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n} "],"mappings":"AAAA,UAAU,KACV,UAAU,WACV,UAAU,UAEV,YACE,MACE,cAAc,EAAE,GAAG,KACnB,cAAc,MAAM,IAAI,KAExB,QAAQ,EAAE,GAAG,KACb,mBAAmB,MAAM,IAAI,KAE7B,WAAW,EAAE,GAAG,KAChB,sBAAsB,MAAM,IAAI,KAEhC,WAAW,MAAM,MAAM,MACvB,sBAAsB,IAAI,IAAI,IAE9B,aAAa,IAAI,IAAI,MACrB,wBAAwB,MAAM,MAAM,MAEpC,SAAS,IAAI,IAAI,MACjB,oBAAoB,MAAM,MAAM,MAEhC,UAAU,IAAI,IAAI,MAClB,qBAAqB,MAAM,MAAM,MAEjC,eAAe,EAAE,MAAM,MACvB,0BAA0B,IAAI,IAAI,IAElC,UAAU,MAAM,MAAM,MACtB,SAAS,MAAM,MAAM,MACrB,QAAQ,MAAM,IAAI,KAElB,UAAU,KACZ,CAEA,CAAC,KACC,cAAc,MAAM,IAAI,KACxB,cAAc,IAAI,IAAI,IAEtB,QAAQ,MAAM,IAAI,KAClB,mBAAmB,IAAI,IAAI,IAE3B,WAAW,MAAM,IAAI,KACrB,sBAAsB,IAAI,IAAI,IAE9B,WAAW,IAAI,IAAI,IACnB,sBAAsB,MAAM,MAAM,MAElC,aAAa,MAAM,MAAM,MACzB,wBAAwB,IAAI,IAAI,IAEhC,SAAS,MAAM,MAAM,MACrB,oBAAoB,IAAI,MAAM,MAE9B,UAAU,MAAM,MAAM,MACtB,qBAAqB,IAAI,IAAI,IAE7B,eAAe,EAAE,MAAM,MACvB,0BAA0B,IAAI,IAAI,IAElC,UAAU,MAAM,MAAM,MACtB,SAAS,MAAM,MAAM,MACrB,QAAQ,MAAM,MAAM,KACtB,CACF,CAEA,YACE,EACE,OAAO,cACT,CACA,KACE,OAAO,cAAc,gBACvB,CACF","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props interface for the Button component.
|
|
8
|
+
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
9
|
+
*
|
|
10
|
+
* @interface ButtonProps
|
|
11
|
+
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
12
|
+
* @extends {VariantProps<typeof buttonVariants>}
|
|
13
|
+
*
|
|
14
|
+
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
15
|
+
* @property {string} [variant] - The visual style variant of the button.
|
|
16
|
+
* @property {string} [size] - The size variant of the button.
|
|
17
|
+
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
18
|
+
*/
|
|
19
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
20
|
+
asChild?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Button variant styles using class-variance-authority.
|
|
25
|
+
* Defines the visual styles for different button variants and sizes.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <Button variant="primary" size="lg">Click me</Button>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const buttonVariants: (props?: ({
|
|
33
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
34
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
35
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
36
|
+
/**
|
|
37
|
+
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
38
|
+
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
39
|
+
*
|
|
40
|
+
* @component
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* // Default button
|
|
44
|
+
* <Button>Click me</Button>
|
|
45
|
+
*
|
|
46
|
+
* // Destructive button with small size
|
|
47
|
+
* <Button variant="destructive" size="sm">Delete</Button>
|
|
48
|
+
*
|
|
49
|
+
* // As a link
|
|
50
|
+
* <Button variant="link" asChild>
|
|
51
|
+
* <a href="/about">About</a>
|
|
52
|
+
* </Button>
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param {ButtonProps} props - The component props
|
|
56
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
57
|
+
* @returns {JSX.Element} A button element
|
|
58
|
+
*/
|
|
59
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
|
|
61
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
62
|
+
|
|
63
|
+
export { Button, buttonVariants, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props interface for the Button component.
|
|
8
|
+
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
9
|
+
*
|
|
10
|
+
* @interface ButtonProps
|
|
11
|
+
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
12
|
+
* @extends {VariantProps<typeof buttonVariants>}
|
|
13
|
+
*
|
|
14
|
+
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
15
|
+
* @property {string} [variant] - The visual style variant of the button.
|
|
16
|
+
* @property {string} [size] - The size variant of the button.
|
|
17
|
+
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
18
|
+
*/
|
|
19
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
20
|
+
asChild?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Button variant styles using class-variance-authority.
|
|
25
|
+
* Defines the visual styles for different button variants and sizes.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <Button variant="primary" size="lg">Click me</Button>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const buttonVariants: (props?: ({
|
|
33
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
34
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
35
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
36
|
+
/**
|
|
37
|
+
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
38
|
+
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
39
|
+
*
|
|
40
|
+
* @component
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* // Default button
|
|
44
|
+
* <Button>Click me</Button>
|
|
45
|
+
*
|
|
46
|
+
* // Destructive button with small size
|
|
47
|
+
* <Button variant="destructive" size="sm">Delete</Button>
|
|
48
|
+
*
|
|
49
|
+
* // As a link
|
|
50
|
+
* <Button variant="link" asChild>
|
|
51
|
+
* <a href="/about">About</a>
|
|
52
|
+
* </Button>
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param {ButtonProps} props - The component props
|
|
56
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
57
|
+
* @returns {JSX.Element} A button element
|
|
58
|
+
*/
|
|
59
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
|
|
61
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
62
|
+
|
|
63
|
+
export { Button, buttonVariants, cn };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var f=require('react'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var f__namespace=/*#__PURE__*/_interopNamespace(f);var l=Object.defineProperty;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var i=(r,o,e)=>o in r?l(r,o,{enumerable:true,configurable:true,writable:true,value:e}):r[o]=e,c=(r,o)=>{for(var e in o||(o={}))u.call(o,e)&&i(r,e,o[e]);if(n)for(var e of n(o))s.call(o,e)&&i(r,e,o[e]);return r};var p=(r,o)=>{var e={};for(var t in r)u.call(r,t)&&o.indexOf(t)<0&&(e[t]=r[t]);if(r!=null&&n)for(var t of n(r))o.indexOf(t)<0&&s.call(r,t)&&(e[t]=r[t]);return e};function d(...r){return tailwindMerge.twMerge(clsx.clsx(r))}var h=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),w=f__namespace.forwardRef((B,g)=>{var a=B,{className:r,variant:o,size:e,asChild:t=false}=a,m=p(a,["className","variant","size","asChild"]);return jsxRuntime.jsx(t?reactSlot.Slot:"button",c({className:d(h({variant:o,size:e,className:r})),ref:g},m))});w.displayName="Button";exports.Button=w;exports.buttonVariants=h;exports.cn=d;//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/atoms/button/button.tsx","../src/utils/cn.ts"],"names":["cn","inputs","twMerge","clsx","buttonVariants","cva","Button","f","_a","ref","_b","className","variant","size","asChild","props","__objRest","jsx","Slot","__spreadValues"],"mappings":"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","file":"index.js","sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\nimport { ButtonProps } from \"./button.types\"\n\n/**\n * Button variant styles using class-variance-authority.\n * Defines the visual styles for different button variants and sizes.\n *\n * @example\n * ```tsx\n * <Button variant=\"primary\" size=\"lg\">Click me</Button>\n * ```\n */\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive: \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary: \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\"\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n icon: \"h-9 w-9\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n)\n\n/**\n * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.\n * Built on top of Radix UI's Slot primitive for maximum flexibility.\n *\n * @component\n * @example\n * ```tsx\n * // Default button\n * <Button>Click me</Button>\n *\n * // Destructive button with small size\n * <Button variant=\"destructive\" size=\"sm\">Delete</Button>\n *\n * // As a link\n * <Button variant=\"link\" asChild>\n * <a href=\"/about\">About</a>\n * </Button>\n * ```\n *\n * @param {ButtonProps} props - The component props\n * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref\n * @returns {JSX.Element} A button element\n */\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as f from'react';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var l=Object.defineProperty;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var i=(r,o,e)=>o in r?l(r,o,{enumerable:true,configurable:true,writable:true,value:e}):r[o]=e,c=(r,o)=>{for(var e in o||(o={}))u.call(o,e)&&i(r,e,o[e]);if(n)for(var e of n(o))s.call(o,e)&&i(r,e,o[e]);return r};var p=(r,o)=>{var e={};for(var t in r)u.call(r,t)&&o.indexOf(t)<0&&(e[t]=r[t]);if(r!=null&&n)for(var t of n(r))o.indexOf(t)<0&&s.call(r,t)&&(e[t]=r[t]);return e};function d(...r){return twMerge(clsx(r))}var h=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),w=f.forwardRef((B,g)=>{var a=B,{className:r,variant:o,size:e,asChild:t=false}=a,m=p(a,["className","variant","size","asChild"]);return jsx(t?Slot:"button",c({className:d(h({variant:o,size:e,className:r})),ref:g},m))});w.displayName="Button";export{w as Button,h as buttonVariants,d as cn};//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/atoms/button/button.tsx","../src/utils/cn.ts"],"names":["cn","inputs","twMerge","clsx","buttonVariants","cva","Button","_a","ref","_b","className","variant","size","asChild","props","__objRest","jsx","Slot","__spreadValues"],"mappings":"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","file":"index.mjs","sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\nimport { ButtonProps } from \"./button.types\"\n\n/**\n * Button variant styles using class-variance-authority.\n * Defines the visual styles for different button variants and sizes.\n *\n * @example\n * ```tsx\n * <Button variant=\"primary\" size=\"lg\">Click me</Button>\n * ```\n */\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive: \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary: \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\"\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n icon: \"h-9 w-9\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n)\n\n/**\n * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.\n * Built on top of Radix UI's Slot primitive for maximum flexibility.\n *\n * @component\n * @example\n * ```tsx\n * // Default button\n * <Button>Click me</Button>\n *\n * // Destructive button with small size\n * <Button variant=\"destructive\" size=\"sm\">Delete</Button>\n *\n * // As a link\n * <Button variant=\"link\" asChild>\n * <a href=\"/about\">About</a>\n * </Button>\n * ```\n *\n * @param {ButtonProps} props - The component props\n * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref\n * @returns {JSX.Element} A button element\n */\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,111 +1,96 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@me1a/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
8
9
|
"files": [
|
|
9
|
-
"
|
|
10
|
+
"dist/**"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"build": "tsup",
|
|
14
|
+
"dev": "tsup --watch",
|
|
15
|
+
"lint": "eslint . --max-warnings 0",
|
|
16
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
17
|
+
"format": "prettier --check . --ignore-path .gitignore",
|
|
18
|
+
"format:fix": "prettier --write . --ignore-path .gitignore",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"test:watch": "jest --watch",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
16
22
|
"storybook": "storybook dev -p 6006",
|
|
17
23
|
"build-storybook": "storybook build"
|
|
18
24
|
},
|
|
19
|
-
"author": "",
|
|
20
|
-
"license": "ISC",
|
|
21
25
|
"peerDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"@mui/material": "^6.1.5",
|
|
26
|
-
"react": "18.2.0",
|
|
27
|
-
"react-dom": "18.2.0"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@hookform/resolvers": "^3.9.1",
|
|
31
|
-
"@iconify/react": "^5.0.2",
|
|
32
|
-
"@reduxjs/toolkit": "^2.3.0",
|
|
33
|
-
"notistack": "^3.0.1",
|
|
34
|
-
"react-hook-form": "^7.51.3",
|
|
35
|
-
"react-redux": "^9.1.2",
|
|
36
|
-
"yup": "^1.4.0"
|
|
26
|
+
"next": "^14.1.0",
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-dom": "^18.2.0"
|
|
37
29
|
},
|
|
38
30
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "^7.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
41
|
-
"@babel/preset-react": "^7.
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@storybook/
|
|
49
|
-
"@storybook/
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@types/react": "^18.2.
|
|
57
|
-
"@
|
|
58
|
-
"@typescript-eslint/
|
|
59
|
-
"
|
|
60
|
-
"
|
|
31
|
+
"@babel/core": "^7.27.1",
|
|
32
|
+
"@babel/preset-env": "^7.27.2",
|
|
33
|
+
"@babel/preset-react": "^7.27.1",
|
|
34
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
35
|
+
"@storybook/addon-a11y": "^8.6.14",
|
|
36
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
37
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
38
|
+
"@storybook/addon-onboarding": "^8.6.14",
|
|
39
|
+
"@storybook/blocks": "^8.6.14",
|
|
40
|
+
"@storybook/react": "^8.6.14",
|
|
41
|
+
"@storybook/react-vite": "^8.6.14",
|
|
42
|
+
"@storybook/test": "^8.6.14",
|
|
43
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
44
|
+
"@testing-library/react": "^16.3.0",
|
|
45
|
+
"@testing-library/user-event": "^14.6.1",
|
|
46
|
+
"@types/jest": "^29.5.14",
|
|
47
|
+
"@types/node": "^20.11.0",
|
|
48
|
+
"@types/react": "^18.2.0",
|
|
49
|
+
"@types/react-dom": "^18.2.0",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
51
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
52
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
53
|
+
"autoprefixer": "^10.4.21",
|
|
54
|
+
"babel-jest": "^29.7.0",
|
|
55
|
+
"eslint": "^8.56.0",
|
|
56
|
+
"eslint-config-next": "^14.1.0",
|
|
61
57
|
"eslint-config-prettier": "^9.1.0",
|
|
62
|
-
"eslint-plugin-
|
|
63
|
-
"eslint-plugin-react": "^7.34.1",
|
|
58
|
+
"eslint-plugin-react": "^7.33.2",
|
|
64
59
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
65
|
-
"eslint-plugin-storybook": "^0.
|
|
60
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
61
|
+
"jest": "^29.7.0",
|
|
62
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
63
|
+
"postcss": "^8.5.3",
|
|
66
64
|
"prettier": "^3.2.5",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"typescript": "^5.
|
|
65
|
+
"prettier-plugin-tailwindcss": "^0.5.11",
|
|
66
|
+
"storybook": "^8.6.14",
|
|
67
|
+
"tailwindcss": "^3.4.17",
|
|
68
|
+
"ts-node": "^10.9.2",
|
|
69
|
+
"tsup": "^8.0.2",
|
|
70
|
+
"typescript": "^5.3.3"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@radix-ui/react-icons": "^1.3.0",
|
|
74
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
75
|
+
"class-variance-authority": "^0.7.0",
|
|
76
|
+
"clsx": "^2.1.0",
|
|
77
|
+
"lucide-react": "^0.330.0",
|
|
78
|
+
"next-themes": "^0.2.1",
|
|
79
|
+
"tailwind-merge": "^2.2.1",
|
|
80
|
+
"tailwindcss-animate": "^1.0.7"
|
|
81
|
+
},
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"access": "public"
|
|
84
|
+
},
|
|
85
|
+
"repository": {
|
|
86
|
+
"type": "git",
|
|
87
|
+
"url": "git+https://github.com/SegiiMelnykov/ui.git"
|
|
88
|
+
},
|
|
89
|
+
"author": "",
|
|
90
|
+
"license": "ISC",
|
|
91
|
+
"bugs": {
|
|
92
|
+
"url": "https://github.com/SegiiMelnykov/ui/issues"
|
|
73
93
|
},
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
"import": "./dist/index.es.js",
|
|
77
|
-
"require": "./dist/index.cjs.js",
|
|
78
|
-
"types": "./dist/index.d.ts"
|
|
79
|
-
},
|
|
80
|
-
"./components": {
|
|
81
|
-
"import": "./dist/components/index.es.js",
|
|
82
|
-
"require": "./dist/components/index.cjs.js",
|
|
83
|
-
"types": "./dist/components/index.d.ts"
|
|
84
|
-
},
|
|
85
|
-
"./hooks": {
|
|
86
|
-
"import": "./dist/hooks/index.es.js",
|
|
87
|
-
"require": "./dist/hooks/index.cjs.js",
|
|
88
|
-
"types": "./dist/hooks/index.d.ts"
|
|
89
|
-
},
|
|
90
|
-
"./hook-forms": {
|
|
91
|
-
"import": "./dist/hook-forms/index.es.js",
|
|
92
|
-
"require": "./dist/hook-forms/index.cjs.js",
|
|
93
|
-
"types": "./dist/hook-forms/index.d.ts"
|
|
94
|
-
},
|
|
95
|
-
"./redux": {
|
|
96
|
-
"import": "./dist/redux/index.es.js",
|
|
97
|
-
"require": "./dist/redux/index.cjs.js",
|
|
98
|
-
"types": "./dist/redux/index.d.ts"
|
|
99
|
-
},
|
|
100
|
-
"./redux-toolkit": {
|
|
101
|
-
"import": "./dist/redux-toolkit/index.es.js",
|
|
102
|
-
"require": "./dist/redux-toolkit/index.cjs.js",
|
|
103
|
-
"types": "./dist/redux-toolkit/index.d.ts"
|
|
104
|
-
},
|
|
105
|
-
"./snackbar": {
|
|
106
|
-
"import": "./dist/snackbar/index.es.js",
|
|
107
|
-
"require": "./dist/snackbar/index.cjs.js",
|
|
108
|
-
"types": "./dist/snackbar/index.d.ts"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
94
|
+
"homepage": "https://github.com/SegiiMelnykov/ui#readme",
|
|
95
|
+
"description": "A modern UI library for Next.js applications"
|
|
111
96
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from "@mui/material/Box";
|
|
2
|
-
import { IconifyProps } from "./types";
|
|
3
|
-
interface Props extends BoxProps {
|
|
4
|
-
icon: IconifyProps;
|
|
5
|
-
}
|
|
6
|
-
declare const Iconify: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<SVGElement>>;
|
|
7
|
-
export default Iconify;
|