chop-logic-components 1.1.0 → 1.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.
@@ -1,5 +1,18 @@
1
1
  import { default as React } from 'react';
2
- import { ChopLogicButtonProps } from '../../../types';
2
+ import { ChopLogicButtonView } from '../../../enums';
3
3
 
4
- declare const ChopLogicButton: React.FC<ChopLogicButtonProps>;
5
- export default ChopLogicButton;
4
+ declare const _default: React.FC<Partial<import('../../../types/components/_common').CommonInputProps> & {
5
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
6
+ onFocus?: React.FocusEventHandler<HTMLButtonElement>;
7
+ onBlur?: React.FocusEventHandler<HTMLButtonElement>;
8
+ view?: ChopLogicButtonView;
9
+ icon?: import('../../../enums').ChopLogicIconName;
10
+ text?: string;
11
+ extended?: boolean;
12
+ type?: "button" | "reset" | "submit";
13
+ tooltip?: string;
14
+ } & {
15
+ tooltip?: string;
16
+ visibleOn?: "hover" | "click" | "focus" | "contextmenu";
17
+ }>;
18
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ChopLogicTheme } from '../../../types';
2
2
 
3
- export declare const Styled3DButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
3
+ export declare const StyledPrimaryButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
4
4
  $extended: boolean;
5
5
  $theme: ChopLogicTheme;
6
6
  }>> & string;
@@ -4,6 +4,7 @@ import { default as ButtonExample } from './ButtonExample';
4
4
  declare const meta: Meta<typeof ButtonExample>;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof ButtonExample>;
7
- export declare const DefaultButton: Story;
7
+ export declare const PrimaryButton: Story;
8
8
  export declare const FlatButton: Story;
9
9
  export declare const IconButton: Story;
10
+ export declare const ButtonWithTooltip: Story;
@@ -0,0 +1,5 @@
1
+ export declare enum ChopLogicButtonView {
2
+ Primary = "primary",
3
+ Flat = "flat",
4
+ Icon = "icon"
5
+ }
@@ -1,2 +1,3 @@
1
1
  export { ChopLogicAlertMode } from './chop-logic-alert-mode';
2
+ export { ChopLogicButtonView } from './chop-logic-button-view';
2
3
  export { ChopLogicIconName } from './chop-logic-icon-name';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { withTooltip } from './with-tooltip.tsx';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ type WithTooltipProps = {
4
+ tooltip?: string;
5
+ visibleOn?: 'hover' | 'click' | 'focus' | 'contextmenu';
6
+ };
7
+ export declare function withTooltip<P extends object>(Component: React.ComponentType<P>): React.FC<P & WithTooltipProps>;
8
+ export {};