wagtail-tw-blocks 0.3.0__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.0.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.0.dist-info/METADATA +0 -239
  48. wagtail_tw_blocks-0.3.0.dist-info/RECORD +0 -37
  49. {wagtail_tw_blocks-0.3.0.dist-info → wagtail_tw_blocks-1.0.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,60 @@
1
+ """Constants"""
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
+ TAB_STYLES = [
25
+ ("border", _("Border")),
26
+ ("box", _("Box")),
27
+ ("lift", _("Lift")),
28
+ ]
29
+
30
+ # The popular programming languages
31
+ PROGRAMMING_LANGUAGES = [
32
+ ("auto", _("Auto")),
33
+ ("bash", "Bash"),
34
+ ("c", "C"),
35
+ ("cpp", "C++"),
36
+ ("csharp", "C#"),
37
+ ("css", "CSS"),
38
+ ("dart", "Dart"),
39
+ ("dockerfile", "Dockerfile"),
40
+ ("go", "Go"),
41
+ ("html", "HTML"),
42
+ ("java", "Java"),
43
+ ("javascript", "JavaScript"),
44
+ ("json", "JSON"),
45
+ ("kotlin", "Kotlin"),
46
+ ("lua", "Lua"),
47
+ ("markdown", "Markdown"),
48
+ ("php", "PHP"),
49
+ ("python", "Python"),
50
+ ("ruby", "Ruby"),
51
+ ("rust", "Rust"),
52
+ ("scss", "SCSS"),
53
+ ("shell", "Shell"),
54
+ ("sql", "SQL"),
55
+ ("swift", "Swift"),
56
+ ("typescript", "TypeScript"),
57
+ ("xml", "XML"),
58
+ ("yaml", "YAML"),
59
+ ("plaintext", _("Plain text")),
60
+ ]
@@ -1,4 +1,20 @@
1
- @import "tailwindcss";
1
+ @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
2
2
 
3
+ @import "tailwindcss";
3
4
  @plugin "@tailwindcss/typography";
4
- @plugin "daisyui";
5
+
6
+ @theme {
7
+ --font-mono:
8
+ "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
9
+ "Liberation Mono", "Courier New", monospace;
10
+ }
11
+
12
+ @plugin "daisyui" {
13
+ themes: all;
14
+ }
15
+
16
+ @layer base {
17
+ .container-prose {
18
+ @apply container mx-auto px-4 prose-sm md:prose-base lg:prose-lg xl:prose-xl 2xl:prose-2xl prose-pre:m-0 prose-pre:p-0 prose-pre:font-mono;
19
+ }
20
+ }