livevegas-ui-kit 1.0.51 → 1.0.52

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.
@@ -2,10 +2,11 @@ import { BET_TYPE } from 'src/components/History/helpers';
2
2
  import { ISizeIcon } from '../helper';
3
3
 
4
4
  export interface IActionButton {
5
- buttonType: BET_TYPE;
5
+ buttonType?: BET_TYPE;
6
6
  icon: (size: ISizeIcon) => JSX.Element;
7
7
  onClick: () => void;
8
8
  isDisabled: boolean;
9
9
  size?: number;
10
+ customColor?: string;
10
11
  }
11
- export declare const ActionButton: ({ buttonType, icon, onClick, isDisabled, size, }: IActionButton) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ActionButton: ({ buttonType, icon, onClick, isDisabled, size, customColor, }: IActionButton) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import { ISize } from '../helper';
2
- import { BET_TYPE } from 'src/components/History/helpers';
3
2
 
4
3
  interface IButtonWrapper {
5
- $color: BET_TYPE;
4
+ $color: string;
6
5
  $size: ISize;
7
6
  $isDisabled: boolean;
8
7
  }
@@ -0,0 +1,19 @@
1
+ export declare enum INSURANCE_ACTION {
2
+ Yes = "yes",
3
+ No = "no"
4
+ }
5
+ interface IDoingInsurance {
6
+ isDisabled: boolean;
7
+ onHandle: () => void;
8
+ }
9
+ export interface IInsurance {
10
+ [INSURANCE_ACTION.Yes]: IDoingInsurance;
11
+ [INSURANCE_ACTION.No]: IDoingInsurance;
12
+ }
13
+ export declare const insuranceActions: {
14
+ betType: INSURANCE_ACTION;
15
+ name: string;
16
+ icon: () => import("react/jsx-runtime").JSX.Element;
17
+ color: string;
18
+ }[];
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IInsurance } from './helper';
2
+
3
+ export interface IBlackJackInsurance {
4
+ time: number;
5
+ actionsHandler: IInsurance;
6
+ }
7
+ export declare const BlackjeckInsurance: ({ time, actionsHandler, }: IBlackJackInsurance) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { BlackjeckInsurance } from '.';
3
+
4
+ declare const meta: Meta<typeof BlackjeckInsurance>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof BlackjeckInsurance>;
7
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export declare const InsuranceWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export declare const InsuranceNo: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const InsuranceYes: () => import("react/jsx-runtime").JSX.Element;
@@ -7066,7 +7066,7 @@ const _2 = {
7066
7066
  border-radius: ${({ $size: e }) => e.radius}px;
7067
7067
  padding: 10px;
7068
7068
  border: 1px solid #ffffff14;
7069
- background: ${({ $color: e }) => S9[e]};
7069
+ background: ${({ $color: e }) => e};
7070
7070
  display: flex;
7071
7071
  justify-content: center;
7072
7072
  align-items: center;
@@ -7081,7 +7081,6 @@ const _2 = {
7081
7081
 
7082
7082
  &:hover {
7083
7083
  border: 1px solid var(--white-60, #ffffff99);
7084
- backdrop-filter: blur(4px);
7085
7084
  .icon {
7086
7085
  transform: scale(1.3);
7087
7086
  }
@@ -7091,14 +7090,15 @@ const _2 = {
7091
7090
  icon: n,
7092
7091
  onClick: r,
7093
7092
  isDisabled: i,
7094
- size: o = Le.Big
7093
+ size: o = Le.Big,
7094
+ customColor: a
7095
7095
  }) => /* @__PURE__ */ t.jsx(
7096
7096
  M9,
7097
7097
  {
7098
7098
  onClick: r,
7099
7099
  disabled: i,
7100
7100
  $isDisabled: i,
7101
- $color: e,
7101
+ $color: a ?? S9[e],
7102
7102
  $size: _2[o],
7103
7103
  children: /* @__PURE__ */ t.jsx("div", { className: "icon", children: n({ size: _2[o].iconSize }) })
7104
7104
  }
@@ -2279,7 +2279,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[xe]+=1);const Y0=d.div`
2279
2279
  border-radius: ${({$size:e})=>e.radius}px;
2280
2280
  padding: 10px;
2281
2281
  border: 1px solid #ffffff14;
2282
- background: ${({$color:e})=>c9[e]};
2282
+ background: ${({$color:e})=>e};
2283
2283
  display: flex;
2284
2284
  justify-content: center;
2285
2285
  align-items: center;
@@ -2294,12 +2294,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[xe]+=1);const Y0=d.div`
2294
2294
 
2295
2295
  &:hover {
2296
2296
  border: 1px solid var(--white-60, #ffffff99);
2297
- backdrop-filter: blur(4px);
2298
2297
  .icon {
2299
2298
  transform: scale(1.3);
2300
2299
  }
2301
2300
  }
2302
- `,h9=({buttonType:e,icon:n,onClick:r,isDisabled:i,size:o=Se.Big})=>t.jsx(p9,{onClick:r,disabled:i,$isDisabled:i,$color:e,$size:At[o],children:t.jsx("div",{className:"icon",children:n({size:At[o].iconSize})})}),f9=d.div`
2301
+ `,h9=({buttonType:e,icon:n,onClick:r,isDisabled:i,size:o=Se.Big,customColor:a})=>t.jsx(p9,{onClick:r,disabled:i,$isDisabled:i,$color:a??c9[e],$size:At[o],children:t.jsx("div",{className:"icon",children:n({size:At[o].iconSize})})}),f9=d.div`
2303
2302
  display: flex;
2304
2303
  flex-direction: column;
2305
2304
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livevegas-ui-kit",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"