@salesforce/design-system-react 11.0.0-alpha.5 → 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/avatar/index.cjs +1 -1
- package/dist/cjs/components/avatar/index.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/breadcrumb/index.cjs +1 -1
- package/dist/cjs/components/breadcrumb/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/button/index.cjs +1 -1
- package/dist/cjs/components/button/index.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/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/color-picker/color-picker.cjs.map +1 -1
- package/dist/cjs/components/combobox/add-subheadings.cjs +1 -1
- package/dist/cjs/components/combobox/add-subheadings.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/filter.cjs +1 -1
- package/dist/cjs/components/combobox/filter.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/date-picker/check-props.cjs +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
- package/dist/cjs/components/date-picker/index.cjs.map +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs.map +1 -1
- package/dist/cjs/components/input/index.cjs +1 -1
- package/dist/cjs/components/input/index.cjs.map +1 -1
- package/dist/cjs/components/input/search.cjs +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/check-props.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
- package/dist/cjs/components/modal/index.cjs +1 -1
- package/dist/cjs/components/modal/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/check-props.cjs +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/pill-container/check-props.cjs +2 -0
- package/dist/cjs/components/pill-container/check-props.cjs.map +1 -0
- package/dist/cjs/components/pill-container/component.cjs +2 -0
- package/dist/cjs/components/pill-container/component.cjs.map +1 -0
- 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/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/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/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/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/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/spinner/index.cjs +1 -1
- package/dist/cjs/components/spinner/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/check-props.cjs +2 -0
- package/dist/cjs/components/split-view/check-props.cjs.map +1 -0
- package/dist/cjs/components/split-view/component.cjs +2 -0
- package/dist/cjs/components/split-view/component.cjs.map +1 -0
- package/dist/cjs/components/split-view/header.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/index.cjs +1 -1
- package/dist/cjs/components/tabs/index.cjs.map +1 -1
- package/dist/cjs/components/tabs/panel.cjs.map +1 -1
- package/dist/cjs/components/textarea/check-props.cjs +2 -0
- package/dist/cjs/components/textarea/check-props.cjs.map +1 -0
- package/dist/cjs/components/textarea/component.cjs +2 -0
- package/dist/cjs/components/textarea/component.cjs.map +1 -0
- package/dist/cjs/components/textarea/index.cjs +1 -1
- package/dist/cjs/components/textarea/index.cjs.map +1 -1
- package/dist/cjs/components/toast/index.cjs +1 -1
- package/dist/cjs/components/toast/index.cjs.map +1 -1
- package/dist/cjs/components/tooltip/check-props.cjs +1 -1
- package/dist/cjs/components/tooltip/check-props.cjs.map +1 -1
- package/dist/cjs/components/tooltip/index.cjs +2 -2
- package/dist/cjs/components/tooltip/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/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.map +1 -1
- package/dist/cjs/components/tree/private/render-initial-branch.cjs +1 -1
- package/dist/cjs/components/tree/private/render-initial-branch.cjs.map +1 -1
- 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/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/constants.cjs +1 -1
- package/dist/cjs/utilities/constants.cjs.map +1 -1
- package/dist/es/components/accordion/panel.js +1 -1
- package/dist/es/components/accordion/panel.js.map +1 -1
- package/dist/es/components/avatar/index.js +1 -1
- package/dist/es/components/avatar/index.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/breadcrumb/index.js +1 -1
- package/dist/es/components/breadcrumb/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/button/index.js +1 -1
- package/dist/es/components/button/index.js.map +1 -1
- package/dist/es/components/button-stateful/index.js +1 -1
- package/dist/es/components/button-stateful/index.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 -113
- 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 +125 -113
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/color-picker/color-picker.js.map +1 -1
- package/dist/es/components/combobox/add-subheadings.js +2 -1
- package/dist/es/components/combobox/add-subheadings.js.map +1 -1
- package/dist/es/components/combobox/check-props.js +15 -5
- package/dist/es/components/combobox/check-props.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +292 -277
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/combobox/filter.js +1 -1
- package/dist/es/components/combobox/filter.js.map +1 -1
- package/dist/es/components/combobox/index.js.map +1 -1
- package/dist/es/components/combobox/private/menu.js +7 -7
- package/dist/es/components/combobox/private/menu.js.map +1 -1
- package/dist/es/components/date-picker/check-props.js +4 -4
- package/dist/es/components/date-picker/date-picker.js +149 -142
- package/dist/es/components/date-picker/date-picker.js.map +1 -1
- package/dist/es/components/date-picker/index.js.map +1 -1
- package/dist/es/components/dynamic-icon/index.js +1 -1
- package/dist/es/components/dynamic-icon/index.js.map +1 -1
- package/dist/es/components/index.js +41 -43
- package/dist/es/components/input/check-props.js +17 -18
- package/dist/es/components/input/check-props.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/input/search.js +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/check-props.js +6 -6
- 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 +236 -232
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/modal/index.js +104 -132
- package/dist/es/components/modal/index.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/pill-container/check-props.js +13 -0
- package/dist/es/components/pill-container/check-props.js.map +1 -0
- package/dist/es/components/pill-container/component.js +31 -0
- package/dist/es/components/pill-container/component.js.map +1 -0
- package/dist/es/components/pill-container/index.js +65 -56
- 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 +147 -146
- 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/index.js.map +1 -1
- package/dist/es/components/setup-assistant/step.js +8 -8
- package/dist/es/components/setup-assistant/step.js.map +1 -1
- package/dist/es/components/simple-data-table/check-props.js +4 -4
- 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/simple-data-table/row-actions.js +2 -2
- package/dist/es/components/simple-data-table/row-actions.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/spinner/index.js +1 -1
- package/dist/es/components/spinner/index.js.map +1 -1
- package/dist/es/components/split-view/check-props.js +13 -0
- package/dist/es/components/split-view/check-props.js.map +1 -0
- package/dist/es/components/split-view/component.js +46 -0
- package/dist/es/components/split-view/component.js.map +1 -0
- package/dist/es/components/split-view/header.js.map +1 -1
- package/dist/es/components/split-view/index.js +45 -36
- 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/index.js +64 -64
- package/dist/es/components/tabs/index.js.map +1 -1
- package/dist/es/components/tabs/panel.js.map +1 -1
- package/dist/es/components/textarea/check-props.js +18 -0
- package/dist/es/components/textarea/check-props.js.map +1 -0
- package/dist/es/components/textarea/component.js +27 -0
- package/dist/es/components/textarea/component.js.map +1 -0
- package/dist/es/components/textarea/index.js +62 -46
- package/dist/es/components/textarea/index.js.map +1 -1
- package/dist/es/components/toast/index.js +18 -12
- package/dist/es/components/toast/index.js.map +1 -1
- package/dist/es/components/tooltip/check-props.js +9 -23
- package/dist/es/components/tooltip/check-props.js.map +1 -1
- package/dist/es/components/tooltip/index.js +70 -70
- package/dist/es/components/tooltip/index.js.map +1 -1
- package/dist/es/components/tree/check-props.js +13 -12
- 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/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.map +1 -1
- package/dist/es/components/tree/private/render-initial-branch.js +5 -2
- package/dist/es/components/tree/private/render-initial-branch.js.map +1 -1
- package/dist/es/components/tree/tree.js +92 -65
- 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 +6 -4
- 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/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/constants.js +2 -2
- package/dist/es/utilities/constants.js.map +1 -1
- package/dist/types/components/accordion/panel.d.ts.map +1 -1
- package/dist/types/components/avatar/index.d.ts +1 -1
- package/dist/types/components/avatar/index.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/breadcrumb/index.d.ts +1 -1
- package/dist/types/components/breadcrumb/index.d.ts.map +1 -1
- 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/button/check-props.d.ts.map +1 -1
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/button/index.d.ts.map +1 -1
- package/dist/types/components/button-stateful/index.d.ts +1 -1
- package/dist/types/components/button-stateful/index.d.ts.map +1 -1
- package/dist/types/components/carousel/check-props.d.ts.map +1 -0
- package/dist/types/components/carousel/index.d.ts +38 -9
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/carousel/private/carousel-item.d.ts +5 -5
- 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 +10 -9
- package/dist/types/components/checkbox/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts +25 -7
- package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/components/color-picker/index.d.ts +1 -1
- package/dist/types/components/color-picker/index.d.ts.map +1 -1
- package/dist/types/components/combobox/add-subheadings.d.ts +1 -1
- package/dist/types/components/combobox/add-subheadings.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 +80 -33
- package/dist/types/components/combobox/combobox.d.ts.map +1 -1
- package/dist/types/components/combobox/filter.d.ts.map +1 -1
- package/dist/types/components/combobox/index.d.ts +2 -2
- package/dist/types/components/combobox/index.d.ts.map +1 -1
- package/dist/types/components/combobox/private/menu.d.ts +75 -9
- package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +52 -6
- package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/components/date-picker/index.d.ts +1 -1
- package/dist/types/components/date-picker/index.d.ts.map +1 -1
- package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -4
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/input/check-props.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/input/search.d.ts +1 -1
- package/dist/types/components/input/search.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/button-trigger.d.ts +1 -1
- package/dist/types/components/menu-dropdown/button-trigger.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 +2 -2
- package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +117 -27
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
- package/dist/types/components/modal/index.d.ts +26 -3
- package/dist/types/components/modal/index.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/pill-container/check-props.d.ts.map +1 -0
- package/dist/types/components/pill-container/index.d.ts +24 -3
- package/dist/types/components/pill-container/index.d.ts.map +1 -1
- package/dist/types/components/popover/index.d.ts +1 -1
- package/dist/types/components/popover/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts +41 -12
- 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/index.d.ts +7 -3
- package/dist/types/components/setup-assistant/index.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/step.d.ts +19 -7
- 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/row-actions.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.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/spinner/index.d.ts +1 -1
- package/dist/types/components/spinner/index.d.ts.map +1 -1
- package/dist/types/components/split-view/check-props.d.ts.map +1 -0
- package/dist/types/components/split-view/header.d.ts +3 -3
- package/dist/types/components/split-view/header.d.ts.map +1 -1
- package/dist/types/components/split-view/index.d.ts +34 -8
- package/dist/types/components/split-view/index.d.ts.map +1 -1
- package/dist/types/components/{forms/input/inline-check-props.d.ts → split-view/listbox-check-props.d.ts} +1 -1
- package/dist/types/components/split-view/listbox-check-props.d.ts.map +1 -0
- package/dist/types/components/split-view/listbox.d.ts +45 -26
- 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/index.d.ts +16 -3
- package/dist/types/components/tabs/index.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 +25 -5
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/toast/index.d.ts +17 -2
- package/dist/types/components/toast/index.d.ts.map +1 -1
- package/dist/types/components/tooltip/check-props.d.ts.map +1 -1
- package/dist/types/components/tooltip/index.d.ts +1 -5
- package/dist/types/components/tooltip/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/private/branch.d.ts +2 -4
- package/dist/types/components/tree/private/branch.d.ts.map +1 -1
- package/dist/types/components/tree/private/item.d.ts.map +1 -1
- package/dist/types/components/tree/private/render-branch.d.ts.map +1 -1
- package/dist/types/components/tree/private/render-initial-branch.d.ts +2 -3
- package/dist/types/components/tree/private/render-initial-branch.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +38 -9
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/tree/types.d.ts +62 -9
- 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 +6 -2
- package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/item.d.ts +4 -2
- 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/vertical-navigation/index.d.ts +7 -3
- package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
- package/dist/types/components/vertical-navigation/private/item.d.ts +1 -1
- package/dist/types/components/vertical-navigation/private/item.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 +70 -15
- 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/dist/types/utilities/constants.d.ts +0 -1
- package/dist/types/utilities/constants.d.ts.map +1 -1
- package/package.json +5 -3
- package/dist/cjs/components/forms/input/inline-check-props.cjs +0 -2
- package/dist/cjs/components/forms/input/inline-check-props.cjs.map +0 -1
- package/dist/cjs/components/forms/input/inline.cjs +0 -2
- package/dist/cjs/components/forms/input/inline.cjs.map +0 -1
- package/dist/cjs/components/modal/check-props.cjs +0 -2
- package/dist/cjs/components/modal/check-props.cjs.map +0 -1
- package/dist/cjs/components/modal/component.cjs +0 -2
- package/dist/cjs/components/modal/component.cjs.map +0 -1
- package/dist/cjs/components/modal/trigger.cjs +0 -2
- package/dist/cjs/components/modal/trigger.cjs.map +0 -1
- package/dist/es/components/forms/input/inline-check-props.js +0 -11
- package/dist/es/components/forms/input/inline-check-props.js.map +0 -1
- package/dist/es/components/forms/input/inline.js +0 -95
- package/dist/es/components/forms/input/inline.js.map +0 -1
- package/dist/es/components/modal/check-props.js +0 -13
- package/dist/es/components/modal/check-props.js.map +0 -1
- package/dist/es/components/modal/component.js +0 -35
- package/dist/es/components/modal/component.js.map +0 -1
- package/dist/es/components/modal/trigger.js +0 -22
- package/dist/es/components/modal/trigger.js.map +0 -1
- package/dist/types/components/avatar/check-props.d.ts.map +0 -1
- package/dist/types/components/breadcrumb/check-props.d.ts.map +0 -1
- package/dist/types/components/button-stateful/check-props.d.ts.map +0 -1
- package/dist/types/components/forms/checkbox/index.d.ts +0 -4
- package/dist/types/components/forms/checkbox/index.d.ts.map +0 -1
- package/dist/types/components/forms/checkbox.d.ts +0 -2
- package/dist/types/components/forms/input/inline-check-props.d.ts.map +0 -1
- package/dist/types/components/forms/input/inline.d.ts +0 -88
- package/dist/types/components/forms/input/inline.d.ts.map +0 -1
- package/dist/types/components/modal/check-props.d.ts.map +0 -1
- package/dist/types/components/modal/trigger.d.ts +0 -14
- package/dist/types/components/modal/trigger.d.ts.map +0 -1
- package/dist/types/components/spinner/check-props.d.ts.map +0 -1
- package/dist/types/components/tabs/pane.d.ts +0 -3
- package/dist/types/components/tabs/pane.d.ts.map +0 -1
- package/dist/types/utilities/warning/deprecated-event-parameter.d.ts +0 -3
- package/dist/types/utilities/warning/deprecated-event-parameter.d.ts.map +0 -1
- /package/dist/types/components/{avatar → builder-header}/check-props.d.ts +0 -0
- /package/dist/types/components/{breadcrumb → carousel}/check-props.d.ts +0 -0
- /package/dist/types/components/{button-stateful → pill-container}/check-props.d.ts +0 -0
- /package/dist/types/components/{modal → slider}/check-props.d.ts +0 -0
- /package/dist/types/components/{spinner → split-view}/check-props.d.ts +0 -0
|
@@ -38,8 +38,9 @@ var d = ({ name: s = "", assistiveText: d, category: f = "utility", icon: p, pat
|
|
|
38
38
|
b = `${_.iconPath}/${f}-sprite/svg/${e}#${s}`;
|
|
39
39
|
}
|
|
40
40
|
if (y) {
|
|
41
|
-
let { className: t, style: n,
|
|
41
|
+
let { className: t, style: n, "aria-hidden": r } = g;
|
|
42
42
|
return /* @__PURE__ */ u(e, {
|
|
43
|
+
"aria-hidden": r,
|
|
43
44
|
data: y,
|
|
44
45
|
name: s,
|
|
45
46
|
className: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../components/utilities/utility-icon/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, { useContext, type CSSProperties, type SVGProps } from 'react';\nimport Svg from './svg';\nimport SLDS_ICONS_UTILITY from '../../../icons/utility';\nimport SLDS_ICONS_ACTION from '../../../icons/action';\nimport SLDS_ICONS_CUSTOM from '../../../icons/custom';\nimport SLDS_ICONS_DOCTYPE from '../../../icons/doctype';\nimport SLDS_ICONS_STANDARD from '../../../icons/standard';\nimport { DIRECTIONS } from '../UNSAFE_direction';\nimport LanguageDirection from '../UNSAFE_direction/private/language-direction';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../components/utilities/utility-icon/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, { useContext, type CSSProperties, type SVGProps } from 'react';\nimport Svg from './svg';\nimport SLDS_ICONS_UTILITY from '../../../icons/utility';\nimport SLDS_ICONS_ACTION from '../../../icons/action';\nimport SLDS_ICONS_CUSTOM from '../../../icons/custom';\nimport SLDS_ICONS_DOCTYPE from '../../../icons/doctype';\nimport SLDS_ICONS_STANDARD from '../../../icons/standard';\nimport { DIRECTIONS } from '../UNSAFE_direction';\nimport LanguageDirection from '../UNSAFE_direction/private/language-direction';\nimport {\n\tIconSettingsContext,\n\ttype IconSettingsContextValue,\n} from '../../icon-settings/index';\nimport type { IconCategory } from '../../../types/common';\n\n/**\n * Shape of inline icon data from icon bundles\n */\nexport interface InlineIconData {\n\tviewBox?: string;\n\tpath?: Record<string, string> | Array<Record<string, string>>;\n\tg?: Record<string, unknown> | Array<Record<string, unknown>>;\n\tcircle?: Record<string, string> | Array<Record<string, string>>;\n\tellipse?: Record<string, string> | Array<Record<string, string>>;\n\t[key: string]: unknown;\n}\n\n/**\n * Icon bundle type\n */\ntype IconBundle = Record<string, InlineIconData> & { viewBox?: string };\n\n/**\n * Props for UtilityIcon component\n */\nexport interface UtilityIconProps extends Omit<\n\tSVGProps<SVGSVGElement>,\n\t'name'\n> {\n\t/** Assistive text for accessibility (not used directly, passed through) */\n\tassistiveText?: Record<string, string>;\n\t/** Icon category */\n\tcategory?: IconCategory;\n\t/** Custom SVG icon data */\n\ticon?: InlineIconData;\n\t/** Name of the icon */\n\tname?: string;\n\t/** Direct path to the icon sprite */\n\tpath?: string;\n\t/** Text direction for RTL support */\n\tdirection?: string;\n\t/** CSS class name */\n\tclassName?: string;\n\t/** Inline styles */\n\tstyle?: CSSProperties;\n}\n\n/**\n * Internal component that renders either inline SVG or external sprite reference.\n * If inline icons are present and icon bundle imports are not just an empty object,\n * then inline icons will be used instead of external icons that require HTTP access.\n */\nconst UtilityIcon = ({\n\tname = '',\n\tassistiveText, // eslint-disable-line @typescript-eslint/no-unused-vars\n\tcategory = 'utility',\n\ticon,\n\tpath,\n\tdirection,\n\t...rest\n}: UtilityIconProps): React.ReactElement | null => {\n\tconst context = useContext<IconSettingsContextValue>(IconSettingsContext);\n\n\tconst inlineIcons: Record<IconCategory, IconBundle> = {\n\t\taction: SLDS_ICONS_ACTION as IconBundle,\n\t\tcustom: SLDS_ICONS_CUSTOM as IconBundle,\n\t\tdoctype: SLDS_ICONS_DOCTYPE as IconBundle,\n\t\tstandard: SLDS_ICONS_STANDARD as IconBundle,\n\t\tutility: SLDS_ICONS_UTILITY as IconBundle,\n\t};\n\n\tlet inlineData: InlineIconData | undefined;\n\n\tif (icon) {\n\t\t// Use SVG data passed in with `icon` prop\n\t\tinlineData = icon;\n\t} else if (Object.keys(inlineIcons[category]).length) {\n\t\t// Use inline icon data if it exists\n\t\tconst categoryIcons = inlineIcons[category];\n\t\tconst iconData = categoryIcons[name.toLowerCase()];\n\t\tif (iconData) {\n\t\t\tinlineData = {\n\t\t\t\t...iconData,\n\t\t\t\tviewBox: categoryIcons.viewBox,\n\t\t\t};\n\t\t}\n\t}\n\n\tlet modifiedPath: string | undefined;\n\n\tif (path) {\n\t\t// Use `path` prop of Icon if present\n\t\tmodifiedPath = path;\n\t} else if (context.onRequestIconPath) {\n\t\tmodifiedPath = context.onRequestIconPath({ category, name });\n\t} else if (context[`${category}Sprite` as keyof IconSettingsContextValue]) {\n\t\t// Use category sprite file from IconSettings if present\n\t\tconst sprite = context[\n\t\t\t`${category}Sprite` as keyof IconSettingsContextValue\n\t\t] as string;\n\t\tmodifiedPath = `${sprite}#${name}`;\n\t} else if (context.iconPath) {\n\t\t// Otherwise, use external URLs for icons\n\t\tconst svgAssetName =\n\t\t\tdirection === DIRECTIONS.RTL ? 'symbols-rtl.svg' : 'symbols.svg';\n\t\tmodifiedPath = `${context.iconPath}/${category}-sprite/svg/${svgAssetName}#${name}`;\n\t}\n\n\tif (inlineData) {\n\t\tconst { className, style, 'aria-hidden': ariaHidden } = rest;\n\t\treturn (\n\t\t\t<Svg\n\t\t\t\taria-hidden={ariaHidden}\n\t\t\t\tdata={inlineData}\n\t\t\t\tname={name}\n\t\t\t\tclassName={className}\n\t\t\t\tstyle={style}\n\t\t\t/>\n\t\t);\n\t}\n\n\tconst { className: svgClassName, style: svgStyle, ...svgRest } = rest;\n\treturn (\n\t\t<svg\n\t\t\tkey={`${name}_${category}`}\n\t\t\tclassName={svgClassName}\n\t\t\tstyle={svgStyle}\n\t\t\t{...svgRest}\n\t\t>\n\t\t\t<use href={modifiedPath} />\n\t\t</svg>\n\t);\n};\n\nUtilityIcon.displayName = 'UtilityIcon';\n\nexport default LanguageDirection(UtilityIcon);\n"],"mappings":";;;;;;;;;;;;AAiEA,IAAM,KAAe,EACpB,UAAO,IACP,kBACA,cAAW,WACX,SACA,SACA,cACA,GAAG,QAC+C;CAClD,IAAM,IAAU,EAAqC,CAAmB,GAElE,IAAgD;EACrD,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,SAAS;CACV,GAEI;CAEJ,IAAI,GAEH,IAAa;MACP,IAAI,OAAO,KAAK,EAAY,EAAS,CAAC,CAAC,QAAQ;EAErD,IAAM,IAAgB,EAAY,IAC5B,IAAW,EAAc,EAAK,YAAY;EAChD,AAAI,MACH,IAAa;GACZ,GAAG;GACH,SAAS,EAAc;EACxB;CAEF;CAEA,IAAI;CAEJ,IAAI,GAEH,IAAe;MACT,IAAI,EAAQ,mBAClB,IAAe,EAAQ,kBAAkB;EAAE;EAAU;CAAK,CAAC;MACrD,IAAI,EAAQ,GAAG,EAAS,UAK9B,IAAe,GAHA,EACd,GAAG,EAAS,SAEY,GAAG;MACtB,IAAI,EAAQ,UAAU;EAE5B,IAAM,IACL,MAAc,EAAW,MAAM,oBAAoB;EACpD,IAAe,GAAG,EAAQ,SAAS,GAAG,EAAS,cAAc,EAAa,GAAG;CAC9E;CAEA,IAAI,GAAY;EACf,IAAM,EAAE,cAAW,UAAO,eAAe,MAAe;EACxD,OACC,kBAAC,GAAD;GACC,eAAa;GACb,MAAM;GACA;GACK;GACJ;EACP,CAAA;CAEH;CAEA,IAAM,EAAE,WAAW,GAAc,OAAO,GAAU,GAAG,MAAY;CACjE,OACC,kBAAC,OAAD;EAEC,WAAW;EACX,OAAO;EACP,GAAI;EAEJ,UAAA,kBAAC,OAAD,EAAK,MAAM,EAAe,CAAA;CACtB,GANC,GAAG,EAAK,GAAG,GAMZ;AAEP;AAEA,EAAY,cAAc;AAE1B,IAAA,IAAe,EAAkB,CAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/vertical-navigation/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, {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/vertical-navigation/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\tuseId,\n\tuseMemo,\n\ttype MouseEvent,\n\ttype ReactElement,\n} from 'react';\nimport classNames from 'classnames';\nimport { VERTICAL_NAVIGATION } from '../../utilities/constants';\nimport type { BadgeProps } from '../badge';\nimport type { IconProps } from '../icon';\nimport Item from './private/item';\n\n/**\n * Navigation item structure\n */\nexport interface NavigationItem {\n\t/** Unique identifier */\n\tid: string;\n\t/** Display label */\n\tlabel: string;\n\t/** URL for the link */\n\turl: string;\n\t/** `Icon` rendered before the label. Its `size` sets the right margin. */\n\ticon?: ReactElement<IconProps>;\n\t/** `Badge` rendered after the label, aligned right */\n\tnotificationBadge?: ReactElement<BadgeProps>;\n}\n\n/**\n * Navigation category structure\n */\nexport interface NavigationCategory {\n\t/** Unique identifier */\n\tid: string;\n\t/** Category label */\n\tlabel: string;\n\t/** Items in this category */\n\titems: NavigationItem[];\n}\n\n/**\n * Selection event data\n */\nexport interface NavigationSelectData {\n\titem: NavigationItem;\n}\n\n/**\n * Props for the VerticalNavigation component\n */\nexport interface VerticalNavigationProps {\n\t/** Array of navigation categories */\n\tcategories: NavigationCategory[];\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string;\n\t/** Selection callback */\n\tonSelect?: (\n\t\tevent: MouseEvent<HTMLAnchorElement>,\n\t\tdata: NavigationSelectData\n\t) => void;\n\t/** Currently selected item ID */\n\tselectedId?: string;\n}\n\n/**\n * Vertical Navigation represents a list of links that either take the user\n * to another page or parts of the page the user is in.\n */\nconst VerticalNavigation = ({\n\tcategories,\n\tclassName,\n\tid: propId,\n\tonSelect,\n\tselectedId: propSelectedId,\n}: VerticalNavigationProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst rootId = propId || generatedId;\n\n\t// Determine selected ID (default to first item if not specified)\n\tconst selectedId = useMemo(() => {\n\t\tif (propSelectedId) {\n\t\t\treturn propSelectedId;\n\t\t}\n\t\tif (categories.length > 0 && categories[0].items?.length > 0) {\n\t\t\treturn categories[0].items[0].id;\n\t\t}\n\t\treturn undefined;\n\t}, [propSelectedId, categories]);\n\n\treturn (\n\t\t<nav\n\t\t\tid={rootId}\n\t\t\tclassName={classNames('slds-nav-vertical', className as string)}\n\t\t>\n\t\t\t{categories.map((category) => {\n\t\t\t\tconst categoryId = `${rootId}-${category.id}`;\n\t\t\t\treturn (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={`${categoryId}-header`}\n\t\t\t\t\t\tclassName=\"slds-nav-vertical__section\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<h2 id={categoryId} className=\"slds-nav-vertical__title\">\n\t\t\t\t\t\t\t{category.label}\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<ul key={categoryId}>\n\t\t\t\t\t\t\t{category.items.map((item) => (\n\t\t\t\t\t\t\t\t<Item\n\t\t\t\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\tisSelected={item.id === selectedId}\n\t\t\t\t\t\t\t\t\tcategoryId={categoryId}\n\t\t\t\t\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t})}\n\t\t</nav>\n\t);\n};\n\nVerticalNavigation.displayName = VERTICAL_NAVIGATION;\n\nexport default VerticalNavigation;\n"],"mappings":";;;;;;AAyEA,IAAM,KAAsB,EAC3B,eACA,cACA,IAAI,GACJ,aACA,YAAY,QACsC;CAClD,IAAM,IAAc,EAAM,GACpB,IAAS,KAAU,GAGnB,IAAa,QAAc;EAChC,IAAI,GACH,OAAO;EAER,IAAI,EAAW,SAAS,KAAK,EAAW,EAAE,CAAC,OAAO,SAAS,GAC1D,OAAO,EAAW,EAAE,CAAC,MAAM,EAAE,CAAC;CAGhC,GAAG,CAAC,GAAgB,CAAU,CAAC;CAE/B,OACC,kBAAC,OAAD;EACC,IAAI;EACJ,WAAW,EAAW,qBAAqB,CAAmB;EAE7D,UAAA,EAAW,KAAK,MAAa;GAC7B,IAAM,IAAa,GAAG,EAAO,GAAG,EAAS;GACzC,OACC,kBAAC,OAAD;IAEC,WAAU;IAFX,UAAA,CAIC,kBAAC,MAAD;KAAI,IAAI;KAAY,WAAU;KAC5B,UAAA,EAAS;IACP,CAAA,GACJ,kBAAC,MAAD,EAAA,UACE,EAAS,MAAM,KAAK,MACpB,kBAAC,GAAD;KAEO;KACN,YAAY,EAAK,OAAO;KACZ;KACF;IACV,GALK,EAAK,EAKV,CACD,EACE,GAVK,CAUL,CACA;GAjBC,GAAA,GAAG,EAAW,QAiBf;EAEP,CAAC;CACG,CAAA;AAEP;AAEA,EAAmB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../../../components/vertical-navigation/private/item.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
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../../components/vertical-navigation/private/item.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 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// ### isFunction\nimport isFunction from 'lodash.isfunction';\n\nimport { VERTICAL_NAVIGATION_ITEM } from '../../../utilities/constants';\nimport { type NavigationItem, type NavigationSelectData } from '../index';\n\nexport interface ItemProps {\n\t/**\n\t * Item to be rendered.\n\t */\n\titem: NavigationItem;\n\t/**\n\t * Whether item is selected or not.\n\t */\n\tisSelected?: boolean;\n\t/**\n\t * ID of the category this item belongs to.\n\t */\n\tcategoryId: string;\n\t/**\n\t * Function that will run whenever an item is selected.\n\t */\n\tonSelect?: (\n\t\tevent: React.MouseEvent<HTMLAnchorElement>,\n\t\tdata: NavigationSelectData\n\t) => void;\n}\n\nconst handleClick = (\n\tevent: React.MouseEvent<HTMLAnchorElement>,\n\t{ item, onSelect }: Pick<ItemProps, 'item' | 'onSelect'>\n) => {\n\tif (!item.url) {\n\t\tevent.preventDefault();\n\t}\n\n\tif (isFunction(onSelect)) {\n\t\tonSelect(event, {\n\t\t\titem,\n\t\t});\n\t}\n};\n\nconst Item = ({\n\tisSelected = false,\n\titem,\n\tcategoryId,\n\tonSelect,\n}: ItemProps) => (\n\t<li\n\t\tclassName={classNames('slds-nav-vertical__item', {\n\t\t\t'slds-is-active': isSelected,\n\t\t})}\n\t>\n\t\t<a\n\t\t\tdata-id={item.id}\n\t\t\thref={item.url || '#'}\n\t\t\tclassName=\"slds-nav-vertical__action\"\n\t\t\taria-describedby={categoryId}\n\t\t\taria-current={isSelected ? 'page' : undefined}\n\t\t\tonClick={(event) => {\n\t\t\t\thandleClick(event, { item, onSelect });\n\t\t\t}}\n\t\t>\n\t\t\t{item.icon ? (\n\t\t\t\t<React.Fragment>\n\t\t\t\t\t{React.cloneElement(item.icon, {\n\t\t\t\t\t\tclassName: classNames(\n\t\t\t\t\t\t\titem.icon.props.className,\n\t\t\t\t\t\t\t`slds-m-right_${item.icon.props.size || 'medium'}`\n\t\t\t\t\t\t),\n\t\t\t\t\t})}\n\t\t\t\t\t{item.label}\n\t\t\t\t</React.Fragment>\n\t\t\t) : (\n\t\t\t\titem.label\n\t\t\t)}\n\t\t\t{item.notificationBadge ? (\n\t\t\t\tReact.cloneElement(item.notificationBadge, {\n\t\t\t\t\tclassName: classNames(\n\t\t\t\t\t\titem.notificationBadge.props.className,\n\t\t\t\t\t\t'slds-col_bump-left'\n\t\t\t\t\t),\n\t\t\t\t})\n\t\t\t) : (\n\t\t\t\t<React.Fragment />\n\t\t\t)}\n\t\t</a>\n\t</li>\n);\n\n// ### Display Name\n// Always use the canonical component name as the React display name.\nItem.displayName = VERTICAL_NAVIGATION_ITEM;\n\nexport default Item;\n"],"mappings":";;;;;;AAuCA,IAAM,KACL,GACA,EAAE,SAAM,kBACJ;CAKJ,AAJK,EAAK,OACT,EAAM,eAAe,GAGlB,EAAW,CAAQ,KACtB,EAAS,GAAO,EACf,QACD,CAAC;AAEH,GAEM,KAAQ,EACb,gBAAa,IACb,SACA,eACA,kBAEA,kBAAC,MAAD;CACC,WAAW,EAAW,2BAA2B,EAChD,kBAAkB,EACnB,CAAC;CAED,UAAA,kBAAC,KAAD;EACC,WAAS,EAAK;EACd,MAAM,EAAK,OAAO;EAClB,WAAU;EACV,oBAAkB;EAClB,gBAAc,IAAa,SAAS,KAAA;EACpC,UAAU,MAAU;GACnB,EAAY,GAAO;IAAE;IAAM;GAAS,CAAC;EACtC;EARD,UAAA,CAUE,EAAK,OACL,kBAAC,EAAM,UAAP,EAAA,UAAA,CACE,EAAM,aAAa,EAAK,MAAM,EAC9B,WAAW,EACV,EAAK,KAAK,MAAM,WAChB,gBAAgB,EAAK,KAAK,MAAM,QAAQ,UACzC,EACD,CAAC,GACA,EAAK,KACS,EAAA,CAAA,IAEhB,EAAK,OAEL,EAAK,oBACL,EAAM,aAAa,EAAK,mBAAmB,EAC1C,WAAW,EACV,EAAK,kBAAkB,MAAM,WAC7B,oBACD,EACD,CAAC,IAED,kBAAC,EAAM,UAAP,CAAiB,CAAA,CAEhB;;AACA,CAAA;AAKL,EAAK,cAAc"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../../utilities/get-component-doc.js";
|
|
2
|
+
import t from "../../utilities/warning/deprecated-property.js";
|
|
3
|
+
//#region components/welcome-mat/check-props.js
|
|
4
|
+
var n = function() {};
|
|
5
|
+
process.env.NODE_ENV !== "production" && (n = function(n, r, i) {
|
|
6
|
+
let a = e(i);
|
|
7
|
+
t(n, r.onRenderInfoActions, "onRenderInfoActions", "infoActions", a("infoActions")), t(n, r.onCompleteRenderActions, "onCompleteRenderActions", "completeActions", a("completeActions"));
|
|
8
|
+
});
|
|
9
|
+
var r = n;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as default };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=check-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/welcome-mat/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';\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\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onRenderInfoActions,\n\t\t\t'onRenderInfoActions',\n\t\t\t'infoActions',\n\t\t\tcreateDocUrl('infoActions')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onCompleteRenderActions,\n\t\t\t'onCompleteRenderActions',\n\t\t\t'completeActions',\n\t\t\tcreateDocUrl('completeActions')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAS9C,AAPA,EACC,GACA,EAAM,qBACN,uBACA,eACA,EAAa,aAAa,CAC3B,GACA,EACC,GACA,EAAM,yBACN,2BACA,mBACA,EAAa,iBAAiB,CAC/B;AACD;AAGD,IAAA,IAAe"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region components/welcome-mat/component.json
|
|
2
|
+
var e = "welcome-mat", t = "prod", n = "WelcomeMat", r = [{
|
|
3
|
+
component: "info-badge",
|
|
4
|
+
classKey: "WelcomeMatInfoBadge"
|
|
5
|
+
}, {
|
|
6
|
+
component: "tile",
|
|
7
|
+
classKey: "WelcomeMatTile"
|
|
8
|
+
}], i = {
|
|
9
|
+
component: e,
|
|
10
|
+
status: t,
|
|
11
|
+
"display-name": "Welcome Mat",
|
|
12
|
+
classKey: n,
|
|
13
|
+
"SLDS-component-path": "/components/welcome-mat",
|
|
14
|
+
dependencies: r,
|
|
15
|
+
"site-stories": [
|
|
16
|
+
{
|
|
17
|
+
heading: "Default",
|
|
18
|
+
path: "/__examples__/default.jsx"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
heading: "With Steps Completed",
|
|
22
|
+
path: "/__examples__/steps-complete.jsx"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
heading: "Info-Only",
|
|
26
|
+
path: "/__examples__/info-only.jsx"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
heading: "Splash",
|
|
30
|
+
path: "/__examples__/splash.jsx"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
heading: "Trailhead",
|
|
34
|
+
path: "/__examples__/trailhead.jsx"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
heading: "Trailhead - Complete",
|
|
38
|
+
path: "/__examples__/trailhead-complete.jsx"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"url-slug": "welcome-mat"
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { n as classKey, e as component, i as default, r as dependencies, t as status };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","names":[],"sources":["../../../../components/welcome-mat/component.json"],"sourcesContent":["{\n\t\"component\": \"welcome-mat\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Welcome Mat\",\n\t\"classKey\": \"WelcomeMat\",\n\t\"SLDS-component-path\": \"/components/welcome-mat\",\n\t\"dependencies\": [\n\t\t{\n\t\t\t\"component\": \"info-badge\",\n\t\t\t\"classKey\": \"WelcomeMatInfoBadge\"\n\t\t},\n\t\t{\n\t\t\t\"component\": \"tile\",\n\t\t\t\"classKey\": \"WelcomeMatTile\"\n\t\t}\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\": \"With Steps Completed\",\n\t\t\t\"path\": \"/__examples__/steps-complete.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Info-Only\",\n\t\t\t\"path\": \"/__examples__/info-only.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Splash\",\n\t\t\t\"path\": \"/__examples__/splash.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Trailhead\",\n\t\t\t\"path\": \"/__examples__/trailhead.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Trailhead - Complete\",\n\t\t\t\"path\": \"/__examples__/trailhead-complete.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"welcome-mat\"\n}\n"],"mappings":""}
|
|
@@ -1,92 +1,98 @@
|
|
|
1
1
|
import { WELCOME_MAT as e } from "../../utilities/constants.js";
|
|
2
2
|
import t from "../modal/index.js";
|
|
3
3
|
import n from "../progress-bar/index.js";
|
|
4
|
-
import r
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import r from "./check-props.js";
|
|
5
|
+
import i from "./component.js";
|
|
6
|
+
import a, { useEffect as o, useId as s, useMemo as c } from "react";
|
|
7
|
+
import l from "classnames";
|
|
8
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
9
|
//#region components/welcome-mat/index.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
-
}
|
|
13
|
-
|
|
10
|
+
var p = { unitsCompletedAfter: "units completed" }, m = ({ children: m, className: h, doNotShowAgainCheckbox: g, id: _, infoActions: v, infoBadge: y, isOpen: b = !0, labels: x, onRequestClose: S, onRenderInfoActions: C, variant: w = "steps" }) => {
|
|
11
|
+
let T = s(), E = _ || T, D = {
|
|
12
|
+
...p,
|
|
13
|
+
...x
|
|
14
|
+
};
|
|
15
|
+
o(() => {
|
|
16
|
+
r(e, { onRenderInfoActions: C }, i);
|
|
17
|
+
}, [C]);
|
|
18
|
+
let { totalSteps: O, completedSteps: k, progress: A } = c(() => {
|
|
19
|
+
let e = a.Children.count(m), t = a.Children.toArray(m).filter((e) => a.isValidElement(e) && e.props.isComplete).length;
|
|
14
20
|
return {
|
|
15
|
-
totalSteps:
|
|
16
|
-
completedSteps:
|
|
17
|
-
progress:
|
|
21
|
+
totalSteps: e,
|
|
22
|
+
completedSteps: t,
|
|
23
|
+
progress: e > 0 ? t / e * 100 : 0
|
|
18
24
|
};
|
|
19
|
-
}, [
|
|
20
|
-
className:
|
|
21
|
-
id: `${
|
|
25
|
+
}, [m]), j = /* @__PURE__ */ f("div", {
|
|
26
|
+
className: l("slds-welcome-mat__info-content", h),
|
|
27
|
+
id: `${E}-content`,
|
|
22
28
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ d("h2", {
|
|
24
30
|
className: "slds-welcome-mat__info-title",
|
|
25
|
-
id: `${
|
|
26
|
-
children:
|
|
31
|
+
id: `${E}-label`,
|
|
32
|
+
children: D.title
|
|
27
33
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ d("div", {
|
|
29
35
|
className: "slds-welcome-mat__info-description slds-text-longform",
|
|
30
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ d("p", { children: D.description })
|
|
31
37
|
}),
|
|
32
|
-
(
|
|
38
|
+
(w === "info-only" || w === "splash") && /* @__PURE__ */ f("div", {
|
|
33
39
|
className: "slds-welcome-mat__info-actions",
|
|
34
|
-
children: [v?.(),
|
|
40
|
+
children: [v ?? C?.(), g && /* @__PURE__ */ d("div", {
|
|
35
41
|
className: "slds-m-top_large",
|
|
36
|
-
children:
|
|
42
|
+
children: g
|
|
37
43
|
})]
|
|
38
44
|
}),
|
|
39
|
-
(
|
|
40
|
-
className:
|
|
41
|
-
children: [
|
|
42
|
-
|
|
45
|
+
(w === "steps" || w === "trailhead-connected") && m && /* @__PURE__ */ f("div", {
|
|
46
|
+
className: l("slds-welcome-mat__info-progress", { "slds-welcome-mat__info-progress_complete": k === O }),
|
|
47
|
+
children: [w === "trailhead-connected" && a.Children.map(y, (e) => a.isValidElement(e) ? a.cloneElement(e, { isComplete: k === O || void 0 }) : e), (k !== O || w !== "trailhead-connected") && /* @__PURE__ */ f(u, { children: [w === "trailhead-connected" ? /* @__PURE__ */ f("p", { children: [
|
|
48
|
+
k,
|
|
43
49
|
"/",
|
|
44
|
-
|
|
50
|
+
O,
|
|
45
51
|
" ",
|
|
46
|
-
|
|
47
|
-
] }) : /* @__PURE__ */
|
|
48
|
-
|
|
52
|
+
D.unitsCompletedAfter
|
|
53
|
+
] }) : /* @__PURE__ */ d("p", { children: /* @__PURE__ */ f("strong", { children: [
|
|
54
|
+
k,
|
|
49
55
|
"/",
|
|
50
|
-
|
|
56
|
+
O,
|
|
51
57
|
" ",
|
|
52
|
-
|
|
53
|
-
] }) }), /* @__PURE__ */
|
|
54
|
-
value:
|
|
58
|
+
D.unitsCompletedAfter
|
|
59
|
+
] }) }), /* @__PURE__ */ d(n, {
|
|
60
|
+
value: A,
|
|
55
61
|
radius: "circular"
|
|
56
62
|
})] })]
|
|
57
63
|
})
|
|
58
64
|
]
|
|
59
65
|
});
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
assistiveText: { dialogLabelledBy: `${
|
|
62
|
-
isOpen:
|
|
63
|
-
onRequestClose:
|
|
66
|
+
return /* @__PURE__ */ d(t, {
|
|
67
|
+
assistiveText: { dialogLabelledBy: `${E}-label` },
|
|
68
|
+
isOpen: b,
|
|
69
|
+
onRequestClose: S,
|
|
64
70
|
size: "small",
|
|
65
|
-
id: `${
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
className:
|
|
68
|
-
"slds-welcome-mat_info-only":
|
|
69
|
-
"slds-welcome-mat_splash": !
|
|
71
|
+
id: `${E}-modal`,
|
|
72
|
+
children: /* @__PURE__ */ d("div", {
|
|
73
|
+
className: l("slds-welcome-mat", {
|
|
74
|
+
"slds-welcome-mat_info-only": w === "info-only",
|
|
75
|
+
"slds-welcome-mat_splash": !m
|
|
70
76
|
}),
|
|
71
|
-
id:
|
|
72
|
-
children: /* @__PURE__ */
|
|
77
|
+
id: E,
|
|
78
|
+
children: /* @__PURE__ */ d("div", {
|
|
73
79
|
className: "slds-welcome-mat__content slds-grid",
|
|
74
|
-
children:
|
|
80
|
+
children: m ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
|
|
75
81
|
className: "slds-welcome-mat__info slds-size_1-of-2",
|
|
76
|
-
children:
|
|
77
|
-
}), /* @__PURE__ */
|
|
78
|
-
className:
|
|
79
|
-
children:
|
|
80
|
-
})] }) : /* @__PURE__ */
|
|
82
|
+
children: j
|
|
83
|
+
}), /* @__PURE__ */ d("div", {
|
|
84
|
+
className: l("slds-welcome-mat__tiles", "slds-size_1-of-2", { "slds-welcome-mat__tiles_info-only": w === "info-only" }),
|
|
85
|
+
children: a.Children.map(m, (e) => a.isValidElement(e) ? a.cloneElement(e, { variant: w }) : e)
|
|
86
|
+
})] }) : /* @__PURE__ */ d("div", {
|
|
81
87
|
className: "slds-welcome-mat__info slds-size_1-of-1",
|
|
82
|
-
children:
|
|
88
|
+
children: j
|
|
83
89
|
})
|
|
84
90
|
})
|
|
85
91
|
})
|
|
86
92
|
});
|
|
87
93
|
};
|
|
88
|
-
|
|
94
|
+
m.displayName = e;
|
|
89
95
|
//#endregion
|
|
90
|
-
export {
|
|
96
|
+
export { m as default };
|
|
91
97
|
|
|
92
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/welcome-mat/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useId, useMemo, type ReactNode, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport Modal from '../modal';\nimport ProgressBar from '../progress-bar';\nimport { WELCOME_MAT } from '../../utilities/constants';\n\n/**\n * Welcome mat variant types\n */\nexport type WelcomeMatVariant = 'steps' | 'info-only' | 'splash' | 'trailhead-connected';\n\n/**\n * Labels for WelcomeMat\n */\nexport interface WelcomeMatLabels {\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Text after units completed number */\n\tunitsCompletedAfter?: string;\n}\n\n/**\n * Props for the WelcomeMat component\n */\nexport interface WelcomeMatProps {\n\t/** WelcomeMatTile children */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Do not show again checkbox element */\n\tdoNotShowAgainCheckbox?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Info badge for trailhead variant */\n\tinfoBadge?: ReactNode;\n\t/** Whether modal is open */\n\tisOpen?: boolean;\n\t/** Text labels */\n\tlabels?: WelcomeMatLabels;\n\t/** Close request handler */\n\tonRequestClose?: () => void;\n\t/** Render function for info actions */\n\tonRenderInfoActions?: () => ReactNode;\n\t/** Component variant */\n\tvariant?: WelcomeMatVariant;\n}\n\nconst defaultLabels: WelcomeMatLabels = {\n\tunitsCompletedAfter: 'units completed',\n};\n\n/**\n * A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic.\n */\nconst WelcomeMat = ({\n\tchildren,\n\tclassName,\n\tdoNotShowAgainCheckbox,\n\tid: propId,\n\tinfoBadge,\n\tisOpen = true,\n\tlabels: propLabels,\n\tonRequestClose,\n\tonRenderInfoActions,\n\tvariant = 'steps',\n}: WelcomeMatProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\t// Calculate progress from children\n\tconst { totalSteps, completedSteps, progress } = useMemo(() => {\n\t\tconst total = React.Children.count(children);\n\t\tconst completed = React.Children.toArray(children).filter(\n\t\t\t(c) => React.isValidElement(c) && (c.props as { isComplete?: boolean }).isComplete\n\t\t).length;\n\t\treturn {\n\t\t\ttotalSteps: total,\n\t\t\tcompletedSteps: completed,\n\t\t\tprogress: total > 0 ? (completed / total) * 100 : 0,\n\t\t};\n\t}, [children]);\n\n\tconst splash = (\n\t\t<div\n\t\t\tclassName={classNames('slds-welcome-mat__info-content', className as string)}\n\t\t\tid={`${id}-content`}\n\t\t>\n\t\t\t<h2 className=\"slds-welcome-mat__info-title\" id={`${id}-label`}>\n\t\t\t\t{labels.title}\n\t\t\t</h2>\n\t\t\t<div className=\"slds-welcome-mat__info-description slds-text-longform\">\n\t\t\t\t<p>{labels.description}</p>\n\t\t\t</div>\n\t\t\t{(variant === 'info-only' || variant === 'splash') && (\n\t\t\t\t<div className=\"slds-welcome-mat__info-actions\">\n\t\t\t\t\t{onRenderInfoActions?.()}\n\t\t\t\t\t{doNotShowAgainCheckbox && (\n\t\t\t\t\t\t<div className=\"slds-m-top_large\">{doNotShowAgainCheckbox}</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(variant === 'steps' || variant === 'trailhead-connected') && children && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames('slds-welcome-mat__info-progress', {\n\t\t\t\t\t\t'slds-welcome-mat__info-progress_complete': completedSteps === totalSteps,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{variant === 'trailhead-connected' &&\n\t\t\t\t\t\tReact.Children.map(infoBadge, (child) =>\n\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t? React.cloneElement(child as ReactElement<{ isComplete?: boolean }>, {\n\t\t\t\t\t\t\t\t\t\tisComplete: completedSteps === totalSteps || undefined,\n\t\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t)}\n\t\t\t\t\t{(completedSteps !== totalSteps || variant !== 'trailhead-connected') && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{variant === 'trailhead-connected' ? (\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\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\t\t<p>\n\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t</strong>\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\t<ProgressBar value={progress} radius=\"circular\" />\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n\n\treturn (\n\t\t<Modal\n\t\t\tassistiveText={{\n\t\t\t\tdialogLabelledBy: `${id}-label`,\n\t\t\t}}\n\t\t\tisOpen={isOpen}\n\t\t\tonRequestClose={onRequestClose}\n\t\t\tsize=\"small\"\n\t\t\tid={`${id}-modal`}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-welcome-mat',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-welcome-mat_info-only': variant === 'info-only',\n\t\t\t\t\t\t'slds-welcome-mat_splash': !children,\n\t\t\t\t\t}\n\t\t\t\t)}\n\t\t\t\tid={id}\n\t\t\t>\n\t\t\t\t<div className=\"slds-welcome-mat__content slds-grid\">\n\t\t\t\t\t{children ? (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-2\">{splash}</div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles',\n\t\t\t\t\t\t\t\t\t'slds-size_1-of-2',\n\t\t\t\t\t\t\t\t\t{ 'slds-welcome-mat__tiles_info-only': variant === 'info-only' }\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{React.Children.map(children, (child) =>\n\t\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t\t? React.cloneElement(child as ReactElement<{ variant?: WelcomeMatVariant }>, {\n\t\t\t\t\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-1\">{splash}</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Modal>\n\t);\n};\n\nWelcomeMat.displayName = WELCOME_MAT;\n\nexport default WelcomeMat;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":";;;;;;;AAoDA,IAAM,IAAkC,EACvC,qBAAqB,kBACtB,GAKM,KAAc,EACnB,aACA,cACA,2BACA,IAAI,GACJ,cACA,YAAS,IACT,QAAQ,GACR,mBACA,wBACA,aAAU,cACgC;CAC1C,IAAM,IAAc,EAAM,GACpB,IAAK,KAAU,GACf,IAAS;EAAE,GAAG;EAAe,GAAG;CAAW,GAG3C,EAAE,eAAY,mBAAgB,gBAAa,QAAc;EAC9D,IAAM,IAAQ,EAAM,SAAS,MAAM,CAAQ,GACrC,IAAY,EAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,QACjD,MAAM,EAAM,eAAe,CAAC,KAAM,EAAE,MAAmC,UACzE,CAAC,CAAC;EACF,OAAO;GACN,YAAY;GACZ,gBAAgB;GAChB,UAAU,IAAQ,IAAK,IAAY,IAAS,MAAM;EACnD;CACD,GAAG,CAAC,CAAQ,CAAC,GAEP,IACL,kBAAC,OAAD;EACC,WAAW,EAAW,kCAAkC,CAAmB;EAC3E,IAAI,GAAG,EAAG;EAFX,UAAA;GAIC,kBAAC,MAAD;IAAI,WAAU;IAA+B,IAAI,GAAG,EAAG;IACrD,UAAA,EAAO;GACL,CAAA;GACJ,kBAAC,OAAD;IAAK,WAAU;IACd,UAAA,kBAAC,KAAD,EAAA,UAAI,EAAO,YAAe,CAAA;GACtB,CAAA;IACH,MAAY,eAAe,MAAY,aACxC,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,IAAsB,GACtB,KACA,kBAAC,OAAD;KAAK,WAAU;KAAoB,UAAA;IAA4B,CAAA,CAE5D;;IAEJ,MAAY,WAAW,MAAY,0BAA0B,KAC9D,kBAAC,OAAD;IACC,WAAW,EAAW,mCAAmC,EACxD,4CAA4C,MAAmB,EAChE,CAAC;IAHF,UAAA,CAKE,MAAY,yBACZ,EAAM,SAAS,IAAI,IAAY,MAC9B,EAAM,eAAe,CAAK,IACvB,EAAM,aAAa,GAAiD,EACpE,YAAY,MAAmB,KAAc,KAAA,EAC7C,CAAC,IACD,CACJ,IACC,MAAmB,KAAc,MAAY,0BAC9C,kBAAA,GAAA,EAAA,UAAA,CACE,MAAY,wBACZ,kBAAC,KAAD,EAAA,UAAA;KACE;KAAe;KAAE;KAAW;KAAE,EAAO;IACpC,EAAA,CAAA,IAEH,kBAAC,KAAD,EAAA,UACC,kBAAC,UAAD,EAAA,UAAA;KACE;KAAe;KAAE;KAAW;KAAE,EAAO;IAC/B,EAAA,CAAA,EACN,CAAA,GAEJ,kBAAC,GAAD;KAAa,OAAO;KAAU,QAAO;IAAY,CAAA,CAChD,EAAA,CAAA,CAEC;;EAEF;;CAGN,OACC,kBAAC,GAAD;EACC,eAAe,EACd,kBAAkB,GAAG,EAAG,QACzB;EACQ;EACQ;EAChB,MAAK;EACL,IAAI,GAAG,EAAG;EAEV,UAAA,kBAAC,OAAD;GACC,WAAW,EACV,oBACA;IACC,8BAA8B,MAAY;IAC1C,2BAA2B,CAAC;GAC7B,CACD;GACI;GAEJ,UAAA,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,IACA,kBAAA,GAAA,EAAA,UAAA,CACC,kBAAC,OAAD;KAAK,WAAU;KAA2C,UAAA;IAAY,CAAA,GACtE,kBAAC,OAAD;KACC,WAAW,EACV,2BACA,oBACA,EAAE,qCAAqC,MAAY,YAAY,CAChE;KAEC,UAAA,EAAM,SAAS,IAAI,IAAW,MAC9B,EAAM,eAAe,CAAK,IACvB,EAAM,aAAa,GAAwD,EAC3E,WACA,CAAC,IACD,CACJ;IACI,CAAA,CACJ,EAAA,CAAA,IAEF,kBAAC,OAAD;KAAK,WAAU;KAA2C,UAAA;IAAY,CAAA;GAEnE,CAAA;EACD,CAAA;CACC,CAAA;AAET;AAEA,EAAW,cAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/welcome-mat/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseEffect,\n\tuseId,\n\tuseMemo,\n\ttype ReactNode,\n\ttype ReactElement,\n} from 'react';\nimport classNames from 'classnames';\nimport Modal, {\n\ttype ModalRequestCloseData,\n\ttype ModalRequestCloseEvent,\n\ttype ModalRequestCloseTrigger,\n} from '../modal';\nimport ProgressBar from '../progress-bar';\nimport { WELCOME_MAT } from '../../utilities/constants';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n/**\n * Welcome mat variant types\n */\nexport type WelcomeMatVariant =\n\t'steps' | 'info-only' | 'splash' | 'trailhead-connected';\n\n/**\n * Labels for WelcomeMat\n */\nexport interface WelcomeMatLabels {\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Text after units completed number */\n\tunitsCompletedAfter?: string;\n}\n\n/**\n * What caused a WelcomeMat close request (same as the underlying Modal's)\n */\nexport type WelcomeMatRequestCloseTrigger = ModalRequestCloseTrigger;\n\n/**\n * Data passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseData = ModalRequestCloseData;\n\n/**\n * Event passed to `onRequestClose` (forwarded from the underlying Modal)\n */\nexport type WelcomeMatRequestCloseEvent = ModalRequestCloseEvent;\n\ninterface WelcomeMatBaseProps {\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether modal is open */\n\tisOpen?: boolean;\n\t/** Text labels */\n\tlabels?: WelcomeMatLabels;\n\t/**\n\t * Close request handler, forwarded from the underlying Modal. Receives the triggering\n\t * click or keydown event and `data.trigger`: `'close-button'`, `'escape'`, or `'click-outside'`.\n\t */\n\tonRequestClose?: (\n\t\tevent: WelcomeMatRequestCloseEvent,\n\t\tdata: WelcomeMatRequestCloseData\n\t) => void;\n}\n\n/**\n * `variant` decides what the info panel shows. `steps` and\n * `trailhead-connected` show progress through `WelcomeMatTile` children;\n * `info-only` and `splash` show actions instead.\n */\nexport type WelcomeMatVariantProps =\n\t| {\n\t\t\t/** Tiles with a progress bar */\n\t\t\tvariant?: 'steps';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\tinfoBadge?: never;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with Trailhead progress and an info badge */\n\t\t\tvariant: 'trailhead-connected';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\tdoNotShowAgainCheckbox?: never;\n\t\t\t/** WelcomeMatInfoBadge shown above the progress */\n\t\t\tinfoBadge?: ReactNode;\n\t\t\tinfoActions?: never;\n\t\t\tonRenderInfoActions?: never;\n\t }\n\t| {\n\t\t\t/** Tiles with actions instead of progress */\n\t\t\tvariant: 'info-only';\n\t\t\t/** WelcomeMatTile children */\n\t\t\tchildren: ReactNode;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t }\n\t| {\n\t\t\t/** Info panel only, with actions and no tiles */\n\t\t\tvariant: 'splash';\n\t\t\tchildren?: never;\n\t\t\t/** Do not show again checkbox element */\n\t\t\tdoNotShowAgainCheckbox?: ReactNode;\n\t\t\tinfoBadge?: never;\n\t\t\t/** Actions shown below the description */\n\t\t\tinfoActions?: ReactNode;\n\t\t\t/** @deprecated Use `infoActions` instead. */\n\t\t\tonRenderInfoActions?: () => ReactNode;\n\t };\n\n/**\n * Props for the WelcomeMat component\n */\nexport type WelcomeMatProps = WelcomeMatBaseProps & WelcomeMatVariantProps;\n\nconst defaultLabels: WelcomeMatLabels = {\n\tunitsCompletedAfter: 'units completed',\n};\n\n/**\n * A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic.\n */\nconst WelcomeMat = ({\n\tchildren,\n\tclassName,\n\tdoNotShowAgainCheckbox,\n\tid: propId,\n\tinfoActions,\n\tinfoBadge,\n\tisOpen = true,\n\tlabels: propLabels,\n\tonRequestClose,\n\tonRenderInfoActions,\n\tvariant = 'steps',\n}: WelcomeMatProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\tuseEffect(() => {\n\t\tcheckProps(WELCOME_MAT, { onRenderInfoActions }, componentDoc);\n\t}, [onRenderInfoActions]);\n\n\t// Calculate progress from children\n\tconst { totalSteps, completedSteps, progress } = useMemo(() => {\n\t\tconst total = React.Children.count(children);\n\t\tconst completed = React.Children.toArray(children).filter(\n\t\t\t(c) =>\n\t\t\t\tReact.isValidElement(c) &&\n\t\t\t\t(c.props as { isComplete?: boolean }).isComplete\n\t\t).length;\n\t\treturn {\n\t\t\ttotalSteps: total,\n\t\t\tcompletedSteps: completed,\n\t\t\tprogress: total > 0 ? (completed / total) * 100 : 0,\n\t\t};\n\t}, [children]);\n\n\tconst splash = (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-welcome-mat__info-content',\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t\tid={`${id}-content`}\n\t\t>\n\t\t\t<h2 className=\"slds-welcome-mat__info-title\" id={`${id}-label`}>\n\t\t\t\t{labels.title}\n\t\t\t</h2>\n\t\t\t<div className=\"slds-welcome-mat__info-description slds-text-longform\">\n\t\t\t\t<p>{labels.description}</p>\n\t\t\t</div>\n\t\t\t{(variant === 'info-only' || variant === 'splash') && (\n\t\t\t\t<div className=\"slds-welcome-mat__info-actions\">\n\t\t\t\t\t{infoActions ?? onRenderInfoActions?.()}\n\t\t\t\t\t{doNotShowAgainCheckbox && (\n\t\t\t\t\t\t<div className=\"slds-m-top_large\">{doNotShowAgainCheckbox}</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(variant === 'steps' || variant === 'trailhead-connected') &&\n\t\t\t\tchildren && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames('slds-welcome-mat__info-progress', {\n\t\t\t\t\t\t\t'slds-welcome-mat__info-progress_complete':\n\t\t\t\t\t\t\t\tcompletedSteps === totalSteps,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{variant === 'trailhead-connected' &&\n\t\t\t\t\t\t\tReact.Children.map(infoBadge, (child) =>\n\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\t\tchild as ReactElement<{ isComplete?: boolean }>,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tisComplete: completedSteps === totalSteps || undefined,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(completedSteps !== totalSteps ||\n\t\t\t\t\t\t\tvariant !== 'trailhead-connected') && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t{variant === 'trailhead-connected' ? (\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t{completedSteps}/{totalSteps} {labels.unitsCompletedAfter}\n\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t<ProgressBar value={progress} radius=\"circular\" />\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t</div>\n\t);\n\n\treturn (\n\t\t<Modal\n\t\t\tassistiveText={{\n\t\t\t\tdialogLabelledBy: `${id}-label`,\n\t\t\t}}\n\t\t\tisOpen={isOpen}\n\t\t\tonRequestClose={onRequestClose}\n\t\t\tsize=\"small\"\n\t\t\tid={`${id}-modal`}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames('slds-welcome-mat', {\n\t\t\t\t\t'slds-welcome-mat_info-only': variant === 'info-only',\n\t\t\t\t\t'slds-welcome-mat_splash': !children,\n\t\t\t\t})}\n\t\t\t\tid={id}\n\t\t\t>\n\t\t\t\t<div className=\"slds-welcome-mat__content slds-grid\">\n\t\t\t\t\t{children ? (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-2\">\n\t\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles',\n\t\t\t\t\t\t\t\t\t'slds-size_1-of-2',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'slds-welcome-mat__tiles_info-only':\n\t\t\t\t\t\t\t\t\t\t\tvariant === 'info-only',\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{React.Children.map(children, (child) =>\n\t\t\t\t\t\t\t\t\tReact.isValidElement(child)\n\t\t\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\t\t\tchild as ReactElement<{ variant?: WelcomeMatVariant }>,\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t: child\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className=\"slds-welcome-mat__info slds-size_1-of-1\">\n\t\t\t\t\t\t\t{splash}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Modal>\n\t);\n};\n\nWelcomeMat.displayName = WELCOME_MAT;\n\nexport default WelcomeMat;\n"],"mappings":";;;;;;;;;AAmIA,IAAM,IAAkC,EACvC,qBAAqB,kBACtB,GAKM,KAAc,EACnB,aACA,cACA,2BACA,IAAI,GACJ,gBACA,cACA,YAAS,IACT,QAAQ,GACR,mBACA,wBACA,aAAU,cACgC;CAC1C,IAAM,IAAc,EAAM,GACpB,IAAK,KAAU,GACf,IAAS;EAAE,GAAG;EAAe,GAAG;CAAW;CAEjD,QAAgB;EACf,EAAW,GAAa,EAAE,uBAAoB,GAAG,CAAY;CAC9D,GAAG,CAAC,CAAmB,CAAC;CAGxB,IAAM,EAAE,eAAY,mBAAgB,gBAAa,QAAc;EAC9D,IAAM,IAAQ,EAAM,SAAS,MAAM,CAAQ,GACrC,IAAY,EAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,QACjD,MACA,EAAM,eAAe,CAAC,KACrB,EAAE,MAAmC,UACxC,CAAC,CAAC;EACF,OAAO;GACN,YAAY;GACZ,gBAAgB;GAChB,UAAU,IAAQ,IAAK,IAAY,IAAS,MAAM;EACnD;CACD,GAAG,CAAC,CAAQ,CAAC,GAEP,IACL,kBAAC,OAAD;EACC,WAAW,EACV,kCACA,CACD;EACA,IAAI,GAAG,EAAG;EALX,UAAA;GAOC,kBAAC,MAAD;IAAI,WAAU;IAA+B,IAAI,GAAG,EAAG;IACrD,UAAA,EAAO;GACL,CAAA;GACJ,kBAAC,OAAD;IAAK,WAAU;IACd,UAAA,kBAAC,KAAD,EAAA,UAAI,EAAO,YAAe,CAAA;GACtB,CAAA;IACH,MAAY,eAAe,MAAY,aACxC,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,KAAe,IAAsB,GACrC,KACA,kBAAC,OAAD;KAAK,WAAU;KAAoB,UAAA;IAA4B,CAAA,CAE5D;;IAEJ,MAAY,WAAW,MAAY,0BACpC,KACC,kBAAC,OAAD;IACC,WAAW,EAAW,mCAAmC,EACxD,4CACC,MAAmB,EACrB,CAAC;IAJF,UAAA,CAME,MAAY,yBACZ,EAAM,SAAS,IAAI,IAAY,MAC9B,EAAM,eAAe,CAAK,IACvB,EAAM,aACN,GACA,EACC,YAAY,MAAmB,KAAc,KAAA,EAC9C,CACD,IACC,CACJ,IACC,MAAmB,KACpB,MAAY,0BACZ,kBAAA,GAAA,EAAA,UAAA,CACE,MAAY,wBACZ,kBAAC,KAAD,EAAA,UAAA;KACE;KAAe;KAAE;KAAW;KAAE,EAAO;IACpC,EAAA,CAAA,IAEH,kBAAC,KAAD,EAAA,UACC,kBAAC,UAAD,EAAA,UAAA;KACE;KAAe;KAAE;KAAW;KAAE,EAAO;IAC/B,EAAA,CAAA,EACN,CAAA,GAEJ,kBAAC,GAAD;KAAa,OAAO;KAAU,QAAO;IAAY,CAAA,CAChD,EAAA,CAAA,CAEC;;EAEH;;CAGN,OACC,kBAAC,GAAD;EACC,eAAe,EACd,kBAAkB,GAAG,EAAG,QACzB;EACQ;EACQ;EAChB,MAAK;EACL,IAAI,GAAG,EAAG;EAEV,UAAA,kBAAC,OAAD;GACC,WAAW,EAAW,oBAAoB;IACzC,8BAA8B,MAAY;IAC1C,2BAA2B,CAAC;GAC7B,CAAC;GACG;GAEJ,UAAA,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,IACA,kBAAA,GAAA,EAAA,UAAA,CACC,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA;IACG,CAAA,GACL,kBAAC,OAAD;KACC,WAAW,EACV,2BACA,oBACA,EACC,qCACC,MAAY,YACd,CACD;KAEC,UAAA,EAAM,SAAS,IAAI,IAAW,MAC9B,EAAM,eAAe,CAAK,IACvB,EAAM,aACN,GACA,EACC,WACD,CACD,IACC,CACJ;IACI,CAAA,CACJ,EAAA,CAAA,IAEF,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA;IACG,CAAA;GAEF,CAAA;EACD,CAAA;CACC,CAAA;AAET;AAEA,EAAW,cAAc"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { WELCOME_MAT_BADGE as e } from "../../utilities/constants.js";
|
|
2
2
|
import t from "../../utilities/generate-id.js";
|
|
3
3
|
import n from "../icon/index.js";
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
4
|
+
import r from "./check-props.js";
|
|
5
|
+
import i from "./component.js";
|
|
6
|
+
import a from "react";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
8
|
//#region components/welcome-mat/info-badge.tsx
|
|
7
|
-
var
|
|
8
|
-
static displayName =
|
|
9
|
-
static defaultProps =
|
|
9
|
+
var c = e, l = { isComplete: !1 }, u = class extends a.Component {
|
|
10
|
+
static displayName = c;
|
|
11
|
+
static defaultProps = l;
|
|
10
12
|
generatedId;
|
|
11
13
|
constructor(e) {
|
|
12
14
|
super(e), this.generatedId = t();
|
|
13
15
|
}
|
|
16
|
+
componentDidMount() {
|
|
17
|
+
r(e, this.props, i);
|
|
18
|
+
}
|
|
19
|
+
componentDidUpdate() {
|
|
20
|
+
r(e, this.props, i);
|
|
21
|
+
}
|
|
14
22
|
getId() {
|
|
15
23
|
return this.props.id || this.generatedId;
|
|
16
24
|
}
|
|
@@ -18,31 +26,31 @@ var o = e, s = { isComplete: !1 }, c = class extends r.Component {
|
|
|
18
26
|
return this.props.assistiveText && this.props.assistiveText.completed ? this.props.assistiveText.completed : "Completed";
|
|
19
27
|
}
|
|
20
28
|
render() {
|
|
21
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ s("div", {
|
|
22
30
|
id: this.getId(),
|
|
23
31
|
className: this.props.className,
|
|
24
32
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ s("div", {
|
|
26
34
|
className: "slds-welcome-mat__info-badge-container",
|
|
27
|
-
children: [/* @__PURE__ */
|
|
35
|
+
children: [/* @__PURE__ */ o("img", {
|
|
28
36
|
className: "slds-welcome-mat__info-badge",
|
|
29
37
|
src: this.props.image,
|
|
30
38
|
width: "50",
|
|
31
39
|
height: "50",
|
|
32
40
|
alt: ""
|
|
33
|
-
}), /* @__PURE__ */
|
|
41
|
+
}), /* @__PURE__ */ o(n, {
|
|
34
42
|
category: "action",
|
|
35
43
|
name: "check",
|
|
36
44
|
assistiveText: { label: this.getCompletedText() }
|
|
37
45
|
})]
|
|
38
46
|
}),
|
|
39
47
|
this.props.children,
|
|
40
|
-
this.props.isComplete ? this.props.onCompleteRenderActions?.() : null
|
|
48
|
+
this.props.isComplete ? this.props.completeActions ?? this.props.onCompleteRenderActions?.() : null
|
|
41
49
|
]
|
|
42
50
|
});
|
|
43
51
|
}
|
|
44
52
|
};
|
|
45
53
|
//#endregion
|
|
46
|
-
export {
|
|
54
|
+
export { u as default };
|
|
47
55
|
|
|
48
56
|
//# sourceMappingURL=info-badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-badge.js","names":[],"sources":["../../../../components/welcome-mat/info-badge.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat InfoBadge design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_BADGE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nconst displayName = WELCOME_MAT_BADGE;\n\nexport interface WelcomeMatInfoBadgeProps {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * * `completed` : For users of assistive technology, assistive text for completed icon.\n\t */\n\tassistiveText?: {\n\t\tcompleted?: string;\n\t};\n\t/**\n\t * Content rendered inside the badge container.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Icon for the tile\n\t */\n\timage?: string;\n\t/**\n\t * Whether the trail is completed\n\t */\n\tisComplete?: boolean;\n\t
|
|
1
|
+
{"version":3,"file":"info-badge.js","names":[],"sources":["../../../../components/welcome-mat/info-badge.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Welcome Mat InfoBadge design pattern](https://lightningdesignsystem.com/components/welcome-mat/) in React.\n// Based on SLDS v2.4.0\nimport React, { type ReactNode } from 'react';\nimport Icon from '../icon';\n\nimport { WELCOME_MAT_BADGE } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nconst displayName = WELCOME_MAT_BADGE;\n\nexport interface WelcomeMatInfoBadgeProps {\n\t/**\n\t * **Assistive text for accessibility.**\n\t * * `completed` : For users of assistive technology, assistive text for completed icon.\n\t */\n\tassistiveText?: {\n\t\tcompleted?: string;\n\t};\n\t/**\n\t * Content rendered inside the badge container.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Actions shown when the trail is complete (`isComplete` is true)\n\t */\n\tcompleteActions?: ReactNode;\n\t/**\n\t * CSS class names to be added to the container element. `array`, `object`, or `string` are accepted.\n\t */\n\tclassName?: unknown[] | Record<string, unknown> | string;\n\t/**\n\t * HTML id for component.\n\t */\n\tid?: string;\n\t/**\n\t * Icon for the tile\n\t */\n\timage?: string;\n\t/**\n\t * Whether the trail is completed\n\t */\n\tisComplete?: boolean;\n\t/** @deprecated Use `completeActions` instead. */\n\tonCompleteRenderActions?: () => ReactNode;\n}\n\nconst defaultProps: Partial<WelcomeMatInfoBadgeProps> = {\n\tisComplete: false,\n};\n\n/**\n * InfoBadge component item represents a tile in a Welcome Mat\n */\nclass InfoBadge extends React.Component<WelcomeMatInfoBadgeProps> {\n\tstatic displayName = displayName;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\tconstructor(props: WelcomeMatInfoBadgeProps) {\n\t\tsuper(props);\n\n\t\tthis.generatedId = generateId();\n\t}\n\n\tcomponentDidMount() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tcheckProps(WELCOME_MAT_BADGE, this.props, componentDoc);\n\t}\n\n\t/**\n\t * Get the Welcome Mat Info Badge's HTML id. Generate a new one if no ID present.\n\t */\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetCompletedText() {\n\t\treturn this.props.assistiveText && this.props.assistiveText.completed\n\t\t\t? this.props.assistiveText.completed\n\t\t\t: 'Completed';\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div id={this.getId()} className={this.props.className as string}>\n\t\t\t\t<div className=\"slds-welcome-mat__info-badge-container\">\n\t\t\t\t\t<img\n\t\t\t\t\t\tclassName=\"slds-welcome-mat__info-badge\"\n\t\t\t\t\t\tsrc={this.props.image}\n\t\t\t\t\t\twidth=\"50\"\n\t\t\t\t\t\theight=\"50\"\n\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t/>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcategory=\"action\"\n\t\t\t\t\t\tname=\"check\"\n\t\t\t\t\t\tassistiveText={{ label: this.getCompletedText() }}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t{this.props.children}\n\t\t\t\t{this.props.isComplete\n\t\t\t\t\t? (this.props.completeActions ??\n\t\t\t\t\t\tthis.props.onCompleteRenderActions?.())\n\t\t\t\t\t: null}\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default InfoBadge;\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAc,GAsCd,IAAkD,EACvD,YAAY,GACb,GAKM,IAAN,cAAwB,EAAM,UAAoC;CACjE,OAAO,cAAc;CAErB,OAAO,eAAe;CAEtB;CAEA,YAAY,GAAiC;EAG5C,AAFA,MAAM,CAAK,GAEX,KAAK,cAAc,EAAW;CAC/B;CAEA,oBAAoB;EACnB,EAAW,GAAmB,KAAK,OAAO,CAAY;CACvD;CAEA,qBAAqB;EACpB,EAAW,GAAmB,KAAK,OAAO,CAAY;CACvD;CAKA,QAAQ;EACP,OAAO,KAAK,MAAM,MAAM,KAAK;CAC9B;CAEA,mBAAmB;EAClB,OAAO,KAAK,MAAM,iBAAiB,KAAK,MAAM,cAAc,YACzD,KAAK,MAAM,cAAc,YACzB;CACJ;CAEA,SAAS;EACR,OACC,kBAAC,OAAD;GAAK,IAAI,KAAK,MAAM;GAAG,WAAW,KAAK,MAAM;GAA7C,UAAA;IACC,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACC,kBAAC,OAAD;MACC,WAAU;MACV,KAAK,KAAK,MAAM;MAChB,OAAM;MACN,QAAO;MACP,KAAI;KACJ,CAAA,GACD,kBAAC,GAAD;MACC,UAAS;MACT,MAAK;MACL,eAAe,EAAE,OAAO,KAAK,iBAAiB,EAAE;KAChD,CAAA,CACG;;IACJ,KAAK,MAAM;IACX,KAAK,MAAM,aACR,KAAK,MAAM,mBACb,KAAK,MAAM,0BAA0B,IACpC;GACC;;CAEP;AACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region utilities/constants.js
|
|
2
|
-
var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "
|
|
2
|
+
var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInput", X = "SLDSTextarea", Z = "SLDSSearch", Q = "SLDSHighlighter", $ = "SLDSIcon", ee = "SLDSIconSettings", te = "SLDSIconInput", ne = "SLDSIllustration", re = "SLDSList", ie = "SLDSListItem", ae = "SLDSListItemLabel", oe = "SLDSLookup", se = "SLDSMediaObject", ce = "SLDSMenuDropdown", le = "SLDSMenuDropdownTrigger", ue = "SLDSModal", de = "SLDSPanel", fe = "SLDSFilterGroup", pe = "SLDSFilterList", me = "SLDSPanelFilterListHeading", he = "SLDSPageHeader", ge = "SLDSPageHeaderControl", _e = "SLDSPill", ve = "SLDSPillContainer", ye = "SLDSPortalSettings", be = "SLDSPopover", xe = "SLDSPopoverEditDialog", Se = "SLDSPopoverTooltip", Ce = "SLDSProgressIndicator", we = "SLDSProgressIndicatorPath", Te = "SLDSProgressIndicatorProgress", Ee = "SLDSProgressIndicatorStep", De = "SLDSProgressIndicatorStepVertical", Oe = "SLDSProgressRing", ke = "SLDSProgressBar", Ae = "SLDSSetupAssistant", je = "SLDSSetupAssistantStep", Me = "SLDSScopedNotification", Ne = "SLDSSlider", Pe = "SLDSSpinner", Fe = "SLDSSplitView", Ie = "SLDSSplitViewHeader", Le = "SLDSSplitViewListbox", Re = "SLDSRadio", ze = "SLDSRadioGroup", Be = "SLDSRadioButtonGroup", Ve = "SLDSTab", He = "SLDSTabPanel", Ue = "SLDSTabs", We = "SLDSTabsList", Ge = "SLDSTabsPanel", Ke = "SLDSTimepicker", qe = "SLDSToast", Je = "SLDSToastContainer", Ye = "SLDSTree", Xe = "SLDSTreeBranch", Ze = "SLDSTreeItem", Qe = "SLDSTrialBar", $e = "SLDSTrialBarDropdown", et = "SLDSTrialBarButton", tt = "SLDSVerticalNavigation", nt = "SLDSVerticalNavigationItem", rt = "SLDSVisualPicker", it = "SLDSVisualPickerLink", at = "SLDSWelcomeMat", ot = "SLDSWelcomeMatTile", st = "SLDSWelcomeMatBadge";
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER,
|
|
4
|
+
export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Q as HIGHLIGHTER, $ as ICON, te as ICON_INPUT, ee as ICON_SETTINGS, ne as ILLUSTRATION, Y as INPUT, re as LIST, ie as LIST_ITEM, ae as LIST_ITEM_LABEL, oe as LOOKUP, se as MEDIA_OBJECT, ce as MENU_DROPDOWN, le as MENU_DROPDOWN_TRIGGER, ue as MODAL, he as PAGE_HEADER, ge as PAGE_HEADER_CONTROL, de as PANEL, fe as PANEL_FILTER_GROUP, pe as PANEL_FILTER_LIST, me as PANEL_FILTER_LIST_HEADING, _e as PILL, ve as PILL_CONTAINER, be as POPOVER, xe as POPOVER_EDIT_DIALOG, Se as POPOVER_TOOLTIP, ye as PORTAL_SETTINGS, ke as PROGRESS_BAR, Ce as PROGRESS_INDICATOR, we as PROGRESS_INDICATOR_PATH, Te as PROGRESS_INDICATOR_PROGRESS, Ee as PROGRESS_INDICATOR_STEP, De as PROGRESS_INDICATOR_STEP_VERTICAL, Oe as PROGRESS_RING, Re as RADIO, Be as RADIO_BUTTON_GROUP, ze as RADIO_GROUP, Me as SCOPED_NOTIFICATION, Z as SEARCH, Ae as SETUP_ASSISTANT, je as SETUP_ASSISTANT_STEP, j as SIMPLE_DATA_TABLE, M as SIMPLE_DATA_TABLE_CELL, N as SIMPLE_DATA_TABLE_COLUMN, P as SIMPLE_DATA_TABLE_HEAD, F as SIMPLE_DATA_TABLE_HEADER_CELL, L as SIMPLE_DATA_TABLE_ROW, I as SIMPLE_DATA_TABLE_ROW_ACTIONS, Ne as SLIDER, Pe as SPINNER, Fe as SPLIT_VIEW, Ie as SPLIT_VIEW_HEADER, Le as SPLIT_VIEW_LISTBOX, Ve as TAB, Ue as TABS, We as TABS_LIST, Ge as TABS_PANEL, He as TAB_PANEL, X as TEXTAREA, Ke as TIME_PICKER, qe as TOAST, Je as TOAST_CONTAINER, Ye as TREE, Xe as TREE_BRANCH, Ze as TREE_ITEM, Qe as TRIAL_BAR, et as TRIAL_BAR_BUTTON, $e as TRIAL_BAR_DROPDOWN, tt as VERTICAL_NAVIGATION, nt as VERTICAL_NAVIGATION_ITEM, rt as VISUAL_PICKER, it as VISUAL_PICKER_LINK, at as WELCOME_MAT, st as WELCOME_MAT_BADGE, ot as WELCOME_MAT_TILE };
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const SIMPLE_DATA_TABLE = 'SLDSSimpleDataTable';\nexport const SIMPLE_DATA_TABLE_CELL = 'SLDSSimpleDataTableCell';\nexport const SIMPLE_DATA_TABLE_COLUMN = 'SLDSSimpleDataTableColumn';\nexport const SIMPLE_DATA_TABLE_HEAD = 'SLDSSimpleDataTableHead';\nexport const SIMPLE_DATA_TABLE_HEADER_CELL = 'SLDSSimpleDataTableHeaderCell';\nexport const SIMPLE_DATA_TABLE_ROW_ACTIONS = 'SLDSSimpleDataTableRowActions';\nexport const SIMPLE_DATA_TABLE_ROW = 'SLDSSimpleDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../utilities/constants.js"],"sourcesContent":["// ## Components\nexport const ACCORDION = 'SLDSAccordion';\nexport const ACCORDION_PANEL = 'SLDSAccordionPanel';\nexport const ALERT = 'SLDSAlert';\nexport const ALERT_CONTAINER = 'SLDSAlertContainer';\nexport const APP_LAUNCHER = 'SLDSAppLauncher';\nexport const APP_LAUNCHER_EXPANDABLE_SECTION =\n\t'SLDSAppLauncherExpandableSection';\n/* Remove at next breaking change */\nexport const APP_LAUNCHER_SECTION = 'SLDSAppLauncherSection';\nexport const APP_LAUNCHER_LINK = 'SLDSAppLauncherLink';\nexport const APP_LAUNCHER_TILE = 'SLDSAppLauncherTile';\nexport const APP_LAUNCHER_HEADER = 'SLDSAppLauncherHeader';\nexport const AVATAR = 'SLDSAvatar';\nexport const BADGE = 'SLDSBadge';\n\nexport const BRAND_BAND = 'SLDSBrandBand';\n\n/* Remove at next breaking change */\nexport const BREAD_CRUMB = 'SLDSBreadcrumb';\n\nexport const BREADCRUMB = 'SLDSBreadcrumb';\nexport const BUILDER_HEADER = 'SLDSBuilderHeader';\nexport const BUILDER_HEADER_MISC = 'SLDSBuilderHeaderMisc';\nexport const BUILDER_HEADER_UTILITIES = 'SLDSBuilderHeaderUtilities';\nexport const BUILDER_HEADER_NAV = 'SLDSBuilderHeaderNav';\nexport const BUILDER_HEADER_NAV_DROPDOWN = 'SLDSBuilderHeaderNavDropdown';\nexport const BUILDER_HEADER_NAV_LINK = 'SLDSBuilderHeaderNavLink';\nexport const BUILDER_HEADER_TOOLBAR = 'SLDSBuilderHeaderToolbar';\nexport const BUTTON = 'SLDSButton';\nexport const BUTTON_GROUP = 'SLDSButtonGroup';\nexport const BUTTON_STATEFUL = 'SLDSButtonStateful';\nexport const BUTTON_ICON = 'SLDSButtonIcon'; // a non-interctive icon wrapper for SLDSUtilityIcon\nexport const CARD = 'SLDSCard';\nexport const CARD_BODY = 'SLDSCardBody';\nexport const CARD_EMPTY = 'SLDSCardEmpty';\nexport const CARD_FILTER = 'SLDSCardFilter';\nexport const CARD_FOOTER = 'SLDSCardFooter';\nexport const CARD_HEADER = 'SLDSCardHeader';\nexport const CAROUSEL = 'SLDSCarousel';\nexport const CAROUSEL_INDICATORS = 'SLDSCarouselIndicators';\nexport const CAROUSEL_ITEM = 'SLDSCarouselItem';\nexport const CAROUSEL_NAVIGATORS = 'SLDSCarouselNavigators';\nexport const CAROUSEL_AUTOPLAY_BUTTON = 'SLDSCarouselAutoplayButton';\nexport const COLOR_PICKER = 'SLDSColorPicker';\nexport const COMBOBOX = 'SLDSCombobox';\nexport const SIMPLE_DATA_TABLE = 'SLDSSimpleDataTable';\nexport const SIMPLE_DATA_TABLE_CELL = 'SLDSSimpleDataTableCell';\nexport const SIMPLE_DATA_TABLE_COLUMN = 'SLDSSimpleDataTableColumn';\nexport const SIMPLE_DATA_TABLE_HEAD = 'SLDSSimpleDataTableHead';\nexport const SIMPLE_DATA_TABLE_HEADER_CELL = 'SLDSSimpleDataTableHeaderCell';\nexport const SIMPLE_DATA_TABLE_ROW_ACTIONS = 'SLDSSimpleDataTableRowActions';\nexport const SIMPLE_DATA_TABLE_ROW = 'SLDSSimpleDataTableRow';\nexport const DATE_PICKER = 'SLDSDatePicker';\nexport const DEPRECATED_WARNING = 'SLDSDeprecatedWarning';\nexport const DYNAMIC_ICON = 'SLDSDynamicIcon';\nexport const DIALOG = 'SLDSDialog';\nexport const FILES = 'SLDSFiles';\nexport const FILES_FILE = `SLDSFilesFile`;\nexport const FILES_MORE = `SLDSFilesMore`;\nexport const FILES_FIGURE = 'SLDSFilesFigure';\nexport const FILES_ACTIONS = 'SLDSFilesActions';\nexport const EXPANDABLE_SECTION = 'SLDSExpandableSection';\nexport const EXPRESSION = 'SLDSExpression';\nexport const EXPRESSION_GROUP = 'SLDSExpressionGroup';\nexport const EXPRESSION_CONDITION = 'SLDSExpressionCondition';\nexport const EXPRESSION_FORMULA = 'SLDSExpressionFormula';\nexport const FILTER = 'SLDSFilter';\nexport const CHECKBOX = 'SLDSCheckbox';\nexport const INPUT = 'SLDSInput';\nexport const TEXTAREA = 'SLDSTextarea';\nexport const SEARCH = 'SLDSSearch';\nexport const GLOBAL_HEADER = 'SLDSGlobalHeader';\nexport const GLOBAL_HEADER_BUTTON = 'SLDSGlobalHeaderButton';\nexport const GLOBAL_HEADER_DROPDOWN = 'SLDSGlobalHeaderDropdown';\nexport const GLOBAL_HEADER_FAVORITES = 'SLDSGlobalHeaderFavorites';\nexport const GLOBAL_HEADER_HELP = 'SLDSGlobalHeaderHelp';\nexport const GLOBAL_HEADER_NOTIFICATIONS = 'SLDSGlobalHeaderNotifications';\nexport const GLOBAL_HEADER_PROFILE = 'SLDSGlobalHeaderProfile';\nexport const GLOBAL_HEADER_SEARCH = 'SLDSGlobalHeaderSearch';\nexport const GLOBAL_HEADER_SETUP = 'SLDSGlobalHeaderSetup';\nexport const GLOBAL_HEADER_TASK = 'SLDSGlobalHeaderTask';\nexport const GLOBAL_HEADER_TOOL = 'SLDSGlobalHeaderTool';\nexport const GLOBAL_NAVIGATION_BAR = 'SLDSGlobalNavigationBar';\nexport const GLOBAL_NAVIGATION_BAR_BUTTON = 'SLDSGlobalNavigationBarButton';\nexport const GLOBAL_NAVIGATION_BAR_DROPDOWN = 'SLDSGlobalNavigationBarDropdown';\nexport const GLOBAL_NAVIGATION_BAR_LABEL = 'SLDSGlobalNavigationBarLabel';\nexport const GLOBAL_NAVIGATION_BAR_LINK = 'SLDSGlobalNavigationBarLink';\nexport const GLOBAL_NAVIGATION_BAR_REGION = 'SLDSGlobalNavigationBarRegion';\nexport const GLOBAL_NAVIGATION_BAR_APP_LAUNCHER =\n\t'SLDSGlobalNavigationBarAppLauncher';\nexport const GRID = 'SLDSGrid';\nexport const HIGHLIGHTER = 'SLDSHighlighter';\nexport const ICON = 'SLDSIcon';\nexport const ICON_SETTINGS = 'SLDSIconSettings';\nexport const ICON_INPUT = 'SLDSIconInput';\nexport const ILLUSTRATION = 'SLDSIllustration';\nexport const LIST = 'SLDSList';\nexport const LIST_ITEM = 'SLDSListItem';\nexport const LIST_ITEM_LABEL = 'SLDSListItemLabel';\nexport const LISTBOX_OF_PILL_OPTIONS = 'SLDSListboxOfPillOptions';\nexport const LOCATION_MAP = 'SLDSLocationMap';\nexport const LOOKUP = 'SLDSLookup';\nexport const MEDIA_OBJECT = 'SLDSMediaObject';\nexport const MENU_DROPDOWN = 'SLDSMenuDropdown';\nexport const MENU_DROPDOWN_TRIGGER = 'SLDSMenuDropdownTrigger';\nexport const MENU_PICKLIST = 'SLDSMenuPicklist';\nexport const MODAL = 'SLDSModal';\nexport const NOTIFICATION = 'SLDSNotification';\nexport const PANEL = 'SLDSPanel';\nexport const PANEL_FILTER_GROUP = 'SLDSFilterGroup';\nexport const PANEL_FILTER_LIST = 'SLDSFilterList';\nexport const PANEL_FILTER_LIST_HEADING = 'SLDSPanelFilterListHeading';\nexport const PAGE_HEADER = 'SLDSPageHeader';\nexport const PAGE_HEADER_CONTROL = 'SLDSPageHeaderControl';\nexport const PILL = 'SLDSPill';\nexport const PILL_CONTAINER = 'SLDSPillContainer';\nexport const PORTAL_SETTINGS = 'SLDSPortalSettings';\nexport const POPOVER = 'SLDSPopover';\nexport const POPOVER_EDIT_DIALOG = 'SLDSPopoverEditDialog';\nexport const POPOVER_TOOLTIP = 'SLDSPopoverTooltip';\nexport const PROGRESS_INDICATOR = 'SLDSProgressIndicator';\nexport const PROGRESS_INDICATOR_PATH = 'SLDSProgressIndicatorPath';\nexport const PROGRESS_INDICATOR_PROGRESS = 'SLDSProgressIndicatorProgress';\nexport const PROGRESS_INDICATOR_STEP = 'SLDSProgressIndicatorStep';\nexport const PROGRESS_INDICATOR_STEP_VERTICAL =\n\t'SLDSProgressIndicatorStepVertical';\nexport const PROGRESS_RING = 'SLDSProgressRing';\nexport const PROGRESS_BAR = 'SLDSProgressBar';\nexport const SETUP_ASSISTANT = 'SLDSSetupAssistant';\nexport const SETUP_ASSISTANT_STEP = 'SLDSSetupAssistantStep';\nexport const SCOPED_NOTIFICATION = 'SLDSScopedNotification';\nexport const SLIDER = 'SLDSSlider';\nexport const SPINNER = 'SLDSSpinner';\nexport const SPLIT_VIEW = 'SLDSSplitView';\nexport const SPLIT_VIEW_HEADER = 'SLDSSplitViewHeader';\nexport const SPLIT_VIEW_LISTBOX = 'SLDSSplitViewListbox';\nexport const RADIO = 'SLDSRadio';\nexport const RADIO_GROUP = 'SLDSRadioGroup';\nexport const RADIO_BUTTON_GROUP = 'SLDSRadioButtonGroup';\nexport const TAB = 'SLDSTab';\nexport const TAB_ITEM = 'SLDSTabItem';\nexport const TAB_PANEL = 'SLDSTabPanel';\nexport const TABS = 'SLDSTabs';\nexport const TABS_LIST = 'SLDSTabsList';\nexport const TABS_PANEL = 'SLDSTabsPanel';\nexport const TIME_PICKER = 'SLDSTimepicker';\nexport const TOAST = 'SLDSToast';\nexport const TOAST_CONTAINER = 'SLDSToastContainer';\nexport const TREE = 'SLDSTree';\nexport const TREE_BRANCH = 'SLDSTreeBranch';\nexport const TREE_ITEM = 'SLDSTreeItem';\nexport const TRIAL_BAR = 'SLDSTrialBar';\nexport const TRIAL_BAR_DROPDOWN = 'SLDSTrialBarDropdown';\nexport const TRIAL_BAR_BUTTON = 'SLDSTrialBarButton';\nexport const VERTICAL_NAVIGATION = 'SLDSVerticalNavigation';\nexport const VERTICAL_NAVIGATION_ITEM = 'SLDSVerticalNavigationItem';\nexport const VISUAL_PICKER = 'SLDSVisualPicker';\nexport const VISUAL_PICKER_LINK = 'SLDSVisualPickerLink';\nexport const WELCOME_MAT = 'SLDSWelcomeMat';\nexport const WELCOME_MAT_TILE = 'SLDSWelcomeMatTile';\nexport const WELCOME_MAT_BADGE = 'SLDSWelcomeMatBadge';\nexport const DOCKED_COMPOSER = 'SLDSDockedComposer';\n"],"mappings":";AACA,IAAa,IAAY,iBACZ,IAAkB,sBAClB,IAAQ,aACR,IAAkB,sBASlB,IAAS,cACT,IAAQ,aAOR,IAAa,kBACb,IAAiB,qBACjB,IAAsB,yBACtB,IAA2B,8BAC3B,IAAqB,wBACrB,IAA8B,gCAC9B,IAA0B,4BAC1B,IAAyB,4BACzB,IAAS,cACT,IAAe,mBACf,IAAkB,sBAClB,IAAc,kBACd,IAAO,YACP,IAAY,gBACZ,IAAa,iBACb,IAAc,kBACd,IAAc,kBACd,IAAc,kBACd,IAAW,gBACX,IAAsB,0BACtB,IAAgB,oBAChB,IAAsB,0BACtB,IAA2B,8BAC3B,IAAe,mBACf,IAAW,gBACX,IAAoB,uBACpB,IAAyB,2BACzB,IAA2B,6BAC3B,IAAyB,2BACzB,IAAgC,iCAChC,IAAgC,iCAChC,IAAwB,0BACxB,IAAc,kBAEd,IAAe,mBACf,IAAS,cACT,IAAQ,aACR,IAAa,iBACb,IAAa,iBACb,IAAe,mBACf,IAAgB,oBAChB,IAAqB,yBAKrB,IAAS,cACT,IAAW,gBACX,IAAQ,aACR,IAAW,gBACX,IAAS,cAqBT,IAAc,mBACd,IAAO,YACP,KAAgB,oBAChB,KAAa,iBACb,KAAe,oBACf,KAAO,YACP,KAAY,gBACZ,KAAkB,qBAGlB,KAAS,cACT,KAAe,mBACf,KAAgB,oBAChB,KAAwB,2BAExB,KAAQ,aAER,KAAQ,aACR,KAAqB,mBACrB,KAAoB,kBACpB,KAA4B,8BAC5B,KAAc,kBACd,KAAsB,yBACtB,KAAO,YACP,KAAiB,qBACjB,KAAkB,sBAClB,KAAU,eACV,KAAsB,yBACtB,KAAkB,sBAClB,KAAqB,yBACrB,KAA0B,6BAC1B,KAA8B,iCAC9B,KAA0B,6BAC1B,KACZ,qCACY,KAAgB,oBAChB,KAAe,mBACf,KAAkB,sBAClB,KAAuB,0BACvB,KAAsB,0BACtB,KAAS,cACT,KAAU,eACV,KAAa,iBACb,KAAoB,uBACpB,KAAqB,wBACrB,KAAQ,aACR,KAAc,kBACd,KAAqB,wBACrB,KAAM,WAEN,KAAY,gBACZ,KAAO,YACP,KAAY,gBACZ,KAAa,iBACb,KAAc,kBACd,KAAQ,aACR,KAAkB,sBAClB,KAAO,YACP,KAAc,kBACd,KAAY,gBACZ,KAAY,gBACZ,KAAqB,wBACrB,KAAmB,sBACnB,KAAsB,0BACtB,KAA2B,8BAC3B,KAAgB,oBAChB,KAAqB,wBACrB,KAAc,kBACd,KAAmB,sBACnB,KAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../components/accordion/panel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAClD;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE;QACN,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;KACxD,CAAC;IACF;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;gCAKuB,EACvB,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,mBAAmB,EACnB,OAAO,EACP,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,IAAS,GACT,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY;;
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../components/accordion/panel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAClD;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE;QACN,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;KACxD,CAAC;IACF;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;gCAKuB,EACvB,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,mBAAmB,EACnB,OAAO,EACP,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,IAAS,GACT,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY;;aAkDd,eAAe;;eAE7B,cAAc"}
|
|
@@ -20,7 +20,7 @@ export interface AvatarAssistiveText {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface AvatarProps {
|
|
22
22
|
/** Assistive text for accessibility */
|
|
23
|
-
assistiveText?: AvatarAssistiveText
|
|
23
|
+
assistiveText?: AvatarAssistiveText;
|
|
24
24
|
/** Alt text for the image */
|
|
25
25
|
imgAlt?: string;
|
|
26
26
|
/** Source URL for the image */
|