@axzydev/axzy_ui_system 1.2.11 → 1.2.12

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.
Files changed (44) hide show
  1. package/dist/index.cjs +179 -176
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.d.cts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +179 -176
  8. package/dist/index.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/components/avatar/avatar.tsx +1 -1
  11. package/src/components/calendar/calendar.tsx +1 -1
  12. package/src/components/card/card.tsx +11 -8
  13. package/src/components/data-table/dataTable.tsx +3 -3
  14. package/src/components/dialog/dialog.tsx +2 -2
  15. package/src/components/divider/divider.tsx +1 -1
  16. package/src/components/dropfile/dropfile.tsx +14 -14
  17. package/src/components/form-builder/fieldRenderer.tsx +3 -3
  18. package/src/components/input/input.tsx +7 -7
  19. package/src/components/loader/loader.tsx +1 -1
  20. package/src/components/navbar/navbar.tsx +10 -10
  21. package/src/components/pagination/pagination.tsx +11 -11
  22. package/src/components/search-select/search-select.tsx +8 -8
  23. package/src/components/searchTable/components/EditableCell.tsx +1 -1
  24. package/src/components/searchTable/components/PaginationControls.tsx +2 -2
  25. package/src/components/searchTable/components/PaginationInfo.tsx +1 -1
  26. package/src/components/searchTable/components/SearchAndSortBar.tsx +1 -1
  27. package/src/components/searchTable/components/SearchInput.tsx +1 -1
  28. package/src/components/searchTable/components/SortButton.tsx +3 -3
  29. package/src/components/searchTable/components/TableHeader.tsx +1 -1
  30. package/src/components/searchTable/components/TableRow.tsx +4 -4
  31. package/src/components/searchTable/searchTable.tsx +2 -2
  32. package/src/components/select/select.tsx +2 -2
  33. package/src/components/sidebar/sidebar.tsx +15 -15
  34. package/src/components/slider/slider.tsx +3 -3
  35. package/src/components/stepper/stepper.tsx +5 -5
  36. package/src/components/table/table.tsx +3 -3
  37. package/src/components/tabs/tabs.tsx +4 -4
  38. package/src/components/textarea/textarea.tsx +3 -3
  39. package/src/components/theme-provider/themeProvider.tsx +32 -32
  40. package/src/components/time-picker/timePicker.tsx +5 -5
  41. package/src/components/topbar/topbar.tsx +6 -6
  42. package/src/index.css +23 -0
  43. package/src/theme/theme.ts +17 -17
  44. package/src/utils/styles.ts +5 -5
@@ -160,7 +160,7 @@ export const components = {
160
160
  hover: semanticColors.primary[600],
161
161
  active: semanticColors.primary[700],
162
162
  focus: `0 0 0 2px ${semanticColors.primary[200]}`,
163
- borderRadius: '0.375rem',
163
+ borderRadius: 'var(--radius-md)',
164
164
  padding: '0.5rem 1rem',
165
165
  fontSize: '0.875rem',
166
166
  fontWeight: '600',
@@ -172,7 +172,7 @@ export const components = {
172
172
  color: '#ffffff',
173
173
  hover: semanticColors.secondary[600],
174
174
  focus: `0 0 0 2px ${semanticColors.secondary[200]}`,
175
- borderRadius: '0.375rem',
175
+ borderRadius: 'var(--radius-md)',
176
176
  padding: '0.5rem 1rem',
177
177
  fontSize: '0.875rem',
178
178
  fontWeight: '600',
@@ -183,7 +183,7 @@ export const components = {
183
183
  color: '#ffffff',
184
184
  hover: semanticColors.success[600],
185
185
  focus: `0 0 0 2px ${semanticColors.success[200]}`,
186
- borderRadius: '0.375rem',
186
+ borderRadius: 'var(--radius-md)',
187
187
  },
188
188
 
189
189
  danger: {
@@ -191,14 +191,14 @@ export const components = {
191
191
  color: '#ffffff',
192
192
  hover: semanticColors.danger[600],
193
193
  focus: `0 0 0 2px ${semanticColors.danger[200]}`,
194
- borderRadius: '0.375rem',
194
+ borderRadius: 'var(--radius-md)',
195
195
  },
196
196
 
197
197
  error: {
198
198
  backgroundColor: semanticColors.danger[500],
199
199
  color: '#ffffff',
200
200
  hover: semanticColors.danger[600],
201
- borderRadius: '0.375rem',
201
+ borderRadius: 'var(--radius-md)',
202
202
  },
203
203
 
204
204
  warning: {
@@ -206,7 +206,7 @@ export const components = {
206
206
  color: '#ffffff',
207
207
  hover: semanticColors.warning[600],
208
208
  focus: `0 0 0 2px ${semanticColors.warning[200]}`,
209
- borderRadius: '0.375rem',
209
+ borderRadius: 'var(--radius-md)',
210
210
  },
211
211
 
212
212
  info: {
@@ -214,7 +214,7 @@ export const components = {
214
214
  color: '#ffffff',
215
215
  hover: semanticColors.info[600],
216
216
  focus: `0 0 0 2px ${semanticColors.info[200]}`,
217
- borderRadius: '0.375rem',
217
+ borderRadius: 'var(--radius-md)',
218
218
  },
219
219
 
220
220
  purple: {
@@ -222,7 +222,7 @@ export const components = {
222
222
  color: '#ffffff',
223
223
  hover: semanticColors.purple[600],
224
224
  focus: `0 0 0 2px ${semanticColors.purple[200]}`,
225
- borderRadius: '0.375rem',
225
+ borderRadius: 'var(--radius-md)',
226
226
  },
227
227
 
228
228
  outline: {
@@ -231,7 +231,7 @@ export const components = {
231
231
  borderColor: semanticColors.primary[600],
232
232
  borderWidth: '2px',
233
233
  hover: semanticColors.primary[50],
234
- borderRadius: '0.375rem',
234
+ borderRadius: 'var(--radius-md)',
235
235
  },
236
236
  },
237
237
 
@@ -291,19 +291,19 @@ export const components = {
291
291
 
292
292
  card: {
293
293
  backgroundColor: 'var(--card-bg, #ffffff)',
294
- borderRadius: '1rem',
294
+ borderRadius: 'var(--radius-2xl)',
295
295
  borderColor: `var(--card-border, ${semanticColors.gray[200]})`,
296
296
  borderWidth: '1px',
297
- shadow: 'var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))',
297
+ shadow: 'var(--card-shadow, var(--shadow-md))',
298
298
  hover: {
299
- shadow: 'var(--card-shadow-hover, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))',
299
+ shadow: 'var(--card-shadow-hover, var(--shadow-lg))',
300
300
  },
301
301
  header: {
302
302
  backgroundColor: `var(--card-header-bg, ${semanticColors.gray[50]})`,
303
303
  borderBottom: `1px solid var(--card-header-border, var(--color-secondary-200))`,
304
304
  padding: '1rem 1.5rem',
305
- borderTopLeftRadius: '1rem',
306
- borderTopRightRadius: '1rem',
305
+ borderTopLeftRadius: 'var(--radius-2xl)',
306
+ borderTopRightRadius: 'var(--radius-2xl)',
307
307
  },
308
308
  body: {
309
309
  padding: '1.5rem',
@@ -313,7 +313,7 @@ export const components = {
313
313
  input: {
314
314
  backgroundColor: 'var(--input-bg, #ffffff)',
315
315
  borderColor: `var(--input-border, ${semanticColors.gray[300]})`,
316
- borderRadius: '0.5rem',
316
+ borderRadius: 'var(--radius-md)',
317
317
  padding: '0.5rem 0.75rem',
318
318
  fontSize: '0.875rem',
319
319
  focus: {
@@ -382,8 +382,8 @@ export const components = {
382
382
  },
383
383
  content: {
384
384
  backgroundColor: 'var(--modal-bg, #ffffff)',
385
- borderRadius: '1rem',
386
- shadow: 'var(--modal-shadow, 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))',
385
+ borderRadius: 'var(--radius-2xl)',
386
+ shadow: 'var(--modal-shadow, var(--shadow-xl))',
387
387
  },
388
388
  header: {
389
389
  padding: '1.5rem 1.5rem 0.5rem 1.5rem',
@@ -9,20 +9,20 @@ export function inputContainer(hasError?: boolean, disabled?: boolean) {
9
9
  "w-full border border-solid transition-all duration-200 rounded-lg px-3 py-2 text-sm",
10
10
  "focus:outline-none focus:ring-2",
11
11
  hasError
12
- ? "border-red-500 ring-red-100"
13
- : "border-gray-300 focus:border-primary-500 focus:ring-primary-100",
14
- disabled && "opacity-50 cursor-not-allowed bg-gray-100"
12
+ ? "border-danger-500 ring-danger-100"
13
+ : "border-secondary-300 focus:border-primary-500 focus:ring-primary-100",
14
+ disabled && "opacity-50 cursor-not-allowed bg-secondary-100"
15
15
  );
16
16
  }
17
17
 
18
18
  export function inputLabel(error?: boolean) {
19
19
  return clsx(
20
20
  "text-sm font-medium",
21
- error ? "text-red-500" : "text-gray-700 dark:text-slate-300"
21
+ error ? "text-danger-500" : "text-secondary-700 dark:text-secondary-300"
22
22
  );
23
23
  }
24
24
 
25
- export const inputError = "text-red-500 text-xs mt-1";
25
+ export const inputError = "text-danger-500 text-xs mt-1";
26
26
 
27
27
  export function inputWrapper(className?: string) {
28
28
  return clsx("flex flex-col gap-1.5", className);