@salesforce/design-system-react 11.0.0-alpha.9 → 11.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/cjs/components/accordion/index.cjs.map +1 -1
- package/dist/cjs/components/accordion/panel.cjs.map +1 -1
- package/dist/cjs/components/alert/index.cjs +1 -1
- package/dist/cjs/components/alert/index.cjs.map +1 -1
- package/dist/cjs/components/builder-header/index.cjs +1 -1
- package/dist/cjs/components/builder-header/index.cjs.map +1 -1
- package/dist/cjs/components/builder-header/nav-dropdown.cjs +1 -1
- package/dist/cjs/components/builder-header/nav-dropdown.cjs.map +1 -1
- package/dist/cjs/components/builder-header/nav-link.cjs +1 -1
- package/dist/cjs/components/builder-header/nav-link.cjs.map +1 -1
- package/dist/cjs/components/builder-header/nav.cjs +1 -1
- package/dist/cjs/components/builder-header/nav.cjs.map +1 -1
- package/dist/cjs/components/builder-header/toolbar.cjs +1 -1
- package/dist/cjs/components/builder-header/toolbar.cjs.map +1 -1
- package/dist/cjs/components/builder-header/utilities.cjs +1 -1
- package/dist/cjs/components/builder-header/utilities.cjs.map +1 -1
- package/dist/cjs/components/button/check-props.cjs +2 -0
- package/dist/cjs/components/button/check-props.cjs.map +1 -0
- package/dist/cjs/components/button/component.cjs +2 -0
- package/dist/cjs/components/button/component.cjs.map +1 -0
- package/dist/cjs/components/button/index.cjs +1 -1
- package/dist/cjs/components/button/index.cjs.map +1 -1
- package/dist/cjs/components/button-group/index.cjs +1 -1
- package/dist/cjs/components/button-group/index.cjs.map +1 -1
- package/dist/cjs/components/button-stateful/check-props.cjs +1 -1
- package/dist/cjs/components/button-stateful/check-props.cjs.map +1 -1
- package/dist/cjs/components/button-stateful/index.cjs +1 -1
- package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
- package/dist/cjs/components/card/filter.cjs.map +1 -1
- package/dist/cjs/components/card/index.cjs +1 -1
- package/dist/cjs/components/card/index.cjs.map +1 -1
- package/dist/cjs/components/carousel/index.cjs +1 -1
- package/dist/cjs/components/carousel/index.cjs.map +1 -1
- package/dist/cjs/components/carousel/private/carousel-indicators.cjs.map +1 -1
- package/dist/cjs/components/carousel/private/carousel-item.cjs +1 -1
- package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs.map +1 -1
- package/dist/cjs/components/checkbox/index.cjs +1 -1
- package/dist/cjs/components/checkbox/index.cjs.map +1 -1
- package/dist/cjs/components/color-picker/check-props.cjs +1 -1
- package/dist/cjs/components/color-picker/check-props.cjs.map +1 -1
- package/dist/cjs/components/color-picker/color-picker.cjs +1 -1
- package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/color-picker-tabs.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/custom-color-form.cjs +1 -1
- package/dist/cjs/components/color-picker/private/custom-color-form.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/custom-color.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/hsv-color.cjs +1 -1
- package/dist/cjs/components/color-picker/private/hsv-color.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/swatch-option.cjs +1 -1
- package/dist/cjs/components/color-picker/private/swatch-option.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/swatch-picker.cjs +1 -1
- package/dist/cjs/components/color-picker/private/swatch-picker.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/swatch.cjs +1 -1
- package/dist/cjs/components/color-picker/private/swatch.cjs.map +1 -1
- package/dist/cjs/components/combobox/check-props.cjs +1 -1
- package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
- package/dist/cjs/components/combobox/combobox.cjs +1 -1
- package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
- package/dist/cjs/components/combobox/component.cjs +1 -1
- package/dist/cjs/components/combobox/component.cjs.map +1 -1
- package/dist/cjs/components/combobox/index.cjs +1 -1
- package/dist/cjs/components/combobox/index.cjs.map +1 -1
- package/dist/cjs/components/combobox/private/menu.cjs +1 -1
- package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
- package/dist/cjs/components/date-picker/check-props.cjs +1 -1
- package/dist/cjs/components/date-picker/check-props.cjs.map +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
- package/dist/cjs/components/date-picker/index.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/calendar-wrapper.cjs +1 -1
- package/dist/cjs/components/date-picker/private/calendar-wrapper.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/calendar.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/day.cjs +1 -1
- package/dist/cjs/components/date-picker/private/day.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/week.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/year-picklist.cjs.map +1 -1
- package/dist/cjs/components/docked-composer/index.cjs +1 -1
- package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
- package/dist/cjs/components/expandable-section/index.cjs +1 -1
- package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
- package/dist/cjs/components/files/file.cjs +1 -8
- package/dist/cjs/components/files/file.cjs.map +1 -1
- package/dist/cjs/components/files/index.cjs +1 -1
- package/dist/cjs/components/files/index.cjs.map +1 -1
- package/dist/cjs/components/files/private/file-actions.cjs +1 -1
- package/dist/cjs/components/files/private/file-actions.cjs.map +1 -1
- package/dist/cjs/components/files/private/file-figure.cjs +1 -1
- package/dist/cjs/components/files/private/file-figure.cjs.map +1 -1
- package/dist/cjs/components/filter/filter.cjs +1 -1
- package/dist/cjs/components/filter/filter.cjs.map +1 -1
- package/dist/cjs/components/filter/private/error-id-context.cjs +2 -0
- package/dist/cjs/components/filter/private/error-id-context.cjs.map +1 -0
- package/dist/cjs/components/grid/index.cjs +1 -1
- package/dist/cjs/components/grid/index.cjs.map +1 -1
- package/dist/cjs/components/icon/button-icon/index.cjs +1 -1
- package/dist/cjs/components/icon/button-icon/index.cjs.map +1 -1
- package/dist/cjs/components/icon/check-props.cjs +2 -0
- package/dist/cjs/components/icon/check-props.cjs.map +1 -0
- package/dist/cjs/components/icon/component.cjs +2 -0
- package/dist/cjs/components/icon/component.cjs.map +1 -0
- package/dist/cjs/components/icon/index.cjs +1 -1
- package/dist/cjs/components/icon/index.cjs.map +1 -1
- package/dist/cjs/components/icon/input-icon/index.cjs +1 -1
- package/dist/cjs/components/icon/input-icon/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs.map +1 -1
- package/dist/cjs/components/input/index.cjs +1 -1
- package/dist/cjs/components/input/index.cjs.map +1 -1
- package/dist/cjs/components/input/private/inner-input.cjs +1 -1
- package/dist/cjs/components/input/private/inner-input.cjs.map +1 -1
- package/dist/cjs/components/input/search.cjs +1 -1
- package/dist/cjs/components/input/search.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/button-trigger.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/button-trigger.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
- package/dist/cjs/components/modal/index.cjs +1 -1
- package/dist/cjs/components/modal/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/check-props.cjs +1 -1
- package/dist/cjs/components/page-header/check-props.cjs.map +1 -1
- package/dist/cjs/components/page-header/control.cjs.map +1 -1
- package/dist/cjs/components/page-header/index.cjs +1 -1
- package/dist/cjs/components/page-header/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/detail-block.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/detail-row.cjs +1 -1
- package/dist/cjs/components/page-header/private/detail-row.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/info.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/related-list/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/related-list/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/title.cjs +1 -1
- package/dist/cjs/components/page-header/private/title.cjs.map +1 -1
- package/dist/cjs/components/panel/filtering/check-props.cjs +1 -1
- package/dist/cjs/components/panel/filtering/check-props.cjs.map +1 -1
- package/dist/cjs/components/panel/filtering/group.cjs +1 -1
- package/dist/cjs/components/panel/filtering/group.cjs.map +1 -1
- package/dist/cjs/components/panel/filtering/list.cjs +1 -1
- package/dist/cjs/components/panel/filtering/list.cjs.map +1 -1
- package/dist/cjs/components/pill/index.cjs +1 -1
- package/dist/cjs/components/pill/index.cjs.map +1 -1
- package/dist/cjs/components/pill-container/index.cjs +1 -1
- package/dist/cjs/components/pill-container/index.cjs.map +1 -1
- package/dist/cjs/components/pill-container/private/selected-listbox.cjs.map +1 -1
- package/dist/cjs/components/popover/edit-dialog.cjs +1 -1
- package/dist/cjs/components/popover/edit-dialog.cjs.map +1 -1
- package/dist/cjs/components/popover/index.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +1 -1
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/index.cjs +1 -1
- package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/private/step.cjs +1 -1
- package/dist/cjs/components/progress-indicator/private/step.cjs.map +1 -1
- package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
- package/dist/cjs/components/radio/check-props.cjs +1 -1
- package/dist/cjs/components/radio/check-props.cjs.map +1 -1
- package/dist/cjs/components/radio/index.cjs +1 -1
- package/dist/cjs/components/radio/index.cjs.map +1 -1
- package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
- package/dist/cjs/components/radio-button-group/radio.cjs.map +1 -1
- package/dist/cjs/components/radio-group/index.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs.map +1 -1
- package/dist/cjs/components/scoped-notification/check-props.cjs +2 -0
- package/dist/cjs/components/scoped-notification/check-props.cjs.map +1 -0
- package/dist/cjs/components/scoped-notification/component.cjs +2 -0
- package/dist/cjs/components/scoped-notification/component.cjs.map +1 -0
- package/dist/cjs/components/scoped-notification/index.cjs +1 -1
- package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/index.cjs +1 -1
- package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/cell.cjs +1 -1
- package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/column-check-props.cjs +1 -1
- package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/column.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/interactive-element.cjs +1 -1
- package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/corner-style.cjs +2 -0
- package/dist/cjs/components/simple-data-table/private/corner-style.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/head.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/link.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/row.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/table-context.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/row-actions.cjs +1 -1
- package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -1
- package/dist/cjs/components/slider/index.cjs.map +1 -1
- package/dist/cjs/components/spinner/check-props.cjs +1 -1
- package/dist/cjs/components/spinner/check-props.cjs.map +1 -1
- package/dist/cjs/components/spinner/index.cjs +1 -1
- package/dist/cjs/components/spinner/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/header.cjs.map +1 -1
- package/dist/cjs/components/split-view/listbox.cjs +1 -1
- package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/list-item-content.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/list-item-with-content.cjs.map +1 -1
- package/dist/cjs/components/tabs/index.cjs +1 -1
- package/dist/cjs/components/tabs/index.cjs.map +1 -1
- package/dist/cjs/components/tabs/private/tab.cjs +1 -1
- package/dist/cjs/components/tabs/private/tab.cjs.map +1 -1
- package/dist/cjs/components/textarea/check-props.cjs +1 -1
- package/dist/cjs/components/textarea/check-props.cjs.map +1 -1
- package/dist/cjs/components/textarea/index.cjs +1 -1
- package/dist/cjs/components/textarea/index.cjs.map +1 -1
- package/dist/cjs/components/toast/index.cjs +1 -1
- package/dist/cjs/components/toast/index.cjs.map +1 -1
- package/dist/cjs/components/tooltip/check-props.cjs +1 -1
- package/dist/cjs/components/tooltip/check-props.cjs.map +1 -1
- package/dist/cjs/components/tooltip/index.cjs +1 -3
- package/dist/cjs/components/tooltip/index.cjs.map +1 -1
- package/dist/cjs/components/tooltip/private/field-level-help-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/private/field-level-help-tooltip.cjs.map +1 -1
- package/dist/cjs/components/tree/check-props.cjs +1 -1
- package/dist/cjs/components/tree/private/branch.cjs +1 -1
- package/dist/cjs/components/tree/private/branch.cjs.map +1 -1
- package/dist/cjs/components/tree/private/item.cjs +1 -1
- package/dist/cjs/components/tree/private/item.cjs.map +1 -1
- package/dist/cjs/components/tree/private/render-branch.cjs +1 -1
- package/dist/cjs/components/tree/private/render-branch.cjs.map +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/trial-bar/button.cjs +1 -1
- package/dist/cjs/components/trial-bar/button.cjs.map +1 -1
- package/dist/cjs/components/trial-bar/dropdown.cjs +1 -1
- package/dist/cjs/components/trial-bar/dropdown.cjs.map +1 -1
- package/dist/cjs/components/utilities/dialog/index.cjs +1 -1
- package/dist/cjs/components/utilities/dialog/index.cjs.map +1 -1
- package/dist/cjs/components/utilities/dialog/portal.cjs +1 -1
- package/dist/cjs/components/utilities/dialog/portal.cjs.map +1 -1
- package/dist/cjs/components/utilities/menu-list/index.cjs +1 -26
- package/dist/cjs/components/utilities/menu-list/index.cjs.map +1 -1
- package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
- package/dist/cjs/components/utilities/menu-list/item.cjs.map +1 -1
- package/dist/cjs/components/utilities/pill/index.cjs +1 -1
- package/dist/cjs/components/utilities/utility-icon/index.cjs +1 -1
- package/dist/cjs/components/utilities/utility-icon/index.cjs.map +1 -1
- package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
- package/dist/cjs/components/vertical-navigation/private/item.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
- package/dist/cjs/components/visual-picker/check-props.cjs +2 -0
- package/dist/cjs/components/visual-picker/check-props.cjs.map +1 -0
- package/dist/cjs/components/visual-picker/index.cjs +1 -1
- package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
- package/dist/cjs/components/visual-picker/link.cjs +1 -1
- package/dist/cjs/components/visual-picker/link.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/tile.cjs +1 -1
- package/dist/cjs/components/welcome-mat/tile.cjs.map +1 -1
- package/dist/cjs/utilities/color.cjs +1 -1
- package/dist/cjs/utilities/color.cjs.map +1 -1
- package/dist/cjs/utilities/constants.cjs +1 -1
- package/dist/cjs/utilities/constants.cjs.map +1 -1
- package/dist/cjs/utilities/dom-element-focus.cjs +1 -1
- package/dist/cjs/utilities/dom-element-focus.cjs.map +1 -1
- package/dist/cjs/utilities/event.cjs +1 -1
- package/dist/cjs/utilities/event.cjs.map +1 -1
- package/dist/cjs/utilities/execution-environment.cjs.map +1 -1
- package/dist/cjs/utilities/get-aria-props.cjs +1 -1
- package/dist/cjs/utilities/get-aria-props.cjs.map +1 -1
- package/dist/cjs/utilities/get-data-props.cjs +1 -1
- package/dist/cjs/utilities/get-data-props.cjs.map +1 -1
- package/dist/cjs/utilities/hooks/use-click-outside.cjs.map +1 -1
- package/dist/cjs/utilities/hooks/use-latest-ref.cjs +2 -0
- package/dist/cjs/utilities/hooks/use-latest-ref.cjs.map +1 -0
- package/dist/cjs/utilities/is-element-of-type.cjs +2 -0
- package/dist/cjs/utilities/is-element-of-type.cjs.map +1 -0
- package/dist/cjs/utilities/key-callbacks.cjs +1 -1
- package/dist/cjs/utilities/key-callbacks.cjs.map +1 -1
- package/dist/cjs/utilities/key-code.cjs +1 -1
- package/dist/cjs/utilities/key-code.cjs.map +1 -1
- package/dist/cjs/utilities/key-letter-menu-item-select.cjs +1 -1
- package/dist/cjs/utilities/key-letter-menu-item-select.cjs.map +1 -1
- package/dist/cjs/utilities/keyboard-navigable-dialog.cjs +1 -1
- package/dist/cjs/utilities/keyboard-navigable-dialog.cjs.map +1 -1
- package/dist/cjs/utilities/keyboard-navigate.cjs +1 -1
- package/dist/cjs/utilities/keyboard-navigate.cjs.map +1 -1
- package/dist/cjs/utilities/merge-props.cjs +2 -0
- package/dist/cjs/utilities/merge-props.cjs.map +1 -0
- package/dist/cjs/utilities/product-tokens/icon-backgrounds.cjs.map +1 -1
- package/dist/cjs/utilities/warning/children-as-trigger.cjs +2 -0
- package/dist/cjs/utilities/warning/children-as-trigger.cjs.map +1 -0
- package/dist/cjs/utilities/warning/deprecated-property-value.cjs +1 -1
- package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +1 -1
- package/dist/cjs/utilities/warning/deprecated-property.cjs +1 -1
- package/dist/cjs/utilities/warning/deprecated-property.cjs.map +1 -1
- package/dist/cjs/utilities/warning/has-children-without-display-name-of.cjs +1 -1
- package/dist/cjs/utilities/warning/has-children-without-display-name-of.cjs.map +1 -1
- package/dist/cjs/utilities/warning/if-one-then-both-required-property.cjs +1 -1
- package/dist/cjs/utilities/warning/if-one-then-both-required-property.cjs.map +1 -1
- package/dist/cjs/utilities/warning/is-trigger-tabbable.cjs +1 -1
- package/dist/cjs/utilities/warning/is-trigger-tabbable.cjs.map +1 -1
- package/dist/cjs/utilities/warning/low-priority-warning.cjs.map +1 -1
- package/dist/cjs/utilities/warning/one-of-required-property.cjs +1 -1
- package/dist/cjs/utilities/warning/one-of-required-property.cjs.map +1 -1
- package/dist/cjs/utilities/warning/only-one-of-properties.cjs +1 -1
- package/dist/cjs/utilities/warning/only-one-of-properties.cjs.map +1 -1
- package/dist/cjs/utilities/warning/render-function-return-contents-lack-display-name.cjs +1 -1
- package/dist/cjs/utilities/warning/render-function-return-contents-lack-display-name.cjs.map +1 -1
- package/dist/cjs/utilities/warning/required-property.cjs +1 -1
- package/dist/cjs/utilities/warning/required-property.cjs.map +1 -1
- package/dist/cjs/utilities/warning/sunset-property.cjs +1 -1
- package/dist/cjs/utilities/warning/sunset-property.cjs.map +1 -1
- package/dist/cjs/utilities/warning/warned-registry.cjs +2 -0
- package/dist/cjs/utilities/warning/warned-registry.cjs.map +1 -0
- package/dist/es/components/accordion/index.js.map +1 -1
- package/dist/es/components/accordion/panel.js.map +1 -1
- package/dist/es/components/alert/index.js +22 -23
- package/dist/es/components/alert/index.js.map +1 -1
- package/dist/es/components/builder-header/index.js +15 -22
- package/dist/es/components/builder-header/index.js.map +1 -1
- package/dist/es/components/builder-header/nav-dropdown.js +22 -23
- package/dist/es/components/builder-header/nav-dropdown.js.map +1 -1
- package/dist/es/components/builder-header/nav-link.js +4 -4
- package/dist/es/components/builder-header/nav-link.js.map +1 -1
- package/dist/es/components/builder-header/nav.js +10 -7
- package/dist/es/components/builder-header/nav.js.map +1 -1
- package/dist/es/components/builder-header/toolbar.js +20 -18
- package/dist/es/components/builder-header/toolbar.js.map +1 -1
- package/dist/es/components/builder-header/utilities.js +9 -6
- package/dist/es/components/builder-header/utilities.js.map +1 -1
- package/dist/es/components/button/check-props.js +14 -0
- package/dist/es/components/button/check-props.js.map +1 -0
- package/dist/es/components/button/component.js +31 -0
- package/dist/es/components/button/component.js.map +1 -0
- package/dist/es/components/button/index.js +91 -80
- package/dist/es/components/button/index.js.map +1 -1
- package/dist/es/components/button-group/index.js +24 -17
- package/dist/es/components/button-group/index.js.map +1 -1
- package/dist/es/components/button-stateful/check-props.js +1 -1
- package/dist/es/components/button-stateful/check-props.js.map +1 -1
- package/dist/es/components/button-stateful/index.js +96 -96
- package/dist/es/components/button-stateful/index.js.map +1 -1
- package/dist/es/components/card/filter.js.map +1 -1
- package/dist/es/components/card/index.js +39 -36
- package/dist/es/components/card/index.js.map +1 -1
- package/dist/es/components/carousel/index.js +156 -127
- package/dist/es/components/carousel/index.js.map +1 -1
- package/dist/es/components/carousel/private/carousel-indicators.js.map +1 -1
- package/dist/es/components/carousel/private/carousel-item.js +1 -1
- package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
- package/dist/es/components/checkbox/check-props.js +1 -1
- package/dist/es/components/checkbox/check-props.js.map +1 -1
- package/dist/es/components/checkbox/index.js +137 -134
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/color-picker/check-props.js +21 -13
- package/dist/es/components/color-picker/check-props.js.map +1 -1
- package/dist/es/components/color-picker/color-picker.js +184 -165
- package/dist/es/components/color-picker/color-picker.js.map +1 -1
- package/dist/es/components/color-picker/private/color-picker-tabs.js.map +1 -1
- package/dist/es/components/color-picker/private/custom-color-form.js +4 -4
- package/dist/es/components/color-picker/private/custom-color-form.js.map +1 -1
- package/dist/es/components/color-picker/private/custom-color.js.map +1 -1
- package/dist/es/components/color-picker/private/hsv-color.js +17 -21
- package/dist/es/components/color-picker/private/hsv-color.js.map +1 -1
- package/dist/es/components/color-picker/private/swatch-option.js +2 -2
- package/dist/es/components/color-picker/private/swatch-option.js.map +1 -1
- package/dist/es/components/color-picker/private/swatch-picker.js +7 -7
- package/dist/es/components/color-picker/private/swatch-picker.js.map +1 -1
- package/dist/es/components/color-picker/private/swatch.js +1 -1
- package/dist/es/components/color-picker/private/swatch.js.map +1 -1
- package/dist/es/components/combobox/check-props.js +21 -14
- package/dist/es/components/combobox/check-props.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +597 -630
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/combobox/component.js +1 -1
- package/dist/es/components/combobox/component.js.map +1 -1
- package/dist/es/components/combobox/index.js +6 -19
- package/dist/es/components/combobox/index.js.map +1 -1
- package/dist/es/components/combobox/private/menu.js +11 -11
- package/dist/es/components/combobox/private/menu.js.map +1 -1
- package/dist/es/components/date-picker/check-props.js +1 -1
- package/dist/es/components/date-picker/check-props.js.map +1 -1
- package/dist/es/components/date-picker/date-picker.js +163 -168
- package/dist/es/components/date-picker/date-picker.js.map +1 -1
- package/dist/es/components/date-picker/index.js.map +1 -1
- package/dist/es/components/date-picker/private/calendar-wrapper.js +6 -6
- package/dist/es/components/date-picker/private/calendar-wrapper.js.map +1 -1
- package/dist/es/components/date-picker/private/calendar.js.map +1 -1
- package/dist/es/components/date-picker/private/day.js +11 -11
- package/dist/es/components/date-picker/private/day.js.map +1 -1
- package/dist/es/components/date-picker/private/week.js.map +1 -1
- package/dist/es/components/date-picker/private/year-picklist.js.map +1 -1
- package/dist/es/components/docked-composer/index.js +71 -43
- package/dist/es/components/docked-composer/index.js.map +1 -1
- package/dist/es/components/dynamic-icon/index.js +21 -16
- package/dist/es/components/dynamic-icon/index.js.map +1 -1
- package/dist/es/components/expandable-section/index.js +18 -18
- package/dist/es/components/expandable-section/index.js.map +1 -1
- package/dist/es/components/files/file.js +10 -12
- package/dist/es/components/files/file.js.map +1 -1
- package/dist/es/components/files/index.js +4 -8
- package/dist/es/components/files/index.js.map +1 -1
- package/dist/es/components/files/private/file-actions.js +25 -21
- package/dist/es/components/files/private/file-actions.js.map +1 -1
- package/dist/es/components/files/private/file-figure.js +1 -1
- package/dist/es/components/files/private/file-figure.js.map +1 -1
- package/dist/es/components/filter/filter.js +76 -70
- package/dist/es/components/filter/filter.js.map +1 -1
- package/dist/es/components/filter/private/error-id-context.js +7 -0
- package/dist/es/components/filter/private/error-id-context.js.map +1 -0
- package/dist/es/components/grid/index.js +1 -1
- package/dist/es/components/grid/index.js.map +1 -1
- package/dist/es/components/icon/button-icon/index.js +2 -3
- package/dist/es/components/icon/button-icon/index.js.map +1 -1
- package/dist/es/components/icon/check-props.js +17 -0
- package/dist/es/components/icon/check-props.js.map +1 -0
- package/dist/es/components/icon/component.js +31 -0
- package/dist/es/components/icon/component.js.map +1 -0
- package/dist/es/components/icon/index.js +45 -44
- package/dist/es/components/icon/index.js.map +1 -1
- package/dist/es/components/icon/input-icon/index.js +8 -8
- package/dist/es/components/icon/input-icon/index.js.map +1 -1
- package/dist/es/components/index.js +83 -84
- package/dist/es/components/input/check-props.js +7 -11
- package/dist/es/components/input/check-props.js.map +1 -1
- package/dist/es/components/input/index.js +113 -115
- package/dist/es/components/input/index.js.map +1 -1
- package/dist/es/components/input/private/inner-input.js +1 -1
- package/dist/es/components/input/private/inner-input.js.map +1 -1
- package/dist/es/components/input/search.js +3 -3
- package/dist/es/components/input/search.js.map +1 -1
- package/dist/es/components/menu-dropdown/button-trigger.js +58 -47
- package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
- package/dist/es/components/menu-dropdown/check-props.js +14 -11
- package/dist/es/components/menu-dropdown/check-props.js.map +1 -1
- package/dist/es/components/menu-dropdown/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/menu-dropdown.js +256 -264
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/modal/index.js +6 -7
- package/dist/es/components/modal/index.js.map +1 -1
- package/dist/es/components/page-header/check-props.js +2 -2
- package/dist/es/components/page-header/check-props.js.map +1 -1
- package/dist/es/components/page-header/control.js.map +1 -1
- package/dist/es/components/page-header/index.js +33 -33
- package/dist/es/components/page-header/index.js.map +1 -1
- package/dist/es/components/page-header/private/base/index.js +24 -36
- package/dist/es/components/page-header/private/base/index.js.map +1 -1
- package/dist/es/components/page-header/private/controls.js +19 -25
- package/dist/es/components/page-header/private/controls.js.map +1 -1
- package/dist/es/components/page-header/private/detail-block.js.map +1 -1
- package/dist/es/components/page-header/private/detail-row.js +1 -1
- package/dist/es/components/page-header/private/detail-row.js.map +1 -1
- package/dist/es/components/page-header/private/info.js.map +1 -1
- package/dist/es/components/page-header/private/object-home/index.js +37 -50
- package/dist/es/components/page-header/private/object-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/record-home/index.js +26 -38
- package/dist/es/components/page-header/private/record-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/related-list/index.js +0 -2
- package/dist/es/components/page-header/private/related-list/index.js.map +1 -1
- package/dist/es/components/page-header/private/title.js +5 -4
- package/dist/es/components/page-header/private/title.js.map +1 -1
- package/dist/es/components/panel/filtering/check-props.js +2 -2
- package/dist/es/components/panel/filtering/check-props.js.map +1 -1
- package/dist/es/components/panel/filtering/group.js +5 -6
- package/dist/es/components/panel/filtering/group.js.map +1 -1
- package/dist/es/components/panel/filtering/list.js +19 -12
- package/dist/es/components/panel/filtering/list.js.map +1 -1
- package/dist/es/components/pill/index.js +9 -9
- package/dist/es/components/pill/index.js.map +1 -1
- package/dist/es/components/pill-container/index.js +11 -7
- package/dist/es/components/pill-container/index.js.map +1 -1
- package/dist/es/components/pill-container/private/selected-listbox.js.map +1 -1
- package/dist/es/components/popover/edit-dialog.js +9 -6
- package/dist/es/components/popover/edit-dialog.js.map +1 -1
- package/dist/es/components/popover/index.js.map +1 -1
- package/dist/es/components/popover/popover.js +231 -209
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/progress-indicator/check-props.js +8 -7
- package/dist/es/components/progress-indicator/check-props.js.map +1 -1
- package/dist/es/components/progress-indicator/index.js +73 -60
- package/dist/es/components/progress-indicator/index.js.map +1 -1
- package/dist/es/components/progress-indicator/private/step-vertical.js +2 -2
- package/dist/es/components/progress-indicator/private/step-vertical.js.map +1 -1
- package/dist/es/components/progress-indicator/private/step.js +2 -4
- package/dist/es/components/progress-indicator/private/step.js.map +1 -1
- package/dist/es/components/progress-ring/index.js.map +1 -1
- package/dist/es/components/radio/check-props.js +2 -2
- package/dist/es/components/radio/check-props.js.map +1 -1
- package/dist/es/components/radio/index.js +28 -23
- package/dist/es/components/radio/index.js.map +1 -1
- package/dist/es/components/radio-button-group/index.js.map +1 -1
- package/dist/es/components/radio-button-group/radio.js.map +1 -1
- package/dist/es/components/radio-group/index.js +2 -2
- package/dist/es/components/radio-group/index.js.map +1 -1
- package/dist/es/components/scoped-notification/check-props.js +13 -0
- package/dist/es/components/scoped-notification/check-props.js.map +1 -0
- package/dist/es/components/scoped-notification/component.js +31 -0
- package/dist/es/components/scoped-notification/component.js.map +1 -0
- package/dist/es/components/scoped-notification/index.js +31 -29
- package/dist/es/components/scoped-notification/index.js.map +1 -1
- package/dist/es/components/setup-assistant/index.js +22 -24
- package/dist/es/components/setup-assistant/index.js.map +1 -1
- package/dist/es/components/setup-assistant/step.js +43 -41
- package/dist/es/components/setup-assistant/step.js.map +1 -1
- package/dist/es/components/simple-data-table/cell.js +10 -7
- package/dist/es/components/simple-data-table/cell.js.map +1 -1
- package/dist/es/components/simple-data-table/check-props.js +1 -1
- package/dist/es/components/simple-data-table/check-props.js.map +1 -1
- package/dist/es/components/simple-data-table/column-check-props.js +16 -8
- package/dist/es/components/simple-data-table/column-check-props.js.map +1 -1
- package/dist/es/components/simple-data-table/column.js.map +1 -1
- package/dist/es/components/simple-data-table/index.js +163 -149
- package/dist/es/components/simple-data-table/index.js.map +1 -1
- package/dist/es/components/simple-data-table/interactive-element.js +36 -24
- package/dist/es/components/simple-data-table/interactive-element.js.map +1 -1
- package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -1
- package/dist/es/components/simple-data-table/private/corner-style.js +9 -0
- package/dist/es/components/simple-data-table/private/corner-style.js.map +1 -0
- package/dist/es/components/simple-data-table/private/head.js +65 -42
- package/dist/es/components/simple-data-table/private/head.js.map +1 -1
- package/dist/es/components/simple-data-table/private/header-cell.js +5 -4
- package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -1
- package/dist/es/components/simple-data-table/private/link.js +13 -14
- package/dist/es/components/simple-data-table/private/link.js.map +1 -1
- package/dist/es/components/simple-data-table/private/row.js +98 -61
- package/dist/es/components/simple-data-table/private/row.js.map +1 -1
- package/dist/es/components/simple-data-table/private/table-context.js +1 -0
- package/dist/es/components/simple-data-table/private/table-context.js.map +1 -1
- package/dist/es/components/simple-data-table/row-actions.js +14 -10
- package/dist/es/components/simple-data-table/row-actions.js.map +1 -1
- package/dist/es/components/slider/index.js.map +1 -1
- package/dist/es/components/spinner/check-props.js +1 -1
- package/dist/es/components/spinner/check-props.js.map +1 -1
- package/dist/es/components/spinner/index.js +31 -28
- package/dist/es/components/spinner/index.js.map +1 -1
- package/dist/es/components/split-view/header.js.map +1 -1
- package/dist/es/components/split-view/listbox.js +8 -8
- package/dist/es/components/split-view/listbox.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-content.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-with-content.js.map +1 -1
- package/dist/es/components/tabs/index.js +3 -3
- package/dist/es/components/tabs/index.js.map +1 -1
- package/dist/es/components/tabs/private/tab.js +1 -1
- package/dist/es/components/tabs/private/tab.js.map +1 -1
- package/dist/es/components/textarea/check-props.js +1 -1
- package/dist/es/components/textarea/check-props.js.map +1 -1
- package/dist/es/components/textarea/index.js +4 -2
- package/dist/es/components/textarea/index.js.map +1 -1
- package/dist/es/components/toast/index.js +58 -58
- package/dist/es/components/toast/index.js.map +1 -1
- package/dist/es/components/tooltip/check-props.js +12 -9
- package/dist/es/components/tooltip/check-props.js.map +1 -1
- package/dist/es/components/tooltip/index.js +163 -138
- package/dist/es/components/tooltip/index.js.map +1 -1
- package/dist/es/components/tooltip/private/field-level-help-tooltip.js +10 -15
- package/dist/es/components/tooltip/private/field-level-help-tooltip.js.map +1 -1
- package/dist/es/components/tree/check-props.js +5 -5
- package/dist/es/components/tree/private/branch.js +56 -57
- package/dist/es/components/tree/private/branch.js.map +1 -1
- package/dist/es/components/tree/private/item.js +13 -13
- package/dist/es/components/tree/private/item.js.map +1 -1
- package/dist/es/components/tree/private/render-branch.js +48 -53
- package/dist/es/components/tree/private/render-branch.js.map +1 -1
- package/dist/es/components/tree/tree.js.map +1 -1
- package/dist/es/components/trial-bar/button.js +9 -7
- package/dist/es/components/trial-bar/button.js.map +1 -1
- package/dist/es/components/trial-bar/dropdown.js +17 -19
- package/dist/es/components/trial-bar/dropdown.js.map +1 -1
- package/dist/es/components/utilities/dialog/index.js +10 -9
- package/dist/es/components/utilities/dialog/index.js.map +1 -1
- package/dist/es/components/utilities/dialog/portal.js +5 -3
- package/dist/es/components/utilities/dialog/portal.js.map +1 -1
- package/dist/es/components/utilities/menu-list/index.js +6 -6
- package/dist/es/components/utilities/menu-list/index.js.map +1 -1
- package/dist/es/components/utilities/menu-list/item.js +51 -24
- package/dist/es/components/utilities/menu-list/item.js.map +1 -1
- package/dist/es/components/utilities/pill/index.js +14 -14
- package/dist/es/components/utilities/utility-icon/index.js +32 -52
- package/dist/es/components/utilities/utility-icon/index.js.map +1 -1
- package/dist/es/components/vertical-navigation/index.js.map +1 -1
- package/dist/es/components/vertical-navigation/private/item.js +25 -20
- package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
- package/dist/es/components/visual-picker/check-props.js +11 -0
- package/dist/es/components/visual-picker/check-props.js.map +1 -0
- package/dist/es/components/visual-picker/index.js +17 -17
- package/dist/es/components/visual-picker/index.js.map +1 -1
- package/dist/es/components/visual-picker/link.js +15 -11
- package/dist/es/components/visual-picker/link.js.map +1 -1
- package/dist/es/components/welcome-mat/index.js +5 -5
- package/dist/es/components/welcome-mat/index.js.map +1 -1
- package/dist/es/components/welcome-mat/info-badge.js +6 -6
- package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
- package/dist/es/components/welcome-mat/tile.js +7 -7
- package/dist/es/components/welcome-mat/tile.js.map +1 -1
- package/dist/es/utilities/color.js +1 -1
- package/dist/es/utilities/color.js.map +1 -1
- package/dist/es/utilities/constants.js +2 -2
- package/dist/es/utilities/constants.js.map +1 -1
- package/dist/es/utilities/dom-element-focus.js +4 -4
- package/dist/es/utilities/dom-element-focus.js.map +1 -1
- package/dist/es/utilities/event.js +4 -0
- package/dist/es/utilities/event.js.map +1 -1
- package/dist/es/utilities/execution-environment.js.map +1 -1
- package/dist/es/utilities/get-aria-props.js +1 -1
- package/dist/es/utilities/get-aria-props.js.map +1 -1
- package/dist/es/utilities/get-data-props.js +1 -1
- package/dist/es/utilities/get-data-props.js.map +1 -1
- package/dist/es/utilities/hooks/use-click-outside.js.map +1 -1
- package/dist/es/utilities/hooks/use-latest-ref.js +12 -0
- package/dist/es/utilities/hooks/use-latest-ref.js.map +1 -0
- package/dist/es/utilities/is-element-of-type.js +7 -0
- package/dist/es/utilities/is-element-of-type.js.map +1 -0
- package/dist/es/utilities/key-callbacks.js +1 -1
- package/dist/es/utilities/key-callbacks.js.map +1 -1
- package/dist/es/utilities/key-code.js +11 -11
- package/dist/es/utilities/key-code.js.map +1 -1
- package/dist/es/utilities/key-letter-menu-item-select.js +7 -7
- package/dist/es/utilities/key-letter-menu-item-select.js.map +1 -1
- package/dist/es/utilities/keyboard-navigable-dialog.js +10 -10
- package/dist/es/utilities/keyboard-navigable-dialog.js.map +1 -1
- package/dist/es/utilities/keyboard-navigate.js +15 -15
- package/dist/es/utilities/keyboard-navigate.js.map +1 -1
- package/dist/es/utilities/merge-props.js +34 -0
- package/dist/es/utilities/merge-props.js.map +1 -0
- package/dist/es/utilities/product-tokens/icon-backgrounds.js.map +1 -1
- package/dist/es/utilities/warning/children-as-trigger.js +16 -0
- package/dist/es/utilities/warning/children-as-trigger.js.map +1 -0
- package/dist/es/utilities/warning/deprecated-property-value.js +11 -10
- package/dist/es/utilities/warning/deprecated-property-value.js.map +1 -1
- package/dist/es/utilities/warning/deprecated-property.js +8 -7
- package/dist/es/utilities/warning/deprecated-property.js.map +1 -1
- package/dist/es/utilities/warning/has-children-without-display-name-of.js +11 -10
- package/dist/es/utilities/warning/has-children-without-display-name-of.js.map +1 -1
- package/dist/es/utilities/warning/if-one-then-both-required-property.js +10 -9
- package/dist/es/utilities/warning/if-one-then-both-required-property.js.map +1 -1
- package/dist/es/utilities/warning/is-trigger-tabbable.js +9 -8
- package/dist/es/utilities/warning/is-trigger-tabbable.js.map +1 -1
- package/dist/es/utilities/warning/low-priority-warning.js.map +1 -1
- package/dist/es/utilities/warning/one-of-required-property.js +11 -10
- package/dist/es/utilities/warning/one-of-required-property.js.map +1 -1
- package/dist/es/utilities/warning/only-one-of-properties.js +9 -8
- package/dist/es/utilities/warning/only-one-of-properties.js.map +1 -1
- package/dist/es/utilities/warning/render-function-return-contents-lack-display-name.js +14 -13
- package/dist/es/utilities/warning/render-function-return-contents-lack-display-name.js.map +1 -1
- package/dist/es/utilities/warning/required-property.js +8 -7
- package/dist/es/utilities/warning/required-property.js.map +1 -1
- package/dist/es/utilities/warning/sunset-property.js +8 -7
- package/dist/es/utilities/warning/sunset-property.js.map +1 -1
- package/dist/es/utilities/warning/warned-registry.js +10 -0
- package/dist/es/utilities/warning/warned-registry.js.map +1 -0
- package/dist/types/components/accordion/index.d.ts +5 -3
- package/dist/types/components/accordion/index.d.ts.map +1 -1
- package/dist/types/components/accordion/panel.d.ts +9 -19
- package/dist/types/components/accordion/panel.d.ts.map +1 -1
- package/dist/types/components/alert/index.d.ts +9 -5
- package/dist/types/components/alert/index.d.ts.map +1 -1
- package/dist/types/components/builder-header/index.d.ts +8 -3
- package/dist/types/components/builder-header/index.d.ts.map +1 -1
- package/dist/types/components/builder-header/nav-dropdown.d.ts +4 -2
- package/dist/types/components/builder-header/nav-dropdown.d.ts.map +1 -1
- package/dist/types/components/builder-header/nav-link.d.ts.map +1 -1
- package/dist/types/components/builder-header/nav.d.ts +6 -2
- package/dist/types/components/builder-header/nav.d.ts.map +1 -1
- package/dist/types/components/builder-header/toolbar.d.ts +4 -1
- package/dist/types/components/builder-header/toolbar.d.ts.map +1 -1
- package/dist/types/components/builder-header/utilities.d.ts +6 -2
- package/dist/types/components/builder-header/utilities.d.ts.map +1 -1
- package/dist/types/components/button/index.d.ts +49 -24
- package/dist/types/components/button/index.d.ts.map +1 -1
- package/dist/types/components/button-group/index.d.ts +14 -6
- package/dist/types/components/button-group/index.d.ts.map +1 -1
- package/dist/types/components/button-stateful/index.d.ts +11 -6
- package/dist/types/components/button-stateful/index.d.ts.map +1 -1
- package/dist/types/components/card/filter.d.ts +2 -2
- package/dist/types/components/card/filter.d.ts.map +1 -1
- package/dist/types/components/card/index.d.ts +10 -4
- package/dist/types/components/card/index.d.ts.map +1 -1
- package/dist/types/components/carousel/index.d.ts +11 -4
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/carousel/{private/carousel-item.d.ts → types.d.ts} +3 -9
- package/dist/types/components/carousel/types.d.ts.map +1 -0
- package/dist/types/components/checkbox/index.d.ts +92 -25
- package/dist/types/components/checkbox/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts +16 -20
- package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/components/color-picker/index.d.ts +1 -1
- package/dist/types/components/color-picker/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/types.d.ts +29 -7
- package/dist/types/components/color-picker/types.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox.d.ts +30 -12
- package/dist/types/components/combobox/combobox.d.ts.map +1 -1
- package/dist/types/components/combobox/index.d.ts +2 -2
- package/dist/types/components/combobox/index.d.ts.map +1 -1
- package/dist/types/components/combobox/types.d.ts +89 -0
- package/dist/types/components/combobox/types.d.ts.map +1 -0
- package/dist/types/components/date-picker/date-picker.d.ts +9 -12
- package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/components/date-picker/index.d.ts +1 -1
- package/dist/types/components/date-picker/index.d.ts.map +1 -1
- package/dist/types/components/docked-composer/index.d.ts +8 -2
- package/dist/types/components/docked-composer/index.d.ts.map +1 -1
- package/dist/types/components/dynamic-icon/index.d.ts +42 -14
- package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
- package/dist/types/components/expandable-section/index.d.ts +33 -10
- package/dist/types/components/expandable-section/index.d.ts.map +1 -1
- package/dist/types/components/files/file.d.ts +21 -16
- package/dist/types/components/files/file.d.ts.map +1 -1
- package/dist/types/components/files/index.d.ts +8 -10
- package/dist/types/components/files/index.d.ts.map +1 -1
- package/dist/types/components/filter/filter.d.ts +9 -1
- package/dist/types/components/filter/filter.d.ts.map +1 -1
- package/dist/types/components/grid/index.d.ts +5 -3
- package/dist/types/components/grid/index.d.ts.map +1 -1
- package/dist/types/components/icon/button-icon/index.d.ts +2 -3
- package/dist/types/components/icon/button-icon/index.d.ts.map +1 -1
- package/dist/types/components/icon/index.d.ts +9 -2
- package/dist/types/components/icon/index.d.ts.map +1 -1
- package/dist/types/components/icon/input-icon/index.d.ts +26 -9
- package/dist/types/components/icon/input-icon/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts +66 -32
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/input/search.d.ts +2 -2
- package/dist/types/components/input/search.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/button-trigger.d.ts +27 -15
- package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/index.d.ts +2 -1
- package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +57 -19
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
- package/dist/types/components/modal/index.d.ts.map +1 -1
- package/dist/types/components/page-header/control.d.ts.map +1 -1
- package/dist/types/components/page-header/index.d.ts +81 -21
- package/dist/types/components/page-header/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/detail-block.d.ts +4 -25
- package/dist/types/components/page-header/private/detail-block.d.ts.map +1 -1
- package/dist/types/components/page-header/private/detail-row.d.ts +3 -14
- package/dist/types/components/page-header/private/detail-row.d.ts.map +1 -1
- package/dist/types/components/page-header/private/info.d.ts +1 -15
- package/dist/types/components/page-header/private/info.d.ts.map +1 -1
- package/dist/types/components/page-header/private/title.d.ts +2 -23
- package/dist/types/components/page-header/private/title.d.ts.map +1 -1
- package/dist/types/components/page-header/types.d.ts +73 -0
- package/dist/types/components/page-header/types.d.ts.map +1 -0
- package/dist/types/components/panel/filtering/group.d.ts +43 -21
- package/dist/types/components/panel/filtering/group.d.ts.map +1 -1
- package/dist/types/components/panel/filtering/list.d.ts +5 -3
- package/dist/types/components/panel/filtering/list.d.ts.map +1 -1
- package/dist/types/components/pill/index.d.ts +45 -16
- package/dist/types/components/pill/index.d.ts.map +1 -1
- package/dist/types/components/pill-container/index.d.ts +6 -6
- package/dist/types/components/pill-container/index.d.ts.map +1 -1
- package/dist/types/components/popover/edit-dialog.d.ts +14 -8
- package/dist/types/components/popover/edit-dialog.d.ts.map +1 -1
- package/dist/types/components/popover/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts +46 -18
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/index.d.ts +74 -29
- package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
- package/dist/types/components/progress-ring/index.d.ts +19 -6
- package/dist/types/components/progress-ring/index.d.ts.map +1 -1
- package/dist/types/components/radio/index.d.ts +53 -20
- package/dist/types/components/radio/index.d.ts.map +1 -1
- package/dist/types/components/radio-button-group/index.d.ts +5 -7
- package/dist/types/components/radio-button-group/index.d.ts.map +1 -1
- package/dist/types/components/radio-button-group/radio.d.ts +1 -3
- package/dist/types/components/radio-button-group/radio.d.ts.map +1 -1
- package/dist/types/components/radio-group/index.d.ts +24 -11
- package/dist/types/components/radio-group/index.d.ts.map +1 -1
- package/dist/types/components/radio-group/radio.d.ts +1 -3
- package/dist/types/components/radio-group/radio.d.ts.map +1 -1
- package/dist/types/components/scoped-notification/index.d.ts +6 -5
- package/dist/types/components/scoped-notification/index.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/index.d.ts +22 -15
- package/dist/types/components/setup-assistant/index.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/step.d.ts +6 -23
- package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/cell.d.ts +2 -2
- package/dist/types/components/simple-data-table/cell.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/column.d.ts +3 -55
- package/dist/types/components/simple-data-table/column.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/index.d.ts +6 -3
- package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/interactive-element.d.ts +14 -3
- package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/row-actions.d.ts +5 -29
- package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/types.d.ts +58 -52
- package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
- package/dist/types/components/slider/index.d.ts +2 -2
- package/dist/types/components/slider/index.d.ts.map +1 -1
- package/dist/types/components/spinner/index.d.ts +32 -5
- package/dist/types/components/spinner/index.d.ts.map +1 -1
- package/dist/types/components/split-view/header.d.ts +2 -6
- package/dist/types/components/split-view/header.d.ts.map +1 -1
- package/dist/types/components/split-view/listbox.d.ts +2 -1
- package/dist/types/components/split-view/listbox.d.ts.map +1 -1
- package/dist/types/components/split-view/private/list-item-with-content.d.ts.map +1 -1
- package/dist/types/components/split-view/types.d.ts +7 -0
- package/dist/types/components/split-view/types.d.ts.map +1 -0
- package/dist/types/components/tabs/index.d.ts +7 -17
- package/dist/types/components/tabs/index.d.ts.map +1 -1
- package/dist/types/components/textarea/index.d.ts +11 -26
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/toast/index.d.ts +17 -8
- package/dist/types/components/toast/index.d.ts.map +1 -1
- package/dist/types/components/tooltip/index.d.ts +38 -6
- package/dist/types/components/tooltip/index.d.ts.map +1 -1
- package/dist/types/components/tree/index.d.ts +1 -1
- package/dist/types/components/tree/index.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +61 -14
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/trial-bar/button.d.ts +1 -1
- package/dist/types/components/trial-bar/button.d.ts.map +1 -1
- package/dist/types/components/trial-bar/dropdown.d.ts +2 -2
- package/dist/types/components/trial-bar/dropdown.d.ts.map +1 -1
- package/dist/types/components/utilities/dialog/portal.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/index.d.ts +2 -2
- package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/item.d.ts +14 -1
- package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
- package/dist/types/components/utilities/truncate/index.d.ts +2 -3
- package/dist/types/components/utilities/truncate/index.d.ts.map +1 -1
- package/dist/types/components/utilities/utility-icon/index.d.ts +1 -1
- package/dist/types/components/utilities/utility-icon/index.d.ts.map +1 -1
- package/dist/types/components/vertical-navigation/index.d.ts +4 -3
- package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
- package/dist/types/components/visual-picker/index.d.ts +35 -21
- package/dist/types/components/visual-picker/index.d.ts.map +1 -1
- package/dist/types/components/visual-picker/link.d.ts +3 -2
- package/dist/types/components/visual-picker/link.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/index.d.ts +12 -9
- package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/info-badge.d.ts +2 -0
- package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/tile.d.ts +6 -16
- package/dist/types/components/welcome-mat/tile.d.ts.map +1 -1
- package/dist/types/types/common.d.ts +15 -1
- package/dist/types/types/common.d.ts.map +1 -1
- package/dist/types/types/components.d.ts.map +1 -1
- package/dist/types/utilities/constants.d.ts +0 -1
- package/dist/types/utilities/constants.d.ts.map +1 -1
- package/package.json +27 -11
- package/dist/cjs/components/illustration/check-props.cjs +0 -2
- package/dist/cjs/components/illustration/check-props.cjs.map +0 -1
- package/dist/cjs/components/illustration/index.cjs +0 -2
- package/dist/cjs/components/illustration/index.cjs.map +0 -1
- package/dist/cjs/components/illustration.cjs +0 -1
- package/dist/cjs/components/page-header/private/base.cjs +0 -1
- package/dist/cjs/components/page-header/private/object-home.cjs +0 -1
- package/dist/cjs/components/page-header/private/record-home.cjs +0 -1
- package/dist/cjs/components/page-header/private/related-list.cjs +0 -1
- package/dist/cjs/icons/action/index.cjs +0 -2
- package/dist/cjs/icons/action/index.cjs.map +0 -1
- package/dist/cjs/icons/custom/index.cjs +0 -2
- package/dist/cjs/icons/custom/index.cjs.map +0 -1
- package/dist/cjs/icons/doctype/index.cjs +0 -2
- package/dist/cjs/icons/doctype/index.cjs.map +0 -1
- package/dist/cjs/icons/standard/index.cjs +0 -2
- package/dist/cjs/icons/standard/index.cjs.map +0 -1
- package/dist/cjs/icons/utility/index.cjs +0 -2
- package/dist/cjs/icons/utility/index.cjs.map +0 -1
- package/dist/cjs/utilities/hooks/index.cjs +0 -1
- package/dist/cjs/utilities/hooks.cjs +0 -1
- package/dist/cjs/utilities/object.cjs +0 -2
- package/dist/cjs/utilities/object.cjs.map +0 -1
- package/dist/cjs/utilities/warning/component-is-deprecated.cjs +0 -2
- package/dist/cjs/utilities/warning/component-is-deprecated.cjs.map +0 -1
- package/dist/es/components/illustration/check-props.js +0 -11
- package/dist/es/components/illustration/check-props.js.map +0 -1
- package/dist/es/components/illustration/index.js +0 -73
- package/dist/es/components/illustration/index.js.map +0 -1
- package/dist/es/components/illustration.js +0 -2
- package/dist/es/components/page-header/private/base.js +0 -2
- package/dist/es/components/page-header/private/object-home.js +0 -2
- package/dist/es/components/page-header/private/record-home.js +0 -2
- package/dist/es/components/page-header/private/related-list.js +0 -2
- package/dist/es/icons/action/index.js +0 -6
- package/dist/es/icons/action/index.js.map +0 -1
- package/dist/es/icons/custom/index.js +0 -6
- package/dist/es/icons/custom/index.js.map +0 -1
- package/dist/es/icons/doctype/index.js +0 -6
- package/dist/es/icons/doctype/index.js.map +0 -1
- package/dist/es/icons/standard/index.js +0 -6
- package/dist/es/icons/standard/index.js.map +0 -1
- package/dist/es/icons/utility/index.js +0 -6
- package/dist/es/icons/utility/index.js.map +0 -1
- package/dist/es/utilities/hooks/index.js +0 -3
- package/dist/es/utilities/hooks.js +0 -1
- package/dist/es/utilities/object.js +0 -10
- package/dist/es/utilities/object.js.map +0 -1
- package/dist/es/utilities/warning/component-is-deprecated.js +0 -15
- package/dist/es/utilities/warning/component-is-deprecated.js.map +0 -1
- package/dist/types/components/alert/check-props.d.ts +0 -3
- package/dist/types/components/alert/check-props.d.ts.map +0 -1
- package/dist/types/components/builder-header/check-props.d.ts +0 -3
- package/dist/types/components/builder-header/check-props.d.ts.map +0 -1
- package/dist/types/components/button/check-props.d.ts +0 -3
- package/dist/types/components/button/check-props.d.ts.map +0 -1
- package/dist/types/components/button-stateful/check-props.d.ts +0 -3
- package/dist/types/components/button-stateful/check-props.d.ts.map +0 -1
- package/dist/types/components/card/private/body.d.ts +0 -22
- package/dist/types/components/card/private/body.d.ts.map +0 -1
- package/dist/types/components/card/private/footer.d.ts +0 -14
- package/dist/types/components/card/private/footer.d.ts.map +0 -1
- package/dist/types/components/card/private/header.d.ts +0 -48
- package/dist/types/components/card/private/header.d.ts.map +0 -1
- package/dist/types/components/carousel/check-props.d.ts +0 -3
- package/dist/types/components/carousel/check-props.d.ts.map +0 -1
- package/dist/types/components/carousel/private/auto-play-button.d.ts +0 -26
- package/dist/types/components/carousel/private/auto-play-button.d.ts.map +0 -1
- package/dist/types/components/carousel/private/carousel-indicators.d.ts +0 -65
- package/dist/types/components/carousel/private/carousel-indicators.d.ts.map +0 -1
- package/dist/types/components/carousel/private/carousel-item.d.ts.map +0 -1
- package/dist/types/components/carousel/private/previous-next-carousel-navigator.d.ts +0 -30
- package/dist/types/components/carousel/private/previous-next-carousel-navigator.d.ts.map +0 -1
- package/dist/types/components/checkbox/check-props.d.ts +0 -5
- package/dist/types/components/checkbox/check-props.d.ts.map +0 -1
- package/dist/types/components/color-picker/check-props.d.ts +0 -3
- package/dist/types/components/color-picker/check-props.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/color-picker-tabs.d.ts +0 -14
- package/dist/types/components/color-picker/private/color-picker-tabs.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/custom-color-form.d.ts +0 -28
- package/dist/types/components/color-picker/private/custom-color-form.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/custom-color.d.ts +0 -49
- package/dist/types/components/color-picker/private/custom-color.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/hsv-color.d.ts +0 -37
- package/dist/types/components/color-picker/private/hsv-color.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/swatch-option.d.ts +0 -25
- package/dist/types/components/color-picker/private/swatch-option.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/swatch-picker.d.ts +0 -65
- package/dist/types/components/color-picker/private/swatch-picker.d.ts.map +0 -1
- package/dist/types/components/color-picker/private/swatch.d.ts +0 -22
- package/dist/types/components/color-picker/private/swatch.d.ts.map +0 -1
- package/dist/types/components/combobox/check-props.d.ts +0 -3
- package/dist/types/components/combobox/check-props.d.ts.map +0 -1
- package/dist/types/components/combobox/private/menu.d.ts +0 -143
- package/dist/types/components/combobox/private/menu.d.ts.map +0 -1
- package/dist/types/components/date-picker/check-props.d.ts +0 -3
- package/dist/types/components/date-picker/check-props.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/calendar-wrapper.d.ts +0 -80
- package/dist/types/components/date-picker/private/calendar-wrapper.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/calendar.d.ts +0 -77
- package/dist/types/components/date-picker/private/calendar.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/day.d.ts +0 -100
- package/dist/types/components/date-picker/private/day.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/navigation.d.ts +0 -37
- package/dist/types/components/date-picker/private/navigation.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/week.d.ts +0 -59
- package/dist/types/components/date-picker/private/week.d.ts.map +0 -1
- package/dist/types/components/date-picker/private/year-picklist.d.ts +0 -27
- package/dist/types/components/date-picker/private/year-picklist.d.ts.map +0 -1
- package/dist/types/components/files/private/file-actions.d.ts +0 -30
- package/dist/types/components/files/private/file-actions.d.ts.map +0 -1
- package/dist/types/components/files/private/file-figure.d.ts +0 -36
- package/dist/types/components/files/private/file-figure.d.ts.map +0 -1
- package/dist/types/components/forms/private/label.d.ts +0 -32
- package/dist/types/components/forms/private/label.d.ts.map +0 -1
- package/dist/types/components/icon/button-icon/check-props.d.ts +0 -3
- package/dist/types/components/icon/button-icon/check-props.d.ts.map +0 -1
- package/dist/types/components/icon/check-props.d.ts +0 -3
- package/dist/types/components/icon/check-props.d.ts.map +0 -1
- package/dist/types/components/illustration/check-props.d.ts +0 -3
- package/dist/types/components/illustration/check-props.d.ts.map +0 -1
- package/dist/types/components/illustration/index.d.ts +0 -42
- package/dist/types/components/illustration/index.d.ts.map +0 -1
- package/dist/types/components/illustration.d.ts +0 -2
- package/dist/types/components/input/check-props.d.ts +0 -3
- package/dist/types/components/input/check-props.d.ts.map +0 -1
- package/dist/types/components/input/private/inner-input.d.ts +0 -136
- package/dist/types/components/input/private/inner-input.d.ts.map +0 -1
- package/dist/types/components/menu-dropdown/check-props.d.ts +0 -3
- package/dist/types/components/menu-dropdown/check-props.d.ts.map +0 -1
- package/dist/types/components/modal/check-props.d.ts +0 -3
- package/dist/types/components/modal/check-props.d.ts.map +0 -1
- package/dist/types/components/page-header/check-props.d.ts +0 -3
- package/dist/types/components/page-header/check-props.d.ts.map +0 -1
- package/dist/types/components/page-header/private/base/index.d.ts +0 -9
- package/dist/types/components/page-header/private/base/index.d.ts.map +0 -1
- package/dist/types/components/page-header/private/base.d.ts +0 -2
- package/dist/types/components/page-header/private/controls.d.ts +0 -33
- package/dist/types/components/page-header/private/controls.d.ts.map +0 -1
- package/dist/types/components/page-header/private/label.d.ts +0 -22
- package/dist/types/components/page-header/private/label.d.ts.map +0 -1
- package/dist/types/components/page-header/private/object-home/index.d.ts +0 -9
- package/dist/types/components/page-header/private/object-home/index.d.ts.map +0 -1
- package/dist/types/components/page-header/private/object-home.d.ts +0 -2
- package/dist/types/components/page-header/private/record-home/index.d.ts +0 -9
- package/dist/types/components/page-header/private/record-home/index.d.ts.map +0 -1
- package/dist/types/components/page-header/private/record-home.d.ts +0 -2
- package/dist/types/components/page-header/private/related-list/index.d.ts +0 -9
- package/dist/types/components/page-header/private/related-list/index.d.ts.map +0 -1
- package/dist/types/components/page-header/private/related-list.d.ts +0 -2
- package/dist/types/components/page-header/private/types.d.ts +0 -49
- package/dist/types/components/page-header/private/types.d.ts.map +0 -1
- package/dist/types/components/panel/filtering/check-props.d.ts +0 -3
- package/dist/types/components/panel/filtering/check-props.d.ts.map +0 -1
- package/dist/types/components/panel/filtering/private/panel-footer.d.ts +0 -25
- package/dist/types/components/panel/filtering/private/panel-footer.d.ts.map +0 -1
- package/dist/types/components/panel/filtering/private/panel-header.d.ts +0 -47
- package/dist/types/components/panel/filtering/private/panel-header.d.ts.map +0 -1
- package/dist/types/components/pill-container/check-props.d.ts +0 -3
- package/dist/types/components/pill-container/check-props.d.ts.map +0 -1
- package/dist/types/components/pill-container/private/selected-listbox.d.ts +0 -83
- package/dist/types/components/pill-container/private/selected-listbox.d.ts.map +0 -1
- package/dist/types/components/popover/check-props.d.ts +0 -3
- package/dist/types/components/popover/check-props.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/check-props.d.ts +0 -3
- package/dist/types/components/progress-indicator/check-props.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/path.d.ts +0 -48
- package/dist/types/components/progress-indicator/private/path.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/progress-bar.d.ts +0 -27
- package/dist/types/components/progress-indicator/private/progress-bar.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/progress.d.ts +0 -45
- package/dist/types/components/progress-indicator/private/progress.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts +0 -59
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/step.d.ts +0 -78
- package/dist/types/components/progress-indicator/private/step.d.ts.map +0 -1
- package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts +0 -41
- package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts.map +0 -1
- package/dist/types/components/progress-ring/private/ring-shape.d.ts +0 -34
- package/dist/types/components/progress-ring/private/ring-shape.d.ts.map +0 -1
- package/dist/types/components/radio/check-props.d.ts +0 -4
- package/dist/types/components/radio/check-props.d.ts.map +0 -1
- package/dist/types/components/radio-group/check-props.d.ts +0 -3
- package/dist/types/components/radio-group/check-props.d.ts.map +0 -1
- package/dist/types/components/scoped-notification/check-props.d.ts +0 -3
- package/dist/types/components/scoped-notification/check-props.d.ts.map +0 -1
- package/dist/types/components/setup-assistant/check-props.d.ts +0 -3
- package/dist/types/components/setup-assistant/check-props.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/check-props.d.ts +0 -3
- package/dist/types/components/simple-data-table/check-props.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/column-check-props.d.ts +0 -3
- package/dist/types/components/simple-data-table/column-check-props.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/cell-context.d.ts +0 -8
- package/dist/types/components/simple-data-table/private/cell-context.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/cell-fixed.d.ts +0 -10
- package/dist/types/components/simple-data-table/private/cell-fixed.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/context-helper.d.ts +0 -14
- package/dist/types/components/simple-data-table/private/context-helper.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/head.d.ts +0 -39
- package/dist/types/components/simple-data-table/private/head.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/header-cell.d.ts +0 -39
- package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/link.d.ts +0 -11
- package/dist/types/components/simple-data-table/private/link.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/row.d.ts +0 -44
- package/dist/types/components/simple-data-table/private/row.d.ts.map +0 -1
- package/dist/types/components/simple-data-table/private/table-context.d.ts +0 -20
- package/dist/types/components/simple-data-table/private/table-context.d.ts.map +0 -1
- package/dist/types/components/slider/check-props.d.ts +0 -3
- package/dist/types/components/slider/check-props.d.ts.map +0 -1
- package/dist/types/components/spinner/check-props.d.ts +0 -3
- package/dist/types/components/spinner/check-props.d.ts.map +0 -1
- package/dist/types/components/split-view/check-props.d.ts +0 -3
- package/dist/types/components/split-view/check-props.d.ts.map +0 -1
- package/dist/types/components/split-view/listbox-check-props.d.ts +0 -4
- package/dist/types/components/split-view/listbox-check-props.d.ts.map +0 -1
- package/dist/types/components/split-view/private/list-item-content.d.ts +0 -23
- package/dist/types/components/split-view/private/list-item-content.d.ts.map +0 -1
- package/dist/types/components/split-view/private/toggle-button.d.ts +0 -33
- package/dist/types/components/split-view/private/toggle-button.d.ts.map +0 -1
- package/dist/types/components/tabs/check-props.d.ts +0 -3
- package/dist/types/components/tabs/check-props.d.ts.map +0 -1
- package/dist/types/components/tabs/private/tab-panel.d.ts +0 -45
- package/dist/types/components/tabs/private/tab-panel.d.ts.map +0 -1
- package/dist/types/components/tabs/private/tab.d.ts +0 -59
- package/dist/types/components/tabs/private/tab.d.ts.map +0 -1
- package/dist/types/components/tabs/private/tabs-list.d.ts +0 -27
- package/dist/types/components/tabs/private/tabs-list.d.ts.map +0 -1
- package/dist/types/components/textarea/check-props.d.ts +0 -3
- package/dist/types/components/textarea/check-props.d.ts.map +0 -1
- package/dist/types/components/toast/check-props.d.ts +0 -3
- package/dist/types/components/toast/check-props.d.ts.map +0 -1
- package/dist/types/components/tooltip/check-props.d.ts +0 -3
- package/dist/types/components/tooltip/check-props.d.ts.map +0 -1
- package/dist/types/components/tooltip/private/field-level-help-tooltip.d.ts +0 -20
- package/dist/types/components/tooltip/private/field-level-help-tooltip.d.ts.map +0 -1
- package/dist/types/components/tree/check-props.d.ts +0 -4
- package/dist/types/components/tree/check-props.d.ts.map +0 -1
- package/dist/types/components/tree/private/branch.d.ts +0 -60
- package/dist/types/components/tree/private/branch.d.ts.map +0 -1
- package/dist/types/components/tree/private/item.d.ts +0 -46
- package/dist/types/components/tree/private/item.d.ts.map +0 -1
- package/dist/types/components/tree/private/render-branch.d.ts +0 -48
- package/dist/types/components/tree/private/render-branch.d.ts.map +0 -1
- package/dist/types/components/tree/private/render-initial-branch.d.ts +0 -14
- package/dist/types/components/tree/private/render-initial-branch.d.ts.map +0 -1
- package/dist/types/components/trial-bar/check-props.d.ts +0 -3
- package/dist/types/components/trial-bar/check-props.d.ts.map +0 -1
- package/dist/types/components/utilities/UNSAFE_direction/private/language-direction.d.ts +0 -53
- package/dist/types/components/utilities/UNSAFE_direction/private/language-direction.d.ts.map +0 -1
- package/dist/types/components/utilities/utility-icon/check-props.d.ts +0 -3
- package/dist/types/components/utilities/utility-icon/check-props.d.ts.map +0 -1
- package/dist/types/components/vertical-navigation/check-props.d.ts +0 -4
- package/dist/types/components/vertical-navigation/check-props.d.ts.map +0 -1
- package/dist/types/components/vertical-navigation/private/item.d.ts +0 -27
- package/dist/types/components/vertical-navigation/private/item.d.ts.map +0 -1
- package/dist/types/components/welcome-mat/check-props.d.ts +0 -3
- package/dist/types/components/welcome-mat/check-props.d.ts.map +0 -1
- package/dist/types/icons/action/index.d.ts +0 -3
- package/dist/types/icons/action/index.d.ts.map +0 -1
- package/dist/types/icons/custom/index.d.ts +0 -3
- package/dist/types/icons/custom/index.d.ts.map +0 -1
- package/dist/types/icons/doctype/index.d.ts +0 -3
- package/dist/types/icons/doctype/index.d.ts.map +0 -1
- package/dist/types/icons/standard/index.d.ts +0 -3
- package/dist/types/icons/standard/index.d.ts.map +0 -1
- package/dist/types/icons/utility/index.d.ts +0 -3
- package/dist/types/icons/utility/index.d.ts.map +0 -1
- package/dist/types/utilities/class-names.d.ts +0 -3
- package/dist/types/utilities/class-names.d.ts.map +0 -1
- package/dist/types/utilities/color.d.ts +0 -134
- package/dist/types/utilities/color.d.ts.map +0 -1
- package/dist/types/utilities/date.d.ts +0 -18
- package/dist/types/utilities/date.d.ts.map +0 -1
- package/dist/types/utilities/dialog-helpers.d.ts +0 -8
- package/dist/types/utilities/dialog-helpers.d.ts.map +0 -1
- package/dist/types/utilities/dom-element-focus.d.ts +0 -14
- package/dist/types/utilities/dom-element-focus.d.ts.map +0 -1
- package/dist/types/utilities/dom.d.ts +0 -11
- package/dist/types/utilities/dom.d.ts.map +0 -1
- package/dist/types/utilities/event.d.ts +0 -8
- package/dist/types/utilities/event.d.ts.map +0 -1
- package/dist/types/utilities/execution-environment.d.ts +0 -5
- package/dist/types/utilities/execution-environment.d.ts.map +0 -1
- package/dist/types/utilities/generate-id.d.ts +0 -7
- package/dist/types/utilities/generate-id.d.ts.map +0 -1
- package/dist/types/utilities/get-aria-props.d.ts +0 -2
- package/dist/types/utilities/get-aria-props.d.ts.map +0 -1
- package/dist/types/utilities/get-component-doc.d.ts +0 -3
- package/dist/types/utilities/get-component-doc.d.ts.map +0 -1
- package/dist/types/utilities/get-data-props.d.ts +0 -2
- package/dist/types/utilities/get-data-props.d.ts.map +0 -1
- package/dist/types/utilities/get-form-props.d.ts +0 -2
- package/dist/types/utilities/get-form-props.d.ts.map +0 -1
- package/dist/types/utilities/hooks/index.d.ts +0 -3
- package/dist/types/utilities/hooks/index.d.ts.map +0 -1
- package/dist/types/utilities/hooks/use-click-outside.d.ts +0 -32
- package/dist/types/utilities/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/types/utilities/hooks/use-controllable-state.d.ts +0 -23
- package/dist/types/utilities/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/types/utilities/hooks.d.ts +0 -1
- package/dist/types/utilities/index.d.ts +0 -4
- package/dist/types/utilities/index.d.ts.map +0 -1
- package/dist/types/utilities/is-react-component.d.ts +0 -3
- package/dist/types/utilities/is-react-component.d.ts.map +0 -1
- package/dist/types/utilities/key-buffer.d.ts +0 -3
- package/dist/types/utilities/key-buffer.d.ts.map +0 -1
- package/dist/types/utilities/key-callbacks.d.ts +0 -7
- package/dist/types/utilities/key-callbacks.d.ts.map +0 -1
- package/dist/types/utilities/key-code.d.ts +0 -67
- package/dist/types/utilities/key-code.d.ts.map +0 -1
- package/dist/types/utilities/key-letter-menu-item-select.d.ts +0 -8
- package/dist/types/utilities/key-letter-menu-item-select.d.ts.map +0 -1
- package/dist/types/utilities/keyboard-navigable-dialog.d.ts +0 -11
- package/dist/types/utilities/keyboard-navigable-dialog.d.ts.map +0 -1
- package/dist/types/utilities/keyboard-navigate.d.ts +0 -15
- package/dist/types/utilities/keyboard-navigate.d.ts.map +0 -1
- package/dist/types/utilities/letter-key-code.d.ts +0 -5
- package/dist/types/utilities/letter-key-code.d.ts.map +0 -1
- package/dist/types/utilities/menu-item-select-scroll.d.ts +0 -8
- package/dist/types/utilities/menu-item-select-scroll.d.ts.map +0 -1
- package/dist/types/utilities/object.d.ts +0 -6
- package/dist/types/utilities/object.d.ts.map +0 -1
- package/dist/types/utilities/product-tokens/icon-backgrounds.d.ts +0 -12
- package/dist/types/utilities/product-tokens/icon-backgrounds.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/global-navigation-bar/index.d.ts +0 -90
- package/dist/types/utilities/sample-data/global-navigation-bar/index.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/global-navigation-bar.d.ts +0 -1
- package/dist/types/utilities/sample-data/tree/index.d.ts +0 -207
- package/dist/types/utilities/sample-data/tree/index.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/tree/nodes-base.d.ts +0 -78
- package/dist/types/utilities/sample-data/tree/nodes-base.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/tree/nodes-with-initial-state.d.ts +0 -102
- package/dist/types/utilities/sample-data/tree/nodes-with-initial-state.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/tree/nodes-with-large-dataset.d.ts +0 -29
- package/dist/types/utilities/sample-data/tree/nodes-with-large-dataset.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/tree.d.ts +0 -2
- package/dist/types/utilities/sample-data/vertical-navigation/index.d.ts +0 -23
- package/dist/types/utilities/sample-data/vertical-navigation/index.d.ts.map +0 -1
- package/dist/types/utilities/sample-data/vertical-navigation.d.ts +0 -1
- package/dist/types/utilities/tabbable.d.ts +0 -14
- package/dist/types/utilities/tabbable.d.ts.map +0 -1
- package/dist/types/utilities/warning/check-app-element-set.d.ts +0 -3
- package/dist/types/utilities/warning/check-app-element-set.d.ts.map +0 -1
- package/dist/types/utilities/warning/component-has-moved.d.ts +0 -8
- package/dist/types/utilities/warning/component-has-moved.d.ts.map +0 -1
- package/dist/types/utilities/warning/component-is-deprecated.d.ts +0 -6
- package/dist/types/utilities/warning/component-is-deprecated.d.ts.map +0 -1
- package/dist/types/utilities/warning/component-is-prototype.d.ts +0 -3
- package/dist/types/utilities/warning/component-is-prototype.d.ts.map +0 -1
- package/dist/types/utilities/warning/deprecated-property-value.d.ts +0 -3
- package/dist/types/utilities/warning/deprecated-property-value.d.ts.map +0 -1
- package/dist/types/utilities/warning/deprecated-property.d.ts +0 -3
- package/dist/types/utilities/warning/deprecated-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/future-property.d.ts +0 -3
- package/dist/types/utilities/warning/future-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/has-children-without-display-name-of.d.ts +0 -3
- package/dist/types/utilities/warning/has-children-without-display-name-of.d.ts.map +0 -1
- package/dist/types/utilities/warning/if-one-then-both-required-property.d.ts +0 -3
- package/dist/types/utilities/warning/if-one-then-both-required-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/incompatible-props.d.ts +0 -3
- package/dist/types/utilities/warning/incompatible-props.d.ts.map +0 -1
- package/dist/types/utilities/warning/is-trigger-tabbable.d.ts +0 -3
- package/dist/types/utilities/warning/is-trigger-tabbable.d.ts.map +0 -1
- package/dist/types/utilities/warning/low-priority-warning.d.ts +0 -3
- package/dist/types/utilities/warning/low-priority-warning.d.ts.map +0 -1
- package/dist/types/utilities/warning/one-of-component.d.ts +0 -3
- package/dist/types/utilities/warning/one-of-component.d.ts.map +0 -1
- package/dist/types/utilities/warning/one-of-required-property.d.ts +0 -3
- package/dist/types/utilities/warning/one-of-required-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/only-one-of-properties.d.ts +0 -3
- package/dist/types/utilities/warning/only-one-of-properties.d.ts.map +0 -1
- package/dist/types/utilities/warning/render-function-return-contents-lack-display-name.d.ts +0 -3
- package/dist/types/utilities/warning/render-function-return-contents-lack-display-name.d.ts.map +0 -1
- package/dist/types/utilities/warning/required-property.d.ts +0 -3
- package/dist/types/utilities/warning/required-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/sunset-property.d.ts +0 -3
- package/dist/types/utilities/warning/sunset-property.d.ts.map +0 -1
- package/dist/types/utilities/warning/url-exists.d.ts +0 -3
- package/dist/types/utilities/warning/url-exists.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/welcome-mat/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tforwardRef,\n\tuseEffect,\n\tuseId,\n\tuseMemo,\n\ttype ReactNode,\n\ttype ReactElement,\n} from 'react';\nimport classNames from 'classnames';\nimport Modal, {\n\ttype ModalRequestCloseData,\n\ttype ModalRequestCloseEvent,\n\ttype ModalRequestCloseTrigger,\n} from '../modal';\nimport ProgressBar from '../progress-bar';\nimport { WELCOME_MAT } from '../../utilities/constants';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n/**\n * Welcome mat variant types\n */\nexport type WelcomeMatVariant =\n\t'steps' | 'info-only' | 'splash' | 'trailhead-connected';\n\n/**\n * Labels for WelcomeMat\n */\nexport interface WelcomeMatLabels {\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Text after units completed number */\n\tunitsCompletedAfter?: string;\n}\n\n/**\n * What caused a WelcomeMat close request (same as the underlying Modal's)\n */\nexport type WelcomeMatRequestCloseTrigger = ModalRequestCloseTrigger;\n\n/**\n * Data passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseData = ModalRequestCloseData;\n\n/**\n * Event passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseEvent = ModalRequestCloseEvent;\n\ninterface WelcomeMatBaseProps {\n\t/** CSS classes for the root `.slds-welcome-mat` div */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether modal is open */\n\tisOpen?: boolean;\n\t/** Text labels */\n\tlabels?: WelcomeMatLabels;\n\t/**\n\t * Close request handler, forwarded from the underlying Modal. Receives the triggering\n\t * click or keydown event and `data.trigger`: `'close-button'`, `'escape'`, or `'click-outside'`.\n\t */\n\tonRequestClose?: (\n\t\tevent: WelcomeMatRequestCloseEvent,\n\t\tdata: WelcomeMatRequestCloseData\n\t) => void;\n}\n\n/**\n * `variant` decides what the info panel shows. `steps` and\n * `trailhead-connected` show progress through `WelcomeMatTile` children;\n * `info-only` and `splash` show actions instead.\n */\nexport type WelcomeMatVariantProps =\n\t| {\n\t\t\t/** Tiles with a progress bar */\n\t\t\tvariant?: 'steps';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\tinfoBadge?: never;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with Trailhead progress and an info badge */\n\t\t\tvariant: 'trailhead-connected';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\t/** WelcomeMatInfoBadge shown above the progress */\n\t\t\tinfoBadge?: ReactNode;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with actions instead of progress */\n\t\t\tvariant: 'info-only';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t }\n\t| {\n\t\t\t/** Info panel only, with actions and no tiles */\n\t\t\tvariant: 'splash';\n\t\t\tchildren?: never;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t };\n\n/**\n * Props for the WelcomeMat component\n */\nexport type WelcomeMatProps = WelcomeMatBaseProps & WelcomeMatVariantProps;\n\nconst defaultLabels: WelcomeMatLabels = {\n\tunitsCompletedAfter: 'units completed',\n};\n\n/**\n * A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic.\n */\nconst WelcomeMat = forwardRef<HTMLDivElement, WelcomeMatProps>(\n\t(\n\t\t{\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdoNotShowAgainCheckbox,\n\t\t\tid: propId,\n\t\t\tinfoActions,\n\t\t\tinfoBadge,\n\t\t\tisOpen = true,\n\t\t\tlabels: propLabels,\n\t\t\tonRequestClose,\n\t\t\tonRenderInfoActions,\n\t\t\tvariant = 'steps',\n\t\t},\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst labels = { ...defaultLabels, ...propLabels };\n\n\t\tuseEffect(() => {\n\t\t\tcheckProps(WELCOME_MAT, { onRenderInfoActions }, componentDoc);\n\t\t}, [onRenderInfoActions]);\n\n\t\t// Calculate progress from children\n\t\tconst { totalSteps, completedSteps, progress } = useMemo(() => {\n\t\t\tconst total = React.Children.count(children);\n\t\t\tconst completed = React.Children.toArray(children).filter(\n\t\t\t\t(c) =>\n\t\t\t\t\tReact.isValidElement(c) &&\n\t\t\t\t\t(c.props as { isComplete?: boolean }).isComplete\n\t\t\t).length;\n\t\t\treturn {\n\t\t\t\ttotalSteps: total,\n\t\t\t\tcompletedSteps: completed,\n\t\t\t\tprogress: total > 0 ? (completed / total) * 100 : 0,\n\t\t\t};\n\t\t}, [children]);\n\n\t\tconst splash = (\n\t\t\t<div className=\"slds-welcome-mat__info-content\" id={`${id}-content`}>\n\t\t\t\t<h2 className=\"slds-welcome-mat__info-title\" id={`${id}-label`}>\n\t\t\t\t\t{labels.title}\n\t\t\t\t</h2>\n\t\t\t\t<div className=\"slds-welcome-mat__info-description slds-text-longform\">\n\t\t\t\t\t<p>{labels.description}</p>\n\t\t\t\t</div>\n\t\t\t\t{(variant === 'info-only' || variant === 'splash') && (\n\t\t\t\t\t<div className=\"slds-welcome-mat__info-actions\">\n\t\t\t\t\t\t{infoActions ?? onRenderInfoActions?.()}\n\t\t\t\t\t\t{doNotShowAgainCheckbox && (\n\t\t\t\t\t\t\t<div className=\"slds-m-top_large\">{doNotShowAgainCheckbox}</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{(variant === 'steps' || variant === 'trailhead-connected') &&\n\t\t\t\t\tchildren && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={classNames('slds-welcome-mat__info-progress', {\n\t\t\t\t\t\t\t\t'slds-welcome-mat__info-progress_complete':\n\t\t\t\t\t\t\t\t\tcompletedSteps === totalSteps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{variant === 'trailhead-connected' &&\n\t\t\t\t\t\t\t\tReact.Children.map(infoBadge, (child) =>\n\t\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\t\t\tchild as ReactElement<{ isComplete?: boolean }>,\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tisComplete:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcompletedSteps === totalSteps || undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{(completedSteps !== totalSteps ||\n\t\t\t\t\t\t\t\tvariant !== 'trailhead-connected') && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{variant === 'trailhead-connected' ? (\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps}{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t{labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<ProgressBar value={progress} radius=\"circular\" />\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tassistiveText={{\n\t\t\t\t\tdialogLabelledBy: `${id}-label`,\n\t\t\t\t}}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonRequestClose={onRequestClose}\n\t\t\t\tsize=\"small\"\n\t\t\t\tid={`${id}-modal`}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-welcome-mat',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'slds-welcome-mat_info-only': variant === 'info-only',\n\t\t\t\t\t\t\t'slds-welcome-mat_splash': !children,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclassName\n\t\t\t\t\t)}\n\t\t\t\t\tid={id}\n\t\t\t\t\tref={ref}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-welcome-mat__content slds-grid\">\n\t\t\t\t\t\t{children ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-2\">\n\t\t\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles',\n\t\t\t\t\t\t\t\t\t\t'slds-size_1-of-2',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles_info-only':\n\t\t\t\t\t\t\t\t\t\t\t\tvariant === 'info-only',\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{React.Children.map(children, (child) =>\n\t\t\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\t\t\t\tchild as ReactElement<{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant?: WelcomeMatVariant;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}>,\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-1\">\n\t\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Modal>\n\t\t);\n\t}\n);\n\nWelcomeMat.displayName = WELCOME_MAT;\n\nexport default WelcomeMat;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/welcome-mat/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tforwardRef,\n\tuseEffect,\n\tuseId,\n\tuseMemo,\n\ttype ReactNode,\n\ttype ReactElement,\n} from 'react';\nimport classNames from 'classnames';\nimport Modal, {\n\ttype ModalRequestCloseData,\n\ttype ModalRequestCloseEvent,\n\ttype ModalRequestCloseTrigger,\n} from '../modal';\nimport ProgressBar from '../progress-bar';\nimport { WELCOME_MAT } from '../../utilities/constants';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport type { WelcomeMatTileInjectedProps, WelcomeMatTileProps } from './tile';\nimport type { WelcomeMatInfoBadgeProps } from './info-badge';\nimport type { ChildrenOf } from '../../types/common';\n\n/**\n * Welcome mat variant types\n */\nexport type WelcomeMatVariant =\n\t'steps' | 'info-only' | 'splash' | 'trailhead-connected';\n\n/**\n * Labels for WelcomeMat\n */\nexport interface WelcomeMatLabels {\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Text after units completed number */\n\tunitsCompletedAfter?: string;\n}\n\n/**\n * What caused a WelcomeMat close request (same as the underlying Modal's)\n */\nexport type WelcomeMatRequestCloseTrigger = ModalRequestCloseTrigger;\n\n/**\n * Data passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseData = ModalRequestCloseData;\n\n/**\n * Event passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseEvent = ModalRequestCloseEvent;\n\ninterface WelcomeMatBaseProps {\n\t/** CSS classes for the root `.slds-welcome-mat` div */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether modal is open */\n\tisOpen?: boolean;\n\t/** Text labels */\n\tlabels?: WelcomeMatLabels;\n\t/**\n\t * Close request handler, forwarded from the underlying Modal. Receives the triggering\n\t * click or keydown event and `data.trigger`: `'close-button'`, `'escape'`, or `'click-outside'`.\n\t */\n\tonRequestClose?: (\n\t\tevent: WelcomeMatRequestCloseEvent,\n\t\tdata: WelcomeMatRequestCloseData\n\t) => void;\n}\n\n/**\n * `variant` decides what the info panel shows. `steps` and\n * `trailhead-connected` show progress through `WelcomeMatTile` children;\n * `info-only` and `splash` show actions instead.\n */\nexport type WelcomeMatVariantProps =\n\t| {\n\t\t\t/** Tiles with a progress bar */\n\t\t\tvariant?: 'steps';\n\t\t\t/** `WelcomeMatTile` elements. Progress counts the tiles and their `isComplete`. */\n\t\t\tchildren: ChildrenOf<WelcomeMatTileProps>;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\tinfoBadge?: never;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with Trailhead progress and an info badge */\n\t\t\tvariant: 'trailhead-connected';\n\t\t\t/** `WelcomeMatTile` elements. Progress counts the tiles and their `isComplete`. */\n\t\t\tchildren: ChildrenOf<WelcomeMatTileProps>;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\t/** `WelcomeMatInfoBadge` shown above the progress. The WelcomeMat sets its `isComplete` from the tiles. */\n\t\t\tinfoBadge?: ReactElement<WelcomeMatInfoBadgeProps>;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with actions instead of progress */\n\t\t\tvariant: 'info-only';\n\t\t\t/** `WelcomeMatTile` elements. Progress counts the tiles and their `isComplete`. */\n\t\t\tchildren: ChildrenOf<WelcomeMatTileProps>;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t }\n\t| {\n\t\t\t/** Info panel only, with actions and no tiles */\n\t\t\tvariant: 'splash';\n\t\t\tchildren?: never;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t };\n\n/**\n * Props for the WelcomeMat component\n */\nexport type WelcomeMatProps = WelcomeMatBaseProps & WelcomeMatVariantProps;\n\nconst defaultLabels: WelcomeMatLabels = {\n\tunitsCompletedAfter: 'units completed',\n};\n\n/**\n * A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic.\n */\nconst WelcomeMat = forwardRef<HTMLDivElement, WelcomeMatProps>(\n\t(\n\t\t{\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdoNotShowAgainCheckbox,\n\t\t\tid: propId,\n\t\t\tinfoActions,\n\t\t\tinfoBadge,\n\t\t\tisOpen = true,\n\t\t\tlabels: propLabels,\n\t\t\tonRequestClose,\n\t\t\tonRenderInfoActions,\n\t\t\tvariant = 'steps',\n\t\t},\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst labels = { ...defaultLabels, ...propLabels };\n\n\t\tuseEffect(() => {\n\t\t\tcheckProps(WELCOME_MAT, { onRenderInfoActions }, componentDoc);\n\t\t}, [onRenderInfoActions]);\n\n\t\t// Calculate progress from children\n\t\tconst { totalSteps, completedSteps, progress } = useMemo(() => {\n\t\t\tconst tiles = React.Children.toArray(children).filter((c) =>\n\t\t\t\tReact.isValidElement<WelcomeMatTileProps>(c)\n\t\t\t) as ReactElement<WelcomeMatTileProps>[];\n\t\t\tconst total = tiles.length;\n\t\t\tconst completed = tiles.filter((tile) => tile.props.isComplete).length;\n\t\t\treturn {\n\t\t\t\ttotalSteps: total,\n\t\t\t\tcompletedSteps: completed,\n\t\t\t\tprogress: total > 0 ? (completed / total) * 100 : 0,\n\t\t\t};\n\t\t}, [children]);\n\n\t\tconst splash = (\n\t\t\t<div className=\"slds-welcome-mat__info-content\" id={`${id}-content`}>\n\t\t\t\t<h2 className=\"slds-welcome-mat__info-title\" id={`${id}-label`}>\n\t\t\t\t\t{labels.title}\n\t\t\t\t</h2>\n\t\t\t\t<div className=\"slds-welcome-mat__info-description slds-text-longform\">\n\t\t\t\t\t<p>{labels.description}</p>\n\t\t\t\t</div>\n\t\t\t\t{(variant === 'info-only' || variant === 'splash') && (\n\t\t\t\t\t<div className=\"slds-welcome-mat__info-actions\">\n\t\t\t\t\t\t{infoActions ?? onRenderInfoActions?.()}\n\t\t\t\t\t\t{doNotShowAgainCheckbox && (\n\t\t\t\t\t\t\t<div className=\"slds-m-top_large\">{doNotShowAgainCheckbox}</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{(variant === 'steps' || variant === 'trailhead-connected') &&\n\t\t\t\t\tchildren && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={classNames('slds-welcome-mat__info-progress', {\n\t\t\t\t\t\t\t\t'slds-welcome-mat__info-progress_complete':\n\t\t\t\t\t\t\t\t\tcompletedSteps === totalSteps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{variant === 'trailhead-connected' &&\n\t\t\t\t\t\t\t\tReact.isValidElement<WelcomeMatInfoBadgeProps>(infoBadge) &&\n\t\t\t\t\t\t\t\tReact.cloneElement(infoBadge, {\n\t\t\t\t\t\t\t\t\tisComplete: completedSteps === totalSteps || undefined,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t{(completedSteps !== totalSteps ||\n\t\t\t\t\t\t\t\tvariant !== 'trailhead-connected') && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{variant === 'trailhead-connected' ? (\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps}{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t{labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<ProgressBar value={progress} radius=\"circular\" />\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tassistiveText={{\n\t\t\t\t\tdialogLabelledBy: `${id}-label`,\n\t\t\t\t}}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonRequestClose={onRequestClose}\n\t\t\t\tsize=\"small\"\n\t\t\t\tid={`${id}-modal`}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-welcome-mat',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'slds-welcome-mat_info-only': variant === 'info-only',\n\t\t\t\t\t\t\t'slds-welcome-mat_splash': !children,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclassName\n\t\t\t\t\t)}\n\t\t\t\t\tid={id}\n\t\t\t\t\tref={ref}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-welcome-mat__content slds-grid\">\n\t\t\t\t\t\t{children ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-2\">\n\t\t\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles',\n\t\t\t\t\t\t\t\t\t\t'slds-size_1-of-2',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles_info-only':\n\t\t\t\t\t\t\t\t\t\t\t\tvariant === 'info-only',\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{React.Children.map(children, (child) =>\n\t\t\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t\t\t? React.cloneElement<\n\t\t\t\t\t\t\t\t\t\t\t\t\tWelcomeMatTileProps & WelcomeMatTileInjectedProps\n\t\t\t\t\t\t\t\t\t\t\t\t>(child as ReactElement<WelcomeMatTileProps>, {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-1\">\n\t\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Modal>\n\t\t);\n\t}\n);\n\nWelcomeMat.displayName = WELCOME_MAT;\n\nexport default WelcomeMat;\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WELCOME_MAT_BADGE as e } from "../../utilities/constants.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
2
|
+
import t from "../icon/index.js";
|
|
3
|
+
import n from "../../utilities/generate-id.js";
|
|
4
4
|
import r from "./check-props.js";
|
|
5
5
|
import i from "./component.js";
|
|
6
6
|
import a from "react";
|
|
@@ -19,7 +19,7 @@ var c = e, l = {
|
|
|
19
19
|
static defaultProps = u;
|
|
20
20
|
generatedId;
|
|
21
21
|
constructor(e) {
|
|
22
|
-
super(e), this.generatedId =
|
|
22
|
+
super(e), this.generatedId = n();
|
|
23
23
|
}
|
|
24
24
|
componentDidMount() {
|
|
25
25
|
r(e, this.props, i);
|
|
@@ -45,14 +45,14 @@ var c = e, l = {
|
|
|
45
45
|
src: this.props.image,
|
|
46
46
|
width: "50",
|
|
47
47
|
height: "50",
|
|
48
|
-
alt: ""
|
|
49
|
-
}), /* @__PURE__ */ o(
|
|
48
|
+
alt: this.props.assistiveText?.image ?? ""
|
|
49
|
+
}), this.props.isComplete ? /* @__PURE__ */ o(t, {
|
|
50
50
|
category: "action",
|
|
51
51
|
name: "check",
|
|
52
52
|
assistiveText: { label: this.getCompletedText() },
|
|
53
53
|
containerStyle: l,
|
|
54
54
|
size: "xx-small"
|
|
55
|
-
})]
|
|
55
|
+
}) : null]
|
|
56
56
|
}),
|
|
57
57
|
this.props.children,
|
|
58
58
|
this.props.isComplete ? this.props.completeActions ?? this.props.onCompleteRenderActions?.() : null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-badge.js","names":[],"sources":["../../../../components/welcome-mat/info-badge.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat InfoBadge design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_BADGE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nconst displayName = WELCOME_MAT_BADGE;\n\n// SLDS 2 only sizes and positions the complete check inside a tile, so the\n// badge's check needs the geometry SLDS 1 applied to every welcome mat check.\n// Visibility still comes from `.slds-welcome-mat__info-progress_complete`.\nconst completeCheckStyle: React.CSSProperties = {\n\tposition: 'absolute',\n\theight: '1.25rem',\n\twidth: '1.25rem',\n\tpadding: '0.25rem',\n\tborderRadius: '1.25rem',\n\tlineHeight: 0,\n\tbackground: 'var(--slds-g-color-success-1, #3ba755)',\n};\n\nexport interface WelcomeMatInfoBadgeProps {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * * `completed` : For users of assistive technology, assistive text for completed icon.\n\t */\n\tassistiveText?: {\n\t\tcompleted?: string;\n\t};\n\t/**\n\t * Content rendered inside the badge container.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Actions shown when the trail is complete (`isComplete` is true)\n\t */\n\tcompleteActions?: ReactNode;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Icon for the tile\n\t */\n\timage?: string;\n\t/**\n\t * Whether the trail is completed\n\t */\n\tisComplete?: boolean;\n\t/** @deprecated Use `completeActions` instead. */\n\tonCompleteRenderActions?: () => ReactNode;\n}\n\nconst defaultProps: Partial<WelcomeMatInfoBadgeProps> = {\n\tisComplete: false,\n};\n\n/**\n * InfoBadge component item represents a tile in a Welcome Mat\n */\nclass InfoBadge extends React.Component<WelcomeMatInfoBadgeProps> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\tconstructor(props: WelcomeMatInfoBadgeProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\tcomponentDidMount() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\t/**\n\t * Get the Welcome Mat Info Badge's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetCompletedText() {\n\t\treturn this.props.assistiveText && this.props.assistiveText.completed\n\t\t\t? this.props.assistiveText.completed\n\t\t\t: 'Completed';\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div id={this.getId()} className={this.props.className as string}>\n\t\t\t\t<div className=\"slds-welcome-mat__info-badge-container\">\n\t\t\t\t\t<img\n\t\t\t\t\t\tclassName=\"slds-welcome-mat__info-badge\"\n\t\t\t\t\t\tsrc={this.props.image}\n\t\t\t\t\t\twidth=\"50\"\n\t\t\t\t\t\theight=\"50\"\n\t\t\t\t\t\talt
|
|
1
|
+
{"version":3,"file":"info-badge.js","names":[],"sources":["../../../../components/welcome-mat/info-badge.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat InfoBadge design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_BADGE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nconst displayName = WELCOME_MAT_BADGE;\n\n// SLDS 2 only sizes and positions the complete check inside a tile, so the\n// badge's check needs the geometry SLDS 1 applied to every welcome mat check.\n// Visibility still comes from `.slds-welcome-mat__info-progress_complete`.\nconst completeCheckStyle: React.CSSProperties = {\n\tposition: 'absolute',\n\theight: '1.25rem',\n\twidth: '1.25rem',\n\tpadding: '0.25rem',\n\tborderRadius: '1.25rem',\n\tlineHeight: 0,\n\tbackground: 'var(--slds-g-color-success-1, #3ba755)',\n};\n\nexport interface WelcomeMatInfoBadgeProps {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * * `completed` : For users of assistive technology, assistive text for completed icon.\n\t * * `image` : Alt text for the badge `image`. Defaults to `''` (decorative).\n\t */\n\tassistiveText?: {\n\t\tcompleted?: string;\n\t\timage?: string;\n\t};\n\t/**\n\t * Content rendered inside the badge container.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Actions shown when the trail is complete (`isComplete` is true)\n\t */\n\tcompleteActions?: ReactNode;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Icon for the tile\n\t */\n\timage?: string;\n\t/**\n\t * Whether the trail is completed\n\t */\n\tisComplete?: boolean;\n\t/** @deprecated Use `completeActions` instead. */\n\tonCompleteRenderActions?: () => ReactNode;\n}\n\nconst defaultProps: Partial<WelcomeMatInfoBadgeProps> = {\n\tisComplete: false,\n};\n\n/**\n * InfoBadge component item represents a tile in a Welcome Mat\n */\nclass InfoBadge extends React.Component<WelcomeMatInfoBadgeProps> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\tconstructor(props: WelcomeMatInfoBadgeProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\tcomponentDidMount() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\t/**\n\t * Get the Welcome Mat Info Badge's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetCompletedText() {\n\t\treturn this.props.assistiveText && this.props.assistiveText.completed\n\t\t\t? this.props.assistiveText.completed\n\t\t\t: 'Completed';\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div id={this.getId()} className={this.props.className as string}>\n\t\t\t\t<div className=\"slds-welcome-mat__info-badge-container\">\n\t\t\t\t\t<img\n\t\t\t\t\t\tclassName=\"slds-welcome-mat__info-badge\"\n\t\t\t\t\t\tsrc={this.props.image}\n\t\t\t\t\t\twidth=\"50\"\n\t\t\t\t\t\theight=\"50\"\n\t\t\t\t\t\talt={this.props.assistiveText?.image ?? ''}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.props.isComplete ? (\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tcategory=\"action\"\n\t\t\t\t\t\t\tname=\"check\"\n\t\t\t\t\t\t\tassistiveText={{ label: this.getCompletedText() }}\n\t\t\t\t\t\t\tcontainerStyle={completeCheckStyle}\n\t\t\t\t\t\t\tsize=\"xx-small\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : null}\n\t\t\t\t</div>\n\t\t\t\t{this.props.children}\n\t\t\t\t{this.props.isComplete\n\t\t\t\t\t? (this.props.completeActions ??\n\t\t\t\t\t\tthis.props.onCompleteRenderActions?.())\n\t\t\t\t\t: null}\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default InfoBadge;\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAc,GAKd,IAA0C;CAC/C,UAAU;CACV,QAAQ;CACR,OAAO;CACP,SAAS;CACT,cAAc;CACd,YAAY;CACZ,YAAY;AACb,GAwCM,IAAkD,EACvD,YAAY,GACb,GAKM,IAAN,cAAwB,EAAM,UAAoC;CACjE,OAAO,cAAc;CAErB,OAAO,eAAe;CAEtB;CAEA,YAAY,GAAiC;EAG5C,AAFA,MAAM,CAAK,GAEX,KAAK,cAAc,EAAW;CAC/B;CAEA,oBAAoB;EACnB,EAAW,GAAmB,KAAK,OAAO,CAAY;CACvD;CAEA,qBAAqB;EACpB,EAAW,GAAmB,KAAK,OAAO,CAAY;CACvD;CAKA,QAAQ;EACP,OAAO,KAAK,MAAM,MAAM,KAAK;CAC9B;CAEA,mBAAmB;EAClB,OAAO,KAAK,MAAM,iBAAiB,KAAK,MAAM,cAAc,YACzD,KAAK,MAAM,cAAc,YACzB;CACJ;CAEA,SAAS;EACR,OACC,kBAAC,OAAD;GAAK,IAAI,KAAK,MAAM;GAAG,WAAW,KAAK,MAAM;GAA7C,UAAA;IACC,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACC,kBAAC,OAAD;MACC,WAAU;MACV,KAAK,KAAK,MAAM;MAChB,OAAM;MACN,QAAO;MACP,KAAK,KAAK,MAAM,eAAe,SAAS;KACxC,CAAA,GACA,KAAK,MAAM,aACX,kBAAC,GAAD;MACC,UAAS;MACT,MAAK;MACL,eAAe,EAAE,OAAO,KAAK,iBAAiB,EAAE;MAChD,gBAAgB;MAChB,MAAK;KACL,CAAA,IACE,IACA;;IACJ,KAAK,MAAM;IACX,KAAK,MAAM,aACR,KAAK,MAAM,mBACb,KAAK,MAAM,0BAA0B,IACpC;GACC;;CAEP;AACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WELCOME_MAT_TILE as e } from "../../utilities/constants.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
2
|
+
import t from "../icon/index.js";
|
|
3
|
+
import n from "../../utilities/generate-id.js";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import i from "classnames";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ var s = e, c = {
|
|
|
14
14
|
static defaultProps = c;
|
|
15
15
|
generatedId;
|
|
16
16
|
constructor(e) {
|
|
17
|
-
super(e), this.generatedId =
|
|
17
|
+
super(e), this.generatedId = n();
|
|
18
18
|
}
|
|
19
19
|
getId() {
|
|
20
20
|
return this.props.id || this.generatedId;
|
|
@@ -23,13 +23,13 @@ var s = e, c = {
|
|
|
23
23
|
let e = {
|
|
24
24
|
...c.assistiveText,
|
|
25
25
|
...this.props.assistiveText
|
|
26
|
-
},
|
|
26
|
+
}, n = /* @__PURE__ */ o(r.Fragment, { children: [/* @__PURE__ */ a("div", {
|
|
27
27
|
className: i("slds-media__figure", "slds-media__figure_fixed-width", "slds-align_absolute-center"),
|
|
28
28
|
children: /* @__PURE__ */ a("div", {
|
|
29
29
|
className: "slds-welcome-mat__tile-figure",
|
|
30
30
|
children: /* @__PURE__ */ o("div", {
|
|
31
31
|
className: "slds-welcome-mat__tile-icon-container",
|
|
32
|
-
children: [this.props.icon, this.props.isComplete && this.props.variant !== "info-only" ? /* @__PURE__ */ a(
|
|
32
|
+
children: [this.props.icon, this.props.isComplete && this.props.variant !== "info-only" ? /* @__PURE__ */ a(t, {
|
|
33
33
|
assistiveText: { label: e.completedIcon },
|
|
34
34
|
category: "action",
|
|
35
35
|
name: "check",
|
|
@@ -55,11 +55,11 @@ var s = e, c = {
|
|
|
55
55
|
className: i("slds-welcome-mat__tile", this.props.variant === "info-only" ? "slds-welcome-mat__tile_info-only" : null, this.props.isComplete && this.props.variant !== "info-only" ? "slds-welcome-mat__tile_complete" : null, this.props.className),
|
|
56
56
|
children: this.props.variant === "info-only" ? /* @__PURE__ */ a("div", {
|
|
57
57
|
className: "slds-media",
|
|
58
|
-
children:
|
|
58
|
+
children: n
|
|
59
59
|
}) : /* @__PURE__ */ a("a", {
|
|
60
60
|
href: this.props.href,
|
|
61
61
|
className: "slds-box slds-box_link slds-media",
|
|
62
|
-
children:
|
|
62
|
+
children: n
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.js","names":[],"sources":["../../../../components/welcome-mat/tile.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat Tile design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_TILE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nconst displayName = WELCOME_MAT_TILE;\n\nexport type WelcomeMatTileVariant =\n\t
|
|
1
|
+
{"version":3,"file":"tile.js","names":[],"sources":["../../../../components/welcome-mat/tile.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat Tile design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_TILE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nconst displayName = WELCOME_MAT_TILE;\n\nexport type WelcomeMatTileVariant =\n\t'steps' | 'info-only' | 'splash' | 'trailhead-connected';\n\nexport interface WelcomeMatTileProps {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * This object is merged with the default props object on every render.\n\t * * `completedIcon`: Text that is visually hidden but read aloud by screenreaders to tell the user what the complete icon means.\n\t */\n\tassistiveText?: {\n\t\tcompletedIcon?: string;\n\t};\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * Description for the tile component.\n\t */\n\tdescription?: string;\n\t/**\n\t * Href for the tile link\n\t */\n\thref?: string;\n\t/**\n\t * Icon for the tile\n\t */\n\ticon?: ReactNode;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Whether the tile is completed\n\t */\n\tisComplete?: boolean;\n\t/**\n\t * Title for the tile component.\n\t */\n\ttitle?: string;\n}\n\n/**\n * Props the WelcomeMat sets on each tile. Not part of the public API.\n */\nexport interface WelcomeMatTileInjectedProps {\n\t/** The parent WelcomeMat's variant */\n\tvariant?: WelcomeMatTileVariant;\n}\n\nconst defaultProps: Partial<WelcomeMatTileProps & WelcomeMatTileInjectedProps> =\n\t{\n\t\tassistiveText: {\n\t\t\tcompletedIcon: 'Completed',\n\t\t},\n\t\tisComplete: false,\n\t\tvariant: 'steps',\n\t};\n\n/**\n * Tile component item represents a tile in a Welcome Mat\n */\nclass Tile extends React.Component<\n\tWelcomeMatTileProps & WelcomeMatTileInjectedProps\n> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\tconstructor(props: WelcomeMatTileProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\t/**\n\t * Get the Welcome Mat Tile's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\trender() {\n\t\tconst assistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...this.props.assistiveText,\n\t\t};\n\t\tconst body = (\n\t\t\t<React.Fragment>\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-media__figure',\n\t\t\t\t\t\t'slds-media__figure_fixed-width',\n\t\t\t\t\t\t'slds-align_absolute-center'\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-welcome-mat__tile-figure\">\n\t\t\t\t\t\t<div className=\"slds-welcome-mat__tile-icon-container\">\n\t\t\t\t\t\t\t{this.props.icon}\n\t\t\t\t\t\t\t{this.props.isComplete && this.props.variant !== 'info-only' ? (\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\t\t\t\tlabel: assistiveText.completedIcon,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tcategory=\"action\"\n\t\t\t\t\t\t\t\t\tname=\"check\"\n\t\t\t\t\t\t\t\t\ttitle={assistiveText.completedIcon}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t<div className=\"slds-welcome-mat__tile-body\">\n\t\t\t\t\t\t<h3 className=\"slds-welcome-mat__tile-title\">{this.props.title}</h3>\n\t\t\t\t\t\t<p className=\"slds-welcome-mat__tile-description\">\n\t\t\t\t\t\t\t{this.props.description}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</React.Fragment>\n\t\t);\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={this.getId()}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-welcome-mat__tile',\n\t\t\t\t\tthis.props.variant === 'info-only'\n\t\t\t\t\t\t? 'slds-welcome-mat__tile_info-only'\n\t\t\t\t\t\t: null,\n\t\t\t\t\tthis.props.isComplete && this.props.variant !== 'info-only'\n\t\t\t\t\t\t? 'slds-welcome-mat__tile_complete'\n\t\t\t\t\t\t: null,\n\t\t\t\t\tthis.props.className as string\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{this.props.variant === 'info-only' ? (\n\t\t\t\t\t<div className=\"slds-media\">{body}</div>\n\t\t\t\t) : (\n\t\t\t\t\t<a\n\t\t\t\t\t\thref={this.props.href}\n\t\t\t\t\t\tclassName=\"slds-box slds-box_link slds-media\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{body}\n\t\t\t\t\t</a>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default Tile as React.ComponentType<WelcomeMatTileProps>;\n"],"mappings":";;;;;;;AAaA,IAAM,IAAc,GAoDd,IACL;CACC,eAAe,EACd,eAAe,YAChB;CACA,YAAY;CACZ,SAAS;AACV,GAKK,IAAN,cAAmB,EAAM,UAEvB;CACD,OAAO,cAAc;CAErB,OAAO,eAAe;CAEtB;CAEA,YAAY,GAA4B;EAGvC,AAFA,MAAM,CAAK,GAEX,KAAK,cAAc,EAAW;CAC/B;CAKA,QAAQ;EACP,OAAO,KAAK,MAAM,MAAM,KAAK;CAC9B;CAEA,SAAS;EACR,IAAM,IAAgB;GACrB,GAAG,EAAa;GAChB,GAAG,KAAK,MAAM;EACf,GACM,IACL,kBAAC,EAAM,UAAP,EAAA,UAAA,CACC,kBAAC,OAAD;GACC,WAAW,EACV,sBACA,kCACA,4BACD;GAEA,UAAA,kBAAC,OAAD;IAAK,WAAU;IACd,UAAA,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,KAAK,MAAM,MACX,KAAK,MAAM,cAAc,KAAK,MAAM,YAAY,cAChD,kBAAC,GAAD;MACC,eAAe,EACd,OAAO,EAAc,cACtB;MACA,UAAS;MACT,MAAK;MACL,OAAO,EAAc;KACrB,CAAA,IACE,IACA;;GACD,CAAA;EACD,CAAA,GACL,kBAAC,OAAD;GAAK,WAAU;GACd,UAAA,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACC,kBAAC,MAAD;KAAI,WAAU;KAAgC,UAAA,KAAK,MAAM;IAAU,CAAA,GACnE,kBAAC,KAAD;KAAG,WAAU;KACX,UAAA,KAAK,MAAM;IACV,CAAA,CACC;;EACD,CAAA,CACU,EAAA,CAAA;EAGjB,OACC,kBAAC,OAAD;GACC,IAAI,KAAK,MAAM;GACf,WAAW,EACV,0BACA,KAAK,MAAM,YAAY,cACpB,qCACA,MACH,KAAK,MAAM,cAAc,KAAK,MAAM,YAAY,cAC7C,oCACA,MACH,KAAK,MAAM,SACZ;GAEC,UAAA,KAAK,MAAM,YAAY,cACvB,kBAAC,OAAD;IAAK,WAAU;IAAc,UAAA;GAAU,CAAA,IAEvC,kBAAC,KAAD;IACC,MAAM,KAAK,MAAM;IACjB,WAAU;IAET,UAAA;GACC,CAAA;EAEA,CAAA;CAEP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","names":[],"sources":["../../../utilities/color.js"],"sourcesContent":["import assign from 'lodash.assign';\n\nconst COLOR_NAMES = {\n\taliceblue: '#f0f8ff',\n\tantiquewhite: '#faebd7',\n\taqua: '#00ffff',\n\taquamarine: '#7fffd4',\n\tazure: '#f0ffff',\n\tbeige: '#f5f5dc',\n\tbisque: '#ffe4c4',\n\tblack: '#000000',\n\tblanchedalmond: '#ffebcd',\n\tblue: '#0000ff',\n\tblueviolet: '#8a2be2',\n\tbrown: '#a52a2a',\n\tburlywood: '#deb887',\n\tcadetblue: '#5f9ea0',\n\tchartreuse: '#7fff00',\n\tchocolate: '#d2691e',\n\tcoral: '#ff7f50',\n\tcornflowerblue: '#6495ed',\n\tcornsilk: '#fff8dc',\n\tcrimson: '#dc143c',\n\tcyan: '#00ffff',\n\tdarkblue: '#00008b',\n\tdarkcyan: '#008b8b',\n\tdarkgoldenrod: '#b8860b',\n\tdarkgray: '#a9a9a9',\n\tdarkgreen: '#006400',\n\tdarkkhaki: '#bdb76b',\n\tdarkmagenta: '#8b008b',\n\tdarkolivegreen: '#556b2f',\n\tdarkorange: '#ff8c00',\n\tdarkorchid: '#9932cc',\n\tdarkred: '#8b0000',\n\tdarksalmon: '#e9967a',\n\tdarkseagreen: '#8fbc8f',\n\tdarkslateblue: '#483d8b',\n\tdarkslategray: '#2f4f4f',\n\tdarkturquoise: '#00ced1',\n\tdarkviolet: '#9400d3',\n\tdeeppink: '#ff1493',\n\tdeepskyblue: '#00bfff',\n\tdimgray: '#696969',\n\tdodgerblue: '#1e90ff',\n\tfirebrick: '#b22222',\n\tfloralwhite: '#fffaf0',\n\tforestgreen: '#228b22',\n\tfuchsia: '#ff00ff',\n\tgainsboro: '#dcdcdc',\n\tghostwhite: '#f8f8ff',\n\tgold: '#ffd700',\n\tgoldenrod: '#daa520',\n\tgray: '#808080',\n\tgreen: '#008000',\n\tgreenyellow: '#adff2f',\n\thoneydew: '#f0fff0',\n\thotpink: '#ff69b4',\n\tindianred: '#cd5c5c',\n\tindigo: '#4b0082',\n\tivory: '#fffff0',\n\tkhaki: '#f0e68c',\n\tlavender: '#e6e6fa',\n\tlavenderblush: '#fff0f5',\n\tlawngreen: '#7cfc00',\n\tlemonchiffon: '#fffacd',\n\tlightblue: '#add8e6',\n\tlightcoral: '#f08080',\n\tlightcyan: '#e0ffff',\n\tlightgoldenrodyellow: '#fafad2',\n\tlightgrey: '#d3d3d3',\n\tlightgreen: '#90ee90',\n\tlightpink: '#ffb6c1',\n\tlightsalmon: '#ffa07a',\n\tlightseagreen: '#20b2aa',\n\tlightskyblue: '#87cefa',\n\tlightslategray: '#778899',\n\tlightsteelblue: '#b0c4de',\n\tlightyellow: '#ffffe0',\n\tlime: '#00ff00',\n\tlimegreen: '#32cd32',\n\tlinen: '#faf0e6',\n\tmagenta: '#ff00ff',\n\tmaroon: '#800000',\n\tmediumaquamarine: '#66cdaa',\n\tmediumblue: '#0000cd',\n\tmediumorchid: '#ba55d3',\n\tmediumpurple: '#9370d8',\n\tmediumseagreen: '#3cb371',\n\tmediumslateblue: '#7b68ee',\n\tmediumspringgreen: '#00fa9a',\n\tmediumturquoise: '#48d1cc',\n\tmediumvioletred: '#c71585',\n\tmidnightblue: '#191970',\n\tmintcream: '#f5fffa',\n\tmistyrose: '#ffe4e1',\n\tmoccasin: '#ffe4b5',\n\tnavajowhite: '#ffdead',\n\tnavy: '#000080',\n\toldlace: '#fdf5e6',\n\tolive: '#808000',\n\tolivedrab: '#6b8e23',\n\torange: '#ffa500',\n\torangered: '#ff4500',\n\torchid: '#da70d6',\n\tpalegoldenrod: '#eee8aa',\n\tpalegreen: '#98fb98',\n\tpaleturquoise: '#afeeee',\n\tpalevioletred: '#d87093',\n\tpapayawhip: '#ffefd5',\n\tpeachpuff: '#ffdab9',\n\tperu: '#cd853f',\n\tpink: '#ffc0cb',\n\tplum: '#dda0dd',\n\tpowderblue: '#b0e0e6',\n\tpurple: '#800080',\n\trebeccapurple: '#663399',\n\tred: '#ff0000',\n\trosybrown: '#bc8f8f',\n\troyalblue: '#4169e1',\n\tsaddlebrown: '#8b4513',\n\tsalmon: '#fa8072',\n\tsandybrown: '#f4a460',\n\tseagreen: '#2e8b57',\n\tseashell: '#fff5ee',\n\tsienna: '#a0522d',\n\tsilver: '#c0c0c0',\n\tskyblue: '#87ceeb',\n\tslateblue: '#6a5acd',\n\tslategray: '#708090',\n\tsnow: '#fffafa',\n\tspringgreen: '#00ff7f',\n\tsteelblue: '#4682b4',\n\ttan: '#d2b48c',\n\tteal: '#008080',\n\tthistle: '#d8bfd8',\n\ttomato: '#ff6347',\n\tturquoise: '#40e0d0',\n\tviolet: '#ee82ee',\n\twheat: '#f5deb3',\n\twhite: '#ffffff',\n\twhitesmoke: '#f5f5f5',\n\tyellow: '#ffff00',\n\tyellowgreen: '#9acd32',\n};\nconst HEX_REGEX = /^#([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;\n\nconst ColorUtils = {\n\tgetNewColor(options, customHexValidator, oldColor = {}) {\n\t\tif (options.hex) {\n\t\t\tif (\n\t\t\t\tcustomHexValidator\n\t\t\t\t\t? !customHexValidator(options.hex)\n\t\t\t\t\t: !this.isValidHex(options.hex)\n\t\t\t) {\n\t\t\t\treturn assign({}, oldColor, {\n\t\t\t\t\thex: options.hex,\n\t\t\t\t\terrors: assign({}, oldColor.errors, {\n\t\t\t\t\t\thex: true,\n\t\t\t\t\t}),\n\t\t\t\t\thsv: {\n\t\t\t\t\t\thue: '',\n\t\t\t\t\t\tsaturation: '',\n\t\t\t\t\t\tvalue: '',\n\t\t\t\t\t},\n\t\t\t\t\trgb: {\n\t\t\t\t\t\tred: '',\n\t\t\t\t\t\tgreen: '',\n\t\t\t\t\t\tblue: '',\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst returnColor = {\n\t\t\t\thex: options.hex,\n\t\t\t\thsv: this.getHsvFromHex(options.hex),\n\t\t\t\trgb: this.getRgbFromHex(options.hex),\n\t\t\t};\n\n\t\t\tif (options.name) {\n\t\t\t\treturnColor.name = options.name;\n\t\t\t}\n\n\t\t\treturn returnColor;\n\t\t}\n\n\t\tif ('red' in options || 'blue' in options || 'green' in options) {\n\t\t\tconst rgb = assign({}, oldColor.rgb, options);\n\t\t\tconst errors = this.getRgbErrors(rgb);\n\n\t\t\tif (Object.values(errors).includes(true)) {\n\t\t\t\treturn assign({}, oldColor, {\n\t\t\t\t\trgb,\n\t\t\t\t\terrors: assign({}, oldColor.errors, errors),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\thex: this.getHexFromRgb(rgb),\n\t\t\t\thsv: this.getHsvFromRgb(rgb),\n\t\t\t\trgb,\n\t\t\t};\n\t\t}\n\n\t\tif ('hue' in options || 'saturation' in options || 'value' in options) {\n\t\t\tconst hsv = assign({}, oldColor.hsv, options);\n\t\t\treturn {\n\t\t\t\thex: this.getHexFromHsv(hsv),\n\t\t\t\thsv,\n\t\t\t\trgb: this.getRgbFromHsv(hsv),\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\thex: '',\n\t\t\thsv: {\n\t\t\t\thue: '',\n\t\t\t\tsaturation: '',\n\t\t\t\tvalue: '',\n\t\t\t},\n\t\t\trgb: {\n\t\t\t\tred: '',\n\t\t\t\tgreen: '',\n\t\t\t\tblue: '',\n\t\t\t},\n\t\t};\n\t},\n\n\tgetDeltaColor(options, customHexValidator, oldColor) {\n\t\tconst limitValue = (value) => Math.min(Math.max(value, 0), 100);\n\n\t\treturn this.getNewColor(\n\t\t\t{\n\t\t\t\tsaturation: limitValue(\n\t\t\t\t\toldColor.hsv.saturation + (options.saturation || 0)\n\t\t\t\t),\n\t\t\t\tvalue: limitValue(oldColor.hsv.value + (options.value || 0)),\n\t\t\t},\n\t\t\tcustomHexValidator,\n\t\t\toldColor\n\t\t);\n\t},\n\n\tisValidHex(value) {\n\t\treturn !value || HEX_REGEX.test(this.toSixDigitHex(value));\n\t},\n\n\tgetRgbErrors(rgb) {\n\t\tconst hasError = (value) =>\n\t\t\tisNaN(value) ||\n\t\t\tMath.floor(value) !== Number(value) ||\n\t\t\tvalue < 0 ||\n\t\t\tvalue >= 256;\n\n\t\treturn Object.entries(rgb).reduce((errors, keyValue) => {\n\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\terrors[keyValue[0]] = hasError(keyValue[1]);\n\t\t\treturn errors;\n\t\t}, {});\n\t},\n\n\tgetHsvFromHex(hex) {\n\t\treturn this.getHsvFromRgb(this.getRgbFromHex(hex));\n\t},\n\n\tgetHexFromHsv({ hue, saturation, value }) {\n\t\treturn this.getHexFromRgb(this.getRgbFromHsv({ hue, saturation, value }));\n\t},\n\n\tgetHexFromNamedColor(name) {\n\t\treturn COLOR_NAMES[name.toLowerCase()] || null;\n\t},\n\n\tgetHsvFromRgb({ red, green, blue }) {\n\t\tconst redRatio = red / 255;\n\t\tconst greenRatio = green / 255;\n\t\tconst blueRatio = blue / 255;\n\n\t\tconst max = Math.max(redRatio, greenRatio, blueRatio);\n\t\tconst min = Math.min(redRatio, greenRatio, blueRatio);\n\n\t\tconst delta = max - min;\n\t\tconst saturation = max === 0 ? 0 : (delta / max) * 100;\n\t\tconst value = max * 100;\n\t\tlet hue;\n\n\t\tif (max === min) {\n\t\t\thue = 0;\n\t\t} else {\n\t\t\tif (redRatio === max) {\n\t\t\t\thue =\n\t\t\t\t\t(greenRatio - blueRatio) / delta + (greenRatio < blueRatio ? 6 : 0);\n\t\t\t} else if (greenRatio === max) {\n\t\t\t\thue = (blueRatio - redRatio) / delta + 2;\n\t\t\t} else {\n\t\t\t\thue = (redRatio - greenRatio) / delta + 4;\n\t\t\t}\n\n\t\t\thue *= 60;\n\t\t}\n\n\t\treturn { hue, saturation, value };\n\t},\n\n\tgetRgbFromHsv({ hue, saturation, value }) {\n\t\tconst hueRatio = hue / 360;\n\t\tconst satRatio = saturation / 100;\n\t\tconst valRatio = value / 100;\n\n\t\tlet red;\n\t\tlet green;\n\t\tlet blue;\n\n\t\tconst i = Math.floor(hueRatio * 6);\n\t\tconst f = hueRatio * 6 - i;\n\t\tconst p = valRatio * (1 - satRatio);\n\t\tconst q = valRatio * (1 - f * satRatio);\n\t\tconst t = valRatio * (1 - (1 - f) * satRatio);\n\n\t\tswitch (i % 6) {\n\t\t\tcase 0:\n\t\t\t\tred = valRatio;\n\t\t\t\tgreen = t;\n\t\t\t\tblue = p;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tred = q;\n\t\t\t\tgreen = valRatio;\n\t\t\t\tblue = p;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tred = p;\n\t\t\t\tgreen = valRatio;\n\t\t\t\tblue = t;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tred = p;\n\t\t\t\tgreen = q;\n\t\t\t\tblue = valRatio;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tred = t;\n\t\t\t\tgreen = p;\n\t\t\t\tblue = valRatio;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tred = valRatio;\n\t\t\t\tgreen = p;\n\t\t\t\tblue = q;\n\t\t}\n\n\t\treturn {\n\t\t\tred: Math.round(red * 255),\n\t\t\tblue: Math.round(blue * 255),\n\t\t\tgreen: Math.round(green * 255),\n\t\t};\n\t},\n\n\tgetHexFromRgb({ red, green, blue }) {\n\t\tfunction getHex(color) {\n\t\t\treturn `0${Math.round(color).toString(16)}`.substr(-2);\n\t\t}\n\t\treturn `#${getHex(red)}${getHex(green)}${getHex(blue)}`;\n\t},\n\n\tgetRgbFromHex(hex) {\n\t\tconst result = HEX_REGEX.exec(this.toSixDigitHex(hex));\n\t\treturn {\n\t\t\tred: parseInt(result[1], 16),\n\t\t\tgreen: parseInt(result[2], 16),\n\t\t\tblue: parseInt(result[3], 16),\n\t\t};\n\t},\n\n\ttoSixDigitHex(value) {\n\t\tconst shortHandHex = /^#([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n\t\tconst match = shortHandHex.exec(value);\n\t\tif (match) {\n\t\t\treturn `#${match[1]}${match[1]}${match[2]}${match[2]}${match[3]}${match[3]}`;\n\t\t}\n\n\t\treturn value;\n\t},\n};\n\nexport default ColorUtils;\n"],"mappings":";;AAEA,IAAM,IAAc;CACnB,WAAW;CACX,cAAc;CACd,MAAM;CACN,YAAY;CACZ,OAAO;CACP,OAAO;CACP,QAAQ;CACR,OAAO;CACP,gBAAgB;CAChB,MAAM;CACN,YAAY;CACZ,OAAO;CACP,WAAW;CACX,WAAW;CACX,YAAY;CACZ,WAAW;CACX,OAAO;CACP,gBAAgB;CAChB,UAAU;CACV,SAAS;CACT,MAAM;CACN,UAAU;CACV,UAAU;CACV,eAAe;CACf,UAAU;CACV,WAAW;CACX,WAAW;CACX,aAAa;CACb,gBAAgB;CAChB,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,cAAc;CACd,eAAe;CACf,eAAe;CACf,eAAe;CACf,YAAY;CACZ,UAAU;CACV,aAAa;CACb,SAAS;CACT,YAAY;CACZ,WAAW;CACX,aAAa;CACb,aAAa;CACb,SAAS;CACT,WAAW;CACX,YAAY;CACZ,MAAM;CACN,WAAW;CACX,MAAM;CACN,OAAO;CACP,aAAa;CACb,UAAU;CACV,SAAS;CACT,WAAW;CACX,QAAQ;CACR,OAAO;CACP,OAAO;CACP,UAAU;CACV,eAAe;CACf,WAAW;CACX,cAAc;CACd,WAAW;CACX,YAAY;CACZ,WAAW;CACX,sBAAsB;CACtB,WAAW;CACX,YAAY;CACZ,WAAW;CACX,aAAa;CACb,eAAe;CACf,cAAc;CACd,gBAAgB;CAChB,gBAAgB;CAChB,aAAa;CACb,MAAM;CACN,WAAW;CACX,OAAO;CACP,SAAS;CACT,QAAQ;CACR,kBAAkB;CAClB,YAAY;CACZ,cAAc;CACd,cAAc;CACd,gBAAgB;CAChB,iBAAiB;CACjB,mBAAmB;CACnB,iBAAiB;CACjB,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,WAAW;CACX,UAAU;CACV,aAAa;CACb,MAAM;CACN,SAAS;CACT,OAAO;CACP,WAAW;CACX,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,eAAe;CACf,WAAW;CACX,eAAe;CACf,eAAe;CACf,YAAY;CACZ,WAAW;CACX,MAAM;CACN,MAAM;CACN,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,eAAe;CACf,KAAK;CACL,WAAW;CACX,WAAW;CACX,aAAa;CACb,QAAQ;CACR,YAAY;CACZ,UAAU;CACV,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,WAAW;CACX,WAAW;CACX,MAAM;CACN,aAAa;CACb,WAAW;CACX,KAAK;CACL,MAAM;CACN,SAAS;CACT,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,OAAO;CACP,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,aAAa;AACd,GACM,IAAY,4CAEZ,IAAa;CAClB,YAAY,GAAS,GAAoB,IAAW,CAAC,GAAG;EACvD,IAAI,EAAQ,KAAK;GAChB,IACC,IACG,CAAC,EAAmB,EAAQ,GAAG,IAC/B,CAAC,KAAK,WAAW,EAAQ,GAAG,GAE/B,OAAO,EAAO,CAAC,GAAG,GAAU;IAC3B,KAAK,EAAQ;IACb,QAAQ,EAAO,CAAC,GAAG,EAAS,QAAQ,EACnC,KAAK,GACN,CAAC;IACD,KAAK;KACJ,KAAK;KACL,YAAY;KACZ,OAAO;IACR;IACA,KAAK;KACJ,KAAK;KACL,OAAO;KACP,MAAM;IACP;GACD,CAAC;GAGF,IAAM,IAAc;IACnB,KAAK,EAAQ;IACb,KAAK,KAAK,cAAc,EAAQ,GAAG;IACnC,KAAK,KAAK,cAAc,EAAQ,GAAG;GACpC;GAMA,OAJI,EAAQ,SACX,EAAY,OAAO,EAAQ,OAGrB;EACR;EAEA,IAAI,SAAS,KAAW,UAAU,KAAW,WAAW,GAAS;GAChE,IAAM,IAAM,EAAO,CAAC,GAAG,EAAS,KAAK,CAAO,GACtC,IAAS,KAAK,aAAa,CAAG;GASpC,OAPI,OAAO,OAAO,CAAM,CAAC,CAAC,SAAS,EAAI,IAC/B,EAAO,CAAC,GAAG,GAAU;IAC3B;IACA,QAAQ,EAAO,CAAC,GAAG,EAAS,QAAQ,CAAM;GAC3C,CAAC,IAGK;IACN,KAAK,KAAK,cAAc,CAAG;IAC3B,KAAK,KAAK,cAAc,CAAG;IAC3B;GACD;EACD;EAEA,IAAI,SAAS,KAAW,gBAAgB,KAAW,WAAW,GAAS;GACtE,IAAM,IAAM,EAAO,CAAC,GAAG,EAAS,KAAK,CAAO;GAC5C,OAAO;IACN,KAAK,KAAK,cAAc,CAAG;IAC3B;IACA,KAAK,KAAK,cAAc,CAAG;GAC5B;EACD;EAEA,OAAO;GACN,KAAK;GACL,KAAK;IACJ,KAAK;IACL,YAAY;IACZ,OAAO;GACR;GACA,KAAK;IACJ,KAAK;IACL,OAAO;IACP,MAAM;GACP;EACD;CACD;CAEA,cAAc,GAAS,GAAoB,GAAU;EACpD,IAAM,KAAc,MAAU,KAAK,IAAI,KAAK,IAAI,GAAO,CAAC,GAAG,GAAG;EAE9D,OAAO,KAAK,YACX;GACC,YAAY,EACX,EAAS,IAAI,cAAc,EAAQ,cAAc,EAClD;GACA,OAAO,EAAW,EAAS,IAAI,SAAS,EAAQ,SAAS,EAAE;EAC5D,GACA,GACA,CACD;CACD;CAEA,WAAW,GAAO;EACjB,OAAO,CAAC,KAAS,EAAU,KAAK,KAAK,cAAc,CAAK,CAAC;CAC1D;CAEA,aAAa,GAAK;EACjB,IAAM,KAAY,MACjB,MAAM,CAAK,KACX,KAAK,MAAM,CAAK,MAAM,OAAO,CAAK,KAClC,IAAQ,KACR,KAAS;EAEV,OAAO,OAAO,QAAQ,CAAG,CAAC,CAAC,QAAQ,GAAQ,OAE1C,EAAO,EAAS,MAAM,EAAS,EAAS,EAAE,GACnC,IACL,CAAC,CAAC;CACN;CAEA,cAAc,GAAK;EAClB,OAAO,KAAK,cAAc,KAAK,cAAc,CAAG,CAAC;CAClD;CAEA,cAAc,EAAE,QAAK,eAAY,YAAS;EACzC,OAAO,KAAK,cAAc,KAAK,cAAc;GAAE;GAAK;GAAY;EAAM,CAAC,CAAC;CACzE;CAEA,qBAAqB,GAAM;EAC1B,OAAO,EAAY,EAAK,YAAY,MAAM;CAC3C;CAEA,cAAc,EAAE,QAAK,UAAO,WAAQ;EACnC,IAAM,IAAW,IAAM,KACjB,IAAa,IAAQ,KACrB,IAAY,IAAO,KAEnB,IAAM,KAAK,IAAI,GAAU,GAAY,CAAS,GAC9C,IAAM,KAAK,IAAI,GAAU,GAAY,CAAS,GAE9C,IAAQ,IAAM,GACd,IAAa,MAAQ,IAAI,IAAK,IAAQ,IAAO,KAC7C,IAAQ,IAAM,KAChB;EAiBJ,OAfI,MAAQ,IACX,IAAM,KAEN,AAMC,IANG,MAAa,KAEd,IAAa,KAAa,KAAS,IAAa,IAAY,IAAI,KACxD,MAAe,KAClB,IAAY,KAAY,IAAQ,KAEhC,IAAW,KAAc,IAAQ,GAGzC,KAAO,KAGD;GAAE;GAAK;GAAY;EAAM;CACjC;CAEA,cAAc,EAAE,QAAK,eAAY,YAAS;EACzC,IAAM,IAAW,IAAM,KACjB,IAAW,IAAa,KACxB,IAAW,IAAQ,KAErB,GACA,GACA,GAEE,IAAI,KAAK,MAAM,IAAW,CAAC,GAC3B,IAAI,IAAW,IAAI,GACnB,IAAI,KAAY,IAAI,IACpB,IAAI,KAAY,IAAI,IAAI,IACxB,IAAI,KAAY,KAAK,IAAI,KAAK;EAEpC,QAAQ,IAAI,GAAZ;GACC,KAAK;IAGJ,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;IACP;GACD,KAAK;IAGJ,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;IACP;GACD,KAAK;IAGJ,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;IACP;GACD,KAAK;IAGJ,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;IACP;GACD,KAAK;IAGJ,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;IACP;GACD,SAGC,AAFA,IAAM,GACN,IAAQ,GACR,IAAO;EACT;EAEA,OAAO;GACN,KAAK,KAAK,MAAM,IAAM,GAAG;GACzB,MAAM,KAAK,MAAM,IAAO,GAAG;GAC3B,OAAO,KAAK,MAAM,IAAQ,GAAG;EAC9B;CACD;CAEA,cAAc,EAAE,QAAK,UAAO,WAAQ;EACnC,SAAS,EAAO,GAAO;GACtB,OAAO,IAAI,KAAK,MAAM,CAAK,CAAC,CAAC,SAAS,EAAE,IAAI,OAAO,EAAE;EACtD;EACA,OAAO,IAAI,EAAO,CAAG,IAAI,EAAO,CAAK,IAAI,EAAO,CAAI;CACrD;CAEA,cAAc,GAAK;EAClB,IAAM,IAAS,EAAU,KAAK,KAAK,cAAc,CAAG,CAAC;EACrD,OAAO;GACN,KAAK,SAAS,EAAO,IAAI,EAAE;GAC3B,OAAO,SAAS,EAAO,IAAI,EAAE;GAC7B,MAAM,SAAS,EAAO,IAAI,EAAE;EAC7B;CACD;CAEA,cAAc,GAAO;EAEpB,IAAM,IAAQ,kCAAa,KAAK,CAAK;EAKrC,OAJI,IACI,IAAI,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,OAGlE;CACR;AACD"}
|
|
1
|
+
{"version":3,"file":"color.js","names":[],"sources":["../../../utilities/color.js"],"sourcesContent":["import assign from 'lodash.assign';\n\nconst COLOR_NAMES = {\n\taliceblue: '#f0f8ff',\n\tantiquewhite: '#faebd7',\n\taqua: '#00ffff',\n\taquamarine: '#7fffd4',\n\tazure: '#f0ffff',\n\tbeige: '#f5f5dc',\n\tbisque: '#ffe4c4',\n\tblack: '#000000',\n\tblanchedalmond: '#ffebcd',\n\tblue: '#0000ff',\n\tblueviolet: '#8a2be2',\n\tbrown: '#a52a2a',\n\tburlywood: '#deb887',\n\tcadetblue: '#5f9ea0',\n\tchartreuse: '#7fff00',\n\tchocolate: '#d2691e',\n\tcoral: '#ff7f50',\n\tcornflowerblue: '#6495ed',\n\tcornsilk: '#fff8dc',\n\tcrimson: '#dc143c',\n\tcyan: '#00ffff',\n\tdarkblue: '#00008b',\n\tdarkcyan: '#008b8b',\n\tdarkgoldenrod: '#b8860b',\n\tdarkgray: '#a9a9a9',\n\tdarkgreen: '#006400',\n\tdarkkhaki: '#bdb76b',\n\tdarkmagenta: '#8b008b',\n\tdarkolivegreen: '#556b2f',\n\tdarkorange: '#ff8c00',\n\tdarkorchid: '#9932cc',\n\tdarkred: '#8b0000',\n\tdarksalmon: '#e9967a',\n\tdarkseagreen: '#8fbc8f',\n\tdarkslateblue: '#483d8b',\n\tdarkslategray: '#2f4f4f',\n\tdarkturquoise: '#00ced1',\n\tdarkviolet: '#9400d3',\n\tdeeppink: '#ff1493',\n\tdeepskyblue: '#00bfff',\n\tdimgray: '#696969',\n\tdodgerblue: '#1e90ff',\n\tfirebrick: '#b22222',\n\tfloralwhite: '#fffaf0',\n\tforestgreen: '#228b22',\n\tfuchsia: '#ff00ff',\n\tgainsboro: '#dcdcdc',\n\tghostwhite: '#f8f8ff',\n\tgold: '#ffd700',\n\tgoldenrod: '#daa520',\n\tgray: '#808080',\n\tgreen: '#008000',\n\tgreenyellow: '#adff2f',\n\thoneydew: '#f0fff0',\n\thotpink: '#ff69b4',\n\tindianred: '#cd5c5c',\n\tindigo: '#4b0082',\n\tivory: '#fffff0',\n\tkhaki: '#f0e68c',\n\tlavender: '#e6e6fa',\n\tlavenderblush: '#fff0f5',\n\tlawngreen: '#7cfc00',\n\tlemonchiffon: '#fffacd',\n\tlightblue: '#add8e6',\n\tlightcoral: '#f08080',\n\tlightcyan: '#e0ffff',\n\tlightgoldenrodyellow: '#fafad2',\n\tlightgrey: '#d3d3d3',\n\tlightgreen: '#90ee90',\n\tlightpink: '#ffb6c1',\n\tlightsalmon: '#ffa07a',\n\tlightseagreen: '#20b2aa',\n\tlightskyblue: '#87cefa',\n\tlightslategray: '#778899',\n\tlightsteelblue: '#b0c4de',\n\tlightyellow: '#ffffe0',\n\tlime: '#00ff00',\n\tlimegreen: '#32cd32',\n\tlinen: '#faf0e6',\n\tmagenta: '#ff00ff',\n\tmaroon: '#800000',\n\tmediumaquamarine: '#66cdaa',\n\tmediumblue: '#0000cd',\n\tmediumorchid: '#ba55d3',\n\tmediumpurple: '#9370d8',\n\tmediumseagreen: '#3cb371',\n\tmediumslateblue: '#7b68ee',\n\tmediumspringgreen: '#00fa9a',\n\tmediumturquoise: '#48d1cc',\n\tmediumvioletred: '#c71585',\n\tmidnightblue: '#191970',\n\tmintcream: '#f5fffa',\n\tmistyrose: '#ffe4e1',\n\tmoccasin: '#ffe4b5',\n\tnavajowhite: '#ffdead',\n\tnavy: '#000080',\n\toldlace: '#fdf5e6',\n\tolive: '#808000',\n\tolivedrab: '#6b8e23',\n\torange: '#ffa500',\n\torangered: '#ff4500',\n\torchid: '#da70d6',\n\tpalegoldenrod: '#eee8aa',\n\tpalegreen: '#98fb98',\n\tpaleturquoise: '#afeeee',\n\tpalevioletred: '#d87093',\n\tpapayawhip: '#ffefd5',\n\tpeachpuff: '#ffdab9',\n\tperu: '#cd853f',\n\tpink: '#ffc0cb',\n\tplum: '#dda0dd',\n\tpowderblue: '#b0e0e6',\n\tpurple: '#800080',\n\trebeccapurple: '#663399',\n\tred: '#ff0000',\n\trosybrown: '#bc8f8f',\n\troyalblue: '#4169e1',\n\tsaddlebrown: '#8b4513',\n\tsalmon: '#fa8072',\n\tsandybrown: '#f4a460',\n\tseagreen: '#2e8b57',\n\tseashell: '#fff5ee',\n\tsienna: '#a0522d',\n\tsilver: '#c0c0c0',\n\tskyblue: '#87ceeb',\n\tslateblue: '#6a5acd',\n\tslategray: '#708090',\n\tsnow: '#fffafa',\n\tspringgreen: '#00ff7f',\n\tsteelblue: '#4682b4',\n\ttan: '#d2b48c',\n\tteal: '#008080',\n\tthistle: '#d8bfd8',\n\ttomato: '#ff6347',\n\tturquoise: '#40e0d0',\n\tviolet: '#ee82ee',\n\twheat: '#f5deb3',\n\twhite: '#ffffff',\n\twhitesmoke: '#f5f5f5',\n\tyellow: '#ffff00',\n\tyellowgreen: '#9acd32',\n};\nconst HEX_REGEX = /^#([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;\n\nconst ColorUtils = {\n\tgetNewColor(options, customHexValidator, oldColor = {}) {\n\t\tif (options.hex) {\n\t\t\tif (\n\t\t\t\tcustomHexValidator\n\t\t\t\t\t? !customHexValidator(options.hex)\n\t\t\t\t\t: !this.isValidHex(options.hex)\n\t\t\t) {\n\t\t\t\treturn assign({}, oldColor, {\n\t\t\t\t\thex: options.hex,\n\t\t\t\t\terrors: assign({}, oldColor.errors, {\n\t\t\t\t\t\thex: true,\n\t\t\t\t\t}),\n\t\t\t\t\thsv: {\n\t\t\t\t\t\thue: '',\n\t\t\t\t\t\tsaturation: '',\n\t\t\t\t\t\tvalue: '',\n\t\t\t\t\t},\n\t\t\t\t\trgb: {\n\t\t\t\t\t\tred: '',\n\t\t\t\t\t\tgreen: '',\n\t\t\t\t\t\tblue: '',\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst returnColor = {\n\t\t\t\thex: options.hex,\n\t\t\t\thsv: this.getHsvFromHex(options.hex),\n\t\t\t\trgb: this.getRgbFromHex(options.hex),\n\t\t\t};\n\n\t\t\tif (options.name) {\n\t\t\t\treturnColor.name = options.name;\n\t\t\t}\n\n\t\t\treturn returnColor;\n\t\t}\n\n\t\tif ('red' in options || 'blue' in options || 'green' in options) {\n\t\t\tconst rgb = assign({}, oldColor.rgb, options);\n\t\t\tconst errors = this.getRgbErrors(rgb);\n\n\t\t\tif (Object.values(errors).includes(true)) {\n\t\t\t\treturn assign({}, oldColor, {\n\t\t\t\t\trgb,\n\t\t\t\t\terrors: assign({}, oldColor.errors, errors),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\thex: this.getHexFromRgb(rgb),\n\t\t\t\thsv: this.getHsvFromRgb(rgb),\n\t\t\t\trgb,\n\t\t\t};\n\t\t}\n\n\t\tif ('hue' in options || 'saturation' in options || 'value' in options) {\n\t\t\tconst hsv = assign({}, oldColor.hsv, options);\n\t\t\treturn {\n\t\t\t\thex: this.getHexFromHsv(hsv),\n\t\t\t\thsv,\n\t\t\t\trgb: this.getRgbFromHsv(hsv),\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\thex: '',\n\t\t\thsv: {\n\t\t\t\thue: '',\n\t\t\t\tsaturation: '',\n\t\t\t\tvalue: '',\n\t\t\t},\n\t\t\trgb: {\n\t\t\t\tred: '',\n\t\t\t\tgreen: '',\n\t\t\t\tblue: '',\n\t\t\t},\n\t\t};\n\t},\n\n\tgetDeltaColor(options, customHexValidator, oldColor) {\n\t\tconst limitValue = (value) => Math.min(Math.max(value, 0), 100);\n\n\t\treturn this.getNewColor(\n\t\t\t{\n\t\t\t\tsaturation: limitValue(\n\t\t\t\t\toldColor.hsv.saturation + (options.saturation || 0)\n\t\t\t\t),\n\t\t\t\tvalue: limitValue(oldColor.hsv.value + (options.value || 0)),\n\t\t\t},\n\t\t\tcustomHexValidator,\n\t\t\toldColor\n\t\t);\n\t},\n\n\tisValidHex(value) {\n\t\treturn !value || HEX_REGEX.test(this.toSixDigitHex(value));\n\t},\n\n\tgetRgbErrors(rgb) {\n\t\tconst hasError = (value) =>\n\t\t\tisNaN(value) ||\n\t\t\tMath.floor(value) !== Number(value) ||\n\t\t\tvalue < 0 ||\n\t\t\tvalue >= 256;\n\n\t\treturn Object.entries(rgb).reduce((errors, keyValue) => {\n\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\terrors[keyValue[0]] = hasError(keyValue[1]);\n\t\t\treturn errors;\n\t\t}, {});\n\t},\n\n\tgetHsvFromHex(hex) {\n\t\treturn this.getHsvFromRgb(this.getRgbFromHex(hex));\n\t},\n\n\tgetHexFromHsv({ hue, saturation, value }) {\n\t\treturn this.getHexFromRgb(this.getRgbFromHsv({ hue, saturation, value }));\n\t},\n\n\tgetHexFromNamedColor(name) {\n\t\treturn COLOR_NAMES[name.toLowerCase()] || null;\n\t},\n\n\tgetHsvFromRgb({ red, green, blue }) {\n\t\tconst redRatio = red / 255;\n\t\tconst greenRatio = green / 255;\n\t\tconst blueRatio = blue / 255;\n\n\t\tconst max = Math.max(redRatio, greenRatio, blueRatio);\n\t\tconst min = Math.min(redRatio, greenRatio, blueRatio);\n\n\t\tconst delta = max - min;\n\t\tconst saturation = max === 0 ? 0 : (delta / max) * 100;\n\t\tconst value = max * 100;\n\t\tlet hue;\n\n\t\tif (max === min) {\n\t\t\thue = 0;\n\t\t} else {\n\t\t\tif (redRatio === max) {\n\t\t\t\thue =\n\t\t\t\t\t(greenRatio - blueRatio) / delta + (greenRatio < blueRatio ? 6 : 0);\n\t\t\t} else if (greenRatio === max) {\n\t\t\t\thue = (blueRatio - redRatio) / delta + 2;\n\t\t\t} else {\n\t\t\t\thue = (redRatio - greenRatio) / delta + 4;\n\t\t\t}\n\n\t\t\thue *= 60;\n\t\t}\n\n\t\treturn { hue, saturation, value };\n\t},\n\n\tgetRgbFromHsv({ hue, saturation, value }) {\n\t\tconst hueRatio = hue / 360;\n\t\tconst satRatio = saturation / 100;\n\t\tconst valRatio = value / 100;\n\n\t\tlet red;\n\t\tlet green;\n\t\tlet blue;\n\n\t\tconst i = Math.floor(hueRatio * 6);\n\t\tconst f = hueRatio * 6 - i;\n\t\tconst p = valRatio * (1 - satRatio);\n\t\tconst q = valRatio * (1 - f * satRatio);\n\t\tconst t = valRatio * (1 - (1 - f) * satRatio);\n\n\t\tswitch (i % 6) {\n\t\t\tcase 0:\n\t\t\t\tred = valRatio;\n\t\t\t\tgreen = t;\n\t\t\t\tblue = p;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tred = q;\n\t\t\t\tgreen = valRatio;\n\t\t\t\tblue = p;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tred = p;\n\t\t\t\tgreen = valRatio;\n\t\t\t\tblue = t;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tred = p;\n\t\t\t\tgreen = q;\n\t\t\t\tblue = valRatio;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tred = t;\n\t\t\t\tgreen = p;\n\t\t\t\tblue = valRatio;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tred = valRatio;\n\t\t\t\tgreen = p;\n\t\t\t\tblue = q;\n\t\t}\n\n\t\treturn {\n\t\t\tred: Math.round(red * 255),\n\t\t\tblue: Math.round(blue * 255),\n\t\t\tgreen: Math.round(green * 255),\n\t\t};\n\t},\n\n\tgetHexFromRgb({ red, green, blue }) {\n\t\tfunction getHex(color) {\n\t\t\treturn `0${Math.round(color).toString(16)}`.slice(-2);\n\t\t}\n\t\treturn `#${getHex(red)}${getHex(green)}${getHex(blue)}`;\n\t},\n\n\tgetRgbFromHex(hex) {\n\t\tconst result = HEX_REGEX.exec(this.toSixDigitHex(hex));\n\t\treturn {\n\t\t\tred: parseInt(result[1], 16),\n\t\t\tgreen: parseInt(result[2], 16),\n\t\t\tblue: parseInt(result[3], 16),\n\t\t};\n\t},\n\n\ttoSixDigitHex(value) {\n\t\tconst shortHandHex = /^#([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n\t\tconst match = shortHandHex.exec(value);\n\t\tif (match) {\n\t\t\treturn `#${match[1]}${match[1]}${match[2]}${match[2]}${match[3]}${match[3]}`;\n\t\t}\n\n\t\treturn value;\n\t},\n};\n\nexport default ColorUtils;\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region utilities/constants.js
|
|
2
|
-
var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInput", X = "SLDSTextarea", Z = "SLDSSearch", Q = "SLDSHighlighter", $ = "SLDSIcon", ee = "SLDSIconSettings", te = "SLDSIconInput", ne = "
|
|
2
|
+
var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInput", X = "SLDSTextarea", Z = "SLDSSearch", Q = "SLDSHighlighter", $ = "SLDSIcon", ee = "SLDSIconSettings", te = "SLDSIconInput", ne = "SLDSList", re = "SLDSListItem", ie = "SLDSListItemLabel", ae = "SLDSLookup", oe = "SLDSMediaObject", se = "SLDSMenuDropdown", ce = "SLDSMenuDropdownTrigger", le = "SLDSModal", ue = "SLDSPanel", de = "SLDSFilterGroup", fe = "SLDSFilterList", pe = "SLDSPanelFilterListHeading", me = "SLDSPageHeader", he = "SLDSPageHeaderControl", ge = "SLDSPill", _e = "SLDSPillContainer", ve = "SLDSPortalSettings", ye = "SLDSPopover", be = "SLDSPopoverEditDialog", xe = "SLDSPopoverTooltip", Se = "SLDSProgressIndicator", Ce = "SLDSProgressIndicatorPath", we = "SLDSProgressIndicatorProgress", Te = "SLDSProgressIndicatorStep", Ee = "SLDSProgressIndicatorStepVertical", De = "SLDSProgressRing", Oe = "SLDSProgressBar", ke = "SLDSSetupAssistant", Ae = "SLDSSetupAssistantStep", je = "SLDSScopedNotification", Me = "SLDSSlider", Ne = "SLDSSpinner", Pe = "SLDSSplitView", Fe = "SLDSSplitViewHeader", Ie = "SLDSSplitViewListbox", Le = "SLDSRadio", Re = "SLDSRadioGroup", ze = "SLDSRadioButtonGroup", Be = "SLDSTab", Ve = "SLDSTabPanel", He = "SLDSTabs", Ue = "SLDSTabsList", We = "SLDSTabsPanel", Ge = "SLDSTimepicker", Ke = "SLDSToast", qe = "SLDSToastContainer", Je = "SLDSTree", Ye = "SLDSTreeBranch", Xe = "SLDSTreeItem", Ze = "SLDSTrialBar", Qe = "SLDSTrialBarDropdown", $e = "SLDSTrialBarButton", et = "SLDSVerticalNavigation", tt = "SLDSVerticalNavigationItem", nt = "SLDSVisualPicker", rt = "SLDSVisualPickerLink", it = "SLDSWelcomeMat", at = "SLDSWelcomeMatTile", ot = "SLDSWelcomeMatBadge";
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Q as HIGHLIGHTER, $ as ICON, te as ICON_INPUT, ee as ICON_SETTINGS,
|
|
4
|
+
export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Q as HIGHLIGHTER, $ as ICON, te as ICON_INPUT, ee as ICON_SETTINGS, Y as INPUT, ne as LIST, re as LIST_ITEM, ie as LIST_ITEM_LABEL, ae as LOOKUP, oe as MEDIA_OBJECT, se as MENU_DROPDOWN, ce as MENU_DROPDOWN_TRIGGER, le as MODAL, me as PAGE_HEADER, he as PAGE_HEADER_CONTROL, ue as PANEL, de as PANEL_FILTER_GROUP, fe as PANEL_FILTER_LIST, pe as PANEL_FILTER_LIST_HEADING, ge as PILL, _e as PILL_CONTAINER, ye as POPOVER, be as POPOVER_EDIT_DIALOG, xe as POPOVER_TOOLTIP, ve as PORTAL_SETTINGS, Oe as PROGRESS_BAR, Se as PROGRESS_INDICATOR, Ce as PROGRESS_INDICATOR_PATH, we as PROGRESS_INDICATOR_PROGRESS, Te as PROGRESS_INDICATOR_STEP, Ee as PROGRESS_INDICATOR_STEP_VERTICAL, De as PROGRESS_RING, Le as RADIO, ze as RADIO_BUTTON_GROUP, Re as RADIO_GROUP, je as SCOPED_NOTIFICATION, Z as SEARCH, ke as SETUP_ASSISTANT, Ae as SETUP_ASSISTANT_STEP, j as SIMPLE_DATA_TABLE, M as SIMPLE_DATA_TABLE_CELL, N as SIMPLE_DATA_TABLE_COLUMN, P as SIMPLE_DATA_TABLE_HEAD, F as SIMPLE_DATA_TABLE_HEADER_CELL, L as SIMPLE_DATA_TABLE_ROW, I as SIMPLE_DATA_TABLE_ROW_ACTIONS, Me as SLIDER, Ne as SPINNER, Pe as SPLIT_VIEW, Fe as SPLIT_VIEW_HEADER, Ie as SPLIT_VIEW_LISTBOX, Be as TAB, He as TABS, Ue as TABS_LIST, We as TABS_PANEL, Ve as TAB_PANEL, X as TEXTAREA, Ge as TIME_PICKER, Ke as TOAST, qe as TOAST_CONTAINER, Je as TREE, Ye as TREE_BRANCH, Xe as TREE_ITEM, Ze as TRIAL_BAR, $e as TRIAL_BAR_BUTTON, Qe as TRIAL_BAR_DROPDOWN, et as VERTICAL_NAVIGATION, tt as VERTICAL_NAVIGATION_ITEM, nt as VISUAL_PICKER, rt as VISUAL_PICKER_LINK, it as WELCOME_MAT, ot as WELCOME_MAT_BADGE, at as WELCOME_MAT_TILE };
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const SIMPLE_DATA_TABLE = 'SLDSSimpleDataTable';\nexport const SIMPLE_DATA_TABLE_CELL = 'SLDSSimpleDataTableCell';\nexport const SIMPLE_DATA_TABLE_COLUMN = 'SLDSSimpleDataTableColumn';\nexport const SIMPLE_DATA_TABLE_HEAD = 'SLDSSimpleDataTableHead';\nexport const SIMPLE_DATA_TABLE_HEADER_CELL = 'SLDSSimpleDataTableHeaderCell';\nexport const SIMPLE_DATA_TABLE_ROW_ACTIONS = 'SLDSSimpleDataTableRowActions';\nexport const SIMPLE_DATA_TABLE_ROW = 'SLDSSimpleDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const INPUT = 'SLDSInput';\nexport const TEXTAREA = 'SLDSTextarea';\nexport const SEARCH = 'SLDSSearch';\nexport const GLOBAL_HEADER = 'SLDSGlobalHeader';\nexport const GLOBAL_HEADER_BUTTON = 'SLDSGlobalHeaderButton';\nexport const GLOBAL_HEADER_DROPDOWN = 'SLDSGlobalHeaderDropdown';\nexport const GLOBAL_HEADER_FAVORITES = 'SLDSGlobalHeaderFavorites';\nexport const GLOBAL_HEADER_HELP = 'SLDSGlobalHeaderHelp';\nexport const GLOBAL_HEADER_NOTIFICATIONS = 'SLDSGlobalHeaderNotifications';\nexport const GLOBAL_HEADER_PROFILE = 'SLDSGlobalHeaderProfile';\nexport const GLOBAL_HEADER_SEARCH = 'SLDSGlobalHeaderSearch';\nexport const GLOBAL_HEADER_SETUP = 'SLDSGlobalHeaderSetup';\nexport const GLOBAL_HEADER_TASK = 'SLDSGlobalHeaderTask';\nexport const GLOBAL_HEADER_TOOL = 'SLDSGlobalHeaderTool';\nexport const GLOBAL_NAVIGATION_BAR = 'SLDSGlobalNavigationBar';\nexport const GLOBAL_NAVIGATION_BAR_BUTTON = 'SLDSGlobalNavigationBarButton';\nexport const GLOBAL_NAVIGATION_BAR_DROPDOWN = 'SLDSGlobalNavigationBarDropdown';\nexport const GLOBAL_NAVIGATION_BAR_LABEL = 'SLDSGlobalNavigationBarLabel';\nexport const GLOBAL_NAVIGATION_BAR_LINK = 'SLDSGlobalNavigationBarLink';\nexport const GLOBAL_NAVIGATION_BAR_REGION = 'SLDSGlobalNavigationBarRegion';\nexport const GLOBAL_NAVIGATION_BAR_APP_LAUNCHER =\n\t'SLDSGlobalNavigationBarAppLauncher';\nexport const GRID = 'SLDSGrid';\nexport const HIGHLIGHTER = 'SLDSHighlighter';\nexport const ICON = 'SLDSIcon';\nexport const ICON_SETTINGS = 'SLDSIconSettings';\nexport const ICON_INPUT = 'SLDSIconInput';\nexport const
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const SIMPLE_DATA_TABLE = 'SLDSSimpleDataTable';\nexport const SIMPLE_DATA_TABLE_CELL = 'SLDSSimpleDataTableCell';\nexport const SIMPLE_DATA_TABLE_COLUMN = 'SLDSSimpleDataTableColumn';\nexport const SIMPLE_DATA_TABLE_HEAD = 'SLDSSimpleDataTableHead';\nexport const SIMPLE_DATA_TABLE_HEADER_CELL = 'SLDSSimpleDataTableHeaderCell';\nexport const SIMPLE_DATA_TABLE_ROW_ACTIONS = 'SLDSSimpleDataTableRowActions';\nexport const SIMPLE_DATA_TABLE_ROW = 'SLDSSimpleDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const INPUT = 'SLDSInput';\nexport const TEXTAREA = 'SLDSTextarea';\nexport const SEARCH = 'SLDSSearch';\nexport const GLOBAL_HEADER = 'SLDSGlobalHeader';\nexport const GLOBAL_HEADER_BUTTON = 'SLDSGlobalHeaderButton';\nexport const GLOBAL_HEADER_DROPDOWN = 'SLDSGlobalHeaderDropdown';\nexport const GLOBAL_HEADER_FAVORITES = 'SLDSGlobalHeaderFavorites';\nexport const GLOBAL_HEADER_HELP = 'SLDSGlobalHeaderHelp';\nexport const GLOBAL_HEADER_NOTIFICATIONS = 'SLDSGlobalHeaderNotifications';\nexport const GLOBAL_HEADER_PROFILE = 'SLDSGlobalHeaderProfile';\nexport const GLOBAL_HEADER_SEARCH = 'SLDSGlobalHeaderSearch';\nexport const GLOBAL_HEADER_SETUP = 'SLDSGlobalHeaderSetup';\nexport const GLOBAL_HEADER_TASK = 'SLDSGlobalHeaderTask';\nexport const GLOBAL_HEADER_TOOL = 'SLDSGlobalHeaderTool';\nexport const GLOBAL_NAVIGATION_BAR = 'SLDSGlobalNavigationBar';\nexport const GLOBAL_NAVIGATION_BAR_BUTTON = 'SLDSGlobalNavigationBarButton';\nexport const GLOBAL_NAVIGATION_BAR_DROPDOWN = 'SLDSGlobalNavigationBarDropdown';\nexport const GLOBAL_NAVIGATION_BAR_LABEL = 'SLDSGlobalNavigationBarLabel';\nexport const GLOBAL_NAVIGATION_BAR_LINK = 'SLDSGlobalNavigationBarLink';\nexport const GLOBAL_NAVIGATION_BAR_REGION = 'SLDSGlobalNavigationBarRegion';\nexport const GLOBAL_NAVIGATION_BAR_APP_LAUNCHER =\n\t'SLDSGlobalNavigationBarAppLauncher';\nexport const GRID = 'SLDSGrid';\nexport const HIGHLIGHTER = 'SLDSHighlighter';\nexport const ICON = 'SLDSIcon';\nexport const ICON_SETTINGS = 'SLDSIconSettings';\nexport const ICON_INPUT = 'SLDSIconInput';\nexport const LIST = 'SLDSList';\nexport const LIST_ITEM = 'SLDSListItem';\nexport const LIST_ITEM_LABEL = 'SLDSListItemLabel';\nexport const LISTBOX_OF_PILL_OPTIONS = 'SLDSListboxOfPillOptions';\nexport const LOCATION_MAP = 'SLDSLocationMap';\nexport const LOOKUP = 'SLDSLookup';\nexport const MEDIA_OBJECT = 'SLDSMediaObject';\nexport const MENU_DROPDOWN = 'SLDSMenuDropdown';\nexport const MENU_DROPDOWN_TRIGGER = 'SLDSMenuDropdownTrigger';\nexport const MENU_PICKLIST = 'SLDSMenuPicklist';\nexport const MODAL = 'SLDSModal';\nexport const NOTIFICATION = 'SLDSNotification';\nexport const PANEL = 'SLDSPanel';\nexport const PANEL_FILTER_GROUP = 'SLDSFilterGroup';\nexport const PANEL_FILTER_LIST = 'SLDSFilterList';\nexport const PANEL_FILTER_LIST_HEADING = 'SLDSPanelFilterListHeading';\nexport const PAGE_HEADER = 'SLDSPageHeader';\nexport const PAGE_HEADER_CONTROL = 'SLDSPageHeaderControl';\nexport const PILL = 'SLDSPill';\nexport const PILL_CONTAINER = 'SLDSPillContainer';\nexport const PORTAL_SETTINGS = 'SLDSPortalSettings';\nexport const POPOVER = 'SLDSPopover';\nexport const POPOVER_EDIT_DIALOG = 'SLDSPopoverEditDialog';\nexport const POPOVER_TOOLTIP = 'SLDSPopoverTooltip';\nexport const PROGRESS_INDICATOR = 'SLDSProgressIndicator';\nexport const PROGRESS_INDICATOR_PATH = 'SLDSProgressIndicatorPath';\nexport const PROGRESS_INDICATOR_PROGRESS = 'SLDSProgressIndicatorProgress';\nexport const PROGRESS_INDICATOR_STEP = 'SLDSProgressIndicatorStep';\nexport const PROGRESS_INDICATOR_STEP_VERTICAL =\n\t'SLDSProgressIndicatorStepVertical';\nexport const PROGRESS_RING = 'SLDSProgressRing';\nexport const PROGRESS_BAR = 'SLDSProgressBar';\nexport const SETUP_ASSISTANT = 'SLDSSetupAssistant';\nexport const SETUP_ASSISTANT_STEP = 'SLDSSetupAssistantStep';\nexport const SCOPED_NOTIFICATION = 'SLDSScopedNotification';\nexport const SLIDER = 'SLDSSlider';\nexport const SPINNER = 'SLDSSpinner';\nexport const SPLIT_VIEW = 'SLDSSplitView';\nexport const SPLIT_VIEW_HEADER = 'SLDSSplitViewHeader';\nexport const SPLIT_VIEW_LISTBOX = 'SLDSSplitViewListbox';\nexport const RADIO = 'SLDSRadio';\nexport const RADIO_GROUP = 'SLDSRadioGroup';\nexport const RADIO_BUTTON_GROUP = 'SLDSRadioButtonGroup';\nexport const TAB = 'SLDSTab';\nexport const TAB_ITEM = 'SLDSTabItem';\nexport const TAB_PANEL = 'SLDSTabPanel';\nexport const TABS = 'SLDSTabs';\nexport const TABS_LIST = 'SLDSTabsList';\nexport const TABS_PANEL = 'SLDSTabsPanel';\nexport const TIME_PICKER = 'SLDSTimepicker';\nexport const TOAST = 'SLDSToast';\nexport const TOAST_CONTAINER = 'SLDSToastContainer';\nexport const TREE = 'SLDSTree';\nexport const TREE_BRANCH = 'SLDSTreeBranch';\nexport const TREE_ITEM = 'SLDSTreeItem';\nexport const TRIAL_BAR = 'SLDSTrialBar';\nexport const TRIAL_BAR_DROPDOWN = 'SLDSTrialBarDropdown';\nexport const TRIAL_BAR_BUTTON = 'SLDSTrialBarButton';\nexport const VERTICAL_NAVIGATION = 'SLDSVerticalNavigation';\nexport const VERTICAL_NAVIGATION_ITEM = 'SLDSVerticalNavigationItem';\nexport const VISUAL_PICKER = 'SLDSVisualPicker';\nexport const VISUAL_PICKER_LINK = 'SLDSVisualPickerLink';\nexport const WELCOME_MAT = 'SLDSWelcomeMat';\nexport const WELCOME_MAT_TILE = 'SLDSWelcomeMatTile';\nexport const WELCOME_MAT_BADGE = 'SLDSWelcomeMatBadge';\nexport const DOCKED_COMPOSER = 'SLDSDockedComposer';\n"],"mappings":";AACA,IAAa,IAAY,iBACZ,IAAkB,sBAClB,IAAQ,aACR,IAAkB,sBASlB,IAAS,cACT,IAAQ,aAOR,IAAa,kBACb,IAAiB,qBACjB,IAAsB,yBACtB,IAA2B,8BAC3B,IAAqB,wBACrB,IAA8B,gCAC9B,IAA0B,4BAC1B,IAAyB,4BACzB,IAAS,cACT,IAAe,mBACf,IAAkB,sBAClB,IAAc,kBACd,IAAO,YACP,IAAY,gBACZ,IAAa,iBACb,IAAc,kBACd,IAAc,kBACd,IAAc,kBACd,IAAW,gBACX,IAAsB,0BACtB,IAAgB,oBAChB,IAAsB,0BACtB,IAA2B,8BAC3B,IAAe,mBACf,IAAW,gBACX,IAAoB,uBACpB,IAAyB,2BACzB,IAA2B,6BAC3B,IAAyB,2BACzB,IAAgC,iCAChC,IAAgC,iCAChC,IAAwB,0BACxB,IAAc,kBAEd,IAAe,mBACf,IAAS,cACT,IAAQ,aACR,IAAa,iBACb,IAAa,iBACb,IAAe,mBACf,IAAgB,oBAChB,IAAqB,yBAKrB,IAAS,cACT,IAAW,gBACX,IAAQ,aACR,IAAW,gBACX,IAAS,cAqBT,IAAc,mBACd,IAAO,YACP,KAAgB,oBAChB,KAAa,iBACb,KAAO,YACP,KAAY,gBACZ,KAAkB,qBAGlB,KAAS,cACT,KAAe,mBACf,KAAgB,oBAChB,KAAwB,2BAExB,KAAQ,aAER,KAAQ,aACR,KAAqB,mBACrB,KAAoB,kBACpB,KAA4B,8BAC5B,KAAc,kBACd,KAAsB,yBACtB,KAAO,YACP,KAAiB,qBACjB,KAAkB,sBAClB,KAAU,eACV,KAAsB,yBACtB,KAAkB,sBAClB,KAAqB,yBACrB,KAA0B,6BAC1B,KAA8B,iCAC9B,KAA0B,6BAC1B,KACZ,qCACY,KAAgB,oBAChB,KAAe,mBACf,KAAkB,sBAClB,KAAuB,0BACvB,KAAsB,0BACtB,KAAS,cACT,KAAU,eACV,KAAa,iBACb,KAAoB,uBACpB,KAAqB,wBACrB,KAAQ,aACR,KAAc,kBACd,KAAqB,wBACrB,KAAM,WAEN,KAAY,gBACZ,KAAO,YACP,KAAY,gBACZ,KAAa,iBACb,KAAc,kBACd,KAAQ,aACR,KAAkB,sBAClB,KAAO,YACP,KAAc,kBACd,KAAY,gBACZ,KAAY,gBACZ,KAAqB,wBACrB,KAAmB,sBACnB,KAAsB,0BACtB,KAA2B,8BAC3B,KAAgB,oBAChB,KAAqB,wBACrB,KAAc,kBACd,KAAmB,sBACnB,KAAoB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
1
|
+
import e from "./tabbable.js";
|
|
2
|
+
import t from "./key-code.js";
|
|
3
3
|
import { canUseDOM as n } from "./execution-environment.js";
|
|
4
4
|
//#region utilities/dom-element-focus.js
|
|
5
5
|
var r = null, i = null, a = (i) => {
|
|
6
|
-
if (!n || !r || i.
|
|
7
|
-
let a =
|
|
6
|
+
if (!n || !r || i.key !== t.TAB) return;
|
|
7
|
+
let a = e(r);
|
|
8
8
|
(a[i.shiftKey ? 0 : a.length - 1] === document.activeElement || r === document.activeElement) && (i.preventDefault(), a[i.shiftKey ? a.length - 1 : 0].focus());
|
|
9
9
|
}, o = {
|
|
10
10
|
focusAncestor: ({ isPortal: e }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom-element-focus.js","names":[],"sources":["../../../utilities/dom-element-focus.js"],"sourcesContent":["import findTabbableElement from './tabbable';\nimport KEYS from './key-code';\nimport { canUseDOM } from './execution-environment';\n\nlet ancestor = null;\nlet focusLaterElement = null;\n\nconst handleScopedKeyDown = (event) => {\n\tif (!canUseDOM || !ancestor || event.
|
|
1
|
+
{"version":3,"file":"dom-element-focus.js","names":[],"sources":["../../../utilities/dom-element-focus.js"],"sourcesContent":["import findTabbableElement from './tabbable';\nimport KEYS from './key-code';\nimport { canUseDOM } from './execution-environment';\n\nlet ancestor = null;\nlet focusLaterElement = null;\n\nconst handleScopedKeyDown = (event) => {\n\tif (!canUseDOM || !ancestor || event.key !== KEYS.TAB) {\n\t\treturn;\n\t}\n\tconst tabbableElements = findTabbableElement(ancestor);\n\tconst finalTabbable =\n\t\ttabbableElements[event.shiftKey ? 0 : tabbableElements.length - 1];\n\tconst leavingFinalTabbable =\n\t\tfinalTabbable === document.activeElement ||\n\t\t// handle immediate shift+tab after opening with mouse\n\t\tancestor === document.activeElement;\n\tif (!leavingFinalTabbable) return;\n\tevent.preventDefault();\n\tconst target =\n\t\ttabbableElements[event.shiftKey ? tabbableElements.length - 1 : 0];\n\ttarget.focus();\n};\n\n// PUBLIC methods\n\nconst ElementFocus = {\n\tfocusAncestor: ({ isPortal }) => {\n\t\tif (canUseDOM) {\n\t\t\t// When a portal is used (that is attaching a separate React mount, such as with Popover) programatic focusing within that portal may cause the window to scroll down to the DOM insertion point at the end of `body`. The following prevents the scrolling from occuring.\n\t\t\tif (isPortal) {\n\t\t\t\tconst offset = window.pageYOffset;\n\t\t\t\tancestor.focus({ preventScroll: true });\n\t\t\t\twindow.scrollTo(window.pageXOffset, offset);\n\t\t\t} else {\n\t\t\t\tancestor.focus();\n\t\t\t}\n\t\t}\n\t},\n\thasOrAncestorHasFocus: () =>\n\t\tcanUseDOM &&\n\t\t(document.activeElement === ancestor ||\n\t\t\tancestor.contains(document.activeElement)),\n\treturnFocusToStoredElement: () => {\n\t\tif (canUseDOM) {\n\t\t\t// Only attempt to focus if element exists and is still in the DOM\n\t\t\t// This prevents warnings in environments like Storybook where elements\n\t\t\t// may be unmounted before focus can be restored\n\t\t\tif (\n\t\t\t\tfocusLaterElement &&\n\t\t\t\ttypeof focusLaterElement.focus === 'function' &&\n\t\t\t\tdocument.body.contains(focusLaterElement)\n\t\t\t) {\n\t\t\t\ttry {\n\t\t\t\t\tfocusLaterElement.focus();\n\t\t\t\t} catch {\n\t\t\t\t\t// Silently ignore - element may have been removed from DOM\n\t\t\t\t}\n\t\t\t}\n\t\t\tfocusLaterElement = null;\n\t\t}\n\t},\n\tsetupScopedFocus: ({ ancestorElement }) => {\n\t\tancestor = ancestorElement;\n\t\twindow.addEventListener('keydown', handleScopedKeyDown, false);\n\t},\n\tstoreActiveElement: () => {\n\t\tfocusLaterElement = canUseDOM ? document.activeElement : null;\n\t},\n\tteardownScopedFocus: () => {\n\t\tancestor = null;\n\t\tif (canUseDOM) {\n\t\t\twindow.removeEventListener('keydown', handleScopedKeyDown);\n\t\t}\n\t},\n};\n\nexport default ElementFocus;\n"],"mappings":";;;;AAIA,IAAI,IAAW,MACX,IAAoB,MAElB,KAAuB,MAAU;CACtC,IAAI,CAAC,KAAa,CAAC,KAAY,EAAM,QAAQ,EAAK,KACjD;CAED,IAAM,IAAmB,EAAoB,CAAQ;CAEpD,GAAiB,EAAM,WAAW,IAAI,EAAiB,SAAS,OAE9C,SAAS,iBAE3B,MAAa,SAAS,mBAEvB,EAAM,eAAe,GAGrB,EADkB,EAAM,WAAW,EAAiB,SAAS,IAAI,EACjE,CAAO,MAAM;AACd,GAIM,IAAe;CACpB,gBAAgB,EAAE,kBAAe;EAChC,IAAI,GAAW;GAEd,IAAI,GAAU;IACb,IAAM,IAAS,OAAO;IAEtB,AADA,EAAS,MAAM,EAAE,eAAe,GAAK,CAAC,GACtC,OAAO,SAAS,OAAO,aAAa,CAAM;GAC3C,OACC,EAAS,MAAM;EAEjB;CACD;CACA,6BACC,MACC,SAAS,kBAAkB,KAC3B,EAAS,SAAS,SAAS,aAAa;CAC1C,kCAAkC;EACjC,IAAI,GAAW;GAId,IACC,KACA,OAAO,EAAkB,SAAU,cACnC,SAAS,KAAK,SAAS,CAAiB,GAExC,IAAI;IACH,EAAkB,MAAM;GACzB,QAAQ,CAER;GAED,IAAoB;EACrB;CACD;CACA,mBAAmB,EAAE,yBAAsB;EAE1C,AADA,IAAW,GACX,OAAO,iBAAiB,WAAW,GAAqB,EAAK;CAC9D;CACA,0BAA0B;EACzB,IAAoB,IAAY,SAAS,gBAAgB;CAC1D;CACA,2BAA2B;EAE1B,AADA,IAAW,MACP,KACH,OAAO,oBAAoB,WAAW,CAAmB;CAE3D;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","names":[],"sources":["../../../utilities/event.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nconst EventUtil = {\n\ttrapEvent: (event) => {\n\t\tif (!event) return;\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (event.nativeEvent && event.nativeEvent.preventDefault) {\n\t\t\tevent.nativeEvent.preventDefault();\n\t\t}\n\n\t\tif (event.nativeEvent && event.nativeEvent.stopPropagation) {\n\t\t\tevent.nativeEvent.stopPropagation();\n\t\t}\n\t},\n\n\ttrap: (event) => EventUtil.trapEvent(event),\n\n\ttrapImmediate: (event) => {\n\t\tif (event.stopImmediatePropagation) {\n\t\t\tevent.stopImmediatePropagation();\n\t\t}\n\n\t\tif (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n\t\t\tevent.nativeEvent.stopImmediatePropagation();\n\t\t}\n\n\t\tEventUtil.trap(event);\n\t},\n\n\ttrappedHandler: (handler) => {\n\t\treturn (event) => {\n\t\t\tEventUtil.trap(event);\n\n\t\t\tif (handler) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\t},\n};\n\nexport default EventUtil;\n"],"mappings":";AAGA,IAAM,IAAY;CACjB,YAAY,MAAU;EAChB,MACL,EAAM,eAAe,GACrB,EAAM,gBAAgB,GAClB,EAAM,eAAe,EAAM,YAAY,kBAC1C,EAAM,YAAY,eAAe,GAG9B,EAAM,eAAe,EAAM,YAAY,mBAC1C,EAAM,YAAY,gBAAgB;CAEpC;CAEA,OAAO,MAAU,EAAU,UAAU,CAAK;CAE1C,gBAAgB,MAAU;EASzB,AARI,EAAM,4BACT,EAAM,yBAAyB,GAG5B,EAAM,eAAe,EAAM,YAAY,4BAC1C,EAAM,YAAY,yBAAyB,GAG5C,EAAU,KAAK,CAAK;CACrB;CAEA,iBAAiB,OACR,MAAU;EAGjB,AAFA,EAAU,KAAK,CAAK,GAEhB,KACH,EAAQ,CAAK;CAEf;
|
|
1
|
+
{"version":3,"file":"event.js","names":[],"sources":["../../../utilities/event.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nconst EventUtil = {\n\ttrapEvent: (event) => {\n\t\tif (!event) return;\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (event.nativeEvent && event.nativeEvent.preventDefault) {\n\t\t\tevent.nativeEvent.preventDefault();\n\t\t}\n\n\t\tif (event.nativeEvent && event.nativeEvent.stopPropagation) {\n\t\t\tevent.nativeEvent.stopPropagation();\n\t\t}\n\t},\n\n\ttrap: (event) => EventUtil.trapEvent(event),\n\n\ttrapImmediate: (event) => {\n\t\tif (event.stopImmediatePropagation) {\n\t\t\tevent.stopImmediatePropagation();\n\t\t}\n\n\t\tif (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n\t\t\tevent.nativeEvent.stopImmediatePropagation();\n\t\t}\n\n\t\tEventUtil.trap(event);\n\t},\n\n\ttrappedHandler: (handler) => {\n\t\treturn (event) => {\n\t\t\tEventUtil.trap(event);\n\n\t\t\tif (handler) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\t},\n\n\t// Keys pressed while an IME composes text belong to the IME: the Enter that\n\t// commits a composition must not submit. Safari ends the composition before\n\t// that keydown, so `isComposing` is false there and only `keyCode` 229 shows it.\n\tisComposing: (event) => {\n\t\tconst nativeEvent = event.nativeEvent ?? event;\n\t\treturn nativeEvent.isComposing || nativeEvent.keyCode === 229;\n\t},\n};\n\nexport default EventUtil;\n"],"mappings":";AAGA,IAAM,IAAY;CACjB,YAAY,MAAU;EAChB,MACL,EAAM,eAAe,GACrB,EAAM,gBAAgB,GAClB,EAAM,eAAe,EAAM,YAAY,kBAC1C,EAAM,YAAY,eAAe,GAG9B,EAAM,eAAe,EAAM,YAAY,mBAC1C,EAAM,YAAY,gBAAgB;CAEpC;CAEA,OAAO,MAAU,EAAU,UAAU,CAAK;CAE1C,gBAAgB,MAAU;EASzB,AARI,EAAM,4BACT,EAAM,yBAAyB,GAG5B,EAAM,eAAe,EAAM,YAAY,4BAC1C,EAAM,YAAY,yBAAyB,GAG5C,EAAU,KAAK,CAAK;CACrB;CAEA,iBAAiB,OACR,MAAU;EAGjB,AAFA,EAAU,KAAK,CAAK,GAEhB,KACH,EAAQ,CAAK;CAEf;CAMD,cAAc,MAAU;EACvB,IAAM,IAAc,EAAM,eAAe;EACzC,OAAO,EAAY,eAAe,EAAY,YAAY;CAC3D;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-environment.js","names":[],"sources":["../../../utilities/execution-environment.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nconst canUseDOM = !!(\n\ttypeof window !== 'undefined' &&\n\twindow.document &&\n\twindow.document.createElement\n);\nconst canUseEventListeners =\n\tcanUseDOM && Boolean(window.addEventListener || window.attachEvent);\nconst canUseViewport = canUseDOM && Boolean(window.screen);\n\nexport { canUseDOM, canUseEventListeners, canUseViewport };\n"],"mappings":";AAGA,IAAM,IAAY,CAAC,EAClB,OAAO,SAAW,OAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"execution-environment.js","names":[],"sources":["../../../utilities/execution-environment.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nconst canUseDOM = !!(\n\ttypeof window !== 'undefined' &&\n\twindow.document &&\n\t// A feature check, not a call; one `createElement` overload is deprecated.\n\t// eslint-disable-next-line local/no-deprecated\n\twindow.document.createElement\n);\nconst canUseEventListeners =\n\tcanUseDOM && Boolean(window.addEventListener || window.attachEvent);\nconst canUseViewport = canUseDOM && Boolean(window.screen);\n\nexport { canUseDOM, canUseEventListeners, canUseViewport };\n"],"mappings":";AAGA,IAAM,IAAY,CAAC,EAClB,OAAO,SAAW,OAClB,OAAO,YAGP,OAAO,SAAS,gBAEX,IACL,KAAa,GAAQ,OAAO,oBAAoB,OAAO;AACjC,KAAqB,OAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region utilities/get-aria-props.js
|
|
2
2
|
function e(e) {
|
|
3
|
-
return Object.keys(e).reduce((t, n) => (n.
|
|
3
|
+
return Object.keys(e).reduce((t, n) => (n.slice(0, 5) === "aria-" && (t[n] = e[n]), t), {});
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
6
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aria-props.js","names":[],"sources":["../../../utilities/get-aria-props.js"],"sourcesContent":["export default function getAriaProps(props) {\n\treturn Object.keys(props).reduce((prev, key) => {\n\t\tif (key.
|
|
1
|
+
{"version":3,"file":"get-aria-props.js","names":[],"sources":["../../../utilities/get-aria-props.js"],"sourcesContent":["export default function getAriaProps(props) {\n\treturn Object.keys(props).reduce((prev, key) => {\n\t\tif (key.slice(0, 5) === 'aria-') {\n\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\tprev[key] = props[key];\n\t\t}\n\t\treturn prev;\n\t}, {});\n}\n"],"mappings":";AAAA,SAAwB,EAAa,GAAO;CAC3C,OAAO,OAAO,KAAK,CAAK,CAAC,CAAC,QAAQ,GAAM,OACnC,EAAI,MAAM,GAAG,CAAC,MAAM,YAEvB,EAAK,KAAO,EAAM,KAEZ,IACL,CAAC,CAAC;AACN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region utilities/get-data-props.js
|
|
2
2
|
function e(e) {
|
|
3
|
-
return Object.keys(e).reduce((t, n) => (n.
|
|
3
|
+
return Object.keys(e).reduce((t, n) => (n.slice(0, 5) === "data-" && (t[n] = e[n]), t), {});
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
6
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-data-props.js","names":[],"sources":["../../../utilities/get-data-props.js"],"sourcesContent":["export default function getDataProps(props) {\n\treturn Object.keys(props).reduce((prev, key) => {\n\t\tif (key.
|
|
1
|
+
{"version":3,"file":"get-data-props.js","names":[],"sources":["../../../utilities/get-data-props.js"],"sourcesContent":["export default function getDataProps(props) {\n\treturn Object.keys(props).reduce((prev, key) => {\n\t\tif (key.slice(0, 5) === 'data-') {\n\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\tprev[key] = props[key];\n\t\t}\n\t\treturn prev;\n\t}, {});\n}\n"],"mappings":";AAAA,SAAwB,EAAa,GAAO;CAC3C,OAAO,OAAO,KAAK,CAAK,CAAC,CAAC,QAAQ,GAAM,OACnC,EAAI,MAAM,GAAG,CAAC,MAAM,YAEvB,EAAK,KAAO,EAAM,KAEZ,IACL,CAAC,CAAC;AACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-click-outside.js","names":[],"sources":["../../../../utilities/hooks/use-click-outside.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { useEffect, useCallback, type RefObject } from 'react';\n\n/**\n * Options for useClickOutside hook\n */\nexport interface UseClickOutsideOptions {\n\t/** Whether the click outside handler is active */\n\tenabled?: boolean;\n\t/** CSS class to ignore when detecting outside clicks */\n\tignoreClass?: string;\n\t/** Event type to listen for */\n\teventType?: 'mousedown' | 'mouseup' | 'click';\n}\n\n/**\n * Modern React 19 compatible hook for detecting clicks outside an element.\n * Replaces the deprecated react-onclickoutside library which uses findDOMNode.\n *\n * @param ref - React ref to the element to detect clicks outside of\n * @param callback - Function to call when a click outside is detected\n * @param options - Configuration options\n *\n * @example\n * ```tsx\n * const menuRef = useRef<HTMLDivElement>(null);\n *\n * useClickOutside(menuRef, () => {\n * setIsOpen(false);\n * }, { enabled: isOpen });\n * ```\n */\nexport function useClickOutside<T extends HTMLElement>(\n\tref: RefObject<T | null>,\n\tcallback: (event: MouseEvent | TouchEvent) => void,\n\toptions: UseClickOutsideOptions = {}\n): void {\n\tconst {\n\t\tenabled = true,\n\t\tignoreClass = 'ignore-react-onclickoutside',\n\t\teventType = 'mousedown',\n\t} = options;\n\n\tconst handleClickOutside = useCallback(\n\t\t(event: MouseEvent | TouchEvent) => {\n\t\t\tconst target = event.target as Node;\n\n\t\t\t// Check if click target has the ignore class\n\t\t\tif (target instanceof Element) {\n\t\t\t\tif (target.classList?.contains(ignoreClass)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Check if any ancestor has the ignore class\n\t\t\t\tif (target.closest(`.${ignoreClass}`)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if click is inside the ref element\n\t\t\tif (ref.current && !ref.current.contains(target)) {\n\t\t\t\tcallback(event);\n\t\t\t}\n\t\t},\n\t\t[ref, callback, ignoreClass]\n\t);\n\n\tuseEffect(() => {\n\t\tif (!enabled) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add event listeners\n\t\tdocument.addEventListener(eventType, handleClickOutside);\n\t\tdocument.addEventListener('touchstart', handleClickOutside);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(eventType, handleClickOutside);\n\t\t\tdocument.removeEventListener('touchstart', handleClickOutside);\n\t\t};\n\t}, [enabled, eventType, handleClickOutside]);\n}\n\nexport default useClickOutside;\n
|
|
1
|
+
{"version":3,"file":"use-click-outside.js","names":[],"sources":["../../../../utilities/hooks/use-click-outside.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { useEffect, useCallback, type RefObject } from 'react';\n\n/**\n * Options for useClickOutside hook\n */\nexport interface UseClickOutsideOptions {\n\t/** Whether the click outside handler is active */\n\tenabled?: boolean;\n\t/** CSS class to ignore when detecting outside clicks */\n\tignoreClass?: string;\n\t/** Event type to listen for */\n\teventType?: 'mousedown' | 'mouseup' | 'click';\n}\n\n/**\n * Modern React 19 compatible hook for detecting clicks outside an element.\n * Replaces the deprecated react-onclickoutside library which uses findDOMNode.\n *\n * @param ref - React ref to the element to detect clicks outside of\n * @param callback - Function to call when a click outside is detected\n * @param options - Configuration options\n *\n * @example\n * ```tsx\n * const menuRef = useRef<HTMLDivElement>(null);\n *\n * useClickOutside(menuRef, () => {\n * setIsOpen(false);\n * }, { enabled: isOpen });\n * ```\n */\nexport function useClickOutside<T extends HTMLElement>(\n\tref: RefObject<T | null>,\n\tcallback: (event: MouseEvent | TouchEvent) => void,\n\toptions: UseClickOutsideOptions = {}\n): void {\n\tconst {\n\t\tenabled = true,\n\t\tignoreClass = 'ignore-react-onclickoutside',\n\t\teventType = 'mousedown',\n\t} = options;\n\n\tconst handleClickOutside = useCallback(\n\t\t(event: MouseEvent | TouchEvent) => {\n\t\t\tconst target = event.target as Node;\n\n\t\t\t// Check if click target has the ignore class\n\t\t\tif (target instanceof Element) {\n\t\t\t\tif (target.classList?.contains(ignoreClass)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Check if any ancestor has the ignore class\n\t\t\t\tif (target.closest(`.${ignoreClass}`)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if click is inside the ref element\n\t\t\tif (ref.current && !ref.current.contains(target)) {\n\t\t\t\tcallback(event);\n\t\t\t}\n\t\t},\n\t\t[ref, callback, ignoreClass]\n\t);\n\n\tuseEffect(() => {\n\t\tif (!enabled) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add event listeners\n\t\tdocument.addEventListener(eventType, handleClickOutside);\n\t\tdocument.addEventListener('touchstart', handleClickOutside);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(eventType, handleClickOutside);\n\t\t\tdocument.removeEventListener('touchstart', handleClickOutside);\n\t\t};\n\t}, [enabled, eventType, handleClickOutside]);\n}\n\nexport default useClickOutside;\n"],"mappings":";;AAkCA,SAAgB,EACf,GACA,GACA,IAAkC,CAAC,GAC5B;CACP,IAAM,EACL,aAAU,IACV,iBAAc,+BACd,eAAY,gBACT,GAEE,IAAqB,GACzB,MAAmC;EACnC,IAAM,IAAS,EAAM;EAGjB,aAAkB,YACjB,EAAO,WAAW,SAAS,CAAW,KAItC,EAAO,QAAQ,IAAI,GAAa,MAMjC,EAAI,WAAW,CAAC,EAAI,QAAQ,SAAS,CAAM,KAC9C,EAAS,CAAK;CAEhB,GACA;EAAC;EAAK;EAAU;CAAW,CAC5B;CAEA,QAAgB;EACV,OAQL,OAHA,SAAS,iBAAiB,GAAW,CAAkB,GACvD,SAAS,iBAAiB,cAAc,CAAkB,SAE7C;GAEZ,AADA,SAAS,oBAAoB,GAAW,CAAkB,GAC1D,SAAS,oBAAoB,cAAc,CAAkB;EAC9D;CACD,GAAG;EAAC;EAAS;EAAW;CAAkB,CAAC;AAC5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useInsertionEffect as e, useRef as t } from "react";
|
|
2
|
+
//#region utilities/hooks/use-latest-ref.ts
|
|
3
|
+
function n(n) {
|
|
4
|
+
let r = t(n);
|
|
5
|
+
return e(() => {
|
|
6
|
+
r.current = n;
|
|
7
|
+
}), r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as useLatestRef };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=use-latest-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-latest-ref.js","names":[],"sources":["../../../../utilities/hooks/use-latest-ref.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { useInsertionEffect, useRef, type RefObject } from 'react';\n\n/**\n * A ref that always holds the latest `value`. Read consumer callbacks (such as an `events`\n * object, which is usually a new object every render) through it inside handlers, so the\n * handlers can stay stable without calling a stale callback.\n *\n * Only read `ref.current` in event handlers and effects, never during render. The ref is\n * updated in an insertion effect, which runs before every layout effect in the commit, so\n * handlers called from a child's `componentDidUpdate` or layout effect see the new value.\n *\n * @example\n * ```tsx\n * const eventsRef = useLatestRef(events);\n *\n * const handleChange = useCallback((event) => {\n * eventsRef.current.onChange?.(event, { value: event.target.value });\n * }, [eventsRef]);\n * ```\n */\nexport function useLatestRef<T>(value: T): RefObject<T> {\n\tconst ref = useRef(value);\n\tuseInsertionEffect(() => {\n\t\tref.current = value;\n\t});\n\treturn ref;\n}\n"],"mappings":";;AAuBA,SAAgB,EAAgB,GAAwB;CACvD,IAAM,IAAM,EAAO,CAAK;CAIxB,OAHA,QAAyB;EACxB,EAAI,UAAU;CACf,CAAC,GACM;AACR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-element-of-type.js","names":[],"sources":["../../../utilities/is-element-of-type.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\ttype ElementType,\n\ttype ReactElement,\n\ttype ReactNode,\n} from 'react';\n\n/**\n * True when `node` is an element of one of the given components. Library\n * parents use this to find their child components by reference instead of by\n * `displayName`, which minifiers, HOCs and Storybook docgen can change.\n */\nconst isElementOfType = <P>(\n\tnode: ReactNode,\n\t...types: ElementType[]\n): node is ReactElement<P> =>\n\tReact.isValidElement(node) && types.includes(node.type as ElementType);\n\nexport default isElementOfType;\n"],"mappings":";;AAcA,IAAM,KACL,GACA,GAAG,MAEH,EAAM,eAAe,CAAI,KAAK,EAAM,SAAS,EAAK,IAAmB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./event.js";
|
|
2
2
|
//#region utilities/key-callbacks.js
|
|
3
3
|
var t = (t, { callbacks: n = {}, shiftCallbacks: r = {}, stopPropagation: i = !0 }) => {
|
|
4
|
-
t.shiftKey && t.
|
|
4
|
+
e.isComposing(t) || (t.shiftKey && t.key && r[t.key] ? (i && e.trapEvent(t), r[t.key].callback(t, r[t.key].data)) : t.key && n[t.key] ? (i && e.trapEvent(t), n[t.key].callback(t, n[t.key].data)) : t.key && n.other && (n.other.stopPropagation && e.trapEvent(t), n.other.callback(t, n.other.data)));
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
7
7
|
export { t as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-callbacks.js","names":[],"sources":["../../../utilities/key-callbacks.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\nimport EventUtil from './event';\n\n/*\n * Helper function that has callbacks passed into it with the key\n * being the
|
|
1
|
+
{"version":3,"file":"key-callbacks.js","names":[],"sources":["../../../utilities/key-callbacks.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\nimport EventUtil from './event';\n\n/*\n * Helper function that has callbacks passed into it with the key\n * being the `KeyboardEvent.key` of the event. This allows an object literal to\n * control key event callback mapping and avoids a long conditional\n * if statement and uses an enumeration pattern instead.\n */\nconst mapKeyEventCallbacks = (\n\tevent,\n\t{ callbacks = {}, shiftCallbacks = {}, stopPropagation = true }\n) => {\n\tif (EventUtil.isComposing(event)) return;\n\n\tif (event.shiftKey && event.key && shiftCallbacks[event.key]) {\n\t\tif (stopPropagation) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t}\n\t\tshiftCallbacks[event.key].callback(event, shiftCallbacks[event.key].data);\n\t} else if (event.key && callbacks[event.key]) {\n\t\tif (stopPropagation) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t}\n\t\tcallbacks[event.key].callback(event, callbacks[event.key].data);\n\t} else if (event.key && callbacks.other) {\n\t\t// You will likely NOT want to stop propagation of all key presses!\n\t\tif (callbacks.other.stopPropagation) {\n\t\t\tEventUtil.trapEvent(event);\n\t\t}\n\t\tcallbacks.other.callback(event, callbacks.other.data);\n\t}\n};\n\nexport default mapKeyEventCallbacks;\n"],"mappings":";;AAUA,IAAM,KACL,GACA,EAAE,eAAY,CAAC,GAAG,oBAAiB,CAAC,GAAG,qBAAkB,SACrD;CACA,EAAU,YAAY,CAAK,MAE3B,EAAM,YAAY,EAAM,OAAO,EAAe,EAAM,QACnD,KACH,EAAU,UAAU,CAAK,GAE1B,EAAe,EAAM,IAAI,CAAC,SAAS,GAAO,EAAe,EAAM,IAAI,CAAC,IAAI,KAC9D,EAAM,OAAO,EAAU,EAAM,QACnC,KACH,EAAU,UAAU,CAAK,GAE1B,EAAU,EAAM,IAAI,CAAC,SAAS,GAAO,EAAU,EAAM,IAAI,CAAC,IAAI,KACpD,EAAM,OAAO,EAAU,UAE7B,EAAU,MAAM,mBACnB,EAAU,UAAU,CAAK,GAE1B,EAAU,MAAM,SAAS,GAAO,EAAU,MAAM,IAAI;AAEtD"}
|