@gobolt/genesis 0.2.3 → 0.2.5

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.
Files changed (117) hide show
  1. package/README.md +0 -1
  2. package/dist/_virtual/index5.cjs +1 -1
  3. package/dist/_virtual/index5.js +4 -4
  4. package/dist/_virtual/index6.cjs +1 -1
  5. package/dist/_virtual/index6.js +4 -4
  6. package/dist/components/Avatar/Avatar.cjs +1 -1
  7. package/dist/components/Avatar/Avatar.d.ts +7 -3
  8. package/dist/components/Avatar/Avatar.js +61 -30
  9. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +4 -2
  10. package/dist/components/Avatar/styles.cjs +1 -1
  11. package/dist/components/Avatar/styles.d.ts +12 -1
  12. package/dist/components/Avatar/styles.js +1 -1
  13. package/dist/components/Badge/styles.cjs +3 -3
  14. package/dist/components/Badge/styles.d.ts +8 -1
  15. package/dist/components/Badge/styles.js +1 -1
  16. package/dist/components/Breadcrumb/styles.cjs +10 -10
  17. package/dist/components/Breadcrumb/styles.d.ts +23 -2
  18. package/dist/components/Breadcrumb/styles.js +1 -1
  19. package/dist/components/Button/icon-button-styles.cjs +5 -5
  20. package/dist/components/Button/icon-button-styles.d.ts +12 -1
  21. package/dist/components/Button/icon-button-styles.js +5 -5
  22. package/dist/components/Button/styles.cjs +11 -11
  23. package/dist/components/Button/styles.d.ts +16 -1
  24. package/dist/components/Button/styles.js +14 -14
  25. package/dist/components/Card/styles.cjs +4 -4
  26. package/dist/components/Card/styles.d.ts +10 -1
  27. package/dist/components/Card/styles.js +1 -1
  28. package/dist/components/Checkbox/styles.cjs +2 -2
  29. package/dist/components/Checkbox/styles.d.ts +6 -1
  30. package/dist/components/Checkbox/styles.js +1 -1
  31. package/dist/components/Dashboard/styles.d.ts +8 -1
  32. package/dist/components/ErrorBoundary/styles.d.ts +8 -1
  33. package/dist/components/ErrorBoundaryFallback/styles.cjs +1 -1
  34. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
  35. package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
  36. package/dist/components/Form/styles.cjs +1 -1
  37. package/dist/components/Form/styles.js +1 -1
  38. package/dist/components/Glyph/styles.d.ts +8 -1
  39. package/dist/components/Input/styles.cjs +2 -2
  40. package/dist/components/Input/styles.d.ts +15 -1
  41. package/dist/components/Input/styles.js +1 -1
  42. package/dist/components/Layout/Content/styles.cjs +2 -2
  43. package/dist/components/Layout/Content/styles.d.ts +7 -1
  44. package/dist/components/Layout/Content/styles.js +1 -1
  45. package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
  46. package/dist/components/Message/styles.cjs +4 -4
  47. package/dist/components/Message/styles.d.ts +9 -3
  48. package/dist/components/Message/styles.js +1 -1
  49. package/dist/components/Notification/NotificationBadge/styles.cjs +3 -3
  50. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
  51. package/dist/components/Notification/NotificationBadge/styles.js +1 -1
  52. package/dist/components/Notification/styles.cjs +7 -7
  53. package/dist/components/Notification/styles.d.ts +16 -5
  54. package/dist/components/Notification/styles.js +1 -1
  55. package/dist/components/Popover/styles.cjs +1 -1
  56. package/dist/components/Popover/styles.d.ts +13 -1
  57. package/dist/components/Popover/styles.js +1 -1
  58. package/dist/components/Progress/styles.cjs +1 -1
  59. package/dist/components/Progress/styles.d.ts +13 -1
  60. package/dist/components/Progress/styles.js +1 -1
  61. package/dist/components/Radio/Radio.cjs +2 -2
  62. package/dist/components/Radio/Radio.d.ts +4 -1
  63. package/dist/components/Radio/Radio.js +1 -1
  64. package/dist/components/Row/RowActions/RowActions.cjs +1 -1
  65. package/dist/components/Row/RowActions/RowActions.js +9 -24
  66. package/dist/components/Row/RowActions/styles.cjs +2 -22
  67. package/dist/components/Row/RowActions/styles.d.ts +1 -2
  68. package/dist/components/Row/RowActions/styles.js +3 -24
  69. package/dist/components/Row/RowLabelValue/styles.cjs +3 -3
  70. package/dist/components/Row/RowLabelValue/styles.d.ts +12 -2
  71. package/dist/components/Row/RowLabelValue/styles.js +1 -1
  72. package/dist/components/Row/styles.cjs +6 -6
  73. package/dist/components/Row/styles.d.ts +9 -1
  74. package/dist/components/Row/styles.js +1 -1
  75. package/dist/components/SegmentedControls/styles.cjs +4 -4
  76. package/dist/components/SegmentedControls/styles.d.ts +9 -1
  77. package/dist/components/SegmentedControls/styles.js +1 -1
  78. package/dist/components/Select/styles.cjs +4 -4
  79. package/dist/components/Select/styles.d.ts +21 -4
  80. package/dist/components/Select/styles.js +1 -1
  81. package/dist/components/Switch/styles.cjs +2 -2
  82. package/dist/components/Switch/styles.d.ts +7 -1
  83. package/dist/components/Switch/styles.js +1 -1
  84. package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +1 -1
  85. package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +1 -1
  86. package/dist/components/Table/TableControls/styles.d.ts +8 -1
  87. package/dist/components/Table/styles.cjs +2 -2
  88. package/dist/components/Table/styles.js +1 -1
  89. package/dist/components/Tabs/styles.cjs +2 -2
  90. package/dist/components/Tabs/styles.d.ts +9 -1
  91. package/dist/components/Tabs/styles.js +1 -1
  92. package/dist/components/Tile/styles.cjs +4 -4
  93. package/dist/components/Tile/styles.d.ts +7 -1
  94. package/dist/components/Tile/styles.js +1 -1
  95. package/dist/components/Toast/styles.cjs +5 -5
  96. package/dist/components/Toast/styles.d.ts +9 -3
  97. package/dist/components/Toast/styles.js +1 -1
  98. package/dist/components/Tooltip/styles.cjs +2 -2
  99. package/dist/components/Tooltip/styles.d.ts +14 -1
  100. package/dist/components/Tooltip/styles.js +1 -1
  101. package/dist/components/Typography/styles.cjs +12 -12
  102. package/dist/components/Typography/styles.d.ts +21 -3
  103. package/dist/components/Typography/styles.js +1 -1
  104. package/dist/genesis/styles.d.ts +11 -2
  105. package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +1 -1
  106. package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +1 -1
  107. package/dist/styles/global-styles.d.ts +1 -1
  108. package/dist/utils/styled.cjs +1 -1
  109. package/dist/utils/styled.d.ts +5 -6
  110. package/dist/utils/styled.js +6 -20
  111. package/dist/utils/user-util.cjs +1 -0
  112. package/dist/utils/user-util.d.ts +2 -0
  113. package/dist/utils/user-util.js +10 -0
  114. package/package.json +1 -6
  115. package/dist/components/Button/Button.native.d.ts +0 -12
  116. package/dist/components/Button/__stories__/Button.native.stories.d.ts +0 -8
  117. package/dist/components/Button/styles.native.d.ts +0 -2
@@ -1,5 +1,15 @@
1
+ interface StyledRowLabelValueProps {
2
+ $isFullWidth?: boolean;
3
+ }
1
4
  export declare const getGenesisRowLabelValueClass: ({ components }: {
2
5
  components: any;
3
6
  }, $isFullWidth?: boolean) => string;
4
- export declare const RowLabelValue: any;
5
- export declare const Skeleton: any;
7
+ export declare const RowLabelValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledRowLabelValueProps>> & string;
8
+ export declare const Skeleton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').SkeletonProps, never>> & string & Omit<import('react').FC<import('antd').SkeletonProps> & {
9
+ Button: import('react').FC<import('antd/es/skeleton/Button').SkeletonButtonProps>;
10
+ Avatar: import('react').FC<import('antd/es/skeleton/Avatar').AvatarProps>;
11
+ Input: import('react').FC<import('antd/es/skeleton/Input').SkeletonInputProps>;
12
+ Image: import('react').FC<import('antd/es/skeleton/Image').SkeletonImageProps>;
13
+ Node: import('react').FC<import('antd/es/skeleton/Node').SkeletonNodeProps>;
14
+ }, keyof import('react').Component<any, {}, any>>;
15
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as n } from "../../../utils/styled.js";
1
+ import n from "styled-components";
2
2
  import r from "../../../node_modules/antd/es/skeleton/Skeleton.js";
3
3
  const a = (e) => `${e.row["ver-padding"]}px ${e.row["hor-padding"]}px`, o = ({ components: e }, t = !1) => `
4
4
  display: flex;
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../utils/styled.cjs"),d=e=>`1px solid ${e.surface["border-light"]}`,n=({colors:e,borderRadius:o,sizing:s},t=!1,l=!1,r=null)=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),d=e=>`1px solid ${e.surface["border-light"]}`,s=({colors:e,borderRadius:o,sizing:n},t=!1,r=!1,l=null)=>`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
5
  border-bottom: ${t?d(e):"none"};
6
- padding-bottom:${r?"24px":"0"};
7
- align-items: ${l?"flex-start !important":"center"};
8
- `,u=i.styled.div`
9
- ${({theme:e,$hasBorder:o,$isFullWidth:s,actions:t})=>n(e,o,s,t)}
10
- `;exports.Column=u;exports.getGenesisColumnClass=n;
6
+ padding-bottom:${l?"24px":"0"};
7
+ align-items: ${r?"flex-start !important":"center"};
8
+ `,u=i.div`
9
+ ${({theme:e,$hasBorder:o,$isFullWidth:n,actions:t})=>s(e,o,n,t)}
10
+ `;exports.Column=u;exports.getGenesisColumnClass=s;
@@ -1,6 +1,14 @@
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledColumnProps {
3
+ theme?: GenesisTheme;
4
+ $hasBorder?: boolean;
5
+ $isFullWidth?: boolean;
6
+ actions?: unknown;
7
+ }
1
8
  export declare const getGenesisColumnClass: ({ colors, borderRadius, sizing }: {
2
9
  colors: any;
3
10
  borderRadius: any;
4
11
  sizing: any;
5
12
  }, $hasBorder?: boolean, $isFullWidth?: boolean, actions?: any) => string;
6
- export declare const Column: any;
13
+ export declare const Column: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColumnProps>> & string;
14
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as i } from "../../utils/styled.js";
1
+ import i from "styled-components";
2
2
  const l = (e) => `1px solid ${e.surface["border-light"]}`, d = ({ colors: e, borderRadius: o, sizing: r }, t = !1, n = !1, s = null) => `
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../utils/styled.cjs"),a=require("../../node_modules/antd/es/segmented/index.cjs"),n=({colors:e,borderRadius:r,sizing:s},t="primary",o="active")=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),a=require("../../node_modules/antd/es/segmented/index.cjs"),s=({colors:e,borderRadius:r,sizing:n},t="primary",o="active")=>`
2
2
  &.ant-segmented {
3
3
  border-radius: ${r.BorderRadiusMd};
4
4
  color: ${e.onsurface.copy};
@@ -17,6 +17,6 @@
17
17
  }
18
18
  }
19
19
  }
20
- `,d=i.styled(a)`
21
- ${({theme:e,type:r="primary",state:s="active"})=>n(e,r,s)}
22
- `;exports.SegmentedControls=d;exports.getGenesisClass=n;
20
+ `,d=i(a)`
21
+ ${({theme:e,type:r="primary",state:n="active"})=>s(e,r,n)}
22
+ `;exports.SegmentedControls=d;exports.getGenesisClass=s;
@@ -1,3 +1,11 @@
1
1
  import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledSegmentedControlsProps {
3
+ theme?: GenesisTheme;
4
+ type?: "primary" | "secondary";
5
+ state?: "active" | "disabled";
6
+ }
2
7
  export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
3
- export declare const SegmentedControls: any;
8
+ export declare const SegmentedControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SegmentedProps<unknown> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
9
+ ref?: import('react').Ref<HTMLDivElement>;
10
+ }, StyledSegmentedControlsProps>> & string & Omit<(<ValueType>(props: import('antd').SegmentedProps<ValueType> & React.RefAttributes<HTMLDivElement>) => ReturnType<import('react').ForwardRefExoticComponent<Omit<import('antd').SegmentedProps<import('rc-segmented').SegmentedValue>, "ref"> & import('react').RefAttributes<HTMLDivElement>>>) & Pick<import('react').FC<{}>, "displayName">, keyof import('react').Component<any, {}, any>>;
11
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as a } from "../../utils/styled.js";
1
+ import a from "styled-components";
2
2
  import i from "../../node_modules/antd/es/segmented/index.js";
3
3
  const s = ({ colors: e, borderRadius: r, sizing: o }, t = "primary", n = "active") => `
4
4
  &.ant-segmented {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../utils/styled.cjs"),d=require("../../node_modules/antd/es/select/index.cjs"),c=a.styled.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),d=require("../../node_modules/antd/es/select/index.cjs"),c=a.div`
2
2
  position: relative;
3
3
  border: 2px solid transparent;
4
4
  background-color: transparent;
@@ -82,7 +82,7 @@
82
82
  }
83
83
  }
84
84
  }
85
- `,m=a.styled.div`
85
+ `,m=a.div`
86
86
  .ant-select-item-option {
87
87
  transition: ${({theme:e,type:o})=>l(e)};
88
88
  border-radius: 0px;
@@ -105,7 +105,7 @@
105
105
  }
106
106
  }
107
107
  }
108
- `,b=a.styled.div`
108
+ `,b=a.div`
109
109
  .ant-select-dropdown {
110
110
  animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
111
111
  transition: all ${({theme:e})=>`${e.motion.veryfast}s`}
@@ -124,6 +124,6 @@
124
124
  &.ant-slide-up-leave {
125
125
  animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
126
126
  }
127
- `,$=a.styled(d)`
127
+ `,$=a(d)`
128
128
  ${({theme:e,type:o="primary",state:t="active",$variant:r="none"})=>u(e,o,t,r)}
129
129
  `;exports.Select=$;exports.SelectDropdown=b;exports.SelectWrapper=c;exports.StyledMenuItem=m;
@@ -1,13 +1,30 @@
1
1
  import { Select as AntSelect, SelectProps } from 'antd';
2
2
  import { BaseSelectRef } from 'rc-select';
3
3
  import { StyledComponent } from '../../utils/styled';
4
- import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
4
+ import { GenesisTheme, Breakpoint } from '../../styles/theme/genesis-theme.types';
5
+ import { TYPE } from '../../constants';
5
6
  interface StyledSelectProps extends SelectProps {
6
7
  theme?: GenesisTheme;
7
8
  }
8
- export declare const SelectWrapper: any;
9
- export declare const StyledMenuItem: any;
10
- export declare const SelectDropdown: any;
9
+ interface SelectWrapperProps {
10
+ theme?: GenesisTheme;
11
+ $isFocused: boolean;
12
+ type: keyof typeof TYPE;
13
+ variant?: "simple" | "none";
14
+ }
15
+ export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectWrapperProps>> & string;
16
+ interface SelectMenuItemProps {
17
+ theme: GenesisTheme;
18
+ type?: keyof typeof TYPE;
19
+ state?: keyof Breakpoint;
20
+ }
21
+ export declare const StyledMenuItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectMenuItemProps>> & string;
22
+ interface SelectDropdownProps {
23
+ theme: GenesisTheme;
24
+ type?: keyof typeof TYPE;
25
+ state?: keyof Breakpoint;
26
+ }
27
+ export declare const SelectDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectDropdownProps>> & string;
11
28
  type StyledSelectComponent = StyledComponent<typeof AntSelect, any, StyledSelectProps & {
12
29
  ref?: React.Ref<BaseSelectRef>;
13
30
  }, never>;
@@ -1,4 +1,4 @@
1
- import { styled as a } from "../../utils/styled.js";
1
+ import a from "styled-components";
2
2
  import d from "../../node_modules/antd/es/select/index.js";
3
3
  const b = a.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/styled.cjs"),u=require("../../node_modules/antd/es/switch/index.cjs"),n=({colors:e,borderRadius:c})=>`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("styled-components"),t=require("../../node_modules/antd/es/switch/index.cjs"),n=({colors:e,borderRadius:c})=>`
2
2
  &.ant-switch {
3
3
  background-color: ${e.primary.active};
4
4
  border-radius: ${c==null?void 0:c.BorderRadiusMd};
@@ -53,6 +53,6 @@
53
53
  }
54
54
  }
55
55
  }
56
- `,s=t.styled(u)`
56
+ `,s=u(t)`
57
57
  ${({theme:e})=>n(e)}
58
58
  `;exports.Switch=s;exports.default=s;
@@ -1,2 +1,8 @@
1
- export declare const Switch: any;
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledSwitchProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ theme?: GenesisTheme;
4
+ }
5
+ export declare const Switch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
6
+ ref?: import('react').Ref<HTMLButtonElement>;
7
+ }, StyledSwitchProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
2
8
  export default Switch;
@@ -1,4 +1,4 @@
1
- import { styled as s } from "../../utils/styled.js";
1
+ import s from "styled-components";
2
2
  import t from "../../node_modules/antd/es/switch/index.js";
3
3
  const u = ({ colors: e, borderRadius: c }) => `
4
4
  &.ant-switch {
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/index5.cjs"),I=require("../../Input/Input.cjs"),d=require("../../Button/UtilityButton.cjs"),f=require("../../Typography/Typography.cjs"),k=require("../../Select/Select.cjs"),S=require("../../Button/IconButton.cjs"),b=({sortOptions:s,searchByPlaceholder:p="",searchField:x="address",isSortedAscending:n=!0,onChange:t})=>{const a=i=>{const v={event:"inputChange",payload:{value:i.target.value,field:x}};q(()=>{t==null||t(v)},200)()},r=i=>{const u={event:"primaryChange",payload:{value:i}};t==null||t(u)},l=()=>{const i={event:"filterClick",payload:{}};t==null||t(i)},o=()=>{const i={event:"settingsClick",payload:{}};t==null||t(i)},y=()=>{const i={event:"orderClick",payload:{value:n?"desc":"asc"}};t==null||t(i)};return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",minWidth:800},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(I,{size:"normal",placeholder:p,prefix:e.jsx(c.HiSearch,{}),style:{padding:"5px 8px"},onChange:a}),l&&e.jsx(d,{isIconButton:!0,icon:e.jsx(j.HiMiniAdjustmentsVertical,{}),onClick:l}),o&&e.jsx(d,{isIconButton:!0,icon:e.jsx(m.FiSettings,{}),onClick:o})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(f,{variant:"body3",color:"#6C6C6C",children:"Sort by"}),s&&r?e.jsx(k,{options:s,defaultValue:s[0].value,variant:"simple",onChange:r}):null,e.jsx(S,{icon:n?e.jsx(c.HiOutlineSortDescending,{}):e.jsx(c.HiOutlineSortAscending,{}),onClick:y})]})]})};module.exports=b;
1
+ "use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/index6.cjs"),I=require("../../Input/Input.cjs"),d=require("../../Button/UtilityButton.cjs"),f=require("../../Typography/Typography.cjs"),k=require("../../Select/Select.cjs"),S=require("../../Button/IconButton.cjs"),b=({sortOptions:s,searchByPlaceholder:p="",searchField:x="address",isSortedAscending:n=!0,onChange:t})=>{const a=i=>{const v={event:"inputChange",payload:{value:i.target.value,field:x}};q(()=>{t==null||t(v)},200)()},r=i=>{const u={event:"primaryChange",payload:{value:i}};t==null||t(u)},l=()=>{const i={event:"filterClick",payload:{}};t==null||t(i)},o=()=>{const i={event:"settingsClick",payload:{}};t==null||t(i)},y=()=>{const i={event:"orderClick",payload:{value:n?"desc":"asc"}};t==null||t(i)};return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",minWidth:800},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(I,{size:"normal",placeholder:p,prefix:e.jsx(c.HiSearch,{}),style:{padding:"5px 8px"},onChange:a}),l&&e.jsx(d,{isIconButton:!0,icon:e.jsx(j.HiMiniAdjustmentsVertical,{}),onClick:l}),o&&e.jsx(d,{isIconButton:!0,icon:e.jsx(m.FiSettings,{}),onClick:o})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(f,{variant:"body3",color:"#6C6C6C",children:"Sort by"}),s&&r?e.jsx(k,{options:s,defaultValue:s[0].value,variant:"simple",onChange:r}):null,e.jsx(S,{icon:n?e.jsx(c.HiOutlineSortDescending,{}):e.jsx(c.HiOutlineSortAscending,{}),onClick:y})]})]})};module.exports=b;
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
2
  import { HiMiniAdjustmentsVertical as v } from "../../../node_modules/react-icons/hi2/index.js";
3
3
  import { HiSearch as I, HiOutlineSortDescending as k, HiOutlineSortAscending as x } from "../../../node_modules/react-icons/hi/index.js";
4
4
  import { FiSettings as b } from "../../../node_modules/react-icons/fi/index.js";
5
- import S from "../../../_virtual/index5.js";
5
+ import S from "../../../_virtual/index6.js";
6
6
  import A from "../../Input/Input.js";
7
7
  import d from "../../Button/UtilityButton.js";
8
8
  import E from "../../Typography/Typography.js";
@@ -1,6 +1,13 @@
1
+ import { GenesisTheme } from '../../../styles/theme/genesis-theme.types';
2
+ interface StyledTableControlsProps {
3
+ theme?: GenesisTheme;
4
+ type?: "primary" | "secondary";
5
+ state?: "active" | "disabled";
6
+ }
1
7
  export declare const getGenesisClass: ({ colors, borderRadius, sizing }: {
2
8
  colors: any;
3
9
  borderRadius: any;
4
10
  sizing: any;
5
11
  }, type?: string, state?: string) => string;
6
- export declare const StyledTableControls: any;
12
+ export declare const StyledTableControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTableControlsProps>> & string;
13
+ export {};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../utils/styled.cjs"),r=require("../../node_modules/antd/es/table/Table.cjs"),t=({colors:e,borderRadius:l,sizing:a})=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("styled-components"),r=require("../../node_modules/antd/es/table/Table.cjs"),t=({colors:e,borderRadius:a,sizing:l})=>`
2
2
  &.ant-table-wrapper {
3
3
  // Add your custom styles here
4
4
  }
@@ -20,6 +20,6 @@
20
20
  font-family: 'Inter', sans-serif;
21
21
  font-size: 14px;
22
22
  }
23
- `,o=s.styled(r)`
23
+ `,o=s(r)`
24
24
  ${({theme:e})=>t(e)}
25
25
  `;exports.Table=o;exports.getGenesisClass=t;
@@ -1,4 +1,4 @@
1
- import { styled as e } from "../../utils/styled.js";
1
+ import e from "styled-components";
2
2
  import r from "../../node_modules/antd/es/table/Table.js";
3
3
  const s = ({ colors: t, borderRadius: o, sizing: a }) => `
4
4
  &.ant-table-wrapper {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../utils/styled.cjs"),i=require("../../node_modules/antd/es/tabs/index.cjs"),r=({colors:t,borderRadius:e,sizing:a},s="primary",b="active")=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),i=require("../../node_modules/antd/es/tabs/index.cjs"),r=({colors:t,borderRadius:e,sizing:a},s="primary",b="active")=>`
2
2
  &.ant-tabs {
3
3
  background: #F4F4F4;
4
4
 
@@ -91,6 +91,6 @@
91
91
  }
92
92
  }
93
93
  }
94
- `,o=n.styled(i)`
94
+ `,o=n(i)`
95
95
  ${({theme:t,type:e,state:a})=>r(t,e,a)}
96
96
  `;exports.Tabs=o;exports.getGenesisClass=r;
@@ -1,3 +1,11 @@
1
1
  import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledTabsProps {
3
+ theme?: GenesisTheme;
4
+ state: "active" | "hovered" | "focussed" | "disabled";
5
+ type: "card";
6
+ }
2
7
  export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
3
- export declare const Tabs: any;
8
+ export declare const Tabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('antd').TabsProps, StyledTabsProps>> & string & Omit<import('react').FC<import('antd').TabsProps> & {
9
+ TabPane: import('react').FC<import('antd').TabPaneProps>;
10
+ }, keyof import('react').Component<any, {}, any>>;
11
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as r } from "../../utils/styled.js";
1
+ import r from "styled-components";
2
2
  import n from "../../node_modules/antd/es/tabs/index.js";
3
3
  const i = ({ colors: t, borderRadius: e, sizing: a }, o = "primary", b = "active") => `
4
4
  &.ant-tabs {
@@ -1,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../utils/styled.cjs"),t=({sizing:e},s=!1)=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),i=({sizing:e},s=!1)=>`
2
2
  display: flex;
3
3
  flex-direction: ${s?"row":"column"};
4
4
  padding: ${e.Size4};
5
- `,l=i.styled.div`
6
- ${({theme:e,$isHorizontal:s})=>t(e,s)}
7
- `;exports.Tile=l;exports.getGenesisClass=t;
5
+ `,l=t.div`
6
+ ${({theme:e,$isHorizontal:s})=>i(e,s)}
7
+ `;exports.Tile=l;exports.getGenesisClass=i;
@@ -1,4 +1,10 @@
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledTileProps {
3
+ theme?: GenesisTheme;
4
+ $isHorizontal?: boolean;
5
+ }
1
6
  export declare const getGenesisClass: ({ sizing }: {
2
7
  sizing: any;
3
8
  }, $isHorizontal?: boolean) => string;
4
- export declare const Tile: any;
9
+ export declare const Tile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTileProps>> & string;
10
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as s } from "../../utils/styled.js";
1
+ import s from "styled-components";
2
2
  const l = ({ sizing: e }, i = !1) => `
3
3
  display: flex;
4
4
  flex-direction: ${i ? "row" : "column"};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../utils/styled.cjs"),i=require("../../constants/index.cjs"),n=s.styled.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),n=require("../../constants/index.cjs"),a=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: ${({theme:e})=>e.sizing.Size4}px;
@@ -12,13 +12,13 @@
12
12
  width: ${({theme:e,state:t,size:o})=>o==="standard"?"340px":"240px"};
13
13
  background-color: ${({theme:e,state:t})=>e.colors.surface.default};
14
14
  box-shadow: 0px 4px 16px 0px #00000026;
15
- `,a=s.styled.button`
15
+ `,s=i.button`
16
16
  text-decoration: underline;
17
17
  border: none;
18
18
  background: none;
19
19
  cursor: pointer;
20
20
  pointer-events: all;
21
- `,r=s.styled.div`
21
+ `,r=i.div`
22
22
  display: flex;
23
23
  align-items: center;
24
24
  gap: ${({theme:e})=>e.sizing.Size2}px;
@@ -33,6 +33,6 @@
33
33
  text-overflow: ellipsis;
34
34
  font-size: 16px;
35
35
  font-family: ${({theme:e})=>e.typography.fontFamily};
36
- line-height: ${({theme:e,size:t})=>t===i.SIZE.standard?e.typography.lineHeight:"16px"};
36
+ line-height: ${({theme:e,size:t})=>t===n.SIZE.standard?e.typography.lineHeight:"16px"};
37
37
  }
38
- `;exports.ToastCloseButton=a;exports.ToastContent=r;exports.ToastRow=n;
38
+ `;exports.ToastCloseButton=s;exports.ToastContent=r;exports.ToastRow=a;
@@ -1,3 +1,9 @@
1
- export declare const ToastRow: any;
2
- export declare const ToastCloseButton: any;
3
- export declare const ToastContent: any;
1
+ export declare const ToastRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ state: string;
3
+ size: string;
4
+ }>> & string;
5
+ export declare const ToastCloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
6
+ export declare const ToastContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
+ state: string;
8
+ size: string;
9
+ }>> & string;
@@ -1,4 +1,4 @@
1
- import { styled as i } from "../../utils/styled.js";
1
+ import i from "styled-components";
2
2
  import { SIZE as r } from "../../constants/index.js";
3
3
  const s = i.div`
4
4
  display: flex;
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../utils/styled.cjs"),r=require("../../node_modules/antd/es/tooltip/index.cjs"),i=({colors:e,borderRadius:t,sizing:s},l="primary",a="active")=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),r=require("../../node_modules/antd/es/tooltip/index.cjs"),i=({colors:e,borderRadius:t,sizing:s},l="primary",a="active")=>`
2
2
 
3
- `,n=o.styled(r)`
3
+ `,n=o(r)`
4
4
  ${({theme:e,type:t,state:s})=>i(e,t,s)}
5
5
  `;exports.Tooltip=n;exports.getGenesisClass=i;
@@ -1,6 +1,19 @@
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ interface StyledTooltipProps {
3
+ theme?: GenesisTheme;
4
+ type?: "primary" | "secondary";
5
+ state?: "active" | "disabled";
6
+ }
1
7
  export declare const getGenesisClass: ({ colors, borderRadius, sizing }: {
2
8
  colors: any;
3
9
  borderRadius: any;
4
10
  sizing: any;
5
11
  }, type?: string, state?: string) => string;
6
- export declare const Tooltip: any;
12
+ export declare const Tooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(Omit<import('antd/es/tooltip').TooltipPropsWithTitle & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
13
+ ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
14
+ }) | (Omit<import('antd/es/tooltip').TooltipPropsWithOverlay & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
15
+ ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
16
+ }), StyledTooltipProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').TooltipProps & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>> & {
17
+ _InternalPanelDoNotUseOrYouWillBeFired: import('react').FC<import('antd/es/tooltip/PurePanel').PurePanelProps>;
18
+ }, keyof import('react').Component<any, {}, any>>;
19
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as s } from "../../utils/styled.js";
1
+ import s from "styled-components";
2
2
  import e from "../../node_modules/antd/es/tooltip/index.js";
3
3
  const i = ({ colors: o, borderRadius: t, sizing: r }, p = "primary", a = "active") => `
4
4
 
@@ -1,17 +1,17 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../utils/styled.cjs"),a=require("../../node_modules/antd/es/typography/index.cjs"),u=(t,e,n)=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),l=require("../../node_modules/antd/es/typography/index.cjs"),g=(t,e,n)=>`
2
2
  font-size: ${t[n][e].fontSize}px !important;
3
3
  line-height: ${t[n][e].lineHeight};
4
4
  letter-spacing: ${t[n][e].letterSpacing}px;
5
5
  font-weight: ${t[n][e].fontWeight};
6
- `,g=(t,e,n)=>t||e[n].active.color,$=t=>`
6
+ `,d=(t,e,n)=>t||e[n].active.color,$=t=>`
7
7
  ${t.includes("digits")?"'Roboto Mono', sans-serif":"'Inter', sans-serif"} !important;
8
- `,c=({colors:t,typography:e},n,r,i,o,s,d)=>`
8
+ `,c=({colors:t,typography:e},n,r,s,o,i,u)=>`
9
9
  &.ant-typography {
10
10
  font-family: ${$(r)};
11
- color: ${g(s,t,n)} !important;
12
- ${u(e,r,o)}
11
+ color: ${d(i,t,n)} !important;
12
+ ${g(e,r,o)}
13
13
  margin-bottom: 0 !important;
14
- width: ${d?"100%":"auto"};
14
+ width: ${u?"100%":"auto"};
15
15
  line-height: 1;
16
16
 
17
17
  &:disabled {
@@ -20,10 +20,10 @@
20
20
  cursor: not-allowed;
21
21
  }
22
22
  }
23
- `,f=l.styled(a.Title)`
24
- ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:i,color:o,$isFullWidth:s})=>c(t,e,n,r,i,o,s)}
25
- `,h=l.styled(a.Paragraph)`
26
- ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:i,color:o,$isFullWidth:s})=>c(t,e,n,r,i,o,s)}
27
- `,m=l.styled(a.Text)`
28
- ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:i,color:o,$isFullWidth:s})=>c(t,e,n,r,i,o,s)}
23
+ `,f=a(l.Title)`
24
+ ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
25
+ `,h=a(l.Paragraph)`
26
+ ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
27
+ `,m=a(l.Text)`
28
+ ${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
29
29
  `;exports.Headline=f;exports.Paragraph=h;exports.Text=m;
@@ -1,3 +1,21 @@
1
- export declare const Headline: any;
2
- export declare const Paragraph: any;
3
- export declare const Text: any;
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ import { TYPE, STATE } from '../../constants';
3
+ interface TypographyStyledProps {
4
+ theme: GenesisTheme;
5
+ $themeType?: keyof typeof TYPE;
6
+ variant?: string;
7
+ state?: keyof typeof STATE;
8
+ breakpoint?: string;
9
+ color?: string;
10
+ $isFullWidth?: boolean;
11
+ }
12
+ export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
13
+ ref?: import('react').Ref<HTMLElement>;
14
+ }, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
15
+ export declare const Paragraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
16
+ ref?: import('react').Ref<HTMLElement>;
17
+ }, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
18
+ export declare const Text: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
19
+ ref?: import('react').Ref<HTMLSpanElement>;
20
+ }, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
21
+ export {};
@@ -1,4 +1,4 @@
1
- import { styled as a } from "../../utils/styled.js";
1
+ import a from "styled-components";
2
2
  import l from "../../node_modules/antd/es/typography/index.js";
3
3
  const m = (t, e, n) => `
4
4
  font-size: ${t[n][e].fontSize}px !important;
@@ -1,2 +1,11 @@
1
- export declare const Card: any;
2
- export declare const Headline: any;
1
+ import { DefaultTheme } from 'styled-components';
2
+ interface StyledProps {
3
+ theme: DefaultTheme;
4
+ }
5
+ export declare const Card: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CardProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
6
+ ref?: import('react').Ref<HTMLDivElement>;
7
+ }, StyledProps>> & string & Omit<import('antd/es/card').CardInterface, keyof import('react').Component<any, {}, any>>;
8
+ export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
9
+ ref?: import('react').Ref<HTMLElement>;
10
+ }, StyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
11
+ export {};
@@ -1 +1 @@
1
- "use strict";const v=require("react"),m=require("../../../../../_virtual/index6.cjs"),x=require("../../../../rc-util/es/hooks/useEvent.cjs"),C=require("../../_util/toList.cjs");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const d=_(v);var h=function(o,t,e,c){function s(u){return u instanceof e?u:new e(function(r){r(u)})}return new(e||(e=Promise))(function(u,r){function f(i){try{a(c.next(i))}catch(n){r(n)}}function l(i){try{a(c.throw(i))}catch(n){r(n)}}function a(i){i.done?u(i.value):s(i.value).then(f,l)}a((c=c.apply(o,t||[])).next())})};const w=o=>{let{copyConfig:t,children:e}=o;const[c,s]=d.useState(!1),[u,r]=d.useState(!1),f=d.useRef(null),l=()=>{f.current&&clearTimeout(f.current)},a={};t.format&&(a.format=t.format),d.useEffect(()=>l,[]);const i=x(n=>h(void 0,void 0,void 0,function*(){var p;n==null||n.preventDefault(),n==null||n.stopPropagation(),r(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;m(y||C(e,!0).join("")||"",a),r(!1),s(!0),l(),f.current=setTimeout(()=>{s(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,n)}catch(y){throw r(!1),y}}));return{copied:c,copyLoading:u,onClick:i}};module.exports=w;
1
+ "use strict";const v=require("react"),m=require("../../../../../_virtual/index5.cjs"),x=require("../../../../rc-util/es/hooks/useEvent.cjs"),C=require("../../_util/toList.cjs");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const d=_(v);var h=function(o,t,e,c){function s(u){return u instanceof e?u:new e(function(r){r(u)})}return new(e||(e=Promise))(function(u,r){function f(i){try{a(c.next(i))}catch(n){r(n)}}function l(i){try{a(c.throw(i))}catch(n){r(n)}}function a(i){i.done?u(i.value):s(i.value).then(f,l)}a((c=c.apply(o,t||[])).next())})};const w=o=>{let{copyConfig:t,children:e}=o;const[c,s]=d.useState(!1),[u,r]=d.useState(!1),f=d.useRef(null),l=()=>{f.current&&clearTimeout(f.current)},a={};t.format&&(a.format=t.format),d.useEffect(()=>l,[]);const i=x(n=>h(void 0,void 0,void 0,function*(){var p;n==null||n.preventDefault(),n==null||n.stopPropagation(),r(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;m(y||C(e,!0).join("")||"",a),r(!1),s(!0),l(),f.current=setTimeout(()=>{s(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,n)}catch(y){throw r(!1),y}}));return{copied:c,copyLoading:u,onClick:i}};module.exports=w;
@@ -1,5 +1,5 @@
1
1
  import * as d from "react";
2
- import m from "../../../../../_virtual/index6.js";
2
+ import m from "../../../../../_virtual/index5.js";
3
3
  import v from "../../../../rc-util/es/hooks/useEvent.js";
4
4
  import C from "../../_util/toList.js";
5
5
  var h = function(l, o, c, f) {
@@ -1 +1 @@
1
- export declare const GlobalStyles: any;
1
+ export declare const GlobalStyles: import('react').NamedExoticComponent<import('styled-components').ExecutionProps & object>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("styled-components");function i(t){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(l,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return l.default=t,Object.freeze(l)}const n=i(s),a=typeof navigator<"u"&&navigator.product==="ReactNative";let e;if(a)try{e=require("styled-components/native")}catch{console.warn("Failed to load styled-components/native, falling back to web"),e=n}else e=n;const c=e.default,u=e.ThemeProvider,d=e.useTheme;e.css;const f=a?()=>null:n.createGlobalStyle;exports.ThemeProvider=u;exports.createGlobalStyle=f;exports.default=c;exports.styled=c;exports.useTheme=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("styled-components"),t=e.createGlobalStyle,l=e.ThemeProvider,r=e.useTheme;exports.default=e;exports.ThemeProvider=l;exports.createGlobalStyle=t;exports.useTheme=r;
@@ -1,7 +1,6 @@
1
- import * as styledComponents from "styled-components";
2
- export declare const styled: any;
3
- export declare const ThemeProvider: any;
4
- export declare const useTheme: any;
5
- export declare const css: any;
6
- export declare const createGlobalStyle: (() => any) | typeof styledComponents.createGlobalStyle;
1
+ import { default as styled, createGlobalStyle as styledCreateGlobalStyle, ThemeProvider as styledThemeProvider, useTheme as styledUseTheme, css as styledCss } from 'styled-components';
2
+ export declare const createGlobalStyle: typeof styledCreateGlobalStyle;
3
+ export declare const ThemeProvider: typeof styledThemeProvider;
4
+ export declare const useTheme: typeof styledUseTheme;
5
+ export declare const css: typeof styledCss;
7
6
  export default styled;