@react-spectrum/radio 3.0.0-nightly.1778 → 3.0.0-nightly.1783

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/main.css CHANGED
@@ -1 +1 @@
1
- [dir=ltr] .spectrum-Radio_bf46c2{margin-right:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2)}[dir=rtl] .spectrum-Radio_bf46c2{margin-left:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2)}.spectrum-Radio_bf46c2{min-height:var(--spectrum-radio-height,var(--spectrum-global-dimension-size-400));max-width:100%;vertical-align:top;isolation:isolate;align-items:flex-start;display:inline-flex;position:relative}[dir=ltr] .spectrum-Radio-input_bf46c2{left:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*-1)}[dir=rtl] .spectrum-Radio-input_bf46c2{right:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*-1)}.spectrum-Radio-input_bf46c2{box-sizing:border-box;width:calc(100% + var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2);height:100%;opacity:.0001;z-index:1;cursor:default;margin:0;padding:0;font-family:inherit;font-size:100%;line-height:1.15;position:absolute;top:0;overflow:visible}.spectrum-Radio-input_bf46c2:disabled{cursor:default}.spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-width:calc(var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175))/2 - var(--spectrum-radio-circle-dot-size,var(--spectrum-global-dimension-static-size-50))/2)}.spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after{margin:calc(var(--spectrum-alias-focus-ring-gap,var(--spectrum-global-dimension-static-size-25))*-1)}[dir=ltr] .spectrum-Radio-label_bf46c2{text-align:left}[dir=rtl] .spectrum-Radio-label_bf46c2{text-align:right}[dir=ltr] .spectrum-Radio-label_bf46c2{margin-left:var(--spectrum-radio-text-gap,var(--spectrum-global-dimension-size-125))}[dir=rtl] .spectrum-Radio-label_bf46c2{margin-right:var(--spectrum-radio-text-gap,var(--spectrum-global-dimension-size-125))}.spectrum-Radio-label_bf46c2{margin-top:var(--spectrum-global-dimension-size-65);font-size:var(--spectrum-radio-text-size,var(--spectrum-alias-font-size-default));transition:color var(--spectrum-global-animation-duration-100,130ms)ease-in-out;line-height:1.49}.spectrum-Radio-button_bf46c2{box-sizing:border-box;width:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));height:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));margin:calc((var(--spectrum-radio-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175)))/2)0;flex-grow:0;flex-shrink:0;position:relative}.spectrum-Radio-button_bf46c2:before{z-index:0;content:"";box-sizing:border-box;width:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));height:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));border-radius:calc(var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175))/2);border-width:var(--spectrum-radio-circle-border-size,var(--spectrum-alias-border-size-thick));transition:border var(--spectrum-global-animation-duration-100,130ms)ease-in-out,box-shadow var(--spectrum-global-animation-duration-100,130ms)ease-in-out;border-style:solid;display:block;position:absolute}.spectrum-Radio-button_bf46c2:after{content:"";margin:var(--spectrum-alias-focus-ring-gap,var(--spectrum-global-dimension-static-size-25));transition:box-shadow var(--spectrum-global-animation-duration-100,130ms)ease-out,margin var(--spectrum-global-animation-duration-100,130ms)ease-out;border-radius:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(0)}.spectrum-Radio--labelBelow_bf46c2{height:auto;flex-direction:column;align-items:center;display:inline-flex}.spectrum-Radio--labelBelow_bf46c2 .spectrum-Radio-button_bf46c2{flex-shrink:0;margin:0}.spectrum-Radio--labelBelow_bf46c2 .spectrum-Radio-label_bf46c2{margin:var(--spectrum-global-dimension-size-40)0 0 0}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected,var(--spectrum-global-color-blue-500))}.spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color,var(--spectrum-alias-text-color))}.spectrum-Radio-button_bf46c2:before{background-color:var(--spectrum-radio-emphasized-circle-background-color,var(--spectrum-global-color-gray-75));border-color:var(--spectrum-radio-emphasized-circle-border-color,var(--spectrum-global-color-gray-600))}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-hover,var(--spectrum-global-color-gray-700));box-shadow:none}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-hover,var(--spectrum-global-color-blue-600))}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-hover,var(--spectrum-alias-text-color-hover))}.spectrum-Radio_bf46c2:active .spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-down,var(--spectrum-global-color-gray-800))}.spectrum-Radio_bf46c2:active .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-down,var(--spectrum-global-color-blue-700))}.spectrum-Radio_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-down,var(--spectrum-alias-text-color-down))}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-hover,var(--spectrum-global-color-blue-600))}.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected,var(--spectrum-global-color-gray-700))}.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-hover,var(--spectrum-global-color-gray-800))}.spectrum-Radio--quiet_bf46c2:active .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-down,var(--spectrum-global-color-gray-900))}.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-key-focus,var(--spectrum-global-color-gray-800))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error-hover,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error-hover,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error-down,var(--spectrum-global-color-red-700))}.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error-down,var(--spectrum-global-color-red-700))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-error-key-focus,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-error-selected-key-focus,var(--spectrum-global-color-red-600))}.spectrum-Radio-input_bf46c2:disabled+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-disabled,var(--spectrum-global-color-gray-400))!important}.spectrum-Radio-input_bf46c2:disabled~.spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-disabled,var(--spectrum-alias-text-color-disabled))!important}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-key-focus,var(--spectrum-global-color-gray-700))}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after{box-shadow:0 0 0 var(--spectrum-radio-focus-ring-size-key-focus,var(--spectrum-alias-focus-ring-size))var(--spectrum-radio-focus-ring-color-key-focus,var(--spectrum-alias-focus-ring-color))}@media (forced-colors:active){.spectrum-Radio_bf46c2{forced-color-adjust:none;--spectrum-radio-circle-border-color-error-key-focus:ButtonText;--spectrum-radio-circle-border-color-error-selected-key-focus:Highlight;--spectrum-radio-circle-border-color-key-focus:Highlight;--spectrum-radio-emphasized-circle-background-color:ButtonFace;--spectrum-radio-emphasized-circle-border-color-disabled:GrayText;--spectrum-radio-emphasized-circle-border-color-down:Highlight;--spectrum-radio-emphasized-circle-border-color-error:ButtonText;--spectrum-radio-emphasized-circle-border-color-error-down:Highlight;--spectrum-radio-emphasized-circle-border-color-error-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-down:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-key-focus:Highlight;--spectrum-radio-emphasized-circle-border-color-selected:Highlight;--spectrum-radio-emphasized-circle-border-color:ButtonText;--spectrum-radio-emphasized-text-color-disabled:GrayText;--spectrum-radio-emphasized-text-color-down:CanvasText;--spectrum-radio-emphasized-text-color-hover:CanvasText;--spectrum-radio-emphasized-text-color:CanvasText;--spectrum-radio-focus-ring-color-key-focus:ButtonText;--spectrum-radio-quiet-circle-border-color-selected:Highlight;--spectrum-radio-quiet-circle-border-color-selected-down:Highlight;--spectrum-radio-quiet-circle-border-color-selected-hover:Highlight;--spectrum-radio-quiet-circle-border-color-selected-key-focus:Highlight;--spectrum-radio-focus-ring-gap-key-focus:var(--spectrum-global-dimension-static-size-25,2px);--spectrum-radio-focus-ring-size:var(--spectrum-global-dimension-static-size-40,3px)}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}}[dir=ltr] .spectrum-FieldLabel_d2db1f{text-align:left}[dir=rtl] .spectrum-FieldLabel_d2db1f{text-align:right}.spectrum-FieldLabel_d2db1f{box-sizing:border-box;padding:var(--spectrum-fieldlabel-padding-top,var(--spectrum-global-dimension-size-50))0 var(--spectrum-fieldlabel-padding-bottom,var(--spectrum-global-dimension-size-65));font-size:var(--spectrum-fieldlabel-text-size,var(--spectrum-global-dimension-font-size-75));font-weight:var(--spectrum-fieldlabel-text-font-weight,var(--spectrum-global-font-weight-regular));line-height:var(--spectrum-fieldlabel-text-line-height,var(--spectrum-global-font-line-height-small));vertical-align:top;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;cursor:default;flex:none;display:flex}[dir=ltr] .spectrum-FieldLabel--positionSide_d2db1f{padding-right:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-FieldLabel--positionSide_d2db1f{padding-left:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}.spectrum-FieldLabel--positionSide_d2db1f{padding-top:var(--spectrum-fieldlabel-side-padding-top,var(--spectrum-global-dimension-size-100));display:inline-flex}[dir=ltr] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:0}[dir=rtl] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:0}[dir=ltr] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}[dir=rtl] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}.spectrum-FieldLabel-requiredIcon_d2db1f{margin-top:var(--spectrum-fieldlabel-asterisk-margin-y,var(--spectrum-global-dimension-size-50));margin-bottom:0}[dir=ltr] .spectrum-FieldLabel--alignEnd_d2db1f{text-align:right}[dir=rtl] .spectrum-FieldLabel--alignEnd_d2db1f{text-align:left}.spectrum-FieldLabel--alignEnd_d2db1f{justify-content:flex-end}.spectrum-Field_d2db1f{--spectrum-field-default-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400))}.spectrum-Field_d2db1f.spectrum-Field--positionTop_d2db1f{width:var(--spectrum-field-default-width);flex-direction:column;display:inline-flex}.spectrum-Field_d2db1f.spectrum-Field--positionTop_d2db1f .spectrum-Field-field_d2db1f{width:100%}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f{align-items:flex-start;display:inline-flex}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f{min-width:0;width:var(--spectrum-field-default-width);height:100%;flex:1}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f .spectrum-Field-field_d2db1f{width:100%}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-field_d2db1f{min-width:0;flex:1}[dir=ltr] .spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{text-align:left}[dir=rtl] .spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{text-align:right}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{border-collapse:separate;border-spacing:0 var(--spectrum-global-dimension-size-300);margin:calc(var(--spectrum-global-dimension-size-250)*-1)0;display:table}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field_d2db1f{width:100%;display:table-row}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-FieldLabel_d2db1f{display:table-cell}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f{width:100%}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field-field_d2db1f{width:auto;min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400));display:table-cell}.spectrum-Form_d2db1f.spectrum-Form--positionTop_d2db1f{min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400));flex-direction:column;margin:0;display:flex}.spectrum-Form_d2db1f.spectrum-Form--positionTop_d2db1f>*{margin-top:var(--spectrum-global-dimension-size-100);width:100%}.spectrum-LabeledValue_d2db1f.spectrum-Field--positionSide_d2db1f{-ms-flex-align:first baseline;align-items:baseline}.spectrum-LabeledValue_d2db1f.spectrum-Field--positionTop_d2db1f{width:unset}.spectrum-LabeledValue_d2db1f .spectrum-FieldLabel_d2db1f.spectrum-FieldLabel_d2db1f{padding-top:0}.spectrum-LabeledValue_d2db1f .spectrum-Field-wrapper_d2db1f.spectrum-Field-wrapper_d2db1f{width:unset}.spectrum-LabeledValue_d2db1f .spectrum-Field-field_d2db1f{word-break:break-word;overflow:hidden}.spectrum-FieldLabel_d2db1f,.spectrum-Form-itemLabel_d2db1f{color:var(--spectrum-fieldlabel-text-color,var(--spectrum-alias-label-text-color))}.spectrum-FieldLabel_d2db1f.is-disabled_d2db1f,.spectrum-Form-itemLabel_d2db1f.is-disabled_d2db1f{color:var(--spectrum-fieldlabel-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-FieldLabel_d2db1f.is-disabled_d2db1f .spectrum-FieldLabel-requiredIcon_d2db1f,.spectrum-Form-itemLabel_d2db1f.is-disabled_d2db1f .spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color,var(--spectrum-global-color-gray-600))}.spectrum-FieldGroup_41d350{flex-direction:column;display:flex}.spectrum-FieldGroup--positionSide_41d350{flex-direction:row}.spectrum-FieldGroup-group_41d350{flex-direction:column;display:flex}.spectrum-FieldGroup-group--horizontal_41d350{flex-flow:wrap}
1
+ [dir=ltr] .spectrum-Radio_bf46c2{margin-right:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2)}[dir=rtl] .spectrum-Radio_bf46c2{margin-left:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2)}.spectrum-Radio_bf46c2{min-height:var(--spectrum-radio-height,var(--spectrum-global-dimension-size-400));max-width:100%;vertical-align:top;isolation:isolate;align-items:flex-start;display:inline-flex;position:relative}[dir=ltr] .spectrum-Radio-input_bf46c2{left:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*-1)}[dir=rtl] .spectrum-Radio-input_bf46c2{right:calc(var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*-1)}.spectrum-Radio-input_bf46c2{box-sizing:border-box;width:calc(100% + var(--spectrum-radio-cursor-hit-x,var(--spectrum-global-dimension-size-100))*2);height:100%;opacity:.0001;z-index:1;cursor:default;margin:0;padding:0;font-family:inherit;font-size:100%;line-height:1.15;position:absolute;top:0;overflow:visible}.spectrum-Radio-input_bf46c2:disabled{cursor:default}.spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-width:calc(var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175))/2 - var(--spectrum-radio-circle-dot-size,var(--spectrum-global-dimension-static-size-50))/2)}.spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after{margin:calc(var(--spectrum-alias-focus-ring-gap,var(--spectrum-global-dimension-static-size-25))*-1)}[dir=ltr] .spectrum-Radio-label_bf46c2{text-align:left}[dir=rtl] .spectrum-Radio-label_bf46c2{text-align:right}[dir=ltr] .spectrum-Radio-label_bf46c2{margin-left:var(--spectrum-radio-text-gap,var(--spectrum-global-dimension-size-125))}[dir=rtl] .spectrum-Radio-label_bf46c2{margin-right:var(--spectrum-radio-text-gap,var(--spectrum-global-dimension-size-125))}.spectrum-Radio-label_bf46c2{margin-top:var(--spectrum-global-dimension-size-65);font-size:var(--spectrum-radio-text-size,var(--spectrum-alias-font-size-default));transition:color var(--spectrum-global-animation-duration-100,130ms)ease-in-out;line-height:1.49}.spectrum-Radio-button_bf46c2{box-sizing:border-box;width:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));height:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));margin:calc((var(--spectrum-radio-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175)))/2)0;flex-grow:0;flex-shrink:0;position:relative}.spectrum-Radio-button_bf46c2:before{z-index:0;content:"";box-sizing:border-box;width:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));height:var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175));border-radius:calc(var(--spectrum-radio-circle-diameter,var(--spectrum-global-dimension-size-175))/2);border-width:var(--spectrum-radio-circle-border-size,var(--spectrum-alias-border-size-thick));transition:border var(--spectrum-global-animation-duration-100,130ms)ease-in-out,box-shadow var(--spectrum-global-animation-duration-100,130ms)ease-in-out;border-style:solid;display:block;position:absolute}.spectrum-Radio-button_bf46c2:after{content:"";margin:var(--spectrum-alias-focus-ring-gap,var(--spectrum-global-dimension-static-size-25));transition:box-shadow var(--spectrum-global-animation-duration-100,130ms)ease-out,margin var(--spectrum-global-animation-duration-100,130ms)ease-out;border-radius:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(0)}.spectrum-Radio--labelBelow_bf46c2{height:auto;flex-direction:column;align-items:center;display:inline-flex}.spectrum-Radio--labelBelow_bf46c2 .spectrum-Radio-button_bf46c2{flex-shrink:0;margin:0}.spectrum-Radio--labelBelow_bf46c2 .spectrum-Radio-label_bf46c2{margin:var(--spectrum-global-dimension-size-40)0 0 0}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected,var(--spectrum-global-color-blue-500))}.spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color,var(--spectrum-alias-text-color))}.spectrum-Radio-button_bf46c2:before{background-color:var(--spectrum-radio-emphasized-circle-background-color,var(--spectrum-global-color-gray-75));border-color:var(--spectrum-radio-emphasized-circle-border-color,var(--spectrum-global-color-gray-600))}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-hover,var(--spectrum-global-color-gray-700));box-shadow:none}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-hover,var(--spectrum-global-color-blue-600))}.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-hover,var(--spectrum-alias-text-color-hover))}.spectrum-Radio_bf46c2:active .spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-down,var(--spectrum-global-color-gray-800))}.spectrum-Radio_bf46c2:active .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-down,var(--spectrum-global-color-blue-700))}.spectrum-Radio_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-down,var(--spectrum-alias-text-color-down))}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-selected-hover,var(--spectrum-global-color-blue-600))}.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected,var(--spectrum-global-color-gray-700))}.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-hover,var(--spectrum-global-color-gray-800))}.spectrum-Radio--quiet_bf46c2:active .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-down,var(--spectrum-global-color-gray-900))}.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-quiet-circle-border-color-selected-key-focus,var(--spectrum-global-color-gray-800))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error-hover,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error-hover,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-input_bf46c2+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-error-down,var(--spectrum-global-color-red-700))}.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error-down,var(--spectrum-global-color-red-700))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-error-key-focus,var(--spectrum-global-color-red-600))}.spectrum-Radio_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:checked+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-error-selected-key-focus,var(--spectrum-global-color-red-600))}.spectrum-Radio-input_bf46c2:disabled+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-emphasized-circle-border-color-disabled,var(--spectrum-global-color-gray-400))!important}.spectrum-Radio-input_bf46c2:disabled~.spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-text-color-disabled,var(--spectrum-alias-text-color-disabled))!important}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2:not(:checked)+.spectrum-Radio-button_bf46c2:before{border-color:var(--spectrum-radio-circle-border-color-key-focus,var(--spectrum-global-color-gray-700))}.spectrum-Radio_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio--quiet_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after,.spectrum-Radio--quiet_bf46c2.is-hovered_bf46c2 .spectrum-Radio-input_bf46c2.focus-ring_bf46c2+.spectrum-Radio-button_bf46c2:after{box-shadow:0 0 0 var(--spectrum-radio-focus-ring-size-key-focus,var(--spectrum-alias-focus-ring-size))var(--spectrum-radio-focus-ring-color-key-focus,var(--spectrum-alias-focus-ring-color))}@media (forced-colors:active){.spectrum-Radio_bf46c2{forced-color-adjust:none;--spectrum-radio-circle-border-color-error-key-focus:ButtonText;--spectrum-radio-circle-border-color-error-selected-key-focus:Highlight;--spectrum-radio-circle-border-color-key-focus:Highlight;--spectrum-radio-emphasized-circle-background-color:ButtonFace;--spectrum-radio-emphasized-circle-border-color-disabled:GrayText;--spectrum-radio-emphasized-circle-border-color-down:Highlight;--spectrum-radio-emphasized-circle-border-color-error:ButtonText;--spectrum-radio-emphasized-circle-border-color-error-down:Highlight;--spectrum-radio-emphasized-circle-border-color-error-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-down:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-hover:Highlight;--spectrum-radio-emphasized-circle-border-color-selected-key-focus:Highlight;--spectrum-radio-emphasized-circle-border-color-selected:Highlight;--spectrum-radio-emphasized-circle-border-color:ButtonText;--spectrum-radio-emphasized-text-color-disabled:GrayText;--spectrum-radio-emphasized-text-color-down:CanvasText;--spectrum-radio-emphasized-text-color-hover:CanvasText;--spectrum-radio-emphasized-text-color:CanvasText;--spectrum-radio-focus-ring-color-key-focus:ButtonText;--spectrum-radio-quiet-circle-border-color-selected:Highlight;--spectrum-radio-quiet-circle-border-color-selected-down:Highlight;--spectrum-radio-quiet-circle-border-color-selected-hover:Highlight;--spectrum-radio-quiet-circle-border-color-selected-key-focus:Highlight;--spectrum-radio-focus-ring-gap-key-focus:var(--spectrum-global-dimension-static-size-25,2px);--spectrum-radio-focus-ring-size:var(--spectrum-global-dimension-static-size-40,3px)}.spectrum-Radio_bf46c2.is-invalid_bf46c2.is-hovered_bf46c2 .spectrum-Radio-label_bf46c2,.spectrum-Radio_bf46c2.is-invalid_bf46c2:active .spectrum-Radio-label_bf46c2{color:var(--spectrum-radio-emphasized-circle-border-color-error,var(--spectrum-global-color-red-500))}}.spectrum-FieldGroup_41d350.spectrum-FieldGroup_41d350{width:auto;--spectrum-field-default-width:auto}.spectrum-FieldGroup-group_41d350{flex-direction:column;display:flex}.spectrum-FieldGroup-group--horizontal_41d350{flex-flow:wrap}
package/dist/main.js CHANGED
@@ -109,69 +109,17 @@ function $e8d5518f9c1aca76$var$Radio(props, ref) {
109
109
 
110
110
 
111
111
 
112
- var $eb2fc0ee655eff6b$exports = {};
113
-
114
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel", () => $eb2fc0ee655eff6b$export$493d18e796ae054, (v) => $eb2fc0ee655eff6b$export$493d18e796ae054 = v);
115
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel--positionSide", () => $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e, (v) => $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e = v);
116
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel-requiredIcon", () => $eb2fc0ee655eff6b$export$7c47642c7d46f3c9, (v) => $eb2fc0ee655eff6b$export$7c47642c7d46f3c9 = v);
117
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel--alignEnd", () => $eb2fc0ee655eff6b$export$885efcc08143a987, (v) => $eb2fc0ee655eff6b$export$885efcc08143a987 = v);
118
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field", () => $eb2fc0ee655eff6b$export$f6d480ae1e56eba0, (v) => $eb2fc0ee655eff6b$export$f6d480ae1e56eba0 = v);
119
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--positionTop", () => $eb2fc0ee655eff6b$export$a4ea780a9064d7f9, (v) => $eb2fc0ee655eff6b$export$a4ea780a9064d7f9 = v);
120
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-field", () => $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d, (v) => $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d = v);
121
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--positionSide", () => $eb2fc0ee655eff6b$export$2963225c91179589, (v) => $eb2fc0ee655eff6b$export$2963225c91179589 = v);
122
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-wrapper", () => $eb2fc0ee655eff6b$export$127df0b7290eb8ef, (v) => $eb2fc0ee655eff6b$export$127df0b7290eb8ef = v);
123
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form", () => $eb2fc0ee655eff6b$export$94d2bcc94afabd89, (v) => $eb2fc0ee655eff6b$export$94d2bcc94afabd89 = v);
124
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form--positionSide", () => $eb2fc0ee655eff6b$export$7f44db659563c8f4, (v) => $eb2fc0ee655eff6b$export$7f44db659563c8f4 = v);
125
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form--positionTop", () => $eb2fc0ee655eff6b$export$11b8bc81fe551057, (v) => $eb2fc0ee655eff6b$export$11b8bc81fe551057 = v);
126
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-LabeledValue", () => $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d, (v) => $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d = v);
127
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form-itemLabel", () => $eb2fc0ee655eff6b$export$51ec27881a1e3928, (v) => $eb2fc0ee655eff6b$export$51ec27881a1e3928 = v);
128
- $parcel$export($eb2fc0ee655eff6b$exports, "is-disabled", () => $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf, (v) => $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf = v);
129
- var $eb2fc0ee655eff6b$export$493d18e796ae054;
130
- var $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e;
131
- var $eb2fc0ee655eff6b$export$7c47642c7d46f3c9;
132
- var $eb2fc0ee655eff6b$export$885efcc08143a987;
133
- var $eb2fc0ee655eff6b$export$f6d480ae1e56eba0;
134
- var $eb2fc0ee655eff6b$export$a4ea780a9064d7f9;
135
- var $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d;
136
- var $eb2fc0ee655eff6b$export$2963225c91179589;
137
- var $eb2fc0ee655eff6b$export$127df0b7290eb8ef;
138
- var $eb2fc0ee655eff6b$export$94d2bcc94afabd89;
139
- var $eb2fc0ee655eff6b$export$7f44db659563c8f4;
140
- var $eb2fc0ee655eff6b$export$11b8bc81fe551057;
141
- var $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d;
142
- var $eb2fc0ee655eff6b$export$51ec27881a1e3928;
143
- var $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf;
144
- $eb2fc0ee655eff6b$export$493d18e796ae054 = "spectrum-FieldLabel_d2db1f";
145
- $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e = "spectrum-FieldLabel--positionSide_d2db1f";
146
- $eb2fc0ee655eff6b$export$7c47642c7d46f3c9 = "spectrum-FieldLabel-requiredIcon_d2db1f";
147
- $eb2fc0ee655eff6b$export$885efcc08143a987 = "spectrum-FieldLabel--alignEnd_d2db1f";
148
- $eb2fc0ee655eff6b$export$f6d480ae1e56eba0 = "spectrum-Field_d2db1f";
149
- $eb2fc0ee655eff6b$export$a4ea780a9064d7f9 = "spectrum-Field--positionTop_d2db1f";
150
- $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d = "spectrum-Field-field_d2db1f";
151
- $eb2fc0ee655eff6b$export$2963225c91179589 = "spectrum-Field--positionSide_d2db1f";
152
- $eb2fc0ee655eff6b$export$127df0b7290eb8ef = "spectrum-Field-wrapper_d2db1f";
153
- $eb2fc0ee655eff6b$export$94d2bcc94afabd89 = "spectrum-Form_d2db1f";
154
- $eb2fc0ee655eff6b$export$7f44db659563c8f4 = "spectrum-Form--positionSide_d2db1f";
155
- $eb2fc0ee655eff6b$export$11b8bc81fe551057 = "spectrum-Form--positionTop_d2db1f";
156
- $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d = "spectrum-LabeledValue_d2db1f";
157
- $eb2fc0ee655eff6b$export$51ec27881a1e3928 = "spectrum-Form-itemLabel_d2db1f";
158
- $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf = "is-disabled_d2db1f";
159
-
160
-
161
112
 
162
113
 
163
114
  var $53124a3a0fd56fca$exports = {};
164
115
 
165
116
  $parcel$export($53124a3a0fd56fca$exports, "spectrum-FieldGroup", () => $53124a3a0fd56fca$export$75eb16cbfc18279c, (v) => $53124a3a0fd56fca$export$75eb16cbfc18279c = v);
166
- $parcel$export($53124a3a0fd56fca$exports, "spectrum-FieldGroup--positionSide", () => $53124a3a0fd56fca$export$859b606bd9f45f81, (v) => $53124a3a0fd56fca$export$859b606bd9f45f81 = v);
167
117
  $parcel$export($53124a3a0fd56fca$exports, "spectrum-FieldGroup-group", () => $53124a3a0fd56fca$export$984c7bbbfc7ddffc, (v) => $53124a3a0fd56fca$export$984c7bbbfc7ddffc = v);
168
118
  $parcel$export($53124a3a0fd56fca$exports, "spectrum-FieldGroup-group--horizontal", () => $53124a3a0fd56fca$export$1ad8646bcba21c0e, (v) => $53124a3a0fd56fca$export$1ad8646bcba21c0e = v);
169
119
  var $53124a3a0fd56fca$export$75eb16cbfc18279c;
170
- var $53124a3a0fd56fca$export$859b606bd9f45f81;
171
120
  var $53124a3a0fd56fca$export$984c7bbbfc7ddffc;
172
121
  var $53124a3a0fd56fca$export$1ad8646bcba21c0e;
173
122
  $53124a3a0fd56fca$export$75eb16cbfc18279c = "spectrum-FieldGroup_41d350";
174
- $53124a3a0fd56fca$export$859b606bd9f45f81 = "spectrum-FieldGroup--positionSide_41d350";
175
123
  $53124a3a0fd56fca$export$984c7bbbfc7ddffc = "spectrum-FieldGroup-group_41d350";
176
124
  $53124a3a0fd56fca$export$1ad8646bcba21c0e = "spectrum-FieldGroup-group--horizontal_41d350";
177
125
 
@@ -183,28 +131,20 @@ $53124a3a0fd56fca$export$1ad8646bcba21c0e = "spectrum-FieldGroup-group--horizont
183
131
  function $aa5529d97b69d048$var$RadioGroup(props, ref) {
184
132
  props = $ltKMc$reactspectrumprovider.useProviderProps(props);
185
133
  props = $ltKMc$reactspectrumform.useFormProps(props);
186
- let { isEmphasized: isEmphasized , isRequired: isRequired , necessityIndicator: necessityIndicator , label: label , labelPosition: labelPosition = 'top' , labelAlign: labelAlign , validationState: validationState , children: children , orientation: orientation = 'vertical' , description: description , errorMessage: errorMessage , showErrorIcon: showErrorIcon , ...otherProps } = props;
134
+ let { isEmphasized: isEmphasized , validationState: validationState , children: children , orientation: orientation = 'vertical' } = props;
187
135
  let domRef = $ltKMc$reactspectrumutils.useDOMRef(ref);
188
- let { styleProps: styleProps } = $ltKMc$reactspectrumutils.useStyleProps(otherProps);
189
- let hasHelpText = !!description || errorMessage && validationState === 'invalid';
190
136
  let state = $ltKMc$reactstatelyradio.useRadioGroupState(props);
191
137
  let { radioGroupProps: radioGroupProps , labelProps: labelProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $ltKMc$reactariaradio.useRadioGroup(props, state);
192
- return(/*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement("div", {
193
- ...styleProps,
138
+ return(/*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement($ltKMc$reactspectrumlabel.Field, {
139
+ ...props,
140
+ ref: domRef,
141
+ wrapperClassName: $ltKMc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($53124a3a0fd56fca$exports)), 'spectrum-FieldGroup'),
142
+ labelProps: labelProps,
143
+ descriptionProps: descriptionProps,
144
+ errorMessageProps: errorMessageProps,
145
+ elementType: "span"
146
+ }, /*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement("div", {
194
147
  ...radioGroupProps,
195
- className: $ltKMc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($53124a3a0fd56fca$exports)), 'spectrum-FieldGroup', {
196
- 'spectrum-FieldGroup--positionSide': labelPosition === 'side'
197
- }, // This is so radio works inside a <Form>
198
- $ltKMc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field'), styleProps.className),
199
- ref: domRef
200
- }, label && /*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement($ltKMc$reactspectrumlabel.Label, {
201
- ...labelProps,
202
- elementType: "span",
203
- labelPosition: labelPosition,
204
- labelAlign: labelAlign,
205
- isRequired: isRequired,
206
- necessityIndicator: necessityIndicator
207
- }, label), /*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement("div", {
208
148
  className: $ltKMc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($53124a3a0fd56fca$exports)), 'spectrum-FieldGroup-group', {
209
149
  'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'
210
150
  })
@@ -214,14 +154,7 @@ function $aa5529d97b69d048$var$RadioGroup(props, ref) {
214
154
  validationState: validationState,
215
155
  state: state
216
156
  }
217
- }, children)), hasHelpText && /*#__PURE__*/ ($parcel$interopDefault($ltKMc$react)).createElement($ltKMc$reactspectrumlabel.HelpText, {
218
- descriptionProps: descriptionProps,
219
- errorMessageProps: errorMessageProps,
220
- description: description,
221
- errorMessage: errorMessage,
222
- validationState: validationState,
223
- showErrorIcon: showErrorIcon
224
- })));
157
+ }, children))));
225
158
  }
226
159
  /**
227
160
  * Radio groups allow users to select a single option from a list of mutually exclusive options.
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAgC;AAChC,GAAsC;AACtC,GAAuC;AACvC,GAA4B;AAC5B,GAAsC;AACtC,GAA4C;AAC5C,GAA4B;AAC5B,GAAuC;AACvC,GAA4B;AAR5B,yCAAgC,GAAG,CAAuB;AAC1D,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;AAClD,yCAAsC,GAAG,CAA6B;AACtE,yCAA4C,GAAG,CAAmC;AAClF,yCAA4B,GAAG,CAAmB;AAClD,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;;;;;;ACc3C,KAAK,CAAC,yCAAY,GAAG,sCAAK,CAAC,aAAa,CAA2B,IAAI;SAE9D,yCAAgB,GAAsB,CAAC;IACrD,MAAM,CAAC,uBAAU,CAAC,yCAAY;AAChC,CAAC;;;SFJQ,2BAAK,CAAC,KAAyB,EAAE,GAAmC,EAAE,CAAC;IAC9E,GAAG,CAAC,CAAC,aACH,UAAU,aACV,QAAQ,cACR,SAAS,MACN,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,CAAC,aAAA,UAAU,cAAE,SAAS,EAAA,CAAC,GAAG,qCAAQ,CAAC,CAAC;oBAAA,UAAU;IAAA,CAAC;IAEnD,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K,CAAC,UAAU,CAAC,gCAAU;;","sources":["packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/Radio.tsx","packages/@adobe/spectrum-css-temp/components/radio/vars.css","packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n validationState,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n validationState?: 'valid' | 'invalid',\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, LabelPosition} from '@react-types/shared';\nimport {HelpText, Label} from '@react-spectrum/label';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n isRequired,\n necessityIndicator,\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n validationState,\n children,\n orientation = 'vertical',\n description,\n errorMessage,\n showErrorIcon,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n\n let state = useRadioGroupState(props);\n let {radioGroupProps, labelProps, descriptionProps, errorMessageProps} = useRadioGroup(props, state);\n\n return (\n <div\n {...styleProps}\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup',\n {\n 'spectrum-FieldGroup--positionSide': labelPosition === 'side'\n },\n // This is so radio works inside a <Form>\n classNames(\n labelStyles,\n 'spectrum-Field'\n ),\n styleProps.className\n )\n }\n ref={domRef}>\n {label &&\n <Label\n {...labelProps}\n elementType=\"span\"\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}>\n {label}\n </Label>\n }\n <div\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n validationState,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n {hasHelpText &&\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n showErrorIcon={showErrorIcon} />\n }\n </div>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAgC;AAChC,GAAsC;AACtC,GAAuC;AACvC,GAA4B;AAC5B,GAAsC;AACtC,GAA4C;AAC5C,GAA4B;AAC5B,GAAuC;AACvC,GAA4B;AAR5B,yCAAgC,GAAG,CAAuB;AAC1D,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;AAClD,yCAAsC,GAAG,CAA6B;AACtE,yCAA4C,GAAG,CAAmC;AAClF,yCAA4B,GAAG,CAAmB;AAClD,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;;;;;;ACc3C,KAAK,CAAC,yCAAY,GAAG,sCAAK,CAAC,aAAa,CAA2B,IAAI;SAE9D,yCAAgB,GAAsB,CAAC;IACrD,MAAM,CAAC,uBAAU,CAAC,yCAAY;AAChC,CAAC;;;SFJQ,2BAAK,CAAC,KAAyB,EAAE,GAAmC,EAAE,CAAC;IAC9E,GAAG,CAAC,CAAC,aACH,UAAU,aACV,QAAQ,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K;QACP,CAAC;OACA,QAAQ;AAKnB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,KAAK,CAAC,yCAAW,iBAAG,sCAAK,CAAC,UAAU,CAAC,gCAAU;;","sources":["packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/Radio.tsx","packages/@adobe/spectrum-css-temp/components/radio/vars.css","packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n validationState,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n validationState?: 'valid' | 'invalid',\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n validationState,\n children,\n orientation = 'vertical'\n } = props;\n\n let domRef = useDOMRef(ref);\n let state = useRadioGroupState(props);\n let {radioGroupProps, labelProps, descriptionProps, errorMessageProps} = useRadioGroup(props, state);\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={classNames(styles, 'spectrum-FieldGroup')}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n elementType=\"span\">\n <div\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n validationState,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n </Field>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -4,7 +4,7 @@ import {FocusRing as $4hD9r$FocusRing} from "@react-aria/focus";
4
4
  import $4hD9r$react, {useRef as $4hD9r$useRef, forwardRef as $4hD9r$forwardRef, useContext as $4hD9r$useContext} from "react";
5
5
  import {useHover as $4hD9r$useHover} from "@react-aria/interactions";
6
6
  import {useRadio as $4hD9r$useRadio, useRadioGroup as $4hD9r$useRadioGroup} from "@react-aria/radio";
7
- import {Label as $4hD9r$Label, HelpText as $4hD9r$HelpText} from "@react-spectrum/label";
7
+ import {Field as $4hD9r$Field} from "@react-spectrum/label";
8
8
  import {useFormProps as $4hD9r$useFormProps} from "@react-spectrum/form";
9
9
  import {useProviderProps as $4hD9r$useProviderProps} from "@react-spectrum/provider";
10
10
  import {useRadioGroupState as $4hD9r$useRadioGroupState} from "@react-stately/radio";
@@ -106,69 +106,17 @@ function $337c5cb580c4e6ba$var$Radio(props, ref) {
106
106
 
107
107
 
108
108
 
109
- var $cd231e464c886c86$exports = {};
110
-
111
- $parcel$export($cd231e464c886c86$exports, "spectrum-FieldLabel", () => $cd231e464c886c86$export$493d18e796ae054, (v) => $cd231e464c886c86$export$493d18e796ae054 = v);
112
- $parcel$export($cd231e464c886c86$exports, "spectrum-FieldLabel--positionSide", () => $cd231e464c886c86$export$9e6f19dc21f22f2e, (v) => $cd231e464c886c86$export$9e6f19dc21f22f2e = v);
113
- $parcel$export($cd231e464c886c86$exports, "spectrum-FieldLabel-requiredIcon", () => $cd231e464c886c86$export$7c47642c7d46f3c9, (v) => $cd231e464c886c86$export$7c47642c7d46f3c9 = v);
114
- $parcel$export($cd231e464c886c86$exports, "spectrum-FieldLabel--alignEnd", () => $cd231e464c886c86$export$885efcc08143a987, (v) => $cd231e464c886c86$export$885efcc08143a987 = v);
115
- $parcel$export($cd231e464c886c86$exports, "spectrum-Field", () => $cd231e464c886c86$export$f6d480ae1e56eba0, (v) => $cd231e464c886c86$export$f6d480ae1e56eba0 = v);
116
- $parcel$export($cd231e464c886c86$exports, "spectrum-Field--positionTop", () => $cd231e464c886c86$export$a4ea780a9064d7f9, (v) => $cd231e464c886c86$export$a4ea780a9064d7f9 = v);
117
- $parcel$export($cd231e464c886c86$exports, "spectrum-Field-field", () => $cd231e464c886c86$export$3ab8a3dc7f0563d, (v) => $cd231e464c886c86$export$3ab8a3dc7f0563d = v);
118
- $parcel$export($cd231e464c886c86$exports, "spectrum-Field--positionSide", () => $cd231e464c886c86$export$2963225c91179589, (v) => $cd231e464c886c86$export$2963225c91179589 = v);
119
- $parcel$export($cd231e464c886c86$exports, "spectrum-Field-wrapper", () => $cd231e464c886c86$export$127df0b7290eb8ef, (v) => $cd231e464c886c86$export$127df0b7290eb8ef = v);
120
- $parcel$export($cd231e464c886c86$exports, "spectrum-Form", () => $cd231e464c886c86$export$94d2bcc94afabd89, (v) => $cd231e464c886c86$export$94d2bcc94afabd89 = v);
121
- $parcel$export($cd231e464c886c86$exports, "spectrum-Form--positionSide", () => $cd231e464c886c86$export$7f44db659563c8f4, (v) => $cd231e464c886c86$export$7f44db659563c8f4 = v);
122
- $parcel$export($cd231e464c886c86$exports, "spectrum-Form--positionTop", () => $cd231e464c886c86$export$11b8bc81fe551057, (v) => $cd231e464c886c86$export$11b8bc81fe551057 = v);
123
- $parcel$export($cd231e464c886c86$exports, "spectrum-LabeledValue", () => $cd231e464c886c86$export$79f9a5e9dd010c8d, (v) => $cd231e464c886c86$export$79f9a5e9dd010c8d = v);
124
- $parcel$export($cd231e464c886c86$exports, "spectrum-Form-itemLabel", () => $cd231e464c886c86$export$51ec27881a1e3928, (v) => $cd231e464c886c86$export$51ec27881a1e3928 = v);
125
- $parcel$export($cd231e464c886c86$exports, "is-disabled", () => $cd231e464c886c86$export$d35bc1e505d1ebbf, (v) => $cd231e464c886c86$export$d35bc1e505d1ebbf = v);
126
- var $cd231e464c886c86$export$493d18e796ae054;
127
- var $cd231e464c886c86$export$9e6f19dc21f22f2e;
128
- var $cd231e464c886c86$export$7c47642c7d46f3c9;
129
- var $cd231e464c886c86$export$885efcc08143a987;
130
- var $cd231e464c886c86$export$f6d480ae1e56eba0;
131
- var $cd231e464c886c86$export$a4ea780a9064d7f9;
132
- var $cd231e464c886c86$export$3ab8a3dc7f0563d;
133
- var $cd231e464c886c86$export$2963225c91179589;
134
- var $cd231e464c886c86$export$127df0b7290eb8ef;
135
- var $cd231e464c886c86$export$94d2bcc94afabd89;
136
- var $cd231e464c886c86$export$7f44db659563c8f4;
137
- var $cd231e464c886c86$export$11b8bc81fe551057;
138
- var $cd231e464c886c86$export$79f9a5e9dd010c8d;
139
- var $cd231e464c886c86$export$51ec27881a1e3928;
140
- var $cd231e464c886c86$export$d35bc1e505d1ebbf;
141
- $cd231e464c886c86$export$493d18e796ae054 = "spectrum-FieldLabel_d2db1f";
142
- $cd231e464c886c86$export$9e6f19dc21f22f2e = "spectrum-FieldLabel--positionSide_d2db1f";
143
- $cd231e464c886c86$export$7c47642c7d46f3c9 = "spectrum-FieldLabel-requiredIcon_d2db1f";
144
- $cd231e464c886c86$export$885efcc08143a987 = "spectrum-FieldLabel--alignEnd_d2db1f";
145
- $cd231e464c886c86$export$f6d480ae1e56eba0 = "spectrum-Field_d2db1f";
146
- $cd231e464c886c86$export$a4ea780a9064d7f9 = "spectrum-Field--positionTop_d2db1f";
147
- $cd231e464c886c86$export$3ab8a3dc7f0563d = "spectrum-Field-field_d2db1f";
148
- $cd231e464c886c86$export$2963225c91179589 = "spectrum-Field--positionSide_d2db1f";
149
- $cd231e464c886c86$export$127df0b7290eb8ef = "spectrum-Field-wrapper_d2db1f";
150
- $cd231e464c886c86$export$94d2bcc94afabd89 = "spectrum-Form_d2db1f";
151
- $cd231e464c886c86$export$7f44db659563c8f4 = "spectrum-Form--positionSide_d2db1f";
152
- $cd231e464c886c86$export$11b8bc81fe551057 = "spectrum-Form--positionTop_d2db1f";
153
- $cd231e464c886c86$export$79f9a5e9dd010c8d = "spectrum-LabeledValue_d2db1f";
154
- $cd231e464c886c86$export$51ec27881a1e3928 = "spectrum-Form-itemLabel_d2db1f";
155
- $cd231e464c886c86$export$d35bc1e505d1ebbf = "is-disabled_d2db1f";
156
-
157
-
158
109
 
159
110
 
160
111
  var $4cb2b26710154c56$exports = {};
161
112
 
162
113
  $parcel$export($4cb2b26710154c56$exports, "spectrum-FieldGroup", () => $4cb2b26710154c56$export$75eb16cbfc18279c, (v) => $4cb2b26710154c56$export$75eb16cbfc18279c = v);
163
- $parcel$export($4cb2b26710154c56$exports, "spectrum-FieldGroup--positionSide", () => $4cb2b26710154c56$export$859b606bd9f45f81, (v) => $4cb2b26710154c56$export$859b606bd9f45f81 = v);
164
114
  $parcel$export($4cb2b26710154c56$exports, "spectrum-FieldGroup-group", () => $4cb2b26710154c56$export$984c7bbbfc7ddffc, (v) => $4cb2b26710154c56$export$984c7bbbfc7ddffc = v);
165
115
  $parcel$export($4cb2b26710154c56$exports, "spectrum-FieldGroup-group--horizontal", () => $4cb2b26710154c56$export$1ad8646bcba21c0e, (v) => $4cb2b26710154c56$export$1ad8646bcba21c0e = v);
166
116
  var $4cb2b26710154c56$export$75eb16cbfc18279c;
167
- var $4cb2b26710154c56$export$859b606bd9f45f81;
168
117
  var $4cb2b26710154c56$export$984c7bbbfc7ddffc;
169
118
  var $4cb2b26710154c56$export$1ad8646bcba21c0e;
170
119
  $4cb2b26710154c56$export$75eb16cbfc18279c = "spectrum-FieldGroup_41d350";
171
- $4cb2b26710154c56$export$859b606bd9f45f81 = "spectrum-FieldGroup--positionSide_41d350";
172
120
  $4cb2b26710154c56$export$984c7bbbfc7ddffc = "spectrum-FieldGroup-group_41d350";
173
121
  $4cb2b26710154c56$export$1ad8646bcba21c0e = "spectrum-FieldGroup-group--horizontal_41d350";
174
122
 
@@ -180,28 +128,20 @@ $4cb2b26710154c56$export$1ad8646bcba21c0e = "spectrum-FieldGroup-group--horizont
180
128
  function $ac9b96486fc4badf$var$RadioGroup(props, ref) {
181
129
  props = $4hD9r$useProviderProps(props);
182
130
  props = $4hD9r$useFormProps(props);
183
- let { isEmphasized: isEmphasized , isRequired: isRequired , necessityIndicator: necessityIndicator , label: label , labelPosition: labelPosition = 'top' , labelAlign: labelAlign , validationState: validationState , children: children , orientation: orientation = 'vertical' , description: description , errorMessage: errorMessage , showErrorIcon: showErrorIcon , ...otherProps } = props;
131
+ let { isEmphasized: isEmphasized , validationState: validationState , children: children , orientation: orientation = 'vertical' } = props;
184
132
  let domRef = $4hD9r$useDOMRef(ref);
185
- let { styleProps: styleProps } = $4hD9r$useStyleProps(otherProps);
186
- let hasHelpText = !!description || errorMessage && validationState === 'invalid';
187
133
  let state = $4hD9r$useRadioGroupState(props);
188
134
  let { radioGroupProps: radioGroupProps , labelProps: labelProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $4hD9r$useRadioGroup(props, state);
189
- return(/*#__PURE__*/ $4hD9r$react.createElement("div", {
190
- ...styleProps,
135
+ return(/*#__PURE__*/ $4hD9r$react.createElement($4hD9r$Field, {
136
+ ...props,
137
+ ref: domRef,
138
+ wrapperClassName: $4hD9r$classNames((/*@__PURE__*/$parcel$interopDefault($4cb2b26710154c56$exports)), 'spectrum-FieldGroup'),
139
+ labelProps: labelProps,
140
+ descriptionProps: descriptionProps,
141
+ errorMessageProps: errorMessageProps,
142
+ elementType: "span"
143
+ }, /*#__PURE__*/ $4hD9r$react.createElement("div", {
191
144
  ...radioGroupProps,
192
- className: $4hD9r$classNames((/*@__PURE__*/$parcel$interopDefault($4cb2b26710154c56$exports)), 'spectrum-FieldGroup', {
193
- 'spectrum-FieldGroup--positionSide': labelPosition === 'side'
194
- }, // This is so radio works inside a <Form>
195
- $4hD9r$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field'), styleProps.className),
196
- ref: domRef
197
- }, label && /*#__PURE__*/ $4hD9r$react.createElement($4hD9r$Label, {
198
- ...labelProps,
199
- elementType: "span",
200
- labelPosition: labelPosition,
201
- labelAlign: labelAlign,
202
- isRequired: isRequired,
203
- necessityIndicator: necessityIndicator
204
- }, label), /*#__PURE__*/ $4hD9r$react.createElement("div", {
205
145
  className: $4hD9r$classNames((/*@__PURE__*/$parcel$interopDefault($4cb2b26710154c56$exports)), 'spectrum-FieldGroup-group', {
206
146
  'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'
207
147
  })
@@ -211,14 +151,7 @@ function $ac9b96486fc4badf$var$RadioGroup(props, ref) {
211
151
  validationState: validationState,
212
152
  state: state
213
153
  }
214
- }, children)), hasHelpText && /*#__PURE__*/ $4hD9r$react.createElement($4hD9r$HelpText, {
215
- descriptionProps: descriptionProps,
216
- errorMessageProps: errorMessageProps,
217
- description: description,
218
- errorMessage: errorMessage,
219
- validationState: validationState,
220
- showErrorIcon: showErrorIcon
221
- })));
154
+ }, children))));
222
155
  }
223
156
  /**
224
157
  * Radio groups allow users to select a single option from a list of mutually exclusive options.
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAgC;AAChC,GAAsC;AACtC,GAAuC;AACvC,GAA4B;AAC5B,GAAsC;AACtC,GAA4C;AAC5C,GAA4B;AAC5B,GAAuC;AACvC,GAA4B;AAR5B,yCAAgC,GAAG,CAAuB;AAC1D,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;AAClD,yCAAsC,GAAG,CAA6B;AACtE,yCAA4C,GAAG,CAAmC;AAClF,yCAA4B,GAAG,CAAmB;AAClD,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;;;;;;ACc3C,KAAK,CAAC,yCAAY,GAAG,YAAK,CAAC,aAAa,CAA2B,IAAI;SAE9D,yCAAgB,GAAsB,CAAC;IACrD,MAAM,CAAC,iBAAU,CAAC,yCAAY;AAChC,CAAC;;;SFJQ,2BAAK,CAAC,KAAyB,EAAE,GAAmC,EAAE,CAAC;IAC9E,GAAG,CAAC,CAAC,aACH,UAAU,aACV,QAAQ,cACR,SAAS,MACN,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,CAAC,aAAA,UAAU,cAAE,SAAS,EAAA,CAAC,GAAG,eAAQ,CAAC,CAAC;oBAAA,UAAU;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W,iBAAG,YAAK,CAAC,UAAU,CAAC,gCAAU;;","sources":["packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/Radio.tsx","packages/@adobe/spectrum-css-temp/components/radio/vars.css","packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n validationState,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n validationState?: 'valid' | 'invalid',\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, LabelPosition} from '@react-types/shared';\nimport {HelpText, Label} from '@react-spectrum/label';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n isRequired,\n necessityIndicator,\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n validationState,\n children,\n orientation = 'vertical',\n description,\n errorMessage,\n showErrorIcon,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n\n let state = useRadioGroupState(props);\n let {radioGroupProps, labelProps, descriptionProps, errorMessageProps} = useRadioGroup(props, state);\n\n return (\n <div\n {...styleProps}\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup',\n {\n 'spectrum-FieldGroup--positionSide': labelPosition === 'side'\n },\n // This is so radio works inside a <Form>\n classNames(\n labelStyles,\n 'spectrum-Field'\n ),\n styleProps.className\n )\n }\n ref={domRef}>\n {label &&\n <Label\n {...labelProps}\n elementType=\"span\"\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}>\n {label}\n </Label>\n }\n <div\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n validationState,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n {hasHelpText &&\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n showErrorIcon={showErrorIcon} />\n }\n </div>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAgC;AAChC,GAAsC;AACtC,GAAuC;AACvC,GAA4B;AAC5B,GAAsC;AACtC,GAA4C;AAC5C,GAA4B;AAC5B,GAAuC;AACvC,GAA4B;AAR5B,yCAAgC,GAAG,CAAuB;AAC1D,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;AAClD,yCAAsC,GAAG,CAA6B;AACtE,yCAA4C,GAAG,CAAmC;AAClF,yCAA4B,GAAG,CAAmB;AAClD,yCAAuC,GAAG,CAA8B;AACxE,yCAA4B,GAAG,CAAmB;;;;;;ACc3C,KAAK,CAAC,yCAAY,GAAG,YAAK,CAAC,aAAa,CAA2B,IAAI;SAE9D,yCAAgB,GAAsB,CAAC;IACrD,MAAM,CAAC,iBAAU,CAAC,yCAAY;AAChC,CAAC;;;SFJQ,2BAAK,CAAC,KAAyB,EAAE,GAAmC,EAAE,CAAC;IAC9E,GAAG,CAAC,CAAC,aACH,UAAU,aACV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KAAK;QACP,CAAC;OACA,QAAQ;AAKnB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,KAAK,CAAC,yCAAW,iBAAG,YAAK,CAAC,UAAU,CAAC,gCAAU;;","sources":["packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/Radio.tsx","packages/@adobe/spectrum-css-temp/components/radio/vars.css","packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n validationState,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n validationState?: 'valid' | 'invalid',\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n validationState,\n children,\n orientation = 'vertical'\n } = props;\n\n let domRef = useDOMRef(ref);\n let state = useRadioGroupState(props);\n let {radioGroupProps, labelProps, descriptionProps, errorMessageProps} = useRadioGroup(props, state);\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={classNames(styles, 'spectrum-FieldGroup')}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n elementType=\"span\">\n <div\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n validationState,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n </Field>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"module.js.map"}
package/dist/types.d.ts CHANGED
@@ -9,7 +9,7 @@ export const Radio: React.ForwardRefExoticComponent<SpectrumRadioProps & React.R
9
9
  * Radio groups allow users to select a single option from a list of mutually exclusive options.
10
10
  * All possible options are exposed up front for users to compare.
11
11
  */
12
- export const RadioGroup: React.ForwardRefExoticComponent<SpectrumRadioGroupProps & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>>;
12
+ export const RadioGroup: React.ForwardRefExoticComponent<SpectrumRadioGroupProps & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLElement>>>;
13
13
  export type { SpectrumRadioProps } from '@react-types/radio';
14
14
  export type { SpectrumRadioGroupProps } from '@react-types/radio';
15
15
 
@@ -1 +1 @@
1
- {"mappings":";;ACoFA;;;GAGG;AACH,OAAA,MAAM,qKAA0B,CAAC;ACyBjC;;;GAGG;AACH,OAAA,MAAM,qJAA0C,CAAC;ACrGjD,YAAY,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/Radio.tsx","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;ACoFA;;;GAGG;AACH,OAAA,MAAM,qKAA0B,CAAC;ACjBjC;;;GAGG;AACH,OAAA,MAAM,kJAA0C,CAAC;AC3DjD,YAAY,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/context.ts","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/Radio.tsx","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/RadioGroup.tsx","packages/@react-spectrum/radio/src/packages/@react-spectrum/radio/src/index.ts","packages/@react-spectrum/radio/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Radio} from './Radio';\nexport {RadioGroup} from './RadioGroup';\nexport type {SpectrumRadioProps} from '@react-types/radio';\nexport type {SpectrumRadioGroupProps} from '@react-types/radio';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/radio",
3
- "version": "3.0.0-nightly.1778+c24dc2e01",
3
+ "version": "3.0.0-nightly.1783+cb54cf480",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,18 +32,18 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/focus": "3.0.0-nightly.1778+c24dc2e01",
36
- "@react-aria/interactions": "3.0.0-nightly.1778+c24dc2e01",
37
- "@react-aria/radio": "3.0.0-nightly.1778+c24dc2e01",
38
- "@react-spectrum/form": "3.0.0-nightly.1778+c24dc2e01",
39
- "@react-spectrum/label": "3.7.2-nightly.3478+c24dc2e01",
40
- "@react-spectrum/utils": "3.0.0-nightly.1778+c24dc2e01",
41
- "@react-stately/radio": "3.0.0-nightly.1778+c24dc2e01",
42
- "@react-types/radio": "3.0.0-nightly.1778+c24dc2e01",
43
- "@react-types/shared": "3.0.0-nightly.1778+c24dc2e01"
35
+ "@react-aria/focus": "3.0.0-nightly.1783+cb54cf480",
36
+ "@react-aria/interactions": "3.0.0-nightly.1783+cb54cf480",
37
+ "@react-aria/radio": "3.0.0-nightly.1783+cb54cf480",
38
+ "@react-spectrum/form": "3.0.0-nightly.1783+cb54cf480",
39
+ "@react-spectrum/label": "3.7.2-nightly.3483+cb54cf480",
40
+ "@react-spectrum/utils": "3.0.0-nightly.1783+cb54cf480",
41
+ "@react-stately/radio": "3.0.0-nightly.1783+cb54cf480",
42
+ "@react-types/radio": "3.0.0-nightly.1783+cb54cf480",
43
+ "@react-types/shared": "3.0.0-nightly.1783+cb54cf480"
44
44
  },
45
45
  "devDependencies": {
46
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1778+c24dc2e01"
46
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1783+cb54cf480"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@react-spectrum/provider": "^3.0.0",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "c24dc2e0124fac3467b3adc48b1067f2447cd2b3"
55
+ "gitHead": "cb54cf4804b2a27e51cd5bc9a594748088738339"
56
56
  }
@@ -10,10 +10,9 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';
14
- import {DOMRef, LabelPosition} from '@react-types/shared';
15
- import {HelpText, Label} from '@react-spectrum/label';
16
- import labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';
13
+ import {classNames, useDOMRef} from '@react-spectrum/utils';
14
+ import {DOMRef} from '@react-types/shared';
15
+ import {Field} from '@react-spectrum/label';
17
16
  import {RadioContext} from './context';
18
17
  import React from 'react';
19
18
  import {SpectrumRadioGroupProps} from '@react-types/radio';
@@ -23,63 +22,31 @@ import {useProviderProps} from '@react-spectrum/provider';
23
22
  import {useRadioGroup} from '@react-aria/radio';
24
23
  import {useRadioGroupState} from '@react-stately/radio';
25
24
 
26
- function RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLDivElement>) {
25
+ function RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLElement>) {
27
26
  props = useProviderProps(props);
28
27
  props = useFormProps(props);
29
28
  let {
30
29
  isEmphasized,
31
- isRequired,
32
- necessityIndicator,
33
- label,
34
- labelPosition = 'top' as LabelPosition,
35
- labelAlign,
36
30
  validationState,
37
31
  children,
38
- orientation = 'vertical',
39
- description,
40
- errorMessage,
41
- showErrorIcon,
42
- ...otherProps
32
+ orientation = 'vertical'
43
33
  } = props;
44
- let domRef = useDOMRef(ref);
45
- let {styleProps} = useStyleProps(otherProps);
46
- let hasHelpText = !!description || errorMessage && validationState === 'invalid';
47
34
 
35
+ let domRef = useDOMRef(ref);
48
36
  let state = useRadioGroupState(props);
49
37
  let {radioGroupProps, labelProps, descriptionProps, errorMessageProps} = useRadioGroup(props, state);
50
38
 
51
39
  return (
52
- <div
53
- {...styleProps}
54
- {...radioGroupProps}
55
- className={
56
- classNames(
57
- styles,
58
- 'spectrum-FieldGroup',
59
- {
60
- 'spectrum-FieldGroup--positionSide': labelPosition === 'side'
61
- },
62
- // This is so radio works inside a <Form>
63
- classNames(
64
- labelStyles,
65
- 'spectrum-Field'
66
- ),
67
- styleProps.className
68
- )
69
- }
70
- ref={domRef}>
71
- {label &&
72
- <Label
73
- {...labelProps}
74
- elementType="span"
75
- labelPosition={labelPosition}
76
- labelAlign={labelAlign}
77
- isRequired={isRequired}
78
- necessityIndicator={necessityIndicator}>
79
- {label}
80
- </Label>
81
- }
40
+ <Field
41
+ {...props}
42
+ ref={domRef}
43
+ wrapperClassName={classNames(styles, 'spectrum-FieldGroup')}
44
+ labelProps={labelProps}
45
+ descriptionProps={descriptionProps}
46
+ errorMessageProps={errorMessageProps}
47
+ elementType="span">
82
48
  <div
49
+ {...radioGroupProps}
83
50
  className={
84
51
  classNames(
85
52
  styles,
@@ -98,16 +65,7 @@ function RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLDivElement>)
98
65
  {children}
99
66
  </RadioContext.Provider>
100
67
  </div>
101
- {hasHelpText &&
102
- <HelpText
103
- descriptionProps={descriptionProps}
104
- errorMessageProps={errorMessageProps}
105
- description={description}
106
- errorMessage={errorMessage}
107
- validationState={validationState}
108
- showErrorIcon={showErrorIcon} />
109
- }
110
- </div>
68
+ </Field>
111
69
  );
112
70
  }
113
71