Skip to content

Commit aa3633c

Browse files
committed
Merge branch 'main' into aramos-adobe/css868-combobox-readonly
2 parents 7c388a2 + ac321bf commit aa3633c

File tree

192 files changed

+1796
-187
lines changed

Some content is hidden

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

192 files changed

+1796
-187
lines changed

.changeset/afraid-dogs-worry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/gold-deers-smash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.storybook/decorators/utilities.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const Heading = ({
1616
content,
1717
size = "l",
1818
weight,
19+
withMargin = false,
1920
} = {}, context = {}) => {
2021
if (!content) return nothing;
2122

@@ -26,6 +27,7 @@ const Heading = ({
2627
"font-size": "11px",
2728
"line-height": "1.3",
2829
"font-weight": "700",
30+
"margin-block-end": withMargin ? "8px" : "0",
2931
};
3032

3133
if ((size === "xxs" && semantics === "heading") || size === "l") {
@@ -46,7 +48,7 @@ const Heading = ({
4648
}
4749
}
4850

49-
if (context.globals?.color.startsWith("dark")) {
51+
if (context.globals?.color?.startsWith("dark")) {
5052
headingStyles["color"] = context?.args?.staticColor ?? "white";
5153
}
5254
else if (typeof context?.args?.staticColor !== "undefined") {
@@ -110,7 +112,7 @@ export const Container = ({
110112
if (withBorder) {
111113
borderStyles["padding-inline"] = "24px";
112114
borderStyles["padding-block"] = "24px";
113-
borderStyles["border"] = "1px solid var(--spectrum-gray-200)";
115+
borderStyles["border"] = "1px solid rgba(var(--spectrum-gray-600-rgb), 20%)";
114116
borderStyles["border-radius"] = "4px";
115117
gap = 80;
116118
}
@@ -528,9 +530,13 @@ export const Variants = ({
528530
export const renderContent = (content = [], {
529531
context = {},
530532
args = {},
531-
callback = (args, context) => {
532-
console.log(JSON.stringify(args, null, 2), JSON.stringify(context, null, 2));
533-
return nothing;
533+
callback = ({ testHeading, content, ...args }, context) => {
534+
return html`
535+
<div>
536+
${testHeading ? Heading({ content: testHeading, withMargin: true }, context) : nothing}
537+
${content ? renderContent(content, { args, context }) : nothing}
538+
</div>
539+
`;
534540
}
535541
} = {}) => {
536542
// If the content is not an array, make it an array for easier processing
@@ -542,6 +548,8 @@ export const renderContent = (content = [], {
542548

543549
return html`
544550
${content.map((c) => {
551+
if (typeof c === "undefined") return nothing;
552+
545553
/* If the content is an object (but not a lit object), we need to merge the object with the template */
546554
if (typeof c !== "string" && (typeof c === "object" && !c._$litType$)) {
547555
return callback({ ...args, ...c }, context);

.storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"lit": "^3.2.1",
6060
"lodash-es": "^4.17.21",
6161
"npm-registry-fetch": "^18.0.2",
62-
"postcss": "^8.4.48",
62+
"postcss": "^8.4.49",
6363
"prettier": "^3.2.5",
6464
"react": "^18.3.1",
6565
"react-dom": "^18.3.1",

components/accordion/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* governing permissions and limitations under the License.
1212
*/
1313

14+
@import "./themes/express.css";
15+
1416
.spectrum-Accordion {
1517
--spectrum-accordion-item-height: var(--spectrum-component-height-200);
1618
--spectrum-accordion-item-width: var(--spectrum-accordion-minimum-width);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*!
2+
* Copyright 2024 Adobe. All rights reserved.
3+
*
4+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License. You may obtain a copy
6+
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
7+
*
8+
* Unless required by applicable law or agreed to in writing, software distributed under
9+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
* OF ANY KIND, either express or implied. See the License for the specific language
11+
* governing permissions and limitations under the License.
12+
*/
13+
14+
@import "./spectrum.css";
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*!
2+
* Copyright 2024 Adobe. All rights reserved.
3+
*
4+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License. You may obtain a copy
6+
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
7+
*
8+
* Unless required by applicable law or agreed to in writing, software distributed under
9+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
* OF ANY KIND, either express or implied. See the License for the specific language
11+
* governing permissions and limitations under the License.
12+
*/

components/actionbar/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* governing permissions and limitations under the License.
1212
*/
1313

14+
@import "./themes/express.css";
15+
1416
.spectrum-ActionBar {
1517
--spectrum-actionbar-height: var(--spectrum-action-bar-height);
1618
--spectrum-actionbar-corner-radius: var(--spectrum-corner-radius-100);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*!
2+
* Copyright 2024 Adobe. All rights reserved.
3+
*
4+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License. You may obtain a copy
6+
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
7+
*
8+
* Unless required by applicable law or agreed to in writing, software distributed under
9+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
* OF ANY KIND, either express or implied. See the License for the specific language
11+
* governing permissions and limitations under the License.
12+
*/
13+
14+
@import "./spectrum.css";
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*!
2+
* Copyright 2024 Adobe. All rights reserved.
3+
*
4+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License. You may obtain a copy
6+
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
7+
*
8+
* Unless required by applicable law or agreed to in writing, software distributed under
9+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10+
* OF ANY KIND, either express or implied. See the License for the specific language
11+
* governing permissions and limitations under the License.
12+
*/

0 commit comments

Comments
 (0)