@raystack/apsara 0.26.0 → 0.26.1
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/avatar/avatar.cjs.map +1 -1
- package/dist/avatar/avatar.d.ts +9 -0
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/avatar/avatar.js.map +1 -1
- package/dist/badge/badge.cjs +3 -0
- package/dist/badge/badge.cjs.map +1 -1
- package/dist/badge/badge.d.ts +3 -0
- package/dist/badge/badge.d.ts.map +1 -1
- package/dist/badge/badge.js +3 -0
- package/dist/badge/badge.js.map +1 -1
- package/dist/checkbox/checkbox.cjs.map +1 -1
- package/dist/checkbox/checkbox.d.ts +6 -0
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/checkbox/checkbox.js.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts +3 -0
- package/dist/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/inputfield/inputfield.cjs +3 -0
- package/dist/inputfield/inputfield.cjs.map +1 -1
- package/dist/inputfield/inputfield.d.ts +3 -0
- package/dist/inputfield/inputfield.d.ts.map +1 -1
- package/dist/inputfield/inputfield.js +3 -0
- package/dist/inputfield/inputfield.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/text/text.cjs.map +1 -1
- package/dist/text/text.d.ts +3 -0
- package/dist/text/text.d.ts.map +1 -1
- package/dist/text/text.js.map +1 -1
- package/dist/v1/components/badge/badge.cjs.map +1 -1
- package/dist/v1/components/badge/badge.d.ts +2 -2
- package/dist/v1/components/badge/badge.d.ts.map +1 -1
- package/dist/v1/components/badge/badge.js.map +1 -1
- package/dist/v1/components/button/button.d.ts +1 -1
- package/dist/v1/components/text/text.d.ts +1 -1
- package/dist/v1/index.cjs +2 -2
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.cjs","sources":["../../avatar/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementRef,\n forwardRef,\n} from \"react\";\nimport { Box } from \"../box\";\nimport styles from \"./avatar.module.css\";\n\nconst avatar = cva(styles.avatar, {\n variants: {\n shape: {\n square: styles[\"avatar-square\"],\n circle: styles[\"avatar-circle\"],\n },\n\n disabled: {\n true: styles[\"avatar-disabled\"],\n },\n },\n defaultVariants: {\n shape: \"circle\",\n },\n});\n\nconst image = cva(styles.image);\nexport interface AvatarProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n VariantProps<typeof avatar> {}\n\nconst AvatarRoot = forwardRef<\n ElementRef<typeof AvatarPrimitive.Root>,\n AvatarProps & {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n imageProps?: CSSProperties;\n }\n>(\n (\n { className, alt, src, fallback, shape, style, imageProps, ...props },\n ref\n ) => (\n <Box className={styles.imageWrapper} style={style}>\n <AvatarPrimitive.Root\n ref={ref}\n className={avatar({ shape, className })}\n style={imageProps}\n {...props}\n >\n <AvatarImage alt={alt} src={src} />\n <AvatarFallback>{fallback}</AvatarFallback>\n </AvatarPrimitive.Root>\n </Box>\n )\n);\n\nAvatarRoot.displayName = AvatarPrimitive.Root.displayName;\n\nexport interface AvatarImageProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>,\n VariantProps<typeof image> {}\n\nconst AvatarImage = forwardRef<\n ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, sizes, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={image({ className })}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst fallback = cva(styles.fallback);\n\nexport interface FallbackProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>,\n VariantProps<typeof fallback> {}\n\nconst AvatarFallback = forwardRef<\n ElementRef<typeof AvatarPrimitive.Fallback>,\n FallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={fallback({ className })}\n {...props}\n />\n));\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/**\n * @deprecated Use Avatar from '@raystack/apsara/v1' instead.\n */\nexport const Avatar = Object.assign(AvatarRoot, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n"],"names":["cva","styles","forwardRef","_jsx","Box","_jsxs","AvatarPrimitive.Root","AvatarPrimitive.Image","AvatarPrimitive.Fallback"],"mappings":";;;;;;;;;AAWA,MAAM,MAAM,GAAGA,WAAG,CAACC,qBAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,MAAM,EAAEA,qBAAM,CAAC,eAAe,CAAC;AAC/B,YAAA,MAAM,EAAEA,qBAAM,CAAC,eAAe,CAAC;AAChC,SAAA;AAED,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAEA,qBAAM,CAAC,iBAAiB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,KAAK,EAAE,QAAQ;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAGD,WAAG,CAACC,qBAAM,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.cjs","sources":["../../avatar/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementRef,\n forwardRef,\n} from \"react\";\nimport { Box } from \"../box\";\nimport styles from \"./avatar.module.css\";\n\nconst avatar = cva(styles.avatar, {\n variants: {\n shape: {\n square: styles[\"avatar-square\"],\n circle: styles[\"avatar-circle\"],\n },\n\n disabled: {\n true: styles[\"avatar-disabled\"],\n },\n },\n defaultVariants: {\n shape: \"circle\",\n },\n});\n\nconst image = cva(styles.image);\n\n/**\n * @deprecated Use AvatarProps from '@raystack/apsara/v1' instead.\n */\nexport interface AvatarProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n VariantProps<typeof avatar> {}\n\nconst AvatarRoot = forwardRef<\n ElementRef<typeof AvatarPrimitive.Root>,\n AvatarProps & {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n imageProps?: CSSProperties;\n }\n>(\n (\n { className, alt, src, fallback, shape, style, imageProps, ...props },\n ref\n ) => (\n <Box className={styles.imageWrapper} style={style}>\n <AvatarPrimitive.Root\n ref={ref}\n className={avatar({ shape, className })}\n style={imageProps}\n {...props}\n >\n <AvatarImage alt={alt} src={src} />\n <AvatarFallback>{fallback}</AvatarFallback>\n </AvatarPrimitive.Root>\n </Box>\n )\n);\n\nAvatarRoot.displayName = AvatarPrimitive.Root.displayName;\n\n/**\n * @deprecated Use AvatarImageProps from '@raystack/apsara/v1' instead.\n */\nexport interface AvatarImageProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>,\n VariantProps<typeof image> {}\n\nconst AvatarImage = forwardRef<\n ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, sizes, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={image({ className })}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst fallback = cva(styles.fallback);\n\n/**\n * @deprecated Use FallbackProps from '@raystack/apsara/v1' instead.\n */\nexport interface FallbackProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>,\n VariantProps<typeof fallback> {}\n\nconst AvatarFallback = forwardRef<\n ElementRef<typeof AvatarPrimitive.Fallback>,\n FallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={fallback({ className })}\n {...props}\n />\n));\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/**\n * @deprecated Use Avatar from '@raystack/apsara/v1' instead.\n */\nexport const Avatar = Object.assign(AvatarRoot, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n"],"names":["cva","styles","forwardRef","_jsx","Box","_jsxs","AvatarPrimitive.Root","AvatarPrimitive.Image","AvatarPrimitive.Fallback"],"mappings":";;;;;;;;;AAWA,MAAM,MAAM,GAAGA,WAAG,CAACC,qBAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,MAAM,EAAEA,qBAAM,CAAC,eAAe,CAAC;AAC/B,YAAA,MAAM,EAAEA,qBAAM,CAAC,eAAe,CAAC;AAChC,SAAA;AAED,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAEA,qBAAM,CAAC,iBAAiB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,KAAK,EAAE,QAAQ;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAGD,WAAG,CAACC,qBAAM,CAAC,KAAK,CAAC,CAAC;AAShC,MAAM,UAAU,GAAGC,gBAAU,CAS3B,CACE,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,MAEHC,iCAACC,OAAG,EAAA,EAAC,SAAS,EAAEH,qBAAM,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,YAC/CI,iCAAC,CAAAC,UAAoB,IACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EACvC,KAAK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authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const image: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use AvatarProps from '@raystack/apsara/v1' instead.
|
|
11
|
+
*/
|
|
9
12
|
export interface AvatarProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatar> {
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use AvatarImageProps from '@raystack/apsara/v1' instead.
|
|
16
|
+
*/
|
|
11
17
|
export interface AvatarImageProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>, VariantProps<typeof image> {
|
|
12
18
|
}
|
|
13
19
|
declare const fallback: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use FallbackProps from '@raystack/apsara/v1' instead.
|
|
22
|
+
*/
|
|
14
23
|
export interface FallbackProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, VariantProps<typeof fallback> {
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,wBAAwB,EACxB,aAAa,EAGd,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,MAAM;;;mFAcV,CAAC;AAEH,QAAA,MAAM,KAAK,yFAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,wBAAwB,EACxB,aAAa,EAGd,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,MAAM;;;mFAcV,CAAC;AAEH,QAAA,MAAM,KAAK,yFAAoB,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,WACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAC3D,YAAY,CAAC,OAAO,MAAM,CAAC;CAAG;AA+BlC;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EAC5D,YAAY,CAAC,OAAO,KAAK,CAAC;CAAG;AAcjC,QAAA,MAAM,QAAQ,yFAAuB,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,EAC/D,YAAY,CAAC,OAAO,QAAQ,CAAC;CAAG;AAepC;;GAEG;AACH,eAAO,MAAM,MAAM;;;eApEJ,MAAM,SAAS;;;;;CAuE5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":["../../avatar/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementRef,\n forwardRef,\n} from \"react\";\nimport { Box } from \"../box\";\nimport styles from \"./avatar.module.css\";\n\nconst avatar = cva(styles.avatar, {\n variants: {\n shape: {\n square: styles[\"avatar-square\"],\n circle: styles[\"avatar-circle\"],\n },\n\n disabled: {\n true: styles[\"avatar-disabled\"],\n },\n },\n defaultVariants: {\n shape: \"circle\",\n },\n});\n\nconst image = cva(styles.image);\nexport interface AvatarProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n VariantProps<typeof avatar> {}\n\nconst AvatarRoot = forwardRef<\n ElementRef<typeof AvatarPrimitive.Root>,\n AvatarProps & {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n imageProps?: CSSProperties;\n }\n>(\n (\n { className, alt, src, fallback, shape, style, imageProps, ...props },\n ref\n ) => (\n <Box className={styles.imageWrapper} style={style}>\n <AvatarPrimitive.Root\n ref={ref}\n className={avatar({ shape, className })}\n style={imageProps}\n {...props}\n >\n <AvatarImage alt={alt} src={src} />\n <AvatarFallback>{fallback}</AvatarFallback>\n </AvatarPrimitive.Root>\n </Box>\n )\n);\n\nAvatarRoot.displayName = AvatarPrimitive.Root.displayName;\n\nexport interface AvatarImageProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>,\n VariantProps<typeof image> {}\n\nconst AvatarImage = forwardRef<\n ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, sizes, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={image({ className })}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst fallback = cva(styles.fallback);\n\nexport interface FallbackProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>,\n VariantProps<typeof fallback> {}\n\nconst AvatarFallback = forwardRef<\n ElementRef<typeof AvatarPrimitive.Fallback>,\n FallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={fallback({ className })}\n {...props}\n />\n));\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/**\n * @deprecated Use Avatar from '@raystack/apsara/v1' instead.\n */\nexport const Avatar = Object.assign(AvatarRoot, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n"],"names":["_jsx","_jsxs","AvatarPrimitive.Root","AvatarPrimitive.Image","AvatarPrimitive.Fallback"],"mappings":";;;;;;;AAWA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;AAChC,SAAA;AAED,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,KAAK,EAAE,QAAQ;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../../avatar/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n CSSProperties,\n ElementRef,\n forwardRef,\n} from \"react\";\nimport { Box } from \"../box\";\nimport styles from \"./avatar.module.css\";\n\nconst avatar = cva(styles.avatar, {\n variants: {\n shape: {\n square: styles[\"avatar-square\"],\n circle: styles[\"avatar-circle\"],\n },\n\n disabled: {\n true: styles[\"avatar-disabled\"],\n },\n },\n defaultVariants: {\n shape: \"circle\",\n },\n});\n\nconst image = cva(styles.image);\n\n/**\n * @deprecated Use AvatarProps from '@raystack/apsara/v1' instead.\n */\nexport interface AvatarProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n VariantProps<typeof avatar> {}\n\nconst AvatarRoot = forwardRef<\n ElementRef<typeof AvatarPrimitive.Root>,\n AvatarProps & {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n imageProps?: CSSProperties;\n }\n>(\n (\n { className, alt, src, fallback, shape, style, imageProps, ...props },\n ref\n ) => (\n <Box className={styles.imageWrapper} style={style}>\n <AvatarPrimitive.Root\n ref={ref}\n className={avatar({ shape, className })}\n style={imageProps}\n {...props}\n >\n <AvatarImage alt={alt} src={src} />\n <AvatarFallback>{fallback}</AvatarFallback>\n </AvatarPrimitive.Root>\n </Box>\n )\n);\n\nAvatarRoot.displayName = AvatarPrimitive.Root.displayName;\n\n/**\n * @deprecated Use AvatarImageProps from '@raystack/apsara/v1' instead.\n */\nexport interface AvatarImageProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>,\n VariantProps<typeof image> {}\n\nconst AvatarImage = forwardRef<\n ElementRef<typeof AvatarPrimitive.Image>,\n AvatarImageProps\n>(({ className, sizes, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={image({ className })}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst fallback = cva(styles.fallback);\n\n/**\n * @deprecated Use FallbackProps from '@raystack/apsara/v1' instead.\n */\nexport interface FallbackProps\n extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>,\n VariantProps<typeof fallback> {}\n\nconst AvatarFallback = forwardRef<\n ElementRef<typeof AvatarPrimitive.Fallback>,\n FallbackProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={fallback({ className })}\n {...props}\n />\n));\n\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\n/**\n * @deprecated Use Avatar from '@raystack/apsara/v1' instead.\n */\nexport const Avatar = Object.assign(AvatarRoot, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n"],"names":["_jsx","_jsxs","AvatarPrimitive.Root","AvatarPrimitive.Image","AvatarPrimitive.Fallback"],"mappings":";;;;;;;AAWA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;AAChC,SAAA;AAED,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,Q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AE,EAAE,GAAG,MAC7BH,qBAAC,CAAAI,yCAAwB,IACvB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC9B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AAEH,cAAc,CAAC,WAAW,GAAGA,yCAAwB,CAAC,WAAW,CAAC;AAElE;;AAEG;MACU,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;AAC9C,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,QAAQ,EAAE,cAAc;AACzB,CAAA;;;;"}
|
package/dist/badge/badge.cjs
CHANGED
|
@@ -16,6 +16,9 @@ const Badge = (props, ref) => {
|
|
|
16
16
|
const { color, className, children } = props;
|
|
17
17
|
return jsxRuntime.jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use Badge from '@raystack/apsara/v1' instead.
|
|
21
|
+
*/
|
|
19
22
|
var badge$1 = React.forwardRef(Badge);
|
|
20
23
|
|
|
21
24
|
exports.default = badge$1;
|
package/dist/badge/badge.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.cjs","sources":["../../badge/badge.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport React, {\n ForwardRefRenderFunction,\n HTMLAttributes,\n PropsWithChildren,\n} from \"react\";\n\nimport styles from \"./badge.module.css\";\n\ntype BadgeProps = PropsWithChildren<VariantProps<typeof badge>> &\n HTMLAttributes<HTMLElement>;\n\nconst badge = cva(styles.badge, {\n variants: {\n color: {},\n },\n});\n\nconst Badge: ForwardRefRenderFunction<unknown, BadgeProps> = (props, ref) => {\n const { color, className, children } = props;\n\n return <span className={badge({ color, className })}>{children}</span>;\n};\n\nexport default React.forwardRef<unknown, BadgeProps>(Badge);\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;;;;AAYA,MAAM,KAAK,GAAGA,SAAG,CAACC,oBAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAkD,CAAC,KAAK,EAAE,GAAG,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE7C,IAAA,OAAOC,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAG,QAAA,EAAA,QAAQ,GAAQ,CAAC;AACzE,CAAC,CAAC;AAEF,cAAe,KAAK,CAAC,UAAU,CAAsB,KAAK,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"badge.cjs","sources":["../../badge/badge.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport React, {\n ForwardRefRenderFunction,\n HTMLAttributes,\n PropsWithChildren,\n} from \"react\";\n\nimport styles from \"./badge.module.css\";\n\ntype BadgeProps = PropsWithChildren<VariantProps<typeof badge>> &\n HTMLAttributes<HTMLElement>;\n\nconst badge = cva(styles.badge, {\n variants: {\n color: {},\n },\n});\n\nconst Badge: ForwardRefRenderFunction<unknown, BadgeProps> = (props, ref) => {\n const { color, className, children } = props;\n\n return <span className={badge({ color, className })}>{children}</span>;\n};\n\n/**\n * @deprecated Use Badge from '@raystack/apsara/v1' instead.\n */\nexport default React.forwardRef<unknown, BadgeProps>(Badge);\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;;;;AAYA,MAAM,KAAK,GAAGA,SAAG,CAACC,oBAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAkD,CAAC,KAAK,EAAE,GAAG,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE7C,IAAA,OAAOC,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAG,QAAA,EAAA,QAAQ,GAAQ,CAAC;AACzE,CAAC,CAAC;AAEF;;AAEG;AACH,cAAe,KAAK,CAAC,UAAU,CAAsB,KAAK,CAAC;;;;"}
|
package/dist/badge/badge.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use Badge from '@raystack/apsara/v1' instead.
|
|
5
|
+
*/
|
|
3
6
|
declare const _default: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
4
7
|
color?: null | undefined;
|
|
5
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAIN,MAAM,OAAO,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAIN,MAAM,OAAO,CAAC;AAmBf;;GAEG;;;;;;AACH,wBAA4D"}
|
package/dist/badge/badge.js
CHANGED
|
@@ -12,6 +12,9 @@ const Badge = (props, ref) => {
|
|
|
12
12
|
const { color, className, children } = props;
|
|
13
13
|
return jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use Badge from '@raystack/apsara/v1' instead.
|
|
17
|
+
*/
|
|
15
18
|
var badge$1 = React__default.forwardRef(Badge);
|
|
16
19
|
|
|
17
20
|
export { badge$1 as default };
|
package/dist/badge/badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../../badge/badge.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport React, {\n ForwardRefRenderFunction,\n HTMLAttributes,\n PropsWithChildren,\n} from \"react\";\n\nimport styles from \"./badge.module.css\";\n\ntype BadgeProps = PropsWithChildren<VariantProps<typeof badge>> &\n HTMLAttributes<HTMLElement>;\n\nconst badge = cva(styles.badge, {\n variants: {\n color: {},\n },\n});\n\nconst Badge: ForwardRefRenderFunction<unknown, BadgeProps> = (props, ref) => {\n const { color, className, children } = props;\n\n return <span className={badge({ color, className })}>{children}</span>;\n};\n\nexport default React.forwardRef<unknown, BadgeProps>(Badge);\n"],"names":["_jsx","React"],"mappings":";;;;;AAYA,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAkD,CAAC,KAAK,EAAE,GAAG,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE7C,IAAA,OAAOA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAG,QAAA,EAAA,QAAQ,GAAQ,CAAC;AACzE,CAAC,CAAC;AAEF,cAAeC,cAAK,CAAC,UAAU,CAAsB,KAAK,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"badge.js","sources":["../../badge/badge.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport React, {\n ForwardRefRenderFunction,\n HTMLAttributes,\n PropsWithChildren,\n} from \"react\";\n\nimport styles from \"./badge.module.css\";\n\ntype BadgeProps = PropsWithChildren<VariantProps<typeof badge>> &\n HTMLAttributes<HTMLElement>;\n\nconst badge = cva(styles.badge, {\n variants: {\n color: {},\n },\n});\n\nconst Badge: ForwardRefRenderFunction<unknown, BadgeProps> = (props, ref) => {\n const { color, className, children } = props;\n\n return <span className={badge({ color, className })}>{children}</span>;\n};\n\n/**\n * @deprecated Use Badge from '@raystack/apsara/v1' instead.\n */\nexport default React.forwardRef<unknown, BadgeProps>(Badge);\n"],"names":["_jsx","React"],"mappings":";;;;;AAYA,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;AACF,CAAA,CAAC,CAAC;AAEH,MAAM,KAAK,GAAkD,CAAC,KAAK,EAAE,GAAG,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE7C,IAAA,OAAOA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAG,QAAA,EAAA,QAAQ,GAAQ,CAAC;AACzE,CAAC,CAAC;AAEF;;AAEG;AACH,cAAeC,cAAK,CAAC,UAAU,CAAsB,KAAK,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.cjs","sources":["../../checkbox/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { CheckIcon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { Flex } from \"~/flex\";\nimport { Label } from \"~/label\";\nimport styles from \"./checkbox.module.css\";\n\nconst checkbox = cva(styles.checkbox, {\n variants: {\n size: {\n small: styles[\"checkbox-sm\"],\n medium: styles[\"checkbox-md\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport interface CheckboxProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n VariantProps<typeof checkbox>,\n CheckboxPrimitive.CheckboxProps {}\n\n/**\n * @deprecated Use Checkbox from '@raystack/apsara/v1' instead.\n */\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, size, children, ...props }, forwardedRef) => (\n <Flex gap=\"small\">\n <CheckboxPrimitive.Root\n {...props}\n ref={forwardedRef}\n className={checkbox({ size, className })}\n >\n <CheckboxIndicator>\n <CheckIcon />\n </CheckboxIndicator>\n </CheckboxPrimitive.Root>\n <Label>{children}</Label>\n </Flex>\n));\n\nconst indicator = cva(styles.indicator);\nexport interface IndicatorProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>,\n VariantProps<typeof indicator> {}\n\nconst CheckboxIndicator = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Indicator>,\n IndicatorProps\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Indicator\n ref={ref}\n className={indicator({ className })}\n {...props}\n />\n));\n\nCheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;\n"],"names":["cva","styles","forwardRef","_jsxs","Flex","_jsx","CheckboxPrimitive.Root","CheckIcon","Label","CheckboxPrimitive.Indicator"],"mappings":";;;;;;;;;;;AAQA,MAAM,QAAQ,GAAGA,WAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,uBAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAEA,uBAAM,CAAC,aAAa,CAAC;AAC9B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.cjs","sources":["../../checkbox/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { CheckIcon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { Flex } from \"~/flex\";\nimport { Label } from \"~/label\";\nimport styles from \"./checkbox.module.css\";\n\nconst checkbox = cva(styles.checkbox, {\n variants: {\n size: {\n small: styles[\"checkbox-sm\"],\n medium: styles[\"checkbox-md\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\n/**\n * @deprecated Use CheckboxProps from '@raystack/apsara/v1' instead.\n */\nexport interface CheckboxProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n VariantProps<typeof checkbox>,\n CheckboxPrimitive.CheckboxProps {}\n\n/**\n * @deprecated Use Checkbox from '@raystack/apsara/v1' instead.\n */\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, size, children, ...props }, forwardedRef) => (\n <Flex gap=\"small\">\n <CheckboxPrimitive.Root\n {...props}\n ref={forwardedRef}\n className={checkbox({ size, className })}\n >\n <CheckboxIndicator>\n <CheckIcon />\n </CheckboxIndicator>\n </CheckboxPrimitive.Root>\n <Label>{children}</Label>\n </Flex>\n));\n\nconst indicator = cva(styles.indicator);\n\n/**\n * @deprecated Use IndicatorProps from '@raystack/apsara/v1' instead.\n */\nexport interface IndicatorProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>,\n VariantProps<typeof indicator> {}\n\nconst CheckboxIndicator = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Indicator>,\n IndicatorProps\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Indicator\n ref={ref}\n className={indicator({ className })}\n {...props}\n />\n));\n\nCheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;\n"],"names":["cva","styles","forwardRef","_jsxs","Flex","_jsx","CheckboxPrimitive.Root","CheckIcon","Label","CheckboxPrimitive.Indicator"],"mappings":";;;;;;;;;;;AAQA,MAAM,QAAQ,GAAGA,WAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,uBAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAEA,uBAAM,CAAC,aAAa,CAAC;AAC9B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAUH;;AAEG;AACI,MAAM,QAAQ,GAAGC,gBAAU,CAGhC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,MACtDC,iCAAC,CAAAC,SAAI,EAAC,EAAA,GAAG,EAAC,OAAO,EACf,QAAA,EAAA,CAAAC,gCAAA,CAACC,UAAsB,EACjB,EAAA,GAAA,KAAK,EACT,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAA,QAAA,EAExCD,gCAAC,CAAA,iBAAiB,EAChB,EAAA,QAAA,EAAAA,gCAAA,CAACE,wBAAS,EAAA,EAAA,CAAG,GACK,EACG,CAAA,EACzBF,gCAAC,CAAAG,WAAK,cAAE,QAAQ,EAAA,CAAS,CACpB,EAAA,CAAA,CACR,EAAE;AAEH,MAAM,SAAS,GAAGR,WAAG,CAACC,uBAAM,CAAC,SAAS,CAAC,CAAC;AASxC,MAAM,iBAAiB,GAAGC,gBAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BG,gCAAC,CAAAI,eAA2B,IAC1B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AAEH,iBAAiB,CAAC,WAAW,GAAGA,eAA2B,CAAC,WAAW;;;;"}
|
|
@@ -4,6 +4,9 @@ import { ComponentPropsWithoutRef } from "react";
|
|
|
4
4
|
declare const checkbox: (props?: ({
|
|
5
5
|
size?: "small" | "medium" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use CheckboxProps from '@raystack/apsara/v1' instead.
|
|
9
|
+
*/
|
|
7
10
|
export interface CheckboxProps extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkbox>, CheckboxPrimitive.CheckboxProps {
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
@@ -11,6 +14,9 @@ export interface CheckboxProps extends ComponentPropsWithoutRef<typeof CheckboxP
|
|
|
11
14
|
*/
|
|
12
15
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
16
|
declare const indicator: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use IndicatorProps from '@raystack/apsara/v1' instead.
|
|
19
|
+
*/
|
|
14
20
|
export interface IndicatorProps extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>, VariantProps<typeof indicator> {
|
|
15
21
|
}
|
|
16
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAKzE,QAAA,MAAM,QAAQ;;mFAUZ,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,YAAY,CAAC,OAAO,QAAQ,CAAC,EAC7B,iBAAiB,CAAC,aAAa;CAAG;AAEtC;;GAEG;AACH,eAAO,MAAM,QAAQ,6GAgBnB,CAAC;AAEH,QAAA,MAAM,SAAS,yFAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAKzE,QAAA,MAAM,QAAQ;;mFAUZ,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,YAAY,CAAC,OAAO,QAAQ,CAAC,EAC7B,iBAAiB,CAAC,aAAa;CAAG;AAEtC;;GAEG;AACH,eAAO,MAAM,QAAQ,6GAgBnB,CAAC;AAEH,QAAA,MAAM,SAAS,yFAAwB,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,cACf,SAAQ,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,EAClE,YAAY,CAAC,OAAO,SAAS,CAAC;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sources":["../../checkbox/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { CheckIcon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { Flex } from \"~/flex\";\nimport { Label } from \"~/label\";\nimport styles from \"./checkbox.module.css\";\n\nconst checkbox = cva(styles.checkbox, {\n variants: {\n size: {\n small: styles[\"checkbox-sm\"],\n medium: styles[\"checkbox-md\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport interface CheckboxProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n VariantProps<typeof checkbox>,\n CheckboxPrimitive.CheckboxProps {}\n\n/**\n * @deprecated Use Checkbox from '@raystack/apsara/v1' instead.\n */\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, size, children, ...props }, forwardedRef) => (\n <Flex gap=\"small\">\n <CheckboxPrimitive.Root\n {...props}\n ref={forwardedRef}\n className={checkbox({ size, className })}\n >\n <CheckboxIndicator>\n <CheckIcon />\n </CheckboxIndicator>\n </CheckboxPrimitive.Root>\n <Label>{children}</Label>\n </Flex>\n));\n\nconst indicator = cva(styles.indicator);\nexport interface IndicatorProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>,\n VariantProps<typeof indicator> {}\n\nconst CheckboxIndicator = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Indicator>,\n IndicatorProps\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Indicator\n ref={ref}\n className={indicator({ className })}\n {...props}\n />\n));\n\nCheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;\n"],"names":["_jsxs","_jsx","CheckboxPrimitive.Root","CheckboxPrimitive.Indicator"],"mappings":";;;;;;;;;AAQA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;AAC9B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.js","sources":["../../checkbox/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { CheckIcon } from \"@radix-ui/react-icons\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { Flex } from \"~/flex\";\nimport { Label } from \"~/label\";\nimport styles from \"./checkbox.module.css\";\n\nconst checkbox = cva(styles.checkbox, {\n variants: {\n size: {\n small: styles[\"checkbox-sm\"],\n medium: styles[\"checkbox-md\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\n/**\n * @deprecated Use CheckboxProps from '@raystack/apsara/v1' instead.\n */\nexport interface CheckboxProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n VariantProps<typeof checkbox>,\n CheckboxPrimitive.CheckboxProps {}\n\n/**\n * @deprecated Use Checkbox from '@raystack/apsara/v1' instead.\n */\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, size, children, ...props }, forwardedRef) => (\n <Flex gap=\"small\">\n <CheckboxPrimitive.Root\n {...props}\n ref={forwardedRef}\n className={checkbox({ size, className })}\n >\n <CheckboxIndicator>\n <CheckIcon />\n </CheckboxIndicator>\n </CheckboxPrimitive.Root>\n <Label>{children}</Label>\n </Flex>\n));\n\nconst indicator = cva(styles.indicator);\n\n/**\n * @deprecated Use IndicatorProps from '@raystack/apsara/v1' instead.\n */\nexport interface IndicatorProps\n extends ComponentPropsWithoutRef<typeof CheckboxPrimitive.Indicator>,\n VariantProps<typeof indicator> {}\n\nconst CheckboxIndicator = forwardRef<\n ElementRef<typeof CheckboxPrimitive.Indicator>,\n IndicatorProps\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Indicator\n ref={ref}\n className={indicator({ className })}\n {...props}\n />\n));\n\nCheck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AS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AAEH,iBAAiB,CAAC,WAAW,GAAGA,yCAA2B,CAAC,WAAW;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.cjs","sources":["../../dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport styles from \"./dropdown-menu.module.css\";\n\nconst content = cva(styles.content);\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={content({ className })}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> &\n React.PropsWithChildren<VariantProps<typeof menuitem>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst label = cva(styles.label);\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> &\n React.PropsWithChildren<VariantProps<typeof label>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={label({ className })}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst separator = cva(styles.separator);\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> &\n React.PropsWithChildren<VariantProps<typeof separator>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst menugroup = cva(styles.menugroup);\nconst DropdownMenuGroup = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group> &\n React.PropsWithChildren<VariantProps<typeof menugroup>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Group\n ref={ref}\n className={menugroup({ className })}\n {...props}\n />\n));\nDropdownMenuGroup.displayName = DropdownMenuPrimitive.Group.displayName;\n\n\ntype DropdownMenuProps = React.ComponentProps<\n typeof DropdownMenuPrimitive.Root\n>;\nexport function RootDropdownMenu({ children, ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root {...props}>\n {children}\n </DropdownMenuPrimitive.Root>\n );\n}\n\n/**\n * @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport const DropdownMenu = Object.assign(DropdownMenuPrimitive.Root, {\n Trigger: DropdownMenuPrimitive.Trigger,\n Content: DropdownMenuContent,\n Item: DropdownMenuItem,\n Group: DropdownMenuGroup,\n Label: DropdownMenuLabel,\n Separator: DropdownMenuSeparator,\n});\n"],"names":["cva","styles","React","_jsx","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item","DropdownMenuPrimitive.Label","DropdownMenuPrimitive.Separator","DropdownMenuPrimitive.Group","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger"],"mappings":";;;;;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A,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAGA,WAA2B,CAAC,WAAW,CAAC;AAExE,MAAM,SAAS,GAAGP,WAAG,CAACC,2BAAM,CAAC,SAAS,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAGC,gBAAK,CAAC,UAAU,CAI5C,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,gCAAA,CAACK,eAA+B,EAC9B,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AACH,qBAAqB,CAAC,WAAW,GAAGA,eAA+B,CAAC,WAAW,CAAC;AAEhF,MAAM,SAAS,GAAGR,WAAG,CAACC,2BAAM,CAAC,SAAS,CAAC,CAAC;AACxC,MAAM,iBAAiB,GAAGC,gBAAK,CAAC,UAAU,CAIxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,gCAAA,CAACM,WAA2B,EAC1B,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAGA,WAA2B,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown-menu.cjs","sources":["../../dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport styles from \"./dropdown-menu.module.css\";\n\nconst content = cva(styles.content);\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={content({ className })}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> &\n React.PropsWithChildren<VariantProps<typeof menuitem>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst label = cva(styles.label);\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> &\n React.PropsWithChildren<VariantProps<typeof label>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={label({ className })}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst separator = cva(styles.separator);\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> &\n React.PropsWithChildren<VariantProps<typeof separator>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst menugroup = cva(styles.menugroup);\nconst DropdownMenuGroup = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group> &\n React.PropsWithChildren<VariantProps<typeof menugroup>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Group\n ref={ref}\n className={menugroup({ className })}\n {...props}\n />\n));\nDropdownMenuGroup.displayName = DropdownMenuPrimitive.Group.displayName;\n\n\ntype DropdownMenuProps = React.ComponentProps<\n typeof DropdownMenuPrimitive.Root\n>;\n\n/**\n * @deprecated Use RootDropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport function RootDropdownMenu({ children, ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root {...props}>\n {children}\n </DropdownMenuPrimitive.Root>\n );\n}\n\n/**\n * @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport const DropdownMenu = Object.assign(DropdownMenuPrimitive.Root, {\n Trigger: DropdownMenuPrimitive.Trigger,\n Content: DropdownMenuContent,\n Item: DropdownMenuItem,\n Group: DropdownMenuGroup,\n Label: DropdownMenuLabel,\n Separator: DropdownMenuSeparator,\n});\n"],"names":["cva","styles","React","_jsx","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item","DropdownMenuPrimitive.Label","DropdownMenuPrimitive.Separator","DropdownMenuPrimitive.Group","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,OAAO,GAAGA,WAAG,CAACC,2BAAM,CAAC,OAAO,CAAC,CAAC;AACpC,MAAM,mBAAmB,GAAGC,gBAAK,CAAC,UAAU,CAI1C,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7CC,gCAAC,CAAAC,YAA4B,cAC3BD,gCAAC,CAAAE,aAA6B,EAC5B,EAAA,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAC7B,GAAA,KAAK,EACT,CAAA,EAAA,CAC2B,CAChC,CAAC,CAA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AAC,WAAW,CAAC;AAEhF,MAAM,SAAS,GAAGR,WAAG,CAACC,2BAAM,CAAC,SAAS,CAAC,CAAC;AACxC,MAAM,iBAAiB,GAAGC,gBAAK,CAAC,UAAU,CAIxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7BC,gCAAA,CAACM,WAA2B,EAC1B,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAGA,WAA2B,CAAC,WAAW,CAAC;AAkBxE;;AAEG;AACU,MAAA,YAAY,GAAG,MAAM,CAAC,MAAM,CAACC,UAA0B,EAAE;IACpE,OAAO,EAAEC,aAA6B;AACtC,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,KAAK,EAAE,iBAAiB;AACxB,IAAA,KAAK,EAAE,iBAAiB;AACxB,IAAA,SAAS,EAAE,qBAAqB;AACjC,CAAA;;;;"}
|
|
@@ -2,6 +2,9 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
type DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use RootDropdownMenu from '@raystack/apsara/v1' instead.
|
|
7
|
+
*/
|
|
5
8
|
export declare function RootDropdownMenu({ children, ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
/**
|
|
7
10
|
* @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6E/B,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAC3C,OAAO,qBAAqB,CAAC,IAAI,CAClC,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6E/B,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAC3C,OAAO,qBAAqB,CAAC,IAAI,CAClC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAMzE;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAOvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.js","sources":["../../dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport styles from \"./dropdown-menu.module.css\";\n\nconst content = cva(styles.content);\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={content({ className })}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> &\n React.PropsWithChildren<VariantProps<typeof menuitem>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst label = cva(styles.label);\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> &\n React.PropsWithChildren<VariantProps<typeof label>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={label({ className })}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst separator = cva(styles.separator);\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> &\n React.PropsWithChildren<VariantProps<typeof separator>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst menugroup = cva(styles.menugroup);\nconst DropdownMenuGroup = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group> &\n React.PropsWithChildren<VariantProps<typeof menugroup>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Group\n ref={ref}\n className={menugroup({ className })}\n {...props}\n />\n));\nDropdownMenuGroup.displayName = DropdownMenuPrimitive.Group.displayName;\n\n\ntype DropdownMenuProps = React.ComponentProps<\n typeof DropdownMenuPrimitive.Root\n>;\nexport function RootDropdownMenu({ children, ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root {...props}>\n {children}\n </DropdownMenuPrimitive.Root>\n );\n}\n\n/**\n * @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport const DropdownMenu = Object.assign(DropdownMenuPrimitive.Root, {\n Trigger: DropdownMenuPrimitive.Trigger,\n Content: DropdownMenuContent,\n Item: DropdownMenuItem,\n Group: DropdownMenuGroup,\n Label: DropdownMenuLabel,\n Separator: DropdownMenuSeparator,\n});\n"],"names":["_jsx","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item","DropdownMenuPrimitive.Label","DropdownMenuPrimitive.Separator","DropdownMenuPrimitive.Group","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger"],"mappings":";;;;;;AAKA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpC,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAI1C,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7CA,qBAAC,CAAAC,yCAA4B,cAC3BD,qBAAC,CAAAE,yCAA6B,EAC5B,EAAA,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAC7B,GAAA,KAAK,EACT,CAAA,EAAA,CAC2B,CAChC,CAAC,CAAC;AACH,mBAAmB,CAAC,WAAW,GAAGA,yCAA6B,CAAC,WAAW,CAAC;AAE5E,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAIvC,CAAC,EAAE,SAAS,EAAE,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yCAA2B,EAC1B,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GAC/B,KAAK,EACT,CAAA,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAGA,yCAA2B,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown-menu.js","sources":["../../dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport styles from \"./dropdown-menu.module.css\";\n\nconst content = cva(styles.content);\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={content({ className })}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> &\n React.PropsWithChildren<VariantProps<typeof menuitem>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst label = cva(styles.label);\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> &\n React.PropsWithChildren<VariantProps<typeof label>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={label({ className })}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst separator = cva(styles.separator);\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> &\n React.PropsWithChildren<VariantProps<typeof separator>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst menugroup = cva(styles.menugroup);\nconst DropdownMenuGroup = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group> &\n React.PropsWithChildren<VariantProps<typeof menugroup>>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Group\n ref={ref}\n className={menugroup({ className })}\n {...props}\n />\n));\nDropdownMenuGroup.displayName = DropdownMenuPrimitive.Group.displayName;\n\n\ntype DropdownMenuProps = React.ComponentProps<\n typeof DropdownMenuPrimitive.Root\n>;\n\n/**\n * @deprecated Use RootDropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport function RootDropdownMenu({ children, ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root {...props}>\n {children}\n </DropdownMenuPrimitive.Root>\n );\n}\n\n/**\n * @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.\n */\nexport const DropdownMenu = Object.assign(DropdownMenuPrimitive.Root, {\n Trigger: DropdownMenuPrimitive.Trigger,\n Content: DropdownMenuContent,\n Item: DropdownMenuItem,\n Group: DropdownMenuGroup,\n Label: DropdownMenuLabel,\n Separator: DropdownMenuSeparator,\n});\n"],"names":["_jsx","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item","DropdownMenuPrimitive.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5,9 @@ var flex = require('../flex/flex.cjs');
|
|
|
5
5
|
var label = require('../label/label.cjs');
|
|
6
6
|
var inputfield_module = require('./inputfield.module.css.cjs');
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use InputField from '@raystack/apsara/v1' instead.
|
|
10
|
+
*/
|
|
8
11
|
const InputField = ({ label: label$1, children, ...props }) => {
|
|
9
12
|
return (jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { direction: "column", gap: "extra-small", ...props, children: [label$1 && jsxRuntime.jsxRuntimeExports.jsx(label.Label, { className: inputfield_module.default.bold, children: label$1 }), children] }));
|
|
10
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputfield.cjs","sources":["../../inputfield/inputfield.tsx"],"sourcesContent":["import { InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Flex } from \"../flex\";\nimport { Label } from \"../label\";\nimport styles from \"./inputfield.module.css\";\n\nconst inputfield = cva(styles.inputfield, {\n variants: {\n size: {\n small: styles[\"inputfield-sm\"],\n medium: styles[\"inputfield-md\"],\n },\n\n state: {\n invalid: styles[\"inputfield-invalid\"],\n valid: styles[\"inputfield-valid\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype InputFieldProps = PropsWithChildren<VariantProps<typeof inputfield>> &\n InputHTMLAttributes<HTMLInputElement> & {\n label?: string;\n children?: React.ReactNode;\n };\n\nexport const InputField = ({ label, children, ...props }: InputFieldProps) => {\n return (\n <Flex direction=\"column\" gap=\"extra-small\" {...props}>\n {label && <Label className={styles.bold}>{label}</Label>}\n {children}\n </Flex>\n );\n};\n\nInputField.displayName = \"InputField\";\n"],"names":["label","_jsxs","Flex","_jsx","Label","styles"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"inputfield.cjs","sources":["../../inputfield/inputfield.tsx"],"sourcesContent":["import { InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Flex } from \"../flex\";\nimport { Label } from \"../label\";\nimport styles from \"./inputfield.module.css\";\n\nconst inputfield = cva(styles.inputfield, {\n variants: {\n size: {\n small: styles[\"inputfield-sm\"],\n medium: styles[\"inputfield-md\"],\n },\n\n state: {\n invalid: styles[\"inputfield-invalid\"],\n valid: styles[\"inputfield-valid\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype InputFieldProps = PropsWithChildren<VariantProps<typeof inputfield>> &\n InputHTMLAttributes<HTMLInputElement> & {\n label?: string;\n children?: React.ReactNode;\n };\n\n\n/**\n * @deprecated Use InputField from '@raystack/apsara/v1' instead.\n */\nexport const InputField = ({ label, children, ...props }: InputFieldProps) => {\n return (\n <Flex direction=\"column\" gap=\"extra-small\" {...props}>\n {label && <Label className={styles.bold}>{label}</Label>}\n {children}\n </Flex>\n );\n};\n\nInputField.displayName = \"InputField\";\n"],"names":["label","_jsxs","Flex","_jsx","Label","styles"],"mappings":";;;;;;;AA8BA;;AAEG;AACI,MAAM,UAAU,GAAG,CAAC,SAAEA,OAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB,KAAI;AAC3E,IAAA,QACEC,iCAAA,CAACC,SAAI,EAAA,EAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,aAAa,EAAA,GAAK,KAAK,EACjD,QAAA,EAAA,CAAAF,OAAK,IAAIG,gCAAA,CAACC,WAAK,EAAA,EAAC,SAAS,EAAEC,yBAAM,CAAC,IAAI,EAAG,QAAA,EAAAL,OAAK,EAAS,CAAA,EACvD,QAAQ,CAAA,EAAA,CACJ,EACP;AACJ,EAAE;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -8,6 +8,9 @@ type InputFieldProps = PropsWithChildren<VariantProps<typeof inputfield>> & Inpu
|
|
|
8
8
|
label?: string;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use InputField from '@raystack/apsara/v1' instead.
|
|
13
|
+
*/
|
|
11
14
|
export declare const InputField: {
|
|
12
15
|
({ label, children, ...props }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputfield.d.ts","sourceRoot":"","sources":["../../inputfield/inputfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,QAAA,MAAM,UAAU;;;mFAed,CAAC;AAEH,KAAK,eAAe,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,GACvE,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"inputfield.d.ts","sourceRoot":"","sources":["../../inputfield/inputfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,QAAA,MAAM,UAAU;;;mFAed,CAAC;AAEH,KAAK,eAAe,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,GACvE,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAGJ;;GAEG;AACH,eAAO,MAAM,UAAU;oCAAmC,eAAe;;CAOxE,CAAC"}
|
|
@@ -3,6 +3,9 @@ import { Flex } from '../flex/flex.js';
|
|
|
3
3
|
import { Label } from '../label/label.js';
|
|
4
4
|
import styles from './inputfield.module.css.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use InputField from '@raystack/apsara/v1' instead.
|
|
8
|
+
*/
|
|
6
9
|
const InputField = ({ label, children, ...props }) => {
|
|
7
10
|
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "extra-small", ...props, children: [label && jsxRuntimeExports.jsx(Label, { className: styles.bold, children: label }), children] }));
|
|
8
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputfield.js","sources":["../../inputfield/inputfield.tsx"],"sourcesContent":["import { InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Flex } from \"../flex\";\nimport { Label } from \"../label\";\nimport styles from \"./inputfield.module.css\";\n\nconst inputfield = cva(styles.inputfield, {\n variants: {\n size: {\n small: styles[\"inputfield-sm\"],\n medium: styles[\"inputfield-md\"],\n },\n\n state: {\n invalid: styles[\"inputfield-invalid\"],\n valid: styles[\"inputfield-valid\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype InputFieldProps = PropsWithChildren<VariantProps<typeof inputfield>> &\n InputHTMLAttributes<HTMLInputElement> & {\n label?: string;\n children?: React.ReactNode;\n };\n\nexport const InputField = ({ label, children, ...props }: InputFieldProps) => {\n return (\n <Flex direction=\"column\" gap=\"extra-small\" {...props}>\n {label && <Label className={styles.bold}>{label}</Label>}\n {children}\n </Flex>\n );\n};\n\nInputField.displayName = \"InputField\";\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"inputfield.js","sources":["../../inputfield/inputfield.tsx"],"sourcesContent":["import { InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Flex } from \"../flex\";\nimport { Label } from \"../label\";\nimport styles from \"./inputfield.module.css\";\n\nconst inputfield = cva(styles.inputfield, {\n variants: {\n size: {\n small: styles[\"inputfield-sm\"],\n medium: styles[\"inputfield-md\"],\n },\n\n state: {\n invalid: styles[\"inputfield-invalid\"],\n valid: styles[\"inputfield-valid\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype InputFieldProps = PropsWithChildren<VariantProps<typeof inputfield>> &\n InputHTMLAttributes<HTMLInputElement> & {\n label?: string;\n children?: React.ReactNode;\n };\n\n\n/**\n * @deprecated Use InputField from '@raystack/apsara/v1' instead.\n */\nexport const InputField = ({ label, children, ...props }: InputFieldProps) => {\n return (\n <Flex direction=\"column\" gap=\"extra-small\" {...props}>\n {label && <Label className={styles.bold}>{label}</Label>}\n {children}\n </Flex>\n );\n};\n\nInputField.displayName = \"InputField\";\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;AA8BA;;AAEG;AACI,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB,KAAI;AAC3E,IAAA,QACEA,sBAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,aAAa,EAAA,GAAK,KAAK,EACjD,QAAA,EAAA,CAAA,KAAK,IAAIC,qBAAA,CAAC,KAAK,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAG,QAAA,EAAA,KAAK,EAAS,CAAA,EACvD,QAAQ,CAAA,EAAA,CACJ,EACP;AACJ,EAAE;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|