@sps-woodland/core 8.50.2 → 8.51.0
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/lib/action-bar/action-bar/ActionBar.css.d.ts +10 -0
- package/lib/action-bar/action-bar/ActionBar.css.d.ts.map +1 -0
- package/lib/action-bar/action-bar/ActionBar.css.js +12 -0
- package/lib/action-bar/action-bar/ActionBar.d.ts +9 -0
- package/lib/action-bar/action-bar/ActionBar.d.ts.map +1 -0
- package/lib/action-bar/action-bar/ActionBar.js +61 -0
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.d.ts +4 -0
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.d.ts.map +1 -0
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +24 -0
- package/lib/action-bar/index.d.ts +3 -0
- package/lib/action-bar/index.d.ts.map +1 -0
- package/lib/action-bar/index.js +79 -0
- package/lib/action-bar/index.umd.cjs +1 -0
- package/lib/action-bar/style.css +1 -0
- package/lib/add-to-list/add-to-list/AddToList.css.d.ts +91 -0
- package/lib/add-to-list/add-to-list/AddToList.css.d.ts.map +1 -0
- package/lib/add-to-list/add-to-list/AddToList.css.js +25 -0
- package/lib/add-to-list/add-to-list/AddToList.d.ts +31 -0
- package/lib/add-to-list/add-to-list/AddToList.d.ts.map +1 -0
- package/lib/add-to-list/add-to-list/AddToList.js +284 -0
- package/lib/add-to-list/add-to-list/ItemsList.d.ts +17 -0
- package/lib/add-to-list/add-to-list/ItemsList.d.ts.map +1 -0
- package/lib/add-to-list/add-to-list/ItemsList.js +67 -0
- package/lib/add-to-list/add-to-list/ListItem.d.ts +8 -0
- package/lib/add-to-list/add-to-list/ListItem.d.ts.map +1 -0
- package/lib/add-to-list/add-to-list/ListItem.js +51 -0
- package/lib/add-to-list/index.d.ts +2 -0
- package/lib/add-to-list/index.d.ts.map +1 -0
- package/lib/add-to-list/index.js +441 -0
- package/lib/add-to-list/index.umd.cjs +1 -0
- package/lib/add-to-list/style.css +1 -0
- package/lib/buttons/button/Button.css.d.ts +15 -0
- package/lib/buttons/button/Button.css.d.ts.map +1 -0
- package/lib/buttons/button/Button.css.js +10 -0
- package/lib/buttons/button/Button.d.ts +19 -0
- package/lib/buttons/button/Button.d.ts.map +1 -0
- package/lib/buttons/button/Button.js +116 -0
- package/lib/buttons/index.d.ts +2 -0
- package/lib/buttons/index.d.ts.map +1 -0
- package/lib/buttons/index.js +169 -0
- package/lib/buttons/index.umd.cjs +1 -0
- package/lib/buttons/style.css +1 -0
- package/lib/cards/card/Card.css.d.ts +2 -0
- package/lib/cards/card/Card.css.d.ts.map +1 -0
- package/lib/cards/card/Card.css.js +5 -0
- package/lib/cards/card/Card.d.ts +4 -0
- package/lib/cards/card/Card.d.ts.map +1 -0
- package/lib/cards/card/Card.js +28 -0
- package/lib/cards/card-footer/CardFooter.css.d.ts +2 -0
- package/lib/cards/card-footer/CardFooter.css.d.ts.map +1 -0
- package/lib/cards/card-footer/CardFooter.css.js +5 -0
- package/lib/cards/card-footer/CardFooter.d.ts +4 -0
- package/lib/cards/card-footer/CardFooter.d.ts.map +1 -0
- package/lib/cards/card-footer/CardFooter.js +14 -0
- package/lib/cards/card-header/CardHeader.css.d.ts +2 -0
- package/lib/cards/card-header/CardHeader.css.d.ts.map +1 -0
- package/lib/cards/card-header/CardHeader.css.js +5 -0
- package/lib/cards/card-header/CardHeader.d.ts +4 -0
- package/lib/cards/card-header/CardHeader.d.ts.map +1 -0
- package/lib/cards/card-header/CardHeader.js +14 -0
- package/lib/cards/card-title/CardTitle.css.d.ts +2 -0
- package/lib/cards/card-title/CardTitle.css.d.ts.map +1 -0
- package/lib/cards/card-title/CardTitle.css.js +5 -0
- package/lib/cards/card-title/CardTitle.d.ts +4 -0
- package/lib/cards/card-title/CardTitle.d.ts.map +1 -0
- package/lib/cards/card-title/CardTitle.js +14 -0
- package/lib/cards/index.d.ts +5 -0
- package/lib/cards/index.d.ts.map +1 -0
- package/lib/cards/index.js +56 -0
- package/lib/cards/index.umd.cjs +1 -0
- package/lib/cards/style.css +1 -0
- package/lib/column-manager/column-manager/ColumnManager.d.ts +23 -0
- package/lib/column-manager/column-manager/ColumnManager.d.ts.map +1 -0
- package/lib/column-manager/column-manager/ColumnManager.js +114 -0
- package/lib/column-manager/column-manager/useColumnManager.d.ts +27 -0
- package/lib/column-manager/column-manager/useColumnManager.d.ts.map +1 -0
- package/lib/column-manager/column-manager/useColumnManager.js +49 -0
- package/lib/column-manager/index.d.ts +3 -0
- package/lib/column-manager/index.d.ts.map +1 -0
- package/lib/column-manager/index.js +6 -0
- package/lib/components/app-root/AppRoot.css.d.ts +2 -1
- package/lib/components/app-root/AppRoot.css.d.ts.map +1 -0
- package/lib/components/app-root/AppRoot.d.ts +1 -0
- package/lib/components/app-root/AppRoot.d.ts.map +1 -0
- package/lib/components/box/Box.d.ts +1 -0
- package/lib/components/box/Box.d.ts.map +1 -0
- package/lib/components/cap-content/CapContent.css.d.ts +1 -0
- package/lib/components/cap-content/CapContent.css.d.ts.map +1 -0
- package/lib/components/cap-content/CapContent.d.ts +1 -0
- package/lib/components/cap-content/CapContent.d.ts.map +1 -0
- package/lib/components/cap-content/CapContentTitle.d.ts +1 -0
- package/lib/components/cap-content/CapContentTitle.d.ts.map +1 -0
- package/lib/components/content/Content.css.d.ts +1 -0
- package/lib/components/content/Content.css.d.ts.map +1 -0
- package/lib/components/content/Content.d.ts +1 -0
- package/lib/components/content/Content.d.ts.map +1 -0
- package/lib/components/icon/Icon.css.d.ts +2 -1
- package/lib/components/icon/Icon.css.d.ts.map +1 -0
- package/lib/components/icon/Icon.d.ts +1 -0
- package/lib/components/icon/Icon.d.ts.map +1 -0
- package/lib/components/icon/icons/index.d.ts +1 -0
- package/lib/components/icon/icons/index.d.ts.map +1 -0
- package/lib/components/input-panel/InputPanel.css.d.ts +1 -0
- package/lib/components/input-panel/InputPanel.css.d.ts.map +1 -0
- package/lib/components/input-panel/InputPanel.d.ts +1 -0
- package/lib/components/input-panel/InputPanel.d.ts.map +1 -0
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts +1 -0
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts.map +1 -0
- package/lib/components/spinner/Spinner.css.d.ts +2 -1
- package/lib/components/spinner/Spinner.css.d.ts.map +1 -0
- package/lib/components/spinner/Spinner.d.ts +1 -0
- package/lib/components/spinner/Spinner.d.ts.map +1 -0
- package/lib/components/spinner/Spinner.examples.d.ts +1 -0
- package/lib/components/spinner/Spinner.examples.d.ts.map +1 -0
- package/lib/components/title/Title.css.d.ts +2 -1
- package/lib/components/title/Title.css.d.ts.map +1 -0
- package/lib/components/title/Title.d.ts +1 -0
- package/lib/components/title/Title.d.ts.map +1 -0
- package/lib/components/vertical-rule/VerticalRule.css.d.ts +1 -0
- package/lib/components/vertical-rule/VerticalRule.css.d.ts.map +1 -0
- package/lib/components/vertical-rule/VerticalRule.d.ts +1 -0
- package/lib/components/vertical-rule/VerticalRule.d.ts.map +1 -0
- package/lib/content-row/content-row/ContentRow.css.d.ts +150 -0
- package/lib/content-row/content-row/ContentRow.css.d.ts.map +1 -0
- package/lib/content-row/content-row/ContentRow.css.js +19 -0
- package/lib/content-row/content-row/ContentRow.d.ts +27 -0
- package/lib/content-row/content-row/ContentRow.d.ts.map +1 -0
- package/lib/content-row/content-row/ContentRow.js +175 -0
- package/lib/content-row/content-row-col/ContentRowCol.css.d.ts +51 -0
- package/lib/content-row/content-row-col/ContentRowCol.css.d.ts.map +1 -0
- package/lib/content-row/content-row-col/ContentRowCol.css.js +8 -0
- package/lib/content-row/content-row-col/ContentRowCol.d.ts +11 -0
- package/lib/content-row/content-row-col/ContentRowCol.d.ts.map +1 -0
- package/lib/content-row/content-row-col/ContentRowCol.js +50 -0
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts +6 -0
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts.map +1 -0
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +25 -0
- package/lib/content-row/index.d.ts +5 -0
- package/lib/content-row/index.d.ts.map +1 -0
- package/lib/content-row/index.js +336 -0
- package/lib/content-row/index.umd.cjs +1 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.css.d.ts +9 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.css.d.ts.map +1 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.css.js +6 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.d.ts +6 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.d.ts.map +1 -0
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +48 -0
- package/lib/content-row/style.css +1 -0
- package/lib/content-tiles/content-tile/ContentTile.css.d.ts +59 -0
- package/lib/content-tiles/content-tile/ContentTile.css.d.ts.map +1 -0
- package/lib/content-tiles/content-tile/ContentTile.css.js +15 -0
- package/lib/content-tiles/content-tile/ContentTile.d.ts +16 -0
- package/lib/content-tiles/content-tile/ContentTile.d.ts.map +1 -0
- package/lib/content-tiles/content-tile/ContentTile.js +62 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.css.d.ts +3 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.css.d.ts.map +1 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.css.js +6 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.d.ts +3 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.d.ts.map +1 -0
- package/lib/content-tiles/content-tile-list/ContentTileList.js +14 -0
- package/lib/content-tiles/index.d.ts +3 -0
- package/lib/content-tiles/index.d.ts.map +1 -0
- package/lib/content-tiles/index.js +124 -0
- package/lib/content-tiles/index.umd.cjs +1 -0
- package/lib/content-tiles/style.css +1 -0
- package/lib/core.css +1 -0
- package/lib/dropdowns/dropdown/Dropdown.css.d.ts +74 -0
- package/lib/dropdowns/dropdown/Dropdown.css.d.ts.map +1 -0
- package/lib/dropdowns/dropdown/Dropdown.css.js +9 -0
- package/lib/dropdowns/dropdown/Dropdown.d.ts +16 -0
- package/lib/dropdowns/dropdown/Dropdown.d.ts.map +1 -0
- package/lib/dropdowns/dropdown/Dropdown.js +70 -0
- package/lib/dropdowns/index.d.ts +4 -0
- package/lib/dropdowns/index.d.ts.map +1 -0
- package/lib/dropdowns/index.js +180 -0
- package/lib/dropdowns/index.umd.cjs +1 -0
- package/lib/dropdowns/option-list/Option.css.d.ts +3 -0
- package/lib/dropdowns/option-list/Option.css.d.ts.map +1 -0
- package/lib/dropdowns/option-list/Option.css.js +6 -0
- package/lib/dropdowns/option-list/Option.d.ts +5 -0
- package/lib/dropdowns/option-list/Option.d.ts.map +1 -0
- package/lib/dropdowns/option-list/Option.js +22 -0
- package/lib/dropdowns/option-list/OptionList.css.d.ts +3 -0
- package/lib/dropdowns/option-list/OptionList.css.d.ts.map +1 -0
- package/lib/dropdowns/option-list/OptionList.css.js +6 -0
- package/lib/dropdowns/option-list/OptionList.d.ts +11 -0
- package/lib/dropdowns/option-list/OptionList.d.ts.map +1 -0
- package/lib/dropdowns/option-list/OptionList.js +46 -0
- package/lib/dropdowns/style.css +1 -0
- package/lib/editable-table/EditableTable.d.ts +6 -0
- package/lib/editable-table/EditableTable.d.ts.map +1 -0
- package/lib/editable-table/EditableTable.js +71 -0
- package/lib/editable-table/index.d.ts +2 -0
- package/lib/editable-table/index.d.ts.map +1 -0
- package/lib/editable-table/index.js +4 -0
- package/lib/editable-table/style.css +157 -0
- package/lib/examples.d.ts +1 -0
- package/lib/examples.d.ts.map +1 -0
- package/lib/feedback-block/FeedbackBlock.css.d.ts +12 -0
- package/lib/feedback-block/FeedbackBlock.css.d.ts.map +1 -0
- package/lib/feedback-block/FeedbackBlock.css.js +8 -0
- package/lib/feedback-block/FeedbackBlock.d.ts +10 -0
- package/lib/feedback-block/FeedbackBlock.d.ts.map +1 -0
- package/lib/feedback-block/FeedbackBlock.js +38 -0
- package/lib/feedback-block/index.d.ts +2 -0
- package/lib/feedback-block/index.d.ts.map +1 -0
- package/lib/feedback-block/index.js +91 -0
- package/lib/feedback-block/index.umd.cjs +1 -0
- package/lib/feedback-block/style.css +1 -0
- package/lib/file-upload/file-upload/FileUpload.css.d.ts +95 -0
- package/lib/file-upload/file-upload/FileUpload.css.d.ts.map +1 -0
- package/lib/file-upload/file-upload/FileUpload.css.js +19 -0
- package/lib/file-upload/file-upload/FileUpload.d.ts +20 -0
- package/lib/file-upload/file-upload/FileUpload.d.ts.map +1 -0
- package/lib/file-upload/file-upload/FileUpload.js +197 -0
- package/lib/file-upload/file-upload/mime-type.enum.d.ts +98 -0
- package/lib/file-upload/file-upload/mime-type.enum.d.ts.map +1 -0
- package/lib/file-upload/file-upload/mime-type.enum.js +106 -0
- package/lib/file-upload/index.d.ts +2 -0
- package/lib/file-upload/index.d.ts.map +1 -0
- package/lib/file-upload/index.js +352 -0
- package/lib/file-upload/index.umd.cjs +1 -0
- package/lib/file-upload/style.css +1 -0
- package/lib/filter-tiles/filter-tile/FilterTile.css.d.ts +37 -0
- package/lib/filter-tiles/filter-tile/FilterTile.css.d.ts.map +1 -0
- package/lib/filter-tiles/filter-tile/FilterTile.css.js +10 -0
- package/lib/filter-tiles/filter-tile/FilterTile.d.ts +9 -0
- package/lib/filter-tiles/filter-tile/FilterTile.d.ts.map +1 -0
- package/lib/filter-tiles/filter-tile/FilterTile.js +35 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.css.d.ts +2 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.css.d.ts.map +1 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.css.js +5 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.d.ts +4 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.d.ts.map +1 -0
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +16 -0
- package/lib/filter-tiles/index.d.ts +3 -0
- package/lib/filter-tiles/index.d.ts.map +1 -0
- package/lib/filter-tiles/index.js +100 -0
- package/lib/filter-tiles/index.umd.cjs +1 -0
- package/lib/filter-tiles/style.css +1 -0
- package/lib/focused-task/focused-task/FocusedTask.css.d.ts +15 -0
- package/lib/focused-task/focused-task/FocusedTask.css.d.ts.map +1 -0
- package/lib/focused-task/focused-task/FocusedTask.css.js +13 -0
- package/lib/focused-task/focused-task/FocusedTask.d.ts +17 -0
- package/lib/focused-task/focused-task/FocusedTask.d.ts.map +1 -0
- package/lib/focused-task/focused-task/FocusedTask.js +77 -0
- package/lib/focused-task/focused-task/useFocusedTask.d.ts +17 -0
- package/lib/focused-task/focused-task/useFocusedTask.d.ts.map +1 -0
- package/lib/focused-task/focused-task/useFocusedTask.js +19 -0
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.d.ts +4 -0
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.d.ts.map +1 -0
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +14 -0
- package/lib/focused-task/index.d.ts +4 -0
- package/lib/focused-task/index.d.ts.map +1 -0
- package/lib/focused-task/index.js +154 -0
- package/lib/focused-task/index.umd.cjs +1 -0
- package/lib/focused-task/style.css +1 -0
- package/lib/growler/Growler.css.d.ts +18 -0
- package/lib/growler/Growler.css.d.ts.map +1 -0
- package/lib/growler/Growler.css.js +13 -0
- package/lib/growler/Growler.d.ts +23 -0
- package/lib/growler/Growler.d.ts.map +1 -0
- package/lib/growler/Growler.js +93 -0
- package/lib/growler/GrowlerListProvider.d.ts +14 -0
- package/lib/growler/GrowlerListProvider.d.ts.map +1 -0
- package/lib/growler/GrowlerListProvider.js +42 -0
- package/lib/growler/Sonner.css.d.ts +17 -0
- package/lib/growler/Sonner.css.d.ts.map +1 -0
- package/lib/growler/Sonner.css.js +13 -0
- package/lib/growler/index.d.ts +4 -0
- package/lib/growler/index.d.ts.map +1 -0
- package/lib/growler/index.js +267 -0
- package/lib/growler/index.umd.cjs +1 -0
- package/lib/growler/sonner.d.ts +87 -0
- package/lib/growler/sonner.d.ts.map +1 -0
- package/lib/growler/sonner.js +86 -0
- package/lib/growler/style.css +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +38 -36
- package/lib/index.umd.cjs +4 -4
- package/lib/insight-card/InsightCard.css.d.ts +20 -0
- package/lib/insight-card/InsightCard.css.d.ts.map +1 -0
- package/lib/insight-card/InsightCard.css.js +14 -0
- package/lib/insight-card/InsightCard.d.ts +15 -0
- package/lib/insight-card/InsightCard.d.ts.map +1 -0
- package/lib/insight-card/InsightCard.js +69 -0
- package/lib/insight-card/InsightCardSet.d.ts +3 -0
- package/lib/insight-card/InsightCardSet.d.ts.map +1 -0
- package/lib/insight-card/InsightCardSet.js +13 -0
- package/lib/insight-card/index.d.ts +3 -0
- package/lib/insight-card/index.d.ts.map +1 -0
- package/lib/insight-card/index.js +130 -0
- package/lib/insight-card/index.umd.cjs +1 -0
- package/lib/insight-card/style.css +1 -0
- package/lib/key-value-set/index.d.ts +3 -0
- package/lib/key-value-set/index.d.ts.map +1 -0
- package/lib/key-value-set/index.js +95 -0
- package/lib/key-value-set/index.umd.cjs +1 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.css.d.ts +7 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.css.d.ts.map +1 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.css.js +6 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.d.ts +6 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.d.ts.map +1 -0
- package/lib/key-value-set/key-value-set/KeyValueSet.js +23 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.css.d.ts +14 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.css.d.ts.map +1 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.css.js +8 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.d.ts +7 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.d.ts.map +1 -0
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +23 -0
- package/lib/key-value-set/style.css +1 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts +11 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts.map +1 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.css.js +9 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.d.ts +16 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.d.ts.map +1 -0
- package/lib/list-bar/advanced-search/AdvancedSearch.js +56 -0
- package/lib/list-bar/index.d.ts +8 -0
- package/lib/list-bar/index.d.ts.map +1 -0
- package/lib/list-bar/index.js +317 -0
- package/lib/list-bar/index.umd.cjs +1 -0
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts +4 -0
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts.map +1 -0
- package/lib/list-bar/list-bar/InputGroupWrapper.js +20 -0
- package/lib/list-bar/list-bar/ListBar.css.d.ts +39 -0
- package/lib/list-bar/list-bar/ListBar.css.d.ts.map +1 -0
- package/lib/list-bar/list-bar/ListBar.css.js +18 -0
- package/lib/list-bar/list-bar/ListBar.d.ts +20 -0
- package/lib/list-bar/list-bar/ListBar.d.ts.map +1 -0
- package/lib/list-bar/list-bar/ListBar.js +123 -0
- package/lib/list-bar/list-bar/ListBarSearch.d.ts +6 -0
- package/lib/list-bar/list-bar/ListBarSearch.d.ts.map +1 -0
- package/lib/list-bar/list-bar/ListBarSearch.js +23 -0
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts +4 -0
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts.map +1 -0
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +13 -0
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts +16 -0
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts.map +1 -0
- package/lib/list-bar/list-bar/ListBarSortBy.js +40 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts +10 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts.map +1 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.css.js +14 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts +11 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts.map +1 -0
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +30 -0
- package/lib/list-bar/style.css +1 -0
- package/lib/manifest.d.ts +1 -0
- package/lib/manifest.d.ts.map +1 -0
- package/lib/matrix/index.d.ts +7 -0
- package/lib/matrix/index.d.ts.map +1 -0
- package/lib/matrix/index.js +95 -0
- package/lib/matrix/index.umd.cjs +1 -0
- package/lib/matrix/matrix/Matrix.css.d.ts +5 -0
- package/lib/matrix/matrix/Matrix.css.d.ts.map +1 -0
- package/lib/matrix/matrix/Matrix.css.js +8 -0
- package/lib/matrix/matrix/Matrix.d.ts +6 -0
- package/lib/matrix/matrix/Matrix.d.ts.map +1 -0
- package/lib/matrix/matrix/Matrix.js +28 -0
- package/lib/matrix/matrix-body/MatrixBody.d.ts +4 -0
- package/lib/matrix/matrix-body/MatrixBody.d.ts.map +1 -0
- package/lib/matrix/matrix-body/MatrixBody.js +15 -0
- package/lib/matrix/matrix-cell/MatrixCell.d.ts +4 -0
- package/lib/matrix/matrix-cell/MatrixCell.d.ts.map +1 -0
- package/lib/matrix/matrix-cell/MatrixCell.js +19 -0
- package/lib/matrix/matrix-head/MatrixHead.d.ts +4 -0
- package/lib/matrix/matrix-head/MatrixHead.d.ts.map +1 -0
- package/lib/matrix/matrix-head/MatrixHead.js +15 -0
- package/lib/matrix/matrix-header/MatrixHeader.d.ts +16 -0
- package/lib/matrix/matrix-header/MatrixHeader.d.ts.map +1 -0
- package/lib/matrix/matrix-header/MatrixHeader.js +25 -0
- package/lib/matrix/matrix-row/MatrixRow.d.ts +4 -0
- package/lib/matrix/matrix-row/MatrixRow.d.ts.map +1 -0
- package/lib/matrix/matrix-row/MatrixRow.js +15 -0
- package/lib/matrix/style.css +1 -0
- package/lib/metadata/metadata.d.ts +1 -0
- package/lib/metadata/metadata.d.ts.map +1 -0
- package/lib/modal/index.d.ts +4 -0
- package/lib/modal/index.d.ts.map +1 -0
- package/lib/modal/index.js +197 -0
- package/lib/modal/index.umd.cjs +1 -0
- package/lib/modal/modal/Modal.css.d.ts +20 -0
- package/lib/modal/modal/Modal.css.d.ts.map +1 -0
- package/lib/modal/modal/Modal.css.js +14 -0
- package/lib/modal/modal/Modal.d.ts +27 -0
- package/lib/modal/modal/Modal.d.ts.map +1 -0
- package/lib/modal/modal/Modal.js +113 -0
- package/lib/modal/modal/useModal.d.ts +17 -0
- package/lib/modal/modal/useModal.d.ts.map +1 -0
- package/lib/modal/modal/useModal.js +26 -0
- package/lib/modal/modal-footer/ModalFooter.d.ts +4 -0
- package/lib/modal/modal-footer/ModalFooter.d.ts.map +1 -0
- package/lib/modal/modal-footer/ModalFooter.js +14 -0
- package/lib/modal/style.css +1 -0
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +57 -0
- package/lib/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +11 -0
- package/lib/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/lib/page-title/index.d.ts +3 -0
- package/lib/page-title/index.d.ts.map +1 -0
- package/lib/page-title/index.js +32 -0
- package/lib/page-title/index.umd.cjs +1 -0
- package/lib/page-title/page-subtitle/PageSubtitle.css.d.ts +3 -0
- package/lib/page-title/page-subtitle/PageSubtitle.css.d.ts.map +1 -0
- package/lib/page-title/page-subtitle/PageSubtitle.css.js +6 -0
- package/lib/page-title/page-subtitle/PageSubtitle.d.ts +4 -0
- package/lib/page-title/page-subtitle/PageSubtitle.d.ts.map +1 -0
- package/lib/page-title/page-subtitle/PageSubtitle.js +19 -0
- package/lib/page-title/page-title/PageTitle.css.d.ts +4 -0
- package/lib/page-title/page-title/PageTitle.css.d.ts.map +1 -0
- package/lib/page-title/page-title/PageTitle.css.js +7 -0
- package/lib/page-title/page-title/PageTitle.d.ts +4 -0
- package/lib/page-title/page-title/PageTitle.d.ts.map +1 -0
- package/lib/page-title/page-title/PageTitle.js +17 -0
- package/lib/page-title/style.css +1 -0
- package/lib/photo/index.d.ts +3 -0
- package/lib/photo/index.d.ts.map +1 -0
- package/lib/photo/index.js +179 -0
- package/lib/photo/index.umd.cjs +1 -0
- package/lib/photo/photo/Photo.css.d.ts +12 -0
- package/lib/photo/photo/Photo.css.d.ts.map +1 -0
- package/lib/photo/photo/Photo.css.js +8 -0
- package/lib/photo/photo/Photo.d.ts +11 -0
- package/lib/photo/photo/Photo.d.ts.map +1 -0
- package/lib/photo/photo/Photo.js +83 -0
- package/lib/photo/photo-carousel/PhotoCarousel.css.d.ts +13 -0
- package/lib/photo/photo-carousel/PhotoCarousel.css.d.ts.map +1 -0
- package/lib/photo/photo-carousel/PhotoCarousel.css.js +10 -0
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts +4 -0
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts.map +1 -0
- package/lib/photo/photo-carousel/PhotoCarousel.js +48 -0
- package/lib/photo/style.css +1 -0
- package/lib/product-bar/hooks/usePriorityPlus.d.ts +33 -0
- package/lib/product-bar/hooks/usePriorityPlus.d.ts.map +1 -0
- package/lib/product-bar/hooks/usePriorityPlus.js +106 -0
- package/lib/product-bar/index.d.ts +5 -0
- package/lib/product-bar/index.d.ts.map +1 -0
- package/lib/product-bar/index.js +397 -0
- package/lib/product-bar/index.umd.cjs +1 -0
- package/lib/product-bar/product-bar/ProductBar.css.d.ts +43 -0
- package/lib/product-bar/product-bar/ProductBar.css.d.ts.map +1 -0
- package/lib/product-bar/product-bar/ProductBar.css.js +15 -0
- package/lib/product-bar/product-bar/ProductBar.d.ts +14 -0
- package/lib/product-bar/product-bar/ProductBar.d.ts.map +1 -0
- package/lib/product-bar/product-bar/ProductBar.js +107 -0
- package/lib/product-bar/product-bar-name/ProductBarName.d.ts +12 -0
- package/lib/product-bar/product-bar-name/ProductBarName.d.ts.map +1 -0
- package/lib/product-bar/product-bar-name/ProductBarName.js +33 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.d.ts +23 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.d.ts.map +1 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.js +9 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.d.ts +13 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.d.ts.map +1 -0
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +71 -0
- package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts +16 -0
- package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts.map +1 -0
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +24 -0
- package/lib/product-bar/slack-link/SlackLink.css.d.ts +3 -0
- package/lib/product-bar/slack-link/SlackLink.css.d.ts.map +1 -0
- package/lib/product-bar/slack-link/SlackLink.css.js +6 -0
- package/lib/product-bar/slack-link/SlackLink.d.ts +6 -0
- package/lib/product-bar/slack-link/SlackLink.d.ts.map +1 -0
- package/lib/product-bar/slack-link/SlackLink.js +32 -0
- package/lib/product-bar/style.css +1 -0
- package/lib/product-bar-vertical/index.d.ts +5 -0
- package/lib/product-bar-vertical/index.d.ts.map +1 -0
- package/lib/product-bar-vertical/index.js +261 -0
- package/lib/product-bar-vertical/index.umd.cjs +1 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.css.d.ts +78 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.css.d.ts.map +1 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.css.js +24 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.d.ts +8 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.d.ts.map +1 -0
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +62 -0
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.d.ts +9 -0
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.d.ts.map +1 -0
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +44 -0
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts +15 -0
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts.map +1 -0
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +91 -0
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.d.ts +10 -0
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.d.ts.map +1 -0
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +30 -0
- package/lib/product-bar-vertical/style.css +1 -0
- package/lib/progress-indicators/index.d.ts +4 -0
- package/lib/progress-indicators/index.d.ts.map +1 -0
- package/lib/progress-indicators/index.js +264 -0
- package/lib/progress-indicators/index.umd.cjs +1 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts +19 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts.map +1 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.css.js +14 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts +13 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts.map +1 -0
- package/lib/progress-indicators/progress-bar/ProgressBar.js +112 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.css.d.ts +14 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.css.d.ts.map +1 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.css.js +9 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts +14 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts.map +1 -0
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +56 -0
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts +8 -0
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts.map +1 -0
- package/lib/progress-indicators/progress-ring/ProgressRing.js +54 -0
- package/lib/progress-indicators/style.css +1 -0
- package/lib/rich-text-editor/index.d.ts +3 -0
- package/lib/rich-text-editor/index.d.ts.map +1 -0
- package/lib/rich-text-editor/index.js +588 -0
- package/lib/rich-text-editor/index.umd.cjs +13 -0
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.d.ts +13 -0
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +35 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.css.d.ts +16 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.css.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.css.js +7 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.d.ts +11 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +38 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.css.d.ts +15 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.css.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.css.js +9 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.d.ts +8 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +81 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.d.ts +2 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +20 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.d.ts +2 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +22 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.d.ts +14 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +28 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.d.ts +6 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +94 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.d.ts +7 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +37 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.d.ts +15 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +214 -0
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -0
- package/lib/rich-text-editor/rich-text-editor/icons/index.d.ts +12 -0
- package/lib/rich-text-editor/rich-text-editor/icons/index.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.d.ts +10 -0
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +13 -0
- package/lib/rich-text-editor/rich-text-editor/utils/utils.d.ts +3 -0
- package/lib/rich-text-editor/rich-text-editor/utils/utils.d.ts.map +1 -0
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +16 -0
- package/lib/rich-text-editor/style.css +1 -0
- package/lib/scrollable-container/ScrollableContainer.css.d.ts +2 -0
- package/lib/scrollable-container/ScrollableContainer.css.d.ts.map +1 -0
- package/lib/scrollable-container/ScrollableContainer.css.js +5 -0
- package/lib/scrollable-container/ScrollableContainer.d.ts +6 -0
- package/lib/scrollable-container/ScrollableContainer.d.ts.map +1 -0
- package/lib/scrollable-container/ScrollableContainer.js +29 -0
- package/lib/scrollable-container/index.d.ts +2 -0
- package/lib/scrollable-container/index.d.ts.map +1 -0
- package/lib/scrollable-container/index.js +29 -0
- package/lib/scrollable-container/index.umd.cjs +1 -0
- package/lib/scrollable-container/style.css +1 -0
- package/lib/side-nav/index.d.ts +5 -0
- package/lib/side-nav/index.d.ts.map +1 -0
- package/lib/side-nav/index.js +228 -0
- package/lib/side-nav/index.umd.cjs +1 -0
- package/lib/side-nav/side-nav/SideNav.css.d.ts +30 -0
- package/lib/side-nav/side-nav/SideNav.css.d.ts.map +1 -0
- package/lib/side-nav/side-nav/SideNav.css.js +17 -0
- package/lib/side-nav/side-nav/SideNav.d.ts +9 -0
- package/lib/side-nav/side-nav/SideNav.d.ts.map +1 -0
- package/lib/side-nav/side-nav/SideNav.js +62 -0
- package/lib/side-nav/side-nav/navContext.d.ts +5 -0
- package/lib/side-nav/side-nav/navContext.d.ts.map +1 -0
- package/lib/side-nav/side-nav/navContext.js +8 -0
- package/lib/side-nav/side-nav-header/SideNavHeader.d.ts +4 -0
- package/lib/side-nav/side-nav-header/SideNavHeader.d.ts.map +1 -0
- package/lib/side-nav/side-nav-header/SideNavHeader.js +17 -0
- package/lib/side-nav/side-nav-item/SideNavItem.d.ts +25 -0
- package/lib/side-nav/side-nav-item/SideNavItem.d.ts.map +1 -0
- package/lib/side-nav/side-nav-item/SideNavItem.js +84 -0
- package/lib/side-nav/side-nav-section/SideNavSection.d.ts +7 -0
- package/lib/side-nav/side-nav-section/SideNavSection.d.ts.map +1 -0
- package/lib/side-nav/side-nav-section/SideNavSection.js +28 -0
- package/lib/side-nav/style.css +1 -0
- package/lib/sorting-header/caret/caret.css.d.ts +21 -0
- package/lib/sorting-header/caret/caret.css.d.ts.map +1 -0
- package/lib/sorting-header/caret/caret.css.js +6 -0
- package/lib/sorting-header/index.d.ts +3 -0
- package/lib/sorting-header/index.d.ts.map +1 -0
- package/lib/sorting-header/index.js +250 -0
- package/lib/sorting-header/index.umd.cjs +1 -0
- package/lib/sorting-header/sorting-header/SortingHeader.css.d.ts +39 -0
- package/lib/sorting-header/sorting-header/SortingHeader.css.d.ts.map +1 -0
- package/lib/sorting-header/sorting-header/SortingHeader.css.js +7 -0
- package/lib/sorting-header/sorting-header/SortingHeader.d.ts +9 -0
- package/lib/sorting-header/sorting-header/SortingHeader.d.ts.map +1 -0
- package/lib/sorting-header/sorting-header/SortingHeader.js +126 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.d.ts +35 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.d.ts.map +1 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.js +6 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.d.ts +12 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.d.ts.map +1 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +77 -0
- package/lib/sorting-header/style.css +1 -0
- package/lib/style.css +1 -1
- package/lib/tabs/index.d.ts +4 -0
- package/lib/tabs/index.d.ts.map +1 -0
- package/lib/tabs/index.js +206 -0
- package/lib/tabs/index.umd.cjs +1 -0
- package/lib/tabs/style.css +1 -0
- package/lib/tabs/tab/Tab.css.d.ts +12 -0
- package/lib/tabs/tab/Tab.css.d.ts.map +1 -0
- package/lib/tabs/tab/Tab.css.js +7 -0
- package/lib/tabs/tab/Tab.d.ts +10 -0
- package/lib/tabs/tab/Tab.d.ts.map +1 -0
- package/lib/tabs/tab/Tab.js +28 -0
- package/lib/tabs/tab-panel/TabPanel.d.ts +9 -0
- package/lib/tabs/tab-panel/TabPanel.d.ts.map +1 -0
- package/lib/tabs/tab-panel/TabPanel.js +24 -0
- package/lib/tabs/tabs/Tabs.css.d.ts +30 -0
- package/lib/tabs/tabs/Tabs.css.d.ts.map +1 -0
- package/lib/tabs/tabs/Tabs.css.js +11 -0
- package/lib/tabs/tabs/Tabs.d.ts +6 -0
- package/lib/tabs/tabs/Tabs.d.ts.map +1 -0
- package/lib/tabs/tabs/Tabs.js +113 -0
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts +17 -0
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts.map +1 -0
- package/lib/tags/clickable-tag/ClickableTag.css.js +10 -0
- package/lib/tags/clickable-tag/ClickableTag.d.ts +13 -0
- package/lib/tags/clickable-tag/ClickableTag.d.ts.map +1 -0
- package/lib/tags/clickable-tag/ClickableTag.js +72 -0
- package/lib/tags/index.d.ts +4 -0
- package/lib/tags/index.d.ts.map +1 -0
- package/lib/tags/index.js +189 -0
- package/lib/tags/index.umd.cjs +1 -0
- package/lib/tags/split-tag/SplitTag.css.d.ts +67 -0
- package/lib/tags/split-tag/SplitTag.css.d.ts.map +1 -0
- package/lib/tags/split-tag/SplitTag.css.js +10 -0
- package/lib/tags/split-tag/SplitTag.d.ts +14 -0
- package/lib/tags/split-tag/SplitTag.d.ts.map +1 -0
- package/lib/tags/split-tag/SplitTag.js +32 -0
- package/lib/tags/style.css +1 -0
- package/lib/tags/tag/Tag.css.d.ts +24 -0
- package/lib/tags/tag/Tag.css.d.ts.map +1 -0
- package/lib/tags/tag/Tag.css.js +7 -0
- package/lib/tags/tag/Tag.d.ts +11 -0
- package/lib/tags/tag/Tag.d.ts.map +1 -0
- package/lib/tags/tag/Tag.js +41 -0
- package/lib/types/table.d.ts +1 -0
- package/lib/types/table.d.ts.map +1 -0
- package/lib/utils/ChildrenFn.d.ts +1 -0
- package/lib/utils/ChildrenFn.d.ts.map +1 -0
- package/lib/utils/ComponentProps.d.ts +1 -0
- package/lib/utils/ComponentProps.d.ts.map +1 -0
- package/lib/utils/Provide.d.ts +1 -0
- package/lib/utils/Provide.d.ts.map +1 -0
- package/lib/utils/VariantDefinitions.d.ts +1 -0
- package/lib/utils/VariantDefinitions.d.ts.map +1 -0
- package/lib/utils/addClassName.d.ts +1 -0
- package/lib/utils/addClassName.d.ts.map +1 -0
- package/lib/utils/addProps.d.ts +1 -0
- package/lib/utils/addProps.d.ts.map +1 -0
- package/lib/utils/bindProps.d.ts +1 -0
- package/lib/utils/bindProps.d.ts.map +1 -0
- package/lib/utils/cl.d.ts +1 -0
- package/lib/utils/cl.d.ts.map +1 -0
- package/lib/utils/combineEventHandlers.d.ts +1 -0
- package/lib/utils/combineEventHandlers.d.ts.map +1 -0
- package/lib/utils/contentOf.d.ts +1 -0
- package/lib/utils/contentOf.d.ts.map +1 -0
- package/lib/utils/getScrollParent.d.ts +1 -0
- package/lib/utils/getScrollParent.d.ts.map +1 -0
- package/lib/utils/modChildren.d.ts +1 -0
- package/lib/utils/modChildren.d.ts.map +1 -0
- package/lib/utils/selectChildren.d.ts +1 -0
- package/lib/utils/selectChildren.d.ts.map +1 -0
- package/lib/utils/useChildTestIdAttrBuilder.d.ts +1 -0
- package/lib/utils/useChildTestIdAttrBuilder.d.ts.map +1 -0
- package/lib/utils/useElementId.d.ts +1 -0
- package/lib/utils/useElementId.d.ts.map +1 -0
- package/lib/utils/usePatchReducer.d.ts +1 -0
- package/lib/utils/usePatchReducer.d.ts.map +1 -0
- package/lib/utils/usePortal.d.ts +1 -0
- package/lib/utils/usePortal.d.ts.map +1 -0
- package/lib/zero-state/ZeroState.css.d.ts +41 -0
- package/lib/zero-state/ZeroState.css.d.ts.map +1 -0
- package/lib/zero-state/ZeroState.css.js +12 -0
- package/lib/zero-state/ZeroState.d.ts +12 -0
- package/lib/zero-state/ZeroState.d.ts.map +1 -0
- package/lib/zero-state/ZeroState.js +31 -0
- package/lib/zero-state/index.d.ts +2 -0
- package/lib/zero-state/index.d.ts.map +1 -0
- package/lib/zero-state/index.js +84 -0
- package/lib/zero-state/index.umd.cjs +1 -0
- package/lib/zero-state/style.css +1 -0
- package/package.json +755 -6
- package/vite.action-bar.config.mjs +40 -0
- package/vite.add-to-list.config.mjs +40 -0
- package/vite.buttons.config.mjs +41 -0
- package/vite.cards.config.mjs +40 -0
- package/vite.config.mjs +5 -1
- package/vite.content-row.config.mjs +40 -0
- package/vite.content-tiles.config.mjs +40 -0
- package/vite.dropdowns.config.mjs +41 -0
- package/vite.editable-table.config.mjs +68 -0
- package/vite.feedback-block.config.mjs +40 -0
- package/vite.file-upload.config.mjs +40 -0
- package/vite.filter-tiles.config.mjs +40 -0
- package/vite.focused-task.config.mjs +40 -0
- package/vite.growler.config.mjs +41 -0
- package/vite.insight-card.config.mjs +40 -0
- package/vite.key-value-set.config.mjs +40 -0
- package/vite.list-bar.config.mjs +40 -0
- package/vite.matrix.config.mjs +40 -0
- package/vite.modal.config.mjs +40 -0
- package/vite.page-title.config.mjs +40 -0
- package/vite.photo.config.mjs +40 -0
- package/vite.product-bar-vertical.config.mjs +40 -0
- package/vite.product-bar.config.mjs +42 -0
- package/vite.progress-indicators.config.mjs +40 -0
- package/vite.rich-text-editor.config.mjs +48 -0
- package/vite.scrollable-container.config.mjs +40 -0
- package/vite.side-nav.config.mjs +40 -0
- package/vite.sorting-header.config.mjs +40 -0
- package/vite.subpaths.config.mjs +246 -0
- package/vite.tabs.config.mjs +43 -0
- package/vite.tags.config.mjs +40 -0
- package/vite.zero-state.config.mjs +40 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { Metadata as G, cl as M, Spinner as O, Icon as y } from "@sps-woodland/core";
|
|
3
|
+
import { Button as b } from "@sps-woodland/core/button";
|
|
4
|
+
import { Tokens as g } from "@sps-woodland/tokens";
|
|
5
|
+
import { useWoodlandLanguage as k } from "@spscommerce/i18n";
|
|
6
|
+
import { growler as D, growlerIconBox as _, growlerIcon as A, growlerMessageBox as S, growlerMessageBoxText as U, growlerMessageBoxTitle as W, growlerCloseButton as L } from "./Growler.css.js";
|
|
7
|
+
const V = Object.freeze({
|
|
8
|
+
warning: "status-warning",
|
|
9
|
+
error: "status-error",
|
|
10
|
+
success: "status-ok",
|
|
11
|
+
info: "info-circle"
|
|
12
|
+
});
|
|
13
|
+
function j({
|
|
14
|
+
children: p,
|
|
15
|
+
className: d,
|
|
16
|
+
imgSrc: i,
|
|
17
|
+
kind: n = "info",
|
|
18
|
+
onClose: t,
|
|
19
|
+
removeFromList: r,
|
|
20
|
+
persist: E,
|
|
21
|
+
title: l,
|
|
22
|
+
id: o,
|
|
23
|
+
...T
|
|
24
|
+
}) {
|
|
25
|
+
const s = e.useRef(t);
|
|
26
|
+
e.useEffect(() => {
|
|
27
|
+
s.current = t;
|
|
28
|
+
}, [t]);
|
|
29
|
+
const u = g.component.growler.duration.visible, N = g.component.growler.duration.fadeout, [R, a] = e.useState(!1), { t: I } = k();
|
|
30
|
+
function x() {
|
|
31
|
+
return [
|
|
32
|
+
window.setTimeout(() => {
|
|
33
|
+
a(!0);
|
|
34
|
+
}, u),
|
|
35
|
+
window.setTimeout(() => {
|
|
36
|
+
s.current && s.current(), r && o && r(o);
|
|
37
|
+
}, u + N)
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
const c = e.useRef([]);
|
|
41
|
+
function m() {
|
|
42
|
+
E || (c.current = x());
|
|
43
|
+
}
|
|
44
|
+
function f() {
|
|
45
|
+
for (const v of c.current)
|
|
46
|
+
window.clearTimeout(v);
|
|
47
|
+
c.current = [];
|
|
48
|
+
}
|
|
49
|
+
function w() {
|
|
50
|
+
f(), a(!1);
|
|
51
|
+
}
|
|
52
|
+
function B() {
|
|
53
|
+
w(), a(!1), t && t(), r && o && r(o);
|
|
54
|
+
}
|
|
55
|
+
return e.useEffect(() => (m(), () => {
|
|
56
|
+
f();
|
|
57
|
+
}), []), /* @__PURE__ */ e.createElement(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
role: "alert",
|
|
61
|
+
"aria-live": "polite",
|
|
62
|
+
className: M(D({ kind: n, fade: R }), d),
|
|
63
|
+
onMouseEnter: w,
|
|
64
|
+
onMouseLeave: m,
|
|
65
|
+
...T
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ e.createElement("div", { className: _ }, i && /* @__PURE__ */ e.createElement("img", { src: i, alt: "" }), n === "progress" ? /* @__PURE__ */ e.createElement(O, null) : /* @__PURE__ */ e.createElement(y, { icon: V[n], className: A })),
|
|
68
|
+
/* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement("div", { className: U }, l && /* @__PURE__ */ e.createElement("span", { className: W }, l), /* @__PURE__ */ e.createElement("div", null, p)), /* @__PURE__ */ e.createElement(
|
|
69
|
+
b,
|
|
70
|
+
{
|
|
71
|
+
kind: "icon",
|
|
72
|
+
icon: "x",
|
|
73
|
+
title: I("growler.dismiss", { defaultValue: "Dismiss" }),
|
|
74
|
+
className: L,
|
|
75
|
+
onClick: B
|
|
76
|
+
}
|
|
77
|
+
))
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
G.set(j, {
|
|
81
|
+
name: "Growler",
|
|
82
|
+
props: {
|
|
83
|
+
imgSrc: { type: "string" },
|
|
84
|
+
kind: { type: "GrowlerKind", default: "info" },
|
|
85
|
+
onClose: { type: "() => void" },
|
|
86
|
+
persist: { type: "boolean" },
|
|
87
|
+
title: { type: "string" }
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
j as Growler,
|
|
92
|
+
V as GrowlerIcons
|
|
93
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type RenderFn = () => React.ReactElement;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `GrowlerEmitter` and `growl` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare function GrowlerListProvider(props: any): JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `GrowlerEmitter` and `growl` instead
|
|
9
|
+
*/
|
|
10
|
+
export declare const useGrowler: () => {
|
|
11
|
+
addGrowler: (NewGrowler: RenderFn) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=GrowlerListProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GrowlerListProvider.d.ts","sourceRoot":"","sources":["../../src/growler/GrowlerListProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,QAAQ,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC;AAezC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,eAqC7C;AAED;;GAEG;AACH,eAAO,MAAM,UAAU;6BAMN,QAAQ;CAYxB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { nanoid as w } from "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js";
|
|
3
|
+
import m from "react-dom";
|
|
4
|
+
import { Metadata as u } from "@sps-woodland/core";
|
|
5
|
+
import { growlerArea as G } from "./Growler.css.js";
|
|
6
|
+
const i = e.createContext({
|
|
7
|
+
growlerList: [],
|
|
8
|
+
// setGrowlerList noop until defined
|
|
9
|
+
setGrowlerList: () => {
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function g(r) {
|
|
13
|
+
const [n, o] = e.useState([]), l = (t) => {
|
|
14
|
+
if (!t) {
|
|
15
|
+
console.error("growlers should have an id");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
o(
|
|
19
|
+
(a) => a.filter((d) => t !== d.id)
|
|
20
|
+
);
|
|
21
|
+
}, s = n.map(({ G: t, id: a }) => e.cloneElement(t(), { key: a, id: a, removeFromList: l })).filter((t) => u.get(t.type).name === "Growler" ? !0 : (console.error("addGrowler only accepts a function that returns a Growler"), !1)), c = /* @__PURE__ */ e.createElement("div", { "data-testid": r["data-testid"], "data-portalid": "growler-portal", "data-react-aria-top-layer": "true", className: G }, s);
|
|
22
|
+
return /* @__PURE__ */ e.createElement(i.Provider, { value: { growlerList: n, setGrowlerList: o } }, m.createPortal(c, document.body), r.children);
|
|
23
|
+
}
|
|
24
|
+
const h = () => {
|
|
25
|
+
const r = e.useContext(i);
|
|
26
|
+
if (r === void 0)
|
|
27
|
+
throw new Error("addGrowler must be used within a GrowlerListProvider");
|
|
28
|
+
return { addGrowler: e.useCallback(
|
|
29
|
+
(o) => {
|
|
30
|
+
const l = w(), s = {
|
|
31
|
+
G: o,
|
|
32
|
+
id: l
|
|
33
|
+
};
|
|
34
|
+
r.setGrowlerList([s, ...r.growlerList]);
|
|
35
|
+
},
|
|
36
|
+
[r]
|
|
37
|
+
) };
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
g as GrowlerListProvider,
|
|
41
|
+
h as useGrowler
|
|
42
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tokens } from "@sps-woodland/tokens";
|
|
2
|
+
import type { VariantDefinitions, RecipeVariant } from "@sps-woodland/core";
|
|
3
|
+
export type GrowlerKind = keyof typeof Tokens.component.growler.kind;
|
|
4
|
+
interface GrowlerVariantDefinitions extends VariantDefinitions {
|
|
5
|
+
kind: RecipeVariant<GrowlerKind>;
|
|
6
|
+
}
|
|
7
|
+
export declare const growler: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<GrowlerVariantDefinitions>;
|
|
8
|
+
export declare const growlerArea: string;
|
|
9
|
+
export declare const growlerIconBox: string;
|
|
10
|
+
export declare const growlerIcon: string;
|
|
11
|
+
export declare const growlerMessageBox: string;
|
|
12
|
+
export declare const growlerMessageBoxText: string;
|
|
13
|
+
export declare const growlerMessageBoxTitle: string;
|
|
14
|
+
export declare const growlerMessageBoxSubtitle: string;
|
|
15
|
+
export declare const growlerCloseButton: string;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Sonner.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sonner.css.d.ts","sourceRoot":"","sources":["../../src/growler/Sonner.css.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;AAErE,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CAClC;AAID,eAAO,MAAM,OAAO,kHAwClB,CAAC;AAGH,eAAO,MAAM,WAAW,QAItB,CAAC;AACH,eAAO,MAAM,cAAc,QAOzB,CAAC;AACH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAM5B,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAIhC,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAEjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,QAIpC,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAI7B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn as _ } from "../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
3
|
+
var r = _({ defaultClassName: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k0", variantClassNames: { kind: { activity: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k1", info: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k2", progress: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k3", error: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k4", success: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k5", warning: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k6" } }, defaultVariants: {}, compoundVariants: [] }), e = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k7", a = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k8", p = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k9", n = "pkg_sps-woodland_core__version_8_51_0__hash_198p00ka", d = "pkg_sps-woodland_core__version_8_51_0__hash_198p00kb", k = "pkg_sps-woodland_core__version_8_51_0__hash_198p00kc", h = "pkg_sps-woodland_core__version_8_51_0__hash_198p00ke";
|
|
4
|
+
export {
|
|
5
|
+
r as growler,
|
|
6
|
+
e as growlerArea,
|
|
7
|
+
h as growlerCloseButton,
|
|
8
|
+
p as growlerIcon,
|
|
9
|
+
a as growlerIconBox,
|
|
10
|
+
n as growlerMessageBox,
|
|
11
|
+
d as growlerMessageBoxText,
|
|
12
|
+
k as growlerMessageBoxTitle
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/growler/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { Metadata as g, cl as A, Spinner as O, Icon as y } from "@sps-woodland/core";
|
|
3
|
+
import { Button as N } from "@sps-woodland/core/button";
|
|
4
|
+
import { Tokens as u } from "@sps-woodland/tokens";
|
|
5
|
+
import { useWoodlandLanguage as C } from "@spscommerce/i18n";
|
|
6
|
+
import M from "react-dom";
|
|
7
|
+
import { toast as v, Toaster as S } from "sonner";
|
|
8
|
+
function U(e, t, r) {
|
|
9
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
10
|
+
value: r,
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
configurable: !0,
|
|
13
|
+
writable: !0
|
|
14
|
+
}) : e[t] = r, e;
|
|
15
|
+
}
|
|
16
|
+
function x(e, t) {
|
|
17
|
+
var r = Object.keys(e);
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
20
|
+
t && (o = o.filter(function(_) {
|
|
21
|
+
return Object.getOwnPropertyDescriptor(e, _).enumerable;
|
|
22
|
+
})), r.push.apply(r, o);
|
|
23
|
+
}
|
|
24
|
+
return r;
|
|
25
|
+
}
|
|
26
|
+
function G(e) {
|
|
27
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
28
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
29
|
+
t % 2 ? x(Object(r), !0).forEach(function(o) {
|
|
30
|
+
U(e, o, r[o]);
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : x(Object(r)).forEach(function(o) {
|
|
32
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
var $ = (e, t, r) => {
|
|
38
|
+
for (var o of Object.keys(e)) {
|
|
39
|
+
var _;
|
|
40
|
+
if (e[o] !== ((_ = t[o]) !== null && _ !== void 0 ? _ : r[o]))
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
return !0;
|
|
44
|
+
}, T = (e) => (t) => {
|
|
45
|
+
var r = e.defaultClassName, o = G(G({}, e.defaultVariants), t);
|
|
46
|
+
for (var _ in o) {
|
|
47
|
+
var l, n = (l = o[_]) !== null && l !== void 0 ? l : e.defaultVariants[_];
|
|
48
|
+
if (n != null) {
|
|
49
|
+
var a = n;
|
|
50
|
+
typeof a == "boolean" && (a = a === !0 ? "true" : "false");
|
|
51
|
+
var i = (
|
|
52
|
+
// @ts-expect-error
|
|
53
|
+
e.variantClassNames[_][a]
|
|
54
|
+
);
|
|
55
|
+
i && (r += " " + i);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
for (var [m, p] of e.compoundVariants)
|
|
59
|
+
$(m, o, e.defaultVariants) && (r += " " + p);
|
|
60
|
+
return r;
|
|
61
|
+
}, W = T({ defaultClassName: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt451", variantClassNames: { kind: { activity: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt452", info: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt453", progress: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt454", error: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt455", success: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt456", warning: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt457" }, fade: { true: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt458", false: "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt459" } }, defaultVariants: {}, compoundVariants: [] }), K = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45a", F = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45b", q = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45c", H = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45d", J = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45e", Q = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45f", X = "pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45h";
|
|
62
|
+
const B = Object.freeze({
|
|
63
|
+
warning: "status-warning",
|
|
64
|
+
error: "status-error",
|
|
65
|
+
success: "status-ok",
|
|
66
|
+
info: "info-circle"
|
|
67
|
+
});
|
|
68
|
+
function Y({
|
|
69
|
+
children: e,
|
|
70
|
+
className: t,
|
|
71
|
+
imgSrc: r,
|
|
72
|
+
kind: o = "info",
|
|
73
|
+
onClose: _,
|
|
74
|
+
removeFromList: l,
|
|
75
|
+
persist: n,
|
|
76
|
+
title: a,
|
|
77
|
+
id: i,
|
|
78
|
+
...m
|
|
79
|
+
}) {
|
|
80
|
+
const p = s.useRef(_);
|
|
81
|
+
s.useEffect(() => {
|
|
82
|
+
p.current = _;
|
|
83
|
+
}, [_]);
|
|
84
|
+
const h = u.component.growler.duration.visible, L = u.component.growler.duration.fadeout, [D, w] = s.useState(!1), { t: I } = C();
|
|
85
|
+
function R() {
|
|
86
|
+
return [
|
|
87
|
+
window.setTimeout(() => {
|
|
88
|
+
w(!0);
|
|
89
|
+
}, h),
|
|
90
|
+
window.setTimeout(() => {
|
|
91
|
+
p.current && p.current(), l && i && l(i);
|
|
92
|
+
}, h + L)
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
const f = s.useRef([]);
|
|
96
|
+
function k() {
|
|
97
|
+
n || (f.current = R());
|
|
98
|
+
}
|
|
99
|
+
function b() {
|
|
100
|
+
for (const j of f.current)
|
|
101
|
+
window.clearTimeout(j);
|
|
102
|
+
f.current = [];
|
|
103
|
+
}
|
|
104
|
+
function E() {
|
|
105
|
+
b(), w(!1);
|
|
106
|
+
}
|
|
107
|
+
function V() {
|
|
108
|
+
E(), w(!1), _ && _(), l && i && l(i);
|
|
109
|
+
}
|
|
110
|
+
return s.useEffect(() => (k(), () => {
|
|
111
|
+
b();
|
|
112
|
+
}), []), /* @__PURE__ */ s.createElement(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
role: "alert",
|
|
116
|
+
"aria-live": "polite",
|
|
117
|
+
className: A(W({ kind: o, fade: D }), t),
|
|
118
|
+
onMouseEnter: E,
|
|
119
|
+
onMouseLeave: k,
|
|
120
|
+
...m
|
|
121
|
+
},
|
|
122
|
+
/* @__PURE__ */ s.createElement("div", { className: F }, r && /* @__PURE__ */ s.createElement("img", { src: r, alt: "" }), o === "progress" ? /* @__PURE__ */ s.createElement(O, null) : /* @__PURE__ */ s.createElement(y, { icon: B[o], className: q })),
|
|
123
|
+
/* @__PURE__ */ s.createElement("div", { className: H }, /* @__PURE__ */ s.createElement("div", { className: J }, a && /* @__PURE__ */ s.createElement("span", { className: Q }, a), /* @__PURE__ */ s.createElement("div", null, e)), /* @__PURE__ */ s.createElement(
|
|
124
|
+
N,
|
|
125
|
+
{
|
|
126
|
+
kind: "icon",
|
|
127
|
+
icon: "x",
|
|
128
|
+
title: I("growler.dismiss", { defaultValue: "Dismiss" }),
|
|
129
|
+
className: X,
|
|
130
|
+
onClick: V
|
|
131
|
+
}
|
|
132
|
+
))
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
g.set(Y, {
|
|
136
|
+
name: "Growler",
|
|
137
|
+
props: {
|
|
138
|
+
imgSrc: { type: "string" },
|
|
139
|
+
kind: { type: "GrowlerKind", default: "info" },
|
|
140
|
+
onClose: { type: "() => void" },
|
|
141
|
+
persist: { type: "boolean" },
|
|
142
|
+
title: { type: "string" }
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
const Z = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
146
|
+
let z = (e = 21) => {
|
|
147
|
+
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
148
|
+
for (; e--; )
|
|
149
|
+
t += Z[r[e] & 63];
|
|
150
|
+
return t;
|
|
151
|
+
};
|
|
152
|
+
const P = s.createContext({
|
|
153
|
+
growlerList: [],
|
|
154
|
+
// setGrowlerList noop until defined
|
|
155
|
+
setGrowlerList: () => {
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
function fe(e) {
|
|
159
|
+
const [t, r] = s.useState([]), o = (n) => {
|
|
160
|
+
if (!n) {
|
|
161
|
+
console.error("growlers should have an id");
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
r(
|
|
165
|
+
(a) => a.filter((i) => n !== i.id)
|
|
166
|
+
);
|
|
167
|
+
}, _ = t.map(({ G: n, id: a }) => s.cloneElement(n(), { key: a, id: a, removeFromList: o })).filter((n) => g.get(n.type).name === "Growler" ? !0 : (console.error("addGrowler only accepts a function that returns a Growler"), !1)), l = /* @__PURE__ */ s.createElement("div", { "data-testid": e["data-testid"], "data-portalid": "growler-portal", "data-react-aria-top-layer": "true", className: K }, _);
|
|
168
|
+
return /* @__PURE__ */ s.createElement(P.Provider, { value: { growlerList: t, setGrowlerList: r } }, M.createPortal(l, document.body), e.children);
|
|
169
|
+
}
|
|
170
|
+
const ve = () => {
|
|
171
|
+
const e = s.useContext(P);
|
|
172
|
+
if (e === void 0)
|
|
173
|
+
throw new Error("addGrowler must be used within a GrowlerListProvider");
|
|
174
|
+
return { addGrowler: s.useCallback(
|
|
175
|
+
(r) => {
|
|
176
|
+
const o = z(), _ = {
|
|
177
|
+
G: r,
|
|
178
|
+
id: o
|
|
179
|
+
};
|
|
180
|
+
e.setGrowlerList([_, ...e.growlerList]);
|
|
181
|
+
},
|
|
182
|
+
[e]
|
|
183
|
+
) };
|
|
184
|
+
};
|
|
185
|
+
var ee = T({ defaultClassName: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k0", variantClassNames: { kind: { activity: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k1", info: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k2", progress: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k3", error: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k4", success: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k5", warning: "pkg_sps-woodland_core__version_8_51_0__hash_198p00k6" } }, defaultVariants: {}, compoundVariants: [] }), re = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k7", oe = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k8", se = "pkg_sps-woodland_core__version_8_51_0__hash_198p00k9", te = "pkg_sps-woodland_core__version_8_51_0__hash_198p00ka", _e = "pkg_sps-woodland_core__version_8_51_0__hash_198p00kb", ae = "pkg_sps-woodland_core__version_8_51_0__hash_198p00kc", ne = "pkg_sps-woodland_core__version_8_51_0__hash_198p00ke";
|
|
186
|
+
function le() {
|
|
187
|
+
return /* @__PURE__ */ s.createElement(
|
|
188
|
+
S,
|
|
189
|
+
{
|
|
190
|
+
visibleToasts: 10,
|
|
191
|
+
expand: !0,
|
|
192
|
+
closeButton: !0,
|
|
193
|
+
position: "top-right",
|
|
194
|
+
className: re,
|
|
195
|
+
duration: u.component.growler.duration.visible,
|
|
196
|
+
richColors: !0,
|
|
197
|
+
toastOptions: {
|
|
198
|
+
style: {
|
|
199
|
+
outline: "none"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
g.set(le, { name: "GrowlerEmitter" });
|
|
206
|
+
function ie({
|
|
207
|
+
children: e,
|
|
208
|
+
kind: t = "info",
|
|
209
|
+
onCloseButtonClick: r,
|
|
210
|
+
title: o
|
|
211
|
+
}) {
|
|
212
|
+
const { t: _ } = C();
|
|
213
|
+
return /* @__PURE__ */ s.createElement("div", { className: ee({ kind: t }) }, /* @__PURE__ */ s.createElement("div", { className: oe }, t === "progress" ? /* @__PURE__ */ s.createElement(O, null) : /* @__PURE__ */ s.createElement(y, { icon: B[t], className: se })), /* @__PURE__ */ s.createElement("div", { className: te }, /* @__PURE__ */ s.createElement("div", { className: _e }, o ? /* @__PURE__ */ s.createElement("span", { className: ae }, o) : void 0, /* @__PURE__ */ s.createElement("div", null, e)), /* @__PURE__ */ s.createElement(
|
|
214
|
+
N,
|
|
215
|
+
{
|
|
216
|
+
kind: "icon",
|
|
217
|
+
icon: "x",
|
|
218
|
+
title: _("growler.dismiss"),
|
|
219
|
+
className: ne,
|
|
220
|
+
onClick: r
|
|
221
|
+
}
|
|
222
|
+
)));
|
|
223
|
+
}
|
|
224
|
+
const c = (e) => (t, r) => (
|
|
225
|
+
// eslint-disable-next-line implicit-arrow-linebreak -- There are contradictory format rules
|
|
226
|
+
v.custom(
|
|
227
|
+
(o) => /* @__PURE__ */ s.createElement(
|
|
228
|
+
ie,
|
|
229
|
+
{
|
|
230
|
+
title: t,
|
|
231
|
+
kind: e,
|
|
232
|
+
onCloseButtonClick: () => {
|
|
233
|
+
v.dismiss(o), r?.onDismiss?.(o);
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
typeof r?.description == "function" ? r.description(o) : r?.description
|
|
237
|
+
),
|
|
238
|
+
{
|
|
239
|
+
// An undefined property will not produce the desired behavior, so it is optionally included
|
|
240
|
+
...r?.id ? { id: r.id } : {},
|
|
241
|
+
duration: r?.autoClose ?? !0 ? u.component.growler.duration.visible : 1 / 0,
|
|
242
|
+
onDismiss: (o) => {
|
|
243
|
+
r?.onDismiss?.(o.id);
|
|
244
|
+
},
|
|
245
|
+
onAutoClose: (o) => {
|
|
246
|
+
r?.onAutoClose?.(o.id);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
), d = (e, { kind: t, ...r }) => (
|
|
251
|
+
// eslint-disable-next-line implicit-arrow-linebreak -- There are contradictory format rules
|
|
252
|
+
c(t)(e, r)
|
|
253
|
+
);
|
|
254
|
+
d.success = c("success");
|
|
255
|
+
d.error = c("error");
|
|
256
|
+
d.info = c("info");
|
|
257
|
+
d.warning = c("warning");
|
|
258
|
+
d.progress = c("progress");
|
|
259
|
+
d.dismiss = v.dismiss;
|
|
260
|
+
export {
|
|
261
|
+
Y as Growler,
|
|
262
|
+
le as GrowlerEmitter,
|
|
263
|
+
B as GrowlerIcons,
|
|
264
|
+
fe as GrowlerListProvider,
|
|
265
|
+
d as growl,
|
|
266
|
+
ve as useGrowler
|
|
267
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/core/button"),require("@sps-woodland/tokens"),require("@spscommerce/i18n"),require("react-dom"),require("sonner")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/core/button","@sps-woodland/tokens","@spscommerce/i18n","react-dom","sonner"],w):(a=typeof globalThis<"u"?globalThis:a||self,w(a.Growler={},a.React,a.core,a.button,a.tokens,a.i18n,a.ReactDOM,a.sonner))})(this,(function(a,w,d,E,f,y,D,v){"use strict";function M(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=M(w);function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(o){I(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var R=(e,t,r)=>{for(var o of Object.keys(e)){var n;if(e[o]!==((n=t[o])!==null&&n!==void 0?n:r[o]))return!1}return!0},x=e=>t=>{var r=e.defaultClassName,o=O(O({},e.defaultVariants),t);for(var n in o){var l,i=(l=o[n])!==null&&l!==void 0?l:e.defaultVariants[n];if(i!=null){var _=i;typeof _=="boolean"&&(_=_===!0?"true":"false");var c=e.variantClassNames[n][_];c&&(r+=" "+c)}}for(var[h,m]of e.compoundVariants)R(h,o,e.defaultVariants)&&(r+=" "+m);return r},S=x({defaultClassName:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt451",variantClassNames:{kind:{activity:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt452",info:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt453",progress:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt454",error:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt455",success:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt456",warning:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt457"},fade:{true:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt458",false:"pkg_sps-woodland_core__version_8_51_0__hash_1mxbt459"}},defaultVariants:{},compoundVariants:[]}),V="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45a",A="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45b",q="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45c",U="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45d",W="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45e",$="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45f",K="pkg_sps-woodland_core__version_8_51_0__hash_1mxbt45h";const g=Object.freeze({warning:"status-warning",error:"status-error",success:"status-ok",info:"info-circle"});function T({children:e,className:t,imgSrc:r,kind:o="info",onClose:n,removeFromList:l,persist:i,title:_,id:c,...h}){const m=s.useRef(n);s.useEffect(()=>{m.current=n},[n]);const P=f.Tokens.component.growler.duration.visible,ne=f.Tokens.component.growler.duration.fadeout,[ae,k]=s.useState(!1),{t:_e}=y.useWoodlandLanguage();function ie(){return[window.setTimeout(()=>{k(!0)},P),window.setTimeout(()=>{m.current&&m.current(),l&&c&&l(c)},P+ne)]}const b=s.useRef([]);function j(){i||(b.current=ie())}function B(){for(const ce of b.current)window.clearTimeout(ce);b.current=[]}function L(){B(),k(!1)}function le(){L(),k(!1),n&&n(),l&&c&&l(c)}return s.useEffect(()=>(j(),()=>{B()}),[]),s.createElement("div",{role:"alert","aria-live":"polite",className:d.cl(S({kind:o,fade:ae}),t),onMouseEnter:L,onMouseLeave:j,...h},s.createElement("div",{className:A},r&&s.createElement("img",{src:r,alt:""}),o==="progress"?s.createElement(d.Spinner,null):s.createElement(d.Icon,{icon:g[o],className:q})),s.createElement("div",{className:U},s.createElement("div",{className:W},_&&s.createElement("span",{className:$},_),s.createElement("div",null,e)),s.createElement(E.Button,{kind:"icon",icon:"x",title:_e("growler.dismiss",{defaultValue:"Dismiss"}),className:K,onClick:le})))}d.Metadata.set(T,{name:"Growler",props:{imgSrc:{type:"string"},kind:{type:"GrowlerKind",default:"info"},onClose:{type:"() => void"},persist:{type:"boolean"},title:{type:"string"}}});const F="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let z=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=F[r[e]&63];return t};const N=s.createContext({growlerList:[],setGrowlerList:()=>{}});function H(e){const[t,r]=s.useState([]),o=i=>{if(!i){console.error("growlers should have an id");return}r(_=>_.filter(c=>i!==c.id))},n=t.map(({G:i,id:_})=>s.cloneElement(i(),{key:_,id:_,removeFromList:o})).filter(i=>d.Metadata.get(i.type).name==="Growler"?!0:(console.error("addGrowler only accepts a function that returns a Growler"),!1)),l=s.createElement("div",{"data-testid":e["data-testid"],"data-portalid":"growler-portal","data-react-aria-top-layer":"true",className:V},n);return s.createElement(N.Provider,{value:{growlerList:t,setGrowlerList:r}},D.createPortal(l,document.body),e.children)}const J=()=>{const e=s.useContext(N);if(e===void 0)throw new Error("addGrowler must be used within a GrowlerListProvider");return{addGrowler:s.useCallback(r=>{const o=z(),n={G:r,id:o};e.setGrowlerList([n,...e.growlerList])},[e])}};var Q=x({defaultClassName:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k0",variantClassNames:{kind:{activity:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k1",info:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k2",progress:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k3",error:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k4",success:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k5",warning:"pkg_sps-woodland_core__version_8_51_0__hash_198p00k6"}},defaultVariants:{},compoundVariants:[]}),X="pkg_sps-woodland_core__version_8_51_0__hash_198p00k7",Y="pkg_sps-woodland_core__version_8_51_0__hash_198p00k8",Z="pkg_sps-woodland_core__version_8_51_0__hash_198p00k9",ee="pkg_sps-woodland_core__version_8_51_0__hash_198p00ka",re="pkg_sps-woodland_core__version_8_51_0__hash_198p00kb",oe="pkg_sps-woodland_core__version_8_51_0__hash_198p00kc",te="pkg_sps-woodland_core__version_8_51_0__hash_198p00ke";function C(){return s.createElement(v.Toaster,{visibleToasts:10,expand:!0,closeButton:!0,position:"top-right",className:X,duration:f.Tokens.component.growler.duration.visible,richColors:!0,toastOptions:{style:{outline:"none"}}})}d.Metadata.set(C,{name:"GrowlerEmitter"});function se({children:e,kind:t="info",onCloseButtonClick:r,title:o}){const{t:n}=y.useWoodlandLanguage();return s.createElement("div",{className:Q({kind:t})},s.createElement("div",{className:Y},t==="progress"?s.createElement(d.Spinner,null):s.createElement(d.Icon,{icon:g[t],className:Z})),s.createElement("div",{className:ee},s.createElement("div",{className:re},o?s.createElement("span",{className:oe},o):void 0,s.createElement("div",null,e)),s.createElement(E.Button,{kind:"icon",icon:"x",title:n("growler.dismiss"),className:te,onClick:r})))}const p=e=>(t,r)=>v.toast.custom(o=>s.createElement(se,{title:t,kind:e,onCloseButtonClick:()=>{v.toast.dismiss(o),r?.onDismiss?.(o)}},typeof r?.description=="function"?r.description(o):r?.description),{...r?.id?{id:r.id}:{},duration:r?.autoClose??!0?f.Tokens.component.growler.duration.visible:1/0,onDismiss:o=>{r?.onDismiss?.(o.id)},onAutoClose:o=>{r?.onAutoClose?.(o.id)}}),u=(e,{kind:t,...r})=>p(t)(e,r);u.success=p("success"),u.error=p("error"),u.info=p("info"),u.warning=p("warning"),u.progress=p("progress"),u.dismiss=v.toast.dismiss,a.Growler=T,a.GrowlerEmitter=C,a.GrowlerIcons=g,a.GrowlerListProvider=H,a.growl=u,a.useGrowler=J,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ExternalToast } from "sonner";
|
|
3
|
+
import type { GrowlerKind } from "./Sonner.css";
|
|
4
|
+
/**
|
|
5
|
+
* The component that emits growlers. Include it at the root of your app.
|
|
6
|
+
*/
|
|
7
|
+
export declare function GrowlerEmitter(): JSX.Element;
|
|
8
|
+
export interface GrowlOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The id of the growler. Used to control existing growlers.
|
|
11
|
+
* If not provided, a random id will be generated.
|
|
12
|
+
*/
|
|
13
|
+
id?: ExternalToast["id"];
|
|
14
|
+
/**
|
|
15
|
+
* Sets whether the growler will automatically close after a certain duration. Defaults to true.
|
|
16
|
+
*/
|
|
17
|
+
autoClose?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The description of the growler. Can be a string or a function that returns a React node.
|
|
20
|
+
* If a function is provided, it will be called with the id of the growler.
|
|
21
|
+
*/
|
|
22
|
+
description?: React.ReactNode | ((id: string | number) => React.ReactNode);
|
|
23
|
+
/**
|
|
24
|
+
* A callback that is called when the growler is automatically closed
|
|
25
|
+
* @param id The id of the growler that was closed
|
|
26
|
+
* @returns void
|
|
27
|
+
*/
|
|
28
|
+
onAutoClose?: (id: string | number) => void;
|
|
29
|
+
/**
|
|
30
|
+
* A callback that is called when the growler is dismissed by the user
|
|
31
|
+
* @param id The id of the growler that was dismissed
|
|
32
|
+
* @returns void
|
|
33
|
+
*/
|
|
34
|
+
onDismiss?: (id: string | number) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A general purpose function to display growlers
|
|
38
|
+
* @param message The main message of the growler
|
|
39
|
+
* @param options GrowlOptions. `kind` is required.
|
|
40
|
+
* @returns The id of the growler
|
|
41
|
+
*/
|
|
42
|
+
export declare const growl: {
|
|
43
|
+
(message: string, { kind, ...rest }: GrowlOptions & {
|
|
44
|
+
kind: GrowlerKind;
|
|
45
|
+
}): string | number;
|
|
46
|
+
/**
|
|
47
|
+
* A function to display a success growler
|
|
48
|
+
* @param message The main message of the growler
|
|
49
|
+
* @param options GrowlOptions
|
|
50
|
+
* @returns The id of the growler
|
|
51
|
+
*/
|
|
52
|
+
success: (message: string, options?: GrowlOptions) => string | number;
|
|
53
|
+
/**
|
|
54
|
+
* A function to display an error growler
|
|
55
|
+
* @param message The main message of the growler
|
|
56
|
+
* @param options GrowlOptions
|
|
57
|
+
* @returns The id of the growler
|
|
58
|
+
*/
|
|
59
|
+
error: (message: string, options?: GrowlOptions) => string | number;
|
|
60
|
+
/**
|
|
61
|
+
* A function to display an info growler
|
|
62
|
+
* @param message The main message of the growler
|
|
63
|
+
* @param options GrowlOptions
|
|
64
|
+
* @returns The id of the growler
|
|
65
|
+
*/
|
|
66
|
+
info: (message: string, options?: GrowlOptions) => string | number;
|
|
67
|
+
/**
|
|
68
|
+
* A function to display a warning growler
|
|
69
|
+
* @param message The main message of the growler
|
|
70
|
+
* @param options GrowlOptions
|
|
71
|
+
* @returns The id of the growler
|
|
72
|
+
*/
|
|
73
|
+
warning: (message: string, options?: GrowlOptions) => string | number;
|
|
74
|
+
/**
|
|
75
|
+
* A function to display a progress growler
|
|
76
|
+
* @param message The main message of the growler
|
|
77
|
+
* @param options GrowlOptions
|
|
78
|
+
* @returns The id of the growler
|
|
79
|
+
*/
|
|
80
|
+
progress: (message: string, options?: GrowlOptions) => string | number;
|
|
81
|
+
/**
|
|
82
|
+
* Dismiss a growler by id. This will not trigger the onDismiss callback.
|
|
83
|
+
* @param id The id of the growler. If not provided, all growlers will be dismissed.
|
|
84
|
+
*/
|
|
85
|
+
dismiss: (id?: number | string) => string | number;
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=sonner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../src/growler/sonner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAahD;;GAEG;AACH,wBAAgB,cAAc,gBAiB7B;AAwCD,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,EAAE,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC3E;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAC3C;AAgCD;;;;;GAKG;AACH,eAAO,MAAM,KAAK;cAAa,MAAM,qBAAqB,YAAY,GAAG;QAAE,IAAI,EAAE,WAAW,CAAA;KAAE;IAI9F;;;;;OAKG;uBA7CoD,MAAM,YAAY,YAAY;IAgDrF;;;;;OAKG;qBArDoD,MAAM,YAAY,YAAY;IAwDrF;;;;;OAKG;oBA7DoD,MAAM,YAAY,YAAY;IAgErF;;;;;OAKG;uBArEoD,MAAM,YAAY,YAAY;IAwErF;;;;;OAKG;wBA7EoD,MAAM,YAAY,YAAY;IAgFrF;;;OAGG;;CA7CiC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { Button as c } from "@sps-woodland/core/button";
|
|
3
|
+
import { Metadata as u, Spinner as g, Icon as d } from "@sps-woodland/core";
|
|
4
|
+
import { Tokens as a } from "@sps-woodland/tokens";
|
|
5
|
+
import { toast as l, Toaster as w } from "sonner";
|
|
6
|
+
import { GrowlerIcons as f } from "./Growler.js";
|
|
7
|
+
import { growlerArea as p, growler as E, growlerIconBox as v, growlerIcon as x, growlerMessageBox as B, growlerMessageBoxText as C, growlerMessageBoxTitle as N, growlerCloseButton as I } from "./Sonner.css.js";
|
|
8
|
+
import { useWoodlandLanguage as T } from "@spscommerce/i18n";
|
|
9
|
+
function G() {
|
|
10
|
+
return /* @__PURE__ */ r.createElement(
|
|
11
|
+
w,
|
|
12
|
+
{
|
|
13
|
+
visibleToasts: 10,
|
|
14
|
+
expand: !0,
|
|
15
|
+
closeButton: !0,
|
|
16
|
+
position: "top-right",
|
|
17
|
+
className: p,
|
|
18
|
+
duration: a.component.growler.duration.visible,
|
|
19
|
+
richColors: !0,
|
|
20
|
+
toastOptions: {
|
|
21
|
+
style: {
|
|
22
|
+
outline: "none"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
u.set(G, { name: "GrowlerEmitter" });
|
|
29
|
+
function M({
|
|
30
|
+
children: i,
|
|
31
|
+
kind: t = "info",
|
|
32
|
+
onCloseButtonClick: e,
|
|
33
|
+
title: o
|
|
34
|
+
}) {
|
|
35
|
+
const { t: m } = T();
|
|
36
|
+
return /* @__PURE__ */ r.createElement("div", { className: E({ kind: t }) }, /* @__PURE__ */ r.createElement("div", { className: v }, t === "progress" ? /* @__PURE__ */ r.createElement(g, null) : /* @__PURE__ */ r.createElement(d, { icon: f[t], className: x })), /* @__PURE__ */ r.createElement("div", { className: B }, /* @__PURE__ */ r.createElement("div", { className: C }, o ? /* @__PURE__ */ r.createElement("span", { className: N }, o) : void 0, /* @__PURE__ */ r.createElement("div", null, i)), /* @__PURE__ */ r.createElement(
|
|
37
|
+
c,
|
|
38
|
+
{
|
|
39
|
+
kind: "icon",
|
|
40
|
+
icon: "x",
|
|
41
|
+
title: m("growler.dismiss"),
|
|
42
|
+
className: I,
|
|
43
|
+
onClick: e
|
|
44
|
+
}
|
|
45
|
+
)));
|
|
46
|
+
}
|
|
47
|
+
const s = (i) => (t, e) => (
|
|
48
|
+
// eslint-disable-next-line implicit-arrow-linebreak -- There are contradictory format rules
|
|
49
|
+
l.custom(
|
|
50
|
+
(o) => /* @__PURE__ */ r.createElement(
|
|
51
|
+
M,
|
|
52
|
+
{
|
|
53
|
+
title: t,
|
|
54
|
+
kind: i,
|
|
55
|
+
onCloseButtonClick: () => {
|
|
56
|
+
l.dismiss(o), e?.onDismiss?.(o);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
typeof e?.description == "function" ? e.description(o) : e?.description
|
|
60
|
+
),
|
|
61
|
+
{
|
|
62
|
+
// An undefined property will not produce the desired behavior, so it is optionally included
|
|
63
|
+
...e?.id ? { id: e.id } : {},
|
|
64
|
+
duration: e?.autoClose ?? !0 ? a.component.growler.duration.visible : 1 / 0,
|
|
65
|
+
onDismiss: (o) => {
|
|
66
|
+
e?.onDismiss?.(o.id);
|
|
67
|
+
},
|
|
68
|
+
onAutoClose: (o) => {
|
|
69
|
+
e?.onAutoClose?.(o.id);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
), n = (i, { kind: t, ...e }) => (
|
|
74
|
+
// eslint-disable-next-line implicit-arrow-linebreak -- There are contradictory format rules
|
|
75
|
+
s(t)(i, e)
|
|
76
|
+
);
|
|
77
|
+
n.success = s("success");
|
|
78
|
+
n.error = s("error");
|
|
79
|
+
n.info = s("info");
|
|
80
|
+
n.warning = s("warning");
|
|
81
|
+
n.progress = s("progress");
|
|
82
|
+
n.dismiss = l.dismiss;
|
|
83
|
+
export {
|
|
84
|
+
G as GrowlerEmitter,
|
|
85
|
+
n as growl
|
|
86
|
+
};
|