@salesforce/design-system-react 11.0.0-rc.0 → 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 +18 -0
- 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/nav-link.cjs.map +1 -1
- package/dist/cjs/components/button/check-props.cjs +1 -1
- package/dist/cjs/components/button/check-props.cjs.map +1 -1
- package/dist/cjs/components/button/index.cjs +1 -1
- package/dist/cjs/components/button/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/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/color-picker.cjs +1 -1
- package/dist/cjs/components/color-picker/color-picker.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.cjs +1 -1
- package/dist/cjs/components/color-picker/private/swatch.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/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/date-picker.cjs +1 -1
- package/dist/cjs/components/date-picker/date-picker.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/files/file.cjs +1 -8
- package/dist/cjs/components/files/file.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/icon/check-props.cjs +1 -1
- package/dist/cjs/components/icon/check-props.cjs.map +1 -1
- package/dist/cjs/components/icon/index.cjs +1 -1
- package/dist/cjs/components/icon/index.cjs.map +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.map +1 -1
- package/dist/cjs/components/input/private/inner-input.cjs.map +1 -1
- package/dist/cjs/components/input/search.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/button-trigger.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/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/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/private/step.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-group/index.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/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/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/split-view/listbox.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.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.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/tree/private/branch.cjs.map +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/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/utility-icon/index.cjs +1 -1
- package/dist/cjs/components/utilities/utility-icon/index.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/dom-element-focus.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/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/product-tokens/icon-backgrounds.cjs.map +1 -1
- package/dist/cjs/utilities/warning/children-as-trigger.cjs +1 -1
- package/dist/cjs/utilities/warning/children-as-trigger.cjs.map +1 -1
- 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/alert/index.js +4 -5
- package/dist/es/components/alert/index.js.map +1 -1
- package/dist/es/components/builder-header/nav-link.js.map +1 -1
- package/dist/es/components/button/check-props.js +1 -1
- package/dist/es/components/button/check-props.js.map +1 -1
- package/dist/es/components/button/index.js +50 -50
- package/dist/es/components/button/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 +3 -2
- package/dist/es/components/button-stateful/index.js.map +1 -1
- package/dist/es/components/carousel/index.js +155 -129
- 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 +102 -100
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/color-picker/color-picker.js +150 -151
- package/dist/es/components/color-picker/color-picker.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 +16 -20
- 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.js +1 -1
- package/dist/es/components/color-picker/private/swatch.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +565 -580
- package/dist/es/components/combobox/combobox.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 +3 -3
- package/dist/es/components/combobox/private/menu.js.map +1 -1
- package/dist/es/components/date-picker/date-picker.js +101 -102
- package/dist/es/components/date-picker/date-picker.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 +1 -1
- package/dist/es/components/date-picker/private/day.js.map +1 -1
- package/dist/es/components/files/file.js +5 -6
- package/dist/es/components/files/file.js.map +1 -1
- package/dist/es/components/files/private/file-actions.js +2 -2
- 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 +5 -1
- package/dist/es/components/filter/filter.js.map +1 -1
- package/dist/es/components/icon/check-props.js +9 -7
- package/dist/es/components/icon/check-props.js.map +1 -1
- package/dist/es/components/icon/index.js +13 -10
- package/dist/es/components/icon/index.js.map +1 -1
- package/dist/es/components/input/check-props.js +14 -13
- package/dist/es/components/input/check-props.js.map +1 -1
- package/dist/es/components/input/index.js.map +1 -1
- package/dist/es/components/input/private/inner-input.js.map +1 -1
- package/dist/es/components/input/search.js.map +1 -1
- package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
- package/dist/es/components/menu-dropdown/menu-dropdown.js +202 -207
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/modal/index.js +1 -2
- package/dist/es/components/modal/index.js.map +1 -1
- package/dist/es/components/pill/index.js.map +1 -1
- package/dist/es/components/pill-container/index.js +10 -6
- package/dist/es/components/pill-container/index.js.map +1 -1
- package/dist/es/components/popover/index.js.map +1 -1
- package/dist/es/components/popover/popover.js +181 -177
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/progress-indicator/private/step.js.map +1 -1
- package/dist/es/components/radio/index.js +1 -1
- package/dist/es/components/radio/index.js.map +1 -1
- package/dist/es/components/radio-group/index.js.map +1 -1
- package/dist/es/components/simple-data-table/cell.js +8 -5
- package/dist/es/components/simple-data-table/cell.js.map +1 -1
- package/dist/es/components/simple-data-table/index.js +97 -91
- package/dist/es/components/simple-data-table/index.js.map +1 -1
- package/dist/es/components/simple-data-table/interactive-element.js +31 -28
- 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 +2 -1
- package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -1
- package/dist/es/components/simple-data-table/private/link.js.map +1 -1
- package/dist/es/components/simple-data-table/private/row.js +96 -60
- package/dist/es/components/simple-data-table/private/row.js.map +1 -1
- package/dist/es/components/simple-data-table/row-actions.js +4 -1
- 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/split-view/listbox.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.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.map +1 -1
- package/dist/es/components/tooltip/index.js +107 -88
- package/dist/es/components/tooltip/index.js.map +1 -1
- package/dist/es/components/tree/private/branch.js.map +1 -1
- package/dist/es/components/tree/private/item.js.map +1 -1
- package/dist/es/components/tree/private/render-branch.js +14 -19
- package/dist/es/components/tree/private/render-branch.js.map +1 -1
- package/dist/es/components/utilities/dialog/index.js +2 -1
- 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 +42 -18
- package/dist/es/components/utilities/menu-list/item.js.map +1 -1
- 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/utilities/color.js +1 -1
- package/dist/es/utilities/color.js.map +1 -1
- package/dist/es/utilities/dom-element-focus.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/keyboard-navigable-dialog.js +7 -7
- package/dist/es/utilities/keyboard-navigable-dialog.js.map +1 -1
- package/dist/es/utilities/keyboard-navigate.js +1 -1
- package/dist/es/utilities/keyboard-navigate.js.map +1 -1
- package/dist/es/utilities/product-tokens/icon-backgrounds.js.map +1 -1
- package/dist/es/utilities/warning/children-as-trigger.js +8 -7
- package/dist/es/utilities/warning/children-as-trigger.js.map +1 -1
- 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/builder-header/nav-link.d.ts.map +1 -1
- package/dist/types/components/button/index.d.ts +14 -4
- package/dist/types/components/button/index.d.ts.map +1 -1
- package/dist/types/components/button-stateful/index.d.ts +5 -2
- package/dist/types/components/button-stateful/index.d.ts.map +1 -1
- package/dist/types/components/carousel/index.d.ts +7 -1
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/checkbox/index.d.ts +4 -1
- package/dist/types/components/checkbox/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox.d.ts.map +1 -1
- package/dist/types/components/combobox/index.d.ts +1 -1
- package/dist/types/components/combobox/index.d.ts.map +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/components/files/file.d.ts +5 -0
- package/dist/types/components/files/file.d.ts.map +1 -1
- package/dist/types/components/icon/index.d.ts +7 -1
- package/dist/types/components/icon/index.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts +9 -6
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/input/search.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +9 -3
- 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/pill/index.d.ts.map +1 -1
- package/dist/types/components/popover/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/radio/index.d.ts +9 -2
- package/dist/types/components/radio/index.d.ts.map +1 -1
- package/dist/types/components/radio-group/index.d.ts +3 -3
- package/dist/types/components/radio-group/index.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/cell.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/interactive-element.d.ts +8 -1
- package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/types.d.ts +10 -2
- 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/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/tabs/index.d.ts.map +1 -1
- package/dist/types/components/textarea/index.d.ts +9 -6
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/toast/index.d.ts.map +1 -1
- package/dist/types/components/tooltip/index.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.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/types/common.d.ts.map +1 -1
- package/dist/types/types/components.d.ts.map +1 -1
- package/package.json +2 -3
- 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/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/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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("./key-code.cjs");let n=require("lodash.escaperegexp");n=e.__toESM(n,1);var r=e=>e?(typeof e==`object`&&e.nodeType,e):null,i=({componentContext:e,currentFocusedIndex:i,isOpen:a,event:o,key:s,navigableItems:c,onFocus:l,onSelect:u,target:d,toggleOpen:f})=>{let{indexes:p}=c,m=p.length-1,h,g=s;g=/^[ -~]$/.test(g)?g.toLowerCase():null;let _=s===t.default.ENTER||s===t.default.SPACE||s===t.default.UP||s===t.default.DOWN;if(s===t.default.ESCAPE)a&&f();else if(!a)[h]=p,(_||g)&&f(),_&&
|
|
1
|
+
const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("./key-code.cjs");let n=require("lodash.escaperegexp");n=e.__toESM(n,1);var r=e=>e?(typeof e==`object`&&e.nodeType,e):null,i=({componentContext:e,currentFocusedIndex:i,isOpen:a,event:o,key:s,navigableItems:c,onFocus:l,onSelect:u,target:d,toggleOpen:f})=>{let{indexes:p}=c,m=p.length-1,h,g=s;g=/^[ -~]$/.test(g)?g.toLowerCase():null;let _=s===t.default.ENTER||s===t.default.SPACE||s===t.default.UP||s===t.default.DOWN;if(s===t.default.ESCAPE)a&&f();else if(!a)[h]=p,(_||g)&&f(),_&&r(e.getTrigger())===d&&e.handleClick(o);else if(s===t.default.ENTER||s===t.default.SPACE)u(i);else{let e=p.indexOf(i);if(s===t.default.DOWN)e<m?h=p[e+1]:[h]=p;else if(s===t.default.UP)h=e>0?p[e-1]:p[m];else if(g){let e=c.keyBuffer(g),t=0;e.length>1&&RegExp(`^[${(0,n.default)(g)}]+$`).test(e)&&(t=e.length),c.forEach(n=>{(h===void 0&&n.text.slice(0,e.length)===e||t>0&&n.text.slice(0,1)===g)&&(--t,h=n.index)})}}return l(h),h};exports.default=i;
|
|
2
2
|
//# sourceMappingURL=keyboard-navigate.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-navigate.cjs","names":[],"sources":["../../../utilities/keyboard-navigate.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 escapeRegExp from 'lodash.escaperegexp';\n\nimport KEYS from './key-code';\n\n/**\n * Resolve a component context's trigger to a DOM node. `componentContext.
|
|
1
|
+
{"version":3,"file":"keyboard-navigate.cjs","names":[],"sources":["../../../utilities/keyboard-navigate.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 escapeRegExp from 'lodash.escaperegexp';\n\nimport KEYS from './key-code';\n\n/**\n * Resolve a component context's trigger to a DOM node. `componentContext.getTrigger()`\n * returns the DOM element stored by a callback ref, so we return it directly. This replaces `ReactDOM.findDOMNode`, which was removed\n * in React 19.\n */\nconst resolveTriggerNode = (trigger) => {\n\tif (!trigger) {\n\t\treturn null;\n\t}\n\t// A DOM node (has nodeType); return as-is.\n\tif (typeof trigger === 'object' && trigger.nodeType) {\n\t\treturn trigger;\n\t}\n\treturn trigger;\n};\n\nconst keyboardNavigate = ({\n\tcomponentContext,\n\tcurrentFocusedIndex,\n\tisOpen,\n\tevent,\n\tkey,\n\tnavigableItems,\n\tonFocus,\n\tonSelect,\n\ttarget,\n\ttoggleOpen,\n}) => {\n\tconst { indexes } = navigableItems;\n\tconst lastIndex = indexes.length - 1;\n\tlet focusedIndex;\n\tlet ch = key;\n\n\tif (/^[ -~]$/.test(ch)) {\n\t\tch = ch.toLowerCase();\n\t} else {\n\t\tch = null;\n\t}\n\n\t// Keys that open a closed menu. Per the WAI-ARIA menu-button pattern, Down\n\t// and Up arrows open the menu (Down moving focus to the first item, Up to\n\t// the last), in addition to Enter and Space.\n\tconst openMenuKeys =\n\t\tkey === KEYS.ENTER ||\n\t\tkey === KEYS.SPACE ||\n\t\tkey === KEYS.UP ||\n\t\tkey === KEYS.DOWN;\n\n\tif (key === KEYS.ESCAPE) {\n\t\tif (isOpen) toggleOpen();\n\t} else if (!isOpen) {\n\t\t[focusedIndex] = indexes;\n\t\tif (openMenuKeys || ch) {\n\t\t\ttoggleOpen();\n\t\t}\n\t\tif (\n\t\t\topenMenuKeys &&\n\t\t\tresolveTriggerNode(componentContext.getTrigger()) === target\n\t\t) {\n\t\t\tcomponentContext.handleClick(event);\n\t\t}\n\t} else if (key === KEYS.ENTER || key === KEYS.SPACE) {\n\t\tonSelect(currentFocusedIndex);\n\t} else {\n\t\tconst navigableIndex = indexes.indexOf(currentFocusedIndex);\n\n\t\tif (key === KEYS.DOWN) {\n\t\t\tif (navigableIndex < lastIndex) {\n\t\t\t\tconst newNavigableIndex = navigableIndex + 1;\n\t\t\t\tfocusedIndex = indexes[newNavigableIndex];\n\t\t\t} else {\n\t\t\t\t[focusedIndex] = indexes;\n\t\t\t}\n\t\t} else if (key === KEYS.UP) {\n\t\t\tif (navigableIndex > 0) {\n\t\t\t\tconst newNavigableIndex = navigableIndex - 1;\n\t\t\t\tfocusedIndex = indexes[newNavigableIndex];\n\t\t\t} else {\n\t\t\t\tfocusedIndex = indexes[lastIndex];\n\t\t\t}\n\t\t} else if (ch) {\n\t\t\t// Combine subsequent keypresses\n\t\t\tconst pattern = navigableItems.keyBuffer(ch);\n\t\t\tlet consecutive = 0;\n\n\t\t\t// Support for navigating to the next option of the same letter with repeated presses of the same key\n\t\t\tif (\n\t\t\t\tpattern.length > 1 &&\n\t\t\t\tnew RegExp(`^[${escapeRegExp(ch)}]+$`).test(pattern)\n\t\t\t) {\n\t\t\t\tconsecutive = pattern.length;\n\t\t\t}\n\n\t\t\tnavigableItems.forEach((item) => {\n\t\t\t\tif (\n\t\t\t\t\t(focusedIndex === undefined &&\n\t\t\t\t\t\titem.text.slice(0, pattern.length) === pattern) ||\n\t\t\t\t\t(consecutive > 0 && item.text.slice(0, 1) === ch)\n\t\t\t\t) {\n\t\t\t\t\tconsecutive -= 1;\n\t\t\t\t\tfocusedIndex = item.index;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tonFocus(focusedIndex);\n\n\treturn focusedIndex;\n};\n\nexport default keyboardNavigate;\n"],"mappings":"uIAWA,IAAM,EAAsB,GACtB,GAID,OAAO,GAAY,UAAY,EAAQ,SACnC,GAJA,KASH,GAAoB,CACzB,mBACA,sBACA,SACA,QACA,MACA,iBACA,UACA,WACA,SACA,gBACK,CACL,GAAM,CAAE,WAAY,EACd,EAAY,EAAQ,OAAS,EAC/B,EACA,EAAK,EAET,AAGC,EAHG,UAAU,KAAK,CAAE,EACf,EAAG,YAAY,EAEf,KAMN,IAAM,EACL,IAAQ,EAAA,QAAK,OACb,IAAQ,EAAA,QAAK,OACb,IAAQ,EAAA,QAAK,IACb,IAAQ,EAAA,QAAK,KAEd,GAAI,IAAQ,EAAA,QAAK,OACZ,GAAQ,EAAW,OACjB,GAAI,CAAC,EACX,CAAC,GAAgB,GACb,GAAgB,IACnB,EAAW,EAGX,GACA,EAAmB,EAAiB,WAAW,CAAC,IAAM,GAEtD,EAAiB,YAAY,CAAK,OAE7B,GAAI,IAAQ,EAAA,QAAK,OAAS,IAAQ,EAAA,QAAK,MAC7C,EAAS,CAAmB,MACtB,CACN,IAAM,EAAiB,EAAQ,QAAQ,CAAmB,EAE1D,GAAI,IAAQ,EAAA,QAAK,KACZ,EAAiB,EAEpB,EAAe,EADW,EAAiB,GAG3C,CAAC,GAAgB,OAEZ,GAAI,IAAQ,EAAA,QAAK,GACvB,AAIC,EAJG,EAAiB,EAEL,EADW,EAAiB,GAG5B,EAAQ,QAElB,GAAI,EAAI,CAEd,IAAM,EAAU,EAAe,UAAU,CAAE,EACvC,EAAc,EAIjB,EAAQ,OAAS,GACb,OAAO,MAAA,EAAK,EAAA,QAAA,CAAa,CAAE,EAAE,IAAI,CAAC,CAAC,KAAK,CAAO,IAEnD,EAAc,EAAQ,QAGvB,EAAe,QAAS,GAAS,EAE9B,IAAiB,IAAA,IACjB,EAAK,KAAK,MAAM,EAAG,EAAQ,MAAM,IAAM,GACvC,EAAc,GAAK,EAAK,KAAK,MAAM,EAAG,CAAC,IAAM,KAE9C,IACA,EAAe,EAAK,MAEtB,CAAC,CACF,CACD,CAIA,OAFA,EAAQ,CAAY,EAEb,CACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-backgrounds.cjs","names":[],"sources":["../../../../utilities/product-tokens/icon-backgrounds.js"],"sourcesContent":["// The following colors may not be accessible with text color or inverse white on this background color. They do not all pass WCAG AA Color Contrast Ratios.\n// https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=FFC20E\nexport default {\n\t'global-setup': '#2A739E',\n\t'service-cloud': '#7f2443',\n\t'industry-cloud': '#4c2248',\n\t'sales-cloud': '#00857d',\n\t'commerce-cloud': '#41693d',\n\t'community-cloud': '#ffc20e',\n\t'marketing-cloud': '#ea7600',\n\tquip: '#cf451d',\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-backgrounds.cjs","names":[],"sources":["../../../../utilities/product-tokens/icon-backgrounds.js"],"sourcesContent":["// The following colors may not be accessible with text color or inverse white on this background color. They do not all pass WCAG AA Color Contrast Ratios.\n// https://webaim.org/resources/contrastchecker/?fcolor=FFFFFF&bcolor=FFC20E\n/**\n * @deprecated Used only by Icon's deprecated `productTheme` prop; removed before 11.0.0.\n */\nexport default {\n\t'global-setup': '#2A739E',\n\t'service-cloud': '#7f2443',\n\t'industry-cloud': '#4c2248',\n\t'sales-cloud': '#00857d',\n\t'commerce-cloud': '#41693d',\n\t'community-cloud': '#ffc20e',\n\t'marketing-cloud': '#ea7600',\n\tquip: '#cf451d',\n};\n"],"mappings":"AAKA,IAAA,EAAe,CACd,eAAgB,UAChB,gBAAiB,UACjB,iBAAkB,UAClB,cAAe,UACf,iBAAkB,UAClB,kBAAmB,UACnB,kBAAmB,UACnB,KAAM,SACP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i){let a=i?` ${i}`:``;r&&!e[t]&&((0,n.default)(!1,`[Design System React] Passing the trigger of ${t} as \`children\` is deprecated and will be removed in the next major version. Use \`trigger\` instead: an element, whose props ${t} merges with its own, or a function that receives ${t}'s trigger props.${a}`),e[t]=!0)}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=children-as-trigger.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children-as-trigger.cjs","names":[],"sources":["../../../../utilities/warning/children-as-trigger.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\n/* eslint-disable import/no-mutable-exports */\n\nimport warning from 'warning';\n\n// Warns once per component when its trigger is passed as `children` instead of `trigger`.\nlet childrenAsTrigger: (\n\tcontrol: string,\n\tusesChildrenAsTrigger: boolean,\n\tcomment?: string\n) => void = function childrenAsTriggerFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned
|
|
1
|
+
{"version":3,"file":"children-as-trigger.cjs","names":[],"sources":["../../../../utilities/warning/children-as-trigger.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\n/* eslint-disable import/no-mutable-exports */\n\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\n// Warns once per component when its trigger is passed as `children` instead of `trigger`.\nlet childrenAsTrigger: (\n\tcontrol: string,\n\tusesChildrenAsTrigger: boolean,\n\tcomment?: string\n) => void = function childrenAsTriggerFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tchildrenAsTrigger = function childrenAsTriggerFunction(\n\t\tcontrol,\n\t\tusesChildrenAsTrigger,\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (usesChildrenAsTrigger && !hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] Passing the trigger of ${control} as \\`children\\` is deprecated and will be removed in the next major version. Use \\`trigger\\` instead: an element, whose props ${control} merges with its own, or a function that receives ${control}'s trigger props.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = true;\n\t\t}\n\t};\n}\n\nexport default childrenAsTrigger;\n"],"mappings":"qIASA,IAAI,EAIQ,UAAqC,CAAC,EAElD,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAoB,SACnB,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAChD,GAAyB,CAAC,EAAU,MAEvC,EAAA,EAAA,QAAA,CACC,GACA,gDAAgD,EAAQ,iIAAiI,EAAQ,oDAAoD,EAAQ,mBAAmB,GACjR,EAEA,EAAU,GAAW,GAEvB,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,{propAsString:r,propValue:i,deprecatedPropValue:a,replacementPropAsString:o,replacementPropAsValue:s,log:c},l){let u=l?` ${l}`:``,d=t+r+a,f=i===a,p=a&&o&&s?` Replace \`${r}="${a}"\` with \`${o}="${s}"\`.`:``;if(!e[d]){let i=`[Design System React] The value of \`${a}\`, for prop \`${r}\` will be removed in the next major version of ${t}. Please update your props.${p}${u}`;f&&c?c({message:i}):(0,n.default)(!f,i),e[d]=f}}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=deprecated-property-value.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-property-value.cjs","names":[],"sources":["../../../../utilities/warning/deprecated-property-value.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\n/* eslint-disable import/no-mutable-exports */\n/* eslint-disable max-len */\n\n// This function will deliver an error message to the browser console about the future of a removal and moving of a property's valid value to another prop. This makes the most sense to be used with `oneOf` prop types.\nimport warning from 'warning';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"deprecated-property-value.cjs","names":[],"sources":["../../../../utilities/warning/deprecated-property-value.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\n/* eslint-disable import/no-mutable-exports */\n/* eslint-disable max-len */\n\n// This function will deliver an error message to the browser console about the future of a removal and moving of a property's valid value to another prop. This makes the most sense to be used with `oneOf` prop types.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tdeprecated = function deprecatedFunction(\n\t\tcontrol,\n\t\t{\n\t\t\tpropAsString, // key name of prop being warned about\n\t\t\tpropValue, // actual value of prop being warned about\n\t\t\tdeprecatedPropValue, // value that is being deprecated\n\t\t\treplacementPropAsString, // prop that value is being moved to\n\t\t\treplacementPropAsValue, // value that should be used in new prop\n\t\t\tlog, // log function that will disable console warning and pipe to another function log({ message })\n\t\t},\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst warnOnFirstOccurrenceKey =\n\t\t\tcontrol + propAsString + deprecatedPropValue;\n\t\tconst triggerWarning = propValue === deprecatedPropValue;\n\t\tconst replacementSentence =\n\t\t\tdeprecatedPropValue && replacementPropAsString && replacementPropAsValue\n\t\t\t\t? ` Replace \\`${propAsString}=\"${deprecatedPropValue}\"\\` with \\`${replacementPropAsString}=\"${replacementPropAsValue}\"\\`.`\n\t\t\t\t: '';\n\n\t\tif (!hasWarned[warnOnFirstOccurrenceKey]) {\n\t\t\tconst message = `[Design System React] The value of \\`${deprecatedPropValue}\\`, for prop \\`${propAsString}\\` will be removed in the next major version of ${control}. Please update your props.${replacementSentence}${additionalComment}`;\n\n\t\t\tif (triggerWarning && log) {\n\t\t\t\tlog({ message });\n\t\t\t} else {\n\t\t\t\twarning(\n\t\t\t\t\t!triggerWarning, // false value triggers warning\n\t\t\t\t\tmessage\n\t\t\t\t);\n\t\t\t}\n\t\t\t// store global flag to limit warnings to first issue\n\t\t\thasWarned[warnOnFirstOccurrenceKey] = triggerWarning;\n\t\t}\n\t};\n}\n\nexport default deprecated;\n"],"mappings":"qIAUA,IAAI,EAAa,UAA8B,CAAC,EAEhD,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAa,SACZ,EACA,CACC,eACA,YACA,sBACA,0BACA,yBACA,OAED,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EACL,EAAU,EAAe,EACpB,EAAiB,IAAc,EAC/B,EACL,GAAuB,GAA2B,EAC/C,cAAc,EAAa,IAAI,EAAoB,aAAa,EAAwB,IAAI,EAAuB,MACnH,GAEJ,GAAI,CAAC,EAAU,GAA2B,CACzC,IAAM,EAAU,wCAAwC,EAAoB,iBAAiB,EAAa,kDAAkD,EAAQ,6BAA6B,IAAsB,IAEnN,GAAkB,EACrB,EAAI,CAAE,SAAQ,CAAC,GAEf,EAAA,EAAA,QAAA,CACC,CAAC,EACD,CACD,EAGD,EAAU,GAA4B,CACvC,CACD,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i,a,o,s){let c=o?` ${o}`:``,l=a?`Use \`${a}\``:``,u=a?` ${l} instead.`:``;!s&&!e[t+i]&&((0,n.default)(r===void 0,`[Design System React] \`${i}\` will be removed in the next major version of ${t}.${u}${c}`),e[t+i]=r!==void 0)}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=deprecated-property.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-property.cjs","names":[],"sources":["../../../../utilities/warning/deprecated-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"deprecated-property.cjs","names":[],"sources":["../../../../utilities/warning/deprecated-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet deprecated = function deprecatedFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tdeprecated = function deprecatedFunction(\n\t\tcontrol,\n\t\tpropValue,\n\t\toldProp,\n\t\tnewProp,\n\t\tcomment,\n\t\tsilenceDeprecatedPropertyWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst newProperty = newProp ? `Use \\`${newProp}\\`` : '';\n\t\tconst newPropertySentence = newProp ? ` ${newProperty} instead.` : '';\n\t\tif (!silenceDeprecatedPropertyWarning && !hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tpropValue === undefined,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` will be removed in the next major version of ${control}.${newPropertySentence}${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = propValue !== undefined;\n\t\t}\n\t};\n}\n\nexport default deprecated;\n"],"mappings":"qIASA,IAAI,EAAa,UAA8B,CAAC,EAEhD,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAa,SACZ,EACA,EACA,EACA,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAc,EAAU,SAAS,EAAQ,IAAM,GAC/C,EAAsB,EAAU,IAAI,EAAY,WAAa,GAC/D,CAAC,GAAoC,CAAC,EAAU,EAAU,MAE7D,EAAA,EAAA,QAAA,CACC,IAAc,IAAA,GACd,2BAA2B,EAAQ,kDAAkD,EAAQ,GAAG,IAAsB,GACvH,EAEA,EAAU,EAAU,GAAW,IAAc,IAAA,GAE/C,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("warning");r=e.__toESM(r,1);var i=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();i=function(t,i,a,o){if(!e[t]){let s=o?` ${o}`:``,c=[];n.default.Children.forEach(i,e=>{e&&e.type&&e.type.displayName!==a&&c.push(e)});let l=c.length>0;l&&(0,r.default)(!1,`[Design System React] Unable to use child components specified within ${t}. Please use a child component with a \`displayName\` class property value of ${a}. Children without that class property are ignored. Please review \`children\` prop documentation.${s}`),e[t]=!!l}}}var a=i;exports.default=a;
|
|
2
2
|
//# sourceMappingURL=has-children-without-display-name-of.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-children-without-display-name-of.cjs","names":[],"sources":["../../../../utilities/warning/has-children-without-display-name-of.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\n/* eslint-disable import/no-mutable-exports */\n\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet hasChildrenWithoutDisplayNameOf
|
|
1
|
+
{"version":3,"file":"has-children-without-display-name-of.cjs","names":[],"sources":["../../../../utilities/warning/has-children-without-display-name-of.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\n/* eslint-disable import/no-mutable-exports */\n\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet hasChildrenWithoutDisplayNameOf =\n\tfunction hasChildrenWithoutDisplayNameOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\t// TODO: allow `displayName` to be an array of displayNames\n\thasChildrenWithoutDisplayNameOf =\n\t\tfunction hasChildrenWithoutDisplayNameOfFunction(\n\t\t\tcontrol,\n\t\t\tchildren,\n\t\t\tdisplayName,\n\t\t\tcomment\n\t\t) {\n\t\t\tif (!hasWarned[control]) {\n\t\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\t\tconst childrenWithoutSelectedDisplayName = [];\n\n\t\t\t\tReact.Children.forEach(children, (child) => {\n\t\t\t\t\tif (child && child.type && child.type.displayName !== displayName) {\n\t\t\t\t\t\tchildrenWithoutSelectedDisplayName.push(child);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst hasChildrenWithoutSelectedDisplayName =\n\t\t\t\t\tchildrenWithoutSelectedDisplayName.length > 0;\n\n\t\t\t\tif (hasChildrenWithoutSelectedDisplayName) {\n\t\t\t\t\t/* eslint-disable max-len */\n\t\t\t\t\twarning(\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t`[Design System React] Unable to use child components specified within ${control}. Please use a child component with a \\`displayName\\` class property value of ${displayName}. Children without that class property are ignored. Please review \\`children\\` prop documentation.${additionalComment}`\n\t\t\t\t\t);\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t}\n\n\t\t\t\thasWarned[control] = !!hasChildrenWithoutSelectedDisplayName;\n\t\t\t}\n\t\t};\n}\n\nexport default hasChildrenWithoutDisplayNameOf;\n"],"mappings":"6KAWA,IAAI,EACH,UAAmD,CAAC,EAErD,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAGlC,EACC,SACC,EACA,EACA,EACA,EACC,CACD,GAAI,CAAC,EAAU,GAAU,CACxB,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAqC,CAAC,EAE5C,EAAA,QAAM,SAAS,QAAQ,EAAW,GAAU,CACvC,GAAS,EAAM,MAAQ,EAAM,KAAK,cAAgB,GACrD,EAAmC,KAAK,CAAK,CAE/C,CAAC,EAED,IAAM,EACL,EAAmC,OAAS,EAEzC,IAEH,EAAA,EAAA,QAAA,CACC,GACA,yEAAyE,EAAQ,gFAAgF,EAAY,oGAAoG,GAClR,EAID,EAAU,GAAW,CAAC,CAAC,CACxB,CACD,CACF,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r;if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i,a){let o=a?` ${a}`:``,s=Object.keys(i),c=s.map(e=>i[e]),l=c.every(e=>!!e),u=c.every(e=>!e),d=l||u;e[t]||((0,n.default)(d,`[Design System React] If one of the following props are used, then both of the following properties are required by ${t}: [${s.join()}].${o}`),e[t]=!d)}}else r=function(){};var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=if-one-then-both-required-property.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"if-one-then-both-required-property.cjs","names":[],"sources":["../../../../utilities/warning/if-one-then-both-required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console one property is used but not both that are required. Either use neither or both properties.\nimport warning from 'warning';\n\nlet ifOneThenBothRequiredProperty;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"if-one-then-both-required-property.cjs","names":[],"sources":["../../../../utilities/warning/if-one-then-both-required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console one property is used but not both that are required. Either use neither or both properties.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet ifOneThenBothRequiredProperty;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tifOneThenBothRequiredProperty =\n\t\tfunction ifOneThenBothRequiredPropertyFunction(\n\t\t\tcontrol,\n\t\t\tprops,\n\t\t\tselectedProps,\n\t\t\tcomment\n\t\t) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst keys = Object.keys(selectedProps);\n\t\t\tconst values = keys.map((key) => selectedProps[key]);\n\t\t\tconst allTruthy = values.every((element) => !!element);\n\t\t\tconst allFalsey = values.every((element) => !element);\n\n\t\t\tconst bothOrNoneAreSet = allTruthy || allFalsey;\n\n\t\t\tif (!hasWarned[control]) {\n\t\t\t\t/* eslint-disable max-len */\n\t\t\t\twarning(\n\t\t\t\t\tbothOrNoneAreSet,\n\t\t\t\t\t`[Design System React] If one of the following props are used, then both of the following properties are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t\t);\n\t\t\t\t/* eslint-enable max-len */\n\t\t\t\thasWarned[control] = !bothOrNoneAreSet;\n\t\t\t}\n\t\t};\n} else {\n\tifOneThenBothRequiredProperty =\n\t\tfunction ifOneThenBothRequiredPropertyFunction() {};\n}\n\nexport default ifOneThenBothRequiredProperty;\n"],"mappings":"qIASA,IAAI,EAEJ,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EACC,SACC,EACA,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAO,OAAO,KAAK,CAAa,EAChC,EAAS,EAAK,IAAK,GAAQ,EAAc,EAAI,EAC7C,EAAY,EAAO,MAAO,GAAY,CAAC,CAAC,CAAO,EAC/C,EAAY,EAAO,MAAO,GAAY,CAAC,CAAO,EAE9C,EAAmB,GAAa,EAEjC,EAAU,MAEd,EAAA,EAAA,QAAA,CACC,EACA,uHAAuH,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACrJ,EAEA,EAAU,GAAW,CAAC,EAExB,CACF,KACC,GACC,UAAiD,CAAC,EAGpD,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");require("../constants.cjs");
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs");require("../constants.cjs");const t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i,a){let o=i?` ${i}`:``,s=r.props.tabIndex;!a&&r.type!==`button`&&r.type!==`input`&&r.type!==`select`&&r.type!==`textarea`&&r.type!==`a`&&r.type.displayName!==`SLDSButton`&&r.type.displayName!==`SLDSButtonStateful`&&r.type.displayName!==`SLDSButtonGroup`&&r.type.displayName!==`SLDSCheckbox`&&r.type.displayName!==`SLDSDatePicker`&&r.type.displayName!==`SLDSInput`&&r.type.displayName!==`SLDSLookup`&&r.type.displayName!==`SLDSMenuDropdown`&&r.type.displayName!==`SLDSTimepicker`&&(s===`-1`||s===void 0)&&(e[t]||((0,n.default)(!1,`[Design System React] The element that triggers ${t} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex="0" specified are tabbable. ${o}`),e[t]=!0))}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=is-trigger-tabbable.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-trigger-tabbable.cjs","names":[],"sources":["../../../../utilities/warning/is-trigger-tabbable.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\n\nimport {\n\tBUTTON,\n\tBUTTON_STATEFUL,\n\tBUTTON_GROUP,\n\tCHECKBOX,\n\tDATE_PICKER,\n\tINPUT,\n\tLOOKUP,\n\tMENU_DROPDOWN,\n\tTIME_PICKER,\n} from '../../utilities/constants';\n\n/* eslint-disable import/no-mutable-exports */\n\nlet isTriggerTabbable = function isTriggerTabbableFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"is-trigger-tabbable.cjs","names":[],"sources":["../../../../utilities/warning/is-trigger-tabbable.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nimport {\n\tBUTTON,\n\tBUTTON_STATEFUL,\n\tBUTTON_GROUP,\n\tCHECKBOX,\n\tDATE_PICKER,\n\tINPUT,\n\tLOOKUP,\n\tMENU_DROPDOWN,\n\tTIME_PICKER,\n} from '../../utilities/constants';\n\n/* eslint-disable import/no-mutable-exports */\n\nlet isTriggerTabbable = function isTriggerTabbableFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tisTriggerTabbable = function isTriggerTabbableFunction(\n\t\tCOMPONENT,\n\t\ttrigger,\n\t\tcomment,\n\t\tsilenceTriggerTabbableWarning\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tconst childTabIndex = trigger.props.tabIndex;\n\n\t\tif (\n\t\t\t// Silencing prop for special cases\n\t\t\t!silenceTriggerTabbableWarning &&\n\t\t\t// List of \"native\" HTML elements that are tabbable by default\n\t\t\ttrigger.type !== 'button' &&\n\t\t\ttrigger.type !== 'input' &&\n\t\t\ttrigger.type !== 'select' &&\n\t\t\ttrigger.type !== 'textarea' &&\n\t\t\ttrigger.type !== 'a' &&\n\t\t\t// List of components that are tabbable by default\n\t\t\ttrigger.type.displayName !== BUTTON &&\n\t\t\ttrigger.type.displayName !== BUTTON_STATEFUL &&\n\t\t\ttrigger.type.displayName !== BUTTON_GROUP &&\n\t\t\ttrigger.type.displayName !== CHECKBOX &&\n\t\t\ttrigger.type.displayName !== DATE_PICKER &&\n\t\t\ttrigger.type.displayName !== INPUT &&\n\t\t\ttrigger.type.displayName !== LOOKUP &&\n\t\t\ttrigger.type.displayName !== MENU_DROPDOWN &&\n\t\t\ttrigger.type.displayName !== TIME_PICKER\n\t\t) {\n\t\t\t// if it's not one of the above, then check to see if it has a tabIndex\n\t\t\tif (childTabIndex === '-1' || childTabIndex === undefined) {\n\t\t\t\tif (!hasWarned[COMPONENT]) {\n\t\t\t\t\t/* eslint-disable max-len */\n\t\t\t\t\twarning(\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t`[Design System React] The element that triggers ${COMPONENT} must be tabbable for keyboard users. Elements such as anchor, button, input or a DOM element with tabIndex=\"0\" specified are tabbable. ${additionalComment}`\n\t\t\t\t\t);\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t\thasWarned[COMPONENT] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\nexport default isTriggerTabbable;\n"],"mappings":"uKAuBA,IAAI,EAAoB,UAAqC,CAAC,EAE9D,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAoB,SACnB,EACA,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAgB,EAAQ,MAAM,SAInC,CAAC,GAED,EAAQ,OAAS,UACjB,EAAQ,OAAS,SACjB,EAAQ,OAAS,UACjB,EAAQ,OAAS,YACjB,EAAQ,OAAS,KAEjB,EAAQ,KAAK,cAAA,cACb,EAAQ,KAAK,cAAA,sBACb,EAAQ,KAAK,cAAA,mBACb,EAAQ,KAAK,cAAA,gBACb,EAAQ,KAAK,cAAA,kBACb,EAAQ,KAAK,cAAA,aACb,EAAQ,KAAK,cAAA,cACb,EAAQ,KAAK,cAAA,oBACb,EAAQ,KAAK,cAAA,mBAGT,IAAkB,MAAQ,IAAkB,IAAA,MAC1C,EAAU,MAEd,EAAA,EAAA,QAAA,CACC,GACA,mDAAmD,EAAU,0IAA0I,GACxM,EAEA,EAAU,GAAa,IAI3B,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"low-priority-warning.cjs","names":[],"sources":["../../../../utilities/warning/low-priority-warning.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\n/* eslint-disable import/no-mutable-exports */\n\nlet lowPriorityWarning = function printWarningFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst printWarning = function printWarningFunction(originalMessage, ...args) {\n\t\tlet argIndex = 0;\n\t\tconst message = `Warning: ${originalMessage.replace(/%s/g, () => {\n\t\t\tconst argument = args[argIndex];\n\t\t\targIndex += 1;\n\t\t\treturn argument;\n\t\t})}`;\n\t\tif (typeof console !== 'undefined') {\n\t\t\tconsole.warn(message); // eslint-disable-line no-console\n\t\t}\n\t\ttry {\n\t\t\t// Throw error to enable tracing the callstack.\n\t\t\tthrow new Error(message);\n\t\t} catch
|
|
1
|
+
{"version":3,"file":"low-priority-warning.cjs","names":[],"sources":["../../../../utilities/warning/low-priority-warning.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\n/* eslint-disable import/no-mutable-exports */\n\nlet lowPriorityWarning = function printWarningFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst printWarning = function printWarningFunction(originalMessage, ...args) {\n\t\tlet argIndex = 0;\n\t\tconst message = `Warning: ${originalMessage.replace(/%s/g, () => {\n\t\t\tconst argument = args[argIndex];\n\t\t\targIndex += 1;\n\t\t\treturn argument;\n\t\t})}`;\n\t\tif (typeof console !== 'undefined') {\n\t\t\tconsole.warn(message); // eslint-disable-line no-console\n\t\t}\n\t\ttry {\n\t\t\t// Throw error to enable tracing the callstack.\n\t\t\tthrow new Error(message);\n\t\t} catch {} // eslint-disable-line no-empty\n\t};\n\n\tlowPriorityWarning = (condition, originalMessage, ...args) => {\n\t\tif (!condition && originalMessage) {\n\t\t\tprintWarning(originalMessage, ...args);\n\t\t}\n\t};\n}\n\nexport default lowPriorityWarning;\n"],"mappings":"AAKA,IAAI,EAAqB,UAAgC,CAAC,EAE1D,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAe,SAA8B,EAAiB,GAAG,EAAM,CAC5E,IAAI,EAAW,EACT,EAAU,YAAY,EAAgB,QAAQ,UAAa,CAChE,IAAM,EAAW,EAAK,GAEtB,MADA,IAAY,EACL,CACR,CAAC,IACG,OAAO,QAAY,KACtB,QAAQ,KAAK,CAAO,EAErB,GAAI,CAEH,MAAU,MAAM,CAAO,CACxB,MAAQ,CAAC,CACV,EAEA,GAAsB,EAAW,EAAiB,GAAG,IAAS,CACzD,CAAC,GAAa,GACjB,EAAa,EAAiB,GAAG,CAAI,CAEvC,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r;if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i){let a=i?` ${i}`:``,o=!1,s=Object.keys(r);s.forEach(e=>{r[e]&&(o=!0)}),e[t]||((0,n.default)(o,`[Design System React] One of the following props are required by ${t}: [${s.join()}].${a}`),e[t]=!o)}}else r=function(){};var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=one-of-required-property.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-of-required-property.cjs","names":[],"sources":["../../../../utilities/warning/one-of-required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet oneOfRequired;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"one-of-required-property.cjs","names":[],"sources":["../../../../utilities/warning/one-of-required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet oneOfRequired;\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\toneOfRequired = function oneOfRequiredFunction(\n\t\tcontrol,\n\t\tselectedProps,\n\t\tcomment\n\t) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet atLeastOnePropIsSet = false;\n\t\tconst keys = Object.keys(selectedProps);\n\t\tkeys.forEach((key) => {\n\t\t\tif (selectedProps[key]) {\n\t\t\t\tatLeastOnePropIsSet = true;\n\t\t\t}\n\t\t});\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tatLeastOnePropIsSet,\n\t\t\t\t`[Design System React] One of the following props are required by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = !atLeastOnePropIsSet;\n\t\t}\n\t};\n} else {\n\toneOfRequired = function oneOfRequiredFunction() {};\n}\n\nexport default oneOfRequired;\n"],"mappings":"qIASA,IAAI,EAEJ,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAgB,SACf,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAChD,EAAsB,GACpB,EAAO,OAAO,KAAK,CAAa,EACtC,EAAK,QAAS,GAAQ,CACjB,EAAc,KACjB,EAAsB,GAExB,CAAC,EAEI,EAAU,MAEd,EAAA,EAAA,QAAA,CACC,EACA,oEAAoE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GAClG,EAEA,EAAU,GAAW,CAAC,EAExB,CACD,KACC,GAAgB,UAAiC,CAAC,EAGnD,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i){let a=i?` ${i}`:``,o=Object.keys(r);o=o.filter(e=>r[e]),e[t]||((0,n.default)(o.length<=1,`[Design System React] Only one of the following props is needed by ${t}: [${o.join()}].${a}`),e[t]=o.length>1)}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=only-one-of-properties.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"only-one-of-properties.cjs","names":[],"sources":["../../../../utilities/warning/only-one-of-properties.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an warning message to the browser console if extraneous properties are defined (falsey).\nimport warning from 'warning';\n\nlet onlyOneOf = function onlyOneOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"only-one-of-properties.cjs","names":[],"sources":["../../../../utilities/warning/only-one-of-properties.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an warning message to the browser console if extraneous properties are defined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet onlyOneOf = function onlyOneOfFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tonlyOneOf = function onlyOneOfFunction(control, selectedProps, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tlet keys = Object.keys(selectedProps);\n\t\tkeys = keys.filter((key) => selectedProps[key]);\n\n\t\tif (!hasWarned[control]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tkeys.length <= 1,\n\t\t\t\t`[Design System React] Only one of the following props is needed by ${control}: [${keys.join()}].${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control] = keys.length > 1;\n\t\t}\n\t};\n}\n\nexport default onlyOneOf;\n"],"mappings":"qIASA,IAAI,EAAY,UAA6B,CAAC,EAE9C,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAY,SAA2B,EAAS,EAAe,EAAS,CACvE,IAAM,EAAoB,EAAU,IAAI,IAAY,GAChD,EAAO,OAAO,KAAK,CAAa,EACpC,EAAO,EAAK,OAAQ,GAAQ,EAAc,EAAI,EAEzC,EAAU,MAEd,EAAA,EAAA,QAAA,CACC,EAAK,QAAU,EACf,sEAAsE,EAAQ,KAAK,EAAK,KAAK,EAAE,IAAI,GACpG,EAEA,EAAU,GAAW,EAAK,OAAS,EAErC,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("warning");r=e.__toESM(r,1);var i=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();i=function(t,i,a,o,s,c){let l=c?` ${c}`:``,u=o.join(`,`),d=!1;if((!a.type||!a.type.displayName||!u.match(a.type.displayName))&&(s&&a.props&&a.props.children?n.default.Children.forEach(a.props.children,e=>{(!e||!e.type||!e.type.displayName||!u.match(e.type.displayName))&&(d=!0)}):d=!0),d&&!e[t]){let n=``;o.forEach((e,t)=>{n+=e,o.length>t+2?n+=`, `:o.length>t+1&&(n+=o.length>2?`, or `:` or `)}),(0,r.default)(!1,`[Design System React] Content provided by \`${i}\` for ${t} must have a \`displayName\` property value of ${n}${s?` or be an element/fragment with children all having the \`displayName\` property value of ${n}.`:`.`} Please review ${i} prop documentation.${l}`),e[t]=!0}}}var a=i;exports.default=a;
|
|
2
2
|
//# sourceMappingURL=render-function-return-contents-lack-display-name.cjs.map
|
package/dist/cjs/utilities/warning/render-function-return-contents-lack-display-name.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-function-return-contents-lack-display-name.cjs","names":[],"sources":["../../../../utilities/warning/render-function-return-contents-lack-display-name.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\n/* eslint-disable import/no-mutable-exports */\n\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet renderFunctionReturnContentsLackDisplayName
|
|
1
|
+
{"version":3,"file":"render-function-return-contents-lack-display-name.cjs","names":[],"sources":["../../../../utilities/warning/render-function-return-contents-lack-display-name.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\n/* eslint-disable import/no-mutable-exports */\n\nimport React from 'react';\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet renderFunctionReturnContentsLackDisplayName =\n\tfunction renderFunctionReturnContentsLackDisplayNameFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\trenderFunctionReturnContentsLackDisplayName =\n\t\tfunction renderFunctionReturnContentsLackDisplayNameFunction(\n\t\t\tcontrol,\n\t\t\tpropName,\n\t\t\trenderFunctionReturnContents,\n\t\t\tdisplayNames, // array of allowed displayName strings\n\t\t\tcheckChildren, // if true children of the render function return main node will be checked for displayNames matches\n\t\t\tcomment\n\t\t) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst displayNamesJoined = displayNames.join(',');\n\t\t\tlet foundDiscrepancy = false;\n\n\t\t\tif (\n\t\t\t\t!renderFunctionReturnContents.type ||\n\t\t\t\t!renderFunctionReturnContents.type.displayName ||\n\t\t\t\t!displayNamesJoined.match(renderFunctionReturnContents.type.displayName)\n\t\t\t) {\n\t\t\t\tif (\n\t\t\t\t\tcheckChildren &&\n\t\t\t\t\trenderFunctionReturnContents.props &&\n\t\t\t\t\trenderFunctionReturnContents.props.children\n\t\t\t\t) {\n\t\t\t\t\tReact.Children.forEach(\n\t\t\t\t\t\trenderFunctionReturnContents.props.children,\n\t\t\t\t\t\t(child) => {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t!child ||\n\t\t\t\t\t\t\t\t!child.type ||\n\t\t\t\t\t\t\t\t!child.type.displayName ||\n\t\t\t\t\t\t\t\t!displayNamesJoined.match(child.type.displayName)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tfoundDiscrepancy = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tfoundDiscrepancy = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (foundDiscrepancy && !hasWarned[control]) {\n\t\t\t\tlet allowedDisplayNames = '';\n\n\t\t\t\tdisplayNames.forEach((displayName, index) => {\n\t\t\t\t\tallowedDisplayNames += displayName;\n\n\t\t\t\t\tif (displayNames.length > index + 2) {\n\t\t\t\t\t\tallowedDisplayNames += ', ';\n\t\t\t\t\t} else if (displayNames.length > index + 1) {\n\t\t\t\t\t\tallowedDisplayNames += displayNames.length > 2 ? ', or ' : ' or ';\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t/* eslint-disable max-len */\n\t\t\t\twarning(\n\t\t\t\t\tfalse,\n\t\t\t\t\t`[Design System React] Content provided by \\`${propName}\\` for ${control} must have a \\`displayName\\` property value of ${allowedDisplayNames}${\n\t\t\t\t\t\tcheckChildren\n\t\t\t\t\t\t\t? ` or be an element/fragment with children all having the \\`displayName\\` property value of ${allowedDisplayNames}.`\n\t\t\t\t\t\t\t: '.'\n\t\t\t\t\t} Please review ${propName} prop documentation.${additionalComment}`\n\t\t\t\t);\n\t\t\t\t/* eslint-enable max-len */\n\t\t\t\thasWarned[control] = true;\n\t\t\t}\n\t\t};\n}\n\nexport default renderFunctionReturnContentsLackDisplayName;\n"],"mappings":"6KAWA,IAAI,EACH,UAA+D,CAAC,EAEjE,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EACC,SACC,EACA,EACA,EACA,EACA,EACA,EACC,CACD,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAqB,EAAa,KAAK,GAAG,EAC5C,EAAmB,GA8BvB,IA3BC,CAAC,EAA6B,MAC9B,CAAC,EAA6B,KAAK,aACnC,CAAC,EAAmB,MAAM,EAA6B,KAAK,WAAW,KAGtE,GACA,EAA6B,OAC7B,EAA6B,MAAM,SAEnC,EAAA,QAAM,SAAS,QACd,EAA6B,MAAM,SAClC,GAAU,EAET,CAAC,GACD,CAAC,EAAM,MACP,CAAC,EAAM,KAAK,aACZ,CAAC,EAAmB,MAAM,EAAM,KAAK,WAAW,KAEhD,EAAmB,GAErB,CACD,EAEA,EAAmB,IAIjB,GAAoB,CAAC,EAAU,GAAU,CAC5C,IAAI,EAAsB,GAE1B,EAAa,SAAS,EAAa,IAAU,CAC5C,GAAuB,EAEnB,EAAa,OAAS,EAAQ,EACjC,GAAuB,KACb,EAAa,OAAS,EAAQ,IACxC,GAAuB,EAAa,OAAS,EAAI,QAAU,OAE7D,CAAC,GAGD,EAAA,EAAA,QAAA,CACC,GACA,+CAA+C,EAAS,SAAS,EAAQ,iDAAiD,IACzH,EACG,6FAA6F,EAAoB,GACjH,IACH,iBAAiB,EAAS,sBAAsB,GAClD,EAEA,EAAU,GAAW,EACtB,CACD,CACF,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i,a){let o=a?` ${a}`:``;!r&&!e[t+i]&&((0,n.default)(!1,`[Design System React] \`${i}\` is required by ${t}.${o}`),e[t+i]=!0)}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=required-property.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-property.cjs","names":[],"sources":["../../../../utilities/warning/required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when a\n// required (controlled) property is missing. Pass `isSet` rather than the\n// value so falsy values such as `0`, `''` or `null` can count as set. Warns\n// once per component and property.\nimport warning from 'warning';\n\nlet required = function requiredFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"required-property.cjs","names":[],"sources":["../../../../utilities/warning/required-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when a\n// required (controlled) property is missing. Pass `isSet` rather than the\n// value so falsy values such as `0`, `''` or `null` can count as set. Warns\n// once per component and property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet required = function requiredFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\trequired = function requiredFunction(control, isSet, propName, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!isSet && !hasWarned[control + propName]) {\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] \\`${propName}\\` is required by ${control}.${additionalComment}`\n\t\t\t);\n\t\t\thasWarned[control + propName] = true;\n\t\t}\n\t};\n}\n\nexport default required;\n"],"mappings":"qIAYA,IAAI,EAAW,UAA4B,CAAC,EAE5C,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAW,SAA0B,EAAS,EAAO,EAAU,EAAS,CACvE,IAAM,EAAoB,EAAU,IAAI,IAAY,GAChD,CAAC,GAAS,CAAC,EAAU,EAAU,MAClC,EAAA,EAAA,QAAA,CACC,GACA,2BAA2B,EAAS,oBAAoB,EAAQ,GAAG,GACpE,EACA,EAAU,EAAU,GAAY,GAElC,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs");let
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./warned-registry.cjs");let n=require("warning");n=e.__toESM(n,1);var r=function(){};if(process.env.NODE_ENV!==`production`){let e=t.createWarnedMap();r=function(t,r,i,a){let o=a?` ${a}`:``;e[t+i]||((0,n.default)(!r,`[Design System React] \`${i}\` has reached End-of-Life and has been removed from the API of ${t}. Please update your API.${o}`),e[t+i]=!!r)}}var i=r;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=sunset-property.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sunset-property.cjs","names":[],"sources":["../../../../utilities/warning/sunset-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\n\nlet sunset = function sunsetFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned =
|
|
1
|
+
{"version":3,"file":"sunset-property.cjs","names":[],"sources":["../../../../utilities/warning/sunset-property.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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console about the removal of a property.\nimport warning from 'warning';\nimport { createWarnedMap } from './warned-registry';\n\nlet sunset = function sunsetFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tconst hasWarned = createWarnedMap();\n\n\tsunset = function sunsetFunction(control, propValue, oldProp, comment) {\n\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\tif (!hasWarned[control + oldProp]) {\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\t!propValue,\n\t\t\t\t`[Design System React] \\`${oldProp}\\` has reached End-of-Life and has been removed from the API of ${control}. Please update your API.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t\thasWarned[control + oldProp] = !!propValue;\n\t\t}\n\t};\n}\n\nexport default sunset;\n"],"mappings":"qIASA,IAAI,EAAS,UAA0B,CAAC,EAExC,GAAA,QAAA,IAAA,WAA6B,aAAc,CAC1C,IAAM,EAAY,EAAA,gBAAgB,EAElC,EAAS,SAAwB,EAAS,EAAW,EAAS,EAAS,CACtE,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC/C,EAAU,EAAU,MAExB,EAAA,EAAA,QAAA,CACC,CAAC,EACD,2BAA2B,EAAQ,kEAAkE,EAAQ,2BAA2B,GACzI,EAEA,EAAU,EAAU,GAAW,CAAC,CAAC,EAEnC,CACD,CAEA,IAAA,EAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warned-registry.cjs","names":[],"sources":["../../../../utilities/warning/warned-registry.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\n// Every warn-once helper keeps its \"already warned\" keys in a map created\n// here, so tests can clear them all between cases. In an app nothing calls\n// `resetWarnings`, and each message still prints once per page load.\nconst registry: Record<string, boolean>[] = [];\n\nexport function createWarnedMap(): Record<string, boolean> {\n\tconst warned: Record<string, boolean> = {};\n\tregistry.push(warned);\n\treturn warned;\n}\n\n/** Test-only: forget every warning already printed. */\nexport function resetWarnings(): void {\n\tregistry.forEach((warned) => {\n\t\tObject.keys(warned).forEach((key) => {\n\t\t\tdelete warned[key];\n\t\t});\n\t});\n}\n"],"mappings":"AAMA,IAAM,EAAsC,CAAC,EAE7C,SAAgB,GAA2C,CAC1D,IAAM,EAAkC,CAAC,EAEzC,OADA,EAAS,KAAK,CAAM,EACb,CACR"}
|
|
@@ -48,11 +48,10 @@ var p = { closeButton: "Close" }, m = {}, h = {
|
|
|
48
48
|
size: j.props.size ?? "x-small"
|
|
49
49
|
}) : j;
|
|
50
50
|
return /* @__PURE__ */ f("div", {
|
|
51
|
-
className: n("slds-notify slds-notify_alert
|
|
52
|
-
"slds-
|
|
53
|
-
"slds-
|
|
54
|
-
"slds-
|
|
55
|
-
"slds-theme_offline": C === "offline"
|
|
51
|
+
className: n("slds-notify slds-notify_alert", {
|
|
52
|
+
"slds-alert_warning": C === "warning",
|
|
53
|
+
"slds-alert_error": C === "error",
|
|
54
|
+
"slds-alert_offline": C === "offline"
|
|
56
55
|
}, r),
|
|
57
56
|
role: "alert",
|
|
58
57
|
style: S,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/alert/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\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseCallback,\n\ttype ReactElement,\n\ttype ReactNode,\n\ttype CSSProperties,\n} from 'react';\nimport classNames from '../../utilities/class-names';\nimport Button from '../button';\nimport Icon, { type IconProps } from '../icon';\nimport { ALERT } from '../../utilities/constants';\nimport DOMElementFocus from '../../utilities/dom-element-focus';\nimport EventUtil from '../../utilities/event';\n\n/**\n * Alert variant types\n */\nexport type AlertVariant = 'error' | 'info' | 'offline' | 'warning';\n\n/**\n * Assistive text for Alert\n */\nexport interface AlertAssistiveText {\n\t/** Close button assistive text */\n\tcloseButton?: ReactNode;\n}\n\n/**\n * Labels for Alert\n */\nexport interface AlertLabels {\n\t/** Main heading content */\n\theading?: ReactNode;\n\t/** Link text in heading */\n\theadingLink?: ReactNode;\n}\n\n/**\n * Props for the Alert component\n */\nexport interface AlertProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: AlertAssistiveText;\n\t/** CSS classes for the alert container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Show close button */\n\tdismissible?: boolean;\n\t/**\n\t * `Icon` shown before the message (defaults to variant-specific icon). Its `size` and\n\t * `inverse` default to 'x-small' and `true`; its `containerClassName` is added to the spacing classes.\n\t */\n\ticon?: ReactElement<IconProps>;\n\t/** Text labels */\n\tlabels?: AlertLabels;\n\t/** Callback when heading link is clicked */\n\tonClickHeadingLink?: (event: React.MouseEvent) => void;\n\t/** Callback when close button is clicked */\n\tonRequestClose?: (event: React.MouseEvent) => void;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n\t/** Alert type/severity (default `info`) */\n\tvariant?: AlertVariant;\n}\n\nconst defaultAssistiveText: AlertAssistiveText = {\n\tcloseButton: 'Close',\n};\n\nconst defaultLabels: AlertLabels = {};\n\nconst assistiveTextVariant: Record<AlertVariant, string> = {\n\tinfo: 'info',\n\twarning: 'warning',\n\terror: 'error',\n\toffline: 'offline',\n};\n\nconst defaultIcons: Record<AlertVariant, ReactNode> = {\n\tinfo: <Icon category=\"utility\" name=\"info\" />,\n\toffline: <Icon category=\"utility\" name=\"offline\" />,\n\twarning: <Icon category=\"utility\" name=\"warning\" />,\n\terror: <Icon category=\"utility\" name=\"error\" />,\n};\n\n/**\n * Alert banners communicate a state that affects the entire system, not just a feature or page.\n * It persists over a session and appears without the user initiating the action.\n */\nconst Alert = ({\n\tassistiveText: propAssistiveText,\n\tclassName,\n\tdismissible,\n\ticon: propIcon,\n\tlabels: propLabels,\n\tonClickHeadingLink,\n\tonRequestClose,\n\tstyle,\n\tvariant = 'info',\n}: AlertProps): React.ReactElement => {\n\tconst [isInitialRender, setIsInitialRender] = useState(true);\n\tconst closeButtonRef = useRef<HTMLButtonElement | null>(null);\n\tconst hasStoredFocusRef = useRef(false);\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\t// Restore focus on unmount, but only if this Alert stored it. The stored\n\t// element is shared with other components (Popover, Toast), so restoring\n\t// unconditionally would take focus they stored.\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tif (hasStoredFocusRef.current) {\n\t\t\t\tDOMElementFocus.returnFocusToStoredElement();\n\t\t\t}\n\t\t};\n\t}, []);\n\n\tconst saveButtonRef = useCallback(\n\t\t(component: HTMLButtonElement | null) => {\n\t\t\tcloseButtonRef.current = component;\n\t\t\tif (isInitialRender && component) {\n\t\t\t\tDOMElementFocus.storeActiveElement();\n\t\t\t\thasStoredFocusRef.current = true;\n\t\t\t\tcomponent.focus();\n\t\t\t\tsetIsInitialRender(false);\n\t\t\t}\n\t\t},\n\t\t[isInitialRender]\n\t);\n\n\t// Get the icon to display\n\tconst icon = propIcon || defaultIcons[variant];\n\n\tconst clonedIcon = React.isValidElement<IconProps>(icon)\n\t\t? React.cloneElement(icon, {\n\t\t\t\tcontainerClassName: classNames(\n\t\t\t\t\t'slds-m-right_x-small',\n\t\t\t\t\ticon.props.containerClassName\n\t\t\t\t),\n\t\t\t\tinverse: icon.props.inverse ?? true,\n\t\t\t\tsize: icon.props.size ?? 'x-small',\n\t\t\t})\n\t\t: icon;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-notify slds-notify_alert
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/alert/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\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseCallback,\n\ttype ReactElement,\n\ttype ReactNode,\n\ttype CSSProperties,\n} from 'react';\nimport classNames from '../../utilities/class-names';\nimport Button from '../button';\nimport Icon, { type IconProps } from '../icon';\nimport { ALERT } from '../../utilities/constants';\nimport DOMElementFocus from '../../utilities/dom-element-focus';\nimport EventUtil from '../../utilities/event';\n\n/**\n * Alert variant types\n */\nexport type AlertVariant = 'error' | 'info' | 'offline' | 'warning';\n\n/**\n * Assistive text for Alert\n */\nexport interface AlertAssistiveText {\n\t/** Close button assistive text */\n\tcloseButton?: ReactNode;\n}\n\n/**\n * Labels for Alert\n */\nexport interface AlertLabels {\n\t/** Main heading content */\n\theading?: ReactNode;\n\t/** Link text in heading */\n\theadingLink?: ReactNode;\n}\n\n/**\n * Props for the Alert component\n */\nexport interface AlertProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: AlertAssistiveText;\n\t/** CSS classes for the alert container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Show close button */\n\tdismissible?: boolean;\n\t/**\n\t * `Icon` shown before the message (defaults to variant-specific icon). Its `size` and\n\t * `inverse` default to 'x-small' and `true`; its `containerClassName` is added to the spacing classes.\n\t */\n\ticon?: ReactElement<IconProps>;\n\t/** Text labels */\n\tlabels?: AlertLabels;\n\t/** Callback when heading link is clicked */\n\tonClickHeadingLink?: (event: React.MouseEvent) => void;\n\t/** Callback when close button is clicked */\n\tonRequestClose?: (event: React.MouseEvent) => void;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n\t/** Alert type/severity (default `info`) */\n\tvariant?: AlertVariant;\n}\n\nconst defaultAssistiveText: AlertAssistiveText = {\n\tcloseButton: 'Close',\n};\n\nconst defaultLabels: AlertLabels = {};\n\nconst assistiveTextVariant: Record<AlertVariant, string> = {\n\tinfo: 'info',\n\twarning: 'warning',\n\terror: 'error',\n\toffline: 'offline',\n};\n\nconst defaultIcons: Record<AlertVariant, ReactNode> = {\n\tinfo: <Icon category=\"utility\" name=\"info\" />,\n\toffline: <Icon category=\"utility\" name=\"offline\" />,\n\twarning: <Icon category=\"utility\" name=\"warning\" />,\n\terror: <Icon category=\"utility\" name=\"error\" />,\n};\n\n/**\n * Alert banners communicate a state that affects the entire system, not just a feature or page.\n * It persists over a session and appears without the user initiating the action.\n */\nconst Alert = ({\n\tassistiveText: propAssistiveText,\n\tclassName,\n\tdismissible,\n\ticon: propIcon,\n\tlabels: propLabels,\n\tonClickHeadingLink,\n\tonRequestClose,\n\tstyle,\n\tvariant = 'info',\n}: AlertProps): React.ReactElement => {\n\tconst [isInitialRender, setIsInitialRender] = useState(true);\n\tconst closeButtonRef = useRef<HTMLButtonElement | null>(null);\n\tconst hasStoredFocusRef = useRef(false);\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\t// Restore focus on unmount, but only if this Alert stored it. The stored\n\t// element is shared with other components (Popover, Toast), so restoring\n\t// unconditionally would take focus they stored.\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tif (hasStoredFocusRef.current) {\n\t\t\t\tDOMElementFocus.returnFocusToStoredElement();\n\t\t\t}\n\t\t};\n\t}, []);\n\n\tconst saveButtonRef = useCallback(\n\t\t(component: HTMLButtonElement | null) => {\n\t\t\tcloseButtonRef.current = component;\n\t\t\tif (isInitialRender && component) {\n\t\t\t\tDOMElementFocus.storeActiveElement();\n\t\t\t\thasStoredFocusRef.current = true;\n\t\t\t\tcomponent.focus();\n\t\t\t\tsetIsInitialRender(false);\n\t\t\t}\n\t\t},\n\t\t[isInitialRender]\n\t);\n\n\t// Get the icon to display\n\tconst icon = propIcon || defaultIcons[variant];\n\n\tconst clonedIcon = React.isValidElement<IconProps>(icon)\n\t\t? React.cloneElement(icon, {\n\t\t\t\tcontainerClassName: classNames(\n\t\t\t\t\t'slds-m-right_x-small',\n\t\t\t\t\ticon.props.containerClassName\n\t\t\t\t),\n\t\t\t\tinverse: icon.props.inverse ?? true,\n\t\t\t\tsize: icon.props.size ?? 'x-small',\n\t\t\t})\n\t\t: icon;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-notify slds-notify_alert',\n\t\t\t\t{\n\t\t\t\t\t'slds-alert_warning': variant === 'warning',\n\t\t\t\t\t'slds-alert_error': variant === 'error',\n\t\t\t\t\t'slds-alert_offline': variant === 'offline',\n\t\t\t\t},\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t\trole=\"alert\"\n\t\t\tstyle={style}\n\t\t>\n\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t{assistiveTextVariant[variant]}\n\t\t\t</span>\n\t\t\t{clonedIcon}\n\t\t\t<h2>\n\t\t\t\t{labels.heading}{' '}\n\t\t\t\t{labels.headingLink && (\n\t\t\t\t\t// eslint-disable-next-line jsx-a11y/anchor-is-valid -- SLDS alert markup uses an anchor for the heading link\n\t\t\t\t\t<a onClick={EventUtil.trappedHandler(onClickHeadingLink)} href=\"#\">\n\t\t\t\t\t\t{labels.headingLink}\n\t\t\t\t\t</a>\n\t\t\t\t)}\n\t\t\t</h2>\n\t\t\t{dismissible && (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{ icon: assistiveText.closeButton as string }}\n\t\t\t\t\tbuttonRef={saveButtonRef}\n\t\t\t\t\tclassName=\"slds-notify__close\"\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\ticonSize=\"medium\"\n\t\t\t\t\tinverse\n\t\t\t\t\tonClick={onRequestClose}\n\t\t\t\t\ttitle={assistiveText.closeButton as string}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nAlert.displayName = ALERT;\n\nexport default Alert;\n"],"mappings":";;;;;;;;;AAqEA,IAAM,IAA2C,EAChD,aAAa,QACd,GAEM,IAA6B,CAAC,GAE9B,IAAqD;CAC1D,MAAM;CACN,SAAS;CACT,OAAO;CACP,SAAS;AACV,GAEM,IAAgD;CACrD,MAAM,kBAAC,GAAD;EAAM,UAAS;EAAU,MAAK;CAAQ,CAAA;CAC5C,SAAS,kBAAC,GAAD;EAAM,UAAS;EAAU,MAAK;CAAW,CAAA;CAClD,SAAS,kBAAC,GAAD;EAAM,UAAS;EAAU,MAAK;CAAW,CAAA;CAClD,OAAO,kBAAC,GAAD;EAAM,UAAS;EAAU,MAAK;CAAS,CAAA;AAC/C,GAMM,KAAS,EACd,eAAe,GACf,cACA,gBACA,MAAM,GACN,QAAQ,GACR,uBACA,mBACA,UACA,aAAU,aAC2B;CACrC,IAAM,CAAC,GAAiB,KAAsB,EAAS,EAAI,GACrD,IAAiB,EAAiC,IAAI,GACtD,IAAoB,EAAO,EAAK,GAEhC,IAAgB;EAAE,GAAG;EAAsB,GAAG;CAAkB,GAChE,IAAS;EAAE,GAAG;EAAe,GAAG;CAAW;CAKjD,cACc;EACZ,AAAI,EAAkB,WACrB,EAAgB,2BAA2B;CAE7C,GACE,CAAC,CAAC;CAEL,IAAM,IAAgB,GACpB,MAAwC;EAExC,AADA,EAAe,UAAU,GACrB,KAAmB,MACtB,EAAgB,mBAAmB,GACnC,EAAkB,UAAU,IAC5B,EAAU,MAAM,GAChB,EAAmB,EAAK;CAE1B,GACA,CAAC,CAAe,CACjB,GAGM,IAAO,KAAY,EAAa,IAEhC,IAAa,EAAM,eAA0B,CAAI,IACpD,EAAM,aAAa,GAAM;EACzB,oBAAoB,EACnB,wBACA,EAAK,MAAM,kBACZ;EACA,SAAS,EAAK,MAAM,WAAW;EAC/B,MAAM,EAAK,MAAM,QAAQ;CAC1B,CAAC,IACA;CAEH,OACC,kBAAC,OAAD;EACC,WAAW,EACV,iCACA;GACC,sBAAsB,MAAY;GAClC,oBAAoB,MAAY;GAChC,sBAAsB,MAAY;EACnC,GACA,CACD;EACA,MAAK;EACE;EAXR,UAAA;GAaC,kBAAC,QAAD;IAAM,WAAU;IACd,UAAA,EAAqB;GACjB,CAAA;GACL;GACD,kBAAC,MAAD,EAAA,UAAA;IACE,EAAO;IAAS;IAChB,EAAO,eAEP,kBAAC,KAAD;KAAG,SAAS,EAAU,eAAe,CAAkB;KAAG,MAAK;KAC7D,UAAA,EAAO;IACN,CAAA;GAED,EAAA,CAAA;GACH,KACA,kBAAC,GAAD;IACC,eAAe,EAAE,MAAM,EAAc,YAAsB;IAC3D,WAAW;IACX,WAAU;IACV,cAAa;IACb,UAAS;IACT,UAAS;IACT,SAAA;IACA,SAAS;IACT,OAAO,EAAc;IACrB,SAAQ;GACR,CAAA;EAEE;;AAEP;AAEA,EAAM,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-link.js","names":[],"sources":["../../../../components/builder-header/nav-link.tsx"],"sourcesContent":["import React, { type MouseEvent } from 'react';\nimport EventUtil from '../../utilities/event';\n\nimport Icon from '../icon';\nimport type { IconCategory } from '../../types/common';\n\nimport { BUILDER_HEADER_NAV_LINK } from '../../utilities/constants';\n\nexport interface BuilderHeaderNavLinkAssistiveText {\n\t/** Used for the icon next to the link text. */\n\ticon?: string;\n}\n\nexport interface BuilderHeaderNavLinkProps {\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t * * `icon`: Used for the icon next to the link text.\n\t * * _Tested with snapshot testing._\n\t */\n\tassistiveText?: BuilderHeaderNavLinkAssistiveText;\n\t/**\n\t * Name of the icon category. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon categories.\n\t */\n\ticonCategory?: 'action' | 'custom' | 'doctype' | 'standard' | 'utility';\n\t/**\n\t * Name of the icon. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon names.\n\t */\n\ticonName?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\ticonPath?: string;\n\t/**\n\t * Text for the link.\n\t */\n\tlabel?: string;\n\t/**\n\t * Triggered when the link is clicked.\n\t */\n\tonClick?: (event: MouseEvent) => void;\n}\n\nconst defaultAssistiveText: BuilderHeaderNavLinkAssistiveText = {};\n\n/**\n * A link within the navigation section of the header.\n */\nconst BuilderHeaderNavLink = (\n\tprops: BuilderHeaderNavLinkProps\n): React.ReactElement => {\n\tconst assistiveText = {\n\t\t...defaultAssistiveText,\n\t\t...props.assistiveText,\n\t};\n\n\treturn (\n\t\t<a\n\t\t\tclassName=\"slds-builder-header__item-action slds-media slds-media_center\"\n\t\t\thref=\"#\"\n\t\t\tonClick={EventUtil.trappedHandler(props.onClick)}\n\t\t>\n\t\t\t<span className=\"slds-media__figure\">\n\t\t\t\t<Icon\n\t\t\t\t\tassistiveText={{ label: assistiveText.icon }}\n\t\t\t\t\tcategory={props.iconCategory as IconCategory}\n\t\t\t\t\tcontainerClassName=\"slds-icon_container slds-icon-utility-settings slds-current-color\"\n\t\t\t\t\tname={props.iconName}\n\t\t\t\t\tpath={props.iconPath}\n\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t/>\n\t\t\t</span>\n\t\t\t<span className=\"slds-media__body\">\n\t\t\t\t<span className=\"slds-truncate\" title={props.label}>\n\t\t\t\t\t{props.label}\n\t\t\t\t</span>\n\t\t\t</span>\n\t\t</a>\n\t);\n};\n\nBuilderHeaderNavLink.displayName = BUILDER_HEADER_NAV_LINK;\n\nBuilderHeaderNavLink.defaultProps = {\n\tassistiveText: {},\n\ticonCategory: '' as BuilderHeaderNavLinkProps['iconCategory'],\n\ticonName: '',\n\tlabel: '',\n};\n\nexport default BuilderHeaderNavLink;\n"],"mappings":";;;;;;AA2CA,IAAM,IAA0D,CAAC,GAK3D,KACL,MACwB;CACxB,IAAM,IAAgB;EACrB,GAAG;EACH,GAAG,EAAM;CACV;CAEA,
|
|
1
|
+
{"version":3,"file":"nav-link.js","names":[],"sources":["../../../../components/builder-header/nav-link.tsx"],"sourcesContent":["import React, { type MouseEvent } from 'react';\nimport EventUtil from '../../utilities/event';\n\nimport Icon from '../icon';\nimport type { IconCategory } from '../../types/common';\n\nimport { BUILDER_HEADER_NAV_LINK } from '../../utilities/constants';\n\nexport interface BuilderHeaderNavLinkAssistiveText {\n\t/** Used for the icon next to the link text. */\n\ticon?: string;\n}\n\nexport interface BuilderHeaderNavLinkProps {\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t * * `icon`: Used for the icon next to the link text.\n\t * * _Tested with snapshot testing._\n\t */\n\tassistiveText?: BuilderHeaderNavLinkAssistiveText;\n\t/**\n\t * Name of the icon category. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon categories.\n\t */\n\ticonCategory?: 'action' | 'custom' | 'doctype' | 'standard' | 'utility';\n\t/**\n\t * Name of the icon. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon names.\n\t */\n\ticonName?: string;\n\t/**\n\t * Path to the icon. This will override any global icon settings.\n\t */\n\ticonPath?: string;\n\t/**\n\t * Text for the link.\n\t */\n\tlabel?: string;\n\t/**\n\t * Triggered when the link is clicked.\n\t */\n\tonClick?: (event: MouseEvent) => void;\n}\n\nconst defaultAssistiveText: BuilderHeaderNavLinkAssistiveText = {};\n\n/**\n * A link within the navigation section of the header.\n */\nconst BuilderHeaderNavLink = (\n\tprops: BuilderHeaderNavLinkProps\n): React.ReactElement => {\n\tconst assistiveText = {\n\t\t...defaultAssistiveText,\n\t\t...props.assistiveText,\n\t};\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/anchor-is-valid -- SLDS builder header markup uses an anchor for nav items\n\t\t<a\n\t\t\tclassName=\"slds-builder-header__item-action slds-media slds-media_center\"\n\t\t\thref=\"#\"\n\t\t\tonClick={EventUtil.trappedHandler(props.onClick)}\n\t\t>\n\t\t\t<span className=\"slds-media__figure\">\n\t\t\t\t<Icon\n\t\t\t\t\tassistiveText={{ label: assistiveText.icon }}\n\t\t\t\t\tcategory={props.iconCategory as IconCategory}\n\t\t\t\t\tcontainerClassName=\"slds-icon_container slds-icon-utility-settings slds-current-color\"\n\t\t\t\t\tname={props.iconName}\n\t\t\t\t\tpath={props.iconPath}\n\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t/>\n\t\t\t</span>\n\t\t\t<span className=\"slds-media__body\">\n\t\t\t\t<span className=\"slds-truncate\" title={props.label}>\n\t\t\t\t\t{props.label}\n\t\t\t\t</span>\n\t\t\t</span>\n\t\t</a>\n\t);\n};\n\nBuilderHeaderNavLink.displayName = BUILDER_HEADER_NAV_LINK;\n\nBuilderHeaderNavLink.defaultProps = {\n\tassistiveText: {},\n\ticonCategory: '' as BuilderHeaderNavLinkProps['iconCategory'],\n\ticonName: '',\n\tlabel: '',\n};\n\nexport default BuilderHeaderNavLink;\n"],"mappings":";;;;;;AA2CA,IAAM,IAA0D,CAAC,GAK3D,KACL,MACwB;CACxB,IAAM,IAAgB;EACrB,GAAG;EACH,GAAG,EAAM;CACV;CAEA,OAEC,kBAAC,KAAD;EACC,WAAU;EACV,MAAK;EACL,SAAS,EAAU,eAAe,EAAM,OAAO;EAHhD,UAAA,CAKC,kBAAC,QAAD;GAAM,WAAU;GACf,UAAA,kBAAC,GAAD;IACC,eAAe,EAAE,OAAO,EAAc,KAAK;IAC3C,UAAU,EAAM;IAChB,oBAAmB;IACnB,MAAM,EAAM;IACZ,MAAM,EAAM;IACZ,MAAK;GACL,CAAA;EACI,CAAA,GACN,kBAAC,QAAD;GAAM,WAAU;GACf,UAAA,kBAAC,QAAD;IAAM,WAAU;IAAgB,OAAO,EAAM;IAC3C,UAAA,EAAM;GACF,CAAA;EACD,CAAA,CACJ;;AAEL;AAEA,EAAqB,cAAc,GAEnC,EAAqB,eAAe;CACnC,eAAe,CAAC;CAChB,cAAc;CACd,UAAU;CACV,OAAO;AACR"}
|
|
@@ -6,7 +6,7 @@ process.env.NODE_ENV;
|
|
|
6
6
|
var r = function() {};
|
|
7
7
|
process.env.NODE_ENV !== "production" && (r = function(r, i, a) {
|
|
8
8
|
let o = t(a);
|
|
9
|
-
n(r, i.requestFocus, "requestFocus", void 0, `Focus the button through \`ref\` (or \`buttonRef\`) instead: \`buttonRef.current.focus()\`. ${o()}`), n(r, i.onRequestFocus, "onRequestFocus", void 0, `Focus the button through \`ref\` (or \`buttonRef\`) instead. ${o()}`), e(r, i.tooltip, "tooltip", `Wrap the button in a \`Tooltip\` instead: \`<Tooltip content={…} trigger={<Button … />} />\`. ${o()}`);
|
|
9
|
+
n(r, i.requestFocus, "requestFocus", void 0, `Focus the button through \`ref\` (or \`buttonRef\`) instead: \`buttonRef.current.focus()\`. ${o()}`), n(r, i.onRequestFocus, "onRequestFocus", void 0, `Focus the button through \`ref\` (or \`buttonRef\`) instead. ${o()}`), n(r, i.onKeyPress, "onKeyPress", "onKeyDown", `\`keypress\` is a deprecated DOM event; read \`event.key\` instead. ${o("onKeyDown")}`), e(r, i.tooltip, "tooltip", `Wrap the button in a \`Tooltip\` instead: \`<Tooltip content={…} trigger={<Button … />} />\`. ${o()}`);
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
12
12
|
export { r as checkRemovedProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/button/check-props.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/* eslint-disable import/no-mutable-exports */\n\nimport getComponentDocFn from '../../utilities/get-component-doc';\nimport ifOneThenBothRequiredProperty from '../../utilities/warning/if-one-then-both-required-property';\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport sunsetProperty from '../../utilities/warning/sunset-property';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\t/* eslint-disable max-len */\n\t\t// If iconName is set, iconCategory must also be set.\n\t\tifOneThenBothRequiredProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops,\n\t\t\t{\n\t\t\t\ticonName: props.iconName,\n\t\t\t\ticonCategory: props.iconCategory,\n\t\t\t},\n\t\t\tcreateDocUrl('iconCategory')\n\t\t);\n\t};\n}\n\n// v11 removals and deprecations. Exported separately so the component can run these checks\n// without enabling the pre-existing `checkProps` warnings.\nexport let checkRemovedProps = function checkRemovedPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckRemovedProps = function checkRemovedPropsFunction(\n\t\tCOMPONENT,\n\t\tprops,\n\t\tjsonDoc\n\t) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.requestFocus,\n\t\t\t'requestFocus',\n\t\t\tundefined,\n\t\t\t`Focus the button through \\`ref\\` (or \\`buttonRef\\`) instead: \\`buttonRef.current.focus()\\`. ${createDocUrl()}`\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onRequestFocus,\n\t\t\t'onRequestFocus',\n\t\t\tundefined,\n\t\t\t`Focus the button through \\`ref\\` (or \\`buttonRef\\`) instead. ${createDocUrl()}`\n\t\t);\n\t\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.tooltip,\n\t\t\t'tooltip',\n\t\t\t`Wrap the button in a \\`Tooltip\\` instead: \\`<Tooltip content={…} trigger={<Button … />} />\\`. ${createDocUrl()}`\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;AAWA,QAAA,IAAA;AAoBA,IAAW,IAAoB,WAAqC,CAAC;AAErE,QAAA,IAAA,aAA6B,iBAC5B,IAAoB,SACnB,GACA,GACA,GACC;CACD,IAAM,IAAe,EAAkB,CAAO;
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/button/check-props.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/* eslint-disable import/no-mutable-exports */\n\nimport getComponentDocFn from '../../utilities/get-component-doc';\nimport ifOneThenBothRequiredProperty from '../../utilities/warning/if-one-then-both-required-property';\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport sunsetProperty from '../../utilities/warning/sunset-property';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\t/* eslint-disable max-len */\n\t\t// If iconName is set, iconCategory must also be set.\n\t\tifOneThenBothRequiredProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops,\n\t\t\t{\n\t\t\t\ticonName: props.iconName,\n\t\t\t\ticonCategory: props.iconCategory,\n\t\t\t},\n\t\t\tcreateDocUrl('iconCategory')\n\t\t);\n\t};\n}\n\n// v11 removals and deprecations. Exported separately so the component can run these checks\n// without enabling the pre-existing `checkProps` warnings.\nexport let checkRemovedProps = function checkRemovedPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckRemovedProps = function checkRemovedPropsFunction(\n\t\tCOMPONENT,\n\t\tprops,\n\t\tjsonDoc\n\t) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.requestFocus,\n\t\t\t'requestFocus',\n\t\t\tundefined,\n\t\t\t`Focus the button through \\`ref\\` (or \\`buttonRef\\`) instead: \\`buttonRef.current.focus()\\`. ${createDocUrl()}`\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onRequestFocus,\n\t\t\t'onRequestFocus',\n\t\t\tundefined,\n\t\t\t`Focus the button through \\`ref\\` (or \\`buttonRef\\`) instead. ${createDocUrl()}`\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onKeyPress,\n\t\t\t'onKeyPress',\n\t\t\t'onKeyDown',\n\t\t\t`\\`keypress\\` is a deprecated DOM event; read \\`event.key\\` instead. ${createDocUrl('onKeyDown')}`\n\t\t);\n\t\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.tooltip,\n\t\t\t'tooltip',\n\t\t\t`Wrap the button in a \\`Tooltip\\` instead: \\`<Tooltip content={…} trigger={<Button … />} />\\`. ${createDocUrl()}`\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;AAWA,QAAA,IAAA;AAoBA,IAAW,IAAoB,WAAqC,CAAC;AAErE,QAAA,IAAA,aAA6B,iBAC5B,IAAoB,SACnB,GACA,GACA,GACC;CACD,IAAM,IAAe,EAAkB,CAAO;CAuB9C,AArBA,EACC,GACA,EAAM,cACN,gBACA,KAAA,GACA,+FAA+F,EAAa,GAC7G,GACA,EACC,GACA,EAAM,gBACN,kBACA,KAAA,GACA,gEAAgE,EAAa,GAC9E,GACA,EACC,GACA,EAAM,YACN,cACA,aACA,uEAAuE,EAAa,WAAW,GAChG,GACA,EACC,GACA,EAAM,SACN,WACA,iGAAiG,EAAa,GAC/G;AACD"}
|