@opengovsg/oui 0.0.56 → 0.0.57

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.
@@ -32,7 +32,7 @@ const Button = $670gB$react.forwardRef(
32
32
  spinner: spinnerProp,
33
33
  isIconOnly,
34
34
  isAttached,
35
- preserveWidth,
35
+ preserveWidth = true,
36
36
  ...props
37
37
  }, ref) => {
38
38
  const {
@@ -30,7 +30,7 @@ const Button = forwardRef(
30
30
  spinner: spinnerProp,
31
31
  isIconOnly,
32
32
  isAttached,
33
- preserveWidth,
33
+ preserveWidth = true,
34
34
  ...props
35
35
  }, ref) => {
36
36
  const {
@@ -48,7 +48,7 @@ export interface ButtonProps extends AriaButtonProps, ButtonVariantProps {
48
48
  *
49
49
  * Only applies when no `loadingText` or `pendingElement` is provided, since
50
50
  * those replace the children with content of a different width.
51
- * @defaultValue false
51
+ * @defaultValue true
52
52
  */
53
53
  preserveWidth?: boolean;
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/oui",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "sideEffects": false,
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
@@ -51,9 +51,9 @@
51
51
  "storybook": "10.2.10",
52
52
  "tsx": "^4.21.0",
53
53
  "typescript": "5.7.3",
54
- "@oui/chromatic": "0.0.0",
55
- "@opengovsg/oui-theme": "0.0.56",
54
+ "@opengovsg/oui-theme": "0.0.57",
56
55
  "@oui/eslint-config": "0.0.0",
56
+ "@oui/chromatic": "0.0.0",
57
57
  "@oui/prettier-config": "0.0.0",
58
58
  "@oui/typescript-config": "0.0.0"
59
59
  },
@@ -91,7 +91,7 @@
91
91
  "motion": ">=11.12.0 || >=12.0.0-alpha.1",
92
92
  "react": ">= 18",
93
93
  "react-aria-components": "^1.14.0",
94
- "@opengovsg/oui-theme": "0.0.56"
94
+ "@opengovsg/oui-theme": "0.0.57"
95
95
  },
96
96
  "scripts": {
97
97
  "build": "tsx ../../tooling/build-scripts/main.ts --dts --clean",