accessibility-plugin-react 2.7.0 → 2.8.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/README.md +3 -0
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +514 -354
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +409 -253
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +54 -0
- package/docs/API.md +3 -3
- package/docs/BUILD_AND_RELEASE_PLAN.md +1 -1
- package/docs/FEATURES.md +3 -0
- package/docs/LINKS_AND_FOCUS.md +65 -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-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px 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.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\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.arap-skip-to-main {\n position: fixed;\n top: 12px;\n left: 16px;\n z-index: 2147483647;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n font-family: inherit;\n font-size: 0.9375rem;\n font-weight: 600;\n text-decoration: none;\n color: var(--arap-accent, #008060);\n background: var(--arap-surface, #ffffff);\n border-radius: 8px;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n}\n.arap-skip-to-main:focus,\n.arap-skip-to-main:focus-visible {\n width: auto;\n height: auto;\n min-height: 44px;\n margin: 0;\n padding: 10px 18px;\n clip-path: none;\n overflow: visible;\n white-space: normal;\n pointer-events: auto;\n border: 2px solid var(--arap-accent, #008060);\n outline: 3px solid var(--arap-accent, #008060);\n outline-offset: 3px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n@media (forced-colors: active) {\n .arap-skip-to-main {\n background: Canvas;\n color: CanvasText;\n border-color: Highlight;\n }\n .arap-skip-to-main:focus,\n .arap-skip-to-main:focus-visible {\n outline: 3px solid Highlight;\n }\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-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px 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.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
|
|
28
28
|
|
|
29
29
|
// src/core/AccessibilityPlugin.tsx
|
|
30
30
|
import {
|
|
@@ -324,6 +324,7 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
324
324
|
validate: oneOf(
|
|
325
325
|
false,
|
|
326
326
|
true,
|
|
327
|
+
"underline",
|
|
327
328
|
"yellow-on-black",
|
|
328
329
|
"blue-on-yellow",
|
|
329
330
|
"black-on-white"
|
|
@@ -337,7 +338,9 @@ for (const key of [
|
|
|
337
338
|
"hideVideos",
|
|
338
339
|
"bigCursor",
|
|
339
340
|
"readingMask",
|
|
340
|
-
"readingGuide"
|
|
341
|
+
"readingGuide",
|
|
342
|
+
"highlightFocus",
|
|
343
|
+
"focusHighlight"
|
|
341
344
|
]) {
|
|
342
345
|
builtins[key] = {
|
|
343
346
|
defaultValue: false,
|
|
@@ -1002,6 +1005,40 @@ function applyPage(values) {
|
|
|
1002
1005
|
}
|
|
1003
1006
|
}
|
|
1004
1007
|
}
|
|
1008
|
+
if (values.highlightFocus || values.focusHighlight) {
|
|
1009
|
+
const FOCUS_STYLE_ID = "arap-focus-highlight-style";
|
|
1010
|
+
let styleEl = document.getElementById(
|
|
1011
|
+
FOCUS_STYLE_ID
|
|
1012
|
+
);
|
|
1013
|
+
if (!styleEl) {
|
|
1014
|
+
styleEl = document.createElement("style");
|
|
1015
|
+
styleEl.id = FOCUS_STYLE_ID;
|
|
1016
|
+
styleEl.dataset.arapUi = "";
|
|
1017
|
+
styleEl.textContent = `
|
|
1018
|
+
*:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
|
|
1019
|
+
outline: 3px solid #2563eb !important;
|
|
1020
|
+
outline-offset: 3px !important;
|
|
1021
|
+
box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
|
|
1022
|
+
}
|
|
1023
|
+
@media (forced-colors: active) {
|
|
1024
|
+
*:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
|
|
1025
|
+
outline: 3px solid Highlight !important;
|
|
1026
|
+
outline-offset: 3px !important;
|
|
1027
|
+
box-shadow: none !important;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
*:disabled:focus-visible,
|
|
1031
|
+
*[aria-disabled="true"]:focus-visible {
|
|
1032
|
+
outline: none !important;
|
|
1033
|
+
box-shadow: none !important;
|
|
1034
|
+
}
|
|
1035
|
+
`;
|
|
1036
|
+
document.head.appendChild(styleEl);
|
|
1037
|
+
undo.push(() => {
|
|
1038
|
+
styleEl?.remove();
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1005
1042
|
for (const el of elements) {
|
|
1006
1043
|
if (values.bigCursor) set(el, "cursor", cursor);
|
|
1007
1044
|
if (values.hideImages) {
|
|
@@ -1017,14 +1054,26 @@ function applyPage(values) {
|
|
|
1017
1054
|
set(el, "color", colors[0]);
|
|
1018
1055
|
set(el, "background-color", colors[1]);
|
|
1019
1056
|
}
|
|
1020
|
-
if (values.linkHighlight && el.matches("a[href]")) {
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1057
|
+
if (values.linkHighlight && el.matches("a[href]") && !el.closest("[data-arap-ui]")) {
|
|
1058
|
+
const isDisabled = el.getAttribute("aria-disabled") === "true" || el.hasAttribute("disabled") || el.classList.contains("disabled");
|
|
1059
|
+
if (!isDisabled) {
|
|
1060
|
+
if (isForcedColorsActive()) {
|
|
1061
|
+
set(el, "color", "LinkText");
|
|
1062
|
+
set(el, "text-decoration", "underline");
|
|
1063
|
+
set(el, "text-decoration-thickness", "2px");
|
|
1064
|
+
set(el, "text-underline-offset", "3px");
|
|
1065
|
+
} else {
|
|
1066
|
+
const colors2 = palette[String(values.linkHighlight)] ?? [
|
|
1067
|
+
"#111827",
|
|
1068
|
+
"#fef08a"
|
|
1069
|
+
];
|
|
1070
|
+
set(el, "color", colors2[0]);
|
|
1071
|
+
set(el, "background-color", colors2[1]);
|
|
1072
|
+
set(el, "text-decoration", "underline");
|
|
1073
|
+
set(el, "text-decoration-thickness", "2px");
|
|
1074
|
+
set(el, "text-underline-offset", "3px");
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1028
1077
|
}
|
|
1029
1078
|
}
|
|
1030
1079
|
return () => {
|
|
@@ -1287,7 +1336,7 @@ function AccessibilityPlugin({
|
|
|
1287
1336
|
}
|
|
1288
1337
|
|
|
1289
1338
|
// src/core/AccessibilityButton.tsx
|
|
1290
|
-
import { useContext, useRef as useRef2, useState as useState2 } from "react";
|
|
1339
|
+
import { useContext as useContext2, useRef as useRef2, useState as useState2 } from "react";
|
|
1291
1340
|
|
|
1292
1341
|
// src/core/WidgetPortal.tsx
|
|
1293
1342
|
import { useSyncExternalStore as useSyncExternalStore3 } from "react";
|
|
@@ -1309,12 +1358,16 @@ function WidgetPortal({ children }) {
|
|
|
1309
1358
|
) : null;
|
|
1310
1359
|
}
|
|
1311
1360
|
|
|
1361
|
+
// src/core/SkipToMainLink.tsx
|
|
1362
|
+
import { useContext, useSyncExternalStore as useSyncExternalStore4 } from "react";
|
|
1363
|
+
|
|
1312
1364
|
// src/core/i18n/en.ts
|
|
1313
1365
|
var enLocale = Object.freeze({
|
|
1314
1366
|
title: "Accessibility settings",
|
|
1315
1367
|
description: "Adjust your reading experience",
|
|
1316
1368
|
closeLabel: "Close accessibility settings",
|
|
1317
1369
|
skipToActions: "Jump to quick actions",
|
|
1370
|
+
skipToMain: "Skip to main content",
|
|
1318
1371
|
toolsLabel: "Accessibility tools",
|
|
1319
1372
|
quickActionsLabel: "Quick actions",
|
|
1320
1373
|
resetLabel: "Reset all accessibility settings",
|
|
@@ -1380,8 +1433,69 @@ function resolveLocaleStrings(localeProp) {
|
|
|
1380
1433
|
return enLocale;
|
|
1381
1434
|
}
|
|
1382
1435
|
|
|
1436
|
+
// src/core/SkipToMainLink.tsx
|
|
1437
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1438
|
+
function findMainLandmark() {
|
|
1439
|
+
if (typeof document === "undefined") return null;
|
|
1440
|
+
const main = document.querySelector("main, [role='main']");
|
|
1441
|
+
return main instanceof HTMLElement ? main : null;
|
|
1442
|
+
}
|
|
1443
|
+
function subscribeLandmark(callback) {
|
|
1444
|
+
if (typeof MutationObserver === "undefined" || typeof document === "undefined" || !document.body) {
|
|
1445
|
+
return () => {
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
const observer = new MutationObserver(callback);
|
|
1449
|
+
observer.observe(document.body, { childList: true, subtree: true });
|
|
1450
|
+
return () => observer.disconnect();
|
|
1451
|
+
}
|
|
1452
|
+
function getMainTargetId() {
|
|
1453
|
+
if (typeof document === "undefined") return null;
|
|
1454
|
+
const main = findMainLandmark();
|
|
1455
|
+
if (main) {
|
|
1456
|
+
if (!main.id) {
|
|
1457
|
+
main.id = "arap-main-content";
|
|
1458
|
+
}
|
|
1459
|
+
if (!main.hasAttribute("tabindex")) {
|
|
1460
|
+
main.setAttribute("tabindex", "-1");
|
|
1461
|
+
}
|
|
1462
|
+
return main.id;
|
|
1463
|
+
}
|
|
1464
|
+
return null;
|
|
1465
|
+
}
|
|
1466
|
+
function SkipToMainLink({ className = "", label }) {
|
|
1467
|
+
const ctx = useContext(AccessibilityContext);
|
|
1468
|
+
const strings = resolveLocaleStrings(ctx?.locale);
|
|
1469
|
+
const text = label ?? strings.skipToMain ?? "Skip to main content";
|
|
1470
|
+
const targetId = useSyncExternalStore4(
|
|
1471
|
+
subscribeLandmark,
|
|
1472
|
+
getMainTargetId,
|
|
1473
|
+
() => null
|
|
1474
|
+
);
|
|
1475
|
+
if (!targetId) return null;
|
|
1476
|
+
return /* @__PURE__ */ jsx3(
|
|
1477
|
+
"a",
|
|
1478
|
+
{
|
|
1479
|
+
href: `#${targetId}`,
|
|
1480
|
+
className: `arap-skip-to-main ${className}`,
|
|
1481
|
+
onClick: (e) => {
|
|
1482
|
+
const main = document.getElementById(targetId);
|
|
1483
|
+
if (main) {
|
|
1484
|
+
e.preventDefault();
|
|
1485
|
+
if (!main.hasAttribute("tabindex")) {
|
|
1486
|
+
main.setAttribute("tabindex", "-1");
|
|
1487
|
+
}
|
|
1488
|
+
main.focus();
|
|
1489
|
+
main.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
children: text
|
|
1493
|
+
}
|
|
1494
|
+
);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1383
1497
|
// src/core/AccessibilityButton.tsx
|
|
1384
|
-
import { jsx as
|
|
1498
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1385
1499
|
function AccessibilityButton({
|
|
1386
1500
|
icon,
|
|
1387
1501
|
draggable = true,
|
|
@@ -1391,7 +1505,7 @@ function AccessibilityButton({
|
|
|
1391
1505
|
style,
|
|
1392
1506
|
largeControls
|
|
1393
1507
|
}) {
|
|
1394
|
-
const ctx =
|
|
1508
|
+
const ctx = useContext2(AccessibilityContext);
|
|
1395
1509
|
if (!ctx)
|
|
1396
1510
|
throw new Error(
|
|
1397
1511
|
"AccessibilityButton must be used within an <AccessibilityPlugin> provider."
|
|
@@ -1407,6 +1521,7 @@ function AccessibilityButton({
|
|
|
1407
1521
|
const placement = preview ?? ctx.widgetPlacement;
|
|
1408
1522
|
const corner = placement?.kind === "corner" ? placement.corner : defaultCorner(ctx.position);
|
|
1409
1523
|
return /* @__PURE__ */ jsxs2(WidgetPortal, { children: [
|
|
1524
|
+
/* @__PURE__ */ jsx4(SkipToMainLink, {}),
|
|
1410
1525
|
/* @__PURE__ */ jsxs2(
|
|
1411
1526
|
"button",
|
|
1412
1527
|
{
|
|
@@ -1505,7 +1620,7 @@ function AccessibilityButton({
|
|
|
1505
1620
|
"aria-expanded": ctx.isOpen,
|
|
1506
1621
|
"aria-controls": ctx.panelId,
|
|
1507
1622
|
children: [
|
|
1508
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ jsx4("span", { "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsxs2(
|
|
1509
1624
|
"svg",
|
|
1510
1625
|
{
|
|
1511
1626
|
width: "28",
|
|
@@ -1515,8 +1630,8 @@ function AccessibilityButton({
|
|
|
1515
1630
|
stroke: "currentColor",
|
|
1516
1631
|
strokeWidth: "2",
|
|
1517
1632
|
children: [
|
|
1518
|
-
/* @__PURE__ */
|
|
1519
|
-
/* @__PURE__ */
|
|
1633
|
+
/* @__PURE__ */ jsx4("circle", { cx: "12", cy: "4", r: "2" }),
|
|
1634
|
+
/* @__PURE__ */ jsx4("path", { d: "M4 9l8 2 8-2M12 11v5m0 0-5 6m5-6 5 6" })
|
|
1520
1635
|
]
|
|
1521
1636
|
}
|
|
1522
1637
|
) }),
|
|
@@ -1527,7 +1642,7 @@ function AccessibilityButton({
|
|
|
1527
1642
|
]
|
|
1528
1643
|
}
|
|
1529
1644
|
),
|
|
1530
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ jsx4("span", { className: "arap-sr-only", role: "status", children: ctx.widgetPlacement?.kind === "point" ? strings.formatPointPosition ? strings.formatPointPosition(
|
|
1531
1646
|
ctx.widgetPlacement.x,
|
|
1532
1647
|
ctx.widgetPlacement.y
|
|
1533
1648
|
) : `Button position: ${Math.round(ctx.widgetPlacement.x * 100)}% horizontally, ${Math.round(ctx.widgetPlacement.y * 100)}% vertically.` : strings.formatCornerPosition ? strings.formatCornerPosition(corner) : `Button position: ${corner.split("-").join(" ")}.` })
|
|
@@ -1535,17 +1650,17 @@ function AccessibilityButton({
|
|
|
1535
1650
|
}
|
|
1536
1651
|
|
|
1537
1652
|
// src/core/AccessibilityList.tsx
|
|
1538
|
-
import { useContext as
|
|
1653
|
+
import { useContext as useContext4, useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
|
|
1539
1654
|
|
|
1540
1655
|
// src/core/PanelActionsContext.ts
|
|
1541
1656
|
import { createContext as createContext2 } from "react";
|
|
1542
1657
|
var PanelActionsContext = createContext2(null);
|
|
1543
1658
|
|
|
1544
1659
|
// src/core/PositionControls.tsx
|
|
1545
|
-
import { useContext as
|
|
1546
|
-
import { jsx as
|
|
1660
|
+
import { useContext as useContext3, useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
|
|
1661
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1547
1662
|
function PositionControls() {
|
|
1548
|
-
const ctx =
|
|
1663
|
+
const ctx = useContext3(AccessibilityContext);
|
|
1549
1664
|
const strings = resolveLocaleStrings(ctx.locale);
|
|
1550
1665
|
const [open, setOpen] = useState3(false);
|
|
1551
1666
|
const select = useRef3(null);
|
|
@@ -1566,7 +1681,7 @@ function PositionControls() {
|
|
|
1566
1681
|
);
|
|
1567
1682
|
};
|
|
1568
1683
|
return /* @__PURE__ */ jsxs3("div", { className: "arap-position-tools", children: [
|
|
1569
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ jsx5(
|
|
1570
1685
|
"button",
|
|
1571
1686
|
{
|
|
1572
1687
|
ref: opener,
|
|
@@ -1596,7 +1711,7 @@ function PositionControls() {
|
|
|
1596
1711
|
}
|
|
1597
1712
|
},
|
|
1598
1713
|
children: [
|
|
1599
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ jsx5(
|
|
1600
1715
|
"label",
|
|
1601
1716
|
{
|
|
1602
1717
|
className: "arap-position-label",
|
|
@@ -1616,17 +1731,17 @@ function PositionControls() {
|
|
|
1616
1731
|
corner: event.target.value
|
|
1617
1732
|
}),
|
|
1618
1733
|
children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
corners.map((corner) => /* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ jsx5("option", { value: "custom", disabled: true, children: strings.customPosition }),
|
|
1735
|
+
corners.map((corner) => /* @__PURE__ */ jsx5("option", { value: corner, children: corner.split("-").join(" ") }, corner))
|
|
1621
1736
|
]
|
|
1622
1737
|
}
|
|
1623
1738
|
),
|
|
1624
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ jsx5("div", { className: "arap-position-arrows", children: [
|
|
1625
1740
|
["left", -20, 0, "\u2190", strings.moveLeft],
|
|
1626
1741
|
["up", 0, -20, "\u2191", strings.moveUp],
|
|
1627
1742
|
["down", 0, 20, "\u2193", strings.moveDown],
|
|
1628
1743
|
["right", 20, 0, "\u2192", strings.moveRight]
|
|
1629
|
-
].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */
|
|
1744
|
+
].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */ jsx5(
|
|
1630
1745
|
"button",
|
|
1631
1746
|
{
|
|
1632
1747
|
type: "button",
|
|
@@ -1639,7 +1754,7 @@ function PositionControls() {
|
|
|
1639
1754
|
},
|
|
1640
1755
|
direction
|
|
1641
1756
|
)) }),
|
|
1642
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ jsx5(
|
|
1643
1758
|
"button",
|
|
1644
1759
|
{
|
|
1645
1760
|
className: "arap-position-default",
|
|
@@ -1651,7 +1766,7 @@ function PositionControls() {
|
|
|
1651
1766
|
children: strings.resetPosition
|
|
1652
1767
|
}
|
|
1653
1768
|
),
|
|
1654
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ jsx5("button", { className: "arap-position-default", type: "button", onClick: close, children: strings.doneMoving })
|
|
1655
1770
|
]
|
|
1656
1771
|
}
|
|
1657
1772
|
)
|
|
@@ -1659,7 +1774,7 @@ function PositionControls() {
|
|
|
1659
1774
|
}
|
|
1660
1775
|
|
|
1661
1776
|
// src/core/AccessibilityList.tsx
|
|
1662
|
-
import { jsx as
|
|
1777
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1663
1778
|
function Panel({
|
|
1664
1779
|
children,
|
|
1665
1780
|
footer,
|
|
@@ -1672,7 +1787,7 @@ function Panel({
|
|
|
1672
1787
|
largeControls,
|
|
1673
1788
|
locale
|
|
1674
1789
|
}) {
|
|
1675
|
-
const ctx =
|
|
1790
|
+
const ctx = useContext4(AccessibilityContext);
|
|
1676
1791
|
const effectiveLocale = locale ?? ctx.locale;
|
|
1677
1792
|
const strings = resolveLocaleStrings(effectiveLocale);
|
|
1678
1793
|
const panelTitle = title ?? strings.title;
|
|
@@ -1732,10 +1847,10 @@ function Panel({
|
|
|
1732
1847
|
children: [
|
|
1733
1848
|
/* @__PURE__ */ jsxs4("div", { className: "arap-heading", children: [
|
|
1734
1849
|
/* @__PURE__ */ jsxs4("div", { className: "arap-heading-copy", children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
-
panelDescription && /* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ jsx6("h2", { children: panelTitle }),
|
|
1851
|
+
panelDescription && /* @__PURE__ */ jsx6("p", { id: `${ctx.panelId}-description`, className: "arap-description", children: panelDescription })
|
|
1737
1852
|
] }),
|
|
1738
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ jsx6(
|
|
1739
1854
|
"button",
|
|
1740
1855
|
{
|
|
1741
1856
|
type: "button",
|
|
@@ -1745,7 +1860,7 @@ function Panel({
|
|
|
1745
1860
|
}
|
|
1746
1861
|
)
|
|
1747
1862
|
] }),
|
|
1748
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ jsx6(
|
|
1749
1864
|
"button",
|
|
1750
1865
|
{
|
|
1751
1866
|
type: "button",
|
|
@@ -1759,7 +1874,7 @@ function Panel({
|
|
|
1759
1874
|
children: strings.skipToActions
|
|
1760
1875
|
}
|
|
1761
1876
|
),
|
|
1762
|
-
/* @__PURE__ */
|
|
1877
|
+
/* @__PURE__ */ jsx6(PanelActionsContext.Provider, { value: actions, children: /* @__PURE__ */ jsx6(
|
|
1763
1878
|
"div",
|
|
1764
1879
|
{
|
|
1765
1880
|
className: "arap-tools",
|
|
@@ -1776,12 +1891,12 @@ function Panel({
|
|
|
1776
1891
|
role: "group",
|
|
1777
1892
|
"aria-label": strings.quickActionsLabel,
|
|
1778
1893
|
children: [
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx6(PositionControls, {}, ctx.isOpen ? "open" : "closed"),
|
|
1895
|
+
/* @__PURE__ */ jsx6("div", { className: "arap-actions", ref: setActions, children: footer })
|
|
1781
1896
|
]
|
|
1782
1897
|
}
|
|
1783
1898
|
),
|
|
1784
|
-
effectiveStatementUrl && /* @__PURE__ */
|
|
1899
|
+
effectiveStatementUrl && /* @__PURE__ */ jsx6("div", { className: "arap-statement", children: /* @__PURE__ */ jsxs4(
|
|
1785
1900
|
"a",
|
|
1786
1901
|
{
|
|
1787
1902
|
href: effectiveStatementUrl,
|
|
@@ -1841,18 +1956,18 @@ function Panel({
|
|
|
1841
1956
|
);
|
|
1842
1957
|
}
|
|
1843
1958
|
function AccessibilityList(props) {
|
|
1844
|
-
const ctx =
|
|
1959
|
+
const ctx = useContext4(AccessibilityContext);
|
|
1845
1960
|
if (!ctx)
|
|
1846
1961
|
throw new Error(
|
|
1847
1962
|
"AccessibilityList must be used within an <AccessibilityPlugin> provider."
|
|
1848
1963
|
);
|
|
1849
|
-
return /* @__PURE__ */
|
|
1964
|
+
return /* @__PURE__ */ jsx6(WidgetPortal, { children: /* @__PURE__ */ jsx6(Panel, { ...props }) });
|
|
1850
1965
|
}
|
|
1851
1966
|
|
|
1852
1967
|
// src/core/useAccessibility.ts
|
|
1853
|
-
import { useCallback as useCallback3, useContext as
|
|
1968
|
+
import { useCallback as useCallback3, useContext as useContext5, useEffect as useEffect5, useState as useState5 } from "react";
|
|
1854
1969
|
function useAccessibility(featureKey, defaultValue, options) {
|
|
1855
|
-
const ctx =
|
|
1970
|
+
const ctx = useContext5(AccessibilityContext);
|
|
1856
1971
|
if (!ctx)
|
|
1857
1972
|
throw new Error(
|
|
1858
1973
|
"useAccessibility must be used within an <AccessibilityPlugin> provider."
|
|
@@ -2186,60 +2301,68 @@ function preferencesReducer(state, action) {
|
|
|
2186
2301
|
}
|
|
2187
2302
|
|
|
2188
2303
|
// src/core/FeatureIcon.tsx
|
|
2189
|
-
import { Fragment, jsx as
|
|
2304
|
+
import { Fragment, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2190
2305
|
var drawings = {
|
|
2191
|
-
fontSize: /* @__PURE__ */
|
|
2192
|
-
lineHeight: /* @__PURE__ */
|
|
2193
|
-
letterSpacing: /* @__PURE__ */
|
|
2194
|
-
wordSpacing: /* @__PURE__ */
|
|
2195
|
-
paragraphSpacing: /* @__PURE__ */
|
|
2306
|
+
fontSize: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 18 8 5l5 13M5 13h6M15 18l3-8 3 8M16 15h4" }) }),
|
|
2307
|
+
lineHeight: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M9 6h12M9 12h9M9 18h12M4 4v16m-2-2 2 2 2-2M2 6l2-2 2 2" }) }),
|
|
2308
|
+
letterSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 13 7 3l4 10M4.5 9h5M14 13l4-10 4 10m-6.5-4h5M3 19h18m-3-2 3 2-3 2M6 17l-3 2 3 2" }) }),
|
|
2309
|
+
wordSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 6v12M20 6v12M9 12h6m-2-3 3 3-3 3m-4-3-3-3 3 3" }) }),
|
|
2310
|
+
paragraphSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 5h16M4 9h12M4 19h16M4 15h12M18 10v4m-2-2 2-2 2 2m-4 2 2 2 2-2" }) }),
|
|
2196
2311
|
contrast: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "9" }),
|
|
2313
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
|
|
2199
2314
|
] }),
|
|
2200
2315
|
contrastMode: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "9" }),
|
|
2317
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
|
|
2203
2318
|
] }),
|
|
2204
2319
|
saturation: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2205
|
-
/* @__PURE__ */
|
|
2206
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
|
|
2321
|
+
/* @__PURE__ */ jsx7("path", { d: "M8 15a4 4 0 0 0 4 4" })
|
|
2207
2322
|
] }),
|
|
2208
2323
|
invertColors: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2209
|
-
/* @__PURE__ */
|
|
2210
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
|
|
2325
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3v19" })
|
|
2211
2326
|
] }),
|
|
2212
2327
|
grayscale: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2213
|
-
/* @__PURE__ */
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ jsx7("circle", { cx: "8", cy: "12", r: "5" }),
|
|
2329
|
+
/* @__PURE__ */ jsx7("circle", { cx: "16", cy: "12", r: "5" }),
|
|
2330
|
+
/* @__PURE__ */ jsx7("path", { d: "M8 7v10M16 7v10" })
|
|
2331
|
+
] }),
|
|
2332
|
+
linkHighlight: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
|
|
2333
|
+
highlightFocus: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2334
|
+
/* @__PURE__ */ jsx7("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
|
|
2335
|
+
/* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "3" })
|
|
2336
|
+
] }),
|
|
2337
|
+
focusHighlight: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2338
|
+
/* @__PURE__ */ jsx7("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
|
|
2339
|
+
/* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "3" })
|
|
2216
2340
|
] }),
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
fontFamily: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
|
|
2341
|
+
textAlign: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
|
|
2342
|
+
fontFamily: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
|
|
2220
2343
|
hideImages: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
/* @__PURE__ */
|
|
2344
|
+
/* @__PURE__ */ jsx7("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
2345
|
+
/* @__PURE__ */ jsx7("circle", { cx: "8", cy: "9", r: "1" }),
|
|
2346
|
+
/* @__PURE__ */ jsx7("path", { d: "m3 17 5-5 4 4 3-3 6 5M2 2l20 20" })
|
|
2224
2347
|
] }),
|
|
2225
2348
|
hideVideos: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2226
|
-
/* @__PURE__ */
|
|
2227
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ jsx7("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
|
|
2350
|
+
/* @__PURE__ */ jsx7("path", { d: "m16 10 5-3v10l-5-3M2 2l20 20" })
|
|
2228
2351
|
] }),
|
|
2229
|
-
bigCursor: /* @__PURE__ */
|
|
2352
|
+
bigCursor: /* @__PURE__ */ jsx7("path", { d: "m5 3 14 11-7 1-3 6Z" }),
|
|
2230
2353
|
readingMask: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ jsx7("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
2355
|
+
/* @__PURE__ */ jsx7("path", { d: "M3 9h18M3 15h18" }),
|
|
2356
|
+
/* @__PURE__ */ jsx7("path", { d: "M6 12h12" })
|
|
2234
2357
|
] }),
|
|
2235
2358
|
readingGuide: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2236
|
-
/* @__PURE__ */
|
|
2237
|
-
/* @__PURE__ */
|
|
2359
|
+
/* @__PURE__ */ jsx7("path", { d: "M3 5h18M3 10h12M3 19h18" }),
|
|
2360
|
+
/* @__PURE__ */ jsx7("path", { d: "M2 15h20", strokeWidth: "3" })
|
|
2238
2361
|
] }),
|
|
2239
|
-
reset: /* @__PURE__ */
|
|
2362
|
+
reset: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
|
|
2240
2363
|
};
|
|
2241
2364
|
function FeatureIcon({ name }) {
|
|
2242
|
-
return /* @__PURE__ */
|
|
2365
|
+
return /* @__PURE__ */ jsx7(
|
|
2243
2366
|
"svg",
|
|
2244
2367
|
{
|
|
2245
2368
|
className: "arap-icon",
|
|
@@ -2257,7 +2380,7 @@ function FeatureIcon({ name }) {
|
|
|
2257
2380
|
}
|
|
2258
2381
|
|
|
2259
2382
|
// src/features/FontSizeController.tsx
|
|
2260
|
-
import { jsx as
|
|
2383
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2261
2384
|
var FEATURE_KEY = "fontSize";
|
|
2262
2385
|
var DEFAULT_VALUE = 100;
|
|
2263
2386
|
var MIN = 50;
|
|
@@ -2309,11 +2432,11 @@ function FontSizeController({
|
|
|
2309
2432
|
"aria-label": "Font Size",
|
|
2310
2433
|
children: [
|
|
2311
2434
|
/* @__PURE__ */ jsxs6("span", { className: "arap-label", children: [
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsx8(FeatureIcon, { name: FEATURE_KEY }),
|
|
2436
|
+
/* @__PURE__ */ jsx8("span", { children: "Font Size" })
|
|
2314
2437
|
] }),
|
|
2315
2438
|
/* @__PURE__ */ jsxs6("div", { className: "arap-controls", children: [
|
|
2316
|
-
/* @__PURE__ */
|
|
2439
|
+
/* @__PURE__ */ jsx8(
|
|
2317
2440
|
"button",
|
|
2318
2441
|
{
|
|
2319
2442
|
className: "arap-btn-sm",
|
|
@@ -2328,7 +2451,7 @@ function FontSizeController({
|
|
|
2328
2451
|
Math.round(value),
|
|
2329
2452
|
"%"
|
|
2330
2453
|
] }),
|
|
2331
|
-
/* @__PURE__ */
|
|
2454
|
+
/* @__PURE__ */ jsx8(
|
|
2332
2455
|
"button",
|
|
2333
2456
|
{
|
|
2334
2457
|
className: "arap-btn-sm",
|
|
@@ -2346,7 +2469,7 @@ function FontSizeController({
|
|
|
2346
2469
|
}
|
|
2347
2470
|
|
|
2348
2471
|
// src/features/TextScaleController.tsx
|
|
2349
|
-
import { jsx as
|
|
2472
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2350
2473
|
var FEATURE_KEY2 = "fontScale";
|
|
2351
2474
|
var DEFAULT_VALUE2 = 1;
|
|
2352
2475
|
function TextScaleController({
|
|
@@ -2385,11 +2508,11 @@ function TextScaleController({
|
|
|
2385
2508
|
"aria-label": label,
|
|
2386
2509
|
children: [
|
|
2387
2510
|
/* @__PURE__ */ jsxs7("span", { className: "arap-label", children: [
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2511
|
+
/* @__PURE__ */ jsx9(FeatureIcon, { name: "fontSize" }),
|
|
2512
|
+
/* @__PURE__ */ jsx9("span", { children: label })
|
|
2390
2513
|
] }),
|
|
2391
2514
|
/* @__PURE__ */ jsxs7("div", { className: "arap-controls", children: [
|
|
2392
|
-
/* @__PURE__ */
|
|
2515
|
+
/* @__PURE__ */ jsx9(
|
|
2393
2516
|
"button",
|
|
2394
2517
|
{
|
|
2395
2518
|
className: "arap-btn-sm",
|
|
@@ -2404,7 +2527,7 @@ function TextScaleController({
|
|
|
2404
2527
|
percentage,
|
|
2405
2528
|
"%"
|
|
2406
2529
|
] }),
|
|
2407
|
-
/* @__PURE__ */
|
|
2530
|
+
/* @__PURE__ */ jsx9(
|
|
2408
2531
|
"button",
|
|
2409
2532
|
{
|
|
2410
2533
|
className: "arap-btn-sm",
|
|
@@ -2422,7 +2545,7 @@ function TextScaleController({
|
|
|
2422
2545
|
}
|
|
2423
2546
|
|
|
2424
2547
|
// src/features/LineHeightController.tsx
|
|
2425
|
-
import { jsx as
|
|
2548
|
+
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2426
2549
|
var FEATURE_KEY3 = "lineHeight";
|
|
2427
2550
|
var DEFAULT_VALUE3 = 100;
|
|
2428
2551
|
var MIN2 = 50;
|
|
@@ -2474,11 +2597,11 @@ function LineHeightController({
|
|
|
2474
2597
|
"aria-label": "Line Height",
|
|
2475
2598
|
children: [
|
|
2476
2599
|
/* @__PURE__ */ jsxs8("span", { className: "arap-label", children: [
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2600
|
+
/* @__PURE__ */ jsx10(FeatureIcon, { name: FEATURE_KEY3 }),
|
|
2601
|
+
/* @__PURE__ */ jsx10("span", { children: "Line Height" })
|
|
2479
2602
|
] }),
|
|
2480
2603
|
/* @__PURE__ */ jsxs8("div", { className: "arap-controls", children: [
|
|
2481
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsx10(
|
|
2482
2605
|
"button",
|
|
2483
2606
|
{
|
|
2484
2607
|
className: "arap-btn-sm",
|
|
@@ -2493,7 +2616,7 @@ function LineHeightController({
|
|
|
2493
2616
|
Math.round(normalizedValue),
|
|
2494
2617
|
"%"
|
|
2495
2618
|
] }),
|
|
2496
|
-
/* @__PURE__ */
|
|
2619
|
+
/* @__PURE__ */ jsx10(
|
|
2497
2620
|
"button",
|
|
2498
2621
|
{
|
|
2499
2622
|
className: "arap-btn-sm",
|
|
@@ -2511,7 +2634,7 @@ function LineHeightController({
|
|
|
2511
2634
|
}
|
|
2512
2635
|
|
|
2513
2636
|
// src/features/LetterSpacingController.tsx
|
|
2514
|
-
import { jsx as
|
|
2637
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2515
2638
|
var FEATURE_KEY4 = "letterSpacing";
|
|
2516
2639
|
var DEFAULT_VALUE4 = 0;
|
|
2517
2640
|
var MIN3 = 0;
|
|
@@ -2563,11 +2686,11 @@ function LetterSpacingController({
|
|
|
2563
2686
|
"aria-label": "Letter Spacing",
|
|
2564
2687
|
children: [
|
|
2565
2688
|
/* @__PURE__ */ jsxs9("span", { className: "arap-label", children: [
|
|
2566
|
-
/* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ jsx11(FeatureIcon, { name: FEATURE_KEY4 }),
|
|
2690
|
+
/* @__PURE__ */ jsx11("span", { children: "Letter Spacing" })
|
|
2568
2691
|
] }),
|
|
2569
2692
|
/* @__PURE__ */ jsxs9("div", { className: "arap-controls", children: [
|
|
2570
|
-
/* @__PURE__ */
|
|
2693
|
+
/* @__PURE__ */ jsx11(
|
|
2571
2694
|
"button",
|
|
2572
2695
|
{
|
|
2573
2696
|
className: "arap-btn-sm",
|
|
@@ -2582,7 +2705,7 @@ function LetterSpacingController({
|
|
|
2582
2705
|
value,
|
|
2583
2706
|
"px"
|
|
2584
2707
|
] }),
|
|
2585
|
-
/* @__PURE__ */
|
|
2708
|
+
/* @__PURE__ */ jsx11(
|
|
2586
2709
|
"button",
|
|
2587
2710
|
{
|
|
2588
2711
|
className: "arap-btn-sm",
|
|
@@ -2600,7 +2723,7 @@ function LetterSpacingController({
|
|
|
2600
2723
|
}
|
|
2601
2724
|
|
|
2602
2725
|
// src/features/WordSpacingController.tsx
|
|
2603
|
-
import { jsx as
|
|
2726
|
+
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2604
2727
|
var FEATURE_KEY5 = "wordSpacing";
|
|
2605
2728
|
var DEFAULT_VALUE5 = 0;
|
|
2606
2729
|
var MIN4 = 0;
|
|
@@ -2652,11 +2775,11 @@ function WordSpacingController({
|
|
|
2652
2775
|
"aria-label": "Word Spacing",
|
|
2653
2776
|
children: [
|
|
2654
2777
|
/* @__PURE__ */ jsxs10("span", { className: "arap-label", children: [
|
|
2655
|
-
/* @__PURE__ */
|
|
2656
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ jsx12(FeatureIcon, { name: FEATURE_KEY5 }),
|
|
2779
|
+
/* @__PURE__ */ jsx12("span", { children: "Word Spacing" })
|
|
2657
2780
|
] }),
|
|
2658
2781
|
/* @__PURE__ */ jsxs10("div", { className: "arap-controls", children: [
|
|
2659
|
-
/* @__PURE__ */
|
|
2782
|
+
/* @__PURE__ */ jsx12(
|
|
2660
2783
|
"button",
|
|
2661
2784
|
{
|
|
2662
2785
|
className: "arap-btn-sm",
|
|
@@ -2671,7 +2794,7 @@ function WordSpacingController({
|
|
|
2671
2794
|
value,
|
|
2672
2795
|
"px"
|
|
2673
2796
|
] }),
|
|
2674
|
-
/* @__PURE__ */
|
|
2797
|
+
/* @__PURE__ */ jsx12(
|
|
2675
2798
|
"button",
|
|
2676
2799
|
{
|
|
2677
2800
|
className: "arap-btn-sm",
|
|
@@ -2689,7 +2812,7 @@ function WordSpacingController({
|
|
|
2689
2812
|
}
|
|
2690
2813
|
|
|
2691
2814
|
// src/features/ParagraphSpacingController.tsx
|
|
2692
|
-
import { jsx as
|
|
2815
|
+
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2693
2816
|
var FEATURE_KEY6 = "paragraphSpacing";
|
|
2694
2817
|
var DEFAULT_VALUE6 = 0;
|
|
2695
2818
|
var MIN5 = 0;
|
|
@@ -2741,11 +2864,11 @@ function ParagraphSpacingController({
|
|
|
2741
2864
|
"aria-label": "Paragraph Spacing",
|
|
2742
2865
|
children: [
|
|
2743
2866
|
/* @__PURE__ */ jsxs11("span", { className: "arap-label", children: [
|
|
2744
|
-
/* @__PURE__ */
|
|
2745
|
-
/* @__PURE__ */
|
|
2867
|
+
/* @__PURE__ */ jsx13(FeatureIcon, { name: FEATURE_KEY6 }),
|
|
2868
|
+
/* @__PURE__ */ jsx13("span", { children: "Paragraph Spacing" })
|
|
2746
2869
|
] }),
|
|
2747
2870
|
/* @__PURE__ */ jsxs11("div", { className: "arap-controls", children: [
|
|
2748
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ jsx13(
|
|
2749
2872
|
"button",
|
|
2750
2873
|
{
|
|
2751
2874
|
className: "arap-btn-sm",
|
|
@@ -2760,7 +2883,7 @@ function ParagraphSpacingController({
|
|
|
2760
2883
|
value,
|
|
2761
2884
|
"px"
|
|
2762
2885
|
] }),
|
|
2763
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ jsx13(
|
|
2764
2887
|
"button",
|
|
2765
2888
|
{
|
|
2766
2889
|
className: "arap-btn-sm",
|
|
@@ -2778,8 +2901,8 @@ function ParagraphSpacingController({
|
|
|
2778
2901
|
}
|
|
2779
2902
|
|
|
2780
2903
|
// src/features/ContrastController.tsx
|
|
2781
|
-
import { useSyncExternalStore as
|
|
2782
|
-
import { jsx as
|
|
2904
|
+
import { useSyncExternalStore as useSyncExternalStore5 } from "react";
|
|
2905
|
+
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2783
2906
|
var FEATURE_KEY7 = "contrast";
|
|
2784
2907
|
var DEFAULT_VALUE7 = 0;
|
|
2785
2908
|
var LEVELS = [
|
|
@@ -2801,17 +2924,17 @@ function ContrastController() {
|
|
|
2801
2924
|
FEATURE_KEY7,
|
|
2802
2925
|
DEFAULT_VALUE7
|
|
2803
2926
|
);
|
|
2804
|
-
const forcedColors =
|
|
2927
|
+
const forcedColors = useSyncExternalStore5(
|
|
2805
2928
|
subscribeForcedColors,
|
|
2806
2929
|
isForcedColorsActive,
|
|
2807
2930
|
() => false
|
|
2808
2931
|
);
|
|
2809
2932
|
return /* @__PURE__ */ jsxs12("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
|
|
2810
2933
|
/* @__PURE__ */ jsxs12("span", { className: "arap-label", children: [
|
|
2811
|
-
/* @__PURE__ */
|
|
2812
|
-
/* @__PURE__ */
|
|
2934
|
+
/* @__PURE__ */ jsx14(FeatureIcon, { name: FEATURE_KEY7 }),
|
|
2935
|
+
/* @__PURE__ */ jsx14("span", { children: "Contrast" })
|
|
2813
2936
|
] }),
|
|
2814
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ jsx14("div", { className: "arap-segmented", children: LEVELS.map((level) => {
|
|
2815
2938
|
const isActive = value === level.value || level.value === 0 && (value === "off" || value === "original");
|
|
2816
2939
|
return /* @__PURE__ */ jsxs12(
|
|
2817
2940
|
"button",
|
|
@@ -2821,20 +2944,20 @@ function ContrastController() {
|
|
|
2821
2944
|
"aria-pressed": isActive,
|
|
2822
2945
|
type: "button",
|
|
2823
2946
|
children: [
|
|
2824
|
-
isActive && /* @__PURE__ */
|
|
2947
|
+
isActive && /* @__PURE__ */ jsx14("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
2825
2948
|
level.label
|
|
2826
2949
|
]
|
|
2827
2950
|
},
|
|
2828
2951
|
String(level.value)
|
|
2829
2952
|
);
|
|
2830
2953
|
}) }),
|
|
2831
|
-
forcedColors && /* @__PURE__ */
|
|
2954
|
+
forcedColors && /* @__PURE__ */ jsx14("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
|
|
2832
2955
|
] });
|
|
2833
2956
|
}
|
|
2834
2957
|
|
|
2835
2958
|
// src/features/ContrastModeController.tsx
|
|
2836
|
-
import { useSyncExternalStore as
|
|
2837
|
-
import { jsx as
|
|
2959
|
+
import { useSyncExternalStore as useSyncExternalStore6 } from "react";
|
|
2960
|
+
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2838
2961
|
var FEATURE_KEY8 = "contrastMode";
|
|
2839
2962
|
var DEFAULT_VALUE8 = "off";
|
|
2840
2963
|
var OPTIONS = [
|
|
@@ -2849,17 +2972,17 @@ function ContrastModeController() {
|
|
|
2849
2972
|
FEATURE_KEY8,
|
|
2850
2973
|
DEFAULT_VALUE8
|
|
2851
2974
|
);
|
|
2852
|
-
const forcedColors =
|
|
2975
|
+
const forcedColors = useSyncExternalStore6(
|
|
2853
2976
|
subscribeForcedColors,
|
|
2854
2977
|
isForcedColorsActive,
|
|
2855
2978
|
() => false
|
|
2856
2979
|
);
|
|
2857
2980
|
return /* @__PURE__ */ jsxs13("div", { className: "arap-feature", role: "group", "aria-label": "Contrast Mode", children: [
|
|
2858
2981
|
/* @__PURE__ */ jsxs13("span", { className: "arap-label", children: [
|
|
2859
|
-
/* @__PURE__ */
|
|
2860
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ jsx15(FeatureIcon, { name: FEATURE_KEY8 }),
|
|
2983
|
+
/* @__PURE__ */ jsx15("span", { children: "Contrast Mode" })
|
|
2861
2984
|
] }),
|
|
2862
|
-
/* @__PURE__ */
|
|
2985
|
+
/* @__PURE__ */ jsx15("div", { className: "arap-segmented", children: OPTIONS.map((option) => {
|
|
2863
2986
|
const isActive = value === option.value || option.value === "off" && (value === "original" || !value);
|
|
2864
2987
|
return /* @__PURE__ */ jsxs13(
|
|
2865
2988
|
"button",
|
|
@@ -2869,19 +2992,19 @@ function ContrastModeController() {
|
|
|
2869
2992
|
"aria-pressed": isActive,
|
|
2870
2993
|
type: "button",
|
|
2871
2994
|
children: [
|
|
2872
|
-
isActive && /* @__PURE__ */
|
|
2995
|
+
isActive && /* @__PURE__ */ jsx15("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
2873
2996
|
option.label
|
|
2874
2997
|
]
|
|
2875
2998
|
},
|
|
2876
2999
|
option.value
|
|
2877
3000
|
);
|
|
2878
3001
|
}) }),
|
|
2879
|
-
forcedColors && /* @__PURE__ */
|
|
3002
|
+
forcedColors && /* @__PURE__ */ jsx15("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
|
|
2880
3003
|
] });
|
|
2881
3004
|
}
|
|
2882
3005
|
|
|
2883
3006
|
// src/features/SaturationController.tsx
|
|
2884
|
-
import { jsx as
|
|
3007
|
+
import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2885
3008
|
var FEATURE_KEY9 = "saturation";
|
|
2886
3009
|
var DEFAULT_VALUE9 = 0;
|
|
2887
3010
|
var LEVELS2 = [
|
|
@@ -2896,10 +3019,10 @@ function SaturationController() {
|
|
|
2896
3019
|
);
|
|
2897
3020
|
return /* @__PURE__ */ jsxs14("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
|
|
2898
3021
|
/* @__PURE__ */ jsxs14("span", { className: "arap-label", children: [
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
3022
|
+
/* @__PURE__ */ jsx16(FeatureIcon, { name: FEATURE_KEY9 }),
|
|
3023
|
+
/* @__PURE__ */ jsx16("span", { children: "Saturation" })
|
|
2901
3024
|
] }),
|
|
2902
|
-
/* @__PURE__ */
|
|
3025
|
+
/* @__PURE__ */ jsx16("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ jsxs14(
|
|
2903
3026
|
"button",
|
|
2904
3027
|
{
|
|
2905
3028
|
className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
|
|
@@ -2907,7 +3030,7 @@ function SaturationController() {
|
|
|
2907
3030
|
"aria-pressed": value === level.value,
|
|
2908
3031
|
type: "button",
|
|
2909
3032
|
children: [
|
|
2910
|
-
value === level.value && /* @__PURE__ */
|
|
3033
|
+
value === level.value && /* @__PURE__ */ jsx16("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
2911
3034
|
level.label
|
|
2912
3035
|
]
|
|
2913
3036
|
},
|
|
@@ -2917,7 +3040,7 @@ function SaturationController() {
|
|
|
2917
3040
|
}
|
|
2918
3041
|
|
|
2919
3042
|
// src/features/InvertColorsController.tsx
|
|
2920
|
-
import { jsx as
|
|
3043
|
+
import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2921
3044
|
var FEATURE_KEY10 = "invertColors";
|
|
2922
3045
|
var DEFAULT_VALUE10 = false;
|
|
2923
3046
|
function InvertColorsController() {
|
|
@@ -2927,10 +3050,10 @@ function InvertColorsController() {
|
|
|
2927
3050
|
);
|
|
2928
3051
|
return /* @__PURE__ */ jsxs15("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
|
|
2929
3052
|
/* @__PURE__ */ jsxs15("span", { className: "arap-label", children: [
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
/* @__PURE__ */
|
|
3053
|
+
/* @__PURE__ */ jsx17(FeatureIcon, { name: FEATURE_KEY10 }),
|
|
3054
|
+
/* @__PURE__ */ jsx17("span", { children: "Invert Colors" })
|
|
2932
3055
|
] }),
|
|
2933
|
-
/* @__PURE__ */
|
|
3056
|
+
/* @__PURE__ */ jsx17(
|
|
2934
3057
|
"button",
|
|
2935
3058
|
{
|
|
2936
3059
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -2938,14 +3061,14 @@ function InvertColorsController() {
|
|
|
2938
3061
|
"aria-label": "Invert Colors",
|
|
2939
3062
|
"aria-pressed": value,
|
|
2940
3063
|
type: "button",
|
|
2941
|
-
children: /* @__PURE__ */
|
|
3064
|
+
children: /* @__PURE__ */ jsx17("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
2942
3065
|
}
|
|
2943
3066
|
)
|
|
2944
3067
|
] });
|
|
2945
3068
|
}
|
|
2946
3069
|
|
|
2947
3070
|
// src/features/GrayscaleController.tsx
|
|
2948
|
-
import { jsx as
|
|
3071
|
+
import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2949
3072
|
var FEATURE_KEY11 = "grayscale";
|
|
2950
3073
|
var DEFAULT_VALUE11 = false;
|
|
2951
3074
|
function GrayscaleController() {
|
|
@@ -2955,10 +3078,10 @@ function GrayscaleController() {
|
|
|
2955
3078
|
);
|
|
2956
3079
|
return /* @__PURE__ */ jsxs16("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
|
|
2957
3080
|
/* @__PURE__ */ jsxs16("span", { className: "arap-label", children: [
|
|
2958
|
-
/* @__PURE__ */
|
|
2959
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ jsx18(FeatureIcon, { name: FEATURE_KEY11 }),
|
|
3082
|
+
/* @__PURE__ */ jsx18("span", { children: "Grayscale" })
|
|
2960
3083
|
] }),
|
|
2961
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ jsx18(
|
|
2962
3085
|
"button",
|
|
2963
3086
|
{
|
|
2964
3087
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -2966,14 +3089,14 @@ function GrayscaleController() {
|
|
|
2966
3089
|
"aria-label": "Grayscale",
|
|
2967
3090
|
"aria-pressed": value,
|
|
2968
3091
|
type: "button",
|
|
2969
|
-
children: /* @__PURE__ */
|
|
3092
|
+
children: /* @__PURE__ */ jsx18("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
2970
3093
|
}
|
|
2971
3094
|
)
|
|
2972
3095
|
] });
|
|
2973
3096
|
}
|
|
2974
3097
|
|
|
2975
3098
|
// src/features/LinkHighlightController.tsx
|
|
2976
|
-
import { jsx as
|
|
3099
|
+
import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2977
3100
|
var FEATURE_KEY12 = "linkHighlight";
|
|
2978
3101
|
var DEFAULT_VALUE12 = false;
|
|
2979
3102
|
function LinkHighlightController() {
|
|
@@ -2983,10 +3106,10 @@ function LinkHighlightController() {
|
|
|
2983
3106
|
);
|
|
2984
3107
|
return /* @__PURE__ */ jsxs17("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
|
|
2985
3108
|
/* @__PURE__ */ jsxs17("span", { className: "arap-label", children: [
|
|
2986
|
-
/* @__PURE__ */
|
|
2987
|
-
/* @__PURE__ */
|
|
3109
|
+
/* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY12 }),
|
|
3110
|
+
/* @__PURE__ */ jsx19("span", { children: "Link Highlight" })
|
|
2988
3111
|
] }),
|
|
2989
|
-
/* @__PURE__ */
|
|
3112
|
+
/* @__PURE__ */ jsx19(
|
|
2990
3113
|
"button",
|
|
2991
3114
|
{
|
|
2992
3115
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -2994,10 +3117,10 @@ function LinkHighlightController() {
|
|
|
2994
3117
|
"aria-label": "Link Highlight",
|
|
2995
3118
|
"aria-pressed": !!value,
|
|
2996
3119
|
type: "button",
|
|
2997
|
-
children: /* @__PURE__ */
|
|
3120
|
+
children: /* @__PURE__ */ jsx19("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
2998
3121
|
}
|
|
2999
3122
|
),
|
|
3000
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ jsx19("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ jsxs17(
|
|
3001
3124
|
"button",
|
|
3002
3125
|
{
|
|
3003
3126
|
type: "button",
|
|
@@ -3005,7 +3128,7 @@ function LinkHighlightController() {
|
|
|
3005
3128
|
"aria-pressed": value === mode,
|
|
3006
3129
|
onClick: () => setValue(mode),
|
|
3007
3130
|
children: [
|
|
3008
|
-
value === mode && /* @__PURE__ */
|
|
3131
|
+
value === mode && /* @__PURE__ */ jsx19("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
3009
3132
|
mode.split("-").join(" ")
|
|
3010
3133
|
]
|
|
3011
3134
|
},
|
|
@@ -3015,7 +3138,7 @@ function LinkHighlightController() {
|
|
|
3015
3138
|
}
|
|
3016
3139
|
|
|
3017
3140
|
// src/features/TextAlignController.tsx
|
|
3018
|
-
import { jsx as
|
|
3141
|
+
import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3019
3142
|
var FEATURE_KEY13 = "textAlign";
|
|
3020
3143
|
var DEFAULT_VALUE13 = "default";
|
|
3021
3144
|
var OPTIONS2 = ["default", "left", "center", "right", "justify"];
|
|
@@ -3026,10 +3149,10 @@ function TextAlignController() {
|
|
|
3026
3149
|
);
|
|
3027
3150
|
return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
|
|
3028
3151
|
/* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY13 }),
|
|
3153
|
+
/* @__PURE__ */ jsx20("span", { children: "Text Alignment" })
|
|
3031
3154
|
] }),
|
|
3032
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ jsx20("div", { className: "arap-segmented", children: OPTIONS2.map((option) => /* @__PURE__ */ jsxs18(
|
|
3033
3156
|
"button",
|
|
3034
3157
|
{
|
|
3035
3158
|
className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
|
|
@@ -3038,13 +3161,13 @@ function TextAlignController() {
|
|
|
3038
3161
|
type: "button",
|
|
3039
3162
|
style: { textTransform: "capitalize" },
|
|
3040
3163
|
children: [
|
|
3041
|
-
value === option && /* @__PURE__ */
|
|
3164
|
+
value === option && /* @__PURE__ */ jsx20("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
3042
3165
|
option
|
|
3043
3166
|
]
|
|
3044
3167
|
},
|
|
3045
3168
|
option
|
|
3046
3169
|
)) }),
|
|
3047
|
-
value === "justify" && /* @__PURE__ */
|
|
3170
|
+
value === "justify" && /* @__PURE__ */ jsx20(
|
|
3048
3171
|
"div",
|
|
3049
3172
|
{
|
|
3050
3173
|
className: "arap-notice arap-notice-warning",
|
|
@@ -3057,7 +3180,7 @@ function TextAlignController() {
|
|
|
3057
3180
|
}
|
|
3058
3181
|
|
|
3059
3182
|
// src/features/FontFamilyController.tsx
|
|
3060
|
-
import { jsx as
|
|
3183
|
+
import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3061
3184
|
var FEATURE_KEY14 = "fontFamily";
|
|
3062
3185
|
var DEFAULT_VALUE14 = "default";
|
|
3063
3186
|
var OPTIONS3 = [
|
|
@@ -3072,10 +3195,10 @@ function FontFamilyController() {
|
|
|
3072
3195
|
);
|
|
3073
3196
|
return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
|
|
3074
3197
|
/* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY14 }),
|
|
3199
|
+
/* @__PURE__ */ jsx21("span", { children: "Font Family" })
|
|
3077
3200
|
] }),
|
|
3078
|
-
/* @__PURE__ */
|
|
3201
|
+
/* @__PURE__ */ jsx21("div", { className: "arap-segmented", children: OPTIONS3.map((option) => {
|
|
3079
3202
|
const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
|
|
3080
3203
|
return /* @__PURE__ */ jsxs19(
|
|
3081
3204
|
"button",
|
|
@@ -3085,7 +3208,7 @@ function FontFamilyController() {
|
|
|
3085
3208
|
"aria-pressed": isActive,
|
|
3086
3209
|
type: "button",
|
|
3087
3210
|
children: [
|
|
3088
|
-
isActive && /* @__PURE__ */
|
|
3211
|
+
isActive && /* @__PURE__ */ jsx21("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
3089
3212
|
option.label
|
|
3090
3213
|
]
|
|
3091
3214
|
},
|
|
@@ -3096,7 +3219,7 @@ function FontFamilyController() {
|
|
|
3096
3219
|
}
|
|
3097
3220
|
|
|
3098
3221
|
// src/features/HideImagesController.tsx
|
|
3099
|
-
import { jsx as
|
|
3222
|
+
import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3100
3223
|
var FEATURE_KEY15 = "hideImages";
|
|
3101
3224
|
var DEFAULT_VALUE15 = false;
|
|
3102
3225
|
function HideImagesController() {
|
|
@@ -3106,10 +3229,10 @@ function HideImagesController() {
|
|
|
3106
3229
|
);
|
|
3107
3230
|
return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
|
|
3108
3231
|
/* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
|
|
3109
|
-
/* @__PURE__ */
|
|
3110
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY15 }),
|
|
3233
|
+
/* @__PURE__ */ jsx22("span", { children: "Hide Images" })
|
|
3111
3234
|
] }),
|
|
3112
|
-
/* @__PURE__ */
|
|
3235
|
+
/* @__PURE__ */ jsx22(
|
|
3113
3236
|
"button",
|
|
3114
3237
|
{
|
|
3115
3238
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -3117,14 +3240,14 @@ function HideImagesController() {
|
|
|
3117
3240
|
"aria-label": "Hide Images",
|
|
3118
3241
|
"aria-pressed": value,
|
|
3119
3242
|
type: "button",
|
|
3120
|
-
children: /* @__PURE__ */
|
|
3243
|
+
children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3121
3244
|
}
|
|
3122
3245
|
)
|
|
3123
3246
|
] });
|
|
3124
3247
|
}
|
|
3125
3248
|
|
|
3126
3249
|
// src/features/HideVideosController.tsx
|
|
3127
|
-
import { jsx as
|
|
3250
|
+
import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3128
3251
|
var FEATURE_KEY16 = "hideVideos";
|
|
3129
3252
|
var DEFAULT_VALUE16 = false;
|
|
3130
3253
|
function HideVideosController() {
|
|
@@ -3134,10 +3257,10 @@ function HideVideosController() {
|
|
|
3134
3257
|
);
|
|
3135
3258
|
return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
|
|
3136
3259
|
/* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
/* @__PURE__ */
|
|
3260
|
+
/* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY16 }),
|
|
3261
|
+
/* @__PURE__ */ jsx23("span", { children: "Hide Videos" })
|
|
3139
3262
|
] }),
|
|
3140
|
-
/* @__PURE__ */
|
|
3263
|
+
/* @__PURE__ */ jsx23(
|
|
3141
3264
|
"button",
|
|
3142
3265
|
{
|
|
3143
3266
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -3145,14 +3268,14 @@ function HideVideosController() {
|
|
|
3145
3268
|
"aria-label": "Hide Videos",
|
|
3146
3269
|
"aria-pressed": value,
|
|
3147
3270
|
type: "button",
|
|
3148
|
-
children: /* @__PURE__ */
|
|
3271
|
+
children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3149
3272
|
}
|
|
3150
3273
|
)
|
|
3151
3274
|
] });
|
|
3152
3275
|
}
|
|
3153
3276
|
|
|
3154
3277
|
// src/features/BigCursorController.tsx
|
|
3155
|
-
import { jsx as
|
|
3278
|
+
import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3156
3279
|
var FEATURE_KEY17 = "bigCursor";
|
|
3157
3280
|
var DEFAULT_VALUE17 = false;
|
|
3158
3281
|
function BigCursorController() {
|
|
@@ -3162,10 +3285,10 @@ function BigCursorController() {
|
|
|
3162
3285
|
);
|
|
3163
3286
|
return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
|
|
3164
3287
|
/* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx24(FeatureIcon, { name: FEATURE_KEY17 }),
|
|
3289
|
+
/* @__PURE__ */ jsx24("span", { children: "Big Cursor" })
|
|
3167
3290
|
] }),
|
|
3168
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ jsx24(
|
|
3169
3292
|
"button",
|
|
3170
3293
|
{
|
|
3171
3294
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -3173,14 +3296,14 @@ function BigCursorController() {
|
|
|
3173
3296
|
"aria-label": "Big Cursor",
|
|
3174
3297
|
"aria-pressed": value,
|
|
3175
3298
|
type: "button",
|
|
3176
|
-
children: /* @__PURE__ */
|
|
3299
|
+
children: /* @__PURE__ */ jsx24("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3177
3300
|
}
|
|
3178
3301
|
)
|
|
3179
3302
|
] });
|
|
3180
3303
|
}
|
|
3181
3304
|
|
|
3182
3305
|
// src/features/ReadingMaskController.tsx
|
|
3183
|
-
import { jsx as
|
|
3306
|
+
import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3184
3307
|
var FEATURE_KEY18 = "readingMask";
|
|
3185
3308
|
var DEFAULT_VALUE18 = false;
|
|
3186
3309
|
function ReadingMaskController() {
|
|
@@ -3190,10 +3313,10 @@ function ReadingMaskController() {
|
|
|
3190
3313
|
);
|
|
3191
3314
|
return /* @__PURE__ */ jsxs23("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
|
|
3192
3315
|
/* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsx25(FeatureIcon, { name: FEATURE_KEY18 }),
|
|
3317
|
+
/* @__PURE__ */ jsx25("span", { children: "Reading Mask" })
|
|
3195
3318
|
] }),
|
|
3196
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ jsx25(
|
|
3197
3320
|
"button",
|
|
3198
3321
|
{
|
|
3199
3322
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -3201,14 +3324,14 @@ function ReadingMaskController() {
|
|
|
3201
3324
|
"aria-label": "Reading Mask",
|
|
3202
3325
|
"aria-pressed": value,
|
|
3203
3326
|
type: "button",
|
|
3204
|
-
children: /* @__PURE__ */
|
|
3327
|
+
children: /* @__PURE__ */ jsx25("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3205
3328
|
}
|
|
3206
3329
|
)
|
|
3207
3330
|
] });
|
|
3208
3331
|
}
|
|
3209
3332
|
|
|
3210
3333
|
// src/features/ReadingGuideController.tsx
|
|
3211
|
-
import { jsx as
|
|
3334
|
+
import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3212
3335
|
var FEATURE_KEY19 = "readingGuide";
|
|
3213
3336
|
var DEFAULT_VALUE19 = false;
|
|
3214
3337
|
function ReadingGuideController() {
|
|
@@ -3218,10 +3341,10 @@ function ReadingGuideController() {
|
|
|
3218
3341
|
);
|
|
3219
3342
|
return /* @__PURE__ */ jsxs24("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
|
|
3220
3343
|
/* @__PURE__ */ jsxs24("span", { className: "arap-label", children: [
|
|
3221
|
-
/* @__PURE__ */
|
|
3222
|
-
/* @__PURE__ */
|
|
3344
|
+
/* @__PURE__ */ jsx26(FeatureIcon, { name: FEATURE_KEY19 }),
|
|
3345
|
+
/* @__PURE__ */ jsx26("span", { children: "Reading Guide" })
|
|
3223
3346
|
] }),
|
|
3224
|
-
/* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ jsx26(
|
|
3225
3348
|
"button",
|
|
3226
3349
|
{
|
|
3227
3350
|
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
@@ -3229,35 +3352,64 @@ function ReadingGuideController() {
|
|
|
3229
3352
|
"aria-label": "Reading Guide",
|
|
3230
3353
|
"aria-pressed": value,
|
|
3231
3354
|
type: "button",
|
|
3232
|
-
children: /* @__PURE__ */
|
|
3355
|
+
children: /* @__PURE__ */ jsx26("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3356
|
+
}
|
|
3357
|
+
)
|
|
3358
|
+
] });
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
// src/features/HighlightFocusController.tsx
|
|
3362
|
+
import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3363
|
+
var FEATURE_KEY20 = "highlightFocus";
|
|
3364
|
+
var DEFAULT_VALUE20 = false;
|
|
3365
|
+
function HighlightFocusController() {
|
|
3366
|
+
const { value, setValue } = useAccessibility(
|
|
3367
|
+
FEATURE_KEY20,
|
|
3368
|
+
DEFAULT_VALUE20
|
|
3369
|
+
);
|
|
3370
|
+
return /* @__PURE__ */ jsxs25("div", { className: "arap-feature", role: "group", "aria-label": "Highlight Focus", children: [
|
|
3371
|
+
/* @__PURE__ */ jsxs25("span", { className: "arap-label", children: [
|
|
3372
|
+
/* @__PURE__ */ jsx27(FeatureIcon, { name: FEATURE_KEY20 }),
|
|
3373
|
+
/* @__PURE__ */ jsx27("span", { children: "Highlight Focus" })
|
|
3374
|
+
] }),
|
|
3375
|
+
/* @__PURE__ */ jsx27(
|
|
3376
|
+
"button",
|
|
3377
|
+
{
|
|
3378
|
+
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
3379
|
+
onClick: () => setValue(!value),
|
|
3380
|
+
"aria-label": "Highlight Focus",
|
|
3381
|
+
"aria-pressed": Boolean(value),
|
|
3382
|
+
type: "button",
|
|
3383
|
+
children: /* @__PURE__ */ jsx27("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
3233
3384
|
}
|
|
3234
3385
|
)
|
|
3235
3386
|
] });
|
|
3236
3387
|
}
|
|
3388
|
+
var FocusHighlightController = HighlightFocusController;
|
|
3237
3389
|
|
|
3238
3390
|
// src/features/ResetController.tsx
|
|
3239
3391
|
import { createPortal as createPortal2 } from "react-dom";
|
|
3240
|
-
import { useContext as
|
|
3241
|
-
import { jsx as
|
|
3392
|
+
import { useContext as useContext6 } from "react";
|
|
3393
|
+
import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3242
3394
|
function ResetController() {
|
|
3243
|
-
const ctx =
|
|
3395
|
+
const ctx = useContext6(AccessibilityContext);
|
|
3244
3396
|
if (!ctx) {
|
|
3245
3397
|
throw new Error(
|
|
3246
3398
|
"ResetController must be used within an <AccessibilityPlugin> provider."
|
|
3247
3399
|
);
|
|
3248
3400
|
}
|
|
3249
|
-
const actionHost =
|
|
3401
|
+
const actionHost = useContext6(PanelActionsContext);
|
|
3250
3402
|
const { resetAll } = ctx;
|
|
3251
3403
|
const strings = resolveLocaleStrings(ctx.locale);
|
|
3252
|
-
const button = /* @__PURE__ */
|
|
3253
|
-
/* @__PURE__ */
|
|
3404
|
+
const button = /* @__PURE__ */ jsx28("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs26("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
|
|
3405
|
+
/* @__PURE__ */ jsx28(FeatureIcon, { name: "reset" }),
|
|
3254
3406
|
strings.resetAll
|
|
3255
3407
|
] }) });
|
|
3256
3408
|
return actionHost ? createPortal2(button, actionHost) : button;
|
|
3257
3409
|
}
|
|
3258
3410
|
|
|
3259
3411
|
// src/core/controls/ToggleControl.tsx
|
|
3260
|
-
import { jsx as
|
|
3412
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3261
3413
|
function ToggleControl({
|
|
3262
3414
|
id,
|
|
3263
3415
|
label,
|
|
@@ -3279,12 +3431,12 @@ function ToggleControl({
|
|
|
3279
3431
|
onChange(!checked);
|
|
3280
3432
|
}
|
|
3281
3433
|
};
|
|
3282
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ jsx29(
|
|
3283
3435
|
"div",
|
|
3284
3436
|
{
|
|
3285
3437
|
className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
3286
3438
|
style,
|
|
3287
|
-
children: /* @__PURE__ */
|
|
3439
|
+
children: /* @__PURE__ */ jsx29(
|
|
3288
3440
|
"button",
|
|
3289
3441
|
{
|
|
3290
3442
|
id,
|
|
@@ -3298,7 +3450,7 @@ function ToggleControl({
|
|
|
3298
3450
|
disabled: !isInteractive,
|
|
3299
3451
|
onClick: handleClick,
|
|
3300
3452
|
title: unavailableReason || description || toggleLabel,
|
|
3301
|
-
children: /* @__PURE__ */
|
|
3453
|
+
children: /* @__PURE__ */ jsx29(
|
|
3302
3454
|
"span",
|
|
3303
3455
|
{
|
|
3304
3456
|
className: "arap-toggle-knob",
|
|
@@ -3315,7 +3467,7 @@ function ToggleControl({
|
|
|
3315
3467
|
|
|
3316
3468
|
// src/core/controls/ChoiceControl.tsx
|
|
3317
3469
|
import { useCallback as useCallback4, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
3318
|
-
import { jsx as
|
|
3470
|
+
import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3319
3471
|
function ChoiceControl({
|
|
3320
3472
|
id,
|
|
3321
3473
|
label,
|
|
@@ -3371,7 +3523,7 @@ function ChoiceControl({
|
|
|
3371
3523
|
const renderOptionButton = (opt) => {
|
|
3372
3524
|
const isSelected = value === opt.value;
|
|
3373
3525
|
const isOptionDisabled = disabled || Boolean(opt.disabled);
|
|
3374
|
-
return /* @__PURE__ */
|
|
3526
|
+
return /* @__PURE__ */ jsxs27(
|
|
3375
3527
|
"button",
|
|
3376
3528
|
{
|
|
3377
3529
|
type: "button",
|
|
@@ -3385,15 +3537,15 @@ function ChoiceControl({
|
|
|
3385
3537
|
onClick: () => !isOptionDisabled && onChange(opt.value),
|
|
3386
3538
|
title: opt.description,
|
|
3387
3539
|
children: [
|
|
3388
|
-
isSelected && /* @__PURE__ */
|
|
3389
|
-
/* @__PURE__ */
|
|
3390
|
-
opt.badge && /* @__PURE__ */
|
|
3540
|
+
isSelected && /* @__PURE__ */ jsx30("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
3541
|
+
/* @__PURE__ */ jsx30("span", { children: opt.label }),
|
|
3542
|
+
opt.badge && /* @__PURE__ */ jsx30("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
|
|
3391
3543
|
]
|
|
3392
3544
|
},
|
|
3393
3545
|
String(opt.value)
|
|
3394
3546
|
);
|
|
3395
3547
|
};
|
|
3396
|
-
return /* @__PURE__ */
|
|
3548
|
+
return /* @__PURE__ */ jsx30(
|
|
3397
3549
|
"div",
|
|
3398
3550
|
{
|
|
3399
3551
|
ref: containerRef,
|
|
@@ -3404,15 +3556,15 @@ function ChoiceControl({
|
|
|
3404
3556
|
className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
3405
3557
|
style,
|
|
3406
3558
|
onKeyDown: handleKeyDown,
|
|
3407
|
-
children: groups ? groups.map((group) => /* @__PURE__ */
|
|
3559
|
+
children: groups ? groups.map((group) => /* @__PURE__ */ jsxs27(
|
|
3408
3560
|
"div",
|
|
3409
3561
|
{
|
|
3410
3562
|
className: "arap-choice-group",
|
|
3411
3563
|
role: "group",
|
|
3412
3564
|
"aria-label": group.label,
|
|
3413
3565
|
children: [
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3566
|
+
/* @__PURE__ */ jsx30("span", { className: "arap-choice-group-title", children: group.label }),
|
|
3567
|
+
/* @__PURE__ */ jsx30("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
|
|
3416
3568
|
]
|
|
3417
3569
|
},
|
|
3418
3570
|
group.label
|
|
@@ -3422,7 +3574,7 @@ function ChoiceControl({
|
|
|
3422
3574
|
}
|
|
3423
3575
|
|
|
3424
3576
|
// src/core/controls/StepperControl.tsx
|
|
3425
|
-
import { jsx as
|
|
3577
|
+
import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3426
3578
|
function StepperControl({
|
|
3427
3579
|
id,
|
|
3428
3580
|
label,
|
|
@@ -3452,15 +3604,15 @@ function StepperControl({
|
|
|
3452
3604
|
onChange(Math.min(max, Number((value + step).toFixed(2))));
|
|
3453
3605
|
}
|
|
3454
3606
|
};
|
|
3455
|
-
return /* @__PURE__ */
|
|
3607
|
+
return /* @__PURE__ */ jsxs28(
|
|
3456
3608
|
"div",
|
|
3457
3609
|
{
|
|
3458
3610
|
id,
|
|
3459
3611
|
className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
3460
3612
|
style,
|
|
3461
3613
|
children: [
|
|
3462
|
-
/* @__PURE__ */
|
|
3463
|
-
/* @__PURE__ */
|
|
3614
|
+
/* @__PURE__ */ jsxs28("div", { className: "arap-controls", children: [
|
|
3615
|
+
/* @__PURE__ */ jsx31(
|
|
3464
3616
|
"button",
|
|
3465
3617
|
{
|
|
3466
3618
|
type: "button",
|
|
@@ -3471,8 +3623,8 @@ function StepperControl({
|
|
|
3471
3623
|
children: "\u2212"
|
|
3472
3624
|
}
|
|
3473
3625
|
),
|
|
3474
|
-
/* @__PURE__ */
|
|
3475
|
-
/* @__PURE__ */
|
|
3626
|
+
/* @__PURE__ */ jsx31("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
|
|
3627
|
+
/* @__PURE__ */ jsx31(
|
|
3476
3628
|
"button",
|
|
3477
3629
|
{
|
|
3478
3630
|
type: "button",
|
|
@@ -3484,7 +3636,7 @@ function StepperControl({
|
|
|
3484
3636
|
}
|
|
3485
3637
|
)
|
|
3486
3638
|
] }),
|
|
3487
|
-
showSlider && /* @__PURE__ */
|
|
3639
|
+
showSlider && /* @__PURE__ */ jsx31("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx31(
|
|
3488
3640
|
"input",
|
|
3489
3641
|
{
|
|
3490
3642
|
type: "range",
|
|
@@ -3508,7 +3660,7 @@ function StepperControl({
|
|
|
3508
3660
|
}
|
|
3509
3661
|
|
|
3510
3662
|
// src/core/controls/FeatureCard.tsx
|
|
3511
|
-
import { jsx as
|
|
3663
|
+
import { jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3512
3664
|
function FeatureCard({
|
|
3513
3665
|
id,
|
|
3514
3666
|
featureKey,
|
|
@@ -3527,7 +3679,7 @@ function FeatureCard({
|
|
|
3527
3679
|
largeControls = false
|
|
3528
3680
|
}) {
|
|
3529
3681
|
const cardTitle = typeof title === "string" ? title : void 0;
|
|
3530
|
-
return /* @__PURE__ */
|
|
3682
|
+
return /* @__PURE__ */ jsxs29(
|
|
3531
3683
|
"div",
|
|
3532
3684
|
{
|
|
3533
3685
|
id,
|
|
@@ -3536,27 +3688,27 @@ function FeatureCard({
|
|
|
3536
3688
|
className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
3537
3689
|
style,
|
|
3538
3690
|
children: [
|
|
3539
|
-
/* @__PURE__ */
|
|
3540
|
-
/* @__PURE__ */
|
|
3541
|
-
icon ?? (featureKey ? /* @__PURE__ */
|
|
3542
|
-
/* @__PURE__ */
|
|
3691
|
+
/* @__PURE__ */ jsxs29("div", { className: "arap-card-header", children: [
|
|
3692
|
+
/* @__PURE__ */ jsxs29("span", { className: "arap-label", children: [
|
|
3693
|
+
icon ?? (featureKey ? /* @__PURE__ */ jsx32(FeatureIcon, { name: featureKey }) : null),
|
|
3694
|
+
/* @__PURE__ */ jsx32("span", { className: "arap-card-title", children: title })
|
|
3543
3695
|
] }),
|
|
3544
|
-
statusBadge && /* @__PURE__ */
|
|
3696
|
+
statusBadge && /* @__PURE__ */ jsx32("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
|
|
3545
3697
|
] }),
|
|
3546
|
-
description && /* @__PURE__ */
|
|
3547
|
-
status === "error" && errorMessage && /* @__PURE__ */
|
|
3548
|
-
/* @__PURE__ */
|
|
3549
|
-
/* @__PURE__ */
|
|
3698
|
+
description && /* @__PURE__ */ jsx32("p", { className: "arap-card-desc", children: description }),
|
|
3699
|
+
status === "error" && errorMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
|
|
3700
|
+
/* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
|
|
3701
|
+
/* @__PURE__ */ jsx32("span", { children: errorMessage })
|
|
3550
3702
|
] }),
|
|
3551
|
-
status === "unavailable" && unavailableMessage && /* @__PURE__ */
|
|
3552
|
-
/* @__PURE__ */
|
|
3553
|
-
/* @__PURE__ */
|
|
3703
|
+
status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
|
|
3704
|
+
/* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
|
|
3705
|
+
/* @__PURE__ */ jsx32("span", { children: unavailableMessage })
|
|
3554
3706
|
] }),
|
|
3555
|
-
status === "permission-required" && permissionMessage && /* @__PURE__ */
|
|
3556
|
-
/* @__PURE__ */
|
|
3557
|
-
/* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
onRequestPermission && /* @__PURE__ */
|
|
3707
|
+
status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
|
|
3708
|
+
/* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
|
|
3709
|
+
/* @__PURE__ */ jsxs29("div", { className: "arap-permission-content", children: [
|
|
3710
|
+
/* @__PURE__ */ jsx32("span", { children: permissionMessage }),
|
|
3711
|
+
onRequestPermission && /* @__PURE__ */ jsx32(
|
|
3560
3712
|
"button",
|
|
3561
3713
|
{
|
|
3562
3714
|
type: "button",
|
|
@@ -3567,14 +3719,14 @@ function FeatureCard({
|
|
|
3567
3719
|
)
|
|
3568
3720
|
] })
|
|
3569
3721
|
] }),
|
|
3570
|
-
/* @__PURE__ */
|
|
3722
|
+
/* @__PURE__ */ jsx32("div", { className: "arap-card-content", children })
|
|
3571
3723
|
]
|
|
3572
3724
|
}
|
|
3573
3725
|
);
|
|
3574
3726
|
}
|
|
3575
3727
|
|
|
3576
3728
|
// src/core/controls/FeatureStatusState.tsx
|
|
3577
|
-
import { jsx as
|
|
3729
|
+
import { jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3578
3730
|
function SearchCount({
|
|
3579
3731
|
totalCount,
|
|
3580
3732
|
matchedCount,
|
|
@@ -3583,7 +3735,7 @@ function SearchCount({
|
|
|
3583
3735
|
style
|
|
3584
3736
|
}) {
|
|
3585
3737
|
const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
|
|
3586
|
-
return /* @__PURE__ */
|
|
3738
|
+
return /* @__PURE__ */ jsx33(
|
|
3587
3739
|
"div",
|
|
3588
3740
|
{
|
|
3589
3741
|
role: "status",
|
|
@@ -3603,17 +3755,17 @@ function EmptyState({
|
|
|
3603
3755
|
className = "",
|
|
3604
3756
|
style
|
|
3605
3757
|
}) {
|
|
3606
|
-
return /* @__PURE__ */
|
|
3758
|
+
return /* @__PURE__ */ jsxs30(
|
|
3607
3759
|
"div",
|
|
3608
3760
|
{
|
|
3609
3761
|
role: "status",
|
|
3610
3762
|
className: `arap-empty-state ${className}`,
|
|
3611
3763
|
style,
|
|
3612
3764
|
children: [
|
|
3613
|
-
/* @__PURE__ */
|
|
3614
|
-
/* @__PURE__ */
|
|
3615
|
-
/* @__PURE__ */
|
|
3616
|
-
onAction && /* @__PURE__ */
|
|
3765
|
+
/* @__PURE__ */ jsx33("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
|
|
3766
|
+
/* @__PURE__ */ jsx33("h3", { className: "arap-empty-title", children: title }),
|
|
3767
|
+
/* @__PURE__ */ jsx33("p", { className: "arap-empty-desc", children: description }),
|
|
3768
|
+
onAction && /* @__PURE__ */ jsx33("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
|
|
3617
3769
|
]
|
|
3618
3770
|
}
|
|
3619
3771
|
);
|
|
@@ -3626,18 +3778,18 @@ function ErrorState({
|
|
|
3626
3778
|
className = "",
|
|
3627
3779
|
style
|
|
3628
3780
|
}) {
|
|
3629
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsxs30(
|
|
3630
3782
|
"div",
|
|
3631
3783
|
{
|
|
3632
3784
|
role: "alert",
|
|
3633
3785
|
className: `arap-error-state arap-card-alert arap-card-error ${className}`,
|
|
3634
3786
|
style,
|
|
3635
3787
|
children: [
|
|
3636
|
-
/* @__PURE__ */
|
|
3637
|
-
/* @__PURE__ */
|
|
3638
|
-
title && /* @__PURE__ */
|
|
3639
|
-
/* @__PURE__ */
|
|
3640
|
-
onRetry && /* @__PURE__ */
|
|
3788
|
+
/* @__PURE__ */ jsx33("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
|
|
3789
|
+
/* @__PURE__ */ jsxs30("div", { className: "arap-error-content", children: [
|
|
3790
|
+
title && /* @__PURE__ */ jsx33("h4", { className: "arap-error-title", children: title }),
|
|
3791
|
+
/* @__PURE__ */ jsx33("p", { className: "arap-error-message", children: message }),
|
|
3792
|
+
onRetry && /* @__PURE__ */ jsx33("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
|
|
3641
3793
|
] })
|
|
3642
3794
|
]
|
|
3643
3795
|
}
|
|
@@ -3645,7 +3797,7 @@ function ErrorState({
|
|
|
3645
3797
|
}
|
|
3646
3798
|
|
|
3647
3799
|
// src/core/controls/ProfilePreviewCard.tsx
|
|
3648
|
-
import { jsx as
|
|
3800
|
+
import { jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3649
3801
|
function ProfilePreviewCard({
|
|
3650
3802
|
profile,
|
|
3651
3803
|
isActive,
|
|
@@ -3695,7 +3847,7 @@ function ProfilePreviewCard({
|
|
|
3695
3847
|
if (val === null || val === void 0) return "Original";
|
|
3696
3848
|
return String(val);
|
|
3697
3849
|
};
|
|
3698
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ jsxs31(
|
|
3699
3851
|
"div",
|
|
3700
3852
|
{
|
|
3701
3853
|
role: "group",
|
|
@@ -3703,10 +3855,10 @@ function ProfilePreviewCard({
|
|
|
3703
3855
|
className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
3704
3856
|
style,
|
|
3705
3857
|
children: [
|
|
3706
|
-
/* @__PURE__ */
|
|
3707
|
-
/* @__PURE__ */
|
|
3708
|
-
/* @__PURE__ */
|
|
3709
|
-
isActive && /* @__PURE__ */
|
|
3858
|
+
/* @__PURE__ */ jsxs31("div", { className: "arap-profile-header", children: [
|
|
3859
|
+
/* @__PURE__ */ jsxs31("div", { className: "arap-profile-title-row", children: [
|
|
3860
|
+
/* @__PURE__ */ jsx34("h4", { className: "arap-profile-title", children: profile.label }),
|
|
3861
|
+
isActive && /* @__PURE__ */ jsx34(
|
|
3710
3862
|
"span",
|
|
3711
3863
|
{
|
|
3712
3864
|
className: "arap-profile-active-badge",
|
|
@@ -3715,14 +3867,14 @@ function ProfilePreviewCard({
|
|
|
3715
3867
|
}
|
|
3716
3868
|
)
|
|
3717
3869
|
] }),
|
|
3718
|
-
/* @__PURE__ */
|
|
3870
|
+
/* @__PURE__ */ jsx34("p", { className: "arap-profile-desc", children: profile.description })
|
|
3719
3871
|
] }),
|
|
3720
|
-
/* @__PURE__ */
|
|
3721
|
-
/* @__PURE__ */
|
|
3722
|
-
/* @__PURE__ */
|
|
3872
|
+
/* @__PURE__ */ jsxs31("div", { className: "arap-profile-affected", children: [
|
|
3873
|
+
/* @__PURE__ */ jsx34("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
|
|
3874
|
+
/* @__PURE__ */ jsx34("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
|
|
3723
3875
|
const val = profile.settings[key];
|
|
3724
|
-
return /* @__PURE__ */
|
|
3725
|
-
/* @__PURE__ */
|
|
3876
|
+
return /* @__PURE__ */ jsxs31("span", { className: "arap-profile-chip", children: [
|
|
3877
|
+
/* @__PURE__ */ jsxs31("strong", { children: [
|
|
3726
3878
|
formatKeyName(key),
|
|
3727
3879
|
":"
|
|
3728
3880
|
] }),
|
|
@@ -3731,7 +3883,7 @@ function ProfilePreviewCard({
|
|
|
3731
3883
|
] }, key);
|
|
3732
3884
|
}) })
|
|
3733
3885
|
] }),
|
|
3734
|
-
/* @__PURE__ */
|
|
3886
|
+
/* @__PURE__ */ jsx34("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx34(
|
|
3735
3887
|
"button",
|
|
3736
3888
|
{
|
|
3737
3889
|
type: "button",
|
|
@@ -3740,7 +3892,7 @@ function ProfilePreviewCard({
|
|
|
3740
3892
|
"aria-label": `Revert ${profile.label} profile`,
|
|
3741
3893
|
children: "Revert to custom settings"
|
|
3742
3894
|
}
|
|
3743
|
-
) : /* @__PURE__ */
|
|
3895
|
+
) : /* @__PURE__ */ jsx34(
|
|
3744
3896
|
"button",
|
|
3745
3897
|
{
|
|
3746
3898
|
type: "button",
|
|
@@ -3773,11 +3925,13 @@ export {
|
|
|
3773
3925
|
FONT_FAMILY_PRESETS,
|
|
3774
3926
|
FONT_FAMILY_PROTECTED_SELECTOR,
|
|
3775
3927
|
FeatureCard,
|
|
3928
|
+
FocusHighlightController,
|
|
3776
3929
|
FontFamilyController,
|
|
3777
3930
|
FontSizeController,
|
|
3778
3931
|
GrayscaleController,
|
|
3779
3932
|
HideImagesController,
|
|
3780
3933
|
HideVideosController,
|
|
3934
|
+
HighlightFocusController,
|
|
3781
3935
|
InvertColorsController,
|
|
3782
3936
|
LEGIBLE_FONT_STACK,
|
|
3783
3937
|
LINE_HEIGHT_RATIOS,
|
|
@@ -3793,6 +3947,7 @@ export {
|
|
|
3793
3947
|
ResetController,
|
|
3794
3948
|
SaturationController,
|
|
3795
3949
|
SearchCount,
|
|
3950
|
+
SkipToMainLink,
|
|
3796
3951
|
StepperControl,
|
|
3797
3952
|
TEXT_ALIGN_BLOCK_SELECTOR,
|
|
3798
3953
|
TEXT_SCALE_PROTECTED_SELECTOR,
|
|
@@ -3804,6 +3959,7 @@ export {
|
|
|
3804
3959
|
WordSpacingController,
|
|
3805
3960
|
createInitialPreferencesState,
|
|
3806
3961
|
enLocale,
|
|
3962
|
+
findMainLandmark,
|
|
3807
3963
|
getScriptSpacingConstraints,
|
|
3808
3964
|
isForcedColorsActive,
|
|
3809
3965
|
isProtectedFromContrast,
|