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