Cory LaViska
9ee1617696
update changelog
2024-02-09 09:33:14 -05:00
Cory LaViska
dafb35c6e2
update changelog
2024-02-08 15:20:18 -05:00
Cory LaViska
a36bbe2fc4
update changelog
2024-02-08 15:19:51 -05:00
Cory LaViska
e6d3d8317a
Add checkbox help text ( #1860 )
...
* add help text to sl-checkbox to match sl-switch
* add missing import
2024-02-08 14:51:00 -05:00
Cory LaViska
380d56fa40
remove html from getTextLabel() ( #1840 )
2024-02-08 12:42:59 -05:00
Cory LaViska
a4c49e95a9
no more tomatoes ( #1836 )
2024-01-24 10:29:45 -05:00
Cory LaViska
cb15749500
update changelog
2024-01-23 11:08:57 -05:00
Konnor Rogers
773255881b
fix dialog focus trapping behavior ( #1813 )
...
* fix dialog focus trapping behavior
* add changelog entry
* prettier
* remove duplicate 'disabled' check in tabbable
* fix dialog stuff
* prettier
* fix logic around checking active elements
* prettier
* prettier
* remove cusrtom-elements.mjs
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2024-01-23 10:45:20 -05:00
Cory LaViska
478c8bdf69
update changelog; #1748
2024-01-23 10:42:46 -05:00
Cory LaViska
ac5e2d2d43
update changelog
2024-01-23 10:19:07 -05:00
Cory LaViska
e231f8a4a1
fixes #1823 ( #1826 )
2024-01-23 10:17:01 -05:00
Cory LaViska
6b9e78f05d
fixes #1795 ( #1822 )
2024-01-23 10:16:38 -05:00
Cory LaViska
b79c72725b
fixes #1805 ( #1821 )
2024-01-23 10:15:58 -05:00
Cory LaViska
92bde9c66b
fixes #1730 ( #1820 )
2024-01-23 10:15:33 -05:00
Cory LaViska
a21ab1d044
update changelog; #1787
2023-12-13 12:00:37 -05:00
Konnor Rogers
7891dbef93
Add missing extensions ( #1770 )
...
* fix(typescript): add missing extension to imports in typescript
This is required for the types to work with the new
`--module-resolution=node16`.
The list of places to fix was obtained by a crude script:
```sh
rg -g'**/*.ts' -g'!**/*.test.ts' ' from\s+.\.' | rg -v '\.js'
```
References #1765
* add missing extensions
* revert tsconfig
* prettier
* fix test files for NodeNext
* prettier
* changelog entry
* prettier
* prettier
* prettier
---------
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2023-12-08 12:30:31 -05:00
Konnor Rogers
b4ed398240
Account for elements with tabbable controls ( #1755 )
...
* account for elements with tabbable controls
* prettier
* add changelog entry
* prettier
2023-12-08 12:10:00 -05:00
Cory LaViska
1710cfb8bc
update; #1700
2023-12-06 17:06:18 -05:00
Cory LaViska
b7eccb1bff
Make sure `<sl-select>` closes when focusing out ( #1764 )
...
* fixes #1763
* fix comment
* 🤷🏻♂️
* whatever wtr
2023-12-06 11:58:49 -05:00
Konnor Rogers
dd27db5196
Further improve tabbable performance ( #1750 )
...
* improve tabbable performance
* improve tabbable performance
* add PR #
* prettier
* change to getSlottedChildrenOutsideRootElement
* prettier
2023-12-01 12:06:16 -05:00
Cory LaViska
4864ab808d
Fixes `setRangeText()` in `<sl-input>` and `<sl-textarea>` ( #1752 )
...
* fix setSelectionRange(); fixes #1746
* remove comment
* remove console.log
2023-12-01 10:06:48 -05:00
Cory LaViska
e2b7327d98
Improve tooltip accessibility ( #1749 )
...
* always close on escape, even when not focused; #1734
* use fallbacks instead of defaults
* add words
* add safe trapezoids / hover bridge; fixes #1734
* oh, webkit
* remove unused import
* cleanup just in case
2023-12-01 10:02:46 -05:00
Cory LaViska
ee18f3a449
update changelog
2023-11-17 09:51:21 -05:00
Konnor Rogers
35c2ad886d
Fix nested dialogs ( #1711 )
...
* fix nested dialog focus
* fix nested dialog focus
* fix nested dialog focus
* prettier
* remove index.html
* fix tests
* prettier
2023-11-13 14:13:42 -05:00
Konnor Rogers
5221419816
Fix form controls entering / leaving a form ( #1708 )
...
* fix dynamic form controls
* update comment
* add form.checkValidity()
* prettier
2023-11-07 10:39:57 -05:00
Konnor Rogers
f015dc9169
fix form controls to read from property instead of attribute ( #1707 )
...
* fix form controls to read from properties and attributes
* update changelog
* prettier
* update changelog
* prettier
* small comment fix
2023-11-07 10:28:01 -05:00
Cory LaViska
2a1f48c332
update changelog
2023-11-03 10:25:59 -04:00
Konnor Rogers
12a45eb65d
only emit sl-change when you stop dragging ( #1689 )
...
* only emit sl-change when you stop dragging
* only emit sl-change when you stop dragging
* prettier
* add changelog entry
* update changelog
* update changelog
* update changelog
2023-10-31 14:09:10 -04:00
Cory LaViska
b7a4a228d6
update changelog
2023-10-25 13:08:51 -04:00
Cory LaViska
207a660738
update version
2023-10-25 10:34:17 -04:00
Cory LaViska
d07f8e01ad
update changelog
2023-10-23 11:00:11 -04:00
Cory LaViska
f28ea9b834
update version
2023-10-20 09:07:22 -04:00
Cory LaViska
e5da26fe6d
fix empty react index; closes #1659 ( #1663 )
2023-10-19 10:30:16 -04:00
Cory LaViska
b1b54a5a34
Fix placeholder color in sl-select ( #1667 )
...
* fix placeholder color in sl-select
* add issue number
2023-10-19 09:33:09 -04:00
Cory LaViska
a5404ecab0
don't block escape; fixes #1607 ( #1661 )
2023-10-18 13:42:37 -04:00
Cory LaViska
afe7778f89
update changelog
2023-10-18 13:25:43 -04:00
Cory LaViska
6e9abc0226
update version
2023-10-16 12:58:26 -04:00
Cory LaViska
5155f02dbf
update changelog
2023-10-16 12:32:14 -04:00
Cory LaViska
ff94ea2e0c
use discussions for features
2023-10-16 11:23:36 -04:00
Christian Schilling
7041357bf5
Updated @lit-labs/react to @lit/react now as this is stable
2023-10-13 09:38:05 +02:00
Cory LaViska
85f91b7785
lit 3, eslint, lint-stages updates
2023-10-12 13:29:15 -04:00
Konnor Rogers
ad9ca8fdb5
Fire `sl-select` when clicking an element inside a menu-item ( #1599 )
...
* Fire sl-select when clicking an element inside a menu-item
* changelog + remove unused code
* prettier
* prettier
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2023-10-12 12:13:00 -04:00
Cory LaViska
236fbd7109
Add safe triangle for submenu selection ( #1600 )
...
* add safe triangle; fixes #1550
* make z-index relative to submenu
* refactor submenu properties
2023-10-12 12:03:41 -04:00
Cory LaViska
a697b356ac
update changelog
2023-10-12 12:00:05 -04:00
Konnor Rogers
7500cabc58
fix focus trapping to respect the currently focused element ( #1583 )
...
* fix focus trapping to respect the currently focused element
* prettier
* remove index.html
* fix activeElements
* prettier
* update changelog
* prettier
2023-10-04 15:10:38 -04:00
Cory LaViska
8748394f54
add PR
2023-10-02 09:06:41 -05:00
Cory LaViska
87d82639f8
update changelog
2023-10-02 09:06:11 -05:00
Cory LaViska
cf85d6af41
fix localize bug
2023-09-27 13:03:35 -04:00
Cory LaViska
fac6e12b4e
update changelog
2023-09-26 09:55:21 -04:00
Cory LaViska
1f2407d673
update version
2023-09-26 09:31:12 -04:00
Cory LaViska
ed7949261e
update changelog
2023-09-26 09:06:48 -04:00
Cory LaViska
b7107ace1b
Merge branch 'only-use-library-for-library' of github.com:yringler/shoelace into yringler-only-use-library-for-library
2023-09-26 09:02:24 -04:00
Cory LaViska
cbd4336773
add support for external modals; fixes #1571 ( #1575 )
2023-09-26 08:50:11 -04:00
Yehuda Ringler
25dd15b92c
ONLY-USE: Fix bug: svg url treated as sprite
2023-09-20 16:43:26 -04:00
Cory LaViska
4d3297937a
fixes #1548
2023-09-14 12:08:05 -04:00
Cory LaViska
c858bc3723
update changelog
2023-09-13 11:51:50 -04:00
Cory LaViska
e6db8c953a
update bootstrap icons
2023-09-12 12:09:29 -04:00
Cory LaViska
a2fbe121c3
update ctrl/tinycolor; fixes #1542 ( #1545 )
2023-08-28 09:39:16 -04:00
Cory LaViska
ab770c566e
fix spacing; #1540 ( #1544 )
2023-08-28 09:27:57 -04:00
Cory LaViska
b5ef3191b7
update version
2023-08-23 12:53:47 -04:00
Konnor Rogers
ae010c333b
fix: check `<slot>` elements for assignedElements to allow wrapping focus-trapped elements ( #1537 )
...
* fix: internal logic for tabbable checks slotted elements
* prettier
* add better note for generators
* prettier
* fix tests
* prettier
* prettier
* fix tabbable test for safari
* prettier
* Update src/internal/tabbable.ts
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
* Update src/internal/modal.ts
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
* Update src/internal/tabbable.ts
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2023-08-23 11:43:48 -04:00
Konnor Rogers
43d1f9ee7a
fix: use verbatimModuleSyntax and isolatedModules ( #1534 )
...
* feat: use verbatimModuleSyntax and isolatedModules
* prettier
* remove newline
* prettier
2023-08-23 10:34:40 -04:00
Konnor Rogers
87837df35c
remove extra react component wrapper, upgrade to v2 of @lit-labs/react ( #1531 )
...
* remove extra react wrapper, upgrade to v2 of @lit-labs/react, call define in module.
* add changelog entry
* prettier
2023-08-22 11:26:54 -04:00
Cory LaViska
a4fc1c5b44
Submenus ( #1527 )
...
* [RFC] Proof-of-concept commit for submenu support
This is a Request For Comments to seek directional guidance towards
implementing the submenu slot of menu-item.
Includes:
- SubmenuController to manage event listeners on menu-item.
- Example usage in menu-item documentation.
- Trivial tests to check rendering.
Outstanding questions include:
- Accessibility concerns. E.g. where to handle 'ArrowRight',
'ArrowLeft'?
- Should selection of menu-item denoting submenu be possible or
customizable?
- How to parameterize contained popup?
- Implementation concerns:
- Use of ref / id
- delegation of some rendering to the controller
- What to test
Related to [#620 ](https://github.com/shoelace-style/shoelace/issues/620 ).
* Update submenu-controller.ts
Removed extraneous `console.log()`.
* PoC working of ArrowRight to focus on submenu.
* Revert "PoC working of ArrowRight to focus on submenu."
(Didn't mean to publish this.)
This reverts commit be04e9a221
.
* [WIP] Submenu WIP continues.
- Submenus now close on change-of-focus, not a timeout.
- Keyboard navigation support added.
- Skidding fix for better alignment.
- Submenu documentation moved to Menu page.
- Tests for accessibility, right and left arrow keys.
* Cleanup: Removed dead code and dead code comments.
* style: Eslint warnings and errors fixed. npm run verify now passes.
* fix: 2 changes to menu / submenu on-click behavior:
1. Close submenu on click explicitly, so this occurs even if the menu is
not inside of an sl-dropdown.
2. In menu, ignore clicks that do not explicitly target a menu-item.
Clicks that were on (e.g. a menu-border) were emitting select events.
* fix: Prevent menu's extraneous Enter / space key propagation.
Menu's handleKeyDown calls item.click (to emit the selection).
Propagating the keyboard event on Enter / space would the cause re-entry
into a submenu, so prevent the needless propagation.
* Submenu tweaks ...
- 100 ms delay when opening submenus on mouseover
- Shadows added
- Distance added to popup to have submenus overlap menu slightly.
* polish up submenu stuff
* stay highlighted when submenu is open
* update changelog
* resolve feedback
---------
Co-authored-by: Bryce Moore <bryce.moore@gmail.com>
2023-08-21 17:26:41 -04:00
Konnor Rogers
539eaded73
Update React Wrappers with Refs that work ( #1526 )
...
* fix react types for refs
* fix displayName
* fix displayName]
* attempt to fix typings for React refs
* fix bad type
* prettier
* add changelog entry
* prettier
2023-08-18 13:31:50 -04:00
Cory LaViska
74c6d3ee36
fix tree tests; #1521
2023-08-18 11:20:14 -04:00
Cory LaViska
9cb5ba7ac1
Radio button fix ( #1524 )
...
* fix formatting
* fix radio button spacing; fixes #1523
2023-08-16 14:51:46 -04:00
Cory LaViska
8fc5f598d0
update changelog
2023-08-11 13:13:00 -04:00
Cory LaViska
1383ea3fe8
React import paths ( #1507 )
...
* fix react imports in examples
* move types to definition files
* update changelog
* update changelog
2023-08-11 13:09:44 -04:00
Cory LaViska
cf543ef335
don't hijack key presses in text fields; fixes #1492 ( #1504 )
2023-08-11 11:25:46 -04:00
Cory LaViska
c36df5ecc1
<sl-copy> ( #1483 )
...
* copy updates
* Update docs/pages/components/copy.md
Co-authored-by: Thomas Allmer <d4kmor@gmail.com>
* unwrap and fix case
* copy button updates
* use bs icon
* add parts, hoist, and improve parsing a bit
* update docs
* remove comment
---------
Co-authored-by: Thomas Allmer <d4kmor@gmail.com>
2023-08-11 10:27:34 -04:00
Cory LaViska
458def7830
update bootstrap icons and fix license
2023-08-10 12:59:44 -04:00
Cory LaViska
cb5f670909
update changelog
2023-08-09 15:40:36 -04:00
Konnor Rogers
31ef2f7929
remove side-effects key, update React docs for cherry-picking ( #1485 )
...
* remove side-effects, update React docs for cherry-picking
* prettier
* add PR #
* prettier
* fix react import paths
* Update docs/pages/frameworks/react.md
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
* add colons to imports
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2023-08-07 13:20:34 -04:00
Cory LaViska
dcbbc55f28
fix up/down focus in dropdown; closes #1472 ( #1481 )
2023-08-01 14:05:11 -04:00
Cory LaViska
9736f053d9
update version
2023-07-31 15:15:54 -04:00
Cory LaViska
5b83d4d1b0
update changelog
2023-07-31 14:00:57 -04:00
Cory LaViska
0f90dd0f54
update changelog
2023-07-25 22:20:13 -04:00
Ben Anderson
262cbc9a22
Add entry to changelog for types for react-wrapped elements ( #1464 )
2023-07-25 22:18:54 -04:00
Konnor Rogers
3a61d20d93
Create non-auto-registering routes ( #1450 )
...
* initial attempt at not auto defining
* add files with -
* continued work on removing auto-define
* fix component definitions
* update with new tag stuff
* fix lots of things
* fix improper scoped elements
* working through side effects
* continued react wrapper work
* update changelog
* formatting
* fixes
* update changelog
* lint / formatting
* fix version injection
* fix version injection, work on test
* fix version injection, work on test
* fix merge conflicts
* fix jsdoc null issue
* fix templates
* use exports
* working on tests
* working on registration mocking
* fix customElements test
* linting
* fix some test stuff
* clean up test
* clean up comment
* rename scopedElements to dependencies
* linting / formatting
* linting / formatting
* mark all packages external and still bundle
* set bundle false
* set bundle true
* dont minify
* fix merge conflicts
* use built shoelace-element
* fix lint errors
* prettier
* appease eslint
* appease eslint gods
* appease eslint gods
* appease eslint gods
* appease eslint gods
* add shoelace-autoloader
* move it all into 1 function
* add exportmaps note
* prettier
* add jsdelivr entrypoint
* read as utf8
* update docs with .component.js importS
* prettier
2023-07-24 13:00:07 -04:00
Cory LaViska
95f4f87eb8
update changelog
2023-07-19 15:06:25 -04:00
Cory LaViska
201ff4efc5
fix escape key in dialog/drawer; closes #1457
2023-07-18 12:37:52 -04:00
Cory LaViska
e8634e4178
Popup virtual elements ( #1449 )
...
* 1433: POC for comments (+ fix build.watch())
* 1433: consolidate virtualAnchor into anchor
* add virtual element examples
* update changelog
---------
Co-authored-by: Marko <marko@modelcitizen.com>
2023-07-13 16:49:57 -04:00
Cory LaViska
e1ca7d1f59
Lit a11y update ( #1444 )
...
* update eslint-plugin-lit-a11y to latest
* update eslint deps
* remove aria- and role attribs from slots; closes #1422
2023-07-12 11:12:15 -04:00
Konnor Rogers
82446e2114
Add modal tab tracking ( #1403 )
...
* add modal tab tracking
* prettier
* sort by tabindex
* sort by tabindex
* add a dialog test case for shadow roots
* add a changelog note
* add a changelog note
* prettier + test fixes
* prettier + test fixes
2023-07-07 15:32:23 -04:00
Konnor Rogers
a4f0ae9088
fix: valueAsDate now falls back to native implementation ( #1399 )
...
* fix: valueAsDate now falls back to native implementation
* changelog
* prettier
* prettier
2023-07-07 13:51:22 -04:00
Cory LaViska
fe3906f766
Don't steal focus when removing focused tree items ( #1430 )
...
* don't steal focus when removing focused tree items; #1428
* update PR link
2023-07-06 10:36:41 -04:00
Cory LaViska
c9e644f3fc
Allow selecting menu items with space ( #1429 )
...
* allow selecting menu items with space; #1423
* update PR
2023-07-06 10:36:29 -04:00
Cory LaViska
8ffbd02db7
update changelog
2023-07-05 16:32:59 -04:00
Cory LaViska
1b5db078a7
move aria attribs off <slot>; fixes #1417
2023-07-03 12:39:42 -04:00
Cory LaViska
4c22e72390
update changelog
2023-07-03 11:21:39 -04:00
Cory LaViska
cac772d5e6
update version
2023-06-26 12:20:55 -04:00
Cory LaViska
c4901eca68
update old links
2023-06-26 12:17:48 -04:00
Cory LaViska
1ae018bedd
fix broken source buttons in docs ( #1401 )
2023-06-23 12:03:51 -04:00
Cory LaViska
33a8d92aec
update version
2023-06-22 11:11:11 -04:00
Cory LaViska
8f9c15913b
update changelog
2023-06-22 11:04:33 -04:00
Cory LaViska
985d4585c4
fixes #1387 ( #1392 )
2023-06-21 11:07:02 -04:00
Cory LaViska
89fc2ff643
update version
2023-06-20 15:24:21 -04:00
Konnor Rogers
441a957432
fix: `<sl-carousel>` has the wrong import for `LocalizeController` ( #1384 )
...
* fix autoloading translations
* add changelog entry
* prettier
* prettier
2023-06-20 14:02:07 -04:00
Konnor Rogers
67cbb85682
Add support for svg sprites in `<sl-icon>` ( #1374 )
...
* wip: initial implementation for review
* icon testing
* feat: add the ability to use SVG sprite sheets
* finish up spritesheets
* add icon notes
* update plopfile, add changelog entry
* prettier
* linting
* linting
* fix icon test
* eslint fixes?
* prettier
* disable eslint -.-
* linting loop!
* linting loop!
* prettier
* prettier
---------
Co-authored-by: Diego <diego@trebellar.com>
2023-06-20 14:01:58 -04:00
Cory LaViska
0005d16a06
fixes #1380
2023-06-19 15:13:48 -04:00
Cory LaViska
4c854d64a7
upgrade lit
2023-06-13 12:19:39 -04:00
Cory LaViska
24ef154d42
update esbuild
2023-06-13 11:48:17 -04:00
Cory LaViska
b5a3045bae
update typescript
2023-06-13 11:37:33 -04:00
Cory LaViska
7404e496cb
Merge branch 'konnorrogers/modify-build-script-for-npm-2' into next
2023-06-13 10:05:00 -04:00
Cory LaViska
15474b83b1
update
2023-06-12 16:24:21 -04:00
Cory LaViska
a582302a79
update changelog
2023-06-12 12:13:18 -04:00
konnorrogers
415a1477bb
changelog, prettier
2023-06-12 11:39:56 -04:00
Konnor Rogers
1ef8e1cf73
fix: radio group race condition ( #1364 )
...
* fix: radio group race condition
* update changelog
* prettier
* fix changelog
2023-06-08 15:45:34 -04:00
Cory LaViska
32d0ac4147
remove extra heading
2023-06-08 12:39:18 -04:00
Cory LaViska
c24edec6b9
sync changelog
2023-06-07 16:43:03 -04:00
Cory LaViska
de5ad1b1b9
new docs
2023-06-06 08:22:18 -04:00