@fangxinyan/lumina 0.6.16 → 0.6.18
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/DatePicker.cjs +3 -2
- package/dist/DatePicker.js +2 -1
- package/dist/DateTimePicker.cjs +3 -2
- package/dist/DateTimePicker.js +2 -1
- package/dist/{Image-TDCXJISG.css → Image-NISJRUWX.css} +80 -1
- package/dist/Image.cjs +6 -5
- package/dist/Image.d.cts +18 -1
- package/dist/Image.d.ts +18 -1
- package/dist/Image.js +2 -1
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +2 -2
- package/dist/Select.cjs +2 -2
- package/dist/Select.js +1 -1
- package/dist/Table.cjs +4 -4
- package/dist/Table.js +3 -3
- package/dist/TablePro.cjs +5 -5
- package/dist/TablePro.js +4 -4
- package/dist/TimePicker.cjs +3 -2
- package/dist/TimePicker.js +2 -1
- package/dist/{chunk-QNN3YV2P.js → chunk-2FOC3D6X.js} +1 -1
- package/dist/chunk-35RCCUGO.cjs +62 -0
- package/dist/{chunk-PBT4UKPL.cjs → chunk-4ACCOYBY.cjs} +2 -2
- package/dist/chunk-5VOUUQF5.js +736 -0
- package/dist/{chunk-FKP5D5IS.js → chunk-7NTTRKNT.js} +8 -2
- package/dist/{chunk-6PHPRZTT.js → chunk-E22OIVYP.js} +17 -1
- package/dist/{chunk-DU4VSUBF.js → chunk-HG6YS4I7.js} +8 -2
- package/dist/chunk-HSAJUEO7.cjs +764 -0
- package/dist/{chunk-ZBWUIR2J.cjs → chunk-L6GIV5DQ.cjs} +2 -2
- package/dist/{chunk-32FWB5NO.cjs → chunk-MWEHU7YO.cjs} +8 -2
- package/dist/{chunk-7YJV45U6.cjs → chunk-NXBFEIUX.cjs} +2 -2
- package/dist/chunk-RC6ULCQP.js +40 -0
- package/dist/{chunk-YPE6CDXQ.js → chunk-SOCYOUGM.js} +8 -2
- package/dist/{chunk-KHRYPNUV.cjs → chunk-T2O4DTDE.cjs} +8 -2
- package/dist/{chunk-4YSGGZDB.js → chunk-UGAN4BBW.js} +1 -1
- package/dist/{chunk-IVFVLRWJ.cjs → chunk-UW57F3UO.cjs} +17 -1
- package/dist/{chunk-SFEWMO45.cjs → chunk-UWL6DRZW.cjs} +8 -2
- package/dist/{chunk-6LC4QROE.js → chunk-V5SQOZPF.js} +1 -1
- package/dist/index.cjs +21 -20
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -9
- package/dist/styles.css +79 -1
- package/docs/llms/image.md +21 -0
- package/docs/llms.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-EQ4FPOQQ.js +0 -253
- package/dist/chunk-RMFSX7DO.cjs +0 -281
package/dist/DatePicker.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkT2O4DTDE_cjs = require('./chunk-T2O4DTDE.cjs');
|
|
4
|
+
require('./chunk-35RCCUGO.cjs');
|
|
4
5
|
require('./chunk-YB3IWIOJ.cjs');
|
|
5
6
|
require('./chunk-VS3I5OKA.cjs');
|
|
6
7
|
require('./chunk-RZEFKXL3.cjs');
|
|
@@ -12,5 +13,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
12
13
|
|
|
13
14
|
Object.defineProperty(exports, "DatePicker", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkT2O4DTDE_cjs.DatePicker; }
|
|
16
17
|
});
|
package/dist/DatePicker.js
CHANGED
package/dist/DateTimePicker.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMWEHU7YO_cjs = require('./chunk-MWEHU7YO.cjs');
|
|
4
|
+
require('./chunk-35RCCUGO.cjs');
|
|
4
5
|
require('./chunk-YB3IWIOJ.cjs');
|
|
5
6
|
require('./chunk-VS3I5OKA.cjs');
|
|
6
7
|
require('./chunk-RZEFKXL3.cjs');
|
|
@@ -12,5 +13,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
12
13
|
|
|
13
14
|
Object.defineProperty(exports, "DateTimePicker", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkMWEHU7YO_cjs.DateTimePicker; }
|
|
16
17
|
});
|
package/dist/DateTimePicker.js
CHANGED
|
@@ -117,14 +117,93 @@
|
|
|
117
117
|
background: var(--image-preview-mask-bg, var(--mask-bg));
|
|
118
118
|
backdrop-filter: blur(16px);
|
|
119
119
|
display: grid; place-items: center;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
padding: min(8vh, 72px) var(--gap-8) var(--gap-8);
|
|
120
122
|
z-index: 500;
|
|
121
123
|
animation: fadeIn var(--dur) var(--ease);
|
|
122
124
|
}
|
|
123
|
-
.image-preview-overlay
|
|
125
|
+
.image-preview-overlay:focus {
|
|
126
|
+
outline: none;
|
|
127
|
+
}
|
|
128
|
+
.image-preview-toolbar {
|
|
129
|
+
--image-preview-toolbar-ink: color-mix(in oklch, var(--accent) 42%, var(--fg-muted));
|
|
130
|
+
--image-preview-toolbar-ink-hover: color-mix(in oklch, var(--accent) 48%, var(--fg));
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: var(--gap-5);
|
|
133
|
+
left: 50%;
|
|
134
|
+
z-index: 1;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
gap: var(--gap-2);
|
|
138
|
+
max-width: min(calc(100vw - 32px), 720px);
|
|
139
|
+
padding: 6px;
|
|
140
|
+
overflow-x: auto;
|
|
141
|
+
color: var(--image-preview-toolbar-ink);
|
|
142
|
+
border: 1px solid color-mix(in oklch, var(--accent) 14%, var(--border));
|
|
143
|
+
border-radius: var(--r-pill);
|
|
144
|
+
background: color-mix(in oklch, var(--bg-raised) 92%, var(--accent-soft));
|
|
145
|
+
box-shadow:
|
|
146
|
+
var(--neu-float),
|
|
147
|
+
0 0 0 1px color-mix(in oklch, var(--accent-glow) 22%, transparent);
|
|
148
|
+
backdrop-filter: blur(18px) saturate(1.2);
|
|
149
|
+
transform: translateX(-50%);
|
|
150
|
+
}
|
|
151
|
+
.image-preview-toolbar .btn {
|
|
152
|
+
flex: 0 0 auto;
|
|
153
|
+
}
|
|
154
|
+
.image-preview-toolbar .btn.ghost {
|
|
155
|
+
color: var(--image-preview-toolbar-ink);
|
|
156
|
+
}
|
|
157
|
+
.image-preview-toolbar .btn.ghost:hover {
|
|
158
|
+
color: var(--image-preview-toolbar-ink-hover);
|
|
159
|
+
background: color-mix(in oklch, var(--accent-soft) 36%, var(--bg));
|
|
160
|
+
box-shadow: var(--neu-shadow-subtle);
|
|
161
|
+
}
|
|
162
|
+
.image-preview-toolbar .btn.ghost:active,
|
|
163
|
+
.image-preview-toolbar .btn.ghost.pressed {
|
|
164
|
+
color: var(--image-preview-toolbar-ink-hover);
|
|
165
|
+
background: color-mix(in oklch, var(--accent-soft) 48%, var(--bg));
|
|
166
|
+
box-shadow: var(--neu-shadow-inset-strong);
|
|
167
|
+
}
|
|
168
|
+
.image-preview-scale {
|
|
169
|
+
min-width: 48px;
|
|
170
|
+
color: var(--image-preview-toolbar-ink);
|
|
171
|
+
font-family: var(--font-mono);
|
|
172
|
+
font-size: var(--fs-sm);
|
|
173
|
+
font-weight: 500;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
.image-preview-ratio {
|
|
178
|
+
min-width: 46px;
|
|
179
|
+
padding-inline: 10px;
|
|
180
|
+
font-family: var(--font-mono);
|
|
181
|
+
}
|
|
182
|
+
.image-preview-toolbar-slot {
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
flex: 0 0 auto;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: var(--gap-2);
|
|
187
|
+
}
|
|
188
|
+
.image-preview-img {
|
|
124
189
|
max-width: 80vw;
|
|
125
190
|
max-height: 80vh;
|
|
126
191
|
border-radius: var(--r-lg);
|
|
127
192
|
box-shadow: var(--neu-shadow-float);
|
|
193
|
+
transform-origin: center;
|
|
194
|
+
transition: transform var(--dur-fast) var(--ease);
|
|
195
|
+
user-select: none;
|
|
196
|
+
will-change: transform;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (max-width: 640px) {
|
|
200
|
+
.image-preview-overlay {
|
|
201
|
+
padding: 76px var(--gap-4) var(--gap-4);
|
|
202
|
+
}
|
|
203
|
+
.image-preview-toolbar {
|
|
204
|
+
top: var(--gap-4);
|
|
205
|
+
border-radius: var(--r-lg);
|
|
206
|
+
}
|
|
128
207
|
}
|
|
129
208
|
|
|
130
209
|
/* ============ SpriteImage / LayeredImage ============ */
|
package/dist/Image.cjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHSAJUEO7_cjs = require('./chunk-HSAJUEO7.cjs');
|
|
4
|
+
require('./chunk-SW2HMNCA.cjs');
|
|
4
5
|
require('./chunk-QMX67CVT.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
Object.defineProperty(exports, "Image", {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkHSAJUEO7_cjs.Image; }
|
|
11
12
|
});
|
|
12
13
|
Object.defineProperty(exports, "ImageGrid", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkHSAJUEO7_cjs.ImageGrid; }
|
|
15
16
|
});
|
|
16
17
|
Object.defineProperty(exports, "LayeredImage", {
|
|
17
18
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkHSAJUEO7_cjs.LayeredImage; }
|
|
19
20
|
});
|
|
20
21
|
Object.defineProperty(exports, "SpriteImage", {
|
|
21
22
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkHSAJUEO7_cjs.SpriteImage; }
|
|
23
24
|
});
|
package/dist/Image.d.cts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
type ImageVariant = "framed" | "raw" | "icon";
|
|
4
|
+
type ImagePreviewMode = "fit" | "actual";
|
|
5
|
+
interface ImagePreviewToolbarRenderProps {
|
|
6
|
+
scale: number;
|
|
7
|
+
mode: ImagePreviewMode;
|
|
8
|
+
zoomIn: () => void;
|
|
9
|
+
zoomOut: () => void;
|
|
10
|
+
fitToWindow: () => void;
|
|
11
|
+
actualSize: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}
|
|
4
15
|
interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
16
|
src?: string;
|
|
6
17
|
alt?: string;
|
|
@@ -22,6 +33,12 @@ interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
22
33
|
previewClassName?: string;
|
|
23
34
|
/** Inline style forwarded to the full-screen preview overlay. */
|
|
24
35
|
previewStyle?: React.CSSProperties;
|
|
36
|
+
/** Max width of the image inside the preview overlay. Defaults to 80vw. */
|
|
37
|
+
previewMaxWidth?: number | string;
|
|
38
|
+
/** Max height of the image inside the preview overlay. Defaults to 80vh. */
|
|
39
|
+
previewMaxHeight?: number | string;
|
|
40
|
+
/** Render extra controls in the preview toolbar. */
|
|
41
|
+
renderPreviewToolbar?: (props: ImagePreviewToolbarRenderProps) => React.ReactNode;
|
|
25
42
|
/** Hover scale-up. */
|
|
26
43
|
hover?: boolean;
|
|
27
44
|
/** Custom placeholder while loading or on error. */
|
|
@@ -104,4 +121,4 @@ interface LayeredImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
104
121
|
*/
|
|
105
122
|
declare const LayeredImage: React.ForwardRefExoticComponent<LayeredImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
123
|
|
|
107
|
-
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|
|
124
|
+
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImagePreviewMode, type ImagePreviewToolbarRenderProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|
package/dist/Image.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
type ImageVariant = "framed" | "raw" | "icon";
|
|
4
|
+
type ImagePreviewMode = "fit" | "actual";
|
|
5
|
+
interface ImagePreviewToolbarRenderProps {
|
|
6
|
+
scale: number;
|
|
7
|
+
mode: ImagePreviewMode;
|
|
8
|
+
zoomIn: () => void;
|
|
9
|
+
zoomOut: () => void;
|
|
10
|
+
fitToWindow: () => void;
|
|
11
|
+
actualSize: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}
|
|
4
15
|
interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
16
|
src?: string;
|
|
6
17
|
alt?: string;
|
|
@@ -22,6 +33,12 @@ interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
22
33
|
previewClassName?: string;
|
|
23
34
|
/** Inline style forwarded to the full-screen preview overlay. */
|
|
24
35
|
previewStyle?: React.CSSProperties;
|
|
36
|
+
/** Max width of the image inside the preview overlay. Defaults to 80vw. */
|
|
37
|
+
previewMaxWidth?: number | string;
|
|
38
|
+
/** Max height of the image inside the preview overlay. Defaults to 80vh. */
|
|
39
|
+
previewMaxHeight?: number | string;
|
|
40
|
+
/** Render extra controls in the preview toolbar. */
|
|
41
|
+
renderPreviewToolbar?: (props: ImagePreviewToolbarRenderProps) => React.ReactNode;
|
|
25
42
|
/** Hover scale-up. */
|
|
26
43
|
hover?: boolean;
|
|
27
44
|
/** Custom placeholder while loading or on error. */
|
|
@@ -104,4 +121,4 @@ interface LayeredImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
104
121
|
*/
|
|
105
122
|
declare const LayeredImage: React.ForwardRefExoticComponent<LayeredImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
123
|
|
|
107
|
-
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|
|
124
|
+
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImagePreviewMode, type ImagePreviewToolbarRenderProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|
package/dist/Image.js
CHANGED
package/dist/Pagination.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkL6GIV5DQ_cjs = require('./chunk-L6GIV5DQ.cjs');
|
|
4
|
+
require('./chunk-UW57F3UO.cjs');
|
|
5
5
|
require('./chunk-5ERD3W24.cjs');
|
|
6
6
|
require('./chunk-YB3IWIOJ.cjs');
|
|
7
7
|
require('./chunk-VS3I5OKA.cjs');
|
|
@@ -12,5 +12,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "Pagination", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkL6GIV5DQ_cjs.Pagination; }
|
|
16
16
|
});
|
package/dist/Pagination.js
CHANGED
package/dist/Select.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUW57F3UO_cjs = require('./chunk-UW57F3UO.cjs');
|
|
4
4
|
require('./chunk-5ERD3W24.cjs');
|
|
5
5
|
require('./chunk-YB3IWIOJ.cjs');
|
|
6
6
|
require('./chunk-VS3I5OKA.cjs');
|
|
@@ -11,5 +11,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "Select", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkUW57F3UO_cjs.Select; }
|
|
15
15
|
});
|
package/dist/Select.js
CHANGED
package/dist/Table.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkNXBFEIUX_cjs = require('./chunk-NXBFEIUX.cjs');
|
|
4
|
+
require('./chunk-L6GIV5DQ.cjs');
|
|
5
|
+
require('./chunk-UW57F3UO.cjs');
|
|
6
6
|
require('./chunk-5ERD3W24.cjs');
|
|
7
7
|
require('./chunk-ATUPFAPZ.cjs');
|
|
8
8
|
require('./chunk-YB3IWIOJ.cjs');
|
|
@@ -14,5 +14,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "Table", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNXBFEIUX_cjs.Table; }
|
|
18
18
|
});
|
package/dist/Table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Table } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { Table } from './chunk-UGAN4BBW.js';
|
|
2
|
+
import './chunk-V5SQOZPF.js';
|
|
3
|
+
import './chunk-E22OIVYP.js';
|
|
4
4
|
import './chunk-6K5YI4ZE.js';
|
|
5
5
|
import './chunk-ZD3L4V3H.js';
|
|
6
6
|
import './chunk-DUFRASGO.js';
|
package/dist/TablePro.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunk4ACCOYBY_cjs = require('./chunk-4ACCOYBY.cjs');
|
|
4
|
+
require('./chunk-NXBFEIUX.cjs');
|
|
5
|
+
require('./chunk-L6GIV5DQ.cjs');
|
|
6
|
+
require('./chunk-UW57F3UO.cjs');
|
|
7
7
|
require('./chunk-5ERD3W24.cjs');
|
|
8
8
|
require('./chunk-ATUPFAPZ.cjs');
|
|
9
9
|
require('./chunk-YB3IWIOJ.cjs');
|
|
@@ -15,5 +15,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "TablePro", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4ACCOYBY_cjs.TablePro; }
|
|
19
19
|
});
|
package/dist/TablePro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { TablePro } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { TablePro } from './chunk-2FOC3D6X.js';
|
|
2
|
+
import './chunk-UGAN4BBW.js';
|
|
3
|
+
import './chunk-V5SQOZPF.js';
|
|
4
|
+
import './chunk-E22OIVYP.js';
|
|
5
5
|
import './chunk-6K5YI4ZE.js';
|
|
6
6
|
import './chunk-ZD3L4V3H.js';
|
|
7
7
|
import './chunk-DUFRASGO.js';
|
package/dist/TimePicker.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUWL6DRZW_cjs = require('./chunk-UWL6DRZW.cjs');
|
|
4
|
+
require('./chunk-35RCCUGO.cjs');
|
|
4
5
|
require('./chunk-YB3IWIOJ.cjs');
|
|
5
6
|
require('./chunk-VS3I5OKA.cjs');
|
|
6
7
|
require('./chunk-RZEFKXL3.cjs');
|
|
@@ -11,5 +12,5 @@ require('./chunk-QMX67CVT.cjs');
|
|
|
11
12
|
|
|
12
13
|
Object.defineProperty(exports, "TimePicker", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkUWL6DRZW_cjs.TimePicker; }
|
|
15
16
|
});
|
package/dist/TimePicker.js
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
|
+
|
|
25
|
+
// src/utils/useInputTriggerToggle.ts
|
|
26
|
+
function useInputTriggerToggle({
|
|
27
|
+
open,
|
|
28
|
+
disabled,
|
|
29
|
+
readOnly,
|
|
30
|
+
setOpen
|
|
31
|
+
}) {
|
|
32
|
+
const pointerDownOpenRef = React__namespace.useRef(false);
|
|
33
|
+
const focusOpenedRef = React__namespace.useRef(false);
|
|
34
|
+
const handlePointerDown = React__namespace.useCallback(() => {
|
|
35
|
+
pointerDownOpenRef.current = open;
|
|
36
|
+
focusOpenedRef.current = false;
|
|
37
|
+
}, [open]);
|
|
38
|
+
const handleFocus = React__namespace.useCallback(() => {
|
|
39
|
+
if (disabled || readOnly || open) return;
|
|
40
|
+
focusOpenedRef.current = true;
|
|
41
|
+
setOpen(true);
|
|
42
|
+
}, [disabled, open, readOnly, setOpen]);
|
|
43
|
+
const handleClick = React__namespace.useCallback(() => {
|
|
44
|
+
if (disabled || readOnly) return;
|
|
45
|
+
if (focusOpenedRef.current) {
|
|
46
|
+
focusOpenedRef.current = false;
|
|
47
|
+
pointerDownOpenRef.current = false;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const nextOpen = !(pointerDownOpenRef.current || open);
|
|
51
|
+
pointerDownOpenRef.current = false;
|
|
52
|
+
setOpen(nextOpen);
|
|
53
|
+
}, [disabled, open, readOnly, setOpen]);
|
|
54
|
+
return {
|
|
55
|
+
onPointerDown: handlePointerDown,
|
|
56
|
+
onMouseDown: handlePointerDown,
|
|
57
|
+
onFocus: handleFocus,
|
|
58
|
+
onClick: handleClick
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.useInputTriggerToggle = useInputTriggerToggle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNXBFEIUX_cjs = require('./chunk-NXBFEIUX.cjs');
|
|
4
4
|
require('./tokens-RYJ3DFTU.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
6
|
require('./TablePro-3NGWERWT.css');
|
|
@@ -71,7 +71,7 @@ var TableProInner = ({
|
|
|
71
71
|
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-toolbar-actions", children: actions })
|
|
72
72
|
] }),
|
|
73
73
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74
|
-
|
|
74
|
+
chunkNXBFEIUX_cjs.Table,
|
|
75
75
|
{
|
|
76
76
|
columns,
|
|
77
77
|
data,
|