@utrecht/component-library-react 1.0.0-alpha.137 → 1.0.0-alpha.139

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/Button.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  appearance?: string;
4
4
  busy?: boolean;
5
+ hint?: string;
5
6
  }
6
7
  export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & {
7
8
  children?: import("react").ReactNode;
package/dist/index.cjs.js CHANGED
@@ -45,12 +45,13 @@ var Button = /*#__PURE__*/react.forwardRef(function (_a, ref) {
45
45
  disabled = _a.disabled,
46
46
  children = _a.children,
47
47
  className = _a.className,
48
+ hint = _a.hint,
48
49
  type = _a.type,
49
- restProps = tslib.__rest(_a, ["appearance", "busy", "disabled", "children", "className", "type"]);
50
+ restProps = tslib.__rest(_a, ["appearance", "busy", "disabled", "children", "className", "hint", "type"]);
50
51
 
51
52
  return jsxRuntime.jsx("button", Object.assign({}, restProps, {
52
53
  ref: ref,
53
- className: clsx__default["default"]('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', className),
54
+ className: clsx__default["default"]('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--primary-action', hint === 'warning' && 'utrecht-button--secondary-action', hint === 'ready' && 'utrecht-button--subtle', className),
54
55
  "aria-busy": busy || undefined,
55
56
  disabled: disabled,
56
57
  type: type || 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.esm.js CHANGED
@@ -37,12 +37,13 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
37
37
  disabled = _a.disabled,
38
38
  children = _a.children,
39
39
  className = _a.className,
40
+ hint = _a.hint,
40
41
  type = _a.type,
41
- restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "type"]);
42
+ restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "hint", "type"]);
42
43
 
43
44
  return jsx("button", Object.assign({}, restProps, {
44
45
  ref: ref,
45
- className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', className),
46
+ className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--primary-action', hint === 'warning' && 'utrecht-button--secondary-action', hint === 'ready' && 'utrecht-button--subtle', className),
46
47
  "aria-busy": busy || undefined,
47
48
  disabled: disabled,
48
49
  type: type || 'button'
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.137",
2
+ "version": "1.0.0-alpha.139",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -69,5 +69,5 @@
69
69
  "react": "16 - 18",
70
70
  "react-dom": "16 - 18"
71
71
  },
72
- "gitHead": "8d530ef664ab28b1de549480156f365d058f997d"
72
+ "gitHead": "66932a564f0a0763a360f836054cb062052eef1f"
73
73
  }