@snapdragonsnursery/react-components 1.1.29 → 1.1.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapdragonsnursery/react-components",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -130,13 +130,10 @@ const ChildSearchPage = ({
130
130
  columnHelper.accessor("full_name", {
131
131
  header: "Name",
132
132
  cell: ({ row }) => (
133
- <div className="flex items-center space-x-2">
134
- <UserIcon className="h-4 w-4 text-gray-400" />
135
- <div>
136
- <div className="font-medium">{row.original.full_name}</div>
137
- <div className="text-sm text-gray-500">
138
- ID: {row.original.child_id}
139
- </div>
133
+ <div>
134
+ <div className="font-medium">{row.original.full_name}</div>
135
+ <div className="text-sm text-gray-500">
136
+ ID: {row.original.child_id}
140
137
  </div>
141
138
  </div>
142
139
  ),
@@ -145,24 +142,18 @@ const ChildSearchPage = ({
145
142
  columnHelper.accessor("site_name", {
146
143
  header: "Site",
147
144
  cell: ({ row }) => (
148
- <div className="flex items-center space-x-2">
149
- <MapPinIcon className="h-4 w-4 text-gray-400" />
150
- <span>{row.original.site_name}</span>
151
- </div>
145
+ <span>{row.original.site_name}</span>
152
146
  ),
153
147
  }),
154
148
  // Date of Birth column
155
149
  columnHelper.accessor("date_of_birth", {
156
150
  header: "Date of Birth",
157
151
  cell: ({ row }) => (
158
- <div className="flex items-center space-x-2">
159
- <CalendarIcon className="h-4 w-4 text-gray-400" />
160
- <span>
161
- {row.original.date_of_birth
162
- ? new Date(row.original.date_of_birth).toLocaleDateString("en-GB")
163
- : "N/A"}
164
- </span>
165
- </div>
152
+ <span>
153
+ {row.original.date_of_birth
154
+ ? new Date(row.original.date_of_birth).toLocaleDateString("en-GB")
155
+ : "N/A"}
156
+ </span>
166
157
  ),
167
158
  }),
168
159
  // Age column
@@ -180,11 +171,7 @@ const ChildSearchPage = ({
180
171
  ? `${years}y ${months}m`
181
172
  : "N/A";
182
173
 
183
- return (
184
- <div className="flex items-center space-x-2">
185
- <span>{ageText}</span>
186
- </div>
187
- );
174
+ return <span>{ageText}</span>;
188
175
  },
189
176
  }),
190
177
  // Status column
@@ -665,7 +652,7 @@ const ChildSearchPage = ({
665
652
  {!loading && !error && (
666
653
  <>
667
654
  {/* Results Header */}
668
- <div className="px-6 py-6 border-b border-gray-200 dark:border-gray-700">
655
+ <div className="px-6 py-6 border-b border-gray-200 dark:border-gray-700" style={{ padding: '24px' }}>
669
656
  <div className="flex items-center justify-between">
670
657
  <div className="text-sm text-gray-600 dark:text-gray-400">
671
658
  {(pagination.totalCount > 0 || children.length > 0)
@@ -739,20 +726,15 @@ const ChildSearchPage = ({
739
726
 
740
727
  {/* Pagination */}
741
728
  {(pagination.totalCount > 0 || children.length > 0) && (
742
- <div className="px-6 py-8 border-t border-gray-200 dark:border-gray-700">
743
- {/* Pagination Info */}
744
- <div className="flex items-center justify-between mb-6">
729
+ <div className="px-6 py-8 border-t border-gray-200 dark:border-gray-700" style={{ padding: '32px 24px' }}>
730
+ {/* Pagination Info and Controls */}
731
+ <div className="flex items-center justify-between">
745
732
  <div className="text-sm text-gray-600 dark:text-gray-400">
746
733
  Page {pagination.page} of {pagination.totalPages || 1}
747
734
  </div>
748
- <div className="text-sm text-gray-600 dark:text-gray-400">
749
- {pagination.totalCount || children.length} total children
750
- </div>
751
- </div>
752
-
753
- {/* Pagination Controls */}
754
- {(pagination.totalPages > 1 || children.length > 0) && (
755
- <div className="flex justify-center">
735
+
736
+ {/* Pagination Controls */}
737
+ {(pagination.totalPages > 1 || children.length > 0) && (
756
738
  <Pagination>
757
739
  <PaginationContent>
758
740
  <PaginationItem>
@@ -840,8 +822,12 @@ const ChildSearchPage = ({
840
822
  </PaginationItem>
841
823
  </PaginationContent>
842
824
  </Pagination>
825
+ )}
826
+
827
+ <div className="text-sm text-gray-600 dark:text-gray-400">
828
+ {pagination.totalCount || children.length} total children
843
829
  </div>
844
- )}
830
+ </div>
845
831
  </div>
846
832
  )}
847
833
  </>