@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @fibery/ui-kit
2
2
 
3
+ ## 1.40.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 583769d: [Icon] pass ref to generated svg
8
+
3
9
  ## 1.40.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "1.40.2",
3
+ "version": "1.40.3",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "dependencies": {
@@ -54,6 +54,7 @@ export const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(
54
54
  viewBox,
55
55
  "aria-hidden": "true",
56
56
  style: iconStyle,
57
+ ref: ref,
57
58
  ...rest,
58
59
  })
59
60
  ) : (
@@ -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;
@@ -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';
@@ -10,4 +10,4 @@ const Dividers = forwardRef<SVGSVGElement, IconBaseProps>(function Dividers(
10
10
  ref: React.Ref<SVGSVGElement>
11
11
  ) {return <Icon {...props} className={props.className} ref={ref} icon={DividersSvg} />});
12
12
 
13
- export default Dividers;
13
+ export default Dividers;
@@ -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>
@@ -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
- onMouseDown,
243
- (e) => {
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) {