@ultraviolet/form 6.1.2 → 6.2.1
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/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/asyncToGenerator.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/typeof.js +1 -1
- package/dist/components/CheckboxField/index.js +2 -2
- package/dist/components/CheckboxGroupField/index.js +3 -3
- package/dist/components/DateInputField/index.js +2 -2
- package/dist/components/FileInputField/index.js +2 -2
- package/dist/components/Form/index.js +2 -2
- package/dist/components/NumberInputField/index.js +2 -2
- package/dist/components/RadioField/index.js +3 -3
- package/dist/components/RadioGroupField/index.js +2 -2
- package/dist/components/SelectInputField/index.js +3 -3
- package/dist/components/SelectableCardField/index.js +2 -2
- package/dist/components/SelectableCardGroupField/SelectableCardGroupField.js +2 -2
- package/dist/components/SelectableCardOptionGroupField/index.js +2 -2
- package/dist/components/SliderField/index.js +3 -3
- package/dist/components/SwitchButtonField/index.js +2 -2
- package/dist/components/TagInputField/index.js +2 -2
- package/dist/components/TextAreaField/index.js +2 -2
- package/dist/components/TextInputField/index.js +2 -2
- package/dist/components/TimeInputField/index.js +2 -2
- package/dist/components/ToggleField/index.js +2 -2
- package/dist/components/ToggleGroupField/index.js +2 -2
- package/dist/components/UnitInputField/index.js +2 -2
- package/dist/components/VerificationCodeField/index.js +2 -2
- package/dist/components/compositions/CodeEditorField/index.d.ts +11 -0
- package/dist/components/compositions/CodeEditorField/index.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditorField/index.js +50 -0
- package/dist/components/compositions/CustomerSatisfactionField/index.d.ts +9 -0
- package/dist/components/compositions/CustomerSatisfactionField/index.d.ts.map +1 -0
- package/dist/components/compositions/CustomerSatisfactionField/index.js +20 -0
- package/dist/components/compositions/OfferListField/index.js +1 -1
- package/dist/components/compositions/OptionSelectorField/index.js +2 -2
- package/dist/components/compositions/index.d.ts +2 -0
- package/dist/components/compositions/index.d.ts.map +1 -1
- package/dist/components/compositions/index.js +3 -1
- package/dist/providers/ErrorContext/index.js +1 -1
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/asyncToGenerator.js
|
|
4
4
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
5
5
|
try {
|
|
6
6
|
var i = n[a](c);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
import { toPropertyKey } from "./toPropertyKey.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/defineProperty.js
|
|
5
5
|
function _defineProperty(e, r, t) {
|
|
6
6
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
7
|
value: t,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
import { _defineProperty } from "./defineProperty.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/objectSpread2.js
|
|
5
5
|
function ownKeys(e, r) {
|
|
6
6
|
var t = Object.keys(e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/objectWithoutProperties.js
|
|
5
5
|
function _objectWithoutProperties(e, t) {
|
|
6
6
|
if (null == e) return {};
|
|
7
7
|
var o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/objectWithoutPropertiesLoose.js
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
5
5
|
if (null == r) return {};
|
|
6
6
|
var t = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
import { _typeof } from "./typeof.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/toPrimitive.js
|
|
5
5
|
function toPrimitive(t, r) {
|
|
6
6
|
if ("object" != _typeof(t) || !t) return t;
|
|
7
7
|
var e = t[Symbol.toPrimitive];
|
|
@@ -2,7 +2,7 @@ import { __name } from "../../_rolldown/runtime.js";
|
|
|
2
2
|
import { _typeof } from "./typeof.js";
|
|
3
3
|
import { toPrimitive } from "./toPrimitive.js";
|
|
4
4
|
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
5
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/toPropertyKey.js
|
|
6
6
|
function toPropertyKey(t) {
|
|
7
7
|
var i = toPrimitive(t, "string");
|
|
8
8
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __name } from "../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/typeof.js
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { Checkbox } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { CheckboxGroup } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
|
-
import { Children, isValidElement, useCallback } from "react";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { Children, isValidElement, useCallback } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/CheckboxGroupField/index.tsx
|
|
12
12
|
const _excluded = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { maxDateValidator } from "../../validators/maxDate.js";
|
|
7
7
|
import { minDateValidator } from "../../validators/minDate.js";
|
|
8
8
|
import { DateInput } from "@ultraviolet/ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { FileInput } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
4
|
import { ErrorProvider } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
5
5
|
import { defaultErrors } from "./defaultErrors.js";
|
|
6
|
-
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.
|
|
6
|
+
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/asyncToGenerator.js";
|
|
7
7
|
import { FormProvider } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { isInteger } from "../../validators/isInteger.js";
|
|
7
7
|
import { NumberInput } from "@ultraviolet/ui";
|
|
8
8
|
import { useController } from "react-hook-form";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { Radio } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useMemo } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/RadioField/index.tsx
|
|
12
12
|
const _excluded = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { RadioGroup } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { SelectInput } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
|
-
import { useCallback } from "react";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useCallback } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/SelectInputField/index.tsx
|
|
12
12
|
const _excluded = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
5
5
|
import { SelectableCard } from "@ultraviolet/ui";
|
|
6
6
|
import { useController } from "react-hook-form";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { SelectableCardGroup } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { SelectableCardOptionGroup } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { Slider } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useMemo } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/SliderField/index.tsx
|
|
12
12
|
const _excluded = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
5
5
|
import { SwitchButton } from "@ultraviolet/ui";
|
|
6
6
|
import { useController } from "react-hook-form";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { validateRegex } from "../../utils/validateRegex.js";
|
|
7
7
|
import { TagInput } from "@ultraviolet/ui";
|
|
8
8
|
import { useController } from "react-hook-form";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { validateRegex } from "../../utils/validateRegex.js";
|
|
7
7
|
import { TextArea } from "@ultraviolet/ui";
|
|
8
8
|
import { useController } from "react-hook-form";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { validateRegex } from "../../utils/validateRegex.js";
|
|
7
7
|
import { TextInput } from "@ultraviolet/ui";
|
|
8
8
|
import { useController } from "react-hook-form";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { TimeInput } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { Toggle } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { ToggleGroup } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { UnitInput } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { VerificationCode } from "@ultraviolet/ui";
|
|
7
7
|
import { useController } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CodeEditor } from '@ultraviolet/ui/compositions/CodeEditor';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
4
|
+
import type { BaseFieldProps } from '../../../types';
|
|
5
|
+
export type CodeEditorFieldProps<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TFieldName> & Omit<ComponentProps<typeof CodeEditor>, 'value' | 'onChange'> & {
|
|
6
|
+
regex?: (RegExp | RegExp[])[];
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
onBlur?: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const CodeEditorField: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, onChange, 'aria-label': ariaLabel, 'data-testid': dataTestId, required, validate, onBlur, ...props }: CodeEditorFieldProps<TFieldValues, TFieldName>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/CodeEditorField/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,MAAM,oBAAoB,CAC9B,YAAY,SAAS,WAAW,EAChC,UAAU,SAAS,SAAS,CAAC,YAAY,CAAC,IACxC,cAAc,CAAC,YAAY,EAAE,UAAU,CAAC,GAC1C,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC9D,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAA;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA;AAEH,eAAO,MAAM,eAAe,GAC1B,YAAY,sBACZ,UAAU,oQA0CX,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
3
|
+
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
4
|
+
import { Stack } from "@ultraviolet/ui";
|
|
5
|
+
import { CodeEditor } from "@ultraviolet/ui/compositions/CodeEditor";
|
|
6
|
+
import { useController } from "react-hook-form";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/compositions/CodeEditorField/index.tsx
|
|
10
|
+
const _excluded = [
|
|
11
|
+
"name",
|
|
12
|
+
"onChange",
|
|
13
|
+
"aria-label",
|
|
14
|
+
"data-testid",
|
|
15
|
+
"required",
|
|
16
|
+
"validate",
|
|
17
|
+
"onBlur"
|
|
18
|
+
];
|
|
19
|
+
const CodeEditorField = (_ref) => {
|
|
20
|
+
let { name, onChange, "aria-label": ariaLabel, "data-testid": dataTestId, required = false, validate, onBlur } = _ref;
|
|
21
|
+
let props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
const { field, fieldState: { error } } = useController({
|
|
23
|
+
name,
|
|
24
|
+
rules: {
|
|
25
|
+
required,
|
|
26
|
+
validate
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ jsx(Stack, {
|
|
30
|
+
gap: 1,
|
|
31
|
+
children: /* @__PURE__ */ jsx(CodeEditor, _objectSpread2({
|
|
32
|
+
"aria-label": ariaLabel,
|
|
33
|
+
"data-testid": dataTestId,
|
|
34
|
+
error: error === null || error === void 0 ? void 0 : error.message,
|
|
35
|
+
onBlur: () => {
|
|
36
|
+
field.onBlur();
|
|
37
|
+
onBlur === null || onBlur === void 0 || onBlur(field.value);
|
|
38
|
+
},
|
|
39
|
+
onChange: (value) => {
|
|
40
|
+
field.onChange(value);
|
|
41
|
+
onChange === null || onChange === void 0 || onChange(value);
|
|
42
|
+
},
|
|
43
|
+
required,
|
|
44
|
+
value: field.value
|
|
45
|
+
}, props))
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { CodeEditorField };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import type { BaseFieldProps } from '../../../types';
|
|
3
|
+
type CustomerSatisfactionFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TName> & {
|
|
4
|
+
name: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const CustomerSatisfactionField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, required, }: CustomerSatisfactionFieldProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/CustomerSatisfactionField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,KAAK,8BAA8B,CACjC,YAAY,SAAS,WAAW,EAChC,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,IACnC,cAAc,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,YAAY,sBACZ,KAAK,gLAeN,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { useController } from "react-hook-form";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { CustomerSatisfaction } from "@ultraviolet/ui/compositions/CustomerSatisfaction";
|
|
5
|
+
|
|
6
|
+
//#region src/components/compositions/CustomerSatisfactionField/index.tsx
|
|
7
|
+
const CustomerSatisfactionField = ({ name, required }) => {
|
|
8
|
+
var _field$value;
|
|
9
|
+
const { field } = useController({
|
|
10
|
+
name,
|
|
11
|
+
rules: { required }
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ jsx(CustomerSatisfaction, {
|
|
14
|
+
onChange: field.onChange,
|
|
15
|
+
value: (_field$value = field.value) !== null && _field$value !== void 0 ? _field$value : 1
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { CustomerSatisfactionField };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { useErrors } from "../../../providers/ErrorContext/index.js";
|
|
3
3
|
import { Label, Stack, Text } from "@ultraviolet/ui";
|
|
4
|
-
import { OfferList } from "@ultraviolet/ui/compositions/OfferList";
|
|
5
4
|
import { useController } from "react-hook-form";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { OfferList } from "@ultraviolet/ui/compositions/OfferList";
|
|
7
7
|
|
|
8
8
|
//#region src/components/compositions/OfferListField/index.tsx
|
|
9
9
|
const OfferListField = ({ expandable, type = "radio", columns, control, children, loading, autoCollapse, className, id, name, label, required, value, onChange, shouldUnregister }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js";
|
|
4
|
+
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
3
5
|
import { useErrors } from "../../../providers/ErrorContext/index.js";
|
|
4
|
-
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js";
|
|
5
|
-
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
6
6
|
import { useController } from "react-hook-form";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { OptionSelector } from "@ultraviolet/ui/compositions/OptionSelector";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { CodeEditorField } from './CodeEditorField';
|
|
2
|
+
export { CustomerSatisfactionField } from './CustomerSatisfactionField';
|
|
1
3
|
export { OfferListField } from './OfferListField';
|
|
2
4
|
export { OptionSelectorField } from './OptionSelectorField';
|
|
3
5
|
export { PlansField } from './PlansField';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/compositions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/compositions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CodeEditorField } from "./CodeEditorField/index.js";
|
|
2
|
+
import { CustomerSatisfactionField } from "./CustomerSatisfactionField/index.js";
|
|
1
3
|
import { OfferListField } from "./OfferListField/index.js";
|
|
2
4
|
import { OptionSelectorField } from "./OptionSelectorField/index.js";
|
|
3
5
|
import { PlansField } from "./PlansField/index.js";
|
|
4
6
|
|
|
5
|
-
export { OfferListField, OptionSelectorField, PlansField };
|
|
7
|
+
export { CodeEditorField, CustomerSatisfactionField, OfferListField, OptionSelectorField, PlansField };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/providers/ErrorContext/index.tsx
|
|
7
7
|
const ErrorContext = createContext(void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/form",
|
|
3
|
-
"version": "6.1
|
|
3
|
+
"version": "6.2.1",
|
|
4
4
|
"description": "Ultraviolet Form",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"@types/react-dom": "19.2.3",
|
|
67
67
|
"react": "19.2.4",
|
|
68
68
|
"react-dom": "19.2.4",
|
|
69
|
-
"vite": "8.0.0-beta.
|
|
70
|
-
"@repo/config": "0.0.
|
|
69
|
+
"vite": "8.0.0-beta.15",
|
|
70
|
+
"@repo/config": "0.0.2",
|
|
71
71
|
"@utils/test": "0.0.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@babel/runtime": "7.28.6",
|
|
75
|
-
"react-hook-form": "7.71.
|
|
76
|
-
"@ultraviolet/icons": "5.1.
|
|
77
|
-
"@ultraviolet/ui": "3.
|
|
78
|
-
"@ultraviolet/themes": "3.1.
|
|
75
|
+
"react-hook-form": "7.71.2",
|
|
76
|
+
"@ultraviolet/icons": "5.1.5",
|
|
77
|
+
"@ultraviolet/ui": "3.11.1",
|
|
78
|
+
"@ultraviolet/themes": "3.1.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
|