@salesforce/design-system-react 11.0.0-alpha.3 → 11.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -70
- package/dist/cjs/components/accordion/index.cjs +1 -1
- package/dist/cjs/components/accordion/index.cjs.map +1 -1
- package/dist/cjs/components/alert/index.cjs +1 -1
- package/dist/cjs/components/alert/index.cjs.map +1 -1
- package/dist/cjs/components/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/index.cjs +1 -1
- package/dist/cjs/components/builder-header/index.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-group/index.cjs +1 -1
- package/dist/cjs/components/button-group/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/card/index.cjs +1 -1
- package/dist/cjs/components/card/index.cjs.map +1 -1
- package/dist/cjs/components/carousel/index.cjs +1 -1
- package/dist/cjs/components/carousel/index.cjs.map +1 -1
- package/dist/cjs/components/checkbox/index.cjs +1 -1
- package/dist/cjs/components/checkbox/index.cjs.map +1 -1
- package/dist/cjs/components/color-picker/index.cjs +1 -0
- package/dist/cjs/components/color-picker.cjs +1 -0
- package/dist/cjs/components/combobox/index.cjs +1 -1
- package/dist/cjs/components/combobox/index.cjs.map +1 -1
- package/dist/cjs/components/date-picker/index.cjs +1 -1
- package/dist/cjs/components/date-picker/index.cjs.map +1 -1
- package/dist/cjs/components/docked-composer/index.cjs +1 -1
- package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
- package/dist/cjs/components/expandable-section/index.cjs +1 -1
- package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
- package/dist/cjs/components/files/index.cjs +1 -1
- package/dist/cjs/components/files/index.cjs.map +1 -1
- package/dist/cjs/components/filter/index.cjs +1 -0
- package/dist/cjs/components/filter.cjs +1 -0
- package/dist/cjs/components/grid/index.cjs +2 -0
- package/dist/cjs/components/grid/index.cjs.map +1 -0
- package/dist/cjs/components/grid.cjs +1 -0
- package/dist/cjs/components/icon/index.cjs +1 -1
- package/dist/cjs/components/icon/index.cjs.map +1 -1
- package/dist/cjs/components/icon-settings/index.cjs +1 -1
- package/dist/cjs/components/icon-settings/index.cjs.map +1 -1
- package/dist/cjs/components/illustration/index.cjs +1 -1
- package/dist/cjs/components/illustration/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +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/media-object/index.cjs +1 -1
- package/dist/cjs/components/media-object/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/index.cjs +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/index.cjs +1 -1
- package/dist/cjs/components/page-header/index.cjs.map +1 -1
- package/dist/cjs/components/panel/index.cjs +1 -1
- package/dist/cjs/components/panel/index.cjs.map +1 -1
- package/dist/cjs/components/pill/index.cjs +1 -1
- package/dist/cjs/components/pill/index.cjs.map +1 -1
- package/dist/cjs/components/pill-container/index.cjs +1 -1
- package/dist/cjs/components/pill-container/index.cjs.map +1 -1
- package/dist/cjs/components/popover/index.cjs +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/portal-settings/index.cjs +1 -1
- package/dist/cjs/components/portal-settings/index.cjs.map +1 -1
- package/dist/cjs/components/progress-bar/index.cjs +1 -1
- package/dist/cjs/components/progress-bar/index.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs +2 -0
- package/dist/cjs/components/progress-indicator/check-props.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/path.cjs +2 -0
- package/dist/cjs/components/progress-indicator/private/path.cjs.map +1 -0
- package/dist/cjs/components/progress-indicator/private/progress.cjs +1 -1
- package/dist/cjs/components/progress-indicator/private/progress.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs +2 -0
- package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs.map +1 -0
- package/dist/cjs/components/progress-ring/index.cjs +1 -1
- package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
- package/dist/cjs/components/radio/index.cjs +1 -1
- package/dist/cjs/components/radio/index.cjs.map +1 -1
- package/dist/cjs/components/radio-button-group/index.cjs +1 -1
- package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
- package/dist/cjs/components/radio-group/index.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs.map +1 -1
- package/dist/cjs/components/scoped-notification/index.cjs +1 -1
- package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/index.cjs +1 -1
- package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
- package/dist/cjs/components/{data-table → simple-data-table}/cell.cjs +1 -1
- package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -0
- package/dist/cjs/components/{data-table → simple-data-table}/check-props.cjs +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/column.cjs +2 -0
- package/dist/cjs/components/simple-data-table/column.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/component.cjs +2 -0
- package/dist/cjs/components/simple-data-table/component.cjs.map +1 -0
- package/dist/cjs/components/{data-table → simple-data-table}/highlight-cell.cjs +1 -1
- package/dist/cjs/components/simple-data-table/highlight-cell.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/index.cjs +2 -0
- package/dist/cjs/components/simple-data-table/index.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/interactive-link.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/cell-fixed.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/context-helper.cjs.map +1 -0
- package/dist/cjs/components/{data-table → simple-data-table}/private/head.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs +2 -0
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/mode.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/row.cjs +2 -0
- package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -0
- package/dist/cjs/components/{data-table → simple-data-table}/row-actions.cjs +1 -1
- package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -0
- package/dist/cjs/components/simple-data-table.cjs +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/index.cjs +1 -1
- package/dist/cjs/components/split-view/index.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/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/index.cjs +2 -2
- package/dist/cjs/components/tooltip/index.cjs.map +1 -1
- package/dist/cjs/components/tree/index.cjs +1 -0
- package/dist/cjs/components/tree.cjs +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/vertical-navigation/index.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
- package/dist/cjs/components/visual-picker/index.cjs +1 -1
- package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
- package/dist/cjs/utilities/constants.cjs +1 -1
- package/dist/cjs/utilities/constants.cjs.map +1 -1
- package/dist/cjs/utilities/hooks/index.cjs +1 -0
- package/dist/cjs/utilities/hooks.cjs +1 -0
- package/dist/cjs/utilities/warning/incompatible-props.cjs +2 -0
- package/dist/cjs/utilities/warning/incompatible-props.cjs.map +1 -0
- package/dist/es/components/accordion/index.js +28 -24
- package/dist/es/components/accordion/index.js.map +1 -1
- package/dist/es/components/alert/index.js +14 -14
- package/dist/es/components/alert/index.js.map +1 -1
- package/dist/es/components/badge/index.js +1 -0
- package/dist/es/components/badge/index.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 +3 -2
- package/dist/es/components/button-stateful/index.js.map +1 -1
- package/dist/es/components/color-picker/index.js +2 -0
- package/dist/es/components/color-picker.js +2 -0
- package/dist/es/components/filter/index.js +2 -0
- package/dist/es/components/filter.js +2 -0
- package/dist/es/components/grid/index.js +31 -0
- package/dist/es/components/grid/index.js.map +1 -0
- package/dist/es/components/grid.js +2 -0
- package/dist/es/components/index.js +78 -78
- package/dist/es/components/menu-dropdown/index.js +5 -5
- package/dist/es/components/menu-dropdown/menu-dropdown.js +47 -40
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/page-header/index.js +24 -24
- package/dist/es/components/page-header/index.js.map +1 -1
- package/dist/es/components/popover/index.js +3 -3
- package/dist/es/components/popover/popover.js +10 -3
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/progress-indicator/check-props.js +24 -0
- package/dist/es/components/progress-indicator/check-props.js.map +1 -0
- package/dist/es/components/progress-indicator/index.js +80 -38
- package/dist/es/components/progress-indicator/index.js.map +1 -1
- package/dist/es/components/progress-indicator/private/path.js +95 -0
- package/dist/es/components/progress-indicator/private/path.js.map +1 -0
- package/dist/es/components/progress-indicator/private/progress.js +1 -1
- package/dist/es/components/progress-indicator/private/progress.js.map +1 -1
- package/dist/es/components/progress-indicator/private/use-roving-tab-index.js +29 -0
- package/dist/es/components/progress-indicator/private/use-roving-tab-index.js.map +1 -0
- package/dist/es/components/progress-ring/index.js +8 -8
- package/dist/es/components/progress-ring/index.js.map +1 -1
- package/dist/es/components/{data-table → simple-data-table}/cell.js +2 -2
- package/dist/es/components/simple-data-table/cell.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/check-props.js +2 -2
- package/dist/es/components/simple-data-table/check-props.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/column-check-props.js +1 -1
- package/dist/es/components/simple-data-table/column-check-props.js.map +1 -0
- package/dist/es/components/simple-data-table/column.js +8 -0
- package/dist/es/components/simple-data-table/column.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/component.js +6 -10
- package/dist/es/components/simple-data-table/component.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/highlight-cell.js +2 -2
- package/dist/es/components/simple-data-table/highlight-cell.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/index.js +126 -233
- package/dist/es/components/simple-data-table/index.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/interactive-element.js +1 -1
- package/dist/es/components/simple-data-table/interactive-element.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/interactive-link.js +1 -1
- package/dist/es/components/simple-data-table/interactive-link.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/cell-context.js +1 -1
- package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/cell-fixed.js +1 -1
- package/dist/es/components/simple-data-table/private/cell-fixed.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/context-helper.js +1 -1
- package/dist/es/components/simple-data-table/private/context-helper.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/head.js +2 -2
- package/dist/es/components/simple-data-table/private/head.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/header-cell.js +2 -2
- package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/link.js +1 -1
- package/dist/es/components/simple-data-table/private/link.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/mode.js +1 -1
- package/dist/es/components/simple-data-table/private/mode.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/row.js +6 -6
- package/dist/es/components/simple-data-table/private/row.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/private/table-context.js +1 -1
- package/dist/es/components/simple-data-table/private/table-context.js.map +1 -0
- package/dist/es/components/{data-table → simple-data-table}/row-actions.js +2 -2
- package/dist/es/components/simple-data-table/row-actions.js.map +1 -0
- package/dist/es/components/simple-data-table.js +2 -0
- package/dist/es/components/tooltip/index.js +90 -84
- package/dist/es/components/tooltip/index.js.map +1 -1
- package/dist/es/components/tree/index.js +2 -0
- package/dist/es/components/tree.js +2 -0
- package/dist/es/utilities/constants.js +2 -2
- package/dist/es/utilities/constants.js.map +1 -1
- package/dist/es/utilities/hooks/index.js +2 -0
- package/dist/es/utilities/hooks.js +1 -0
- package/dist/es/utilities/warning/incompatible-props.js +19 -0
- package/dist/es/utilities/warning/incompatible-props.js.map +1 -0
- package/dist/types/components/accordion/index.d.ts.map +1 -1
- package/dist/types/components/alert/index.d.ts.map +1 -1
- package/dist/types/components/badge/index.d.ts +1 -1
- package/dist/types/components/badge/index.d.ts.map +1 -1
- package/dist/types/components/button/index.d.ts +5 -2
- package/dist/types/components/button/index.d.ts.map +1 -1
- package/dist/types/components/button-stateful/index.d.ts +2 -2
- package/dist/types/components/button-stateful/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +14 -14
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/page-header/index.d.ts +1 -1
- package/dist/types/components/page-header/index.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -0
- package/dist/types/components/progress-indicator/index.d.ts +39 -8
- package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/private/path.d.ts +48 -0
- package/dist/types/components/progress-indicator/private/path.d.ts.map +1 -0
- package/dist/types/components/progress-indicator/private/progress.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts +41 -0
- package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/cell.d.ts +5 -5
- package/dist/types/components/simple-data-table/cell.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/check-props.d.ts +3 -0
- package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/column-check-props.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/column.d.ts +6 -6
- package/dist/types/components/simple-data-table/column.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/highlight-cell.d.ts +14 -0
- package/dist/types/components/simple-data-table/highlight-cell.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/index.d.ts +13 -40
- package/dist/types/components/simple-data-table/index.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/interactive-link.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/cell-context.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/cell-fixed.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/context-helper.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/private/head.d.ts +6 -6
- package/dist/types/components/simple-data-table/private/head.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/private/header-cell.d.ts +3 -3
- package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/link.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/mode.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/private/row.d.ts +11 -11
- package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/private/table-context.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/row-actions.d.ts +5 -5
- package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -0
- package/dist/types/components/simple-data-table/simple-data-table.d.ts +15 -0
- package/dist/types/components/simple-data-table/simple-data-table.d.ts.map +1 -0
- package/dist/types/components/{data-table → simple-data-table}/types.d.ts +56 -71
- package/dist/types/components/simple-data-table/types.d.ts.map +1 -0
- package/dist/types/components/simple-data-table.d.ts +2 -0
- package/dist/types/components/tooltip/index.d.ts +10 -1
- package/dist/types/components/tooltip/index.d.ts.map +1 -1
- package/dist/types/utilities/constants.d.ts +8 -7
- package/dist/types/utilities/constants.d.ts.map +1 -1
- package/dist/types/utilities/hooks/index.d.ts +1 -1
- package/dist/types/utilities/hooks/index.d.ts.map +1 -1
- package/dist/types/utilities/hooks.d.ts +0 -1
- package/dist/types/utilities/sample-data/global-navigation-bar.d.ts +0 -1
- package/dist/types/utilities/sample-data/vertical-navigation.d.ts +0 -1
- package/dist/types/utilities/warning/incompatible-props.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/cjs/components/data-table/cell.cjs.map +0 -1
- package/dist/cjs/components/data-table/check-props.cjs.map +0 -1
- package/dist/cjs/components/data-table/column-check-props.cjs.map +0 -1
- package/dist/cjs/components/data-table/column.cjs +0 -2
- package/dist/cjs/components/data-table/column.cjs.map +0 -1
- package/dist/cjs/components/data-table/component.cjs +0 -2
- package/dist/cjs/components/data-table/component.cjs.map +0 -1
- package/dist/cjs/components/data-table/highlight-cell.cjs.map +0 -1
- package/dist/cjs/components/data-table/index.cjs +0 -2
- package/dist/cjs/components/data-table/index.cjs.map +0 -1
- package/dist/cjs/components/data-table/interactive-element.cjs.map +0 -1
- package/dist/cjs/components/data-table/interactive-link.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/cell-context.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/cell-fixed.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/context-helper.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/head.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/header-cell.cjs +0 -2
- package/dist/cjs/components/data-table/private/header-cell.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/link.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/mode.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/row.cjs +0 -2
- package/dist/cjs/components/data-table/private/row.cjs.map +0 -1
- package/dist/cjs/components/data-table/private/table-context.cjs.map +0 -1
- package/dist/cjs/components/data-table/row-actions.cjs.map +0 -1
- package/dist/cjs/components/data-table.cjs +0 -1
- package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs +0 -2
- package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs.map +0 -1
- package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs +0 -2
- package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs.map +0 -1
- package/dist/es/components/data-table/cell.js.map +0 -1
- package/dist/es/components/data-table/check-props.js.map +0 -1
- package/dist/es/components/data-table/column-check-props.js.map +0 -1
- package/dist/es/components/data-table/column.js +0 -8
- package/dist/es/components/data-table/column.js.map +0 -1
- package/dist/es/components/data-table/component.js.map +0 -1
- package/dist/es/components/data-table/highlight-cell.js.map +0 -1
- package/dist/es/components/data-table/index.js.map +0 -1
- package/dist/es/components/data-table/interactive-element.js.map +0 -1
- package/dist/es/components/data-table/interactive-link.js.map +0 -1
- package/dist/es/components/data-table/private/cell-context.js.map +0 -1
- package/dist/es/components/data-table/private/cell-fixed.js.map +0 -1
- package/dist/es/components/data-table/private/context-helper.js.map +0 -1
- package/dist/es/components/data-table/private/head.js.map +0 -1
- package/dist/es/components/data-table/private/header-cell.js.map +0 -1
- package/dist/es/components/data-table/private/link.js.map +0 -1
- package/dist/es/components/data-table/private/mode.js.map +0 -1
- package/dist/es/components/data-table/private/row.js.map +0 -1
- package/dist/es/components/data-table/private/table-context.js.map +0 -1
- package/dist/es/components/data-table/row-actions.js.map +0 -1
- package/dist/es/components/data-table.js +0 -2
- package/dist/es/utilities/design-tokens/dist/palette-colors.common.js +0 -6
- package/dist/es/utilities/design-tokens/dist/palette-colors.common.js.map +0 -1
- package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js +0 -286
- package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js.map +0 -1
- package/dist/types/components/data-table/cell.d.ts.map +0 -1
- package/dist/types/components/data-table/check-props.d.ts.map +0 -1
- package/dist/types/components/data-table/column-check-props.d.ts.map +0 -1
- package/dist/types/components/data-table/column.d.ts.map +0 -1
- package/dist/types/components/data-table/data-table.d.ts +0 -15
- package/dist/types/components/data-table/data-table.d.ts.map +0 -1
- package/dist/types/components/data-table/highlight-cell.d.ts +0 -14
- package/dist/types/components/data-table/highlight-cell.d.ts.map +0 -1
- package/dist/types/components/data-table/index.d.ts.map +0 -1
- package/dist/types/components/data-table/interactive-element.d.ts.map +0 -1
- package/dist/types/components/data-table/interactive-link.d.ts.map +0 -1
- package/dist/types/components/data-table/private/cell-context.d.ts.map +0 -1
- package/dist/types/components/data-table/private/cell-fixed.d.ts.map +0 -1
- package/dist/types/components/data-table/private/context-helper.d.ts.map +0 -1
- package/dist/types/components/data-table/private/head.d.ts.map +0 -1
- package/dist/types/components/data-table/private/header-cell.d.ts.map +0 -1
- package/dist/types/components/data-table/private/link.d.ts.map +0 -1
- package/dist/types/components/data-table/private/mode.d.ts.map +0 -1
- package/dist/types/components/data-table/private/row.d.ts.map +0 -1
- package/dist/types/components/data-table/private/table-context.d.ts.map +0 -1
- package/dist/types/components/data-table/row-actions.d.ts.map +0 -1
- package/dist/types/components/data-table/types.d.ts.map +0 -1
- package/dist/types/components/data-table.d.ts +0 -2
- package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts +0 -81
- package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts +0 -201
- package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts +0 -117
- package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts +0 -5
- package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts +0 -204
- package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts +0 -3
- package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/components.common.d.ts +0 -249
- package/dist/types/utilities/design-tokens/dist/components.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts +0 -9
- package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts +0 -647
- package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts +0 -14
- package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts +0 -10
- package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts +0 -9
- package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts +0 -7
- package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts +0 -12
- package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts +0 -35
- package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts +0 -98
- package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts +0 -15
- package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts +0 -5
- package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts +0 -11
- package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts +0 -21
- package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts.map +0 -1
- package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts +0 -283
- package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts.map +0 -1
- /package/dist/cjs/components/{data-table → simple-data-table}/column-check-props.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/interactive-element.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/interactive-link.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-context.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-fixed.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/context-helper.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/link.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/mode.cjs +0 -0
- /package/dist/cjs/components/{data-table → simple-data-table}/private/table-context.cjs +0 -0
- /package/dist/types/components/{data-table → progress-indicator}/check-props.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/column-check-props.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/interactive-element.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/interactive-link.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/cell-context.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/cell-fixed.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/context-helper.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/link.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/mode.d.ts +0 -0
- /package/dist/types/components/{data-table → simple-data-table}/private/table-context.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/tooltip/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\n// # Tooltip\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseContext,\n\ttype ReactNode,\n\ttype CSSProperties,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\n\nimport EventUtil from '../../utilities/event';\nimport { POPOVER_TOOLTIP } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport Dialog from '../utilities/dialog';\nimport Icon from '../icon';\n// eslint-disable-next-line import/no-cycle\nimport Button from '../button';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport { IconSettingsContext } from '../icon-settings';\n\n// ### Types\n\nexport type TooltipAlign =\n\t| 'top'\n\t| 'top left'\n\t| 'top right'\n\t| 'right'\n\t| 'right top'\n\t| 'right bottom'\n\t| 'bottom'\n\t| 'bottom left'\n\t| 'bottom right'\n\t| 'left'\n\t| 'left top'\n\t| 'left bottom';\n\nexport type TooltipPosition = 'absolute' | 'overflowBoundaryElement' | 'relative';\n\nexport type TooltipTheme = 'info' | 'error';\n\nexport type TooltipVariant = 'base' | 'learnMore' | 'list-item';\n\nexport interface TooltipAssistiveText {\n\t/** This text is inside the info icon within the tooltip content and exists to \"complete the sentence\" for assistive tech users. */\n\ttooltipTipLearnMoreIcon?: string;\n\t/** This text is inside the info icon that triggers the tooltip in order to have text within the link. */\n\ttriggerLearnMoreIcon?: string;\n}\n\nexport interface TooltipLabels {\n\t/** This label appears in the tooltip after the info icon. */\n\tlearnMoreAfter?: string;\n\t/** This label appears in the tooltip before the info icon. */\n\tlearnMoreBefore?: string;\n}\n\nexport interface TooltipProps {\n\t/**\n\t * Alignment of the Tooltip relative to the element that triggers it.\n\t */\n\talign?: TooltipAlign;\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t */\n\tassistiveText?: TooltipAssistiveText;\n\t/**\n\t * Pass the one element that triggers the Tooltip as a child. It must be an element with `tabIndex` or an element that already has a `tabIndex` set such as an anchor or a button.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Content inside Tooltip.\n\t */\n\tcontent?: ReactNode;\n\t/**\n\t * CSS classes to be added to the popover dialog. That is the element with `.slds-popover` on it.\n\t */\n\tdialogClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Enabling this hides the default nubbin, replacing it with one attached directly to the tooltip trigger.\n\t */\n\thasAnchoredNubbin?: boolean;\n\t/**\n\t * By default, dialogs will flip their alignment if they extend beyond a boundary element.\n\t * `hasStaticAlignment` disables this behavior.\n\t */\n\thasStaticAlignment?: boolean;\n\t/**\n\t * Delay on Tooltip closing in milliseconds. Defaults to 50\n\t */\n\thoverCloseDelay?: number;\n\t/**\n\t * Delay on Tooltip opening in milliseconds. Defaults to 0\n\t */\n\thoverOpenDelay?: number;\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the popover to the triggering element.\n\t */\n\tid?: string;\n\t/**\n\t * **Text labels for internationalization**\n\t */\n\tlabels?: TooltipLabels;\n\t/**\n\t * Forces tooltip to be open. A value of `false` will disable any interaction with the tooltip.\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Callback that returns an element or React `ref` to align the Tooltip with.\n\t */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/**\n\t * Callback when the info icon in learn more variant is clicked\n\t */\n\tonClickTrigger?: (event: MouseEvent<HTMLAnchorElement>) => void;\n\t/**\n\t * CSS classes to be added to tag with `slds-tooltip-trigger`.\n\t */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents.\n\t * * `relative` - No styling or portals will be used.\n\t */\n\tposition?: TooltipPosition;\n\t/**\n\t * Custom styles to be added to wrapping triggering `div`.\n\t */\n\ttriggerStyle?: CSSProperties;\n\t/**\n\t * Determines the theme of tooltip: for informative purpose (blue background) or warning purpose (red background).\n\t */\n\ttheme?: TooltipTheme;\n\t/**\n\t * @deprecated Use onRequestTargetElement instead\n\t */\n\ttarget?: HTMLElement | null;\n\t/**\n\t * Determines the type of the tooltip.\n\t */\n\tvariant?: TooltipVariant;\n}\n\nconst defaultAssistiveText: TooltipAssistiveText = {\n\ttooltipTipLearnMoreIcon: 'this link',\n\ttriggerLearnMoreIcon: 'Help',\n};\n\nconst defaultLabels: TooltipLabels = {\n\tlearnMoreAfter: 'to learn more.',\n\tlearnMoreBefore: 'Click',\n};\n\n/**\n * The PopoverTooltip component is variant of the Lightning Design System Popover component.\n * This component wraps an element that triggers it to open. It must be a focusable child element\n * (either a button or an anchor), so that keyboard users can navigate to it.\n */\nconst Tooltip = ({\n\talign = 'top',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tcontent = <span>Tooltip</span>,\n\tdialogClassName,\n\thasAnchoredNubbin = false,\n\thasStaticAlignment = false,\n\thoverCloseDelay = 50,\n\thoverOpenDelay = 0,\n\tid: idProp,\n\tlabels: labelsProp,\n\tisOpen: isOpenProp,\n\tonRequestTargetElement,\n\tonClickTrigger,\n\ttriggerClassName,\n\tposition = 'absolute',\n\ttriggerStyle,\n\ttheme = 'info',\n\ttarget: deprecatedTarget,\n\tvariant = 'base',\n}: TooltipProps): React.ReactElement => {\n\t// Merge assistive text and labels with defaults\n\tconst assistiveText = { ...defaultAssistiveText, ...assistiveTextProp };\n\tconst labels = { ...defaultLabels, ...labelsProp };\n\n\t// Context\n\tconst iconSettings = useContext(IconSettingsContext);\n\n\t// State\n\tconst [isOpenState, setIsOpenState] = useState(false);\n\tconst [triggerRendered, setTriggerRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst tooltipTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst generatedIdRef = useRef(generateId());\n\tconst isUnmountingRef = useRef(false);\n\n\t// Check props in development\n\tuseEffect(() => {\n\t\tcheckProps(POPOVER_TOOLTIP, {\n\t\t\talign,\n\t\t\tassistiveText,\n\t\t\tchildren,\n\t\t\tcontent,\n\t\t\tdialogClassName,\n\t\t\thasAnchoredNubbin,\n\t\t\thasStaticAlignment,\n\t\t\thoverCloseDelay,\n\t\t\thoverOpenDelay,\n\t\t\tid: idProp,\n\t\t\tlabels,\n\t\t\tisOpen: isOpenProp,\n\t\t\tonRequestTargetElement,\n\t\t\tonClickTrigger,\n\t\t\ttriggerClassName,\n\t\t\tposition,\n\t\t\ttriggerStyle,\n\t\t\ttheme,\n\t\t\tvariant,\n\t\t}, componentDoc);\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// Get computed values\n\tconst getId = useCallback(() => {\n\t\treturn idProp || generatedIdRef.current;\n\t}, [idProp]);\n\n\tconst getIsOpen = useCallback(() => {\n\t\treturn isOpenProp === undefined ? isOpenState : isOpenProp;\n\t}, [isOpenProp, isOpenState]);\n\n\tconst getTooltipTarget = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\treturn onRequestTargetElement();\n\t\t}\n\n\t\t// for backwards compatibility\n\t\tif (deprecatedTarget) {\n\t\t\treturn deprecatedTarget;\n\t\t}\n\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement, deprecatedTarget]);\n\n\t// Event handlers\n\tconst handleCancel = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\tsetIsOpenState(false);\n\t}, []);\n\n\tconst handleMouseEnter = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current) {\n\t\t\t\tsetIsOpenState(true);\n\t\t\t}\n\t\t}, hoverOpenDelay);\n\t}, [hoverOpenDelay]);\n\n\tconst handleMouseLeave = useCallback((e: MouseEvent<HTMLElement> | FocusEvent<HTMLElement>) => {\n\t\te.stopPropagation();\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tconst relatedTarget = (e as MouseEvent<HTMLElement>).relatedTarget as HTMLElement | null;\n\t\t\tconst isHoveringTooltip =\n\t\t\t\trelatedTarget?.classList?.contains('slds-popover_tooltip') ||\n\t\t\t\trelatedTarget?.classList?.contains('slds-popover__body');\n\n\t\t\tif (!isUnmountingRef.current && !isHoveringTooltip) {\n\t\t\t\tsetIsOpenState(false);\n\t\t\t}\n\t\t}, hoverCloseDelay);\n\t}, [hoverCloseDelay]);\n\n\tconst handleKeyDown = useCallback((e: KeyboardEvent<HTMLElement>) => {\n\t\te.stopPropagation();\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current && e.key === 'Escape') {\n\t\t\t\tsetIsOpenState(false);\n\t\t\t}\n\t\t}, hoverCloseDelay);\n\t}, [hoverCloseDelay]);\n\n\t// Save trigger ref and trigger re-render once mounted\n\tconst saveTriggerRef = useCallback((component: HTMLDivElement | null) => {\n\t\tif (component && triggerRef.current !== component) {\n\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current = component;\n\t\t\t// Dialog/Popper.js cannot place the popover until\n\t\t\t// the trigger/target DOM node is mounted.\n\t\t\tif (!triggerRendered) {\n\t\t\t\tsetTriggerRendered(true);\n\t\t\t}\n\t\t}\n\t}, [triggerRendered]);\n\n\t// Render helpers\n\tconst getAnchoredNubbinStyles = () => {\n\t\tif (!hasAnchoredNubbin) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst alignment = align.split(' ')[0] as 'top' | 'bottom' | 'left' | 'right';\n\t\tconst nubbinContainerStyles: CSSProperties = {\n\t\t\theight: '0',\n\t\t\tposition: 'relative',\n\t\t\twidth: '0',\n\t\t};\n\t\tconst nubbinStyles: CSSProperties = {\n\t\t\tbackgroundColor: '#16325c',\n\t\t\tcontent: '\"\"',\n\t\t\theight: '1rem',\n\t\t\tposition: 'absolute',\n\t\t\ttransform: 'rotate(45deg)',\n\t\t\twidth: '1rem',\n\t\t};\n\t\tconst triggerDimensions = {\n\t\t\theight: triggerRef.current ? triggerRef.current.getBoundingClientRect().height : 0,\n\t\t\twidth: triggerRef.current ? triggerRef.current.getBoundingClientRect().width : 0,\n\t\t};\n\n\t\tswitch (alignment) {\n\t\t\tcase 'bottom': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height}px`;\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '3px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'left': {\n\t\t\t\tnubbinContainerStyles.left = '0';\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '-19px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'right': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '3px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// top\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = '0';\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '-19px';\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<style>{`#${getId()}:after, #${getId()}:before {\n\tdisplay: none;\n}`}</style>\n\t\t\t\t{getIsOpen() ? (\n\t\t\t\t\t<div style={nubbinContainerStyles}>\n\t\t\t\t\t\t<div style={nubbinStyles} />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getContent = () => {\n\t\tlet childrenToRender: ReactNode;\n\t\tconst noChildrenProvided = React.Children.count(children) === 0;\n\n\t\tif (noChildrenProvided && onClickTrigger) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<a\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tonClick={EventUtil.trappedHandler(onClickTrigger) as React.MouseEventHandler<HTMLAnchorElement>}\n\t\t\t\t>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t</a>\n\t\t\t);\n\t\t} else if (noChildrenProvided) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<Button\n\t\t\t\t\taria-disabled\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t}}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName=\"info\"\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t} else {\n\t\t\tchildrenToRender = children;\n\t\t}\n\n\t\treturn React.Children.map(childrenToRender, (child, i) => {\n\t\t\tif (!React.isValidElement(child)) {\n\t\t\t\treturn child;\n\t\t\t}\n\n\t\t\treturn React.cloneElement(child as React.ReactElement<{\n\t\t\t\tkey?: React.Key;\n\t\t\t\t'aria-describedby'?: string;\n\t\t\t\tonBlur?: (e: FocusEvent<HTMLElement>) => void;\n\t\t\t\tonFocus?: () => void;\n\t\t\t\tonMouseEnter?: () => void;\n\t\t\t\tonMouseLeave?: (e: MouseEvent<HTMLElement>) => void;\n\t\t\t\tonKeyDown?: (e: KeyboardEvent<HTMLElement>) => void;\n\t\t\t}>, {\n\t\t\t\tkey: i,\n\t\t\t\t'aria-describedby': getIsOpen() ? getId() : undefined,\n\t\t\t\tonBlur: handleMouseLeave,\n\t\t\t\tonFocus: handleMouseEnter,\n\t\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\t\tonKeyDown: handleKeyDown,\n\t\t\t});\n\t\t});\n\t};\n\n\tconst getTooltipContent = () => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst isErrorTheme = theme === 'error' || (variant as string) === 'error';\n\t\t\n\t\treturn (\n\t\t\t<div \n\t\t\t\tclassName={classNames('slds-popover__body', {\n\t\t\t\t\t// Ensure text contrast on error theme (red background needs white text)\n\t\t\t\t\t'slds-text-color_inverse': isErrorTheme,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t\t{variant === 'learnMore' && onClickTrigger ? (\n\t\t\t\t\t<div className=\"slds-m-top_x-small\" aria-hidden=\"true\">\n\t\t\t\t\t\t{labels.learnMoreBefore}{' '}\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\t\tlabel: assistiveText.tooltipTipLearnMoreIcon,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t{labels.learnMoreAfter}{' '}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst getTooltip = () => {\n\t\tconst isOpen = getIsOpen();\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst deprecatedWay = (variant as string) === 'error';\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\tcloseOnTabKey\n\t\t\t\thasNubbin\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t'slds-popover_tooltip',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-theme_error': theme === 'error' || deprecatedWay,\n\t\t\t\t\t},\n\t\t\t\t\tdialogClassName\n\t\t\t\t)}\n\t\t\t\talign={align}\n\t\t\t\tcontext={iconSettings}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\tonClose={handleCancel}\n\t\t\t\tonRequestTargetElement={getTooltipTarget}\n\t\t\t\tonMouseLeave={handleCancel}\n\t\t\t\tposition={position}\n\t\t\t\tvariant=\"tooltip\"\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: getId(),\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{getTooltipContent()}\n\t\t\t</Dialog>\n\t\t) : (\n\t\t\t<span />\n\t\t);\n\t};\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: 'inline-block',\n\t\tlineHeight: '1',\n\t\t...triggerStyle,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-tooltip-trigger', triggerClassName)}\n\t\t\tstyle={containerStyles}\n\t\t\tref={saveTriggerRef}\n\t\t>\n\t\t\t{getAnchoredNubbinStyles()}\n\t\t\t{getContent()}\n\t\t\t{getTooltip()}\n\t\t</div>\n\t);\n};\n\nTooltip.displayName = POPOVER_TOOLTIP;\n\nexport default Tooltip;\n\n"],"mappings":"8fA6JA,IAAM,EAA6C,CAClD,wBAAyB,YACzB,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B,IAAU,SAVX,IAAuB,OAW3C,EACA,CACD,EACO,QACP,QAAS,EACW,qBACpB,QAAS,EACT,uBAAwB,EACxB,aAAc,EACJ,WACV,QAAQ,UACR,eAAgB,CACf,GAAI,EAAM,CACX,EAEC,SAAA,GAAkB,CACZ,CAAA,GAER,EAAA,EAAA,IAAA,CAAC,OAAD,CAAO,CAAA,EAIH,GAAiC,CACtC,QAAS,eACT,WAAY,IACZ,GAAG,CACJ,EAEA,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,uBAAwB,CAAgB,EAC9D,MAAO,GACP,IAAK,EAHN,SAAA,CAKE,EAAwB,EACxB,GAAW,EACX,GAAW,CACR,GAEP,EAEA,EAAQ,YAAc,EAAA"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/tooltip/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\n// # Tooltip\n\nimport React, {\n\tuseState,\n\tuseEffect,\n\tuseRef,\n\tuseCallback,\n\tuseContext,\n\ttype ReactNode,\n\ttype CSSProperties,\n\ttype KeyboardEvent,\n\ttype FocusEvent,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\n\nimport EventUtil from '../../utilities/event';\nimport { POPOVER_TOOLTIP } from '../../utilities/constants';\nimport generateId from '../../utilities/generate-id';\n\nimport Dialog from '../utilities/dialog';\nimport Icon from '../icon';\n// eslint-disable-next-line import/no-cycle\nimport Button from '../button';\n\n// This component's `checkProps` which issues warnings to developers about properties when in development mode\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\nimport { IconSettingsContext } from '../icon-settings';\n\n// ### Types\n\nexport type TooltipAlign =\n\t| 'top'\n\t| 'top left'\n\t| 'top right'\n\t| 'right'\n\t| 'right top'\n\t| 'right bottom'\n\t| 'bottom'\n\t| 'bottom left'\n\t| 'bottom right'\n\t| 'left'\n\t| 'left top'\n\t| 'left bottom';\n\nexport type TooltipPosition =\n\t'absolute' | 'overflowBoundaryElement' | 'relative';\n\nexport type TooltipTheme = 'info' | 'error';\n\nexport type TooltipIconVariant = 'bare' | 'error' | 'inverse' | 'warning';\n\nexport type TooltipVariant = 'base' | 'learnMore' | 'list-item';\n\nexport interface TooltipAssistiveText {\n\t/** This text is inside the info icon within the tooltip content and exists to \"complete the sentence\" for assistive tech users. */\n\ttooltipTipLearnMoreIcon?: string;\n\t/** This text is inside the info icon that triggers the tooltip in order to have text within the link. */\n\ttriggerLearnMoreIcon?: string;\n}\n\nexport interface TooltipLabels {\n\t/** This label appears in the tooltip after the info icon. */\n\tlearnMoreAfter?: string;\n\t/** This label appears in the tooltip before the info icon. */\n\tlearnMoreBefore?: string;\n}\n\nexport interface TooltipProps {\n\t/**\n\t * Alignment of the Tooltip relative to the element that triggers it.\n\t */\n\talign?: TooltipAlign;\n\t/**\n\t * **Assistive text for accessibility**\n\t * This object is merged with the default props object on every render.\n\t */\n\tassistiveText?: TooltipAssistiveText;\n\t/**\n\t * Pass the one element that triggers the Tooltip as a child. It must be an element with `tabIndex` or an element that already has a `tabIndex` set such as an anchor or a button.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Content inside Tooltip.\n\t */\n\tcontent?: ReactNode;\n\t/**\n\t * CSS classes to be added to the popover dialog. That is the element with `.slds-popover` on it.\n\t */\n\tdialogClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Enabling this hides the default nubbin, replacing it with one attached directly to the tooltip trigger.\n\t */\n\thasAnchoredNubbin?: boolean;\n\t/**\n\t * By default, dialogs will flip their alignment if they extend beyond a boundary element.\n\t * `hasStaticAlignment` disables this behavior.\n\t */\n\thasStaticAlignment?: boolean;\n\t/**\n\t * Styles the default info icon trigger that renders when no children are passed. Matches `icon-variant` on `lightning-helptext`.\n\t * * `bare` - (default) Default icon color.\n\t * * `error` - Red icon, to call out an error.\n\t * * `inverse` - White icon, for dark backgrounds.\n\t * * `warning` - Yellow icon, to advise caution.\n\t */\n\ticonVariant?: TooltipIconVariant;\n\t/**\n\t * Delay on Tooltip closing in milliseconds. Defaults to 50\n\t */\n\thoverCloseDelay?: number;\n\t/**\n\t * Delay on Tooltip opening in milliseconds. Defaults to 0\n\t */\n\thoverOpenDelay?: number;\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the popover to the triggering element.\n\t */\n\tid?: string;\n\t/**\n\t * **Text labels for internationalization**\n\t */\n\tlabels?: TooltipLabels;\n\t/**\n\t * Forces tooltip to be open. A value of `false` will disable any interaction with the tooltip.\n\t */\n\tisOpen?: boolean;\n\t/**\n\t * Callback that returns an element or React `ref` to align the Tooltip with.\n\t */\n\tonRequestTargetElement?: () => HTMLElement | null;\n\t/**\n\t * Callback when the info icon in learn more variant is clicked\n\t */\n\tonClickTrigger?: (event: MouseEvent<HTMLAnchorElement>) => void;\n\t/**\n\t * CSS classes to be added to tag with `slds-tooltip-trigger`.\n\t */\n\ttriggerClassName?: string | string[] | Record<string, boolean>;\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents.\n\t * * `relative` - No styling or portals will be used.\n\t */\n\tposition?: TooltipPosition;\n\t/**\n\t * Custom styles to be added to wrapping triggering `div`.\n\t */\n\ttriggerStyle?: CSSProperties;\n\t/**\n\t * Determines the theme of tooltip: for informative purpose (blue background) or warning purpose (red background).\n\t */\n\ttheme?: TooltipTheme;\n\t/**\n\t * @deprecated Use onRequestTargetElement instead\n\t */\n\ttarget?: HTMLElement | null;\n\t/**\n\t * Determines the type of the tooltip.\n\t */\n\tvariant?: TooltipVariant;\n}\n\nconst defaultAssistiveText: TooltipAssistiveText = {\n\ttooltipTipLearnMoreIcon: 'this link',\n\ttriggerLearnMoreIcon: 'Help',\n};\n\nconst defaultLabels: TooltipLabels = {\n\tlearnMoreAfter: 'to learn more.',\n\tlearnMoreBefore: 'Click',\n};\n\n/**\n * The PopoverTooltip component is variant of the Lightning Design System Popover component.\n * This component wraps an element that triggers it to open. It must be a focusable child element\n * (either a button or an anchor), so that keyboard users can navigate to it.\n */\nconst Tooltip = ({\n\talign = 'top',\n\tassistiveText: assistiveTextProp,\n\tchildren,\n\tcontent = <span>Tooltip</span>,\n\tdialogClassName,\n\thasAnchoredNubbin = false,\n\thasStaticAlignment = false,\n\thoverCloseDelay = 50,\n\thoverOpenDelay = 0,\n\ticonVariant = 'bare',\n\tid: idProp,\n\tlabels: labelsProp,\n\tisOpen: isOpenProp,\n\tonRequestTargetElement,\n\tonClickTrigger,\n\ttriggerClassName,\n\tposition = 'absolute',\n\ttriggerStyle,\n\ttheme = 'info',\n\ttarget: deprecatedTarget,\n\tvariant = 'base',\n}: TooltipProps): React.ReactElement => {\n\t// Merge assistive text and labels with defaults\n\tconst assistiveText = { ...defaultAssistiveText, ...assistiveTextProp };\n\tconst labels = { ...defaultLabels, ...labelsProp };\n\n\t// Context\n\tconst iconSettings = useContext(IconSettingsContext);\n\n\t// State\n\tconst [isOpenState, setIsOpenState] = useState(false);\n\tconst [triggerRendered, setTriggerRendered] = useState(false);\n\n\t// Refs\n\tconst triggerRef = useRef<HTMLDivElement>(null);\n\tconst tooltipTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst generatedIdRef = useRef(generateId());\n\tconst isUnmountingRef = useRef(false);\n\n\t// Check props in development\n\tuseEffect(() => {\n\t\tcheckProps(\n\t\t\tPOPOVER_TOOLTIP,\n\t\t\t{\n\t\t\t\talign,\n\t\t\t\tassistiveText,\n\t\t\t\tchildren,\n\t\t\t\tcontent,\n\t\t\t\tdialogClassName,\n\t\t\t\thasAnchoredNubbin,\n\t\t\t\thasStaticAlignment,\n\t\t\t\thoverCloseDelay,\n\t\t\t\thoverOpenDelay,\n\t\t\t\ticonVariant,\n\t\t\t\tid: idProp,\n\t\t\t\tlabels,\n\t\t\t\tisOpen: isOpenProp,\n\t\t\t\tonRequestTargetElement,\n\t\t\t\tonClickTrigger,\n\t\t\t\ttriggerClassName,\n\t\t\t\tposition,\n\t\t\t\ttriggerStyle,\n\t\t\t\ttheme,\n\t\t\t\tvariant,\n\t\t\t},\n\t\t\tcomponentDoc\n\t\t);\n\t}, []);\n\n\t// Cleanup on unmount\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tisUnmountingRef.current = true;\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// Get computed values\n\tconst getId = useCallback(() => {\n\t\treturn idProp || generatedIdRef.current;\n\t}, [idProp]);\n\n\tconst getIsOpen = useCallback(() => {\n\t\treturn isOpenProp === undefined ? isOpenState : isOpenProp;\n\t}, [isOpenProp, isOpenState]);\n\n\tconst getTooltipTarget = useCallback(() => {\n\t\tif (onRequestTargetElement) {\n\t\t\treturn onRequestTargetElement();\n\t\t}\n\n\t\t// for backwards compatibility\n\t\tif (deprecatedTarget) {\n\t\t\treturn deprecatedTarget;\n\t\t}\n\n\t\treturn triggerRef.current;\n\t}, [onRequestTargetElement, deprecatedTarget]);\n\n\t// Event handlers\n\tconst handleCancel = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\tsetIsOpenState(false);\n\t}, []);\n\n\tconst handleMouseEnter = useCallback(() => {\n\t\tif (tooltipTimeoutRef.current) {\n\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t}\n\n\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\tif (!isUnmountingRef.current) {\n\t\t\t\tsetIsOpenState(true);\n\t\t\t}\n\t\t}, hoverOpenDelay);\n\t}, [hoverOpenDelay]);\n\n\tconst handleMouseLeave = useCallback(\n\t\t(e: MouseEvent<HTMLElement> | FocusEvent<HTMLElement>) => {\n\t\t\te.stopPropagation();\n\t\t\tif (tooltipTimeoutRef.current) {\n\t\t\t\tclearTimeout(tooltipTimeoutRef.current);\n\t\t\t}\n\n\t\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\t\tconst relatedTarget = (e as MouseEvent<HTMLElement>)\n\t\t\t\t\t.relatedTarget as HTMLElement | null;\n\t\t\t\tconst isHoveringTooltip =\n\t\t\t\t\trelatedTarget?.classList?.contains('slds-popover_tooltip') ||\n\t\t\t\t\trelatedTarget?.classList?.contains('slds-popover__body');\n\n\t\t\t\tif (!isUnmountingRef.current && !isHoveringTooltip) {\n\t\t\t\t\tsetIsOpenState(false);\n\t\t\t\t}\n\t\t\t}, hoverCloseDelay);\n\t\t},\n\t\t[hoverCloseDelay]\n\t);\n\n\tconst handleKeyDown = useCallback(\n\t\t(e: KeyboardEvent<HTMLElement>) => {\n\t\t\te.stopPropagation();\n\n\t\t\ttooltipTimeoutRef.current = setTimeout(() => {\n\t\t\t\tif (!isUnmountingRef.current && e.key === 'Escape') {\n\t\t\t\t\tsetIsOpenState(false);\n\t\t\t\t}\n\t\t\t}, hoverCloseDelay);\n\t\t},\n\t\t[hoverCloseDelay]\n\t);\n\n\t// Save trigger ref and trigger re-render once mounted\n\tconst saveTriggerRef = useCallback(\n\t\t(component: HTMLDivElement | null) => {\n\t\t\tif (component && triggerRef.current !== component) {\n\t\t\t\t(triggerRef as React.MutableRefObject<HTMLDivElement | null>).current =\n\t\t\t\t\tcomponent;\n\t\t\t\t// Dialog/Popper.js cannot place the popover until\n\t\t\t\t// the trigger/target DOM node is mounted.\n\t\t\t\tif (!triggerRendered) {\n\t\t\t\t\tsetTriggerRendered(true);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[triggerRendered]\n\t);\n\n\t// Render helpers\n\tconst getAnchoredNubbinStyles = () => {\n\t\tif (!hasAnchoredNubbin) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst alignment = align.split(' ')[0] as\n\t\t\t'top' | 'bottom' | 'left' | 'right';\n\t\tconst nubbinContainerStyles: CSSProperties = {\n\t\t\theight: '0',\n\t\t\tposition: 'relative',\n\t\t\twidth: '0',\n\t\t};\n\t\tconst nubbinStyles: CSSProperties = {\n\t\t\tbackgroundColor: '#16325c',\n\t\t\tcontent: '\"\"',\n\t\t\theight: '1rem',\n\t\t\tposition: 'absolute',\n\t\t\ttransform: 'rotate(45deg)',\n\t\t\twidth: '1rem',\n\t\t};\n\t\tconst triggerDimensions = {\n\t\t\theight: triggerRef.current\n\t\t\t\t? triggerRef.current.getBoundingClientRect().height\n\t\t\t\t: 0,\n\t\t\twidth: triggerRef.current\n\t\t\t\t? triggerRef.current.getBoundingClientRect().width\n\t\t\t\t: 0,\n\t\t};\n\n\t\tswitch (alignment) {\n\t\t\tcase 'bottom': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height}px`;\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '3px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'left': {\n\t\t\t\tnubbinContainerStyles.left = '0';\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '-19px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'right': {\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width}px`;\n\t\t\t\tnubbinContainerStyles.top = `${triggerDimensions.height / 2}px`;\n\t\t\t\tnubbinStyles.left = '3px';\n\t\t\t\tnubbinStyles.top = '-9px';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// top\n\t\t\t\tnubbinContainerStyles.left = `${triggerDimensions.width / 2}px`;\n\t\t\t\tnubbinContainerStyles.top = '0';\n\t\t\t\tnubbinStyles.left = '-8px';\n\t\t\t\tnubbinStyles.top = '-19px';\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<style>{`#${getId()}:after, #${getId()}:before {\n\tdisplay: none;\n}`}</style>\n\t\t\t\t{getIsOpen() ? (\n\t\t\t\t\t<div style={nubbinContainerStyles}>\n\t\t\t\t\t\t<div style={nubbinStyles} />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getContent = () => {\n\t\tlet childrenToRender: ReactNode;\n\t\tconst noChildrenProvided = React.Children.count(children) === 0;\n\t\tconst isInverseIcon = iconVariant === 'inverse';\n\t\tconst iconColorVariant =\n\t\t\ticonVariant === 'error' || iconVariant === 'warning'\n\t\t\t\t? iconVariant\n\t\t\t\t: undefined;\n\n\t\tif (noChildrenProvided && onClickTrigger) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<a\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tonClick={\n\t\t\t\t\t\tEventUtil.trappedHandler(\n\t\t\t\t\t\t\tonClickTrigger\n\t\t\t\t\t\t) as React.MouseEventHandler<HTMLAnchorElement>\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tcolorVariant={iconColorVariant}\n\t\t\t\t\t\tinverse={isInverseIcon}\n\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t</a>\n\t\t\t);\n\t\t} else if (noChildrenProvided) {\n\t\t\tchildrenToRender = (\n\t\t\t\t<Button\n\t\t\t\t\taria-disabled\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText.triggerLearnMoreIcon,\n\t\t\t\t\t}}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonClassName={\n\t\t\t\t\t\ticonColorVariant && `slds-icon-text-${iconColorVariant}`\n\t\t\t\t\t}\n\t\t\t\t\ticonName=\"info\"\n\t\t\t\t\t// `bare` keeps `slds-button_icon`, which Button drops for `inverse` alone\n\t\t\t\t\ticonVariant={isInverseIcon ? 'bare' : undefined}\n\t\t\t\t\tinverse={isInverseIcon}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t} else {\n\t\t\tchildrenToRender = children;\n\t\t}\n\n\t\treturn React.Children.map(childrenToRender, (child, i) => {\n\t\t\tif (!React.isValidElement(child)) {\n\t\t\t\treturn child;\n\t\t\t}\n\n\t\t\treturn React.cloneElement(\n\t\t\t\tchild as React.ReactElement<{\n\t\t\t\t\tkey?: React.Key;\n\t\t\t\t\t'aria-describedby'?: string;\n\t\t\t\t\tonBlur?: (e: FocusEvent<HTMLElement>) => void;\n\t\t\t\t\tonFocus?: () => void;\n\t\t\t\t\tonMouseEnter?: () => void;\n\t\t\t\t\tonMouseLeave?: (e: MouseEvent<HTMLElement>) => void;\n\t\t\t\t\tonKeyDown?: (e: KeyboardEvent<HTMLElement>) => void;\n\t\t\t\t}>,\n\t\t\t\t{\n\t\t\t\t\tkey: i,\n\t\t\t\t\t'aria-describedby': getIsOpen() ? getId() : undefined,\n\t\t\t\t\tonBlur: handleMouseLeave,\n\t\t\t\t\tonFocus: handleMouseEnter,\n\t\t\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\t\t\tonKeyDown: handleKeyDown,\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t};\n\n\tconst getTooltipContent = () => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst isErrorTheme = theme === 'error' || (variant as string) === 'error';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames('slds-popover__body', {\n\t\t\t\t\t// Ensure text contrast on error theme (red background needs white text)\n\t\t\t\t\t'slds-text-color_inverse': isErrorTheme,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t\t{variant === 'learnMore' && onClickTrigger ? (\n\t\t\t\t\t<div className=\"slds-m-top_x-small\" aria-hidden=\"true\">\n\t\t\t\t\t\t{labels.learnMoreBefore}{' '}\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\t\tlabel: assistiveText.tooltipTipLearnMoreIcon,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\t\tinverse\n\t\t\t\t\t\t\tname=\"info\"\n\t\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t{labels.learnMoreAfter}{' '}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst getTooltip = () => {\n\t\tconst isOpen = getIsOpen();\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE (v1.0 or v0.9)\n\t\t// Support deprecated 'error' variant value (now use theme='error')\n\t\tconst deprecatedWay = (variant as string) === 'error';\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\tcloseOnTabKey\n\t\t\t\thasNubbin\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-popover',\n\t\t\t\t\t'slds-popover_tooltip',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-theme_error': theme === 'error' || deprecatedWay,\n\t\t\t\t\t},\n\t\t\t\t\tdialogClassName\n\t\t\t\t)}\n\t\t\t\talign={align}\n\t\t\t\tcontext={iconSettings}\n\t\t\t\thasStaticAlignment={hasStaticAlignment}\n\t\t\t\tonClose={handleCancel}\n\t\t\t\tonRequestTargetElement={getTooltipTarget}\n\t\t\t\tonMouseLeave={handleCancel}\n\t\t\t\tposition={position}\n\t\t\t\tvariant=\"tooltip\"\n\t\t\t\tcontainerProps={{\n\t\t\t\t\tid: getId(),\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{getTooltipContent()}\n\t\t\t</Dialog>\n\t\t) : (\n\t\t\t<span />\n\t\t);\n\t};\n\n\tconst containerStyles: CSSProperties = {\n\t\tdisplay: 'inline-block',\n\t\tlineHeight: '1',\n\t\t...triggerStyle,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-tooltip-trigger', triggerClassName)}\n\t\t\tstyle={containerStyles}\n\t\t\tref={saveTriggerRef}\n\t\t>\n\t\t\t{getAnchoredNubbinStyles()}\n\t\t\t{getContent()}\n\t\t\t{getTooltip()}\n\t\t</div>\n\t);\n};\n\nTooltip.displayName = POPOVER_TOOLTIP;\n\nexport default Tooltip;\n"],"mappings":"6lBAwKA,IAAM,EAA6C,CAClD,wBAAyB,YACzB,qBAAsB,MACvB,EAEM,EAA+B,CACpC,eAAgB,iBAChB,gBAAiB,OAClB,EAOM,GAAW,CAChB,QAAQ,MACR,cAAe,EACf,WACA,WAAU,EAAA,EAAA,IAAA,CAAC,OAAD,CAAA,SAAM,SAAa,CAAA,EAC7B,kBACA,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,iBAAiB,EACjB,cAAc,OACd,GAAI,EACJ,OAAQ,EACR,OAAQ,EACR,yBACA,iBACA,mBACA,WAAW,WACX,eACA,QAAQ,OACR,OAAQ,EACR,UAAU,UAC6B,CAEvC,IAAM,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAChE,EAAS,CAAE,GAAG,EAAe,GAAG,CAAW,EAG3C,GAAA,EAAe,EAAA,WAAA,CAAW,EAAA,mBAAmB,EAG7C,CAAC,EAAa,IAAA,EAAkB,EAAA,SAAA,CAAS,EAAK,EAC9C,CAAC,EAAiB,IAAA,EAAsB,EAAA,SAAA,CAAS,EAAK,EAGtD,GAAA,EAAa,EAAA,OAAA,CAAuB,IAAI,EACxC,GAAA,EAAoB,EAAA,OAAA,CAA6C,IAAI,E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Tag]:{value:`Module`}});const e=require("./tree.cjs");exports.Tree=e.default,exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./tree/index.cjs');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={timeLeftUnitAfter:`left in trial`},o=({children:e,className:t,labels:n,onRenderActions:o,style:s})=>{let c={...a,...n};return(0,i.jsxs)(`div`,{className:(0,r.default)(`slds-trial-header slds-grid`,t),style:s,children:[(0,i.jsx)(`div`,{className:`slds-grid`,children:e}),(0,i.jsxs)(`div`,{className:`slds-grid slds-grid_vertical-align-center slds-col_bump-left`,children:[(0,i.jsx)(`span`,{className:`slds-box slds-box_xx-small slds-theme_default`,children:c.timeLeft}),(0,i.jsxs)(`span`,{className:`slds-m-horizontal_x-small`,children:[c.timeLeftUnit,c.timeLeftUnitAfter&&` ${c.timeLeftUnitAfter}`]}),o?.()]})]})};o.displayName=t.TRIAL_BAR,exports.default=o;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={timeLeftUnitAfter:`left in trial`},o=({children:e,className:t,labels:n,onRenderActions:o,style:s})=>{let c={...a,...n};return(0,i.jsxs)(`div`,{className:(0,r.default)(`slds-trial-header slds-grid`,t),style:s,children:[(0,i.jsx)(`div`,{className:`slds-grid`,children:e}),(0,i.jsxs)(`div`,{className:`slds-grid slds-grid_vertical-align-center slds-col_bump-left`,children:[(0,i.jsx)(`span`,{className:`slds-box slds-box_xx-small slds-theme_default`,children:c.timeLeft}),(0,i.jsxs)(`span`,{className:`slds-m-horizontal_x-small`,children:[c.timeLeftUnit,c.timeLeftUnitAfter&&` ${c.timeLeftUnitAfter}`]}),o?.()]})]})};o.displayName=t.TRIAL_BAR,exports.default=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/trial-bar/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, { type ReactNode, type CSSProperties } from 'react';\nimport classNames from 'classnames';\nimport { TRIAL_BAR } from '../../utilities/constants';\n\n/**\n * Labels for TrialBar\n */\nexport interface TrialBarLabels {\n\t/** Amount of time left */\n\ttimeLeft?: string;\n\t/** Unit of time */\n\ttimeLeftUnit?: string;\n\t/** Text after time unit */\n\ttimeLeftUnitAfter?: string;\n}\n\n/**\n * Props for the TrialBar component\n */\nexport interface TrialBarProps {\n\t/** TrialBarButton or TrialBarDropdown children */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Text labels */\n\tlabels?: TrialBarLabels;\n\t/** Render function for actions section */\n\tonRenderActions?: () => ReactNode;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n}\n\nconst defaultLabels: TrialBarLabels = {\n\ttimeLeftUnitAfter: 'left in trial',\n};\n\n/**\n * Trial bar components are used to provide an interactive and educational\n * prospect experience for setup.\n */\nconst TrialBar = ({\n\tchildren,\n\tclassName,\n\tlabels: propLabels,\n\tonRenderActions,\n\tstyle,\n}: TrialBarProps): React.ReactElement => {\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-trial-header slds-grid', className as string)}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t<div className=\"slds-grid\">{children}</div>\n\t\t\t<div className=\"slds-grid slds-grid_vertical-align-center slds-col_bump-left\">\n\t\t\t\t<span className=\"slds-box slds-box_xx-small slds-theme_default\">\n\t\t\t\t\t{labels.timeLeft}\n\t\t\t\t</span>\n\t\t\t\t<span className=\"slds-m-horizontal_x-small\">\n\t\t\t\t\t{labels.timeLeftUnit}\n\t\t\t\t\t{labels.timeLeftUnitAfter && ` ${labels.timeLeftUnitAfter}`}\n\t\t\t\t</span>\n\t\t\t\t{onRenderActions?.()}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nTrialBar.displayName = TRIAL_BAR;\n\nexport default TrialBar;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/trial-bar/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, { type ReactNode, type CSSProperties } from 'react';\nimport classNames from 'classnames';\nimport { TRIAL_BAR } from '../../utilities/constants';\n\n/**\n * Labels for TrialBar\n */\nexport interface TrialBarLabels {\n\t/** Amount of time left */\n\ttimeLeft?: string;\n\t/** Unit of time */\n\ttimeLeftUnit?: string;\n\t/** Text after time unit */\n\ttimeLeftUnitAfter?: string;\n}\n\n/**\n * Props for the TrialBar component\n */\nexport interface TrialBarProps {\n\t/** TrialBarButton or TrialBarDropdown children */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Text labels */\n\tlabels?: TrialBarLabels;\n\t/** Render function for actions section */\n\tonRenderActions?: () => ReactNode;\n\t/** Custom styles */\n\tstyle?: CSSProperties;\n}\n\nconst defaultLabels: TrialBarLabels = {\n\ttimeLeftUnitAfter: 'left in trial',\n};\n\n/**\n * Trial bar components are used to provide an interactive and educational\n * prospect experience for setup.\n */\nconst TrialBar = ({\n\tchildren,\n\tclassName,\n\tlabels: propLabels,\n\tonRenderActions,\n\tstyle,\n}: TrialBarProps): React.ReactElement => {\n\tconst labels = { ...defaultLabels, ...propLabels };\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames('slds-trial-header slds-grid', className as string)}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t<div className=\"slds-grid\">{children}</div>\n\t\t\t<div className=\"slds-grid slds-grid_vertical-align-center slds-col_bump-left\">\n\t\t\t\t<span className=\"slds-box slds-box_xx-small slds-theme_default\">\n\t\t\t\t\t{labels.timeLeft}\n\t\t\t\t</span>\n\t\t\t\t<span className=\"slds-m-horizontal_x-small\">\n\t\t\t\t\t{labels.timeLeftUnit}\n\t\t\t\t\t{labels.timeLeftUnitAfter && ` ${labels.timeLeftUnitAfter}`}\n\t\t\t\t</span>\n\t\t\t\t{onRenderActions?.()}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nTrialBar.displayName = TRIAL_BAR;\n\nexport default TrialBar;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"0TAmCA,IAAM,EAAgC,CACrC,kBAAmB,eACpB,EAMM,GAAY,CACjB,WACA,YACA,OAAQ,EACR,kBACA,WACwC,CACxC,IAAM,EAAS,CAAE,GAAG,EAAe,GAAG,CAAW,EAEjD,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,8BAA+B,CAAmB,EACjE,QAFR,SAAA,EAIC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,YAAa,UAAc,CAAA,GAC1C,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,+DAAf,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,gDACd,SAAA,EAAO,QACH,CAAA,GACN,EAAA,EAAA,KAAA,CAAC,OAAD,CAAM,UAAU,4BAAhB,SAAA,CACE,EAAO,aACP,EAAO,mBAAqB,IAAI,EAAO,mBACnC,IACL,IAAkB,CACf,CACD,CAAA,CAAA,GAEP,EAEA,EAAS,YAAc,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("./private/item.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("classnames");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=({categories:e,className:t,id:o,onSelect:s,selectedId:c})=>{let l=(0,r.useId)(),u=o||l,d=(0,r.useMemo)(()=>{if(c)return c;if(e.length>0&&e[0].items?.length>0)return e[0].items[0].id},[c,e]);return(0,a.jsx)(`nav`,{id:u,className:(0,i.default)(`slds-nav-vertical`,t),children:e.map(e=>{let t=`${u}-${e.id}`;return(0,a.jsxs)(`div`,{className:`slds-nav-vertical__section`,children:[(0,a.jsx)(`h2`,{id:t,className:`slds-nav-vertical__title`,children:e.label}),(0,a.jsx)(`ul`,{children:e.items.map(e=>(0,a.jsx)(n.default,{item:e,isSelected:e.id===d,categoryId:t,onSelect:s},e.id))},t)]},`${t}-header`)})})};o.displayName=t.VERTICAL_NAVIGATION,exports.default=o;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("./private/item.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("classnames");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=({categories:e,className:t,id:o,onSelect:s,selectedId:c})=>{let l=(0,r.useId)(),u=o||l,d=(0,r.useMemo)(()=>{if(c)return c;if(e.length>0&&e[0].items?.length>0)return e[0].items[0].id},[c,e]);return(0,a.jsx)(`nav`,{id:u,className:(0,i.default)(`slds-nav-vertical`,t),children:e.map(e=>{let t=`${u}-${e.id}`;return(0,a.jsxs)(`div`,{className:`slds-nav-vertical__section`,children:[(0,a.jsx)(`h2`,{id:t,className:`slds-nav-vertical__title`,children:e.label}),(0,a.jsx)(`ul`,{children:e.items.map(e=>(0,a.jsx)(n.default,{item:e,isSelected:e.id===d,categoryId:t,onSelect:s},e.id))},t)]},`${t}-header`)})})};o.displayName=t.VERTICAL_NAVIGATION,exports.default=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","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, { useId, useMemo, type MouseEvent } from 'react';\nimport classNames from 'classnames';\nimport { VERTICAL_NAVIGATION } from '../../utilities/constants';\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/** Additional custom properties */\n\t[key: string]: unknown;\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?: (event: MouseEvent<HTMLAnchorElement>, data: NavigationSelectData) => 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 key={`${categoryId}-header`} className=\"slds-nav-vertical__section\">\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","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, { useId, useMemo, type MouseEvent } from 'react';\nimport classNames from 'classnames';\nimport { VERTICAL_NAVIGATION } from '../../utilities/constants';\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/** Additional custom properties */\n\t[key: string]: unknown;\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?: (event: MouseEvent<HTMLAnchorElement>, data: NavigationSelectData) => 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 key={`${categoryId}-header`} className=\"slds-nav-vertical__section\">\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"0VA6DA,IAAM,GAAsB,CAC3B,aACA,YACA,GAAI,EACJ,WACA,WAAY,KACsC,CAClD,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAS,GAAU,EAGnB,GAAA,EAAa,EAAA,QAAA,KAAc,CAChC,GAAI,EACH,OAAO,EAER,GAAI,EAAW,OAAS,GAAK,EAAW,EAAE,CAAC,OAAO,OAAS,EAC1D,OAAO,EAAW,EAAE,CAAC,MAAM,EAAE,CAAC,EAGhC,EAAG,CAAC,EAAgB,CAAU,CAAC,EAE/B,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,GAAI,EACJ,WAAA,EAAW,EAAA,QAAA,CAAW,oBAAqB,CAAmB,EAE7D,SAAA,EAAW,IAAK,GAAa,CAC7B,IAAM,EAAa,GAAG,EAAO,GAAG,EAAS,KACzC,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CAAkC,UAAU,6BAA5C,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,KAAD,CAAI,GAAI,EAAY,UAAU,2BAC5B,SAAA,EAAS,KACP,CAAA,GACJ,EAAA,EAAA,IAAA,CAAC,KAAD,CAAA,SACE,EAAS,MAAM,IAAK,IACpB,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CAEO,OACN,WAAY,EAAK,KAAO,EACZ,aACF,UACV,EALK,EAAK,EAKV,CACD,CACE,EAVK,CAUL,CACA,CAfK,EAAA,GAAG,EAAW,QAenB,CAEP,CAAC,CACG,CAAA,CAEP,EAEA,EAAmB,YAAc,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({children:e,className:t,coverable:a,id:o,label:s,links:c=!1,size:l=`medium`,vertical:u=!1})=>{let d=(0,n.useId)(),f=o||d;if(c)return(0,i.jsx)(`div`,{className:`slds-form-element__control`,children:e});let p=(e,t)=>{if(!n.default.isValidElement(e))return e;if(e.type===n.default.Fragment){let r=e.props;return n.default.cloneElement(e,void 0,n.default.Children.map(r.children,(e,n)=>p(e,`${t}-${n}`)))}return n.default.cloneElement(e,{index:`${f}-${t}`,coverable:a,variant:`visual-picker`,name:`${f}_options`,size:l,vertical:!!u})},m=n.default.Children.map(e,(e,t)=>p(e,t));return(0,i.jsxs)(`fieldset`,{id:f,className:(0,r.default)(`slds-form-element`,t),children:[(0,i.jsx)(`legend`,{className:`slds-form-element__legend slds-form-element__label`,children:s}),(0,i.jsx)(`div`,{className:`slds-form-element__control`,children:m})]})};a.displayName=t.VISUAL_PICKER,exports.default=a;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({children:e,className:t,coverable:a,id:o,label:s,links:c=!1,size:l=`medium`,vertical:u=!1})=>{let d=(0,n.useId)(),f=o||d;if(c)return(0,i.jsx)(`div`,{className:`slds-form-element__control`,children:e});let p=(e,t)=>{if(!n.default.isValidElement(e))return e;if(e.type===n.default.Fragment){let r=e.props;return n.default.cloneElement(e,void 0,n.default.Children.map(r.children,(e,n)=>p(e,`${t}-${n}`)))}return n.default.cloneElement(e,{index:`${f}-${t}`,coverable:a,variant:`visual-picker`,name:`${f}_options`,size:l,vertical:!!u})},m=n.default.Children.map(e,(e,t)=>p(e,t));return(0,i.jsxs)(`fieldset`,{id:f,className:(0,r.default)(`slds-form-element`,t),children:[(0,i.jsx)(`legend`,{className:`slds-form-element__legend slds-form-element__label`,children:s}),(0,i.jsx)(`div`,{className:`slds-form-element__control`,children:m})]})};a.displayName=t.VISUAL_PICKER,exports.default=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/visual-picker/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, type ReactNode, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport { VISUAL_PICKER } from '../../utilities/constants';\n\n/**\n * Visual picker size options\n */\nexport type VisualPickerSize = 'medium' | 'large';\n\n/**\n * Props for child elements that can be cloned\n */\nexport interface VisualPickerChildProps {\n\tindex?: string;\n\tcoverable?: boolean;\n\tvariant?: string;\n\tname?: string;\n\tsize?: VisualPickerSize;\n\tvertical?: boolean;\n}\n\n/**\n * Props for the VisualPicker component\n */\nexport interface VisualPickerProps {\n\t/** Visual Picker children (Checkbox, Radio, VisualPickerLink) */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Whether items are coverable on selection */\n\tcoverable?: boolean;\n\t/** HTML id */\n\tid?: string;\n\t/** Label for the visual picker */\n\tlabel?: string;\n\t/** Whether the picker has links as children */\n\tlinks?: boolean;\n\t/** Size of the picker */\n\tsize?: VisualPickerSize;\n\t/** Whether layout is vertical */\n\tvertical?: boolean;\n}\n\n/**\n * Visual Picker allows users to select an option from a set of visual choices.\n */\nconst VisualPicker = ({\n\tchildren,\n\tclassName,\n\tcoverable,\n\tid: propId,\n\tlabel,\n\tlinks = false,\n\tsize = 'medium',\n\tvertical = false,\n}: VisualPickerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tif (links) {\n\t\treturn <div className=\"slds-form-element__control\">{children}</div>;\n\t}\n\n\t// Clone the picker props onto each real option element. When an option is a\n\t// `React.Fragment` (e.g. children grouped with `<>...</>`), the injected props\n\t// must NOT land on the Fragment — it only accepts `key`/`children` — so recurse\n\t// into its children instead.\n\tconst decorateOption = (\n\t\toption: ReactNode,\n\t\tindex: number | string\n\t): ReactNode => {\n\t\tif (!React.isValidElement(option)) return option;\n\n\t\tif (option.type === React.Fragment) {\n\t\t\tconst fragmentProps = option.props as { children?: ReactNode };\n\t\t\treturn React.cloneElement(\n\t\t\t\toption as ReactElement<{ children?: ReactNode }>,\n\t\t\t\tundefined,\n\t\t\t\tReact.Children.map(fragmentProps.children, (child, childIndex) =>\n\t\t\t\t\tdecorateOption(child, `${index}-${childIndex}`)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn React.cloneElement(option as ReactElement<VisualPickerChildProps>, {\n\t\t\tindex: `${id}-${index}`,\n\t\t\tcoverable,\n\t\t\tvariant: 'visual-picker',\n\t\t\tname: `${id}_options`,\n\t\t\tsize,\n\t\t\tvertical: !!vertical,\n\t\t});\n\t};\n\n\tconst options = React.Children.map(children, (option, index) =>\n\t\tdecorateOption(option, index)\n\t);\n\n\treturn (\n\t\t<fieldset id={id} className={classNames('slds-form-element', className as string)}>\n\t\t\t<legend className=\"slds-form-element__legend slds-form-element__label\">{label}</legend>\n\t\t\t<div className=\"slds-form-element__control\">{options}</div>\n\t\t</fieldset>\n\t);\n};\n\nVisualPicker.displayName = VISUAL_PICKER;\n\nexport default VisualPicker;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/visual-picker/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, type ReactNode, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport { VISUAL_PICKER } from '../../utilities/constants';\n\n/**\n * Visual picker size options\n */\nexport type VisualPickerSize = 'medium' | 'large';\n\n/**\n * Props for child elements that can be cloned\n */\nexport interface VisualPickerChildProps {\n\tindex?: string;\n\tcoverable?: boolean;\n\tvariant?: string;\n\tname?: string;\n\tsize?: VisualPickerSize;\n\tvertical?: boolean;\n}\n\n/**\n * Props for the VisualPicker component\n */\nexport interface VisualPickerProps {\n\t/** Visual Picker children (Checkbox, Radio, VisualPickerLink) */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Whether items are coverable on selection */\n\tcoverable?: boolean;\n\t/** HTML id */\n\tid?: string;\n\t/** Label for the visual picker */\n\tlabel?: string;\n\t/** Whether the picker has links as children */\n\tlinks?: boolean;\n\t/** Size of the picker */\n\tsize?: VisualPickerSize;\n\t/** Whether layout is vertical */\n\tvertical?: boolean;\n}\n\n/**\n * Visual Picker allows users to select an option from a set of visual choices.\n */\nconst VisualPicker = ({\n\tchildren,\n\tclassName,\n\tcoverable,\n\tid: propId,\n\tlabel,\n\tlinks = false,\n\tsize = 'medium',\n\tvertical = false,\n}: VisualPickerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tif (links) {\n\t\treturn <div className=\"slds-form-element__control\">{children}</div>;\n\t}\n\n\t// Clone the picker props onto each real option element. When an option is a\n\t// `React.Fragment` (e.g. children grouped with `<>...</>`), the injected props\n\t// must NOT land on the Fragment — it only accepts `key`/`children` — so recurse\n\t// into its children instead.\n\tconst decorateOption = (\n\t\toption: ReactNode,\n\t\tindex: number | string\n\t): ReactNode => {\n\t\tif (!React.isValidElement(option)) return option;\n\n\t\tif (option.type === React.Fragment) {\n\t\t\tconst fragmentProps = option.props as { children?: ReactNode };\n\t\t\treturn React.cloneElement(\n\t\t\t\toption as ReactElement<{ children?: ReactNode }>,\n\t\t\t\tundefined,\n\t\t\t\tReact.Children.map(fragmentProps.children, (child, childIndex) =>\n\t\t\t\t\tdecorateOption(child, `${index}-${childIndex}`)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn React.cloneElement(option as ReactElement<VisualPickerChildProps>, {\n\t\t\tindex: `${id}-${index}`,\n\t\t\tcoverable,\n\t\t\tvariant: 'visual-picker',\n\t\t\tname: `${id}_options`,\n\t\t\tsize,\n\t\t\tvertical: !!vertical,\n\t\t});\n\t};\n\n\tconst options = React.Children.map(children, (option, index) =>\n\t\tdecorateOption(option, index)\n\t);\n\n\treturn (\n\t\t<fieldset id={id} className={classNames('slds-form-element', className as string)}>\n\t\t\t<legend className=\"slds-form-element__legend slds-form-element__label\">{label}</legend>\n\t\t\t<div className=\"slds-form-element__control\">{options}</div>\n\t\t</fieldset>\n\t);\n};\n\nVisualPicker.displayName = VISUAL_PICKER;\n\nexport default VisualPicker;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"0TAiDA,IAAM,GAAgB,CACrB,WACA,YACA,YACA,GAAI,EACJ,QACA,QAAQ,GACR,OAAO,SACP,WAAW,MACiC,CAC5C,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EAErB,GAAI,EACH,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BAA8B,UAAc,CAAA,EAOnE,IAAM,GACL,EACA,IACe,CACf,GAAI,CAAC,EAAA,QAAM,eAAe,CAAM,EAAG,OAAO,EAE1C,GAAI,EAAO,OAAS,EAAA,QAAM,SAAU,CACnC,IAAM,EAAgB,EAAO,MAC7B,OAAO,EAAA,QAAM,aACZ,EACA,IAAA,GACA,EAAA,QAAM,SAAS,IAAI,EAAc,UAAW,EAAO,IAClD,EAAe,EAAO,GAAG,EAAM,GAAG,GAAY,CAC/C,CACD,CACD,CAEA,OAAO,EAAA,QAAM,aAAa,EAAgD,CACzE,MAAO,GAAG,EAAG,GAAG,IAChB,YACA,QAAS,gBACT,KAAM,GAAG,EAAG,UACZ,OACA,SAAU,CAAC,CAAC,CACb,CAAC,CACF,EAEM,EAAU,EAAA,QAAM,SAAS,IAAI,GAAW,EAAQ,IACrD,EAAe,EAAQ,CAAK,CAC7B,EAEA,OACC,EAAA,EAAA,KAAA,CAAC,WAAD,CAAc,KAAI,WAAA,EAAW,EAAA,QAAA,CAAW,oBAAqB,CAAmB,EAAhF,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAU,qDAAsD,SAAA,CAAc,CAAA,GACtF,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BAA8B,SAAA,CAAa,CAAA,CACjD,GAEZ,EAEA,EAAa,YAAc,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../modal/index.cjs"),r=require("../progress-bar/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={unitsCompletedAfter:`units completed`},c=({children:e,className:t,doNotShowAgainCheckbox:c,id:l,infoBadge:u,isOpen:d=!0,labels:f,onRequestClose:p,onRenderInfoActions:m,variant:h=`steps`})=>{let g=(0,i.useId)(),_=l||g,v={...s,...f},{totalSteps:y,completedSteps:b,progress:x}=(0,i.useMemo)(()=>{let t=i.default.Children.count(e),n=i.default.Children.toArray(e).filter(e=>i.default.isValidElement(e)&&e.props.isComplete).length;return{totalSteps:t,completedSteps:n,progress:t>0?n/t*100:0}},[e]),S=(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-welcome-mat__info-content`,t),id:`${_}-content`,children:[(0,o.jsx)(`h2`,{className:`slds-welcome-mat__info-title`,id:`${_}-label`,children:v.title}),(0,o.jsx)(`div`,{className:`slds-welcome-mat__info-description slds-text-longform`,children:(0,o.jsx)(`p`,{children:v.description})}),(h===`info-only`||h===`splash`)&&(0,o.jsxs)(`div`,{className:`slds-welcome-mat__info-actions`,children:[m?.(),c&&(0,o.jsx)(`div`,{className:`slds-m-top_large`,children:c})]}),(h===`steps`||h===`trailhead-connected`)&&e&&(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-welcome-mat__info-progress`,{"slds-welcome-mat__info-progress_complete":b===y}),children:[h===`trailhead-connected`&&i.default.Children.map(u,e=>i.default.isValidElement(e)?i.default.cloneElement(e,{isComplete:b===y||void 0}):e),(b!==y||h!==`trailhead-connected`)&&(0,o.jsxs)(o.Fragment,{children:[h===`trailhead-connected`?(0,o.jsxs)(`p`,{children:[b,`/`,y,` `,v.unitsCompletedAfter]}):(0,o.jsx)(`p`,{children:(0,o.jsxs)(`strong`,{children:[b,`/`,y,` `,v.unitsCompletedAfter]})}),(0,o.jsx)(r.default,{value:x,radius:`circular`})]})]})]});return(0,o.jsx)(n.default,{assistiveText:{dialogLabelledBy:`${_}-label`},isOpen:d,onRequestClose:p,size:`small`,id:`${_}-modal`,children:(0,o.jsx)(`div`,{className:(0,a.default)(`slds-welcome-mat`,{"slds-welcome-mat_info-only":h===`info-only`,"slds-welcome-mat_splash":!e}),id:_,children:(0,o.jsx)(`div`,{className:`slds-welcome-mat__content slds-grid`,children:e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`div`,{className:`slds-welcome-mat__info slds-size_1-of-2`,children:S}),(0,o.jsx)(`div`,{className:(0,a.default)(`slds-welcome-mat__tiles`,`slds-size_1-of-2`,{"slds-welcome-mat__tiles_info-only":h===`info-only`}),children:i.default.Children.map(e,e=>i.default.isValidElement(e)?i.default.cloneElement(e,{variant:h}):e)})]}):(0,o.jsx)(`div`,{className:`slds-welcome-mat__info slds-size_1-of-1`,children:S})})})})};c.displayName=t.WELCOME_MAT,exports.default=c;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../modal/index.cjs"),r=require("../progress-bar/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("classnames");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={unitsCompletedAfter:`units completed`},c=({children:e,className:t,doNotShowAgainCheckbox:c,id:l,infoBadge:u,isOpen:d=!0,labels:f,onRequestClose:p,onRenderInfoActions:m,variant:h=`steps`})=>{let g=(0,i.useId)(),_=l||g,v={...s,...f},{totalSteps:y,completedSteps:b,progress:x}=(0,i.useMemo)(()=>{let t=i.default.Children.count(e),n=i.default.Children.toArray(e).filter(e=>i.default.isValidElement(e)&&e.props.isComplete).length;return{totalSteps:t,completedSteps:n,progress:t>0?n/t*100:0}},[e]),S=(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-welcome-mat__info-content`,t),id:`${_}-content`,children:[(0,o.jsx)(`h2`,{className:`slds-welcome-mat__info-title`,id:`${_}-label`,children:v.title}),(0,o.jsx)(`div`,{className:`slds-welcome-mat__info-description slds-text-longform`,children:(0,o.jsx)(`p`,{children:v.description})}),(h===`info-only`||h===`splash`)&&(0,o.jsxs)(`div`,{className:`slds-welcome-mat__info-actions`,children:[m?.(),c&&(0,o.jsx)(`div`,{className:`slds-m-top_large`,children:c})]}),(h===`steps`||h===`trailhead-connected`)&&e&&(0,o.jsxs)(`div`,{className:(0,a.default)(`slds-welcome-mat__info-progress`,{"slds-welcome-mat__info-progress_complete":b===y}),children:[h===`trailhead-connected`&&i.default.Children.map(u,e=>i.default.isValidElement(e)?i.default.cloneElement(e,{isComplete:b===y||void 0}):e),(b!==y||h!==`trailhead-connected`)&&(0,o.jsxs)(o.Fragment,{children:[h===`trailhead-connected`?(0,o.jsxs)(`p`,{children:[b,`/`,y,` `,v.unitsCompletedAfter]}):(0,o.jsx)(`p`,{children:(0,o.jsxs)(`strong`,{children:[b,`/`,y,` `,v.unitsCompletedAfter]})}),(0,o.jsx)(r.default,{value:x,radius:`circular`})]})]})]});return(0,o.jsx)(n.default,{assistiveText:{dialogLabelledBy:`${_}-label`},isOpen:d,onRequestClose:p,size:`small`,id:`${_}-modal`,children:(0,o.jsx)(`div`,{className:(0,a.default)(`slds-welcome-mat`,{"slds-welcome-mat_info-only":h===`info-only`,"slds-welcome-mat_splash":!e}),id:_,children:(0,o.jsx)(`div`,{className:`slds-welcome-mat__content slds-grid`,children:e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`div`,{className:`slds-welcome-mat__info slds-size_1-of-2`,children:S}),(0,o.jsx)(`div`,{className:(0,a.default)(`slds-welcome-mat__tiles`,`slds-size_1-of-2`,{"slds-welcome-mat__tiles_info-only":h===`info-only`}),children:i.default.Children.map(e,e=>i.default.isValidElement(e)?i.default.cloneElement(e,{variant:h}):e)})]}):(0,o.jsx)(`div`,{className:`slds-welcome-mat__info slds-size_1-of-1`,children:S})})})})};c.displayName=t.WELCOME_MAT,exports.default=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","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":"
|
|
1
|
+
{"version":3,"file":"index.cjs","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\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CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,0BACA,mBACA,CAAE,oCAAqC,IAAY,WAAY,CAChE,EAEC,SAAA,EAAA,QAAM,SAAS,IAAI,EAAW,GAC9B,EAAA,QAAM,eAAe,CAAK,EACvB,EAAA,QAAM,aAAa,EAAwD,CAC3E,SACA,CAAC,EACD,CACJ,CACI,CAAA,CACJ,CAAA,CAAA,GAEF,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,0CAA2C,SAAA,CAAY,CAAA,CAEnE,CAAA,CACD,CAAA,CACC,CAAA,CAET,EAEA,EAAW,YAAc,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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=`
|
|
1
|
+
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=`SLDSInlineEdit`,X=`SLDSInput`,Z=`SLDSTextarea`,Q=`SLDSSearch`,$=`SLDSHighlighter`,ee=`SLDSIcon`,te=`SLDSIconSettings`,ne=`SLDSIconInput`,re=`SLDSIllustration`,ie=`SLDSList`,ae=`SLDSListItem`,oe=`SLDSListItemLabel`,se=`SLDSLookup`,ce=`SLDSMediaObject`,le=`SLDSMenuDropdown`,ue=`SLDSMenuDropdownTrigger`,de=`SLDSModal`,fe=`SLDSPanel`,pe=`SLDSFilterGroup`,me=`SLDSFilterList`,he=`SLDSPanelFilterListHeading`,ge=`SLDSPageHeader`,_e=`SLDSPageHeaderControl`,ve=`SLDSPill`,ye=`SLDSPillContainer`,be=`SLDSPortalSettings`,xe=`SLDSPopover`,Se=`SLDSPopoverEditDialog`,Ce=`SLDSPopoverTooltip`,we=`SLDSProgressIndicator`,Te=`SLDSProgressIndicatorPath`,Ee=`SLDSProgressIndicatorProgress`,De=`SLDSProgressIndicatorStep`,Oe=`SLDSProgressIndicatorStepVertical`,ke=`SLDSProgressRing`,Ae=`SLDSProgressBar`,je=`SLDSSetupAssistant`,Me=`SLDSSetupAssistantStep`,Ne=`SLDSScopedNotification`,Pe=`SLDSSlider`,Fe=`SLDSSpinner`,Ie=`SLDSSplitView`,Le=`SLDSSplitViewHeader`,Re=`SLDSSplitViewListbox`,ze=`SLDSRadio`,Be=`SLDSRadioGroup`,Ve=`SLDSRadioButtonGroup`,He=`SLDSTab`,Ue=`SLDSTabPanel`,We=`SLDSTabs`,Ge=`SLDSTabsList`,Ke=`SLDSTabsPanel`,qe=`SLDSTimepicker`,Je=`SLDSToast`,Ye=`SLDSToastContainer`,Xe=`SLDSTree`,Ze=`SLDSTreeBranch`,Qe=`SLDSTreeItem`,$e=`SLDSTrialBar`,et=`SLDSTrialBarDropdown`,tt=`SLDSTrialBarButton`,nt=`SLDSVerticalNavigation`,rt=`SLDSVerticalNavigationItem`,it=`SLDSVisualPicker`,at=`SLDSVisualPickerLink`,ot=`SLDSWelcomeMat`,st=`SLDSWelcomeMatTile`,ct=`SLDSWelcomeMatBadge`;exports.ACCORDION=e,exports.ACCORDION_PANEL=t,exports.ALERT=n,exports.ALERT_CONTAINER=r,exports.AVATAR=i,exports.BADGE=a,exports.BREADCRUMB=o,exports.BUILDER_HEADER=s,exports.BUILDER_HEADER_MISC=c,exports.BUILDER_HEADER_NAV=u,exports.BUILDER_HEADER_NAV_DROPDOWN=d,exports.BUILDER_HEADER_NAV_LINK=f,exports.BUILDER_HEADER_TOOLBAR=p,exports.BUILDER_HEADER_UTILITIES=l,exports.BUTTON=m,exports.BUTTON_GROUP=h,exports.BUTTON_ICON=_,exports.BUTTON_STATEFUL=g,exports.CARD=v,exports.CARD_BODY=y,exports.CARD_EMPTY=b,exports.CARD_FILTER=x,exports.CARD_FOOTER=S,exports.CARD_HEADER=C,exports.CAROUSEL=w,exports.CAROUSEL_AUTOPLAY_BUTTON=O,exports.CAROUSEL_INDICATORS=T,exports.CAROUSEL_ITEM=E,exports.CAROUSEL_NAVIGATORS=D,exports.CHECKBOX=J,exports.COLOR_PICKER=k,exports.COMBOBOX=A,exports.DATE_PICKER=R,exports.DIALOG=B,exports.DYNAMIC_ICON=z,exports.EXPANDABLE_SECTION=K,exports.FILES=V,exports.FILES_ACTIONS=G,exports.FILES_FIGURE=W,exports.FILES_FILE=H,exports.FILES_MORE=U,exports.FILTER=q,exports.FORMS_INLINE_EDIT=Y,exports.HIGHLIGHTER=$,exports.ICON=ee,exports.ICON_INPUT=ne,exports.ICON_SETTINGS=te,exports.ILLUSTRATION=re,exports.INPUT=X,exports.LIST=ie,exports.LIST_ITEM=ae,exports.LIST_ITEM_LABEL=oe,exports.LOOKUP=se,exports.MEDIA_OBJECT=ce,exports.MENU_DROPDOWN=le,exports.MENU_DROPDOWN_TRIGGER=ue,exports.MODAL=de,exports.PAGE_HEADER=ge,exports.PAGE_HEADER_CONTROL=_e,exports.PANEL=fe,exports.PANEL_FILTER_GROUP=pe,exports.PANEL_FILTER_LIST=me,exports.PANEL_FILTER_LIST_HEADING=he,exports.PILL=ve,exports.PILL_CONTAINER=ye,exports.POPOVER=xe,exports.POPOVER_EDIT_DIALOG=Se,exports.POPOVER_TOOLTIP=Ce,exports.PORTAL_SETTINGS=be,exports.PROGRESS_BAR=Ae,exports.PROGRESS_INDICATOR=we,exports.PROGRESS_INDICATOR_PATH=Te,exports.PROGRESS_INDICATOR_PROGRESS=Ee,exports.PROGRESS_INDICATOR_STEP=De,exports.PROGRESS_INDICATOR_STEP_VERTICAL=Oe,exports.PROGRESS_RING=ke,exports.RADIO=ze,exports.RADIO_BUTTON_GROUP=Ve,exports.RADIO_GROUP=Be,exports.SCOPED_NOTIFICATION=Ne,exports.SEARCH=Q,exports.SETUP_ASSISTANT=je,exports.SETUP_ASSISTANT_STEP=Me,exports.SIMPLE_DATA_TABLE=j,exports.SIMPLE_DATA_TABLE_CELL=M,exports.SIMPLE_DATA_TABLE_COLUMN=N,exports.SIMPLE_DATA_TABLE_HEAD=P,exports.SIMPLE_DATA_TABLE_HEADER_CELL=F,exports.SIMPLE_DATA_TABLE_ROW=L,exports.SIMPLE_DATA_TABLE_ROW_ACTIONS=I,exports.SLIDER=Pe,exports.SPINNER=Fe,exports.SPLIT_VIEW=Ie,exports.SPLIT_VIEW_HEADER=Le,exports.SPLIT_VIEW_LISTBOX=Re,exports.TAB=He,exports.TABS=We,exports.TABS_LIST=Ge,exports.TABS_PANEL=Ke,exports.TAB_PANEL=Ue,exports.TEXTAREA=Z,exports.TIME_PICKER=qe,exports.TOAST=Je,exports.TOAST_CONTAINER=Ye,exports.TREE=Xe,exports.TREE_BRANCH=Ze,exports.TREE_ITEM=Qe,exports.TRIAL_BAR=$e,exports.TRIAL_BAR_BUTTON=tt,exports.TRIAL_BAR_DROPDOWN=et,exports.VERTICAL_NAVIGATION=nt,exports.VERTICAL_NAVIGATION_ITEM=rt,exports.VISUAL_PICKER=it,exports.VISUAL_PICKER_LINK=at,exports.WELCOME_MAT=ot,exports.WELCOME_MAT_BADGE=ct,exports.WELCOME_MAT_TILE=st;
|
|
2
2
|
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","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
|
|
1
|
+
{"version":3,"file":"constants.cjs","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 FORMS_INLINE_EDIT = 'SLDSInlineEdit';\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,EAAY,gBACZ,EAAkB,qBAClB,EAAQ,YACR,EAA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EN,GAAY,eACZ,GAAO,WACP,GAAY,eACZ,GAAa,gBACb,GAAc,iBACd,GAAQ,YACR,GAAkB,qBAClB,GAAO,WACP,GAAc,iBACd,GAAY,eACZ,GAAY,eACZ,GAAqB,uBACrB,GAAmB,qBACnB,GAAsB,yBACtB,GAA2B,6BAC3B,GAAgB,mBAChB,GAAqB,uBACrB,GAAc,iBACd,GAAmB,qBACnB,GAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./use-click-outside.cjs");exports.useClickOutside=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./hooks/index.cjs');
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("warning");t=e.__toESM(t,1);var n=function(){};process.env.NODE_ENV!==`production`&&(n=function(e,n,r,i,a,o,s){let c=!0;if(n[r]&&n[a]){let e=!i||i.includes(n[r]),t=!o||o.includes(n[a]);c=!(e&&t)}if(!c){let c=s?` ${s}`:``,l=i?` of value \`${n[r]}\``:``,u=o?` of value \`${n[a]}\``:``;(0,t.default)(!1,`[Design System React] ${e} should not be passed prop \`${r}\`${l} along with prop \`${a}\`${u} as they are incompatible.${c}`)}});var r=n;exports.default=r;
|
|
2
|
+
//# sourceMappingURL=incompatible-props.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incompatible-props.cjs","names":[],"sources":["../../../../utilities/warning/incompatible-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\n/* eslint-disable import/no-mutable-exports */\n\n// This function will deliver an error message to the browser console when all of the props passed in are undefined (falsey).\nimport warning from 'warning';\n\nlet incompatibleProps = function incompatiblePropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tincompatibleProps = function incompatiblePropsFunction(\n\t\tcontrol,\n\t\tprops,\n\t\tpropOneName,\n\t\tpropOneValues,\n\t\tpropTwoName,\n\t\tpropTwoValues,\n\t\tcomment\n\t) {\n\t\tlet checkPassed = true;\n\n\t\tif (props[propOneName] && props[propTwoName]) {\n\t\t\tconst propOneConditionMet = propOneValues\n\t\t\t\t? propOneValues.includes(props[propOneName])\n\t\t\t\t: true;\n\t\t\tconst propTwoConditionMet = propTwoValues\n\t\t\t\t? propTwoValues.includes(props[propTwoName])\n\t\t\t\t: true;\n\n\t\t\tcheckPassed = !(propOneConditionMet && propTwoConditionMet);\n\t\t}\n\n\t\tif (!checkPassed) {\n\t\t\tconst additionalComment = comment ? ` ${comment}` : '';\n\t\t\tconst incompatibleValueOne = propOneValues\n\t\t\t\t? ` of value \\`${props[propOneName]}\\``\n\t\t\t\t: '';\n\t\t\tconst incompatibleValueTwo = propTwoValues\n\t\t\t\t? ` of value \\`${props[propTwoName]}\\``\n\t\t\t\t: '';\n\n\t\t\t/* eslint-disable max-len */\n\t\t\twarning(\n\t\t\t\tfalse,\n\t\t\t\t`[Design System React] ${control} should not be passed prop \\`${propOneName}\\`${incompatibleValueOne} along with prop \\`${propTwoName}\\`${incompatibleValueTwo} as they are incompatible.${additionalComment}`\n\t\t\t);\n\t\t\t/* eslint-enable max-len */\n\t\t}\n\t};\n}\n\nexport default incompatibleProps;\n"],"mappings":"kGAQA,IAAI,EAAoB,UAAqC,CAAC,EAE9D,QAAA,IAAA,WAA6B,eAC5B,EAAoB,SACnB,EACA,EACA,EACA,EACA,EACA,EACA,EACC,CACD,IAAI,EAAc,GAElB,GAAI,EAAM,IAAgB,EAAM,GAAc,CAC7C,IAAM,EAAsB,IACzB,EAAc,SAAS,EAAM,EAAY,EAEtC,EAAsB,IACzB,EAAc,SAAS,EAAM,EAAY,EAG5C,EAAc,EAAE,GAAuB,EACxC,CAEA,GAAI,CAAC,EAAa,CACjB,IAAM,EAAoB,EAAU,IAAI,IAAY,GAC9C,EAAuB,EAC1B,eAAe,EAAM,GAAa,IAClC,GACG,EAAuB,EAC1B,eAAe,EAAM,GAAa,IAClC,IAGH,EAAA,EAAA,QAAA,CACC,GACA,yBAAyB,EAAQ,+BAA+B,EAAY,IAAI,EAAqB,qBAAqB,EAAY,IAAI,EAAqB,4BAA4B,GAC5L,CAED,CACD,GAGD,IAAA,EAAe"}
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import { ACCORDION as e } from "../../utilities/constants.js";
|
|
2
|
-
import t, { useCallback as n, useEffect as r, useId as i,
|
|
3
|
-
import
|
|
4
|
-
import { jsx as
|
|
2
|
+
import t, { useCallback as n, useEffect as r, useId as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
3
|
+
import c from "classnames";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
//#region components/accordion/index.tsx
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
var u = ({ children: e, className: u, id: d }) => {
|
|
7
|
+
let f = i(), p = d || f, [m, h] = s(0), g = o([]), _ = t.Children.count(e), v = o(_);
|
|
8
|
+
a(() => {
|
|
9
|
+
if (v.current === _ || (v.current = _, m === null)) return;
|
|
10
|
+
let e = g.current.findIndex((e) => e === document.activeElement);
|
|
11
|
+
e === -1 ? m > _ - 1 && h(_ > 0 ? _ - 1 : null) : e !== m && h(e);
|
|
12
|
+
}, [_, m]), r(() => {
|
|
13
|
+
m !== null && g.current[m] && g.current[m].focus();
|
|
14
|
+
}, [m]);
|
|
15
|
+
let y = n(() => {
|
|
16
|
+
h(null);
|
|
17
|
+
}, []), b = n((e) => {
|
|
18
|
+
let t = m;
|
|
19
|
+
t === null && (t = g.current.findIndex((t) => t && t.id === e.target.id)), e.key === "ArrowDown" ? (e.preventDefault(), t < _ - 1 ? h(t + 1) : h(0)) : e.key === "ArrowUp" && (e.preventDefault(), h(t > 0 ? t - 1 : _ - 1));
|
|
20
|
+
}, [m, _]), x = n((e, t) => {
|
|
21
|
+
t === null ? delete g.current[e] : g.current[e] = t;
|
|
18
22
|
}, []);
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
name:
|
|
21
|
-
className:
|
|
22
|
-
children: t.Children.map(e, (e) => t.isValidElement(e) ? t.cloneElement(e, {
|
|
23
|
-
refs: { summaryButton:
|
|
24
|
-
onClickSummary:
|
|
25
|
-
onKeyDownSummary:
|
|
23
|
+
return /* @__PURE__ */ l("ul", {
|
|
24
|
+
name: p,
|
|
25
|
+
className: c("slds-accordion", u),
|
|
26
|
+
children: t.Children.map(e, (e, n) => t.isValidElement(e) ? t.cloneElement(e, {
|
|
27
|
+
refs: { summaryButton: (e) => x(n, e) },
|
|
28
|
+
onClickSummary: y,
|
|
29
|
+
onKeyDownSummary: b
|
|
26
30
|
}) : e)
|
|
27
31
|
});
|
|
28
32
|
};
|
|
29
|
-
|
|
33
|
+
u.displayName = e;
|
|
30
34
|
//#endregion
|
|
31
|
-
export {
|
|
35
|
+
export { u as default };
|
|
32
36
|
|
|
33
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/accordion/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseCallback,\n\tuseId,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype KeyboardEvent,\n} from 'react';\nimport classNames from 'classnames';\nimport { ACCORDION } from '../../utilities/constants';\n\n/**\n * Props for the Accordion component\n */\nexport interface AccordionProps {\n\t/** Accordion panel children */\n\tchildren: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string | number;\n}\n\n/**\n * An accordion allows a user to toggle the display of sections of content.\n * The accordion component wraps accordion panels that can be selected and expanded.\n */\nconst Accordion = ({\n\tchildren,\n\tclassName,\n\tid: propId,\n}: AccordionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst [currButtonIndex, setCurrButtonIndex] = useState<number | null>(0);\n\tconst summaryButtonsRef = useRef<HTMLButtonElement[]>([]);\n\tconst childCount = React.Children.count(children);\n\n\t// Focus management\n\tuseEffect(() => {\n\t\tif (
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/accordion/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseCallback,\n\tuseId,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype KeyboardEvent,\n} from 'react';\nimport classNames from 'classnames';\nimport { ACCORDION } from '../../utilities/constants';\n\n/**\n * Props for the Accordion component\n */\nexport interface AccordionProps {\n\t/** Accordion panel children */\n\tchildren: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** HTML id */\n\tid?: string | number;\n}\n\n/**\n * An accordion allows a user to toggle the display of sections of content.\n * The accordion component wraps accordion panels that can be selected and expanded.\n */\nconst Accordion = ({\n\tchildren,\n\tclassName,\n\tid: propId,\n}: AccordionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst [currButtonIndex, setCurrButtonIndex] = useState<number | null>(0);\n\tconst summaryButtonsRef = useRef<HTMLButtonElement[]>([]);\n\tconst childCount = React.Children.count(children);\n\n\t// Resync the tracked index whenever the panel count changes (e.g. a panel\n\t// is removed). Removing a panel before the focused one shifts the focused\n\t// button to an earlier index without moving DOM focus off of it, so\n\t// currButtonIndex can end up in range but pointing at the wrong button.\n\t// This has to run in a layout effect rather than during render: refs are\n\t// only reattached to their new positions during the commit that follows\n\t// this render, so summaryButtonsRef.current isn't resynced yet while the\n\t// component function is running.\n\tconst prevChildCountRef = useRef(childCount);\n\tuseLayoutEffect(() => {\n\t\tif (prevChildCountRef.current === childCount) {\n\t\t\treturn;\n\t\t}\n\t\tprevChildCountRef.current = childCount;\n\n\t\tif (currButtonIndex === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst focusedIndex = summaryButtonsRef.current.findIndex(\n\t\t\t(button) => button === document.activeElement\n\t\t);\n\n\t\tif (focusedIndex !== -1) {\n\t\t\tif (focusedIndex !== currButtonIndex) {\n\t\t\t\tsetCurrButtonIndex(focusedIndex);\n\t\t\t}\n\t\t} else if (currButtonIndex > childCount - 1) {\n\t\t\tsetCurrButtonIndex(childCount > 0 ? childCount - 1 : null);\n\t\t}\n\t}, [childCount, currButtonIndex]);\n\n\t// Focus management\n\tuseEffect(() => {\n\t\tif (\n\t\t\tcurrButtonIndex !== null &&\n\t\t\tsummaryButtonsRef.current[currButtonIndex]\n\t\t) {\n\t\t\tsummaryButtonsRef.current[currButtonIndex].focus();\n\t\t}\n\t}, [currButtonIndex]);\n\n\tconst handleClickSummary = useCallback(() => {\n\t\tsetCurrButtonIndex(null);\n\t}, []);\n\n\tconst handleKeyDownSummary = useCallback(\n\t\t(e: KeyboardEvent<HTMLButtonElement>) => {\n\t\t\tlet buttonIndex = currButtonIndex;\n\n\t\t\tif (buttonIndex === null) {\n\t\t\t\tbuttonIndex = summaryButtonsRef.current.findIndex(\n\t\t\t\t\t(el) => el && el.id === (e.target as HTMLElement).id\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (e.key === 'ArrowDown') {\n\t\t\t\te.preventDefault();\n\t\t\t\tif (buttonIndex < childCount - 1) {\n\t\t\t\t\tsetCurrButtonIndex(buttonIndex + 1);\n\t\t\t\t} else {\n\t\t\t\t\tsetCurrButtonIndex(0);\n\t\t\t\t}\n\t\t\t} else if (e.key === 'ArrowUp') {\n\t\t\t\te.preventDefault();\n\t\t\t\tif (buttonIndex > 0) {\n\t\t\t\t\tsetCurrButtonIndex(buttonIndex - 1);\n\t\t\t\t} else {\n\t\t\t\t\tsetCurrButtonIndex(childCount - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[currButtonIndex, childCount]\n\t);\n\n\tconst addSummaryButton = useCallback(\n\t\t(index: number, button: HTMLButtonElement | null) => {\n\t\t\tif (button === null) {\n\t\t\t\tdelete summaryButtonsRef.current[index];\n\t\t\t} else {\n\t\t\t\tsummaryButtonsRef.current[index] = button;\n\t\t\t}\n\t\t},\n\t\t[]\n\t);\n\n\treturn (\n\t\t<ul\n\t\t\t// @ts-expect-error name attribute on ul is non-standard but kept for compatibility\n\t\t\tname={id}\n\t\t\tclassName={classNames('slds-accordion', className as string)}\n\t\t>\n\t\t\t{React.Children.map(children, (child, index) => {\n\t\t\t\tif (React.isValidElement(child)) {\n\t\t\t\t\treturn React.cloneElement(\n\t\t\t\t\t\tchild as ReactElement<{\n\t\t\t\t\t\t\trefs?: {\n\t\t\t\t\t\t\t\tsummaryButton: (button: HTMLButtonElement | null) => void;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tonClickSummary?: () => void;\n\t\t\t\t\t\t\tonKeyDownSummary?: (e: KeyboardEvent<HTMLButtonElement>) => void;\n\t\t\t\t\t\t}>,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trefs: {\n\t\t\t\t\t\t\t\tsummaryButton: (button: HTMLButtonElement | null) =>\n\t\t\t\t\t\t\t\t\taddSummaryButton(index, button),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tonClickSummary: handleClickSummary,\n\t\t\t\t\t\t\tonKeyDownSummary: handleKeyDownSummary,\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn child;\n\t\t\t})}\n\t\t</ul>\n\t);\n};\n\nAccordion.displayName = ACCOR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,GACA,CAAC,CACF;CAEA,OACC,kBAAC,MAAD;EAEC,MAAM;EACN,WAAW,EAAW,kBAAkB,CAAmB;EAE1D,UAAA,EAAM,SAAS,IAAI,IAAW,GAAO,MACjC,EAAM,eAAe,CAAK,IACtB,EAAM,aACZ,GAOA;GACC,MAAM,EACL,gBAAgB,MACf,EAAiB,GAAO,CAAM,EAChC;GACA,gBAAgB;GAChB,kBAAkB;EACnB,CACD,IAEM,CACP;CACE,CAAA;AAEN;AAEA,EAAU,cAAc"}
|
|
@@ -30,23 +30,23 @@ var p = { closeButton: "Close" }, m = {}, h = {
|
|
|
30
30
|
name: "error"
|
|
31
31
|
})
|
|
32
32
|
}, _ = ({ assistiveText: e, className: i, dismissible: _, icon: v, labels: y, onClickHeadingLink: b, onRequestClose: x, style: S, variant: C = "info" }) => {
|
|
33
|
-
let [w, T] = u(!0), E = l(null), D = {
|
|
33
|
+
let [w, T] = u(!0), E = l(null), D = l(!1), O = {
|
|
34
34
|
...p,
|
|
35
35
|
...e
|
|
36
|
-
},
|
|
36
|
+
}, k = {
|
|
37
37
|
...m,
|
|
38
38
|
...y
|
|
39
39
|
};
|
|
40
40
|
c(() => () => {
|
|
41
|
-
n.returnFocusToStoredElement();
|
|
41
|
+
D.current && n.returnFocusToStoredElement();
|
|
42
42
|
}, []);
|
|
43
|
-
let
|
|
44
|
-
E.current = e, w && e && (n.storeActiveElement(), e.focus(), T(!1));
|
|
45
|
-
}, [w]),
|
|
43
|
+
let A = s((e) => {
|
|
44
|
+
E.current = e, w && e && (n.storeActiveElement(), D.current = !0, e.focus(), T(!1));
|
|
45
|
+
}, [w]), j = v || g[C], M = o.isValidElement(j) ? o.cloneElement(j, {
|
|
46
46
|
containerClassName: "slds-m-right_x-small",
|
|
47
47
|
inverse: !0,
|
|
48
48
|
size: "x-small"
|
|
49
|
-
}) :
|
|
49
|
+
}) : j;
|
|
50
50
|
return /* @__PURE__ */ f("div", {
|
|
51
51
|
className: r("slds-notify slds-notify_alert slds-theme_alert-texture", {
|
|
52
52
|
"slds-theme_info": C === "info",
|
|
@@ -61,26 +61,26 @@ var p = { closeButton: "Close" }, m = {}, h = {
|
|
|
61
61
|
className: "slds-assistive-text",
|
|
62
62
|
children: h[C]
|
|
63
63
|
}),
|
|
64
|
-
|
|
64
|
+
M,
|
|
65
65
|
/* @__PURE__ */ f("h2", { children: [
|
|
66
|
-
|
|
66
|
+
k.heading,
|
|
67
67
|
" ",
|
|
68
|
-
|
|
68
|
+
k.headingLink && /* @__PURE__ */ d("a", {
|
|
69
69
|
onClick: t.trappedHandler(b),
|
|
70
70
|
href: "#",
|
|
71
|
-
children:
|
|
71
|
+
children: k.headingLink
|
|
72
72
|
})
|
|
73
73
|
] }),
|
|
74
74
|
_ && /* @__PURE__ */ d(a, {
|
|
75
|
-
assistiveText: { icon:
|
|
76
|
-
buttonRef:
|
|
75
|
+
assistiveText: { icon: O.closeButton },
|
|
76
|
+
buttonRef: A,
|
|
77
77
|
className: "slds-notify__close",
|
|
78
78
|
iconCategory: "utility",
|
|
79
79
|
iconName: "close",
|
|
80
80
|
iconSize: "medium",
|
|
81
81
|
inverse: !0,
|
|
82
82
|
onClick: x,
|
|
83
|
-
title:
|
|
83
|
+
title: O.closeButton,
|
|
84
84
|
variant: "icon"
|
|
85
85
|
})
|
|
86
86
|
]
|