@fuf-stack/pixels 0.43.10 → 0.45.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.
Files changed (71) hide show
  1. package/dist/Alert/index.cjs +2 -2
  2. package/dist/Alert/index.js +1 -1
  3. package/dist/Button/index.cjs +2 -2
  4. package/dist/Button/index.d.cts +2 -2
  5. package/dist/Button/index.d.ts +2 -2
  6. package/dist/Button/index.js +1 -1
  7. package/dist/{Button-DykH6Lmz.d.cts → Button-BNrJYJDH.d.cts} +3 -1
  8. package/dist/{Button-DykH6Lmz.d.ts → Button-BNrJYJDH.d.ts} +3 -1
  9. package/dist/Json/index.cjs +3 -3
  10. package/dist/Json/index.js +2 -2
  11. package/dist/Label/index.cjs +2 -2
  12. package/dist/Label/index.d.cts +2 -2
  13. package/dist/Label/index.d.ts +2 -2
  14. package/dist/Label/index.js +1 -1
  15. package/dist/Label-B1a1krk8.d.cts +432 -0
  16. package/dist/Label-B1a1krk8.d.ts +432 -0
  17. package/dist/Popover/index.cjs +3 -3
  18. package/dist/Popover/index.d.cts +3 -3
  19. package/dist/Popover/index.d.ts +3 -3
  20. package/dist/Popover/index.js +2 -2
  21. package/dist/{Popover-Bxe50qlw.d.cts → Popover-Czc5-4V1.d.cts} +1 -1
  22. package/dist/{Popover-DhF3bXJE.d.ts → Popover-Dm_Dsjqw.d.ts} +1 -1
  23. package/dist/ScrollShadow/index.cjs +3 -3
  24. package/dist/ScrollShadow/index.d.cts +8 -2
  25. package/dist/ScrollShadow/index.d.ts +8 -2
  26. package/dist/ScrollShadow/index.js +1 -1
  27. package/dist/Tooltip/index.cjs +3 -3
  28. package/dist/Tooltip/index.js +2 -2
  29. package/dist/{chunk-4X7MUSJB.cjs → chunk-5NSWKHXF.cjs} +3 -3
  30. package/dist/{chunk-4X7MUSJB.cjs.map → chunk-5NSWKHXF.cjs.map} +1 -1
  31. package/dist/{chunk-XWKXRSNY.cjs → chunk-5X2LDUAC.cjs} +3 -3
  32. package/dist/{chunk-XWKXRSNY.cjs.map → chunk-5X2LDUAC.cjs.map} +1 -1
  33. package/dist/{chunk-RELR2OCI.js → chunk-6XNLMOET.js} +7 -5
  34. package/dist/chunk-6XNLMOET.js.map +1 -0
  35. package/dist/{chunk-OXXSHHVG.js → chunk-DBVM5SIA.js} +5 -5
  36. package/dist/{chunk-OXXSHHVG.js.map → chunk-DBVM5SIA.js.map} +1 -1
  37. package/dist/{chunk-TX2VP4J7.cjs → chunk-FUBGS3G4.cjs} +15 -2
  38. package/dist/chunk-FUBGS3G4.cjs.map +1 -0
  39. package/dist/{chunk-PYXJNORH.cjs → chunk-J44KQ3VW.cjs} +3 -3
  40. package/dist/{chunk-PYXJNORH.cjs.map → chunk-J44KQ3VW.cjs.map} +1 -1
  41. package/dist/{chunk-AN7A66NS.cjs → chunk-K6UF4AGX.cjs} +7 -5
  42. package/dist/chunk-K6UF4AGX.cjs.map +1 -0
  43. package/dist/{chunk-Q2SVN66A.cjs → chunk-KWSGA623.cjs} +5 -5
  44. package/dist/chunk-KWSGA623.cjs.map +1 -0
  45. package/dist/{chunk-PLJWIGRS.cjs → chunk-PHQVYJS2.cjs} +62 -6
  46. package/dist/chunk-PHQVYJS2.cjs.map +1 -0
  47. package/dist/{chunk-5BUCFDWR.js → chunk-PUMF3NYY.js} +2 -2
  48. package/dist/{chunk-EQVC4PJE.js → chunk-WDXULV6M.js} +15 -2
  49. package/dist/chunk-WDXULV6M.js.map +1 -0
  50. package/dist/{chunk-LQZEECJY.js → chunk-WZ5XQQGM.js} +2 -2
  51. package/dist/chunk-X6JZFO33.js +127 -0
  52. package/dist/chunk-X6JZFO33.js.map +1 -0
  53. package/dist/{chunk-BEEDCTDZ.js → chunk-XV3I2A5C.js} +2 -2
  54. package/dist/index.cjs +8 -8
  55. package/dist/index.d.cts +3 -3
  56. package/dist/index.d.ts +3 -3
  57. package/dist/index.js +7 -7
  58. package/package.json +2 -2
  59. package/dist/Label-Bp9WZiDB.d.cts +0 -152
  60. package/dist/Label-Bp9WZiDB.d.ts +0 -152
  61. package/dist/chunk-AN7A66NS.cjs.map +0 -1
  62. package/dist/chunk-EQVC4PJE.js.map +0 -1
  63. package/dist/chunk-KIRRQFSZ.js +0 -71
  64. package/dist/chunk-KIRRQFSZ.js.map +0 -1
  65. package/dist/chunk-PLJWIGRS.cjs.map +0 -1
  66. package/dist/chunk-Q2SVN66A.cjs.map +0 -1
  67. package/dist/chunk-RELR2OCI.js.map +0 -1
  68. package/dist/chunk-TX2VP4J7.cjs.map +0 -1
  69. /package/dist/{chunk-5BUCFDWR.js.map → chunk-PUMF3NYY.js.map} +0 -0
  70. /package/dist/{chunk-LQZEECJY.js.map → chunk-WZ5XQQGM.js.map} +0 -0
  71. /package/dist/{chunk-BEEDCTDZ.js.map → chunk-XV3I2A5C.js.map} +0 -0
@@ -0,0 +1,432 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import { ChipProps } from '@heroui/chip';
6
+ import { ReactNode } from 'react';
7
+
8
+ declare const labelVariants: tailwind_variants.TVReturnType<{
9
+ color: {
10
+ default: {
11
+ dot: string;
12
+ };
13
+ primary: {
14
+ dot: string;
15
+ };
16
+ secondary: {
17
+ dot: string;
18
+ };
19
+ success: {
20
+ dot: string;
21
+ };
22
+ warning: {
23
+ dot: string;
24
+ };
25
+ danger: {
26
+ dot: string;
27
+ };
28
+ info: {
29
+ dot: string;
30
+ };
31
+ };
32
+ isIconOnly: {
33
+ true: {
34
+ content: string;
35
+ };
36
+ false: {
37
+ content: string;
38
+ };
39
+ };
40
+ hasEndContent: {
41
+ true: {
42
+ base: string;
43
+ };
44
+ };
45
+ variant: {
46
+ solid: {};
47
+ bordered: {
48
+ base: string;
49
+ };
50
+ light: {
51
+ base: string;
52
+ };
53
+ flat: {};
54
+ faded: {
55
+ base: string;
56
+ };
57
+ shadow: {};
58
+ dot: {
59
+ base: string;
60
+ };
61
+ };
62
+ }, {
63
+ base: string;
64
+ closeButton: string;
65
+ content: string;
66
+ dot: string;
67
+ icon: string;
68
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
69
+ color: {
70
+ default: {
71
+ dot: string;
72
+ };
73
+ primary: {
74
+ dot: string;
75
+ };
76
+ secondary: {
77
+ dot: string;
78
+ };
79
+ success: {
80
+ dot: string;
81
+ };
82
+ warning: {
83
+ dot: string;
84
+ };
85
+ danger: {
86
+ dot: string;
87
+ };
88
+ info: {
89
+ dot: string;
90
+ };
91
+ };
92
+ isIconOnly: {
93
+ true: {
94
+ content: string;
95
+ };
96
+ false: {
97
+ content: string;
98
+ };
99
+ };
100
+ hasEndContent: {
101
+ true: {
102
+ base: string;
103
+ };
104
+ };
105
+ variant: {
106
+ solid: {};
107
+ bordered: {
108
+ base: string;
109
+ };
110
+ light: {
111
+ base: string;
112
+ };
113
+ flat: {};
114
+ faded: {
115
+ base: string;
116
+ };
117
+ shadow: {};
118
+ dot: {
119
+ base: string;
120
+ };
121
+ };
122
+ }, {
123
+ color: {
124
+ default: {
125
+ dot: string;
126
+ };
127
+ primary: {
128
+ dot: string;
129
+ };
130
+ secondary: {
131
+ dot: string;
132
+ };
133
+ success: {
134
+ dot: string;
135
+ };
136
+ warning: {
137
+ dot: string;
138
+ };
139
+ danger: {
140
+ dot: string;
141
+ };
142
+ info: {
143
+ dot: string;
144
+ };
145
+ };
146
+ isIconOnly: {
147
+ true: {
148
+ content: string;
149
+ };
150
+ false: {
151
+ content: string;
152
+ };
153
+ };
154
+ hasEndContent: {
155
+ true: {
156
+ base: string;
157
+ };
158
+ };
159
+ variant: {
160
+ solid: {};
161
+ bordered: {
162
+ base: string;
163
+ };
164
+ light: {
165
+ base: string;
166
+ };
167
+ flat: {};
168
+ faded: {
169
+ base: string;
170
+ };
171
+ shadow: {};
172
+ dot: {
173
+ base: string;
174
+ };
175
+ };
176
+ }>, {
177
+ color: {
178
+ default: {
179
+ dot: string;
180
+ };
181
+ primary: {
182
+ dot: string;
183
+ };
184
+ secondary: {
185
+ dot: string;
186
+ };
187
+ success: {
188
+ dot: string;
189
+ };
190
+ warning: {
191
+ dot: string;
192
+ };
193
+ danger: {
194
+ dot: string;
195
+ };
196
+ info: {
197
+ dot: string;
198
+ };
199
+ };
200
+ isIconOnly: {
201
+ true: {
202
+ content: string;
203
+ };
204
+ false: {
205
+ content: string;
206
+ };
207
+ };
208
+ hasEndContent: {
209
+ true: {
210
+ base: string;
211
+ };
212
+ };
213
+ variant: {
214
+ solid: {};
215
+ bordered: {
216
+ base: string;
217
+ };
218
+ light: {
219
+ base: string;
220
+ };
221
+ flat: {};
222
+ faded: {
223
+ base: string;
224
+ };
225
+ shadow: {};
226
+ dot: {
227
+ base: string;
228
+ };
229
+ };
230
+ }, {
231
+ base: string;
232
+ closeButton: string;
233
+ content: string;
234
+ dot: string;
235
+ icon: string;
236
+ }, tailwind_variants.TVReturnType<{
237
+ color: {
238
+ default: {
239
+ dot: string;
240
+ };
241
+ primary: {
242
+ dot: string;
243
+ };
244
+ secondary: {
245
+ dot: string;
246
+ };
247
+ success: {
248
+ dot: string;
249
+ };
250
+ warning: {
251
+ dot: string;
252
+ };
253
+ danger: {
254
+ dot: string;
255
+ };
256
+ info: {
257
+ dot: string;
258
+ };
259
+ };
260
+ isIconOnly: {
261
+ true: {
262
+ content: string;
263
+ };
264
+ false: {
265
+ content: string;
266
+ };
267
+ };
268
+ hasEndContent: {
269
+ true: {
270
+ base: string;
271
+ };
272
+ };
273
+ variant: {
274
+ solid: {};
275
+ bordered: {
276
+ base: string;
277
+ };
278
+ light: {
279
+ base: string;
280
+ };
281
+ flat: {};
282
+ faded: {
283
+ base: string;
284
+ };
285
+ shadow: {};
286
+ dot: {
287
+ base: string;
288
+ };
289
+ };
290
+ }, {
291
+ base: string;
292
+ closeButton: string;
293
+ content: string;
294
+ dot: string;
295
+ icon: string;
296
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
297
+ color: {
298
+ default: {
299
+ dot: string;
300
+ };
301
+ primary: {
302
+ dot: string;
303
+ };
304
+ secondary: {
305
+ dot: string;
306
+ };
307
+ success: {
308
+ dot: string;
309
+ };
310
+ warning: {
311
+ dot: string;
312
+ };
313
+ danger: {
314
+ dot: string;
315
+ };
316
+ info: {
317
+ dot: string;
318
+ };
319
+ };
320
+ isIconOnly: {
321
+ true: {
322
+ content: string;
323
+ };
324
+ false: {
325
+ content: string;
326
+ };
327
+ };
328
+ hasEndContent: {
329
+ true: {
330
+ base: string;
331
+ };
332
+ };
333
+ variant: {
334
+ solid: {};
335
+ bordered: {
336
+ base: string;
337
+ };
338
+ light: {
339
+ base: string;
340
+ };
341
+ flat: {};
342
+ faded: {
343
+ base: string;
344
+ };
345
+ shadow: {};
346
+ dot: {
347
+ base: string;
348
+ };
349
+ };
350
+ }, {
351
+ color: {
352
+ default: {
353
+ dot: string;
354
+ };
355
+ primary: {
356
+ dot: string;
357
+ };
358
+ secondary: {
359
+ dot: string;
360
+ };
361
+ success: {
362
+ dot: string;
363
+ };
364
+ warning: {
365
+ dot: string;
366
+ };
367
+ danger: {
368
+ dot: string;
369
+ };
370
+ info: {
371
+ dot: string;
372
+ };
373
+ };
374
+ isIconOnly: {
375
+ true: {
376
+ content: string;
377
+ };
378
+ false: {
379
+ content: string;
380
+ };
381
+ };
382
+ hasEndContent: {
383
+ true: {
384
+ base: string;
385
+ };
386
+ };
387
+ variant: {
388
+ solid: {};
389
+ bordered: {
390
+ base: string;
391
+ };
392
+ light: {
393
+ base: string;
394
+ };
395
+ flat: {};
396
+ faded: {
397
+ base: string;
398
+ };
399
+ shadow: {};
400
+ dot: {
401
+ base: string;
402
+ };
403
+ };
404
+ }>, unknown, unknown, undefined>>;
405
+ type VariantProps = TVProps<typeof labelVariants>;
406
+ type ClassName = TVClassName<typeof labelVariants>;
407
+ interface LabelProps extends VariantProps {
408
+ /** content of the label */
409
+ children?: ReactNode;
410
+ /** CSS class name */
411
+ className?: ClassName;
412
+ /** color of the label */
413
+ color?: VariantProps['color'];
414
+ /** element to be rendered in the right side of the label */
415
+ endContent?: ChipProps['endContent'];
416
+ /** optional label icon, when only icon provided without children and endContent */
417
+ icon?: ReactNode;
418
+ /** add close button to endContent */
419
+ onClose?: ChipProps['onClose'];
420
+ /** radius of the label */
421
+ radius?: ChipProps['radius'];
422
+ /** size of the label */
423
+ size?: ChipProps['size'];
424
+ /** style variant of the label */
425
+ variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
426
+ }
427
+ /**
428
+ * Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)
429
+ */
430
+ declare const Label: ({ children, className: _className, color, endContent, icon, onClose, radius, size, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
431
+
432
+ export { Label as L, type LabelProps as a, labelVariants as l };
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk4X7MUSJBcjs = require('../chunk-4X7MUSJB.cjs');
5
- require('../chunk-TX2VP4J7.cjs');
4
+ var _chunk5NSWKHXFcjs = require('../chunk-5NSWKHXF.cjs');
5
+ require('../chunk-FUBGS3G4.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Popover = _chunk4X7MUSJBcjs.Popover_default; exports.default = _chunk4X7MUSJBcjs.Popover_default2;
10
+ exports.Popover = _chunk5NSWKHXFcjs.Popover_default; exports.default = _chunk5NSWKHXFcjs.Popover_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,12 +1,12 @@
1
- import { _ as _default } from '../Popover-Bxe50qlw.cjs';
2
- export { P as PopoverProps } from '../Popover-Bxe50qlw.cjs';
1
+ import { _ as _default } from '../Popover-Czc5-4V1.cjs';
2
+ export { P as PopoverProps } from '../Popover-Czc5-4V1.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import '@fuf-stack/pixel-utils';
7
7
  import '@heroui/popover';
8
8
  import 'react';
9
- import '../Button-DykH6Lmz.cjs';
9
+ import '../Button-BNrJYJDH.cjs';
10
10
  import '@heroui/button';
11
11
 
12
12
 
@@ -1,12 +1,12 @@
1
- import { _ as _default } from '../Popover-DhF3bXJE.js';
2
- export { P as PopoverProps } from '../Popover-DhF3bXJE.js';
1
+ import { _ as _default } from '../Popover-Dm_Dsjqw.js';
2
+ export { P as PopoverProps } from '../Popover-Dm_Dsjqw.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import '@fuf-stack/pixel-utils';
7
7
  import '@heroui/popover';
8
8
  import 'react';
9
- import '../Button-DykH6Lmz.js';
9
+ import '../Button-BNrJYJDH.js';
10
10
  import '@heroui/button';
11
11
 
12
12
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Popover_default,
3
3
  Popover_default2
4
- } from "../chunk-LQZEECJY.js";
5
- import "../chunk-EQVC4PJE.js";
4
+ } from "../chunk-WZ5XQQGM.js";
5
+ import "../chunk-WDXULV6M.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Popover_default as Popover,
@@ -4,7 +4,7 @@ import * as tailwind_variants from 'tailwind-variants';
4
4
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
5
  import { PopoverProps as PopoverProps$1 } from '@heroui/popover';
6
6
  import { ReactNode } from 'react';
7
- import { a as ButtonProps } from './Button-DykH6Lmz.cjs';
7
+ import { a as ButtonProps } from './Button-BNrJYJDH.cjs';
8
8
 
9
9
  declare const popoverVariants: tailwind_variants.TVReturnType<{
10
10
  [key: string]: {
@@ -4,7 +4,7 @@ import * as tailwind_variants from 'tailwind-variants';
4
4
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
5
  import { PopoverProps as PopoverProps$1 } from '@heroui/popover';
6
6
  import { ReactNode } from 'react';
7
- import { a as ButtonProps } from './Button-DykH6Lmz.js';
7
+ import { a as ButtonProps } from './Button-BNrJYJDH.js';
8
8
 
9
9
  declare const popoverVariants: tailwind_variants.TVReturnType<{
10
10
  [key: string]: {
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTX2VP4J7cjs = require('../chunk-TX2VP4J7.cjs');
3
+ var _chunkFUBGS3G4cjs = require('../chunk-FUBGS3G4.cjs');
4
4
  require('../chunk-D4TLDLEX.cjs');
5
5
 
6
6
  // src/ScrollShadow/index.ts
7
- var ScrollShadow_default2 = _chunkTX2VP4J7cjs.ScrollShadow_default;
7
+ var ScrollShadow_default2 = _chunkFUBGS3G4cjs.ScrollShadow_default;
8
8
 
9
9
 
10
10
 
11
- exports.ScrollShadow = _chunkTX2VP4J7cjs.ScrollShadow_default; exports.default = ScrollShadow_default2;
11
+ exports.ScrollShadow = _chunkFUBGS3G4cjs.ScrollShadow_default; exports.default = ScrollShadow_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -6,12 +6,18 @@ interface ScrollShadowProps {
6
6
  children?: ReactNode;
7
7
  /** CSS class name */
8
8
  className?: string | string[];
9
- /** content of the scroll box */
9
+ /** Hides the scrollbar */
10
+ hideScrollBar?: boolean;
11
+ /** Orientation of the scroll shadow */
12
+ orientation?: 'horizontal' | 'vertical';
13
+ /** Shadow size in pixels */
14
+ size?: number;
15
+ /** HTML data-testid attribute used in e2e tests */
10
16
  testId?: string;
11
17
  }
12
18
  /**
13
19
  * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)
14
20
  */
15
- declare const _default: ({ children, className, testId, }: ScrollShadowProps) => react_jsx_runtime.JSX.Element;
21
+ declare const _default: ({ children, className, hideScrollBar, orientation, size, testId, }: ScrollShadowProps) => react_jsx_runtime.JSX.Element;
16
22
 
17
23
  export { _default as ScrollShadow, type ScrollShadowProps, _default as default };
@@ -6,12 +6,18 @@ interface ScrollShadowProps {
6
6
  children?: ReactNode;
7
7
  /** CSS class name */
8
8
  className?: string | string[];
9
- /** content of the scroll box */
9
+ /** Hides the scrollbar */
10
+ hideScrollBar?: boolean;
11
+ /** Orientation of the scroll shadow */
12
+ orientation?: 'horizontal' | 'vertical';
13
+ /** Shadow size in pixels */
14
+ size?: number;
15
+ /** HTML data-testid attribute used in e2e tests */
10
16
  testId?: string;
11
17
  }
12
18
  /**
13
19
  * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)
14
20
  */
15
- declare const _default: ({ children, className, testId, }: ScrollShadowProps) => react_jsx_runtime.JSX.Element;
21
+ declare const _default: ({ children, className, hideScrollBar, orientation, size, testId, }: ScrollShadowProps) => react_jsx_runtime.JSX.Element;
16
22
 
17
23
  export { _default as ScrollShadow, type ScrollShadowProps, _default as default };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ScrollShadow_default
3
- } from "../chunk-EQVC4PJE.js";
3
+ } from "../chunk-WDXULV6M.js";
4
4
  import "../chunk-J7N2552D.js";
5
5
 
6
6
  // src/ScrollShadow/index.ts
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXWKXRSNYcjs = require('../chunk-XWKXRSNY.cjs');
5
- require('../chunk-TX2VP4J7.cjs');
4
+ var _chunk5X2LDUACcjs = require('../chunk-5X2LDUAC.cjs');
5
+ require('../chunk-FUBGS3G4.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Tooltip = _chunkXWKXRSNYcjs.Tooltip_default; exports.default = _chunkXWKXRSNYcjs.Tooltip_default2;
10
+ exports.Tooltip = _chunk5X2LDUACcjs.Tooltip_default; exports.default = _chunk5X2LDUACcjs.Tooltip_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tooltip_default,
3
3
  Tooltip_default2
4
- } from "../chunk-BEEDCTDZ.js";
5
- import "../chunk-EQVC4PJE.js";
4
+ } from "../chunk-XV3I2A5C.js";
5
+ import "../chunk-WDXULV6M.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Tooltip_default as Tooltip,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTX2VP4J7cjs = require('./chunk-TX2VP4J7.cjs');
3
+ var _chunkFUBGS3G4cjs = require('./chunk-FUBGS3G4.cjs');
4
4
 
5
5
 
6
6
 
@@ -64,7 +64,7 @@ var Popover_default = ({
64
64
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: className.header, children: header }),
65
65
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "hr", { className: className.divider })
66
66
  ] }),
67
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTX2VP4J7cjs.ScrollShadow_default, { className: className.body, children: content }),
67
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFUBGS3G4cjs.ScrollShadow_default, { className: className.body, children: content }),
68
68
  footer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: className.footerWrapper, children: [
69
69
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "hr", { className: className.divider }),
70
70
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: className.footer, children: footer })
@@ -82,4 +82,4 @@ var Popover_default2 = Popover_default;
82
82
 
83
83
 
84
84
  exports.Popover_default = Popover_default; exports.Popover_default2 = Popover_default2;
85
- //# sourceMappingURL=chunk-4X7MUSJB.cjs.map
85
+ //# sourceMappingURL=chunk-5NSWKHXF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-4X7MUSJB.cjs","../src/Popover/Popover.tsx","../src/Popover/index.ts"],"names":["Popover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A,CAAU,QAAA,CAAS,CAAA;AAAA,4BAClC,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,SAAA,CAAU,MAAA,EAAS,QAAA,EAAA,OAAA,CAAO;AAAA,UAAA,EAAA,CAC5C;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,IAAA,CAAA;AAAA,EACF,CAAA;AAEJ,CAAA;ADvDA;AACA;AEvEA,IAAOA,iBAAAA,EAAQ,eAAA;AFyEf;AACA;AACE;AACA;AACF,uFAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-4X7MUSJB.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { PopoverProps as HeroPopoverProps } from '@heroui/popover';\nimport type { ReactNode } from 'react';\nimport type { ButtonProps } from '../Button';\n\nimport { Button } from '@heroui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@heroui/popover';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// popover styling variants\nexport const popoverVariants = tv({\n slots: {\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: '',\n },\n});\n\ntype VariantProps = TVProps<typeof popoverVariants>;\ntype ClassName = TVClassName<typeof popoverVariants>;\n\nexport interface PopoverProps extends VariantProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** content of the popover */\n content: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n contentTestId?: string;\n /** popover footer */\n footer?: ReactNode;\n /** Popover title */\n header?: ReactNode;\n /** use as controlled component */\n openControlled?: { open: boolean; setOpen: (open: boolean) => void };\n /** placement of the popover relative to its trigger reference */\n placement?: HeroPopoverProps['placement'];\n /** The container element in which the overlay portal will be placed. */\n portalContainer?: HeroPopoverProps['portalContainer'];\n /** Whether to block scrolling outside the popover */\n shouldBlockScroll?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** When defined a Button will be rendered as trigger (with provided props) instead of unstyled html button */\n triggerButtonProps?: Pick<\n ButtonProps,\n | 'ariaLabel'\n | 'className'\n | 'color'\n | 'disableAnimation'\n | 'disabled'\n | 'size'\n | 'testId'\n | 'variant'\n >;\n}\n\n/**\n * Popover component based on [HeroUI Card](https://www.heroui.com//docs/components/popover)\n */\nexport default ({\n children = null,\n className: _className = undefined,\n content,\n contentTestId = undefined,\n footer = undefined,\n header = undefined,\n openControlled = undefined,\n placement = 'top',\n portalContainer = undefined,\n shouldBlockScroll = undefined,\n testId = undefined,\n triggerButtonProps = undefined,\n}: PopoverProps) => {\n // className from slots\n const variants = popoverVariants();\n const className = variantsToClassNames(variants, _className, 'trigger');\n\n return (\n <Popover\n classNames={className}\n placement={placement}\n portalContainer={portalContainer}\n radius=\"sm\"\n shouldBlockScroll={shouldBlockScroll}\n showArrow\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...(openControlled\n ? { isOpen: openControlled.open, onOpenChange: openControlled.setOpen }\n : {})}\n >\n <PopoverTrigger data-testid={testId}>\n {/* NOTE: type and aria properties are injected by PopoverTrigger */}\n {triggerButtonProps ? (\n // TODO: currently we have to use @heroui/button because\n // passing ref does not work (even with forwardRef in Button)\n // eslint-disable-next-line react/jsx-props-no-spreading\n <Button className={className.trigger} {...triggerButtonProps}>\n {children}\n </Button>\n ) : (\n // eslint-disable-next-line react/button-has-type\n <button className={className.trigger}>{children}</button>\n )}\n </PopoverTrigger>\n <PopoverContent data-testid={contentTestId}>\n {header && (\n <div className={className.headerWrapper}>\n <div className={className.header}>{header}</div>\n <hr className={className.divider} />\n </div>\n )}\n <ScrollShadow className={className.body}>{content}</ScrollShadow>\n {footer && (\n <div className={className.footerWrapper}>\n <hr className={className.divider} />\n <div className={className.footer}>{footer}</div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n};\n","import Popover from './Popover';\n\nexport type { PopoverProps } from './Popover';\n\nexport { Popover };\n\nexport default Popover;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-5NSWKHXF.cjs","../src/Popover/Popover.tsx","../src/Popover/index.ts"],"names":["Popover_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACHA,wCAAuB;AACvB,0CAAwD;AAExD,oDAAyC;AAkG/B,+CAAA;AA7FH,IAAM,gBAAA,EAAkB,4BAAA;AAAG,EAChC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,kBAAA;AAAA,IACN,OAAA,EAAS,gCAAA;AAAA,IACT,OAAA,EAAS,gBAAA;AAAA,IACT,MAAA,EAAQ,kBAAA;AAAA,IACR,aAAA,EAAe,QAAA;AAAA,IACf,MAAA,EAAQ,qCAAA;AAAA,IACR,aAAA,EAAe,QAAA;AAAA,IACf,OAAA,EAAS;AAAA,EACX;AACF,CAAC,CAAA;AA6CD,IAAO,gBAAA,EAAQ,CAAC;AAAA,EACd,SAAA,EAAW,IAAA;AAAA,EACX,SAAA,EAAW,WAAA,EAAa,KAAA,CAAA;AAAA,EACxB,OAAA;AAAA,EACA,cAAA,EAAgB,KAAA,CAAA;AAAA,EAChB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,eAAA,EAAiB,KAAA,CAAA;AAAA,EACjB,UAAA,EAAY,KAAA;AAAA,EACZ,gBAAA,EAAkB,KAAA,CAAA;AAAA,EAClB,kBAAA,EAAoB,KAAA,CAAA;AAAA,EACpB,OAAA,EAAS,KAAA,CAAA;AAAA,EACT,mBAAA,EAAqB,KAAA;AACvB,CAAA,EAAA,GAAoB;AAElB,EAAA,MAAM,SAAA,EAAW,eAAA,CAAgB,CAAA;AACjC,EAAA,MAAM,UAAA,E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AAA,EAAa,SAAA,EAAW,SAAA,CAAU,IAAA,EAAO,QAAA,EAAA,QAAA,CAAQ,CAAA;AAAA,UACjD,OAAA,mBACC,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,SAAA,CAAU,aAAA,EACxB,QAAA,EAAA;AAAA,4BAAA,6BAAA,IAAC,EAAA,EAAG,SAAA,EAAW,SAAA,CAAU,QAAA,CAAS,CAAA;AAAA,4BAClC,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,SAAA,CAAU,MAAA,EAAS,QAAA,EAAA,OAAA,CAAO;AAAA,UAAA,EAAA,CAC5C;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,IAAA,CAAA;AAAA,EACF,CAAA;AAEJ,CAAA;ADvDA;AACA;AEvEA,IAAOA,iBAAAA,EAAQ,eAAA;AFyEf;AACA;AACE;AACA;AACF,uFAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-5NSWKHXF.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { PopoverProps as HeroPopoverProps } from '@heroui/popover';\nimport type { ReactNode } from 'react';\nimport type { ButtonProps } from '../Button';\n\nimport { Button } from '@heroui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@heroui/popover';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// popover styling variants\nexport const popoverVariants = tv({\n slots: {\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: '',\n },\n});\n\ntype VariantProps = TVProps<typeof popoverVariants>;\ntype ClassName = TVClassName<typeof popoverVariants>;\n\nexport interface PopoverProps extends VariantProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** content of the popover */\n content: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n contentTestId?: string;\n /** popover footer */\n footer?: ReactNode;\n /** Popover title */\n header?: ReactNode;\n /** use as controlled component */\n openControlled?: { open: boolean; setOpen: (open: boolean) => void };\n /** placement of the popover relative to its trigger reference */\n placement?: HeroPopoverProps['placement'];\n /** The container element in which the overlay portal will be placed. */\n portalContainer?: HeroPopoverProps['portalContainer'];\n /** Whether to block scrolling outside the popover */\n shouldBlockScroll?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** When defined a Button will be rendered as trigger (with provided props) instead of unstyled html button */\n triggerButtonProps?: Pick<\n ButtonProps,\n | 'ariaLabel'\n | 'className'\n | 'color'\n | 'disableAnimation'\n | 'disabled'\n | 'size'\n | 'testId'\n | 'variant'\n >;\n}\n\n/**\n * Popover component based on [HeroUI Card](https://www.heroui.com//docs/components/popover)\n */\nexport default ({\n children = null,\n className: _className = undefined,\n content,\n contentTestId = undefined,\n footer = undefined,\n header = undefined,\n openControlled = undefined,\n placement = 'top',\n portalContainer = undefined,\n shouldBlockScroll = undefined,\n testId = undefined,\n triggerButtonProps = undefined,\n}: PopoverProps) => {\n // className from slots\n const variants = popoverVariants();\n const className = variantsToClassNames(variants, _className, 'trigger');\n\n return (\n <Popover\n classNames={className}\n placement={placement}\n portalContainer={portalContainer}\n radius=\"sm\"\n shouldBlockScroll={shouldBlockScroll}\n showArrow\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...(openControlled\n ? { isOpen: openControlled.open, onOpenChange: openControlled.setOpen }\n : {})}\n >\n <PopoverTrigger data-testid={testId}>\n {/* NOTE: type and aria properties are injected by PopoverTrigger */}\n {triggerButtonProps ? (\n // TODO: currently we have to use @heroui/button because\n // passing ref does not work (even with forwardRef in Button)\n // eslint-disable-next-line react/jsx-props-no-spreading\n <Button className={className.trigger} {...triggerButtonProps}>\n {children}\n </Button>\n ) : (\n // eslint-disable-next-line react/button-has-type\n <button className={className.trigger}>{children}</button>\n )}\n </PopoverTrigger>\n <PopoverContent data-testid={contentTestId}>\n {header && (\n <div className={className.headerWrapper}>\n <div className={className.header}>{header}</div>\n <hr className={className.divider} />\n </div>\n )}\n <ScrollShadow className={className.body}>{content}</ScrollShadow>\n {footer && (\n <div className={className.footerWrapper}>\n <hr className={className.divider} />\n <div className={className.footer}>{footer}</div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n};\n","import Popover from './Popover';\n\nexport type { PopoverProps } from './Popover';\n\nexport { Popover };\n\nexport default Popover;\n"]}