-
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
17 changed files
with
42 additions
and
124 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,7 @@ | ||
--- | ||
'@sl-design-system/listbox': patch | ||
--- | ||
|
||
Various improvements: | ||
- Support `<option>` and `<optgroup>` elements in addition to `<sl-option>` and `<sl-option-group>` inside `<sl-listbox>` | ||
- Override `textContent` in `<sl-option>` to return only the text directly inside the element |
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/combobox': patch | ||
--- | ||
|
||
Various improvements: | ||
- For improved performance, also support `<option>` and `<optgroup>` | ||
- Scroll to the selected option when opening the popover in single mode | ||
- Actually toggle the popover when clicking the button |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,28 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import type { ConfigSettings } from '@sl-design-system/shared'; | ||
import { Config } from '@sl-design-system/shared'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
// export const setup = (): void => { | ||
// 1. Add typekit url to `<head>` | ||
// 2. Add theme icons | ||
// 3. Load the base stylesheet/css variables | ||
// 4. Start using the SLDS in your application | ||
// }; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
const config: ConfigSettings = { | ||
avatar: { | ||
shape: 'circle', | ||
badgeGapWidth: 2 | ||
} | ||
}; | ||
|
||
Icon.register(icons as IconLibrary); | ||
Config.setConfig(config); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import type { IconLibrary } from '@sl-design-system/icon'; | ||
import { Icon } from '@sl-design-system/icon'; | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,27 +1,7 @@ | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { Config, type ConfigSettings } from '@sl-design-system/shared'; | ||
import { icons } from './icons.js'; | ||
|
||
// export const setup = (): void => { | ||
// 1. Add typekit url to `<head>` | ||
// 2. Add theme icons | ||
// 3. Load the base stylesheet/css variables | ||
// 4. Start using the SLDS in your application | ||
// }; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
const config: ConfigSettings = { | ||
avatar: { | ||
shape: 'circle', | ||
badgeGapWidth: 2 | ||
}, | ||
icons | ||
}; | ||
|
||
Icon.register(icons as IconLibrary); | ||
Config.setConfig(config); | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
console.log('register Icons'); | ||
Icon.register(icons as IconLibrary); | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import { Icon, type IconLibrary } from '@sl-design-system/icon'; | ||
import { icons } from './icons.js'; | ||
|
||
// export const setup = (): void => { | ||
// 1. Add typekit url to `<head>` | ||
// 2. Add theme icons | ||
// 3. Load the base stylesheet/css variables | ||
// 4. Start using the SLDS in your application | ||
// }; | ||
|
||
/** | ||
* initializes all necessary things to load your theme, | ||
* like icons, ... | ||
*/ | ||
/** Setup the theme. */ | ||
export const setup = (): void => { | ||
Icon.register(icons as IconLibrary); | ||
}; |