accessibility-react-widget 1.0.9 → 2.0.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 (46) hide show
  1. package/dist/components/AccColors/AccColors.d.ts +3 -2
  2. package/dist/components/AccContent/AccContent.d.ts +3 -2
  3. package/dist/components/AccMenuContent/AccMenuContent.d.ts +4 -3
  4. package/dist/components/AccMenuContentBlock/AccMenuContentBlock.d.ts +4 -3
  5. package/dist/components/AccTools/AccTools.d.ts +3 -2
  6. package/dist/components/Accessibilik/index.d.ts +2 -1
  7. package/dist/components/AccessibilityMenu/AccessibilityMenu.d.ts +3 -2
  8. package/dist/components/Footer/Footer.d.ts +2 -1
  9. package/dist/components/Header/Header.d.ts +2 -1
  10. package/dist/components/Portal/Portal.d.ts +2 -1
  11. package/dist/components/RcSlider/RcSlider.d.ts +2 -1
  12. package/dist/components/buttons/AccButton/AccButton.d.ts +3 -2
  13. package/dist/components/buttons/AccValueControl/AccValueControl.d.ts +2 -1
  14. package/dist/components/buttons/AccValueControlButton/AccValueControlButton.d.ts +2 -1
  15. package/dist/components/buttons/AccessibilityButton/AccessibilityButton.d.ts +2 -1
  16. package/dist/components/buttons/colors/BlueLightFilterButton/BlueLightFilterButton.d.ts +3 -2
  17. package/dist/components/buttons/colors/BrightnessControl/BrightnessControl.d.ts +3 -2
  18. package/dist/components/buttons/colors/DarkContrastButton/DarkContrastButton.d.ts +3 -2
  19. package/dist/components/buttons/colors/HighContrastButton/HighContrastButton.d.ts +3 -2
  20. package/dist/components/buttons/colors/HighSaturationButton/HighSaturationButton.d.ts +3 -2
  21. package/dist/components/buttons/colors/LightContrastButton/LightContrastButton.d.ts +3 -2
  22. package/dist/components/buttons/colors/LowSaturationButton/LowSaturationButton.d.ts +3 -2
  23. package/dist/components/buttons/colors/MonochromeButton/MonochromeButton.d.ts +3 -2
  24. package/dist/components/buttons/colors/TextColorPickerButton/TextColorPickerButton.d.ts +3 -2
  25. package/dist/components/buttons/colors/VisualImpairmentButton/VisualImpairmentButton.d.ts +3 -2
  26. package/dist/components/buttons/content/AdjustFontSize/AdjustFontSize.d.ts +3 -2
  27. package/dist/components/buttons/content/AlignTextButton/AlignTextButton.d.ts +3 -2
  28. package/dist/components/buttons/content/AlignTextButton/useAlignTextButton.d.ts +2 -1
  29. package/dist/components/buttons/content/DyslexiaFontButton/DyslexiaFontButton.d.ts +3 -2
  30. package/dist/components/buttons/content/FontWeightButton/FontWeightButton.d.ts +3 -2
  31. package/dist/components/buttons/content/HighlightLinksButton/HighlightLinksButton.d.ts +3 -2
  32. package/dist/components/buttons/content/HighlightTitlesButton/HighlightTitlesButton.d.ts +3 -2
  33. package/dist/components/buttons/content/LetterSpacingButton/LetterSpacingButton.d.ts +3 -2
  34. package/dist/components/buttons/content/LineHeightButton/LineHeightButton.d.ts +3 -2
  35. package/dist/components/buttons/content/WordSpacingButton/WordSpacingButton.d.ts +3 -2
  36. package/dist/components/buttons/content/ZoomButton/ZoomButton.d.ts +3 -2
  37. package/dist/components/buttons/tools/BigCursorButton/BigCursorButton.d.ts +3 -2
  38. package/dist/components/buttons/tools/ReadingGuide/ReadingGuide.d.ts +3 -2
  39. package/dist/components/buttons/tools/TextToSpeech/TextToSpeech.d.ts +3 -2
  40. package/dist/config.d.ts +2 -1
  41. package/dist/hooks/usePersistenceLayout/usePersistenceLayout.d.ts +2 -1
  42. package/dist/main.d.ts +2 -1
  43. package/dist/main.min.js +112 -124
  44. package/dist/types.d.ts +1 -0
  45. package/dist/utils.d.ts +2 -1
  46. package/package.json +7 -7
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../types';
3
+
3
4
  interface AccColorsProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../types';
3
+
3
4
  interface AccContentProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,6 +1,7 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../types";
3
- import { CollapsedState, CollapsedStateKeys } from "../../config";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../types';
3
+ import { CollapsedState, CollapsedStateKeys } from '../../config';
4
+
4
5
  interface AccMenuContentProps {
5
6
  accState: AccessibilikState;
6
7
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,6 +1,7 @@
1
- import { FC, ReactNode } from "react";
2
- import { IconSvgComponent } from "../../types";
3
- import { CollapsedStateKeys } from "../../config";
1
+ import { FC, ReactNode } from 'react';
2
+ import { IconSvgComponent } from '../../types';
3
+ import { CollapsedStateKeys } from '../../config';
4
+
4
5
  interface AccMenuContentBlockProps {
5
6
  children: ReactNode;
6
7
  name: CollapsedStateKeys;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../types';
3
+
3
4
  interface AccToolsProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,3 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  declare const Accessibilik: FC;
3
4
  export default Accessibilik;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../types';
3
+
3
4
  interface AccessibilityMenuProps {
4
5
  display: string;
5
6
  accState: AccessibilikState;
@@ -1,3 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  declare const Footer: FC;
3
4
  export default Footer;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface HeaderProps {
3
4
  onShow: () => void;
4
5
  onInit: () => void;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface PortalProps {
3
4
  children: ReactNode;
4
5
  wrapperElementId?: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface RcSliderProps {
3
4
  range?: boolean;
4
5
  min?: number;
@@ -1,5 +1,6 @@
1
- import { FC, ReactNode } from "react";
2
- import { IconSvgComponent } from "../../../types";
1
+ import { FC, ReactNode } from 'react';
2
+ import { IconSvgComponent } from '../../../types';
3
+
3
4
  interface AccButtonProps {
4
5
  Icon: IconSvgComponent;
5
6
  isToggled?: boolean;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface AccValueControlProps {
3
4
  onIncrease: () => void;
4
5
  onToggle: () => void;
@@ -1,4 +1,5 @@
1
- import { CSSProperties, FC } from "react";
1
+ import { CSSProperties, FC } from 'react';
2
+
2
3
  export type ValueControlType = "init" | "increase" | "decrease";
3
4
  interface AccValueControlButtonProps {
4
5
  controlType: ValueControlType;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface AccessibilityButtonProps {
3
4
  onShow?: () => void;
4
5
  showSpinner?: boolean;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface BlueLightFilterButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface BrightnessControlProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface DarkContrastButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface HighContrastButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface HighSaturationButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface LightContrastButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface LowSaturationButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface MonochromeButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface TextColorPickerButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface VisualImpairmentButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface AdjustFontSizeProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
2
- import React from "react";
1
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
2
+ import { default as React } from 'react';
3
+
3
4
  type Direction = "right" | "center" | "left";
4
5
  interface AlignTextButtonProps {
5
6
  direction: Direction;
@@ -1,2 +1,3 @@
1
- import { TextAlign } from "../../../../types";
1
+ import { TextAlign } from '../../../../types';
2
+
2
3
  export declare const useAlignTextButton: (textAlign: TextAlign, isGettingReady?: boolean) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface DyslexiaFontButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface FontWeightButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface HighlightLinksButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface HighlightTitlesButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface LetterSpacingButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface LineHeightButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface WordSpacingButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface ZoomButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface BigCursorButtonProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface ReadingGuideProps {
4
5
  rgGap?: number;
5
6
  accState: AccessibilikState;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
1
+ import { FC } from 'react';
2
+ import { AccessibilikState, ChangeAccDraftHander } from '../../../../types';
3
+
3
4
  interface TextToSpeechProps {
4
5
  accState: AccessibilikState;
5
6
  onChangeAccState: (fn: ChangeAccDraftHander) => void;
package/dist/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { IconSvgComponent } from "./types";
1
+ import { IconSvgComponent } from './types';
2
+
2
3
  export declare const langOptions: {
3
4
  label: string;
4
5
  value: string;
@@ -1,4 +1,5 @@
1
- import { AccessibilikState } from "../../types";
1
+ import { AccessibilikState } from '../../types';
2
+
2
3
  interface UsePersistenceLayoutProps {
3
4
  accState: AccessibilikState;
4
5
  isGettingReady: boolean;
package/dist/main.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import Accessibilik from './components/Accessibilik';
1
+ import { default as Accessibilik } from './components/Accessibilik';
2
+
2
3
  export default Accessibilik;