@aquera/nile-elements 0.1.40-beta-1.1 → 0.1.40-beta-1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/demo/filenames.txt +1 -1
- package/demo/index.html +0 -1
- package/demo/variables.css +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +53 -52
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js.map +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.esm.js +1 -0
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +19 -19
- package/dist/nile-select/nile-select.esm.js +3 -3
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js +1 -0
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/index.d.ts +2 -0
- package/dist/src/nile-icon/icons/svg/index.js +2 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +1 -0
- package/dist/src/nile-menu-item/nile-menu-item.css.js +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.css.js +19 -19
- package/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.d.ts +1 -0
- package/dist/src/nile-select/nile-select.js +6 -2
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button-toggle/nile-button-toggle.css.ts +1 -0
- package/src/nile-icon/icons/svg/index.ts +2 -0
- package/src/nile-icon/icons/svg/ng-log-out-01.ts +5 -0
- package/src/nile-icon/icons/svg/ng-message-text-square-01.ts +5 -0
- package/src/nile-menu-item/nile-menu-item.css.ts +1 -1
- package/src/nile-select/nile-select.css.ts +19 -19
- package/src/nile-select/nile-select.ts +3 -2
- package/vscode-html-custom-data.json +5 -1
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.40-beta-1.
|
6
|
+
"version": "0.1.40-beta-1.2",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -20,6 +20,7 @@ export const styles = css`
|
|
20
20
|
.nile-button-toggle {
|
21
21
|
display: flex;
|
22
22
|
padding: var(--nile-spacing-sm, var(--ng-spacing-sm)) var(--nile-spacing-xl, var(--ng-spacing-xl));
|
23
|
+
padding-right: var(--nile-spacing-14px, var(--ng-spacing-xl));
|
23
24
|
border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-primary));
|
24
25
|
cursor: pointer;
|
25
26
|
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-md));
|
@@ -298,9 +298,11 @@ export { default as ngimageuserleft } from './ng-image-user-left';
|
|
298
298
|
export { default as nginfocircle } from './ng-info-circle';
|
299
299
|
export { default as ngitalic01 } from './ng-italic-01';
|
300
300
|
export { default as nglist } from './ng-list';
|
301
|
+
export { default as nglogout01 } from './ng-log-out-01';
|
301
302
|
export { default as ngmail01 } from './ng-mail-01';
|
302
303
|
export { default as ngmail04 } from './ng-mail-04';
|
303
304
|
export { default as ngmenu05 } from './ng-menu-05';
|
305
|
+
export { default as ngmessagetextsquare01 } from './ng-message-text-square-01';
|
304
306
|
export { default as ngminimize02 } from './ng-minimize-02';
|
305
307
|
export { default as ngplus } from './ng-plus';
|
306
308
|
export { default as ngrocket02 } from './ng-rocket-02';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
*/
|
4
|
+
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTYgMTdMMjEgMTJNMjEgMTJMMTYgN00yMSAxMkg5TTkgM0g3LjhDNi4xMTk4NCAzIDUuMjc5NzYgMyA0LjYzODAzIDMuMzI2OThDNC4wNzM1NCAzLjYxNDYgMy42MTQ2IDQuMDczNTQgMy4zMjY5OCA0LjYzODAzQzMgNS4yNzk3NiAzIDYuMTE5ODQgMyA3LjhWMTYuMkMzIDE3Ljg4MDIgMyAxOC43MjAyIDMuMzI2OTggMTkuMzYyQzMuNjE0NiAxOS45MjY1IDQuMDczNTQgMjAuMzg1NCA0LjYzODAzIDIwLjY3M0M1LjI3OTc2IDIxIDYuMTE5ODQgMjEgNy44IDIxSDkiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMS4zIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=";
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
*/
|
4
|
+
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNyA4LjVIMTJNNyAxMkgxNU05LjY4Mzc1IDE4SDE2LjJDMTcuODgwMiAxOCAxOC43MjAyIDE4IDE5LjM2MiAxNy42NzNDMTkuOTI2NSAxNy4zODU0IDIwLjM4NTQgMTYuOTI2NSAyMC42NzMgMTYuMzYyQzIxIDE1LjcyMDIgMjEgMTQuODgwMiAyMSAxMy4yVjcuOEMyMSA2LjExOTg0IDIxIDUuMjc5NzYgMjAuNjczIDQuNjM4MDNDMjAuMzg1NCA0LjA3MzU0IDE5LjkyNjUgMy42MTQ2IDE5LjM2MiAzLjMyNjk4QzE4LjcyMDIgMyAxNy44ODAyIDMgMTYuMiAzSDcuOEM2LjExOTg0IDMgNS4yNzk3NiAzIDQuNjM4MDMgMy4zMjY5OEM0LjA3MzU0IDMuNjE0NiAzLjYxNDYgNC4wNzM1NCAzLjMyNjk4IDQuNjM4MDNDMyA1LjI3OTc2IDMgNi4xMTk4NCAzIDcuOFYyMC4zMzU1QzMgMjAuODY4NCAzIDIxLjEzNDggMy4xMDkyMyAyMS4yNzE2QzMuMjA0MjIgMjEuMzkwNiAzLjM0ODI3IDIxLjQ1OTkgMy41MDA1NCAyMS40NTk3QzMuNjc1NjMgMjEuNDU5NSAzLjg4MzY3IDIxLjI5MzEgNC4yOTk3NiAyMC45NjAyTDYuNjg1MjEgMTkuMDUxOEM3LjE3MjUyIDE4LjY2MiA3LjQxNjE3IDE4LjQ2NzEgNy42ODc0OSAxOC4zMjg1QzcuOTI4MiAxOC4yMDU1IDguMTg0NDMgMTguMTE1NiA4LjQ0OTIxIDE4LjA2MTNDOC43NDc2NyAxOCA5LjA1OTcgMTggOS42ODM3NSAxOFoiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMS4zIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=";
|
@@ -45,7 +45,7 @@ export const styles = css`
|
|
45
45
|
font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-600));
|
46
46
|
line-height: var(--nile-line-height-large,var(--ng-line-height-text-md));
|
47
47
|
letter-spacing: normal;
|
48
|
-
color: var(--nile-colors-
|
48
|
+
color: var(--nile-colors-dark-1,var(--ng-colors-text-secondary-700));
|
49
49
|
min-height:40px;
|
50
50
|
transition: 150ms fill;
|
51
51
|
user-select: none;
|
@@ -66,8 +66,8 @@ export const styles = css`
|
|
66
66
|
/* Help text */
|
67
67
|
.form-control--has-help-text .form-control__help-text {
|
68
68
|
display: block;
|
69
|
-
color: var(--nile-colors-dark-500);
|
70
|
-
margin-top: var(--nile-spacing-lg);
|
69
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
70
|
+
margin-top: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
71
71
|
}
|
72
72
|
|
73
73
|
.form-control--has-help-text.form-control--medium .form-control__help-text {
|
@@ -180,13 +180,13 @@ export const styles = css`
|
|
180
180
|
flex: 1;
|
181
181
|
align-items: center;
|
182
182
|
flex-wrap: no-wrap;
|
183
|
-
margin-inline-start: var(--nile-spacing-md);
|
183
|
+
margin-inline-start: var(--nile-spacing-md, var(--ng-spacing-md));
|
184
184
|
width: 100%;
|
185
185
|
overflow: hidden;
|
186
186
|
}
|
187
187
|
|
188
188
|
.select__tags-count {
|
189
|
-
color: var(--nile-colors-primary-600);
|
189
|
+
color: var(--nile-colors-primary-600, var(--ng-colors-text-brand-secondary-700));
|
190
190
|
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
191
191
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
192
192
|
|
@@ -194,11 +194,11 @@ export const styles = css`
|
|
194
194
|
font-weight: var(--nile-font-weight-regular);
|
195
195
|
line-height: var(--nile-line-height-xsmall);
|
196
196
|
letter-spacing: 0.2px;
|
197
|
-
margin: var(--nile-spacing-sm);
|
197
|
+
margin: var(--nile-spacing-sm, var(--ng-spacing-sm));
|
198
198
|
}
|
199
199
|
|
200
200
|
.select__tags-count-clearable {
|
201
|
-
margin-right: var(--nile-spacing-5xl);
|
201
|
+
margin-right: var(--nile-spacing-5xl, var(--ng-spacing-5xl));
|
202
202
|
}
|
203
203
|
|
204
204
|
.select__tags::slotted(nile-tag) {
|
@@ -243,7 +243,7 @@ export const styles = css`
|
|
243
243
|
}
|
244
244
|
|
245
245
|
.select--warning .select__combobox {
|
246
|
-
border-color: var(--nile-colors-yellow-500);
|
246
|
+
border-color: var(--nile-colors-yellow-500, var(--ng-colors-border-warning));
|
247
247
|
}
|
248
248
|
|
249
249
|
.select--error .select__combobox {
|
@@ -255,14 +255,14 @@ export const styles = css`
|
|
255
255
|
|
256
256
|
|
257
257
|
.select--success {
|
258
|
-
border-color: var(--nile-colors-green-500);
|
258
|
+
border-color: var(--nile-colors-green-500, var(--ng-componentcolors-utility-success-500));
|
259
259
|
}
|
260
260
|
|
261
261
|
/* Filled selects */
|
262
262
|
.select--filled .select__combobox {
|
263
263
|
border: none;
|
264
|
-
background-color: var(--nile-colors-neutral-100);
|
265
|
-
color: var(--nile-colors-dark-900);
|
264
|
+
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
|
265
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
266
266
|
}
|
267
267
|
|
268
268
|
.select--filled:hover:not(.select--disabled) .select__combobox {
|
@@ -337,7 +337,7 @@ export const styles = css`
|
|
337
337
|
align-items: center;
|
338
338
|
justify-content: center;
|
339
339
|
font-size: inherit;
|
340
|
-
color: var(--nile-colors-primary-600);
|
340
|
+
color: var(--nile-colors-primary-600, var(--ng-colors-text-brand-secondary-700));
|
341
341
|
border: none;
|
342
342
|
background: none;
|
343
343
|
padding: var(--nile-spacing-none);
|
@@ -360,7 +360,7 @@ export const styles = css`
|
|
360
360
|
align-items: center;
|
361
361
|
transition: 250ms rotate ease;
|
362
362
|
rotate: 0;
|
363
|
-
margin-inline-start: var(--nile-spacing-
|
363
|
+
margin-inline-start: var(--nile-spacing-md, var(--ng-spacing-md));
|
364
364
|
}
|
365
365
|
|
366
366
|
.select--open .select__expand-icon {
|
@@ -371,7 +371,7 @@ export const styles = css`
|
|
371
371
|
.select__listbox {
|
372
372
|
display: block;
|
373
373
|
position: relative;
|
374
|
-
font-size: var(--nile-type-scale-4);
|
374
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-md));
|
375
375
|
font-weight: var(--nile-font-weight-regular);
|
376
376
|
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
377
377
|
border: solid 1px var(--nile-colors-neutral-500, var(--ng-colors-border-secondary-alt));
|
@@ -381,8 +381,8 @@ export const styles = css`
|
|
381
381
|
overflow: auto;
|
382
382
|
overscroll-behavior: none;
|
383
383
|
/* Make sure it adheres to the popup's auto size */
|
384
|
-
|
385
|
-
max-height: var(--
|
384
|
+
max-width: var(--auto-size-available-width);
|
385
|
+
max-height: var(--auto-size-available-height);
|
386
386
|
box-shadow: var(--nile-box-shadow-none, var(--ng-shadow-xs));
|
387
387
|
}
|
388
388
|
|
@@ -403,10 +403,10 @@ export const styles = css`
|
|
403
403
|
.select__listbox::slotted(small) {
|
404
404
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
405
405
|
|
406
|
-
font-weight: var(--nile-font-weight-semi-bold);
|
406
|
+
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-600));
|
407
407
|
color: var(--nile-colors-dark-500);
|
408
408
|
padding-block: var(--nile-spacing-xs, var(--ng-spacing-sm));
|
409
|
-
padding-inline: var(--nile-spacing-xl);
|
409
|
+
padding-inline: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
410
410
|
}
|
411
411
|
|
412
412
|
.select__search {
|
@@ -432,7 +432,7 @@ export const styles = css`
|
|
432
432
|
align-items: flex-start;
|
433
433
|
padding: var(--nile-spacing-md) var(--nile-spacing-lg)
|
434
434
|
var(--nile-spacing-xl);
|
435
|
-
gap: var(--nile-spacing-lg);
|
435
|
+
gap: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
436
436
|
justify-content: space-between;
|
437
437
|
}
|
438
438
|
|
@@ -453,7 +453,7 @@ export const styles = css`
|
|
453
453
|
}
|
454
454
|
|
455
455
|
.select__loader--icon {
|
456
|
-
margin-top: var(--nile-spacing-xl);
|
456
|
+
margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
457
457
|
animation: spin 0.6s linear infinite;
|
458
458
|
}
|
459
459
|
|
@@ -162,6 +162,7 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
162
162
|
@property({ type: Boolean, reflect: true }) multiple = false;
|
163
163
|
|
164
164
|
@property({ attribute: true, reflect: true }) helpText = '';
|
165
|
+
@property({ attribute: 'help-text', reflect: true }) help_text = '';
|
165
166
|
|
166
167
|
@property({ attribute: 'error-message', reflect: true }) errorMessage = '';
|
167
168
|
|
@@ -981,7 +982,7 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
981
982
|
const hasClearIcon =
|
982
983
|
this.clearable && !this.disabled && this.value.length > 0;
|
983
984
|
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
984
|
-
const hasHelpText = this.helpText ? true : false;
|
985
|
+
const hasHelpText = (this.helpText || this.help_text) ? true : false;
|
985
986
|
const hasErrorMessage = this.errorMessage ? true : false;
|
986
987
|
const prefixContent = this.selectedOptions[0]
|
987
988
|
? this.getOptionPrefix(this.selectedOptions[0])
|
@@ -1284,7 +1285,7 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
1284
1285
|
</div>
|
1285
1286
|
|
1286
1287
|
${hasHelpText
|
1287
|
-
? html` <nile-form-help-text>${this.helpText}</nile-form-help-text> `
|
1288
|
+
? html` <nile-form-help-text>${(this.helpText || this.help_text)}</nile-form-help-text> `
|
1288
1289
|
: ``}
|
1289
1290
|
${hasErrorMessage
|
1290
1291
|
? html`
|
@@ -2994,7 +2994,7 @@
|
|
2994
2994
|
},
|
2995
2995
|
{
|
2996
2996
|
"name": "nile-select",
|
2997
|
-
"description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2997
|
+
"description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `help_text` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2998
2998
|
"attributes": [
|
2999
2999
|
{
|
3000
3000
|
"name": "size",
|
@@ -3053,6 +3053,10 @@
|
|
3053
3053
|
"name": "helpText",
|
3054
3054
|
"description": "`helpText` {`string`} - \n\nProperty: helpText\n\nDefault: "
|
3055
3055
|
},
|
3056
|
+
{
|
3057
|
+
"name": "help-text",
|
3058
|
+
"description": "`help-text` {`string`} - \n\nProperty: help_text\n\nDefault: "
|
3059
|
+
},
|
3056
3060
|
{
|
3057
3061
|
"name": "error-message",
|
3058
3062
|
"description": "`error-message` {`string`} - \n\nProperty: errorMessage\n\nDefault: "
|