playbook_ui 13.10.0.pre.alpha.play10481357 → 13.10.0.pre.alpha.play10561409
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_button/docs/_button_circle_swift.md +28 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_default_swift.md +23 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width_swift.md +9 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_options_swift.md +18 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_props_swift.md +11 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_size_swift.md +20 -0
- data/app/pb_kits/playbook/pb_button/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_background_swift.md +29 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_border_none_swift.md +7 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_border_radius_swift.md +33 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_header_swift.md +33 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight_swift.md +17 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_light_swift.md +7 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_padding_swift.md +33 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_props_swift.md +10 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_selected_swift.md +0 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_separator_swift.md +11 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow_swift.md +21 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_styles_swift.md +17 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_tag_swift.md +0 -0
- data/app/pb_kits/playbook/pb_card/docs/example.yml +12 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +2 -11
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +4 -8
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +47 -31
- data/app/pb_kits/playbook/pb_table/docs/_table_header.md +5 -0
- data/app/pb_kits/playbook/pb_table/table_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +19 -6
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.html.erb +31 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.jsx +45 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.md +5 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/styles.css +7 -0
- data/app/pb_kits/playbook/pb_tooltip/index.js +3 -0
- data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +19 -0
- data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +1 -0
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/version.rb +1 -1
- metadata +25 -5
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx +0 -33
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md +0 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js +0 -47
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.10.0.pre.alpha.
|
4
|
+
version: 13.10.0.pre.alpha.play10561409
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -431,19 +431,23 @@ files:
|
|
431
431
|
- app/pb_kits/playbook/pb_button/docs/_button_block_content.html.erb
|
432
432
|
- app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx
|
433
433
|
- app/pb_kits/playbook/pb_button/docs/_button_block_content.md
|
434
|
+
- app/pb_kits/playbook/pb_button/docs/_button_circle_swift.md
|
434
435
|
- app/pb_kits/playbook/pb_button/docs/_button_default.html.erb
|
435
436
|
- app/pb_kits/playbook/pb_button/docs/_button_default.jsx
|
436
437
|
- app/pb_kits/playbook/pb_button/docs/_button_default.md
|
438
|
+
- app/pb_kits/playbook/pb_button/docs/_button_default_swift.md
|
437
439
|
- app/pb_kits/playbook/pb_button/docs/_button_form.html.erb
|
438
440
|
- app/pb_kits/playbook/pb_button/docs/_button_form.jsx
|
439
441
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.html.erb
|
440
442
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx
|
441
443
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.md
|
444
|
+
- app/pb_kits/playbook/pb_button/docs/_button_full_width_swift.md
|
442
445
|
- app/pb_kits/playbook/pb_button/docs/_button_hover.html.erb
|
443
446
|
- app/pb_kits/playbook/pb_button/docs/_button_hover.jsx
|
444
447
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.html.erb
|
445
448
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx
|
446
449
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.md
|
450
|
+
- app/pb_kits/playbook/pb_button/docs/_button_icon_options_swift.md
|
447
451
|
- app/pb_kits/playbook/pb_button/docs/_button_link.html.erb
|
448
452
|
- app/pb_kits/playbook/pb_button/docs/_button_link.jsx
|
449
453
|
- app/pb_kits/playbook/pb_button/docs/_button_link.md
|
@@ -452,12 +456,14 @@ files:
|
|
452
456
|
- app/pb_kits/playbook/pb_button/docs/_button_loading.md
|
453
457
|
- app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
|
454
458
|
- app/pb_kits/playbook/pb_button/docs/_button_options.jsx
|
459
|
+
- app/pb_kits/playbook/pb_button/docs/_button_props_swift.md
|
455
460
|
- app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb
|
456
461
|
- app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
|
457
462
|
- app/pb_kits/playbook/pb_button/docs/_button_reaction.md
|
458
463
|
- app/pb_kits/playbook/pb_button/docs/_button_size.html.erb
|
459
464
|
- app/pb_kits/playbook/pb_button/docs/_button_size.jsx
|
460
465
|
- app/pb_kits/playbook/pb_button/docs/_button_size.md
|
466
|
+
- app/pb_kits/playbook/pb_button/docs/_button_size_swift.md
|
461
467
|
- app/pb_kits/playbook/pb_button/docs/_footer.md
|
462
468
|
- app/pb_kits/playbook/pb_button/docs/example.yml
|
463
469
|
- app/pb_kits/playbook/pb_button/docs/index.js
|
@@ -504,33 +510,46 @@ files:
|
|
504
510
|
- app/pb_kits/playbook/pb_card/docs/_card_background.html.erb
|
505
511
|
- app/pb_kits/playbook/pb_card/docs/_card_background.jsx
|
506
512
|
- app/pb_kits/playbook/pb_card/docs/_card_background.md
|
513
|
+
- app/pb_kits/playbook/pb_card/docs/_card_background_swift.md
|
507
514
|
- app/pb_kits/playbook/pb_card/docs/_card_border_none.html.erb
|
508
515
|
- app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx
|
509
516
|
- app/pb_kits/playbook/pb_card/docs/_card_border_none.md
|
517
|
+
- app/pb_kits/playbook/pb_card/docs/_card_border_none_swift.md
|
510
518
|
- app/pb_kits/playbook/pb_card/docs/_card_border_radius.html.erb
|
511
519
|
- app/pb_kits/playbook/pb_card/docs/_card_border_radius.jsx
|
512
520
|
- app/pb_kits/playbook/pb_card/docs/_card_border_radius.md
|
521
|
+
- app/pb_kits/playbook/pb_card/docs/_card_border_radius_swift.md
|
513
522
|
- app/pb_kits/playbook/pb_card/docs/_card_content.html.erb
|
514
523
|
- app/pb_kits/playbook/pb_card/docs/_card_content.jsx
|
515
524
|
- app/pb_kits/playbook/pb_card/docs/_card_header.html.erb
|
516
525
|
- app/pb_kits/playbook/pb_card/docs/_card_header.jsx
|
517
526
|
- app/pb_kits/playbook/pb_card/docs/_card_header.md
|
527
|
+
- app/pb_kits/playbook/pb_card/docs/_card_header_swift.md
|
518
528
|
- app/pb_kits/playbook/pb_card/docs/_card_highlight.html.erb
|
519
529
|
- app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx
|
520
530
|
- app/pb_kits/playbook/pb_card/docs/_card_highlight.md
|
531
|
+
- app/pb_kits/playbook/pb_card/docs/_card_highlight_swift.md
|
521
532
|
- app/pb_kits/playbook/pb_card/docs/_card_light.html.erb
|
522
533
|
- app/pb_kits/playbook/pb_card/docs/_card_light.jsx
|
523
534
|
- app/pb_kits/playbook/pb_card/docs/_card_light.md
|
535
|
+
- app/pb_kits/playbook/pb_card/docs/_card_light_swift.md
|
524
536
|
- app/pb_kits/playbook/pb_card/docs/_card_padding.html.erb
|
525
537
|
- app/pb_kits/playbook/pb_card/docs/_card_padding.jsx
|
538
|
+
- app/pb_kits/playbook/pb_card/docs/_card_padding_swift.md
|
539
|
+
- app/pb_kits/playbook/pb_card/docs/_card_props_swift.md
|
526
540
|
- app/pb_kits/playbook/pb_card/docs/_card_selected.html.erb
|
527
541
|
- app/pb_kits/playbook/pb_card/docs/_card_selected.jsx
|
542
|
+
- app/pb_kits/playbook/pb_card/docs/_card_selected_swift.md
|
528
543
|
- app/pb_kits/playbook/pb_card/docs/_card_separator.html.erb
|
529
544
|
- app/pb_kits/playbook/pb_card/docs/_card_separator.jsx
|
545
|
+
- app/pb_kits/playbook/pb_card/docs/_card_separator_swift.md
|
530
546
|
- app/pb_kits/playbook/pb_card/docs/_card_shadow.html.erb
|
531
547
|
- app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx
|
548
|
+
- app/pb_kits/playbook/pb_card/docs/_card_shadow_swift.md
|
549
|
+
- app/pb_kits/playbook/pb_card/docs/_card_styles_swift.md
|
532
550
|
- app/pb_kits/playbook/pb_card/docs/_card_tag.html.erb
|
533
551
|
- app/pb_kits/playbook/pb_card/docs/_card_tag.jsx
|
552
|
+
- app/pb_kits/playbook/pb_card/docs/_card_tag_swift.md
|
534
553
|
- app/pb_kits/playbook/pb_card/docs/example.yml
|
535
554
|
- app/pb_kits/playbook/pb_card/docs/index.js
|
536
555
|
- app/pb_kits/playbook/pb_checkbox/_checkbox.scss
|
@@ -1852,8 +1871,6 @@ files:
|
|
1852
1871
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
|
1853
1872
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
|
1854
1873
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx
|
1855
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx
|
1856
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md
|
1857
1874
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
|
1858
1875
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/index.js
|
1859
1876
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js
|
@@ -1861,7 +1878,6 @@ files:
|
|
1861
1878
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb
|
1862
1879
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb
|
1863
1880
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js
|
1864
|
-
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js
|
1865
1881
|
- app/pb_kits/playbook/pb_rich_text_editor/useFocus.ts
|
1866
1882
|
- app/pb_kits/playbook/pb_section_separator/_section_separator.scss
|
1867
1883
|
- app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
|
@@ -2362,9 +2378,13 @@ files:
|
|
2362
2378
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.md
|
2363
2379
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb
|
2364
2380
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.md
|
2381
|
+
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.html.erb
|
2382
|
+
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.jsx
|
2383
|
+
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_truncated.md
|
2365
2384
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_with_icon_circle.html.erb
|
2366
2385
|
- app/pb_kits/playbook/pb_tooltip/docs/example.yml
|
2367
2386
|
- app/pb_kits/playbook/pb_tooltip/docs/index.js
|
2387
|
+
- app/pb_kits/playbook/pb_tooltip/docs/styles.css
|
2368
2388
|
- app/pb_kits/playbook/pb_tooltip/index.js
|
2369
2389
|
- app/pb_kits/playbook/pb_tooltip/tooltip.html.erb
|
2370
2390
|
- app/pb_kits/playbook/pb_tooltip/tooltip.rb
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { useEditor, EditorContent } from "@tiptap/react";
|
3
|
-
|
4
|
-
import { RichTextEditor } from "../..";
|
5
|
-
|
6
|
-
import Document from "@tiptap/extension-document";
|
7
|
-
import Paragraph from "@tiptap/extension-paragraph";
|
8
|
-
import Text from "@tiptap/extension-text";
|
9
|
-
|
10
|
-
const RichTextEditorToolbarDisabled = (props) => {
|
11
|
-
const editor = useEditor({
|
12
|
-
extensions: [Document, Paragraph, Text],
|
13
|
-
content:
|
14
|
-
"Add your text here. You can format your text, add links, quotes, and bullets.",
|
15
|
-
});
|
16
|
-
if (!editor) {
|
17
|
-
return null;
|
18
|
-
}
|
19
|
-
|
20
|
-
return (
|
21
|
-
<div>
|
22
|
-
<RichTextEditor
|
23
|
-
advancedEditor={editor}
|
24
|
-
advancedEditorToolbar={false}
|
25
|
-
{...props}
|
26
|
-
>
|
27
|
-
<EditorContent editor={editor} />
|
28
|
-
</RichTextEditor>
|
29
|
-
</div>
|
30
|
-
);
|
31
|
-
};
|
32
|
-
|
33
|
-
export default RichTextEditorToolbarDisabled;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
This variant allows you to optionally include the default toolbar.
|
2
|
-
|
3
|
-
The default toolbar relies on [Tiptap's StarterKit](https://tiptap.dev/api/extensions/starter-kit) which might add that are not necessary for your application. Setting the `advancedEditorToobar` to false enables you to instantiate an editor with the minimum requirements.
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { render } from "../utilities/test-utils";
|
3
|
-
import { useEditor, EditorContent } from "@tiptap/react";
|
4
|
-
import StarterKit from "@tiptap/starter-kit";
|
5
|
-
import Link from "@tiptap/extension-link";
|
6
|
-
|
7
|
-
import RichTextEditor from "./_rich_text_editor";
|
8
|
-
|
9
|
-
const kitClass = "pb_rich_text_editor_advanced_container";
|
10
|
-
|
11
|
-
const EditorTest = (props) => {
|
12
|
-
const editor = useEditor({
|
13
|
-
extensions: [StarterKit, Link],
|
14
|
-
content: "",
|
15
|
-
});
|
16
|
-
|
17
|
-
return (
|
18
|
-
<RichTextEditor
|
19
|
-
advancedEditor={editor}
|
20
|
-
{...props}
|
21
|
-
>
|
22
|
-
<EditorContent editor={editor} />
|
23
|
-
</RichTextEditor>
|
24
|
-
);
|
25
|
-
};
|
26
|
-
|
27
|
-
test("returns namespaced class name", () => {
|
28
|
-
const { container } = render(<EditorTest />);
|
29
|
-
|
30
|
-
expect(container.getElementsByClassName(kitClass).length).toBeGreaterThan(0);
|
31
|
-
});
|
32
|
-
|
33
|
-
test("returns toolbar class name", () => {
|
34
|
-
const { container } = render(<EditorTest />);
|
35
|
-
|
36
|
-
expect(
|
37
|
-
container.getElementsByClassName(`${kitClass} toolbar-active`).length
|
38
|
-
).toBeGreaterThan(0);
|
39
|
-
});
|
40
|
-
|
41
|
-
test("doesn't returns toolbar class name", () => {
|
42
|
-
const { container } = render(<EditorTest advancedEditorToolbar={false} />);
|
43
|
-
|
44
|
-
expect(
|
45
|
-
container.getElementsByClassName(`${kitClass} toolbar-active`).length
|
46
|
-
).toBe(0);
|
47
|
-
});
|