@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.
@@ -11,10 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  default: string;
12
12
  };
13
13
  boundariesSelector: {
14
- type: (StringConstructor | {
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: (StringConstructor | {
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
- &__button {
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;
@@ -140,7 +140,7 @@ export default defineComponent({
140
140
  default: TOAST_POSITIONS.CENTER,
141
141
  },
142
142
  boundariesSelector: {
143
- type: [String, HTMLElement],
143
+ type: [String, Object] as PropType<string | HTMLElement>,
144
144
  default: null,
145
145
  },
146
146
  color: {
@@ -1,7 +1,8 @@
1
1
  export const isTouchDevice = (): boolean => {
2
2
  return (
3
- 'ontouchstart' in window ||
4
- navigator.maxTouchPoints > 0 ||
5
- (navigator as any).msMaxTouchPoints > 0
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.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": "^1.22.1",
22
- "node": "^16.13.0 || ^18.17.0 || ^20.9.0"
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",