-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
3,421 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/shared': patch | ||
--- | ||
|
||
Prevent anchor directive from initializing more than once on the same host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/text-field': minor | ||
--- | ||
|
||
Change the `autocomplete` property to be more flexible when inheriting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/listbox': patch | ||
--- | ||
|
||
New `<sl-listbox>`, `<sl-option>` and `<sl-option-group>` components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/combobox': patch | ||
--- | ||
|
||
New `<sl-combobox>` component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@sl-design-system/text-field': patch | ||
--- | ||
|
||
Various bug fixes: | ||
- Fix selector for field button not matching when not slotted | ||
- Fix nested slotted `<input>` logic not working correctly | ||
- Rename private `#syncInput` to public `updateInputElement` method that can be overridden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/select': patch | ||
--- | ||
|
||
Fix `.focus()` not working properly on the select component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sl-design-system/tag': patch | ||
--- | ||
|
||
Fix tag list width calculation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './src/combobox.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "@sl-design-system/combobox", | ||
"version": "0.0.0", | ||
"description": "Combobox component for the SL Design System", | ||
"license": "Apache-2.0", | ||
"publishConfig": { | ||
"registry": "https://npm.pkg.github.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sl-design-system/components.git", | ||
"directory": "packages/components/combobox" | ||
}, | ||
"homepage": "https://sanomalearning.design/components/combobox", | ||
"bugs": { | ||
"url": "https://github.com/sl-design-system/components/issues" | ||
}, | ||
"type": "module", | ||
"main": "./index.js", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"customElements": "custom-elements.json", | ||
"exports": { | ||
".": "./index.js", | ||
"./package.json": "./package.json", | ||
"./register.js": "./register.js" | ||
}, | ||
"files": [ | ||
"**/*.d.ts", | ||
"**/*.js", | ||
"**/*.js.map", | ||
"custom-elements.json" | ||
], | ||
"sideEffects": [ | ||
"register.js" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: run tests from monorepo root.\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"@sl-design-system/form": "^1.0.3", | ||
"@sl-design-system/icon": "^1.0.2", | ||
"@sl-design-system/listbox": "^0.0.0", | ||
"@sl-design-system/tag": "^0.0.2", | ||
"@sl-design-system/text-field": "^1.3.5" | ||
}, | ||
"devDependencies": { | ||
"@open-wc/scoped-elements": "^3.0.5", | ||
"lit": "^3.1.4" | ||
}, | ||
"peerDependencies": { | ||
"@open-wc/scoped-elements": "^3.0.5", | ||
"lit": "^3.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Combobox } from './src/combobox.js'; | ||
|
||
customElements.define('sl-combobox', Combobox); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
:host { | ||
display: flex; | ||
} | ||
|
||
:host([disabled]) { | ||
pointer-events: none; | ||
} | ||
|
||
sl-text-field { | ||
flex: 1; | ||
max-inline-size: 100%; | ||
padding-block: 0; | ||
padding-inline: var(--_padding-inline) 0; | ||
|
||
&:has(> sl-tag-list) { | ||
padding-inline: calc(var(--sl-space-new-md) - var(--sl-size-borderWidth-default)) 0; | ||
} | ||
} | ||
|
||
sl-text-field:has(+ :popover-open) sl-icon { | ||
rotate: 180deg; | ||
} | ||
|
||
sl-tag-list { | ||
max-inline-size: 66%; | ||
} | ||
|
||
sl-icon { | ||
transition: rotate 0.2s ease-in-out; | ||
} | ||
|
||
[popover] { | ||
background: var(--sl-color-elevation-surface-raised); | ||
border: var(--sl-color-elevation-border-raised) solid var(--sl-size-borderWidth-default); | ||
border-radius: var(--sl-size-borderRadius-default); | ||
box-shadow: var(--sl-elevation-shadow-md); | ||
box-sizing: border-box; | ||
display: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
&:popover-open { | ||
@starting-style { | ||
display: flex; | ||
opacity: 0; | ||
} | ||
|
||
display: flex; | ||
opacity: 1; | ||
} | ||
} | ||
|
||
::slotted(sl-listbox) { | ||
flex: 1; | ||
max-block-size: var(--sl-combobox-listbox-maxBlockSize, 20rem); | ||
} |
Oops, something went wrong.