@akinon/ui-tooltip 1.2.1 → 1.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,sCAAuC,YAAY,sBAgCtE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,GAAI,mCAAmC,YAAY,sBAgCtE,CAAC"}
@@ -66,11 +66,6 @@ interface PlacementsConfig {
66
66
  visibleFirst?: boolean;
67
67
  }
68
68
 
69
- /**
70
- * Literal union type supporting both predefined and custom string values.
71
- */
72
- type LiteralUnion<T extends string> = T | (string & {});
73
-
74
69
  /**
75
70
  * Function that renders the tooltip content.
76
71
  */
@@ -100,12 +95,12 @@ export declare type AntTooltipProps =
100
95
 
101
96
  type PurePanelProps = Omit<TooltipProps, 'children'>;
102
97
 
103
- declare const PurePanel: React.FC<PurePanelProps>;
98
+ export declare const PurePanel: React.FC<PurePanelProps>;
104
99
 
105
100
  /**
106
101
  * Colors available for the tooltip's background.
107
102
  */
108
- declare const PresetColors: readonly [
103
+ export declare const PresetColors: readonly [
109
104
  'blue',
110
105
  'purple',
111
106
  'cyan',
@@ -134,7 +129,7 @@ type InverseColor = `${PresetColorKey}-inverse`;
134
129
  /**
135
130
  * Available tooltip color types, including inverse options.
136
131
  */
137
- type PresetColorType = PresetColorKey | InverseColor;
132
+ export type PresetColorType = PresetColorKey | InverseColor;
138
133
 
139
134
  export type { AdjustOverflow, PlacementsConfig };
140
135
 
@@ -323,7 +318,7 @@ export declare type TooltipProps =
323
318
  | TooltipPropsWithTitle
324
319
  | TooltipPropsWithOverlay;
325
320
 
326
- declare const InternalTooltip: React.ForwardRefExoticComponent<
321
+ export declare const InternalTooltip: React.ForwardRefExoticComponent<
327
322
  TooltipProps & React.RefAttributes<TooltipRef>
328
323
  >;
329
324
 
@@ -473,13 +468,13 @@ interface TooltipRef {
473
468
  forceAlign: VoidFunction;
474
469
  }
475
470
 
476
- type TransitionNameType = string;
471
+ export type TransitionNameType = string;
477
472
 
478
- type AnimationType = string;
473
+ export type AnimationType = string;
479
474
 
480
475
  type BuildInPlacements = Record<string, AlignType>;
481
476
 
482
- type StretchType = string;
477
+ export type StretchType = string;
483
478
 
484
479
  type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
485
480
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,sCAAuC,YAAY,sBAgCtE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,GAAI,mCAAmC,YAAY,sBAgCtE,CAAC"}
@@ -66,11 +66,6 @@ interface PlacementsConfig {
66
66
  visibleFirst?: boolean;
67
67
  }
68
68
 
69
- /**
70
- * Literal union type supporting both predefined and custom string values.
71
- */
72
- type LiteralUnion<T extends string> = T | (string & {});
73
-
74
69
  /**
75
70
  * Function that renders the tooltip content.
76
71
  */
@@ -100,12 +95,12 @@ export declare type AntTooltipProps =
100
95
 
101
96
  type PurePanelProps = Omit<TooltipProps, 'children'>;
102
97
 
103
- declare const PurePanel: React.FC<PurePanelProps>;
98
+ export declare const PurePanel: React.FC<PurePanelProps>;
104
99
 
105
100
  /**
106
101
  * Colors available for the tooltip's background.
107
102
  */
108
- declare const PresetColors: readonly [
103
+ export declare const PresetColors: readonly [
109
104
  'blue',
110
105
  'purple',
111
106
  'cyan',
@@ -134,7 +129,7 @@ type InverseColor = `${PresetColorKey}-inverse`;
134
129
  /**
135
130
  * Available tooltip color types, including inverse options.
136
131
  */
137
- type PresetColorType = PresetColorKey | InverseColor;
132
+ export type PresetColorType = PresetColorKey | InverseColor;
138
133
 
139
134
  export type { AdjustOverflow, PlacementsConfig };
140
135
 
@@ -323,7 +318,7 @@ export declare type TooltipProps =
323
318
  | TooltipPropsWithTitle
324
319
  | TooltipPropsWithOverlay;
325
320
 
326
- declare const InternalTooltip: React.ForwardRefExoticComponent<
321
+ export declare const InternalTooltip: React.ForwardRefExoticComponent<
327
322
  TooltipProps & React.RefAttributes<TooltipRef>
328
323
  >;
329
324
 
@@ -473,13 +468,13 @@ interface TooltipRef {
473
468
  forceAlign: VoidFunction;
474
469
  }
475
470
 
476
- type TransitionNameType = string;
471
+ export type TransitionNameType = string;
477
472
 
478
- type AnimationType = string;
473
+ export type AnimationType = string;
479
474
 
480
475
  type BuildInPlacements = Record<string, AlignType>;
481
476
 
482
- type StretchType = string;
477
+ export type StretchType = string;
483
478
 
484
479
  type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
485
480
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-tooltip",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -9,19 +9,20 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "antd": "5.22.6",
13
- "@akinon/ui-theme": "1.0.2"
12
+ "@ant-design/cssinjs": "^1.24.0",
13
+ "antd": "^5.27.0",
14
+ "@akinon/ui-theme": "1.1.1"
14
15
  },
15
16
  "devDependencies": {
16
17
  "clean-package": "2.2.0",
17
18
  "copyfiles": "^2.4.1",
18
19
  "rimraf": "^5.0.5",
19
20
  "typescript": "*",
20
- "@akinon/typescript-config": "1.0.1"
21
+ "@akinon/typescript-config": "1.1.0"
21
22
  },
22
23
  "peerDependencies": {
23
- "react": ">=18",
24
- "react-dom": ">=18"
24
+ "react": "^18 || ^19",
25
+ "react-dom": "^18 || ^19"
25
26
  },
26
27
  "clean-package": "../../../clean-package.config.json",
27
28
  "types": "dist/esm/index.d.ts",
@@ -35,10 +36,10 @@
35
36
  },
36
37
  "scripts": {
37
38
  "build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
38
- "build:esm": "tsc --outDir dist/esm",
39
39
  "build:commonjs": "tsc --module commonjs --outDir dist/cjs",
40
- "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
40
+ "build:esm": "tsc --outDir dist/esm",
41
41
  "clean": "rimraf dist/",
42
+ "copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
42
43
  "typecheck": "tsc --noEmit"
43
44
  }
44
45
  }