@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.
- package/dist/Alert/index.cjs +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/Button/index.cjs +2 -2
- package/dist/Button/index.d.cts +2 -2
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DykH6Lmz.d.cts → Button-BNrJYJDH.d.cts} +3 -1
- package/dist/{Button-DykH6Lmz.d.ts → Button-BNrJYJDH.d.ts} +3 -1
- package/dist/Json/index.cjs +3 -3
- package/dist/Json/index.js +2 -2
- package/dist/Label/index.cjs +2 -2
- package/dist/Label/index.d.cts +2 -2
- package/dist/Label/index.d.ts +2 -2
- package/dist/Label/index.js +1 -1
- package/dist/Label-B1a1krk8.d.cts +432 -0
- package/dist/Label-B1a1krk8.d.ts +432 -0
- package/dist/Popover/index.cjs +3 -3
- package/dist/Popover/index.d.cts +3 -3
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/{Popover-Bxe50qlw.d.cts → Popover-Czc5-4V1.d.cts} +1 -1
- package/dist/{Popover-DhF3bXJE.d.ts → Popover-Dm_Dsjqw.d.ts} +1 -1
- package/dist/ScrollShadow/index.cjs +3 -3
- package/dist/ScrollShadow/index.d.cts +8 -2
- package/dist/ScrollShadow/index.d.ts +8 -2
- package/dist/ScrollShadow/index.js +1 -1
- package/dist/Tooltip/index.cjs +3 -3
- package/dist/Tooltip/index.js +2 -2
- package/dist/{chunk-4X7MUSJB.cjs → chunk-5NSWKHXF.cjs} +3 -3
- package/dist/{chunk-4X7MUSJB.cjs.map → chunk-5NSWKHXF.cjs.map} +1 -1
- package/dist/{chunk-XWKXRSNY.cjs → chunk-5X2LDUAC.cjs} +3 -3
- package/dist/{chunk-XWKXRSNY.cjs.map → chunk-5X2LDUAC.cjs.map} +1 -1
- package/dist/{chunk-RELR2OCI.js → chunk-6XNLMOET.js} +7 -5
- package/dist/chunk-6XNLMOET.js.map +1 -0
- package/dist/{chunk-OXXSHHVG.js → chunk-DBVM5SIA.js} +5 -5
- package/dist/{chunk-OXXSHHVG.js.map → chunk-DBVM5SIA.js.map} +1 -1
- package/dist/{chunk-TX2VP4J7.cjs → chunk-FUBGS3G4.cjs} +15 -2
- package/dist/chunk-FUBGS3G4.cjs.map +1 -0
- package/dist/{chunk-PYXJNORH.cjs → chunk-J44KQ3VW.cjs} +3 -3
- package/dist/{chunk-PYXJNORH.cjs.map → chunk-J44KQ3VW.cjs.map} +1 -1
- package/dist/{chunk-AN7A66NS.cjs → chunk-K6UF4AGX.cjs} +7 -5
- package/dist/chunk-K6UF4AGX.cjs.map +1 -0
- package/dist/{chunk-Q2SVN66A.cjs → chunk-KWSGA623.cjs} +5 -5
- package/dist/chunk-KWSGA623.cjs.map +1 -0
- package/dist/{chunk-PLJWIGRS.cjs → chunk-PHQVYJS2.cjs} +62 -6
- package/dist/chunk-PHQVYJS2.cjs.map +1 -0
- package/dist/{chunk-5BUCFDWR.js → chunk-PUMF3NYY.js} +2 -2
- package/dist/{chunk-EQVC4PJE.js → chunk-WDXULV6M.js} +15 -2
- package/dist/chunk-WDXULV6M.js.map +1 -0
- package/dist/{chunk-LQZEECJY.js → chunk-WZ5XQQGM.js} +2 -2
- package/dist/chunk-X6JZFO33.js +127 -0
- package/dist/chunk-X6JZFO33.js.map +1 -0
- package/dist/{chunk-BEEDCTDZ.js → chunk-XV3I2A5C.js} +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/package.json +2 -2
- package/dist/Label-Bp9WZiDB.d.cts +0 -152
- package/dist/Label-Bp9WZiDB.d.ts +0 -152
- package/dist/chunk-AN7A66NS.cjs.map +0 -1
- package/dist/chunk-EQVC4PJE.js.map +0 -1
- package/dist/chunk-KIRRQFSZ.js +0 -71
- package/dist/chunk-KIRRQFSZ.js.map +0 -1
- package/dist/chunk-PLJWIGRS.cjs.map +0 -1
- package/dist/chunk-Q2SVN66A.cjs.map +0 -1
- package/dist/chunk-RELR2OCI.js.map +0 -1
- package/dist/chunk-TX2VP4J7.cjs.map +0 -1
- /package/dist/{chunk-5BUCFDWR.js.map → chunk-PUMF3NYY.js.map} +0 -0
- /package/dist/{chunk-LQZEECJY.js.map → chunk-WZ5XQQGM.js.map} +0 -0
- /package/dist/{chunk-BEEDCTDZ.js.map → chunk-XV3I2A5C.js.map} +0 -0
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
isIconOnly: {
|
|
10
|
-
true: {
|
|
11
|
-
content: string;
|
|
12
|
-
};
|
|
13
|
-
false: {
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
hasEndContent: {
|
|
18
|
-
true: {
|
|
19
|
-
base: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
base: string;
|
|
24
|
-
closeButton: string;
|
|
25
|
-
content: string;
|
|
26
|
-
dot: string;
|
|
27
|
-
icon: string;
|
|
28
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
29
|
-
isIconOnly: {
|
|
30
|
-
true: {
|
|
31
|
-
content: string;
|
|
32
|
-
};
|
|
33
|
-
false: {
|
|
34
|
-
content: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
hasEndContent: {
|
|
38
|
-
true: {
|
|
39
|
-
base: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}, {
|
|
43
|
-
isIconOnly: {
|
|
44
|
-
true: {
|
|
45
|
-
content: string;
|
|
46
|
-
};
|
|
47
|
-
false: {
|
|
48
|
-
content: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
hasEndContent: {
|
|
52
|
-
true: {
|
|
53
|
-
base: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}>, {
|
|
57
|
-
isIconOnly: {
|
|
58
|
-
true: {
|
|
59
|
-
content: string;
|
|
60
|
-
};
|
|
61
|
-
false: {
|
|
62
|
-
content: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
hasEndContent: {
|
|
66
|
-
true: {
|
|
67
|
-
base: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
}, {
|
|
71
|
-
base: string;
|
|
72
|
-
closeButton: string;
|
|
73
|
-
content: string;
|
|
74
|
-
dot: string;
|
|
75
|
-
icon: string;
|
|
76
|
-
}, tailwind_variants.TVReturnType<{
|
|
77
|
-
isIconOnly: {
|
|
78
|
-
true: {
|
|
79
|
-
content: string;
|
|
80
|
-
};
|
|
81
|
-
false: {
|
|
82
|
-
content: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
hasEndContent: {
|
|
86
|
-
true: {
|
|
87
|
-
base: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}, {
|
|
91
|
-
base: string;
|
|
92
|
-
closeButton: string;
|
|
93
|
-
content: string;
|
|
94
|
-
dot: string;
|
|
95
|
-
icon: string;
|
|
96
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
97
|
-
isIconOnly: {
|
|
98
|
-
true: {
|
|
99
|
-
content: string;
|
|
100
|
-
};
|
|
101
|
-
false: {
|
|
102
|
-
content: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
hasEndContent: {
|
|
106
|
-
true: {
|
|
107
|
-
base: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, {
|
|
111
|
-
isIconOnly: {
|
|
112
|
-
true: {
|
|
113
|
-
content: string;
|
|
114
|
-
};
|
|
115
|
-
false: {
|
|
116
|
-
content: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
hasEndContent: {
|
|
120
|
-
true: {
|
|
121
|
-
base: string;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
}>, unknown, unknown, undefined>>;
|
|
125
|
-
type VariantProps = TVProps<typeof labelVariants>;
|
|
126
|
-
type ClassName = TVClassName<typeof labelVariants>;
|
|
127
|
-
interface LabelProps extends VariantProps {
|
|
128
|
-
/** content of the label */
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
/** CSS class name */
|
|
131
|
-
className?: ClassName;
|
|
132
|
-
/** color of the label */
|
|
133
|
-
color?: ChipProps['color'];
|
|
134
|
-
/** element to be rendered in the right side of the label */
|
|
135
|
-
endContent?: ChipProps['endContent'];
|
|
136
|
-
/** optional label icon, when only icon provided without children and endContent */
|
|
137
|
-
icon?: ReactNode;
|
|
138
|
-
/** add close button to endContent */
|
|
139
|
-
onClose?: ChipProps['onClose'];
|
|
140
|
-
/** radius of the label */
|
|
141
|
-
radius?: ChipProps['radius'];
|
|
142
|
-
/** size of the label */
|
|
143
|
-
size?: ChipProps['size'];
|
|
144
|
-
/** style variant of the label */
|
|
145
|
-
variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)
|
|
149
|
-
*/
|
|
150
|
-
declare const Label: ({ children, className: _className, color, endContent, icon, onClose, radius, size, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
151
|
-
|
|
152
|
-
export { Label as L, type LabelProps as a, labelVariants as l };
|
package/dist/Label-Bp9WZiDB.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
isIconOnly: {
|
|
10
|
-
true: {
|
|
11
|
-
content: string;
|
|
12
|
-
};
|
|
13
|
-
false: {
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
hasEndContent: {
|
|
18
|
-
true: {
|
|
19
|
-
base: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
base: string;
|
|
24
|
-
closeButton: string;
|
|
25
|
-
content: string;
|
|
26
|
-
dot: string;
|
|
27
|
-
icon: string;
|
|
28
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
29
|
-
isIconOnly: {
|
|
30
|
-
true: {
|
|
31
|
-
content: string;
|
|
32
|
-
};
|
|
33
|
-
false: {
|
|
34
|
-
content: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
hasEndContent: {
|
|
38
|
-
true: {
|
|
39
|
-
base: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}, {
|
|
43
|
-
isIconOnly: {
|
|
44
|
-
true: {
|
|
45
|
-
content: string;
|
|
46
|
-
};
|
|
47
|
-
false: {
|
|
48
|
-
content: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
hasEndContent: {
|
|
52
|
-
true: {
|
|
53
|
-
base: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}>, {
|
|
57
|
-
isIconOnly: {
|
|
58
|
-
true: {
|
|
59
|
-
content: string;
|
|
60
|
-
};
|
|
61
|
-
false: {
|
|
62
|
-
content: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
hasEndContent: {
|
|
66
|
-
true: {
|
|
67
|
-
base: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
}, {
|
|
71
|
-
base: string;
|
|
72
|
-
closeButton: string;
|
|
73
|
-
content: string;
|
|
74
|
-
dot: string;
|
|
75
|
-
icon: string;
|
|
76
|
-
}, tailwind_variants.TVReturnType<{
|
|
77
|
-
isIconOnly: {
|
|
78
|
-
true: {
|
|
79
|
-
content: string;
|
|
80
|
-
};
|
|
81
|
-
false: {
|
|
82
|
-
content: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
hasEndContent: {
|
|
86
|
-
true: {
|
|
87
|
-
base: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}, {
|
|
91
|
-
base: string;
|
|
92
|
-
closeButton: string;
|
|
93
|
-
content: string;
|
|
94
|
-
dot: string;
|
|
95
|
-
icon: string;
|
|
96
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
97
|
-
isIconOnly: {
|
|
98
|
-
true: {
|
|
99
|
-
content: string;
|
|
100
|
-
};
|
|
101
|
-
false: {
|
|
102
|
-
content: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
hasEndContent: {
|
|
106
|
-
true: {
|
|
107
|
-
base: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, {
|
|
111
|
-
isIconOnly: {
|
|
112
|
-
true: {
|
|
113
|
-
content: string;
|
|
114
|
-
};
|
|
115
|
-
false: {
|
|
116
|
-
content: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
hasEndContent: {
|
|
120
|
-
true: {
|
|
121
|
-
base: string;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
}>, unknown, unknown, undefined>>;
|
|
125
|
-
type VariantProps = TVProps<typeof labelVariants>;
|
|
126
|
-
type ClassName = TVClassName<typeof labelVariants>;
|
|
127
|
-
interface LabelProps extends VariantProps {
|
|
128
|
-
/** content of the label */
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
/** CSS class name */
|
|
131
|
-
className?: ClassName;
|
|
132
|
-
/** color of the label */
|
|
133
|
-
color?: ChipProps['color'];
|
|
134
|
-
/** element to be rendered in the right side of the label */
|
|
135
|
-
endContent?: ChipProps['endContent'];
|
|
136
|
-
/** optional label icon, when only icon provided without children and endContent */
|
|
137
|
-
icon?: ReactNode;
|
|
138
|
-
/** add close button to endContent */
|
|
139
|
-
onClose?: ChipProps['onClose'];
|
|
140
|
-
/** radius of the label */
|
|
141
|
-
radius?: ChipProps['radius'];
|
|
142
|
-
/** size of the label */
|
|
143
|
-
size?: ChipProps['size'];
|
|
144
|
-
/** style variant of the label */
|
|
145
|
-
variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)
|
|
149
|
-
*/
|
|
150
|
-
declare const Label: ({ children, className: _className, color, endContent, icon, onClose, radius, size, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
151
|
-
|
|
152
|
-
export { Label as L, type LabelProps as a, labelVariants as l };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-AN7A66NS.cjs","../src/Button/Button.tsx","../src/Button/subcomponents/LoadingSpinner.tsx","../src/Button/index.ts"],"names":["jsxs","jsx","Button_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACAA,wCAAqC;AACrC,sCAA6C;AAE7C,oDAAmB;ADCnB;AACA;AEJE,+CAAA;AADF,IAAO,uBAAA,EAAQ,CAAA,EAAA,mBACb,8BAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,SAAA,EAAU,mCAA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A,EAAS,KAAA,CAAA;AAAA,EACT,KAAA,EAAO,KAAA,CAAA;AAAA,EACP,QAAA,EAAU;AACZ,CAAA,EAAA,GAAmB;AACjB,EAAA,uBACEA,8BAAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAY,SAAA;AAAA,MACZ,SAAA,EAAW,cAAA,CAAe,EAAE,KAAA,EAAO,OAAA,EAAS,UAAU,CAAC,CAAA;AAAA,MACvD,KAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,gBAAA;AAAA,MACA,aAAA,EAAe,gBAAA;AAAA,MACf,UAAA,EAAY,QAAA;AAAA,MACZ,UAAA,EAAY,CAAC,CAAA,CAAE,KAAA,GAAQ,CAAC,QAAA,CAAA;AAAA,MACxB,SAAA,EAAW,OAAA;AAAA,MACX,OAAA,EAAS,OAAA;AAAA,MACT,MAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAA,kBAASC,6BAAAA,sBAAC,EAAA,CAAA,CAAe,CAAA;AAAA,MACzB,IAAA;AAAA,MACA,OAAA;AAAA,MAEC,QAAA,EAAA;AAAA,QAAA,IAAA;AAAA,QACA;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,CAAA;AAEJ,CAAA;AAEA,IAAO,eAAA,EAAQ,MAAA;ADRf;AACA;AG5IA,IAAOC,gBAAAA,EAAQ,cAAA;AH8If;AACA;AACE;AACA;AACA;AACF,4HAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-AN7A66NS.cjs","sourcesContent":[null,"import type { TVProps } from '@fuf-stack/pixel-utils';\nimport type { ButtonProps as HeroButtonProps } from '@heroui/button';\nimport type { ReactNode } from 'react';\n\nimport { Button as HeroButton } from '@heroui/button';\nimport { button as heroButtonVariants } from '@heroui/theme';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\nimport LoadingSpinner from './subcomponents/LoadingSpinner';\n\nexport const buttonVariants = tv({\n base: '',\n variants: {\n color: {\n info: '',\n ...heroButtonVariants.variants.color,\n },\n variant: {\n ...heroButtonVariants.variants.variant,\n },\n size: {\n ...heroButtonVariants.variants.size,\n },\n },\n compoundVariants: [\n // white text on solid / shadow success button\n {\n color: 'success',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n // white text on solid / shadow warning button\n {\n color: 'warning',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n {\n color: 'info',\n variant: 'solid',\n class: 'bg-info text-info-foreground',\n },\n {\n color: 'info',\n variant: 'shadow',\n class: 'text-info-foreground\" bg-info shadow-lg shadow-info/40',\n },\n {\n color: 'info',\n variant: 'bordered',\n class: 'border-medium border-info bg-transparent text-info',\n },\n {\n color: 'info',\n variant: 'flat',\n class: 'bg-info/20 text-info-600',\n },\n {\n color: 'info',\n variant: 'faded',\n class: 'border-default bg-default-100 text-info',\n },\n {\n color: 'info',\n variant: 'light',\n class: 'bg-transparent text-info data-[hover=true]:bg-info-100',\n },\n {\n color: 'info',\n variant: 'ghost',\n class:\n 'border-info text-info data-[hover=true]:!bg-info data-[hover=true]:!text-info-foreground',\n },\n ],\n});\n\ntype VariantProps = TVProps<typeof buttonVariants>;\n\nexport interface ButtonProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** content of the button */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the button */\n color?: HeroButtonProps['color'];\n /** disables the button */\n disabled?: boolean;\n /** disables all animations */\n disableAnimation?: boolean;\n /** shows loading animation */\n loading?: boolean;\n /** optional icon */\n icon?: ReactNode;\n /** click event handler */\n onClick?: HeroButtonProps['onPress'];\n /** border radius size */\n radius?: HeroButtonProps['radius'];\n /** size options */\n size?: HeroButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** HTML button type attribute */\n type?: 'button' | 'submit' | 'reset' | undefined;\n /** visual style variant */\n variant?: HeroButtonProps['variant'];\n}\n\n/**\n * Button component based on [HeroUI Button](https://www.heroui.com//docs/components/button)\n */\nconst Button = ({\n ariaLabel = undefined,\n children = undefined,\n className = undefined,\n color = 'default',\n disabled = false,\n disableAnimation = false,\n icon = undefined,\n loading = false,\n onClick = undefined,\n radius = undefined,\n size = undefined,\n testId = undefined,\n type = undefined,\n variant = 'solid',\n}: ButtonProps) => {\n return (\n <HeroButton\n aria-label={ariaLabel}\n className={buttonVariants({ color, variant, className })}\n color={color}\n data-testid={testId}\n disableAnimation={disableAnimation}\n disableRipple={disableAnimation}\n isDisabled={disabled}\n isIconOnly={!!(icon && !children)}\n isLoading={loading}\n onPress={onClick}\n radius={radius}\n size={size}\n spinner={<LoadingSpinner />}\n type={type}\n variant={variant}\n >\n {icon}\n {children}\n </HeroButton>\n );\n};\n\nexport default Button;\n","/**\n * svg loading spinner for button\n * @see https://www.heroui.com//docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"h-5 w-5 animate-spin text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n","import Button, { buttonVariants } from './Button';\n\nexport type { ButtonProps } from './Button';\n\nexport { Button, buttonVariants };\n\nexport default Button;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@heroui/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the scroll box */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n testId = undefined,\n}: ScrollShadowProps) => (\n <ScrollShadow className={cn(className)} data-testid={testId}>\n {children}\n </ScrollShadow>\n);\n"],"mappings":";AAEA,SAAS,oBAAoB;AAE7B,SAAS,UAAU;AAmBjB;AALF,IAAO,uBAAQ,CAAC;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AACX,MACE,oBAAC,gBAAa,WAAW,GAAG,SAAS,GAAG,eAAa,QAClD,UACH;","names":[]}
|
package/dist/chunk-KIRRQFSZ.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// src/Label/Label.tsx
|
|
2
|
-
import { Chip as HeroLabel } from "@heroui/chip";
|
|
3
|
-
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
var labelVariants = tv({
|
|
6
|
-
slots: {
|
|
7
|
-
base: "",
|
|
8
|
-
closeButton: "",
|
|
9
|
-
content: "",
|
|
10
|
-
dot: "",
|
|
11
|
-
icon: ""
|
|
12
|
-
},
|
|
13
|
-
variants: {
|
|
14
|
-
isIconOnly: {
|
|
15
|
-
true: {
|
|
16
|
-
content: "px-1"
|
|
17
|
-
},
|
|
18
|
-
false: {
|
|
19
|
-
content: "flex items-center gap-2"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
hasEndContent: {
|
|
23
|
-
true: {
|
|
24
|
-
base: "pr-2"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
var Label = ({
|
|
30
|
-
children = void 0,
|
|
31
|
-
className: _className = void 0,
|
|
32
|
-
color = "default",
|
|
33
|
-
endContent = void 0,
|
|
34
|
-
icon = void 0,
|
|
35
|
-
onClose = void 0,
|
|
36
|
-
radius = "full",
|
|
37
|
-
size = "md",
|
|
38
|
-
variant = "solid"
|
|
39
|
-
}) => {
|
|
40
|
-
const isIconOnly = !!icon && !children && !endContent;
|
|
41
|
-
const hasEndContent = !!endContent;
|
|
42
|
-
const variants = labelVariants({ isIconOnly, hasEndContent });
|
|
43
|
-
const classNames = variantsToClassNames(variants, _className, "base");
|
|
44
|
-
return /* @__PURE__ */ jsxs(
|
|
45
|
-
HeroLabel,
|
|
46
|
-
{
|
|
47
|
-
classNames,
|
|
48
|
-
color,
|
|
49
|
-
endContent,
|
|
50
|
-
radius,
|
|
51
|
-
onClose,
|
|
52
|
-
size,
|
|
53
|
-
variant,
|
|
54
|
-
children: [
|
|
55
|
-
icon && /* @__PURE__ */ jsx("span", { className: classNames.icon, children: icon }),
|
|
56
|
-
children
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
var Label_default = Label;
|
|
62
|
-
|
|
63
|
-
// src/Label/index.ts
|
|
64
|
-
var Label_default2 = Label_default;
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
labelVariants,
|
|
68
|
-
Label_default,
|
|
69
|
-
Label_default2
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=chunk-KIRRQFSZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Label/Label.tsx","../src/Label/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChipProps } from '@heroui/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as HeroLabel } from '@heroui/chip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// label variants\nexport const labelVariants = tv({\n slots: {\n base: '',\n closeButton: '',\n content: '',\n dot: '',\n icon: '',\n },\n variants: {\n isIconOnly: {\n true: {\n content: 'px-1',\n },\n false: {\n content: 'flex items-center gap-2',\n },\n },\n hasEndContent: {\n true: {\n base: 'pr-2',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof labelVariants>;\ntype ClassName = TVClassName<typeof labelVariants>;\n\nexport interface LabelProps extends VariantProps {\n /** content of the label */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** optional label icon, when only icon provided without children and endContent */\n icon?: ReactNode;\n /** add close button to endContent */\n onClose?: ChipProps['onClose'];\n /** radius of the label */\n radius?: ChipProps['radius'];\n /** size of the label */\n size?: ChipProps['size'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)\n */\nconst Label = ({\n children = undefined,\n className: _className = undefined,\n color = 'default',\n endContent = undefined,\n icon = undefined,\n onClose = undefined,\n radius = 'full',\n size = 'md',\n variant = 'solid',\n}: LabelProps) => {\n // determine variants based on props\n const isIconOnly = !!icon && !children && !endContent;\n const hasEndContent = !!endContent;\n\n // classNames from slots\n const variants = labelVariants({ isIconOnly, hasEndContent });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroLabel\n classNames={classNames}\n color={color}\n endContent={endContent}\n radius={radius}\n onClose={onClose}\n size={size}\n variant={variant}\n >\n {icon && <span className={classNames.icon}>{icon}</span>}\n {children}\n </HeroLabel>\n );\n};\n\nexport default Label;\n","import Label, { labelVariants } from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label, labelVariants };\n\nexport default Label;\n"],"mappings":";AAIA,SAAS,QAAQ,iBAAiB;AAElC,SAAS,IAAI,4BAA4B;AA2ErC,SASW,KATX;AAxEG,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,SAAS;AAAA,MACX;AAAA,MACA,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF,CAAC;AA6BD,IAAM,QAAQ,CAAC;AAAA,EACb,WAAW;AAAA,EACX,WAAW,aAAa;AAAA,EACxB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AACZ,MAAkB;AAEhB,QAAM,aAAa,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC3C,QAAM,gBAAgB,CAAC,CAAC;AAGxB,QAAM,WAAW,cAAc,EAAE,YAAY,cAAc,CAAC;AAC5D,QAAM,aAAa,qBAAqB,UAAU,YAAY,MAAM;AAEpE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEC;AAAA,gBAAQ,oBAAC,UAAK,WAAW,WAAW,MAAO,gBAAK;AAAA,QAChD;AAAA;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,gBAAQ;;;AC1Ff,IAAOA,iBAAQ;","names":["Label_default"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-PLJWIGRS.cjs","../src/Label/Label.tsx","../src/Label/index.ts"],"names":["Label_default"],"mappings":"AAAA;ACIA,oCAAkC;AAElC,oDAAyC;AA2ErC,+CAAA;AAxEG,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IACN,WAAA,EAAa,EAAA;AAAA,IACb,OAAA,EAAS,EAAA;AAAA,IACT,GAAA,EAAK,EAAA;AAAA,IACL,IAAA,EAAM;AAAA,E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W,IAAA,EAAO,QAAA,EAAA,KAAA,CAAK,CAAA;AAAA,QAChD;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,CAAA;AAEJ,CAAA;AAEA,IAAO,cAAA,EAAQ,KAAA;ADnCf;AACA;AExDA,IAAOA,eAAAA,EAAQ,aAAA;AF0Df;AACA;AACE;AACA;AACA;AACF,sHAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-PLJWIGRS.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChipProps } from '@heroui/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as HeroLabel } from '@heroui/chip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// label variants\nexport const labelVariants = tv({\n slots: {\n base: '',\n closeButton: '',\n content: '',\n dot: '',\n icon: '',\n },\n variants: {\n isIconOnly: {\n true: {\n content: 'px-1',\n },\n false: {\n content: 'flex items-center gap-2',\n },\n },\n hasEndContent: {\n true: {\n base: 'pr-2',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof labelVariants>;\ntype ClassName = TVClassName<typeof labelVariants>;\n\nexport interface LabelProps extends VariantProps {\n /** content of the label */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** optional label icon, when only icon provided without children and endContent */\n icon?: ReactNode;\n /** add close button to endContent */\n onClose?: ChipProps['onClose'];\n /** radius of the label */\n radius?: ChipProps['radius'];\n /** size of the label */\n size?: ChipProps['size'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)\n */\nconst Label = ({\n children = undefined,\n className: _className = undefined,\n color = 'default',\n endContent = undefined,\n icon = undefined,\n onClose = undefined,\n radius = 'full',\n size = 'md',\n variant = 'solid',\n}: LabelProps) => {\n // determine variants based on props\n const isIconOnly = !!icon && !children && !endContent;\n const hasEndContent = !!endContent;\n\n // classNames from slots\n const variants = labelVariants({ isIconOnly, hasEndContent });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroLabel\n classNames={classNames}\n color={color}\n endContent={endContent}\n radius={radius}\n onClose={onClose}\n size={size}\n variant={variant}\n >\n {icon && <span className={classNames.icon}>{icon}</span>}\n {children}\n </HeroLabel>\n );\n};\n\nexport default Label;\n","import Label, { labelVariants } from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label, labelVariants };\n\nexport default Label;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-Q2SVN66A.cjs","../src/Alert/Alert.tsx","../src/Alert/index.ts"],"names":["Alert_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACAA,sCAAmC;AACnC,sCAA2C;AAE3C,oDAAyC;AA2IrC,+CAAA;AAzIG,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IACN,KAAA,EAAO,EAAA;AAAA,IACP,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,SAAA,EAAW;AAAA,EACb,CAAA;AAAA,EACA,QAAA,EAAU;AAAA;AAAA,IAER,KAAA,EAAO,8CAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,WAAA,EAAa,cAAA;AAAA,QACb,KAAA,EAAO,cAAA;AAAA,QACP,WAAA,EAAa;AAAA,MACf;AAAA,IAAA,CAAA,EACG,YAAA,CAAkB,QAAA,CAAS,KAAA,CAAA;AAAA,IAEhC,OAAA,EAAS,8CAAA,CAAA,CAAA,EACJ,YAAA,CAAkB,QAAA,CAAS,OAAA,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ExHA,IAAOA,eAAAA,EAAQ,aAAA;AF0Hf;AACA;AACE;AACA;AACA;AACF,sHAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-Q2SVN66A.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as HeroAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as HeroAlert } from '@heroui/alert';\nimport { alert as heroAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...heroAlertVariants.variants.color,\n },\n variant: {\n ...heroAlertVariants.variants.variant,\n },\n sizeLimit: {\n height: {\n base: 'max-h-[150px] overflow-y-auto overflow-x-hidden',\n },\n width: {\n base: 'max-w-[480px] overflow-x-auto overflow-y-hidden',\n },\n both: {\n base: 'max-h-[150px] max-w-[480px] overflow-y-auto overflow-x-hidden',\n },\n },\n },\n compoundVariants: [\n ...heroAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'bg-info-50 text-info-600 dark:bg-info-50/50',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100 dark:bg-info-50/50',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** limit height to 150px or width to 480px or both */\n sizeLimit?: VariantProps['sizeLimit'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n sizeLimit = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n sizeLimit,\n });\n const isHeroUIColor = Object.keys(heroAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as HeroAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Button/Button.tsx","../src/Button/subcomponents/LoadingSpinner.tsx","../src/Button/index.ts"],"sourcesContent":["import type { TVProps } from '@fuf-stack/pixel-utils';\nimport type { ButtonProps as HeroButtonProps } from '@heroui/button';\nimport type { ReactNode } from 'react';\n\nimport { Button as HeroButton } from '@heroui/button';\nimport { button as heroButtonVariants } from '@heroui/theme';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\nimport LoadingSpinner from './subcomponents/LoadingSpinner';\n\nexport const buttonVariants = tv({\n base: '',\n variants: {\n color: {\n info: '',\n ...heroButtonVariants.variants.color,\n },\n variant: {\n ...heroButtonVariants.variants.variant,\n },\n size: {\n ...heroButtonVariants.variants.size,\n },\n },\n compoundVariants: [\n // white text on solid / shadow success button\n {\n color: 'success',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n // white text on solid / shadow warning button\n {\n color: 'warning',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n {\n color: 'info',\n variant: 'solid',\n class: 'bg-info text-info-foreground',\n },\n {\n color: 'info',\n variant: 'shadow',\n class: 'text-info-foreground\" bg-info shadow-lg shadow-info/40',\n },\n {\n color: 'info',\n variant: 'bordered',\n class: 'border-medium border-info bg-transparent text-info',\n },\n {\n color: 'info',\n variant: 'flat',\n class: 'bg-info/20 text-info-600',\n },\n {\n color: 'info',\n variant: 'faded',\n class: 'border-default bg-default-100 text-info',\n },\n {\n color: 'info',\n variant: 'light',\n class: 'bg-transparent text-info data-[hover=true]:bg-info-100',\n },\n {\n color: 'info',\n variant: 'ghost',\n class:\n 'border-info text-info data-[hover=true]:!bg-info data-[hover=true]:!text-info-foreground',\n },\n ],\n});\n\ntype VariantProps = TVProps<typeof buttonVariants>;\n\nexport interface ButtonProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** content of the button */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the button */\n color?: HeroButtonProps['color'];\n /** disables the button */\n disabled?: boolean;\n /** disables all animations */\n disableAnimation?: boolean;\n /** shows loading animation */\n loading?: boolean;\n /** optional icon */\n icon?: ReactNode;\n /** click event handler */\n onClick?: HeroButtonProps['onPress'];\n /** border radius size */\n radius?: HeroButtonProps['radius'];\n /** size options */\n size?: HeroButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** HTML button type attribute */\n type?: 'button' | 'submit' | 'reset' | undefined;\n /** visual style variant */\n variant?: HeroButtonProps['variant'];\n}\n\n/**\n * Button component based on [HeroUI Button](https://www.heroui.com//docs/components/button)\n */\nconst Button = ({\n ariaLabel = undefined,\n children = undefined,\n className = undefined,\n color = 'default',\n disabled = false,\n disableAnimation = false,\n icon = undefined,\n loading = false,\n onClick = undefined,\n radius = undefined,\n size = undefined,\n testId = undefined,\n type = undefined,\n variant = 'solid',\n}: ButtonProps) => {\n return (\n <HeroButton\n aria-label={ariaLabel}\n className={buttonVariants({ color, variant, className })}\n color={color}\n data-testid={testId}\n disableAnimation={disableAnimation}\n disableRipple={disableAnimation}\n isDisabled={disabled}\n isIconOnly={!!(icon && !children)}\n isLoading={loading}\n onPress={onClick}\n radius={radius}\n size={size}\n spinner={<LoadingSpinner />}\n type={type}\n variant={variant}\n >\n {icon}\n {children}\n </HeroButton>\n );\n};\n\nexport default Button;\n","/**\n * svg loading spinner for button\n * @see https://www.heroui.com//docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"h-5 w-5 animate-spin text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n","import Button, { buttonVariants } from './Button';\n\nexport type { ButtonProps } from './Button';\n\nexport { Button, buttonVariants };\n\nexport default Button;\n"],"mappings":";;;;;AAIA,SAAS,UAAU,kBAAkB;AACrC,SAAS,UAAU,0BAA0B;AAE7C,SAAS,UAAU;;;ACFjB,SAME,KANF;AADF,IAAO,yBAAQ,MACb;AAAA,EAAC;AAAA;AAAA,IACC,WAAU;AAAA,IACV,MAAK;AAAA,IACL,SAAQ;AAAA,IACR,OAAM;AAAA,IAEN;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAG;AAAA,UACH,IAAG;AAAA,UACH,GAAE;AAAA,UACF,QAAO;AAAA,UACP,aAAY;AAAA;AAAA,MACd;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA;AACF;;;AD0GE,SAaW,OAAAA,MAbX,QAAAC,aAAA;AAvHG,IAAM,iBAAiB,GAAG;AAAA,EAC/B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,OACH,mBAAmB,SAAS;AAAA,IAEjC,SAAS,mBACJ,mBAAmB,SAAS;AAAA,IAEjC,MAAM,mBACD,mBAAmB,SAAS;AAAA,EAEnC;AAAA,EACA,kBAAkB;AAAA;AAAA,IAEhB;AAAA,MACE,OAAO;AAAA,MACP,SAAS,CAAC,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,IACT;AAAA;AAAA,IAEA;AAAA,MACE,OAAO;AAAA,MACP,SAAS,CAAC,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,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Q;;;AEnJf,IAAOE,kBAAQ;","names":["jsx","jsxs","Button_default"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-TX2VP4J7.cjs","../src/ScrollShadow/ScrollShadow.tsx"],"names":[],"mappings":"AAAA;ACEA,qDAA6B;AAE7B,oDAAmB;AAmBjB,+CAAA;AALF,IAAO,qBAAA,EAAQ,CAAC;AAAA,EACd,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,OAAA,EAAS,KAAA;AACX,CAAA,EAAA,mBACE,6BAAA,0BAAC,EAAA,EAAa,SAAA,EAAW,4BAAA,SAAY,CAAA,EAAG,aAAA,EAAa,MAAA,EAClD,SAAA,CACH,CAAA;ADhBF;AACA;AACE;AACF,oDAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-TX2VP4J7.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@heroui/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** content of the scroll box */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n testId = undefined,\n}: ScrollShadowProps) => (\n <ScrollShadow className={cn(className)} data-testid={testId}>\n {children}\n </ScrollShadow>\n);\n"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|