@linzjs/windows 9.1.0 → 9.1.2

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.
@@ -18,6 +18,7 @@
18
18
 
19
19
  &:disabled {
20
20
  cursor: not-allowed;
21
+ background-color: lui.$disabled-bg-color;
21
22
  }
22
23
 
23
24
  span.LuiIcon {
@@ -58,8 +59,6 @@
58
59
  }
59
60
 
60
61
  .RibbonButton-disabled {
61
- background-color: lui.$white !important;
62
-
63
62
  fill: lui.$grey-20 !important;
64
63
 
65
64
  svg * {
@@ -7,10 +7,11 @@ import { RibbonButton, RibbonButtonProps } from './RibbonButton';
7
7
  export type RibbonButtonLinkProps = RibbonButtonProps & {
8
8
  href: string;
9
9
  target?: string;
10
+ rel?: string;
10
11
  };
11
12
 
12
13
  export const RibbonButtonLink = forwardRef<HTMLButtonElement, RibbonButtonLinkProps>(function RibbonButtonLink(
13
- { onClick, href, target = '_blank', ...props },
14
+ { onClick, href, rel = 'noreferrer', target = '_blank', ...props },
14
15
  ref,
15
16
  ) {
16
17
  return (
@@ -19,7 +20,7 @@ export const RibbonButtonLink = forwardRef<HTMLButtonElement, RibbonButtonLinkPr
19
20
  {...props}
20
21
  onClick={() => {
21
22
  onClick?.();
22
- void window.open(href, target);
23
+ void window.open(href, target, rel);
23
24
  }}
24
25
  />
25
26
  );
@@ -8,22 +8,14 @@ import { RibbonButton, RibbonButtonProps } from './RibbonButton';
8
8
 
9
9
  export type RibbonButtonOpenPanelProps = Omit<RibbonButtonProps, 'onClick'> & OpenPanelOptions;
10
10
  export const RibbonButtonOpenPanel = forwardRef<HTMLButtonElement, RibbonButtonOpenPanelProps>(
11
- function RibbonButtonOpenPanel(
12
- { title, icon, className, disabled, testId, processing, uniqueId = title, loading, ...openPanelOptions },
13
- ref,
14
- ) {
11
+ function RibbonButtonOpenPanel({ uniqueId, componentFn, poppedOut, onClose, className, ...buttonProps }, ref) {
15
12
  const { openPanel, openPanels } = useContext(PanelsContext);
16
13
 
17
14
  return (
18
15
  <RibbonButton
19
16
  ref={ref}
20
- testId={testId}
21
- icon={icon}
22
- title={title}
23
- disabled={disabled}
24
- loading={loading}
25
- processing={processing}
26
- onClick={() => openPanel({ uniqueId, ...openPanelOptions })}
17
+ {...buttonProps}
18
+ onClick={() => openPanel({ uniqueId: uniqueId || buttonProps.title, componentFn, poppedOut, onClose })}
27
19
  className={clsx(openPanels.has(uniqueId ?? '') && 'RibbonButton-selected', className)}
28
20
  />
29
21
  );
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "9.1.0",
16
+ "version": "9.1.2",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=23",
19
19
  "lodash-es": ">=4",