@bbl-digital/snorre 4.1.34 → 4.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/esm/v2/core/Button/Button.stories.js +123 -0
  2. package/esm/v2/core/Button/index.js +65 -0
  3. package/esm/v2/core/Button/styles.js +96 -0
  4. package/esm/v2/core/Chip/Chip.stories.js +90 -0
  5. package/esm/v2/core/Chip/index.js +63 -0
  6. package/esm/v2/core/Chip/styles.js +38 -0
  7. package/esm/v2/index.js +3 -0
  8. package/lib/v2/core/Button/Button.stories.d.ts +21 -0
  9. package/lib/v2/core/Button/Button.stories.d.ts.map +1 -0
  10. package/lib/v2/core/Button/Button.stories.js +123 -0
  11. package/lib/v2/core/Button/index.d.ts +86 -0
  12. package/lib/v2/core/Button/index.d.ts.map +1 -0
  13. package/lib/v2/core/Button/index.js +65 -0
  14. package/lib/v2/core/Button/styles.d.ts +25 -0
  15. package/lib/v2/core/Button/styles.d.ts.map +1 -0
  16. package/lib/v2/core/Button/styles.js +96 -0
  17. package/lib/v2/core/Chip/Chip.stories.d.ts +17 -0
  18. package/lib/v2/core/Chip/Chip.stories.d.ts.map +1 -0
  19. package/lib/v2/core/Chip/Chip.stories.js +90 -0
  20. package/lib/v2/core/Chip/index.d.ts +23 -0
  21. package/lib/v2/core/Chip/index.d.ts.map +1 -0
  22. package/lib/v2/core/Chip/index.js +63 -0
  23. package/lib/v2/core/Chip/styles.d.ts +24 -0
  24. package/lib/v2/core/Chip/styles.d.ts.map +1 -0
  25. package/lib/v2/core/Chip/styles.js +38 -0
  26. package/lib/v2/index.d.ts +4 -0
  27. package/lib/v2/index.d.ts.map +1 -0
  28. package/lib/v2/index.js +3 -0
  29. package/package.json +1 -1
  30. package/esm/core/BoxedTable/TableBody/index.js +0 -10
  31. package/esm/core/BoxedTable/TableBody/styles.js +0 -16
  32. package/esm/core/Editor/Editor.stories.js +0 -56
  33. package/esm/core/Editor/config.js +0 -19
  34. package/esm/core/Editor/index.js +0 -173
  35. package/esm/core/Editor/styles.js +0 -60
  36. package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
  37. package/esm/core/EditorQuillReact/IndentAttributor.js +0 -15
  38. package/esm/core/EditorQuillReact/config.js +0 -31
  39. package/esm/core/EditorQuillReact/index.js +0 -103
  40. package/esm/core/EditorQuillReact/styles.js +0 -34
  41. package/esm/core/NotificationsMenu/NotificationBell/index.js +0 -19
  42. package/esm/core/NotificationsMenu/NotificationBell/styles.js +0 -21
  43. package/esm/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
  44. package/esm/core/QuillEditor/Attributors/ListContainer.js +0 -20
  45. package/esm/core/QuillEditor/Attributors/ListItem.js +0 -24
  46. package/lib/core/BoxedTable/TableBody/index.d.ts +0 -7
  47. package/lib/core/BoxedTable/TableBody/index.d.ts.map +0 -1
  48. package/lib/core/BoxedTable/TableBody/index.js +0 -10
  49. package/lib/core/BoxedTable/TableBody/styles.d.ts +0 -6
  50. package/lib/core/BoxedTable/TableBody/styles.d.ts.map +0 -1
  51. package/lib/core/BoxedTable/TableBody/styles.js +0 -16
  52. package/lib/core/Editor/Editor.stories.d.ts +0 -11
  53. package/lib/core/Editor/Editor.stories.d.ts.map +0 -1
  54. package/lib/core/Editor/Editor.stories.js +0 -56
  55. package/lib/core/Editor/config.d.ts +0 -1
  56. package/lib/core/Editor/config.d.ts.map +0 -1
  57. package/lib/core/Editor/config.js +0 -19
  58. package/lib/core/Editor/index.d.ts +0 -1
  59. package/lib/core/Editor/index.d.ts.map +0 -1
  60. package/lib/core/Editor/index.js +0 -173
  61. package/lib/core/Editor/styles.d.ts +0 -1
  62. package/lib/core/Editor/styles.d.ts.map +0 -1
  63. package/lib/core/Editor/styles.js +0 -60
  64. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +0 -8
  65. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +0 -1
  66. package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
  67. package/lib/core/EditorQuillReact/IndentAttributor.d.ts +0 -7
  68. package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +0 -1
  69. package/lib/core/EditorQuillReact/IndentAttributor.js +0 -15
  70. package/lib/core/EditorQuillReact/config.d.ts +0 -30
  71. package/lib/core/EditorQuillReact/config.d.ts.map +0 -1
  72. package/lib/core/EditorQuillReact/config.js +0 -31
  73. package/lib/core/EditorQuillReact/index.d.ts +0 -23
  74. package/lib/core/EditorQuillReact/index.d.ts.map +0 -1
  75. package/lib/core/EditorQuillReact/index.js +0 -103
  76. package/lib/core/EditorQuillReact/styles.d.ts +0 -13
  77. package/lib/core/EditorQuillReact/styles.d.ts.map +0 -1
  78. package/lib/core/EditorQuillReact/styles.js +0 -34
  79. package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +0 -8
  80. package/lib/core/NotificationsMenu/NotificationBell/index.d.ts.map +0 -1
  81. package/lib/core/NotificationsMenu/NotificationBell/index.js +0 -19
  82. package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +0 -7
  83. package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts.map +0 -1
  84. package/lib/core/NotificationsMenu/NotificationBell/styles.js +0 -21
  85. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts +0 -7
  86. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts.map +0 -1
  87. package/lib/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
  88. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts +0 -10
  89. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts.map +0 -1
  90. package/lib/core/QuillEditor/Attributors/ListContainer.js +0 -20
  91. package/lib/core/QuillEditor/Attributors/ListItem.d.ts +0 -10
  92. package/lib/core/QuillEditor/Attributors/ListItem.d.ts.map +0 -1
  93. package/lib/core/QuillEditor/Attributors/ListItem.js +0 -24
@@ -1,24 +0,0 @@
1
- import Quill from 'quill';
2
- import { MyListContainer } from './ListContainer';
3
- const ListItem = Quill.import('formats/list');
4
- class MyListItem extends ListItem {
5
- static requiredContainer = MyListContainer;
6
- static register() {
7
- Quill.register(MyListContainer, true);
8
- }
9
- optimize(context) {
10
- if (this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer)) {
11
- // Insert the format value (bullet, ordered) into wrap arguments
12
- this.wrap(this.statics.requiredContainer.blotName, MyListItem.formats(this.domNode));
13
- }
14
- super.optimize(context);
15
- }
16
- format(name, value) {
17
- // If the list type is different, wrap this list item in a new MyListContainer of that type
18
- if (name === ListItem.blotName && value !== MyListItem.formats(this.domNode)) {
19
- this.wrap(this.statics.requiredContainer.blotName, value);
20
- }
21
- super.format(name, value);
22
- }
23
- }
24
- export { MyListItem as default };