Skip to content

Commit 82cd085

Browse files
committed
chore: sync with main
* origin/main: (30 commits) test: add token snapshot tests (#8050) chore: release next fix(color-picker, popover, shell-panel, slider, tooltip): Register events on the window instead of the document (#8247) fix(list-item): Reserve space for empty open lists. (#8239) fix: dragging floating ui components (#8230) fix(list-item): an item with an empty slotted list should be openable. (#8240) fix(input): prevents mutating value on `blur` when `type="number"` (#8245) chore: release main (#8092) chore: downgrade eslint plugin after reverting breaking change (#8238) refactor(combobox): fix linting errors (#8235) chore: downgrade packages after reverting 2.0.0-next.0 change (#8237) chore: release next revert: feat(stepper-item)!: remove support for previousStep and nextStep in messages (#8222) (#8232) feat(stepper): enable responsive layout (#7744) feat(combobox): limit display of selected items with new selection-display prop (#7912) chore: release next build: update browserslist db (#8218) fix(list-item): fix rendering of open icon. (#8207) revert: feat(alert): make component responsive (#8195) fix(input-number): prevents mutating value on blur (#8226) ...
2 parents 897a777 + a7aeb37 commit 82cd085

File tree

116 files changed

+90424
-9391
lines changed

Some content is hidden

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

116 files changed

+90424
-9391
lines changed

.github/ISSUE_TEMPLATE/accessibility.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ body:
103103
description: Select the relevant [package(s)](https://github.com/Esri/calcite-design-system/tree/main/packages) related to the request.
104104
options:
105105
- label: "@esri/calcite-components"
106+
- label: "@esri/calcite-components-angular"
106107
- label: "@esri/calcite-components-react"
107108
- label: "@esri/calcite-design-tokens"
108109
- label: "@esri/eslint-plugin-calcite-components"

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ body:
9797
description: Select the relevant [package(s)](https://github.com/Esri/calcite-design-system/tree/main/packages) related to the request.
9898
options:
9999
- label: "@esri/calcite-components"
100+
- label: "@esri/calcite-components-angular"
100101
- label: "@esri/calcite-components-react"
101102
- label: "@esri/calcite-design-tokens"
102103
- label: "@esri/eslint-plugin-calcite-components"

.github/ISSUE_TEMPLATE/enhancement.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ body:
6565
description: Select the relevant [package(s)](https://github.com/Esri/calcite-design-system/tree/main/packages) related to the request.
6666
options:
6767
- label: "@esri/calcite-components"
68+
- label: "@esri/calcite-components-angular"
6869
- label: "@esri/calcite-components-react"
6970
- label: "@esri/calcite-design-tokens"
7071
- label: "@esri/eslint-plugin-calcite-components"

.github/ISSUE_TEMPLATE/refactor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ body:
4141
description: Select the relevant [package(s)](https://github.com/Esri/calcite-design-system/tree/main/packages) related to the request.
4242
options:
4343
- label: "@esri/calcite-components"
44+
- label: "@esri/calcite-components-angular"
4445
- label: "@esri/calcite-components-react"
4546
- label: "@esri/calcite-design-tokens"
4647
- label: "@esri/eslint-plugin-calcite-components"

.release-please-manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"packages/calcite-components": "1.10.0",
3-
"packages/calcite-components-angular": "1.10.0",
4-
"packages/calcite-components-react": "1.10.0",
2+
"packages/calcite-components": "1.11.0",
3+
"packages/calcite-components-react": "1.11.0",
54
"packages/calcite-design-tokens": "1.1.0",
6-
"packages/eslint-plugin-calcite-components": "0.2.2"
5+
"packages/eslint-plugin-calcite-components": "0.2.3",
6+
"packages/calcite-components-angular/projects/component-library": "1.11.0"
77
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@
6666
"skipFiles": ["<node_internals>/**"],
6767
"internalConsoleOptions": "neverOpen",
6868
"console": "integratedTerminal"
69+
},
70+
{
71+
"type": "node",
72+
"request": "launch",
73+
"name": "Debug Tokens --spec {currentFile}",
74+
"cwd": "${workspaceFolder}/packages/calcite-design-tokens",
75+
"sourceMaps": true,
76+
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/jest/bin/jest.js", "--runInBand", "${file}"],
77+
"skipFiles": ["<node_internals>/**"],
78+
"internalConsoleOptions": "neverOpen",
79+
"console": "integratedTerminal"
6980
}
7081
]
7182
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/calcite-components/calcite-preset.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export default {
165165
"2-lg": "var(--calcite-box-shadow-md)",
166166
"2-sm": "0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16)",
167167
"border-bottom": "0 1px 0 var(--calcite-color-border-3)",
168+
"border-top": "0 -1px 0 var(--calcite-color-border-3)",
168169
"outline-active": "0 0 0 1px var(--calcite-color-brand)",
169170
none: "none",
170171
xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
@@ -220,6 +221,7 @@ export default {
220221
4.5: "1.125rem",
221222
9: "2.25rem",
222223
11: "2.75rem",
224+
13: "3.25rem",
223225
},
224226
transitionProperty: {
225227
margin: "margin",

packages/calcite-components/conventions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a living document defining our best practices and reasoning for authorin
77
Generally adhere to and follow these best practices for authoring components.
88

99
- [Google Web Component Best Practices](https://developers.google.com/web/fundamentals/web-components/best-practices)
10-
- [Custom Element Conformance - W3C Editor's Draft](https://w3c.github.io/webcomponents/spec/custom/#custom-element-conformance)
10+
- [Custom Element Conformance - W3C Editor's Draft](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance)
1111

1212
## Structure
1313

packages/calcite-components/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ The most common approach for loading Calcite Components is to use the version ho
1717
```html
1818
<script
1919
type="module"
20-
src="https://cdn.jsdelivr.net/npm/@esri/calcite-components@1.10.0/dist/calcite/calcite.esm.js"
20+
src="https://cdn.jsdelivr.net/npm/@esri/calcite-components@1.11.0/dist/calcite/calcite.esm.js"
2121
></script>
2222
<link
2323
rel="stylesheet"
2424
type="text/css"
25-
href="https://cdn.jsdelivr.net/npm/@esri/calcite-components@1.10.0/dist/calcite/calcite.css"
25+
href="https://cdn.jsdelivr.net/npm/@esri/calcite-components@1.11.0/dist/calcite/calcite.css"
2626
/>
2727
```
2828

packages/calcite-components/src/assets/styles/_sortable.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
@mixin sortable-helper-classes() {
2+
.calcite-sortable--ghost,
3+
.calcite-sortable--drag {
4+
overflow: hidden;
5+
}
6+
27
.calcite-sortable--ghost::before {
38
content: "";
49
@apply box-border

packages/calcite-components/src/components.d.ts

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import { ChipMessages } from "./components/chip/assets/chip/t9n";
4646
import { ColorValue, InternalColor } from "./components/color-picker/interfaces";
4747
import { Format } from "./components/color-picker/utils";
4848
import { ColorPickerMessages } from "./components/color-picker/assets/color-picker/t9n";
49+
import { ComboboxChildElement, SelectionDisplay } from "./components/combobox/interfaces";
4950
import { ComboboxMessages } from "./components/combobox/assets/combobox/t9n";
50-
import { ComboboxChildElement } from "./components/combobox/interfaces";
5151
import { DatePickerMessages } from "./components/date-picker/assets/date-picker/t9n";
5252
import { DateLocaleData } from "./components/date-picker/utils";
5353
import { HoverRange } from "./utils/date";
@@ -154,8 +154,8 @@ export { ChipMessages } from "./components/chip/assets/chip/t9n";
154154
export { ColorValue, InternalColor } from "./components/color-picker/interfaces";
155155
export { Format } from "./components/color-picker/utils";
156156
export { ColorPickerMessages } from "./components/color-picker/assets/color-picker/t9n";
157+
export { ComboboxChildElement, SelectionDisplay } from "./components/combobox/interfaces";
157158
export { ComboboxMessages } from "./components/combobox/assets/combobox/t9n";
158-
export { ComboboxChildElement } from "./components/combobox/interfaces";
159159
export { DatePickerMessages } from "./components/date-picker/assets/date-picker/t9n";
160160
export { DateLocaleData } from "./components/date-picker/utils";
161161
export { HoverRange } from "./utils/date";
@@ -1143,7 +1143,8 @@ export namespace Components {
11431143
placeholderIconFlipRtl: boolean;
11441144
/**
11451145
* Updates the position of the component.
1146-
* @param delayed
1146+
* @param delayed Reposition the component after a delay
1147+
* @returns Promise
11471148
*/
11481149
reposition: (delayed?: boolean) => Promise<void>;
11491150
/**
@@ -1159,6 +1160,10 @@ export namespace Components {
11591160
* @readonly
11601161
*/
11611162
selectedItems: HTMLCalciteComboboxItemElement[];
1163+
/**
1164+
* When `selectionMode` is `"ancestors"` or `"multiple"`, specifies the display of multiple `calcite-combobox-item` selections - `"all"` (displays all selections with individual `calcite-chip`s), `"fit"` (displays individual `calcite-chip`s that scale to the component's size, including a non-closable `calcite-chip`, which provides the number of additional `calcite-combobox-item` selections not visually displayed), or `"single"` (display one `calcite-chip` with the total number of selections).
1165+
*/
1166+
selectionDisplay: SelectionDisplay;
11621167
/**
11631168
* Specifies the selection mode: - "multiple" allows any number of selected items (default), - "single" allows only one selection, - "single-persist" allow and require one open item, - "ancestors" is like multiple, but shows ancestors of selected items as selected, with only deepest children shown in chips.
11641169
*/
@@ -1500,7 +1505,7 @@ export namespace Components {
15001505
/**
15011506
* Specifies the width of the component.
15021507
*/
1503-
width: Scale;
1508+
widthScale: Scale;
15041509
}
15051510
interface CalciteDropdownGroup {
15061511
/**
@@ -3083,7 +3088,7 @@ export namespace Components {
30833088
/**
30843089
* Specifies the width of the component.
30853090
*/
3086-
width: Scale;
3091+
widthScale: Scale;
30873092
}
30883093
interface CalciteNavigation {
30893094
/**
@@ -4328,6 +4333,10 @@ export namespace Components {
43284333
* Made into a prop for testing purposes only
43294334
*/
43304335
messages: StepperItemMessages;
4336+
/**
4337+
* Specifies if the user is viewing one `stepper-item` at a time. Helps in determining if header region is tabbable.
4338+
*/
4339+
multipleViewMode: boolean;
43314340
/**
43324341
* When `true`, displays the step number in the `calcite-stepper-item` heading inherited from parent `calcite-stepper`.
43334342
*/
@@ -11019,6 +11028,10 @@ declare namespace LocalJSX {
1101911028
* @readonly
1102011029
*/
1102111030
selectedItems?: HTMLCalciteComboboxItemElement[];
11031+
/**
11032+
* When `selectionMode` is `"ancestors"` or `"multiple"`, specifies the display of multiple `calcite-combobox-item` selections - `"all"` (displays all selections with individual `calcite-chip`s), `"fit"` (displays individual `calcite-chip`s that scale to the component's size, including a non-closable `calcite-chip`, which provides the number of additional `calcite-combobox-item` selections not visually displayed), or `"single"` (display one `calcite-chip` with the total number of selections).
11033+
*/
11034+
selectionDisplay?: SelectionDisplay;
1102211035
/**
1102311036
* Specifies the selection mode: - "multiple" allows any number of selected items (default), - "single" allows only one selection, - "single-persist" allow and require one open item, - "ancestors" is like multiple, but shows ancestors of selected items as selected, with only deepest children shown in chips.
1102411037
*/
@@ -11396,7 +11409,7 @@ declare namespace LocalJSX {
1139611409
/**
1139711410
* Specifies the width of the component.
1139811411
*/
11399-
width?: Scale;
11412+
widthScale?: Scale;
1140011413
}
1140111414
interface CalciteDropdownGroup {
1140211415
/**
@@ -13040,7 +13053,7 @@ declare namespace LocalJSX {
1304013053
/**
1304113054
* Specifies the width of the component.
1304213055
*/
13043-
width?: Scale;
13056+
widthScale?: Scale;
1304413057
}
1304513058
interface CalciteNavigation {
1304613059
/**
@@ -14327,6 +14340,10 @@ declare namespace LocalJSX {
1432714340
* Made into a prop for testing purposes only
1432814341
*/
1432914342
messages?: StepperItemMessages;
14343+
/**
14344+
* Specifies if the user is viewing one `stepper-item` at a time. Helps in determining if header region is tabbable.
14345+
*/
14346+
multipleViewMode?: boolean;
1433014347
/**
1433114348
* When `true`, displays the step number in the `calcite-stepper-item` heading inherited from parent `calcite-stepper`.
1433214349
*/

packages/calcite-components/src/components/action/action.scss

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -160,32 +160,26 @@
160160
}
161161

162162
:host([appearance="transparent"]) .button {
163-
@apply bg-transparent
164-
transition-shadow
165-
duration-150
166-
ease-in-out;
163+
@apply bg-transparent;
167164
}
168165

166+
:host([appearance="transparent"][active]) .button,
169167
:host([appearance="transparent"]) .button:hover,
170168
:host([appearance="transparent"]) .button:focus {
171-
@apply bg-transparent;
172-
box-shadow: 0 0 0 2px theme("borderColor.color.1") inset;
169+
background-color: var(--calcite-button-transparent-hover);
173170
}
174171

175-
:host([active][appearance="transparent"]) .button,
176-
:host([active][appearance="transparent"]) .button:hover,
177-
:host([active][appearance="transparent"]) .button:focus {
178-
@apply text-color-1 fill-color-1 bg-foreground-3;
172+
:host([appearance="transparent"]) .button:active {
173+
background-color: var(--calcite-button-transparent-press);
179174
}
180175

181-
:host([appearance="transparent"][loading]) .button,
182176
:host([appearance="transparent"][disabled]) .button {
183177
@apply bg-transparent;
184178
}
185179

186-
:host([loading]) .button,
187-
:host([loading]) .button:hover,
188-
:host([loading]) .button:focus {
180+
:host([loading][appearance="solid"]) .button,
181+
:host([loading][appearance="solid"]) .button:hover,
182+
:host([loading][appearance="solid"]) .button:focus {
189183
@apply bg-foreground-1;
190184
.text-container {
191185
@apply opacity-disabled;

0 commit comments

Comments
 (0)