django-unfold 0.33.0__py3-none-any.whl → 0.34.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. {django_unfold-0.33.0.dist-info → django_unfold-0.34.0.dist-info}/METADATA +17 -1
  2. {django_unfold-0.33.0.dist-info → django_unfold-0.34.0.dist-info}/RECORD +68 -68
  3. unfold/admin.py +5 -9
  4. unfold/contrib/filters/templates/unfold/filters/filters_date_range.html +1 -1
  5. unfold/contrib/filters/templates/unfold/filters/filters_datetime_range.html +1 -1
  6. unfold/contrib/filters/templates/unfold/filters/filters_numeric_range.html +1 -1
  7. unfold/contrib/filters/templates/unfold/filters/filters_numeric_single.html +1 -1
  8. unfold/contrib/filters/templates/unfold/filters/filters_numeric_slider.html +1 -1
  9. unfold/contrib/guardian/templates/unfold/guardian/group_form.html +10 -10
  10. unfold/contrib/guardian/templates/unfold/guardian/user_form.html +10 -10
  11. unfold/contrib/import_export/templates/admin/import_export/import_confirm.html +1 -1
  12. unfold/contrib/import_export/templates/admin/import_export/import_errors.html +3 -3
  13. unfold/contrib/import_export/templates/admin/import_export/import_preview.html +6 -6
  14. unfold/contrib/import_export/templates/admin/import_export/import_validation.html +8 -8
  15. unfold/contrib/simple_history/templates/simple_history/object_history_list.html +18 -18
  16. unfold/fields.py +2 -2
  17. unfold/forms.py +2 -1
  18. unfold/static/unfold/css/styles.css +1 -1
  19. unfold/styles.css +6 -10
  20. unfold/templates/admin/actions.html +14 -12
  21. unfold/templates/admin/app_list.html +3 -5
  22. unfold/templates/admin/change_list.html +4 -4
  23. unfold/templates/admin/change_list_results.html +4 -4
  24. unfold/templates/admin/delete_confirmation.html +9 -9
  25. unfold/templates/admin/delete_selected_confirmation.html +9 -9
  26. unfold/templates/admin/edit_inline/stacked.html +64 -58
  27. unfold/templates/admin/edit_inline/tabular.html +11 -11
  28. unfold/templates/admin/filter.html +5 -5
  29. unfold/templates/admin/includes/object_delete_summary.html +2 -2
  30. unfold/templates/admin/object_history.html +9 -9
  31. unfold/templates/admin/pagination.html +3 -3
  32. unfold/templates/admin/submit_line.html +7 -7
  33. unfold/templates/unfold/change_list_filter.html +3 -3
  34. unfold/templates/unfold/components/progress.html +1 -1
  35. unfold/templates/unfold/components/table.html +4 -4
  36. unfold/templates/unfold/components/title.html +1 -1
  37. unfold/templates/unfold/helpers/account_links.html +2 -2
  38. unfold/templates/unfold/helpers/actions_row.html +14 -12
  39. unfold/templates/unfold/helpers/add_link.html +2 -2
  40. unfold/templates/unfold/helpers/app_list.html +7 -7
  41. unfold/templates/unfold/helpers/app_list_default.html +7 -7
  42. unfold/templates/unfold/helpers/breadcrumb_item.html +1 -1
  43. unfold/templates/unfold/helpers/display_header.html +4 -2
  44. unfold/templates/unfold/helpers/field_readonly_value.html +1 -1
  45. unfold/templates/unfold/helpers/fieldset_row.html +1 -1
  46. unfold/templates/unfold/helpers/fieldsets_tabs.html +1 -1
  47. unfold/templates/unfold/helpers/help_text.html +1 -1
  48. unfold/templates/unfold/helpers/history.html +3 -3
  49. unfold/templates/unfold/helpers/label.html +6 -6
  50. unfold/templates/unfold/helpers/messages.html +12 -1
  51. unfold/templates/unfold/helpers/navigation.html +1 -1
  52. unfold/templates/unfold/helpers/search_results.html +2 -2
  53. unfold/templates/unfold/helpers/site_icon.html +1 -1
  54. unfold/templates/unfold/helpers/tab_action.html +1 -1
  55. unfold/templates/unfold/helpers/tab_list.html +9 -5
  56. unfold/templates/unfold/helpers/theme_switch.html +2 -2
  57. unfold/templates/unfold/helpers/welcomemsg.html +5 -3
  58. unfold/templates/unfold/layouts/skeleton.html +2 -2
  59. unfold/templates/unfold/widgets/clearable_file_input.html +2 -2
  60. unfold/templates/unfold/widgets/clearable_file_input_small.html +2 -2
  61. unfold/templates/unfold/widgets/foreign_key_raw_id.html +8 -4
  62. unfold/templates/unfold/widgets/radio_option.html +1 -1
  63. unfold/templates/unfold/widgets/split_datetime.html +2 -2
  64. unfold/templates/unfold/widgets/split_datetime_vertical.html +2 -2
  65. unfold/templatetags/unfold_list.py +6 -7
  66. unfold/widgets.py +10 -5
  67. {django_unfold-0.33.0.dist-info → django_unfold-0.34.0.dist-info}/LICENSE.md +0 -0
  68. {django_unfold-0.33.0.dist-info → django_unfold-0.34.0.dist-info}/WHEEL +0 -0
@@ -1,7 +1,7 @@
1
1
  <div class="datetime flex flex-col max-w-2xl">
2
2
  <div class="flex flex-col flex-wrap mb-2">
3
3
  {% if date_label %}
4
- <div class="mb-2 text-gray-500 text-sm dark:text-gray-200">
4
+ <div class="mb-2">
5
5
  {{ date_label }}
6
6
  </div>
7
7
  {% endif %}
@@ -15,7 +15,7 @@
15
15
 
16
16
  <div class="flex flex-col flex-wrap mt-3 md:mt-0">
17
17
  {% if time_label %}
18
- <div class="mb-2 text-gray-500 text-sm dark:text-gray-200">
18
+ <div class="mb-2">
19
19
  {{ time_label }}
20
20
  </div>
21
21
  {% endif %}
@@ -37,9 +37,7 @@ from ..widgets import UnfoldBooleanWidget
37
37
  register = Library()
38
38
 
39
39
  LINK_CLASSES = [
40
- "text-gray-600",
41
40
  "truncate",
42
- "dark:text-gray-300",
43
41
  ]
44
42
 
45
43
  ROW_CLASSES = [
@@ -54,17 +52,17 @@ ROW_CLASSES = [
54
52
  "px-3",
55
53
  "py-2",
56
54
  "text-left",
57
- "text-gray-500",
58
55
  "text-sm",
59
56
  "before:flex",
60
57
  "before:capitalize",
61
58
  "before:content-[attr(data-label)]",
62
59
  "before:items-center",
60
+ "before:font-semibold",
63
61
  "before:mr-auto",
64
- "before:text-gray-500",
62
+ "before:text-gray-900",
65
63
  "first:border-t-0",
66
- "dark:before:text-gray-300",
67
64
  "dark:text-gray-300",
65
+ "dark:before:text-gray-100",
68
66
  "lg:before:hidden",
69
67
  "lg:first:border-t",
70
68
  "lg:py-3",
@@ -84,13 +82,14 @@ CHECKBOX_CLASSES = [
84
82
  "before:block",
85
83
  "before:capitalize",
86
84
  "before:content-[attr(data-label)]",
85
+ "before:font-semibold",
87
86
  "before:mr-auto",
88
- "before:text-gray-500",
87
+ "before:text-gray-100",
89
88
  "lg:before:hidden",
90
89
  "lg:border-t",
91
90
  "lg:border-gray-200",
92
91
  "lg:table-cell",
93
- "dark:before:text-gray-300",
92
+ "dark:before:text-gray-100",
94
93
  "dark:lg:border-gray-800",
95
94
  ]
96
95
 
unfold/widgets.py CHANGED
@@ -36,14 +36,14 @@ LABEL_CLASSES = [
36
36
  "mb-2",
37
37
  "text-gray-900",
38
38
  "text-sm",
39
- "dark:text-gray-200",
39
+ "dark:text-gray-100",
40
40
  ]
41
41
 
42
42
  CHECKBOX_LABEL_CLASSES = [
43
43
  "ml-2",
44
44
  "text-sm",
45
45
  "text-gray-900",
46
- "dark:text-gray-200",
46
+ "dark:text-gray-100",
47
47
  ]
48
48
 
49
49
  BASE_CLASSES = [
@@ -123,7 +123,6 @@ PROSE_CLASSES = [
123
123
  "prose-pre:rounded",
124
124
  "prose-headings:font-medium",
125
125
  "prose-a:text-primary-600",
126
- "prose-a:underline",
127
126
  "prose-headings:font-medium",
128
127
  "prose-headings:text-gray-700",
129
128
  "prose-ol:list-decimal",
@@ -241,9 +240,10 @@ SWITCH_CLASSES = [
241
240
  "after:left-1",
242
241
  "after:top-1",
243
242
  "after:w-3",
244
- "checked:bg-primary-600",
243
+ "checked:bg-green-500",
245
244
  "checked:after:left-4",
246
245
  "dark:bg-gray-600",
246
+ "dark:checked:bg-green-700",
247
247
  ]
248
248
 
249
249
 
@@ -513,7 +513,12 @@ try:
513
513
  def __init__(self, *args, **kwargs):
514
514
  super().__init__(
515
515
  amount_widget=UnfoldAdminTextInputWidget,
516
- currency_widget=UnfoldAdminSelectWidget(choices=CURRENCY_CHOICES),
516
+ currency_widget=UnfoldAdminSelectWidget(
517
+ choices=CURRENCY_CHOICES,
518
+ attrs={
519
+ "aria-label": _("Select currency"),
520
+ },
521
+ ),
517
522
  )
518
523
 
519
524
  except ImportError: