playbook_ui 14.18.0.pre.alpha.revert4567revert4553PLAY2056ATcolbordercolors7469 → 14.18.0.pre.rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +3 -23
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +3 -67
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +2 -1
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx +19 -29
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +143 -365
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -14
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +3 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/index.js +0 -7
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +2 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +2 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +2 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +1 -39
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +0 -4
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +1 -9
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +0 -14
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +45 -19
- data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_copy_button/index.js +20 -46
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +0 -12
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -12
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +1 -50
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +1 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_rails.md +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_range_limit.md +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_react.md +1 -5
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.tsx +0 -10
- data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -10
- data/app/pb_kits/playbook/pb_dialog/dialog.rb +0 -2
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dialog/index.js +14 -106
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_draggable/draggable.rb +1 -9
- data/app/pb_kits/playbook/pb_draggable/index.js +142 -139
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +1 -4
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +3 -23
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +6 -39
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
- data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
- data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -83
- data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +7 -39
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +0 -13
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +1 -3
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +1 -8
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -3
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +0 -19
- data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_popover/index.ts +1 -13
- data/app/pb_kits/playbook/pb_popover/popover.rb +0 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_error.jsx +2 -7
- data/app/pb_kits/playbook/pb_table/_table.tsx +2 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -3
- data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -13
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx +1 -9
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_text_input/inputMask.ts +1 -8
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx +1 -7
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.jsx +2 -6
- data/dist/chunks/_typeahead-C2GOKWtm.js +22 -0
- data/dist/chunks/_weekday_stacked-CFGTPT0O.js +45 -0
- data/dist/chunks/lib-BGzBzFZX.js +29 -0
- data/dist/chunks/{pb_form_validation-BWjy4bFn.js → pb_form_validation-BvNy9Bd6.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +2 -2
- data/dist/playbook-doc.js +1 -19
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +2 -2
- metadata +8 -71
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx +0 -80
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +0 -58
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx +0 -66
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md +0 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +0 -97
- data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +0 -53
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.html.erb +0 -28
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.jsx +0 -42
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.md +0 -1
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +0 -54
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +0 -3
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook_rails.html.erb +0 -14
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook_rails.md +0 -3
- data/app/pb_kits/playbook/pb_copy_button/usePBCopy.ts +0 -45
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx +0 -34
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.md +0 -14
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb +0 -20
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md +0 -14
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames.html.erb +0 -117
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames_rails.md +0 -9
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb +0 -43
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.html.erb +0 -55
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb +0 -42
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md +0 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb +0 -41
- data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +0 -30
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/gaugeTheme.ts +0 -85
- data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +0 -52
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -110
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.jsx +0 -49
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.md +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.jsx +0 -81
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.md +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.html.erb +0 -10
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.jsx +0 -20
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.md +0 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +0 -46
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md +0 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.jsx +0 -94
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.md +0 -1
- data/dist/chunks/_typeahead-D8CsVBZO.js +0 -22
- data/dist/chunks/_weekday_stacked-D3oLTSkH.js +0 -45
- data/dist/chunks/lib-BmTAc7Nc.js +0 -29
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_react.md → _draggable_drop_zones.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_colors_react.md → _draggable_drop_zones_colors.md} +0 -0
@@ -1,110 +0,0 @@
|
|
1
|
-
import colors from '../tokens/exports/_colors.module.scss'
|
2
|
-
import typography from '../tokens/exports/_typography.module.scss'
|
3
|
-
|
4
|
-
const lineGraphTheme = {
|
5
|
-
title: {
|
6
|
-
text: "",
|
7
|
-
style: {
|
8
|
-
color: colors.text_lt_default,
|
9
|
-
fontFamily: typography.font_family_base,
|
10
|
-
fontWeight: typography.bold,
|
11
|
-
fontSize: typography.heading_3,
|
12
|
-
},
|
13
|
-
},
|
14
|
-
subtitle: {
|
15
|
-
text: "" ,
|
16
|
-
style: {
|
17
|
-
fontFamily: typography.font_family_base,
|
18
|
-
color: colors.text_lt_light,
|
19
|
-
fontWeight: typography.regular,
|
20
|
-
fontSize: typography.text_base,
|
21
|
-
},
|
22
|
-
},
|
23
|
-
chart: {
|
24
|
-
type: "line",
|
25
|
-
},
|
26
|
-
tooltip: {
|
27
|
-
backgroundColor: {
|
28
|
-
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
29
|
-
stops: [
|
30
|
-
[0, colors.bg_dark],
|
31
|
-
[1, colors.bg_dark],
|
32
|
-
],
|
33
|
-
},
|
34
|
-
followPointer: true,
|
35
|
-
shadow: false,
|
36
|
-
borderWidth: 0,
|
37
|
-
borderRadius: 10,
|
38
|
-
style: {
|
39
|
-
fontFamily: typography.font_family_base,
|
40
|
-
color: colors.text_dk_default,
|
41
|
-
fontWeight: typography.regular,
|
42
|
-
fontSize: typography.text_smaller,
|
43
|
-
},
|
44
|
-
},
|
45
|
-
plotOptions: {
|
46
|
-
line: {
|
47
|
-
dataLabels: {
|
48
|
-
enabled: false,
|
49
|
-
},
|
50
|
-
},
|
51
|
-
},
|
52
|
-
credits: { enabled: false },
|
53
|
-
legend: { enabled: false },
|
54
|
-
colors: [
|
55
|
-
colors.data_1,
|
56
|
-
colors.data_2,
|
57
|
-
colors.data_3,
|
58
|
-
colors.data_4,
|
59
|
-
colors.data_5,
|
60
|
-
colors.data_6,
|
61
|
-
colors.data_7,
|
62
|
-
],
|
63
|
-
xAxis: {
|
64
|
-
gridLineWidth: 0,
|
65
|
-
lineColor: colors.border_light,
|
66
|
-
tickColor: colors.border_light,
|
67
|
-
labels: {
|
68
|
-
style: {
|
69
|
-
fontFamily: typography.font_family_base,
|
70
|
-
color: colors.text_lt_lighter,
|
71
|
-
fontWeight: typography.bold,
|
72
|
-
fontSize: typography.text_smaller,
|
73
|
-
},
|
74
|
-
},
|
75
|
-
title: {
|
76
|
-
style: {
|
77
|
-
color: colors.text_lt_default,
|
78
|
-
fontFamily: typography.font_family_base,
|
79
|
-
fontWeight: typography.regular,
|
80
|
-
fontSize: typography.heading_4,
|
81
|
-
},
|
82
|
-
},
|
83
|
-
},
|
84
|
-
yAxis: {
|
85
|
-
alternateGridColor: undefined as string | undefined,
|
86
|
-
minorTickInterval: null as number | null,
|
87
|
-
gridLineColor: colors.border_light,
|
88
|
-
minorGridLineColor: colors.border_light,
|
89
|
-
lineWidth: 0,
|
90
|
-
tickWidth: 0,
|
91
|
-
labels: {
|
92
|
-
style: {
|
93
|
-
fontFamily: typography.font_family_base,
|
94
|
-
color: colors.text_lt_lighter,
|
95
|
-
fontWeight: typography.bold,
|
96
|
-
fontSize: typography.text_smaller,
|
97
|
-
},
|
98
|
-
},
|
99
|
-
title: {
|
100
|
-
style: {
|
101
|
-
fontFamily: typography.font_family_base,
|
102
|
-
color: colors.text_lt_lighter,
|
103
|
-
fontWeight: typography.bold,
|
104
|
-
fontSize: typography.text_smaller,
|
105
|
-
},
|
106
|
-
},
|
107
|
-
},
|
108
|
-
}
|
109
|
-
|
110
|
-
export default lineGraphTheme;
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Image from '../../pb_image/_image'
|
5
|
-
import Flex from '../../pb_flex/_flex'
|
6
|
-
|
7
|
-
const OverlayColor = () => (
|
8
|
-
<Flex
|
9
|
-
justify="around"
|
10
|
-
wrap
|
11
|
-
>
|
12
|
-
<Overlay
|
13
|
-
color="black"
|
14
|
-
marginBottom="xxs"
|
15
|
-
>
|
16
|
-
<Image
|
17
|
-
alt="picture of a misty forest"
|
18
|
-
display="block"
|
19
|
-
size="xl"
|
20
|
-
url="https://unsplash.it/500/400/?image=634"
|
21
|
-
/>
|
22
|
-
</Overlay>
|
23
|
-
<Overlay
|
24
|
-
color="black"
|
25
|
-
gradient={false}
|
26
|
-
marginBottom="xxs"
|
27
|
-
opacity="opacity_4"
|
28
|
-
>
|
29
|
-
<Image
|
30
|
-
alt="picture of a misty forest"
|
31
|
-
display="block"
|
32
|
-
size="xl"
|
33
|
-
url="https://unsplash.it/500/400/?image=634"
|
34
|
-
/>
|
35
|
-
</Overlay>
|
36
|
-
<Overlay
|
37
|
-
color="error"
|
38
|
-
marginBottom="xxs"
|
39
|
-
>
|
40
|
-
<Image
|
41
|
-
alt="picture of a misty forest"
|
42
|
-
display="block"
|
43
|
-
size="xl"
|
44
|
-
url="https://unsplash.it/500/400/?image=634"
|
45
|
-
/>
|
46
|
-
</Overlay>
|
47
|
-
<Overlay
|
48
|
-
color="error"
|
49
|
-
gradient={false}
|
50
|
-
marginBottom="xxs"
|
51
|
-
opacity="opacity_4"
|
52
|
-
>
|
53
|
-
<Image
|
54
|
-
alt="picture of a misty forest"
|
55
|
-
display="block"
|
56
|
-
size="xl"
|
57
|
-
url="https://unsplash.it/500/400/?image=634"
|
58
|
-
/>
|
59
|
-
</Overlay>
|
60
|
-
</Flex>
|
61
|
-
)
|
62
|
-
|
63
|
-
export default OverlayColor
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The `color` prop is used to change the color of the solid or gradient mask. Gradient overlays always start opaque and fade to transparent.
|
2
|
-
|
3
|
-
NOTE: Images are set to `display: block` to remove the default inline spacing caused by line height. This ensures the image fully fills the container without unexpected gaps.
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Overlay from '../../pb_overlay/_overlay'
|
3
|
-
import Button from '../../pb_button/_button'
|
4
|
-
import FixedConfirmationToast from '../../pb_fixed_confirmation_toast/_fixed_confirmation_toast'
|
5
|
-
|
6
|
-
const OverlayFullscreenBackground = () => {
|
7
|
-
const [openBackground, setOpenBackground] = useState(false)
|
8
|
-
|
9
|
-
const handleClickBackground = () => {
|
10
|
-
setOpenBackground(true)
|
11
|
-
}
|
12
|
-
|
13
|
-
const handleCloseBackground = () => {
|
14
|
-
setOpenBackground(false)
|
15
|
-
}
|
16
|
-
|
17
|
-
return (
|
18
|
-
<>
|
19
|
-
<div>
|
20
|
-
<Button
|
21
|
-
onClick={handleClickBackground}
|
22
|
-
text="Background Dark"
|
23
|
-
variant="secondary"
|
24
|
-
/>
|
25
|
-
|
26
|
-
{openBackground && (
|
27
|
-
<Overlay
|
28
|
-
color="bg_dark"
|
29
|
-
fullScreen
|
30
|
-
gradient={false}
|
31
|
-
opacity="opacity_4"
|
32
|
-
>
|
33
|
-
<FixedConfirmationToast
|
34
|
-
closeable
|
35
|
-
horizontal='center'
|
36
|
-
onClose={handleCloseBackground}
|
37
|
-
open={openBackground}
|
38
|
-
status="tip"
|
39
|
-
text='Fullscreen Overlay with color set to Background Dark.'
|
40
|
-
vertical='top'
|
41
|
-
/>
|
42
|
-
</Overlay>
|
43
|
-
)}
|
44
|
-
</div>
|
45
|
-
</>
|
46
|
-
)
|
47
|
-
}
|
48
|
-
|
49
|
-
export default OverlayFullscreenBackground
|
@@ -1 +0,0 @@
|
|
1
|
-
The `fullScreen` prop also allows you to use `color` along with it.
|
@@ -1,81 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Button from '../../pb_button/_button'
|
5
|
-
import FixedConfirmationToast from '../../pb_fixed_confirmation_toast/_fixed_confirmation_toast'
|
6
|
-
|
7
|
-
const OverlayFullscreenOpacity = () => {
|
8
|
-
const [openOpacity40, setOpenOpacity40] = useState(false)
|
9
|
-
const [openOpacity80, setOpenOpacity80] = useState(false)
|
10
|
-
|
11
|
-
const handleClickOpacity40 = () => {
|
12
|
-
setOpenOpacity40(true)
|
13
|
-
}
|
14
|
-
const handleCloseOpacity40 = () => {
|
15
|
-
setOpenOpacity40(false)
|
16
|
-
}
|
17
|
-
|
18
|
-
const handleClickOpacity80 = () => {
|
19
|
-
setOpenOpacity80(true)
|
20
|
-
}
|
21
|
-
const handleCloseOpacity80 = () => {
|
22
|
-
setOpenOpacity80(false)
|
23
|
-
}
|
24
|
-
|
25
|
-
return (
|
26
|
-
<>
|
27
|
-
<div>
|
28
|
-
<Button
|
29
|
-
onClick={handleClickOpacity40}
|
30
|
-
text="40% Opacity"
|
31
|
-
variant="secondary"
|
32
|
-
/>
|
33
|
-
{' '}
|
34
|
-
<Button
|
35
|
-
onClick={handleClickOpacity80}
|
36
|
-
text="80% Opacity"
|
37
|
-
variant="secondary"
|
38
|
-
/>
|
39
|
-
|
40
|
-
{openOpacity40 && (
|
41
|
-
<Overlay
|
42
|
-
fullScreen
|
43
|
-
gradient={false}
|
44
|
-
opacity="opacity_4"
|
45
|
-
>
|
46
|
-
<FixedConfirmationToast
|
47
|
-
closeable
|
48
|
-
horizontal='center'
|
49
|
-
onClose={handleCloseOpacity40}
|
50
|
-
open={openOpacity40}
|
51
|
-
status="tip"
|
52
|
-
text='Fullscreen Overlay at 40% Opacity.'
|
53
|
-
vertical='top'
|
54
|
-
/>
|
55
|
-
</Overlay>
|
56
|
-
)}
|
57
|
-
|
58
|
-
{openOpacity80 && (
|
59
|
-
<Overlay
|
60
|
-
fullScreen
|
61
|
-
gradient={false}
|
62
|
-
opacity="opacity_8"
|
63
|
-
>
|
64
|
-
<FixedConfirmationToast
|
65
|
-
closeable
|
66
|
-
display="block"
|
67
|
-
horizontal='center'
|
68
|
-
onClose={handleCloseOpacity80}
|
69
|
-
open={openOpacity80}
|
70
|
-
status="tip"
|
71
|
-
text='Fullscreen Overlay at 80% Opacity.'
|
72
|
-
vertical='top'
|
73
|
-
/>
|
74
|
-
</Overlay>
|
75
|
-
)}
|
76
|
-
</div>
|
77
|
-
</>
|
78
|
-
)
|
79
|
-
}
|
80
|
-
|
81
|
-
export default OverlayFullscreenOpacity
|
@@ -1 +0,0 @@
|
|
1
|
-
To enable the overlay to cover the full size of your screen, you can pass the `fullScreen` prop. You can also pass an opacity along with it.
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Image from '../../pb_image/_image'
|
5
|
-
import Flex from '../../pb_flex/_flex'
|
6
|
-
|
7
|
-
const OverlayGradientOpacity = () => (
|
8
|
-
<Flex
|
9
|
-
justify="around"
|
10
|
-
wrap
|
11
|
-
>
|
12
|
-
<Overlay
|
13
|
-
gradient={false}
|
14
|
-
marginBottom="xxs"
|
15
|
-
opacity="opacity_2"
|
16
|
-
>
|
17
|
-
<Image
|
18
|
-
alt="picture of a misty forest"
|
19
|
-
display="block"
|
20
|
-
maxWidth="100%"
|
21
|
-
url="https://unsplash.it/500/400/?image=634"
|
22
|
-
/>
|
23
|
-
</Overlay>
|
24
|
-
<Overlay
|
25
|
-
gradient={false}
|
26
|
-
marginBottom="xxs"
|
27
|
-
opacity="opacity_8"
|
28
|
-
>
|
29
|
-
<Image
|
30
|
-
alt="picture of a misty forest"
|
31
|
-
display="block"
|
32
|
-
maxWidth="100%"
|
33
|
-
url="https://unsplash.it/500/400/?image=634"
|
34
|
-
/>
|
35
|
-
</Overlay>
|
36
|
-
</Flex>
|
37
|
-
)
|
38
|
-
|
39
|
-
export default OverlayGradientOpacity
|
@@ -1 +0,0 @@
|
|
1
|
-
By default, the overlay is rendered as a gradient. Setting the `gradient` prop to `false` renders the overlay as a solid color. You can adjust the transparency of the solid overlay by using the `opacity` prop.
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Table from '../../pb_table/_table'
|
5
|
-
|
6
|
-
|
7
|
-
const TableExample = () => {
|
8
|
-
return (
|
9
|
-
<Table size="sm">
|
10
|
-
<thead>
|
11
|
-
<tr>
|
12
|
-
<th>{'Column 1'}</th>
|
13
|
-
<th>{'Column 2'}</th>
|
14
|
-
<th>{'Column 3'}</th>
|
15
|
-
<th>{'Column 4'}</th>
|
16
|
-
<th>{'Column 5'}</th>
|
17
|
-
</tr>
|
18
|
-
</thead>
|
19
|
-
<tbody>
|
20
|
-
{Array.from({ length: 7 }, (_, index) => (
|
21
|
-
<tr key={index}>
|
22
|
-
{Array.from({ length: 5 }, (_, columnIndex) => (
|
23
|
-
<td key={columnIndex}>{`Value ${columnIndex + 1}`}</td>
|
24
|
-
))}
|
25
|
-
</tr>
|
26
|
-
))}
|
27
|
-
</tbody>
|
28
|
-
</Table>
|
29
|
-
)
|
30
|
-
}
|
31
|
-
|
32
|
-
const OverlayLayout = () => (
|
33
|
-
<>
|
34
|
-
<Overlay layout={{ y: "xl" }}>
|
35
|
-
<TableExample />
|
36
|
-
</Overlay>
|
37
|
-
</>
|
38
|
-
)
|
39
|
-
|
40
|
-
export default OverlayLayout
|
@@ -1,5 +0,0 @@
|
|
1
|
-
The optional `layout` prop accepts the `position` and `size` of the overlay as a key:value pair.
|
2
|
-
|
3
|
-
The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
|
4
|
-
|
5
|
-
The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import PhoneNumberInput from '../_phone_number_input'
|
3
|
-
|
4
|
-
const PhoneNumberInputCountrySearch = (props) => (
|
5
|
-
<>
|
6
|
-
<PhoneNumberInput
|
7
|
-
countrySearch
|
8
|
-
id='country-search'
|
9
|
-
{...props}
|
10
|
-
/>
|
11
|
-
<PhoneNumberInput
|
12
|
-
countrySearch
|
13
|
-
id='country-search-limited'
|
14
|
-
onlyCountries={["br", "us", "ph", "gb"]}
|
15
|
-
{...props}
|
16
|
-
/>
|
17
|
-
</>
|
18
|
-
)
|
19
|
-
|
20
|
-
export default PhoneNumberInputCountrySearch
|
@@ -1 +0,0 @@
|
|
1
|
-
Set `country_search` / `countrySearch` to true to allow users to search for a specific Country within the dropdown. If the range of countries has been limited, only the selected countries will be searchable.
|
@@ -1,46 +0,0 @@
|
|
1
|
-
<%= pb_rails("flex", props: {
|
2
|
-
dark: true,
|
3
|
-
orientation: "row",
|
4
|
-
vertical: "center",
|
5
|
-
margin_bottom: "md"
|
6
|
-
}) do %>
|
7
|
-
<%= pb_rails("body", props: { text: "Click info for more details" }) %>
|
8
|
-
|
9
|
-
<%= pb_rails("circle_icon_button", props: {
|
10
|
-
variant: "secondary",
|
11
|
-
icon: "info",
|
12
|
-
id: "append-to-popover-1"
|
13
|
-
}) %>
|
14
|
-
<%= pb_rails("popover", props: {
|
15
|
-
trigger_element_id: "append-to-popover-1",
|
16
|
-
tooltip_id: "append-to-tooltip-1",
|
17
|
-
offset: true,
|
18
|
-
position: "top",
|
19
|
-
append_to: "parent",
|
20
|
-
}) do %>
|
21
|
-
I'm a popover. I have been appended to my parent element.
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
|
25
|
-
<%= pb_rails("flex", props: {
|
26
|
-
dark: true,
|
27
|
-
orientation: "row",
|
28
|
-
vertical: "center"
|
29
|
-
}) do %>
|
30
|
-
<%= pb_rails("body", props: { text: "Click info for more details" }) %>
|
31
|
-
|
32
|
-
<%= pb_rails("circle_icon_button", props: {
|
33
|
-
variant: "secondary",
|
34
|
-
icon: "info",
|
35
|
-
id: "append-to-popover-2"
|
36
|
-
}) %>
|
37
|
-
<%= pb_rails("popover", props: {
|
38
|
-
trigger_element_id: "append-to-popover-2",
|
39
|
-
tooltip_id: "append-to-tooltip-2",
|
40
|
-
offset: true,
|
41
|
-
position: "top",
|
42
|
-
append_to: ".kit-show-wrapper",
|
43
|
-
}) do %>
|
44
|
-
I'm a popover. I have been appended to the .kit-show-wrapper.
|
45
|
-
<% end %>
|
46
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
By default, the popover tooltip attaches to the `<body>`. To attach it elsewhere, use the `append_to` prop. Set it to `"parent"` to place the tooltip inside its parent element, or pass any CSS selector (`#id` or `.class`) to specify a custom container.
|
@@ -1,94 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
|
3
|
-
import TextInput from '../../pb_text_input/_text_input'
|
4
|
-
|
5
|
-
const TextInputSanitize = (props) => {
|
6
|
-
const ref = React.createRef()
|
7
|
-
|
8
|
-
const [currency, setCurrency] = useState('')
|
9
|
-
const [sanitizedCurrency, setSanitizedCurrency] = useState('')
|
10
|
-
const handleOnChangeSanitizeCurrency = ({ target }, sanitizedValue) => {
|
11
|
-
setCurrency(target.value)
|
12
|
-
setSanitizedCurrency(sanitizedValue);
|
13
|
-
}
|
14
|
-
|
15
|
-
const [creditCard, setCreditCard] = useState('')
|
16
|
-
const [sanitizedCreditCard, setSanitizedCreditCard] = useState('')
|
17
|
-
const handleOnChangeSanitizeCC = ({ target }, sanitizedValue) => {
|
18
|
-
setCreditCard(target.value)
|
19
|
-
setSanitizedCreditCard(sanitizedValue);
|
20
|
-
}
|
21
|
-
|
22
|
-
const [ssn, setSSN] = useState('')
|
23
|
-
const [sanitizedSSN, setSanitizedSSN] = useState('')
|
24
|
-
const handleOnChangeSanitizeSSN = ({ target }, sanitizedValue) => {
|
25
|
-
setSSN(target.value)
|
26
|
-
setSanitizedSSN(sanitizedValue);
|
27
|
-
}
|
28
|
-
|
29
|
-
return (
|
30
|
-
<div>
|
31
|
-
<TextInput
|
32
|
-
label="Currency"
|
33
|
-
mask="currency"
|
34
|
-
onChange={handleOnChangeSanitizeCurrency}
|
35
|
-
placeholder="Enter Amount"
|
36
|
-
ref={ref}
|
37
|
-
value={currency}
|
38
|
-
{...props}
|
39
|
-
/>
|
40
|
-
|
41
|
-
{currency !== "" && (
|
42
|
-
<React.Fragment>{`The masked value is: ${currency}`}</React.Fragment>
|
43
|
-
)}
|
44
|
-
<br />
|
45
|
-
{sanitizedCurrency !== "" && (
|
46
|
-
<React.Fragment>{`The sanitized value is: ${sanitizedCurrency}`}</React.Fragment>
|
47
|
-
)}
|
48
|
-
|
49
|
-
<br />
|
50
|
-
<br />
|
51
|
-
|
52
|
-
<TextInput
|
53
|
-
label="Credit Card"
|
54
|
-
mask="creditCard"
|
55
|
-
onChange={handleOnChangeSanitizeCC}
|
56
|
-
placeholder="Enter Card"
|
57
|
-
ref={ref}
|
58
|
-
value={creditCard}
|
59
|
-
{...props}
|
60
|
-
/>
|
61
|
-
|
62
|
-
{creditCard !== "" && (
|
63
|
-
<React.Fragment>{`The masked value is: ${creditCard}`}</React.Fragment>
|
64
|
-
)}
|
65
|
-
<br />
|
66
|
-
{sanitizedCreditCard !== "" && (
|
67
|
-
<React.Fragment>{`The sanitized value is: ${sanitizedCreditCard}`}</React.Fragment>
|
68
|
-
)}
|
69
|
-
|
70
|
-
<br />
|
71
|
-
<br />
|
72
|
-
|
73
|
-
<TextInput
|
74
|
-
label="SSN"
|
75
|
-
mask="ssn"
|
76
|
-
onChange={handleOnChangeSanitizeSSN}
|
77
|
-
placeholder="Enter Amount"
|
78
|
-
ref={ref}
|
79
|
-
value={ssn}
|
80
|
-
{...props}
|
81
|
-
/>
|
82
|
-
|
83
|
-
{ssn !== "" && (
|
84
|
-
<React.Fragment>{`The masked value is: ${ssn}`}</React.Fragment>
|
85
|
-
)}
|
86
|
-
<br />
|
87
|
-
{sanitizedSSN !== "" && (
|
88
|
-
<React.Fragment>{`The sanitized value is: ${sanitizedSSN}`}</React.Fragment>
|
89
|
-
)}
|
90
|
-
</div>
|
91
|
-
)
|
92
|
-
}
|
93
|
-
|
94
|
-
export default TextInputSanitize
|
@@ -1 +0,0 @@
|
|
1
|
-
When utilizing the Mask prop, you can retrieve the sanitized value of your input through an event handler that targets `sanitizedValue`.
|