Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add component tokens to Calcite Components #8594

Closed
wants to merge 276 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
97d77c3
feat(pagination): Add component tokens (#8777)
macandcheese Feb 21, 2024
a9161fb
feat(progress): add component tokens (#8661)
Elijbet Feb 21, 2024
a5949cd
feat(input): add component tokens (#8767)
alisonailea Feb 21, 2024
f59d089
Merge branch 'main' of github.com:Esri/calcite-components into astump…
alisonailea Feb 21, 2024
fd7a6e1
feat(switch): add component tokens (#8786)
jcfranco Feb 21, 2024
730dcfd
fix panel header and footer space
driskull Feb 22, 2024
93b2563
fix(link): update component tokens to pass E2E tests (#8813)
alisonailea Feb 22, 2024
49838b7
test(shell-center-row): fix test (#8812)
alisonailea Feb 22, 2024
1272f1f
test(option-group): fix (#8811)
alisonailea Feb 22, 2024
d8d2bdd
test(combobox): update test to reduce complexity (#8810)
alisonailea Feb 22, 2024
45eedc7
feat(checkbox): add component tokens (#8710)
alisonailea Feb 22, 2024
401804a
Merge branch 'main' into epic/7180-component-tokens
jcfranco Feb 22, 2024
45e25a4
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Feb 22, 2024
b62ba19
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Feb 23, 2024
093eab7
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Feb 27, 2024
2bb8669
Merge branch 'main' into epic/7180-component-tokens
jcfranco Feb 27, 2024
c30ab8f
fix(tabs): add component tokens (#8783)
Elijbet Feb 28, 2024
4904d52
feat(avatar): component tokens (#8721)
alisonailea Feb 28, 2024
0cda539
refactor(flow, flow-item, panel, popover, tooltip): Use fallback meth…
driskull Feb 28, 2024
1393c1d
refactor: Use component tokens within includes (#8771)
driskull Feb 28, 2024
82cbf88
feat(action menu): add component tokens (#8837)
alisonailea Feb 28, 2024
6754230
feat(input, input-text, input-number, input-time-picker, input-time-z…
alisonailea Feb 29, 2024
602f9e8
feat(tab-nav): add component tokens (#8853)
jcfranco Mar 1, 2024
ee840a5
feat(tab): add component tokens (#8852)
jcfranco Mar 1, 2024
2a0be81
feat(handle): add component tokens (#8780)
Elijbet Mar 1, 2024
cb0aabb
feat(action): add component tokens (#8836)
alisonailea Mar 1, 2024
8ebc28c
refactor(rating): Update token pattern (#8865)
macandcheese Mar 1, 2024
450baec
refactor(card-group): Update token pattern (#8863)
macandcheese Mar 1, 2024
6f3a9ca
refactor(pagination): Update token pattern (#8862)
macandcheese Mar 1, 2024
b5f10ca
refactor(card): Update token pattern (#8860)
macandcheese Mar 1, 2024
93146c2
feat(checkbox, tree-item, card): add component tokens with fallbacks …
alisonailea Mar 2, 2024
3cbd874
feat(loader): add fallback component tokens (#8857)
alisonailea Mar 2, 2024
f42f464
Merge branch 'main' into epic/7180-component-tokens
jcfranco Mar 2, 2024
efc4a30
fix(action): restore missing CSS lookup props (#8871)
jcfranco Mar 2, 2024
56a8b8a
fix(action): add indicator fallback color (#8872)
jcfranco Mar 2, 2024
1df6ae7
refactor(scrim): Update token pattern (#8861)
macandcheese Mar 4, 2024
4758acd
refactor(graph): rename to use accent vs highlight (#8847)
jcfranco Mar 4, 2024
9c37bea
refactor(card): Update token pattern (#8874)
macandcheese Mar 4, 2024
7a7e65f
refactor(meter): Update token pattern (#8873)
macandcheese Mar 4, 2024
dc433c9
refactor(chip): Update token pattern (#8876)
macandcheese Mar 4, 2024
4674100
feat(date-picker): add component tokens (#8822)
anveshmekala Mar 5, 2024
48057f7
feat(combobox, combobox-item-group, combobox-item): add component tok…
alisonailea Mar 5, 2024
e36324b
feat(radio-button, radio-button-group): add component tokens (#8831)
driskull Mar 5, 2024
4412368
feat(shell): add component tokens (#8794)
driskull Mar 5, 2024
9de507f
feat(filter): add component tokens (#8722)
driskull Mar 5, 2024
0a3d3be
feat(select): add component tokens (#8599)
jcfranco Mar 5, 2024
2a6cbc1
feat(block): add component tokens (#8790)
jcfranco Mar 5, 2024
13c4432
feat(block-section): add component tokens (#8795)
jcfranco Mar 5, 2024
38e770b
feat(list, list-item-group, list-item): Add component tokens (#8773)
driskull Mar 5, 2024
3c5b739
feat(segmented-control, segmented-control-item): add component tokens…
driskull Mar 5, 2024
f812519
feat(shell-center-row): add component tokens (#8798)
driskull Mar 5, 2024
64dde19
refactor(tabs): update token pattern (#8880)
Elijbet Mar 5, 2024
4721530
feat(label): add component tokens (#8796)
jcfranco Mar 5, 2024
f8afab3
refactor(color-picker-swatch): add component tokens (#8805)
jcfranco Mar 5, 2024
aea749c
refactor(tip): update token pattern (#8884)
Elijbet Mar 5, 2024
5ff9b06
refactor(progress): update token pattern (#8879)
Elijbet Mar 5, 2024
b7c3851
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Mar 5, 2024
8a80fe3
Merge branch 'main' into epic/7180-component-tokens
jcfranco Mar 6, 2024
636af72
refactor(popover): update token pattern (#8896)
Elijbet Mar 7, 2024
48f035a
feat(navigation-user): adds component tokens (#8895)
anveshmekala Mar 8, 2024
0e27b1a
feat(navigation): adds component tokens (#8905)
anveshmekala Mar 8, 2024
657627b
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea Mar 8, 2024
091047e
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Mar 8, 2024
635e116
feat(navigation-user): add stateful component tokens
anveshmekala Mar 8, 2024
a150b84
revert: feat(navigation-user): add stateful component tokens (#8908)
anveshmekala Mar 8, 2024
1408880
feat(time-picker): add component tokens to time picker (#8898)
DitwanP Mar 8, 2024
7d00aea
fix(link): refactor tokens in link to add fallbacks (#8891)
DitwanP Mar 8, 2024
37eaa27
feat(navigation-logo): adds component tokens (#8894)
anveshmekala Mar 8, 2024
c32bf6f
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea Mar 9, 2024
19998e6
fix(navigation-user): allows theming with tokens (#8918)
anveshmekala Mar 9, 2024
86edb76
feat(menu-item): add component tokens (#8843)
anveshmekala Mar 11, 2024
b956f0e
fix(time-picker): selector and zindex global token
alisonailea Mar 12, 2024
220fc04
fix(combobox): remove extra margin
alisonailea Mar 12, 2024
7c3ff0a
fix(loader): update names (#8924)
alisonailea Mar 12, 2024
0f7ae82
feat(button, fab): add component tokens (#8922)
alisonailea Mar 13, 2024
233bea5
feat(block-section): add subcomponent CSS props (#8933)
jcfranco Mar 14, 2024
02de83a
refactor(select): drop non-subcomponent-related state props (#8932)
jcfranco Mar 14, 2024
b8d2bc8
feat(switch): add stateful component tokens (#8846)
jcfranco Mar 14, 2024
9d34e67
fix(notice): Fix close button focus outline color (#8937)
macandcheese Mar 14, 2024
c50c85a
docs(inline-editable): add missing background-color CSS prop (#8888)
jcfranco Mar 14, 2024
7da2dee
Merge branch 'main' into epic/7180-component-tokens
Elijbet Mar 14, 2024
f72e632
feat(accordion, accordion-item): add component tokens (#8878)
alisonailea Mar 14, 2024
b42e59e
feat(tab-title): add component tokens (#8854)
jcfranco Mar 14, 2024
8cbf833
feat(alert): add component tokens (#8921)
jcfranco Mar 14, 2024
65d86b9
feat(tip-manager): add component tokens (#8782)
Elijbet Mar 14, 2024
971fd99
feat(pagination): Update component tokens (#8941)
macandcheese Mar 15, 2024
3cd5dd2
refactor(date-picker): removes font token and update naming. (#8936)
anveshmekala Mar 15, 2024
eecaf3f
feat(table): Add component tokens (#8940)
macandcheese Mar 18, 2024
8001449
Merge branch 'main' into epic/7180-component-tokens
jcfranco Mar 18, 2024
7c6361a
feat(date-picker, date-picker-month-header): add component tokens (#8…
anveshmekala Mar 18, 2024
ceb60da
feat(modal): add component tokens (#8951)
jcfranco Mar 19, 2024
e81013b
refactor(switch): simplify switch CSS props (#8966)
jcfranco Mar 19, 2024
244592d
refactor(tile): update component CSS props to follow fallback pattern…
jcfranco Mar 19, 2024
899efe2
feat(color-picker): add component tokens (#8956)
jcfranco Mar 19, 2024
71c26a9
feat(stepper, stepper-item): add component tokens (#8906)
anveshmekala Mar 19, 2024
3049ac4
feat(dropdown, dropdown-item, dropdown-group): add component tokens w…
alisonailea Mar 19, 2024
c1c735b
feat(icon): add component tokens (#8868)
alisonailea Mar 19, 2024
408e984
feat(tree-item): add component tokens (#8949)
jcfranco Mar 20, 2024
9a91503
feat(slider): add component tokens (#8899)
jcfranco Mar 20, 2024
eb3b3ba
refactor(split-button): add component tokens (#8972)
alisonailea Mar 21, 2024
837783e
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Mar 21, 2024
c0347b2
refactor(color-picker, color-picker-hex-input): update component toke…
jcfranco Mar 21, 2024
10523a4
refactor(action, action-pad, action-bar, action-group, action-menu, p…
alisonailea Mar 21, 2024
9cdbd15
feat(tip-group): add component tokens (#8988)
jcfranco Mar 22, 2024
51585dc
chore(tile): integrate content-top and content-bottom slot changes pe…
eriklharper Mar 29, 2024
1d35167
merge main
jcfranco Mar 29, 2024
57b559a
fix(table): fix style regression (#8991)
jcfranco Mar 29, 2024
8f18795
fix(tabs): use border prop for bordered styling (#8965)
jcfranco Mar 30, 2024
ef86a7f
feat(input-time-picker): add tokens for toggle icon (#9006)
anveshmekala Apr 2, 2024
3e86534
fix(modal): fix scrim background color prop resolution (#9003)
jcfranco Apr 3, 2024
c284778
feat(input-date-picker): adds sub component tokens (#9007)
anveshmekala Apr 3, 2024
dff8460
test(common): add prop theme utility for E2E (#9027)
alisonailea Apr 8, 2024
c13bb04
merge main
jcfranco Apr 10, 2024
b7812cd
remove unnecessary isArray util
jcfranco Apr 10, 2024
1e1c4ed
throw when CSS prop target isn't found
jcfranco Apr 11, 2024
9bbb486
doc interface props
jcfranco Apr 11, 2024
5eec747
reuse type
jcfranco Apr 11, 2024
975c5dd
make selector optional to simplify API
jcfranco Apr 11, 2024
cff27e0
fix TestTarget state type
jcfranco Apr 11, 2024
5f2732a
update expectedValue assertion to give better error message
jcfranco Apr 11, 2024
9096ae3
update themed to support asserting on mapped subcomponent token/prop …
jcfranco Apr 12, 2024
490a5ef
chore(common-test): update theme example
alisonailea Apr 12, 2024
32041e5
refactor(action-group, action-menu): add classes for E2E tests (#9059)
alisonailea Apr 12, 2024
4916540
chore(common-test): add state selector support for mapped var targetP…
alisonailea Apr 12, 2024
1b9617f
fix(action-pad): fix E2E tests (#9073)
alisonailea Apr 12, 2024
6a041e2
fix(action): add tests and update tokens (#9034)
alisonailea Apr 12, 2024
7a56c19
feat(sheet): add component tokens (#8974)
alisonailea Apr 15, 2024
69bae19
fix(action-bar): update tokens and e2e tests (#9035)
alisonailea Apr 15, 2024
22ce814
feat(shell-panel): add component tokens (#8975)
alisonailea Apr 15, 2024
9061a40
fix(accordion-item): update component tokens and tests (#9033)
alisonailea Apr 15, 2024
77f2d18
chore(common-tests): add waitfor before getting computed style
alisonailea Apr 15, 2024
9dc8e0b
fix(accordion): update tests and remove extra tokens (#9029)
alisonailea Apr 15, 2024
8c60096
prevent deep piercing to ensure assertions happen on test component (…
jcfranco Apr 16, 2024
c5b4b36
update themed to support ComponentTestSetup
jcfranco Apr 16, 2024
8e4ead2
tweak custom css prop types
jcfranco Apr 16, 2024
df844fb
use custom css prop type for token keys
jcfranco Apr 16, 2024
918320a
handle asserting on tokens that mimic border with box shadow
jcfranco Apr 16, 2024
398fcea
tidy up
jcfranco Apr 16, 2024
a8e92ce
share waitForChanges
jcfranco Apr 17, 2024
17cd700
prevent clicks from triggering component behavior and reset mouse ear…
jcfranco Apr 17, 2024
a014656
remove deep piercing block from shadowSelector for sub-component part…
jcfranco Apr 17, 2024
db8ed15
lint
jcfranco Apr 17, 2024
159fe0d
merge main
jcfranco Apr 17, 2024
0787fb8
fix(date-picker): update names and E2E tests (#9151)
alisonailea Apr 18, 2024
5aeb78f
extract and export component test tokens type
jcfranco Apr 18, 2024
c1515c8
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Apr 19, 2024
23272bc
add state types
jcfranco Apr 17, 2024
2cf1c91
fix ComponentTestTokens type
jcfranco Apr 21, 2024
b24a427
resolve merge conflict: add themed test and remove commonTests.ts
Elijbet Apr 23, 2024
6cb75f1
reference themed in the index
Elijbet Apr 23, 2024
b5b52b4
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea Apr 24, 2024
add4f89
test(filter): add e2e tests (#9152)
alisonailea Apr 24, 2024
30df655
fix(action-menu): update component and add E2E tests (#9065)
alisonailea Apr 24, 2024
e0c558f
test(flow-item): add theme E2E tests (#9157)
alisonailea Apr 24, 2024
211fc2a
fix(handle): update for e2e theme test (#9161)
alisonailea Apr 29, 2024
69b49c4
fix(input): update tokens and E2E tests (#9176)
alisonailea Apr 29, 2024
3885aea
fix(input-date-picker, input-message, input-number, input-text, input…
alisonailea May 3, 2024
e765278
fix(tile): use internal variables for token value reassignment
alisonailea May 7, 2024
2c8442c
refactor(tile): reduce code churn
alisonailea May 7, 2024
022c86f
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 8, 2024
9d44eb2
chore(carousel, block): resolve eslint warnings
alisonailea May 8, 2024
0b91475
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea May 8, 2024
5b2c090
Merge branch 'astump/9278-fix-tile' of github.com:Esri/calcite-compon…
alisonailea May 8, 2024
7854201
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 9, 2024
e71ddfc
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 13, 2024
f3035ce
fix(tile): missing semicolon
alisonailea May 14, 2024
f8a0e18
chore(list-item-group): deprecated applied token style
alisonailea May 14, 2024
7d11616
chore(input): import testWorkaroundForGlobalPropRemoval
alisonailea May 14, 2024
fe06c1c
fix(includes): correct token fallback order for focus mixins
alisonailea May 14, 2024
18289b4
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 14, 2024
45b9b51
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 15, 2024
7ef714f
feat(carousel): Add public design tokens (#9333)
macandcheese May 16, 2024
8788983
test(meter): Add token theming tests (#9357)
macandcheese May 17, 2024
0a90367
test(notice): Add token theming tests (#9339)
macandcheese May 17, 2024
19b4872
ci(chromatic): remove broken import in filter stories
benelan May 18, 2024
16ce98b
test(alert): Add token theming tests (#9356)
macandcheese May 20, 2024
2911449
feat(panel): add component tokens (#9318)
Elijbet May 20, 2024
3aa00a1
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 23, 2024
5185827
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 24, 2024
5247712
test(navigation-logo): add token theming tests (#9409)
anveshmekala May 24, 2024
1ca9a3e
test(link): add token theming tests (#9407)
Elijbet May 24, 2024
7f88f71
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea May 28, 2024
18e5630
test(pagination): add token theming tests (#9417)
anveshmekala May 28, 2024
9daba9b
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea May 29, 2024
21f717e
Merge branch 'main' of github.com:Esri/calcite-components into epic/7…
alisonailea May 29, 2024
701987a
test(navigation-logo): use sub-component token for theming test (#9444)
anveshmekala May 29, 2024
37d3002
test(navigation-user): add token theming tests (#9410)
anveshmekala May 29, 2024
23ace42
test(navigation): add token theming tests (#9408)
anveshmekala May 29, 2024
39b8123
test(shell-center-row): add token theming tests
Elijbet May 29, 2024
f6e6f07
Revert accidental commit
Elijbet May 30, 2024
fe571d7
test(tooltip): add token theming tests (#9463)
anveshmekala May 30, 2024
1169e80
test(popover): add token theming tests (#9460)
anveshmekala May 30, 2024
52cdd12
test(panel): add token theming tests (#9442)
anveshmekala May 30, 2024
4677c4d
test(menu-item): add token theming tests (#9420)
Elijbet May 30, 2024
73c5dc8
test(modal): add token theming tests (#9447)
Elijbet May 30, 2024
8f87921
feat(split-button, dropdown-item, button): update component tokens (#…
alisonailea May 30, 2024
97dd07d
fix(switch): add back missing tokens with e2e tests
alisonailea May 31, 2024
d275331
fix(text-area): add component tokens
alisonailea Jun 1, 2024
f42fdf7
test(stepper-item): add token theming tests (#9486)
Elijbet Jun 2, 2024
df6bf86
test(stepper): add token theming tests (#9484)
Elijbet Jun 2, 2024
1ce3148
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea Jun 3, 2024
b848cd2
test: update themed to handle pseudoelements and special underline st…
jcfranco Jun 4, 2024
0956bad
test(commonTests): improve `themed` error messages (#9481)
jcfranco Jun 4, 2024
51236da
test(action-group, dropdown-item, handle, input-time-picker): fix the…
jcfranco Jun 6, 2024
b34aff3
test(time-picker, action, input-time-picker): add token theming tests…
eriklharper Jun 6, 2024
4395f91
Merge branch 'dev' of github.com:Esri/calcite-components into epic/71…
alisonailea Jun 10, 2024
f6c9f9c
fix(tree-item): update tokens and tests (#9553)
alisonailea Jun 15, 2024
6929b4c
fix(date-picker-month): use font-weight bold (#9552)
alisonailea Jun 15, 2024
c4490a7
test(scrim): add component token E2E tests (#9606)
jcfranco Jun 18, 2024
37c26d5
test(progress): add component token E2E tests (#9605)
jcfranco Jun 18, 2024
c8cc2d2
test(chip): add component token E2E tests (#9604)
jcfranco Jun 18, 2024
dc89196
test(checkbox): add component token E2E tests (#9603)
jcfranco Jun 18, 2024
63c4c0f
test(avatar): add component token E2E tests (#9601)
jcfranco Jun 18, 2024
5626ed8
test(segmented-control, segmented-control-item): add component token …
jcfranco Jun 18, 2024
6b090e5
test(tip, tip-group, tip-manager): add component token E2E tests (#9589)
jcfranco Jun 18, 2024
97698df
test(dropdown, dropdown-group): add component token E2E tests (#9598)
jcfranco Jun 18, 2024
dd3cc7d
test(graph): add component token E2E tests (#9597)
jcfranco Jun 18, 2024
d6161bd
test(switch): add component token E2E tests (#9596)
jcfranco Jun 18, 2024
b6ae2ad
test(label): add component token E2E tests (#9594)
jcfranco Jun 18, 2024
a6750dc
test(icon): add component token E2E tests (#9595)
jcfranco Jun 18, 2024
762b056
test(select): add component token E2E tests (#9593)
jcfranco Jun 18, 2024
ac2d13f
test(card, card-group): add component token E2E tests (#9600)
jcfranco Jun 18, 2024
9ea9f43
test(radio-button): add component token E2E tests (#9591)
jcfranco Jun 18, 2024
afd2371
test(combobox, combobox-item-group, combobox-item): add component tok…
jcfranco Jun 18, 2024
2192a33
fix build issues
jcfranco Jun 18, 2024
f2e3346
test(shell): add token theming tests (#9458)
Elijbet Jun 19, 2024
f2f37f1
test(shell-center-row): add token theming tests (#9462)
Elijbet Jun 19, 2024
7f60326
fix(list, list-item, list-item-group): add e2e themed tests (#9616)
alisonailea Jun 19, 2024
5bb25ad
test(inline-editable): add token theme tests (#9648)
eriklharper Jun 21, 2024
2c5b6ef
merge dev
jcfranco Jun 26, 2024
b27bc78
test(button, fab): add component token E2E tests (#9602)
jcfranco Jun 28, 2024
e24355f
test(block, block-section): add component token E2E tests (#9685)
jcfranco Jun 28, 2024
58d9a49
test(rating): add theme token tests (#9700)
eriklharper Jun 28, 2024
b9c6733
test(themed): improve pseudoElement pattern
jcfranco Jul 3, 2024
94fb823
test(text-area): add component token E2E tests (#9729)
jcfranco Jul 5, 2024
e2bc7af
Merge branch 'dev' of github.com:Esri/calcite-components into epic/71…
alisonailea Jul 9, 2024
e7b5653
chore(demo-theme): themed demo helper (#9645)
alisonailea Jul 9, 2024
7a26061
fix(filter): build errors due to merge conflict
benelan Jul 10, 2024
95f0821
fix(panel, list, list-item, card, action-pad): resolve merge conflict…
alisonailea Jul 10, 2024
dafa7a7
Merge branch 'epic/7180-component-tokens' of github.com:Esri/calcite-…
alisonailea Jul 10, 2024
8e46698
fix(loader): fix merge conflicts and chromatic
alisonailea Jul 10, 2024
fb03f55
fix(loader): component tokens
alisonailea Jul 10, 2024
5120054
fix(accordion-item): last item’s border block end
alisonailea Jul 10, 2024
be647ed
ci(chromatic): reset baseline to dev (#9746)
benelan Jul 10, 2024
d160077
chore: update demo head (#9755)
alisonailea Jul 10, 2024
0233757
chore: remove extra scripts from demos
alisonailea Jul 10, 2024
48a2665
add coverage to demo-theme helper for spacing, fill and outline CSS c…
jcfranco Jul 10, 2024
ad9b49a
test(color-picker): add component token E2E tests (#9737)
jcfranco Jul 17, 2024
a2b082b
test(tabs, tab-nav, tab-title, tab): add component token E2E tests (#…
jcfranco Jul 18, 2024
2c5e985
test(loader): add component token E2E tests (#9726)
jcfranco Jul 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/chromatic-7180.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Chromatic - epic/7180-component-tokens"
on:
push:
branches: [epic/7180-component-tokens]
pull_request:
branches: [epic/7180-component-tokens]
types: [labeled, synchronize]
jobs:
run:
if: |
(github.event.action == 'labeled' && github.event.label.name == 'pr ready for visual snapshots') || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: package.json
- run: npm install
- run: npm --workspace="packages/calcite-design-tokens" run build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
exitOnceUploaded: true
workingDir: packages/calcite-components
# Re-enable this option once the snapshots are fixed on the epic branch. Until then, snapshots will need to be
# approved/rejected in both the PR and the commit on epic/7180-component-tokens after installing
# autoAcceptChanges: epic/7180-component-tokens
env:
STORYBOOK_SCREENSHOT_TEST_BUILD: true
CHROMATIC_DIFF_THRESHOLD: ${{ secrets.CHROMATIC_DIFF_THRESHOLD }}
skip:
if: contains(github.event.pull_request.labels.*.name, 'skip visual snapshots')
runs-on: ubuntu-latest
steps:
- name: Skip Chromatic
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: UI Tests
description: Chromatic run skipped
state: success
sha: ${{github.event.pull_request.head.sha || github.sha}}
2,510 changes: 1,345 additions & 1,165 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/calcite-components/conventions/Styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ There are some edge cases where you may wish to isolate and use only the values
}
```

#### Component Tokens

Component tokens provide custom theming to individual components. Component tokens inherit from the global semantic tokens provided by Calcite Design Tokens.

## Legacy Tokens

In Calcite's [2.0.0](https://github.com/Esri/calcite-design-system/releases/tag/%40esri%2Fcalcite-design-tokens%402.0.0) release, design tokens were refactored, which included the removal and refactoring of legacy CSS custom properties. Refer to the [map of token changes from 2.0.0](https://github.com/Esri/calcite-design-tokens/CHANGELOG.md#20-map-of-token-changes) for a more comprehensive list of changes.
Expand Down
64 changes: 40 additions & 24 deletions packages/calcite-components/src/assets/styles/_floating-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ $floating-ui-transform-top: translateY(5px);
$floating-ui-transform-left: translateX(5px);
$floating-ui-transform-right: translateX(-5px);

@mixin floating-ui-base {
--calcite-floating-ui-transition: var(--calcite-animation-timing);
--calcite-floating-ui-z-index: theme("zIndex.dropdown");
}

@mixin floatingUIAnim {
@mixin floatingUIAnim($boxShadow, $borderRadius, $borderWidth, $borderColor, $backgroundColor) {
.calcite-floating-ui-anim {
position: relative;
transition: var(--calcite-floating-ui-transition);
transition: var(--calcite-animation-timing);
transition-property: transform, visibility, opacity;
opacity: 0;
box-shadow: $shadow-2;
@apply rounded z-default;
border-style: solid;
border-width: #{$borderWidth};
box-shadow: #{$boxShadow};
border-radius: #{$borderRadius};
z-index: var(--calcite-z-index);
background-color: #{$backgroundColor};
border-color: #{$borderColor};
}
}

Expand All @@ -24,9 +24,16 @@ $floating-ui-transform-right: translateX(-5px);
transform: translate(0);
}

@mixin floatingUIElemAnim($selector) {
@mixin floatingUIElemAnim(
$selector,
$boxShadow: "var(--calcite-shadow-md)",
$borderRadius: "var(--calcite-corner-radius-0)",
$borderWidth: "var(--calcite-border-width-none)",
$borderColor: "var(--calcite-color-border-3)",
$backgroundColor: "var(--calcite-color-foreground-1)"
) {
#{$selector} {
@include floatingUIAnim();
@include floatingUIAnim($boxShadow, $borderRadius, $borderWidth, $borderColor, $backgroundColor);

&[data-placement^="bottom"] .calcite-floating-ui-anim {
transform: $floating-ui-transform-bottom;
Expand All @@ -50,8 +57,8 @@ $floating-ui-transform-right: translateX(-5px);
}
}

@mixin floatingUIHostAnim {
@include floatingUIAnim();
@mixin floatingUIHostAnim($boxShadow, $borderRadius, $borderWidth, $borderColor, $backgroundColor) {
@include floatingUIAnim($boxShadow, $borderRadius, $borderWidth, $borderColor, $backgroundColor);

:host([data-placement^="bottom"]) .calcite-floating-ui-anim {
transform: $floating-ui-transform-bottom;
Expand All @@ -74,10 +81,10 @@ $floating-ui-transform-right: translateX(-5px);
}
}

@mixin floatingUIContainer() {
@mixin floatingUIContainer($zIndex) {
display: block;
position: absolute;
z-index: var(--calcite-floating-ui-z-index);
z-index: #{$zIndex};
}

@mixin floatingUIWrapper {
Expand All @@ -88,25 +95,34 @@ $floating-ui-transform-right: translateX(-5px);
visibility: visible;
}

@mixin floatingUIHost() {
@mixin floatingUIHost(
$zIndex: "var(--calcite-z-index-dropdown)",
$boxShadow: "var(--calcite-shadow-md)",
$borderRadius: "var(--calcite-corner-radius-0)",
$borderWidth: "var(--calcite-border-width-none)",
$borderColor: "var(--calcite-color-border-3)",
$backgroundColor: "var(--calcite-color-foreground-1)"
) {
:host {
@include floatingUIContainer();
@include floatingUIContainer($zIndex);
}

@include floatingUIHostAnim();
@include floatingUIHostAnim($boxShadow, $borderRadius, $borderWidth, $borderColor, $backgroundColor);

@include calciteHydratedHidden();

@include floatingUIArrow($backgroundColor, $borderColor);
}

@mixin floatingUIArrow {
@mixin floatingUIArrow($backgroundColor, $borderColor) {
.calcite-floating-ui-arrow {
@apply -z-default
absolute
pointer-events-none
fill-background-foreground-1;
z-index: var(--calcite-z-index-default);
position: absolute;
pointer-events: none;
fill: #{$backgroundColor};
}

.calcite-floating-ui-arrow__stroke {
stroke: theme("borderColor.color.3");
stroke: #{$borderColor};
}
}
37 changes: 23 additions & 14 deletions packages/calcite-components/src/assets/styles/_header.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
/* Shared styles for header elements */
.header {
@apply text-color-2
fill-color-2
m-0
flex
content-between
items-center;
}
@mixin header(
$textColor: "--calcite-color-text-2",
$fontWeight: "--calcite-font-weight-medium",
$spacing: "--calcite-spacing-xxs"
) {
/* Shared styles for header elements */
.header {
color: var(#{$textColor}, var(--calcite-color-text-2));
fill: var(#{$textColor}, var(--calcite-color-text-2));
margin: 0px;
display: flex;
align-content: space-between;
align-items: center;
}

.heading {
@apply m-0 p-0 font-medium;
}
.heading {
margin: 0px;
padding: 0px;
font-weight: var(#{$fontWeight}, var(--calcite-font-weight-medium));
}

.header .heading {
@apply flex-auto p-2;
.header .heading {
flex: 1 1 auto;
padding: var(#{$spacing}, var(--calcite-spacing-xxs));
}
}
8 changes: 8 additions & 0 deletions packages/calcite-components/src/assets/styles/_host.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@
color: var(--calcite-color-text-2);
font-size: var(--calcite-font-size--1);
}

@mixin base-host() {
/* Base ":host" styles for the component */
box-sizing: border-box;
* {
box-sizing: border-box;
}
}
14 changes: 0 additions & 14 deletions packages/calcite-components/src/assets/styles/_shadow.scss

This file was deleted.

21 changes: 9 additions & 12 deletions packages/calcite-components/src/assets/styles/_sortable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@

.calcite-sortable--ghost::before {
content: "";
@apply box-border
border
border-dashed
border-color-brand
bg-foreground-2
absolute
top-0
left-0
bottom-0
right-0
z-default;
box-sizing: border-box;
border-width: var(--calcite-border-width-sm);
border-style: dashed;
border-color: var(--calcite-color-brand);
background-color: var(--calcite-color-foreground-2);
position: absolute;
inset: 0px;
z-index: var(--calcite-z-index);
}

.calcite-sortable--drag {
@apply shadow-2;
box-shadow: var(--calcite-shadow-2);
}
}
26 changes: 0 additions & 26 deletions packages/calcite-components/src/assets/styles/_spacing.scss

This file was deleted.

61 changes: 61 additions & 0 deletions packages/calcite-components/src/assets/styles/_x-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@mixin xButton(
$textColor: "--calcite-color-text-3",
$backgroundColor: "--calcite-color-foreground-2",
$hoverTextColor: "--calcite-color-text-3",
$hoverBackgroundColor: "--calcite-color-foreground-3",
$activeBorderColor: "--calcite-color-brand",
$borderWidth: "--calcite-border-width-md"
) {
.x-button {
appearance: none;
align-content: center;
cursor: pointer;
display: flex;
outline-color: transparent;
align-items: center;
justify-content: center;
margin: 0px;
align-self: center;
color: var(#{$textColor}, var(--calcite-color-text-3));
transition:
color,
background-color,
border-color var(--calcite-animation-timing) ease-in-out 0s,
outline 0s,
outline-offset 0s;
border-width: var(#{$borderWidth}, var(--calcite-border-width-md));
border-radius: 50%;
border-color: transparent;
background-color: var(#{$backgroundColor}, var(--calcite-color-foreground-2));

&:active,
&:hover {
color: var(#{$hoverTextColor});
background-color: var(#{$hoverBackgroundColor}, var(--calcite-color-foreground-3));
}

&:active {
border-style: solid;
border-color: var(#{$activeBorderColor}, var(--calcite-color-brand));
}

& calcite-icon {
color: inherit;
}
}

:host([scale="s"]) .x-button {
inline-size: var(--calcite-spacing-lg);
block-size: var(--calcite-spacing-lg);
}

:host([scale="m"]) .x-button {
inline-size: var(--calcite-size-xxl);
block-size: var(--calcite-size-xxl);
}

:host([scale="l"]) .x-button {
inline-size: var(--calcite-size-xxxl);
block-size: var(--calcite-size-xxxl);
}
}
5 changes: 1 addition & 4 deletions packages/calcite-components/src/assets/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~@esri/calcite-base/dist/_index";
@import "~@esri/calcite-base/dist/index";
@import "~@esri/calcite-design-tokens/dist/scss/index";
@import "~@esri/calcite-design-tokens/dist/scss/core";

Expand All @@ -13,13 +13,10 @@

:root {
@extend %type-vars;
@include floating-ui-base();
@include animation-base();
--calcite-popover-z-index: var(--calcite-z-index-popup);
--calcite-border-radius: var(--calcite-border-radius-round, 4px);
--calcite-border-radius-base: 0;
--calcite-offset-invert-focus: 0; // should be 0 or 1
--calcite-panel-width-multiplier: 1;
--calcite-ui-icon-color: currentColor;

text-rendering: optimizeLegibility;
Expand Down
Loading
Loading