ag-common 0.0.775 → 0.0.776

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.
@@ -1,6 +1,5 @@
1
1
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
2
  import * as React from 'react';
3
- declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
- export { Avatar, AvatarFallback, AvatarImage };
3
+ export declare const Avatar: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>) => React.JSX.Element;
4
+ export declare const AvatarImage: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>) => React.JSX.Element;
5
+ export declare const AvatarFallback: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>) => React.JSX.Element;
@@ -45,25 +45,22 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.AvatarImage = exports.AvatarFallback = exports.Avatar = void 0;
48
+ exports.AvatarFallback = exports.AvatarImage = exports.Avatar = void 0;
49
49
  const AvatarPrimitive = __importStar(require("@radix-ui/react-avatar"));
50
50
  const React = __importStar(require("react"));
51
51
  const utils_1 = require("../../helpers/utils");
52
- const Avatar = React.forwardRef((_a, ref) => {
52
+ const Avatar = (_a) => {
53
53
  var { className } = _a, props = __rest(_a, ["className"]);
54
- return (React.createElement(AvatarPrimitive.Root, Object.assign({ ref: ref, className: (0, utils_1.cn)('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className) }, props)));
55
- });
54
+ return (React.createElement(AvatarPrimitive.Root, Object.assign({ className: (0, utils_1.cn)('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className) }, props)));
55
+ };
56
56
  exports.Avatar = Avatar;
57
- Avatar.displayName = AvatarPrimitive.Root.displayName;
58
- const AvatarImage = React.forwardRef((_a, ref) => {
57
+ const AvatarImage = (_a) => {
59
58
  var { className } = _a, props = __rest(_a, ["className"]);
60
- return (React.createElement(AvatarPrimitive.Image, Object.assign({ ref: ref, className: (0, utils_1.cn)('aspect-square h-full w-full', className) }, props)));
61
- });
59
+ return (React.createElement(AvatarPrimitive.Image, Object.assign({ className: (0, utils_1.cn)('aspect-square h-full w-full', className) }, props)));
60
+ };
62
61
  exports.AvatarImage = AvatarImage;
63
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
64
- const AvatarFallback = React.forwardRef((_a, ref) => {
62
+ const AvatarFallback = (_a) => {
65
63
  var { className } = _a, props = __rest(_a, ["className"]);
66
- return (React.createElement(AvatarPrimitive.Fallback, Object.assign({ ref: ref, className: (0, utils_1.cn)('flex h-full w-full items-center justify-center rounded-full bg-muted', className) }, props)));
67
- });
64
+ return (React.createElement(AvatarPrimitive.Fallback, Object.assign({ className: (0, utils_1.cn)('flex h-full w-full items-center justify-center rounded-full bg-muted', className) }, props)));
65
+ };
68
66
  exports.AvatarFallback = AvatarFallback;
69
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
@@ -1,4 +1,4 @@
1
1
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
2
  import * as React from 'react';
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Checkbox };
3
+ export declare const Checkbox: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {}) => React.JSX.Element;
4
+ export declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxPrimitive.CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
@@ -45,16 +45,16 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Checkbox = void 0;
48
+ exports.CheckboxIndicator = exports.Checkbox = void 0;
49
49
  const CheckboxPrimitive = __importStar(require("@radix-ui/react-checkbox"));
50
50
  const react_icons_1 = require("@radix-ui/react-icons");
51
51
  const React = __importStar(require("react"));
52
52
  const utils_1 = require("../../helpers/utils");
53
- const Checkbox = React.forwardRef((_a, ref) => {
53
+ const Checkbox = (_a) => {
54
54
  var { className } = _a, props = __rest(_a, ["className"]);
55
- return (React.createElement(CheckboxPrimitive.Root, Object.assign({ ref: ref, className: (0, utils_1.cn)('peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className) }, props),
55
+ return (React.createElement(CheckboxPrimitive.Root, Object.assign({}, props, { className: (0, utils_1.cn)('peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className) }),
56
56
  React.createElement(CheckboxPrimitive.Indicator, { className: (0, utils_1.cn)('flex items-center justify-center text-current') },
57
57
  React.createElement(react_icons_1.CheckIcon, { className: "h-4 w-4" }))));
58
- });
58
+ };
59
59
  exports.Checkbox = Checkbox;
60
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
60
+ exports.CheckboxIndicator = CheckboxPrimitive.Indicator;
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
4
  declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
5
  declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectItemText: React.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
6
7
  declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
8
  declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
9
  declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -10,4 +11,4 @@ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitiv
10
11
  declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
12
  declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
13
  declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
14
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -45,7 +45,7 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = void 0;
48
+ exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItemText = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = void 0;
49
49
  const react_icons_1 = require("@radix-ui/react-icons");
50
50
  const SelectPrimitive = __importStar(require("@radix-ui/react-select"));
51
51
  const React = __importStar(require("react"));
@@ -56,6 +56,8 @@ const SelectGroup = SelectPrimitive.Group;
56
56
  exports.SelectGroup = SelectGroup;
57
57
  const SelectValue = SelectPrimitive.Value;
58
58
  exports.SelectValue = SelectValue;
59
+ const SelectItemText = SelectPrimitive.SelectItemText;
60
+ exports.SelectItemText = SelectItemText;
59
61
  const SelectTrigger = React.forwardRef((_a, ref) => {
60
62
  var { className, children } = _a, props = __rest(_a, ["className", "children"]);
61
63
  return (React.createElement(SelectPrimitive.Trigger, Object.assign({ ref: ref, className: (0, utils_1.cn)('flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className) }, props),
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.775",
2
+ "version": "0.0.776",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",