Wykres commitów

1586 Commity (1087fe23f7fb254ffb15f994c217998b6a84e5a8)

Autor SHA1 Wiadomość Data
Cory LaViska 296a24c74a fix slotted image dimensions 2023-10-23 12:02:08 -04:00
Cory LaViska 265ef71e6d fix cspell and ts 2023-10-23 11:55:28 -04:00
Alessandro 58bf05451d
fix: multiple slides per page navigation (#1605)
* fix(carousel): change navigation logic

* chore: update tests

* chore: create polyfill for scrollend

* chore: add unit tests and clean up

* chore: leftover

* chore: minor fix

* chore: avoid initialization for clones

* fix(carousel): update page navigation logic

* chore(carousel): revert change

* chore(carousel): minor changes

* chore: update pagination logic

* fix: enforce slidesPerMove value
2023-10-23 10:57:58 -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
fountainpen 88f3009cf4
Create hr.ts (#1656) 2023-10-18 13:25:02 -04:00
Cory LaViska 4b03675116
oh, safari (#1655) 2023-10-16 12:55:20 -04:00
Cory LaViska db66bbe5a1 update comments 2023-10-16 12:46:59 -04:00
Cory LaViska 54923edd22 update default 2023-10-16 12:41:22 -04:00
Konnor Rogers 2643e4ff9e
Fix `tabbable` performance issues in Chrome / Edge (#1614)
* fix: improve tabbable performance

* add note about composed-offset-position

* update package.json

* prettier

* prettier

* prettier
2023-10-16 12:30:34 -04:00
Cory LaViska c7b53cff47 update prettier 2023-10-12 13:56:11 -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
jarviszheng eb6966a6cf
Create zh-cn.ts (#1604) 2023-10-12 11:59:22 -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
Cam Skene 566f0e41a4
comma separate exportparts (#1586)
Fixes #1585.
2023-10-02 09:04:08 -05:00
Cory LaViska c9f810ac3e rename private var; #1572 2023-09-26 09:05:17 -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 2ed5a4ff97 Merge branch 'next' of https://github.com/shoelace-style/shoelace into next 2023-09-14 12:08:07 -04:00
Cory LaViska 4d3297937a fixes #1548 2023-09-14 12:08:05 -04:00
Christian Schuller 1d28e1bbc5
fix: add missing super.disconnectCallback() calls (#1564) 2023-09-14 11:17:12 -04:00
Cory LaViska c858bc3723 update changelog 2023-09-13 11:51:50 -04:00
Wes 317d567fe8
fix(autoloader): only attempt to register root element if it's shoelace element (#1563) 2023-09-13 11:50:02 -04:00
Mario Hamann 2b5e8286df
fix: make German translation more consistent + neutral (#1558)
In German you can say "Du" (=informal) or "Sie" (= formal). Before this commit both versions were used at the same time. It is preferred to make interfaces neutral, as some systems use "Du" (iOS, macOS) and some "Sie" (MS, Android). In addition all other translations were neutral, too, so this makes it more consistent.
2023-09-08 08:31:57 -04:00
Cory LaViska ab770c566e
fix spacing; #1540 (#1544) 2023-08-28 09:27:57 -04:00
Konnor Rogers f30481e229
remove unused code path (#1539) 2023-08-23 12:52:42 -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
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
Cory LaViska b63368d5f6 Merge branch 'next' of github.com:nathangray/shoelace into nathangray-next 2023-08-18 11:23:56 -04:00
Cory LaViska 74c6d3ee36 fix tree tests; #1521 2023-08-18 11:20:14 -04:00
nathan 621aa4362b Add HTMLElement to the getTag() return type 2023-08-18 09:17:02 -06:00
Cory LaViska c8919ad11f prettier 2023-08-18 09:55:57 -04:00
Stephen Sugden fad76dd1a2
SlTree: separate expand/collapse and selection behaviour in 'single' mode (#1521)
* Never select tree items when clicking the chevron

This changes the behaviour of sl-tree so that clicking on the expand/collapse icon will not select/deselect the item, only toggle it's expanded state.

* Refactor: inline SlTree.syncTreeItems

This was only called from 2 places, and they each had different
behaviour anyways.

* SlTree: separate expand/collapse from selection

This makes 'multi' and 'single' mode consistent with each other, and
with native file managers.
2023-08-18 09:55:29 -04:00
nathan b2f6499b87 Fix lint warnings 2023-08-17 13:18:51 -06:00
nathan 9520e850dd Update for path changes
see 3a61d20d93
2023-08-17 11:34:25 -06:00
Cory LaViska 9cb5ba7ac1
Radio button fix (#1524)
* fix formatting

* fix radio button spacing; fixes #1523
2023-08-16 14:51:46 -04:00
Konnor Rogers e298f7e5f4
fix broken tests for shoelace-element (#1516)
* add stub code prior to test

* fix broken test

* prettier

* prettier

* prettier
2023-08-14 11:23:00 -04:00
Cory LaViska b09a48bec4 fix arg name 2023-08-14 10:02:23 -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
king8fisher f8c37e0d14
Fix missing comma in linear-gradient (#1506) 2023-08-11 13:06:10 -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 a3450a7d83 move emphasis 2023-08-11 11:01:37 -04:00
Alexander Krolick 8d617fb98c
Expand on comment about space-separated value for sl-select (#1502) 2023-08-11 10:58:14 -04:00
Cory LaViska e21943f4fb fix typos/whitespace 2023-08-11 10:30:40 -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 5b6c1632bd update var names and use stylesheet; #1496 2023-08-09 15:38:24 -04:00
Tomas Drencak bf15f2fb8a
Toggle visibility of the clear button (#1496) 2023-08-09 15:28:30 -04:00