accessibility-react-widget 1.0.0
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/LICENSE.md +21 -0
- package/README.md +111 -0
- package/dist/assets/main.css +1 -0
- package/dist/components/AccColors/AccColors.d.ts +8 -0
- package/dist/components/AccContent/AccContent.d.ts +9 -0
- package/dist/components/AccMenuContent/AccMenuContent.d.ts +12 -0
- package/dist/components/AccMenuContentBlock/AccMenuContentBlock.d.ts +14 -0
- package/dist/components/AccTools/AccTools.d.ts +8 -0
- package/dist/components/Accessibilik/index.d.ts +3 -0
- package/dist/components/AccessibilityMenu/AccessibilityMenu.d.ts +15 -0
- package/dist/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Header/Header.d.ts +7 -0
- package/dist/components/Portal/Portal.d.ts +8 -0
- package/dist/components/RcSlider/RcSlider.d.ts +12 -0
- package/dist/components/buttons/AccButton/AccButton.d.ts +23 -0
- package/dist/components/buttons/AccValueControl/AccValueControl.d.ts +8 -0
- package/dist/components/buttons/AccValueControlButton/AccValueControlButton.d.ts +9 -0
- package/dist/components/buttons/AccessibilityButton/AccessibilityButton.d.ts +7 -0
- package/dist/components/buttons/colors/BlueLightFilterButton/BlueLightFilterButton.d.ts +8 -0
- package/dist/components/buttons/colors/BrightnessControl/BrightnessControl.d.ts +8 -0
- package/dist/components/buttons/colors/DarkContrastButton/DarkContrastButton.d.ts +8 -0
- package/dist/components/buttons/colors/HighContrastButton/HighContrastButton.d.ts +8 -0
- package/dist/components/buttons/colors/HighSaturationButton/HighSaturationButton.d.ts +8 -0
- package/dist/components/buttons/colors/LightContrastButton/LightContrastButton.d.ts +8 -0
- package/dist/components/buttons/colors/LowSaturationButton/LowSaturationButton.d.ts +8 -0
- package/dist/components/buttons/colors/MonochromeButton/MonochromeButton.d.ts +8 -0
- package/dist/components/buttons/colors/TextColorPickerButton/TextColorPickerButton.d.ts +8 -0
- package/dist/components/buttons/colors/VisualImpairmentButton/VisualImpairmentButton.d.ts +8 -0
- package/dist/components/buttons/content/AdjustFontSize/AdjustFontSize.d.ts +9 -0
- package/dist/components/buttons/content/AlignTextButton/AlignTextButton.d.ts +11 -0
- package/dist/components/buttons/content/DyslexiaFontButton/DyslexiaFontButton.d.ts +8 -0
- package/dist/components/buttons/content/DyslexiaFontButton/style.d.ts +2 -0
- package/dist/components/buttons/content/FontWeightButton/FontWeightButton.d.ts +8 -0
- package/dist/components/buttons/content/HighlightLinksButton/HighlightLinksButton.d.ts +8 -0
- package/dist/components/buttons/content/HighlightTitlesButton/HighlightTitlesButton.d.ts +8 -0
- package/dist/components/buttons/content/LetterSpacingButton/LetterSpacingButton.d.ts +8 -0
- package/dist/components/buttons/content/LineHeightButton/LineHeightButton.d.ts +8 -0
- package/dist/components/buttons/content/WordSpacingButton/WordSpacingButton.d.ts +8 -0
- package/dist/components/buttons/content/ZoomButton/ZoomButton.d.ts +8 -0
- package/dist/components/buttons/tools/BigCursorButton/BigCursorButton.d.ts +8 -0
- package/dist/components/buttons/tools/BigCursorButton/cursor.d.ts +2 -0
- package/dist/components/buttons/tools/ReadingGuide/ReadingGuide.d.ts +9 -0
- package/dist/components/buttons/tools/TextToSpeech/TextToSpeech.d.ts +8 -0
- package/dist/components/main.d.ts +0 -0
- package/dist/config.d.ts +22 -0
- package/dist/constants.d.ts +4 -0
- package/dist/hooks/useFontSizeMutationObserver.d.ts +2 -0
- package/dist/hooks/useFontSizeTraverse.d.ts +2 -0
- package/dist/i18/locale/en.json.d.ts +40 -0
- package/dist/i18/locale/index.d.ts +13 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.min.js +193 -0
- package/dist/types.d.ts +56 -0
- package/dist/utils.d.ts +5 -0
- package/dist/vite-env.d.ts +2 -0
- package/package.json +124 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Vladi Iokhim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# ♿ Accessibilik: React Accessibility Widget.
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/accessibilik)
|
|
6
|
+
[](https://github.com/RosenGray/accessibilik/blob/master/LICENSE)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Accessibilik: A React-based web accessibility widget to enhance UI/UX for all users.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
yarn add accessibility-react-widget
|
|
14
|
+
npm install accessibility-react-widget
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then use it in your app:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import Accessibilik from 'accessibility-react-widget';
|
|
21
|
+
|
|
22
|
+
export default function App() {
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div className="App">
|
|
26
|
+
<MyApp/>
|
|
27
|
+
<Accessibilik />
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 🔥 Features
|
|
34
|
+
|
|
35
|
+
## Content
|
|
36
|
+
🇸🇨 **Multilingual Support**: Supports multiple languages **(38 languages) ** : <p> Hebrew, English, Russian, Chinese mandarin, Spanish, Arabic, Bengali, Hindi, Portuguese, Japanese, German, Chinese, Korean, French, Turkish, Vietnamese, Telugu, Marathi, Tamil, Italian, Urdu, Gujarati, Polish, Ukrainian, Persian, Malayalam, Kannada, Oriya, Romanian, Azerbaijani, Hausa, Burmese, Serbocroatian, Thai, Dutch, Yoruba, Sindhi </p>
|
|
37
|
+
|
|
38
|
+
🔤 **Adjust Font Size**: offers users the ability to easily modify text size for optimal readability, enhancing accessibility for those with visual impairments or reading preferences. This feature ensures a comfortable and inclusive browsing experience for all users.
|
|
39
|
+
|
|
40
|
+
📑 **Align Text**: provides users with the capability to adjust text alignment, offering options like left, right, center, or justified, catering to personal reading preferences and enhancing overall readability.
|
|
41
|
+
|
|
42
|
+
🧠 **Dyslexia Font**: enables users to switch to a dyslexia-friendly font, improving readability and reducing visual stress for those with dyslexia, thereby fostering a more inclusive browsing experience.
|
|
43
|
+
|
|
44
|
+
🔤 **Font Weight**: This feature enables users to customize text thickness from light to bold, enhancing readability and accommodating diverse visual needs for a comfortable reading experience.
|
|
45
|
+
|
|
46
|
+
🔤 **Highlight Links**: This feature automatically highlights all hyperlinks on the page, making them more prominent and easier to locate, thus enhancing navigation and usability for all users, especially those with visual impairments.
|
|
47
|
+
|
|
48
|
+
🔤 **Highlight Titles**: Enhances the visibility of headings and titles by adding distinct highlighting, aiding users in quickly identifying key sections and improving overall content navigation.
|
|
49
|
+
|
|
50
|
+
🔤 **Letter Spacing**: Allows users to adjust the spacing between characters in texts, enhancing readability and reducing visual strain, especially beneficial for those with dyslexia or other reading difficulties.
|
|
51
|
+
|
|
52
|
+
🔤 **Line Height**: Provides the ability to alter the space between lines of text, improving legibility and comfort for reading, particularly helpful for users with visual impairments or reading disorders.
|
|
53
|
+
|
|
54
|
+
🔤 **Word Spacing**: Offers the option to modify the spacing between words, aiding in better readability and visual comfort, especially for users with dyslexia or other reading challenges.
|
|
55
|
+
|
|
56
|
+
## 🖌 Colors
|
|
57
|
+
|
|
58
|
+
🖌 **BlueLight Filter**: Reduces blue light emission from the screen, diminishing eye strain and improving viewing comfort, especially beneficial for users during extended use or in low-light conditions.
|
|
59
|
+
|
|
60
|
+
🖌 **Brightness Control**: Allows users to adjust the screen brightness directly through the website, enhancing visual comfort and reducing eye strain, especially in varying light environments.
|
|
61
|
+
|
|
62
|
+
🖌 **DarkContrast Button**: Activates a high-contrast, dark mode color scheme, reducing glare and eye strain, ideal for users with light sensitivity or those preferring a darker interface for easier reading.
|
|
63
|
+
|
|
64
|
+
🖌 **HighContrast Button**: Enables a high-contrast color mode, enhancing text and image visibility against backgrounds, crucial for users with visual impairments or color vision deficiencies.
|
|
65
|
+
|
|
66
|
+
🖌 **HighSaturation Button**: This feature enhances color saturation, making hues more vivid and distinct, which can be beneficial for users with color vision deficiencies or those who prefer more vibrant visuals.
|
|
67
|
+
|
|
68
|
+
🖌 **LightContrast Button**: Offers a low-contrast color mode, ideal for users who find high contrast visually overwhelming, providing a softer and more comfortable viewing experience.
|
|
69
|
+
|
|
70
|
+
🖌 **LowSaturation Button**: Reduces color intensity for a more subdued visual experience, ideal for users sensitive to bright colors or who prefer a less vibrant screen appearance.
|
|
71
|
+
|
|
72
|
+
🖌 **Monochrome Button**: Converts the website's colors to grayscale, simplifying the visual experience and aiding users with color perception difficulties or those who prefer minimalistic design.
|
|
73
|
+
|
|
74
|
+
🖌 **TextColor Picker**: Allows users to customize the color of text on the website, enabling personalization for better readability and comfort, especially helpful for those with visual impairments or color preferences.
|
|
75
|
+
|
|
76
|
+
🖌 **Visual Impairment**: A dedicated mode tailored for users with visual impairments, incorporating features like enhanced contrast, larger text, and voice navigation to facilitate easier and more accessible web interaction.
|
|
77
|
+
|
|
78
|
+
## 🧰 Tools
|
|
79
|
+
|
|
80
|
+
🔍 **Zoom Button**: This feature enables a full-page zoom, magnifying both text and images for enhanced visibility, catering to users with visual impairments and improving overall accessibility.
|
|
81
|
+
|
|
82
|
+
🖱 **Big Cursor**: Increases the size of the cursor on the website, enhancing its visibility and making navigation easier for users with visual impairments or those who struggle with fine motor control.
|
|
83
|
+
|
|
84
|
+
📖 **Reading Guide**: Provides an on-screen, line-by-line guide to help users focus on the text, significantly aiding those with reading difficulties or visual tracking challenges, and enhancing overall comprehension.
|
|
85
|
+
|
|
86
|
+
🎤 **Text To Speech**: Converts written text on the website into spoken words, facilitating access for users with visual impairments, reading difficulties, or those who prefer auditory learning.
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
yarn add accessibility-react-widget
|
|
90
|
+
npm install accessibility-react-widget
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Then use it in your app:
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
import Accessibilik from 'accessibility-react-widget';
|
|
97
|
+
|
|
98
|
+
export default function App() {
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<div className="App">
|
|
102
|
+
<MyApp/>
|
|
103
|
+
<Accessibilik />
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
MIT Licensed. Copyright (c) Vladi Iokhim 2024.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._AccessibilityIcon_1adfu_1{background-color:var(--primary-color);width:70px;height:70px;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 15px #252c6126,0 2px 4px #5d649433;position:fixed;z-index:500000;inset-inline-start:20px;bottom:20px;transition:.3s;cursor:pointer}._AccessibilityIcon_1adfu_1._showSpinner_1adfu_16{cursor:auto;animation:_spin_1adfu_1 2.5s linear infinite}._AccessibilityIcon_1adfu_1:hover{transform:scale(1.2)}._AccessibilityIcon_1adfu_1>svg{fill:var(--white);width:75%;z-index:1}._AccessibilityIcon_1adfu_1:after{content:"";position:absolute;left:50%;top:50%;bottom:0;width:80%;height:80%;border:2px solid white;background-color:var(--primary-color);z-index:0;transform:translate(-50%,-50%)}@keyframes _spin_1adfu_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._accHeader__resetBtn_edc9t_1,._accHeader__closeBtn_edc9t_1{background-color:transparent;border:none;outline:none;display:flex;align-items:center}._accHeader__resetBtn_edc9t_1 svg,._accHeader__closeBtn_edc9t_1 svg{fill:#fff;font-weight:700;font-size:2em;width:30px}._accHeader_edc9t_1{height:60px;background-color:#2c2639;display:flex;align-items:center;justify-content:space-between;padding:.5em}._accHeader__title_edc9t_23{color:#fff;margin:0;font-size:18px}._accHeader_edc9t_1>._acc-lang-select-container_edc9t_28{flex:1}._accFooter_1og5x_1{height:30px;background-color:#2c2639;display:flex;align-items:center;justify-content:center;color:#fff}._accFooter_1og5x_1>a{color:#fff}._accAccessibilityMenu__overlay_1k9wv_1{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000}._accMenu_1k9wv_10{position:fixed;inset-inline-start:20px;bottom:100px;border-radius:10px;box-shadow:0 0 20px #00000080;opacity:1;transition:.3s;z-index:500000;overflow:hidden;background:#f9f9f9;width:500px;line-height:1;font-size:16px;letter-spacing:.015em;display:flex;flex-direction:column}._accMenu_1k9wv_10 [class$=-control]{border-radius:0;border:.3px solid #2C2639}._accMenu_1k9wv_10 [class$=-indicatorContainer] svg{fill:#2c2639}._accMenu_1k9wv_10 [class$=-indicatorSeparator]{background-color:#2c2639}._accMenu_1k9wv_10 [class$=-menu]{margin-top:0;z-index:100}._accMenuContentBlock_ba9px_1{border:.3px solid #2c2639;display:flex;align-items:center;flex-direction:column;max-height:calc(33.3333333333vh - 83px);justify-content:center;flex-grow:1;transition:max-height .3s linear;padding:10px 5px 5px;position:relative;cursor:pointer;overflow:hidden;z-index:10}._accMenuContentBlock_ba9px_1:focus{border:1px solid #2c2639}._accMenuContentBlock_ba9px_1._isExpanded_ba9px_19{cursor:auto;flex:1;max-height:100%;border:none}._accMenuContentBlock_ba9px_1._isAccMenuContentActive_ba9px_25:not(._isExpanded_ba9px_19){display:none}._accMenuContentBlock__titleContainer_ba9px_28{display:flex;flex-direction:column;align-items:center}._accMenuContentBlock__titleContainer_ba9px_28 svg{font-weight:700;width:30px;fill:#000}._accMenuContentBlock__title_ba9px_28{font-size:20px;font-weight:700;color:#000;text-transform:capitalize;margin:0;padding:.2em}._accMenuContentBlock__expendButtonContainer_ba9px_46{width:100%;display:flex;margin-bottom:10px}._accMenuContentBlock__expendButtonContainer_ba9px_46 button{font-size:30px;width:80%;margin:auto;inset-inline-start:5px;height:100%;border:none;outline:none;background-color:var(--primary-color);border-radius:10px}._accMenuContentBlock__expendButtonContainer_ba9px_46 button>svg{fill:#fff;width:24px}._accMenuContentBlock__expendButtonContainer_ba9px_46 button:hover{opacity:.8}._accMenuContentBlock__content_ba9px_69{display:grid;flex:1;grid-template-columns:repeat(3,1fr);grid-auto-rows:max-content;-moz-column-gap:.8em;column-gap:.8em;overflow:auto;row-gap:1.5em;align-self:baseline;width:100%}._accButton_gu4kw_1{aspect-ratio:6/5;border-radius:4px;display:flex;flex-direction:column;padding:5px;color:#000;background:#fff;border:1px solid #ccc;transition:all .5s ease;position:relative;cursor:pointer}._accButton_gu4kw_1:hover,._accButton_gu4kw_1:focus{border-color:var(--primary-color);outline:none}._accButton_gu4kw_1._isToggled_gu4kw_18{background-color:var(--primary-color);border-color:var(--primary-color);color:#fff}._accButton_gu4kw_1._isToggled_gu4kw_18 svg{fill:#fff}._accButton_gu4kw_1._isActive_gu4kw_26{border-color:var(--primary-color)}._accButton__title_gu4kw_29{font-size:15px;font-weight:400;text-align:center;width:100%;color:inherit;margin:10px auto auto}._accButton__icon_gu4kw_38{width:24px;margin-bottom:8px}._accButton__icon--help_gu4kw_42{position:absolute;inset-inline-end:0}._accButton__icon--help_gu4kw_42:hover{fill:red!important}._accButton__icon--help_gu4kw_42:hover+span[data-tooltip]:after{opacity:1;padding:8px;max-height:10000px;transition-duration:.3s}._accButton__content_gu4kw_55{align-self:flex-end;width:100%;margin-top:auto;flex:.8}._accButton__stats_gu4kw_61{color:var(--primary-color);font-weight:700;position:absolute;align-self:flex-end;font-size:14px}._accButton_gu4kw_1 span[data-tooltip]{position:absolute;left:0;right:0;bottom:0;cursor:help}._accButton_gu4kw_1 span[data-tooltip]:after{position:absolute;opacity:0;pointer-events:none;content:attr(data-tooltip);color:var(--primary-color);left:0;right:0;bottom:0;margin:auto;line-height:1.5;border-radius:3px;box-shadow:0 0 5px 2px #64646499;background-color:#fff;z-index:10;word-wrap:break-word;text-align:start;transform:translateY(100%);transition:all .15s cubic-bezier(.25,.8,.25,1)}._accValueControl_p53sg_1{height:100%;display:flex;align-items:center;justify-content:space-around}._accValueControlButton_1pw3b_1{padding:0;background-color:var(--primary-color);border:none;outline:none;width:28px;aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center}._accValueControlButton_1pw3b_1 svg{fill:#fff;width:20px}._accValueControlButton_1pw3b_1:hover{opacity:.8}._accValueControlButton_1pw3b_1:focus{background-color:#fff;border:4px solid var(--primary-color)}._accValueControlButton_1pw3b_1:focus svg{fill:var(--primary-color)}._accLineHeightButton_n1tdk_1,._accZoomButton_1fl6t_1{height:100%;display:flex;align-items:center;justify-content:space-around}._accBrightnessControl_16gcc_1{height:100%;display:flex;align-items:center;justify-content:space-around;position:relative}.rc-slider{position:relative;width:100%;height:14px;padding:5px 0;border-radius:6px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-rail{position:absolute;width:100%;height:4px;background-color:#e9e9e9;border-radius:6px}.rc-slider-track,.rc-slider-tracks{position:absolute;height:4px;background-color:#abe2fb;border-radius:6px}.rc-slider-track-draggable{z-index:1;box-sizing:content-box;background-clip:content-box;border-top:5px solid rgba(0,0,0,0);border-bottom:5px solid rgba(0,0,0,0);transform:translateY(-5px)}.rc-slider-handle{position:absolute;z-index:1;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #96dbfa;border-radius:50%;cursor:pointer;cursor:grab;opacity:.8;touch-action:pan-x}.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging{border-color:#57c5f7;box-shadow:0 0 0 5px #96dbfa}.rc-slider-handle:focus{outline:none;box-shadow:none}.rc-slider-handle:focus-visible{border-color:#2db7f5;box-shadow:0 0 0 3px #96dbfa}.rc-slider-handle-click-focused:focus{border-color:#96dbfa;box-shadow:unset}.rc-slider-handle:hover{border-color:#57c5f7}.rc-slider-handle:active{border-color:#57c5f7;box-shadow:0 0 5px #57c5f7;cursor:grabbing}.rc-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.rc-slider-mark-text{position:absolute;display:inline-block;color:#999;text-align:center;vertical-align:middle;cursor:pointer}.rc-slider-mark-text-active{color:#666}.rc-slider-step{position:absolute;width:100%;height:4px;background:transparent}.rc-slider-dot{position:absolute;bottom:-2px;width:8px;height:8px;vertical-align:middle;background-color:#fff;border:2px solid #e9e9e9;border-radius:50%;cursor:pointer}.rc-slider-dot-active{border-color:#96dbfa}.rc-slider-dot-reverse{margin-right:-4px}.rc-slider-disabled{background-color:#e9e9e9}.rc-slider-disabled .rc-slider-track{background-color:#ccc}.rc-slider-disabled .rc-slider-handle,.rc-slider-disabled .rc-slider-dot{background-color:#fff;border-color:#ccc;box-shadow:none;cursor:not-allowed}.rc-slider-disabled .rc-slider-mark-text,.rc-slider-disabled .rc-slider-dot{cursor:not-allowed!important}.rc-slider-vertical{width:14px;height:100%;padding:0 5px}.rc-slider-vertical .rc-slider-rail{width:4px;height:100%}.rc-slider-vertical .rc-slider-track{bottom:0;left:5px;width:4px}.rc-slider-vertical .rc-slider-track-draggable{border-top:0;border-bottom:0;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);transform:translate(-5px)}.rc-slider-vertical .rc-slider-handle{position:absolute;z-index:1;margin-top:0;margin-left:-5px;touch-action:pan-y}.rc-slider-vertical .rc-slider-mark{top:0;left:18px;height:100%}.rc-slider-vertical .rc-slider-step{width:4px;height:100%}.rc-slider-vertical .rc-slider-dot{margin-left:-2px}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear,.rc-slider-tooltip-zoom-down-leave{display:block!important;animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused}.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear{transform:scale(0);animation-timing-function:cubic-bezier(.23,1,.32,1)}.rc-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}@keyframes rcSliderTooltipZoomDownIn{0%{transform:scale(0);transform-origin:50% 100%;opacity:0}to{transform:scale(1);transform-origin:50% 100%}}@keyframes rcSliderTooltipZoomDownOut{0%{transform:scale(1);transform-origin:50% 100%}to{transform:scale(0);transform-origin:50% 100%;opacity:0}}.rc-slider-tooltip{position:absolute;top:-9999px;left:-9999px;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip-hidden{display:none}.rc-slider-tooltip-placement-top{padding:4px 0 8px}.rc-slider-tooltip-inner{min-width:24px;height:24px;padding:6px 2px;color:#fff;font-size:12px;line-height:1;text-align:center;text-decoration:none;background-color:#6c6c6c;border-radius:6px;box-shadow:0 0 4px #d9d9d9}.rc-slider-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}._accRcSlider_dhokk_1{position:absolute;left:0;right:0;bottom:-6px}._accRcSlider_dhokk_1 .rc-slider-rail{background-color:var(--primary-color)}._accRcSlider_dhokk_1 .rc-slider-handle{border:solid 2px var(--primary-color);background-color:red;opacity:1;width:22px;height:22px;margin-top:-9px}._accButtonTextColorPicker_dw9mu_1{grid-column:span 3;aspect-ratio:10/5}._accButtonTextColorPicker_dw9mu_1>h2{margin:0;position:absolute;display:inline-block;width:auto;inset-inline-end:5px}._accButtonTextColorPicker_dw9mu_1 [class^=_accButton__content]{flex:1}._accTextColorPicker_dw9mu_16{height:100%;display:flex;flex-direction:column;align-items:center}._accTextColorPicker__topContainer_dw9mu_22{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:15px;gap:10px}._accTextColorPicker__inputText_dw9mu_30{text-align:center;font-weight:700;letter-spacing:1px}._accTextColorPicker__hexColorPicker_dw9mu_35{flex:1;width:100%!important}._acc-readingGuide_x7idf_1{position:fixed;top:0;left:0;right:0;width:100%;height:0;pointer-events:none;background-color:#00000080;z-index:1000000}._accSelectVoicesContainer_1d5zn_1 .accSelectVoices__indicators{display:none}._accSelectVoicesContainer_1d5zn_1 .accSelectVoices__option{color:#333}._accMenuContent_1v82o_1{display:grid;height:calc(100vh - 250px);display:flex;flex-direction:column;overflow:hidden}:root{--primary-color: #222e8a;--highlight-color:#0048ff;--white:#fff}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../types";
|
|
3
|
+
interface AccColorsProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const AccColors: FC<AccColorsProps>;
|
|
8
|
+
export default AccColors;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../types";
|
|
3
|
+
interface AccContentProps {
|
|
4
|
+
nodeListUpdated: number;
|
|
5
|
+
accState: AccessibilikState;
|
|
6
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const AccContent: FC<AccContentProps>;
|
|
9
|
+
export default AccContent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../types";
|
|
3
|
+
import { CollapsedState, CollapsedStateKeys } from "../../config";
|
|
4
|
+
interface AccMenuContentProps {
|
|
5
|
+
nodeListUpdated: number;
|
|
6
|
+
accState: AccessibilikState;
|
|
7
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
8
|
+
onCollapse: (name: CollapsedStateKeys) => void;
|
|
9
|
+
collapsedState: CollapsedState;
|
|
10
|
+
}
|
|
11
|
+
declare const AccMenuContent: FC<AccMenuContentProps>;
|
|
12
|
+
export default AccMenuContent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { IconSvgComponent } from "../../types";
|
|
3
|
+
import { CollapsedStateKeys } from "../../config";
|
|
4
|
+
interface AccMenuContentBlockProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
name: CollapsedStateKeys;
|
|
7
|
+
onCollapse: (name: CollapsedStateKeys) => void;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
isAccMenuContentActive: boolean;
|
|
10
|
+
Icon: IconSvgComponent;
|
|
11
|
+
tKey: string;
|
|
12
|
+
}
|
|
13
|
+
declare const AccMenuContentBlock: FC<AccMenuContentBlockProps>;
|
|
14
|
+
export default AccMenuContentBlock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../types";
|
|
3
|
+
interface AccToolsProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const AccTools: FC<AccToolsProps>;
|
|
8
|
+
export default AccTools;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../types";
|
|
3
|
+
interface AccessibilityMenuProps {
|
|
4
|
+
nodeListUpdated: number;
|
|
5
|
+
display: string;
|
|
6
|
+
accState: AccessibilikState;
|
|
7
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
8
|
+
onLangChange: (langCode: string) => void;
|
|
9
|
+
onInit: () => void;
|
|
10
|
+
onShow: () => void;
|
|
11
|
+
showAcc: boolean;
|
|
12
|
+
hasLanguages: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const AccessibilityMenu: FC<AccessibilityMenuProps>;
|
|
15
|
+
export default AccessibilityMenu;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface PortalProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
wrapperElementId?: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
declare const Portal: ({ children, wrapperElementId }: PortalProps) => React.ReactPortal | null;
|
|
8
|
+
export default Portal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface RcSliderProps {
|
|
3
|
+
range?: boolean;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
onChange: (n: number | number[]) => void;
|
|
8
|
+
height?: number;
|
|
9
|
+
vertical?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const RcSlider: FC<RcSliderProps>;
|
|
12
|
+
export default RcSlider;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { IconSvgComponent } from "../../../types";
|
|
3
|
+
interface AccButtonProps {
|
|
4
|
+
Icon: IconSvgComponent;
|
|
5
|
+
isToggled?: boolean;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
onToggle?: () => void;
|
|
9
|
+
titleTranslationKey: string;
|
|
10
|
+
elementType?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
stats?: number | string;
|
|
13
|
+
styleIcon?: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
styleTitle?: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
className?: string;
|
|
20
|
+
tooltipTranslationKey?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const AccButton: FC<AccButtonProps>;
|
|
23
|
+
export default AccButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, FC } from "react";
|
|
2
|
+
export type ValueControlType = "init" | "increase" | "decrease";
|
|
3
|
+
interface AccValueControlButtonProps {
|
|
4
|
+
controlType: ValueControlType;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const AccValueControlButton: FC<AccValueControlButtonProps>;
|
|
9
|
+
export default AccValueControlButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface BlueLightFilterButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const BlueLightFilterButton: FC<BlueLightFilterButtonProps>;
|
|
8
|
+
export default BlueLightFilterButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface BrightnessControlProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const BrightnessControl: FC<BrightnessControlProps>;
|
|
8
|
+
export default BrightnessControl;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface DarkContrastButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const DarkContrastButton: FC<DarkContrastButtonProps>;
|
|
8
|
+
export default DarkContrastButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface HighContrastButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const HighContrastButton: FC<HighContrastButtonProps>;
|
|
8
|
+
export default HighContrastButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface HighSaturationButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const HighSaturationButton: FC<HighSaturationButtonProps>;
|
|
8
|
+
export default HighSaturationButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface LightContrastButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const LightContrastButton: FC<LightContrastButtonProps>;
|
|
8
|
+
export default LightContrastButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface LowSaturationButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const LowSaturationButton: FC<LowSaturationButtonProps>;
|
|
8
|
+
export default LowSaturationButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface MonochromeButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const MonochromeButton: FC<MonochromeButtonProps>;
|
|
8
|
+
export default MonochromeButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface TextColorPickerButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const TextColorPickerButton: FC<TextColorPickerButtonProps>;
|
|
8
|
+
export default TextColorPickerButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface VisualImpairmentButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const VisualImpairmentButton: FC<VisualImpairmentButtonProps>;
|
|
8
|
+
export default VisualImpairmentButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface AdjustFontSizeProps {
|
|
4
|
+
nodeListUpdated: number;
|
|
5
|
+
accState: AccessibilikState;
|
|
6
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const AdjustFontSize: FC<AdjustFontSizeProps>;
|
|
9
|
+
export default AdjustFontSize;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
type Direction = "right" | "center" | "left";
|
|
4
|
+
interface AlignTextButtonProps {
|
|
5
|
+
direction: Direction;
|
|
6
|
+
accState: AccessibilikState;
|
|
7
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
8
|
+
translationKey: string;
|
|
9
|
+
}
|
|
10
|
+
declare const AlignTextButton: FC<AlignTextButtonProps>;
|
|
11
|
+
export default AlignTextButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface DyslexiaFontButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const DyslexiaFontButton: FC<DyslexiaFontButtonProps>;
|
|
8
|
+
export default DyslexiaFontButton;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const DYSLEXIA_FONT_STYLE = "\n @import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic-Bold.woff') format('woff');\n font-weight: bold;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic3-Bold.ttf') format('truetype');\n font-weight: bold;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic3-Regular.ttf') format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic-Regular.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic-Regular.otf') format('opentype');\n font-weight: normal;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n src: url('https://rosengray.github.io/static/fonts/OpenDyslexic-Bold.otf') format('opentype');\n font-weight: bold;\n font-style: normal;\n}\n\n\nhtml{\n font-family: OpenDyslexic,Comic Neue,Arial,Helvetica,sans-serif !important\n \n}\n\nhtml *, *{\n font-family: OpenDyslexic,Comic Neue,Arial,Helvetica,sans-serif !important\n}\n\nhtml.acc-font-weight{\n font-family: OpenDyslexic,Comic Neue,Arial,Helvetica,sans-serif !important \n}\n\n\n";
|
|
2
|
+
export default DYSLEXIA_FONT_STYLE;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface FontWeightButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const FontWeightButton: FC<FontWeightButtonProps>;
|
|
8
|
+
export default FontWeightButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface HighlightLinksButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const HighlightLinksButton: FC<HighlightLinksButtonProps>;
|
|
8
|
+
export default HighlightLinksButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface HighlightTitlesButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const HighlightTitlesButton: FC<HighlightTitlesButtonProps>;
|
|
8
|
+
export default HighlightTitlesButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface LetterSpacingButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const LetterSpacingButton: FC<LetterSpacingButtonProps>;
|
|
8
|
+
export default LetterSpacingButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface LineHeightButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const LineHeightButton: FC<LineHeightButtonProps>;
|
|
8
|
+
export default LineHeightButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface WordSpacingButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const WordSpacingButton: FC<WordSpacingButtonProps>;
|
|
8
|
+
export default WordSpacingButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface ZoomButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ZoomButton: FC<ZoomButtonProps>;
|
|
8
|
+
export default ZoomButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface BigCursorButtonProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const BigCursorButton: FC<BigCursorButtonProps>;
|
|
8
|
+
export default BigCursorButton;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const cursor = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"57px\" height=\"98px\" viewBox=\"0 0 57 97\" version=\"1.1\">\n<g id=\"surface1\">\n<path style=\" stroke:black;stroke-width:4;fill-rule:nonzero;fill:#ccc;fill-opacity:1;\" d=\"M 29.65625 92.226562 L 46.339844 85.503906 L 33.871094 54.734375 L 54.179688 55.089844 L 3.910156 4.773438 L 2.820312 75.773438 L 17.183594 61.453125 Z M 29.65625 92.226562 \"/>\n</g>\n</svg>\n";
|
|
2
|
+
export default cursor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface ReadingGuideProps {
|
|
4
|
+
rgGap?: number;
|
|
5
|
+
accState: AccessibilikState;
|
|
6
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ReadingGuide: FC<ReadingGuideProps>;
|
|
9
|
+
export default ReadingGuide;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccessibilikState, ChangeAccDraftHander } from "../../../../types";
|
|
3
|
+
interface TextToSpeechProps {
|
|
4
|
+
accState: AccessibilikState;
|
|
5
|
+
onChangeAccState: (fn: ChangeAccDraftHander) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const TextToSpeech: FC<TextToSpeechProps>;
|
|
8
|
+
export default TextToSpeech;
|
|
File without changes
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IconSvgComponent } from "./types";
|
|
2
|
+
export declare const langOptions: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const langMap: Record<string, {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>;
|
|
10
|
+
type Collapsed = {
|
|
11
|
+
name: string;
|
|
12
|
+
isExpanded: boolean;
|
|
13
|
+
icon: IconSvgComponent;
|
|
14
|
+
};
|
|
15
|
+
export interface CollapsedState {
|
|
16
|
+
content: Collapsed;
|
|
17
|
+
colors: Collapsed;
|
|
18
|
+
tools: Collapsed;
|
|
19
|
+
}
|
|
20
|
+
export declare const collapsedStateInit: CollapsedState;
|
|
21
|
+
export type CollapsedStateKeys = keyof typeof collapsedStateInit;
|
|
22
|
+
export {};
|