Skip to content

Commit 0a4ab96

Browse files
committed
chore(Components): Commit generated files
1 parent c08bd25 commit 0a4ab96

File tree

7 files changed

+42
-43
lines changed

7 files changed

+42
-43
lines changed

packages/components/src/components.d.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ export namespace Components {
266266
}
267267
interface StencilaCodeError {
268268
/**
269-
* The `CodeError` object
269+
* The `CodeError` node
270270
*/
271271
"error"?: CodeError;
272272
/**
273273
* The severity of the error message
274274
*/
275-
"kind": string | Level;
275+
"level"?: Level;
276276
}
277277
interface StencilaCodeExpression {
278278
/**
@@ -325,6 +325,10 @@ export namespace Components {
325325
* Returns the text contents from the inline code editor
326326
*/
327327
"getTextContents": () => Promise<string>;
328+
/**
329+
* Whether the code section starts out visible or not
330+
*/
331+
"isCodeVisible": boolean;
328332
/**
329333
* List of all supported programming languages
330334
*/
@@ -1084,7 +1088,7 @@ declare namespace LocalJSX {
10841088
*/
10851089
"onStencila-code-execute-cancel"?: (event: CustomEvent<CodeExecuteCancelEvent['detail']>) => void;
10861090
/**
1087-
* Trigger a global DOM event to hide or show all `CodeChunk` and `CodeExpress` component source code, leaving only the results visible.
1091+
* A global event emitter to show/hide code in all `CodeChunk` or `CodeExpression` components
10881092
*/
10891093
"onStencila-code-visibility-change"?: (event: CustomEvent<any>) => void;
10901094
/**
@@ -1134,13 +1138,13 @@ declare namespace LocalJSX {
11341138
}
11351139
interface StencilaCodeError {
11361140
/**
1137-
* The `CodeError` object
1141+
* The `CodeError` node
11381142
*/
11391143
"error"?: CodeError;
11401144
/**
11411145
* The severity of the error message
11421146
*/
1143-
"kind"?: string | Level;
1147+
"level"?: Level;
11441148
}
11451149
interface StencilaCodeExpression {
11461150
/**
@@ -1181,6 +1185,10 @@ declare namespace LocalJSX {
11811185
* The execution status of the code node
11821186
*/
11831187
"executeStatus"?: ExecuteStatus;
1188+
/**
1189+
* Whether the code section starts out visible or not
1190+
*/
1191+
"isCodeVisible"?: boolean;
11841192
/**
11851193
* List of all supported programming languages
11861194
*/
@@ -1193,6 +1201,10 @@ declare namespace LocalJSX {
11931201
* Emitted to indicate that the execution of the code node should be cancelled/interrupted.
11941202
*/
11951203
"onStencila-code-execute-cancel"?: (event: CustomEvent<CodeExecuteCancelEvent['detail']>) => void;
1204+
/**
1205+
* A global event emitter to show/hide code in all `CodeChunk` or `CodeExpression` components
1206+
*/
1207+
"onStencila-code-visibility-change"?: (event: CustomEvent<any>) => void;
11961208
/**
11971209
* Event emitted when the source code of the `CodeExpression` node is changed.
11981210
*/

packages/components/src/components/button/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| ------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
1010
| `ariaLabel` | `aria-label` | Screen-reader accessible label to read out. | `string` | `undefined` |
1111
| `buttonType` | `button-type` | The type of button to render, options correspond to HTML Button `type` attribute. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button Only applies if the button is not an anchor link. | `"button" \| "reset" \| "submit"` | `undefined` |
12-
| `color` | `color` | The color of the button | `ThemeColorNames \| "brand-50" \| "brand-100" \| "brand-200" \| "brand-300" \| "brand-400" \| "brand-500" \| "brand-600" \| "brand-700" \| "brand-800" \| "brand-900" \| "danger-50" \| "danger-100" \| "danger-200" \| "danger-300" \| "danger-400" \| "danger-500" \| "danger-600" \| "danger-700" \| "danger-800" \| "danger-900" \| "key-50" \| "key-100" \| "key-200" \| "key-300" \| "key-400" \| "key-500" \| "key-600" \| "key-700" \| "key-800" \| "key-900" \| "neutral-50" \| "neutral-100" \| "neutral-200" \| "neutral-300" \| "neutral-400" \| "neutral-500" \| "neutral-600" \| "neutral-700" \| "neutral-800" \| "neutral-900" \| "primary-50" \| "primary-100" \| "primary-200" \| "primary-300" \| "primary-400" \| "primary-500" \| "primary-600" \| "primary-700" \| "primary-800" \| "primary-900" \| "stock-50" \| "stock-100" \| "stock-200" \| "stock-300" \| "stock-400" \| "stock-500" \| "stock-600" \| "stock-700" \| "stock-800" \| "stock-900" \| "success-50" \| "success-100" \| "success-200" \| "success-300" \| "success-400" \| "success-500" \| "success-600" \| "success-700" \| "success-800" \| "success-900" \| "warn-50" \| "warn-100" \| "warn-200" \| "warn-300" \| "warn-400" \| "warn-500" \| "warn-600" \| "warn-700" \| "warn-800" \| "warn-900"` | `'primary'` |
12+
| `color` | `color` | The color of the button | `ThemeColorNames \| "warn-50" \| "warn-100" \| "warn-200" \| "warn-300" \| "warn-400" \| "warn-500" \| "warn-600" \| "warn-700" \| "warn-800" \| "warn-900" \| "brand-50" \| "brand-100" \| "brand-200" \| "brand-300" \| "brand-400" \| "brand-500" \| "brand-600" \| "brand-700" \| "brand-800" \| "brand-900" \| "danger-50" \| "danger-100" \| "danger-200" \| "danger-300" \| "danger-400" \| "danger-500" \| "danger-600" \| "danger-700" \| "danger-800" \| "danger-900" \| "key-50" \| "key-100" \| "key-200" \| "key-300" \| "key-400" \| "key-500" \| "key-600" \| "key-700" \| "key-800" \| "key-900" \| "neutral-50" \| "neutral-100" \| "neutral-200" \| "neutral-300" \| "neutral-400" \| "neutral-500" \| "neutral-600" \| "neutral-700" \| "neutral-800" \| "neutral-900" \| "primary-50" \| "primary-100" \| "primary-200" \| "primary-300" \| "primary-400" \| "primary-500" \| "primary-600" \| "primary-700" \| "primary-800" \| "primary-900" \| "stock-50" \| "stock-100" \| "stock-200" \| "stock-300" \| "stock-400" \| "stock-500" \| "stock-600" \| "stock-700" \| "stock-800" \| "stock-900" \| "success-50" \| "success-100" \| "success-200" \| "success-300" \| "success-400" \| "success-500" \| "success-600" \| "success-700" \| "success-800" \| "success-900"` | `'primary'` |
1313
| `dataEl` | `data-el` | An optional data attribute set on the button element for easier targeting using JavaScript. | `string \| undefined` | `undefined` |
1414
| `disabled` | `disabled` | If true, prevents the user from interacting with the button. Note: Not all browser prevent the click handler from firing on disabled buttons. | `boolean` | `false` |
1515
| `fill` | `fill` | If true, the button will take up the full width of the parent container | `boolean` | `false` |

0 commit comments

Comments
 (0)