@charcoal-ui/react 2.7.0 → 3.0.0-beta.0
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/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/components/Button/index.story.tsx +6 -6
- package/src/components/Button/index.tsx +5 -5
- package/src/components/Modal/index.story.tsx +5 -5
- package/src/components/Modal/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -147,7 +147,7 @@ var Button2 = React4.forwardRef(function Button3({
|
|
|
147
147
|
children,
|
|
148
148
|
variant = "Default",
|
|
149
149
|
size = "M",
|
|
150
|
-
fixed = false,
|
|
150
|
+
fullWidth: fixed = false,
|
|
151
151
|
disabled = false,
|
|
152
152
|
...rest
|
|
153
153
|
}, ref) {
|
|
@@ -158,7 +158,7 @@ var Button2 = React4.forwardRef(function Button3({
|
|
|
158
158
|
disabled,
|
|
159
159
|
variant,
|
|
160
160
|
size,
|
|
161
|
-
fixed,
|
|
161
|
+
fullWidth: fixed,
|
|
162
162
|
ref
|
|
163
163
|
},
|
|
164
164
|
children
|
|
@@ -167,10 +167,10 @@ var Button2 = React4.forwardRef(function Button3({
|
|
|
167
167
|
var Button_default = Button2;
|
|
168
168
|
var StyledButton = styled3(Clickable_default).withConfig({
|
|
169
169
|
shouldForwardProp(prop) {
|
|
170
|
-
return prop !== "
|
|
170
|
+
return prop !== "fullWidth";
|
|
171
171
|
}
|
|
172
172
|
}).attrs(styledProps)`
|
|
173
|
-
width: ${(p) => p.
|
|
173
|
+
width: ${(p) => p.fullWidth ? "stretch" : "min-content"};
|
|
174
174
|
display: inline-grid;
|
|
175
175
|
align-items: center;
|
|
176
176
|
justify-content: center;
|