elseware-ui 3.0.14 → 3.0.15
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/LICENSE +20 -20
- package/dist/index.css +2 -34
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -16
- package/dist/index.d.ts +9 -16
- package/dist/index.js +239 -392
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +240 -393
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +17 -2
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +17 -2
- package/dist/index.native.mjs.map +1 -1
- package/package.json +173 -173
package/dist/index.native.js
CHANGED
|
@@ -245,7 +245,19 @@ function useButton(props) {
|
|
|
245
245
|
onMouseMove: _onMouseMove,
|
|
246
246
|
...rootRest
|
|
247
247
|
} = props;
|
|
248
|
-
const {
|
|
248
|
+
const {
|
|
249
|
+
shape: resolvedShape,
|
|
250
|
+
size: resolvedSize,
|
|
251
|
+
variant: resolvedVariant,
|
|
252
|
+
appearance: resolvedAppearance
|
|
253
|
+
} = useResolvedButtonConfig({
|
|
254
|
+
compact,
|
|
255
|
+
mode,
|
|
256
|
+
variant,
|
|
257
|
+
appearance,
|
|
258
|
+
shape,
|
|
259
|
+
size
|
|
260
|
+
});
|
|
249
261
|
const tokens = buttonSizeTokens[resolvedSize];
|
|
250
262
|
const variantClassName = resolveButtonVariantStyles({
|
|
251
263
|
appearance: resolvedAppearance,
|
|
@@ -331,7 +343,10 @@ var Button = react.forwardRef(
|
|
|
331
343
|
ref,
|
|
332
344
|
accessibilityLabel,
|
|
333
345
|
accessibilityRole,
|
|
334
|
-
accessibilityState: {
|
|
346
|
+
accessibilityState: {
|
|
347
|
+
disabled: model.isBusy,
|
|
348
|
+
selected: model.selected
|
|
349
|
+
},
|
|
335
350
|
testID,
|
|
336
351
|
disabled: model.isBusy,
|
|
337
352
|
onPress: model.onPress,
|