@bethinkpl/design-system 35.0.0 → 35.0.1
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/dist/design-system.css +1 -1
- package/dist/design-system.js +4 -4
- package/dist/design-system.js.map +1 -1
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +2 -8
- package/lib/js/components/Buttons/IconButton/IconButton.vue +2 -1
- package/lib/js/components/Toast/Toast.vue +1 -1
- package/lib/js/utils/device.ts +4 -3
- package/package.json +4 -3
|
@@ -11,10 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
boundariesSelector: {
|
|
14
|
-
type:
|
|
15
|
-
new (): HTMLElement;
|
|
16
|
-
prototype: HTMLElement;
|
|
17
|
-
})[];
|
|
14
|
+
type: PropType<string | HTMLElement>;
|
|
18
15
|
default: null;
|
|
19
16
|
};
|
|
20
17
|
color: {
|
|
@@ -99,10 +96,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
99
96
|
default: string;
|
|
100
97
|
};
|
|
101
98
|
boundariesSelector: {
|
|
102
|
-
type:
|
|
103
|
-
new (): HTMLElement;
|
|
104
|
-
prototype: HTMLElement;
|
|
105
|
-
})[];
|
|
99
|
+
type: PropType<string | HTMLElement>;
|
|
106
100
|
default: null;
|
|
107
101
|
};
|
|
108
102
|
color: {
|
|
@@ -148,7 +148,8 @@
|
|
|
148
148
|
color: map-get($icon-button-colors, 'theme', 'hovered');
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
// Doubled class selector increases specificity to ensure icon button styles never get overridden by .ds-button base styles
|
|
152
|
+
#{$self}__button#{$self}__button {
|
|
152
153
|
height: $icon-button-medium-size;
|
|
153
154
|
min-height: auto;
|
|
154
155
|
min-width: auto;
|
package/lib/js/utils/device.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export const isTouchDevice = (): boolean => {
|
|
2
2
|
return (
|
|
3
|
-
'
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
typeof window !== 'undefined' &&
|
|
4
|
+
('ontouchstart' in window ||
|
|
5
|
+
navigator.maxTouchPoints > 0 ||
|
|
6
|
+
(navigator as any).msMaxTouchPoints > 0)
|
|
6
7
|
);
|
|
7
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bethinkpl/design-system",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.1",
|
|
4
4
|
"description": "Bethink universe design-system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "UNLICENSED",
|
|
20
20
|
"engines": {
|
|
21
|
-
"yarn": "
|
|
22
|
-
"
|
|
21
|
+
"yarn": ">=1.22.1",
|
|
22
|
+
"npm": ">=6.0.0",
|
|
23
|
+
"node": "^16.13.0 || ^18.17.0 || ^20.9.0 || ^22.0.0 || ^24.0.0"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
25
26
|
"build": "vite build",
|