@lumx/core 4.0.1-alpha.1 → 4.0.1-alpha.11
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/js/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type { HasClassName } from './HasClassName';
|
|
|
5
5
|
export type { HasCloseMode } from './HasCloseMode';
|
|
6
6
|
export type { HasTheme } from './HasTheme';
|
|
7
7
|
export type { GenericProps } from './GenericProps';
|
|
8
|
+
export type { JSXElement } from './JSXElement';
|
|
8
9
|
export type { HeadingElement } from './HeadingElement';
|
|
9
10
|
export type { Point } from './Point';
|
|
10
11
|
export type { Predicate } from './Predicate';
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type KeyboardEvent = {
|
|
2
|
+
key: string;
|
|
3
|
+
};
|
|
4
|
+
type KeyboardEventHandler<E extends KeyboardEvent> = (event: E) => void;
|
|
3
5
|
/**
|
|
4
6
|
* Make sure the pressed key is the enter key before calling the callback.
|
|
5
7
|
*
|
|
6
8
|
* @param handler The handler to call on enter/return press.
|
|
7
9
|
* @return The decorated function.
|
|
8
10
|
*/
|
|
9
|
-
export declare function onEnterPressed<E extends KeyboardEvent
|
|
11
|
+
export declare function onEnterPressed<E extends KeyboardEvent>(handler: KeyboardEventHandler<E>): KeyboardEventHandler<E>;
|
|
10
12
|
/**
|
|
11
13
|
* Make sure the pressed key is the escape key before calling the callback.
|
|
12
14
|
*
|
|
13
15
|
* @param handler The handler to call on enter/return press.
|
|
14
16
|
* @return The decorated function.
|
|
15
17
|
*/
|
|
16
|
-
export declare function onEscapePressed<E extends KeyboardEvent
|
|
18
|
+
export declare function onEscapePressed<E extends KeyboardEvent>(handler: KeyboardEventHandler<E>): KeyboardEventHandler<E>;
|
|
17
19
|
/**
|
|
18
20
|
* Handle button key pressed (Enter + Space).
|
|
19
21
|
*
|
|
20
22
|
* @param handler The handler to call.
|
|
21
23
|
* @return The decorated function.
|
|
22
24
|
*/
|
|
23
|
-
export declare function onButtonPressed<E extends KeyboardEvent
|
|
25
|
+
export declare function onButtonPressed<E extends KeyboardEvent>(handler: KeyboardEventHandler<E>): KeyboardEventHandler<E>;
|
|
24
26
|
export {};
|
package/lumx.css
CHANGED
|
@@ -10883,19 +10883,6 @@ table {
|
|
|
10883
10883
|
flex: 1 1 auto;
|
|
10884
10884
|
min-height: 0;
|
|
10885
10885
|
}
|
|
10886
|
-
.lumx-slideshow__wrapper--mode-scroll-snap {
|
|
10887
|
-
overflow-x: auto;
|
|
10888
|
-
scroll-snap-type: x mandatory;
|
|
10889
|
-
scrollbar-width: none;
|
|
10890
|
-
}
|
|
10891
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
10892
|
-
.lumx-slideshow__wrapper--mode-scroll-snap {
|
|
10893
|
-
scroll-behavior: smooth;
|
|
10894
|
-
}
|
|
10895
|
-
}
|
|
10896
|
-
.lumx-slideshow__wrapper--mode-scroll-snap::-webkit-scrollbar {
|
|
10897
|
-
display: none;
|
|
10898
|
-
}
|
|
10899
10886
|
.lumx-slideshow__controls {
|
|
10900
10887
|
margin-top: 16px;
|
|
10901
10888
|
}
|
|
@@ -10910,7 +10897,6 @@ table {
|
|
|
10910
10897
|
overflow: hidden;
|
|
10911
10898
|
max-width: 100%;
|
|
10912
10899
|
flex: 0 0 100%;
|
|
10913
|
-
scroll-snap-align: start;
|
|
10914
10900
|
}
|
|
10915
10901
|
|
|
10916
10902
|
/* Slideshow item
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
+
"@lumx/icons": "^4.0.1-alpha.11",
|
|
9
10
|
"classnames": "^2.3.2",
|
|
10
11
|
"focus-visible": "^5.0.2",
|
|
11
12
|
"lodash": "4.17.21",
|
|
@@ -35,16 +36,20 @@
|
|
|
35
36
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
36
37
|
},
|
|
37
38
|
"sideEffects": false,
|
|
38
|
-
"version": "4.0.1-alpha.
|
|
39
|
+
"version": "4.0.1-alpha.11",
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
41
|
-
"@
|
|
42
|
+
"@testing-library/dom": "^10.4.1",
|
|
43
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
44
|
+
"@types/react": "^18.3.24",
|
|
42
45
|
"autoprefixer": "^9.7.4",
|
|
43
46
|
"glob": "^7.1.6",
|
|
47
|
+
"jsdom": "^27.2.0",
|
|
44
48
|
"postcss": "^8.5.6",
|
|
45
49
|
"rollup": "^4.53.3",
|
|
46
50
|
"rollup-plugin-cleaner": "^1.0.0",
|
|
47
51
|
"rollup-plugin-copy": "^3.5.0",
|
|
52
|
+
"rollup-plugin-ts-paths-resolve": "^1.7.1",
|
|
48
53
|
"sass": "^1.54.0",
|
|
49
54
|
"style-dictionary": "^3.9.0",
|
|
50
55
|
"tinycolor2": "^1.4.1",
|
|
@@ -38,20 +38,6 @@
|
|
|
38
38
|
flex: 1 1 auto;
|
|
39
39
|
min-height: 0;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
&--mode-scroll-snap {
|
|
43
|
-
overflow-x: auto;
|
|
44
|
-
scroll-snap-type: x mandatory;
|
|
45
|
-
scrollbar-width: none;
|
|
46
|
-
|
|
47
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
48
|
-
scroll-behavior: smooth;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&::-webkit-scrollbar {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
41
|
}
|
|
56
42
|
|
|
57
43
|
&__controls {
|
|
@@ -71,7 +57,6 @@
|
|
|
71
57
|
overflow: hidden;
|
|
72
58
|
max-width: 100%;
|
|
73
59
|
flex: 0 0 100%;
|
|
74
|
-
scroll-snap-align: start;
|
|
75
60
|
}
|
|
76
61
|
|
|
77
62
|
/* Slideshow item
|
|
@@ -162,7 +147,7 @@
|
|
|
162
147
|
width: $item-size*2;
|
|
163
148
|
border-radius: $lumx-border-radius;
|
|
164
149
|
border-width: 0;
|
|
165
|
-
|
|
150
|
+
|
|
166
151
|
&[data-focus-visible-added] {
|
|
167
152
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "primary");
|
|
168
153
|
}
|