@lumx/core 4.2.1-alpha.8 → 4.3.0
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.
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
4
|
-
'aria-expanded'?: Booleanish | undefined;
|
|
5
|
-
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
|
6
|
-
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Defines a string value that labels the current element.
|
|
9
|
-
* @see aria-labelledby.
|
|
10
|
-
*/
|
|
11
|
-
'aria-label'?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Indicates the current "pressed" state of toggle buttons.
|
|
14
|
-
* @see aria-checked @see aria-selected.
|
|
15
|
-
*/
|
|
16
|
-
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
|
|
17
|
-
}
|
|
1
|
+
import type { AriaAttributes } from 'react';
|
|
2
|
+
export type { AriaAttributes };
|
|
@@ -4,7 +4,7 @@ export type DisabledStateContextValue = {
|
|
|
4
4
|
} | {
|
|
5
5
|
state: undefined | null;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type DisabledProps = {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
'aria-disabled'?: boolean | 'true' | 'false';
|
|
@@ -19,4 +19,4 @@ export type DisabledState = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Calculate the disabled state based on context and props.
|
|
21
21
|
*/
|
|
22
|
-
export declare function getDisabledState(context: DisabledStateContextValue | undefined, props:
|
|
22
|
+
export declare function getDisabledState(context: DisabledStateContextValue | undefined, props: DisabledProps): DisabledState;
|
package/lumx.css
CHANGED
|
@@ -5606,6 +5606,26 @@ table {
|
|
|
5606
5606
|
gap: 6px;
|
|
5607
5607
|
}
|
|
5608
5608
|
|
|
5609
|
+
/* Selection Chip group
|
|
5610
|
+
========================================================================== */
|
|
5611
|
+
.lumx-selection-chip-group {
|
|
5612
|
+
max-width: 100%;
|
|
5613
|
+
}
|
|
5614
|
+
.lumx-selection-chip-group:empty {
|
|
5615
|
+
display: none;
|
|
5616
|
+
}
|
|
5617
|
+
.lumx-selection-chip-group__item {
|
|
5618
|
+
display: flex;
|
|
5619
|
+
overflow: hidden;
|
|
5620
|
+
}
|
|
5621
|
+
.lumx-selection-chip-group__chip {
|
|
5622
|
+
overflow: hidden;
|
|
5623
|
+
}
|
|
5624
|
+
.lumx-selection-chip-group__chip .lumx-chip__label {
|
|
5625
|
+
overflow: hidden;
|
|
5626
|
+
text-overflow: ellipsis;
|
|
5627
|
+
}
|
|
5628
|
+
|
|
5609
5629
|
/* ==========================================================================
|
|
5610
5630
|
Comment block
|
|
5611
5631
|
========================================================================== */
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/icons": "^4.
|
|
9
|
+
"@lumx/icons": "^4.3.0",
|
|
10
10
|
"classnames": "^2.3.2",
|
|
11
11
|
"focus-visible": "^5.0.2",
|
|
12
12
|
"lodash": "4.17.23",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
|
-
"version": "4.
|
|
40
|
+
"version": "4.3.0",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
43
43
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -60,6 +60,5 @@
|
|
|
60
60
|
"vite": "^7.3.1",
|
|
61
61
|
"vite-tsconfig-paths": "^5.1.4",
|
|
62
62
|
"vitest": "^4.0.18"
|
|
63
|
-
}
|
|
64
|
-
"stableVersion": "4.2.0"
|
|
63
|
+
}
|
|
65
64
|
}
|
|
@@ -186,3 +186,28 @@
|
|
|
186
186
|
flex-wrap: wrap;
|
|
187
187
|
gap: $lumx-chip-group-spacing * 2;
|
|
188
188
|
}
|
|
189
|
+
|
|
190
|
+
/* Selection Chip group
|
|
191
|
+
========================================================================== */
|
|
192
|
+
|
|
193
|
+
.#{$lumx-base-prefix}-selection-chip-group {
|
|
194
|
+
max-width: 100%;
|
|
195
|
+
|
|
196
|
+
&:empty {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&__item {
|
|
201
|
+
display: flex;
|
|
202
|
+
overflow: hidden;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&__chip {
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
|
|
208
|
+
.#{$lumx-base-prefix}-chip__label {
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
text-overflow: ellipsis;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|