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.
- package/dist/components/AccColors/AccColors.d.ts +3 -2
- package/dist/components/AccContent/AccContent.d.ts +3 -2
- package/dist/components/AccMenuContent/AccMenuContent.d.ts +4 -3
- package/dist/components/AccMenuContentBlock/AccMenuContentBlock.d.ts +4 -3
- package/dist/components/AccTools/AccTools.d.ts +3 -2
- package/dist/components/Accessibilik/index.d.ts +2 -1
- package/dist/components/AccessibilityMenu/AccessibilityMenu.d.ts +3 -2
- package/dist/components/Footer/Footer.d.ts +2 -1
- package/dist/components/Header/Header.d.ts +2 -1
- package/dist/components/Portal/Portal.d.ts +2 -1
- package/dist/components/RcSlider/RcSlider.d.ts +2 -1
- package/dist/components/buttons/AccButton/AccButton.d.ts +3 -2
- package/dist/components/buttons/AccValueControl/AccValueControl.d.ts +2 -1
- package/dist/components/buttons/AccValueControlButton/AccValueControlButton.d.ts +2 -1
- package/dist/components/buttons/AccessibilityButton/AccessibilityButton.d.ts +2 -1
- package/dist/components/buttons/colors/BlueLightFilterButton/BlueLightFilterButton.d.ts +3 -2
- package/dist/components/buttons/colors/BrightnessControl/BrightnessControl.d.ts +3 -2
- package/dist/components/buttons/colors/DarkContrastButton/DarkContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/HighContrastButton/HighContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/HighSaturationButton/HighSaturationButton.d.ts +3 -2
- package/dist/components/buttons/colors/LightContrastButton/LightContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/LowSaturationButton/LowSaturationButton.d.ts +3 -2
- package/dist/components/buttons/colors/MonochromeButton/MonochromeButton.d.ts +3 -2
- package/dist/components/buttons/colors/TextColorPickerButton/TextColorPickerButton.d.ts +3 -2
- package/dist/components/buttons/colors/VisualImpairmentButton/VisualImpairmentButton.d.ts +3 -2
- package/dist/components/buttons/content/AdjustFontSize/AdjustFontSize.d.ts +3 -2
- package/dist/components/buttons/content/AlignTextButton/AlignTextButton.d.ts +3 -2
- package/dist/components/buttons/content/AlignTextButton/useAlignTextButton.d.ts +2 -1
- package/dist/components/buttons/content/DyslexiaFontButton/DyslexiaFontButton.d.ts +3 -2
- package/dist/components/buttons/content/FontWeightButton/FontWeightButton.d.ts +3 -2
- package/dist/components/buttons/content/HighlightLinksButton/HighlightLinksButton.d.ts +3 -2
- package/dist/components/buttons/content/HighlightTitlesButton/HighlightTitlesButton.d.ts +3 -2
- package/dist/components/buttons/content/LetterSpacingButton/LetterSpacingButton.d.ts +3 -2
- package/dist/components/buttons/content/LineHeightButton/LineHeightButton.d.ts +3 -2
- package/dist/components/buttons/content/WordSpacingButton/WordSpacingButton.d.ts +3 -2
- package/dist/components/buttons/content/ZoomButton/ZoomButton.d.ts +3 -2
- package/dist/components/buttons/tools/BigCursorButton/BigCursorButton.d.ts +3 -2
- package/dist/components/buttons/tools/ReadingGuide/ReadingGuide.d.ts +3 -2
- package/dist/components/buttons/tools/TextToSpeech/TextToSpeech.d.ts +3 -2
- package/dist/config.d.ts +2 -1
- package/dist/hooks/usePersistenceLayout/usePersistenceLayout.d.ts +2 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.min.js +112 -124
- package/dist/types.d.ts +1 -0
- package/dist/utils.d.ts +2 -1
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
3
|
-
import { CollapsedState, CollapsedStateKeys } from
|
|
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
|
|
2
|
-
import { IconSvgComponent } from
|
|
3
|
-
import { CollapsedStateKeys } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import React from
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
|
|
2
|
-
import { AccessibilikState, ChangeAccDraftHander } from
|
|
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
package/dist/main.d.ts
CHANGED