@akinon/ui-tour 1.0.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.
- package/dist/cjs/index.d.ts +19 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +35 -0
- package/dist/cjs/types.d.ts +186 -0
- package/dist/esm/index.d.ts +19 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +31 -0
- package/dist/esm/types.d.ts +186 -0
- package/package.json +44 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITourProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Tour component for Akinon UI.
|
|
5
|
+
*
|
|
6
|
+
* The Tour component provides a guided walkthrough for users, highlighting specific elements
|
|
7
|
+
* on the page with contextual information. It is ideal for onboarding experiences, showcasing
|
|
8
|
+
* new features, or providing step-by-step instructions.
|
|
9
|
+
*
|
|
10
|
+
* Features include customizable steps, placement options, and mask overlays to focus user
|
|
11
|
+
* attention. The component supports callbacks for step changes, closures, and completion,
|
|
12
|
+
* ensuring a seamless user experience and integration with application workflows.
|
|
13
|
+
*
|
|
14
|
+
* Built with flexibility and the Akinon design system in mind, the Tour component is suitable
|
|
15
|
+
* for various use cases across web applications.
|
|
16
|
+
*/
|
|
17
|
+
export declare const Tour: ({ ...props }: ITourProps) => React.JSX.Element;
|
|
18
|
+
export type * from './types';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,IAAI,iBAAkB,UAAU,sBAE5C,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Tour = void 0;
|
|
15
|
+
const antd_1 = require("antd");
|
|
16
|
+
const react_1 = require("react");
|
|
17
|
+
/**
|
|
18
|
+
* Tour component for Akinon UI.
|
|
19
|
+
*
|
|
20
|
+
* The Tour component provides a guided walkthrough for users, highlighting specific elements
|
|
21
|
+
* on the page with contextual information. It is ideal for onboarding experiences, showcasing
|
|
22
|
+
* new features, or providing step-by-step instructions.
|
|
23
|
+
*
|
|
24
|
+
* Features include customizable steps, placement options, and mask overlays to focus user
|
|
25
|
+
* attention. The component supports callbacks for step changes, closures, and completion,
|
|
26
|
+
* ensuring a seamless user experience and integration with application workflows.
|
|
27
|
+
*
|
|
28
|
+
* Built with flexibility and the Akinon design system in mind, the Tour component is suitable
|
|
29
|
+
* for various use cases across web applications.
|
|
30
|
+
*/
|
|
31
|
+
const Tour = (_a) => {
|
|
32
|
+
var props = __rest(_a, []);
|
|
33
|
+
return react_1.default.createElement(antd_1.Tour, Object.assign({}, props));
|
|
34
|
+
};
|
|
35
|
+
exports.Tour = Tour;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PlacementType =
|
|
4
|
+
| 'left'
|
|
5
|
+
| 'leftTop'
|
|
6
|
+
| 'leftBottom'
|
|
7
|
+
| 'right'
|
|
8
|
+
| 'rightTop'
|
|
9
|
+
| 'rightBottom'
|
|
10
|
+
| 'top'
|
|
11
|
+
| 'topLeft'
|
|
12
|
+
| 'topRight'
|
|
13
|
+
| 'bottom'
|
|
14
|
+
| 'bottomLeft'
|
|
15
|
+
| 'bottomRight'
|
|
16
|
+
| 'center';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Interface representing a step in a tour.
|
|
20
|
+
*/
|
|
21
|
+
export interface ITourStep {
|
|
22
|
+
/**
|
|
23
|
+
* The target element for the tour step. Can be an HTMLElement, a function returning an HTMLElement, null, or a function returning null.
|
|
24
|
+
*/
|
|
25
|
+
target?: HTMLElement | (() => HTMLElement) | null | (() => null);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Whether to display an arrow pointing to the target element.
|
|
29
|
+
*/
|
|
30
|
+
arrow?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The custom close icon for the tour step.
|
|
34
|
+
*/
|
|
35
|
+
closeIcon?: ReactNode;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The cover element for the tour step.
|
|
39
|
+
*/
|
|
40
|
+
cover?: ReactNode;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The title of the tour step.
|
|
44
|
+
*/
|
|
45
|
+
title: ReactNode;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The description of the tour step.
|
|
49
|
+
*/
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The placement of the tour step relative to the target element.
|
|
54
|
+
*/
|
|
55
|
+
placement?: PlacementType;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Callback function to be called when the tour step is closed.
|
|
59
|
+
*/
|
|
60
|
+
onClose?: () => void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Whether to display a mask over the rest of the page.
|
|
64
|
+
*/
|
|
65
|
+
mask?: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The total number of steps in the tour.
|
|
69
|
+
*/
|
|
70
|
+
total?: number;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The current step number in the tour.
|
|
74
|
+
*/
|
|
75
|
+
current?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Interface representing the properties for the Tour component.
|
|
80
|
+
*/
|
|
81
|
+
export interface ITourProps {
|
|
82
|
+
/**
|
|
83
|
+
* An array of steps to be included in the tour.
|
|
84
|
+
*/
|
|
85
|
+
steps?: ITourStep[];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Boolean indicating whether the tour is open.
|
|
89
|
+
*/
|
|
90
|
+
open?: boolean;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The current step index.
|
|
94
|
+
*/
|
|
95
|
+
current?: number;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Callback function triggered when the current step changes.
|
|
99
|
+
* @param current - The new current step index.
|
|
100
|
+
*/
|
|
101
|
+
onChange?: (current: number) => void;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Callback function triggered when the tour is closed.
|
|
105
|
+
* @param current - The current step index at the time of closing.
|
|
106
|
+
*/
|
|
107
|
+
onClose?: (current: number) => void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Callback function triggered when the tour is finished.
|
|
111
|
+
*/
|
|
112
|
+
onFinish?: () => void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Custom close icon for the tour.
|
|
116
|
+
*/
|
|
117
|
+
closeIcon?: ReactNode;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Boolean indicating whether the tour is closable.
|
|
121
|
+
*/
|
|
122
|
+
closable?: boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Boolean indicating whether a mask should be displayed.
|
|
126
|
+
*/
|
|
127
|
+
mask?: boolean;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Boolean indicating whether an arrow should be displayed.
|
|
131
|
+
*/
|
|
132
|
+
arrow?: boolean;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The placement of the tour steps.
|
|
136
|
+
*/
|
|
137
|
+
placement?: PlacementType;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Function to render custom indicators.
|
|
141
|
+
* @param current - The current step index.
|
|
142
|
+
* @param total - The total number of steps.
|
|
143
|
+
* @returns A ReactNode representing the custom indicators.
|
|
144
|
+
*/
|
|
145
|
+
indicatorsRender?: (current: number, total: number) => ReactNode;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The z-index of the tour component.
|
|
149
|
+
*/
|
|
150
|
+
zIndex?: number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Locale settings for the tour component.
|
|
154
|
+
*/
|
|
155
|
+
locale?: ITourLocale;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Interface representing locale settings for the Tour component.
|
|
160
|
+
*/
|
|
161
|
+
export interface ITourLocale {
|
|
162
|
+
/**
|
|
163
|
+
* Text for the "next" button.
|
|
164
|
+
*/
|
|
165
|
+
nextText?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Text for the "previous" button.
|
|
169
|
+
*/
|
|
170
|
+
prevText?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Text for the "finish" button.
|
|
174
|
+
*/
|
|
175
|
+
finishText?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Text for the "skip" button.
|
|
179
|
+
*/
|
|
180
|
+
skipText?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Text for the "close" button.
|
|
184
|
+
*/
|
|
185
|
+
closeText?: string;
|
|
186
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITourProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Tour component for Akinon UI.
|
|
5
|
+
*
|
|
6
|
+
* The Tour component provides a guided walkthrough for users, highlighting specific elements
|
|
7
|
+
* on the page with contextual information. It is ideal for onboarding experiences, showcasing
|
|
8
|
+
* new features, or providing step-by-step instructions.
|
|
9
|
+
*
|
|
10
|
+
* Features include customizable steps, placement options, and mask overlays to focus user
|
|
11
|
+
* attention. The component supports callbacks for step changes, closures, and completion,
|
|
12
|
+
* ensuring a seamless user experience and integration with application workflows.
|
|
13
|
+
*
|
|
14
|
+
* Built with flexibility and the Akinon design system in mind, the Tour component is suitable
|
|
15
|
+
* for various use cases across web applications.
|
|
16
|
+
*/
|
|
17
|
+
export declare const Tour: ({ ...props }: ITourProps) => React.JSX.Element;
|
|
18
|
+
export type * from './types';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,IAAI,iBAAkB,UAAU,sBAE5C,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { Tour as AntTour } from 'antd';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
/**
|
|
15
|
+
* Tour component for Akinon UI.
|
|
16
|
+
*
|
|
17
|
+
* The Tour component provides a guided walkthrough for users, highlighting specific elements
|
|
18
|
+
* on the page with contextual information. It is ideal for onboarding experiences, showcasing
|
|
19
|
+
* new features, or providing step-by-step instructions.
|
|
20
|
+
*
|
|
21
|
+
* Features include customizable steps, placement options, and mask overlays to focus user
|
|
22
|
+
* attention. The component supports callbacks for step changes, closures, and completion,
|
|
23
|
+
* ensuring a seamless user experience and integration with application workflows.
|
|
24
|
+
*
|
|
25
|
+
* Built with flexibility and the Akinon design system in mind, the Tour component is suitable
|
|
26
|
+
* for various use cases across web applications.
|
|
27
|
+
*/
|
|
28
|
+
export const Tour = (_a) => {
|
|
29
|
+
var props = __rest(_a, []);
|
|
30
|
+
return React.createElement(AntTour, Object.assign({}, props));
|
|
31
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PlacementType =
|
|
4
|
+
| 'left'
|
|
5
|
+
| 'leftTop'
|
|
6
|
+
| 'leftBottom'
|
|
7
|
+
| 'right'
|
|
8
|
+
| 'rightTop'
|
|
9
|
+
| 'rightBottom'
|
|
10
|
+
| 'top'
|
|
11
|
+
| 'topLeft'
|
|
12
|
+
| 'topRight'
|
|
13
|
+
| 'bottom'
|
|
14
|
+
| 'bottomLeft'
|
|
15
|
+
| 'bottomRight'
|
|
16
|
+
| 'center';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Interface representing a step in a tour.
|
|
20
|
+
*/
|
|
21
|
+
export interface ITourStep {
|
|
22
|
+
/**
|
|
23
|
+
* The target element for the tour step. Can be an HTMLElement, a function returning an HTMLElement, null, or a function returning null.
|
|
24
|
+
*/
|
|
25
|
+
target?: HTMLElement | (() => HTMLElement) | null | (() => null);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Whether to display an arrow pointing to the target element.
|
|
29
|
+
*/
|
|
30
|
+
arrow?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The custom close icon for the tour step.
|
|
34
|
+
*/
|
|
35
|
+
closeIcon?: ReactNode;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The cover element for the tour step.
|
|
39
|
+
*/
|
|
40
|
+
cover?: ReactNode;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The title of the tour step.
|
|
44
|
+
*/
|
|
45
|
+
title: ReactNode;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The description of the tour step.
|
|
49
|
+
*/
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The placement of the tour step relative to the target element.
|
|
54
|
+
*/
|
|
55
|
+
placement?: PlacementType;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Callback function to be called when the tour step is closed.
|
|
59
|
+
*/
|
|
60
|
+
onClose?: () => void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Whether to display a mask over the rest of the page.
|
|
64
|
+
*/
|
|
65
|
+
mask?: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The total number of steps in the tour.
|
|
69
|
+
*/
|
|
70
|
+
total?: number;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The current step number in the tour.
|
|
74
|
+
*/
|
|
75
|
+
current?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Interface representing the properties for the Tour component.
|
|
80
|
+
*/
|
|
81
|
+
export interface ITourProps {
|
|
82
|
+
/**
|
|
83
|
+
* An array of steps to be included in the tour.
|
|
84
|
+
*/
|
|
85
|
+
steps?: ITourStep[];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Boolean indicating whether the tour is open.
|
|
89
|
+
*/
|
|
90
|
+
open?: boolean;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The current step index.
|
|
94
|
+
*/
|
|
95
|
+
current?: number;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Callback function triggered when the current step changes.
|
|
99
|
+
* @param current - The new current step index.
|
|
100
|
+
*/
|
|
101
|
+
onChange?: (current: number) => void;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Callback function triggered when the tour is closed.
|
|
105
|
+
* @param current - The current step index at the time of closing.
|
|
106
|
+
*/
|
|
107
|
+
onClose?: (current: number) => void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Callback function triggered when the tour is finished.
|
|
111
|
+
*/
|
|
112
|
+
onFinish?: () => void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Custom close icon for the tour.
|
|
116
|
+
*/
|
|
117
|
+
closeIcon?: ReactNode;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Boolean indicating whether the tour is closable.
|
|
121
|
+
*/
|
|
122
|
+
closable?: boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Boolean indicating whether a mask should be displayed.
|
|
126
|
+
*/
|
|
127
|
+
mask?: boolean;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Boolean indicating whether an arrow should be displayed.
|
|
131
|
+
*/
|
|
132
|
+
arrow?: boolean;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The placement of the tour steps.
|
|
136
|
+
*/
|
|
137
|
+
placement?: PlacementType;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Function to render custom indicators.
|
|
141
|
+
* @param current - The current step index.
|
|
142
|
+
* @param total - The total number of steps.
|
|
143
|
+
* @returns A ReactNode representing the custom indicators.
|
|
144
|
+
*/
|
|
145
|
+
indicatorsRender?: (current: number, total: number) => ReactNode;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The z-index of the tour component.
|
|
149
|
+
*/
|
|
150
|
+
zIndex?: number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Locale settings for the tour component.
|
|
154
|
+
*/
|
|
155
|
+
locale?: ITourLocale;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Interface representing locale settings for the Tour component.
|
|
160
|
+
*/
|
|
161
|
+
export interface ITourLocale {
|
|
162
|
+
/**
|
|
163
|
+
* Text for the "next" button.
|
|
164
|
+
*/
|
|
165
|
+
nextText?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Text for the "previous" button.
|
|
169
|
+
*/
|
|
170
|
+
prevText?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Text for the "finish" button.
|
|
174
|
+
*/
|
|
175
|
+
finishText?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Text for the "skip" button.
|
|
179
|
+
*/
|
|
180
|
+
skipText?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Text for the "close" button.
|
|
184
|
+
*/
|
|
185
|
+
closeText?: string;
|
|
186
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@akinon/ui-tour",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/esm/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"antd": "5.22.6"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"clean-package": "2.2.0",
|
|
16
|
+
"copyfiles": "^2.4.1",
|
|
17
|
+
"rimraf": "^5.0.5",
|
|
18
|
+
"typescript": "*",
|
|
19
|
+
"@akinon/typescript-config": "1.0.0",
|
|
20
|
+
"@akinon/ui-theme": "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=18",
|
|
24
|
+
"react-dom": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"clean-package": "../../../clean-package.config.json",
|
|
27
|
+
"types": "dist/esm/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/esm/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"require": "./dist/cjs/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./package.json": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
|
|
38
|
+
"build:esm": "tsc --outDir dist/esm",
|
|
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",
|
|
41
|
+
"clean": "rimraf dist/",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
43
|
+
}
|
|
44
|
+
}
|