django-shadcn 1.0.0__tar.gz

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 (245) hide show
  1. django_shadcn-1.0.0/.gitignore +301 -0
  2. django_shadcn-1.0.0/LICENSE +21 -0
  3. django_shadcn-1.0.0/PKG-INFO +45 -0
  4. django_shadcn-1.0.0/README.md +21 -0
  5. django_shadcn-1.0.0/components/a/index.html +39 -0
  6. django_shadcn-1.0.0/components/accordion/content.html +13 -0
  7. django_shadcn-1.0.0/components/accordion/index.html +33 -0
  8. django_shadcn-1.0.0/components/accordion/item.html +8 -0
  9. django_shadcn-1.0.0/components/accordion/trigger.html +12 -0
  10. django_shadcn-1.0.0/components/alert/description.html +10 -0
  11. django_shadcn-1.0.0/components/alert/index.html +19 -0
  12. django_shadcn-1.0.0/components/alert/title.html +10 -0
  13. django_shadcn-1.0.0/components/alert_dialog/action.html +21 -0
  14. django_shadcn-1.0.0/components/alert_dialog/cancel.html +22 -0
  15. django_shadcn-1.0.0/components/alert_dialog/content.html +33 -0
  16. django_shadcn-1.0.0/components/alert_dialog/description.html +3 -0
  17. django_shadcn-1.0.0/components/alert_dialog/footer.html +3 -0
  18. django_shadcn-1.0.0/components/alert_dialog/header.html +3 -0
  19. django_shadcn-1.0.0/components/alert_dialog/index.html +36 -0
  20. django_shadcn-1.0.0/components/alert_dialog/title.html +3 -0
  21. django_shadcn-1.0.0/components/alert_dialog/trigger.html +3 -0
  22. django_shadcn-1.0.0/components/allauth/account_inactive.html +23 -0
  23. django_shadcn-1.0.0/components/allauth/email.html +101 -0
  24. django_shadcn-1.0.0/components/allauth/email_change.html +56 -0
  25. django_shadcn-1.0.0/components/allauth/email_confirm.html +44 -0
  26. django_shadcn-1.0.0/components/allauth/login.html +106 -0
  27. django_shadcn-1.0.0/components/allauth/logout.html +29 -0
  28. django_shadcn-1.0.0/components/allauth/password_change.html +93 -0
  29. django_shadcn-1.0.0/components/allauth/password_reset.html +63 -0
  30. django_shadcn-1.0.0/components/allauth/password_reset_done.html +30 -0
  31. django_shadcn-1.0.0/components/allauth/password_reset_from_key.html +98 -0
  32. django_shadcn-1.0.0/components/allauth/password_reset_from_key_done.html +23 -0
  33. django_shadcn-1.0.0/components/allauth/password_set.html +74 -0
  34. django_shadcn-1.0.0/components/allauth/reauthenticate.html +55 -0
  35. django_shadcn-1.0.0/components/allauth/signup.html +125 -0
  36. django_shadcn-1.0.0/components/allauth/signup_closed.html +23 -0
  37. django_shadcn-1.0.0/components/allauth/verification_sent.html +31 -0
  38. django_shadcn-1.0.0/components/allauth/verified_email_required.html +31 -0
  39. django_shadcn-1.0.0/components/aspect_ratio/index.html +9 -0
  40. django_shadcn-1.0.0/components/avatar/badge.html +12 -0
  41. django_shadcn-1.0.0/components/avatar/fallback.html +9 -0
  42. django_shadcn-1.0.0/components/avatar/group.html +9 -0
  43. django_shadcn-1.0.0/components/avatar/group_count.html +13 -0
  44. django_shadcn-1.0.0/components/avatar/image.html +6 -0
  45. django_shadcn-1.0.0/components/avatar/index.html +11 -0
  46. django_shadcn-1.0.0/components/badge/index.html +22 -0
  47. django_shadcn-1.0.0/components/breadcrumb/ellipsis.html +9 -0
  48. django_shadcn-1.0.0/components/breadcrumb/index.html +7 -0
  49. django_shadcn-1.0.0/components/breadcrumb/item.html +8 -0
  50. django_shadcn-1.0.0/components/breadcrumb/link.html +8 -0
  51. django_shadcn-1.0.0/components/breadcrumb/list.html +9 -0
  52. django_shadcn-1.0.0/components/breadcrumb/page.html +8 -0
  53. django_shadcn-1.0.0/components/breadcrumb/separator.html +8 -0
  54. django_shadcn-1.0.0/components/button/index.html +44 -0
  55. django_shadcn-1.0.0/components/button_group/index.html +18 -0
  56. django_shadcn-1.0.0/components/button_group/separator.html +14 -0
  57. django_shadcn-1.0.0/components/button_group/text.html +9 -0
  58. django_shadcn-1.0.0/components/card/content.html +3 -0
  59. django_shadcn-1.0.0/components/card/description.html +3 -0
  60. django_shadcn-1.0.0/components/card/footer.html +3 -0
  61. django_shadcn-1.0.0/components/card/header.html +3 -0
  62. django_shadcn-1.0.0/components/card/index.html +10 -0
  63. django_shadcn-1.0.0/components/card/title.html +11 -0
  64. django_shadcn-1.0.0/components/checkbox/index.html +24 -0
  65. django_shadcn-1.0.0/components/collapsible/content.html +11 -0
  66. django_shadcn-1.0.0/components/collapsible/index.html +11 -0
  67. django_shadcn-1.0.0/components/collapsible/trigger.html +11 -0
  68. django_shadcn-1.0.0/components/combobox/index.html +130 -0
  69. django_shadcn-1.0.0/components/command/empty.html +8 -0
  70. django_shadcn-1.0.0/components/command/group.html +13 -0
  71. django_shadcn-1.0.0/components/command/index.html +66 -0
  72. django_shadcn-1.0.0/components/command/input.html +7 -0
  73. django_shadcn-1.0.0/components/command/item.html +28 -0
  74. django_shadcn-1.0.0/components/command/list.html +8 -0
  75. django_shadcn-1.0.0/components/command/separator.html +6 -0
  76. django_shadcn-1.0.0/components/command/shortcut.html +7 -0
  77. django_shadcn-1.0.0/components/command_dialog/index.html +61 -0
  78. django_shadcn-1.0.0/components/dialog/content.html +24 -0
  79. django_shadcn-1.0.0/components/dialog/description.html +3 -0
  80. django_shadcn-1.0.0/components/dialog/footer.html +3 -0
  81. django_shadcn-1.0.0/components/dialog/header.html +3 -0
  82. django_shadcn-1.0.0/components/dialog/index.html +31 -0
  83. django_shadcn-1.0.0/components/dialog/title.html +3 -0
  84. django_shadcn-1.0.0/components/dialog/trigger.html +27 -0
  85. django_shadcn-1.0.0/components/dropdown_menu/content.html +28 -0
  86. django_shadcn-1.0.0/components/dropdown_menu/index.html +7 -0
  87. django_shadcn-1.0.0/components/dropdown_menu/item.html +31 -0
  88. django_shadcn-1.0.0/components/dropdown_menu/label.html +3 -0
  89. django_shadcn-1.0.0/components/dropdown_menu/separator.html +7 -0
  90. django_shadcn-1.0.0/components/dropdown_menu/trigger.html +3 -0
  91. django_shadcn-1.0.0/components/empty/content.html +8 -0
  92. django_shadcn-1.0.0/components/empty/description.html +9 -0
  93. django_shadcn-1.0.0/components/empty/header.html +8 -0
  94. django_shadcn-1.0.0/components/empty/index.html +9 -0
  95. django_shadcn-1.0.0/components/empty/media.html +16 -0
  96. django_shadcn-1.0.0/components/empty/title.html +8 -0
  97. django_shadcn-1.0.0/components/field/content.html +8 -0
  98. django_shadcn-1.0.0/components/field/description.html +11 -0
  99. django_shadcn-1.0.0/components/field/error.html +22 -0
  100. django_shadcn-1.0.0/components/field/group.html +9 -0
  101. django_shadcn-1.0.0/components/field/index.html +16 -0
  102. django_shadcn-1.0.0/components/field/label.html +20 -0
  103. django_shadcn-1.0.0/components/field/legend.html +12 -0
  104. django_shadcn-1.0.0/components/field/separator.html +14 -0
  105. django_shadcn-1.0.0/components/field/set.html +9 -0
  106. django_shadcn-1.0.0/components/field/title.html +9 -0
  107. django_shadcn-1.0.0/components/form/description.html +3 -0
  108. django_shadcn-1.0.0/components/form/error.html +3 -0
  109. django_shadcn-1.0.0/components/form/field.html +3 -0
  110. django_shadcn-1.0.0/components/form/fieldset.html +3 -0
  111. django_shadcn-1.0.0/components/form/label.html +15 -0
  112. django_shadcn-1.0.0/components/hover_card/content.html +39 -0
  113. django_shadcn-1.0.0/components/hover_card/index.html +21 -0
  114. django_shadcn-1.0.0/components/hover_card/trigger.html +11 -0
  115. django_shadcn-1.0.0/components/icon/LICENSE +43 -0
  116. django_shadcn-1.0.0/components/icon/check.html +1 -0
  117. django_shadcn-1.0.0/components/icon/chevron_down.html +1 -0
  118. django_shadcn-1.0.0/components/icon/chevron_left.html +1 -0
  119. django_shadcn-1.0.0/components/icon/chevron_right.html +1 -0
  120. django_shadcn-1.0.0/components/icon/chevrons_up_down.html +2 -0
  121. django_shadcn-1.0.0/components/icon/ellipsis.html +3 -0
  122. django_shadcn-1.0.0/components/icon/index.html +6 -0
  123. django_shadcn-1.0.0/components/icon/loader_circle.html +1 -0
  124. django_shadcn-1.0.0/components/icon/search.html +2 -0
  125. django_shadcn-1.0.0/components/icon/x.html +2 -0
  126. django_shadcn-1.0.0/components/input/index.html +33 -0
  127. django_shadcn-1.0.0/components/input.css +123 -0
  128. django_shadcn-1.0.0/components/input_group/addon.html +29 -0
  129. django_shadcn-1.0.0/components/input_group/button.html +34 -0
  130. django_shadcn-1.0.0/components/input_group/index.html +25 -0
  131. django_shadcn-1.0.0/components/input_group/input.html +16 -0
  132. django_shadcn-1.0.0/components/input_group/text.html +12 -0
  133. django_shadcn-1.0.0/components/input_group/textarea.html +15 -0
  134. django_shadcn-1.0.0/components/item/actions.html +8 -0
  135. django_shadcn-1.0.0/components/item/content.html +8 -0
  136. django_shadcn-1.0.0/components/item/description.html +10 -0
  137. django_shadcn-1.0.0/components/item/footer.html +8 -0
  138. django_shadcn-1.0.0/components/item/group.html +8 -0
  139. django_shadcn-1.0.0/components/item/header.html +8 -0
  140. django_shadcn-1.0.0/components/item/index.html +23 -0
  141. django_shadcn-1.0.0/components/item/media.html +18 -0
  142. django_shadcn-1.0.0/components/item/separator.html +13 -0
  143. django_shadcn-1.0.0/components/item/title.html +8 -0
  144. django_shadcn-1.0.0/components/kbd/group.html +8 -0
  145. django_shadcn-1.0.0/components/kbd/index.html +14 -0
  146. django_shadcn-1.0.0/components/label/index.html +11 -0
  147. django_shadcn-1.0.0/components/native_select/index.html +25 -0
  148. django_shadcn-1.0.0/components/native_select/optgroup.html +8 -0
  149. django_shadcn-1.0.0/components/native_select/option.html +8 -0
  150. django_shadcn-1.0.0/components/navigation_menu/content.html +16 -0
  151. django_shadcn-1.0.0/components/navigation_menu/index.html +17 -0
  152. django_shadcn-1.0.0/components/navigation_menu/item.html +3 -0
  153. django_shadcn-1.0.0/components/navigation_menu/link.html +6 -0
  154. django_shadcn-1.0.0/components/navigation_menu/link_details.html +3 -0
  155. django_shadcn-1.0.0/components/navigation_menu/list.html +6 -0
  156. django_shadcn-1.0.0/components/navigation_menu/trigger.html +12 -0
  157. django_shadcn-1.0.0/components/pagination/content.html +7 -0
  158. django_shadcn-1.0.0/components/pagination/ellipsis.html +9 -0
  159. django_shadcn-1.0.0/components/pagination/index.html +9 -0
  160. django_shadcn-1.0.0/components/pagination/item.html +3 -0
  161. django_shadcn-1.0.0/components/pagination/link.html +31 -0
  162. django_shadcn-1.0.0/components/pagination/next.html +23 -0
  163. django_shadcn-1.0.0/components/pagination/previous.html +23 -0
  164. django_shadcn-1.0.0/components/popover/content.html +38 -0
  165. django_shadcn-1.0.0/components/popover/index.html +14 -0
  166. django_shadcn-1.0.0/components/popover/trigger.html +7 -0
  167. django_shadcn-1.0.0/components/progress/index.html +21 -0
  168. django_shadcn-1.0.0/components/radio_group/index.html +8 -0
  169. django_shadcn-1.0.0/components/radio_group/item.html +24 -0
  170. django_shadcn-1.0.0/components/scroll_area/index.html +29 -0
  171. django_shadcn-1.0.0/components/select/content.html +18 -0
  172. django_shadcn-1.0.0/components/select/index.html +52 -0
  173. django_shadcn-1.0.0/components/select/item.html +13 -0
  174. django_shadcn-1.0.0/components/select/trigger.html +6 -0
  175. django_shadcn-1.0.0/components/select/value.html +8 -0
  176. django_shadcn-1.0.0/components/separator/index.html +20 -0
  177. django_shadcn-1.0.0/components/sheet/content.html +34 -0
  178. django_shadcn-1.0.0/components/sheet/description.html +3 -0
  179. django_shadcn-1.0.0/components/sheet/header.html +3 -0
  180. django_shadcn-1.0.0/components/sheet/index.html +31 -0
  181. django_shadcn-1.0.0/components/sheet/title.html +3 -0
  182. django_shadcn-1.0.0/components/sheet/trigger.html +9 -0
  183. django_shadcn-1.0.0/components/skeleton/index.html +8 -0
  184. django_shadcn-1.0.0/components/slider/index.html +56 -0
  185. django_shadcn-1.0.0/components/spinner/index.html +6 -0
  186. django_shadcn-1.0.0/components/switch/index.html +26 -0
  187. django_shadcn-1.0.0/components/table/body.html +3 -0
  188. django_shadcn-1.0.0/components/table/caption.html +3 -0
  189. django_shadcn-1.0.0/components/table/cell.html +11 -0
  190. django_shadcn-1.0.0/components/table/empty.html +14 -0
  191. django_shadcn-1.0.0/components/table/footer.html +11 -0
  192. django_shadcn-1.0.0/components/table/head.html +11 -0
  193. django_shadcn-1.0.0/components/table/header.html +3 -0
  194. django_shadcn-1.0.0/components/table/index.html +5 -0
  195. django_shadcn-1.0.0/components/table/row.html +11 -0
  196. django_shadcn-1.0.0/components/tabs/content.html +13 -0
  197. django_shadcn-1.0.0/components/tabs/index.html +12 -0
  198. django_shadcn-1.0.0/components/tabs/list.html +7 -0
  199. django_shadcn-1.0.0/components/tabs/trigger.html +14 -0
  200. django_shadcn-1.0.0/components/textarea/index.html +27 -0
  201. django_shadcn-1.0.0/components/toast/content.html +21 -0
  202. django_shadcn-1.0.0/components/toast/index.html +39 -0
  203. django_shadcn-1.0.0/components/toast/trigger.html +9 -0
  204. django_shadcn-1.0.0/components/toggle/index.html +41 -0
  205. django_shadcn-1.0.0/components/toggle_group/index.html +33 -0
  206. django_shadcn-1.0.0/components/toggle_group/item.html +32 -0
  207. django_shadcn-1.0.0/components/tooltip/content.html +32 -0
  208. django_shadcn-1.0.0/components/tooltip/index.html +8 -0
  209. django_shadcn-1.0.0/components/tooltip/trigger.html +11 -0
  210. django_shadcn-1.0.0/components/typography/blockquote.html +8 -0
  211. django_shadcn-1.0.0/components/typography/code.html +8 -0
  212. django_shadcn-1.0.0/components/typography/h1.html +8 -0
  213. django_shadcn-1.0.0/components/typography/h2.html +8 -0
  214. django_shadcn-1.0.0/components/typography/h3.html +8 -0
  215. django_shadcn-1.0.0/components/typography/h4.html +8 -0
  216. django_shadcn-1.0.0/components/typography/large.html +8 -0
  217. django_shadcn-1.0.0/components/typography/lead.html +8 -0
  218. django_shadcn-1.0.0/components/typography/list.html +8 -0
  219. django_shadcn-1.0.0/components/typography/muted.html +8 -0
  220. django_shadcn-1.0.0/components/typography/p.html +8 -0
  221. django_shadcn-1.0.0/components/typography/small.html +8 -0
  222. django_shadcn-1.0.0/copier.yml +2 -0
  223. django_shadcn-1.0.0/docs/templates/components/docs/code.html +10 -0
  224. django_shadcn-1.0.0/docs/templates/components/docs/code_block.html +24 -0
  225. django_shadcn-1.0.0/docs/templates/components/docs/demo_section.html +5 -0
  226. django_shadcn-1.0.0/docs/templates/components/docs/link.html +10 -0
  227. django_shadcn-1.0.0/pyproject.toml +89 -0
  228. django_shadcn-1.0.0/src/django_shadcn/__init__.py +1 -0
  229. django_shadcn-1.0.0/src/django_shadcn/__main__.py +3 -0
  230. django_shadcn-1.0.0/src/django_shadcn/add.py +189 -0
  231. django_shadcn-1.0.0/src/django_shadcn/components.py +62 -0
  232. django_shadcn-1.0.0/src/django_shadcn/console.py +22 -0
  233. django_shadcn-1.0.0/src/django_shadcn/constants.py +23 -0
  234. django_shadcn-1.0.0/src/django_shadcn/initialize.py +54 -0
  235. django_shadcn-1.0.0/src/django_shadcn/list.py +53 -0
  236. django_shadcn-1.0.0/src/django_shadcn/main.py +46 -0
  237. django_shadcn-1.0.0/src/django_shadcn/merge.py +100 -0
  238. django_shadcn-1.0.0/tests/__init__.py +0 -0
  239. django_shadcn-1.0.0/tests/conftest.py +24 -0
  240. django_shadcn-1.0.0/tests/templatetags_stub.py +12 -0
  241. django_shadcn-1.0.0/tests/test_cli.py +104 -0
  242. django_shadcn-1.0.0/tests/test_icons.py +65 -0
  243. django_shadcn-1.0.0/tests/test_merge.py +114 -0
  244. django_shadcn-1.0.0/tests/test_registry.py +103 -0
  245. django_shadcn-1.0.0/tests/test_templates.py +40 -0
@@ -0,0 +1,301 @@
1
+ ## Python
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[codz]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py.cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ # Pipfile.lock
98
+
99
+ # UV
100
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # uv.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ # poetry.lock
111
+ # poetry.toml
112
+
113
+ # pdm
114
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
116
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
117
+ # pdm.lock
118
+ # pdm.toml
119
+ .pdm-python
120
+ .pdm-build/
121
+
122
+ # pixi
123
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
124
+ # pixi.lock
125
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
126
+ # in the .venv directory. It is recommended not to include this directory in version control.
127
+ .pixi
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
201
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
203
+ # you could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ ## Macos
221
+
222
+ # General
223
+ .DS_Store
224
+ __MACOSX/
225
+ .AppleDouble
226
+ .LSOverride
227
+ Icon[
228
+ ]
229
+
230
+ # Thumbnails
231
+ ._*
232
+
233
+ # Files that might appear in the root of a volume
234
+ .DocumentRevisions-V100
235
+ .fseventsd
236
+ .Spotlight-V100
237
+ .TemporaryItems
238
+ .Trashes
239
+ .VolumeIcon.icns
240
+ .com.apple.timemachine.donotpresent
241
+
242
+ # Directories potentially created on remote AFP share
243
+ .AppleDB
244
+ .AppleDesktop
245
+ Network Trash Folder
246
+ Temporary Items
247
+ .apdisk
248
+
249
+ ## Linux
250
+
251
+ *~
252
+
253
+ # temporary files which can be created if a process still has a handle open of a deleted file
254
+ .fuse_hidden*
255
+
256
+ # Metadata left by Dolphin file manager, which comes with KDE Plasma
257
+ .directory
258
+
259
+ # Linux trash folder which might appear on any partition or disk
260
+ .Trash-*
261
+
262
+ # .nfs files are created when an open file is removed but is still being accessed
263
+ .nfs*
264
+
265
+ # Log files created by default by the nohup command
266
+ nohup.out
267
+
268
+ ## Windows
269
+
270
+ # Windows thumbnail cache files
271
+ Thumbs.db
272
+ Thumbs.db:encryptable
273
+ ehthumbs.db
274
+ ehthumbs_vista.db
275
+
276
+ # Dump file
277
+ *.stackdump
278
+
279
+ # Folder config file
280
+ [Dd]esktop.ini
281
+
282
+ # Recycle Bin used on file shares
283
+ $RECYCLE.BIN/
284
+
285
+ # Windows Installer files
286
+ *.cab
287
+ *.msi
288
+ *.msix
289
+ *.msm
290
+ *.msp
291
+
292
+ # Windows shortcuts
293
+ *.lnk
294
+
295
+ # Generated using ignr.py - github.com/Antrikshy/ignr.py
296
+
297
+ # Django collectstatic output for the docs playground
298
+ docs/staticfiles/
299
+
300
+ # Compiled catalogs are committed: the deploy has no gettext to build them.
301
+ !docs/locale/**/*.mo
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Marcelo Machado
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-shadcn
3
+ Version: 1.0.0
4
+ Summary: shadcn/ui for Django
5
+ Project-URL: Homepage, https://github.com/mmaachado/django-shadcn
6
+ Project-URL: Issues, https://github.com/mmaachado/django-shadcn/issues
7
+ Author-email: Marcelo Machado <uniqueduckinbox@duck.com>, Sarthak Jariwala <sarthak@sarthakjariwala.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: alpinejs,components,cotton,django,django-shadcn,library,shadcn,shadcnui,tailwindcss,ui
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Framework :: Django
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Topic :: Software Development :: User Interfaces
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: copier>=9.5.0
22
+ Requires-Dist: typer>=0.15.1
23
+ Description-Content-Type: text/markdown
24
+
25
+ # django-shadcn/ui
26
+
27
+ _⚠️ **Attention**: This project is a direct fork from [Sarthak Jariwala's shadcn-django](https://github.com/SarthakJariwala/shadcn-django) with additional component implementations._
28
+
29
+ A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. **Use this to build your own component library**.
30
+
31
+ This is an **unofficial** Django port of [shadcn/ui](https://ui.shadcn.com/). This project **is not** affiliated with shadcn.
32
+
33
+ <!-- ![hero](apps/v4/public/opengraph-image.png) -->
34
+
35
+ ## Documentation
36
+
37
+ Visit https://django-shadcn.vercel.app/ to view the documentation.
38
+
39
+ ## Contributing
40
+
41
+ Please read the [contributing guide](./.github/CONTRIBUTING.md).
42
+
43
+ ## License
44
+
45
+ Licensed under the [MIT license](./LICENSE)
@@ -0,0 +1,21 @@
1
+ # django-shadcn/ui
2
+
3
+ _⚠️ **Attention**: This project is a direct fork from [Sarthak Jariwala's shadcn-django](https://github.com/SarthakJariwala/shadcn-django) with additional component implementations._
4
+
5
+ A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. **Use this to build your own component library**.
6
+
7
+ This is an **unofficial** Django port of [shadcn/ui](https://ui.shadcn.com/). This project **is not** affiliated with shadcn.
8
+
9
+ <!-- ![hero](apps/v4/public/opengraph-image.png) -->
10
+
11
+ ## Documentation
12
+
13
+ Visit https://django-shadcn.vercel.app/ to view the documentation.
14
+
15
+ ## Contributing
16
+
17
+ Please read the [contributing guide](./.github/CONTRIBUTING.md).
18
+
19
+ ## License
20
+
21
+ Licensed under the [MIT license](./LICENSE)
@@ -0,0 +1,39 @@
1
+ <c-vars size="default"></c-vars>
2
+ <a
3
+ class="
4
+ inline-flex
5
+ items-center
6
+ justify-center
7
+ gap-2
8
+ whitespace-nowrap
9
+ rounded-md
10
+ text-sm
11
+ font-medium
12
+ transition-colors
13
+ focus-visible:outline-hidden
14
+ focus-visible:ring-1
15
+ focus-visible:ring-ring
16
+ disabled:pointer-events-none
17
+ disabled:opacity-50
18
+ [&_svg]:pointer-events-none
19
+ [&_svg]:size-4
20
+ [&_svg]:shrink-0
21
+ text-primary
22
+ underline-offset-4
23
+ hover:underline
24
+
25
+ {% if size == 'default' %}h-9 px-4 py-2
26
+ {% elif size == 'xs' %}h-7 rounded-sm px-2
27
+ {% elif size == 'sm' %}h-8 rounded-md px-3 text-xs
28
+ {% elif size == 'lg' %}h-10 rounded-md px-8
29
+ {% elif size == 'icon' %}size-9
30
+ {% endif %}
31
+
32
+ {% if class %}
33
+ {{ class }}
34
+ {% endif %}
35
+ "
36
+ {{ attrs }}
37
+ >
38
+ {{ slot }}
39
+ </a>
@@ -0,0 +1,13 @@
1
+ <c-vars value></c-vars>
2
+
3
+ <div
4
+ x-show="isOpen('{{ value }}')"
5
+ x-collapse.duration.300ms
6
+ x-cloak
7
+ class="overflow-hidden text-sm"
8
+ {{ attrs }}
9
+ >
10
+ <div class="pb-4 pt-0 {% if class %}{{ class }}{% endif %}">
11
+ {{ slot }}
12
+ </div>
13
+ </div>
@@ -0,0 +1,33 @@
1
+ <c-vars type="single" collapsible="false" open="{}"></c-vars>
2
+
3
+ <div
4
+ x-data="{
5
+ open: {{ open }},
6
+ type: '{{ type }}',
7
+ collapsible: {{ collapsible|lower }},
8
+
9
+ toggle(value) {
10
+ if (this.type === 'single') {
11
+ // For single type, close all others when one is opened
12
+ if (this.collapsible && this.open[value]) {
13
+ this.open[value] = false;
14
+ } else {
15
+ const newOpen = {};
16
+ newOpen[value] = true;
17
+ this.open = newOpen;
18
+ }
19
+ } else {
20
+ // For multiple type, toggle the clicked one
21
+ this.open[value] = !this.open[value];
22
+ }
23
+ },
24
+
25
+ isOpen(value) {
26
+ return !!this.open[value];
27
+ }
28
+ }"
29
+ class="{% if class %}{{ class }}{% endif %}"
30
+ {{ attrs }}
31
+ >
32
+ {{ slot }}
33
+ </div>
@@ -0,0 +1,8 @@
1
+ <c-vars value></c-vars>
2
+
3
+ <div
4
+ class="border-b {% if class %}{{ class }}{% endif %}"
5
+ {{ attrs }}
6
+ >
7
+ {{ slot }}
8
+ </div>
@@ -0,0 +1,12 @@
1
+ <c-vars value></c-vars>
2
+
3
+ <h3 class="flex">
4
+ <button @click="toggle('{{ value }}')"
5
+ class="flex flex-1 items-center justify-between py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 {% if class %}{{ class }}{% endif %}"
6
+ x-bind:aria-expanded="isOpen('{{ value }}')" x-bind:data-state="isOpen('{{ value }}') ? 'open' : 'closed'" {{ attrs
7
+ }}>
8
+ {{ slot }}
9
+ <c-icon name="chevron-down"
10
+ class="size-4 shrink-0 text-muted-foreground transition-transform duration-200 ease-out" />
11
+ </button>
12
+ </h3>
@@ -0,0 +1,10 @@
1
+ <div
2
+ class="text-sm [&_p]:leading-relaxed
3
+ {% if class %}
4
+ {{ class }}
5
+ {% endif %}
6
+ "
7
+ {{ attrs }}
8
+ >
9
+ {{ slot }}
10
+ </div>
@@ -0,0 +1,19 @@
1
+ <c-vars variant="default" type="default"></c-vars>
2
+
3
+ <div
4
+ class="
5
+ relative w-full rounded-lg border p-4 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7
6
+
7
+ {% if variant == 'default' %}bg-background text-foreground
8
+ {% elif variant == 'destructive' %}border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive
9
+ {% endif %}
10
+
11
+ {% if class %}
12
+ {{ class }}
13
+ {% endif %}
14
+ "
15
+ role="alert"
16
+ {{ attrs }}
17
+ >
18
+ {{ slot }}
19
+ </div>
@@ -0,0 +1,10 @@
1
+ <h5
2
+ class="mb-1 font-medium leading-none tracking-tight
3
+ {% if class %}
4
+ {{ class }}
5
+ {% endif %}
6
+ "
7
+ {{ attrs }}
8
+ >
9
+ {{ slot }}
10
+ </h5>
@@ -0,0 +1,21 @@
1
+ <c-vars variant="default" />
2
+
3
+ <button @click="hideDialog" class="
4
+ inline-flex h-9 items-center justify-center gap-2 whitespace-nowrap rounded-md
5
+ px-4 py-2 text-sm font-medium transition-colors
6
+ focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring
7
+ disabled:pointer-events-none disabled:opacity-50
8
+ [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
9
+
10
+ {% if variant == 'default' %}bg-primary text-primary-foreground shadow-sm hover:bg-primary/90
11
+ {% elif variant == 'destructive' %}bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90
12
+ {% elif variant == 'outline' %}border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground
13
+ {% elif variant == 'secondary' %}bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80
14
+ {% elif variant == 'ghost' %}hover:bg-accent hover:text-accent-foreground
15
+ {% elif variant == 'link' %}text-primary underline-offset-4 hover:underline
16
+ {% endif %}
17
+
18
+ {% if class %}{{ class }}{% endif %}
19
+ " {{ attrs }}>
20
+ {{ slot }}
21
+ </button>
@@ -0,0 +1,22 @@
1
+ <c-vars variant="outline" />
2
+
3
+ <button @click="hideDialog" class="
4
+ mt-2 sm:mt-0
5
+ inline-flex h-9 items-center justify-center gap-2 whitespace-nowrap rounded-md
6
+ px-4 py-2 text-sm font-medium transition-colors
7
+ focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring
8
+ disabled:pointer-events-none disabled:opacity-50
9
+ [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
10
+
11
+ {% if variant == 'default' %}bg-primary text-primary-foreground shadow-sm hover:bg-primary/90
12
+ {% elif variant == 'destructive' %}bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90
13
+ {% elif variant == 'outline' %}border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground
14
+ {% elif variant == 'secondary' %}bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80
15
+ {% elif variant == 'ghost' %}hover:bg-accent hover:text-accent-foreground
16
+ {% elif variant == 'link' %}text-primary underline-offset-4 hover:underline
17
+ {% endif %}
18
+
19
+ {% if class %}{{ class }}{% endif %}
20
+ " {{ attrs }}>
21
+ {{ slot }}
22
+ </button>
@@ -0,0 +1,33 @@
1
+ <div
2
+ x-show="open"
3
+ x-transition:enter="ease-out duration-300"
4
+ x-transition:enter-start="opacity-0"
5
+ x-transition:enter-end="opacity-100"
6
+ x-transition:leave="ease-in duration-200"
7
+ x-transition:leave-start="opacity-100"
8
+ x-transition:leave-end="opacity-0"
9
+ class="fixed inset-0 z-50 flex items-center justify-center"
10
+ x-cloak
11
+ role="dialog"
12
+ aria-modal="true"
13
+ >
14
+ <!-- Backdrop -->
15
+ <div class="fixed inset-0 bg-background/80 backdrop-blur-xs" aria-hidden="true" @click="hideDialog"></div>
16
+
17
+ <!-- Dialog -->
18
+ <div
19
+ x-transition:enter="ease-out duration-300"
20
+ x-transition:enter-start="opacity-0 scale-95"
21
+ x-transition:enter-end="opacity-100 scale-100"
22
+ x-transition:leave="ease-in duration-200"
23
+ x-transition:leave-start="opacity-100 scale-100"
24
+ x-transition:leave-end="opacity-0 scale-95"
25
+ @click.away="hideDialog"
26
+ class="fixed z-50 grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full {% if class %}{{ class }}{% endif %}"
27
+ x-init="$nextTick(() => { $el.querySelector('button, [tabindex], input, select, textarea') && $el.querySelector('button, [tabindex], input, select, textarea').focus() })"
28
+ tabindex="-1"
29
+ {{ attrs }}
30
+ >
31
+ {{ slot }}
32
+ </div>
33
+ </div>
@@ -0,0 +1,3 @@
1
+ <p class="text-sm text-muted-foreground {% if class %}{{ class }}{% endif %}" {{ attrs }}>
2
+ {{ slot }}
3
+ </p>
@@ -0,0 +1,3 @@
1
+ <div class="flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 {% if class %}{{ class }}{% endif %}" {{ attrs }}>
2
+ {{ slot }}
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="flex flex-col space-y-2 text-center sm:text-left {% if class %}{{ class }}{% endif %}" {{ attrs }}>
2
+ {{ slot }}
3
+ </div>
@@ -0,0 +1,36 @@
1
+ <c-vars default_open="false"></c-vars>
2
+
3
+ <div x-data="{
4
+ open: {{ default_open|lower }},
5
+ showDialog() {
6
+ this.open = true;
7
+ // Add event listener for Escape key when dialog opens
8
+ setTimeout(() => {
9
+ window.addEventListener('keydown', this.handleEscape);
10
+ }, 10);
11
+ },
12
+ hideDialog() {
13
+ this.open = false;
14
+ // Remove event listener when dialog closes
15
+ window.removeEventListener('keydown', this.handleEscape);
16
+ },
17
+ handleEscape: function(e) {
18
+ if (e.key === 'Escape' && this.open) {
19
+ this.hideDialog();
20
+ }
21
+ }
22
+ }"
23
+ x-init="$watch('open', value => {
24
+ if (value) {
25
+ document.body.classList.add('overflow-hidden');
26
+ window.addEventListener('keydown', handleEscape);
27
+ } else {
28
+ document.body.classList.remove('overflow-hidden');
29
+ window.removeEventListener('keydown', handleEscape);
30
+ }
31
+ })"
32
+ @keydown.escape.window="if (open) hideDialog()"
33
+ {{ attrs }}
34
+ >
35
+ {{ slot }}
36
+ </div>
@@ -0,0 +1,3 @@
1
+ <h2 class="text-lg font-semibold text-foreground {% if class %}{{ class }}{% endif %}" {{ attrs }}>
2
+ {{ slot }}
3
+ </h2>
@@ -0,0 +1,3 @@
1
+ <div @click="showDialog" class="{% if class %}{{ class }}{% endif %}" {{ attrs }}>
2
+ {{ slot }}
3
+ </div>