wagtail-tw-blocks 0.3.1__py3-none-any.whl → 1.0.0__py3-none-any.whl

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 (49) hide show
  1. wagtail_blocks/__init__.py +6 -70
  2. wagtail_blocks/blocks.py +157 -536
  3. wagtail_blocks/constants.py +60 -0
  4. wagtail_blocks/static/wagtail_blocks/css/app.css +18 -2
  5. wagtail_blocks/static/wagtail_blocks/css/styles.css +2 -2
  6. wagtail_blocks/static/wagtail_blocks/package-lock.json +251 -420
  7. wagtail_blocks/static/wagtail_blocks/package.json +3 -3
  8. wagtail_blocks/templates/wagtail/blocks/accordion.html +21 -0
  9. wagtail_blocks/templates/wagtail/blocks/alert.html +12 -0
  10. wagtail_blocks/templates/wagtail/blocks/carousel.html +19 -0
  11. wagtail_blocks/templates/wagtail/blocks/code.html +32 -0
  12. wagtail_blocks/templates/{wagtail_blocks → wagtail}/blocks/diff.html +3 -3
  13. wagtail_blocks/templates/wagtail/blocks/document.html +65 -0
  14. wagtail_blocks/templates/wagtail/blocks/hover_gallery.html +11 -0
  15. wagtail_blocks/templates/wagtail/blocks/tabs.html +20 -0
  16. wagtail_blocks/templates/wagtail/components/breadcrumbs.html +12 -0
  17. wagtail_blocks/templates/wagtail/components/form.html +116 -0
  18. wagtail_blocks/templates/wagtail/components/languages.html +77 -0
  19. wagtail_blocks/templates/wagtail/components/messages.html +56 -0
  20. wagtail_blocks/templates/wagtail/components/next.html +22 -0
  21. wagtail_blocks/templates/wagtail/components/pagination.html +59 -0
  22. wagtail_blocks/templates/wagtail/components/prev.html +25 -0
  23. wagtail_blocks/templates/wagtail/components/prev_next.html +5 -0
  24. wagtail_blocks/templates/wagtail/components/themes.html +366 -0
  25. wagtail_blocks/templates/wagtail/components/tree.html +28 -0
  26. wagtail_blocks/templates/wagtail/styles.html +29 -0
  27. wagtail_tw_blocks-1.0.0.dist-info/METADATA +451 -0
  28. wagtail_tw_blocks-1.0.0.dist-info/RECORD +39 -0
  29. {wagtail_tw_blocks-0.3.1.dist-info → wagtail_tw_blocks-1.0.0.dist-info}/WHEEL +1 -1
  30. wagtail_blocks/templates/wagtail_blocks/blocks/accordion.html +0 -49
  31. wagtail_blocks/templates/wagtail_blocks/blocks/alert.html +0 -24
  32. wagtail_blocks/templates/wagtail_blocks/blocks/browser.html +0 -15
  33. wagtail_blocks/templates/wagtail_blocks/blocks/carousel.html +0 -64
  34. wagtail_blocks/templates/wagtail_blocks/blocks/code.html +0 -66
  35. wagtail_blocks/templates/wagtail_blocks/blocks/code_mockup.html +0 -20
  36. wagtail_blocks/templates/wagtail_blocks/blocks/fab.html +0 -43
  37. wagtail_blocks/templates/wagtail_blocks/blocks/hover_gallery.html +0 -18
  38. wagtail_blocks/templates/wagtail_blocks/blocks/image.html +0 -19
  39. wagtail_blocks/templates/wagtail_blocks/blocks/list.html +0 -56
  40. wagtail_blocks/templates/wagtail_blocks/blocks/phone.html +0 -11
  41. wagtail_blocks/templates/wagtail_blocks/blocks/steps.html +0 -12
  42. wagtail_blocks/templates/wagtail_blocks/blocks/tabs.html +0 -24
  43. wagtail_blocks/templates/wagtail_blocks/blocks/timeline.html +0 -30
  44. wagtail_blocks/templates/wagtail_blocks/blocks/toast.html +0 -9
  45. wagtail_blocks/templates/wagtail_blocks/blocks/window.html +0 -9
  46. wagtail_blocks/templates/wagtail_blocks/styles.html +0 -92
  47. wagtail_tw_blocks-0.3.1.dist-info/METADATA +0 -237
  48. wagtail_tw_blocks-0.3.1.dist-info/RECORD +0 -37
  49. {wagtail_tw_blocks-0.3.1.dist-info → wagtail_tw_blocks-1.0.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,70 +1,6 @@
1
- """Wagtail Blocks"""
2
-
3
- from django.utils.translation import gettext_lazy as _
4
-
5
- # Constants
6
- ACCORDION_STYLES = [
7
- ("plus", _("Plus")),
8
- ("arrow", _("Arrow")),
9
- ]
10
-
11
- ALERT_STYLES = [
12
- ("soft", _("Soft")),
13
- ("outline", _("Outline")),
14
- ("dash", _("Dash")),
15
- ]
16
-
17
- ALERT_LEVELS = [
18
- ("info", _("Info")),
19
- ("success", _("Success")),
20
- ("warning", _("Warning")),
21
- ("error", _("Error")),
22
- ]
23
-
24
- COLOR_CHOICES = [
25
- ("primary", _("Primary")),
26
- ("secondary", _("Secondary")),
27
- ("accent", _("Accent")),
28
- ("success", _("Success")),
29
- ("info", _("Info")),
30
- ("warning", _("Warning")),
31
- ("error", _("Error")),
32
- ]
33
-
34
- TAB_STYLES = [
35
- ("border", _("Border")),
36
- ("box", _("Box")),
37
- ("lift", _("Lift")),
38
- ]
39
-
40
- # The popular programming languages
41
- PROGRAMMING_LANGUAGES = [
42
- ("auto", _("Auto")),
43
- ("bash", "Bash"),
44
- ("c", "C"),
45
- ("cpp", "C++"),
46
- ("csharp", "C#"),
47
- ("css", "CSS"),
48
- ("dart", "Dart"),
49
- ("dockerfile", "Dockerfile"),
50
- ("go", "Go"),
51
- ("html", "HTML"),
52
- ("java", "Java"),
53
- ("javascript", "JavaScript"),
54
- ("json", "JSON"),
55
- ("kotlin", "Kotlin"),
56
- ("lua", "Lua"),
57
- ("markdown", "Markdown"),
58
- ("php", "PHP"),
59
- ("python", "Python"),
60
- ("ruby", "Ruby"),
61
- ("rust", "Rust"),
62
- ("scss", "SCSS"),
63
- ("shell", "Shell"),
64
- ("sql", "SQL"),
65
- ("swift", "Swift"),
66
- ("typescript", "TypeScript"),
67
- ("xml", "XML"),
68
- ("yaml", "YAML"),
69
- ("plaintext", _("Plain text")),
70
- ]
1
+ """
2
+ `wagtail-tw-blocks`: is a collection of reusable, production-ready content blocks
3
+ for Wagtail CMS, styled with Tailwind CSS and daisyUI. It provides a set of common
4
+ UI components—ready to drop into your `StreamField`—so you can build rich, modern page
5
+ layouts without reinventing the wheel.
6
+ """