@codefast/ui 0.1.12 → 0.1.13
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/chunk-5JGCIAX3.cjs +2 -0
- package/dist/chunk-5JGCIAX3.cjs.map +1 -0
- package/dist/chunk-CF44244M.js +2 -0
- package/dist/chunk-CF44244M.js.map +1 -0
- package/dist/chunk-EXOTUGK5.cjs +2 -0
- package/dist/chunk-EXOTUGK5.cjs.map +1 -0
- package/dist/chunk-FIU6XBX4.js +2 -0
- package/dist/chunk-FIU6XBX4.js.map +1 -0
- package/dist/chunk-K4DIHWHX.js +2 -0
- package/dist/chunk-K4DIHWHX.js.map +1 -0
- package/dist/chunk-KH4PSDPI.js +2 -0
- package/dist/chunk-KH4PSDPI.js.map +1 -0
- package/dist/chunk-LSBI35ZE.cjs +2 -0
- package/dist/chunk-LSBI35ZE.cjs.map +1 -0
- package/dist/chunk-O4CKTS5M.cjs +2 -0
- package/dist/chunk-O4CKTS5M.cjs.map +1 -0
- package/dist/chunk-ONMU2LFX.js +2 -0
- package/dist/chunk-ONMU2LFX.js.map +1 -0
- package/dist/chunk-SL4DH4JN.cjs +2 -0
- package/dist/chunk-SL4DH4JN.cjs.map +1 -0
- package/dist/chunk-TY2YG7LH.cjs +2 -0
- package/dist/chunk-TY2YG7LH.cjs.map +1 -0
- package/dist/chunk-V2GDHPHA.js +2 -0
- package/dist/chunk-V2GDHPHA.js.map +1 -0
- package/dist/chunk-XOSPBKAU.cjs +2 -0
- package/dist/chunk-XOSPBKAU.cjs.map +1 -0
- package/dist/chunk-YGPIWXWP.js +2 -0
- package/dist/chunk-YGPIWXWP.js.map +1 -0
- package/dist/chunk-YGWCQ264.cjs +2 -0
- package/dist/chunk-YGWCQ264.cjs.map +1 -0
- package/dist/chunk-ZBAEU4QU.js +2 -0
- package/dist/chunk-ZBAEU4QU.js.map +1 -0
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +98 -4
- package/dist/components/badge.d.ts +98 -4
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.d.cts +1 -1
- package/dist/components/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +8 -176
- package/dist/components/button.d.ts +8 -176
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.cjs.map +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.cjs +1 -1
- package/dist/components/carousel.cjs.map +1 -1
- package/dist/components/carousel.d.cts +1 -0
- package/dist/components/carousel.d.ts +1 -0
- package/dist/components/carousel.js +1 -1
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/checkbox-cards.cjs +1 -1
- package/dist/components/checkbox-cards.cjs.map +1 -1
- package/dist/components/checkbox-cards.js +1 -1
- package/dist/components/checkbox-cards.js.map +1 -1
- package/dist/components/checkbox-group.cjs +1 -1
- package/dist/components/checkbox-group.cjs.map +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +1 -1
- package/dist/components/command.d.ts +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.cjs +1 -1
- package/dist/components/context-menu.cjs.map +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.cjs.map +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.d.cts +2 -4
- package/dist/components/drawer.d.ts +2 -4
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/form.cjs +1 -1
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.cjs.map +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.cjs.map +1 -1
- package/dist/components/navigation-menu.d.cts +1 -4
- package/dist/components/navigation-menu.d.ts +1 -4
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.cjs.map +1 -1
- package/dist/components/number-input.d.cts +1 -2
- package/dist/components/number-input.d.ts +1 -2
- package/dist/components/number-input.js +1 -1
- package/dist/components/number-input.js.map +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/radio-cards.cjs +1 -1
- package/dist/components/radio-cards.cjs.map +1 -1
- package/dist/components/radio-cards.js +1 -1
- package/dist/components/radio-cards.js.map +1 -1
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/radio.cjs.map +1 -1
- package/dist/components/radio.js.map +1 -1
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.d.cts +24 -24
- package/dist/components/scroll-area.d.ts +24 -24
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +7 -2
- package/dist/components/select.d.ts +7 -2
- package/dist/components/select.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +2 -2
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.d.cts +5 -5
- package/dist/components/sheet.d.ts +5 -5
- package/dist/components/sheet.js +1 -1
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.cjs.map +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.cjs.map +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.d.cts +2 -3
- package/dist/components/spinner.d.ts +2 -3
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.cjs.map +1 -1
- package/dist/components/text-input.d.cts +4 -148
- package/dist/components/text-input.d.ts +4 -148
- package/dist/components/text-input.js +1 -1
- package/dist/components/text-input.js.map +1 -1
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.d.cts +70 -1
- package/dist/components/textarea.d.ts +70 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toggle-group.cjs +1 -1
- package/dist/components/toggle-group.cjs.map +1 -1
- package/dist/components/toggle-group.d.cts +6 -4
- package/dist/components/toggle-group.d.ts +6 -4
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.cjs.map +1 -1
- package/dist/components/toggle.d.cts +9 -78
- package/dist/components/toggle.d.ts +9 -78
- package/dist/components/toggle.js +1 -1
- package/dist/components/toggle.js.map +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/styles/button-variants.cjs +2 -0
- package/dist/styles/button-variants.cjs.map +1 -0
- package/dist/styles/button-variants.d.cts +169 -0
- package/dist/styles/button-variants.d.ts +169 -0
- package/dist/styles/button-variants.js +2 -0
- package/dist/styles/button-variants.js.map +1 -0
- package/dist/styles/input-variants.cjs +2 -0
- package/dist/styles/input-variants.cjs.map +1 -0
- package/dist/styles/input-variants.d.cts +206 -0
- package/dist/styles/input-variants.d.ts +206 -0
- package/dist/styles/input-variants.js +2 -0
- package/dist/styles/input-variants.js.map +1 -0
- package/dist/styles/toggle-variants.cjs +2 -0
- package/dist/styles/toggle-variants.cjs.map +1 -0
- package/dist/styles/toggle-variants.d.cts +162 -0
- package/dist/styles/toggle-variants.d.ts +162 -0
- package/dist/styles/toggle-variants.js +2 -0
- package/dist/styles/toggle-variants.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +27 -15
- package/dist/chunk-3JEWSESW.js +0 -2
- package/dist/chunk-3JEWSESW.js.map +0 -1
- package/dist/chunk-45RTVSFM.cjs +0 -2
- package/dist/chunk-45RTVSFM.cjs.map +0 -1
- package/dist/chunk-5KZCIWAV.js +0 -2
- package/dist/chunk-5KZCIWAV.js.map +0 -1
- package/dist/chunk-5ZAKR3XH.cjs +0 -2
- package/dist/chunk-5ZAKR3XH.cjs.map +0 -1
- package/dist/chunk-6ZQPOY3K.js +0 -2
- package/dist/chunk-6ZQPOY3K.js.map +0 -1
- package/dist/chunk-7RRBAIQ7.cjs +0 -2
- package/dist/chunk-7RRBAIQ7.cjs.map +0 -1
- package/dist/chunk-BRPTDZJD.cjs +0 -2
- package/dist/chunk-BRPTDZJD.cjs.map +0 -1
- package/dist/chunk-EJGO273X.cjs +0 -2
- package/dist/chunk-EJGO273X.cjs.map +0 -1
- package/dist/chunk-MTBVDSX3.cjs +0 -2
- package/dist/chunk-MTBVDSX3.cjs.map +0 -1
- package/dist/chunk-OR7UIMKG.js +0 -2
- package/dist/chunk-OR7UIMKG.js.map +0 -1
- package/dist/chunk-P5HEZNFY.js +0 -2
- package/dist/chunk-P5HEZNFY.js.map +0 -1
- package/dist/chunk-U2N42HZL.js +0 -2
- package/dist/chunk-U2N42HZL.js.map +0 -1
- package/dist/chunk-UBXOV4I5.cjs +0 -2
- package/dist/chunk-UBXOV4I5.cjs.map +0 -1
- package/dist/chunk-Y3KLZDCA.js +0 -2
- package/dist/chunk-Y3KLZDCA.js.map +0 -1
|
@@ -1,153 +1,9 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
1
|
import * as React from 'react';
|
|
5
2
|
import * as InputPrimitive from '@codefast/primitive/input';
|
|
3
|
+
import { InputVariantsProps } from '../styles/input-variants.cjs';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
|
|
7
|
-
declare const inputVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
inputSize: {
|
|
9
|
-
default: {
|
|
10
|
-
root: string;
|
|
11
|
-
input: string;
|
|
12
|
-
};
|
|
13
|
-
xs: {
|
|
14
|
-
root: string;
|
|
15
|
-
input: string;
|
|
16
|
-
};
|
|
17
|
-
sm: {
|
|
18
|
-
root: string;
|
|
19
|
-
input: string;
|
|
20
|
-
};
|
|
21
|
-
lg: {
|
|
22
|
-
root: string;
|
|
23
|
-
input: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
root: string;
|
|
28
|
-
input: string;
|
|
29
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
30
|
-
inputSize: {
|
|
31
|
-
default: {
|
|
32
|
-
root: string;
|
|
33
|
-
input: string;
|
|
34
|
-
};
|
|
35
|
-
xs: {
|
|
36
|
-
root: string;
|
|
37
|
-
input: string;
|
|
38
|
-
};
|
|
39
|
-
sm: {
|
|
40
|
-
root: string;
|
|
41
|
-
input: string;
|
|
42
|
-
};
|
|
43
|
-
lg: {
|
|
44
|
-
root: string;
|
|
45
|
-
input: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
49
|
-
inputSize: {
|
|
50
|
-
default: {
|
|
51
|
-
root: string;
|
|
52
|
-
input: string;
|
|
53
|
-
};
|
|
54
|
-
xs: {
|
|
55
|
-
root: string;
|
|
56
|
-
input: string;
|
|
57
|
-
};
|
|
58
|
-
sm: {
|
|
59
|
-
root: string;
|
|
60
|
-
input: string;
|
|
61
|
-
};
|
|
62
|
-
lg: {
|
|
63
|
-
root: string;
|
|
64
|
-
input: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}>, {
|
|
68
|
-
inputSize: {
|
|
69
|
-
default: {
|
|
70
|
-
root: string;
|
|
71
|
-
input: string;
|
|
72
|
-
};
|
|
73
|
-
xs: {
|
|
74
|
-
root: string;
|
|
75
|
-
input: string;
|
|
76
|
-
};
|
|
77
|
-
sm: {
|
|
78
|
-
root: string;
|
|
79
|
-
input: string;
|
|
80
|
-
};
|
|
81
|
-
lg: {
|
|
82
|
-
root: string;
|
|
83
|
-
input: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
root: string;
|
|
88
|
-
input: string;
|
|
89
|
-
}, tailwind_variants.TVReturnType<{
|
|
90
|
-
inputSize: {
|
|
91
|
-
default: {
|
|
92
|
-
root: string;
|
|
93
|
-
input: string;
|
|
94
|
-
};
|
|
95
|
-
xs: {
|
|
96
|
-
root: string;
|
|
97
|
-
input: string;
|
|
98
|
-
};
|
|
99
|
-
sm: {
|
|
100
|
-
root: string;
|
|
101
|
-
input: string;
|
|
102
|
-
};
|
|
103
|
-
lg: {
|
|
104
|
-
root: string;
|
|
105
|
-
input: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
109
|
-
root: string;
|
|
110
|
-
input: string;
|
|
111
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
112
|
-
inputSize: {
|
|
113
|
-
default: {
|
|
114
|
-
root: string;
|
|
115
|
-
input: string;
|
|
116
|
-
};
|
|
117
|
-
xs: {
|
|
118
|
-
root: string;
|
|
119
|
-
input: string;
|
|
120
|
-
};
|
|
121
|
-
sm: {
|
|
122
|
-
root: string;
|
|
123
|
-
input: string;
|
|
124
|
-
};
|
|
125
|
-
lg: {
|
|
126
|
-
root: string;
|
|
127
|
-
input: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
inputSize: {
|
|
132
|
-
default: {
|
|
133
|
-
root: string;
|
|
134
|
-
input: string;
|
|
135
|
-
};
|
|
136
|
-
xs: {
|
|
137
|
-
root: string;
|
|
138
|
-
input: string;
|
|
139
|
-
};
|
|
140
|
-
sm: {
|
|
141
|
-
root: string;
|
|
142
|
-
input: string;
|
|
143
|
-
};
|
|
144
|
-
lg: {
|
|
145
|
-
root: string;
|
|
146
|
-
input: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
}>, unknown, unknown, undefined>>;
|
|
150
|
-
type InputVariantsProps = VariantProps<typeof inputVariants>;
|
|
151
7
|
interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof InputPrimitive.Root>, Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {
|
|
152
8
|
loaderPosition?: 'prefix' | 'suffix';
|
|
153
9
|
loading?: boolean;
|
|
@@ -156,4 +12,4 @@ interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof
|
|
|
156
12
|
}
|
|
157
13
|
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
158
14
|
|
|
159
|
-
export {
|
|
15
|
+
export { TextInput, type TextInputProps };
|
|
@@ -1,153 +1,9 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
1
|
import * as React from 'react';
|
|
5
2
|
import * as InputPrimitive from '@codefast/primitive/input';
|
|
3
|
+
import { InputVariantsProps } from '../styles/input-variants.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
|
|
7
|
-
declare const inputVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
inputSize: {
|
|
9
|
-
default: {
|
|
10
|
-
root: string;
|
|
11
|
-
input: string;
|
|
12
|
-
};
|
|
13
|
-
xs: {
|
|
14
|
-
root: string;
|
|
15
|
-
input: string;
|
|
16
|
-
};
|
|
17
|
-
sm: {
|
|
18
|
-
root: string;
|
|
19
|
-
input: string;
|
|
20
|
-
};
|
|
21
|
-
lg: {
|
|
22
|
-
root: string;
|
|
23
|
-
input: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
root: string;
|
|
28
|
-
input: string;
|
|
29
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
30
|
-
inputSize: {
|
|
31
|
-
default: {
|
|
32
|
-
root: string;
|
|
33
|
-
input: string;
|
|
34
|
-
};
|
|
35
|
-
xs: {
|
|
36
|
-
root: string;
|
|
37
|
-
input: string;
|
|
38
|
-
};
|
|
39
|
-
sm: {
|
|
40
|
-
root: string;
|
|
41
|
-
input: string;
|
|
42
|
-
};
|
|
43
|
-
lg: {
|
|
44
|
-
root: string;
|
|
45
|
-
input: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
49
|
-
inputSize: {
|
|
50
|
-
default: {
|
|
51
|
-
root: string;
|
|
52
|
-
input: string;
|
|
53
|
-
};
|
|
54
|
-
xs: {
|
|
55
|
-
root: string;
|
|
56
|
-
input: string;
|
|
57
|
-
};
|
|
58
|
-
sm: {
|
|
59
|
-
root: string;
|
|
60
|
-
input: string;
|
|
61
|
-
};
|
|
62
|
-
lg: {
|
|
63
|
-
root: string;
|
|
64
|
-
input: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}>, {
|
|
68
|
-
inputSize: {
|
|
69
|
-
default: {
|
|
70
|
-
root: string;
|
|
71
|
-
input: string;
|
|
72
|
-
};
|
|
73
|
-
xs: {
|
|
74
|
-
root: string;
|
|
75
|
-
input: string;
|
|
76
|
-
};
|
|
77
|
-
sm: {
|
|
78
|
-
root: string;
|
|
79
|
-
input: string;
|
|
80
|
-
};
|
|
81
|
-
lg: {
|
|
82
|
-
root: string;
|
|
83
|
-
input: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
root: string;
|
|
88
|
-
input: string;
|
|
89
|
-
}, tailwind_variants.TVReturnType<{
|
|
90
|
-
inputSize: {
|
|
91
|
-
default: {
|
|
92
|
-
root: string;
|
|
93
|
-
input: string;
|
|
94
|
-
};
|
|
95
|
-
xs: {
|
|
96
|
-
root: string;
|
|
97
|
-
input: string;
|
|
98
|
-
};
|
|
99
|
-
sm: {
|
|
100
|
-
root: string;
|
|
101
|
-
input: string;
|
|
102
|
-
};
|
|
103
|
-
lg: {
|
|
104
|
-
root: string;
|
|
105
|
-
input: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
109
|
-
root: string;
|
|
110
|
-
input: string;
|
|
111
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
112
|
-
inputSize: {
|
|
113
|
-
default: {
|
|
114
|
-
root: string;
|
|
115
|
-
input: string;
|
|
116
|
-
};
|
|
117
|
-
xs: {
|
|
118
|
-
root: string;
|
|
119
|
-
input: string;
|
|
120
|
-
};
|
|
121
|
-
sm: {
|
|
122
|
-
root: string;
|
|
123
|
-
input: string;
|
|
124
|
-
};
|
|
125
|
-
lg: {
|
|
126
|
-
root: string;
|
|
127
|
-
input: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
inputSize: {
|
|
132
|
-
default: {
|
|
133
|
-
root: string;
|
|
134
|
-
input: string;
|
|
135
|
-
};
|
|
136
|
-
xs: {
|
|
137
|
-
root: string;
|
|
138
|
-
input: string;
|
|
139
|
-
};
|
|
140
|
-
sm: {
|
|
141
|
-
root: string;
|
|
142
|
-
input: string;
|
|
143
|
-
};
|
|
144
|
-
lg: {
|
|
145
|
-
root: string;
|
|
146
|
-
input: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
}>, unknown, unknown, undefined>>;
|
|
150
|
-
type InputVariantsProps = VariantProps<typeof inputVariants>;
|
|
151
7
|
interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof InputPrimitive.Root>, Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {
|
|
152
8
|
loaderPosition?: 'prefix' | 'suffix';
|
|
153
9
|
loading?: boolean;
|
|
@@ -156,4 +12,4 @@ interface TextInputProps extends InputVariantsProps, React.ComponentProps<typeof
|
|
|
156
12
|
}
|
|
157
13
|
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
158
14
|
|
|
159
|
-
export {
|
|
15
|
+
export { TextInput, type TextInputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a
|
|
1
|
+
"use client";import{a as e}from"../chunk-K4DIHWHX.js";import{a as r}from"../chunk-FIU6XBX4.js";import"../chunk-VRBUDJBH.js";import*as m from"react";import*as t from"@codefast/primitive/input";import{jsx as p,jsxs as P}from"react/jsx-runtime";var{root:x,input:R}=r(),c=m.forwardRef(({inputSize:i,className:a,loading:o,loaderPosition:n,prefix:f,suffix:s,...u},I)=>P(t.Root,{className:x({inputSize:i,className:a}),children:[o&&n==="prefix"?p(e,{}):f,p(t.Item,{ref:I,className:R({inputSize:i}),...u}),o&&n==="suffix"?p(e,{}):s]}));c.displayName="TextInput";export{c as TextInput};
|
|
2
2
|
//# sourceMappingURL=text-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/text-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@codefast/primitive/input';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,4BA2B5B,OAC4C,OAAAC,EAD5C,QAAAC,MAAA,oBAnBJ,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAiBhCC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,QAAAC,EAAS,eAAAC,EAAgB,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAC5EZ,EAAgB,OAAf,CAAoB,UAAWC,EAAK,CAAE,UAAAI,EAAW,UAAAC,CAAU,CAAC,EAC1D,UAAAC,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKJ,EACxDV,EAAgB,OAAf,CAAoB,IAAKa,EAAc,UAAWV,EAAM,CAAE,UAAAG,CAAU,CAAC,EAAI,GAAGM,EAAO,EACnFJ,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKH,GAC1D,CAEJ,EAEAN,EAAU,YAAc","names":["React","InputPrimitive","jsx","jsxs","root","input","inputVariants","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","Spinner"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _react = require('react'); var e = _interopRequireWildcard(_react);var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var i=_tailwindvariants.tv.call(void 0, {base:["border-input flex min-h-16 w-full rounded-md border bg-transparent py-2 text-sm","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","placeholder:text-muted-foreground","disabled:cursor-default disabled:opacity-50"],variants:{inputSize:{xxs:"px-2.5",xs:"px-2.75",sm:"px-3",md:"px-3.25",lg:"px-3.5",xl:"px-3.75"}},defaultVariants:{inputSize:"md"}}),p= exports.Textarea =e.forwardRef(({className:t,inputSize:a,...r},s)=>_jsxruntime.jsx.call(void 0, "textarea",{ref:s,className:i({className:t,inputSize:a}),...r}));p.displayName="Textarea";exports.Textarea = p;
|
|
2
2
|
//# sourceMappingURL=textarea.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../src/components/textarea.tsx"],"names":["textareaVariants","tv","Textarea","className","inputSize","props","forwardedRef","jsx"],"mappings":"AAAA,kaAAuB,qDACe,+CAuClC,IAjCEA,CAAAA,CAAmBC,kCAAAA,CACvB,IAAA,CAAM,CACJ,iFAAA,CACA,8EAAA,CACA,mCAAA,CACA,6CACF,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,GAAA,CAAK,QAAA,CACL,EAAA,CAAI,SAAA,CACJ,EAAA,CAAI,MAAA,CACJ,EAAA,CAAI,SAAA,CACJ,EAAA,CAAI,QAAA,CACJ,EAAA,CAAI,SACN,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,IACb,CACF,CAAC,CAAA,CAWKC,CAAAA,oBAAiB,CAAA,CAAA,UAAA,CACrB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnCC,6BAAAA,UAAC,CAAA,CAAS,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWN,CAAAA,CAAiB,CAAE,SAAA,CAAAG,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEnG,CAAA,CAEAH,CAAAA,CAAS,WAAA,CAAc,UAAA,CAAA,qBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/textarea.cjs","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Textarea\n * -------------------------------------------------------------------------- */\n\nconst textareaVariants = tv({\n base: [\n 'border-input flex min-h-16 w-full rounded-md border bg-transparent py-2 text-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n variants: {\n inputSize: {\n xxs: 'px-2.5',\n xs: 'px-2.75',\n sm: 'px-3',\n md: 'px-3.25',\n lg: 'px-3.5',\n xl: 'px-3.75',\n },\n },\n defaultVariants: {\n inputSize: 'md',\n },\n});\n\ntype TextareaVariantsProps = VariantProps<typeof textareaVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ninterface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, TextareaVariantsProps {}\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(\n ({ className, inputSize, ...props }, forwardedRef) => (\n <textarea ref={forwardedRef} className={textareaVariants({ className, inputSize })} {...props} />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
|
|
@@ -1,6 +1,75 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
declare const textareaVariants: tailwind_variants.TVReturnType<{
|
|
7
|
+
inputSize: {
|
|
8
|
+
xxs: string;
|
|
9
|
+
xs: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
md: string;
|
|
12
|
+
lg: string;
|
|
13
|
+
xl: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
|
|
16
|
+
inputSize: {
|
|
17
|
+
xxs: string;
|
|
18
|
+
xs: string;
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
inputSize: {
|
|
26
|
+
xxs: string;
|
|
27
|
+
xs: string;
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
xl: string;
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
34
|
+
inputSize: {
|
|
35
|
+
xxs: string;
|
|
36
|
+
xs: string;
|
|
37
|
+
sm: string;
|
|
38
|
+
md: string;
|
|
39
|
+
lg: string;
|
|
40
|
+
xl: string;
|
|
41
|
+
};
|
|
42
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
43
|
+
inputSize: {
|
|
44
|
+
xxs: string;
|
|
45
|
+
xs: string;
|
|
46
|
+
sm: string;
|
|
47
|
+
md: string;
|
|
48
|
+
lg: string;
|
|
49
|
+
xl: string;
|
|
50
|
+
};
|
|
51
|
+
}, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
|
|
52
|
+
inputSize: {
|
|
53
|
+
xxs: string;
|
|
54
|
+
xs: string;
|
|
55
|
+
sm: string;
|
|
56
|
+
md: string;
|
|
57
|
+
lg: string;
|
|
58
|
+
xl: string;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
inputSize: {
|
|
62
|
+
xxs: string;
|
|
63
|
+
xs: string;
|
|
64
|
+
sm: string;
|
|
65
|
+
md: string;
|
|
66
|
+
lg: string;
|
|
67
|
+
xl: string;
|
|
68
|
+
};
|
|
69
|
+
}>, unknown, unknown, undefined>>;
|
|
70
|
+
type TextareaVariantsProps = VariantProps<typeof textareaVariants>;
|
|
71
|
+
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, TextareaVariantsProps {
|
|
72
|
+
}
|
|
4
73
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
74
|
|
|
6
75
|
export { Textarea, type TextareaProps };
|
|
@@ -1,6 +1,75 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
declare const textareaVariants: tailwind_variants.TVReturnType<{
|
|
7
|
+
inputSize: {
|
|
8
|
+
xxs: string;
|
|
9
|
+
xs: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
md: string;
|
|
12
|
+
lg: string;
|
|
13
|
+
xl: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
|
|
16
|
+
inputSize: {
|
|
17
|
+
xxs: string;
|
|
18
|
+
xs: string;
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
inputSize: {
|
|
26
|
+
xxs: string;
|
|
27
|
+
xs: string;
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
xl: string;
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
34
|
+
inputSize: {
|
|
35
|
+
xxs: string;
|
|
36
|
+
xs: string;
|
|
37
|
+
sm: string;
|
|
38
|
+
md: string;
|
|
39
|
+
lg: string;
|
|
40
|
+
xl: string;
|
|
41
|
+
};
|
|
42
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
43
|
+
inputSize: {
|
|
44
|
+
xxs: string;
|
|
45
|
+
xs: string;
|
|
46
|
+
sm: string;
|
|
47
|
+
md: string;
|
|
48
|
+
lg: string;
|
|
49
|
+
xl: string;
|
|
50
|
+
};
|
|
51
|
+
}, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
|
|
52
|
+
inputSize: {
|
|
53
|
+
xxs: string;
|
|
54
|
+
xs: string;
|
|
55
|
+
sm: string;
|
|
56
|
+
md: string;
|
|
57
|
+
lg: string;
|
|
58
|
+
xl: string;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
inputSize: {
|
|
62
|
+
xxs: string;
|
|
63
|
+
xs: string;
|
|
64
|
+
sm: string;
|
|
65
|
+
md: string;
|
|
66
|
+
lg: string;
|
|
67
|
+
xl: string;
|
|
68
|
+
};
|
|
69
|
+
}>, unknown, unknown, undefined>>;
|
|
70
|
+
type TextareaVariantsProps = VariantProps<typeof textareaVariants>;
|
|
71
|
+
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, TextareaVariantsProps {
|
|
72
|
+
}
|
|
4
73
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
74
|
|
|
6
75
|
export { Textarea, type TextareaProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as e from"react";import{tv as o}from"tailwind-variants";import{jsx as x}from"react/jsx-runtime";var i=o({base:["border-input flex min-h-16 w-full rounded-md border bg-transparent py-2 text-sm","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","placeholder:text-muted-foreground","disabled:cursor-default disabled:opacity-50"],variants:{inputSize:{xxs:"px-2.5",xs:"px-2.75",sm:"px-3",md:"px-3.25",lg:"px-3.5",xl:"px-3.75"}},defaultVariants:{inputSize:"md"}}),p=e.forwardRef(({className:t,inputSize:a,...r},s)=>x("textarea",{ref:s,className:i({className:t,inputSize:a}),...r}));p.displayName="Textarea";export{p as Textarea};
|
|
2
2
|
//# sourceMappingURL=textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/components/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Textarea\n * -------------------------------------------------------------------------- */\n\nconst textareaVariants = tv({\n base: [\n 'border-input flex min-h-16 w-full rounded-md border bg-transparent py-2 text-sm',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default disabled:opacity-50',\n ],\n variants: {\n inputSize: {\n xxs: 'px-2.5',\n xs: 'px-2.75',\n sm: 'px-3',\n md: 'px-3.25',\n lg: 'px-3.5',\n xl: 'px-3.75',\n },\n },\n defaultVariants: {\n inputSize: 'md',\n },\n});\n\ntype TextareaVariantsProps = VariantProps<typeof textareaVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ninterface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, TextareaVariantsProps {}\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(\n ({ className, inputSize, ...props }, forwardedRef) => (\n <textarea ref={forwardedRef} className={textareaVariants({ className, inputSize })} {...props} />\n ),\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,MAAAC,MAA6B,oBAuClC,cAAAC,MAAA,oBAjCJ,IAAMC,EAAmBF,EAAG,CAC1B,KAAM,CACJ,kFACA,+EACA,oCACA,6CACF,EACA,SAAU,CACR,UAAW,CACT,IAAK,SACL,GAAI,UACJ,GAAI,OACJ,GAAI,UACJ,GAAI,SACJ,GAAI,SACN,CACF,EACA,gBAAiB,CACf,UAAW,IACb,CACF,CAAC,EAWKG,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACnCN,EAAC,YAAS,IAAKM,EAAc,UAAWL,EAAiB,CAAE,UAAAE,EAAW,UAAAC,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEnG,EAEAH,EAAS,YAAc","names":["React","tv","jsx","textareaVariants","Textarea","className","inputSize","props","forwardedRef"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkO4CKTS5Mcjs = require('../chunk-O4CKTS5M.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reacttogglegroup = require('@radix-ui/react-toggle-group'); var t = _interopRequireWildcard(_reacttogglegroup);var _reactcontext = require('@radix-ui/react-context');var _jsxruntime = require('react/jsx-runtime');var u="ToggleGroup",[y]=_reactcontext.createContextScope.call(void 0, u,[_reacttogglegroup.createToggleGroupScope]),P=_reacttogglegroup.createToggleGroupScope.call(void 0, ),[I,v]=y(u),E= exports.ToggleGroup =c.forwardRef(({__scopeToggleGroup:e,children:o,className:r,variant:p,size:g,icon:i,...s},l)=>{let m=P(e);return _jsxruntime.jsx.call(void 0, I,{icon:i,scope:e,size:g,variant:p,children:_jsxruntime.jsx.call(void 0, t.Root,{ref:l,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex items-center justify-center gap-1",r),...m,...s,children:o})})});E.displayName=u;var f="ToggleGroupItem",d= exports.ToggleGroupItem =c.forwardRef(({__scopeToggleGroup:e,children:o,prefix:r,suffix:p,className:g,...i},s)=>{let l=v(f,e),m=P(e);return _jsxruntime.jsxs.call(void 0, t.Item,{ref:s,className:_chunkO4CKTS5Mcjs.a.call(void 0, {...l,className:g}),...m,...i,children:[r,typeof o=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:o}):o,p]})});d.displayName=f;exports.ToggleGroup = E; exports.ToggleGroupItem = d;
|
|
2
2
|
//# sourceMappingURL=toggle-group.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/toggle-group.cjs","../../src/components/toggle-group.tsx"],"names":["TOGGLE_GROUP_NAME","createToggleGroupContext","createContextScope","createToggleGroupScope","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","props","forwardedRef","toggleGroupScope","jsx","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","context","toggleVariants"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,oHACe,uDAES,+CA8BvC,IAtBFA,CAAAA,CAAoB,aAAA,CAIpB,CAACC,CAAwB,CAAA,CAAIC,8CAAAA,CAAmBF,CAAmB,CAACG,wCAAsB,CAAC,CAAA,CAE3FC,CAAAA,CAAsBD,sDAAAA,CAAuB,CAE7C,CAACE,CAAAA,CAAqBC,CAAqB,CAAA,CAAIL,CAAAA,CAA8CD,CAAiB,CAAA,CAK9GO,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CAAE,kBAAA,CAAAC,CAAAA,CAAoB,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/toggle-group.cjs","../../src/components/toggle-group.tsx"],"names":["TOGGLE_GROUP_NAME","createToggleGroupContext","createContextScope","createToggleGroupScope","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","icon","props","forwardedRef","toggleGroupScope","jsx","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","prefix","suffix","context","jsxs","toggleVariants"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,oHACe,uDAES,+CA8BvC,IAtBFA,CAAAA,CAAoB,aAAA,CAIpB,CAACC,CAAwB,CAAA,CAAIC,8CAAAA,CAAmBF,CAAmB,CAACG,wCAAsB,CAAC,CAAA,CAE3FC,CAAAA,CAAsBD,sDAAAA,CAAuB,CAE7C,CAACE,CAAAA,CAAqBC,CAAqB,CAAA,CAAIL,CAAAA,CAA8CD,CAAiB,CAAA,CAK9GO,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CAAE,kBAAA,CAAAC,CAAAA,CAAoB,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CACzEC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAmBZ,CAAAA,CAAoBI,CAAkB,CAAA,CAE/D,OACES,6BAAAA,CAACZ,CAAA,CAAoB,IAAA,CAAMQ,CAAAA,CAAM,KAAA,CAAOL,CAAAA,CAAoB,IAAA,CAAMI,CAAAA,CAAM,OAAA,CAASD,CAAAA,CAC/E,QAAA,CAAAM,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,wCAAG,CAA0CR,CAAS,CAAA,CAChE,GAAGM,CAAAA,CACH,GAAGF,CAAAA,CAEH,QAAA,CAAAL,CAAAA,CACH,CAAA,CACF,CAEJ,CACF,CAAA,CAEAF,CAAAA,CAAY,WAAA,CAAcP,CAAAA,CAM1B,IAAMmB,CAAAA,CAAyB,iBAAA,CASzBC,CAAAA,2BAAwB,CAAA,CAAA,UAAA,CAC5B,CACE,CAAE,kBAAA,CAAAZ,CAAAA,CAAoB,QAAA,CAAAC,CAAAA,CAAU,MAAA,CAAAY,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,SAAA,CAAAZ,CAAAA,CAAW,GAAGI,CAAM,CAAA,CACpEC,CAAAA,CAAAA,EACG,CACH,IAAMQ,CAAAA,CAAUjB,CAAAA,CAAsBa,CAAAA,CAAwBX,CAAkB,CAAA,CAC1EQ,CAAAA,CAAmBZ,CAAAA,CAAoBI,CAAkB,CAAA,CAE/D,OACEgB,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKT,CAAAA,CACL,SAAA,CAAWU,iCAAAA,CAAiB,GAAGF,CAAAA,CAAS,SAAA,CAAAb,CAAU,CAAC,CAAA,CAClD,GAAGM,CAAAA,CACH,GAAGF,CAAAA,CAEH,QAAA,CAAA,CAAAO,CAAAA,CACA,OAAOZ,CAAAA,EAAa,QAAA,CAAWQ,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAR,CAAAA,CAAS,CAAA,CAAUA,CAAAA,CAC9Ea,CAAAA,CAAAA,CACH,CAEJ,CACF,CAAA,CAEAF,CAAAA,CAAgB,WAAA,CAAcD,CAAAA,CAAAA,qDAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/toggle-group.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { cn } from '@/lib/utils';\nimport { toggleVariants, type ToggleVariantsProps } from '@/styles/toggle-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;\n\nconst ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(\n (\n { __scopeToggleGroup, children, className, variant, size, icon, ...props }: ScopedProps<ToggleGroupProps>,\n forwardedRef,\n ) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider icon={icon} scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('flex items-center justify-center gap-1', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = React.ElementRef<typeof ToggleGroupPrimitive.Item>;\ninterface ToggleGroupItemProps\n extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, 'prefix'> {\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst ToggleGroupItem = React.forwardRef<ToggleGroupItemElement, ToggleGroupItemProps>(\n (\n { __scopeToggleGroup, children, prefix, suffix, className, ...props }: ScopedProps<ToggleGroupItemProps>,\n forwardedRef,\n ) => {\n const context = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={forwardedRef}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps };\n"]}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
-
import { ToggleVariantsProps } from '
|
|
3
|
+
import { ToggleVariantsProps } from '../styles/toggle-variants.cjs';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
|
-
import '@radix-ui/react-toggle';
|
|
7
6
|
|
|
8
7
|
type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;
|
|
9
8
|
declare const ToggleGroup: React.ForwardRefExoticComponent<ToggleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface ToggleGroupItemProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, 'prefix'> {
|
|
10
|
+
prefix?: React.ReactNode;
|
|
11
|
+
suffix?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
14
|
|
|
13
15
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
-
import { ToggleVariantsProps } from '
|
|
3
|
+
import { ToggleVariantsProps } from '../styles/toggle-variants.js';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
|
-
import '@radix-ui/react-toggle';
|
|
7
6
|
|
|
8
7
|
type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;
|
|
9
8
|
declare const ToggleGroup: React.ForwardRefExoticComponent<ToggleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface ToggleGroupItemProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, 'prefix'> {
|
|
10
|
+
prefix?: React.ReactNode;
|
|
11
|
+
suffix?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
14
|
|
|
13
15
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as
|
|
1
|
+
"use client";import{a as G}from"../chunk-V2GDHPHA.js";import{a as n}from"../chunk-VRBUDJBH.js";import*as c from"react";import*as t from"@radix-ui/react-toggle-group";import{createToggleGroupScope as T}from"@radix-ui/react-toggle-group";import{createContextScope as R}from"@radix-ui/react-context";import{jsx as a,jsxs as S}from"react/jsx-runtime";var u="ToggleGroup",[y]=R(u,[T]),P=T(),[I,v]=y(u),E=c.forwardRef(({__scopeToggleGroup:e,children:o,className:r,variant:p,size:g,icon:i,...s},l)=>{let m=P(e);return a(I,{icon:i,scope:e,size:g,variant:p,children:a(t.Root,{ref:l,className:n("flex items-center justify-center gap-1",r),...m,...s,children:o})})});E.displayName=u;var f="ToggleGroupItem",d=c.forwardRef(({__scopeToggleGroup:e,children:o,prefix:r,suffix:p,className:g,...i},s)=>{let l=v(f,e),m=P(e);return S(t.Item,{ref:s,className:G({...l,className:g}),...m,...i,children:[r,typeof o=="string"?a("span",{className:"truncate",children:o}):o,p]})});d.displayName=f;export{E as ToggleGroup,d as ToggleGroupItem};
|
|
2
2
|
//# sourceMappingURL=toggle-group.js.map
|