@fuf-stack/pixels 0.27.1 → 0.28.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/Accordion/index.cjs +2 -2
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +1 -1
- package/dist/{Accordion-YYxiRT4J.d.cts → Accordion-CZ0Fqk-P.d.cts} +1 -1
- package/dist/{Accordion-YYxiRT4J.d.ts → Accordion-CZ0Fqk-P.d.ts} +1 -1
- package/dist/Breadcrumb/index.cjs +2 -2
- package/dist/Breadcrumb/index.d.cts +2 -2
- package/dist/Breadcrumb/index.d.ts +2 -2
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-DM-Cjn8v.d.cts → Breadcrumb-BUxbjexY.d.cts} +46 -20
- package/dist/{Breadcrumb-DM-Cjn8v.d.ts → Breadcrumb-BUxbjexY.d.ts} +46 -20
- package/dist/Json/index.cjs +2 -2
- package/dist/Json/index.d.cts +2 -2
- package/dist/Json/index.d.ts +2 -2
- package/dist/Json/index.js +1 -1
- package/dist/{Json-DHE3NwkX.d.cts → Json-BbMeuEvE.d.cts} +1 -1
- package/dist/{Json-DHE3NwkX.d.ts → Json-BbMeuEvE.d.ts} +1 -1
- package/dist/Tabs/index.cjs +47 -0
- package/dist/Tabs/index.cjs.map +1 -0
- package/dist/Tabs/index.d.cts +103 -0
- package/dist/Tabs/index.d.ts +103 -0
- package/dist/Tabs/index.js +47 -0
- package/dist/Tabs/index.js.map +1 -0
- package/dist/{chunk-YGANJ3JO.js → chunk-2HCWL2E3.js} +6 -9
- package/dist/chunk-2HCWL2E3.js.map +1 -0
- package/dist/{chunk-RSXWUJRD.js → chunk-4W3TNNMD.js} +24 -11
- package/dist/chunk-4W3TNNMD.js.map +1 -0
- package/dist/{chunk-NNVWLWOT.js → chunk-EIOL2HNA.js} +2 -2
- package/dist/chunk-EIOL2HNA.js.map +1 -0
- package/dist/{chunk-VU5NERDI.cjs → chunk-ELFKDGH4.cjs} +24 -11
- package/dist/chunk-ELFKDGH4.cjs.map +1 -0
- package/dist/{chunk-XV2ML6TH.cjs → chunk-Q4DBY25K.cjs} +6 -9
- package/dist/{chunk-XV2ML6TH.cjs.map → chunk-Q4DBY25K.cjs.map} +1 -1
- package/dist/{chunk-I3F5BBUU.cjs → chunk-VHEIRVBB.cjs} +2 -2
- package/dist/chunk-VHEIRVBB.cjs.map +1 -0
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/package.json +11 -4
- package/dist/chunk-I3F5BBUU.cjs.map +0 -1
- package/dist/chunk-NNVWLWOT.js.map +0 -1
- package/dist/chunk-RSXWUJRD.js.map +0 -1
- package/dist/chunk-VU5NERDI.cjs.map +0 -1
- package/dist/chunk-YGANJ3JO.js.map +0 -1
package/dist/Accordion/index.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVHEIRVBBcjs = require('../chunk-VHEIRVBB.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Accordion =
|
|
11
|
+
exports.Accordion = _chunkVHEIRVBBcjs.Accordion_default; exports.accordionVariants = _chunkVHEIRVBBcjs.accordionVariants; exports.default = _chunkVHEIRVBBcjs.Accordion_default2;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Accordion } from '../Accordion-
|
|
2
|
-
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-
|
|
1
|
+
import { A as Accordion } from '../Accordion-CZ0Fqk-P.cjs';
|
|
2
|
+
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-CZ0Fqk-P.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Accordion } from '../Accordion-
|
|
2
|
-
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-
|
|
1
|
+
import { A as Accordion } from '../Accordion-CZ0Fqk-P.js';
|
|
2
|
+
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-CZ0Fqk-P.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
package/dist/Accordion/index.js
CHANGED
|
@@ -179,7 +179,7 @@ type VariantProps = TVProps<typeof accordionVariants>;
|
|
|
179
179
|
type ClassName = TVClassName<typeof accordionVariants>;
|
|
180
180
|
interface AccordionProps extends VariantProps {
|
|
181
181
|
/** Props for AccordionItems, will render the accordion items programmatically */
|
|
182
|
-
accordionItems
|
|
182
|
+
accordionItems: AccordionItemProps[];
|
|
183
183
|
/** CSS class name */
|
|
184
184
|
className?: ClassName;
|
|
185
185
|
/** Array of keys for the AccordionItem(s) to be expanded by default */
|
|
@@ -179,7 +179,7 @@ type VariantProps = TVProps<typeof accordionVariants>;
|
|
|
179
179
|
type ClassName = TVClassName<typeof accordionVariants>;
|
|
180
180
|
interface AccordionProps extends VariantProps {
|
|
181
181
|
/** Props for AccordionItems, will render the accordion items programmatically */
|
|
182
|
-
accordionItems
|
|
182
|
+
accordionItems: AccordionItemProps[];
|
|
183
183
|
/** CSS class name */
|
|
184
184
|
className?: ClassName;
|
|
185
185
|
/** Array of keys for the AccordionItem(s) to be expanded by default */
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkELFKDGH4cjs = require('../chunk-ELFKDGH4.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Breadcrumb =
|
|
11
|
+
exports.Breadcrumb = _chunkELFKDGH4cjs.Breadcrumb_default; exports.breadcrumbVariants = _chunkELFKDGH4cjs.breadcrumbVariants; exports.default = _chunkELFKDGH4cjs.Breadcrumb_default2;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Breadcrumb } from '../Breadcrumb-
|
|
2
|
-
export { c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from '../Breadcrumb-
|
|
1
|
+
import { B as Breadcrumb } from '../Breadcrumb-BUxbjexY.cjs';
|
|
2
|
+
export { c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from '../Breadcrumb-BUxbjexY.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Breadcrumb } from '../Breadcrumb-
|
|
2
|
-
export { c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from '../Breadcrumb-
|
|
1
|
+
import { B as Breadcrumb } from '../Breadcrumb-BUxbjexY.js';
|
|
2
|
+
export { c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from '../Breadcrumb-BUxbjexY.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
package/dist/Breadcrumb/index.js
CHANGED
|
@@ -7,69 +7,95 @@ import { ReactNode } from 'react';
|
|
|
7
7
|
declare const breadcrumbVariants: tailwind_variants.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
|
-
|
|
11
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
10
|
+
nav?: tailwind_variants.ClassValue;
|
|
12
11
|
list?: tailwind_variants.ClassValue;
|
|
13
12
|
separator?: tailwind_variants.ClassValue;
|
|
13
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
14
14
|
item?: tailwind_variants.ClassValue;
|
|
15
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
} | {
|
|
18
19
|
[x: string]: {
|
|
19
20
|
[x: string]: tailwind_variants.ClassValue | {
|
|
20
|
-
|
|
21
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
21
|
+
nav?: tailwind_variants.ClassValue;
|
|
22
22
|
list?: tailwind_variants.ClassValue;
|
|
23
23
|
separator?: tailwind_variants.ClassValue;
|
|
24
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
24
25
|
item?: tailwind_variants.ClassValue;
|
|
26
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
} | {}, {
|
|
28
|
-
|
|
30
|
+
/** ellipsis slot */
|
|
31
|
+
ellipsis: string;
|
|
32
|
+
/** li > span slot */
|
|
33
|
+
item: string;
|
|
34
|
+
/** li slot */
|
|
35
|
+
itemBase: string;
|
|
36
|
+
/** ol slot */
|
|
29
37
|
list: string;
|
|
38
|
+
/** separator slot */
|
|
30
39
|
separator: string;
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
41
|
+
nav: string;
|
|
33
42
|
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
34
43
|
[key: string]: {
|
|
35
44
|
[key: string]: tailwind_variants.ClassValue | {
|
|
36
|
-
|
|
37
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
45
|
+
nav?: tailwind_variants.ClassValue;
|
|
38
46
|
list?: tailwind_variants.ClassValue;
|
|
39
47
|
separator?: tailwind_variants.ClassValue;
|
|
48
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
40
49
|
item?: tailwind_variants.ClassValue;
|
|
50
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
41
51
|
};
|
|
42
52
|
};
|
|
43
53
|
} | {}>, {
|
|
44
54
|
[key: string]: {
|
|
45
55
|
[key: string]: tailwind_variants.ClassValue | {
|
|
46
|
-
|
|
47
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
56
|
+
nav?: tailwind_variants.ClassValue;
|
|
48
57
|
list?: tailwind_variants.ClassValue;
|
|
49
58
|
separator?: tailwind_variants.ClassValue;
|
|
59
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
50
60
|
item?: tailwind_variants.ClassValue;
|
|
61
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
51
62
|
};
|
|
52
63
|
};
|
|
53
64
|
} | {}, {
|
|
54
|
-
|
|
65
|
+
/** ellipsis slot */
|
|
66
|
+
ellipsis: string;
|
|
67
|
+
/** li > span slot */
|
|
68
|
+
item: string;
|
|
69
|
+
/** li slot */
|
|
70
|
+
itemBase: string;
|
|
71
|
+
/** ol slot */
|
|
55
72
|
list: string;
|
|
73
|
+
/** separator slot */
|
|
56
74
|
separator: string;
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
76
|
+
nav: string;
|
|
59
77
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
60
|
-
|
|
78
|
+
/** ellipsis slot */
|
|
79
|
+
ellipsis: string;
|
|
80
|
+
/** li > span slot */
|
|
81
|
+
item: string;
|
|
82
|
+
/** li slot */
|
|
83
|
+
itemBase: string;
|
|
84
|
+
/** ol slot */
|
|
61
85
|
list: string;
|
|
86
|
+
/** separator slot */
|
|
62
87
|
separator: string;
|
|
63
|
-
|
|
64
|
-
|
|
88
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
89
|
+
nav: string;
|
|
65
90
|
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
66
91
|
[key: string]: {
|
|
67
92
|
[key: string]: tailwind_variants.ClassValue | {
|
|
68
|
-
|
|
69
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
93
|
+
nav?: tailwind_variants.ClassValue;
|
|
70
94
|
list?: tailwind_variants.ClassValue;
|
|
71
95
|
separator?: tailwind_variants.ClassValue;
|
|
96
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
72
97
|
item?: tailwind_variants.ClassValue;
|
|
98
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
73
99
|
};
|
|
74
100
|
};
|
|
75
101
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -87,7 +113,7 @@ type VariantProps = TVProps<typeof breadcrumbVariants>;
|
|
|
87
113
|
type ClassName = TVClassName<typeof breadcrumbVariants>;
|
|
88
114
|
interface BreadcrumbProps extends VariantProps {
|
|
89
115
|
/** Props for breadcrumbItem, will render the breadcrumb items programmatically */
|
|
90
|
-
breadcrumbItems
|
|
116
|
+
breadcrumbItems: BreadcrumbItemProps[];
|
|
91
117
|
/** CSS class name */
|
|
92
118
|
className?: ClassName;
|
|
93
119
|
/** color of the active BreadcrumbItem */
|
|
@@ -7,69 +7,95 @@ import { ReactNode } from 'react';
|
|
|
7
7
|
declare const breadcrumbVariants: tailwind_variants.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
|
-
|
|
11
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
10
|
+
nav?: tailwind_variants.ClassValue;
|
|
12
11
|
list?: tailwind_variants.ClassValue;
|
|
13
12
|
separator?: tailwind_variants.ClassValue;
|
|
13
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
14
14
|
item?: tailwind_variants.ClassValue;
|
|
15
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
} | {
|
|
18
19
|
[x: string]: {
|
|
19
20
|
[x: string]: tailwind_variants.ClassValue | {
|
|
20
|
-
|
|
21
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
21
|
+
nav?: tailwind_variants.ClassValue;
|
|
22
22
|
list?: tailwind_variants.ClassValue;
|
|
23
23
|
separator?: tailwind_variants.ClassValue;
|
|
24
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
24
25
|
item?: tailwind_variants.ClassValue;
|
|
26
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
} | {}, {
|
|
28
|
-
|
|
30
|
+
/** ellipsis slot */
|
|
31
|
+
ellipsis: string;
|
|
32
|
+
/** li > span slot */
|
|
33
|
+
item: string;
|
|
34
|
+
/** li slot */
|
|
35
|
+
itemBase: string;
|
|
36
|
+
/** ol slot */
|
|
29
37
|
list: string;
|
|
38
|
+
/** separator slot */
|
|
30
39
|
separator: string;
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
41
|
+
nav: string;
|
|
33
42
|
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
34
43
|
[key: string]: {
|
|
35
44
|
[key: string]: tailwind_variants.ClassValue | {
|
|
36
|
-
|
|
37
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
45
|
+
nav?: tailwind_variants.ClassValue;
|
|
38
46
|
list?: tailwind_variants.ClassValue;
|
|
39
47
|
separator?: tailwind_variants.ClassValue;
|
|
48
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
40
49
|
item?: tailwind_variants.ClassValue;
|
|
50
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
41
51
|
};
|
|
42
52
|
};
|
|
43
53
|
} | {}>, {
|
|
44
54
|
[key: string]: {
|
|
45
55
|
[key: string]: tailwind_variants.ClassValue | {
|
|
46
|
-
|
|
47
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
56
|
+
nav?: tailwind_variants.ClassValue;
|
|
48
57
|
list?: tailwind_variants.ClassValue;
|
|
49
58
|
separator?: tailwind_variants.ClassValue;
|
|
59
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
50
60
|
item?: tailwind_variants.ClassValue;
|
|
61
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
51
62
|
};
|
|
52
63
|
};
|
|
53
64
|
} | {}, {
|
|
54
|
-
|
|
65
|
+
/** ellipsis slot */
|
|
66
|
+
ellipsis: string;
|
|
67
|
+
/** li > span slot */
|
|
68
|
+
item: string;
|
|
69
|
+
/** li slot */
|
|
70
|
+
itemBase: string;
|
|
71
|
+
/** ol slot */
|
|
55
72
|
list: string;
|
|
73
|
+
/** separator slot */
|
|
56
74
|
separator: string;
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
76
|
+
nav: string;
|
|
59
77
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
60
|
-
|
|
78
|
+
/** ellipsis slot */
|
|
79
|
+
ellipsis: string;
|
|
80
|
+
/** li > span slot */
|
|
81
|
+
item: string;
|
|
82
|
+
/** li slot */
|
|
83
|
+
itemBase: string;
|
|
84
|
+
/** ol slot */
|
|
61
85
|
list: string;
|
|
86
|
+
/** separator slot */
|
|
62
87
|
separator: string;
|
|
63
|
-
|
|
64
|
-
|
|
88
|
+
/** nav slot, breadcrumb base slot in nextui */
|
|
89
|
+
nav: string;
|
|
65
90
|
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
66
91
|
[key: string]: {
|
|
67
92
|
[key: string]: tailwind_variants.ClassValue | {
|
|
68
|
-
|
|
69
|
-
wrapper?: tailwind_variants.ClassValue;
|
|
93
|
+
nav?: tailwind_variants.ClassValue;
|
|
70
94
|
list?: tailwind_variants.ClassValue;
|
|
71
95
|
separator?: tailwind_variants.ClassValue;
|
|
96
|
+
ellipsis?: tailwind_variants.ClassValue;
|
|
72
97
|
item?: tailwind_variants.ClassValue;
|
|
98
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
73
99
|
};
|
|
74
100
|
};
|
|
75
101
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -87,7 +113,7 @@ type VariantProps = TVProps<typeof breadcrumbVariants>;
|
|
|
87
113
|
type ClassName = TVClassName<typeof breadcrumbVariants>;
|
|
88
114
|
interface BreadcrumbProps extends VariantProps {
|
|
89
115
|
/** Props for breadcrumbItem, will render the breadcrumb items programmatically */
|
|
90
|
-
breadcrumbItems
|
|
116
|
+
breadcrumbItems: BreadcrumbItemProps[];
|
|
91
117
|
/** CSS class name */
|
|
92
118
|
className?: ClassName;
|
|
93
119
|
/** color of the active BreadcrumbItem */
|
package/dist/Json/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQ4DBY25Kcjs = require('../chunk-Q4DBY25K.cjs');
|
|
5
5
|
require('../chunk-7TIFKRWY.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Json =
|
|
10
|
+
exports.Json = _chunkQ4DBY25Kcjs.Json_default; exports.default = _chunkQ4DBY25Kcjs.Json_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Json/index.d.cts
CHANGED
package/dist/Json/index.d.ts
CHANGED
package/dist/Json/index.js
CHANGED
|
@@ -13,6 +13,6 @@ interface JsonProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Json renderer based on [react-json-view](https://mac-s-g.github.io/react-json-view/demo/dist/)
|
|
15
15
|
*/
|
|
16
|
-
declare const Json: ({ className, collapsed,
|
|
16
|
+
declare const Json: ({ className, collapsed, value }: JsonProps) => react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
|
18
18
|
export { Json as J, type JsonProps as a };
|
|
@@ -13,6 +13,6 @@ interface JsonProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Json renderer based on [react-json-view](https://mac-s-g.github.io/react-json-view/demo/dist/)
|
|
15
15
|
*/
|
|
16
|
-
declare const Json: ({ className, collapsed,
|
|
16
|
+
declare const Json: ({ className, collapsed, value }: JsonProps) => react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
|
18
18
|
export { Json as J, type JsonProps as a };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-DZUJEN5N.cjs');
|
|
2
|
+
|
|
3
|
+
// src/Tabs/Tabs.tsx
|
|
4
|
+
var _tabs = require('@nextui-org/tabs');
|
|
5
|
+
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
6
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
7
|
+
var tabsVariants = _pixelutils.tv.call(void 0, {
|
|
8
|
+
slots: {
|
|
9
|
+
base: "",
|
|
10
|
+
tabList: "",
|
|
11
|
+
tab: "",
|
|
12
|
+
tabContent: "",
|
|
13
|
+
cursor: "",
|
|
14
|
+
panel: ""
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var Tabs = ({
|
|
18
|
+
className = void 0,
|
|
19
|
+
fullWidth = true,
|
|
20
|
+
selectedKey = void 0,
|
|
21
|
+
tabs,
|
|
22
|
+
onSelectionChange = void 0
|
|
23
|
+
}) => {
|
|
24
|
+
const variants = tabsVariants();
|
|
25
|
+
const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
|
|
26
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27
|
+
_tabs.Tabs,
|
|
28
|
+
{
|
|
29
|
+
"aria-label": "Tabs",
|
|
30
|
+
classNames,
|
|
31
|
+
fullWidth,
|
|
32
|
+
items: tabs || [],
|
|
33
|
+
onSelectionChange,
|
|
34
|
+
selectedKey,
|
|
35
|
+
size: "md",
|
|
36
|
+
children: (item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _tabs.Tab, { title: item.label, children: item.content }, item.id)
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
var Tabs_default = Tabs;
|
|
41
|
+
|
|
42
|
+
// src/Tabs/index.ts
|
|
43
|
+
var Tabs_default2 = Tabs_default;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.default = Tabs_default2;
|
|
47
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/pixels/dist/Tabs/index.cjs","../../src/Tabs/Tabs.tsx","../../src/Tabs/index.ts"],"names":["Tabs_default"],"mappings":"AAAA,0GAA8B;AAC9B;AACA;ACCA,wCAAiD;AAEjD,oDAAyC;AAsDjC,+CAAA;AApDD,IAAM,aAAA,EAAe,4BAAA;AAAG,EAC7B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IACN,OAAA,EAAS,EAAA;AAAA,IACT,GAAA,EAAK,EAAA;AAAA,IACL,UAAA,EAAY,EAAA;AAAA,IACZ,MAAA,EAAQ,EAAA;AAAA,IACR,KAAA,EAAO;AAAA,EACT;AACF,CAAC,CAAA;AAsBD,IAAM,KAAA,EAAO,CAAC;AAAA,EACZ,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,UAAA,EAAY,IAAA;AAAA,EACZ,YAAA,EAAc,KAAA,CAAA;AAAA,EACd,IAAA;AAAA,EACA,kBAAA,EAAoB,KAAA;AACtB,CAAA,EAAA,GAAiB;AACf,EAAA,MAAM,SAAA,EAAW,YAAA,CAAa,CAAA;AAC9B,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,uBACE,6BAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAW,MAAA;AAAA,MACX,UAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA,EAAO,KAAA,GAAQ,CAAC,CAAA;AAAA,MAChB,iBAAA;AAAA,MACA,WAAA;AAAA,MACA,IAAA,EAAK,IAAA;AAAA,MAEJ,QAAA,EAAA,CAAC,IAAA,EAAA,mBACA,6BAAA,SAAC,EAAA,EAAsB,KAAA,EAAO,IAAA,CAAK,KAAA,EAChC,QAAA,EAAA,IAAA,CAAK,QAAA,CAAA,EADM,IAAA,CAAK,EAEnB;AAAA,IAAA;AAAA,EAEJ,CAAA;AAEJ,CAAA;AAEA,IAAO,aAAA,EAAQ,IAAA;AD3Bf;AACA;AErCA,IAAOA,cAAAA,EAAQ,YAAA;AFuCf;AACE;AACF,gCAAC","file":"/home/runner/work/uniform/uniform/packages/pixels/dist/Tabs/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Tab as NextTab, Tabs as NextTabs } from '@nextui-org/tabs';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const tabsVariants = tv({\n slots: {\n base: '',\n tabList: '',\n tab: '',\n tabContent: '',\n cursor: '',\n panel: '',\n },\n});\n\ntype VariantProps = TVProps<typeof tabsVariants>;\ntype ClassName = TVClassName<typeof tabsVariants>;\n\nexport interface TabOptions {\n content: ReactNode;\n id: string;\n label: string;\n}\n\nexport interface TabsProps extends VariantProps {\n className?: ClassName;\n fullWidth?: boolean;\n onSelectionChange?: (key: React.Key) => void;\n selectedKey?: number | null | undefined;\n tabs: TabOptions[];\n}\n\n/**\n * Tabs component based on [NextUI Tabs](https://nextui.org/docs/components/tabs)\n */\nconst Tabs = ({\n className = undefined,\n fullWidth = true,\n selectedKey = undefined,\n tabs,\n onSelectionChange = undefined,\n}: TabsProps) => {\n const variants = tabsVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextTabs\n aria-label=\"Tabs\"\n classNames={classNames}\n fullWidth={fullWidth}\n items={tabs || []}\n onSelectionChange={onSelectionChange}\n selectedKey={selectedKey}\n size=\"md\"\n >\n {(item) => (\n <NextTab key={item.id} title={item.label}>\n {item.content}\n </NextTab>\n )}\n </NextTabs>\n );\n};\n\nexport default Tabs;\n","import type { TabOptions } from './Tabs';\n\nimport Tabs from './Tabs';\n\nexport default Tabs;\n\nexport type { TabOptions };\n"]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
|
|
7
|
+
declare const tabsVariants: tailwind_variants.TVReturnType<{
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
10
|
+
base?: tailwind_variants.ClassValue;
|
|
11
|
+
tabList?: tailwind_variants.ClassValue;
|
|
12
|
+
tab?: tailwind_variants.ClassValue;
|
|
13
|
+
tabContent?: tailwind_variants.ClassValue;
|
|
14
|
+
cursor?: tailwind_variants.ClassValue;
|
|
15
|
+
panel?: tailwind_variants.ClassValue;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
[x: string]: {
|
|
20
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
21
|
+
base?: tailwind_variants.ClassValue;
|
|
22
|
+
tabList?: tailwind_variants.ClassValue;
|
|
23
|
+
tab?: tailwind_variants.ClassValue;
|
|
24
|
+
tabContent?: tailwind_variants.ClassValue;
|
|
25
|
+
cursor?: tailwind_variants.ClassValue;
|
|
26
|
+
panel?: tailwind_variants.ClassValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
} | {}, {
|
|
30
|
+
base: string;
|
|
31
|
+
tabList: string;
|
|
32
|
+
tab: string;
|
|
33
|
+
tabContent: string;
|
|
34
|
+
cursor: string;
|
|
35
|
+
panel: string;
|
|
36
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
39
|
+
base?: tailwind_variants.ClassValue;
|
|
40
|
+
tabList?: tailwind_variants.ClassValue;
|
|
41
|
+
tab?: tailwind_variants.ClassValue;
|
|
42
|
+
tabContent?: tailwind_variants.ClassValue;
|
|
43
|
+
cursor?: tailwind_variants.ClassValue;
|
|
44
|
+
panel?: tailwind_variants.ClassValue;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
} | {}>, {
|
|
48
|
+
[key: string]: {
|
|
49
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
50
|
+
base?: tailwind_variants.ClassValue;
|
|
51
|
+
tabList?: tailwind_variants.ClassValue;
|
|
52
|
+
tab?: tailwind_variants.ClassValue;
|
|
53
|
+
tabContent?: tailwind_variants.ClassValue;
|
|
54
|
+
cursor?: tailwind_variants.ClassValue;
|
|
55
|
+
panel?: tailwind_variants.ClassValue;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
} | {}, {
|
|
59
|
+
base: string;
|
|
60
|
+
tabList: string;
|
|
61
|
+
tab: string;
|
|
62
|
+
tabContent: string;
|
|
63
|
+
cursor: string;
|
|
64
|
+
panel: string;
|
|
65
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
66
|
+
base: string;
|
|
67
|
+
tabList: string;
|
|
68
|
+
tab: string;
|
|
69
|
+
tabContent: string;
|
|
70
|
+
cursor: string;
|
|
71
|
+
panel: string;
|
|
72
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
73
|
+
[key: string]: {
|
|
74
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
75
|
+
base?: tailwind_variants.ClassValue;
|
|
76
|
+
tabList?: tailwind_variants.ClassValue;
|
|
77
|
+
tab?: tailwind_variants.ClassValue;
|
|
78
|
+
tabContent?: tailwind_variants.ClassValue;
|
|
79
|
+
cursor?: tailwind_variants.ClassValue;
|
|
80
|
+
panel?: tailwind_variants.ClassValue;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
84
|
+
type VariantProps = TVProps<typeof tabsVariants>;
|
|
85
|
+
type ClassName = TVClassName<typeof tabsVariants>;
|
|
86
|
+
interface TabOptions {
|
|
87
|
+
content: ReactNode;
|
|
88
|
+
id: string;
|
|
89
|
+
label: string;
|
|
90
|
+
}
|
|
91
|
+
interface TabsProps extends VariantProps {
|
|
92
|
+
className?: ClassName;
|
|
93
|
+
fullWidth?: boolean;
|
|
94
|
+
onSelectionChange?: (key: React.Key) => void;
|
|
95
|
+
selectedKey?: number | null | undefined;
|
|
96
|
+
tabs: TabOptions[];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Tabs component based on [NextUI Tabs](https://nextui.org/docs/components/tabs)
|
|
100
|
+
*/
|
|
101
|
+
declare const Tabs: ({ className, fullWidth, selectedKey, tabs, onSelectionChange, }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
103
|
+
export { type TabOptions, Tabs as default };
|