Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart committed Oct 3, 2023
1 parent 58c3181 commit a4a7b13
Show file tree
Hide file tree
Showing 22 changed files with 80 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .changeset/flat-worms-explode.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/heading': minor
'@twilio-paste/core': minor
'@twilio-paste/heading': patch
'@twilio-paste/core': patch
---

[Heading]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/giant-gorillas-behave.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/data-grid': minor
'@twilio-paste/core': minor
'@twilio-paste/data-grid': patch
'@twilio-paste/core': patch
---

[Data Grid]: Improved TsDoc type annotation
4 changes: 2 additions & 2 deletions .changeset/green-deers-attend.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/editable-code-block': minor
'@twilio-paste/core': minor
'@twilio-paste/editable-code-block': patch
'@twilio-paste/core': patch
---

[Editable Code Block]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/healthy-laws-marry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/form': minor
'@twilio-paste/core': minor
'@twilio-paste/form': patch
'@twilio-paste/core': patch
---

[Form]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/lazy-hats-report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/display-heading': minor
'@twilio-paste/core': minor
'@twilio-paste/display-heading': patch
'@twilio-paste/core': patch
---

[Display Heading]: Improved TsDoc type annotations
1 change: 1 addition & 0 deletions .changeset/light-buttons-type.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
'@twilio-paste/codemods': minor
'@twilio-paste/core': minor
---

[Codemods] New exports from icons package
4 changes: 2 additions & 2 deletions .changeset/mean-pugs-dream.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/display-pill-group': minor
'@twilio-paste/core': minor
'@twilio-paste/display-pill-group': patch
'@twilio-paste/core': patch
---

[Display Pill Group]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/perfect-shoes-kneel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/description-list': minor
'@twilio-paste/core': minor
'@twilio-paste/description-list': patch
'@twilio-paste/core': patch
---

[Description List] Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/purple-oranges-tease.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/date-picker': minor
'@twilio-paste/core': minor
'@twilio-paste/date-picker': patch
'@twilio-paste/core': patch
---

[Date Picker]: Improved TsDoc type annotation
4 changes: 2 additions & 2 deletions .changeset/rare-pillows-sleep.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/help-text': minor
'@twilio-paste/core': minor
'@twilio-paste/help-text': patch
'@twilio-paste/core': patch
---

[Healp Text]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/shaggy-flies-laugh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/file-picker': minor
'@twilio-paste/core': minor
'@twilio-paste/file-picker': patch
'@twilio-paste/core': patch
---

[File Picker]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/short-mirrors-call.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/form-pill-group': minor
'@twilio-paste/core': minor
'@twilio-paste/form-pill-group': patch
'@twilio-paste/core': patch
---

[Form Pill Group]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/six-pots-enjoy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/disclosure': minor
'@twilio-paste/core': minor
'@twilio-paste/disclosure': patch
'@twilio-paste/core': patch
---

[Disclosure]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/warm-bears-peel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/file-uploader': minor
'@twilio-paste/core': minor
'@twilio-paste/file-uploader': patch
'@twilio-paste/core': patch
---

[File Uploader]: Improved TsDoc type annotations
4 changes: 2 additions & 2 deletions .changeset/wicked-mice-join.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
'@twilio-paste/detail-text': minor
'@twilio-paste/core': minor
'@twilio-paste/detail-text': patch
'@twilio-paste/core': patch
---

[Detail Text]: Improved TsDoc type annotations
22 changes: 11 additions & 11 deletions packages/paste-core/components/data-grid/type-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@
},
"noWrap": {
"type": "boolean",
"defaultValue": null,
"defaultValue": "'false'",
"required": false,
"externalProp": false,
"description": "Sets the table cells to not line wrap."
Expand Down Expand Up @@ -1573,7 +1573,7 @@
},
"scrollHorizontally": {
"type": "boolean",
"defaultValue": null,
"defaultValue": "'false'",
"required": false,
"externalProp": false,
"description": "Sets the table to scroll horizontally on small screens."
Expand All @@ -1598,7 +1598,7 @@
},
"striped": {
"type": "boolean",
"defaultValue": null,
"defaultValue": "'false'",
"required": false,
"externalProp": false,
"description": "Sets a background color for even rows within the table."
Expand Down Expand Up @@ -1629,10 +1629,10 @@
},
"tableLayout": {
"type": "TableLayoutOptions",
"defaultValue": null,
"defaultValue": "'auto'",
"required": false,
"externalProp": false,
"description": "Sets the `table-layout` style of the Table. Defaults to `auto`."
"description": "Sets the `table-layout` style of the Table."
},
"title": {
"type": "string",
Expand Down Expand Up @@ -1660,10 +1660,10 @@
},
"variant": {
"type": "TableVariantOptions",
"defaultValue": null,
"defaultValue": "'default'",
"required": false,
"externalProp": false,
"description": "Sets the `border` style of the Table. Defaults to `default`."
"description": "Sets the `border` style of the Table."
},
"vocab": {
"type": "string",
Expand Down Expand Up @@ -4881,10 +4881,10 @@
},
"textAlign": {
"type": "TableAlignmentOptions",
"defaultValue": null,
"defaultValue": "'left'",
"required": false,
"externalProp": false,
"description": "Sets the text alignment of the content within the Table cell. Defaults to `left`."
"description": "Sets the text alignment of the content within the Table cell."
},
"title": {
"type": "string",
Expand Down Expand Up @@ -6575,10 +6575,10 @@
},
"textAlign": {
"type": "TableAlignmentOptions",
"defaultValue": null,
"defaultValue": "'left'",
"required": false,
"externalProp": false,
"description": "Sets the text alignment of the content within the Table cell. Defaults to `left`."
"description": "Sets the text alignment of the content within the Table cell."
}
},
"DataGridFoot": {
Expand Down
8 changes: 7 additions & 1 deletion packages/paste-core/components/disclosure/src/Disclosure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ export interface DisclosureProps extends DisclosurePrimitiveInitialState {
*/
element?: BoxProps["element"];
children: NonNullable<React.ReactNode>;
/**
* Provide the Disclosure state returned from `useDisclosureState` if you want to control the state of the Disclosure.
*
* @type {DisclosureStateReturn}
* @memberof DisclosureProps
*/
state?: DisclosureStateReturn;
/**
* Changes the styling on the component based on the variant selected.
*
*
* @default 'default'
* @type {DisclosureVariants}
* @memberof DisclosureProps
*/
Expand Down
5 changes: 3 additions & 2 deletions packages/paste-core/components/disclosure/type-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"type": "DisclosureStateReturn",
"defaultValue": null,
"required": false,
"externalProp": false
"externalProp": false,
"description": "Provide the Disclosure state returned from `useDisclosureState` if you want to control the state of the Disclosure."
},
"variant": {
"type": "DisclosureVariants",
"defaultValue": null,
"defaultValue": "'default'",
"required": false,
"externalProp": false,
"description": "Changes the styling on the component based on the variant selected."
Expand Down
20 changes: 15 additions & 5 deletions packages/paste-core/components/table/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,37 @@ export interface TableProps extends HTMLPasteProps<"table"> {
/**
* Sets a background color for even rows within the table.
*
* @default 'false'
* @type {boolean}
* @memberof TableProps
*/
striped?: boolean;
/**
* Sets the `table-layout` style of the Table. Defaults to `auto`.
* Sets the `table-layout` style of the Table.
*
* @default 'auto'
* @type {TableLayoutOptions}
* @memberof TableProps
*/
tableLayout?: TableLayoutOptions;
/**
* Sets the `border` style of the Table. Defaults to `default`.
* Sets the `border` style of the Table.
*
* @default 'default'
* @type {TableVariantOptions}
* @memberof TableProps
*/
variant?: TableVariantOptions;
/**
* Sets the table to scroll horizontally on small screens.
*
* @default 'false'
*/
scrollHorizontally?: boolean;
/**
* Sets the table cells to not line wrap.
*
* @default 'false'
*/
noWrap?: boolean;
/**
Expand Down Expand Up @@ -106,8 +113,9 @@ export interface TrProps extends HTMLPasteProps<"tr"> {
*/
element?: BoxProps["element"];
/**
* Sets the vertical alignment of the content within the Table row. Defaults to `middle`.
* Sets the vertical alignment of the content within the Table row.
*
* @default 'middle'
* @type {TableVerticalAlignmentOptions}
* @memberof TrProps
*/
Expand All @@ -124,8 +132,9 @@ export interface ThProps extends HTMLPasteProps<"th"> {
*/
element?: BoxProps["element"];
/**
* Sets the text alignment of the content within the Table cell. Defaults to `left`.
* Sets the text alignment of the content within the Table cell.
*
* @default 'left'
* @type {TableAlignmentOptions}
* @memberof ThProps
*/
Expand All @@ -149,8 +158,9 @@ export interface TdProps extends HTMLPasteProps<"td"> {
*/
element?: BoxProps["element"];
/**
* Sets the text alignment of the content within the Table cell. Defaults to `left`.
* Sets the text alignment of the content within the Table cell.
*
* @default 'left'
* @type {TableAlignmentOptions}
* @memberof TdProps
*/
Expand Down
Loading

0 comments on commit a4a7b13

Please sign in to comment.