@aurora-ds/components 1.1.1 → 1.1.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.
- package/dist/cjs/index.js +21 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +21 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
276
276
|
isLoading?: boolean;
|
|
277
277
|
/** Native button type. @default 'button' */
|
|
278
278
|
type?: 'button' | 'submit' | 'reset';
|
|
279
|
+
/** Text label displayed inside the button. */
|
|
280
|
+
label: string;
|
|
279
281
|
/** SVG icon component rendered before the label (inherits the button color). */
|
|
280
282
|
startIcon?: ButtonIcon;
|
|
281
283
|
/** SVG icon component rendered after the label (inherits the button color). */
|
|
@@ -285,9 +287,9 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
285
287
|
/**
|
|
286
288
|
* Theme-aware button built on `createVariants`.
|
|
287
289
|
*
|
|
288
|
-
* @example <Button onClick={save}
|
|
289
|
-
* @example <Button variant='outlined' color='error' startIcon={IconRegistry.CloseIcon}
|
|
290
|
-
* @example <Button color='success' isLoading width='100%'
|
|
290
|
+
* @example <Button label='Save' onClick={save} />
|
|
291
|
+
* @example <Button label='Delete' variant='outlined' color='error' startIcon={IconRegistry.CloseIcon} />
|
|
292
|
+
* @example <Button label='Submitting…' color='success' isLoading width='100%' />
|
|
291
293
|
*/
|
|
292
294
|
declare const Button: FC<ButtonProps>;
|
|
293
295
|
|
|
@@ -839,6 +841,12 @@ declare const Box: FC<BoxProps>;
|
|
|
839
841
|
type CardProps = BoxProps & {
|
|
840
842
|
/** Visual style. @default 'outlined' */
|
|
841
843
|
variant?: CardVariant;
|
|
844
|
+
/**
|
|
845
|
+
* Inner padding using a spacing token. Use `'none'` when composing with
|
|
846
|
+
* `Card.Header` / `Card.Body`, which manage their own spacing.
|
|
847
|
+
* @default 'md'
|
|
848
|
+
*/
|
|
849
|
+
padding?: keyof Theme['spacing'];
|
|
842
850
|
};
|
|
843
851
|
|
|
844
852
|
type CardHeaderProps = {
|