playbook_ui_docs 13.6.0.pre.alpha.play845allkitsbytypes1219 → 13.6.0.pre.alpha.tiptapreacthookformbug1210
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_body/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
- data/dist/menu.yml +110 -235
- data/dist/pb_doc_helper.rb +15 -40
- data/dist/playbook-doc.js +6 -6
- metadata +2 -8
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate.html.erb +0 -12
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +0 -50
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate.md +0 -4
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate.html.erb +0 -12
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +0 -53
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate.md +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63100a9d6982f397ccaadd75ecf40e5c73434483c996c9337e0c0be4f436cd6a
|
4
|
+
data.tar.gz: 77591cf9bd6f29dc2d5c952c453cf2524591f37fe49405239c4cf397d7f3e4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 902996a2e597911ae9698f12331583e28755280d9e6b28741f6a93f2912ff29d9ed1fbb9191af4ce155b5489ac6706e23d09beb211d0ef83a34fdd0cd9cd7716
|
7
|
+
data.tar.gz: f0f0f01b74494e8ab35206385bde1ac331243d10dc1db519b512a28b2f60d9256a848d40f98798b37d6e031097ad586b9756388855b16dccb8e065d0a757d62c
|
@@ -4,11 +4,8 @@ examples:
|
|
4
4
|
- body_block: Block
|
5
5
|
- body_articles: Best settings for articles
|
6
6
|
- body_styled: Styled tags
|
7
|
-
- body_truncate: Truncate
|
8
|
-
|
9
7
|
react:
|
10
8
|
- body_light: Default
|
11
9
|
- body_block: Block
|
12
10
|
- body_articles: Best settings for articles
|
13
11
|
- body_styled: Styled tags
|
14
|
-
- body_truncate: Truncate
|
@@ -2,4 +2,3 @@ export { default as BodyLight } from './_body_light.jsx'
|
|
2
2
|
export { default as BodyBlock } from './_body_block.jsx'
|
3
3
|
export { default as BodyStyled } from './_body_styled.jsx'
|
4
4
|
export { default as BodyArticles } from './_body_articles.jsx'
|
5
|
-
export { default as BodyTruncate } from './_body_truncate.jsx'
|
@@ -4,11 +4,9 @@ examples:
|
|
4
4
|
- title_light_weight: Light Weight UI
|
5
5
|
- title_colors: Colors
|
6
6
|
- title_responsive: Responsive
|
7
|
-
- title_truncate: Truncate
|
8
7
|
|
9
8
|
react:
|
10
9
|
- title_default: Default UI
|
11
10
|
- title_light_weight: Light Weight UI
|
12
11
|
- title_colors: Colors
|
13
12
|
- title_responsive: Responsive
|
14
|
-
- title_truncate: Truncate
|
@@ -2,4 +2,3 @@ export { default as TitleDefault } from './_title_default.jsx'
|
|
2
2
|
export { default as TitleLightWeight } from './_title_light_weight.jsx'
|
3
3
|
export { default as TitleColors } from './_title_colors.jsx'
|
4
4
|
export { default as TitleResponsive } from './_title_responsive.jsx'
|
5
|
-
export { default as TitleTruncate } from './_title_truncate.jsx'
|
data/dist/menu.yml
CHANGED
@@ -1,236 +1,111 @@
|
|
1
1
|
kits:
|
2
|
-
|
3
|
-
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
-
|
110
|
-
|
111
|
-
|
112
|
-
- avatars:
|
113
|
-
- avatar
|
114
|
-
- avatar_action_button
|
115
|
-
- multiple_users
|
116
|
-
- multiple_users_stacked
|
117
|
-
- user
|
118
|
-
- background
|
119
|
-
- bread_crumbs
|
120
|
-
- buttons:
|
121
|
-
- button
|
122
|
-
- button_toolbar
|
123
|
-
- circle_icon_button
|
124
|
-
- card
|
125
|
-
- collapsible
|
126
|
-
- charts_and_graphs:
|
127
|
-
- bar_graph
|
128
|
-
- circle_chart
|
129
|
-
- distribution_bar
|
130
|
-
- gauge
|
131
|
-
- legend
|
132
|
-
- line_graph
|
133
|
-
- treemap_chart
|
134
|
-
- dialog
|
135
|
-
- filter
|
136
|
-
- fixed_confirmation_toast
|
137
|
-
- forms:
|
138
|
-
- checkbox
|
139
|
-
- date_picker
|
140
|
-
- file_upload
|
141
|
-
- form_group
|
142
|
-
- form_pill
|
143
|
-
- multi_level_select
|
144
|
-
- passphrase
|
145
|
-
- phone_number_input
|
146
|
-
- radio
|
147
|
-
- rich_text_editor
|
148
|
-
- select
|
149
|
-
- selectable_card
|
150
|
-
- selectable_card_icon
|
151
|
-
- selectable_icon
|
152
|
-
- selectable_list
|
153
|
-
- text_input
|
154
|
-
- textarea
|
155
|
-
- toggle
|
156
|
-
- typeahead
|
157
|
-
- highlight
|
158
|
-
- icon
|
159
|
-
- icon_circle
|
160
|
-
- icon_stat_value
|
161
|
-
- icon_value
|
162
|
-
- image
|
163
|
-
- layouts:
|
164
|
-
- flex
|
165
|
-
- layout
|
166
|
-
- lightbox
|
167
|
-
- list
|
168
|
-
- loading_inline
|
169
|
-
- map
|
170
|
-
- nav
|
171
|
-
- tags:
|
172
|
-
- badge
|
173
|
-
- hashtag
|
174
|
-
- pill
|
175
|
-
- popover
|
176
|
-
- progress:
|
177
|
-
- progress_pills
|
178
|
-
- progress_simple
|
179
|
-
- progress_step
|
180
|
-
- section_separator
|
181
|
-
- star_rating
|
182
|
-
- table
|
183
|
-
- timeline
|
184
|
-
- time_and_date:
|
185
|
-
- date
|
186
|
-
- date_range_inline
|
187
|
-
- date_range_stacked
|
188
|
-
- date_stacked
|
189
|
-
- date_time
|
190
|
-
- date_time_stacked
|
191
|
-
- date_year_stacked
|
192
|
-
- time
|
193
|
-
- time_range_inline
|
194
|
-
- time_stacked
|
195
|
-
- timestamp
|
196
|
-
- weekday_stacked
|
197
|
-
- tooltip
|
198
|
-
- typography:
|
199
|
-
- body
|
200
|
-
- caption
|
201
|
-
- detail
|
202
|
-
- title
|
203
|
-
- typography_patterns:
|
204
|
-
- contact
|
205
|
-
- currency
|
206
|
-
- dashboard_value
|
207
|
-
- home_address_street
|
208
|
-
- label_pill
|
209
|
-
- label_value
|
210
|
-
- message
|
211
|
-
- person
|
212
|
-
- person_contact
|
213
|
-
- source
|
214
|
-
- stat_change
|
215
|
-
- stat_value
|
216
|
-
- title_count
|
217
|
-
- title_detail
|
218
|
-
- user_badge
|
219
|
-
- walkthrough
|
220
|
-
|
221
|
-
swift:
|
222
|
-
- avatars:
|
223
|
-
- avatar
|
224
|
-
- buttons:
|
225
|
-
- charts_and_graphs:
|
226
|
-
- forms:
|
227
|
-
- radio
|
228
|
-
- layouts:
|
229
|
-
- tags:
|
230
|
-
- badge
|
231
|
-
- pill
|
232
|
-
- progress:
|
233
|
-
- time_and_date:
|
234
|
-
- timestamp
|
235
|
-
- typography:
|
236
|
-
- typography_patterns:
|
2
|
+
- avatars:
|
3
|
+
- avatar
|
4
|
+
- avatar_action_button
|
5
|
+
- multiple_users
|
6
|
+
- multiple_users_stacked
|
7
|
+
- user
|
8
|
+
- background
|
9
|
+
- bread_crumbs
|
10
|
+
- buttons:
|
11
|
+
- button
|
12
|
+
- button_toolbar
|
13
|
+
- circle_icon_button
|
14
|
+
- card
|
15
|
+
- collapsible
|
16
|
+
- charts_and_graphs:
|
17
|
+
- bar_graph
|
18
|
+
- circle_chart
|
19
|
+
- distribution_bar
|
20
|
+
- gauge
|
21
|
+
- legend
|
22
|
+
- line_graph
|
23
|
+
- treemap_chart
|
24
|
+
- dialog
|
25
|
+
- filter
|
26
|
+
- fixed_confirmation_toast
|
27
|
+
- forms:
|
28
|
+
- checkbox
|
29
|
+
- date_picker
|
30
|
+
- file_upload
|
31
|
+
- form
|
32
|
+
- form_group
|
33
|
+
- form_pill
|
34
|
+
- multi_level_select
|
35
|
+
- passphrase
|
36
|
+
- phone_number_input
|
37
|
+
- radio
|
38
|
+
- rich_text_editor
|
39
|
+
- select
|
40
|
+
- selectable_card
|
41
|
+
- selectable_card_icon
|
42
|
+
- selectable_icon
|
43
|
+
- selectable_list
|
44
|
+
- text_input
|
45
|
+
- textarea
|
46
|
+
- toggle
|
47
|
+
- typeahead
|
48
|
+
- highlight
|
49
|
+
- icon
|
50
|
+
- icon_circle
|
51
|
+
- icon_stat_value
|
52
|
+
- icon_value
|
53
|
+
- image
|
54
|
+
- layouts:
|
55
|
+
- flex
|
56
|
+
- layout
|
57
|
+
- lightbox
|
58
|
+
- list
|
59
|
+
- loading_inline
|
60
|
+
- map
|
61
|
+
- nav
|
62
|
+
- tags:
|
63
|
+
- badge
|
64
|
+
- hashtag
|
65
|
+
- pill
|
66
|
+
- pagination
|
67
|
+
- popover
|
68
|
+
- progress:
|
69
|
+
- progress_pills
|
70
|
+
- progress_simple
|
71
|
+
- progress_step
|
72
|
+
- section_separator
|
73
|
+
- star_rating
|
74
|
+
- table
|
75
|
+
- timeline
|
76
|
+
- time_and_date:
|
77
|
+
- date
|
78
|
+
- date_range_inline
|
79
|
+
- date_range_stacked
|
80
|
+
- date_stacked
|
81
|
+
- date_time
|
82
|
+
- date_time_stacked
|
83
|
+
- date_year_stacked
|
84
|
+
- time
|
85
|
+
- time_range_inline
|
86
|
+
- time_stacked
|
87
|
+
- timestamp
|
88
|
+
- weekday_stacked
|
89
|
+
- tooltip
|
90
|
+
- typography:
|
91
|
+
- body
|
92
|
+
- caption
|
93
|
+
- detail
|
94
|
+
- title
|
95
|
+
- typography_patterns:
|
96
|
+
- contact
|
97
|
+
- currency
|
98
|
+
- dashboard_value
|
99
|
+
- home_address_street
|
100
|
+
- label_pill
|
101
|
+
- label_value
|
102
|
+
- message
|
103
|
+
- person
|
104
|
+
- person_contact
|
105
|
+
- source
|
106
|
+
- stat_change
|
107
|
+
- stat_value
|
108
|
+
- title_count
|
109
|
+
- title_detail
|
110
|
+
- user_badge
|
111
|
+
- walkthrough
|
data/dist/pb_doc_helper.rb
CHANGED
@@ -27,58 +27,33 @@ module PlaybookWebsite
|
|
27
27
|
|
28
28
|
# Deal with lists of kits, used in Playbook doc and Externally
|
29
29
|
# rubocop:disable Style/StringConcatenation
|
30
|
-
def pb_kits(type: "rails", limit_examples: false, dark_mode: false)
|
30
|
+
def pb_kits(type: "rails", limit_examples: false, dark_mode: false, method: get_kits)
|
31
31
|
display_kits = []
|
32
|
-
kits =
|
32
|
+
kits = method
|
33
33
|
kits.each do |kit|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
if kit.is_a?(Hash)
|
35
|
+
nav_hash_array(kit).each do |sub_kit|
|
36
|
+
display_kits << render_pb_doc_kit(sub_kit, type, limit_examples, false, dark_mode)
|
37
|
+
end
|
38
|
+
else
|
39
|
+
display_kits << render_pb_doc_kit(kit, type, limit_examples, false, dark_mode)
|
39
40
|
end
|
40
41
|
end
|
41
42
|
raw("<div class='pb--docItem'>" + display_kits.join("</div><div class='pb--docItem'>") + "</div>")
|
42
43
|
end
|
43
44
|
# rubocop:enable Style/StringConcatenation
|
44
45
|
|
45
|
-
|
46
|
+
# rubocop:disable Naming/AccessorMethodName
|
47
|
+
def get_kits
|
46
48
|
menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
|
47
|
-
menu["kits"]
|
49
|
+
menu["kits"]
|
48
50
|
end
|
49
51
|
|
50
|
-
def
|
51
|
-
menu = YAML.load_file(
|
52
|
-
|
53
|
-
|
54
|
-
# Loop over each type (rails, react, swift, etc.)
|
55
|
-
menu["kits"].each do |_type, kits|
|
56
|
-
kits.each do |kit|
|
57
|
-
case kit
|
58
|
-
when Hash
|
59
|
-
kit_name = kit.keys.first
|
60
|
-
existing_kit = all_kits.find { |k| k.is_a?(Hash) && k.keys.first == kit_name }
|
61
|
-
|
62
|
-
if existing_kit
|
63
|
-
existing_kit[kit_name] += kit[kit_name] unless kit[kit_name].nil?
|
64
|
-
existing_kit[kit_name].uniq!
|
65
|
-
existing_kit[kit_name].sort!
|
66
|
-
else
|
67
|
-
all_kits << { kit_name => kit[kit_name] }
|
68
|
-
end
|
69
|
-
when String
|
70
|
-
all_kits << kit unless all_kits.include?(kit)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
# Sort the top-level entries
|
76
|
-
all_kits.sort_by! do |kit|
|
77
|
-
kit.is_a?(Hash) ? kit.keys.first : kit
|
78
|
-
end
|
79
|
-
|
80
|
-
all_kits
|
52
|
+
def get_kits_pb_website
|
53
|
+
menu = YAML.load_file(Rails.root.join("config/menu.yml"))
|
54
|
+
menu["kits"]
|
81
55
|
end
|
56
|
+
# rubocop:enable Naming/AccessorMethodName
|
82
57
|
|
83
58
|
# rubocop:disable Style/OptionalBooleanParameter
|
84
59
|
def render_pb_doc_kit(kit, type, limit_examples, code = true, dark_mode = false)
|