accessibility-plugin-react 2.2.2 → 2.3.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/dist/index.d.mts +120 -1
- package/dist/index.d.ts +120 -1
- package/dist/index.js +516 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +508 -1
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +299 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// src/styles/tailwind.css
|
|
27
|
-
styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n');
|
|
27
|
+
styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n');
|
|
28
28
|
|
|
29
29
|
// src/core/AccessibilityPlugin.tsx
|
|
30
30
|
import {
|
|
@@ -2116,14 +2116,517 @@ function ResetController() {
|
|
|
2116
2116
|
] }) });
|
|
2117
2117
|
return actionHost ? createPortal2(button, actionHost) : button;
|
|
2118
2118
|
}
|
|
2119
|
+
|
|
2120
|
+
// src/core/controls/ToggleControl.tsx
|
|
2121
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2122
|
+
function ToggleControl({
|
|
2123
|
+
id,
|
|
2124
|
+
label,
|
|
2125
|
+
checked,
|
|
2126
|
+
onChange,
|
|
2127
|
+
disabled = false,
|
|
2128
|
+
unavailable = false,
|
|
2129
|
+
unavailableReason,
|
|
2130
|
+
name,
|
|
2131
|
+
description,
|
|
2132
|
+
largeControls = false,
|
|
2133
|
+
className = "",
|
|
2134
|
+
style
|
|
2135
|
+
}) {
|
|
2136
|
+
const isInteractive = !disabled && !unavailable;
|
|
2137
|
+
const toggleLabel = typeof label === "string" ? label : void 0;
|
|
2138
|
+
const handleClick = () => {
|
|
2139
|
+
if (isInteractive) {
|
|
2140
|
+
onChange(!checked);
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
return /* @__PURE__ */ jsx22(
|
|
2144
|
+
"div",
|
|
2145
|
+
{
|
|
2146
|
+
className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
2147
|
+
style,
|
|
2148
|
+
children: /* @__PURE__ */ jsx22(
|
|
2149
|
+
"button",
|
|
2150
|
+
{
|
|
2151
|
+
id,
|
|
2152
|
+
name,
|
|
2153
|
+
type: "button",
|
|
2154
|
+
className: `arap-toggle ${checked ? "arap-toggle-active" : ""}`,
|
|
2155
|
+
role: "switch",
|
|
2156
|
+
"aria-checked": checked,
|
|
2157
|
+
"aria-label": toggleLabel,
|
|
2158
|
+
"aria-disabled": !isInteractive,
|
|
2159
|
+
disabled: !isInteractive,
|
|
2160
|
+
onClick: handleClick,
|
|
2161
|
+
title: unavailableReason || description || toggleLabel,
|
|
2162
|
+
children: /* @__PURE__ */ jsx22(
|
|
2163
|
+
"span",
|
|
2164
|
+
{
|
|
2165
|
+
className: "arap-toggle-knob",
|
|
2166
|
+
style: {
|
|
2167
|
+
transform: checked ? largeControls ? "translateX(28px)" : "translateX(24px)" : "translateX(0)"
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
)
|
|
2171
|
+
}
|
|
2172
|
+
)
|
|
2173
|
+
}
|
|
2174
|
+
);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
// src/core/controls/ChoiceControl.tsx
|
|
2178
|
+
import { useCallback as useCallback4, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
2179
|
+
import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2180
|
+
function ChoiceControl({
|
|
2181
|
+
id,
|
|
2182
|
+
label,
|
|
2183
|
+
value,
|
|
2184
|
+
options,
|
|
2185
|
+
groups,
|
|
2186
|
+
onChange,
|
|
2187
|
+
disabled = false,
|
|
2188
|
+
largeControls = false,
|
|
2189
|
+
className = "",
|
|
2190
|
+
style,
|
|
2191
|
+
orientation = "horizontal"
|
|
2192
|
+
}) {
|
|
2193
|
+
const containerRef = useRef5(null);
|
|
2194
|
+
const allOptions = useMemo2(
|
|
2195
|
+
() => groups ? groups.flatMap((g) => g.options) : options || [],
|
|
2196
|
+
[groups, options]
|
|
2197
|
+
);
|
|
2198
|
+
const handleKeyDown = useCallback4(
|
|
2199
|
+
(e) => {
|
|
2200
|
+
if (disabled || allOptions.length === 0) return;
|
|
2201
|
+
const enabledOptions = allOptions.filter((opt) => !opt.disabled);
|
|
2202
|
+
const currentIndex = enabledOptions.findIndex(
|
|
2203
|
+
(opt) => opt.value === value
|
|
2204
|
+
);
|
|
2205
|
+
let nextIndex = -1;
|
|
2206
|
+
if (e.key === "ArrowRight" || e.key === "ArrowDown") {
|
|
2207
|
+
e.preventDefault();
|
|
2208
|
+
nextIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % enabledOptions.length;
|
|
2209
|
+
} else if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
|
|
2210
|
+
e.preventDefault();
|
|
2211
|
+
nextIndex = currentIndex === -1 ? enabledOptions.length - 1 : (currentIndex - 1 + enabledOptions.length) % enabledOptions.length;
|
|
2212
|
+
} else if (e.key === "Home") {
|
|
2213
|
+
e.preventDefault();
|
|
2214
|
+
nextIndex = 0;
|
|
2215
|
+
} else if (e.key === "End") {
|
|
2216
|
+
e.preventDefault();
|
|
2217
|
+
nextIndex = enabledOptions.length - 1;
|
|
2218
|
+
}
|
|
2219
|
+
if (nextIndex !== -1 && enabledOptions[nextIndex]) {
|
|
2220
|
+
onChange(enabledOptions[nextIndex].value);
|
|
2221
|
+
const buttons = containerRef.current?.querySelectorAll(
|
|
2222
|
+
"button[data-choice-value]"
|
|
2223
|
+
);
|
|
2224
|
+
const targetBtn = Array.from(buttons || []).find(
|
|
2225
|
+
(b) => b.getAttribute("data-choice-value") === String(enabledOptions[nextIndex].value)
|
|
2226
|
+
);
|
|
2227
|
+
targetBtn?.focus();
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
[allOptions, disabled, onChange, value]
|
|
2231
|
+
);
|
|
2232
|
+
const renderOptionButton = (opt) => {
|
|
2233
|
+
const isSelected = value === opt.value;
|
|
2234
|
+
const isOptionDisabled = disabled || Boolean(opt.disabled);
|
|
2235
|
+
return /* @__PURE__ */ jsxs21(
|
|
2236
|
+
"button",
|
|
2237
|
+
{
|
|
2238
|
+
type: "button",
|
|
2239
|
+
"data-choice-value": String(opt.value),
|
|
2240
|
+
className: `arap-segment ${isSelected ? "arap-segment-active" : ""}`,
|
|
2241
|
+
role: "radio",
|
|
2242
|
+
"aria-checked": isSelected,
|
|
2243
|
+
"aria-disabled": isOptionDisabled,
|
|
2244
|
+
disabled: isOptionDisabled,
|
|
2245
|
+
tabIndex: isSelected ? 0 : -1,
|
|
2246
|
+
onClick: () => !isOptionDisabled && onChange(opt.value),
|
|
2247
|
+
title: opt.description,
|
|
2248
|
+
children: [
|
|
2249
|
+
isSelected && /* @__PURE__ */ jsx23("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
2250
|
+
/* @__PURE__ */ jsx23("span", { children: opt.label }),
|
|
2251
|
+
opt.badge && /* @__PURE__ */ jsx23("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
|
|
2252
|
+
]
|
|
2253
|
+
},
|
|
2254
|
+
String(opt.value)
|
|
2255
|
+
);
|
|
2256
|
+
};
|
|
2257
|
+
return /* @__PURE__ */ jsx23(
|
|
2258
|
+
"div",
|
|
2259
|
+
{
|
|
2260
|
+
ref: containerRef,
|
|
2261
|
+
id,
|
|
2262
|
+
role: "radiogroup",
|
|
2263
|
+
"aria-label": label,
|
|
2264
|
+
"aria-orientation": orientation,
|
|
2265
|
+
className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
2266
|
+
style,
|
|
2267
|
+
onKeyDown: handleKeyDown,
|
|
2268
|
+
children: groups ? groups.map((group) => /* @__PURE__ */ jsxs21(
|
|
2269
|
+
"div",
|
|
2270
|
+
{
|
|
2271
|
+
className: "arap-choice-group",
|
|
2272
|
+
role: "group",
|
|
2273
|
+
"aria-label": group.label,
|
|
2274
|
+
children: [
|
|
2275
|
+
/* @__PURE__ */ jsx23("span", { className: "arap-choice-group-title", children: group.label }),
|
|
2276
|
+
/* @__PURE__ */ jsx23("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
|
|
2277
|
+
]
|
|
2278
|
+
},
|
|
2279
|
+
group.label
|
|
2280
|
+
)) : options?.map(renderOptionButton)
|
|
2281
|
+
}
|
|
2282
|
+
);
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
// src/core/controls/StepperControl.tsx
|
|
2286
|
+
import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2287
|
+
function StepperControl({
|
|
2288
|
+
id,
|
|
2289
|
+
label,
|
|
2290
|
+
value,
|
|
2291
|
+
min,
|
|
2292
|
+
max,
|
|
2293
|
+
step,
|
|
2294
|
+
unit = "%",
|
|
2295
|
+
formatValue,
|
|
2296
|
+
onChange,
|
|
2297
|
+
showSlider = false,
|
|
2298
|
+
disabled = false,
|
|
2299
|
+
largeControls = false,
|
|
2300
|
+
className = "",
|
|
2301
|
+
style
|
|
2302
|
+
}) {
|
|
2303
|
+
const displayValue = formatValue ? formatValue(value) : `${value}${unit}`;
|
|
2304
|
+
const isMin = value <= min;
|
|
2305
|
+
const isMax = value >= max;
|
|
2306
|
+
const handleDecrement = () => {
|
|
2307
|
+
if (!disabled && !isMin) {
|
|
2308
|
+
onChange(Math.max(min, Number((value - step).toFixed(2))));
|
|
2309
|
+
}
|
|
2310
|
+
};
|
|
2311
|
+
const handleIncrement = () => {
|
|
2312
|
+
if (!disabled && !isMax) {
|
|
2313
|
+
onChange(Math.min(max, Number((value + step).toFixed(2))));
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2316
|
+
return /* @__PURE__ */ jsxs22(
|
|
2317
|
+
"div",
|
|
2318
|
+
{
|
|
2319
|
+
id,
|
|
2320
|
+
className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
2321
|
+
style,
|
|
2322
|
+
children: [
|
|
2323
|
+
/* @__PURE__ */ jsxs22("div", { className: "arap-controls", children: [
|
|
2324
|
+
/* @__PURE__ */ jsx24(
|
|
2325
|
+
"button",
|
|
2326
|
+
{
|
|
2327
|
+
type: "button",
|
|
2328
|
+
className: "arap-btn-sm",
|
|
2329
|
+
onClick: handleDecrement,
|
|
2330
|
+
disabled: disabled || isMin,
|
|
2331
|
+
"aria-label": `Decrease ${label}`,
|
|
2332
|
+
children: "\u2212"
|
|
2333
|
+
}
|
|
2334
|
+
),
|
|
2335
|
+
/* @__PURE__ */ jsx24("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
|
|
2336
|
+
/* @__PURE__ */ jsx24(
|
|
2337
|
+
"button",
|
|
2338
|
+
{
|
|
2339
|
+
type: "button",
|
|
2340
|
+
className: "arap-btn-sm",
|
|
2341
|
+
onClick: handleIncrement,
|
|
2342
|
+
disabled: disabled || isMax,
|
|
2343
|
+
"aria-label": `Increase ${label}`,
|
|
2344
|
+
children: "+"
|
|
2345
|
+
}
|
|
2346
|
+
)
|
|
2347
|
+
] }),
|
|
2348
|
+
showSlider && /* @__PURE__ */ jsx24("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx24(
|
|
2349
|
+
"input",
|
|
2350
|
+
{
|
|
2351
|
+
type: "range",
|
|
2352
|
+
min,
|
|
2353
|
+
max,
|
|
2354
|
+
step,
|
|
2355
|
+
value,
|
|
2356
|
+
disabled,
|
|
2357
|
+
"aria-label": label,
|
|
2358
|
+
"aria-valuemin": min,
|
|
2359
|
+
"aria-valuemax": max,
|
|
2360
|
+
"aria-valuenow": value,
|
|
2361
|
+
"aria-valuetext": displayValue,
|
|
2362
|
+
onChange: (e) => onChange(Number(e.target.value)),
|
|
2363
|
+
className: "arap-slider"
|
|
2364
|
+
}
|
|
2365
|
+
) })
|
|
2366
|
+
]
|
|
2367
|
+
}
|
|
2368
|
+
);
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
// src/core/controls/FeatureCard.tsx
|
|
2372
|
+
import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2373
|
+
function FeatureCard({
|
|
2374
|
+
id,
|
|
2375
|
+
featureKey,
|
|
2376
|
+
icon,
|
|
2377
|
+
title,
|
|
2378
|
+
description,
|
|
2379
|
+
statusBadge,
|
|
2380
|
+
status = "idle",
|
|
2381
|
+
errorMessage,
|
|
2382
|
+
unavailableMessage,
|
|
2383
|
+
permissionMessage,
|
|
2384
|
+
onRequestPermission,
|
|
2385
|
+
children,
|
|
2386
|
+
className = "",
|
|
2387
|
+
style,
|
|
2388
|
+
largeControls = false
|
|
2389
|
+
}) {
|
|
2390
|
+
const cardTitle = typeof title === "string" ? title : void 0;
|
|
2391
|
+
return /* @__PURE__ */ jsxs23(
|
|
2392
|
+
"div",
|
|
2393
|
+
{
|
|
2394
|
+
id,
|
|
2395
|
+
role: "group",
|
|
2396
|
+
"aria-label": cardTitle,
|
|
2397
|
+
className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
2398
|
+
style,
|
|
2399
|
+
children: [
|
|
2400
|
+
/* @__PURE__ */ jsxs23("div", { className: "arap-card-header", children: [
|
|
2401
|
+
/* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
|
|
2402
|
+
icon ?? (featureKey ? /* @__PURE__ */ jsx25(FeatureIcon, { name: featureKey }) : null),
|
|
2403
|
+
/* @__PURE__ */ jsx25("span", { className: "arap-card-title", children: title })
|
|
2404
|
+
] }),
|
|
2405
|
+
statusBadge && /* @__PURE__ */ jsx25("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
|
|
2406
|
+
] }),
|
|
2407
|
+
description && /* @__PURE__ */ jsx25("p", { className: "arap-card-desc", children: description }),
|
|
2408
|
+
status === "error" && errorMessage && /* @__PURE__ */ jsxs23("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
|
|
2409
|
+
/* @__PURE__ */ jsx25("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
|
|
2410
|
+
/* @__PURE__ */ jsx25("span", { children: errorMessage })
|
|
2411
|
+
] }),
|
|
2412
|
+
status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs23("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
|
|
2413
|
+
/* @__PURE__ */ jsx25("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
|
|
2414
|
+
/* @__PURE__ */ jsx25("span", { children: unavailableMessage })
|
|
2415
|
+
] }),
|
|
2416
|
+
status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs23("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
|
|
2417
|
+
/* @__PURE__ */ jsx25("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
|
|
2418
|
+
/* @__PURE__ */ jsxs23("div", { className: "arap-permission-content", children: [
|
|
2419
|
+
/* @__PURE__ */ jsx25("span", { children: permissionMessage }),
|
|
2420
|
+
onRequestPermission && /* @__PURE__ */ jsx25(
|
|
2421
|
+
"button",
|
|
2422
|
+
{
|
|
2423
|
+
type: "button",
|
|
2424
|
+
className: "arap-permission-btn",
|
|
2425
|
+
onClick: onRequestPermission,
|
|
2426
|
+
children: "Allow permission"
|
|
2427
|
+
}
|
|
2428
|
+
)
|
|
2429
|
+
] })
|
|
2430
|
+
] }),
|
|
2431
|
+
/* @__PURE__ */ jsx25("div", { className: "arap-card-content", children })
|
|
2432
|
+
]
|
|
2433
|
+
}
|
|
2434
|
+
);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
// src/core/controls/FeatureStatusState.tsx
|
|
2438
|
+
import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2439
|
+
function SearchCount({
|
|
2440
|
+
totalCount,
|
|
2441
|
+
matchedCount,
|
|
2442
|
+
query,
|
|
2443
|
+
className = "",
|
|
2444
|
+
style
|
|
2445
|
+
}) {
|
|
2446
|
+
const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
|
|
2447
|
+
return /* @__PURE__ */ jsx26(
|
|
2448
|
+
"div",
|
|
2449
|
+
{
|
|
2450
|
+
role: "status",
|
|
2451
|
+
"aria-live": "polite",
|
|
2452
|
+
className: `arap-search-count ${className}`,
|
|
2453
|
+
style,
|
|
2454
|
+
children: text
|
|
2455
|
+
}
|
|
2456
|
+
);
|
|
2457
|
+
}
|
|
2458
|
+
function EmptyState({
|
|
2459
|
+
title = "No matching tools found",
|
|
2460
|
+
description = "Try adjusting your search query or reset filters.",
|
|
2461
|
+
actionLabel = "Clear search",
|
|
2462
|
+
onAction,
|
|
2463
|
+
icon,
|
|
2464
|
+
className = "",
|
|
2465
|
+
style
|
|
2466
|
+
}) {
|
|
2467
|
+
return /* @__PURE__ */ jsxs24(
|
|
2468
|
+
"div",
|
|
2469
|
+
{
|
|
2470
|
+
role: "status",
|
|
2471
|
+
className: `arap-empty-state ${className}`,
|
|
2472
|
+
style,
|
|
2473
|
+
children: [
|
|
2474
|
+
/* @__PURE__ */ jsx26("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
|
|
2475
|
+
/* @__PURE__ */ jsx26("h3", { className: "arap-empty-title", children: title }),
|
|
2476
|
+
/* @__PURE__ */ jsx26("p", { className: "arap-empty-desc", children: description }),
|
|
2477
|
+
onAction && /* @__PURE__ */ jsx26("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
|
|
2478
|
+
]
|
|
2479
|
+
}
|
|
2480
|
+
);
|
|
2481
|
+
}
|
|
2482
|
+
function ErrorState({
|
|
2483
|
+
title = "Something went wrong",
|
|
2484
|
+
message,
|
|
2485
|
+
onRetry,
|
|
2486
|
+
retryLabel = "Try again",
|
|
2487
|
+
className = "",
|
|
2488
|
+
style
|
|
2489
|
+
}) {
|
|
2490
|
+
return /* @__PURE__ */ jsxs24(
|
|
2491
|
+
"div",
|
|
2492
|
+
{
|
|
2493
|
+
role: "alert",
|
|
2494
|
+
className: `arap-error-state arap-card-alert arap-card-error ${className}`,
|
|
2495
|
+
style,
|
|
2496
|
+
children: [
|
|
2497
|
+
/* @__PURE__ */ jsx26("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
|
|
2498
|
+
/* @__PURE__ */ jsxs24("div", { className: "arap-error-content", children: [
|
|
2499
|
+
title && /* @__PURE__ */ jsx26("h4", { className: "arap-error-title", children: title }),
|
|
2500
|
+
/* @__PURE__ */ jsx26("p", { className: "arap-error-message", children: message }),
|
|
2501
|
+
onRetry && /* @__PURE__ */ jsx26("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
|
|
2502
|
+
] })
|
|
2503
|
+
]
|
|
2504
|
+
}
|
|
2505
|
+
);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
// src/core/controls/ProfilePreviewCard.tsx
|
|
2509
|
+
import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2510
|
+
function ProfilePreviewCard({
|
|
2511
|
+
profile,
|
|
2512
|
+
isActive,
|
|
2513
|
+
onApply,
|
|
2514
|
+
onRevert,
|
|
2515
|
+
largeControls = false,
|
|
2516
|
+
className = "",
|
|
2517
|
+
style
|
|
2518
|
+
}) {
|
|
2519
|
+
const affectedKeys = Object.keys(
|
|
2520
|
+
profile.settings
|
|
2521
|
+
);
|
|
2522
|
+
const formatKeyName = (key) => {
|
|
2523
|
+
switch (key) {
|
|
2524
|
+
case "fontScale":
|
|
2525
|
+
return "Font Size";
|
|
2526
|
+
case "lineHeight":
|
|
2527
|
+
return "Line Height";
|
|
2528
|
+
case "contrastMode":
|
|
2529
|
+
return "Contrast";
|
|
2530
|
+
case "reduceMotion":
|
|
2531
|
+
return "Reduce Motion";
|
|
2532
|
+
case "textAlign":
|
|
2533
|
+
return "Text Align";
|
|
2534
|
+
case "highlightLinks":
|
|
2535
|
+
return "Highlight Links";
|
|
2536
|
+
case "highlightFocus":
|
|
2537
|
+
return "Highlight Focus";
|
|
2538
|
+
case "cursorSize":
|
|
2539
|
+
return "Cursor Size";
|
|
2540
|
+
case "readerMode":
|
|
2541
|
+
return "Reading Mode";
|
|
2542
|
+
case "saturation":
|
|
2543
|
+
return "Saturation";
|
|
2544
|
+
case "hideDecorativeImages":
|
|
2545
|
+
return "Hide Images";
|
|
2546
|
+
default:
|
|
2547
|
+
return key.replace(/([A-Z])/g, " $1").trim();
|
|
2548
|
+
}
|
|
2549
|
+
};
|
|
2550
|
+
const formatSettingValue = (key, val) => {
|
|
2551
|
+
if (typeof val === "boolean") return val ? "On" : "Off";
|
|
2552
|
+
if (key === "fontScale" && typeof val === "number")
|
|
2553
|
+
return `${Math.round(val * 100)}%`;
|
|
2554
|
+
if (key === "lineHeight" && typeof val === "number")
|
|
2555
|
+
return `${Math.round(val * 100)}%`;
|
|
2556
|
+
if (val === null || val === void 0) return "Original";
|
|
2557
|
+
return String(val);
|
|
2558
|
+
};
|
|
2559
|
+
return /* @__PURE__ */ jsxs25(
|
|
2560
|
+
"div",
|
|
2561
|
+
{
|
|
2562
|
+
role: "group",
|
|
2563
|
+
"aria-label": `${profile.label} profile`,
|
|
2564
|
+
className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
2565
|
+
style,
|
|
2566
|
+
children: [
|
|
2567
|
+
/* @__PURE__ */ jsxs25("div", { className: "arap-profile-header", children: [
|
|
2568
|
+
/* @__PURE__ */ jsxs25("div", { className: "arap-profile-title-row", children: [
|
|
2569
|
+
/* @__PURE__ */ jsx27("h4", { className: "arap-profile-title", children: profile.label }),
|
|
2570
|
+
isActive && /* @__PURE__ */ jsx27(
|
|
2571
|
+
"span",
|
|
2572
|
+
{
|
|
2573
|
+
className: "arap-profile-active-badge",
|
|
2574
|
+
"aria-label": "Active profile",
|
|
2575
|
+
children: "\u2713 Active"
|
|
2576
|
+
}
|
|
2577
|
+
)
|
|
2578
|
+
] }),
|
|
2579
|
+
/* @__PURE__ */ jsx27("p", { className: "arap-profile-desc", children: profile.description })
|
|
2580
|
+
] }),
|
|
2581
|
+
/* @__PURE__ */ jsxs25("div", { className: "arap-profile-affected", children: [
|
|
2582
|
+
/* @__PURE__ */ jsx27("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
|
|
2583
|
+
/* @__PURE__ */ jsx27("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
|
|
2584
|
+
const val = profile.settings[key];
|
|
2585
|
+
return /* @__PURE__ */ jsxs25("span", { className: "arap-profile-chip", children: [
|
|
2586
|
+
/* @__PURE__ */ jsxs25("strong", { children: [
|
|
2587
|
+
formatKeyName(key),
|
|
2588
|
+
":"
|
|
2589
|
+
] }),
|
|
2590
|
+
" ",
|
|
2591
|
+
formatSettingValue(key, val)
|
|
2592
|
+
] }, key);
|
|
2593
|
+
}) })
|
|
2594
|
+
] }),
|
|
2595
|
+
/* @__PURE__ */ jsx27("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx27(
|
|
2596
|
+
"button",
|
|
2597
|
+
{
|
|
2598
|
+
type: "button",
|
|
2599
|
+
className: "arap-profile-revert-btn",
|
|
2600
|
+
onClick: onRevert,
|
|
2601
|
+
"aria-label": `Revert ${profile.label} profile`,
|
|
2602
|
+
children: "Revert to custom settings"
|
|
2603
|
+
}
|
|
2604
|
+
) : /* @__PURE__ */ jsx27(
|
|
2605
|
+
"button",
|
|
2606
|
+
{
|
|
2607
|
+
type: "button",
|
|
2608
|
+
className: "arap-profile-apply-btn",
|
|
2609
|
+
onClick: () => onApply(profile),
|
|
2610
|
+
"aria-label": `Apply ${profile.label} profile`,
|
|
2611
|
+
children: "Apply Profile"
|
|
2612
|
+
}
|
|
2613
|
+
) })
|
|
2614
|
+
]
|
|
2615
|
+
}
|
|
2616
|
+
);
|
|
2617
|
+
}
|
|
2119
2618
|
export {
|
|
2120
2619
|
AccessibilityButton,
|
|
2121
2620
|
AccessibilityContext,
|
|
2122
2621
|
AccessibilityList,
|
|
2123
2622
|
AccessibilityPlugin,
|
|
2124
2623
|
BigCursorController,
|
|
2624
|
+
ChoiceControl,
|
|
2125
2625
|
ContrastController,
|
|
2126
2626
|
DEFAULT_PREFERENCES,
|
|
2627
|
+
EmptyState,
|
|
2628
|
+
ErrorState,
|
|
2629
|
+
FeatureCard,
|
|
2127
2630
|
FontSizeController,
|
|
2128
2631
|
GrayscaleController,
|
|
2129
2632
|
HideImagesController,
|
|
@@ -2133,11 +2636,15 @@ export {
|
|
|
2133
2636
|
LineHeightController,
|
|
2134
2637
|
LinkHighlightController,
|
|
2135
2638
|
PROFILE_DEFINITIONS,
|
|
2639
|
+
ProfilePreviewCard,
|
|
2136
2640
|
ReadingGuideController,
|
|
2137
2641
|
ReadingMaskController,
|
|
2138
2642
|
ResetController,
|
|
2139
2643
|
SaturationController,
|
|
2644
|
+
SearchCount,
|
|
2645
|
+
StepperControl,
|
|
2140
2646
|
TextAlignController,
|
|
2647
|
+
ToggleControl,
|
|
2141
2648
|
createInitialPreferencesState,
|
|
2142
2649
|
enLocale,
|
|
2143
2650
|
isRtlLocale,
|