@sps-woodland/core 8.50.2 → 8.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +8 -8
- package/lib/index.umd.cjs +1 -1
- 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 +7 -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,441 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { useDrop as xe, useDrag as ke, DragPreview as Ce } from "react-aria";
|
|
3
|
+
import { SpsButton as H, SpsTooltip as Le, useSpsForm as Ee, SpsTextInput as Ne } from "@spscommerce/ds-react";
|
|
4
|
+
import { ButtonKind as B, TooltipShowTrigger as Te, Position as ye, SpsIcon as j } from "@spscommerce/ds-shared";
|
|
5
|
+
import { DOCUMENT_SEARCH_NO_RESULTS_LARGE as Oe, DOCUMENT_SEARCH_NO_RESULTS_SMALL as Se } from "@sps-woodland/illustrations";
|
|
6
|
+
import { useChildTestIdAttrBuilder as ce, cl as y, Icon as De, Metadata as pe } from "@sps-woodland/core";
|
|
7
|
+
import { ZeroState as se } from "@sps-woodland/core/zero-state";
|
|
8
|
+
import { Card as re } from "@sps-woodland/core/card";
|
|
9
|
+
import { grid as oe } from "@sps-woodland/tokens";
|
|
10
|
+
import { Tag as Ve } from "@sps-woodland/core/tag";
|
|
11
|
+
import { ScrollableContainer as Ie } from "@sps-woodland/core/scrollable-container";
|
|
12
|
+
import { FeedbackBlock as Me } from "@sps-woodland/core/feedback-block";
|
|
13
|
+
import { useWoodlandLanguage as Q } from "@spscommerce/i18n";
|
|
14
|
+
const Pe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
15
|
+
let Ae = (t = 21) => {
|
|
16
|
+
let o = "", s = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
17
|
+
for (; t--; )
|
|
18
|
+
o += Pe[s[t] & 63];
|
|
19
|
+
return o;
|
|
20
|
+
};
|
|
21
|
+
function Fe(t, o, s) {
|
|
22
|
+
return o in t ? Object.defineProperty(t, o, {
|
|
23
|
+
value: s,
|
|
24
|
+
enumerable: !0,
|
|
25
|
+
configurable: !0,
|
|
26
|
+
writable: !0
|
|
27
|
+
}) : t[o] = s, t;
|
|
28
|
+
}
|
|
29
|
+
function ne(t, o) {
|
|
30
|
+
var s = Object.keys(t);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
33
|
+
o && (r = r.filter(function(i) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
35
|
+
})), s.push.apply(s, r);
|
|
36
|
+
}
|
|
37
|
+
return s;
|
|
38
|
+
}
|
|
39
|
+
function le(t) {
|
|
40
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
41
|
+
var s = arguments[o] != null ? arguments[o] : {};
|
|
42
|
+
o % 2 ? ne(Object(s), !0).forEach(function(r) {
|
|
43
|
+
Fe(t, r, s[r]);
|
|
44
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(s)) : ne(Object(s)).forEach(function(r) {
|
|
45
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(s, r));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return t;
|
|
49
|
+
}
|
|
50
|
+
var Re = (t, o, s) => {
|
|
51
|
+
for (var r of Object.keys(t)) {
|
|
52
|
+
var i;
|
|
53
|
+
if (t[r] !== ((i = o[r]) !== null && i !== void 0 ? i : s[r]))
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
return !0;
|
|
57
|
+
}, k = (t) => (o) => {
|
|
58
|
+
var s = t.defaultClassName, r = le(le({}, t.defaultVariants), o);
|
|
59
|
+
for (var i in r) {
|
|
60
|
+
var h, f = (h = r[i]) !== null && h !== void 0 ? h : t.defaultVariants[i];
|
|
61
|
+
if (f != null) {
|
|
62
|
+
var g = f;
|
|
63
|
+
typeof g == "boolean" && (g = g === !0 ? "true" : "false");
|
|
64
|
+
var n = (
|
|
65
|
+
// @ts-expect-error
|
|
66
|
+
t.variantClassNames[i][g]
|
|
67
|
+
);
|
|
68
|
+
n && (s += " " + n);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
for (var [C, L] of t.compoundVariants)
|
|
72
|
+
Re(C, r, t.defaultVariants) && (s += " " + L);
|
|
73
|
+
return s;
|
|
74
|
+
}, je = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx90", variantClassNames: { vertical: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx91", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx92" } }, defaultVariants: {}, compoundVariants: [] }), He = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx93", variantClassNames: { vertical: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx94", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx95" } }, defaultVariants: {}, compoundVariants: [] }), _e = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx96", Be = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx97", variantClassNames: { isLeftSide: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx98", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx99" }, isRightSide: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9a", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9b" }, adjustForPhantomDroppableContainer: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9c", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9d" } }, defaultVariants: {}, compoundVariants: [] }), qe = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9e", variantClassNames: { vertical: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9f", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9g" } }, defaultVariants: {}, compoundVariants: [] }), Ue = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9h", variantClassNames: { vertical: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9i", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9j" } }, defaultVariants: {}, compoundVariants: [] }), ie = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9k", Ze = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9l", We = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9m", Ke = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9n", variantClassNames: { isDragging: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9o", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9p" } }, defaultVariants: {}, compoundVariants: [] }), $e = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9q", me = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9r", variantClassNames: { isDropTarget: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9s", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9t" } }, defaultVariants: {}, compoundVariants: [] }), Ge = k({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9u", variantClassNames: { isDropTarget: { true: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9v", false: "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9w" } }, defaultVariants: {}, compoundVariants: [] }), X = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9x", Je = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9y", Xe = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9z", ze = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx910", Qe = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx911", Ye = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx912", et = "pkg_sps-woodland_core__version_8_51_1__hash_13b8tx913";
|
|
75
|
+
function de({
|
|
76
|
+
headerText: t,
|
|
77
|
+
showCount: o,
|
|
78
|
+
showIcons: s,
|
|
79
|
+
showMoveAllLinks: r,
|
|
80
|
+
showMoreOptionsText: i,
|
|
81
|
+
disableMoveAllLinks: h,
|
|
82
|
+
maxHeight: f,
|
|
83
|
+
children: g,
|
|
84
|
+
side: n,
|
|
85
|
+
itemCount: C,
|
|
86
|
+
otherHeader: L,
|
|
87
|
+
className: q,
|
|
88
|
+
vertical: w,
|
|
89
|
+
moveAll: E,
|
|
90
|
+
adjustForPhantomDroppableContainer: O,
|
|
91
|
+
"data-testid": x
|
|
92
|
+
}) {
|
|
93
|
+
const S = ce({ "data-testid": x }), { t: v } = Q(), m = v(n === "left" ? "addToList.onColumnHeader" : "addToList.offColumnHeader"), N = n === "left" ? "eye" : "eye-slash", U = v(n === "left" ? "addToList.offColumnHeader" : "addToList.onColumnHeader"), Z = v("addToList.moveAllItemsToCol", {
|
|
94
|
+
columnName: L || U
|
|
95
|
+
}), c = w ? /* @__PURE__ */ e.createElement(e.Fragment, null) : /* @__PURE__ */ e.createElement(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: Be({
|
|
99
|
+
isLeftSide: n === "left",
|
|
100
|
+
isRightSide: n === "right",
|
|
101
|
+
adjustForPhantomDroppableContainer: !!O && n === "left"
|
|
102
|
+
})
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
function W() {
|
|
106
|
+
E && typeof E == "function" && E(n);
|
|
107
|
+
}
|
|
108
|
+
return /* @__PURE__ */ e.createElement(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: y(Ue({ vertical: w }), q),
|
|
112
|
+
"data-testid": x
|
|
113
|
+
},
|
|
114
|
+
/* @__PURE__ */ e.createElement("div", { className: Je, ...S("column-header") }, s && /* @__PURE__ */ e.createElement(De, { icon: N, className: Xe }), t || m, o && /* @__PURE__ */ e.createElement(Ve, { kind: "key", className: ze }, C)),
|
|
115
|
+
f ? /* @__PURE__ */ e.createElement("div", { className: _e }, c, /* @__PURE__ */ e.createElement(Ie, { maxHeight: f }, g)) : /* @__PURE__ */ e.createElement("div", { className: _e }, c, g),
|
|
116
|
+
r && C > 0 && /* @__PURE__ */ e.createElement(
|
|
117
|
+
H,
|
|
118
|
+
{
|
|
119
|
+
className: O && n === "right" ? et : void 0,
|
|
120
|
+
kind: B.LINK,
|
|
121
|
+
onClick: W,
|
|
122
|
+
disabled: h,
|
|
123
|
+
...S("move-all-button")
|
|
124
|
+
},
|
|
125
|
+
Z
|
|
126
|
+
),
|
|
127
|
+
i && C > 0 && /* @__PURE__ */ e.createElement(Me, { kind: "info", micro: !0 }, v("addToList.moreOptionsAvailable", { defaultValue: "More options available. Use the search field to filter results." }))
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
function z({
|
|
131
|
+
className: t,
|
|
132
|
+
children: o,
|
|
133
|
+
filtering: s,
|
|
134
|
+
manualSorting: r,
|
|
135
|
+
id: i,
|
|
136
|
+
"data-testid": h
|
|
137
|
+
}) {
|
|
138
|
+
const { t: f } = Q();
|
|
139
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
role: "listitem",
|
|
143
|
+
className: y(
|
|
144
|
+
t,
|
|
145
|
+
me({ isDropTarget: !1 }),
|
|
146
|
+
We,
|
|
147
|
+
"listitem-component"
|
|
148
|
+
),
|
|
149
|
+
"data-testid": h
|
|
150
|
+
},
|
|
151
|
+
r && s && /* @__PURE__ */ e.createElement(
|
|
152
|
+
"i",
|
|
153
|
+
{
|
|
154
|
+
className: Ze,
|
|
155
|
+
id: `list-item-${i}-drag-handle`
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
o
|
|
159
|
+
), r && s && /* @__PURE__ */ e.createElement(
|
|
160
|
+
Le,
|
|
161
|
+
{
|
|
162
|
+
for: `list-item-${i}-drag-handle`,
|
|
163
|
+
position: ye.TOP_LEFT,
|
|
164
|
+
showOn: Te.CLICK
|
|
165
|
+
},
|
|
166
|
+
f("addToList.disabledDragTooltip", {
|
|
167
|
+
defaultValue: "Drag and drop are disabled when filters are engaged"
|
|
168
|
+
})
|
|
169
|
+
));
|
|
170
|
+
}
|
|
171
|
+
pe.set(z, { name: "ListItem" });
|
|
172
|
+
function tt({
|
|
173
|
+
onList: t,
|
|
174
|
+
offList: o,
|
|
175
|
+
onHeader: s,
|
|
176
|
+
offHeader: r,
|
|
177
|
+
showFilter: i,
|
|
178
|
+
showCount: h,
|
|
179
|
+
showIcons: f,
|
|
180
|
+
showMoveAllLinks: g,
|
|
181
|
+
manualSort: n,
|
|
182
|
+
maxDisplayedItems: C,
|
|
183
|
+
maxHeightPx: L,
|
|
184
|
+
maxHeightRem: q,
|
|
185
|
+
onChange: w,
|
|
186
|
+
onListZeroState: E,
|
|
187
|
+
offListZeroState: O,
|
|
188
|
+
vertical: x = !1,
|
|
189
|
+
onListAlphaSort: S = !0,
|
|
190
|
+
"data-testid": v
|
|
191
|
+
}) {
|
|
192
|
+
const m = ce({ "data-testid": v }), { t: N } = Q(), { formValue: U, formMeta: Z } = Ee({
|
|
193
|
+
filterString: ""
|
|
194
|
+
}), [c, W] = e.useState(""), K = L ? L / 16 : q, Y = K ? `${K}rem` : "", D = e.useCallback(
|
|
195
|
+
(a, l) => (!n && S || l === "right" ? [...a].sort((p, d) => p.label.localeCompare(d.label)) : a).map((p) => {
|
|
196
|
+
const d = { ...p };
|
|
197
|
+
return d.id || (d.id = Ae()), d;
|
|
198
|
+
}),
|
|
199
|
+
[n, S]
|
|
200
|
+
), _ = e.useMemo(() => D(t, "left"), [t, D]), u = e.useMemo(() => D(o, "right"), [o, D]), V = e.useCallback((a) => c ? a.label.toLowerCase().includes(c.toLowerCase()) : !0, [c]), $ = (a, l, b) => {
|
|
201
|
+
const p = b.find((d) => d.label === a);
|
|
202
|
+
p ? l === _ ? w({
|
|
203
|
+
onList: [..._, p],
|
|
204
|
+
offList: u.filter((d) => d.label !== p.label)
|
|
205
|
+
}) : b === _ && w({
|
|
206
|
+
onList: _.filter((d) => d.label !== p.label),
|
|
207
|
+
offList: [...u, p]
|
|
208
|
+
}) : console.error("could not remove item");
|
|
209
|
+
};
|
|
210
|
+
function ue(a) {
|
|
211
|
+
W(a.target.value);
|
|
212
|
+
}
|
|
213
|
+
function ee(a) {
|
|
214
|
+
w(a === "left" ? {
|
|
215
|
+
onList: _.filter((l) => l.required),
|
|
216
|
+
offList: [...u, ..._.filter((l) => !l.required)]
|
|
217
|
+
} : {
|
|
218
|
+
onList: [..._, ...u],
|
|
219
|
+
offList: []
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
const te = e.useCallback(
|
|
223
|
+
(a) => {
|
|
224
|
+
const { className: l, index: b, ...p } = a, d = e.useRef(null), { dropProps: M, isDropTarget: P } = xe({
|
|
225
|
+
ref: d,
|
|
226
|
+
async onDrop(G) {
|
|
227
|
+
let A = await Promise.all(
|
|
228
|
+
G.items.filter((R) => R.kind === "text" && R.types.has("text/plain")).map((R) => R.getText("text/plain"))
|
|
229
|
+
);
|
|
230
|
+
const { index: F } = JSON.parse(A[0]), J = [..._], [be] = J.splice(F, 1), we = b > F ? b - 1 : b;
|
|
231
|
+
J.splice(we, 0, be), w({
|
|
232
|
+
onList: J,
|
|
233
|
+
offList: u
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
return /* @__PURE__ */ e.createElement(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
ref: d,
|
|
241
|
+
...n ? M : [],
|
|
242
|
+
role: "button",
|
|
243
|
+
tabIndex: 0,
|
|
244
|
+
className: y(l, a.isPhantomDroppableContainer ? Ge({ isDropTarget: P }) : me({ isDropTarget: P })),
|
|
245
|
+
...m("droppable-container"),
|
|
246
|
+
...p
|
|
247
|
+
},
|
|
248
|
+
a.children
|
|
249
|
+
);
|
|
250
|
+
},
|
|
251
|
+
[_, n]
|
|
252
|
+
), he = e.useCallback(
|
|
253
|
+
(a) => {
|
|
254
|
+
const {
|
|
255
|
+
label: l,
|
|
256
|
+
data: b,
|
|
257
|
+
listIndex: p,
|
|
258
|
+
required: d
|
|
259
|
+
} = a, M = e.useRef(null), P = { ...b, index: p }, { dragProps: G, dragButtonProps: A, isDragging: F } = ke({
|
|
260
|
+
preview: M,
|
|
261
|
+
hasDragButton: !0,
|
|
262
|
+
getItems() {
|
|
263
|
+
return [
|
|
264
|
+
{
|
|
265
|
+
"text/plain": JSON.stringify(P)
|
|
266
|
+
}
|
|
267
|
+
];
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
return /* @__PURE__ */ e.createElement(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
...n ? G : {},
|
|
274
|
+
role: n ? "button" : "listitem",
|
|
275
|
+
tabIndex: 0,
|
|
276
|
+
id: `${l}${p}-drag`,
|
|
277
|
+
className: y(Ke({ isDragging: F })),
|
|
278
|
+
...m("draggable-item")
|
|
279
|
+
},
|
|
280
|
+
/* @__PURE__ */ e.createElement(te, { index: p }, n && /* @__PURE__ */ e.createElement("i", { ...A, className: ie }), l, !d && /* @__PURE__ */ e.createElement(
|
|
281
|
+
H,
|
|
282
|
+
{
|
|
283
|
+
kind: B.ICON,
|
|
284
|
+
icon: j.X,
|
|
285
|
+
onClick: () => {
|
|
286
|
+
$(l, u, _);
|
|
287
|
+
},
|
|
288
|
+
className: X,
|
|
289
|
+
...m("move-item-button")
|
|
290
|
+
}
|
|
291
|
+
)),
|
|
292
|
+
/* @__PURE__ */ e.createElement(Ce, { ref: M }, () => /* @__PURE__ */ e.createElement("div", { className: $e }, /* @__PURE__ */ e.createElement("i", { ...A, className: ie }), l))
|
|
293
|
+
);
|
|
294
|
+
},
|
|
295
|
+
[_, n]
|
|
296
|
+
), T = e.useMemo(
|
|
297
|
+
() => _.filter(V),
|
|
298
|
+
[_, V]
|
|
299
|
+
), I = e.useMemo(
|
|
300
|
+
() => u.filter(V).slice(0, C),
|
|
301
|
+
[u, V]
|
|
302
|
+
), fe = !c && !!g && T.length > 0, ge = !c && !!g && I.length > 0, ve = !c && u.length > I.length, ae = !!n && !c && T.length > 0 && !K;
|
|
303
|
+
return /* @__PURE__ */ e.createElement("div", { "data-testid": v }, i && /* @__PURE__ */ e.createElement("div", { className: oe.root }, /* @__PURE__ */ e.createElement("div", { className: y(oe[12], Ye) }, /* @__PURE__ */ e.createElement(
|
|
304
|
+
Ne,
|
|
305
|
+
{
|
|
306
|
+
value: U.filterString,
|
|
307
|
+
formMeta: Z.fields.filterString,
|
|
308
|
+
icon: j.FILTER,
|
|
309
|
+
onChange: ue,
|
|
310
|
+
...m("filter-input")
|
|
311
|
+
}
|
|
312
|
+
))), /* @__PURE__ */ e.createElement("div", { className: y(je({ vertical: x })) }, /* @__PURE__ */ e.createElement(
|
|
313
|
+
de,
|
|
314
|
+
{
|
|
315
|
+
headerText: s,
|
|
316
|
+
showCount: !c && h,
|
|
317
|
+
showIcons: f,
|
|
318
|
+
showMoveAllLinks: fe,
|
|
319
|
+
disableMoveAllLinks: _.every((a) => a.required),
|
|
320
|
+
maxHeight: Y,
|
|
321
|
+
vertical: x,
|
|
322
|
+
side: "left",
|
|
323
|
+
className: He({
|
|
324
|
+
vertical: x
|
|
325
|
+
}),
|
|
326
|
+
otherHeader: r,
|
|
327
|
+
itemCount: _.length,
|
|
328
|
+
moveAll: ee,
|
|
329
|
+
adjustForPhantomDroppableContainer: ae,
|
|
330
|
+
...m("on-items-list")
|
|
331
|
+
},
|
|
332
|
+
T.length > 0 ? /* @__PURE__ */ e.createElement(e.Fragment, null, n && !c && T.map((a, l) => /* @__PURE__ */ e.createElement(e.Fragment, { key: a.id }, /* @__PURE__ */ e.createElement(
|
|
333
|
+
he,
|
|
334
|
+
{
|
|
335
|
+
data: a,
|
|
336
|
+
label: a.label,
|
|
337
|
+
required: a.required,
|
|
338
|
+
listIndex: l
|
|
339
|
+
}
|
|
340
|
+
), l === T.length - 1 && /* @__PURE__ */ e.createElement(te, { isPhantomDroppableContainer: !0, index: l + 1 }))), (!n || c) && T.map((a) => /* @__PURE__ */ e.createElement(
|
|
341
|
+
z,
|
|
342
|
+
{
|
|
343
|
+
key: a.id,
|
|
344
|
+
filtering: !!c,
|
|
345
|
+
manualSorting: n,
|
|
346
|
+
id: a.id,
|
|
347
|
+
...m("item")
|
|
348
|
+
},
|
|
349
|
+
a.label,
|
|
350
|
+
!a.required && /* @__PURE__ */ e.createElement(
|
|
351
|
+
H,
|
|
352
|
+
{
|
|
353
|
+
kind: B.ICON,
|
|
354
|
+
icon: j.X,
|
|
355
|
+
onClick: () => {
|
|
356
|
+
$(a.label, u, _);
|
|
357
|
+
},
|
|
358
|
+
className: X,
|
|
359
|
+
...m("move-item-button")
|
|
360
|
+
}
|
|
361
|
+
)
|
|
362
|
+
))) : /* @__PURE__ */ e.createElement(re, null, E ? /* @__PURE__ */ e.createElement(e.Fragment, null, E) : /* @__PURE__ */ e.createElement(
|
|
363
|
+
se,
|
|
364
|
+
{
|
|
365
|
+
heading: N("addToList.noDataZeroStateColumnTitle", { defaultValue: "This Column is Empty" }),
|
|
366
|
+
subHeading: N("addToList.noDataZeroStateOnColumnSubheading", {
|
|
367
|
+
columnName: r,
|
|
368
|
+
defaultValue: `Move options from the ${r}`
|
|
369
|
+
}),
|
|
370
|
+
artwork: Oe,
|
|
371
|
+
micro: !0,
|
|
372
|
+
...m("on-list-zero-state")
|
|
373
|
+
}
|
|
374
|
+
))
|
|
375
|
+
), /* @__PURE__ */ e.createElement(
|
|
376
|
+
de,
|
|
377
|
+
{
|
|
378
|
+
headerText: r,
|
|
379
|
+
showCount: !c && h,
|
|
380
|
+
showIcons: f,
|
|
381
|
+
showMoveAllLinks: ge,
|
|
382
|
+
showMoreOptionsText: ve,
|
|
383
|
+
maxHeight: Y,
|
|
384
|
+
vertical: x,
|
|
385
|
+
side: "right",
|
|
386
|
+
className: qe({ vertical: x }),
|
|
387
|
+
otherHeader: s,
|
|
388
|
+
itemCount: u.length,
|
|
389
|
+
moveAll: ee,
|
|
390
|
+
adjustForPhantomDroppableContainer: ae,
|
|
391
|
+
...m("off-items-list")
|
|
392
|
+
},
|
|
393
|
+
I.length > 0 ? I.map((a) => /* @__PURE__ */ e.createElement(z, { key: a.id, className: Qe, ...m("item") }, a.label, /* @__PURE__ */ e.createElement(
|
|
394
|
+
H,
|
|
395
|
+
{
|
|
396
|
+
kind: B.ICON,
|
|
397
|
+
icon: j.PLUS_SIGN,
|
|
398
|
+
onClick: () => {
|
|
399
|
+
$(a.label, _, u);
|
|
400
|
+
},
|
|
401
|
+
className: X,
|
|
402
|
+
...m("move-item-button")
|
|
403
|
+
}
|
|
404
|
+
))) : /* @__PURE__ */ e.createElement(re, null, O ? /* @__PURE__ */ e.createElement(e.Fragment, null, O) : /* @__PURE__ */ e.createElement(
|
|
405
|
+
se,
|
|
406
|
+
{
|
|
407
|
+
heading: N("addToList.noDataZeroStateColumnTitle", { defaultValue: "This Column is Empty" }),
|
|
408
|
+
subHeading: N("addToList.noDataZeroStateOffColumnSubheading", {
|
|
409
|
+
columnName: s,
|
|
410
|
+
defaultValue: `Remove options from the ${s}`
|
|
411
|
+
}),
|
|
412
|
+
artwork: Se,
|
|
413
|
+
micro: !0,
|
|
414
|
+
...m("off-list-zero-state")
|
|
415
|
+
}
|
|
416
|
+
))
|
|
417
|
+
)));
|
|
418
|
+
}
|
|
419
|
+
pe.set(tt, {
|
|
420
|
+
name: "Add To List",
|
|
421
|
+
props: {
|
|
422
|
+
onList: { type: "ItemProps[]", required: !0 },
|
|
423
|
+
offList: { type: "ItemProps[]", required: !0 },
|
|
424
|
+
onHeader: { type: "string" },
|
|
425
|
+
offHeader: { type: "string" },
|
|
426
|
+
showFilter: { type: "boolean" },
|
|
427
|
+
showCount: { type: "boolean" },
|
|
428
|
+
showIcons: { type: "boolean" },
|
|
429
|
+
showMoveAllLinks: { type: "boolean" },
|
|
430
|
+
manualSort: { type: "boolean" },
|
|
431
|
+
maxDisplayedItems: { type: "number" },
|
|
432
|
+
maxHeight: { type: "string" },
|
|
433
|
+
onChange: { type: "(newValue: AddToListAggregateValue) => void" },
|
|
434
|
+
autoSort: { type: "boolean" },
|
|
435
|
+
onListZeroState: { type: "ZeroState" },
|
|
436
|
+
offListZeroState: { type: "ZeroState" }
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
export {
|
|
440
|
+
tt as AddToList
|
|
441
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(l,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-aria"),require("@spscommerce/ds-react"),require("@spscommerce/ds-shared"),require("@sps-woodland/illustrations"),require("@sps-woodland/core"),require("@sps-woodland/core/zero-state"),require("@sps-woodland/core/card"),require("@sps-woodland/tokens"),require("@sps-woodland/core/tag"),require("@sps-woodland/core/scrollable-container"),require("@sps-woodland/core/feedback-block"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","react-aria","@spscommerce/ds-react","@spscommerce/ds-shared","@sps-woodland/illustrations","@sps-woodland/core","@sps-woodland/core/zero-state","@sps-woodland/core/card","@sps-woodland/tokens","@sps-woodland/core/tag","@sps-woodland/core/scrollable-container","@sps-woodland/core/feedback-block","@spscommerce/i18n"],I):(l=typeof globalThis<"u"?globalThis:l||self,I(l.AddToList={},l.React,l.reactAria,l.dsReact,l.dsShared,l.illustrations,l.core,l.zeroState,l.card,l.tokens,l.tag,l.scrollableContainer,l.feedbackBlock,l.i18n))})(this,(function(l,I,Z,N,g,te,h,ae,se,oe,he,ge,ve,K){"use strict";function be(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const e=be(I),we="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ke=(t=21)=>{let r="",a=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)r+=we[a[t]&63];return r};function xe(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function re(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(t,d).enumerable})),a.push.apply(a,o)}return a}function ne(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?re(Object(a),!0).forEach(function(o){xe(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):re(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}var Ce=(t,r,a)=>{for(var o of Object.keys(t)){var d;if(t[o]!==((d=r[o])!==null&&d!==void 0?d:a[o]))return!1}return!0},C=t=>r=>{var a=t.defaultClassName,o=ne(ne({},t.defaultVariants),r);for(var d in o){var v,b=(v=o[d])!==null&&v!==void 0?v:t.defaultVariants[d];if(b!=null){var w=b;typeof w=="boolean"&&(w=w===!0?"true":"false");var n=t.variantClassNames[d][w];n&&(a+=" "+n)}}for(var[T,y]of t.compoundVariants)Ce(T,o,t.defaultVariants)&&(a+=" "+y);return a},Le=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx90",variantClassNames:{vertical:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx91",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx92"}},defaultVariants:{},compoundVariants:[]}),Ee=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx93",variantClassNames:{vertical:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx94",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx95"}},defaultVariants:{},compoundVariants:[]}),le="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx96",Ne=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx97",variantClassNames:{isLeftSide:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx98",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx99"},isRightSide:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9a",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9b"},adjustForPhantomDroppableContainer:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9c",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9d"}},defaultVariants:{},compoundVariants:[]}),Te=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9e",variantClassNames:{vertical:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9f",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9g"}},defaultVariants:{},compoundVariants:[]}),ye=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9h",variantClassNames:{vertical:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9i",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9j"}},defaultVariants:{},compoundVariants:[]}),ie="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9k",Oe="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9l",Se="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9m",De=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9n",variantClassNames:{isDragging:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9o",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9p"}},defaultVariants:{},compoundVariants:[]}),Ie="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9q",_e=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9r",variantClassNames:{isDropTarget:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9s",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9t"}},defaultVariants:{},compoundVariants:[]}),Ve=C({defaultClassName:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9u",variantClassNames:{isDropTarget:{true:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9v",false:"pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9w"}},defaultVariants:{},compoundVariants:[]}),U="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9x",Me="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9y",Pe="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9z",qe="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx910",Ae="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx911",Fe="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx912",je="pkg_sps-woodland_core__version_8_51_1__hash_13b8tx913";function de({headerText:t,showCount:r,showIcons:a,showMoveAllLinks:o,showMoreOptionsText:d,disableMoveAllLinks:v,maxHeight:b,children:w,side:n,itemCount:T,otherHeader:y,className:z,vertical:L,moveAll:O,adjustForPhantomDroppableContainer:V,"data-testid":E}){const M=h.useChildTestIdAttrBuilder({"data-testid":E}),{t:k}=K.useWoodlandLanguage(),m=k(n==="left"?"addToList.onColumnHeader":"addToList.offColumnHeader"),S=n==="left"?"eye":"eye-slash",$=k(n==="left"?"addToList.offColumnHeader":"addToList.onColumnHeader"),G=k("addToList.moveAllItemsToCol",{columnName:y||$}),p=L?e.createElement(e.Fragment,null):e.createElement("div",{className:Ne({isLeftSide:n==="left",isRightSide:n==="right",adjustForPhantomDroppableContainer:!!V&&n==="left"})});function J(){O&&typeof O=="function"&&O(n)}return e.createElement("div",{className:h.cl(ye({vertical:L}),z),"data-testid":E},e.createElement("div",{className:Me,...M("column-header")},a&&e.createElement(h.Icon,{icon:S,className:Pe}),t||m,r&&e.createElement(he.Tag,{kind:"key",className:qe},T)),b?e.createElement("div",{className:le},p,e.createElement(ge.ScrollableContainer,{maxHeight:b},w)):e.createElement("div",{className:le},p,w),o&&T>0&&e.createElement(N.SpsButton,{className:V&&n==="right"?je:void 0,kind:g.ButtonKind.LINK,onClick:J,disabled:v,...M("move-all-button")},G),d&&T>0&&e.createElement(ve.FeedbackBlock,{kind:"info",micro:!0},k("addToList.moreOptionsAvailable",{defaultValue:"More options available. Use the search field to filter results."})))}function W({className:t,children:r,filtering:a,manualSorting:o,id:d,"data-testid":v}){const{t:b}=K.useWoodlandLanguage();return e.createElement(e.Fragment,null,e.createElement("div",{role:"listitem",className:h.cl(t,_e({isDropTarget:!1}),Se,"listitem-component"),"data-testid":v},o&&a&&e.createElement("i",{className:Oe,id:`list-item-${d}-drag-handle`}),r),o&&a&&e.createElement(N.SpsTooltip,{for:`list-item-${d}-drag-handle`,position:g.Position.TOP_LEFT,showOn:g.TooltipShowTrigger.CLICK},b("addToList.disabledDragTooltip",{defaultValue:"Drag and drop are disabled when filters are engaged"})))}h.Metadata.set(W,{name:"ListItem"});function ce({onList:t,offList:r,onHeader:a,offHeader:o,showFilter:d,showCount:v,showIcons:b,showMoveAllLinks:w,manualSort:n,maxDisplayedItems:T,maxHeightPx:y,maxHeightRem:z,onChange:L,onListZeroState:O,offListZeroState:V,vertical:E=!1,onListAlphaSort:M=!0,"data-testid":k}){const m=h.useChildTestIdAttrBuilder({"data-testid":k}),{t:S}=K.useWoodlandLanguage(),{formValue:$,formMeta:G}=N.useSpsForm({filterString:""}),[p,J]=e.useState(""),X=y?y/16:z,pe=X?`${X}rem`:"",P=e.useCallback((s,i)=>(!n&&M||i==="right"?[...s].sort((u,c)=>u.label.localeCompare(c.label)):s).map(u=>{const c={...u};return c.id||(c.id=ke()),c}),[n,M]),_=e.useMemo(()=>P(t,"left"),[t,P]),f=e.useMemo(()=>P(r,"right"),[r,P]),q=e.useCallback(s=>p?s.label.toLowerCase().includes(p.toLowerCase()):!0,[p]),Q=(s,i,x)=>{const u=x.find(c=>c.label===s);u?i===_?L({onList:[..._,u],offList:f.filter(c=>c.label!==u.label)}):x===_&&L({onList:_.filter(c=>c.label!==u.label),offList:[...f,u]}):console.error("could not remove item")};function Be(s){J(s.target.value)}function ue(s){L(s==="left"?{onList:_.filter(i=>i.required),offList:[...f,..._.filter(i=>!i.required)]}:{onList:[..._,...f],offList:[]})}const me=e.useCallback(s=>{const{className:i,index:x,...u}=s,c=e.useRef(null),{dropProps:F,isDropTarget:j}=Z.useDrop({ref:c,async onDrop(Y){let B=await Promise.all(Y.items.filter(H=>H.kind==="text"&&H.types.has("text/plain")).map(H=>H.getText("text/plain")));const{index:R}=JSON.parse(B[0]),ee=[..._],[Ue]=ee.splice(R,1),We=x>R?x-1:x;ee.splice(We,0,Ue),L({onList:ee,offList:f})}});return e.createElement("div",{ref:c,...n?F:[],role:"button",tabIndex:0,className:h.cl(i,s.isPhantomDroppableContainer?Ve({isDropTarget:j}):_e({isDropTarget:j})),...m("droppable-container"),...u},s.children)},[_,n]),Re=e.useCallback(s=>{const{label:i,data:x,listIndex:u,required:c}=s,F=e.useRef(null),j={...x,index:u},{dragProps:Y,dragButtonProps:B,isDragging:R}=Z.useDrag({preview:F,hasDragButton:!0,getItems(){return[{"text/plain":JSON.stringify(j)}]}});return e.createElement("div",{...n?Y:{},role:n?"button":"listitem",tabIndex:0,id:`${i}${u}-drag`,className:h.cl(De({isDragging:R})),...m("draggable-item")},e.createElement(me,{index:u},n&&e.createElement("i",{...B,className:ie}),i,!c&&e.createElement(N.SpsButton,{kind:g.ButtonKind.ICON,icon:g.SpsIcon.X,onClick:()=>{Q(i,f,_)},className:U,...m("move-item-button")})),e.createElement(Z.DragPreview,{ref:F},()=>e.createElement("div",{className:Ie},e.createElement("i",{...B,className:ie}),i)))},[_,n]),D=e.useMemo(()=>_.filter(q),[_,q]),A=e.useMemo(()=>f.filter(q).slice(0,T),[f,q]),He=!p&&!!w&&D.length>0,Ze=!p&&!!w&&A.length>0,Ke=!p&&f.length>A.length,fe=!!n&&!p&&D.length>0&&!X;return e.createElement("div",{"data-testid":k},d&&e.createElement("div",{className:oe.grid.root},e.createElement("div",{className:h.cl(oe.grid[12],Fe)},e.createElement(N.SpsTextInput,{value:$.filterString,formMeta:G.fields.filterString,icon:g.SpsIcon.FILTER,onChange:Be,...m("filter-input")}))),e.createElement("div",{className:h.cl(Le({vertical:E}))},e.createElement(de,{headerText:a,showCount:!p&&v,showIcons:b,showMoveAllLinks:He,disableMoveAllLinks:_.every(s=>s.required),maxHeight:pe,vertical:E,side:"left",className:Ee({vertical:E}),otherHeader:o,itemCount:_.length,moveAll:ue,adjustForPhantomDroppableContainer:fe,...m("on-items-list")},D.length>0?e.createElement(e.Fragment,null,n&&!p&&D.map((s,i)=>e.createElement(e.Fragment,{key:s.id},e.createElement(Re,{data:s,label:s.label,required:s.required,listIndex:i}),i===D.length-1&&e.createElement(me,{isPhantomDroppableContainer:!0,index:i+1}))),(!n||p)&&D.map(s=>e.createElement(W,{key:s.id,filtering:!!p,manualSorting:n,id:s.id,...m("item")},s.label,!s.required&&e.createElement(N.SpsButton,{kind:g.ButtonKind.ICON,icon:g.SpsIcon.X,onClick:()=>{Q(s.label,f,_)},className:U,...m("move-item-button")})))):e.createElement(se.Card,null,O?e.createElement(e.Fragment,null,O):e.createElement(ae.ZeroState,{heading:S("addToList.noDataZeroStateColumnTitle",{defaultValue:"This Column is Empty"}),subHeading:S("addToList.noDataZeroStateOnColumnSubheading",{columnName:o,defaultValue:`Move options from the ${o}`}),artwork:te.DOCUMENT_SEARCH_NO_RESULTS_LARGE,micro:!0,...m("on-list-zero-state")}))),e.createElement(de,{headerText:o,showCount:!p&&v,showIcons:b,showMoveAllLinks:Ze,showMoreOptionsText:Ke,maxHeight:pe,vertical:E,side:"right",className:Te({vertical:E}),otherHeader:a,itemCount:f.length,moveAll:ue,adjustForPhantomDroppableContainer:fe,...m("off-items-list")},A.length>0?A.map(s=>e.createElement(W,{key:s.id,className:Ae,...m("item")},s.label,e.createElement(N.SpsButton,{kind:g.ButtonKind.ICON,icon:g.SpsIcon.PLUS_SIGN,onClick:()=>{Q(s.label,_,f)},className:U,...m("move-item-button")}))):e.createElement(se.Card,null,V?e.createElement(e.Fragment,null,V):e.createElement(ae.ZeroState,{heading:S("addToList.noDataZeroStateColumnTitle",{defaultValue:"This Column is Empty"}),subHeading:S("addToList.noDataZeroStateOffColumnSubheading",{columnName:a,defaultValue:`Remove options from the ${a}`}),artwork:te.DOCUMENT_SEARCH_NO_RESULTS_SMALL,micro:!0,...m("off-list-zero-state")})))))}h.Metadata.set(ce,{name:"Add To List",props:{onList:{type:"ItemProps[]",required:!0},offList:{type:"ItemProps[]",required:!0},onHeader:{type:"string"},offHeader:{type:"string"},showFilter:{type:"boolean"},showCount:{type:"boolean"},showIcons:{type:"boolean"},showMoveAllLinks:{type:"boolean"},manualSort:{type:"boolean"},maxDisplayedItems:{type:"number"},maxHeight:{type:"string"},onChange:{type:"(newValue: AddToListAggregateValue) => void"},autoSort:{type:"boolean"},onListZeroState:{type:"ZeroState"},offListZeroState:{type:"ZeroState"}}}),l.AddToList=ce,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx90{display:flex;flex-direction:row;align-content:space-between}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx91{flex-direction:column}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx93{margin-right:1rem;position:relative}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx94{margin-right:0;margin-bottom:1.375rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx96{position:relative}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx97{width:.0625rem;background-color:#d2d4d4;height:100%;position:absolute;top:0}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx98{left:calc(100% + 1rem)}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9a{left:-1rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9c{height:calc(100% - 1.5625rem)}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9e{margin-left:1rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9f{margin-left:0}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9h{flex-shrink:0;align-self:stretch;width:calc(50% - 1rem)}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9i{width:100%}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9k{display:block;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9l{display:block;opacity:.25;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9m{border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9m:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9n{position:relative;border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9o{background-color:#f3f4f4;color:#717779}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9q{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;border:#d2d4d4ff solid .0625rem;width:100%;min-width:17.75rem;padding:.75rem;background-color:#e6f2f8;flex:1}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9r{display:flex;flex-direction:row;justify-content:flex-start;position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9r:focus{background-color:#e6f2f8}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9s{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9u{position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-top:.0625rem solid #d2d4d4ff}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9u:focus{outline:none}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9v{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9x{position:absolute;right:.375rem;top:.375rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9y{font-size:.875rem;line-height:1.25rem;display:flex;align-items:center;justify-content:flex-start;font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx9z{font-size:.875rem;line-height:1.25rem;margin-right:.25rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx910{margin-left:.25rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx911{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-bottom:none}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx911:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx912{margin-bottom:1.25rem}.pkg_sps-woodland_core__version_8_51_1__hash_13b8tx913{margin-top:1.5625rem}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Tokens } from "@sps-woodland/tokens";
|
|
2
|
+
import type { VariantDefinitions, RecipeVariant, BooleanRecipeVariant } from "@sps-woodland/core";
|
|
3
|
+
export type ButtonKind = keyof typeof Tokens.component.button.kind;
|
|
4
|
+
interface ButtonVariantDefinitions extends VariantDefinitions {
|
|
5
|
+
kind: RecipeVariant<ButtonKind>;
|
|
6
|
+
disabled: BooleanRecipeVariant;
|
|
7
|
+
spinning: BooleanRecipeVariant;
|
|
8
|
+
}
|
|
9
|
+
export declare const button: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<ButtonVariantDefinitions>;
|
|
10
|
+
export declare const buttonElement: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<ButtonVariantDefinitions>;
|
|
11
|
+
export declare const linkButton: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<ButtonVariantDefinitions, "kind" | "spinning">>;
|
|
12
|
+
export declare const buttonIcon: string;
|
|
13
|
+
export declare const buttonSpinner: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<ButtonVariantDefinitions, "spinning">>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=Button.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAIlG,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AAEnE,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,iHAiMjB,CAAC;AAEH,eAAO,MAAM,aAAa,iHA4DxB,CAAC;AAEH,eAAO,MAAM,UAAU,4IAsDrB,CAAC;AAMH,eAAO,MAAM,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,aAAa,mIAuBxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 o = _({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq0", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq1", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq2" }, kind: { default: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq3", link: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq4", confirm: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq5", delete: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq6", key: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq7", icon: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq8" }, spinning: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq9", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqa" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqb"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqc"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqd"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqe"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqf"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqg"], [{ kind: "link", disabled: !0 }, "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqh"]] }), n = _({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqi", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqj", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqk" }, kind: { icon: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieql", default: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqm", delete: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqn", key: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqo", confirm: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqp", link: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqq" }, spinning: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqr", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqs" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), a = _({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqt", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqiequ", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqv" }, kind: { icon: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqw", default: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqx", delete: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqy", key: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieqz", confirm: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq10", link: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq11" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), i = "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq12", l = _({ defaultClassName: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq13", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq14", false: "pkg_sps-woodland_core__version_8_51_1__hash_1flqieq15" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
|
|
4
|
+
export {
|
|
5
|
+
o as button,
|
|
6
|
+
n as buttonElement,
|
|
7
|
+
i as buttonIcon,
|
|
8
|
+
l as buttonSpinner,
|
|
9
|
+
a as linkButton
|
|
10
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PolymorphicComponentProps } from "@sps-woodland/core";
|
|
3
|
+
import type { IconName } from "@sps-woodland/tokens";
|
|
4
|
+
import type { AriaButtonProps } from "@react-aria/button";
|
|
5
|
+
import type { ButtonKind } from "./Button.css";
|
|
6
|
+
interface BaseButtonProps {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
href?: string;
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
kind?: ButtonKind;
|
|
11
|
+
spinning?: boolean;
|
|
12
|
+
spinningTitle?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
15
|
+
}
|
|
16
|
+
type ButtonProps<T extends React.ElementType = "button" | "a"> = Partial<PolymorphicComponentProps<Partial<AriaButtonProps<"button">> & Partial<BaseButtonProps>, T>>;
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps<"button" | "a">>;
|
|
18
|
+
export { Button };
|
|
19
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACxD;AAED,KAAK,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,GAAG,GAAG,IAAI,OAAO,CACtE,yBAAyB,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAC5F,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,QAAQ,GAAG,GAAG,CAAC,CAgHxE,CAAC;AAyBF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { Spinner as z, cl as D, Metadata as F, Icon as p } from "@sps-woodland/core";
|
|
3
|
+
import { useButton as H } from "@react-aria/button";
|
|
4
|
+
import { useHover as L } from "@react-aria/interactions";
|
|
5
|
+
import { mergeProps as M } from "@react-aria/utils";
|
|
6
|
+
import { FocusRing as w } from "@react-aria/focus";
|
|
7
|
+
import { linkButton as x, buttonElement as V, buttonSpinner as W, button as j, buttonIcon as f } from "./Button.css.js";
|
|
8
|
+
import { useWoodlandLanguage as q } from "@spscommerce/i18n";
|
|
9
|
+
const A = t.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
as: b,
|
|
12
|
+
onClick: E,
|
|
13
|
+
onPress: y,
|
|
14
|
+
children: m,
|
|
15
|
+
className: N,
|
|
16
|
+
isDisabled: s,
|
|
17
|
+
disabled: l,
|
|
18
|
+
href: n,
|
|
19
|
+
icon: a,
|
|
20
|
+
kind: e = "default",
|
|
21
|
+
spinning: o,
|
|
22
|
+
spinningTitle: P,
|
|
23
|
+
title: g,
|
|
24
|
+
...r
|
|
25
|
+
}, R) => {
|
|
26
|
+
const v = b ?? (n ? "a" : "button"), u = {
|
|
27
|
+
onPress: y ?? E,
|
|
28
|
+
// the button element should be disabled if the button is marked as disabled or spinning
|
|
29
|
+
isDisabled: o ?? l ?? s,
|
|
30
|
+
...r
|
|
31
|
+
}, { "data-testid": i } = r, _ = t.useRef(null), d = R || _, { buttonProps: $ } = H(
|
|
32
|
+
u,
|
|
33
|
+
d
|
|
34
|
+
), { hoverProps: B } = L({ isDisabled: u.isDisabled }), { type: I, ...S } = $, T = {
|
|
35
|
+
...M(S, B),
|
|
36
|
+
ref: d,
|
|
37
|
+
title: g,
|
|
38
|
+
className: n ? x({ spinning: o, kind: e }) : V({ disabled: s || l, kind: e, spinning: o }),
|
|
39
|
+
...n ? { href: n } : { type: I },
|
|
40
|
+
...r
|
|
41
|
+
}, { t: C } = q(), h = a && (a === "ai-color" ? (
|
|
42
|
+
// ai-color can only be used on default or link buttons for contrast/accessibility reasons
|
|
43
|
+
// if the user tries to use ai-color on a non-approved button swap it out for the regular ai icon
|
|
44
|
+
/* @__PURE__ */ t.createElement(
|
|
45
|
+
p,
|
|
46
|
+
{
|
|
47
|
+
className: f,
|
|
48
|
+
icon: e === "default" || e === "link" ? "ai-color" : "ai",
|
|
49
|
+
size: "sm",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
"data-testid": `${i}__${a}-icon`
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
) : /* @__PURE__ */ t.createElement(
|
|
55
|
+
p,
|
|
56
|
+
{
|
|
57
|
+
className: f,
|
|
58
|
+
icon: a,
|
|
59
|
+
size: "sm",
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
"data-testid": `${i}__${a}-icon`
|
|
62
|
+
}
|
|
63
|
+
));
|
|
64
|
+
let c;
|
|
65
|
+
e === "default" || e === "icon" || e === "link" ? c = "dark" : c = "light";
|
|
66
|
+
const k = o && /* @__PURE__ */ t.createElement(
|
|
67
|
+
z,
|
|
68
|
+
{
|
|
69
|
+
color: c,
|
|
70
|
+
className: W({ spinning: o }),
|
|
71
|
+
title: P || C("button.spinningTitle", { defaultValue: "Loading..." }),
|
|
72
|
+
"data-testid": `${i}__spinner`
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
return /* @__PURE__ */ t.createElement(w, null, /* @__PURE__ */ t.createElement(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: D(
|
|
79
|
+
j({
|
|
80
|
+
disabled: s || l,
|
|
81
|
+
kind: e,
|
|
82
|
+
spinning: o
|
|
83
|
+
}),
|
|
84
|
+
N
|
|
85
|
+
)
|
|
86
|
+
},
|
|
87
|
+
/* @__PURE__ */ t.createElement(v, { ...T }, h, m ? /* @__PURE__ */ t.createElement("span", null, m) : "", k)
|
|
88
|
+
));
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
F.set(A, {
|
|
92
|
+
name: "Button",
|
|
93
|
+
props: {
|
|
94
|
+
disabled: "boolean",
|
|
95
|
+
href: "string",
|
|
96
|
+
icon: "IconName",
|
|
97
|
+
kind: {
|
|
98
|
+
type: '"default" | "link" | "icon" | "confirm" | "delete" | "key"',
|
|
99
|
+
default: '"default"'
|
|
100
|
+
},
|
|
101
|
+
spinning: "boolean",
|
|
102
|
+
spinningTitle: "string",
|
|
103
|
+
type: { type: '"button" | "submit"', default: '"button"' },
|
|
104
|
+
as: "button | a",
|
|
105
|
+
onClick: "() => void",
|
|
106
|
+
onPress: "() => void",
|
|
107
|
+
children: "ReactNode",
|
|
108
|
+
className: "string",
|
|
109
|
+
isDisabled: "boolean",
|
|
110
|
+
style: "CSSProperties"
|
|
111
|
+
},
|
|
112
|
+
panellable: !0
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
A as Button
|
|
116
|
+
};
|