playbook_ui_docs 16.2.0.pre.alpha.play2753dropdownaddedclosingprops14377 → 16.2.0.pre.alpha.play2762formkithandlenil14473

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c57af69daca09d632f1e5ad684fa60e0e12b297c8f79b2fd6c7e3f6c6fba830
4
- data.tar.gz: 8513facdc1f475564f4257e11d0380888068e4a05c900bca6c342bdc078eb072
3
+ metadata.gz: 97d46241e667c4dc4652dbf70748286ef8751ca28ea05d6ef7a9b40899a0cb89
4
+ data.tar.gz: 3cb461d0cf45f3b8c9c28741d473dcb98036a28bbe0c48806246d725f02c6150
5
5
  SHA512:
6
- metadata.gz: 0e56139cde0b70d66007354146c7786d68757675711d165beb86cdf81d279c63ceaa55406e3ab580da940c50f6ad89b0ae2a498660bc846f1439cfb1d360f165
7
- data.tar.gz: fa9198940b70efe81f9e1edfba8e97786943f248ac1958331461a946063067d36e3443a2e41b35d16c7fe3a60bfff8ef308f2618b2b086880b4d53e80715f75b
6
+ metadata.gz: 302a5f0b98de24651defde3d4539ed53ba81c658456b2284e950a91d19c9dd506569f5252fe51ff4d3034097194bd2faf28ef6a1f2799ee1e7251791f28404ce
7
+ data.tar.gz: 70e6b64737f0527b27187abcd7c58815977b8eda163db594ebf2363c5ef0aca192858539f4aa1a4256dc72506176d74c841f69dd53bfe9f3ee2b11be05d87e7e
@@ -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,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.
@@ -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: "Example phone field", hidden_inputs: true } %>
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="#underline"
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,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'
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.play2753dropdownaddedclosingprops14377
4
+ version: 16.2.0.pre.alpha.play2762formkithandlenil14473
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 00:00:00.000000000 Z
12
+ date: 2026-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -2060,6 +2060,9 @@ files:
2060
2060
  - app/pb_kits/playbook/pb_select/docs/_select_react_hook.md
2061
2061
  - app/pb_kits/playbook/pb_select/docs/_select_required.html.erb
2062
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
2063
2066
  - app/pb_kits/playbook/pb_select/docs/_select_value_text_same.html.erb
2064
2067
  - app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx
2065
2068
  - app/pb_kits/playbook/pb_select/docs/example.yml
@@ -2374,6 +2377,8 @@ files:
2374
2377
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
2375
2378
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md
2376
2379
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md
2380
+ - app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.html.erb
2381
+ - app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.jsx
2377
2382
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.html.erb
2378
2383
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.jsx
2379
2384
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.md