@blockscout/ui-toolkit 2.3.5 → 2.4.0-alpha.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.
Files changed (63) hide show
  1. package/README.md +3 -0
  2. package/dist/chakra/link.d.ts +1 -1
  3. package/dist/components/charts/Chart.d.ts +14 -0
  4. package/dist/components/charts/ChartFullscreenDialog.d.ts +17 -0
  5. package/dist/components/charts/ChartWidget.d.ts +18 -0
  6. package/dist/components/charts/ChartWidgetContent.d.ts +17 -0
  7. package/dist/components/charts/index.d.ts +17 -0
  8. package/dist/components/charts/parts/ChartArea.d.ts +15 -0
  9. package/dist/components/charts/parts/ChartAxis.d.ts +11 -0
  10. package/dist/components/charts/parts/ChartGridLine.d.ts +10 -0
  11. package/dist/components/charts/parts/ChartLegend.d.ts +9 -0
  12. package/dist/components/charts/parts/ChartLine.d.ts +11 -0
  13. package/dist/components/charts/parts/ChartMenu.d.ts +19 -0
  14. package/dist/components/charts/parts/ChartOverlay.d.ts +7 -0
  15. package/dist/components/charts/parts/ChartSelectionX.d.ts +11 -0
  16. package/dist/components/charts/parts/ChartTooltip.d.ts +15 -0
  17. package/dist/components/charts/parts/ChartWatermark.d.ts +3 -0
  18. package/dist/components/charts/parts/tooltip/ChartTooltipBackdrop.d.ts +8 -0
  19. package/dist/components/charts/parts/tooltip/ChartTooltipContent.d.ts +14 -0
  20. package/dist/components/charts/parts/tooltip/ChartTooltipLine.d.ts +4 -0
  21. package/dist/components/charts/parts/tooltip/ChartTooltipPoint.d.ts +20 -0
  22. package/dist/components/charts/parts/tooltip/ChartTooltipRow.d.ts +24 -0
  23. package/dist/components/charts/parts/tooltip/ChartTooltipTitle.d.ts +7 -0
  24. package/dist/components/charts/parts/tooltip/pointerTracker.d.ts +13 -0
  25. package/dist/components/charts/parts/tooltip/utils.d.ts +7 -0
  26. package/dist/components/charts/types.d.ts +67 -0
  27. package/dist/components/charts/utils/animations.d.ts +5 -0
  28. package/dist/components/charts/utils/calculateInnerSize.d.ts +5 -0
  29. package/dist/components/charts/utils/formatters.d.ts +2 -0
  30. package/dist/components/charts/utils/getDateLabel.d.ts +2 -0
  31. package/dist/components/charts/utils/timeChartAxis.d.ts +22 -0
  32. package/dist/components/charts/utils/useChartBrushX.d.ts +7 -0
  33. package/dist/components/charts/utils/useChartLegend.d.ts +4 -0
  34. package/dist/components/charts/utils/useChartZoom.d.ts +6 -0
  35. package/dist/components/charts/utils/useTimeChartController.d.ts +30 -0
  36. package/dist/components/forms/fields/FormFieldAddress.d.ts +3 -1
  37. package/dist/components/forms/fields/FormFieldCheckbox.d.ts +3 -1
  38. package/dist/components/forms/fields/FormFieldCheckboxGroup.d.ts +3 -1
  39. package/dist/components/forms/fields/FormFieldColor.d.ts +3 -1
  40. package/dist/components/forms/fields/FormFieldEmail.d.ts +3 -1
  41. package/dist/components/forms/fields/FormFieldNumber.d.ts +3 -1
  42. package/dist/components/forms/fields/FormFieldRadio.d.ts +3 -1
  43. package/dist/components/forms/fields/FormFieldSelect.d.ts +3 -1
  44. package/dist/components/forms/fields/FormFieldSelectAsync.d.ts +3 -1
  45. package/dist/components/forms/fields/FormFieldSwitch.d.ts +3 -1
  46. package/dist/components/forms/fields/FormFieldText.d.ts +3 -1
  47. package/dist/components/forms/fields/FormFieldUrl.d.ts +3 -1
  48. package/dist/components/forms/inputs/file/FileInput.d.ts +2 -1
  49. package/dist/components/forms/validators/address.d.ts +0 -1
  50. package/dist/components/loaders/ContentLoader.d.ts +7 -0
  51. package/dist/hooks/useClientRect.d.ts +2 -0
  52. package/dist/index.js +5497 -3739
  53. package/dist/package/src/index.d.ts +4 -0
  54. package/dist/theme/foundations/colors.d.ts +3 -0
  55. package/dist/theme/recipes/alert.recipe.d.ts +15 -0
  56. package/dist/theme/recipes/drawer.recipe.d.ts +15 -0
  57. package/dist/theme/recipes/index.d.ts +37 -0
  58. package/dist/theme/recipes/input.recipe.d.ts +3 -0
  59. package/dist/theme/recipes/link.recipe.d.ts +1 -0
  60. package/dist/theme/recipes/pin-input.recipe.d.ts +3 -0
  61. package/dist/utils/file.d.ts +2 -0
  62. package/dist/utils/regexp.d.ts +1 -0
  63. package/package.json +2 -2
@@ -1,4 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldPropsBase } from './types';
4
- export declare const FormFieldUrl: <FormFields extends FieldValues>(props: FormFieldPropsBase<FormFields>) => React.JSX.Element;
4
+ declare const FormFieldUrlContent: <FormFields extends FieldValues>(props: FormFieldPropsBase<FormFields>) => React.JSX.Element;
5
+ export declare const FormFieldUrl: typeof FormFieldUrlContent;
6
+ export {};
@@ -9,5 +9,6 @@ interface Props<V extends FieldValues, N extends Path<V>> {
9
9
  accept?: string;
10
10
  multiple?: boolean;
11
11
  }
12
- export declare const FileInput: <Values extends FieldValues, Names extends Path<Values>>({ children, accept, multiple, field }: Props<Values, Names>) => React.JSX.Element;
12
+ declare const FileInputContent: <Values extends FieldValues, Names extends Path<Values>>({ children, accept, multiple, field }: Props<Values, Names>) => React.JSX.Element;
13
+ export declare const FileInput: typeof FileInputContent;
13
14
  export {};
@@ -1,3 +1,2 @@
1
- export declare const ADDRESS_REGEXP: RegExp;
2
1
  export declare const ADDRESS_LENGTH = 42;
3
2
  export declare function addressValidator(value: string | undefined): true | "Incorrect address format";
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from '@chakra-ui/react';
2
+ import { default as React } from 'react';
3
+ interface Props extends BoxProps {
4
+ text?: string;
5
+ }
6
+ export declare const ContentLoader: React.MemoExoticComponent<({ text, ...props }: Props) => React.JSX.Element>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { LegacyRef } from 'react';
2
+ export declare function useClientRect<E extends Element>(): [DOMRect | null, LegacyRef<E> | undefined];