playbook_ui_docs 16.2.0.pre.alpha.play278114406 → 16.2.0.pre.alpha.play280714580
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_caption/docs/_caption_colors.html.erb +6 -4
- data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +14 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_positions.md +1 -0
- data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb +6 -24
- data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +35 -33
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md +3 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.jsx +63 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.md +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +2 -0
- data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +31 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb +24 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx +33 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md +3 -0
- data/app/pb_kits/playbook/pb_select/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_select/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.jsx +152 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.md +17 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.html.erb +121 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.md +17 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +11 -13
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.html.erb +10 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.jsx +27 -0
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_textarea/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_title/docs/_title_colors.html.erb +2 -0
- data/app/pb_kits/playbook/pb_title/docs/_title_colors.jsx +14 -0
- metadata +13 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03f9cb4861ed4fd14f1a60b824c2ba800bbf07572d533e6996784c1784fa4596
|
|
4
|
+
data.tar.gz: 2698fb898f399af3ac6756a42ea6f0b7adfe4bd951b4604650e3f54458278e97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b5566e2f218aceae841f647fec0646dd6245ba11a8e673721dd999abee187bf4dec986f1a949fc08ff1c686979881b78dc3efe5eced5e5a835e3b0cd52a2f2d
|
|
7
|
+
data.tar.gz: ac5378aea25da0465af27a7084cd1fef7683346d8d9c0e2b6dac5053687227d29dd314ff840f3862292d879781923cbe85b04ad0824bf8f67c090abf949848ff
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
<%= pb_rails("caption", props: { text: "
|
|
2
|
-
<%= pb_rails("caption", props: { text: "
|
|
3
|
-
<%= pb_rails("caption", props: { text: "
|
|
4
|
-
<%= pb_rails("caption", props: { text: "
|
|
1
|
+
<%= pb_rails("caption", props: { text: "Caption light" }) %>
|
|
2
|
+
<%= pb_rails("caption", props: { text: "Caption default", color: "default" }) %>
|
|
3
|
+
<%= pb_rails("caption", props: { text: "Caption lighter", color: "lighter" }) %>
|
|
4
|
+
<%= pb_rails("caption", props: { text: "Caption success", color: "success" }) %>
|
|
5
|
+
<%= pb_rails("caption", props: { text: "Caption error", color: "error" }) %>
|
|
6
|
+
<%= pb_rails("caption", props: { text: "Caption link", color: "link" }) %>
|
|
@@ -4,23 +4,33 @@ import Caption from "../../pb_caption/_caption"
|
|
|
4
4
|
const CaptionColors = (props) => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
|
+
<Caption
|
|
8
|
+
text="Caption light"
|
|
9
|
+
{...props}
|
|
10
|
+
/>
|
|
11
|
+
<Caption
|
|
12
|
+
color="default"
|
|
13
|
+
text="Caption default"
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
7
16
|
<Caption
|
|
8
|
-
|
|
17
|
+
color="lighter"
|
|
18
|
+
text="Caption lighter"
|
|
9
19
|
{...props}
|
|
10
20
|
/>
|
|
11
21
|
<Caption
|
|
12
22
|
color="success"
|
|
13
|
-
text="
|
|
23
|
+
text="Caption success"
|
|
14
24
|
{...props}
|
|
15
25
|
/>
|
|
16
26
|
<Caption
|
|
17
27
|
color="error"
|
|
18
|
-
text="
|
|
28
|
+
text="Caption error"
|
|
19
29
|
{...props}
|
|
20
30
|
/>
|
|
21
31
|
<Caption
|
|
22
32
|
color="link"
|
|
23
|
-
text="
|
|
33
|
+
text="Caption link"
|
|
24
34
|
{...props}
|
|
25
35
|
/>
|
|
26
36
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Datepicker supports `position` options from [Flatpickr Options Documentation](https://flatpickr.js.org/options/). There are multiple positioning options to choose from.
|
|
2
2
|
|
|
3
3
|
**Note:** In order for the above prop to work properly, you must also send `staticPosition={false}` to your Datepicker kit instance.
|
|
4
|
+
If you are using the Datepicker within a Dialog, you cannot use the `staticPosition`/`static_position` prop.
|
|
4
5
|
|
|
5
6
|
#### Affix Datepicker Upon Scrolling
|
|
6
7
|
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
<%= pb_rails("detail", props: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}) %>
|
|
5
|
-
|
|
6
|
-
<%= pb_rails("detail", props: {
|
|
7
|
-
text: "I am a detail kit",
|
|
8
|
-
color: "lighter"
|
|
9
|
-
}) %>
|
|
10
|
-
|
|
11
|
-
<%= pb_rails("detail", props: {
|
|
12
|
-
text: "I am a detail kit",
|
|
13
|
-
color: "link"
|
|
14
|
-
}) %>
|
|
15
|
-
|
|
16
|
-
<%= pb_rails("detail", props: {
|
|
17
|
-
text: "I am a detail kit",
|
|
18
|
-
color: "error"
|
|
19
|
-
}) %>
|
|
20
|
-
|
|
21
|
-
<%= pb_rails("detail", props: {
|
|
22
|
-
text: "I am a detail kit",
|
|
23
|
-
color: "success"
|
|
24
|
-
}) %>
|
|
1
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit" }) %>
|
|
2
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit", color: "default" }) %>
|
|
3
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit", color: "lighter" }) %>
|
|
4
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit", color: "link" }) %>
|
|
5
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit", color: "error" }) %>
|
|
6
|
+
<%= pb_rails("detail", props: { text: "I am a detail kit", color: "success" }) %>
|
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Detail from '../../pb_detail/_detail'
|
|
3
3
|
|
|
4
|
-
const DetailColors = (props) =>
|
|
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
|
-
|
|
4
|
+
const DetailColors = (props) => {
|
|
5
|
+
return (
|
|
6
|
+
<div>
|
|
7
|
+
<Detail
|
|
8
|
+
text="I am a detail kit"
|
|
9
|
+
{...props}
|
|
10
|
+
/>
|
|
11
|
+
<Detail
|
|
12
|
+
color="default"
|
|
13
|
+
text="I am a detail kit"
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
16
|
+
<Detail
|
|
17
|
+
color="lighter"
|
|
18
|
+
text="I am a detail kit"
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
21
|
+
<Detail
|
|
22
|
+
color="link"
|
|
23
|
+
text="I am a detail kit"
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
26
|
+
<Detail
|
|
27
|
+
color="error"
|
|
28
|
+
text="I am a detail kit"
|
|
29
|
+
{...props}
|
|
30
|
+
/>
|
|
31
|
+
<Detail
|
|
32
|
+
color="success"
|
|
33
|
+
text="I am a detail kit"
|
|
34
|
+
{...props}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
37
39
|
|
|
38
40
|
export default DetailColors
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
The dialog kit also supports customizing your dialog with a [compound component](https://kentcdodds.com/blog/compound-components-with-react-hooks) structure.
|
|
2
2
|
This allows for greater flexibility and more complex dialogs.
|
|
3
3
|
|
|
4
|
-
For the Rails version, when using the kit as a compound component it is necessary to pass the same value as the id for the dialog, the dialog header and the dialog footer in order for the opening and closing of the dialog to function as expected.
|
|
4
|
+
For the Rails version, when using the kit as a compound component it is necessary to pass the same value as the id for the dialog, the dialog header and the dialog footer in order for the opening and closing of the dialog to function as expected.
|
|
5
|
+
|
|
6
|
+
If you are using the datepicker within the Rails dialog, do not use the `static_position` prop on the datepicker.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Dropdown from '../../pb_dropdown/_dropdown'
|
|
3
|
+
import Caption from '../../pb_caption/_caption'
|
|
4
|
+
|
|
5
|
+
const DropdownClosingOptions = (props) => {
|
|
6
|
+
const options = [
|
|
7
|
+
{
|
|
8
|
+
label: "United States",
|
|
9
|
+
value: "unitedStates",
|
|
10
|
+
id: "us"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: "Canada",
|
|
14
|
+
value: "canada",
|
|
15
|
+
id: "ca"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: "Pakistan",
|
|
19
|
+
value: "pakistan",
|
|
20
|
+
id: "pk"
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<>
|
|
26
|
+
<Caption
|
|
27
|
+
marginBottom="xs"
|
|
28
|
+
text="Any"
|
|
29
|
+
/>
|
|
30
|
+
<Dropdown
|
|
31
|
+
closeOnClick='any'
|
|
32
|
+
options={options}
|
|
33
|
+
{...props}
|
|
34
|
+
/>
|
|
35
|
+
|
|
36
|
+
<br />
|
|
37
|
+
|
|
38
|
+
<Caption
|
|
39
|
+
marginBottom="xs"
|
|
40
|
+
text="Outside"
|
|
41
|
+
/>
|
|
42
|
+
<Dropdown
|
|
43
|
+
closeOnClick='outside'
|
|
44
|
+
options={options}
|
|
45
|
+
{...props}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
<br />
|
|
49
|
+
|
|
50
|
+
<Caption
|
|
51
|
+
marginBottom="xs"
|
|
52
|
+
text="Inside"
|
|
53
|
+
/>
|
|
54
|
+
<Dropdown
|
|
55
|
+
closeOnClick='inside'
|
|
56
|
+
options={options}
|
|
57
|
+
{...props}
|
|
58
|
+
/>
|
|
59
|
+
</>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default DropdownClosingOptions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The `closeOnClick` prop allows you to control when the Dropdown closes in response to click interactions. The value `any` reflects the default behavior, where the dropdown will close after any click. Set it to `outside` to ensure interactive elements as dropdown options are able to be interacted with or modified. Set it to `inside` for a dropdown that only closes when the input or dropdown menu is clicked.
|
|
@@ -62,6 +62,7 @@ examples:
|
|
|
62
62
|
- dropdown_with_constrain_height: Constrain Height
|
|
63
63
|
- dropdown_separators_hidden: Separators Hidden
|
|
64
64
|
- dropdown_with_external_control: useDropdown Hook
|
|
65
|
+
- dropdown_closing_options: Closing Options
|
|
65
66
|
- dropdown_quickpick: Quick Pick Variant
|
|
66
67
|
- dropdown_quickpick_range_end: Quick Pick Variant (Range Ends Today)
|
|
67
68
|
- dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
|
|
@@ -31,4 +31,5 @@ export { default as DropdownQuickpickWithDatePickers } from './_dropdown_quickpi
|
|
|
31
31
|
export { default as DropdownQuickpickCustom } from './_dropdown_quickpick_custom.jsx'
|
|
32
32
|
export { default as DropdownWithClearable } from './_dropdown_with_clearable.jsx'
|
|
33
33
|
export { default as DropdownWithConstrainHeight } from './_dropdown_with_constrain_height.jsx'
|
|
34
|
+
export { default as DropdownClosingOptions } from './_dropdown_closing_options.jsx'
|
|
34
35
|
export { default as DropdownRequiredIndicator } from "./_dropdown_required_indicator.jsx";
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
<%= form.typeahead :example_typeahead, props: { data: { typeahead_example1: true, user: {} }, label: true, placeholder: "Search for a user" } %>
|
|
93
93
|
<%= form.text_field :example_text_field, props: { label: true } %>
|
|
94
94
|
<%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label" } %>
|
|
95
|
-
<%= form.phone_number_field :example_phone_number_field, props: { label:
|
|
95
|
+
<%= form.phone_number_field :example_phone_number_field, props: { label: true, hidden_inputs: true} %>
|
|
96
|
+
<%= form.intl_telephone :example_intl_telephone, props: { label: true, hidden_inputs: true } %>
|
|
96
97
|
<%= form.email_field :example_email_field, props: { label: true } %>
|
|
97
98
|
<%= form.number_field :example_number_field, props: { label: true } %>
|
|
98
99
|
<%= form.search_field :example_search_field, props: { label: true } %>
|
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
<%= form.time_picker :example_time_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
147
147
|
<%= form.date_picker :example_date_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
148
148
|
<%= form.date_picker :example_date_picker_required_indicator_custom, props: { label: "Custom Date Picker Label", required: true, required_indicator: true } %>
|
|
149
|
+
<%= form.select :example_select_required_indicator, [["Yes", 1], ["No", 2]], props: { label: true, required: true, required_indicator: true } %>
|
|
150
|
+
<%= form.select :example_select_required_indicator_2, [["Yes", 1], ["No", 2]], props: { label: "Example Select Field", required: true, required_indicator: true } %>
|
|
149
151
|
<%= form.multi_level_select :example_multi_level_select_required_indicator, props: {
|
|
150
152
|
label: true,
|
|
151
153
|
margin_y: 'sm',
|
|
@@ -4,7 +4,37 @@ import Link from '../../pb_link/_link'
|
|
|
4
4
|
const LinkUnderline = (props) => (
|
|
5
5
|
<div>
|
|
6
6
|
<Link
|
|
7
|
-
href="#
|
|
7
|
+
href="#underline1"
|
|
8
|
+
text="link example"
|
|
9
|
+
underline
|
|
10
|
+
{...props}
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
<Link
|
|
16
|
+
color="body"
|
|
17
|
+
href="#underline2"
|
|
18
|
+
text="link example"
|
|
19
|
+
underline
|
|
20
|
+
{...props}
|
|
21
|
+
/>
|
|
22
|
+
|
|
23
|
+
<br />
|
|
24
|
+
|
|
25
|
+
<Link
|
|
26
|
+
color="muted"
|
|
27
|
+
href="#underline3"
|
|
28
|
+
text="link example"
|
|
29
|
+
underline
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<br />
|
|
34
|
+
|
|
35
|
+
<Link
|
|
36
|
+
color="destructive"
|
|
37
|
+
href="#underline4"
|
|
8
38
|
text="link example"
|
|
9
39
|
underline
|
|
10
40
|
{...props}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%= pb_rails("select", props: {
|
|
2
|
+
label: "Favorite Snacks",
|
|
3
|
+
name: "food",
|
|
4
|
+
required_indicator: true,
|
|
5
|
+
options: [
|
|
6
|
+
{
|
|
7
|
+
value: "1",
|
|
8
|
+
value_text: "Popcorn",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
value: "2",
|
|
12
|
+
selected: true,
|
|
13
|
+
value_text: "Chips",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "3",
|
|
17
|
+
value_text: "Twizzlers",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "4",
|
|
21
|
+
value_text: "Cookies",
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
}) %>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { Select } from "playbook-ui";
|
|
4
|
+
|
|
5
|
+
const SelectRequiredIndicator = () => {
|
|
6
|
+
const options = [
|
|
7
|
+
{
|
|
8
|
+
value: "1",
|
|
9
|
+
text: "Popcorn",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: "2",
|
|
13
|
+
text: "Chips",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "3",
|
|
17
|
+
text: "Twizzlers",
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div>
|
|
23
|
+
<Select
|
|
24
|
+
label="Favorite Snack"
|
|
25
|
+
name="food"
|
|
26
|
+
options={options}
|
|
27
|
+
requiredIndicator
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default SelectRequiredIndicator;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
The `requiredIndicator`/`required_indicator` prop displays a red asterisk (\*) next to the label, visually indicating that the field is required. This is purely visual and does not enforce validation.
|
|
2
|
+
|
|
3
|
+
You can use `requiredIndicator`/`required_indicator` with any validation approach: HTML5 validation via the `required` prop, client-side validation, or backend validation. For this reason, it works independently and doesn't need to be paired with the `required` prop.
|
|
@@ -16,7 +16,7 @@ examples:
|
|
|
16
16
|
- select_attributes: Select W/ Attributes
|
|
17
17
|
- select_multiple: Select Multiple
|
|
18
18
|
- select_input_options: Input Options
|
|
19
|
-
|
|
19
|
+
- select_required_indicator: Required Indicator
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
react:
|
|
@@ -35,8 +35,9 @@ examples:
|
|
|
35
35
|
- select_multiple: Select Multiple
|
|
36
36
|
- select_react_hook: React Hook
|
|
37
37
|
- select_input_options: Input Options
|
|
38
|
+
- select_required_indicator: Required Indicator
|
|
38
39
|
|
|
39
40
|
swift:
|
|
40
41
|
- select_default_swift: Default
|
|
41
42
|
- select_error_swift: Error
|
|
42
|
-
- select_props_table: ""
|
|
43
|
+
- select_props_table: ""
|
|
@@ -13,3 +13,4 @@ export { default as SelectMultiple } from './_select_multiple.jsx'
|
|
|
13
13
|
export { default as SelectReactHook } from './_select_react_hook.jsx'
|
|
14
14
|
export { default as SelectCustomSelectSubheaders } from './_select_custom_select_subheaders.jsx'
|
|
15
15
|
export { default as SelectInputOptions } from './_select_input_options.jsx'
|
|
16
|
+
export { default as SelectRequiredIndicator } from './_select_required_indicator.jsx'
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React, { useState } from "react"
|
|
2
|
+
import { Button, Date as DateKit, DatePicker, Dropdown, Select, Table, TextInput, Typeahead, Flex } from "playbook-ui"
|
|
3
|
+
|
|
4
|
+
// Mock Data for Table
|
|
5
|
+
const users = [
|
|
6
|
+
{ id: 1, name: "Jennifer", title: "Associate Scrum Master", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-01" },
|
|
7
|
+
{ id: 2, name: "Nick", title: "UX Engineer II", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-02" },
|
|
8
|
+
{ id: 3, name: "Nida", title: "Senior UX Engineer", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-03" },
|
|
9
|
+
{ id: 4, name: "Justin", title: "Director of User Experience Engineering", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-04" },
|
|
10
|
+
{ id: 5, name: "Edward", title: "UX Designer II", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-05" },
|
|
11
|
+
{ id: 6, name: "Elisa", title: "UX Engineer", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-06" },
|
|
12
|
+
{ id: 7, name: "Gary", title: "UX Engineer", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-07" },
|
|
13
|
+
{ id: 8, name: "Barkley", title: "Nitro Quality Ninja", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-08" },
|
|
14
|
+
{ id: 9, name: "Aaron", title: "Associate Nitro Quality Ninja", department: "Business Technology", branch: "Philadelphia", startDate: "2025-01-09" },
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
const TableWithFilterWithCardTitleProps = () => {
|
|
18
|
+
const [territory, setTerritory] = useState("")
|
|
19
|
+
|
|
20
|
+
// --------Filter content example ------
|
|
21
|
+
const filterContent = ({ closePopover }) => (
|
|
22
|
+
<>
|
|
23
|
+
<TextInput
|
|
24
|
+
label="Territory ID"
|
|
25
|
+
onChange={event => setTerritory(event.target.value)}
|
|
26
|
+
value={territory}
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<Typeahead
|
|
30
|
+
label="Title"
|
|
31
|
+
options={[
|
|
32
|
+
{ key: "senior-ux-engineer", label: "Senior UX Engineer", value: "senior-ux-engineer" },
|
|
33
|
+
{ key: "ux-engineer", label: "UX Engineer", value: "ux-engineer" },
|
|
34
|
+
{ key: "ux-designer", label: "UX Designer", value: "ux-designer" }
|
|
35
|
+
]}
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
<Select
|
|
39
|
+
blankSelection="All Departments"
|
|
40
|
+
label="Department"
|
|
41
|
+
options={[
|
|
42
|
+
{ value: "Business Technology", label: "Business Technology", key: "business-technology" },
|
|
43
|
+
{ value: "Customer Development", label: "Customer Development", key: "customer-development" },
|
|
44
|
+
{ value: "Talent Acquisition", label: "Talent Acquisition", key: "talent-acquisition" }
|
|
45
|
+
]}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
<Dropdown
|
|
49
|
+
label="Branch"
|
|
50
|
+
options={[
|
|
51
|
+
{ key: "Philadelphia", label: "Philadelphia", value: "philadelphia" },
|
|
52
|
+
{ key: "New York", label: "New York", value: "new-york" },
|
|
53
|
+
{ key: "Austin", label: "Austin", value: "austin" }
|
|
54
|
+
]}
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
<DatePicker
|
|
58
|
+
label="Start Date"
|
|
59
|
+
paddingY="sm"
|
|
60
|
+
pickerId="startedOn"
|
|
61
|
+
/>
|
|
62
|
+
<Flex spacing="between">
|
|
63
|
+
<Button
|
|
64
|
+
onClick={() => {
|
|
65
|
+
alert("No filtering functionality - just a pattern demo!")
|
|
66
|
+
closePopover()
|
|
67
|
+
}}
|
|
68
|
+
text="Filter"
|
|
69
|
+
/>
|
|
70
|
+
<Button
|
|
71
|
+
text="Defaults"
|
|
72
|
+
variant="secondary"
|
|
73
|
+
/>
|
|
74
|
+
</Flex>
|
|
75
|
+
</>
|
|
76
|
+
)
|
|
77
|
+
// -------End Filter content example ------
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<Table
|
|
81
|
+
cardProps={{marginX: {
|
|
82
|
+
xs: "sm",
|
|
83
|
+
sm: "sm",
|
|
84
|
+
md: "xl",
|
|
85
|
+
lg: "xl",
|
|
86
|
+
xl: "xl",
|
|
87
|
+
default: "xl",
|
|
88
|
+
}}}
|
|
89
|
+
filterContent={filterContent}
|
|
90
|
+
filterProps={{
|
|
91
|
+
results: 50,
|
|
92
|
+
sortOptions: {
|
|
93
|
+
territory_id: "Territory ID",
|
|
94
|
+
first_name: "Name",
|
|
95
|
+
started_on: "Start Date",
|
|
96
|
+
department_name: "Department",
|
|
97
|
+
title_name: "Title",
|
|
98
|
+
branch_branch_name: "Branch",
|
|
99
|
+
},
|
|
100
|
+
sortValue: [{ name: 'started_on', dir: 'asc' }],
|
|
101
|
+
}}
|
|
102
|
+
title="Table Title Here"
|
|
103
|
+
titleProps={{
|
|
104
|
+
paddingLeft:{
|
|
105
|
+
xs: "sm",
|
|
106
|
+
sm: "sm",
|
|
107
|
+
md: "xl",
|
|
108
|
+
lg: "xl",
|
|
109
|
+
xl: "xl",
|
|
110
|
+
default: "xl",
|
|
111
|
+
}
|
|
112
|
+
}}
|
|
113
|
+
variant="withFilter"
|
|
114
|
+
>
|
|
115
|
+
<Table.Head>
|
|
116
|
+
<Table.Row>
|
|
117
|
+
<Table.Header>{'Territory ID'}</Table.Header>
|
|
118
|
+
<Table.Header>{'Name'}</Table.Header>
|
|
119
|
+
<Table.Header>{'Title'}</Table.Header>
|
|
120
|
+
<Table.Header>{'Department'}</Table.Header>
|
|
121
|
+
<Table.Header>{'Branch'}</Table.Header>
|
|
122
|
+
<Table.Header textAlign="right">{'Start Date'}</Table.Header>
|
|
123
|
+
</Table.Row>
|
|
124
|
+
</Table.Head>
|
|
125
|
+
<Table.Body>
|
|
126
|
+
{users.map((user) => (
|
|
127
|
+
<Table.Row key={user.id}>
|
|
128
|
+
<Table.Cell
|
|
129
|
+
marginX={{ xs: "sm" }}
|
|
130
|
+
numberSpacing="tabular"
|
|
131
|
+
>
|
|
132
|
+
{user.id}
|
|
133
|
+
</Table.Cell>
|
|
134
|
+
<Table.Cell marginX={{ xs: "sm" }}>{user.name}</Table.Cell>
|
|
135
|
+
<Table.Cell marginX={{ xs: "sm" }}>{user.title}</Table.Cell>
|
|
136
|
+
<Table.Cell marginX={{ xs: "sm" }}>{user.department}</Table.Cell>
|
|
137
|
+
<Table.Cell marginX={{ xs: "sm" }}>{user.branch}</Table.Cell>
|
|
138
|
+
<Table.Cell marginX={{ xs: "sm" }}>
|
|
139
|
+
<DateKit
|
|
140
|
+
alignment="right"
|
|
141
|
+
showCurrentYear
|
|
142
|
+
value={user.startDate}
|
|
143
|
+
/>
|
|
144
|
+
</Table.Cell>
|
|
145
|
+
</Table.Row>
|
|
146
|
+
))}
|
|
147
|
+
</Table.Body>
|
|
148
|
+
</Table>
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export default TableWithFilterWithCardTitleProps
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
The `withFilter` variant also offers 2 additional optional props:
|
|
2
|
+
|
|
3
|
+
`cardProps`: An object containing Card-specific props.
|
|
4
|
+
`titleProps`: An object containing Title-specific props.
|
|
5
|
+
|
|
6
|
+
#### Default Card Props
|
|
7
|
+
|
|
8
|
+
The Table kit automatically sets these Card defaults (which you can override via `cardProps`):
|
|
9
|
+
|
|
10
|
+
- `padding="none"`
|
|
11
|
+
|
|
12
|
+
#### Default Title Props
|
|
13
|
+
|
|
14
|
+
The Table kit automatically sets these Title defaults (which you can override via `titleProps`):
|
|
15
|
+
|
|
16
|
+
- `size={3}`
|
|
17
|
+
- `paddingY="md"`
|
data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.html.erb
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<% users = [
|
|
2
|
+
{ id: 1, name: "Jennifer", title: "Associate Scrum Master", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 1) },
|
|
3
|
+
{ id: 2, name: "Nick", title: "UX Engineer II", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 2) },
|
|
4
|
+
{ id: 3, name: "Nida", title: "Senior UX Engineer", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 3) },
|
|
5
|
+
{ id: 4, name: "Justin", title: "Director of User Experience Engineering", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 4) },
|
|
6
|
+
{ id: 5, name: "Edward", title: "UX Designer II", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 5) },
|
|
7
|
+
{ id: 6, name: "Elisa", title: "UX Engineer", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 6) },
|
|
8
|
+
{ id: 7, name: "Gary", title: "UX Engineer", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 7) },
|
|
9
|
+
{ id: 8, name: "Barkley", title: "Nitro Quality Ninja", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 8) },
|
|
10
|
+
{ id: 9, name: "Aaron", title: "Associate Nitro Quality Ninja", department: "Business Technology", branch: "Philadelphia", start_date: Date.new(2025, 1, 9) },
|
|
11
|
+
] %>
|
|
12
|
+
|
|
13
|
+
<% filter_content =
|
|
14
|
+
pb_rails("text_input", props: {
|
|
15
|
+
label: "Territory ID",
|
|
16
|
+
placeholder: "Enter Territory ID"
|
|
17
|
+
}) +
|
|
18
|
+
pb_rails("typeahead", props: {
|
|
19
|
+
label: "Title",
|
|
20
|
+
options: [
|
|
21
|
+
{ label: "Senior UX Engineer", value: "senior-ux-engineer" },
|
|
22
|
+
{ label: "UX Engineer", value: "ux-engineer" },
|
|
23
|
+
{ label: "UX Designer", value: "ux-designer" }
|
|
24
|
+
]
|
|
25
|
+
}) +
|
|
26
|
+
pb_rails("select", props: {
|
|
27
|
+
blank_selection: "All Departments",
|
|
28
|
+
label: "Department",
|
|
29
|
+
options: [
|
|
30
|
+
{ value: "Business Technology", text: "Business Technology" },
|
|
31
|
+
{ value: "Customer Development", text: "Customer Development" },
|
|
32
|
+
{ value: "Talent Acquisition", text: "Talent Acquisition" }
|
|
33
|
+
]
|
|
34
|
+
}) +
|
|
35
|
+
pb_rails("dropdown", props: {
|
|
36
|
+
label: "Branch",
|
|
37
|
+
options: [
|
|
38
|
+
{ label: "Philadelphia", value: "philadelphia" },
|
|
39
|
+
{ label: "New York", value: "new-york" },
|
|
40
|
+
{ label: "Austin", value: "austin" }
|
|
41
|
+
]
|
|
42
|
+
}) +
|
|
43
|
+
pb_rails("date_picker", props: {
|
|
44
|
+
label: "Start Date",
|
|
45
|
+
padding_y: "sm",
|
|
46
|
+
picker_id: "startedOn"
|
|
47
|
+
}) +
|
|
48
|
+
pb_rails("flex", props: { spacing: "between" }) do
|
|
49
|
+
pb_rails("button", props: {
|
|
50
|
+
text: "Filter",
|
|
51
|
+
}) +
|
|
52
|
+
pb_rails("button", props: {
|
|
53
|
+
text: "Defaults",
|
|
54
|
+
variant: "secondary"
|
|
55
|
+
})
|
|
56
|
+
end
|
|
57
|
+
%>
|
|
58
|
+
|
|
59
|
+
<%= pb_rails("table", props: {
|
|
60
|
+
card_props: {
|
|
61
|
+
margin_x: {
|
|
62
|
+
xs: "sm",
|
|
63
|
+
sm: "sm",
|
|
64
|
+
md: "xl",
|
|
65
|
+
lg: "xl",
|
|
66
|
+
xl: "xl",
|
|
67
|
+
default: "xl",
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
variant: "with_filter",
|
|
71
|
+
title: "Table Title Here",
|
|
72
|
+
title_props: {
|
|
73
|
+
padding_left:{
|
|
74
|
+
xs: "sm",
|
|
75
|
+
sm: "sm",
|
|
76
|
+
md: "xl",
|
|
77
|
+
lg: "xl",
|
|
78
|
+
xl: "xl",
|
|
79
|
+
default: "xl",
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
filter_content: filter_content,
|
|
83
|
+
filter_props: {
|
|
84
|
+
id: "user-table-filters-1",
|
|
85
|
+
results: 9,
|
|
86
|
+
sort_menu: [
|
|
87
|
+
{ item: "Start Date", link: "?q[sorts]=started_on+asc", active: true, direction: "asc" },
|
|
88
|
+
{ item: "First Name", link: "?q[sorts]=name+asc", active: false },
|
|
89
|
+
{ item: "Title", link: "?q[sorts]=title+asc", active: false },
|
|
90
|
+
{ item: "Department", link: "?q[sorts]=department+asc", active: false },
|
|
91
|
+
{ item: "Branch", link: "?q[sorts]=branch+asc", active: false },
|
|
92
|
+
{ item: "Territory ID", link: "?q[sorts]=territory_id+asc", active: false },
|
|
93
|
+
],
|
|
94
|
+
}
|
|
95
|
+
}) do %>
|
|
96
|
+
<%= pb_rails("table/table_head") do %>
|
|
97
|
+
<%= pb_rails("table/table_row") do %>
|
|
98
|
+
<%= pb_rails("table/table_header", props: { text: "Territory ID" }) %>
|
|
99
|
+
<%= pb_rails("table/table_header", props: { text: "Name" }) %>
|
|
100
|
+
<%= pb_rails("table/table_header", props: { text: "Title" }) %>
|
|
101
|
+
<%= pb_rails("table/table_header", props: { text: "Department" }) %>
|
|
102
|
+
<%= pb_rails("table/table_header", props: { text: "Branch" }) %>
|
|
103
|
+
<%= pb_rails("table/table_header", props: { text: "Start Date", text_align: "right" }) %>
|
|
104
|
+
<% end %>
|
|
105
|
+
<% end %>
|
|
106
|
+
|
|
107
|
+
<%= pb_rails("table/table_body") do %>
|
|
108
|
+
<% users.each do |user| %>
|
|
109
|
+
<%= pb_rails("table/table_row") do %>
|
|
110
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" }, number_spacing: "tabular" }) { user[:id].to_s } %>
|
|
111
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" } }) { user[:name] } %>
|
|
112
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" } }) { user[:title] } %>
|
|
113
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" } }) { user[:department] } %>
|
|
114
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" } }) { user[:branch] } %>
|
|
115
|
+
<%= pb_rails("table/table_cell", props: { margin_x: { xs: "sm" } }) do %>
|
|
116
|
+
<%= pb_rails("date", props: {alignment: "right", date: user[:start_date].to_s, show_current_year: true } ) %>
|
|
117
|
+
<% end %>
|
|
118
|
+
<% end %>
|
|
119
|
+
<% end %>
|
|
120
|
+
<% end %>
|
|
121
|
+
<% end %>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
The `with_filter` variant also offers 2 additional optional props:
|
|
2
|
+
|
|
3
|
+
`card_props`: An object containing Card-specific props.
|
|
4
|
+
`title_props`: An object containing Title-specific props.
|
|
5
|
+
|
|
6
|
+
#### Default Card Props
|
|
7
|
+
|
|
8
|
+
The Table kit automatically sets these Card defaults (which you can override via `card_props`):
|
|
9
|
+
|
|
10
|
+
- `padding:"none"`
|
|
11
|
+
|
|
12
|
+
#### Default Title Props
|
|
13
|
+
|
|
14
|
+
The Table kit automatically sets these Title defaults (which you can override via `title_props`):
|
|
15
|
+
|
|
16
|
+
- `size:3`
|
|
17
|
+
- `paddingY:"md"`
|
|
@@ -42,6 +42,7 @@ examples:
|
|
|
42
42
|
- table_with_header_style_floating: Header Style Floating
|
|
43
43
|
- table_with_filter_variant_rails: Variant with Filter
|
|
44
44
|
- table_with_filter_variant_with_pagination_rails: Variant with Filter and Pagination
|
|
45
|
+
- table_with_filter_with_card_title_props_rails: Variant with Filter (with Card and Title Props)
|
|
45
46
|
|
|
46
47
|
react:
|
|
47
48
|
- table_sm: Small
|
|
@@ -85,3 +86,4 @@ examples:
|
|
|
85
86
|
- table_with_header_style_floating: Header Style Floating
|
|
86
87
|
- table_with_filter_variant: Variant with Filter
|
|
87
88
|
- table_with_filter_variant_with_pagination: Variant with Filter and Pagination
|
|
89
|
+
- table_with_filter_with_card_title_props: Variant with Filter (with Card and Title Props)
|
|
@@ -40,3 +40,4 @@ export { default as TableWithHeaderStyleBorderless } from './_table_with_header_
|
|
|
40
40
|
export { default as TableWithHeaderStyleFloating } from './_table_with_header_style_floating.jsx'
|
|
41
41
|
export { default as TableWithFilterVariant } from './_table_with_filter_variant.jsx'
|
|
42
42
|
export { default as TableWithFilterVariantWithPagination } from './_table_with_filter_variant_with_pagination.jsx'
|
|
43
|
+
export { default as TableWithFilterWithCardTitleProps } from './_table_with_filter_with_card_title_props.jsx'
|
|
@@ -2,19 +2,17 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import TextInput from '../_text_input'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
)
|
|
17
|
-
}
|
|
5
|
+
const TextInputDisabled = (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<div>
|
|
8
|
+
<TextInput
|
|
9
|
+
disabled
|
|
10
|
+
label="Last Name"
|
|
11
|
+
placeholder="Enter last name"
|
|
12
|
+
{...props}
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
)
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
export default TextInputDisabled
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<%= pb_rails("textarea", props: { label: "Disabled", rows: 4, id: "disabled-example-1", disabled: true }) %>
|
|
2
|
+
|
|
3
|
+
<br/>
|
|
4
|
+
|
|
5
|
+
<%= pb_rails("textarea", props: {
|
|
6
|
+
label: "Disabled with Placeholder",
|
|
7
|
+
placeholder: "Placeholder text",
|
|
8
|
+
id: "disabled-example-2",
|
|
9
|
+
disabled: true
|
|
10
|
+
}) %>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import Textarea from '../_textarea'
|
|
4
|
+
|
|
5
|
+
const TextareaDefault = (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<Textarea
|
|
9
|
+
disabled
|
|
10
|
+
id="disabled-example"
|
|
11
|
+
label="Disabled"
|
|
12
|
+
{...props}
|
|
13
|
+
rows={4}
|
|
14
|
+
/>
|
|
15
|
+
<Textarea
|
|
16
|
+
disabled
|
|
17
|
+
id="disabled-example-with-placeholder"
|
|
18
|
+
label="Disabled with Placeholder"
|
|
19
|
+
placeholder="Content goes here"
|
|
20
|
+
{...props}
|
|
21
|
+
rows={4}
|
|
22
|
+
/>
|
|
23
|
+
</>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default TextareaDefault
|
|
@@ -10,6 +10,7 @@ examples:
|
|
|
10
10
|
- textarea_emoji_mask: Emoji Mask
|
|
11
11
|
- textarea_required_indicator: Required Indicator
|
|
12
12
|
- textarea_input_options: Input Options
|
|
13
|
+
- textarea_disabled: Disabled
|
|
13
14
|
|
|
14
15
|
react:
|
|
15
16
|
- textarea_default: Default
|
|
@@ -20,6 +21,7 @@ examples:
|
|
|
20
21
|
- textarea_inline: Inline
|
|
21
22
|
- textarea_emoji_mask: Emoji Mask
|
|
22
23
|
- textarea_required_indicator: Required Indicator
|
|
24
|
+
- textarea_disabled: Disabled
|
|
23
25
|
|
|
24
26
|
swift:
|
|
25
27
|
- textarea_default_swift: Default
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as TextareaDefault } from './_textarea_default.jsx'
|
|
2
|
+
export { default as TextareaDisabled } from './_textarea_disabled.jsx'
|
|
2
3
|
export { default as TextareaResize } from './_textarea_resize.jsx'
|
|
3
4
|
export { default as TextareaCustom } from './_textarea_custom.jsx'
|
|
4
5
|
export { default as TextareaError } from './_textarea_error.jsx'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<%= pb_rails("title", props: { text: "Default Color", tag: "h1", size: 3 }) %>
|
|
2
|
+
<%= pb_rails("title", props: { text: "Title Color", tag: "h1", size: 3, color: "light" }) %>
|
|
3
|
+
<%= pb_rails("title", props: { text: "Title Color", tag: "h1", size: 3, color: "lighter" }) %>
|
|
2
4
|
<%= pb_rails("title", props: { text: "Title Color", tag: "h1", size: 3, color: "link" }) %>
|
|
3
5
|
<%= pb_rails("title", props: { text: "Title Color", tag: "h1", size: 3, color: "success" }) %>
|
|
4
6
|
<%= pb_rails("title", props: { text: "Title Color", tag: "h1", size: 3, color: "error" }) %>
|
|
@@ -9,6 +9,20 @@ const TitleColors = (props) => {
|
|
|
9
9
|
text="Default Color"
|
|
10
10
|
{...props}
|
|
11
11
|
/>
|
|
12
|
+
<Title
|
|
13
|
+
color="light"
|
|
14
|
+
size={3}
|
|
15
|
+
tag="h1"
|
|
16
|
+
text="Title Color"
|
|
17
|
+
{...props}
|
|
18
|
+
/>
|
|
19
|
+
<Title
|
|
20
|
+
color="lighter"
|
|
21
|
+
size={3}
|
|
22
|
+
tag="h1"
|
|
23
|
+
text="Title Color"
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
12
26
|
<Title
|
|
13
27
|
color="link"
|
|
14
28
|
size={3}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.2.0.pre.alpha.
|
|
4
|
+
version: 16.2.0.pre.alpha.play280714580
|
|
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: 2026-02-
|
|
12
|
+
date: 2026-02-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -857,6 +857,8 @@ files:
|
|
|
857
857
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection_react.md
|
|
858
858
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx
|
|
859
859
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.md
|
|
860
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.jsx
|
|
861
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.md
|
|
860
862
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
|
|
861
863
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
|
|
862
864
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb
|
|
@@ -2058,6 +2060,9 @@ files:
|
|
|
2058
2060
|
- app/pb_kits/playbook/pb_select/docs/_select_react_hook.md
|
|
2059
2061
|
- app/pb_kits/playbook/pb_select/docs/_select_required.html.erb
|
|
2060
2062
|
- app/pb_kits/playbook/pb_select/docs/_select_required.jsx
|
|
2063
|
+
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb
|
|
2064
|
+
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx
|
|
2065
|
+
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md
|
|
2061
2066
|
- app/pb_kits/playbook/pb_select/docs/_select_value_text_same.html.erb
|
|
2062
2067
|
- app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx
|
|
2063
2068
|
- app/pb_kits/playbook/pb_select/docs/example.yml
|
|
@@ -2302,6 +2307,10 @@ files:
|
|
|
2302
2307
|
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md
|
|
2303
2308
|
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb
|
|
2304
2309
|
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md
|
|
2310
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.jsx
|
|
2311
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.md
|
|
2312
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.html.erb
|
|
2313
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.md
|
|
2305
2314
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
|
|
2306
2315
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
|
2307
2316
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
|
|
@@ -2372,6 +2381,8 @@ files:
|
|
|
2372
2381
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
|
|
2373
2382
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md
|
|
2374
2383
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md
|
|
2384
|
+
- app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.html.erb
|
|
2385
|
+
- app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.jsx
|
|
2375
2386
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.html.erb
|
|
2376
2387
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.jsx
|
|
2377
2388
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.md
|