playbook_ui 13.20.0.pre.alpha.play1247htmloptions2404 → 13.20.0
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/index.js +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -45
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
- data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +1 -2
- data/app/pb_kits/playbook/pb_background/background.html.erb +1 -2
- data/app/pb_kits/playbook/pb_badge/badge.html.erb +1 -2
- data/app/pb_kits/playbook/pb_body/body.html.erb +1 -2
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +1 -2
- data/app/pb_kits/playbook/pb_button/button.html.erb +1 -2
- data/app/pb_kits/playbook/pb_button/button.rb +3 -2
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +1 -2
- data/app/pb_kits/playbook/pb_caption/caption.html.erb +1 -2
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -2
- data/app/pb_kits/playbook/pb_card/card_body.html.erb +1 -2
- data/app/pb_kits/playbook/pb_card/card_header.html.erb +1 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -3
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -2
- data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +1 -2
- data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +1 -2
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -2
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +1 -2
- data/app/pb_kits/playbook/pb_currency/currency.html.erb +1 -2
- data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date/date.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +6 -26
- data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +8 -27
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -3
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +2 -3
- data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/pb_detail/detail.html.erb +1 -2
- data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +2 -3
- data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +1 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +2 -3
- data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +1 -2
- data/app/pb_kits/playbook/pb_filter/filter.html.erb +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +1 -2
- data/app/pb_kits/playbook/pb_flex/flex.html.erb +1 -2
- data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_form_group/form_group.html.erb +1 -2
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +2 -2
- data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +1 -2
- data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +1 -2
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +1 -2
- data/app/pb_kits/playbook/pb_icon/icon.html.erb +1 -2
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -2
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -2
- data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +1 -2
- data/app/pb_kits/playbook/pb_image/image.html.erb +1 -2
- data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +1 -2
- data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +2 -3
- data/app/pb_kits/playbook/pb_layout/body.html.erb +1 -2
- data/app/pb_kits/playbook/pb_layout/footer.html.erb +1 -2
- data/app/pb_kits/playbook/pb_layout/header.html.erb +1 -2
- data/app/pb_kits/playbook/pb_layout/item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_layout/layout.html.erb +1 -2
- data/app/pb_kits/playbook/pb_layout/sidebar.html.erb +1 -2
- data/app/pb_kits/playbook/pb_legend/legend.html.erb +1 -2
- data/app/pb_kits/playbook/pb_list/item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_list/list.html.erb +1 -2
- data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -2
- data/app/pb_kits/playbook/pb_message/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_message/message.html.erb +1 -2
- data/app/pb_kits/playbook/pb_message/message_mention.html.erb +2 -3
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb +1 -2
- data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +0 -4
- data/app/pb_kits/playbook/pb_nav/item.html.erb +2 -4
- data/app/pb_kits/playbook/pb_nav/nav.html.erb +1 -2
- data/app/pb_kits/playbook/pb_online_status/online_status.html.erb +1 -2
- data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -2
- data/app/pb_kits/playbook/pb_passphrase/passphrase.html.erb +1 -1
- data/app/pb_kits/playbook/pb_person/person.html.erb +1 -2
- data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +1 -2
- data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -2
- data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -2
- data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +1 -2
- data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +1 -2
- data/app/pb_kits/playbook/pb_progress_step/progress_step.html.erb +1 -2
- data/app/pb_kits/playbook/pb_progress_step/progress_step_item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_radio/radio.html.erb +1 -2
- data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -2
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -2
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb +1 -2
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb +1 -2
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +1 -2
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_source/source.html.erb +1 -2
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +1 -2
- data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +1 -2
- data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +1 -2
- data/app/pb_kits/playbook/pb_table/_table.tsx +0 -13
- data/app/pb_kits/playbook/pb_table/_table_row.tsx +47 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +25 -24
- data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_table/styles/_striped.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +2 -4
- data/app/pb_kits/playbook/pb_table/table.html.erb +2 -4
- data/app/pb_kits/playbook/pb_table/table.test.js +1 -142
- data/app/pb_kits/playbook/pb_table/table_header.html.erb +38 -50
- data/app/pb_kits/playbook/pb_table/table_header.rb +1 -8
- data/app/pb_kits/playbook/pb_table/table_row.html.erb +6 -18
- data/app/pb_kits/playbook/pb_table/table_row.rb +1 -8
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -9
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +0 -20
- data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +1 -2
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -2
- data/app/pb_kits/playbook/pb_time/time.html.erb +1 -2
- data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +2 -3
- data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -2
- data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +1 -2
- data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +1 -2
- data/app/pb_kits/playbook/pb_title/title.html.erb +2 -3
- data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +1 -2
- data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +1 -2
- data/app/pb_kits/playbook/pb_toggle/toggle.html.erb +1 -2
- data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +1 -2
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -2
- data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +1 -2
- data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_user/user.html.erb +1 -2
- data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +1 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +1 -2
- data/app/pb_kits/playbook/utilities/_positioning.scss +7 -48
- data/app/pb_kits/playbook/utilities/globalProps.ts +1 -23
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/classnames.rb +0 -4
- data/lib/playbook/kit_base.rb +0 -26
- data/lib/playbook/version.rb +2 -2
- metadata +8 -31
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx +0 -47
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md +0 -7
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx +0 -48
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.md +0 -7
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +0 -64
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +0 -66
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +0 -64
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +0 -66
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +0 -74
- data/app/pb_kits/playbook/pb_table/subcomponents/index.tsx +0 -5
- data/app/pb_kits/playbook/pb_table/table_body.html.erb +0 -19
- data/app/pb_kits/playbook/pb_table/table_body.rb +0 -15
- data/app/pb_kits/playbook/pb_table/table_cell.html.erb +0 -19
- data/app/pb_kits/playbook/pb_table/table_cell.rb +0 -17
- data/app/pb_kits/playbook/pb_table/table_head.html.erb +0 -19
- data/app/pb_kits/playbook/pb_table/table_head.rb +0 -15
- data/app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md +0 -30
- data/lib/playbook/bottom.rb +0 -33
- data/lib/playbook/left.rb +0 -33
- data/lib/playbook/right.rb +0 -33
- data/lib/playbook/top.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89bd4e938528cafc5784b31a33e8164edd9b132e4f63f2ebbf2ba1160b07738f
|
4
|
+
data.tar.gz: b87c8966e25b1b0b6fc2a01b84ae7164436a4f2be860f49c7414f667d1c5d40f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7991e682deaf82d106bb0e2a29bb029a6299eba736a0c3e85de50366efa998db4f30026c9fcfc3cf4f7c2ac95f2fddaa38a90add59379d7c7b0890e070e8850a
|
7
|
+
data.tar.gz: 6f649c427896f5010b9721ffd3a0e0c9f282f6eb6c65c666cdbd2487aab6132175a7660b7e48bc89cbe1133736ac4a79d9911f053bb481193096f6032220e6c9
|
@@ -93,7 +93,7 @@ export { default as StarRating } from './pb_star_rating/_star_rating'
|
|
93
93
|
export { default as StatChange } from './pb_stat_change/_stat_change'
|
94
94
|
export { default as StatValue } from './pb_stat_value/_stat_value'
|
95
95
|
export { default as Table } from './pb_table/_table'
|
96
|
-
export { default as TableRow } from './pb_table/
|
96
|
+
export { default as TableRow } from './pb_table/_table_row'
|
97
97
|
export { default as TextInput } from './pb_text_input/_text_input'
|
98
98
|
export { default as Textarea } from './pb_textarea/_textarea'
|
99
99
|
export { default as Time } from './pb_time/_time'
|
@@ -11,12 +11,7 @@ const CollapsibleTrail = ({ leftOffset }: { leftOffset: number }) => {
|
|
11
11
|
backgroundColor: "#E4E8F0",
|
12
12
|
}
|
13
13
|
|
14
|
-
return
|
15
|
-
<div
|
16
|
-
className="collapsible-trail"
|
17
|
-
style={style}
|
18
|
-
/>
|
19
|
-
)
|
14
|
+
return <div style={style} />
|
20
15
|
}
|
21
16
|
|
22
17
|
// Updated function to render multiple trails depending on depth
|
@@ -15,7 +15,6 @@ import { DataType } from "../Utilities/types"
|
|
15
15
|
type TableBodyProps = {
|
16
16
|
className?: string;
|
17
17
|
collapsibleTrail?: boolean
|
18
|
-
dark?: boolean,
|
19
18
|
id?: string;
|
20
19
|
subRowHeaders?: string[]
|
21
20
|
}
|
@@ -23,7 +22,6 @@ type TableBodyProps = {
|
|
23
22
|
export const TableBody = ({
|
24
23
|
className,
|
25
24
|
collapsibleTrail = true,
|
26
|
-
dark = false,
|
27
25
|
id,
|
28
26
|
subRowHeaders,
|
29
27
|
...props
|
@@ -10,7 +10,6 @@ import { DataType } from "../Utilities/types"
|
|
10
10
|
type TableHeaderProps = {
|
11
11
|
children?: React.ReactNode | React.ReactNode[]
|
12
12
|
className?: string
|
13
|
-
dark?: boolean,
|
14
13
|
enableSorting?: boolean
|
15
14
|
id?: string;
|
16
15
|
sortIcon?: string | string[]
|
@@ -19,7 +18,6 @@ type TableHeaderProps = {
|
|
19
18
|
export const TableHeader = ({
|
20
19
|
children,
|
21
20
|
className,
|
22
|
-
dark = false,
|
23
21
|
enableSorting = false,
|
24
22
|
id,
|
25
23
|
sortIcon = ["arrow-up-short-wide", "arrow-down-short-wide"],
|
@@ -95,49 +95,4 @@
|
|
95
95
|
border-right: $transparent !important;
|
96
96
|
}
|
97
97
|
}
|
98
|
-
|
99
|
-
&.dark {
|
100
|
-
.bg-white {
|
101
|
-
background: $bg_dark_card;
|
102
|
-
}
|
103
|
-
|
104
|
-
.bg-silver {
|
105
|
-
background: $bg_dark;
|
106
|
-
}
|
107
|
-
|
108
|
-
.table-header-cells:first-child, td:first-child {
|
109
|
-
box-shadow: 1px 0px 0px 0px $border_dark !important;
|
110
|
-
}
|
111
|
-
|
112
|
-
.collapsible-trail {
|
113
|
-
background-color: $border_dark !important;
|
114
|
-
}
|
115
|
-
|
116
|
-
.sort-button-icon, .header-sort-button > div {
|
117
|
-
color: $white !important;
|
118
|
-
}
|
119
|
-
|
120
|
-
.gray-icon {
|
121
|
-
color: $text_dk_light !important;
|
122
|
-
}
|
123
|
-
|
124
|
-
.sticky-header {
|
125
|
-
background-color: $bg_dark_card;
|
126
|
-
}
|
127
|
-
|
128
|
-
.loading-toggle-icon,
|
129
|
-
.loading-cell {
|
130
|
-
&::after {
|
131
|
-
background-color: $bg_dark !important;
|
132
|
-
background-image: linear-gradient(
|
133
|
-
to left,
|
134
|
-
$bg_dark 0%,
|
135
|
-
lighten($bg_dark, 1%) 50%,
|
136
|
-
lighten($bg_dark, 2%) 60%,
|
137
|
-
$bg_dark 80%,
|
138
|
-
$bg_dark 100%
|
139
|
-
) !important;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
98
|
}
|
@@ -27,7 +27,6 @@ type AdvancedTableProps = {
|
|
27
27
|
children?: React.ReactNode | React.ReactNode[];
|
28
28
|
className?: string;
|
29
29
|
columnDefinitions: DataType[];
|
30
|
-
dark?: boolean,
|
31
30
|
data?: { [key: string]: string };
|
32
31
|
enableToggleExpansion?: "all" | "header" | "none";
|
33
32
|
expandedControl?: DataType;
|
@@ -51,7 +50,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
51
50
|
children,
|
52
51
|
className,
|
53
52
|
columnDefinitions,
|
54
|
-
dark = false,
|
55
53
|
data = {},
|
56
54
|
enableToggleExpansion = "header",
|
57
55
|
expandedControl,
|
@@ -233,7 +231,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
233
231
|
>
|
234
232
|
<Table
|
235
233
|
className={`${loading ? "content-loading" : ""}`}
|
236
|
-
dark={dark}
|
237
234
|
dataTable
|
238
235
|
numberSpacing="tabular"
|
239
236
|
responsive="none"
|
@@ -2,8 +2,7 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data.merge(initials: object.initials),
|
4
4
|
class: object.classname,
|
5
|
-
aria: object.aria
|
6
|
-
**combined_html_options) do %>
|
5
|
+
aria: object.aria) do %>
|
7
6
|
<%= content_tag(:div, data: { initials: object.initials }, class: "avatar_wrapper") do %>
|
8
7
|
<%= pb_rails("image", props: { alt: object.alt_text, url: object.image_url, on_error: object.handle_img_error }) if object.image_url.present? %>
|
9
8
|
<% end %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
id: object.id,
|
4
4
|
data: object.data,
|
5
|
-
class: object.classname
|
6
|
-
**combined_html_options) do %>
|
5
|
+
class: object.classname) do %>
|
7
6
|
<% if object.tooltip_text.present? %>
|
8
7
|
<%= pb_rails("tooltip", props: {
|
9
8
|
trigger_element_id: object.tooltip_id,
|
@@ -7,8 +7,7 @@
|
|
7
7
|
style: "background-image: url('#{object.image_url}');
|
8
8
|
background-repeat: #{object.background_repeat};
|
9
9
|
background-size: #{object.background_size};
|
10
|
-
background-position: #{object.background_position};"
|
11
|
-
**combined_html_options
|
10
|
+
background-position: #{object.background_position};"
|
12
11
|
) do %>
|
13
12
|
<%= content.presence %>
|
14
13
|
<% end %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname,
|
5
|
-
aria: object.aria
|
6
|
-
**combined_html_options) do%>
|
5
|
+
aria: object.aria) do%>
|
7
6
|
<%= content_tag(object.link ? 'a' : 'span', class: 'bread_crumb_item', href: object.link) do %>
|
8
7
|
<%= content.presence %>
|
9
8
|
<% end %>
|
@@ -1,6 +1,5 @@
|
|
1
1
|
<%= content_tag(object.tag,
|
2
|
-
|
3
|
-
**combined_html_options) do %>
|
2
|
+
object.tag == "button" ? object.options : object.link_options) do %>
|
4
3
|
<% if object.variant === "reaction" %>
|
5
4
|
<% if icon && object.valid_emoji(object.icon) %>
|
6
5
|
<%= pb_rails("flex", props:{ align: "center" }) do %>
|
@@ -34,8 +34,10 @@ module Playbook
|
|
34
34
|
default: "far"
|
35
35
|
|
36
36
|
def options
|
37
|
-
|
37
|
+
{
|
38
|
+
aria: aria,
|
38
39
|
class: classname,
|
40
|
+
data: data,
|
39
41
|
disabled: disabled,
|
40
42
|
id: id,
|
41
43
|
role: "button",
|
@@ -44,7 +46,6 @@ module Playbook
|
|
44
46
|
value: value,
|
45
47
|
form: form,
|
46
48
|
}.compact
|
47
|
-
combined_html_options.merge!(options) if combined_html_options.present?
|
48
49
|
end
|
49
50
|
|
50
51
|
def target_attribute
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<%= content_tag(:label, aria: object.aria,
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
|
-
class: object.classname
|
5
|
-
**combined_html_options
|
6
|
-
) do %>
|
4
|
+
class: object.classname) do %>
|
7
5
|
<%= content.presence || object.input %>
|
8
6
|
<% if object.indeterminate %>
|
9
7
|
<span class="pb_checkbox_indeterminate">
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
id: object.id,
|
4
4
|
data: object.data,
|
5
|
-
class: object.classname
|
6
|
-
**combined_html_options) do %>
|
5
|
+
class: object.classname) do %>
|
7
6
|
<%= pb_rails("button", props: {type: object.type, link: object.link, new_window:object.new_window, variant: object.variant, disabled: object.disabled, dark: object.dark}) do %>
|
8
7
|
<%= pb_rails("icon", props: {icon: object.icon, fixed_width: true, dark: object.dark}) %>
|
9
8
|
<% end %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname,
|
5
|
-
aria: object.aria
|
6
|
-
**combined_html_options) do %>
|
5
|
+
aria: object.aria) do %>
|
7
6
|
|
8
7
|
<%= pb_rails("flex", props: {vertical: "center", spacing: "between", cursor: "pointer"}) do %>
|
9
8
|
<%= pb_rails("flex/flex_item") do %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
id: object.id,
|
4
4
|
data: object.data,
|
5
|
-
class: object.classname
|
6
|
-
**combined_html_options) do %>
|
5
|
+
class: object.classname) do %>
|
7
6
|
<%= pb_rails("caption", props: object.caption_props) %>
|
8
7
|
|
9
8
|
<div class=<%= "pb_currency_wrapper#{object.variant_class || object.emphasized_class}" %>>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
class: object.classname,
|
4
4
|
data: object.data,
|
5
|
-
id: object.id
|
6
|
-
**combined_html_options) do %>
|
5
|
+
id: object.id) do %>
|
7
6
|
<% if object.stat_label.present? %>
|
8
7
|
<%= pb_rails("body", props: { color: "light", text: object.stat_label } ) %>
|
9
8
|
<% end %>
|
@@ -1,31 +1,11 @@
|
|
1
1
|
![date-alignment](https://github.com/powerhome/playbook/assets/92755007/094761cb-5151-4de5-a8e1-f905455c2aca)
|
2
2
|
|
3
3
|
```swift
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
typography: .title4
|
10
|
-
)
|
11
|
-
}
|
12
|
-
.frame(maxWidth: .infinity, alignment: .leading)
|
13
|
-
HStack {
|
14
|
-
PBDate(
|
15
|
-
Date().makeDate(year: 2020, month: 12, day: 25),
|
16
|
-
variant: .withIcon(isStandard: true),
|
17
|
-
typography: .title4,
|
18
|
-
iconSize: .x1
|
19
|
-
)
|
20
|
-
}
|
21
|
-
.frame(maxWidth: .infinity, alignment: .center)
|
22
|
-
HStack {
|
23
|
-
PBDate(
|
24
|
-
Date(),
|
25
|
-
variant: .short,
|
26
|
-
typography: .title4
|
27
|
-
)
|
28
|
-
}
|
29
|
-
.frame(maxWidth: .infinity, alignment: .trailing)
|
4
|
+
|
5
|
+
VStack(spacing: Spacing.small) {
|
6
|
+
PBDate(Date(), variant: .standard, typography: .title4, alignment: .leading)
|
7
|
+
PBDate(Date(), variant: .withIcon(isStandard: true), typography: .title4, iconSize: .x1, alignment: .center)
|
8
|
+
PBDate(Date(), variant: .short, typography: .title4, alignment: .trailing)
|
30
9
|
}
|
10
|
+
|
31
11
|
```
|
@@ -2,34 +2,15 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
```swift
|
5
|
+
|
5
6
|
VStack(alignment: .leading, spacing: Spacing.small) {
|
6
|
-
PBDate(
|
7
|
-
|
8
|
-
|
9
|
-
)
|
10
|
-
PBDate(
|
11
|
-
Date().makeDate(year: 2012, month: 8, day: 3),
|
12
|
-
variant: .standard
|
13
|
-
)
|
14
|
-
PBDate(
|
15
|
-
Date().makeDate(year: 2017, month: 12, day: 3),
|
16
|
-
variant: .dayDate(showYear: true)
|
17
|
-
)
|
7
|
+
PBDate(Date(), variant: .short)
|
8
|
+
PBDate(Date(), variant: .dayDate)
|
9
|
+
PBDate(Date(), variant: .standard)
|
18
10
|
Spacer()
|
19
|
-
PBDate(
|
20
|
-
|
21
|
-
|
22
|
-
typography: .title4
|
23
|
-
)
|
24
|
-
PBDate(
|
25
|
-
Date().makeDate(year: 2012, month: 8, day: 3),
|
26
|
-
variant: .standard,
|
27
|
-
typography: .title4
|
28
|
-
)
|
29
|
-
PBDate(
|
30
|
-
Date().makeDate(year: 2017, month: 12, day: 3),
|
31
|
-
variant: .dayDate(showYear: true),
|
32
|
-
typography: .title4
|
33
|
-
)
|
11
|
+
PBDate(Date(), variant: .short, typography: .title4)
|
12
|
+
PBDate(Date(), variant: .dayDate, typography: .title4)
|
13
|
+
PBDate(Date(), variant: .standard, typography: .title4)
|
34
14
|
}
|
15
|
+
|
35
16
|
```
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
class: object.classname + object.error_class,
|
4
4
|
data: object.data,
|
5
|
-
id: object.id
|
6
|
-
**combined_html_options) do %>
|
5
|
+
id: object.id) do %>
|
7
6
|
<div class="input_wrapper">
|
8
7
|
<% if content.present? %>
|
9
8
|
<%= content %>
|
@@ -81,4 +80,4 @@
|
|
81
80
|
}
|
82
81
|
})
|
83
82
|
<% end %>
|
84
|
-
<% end %>
|
83
|
+
<% end %>
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<%= content_tag(:div,
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
|
-
class: object.classname
|
5
|
-
**combined_html_options) do %>
|
4
|
+
class: object.classname) do %>
|
6
5
|
<div class="pb_date_range_inline_wrapper">
|
7
6
|
<% if object.icon == true %>
|
8
7
|
<%= pb_rails(object.text_kit, props: { tag: "span", dark: object.dark, color: object.icon_color, text: pb_rails("icon", props: { icon: "calendar-alt", fixed_width: true, size: object.size, classname: "pb_date_range_inline_icon" }) }) %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname,
|
5
|
-
aria: object.aria
|
6
|
-
**combined_html_options) do %>
|
5
|
+
aria: object.aria) do %>
|
7
6
|
|
8
7
|
<%= pb_rails("flex", props: {classname: "flex-container", vertical: "stretch"}) do %>
|
9
8
|
<%= pb_rails("body", props: {classname: "flex-item"}) do %>
|
@@ -15,4 +14,4 @@
|
|
15
14
|
<% end %>
|
16
15
|
<% end %>
|
17
16
|
|
18
|
-
<% end %>
|
17
|
+
<% end %>
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<%= content_tag(:div,
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
|
-
class: object.classname
|
5
|
-
**combined_html_options) do %>
|
4
|
+
class: object.classname) do %>
|
6
5
|
<%= pb_rails("title", props: { text: object.day_month, size: 4, dark: object.dark }) %>
|
7
6
|
<%= pb_rails("body", props: { text: object.year, size: 4, color: "light", dark: object.dark }) %>
|
8
7
|
<% end %>
|
@@ -3,8 +3,7 @@
|
|
3
3
|
aria: object.aria,
|
4
4
|
data: object.data,
|
5
5
|
id: object.id,
|
6
|
-
class: object.classname
|
7
|
-
**combined_html_options) do %>
|
6
|
+
class: object.classname) do %>
|
8
7
|
<% if object.status === "" && object.title %>
|
9
8
|
<%= pb_rails("dialog/dialog_header", props: { title: object.title, id: object.id }) %>
|
10
9
|
<% end %>
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<%= content_tag(:div,
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
|
-
aria: object.aria
|
5
|
-
**combined_html_options) do %>
|
4
|
+
aria: object.aria) do %>
|
6
5
|
<% if object.confirm_button && object.cancel_button %>
|
7
6
|
<div class="dialog-pseudo-footer"></div>
|
8
7
|
<%= pb_rails("flex", props: { classname:object.classname, spacing:"between", padding_x:"sm", padding:"sm", padding_bottom:"sm" }) do %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.sticky_header,
|
5
|
-
aria: object.aria
|
6
|
-
**combined_html_options) do %>
|
5
|
+
aria: object.aria) do %>
|
7
6
|
<%= pb_rails("flex", props: {classname:object.classname, spacing:"between", padding:"sm", align:"center"}) do %>
|
8
7
|
<%= content.presence || object.title %>
|
9
8
|
|
@@ -12,4 +11,4 @@
|
|
12
11
|
</button>
|
13
12
|
<% end %>
|
14
13
|
<%= pb_rails("section_separator") %>
|
15
|
-
<% end %>
|
14
|
+
<% end %>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
aria: object.aria,
|
3
3
|
class: object.classname,
|
4
4
|
data: object.data,
|
5
|
-
id: object.id
|
6
|
-
**combined_html_options) do %>
|
5
|
+
id: object.id) do %>
|
7
6
|
<%= pb_rails("form_group", props: {cursor: "pointer", full_width: object.full_width}) do %>
|
8
7
|
<label for="upload-<%= object.id %>" class="pb_button_kit_secondary_inline_enabled"><%= "#{object.label}" %></label>
|
9
8
|
<%= pb_rails("text_input", props: {
|