@react-fabric/core 1.0.0-beta.0 → 1.0.0-beta.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/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/DropdownTool.js +2 -1
- package/dist/cjs/index.js +1 -0
- package/dist/esm/components/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/dropdown/DropdownTool.js +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/components/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/dropdown/Dropdown.tsx +2 -1
- package/src/components/dropdown/DropdownTool.tsx +2 -1
- package/src/components/index.ts +1 -0
|
@@ -139,7 +139,7 @@ var DropdownElement = function DropdownElement(_ref) {
|
|
|
139
139
|
})), {}, {
|
|
140
140
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
141
141
|
role: "none",
|
|
142
|
-
className: classNames(Dropdown_module.dropdownBody, dropdownClassName, !plainDropdown && "shadow-lg bg-base ring-1 ring-tint-100", "rounded-capped overflow-auto scroll-thin grid max-h-[70vh]"),
|
|
142
|
+
className: classNames(Dropdown_module.dropdownBody, dropdownClassName, !plainDropdown && "shadow-lg shadow-base bg-base ring-1 ring-tint-100", "rounded-capped overflow-auto scroll-thin grid max-h-[70vh]"),
|
|
143
143
|
onMouseUpCapture: tryClosing,
|
|
144
144
|
children: panel
|
|
145
145
|
}), showArrow && /*#__PURE__*/jsxRuntime.jsx(react.FloatingArrow, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
|
+
var icons = require('../../types/icons.js');
|
|
6
7
|
var Icon = require('../icon/Icon.js');
|
|
7
8
|
var Dropdown = require('./Dropdown.js');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -17,7 +18,7 @@ var DropdownTool = function DropdownTool(_ref) {
|
|
|
17
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
19
|
return /*#__PURE__*/jsxRuntime.jsxs(Dropdown.Dropdown, _objectSpread(_objectSpread({}, props), {}, {
|
|
19
20
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
20
|
-
icon:
|
|
21
|
+
icon: icons.CoreIcons.caretDown,
|
|
21
22
|
className: classNames(className, "outline bg-base flex-content pointer-events-auto cursor-pointer", groupHover && "hidden group-hover:inline-block data-[dropdown-open]:inline-block")
|
|
22
23
|
}), children]
|
|
23
24
|
}));
|
package/dist/cjs/index.js
CHANGED
|
@@ -80,6 +80,7 @@ exports.ActionLabel = ActionLabel.ActionLabel;
|
|
|
80
80
|
exports.AnimationBars = Animations.AnimationBars;
|
|
81
81
|
exports.AnimationIndicator = Animations.AnimationIndicator;
|
|
82
82
|
exports.AnimationSpinner = Animations.AnimationSpinner;
|
|
83
|
+
exports.Loading = Animations.Loading;
|
|
83
84
|
exports.Skeleton = Animations.Skeleton;
|
|
84
85
|
exports.Avatar = Avatar.Avatar;
|
|
85
86
|
exports.AvatarGroup = AvatarGroup.AvatarGroup;
|
|
@@ -139,7 +139,7 @@ var DropdownElement = function DropdownElement(_ref) {
|
|
|
139
139
|
})), {}, {
|
|
140
140
|
children: [/*#__PURE__*/jsx("div", {
|
|
141
141
|
role: "none",
|
|
142
|
-
className: classNames(classes.dropdownBody, dropdownClassName, !plainDropdown && "shadow-lg bg-base ring-1 ring-tint-100", "rounded-capped overflow-auto scroll-thin grid max-h-[70vh]"),
|
|
142
|
+
className: classNames(classes.dropdownBody, dropdownClassName, !plainDropdown && "shadow-lg shadow-base bg-base ring-1 ring-tint-100", "rounded-capped overflow-auto scroll-thin grid max-h-[70vh]"),
|
|
143
143
|
onMouseUpCapture: tryClosing,
|
|
144
144
|
children: panel
|
|
145
145
|
}), showArrow && /*#__PURE__*/jsx(FloatingArrow, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
+
import { CoreIcons } from '../../types/icons.js';
|
|
6
7
|
import { Icon } from '../icon/Icon.js';
|
|
7
8
|
import { Dropdown } from './Dropdown.js';
|
|
8
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -17,7 +18,7 @@ var DropdownTool = function DropdownTool(_ref) {
|
|
|
17
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
19
|
return /*#__PURE__*/jsxs(Dropdown, _objectSpread(_objectSpread({}, props), {}, {
|
|
19
20
|
children: [/*#__PURE__*/jsx(Icon, {
|
|
20
|
-
icon:
|
|
21
|
+
icon: CoreIcons.caretDown,
|
|
21
22
|
className: classNames(className, "outline bg-base flex-content pointer-events-auto cursor-pointer", groupHover && "hidden group-hover:inline-block data-[dropdown-open]:inline-block")
|
|
22
23
|
}), children]
|
|
23
24
|
}));
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
export { ActionLabel } from './components/actionLabel/ActionLabel.js';
|
|
4
|
-
export { AnimationBars, AnimationIndicator, AnimationSpinner, Skeleton } from './components/animations/Animations.js';
|
|
4
|
+
export { AnimationBars, AnimationIndicator, AnimationSpinner, Loading, Skeleton } from './components/animations/Animations.js';
|
|
5
5
|
export { Avatar } from './components/avatar/Avatar.js';
|
|
6
6
|
export { AvatarGroup } from './components/avatar/AvatarGroup.js';
|
|
7
7
|
export { Badge, getBadgeProps } from './components/badge/Badge.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ActionLabel } from "./actionLabel/ActionLabel";
|
|
2
|
-
export { AnimationBars, AnimationIndicator, AnimationSpinner, Skeleton, } from "./animations/Animations";
|
|
2
|
+
export { AnimationBars, AnimationIndicator, AnimationSpinner, Skeleton, Loading, } from "./animations/Animations";
|
|
3
3
|
export { Avatar } from "./avatar/Avatar";
|
|
4
4
|
export { AvatarGroup } from "./avatar/AvatarGroup";
|
|
5
5
|
export { Badge, getBadgeProps } from "./badge/Badge";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "RUF: Core package",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/react": "^0.26.24",
|
|
39
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
39
|
+
"@react-fabric/utilities": "^1.0.0-beta.1",
|
|
40
40
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
41
41
|
"@tailwindcss/forms": "^0.5.7",
|
|
42
42
|
"@tailwindcss/typography": "^0.5.13",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"node": ">=18.12.0",
|
|
57
57
|
"npm": ">=8.19.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e0712d7ea2c945de876bef813b5d2dcec1218ed7"
|
|
60
60
|
}
|
|
@@ -257,7 +257,8 @@ const DropdownElement = ({
|
|
|
257
257
|
className={classNames(
|
|
258
258
|
classes.dropdownBody,
|
|
259
259
|
dropdownClassName,
|
|
260
|
-
!plainDropdown &&
|
|
260
|
+
!plainDropdown &&
|
|
261
|
+
"shadow-lg shadow-base bg-base ring-1 ring-tint-100",
|
|
261
262
|
"rounded-capped overflow-auto scroll-thin grid max-h-[70vh]",
|
|
262
263
|
)}
|
|
263
264
|
onMouseUpCapture={tryClosing}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
import classNames from "classnames";
|
|
25
25
|
import { type ChildProp, type CssProp } from "../../types";
|
|
26
|
+
import { CoreIcons } from "../../types/icons";
|
|
26
27
|
import { Icon } from "../icon/Icon";
|
|
27
28
|
import { Dropdown, type DropdownProps } from "./Dropdown";
|
|
28
29
|
|
|
@@ -42,7 +43,7 @@ export const DropdownTool = ({
|
|
|
42
43
|
return (
|
|
43
44
|
<Dropdown {...props}>
|
|
44
45
|
<Icon
|
|
45
|
-
icon=
|
|
46
|
+
icon={CoreIcons.caretDown}
|
|
46
47
|
className={classNames(
|
|
47
48
|
className,
|
|
48
49
|
"outline bg-base flex-content pointer-events-auto cursor-pointer",
|