@solidxai/core-ui 0.1.8-beta.7 → 0.1.8-beta.9
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/components/auth/AuthLayout.d.ts.map +1 -1
- package/dist/components/auth/AuthLayout.js +16 -32
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +4 -20
- package/dist/components/auth/AuthTabs.d.ts.map +1 -1
- package/dist/components/auth/AuthTabs.js +9 -9
- package/dist/components/auth/AuthTabs.js.map +1 -1
- package/dist/components/auth/AuthTabs.tsx +14 -15
- package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +67 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.tsx +133 -0
- package/dist/components/auth/SolidRegister.d.ts.map +1 -1
- package/dist/components/auth/SolidRegister.js +1 -1
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidRegister.tsx +12 -5
- package/dist/components/common/AuthBanner.js.map +1 -1
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +41 -46
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +0 -19
- package/dist/components/common/SolidThemeProvider.d.ts.map +1 -1
- package/dist/components/common/SolidThemeProvider.js +5 -21
- package/dist/components/common/SolidThemeProvider.js.map +1 -1
- package/dist/components/common/SolidThemeProvider.tsx +6 -24
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
- package/dist/components/core/form/SolidFormView.js +42 -41
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +16 -16
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +1 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +41 -44
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +16 -25
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +2 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +2 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +10 -21
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +10 -18
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +6 -3
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +24 -30
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +2 -2
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +3 -11
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +27 -48
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +7 -6
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +10 -9
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.css +283 -9
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts.map +1 -1
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js +35 -28
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js.map +1 -1
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.tsx +64 -62
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts +2 -1
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts.map +1 -1
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js +4 -4
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js.map +1 -1
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.tsx +17 -10
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts.map +1 -1
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js +2 -19
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js.map +1 -1
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.tsx +24 -43
- package/dist/components/core/users/CreateUser.css +114 -0
- package/dist/components/core/users/CreateUser.d.ts +1 -0
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +4 -3
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +32 -26
- package/dist/components/layout/context/layoutcontext.js +2 -2
- package/dist/components/layout/context/layoutcontext.js.map +1 -1
- package/dist/components/layout/context/layoutcontext.tsx +2 -2
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts +6 -1
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js +3 -3
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidConfirmDialog.tsx +15 -3
- package/dist/components/shad-cn-ui/SolidTabs.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.js +2 -2
- package/dist/components/shad-cn-ui/SolidTabs.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.tsx +0 -2
- package/dist/nextAuth/authProviders.d.ts +4 -0
- package/dist/nextAuth/authProviders.d.ts.map +1 -0
- package/dist/nextAuth/authProviders.js +198 -0
- package/dist/nextAuth/authProviders.js.map +1 -0
- package/dist/nextAuth/authProviders.tsx +232 -0
- package/dist/nextAuth/handleLogout.d.ts +2 -0
- package/dist/nextAuth/handleLogout.d.ts.map +1 -0
- package/dist/nextAuth/handleLogout.js +36 -0
- package/dist/nextAuth/handleLogout.js.map +1 -0
- package/dist/nextAuth/handleLogout.tsx +39 -0
- package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
- package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
- package/dist/nextAuth/refreshAccessToken.js +24 -0
- package/dist/nextAuth/refreshAccessToken.js.map +1 -0
- package/dist/nextAuth/refreshAccessToken.tsx +28 -0
- package/dist/redux/features/settingsSlice.d.ts +20 -0
- package/dist/redux/features/settingsSlice.d.ts.map +1 -0
- package/dist/redux/features/settingsSlice.js +39 -0
- package/dist/redux/features/settingsSlice.js.map +1 -0
- package/dist/redux/features/settingsSlice.ts +60 -0
- package/dist/resources/globals.css +97 -77
- package/dist/resources/shadcn-base.css +62 -304
- package/package.json +1 -1
- package/dist/components/core/list/SolidDataTablePagination.d.ts +0 -15
- package/dist/components/core/list/SolidDataTablePagination.d.ts.map +0 -1
- package/dist/components/core/list/SolidDataTablePagination.js +0 -22
- package/dist/components/core/list/SolidDataTablePagination.js.map +0 -1
- package/dist/components/core/list/SolidDataTablePagination.tsx +0 -71
- package/dist/components/solid-ui/SolidButton.d.ts +0 -14
- package/dist/components/solid-ui/SolidButton.d.ts.map +0 -1
- package/dist/components/solid-ui/SolidButton.js +0 -36
- package/dist/components/solid-ui/SolidButton.js.map +0 -1
- package/dist/components/solid-ui/SolidButton.tsx +0 -54
- package/dist/components/solid-ui/SolidTabs.d.ts +0 -18
- package/dist/components/solid-ui/SolidTabs.d.ts.map +0 -1
- package/dist/components/solid-ui/SolidTabs.js +0 -22
- package/dist/components/solid-ui/SolidTabs.js.map +0 -1
- package/dist/components/solid-ui/SolidTabs.tsx +0 -73
- package/dist/components/solid-ui/index.d.ts +0 -3
- package/dist/components/solid-ui/index.d.ts.map +0 -1
- package/dist/components/solid-ui/index.js +0 -3
- package/dist/components/solid-ui/index.js.map +0 -1
- package/dist/components/solid-ui/index.ts +0 -2
|
@@ -1767,9 +1767,7 @@ body {
|
|
|
1767
1767
|
color: var(--muted-foreground);
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
.auth-container .
|
|
1771
|
-
.auth-container .p-password .p-inputtext,
|
|
1772
|
-
.auth-container .p-password-input {
|
|
1770
|
+
.auth-container .solid-input {
|
|
1773
1771
|
width: 100%;
|
|
1774
1772
|
height: 40px;
|
|
1775
1773
|
border-radius: 10px;
|
|
@@ -1780,49 +1778,44 @@ body {
|
|
|
1780
1778
|
box-shadow: none;
|
|
1781
1779
|
}
|
|
1782
1780
|
|
|
1783
|
-
.auth-container .
|
|
1781
|
+
.auth-container .solid-password {
|
|
1784
1782
|
width: 100%;
|
|
1785
1783
|
}
|
|
1786
1784
|
|
|
1787
|
-
.auth-container .
|
|
1788
|
-
.auth-container .p-password .p-inputtext:focus {
|
|
1785
|
+
.auth-container .solid-input:focus-visible {
|
|
1789
1786
|
border-color: color-mix(in srgb, var(--primary) 65%, var(--border));
|
|
1790
1787
|
box-shadow: 0 0 0 3px var(--ring);
|
|
1791
1788
|
}
|
|
1792
1789
|
|
|
1793
|
-
.auth-container .
|
|
1790
|
+
.auth-container .solid-password-toggle {
|
|
1794
1791
|
color: var(--muted);
|
|
1795
1792
|
}
|
|
1796
1793
|
|
|
1797
|
-
.auth-container .
|
|
1794
|
+
.auth-container .solid-message {
|
|
1798
1795
|
border-radius: 8px;
|
|
1799
1796
|
margin-top: 4px;
|
|
1800
1797
|
padding: 8px 10px;
|
|
1801
1798
|
}
|
|
1802
1799
|
|
|
1803
|
-
.auth-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
.auth-submit-button.p-button,
|
|
1808
|
-
.auth-back-button.p-button {
|
|
1800
|
+
.auth-submit-button.solid-btn,
|
|
1801
|
+
.auth-back-button.solid-btn {
|
|
1809
1802
|
width: 100%;
|
|
1810
1803
|
min-height: 40px;
|
|
1811
1804
|
border-radius: 10px;
|
|
1812
1805
|
font-weight: 500;
|
|
1813
1806
|
}
|
|
1814
1807
|
|
|
1815
|
-
.auth-submit-button.
|
|
1816
|
-
.auth-back-button.
|
|
1808
|
+
.auth-submit-button.solid-btn .solid-btn-label,
|
|
1809
|
+
.auth-back-button.solid-btn .solid-btn-label {
|
|
1817
1810
|
font-weight: 500;
|
|
1818
1811
|
}
|
|
1819
1812
|
|
|
1820
|
-
.auth-back-button.
|
|
1813
|
+
.auth-back-button.solid-btn.solid-btn--ghost {
|
|
1821
1814
|
justify-content: flex-start;
|
|
1822
1815
|
color: var(--muted-foreground);
|
|
1823
1816
|
}
|
|
1824
1817
|
|
|
1825
|
-
.auth-back-button.
|
|
1818
|
+
.auth-back-button.solid-btn.solid-btn--ghost:hover {
|
|
1826
1819
|
color: var(--foreground);
|
|
1827
1820
|
text-decoration: none;
|
|
1828
1821
|
}
|
|
@@ -1831,50 +1824,10 @@ body {
|
|
|
1831
1824
|
margin-top: 10px;
|
|
1832
1825
|
}
|
|
1833
1826
|
|
|
1834
|
-
.solid-auth-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
gap: 4px;
|
|
1838
|
-
padding: 4px;
|
|
1839
|
-
border: 1px solid var(--border);
|
|
1840
|
-
border-radius: 10px;
|
|
1841
|
-
background: color-mix(in srgb, var(--muted) 12%, transparent);
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
.solid-auth-tabs-trigger {
|
|
1845
|
-
border: 0;
|
|
1846
|
-
background: transparent;
|
|
1847
|
-
color: var(--muted-foreground);
|
|
1848
|
-
border-radius: 8px;
|
|
1849
|
-
height: 34px;
|
|
1850
|
-
font-size: 12.5px;
|
|
1851
|
-
font-weight: 500;
|
|
1852
|
-
cursor: pointer;
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
.solid-auth-tabs-trigger.is-active {
|
|
1856
|
-
background: var(--card);
|
|
1857
|
-
color: var(--foreground);
|
|
1858
|
-
box-shadow: 0 1px 0 rgba(2, 6, 23, 0.08);
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
.solid-auth-tabs-panel {
|
|
1862
|
-
margin-top: 8px;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
.auth-container .p-divider.p-divider-horizontal {
|
|
1866
|
-
margin: 18px 0 10px;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
.auth-container .p-divider .p-divider-content {
|
|
1870
|
-
border: 1px solid var(--border);
|
|
1827
|
+
.solid-auth-divider .solid-divider {
|
|
1828
|
+
height: 1px;
|
|
1829
|
+
background: var(--border);
|
|
1871
1830
|
border-radius: 999px;
|
|
1872
|
-
background: var(--card);
|
|
1873
|
-
color: var(--muted-foreground);
|
|
1874
|
-
font-size: 11px;
|
|
1875
|
-
font-weight: 600;
|
|
1876
|
-
letter-spacing: 0.08em;
|
|
1877
|
-
padding: 4px 10px;
|
|
1878
1831
|
}
|
|
1879
1832
|
|
|
1880
1833
|
.google-auth-button {
|
|
@@ -2150,9 +2103,7 @@ body {
|
|
|
2150
2103
|
text-decoration: underline;
|
|
2151
2104
|
}
|
|
2152
2105
|
|
|
2153
|
-
.auth-container .
|
|
2154
|
-
.auth-container .p-password .p-inputtext,
|
|
2155
|
-
.auth-container .p-password-input {
|
|
2106
|
+
.auth-container .solid-input {
|
|
2156
2107
|
width: 100%;
|
|
2157
2108
|
height: 36px;
|
|
2158
2109
|
border: 1px solid #27272a;
|
|
@@ -2161,108 +2112,50 @@ body {
|
|
|
2161
2112
|
color: #fafafa;
|
|
2162
2113
|
}
|
|
2163
2114
|
|
|
2164
|
-
.auth-container .
|
|
2165
|
-
.auth-container .p-password .p-inputtext::placeholder {
|
|
2115
|
+
.auth-container .solid-input::placeholder {
|
|
2166
2116
|
color: #71717a;
|
|
2167
2117
|
}
|
|
2168
2118
|
|
|
2169
|
-
.auth-container .
|
|
2170
|
-
.auth-container .p-password .p-inputtext:focus {
|
|
2119
|
+
.auth-container .solid-input:focus-visible {
|
|
2171
2120
|
border-color: #3f3f46;
|
|
2172
2121
|
box-shadow: 0 0 0 2px rgba(244, 244, 245, 0.08);
|
|
2173
2122
|
}
|
|
2174
2123
|
|
|
2175
|
-
.auth-container .
|
|
2124
|
+
.auth-container .solid-password-toggle {
|
|
2176
2125
|
color: #a1a1aa;
|
|
2177
2126
|
}
|
|
2178
2127
|
|
|
2179
|
-
.auth-container .
|
|
2128
|
+
.auth-container .solid-message {
|
|
2180
2129
|
background: rgba(239, 68, 68, 0.12);
|
|
2181
2130
|
border-color: rgba(239, 68, 68, 0.3);
|
|
2182
2131
|
color: #fca5a5;
|
|
2183
2132
|
}
|
|
2184
2133
|
|
|
2185
|
-
.
|
|
2186
|
-
border: 1px solid #27272a;
|
|
2187
|
-
background: #18181b;
|
|
2188
|
-
border-radius: 10px;
|
|
2189
|
-
padding: 4px;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
.solid-auth-tabs .solid-tabs-trigger {
|
|
2193
|
-
border: 0;
|
|
2194
|
-
background: transparent;
|
|
2195
|
-
color: #a1a1aa;
|
|
2196
|
-
border-radius: 8px;
|
|
2197
|
-
height: 30px;
|
|
2198
|
-
font-size: 11px;
|
|
2199
|
-
font-weight: 500;
|
|
2200
|
-
cursor: pointer;
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
.solid-auth-tabs .solid-tabs-trigger.is-active {
|
|
2204
|
-
background: #27272a;
|
|
2205
|
-
color: #fafafa;
|
|
2206
|
-
box-shadow: none;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
.auth-submit-button.p-button {
|
|
2134
|
+
.auth-submit-button.solid-btn {
|
|
2210
2135
|
min-height: 36px;
|
|
2211
2136
|
background: #f4f4f5;
|
|
2212
2137
|
border-color: #f4f4f5;
|
|
2213
2138
|
color: #09090b;
|
|
2214
2139
|
}
|
|
2215
2140
|
|
|
2216
|
-
.auth-submit-button.
|
|
2141
|
+
.auth-submit-button.solid-btn .solid-btn-label {
|
|
2217
2142
|
color: #09090b;
|
|
2218
2143
|
font-weight: 600;
|
|
2219
2144
|
}
|
|
2220
2145
|
|
|
2221
|
-
.auth-submit-button.
|
|
2146
|
+
.auth-submit-button.solid-btn:not(:disabled):hover {
|
|
2222
2147
|
background: #e4e4e7;
|
|
2223
2148
|
border-color: #e4e4e7;
|
|
2224
2149
|
}
|
|
2225
2150
|
|
|
2226
|
-
.auth-back-button.
|
|
2151
|
+
.auth-back-button.solid-btn.solid-btn--ghost {
|
|
2227
2152
|
color: #a1a1aa;
|
|
2228
2153
|
}
|
|
2229
2154
|
|
|
2230
|
-
.auth-back-button.
|
|
2155
|
+
.auth-back-button.solid-btn.solid-btn--ghost:hover {
|
|
2231
2156
|
color: #fafafa;
|
|
2232
2157
|
}
|
|
2233
2158
|
|
|
2234
|
-
.auth-container .p-divider {
|
|
2235
|
-
margin: 16px 0 10px;
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
.auth-container .p-divider .p-divider-content {
|
|
2239
|
-
background: #111113;
|
|
2240
|
-
color: #a1a1aa;
|
|
2241
|
-
border: 0;
|
|
2242
|
-
border-radius: 0;
|
|
2243
|
-
padding: 0 10px;
|
|
2244
|
-
font-size: 12px;
|
|
2245
|
-
letter-spacing: 0;
|
|
2246
|
-
text-transform: none;
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
.auth-container .p-divider.p-divider-horizontal::before {
|
|
2250
|
-
border-top-color: #27272a;
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
.google-auth-button.solid-btn,
|
|
2254
|
-
.google-auth-button {
|
|
2255
|
-
width: 100%;
|
|
2256
|
-
height: 36px;
|
|
2257
|
-
border: 1px solid #27272a;
|
|
2258
|
-
border-radius: 10px;
|
|
2259
|
-
background: #18181b;
|
|
2260
|
-
color: #fafafa;
|
|
2261
|
-
font-size: 13px;
|
|
2262
|
-
font-weight: 500;
|
|
2263
|
-
box-shadow: none;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
2159
|
.solid-auth-center-stack {
|
|
2267
2160
|
display: flex;
|
|
2268
2161
|
flex-direction: column;
|
|
@@ -2409,40 +2302,7 @@ body {
|
|
|
2409
2302
|
line-height: 1.35 !important;
|
|
2410
2303
|
}
|
|
2411
2304
|
|
|
2412
|
-
.solid-auth-theme-wrapper .
|
|
2413
|
-
/* display: grid !important; */
|
|
2414
|
-
grid-template-columns: 1fr 1fr !important;
|
|
2415
|
-
gap: 4px !important;
|
|
2416
|
-
padding: 3px !important;
|
|
2417
|
-
border-radius: 10px !important;
|
|
2418
|
-
border: 1px solid #27272a !important;
|
|
2419
|
-
background: #18181b !important;
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
.solid-auth-theme-wrapper .solid-auth-tabs .solid-tabs-trigger {
|
|
2423
|
-
appearance: none;
|
|
2424
|
-
-webkit-appearance: none;
|
|
2425
|
-
border: 0 !important;
|
|
2426
|
-
outline: 0;
|
|
2427
|
-
box-shadow: none;
|
|
2428
|
-
min-height: 30px !important;
|
|
2429
|
-
padding: 0 8px !important;
|
|
2430
|
-
font-size: 12px !important;
|
|
2431
|
-
line-height: 1 !important;
|
|
2432
|
-
border-radius: 7px !important;
|
|
2433
|
-
background: transparent !important;
|
|
2434
|
-
color: #a1a1aa !important;
|
|
2435
|
-
font-weight: 500 !important;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
.solid-auth-theme-wrapper .solid-auth-tabs .solid-tabs-trigger.is-active {
|
|
2439
|
-
background: #2a2a2f !important;
|
|
2440
|
-
color: #fafafa !important;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
.solid-auth-theme-wrapper .auth-container .p-inputtext,
|
|
2444
|
-
.solid-auth-theme-wrapper .auth-container .p-password .p-inputtext,
|
|
2445
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input {
|
|
2305
|
+
.solid-auth-theme-wrapper .auth-container .solid-input {
|
|
2446
2306
|
height: 36px !important;
|
|
2447
2307
|
border-radius: 8px !important;
|
|
2448
2308
|
padding: 0 10px !important;
|
|
@@ -2458,9 +2318,7 @@ body {
|
|
|
2458
2318
|
box-shadow: none !important;
|
|
2459
2319
|
}
|
|
2460
2320
|
|
|
2461
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2462
|
-
.solid-auth-theme-wrapper .auth-container .p-password .p-inputtext:hover,
|
|
2463
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input:hover {
|
|
2321
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:hover {
|
|
2464
2322
|
border-color: #2f2f37 !important;
|
|
2465
2323
|
border-top-color: #2f2f37 !important;
|
|
2466
2324
|
border-right-color: #2f2f37 !important;
|
|
@@ -2468,9 +2326,7 @@ body {
|
|
|
2468
2326
|
border-left-color: #2f2f37 !important;
|
|
2469
2327
|
}
|
|
2470
2328
|
|
|
2471
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2472
|
-
.solid-auth-theme-wrapper .auth-container .p-password .p-inputtext:focus,
|
|
2473
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input:focus {
|
|
2329
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:focus-visible {
|
|
2474
2330
|
border-color: #2f2f37 !important;
|
|
2475
2331
|
border-top-color: #2f2f37 !important;
|
|
2476
2332
|
border-right-color: #2f2f37 !important;
|
|
@@ -2479,12 +2335,8 @@ body {
|
|
|
2479
2335
|
box-shadow: none !important;
|
|
2480
2336
|
}
|
|
2481
2337
|
|
|
2482
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2483
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2484
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input.p-invalid,
|
|
2485
|
-
.solid-auth-theme-wrapper .auth-container .p-inputtext.p-invalid:enabled:hover,
|
|
2486
|
-
.solid-auth-theme-wrapper .auth-container .p-password.p-invalid .p-inputtext:enabled:hover,
|
|
2487
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input.p-invalid:enabled:hover {
|
|
2338
|
+
.solid-auth-theme-wrapper .auth-container .solid-input[aria-invalid="true"],
|
|
2339
|
+
.solid-auth-theme-wrapper .auth-container .solid-input[aria-invalid="true"]:enabled:hover {
|
|
2488
2340
|
border-color: var(--solid-danger, #ef4444) !important;
|
|
2489
2341
|
border-top-color: var(--solid-danger, #ef4444) !important;
|
|
2490
2342
|
border-right-color: var(--solid-danger, #ef4444) !important;
|
|
@@ -2493,12 +2345,8 @@ body {
|
|
|
2493
2345
|
box-shadow: 0 0 0 3px var(--solid-danger-soft, rgba(239, 68, 68, 0.2)) !important;
|
|
2494
2346
|
}
|
|
2495
2347
|
|
|
2496
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2497
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2498
|
-
.solid-auth-theme-wrapper .auth-container .p-password .p-inputtext:enabled:hover,
|
|
2499
|
-
.solid-auth-theme-wrapper .auth-container .p-password .p-inputtext:enabled:focus,
|
|
2500
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input:enabled:hover,
|
|
2501
|
-
.solid-auth-theme-wrapper .auth-container .p-password-input:enabled:focus {
|
|
2348
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:enabled:hover,
|
|
2349
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:enabled:focus-visible {
|
|
2502
2350
|
border-color: #2f2f37 !important;
|
|
2503
2351
|
border-top-color: #2f2f37 !important;
|
|
2504
2352
|
border-right-color: #2f2f37 !important;
|
|
@@ -2507,33 +2355,29 @@ body {
|
|
|
2507
2355
|
box-shadow: none !important;
|
|
2508
2356
|
}
|
|
2509
2357
|
|
|
2510
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
-webkit-text-fill-color: #fafafa !important;
|
|
2523
|
-
-webkit-box-shadow: 0 0 0 1000px #18181b inset !important;
|
|
2524
|
-
box-shadow: 0 0 0 1000px #18181b inset !important;
|
|
2525
|
-
border-color: #2f2f37 !important;
|
|
2358
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:-webkit-autofill,
|
|
2359
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:-webkit-autofill:hover,
|
|
2360
|
+
.solid-auth-theme-wrapper .auth-container .solid-input:-webkit-autofill:focus {
|
|
2361
|
+
-webkit-text-fill-color: var(--solid-text-primary) !important;
|
|
2362
|
+
caret-color: var(--solid-text-primary) !important;
|
|
2363
|
+
-webkit-box-shadow: 0 0 0 1000px var(--solid-surface-input) inset !important;
|
|
2364
|
+
box-shadow: 0 0 0 1000px var(--solid-surface-input) inset !important;
|
|
2365
|
+
border-color: var(--solid-border-strong) !important;
|
|
2366
|
+
border-top-color: var(--solid-border-strong) !important;
|
|
2367
|
+
border-right-color: var(--solid-border-strong) !important;
|
|
2368
|
+
border-bottom-color: var(--solid-border-strong) !important;
|
|
2369
|
+
border-left-color: var(--solid-border-strong) !important;
|
|
2526
2370
|
}
|
|
2527
2371
|
|
|
2528
|
-
.solid-auth-theme-wrapper .auth-submit-button.
|
|
2529
|
-
.solid-auth-theme-wrapper .
|
|
2530
|
-
.solid-auth-theme-wrapper .
|
|
2372
|
+
.solid-auth-theme-wrapper .auth-submit-button.solid-btn,
|
|
2373
|
+
.solid-auth-theme-wrapper .auth-back-button.solid-btn,
|
|
2374
|
+
.solid-auth-theme-wrapper .solid-auth-social-btn.solid-btn {
|
|
2531
2375
|
min-height: 36px !important;
|
|
2532
2376
|
height: 36px !important;
|
|
2533
2377
|
border-radius: 8px !important;
|
|
2534
2378
|
}
|
|
2535
2379
|
|
|
2536
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2380
|
+
.solid-auth-theme-wrapper .auth-container .solid-message {
|
|
2537
2381
|
margin-top: 6px !important;
|
|
2538
2382
|
padding: 0 !important;
|
|
2539
2383
|
background: transparent !important;
|
|
@@ -2542,48 +2386,18 @@ body {
|
|
|
2542
2386
|
min-height: unset !important;
|
|
2543
2387
|
}
|
|
2544
2388
|
|
|
2545
|
-
.solid-auth-theme-wrapper .auth-container .
|
|
2546
|
-
margin-top: 6px !important;
|
|
2547
|
-
padding: 0 !important;
|
|
2548
|
-
background: transparent !important;
|
|
2549
|
-
border: 0 !important;
|
|
2550
|
-
box-shadow: none !important;
|
|
2551
|
-
min-height: unset !important;
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
.solid-auth-theme-wrapper .auth-container .p-message-wrapper,
|
|
2555
|
-
.solid-auth-theme-wrapper .auth-container .p-inline-message-text {
|
|
2556
|
-
background: transparent !important;
|
|
2557
|
-
border: 0 !important;
|
|
2558
|
-
box-shadow: none !important;
|
|
2559
|
-
padding: 0 !important;
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
.solid-auth-theme-wrapper .auth-container .p-message .p-message-text {
|
|
2389
|
+
.solid-auth-theme-wrapper .auth-container .solid-message {
|
|
2563
2390
|
font-size: 12px !important;
|
|
2564
2391
|
line-height: 1.35 !important;
|
|
2565
2392
|
color: var(--solid-danger, #ef4444) !important;
|
|
2566
2393
|
font-weight: 500 !important;
|
|
2567
2394
|
}
|
|
2568
2395
|
|
|
2569
|
-
.solid-auth-theme-wrapper .auth-container .p-inline-message .p-inline-message-text,
|
|
2570
|
-
.solid-auth-theme-wrapper .auth-container .p-message-text,
|
|
2571
|
-
.solid-auth-theme-wrapper .auth-container .p-inline-message-text,
|
|
2572
|
-
.solid-auth-theme-wrapper .auth-container .p-message-content,
|
|
2573
|
-
.solid-auth-theme-wrapper .auth-container .p-message-content>* {
|
|
2574
|
-
color: var(--solid-danger, #ef4444) !important;
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
2396
|
.solid-auth-theme-wrapper .auth-container .text-red-500,
|
|
2578
2397
|
.solid-auth-theme-wrapper .auth-container [class*="text-red"] {
|
|
2579
2398
|
color: var(--solid-danger, #ef4444) !important;
|
|
2580
2399
|
}
|
|
2581
2400
|
|
|
2582
|
-
.solid-auth-theme-wrapper .auth-container .p-message .p-message-icon,
|
|
2583
|
-
.solid-auth-theme-wrapper .auth-container .p-message .p-inline-message-icon {
|
|
2584
|
-
display: none !important;
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
2401
|
/* Side auth layout shell (left/right) */
|
|
2588
2402
|
.solid-auth-theme-wrapper.left,
|
|
2589
2403
|
.solid-auth-theme-wrapper.right {
|
|
@@ -2659,7 +2473,7 @@ body {
|
|
|
2659
2473
|
}
|
|
2660
2474
|
}
|
|
2661
2475
|
|
|
2662
|
-
/* Auth theme contract (
|
|
2476
|
+
/* Auth theme contract (driven by the global app theme mode) */
|
|
2663
2477
|
.solid-auth-theme-wrapper {
|
|
2664
2478
|
--solid-surface-base: #020204;
|
|
2665
2479
|
--solid-surface-pane: #020204;
|
|
@@ -2755,34 +2569,13 @@ body {
|
|
|
2755
2569
|
|
|
2756
2570
|
.solid-auth-theme-wrapper.auth-theme-light .solid-auth-inline-link,
|
|
2757
2571
|
.solid-auth-theme-wrapper.auth-theme-dark .solid-auth-inline-link,
|
|
2758
|
-
.solid-auth-theme-wrapper.auth-theme-light .
|
|
2759
|
-
.solid-auth-theme-wrapper.auth-theme-dark .
|
|
2760
|
-
color: var(--solid-text-muted) !important;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
.solid-auth-theme-wrapper.auth-theme-light .solid-auth-tabs-list,
|
|
2764
|
-
.solid-auth-theme-wrapper.auth-theme-dark .solid-auth-tabs-list {
|
|
2765
|
-
background: var(--solid-surface-tab) !important;
|
|
2766
|
-
border-color: var(--solid-border-default) !important;
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
.solid-auth-theme-wrapper.auth-theme-light .solid-auth-tabs .solid-tabs-trigger,
|
|
2770
|
-
.solid-auth-theme-wrapper.auth-theme-dark .solid-auth-tabs .solid-tabs-trigger {
|
|
2572
|
+
.solid-auth-theme-wrapper.auth-theme-light .solid-auth-divider span,
|
|
2573
|
+
.solid-auth-theme-wrapper.auth-theme-dark .solid-auth-divider span {
|
|
2771
2574
|
color: var(--solid-text-muted) !important;
|
|
2772
2575
|
}
|
|
2773
2576
|
|
|
2774
|
-
.solid-auth-theme-wrapper.auth-theme-light .
|
|
2775
|
-
.solid-auth-theme-wrapper.auth-theme-dark .
|
|
2776
|
-
background: var(--solid-surface-tab-active) !important;
|
|
2777
|
-
color: var(--solid-text-primary) !important;
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-inputtext,
|
|
2781
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-inputtext,
|
|
2782
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-password .p-inputtext,
|
|
2783
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-password .p-inputtext,
|
|
2784
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-password-input,
|
|
2785
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-password-input {
|
|
2577
|
+
.solid-auth-theme-wrapper.auth-theme-light .auth-container .solid-input,
|
|
2578
|
+
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .solid-input {
|
|
2786
2579
|
background: var(--solid-surface-input) !important;
|
|
2787
2580
|
color: var(--solid-text-primary) !important;
|
|
2788
2581
|
border-color: var(--solid-border-strong) !important;
|
|
@@ -2792,10 +2585,8 @@ body {
|
|
|
2792
2585
|
border-left-color: var(--solid-border-strong) !important;
|
|
2793
2586
|
}
|
|
2794
2587
|
|
|
2795
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .
|
|
2796
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .
|
|
2797
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-password .p-inputtext::placeholder,
|
|
2798
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-password .p-inputtext::placeholder {
|
|
2588
|
+
.solid-auth-theme-wrapper.auth-theme-light .auth-container .solid-input::placeholder,
|
|
2589
|
+
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .solid-input::placeholder {
|
|
2799
2590
|
color: var(--solid-input-placeholder) !important;
|
|
2800
2591
|
}
|
|
2801
2592
|
|
|
@@ -2937,8 +2728,7 @@ body {
|
|
|
2937
2728
|
color: var(--solid-text-muted);
|
|
2938
2729
|
}
|
|
2939
2730
|
|
|
2940
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input
|
|
2941
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp {
|
|
2731
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input {
|
|
2942
2732
|
display: flex;
|
|
2943
2733
|
align-items: center;
|
|
2944
2734
|
justify-content: center;
|
|
@@ -2946,8 +2736,7 @@ body {
|
|
|
2946
2736
|
width: 100%;
|
|
2947
2737
|
}
|
|
2948
2738
|
|
|
2949
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field
|
|
2950
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp .p-inputotp-input {
|
|
2739
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field {
|
|
2951
2740
|
width: 42px;
|
|
2952
2741
|
min-width: 42px;
|
|
2953
2742
|
height: 46px;
|
|
@@ -2960,37 +2749,23 @@ body {
|
|
|
2960
2749
|
font-weight: 600;
|
|
2961
2750
|
}
|
|
2962
2751
|
|
|
2963
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field:focus
|
|
2964
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp .p-inputotp-input:focus {
|
|
2752
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field:focus {
|
|
2965
2753
|
outline: none;
|
|
2966
2754
|
border-color: var(--primary) !important;
|
|
2967
2755
|
box-shadow: none !important;
|
|
2968
2756
|
}
|
|
2969
2757
|
|
|
2970
|
-
|
|
2971
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp .p-inputotp-input:nth-child(3) {
|
|
2972
|
-
margin-right: 10px;
|
|
2973
|
-
}
|
|
2974
|
-
|
|
2975
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field:nth-child(4),
|
|
2976
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp .p-inputotp-input:nth-child(4) {
|
|
2977
|
-
margin-right: 10px;
|
|
2978
|
-
} */
|
|
2979
|
-
|
|
2980
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.is-invalid .solid-otp-input-field,
|
|
2981
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp.p-invalid .p-inputotp-input {
|
|
2758
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input.is-invalid .solid-otp-input-field {
|
|
2982
2759
|
border-color: #ef4444 !important;
|
|
2983
2760
|
}
|
|
2984
2761
|
|
|
2985
2762
|
@media (max-width: 480px) {
|
|
2986
2763
|
|
|
2987
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input
|
|
2988
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp {
|
|
2764
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input {
|
|
2989
2765
|
gap: 6px;
|
|
2990
2766
|
}
|
|
2991
2767
|
|
|
2992
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field
|
|
2993
|
-
.solid-auth-theme-wrapper .solid-auth-otp-input.p-inputotp .p-inputotp-input {
|
|
2768
|
+
.solid-auth-theme-wrapper .solid-auth-otp-input .solid-otp-input-field {
|
|
2994
2769
|
width: 36px;
|
|
2995
2770
|
min-width: 36px;
|
|
2996
2771
|
height: 42px;
|
|
@@ -2998,23 +2773,6 @@ body {
|
|
|
2998
2773
|
}
|
|
2999
2774
|
}
|
|
3000
2775
|
|
|
3001
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-divider .p-divider-content,
|
|
3002
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-divider .p-divider-content {
|
|
3003
|
-
background: var(--solid-surface-card) !important;
|
|
3004
|
-
color: var(--solid-text-muted) !important;
|
|
3005
|
-
border: 0 !important;
|
|
3006
|
-
box-shadow: none !important;
|
|
3007
|
-
font-size: 12px !important;
|
|
3008
|
-
font-weight: 500 !important;
|
|
3009
|
-
letter-spacing: 0 !important;
|
|
3010
|
-
text-transform: none !important;
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
.solid-auth-theme-wrapper.auth-theme-light .auth-container .p-divider.p-divider-horizontal::before,
|
|
3014
|
-
.solid-auth-theme-wrapper.auth-theme-dark .auth-container .p-divider.p-divider-horizontal::before {
|
|
3015
|
-
border-top: 1px solid var(--solid-border-default) !important;
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
2776
|
/* Unified ambient auth glow across center/left/right layouts */
|
|
3019
2777
|
.solid-auth-theme-wrapper {
|
|
3020
2778
|
isolation: isolate;
|
|
@@ -6351,4 +6109,4 @@ html.dark .solid-paginator-btn:hover:not(:disabled),
|
|
|
6351
6109
|
|
|
6352
6110
|
.solid-list-toolbar-row{
|
|
6353
6111
|
padding: 5px 15px 0 10px;
|
|
6354
|
-
}
|
|
6112
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type SolidDataTablePaginationProps = {
|
|
2
|
-
rows: number;
|
|
3
|
-
first: number;
|
|
4
|
-
totalRecords: number;
|
|
5
|
-
rowsPerPageOptions?: number[];
|
|
6
|
-
onPage: (event: {
|
|
7
|
-
first: number;
|
|
8
|
-
rows: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
currentPageReportTemplate?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function SolidDataTablePagination({ rows, first, totalRecords, rowsPerPageOptions, onPage, currentPageReportTemplate, className, }: SolidDataTablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=SolidDataTablePagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolidDataTablePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidDataTablePagination.tsx"],"names":[],"mappings":"AAEA,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,kBAAsC,EACtC,MAAM,EACN,yBAAgE,EAChE,SAAS,GACV,EAAE,6BAA6B,2CA+C/B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
var cx = function () {
|
|
3
|
-
var parts = [];
|
|
4
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5
|
-
parts[_i] = arguments[_i];
|
|
6
|
-
}
|
|
7
|
-
return parts.filter(Boolean).join(" ");
|
|
8
|
-
};
|
|
9
|
-
export function SolidDataTablePagination(_a) {
|
|
10
|
-
var rows = _a.rows, first = _a.first, totalRecords = _a.totalRecords, _b = _a.rowsPerPageOptions, rowsPerPageOptions = _b === void 0 ? [10, 25, 50, 100] : _b, onPage = _a.onPage, _c = _a.currentPageReportTemplate, currentPageReportTemplate = _c === void 0 ? "{first} - {last} of {totalRecords}" : _c, className = _a.className;
|
|
11
|
-
var safeRows = rows > 0 ? rows : 25;
|
|
12
|
-
var start = totalRecords === 0 ? 0 : first + 1;
|
|
13
|
-
var end = Math.min(first + safeRows, totalRecords);
|
|
14
|
-
var currentPage = Math.floor(first / safeRows) + 1;
|
|
15
|
-
var totalPages = Math.max(1, Math.ceil(totalRecords / safeRows));
|
|
16
|
-
var report = currentPageReportTemplate
|
|
17
|
-
.replace("{first}", String(start))
|
|
18
|
-
.replace("{last}", String(end))
|
|
19
|
-
.replace("{totalRecords}", String(totalRecords));
|
|
20
|
-
return (_jsxs("div", { className: cx("w-full solid-table-paginator flex items-center justify-end gap-3 text-sm rounded-md border border-border/60 px-3 py-1.5 bg-background", className), children: [_jsxs("div", { className: "solid-paginator-meta flex items-center gap-2 ml-auto", children: [_jsx("span", { className: "solid-paginator-label", children: "Rows" }), _jsx("select", { value: safeRows, onChange: function (e) { return onPage({ first: 0, rows: Number(e.target.value) }); }, className: "solid-paginator-select", children: rowsPerPageOptions.map(function (option) { return (_jsx("option", { value: option, children: option }, option)); }) }), _jsx("span", { className: "solid-paginator-report", children: report })] }), _jsxs("div", { className: "solid-paginator-actions flex items-center gap-2", children: [_jsx("button", { type: "button", className: "solid-paginator-btn", onClick: function () { return onPage({ first: Math.max(0, first - safeRows), rows: safeRows }); }, disabled: currentPage <= 1, children: "Previous" }), _jsx("button", { type: "button", className: "solid-paginator-btn", onClick: function () { return onPage({ first: Math.min((totalPages - 1) * safeRows, first + safeRows), rows: safeRows }); }, disabled: currentPage >= totalPages, children: "Next" })] })] }));
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=SolidDataTablePagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolidDataTablePagination.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidDataTablePagination.tsx"],"names":[],"mappings":"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","sourcesContent":["import React from \"react\";\n\ntype SolidDataTablePaginationProps = {\n rows: number;\n first: number;\n totalRecords: number;\n rowsPerPageOptions?: number[];\n onPage: (event: { first: number; rows: number }) => void;\n currentPageReportTemplate?: string;\n className?: string;\n};\n\nconst cx = (...parts: Array<string | undefined | false>) => parts.filter(Boolean).join(\" \");\n\nexport function SolidDataTablePagination({\n rows,\n first,\n totalRecords,\n rowsPerPageOptions = [10, 25, 50, 100],\n onPage,\n currentPageReportTemplate = \"{first} - {last} of {totalRecords}\",\n className,\n}: SolidDataTablePaginationProps) {\n const safeRows = rows > 0 ? rows : 25;\n const start = totalRecords === 0 ? 0 : first + 1;\n const end = Math.min(first + safeRows, totalRecords);\n const currentPage = Math.floor(first / safeRows) + 1;\n const totalPages = Math.max(1, Math.ceil(totalRecords / safeRows));\n\n const report = currentPageReportTemplate\n .replace(\"{first}\", String(start))\n .replace(\"{last}\", String(end))\n .replace(\"{totalRecords}\", String(totalRecords));\n\n return (\n <div className={cx(\"w-full solid-table-paginator flex items-center justify-end gap-3 text-sm rounded-md border border-border/60 px-3 py-1.5 bg-background\", className)}>\n <div className=\"solid-paginator-meta flex items-center gap-2 ml-auto\">\n <span className=\"solid-paginator-label\">Rows</span>\n <select\n value={safeRows}\n onChange={(e) => onPage({ first: 0, rows: Number(e.target.value) })}\n className=\"solid-paginator-select\"\n >\n {rowsPerPageOptions.map((option) => (\n <option key={option} value={option}>{option}</option>\n ))}\n </select>\n <span className=\"solid-paginator-report\">{report}</span>\n </div>\n <div className=\"solid-paginator-actions flex items-center gap-2\">\n <button\n type=\"button\"\n className=\"solid-paginator-btn\"\n onClick={() => onPage({ first: Math.max(0, first - safeRows), rows: safeRows })}\n disabled={currentPage <= 1}\n >\n Previous\n </button>\n <button\n type=\"button\"\n className=\"solid-paginator-btn\"\n onClick={() => onPage({ first: Math.min((totalPages - 1) * safeRows, first + safeRows), rows: safeRows })}\n disabled={currentPage >= totalPages}\n >\n Next\n </button>\n </div>\n </div>\n );\n}\n\n"]}
|