@scaleflex/ui-tw 0.0.114 → 0.0.115

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.
@@ -0,0 +1,6 @@
1
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
+ import React, { type ComponentProps } from 'react';
3
+ declare function Avatar({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Root>): React.JSX.Element;
4
+ declare function AvatarImage({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
5
+ declare function AvatarFallback({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
6
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1,33 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className"],
4
+ _excluded2 = ["className"],
5
+ _excluded3 = ["className"];
6
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
+ import { cn } from '@scaleflex/ui-tw/utils/cn';
8
+ import React from 'react';
9
+ function Avatar(_ref) {
10
+ var className = _ref.className,
11
+ props = _objectWithoutProperties(_ref, _excluded);
12
+ return /*#__PURE__*/React.createElement(AvatarPrimitive.Root, _extends({
13
+ "data-slot": "avatar",
14
+ className: cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)
15
+ }, props));
16
+ }
17
+ function AvatarImage(_ref2) {
18
+ var className = _ref2.className,
19
+ props = _objectWithoutProperties(_ref2, _excluded2);
20
+ return /*#__PURE__*/React.createElement(AvatarPrimitive.Image, _extends({
21
+ "data-slot": "avatar-image",
22
+ className: cn('aspect-square h-full w-full', className)
23
+ }, props));
24
+ }
25
+ function AvatarFallback(_ref3) {
26
+ var className = _ref3.className,
27
+ props = _objectWithoutProperties(_ref3, _excluded3);
28
+ return /*#__PURE__*/React.createElement(AvatarPrimitive.Fallback, _extends({
29
+ "data-slot": "avatar-fallback",
30
+ className: cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)
31
+ }, props));
32
+ }
33
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1 @@
1
+ export { Avatar, AvatarImage, AvatarFallback } from './avatar.component';
@@ -0,0 +1 @@
1
+ export { Avatar, AvatarImage, AvatarFallback } from './avatar.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/ui-tw",
3
- "version": "0.0.114",
3
+ "version": "0.0.115",
4
4
  "author": "scaleflex",
5
5
  "repository": "github:scaleflex/ui",
6
6
  "homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
@@ -14,6 +14,7 @@
14
14
  "dependencies": {
15
15
  "@popperjs/core": "^2.6.0",
16
16
  "@radix-ui/react-accordion": "^1.2.12",
17
+ "@radix-ui/react-avatar": "^1.1.1",
17
18
  "@radix-ui/react-checkbox": "^1.3.2",
18
19
  "@radix-ui/react-context-menu": "^2.2.16",
19
20
  "@radix-ui/react-dropdown-menu": "^2.1.15",
@@ -25,7 +26,7 @@
25
26
  "@radix-ui/react-slot": "^1.1.2",
26
27
  "@radix-ui/react-switch": "^1.0.1",
27
28
  "@radix-ui/react-tooltip": "^1.2.6",
28
- "@scaleflex/icons-tw": "^0.0.114",
29
+ "@scaleflex/icons-tw": "^0.0.115",
29
30
  "@tanstack/react-table": "^8.21.3",
30
31
  "@types/lodash.merge": "^4.6.9",
31
32
  "class-variance-authority": "^0.7.1",