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

Merge upstream 2.14.0 #33

Merged
merged 448 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
448 commits
Select commit Hold shift + click to select a range
a3450a7
move emphasis
claviska Aug 11, 2023
cf543ef
don't hijack key presses in text fields; fixes #1492 (#1504)
claviska Aug 11, 2023
f8c37e0
Fix missing comma in linear-gradient (#1506)
king8fisher Aug 11, 2023
1383ea3
React import paths (#1507)
claviska Aug 11, 2023
8fc5f59
update changelog
claviska Aug 11, 2023
6f08f50
2.7.0
claviska Aug 11, 2023
409ac96
Merge branch 'next' into current
claviska Aug 11, 2023
aeef986
JetBrains IDE Integration (#1512)
break-stuff Aug 14, 2023
b09a48b
fix arg name
claviska Aug 14, 2023
e73e32f
Add docs on setting multiple values in select (#1508)
ak-beam Aug 14, 2023
c743561
update docs
claviska Aug 14, 2023
e298f7e
fix broken tests for shoelace-element (#1516)
KonnorRogers Aug 14, 2023
c380368
Fix NPMDIR config (#1518)
peschee Aug 15, 2023
9cb5ba7
Radio button fix (#1524)
claviska Aug 16, 2023
7ee31be
ignore package.json
claviska Aug 16, 2023
d8de7bc
fix(docs): Inline Form Validation Docs throw error on top level await…
daKmoR Aug 16, 2023
4ee5271
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Aug 16, 2023
9520e85
Update for path changes
nathangray Aug 17, 2023
b2f6499
Fix lint warnings
nathangray Aug 17, 2023
fad76dd
SlTree: separate expand/collapse and selection behaviour in 'single' …
grncdr Aug 18, 2023
c8919ad
prettier
claviska Aug 18, 2023
621aa43
Add HTMLElement to the getTag() return type
nathangray Aug 18, 2023
74c6d3e
fix tree tests; #1521
claviska Aug 18, 2023
b63368d
Merge branch 'next' of github.com:nathangray/shoelace into nathangray…
claviska Aug 18, 2023
402a00d
update docs
claviska Aug 18, 2023
93b2e78
Merge branch 'nathangray-next' into next
claviska Aug 18, 2023
539eade
Update React Wrappers with Refs that work (#1526)
KonnorRogers Aug 18, 2023
a4fc1c5
Submenus (#1527)
claviska Aug 21, 2023
5d72bbd
remove baseUrl from tsconfig for better dev experience (#1530)
KonnorRogers Aug 22, 2023
87837df
remove extra react component wrapper, upgrade to v2 of @lit-labs/reac…
KonnorRogers Aug 22, 2023
87ac077
fix empty attributes in properties table (#1536)
claviska Aug 22, 2023
b311072
use <sl-copy-button> (#1535)
claviska Aug 22, 2023
0238502
fix copy button focus
claviska Aug 22, 2023
44b27e7
fix plop template
claviska Aug 23, 2023
ec17e87
fix component links; closes #1538
claviska Aug 23, 2023
43d1f9e
fix: use verbatimModuleSyntax and isolatedModules (#1534)
KonnorRogers Aug 23, 2023
ae010c3
fix: check `<slot>` elements for assignedElements to allow wrapping f…
KonnorRogers Aug 23, 2023
f30481e
remove unused code path (#1539)
KonnorRogers Aug 23, 2023
b5ef319
update version
claviska Aug 23, 2023
7e4d4c3
2.8.0
claviska Aug 23, 2023
5e6e036
Merge branch 'next' into current
claviska Aug 23, 2023
0cb6aa5
reformat by CEM plugin
claviska Aug 23, 2023
cf195da
fix stuck search
claviska Aug 25, 2023
1867603
log stderr in builds (#1543)
KonnorRogers Aug 25, 2023
ab770c5
fix spacing; #1540 (#1544)
claviska Aug 28, 2023
a2fbe12
update ctrl/tinycolor; fixes #1542 (#1545)
claviska Aug 28, 2023
883cb16
show errors in dev server (#1547)
KonnorRogers Aug 30, 2023
242e8e9
fix web-types reference
break-stuff Sep 8, 2023
8d86f37
clean up messaging
break-stuff Sep 8, 2023
7d6f770
simplify implementation
break-stuff Sep 8, 2023
32342f8
Merge branch 'break-stuff-fix-web-types-reference' into next
claviska Sep 8, 2023
2b5e828
fix: make German translation more consistent + neutral (#1558)
mariohamann Sep 8, 2023
42f8818
remove webtypes
claviska Sep 8, 2023
aa2cf24
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Sep 8, 2023
e6db8c9
update bootstrap icons
claviska Sep 12, 2023
317d567
fix(autoloader): only attempt to register root element if it's shoela…
wes-goulet Sep 13, 2023
c858bc3
update changelog
claviska Sep 13, 2023
3b77c3b
updated react wrapper (#1565)
ajmchambers Sep 14, 2023
1d28e1b
fix: add missing super.disconnectCallback() calls (#1564)
cschuller Sep 14, 2023
4d32979
fixes #1548
claviska Sep 14, 2023
2ed5a4f
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Sep 14, 2023
25dd15b
ONLY-USE: Fix bug: svg url treated as sprite
yringler Sep 20, 2023
a41e4e8
Fixed typo (Alert doc): "take affect" -> "take effect" (#1578)
mfocqueteau Sep 25, 2023
24f7b19
fix words; #1578
claviska Sep 25, 2023
9b96933
fixes #1576
claviska Sep 25, 2023
cbd4336
add support for external modals; fixes #1571 (#1575)
claviska Sep 26, 2023
b7107ac
Merge branch 'only-use-library-for-library' of github.com:yringler/sh…
claviska Sep 26, 2023
c900c2a
Merge branch 'yringler-only-use-library-for-library' into next
claviska Sep 26, 2023
c9f810a
rename private var; #1572
claviska Sep 26, 2023
ed79492
update changelog
claviska Sep 26, 2023
1f2407d
update version
claviska Sep 26, 2023
d56fbb6
2.9.0
claviska Sep 26, 2023
4ee2e46
Merge branch 'next' into current
claviska Sep 26, 2023
fac6e12
update changelog
claviska Sep 26, 2023
a932b4d
Merge branch 'next' into current
claviska Sep 26, 2023
789ba7a
ignore package.json
claviska Sep 27, 2023
cf85d6a
fix localize bug
claviska Sep 27, 2023
566f0e4
comma separate exportparts (#1586)
camskene Oct 2, 2023
87d8263
update changelog
claviska Oct 2, 2023
8748394
add PR
claviska Oct 2, 2023
7500cab
fix focus trapping to respect the currently focused element (#1583)
KonnorRogers Oct 4, 2023
79e939e
add docs for web-types (#1608)
break-stuff Oct 12, 2023
eb6966a
Create zh-cn.ts (#1604)
zhengwhizz Oct 12, 2023
a697b35
update changelog
claviska Oct 12, 2023
236fbd7
Add safe triangle for submenu selection (#1600)
claviska Oct 12, 2023
ad9ca8f
Fire `sl-select` when clicking an element inside a menu-item (#1599)
KonnorRogers Oct 12, 2023
7bf90b6
update deps (all but majors)
claviska Oct 12, 2023
620fda6
typescript + esbuild updates
claviska Oct 12, 2023
85f91b7
lit 3, eslint, lint-stages updates
claviska Oct 12, 2023
c7b53cf
update prettier
claviska Oct 12, 2023
d5ab0fe
update plop, ora, sinon
claviska Oct 12, 2023
7041357
Updated @lit-labs/react to @lit/react now as this is stable
schilchSICKAG Oct 13, 2023
28da45c
Updated @lit-labs/react to @lit/react now as this is stable
schilchSICKAG Oct 13, 2023
28cc38a
Merge branch 'schilchSICKAG-next' into next
claviska Oct 13, 2023
39a0faf
remove whitespace
claviska Oct 13, 2023
ff94ea2
use discussions for features
claviska Oct 16, 2023
2643e4f
Fix `tabbable` performance issues in Chrome / Edge (#1614)
KonnorRogers Oct 16, 2023
5155f02
update changelog
claviska Oct 16, 2023
db333e1
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Oct 16, 2023
6ef246c
Update carousel.md to document the default aspect ratio of 16/9. (#1617)
johnfmorton Oct 16, 2023
3882eb1
remove unused dep
claviska Oct 16, 2023
86df7f6
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Oct 16, 2023
54923ed
update default
claviska Oct 16, 2023
db66bbe
update comments
claviska Oct 16, 2023
4b03675
oh, safari (#1655)
claviska Oct 16, 2023
6e9abc0
update version
claviska Oct 16, 2023
2e2d034
prettier
claviska Oct 16, 2023
8c9f8e6
2.10.0
claviska Oct 16, 2023
6c3f1be
Merge branch 'next' into current
claviska Oct 16, 2023
88f3009
Create hr.ts (#1656)
fountainpen Oct 18, 2023
afe7778
update changelog
claviska Oct 18, 2023
a5404ec
don't block escape; fixes #1607 (#1661)
claviska Oct 18, 2023
b1b54a5
Fix placeholder color in sl-select (#1667)
claviska Oct 19, 2023
eb96e3d
fix details example
claviska Oct 19, 2023
e5da26f
fix empty react index; closes #1659 (#1663)
claviska Oct 19, 2023
8d42e9f
Update angular.md (#1670)
floflausch Oct 20, 2023
0272e3d
prettier
claviska Oct 20, 2023
f28ea9b
update version
claviska Oct 20, 2023
e297633
prettier
claviska Oct 20, 2023
762d0b0
2.11.0
claviska Oct 20, 2023
859861f
Merge branch 'next' into current
claviska Oct 20, 2023
49b42c3
fix script in docs; closes #1670
claviska Oct 23, 2023
f53309b
Update angular.md (#1671)
floflausch Oct 23, 2023
58bf054
fix: multiple slides per page navigation (#1605)
alenaksu Oct 23, 2023
d07f8e0
update changelog
claviska Oct 23, 2023
224bba2
remove ts-check
claviska Oct 23, 2023
265ef71
fix cspell and ts
claviska Oct 23, 2023
296a24c
fix slotted image dimensions
claviska Oct 23, 2023
207a660
update version
claviska Oct 25, 2023
1087fe2
2.11.1
claviska Oct 25, 2023
3cfe96e
Merge branch 'next' into current
claviska Oct 25, 2023
597a06c
fix(carousel): add instance check to isCarouselItem (#1684)
alenaksu Oct 25, 2023
b7a4a22
update changelog
claviska Oct 25, 2023
b9fa2a6
2.11.2
claviska Oct 25, 2023
85824f0
Merge branch 'next' into current
claviska Oct 25, 2023
5e620a8
fix issues with no translation errors for bundled components (#1696)
KonnorRogers Oct 31, 2023
12a45eb
only emit sl-change when you stop dragging (#1689)
KonnorRogers Oct 31, 2023
6590dd4
upgrade jet brains plugin and stop writing to package.json
claviska Nov 2, 2023
468b0b9
Add loading attribute to menu-item
mitchray Nov 2, 2023
8ddef1a
Updates copy button with Bootstrap Icons 1.11 (#1702)
Shrinks99 Nov 3, 2023
2a1f48c
update changelog
claviska Nov 3, 2023
a2b7816
Keep text shown
mitchray Nov 3, 2023
f015dc9
fix form controls to read from property instead of attribute (#1707)
KonnorRogers Nov 7, 2023
5221419
Fix form controls entering / leaving a form (#1708)
KonnorRogers Nov 7, 2023
e786aa8
Fix React .d.ts files to import from valid path; fixes #1713 (#1714)
Coridyn Nov 13, 2023
35c2ad8
Fix nested dialogs (#1711)
KonnorRogers Nov 13, 2023
e0701fe
add two-way binding info back
claviska Nov 13, 2023
13c3e88
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Nov 13, 2023
a1888c6
removes duplicative style declaration in the skeleton component (#1722)
nicklemmon Nov 14, 2023
c3c770b
Add italian translations (#1727)
folini96 Nov 17, 2023
ee18f3a
update changelog
claviska Nov 17, 2023
facb550
prettier
claviska Nov 17, 2023
1564df8
update WTR
claviska Nov 17, 2023
1bf490a
temp disable webkit
claviska Nov 17, 2023
3b2eb9b
re-enable webkit tests
claviska Nov 17, 2023
a36ae4e
update playwright version for webkit
claviska Nov 17, 2023
2b45c54
update playwright install cmd
claviska Nov 17, 2023
3fdbefa
fix
claviska Nov 17, 2023
024c6e2
update deprecated properties
claviska Nov 20, 2023
02ad181
skip because firefox
claviska Nov 20, 2023
d7d9242
skip because ff
claviska Nov 20, 2023
66c5e4c
skip ff
claviska Nov 20, 2023
d99b90d
2.12.0
claviska Nov 20, 2023
80b17d7
Merge branch 'next' into current
claviska Nov 20, 2023
025da5e
Small typo (#1728)
rikardkling Nov 20, 2023
4699f99
Fix 'controlled' typo (#1735)
mattobee Nov 21, 2023
00435ac
more ff test skips
claviska Nov 21, 2023
b6c9b64
restore ff tests
claviska Nov 21, 2023
21e2c7a
try node 20
claviska Nov 21, 2023
ffe492c
revert
claviska Nov 21, 2023
1e57a63
fix a11y error
claviska Nov 21, 2023
15c6733
temporarily disable FF in Web Test Runner
claviska Nov 21, 2023
7fae62b
prettier
claviska Nov 21, 2023
bfa7c4c
Run web test runner with production modules (#1736)
KonnorRogers Nov 21, 2023
1a8403b
Reduce size
mitchray Nov 24, 2023
e2b7327
Improve tooltip accessibility (#1749)
claviska Dec 1, 2023
4864ab8
Fixes `setRangeText()` in `<sl-input>` and `<sl-textarea>` (#1752)
claviska Dec 1, 2023
3e38da2
remove unused style
claviska Dec 1, 2023
dd27db5
Further improve tabbable performance (#1750)
KonnorRogers Dec 1, 2023
b7eccb1
Make sure `<sl-select>` closes when focusing out (#1764)
claviska Dec 6, 2023
0d04376
Merge branch 'menu-item-loading' of github.com:mitchray/shoelace into…
claviska Dec 6, 2023
3de99ee
Add .d.ts files to theme style.js files (#1767)
kwivix Dec 6, 2023
bb20126
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
claviska Dec 6, 2023
e1417b8
prettier
claviska Dec 6, 2023
59ef323
moar prettier
claviska Dec 6, 2023
caae941
No more pipes (#1771)
claviska Dec 6, 2023
0080ff9
fix trimPipes
claviska Dec 6, 2023
1710cfb
update; #1700
claviska Dec 6, 2023
b4ed398
Account for elements with tabbable controls (#1755)
KonnorRogers Dec 8, 2023
7891dbe
Add missing extensions (#1770)
KonnorRogers Dec 8, 2023
d909f4f
fix(spinner): fix spinner animation, prevent spinner resize in flex c…
michaelwarren1106 Dec 13, 2023
75c45a2
update settings
claviska Dec 13, 2023
a21ab1d
update changelog; #1787
claviska Dec 13, 2023
f5f4f9a
reformat comment
claviska Dec 13, 2023
dd483c0
fix typo
claviska Dec 13, 2023
92bde9c
fixes #1730 (#1820)
claviska Jan 23, 2024
b79c727
fixes #1805 (#1821)
claviska Jan 23, 2024
6b9e78f
fixes #1795 (#1822)
claviska Jan 23, 2024
e231f8a
fixes #1823 (#1826)
claviska Jan 23, 2024
eb39610
fixes #1779 (#1828)
claviska Jan 23, 2024
95881b8
fix(color-picker): add missing percent signs (#1831)
alenaksu Jan 23, 2024
ac5e2d2
update changelog
claviska Jan 23, 2024
1a77e60
Add Radio Group `help-text` slot documentation (#1818)
clintcs Jan 23, 2024
b1908d7
add vue types (#1797)
break-stuff Jan 23, 2024
9f640aa
fix(carousel): fix issues with safari (#1748)
alenaksu Jan 23, 2024
478c8bd
update changelog; #1748
claviska Jan 23, 2024
7732558
fix dialog focus trapping behavior (#1813)
KonnorRogers Jan 23, 2024
caf4706
Fixing the initial values on doc (#1785)
YassSSH Jan 23, 2024
1d626c1
internals: refactor stop animations resolve mechanism (#1780)
Matin297 Jan 23, 2024
0a319c3
Use close watcher when supported in place of escape key handlers (#1788)
lukewarlow Jan 23, 2024
cb15749
update changelog
claviska Jan 23, 2024
8473d06
prettier
claviska Jan 23, 2024
e2a6448
ignore types
claviska Jan 23, 2024
afc6dc1
whitespace
claviska Jan 23, 2024
1f87f42
don't ignore
claviska Jan 23, 2024
e37139b
remove old test
claviska Jan 23, 2024
6751b21
remove unused import
claviska Jan 23, 2024
beea96b
2.13.0
claviska Jan 23, 2024
6f0cd9a
Merge branch 'next' into current
claviska Jan 23, 2024
a4c49e9
no more tomatoes (#1836)
claviska Jan 24, 2024
83fe1ff
2.13.1
claviska Jan 24, 2024
aa6be4d
Merge branch 'next' into current
claviska Jan 24, 2024
380d56f
remove html from getTextLabel() (#1840)
claviska Feb 8, 2024
a5e9b94
fix animated image documentation for CSS part (#1838)
KonnorRogers Feb 8, 2024
9451c3b
add switch help text (#1800)
clintcs Feb 8, 2024
e6d3d83
Add checkbox help text (#1860)
claviska Feb 8, 2024
4185430
locale: add Arabic translation (#1852)
ahmadalfy Feb 8, 2024
a36bbe2
update changelog
claviska Feb 8, 2024
dafb35c
update changelog
claviska Feb 8, 2024
7e38e93
fix(carousel): remove check for scrolling (#1862)
alenaksu Feb 9, 2024
9ee1617
update changelog
claviska Feb 9, 2024
775f301
fix help text a11y
claviska Feb 9, 2024
02ce4db
Import styles more efficiently (#1861)
claviska Feb 9, 2024
1bf3e5a
add missing import to template
claviska Feb 9, 2024
7571f8c
remove styles from template
claviska Feb 9, 2024
6bc06d5
update install event from `postinstall` to `prepare` (#1868)
break-stuff Feb 12, 2024
f9a7356
update lock file
claviska Feb 15, 2024
1056a10
update version
claviska Feb 15, 2024
f3be768
2.14.0
claviska Feb 15, 2024
47d7f09
Merge branch 'next' into current
claviska Feb 15, 2024
df9f1e9
Merge remote-tracking branch 'upstream/current' into next
CrookedGrin Mar 7, 2024
26ae000
Updated package-lock
CrookedGrin Mar 7, 2024
a33ac26
Working locally
CrookedGrin Mar 7, 2024
5f01571
Update `<sl-spinner>` merge conflict changes after reviewing locally
slhinyc Mar 7, 2024
93bacd4
Interim fix for Checkbox label alignment; Add back checkbox help text…
slhinyc Mar 7, 2024
5291024
Replace Checkbox `description` slot with `help-text`
slhinyc Mar 8, 2024
01b1c88
Re-add Switch and Menu Item examples missed during merge
slhinyc Mar 8, 2024
ad1325d
Commenting out unused methods
CrookedGrin Mar 11, 2024
ccc4347
Prettier
CrookedGrin Mar 11, 2024
b05bb1e
Update spinner.test.ts
CrookedGrin Mar 11, 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
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npx playwright install-deps
- run: npx playwright install --with-deps
- run: npm ci
- run: npm run verify
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
_site
.cache
.DS_Store
package.json
package-lock.json
cdn
dist
docs/assets/images/sprite.svg
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"cSpell.words": ["Teamshares"],
"html.suggest.html5": true,
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"monospace",
"mousedown",
"mousemove",
"mouseout",
"mouseup",
"multiselectable",
"nextjs",
Expand Down
4 changes: 4 additions & 0 deletions custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default {
}
}
},

{
name: 'shoelace-react-event-names',
analyzePhase({ ts, node, moduleDoc }) {
Expand All @@ -166,6 +167,7 @@ export default {
}
}
},

{
name: 'shoelace-translate-module-paths',
packageLinkPhase({ customElementsManifest }) {
Expand Down Expand Up @@ -202,6 +204,7 @@ export default {
});
}
},

// Generate custom VS Code data
customElementVsCodePlugin({
outdir,
Expand All @@ -216,6 +219,7 @@ export default {
customElementJetBrainsPlugin({
outdir: './dist',
excludeCss: true,
packageJson: false,
referencesTemplate: (_, tag) => {
return {
name: 'Documentation',
Expand Down
149 changes: 72 additions & 77 deletions docs/_includes/component.njk
Original file line number Diff line number Diff line change
@@ -1,75 +1,62 @@
{% extends "default.njk" %}

{# Find the component based on the `tag` front matter #}
{% set component =
getComponent('sl-' + page.fileSlug) %}
{% set component = getComponent('sl-' + page.fileSlug) %}

{% block content %}
{# Determine the badge variant for code status #}
{% if
component.status == 'stable' %}
{% if component.status == 'stable' %}
{% set badgeVariant = 'primary' %}
{% elseif component.status == 'experimental' %}
{% set badgeVariant = 'warning' %}
{% elseif component.status == 'planned' %}
{% set badgeVariant = 'neutral' %}
{% elseif
component.status == 'deprecated' %}
{% elseif component.status == 'deprecated' %}
{% set badgeVariant = 'danger' %}
{% else %}
{% set badgeVariant = 'neutral' %}
{% endif %}

{# Determine the badge variant for pattern status #}
{% if component.pattern.length %}
{% if component.pattern == 'stable' %}
{% set patternBadgeVariant = 'primary' %}
{% elseif component.pattern == 'in review' %}
{% set
patternBadgeVariant = 'neutral' %}
{% set patternBadgeVariant = 'neutral' %}
{% else %}
{% set patternBadgeVariant = 'danger' %}
{% endif %}
{% else %}
{% set
patternBadgeVariant = 'danger' %}
{% set patternBadgeVariant = 'danger' %}
{% endif %}

{# Determine the badge variant for figma status #}
{% if
component.figma.length %}
{% if component.figma.length %}
{% if component.figma == 'ready' %}
{% set figmaBadgeVariant = 'success' %}
{% elseif
component.figma == 'draft' %}
{% elseif component.figma == 'draft' %}
{% set figmaBadgeVariant = 'warning' %}
{% else %}
{% set figmaBadgeVariant = 'danger' %}
{% endif %}
{% else %}
{% set figmaBadgeVariant = 'danger' %}
{% endif %}

{# Header #}
<header class="component-header">
<div class="component-header__info">
<sl-tag variant="neutral" size="small" pill> Since Shoelace {{component.since or '?' }}
<sl-tag variant="neutral" size="small" pill>
Since Shoelace {{component.since or '?' }}
</sl-tag>
<sl-tag size="small" variant="{{ badgeVariant }}" pill style="text-transform: capitalize">
Code {{ component.status }}
<sl-tag size="small" variant="{{ badgeVariant }}" pill style="text-transform: capitalize" >
Code {{ component.status }}
</sl-tag>
<sl-tag
size="small"
variant="{{ patternBadgeVariant }}"
pill
style="text-transform: capitalize"
class="{% if component.pattern == 'hide' %}hidden{% endif %}"
>
Pattern {{ component.pattern or 'Tentative' }}
<sl-tag size="small" variant="{{ patternBadgeVariant }}" pill style="text-transform: capitalize" class="{% if component.pattern == 'hide' %}hidden{% endif %}" >
Pattern {{ component.pattern or 'Tentative' }}
</sl-tag>
<sl-tag
size="small"
variant="{{ figmaBadgeVariant }}"
pill
style="text-transform: capitalize"
class="{% if component.figma == 'hide' %}hidden{% endif %}"
>
Figma {{ component.figma or 'Needed' }}
<sl-tag size="small" variant="{{ figmaBadgeVariant }}" pill style="text-transform: capitalize" class="{% if component.figma == 'hide' %}hidden{% endif %}" >
Figma {{ component.figma or 'Needed' }}
</sl-tag>
</div>
<h1>{{ component.name | classNameToComponentName }}</h1>
Expand All @@ -87,20 +74,20 @@ component.figma == 'draft' %}

{# Main Markdown Content #}
{{ content | safe }}

{# Guidelines #}
{% if guidelines %}
{% if
guidelines %}
<h2>Guidelines</h2>
<div id="guidelines">
{{ guidelines | markdown | safe }}
</div>
<div id="guidelines">{{ guidelines | markdown | safe }}</div>
{% endif %}
{# Importing #}
<h2>Importing</h2>
<p>
If you're using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any
of the following snippets to <a href="/getting-started/installation#cherry-picking">cherry pick</a> this component.
</p>
If you're using the autoloader or the traditional loader, you can ignore this
section. Otherwise, feel free to use any of the following snippets to
<a href="/getting-started/installation#cherry-picking">cherry pick</a> this
component.
</p>

<sl-tab-group>
<sl-tab slot="nav" panel="script">Script</sl-tab>
Expand All @@ -110,29 +97,41 @@ component.figma == 'draft' %}

<sl-tab-panel name="script">
<p>
To import this component from <a href="https://www.jsdelivr.com/package/npm/@shoelace-style/shoelace">the CDN</a>
using a script tag:
</p>
To import this component from
<a href="https://www.jsdelivr.com/package/npm/@shoelace-style/shoelace"
>the CDN</a
>
using a script tag:
</p>
<pre><code class="language-html">&lt;script type=&quot;module&quot; src=&quot;https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@{{ meta.version }}/{{ meta.cdndir }}/{{ component.path }}&quot;&gt;&lt;/script&gt;</code></pre>
</sl-tab-panel>

<sl-tab-panel name="import">
<p>
To import this component from <a href="https://www.jsdelivr.com/package/npm/@shoelace-style/shoelace">the CDN</a>
using a JavaScript import:
</p>
To import this component from
<a href="https://www.jsdelivr.com/package/npm/@shoelace-style/shoelace"
>the CDN</a
>
using a JavaScript import:
</p>
<pre><code class="language-js">import 'https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@{{ meta.version }}/{{ meta.cdndir }}/{{ component.path }}';</code></pre>
</sl-tab-panel>

<sl-tab-panel name="bundler">
<p>
To import this component using <a href="{{ rootUrl('/getting-started/installation#bundling') }}">a bundler</a>:
</p>
To import this component using
<a href="{{ rootUrl('/getting-started/installation#bundling') }}"
>a bundler</a
>:
</p>
<pre><code class="language-js">import '@shoelace-style/shoelace/{{ meta.npmdir }}/{{ component.path }}';</code></pre>
</sl-tab-panel>

<sl-tab-panel name="react">
<p>To import this component as a <a href="/frameworks/react">React component</a>:</p>
<p>
To import this component as a
<a href="/frameworks/react">React component</a>:
</p>
<pre><code class="language-js">import {{ component.name }} from '@shoelace-style/shoelace/{{ meta.npmdir }}/react/{{ component.tagNameWithoutPrefix }}';</code></pre>
</sl-tab-panel>
</sl-tab-group>
Expand Down Expand Up @@ -166,15 +165,17 @@ component.figma == 'draft' %}
<em>Learn more about <a href="{{ rootUrl('/getting-started/usage#slots') }}">using slots</a>.</em>
</p>
{% endif %}

{# Properties #}
{% if component.properties.length %}
<h2>Properties</h2>
{% if unusedProperties.length %}
<div role="alert" class="callout callout--warning">
<p>
<strong>Note</strong>: The following appear as options in the Properties table but are currently not part of the
Teamshares Design System. Please check with the design team before using these options:
</p>
<strong>Note</strong>: The following appear as options in the Properties
table but are currently not part of the Teamshares Design System. Please
check with the design team before using these options:
</p>
{{ unusedProperties | markdown | safe }}
</div>
{% endif %}
Expand All @@ -198,7 +199,8 @@ component.figma == 'draft' %}
<td>
<code class="nowrap">{{ prop.name }}</code>
{% if prop.attribute | length > 0 %}
{% if prop.attribute != prop.name %}
{% if prop.attribute != prop.name
%}
<br/>
<sl-tooltip content="This attribute is different from its property">
<small>
Expand All @@ -210,17 +212,15 @@ component.figma == 'draft' %}
{% endif %}
{% endif %}
</td>
<td>
{{ prop.description | markdownInline | safe }}
</td>
<td>{{ prop.description | markdownInline | safe }}</td>
<td style="text-align: center">
{% if prop.reflects %}
<sl-icon label="yes" name="check-lg"></sl-icon>
{% endif %}
</td>
<td>
{% if prop.type.text %}
<code>{{ prop.type.text | markdownInline | safe }}</code>
<code>{{ prop.type.text | trimPipes | markdownInline | safe }}</code>
{% else %} - {% endif %}
</td>
<td>
Expand All @@ -235,9 +235,8 @@ component.figma == 'draft' %}
<code>updateComplete</code>
</td>
<td>
A read-only promise that resolves when the component has
<a href="/getting-started/usage?#component-rendering-and-updating">finished updating</a>.
</td>
A read-only promise that resolves when the component has <a href="/getting-started/usage?#component-rendering-and-updating">finished updating</a>.
</td>
<td></td>
<td></td>
<td></td>
Expand All @@ -246,12 +245,10 @@ component.figma == 'draft' %}
</table>

<p>
<em
>Learn more about
<a href="{{ rootUrl('/getting-started/usage#attributes-and-properties') }}">attributes and properties</a>.</em
>
<em>Learn more about <a href="{{ rootUrl('/getting-started/usage#attributes-and-properties') }}" >attributes and properties</a >.</em>
</p>
{% endif %}

{# Events #}
{% if component.events.length %}
<h2>Events</h2>
Expand All @@ -277,7 +274,7 @@ component.figma == 'draft' %}
<td>{{ event.description | markdownInline | safe }}</td>
<td>
{% if event.type.text %}
<code>{{ event.type.text }}</code>
<code>{{ event.type.text | trimPipes }}</code>
{% else %} - {% endif %}
</td>
</tr>
Expand All @@ -289,6 +286,7 @@ component.figma == 'draft' %}
<em>Learn more about <a href="{{ rootUrl('/getting-started/usage#events') }}">events</a>.</em>
</p>
{% endif %}

{# Methods #}
{% if component.methods.length %}
<h2>Methods</h2>
Expand All @@ -312,7 +310,7 @@ component.figma == 'draft' %}
{% if method.parameters.length %}
<code>
{% for param in method.parameters %}
{{ param.name }}: {{ param.type.text }}
{{ param.name }}: {{ param.type.text | trimPipes }}
{% if not loop.last %},{% endif %}
{% endfor %}
</code>
Expand All @@ -327,6 +325,7 @@ component.figma == 'draft' %}
<em>Learn more about <a href="{{ rootUrl('/getting-started/usage#methods') }}">methods</a>.</em>
</p>
{% endif %}

{# Custom Properties #}
{% if component.cssProperties.length %}
<h2>Custom Properties</h2>
Expand All @@ -353,12 +352,10 @@ component.figma == 'draft' %}
</table>

<p>
<em
>Learn more about
<a href="{{ rootUrl('/getting-started/usage#custom-properties') }}">customizing CSS custom properties</a>.</em
>
<em>Learn more about <a href="{{ rootUrl('/getting-started/usage#custom-properties') }}">customizing CSS custom properties</a>.</em>
</p>
{% endif %}

{# CSS Parts #}
{% if component.cssParts.length %}
<h2>Parts</h2>
Expand All @@ -383,11 +380,10 @@ component.figma == 'draft' %}
</table>

<p>
<em
>Learn more about <a href="{{ rootUrl('/getting-started/customizing/#css-parts') }}">customizing CSS parts</a>.</em
>
<em>Learn more about <a href="{{ rootUrl('/getting-started/customizing/#css-parts') }}">customizing CSS parts</a>.</em>
</p>
{% endif %}

{# Animations #}
{% if component.animations.length %}
<h2>Animations</h2>
Expand All @@ -412,11 +408,10 @@ component.figma == 'draft' %}
</table>

<p>
<em
>Learn more about <a href="{{ rootUrl('/getting-started/customizing#animations') }}">customizing animations</a>.</em
>
<em>Learn more about <a href="{{ rootUrl('/getting-started/customizing#animations') }}">customizing animations</a>.</em>
</p>
{% endif %}

{# Dependencies #}
{% if component.dependencies.length %}
<h2>Dependencies</h2>
Expand Down
Loading
Loading