@fibery/ui-kit 1.40.2 → 1.40.3
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/icons/Icon.tsx +1 -0
- package/src/icons/ast/Print.ts +8 -0
- package/src/icons/ast/index.tsx +1 -0
- package/src/icons/react/Dividers.tsx +1 -1
- package/src/icons/react/Print.tsx +13 -0
- package/src/icons/react/index.tsx +1 -0
- package/src/icons/svg/print.svg +3 -0
- package/src/popover/index.tsx +7 -13
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/icons/Icon.tsx
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const Print: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"d":"M13.75 2.25A2.25 2.25 0 0 1 16 4.5v2.55c1.141.231 2 1.24 2 2.45v6a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 15.5v-6c0-1.21.859-2.219 2-2.45V4.5a2.25 2.25 0 0 1 2.25-2.25h7.5ZM4.5 8.5c-.552 0-1 .557-1 1.11v5.89a1 1 0 0 0 1 1H8v-2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 .5.5v2h.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-11ZM8 10a.75.75 0 0 1 0 1.5H5.5a.75.75 0 0 1 0-1.5H8ZM6.25 3.75a.75.75 0 0 0-.75.75V7h9V4.5a.75.75 0 0 0-.75-.75h-7.5Z"},"children":[]}],"metadata":""}]},"name":"print"};
|
|
7
|
+
|
|
8
|
+
export default Print;
|
package/src/icons/ast/index.tsx
CHANGED
|
@@ -247,6 +247,7 @@ export { default as Popup } from './Popup';
|
|
|
247
247
|
export { default as Posts } from './Posts';
|
|
248
248
|
export { default as PresentPlay } from './PresentPlay';
|
|
249
249
|
export { default as PresentStop } from './PresentStop';
|
|
250
|
+
export { default as Print } from './Print';
|
|
250
251
|
export { default as PrivateItems } from './PrivateItems';
|
|
251
252
|
export { default as Question } from './Question';
|
|
252
253
|
export { default as QuickFilterPersonal } from './QuickFilterPersonal';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import PrintSvg from '../ast/Print';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const Print = forwardRef<SVGSVGElement, IconBaseProps>(function Print(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={PrintSvg} />});
|
|
12
|
+
|
|
13
|
+
export default Print;
|
|
@@ -247,6 +247,7 @@ export { default as Popup } from './Popup';
|
|
|
247
247
|
export { default as Posts } from './Posts';
|
|
248
248
|
export { default as PresentPlay } from './PresentPlay';
|
|
249
249
|
export { default as PresentStop } from './PresentStop';
|
|
250
|
+
export { default as Print } from './Print';
|
|
250
251
|
export { default as PrivateItems } from './PrivateItems';
|
|
251
252
|
export { default as Question } from './Question';
|
|
252
253
|
export { default as QuickFilterPersonal } from './QuickFilterPersonal';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.75 2.25C14.9926 2.25 16 3.25736 16 4.5V7.0498C17.1411 7.28143 18 8.29051 18 9.5V15.5C18 16.8807 16.8807 18 15.5 18H4.5C3.11929 18 2 16.8807 2 15.5V9.5C2 8.29051 2.85886 7.28142 4 7.0498V4.5C4 3.25736 5.00736 2.25 6.25 2.25H13.75ZM4.5 8.5C3.94771 8.5 3.5 9.05709 3.5 9.60938V15.5C3.5 16.0523 3.94771 16.5 4.5 16.5H8V14.5C8 14.2239 8.22386 14 8.5 14H14.5C14.7761 14 15 14.2239 15 14.5V16.5H15.5C16.0523 16.5 16.5 16.0523 16.5 15.5V9.5C16.5 8.94771 16.0523 8.5 15.5 8.5H4.5ZM8 10C8.41421 10 8.75 10.3358 8.75 10.75C8.75 11.1642 8.41421 11.5 8 11.5H5.5C5.08579 11.5 4.75 11.1642 4.75 10.75C4.75 10.3358 5.08579 10 5.5 10H8ZM6.25 3.75C5.83579 3.75 5.5 4.08579 5.5 4.5V7H14.5V4.5C14.5 4.08579 14.1642 3.75 13.75 3.75H6.25Z"/>
|
|
3
|
+
</svg>
|
package/src/popover/index.tsx
CHANGED
|
@@ -238,20 +238,14 @@ type TriggerProps = {
|
|
|
238
238
|
const Trigger = ({asChild = false, reference, children, onMouseDown, ...props}: TriggerProps) => {
|
|
239
239
|
const {setTriggerElement, disabled, open, onOpen, onClose} = useContext();
|
|
240
240
|
|
|
241
|
-
const onMouseDownCb: React.MouseEventHandler<HTMLElement> = composeEventHandlers(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
if (disabled) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
if (e.button === 0) {
|
|
248
|
-
open ? onClose?.(e as unknown as Event) : onOpen?.();
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
checkForDefaultPrevented: false,
|
|
241
|
+
const onMouseDownCb: React.MouseEventHandler<HTMLElement> = composeEventHandlers(onMouseDown, (e) => {
|
|
242
|
+
if (disabled) {
|
|
243
|
+
return;
|
|
253
244
|
}
|
|
254
|
-
|
|
245
|
+
if (e.button === 0) {
|
|
246
|
+
open ? onClose?.(e as unknown as Event) : onOpen?.();
|
|
247
|
+
}
|
|
248
|
+
});
|
|
255
249
|
|
|
256
250
|
useEffect(() => {
|
|
257
251
|
if (reference) {
|