Skip to content

Commit b3d69af

Browse files
authored
build: fix spectrum copyright being stripped on build
- feat: remove theme files without content
2 parents bc7e5e5 + 1fc9832 commit b3d69af

File tree

146 files changed

+271
-2017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+271
-2017
lines changed

components/accordion/themes/express.css

-16
This file was deleted.

components/accordion/themes/spectrum.css

-16
This file was deleted.

components/actionbar/stories/template.js

+53-64
Original file line numberDiff line numberDiff line change
@@ -18,67 +18,56 @@ export const Template = ({
1818
isFlexible = false,
1919
customClasses = [],
2020
...globals
21-
}) => {
22-
const { express } = globals;
23-
24-
try {
25-
if (!express) import(/* webpackPrefetch: true */ "../themes/spectrum.css");
26-
else import(/* webpackPrefetch: true */ "../themes/express.css");
27-
} catch (e) {
28-
console.warn(e);
29-
}
30-
31-
return html`
32-
<div
33-
class=${classMap({
34-
[rootClass]: true,
35-
[`${rootClass}--size${size?.toUpperCase()}`]:
36-
typeof size !== "undefined",
37-
[`${rootClass}--emphasized`]: isEmphasized,
38-
[`${rootClass}--sticky`]: isSticky,
39-
[`${rootClass}--fixed`]: isFixed,
40-
[`${rootClass}--flexible`]: isFlexible,
41-
"is-open": isOpen,
42-
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}),
43-
})}
44-
>
45-
${Popover({
46-
...globals,
47-
customClasses: [`${rootClass}-popover`],
48-
isOpen,
49-
content: [
50-
CloseButton({
51-
...globals,
52-
label: "Clear selection",
53-
staticColor: isEmphasized ? "white" : undefined,
54-
}),
55-
FieldLabel({
56-
...globals,
57-
size: "s",
58-
label: "2 Selected",
59-
}),
60-
ActionGroup({
61-
...globals,
62-
size: "m",
63-
areQuiet: true,
64-
staticColors: isEmphasized ? "white" : undefined,
65-
content: [
66-
{
67-
iconName: "Edit",
68-
label: "Edit",
69-
},
70-
{
71-
iconName: "Copy",
72-
label: "Copy",
73-
},
74-
{
75-
iconName: "Delete",
76-
label: "Delete",
77-
},
78-
],
79-
}),
80-
],
81-
})}
82-
</div>
83-
`;
84-
};
21+
}) => html`
22+
<div
23+
class=${classMap({
24+
[rootClass]: true,
25+
[`${rootClass}--size${size?.toUpperCase()}`]:
26+
typeof size !== "undefined",
27+
[`${rootClass}--emphasized`]: isEmphasized,
28+
[`${rootClass}--sticky`]: isSticky,
29+
[`${rootClass}--fixed`]: isFixed,
30+
[`${rootClass}--flexible`]: isFlexible,
31+
"is-open": isOpen,
32+
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}),
33+
})}
34+
>
35+
${Popover({
36+
...globals,
37+
customClasses: [`${rootClass}-popover`],
38+
isOpen,
39+
content: [
40+
CloseButton({
41+
...globals,
42+
label: "Clear selection",
43+
staticColor: isEmphasized ? "white" : undefined,
44+
}),
45+
FieldLabel({
46+
...globals,
47+
size: "s",
48+
label: "2 Selected",
49+
}),
50+
ActionGroup({
51+
...globals,
52+
size: "m",
53+
areQuiet: true,
54+
staticColors: isEmphasized ? "white" : undefined,
55+
content: [
56+
{
57+
iconName: "Edit",
58+
label: "Edit",
59+
},
60+
{
61+
iconName: "Copy",
62+
label: "Copy",
63+
},
64+
{
65+
iconName: "Delete",
66+
label: "Delete",
67+
},
68+
],
69+
}),
70+
],
71+
})}
72+
</div>
73+
`;

components/actionbar/themes/express.css

-15
This file was deleted.

components/actionbar/themes/spectrum.css

-15
This file was deleted.

components/actionmenu/themes/express.css

-12
This file was deleted.

components/actionmenu/themes/spectrum.css

-12
This file was deleted.

components/alertdialog/themes/express.css

-13
This file was deleted.

components/alertdialog/themes/spectrum.css

-13
This file was deleted.

components/assetlist/themes/express.css

-15
This file was deleted.

components/assetlist/themes/spectrum.css

-15
This file was deleted.

components/avatar/themes/express.css

-15
This file was deleted.

components/avatar/themes/spectrum.css

-15
This file was deleted.

components/badge/stories/template.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { html } from "lit";
22
import { classMap } from "lit/directives/class-map.js";
3-
import { styleMap } from "lit/directives/style-map.js";
43
import { ifDefined } from "lit/directives/if-defined.js";
4+
import { styleMap } from "lit/directives/style-map.js";
55
import { when } from "lit/directives/when.js";
66

77
import { Template as Icon } from "@spectrum-css/icon/stories/template.js";
@@ -20,15 +20,6 @@ export const Template = ({
2020
id,
2121
...globals
2222
}) => {
23-
const { express } = globals;
24-
25-
try {
26-
if (!express) import(/* webpackPrefetch: true */ "../themes/spectrum.css");
27-
else import(/* webpackPrefetch: true */ "../themes/express.css");
28-
} catch (e) {
29-
console.warn(e);
30-
}
31-
3223
return html`
3324
<div
3425
class=${classMap({

components/badge/themes/express.css

-15
This file was deleted.

components/badge/themes/spectrum.css

-15
This file was deleted.

components/breadcrumb/stories/template.js

-9
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ export const Template = ({
1515
isDragged = false,
1616
...globals
1717
}) => {
18-
const { express } = globals;
19-
20-
try {
21-
if (!express) import(/* webpackPrefetch: true */ "../themes/spectrum.css");
22-
else import(/* webpackPrefetch: true */ "../themes/express.css");
23-
} catch (e) {
24-
console.warn(e);
25-
}
26-
2718
return html`
2819
<nav>
2920
<ul

components/breadcrumb/themes/express.css

-16
This file was deleted.

0 commit comments

Comments
 (0)