Skip to content

Commit

Permalink
fix(base): move lit imports to base
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmitch authored and Westbrook Johnson committed May 8, 2024
1 parent 235ae7c commit a20f6a4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/checkbox/src/CheckboxMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { ReactiveElement } from 'lit';
import { html, TemplateResult } from '@spectrum-web-components/base';
import {
html,
ReactiveElement,
TemplateResult,
} from '@spectrum-web-components/base';
import {
property,
query,
Expand Down
2 changes: 1 addition & 1 deletion packages/overlay/src/InteractionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import type { ReactiveController } from 'lit';
import type { ReactiveController } from '@spectrum-web-components/base';
import { AbstractOverlay } from './AbstractOverlay.js';

export enum InteractionTypes {
Expand Down
2 changes: 1 addition & 1 deletion packages/overlay/src/slottable-request-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
render,
TemplateResult,
} from '@spectrum-web-components/base';
import { AsyncDirective, directive } from 'lit/async-directive.js';
import { AsyncDirective, directive } from '@spectrum-web-components/base/src/async-directive.js';
import {
removeSlottableRequest,
SlottableRequestEvent,
Expand Down
4 changes: 4 additions & 0 deletions tools/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"development": "./src/Base.dev.js",
"default": "./src/Base.js"
},
"./src/async-directive.js": {
"development": "./src/async-directive.dev.js",
"default": "./src/async-directive.js"
},
"./src/condition-attribute-with-id.js": {
"development": "./src/condition-attribute-with-id.dev.js",
"default": "./src/condition-attribute-with-id.js"
Expand Down
13 changes: 13 additions & 0 deletions tools/base/src/async-directive.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
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 'lit/async-directive.js';

0 comments on commit a20f6a4

Please sign in to comment.