diff --git a/INVENTORY.md b/INVENTORY.md index 1002530031..5241862ad9 100644 --- a/INVENTORY.md +++ b/INVENTORY.md @@ -73,8 +73,6 @@ and [Spectrum Web Components](https://opensource.adobe.com/spectrum-web-componen | popover | ✅ | [📄](https://opensource.adobe.com/spectrum-css/popover.html) | [📄](https://opensource.adobe.com/spectrum-web-components/components/popover) | | progressbar | ✅ | [📄](https://opensource.adobe.com/spectrum-css/progressbar.html) | [📄](https://opensource.adobe.com/spectrum-web-components/components/progress-bar) | | progresscircle | ✅ | [📄](https://opensource.adobe.com/spectrum-css/progresscircle.html) | [📄](https://opensource.adobe.com/spectrum-web-components/components/progress-circle) | -| quickaction | | [📄](https://opensource.adobe.com/spectrum-css/quickaction.html) | [📄](https://opensource.adobe.com/spectrum-web-components/components/quick-actions) | -| quickactions | ✅ | | | | radio | ✅ | [📄](https://opensource.adobe.com/spectrum-css/radio.html) | [📄](https://opensource.adobe.com/spectrum-web-components/components/radio) | | radiogroup | ✅ | | | | rating | ✅ | [📄](https://opensource.adobe.com/spectrum-css/rating.html) | ❌ | diff --git a/packages/card/src/Card.ts b/packages/card/src/Card.ts index 18735d307f..5fb6b19aed 100644 --- a/packages/card/src/Card.ts +++ b/packages/card/src/Card.ts @@ -31,7 +31,7 @@ import '@spectrum-web-components/asset/sp-asset.js'; import { Checkbox } from '@spectrum-web-components/checkbox/src/Checkbox'; import '@spectrum-web-components/checkbox/sp-checkbox.js'; -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; +import '@spectrum-web-components/popover/sp-popover.js'; import '@spectrum-web-components/divider/sp-divider.js'; import cardStyles from './card.css.js'; import headingStyles from '@spectrum-web-components/styles/heading.js'; @@ -311,8 +311,8 @@ export class Card extends LikeAnchor( : nothing} ${this.toggles ? html` - - + ` : nothing} ${this.variant === 'quiet' && this.size === 's' ? html` - - + ` : nothing} `; diff --git a/packages/card/src/card.css b/packages/card/src/card.css index 666f4facd2..2307ae10cf 100644 --- a/packages/card/src/card.css +++ b/packages/card/src/card.css @@ -70,8 +70,12 @@ slot[name='description'] { height: inherit; } -sp-quick-actions { - z-index: 1; +sp-popover { + align-items: center; +} + +.actions { + margin: auto; } /** diff --git a/packages/card/src/spectrum-card.css b/packages/card/src/spectrum-card.css index 1d4eecb9b4..5ba5ba1d35 100644 --- a/packages/card/src/spectrum-card.css +++ b/packages/card/src/spectrum-card.css @@ -236,17 +236,17 @@ governing permissions and limitations under the License. } :host([focused]) .actions, -:host([focused]) .quick-actions, +:host([focused]) .checkbox-toggle, :host([selected]) .actions, -:host([selected]) .quick-actions, +:host([selected]) .checkbox-toggle, :host(:focus) .actions, -:host(:focus) .quick-actions { +:host(:focus) .checkbox-toggle { visibility: visible; opacity: 1; pointer-events: all; } -.quick-actions { +.checkbox-toggle { visibility: hidden; box-shadow: var( --mod-card-actions-drop-shadow-x, @@ -749,7 +749,7 @@ governing permissions and limitations under the License. } :host(:hover) .actions, - :host(:hover) .quick-actions { + :host(:hover) .checkbox-toggle { visibility: visible; opacity: 1; pointer-events: all; diff --git a/packages/card/src/spectrum-config.js b/packages/card/src/spectrum-config.js index 4364d38ad9..47f56f0ff8 100644 --- a/packages/card/src/spectrum-config.js +++ b/packages/card/src/spectrum-config.js @@ -33,7 +33,7 @@ const config = { converter.classToClass('spectrum-Card-content'), converter.classToClass( 'spectrum-Card-quickActions', - 'quick-actions' + 'checkbox-toggle' ), converter.classToClass('spectrum-Card-actions'), converter.classToClass( diff --git a/packages/card/stories/card.stories.ts b/packages/card/stories/card.stories.ts index 6e280a73c8..4e5251530d 100644 --- a/packages/card/stories/card.stories.ts +++ b/packages/card/stories/card.stories.ts @@ -63,6 +63,53 @@ export const Default = (args: StoryArgs): TemplateResult => { }; Default.args = {}; +export const SmallQuiet = (args: StoryArgs): TemplateResult => { + const { onClick } = args; + return html` + { + const composedTarget = event.composedPath()[0] as HTMLElement; + if (composedTarget.id !== 'like-anchor') return; + event.stopPropagation(); + event.preventDefault(); + onClick && onClick(event); + }} + > +
+ Footer with a + link to Google +
+ + Deselect + Select Inverse + Feather... + Select and Mask... + + Save Selection + Make Work Path + + Demo Graphic +
+ `; +}; +SmallQuiet.argTypes = { + onClick: { action: 'link click' }, +}; + export const href = (args: StoryArgs): TemplateResult => { const { onClick } = args; return html` diff --git a/packages/coachmark/src/Coachmark.ts b/packages/coachmark/src/Coachmark.ts index 0e0ed5a44c..d66d6851f2 100644 --- a/packages/coachmark/src/Coachmark.ts +++ b/packages/coachmark/src/Coachmark.ts @@ -29,7 +29,6 @@ import type { CoachmarkItem } from './CoachmarkItem.js'; import '@spectrum-web-components/asset/sp-asset.js'; import '@spectrum-web-components/button/sp-button.js'; import '@spectrum-web-components/button-group/sp-button-group.js'; -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; /** * @element sp-coachmark diff --git a/packages/quick-actions/CHANGELOG.md b/packages/quick-actions/CHANGELOG.md deleted file mode 100644 index 85f4fccbb6..0000000000 --- a/packages/quick-actions/CHANGELOG.md +++ /dev/null @@ -1,392 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19) - -### Bug Fixes - -- **theme:** deprecate lightest and darkest color stops ([#4179](https://github.com/adobe/spectrum-web-components/issues/4179)) ([0c01a66](https://github.com/adobe/spectrum-web-components/commit/0c01a66627bbc46b459bda7680c6dcb9ea9c1b66)) - -## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# 0.30.0 (2023-05-03) - -### Bug Fixes - -- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858)) -- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b)) -- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38)) -- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103)) -- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8)) -- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937)) -- use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a)) -- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5)) - -### Features - -- **action-button:** add action button pattern ([03ac00a](https://github.com/adobe/spectrum-web-components/commit/03ac00a710290e6a78340f206d88385a4f8ae8c2)) -- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4)) -- **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e)) -- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251)) -- **quick-actions:** add quick-actions pattern ([3664b51](https://github.com/adobe/spectrum-web-components/commit/3664b51c53ddc200a57f7db1a16036dc7fc81ed5)) -- **quick-actions:** update spectrum css input ([efec525](https://github.com/adobe/spectrum-web-components/commit/efec525c43c86347476aeede7605504a52a5a6e1)) -- shared pkg versions, devmode define warning, registry-conflicts docs ([6e49565](https://github.com/adobe/spectrum-web-components/commit/6e4956519b845fa8127f8032948b625c252ef7a6)) -- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008)) - -## [0.7.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.8...@spectrum-web-components/quick-actions@0.7.9) (2023-04-24) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.7...@spectrum-web-components/quick-actions@0.7.8) (2023-04-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.6...@spectrum-web-components/quick-actions@0.7.7) (2023-03-22) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.5...@spectrum-web-components/quick-actions@0.7.6) (2023-02-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.4...@spectrum-web-components/quick-actions@0.7.5) (2023-01-23) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.3...@spectrum-web-components/quick-actions@0.7.4) (2023-01-09) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.2...@spectrum-web-components/quick-actions@0.7.3) (2022-12-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.1...@spectrum-web-components/quick-actions@0.7.2) (2022-11-21) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.7.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.7.0...@spectrum-web-components/quick-actions@0.7.1) (2022-11-14) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.7.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.12...@spectrum-web-components/quick-actions@0.7.0) (2022-08-09) - -### Features - -- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251)) - -## [0.6.12](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.11...@spectrum-web-components/quick-actions@0.6.12) (2022-08-04) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.10...@spectrum-web-components/quick-actions@0.6.11) (2022-07-18) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.9...@spectrum-web-components/quick-actions@0.6.10) (2022-06-29) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.8...@spectrum-web-components/quick-actions@0.6.9) (2022-06-07) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.7...@spectrum-web-components/quick-actions@0.6.8) (2022-05-27) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.6...@spectrum-web-components/quick-actions@0.6.7) (2022-05-12) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.5...@spectrum-web-components/quick-actions@0.6.6) (2022-04-21) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.4...@spectrum-web-components/quick-actions@0.6.5) (2022-03-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.3...@spectrum-web-components/quick-actions@0.6.4) (2022-03-04) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.2...@spectrum-web-components/quick-actions@0.6.3) (2022-02-22) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.1...@spectrum-web-components/quick-actions@0.6.2) (2022-01-26) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.6.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.6.0...@spectrum-web-components/quick-actions@0.6.1) (2021-12-13) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.6.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.5.1...@spectrum-web-components/quick-actions@0.6.0) (2021-11-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.5.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.5.0...@spectrum-web-components/quick-actions@0.5.1) (2021-11-08) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.5.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.9...@spectrum-web-components/quick-actions@0.5.0) (2021-11-02) - -### Features - -- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4)) - -## [0.4.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.8...@spectrum-web-components/quick-actions@0.4.9) (2021-09-20) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.7...@spectrum-web-components/quick-actions@0.4.8) (2021-08-24) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.6...@spectrum-web-components/quick-actions@0.4.7) (2021-07-22) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.5...@spectrum-web-components/quick-actions@0.4.6) (2021-06-16) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.4...@spectrum-web-components/quick-actions@0.4.5) (2021-05-12) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.3...@spectrum-web-components/quick-actions@0.4.4) (2021-04-09) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.2...@spectrum-web-components/quick-actions@0.4.3) (2021-03-29) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.1...@spectrum-web-components/quick-actions@0.4.2) (2021-03-22) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.4.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.4.0...@spectrum-web-components/quick-actions@0.4.1) (2021-03-05) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -# [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.3.1...@spectrum-web-components/quick-actions@0.4.0) (2021-03-04) - -### Features - -- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008)) - -## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.3.0...@spectrum-web-components/quick-actions@0.3.1) (2021-02-11) - -### Bug Fixes - -- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937)) - -# [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.1.3...@spectrum-web-components/quick-actions@0.3.0) (2021-01-21) - -### Bug Fixes - -- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b)) -- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38)) -- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103)) -- use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a)) -- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5)) - -### Features - -- **action-button:** add action button pattern ([03ac00a](https://github.com/adobe/spectrum-web-components/commit/03ac00a710290e6a78340f206d88385a4f8ae8c2)) -- **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e)) -- **quick-actions:** update spectrum css input ([efec525](https://github.com/adobe/spectrum-web-components/commit/efec525c43c86347476aeede7605504a52a5a6e1)) - -# [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.1.3...@spectrum-web-components/quick-actions@0.2.0) (2021-01-13) - -### Bug Fixes - -- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b)) -- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38)) -- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103)) -- use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a)) -- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5)) - -### Features - -- **action-button:** add action button pattern ([03ac00a](https://github.com/adobe/spectrum-web-components/commit/03ac00a710290e6a78340f206d88385a4f8ae8c2)) -- **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e)) -- **quick-actions:** update spectrum css input ([efec525](https://github.com/adobe/spectrum-web-components/commit/efec525c43c86347476aeede7605504a52a5a6e1)) - -## [0.1.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.1.2...@spectrum-web-components/quick-actions@0.1.3) (2020-10-12) - -**Note:** Version bump only for package @spectrum-web-components/quick-actions - -## [0.1.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.1.1...@spectrum-web-components/quick-actions@0.1.2) (2020-10-12) - -### Bug Fixes - -- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858)) - -## [0.1.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/quick-actions@0.1.0...@spectrum-web-components/quick-actions@0.1.1) (2020-09-25) - -### Bug Fixes - -- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8)) - -# 0.1.0 (2020-08-31) - -### Features - -- **quick-actions:** add quick-actions pattern ([3664b51](https://github.com/adobe/spectrum-web-components/commit/3664b51c53ddc200a57f7db1a16036dc7fc81ed5)) diff --git a/packages/quick-actions/README.md b/packages/quick-actions/README.md deleted file mode 100644 index 97067bca0b..0000000000 --- a/packages/quick-actions/README.md +++ /dev/null @@ -1,61 +0,0 @@ -## Description - -`` allow users to perform contextual actions when hovering or focusing on a specific component. They're shortcuts meant to make workflows more efficient. Spectrum guidelines suggest a `` element feature only text buttons OR only icon buttons, and never both. - -### Usage - -[![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/quick-actions?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/quick-actions) -[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/quick-actions?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/quick-actions) -[![Try it on webcomponents.dev](https://img.shields.io/badge/Try%20it%20on-webcomponents.dev-green?style=for-the-badge)](https://webcomponents.dev/edit/collection/fO75441E1Q5ZlI0e9pgq/pDSD7CSeA3B5hTdX8cvB/src/index.ts) - -``` -yarn add @spectrum-web-components/quick-actions -``` - -Import the side effectful registration of `` via: - -``` -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; -``` - -When looking to leverage the `QuickActions` base class as a type and/or for extension purposes, do so via: - -``` -import { QuickActions } from '@spectrum-web-components/quick-actions'; -``` - -## Example - -```html -
- - - - - - - - - - - -
-``` - -### Text Only - -When the buttons have text only, be sure to include the `text-only` attribute to ensure correct layout of your actions. - -```html -
- - Edit - Copy - Delete - -
-``` diff --git a/packages/quick-actions/exports.json b/packages/quick-actions/exports.json deleted file mode 100644 index 0bc4b66220..0000000000 --- a/packages/quick-actions/exports.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "./src/*": "./src/*", - "./sp-quick-actions.js": "./sp-quick-actions.js" -} diff --git a/packages/quick-actions/package.json b/packages/quick-actions/package.json deleted file mode 100644 index 1c673e20ce..0000000000 --- a/packages/quick-actions/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "@spectrum-web-components/quick-actions", - "version": "0.49.0", - "publishConfig": { - "access": "public" - }, - "description": "", - "license": "Apache-2.0", - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-web-components.git", - "directory": "packages/quick-actions" - }, - "author": "", - "homepage": "https://opensource.adobe.com/spectrum-web-components/components/quick-actions", - "bugs": { - "url": "https://github.com/adobe/spectrum-web-components/issues" - }, - "main": "./src/index.js", - "module": "./src/index.js", - "type": "module", - "exports": { - ".": { - "development": "./src/index.dev.js", - "default": "./src/index.js" - }, - "./package.json": "./package.json", - "./src/QuickActions.js": { - "development": "./src/QuickActions.dev.js", - "default": "./src/QuickActions.js" - }, - "./src/index.js": { - "development": "./src/index.dev.js", - "default": "./src/index.js" - }, - "./src/quick-actions.css.js": "./src/quick-actions.css.js", - "./sp-quick-actions.js": { - "development": "./sp-quick-actions.dev.js", - "default": "./sp-quick-actions.js" - } - }, - "scripts": { - "test": "karma start --coverage" - }, - "files": [ - "**/*.d.ts", - "**/*.js", - "**/*.js.map", - "custom-elements.json", - "!stories/", - "!test/" - ], - "keywords": [ - "spectrum css", - "web components", - "lit-element", - "lit-html" - ], - "dependencies": { - "@spectrum-web-components/base": "^0.49.0" - }, - "devDependencies": { - "@spectrum-css/quickaction": "^3.1.1" - }, - "types": "./src/index.d.ts", - "customElements": "custom-elements.json", - "deprecationNotice": "@spectrum-web-components/quick-actions is deprecated and will be removed in the SWC 1.0 release. Use an Action bar to allow users to perform actions on either a single or multiple items at the same time, instead.", - "sideEffects": [ - "./sp-*.js", - "./**/*.dev.js" - ] -} diff --git a/packages/quick-actions/sp-quick-actions.ts b/packages/quick-actions/sp-quick-actions.ts deleted file mode 100644 index 6d9b5732c2..0000000000 --- a/packages/quick-actions/sp-quick-actions.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import { QuickActions } from './src/QuickActions.js'; -import { defineElement } from '@spectrum-web-components/base/src/define-element.js'; - -defineElement('sp-quick-actions', QuickActions); - -declare global { - interface HTMLElementTagNameMap { - 'sp-quick-actions': QuickActions; - } -} diff --git a/packages/quick-actions/src/QuickActions.ts b/packages/quick-actions/src/QuickActions.ts deleted file mode 100644 index d9ddb66747..0000000000 --- a/packages/quick-actions/src/QuickActions.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import { - CSSResultArray, - html, - PropertyValues, - SpectrumElement, - TemplateResult, -} from '@spectrum-web-components/base'; -import { property } from '@spectrum-web-components/base/src/decorators.js'; - -import styles from './quick-actions.css.js'; - -/** - * @element sp-quick-actions - * - * @slot - Action Buttons to displayed for quick use - */ -export class QuickActions extends SpectrumElement { - public static override get styles(): CSSResultArray { - return [styles]; - } - - @property({ type: Boolean, reflect: true }) - public opened = false; - - @property({ - type: Boolean, - attribute: 'text-only', - hasChanged() { - return false; - }, - }) - public textOnly = false; - - protected override update(changes: PropertyValues): void { - super.update(changes); - if (window.__swc.DEBUG) { - window.__swc.warn( - this, - `<${this.localName}> is deprecated and will be removed in the SWC 1.0 release. Use an Action bar to allow users to perform actions on either a single or multiple items at the same time, instead.`, - 'https://opensource.adobe.com/spectrum-web-components/components/quick-actions/#deprecation', - { level: 'deprecation' } - ); - } - } - - protected override render(): TemplateResult { - return html` - - `; - } -} diff --git a/packages/quick-actions/src/index.ts b/packages/quick-actions/src/index.ts deleted file mode 100644 index 6afd39fcf7..0000000000 --- a/packages/quick-actions/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -export * from './QuickActions.js'; diff --git a/packages/quick-actions/src/quick-actions.css b/packages/quick-actions/src/quick-actions.css deleted file mode 100644 index 3ead8c20c7..0000000000 --- a/packages/quick-actions/src/quick-actions.css +++ /dev/null @@ -1,13 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -@import url('./spectrum-quick-actions.css'); diff --git a/packages/quick-actions/src/spectrum-config.js b/packages/quick-actions/src/spectrum-config.js deleted file mode 100644 index c311701c30..0000000000 --- a/packages/quick-actions/src/spectrum-config.js +++ /dev/null @@ -1,74 +0,0 @@ -// @ts-check -/* -Copyright 2023 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the 'License'); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import { - builder, - converterFor, -} from '../../../tasks/process-spectrum-utils.js'; - -const converter = converterFor('spectrum-QuickActions'); - -/** - * @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter } - */ -const config = { - conversions: [ - { - inPackage: '@spectrum-css/quickaction', - outPackage: 'quick-actions', - fileName: 'quick-actions', - components: [ - converter.classToHost(), - converter.classToAttribute( - 'spectrum-QuickActions--textOnly', - 'text-only' - ), - converter.classToAttribute('is-open', 'opened'), - ...converter.enumerateAttributes( - [ - ['spectrum-QuickActions--left'], - ['spectrum-QuickActions--right'], - ], - 'enter-from' - ), - converter.classToId('spectrum-QuickActions-overlay'), - converter.classToSlotted('spectrum-ActionButton', 'button'), - { - find: [ - builder.class('spectrum-ActionButton'), - builder.combinator('+'), - builder.class('spectrum-ActionButton'), - ], - replace: [ - { - replace: builder.attribute('name', 'action'), - hoist: false, - }, - { - replace: builder.combinator('+'), - }, - { - replace: { - type: 'pseudo-element', - kind: 'slotted', - selector: [builder.attribute('slot', 'action')], - }, - }, - ], - }, - ], - }, - ], -}; - -export default config; diff --git a/packages/quick-actions/src/spectrum-quick-actions.css b/packages/quick-actions/src/spectrum-quick-actions.css deleted file mode 100644 index 852b61e23f..0000000000 --- a/packages/quick-actions/src/spectrum-quick-actions.css +++ /dev/null @@ -1,114 +0,0 @@ -/* -Copyright 2023 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ -:host { - pointer-events: none; - visibility: hidden; - opacity: 0; - transition: - transform - var( - --mod-overlay-animation-duration, - var(--spectrum-animation-duration-100, 0.13s) - ) - ease-in-out, - opacity - var( - --mod-overlay-animation-duration, - var(--spectrum-animation-duration-100, 0.13s) - ) - ease-in-out, - visibility 0s linear - var( - --mod-overlay-animation-duration, - var(--spectrum-animation-duration-100, 0.13s) - ); -} - -:host([opened]) { - pointer-events: auto; - visibility: visible; - opacity: 1; - transition-delay: var( - --mod-overlay-animation-duration-opened, - var(--spectrum-animation-duration-0, 0s) - ); -} - -:host([enter-from='left'][opened]) { - transform: translateX( - var( - --mod-overlay-animation-distance, - var(--spectrum-overlay-animation-distance, 6px) - ) - ); -} - -:host([enter-from='right'][opened]) { - transform: translateX( - calc( - var( - --mod-overlay-animation-distance, - var(--spectrum-overlay-animation-distance, 6px) - ) * -1 - ) - ); -} - -:host { - box-sizing: border-box; - padding-block: var( - --spectrum-quickactions-padding-y, - var(--spectrum-global-dimension-size-50) - ); - padding-inline: var( - --spectrum-quickactions-padding-x, - var(--spectrum-global-dimension-size-50) - ); - block-size: var( - --spectrum-quickactions-height, - var(--spectrum-global-dimension-size-500) - ); - border-radius: var( - --spectrum-quickactions-border-radius, - var(--spectrum-alias-border-radius-regular) - ); - background-color: var( - --spectrum-quickactions-background-color, - var(--spectrum-alias-background-color-quickactions) - ); - justify-content: center; - align-items: center; - display: inline-flex; -} - -[name='action'] + ::slotted([slot='action']) { - margin-inline-start: var( - --spectrum-quickactions-button-gap-x, - var(--spectrum-global-dimension-size-100) - ); -} - -#overlay { - background-color: var( - --spectrum-quickactions-overlay-color, - var(--spectrum-alias-background-color-quickactions-overlay) - ); -} - -:host([text-only]) [name='action'] + ::slotted([slot='action']) { - margin-inline-start: var( - --spectrum-quickactions-text-button-gap-x, - var(--spectrum-global-dimension-size-50) - ); -} diff --git a/packages/quick-actions/stories/quick-actions.stories.ts b/packages/quick-actions/stories/quick-actions.stories.ts deleted file mode 100644 index 115953315b..0000000000 --- a/packages/quick-actions/stories/quick-actions.stories.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import { html, TemplateResult } from '@spectrum-web-components/base'; - -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; -import '@spectrum-web-components/action-button/sp-action-button.js'; -import '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js'; -import '@spectrum-web-components/icons-workflow/icons/sp-icon-copy.js'; -import '@spectrum-web-components/icons-workflow/icons/sp-icon-delete.js'; -import '@spectrum-web-components/underlay/sp-underlay.js'; - -export default { - title: 'Quick Actions', - component: 'sp-quick-actions', - parameters: { - badges: ['deprecated'], - }, -}; - -export const iconButtons = (): TemplateResult => { - return html` -
- - - - - - - - - - - -
- `; -}; - -export const textOnly = (): TemplateResult => { - return html` -
- - Edit - Copy - Delete - -
- `; -}; diff --git a/packages/quick-actions/test/benchmark/basic-test.ts b/packages/quick-actions/test/benchmark/basic-test.ts deleted file mode 100644 index 3901562632..0000000000 --- a/packages/quick-actions/test/benchmark/basic-test.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; -import { html } from 'lit'; -import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js'; - -measureFixtureCreation(html` - -`); diff --git a/packages/quick-actions/test/quick-actions.test.ts b/packages/quick-actions/test/quick-actions.test.ts deleted file mode 100644 index a4e3ef67f6..0000000000 --- a/packages/quick-actions/test/quick-actions.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* -Copyright 2020 Adobe. All rights reserved. -This file is licensed to you under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. You may obtain a copy -of the License at http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under -the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS -OF ANY KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. -*/ - -import { elementUpdated, expect, fixture, html } from '@open-wc/testing'; - -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; -import { QuickActions } from '@spectrum-web-components/quick-actions'; -import { testForLitDevWarnings } from '../../../test/testing-helpers.js'; - -describe('QuickActions', () => { - testForLitDevWarnings( - async () => - await fixture( - html` - - ` - ) - ); - it('loads default quick-actions accessibly', async () => { - const el = await fixture( - html` - - ` - ); - - await elementUpdated(el); - - await expect(el).to.be.accessible(); - }); -}); diff --git a/packages/quick-actions/tsconfig.json b/packages/quick-actions/tsconfig.json deleted file mode 100644 index b10d59338e..0000000000 --- a/packages/quick-actions/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "rootDir": "./" - }, - "include": ["*.ts", "src/*.ts"], - "exclude": ["test/*.ts", "stories/*.ts"] -} diff --git a/projects/documentation/scripts/gather-spectrum-urls.js b/projects/documentation/scripts/gather-spectrum-urls.js index ab4612d29a..d1c7c47a53 100644 --- a/projects/documentation/scripts/gather-spectrum-urls.js +++ b/projects/documentation/scripts/gather-spectrum-urls.js @@ -28,7 +28,6 @@ const targetDir = path.resolve( const targetFile = path.resolve(targetDir, 'spectrumURLs.js'); const packageNameCorrections = { - quickaction: 'quick-actions', tag: 'tags', }; diff --git a/tools/base/test/define-element.test.ts b/tools/base/test/define-element.test.ts index b637c5489e..9ea96c808f 100644 --- a/tools/base/test/define-element.test.ts +++ b/tools/base/test/define-element.test.ts @@ -103,8 +103,6 @@ const elements = { import( '@spectrum-web-components/progress-circle/sp-progress-circle.js' ), - 'sp-quick-actions': () => - import('@spectrum-web-components/quick-actions/sp-quick-actions.js'), 'sp-radio-group': () => import('@spectrum-web-components/radio/sp-radio-group.js'), 'sp-radio': () => import('@spectrum-web-components/radio/sp-radio.js'), diff --git a/tools/bundle/elements.ts b/tools/bundle/elements.ts index cb4b84f30e..4e8e7833d6 100644 --- a/tools/bundle/elements.ts +++ b/tools/bundle/elements.ts @@ -63,7 +63,6 @@ import '@spectrum-web-components/picker-button/sp-picker-button.js'; import '@spectrum-web-components/popover/sp-popover.js'; import '@spectrum-web-components/progress-bar/sp-progress-bar.js'; import '@spectrum-web-components/progress-circle/sp-progress-circle.js'; -import '@spectrum-web-components/quick-actions/sp-quick-actions.js'; import '@spectrum-web-components/radio/sp-radio.js'; import '@spectrum-web-components/radio/sp-radio-group.js'; import '@spectrum-web-components/search/sp-search.js'; diff --git a/tools/bundle/src/index.ts b/tools/bundle/src/index.ts index 2a6e1bda9e..97fa232f81 100644 --- a/tools/bundle/src/index.ts +++ b/tools/bundle/src/index.ts @@ -50,7 +50,6 @@ export * from '@spectrum-web-components/picker-button'; export * from '@spectrum-web-components/popover'; export * from '@spectrum-web-components/progress-bar'; export * from '@spectrum-web-components/progress-circle'; -export * from '@spectrum-web-components/quick-actions'; export * from '@spectrum-web-components/radio'; export * from '@spectrum-web-components/search'; export * from '@spectrum-web-components/sidenav'; diff --git a/tools/bundle/tsconfig.json b/tools/bundle/tsconfig.json index ab71772ffb..ef447a2453 100644 --- a/tools/bundle/tsconfig.json +++ b/tools/bundle/tsconfig.json @@ -139,9 +139,6 @@ { "path": "../../packages/overlay" }, - { - "path": "../../packages/quick-actions" - }, { "path": "../../packages/radio" }, diff --git a/tsconfig-all.json b/tsconfig-all.json index f3bc58747b..e7cec75581 100644 --- a/tsconfig-all.json +++ b/tsconfig-all.json @@ -163,9 +163,6 @@ { "path": "packages/progress-circle" }, - { - "path": "packages/quick-actions" - }, { "path": "packages/radio" }, diff --git a/tsconfig-react-wrapper.json b/tsconfig-react-wrapper.json index 53194e75b1..3968013346 100644 --- a/tsconfig-react-wrapper.json +++ b/tsconfig-react-wrapper.json @@ -148,9 +148,6 @@ { "path": "react/progress-circle" }, - { - "path": "react/quick-actions" - }, { "path": "react/radio" }, diff --git a/yarn.lock b/yarn.lock index 5a47137bdd..db0e00cbcf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5208,11 +5208,6 @@ resolved "https://registry.yarnpkg.com/@spectrum-css/progresscircle/-/progresscircle-3.1.0.tgz#d4de439c3ae3f240030d3a682f6d1f6b8ff84f9e" integrity sha512-1zGnhlYD3suY1E1b2B0LLHFNC31gZMl7NsoGRzztj6dwUVF9bbmrMH7PlHkAqN1aTiaQaFGunEtFSW/XbEc+XA== -"@spectrum-css/quickaction@^3.1.1": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/quickaction/-/quickaction-3.1.1.tgz#1095cc68b6e182721aa141d490b79f6ed6ca1d6d" - integrity sha512-PCp/83ctAWrYlDYjZU+9vRMLte2GBaxiKOBvm1g9UH0XqTvocjlyVRNIvVbE0ywdefVtbKGFr30x+Yk9HTdaRQ== - "@spectrum-css/radio@^9.2.3": version "9.2.3" resolved "https://registry.yarnpkg.com/@spectrum-css/radio/-/radio-9.2.3.tgz#1e0f60134fd76089f166ebac3d4b41bbc9cb9cc9"