@aurora-ds/components 1.1.0 → 1.1.2

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/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}>Save</Button>
289
- * @example <Button variant='outlined' color='error' startIcon={IconRegistry.CloseIcon}>Delete</Button>
290
- * @example <Button color='success' isLoading width='100%'>Submitting…</Button>
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
 
@@ -836,12 +838,9 @@ type BoxStyleProps = {
836
838
  */
837
839
  declare const Box: FC<BoxProps>;
838
840
 
839
- type CardProps = HTMLAttributes<HTMLDivElement> & {
840
- ref?: Ref<HTMLDivElement>;
841
- /** Visual style. @default 'elevated' */
841
+ type CardProps = BoxProps & {
842
+ /** Visual style. @default 'outlined' */
842
843
  variant?: CardVariant;
843
- /** Inner padding using a spacing token. @default 'none' */
844
- padding?: keyof Theme['spacing'];
845
844
  };
846
845
 
847
846
  type CardHeaderProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "description": "Aurora DS - React Components Library",
6
6
  "main": "dist/cjs/index.js",