@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.
- package/esm/v2/core/Button/Button.stories.js +123 -0
- package/esm/v2/core/Button/index.js +65 -0
- package/esm/v2/core/Button/styles.js +96 -0
- package/esm/v2/core/Chip/Chip.stories.js +90 -0
- package/esm/v2/core/Chip/index.js +63 -0
- package/esm/v2/core/Chip/styles.js +38 -0
- package/esm/v2/index.js +3 -0
- package/lib/v2/core/Button/Button.stories.d.ts +21 -0
- package/lib/v2/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/v2/core/Button/Button.stories.js +123 -0
- package/lib/v2/core/Button/index.d.ts +86 -0
- package/lib/v2/core/Button/index.d.ts.map +1 -0
- package/lib/v2/core/Button/index.js +65 -0
- package/lib/v2/core/Button/styles.d.ts +25 -0
- package/lib/v2/core/Button/styles.d.ts.map +1 -0
- package/lib/v2/core/Button/styles.js +96 -0
- package/lib/v2/core/Chip/Chip.stories.d.ts +17 -0
- package/lib/v2/core/Chip/Chip.stories.d.ts.map +1 -0
- package/lib/v2/core/Chip/Chip.stories.js +90 -0
- package/lib/v2/core/Chip/index.d.ts +23 -0
- package/lib/v2/core/Chip/index.d.ts.map +1 -0
- package/lib/v2/core/Chip/index.js +63 -0
- package/lib/v2/core/Chip/styles.d.ts +24 -0
- package/lib/v2/core/Chip/styles.d.ts.map +1 -0
- package/lib/v2/core/Chip/styles.js +38 -0
- package/lib/v2/index.d.ts +4 -0
- package/lib/v2/index.d.ts.map +1 -0
- package/lib/v2/index.js +3 -0
- package/package.json +1 -1
- package/esm/core/BoxedTable/TableBody/index.js +0 -10
- package/esm/core/BoxedTable/TableBody/styles.js +0 -16
- package/esm/core/Editor/Editor.stories.js +0 -56
- package/esm/core/Editor/config.js +0 -19
- package/esm/core/Editor/index.js +0 -173
- package/esm/core/Editor/styles.js +0 -60
- package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/esm/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/esm/core/EditorQuillReact/config.js +0 -31
- package/esm/core/EditorQuillReact/index.js +0 -103
- package/esm/core/EditorQuillReact/styles.js +0 -34
- package/esm/core/NotificationsMenu/NotificationBell/index.js +0 -19
- package/esm/core/NotificationsMenu/NotificationBell/styles.js +0 -21
- package/esm/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
- package/esm/core/QuillEditor/Attributors/ListContainer.js +0 -20
- package/esm/core/QuillEditor/Attributors/ListItem.js +0 -24
- package/lib/core/BoxedTable/TableBody/index.d.ts +0 -7
- package/lib/core/BoxedTable/TableBody/index.d.ts.map +0 -1
- package/lib/core/BoxedTable/TableBody/index.js +0 -10
- package/lib/core/BoxedTable/TableBody/styles.d.ts +0 -6
- package/lib/core/BoxedTable/TableBody/styles.d.ts.map +0 -1
- package/lib/core/BoxedTable/TableBody/styles.js +0 -16
- package/lib/core/Editor/Editor.stories.d.ts +0 -11
- package/lib/core/Editor/Editor.stories.d.ts.map +0 -1
- package/lib/core/Editor/Editor.stories.js +0 -56
- package/lib/core/Editor/config.d.ts +0 -1
- package/lib/core/Editor/config.d.ts.map +0 -1
- package/lib/core/Editor/config.js +0 -19
- package/lib/core/Editor/index.d.ts +0 -1
- package/lib/core/Editor/index.d.ts.map +0 -1
- package/lib/core/Editor/index.js +0 -173
- package/lib/core/Editor/styles.d.ts +0 -1
- package/lib/core/Editor/styles.d.ts.map +0 -1
- package/lib/core/Editor/styles.js +0 -60
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +0 -8
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts +0 -7
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/lib/core/EditorQuillReact/config.d.ts +0 -30
- package/lib/core/EditorQuillReact/config.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/config.js +0 -31
- package/lib/core/EditorQuillReact/index.d.ts +0 -23
- package/lib/core/EditorQuillReact/index.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/index.js +0 -103
- package/lib/core/EditorQuillReact/styles.d.ts +0 -13
- package/lib/core/EditorQuillReact/styles.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/styles.js +0 -34
- package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +0 -8
- package/lib/core/NotificationsMenu/NotificationBell/index.d.ts.map +0 -1
- package/lib/core/NotificationsMenu/NotificationBell/index.js +0 -19
- package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +0 -7
- package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts.map +0 -1
- package/lib/core/NotificationsMenu/NotificationBell/styles.js +0 -21
- package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts +0 -7
- package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts.map +0 -1
- package/lib/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
- package/lib/core/QuillEditor/Attributors/ListContainer.d.ts +0 -10
- package/lib/core/QuillEditor/Attributors/ListContainer.d.ts.map +0 -1
- package/lib/core/QuillEditor/Attributors/ListContainer.js +0 -20
- package/lib/core/QuillEditor/Attributors/ListItem.d.ts +0 -10
- package/lib/core/QuillEditor/Attributors/ListItem.d.ts.map +0 -1
- 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 };
|