performa 1.0.1 → 1.0.3
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/README.md +51 -13
- package/dist/index.cjs +38 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/nextjs.cjs +20 -20
- package/dist/nextjs.cjs.map +1 -1
- package/dist/nextjs.js +20 -20
- package/dist/nextjs.js.map +1 -1
- package/dist/react-router.cjs +20 -20
- package/dist/react-router.cjs.map +1 -1
- package/dist/react-router.js +20 -20
- package/dist/react-router.js.map +1 -1
- package/dist/tanstack-start.cjs +20 -20
- package/dist/tanstack-start.cjs.map +1 -1
- package/dist/tanstack-start.js +20 -20
- package/dist/tanstack-start.js.map +1 -1
- package/package.json +1 -1
package/dist/tanstack-start.cjs
CHANGED
|
@@ -47,48 +47,48 @@ var defaultTheme = {
|
|
|
47
47
|
required: "text-red-500 ml-1"
|
|
48
48
|
},
|
|
49
49
|
input: {
|
|
50
|
-
base: "block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-
|
|
50
|
+
base: "block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-blue-500 focus:border-blue-500",
|
|
51
51
|
error: "border-red-500 dark:border-red-400",
|
|
52
52
|
disabled: "disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed",
|
|
53
|
-
focus: "focus:outline-none focus:ring focus:ring-
|
|
53
|
+
focus: "focus:outline-none focus:ring focus:ring-blue-500 focus:border-blue-500"
|
|
54
54
|
},
|
|
55
55
|
select: {
|
|
56
|
-
base: "mt-1 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring focus:ring-
|
|
56
|
+
base: "mt-1 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring focus:ring-blue-500 focus:border-blue-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed",
|
|
57
57
|
error: "border-red-500 dark:border-red-400",
|
|
58
58
|
disabled: "disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed",
|
|
59
59
|
option: "bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100"
|
|
60
60
|
},
|
|
61
61
|
textarea: {
|
|
62
|
-
base: "mt-1 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-
|
|
62
|
+
base: "mt-1 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-blue-500 focus:border-blue-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed",
|
|
63
63
|
error: "border-red-500 dark:border-red-400",
|
|
64
64
|
disabled: "disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed"
|
|
65
65
|
},
|
|
66
66
|
checkbox: {
|
|
67
|
-
base: "h-4 w-4 text-
|
|
67
|
+
base: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600 dark:bg-gray-800 rounded disabled:cursor-not-allowed",
|
|
68
68
|
error: "border-red-500 dark:border-red-400",
|
|
69
69
|
label: "ml-2 block text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
70
70
|
},
|
|
71
71
|
toggle: {
|
|
72
|
-
track: "absolute inset-0 rounded-full transition-colors duration-200 bg-gray-300 dark:bg-gray-600 peer-focus:ring-2 peer-focus:ring-
|
|
73
|
-
trackActive: "peer-checked:bg-
|
|
72
|
+
track: "absolute inset-0 rounded-full transition-colors duration-200 bg-gray-300 dark:bg-gray-600 peer-focus:ring-2 peer-focus:ring-blue-500 peer-focus:ring-offset-2 dark:peer-focus:ring-offset-gray-800",
|
|
73
|
+
trackActive: "peer-checked:bg-blue-600 peer-checked:dark:bg-blue-500",
|
|
74
74
|
thumb: "absolute left-1 top-1 w-4 h-4 bg-white dark:bg-gray-200 rounded-full transition-transform duration-200 peer-checked:translate-x-5",
|
|
75
75
|
label: "block text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
76
76
|
},
|
|
77
77
|
radio: {
|
|
78
|
-
base: "h-4 w-4 text-
|
|
78
|
+
base: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 dark:border-gray-600 dark:bg-gray-800 disabled:cursor-not-allowed",
|
|
79
79
|
label: "ml-2 text-sm text-gray-700 dark:text-gray-300",
|
|
80
80
|
group: "mt-1"
|
|
81
81
|
},
|
|
82
82
|
file: {
|
|
83
|
-
dropzone: "flex flex-col items-center justify-center w-full p-6 border-2 border-dashed rounded-md cursor-pointer border-gray-300 dark:border-gray-600 hover:border-
|
|
84
|
-
dropzoneActive: "border-
|
|
83
|
+
dropzone: "flex flex-col items-center justify-center w-full p-6 border-2 border-dashed rounded-md cursor-pointer border-gray-300 dark:border-gray-600 hover:border-blue-500 dark:hover:border-blue-500 transition-colors duration-200",
|
|
84
|
+
dropzoneActive: "border-blue-500 bg-blue-50 dark:bg-blue-900/20",
|
|
85
85
|
dropzoneError: "border-red-500 dark:border-red-400 hover:border-red-500 dark:hover:border-red-400",
|
|
86
86
|
icon: "w-8 h-8 text-gray-400 dark:text-gray-500",
|
|
87
87
|
text: "mt-2 text-sm text-gray-500 dark:text-gray-400",
|
|
88
88
|
hint: "mt-1 text-xs text-gray-500 dark:text-gray-400"
|
|
89
89
|
},
|
|
90
90
|
submit: {
|
|
91
|
-
base: "mt-1 flex items-center justify-center w-full px-4 py-2 border border-transparent rounded-md shadow-sm text-white bg-
|
|
91
|
+
base: "mt-1 flex items-center justify-center w-full px-4 py-2 border border-transparent rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-500 focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-800 focus:ring-blue-500 transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",
|
|
92
92
|
loading: "opacity-75",
|
|
93
93
|
spinner: "mr-3 -ml-1 size-5 animate-spin text-white"
|
|
94
94
|
},
|
|
@@ -101,18 +101,18 @@ var defaultTheme = {
|
|
|
101
101
|
info: "bg-blue-50 dark:bg-blue-900/20 text-blue-800 dark:text-blue-200 border-blue-200 dark:border-blue-800"
|
|
102
102
|
},
|
|
103
103
|
datetime: {
|
|
104
|
-
input: "block w-full px-3 py-2 pr-10 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-
|
|
104
|
+
input: "block w-full px-3 py-2 pr-10 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring focus:ring-blue-500 focus:border-blue-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed cursor-pointer",
|
|
105
105
|
dropdown: "absolute z-50 mt-2 p-4 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg shadow-lg w-80",
|
|
106
106
|
picker: "absolute z-50 mt-2 p-4 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg shadow-lg w-80",
|
|
107
107
|
calendar: "grid grid-cols-7 gap-1 mb-4",
|
|
108
|
-
day: "p-2 text-sm rounded hover:bg-
|
|
109
|
-
daySelected: "bg-
|
|
110
|
-
dayButton: "p-2 text-sm rounded hover:bg-
|
|
111
|
-
dayButtonSelected: "bg-
|
|
108
|
+
day: "p-2 text-sm rounded hover:bg-blue-600 hover:text-white transition-colors text-gray-700 dark:text-gray-300",
|
|
109
|
+
daySelected: "bg-blue-600 text-white",
|
|
110
|
+
dayButton: "p-2 text-sm rounded hover:bg-blue-600 hover:text-white transition-colors text-gray-700 dark:text-gray-300",
|
|
111
|
+
dayButtonSelected: "bg-blue-600 text-white",
|
|
112
112
|
timeInput: "w-14 px-2 py-1 text-center border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100",
|
|
113
113
|
timeLabel: "text-xs font-medium text-gray-700 dark:text-gray-300",
|
|
114
114
|
periodButton: "px-3 py-1 text-xs rounded bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300",
|
|
115
|
-
periodButtonActive: "bg-
|
|
115
|
+
periodButtonActive: "bg-blue-600 text-white",
|
|
116
116
|
iconButton: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400",
|
|
117
117
|
navButton: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-700 dark:text-white",
|
|
118
118
|
monthYear: "text-sm font-medium text-gray-900 dark:text-gray-100",
|
|
@@ -120,7 +120,7 @@ var defaultTheme = {
|
|
|
120
120
|
formatButton: "px-2 py-1 text-xs bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:hover:bg-gray-600"
|
|
121
121
|
},
|
|
122
122
|
button: {
|
|
123
|
-
primary: "flex-1 px-3 py-2 text-sm bg-
|
|
123
|
+
primary: "flex-1 px-3 py-2 text-sm bg-blue-600 text-white rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
124
124
|
secondary: "flex-1 px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
|
|
125
125
|
},
|
|
126
126
|
readonly: "mt-1 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-gray-100",
|
|
@@ -1013,7 +1013,7 @@ function FileInput({
|
|
|
1013
1013
|
)
|
|
1014
1014
|
}
|
|
1015
1015
|
),
|
|
1016
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: theme.file?.text, children: fileName ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-
|
|
1016
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: theme.file?.text, children: fileName ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-blue-600 dark:text-blue-400", children: fileName }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1017
1017
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: labels.fileUpload?.clickToUpload }),
|
|
1018
1018
|
" ",
|
|
1019
1019
|
labels.fileUpload?.dragAndDrop
|
|
@@ -1050,7 +1050,7 @@ function FileInput({
|
|
|
1050
1050
|
href: fileUrl,
|
|
1051
1051
|
target: "_blank",
|
|
1052
1052
|
rel: "noopener noreferrer",
|
|
1053
|
-
className: "mt-2 inline-flex items-center text-xs text-
|
|
1053
|
+
className: "mt-2 inline-flex items-center text-xs text-blue-600 hover:underline dark:text-blue-400",
|
|
1054
1054
|
children: [
|
|
1055
1055
|
"View Current ",
|
|
1056
1056
|
label,
|