@salesforce/design-system-react 11.0.0-alpha.6 → 11.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/panel.cjs +1 -1
- package/dist/cjs/components/accordion/panel.cjs.map +1 -1
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/badge/index.cjs.map +1 -1
- package/dist/cjs/components/builder-header/check-props.cjs +2 -0
- package/dist/cjs/components/builder-header/check-props.cjs.map +1 -0
- package/dist/cjs/components/builder-header/component.cjs +2 -0
- package/dist/cjs/components/builder-header/component.cjs.map +1 -0
- package/dist/cjs/components/builder-header/toolbar.cjs +1 -1
- package/dist/cjs/components/builder-header/toolbar.cjs.map +1 -1
- package/dist/cjs/components/carousel/check-props.cjs +2 -0
- package/dist/cjs/components/carousel/check-props.cjs.map +1 -0
- package/dist/cjs/components/carousel/component.cjs +2 -0
- package/dist/cjs/components/carousel/component.cjs.map +1 -0
- 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-item.cjs +1 -1
- package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs +2 -0
- package/dist/cjs/components/checkbox/check-props.cjs.map +1 -0
- package/dist/cjs/components/checkbox/component.cjs +2 -0
- package/dist/cjs/components/checkbox/component.cjs.map +1 -0
- package/dist/cjs/components/checkbox/index.cjs +1 -1
- package/dist/cjs/components/checkbox/index.cjs.map +1 -1
- package/dist/cjs/components/combobox/check-props.cjs +1 -1
- package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
- package/dist/cjs/components/combobox/combobox.cjs +1 -1
- package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
- package/dist/cjs/components/combobox/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/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
- package/dist/cjs/components/input/index.cjs +1 -1
- package/dist/cjs/components/input/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
- package/dist/cjs/components/page-header/check-props.cjs +2 -0
- package/dist/cjs/components/page-header/check-props.cjs.map +1 -0
- package/dist/cjs/components/page-header/component.cjs +2 -0
- package/dist/cjs/components/page-header/component.cjs.map +1 -0
- package/dist/cjs/components/page-header/index.cjs +1 -1
- package/dist/cjs/components/page-header/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/related-list/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/related-list/index.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +1 -1
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/component.cjs +2 -0
- package/dist/cjs/components/progress-indicator/component.cjs.map +1 -0
- package/dist/cjs/components/progress-indicator/index.cjs +1 -1
- package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs.map +1 -1
- package/dist/cjs/components/radio/check-props.cjs +2 -0
- package/dist/cjs/components/radio/check-props.cjs.map +1 -0
- package/dist/cjs/components/radio/component.cjs +2 -0
- package/dist/cjs/components/radio/component.cjs.map +1 -0
- package/dist/cjs/components/radio/index.cjs +1 -1
- package/dist/cjs/components/radio/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/check-props.cjs +1 -1
- package/dist/cjs/components/setup-assistant/check-props.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
- package/dist/cjs/components/slider/check-props.cjs +2 -0
- package/dist/cjs/components/slider/check-props.cjs.map +1 -0
- package/dist/cjs/components/slider/component.cjs +2 -0
- package/dist/cjs/components/slider/component.cjs.map +1 -0
- package/dist/cjs/components/slider/index.cjs +1 -1
- package/dist/cjs/components/slider/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/check-props.cjs +1 -1
- package/dist/cjs/components/split-view/check-props.cjs.map +1 -1
- package/dist/cjs/components/split-view/index.cjs +1 -1
- package/dist/cjs/components/split-view/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/listbox-check-props.cjs +2 -0
- package/dist/cjs/components/split-view/listbox-check-props.cjs.map +1 -0
- package/dist/cjs/components/split-view/listbox.cjs +1 -1
- package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/list-item-content.cjs +1 -1
- package/dist/cjs/components/split-view/private/list-item-content.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/list-item-with-content.cjs +1 -1
- package/dist/cjs/components/split-view/private/list-item-with-content.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/toggle-button.cjs +1 -1
- package/dist/cjs/components/split-view/private/toggle-button.cjs.map +1 -1
- package/dist/cjs/components/tabs/panel.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/tree/check-props.cjs +1 -1
- package/dist/cjs/components/tree/check-props.cjs.map +1 -1
- package/dist/cjs/components/tree/component.cjs +2 -0
- package/dist/cjs/components/tree/component.cjs.map +1 -0
- package/dist/cjs/components/tree/tree.cjs +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/trial-bar/check-props.cjs +2 -0
- package/dist/cjs/components/trial-bar/check-props.cjs.map +1 -0
- package/dist/cjs/components/trial-bar/component.cjs +2 -0
- package/dist/cjs/components/trial-bar/component.cjs.map +1 -0
- package/dist/cjs/components/trial-bar/index.cjs +1 -1
- package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
- package/dist/cjs/components/utilities/menu-list/index.cjs +1 -1
- 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/components/vertical-navigation/private/item.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/check-props.cjs +2 -0
- package/dist/cjs/components/welcome-mat/check-props.cjs.map +1 -0
- package/dist/cjs/components/welcome-mat/component.cjs +2 -0
- package/dist/cjs/components/welcome-mat/component.cjs.map +1 -0
- package/dist/cjs/components/welcome-mat/index.cjs +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs.map +1 -1
- package/dist/cjs/utilities/warning/deprecated-property-value.cjs +2 -0
- package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +1 -0
- package/dist/es/components/accordion/panel.js +1 -1
- package/dist/es/components/accordion/panel.js.map +1 -1
- package/dist/es/components/badge/index.js +6 -5
- package/dist/es/components/badge/index.js.map +1 -1
- package/dist/es/components/builder-header/check-props.js +13 -0
- package/dist/es/components/builder-header/check-props.js.map +1 -0
- package/dist/es/components/builder-header/component.js +65 -0
- package/dist/es/components/builder-header/component.js.map +1 -0
- package/dist/es/components/builder-header/toolbar.js +18 -13
- package/dist/es/components/builder-header/toolbar.js.map +1 -1
- package/dist/es/components/carousel/check-props.js +13 -0
- package/dist/es/components/carousel/check-props.js.map +1 -0
- package/dist/es/components/carousel/component.js +27 -0
- package/dist/es/components/carousel/component.js.map +1 -0
- package/dist/es/components/carousel/index.js +121 -109
- package/dist/es/components/carousel/index.js.map +1 -1
- package/dist/es/components/carousel/private/carousel-item.js +1 -2
- package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
- package/dist/es/components/checkbox/check-props.js +14 -0
- package/dist/es/components/checkbox/check-props.js.map +1 -0
- package/dist/es/components/checkbox/component.js +35 -0
- package/dist/es/components/checkbox/component.js.map +1 -0
- package/dist/es/components/checkbox/index.js +124 -112
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/combobox/check-props.js +1 -1
- package/dist/es/components/combobox/check-props.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +208 -200
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/combobox/index.js.map +1 -1
- package/dist/es/components/combobox/private/menu.js +5 -7
- package/dist/es/components/combobox/private/menu.js.map +1 -1
- package/dist/es/components/dynamic-icon/index.js +1 -1
- package/dist/es/components/dynamic-icon/index.js.map +1 -1
- package/dist/es/components/input/index.js +138 -136
- package/dist/es/components/input/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/check-props.js +1 -1
- package/dist/es/components/menu-dropdown/check-props.js.map +1 -1
- package/dist/es/components/menu-dropdown/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/menu-dropdown.js +192 -185
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/page-header/check-props.js +31 -0
- package/dist/es/components/page-header/check-props.js.map +1 -0
- package/dist/es/components/page-header/component.js +35 -0
- package/dist/es/components/page-header/component.js.map +1 -0
- package/dist/es/components/page-header/index.js +56 -38
- package/dist/es/components/page-header/index.js.map +1 -1
- package/dist/es/components/page-header/private/base/index.js +1 -1
- package/dist/es/components/page-header/private/base/index.js.map +1 -1
- package/dist/es/components/page-header/private/controls.js +1 -1
- package/dist/es/components/page-header/private/controls.js.map +1 -1
- package/dist/es/components/page-header/private/object-home/index.js +4 -4
- package/dist/es/components/page-header/private/object-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/record-home/index.js +1 -1
- package/dist/es/components/page-header/private/record-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/related-list/index.js +2 -2
- package/dist/es/components/page-header/private/related-list/index.js.map +1 -1
- package/dist/es/components/popover/popover.js +130 -130
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/progress-indicator/check-props.js +11 -8
- package/dist/es/components/progress-indicator/check-props.js.map +1 -1
- package/dist/es/components/progress-indicator/component.js +35 -0
- package/dist/es/components/progress-indicator/component.js.map +1 -0
- package/dist/es/components/progress-indicator/index.js +74 -71
- package/dist/es/components/progress-indicator/index.js.map +1 -1
- package/dist/es/components/progress-indicator/private/step-vertical.js +23 -20
- package/dist/es/components/progress-indicator/private/step-vertical.js.map +1 -1
- package/dist/es/components/radio/check-props.js +13 -0
- package/dist/es/components/radio/check-props.js.map +1 -0
- package/dist/es/components/radio/component.js +24 -0
- package/dist/es/components/radio/component.js.map +1 -0
- package/dist/es/components/radio/index.js +94 -80
- package/dist/es/components/radio/index.js.map +1 -1
- package/dist/es/components/setup-assistant/check-props.js +12 -7
- package/dist/es/components/setup-assistant/check-props.js.map +1 -1
- package/dist/es/components/setup-assistant/step.js +7 -7
- package/dist/es/components/setup-assistant/step.js.map +1 -1
- package/dist/es/components/simple-data-table/check-props.js +1 -1
- package/dist/es/components/simple-data-table/check-props.js.map +1 -1
- package/dist/es/components/simple-data-table/index.js +17 -10
- package/dist/es/components/simple-data-table/index.js.map +1 -1
- package/dist/es/components/slider/check-props.js +17 -0
- package/dist/es/components/slider/check-props.js.map +1 -0
- package/dist/es/components/slider/component.js +35 -0
- package/dist/es/components/slider/component.js.map +1 -0
- package/dist/es/components/slider/index.js +69 -53
- package/dist/es/components/slider/index.js.map +1 -1
- package/dist/es/components/split-view/check-props.js +2 -2
- package/dist/es/components/split-view/check-props.js.map +1 -1
- package/dist/es/components/split-view/index.js +8 -5
- package/dist/es/components/split-view/index.js.map +1 -1
- package/dist/es/components/split-view/listbox-check-props.js +13 -0
- package/dist/es/components/split-view/listbox-check-props.js.map +1 -0
- package/dist/es/components/split-view/listbox.js +41 -35
- package/dist/es/components/split-view/listbox.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-content.js +1 -1
- package/dist/es/components/split-view/private/list-item-content.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-with-content.js +6 -1
- package/dist/es/components/split-view/private/list-item-with-content.js.map +1 -1
- package/dist/es/components/split-view/private/toggle-button.js +2 -2
- package/dist/es/components/split-view/private/toggle-button.js.map +1 -1
- package/dist/es/components/tabs/panel.js.map +1 -1
- package/dist/es/components/textarea/check-props.js +11 -10
- package/dist/es/components/textarea/check-props.js.map +1 -1
- package/dist/es/components/textarea/index.js +59 -47
- package/dist/es/components/textarea/index.js.map +1 -1
- package/dist/es/components/tree/check-props.js +10 -9
- package/dist/es/components/tree/check-props.js.map +1 -1
- package/dist/es/components/tree/component.js +25 -0
- package/dist/es/components/tree/component.js.map +1 -0
- package/dist/es/components/tree/tree.js +76 -74
- package/dist/es/components/tree/tree.js.map +1 -1
- package/dist/es/components/trial-bar/check-props.js +13 -0
- package/dist/es/components/trial-bar/check-props.js.map +1 -0
- package/dist/es/components/trial-bar/component.js +24 -0
- package/dist/es/components/trial-bar/component.js.map +1 -0
- package/dist/es/components/trial-bar/index.js +27 -21
- package/dist/es/components/trial-bar/index.js.map +1 -1
- package/dist/es/components/utilities/menu-list/index.js +1 -0
- package/dist/es/components/utilities/menu-list/index.js.map +1 -1
- package/dist/es/components/utilities/menu-list/item.js +5 -3
- package/dist/es/components/utilities/menu-list/item.js.map +1 -1
- package/dist/es/components/utilities/utility-icon/index.js +2 -1
- package/dist/es/components/utilities/utility-icon/index.js.map +1 -1
- package/dist/es/components/vertical-navigation/private/item.js +1 -1
- package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
- package/dist/es/components/welcome-mat/check-props.js +13 -0
- package/dist/es/components/welcome-mat/check-props.js.map +1 -0
- package/dist/es/components/welcome-mat/component.js +46 -0
- package/dist/es/components/welcome-mat/component.js.map +1 -0
- package/dist/es/components/welcome-mat/index.js +61 -55
- package/dist/es/components/welcome-mat/index.js.map +1 -1
- package/dist/es/components/welcome-mat/info-badge.js +19 -11
- package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
- package/dist/es/utilities/warning/deprecated-property-value.js +18 -0
- package/dist/es/utilities/warning/deprecated-property-value.js.map +1 -0
- package/dist/types/components/accordion/panel.d.ts.map +1 -1
- package/dist/types/components/badge/index.d.ts +4 -2
- package/dist/types/components/badge/index.d.ts.map +1 -1
- package/dist/types/components/builder-header/check-props.d.ts +3 -0
- package/dist/types/components/builder-header/check-props.d.ts.map +1 -0
- package/dist/types/components/builder-header/toolbar.d.ts +6 -4
- package/dist/types/components/builder-header/toolbar.d.ts.map +1 -1
- package/dist/types/components/carousel/check-props.d.ts +3 -0
- package/dist/types/components/carousel/check-props.d.ts.map +1 -0
- package/dist/types/components/carousel/index.d.ts +9 -7
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/carousel/private/carousel-item.d.ts +4 -4
- package/dist/types/components/carousel/private/carousel-item.d.ts.map +1 -1
- package/dist/types/components/checkbox/check-props.d.ts +1 -0
- package/dist/types/components/checkbox/check-props.d.ts.map +1 -1
- package/dist/types/components/checkbox/index.d.ts +9 -3
- package/dist/types/components/checkbox/index.d.ts.map +1 -1
- package/dist/types/components/combobox/check-props.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox.d.ts +29 -15
- 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/combobox/private/menu.d.ts +11 -6
- package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
- package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/check-props.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/index.d.ts +1 -1
- package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +22 -3
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
- package/dist/types/components/page-header/check-props.d.ts.map +1 -1
- package/dist/types/components/page-header/index.d.ts +15 -4
- package/dist/types/components/page-header/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/base/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/controls.d.ts +4 -4
- package/dist/types/components/page-header/private/controls.d.ts.map +1 -1
- package/dist/types/components/page-header/private/object-home/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/record-home/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/types.d.ts +6 -6
- package/dist/types/components/page-header/private/types.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/index.d.ts +7 -1
- package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts +4 -7
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts.map +1 -1
- package/dist/types/components/radio/check-props.d.ts +1 -0
- package/dist/types/components/radio/check-props.d.ts.map +1 -1
- package/dist/types/components/radio/index.d.ts +10 -4
- package/dist/types/components/radio/index.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/check-props.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/step.d.ts +12 -6
- package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/check-props.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/types.d.ts +21 -8
- package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
- package/dist/types/components/slider/check-props.d.ts +3 -0
- package/dist/types/components/slider/check-props.d.ts.map +1 -0
- package/dist/types/components/slider/index.d.ts +26 -5
- package/dist/types/components/slider/index.d.ts.map +1 -1
- package/dist/types/components/split-view/check-props.d.ts.map +1 -1
- package/dist/types/components/split-view/index.d.ts +9 -5
- package/dist/types/components/split-view/index.d.ts.map +1 -1
- package/dist/types/components/split-view/listbox-check-props.d.ts +3 -0
- package/dist/types/components/split-view/listbox-check-props.d.ts.map +1 -0
- package/dist/types/components/split-view/listbox.d.ts +19 -3
- 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 +10 -1
- package/dist/types/components/split-view/private/list-item-with-content.d.ts.map +1 -1
- package/dist/types/components/split-view/private/toggle-button.d.ts +3 -3
- package/dist/types/components/split-view/private/toggle-button.d.ts.map +1 -1
- package/dist/types/components/tabs/panel.d.ts +5 -1
- package/dist/types/components/tabs/panel.d.ts.map +1 -1
- package/dist/types/components/textarea/check-props.d.ts.map +1 -1
- package/dist/types/components/textarea/index.d.ts +23 -3
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/tree/check-props.d.ts.map +1 -1
- package/dist/types/components/tree/index.d.ts +1 -1
- package/dist/types/components/tree/index.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +12 -4
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/tree/types.d.ts +7 -1
- package/dist/types/components/tree/types.d.ts.map +1 -1
- package/dist/types/components/trial-bar/check-props.d.ts +3 -0
- package/dist/types/components/trial-bar/check-props.d.ts.map +1 -0
- package/dist/types/components/trial-bar/index.d.ts +15 -7
- package/dist/types/components/trial-bar/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/index.d.ts +5 -1
- package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/item.d.ts +3 -1
- package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
- package/dist/types/components/utilities/utility-icon/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/check-props.d.ts +3 -0
- package/dist/types/components/welcome-mat/check-props.d.ts.map +1 -0
- package/dist/types/components/welcome-mat/index.d.ts +9 -3
- package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/info-badge.d.ts +7 -3
- package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
- package/package.json +5 -3
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import e from "../../utilities/
|
|
1
|
+
import e from "../../utilities/get-component-doc.js";
|
|
2
|
+
import t from "../../utilities/warning/deprecated-property.js";
|
|
3
|
+
import n from "../../utilities/warning/incompatible-props.js";
|
|
2
4
|
//#region components/progress-indicator/check-props.js
|
|
3
|
-
var
|
|
4
|
-
process.env.NODE_ENV !== "production" && (
|
|
5
|
+
var r = function() {};
|
|
6
|
+
process.env.NODE_ENV !== "production" && (r = function(r, i, a) {
|
|
7
|
+
let o = e(a);
|
|
5
8
|
[
|
|
6
9
|
["disabledSteps", null],
|
|
7
10
|
["errorSteps", null],
|
|
@@ -13,12 +16,12 @@ process.env.NODE_ENV !== "production" && (t = function(t, n) {
|
|
|
13
16
|
"setup-assistant",
|
|
14
17
|
"shade"
|
|
15
18
|
]]
|
|
16
|
-
].forEach(([
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
+
].forEach(([e, t]) => {
|
|
20
|
+
n(r, i, "type", ["path"], e, t, "Only `type=\"base\"` supports this prop.");
|
|
21
|
+
}), t(r, i.hasDeprecatedSetupAssistantAction || void 0, "steps[].onRenderSetupAssistantAction", "steps[].setupAssistantAction", o("steps"));
|
|
19
22
|
});
|
|
20
|
-
var
|
|
23
|
+
var i = r;
|
|
21
24
|
//#endregion
|
|
22
|
-
export {
|
|
25
|
+
export { i as default };
|
|
23
26
|
|
|
24
27
|
//# sourceMappingURL=check-props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/progress-indicator/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 incompatibleProps from '../../utilities/warning/incompatible-props';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props) {\n\t\tconst comment = 'Only `type=\"base\"` supports this prop.';\n\t\tconst baseOnlyProps = [\n\t\t\t['disabledSteps', null],\n\t\t\t['errorSteps', null],\n\t\t\t['orientation', ['vertical']],\n\t\t\t['tooltipIsOpenSteps', null],\n\t\t\t['tooltipPosition', null],\n\t\t\t['variant', ['modal', 'setup-assistant', 'shade']],\n\t\t];\n\n\t\tbaseOnlyProps.forEach(([propName, values]) => {\n\t\t\tincompatibleProps(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops,\n\t\t\t\t'type',\n\t\t\t\t['path'],\n\t\t\t\tpropName,\n\t\t\t\tvalues,\n\t\t\t\tcomment\n\t\t\t);\n\t\t});\n\t};\n}\n\nexport default checkProps;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/progress-indicator/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 deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\nimport incompatibleProps from '../../utilities/warning/incompatible-props';\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\t\tconst comment = 'Only `type=\"base\"` supports this prop.';\n\t\tconst baseOnlyProps = [\n\t\t\t['disabledSteps', null],\n\t\t\t['errorSteps', null],\n\t\t\t['orientation', ['vertical']],\n\t\t\t['tooltipIsOpenSteps', null],\n\t\t\t['tooltipPosition', null],\n\t\t\t['variant', ['modal', 'setup-assistant', 'shade']],\n\t\t];\n\n\t\tbaseOnlyProps.forEach(([propName, values]) => {\n\t\t\tincompatibleProps(\n\t\t\t\tCOMPONENT,\n\t\t\t\tprops,\n\t\t\t\t'type',\n\t\t\t\t['path'],\n\t\t\t\tpropName,\n\t\t\t\tvalues,\n\t\t\t\tcomment\n\t\t\t);\n\t\t});\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.hasDeprecatedSetupAssistantAction || undefined,\n\t\t\t'steps[].onRenderSetupAssistantAction',\n\t\t\t'steps[].setupAssistantAction',\n\t\t\tcreateDocUrl('steps')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;AAQA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAuB9C,AAZA;EARC,CAAC,iBAAiB,IAAI;EACtB,CAAC,cAAc,IAAI;EACnB,CAAC,eAAe,CAAC,UAAU,CAAC;EAC5B,CAAC,sBAAsB,IAAI;EAC3B,CAAC,mBAAmB,IAAI;EACxB,CAAC,WAAW;GAAC;GAAS;GAAmB;EAAO,CAAC;CAGlD,CAAA,CAAc,SAAS,CAAC,GAAU,OAAY;EAC7C,EACC,GACA,GACA,QACA,CAAC,MAAM,GACP,GACA,GACA,0CACD;CACD,CAAC,GAED,EACC,GACA,EAAM,qCAAqC,KAAA,GAC3C,wCACA,gCACA,EAAa,OAAO,CACrB;AACD;AAGD,IAAA,IAAe"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region components/progress-indicator/component.json
|
|
2
|
+
var e = "progress-indicator", t = "prod", n = "ProgressIndicator", r = {
|
|
3
|
+
component: e,
|
|
4
|
+
status: t,
|
|
5
|
+
"display-name": "Progress Indicators",
|
|
6
|
+
classKey: n,
|
|
7
|
+
"SLDS-component-path": "/components/progress-indicator",
|
|
8
|
+
"last-accessibility-review": {
|
|
9
|
+
"date-iso-8601": "2018/07/25",
|
|
10
|
+
"commit-sha": "473c75bf424f69bf0ff66fde6b1e604c21d2835c"
|
|
11
|
+
},
|
|
12
|
+
"last-slds-markup-review": {
|
|
13
|
+
"date-iso-8601": "2018/07/25",
|
|
14
|
+
"commit-sha": "473c75bf424f69bf0ff66fde6b1e604c21d2835c"
|
|
15
|
+
},
|
|
16
|
+
"site-stories": [
|
|
17
|
+
{
|
|
18
|
+
heading: "Default",
|
|
19
|
+
path: "/__examples__/default.jsx"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
heading: "Vertical",
|
|
23
|
+
path: "/__examples__/vertical.jsx"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
heading: "Path",
|
|
27
|
+
path: "/__examples__/path.jsx"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"url-slug": "progress-indicators"
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { n as classKey, e as component, r as default, t as status };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","names":[],"sources":["../../../../components/progress-indicator/component.json"],"sourcesContent":["{\n\t\"component\": \"progress-indicator\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Progress Indicators\",\n\t\"classKey\": \"ProgressIndicator\",\n\t\"SLDS-component-path\": \"/components/progress-indicator\",\n\t\"last-accessibility-review\": {\n\t\t\"date-iso-8601\": \"2018/07/25\",\n\t\t\"commit-sha\": \"473c75bf424f69bf0ff66fde6b1e604c21d2835c\"\n\t},\n\t\"last-slds-markup-review\": {\n\t\t\"date-iso-8601\": \"2018/07/25\",\n\t\t\"commit-sha\": \"473c75bf424f69bf0ff66fde6b1e604c21d2835c\"\n\t},\n\t\"site-stories\": [\n\t\t{\n\t\t\t\"heading\": \"Default\",\n\t\t\t\"path\": \"/__examples__/default.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Vertical\",\n\t\t\t\"path\": \"/__examples__/vertical.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Path\",\n\t\t\t\"path\": \"/__examples__/path.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"progress-indicators\"\n}\n"],"mappings":""}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { PROGRESS_INDICATOR as e } from "../../utilities/constants.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./private/
|
|
4
|
-
import r from "./private/
|
|
5
|
-
import i from "./private/
|
|
6
|
-
import a from "./
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import u from "
|
|
2
|
+
import t from "./component.js";
|
|
3
|
+
import n from "./private/step.js";
|
|
4
|
+
import r from "./private/progress.js";
|
|
5
|
+
import i from "./private/step-vertical.js";
|
|
6
|
+
import a from "./private/path.js";
|
|
7
|
+
import o from "./check-props.js";
|
|
8
|
+
import { useEffect as s, useId as c, useMemo as l } from "react";
|
|
9
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
10
|
+
import d from "lodash.find";
|
|
10
11
|
//#region components/progress-indicator/index.tsx
|
|
11
|
-
var
|
|
12
|
+
var f = [
|
|
12
13
|
{
|
|
13
14
|
id: 0,
|
|
14
15
|
label: "tooltip label #1"
|
|
@@ -29,96 +30,98 @@ var d = [
|
|
|
29
30
|
id: 4,
|
|
30
31
|
label: "tooltip label #5"
|
|
31
32
|
}
|
|
32
|
-
],
|
|
33
|
+
], p = {
|
|
33
34
|
completedStage: "Stage Complete",
|
|
34
35
|
completedStep: "Completed",
|
|
35
36
|
currentStage: "Current Stage:",
|
|
36
37
|
disabledStep: "Disabled",
|
|
37
38
|
errorStep: "Error",
|
|
38
39
|
step: "Step"
|
|
39
|
-
},
|
|
40
|
-
function
|
|
40
|
+
}, m = { stageNameBefore: "Stage: " };
|
|
41
|
+
function h(e) {
|
|
41
42
|
return e ? Array.isArray(e) && e.every((e) => e.label !== void 0) : !1;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return !e || !t ? !1 : !!
|
|
44
|
+
function g(e, t) {
|
|
45
|
+
return !e || !t ? !1 : !!d(Array.isArray(t) ? t : [t], (t) => t === e ? !0 : t.id !== void 0 && e.id !== void 0 ? t.id === e.id : JSON.stringify(t) === JSON.stringify(e));
|
|
45
46
|
}
|
|
46
|
-
var
|
|
47
|
-
let
|
|
48
|
-
...
|
|
49
|
-
...
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
disabledSteps:
|
|
54
|
-
errorSteps:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
var _ = ({ assistiveText: d, className: _, completedSteps: v = [], disabledSteps: y, errorSteps: b, id: x, labels: S, orientation: C = "horizontal", onStepClick: w = () => {}, onStepFocus: T = () => {}, selectedStep: E, steps: D, tooltipIsOpenSteps: O, tooltipPosition: k, type: A = "base", variant: j = "base" }) => {
|
|
48
|
+
let M = c(), N = x || M, P = {
|
|
49
|
+
...p,
|
|
50
|
+
...d
|
|
51
|
+
}, F = h(D) ? D : f, I = !!y?.length, L = !!b?.length, R = !!O?.length, z = !!D?.some((e) => e?.onRenderSetupAssistantAction !== void 0);
|
|
52
|
+
s(() => {
|
|
53
|
+
o(e, {
|
|
54
|
+
disabledSteps: I,
|
|
55
|
+
errorSteps: L,
|
|
56
|
+
hasDeprecatedSetupAssistantAction: z,
|
|
57
|
+
orientation: C,
|
|
58
|
+
tooltipIsOpenSteps: R,
|
|
59
|
+
tooltipPosition: k,
|
|
60
|
+
type: A,
|
|
61
|
+
variant: j
|
|
62
|
+
}, t);
|
|
61
63
|
}, [
|
|
62
|
-
F,
|
|
63
64
|
I,
|
|
64
65
|
L,
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
z,
|
|
67
|
+
R,
|
|
68
|
+
C,
|
|
67
69
|
k,
|
|
68
|
-
A
|
|
70
|
+
A,
|
|
71
|
+
j
|
|
69
72
|
]);
|
|
70
|
-
let
|
|
73
|
+
let B = l(() => {
|
|
71
74
|
let e = 0;
|
|
72
|
-
for (let t = 0; t <
|
|
75
|
+
for (let t = 0; t < F.length; t += 1) if (g(F[t], E)) {
|
|
73
76
|
e = t;
|
|
74
77
|
break;
|
|
75
78
|
}
|
|
76
79
|
return e;
|
|
77
|
-
}, [
|
|
78
|
-
if (
|
|
79
|
-
assistiveText:
|
|
80
|
-
className:
|
|
81
|
-
selectedIndex:
|
|
82
|
-
id:
|
|
80
|
+
}, [F, E]);
|
|
81
|
+
if (A === "path") return /* @__PURE__ */ u(a, {
|
|
82
|
+
assistiveText: P,
|
|
83
|
+
className: _,
|
|
84
|
+
selectedIndex: B,
|
|
85
|
+
id: N,
|
|
83
86
|
labels: {
|
|
84
|
-
...
|
|
85
|
-
...
|
|
87
|
+
...m,
|
|
88
|
+
...S
|
|
86
89
|
},
|
|
87
|
-
onStepClick:
|
|
88
|
-
onStepFocus:
|
|
89
|
-
steps:
|
|
90
|
-
isCompleted:
|
|
91
|
-
isSelected:
|
|
90
|
+
onStepClick: w,
|
|
91
|
+
onStepFocus: T,
|
|
92
|
+
steps: F.map((e) => ({
|
|
93
|
+
isCompleted: g(e, v),
|
|
94
|
+
isSelected: g(e, E),
|
|
92
95
|
step: e
|
|
93
96
|
}))
|
|
94
97
|
});
|
|
95
|
-
let
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
assistiveText:
|
|
98
|
-
id:
|
|
99
|
-
orientation:
|
|
100
|
-
value:
|
|
101
|
-
variant:
|
|
102
|
-
className:
|
|
103
|
-
children:
|
|
104
|
-
assistiveText:
|
|
105
|
-
id:
|
|
98
|
+
let V = y ?? [], H = b ?? [], U = B === 0 ? "0" : `${100 * (B / (F.length - 1))}`, W = j === "setup-assistant" ? "vertical" : C, G = k || (j === "modal" ? "absolute" : "overflowBoundaryElement"), K = W === "vertical" ? i : n;
|
|
99
|
+
return /* @__PURE__ */ u(r, {
|
|
100
|
+
assistiveText: P,
|
|
101
|
+
id: N,
|
|
102
|
+
orientation: W,
|
|
103
|
+
value: U,
|
|
104
|
+
variant: j,
|
|
105
|
+
className: _,
|
|
106
|
+
children: F.map((e, t) => /* @__PURE__ */ u(K, {
|
|
107
|
+
assistiveText: P,
|
|
108
|
+
id: N,
|
|
106
109
|
index: t,
|
|
107
|
-
isSelected:
|
|
108
|
-
isDisabled:
|
|
109
|
-
isError:
|
|
110
|
-
isCompleted:
|
|
111
|
-
onClick:
|
|
112
|
-
onFocus:
|
|
110
|
+
isSelected: g(e, E),
|
|
111
|
+
isDisabled: g(e, V),
|
|
112
|
+
isError: g(e, H),
|
|
113
|
+
isCompleted: g(e, v),
|
|
114
|
+
onClick: w,
|
|
115
|
+
onFocus: T,
|
|
113
116
|
step: e,
|
|
114
|
-
tooltipIsOpen:
|
|
115
|
-
tooltipPosition:
|
|
116
|
-
variant:
|
|
117
|
-
}, `${
|
|
117
|
+
tooltipIsOpen: g(e, O),
|
|
118
|
+
tooltipPosition: G,
|
|
119
|
+
variant: j
|
|
120
|
+
}, `${N}-${e.id}`))
|
|
118
121
|
});
|
|
119
122
|
};
|
|
120
|
-
|
|
123
|
+
_.displayName = e;
|
|
121
124
|
//#endregion
|
|
122
|
-
export {
|
|
125
|
+
export { _ as default };
|
|
123
126
|
|
|
124
127
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/progress-indicator/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, { useEffect, useId, useMemo } from 'react';\nimport find from 'lodash.find';\nimport { PROGRESS_INDICATOR } from '../../utilities/constants';\n\n// Child components\nimport Step from './private/step';\nimport Progress from './private/progress';\nimport StepVertical from './private/step-vertical';\nimport Path from './private/path';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\n\n/**\n * Progress indicator orientation\n */\nexport type ProgressIndicatorOrientation = 'horizontal' | 'vertical';\n\n/**\n * Progress indicator type\n */\nexport type ProgressIndicatorType = 'base' | 'path';\n\n/**\n * Progress indicator variant\n */\nexport type ProgressIndicatorVariant =\n\t'base' | 'modal' | 'setup-assistant' | 'shade';\n\n/**\n * Tooltip position\n */\nexport type TooltipPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\n/**\n * Step object structure\n */\nexport interface ProgressStep {\n\t/** Unique identifier */\n\tid: string | number;\n\t/** Tooltip label */\n\tlabel: string;\n\t/** Optional assistive text override */\n\tassistiveText?: string;\n}\n\n/**\n * Assistive text for ProgressIndicator\n */\nexport interface ProgressIndicatorAssistiveText {\n\t/** `type=\"path\"` only: read before a completed stage's name. Defaults to `Stage Complete` */\n\tcompletedStage?: string;\n\t/** Label for completed steps */\n\tcompletedStep?: string;\n\t/** `type=\"path\"` only: read before the current stage's name. Defaults to `Current Stage:` */\n\tcurrentStage?: string;\n\t/** Label for disabled steps */\n\tdisabledStep?: string;\n\t/** Label for error steps */\n\terrorStep?: string;\n\t/** Label for progress percentage */\n\tpercentage?: string;\n\t/** Label prefix for steps */\n\tstep?: string;\n}\n\n/**\n * Text labels for ProgressIndicator\n */\nexport interface ProgressIndicatorLabels {\n\t/** `type=\"path\"` only: text before the current stage's name, which shows when the path collapses on narrow screens. Include any spacing between it and the name. Defaults to `Stage: ` */\n\tstageNameBefore?: React.ReactNode;\n\t/** `type=\"path\"` only: text after the current stage's name. Include any spacing between it and the name. */\n\tstageNameAfter?: React.ReactNode;\n}\n\n/**\n * Step event data\n */\nexport interface StepEventData {\n\tisCompleted: boolean;\n\tisDisabled: boolean;\n\tisError: boolean;\n\tisSelected: boolean;\n\tstep: ProgressStep;\n}\n\n/**\n * Props for the ProgressIndicator component\n */\nexport interface ProgressIndicatorProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ProgressIndicatorAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Array of completed step objects */\n\tcompletedSteps?: ProgressStep[];\n\t/** Array of disabled step objects. `type=\"base\"` only. */\n\tdisabledSteps?: ProgressStep[];\n\t/** Array of error step objects. `type=\"base\"` only. */\n\terrorSteps?: ProgressStep[];\n\t/** HTML id attribute */\n\tid?: string;\n\t/** **Text labels for internationalization** */\n\tlabels?: ProgressIndicatorLabels;\n\t/** Orientation (horizontal or vertical). `type=\"base\"` only. */\n\torientation?: ProgressIndicatorOrientation;\n\t/** Click handler for steps */\n\tonStepClick?: (\n\t\tevent: React.MouseEvent | React.KeyboardEvent,\n\t\tdata: StepEventData\n\t) => void;\n\t/** Focus handler for steps */\n\tonStepFocus?: (event: React.FocusEvent, data: StepEventData) => void;\n\t/** Currently selected step */\n\tselectedStep: ProgressStep;\n\t/** Array of all steps */\n\tsteps: ProgressStep[];\n\t/** Steps with open tooltips (for development). `type=\"base\"` only. */\n\ttooltipIsOpenSteps?: ProgressStep[];\n\t/** Tooltip position strategy. `type=\"base\"` only. */\n\ttooltipPosition?: TooltipPosition;\n\t/**\n\t * Visual pattern, like `type` on `lightning-progress-indicator`:\n\t * * `base` - (default) Step markers on a progress bar, with each step's label in a tooltip.\n\t * * `path` - SLDS Path, with each step's label shown in its stage. Use the arrow keys to move between stages. Completion comes from `completedSteps`; error, disabled, and tooltip props aren't supported.\n\t */\n\ttype?: ProgressIndicatorType;\n\t/**\n\t * Component variant. `type=\"base\"` only.\n\t * * `base` - (default) For white backgrounds.\n\t * * `shade` - For shaded backgrounds. Adds a light gray border to the step markers, like `variant=\"shade\"` on `lightning-progress-indicator`.\n\t * * `modal` - The `shade` styling, with tooltips positioned for a modal footer.\n\t * * `setup-assistant` - Vertical steps with a bordered list, for Setup Assistant.\n\t */\n\tvariant?: ProgressIndicatorVariant;\n}\n\nconst defaultSteps: ProgressStep[] = [\n\t{ id: 0, label: 'tooltip label #1' },\n\t{ id: 1, label: 'tooltip label #2' },\n\t{ id: 2, label: 'tooltip label #3' },\n\t{ id: 3, label: 'tooltip label #4' },\n\t{ id: 4, label: 'tooltip label #5' },\n];\n\nconst defaultAssistiveText: ProgressIndicatorAssistiveText = {\n\tcompletedStage: 'Stage Complete',\n\tcompletedStep: 'Completed',\n\tcurrentStage: 'Current Stage:',\n\tdisabledStep: 'Disabled',\n\terrorStep: 'Error',\n\tstep: 'Step',\n};\n\nconst defaultLabels: ProgressIndicatorLabels = {\n\tstageNameBefore: 'Stage: ',\n};\n\n/**\n * Check if steps prop is valid\n */\nfunction checkSteps(steps?: ProgressStep[]): boolean {\n\tif (!steps) return false;\n\treturn (\n\t\tArray.isArray(steps) && steps.every((step) => step.label !== undefined)\n\t);\n}\n\n/**\n * Check if an item exists in an array of items\n */\nfunction findStep(\n\titem: ProgressStep | undefined,\n\titems: ProgressStep | ProgressStep[] | undefined\n): boolean {\n\tif (!item || !items) return false;\n\n\tconst itemsArray = !Array.isArray(items) ? [items] : items;\n\n\treturn Boolean(\n\t\tfind(itemsArray, (arrayItem) => {\n\t\t\tif (arrayItem === item) return true;\n\t\t\tif (arrayItem.id !== undefined && item.id !== undefined) {\n\t\t\t\treturn arrayItem.id === item.id;\n\t\t\t}\n\t\t\treturn JSON.stringify(arrayItem) === JSON.stringify(item);\n\t\t})\n\t);\n}\n\n/**\n * Progress Indicator communicates to the user the progress of a particular process.\n */\nconst ProgressIndicator = ({\n\tassistiveText: propAssistiveText,\n\tclassName,\n\tcompletedSteps = [],\n\tdisabledSteps: propDisabledSteps,\n\terrorSteps: propErrorSteps,\n\tid: propId,\n\tlabels: propLabels,\n\torientation: propOrientation = 'horizontal',\n\tonStepClick = () => {},\n\tonStepFocus = () => {},\n\tselectedStep,\n\tsteps: propSteps,\n\ttooltipIsOpenSteps,\n\ttooltipPosition: propTooltipPosition,\n\ttype = 'base',\n\tvariant = 'base',\n}: ProgressIndicatorProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst allSteps = checkSteps(propSteps) ? propSteps : defaultSteps;\n\n\t// Check props in development. Pass whether each step array has items, not the array itself, so that\n\t// an empty array doesn't count as passed and a new array on each render doesn't re-run the check.\n\tconst hasDisabledSteps = Boolean(propDisabledSteps?.length);\n\tconst hasErrorSteps = Boolean(propErrorSteps?.length);\n\tconst hasTooltipIsOpenSteps = Boolean(tooltipIsOpenSteps?.length);\n\tuseEffect(() => {\n\t\tcheckProps(PROGRESS_INDICATOR, {\n\t\t\tdisabledSteps: hasDisabledSteps,\n\t\t\terrorSteps: hasErrorSteps,\n\t\t\torientation: propOrientation,\n\t\t\ttooltipIsOpenSteps: hasTooltipIsOpenSteps,\n\t\t\ttooltipPosition: propTooltipPosition,\n\t\t\ttype,\n\t\t\tvariant,\n\t\t});\n\t}, [\n\t\thasDisabledSteps,\n\t\thasErrorSteps,\n\t\thasTooltipIsOpenSteps,\n\t\tpropOrientation,\n\t\tpropTooltipPosition,\n\t\ttype,\n\t\tvariant,\n\t]);\n\n\t// Find current step index\n\tconst currentStepIndex = useMemo(() => {\n\t\tlet index = 0;\n\t\tfor (let i = 0; i < allSteps.length; i += 1) {\n\t\t\tif (findStep(allSteps[i], selectedStep)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}, [allSteps, selectedStep]);\n\n\tif (type === 'path') {\n\t\treturn (\n\t\t\t<Path\n\t\t\t\tassistiveText={assistiveText}\n\t\t\t\tclassName={className}\n\t\t\t\tselectedIndex={currentStepIndex}\n\t\t\t\tid={id}\n\t\t\t\tlabels={{ ...defaultLabels, ...propLabels }}\n\t\t\t\tonStepClick={onStepClick}\n\t\t\t\tonStepFocus={onStepFocus}\n\t\t\t\tsteps={allSteps.map((step) => ({\n\t\t\t\t\tisCompleted: findStep(step, completedSteps),\n\t\t\t\t\tisSelected: findStep(step, selectedStep),\n\t\t\t\t\tstep,\n\t\t\t\t}))}\n\t\t\t/>\n\t\t);\n\t}\n\n\tconst disabledSteps = propDisabledSteps ?? [];\n\tconst errorSteps = propErrorSteps ?? [];\n\n\t// Calculate progress value\n\tconst progressValue =\n\t\tcurrentStepIndex === 0\n\t\t\t? '0'\n\t\t\t: `${100 * (currentStepIndex / (allSteps.length - 1))}`;\n\n\t// Determine orientation\n\tconst orientation =\n\t\tvariant === 'setup-assistant' ? 'vertical' : propOrientation;\n\n\t// Determine tooltip position\n\tconst tooltipPosition =\n\t\tpropTooltipPosition ||\n\t\t(variant === 'modal' ? 'absolute' : 'overflowBoundaryElement');\n\n\t// Select step component based on orientation\n\tconst StepComponent = (\n\t\torientation === 'vertical' ? StepVertical : Step\n\t) as React.ComponentType<\n\t\tReact.ComponentProps<typeof Step> &\n\t\t\tReact.ComponentProps<typeof StepVertical>\n\t>;\n\n\treturn (\n\t\t<Progress\n\t\t\tassistiveText={assistiveText}\n\t\t\tid={id}\n\t\t\torientation={orientation}\n\t\t\tvalue={progressValue}\n\t\t\tvariant={variant}\n\t\t\tclassName={className}\n\t\t>\n\t\t\t{allSteps.map((step, i) => (\n\t\t\t\t<StepComponent\n\t\t\t\t\tkey={`${id}-${step.id}`}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\tid={id}\n\t\t\t\t\tindex={i}\n\t\t\t\t\tisSelected={findStep(step, selectedStep)}\n\t\t\t\t\tisDisabled={findStep(step, disabledSteps)}\n\t\t\t\t\tisError={findStep(step, errorSteps)}\n\t\t\t\t\tisCompleted={findStep(step, completedSteps)}\n\t\t\t\t\tonClick={onStepClick}\n\t\t\t\t\tonFocus={onStepFocus}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttooltipIsOpen={findStep(step, tooltipIsOpenSteps)}\n\t\t\t\t\ttooltipPosition={tooltipPosition}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t/>\n\t\t\t))}\n\t\t</Progress>\n\t);\n};\n\nProgressIndicator.displayName = PROGRESS_INDICATOR;\n\nexport default ProgressIndicator;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/progress-indicator/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, { useEffect, useId, useMemo, type ReactNode } from 'react';\nimport find from 'lodash.find';\nimport { PROGRESS_INDICATOR } from '../../utilities/constants';\nimport componentDoc from './component.json';\n\n// Child components\nimport Step from './private/step';\nimport Progress from './private/progress';\nimport StepVertical from './private/step-vertical';\nimport Path from './private/path';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\n\n/**\n * Progress indicator orientation\n */\nexport type ProgressIndicatorOrientation = 'horizontal' | 'vertical';\n\n/**\n * Progress indicator type\n */\nexport type ProgressIndicatorType = 'base' | 'path';\n\n/**\n * Progress indicator variant\n */\nexport type ProgressIndicatorVariant =\n\t'base' | 'modal' | 'setup-assistant' | 'shade';\n\n/**\n * Tooltip position\n */\nexport type TooltipPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\n/**\n * Step object structure\n */\nexport interface ProgressStep {\n\t/** Unique identifier */\n\tid: string | number;\n\t/** Tooltip label */\n\tlabel: string;\n\t/** Optional assistive text override */\n\tassistiveText?: string;\n\t/** Action shown next to the step label. Only used by the `setup-assistant` variant. */\n\tsetupAssistantAction?: ReactNode;\n\t/** Estimated time shown next to the step label. Only used by the `setup-assistant` variant. */\n\tsetupAssistantEstimatedTime?: ReactNode;\n\t/** @deprecated Use `setupAssistantAction` instead. */\n\tonRenderSetupAssistantAction?: ReactNode;\n}\n\n/**\n * Assistive text for ProgressIndicator\n */\nexport interface ProgressIndicatorAssistiveText {\n\t/** `type=\"path\"` only: read before a completed stage's name. Defaults to `Stage Complete` */\n\tcompletedStage?: string;\n\t/** Label for completed steps */\n\tcompletedStep?: string;\n\t/** `type=\"path\"` only: read before the current stage's name. Defaults to `Current Stage:` */\n\tcurrentStage?: string;\n\t/** Label for disabled steps */\n\tdisabledStep?: string;\n\t/** Label for error steps */\n\terrorStep?: string;\n\t/** Label for progress percentage */\n\tpercentage?: string;\n\t/** Label prefix for steps */\n\tstep?: string;\n}\n\n/**\n * Text labels for ProgressIndicator\n */\nexport interface ProgressIndicatorLabels {\n\t/** `type=\"path\"` only: text before the current stage's name, which shows when the path collapses on narrow screens. Include any spacing between it and the name. Defaults to `Stage: ` */\n\tstageNameBefore?: React.ReactNode;\n\t/** `type=\"path\"` only: text after the current stage's name. Include any spacing between it and the name. */\n\tstageNameAfter?: React.ReactNode;\n}\n\n/**\n * Step event data\n */\nexport interface StepEventData {\n\tisCompleted: boolean;\n\tisDisabled: boolean;\n\tisError: boolean;\n\tisSelected: boolean;\n\tstep: ProgressStep;\n}\n\n/**\n * Props for the ProgressIndicator component\n */\nexport interface ProgressIndicatorProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ProgressIndicatorAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Array of completed step objects */\n\tcompletedSteps?: ProgressStep[];\n\t/** Array of disabled step objects. `type=\"base\"` only. */\n\tdisabledSteps?: ProgressStep[];\n\t/** Array of error step objects. `type=\"base\"` only. */\n\terrorSteps?: ProgressStep[];\n\t/** HTML id attribute */\n\tid?: string;\n\t/** **Text labels for internationalization** */\n\tlabels?: ProgressIndicatorLabels;\n\t/** Orientation (horizontal or vertical). `type=\"base\"` only. */\n\torientation?: ProgressIndicatorOrientation;\n\t/** Click handler for steps */\n\tonStepClick?: (\n\t\tevent: React.MouseEvent | React.KeyboardEvent,\n\t\tdata: StepEventData\n\t) => void;\n\t/** Focus handler for steps */\n\tonStepFocus?: (event: React.FocusEvent, data: StepEventData) => void;\n\t/** Currently selected step */\n\tselectedStep: ProgressStep;\n\t/** Array of all steps */\n\tsteps: ProgressStep[];\n\t/** Steps with open tooltips (for development). `type=\"base\"` only. */\n\ttooltipIsOpenSteps?: ProgressStep[];\n\t/** Tooltip position strategy. `type=\"base\"` only. */\n\ttooltipPosition?: TooltipPosition;\n\t/**\n\t * Visual pattern, like `type` on `lightning-progress-indicator`:\n\t * * `base` - (default) Step markers on a progress bar, with each step's label in a tooltip.\n\t * * `path` - SLDS Path, with each step's label shown in its stage. Use the arrow keys to move between stages. Completion comes from `completedSteps`; error, disabled, and tooltip props aren't supported.\n\t */\n\ttype?: ProgressIndicatorType;\n\t/**\n\t * Component variant. `type=\"base\"` only.\n\t * * `base` - (default) For white backgrounds.\n\t * * `shade` - For shaded backgrounds. Adds a light gray border to the step markers, like `variant=\"shade\"` on `lightning-progress-indicator`.\n\t * * `modal` - The `shade` styling, with tooltips positioned for a modal footer.\n\t * * `setup-assistant` - Vertical steps with a bordered list, for Setup Assistant.\n\t */\n\tvariant?: ProgressIndicatorVariant;\n}\n\nconst defaultSteps: ProgressStep[] = [\n\t{ id: 0, label: 'tooltip label #1' },\n\t{ id: 1, label: 'tooltip label #2' },\n\t{ id: 2, label: 'tooltip label #3' },\n\t{ id: 3, label: 'tooltip label #4' },\n\t{ id: 4, label: 'tooltip label #5' },\n];\n\nconst defaultAssistiveText: ProgressIndicatorAssistiveText = {\n\tcompletedStage: 'Stage Complete',\n\tcompletedStep: 'Completed',\n\tcurrentStage: 'Current Stage:',\n\tdisabledStep: 'Disabled',\n\terrorStep: 'Error',\n\tstep: 'Step',\n};\n\nconst defaultLabels: ProgressIndicatorLabels = {\n\tstageNameBefore: 'Stage: ',\n};\n\n/**\n * Check if steps prop is valid\n */\nfunction checkSteps(steps?: ProgressStep[]): boolean {\n\tif (!steps) return false;\n\treturn (\n\t\tArray.isArray(steps) && steps.every((step) => step.label !== undefined)\n\t);\n}\n\n/**\n * Check if an item exists in an array of items\n */\nfunction findStep(\n\titem: ProgressStep | undefined,\n\titems: ProgressStep | ProgressStep[] | undefined\n): boolean {\n\tif (!item || !items) return false;\n\n\tconst itemsArray = !Array.isArray(items) ? [items] : items;\n\n\treturn Boolean(\n\t\tfind(itemsArray, (arrayItem) => {\n\t\t\tif (arrayItem === item) return true;\n\t\t\tif (arrayItem.id !== undefined && item.id !== undefined) {\n\t\t\t\treturn arrayItem.id === item.id;\n\t\t\t}\n\t\t\treturn JSON.stringify(arrayItem) === JSON.stringify(item);\n\t\t})\n\t);\n}\n\n/**\n * Progress Indicator communicates to the user the progress of a particular process.\n */\nconst ProgressIndicator = ({\n\tassistiveText: propAssistiveText,\n\tclassName,\n\tcompletedSteps = [],\n\tdisabledSteps: propDisabledSteps,\n\terrorSteps: propErrorSteps,\n\tid: propId,\n\tlabels: propLabels,\n\torientation: propOrientation = 'horizontal',\n\tonStepClick = () => {},\n\tonStepFocus = () => {},\n\tselectedStep,\n\tsteps: propSteps,\n\ttooltipIsOpenSteps,\n\ttooltipPosition: propTooltipPosition,\n\ttype = 'base',\n\tvariant = 'base',\n}: ProgressIndicatorProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\tconst allSteps = checkSteps(propSteps) ? propSteps : defaultSteps;\n\n\t// Check props in development. Pass whether each step array has items, not the array itself, so that\n\t// an empty array doesn't count as passed and a new array on each render doesn't re-run the check.\n\tconst hasDisabledSteps = Boolean(propDisabledSteps?.length);\n\tconst hasErrorSteps = Boolean(propErrorSteps?.length);\n\tconst hasTooltipIsOpenSteps = Boolean(tooltipIsOpenSteps?.length);\n\tconst hasDeprecatedSetupAssistantAction = Boolean(\n\t\tpropSteps?.some((step) => step?.onRenderSetupAssistantAction !== undefined)\n\t);\n\tuseEffect(() => {\n\t\tcheckProps(\n\t\t\tPROGRESS_INDICATOR,\n\t\t\t{\n\t\t\t\tdisabledSteps: hasDisabledSteps,\n\t\t\t\terrorSteps: hasErrorSteps,\n\t\t\t\thasDeprecatedSetupAssistantAction,\n\t\t\t\torientation: propOrientation,\n\t\t\t\ttooltipIsOpenSteps: hasTooltipIsOpenSteps,\n\t\t\t\ttooltipPosition: propTooltipPosition,\n\t\t\t\ttype,\n\t\t\t\tvariant,\n\t\t\t},\n\t\t\tcomponentDoc\n\t\t);\n\t}, [\n\t\thasDisabledSteps,\n\t\thasErrorSteps,\n\t\thasDeprecatedSetupAssistantAction,\n\t\thasTooltipIsOpenSteps,\n\t\tpropOrientation,\n\t\tpropTooltipPosition,\n\t\ttype,\n\t\tvariant,\n\t]);\n\n\t// Find current step index\n\tconst currentStepIndex = useMemo(() => {\n\t\tlet index = 0;\n\t\tfor (let i = 0; i < allSteps.length; i += 1) {\n\t\t\tif (findStep(allSteps[i], selectedStep)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}, [allSteps, selectedStep]);\n\n\tif (type === 'path') {\n\t\treturn (\n\t\t\t<Path\n\t\t\t\tassistiveText={assistiveText}\n\t\t\t\tclassName={className}\n\t\t\t\tselectedIndex={currentStepIndex}\n\t\t\t\tid={id}\n\t\t\t\tlabels={{ ...defaultLabels, ...propLabels }}\n\t\t\t\tonStepClick={onStepClick}\n\t\t\t\tonStepFocus={onStepFocus}\n\t\t\t\tsteps={allSteps.map((step) => ({\n\t\t\t\t\tisCompleted: findStep(step, completedSteps),\n\t\t\t\t\tisSelected: findStep(step, selectedStep),\n\t\t\t\t\tstep,\n\t\t\t\t}))}\n\t\t\t/>\n\t\t);\n\t}\n\n\tconst disabledSteps = propDisabledSteps ?? [];\n\tconst errorSteps = propErrorSteps ?? [];\n\n\t// Calculate progress value\n\tconst progressValue =\n\t\tcurrentStepIndex === 0\n\t\t\t? '0'\n\t\t\t: `${100 * (currentStepIndex / (allSteps.length - 1))}`;\n\n\t// Determine orientation\n\tconst orientation =\n\t\tvariant === 'setup-assistant' ? 'vertical' : propOrientation;\n\n\t// Determine tooltip position\n\tconst tooltipPosition =\n\t\tpropTooltipPosition ||\n\t\t(variant === 'modal' ? 'absolute' : 'overflowBoundaryElement');\n\n\t// Select step component based on orientation\n\tconst StepComponent = (\n\t\torientation === 'vertical' ? StepVertical : Step\n\t) as React.ComponentType<\n\t\tReact.ComponentProps<typeof Step> &\n\t\t\tReact.ComponentProps<typeof StepVertical>\n\t>;\n\n\treturn (\n\t\t<Progress\n\t\t\tassistiveText={assistiveText}\n\t\t\tid={id}\n\t\t\torientation={orientation}\n\t\t\tvalue={progressValue}\n\t\t\tvariant={variant}\n\t\t\tclassName={className}\n\t\t>\n\t\t\t{allSteps.map((step, i) => (\n\t\t\t\t<StepComponent\n\t\t\t\t\tkey={`${id}-${step.id}`}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\tid={id}\n\t\t\t\t\tindex={i}\n\t\t\t\t\tisSelected={findStep(step, selectedStep)}\n\t\t\t\t\tisDisabled={findStep(step, disabledSteps)}\n\t\t\t\t\tisError={findStep(step, errorSteps)}\n\t\t\t\t\tisCompleted={findStep(step, completedSteps)}\n\t\t\t\t\tonClick={onStepClick}\n\t\t\t\t\tonFocus={onStepFocus}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttooltipIsOpen={findStep(step, tooltipIsOpenSteps)}\n\t\t\t\t\ttooltipPosition={tooltipPosition}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t/>\n\t\t\t))}\n\t\t</Progress>\n\t);\n};\n\nProgressIndicator.displayName = PROGRESS_INDICATOR;\n\nexport default ProgressIndicator;\n"],"mappings":"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"}
|
|
@@ -48,27 +48,30 @@ var o = e, s = class extends n.Component {
|
|
|
48
48
|
})]
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
renderStepContent = () =>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
className: "slds-
|
|
51
|
+
renderStepContent = () => {
|
|
52
|
+
let e = this.props.step.setupAssistantAction ?? this.props.step.onRenderSetupAssistantAction;
|
|
53
|
+
return e || this.props.step.setupAssistantEstimatedTime ? /* @__PURE__ */ a("div", {
|
|
54
|
+
id: `progress-indicator-vertical-label-${this.props.step.id || this.props.index}`,
|
|
55
|
+
className: "slds-progress__item_content slds-grid slds-grid_align-spread",
|
|
56
|
+
children: [/* @__PURE__ */ i("div", {
|
|
57
|
+
className: "slds-size_3-of-4",
|
|
58
|
+
children: this.props.step.label
|
|
59
|
+
}), /* @__PURE__ */ i("div", {
|
|
60
|
+
className: "slds-grid slds-grid_align-end slds-size_1-of-4",
|
|
61
|
+
children: /* @__PURE__ */ a("div", {
|
|
62
|
+
className: "slds-media__figure slds-media__figure_reverse",
|
|
63
|
+
children: [e, this.props.step.setupAssistantEstimatedTime && /* @__PURE__ */ i("p", {
|
|
64
|
+
className: "slds-text-align_right slds-text-color_weak slds-p-top_medium",
|
|
65
|
+
children: this.props.step.setupAssistantEstimatedTime
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
}) : /* @__PURE__ */ i("div", {
|
|
70
|
+
id: `progress-indicator-vertical-label-${this.props.step.id || this.props.index}`,
|
|
71
|
+
className: "slds-progress__item_content slds-grid slds-grid_align-spread",
|
|
56
72
|
children: this.props.step.label
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
children: /* @__PURE__ */ a("div", {
|
|
60
|
-
className: "slds-media__figure slds-media__figure_reverse",
|
|
61
|
-
children: [this.props.step.onRenderSetupAssistantAction, this.props.step.setupAssistantEstimatedTime && /* @__PURE__ */ i("p", {
|
|
62
|
-
className: "slds-text-align_right slds-text-color_weak slds-p-top_medium",
|
|
63
|
-
children: this.props.step.setupAssistantEstimatedTime
|
|
64
|
-
})]
|
|
65
|
-
})
|
|
66
|
-
})]
|
|
67
|
-
}) : /* @__PURE__ */ i("div", {
|
|
68
|
-
id: `progress-indicator-vertical-label-${this.props.step.id || this.props.index}`,
|
|
69
|
-
className: "slds-progress__item_content slds-grid slds-grid_align-spread",
|
|
70
|
-
children: this.props.step.label
|
|
71
|
-
});
|
|
73
|
+
});
|
|
74
|
+
};
|
|
72
75
|
render() {
|
|
73
76
|
let e = this.props.isCompleted || this.props.isError, t = "";
|
|
74
77
|
return this.props.isError ? t = this.props.assistiveText?.errorStep || "" : this.props.isCompleted ? t = this.props.assistiveText?.completedStep || "" : this.props.isDisabled && (t = this.props.assistiveText?.disabledStep || ""), /* @__PURE__ */ a("li", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-vertical.js","names":[],"sources":["../../../../../components/progress-indicator/private/step-vertical.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 */\nimport React
|
|
1
|
+
{"version":3,"file":"step-vertical.js","names":[],"sources":["../../../../../components/progress-indicator/private/step-vertical.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 */\nimport React from 'react';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// This project uses `classnames`, 'a simple javascript utility for conditionally\n// joining classNames together.'\nimport classNames from 'classnames';\n\n// Child component\nimport { PROGRESS_INDICATOR_STEP_VERTICAL } from '../../../utilities/constants';\nimport Icon from '../../icon';\nimport {\n\ttype ProgressStep,\n\ttype ProgressIndicatorAssistiveText,\n\ttype ProgressIndicatorVariant,\n\ttype StepEventData,\n} from '../index';\n\n// ### Display Name\nconst displayName = PROGRESS_INDICATOR_STEP_VERTICAL;\n\n/**\n * Setup-assistant steps carry extra optional fields (`setupAssistantAction`,\n * `setupAssistantEstimatedTime`) consumed only by the vertical layout.\n */\nexport type VerticalProgressStep = ProgressStep;\n\nexport interface StepVerticalProps {\n\t/**\n\t * Assistive text for accessibility.\n\t */\n\tassistiveText?: ProgressIndicatorAssistiveText;\n\t/**\n\t * Index of step. Used for id's if no step ID exists\n\t */\n\tindex: number;\n\t/**\n\t * Determines if the step has been completed\n\t */\n\tisCompleted?: boolean;\n\t/**\n\t * Determines if the step has been disabled\n\t */\n\tisDisabled?: boolean;\n\t/**\n\t * Determines if the step contains an error\n\t */\n\tisError?: boolean;\n\t/**\n\t * Determines if the step is currently selected (active)\n\t */\n\tisSelected?: boolean;\n\t/**\n\t * Triggered when click on individual steps.\n\t */\n\tonClick?: (\n\t\tevent: React.MouseEvent | React.KeyboardEvent,\n\t\tdata: StepEventData\n\t) => void;\n\t/**\n\t * Step object. This is passed into event callbacks.\n\t */\n\tstep: VerticalProgressStep;\n\t/**\n\t * The variant of the parent progress indicator\n\t */\n\tvariant?: ProgressIndicatorVariant;\n}\n\n/**\n * StepVertical renders a step icon and its step label if applied\n */\nclass StepVertical extends React.Component<StepVerticalProps> {\n\tstatic displayName = displayName;\n\n\t/**\n\t * stepIcon represents the icon used for each step.\n\t */\n\tstepIcon = (\n\t\trenderIcon: boolean,\n\t\tstatus: string,\n\t\tprops: StepVerticalProps\n\t) => {\n\t\tconst data: StepEventData = {\n\t\t\tisSelected: !!this.props.isSelected,\n\t\t\tisError: !!this.props.isError,\n\t\t\tisCompleted: !!this.props.isCompleted,\n\t\t\tisDisabled: !!this.props.isDisabled,\n\t\t\tstep: this.props.step,\n\t\t};\n\n\t\tconst icon = renderIcon ? (\n\t\t\t<Icon\n\t\t\t\tcategory=\"utility\"\n\t\t\t\tsize=\"x-small\"\n\t\t\t\tname={this.props.isError ? 'error' : 'success'}\n\t\t\t/>\n\t\t) : null;\n\n\t\tconst handleClick = (event: React.MouseEvent) =>\n\t\t\tthis.props.onClick?.(event, data);\n\n\t\treturn this.props.onClick ? (\n\t\t\t<button\n\t\t\t\tclassName={classNames('slds-button slds-progress__marker', {\n\t\t\t\t\t'slds-progress__marker_icon': renderIcon,\n\t\t\t\t\t'slds-progress__marker_icon-success':\n\t\t\t\t\t\tthis.props.variant === 'setup-assistant' &&\n\t\t\t\t\t\trenderIcon &&\n\t\t\t\t\t\t!this.props.isError,\n\t\t\t\t})}\n\t\t\t\ttype=\"button\"\n\t\t\t\tonClick={handleClick}\n\t\t\t>\n\t\t\t\t{icon}\n\t\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t\t{this.props.step.assistiveText || (\n\t\t\t\t\t\t<React.Fragment>\n\t\t\t\t\t\t\t{`${this.props.assistiveText?.step} ${this.props.index + 1}: `}\n\t\t\t\t\t\t\t{this.props.step.label}\n\t\t\t\t\t\t\t{status ? ` - ${status}` : ''}\n\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</button>\n\t\t) : (\n\t\t\t<span\n\t\t\t\tclassName={classNames('slds-progress__marker', {\n\t\t\t\t\t'slds-progress__marker_icon': renderIcon,\n\t\t\t\t\t'slds-progress__marker_icon-success':\n\t\t\t\t\t\tthis.props.variant === 'setup-assistant' &&\n\t\t\t\t\t\trenderIcon &&\n\t\t\t\t\t\t!this.props.isError,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{icon}\n\t\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t\t{this.props.step.assistiveText || (\n\t\t\t\t\t\t<React.Fragment>\n\t\t\t\t\t\t\t{`${props.assistiveText?.step} ${props.index + 1}: `}\n\t\t\t\t\t\t\t{props.step.label}\n\t\t\t\t\t\t\t{status ? ` - ${status}` : ''}\n\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</span>\n\t\t);\n\t};\n\n\trenderStepContent = () => {\n\t\tconst setupAssistantAction =\n\t\t\tthis.props.step.setupAssistantAction ??\n\t\t\tthis.props.step.onRenderSetupAssistantAction;\n\n\t\tif (setupAssistantAction || this.props.step.setupAssistantEstimatedTime) {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tid={`progress-indicator-vertical-label-${\n\t\t\t\t\t\tthis.props.step.id || this.props.index\n\t\t\t\t\t}`}\n\t\t\t\t\tclassName=\"slds-progress__item_content slds-grid slds-grid_align-spread\"\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-size_3-of-4\">{this.props.step.label}</div>\n\t\t\t\t\t<div className=\"slds-grid slds-grid_align-end slds-size_1-of-4\">\n\t\t\t\t\t\t<div className=\"slds-media__figure slds-media__figure_reverse\">\n\t\t\t\t\t\t\t{setupAssistantAction}\n\t\t\t\t\t\t\t{this.props.step.setupAssistantEstimatedTime && (\n\t\t\t\t\t\t\t\t<p className=\"slds-text-align_right slds-text-color_weak slds-p-top_medium\">\n\t\t\t\t\t\t\t\t\t{this.props.step.setupAssistantEstimatedTime}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={`progress-indicator-vertical-label-${\n\t\t\t\t\tthis.props.step.id || this.props.index\n\t\t\t\t}`}\n\t\t\t\tclassName=\"slds-progress__item_content slds-grid slds-grid_align-spread\"\n\t\t\t>\n\t\t\t\t{this.props.step.label}\n\t\t\t</div>\n\t\t);\n\t};\n\n\trender() {\n\t\tconst renderIcon = this.props.isCompleted || this.props.isError;\n\t\tlet status = '';\n\t\tif (this.props.isError) {\n\t\t\tstatus = this.props.assistiveText?.errorStep || '';\n\t\t} else if (this.props.isCompleted) {\n\t\t\tstatus = this.props.assistiveText?.completedStep || '';\n\t\t} else if (this.props.isDisabled) {\n\t\t\tstatus = this.props.assistiveText?.disabledStep || '';\n\t\t}\n\n\t\treturn (\n\t\t\t<li\n\t\t\t\tclassName={classNames('slds-progress__item', {\n\t\t\t\t\t'slds-is-completed': this.props.isCompleted,\n\t\t\t\t\t'slds-is-active': this.props.isSelected && !this.props.isError,\n\t\t\t\t\t'slds-has-error': this.props.isError,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.stepIcon(!!renderIcon, status, this.props)}\n\t\t\t\t{this.renderStepContent()}\n\t\t\t</li>\n\t\t);\n\t}\n}\n\nexport default StepVertical;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../../utilities/warning/sunset-property.js";
|
|
2
|
+
import e from "../../utilities/get-component-doc.js";
|
|
3
|
+
import t from "../../utilities/warning/deprecated-property.js";
|
|
4
|
+
process.env.NODE_ENV;
|
|
5
|
+
var n = function() {};
|
|
6
|
+
process.env.NODE_ENV !== "production" && (n = function(n, r, i) {
|
|
7
|
+
let a = e(i);
|
|
8
|
+
t(n, r.onRenderVisualPicker, "onRenderVisualPicker", "visualPickerFigure", a("visualPickerFigure")), t(n, r.onRenderVisualPickerSelected, "onRenderVisualPickerSelected", "visualPickerFigureSelected", a("visualPickerFigureSelected")), t(n, r.onRenderVisualPickerNotSelected, "onRenderVisualPickerNotSelected", "visualPickerFigureNotSelected", a("visualPickerFigureNotSelected"));
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as checkDeprecatedProps };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=check-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/radio/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/* eslint-disable max-len */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\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\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.label,\n\t\t\t'label',\n\t\t\t`Use \\`labels.label\\` instead.${createDocUrl('labels')}`\n\t\t);\n\t};\n}\n\n// Deprecated visual-picker render props. Exported separately so the component\n// can run these checks without enabling the pre-existing `checkProps` warnings.\nexport let checkDeprecatedProps = function checkDeprecatedPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckDeprecatedProps = function checkDeprecatedPropsFunction(\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.onRenderVisualPicker,\n\t\t\t'onRenderVisualPicker',\n\t\t\t'visualPickerFigure',\n\t\t\tcreateDocUrl('visualPickerFigure')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onRenderVisualPickerSelected,\n\t\t\t'onRenderVisualPickerSelected',\n\t\t\t'visualPickerFigureSelected',\n\t\t\tcreateDocUrl('visualPickerFigureSelected')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onRenderVisualPickerNotSelected,\n\t\t\t'onRenderVisualPickerNotSelected',\n\t\t\t'visualPickerFigureNotSelected',\n\t\t\tcreateDocUrl('visualPickerFigureNotSelected')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAWA,QAAA,IAAA;AAeA,IAAW,IAAuB,WAAwC,CAAC;AAE3E,QAAA,IAAA,aAA6B,iBAC5B,IAAuB,SACtB,GACA,GACA,GACC;CACD,IAAM,IAAe,EAAkB,CAAO;CAgB9C,AAdA,EACC,GACA,EAAM,sBACN,wBACA,sBACA,EAAa,oBAAoB,CAClC,GACA,EACC,GACA,EAAM,8BACN,gCACA,8BACA,EAAa,4BAA4B,CAC1C,GACA,EACC,GACA,EAAM,iCACN,mCACA,iCACA,EAAa,+BAA+B,CAC7C;AACD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region components/radio/component.json
|
|
2
|
+
var e = "radio", t = "prod", n = "Radio", r = {
|
|
3
|
+
component: e,
|
|
4
|
+
status: t,
|
|
5
|
+
"display-name": "Radios",
|
|
6
|
+
classKey: n,
|
|
7
|
+
"last-accessibility-review": {
|
|
8
|
+
"date-iso-8601": "2018/01/18",
|
|
9
|
+
"commit-sha": "ad6b6c6523ee21cada11be5f7ea4d99abc530726"
|
|
10
|
+
},
|
|
11
|
+
"site-stories": [{
|
|
12
|
+
heading: "Default",
|
|
13
|
+
path: "/__examples__/default.jsx"
|
|
14
|
+
}, {
|
|
15
|
+
heading: "Disabled",
|
|
16
|
+
path: "/__examples__/disabled.jsx"
|
|
17
|
+
}],
|
|
18
|
+
"SLDS-component-path": "/components/radio-group/",
|
|
19
|
+
"url-slug": "radios"
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as classKey, e as component, r as default, t as status };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","names":[],"sources":["../../../../components/radio/component.json"],"sourcesContent":["{\n\t\"component\": \"radio\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Radios\",\n\t\"classKey\": \"Radio\",\n\t\"last-accessibility-review\": {\n\t\t\"date-iso-8601\": \"2018/01/18\",\n\t\t\"commit-sha\": \"ad6b6c6523ee21cada11be5f7ea4d99abc530726\"\n\t},\n\t\"site-stories\": [\n\t\t{\n\t\t\t\"heading\": \"Default\",\n\t\t\t\"path\": \"/__examples__/default.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Disabled\",\n\t\t\t\"path\": \"/__examples__/disabled.jsx\"\n\t\t}\n\t],\n\t\"SLDS-component-path\": \"/components/radio-group/\",\n\t\"url-slug\": \"radios\"\n}\n"],"mappings":""}
|