playbook_ui_docs 16.12.0.pre.rc.2 → 16.12.0.pre.rc.3

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.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +5 -8
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +1 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +6 -3
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.md +6 -6
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width_rails.html.erb +41 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width_rails.md +49 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_rails.html.erb +57 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_rails.md +1 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_rails.html.erb +57 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_rails.md +1 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.html.erb +5 -5
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.md +3 -3
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +4 -1
  15. data/app/pb_kits/playbook/pb_pill/docs/_pill_size.html.erb +1 -0
  16. data/app/pb_kits/playbook/pb_pill/docs/_pill_size.jsx +16 -0
  17. data/app/pb_kits/playbook/pb_pill/docs/_pill_size.md +1 -0
  18. data/app/pb_kits/playbook/pb_pill/docs/_playground.json +11 -0
  19. data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +11 -1
  20. data/app/pb_kits/playbook/pb_pill/docs/example.yml +2 -0
  21. data/app/pb_kits/playbook/pb_pill/docs/index.js +1 -0
  22. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe76af5f2d2cd729737f5a914361eeacebe347097be1cdb7baf3136702872204
4
- data.tar.gz: 4810d801306ef272aee1eecba863b8897d5c79bb05b1df7dfdf388448bafb64f
3
+ metadata.gz: e6152f7165b86f19ccbb087bfbdbdd7d05bf991a065712ba62034f1ffe09086a
4
+ data.tar.gz: fdc04402f096f46a29e5f82937554e2fcac1693c56257aaba12643269f05c9c9
5
5
  SHA512:
6
- metadata.gz: 72f6aa5b3823a373916b9aaeae945c70d0b4f70a94f5543e758651ebb76664e3fb4e3224e0ee538cd73e6a72d11e662028452eb0384a4d05acb35b67ac1c196f
7
- data.tar.gz: 5add70e732bbff11a096491486fcabccbe9ec3705d99e096fcf55c566e43c02726943af4e4ad4a588d52bc4cd9d1354b4291b377a1e171183dcf48e291a053a9
6
+ metadata.gz: 88825010c500667ac57be7ca4e2a465c6ead2bb49be580757278b3b1ab7ffc1284afde6e7859cd0cf252de75ba74db36160959ff9a3aa0cf20ac884d2ad25d83
7
+ data.tar.gz: c5806106801117e349c6fe5872376568407354b945b900a7aac6b1eab8a0a762ae8cc04b3749a50dac0745f432997dbfba1a284c795e6d0ddb420aaa846ea8a4
@@ -1,15 +1,12 @@
1
1
  The `columnStyling` prop is an optional item that can be used within `columnDefinitions` as shown in the code snippet below. It is an object that has several optional key/value pairs, this doc example highlights the following:
2
2
 
3
- 1) `headerAlignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
-
5
- 2) `cellAlignment`: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to `left`, `right` or `center`.
6
-
7
- 3) `fontColor`: This will allow you to control the font color for a given column.
8
-
9
- 4) Column width: optional keys on `columnStyling` are `minWidth`, `width`, and `maxWidth` (numbers = pixels; CSS strings allowed). This example sets `width` on Year for a fixed hierarchy column (see the width doc for `minWidth` and bands).
3
+ 1. `headerAlignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
+ 2. `cellAlignment`: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to `left`, `right` or `center`.
5
+ 3. `fontColor`: This will allow you to control the font color for a given column.
6
+ 4. Column width: optional keys on `columnStyling` are `minWidth`, `width`, and `maxWidth` (numbers = pixels; CSS strings allowed). This example sets `width` on Year for a fixed hierarchy column (see the width doc for `minWidth` and bands).
10
7
 
11
8
  Fixed width: pass `width` only (or TanStack `size` only) and Playbook sets min and max to the same value automatically — you do not need all three for an exact width.
12
9
 
13
- See [Column Styling: Width](https://playbook.powerapp.cloud/kits/advanced_table/react#column-styling-width) for the full guide (Playbook ↔ TanStack mapping, floor-only vs bands, and when to use one vs three values).
10
+ See [Column Styling: Width](https://playbook.powerapp.cloud/kits/advanced_table/styling/react#column-styling-width) for the full guide (Playbook ↔ TanStack mapping, floor-only vs bands, and when to use one vs three values).
14
11
 
15
12
  `columnStyling` can be used within the columnDefinition of all the columns or some of them, as shown. Each column has its own individual control in this way.
@@ -3,6 +3,7 @@
3
3
  accessor: "year",
4
4
  label: "Year",
5
5
  cellAccessors: ["quarter", "month", "day"],
6
+ column_styling: { width: 124 },
6
7
  },
7
8
  {
8
9
  accessor: "newEnrollments",
@@ -1,9 +1,12 @@
1
1
  The `column_styling` prop is an optional item that can be used within `column_definitions` as shown in the code snippet below. It is an object that has several optional key/value pairs, this doc example highlights the following:
2
2
 
3
3
  1) `header_alignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
-
5
4
  2) `cell_alignment`: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to `left`, `right` or `center`.
6
-
7
5
  3) `font_color`: This will allow you to control the font color for a given column.
6
+ 4) Column width: optional keys on `column_styling` are `min_width`, `width`, and `max_width` (numbers = pixels; CSS strings allowed). This example sets `width` on Year for a fixed hierarchy column (see the width doc for `min_width` and bands).
7
+
8
+ Fixed width: pass `width` only and Playbook sets min and max to the same value automatically — you do not need all three for an exact width.
9
+
10
+ See [Column Styling: Width](https://playbook.powerapp.cloud/kits/advanced_table/styling/rails#column-styling-width) for the full guide (floor-only vs bands, and when to use one vs three values).
8
11
 
9
- `column_styling` can be used within the column_definition of all the columns or some of them, as shown. Each column has its own individual control in this way.
12
+ `column_styling` can be used within the column_definition of all the columns or some of them, as shown. Each column has its own individual control in this way.
@@ -1,6 +1,6 @@
1
1
  AdvancedTable column width is controlled in two equivalent places on each leaf `columnDefinitions` entry. Playbook maps them to inline styles on header and body cells (and forwards numeric values into TanStack Table’s column model).
2
2
 
3
- 1) Playbook `columnStyling` and TanStack `ColumnDef` use the same three ideas:
3
+ **1)** Playbook `columnStyling` and TanStack `ColumnDef` use the same three ideas:
4
4
 
5
5
  - Preferred / target width: `columnStyling` `width` maps to TanStack `size` on the same column object.
6
6
  - Minimum width (floor): `columnStyling` `minWidth` maps to TanStack `minSize`.
@@ -10,7 +10,7 @@ Numbers are pixels. You can also pass CSS length strings on `columnStyling` (e.g
10
10
 
11
11
  If both APIs set the same axis, `columnStyling` wins for that axis when Playbook builds cell styles.
12
12
 
13
- 2) Fixed width: set `width` only
13
+ **2)** Fixed width: set `width` only
14
14
 
15
15
  If you pass only `width` (or only `size`) and do not set `minWidth` / `maxWidth` (or `minSize` / `maxSize`), Playbook treats that as a fixed column: it sets all three to the same value under the hood so you do not have to repeat yourself.
16
16
 
@@ -26,7 +26,7 @@ size: 200
26
26
 
27
27
  Use this when the column should stay one width (e.g. a hierarchy column with expand controls).
28
28
 
29
- 3) Floor only: `minWidth` / `minSize`
29
+ **3)** Floor only: `minWidth` / `minSize`
30
30
 
31
31
  Set only a minimum when the column may grow with the table or content but must not shrink below a baseline (common fix for horizontal “jump” when rows expand):
32
32
 
@@ -34,7 +34,7 @@ Set only a minimum when the column may grow with the table or content but must n
34
34
  columnStyling: { minWidth: 160 }
35
35
  ```
36
36
 
37
- 4) Flexible band: min + preferred + max
37
+ **4)** Flexible band: min + preferred + max
38
38
 
39
39
  Set two or three values when you want a range. CSS uses preferred `width` clamped between `minWidth` and `maxWidth`:
40
40
 
@@ -46,7 +46,7 @@ Example from the table below (Attendance): `minWidth: 108`, `width: 124`, `maxWi
46
46
 
47
47
  You only need all three when you want that band. If min and max are omitted, `width` alone is enough for a fixed column.
48
48
 
49
- 5) TanStack band without `columnStyling`
49
+ **5)** TanStack band without `columnStyling`
50
50
 
51
51
  The Meetings column uses only TanStack fields:
52
52
 
@@ -56,7 +56,7 @@ The Meetings column uses only TanStack fields:
56
56
 
57
57
  Playbook applies the same min / preferred / max idea to cell styles. Setting only `size: 200` would lock all three to 200, same as `width: 200` in `columnStyling`.
58
58
 
59
- 6) What the example table shows
59
+ **6)** What the example table shows
60
60
 
61
61
  - Year (fixed): `columnStyling: { width: 128 }` — locked to 128px.
62
62
  - Enrollments (floor): `columnStyling: { minWidth: 160 }` — at least 160px; can grow.
@@ -0,0 +1,41 @@
1
+ <% column_definitions = [
2
+ {
3
+ accessor: "year",
4
+ label: "Year (fixed)",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ # width alone locks min + max to the same value (128px).
7
+ column_styling: { width: 128 },
8
+ },
9
+ {
10
+ accessor: "newEnrollments",
11
+ label: "Enrollments (floor)",
12
+ column_styling: { min_width: 160 },
13
+ },
14
+ {
15
+ accessor: "scheduledMeetings",
16
+ label: "Meetings (preferred)",
17
+ column_styling: { width: 200, min_width: 160, max_width: 240 },
18
+ },
19
+ {
20
+ accessor: "attendanceRate",
21
+ label: "Attendance (min / pref / max)",
22
+ column_styling: { min_width: 108, width: 124, max_width: 168 },
23
+ },
24
+ {
25
+ accessor: "completedClasses",
26
+ label: "Completed",
27
+ },
28
+ {
29
+ accessor: "classCompletionRate",
30
+ label: "Completion %",
31
+ },
32
+ {
33
+ accessor: "graduatedStudents",
34
+ label: "Graduated",
35
+ },
36
+ ] %>
37
+
38
+ <%= pb_rails("advanced_table", props: { id: "column-styling-width", table_data: @table_data, column_definitions: column_definitions }) do %>
39
+ <%= pb_rails("advanced_table/table_header", props: { table_id: "column-styling-width", column_definitions: column_definitions }) %>
40
+ <%= pb_rails("advanced_table/table_body", props: { table_id: "column-styling-width", table_data: @table_data, column_definitions: column_definitions }) %>
41
+ <% end %>
@@ -0,0 +1,49 @@
1
+ AdvancedTable column width is controlled on each leaf `column_definitions` entry via `column_styling`. Playbook maps these keys to inline styles on header and body cells.
2
+
3
+ **1)** `column_styling` width keys:
4
+
5
+ - Preferred / target width: `width`
6
+ - Minimum width (floor): `min_width`
7
+ - Maximum width (ceiling): `max_width`
8
+
9
+ Numbers are pixels. You can also pass CSS length strings (e.g. `"12rem"`, `"200px"`).
10
+
11
+ **2)** Fixed width: set `width` only
12
+
13
+ If you pass only `width` and do not set `min_width` / `max_width`, Playbook treats that as a fixed column: it sets all three to the same value under the hood so you do not have to repeat yourself.
14
+
15
+ ```ruby
16
+ column_styling: { width: 128 }
17
+ # Applied as width, min-width, and max-width: 128px
18
+ ```
19
+
20
+ Use this when the column should stay one width (e.g. a hierarchy column with expand controls).
21
+
22
+ **3)** Floor only: `min_width`
23
+
24
+ Set only a minimum when the column may grow with the table or content but must not shrink below a baseline (common fix for horizontal “jump” when rows expand):
25
+
26
+ ```ruby
27
+ column_styling: { min_width: 160 }
28
+ ```
29
+
30
+ **4)** Flexible band: min + preferred + max
31
+
32
+ Set two or three values when you want a range. CSS uses preferred `width` clamped between `min_width` and `max_width`:
33
+
34
+ - `min_width`: won’t shrink below this.
35
+ - `width`: preferred size when space allows.
36
+ - `max_width`: won’t grow above this.
37
+
38
+ Example from the table below (Attendance): `min_width: 108`, `width: 124`, `max_width: 168` → preferred 124px, allowed between 108 and 168.
39
+
40
+ You only need all three when you want that band. If min and max are omitted, `width` alone is enough for a fixed column.
41
+
42
+ **5)** What the example table shows
43
+
44
+ - Year (fixed): `column_styling: { width: 128 }` — locked to 128px.
45
+ - Enrollments (floor): `column_styling: { min_width: 160 }` — at least 160px; can grow.
46
+ - Meetings (preferred): `width` / `min_width` / `max_width` — preferred 200px, between 160–240.
47
+ - Attendance (min / pref / max): all three — preferred 124px, between 108–168.
48
+
49
+ Grouped columns: put width options on leaf definitions (columns with an `accessor`), not on parent group headers.
@@ -0,0 +1,57 @@
1
+ <%# Example sort method for demonstration purposes %>
2
+ <% if params["sort"] %>
3
+ <% sort_param = params["sort"].gsub(/_(asc|desc)\z/, "") %>
4
+ <% sort_direction = params["sort"].end_with?("_asc") ? 1 : -1 %>
5
+ <% @table_data_with_id.sort! do |a, b|
6
+ value_a = a[sort_param] || a[sort_param.to_sym]
7
+ value_b = b[sort_param] || b[sort_param.to_sym]
8
+
9
+ value_a = value_a.to_i if value_a.is_a?(String) && value_a.match?(/^\d+$/)
10
+ value_b = value_b.to_i if value_b.is_a?(String) && value_b.match?(/^\d+$/)
11
+
12
+ sort_direction * (value_a <=> value_b)
13
+ end %>
14
+ <% end %>
15
+
16
+ <% column_definitions = [
17
+ {
18
+ accessor: "year",
19
+ label: "Year",
20
+ cellAccessors: ["quarter", "month", "day"],
21
+ sort_menu: [
22
+ { item: "Year", link: "?sort=year_asc#pinned_rows_both_table", active: params["sort"] == "year_asc", direction: "asc" },
23
+ { item: "Year", link: "?sort=year_desc#pinned_rows_both_table", active: params["sort"] == "year_desc", direction: "desc" }
24
+ ],
25
+ },
26
+ {
27
+ accessor: "newEnrollments",
28
+ label: "New Enrollments",
29
+ },
30
+ {
31
+ accessor: "scheduledMeetings",
32
+ label: "Scheduled Meetings",
33
+ },
34
+ {
35
+ accessor: "attendanceRate",
36
+ label: "Attendance Rate",
37
+ },
38
+ {
39
+ accessor: "completedClasses",
40
+ label: "Completed Classes",
41
+ },
42
+ {
43
+ accessor: "classCompletionRate",
44
+ label: "Class Completion Rate",
45
+ },
46
+ {
47
+ accessor: "graduatedStudents",
48
+ label: "Graduated Students",
49
+ }
50
+ ] %>
51
+
52
+ <% pinned_rows = { top: ["8"], bottom: ["1"] } %>
53
+
54
+ <%= pb_rails("advanced_table", props: { id: "pinned_rows_both_table", table_data: @table_data_with_id, column_definitions: column_definitions, max_height: "xs", pinned_rows: pinned_rows, responsive: "none", table_props: { sticky: true }}) do %>
55
+ <%= pb_rails("advanced_table/table_header", props: { table_id: "pinned_rows_both_table", column_definitions: column_definitions }) %>
56
+ <%= pb_rails("advanced_table/table_body", props: { table_id: "pinned_rows_both_table", table_data: @table_data_with_id, column_definitions: column_definitions, pinned_rows: pinned_rows }) %>
57
+ <% end %>
@@ -0,0 +1 @@
1
+ This code snippet demonstrates `pinned_rows` taking a hash with an array of row ids to both the `top` and `bottom` keys.
@@ -0,0 +1,57 @@
1
+ <%# Example sort method for demonstration purposes %>
2
+ <% if params["sort"] %>
3
+ <% sort_param = params["sort"].gsub(/_(asc|desc)\z/, "") %>
4
+ <% sort_direction = params["sort"].end_with?("_asc") ? 1 : -1 %>
5
+ <% @table_data_with_id.sort! do |a, b|
6
+ value_a = a[sort_param] || a[sort_param.to_sym]
7
+ value_b = b[sort_param] || b[sort_param.to_sym]
8
+
9
+ value_a = value_a.to_i if value_a.is_a?(String) && value_a.match?(/^\d+$/)
10
+ value_b = value_b.to_i if value_b.is_a?(String) && value_b.match?(/^\d+$/)
11
+
12
+ sort_direction * (value_a <=> value_b)
13
+ end %>
14
+ <% end %>
15
+
16
+ <% column_definitions = [
17
+ {
18
+ accessor: "year",
19
+ label: "Year",
20
+ cellAccessors: ["quarter", "month", "day"],
21
+ sort_menu: [
22
+ { item: "Year", link: "?sort=year_asc#pinned_rows_bottom_table", active: params["sort"] == "year_asc", direction: "asc" },
23
+ { item: "Year", link: "?sort=year_desc#pinned_rows_bottom_table", active: params["sort"] == "year_desc", direction: "desc" }
24
+ ],
25
+ },
26
+ {
27
+ accessor: "newEnrollments",
28
+ label: "New Enrollments",
29
+ },
30
+ {
31
+ accessor: "scheduledMeetings",
32
+ label: "Scheduled Meetings",
33
+ },
34
+ {
35
+ accessor: "attendanceRate",
36
+ label: "Attendance Rate",
37
+ },
38
+ {
39
+ accessor: "completedClasses",
40
+ label: "Completed Classes",
41
+ },
42
+ {
43
+ accessor: "classCompletionRate",
44
+ label: "Class Completion Rate",
45
+ },
46
+ {
47
+ accessor: "graduatedStudents",
48
+ label: "Graduated Students",
49
+ }
50
+ ] %>
51
+
52
+ <% pinned_rows = { bottom: ["8"] } %>
53
+
54
+ <%= pb_rails("advanced_table", props: { id: "pinned_rows_bottom_table", table_data: @table_data_with_id, column_definitions: column_definitions, max_height: "xs", pinned_rows: pinned_rows, responsive: "none", table_props: { sticky: true }}) do %>
55
+ <%= pb_rails("advanced_table/table_header", props: { table_id: "pinned_rows_bottom_table", column_definitions: column_definitions }) %>
56
+ <%= pb_rails("advanced_table/table_body", props: { table_id: "pinned_rows_bottom_table", table_data: @table_data_with_id, column_definitions: column_definitions, pinned_rows: pinned_rows }) %>
57
+ <% end %>
@@ -0,0 +1 @@
1
+ This code snippet demonstrates `pinned_rows` taking a hash with an array of row ids to the `bottom` key.
@@ -19,8 +19,8 @@
19
19
  label: "Year",
20
20
  cellAccessors: ["quarter", "month", "day"],
21
21
  sort_menu: [
22
- { item: "Year", link: "?sort=year_asc#pinned_rows_table", active: params["sort"] == "year_asc", direction: "asc" },
23
- { item: "Year", link: "?sort=year_desc#pinned_rows_table", active: params["sort"] == "year_desc", direction: "desc" }
22
+ { item: "Year", link: "?sort=year_asc#pinned_rows_top_table", active: params["sort"] == "year_asc", direction: "asc" },
23
+ { item: "Year", link: "?sort=year_desc#pinned_rows_top_table", active: params["sort"] == "year_desc", direction: "desc" }
24
24
  ],
25
25
  },
26
26
  {
@@ -51,7 +51,7 @@
51
51
 
52
52
  <% pinned_rows = { top: ["8"] } %>
53
53
 
54
- <%= pb_rails("advanced_table", props: { id: "pinned_rows_table", table_data: @table_data_with_id, column_definitions: column_definitions, max_height: "xs", pinned_rows: pinned_rows, responsive: "none", table_props: { sticky: true }}) do %>
55
- <%= pb_rails("advanced_table/table_header", props: { table_id: "pinned_rows_table", column_definitions: column_definitions }) %>
56
- <%= pb_rails("advanced_table/table_body", props: { table_id: "pinned_rows_table", table_data: @table_data_with_id, column_definitions: column_definitions, pinned_rows: pinned_rows }) %>
54
+ <%= pb_rails("advanced_table", props: { id: "pinned_rows_top_table", table_data: @table_data_with_id, column_definitions: column_definitions, max_height: "xs", pinned_rows: pinned_rows, responsive: "none", table_props: { sticky: true }}) do %>
55
+ <%= pb_rails("advanced_table/table_header", props: { table_id: "pinned_rows_top_table", column_definitions: column_definitions }) %>
56
+ <%= pb_rails("advanced_table/table_body", props: { table_id: "pinned_rows_top_table", table_data: @table_data_with_id, column_definitions: column_definitions, pinned_rows: pinned_rows }) %>
57
57
  <% end %>
@@ -1,7 +1,7 @@
1
- Use the `pinned_rows` prop to pin specific rows to the top of an Advanced Table. Pinned rows will remain at the top when scrolling through table data and will not change position if sorting is used.
1
+ Use the `pinned_rows` prop to pin specific rows to the top or bottom of an Advanced Table. Pinned rows will remain at the top or bottom when scrolling through table data and will not change position if sorting is used.
2
2
 
3
3
  **NOTE:**
4
4
  - Sticky header required: Pinned rows must be used with `sticky: true` via `table_props` (works with both responsive and non-responsive tables)
5
5
  - Row ids required: Each object within the `table_data` array must contain a unique `id` in order to attach an id to all Rows for this to function.
6
- - `pinned_rows` takes a hash with a `top` key containing an array of row ids, as shown in the code snippet below.
7
- - For expandable rows, use the parent id in `pinned_rows[:top]`; all its children will automatically be pinned with it. If a child id is passed without the parent being pinned, nothing will be pinned.
6
+ - `pinned_rows` takes a hash with a `top` and/or `bottom` key containing an array of row ids, as shown in the code snippet below.
7
+ - For expandable rows, use the parent id in `pinned_rows[:top]` or `pinned_rows[:bottom]`; all its children will automatically be pinned with it. If a child id is passed without the parent being pinned, nothing will be pinned.
@@ -9,7 +9,9 @@ examples:
9
9
  - advanced_table_table_props: Table Props
10
10
  - advanced_table_sticky_header_rails: Sticky Header
11
11
  - advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
12
- - advanced_table_pinned_rows_rails: Pinned Rows
12
+ - advanced_table_pinned_rows_rails: Pinned Rows (Top)
13
+ - advanced_table_pinned_rows_bottom_rails: Pinned Rows (Bottom)
14
+ - advanced_table_pinned_rows_both_rails: Pinned Rows (Both)
13
15
  - advanced_table_beta_sort: Enable Sorting
14
16
  - advanced_table_responsive: Responsive Tables
15
17
  - advanced_table_custom_cell_rails: Custom Components for Cells
@@ -28,6 +30,7 @@ examples:
28
30
  - advanced_table_row_styling: Row Styling
29
31
  - advanced_table_padding_control_per_row_rails: Padding Control using Row Styling
30
32
  - advanced_table_column_styling_rails: Column Styling
33
+ - advanced_table_column_styling_width_rails: Column Styling Width
31
34
  - advanced_table_column_styling_column_headers_rails: Column Styling with Multiple Headers
32
35
  - advanced_table_padding_control_rails: Padding Control using Column Styling
33
36
  - advanced_table_background_control_rails: Column Styling Background Color
@@ -0,0 +1 @@
1
+ <%= pb_rails("pill", props: { size: "sm", text: "Small" }) %>
@@ -0,0 +1,16 @@
1
+ import React from 'react'
2
+ import Pill from '../_pill'
3
+
4
+ const PillSize = (props) => {
5
+ return (
6
+ <div>
7
+ <Pill
8
+ size="sm"
9
+ text="small"
10
+ {...props}
11
+ />
12
+ </div>
13
+ )
14
+ }
15
+
16
+ export default PillSize
@@ -0,0 +1 @@
1
+ Set pill size to small with `size: "sm"` / `size="sm"`.
@@ -24,6 +24,7 @@
24
24
  "name": "Appearance",
25
25
  "props": [
26
26
  "variant",
27
+ "size",
27
28
  "textTransform"
28
29
  ]
29
30
  }
@@ -47,6 +48,16 @@
47
48
  },
48
49
  "children": ""
49
50
  },
51
+ {
52
+ "name": "Small",
53
+ "props": {
54
+ "text": "small",
55
+ "size": "sm",
56
+ "variant": "neutral",
57
+ "textTransform": "lowercase"
58
+ },
59
+ "children": ""
60
+ },
50
61
  {
51
62
  "name": "Preserve Casing",
52
63
  "props": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "name": "Appearance",
14
- "props": ["variant", "textTransform"]
14
+ "props": ["variant", "size", "textTransform"]
15
15
  }
16
16
  ],
17
17
  "presets": [
@@ -33,6 +33,16 @@
33
33
  },
34
34
  "children": ""
35
35
  },
36
+ {
37
+ "name": "Small",
38
+ "props": {
39
+ "text": "small",
40
+ "size": "sm",
41
+ "variant": "neutral",
42
+ "textTransform": "lowercase"
43
+ },
44
+ "children": ""
45
+ },
36
46
  {
37
47
  "name": "Preserve Casing",
38
48
  "props": {
@@ -3,6 +3,7 @@ examples:
3
3
  rails:
4
4
  - pill_default: Default
5
5
  - pill_variants: Variants
6
+ - pill_size: Size
6
7
  - pill_example: Example
7
8
 
8
9
 
@@ -10,6 +11,7 @@ examples:
10
11
  react:
11
12
  - pill_default: Default
12
13
  - pill_variants: Variants
14
+ - pill_size: Size
13
15
  - pill_example: Example
14
16
 
15
17
  swift:
@@ -1,3 +1,4 @@
1
1
  export { default as PillDefault } from './_pill_default.jsx'
2
2
  export { default as PillVariants } from './_pill_variants.jsx'
3
3
  export { default as PillExample } from './_pill_example.jsx'
4
+ export { default as PillSize } from './_pill_size.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.12.0.pre.rc.2
4
+ version: 16.12.0.pre.rc.3
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-07-22 00:00:00.000000000 Z
12
+ date: 2026-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -78,6 +78,8 @@ files:
78
78
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md
79
79
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.jsx
80
80
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.md
81
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width_rails.html.erb
82
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width_rails.md
81
83
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.jsx
82
84
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.md
83
85
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_custom.jsx
@@ -134,8 +136,12 @@ files:
134
136
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md
135
137
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx
136
138
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both.jsx
139
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_rails.html.erb
140
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_rails.md
137
141
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_react.md
138
142
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom.jsx
143
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_rails.html.erb
144
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_rails.md
139
145
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_react.md
140
146
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.html.erb
141
147
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.md
@@ -2072,6 +2078,9 @@ files:
2072
2078
  - app/pb_kits/playbook/pb_pill/docs/_pill_example.jsx
2073
2079
  - app/pb_kits/playbook/pb_pill/docs/_pill_example.md
2074
2080
  - app/pb_kits/playbook/pb_pill/docs/_pill_props_swift.md
2081
+ - app/pb_kits/playbook/pb_pill/docs/_pill_size.html.erb
2082
+ - app/pb_kits/playbook/pb_pill/docs/_pill_size.jsx
2083
+ - app/pb_kits/playbook/pb_pill/docs/_pill_size.md
2075
2084
  - app/pb_kits/playbook/pb_pill/docs/_pill_variants.html.erb
2076
2085
  - app/pb_kits/playbook/pb_pill/docs/_pill_variants.jsx
2077
2086
  - app/pb_kits/playbook/pb_pill/docs/_pill_variants_swift.md