@blockscout/ui-toolkit 2.8.1-alpha.2 → 2.8.1

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.
@@ -62,7 +62,7 @@ export * as file from '../../utils/file';
62
62
  export * from '../../utils/url';
63
63
  export * from '../../utils/isBrowser';
64
64
  export { useClipboard } from '../../hooks/useClipboard';
65
- export * from '../../hooks/useDisclosure';
65
+ export { useDisclosure } from '../../hooks/useDisclosure';
66
66
  export { useUpdateEffect } from '../../hooks/useUpdateEffect';
67
67
  export { useFirstMountState } from '../../hooks/useFirstMountState';
68
68
  export { useIsSticky } from '../../hooks/useIsSticky';
@@ -1,3 +1,3 @@
1
1
  import { ThemingConfig } from '@chakra-ui/react';
2
- import { ExcludeUndefined } from '../../../shared/types/utils';
2
+ import { ExcludeUndefined } from '../../../types/utils';
3
3
  export declare const radii: ExcludeUndefined<ThemingConfig['tokens']>['radii'];
@@ -1,4 +1,4 @@
1
1
  import { ThemingConfig } from '@chakra-ui/react';
2
- import { ExcludeUndefined } from '../../../shared/types/utils';
2
+ import { ExcludeUndefined } from '../../../types/utils';
3
3
  declare const durations: ExcludeUndefined<ThemingConfig['tokens']>['durations'];
4
4
  export default durations;
@@ -1,4 +1,4 @@
1
1
  import { ThemingConfig } from '@chakra-ui/react';
2
- import { ExcludeUndefined } from '../../../shared/types/utils';
2
+ import { ExcludeUndefined } from '../../../types/utils';
3
3
  declare const shadows: ExcludeUndefined<ThemingConfig['tokens']>['shadows'];
4
4
  export default shadows;
@@ -1,5 +1,5 @@
1
1
  import { ThemingConfig } from '@chakra-ui/react';
2
- import { ExcludeUndefined } from '../../../shared/types/utils';
2
+ import { ExcludeUndefined } from '../../../types/utils';
3
3
  export declare const BODY_TYPEFACE: string;
4
4
  export declare const HEADING_TYPEFACE: string;
5
5
  export declare const fonts: ExcludeUndefined<ThemingConfig['tokens']>['fonts'];
@@ -1786,7 +1786,7 @@ export declare const slotRecipes: {
1786
1786
  };
1787
1787
  };
1788
1788
  }>;
1789
- select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "root" | "item" | "indicator" | "control" | "positioner" | "trigger" | "valueText" | "itemText" | "itemGroupLabel" | "indicatorGroup" | "itemGroup", {
1789
+ select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "root" | "item" | "indicator" | "positioner" | "control" | "trigger" | "valueText" | "itemText" | "itemGroupLabel" | "indicatorGroup" | "itemGroup", {
1790
1790
  variant: {
1791
1791
  outline: {
1792
1792
  trigger: {
@@ -2083,10 +2083,7 @@ export declare const slotRecipes: {
2083
2083
  };
2084
2084
  cell: {
2085
2085
  px: "6px";
2086
- py: {
2087
- base: number;
2088
- lg: number;
2089
- };
2086
+ py: number;
2090
2087
  _first: {
2091
2088
  pl: number;
2092
2089
  };
@@ -1,4 +1,4 @@
1
- export declare const recipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "root" | "item" | "indicator" | "control" | "positioner" | "trigger" | "valueText" | "itemText" | "itemGroupLabel" | "indicatorGroup" | "itemGroup", {
1
+ export declare const recipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "root" | "item" | "indicator" | "positioner" | "control" | "trigger" | "valueText" | "itemText" | "itemGroupLabel" | "indicatorGroup" | "itemGroup", {
2
2
  variant: {
3
3
  outline: {
4
4
  trigger: {
@@ -37,10 +37,7 @@ export declare const recipe: import('@chakra-ui/react').SlotRecipeDefinition<"bo
37
37
  };
38
38
  cell: {
39
39
  px: "6px";
40
- py: {
41
- base: number;
42
- lg: number;
43
- };
40
+ py: number;
44
41
  _first: {
45
42
  pl: number;
46
43
  };
@@ -1,6 +1,5 @@
1
1
  export declare const stripTrailingSlash: (str: string) => string;
2
2
  export declare const stripLeadingSlash: (str: string) => string;
3
- export declare const addLeadingSlash: (str: string) => string;
4
3
  export declare function makePrettyLink(url: string | undefined): {
5
4
  href: string;
6
5
  domain: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/ui-toolkit",
3
- "version": "2.8.1-alpha.2",
3
+ "version": "2.8.1",
4
4
  "description": "A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,9 +11,9 @@
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://github.com/blockscout/frontend.git",
14
- "directory": "src/src/toolkit/package"
14
+ "directory": "toolkit/package"
15
15
  },
16
- "homepage": "https://github.com/blockscout/frontend/tree/main/src/toolkit/package",
16
+ "homepage": "https://github.com/blockscout/frontend/tree/main/toolkit/package",
17
17
  "bugs": {
18
18
  "url": "https://github.com/blockscout/frontend/issues"
19
19
  },
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IconButtonProps } from '../../chakra/icon-button';
3
- interface Props extends Omit<IconButtonProps, 'type'> {
4
- index: number;
5
- type: 'add' | 'remove';
6
- }
7
- declare const _default: React.MemoExoticComponent<({ type, index, onClick, ...props }: Props) => React.JSX.Element>;
8
- export default _default;