@globalpayments/vega 2.87.0-beta.1 → 2.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/action-color-accessibility-validator-15fa91e4.js +1817 -0
- package/dist/cjs/{app-globals-885090b1.js → app-globals-6fbbcb2f.js} +16 -7
- package/dist/cjs/{child-nodes-event-prevent-slimmer-b7498e5a.js → child-nodes-event-prevent-slimmer-01930b4e.js} +1 -1
- package/dist/cjs/{code-block-15411c14.js → code-block-00fee034.js} +31 -13
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-5218e4b3.js → component-value-history-controller-slimmer.abstract-066645b3.js} +25 -5
- package/dist/cjs/{content-state-a69d99b4.js → content-state-d4f54659.js} +66 -54
- package/dist/cjs/{dark-mode-style-controller-bd765afb.js → dark-mode-style-controller-ed481250.js} +41 -2
- package/dist/cjs/{date-required-rule-d65727c5.js → date-required-rule-4cea8fc8.js} +1 -1
- package/dist/cjs/{design-token-3bc36220.js → design-token-ad9f413c.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-f86e6811.js → element-appender-slimmer-d04aa177.js} +2 -2
- package/dist/cjs/{event-emit-slimmer-73c42d7e.js → event-emit-slimmer-5fd6e54a.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-44091874.js → form-field-controller-slimmer-23d112bd.js} +1 -1
- package/dist/cjs/{image-annotation-action-aad07357.js → image-annotation-action-bcf2a1b4.js} +4 -4
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +27 -17
- package/dist/cjs/{inject-keyboard-manager-d06b337e.js → inject-keyboard-manager-acaf1530.js} +1 -1
- package/dist/cjs/{internal-translation-controller-f0da24b2.js → internal-translation-controller-a1250419.js} +8 -0
- package/dist/cjs/{internal-vega-event-manager-063c17cb.js → internal-vega-event-manager-c515cf5e.js} +2 -2
- package/dist/cjs/{keyboard-manager-1e045791.js → keyboard-manager-6821709a.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-861d991f.js → keyboard-manager-slimmer-74528545.js} +1 -1
- package/dist/cjs/loader.cjs.js +13 -12
- package/dist/cjs/{month-view-generator-8ed9818e.js → month-view-generator-61578283.js} +1 -1
- package/dist/cjs/{public-rules-c7726702.js → public-rules-d2fbbbf5.js} +8 -8
- package/dist/cjs/{range-d6fb50a4.js → range-e797475c.js} +1 -1
- package/dist/cjs/replace-selected-text-action-a098523f.js +20 -0
- package/dist/cjs/{responsive-format-facade-9647775d.js → responsive-format-facade-bf330592.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-a1a070ce.js → rich-text-editor-required-rule-ba9d42fa.js} +1 -1
- package/dist/cjs/{split-cell-operation-39b19943.js → split-cell-operation-91ee6894.js} +79 -16
- package/dist/cjs/{state-border-formatter-1a483a9b.js → state-border-formatter-fd194e53.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-2aec209d.js → string-format-strategy.abstract-af9fc35e.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-e061bd10.js → string-input-formatter-slimmer-a3fb1292.js} +1 -1
- package/dist/cjs/{string-mask-strategy-4bc07c00.js → string-mask-strategy-2054f3fb.js} +2 -2
- package/dist/cjs/{style-formatter-263d5eb6.js → style-formatter-7d60fb70.js} +2 -2
- package/dist/cjs/{time-required-rule-f9a7e897.js → time-required-rule-ba450bbd.js} +1 -1
- package/dist/cjs/{token-extension-927062b9.js → token-extension-8b69f7e1.js} +1136 -26
- package/dist/cjs/{translation-slimmer-a4a7f0eb.js → translation-slimmer-aee3fb1c.js} +1 -1
- package/dist/cjs/{type-guard-c1195e50.js → type-guard-424efe26.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-22f3e6cf.js → valid-credit-card-number-rule-6bd5834c.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +22 -15
- package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -1
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-calendar_4.cjs.entry.js +11 -11
- package/dist/cjs/vega-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -9
- package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-swatch.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +23 -10
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +327 -267
- package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-divider.cjs.entry.js +5 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +11 -11
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-f95480b7.js → vega-event-id-39dedd17.js} +2 -0
- package/dist/cjs/vega-field-label.cjs.entry.js +22 -5
- package/dist/cjs/vega-file-uploader.cjs.entry.js +20 -7
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-flex.cjs.entry.js +6 -6
- package/dist/cjs/vega-font.cjs.entry.js +5 -5
- package/dist/cjs/vega-form.cjs.entry.js +7 -7
- package/dist/cjs/vega-grid.cjs.entry.js +5 -5
- package/dist/cjs/vega-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-passcode.cjs.entry.js +23 -10
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +22 -9
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +9 -9
- package/dist/cjs/vega-input.cjs.entry.js +23 -10
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +289 -193
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +400 -0
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +12 -12
- package/dist/cjs/vega-section-title.cjs.entry.js +3 -2
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +20 -9
- package/dist/cjs/vega-textarea.cjs.entry.js +17 -7
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega.cjs.js +13 -12
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +12 -5
- package/dist/collection/components/vega-accordion/vega-accordion.css +23 -0
- package/dist/collection/components/vega-accordion/vega-accordion.js +28 -0
- package/dist/collection/components/vega-box/vega-box.js +3 -3
- package/dist/collection/components/vega-calendar/vega-calendar.js +5 -5
- package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-copy-button-renderer.js +2 -2
- package/dist/collection/components/vega-code-block/vega-code-block.js +4 -0
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.js +4 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +34 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.js +46 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +8 -4
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +3 -3
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +0 -3
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +67 -6
- package/dist/collection/components/vega-field-label/vega-field-label.css +37 -0
- package/dist/collection/components/vega-field-label/vega-field-label.js +40 -0
- package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.js +4 -1
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +34 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +4 -1
- package/dist/collection/components/vega-input/vega-input.js +34 -0
- package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +4 -1
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +34 -0
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.js +4 -1
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/assets/redo.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/undo.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation-style.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/setup.js +29 -29
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +105 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +50 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +4 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.js +61 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/assets/line-height.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/constants.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.js +65 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-extension.js +44 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.js +131 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.js +24 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.js +130 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.js +184 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/types.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.js +85 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.js +210 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.css +66 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.js +174 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/type.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +8 -2
- package/dist/collection/components/vega-rich-text-editor/public-api.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +4 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +44 -0
- package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +1 -1
- package/dist/collection/components/vega-section-title/vega-section-title.js +2 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +4 -0
- package/dist/collection/components/vega-table/vega-table.css +1 -1
- package/dist/collection/components/vega-table/vega-table.js +28 -0
- package/dist/collection/components/vega-textarea/vega-textarea.js +35 -1
- package/dist/collection/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.js +30 -10
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +13 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js +22 -2
- package/dist/collection/helpers/theme/controllers/action-color-accessibility-validator.js +34 -0
- package/dist/collection/helpers/theme/internal-theme-manager.js +39 -2
- package/dist/collection/helpers/theme/theme-manager.js +33 -2
- package/dist/collection/helpers/translation/locales/en.js +8 -0
- package/dist/esm/action-color-accessibility-validator-3d8efb64.js +1815 -0
- package/dist/esm/{app-globals-be458779.js → app-globals-98c3d676.js} +16 -7
- package/dist/esm/{child-nodes-event-prevent-slimmer-0a406a71.js → child-nodes-event-prevent-slimmer-2f823df2.js} +1 -1
- package/dist/esm/{code-block-ff52d912.js → code-block-6261a99d.js} +32 -14
- package/dist/esm/{component-value-history-controller-slimmer.abstract-ad5f29cd.js → component-value-history-controller-slimmer.abstract-07488472.js} +25 -5
- package/dist/esm/{content-state-6fccd284.js → content-state-9bf85e00.js} +66 -54
- package/dist/esm/{dark-mode-style-controller-e9a6b097.js → dark-mode-style-controller-fcda24ec.js} +40 -3
- package/dist/esm/{date-required-rule-70324452.js → date-required-rule-281aab50.js} +1 -1
- package/dist/esm/{design-token-0e6fb2c4.js → design-token-b7ce7ed4.js} +3 -3
- package/dist/esm/{element-appender-slimmer-afe5a638.js → element-appender-slimmer-3926470f.js} +2 -2
- package/dist/esm/{event-emit-slimmer-697ad0b7.js → event-emit-slimmer-0990037c.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-9e70a18d.js → form-field-controller-slimmer-24aca6c4.js} +1 -1
- package/dist/esm/{image-annotation-action-245eaa54.js → image-annotation-action-dadda36f.js} +4 -4
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/index.js +18 -17
- package/dist/esm/{inject-keyboard-manager-05d5db90.js → inject-keyboard-manager-6317d1b3.js} +1 -1
- package/dist/esm/{internal-translation-controller-d8217d93.js → internal-translation-controller-0b9589d0.js} +8 -0
- package/dist/esm/{internal-vega-event-manager-1ac5ee9a.js → internal-vega-event-manager-dc4c3a37.js} +2 -2
- package/dist/esm/{keyboard-manager-26e2fc32.js → keyboard-manager-69761aa6.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-012a9a9b.js → keyboard-manager-slimmer-c2d038f0.js} +1 -1
- package/dist/esm/loader.js +13 -12
- package/dist/esm/{month-view-generator-918f1f88.js → month-view-generator-4c1ee949.js} +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-22320bdf.js → public-rules-da28b413.js} +8 -8
- package/dist/esm/{range-76f8e7dd.js → range-342cbce9.js} +1 -1
- package/dist/esm/replace-selected-text-action-a45bee4b.js +18 -0
- package/dist/esm/{responsive-format-facade-2a1d6398.js → responsive-format-facade-3ca1422d.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-6eb90840.js → rich-text-editor-required-rule-46d0bc5b.js} +1 -1
- package/dist/esm/{split-cell-operation-7652e813.js → split-cell-operation-1d114aa3.js} +79 -16
- package/dist/esm/{state-border-formatter-a243f3fc.js → state-border-formatter-3ebc76a4.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-f6625ed7.js → string-format-strategy.abstract-95d691e1.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-e801bd7e.js → string-input-formatter-slimmer-e18d202c.js} +1 -1
- package/dist/esm/{string-mask-strategy-53cb9b33.js → string-mask-strategy-43d846ac.js} +2 -2
- package/dist/esm/{style-formatter-a622a045.js → style-formatter-197e2fd3.js} +2 -2
- package/dist/esm/{time-required-rule-2fd8df50.js → time-required-rule-78d8ecf1.js} +1 -1
- package/dist/esm/{token-extension-5838c71b.js → token-extension-30011dc4.js} +1128 -27
- package/dist/esm/{translation-slimmer-32353a1c.js → translation-slimmer-49903fc8.js} +1 -1
- package/dist/esm/{type-guard-ed1004cc.js → type-guard-b18807dc.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-7c9d6808.js → valid-credit-card-number-rule-fe1c8a9c.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +22 -15
- package/dist/esm/vega-app-footer.entry.js +1 -1
- package/dist/esm/vega-app-header-button.entry.js +9 -9
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +6 -6
- package/dist/esm/vega-brand-logo.entry.js +1 -1
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +9 -9
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +7 -7
- package/dist/esm/vega-calendar_4.entry.js +11 -11
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +6 -6
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +9 -9
- package/dist/esm/vega-code-block.entry.js +16 -15
- package/dist/esm/vega-color-picker.entry.js +5 -5
- package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
- package/dist/esm/vega-color-swatch.entry.js +5 -5
- package/dist/esm/vega-combo-box.entry.js +23 -10
- package/dist/esm/vega-date-picker_2.entry.js +327 -267
- package/dist/esm/vega-dialog_2.entry.js +7 -7
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +11 -11
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-578c6c6d.js → vega-event-id-20494454.js} +2 -1
- package/dist/esm/vega-field-label.entry.js +22 -5
- package/dist/esm/vega-file-uploader.entry.js +20 -7
- package/dist/esm/vega-flag-icon.entry.js +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +7 -7
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +5 -5
- package/dist/esm/vega-image-uploader.entry.js +10 -10
- package/dist/esm/vega-input-credit-card.entry.js +10 -10
- package/dist/esm/vega-input-numeric.entry.js +9 -9
- package/dist/esm/vega-input-passcode.entry.js +23 -10
- package/dist/esm/vega-input-phone-number.entry.js +22 -9
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +9 -9
- package/dist/esm/vega-input.entry.js +23 -10
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +11 -11
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +9 -9
- package/dist/esm/vega-rich-text-content.entry.js +7 -7
- package/dist/esm/vega-rich-text-editor_4.entry.js +285 -189
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +396 -0
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +12 -12
- package/dist/esm/vega-section-title.entry.js +3 -2
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +8 -8
- package/dist/esm/vega-selection-tile_2.entry.js +6 -6
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +10 -10
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +20 -9
- package/dist/esm/vega-textarea.entry.js +17 -7
- package/dist/esm/vega-time-picker_2.entry.js +13 -13
- package/dist/esm/vega-toggle-switch.entry.js +5 -5
- package/dist/esm/vega-tooltip_2.entry.js +6 -6
- package/dist/esm/vega.js +13 -12
- package/dist/sri/vega-sri-manifest.json +362 -350
- package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +1 -0
- package/dist/types/components/vega-accordion/vega-accordion.d.ts +14 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +1 -1
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +4 -4
- package/dist/types/components/vega-code-block/vega-code-block.d.ts +1 -0
- package/dist/types/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.d.ts +1 -0
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +10 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.d.ts +20 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +2 -1
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +1 -1
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +0 -1
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +22 -2
- package/dist/types/components/vega-field-label/vega-field-label.d.ts +12 -0
- package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.d.ts +1 -0
- package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +10 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +1 -0
- package/dist/types/components/vega-input/vega-input.d.ts +10 -0
- package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +10 -0
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/assets/redo.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/undo.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation-style.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.d.ts +46 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/assets/line-height.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/constants.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-extension.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.d.ts +83 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/types.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.d.ts +66 -0
- package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.d.ts +58 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/type.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table.d.ts +7 -0
- package/dist/types/components/vega-textarea/vega-textarea.d.ts +10 -0
- package/dist/types/components.d.ts +185 -11
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/slimmers/component-value-history-controller-slimmer.abstract.d.ts +13 -0
- package/dist/types/helpers/theme/controllers/action-color-accessibility-validator.d.ts +10 -0
- package/dist/types/helpers/theme/internal-theme-manager.d.ts +28 -1
- package/dist/types/helpers/theme/theme-manager.d.ts +24 -1
- package/dist/types/helpers/theme/theme.d.ts +8 -0
- package/dist/types/helpers/translation/interface.d.ts +10 -1
- package/dist/types/types/components.type.d.ts +11 -10
- package/dist/types/types/public-api.d.ts +1 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/checker.d.ts +177 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/color-math.d.ts +125 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/contrast-check-strategy.d.ts +38 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/search.d.ts +58 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.d.ts +122 -0
- package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.generated.d.ts +2 -0
- package/dist/types/vega-color-token-contrast-checker/src/index.d.ts +2 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-636d890e.entry.js → p-01f617ee.entry.js} +1 -1
- package/dist/vega/{p-fdb97cb7.entry.js → p-03b32939.entry.js} +1 -1
- package/dist/vega/{p-2927b7a1.js → p-05dc6718.js} +1 -1
- package/dist/vega/{p-72e2a587.js → p-0b2ca33b.js} +1 -1
- package/dist/vega/p-0c460945.js +1 -0
- package/dist/vega/{p-d286da1d.entry.js → p-0d248322.entry.js} +1 -1
- package/dist/vega/{p-2b2fefc6.js → p-0d3830f1.js} +1 -1
- package/dist/vega/{p-c45acdc3.entry.js → p-0dafd071.entry.js} +1 -1
- package/dist/vega/{p-a67d52ce.entry.js → p-0edf9c6e.entry.js} +1 -1
- package/dist/vega/{p-a03341d8.entry.js → p-1385da31.entry.js} +1 -1
- package/dist/vega/{p-d1a6e126.entry.js → p-18d1d404.entry.js} +1 -1
- package/dist/vega/{p-aa8f4713.entry.js → p-1d752c37.entry.js} +1 -1
- package/dist/vega/p-1f563387.js +1 -0
- package/dist/vega/{p-e85497ec.entry.js → p-296c90bd.entry.js} +1 -1
- package/dist/vega/p-30f76962.js +3 -0
- package/dist/vega/p-3186995a.entry.js +1 -0
- package/dist/vega/p-3312e3dd.js +1 -0
- package/dist/vega/{p-a0dd08b1.js → p-36e46c4f.js} +1 -1
- package/dist/vega/p-36f3dd19.entry.js +1 -0
- package/dist/vega/{p-d5aad9f0.entry.js → p-3ab50c06.entry.js} +1 -1
- package/dist/vega/{p-31ebace1.js → p-3d6568cc.js} +1 -1
- package/dist/vega/{p-19df2831.entry.js → p-3e2e4b00.entry.js} +1 -1
- package/dist/vega/{p-ff5208f5.entry.js → p-416e89b0.entry.js} +1 -1
- package/dist/vega/{p-79bb216e.entry.js → p-4914a5f8.entry.js} +1 -1
- package/dist/vega/{p-ac26924d.entry.js → p-4f53b45d.entry.js} +1 -1
- package/dist/vega/p-50958342.js +1 -0
- package/dist/vega/{p-2d694684.js → p-518e0a24.js} +1 -1
- package/dist/vega/p-540bd78a.entry.js +1 -0
- package/dist/vega/p-5424e837.js +1 -0
- package/dist/vega/p-54ed506c.entry.js +1 -0
- package/dist/vega/{p-7e7e2f85.entry.js → p-5a960f83.entry.js} +1 -1
- package/dist/vega/{p-879d3cc9.entry.js → p-5c1a4fd7.entry.js} +1 -1
- package/dist/vega/{p-5b43a303.entry.js → p-5c8522eb.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-0b41b49a.entry.js → p-6205288e.entry.js} +1 -1
- package/dist/vega/{p-04a65b3f.js → p-6629a68b.js} +1 -1
- package/dist/vega/p-696d7b8f.js +1 -0
- package/dist/vega/{p-931dac8c.entry.js → p-6ab23e89.entry.js} +1 -1
- package/dist/vega/{p-154cc614.js → p-6bd37d32.js} +1 -1
- package/dist/vega/{p-ce034372.entry.js → p-6be01c6b.entry.js} +1 -1
- package/dist/vega/{p-294cff20.entry.js → p-70e0c3eb.entry.js} +1 -1
- package/dist/vega/{p-4a9c8ec0.entry.js → p-7168ef16.entry.js} +1 -1
- package/dist/vega/{p-ab04eff6.js → p-7292ac20.js} +1 -1
- package/dist/vega/p-7348a091.entry.js +1 -0
- package/dist/vega/{p-19adf714.js → p-788ada42.js} +1 -1
- package/dist/vega/p-7cd8d054.entry.js +1 -0
- package/dist/vega/{p-bee5dfb0.entry.js → p-7dcc0b23.entry.js} +1 -1
- package/dist/vega/{p-189d36ec.js → p-81d55efd.js} +1 -1
- package/dist/vega/{p-8077b117.js → p-8ee917b4.js} +1 -1
- package/dist/vega/{p-52645382.entry.js → p-92468c30.entry.js} +1 -1
- package/dist/vega/{p-3a3720c7.entry.js → p-92710213.entry.js} +1 -1
- package/dist/vega/{p-e8de9535.js → p-9c48e4e5.js} +1 -1
- package/dist/vega/{p-891815d6.js → p-9f03856e.js} +1 -1
- package/dist/vega/{p-7ffe8081.entry.js → p-a0dd5273.entry.js} +1 -1
- package/dist/vega/p-a0fa5ccc.entry.js +1 -0
- package/dist/vega/{p-4a954d9d.entry.js → p-a32ad1ac.entry.js} +1 -1
- package/dist/vega/{p-01a54c29.entry.js → p-a36d4199.entry.js} +1 -1
- package/dist/vega/{p-d97974be.entry.js → p-a53e1a60.entry.js} +1 -1
- package/dist/vega/{p-d4262f06.entry.js → p-a73d8915.entry.js} +1 -1
- package/dist/vega/{p-07225567.entry.js → p-a87bc75a.entry.js} +1 -1
- package/dist/vega/{p-09076646.js → p-abfe46ca.js} +1 -1
- package/dist/vega/p-ad815280.js +1 -0
- package/dist/vega/p-b0fb5099.entry.js +1 -0
- package/dist/vega/{p-d05915af.entry.js → p-b218141f.entry.js} +1 -1
- package/dist/vega/{p-e7c930d9.entry.js → p-b2a0d104.entry.js} +1 -1
- package/dist/vega/{p-3bf3c8bb.entry.js → p-b31802b3.entry.js} +1 -1
- package/dist/vega/{p-255a7387.entry.js → p-b3e97e2f.entry.js} +1 -1
- package/dist/vega/{p-15b4f1ce.entry.js → p-b519b9ab.entry.js} +1 -1
- package/dist/vega/{p-8aee6b74.js → p-b565a6a5.js} +1 -1
- package/dist/vega/{p-2e0bdc53.entry.js → p-b5a3de00.entry.js} +1 -1
- package/dist/vega/p-b5d00d38.entry.js +1 -0
- package/dist/vega/p-b72d7b57.entry.js +1 -0
- package/dist/vega/{p-f5ae99b4.entry.js → p-b7f30f68.entry.js} +1 -1
- package/dist/vega/p-b857a661.js +1 -0
- package/dist/vega/{p-d9d4bdbf.entry.js → p-ba4f23d8.entry.js} +1 -1
- package/dist/vega/{p-5df7ab03.entry.js → p-c0c13993.entry.js} +1 -1
- package/dist/vega/p-c4675cd2.entry.js +1 -0
- package/dist/vega/p-c51e3b9e.js +1 -0
- package/dist/vega/{p-bd47d8a7.entry.js → p-c6201e76.entry.js} +1 -1
- package/dist/vega/p-c84aa55a.js +1 -0
- package/dist/vega/{p-858ec529.js → p-c93dfe23.js} +1 -1
- package/dist/vega/p-cacec680.js +1 -0
- package/dist/vega/{p-186df871.entry.js → p-cd382652.entry.js} +1 -1
- package/dist/vega/{p-49341532.entry.js → p-cdd3af89.entry.js} +1 -1
- package/dist/vega/{p-ec663f00.entry.js → p-ce8a0aa6.entry.js} +1 -1
- package/dist/vega/{p-648be36d.entry.js → p-cf5c6172.entry.js} +1 -1
- package/dist/vega/{p-0a322971.entry.js → p-d1641644.entry.js} +1 -1
- package/dist/vega/p-d2237b95.entry.js +1 -0
- package/dist/vega/{p-76075a1c.entry.js → p-d24892d6.entry.js} +1 -1
- package/dist/vega/p-d25ca0c3.entry.js +1 -0
- package/dist/vega/{p-b69755c7.entry.js → p-d8591207.entry.js} +1 -1
- package/dist/vega/p-da42fde0.js +1 -0
- package/dist/vega/{p-aa4e9a4b.entry.js → p-dc0f7ef1.entry.js} +1 -1
- package/dist/vega/{p-70ae9157.entry.js → p-dcd3b421.entry.js} +1 -1
- package/dist/vega/{p-c19132c9.entry.js → p-df4f9264.entry.js} +1 -1
- package/dist/vega/p-e5726df7.entry.js +1 -0
- package/dist/vega/{p-4c91b13d.js → p-e7fb7eee.js} +1 -1
- package/dist/vega/{p-98dad153.entry.js → p-ea4b5520.entry.js} +1 -1
- package/dist/vega/p-ecbead18.entry.js +1 -0
- package/dist/vega/{p-b02b985d.js → p-f0d70de3.js} +1 -1
- package/dist/vega/{p-78ba7ca9.js → p-f7ad9349.js} +1 -1
- package/dist/vega/{p-a6565e02.js → p-fdf6f368.js} +1 -1
- package/dist/vega/{p-0a261b66.js → p-fea75b87.js} +1 -1
- package/dist/vega/{p-296c5e52.js → p-ffda64ac.js} +1 -1
- package/dist/vega/{p-74a1a82a.entry.js → p-ffe8a826.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +3 -2
- package/dist/vega/p-042933f1.js +0 -1
- package/dist/vega/p-0d97dcb9.js +0 -1
- package/dist/vega/p-1da42a63.entry.js +0 -1
- package/dist/vega/p-281fa1e0.js +0 -1
- package/dist/vega/p-32a0f887.js +0 -1
- package/dist/vega/p-4a6f241d.entry.js +0 -1
- package/dist/vega/p-4dd02704.js +0 -1
- package/dist/vega/p-50fb936f.entry.js +0 -1
- package/dist/vega/p-612808ce.entry.js +0 -1
- package/dist/vega/p-6399b5ed.js +0 -1
- package/dist/vega/p-686e0b6b.entry.js +0 -1
- package/dist/vega/p-6d4faebc.js +0 -1
- package/dist/vega/p-8d36afcc.entry.js +0 -1
- package/dist/vega/p-979a5e91.entry.js +0 -1
- package/dist/vega/p-a2b8d49d.js +0 -1
- package/dist/vega/p-ab4c307b.js +0 -1
- package/dist/vega/p-c41b42eb.entry.js +0 -1
- package/dist/vega/p-ce2d9efe.entry.js +0 -1
- package/dist/vega/p-e46a23fc.entry.js +0 -1
- package/dist/vega/p-e8ea3b16.js +0 -3
- package/dist/vega/p-ea0e922f.entry.js +0 -1
- package/dist/vega/p-ec2333f7.entry.js +0 -1
- package/dist/vega/p-ed2b0e01.entry.js +0 -1
- package/dist/vega/p-ef13b346.js +0 -1
- package/dist/vega/p-fe220f3a.entry.js +0 -1
|
@@ -130,6 +130,7 @@ export type StaticTranslationKey =
|
|
|
130
130
|
| 'Center Align'
|
|
131
131
|
| 'Right Align'
|
|
132
132
|
| 'Justified'
|
|
133
|
+
| 'Line Height'
|
|
133
134
|
| 'Bullets'
|
|
134
135
|
| 'Numbers'
|
|
135
136
|
| 'More Indent'
|
|
@@ -196,4 +197,12 @@ export type StaticTranslationKey =
|
|
|
196
197
|
| 'Color swatch'
|
|
197
198
|
| 'Color {0}'
|
|
198
199
|
| 'Apply'
|
|
199
|
-
| 'Enter color'
|
|
200
|
+
| 'Enter color'
|
|
201
|
+
// RTE Special characters extension
|
|
202
|
+
| 'Special Characters'
|
|
203
|
+
| 'All'
|
|
204
|
+
| 'Latin'
|
|
205
|
+
| 'Mathematical'
|
|
206
|
+
| 'Arrows'
|
|
207
|
+
| 'Currency'
|
|
208
|
+
| '(Optional)';
|
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Link https://github.com/ionic-team/stencil/pull/3710/files#diff-6d39068d58e561ccab3d0a266c838b1c1287fad54ef292183cc0f1871adde751R117-R118
|
|
6
6
|
*/
|
|
7
|
+
export {
|
|
8
|
+
BackgroundColorsTokenType,
|
|
9
|
+
BorderColorsTokenType,
|
|
10
|
+
BordersTokenType,
|
|
11
|
+
BreakpointsTokenType,
|
|
12
|
+
ShadowsTokenType,
|
|
13
|
+
SpacingTokenType,
|
|
14
|
+
TextColorsTokenType,
|
|
15
|
+
TypographyTokenType,
|
|
16
|
+
} from '../types/design-token.type';
|
|
7
17
|
export {
|
|
8
18
|
BorderStyleType,
|
|
9
19
|
BoxDisplayType,
|
|
@@ -47,16 +57,6 @@ export {
|
|
|
47
57
|
} from '../components/vega-app-header-button/types';
|
|
48
58
|
export { VegaBannerActionButtonType, VegaBannerPropType } from '../components/vega-banner/types';
|
|
49
59
|
export { VegaBarChartOptionsType } from '../components/vega-chart/vega-bar-chart/types';
|
|
50
|
-
export {
|
|
51
|
-
BackgroundColorsTokenType,
|
|
52
|
-
BorderColorsTokenType,
|
|
53
|
-
BordersTokenType,
|
|
54
|
-
BreakpointsTokenType,
|
|
55
|
-
ShadowsTokenType,
|
|
56
|
-
SpacingTokenType,
|
|
57
|
-
TextColorsTokenType,
|
|
58
|
-
TypographyTokenType,
|
|
59
|
-
} from '../types/design-token.type';
|
|
60
60
|
export {
|
|
61
61
|
AlignSelfType,
|
|
62
62
|
FlexBasisType,
|
|
@@ -227,6 +227,7 @@ export {
|
|
|
227
227
|
VegaRichTextLinkEditorStatus,
|
|
228
228
|
VegaRTELinkEditorRecord,
|
|
229
229
|
} from '../components/vega-rich-text-editor/vega-rich-text-link-editor/types';
|
|
230
|
+
export { VegaRTESpecialCharacterCategory } from '../components/vega-rich-text-editor/extensions/special-characters/types';
|
|
230
231
|
export { RTETableCellBlock } from '../components/vega-rich-text-editor/extensions/table/dto/table-cell-block';
|
|
231
232
|
export { VegaSectionTitleSizeType } from '../components/vega-section-title/types';
|
|
232
233
|
export { VegaSegmentControlVariant, VegaSegmentProps } from '../components/vega-segment-control/types';
|
|
@@ -4,6 +4,7 @@ export * from '../components/vega-calendar/types';
|
|
|
4
4
|
export { VegaTableNode, VegaTableCellNode, VegaTableCreateElementFunction, VegaTableSorterType, VegaTableCellRenderFunction, VegaTableFormItemProps, VegaTableEditComponentProps, VegaTableCellFormItemRenderFunction, } from '../components/vega-table/interface';
|
|
5
5
|
export { EvaluateResult, FormFieldStatusMeta, FormFieldValueType, } from '../helpers/validator/rules/form-field-validation-rule';
|
|
6
6
|
export { VegaThemeOverrideColors, BrandOptions, NewBrandOptions } from '../helpers/theme/theme';
|
|
7
|
+
export type { ActionColorAccessibilityResult } from '../helpers/theme/controllers/action-color-accessibility-validator';
|
|
7
8
|
export { LogLevelType } from '../utils/log';
|
|
8
9
|
export { VegaDialogOption } from '../helpers/dialog/vega-dialog-controller';
|
|
9
10
|
export { NumberMaskConfig } from '../helpers/formatter/string-formatter/number-mask-strategy';
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { ColorSearchEngine } from './search';
|
|
2
|
+
import { ColorContrastDetail, ContextSurface, ContrastResult, FixabilityRecord, TokenCheckConfig } from './token-checks';
|
|
3
|
+
/**
|
|
4
|
+
* Minimum shape the checker assumes about the override-color input. The checker
|
|
5
|
+
* encapsulates everything actionColor-related (validation, suggestion search,
|
|
6
|
+
* patching) — consumers don't need to wire those callbacks themselves.
|
|
7
|
+
*/
|
|
8
|
+
export interface ActionColorInput {
|
|
9
|
+
actionColor?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Shape returned by the consumer's `generateOverrideThemes` callback.
|
|
13
|
+
*
|
|
14
|
+
* Compatible with vega-stencil's `OverrideColor` (`{ name: string; value: Nullable<string> }`).
|
|
15
|
+
* `value` may be `undefined`/`null` when a token has no override for the supplied input —
|
|
16
|
+
* such entries are dropped from the resulting token map.
|
|
17
|
+
*/
|
|
18
|
+
export interface OverrideTokenEntry {
|
|
19
|
+
name: string;
|
|
20
|
+
value?: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Dependencies required by {@link VegaColorTokenContrastChecker}.
|
|
24
|
+
*
|
|
25
|
+
* Both inputs come from the consumer's design-system layer and stay outside this
|
|
26
|
+
* package because they reference theme-system internals (vega-design's
|
|
27
|
+
* `LightModeColorTokens` and vega-stencil's `VegaColorSchemaOverridingController`).
|
|
28
|
+
*
|
|
29
|
+
* @template TInput Shape of the override-color input. Must extend
|
|
30
|
+
* {@link ActionColorInput} so the checker can operate on `actionColor`.
|
|
31
|
+
*/
|
|
32
|
+
export interface CheckerDeps<TInput extends ActionColorInput> {
|
|
33
|
+
/**
|
|
34
|
+
* Source-of-truth design-token values for the static (non-actionColor-derived)
|
|
35
|
+
* tokens the checker compares against. Format: `Record<tokenName, "r, g, b, a">`.
|
|
36
|
+
* In vega-stencil this is `LightModeColorTokens`, generated by vega-design.
|
|
37
|
+
*/
|
|
38
|
+
fixedSurfaceTokens: Record<string, string>;
|
|
39
|
+
/**
|
|
40
|
+
* Produce the override-token list for an input. Each entry's `value` is a CSS
|
|
41
|
+
* `r g b / a` string (or `null`/`undefined` for "no override"). The checker
|
|
42
|
+
* collapses this list into the resolved token map internally.
|
|
43
|
+
*
|
|
44
|
+
* In vega-stencil this is bound to `VegaColorSchemaOverridingController.generateOverrideThemes`.
|
|
45
|
+
*/
|
|
46
|
+
generateOverrideThemes: (input: TInput) => readonly OverrideTokenEntry[];
|
|
47
|
+
}
|
|
48
|
+
/** Result of {@link VegaColorTokenContrastChecker.validate}. */
|
|
49
|
+
export interface ContrastCheckResult {
|
|
50
|
+
/** `true` when every fixable-by-actionColor token passes WCAG. */
|
|
51
|
+
isAccessible: boolean;
|
|
52
|
+
/** Failing tokens that can be resolved by changing `actionColor`. */
|
|
53
|
+
details: ColorContrastDetail[];
|
|
54
|
+
/**
|
|
55
|
+
* Closest accessible actionColor (by OKLab ΔE) for the suggestion search. Present
|
|
56
|
+
* only when the input had an `actionColor`; equals the input value when the input
|
|
57
|
+
* is already accessible.
|
|
58
|
+
*/
|
|
59
|
+
suggestedActionColor?: string;
|
|
60
|
+
/** `true` when the input's `actionColor` is not a valid color string. */
|
|
61
|
+
invalidInput?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Token-level patches for tokens whose formula hard-caps contrast below the WCAG
|
|
64
|
+
* threshold. Pass back to the override pipeline to apply repairs. Empty when none
|
|
65
|
+
* are needed.
|
|
66
|
+
*/
|
|
67
|
+
contrastCapPatches: Record<string, string>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* WCAG 2.1 AA contrast checker for `actionColor`-driven theme overrides. Combines
|
|
71
|
+
* the static token-pair catalogue (generated at build time) with consumer-supplied
|
|
72
|
+
* design-token values and an override-themes generator, and exposes a single
|
|
73
|
+
* pre-bound instance ready for `validate(input)` / `computeContrastCapPatches(input)`.
|
|
74
|
+
*
|
|
75
|
+
* Stateless against per-call inputs; holds a process-lifetime fixability cache keyed
|
|
76
|
+
* by `(tokenName, pairedWith, compositedOn)` — that property depends only on the
|
|
77
|
+
* catalogue and the override formulas, not on the user's input, so it can be probed
|
|
78
|
+
* once.
|
|
79
|
+
*
|
|
80
|
+
* @template TInput Shape of the override-color input. In vega-stencil this is
|
|
81
|
+
* `VegaThemeOverrideColors`; tests can use a stricter or looser shape.
|
|
82
|
+
*/
|
|
83
|
+
export declare class VegaColorTokenContrastChecker<TInput extends ActionColorInput> {
|
|
84
|
+
/** Static surfaces table, derived from {@link CheckerDeps.fixedSurfaceTokens}. */
|
|
85
|
+
readonly fixedSurfaces: Readonly<Record<string, ContextSurface>>;
|
|
86
|
+
/** Per-instance search engine, pre-bound to {@link fixedSurfaces}. */
|
|
87
|
+
readonly search: ColorSearchEngine;
|
|
88
|
+
private readonly deps;
|
|
89
|
+
private fixabilityCache;
|
|
90
|
+
private static readonly FIXABILITY_PROBE_COLORS;
|
|
91
|
+
constructor(deps: CheckerDeps<TInput>);
|
|
92
|
+
/**
|
|
93
|
+
* Build the resolved token map for an input by collapsing
|
|
94
|
+
* {@link CheckerDeps.generateOverrideThemes} into a `Map<tokenName, value>`,
|
|
95
|
+
* dropping entries with empty values.
|
|
96
|
+
*
|
|
97
|
+
* Public so tests can assert on the materialized map and so the wrapper can
|
|
98
|
+
* re-export it as a convenience helper.
|
|
99
|
+
*
|
|
100
|
+
* @param {TInput} input - Override-color payload.
|
|
101
|
+
* @returns {Map<string, string>} Token name → CSS `r g b / a` value.
|
|
102
|
+
*/
|
|
103
|
+
buildTokenMap(input: TInput): Map<string, string>;
|
|
104
|
+
/**
|
|
105
|
+
* Validate overrides against WCAG 2.1 AA (light mode).
|
|
106
|
+
*
|
|
107
|
+
* @param {TInput} input - Override-color payload to validate.
|
|
108
|
+
* @returns {ContrastCheckResult} Accessibility result, including failing details and optional patches.
|
|
109
|
+
*/
|
|
110
|
+
validate(input: TInput): ContrastCheckResult;
|
|
111
|
+
/**
|
|
112
|
+
* Produce contrast-cap patches for tokens whose formula caps contrast below threshold.
|
|
113
|
+
*
|
|
114
|
+
* Two-tier strategy (minimal impact first):
|
|
115
|
+
* 1. α-ascent: raise alpha to meet contrast (preserves brand hue).
|
|
116
|
+
* 2. RGB shift: closest opaque color satisfying ALL surfaces (linear scan).
|
|
117
|
+
*
|
|
118
|
+
* @param {TInput} input - Override-color payload (must include `actionColor`).
|
|
119
|
+
* @returns {Record<string, string>} Map of tokenName → patched CSS value; empty if no repair needed.
|
|
120
|
+
*/
|
|
121
|
+
computeContrastCapPatches(input: TInput): Record<string, string>;
|
|
122
|
+
/**
|
|
123
|
+
* Compute contrast for a single check using the supplied token map.
|
|
124
|
+
*
|
|
125
|
+
* @param {TokenCheckConfig} check - Check configuration.
|
|
126
|
+
* @param {Map<string, string>} tokenMap - Resolved token map.
|
|
127
|
+
* @returns {ContrastResult | null} Contrast result or null when token/surface can't be resolved.
|
|
128
|
+
*/
|
|
129
|
+
computeTokenContrast(check: TokenCheckConfig, tokenMap: Map<string, string>): ContrastResult | null;
|
|
130
|
+
/**
|
|
131
|
+
* Resolve a `pairedWith` name to a {@link ContextSurface} using this checker's
|
|
132
|
+
* static surface table.
|
|
133
|
+
*
|
|
134
|
+
* @param {string} pairedWith - Token name to resolve.
|
|
135
|
+
* @param {Map<string, string>} tokenMap - Resolved token map (dynamic lookup wins).
|
|
136
|
+
* @returns {ContextSurface | undefined} Resolved surface, or undefined.
|
|
137
|
+
*/
|
|
138
|
+
resolvePairedSurface(pairedWith: string, tokenMap: Map<string, string>): ContextSurface | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Get the per-check fixability record (cached over the process lifetime).
|
|
141
|
+
*
|
|
142
|
+
* @param {TokenCheckConfig} config - Check configuration.
|
|
143
|
+
* @returns {FixabilityRecord} `{ fixable, maxContrast }`.
|
|
144
|
+
*/
|
|
145
|
+
getFixabilityRecord(config: TokenCheckConfig): FixabilityRecord;
|
|
146
|
+
/**
|
|
147
|
+
* Collect failing fixable tokens under the supplied token map.
|
|
148
|
+
*
|
|
149
|
+
* @param {Map<string, string>} tokenMap - Resolved token map.
|
|
150
|
+
* @param {boolean} earlyExit - If true, return after first failure.
|
|
151
|
+
* @returns {ColorContrastDetail[]} Array of failing token detail entries.
|
|
152
|
+
*/
|
|
153
|
+
collectFailures(tokenMap: Map<string, string>, earlyExit?: boolean): ColorContrastDetail[];
|
|
154
|
+
/**
|
|
155
|
+
* Fast check: all fixable tokens pass contrast under the supplied token map.
|
|
156
|
+
*
|
|
157
|
+
* @param {Map<string, string>} tokenMap - Resolved token map.
|
|
158
|
+
* @returns {boolean} True if all fixable tokens pass.
|
|
159
|
+
*/
|
|
160
|
+
isAccessible(tokenMap: Map<string, string>): boolean;
|
|
161
|
+
/** Empty `actionColor` is allowed (means "no override"); when present it must be a valid color. */
|
|
162
|
+
private static isValidActionColor;
|
|
163
|
+
/** Produce a new input with a different `actionColor`, preserving every other field. */
|
|
164
|
+
private withActionColor;
|
|
165
|
+
private static fixabilityCacheKey;
|
|
166
|
+
private buildFixabilityCache;
|
|
167
|
+
/**
|
|
168
|
+
* Find the closest accessible actionColor (by OKLab ΔE) within ±5° hue tolerance.
|
|
169
|
+
*
|
|
170
|
+
* @param {TInput} input - Current override input.
|
|
171
|
+
* @param {string} actionColor - Current action color hex (already extracted by validate()).
|
|
172
|
+
* @returns {string | undefined} Suggested hex, or undefined if none feasible.
|
|
173
|
+
*/
|
|
174
|
+
private findSuggestedActionColor;
|
|
175
|
+
/** Verify a candidate value passes all checks for a token. */
|
|
176
|
+
private verifyCandidateSatisfiesAll;
|
|
177
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/** Returns true if the string is a valid 3- or 6-digit hex color (with optional `#`). */
|
|
2
|
+
export declare function isValidHexColor(hex: string): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Returns true if the string is a valid color in any supported format:
|
|
5
|
+
* hex (3/6 digits), rgb(), or rgba().
|
|
6
|
+
*/
|
|
7
|
+
export declare function isValidColor(color: string): boolean;
|
|
8
|
+
export declare type RgbColor = {
|
|
9
|
+
r: number;
|
|
10
|
+
g: number;
|
|
11
|
+
b: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type ParsedTokenValue = {
|
|
14
|
+
rgb: RgbColor;
|
|
15
|
+
a: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type OklabColor = {
|
|
18
|
+
L: number;
|
|
19
|
+
a: number;
|
|
20
|
+
b: number;
|
|
21
|
+
};
|
|
22
|
+
/** OKLCH — cylindrical OKLab. `h` is in degrees. */
|
|
23
|
+
export declare type OklchColor = {
|
|
24
|
+
L: number;
|
|
25
|
+
C: number;
|
|
26
|
+
h: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Calculate the contrast ratio between two colors per WCAG 2.0. The operation is
|
|
30
|
+
* symmetric, so callers don't need to sort the arguments.
|
|
31
|
+
*
|
|
32
|
+
* @param {RgbColor} a - First color.
|
|
33
|
+
* @param {RgbColor} b - Second color.
|
|
34
|
+
* @returns {number} WCAG contrast ratio.
|
|
35
|
+
* @see https://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
|
36
|
+
*/
|
|
37
|
+
export declare function getContrastRatio(a: RgbColor, b: RgbColor): number;
|
|
38
|
+
/**
|
|
39
|
+
* Composite a semi-transparent foreground color over an opaque background using the
|
|
40
|
+
* standard alpha compositing formula.
|
|
41
|
+
*
|
|
42
|
+
* @param {RgbColor} fg - Foreground color.
|
|
43
|
+
* @param {number} fgAlpha - Foreground alpha (0–1).
|
|
44
|
+
* @param {RgbColor} bg - Background color.
|
|
45
|
+
* @returns {RgbColor} Composited opaque color.
|
|
46
|
+
*/
|
|
47
|
+
export declare function alphaComposite(fg: RgbColor, fgAlpha: number, bg: RgbColor): RgbColor;
|
|
48
|
+
/**
|
|
49
|
+
* Convert an RGB color to its hex string representation.
|
|
50
|
+
*
|
|
51
|
+
* @param {RgbColor} color - RGB color to convert.
|
|
52
|
+
* @returns {string} Hex color string with leading `#`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function rgbToHex(color: RgbColor): string;
|
|
55
|
+
/**
|
|
56
|
+
* Parse a 3- or 6-char hex string into an RGB triplet.
|
|
57
|
+
*
|
|
58
|
+
* Throws on malformed input rather than returning a silently-NaN-poisoned color — a bad
|
|
59
|
+
* hex here is a programmer error (invalid `actionColor` on `VegaThemeOverrideColors`) and
|
|
60
|
+
* a fail-fast surface is easier to debug than garbage-propagating contrast ratios.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} hex - Hex color string (3 or 6 digits, optional `#` prefix).
|
|
63
|
+
* @returns {RgbColor} Parsed RGB triplet.
|
|
64
|
+
*/
|
|
65
|
+
export declare function hexToRgb(hex: string): RgbColor;
|
|
66
|
+
/**
|
|
67
|
+
* Parse any supported color format (hex, rgb(), rgba()) into an RGB triplet.
|
|
68
|
+
*
|
|
69
|
+
* Throws on malformed input. Alpha from rgba() is discarded — actionColor is opaque.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} color - Color string in hex, rgb(), or rgba() format.
|
|
72
|
+
* @returns {RgbColor} Parsed RGB triplet.
|
|
73
|
+
*/
|
|
74
|
+
export declare function parseColorToRgb(color: string): RgbColor;
|
|
75
|
+
/**
|
|
76
|
+
* Format a token value back to the `r g b / a` shape consumed by the theme layer.
|
|
77
|
+
*
|
|
78
|
+
* @param {RgbColor} rgb - RGB color.
|
|
79
|
+
* @param {number} alpha - Alpha value (0–1).
|
|
80
|
+
* @returns {string} Formatted token value string.
|
|
81
|
+
*/
|
|
82
|
+
export declare function formatTokenValue(rgb: RgbColor, alpha: number): string;
|
|
83
|
+
/**
|
|
84
|
+
* Inverse of {@link formatTokenValue}. Returns `null` on unparseable input.
|
|
85
|
+
*
|
|
86
|
+
* @param {string} value - Token value string in `r g b / a` format.
|
|
87
|
+
* @returns {ParsedTokenValue | null} Parsed result or null.
|
|
88
|
+
*/
|
|
89
|
+
export declare function parseTokenValue(value: string): ParsedTokenValue | null;
|
|
90
|
+
/**
|
|
91
|
+
* Convert an RGB color to its OKLab representation.
|
|
92
|
+
*
|
|
93
|
+
* @param {RgbColor} rgb - RGB color to convert.
|
|
94
|
+
* @returns {OklabColor} OKLab color.
|
|
95
|
+
*/
|
|
96
|
+
export declare function rgbToOklab(rgb: RgbColor): OklabColor;
|
|
97
|
+
/**
|
|
98
|
+
* Convert an OKLab color to its RGB representation.
|
|
99
|
+
*
|
|
100
|
+
* @param {OklabColor} lab - OKLab color to convert.
|
|
101
|
+
* @returns {RgbColor} RGB color.
|
|
102
|
+
*/
|
|
103
|
+
export declare function oklabToRgb(lab: OklabColor): RgbColor;
|
|
104
|
+
/**
|
|
105
|
+
* Convert an OKLab color to its OKLCH (cylindrical) representation.
|
|
106
|
+
*
|
|
107
|
+
* @param {OklabColor} lab - OKLab color to convert.
|
|
108
|
+
* @returns {OklchColor} OKLCH color.
|
|
109
|
+
*/
|
|
110
|
+
export declare function oklabToOklch(lab: OklabColor): OklchColor;
|
|
111
|
+
/**
|
|
112
|
+
* Convert an OKLCH color to its OKLab (Cartesian) representation.
|
|
113
|
+
*
|
|
114
|
+
* @param {OklchColor} lch - OKLCH color to convert.
|
|
115
|
+
* @returns {OklabColor} OKLab color.
|
|
116
|
+
*/
|
|
117
|
+
export declare function oklchToOklab(lch: OklchColor): OklabColor;
|
|
118
|
+
/**
|
|
119
|
+
* Perceptual color distance in OKLab (Euclidean ΔE, since OKLab is designed to be uniform).
|
|
120
|
+
*
|
|
121
|
+
* @param {OklabColor} a - First OKLab color.
|
|
122
|
+
* @param {OklabColor} b - Second OKLab color.
|
|
123
|
+
* @returns {number} Euclidean distance in OKLab space.
|
|
124
|
+
*/
|
|
125
|
+
export declare function oklabDeltaE(a: OklabColor, b: OklabColor): number;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ParsedTokenValue, RgbColor } from './color-math';
|
|
2
|
+
/**
|
|
3
|
+
* Resolved paired surface — RGB color + alpha, used as the counterpart in contrast checks.
|
|
4
|
+
* Structurally identical to the `ContextSurface` exported from `token-checks.ts`.
|
|
5
|
+
*/
|
|
6
|
+
declare type ContextSurface = {
|
|
7
|
+
rgb: RgbColor;
|
|
8
|
+
a: number;
|
|
9
|
+
};
|
|
10
|
+
/** WCAG 2.1 AA minimum contrast ratio for normal-size text. */
|
|
11
|
+
export declare const WCAG_AA_NORMAL_TEXT: number;
|
|
12
|
+
/** WCAG 2.1 AA minimum contrast ratio for UI components and large text. */
|
|
13
|
+
export declare const WCAG_AA_NON_TEXT_CONTRAST: number;
|
|
14
|
+
/** Rendered foreground/background pair for a single check. */
|
|
15
|
+
export declare type FgBgPair = {
|
|
16
|
+
fg: RgbColor;
|
|
17
|
+
bg: RgbColor;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Abstract strategy for computing the rendered fg/bg pair from a token and its paired surface.
|
|
21
|
+
* Each subclass implements the compositing logic specific to its WCAG check category.
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class ContrastCheckStrategy {
|
|
24
|
+
/** WCAG AA required contrast ratio for this check category. */
|
|
25
|
+
abstract readonly requiredRatio: number;
|
|
26
|
+
/**
|
|
27
|
+
* Compute the effective foreground and background colors for contrast measurement.
|
|
28
|
+
*
|
|
29
|
+
* @param {ParsedTokenValue} token - Parsed token value (rgb + alpha).
|
|
30
|
+
* @param {ContextSurface} paired - The paired surface resolved from the catalogue.
|
|
31
|
+
* @param {ContextSurface | undefined} compositedOn - Optional override composite surface.
|
|
32
|
+
* @returns {FgBgPair} Rendered foreground and background.
|
|
33
|
+
*/
|
|
34
|
+
abstract computeFgBg(token: ParsedTokenValue, paired: ContextSurface, compositedOn?: ContextSurface): FgBgPair;
|
|
35
|
+
}
|
|
36
|
+
/** Strategy registry — maps check type to its strategy instance. */
|
|
37
|
+
export declare const STRATEGY_MAP: Record<string, ContrastCheckStrategy>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { RgbColor } from './color-math';
|
|
2
|
+
import { ContextSurface, TokenCheckConfig } from './token-checks';
|
|
3
|
+
/**
|
|
4
|
+
* Search engine for finding perceptually-closest feasible colors in OKLCH space and
|
|
5
|
+
* resolving minimum-alpha / RGB-shift fixes for WCAG contrast requirements.
|
|
6
|
+
*
|
|
7
|
+
* The constructor takes the static `fixedSurfaces` table and the `bg-primary` RGB used
|
|
8
|
+
* as the underlying composite surface for semi-transparent paint. Both come from the
|
|
9
|
+
* design-token map supplied by the consumer.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ColorSearchEngine {
|
|
12
|
+
private readonly fixedSurfaces;
|
|
13
|
+
private readonly lightBgPrimary;
|
|
14
|
+
constructor(fixedSurfaces: Readonly<Record<string, ContextSurface>>);
|
|
15
|
+
/** Binary-search iterations on L axis; 10 → ~0.001 precision. */
|
|
16
|
+
private static readonly SUGGESTION_SEARCH_ITERATIONS;
|
|
17
|
+
/** Hue offsets (degrees) sampled during search; ±5° preserves brand hue family. */
|
|
18
|
+
private static readonly SUGGESTION_HUE_OFFSETS_DEG;
|
|
19
|
+
/** Chroma multipliers sampled during search; allows modest saturation drift. */
|
|
20
|
+
private static readonly SUGGESTION_CHROMA_SCALES;
|
|
21
|
+
/** Chroma below which the origin is treated as achromatic (hue/chroma grid skipped). */
|
|
22
|
+
private static readonly ACHROMATIC_CHROMA_EPSILON;
|
|
23
|
+
/** Uniform L-axis steps for linear scan; 100 → 0.01 precision, enough for narrow bands. */
|
|
24
|
+
private static readonly L_SCAN_STEPS;
|
|
25
|
+
/** 2⁻⁷ ≈ 0.008 precision; matches 2-decimal output rounding. */
|
|
26
|
+
private static readonly ALPHA_ASCENT_ITERATIONS;
|
|
27
|
+
/**
|
|
28
|
+
* Find the closest feasible color (by OKLab ΔE) within a (hue ± 5°, chroma × 0.6–1.4) grid.
|
|
29
|
+
*
|
|
30
|
+
* @param {RgbColor} origin - Starting RGB color to search from.
|
|
31
|
+
* @param {Function} isFeasible - Predicate returning true if a candidate RGB meets constraints.
|
|
32
|
+
* @param {boolean} assumeMonotone - `true`: binary search on L (fast, monotone predicate required);
|
|
33
|
+
* `false`: linear scan on L (handles internal-band feasibility).
|
|
34
|
+
* @returns {RgbColor | undefined} Closest feasible RGB, or `undefined` if none found in envelope.
|
|
35
|
+
*/
|
|
36
|
+
searchClosestFeasibleInOklch(origin: RgbColor, isFeasible: (rgb: RgbColor) => boolean, assumeMonotone?: boolean): RgbColor | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Binary-search for the minimum alpha that makes composite contrast ≥ threshold.
|
|
39
|
+
* Result is ceil-rounded to 2 decimals. Returns `undefined` if α=1.0 still fails.
|
|
40
|
+
*
|
|
41
|
+
* @param {RgbColor} rgb - Token's base RGB color.
|
|
42
|
+
* @param {number} currentAlpha - Current alpha (lower bound for search).
|
|
43
|
+
* @param {TokenCheckConfig} checkConfig - Token check configuration (pairing, type, compositedOn).
|
|
44
|
+
* @param {number} threshold - Required WCAG contrast ratio.
|
|
45
|
+
* @param {Map<string, string>} tokenMap - Resolved token map for surface lookups.
|
|
46
|
+
* @returns {number | undefined} Minimum alpha (ceil-rounded), or `undefined` if infeasible.
|
|
47
|
+
*/
|
|
48
|
+
findMinimumAlphaForContrast(rgb: RgbColor, currentAlpha: number, checkConfig: TokenCheckConfig, threshold: number, tokenMap: Map<string, string>): number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Find the closest opaque RGB (by OKLab ΔE) satisfying WCAG threshold against all configs.
|
|
51
|
+
*
|
|
52
|
+
* @param {RgbColor} originalRgb - Starting RGB color.
|
|
53
|
+
* @param {TokenCheckConfig[]} configs - Token check configs (one per paired surface).
|
|
54
|
+
* @param {Map<string, string>} tokenMap - Resolved token map for surface lookups.
|
|
55
|
+
* @returns {RgbColor | undefined} Closest feasible RGB, or `undefined` if none found.
|
|
56
|
+
*/
|
|
57
|
+
findRgbPatchForContrastAll(originalRgb: RgbColor, configs: TokenCheckConfig[], tokenMap: Map<string, string>): RgbColor | undefined;
|
|
58
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { RgbColor } from './color-math';
|
|
2
|
+
/**
|
|
3
|
+
* A paired-with surface — the color value the token's rendered output is compared
|
|
4
|
+
* against. Carries an alpha because some tokens (e.g. v2-new-brand `text-on-action` =
|
|
5
|
+
* `252,252,254,0.9`) are themselves semi-transparent and must be composited onto their
|
|
6
|
+
* own background before contrast is measured.
|
|
7
|
+
*/
|
|
8
|
+
export declare type ContextSurface = {
|
|
9
|
+
rgb: RgbColor;
|
|
10
|
+
a: number;
|
|
11
|
+
};
|
|
12
|
+
/** Static token catalogue entry — produced by the build-time generator. */
|
|
13
|
+
export declare type TokenCheckConfig = {
|
|
14
|
+
tokenName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the token whose rendered surface this check is measured against. Resolved
|
|
17
|
+
* by {@link resolvePairedSurface} — actionColor-derived tokens are looked up in
|
|
18
|
+
* `tokenMap`; static design tokens fall through to the `fixedSurfaces` table.
|
|
19
|
+
*/
|
|
20
|
+
pairedWith: string;
|
|
21
|
+
/**
|
|
22
|
+
* Contrast check category — determines which {@link ContrastCheckStrategy} handles the
|
|
23
|
+
* fg/bg computation and which WCAG AA threshold applies:
|
|
24
|
+
* - `'bg-text'`: token is a background; paired text sits on top (4.5:1).
|
|
25
|
+
* - `'text-bg'`: token is foreground text; paired surface is behind (4.5:1).
|
|
26
|
+
* - `'non-text-contrast'`: token is a border/ring/UI element (3:1).
|
|
27
|
+
*/
|
|
28
|
+
type: 'bg-text' | 'text-bg' | 'non-text-contrast';
|
|
29
|
+
/**
|
|
30
|
+
* Override the surface the token is alpha-composited onto when computing its rendered
|
|
31
|
+
* color. Normally a semi-transparent `non-text-contrast` token is composited onto its
|
|
32
|
+
* `pairedWith` surface. For box-shadow rings that paint *outside* an element (on the
|
|
33
|
+
* page background) but are compared against the element's fill, set this to
|
|
34
|
+
* `'bg-primary'` so the composite matches what the browser actually renders.
|
|
35
|
+
*/
|
|
36
|
+
compositedOn?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Detail type for failing tokens — used by the validator's public result. */
|
|
39
|
+
export declare type ColorContrastDetail = {
|
|
40
|
+
tokenName: string;
|
|
41
|
+
contrastRatio: number;
|
|
42
|
+
requiredRatio: number;
|
|
43
|
+
};
|
|
44
|
+
/** Contrast computation result including rendered colors. */
|
|
45
|
+
export declare type ContrastResult = {
|
|
46
|
+
fg: RgbColor;
|
|
47
|
+
bg: RgbColor;
|
|
48
|
+
contrastRatio: number;
|
|
49
|
+
};
|
|
50
|
+
/** Per-check fixability record. */
|
|
51
|
+
export declare type FixabilityRecord = {
|
|
52
|
+
fixable: boolean;
|
|
53
|
+
maxContrast: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Names of the static design tokens that have no `overrideGetter` — the surfaces every
|
|
57
|
+
* actionColor-derived token may be paired with. Source-of-truth for which static tokens
|
|
58
|
+
* the checker must know about. Kept here (not in the consumer) so adding new pair targets
|
|
59
|
+
* is a one-line change in this package.
|
|
60
|
+
*
|
|
61
|
+
* Each entry's real SCSS consumer is documented in the catalogue's inline comment.
|
|
62
|
+
* `bg-action-tertiary` is α=0 (fully transparent) — composites collapse to `bg-primary`.
|
|
63
|
+
*/
|
|
64
|
+
export declare const FIXED_PAIRED_SURFACE_TOKENS: readonly string[];
|
|
65
|
+
/**
|
|
66
|
+
* Parse the comma-separated `r, g, b, a` shape used by the generated `*-color-tokens.ts` files.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} value - Comma-separated string in `"r, g, b, a"` format (e.g. `"252, 252, 254, 0.9"`).
|
|
69
|
+
* @returns {ContextSurface} Parsed {@link ContextSurface} with `rgb` and `a` fields.
|
|
70
|
+
* @throws {Error} If the string has fewer than 4 parts or contains non-numeric values.
|
|
71
|
+
*/
|
|
72
|
+
export declare function parseCommaTokenValue(value: string): ContextSurface;
|
|
73
|
+
/**
|
|
74
|
+
* Build the fixed paired-surface table from the consumer's static design-token map.
|
|
75
|
+
*
|
|
76
|
+
* @param {Record<string, string>} designTokens - Source design tokens (token name → "r, g, b, a").
|
|
77
|
+
* @returns {Readonly<Record<string, ContextSurface>>} Frozen table for the checker.
|
|
78
|
+
*/
|
|
79
|
+
export declare function buildFixedPairedSurfaces(designTokens: Record<string, string>): Readonly<Record<string, ContextSurface>>;
|
|
80
|
+
/**
|
|
81
|
+
* Resolve a `pairedWith` name to its rendered {@link ContextSurface}.
|
|
82
|
+
*
|
|
83
|
+
* Lookup order:
|
|
84
|
+
* 1. **`tokenMap` (actionColor-derived)** — covers every token that has an
|
|
85
|
+
* `overrideGetter` and therefore depends on `actionColor`.
|
|
86
|
+
* 2. **`fixedSurfaces`** — covers the static design tokens that have no `overrideGetter`.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} pairedWith - Token name to resolve.
|
|
89
|
+
* @param {Map<string, string>} tokenMap - Resolved token map for dynamic lookups.
|
|
90
|
+
* @param {Readonly<Record<string, ContextSurface>>} fixedSurfaces - Static surface table.
|
|
91
|
+
* @returns {ContextSurface | undefined} Resolved surface, or undefined if not found.
|
|
92
|
+
*/
|
|
93
|
+
export declare function resolvePairedSurface(pairedWith: string, tokenMap: Map<string, string>, fixedSurfaces: Readonly<Record<string, ContextSurface>>): ContextSurface | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Resolve a paired surface to its rendered foreground RGB when it sits on top of `bg`.
|
|
96
|
+
* For opaque surfaces this is a no-op; for `text-on-action` (α<1) it performs the alpha
|
|
97
|
+
* composite the browser does at paint time, so the contrast ratio we compute matches
|
|
98
|
+
* what axe / Chrome DevTools see.
|
|
99
|
+
*
|
|
100
|
+
* @param {ContextSurface} surface - Surface to resolve.
|
|
101
|
+
* @param {RgbColor} bg - Background color for alpha compositing.
|
|
102
|
+
* @returns {RgbColor} Effective foreground RGB.
|
|
103
|
+
*/
|
|
104
|
+
export declare function effectiveFgRgb(surface: ContextSurface, bg: RgbColor): RgbColor;
|
|
105
|
+
/**
|
|
106
|
+
* Return the WCAG AA required contrast ratio for a check type.
|
|
107
|
+
*
|
|
108
|
+
* @param {TokenCheckConfig['type']} type - Check type.
|
|
109
|
+
* @returns {number} Required contrast ratio.
|
|
110
|
+
*/
|
|
111
|
+
export declare function requiredRatioFor(type: TokenCheckConfig['type']): number;
|
|
112
|
+
/**
|
|
113
|
+
* Compute the contrast ratio + rendered colors for a single token check under a given
|
|
114
|
+
* `actionColor`. Returns null when the token has no override value, the value can't be
|
|
115
|
+
* parsed, or the paired surface fails to resolve (catalogue typo).
|
|
116
|
+
*
|
|
117
|
+
* @param {TokenCheckConfig} checkConfig - Token check configuration.
|
|
118
|
+
* @param {Map<string, string>} tokenMap - Resolved token map for surface lookups.
|
|
119
|
+
* @param {Readonly<Record<string, ContextSurface>>} fixedSurfaces - Static surface table.
|
|
120
|
+
* @returns {ContrastResult | null} Contrast result or null.
|
|
121
|
+
*/
|
|
122
|
+
export declare function computeTokenContrast(checkConfig: TokenCheckConfig, tokenMap: Map<string, string>, fixedSurfaces: Readonly<Record<string, ContextSurface>>): ContrastResult | null;
|
package/dist/vega/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getCurrentBreakpoint}from"./p-49a2e141.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-
|
|
1
|
+
export{g as getCurrentBreakpoint}from"./p-49a2e141.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-788ada42.js";export{c as camelToDashCase}from"./p-02841589.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-f7ad9349.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{d as BoxDisplay,e as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-d4ea8e22.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{A as ActionHandlerInterceptor,I as InsertNodeToNearestRootAction,y as RTELanguageToolbarButtonRenderer,v as RTETokenNode,x as RTETokenNodeRenderer,R as RTETokenToolbarButtonRenderer,b as VegaEventManager,V as VegaLoader,a as VegaNotify,h as VegaRTEDefaultLineHeightOptions,s as VegaRTEExtension,t as VegaRTEExtensionRenderer,i as VegaRTEFunctionExtension,g as VegaRTELanguageExtension,r as VegaRTELineHeightExtension,o as VegaRTESpecialCharactersArrows,p as VegaRTESpecialCharactersCurrency,l as VegaRTESpecialCharactersEssentials,k as VegaRTESpecialCharactersExtension,m as VegaRTESpecialCharactersLatin,n as VegaRTESpecialCharactersMathematical,q as VegaRTESpecialCharactersText,j as VegaRTETableExtension,f as VegaRTETokenExtension,u as VegaRTEToolbarButtonRenderer,d as VegaSkeletonLoader,e as VegaTranslation,c as VegaZIndexManager,w as waitForVega}from"./p-50958342.js";export{F as FeatureFlag}from"./p-dcf162e9.js";export{V as VegaThemeManager}from"./p-b857a661.js";export{V as VegaDialog}from"./p-b6be1f33.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-c84aa55a.js";export{V as VegaIconManager}from"./p-1704ff25.js";export{V as ValidCreditCardNumberRule}from"./p-c93dfe23.js";import"./p-ec2a1d4c.js";export{s as VegaTranslationResourceEN}from"./p-fea75b87.js";export{s as setVegaNonce}from"./p-4866e390.js";export{g as ActionHandleStrategy,h as AppendChildrenAction,ab as CodeLanguage,o as CustomAttributeAnnotation,E as CustomClassAnnotation,r as CustomStyleAnnotation,I as InsertChildrenAfterAction,j as InsertChildrenBeforeAction,M as ModifyContentAction,l as ModifyContentActionType,f as RTEAnnotationStyle,d as RTEBlock,G as RTEDecoratorNode,p as RTEFilterStylesStrategy,i as RTENode,e as RTETextBlock,c as RTETextNode,n as RemoveChildrenAction,ac as VegaRTEDefaultTextStyleItems,V as VegaRTEPresetToolbarItems}from"./p-3312e3dd.js";export{B as BlockToRTEBlockStrategyAbstract,a as ElementToDTOStrategy,I as InsertNewParagraphAction,b as RTEImageBlock,f as RTEImageNode,e as RTEListBlock,d as RTEListItemBlock,U as UpdateCursorPositionAction,V as VegaRTEContent,h as htmlElementToAnnotationGenerator}from"./p-30f76962.js";export{G as GridColumns,a as GridRows}from"./p-f0d70de3.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-81d55efd.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-cacec680.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-36e46c4f.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";export{R as RTERange}from"./p-0b2ca33b.js";import"./p-0c460945.js";import"./p-8b5d3a52.js";import"./p-9a6bd32c.js";import"./p-6a334573.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-b75ee3ba.js";import"./p-b6c3ce6d.js";import"./p-a7b5f497.js";import"./p-724df1f5.js";import"./p-11e2dcf5.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-05dc6718.js";import"./p-3a93730e.js";import"./p-77e64f26.js";import"./p-b565a6a5.js";import"./p-a528714c.js";import"./p-fb5ea4b2.js";import"./p-f0e828d8.js";import"./p-0c667d6a.js";import"./p-a841cf13.js";import"./p-1bc5b3bc.js";import"./p-1f563387.js";import"./p-982747ef.js";import"./p-abd7aeaa.js";import"./p-d27ae9ff.js";const N=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{N as Rings}
|