@ttoss/forms 0.35.2 → 0.36.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Form, useForm, yupResolver } from "../chunk-
|
|
3
|
+
import { Form, useForm, yupResolver } from "../chunk-2ZLGQ7EE.js";
|
|
4
4
|
import { __name } from "../chunk-QJQFXN4B.js";
|
|
5
5
|
|
|
6
6
|
// src/MultistepForm/MultistepForm.tsx
|
|
@@ -134,7 +134,7 @@ var MultistepFormStepper = /* @__PURE__ */__name(({
|
|
|
134
134
|
}, submitLabel));
|
|
135
135
|
}, "MultistepFormStepper");
|
|
136
136
|
|
|
137
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.2.
|
|
137
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.2.1/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
138
138
|
import React5 from "react";
|
|
139
139
|
|
|
140
140
|
// ../../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
@@ -2263,7 +2263,7 @@ var {
|
|
|
2263
2263
|
_api
|
|
2264
2264
|
} = IconifyIconComponent;
|
|
2265
2265
|
|
|
2266
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.2.
|
|
2266
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.2.1/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
2267
2267
|
var Icon = React5.forwardRef((props, ref) => {
|
|
2268
2268
|
const newProps = {
|
|
2269
2269
|
...props,
|
|
@@ -469,14 +469,16 @@ var FormFieldRadioCard = /* @__PURE__ */__name(({
|
|
|
469
469
|
}
|
|
470
470
|
}, options.map(option => {
|
|
471
471
|
const key = `form-field-radio-${name}-${option.value}`;
|
|
472
|
+
const isSelected = field.value === option.value;
|
|
472
473
|
return /* @__PURE__ */React.createElement(Box2, {
|
|
473
474
|
key,
|
|
474
475
|
sx: {
|
|
475
476
|
gap: "2",
|
|
476
477
|
width,
|
|
477
478
|
border: "md",
|
|
478
|
-
borderColor: "
|
|
479
|
-
borderRadius: "md"
|
|
479
|
+
borderColor: isSelected ? "input.background.accent.default" : "input.border.muted.default",
|
|
480
|
+
borderRadius: "md",
|
|
481
|
+
backgroundColor: isSelected ? "feedback.background.positive.default" : "transparent"
|
|
480
482
|
}
|
|
481
483
|
}, /* @__PURE__ */React.createElement(Label2, {
|
|
482
484
|
sx: {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { Controller, Form, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldDatePicker, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-
|
|
2
|
+
import { Controller, Form, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldDatePicker, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-2ZLGQ7EE.js";
|
|
3
3
|
import { FormErrorMessage, FormField, FormFieldPatternFormat } from "./chunk-QJQFXN4B.js";
|
|
4
4
|
export { Controller, Form, FormErrorMessage, FormField, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldDatePicker, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldPatternFormat, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8.0",
|
|
42
|
-
"@ttoss/components": "^2.10.
|
|
43
|
-
"@ttoss/
|
|
44
|
-
"@ttoss/
|
|
42
|
+
"@ttoss/components": "^2.10.2",
|
|
43
|
+
"@ttoss/ui": "^6.1.0",
|
|
44
|
+
"@ttoss/react-i18n": "^2.0.25"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/jest": "^30.0.0",
|
|
48
|
-
"@types/react": "^19.2.
|
|
48
|
+
"@types/react": "^19.2.7",
|
|
49
49
|
"jest": "^30.2.0",
|
|
50
|
-
"react": "^19.2.
|
|
50
|
+
"react": "^19.2.1",
|
|
51
51
|
"react-error-boundary": "^6.0.0",
|
|
52
52
|
"tsup": "^8.5.1",
|
|
53
53
|
"yup": "^1.7.1",
|
|
54
|
-
"@ttoss/components": "^2.10.1",
|
|
55
54
|
"@ttoss/config": "^1.35.12",
|
|
56
|
-
"@ttoss/
|
|
55
|
+
"@ttoss/components": "^2.10.2",
|
|
56
|
+
"@ttoss/react-i18n": "^2.0.25",
|
|
57
57
|
"@ttoss/i18n-cli": "^0.7.38",
|
|
58
|
-
"@ttoss/react-icons": "^0.5.
|
|
59
|
-
"@ttoss/test-utils": "^4.0.
|
|
60
|
-
"@ttoss/ui": "^6.0
|
|
58
|
+
"@ttoss/react-icons": "^0.5.6",
|
|
59
|
+
"@ttoss/test-utils": "^4.0.2",
|
|
60
|
+
"@ttoss/ui": "^6.1.0"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public",
|