diff --git a/CHANGELOG.md b/CHANGELOG.md index 48a4174725..b9a9e62ab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,19 @@ it according to semantic versioning. For example, if your PR adds a breaking cha should change the heading of the (upcoming) version to include a major version bump. --> +# 6.0.0-beta.22 + +## @rjsf/core + +- Updated `MultiSchemaField` and `SchemaField` to properly display `anyOf`/`oneOf` optional data fields by hiding the label and selector control when it is an optional field AND there is no form data + +## Dev / docs / playground +- Updated the `formTests.tsx` snapshots to add an `anyOf` of all arrays with different item types and removed the disabling of the optional data controls feature for the optional object with oneOfs + - Updated the snapshots in all of the themes accordingly +- Updated the playground to make the same changes as `formTests.tsx` in the `optionalDataControls.ts` sample, moving the `experimental_defaultFormStateBehavior` inside of a `liveSettings` block +- Updated the `Sample` and `LiveSettings` types to support the `liveSettings` inside of a sample +- Updated the `Playground`'s `onSampleSelected` callback to merge any `liveSettings` in the sample on top of those already used in the playground + # 6.0.0-beta.21 ## @rjsf/antd diff --git a/packages/antd/test/__snapshots__/Form.test.tsx.snap b/packages/antd/test/__snapshots__/Form.test.tsx.snap index c9fac0e474..5f09a7dcd0 100644 --- a/packages/antd/test/__snapshots__/Form.test.tsx.snap +++ b/packages/antd/test/__snapshots__/Form.test.tsx.snap @@ -4307,6 +4307,314 @@ exports[`single fields optional data controls does not show optional controls wh +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + Option 1 + + +
+ + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -5917,7 +6225,323 @@ exports[`single fields optional data controls does not show optional controls wh - + + + + + + + + +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + Option 1 + + +
+ + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -5954,10 +6578,10 @@ exports[`single fields optional data controls does not show optional controls wh >
-
-
- -
-
-
- -
-
-
+ + + + + +
@@ -8070,7 +8686,190 @@ exports[`single fields optional data controls shows "add" and "remove" optional
- + +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
@@ -8101,18 +8900,6 @@ exports[`single fields optional data controls shows "add" and "remove" optional } } > -
- -
-
-
-
- - - - - - Option 1 - - -
- - - - - -
-
+
-
-
-
-
-
+
+ optionalArrayWithAnyofs + +
+
+
+
+
@@ -10036,18 +10721,6 @@ exports[`single fields optional data controls shows "add" and "remove" optional } } > -
- -
-
-
-
- - - - - - Option 1 - - -
- - - - - -
-
+
@@ -10230,9 +10805,131 @@ exports[`single fields optional data controls shows "add" and "remove" optional "paddingRight": 12, } } - /> + > + + No data for optional field + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
-
-
-
-
- -
-
-
-
- - - - -
-
-
-
-
-
+ No data for optional field +
@@ -11083,18 +11713,6 @@ exports[`single fields optional data controls shows "add" optional controls when } } > -
- -
-
+
+
- - - - - - Option 1 - - -
- - - - - +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+ optionalArrayWithAnyofs + +
+
+
+ + + + + +
+
+
@@ -11979,21 +12678,151 @@ exports[`single fields optional data controls shows "add" optional controls when viewBox="64 64 896 896" width="1em" > - - - - - - + + + + + + +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + No data for optional field + +
+
+
+
+
- +
@@ -12024,18 +12853,6 @@ exports[`single fields optional data controls shows "add" optional controls when } } > -
- -
-
-
-
- - - - - - Option 1 - - -
- - - - - -
-
+
-
-
-
-
-
- -
-
-
-
- - - - -
-
-
-
-
-
+ No data for optional field +
diff --git a/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap b/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap index 949b0504b6..fdec33e79a 100644 --- a/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap +++ b/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap @@ -6705,7 +6705,7 @@ exports[`single fields optional data controls does not show optional controls wh } } -.emotion-132 { +.emotion-167 { margin-top: var(--chakra-spacing-3); } @@ -7890,1465 +7890,12 @@ exports[`single fields optional data controls does not show optional controls wh
-
-
- -
-
- -
- -`; - -exports[`single fields optional data controls does not show optional controls when not turned on in uiSchema, readonly and no formData 1`] = ` -@layer recipes { - .emotion-0 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - width: var(--chakra-sizes-full); - } - - .emotion-0>:not(style, [hidden])~:not(style, [hidden]) { - --space-y-reverse: 0; - margin-top: calc(var(--chakra-spacing-4) * calc(1 - var(--space-y-reverse))); - margin-bottom: calc(var(--chakra-spacing-4) * var(--space-y-reverse)); - } -} - -@layer recipes { - .emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - width: var(--chakra-sizes-full); - gap: var(--chakra-spacing-4); - } -} - -.emotion-2 { - margin-top: var(--chakra-spacing-1); - margin-bottom: var(--chakra-spacing-4); -} - -@layer recipes { - .emotion-3 { - font-family: var(--chakra-fonts-heading); - font-weight: var(--chakra-font-weights-semibold); - font-size: var(--chakra-font-sizes-xl); - line-height: 1.875rem; - } -} - -@layer recipes { - .emotion-4 { - display: block; - border-color: var(--chakra-colors-border); - --separator-thickness: 1px; - border-style: solid; - border-top-width: var(--separator-thickness); - } -} - -.emotion-5 { - display: grid; - gap: var(--chakra-spacing-4); - margin-bottom: var(--chakra-spacing-4); -} - -.emotion-14 { - margin-bottom: var(--chakra-spacing-1); -} - -@layer recipes { - .emotion-14 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; - position: relative; - gap: var(--chakra-spacing-1\\.5); - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-align-items: flex-start; - -webkit-box-align: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - } -} - -@layer recipes { - .emotion-15 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: start; - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - font-weight: var(--chakra-font-weights-medium); - gap: var(--chakra-spacing-1); - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - } - - .emotion-15:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - } -} - -@layer recipes { - .emotion-16 { - width: 100%; - min-width: var(--input-height); - outline: 0; - position: relative; - -webkit-appearance: none; - -moz-appearance: none; - -ms-appearance: none; - appearance: none; - text-align: start; - border-radius: var(--chakra-radii-l2); - height: var(--input-height); - --focus-color: var(--chakra-colors-color-palette-focus-ring); - --error-color: var(--chakra-colors-border-error); - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - padding-inline: var(--chakra-spacing-3); - --input-height: var(--chakra-sizes-10); - background: var(--chakra-colors-transparent); - --bg-currentcolor: var(--chakra-colors-transparent); - border-width: 1px; - border-color: var(--chakra-colors-border); - --focus-ring-color: var(--focus-color); - } - - .emotion-16:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - cursor: not-allowed; - } - - .emotion-16:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - --focus-ring-color: var(--error-color); - border-color: var(--error-color); - } - - .emotion-16:is(:focus-visible, [data-focus-visible]) { - outline-offset: 0px; - outline-width: var(--focus-ring-width, 1px); - outline-color: var(--focus-ring-color); - outline-style: var(--focus-ring-style, solid); - border-color: var(--focus-ring-color); - } -} - -.emotion-44 { - display: grid; -} - -.emotion-45 { - justify-self: flex-end; -} - -.emotion-46 { - margin-top: var(--chakra-spacing-2); -} - -@layer recipes { - .emotion-47 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-appearance: none; - -moz-appearance: none; - -ms-appearance: none; - appearance: none; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - position: relative; - border-radius: var(--chakra-radii-l2); - white-space: nowrap; - vertical-align: middle; - border-width: 1px; - border-color: var(--chakra-colors-transparent); - cursor: var(--chakra-cursor-button); - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - outline: 0; - line-height: 1.25rem; - isolation: isolate; - font-weight: var(--chakra-font-weights-medium); - transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,translate,transform; - transition-duration: var(--chakra-durations-moderate); - --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); - height: var(--chakra-sizes-10); - min-width: var(--chakra-sizes-10); - font-size: var(--chakra-font-sizes-sm); - padding-inline: var(--chakra-spacing-4); - gap: var(--chakra-spacing-2); - background: var(--chakra-colors-color-palette-solid); - --bg-currentcolor: var(--chakra-colors-color-palette-solid); - color: var(--chakra-colors-color-palette-contrast); - } - - .emotion-47:is(:focus-visible, [data-focus-visible]) { - outline-width: var(--focus-ring-width, 2px); - outline-offset: var(--focus-ring-offset, 2px); - outline-style: var(--focus-ring-style, solid); - outline-color: var(--focus-ring-color); - } - - .emotion-47:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - cursor: not-allowed; - } - - .emotion-47 :where(svg) { - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - width: var(--chakra-sizes-5); - height: var(--chakra-sizes-5); - } - - .emotion-47:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { - --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); - background: var(--mix-background, var(--chakra-colors-color-palette-solid)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); - } - - @media (hover: hover) { - .emotion-47:is(:hover, [data-hover]):not(:disabled, [data-disabled]) { - --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); - background: var(--mix-background, var(--chakra-colors-color-palette-solid)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); - } - } -} - -.emotion-97 { - margin-bottom: var(--chakra-spacing-2); -} - -@layer recipes { - .emotion-97 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - position: relative; - min-width: 0; - word-wrap: break-word; - border-radius: var(--chakra-radii-l3); - color: var(--chakra-colors-fg); - text-align: start; - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - border-width: 1px; - border-color: var(--chakra-colors-border); - --card-padding: var(--chakra-spacing-6); - } -} - -.emotion-98 { - padding-bottom: var(--chakra-spacing-2); -} - -@layer recipes { - .emotion-98 { - padding: var(--card-padding); - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - } -} - -.emotion-99 { - margin-bottom: var(--chakra-spacing-4); -} - -.emotion-100 { - margin-bottom: var(--chakra-spacing-1); - position: relative; -} - -@layer recipes { - .emotion-100 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; - position: relative; - gap: var(--chakra-spacing-1\\.5); - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-align-items: flex-start; - -webkit-box-align: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - } -} - -@layer recipes { - .emotion-102 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - gap: var(--chakra-spacing-1\\.5); - width: var(--chakra-sizes-full); - --select-trigger-height: var(--chakra-sizes-10); - --select-trigger-padding-x: var(--chakra-spacing-3); - } -} - -@layer recipes { - .emotion-103 { - position: relative; - } -} - -@layer recipes { - .emotion-105 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - width: var(--chakra-sizes-full); - min-height: var(--select-trigger-height); - --input-height: var(--select-trigger-height); - padding-inline: var(--select-trigger-padding-x); - border-radius: var(--chakra-radii-l2); - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - text-align: start; - --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - gap: var(--chakra-spacing-2); - background: var(--chakra-colors-transparent); - --bg-currentcolor: var(--chakra-colors-transparent); - border-width: 1px; - border-color: var(--chakra-colors-border); - } - - .emotion-105:is(:focus-visible, [data-focus-visible]) { - outline-offset: 0px; - outline-width: var(--focus-ring-width, 1px); - outline-color: var(--focus-ring-color); - outline-style: var(--focus-ring-style, solid); - border-color: var(--focus-ring-color); - } - - .emotion-105:is(:placeholder-shown, [data-placeholder-shown]) { - --mix-color: color-mix(in srgb, var(--chakra-colors-fg-muted) 80%, transparent); - color: var(--mix-color, var(--chakra-colors-fg-muted)); - } - - .emotion-105:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - cursor: not-allowed; - } - - .emotion-105:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - border-color: var(--chakra-colors-border-error); - } - - .emotion-105:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { - border-color: var(--chakra-colors-border-emphasized); - } -} - -@layer recipes { - .emotion-106 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - text-wrap: wrap; - max-width: 80%; - } -} - -@layer recipes { - .emotion-107 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-1); - position: absolute; - inset-inline-end: 0; - top: 0; - bottom: 0; - padding-inline: var(--select-trigger-padding-x); - pointer-events: none; - } -} - -@layer recipes { - .emotion-108 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - color: var(--chakra-colors-fg-muted); - } - - .emotion-108:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - color: var(--chakra-colors-fg-subtle); - } - - .emotion-108:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - color: var(--chakra-colors-fg-error); - } - - .emotion-108 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); - } -} - -.emotion-109 { - fill: none; - stroke: currentColor; - stroke-width: 2; - stroke-linecap: round; - stroke-linejoin: round; -} - -.emotion-110 { - min-width: 100%!important; - z-index: 2!important; - top: calc(100% + 5px)!important; -} - -@layer recipes { - .emotion-111 { - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - z-index: var(--chakra-z-index-dropdown); - border-radius: var(--chakra-radii-l2); - outline: 0; - max-height: var(--chakra-sizes-96); - overflow-y: auto; - box-shadow: var(--chakra-shadows-md); - padding: var(--chakra-spacing-1); - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - } - - .emotion-111:is([open], [data-open], [data-state=open]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fast); - animation-duration: var(--chakra-durations-fast); - } - - .emotion-111:is([open], [data-open], [data-state=open])[data-placement^=top] { - -webkit-animation-name: slide-from-bottom,fade-in; - animation-name: slide-from-bottom,fade-in; - } - - .emotion-111:is([open], [data-open], [data-state=open])[data-placement^=bottom] { - -webkit-animation-name: slide-from-top,fade-in; - animation-name: slide-from-top,fade-in; - } - - .emotion-111:is([open], [data-open], [data-state=open])[data-placement^=left] { - -webkit-animation-name: slide-from-right,fade-in; - animation-name: slide-from-right,fade-in; - } - - .emotion-111:is([open], [data-open], [data-state=open])[data-placement^=right] { - -webkit-animation-name: slide-from-left,fade-in; - animation-name: slide-from-left,fade-in; - } - - .emotion-111:is([closed], [data-closed], [data-state=closed]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fastest); - animation-duration: var(--chakra-durations-fastest); - } - - .emotion-111:is([closed], [data-closed], [data-state=closed])[data-placement^=top] { - -webkit-animation-name: slide-to-bottom,fade-out; - animation-name: slide-to-bottom,fade-out; - } - - .emotion-111:is([closed], [data-closed], [data-state=closed])[data-placement^=bottom] { - -webkit-animation-name: slide-to-top,fade-out; - animation-name: slide-to-top,fade-out; - } - - .emotion-111:is([closed], [data-closed], [data-state=closed])[data-placement^=left] { - -webkit-animation-name: slide-to-right,fade-out; - animation-name: slide-to-right,fade-out; - } - - .emotion-111:is([closed], [data-closed], [data-state=closed])[data-placement^=right] { - -webkit-animation-name: slide-to-left,fade-out; - animation-name: slide-to-left,fade-out; - } -} - -@layer recipes { - .emotion-112 { - position: relative; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-2); - cursor: var(--chakra-cursor-option); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: start; - border-radius: var(--chakra-radii-l1); - padding-block: var(--chakra-spacing-1\\.5); - padding-inline: var(--chakra-spacing-2); - } - - .emotion-112[data-highlighted] { - --mix-background: color-mix(in srgb, var(--chakra-colors-bg-emphasized) 60%, transparent); - background: var(--mix-background, var(--chakra-colors-bg-emphasized)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-bg-emphasized)); - } - - .emotion-112:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - pointer-events: none; - opacity: 0.5; - } - - .emotion-112 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); - } -} - -@layer recipes { - .emotion-113 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - } -} - -.emotion-132 { - margin-top: var(--chakra-spacing-3); -} - -
-
-
-
-
-
- test -
- -
-
-
-
-
-
-
-
-
- nestedObjectOptional -
- -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
- deepObjectOptional -
- -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deepObject -
- -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deepArrayOptional -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deepArrayOptional2 -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deepArray -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- nestedArrayOptional -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- nestedObject -
- -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- nestedArray -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
+ + + Add Item + +
@@ -9767,7 +8277,7 @@ exports[`single fields optional data controls does not show optional controls wh
-
+ nestedObjectOptional + +
@@ -10853,7 +9052,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional className="rjsf-field rjsf-field-object" >
-
-
- deepObjectOptional -
-
- -
+ deepObjectOptional +
+ > +
+
+
+
+
+
+ + +
+
+
+
+
+
@@ -10925,7 +9148,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional className="rjsf-field rjsf-field-object" >
+
-
+ deepArrayOptional2 +
+
+
+ +
+
@@ -11168,7 +9398,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional className="rjsf-field rjsf-field-array" >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedObject +
+ +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- nestedArrayOptional -
-
- -
+ nestedArray +
-
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+ Option 1 + + + + +
+
+
- - + +
-
+
-
-
- -
-
-
-
-
-
- + Option 1 + +
+
+ Option 2 + +
+
+ Option 3 + +
+
+
+
-
-
-
- -
-
-
-
-
-
-
-
- nestedObject -
- -
-
-
- - +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
@@ -11558,89 +10144,12 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
-
-
-
-
-
-
- nestedArray -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ deepObjectOptional +
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+ deepObject +
+ +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ deepArrayOptional +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ deepArrayOptional2 +
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ deepArray +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedArrayOptional +
+
+ +
+ +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedObject +
+ +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedArray +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalObjectWithOneofs +
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+ +`; + +exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema, readonly and formData 1`] = ` +@layer recipes { + .emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -12489,30 +12327,18 @@ exports[`single fields optional data controls shows "add" and "remove" optional -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - position: relative; - min-width: 0; - word-wrap: break-word; - border-radius: var(--chakra-radii-l3); - color: var(--chakra-colors-fg); - text-align: start; - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - border-width: 1px; - border-color: var(--chakra-colors-border); - --card-padding: var(--chakra-spacing-6); + width: var(--chakra-sizes-full); } -} -.emotion-100 { - padding-bottom: var(--chakra-spacing-2); + .emotion-0>:not(style, [hidden])~:not(style, [hidden]) { + --space-y-reverse: 0; + margin-top: calc(var(--chakra-spacing-4) * calc(1 - var(--space-y-reverse))); + margin-bottom: calc(var(--chakra-spacing-4) * var(--space-y-reverse)); + } } @layer recipes { - .emotion-100 { - padding: var(--card-padding); - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; + .emotion-1 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -12520,20 +12346,47 @@ exports[`single fields optional data controls shows "add" and "remove" optional -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; + width: var(--chakra-sizes-full); + gap: var(--chakra-spacing-4); } } -.emotion-101 { +.emotion-2 { + margin-top: var(--chakra-spacing-1); + margin-bottom: var(--chakra-spacing-4); +} + +@layer recipes { + .emotion-3 { + font-family: var(--chakra-fonts-heading); + font-weight: var(--chakra-font-weights-semibold); + font-size: var(--chakra-font-sizes-xl); + line-height: 1.875rem; + } +} + +@layer recipes { + .emotion-4 { + display: block; + border-color: var(--chakra-colors-border); + --separator-thickness: 1px; + border-style: solid; + border-top-width: var(--separator-thickness); + } +} + +.emotion-5 { + display: grid; + gap: var(--chakra-spacing-4); margin-bottom: var(--chakra-spacing-4); } -.emotion-102 { +.emotion-14 { margin-bottom: var(--chakra-spacing-1); - position: relative; } @layer recipes { - .emotion-102 { + .emotion-14 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -12552,302 +12405,393 @@ exports[`single fields optional data controls shows "add" and "remove" optional } @layer recipes { - .emotion-104 { + .emotion-15 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - gap: var(--chakra-spacing-1\\.5); - width: var(--chakra-sizes-full); - --select-trigger-height: var(--chakra-sizes-10); - --select-trigger-padding-x: var(--chakra-spacing-3); + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + text-align: start; + font-size: var(--chakra-font-sizes-sm); + line-height: 1.25rem; + font-weight: var(--chakra-font-weights-medium); + gap: var(--chakra-spacing-1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + + .emotion-15:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + opacity: 0.5; } } @layer recipes { - .emotion-105 { + .emotion-16 { + width: 100%; + min-width: var(--input-height); + outline: 0; position: relative; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + text-align: start; + border-radius: var(--chakra-radii-l2); + height: var(--input-height); + --focus-color: var(--chakra-colors-color-palette-focus-ring); + --error-color: var(--chakra-colors-border-error); + font-size: var(--chakra-font-sizes-sm); + line-height: 1.25rem; + padding-inline: var(--chakra-spacing-3); + --input-height: var(--chakra-sizes-10); + background: var(--chakra-colors-transparent); + --bg-currentcolor: var(--chakra-colors-transparent); + border-width: 1px; + border-color: var(--chakra-colors-border); + --focus-ring-color: var(--focus-color); + } + + .emotion-16:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + opacity: 0.5; + cursor: not-allowed; + } + + .emotion-16:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { + --focus-ring-color: var(--error-color); + border-color: var(--error-color); + } + + .emotion-16:is(:focus-visible, [data-focus-visible]) { + outline-offset: 0px; + outline-width: var(--focus-ring-width, 1px); + outline-color: var(--focus-ring-color); + outline-style: var(--focus-ring-style, solid); + border-color: var(--focus-ring-color); } } +.emotion-39 { + display: grid; +} + +.emotion-40 { + justify-self: flex-end; +} + +.emotion-41 { + margin-top: var(--chakra-spacing-2); +} + @layer recipes { - .emotion-107 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; + .emotion-42 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - width: var(--chakra-sizes-full); - min-height: var(--select-trigger-height); - --input-height: var(--select-trigger-height); - padding-inline: var(--select-trigger-padding-x); - border-radius: var(--chakra-radii-l2); + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - text-align: start; + position: relative; + border-radius: var(--chakra-radii-l2); + white-space: nowrap; + vertical-align: middle; + border-width: 1px; + border-color: var(--chakra-colors-transparent); + cursor: var(--chakra-cursor-button); + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + outline: 0; + line-height: 1.25rem; + isolation: isolate; + font-weight: var(--chakra-font-weights-medium); + transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,translate,transform; + transition-duration: var(--chakra-durations-moderate); --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); + height: var(--chakra-sizes-10); + min-width: var(--chakra-sizes-10); font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - gap: var(--chakra-spacing-2); - background: var(--chakra-colors-transparent); - --bg-currentcolor: var(--chakra-colors-transparent); - border-width: 1px; - border-color: var(--chakra-colors-border); + padding-inline: var(--chakra-spacing-4); + gap: var(--chakra-spacing-2); + background: var(--chakra-colors-color-palette-solid); + --bg-currentcolor: var(--chakra-colors-color-palette-solid); + color: var(--chakra-colors-color-palette-contrast); } - .emotion-107:is(:focus-visible, [data-focus-visible]) { - outline-offset: 0px; - outline-width: var(--focus-ring-width, 1px); - outline-color: var(--focus-ring-color); + .emotion-42:is(:focus-visible, [data-focus-visible]) { + outline-width: var(--focus-ring-width, 2px); + outline-offset: var(--focus-ring-offset, 2px); outline-style: var(--focus-ring-style, solid); - border-color: var(--focus-ring-color); - } - - .emotion-107:is(:placeholder-shown, [data-placeholder-shown]) { - --mix-color: color-mix(in srgb, var(--chakra-colors-fg-muted) 80%, transparent); - color: var(--mix-color, var(--chakra-colors-fg-muted)); + outline-color: var(--focus-ring-color); } - .emotion-107:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + .emotion-42:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { opacity: 0.5; cursor: not-allowed; } - .emotion-107:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - border-color: var(--chakra-colors-border-error); + .emotion-42 :where(svg) { + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + width: var(--chakra-sizes-5); + height: var(--chakra-sizes-5); } - .emotion-107:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { - border-color: var(--chakra-colors-border-emphasized); + .emotion-42:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); } -} -@layer recipes { - .emotion-108 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - text-wrap: wrap; - max-width: 80%; + @media (hover: hover) { + .emotion-42:is(:hover, [data-hover]):not(:disabled, [data-disabled]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); + } } } +.emotion-64 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: flex-end; + -webkit-box-align: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + padding-block: var(--chakra-spacing-1); +} + +.emotion-65 { + width: 100%; +} + @layer recipes { - .emotion-109 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-1); - position: absolute; - inset-inline-end: 0; - top: 0; - bottom: 0; - padding-inline: var(--select-trigger-padding-x); - pointer-events: none; + .emotion-70 { + color: var(--chakra-colors-fg-error); + line-height: 1; } } +.emotion-72 { + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: start; + -ms-flex-pack: start; + -webkit-justify-content: flex-start; + justify-content: flex-start; + margin-bottom: var(--chakra-spacing-1); +} + @layer recipes { - .emotion-110 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - color: var(--chakra-colors-fg-muted); + .emotion-72 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + gap: 0!important; + isolation: isolate; + position: relative; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; } - .emotion-110:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - color: var(--chakra-colors-fg-subtle); + .emotion-72 [data-group-item]:is(:focus-visible, [data-focus-visible]) { + z-index: 1; } - .emotion-110:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - color: var(--chakra-colors-fg-error); + .emotion-72>*[data-first] { + border-start-end-radius: 0!important; + border-end-end-radius: 0!important; + -webkit-margin-end: -1px; + margin-inline-end: -1px; } - .emotion-110 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); + .emotion-72>*[data-between] { + border-radius: 0!important; + -webkit-margin-end: -1px; + margin-inline-end: -1px; } -} -.emotion-111 { - fill: none; - stroke: currentColor; - stroke-width: 2; - stroke-linecap: round; - stroke-linejoin: round; + .emotion-72>*[data-last] { + border-start-start-radius: 0!important; + border-end-start-radius: 0!important; + } } -.emotion-112 { - min-width: 100%!important; - z-index: 2!important; - top: calc(100% + 5px)!important; +.emotion-73 { + padding-inline: 0; + padding-block: 0; } @layer recipes { - .emotion-113 { - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - z-index: var(--chakra-z-index-dropdown); + .emotion-73 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + position: relative; border-radius: var(--chakra-radii-l2); + white-space: nowrap; + vertical-align: middle; + border-width: 1px; + border-color: var(--chakra-colors-transparent); + cursor: var(--chakra-cursor-button); + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; outline: 0; - max-height: var(--chakra-sizes-96); - overflow-y: auto; - box-shadow: var(--chakra-shadows-md); - padding: var(--chakra-spacing-1); - font-size: var(--chakra-font-sizes-sm); line-height: 1.25rem; + isolation: isolate; + font-weight: var(--chakra-font-weights-medium); + transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,translate,transform; + transition-duration: var(--chakra-durations-moderate); + --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); + height: var(--chakra-sizes-10); + min-width: var(--chakra-sizes-10); + font-size: var(--chakra-font-sizes-sm); + padding-inline: var(--chakra-spacing-4); + gap: var(--chakra-spacing-2); + background: var(--chakra-colors-color-palette-solid); + --bg-currentcolor: var(--chakra-colors-color-palette-solid); + color: var(--chakra-colors-color-palette-contrast); } - .emotion-113:is([open], [data-open], [data-state=open]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fast); - animation-duration: var(--chakra-durations-fast); - } - - .emotion-113:is([open], [data-open], [data-state=open])[data-placement^=top] { - -webkit-animation-name: slide-from-bottom,fade-in; - animation-name: slide-from-bottom,fade-in; - } - - .emotion-113:is([open], [data-open], [data-state=open])[data-placement^=bottom] { - -webkit-animation-name: slide-from-top,fade-in; - animation-name: slide-from-top,fade-in; - } - - .emotion-113:is([open], [data-open], [data-state=open])[data-placement^=left] { - -webkit-animation-name: slide-from-right,fade-in; - animation-name: slide-from-right,fade-in; + .emotion-73:is(:focus-visible, [data-focus-visible]) { + outline-width: var(--focus-ring-width, 2px); + outline-offset: var(--focus-ring-offset, 2px); + outline-style: var(--focus-ring-style, solid); + outline-color: var(--focus-ring-color); } - .emotion-113:is([open], [data-open], [data-state=open])[data-placement^=right] { - -webkit-animation-name: slide-from-left,fade-in; - animation-name: slide-from-left,fade-in; + .emotion-73:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + opacity: 0.5; + cursor: not-allowed; } - .emotion-113:is([closed], [data-closed], [data-state=closed]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fastest); - animation-duration: var(--chakra-durations-fastest); + .emotion-73 :where(svg) { + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + width: var(--chakra-sizes-5); + height: var(--chakra-sizes-5); } - .emotion-113:is([closed], [data-closed], [data-state=closed])[data-placement^=top] { - -webkit-animation-name: slide-to-bottom,fade-out; - animation-name: slide-to-bottom,fade-out; + .emotion-73:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); } - .emotion-113:is([closed], [data-closed], [data-state=closed])[data-placement^=bottom] { - -webkit-animation-name: slide-to-top,fade-out; - animation-name: slide-to-top,fade-out; + @media (hover: hover) { + .emotion-73:is(:hover, [data-hover]):not(:disabled, [data-disabled]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); + } } +} - .emotion-113:is([closed], [data-closed], [data-state=closed])[data-placement^=left] { - -webkit-animation-name: slide-to-right,fade-out; - animation-name: slide-to-right,fade-out; - } +.emotion-73 :where(svg) { + font-size: 1.2em; +} - .emotion-113:is([closed], [data-closed], [data-state=closed])[data-placement^=right] { - -webkit-animation-name: slide-to-left,fade-out; - animation-name: slide-to-left,fade-out; - } +.emotion-99 { + margin-bottom: var(--chakra-spacing-2); } @layer recipes { - .emotion-114 { - position: relative; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + .emotion-99 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-2); - cursor: var(--chakra-cursor-option); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + position: relative; + min-width: 0; + word-wrap: break-word; + border-radius: var(--chakra-radii-l3); + color: var(--chakra-colors-fg); text-align: start; - border-radius: var(--chakra-radii-l1); - padding-block: var(--chakra-spacing-1\\.5); - padding-inline: var(--chakra-spacing-2); - } - - .emotion-114[data-highlighted] { - --mix-background: color-mix(in srgb, var(--chakra-colors-bg-emphasized) 60%, transparent); - background: var(--mix-background, var(--chakra-colors-bg-emphasized)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-bg-emphasized)); - } - - .emotion-114:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - pointer-events: none; - opacity: 0.5; + background: var(--chakra-colors-bg-panel); + --bg-currentcolor: var(--chakra-colors-bg-panel); + border-width: 1px; + border-color: var(--chakra-colors-border); + --card-padding: var(--chakra-spacing-6); } +} - .emotion-114 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); - } +.emotion-100 { + padding-bottom: var(--chakra-spacing-2); } @layer recipes { - .emotion-115 { + .emotion-100 { + padding: var(--card-padding); + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; } } -.emotion-134 { +.emotion-101 { + margin-bottom: var(--chakra-spacing-4); +} + +.emotion-119 { margin-top: var(--chakra-spacing-3); } @@ -12860,7 +12804,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional className="rjsf-field rjsf-field-object" >
@@ -12984,7 +12928,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional className="rjsf-field rjsf-field-object" >
-
- deepObject -
- -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- deepArrayOptional -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+ +
+
+
+
+
- deepArrayOptional2 - - -
-
-
- - No data for optional field - +
+
+ + +
+
+
@@ -13259,12 +13080,12 @@ exports[`single fields optional data controls shows "add" and "remove" optional
- deepArray + deepArrayOptional
@@ -13296,262 +13117,35 @@ exports[`single fields optional data controls shows "add" and "remove" optional height={24} stroke="currentColor" strokeLinecap="round" - strokeLinejoin="round" - strokeWidth={2} - viewBox="0 0 24 24" - width={24} - xmlns="http://www.w3.org/2000/svg" - > - - - - Add Item - -
-
- - - - - - - - - - - -
-
-
-
-
-
-
- nestedArrayOptional -
- -
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
- + strokeLinejoin="round" + strokeWidth={2} + viewBox="0 0 24 24" + width={24} + xmlns="http://www.w3.org/2000/svg" + > + + + + Add Item + +
+
+
-
-
-
-
- -
+
- - - - - -
-
-
-
-
-
- nestedObject -
- -
-
-
-
-
- - - - - -
-
-
-
-
-
-
- nestedArray -
- -
-
-
+
-
- -
+
+
+
+ deepArray +
+ +
+
+
+
+
+ +
+
+
+
+
+
@@ -13688,10 +13270,10 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
+
-
-
- -
- -
-
- -
-
- - - -
-
-
-
-
- +
+
+
+
+
+
- Option 2
-
+
+
+
+
+
-
+ + + + + +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedObject +
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ nestedArray +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -14036,63 +13684,84 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
-
-
+
+
+
+
+
+
+ + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+ +
+
+
+ -
-
- - -
-
-
+ No data for optional field +
@@ -14110,7 +13779,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
-
- - - -
-
-
-
-
- -
- - - + />
-
- optionalObjectWithOneofs -
+
+ optionalObjectWithOneofs +
+
+ +
-
-
-
-
-
- - -
-
-
-
-
-
+ />
@@ -15613,284 +14661,149 @@ exports[`single fields optional data controls shows "add" optional controls when - - - - -
- -
- -`; - -exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema, disabled and no formData 1`] = ` -@layer recipes { - .emotion-0 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - width: var(--chakra-sizes-full); - } - - .emotion-0>:not(style, [hidden])~:not(style, [hidden]) { - --space-y-reverse: 0; - margin-top: calc(var(--chakra-spacing-4) * calc(1 - var(--space-y-reverse))); - margin-bottom: calc(var(--chakra-spacing-4) * var(--space-y-reverse)); - } -} - -@layer recipes { - .emotion-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - width: var(--chakra-sizes-full); - gap: var(--chakra-spacing-4); - } -} - -.emotion-2 { - margin-top: var(--chakra-spacing-1); - margin-bottom: var(--chakra-spacing-4); -} - -@layer recipes { - .emotion-3 { - font-family: var(--chakra-fonts-heading); - font-weight: var(--chakra-font-weights-semibold); - font-size: var(--chakra-font-sizes-xl); - line-height: 1.875rem; - } -} - -@layer recipes { - .emotion-4 { - display: block; - border-color: var(--chakra-colors-border); - --separator-thickness: 1px; - border-style: solid; - border-top-width: var(--separator-thickness); - } -} - -.emotion-5 { - display: grid; - gap: var(--chakra-spacing-4); - margin-bottom: var(--chakra-spacing-4); -} - -.emotion-17 { - display: grid; -} - -.emotion-26 { - margin-bottom: var(--chakra-spacing-1); -} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ +
+ +`; +exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema, disabled and no formData 1`] = ` @layer recipes { - .emotion-26 { + .emotion-0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - width: 100%; - position: relative; - gap: var(--chakra-spacing-1\\.5); -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - -webkit-align-items: flex-start; - -webkit-box-align: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - } -} - -@layer recipes { - .emotion-27 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-align: start; - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - font-weight: var(--chakra-font-weights-medium); - gap: var(--chakra-spacing-1); - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - } - - .emotion-27:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - } -} - -@layer recipes { - .emotion-28 { - width: 100%; - min-width: var(--input-height); - outline: 0; - position: relative; - -webkit-appearance: none; - -moz-appearance: none; - -ms-appearance: none; - appearance: none; - text-align: start; - border-radius: var(--chakra-radii-l2); - height: var(--input-height); - --focus-color: var(--chakra-colors-color-palette-focus-ring); - --error-color: var(--chakra-colors-border-error); - font-size: var(--chakra-font-sizes-sm); - line-height: 1.25rem; - padding-inline: var(--chakra-spacing-3); - --input-height: var(--chakra-sizes-10); - background: var(--chakra-colors-transparent); - --bg-currentcolor: var(--chakra-colors-transparent); - border-width: 1px; - border-color: var(--chakra-colors-border); - --focus-ring-color: var(--focus-color); - } - - .emotion-28:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - cursor: not-allowed; - } - - .emotion-28:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - --focus-ring-color: var(--error-color); - border-color: var(--error-color); - } - - .emotion-28:is(:focus-visible, [data-focus-visible]) { - outline-offset: 0px; - outline-width: var(--focus-ring-width, 1px); - outline-color: var(--focus-ring-color); - outline-style: var(--focus-ring-style, solid); - border-color: var(--focus-ring-color); - } -} - -.emotion-35 { - justify-self: flex-end; -} - -.emotion-36 { - margin-top: var(--chakra-spacing-2); -} - -@layer recipes { - .emotion-37 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-appearance: none; - -moz-appearance: none; - -ms-appearance: none; - appearance: none; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - position: relative; - border-radius: var(--chakra-radii-l2); - white-space: nowrap; - vertical-align: middle; - border-width: 1px; - border-color: var(--chakra-colors-transparent); - cursor: var(--chakra-cursor-button); - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - outline: 0; - line-height: 1.25rem; - isolation: isolate; - font-weight: var(--chakra-font-weights-medium); - transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,translate,transform; - transition-duration: var(--chakra-durations-moderate); - --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); - height: var(--chakra-sizes-10); - min-width: var(--chakra-sizes-10); - font-size: var(--chakra-font-sizes-sm); - padding-inline: var(--chakra-spacing-4); - gap: var(--chakra-spacing-2); - background: var(--chakra-colors-color-palette-solid); - --bg-currentcolor: var(--chakra-colors-color-palette-solid); - color: var(--chakra-colors-color-palette-contrast); - } - - .emotion-37:is(:focus-visible, [data-focus-visible]) { - outline-width: var(--focus-ring-width, 2px); - outline-offset: var(--focus-ring-offset, 2px); - outline-style: var(--focus-ring-style, solid); - outline-color: var(--focus-ring-color); - } - - .emotion-37:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - opacity: 0.5; - cursor: not-allowed; - } - - .emotion-37 :where(svg) { - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - width: var(--chakra-sizes-5); - height: var(--chakra-sizes-5); - } - - .emotion-37:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { - --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); - background: var(--mix-background, var(--chakra-colors-color-palette-solid)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); + width: var(--chakra-sizes-full); } - @media (hover: hover) { - .emotion-37:is(:hover, [data-hover]):not(:disabled, [data-disabled]) { - --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); - background: var(--mix-background, var(--chakra-colors-color-palette-solid)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); - } + .emotion-0>:not(style, [hidden])~:not(style, [hidden]) { + --space-y-reverse: 0; + margin-top: calc(var(--chakra-spacing-4) * calc(1 - var(--space-y-reverse))); + margin-bottom: calc(var(--chakra-spacing-4) * var(--space-y-reverse)); } } -.emotion-40 { - margin-bottom: var(--chakra-spacing-2); -} - @layer recipes { - .emotion-40 { + .emotion-1 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -15898,51 +14811,51 @@ exports[`single fields optional data controls shows "add" optional controls when -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - position: relative; - min-width: 0; - word-wrap: break-word; - border-radius: var(--chakra-radii-l3); - color: var(--chakra-colors-fg); - text-align: start; - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - border-width: 1px; - border-color: var(--chakra-colors-border); - --card-padding: var(--chakra-spacing-6); + width: var(--chakra-sizes-full); + gap: var(--chakra-spacing-4); } } -.emotion-41 { - padding-bottom: var(--chakra-spacing-2); +.emotion-2 { + margin-top: var(--chakra-spacing-1); + margin-bottom: var(--chakra-spacing-4); } - -@layer recipes { - .emotion-41 { - padding: var(--card-padding); - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; + +@layer recipes { + .emotion-3 { + font-family: var(--chakra-fonts-heading); + font-weight: var(--chakra-font-weights-semibold); + font-size: var(--chakra-font-sizes-xl); + line-height: 1.875rem; } } -.emotion-42 { +@layer recipes { + .emotion-4 { + display: block; + border-color: var(--chakra-colors-border); + --separator-thickness: 1px; + border-style: solid; + border-top-width: var(--separator-thickness); + } +} + +.emotion-5 { + display: grid; + gap: var(--chakra-spacing-4); margin-bottom: var(--chakra-spacing-4); } -.emotion-43 { +.emotion-17 { + display: grid; +} + +.emotion-26 { margin-bottom: var(--chakra-spacing-1); - position: relative; } @layer recipes { - .emotion-43 { + .emotion-26 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -15961,29 +14874,7 @@ exports[`single fields optional data controls shows "add" optional controls when } @layer recipes { - .emotion-45 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - gap: var(--chakra-spacing-1\\.5); - width: var(--chakra-sizes-full); - --select-trigger-height: var(--chakra-sizes-10); - --select-trigger-padding-x: var(--chakra-spacing-3); - } -} - -@layer recipes { - .emotion-46 { - position: relative; - } -} - -@layer recipes { - .emotion-48 { + .emotion-27 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -15992,93 +14883,85 @@ exports[`single fields optional data controls shows "add" optional controls when -webkit-box-align: center; -ms-flex-align: center; align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - width: var(--chakra-sizes-full); - min-height: var(--select-trigger-height); - --input-height: var(--select-trigger-height); - padding-inline: var(--select-trigger-padding-x); - border-radius: var(--chakra-radii-l2); + text-align: start; + font-size: var(--chakra-font-sizes-sm); + line-height: 1.25rem; + font-weight: var(--chakra-font-weights-medium); + gap: var(--chakra-spacing-1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; + } + + .emotion-27:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + opacity: 0.5; + } +} + +@layer recipes { + .emotion-28 { + width: 100%; + min-width: var(--input-height); + outline: 0; + position: relative; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; text-align: start; - --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); + border-radius: var(--chakra-radii-l2); + height: var(--input-height); + --focus-color: var(--chakra-colors-color-palette-focus-ring); + --error-color: var(--chakra-colors-border-error); font-size: var(--chakra-font-sizes-sm); line-height: 1.25rem; - gap: var(--chakra-spacing-2); + padding-inline: var(--chakra-spacing-3); + --input-height: var(--chakra-sizes-10); background: var(--chakra-colors-transparent); --bg-currentcolor: var(--chakra-colors-transparent); border-width: 1px; border-color: var(--chakra-colors-border); + --focus-ring-color: var(--focus-color); } - .emotion-48:is(:focus-visible, [data-focus-visible]) { - outline-offset: 0px; - outline-width: var(--focus-ring-width, 1px); - outline-color: var(--focus-ring-color); - outline-style: var(--focus-ring-style, solid); - border-color: var(--focus-ring-color); - } - - .emotion-48:is(:placeholder-shown, [data-placeholder-shown]) { - --mix-color: color-mix(in srgb, var(--chakra-colors-fg-muted) 80%, transparent); - color: var(--mix-color, var(--chakra-colors-fg-muted)); - } - - .emotion-48:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + .emotion-28:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { opacity: 0.5; cursor: not-allowed; } - .emotion-48:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - border-color: var(--chakra-colors-border-error); + .emotion-28:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { + --focus-ring-color: var(--error-color); + border-color: var(--error-color); } - .emotion-48:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { - border-color: var(--chakra-colors-border-emphasized); + .emotion-28:is(:focus-visible, [data-focus-visible]) { + outline-offset: 0px; + outline-width: var(--focus-ring-width, 1px); + outline-color: var(--focus-ring-color); + outline-style: var(--focus-ring-style, solid); + border-color: var(--focus-ring-color); } } -@layer recipes { - .emotion-49 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - text-wrap: wrap; - max-width: 80%; - } +.emotion-35 { + justify-self: flex-end; } -@layer recipes { - .emotion-50 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-1); - position: absolute; - inset-inline-end: 0; - top: 0; - bottom: 0; - padding-inline: var(--select-trigger-padding-x); - pointer-events: none; - } +.emotion-36 { + margin-top: var(--chakra-spacing-2); } @layer recipes { - .emotion-51 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; + .emotion-37 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -16087,176 +14970,124 @@ exports[`single fields optional data controls shows "add" optional controls when -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; - color: var(--chakra-colors-fg-muted); - } - - .emotion-51:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - color: var(--chakra-colors-fg-subtle); - } - - .emotion-51:is([data-invalid], [aria-invalid=true], [data-state=invalid]) { - color: var(--chakra-colors-fg-error); - } - - .emotion-51 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); - } -} - -.emotion-52 { - fill: none; - stroke: currentColor; - stroke-width: 2; - stroke-linecap: round; - stroke-linejoin: round; -} - -.emotion-53 { - min-width: 100%!important; - z-index: 2!important; - top: calc(100% + 5px)!important; -} - -@layer recipes { - .emotion-54 { - background: var(--chakra-colors-bg-panel); - --bg-currentcolor: var(--chakra-colors-bg-panel); - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - z-index: var(--chakra-z-index-dropdown); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + position: relative; border-radius: var(--chakra-radii-l2); + white-space: nowrap; + vertical-align: middle; + border-width: 1px; + border-color: var(--chakra-colors-transparent); + cursor: var(--chakra-cursor-button); + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; outline: 0; - max-height: var(--chakra-sizes-96); - overflow-y: auto; - box-shadow: var(--chakra-shadows-md); - padding: var(--chakra-spacing-1); - font-size: var(--chakra-font-sizes-sm); line-height: 1.25rem; + isolation: isolate; + font-weight: var(--chakra-font-weights-medium); + transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,translate,transform; + transition-duration: var(--chakra-durations-moderate); + --focus-ring-color: var(--chakra-colors-color-palette-focus-ring); + height: var(--chakra-sizes-10); + min-width: var(--chakra-sizes-10); + font-size: var(--chakra-font-sizes-sm); + padding-inline: var(--chakra-spacing-4); + gap: var(--chakra-spacing-2); + background: var(--chakra-colors-color-palette-solid); + --bg-currentcolor: var(--chakra-colors-color-palette-solid); + color: var(--chakra-colors-color-palette-contrast); } - .emotion-54:is([open], [data-open], [data-state=open]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fast); - animation-duration: var(--chakra-durations-fast); - } - - .emotion-54:is([open], [data-open], [data-state=open])[data-placement^=top] { - -webkit-animation-name: slide-from-bottom,fade-in; - animation-name: slide-from-bottom,fade-in; - } - - .emotion-54:is([open], [data-open], [data-state=open])[data-placement^=bottom] { - -webkit-animation-name: slide-from-top,fade-in; - animation-name: slide-from-top,fade-in; - } - - .emotion-54:is([open], [data-open], [data-state=open])[data-placement^=left] { - -webkit-animation-name: slide-from-right,fade-in; - animation-name: slide-from-right,fade-in; - } - - .emotion-54:is([open], [data-open], [data-state=open])[data-placement^=right] { - -webkit-animation-name: slide-from-left,fade-in; - animation-name: slide-from-left,fade-in; - } - - .emotion-54:is([closed], [data-closed], [data-state=closed]) { - transform-origin: var(--transform-origin); - -webkit-animation-duration: var(--chakra-durations-fastest); - animation-duration: var(--chakra-durations-fastest); + .emotion-37:is(:focus-visible, [data-focus-visible]) { + outline-width: var(--focus-ring-width, 2px); + outline-offset: var(--focus-ring-offset, 2px); + outline-style: var(--focus-ring-style, solid); + outline-color: var(--focus-ring-color); } - .emotion-54:is([closed], [data-closed], [data-state=closed])[data-placement^=top] { - -webkit-animation-name: slide-to-bottom,fade-out; - animation-name: slide-to-bottom,fade-out; + .emotion-37:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { + opacity: 0.5; + cursor: not-allowed; } - .emotion-54:is([closed], [data-closed], [data-state=closed])[data-placement^=bottom] { - -webkit-animation-name: slide-to-top,fade-out; - animation-name: slide-to-top,fade-out; + .emotion-37 :where(svg) { + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + width: var(--chakra-sizes-5); + height: var(--chakra-sizes-5); } - .emotion-54:is([closed], [data-closed], [data-state=closed])[data-placement^=left] { - -webkit-animation-name: slide-to-right,fade-out; - animation-name: slide-to-right,fade-out; + .emotion-37:is([aria-expanded=true], [data-expanded], [data-state=expanded]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); } - .emotion-54:is([closed], [data-closed], [data-state=closed])[data-placement^=right] { - -webkit-animation-name: slide-to-left,fade-out; - animation-name: slide-to-left,fade-out; + @media (hover: hover) { + .emotion-37:is(:hover, [data-hover]):not(:disabled, [data-disabled]) { + --mix-background: color-mix(in srgb, var(--chakra-colors-color-palette-solid) 90%, transparent); + background: var(--mix-background, var(--chakra-colors-color-palette-solid)); + --bg-currentcolor: var(--mix-background, var(--chakra-colors-color-palette-solid)); + } } } +.emotion-40 { + margin-bottom: var(--chakra-spacing-2); +} + @layer recipes { - .emotion-55 { - position: relative; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + .emotion-40 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - gap: var(--chakra-spacing-2); - cursor: var(--chakra-cursor-option); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + position: relative; + min-width: 0; + word-wrap: break-word; + border-radius: var(--chakra-radii-l3); + color: var(--chakra-colors-fg); text-align: start; - border-radius: var(--chakra-radii-l1); - padding-block: var(--chakra-spacing-1\\.5); - padding-inline: var(--chakra-spacing-2); - } - - .emotion-55[data-highlighted] { - --mix-background: color-mix(in srgb, var(--chakra-colors-bg-emphasized) 60%, transparent); - background: var(--mix-background, var(--chakra-colors-bg-emphasized)); - --bg-currentcolor: var(--mix-background, var(--chakra-colors-bg-emphasized)); - } - - .emotion-55:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) { - pointer-events: none; - opacity: 0.5; + background: var(--chakra-colors-bg-panel); + --bg-currentcolor: var(--chakra-colors-bg-panel); + border-width: 1px; + border-color: var(--chakra-colors-border); + --card-padding: var(--chakra-spacing-6); } +} - .emotion-55 :where(svg) { - width: var(--chakra-sizes-4); - height: var(--chakra-sizes-4); - } +.emotion-41 { + padding-bottom: var(--chakra-spacing-2); } @layer recipes { - .emotion-56 { + .emotion-41 { + padding: var(--card-padding); + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; } } -.emotion-75 { +.emotion-42 { + margin-bottom: var(--chakra-spacing-4); +} + +.emotion-60 { margin-top: var(--chakra-spacing-3); } @@ -16269,7 +15100,7 @@ exports[`single fields optional data controls shows "add" optional controls when className="rjsf-field rjsf-field-object" >
-
-
- - -
-
-
- - - - -
- - -
-
-
-
-
-
-
- nestedArray -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- -
-
- - - -
-
-
-
-
- +
+ +
+
+
+
+ + +
+ + +
+
+
+
+
+
+
+ nestedArray +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+ +
+
+
+ -
-
- - -
-
-
+ No data for optional field +
@@ -16985,7 +15547,7 @@ exports[`single fields optional data controls shows "add" optional controls when
+
+ +
+
+ +
+
+
+ + optionalArrayWithAnyofs + +
+
+

+ +

+
+
+
+
+
@@ -1924,6 +2009,91 @@ exports[`single fields optional data controls does not show optional controls wh
+
+ +
+
+ +
+
+
+ + optionalArrayWithAnyofs + +
+
+

+ +

+
+
+
+
+
@@ -2425,109 +2595,114 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
- -
+ />
optionalObjectWithOneofs - -
- - -
+ + +
- -
-
- -
- -`; - -exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema, readonly and formData 1`] = ` -
+
+
+
+
+ + optionalArrayWithAnyofs + + + + +
+
+
+
+
+ + +
+ +
+ +`; + +exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema, readonly and formData 1`] = ` +
-
+
- + No data for optional field + +
+
+
+
+
+
- optionalObjectWithOneofs + optionalArrayWithAnyofs -
- - -
+ No data for optional field + +
@@ -3218,87 +3368,92 @@ exports[`single fields optional data controls shows "add" optional controls when
-
- -
+ />
optionalObjectWithOneofs + + + -
+
+
+
+
+
+
+
+
+ - - -
+ + + +
@@ -3465,87 +3620,62 @@ exports[`single fields optional data controls shows "add" optional controls when
-
+
- + No data for optional field + +
+
+
+
+
+
- optionalObjectWithOneofs + optionalArrayWithAnyofs -
- - -
+ No data for optional field + +
diff --git a/packages/daisyui/test/__snapshots__/Form.test.tsx.snap b/packages/daisyui/test/__snapshots__/Form.test.tsx.snap index a2f9e97d46..e06bfead3b 100644 --- a/packages/daisyui/test/__snapshots__/Form.test.tsx.snap +++ b/packages/daisyui/test/__snapshots__/Form.test.tsx.snap @@ -2812,6 +2812,203 @@ exports[`single fields optional data controls does not show optional controls wh
+
+
+
+ +
+
+
+
+
+ + Option 1 + + + â–¼ + +
+
    +
  • +
    + + Option 1 + +
    +
  • +
  • +
    + + Option 2 + +
    +
  • +
  • +
    + + Option 3 + +
    +
  • +
+
+
+
+
+
+
+
+

+ optionalArrayWithAnyofs +

+
+
+
+
+
+ No items yet. Use the button below to add some. +
+
+
+
+

+ +

+
+
+
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
    -
-
-
-
-
-
-
- -
- -`; - -exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = ` -
-
-
-
-
-

- test -

-
-
-
+
-

- nestedObjectOptional -

-
-
-
+
    +
  • +
    + + Option 1 + +
    +
  • +
  • +
    + + Option 2 + +
    +
  • +
  • +
    + + Option 3 + +
    +
  • +
+
+
+
+
+
+
+
+

+ optionalArrayWithAnyofs +

+
+
+
+
+
+ No items yet. Use the button below to add some. +
+
+
+
+

+ +

+
+
+
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
    +
+
+
+
+
+
+
+ +
+ +`; + +exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = ` +
+
+
+
+
+

+ test +

+
+
+
+
+
+
+
+
+
+
+

+ nestedObjectOptional +

+
+
+
- - +
+
+
+
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-

- optionalObjectWithOneofs -

-
-
-
-
- -
- - -
-
+
+
+
-
-
-
-
+ +
+
+
+
+
-
+
- - Option 1 - - - â–¼ - + optionalObjectWithOneofs + +
-
    -
  • -
    - - Option 1 - -
    -
  • -
  • -
    - - Option 2 - -
    -
  • -
  • -
    - - Option 3 - -
    -
  • -
+ No data for optional field + +
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+

- optionalObjectWithOneofs + optionalArrayWithAnyofs

-
-
-
- -
- - -
-
-
    -
-
-
-
-
-
-
+ No data for optional field + +
-
-
-
-
- - Option 1 - - - â–¼ - -
-
    -
  • -
    - - Option 1 - -
    -
  • -
  • -
    - - Option 2 - -
    -
  • -
  • -
    - - Option 3 - -
    -
  • -
-
-
-
+ />
@@ -7048,87 +7263,155 @@ exports[`single fields optional data controls shows "add" optional controls when className="title-field mb-6" id="root_optionalObjectWithOneofs__title" > -

- optionalObjectWithOneofs -

+
+

+ optionalObjectWithOneofs +

+
+
+ +
+
-
-
-
- -
- - -
-
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+ optionalArrayWithAnyofs +

+
+
+
-
-
-
-
+ +
+
+
+
+
-
+
- - Option 1 - - - â–¼ - + optionalObjectWithOneofs + +
-
    -
  • -
    - - Option 1 - -
    -
  • -
  • -
    - - Option 2 - -
    -
  • -
  • -
    - - Option 3 - -
    -
  • -
+ No data for optional field + +
+
+
+
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+

- optionalObjectWithOneofs + optionalArrayWithAnyofs

-
-
-
- -
- - -
-
-
    -
-
-
-
-
-
-
+ No data for optional field + +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+
+
+
+
+ +
+
+
+
+
+
+
+
@@ -2948,8 +3108,8 @@ exports[`single fields optional data controls does not show optional controls wh > @@ -2959,7 +3119,7 @@ exports[`single fields optional data controls does not show optional controls wh
-
-
-
-
- -
- -`; - -exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = ` -
-
-
-
-
- test -
-
-
-
-
+
-
- nestedObjectOptional -
-
-
- -
-
-
+ + + + + +
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +`; + +exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = ` +
+
+
+
+
+ test +
+
+
+
+
+
+
+
+
+
+
+ nestedObjectOptional +
+
+
+ +
+
+
@@ -4017,154 +4336,165 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
+
+
-
- -
+
- - - + +
+
+
+
+
+
+
+
+
+
+
+
+
-
- optionalObjectWithOneofs -
-
-
-
-
+ optionalArrayWithAnyofs + +
+
+
+
+
+
@@ -4953,81 +5283,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
-
- -
- - -
-
-
+
@@ -5057,48 +5313,70 @@ exports[`single fields optional data controls shows "add" and "remove" optional
-
-
-
- - - - -
-
-
+ No data for optional field + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ optionalArrayWithAnyofs +
+
+
+
+ + No data for optional field +
@@ -5487,82 +5765,7 @@ exports[`single fields optional data controls shows "add" optional controls when
-
-
- -
- - -
-
-
+
@@ -5573,16 +5776,54 @@ exports[`single fields optional data controls shows "add" optional controls when className="___12hmf4e_0000000 f2zxqi febqm8h" id="root_optionalObjectWithOneofs__title" > -
- optionalObjectWithOneofs -
+
+
+ optionalObjectWithOneofs +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ optionalArrayWithAnyofs + +
+
+
+
+
+
@@ -5958,90 +6247,75 @@ exports[`single fields optional data controls shows "add" optional controls when
-
+
+
-
- - + No data for optional field +
+
+
+
+
+
+
+
+
+
- optionalObjectWithOneofs + optionalArrayWithAnyofs
-
-
-
- - - - -
-
-
+ No data for optional field +
diff --git a/packages/mantine/test/__snapshots__/Form.test.tsx.snap b/packages/mantine/test/__snapshots__/Form.test.tsx.snap index 307ca0c7c2..174974e1fa 100644 --- a/packages/mantine/test/__snapshots__/Form.test.tsx.snap +++ b/packages/mantine/test/__snapshots__/Form.test.tsx.snap @@ -6984,169 +6984,6 @@ exports[`single fields optional data controls does not show optional controls wh "type": "div", Symbol(cleaned): true, }, - ], - "props": { - "className": "m_2415a157 __m__-rh9", - "data-size": undefined, - "data-variant": undefined, - "size": undefined, - "style": { - "marginBottom": "var(--mantine-spacing-sm)", - }, - }, - "type": "div", - Symbol(cleaned): true, - }, - ], - "props": { - "className": "m_7485cace", - "data-size": undefined, - "data-strategy": "block", - "data-variant": undefined, - "id": "root", - "size": undefined, - "style": { - "padding": "0rem", - }, - }, - "type": "div", - Symbol(cleaned): true, - }, - ], - "props": { - "className": "rjsf-field rjsf-field-object", - "style": undefined, - }, - "type": "div", - Symbol(cleaned): true, - }, - { - "children": [ - { - "children": [ - { - "children": [ - "Submit", - ], - "props": { - "className": "m_811560b9", - "data-size": undefined, - "data-variant": undefined, - "size": undefined, - "style": {}, - }, - "type": "span", - Symbol(cleaned): true, - }, - ], - "props": { - "className": "m_80f1301b", - "style": {}, - }, - "type": "span", - Symbol(cleaned): true, - }, - ], - "props": { - "className": "m_77c9d27d m_87cf2631", - "data-size": undefined, - "data-variant": "filled", - "size": undefined, - "style": { - "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent", - "--button-bg": "var(--mantine-color-blue-filled)", - "--button-color": "var(--mantine-color-white)", - "--button-hover": "var(--mantine-color-blue-filled-hover)", - }, - "type": "submit", - }, - "type": "button", - Symbol(cleaned): true, - }, - ], - "props": { - "acceptCharset": undefined, - "action": undefined, - "as": undefined, - "autoComplete": undefined, - "className": "rjsf", - "encType": undefined, - "id": undefined, - "method": undefined, - "name": undefined, - "noValidate": false, - "onSubmit": [Function], - "target": undefined, - }, - "type": "form", - Symbol(cleaned): true, - }, -] -`; - -exports[`single fields optional data controls does not show optional controls when not turned on in uiSchema, readonly and no formData 1`] = ` -[ -