@react-spectrum/picker 3.8.1-nightly.3539 → 3.8.1-nightly.3552
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 +1 -1
- package/dist/main.js +13 -46
- package/dist/main.js.map +1 -1
- package/dist/module.js +14 -47
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +22 -22
- package/src/Picker.tsx +22 -51
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.spectrum-Dropdown_6d8ec0{-webkit-user-select:none;user-select:none;max-width:100%;width:var(--spectrum-global-dimension-size-2400);min-width:var(--spectrum-dropdown-min-width,var(--spectrum-global-dimension-size-600));display:inline-block;position:relative}.spectrum-Dropdown_6d8ec0 select{-webkit-appearance:none;appearance:none}.spectrum-Dropdown_6d8ec0 select::-ms-expand{display:none}.spectrum-Dropdown_6d8ec0 select::-ms-value{background-color:#0000}[dir=ltr] .spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{right:var(--spectrum-dropdown-padding-x,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{left:var(--spectrum-dropdown-padding-x,var(--spectrum-global-dimension-size-150))}.spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{margin-top:calc(var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75))/-2);position:absolute;top:50%}.spectrum-Dropdown-trigger_6d8ec0{width:100%;contain:size;justify-content:space-between;align-items:center;display:flex;position:relative}[dir=ltr] .spectrum-Dropdown-label_6d8ec0{text-align:left}[dir=rtl] .spectrum-Dropdown-label_6d8ec0{text-align:right}.spectrum-Dropdown-label_6d8ec0{white-space:nowrap;height:calc(var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2);line-height:calc(var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2);font-size:var(--spectrum-dropdown-text-size,var(--spectrum-alias-font-size-default));text-overflow:ellipsis;flex:auto;overflow:hidden}.spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{font-weight:var(--spectrum-dropdown-placeholder-text-font-weight,var(--spectrum-global-font-weight-regular));font-style:var(--spectrum-dropdown-placeholder-text-font-style,var(--spectrum-global-font-style-italic));transition:color var(--spectrum-global-animation-duration-100,130ms)ease-in-out}[dir=ltr] .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-label_6d8ec0{margin-left:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-label_6d8ec0{margin-right:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=ltr] .spectrum-Dropdown-label_6d8ec0~.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-label_6d8ec0~.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}.spectrum-Dropdown-chevron_6d8ec0{vertical-align:top;transition:color var(--spectrum-global-animation-duration-100,130ms)ease-out;margin-top:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75)))/2);margin-bottom:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75)))/2);opacity:1;flex-shrink:0;display:inline-block;position:relative}.spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0{margin-top:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-dropdown-icon-size,var(--spectrum-alias-workflow-icon-size)))/2);margin-bottom:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-dropdown-icon-size,var(--spectrum-alias-workflow-icon-size)))/2)}[dir=ltr] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-invalidIcon_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-invalidIcon_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-progressCircle_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-progressCircle_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-gap,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-gap,var(--spectrum-global-dimension-size-100))}.spectrum-Dropdown--quiet_6d8ec0{width:auto;min-width:var(--spectrum-dropdown-quiet-min-width,var(--spectrum-global-dimension-size-600))}.spectrum-Dropdown--quiet_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0{contain:none}[dir=ltr] .spectrum-Dropdown-popover--quiet_6d8ec0{margin-left:calc(var(--spectrum-dropdown-quiet-offset)*-1)}[dir=rtl] .spectrum-Dropdown-popover--quiet_6d8ec0{margin-right:calc(var(--spectrum-dropdown-quiet-offset)*-1)}.spectrum-Dropdown-popover--quiet_6d8ec0{width:var(--spectrum-global-dimension-size-2400);--spectrum-dropdown-quiet-offset:calc(var(--spectrum-dropdown-quiet-popover-offset-x,var(--spectrum-global-dimension-size-150)) + var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin)))}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0{width:auto;flex-direction:column;display:inline-flex}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0 .spectrum-Dropdown--quiet_6d8ec0{width:auto;min-width:var(--spectrum-dropdown-quiet-min-width,var(--spectrum-global-dimension-size-600))}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0 .spectrum-Dropdown--quiet_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0{width:auto}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0.spectrum-Dropdown-fieldWrapper--positionSide_6d8ec0{flex-direction:row}.spectrum-Dropdown_6d8ec0{--spectrum-dropdown-placeholder-text-color:var(--spectrum-global-color-gray-800)}.spectrum-Dropdown_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-chevron_6d8ec0{color:var(--spectrum-dropdown-icon-color-hover,var(--spectrum-alias-icon-color-hover))}.spectrum-Dropdown_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0.is-selected_6d8ec0 .is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-down,var(--spectrum-global-color-gray-900))}.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0{color:var(--spectrum-dropdown-validation-icon-color-error,var(--spectrum-semantic-negative-color-icon))}.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0.is-disabled_6d8ec0 .spectrum-Icon_6d8ec0,.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0,.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-chevron_6d8ec0,.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-chevron_6d8ec0{color:var(--spectrum-dropdown-icon-color-disabled,var(--spectrum-alias-icon-color-disabled))}.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0:active .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Dropdown-chevron_6d8ec0{color:var(--spectrum-dropdown-icon-color,var(--spectrum-alias-icon-color))}.spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color,var(--spectrum-alias-placeholder-text-color))}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-hover,var(--spectrum-alias-placeholder-text-color-hover))}.spectrum-Dropdown-trigger_6d8ec0:active .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-mouse-focus,var(--spectrum-global-color-gray-900))}.spectrum-Dropdown-trigger_6d8ec0.focus-ring_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-key-focus,var(--spectrum-alias-placeholder-text-color-hover))}.spectrum-Dropdown-trigger_6d8ec0.focus-ring_6d8ec0 .spectrum-Dropdown-chevron_6d8ec0{color:var(--spectrum-dropdown-icon-color-key-focus,var(--spectrum-alias-icon-color-focus))}@media (forced-colors:active){.spectrum-Dropdown_6d8ec0{--spectrum-dropdown-icon-color:ButtonText;--spectrum-dropdown-icon-color-disabled:GrayText;--spectrum-dropdown-icon-color-hover:ButtonText;--spectrum-dropdown-icon-color-key-focus:ButtonText;--spectrum-dropdown-placeholder-text-color:GrayText;--spectrum-dropdown-placeholder-text-color-disabled:GrayText;--spectrum-dropdown-placeholder-text-color-down:GrayText;--spectrum-dropdown-placeholder-text-color-hover:GrayText;--spectrum-dropdown-placeholder-text-color-key-focus:GrayText;--spectrum-dropdown-placeholder-text-color-mouse-focus:GrayText;--spectrum-dropdown-text-color-disabled:GrayText;--spectrum-dropdown-validation-icon-color-error:ButtonText}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0{color:ButtonText}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:GrayText}}
|
|
1
|
+
.spectrum-Dropdown_6d8ec0{-webkit-user-select:none;user-select:none;max-width:100%;width:var(--spectrum-global-dimension-size-2400);min-width:var(--spectrum-dropdown-min-width,var(--spectrum-global-dimension-size-600));display:inline-block;position:relative}.spectrum-Dropdown_6d8ec0 select{-webkit-appearance:none;appearance:none}.spectrum-Dropdown_6d8ec0 select::-ms-expand{display:none}.spectrum-Dropdown_6d8ec0 select::-ms-value{background-color:#0000}[dir=ltr] .spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{right:var(--spectrum-dropdown-padding-x,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{left:var(--spectrum-dropdown-padding-x,var(--spectrum-global-dimension-size-150))}.spectrum-Dropdown_6d8ec0 select+.spectrum-Dropdown-chevron_6d8ec0{margin-top:calc(var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75))/-2);position:absolute;top:50%}.spectrum-Dropdown-trigger_6d8ec0{width:100%;contain:size;justify-content:space-between;align-items:center;display:flex;position:relative}[dir=ltr] .spectrum-Dropdown-label_6d8ec0{text-align:left}[dir=rtl] .spectrum-Dropdown-label_6d8ec0{text-align:right}.spectrum-Dropdown-label_6d8ec0{white-space:nowrap;height:calc(var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2);line-height:calc(var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2);font-size:var(--spectrum-dropdown-text-size,var(--spectrum-alias-font-size-default));text-overflow:ellipsis;flex:auto;overflow:hidden}.spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{font-weight:var(--spectrum-dropdown-placeholder-text-font-weight,var(--spectrum-global-font-weight-regular));font-style:var(--spectrum-dropdown-placeholder-text-font-style,var(--spectrum-global-font-style-italic));transition:color var(--spectrum-global-animation-duration-100,130ms)ease-in-out}[dir=ltr] .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-label_6d8ec0{margin-left:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-label_6d8ec0{margin-right:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=ltr] .spectrum-Dropdown-label_6d8ec0~.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-label_6d8ec0~.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}.spectrum-Dropdown-chevron_6d8ec0{vertical-align:top;transition:color var(--spectrum-global-animation-duration-100,130ms)ease-out;margin-top:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75)))/2);margin-bottom:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75)))/2);opacity:1;flex-shrink:0;display:inline-block;position:relative}.spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0{margin-top:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-dropdown-icon-size,var(--spectrum-alias-workflow-icon-size)))/2);margin-bottom:calc((var(--spectrum-dropdown-height,var(--spectrum-global-dimension-size-400)) - var(--spectrum-dropdown-border-size,var(--spectrum-alias-border-size-thin))*2 - var(--spectrum-dropdown-icon-size,var(--spectrum-alias-workflow-icon-size)))/2)}[dir=ltr] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-invalidIcon_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-label_6d8ec0+.spectrum-Dropdown-invalidIcon_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-progressCircle_6d8ec0{margin-left:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=rtl] .spectrum-Dropdown-trigger_6d8ec0 .spectrum-Dropdown-progressCircle_6d8ec0{margin-right:var(--spectrum-dropdown-icon-margin-left,var(--spectrum-global-dimension-size-150))}[dir=ltr] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-left:var(--spectrum-dropdown-icon-gap,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Icon_6d8ec0+.spectrum-Dropdown-chevron_6d8ec0{margin-right:var(--spectrum-dropdown-icon-gap,var(--spectrum-global-dimension-size-100))}.spectrum-Dropdown--quiet_6d8ec0{width:auto;min-width:var(--spectrum-dropdown-quiet-min-width,var(--spectrum-global-dimension-size-600))}.spectrum-Dropdown--quiet_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0{contain:none}[dir=ltr] .spectrum-Dropdown-popover--quiet_6d8ec0{margin-left:calc(var(--spectrum-dropdown-quiet-offset)*-1)}[dir=rtl] .spectrum-Dropdown-popover--quiet_6d8ec0{margin-right:calc(var(--spectrum-dropdown-quiet-offset)*-1)}.spectrum-Dropdown-popover--quiet_6d8ec0{width:var(--spectrum-global-dimension-size-2400);--spectrum-dropdown-quiet-offset:calc(var(--spectrum-dropdown-quiet-popover-offset-x,var(--spectrum-global-dimension-size-150)) + var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin)))}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0{width:auto;flex-direction:column;display:inline-flex}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0 .spectrum-Dropdown--quiet_6d8ec0{width:auto;min-width:var(--spectrum-dropdown-quiet-min-width,var(--spectrum-global-dimension-size-600))}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0 .spectrum-Dropdown--quiet_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0{width:auto}.spectrum-Field_6d8ec0.spectrum-Dropdown-fieldWrapper--quiet_6d8ec0.spectrum-Dropdown-fieldWrapper--positionSide_6d8ec0{flex-direction:row}.spectrum-Dropdown_6d8ec0{--spectrum-dropdown-placeholder-text-color:var(--spectrum-global-color-gray-800)}.spectrum-Dropdown_6d8ec0 .spectrum-Dropdown-trigger_6d8ec0.is-selected_6d8ec0 .is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-down,var(--spectrum-global-color-gray-900))}.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0{fill:var(--spectrum-dropdown-validation-icon-color-error,var(--spectrum-semantic-negative-color-icon))}.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0.is-disabled_6d8ec0 .spectrum-Icon_6d8ec0,.spectrum-Dropdown_6d8ec0.is-invalid_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-invalidIcon_6d8ec0{fill:var(--spectrum-dropdown-icon-color-disabled,var(--spectrum-alias-icon-color-disabled))}.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0:active .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Dropdown_6d8ec0.is-disabled_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color,var(--spectrum-alias-placeholder-text-color))}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-hover,var(--spectrum-alias-placeholder-text-color-hover))}.spectrum-Dropdown-trigger_6d8ec0:active .spectrum-Dropdown-label_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-mouse-focus,var(--spectrum-global-color-gray-900))}.spectrum-Dropdown-trigger_6d8ec0.focus-ring_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:var(--spectrum-dropdown-placeholder-text-color-key-focus,var(--spectrum-alias-placeholder-text-color-hover))}@media (forced-colors:active){.spectrum-Dropdown_6d8ec0{--spectrum-dropdown-icon-color:ButtonText;--spectrum-dropdown-icon-color-disabled:GrayText;--spectrum-dropdown-icon-color-hover:ButtonText;--spectrum-dropdown-icon-color-key-focus:ButtonText;--spectrum-dropdown-placeholder-text-color:GrayText;--spectrum-dropdown-placeholder-text-color-disabled:GrayText;--spectrum-dropdown-placeholder-text-color-down:GrayText;--spectrum-dropdown-placeholder-text-color-hover:GrayText;--spectrum-dropdown-placeholder-text-color-key-focus:GrayText;--spectrum-dropdown-placeholder-text-color-mouse-focus:GrayText;--spectrum-dropdown-text-color-disabled:GrayText;--spectrum-dropdown-validation-icon-color-error:ButtonText}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0{color:ButtonText}.spectrum-Dropdown-trigger_6d8ec0.is-hovered_6d8ec0 .spectrum-Dropdown-label_6d8ec0.is-placeholder_6d8ec0{color:GrayText}}
|
package/dist/main.js
CHANGED
|
@@ -3,10 +3,8 @@ var $4FjNO$reactstatelycollections = require("@react-stately/collections");
|
|
|
3
3
|
var $4FjNO$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
|
|
4
4
|
var $4FjNO$spectrumiconsuiChevronDownMedium = require("@spectrum-icons/ui/ChevronDownMedium");
|
|
5
5
|
var $4FjNO$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
-
var $4FjNO$reactariaoverlays = require("@react-aria/overlays");
|
|
7
6
|
var $4FjNO$reactspectrumlabel = require("@react-spectrum/label");
|
|
8
7
|
var $4FjNO$reactspectrumbutton = require("@react-spectrum/button");
|
|
9
|
-
var $4FjNO$reactariafocus = require("@react-aria/focus");
|
|
10
8
|
var $4FjNO$reactariaselect = require("@react-aria/select");
|
|
11
9
|
var $4FjNO$reactspectrumlistbox = require("@react-spectrum/listbox");
|
|
12
10
|
var $4FjNO$reactariautils = require("@react-aria/utils");
|
|
@@ -35,8 +33,6 @@ $parcel$export(module.exports, "Section", () => $4FjNO$reactstatelycollections.S
|
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
36
|
var $a3abae81eb7bd5e2$exports = {};
|
|
41
37
|
var $f7a89742a1d9c438$exports = {};
|
|
42
38
|
$f7a89742a1d9c438$exports = {
|
|
@@ -335,10 +331,10 @@ $parcel$export($b39b306bfc9a5551$exports, "spectrum-Dropdown-popover--quiet", ()
|
|
|
335
331
|
$parcel$export($b39b306bfc9a5551$exports, "spectrum-Field", () => $b39b306bfc9a5551$export$f6d480ae1e56eba0, (v) => $b39b306bfc9a5551$export$f6d480ae1e56eba0 = v);
|
|
336
332
|
$parcel$export($b39b306bfc9a5551$exports, "spectrum-Dropdown-fieldWrapper--quiet", () => $b39b306bfc9a5551$export$66ddc2410b0e9eba, (v) => $b39b306bfc9a5551$export$66ddc2410b0e9eba = v);
|
|
337
333
|
$parcel$export($b39b306bfc9a5551$exports, "spectrum-Dropdown-fieldWrapper--positionSide", () => $b39b306bfc9a5551$export$c0b4e9596538c7b1, (v) => $b39b306bfc9a5551$export$c0b4e9596538c7b1 = v);
|
|
338
|
-
$parcel$export($b39b306bfc9a5551$exports, "is-hovered", () => $b39b306bfc9a5551$export$b8813cd5d7824ce7, (v) => $b39b306bfc9a5551$export$b8813cd5d7824ce7 = v);
|
|
339
334
|
$parcel$export($b39b306bfc9a5551$exports, "is-selected", () => $b39b306bfc9a5551$export$1e0fb04f31d3c22a, (v) => $b39b306bfc9a5551$export$1e0fb04f31d3c22a = v);
|
|
340
335
|
$parcel$export($b39b306bfc9a5551$exports, "is-invalid", () => $b39b306bfc9a5551$export$14a30de2866685fa, (v) => $b39b306bfc9a5551$export$14a30de2866685fa = v);
|
|
341
336
|
$parcel$export($b39b306bfc9a5551$exports, "is-disabled", () => $b39b306bfc9a5551$export$d35bc1e505d1ebbf, (v) => $b39b306bfc9a5551$export$d35bc1e505d1ebbf = v);
|
|
337
|
+
$parcel$export($b39b306bfc9a5551$exports, "is-hovered", () => $b39b306bfc9a5551$export$b8813cd5d7824ce7, (v) => $b39b306bfc9a5551$export$b8813cd5d7824ce7 = v);
|
|
342
338
|
$parcel$export($b39b306bfc9a5551$exports, "focus-ring", () => $b39b306bfc9a5551$export$f39a09f249340e2a, (v) => $b39b306bfc9a5551$export$f39a09f249340e2a = v);
|
|
343
339
|
var $b39b306bfc9a5551$export$f33c6833ddc773bd;
|
|
344
340
|
var $b39b306bfc9a5551$export$abbb0cf96dbbb8a0;
|
|
@@ -353,10 +349,10 @@ var $b39b306bfc9a5551$export$cbeaf986973c0633;
|
|
|
353
349
|
var $b39b306bfc9a5551$export$f6d480ae1e56eba0;
|
|
354
350
|
var $b39b306bfc9a5551$export$66ddc2410b0e9eba;
|
|
355
351
|
var $b39b306bfc9a5551$export$c0b4e9596538c7b1;
|
|
356
|
-
var $b39b306bfc9a5551$export$b8813cd5d7824ce7;
|
|
357
352
|
var $b39b306bfc9a5551$export$1e0fb04f31d3c22a;
|
|
358
353
|
var $b39b306bfc9a5551$export$14a30de2866685fa;
|
|
359
354
|
var $b39b306bfc9a5551$export$d35bc1e505d1ebbf;
|
|
355
|
+
var $b39b306bfc9a5551$export$b8813cd5d7824ce7;
|
|
360
356
|
var $b39b306bfc9a5551$export$f39a09f249340e2a;
|
|
361
357
|
$b39b306bfc9a5551$export$f33c6833ddc773bd = "spectrum-Dropdown_6d8ec0";
|
|
362
358
|
$b39b306bfc9a5551$export$abbb0cf96dbbb8a0 = "spectrum-Dropdown-chevron_6d8ec0";
|
|
@@ -371,10 +367,10 @@ $b39b306bfc9a5551$export$cbeaf986973c0633 = "spectrum-Dropdown-popover--quiet_6d
|
|
|
371
367
|
$b39b306bfc9a5551$export$f6d480ae1e56eba0 = "spectrum-Field_6d8ec0";
|
|
372
368
|
$b39b306bfc9a5551$export$66ddc2410b0e9eba = "spectrum-Dropdown-fieldWrapper--quiet_6d8ec0";
|
|
373
369
|
$b39b306bfc9a5551$export$c0b4e9596538c7b1 = "spectrum-Dropdown-fieldWrapper--positionSide_6d8ec0";
|
|
374
|
-
$b39b306bfc9a5551$export$b8813cd5d7824ce7 = "is-hovered_6d8ec0";
|
|
375
370
|
$b39b306bfc9a5551$export$1e0fb04f31d3c22a = "is-selected_6d8ec0";
|
|
376
371
|
$b39b306bfc9a5551$export$14a30de2866685fa = "is-invalid_6d8ec0";
|
|
377
372
|
$b39b306bfc9a5551$export$d35bc1e505d1ebbf = "is-disabled_6d8ec0";
|
|
373
|
+
$b39b306bfc9a5551$export$b8813cd5d7824ce7 = "is-hovered_6d8ec0";
|
|
378
374
|
$b39b306bfc9a5551$export$f39a09f249340e2a = "focus-ring_6d8ec0";
|
|
379
375
|
|
|
380
376
|
|
|
@@ -390,7 +386,6 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
390
386
|
let state = $4FjNO$reactstatelyselect.useSelectState(props);
|
|
391
387
|
let domRef = $4FjNO$reactspectrumutils.useDOMRef(ref);
|
|
392
388
|
let popoverRef = $4FjNO$react.useRef();
|
|
393
|
-
let unwrappedPopoverRef = $4FjNO$reactspectrumutils.useUnwrapDOMRef(popoverRef);
|
|
394
389
|
let triggerRef = $4FjNO$react.useRef();
|
|
395
390
|
let unwrappedTriggerRef = $4FjNO$reactspectrumutils.useUnwrapDOMRef(triggerRef);
|
|
396
391
|
let listboxRef = $4FjNO$react.useRef();
|
|
@@ -403,38 +398,13 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
403
398
|
keyboardDelegate: layout
|
|
404
399
|
}, state, unwrappedTriggerRef);
|
|
405
400
|
let isMobile = $4FjNO$reactspectrumutils.useIsMobileDevice();
|
|
406
|
-
let { overlayProps: overlayProps , placement: placement , updatePosition: updatePosition } = $4FjNO$reactariaoverlays.useOverlayPosition({
|
|
407
|
-
targetRef: unwrappedTriggerRef,
|
|
408
|
-
overlayRef: unwrappedPopoverRef,
|
|
409
|
-
scrollRef: listboxRef,
|
|
410
|
-
placement: `${direction} ${align}`,
|
|
411
|
-
shouldFlip: shouldFlip,
|
|
412
|
-
isOpen: state.isOpen && !isMobile,
|
|
413
|
-
onClose: state.close
|
|
414
|
-
});
|
|
415
401
|
let { hoverProps: hoverProps , isHovered: isHovered } = $4FjNO$reactariainteractions.useHover({
|
|
416
402
|
isDisabled: isDisabled
|
|
417
403
|
});
|
|
418
|
-
// Update position once the ListBox has rendered. This ensures that
|
|
419
|
-
// it flips properly when it doesn't fit in the available space.
|
|
420
|
-
// TODO: add ResizeObserver to useOverlayPosition so we don't need this.
|
|
421
|
-
$4FjNO$reactariautils.useLayoutEffect(()=>{
|
|
422
|
-
if (state.isOpen) requestAnimationFrame(()=>{
|
|
423
|
-
updatePosition();
|
|
424
|
-
});
|
|
425
|
-
}, [
|
|
426
|
-
state.isOpen,
|
|
427
|
-
updatePosition
|
|
428
|
-
]);
|
|
429
404
|
let isLoadingInitial = props.isLoading && state.collection.size === 0;
|
|
430
405
|
let isLoadingMore = props.isLoading && state.collection.size > 0;
|
|
431
406
|
// On small screen devices, the listbox is rendered in a tray, otherwise a popover.
|
|
432
|
-
let listbox = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$
|
|
433
|
-
restoreFocus: true,
|
|
434
|
-
contain: isMobile
|
|
435
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactariaoverlays.DismissButton, {
|
|
436
|
-
onDismiss: ()=>state.close()
|
|
437
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactspectrumlistbox.ListBoxBase, {
|
|
407
|
+
let listbox = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactspectrumlistbox.ListBoxBase, {
|
|
438
408
|
...menuProps,
|
|
439
409
|
ref: listboxRef,
|
|
440
410
|
disallowEmptySelection: true,
|
|
@@ -450,9 +420,7 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
450
420
|
},
|
|
451
421
|
isLoading: isLoadingMore,
|
|
452
422
|
onLoadMore: props.onLoadMore
|
|
453
|
-
})
|
|
454
|
-
onDismiss: ()=>state.close()
|
|
455
|
-
}));
|
|
423
|
+
});
|
|
456
424
|
// Measure the width of the button to inform the width of the menu (below).
|
|
457
425
|
let [buttonWidth, setButtonWidth] = $4FjNO$react.useState(null);
|
|
458
426
|
let { scale: scale } = $4FjNO$reactspectrumprovider.useProvider();
|
|
@@ -477,8 +445,7 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
477
445
|
]);
|
|
478
446
|
let overlay;
|
|
479
447
|
if (isMobile) overlay = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactspectrumoverlays.Tray, {
|
|
480
|
-
|
|
481
|
-
onClose: state.close
|
|
448
|
+
state: state
|
|
482
449
|
}, listbox);
|
|
483
450
|
else {
|
|
484
451
|
// If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.
|
|
@@ -486,28 +453,28 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
486
453
|
// Not using style props for this because they don't support `calc`.
|
|
487
454
|
let width = isQuiet ? null : buttonWidth;
|
|
488
455
|
let style = {
|
|
489
|
-
...overlayProps.style,
|
|
490
456
|
width: menuWidth ? $4FjNO$reactspectrumutils.dimensionValue(menuWidth) : width,
|
|
491
457
|
minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth
|
|
492
458
|
};
|
|
493
459
|
overlay = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactspectrumoverlays.Popover, {
|
|
494
|
-
isOpen: state.isOpen,
|
|
495
460
|
UNSAFE_style: style,
|
|
496
461
|
UNSAFE_className: $4FjNO$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b39b306bfc9a5551$exports)), 'spectrum-Dropdown-popover', {
|
|
497
462
|
'spectrum-Dropdown-popover--quiet': isQuiet
|
|
498
463
|
}),
|
|
499
464
|
ref: popoverRef,
|
|
500
|
-
placement:
|
|
465
|
+
placement: `${direction} ${align}`,
|
|
466
|
+
shouldFlip: shouldFlip,
|
|
501
467
|
hideArrow: true,
|
|
502
|
-
|
|
503
|
-
|
|
468
|
+
state: state,
|
|
469
|
+
triggerRef: unwrappedTriggerRef,
|
|
470
|
+
scrollRef: listboxRef
|
|
504
471
|
}, listbox);
|
|
505
472
|
}
|
|
506
473
|
let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;
|
|
507
474
|
if (typeof contents === 'string') contents = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement($4FjNO$reactspectrumtext.Text, null, contents);
|
|
508
475
|
let picker = /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement("div", {
|
|
509
476
|
className: $4FjNO$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b39b306bfc9a5551$exports)), 'spectrum-Dropdown', {
|
|
510
|
-
'is-invalid': validationState === 'invalid',
|
|
477
|
+
'is-invalid': validationState === 'invalid' && !isDisabled,
|
|
511
478
|
'is-disabled': isDisabled,
|
|
512
479
|
'spectrum-Dropdown--quiet': isQuiet
|
|
513
480
|
})
|
|
@@ -549,7 +516,7 @@ function $902e54cfaa4270a9$var$Picker(props, ref) {
|
|
|
549
516
|
size: "S",
|
|
550
517
|
"aria-label": stringFormatter.format('loading'),
|
|
551
518
|
UNSAFE_className: $4FjNO$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b39b306bfc9a5551$exports)), 'spectrum-Dropdown-progressCircle')
|
|
552
|
-
}), validationState === 'invalid' && !isLoadingInitial && /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement(($parcel$interopDefault($4FjNO$spectrumiconsuiAlertMedium)), {
|
|
519
|
+
}), validationState === 'invalid' && !isLoadingInitial && !isDisabled && /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement(($parcel$interopDefault($4FjNO$spectrumiconsuiAlertMedium)), {
|
|
553
520
|
UNSAFE_className: $4FjNO$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b39b306bfc9a5551$exports)), 'spectrum-Dropdown-invalidIcon')
|
|
554
521
|
}), /*#__PURE__*/ ($parcel$interopDefault($4FjNO$react)).createElement(($parcel$interopDefault($4FjNO$spectrumiconsuiChevronDownMedium)), {
|
|
555
522
|
UNSAFE_className: $4FjNO$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b39b306bfc9a5551$exports)), 'spectrum-Dropdown-chevron')
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,0BAAe;IAClC,CAAE,eAAG,sBAAa;AAC/B,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,qBAAY;IACjC,CAAI,eAAG,2BAAc;AAChC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;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AFH;;CAEG,AAFH,EAEG,CACH,EAAwF,AAAxF,sFAAwF;AACxF,EAA2G,AAA3G,yGAA2G;AAC3G,KAAK,CAAC,yCAAO,iBAAG,sCAAK,CAAC,UAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/picker/src/index.ts","packages/@react-spectrum/picker/src/Picker.tsx","packages/@react-spectrum/picker/intl/*.js","packages/@react-spectrum/picker/intl/ar-AE.json","packages/@react-spectrum/picker/intl/bg-BG.json","packages/@react-spectrum/picker/intl/cs-CZ.json","packages/@react-spectrum/picker/intl/da-DK.json","packages/@react-spectrum/picker/intl/de-DE.json","packages/@react-spectrum/picker/intl/el-GR.json","packages/@react-spectrum/picker/intl/en-US.json","packages/@react-spectrum/picker/intl/es-ES.json","packages/@react-spectrum/picker/intl/et-EE.json","packages/@react-spectrum/picker/intl/fi-FI.json","packages/@react-spectrum/picker/intl/fr-FR.json","packages/@react-spectrum/picker/intl/he-IL.json","packages/@react-spectrum/picker/intl/hr-HR.json","packages/@react-spectrum/picker/intl/hu-HU.json","packages/@react-spectrum/picker/intl/it-IT.json","packages/@react-spectrum/picker/intl/ja-JP.json","packages/@react-spectrum/picker/intl/ko-KR.json","packages/@react-spectrum/picker/intl/lt-LT.json","packages/@react-spectrum/picker/intl/lv-LV.json","packages/@react-spectrum/picker/intl/nb-NO.json","packages/@react-spectrum/picker/intl/nl-NL.json","packages/@react-spectrum/picker/intl/pl-PL.json","packages/@react-spectrum/picker/intl/pt-BR.json","packages/@react-spectrum/picker/intl/pt-PT.json","packages/@react-spectrum/picker/intl/ro-RO.json","packages/@react-spectrum/picker/intl/ru-RU.json","packages/@react-spectrum/picker/intl/sk-SK.json","packages/@react-spectrum/picker/intl/sl-SI.json","packages/@react-spectrum/picker/intl/sr-SP.json","packages/@react-spectrum/picker/intl/sv-SE.json","packages/@react-spectrum/picker/intl/tr-TR.json","packages/@react-spectrum/picker/intl/uk-UA.json","packages/@react-spectrum/picker/intl/zh-CN.json","packages/@react-spectrum/picker/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dropdown/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 {Picker} from './Picker';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumPickerProps} from '@react-types/select';\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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium';\nimport {\n classNames,\n dimensionValue,\n SlotProvider,\n useDOMRef,\n useIsMobileDevice,\n useSlotProps,\n useUnwrapDOMRef\n} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue, FocusableRefValue, LabelPosition} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {FocusScope} from '@react-aria/focus';\nimport {HiddenSelect, useSelect} from '@react-aria/select';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxBase, useListBoxLayout} from '@react-spectrum/listbox';\nimport {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria/utils';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder, useHover} from '@react-aria/interactions';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useCallback, useRef, useState} from 'react';\nimport {SpectrumPickerProps} from '@react-types/select';\nimport styles from '@adobe/spectrum-css-temp/components/dropdown/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\nimport {useSelectState} from '@react-stately/select';\n\nfunction Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'picker');\n props = useProviderProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {\n autoComplete,\n isDisabled,\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n placeholder = stringFormatter.format('placeholder'),\n validationState,\n isQuiet,\n label,\n labelPosition = 'top' as LabelPosition,\n menuWidth,\n name,\n autoFocus\n } = props;\n\n let state = useSelectState(props);\n let domRef = useDOMRef(ref);\n\n let popoverRef = useRef<DOMRefValue<HTMLDivElement>>();\n let unwrappedPopoverRef = useUnwrapDOMRef(popoverRef);\n let triggerRef = useRef<FocusableRefValue<HTMLElement>>();\n let unwrappedTriggerRef = useUnwrapDOMRef(triggerRef);\n let listboxRef = useRef();\n\n // We create the listbox layout in Picker and pass it to ListBoxBase below\n // so that the layout information can be cached even while the listbox is not mounted.\n // We also use the layout as the keyboard delegate for type to select.\n let layout = useListBoxLayout(state);\n let {labelProps, triggerProps, valueProps, menuProps, descriptionProps, errorMessageProps} = useSelect({\n ...props,\n keyboardDelegate: layout\n }, state, unwrappedTriggerRef);\n\n let isMobile = useIsMobileDevice();\n let {overlayProps, placement, updatePosition} = useOverlayPosition({\n targetRef: unwrappedTriggerRef,\n overlayRef: unwrappedPopoverRef,\n scrollRef: listboxRef,\n placement: `${direction} ${align}` as Placement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n // Update position once the ListBox has rendered. This ensures that\n // it flips properly when it doesn't fit in the available space.\n // TODO: add ResizeObserver to useOverlayPosition so we don't need this.\n useLayoutEffect(() => {\n if (state.isOpen) {\n requestAnimationFrame(() => {\n updatePosition();\n });\n }\n }, [state.isOpen, updatePosition]);\n\n let isLoadingInitial = props.isLoading && state.collection.size === 0;\n let isLoadingMore = props.isLoading && state.collection.size > 0;\n\n // On small screen devices, the listbox is rendered in a tray, otherwise a popover.\n let listbox = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={() => state.close()} />\n <ListBoxBase\n {...menuProps}\n ref={listboxRef}\n disallowEmptySelection\n autoFocus={state.focusStrategy || true}\n shouldSelectOnPressUp\n focusOnPointerEnter\n layout={layout}\n state={state}\n width={isMobile ? '100%' : undefined}\n // Set max height: inherit so Tray scrolling works\n UNSAFE_style={{maxHeight: 'inherit'}}\n isLoading={isLoadingMore}\n onLoadMore={props.onLoadMore} />\n <DismissButton onDismiss={() => state.close()} />\n </FocusScope>\n );\n\n // Measure the width of the button to inform the width of the menu (below).\n let [buttonWidth, setButtonWidth] = useState(null);\n let {scale} = useProvider();\n\n let onResize = useCallback(() => {\n if (!isMobile && unwrappedTriggerRef.current) {\n let width = unwrappedTriggerRef.current.offsetWidth;\n setButtonWidth(width);\n }\n }, [unwrappedTriggerRef, setButtonWidth, isMobile]);\n\n useResizeObserver({\n ref: unwrappedTriggerRef,\n onResize: onResize\n });\n\n useLayoutEffect(onResize, [scale, state.selectedKey, onResize]);\n\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray isOpen={state.isOpen} onClose={state.close}>\n {listbox}\n </Tray>\n );\n } else {\n // If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.\n // Always have a minimum width of the button width. When quiet, there is an extra offset to add.\n // Not using style props for this because they don't support `calc`.\n let width = isQuiet ? null : buttonWidth;\n let style = {\n ...overlayProps.style,\n width: menuWidth ? dimensionValue(menuWidth) : width,\n minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth\n };\n\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={style}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-popover', {'spectrum-Dropdown-popover--quiet': isQuiet})}\n ref={popoverRef}\n placement={placement}\n hideArrow\n shouldCloseOnBlur\n onClose={state.close}>\n {listbox}\n </Popover>\n );\n }\n\n let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;\n if (typeof contents === 'string') {\n contents = <Text>{contents}</Text>;\n }\n\n let picker = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Dropdown',\n {\n 'is-invalid': validationState === 'invalid',\n 'is-disabled': isDisabled,\n 'spectrum-Dropdown--quiet': isQuiet\n }\n )\n }>\n <HiddenSelect\n autoComplete={autoComplete}\n isDisabled={isDisabled}\n state={state}\n triggerRef={unwrappedTriggerRef}\n label={label}\n name={name} />\n <PressResponder {...mergeProps(hoverProps, triggerProps)}>\n <FieldButton\n ref={triggerRef}\n isActive={state.isOpen}\n isQuiet={isQuiet}\n isDisabled={isDisabled}\n validationState={validationState}\n autoFocus={autoFocus}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-trigger', {'is-hovered': isHovered})}>\n <SlotProvider\n slots={{\n icon: {UNSAFE_className: classNames(styles, 'spectrum-Icon'), size: 'S'},\n text: {\n ...valueProps,\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropdown-label',\n {'is-placeholder': !state.selectedItem}\n )\n },\n description: {\n isHidden: true\n }\n }}>\n {contents}\n </SlotProvider>\n {isLoadingInitial &&\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n }\n {validationState === 'invalid' && !isLoadingInitial &&\n <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-invalidIcon')} />\n }\n <ChevronDownMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-chevron')} />\n </FieldButton>\n </PressResponder>\n {state.collection.size === 0 ? null : overlay}\n </div>\n );\n\n let wrapperClassName = label ? classNames(\n styles,\n 'spectrum-Field',\n {\n 'spectrum-Dropdown-fieldWrapper--quiet': isQuiet,\n 'spectrum-Dropdown-fieldWrapper--positionSide': labelPosition === 'side'\n }\n ) : '';\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={wrapperClassName}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n showErrorIcon={false}\n includeNecessityIndicatorInAccessibilityName\n elementType=\"span\">\n {picker}\n </Field>\n );\n}\n\n/**\n * Pickers allow users to choose a single option from a collapsible list of options when space is limited.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Picker = React.forwardRef(Picker) as <T>(props: SpectrumPickerProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Picker as Picker};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"placeholder\": \"حدد خيارًا...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"placeholder\": \"Изберете опция\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"placeholder\": \"Vyberte vhodnou možnost...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"placeholder\": \"Vælg en mulighed ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Option auswählen...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"placeholder\": \"Επιλέξτε…\"\n}\n","{\n \"placeholder\": \"Select an option…\",\n \"loading\": \"Loading…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"placeholder\": \"Selecciona una de estas opciones...\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"placeholder\": \"Valige valikuline...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"placeholder\": \"Valitse vaihtoehto...\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"placeholder\": \"Sélectionnez une option...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"placeholder\": \"בחר אפשרות...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Odaberite opciju\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"placeholder\": \"Válasszon egy opciót…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"placeholder\": \"Seleziona un’opzione...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"placeholder\": \"オプションを選択...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"placeholder\": \"선택 사항 선택\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"placeholder\": \"Pasirinkite parinktį...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"placeholder\": \"Atlasiet opciju...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"placeholder\": \"Velg et alternativ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Optie selecteren...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"placeholder\": \"Wybierz opcję...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"placeholder\": \"Selecione uma opção...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"placeholder\": \"Selecionar uma opção...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"placeholder\": \"Selectați o opțiune\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"placeholder\": \"Выбрать параметр...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"placeholder\": \"Vyberte možnosť...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"placeholder\": \"Izberite možnost\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Izaberite opciju\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"placeholder\": \"Välj ett alternativ...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"placeholder\": \"Bir seçim yapın…\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"placeholder\": \"Виберіть опцію...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择一个选项...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"placeholder\": \"選取一個選項\"\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,0BAAe;IAClC,CAAE,eAAG,sBAAa;AAC/B,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,qBAAY;IACjC,CAAI,eAAG,2BAAc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C,gEAAM,EACN,CAAgB,iBAChB,CAAC;QACC,CAAuC,wCAAE,OAAO;QAChD,CAA8C,+CAAE,aAAa,KAAK,CAAM;IAC1E,CAAC,IACC,CAAE;IAEN,MAAM,oEACH,+BAAK;WACA,KAAK;QACT,GAAG,EAAE,MAAM;QACX,gBAAgB,EAAE,gBAAgB;QAClC,UAAU,EAAE,UAAU;QACtB,gBAAgB,EAAE,gBAAgB;QAClC,iBAAiB,EAAE,iBAAiB;QACpC,aAAa,EAAE,KAAK;QACpB,4CAA4C,EAA5C,IAA4C;QAC5C,WAAW,EAAC,CAAM;OACjB,MAAM;AAGb,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,EAAwF,AAAxF,sFAAwF;AACxF,EAA2G,AAA3G,yGAA2G;AAC3G,KAAK,CAAC,yCAAO,iBAAG,sCAAK,CAAC,UAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/picker/src/index.ts","packages/@react-spectrum/picker/src/Picker.tsx","packages/@react-spectrum/picker/intl/*.js","packages/@react-spectrum/picker/intl/ar-AE.json","packages/@react-spectrum/picker/intl/bg-BG.json","packages/@react-spectrum/picker/intl/cs-CZ.json","packages/@react-spectrum/picker/intl/da-DK.json","packages/@react-spectrum/picker/intl/de-DE.json","packages/@react-spectrum/picker/intl/el-GR.json","packages/@react-spectrum/picker/intl/en-US.json","packages/@react-spectrum/picker/intl/es-ES.json","packages/@react-spectrum/picker/intl/et-EE.json","packages/@react-spectrum/picker/intl/fi-FI.json","packages/@react-spectrum/picker/intl/fr-FR.json","packages/@react-spectrum/picker/intl/he-IL.json","packages/@react-spectrum/picker/intl/hr-HR.json","packages/@react-spectrum/picker/intl/hu-HU.json","packages/@react-spectrum/picker/intl/it-IT.json","packages/@react-spectrum/picker/intl/ja-JP.json","packages/@react-spectrum/picker/intl/ko-KR.json","packages/@react-spectrum/picker/intl/lt-LT.json","packages/@react-spectrum/picker/intl/lv-LV.json","packages/@react-spectrum/picker/intl/nb-NO.json","packages/@react-spectrum/picker/intl/nl-NL.json","packages/@react-spectrum/picker/intl/pl-PL.json","packages/@react-spectrum/picker/intl/pt-BR.json","packages/@react-spectrum/picker/intl/pt-PT.json","packages/@react-spectrum/picker/intl/ro-RO.json","packages/@react-spectrum/picker/intl/ru-RU.json","packages/@react-spectrum/picker/intl/sk-SK.json","packages/@react-spectrum/picker/intl/sl-SI.json","packages/@react-spectrum/picker/intl/sr-SP.json","packages/@react-spectrum/picker/intl/sv-SE.json","packages/@react-spectrum/picker/intl/tr-TR.json","packages/@react-spectrum/picker/intl/uk-UA.json","packages/@react-spectrum/picker/intl/zh-CN.json","packages/@react-spectrum/picker/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dropdown/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 {Picker} from './Picker';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumPickerProps} from '@react-types/select';\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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium';\nimport {\n classNames,\n dimensionValue,\n SlotProvider,\n useDOMRef,\n useIsMobileDevice,\n useSlotProps,\n useUnwrapDOMRef\n} from '@react-spectrum/utils';\nimport {DOMRef, DOMRefValue, FocusableRefValue, LabelPosition} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {HiddenSelect, useSelect} from '@react-aria/select';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxBase, useListBoxLayout} from '@react-spectrum/listbox';\nimport {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria/utils';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder, useHover} from '@react-aria/interactions';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useCallback, useRef, useState} from 'react';\nimport {SpectrumPickerProps} from '@react-types/select';\nimport styles from '@adobe/spectrum-css-temp/components/dropdown/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\nimport {useSelectState} from '@react-stately/select';\n\nfunction Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'picker');\n props = useProviderProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {\n autoComplete,\n isDisabled,\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n placeholder = stringFormatter.format('placeholder'),\n validationState,\n isQuiet,\n label,\n labelPosition = 'top' as LabelPosition,\n menuWidth,\n name,\n autoFocus\n } = props;\n\n let state = useSelectState(props);\n let domRef = useDOMRef(ref);\n\n let popoverRef = useRef<DOMRefValue<HTMLDivElement>>();\n let triggerRef = useRef<FocusableRefValue<HTMLElement>>();\n let unwrappedTriggerRef = useUnwrapDOMRef(triggerRef);\n let listboxRef = useRef();\n\n // We create the listbox layout in Picker and pass it to ListBoxBase below\n // so that the layout information can be cached even while the listbox is not mounted.\n // We also use the layout as the keyboard delegate for type to select.\n let layout = useListBoxLayout(state);\n let {labelProps, triggerProps, valueProps, menuProps, descriptionProps, errorMessageProps} = useSelect({\n ...props,\n keyboardDelegate: layout\n }, state, unwrappedTriggerRef);\n\n let isMobile = useIsMobileDevice();\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let isLoadingInitial = props.isLoading && state.collection.size === 0;\n let isLoadingMore = props.isLoading && state.collection.size > 0;\n\n // On small screen devices, the listbox is rendered in a tray, otherwise a popover.\n let listbox = (\n <ListBoxBase\n {...menuProps}\n ref={listboxRef}\n disallowEmptySelection\n autoFocus={state.focusStrategy || true}\n shouldSelectOnPressUp\n focusOnPointerEnter\n layout={layout}\n state={state}\n width={isMobile ? '100%' : undefined}\n // Set max height: inherit so Tray scrolling works\n UNSAFE_style={{maxHeight: 'inherit'}}\n isLoading={isLoadingMore}\n onLoadMore={props.onLoadMore} />\n );\n\n // Measure the width of the button to inform the width of the menu (below).\n let [buttonWidth, setButtonWidth] = useState(null);\n let {scale} = useProvider();\n\n let onResize = useCallback(() => {\n if (!isMobile && unwrappedTriggerRef.current) {\n let width = unwrappedTriggerRef.current.offsetWidth;\n setButtonWidth(width);\n }\n }, [unwrappedTriggerRef, setButtonWidth, isMobile]);\n\n useResizeObserver({\n ref: unwrappedTriggerRef,\n onResize: onResize\n });\n\n useLayoutEffect(onResize, [scale, state.selectedKey, onResize]);\n\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {listbox}\n </Tray>\n );\n } else {\n // If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.\n // Always have a minimum width of the button width. When quiet, there is an extra offset to add.\n // Not using style props for this because they don't support `calc`.\n let width = isQuiet ? null : buttonWidth;\n let style = {\n width: menuWidth ? dimensionValue(menuWidth) : width,\n minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth\n };\n\n overlay = (\n <Popover\n UNSAFE_style={style}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-popover', {'spectrum-Dropdown-popover--quiet': isQuiet})}\n ref={popoverRef}\n placement={`${direction} ${align}`}\n shouldFlip={shouldFlip}\n hideArrow\n state={state}\n triggerRef={unwrappedTriggerRef}\n scrollRef={listboxRef}>\n {listbox}\n </Popover>\n );\n }\n\n let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;\n if (typeof contents === 'string') {\n contents = <Text>{contents}</Text>;\n }\n\n let picker = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Dropdown',\n {\n 'is-invalid': validationState === 'invalid' && !isDisabled,\n 'is-disabled': isDisabled,\n 'spectrum-Dropdown--quiet': isQuiet\n }\n )\n }>\n <HiddenSelect\n autoComplete={autoComplete}\n isDisabled={isDisabled}\n state={state}\n triggerRef={unwrappedTriggerRef}\n label={label}\n name={name} />\n <PressResponder {...mergeProps(hoverProps, triggerProps)}>\n <FieldButton\n ref={triggerRef}\n isActive={state.isOpen}\n isQuiet={isQuiet}\n isDisabled={isDisabled}\n validationState={validationState}\n autoFocus={autoFocus}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-trigger', {'is-hovered': isHovered})}>\n <SlotProvider\n slots={{\n icon: {UNSAFE_className: classNames(styles, 'spectrum-Icon'), size: 'S'},\n text: {\n ...valueProps,\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropdown-label',\n {'is-placeholder': !state.selectedItem}\n )\n },\n description: {\n isHidden: true\n }\n }}>\n {contents}\n </SlotProvider>\n {isLoadingInitial &&\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n }\n {validationState === 'invalid' && !isLoadingInitial && !isDisabled &&\n <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-invalidIcon')} />\n }\n <ChevronDownMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-chevron')} />\n </FieldButton>\n </PressResponder>\n {state.collection.size === 0 ? null : overlay}\n </div>\n );\n\n let wrapperClassName = label ? classNames(\n styles,\n 'spectrum-Field',\n {\n 'spectrum-Dropdown-fieldWrapper--quiet': isQuiet,\n 'spectrum-Dropdown-fieldWrapper--positionSide': labelPosition === 'side'\n }\n ) : '';\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={wrapperClassName}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n showErrorIcon={false}\n includeNecessityIndicatorInAccessibilityName\n elementType=\"span\">\n {picker}\n </Field>\n );\n}\n\n/**\n * Pickers allow users to choose a single option from a collapsible list of options when space is limited.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Picker = React.forwardRef(Picker) as <T>(props: SpectrumPickerProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Picker as Picker};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"placeholder\": \"حدد خيارًا...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"placeholder\": \"Изберете опция\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"placeholder\": \"Vyberte vhodnou možnost...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"placeholder\": \"Vælg en mulighed ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Option auswählen...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"placeholder\": \"Επιλέξτε…\"\n}\n","{\n \"placeholder\": \"Select an option…\",\n \"loading\": \"Loading…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"placeholder\": \"Selecciona una de estas opciones...\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"placeholder\": \"Valige valikuline...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"placeholder\": \"Valitse vaihtoehto...\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"placeholder\": \"Sélectionnez une option...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"placeholder\": \"בחר אפשרות...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Odaberite opciju\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"placeholder\": \"Válasszon egy opciót…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"placeholder\": \"Seleziona un’opzione...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"placeholder\": \"オプションを選択...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"placeholder\": \"선택 사항 선택\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"placeholder\": \"Pasirinkite parinktį...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"placeholder\": \"Atlasiet opciju...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"placeholder\": \"Velg et alternativ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Optie selecteren...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"placeholder\": \"Wybierz opcję...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"placeholder\": \"Selecione uma opção...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"placeholder\": \"Selecionar uma opção...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"placeholder\": \"Selectați o opțiune\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"placeholder\": \"Выбрать параметр...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"placeholder\": \"Vyberte možnosť...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"placeholder\": \"Izberite možnost\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Izaberite opciju\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"placeholder\": \"Välj ett alternativ...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"placeholder\": \"Bir seçim yapın…\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"placeholder\": \"Виберіть опцію...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择一个选项...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"placeholder\": \"選取一個選項\"\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -3,13 +3,11 @@ import {Item as $23896c8062ba3967$re_export$Item, Section as $23896c8062ba3967$r
|
|
|
3
3
|
import $3toCD$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
4
4
|
import $3toCD$spectrumiconsuiChevronDownMedium from "@spectrum-icons/ui/ChevronDownMedium";
|
|
5
5
|
import {useSlotProps as $3toCD$useSlotProps, useDOMRef as $3toCD$useDOMRef, useUnwrapDOMRef as $3toCD$useUnwrapDOMRef, useIsMobileDevice as $3toCD$useIsMobileDevice, dimensionValue as $3toCD$dimensionValue, classNames as $3toCD$classNames, SlotProvider as $3toCD$SlotProvider} from "@react-spectrum/utils";
|
|
6
|
-
import {useOverlayPosition as $3toCD$useOverlayPosition, DismissButton as $3toCD$DismissButton} from "@react-aria/overlays";
|
|
7
6
|
import {Field as $3toCD$Field} from "@react-spectrum/label";
|
|
8
7
|
import {FieldButton as $3toCD$FieldButton} from "@react-spectrum/button";
|
|
9
|
-
import {FocusScope as $3toCD$FocusScope} from "@react-aria/focus";
|
|
10
8
|
import {useSelect as $3toCD$useSelect, HiddenSelect as $3toCD$HiddenSelect} from "@react-aria/select";
|
|
11
9
|
import {useListBoxLayout as $3toCD$useListBoxLayout, ListBoxBase as $3toCD$ListBoxBase} from "@react-spectrum/listbox";
|
|
12
|
-
import {
|
|
10
|
+
import {useResizeObserver as $3toCD$useResizeObserver, useLayoutEffect as $3toCD$useLayoutEffect, mergeProps as $3toCD$mergeProps} from "@react-aria/utils";
|
|
13
11
|
import {Tray as $3toCD$Tray, Popover as $3toCD$Popover} from "@react-spectrum/overlays";
|
|
14
12
|
import {useHover as $3toCD$useHover, PressResponder as $3toCD$PressResponder} from "@react-aria/interactions";
|
|
15
13
|
import {ProgressCircle as $3toCD$ProgressCircle} from "@react-spectrum/progress";
|
|
@@ -31,8 +29,6 @@ function $parcel$export(e, n, v, s) {
|
|
|
31
29
|
|
|
32
30
|
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
32
|
var $23df90b22503709f$exports = {};
|
|
37
33
|
var $d1a348ee160b1c35$exports = {};
|
|
38
34
|
$d1a348ee160b1c35$exports = {
|
|
@@ -331,10 +327,10 @@ $parcel$export($3c14925a8a65017e$exports, "spectrum-Dropdown-popover--quiet", ()
|
|
|
331
327
|
$parcel$export($3c14925a8a65017e$exports, "spectrum-Field", () => $3c14925a8a65017e$export$f6d480ae1e56eba0, (v) => $3c14925a8a65017e$export$f6d480ae1e56eba0 = v);
|
|
332
328
|
$parcel$export($3c14925a8a65017e$exports, "spectrum-Dropdown-fieldWrapper--quiet", () => $3c14925a8a65017e$export$66ddc2410b0e9eba, (v) => $3c14925a8a65017e$export$66ddc2410b0e9eba = v);
|
|
333
329
|
$parcel$export($3c14925a8a65017e$exports, "spectrum-Dropdown-fieldWrapper--positionSide", () => $3c14925a8a65017e$export$c0b4e9596538c7b1, (v) => $3c14925a8a65017e$export$c0b4e9596538c7b1 = v);
|
|
334
|
-
$parcel$export($3c14925a8a65017e$exports, "is-hovered", () => $3c14925a8a65017e$export$b8813cd5d7824ce7, (v) => $3c14925a8a65017e$export$b8813cd5d7824ce7 = v);
|
|
335
330
|
$parcel$export($3c14925a8a65017e$exports, "is-selected", () => $3c14925a8a65017e$export$1e0fb04f31d3c22a, (v) => $3c14925a8a65017e$export$1e0fb04f31d3c22a = v);
|
|
336
331
|
$parcel$export($3c14925a8a65017e$exports, "is-invalid", () => $3c14925a8a65017e$export$14a30de2866685fa, (v) => $3c14925a8a65017e$export$14a30de2866685fa = v);
|
|
337
332
|
$parcel$export($3c14925a8a65017e$exports, "is-disabled", () => $3c14925a8a65017e$export$d35bc1e505d1ebbf, (v) => $3c14925a8a65017e$export$d35bc1e505d1ebbf = v);
|
|
333
|
+
$parcel$export($3c14925a8a65017e$exports, "is-hovered", () => $3c14925a8a65017e$export$b8813cd5d7824ce7, (v) => $3c14925a8a65017e$export$b8813cd5d7824ce7 = v);
|
|
338
334
|
$parcel$export($3c14925a8a65017e$exports, "focus-ring", () => $3c14925a8a65017e$export$f39a09f249340e2a, (v) => $3c14925a8a65017e$export$f39a09f249340e2a = v);
|
|
339
335
|
var $3c14925a8a65017e$export$f33c6833ddc773bd;
|
|
340
336
|
var $3c14925a8a65017e$export$abbb0cf96dbbb8a0;
|
|
@@ -349,10 +345,10 @@ var $3c14925a8a65017e$export$cbeaf986973c0633;
|
|
|
349
345
|
var $3c14925a8a65017e$export$f6d480ae1e56eba0;
|
|
350
346
|
var $3c14925a8a65017e$export$66ddc2410b0e9eba;
|
|
351
347
|
var $3c14925a8a65017e$export$c0b4e9596538c7b1;
|
|
352
|
-
var $3c14925a8a65017e$export$b8813cd5d7824ce7;
|
|
353
348
|
var $3c14925a8a65017e$export$1e0fb04f31d3c22a;
|
|
354
349
|
var $3c14925a8a65017e$export$14a30de2866685fa;
|
|
355
350
|
var $3c14925a8a65017e$export$d35bc1e505d1ebbf;
|
|
351
|
+
var $3c14925a8a65017e$export$b8813cd5d7824ce7;
|
|
356
352
|
var $3c14925a8a65017e$export$f39a09f249340e2a;
|
|
357
353
|
$3c14925a8a65017e$export$f33c6833ddc773bd = "spectrum-Dropdown_6d8ec0";
|
|
358
354
|
$3c14925a8a65017e$export$abbb0cf96dbbb8a0 = "spectrum-Dropdown-chevron_6d8ec0";
|
|
@@ -367,10 +363,10 @@ $3c14925a8a65017e$export$cbeaf986973c0633 = "spectrum-Dropdown-popover--quiet_6d
|
|
|
367
363
|
$3c14925a8a65017e$export$f6d480ae1e56eba0 = "spectrum-Field_6d8ec0";
|
|
368
364
|
$3c14925a8a65017e$export$66ddc2410b0e9eba = "spectrum-Dropdown-fieldWrapper--quiet_6d8ec0";
|
|
369
365
|
$3c14925a8a65017e$export$c0b4e9596538c7b1 = "spectrum-Dropdown-fieldWrapper--positionSide_6d8ec0";
|
|
370
|
-
$3c14925a8a65017e$export$b8813cd5d7824ce7 = "is-hovered_6d8ec0";
|
|
371
366
|
$3c14925a8a65017e$export$1e0fb04f31d3c22a = "is-selected_6d8ec0";
|
|
372
367
|
$3c14925a8a65017e$export$14a30de2866685fa = "is-invalid_6d8ec0";
|
|
373
368
|
$3c14925a8a65017e$export$d35bc1e505d1ebbf = "is-disabled_6d8ec0";
|
|
369
|
+
$3c14925a8a65017e$export$b8813cd5d7824ce7 = "is-hovered_6d8ec0";
|
|
374
370
|
$3c14925a8a65017e$export$f39a09f249340e2a = "focus-ring_6d8ec0";
|
|
375
371
|
|
|
376
372
|
|
|
@@ -386,7 +382,6 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
386
382
|
let state = $3toCD$useSelectState(props);
|
|
387
383
|
let domRef = $3toCD$useDOMRef(ref);
|
|
388
384
|
let popoverRef = $3toCD$useRef();
|
|
389
|
-
let unwrappedPopoverRef = $3toCD$useUnwrapDOMRef(popoverRef);
|
|
390
385
|
let triggerRef = $3toCD$useRef();
|
|
391
386
|
let unwrappedTriggerRef = $3toCD$useUnwrapDOMRef(triggerRef);
|
|
392
387
|
let listboxRef = $3toCD$useRef();
|
|
@@ -399,38 +394,13 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
399
394
|
keyboardDelegate: layout
|
|
400
395
|
}, state, unwrappedTriggerRef);
|
|
401
396
|
let isMobile = $3toCD$useIsMobileDevice();
|
|
402
|
-
let { overlayProps: overlayProps , placement: placement , updatePosition: updatePosition } = $3toCD$useOverlayPosition({
|
|
403
|
-
targetRef: unwrappedTriggerRef,
|
|
404
|
-
overlayRef: unwrappedPopoverRef,
|
|
405
|
-
scrollRef: listboxRef,
|
|
406
|
-
placement: `${direction} ${align}`,
|
|
407
|
-
shouldFlip: shouldFlip,
|
|
408
|
-
isOpen: state.isOpen && !isMobile,
|
|
409
|
-
onClose: state.close
|
|
410
|
-
});
|
|
411
397
|
let { hoverProps: hoverProps , isHovered: isHovered } = $3toCD$useHover({
|
|
412
398
|
isDisabled: isDisabled
|
|
413
399
|
});
|
|
414
|
-
// Update position once the ListBox has rendered. This ensures that
|
|
415
|
-
// it flips properly when it doesn't fit in the available space.
|
|
416
|
-
// TODO: add ResizeObserver to useOverlayPosition so we don't need this.
|
|
417
|
-
$3toCD$useLayoutEffect(()=>{
|
|
418
|
-
if (state.isOpen) requestAnimationFrame(()=>{
|
|
419
|
-
updatePosition();
|
|
420
|
-
});
|
|
421
|
-
}, [
|
|
422
|
-
state.isOpen,
|
|
423
|
-
updatePosition
|
|
424
|
-
]);
|
|
425
400
|
let isLoadingInitial = props.isLoading && state.collection.size === 0;
|
|
426
401
|
let isLoadingMore = props.isLoading && state.collection.size > 0;
|
|
427
402
|
// On small screen devices, the listbox is rendered in a tray, otherwise a popover.
|
|
428
|
-
let listbox = /*#__PURE__*/ $3toCD$react.createElement($3toCD$
|
|
429
|
-
restoreFocus: true,
|
|
430
|
-
contain: isMobile
|
|
431
|
-
}, /*#__PURE__*/ $3toCD$react.createElement($3toCD$DismissButton, {
|
|
432
|
-
onDismiss: ()=>state.close()
|
|
433
|
-
}), /*#__PURE__*/ $3toCD$react.createElement($3toCD$ListBoxBase, {
|
|
403
|
+
let listbox = /*#__PURE__*/ $3toCD$react.createElement($3toCD$ListBoxBase, {
|
|
434
404
|
...menuProps,
|
|
435
405
|
ref: listboxRef,
|
|
436
406
|
disallowEmptySelection: true,
|
|
@@ -446,9 +416,7 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
446
416
|
},
|
|
447
417
|
isLoading: isLoadingMore,
|
|
448
418
|
onLoadMore: props.onLoadMore
|
|
449
|
-
})
|
|
450
|
-
onDismiss: ()=>state.close()
|
|
451
|
-
}));
|
|
419
|
+
});
|
|
452
420
|
// Measure the width of the button to inform the width of the menu (below).
|
|
453
421
|
let [buttonWidth, setButtonWidth] = $3toCD$useState(null);
|
|
454
422
|
let { scale: scale } = $3toCD$useProvider();
|
|
@@ -473,8 +441,7 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
473
441
|
]);
|
|
474
442
|
let overlay;
|
|
475
443
|
if (isMobile) overlay = /*#__PURE__*/ $3toCD$react.createElement($3toCD$Tray, {
|
|
476
|
-
|
|
477
|
-
onClose: state.close
|
|
444
|
+
state: state
|
|
478
445
|
}, listbox);
|
|
479
446
|
else {
|
|
480
447
|
// If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.
|
|
@@ -482,28 +449,28 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
482
449
|
// Not using style props for this because they don't support `calc`.
|
|
483
450
|
let width = isQuiet ? null : buttonWidth;
|
|
484
451
|
let style = {
|
|
485
|
-
...overlayProps.style,
|
|
486
452
|
width: menuWidth ? $3toCD$dimensionValue(menuWidth) : width,
|
|
487
453
|
minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth
|
|
488
454
|
};
|
|
489
455
|
overlay = /*#__PURE__*/ $3toCD$react.createElement($3toCD$Popover, {
|
|
490
|
-
isOpen: state.isOpen,
|
|
491
456
|
UNSAFE_style: style,
|
|
492
457
|
UNSAFE_className: $3toCD$classNames((/*@__PURE__*/$parcel$interopDefault($3c14925a8a65017e$exports)), 'spectrum-Dropdown-popover', {
|
|
493
458
|
'spectrum-Dropdown-popover--quiet': isQuiet
|
|
494
459
|
}),
|
|
495
460
|
ref: popoverRef,
|
|
496
|
-
placement:
|
|
461
|
+
placement: `${direction} ${align}`,
|
|
462
|
+
shouldFlip: shouldFlip,
|
|
497
463
|
hideArrow: true,
|
|
498
|
-
|
|
499
|
-
|
|
464
|
+
state: state,
|
|
465
|
+
triggerRef: unwrappedTriggerRef,
|
|
466
|
+
scrollRef: listboxRef
|
|
500
467
|
}, listbox);
|
|
501
468
|
}
|
|
502
469
|
let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;
|
|
503
470
|
if (typeof contents === 'string') contents = /*#__PURE__*/ $3toCD$react.createElement($3toCD$Text, null, contents);
|
|
504
471
|
let picker = /*#__PURE__*/ $3toCD$react.createElement("div", {
|
|
505
472
|
className: $3toCD$classNames((/*@__PURE__*/$parcel$interopDefault($3c14925a8a65017e$exports)), 'spectrum-Dropdown', {
|
|
506
|
-
'is-invalid': validationState === 'invalid',
|
|
473
|
+
'is-invalid': validationState === 'invalid' && !isDisabled,
|
|
507
474
|
'is-disabled': isDisabled,
|
|
508
475
|
'spectrum-Dropdown--quiet': isQuiet
|
|
509
476
|
})
|
|
@@ -545,7 +512,7 @@ function $51664a9007a3c6f9$var$Picker(props, ref) {
|
|
|
545
512
|
size: "S",
|
|
546
513
|
"aria-label": stringFormatter.format('loading'),
|
|
547
514
|
UNSAFE_className: $3toCD$classNames((/*@__PURE__*/$parcel$interopDefault($3c14925a8a65017e$exports)), 'spectrum-Dropdown-progressCircle')
|
|
548
|
-
}), validationState === 'invalid' && !isLoadingInitial && /*#__PURE__*/ $3toCD$react.createElement($3toCD$spectrumiconsuiAlertMedium, {
|
|
515
|
+
}), validationState === 'invalid' && !isLoadingInitial && !isDisabled && /*#__PURE__*/ $3toCD$react.createElement($3toCD$spectrumiconsuiAlertMedium, {
|
|
549
516
|
UNSAFE_className: $3toCD$classNames((/*@__PURE__*/$parcel$interopDefault($3c14925a8a65017e$exports)), 'spectrum-Dropdown-invalidIcon')
|
|
550
517
|
}), /*#__PURE__*/ $3toCD$react.createElement($3toCD$spectrumiconsuiChevronDownMedium, {
|
|
551
518
|
UNSAFE_className: $3toCD$classNames((/*@__PURE__*/$parcel$interopDefault($3c14925a8a65017e$exports)), 'spectrum-Dropdown-chevron')
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,0BAAe;IAClC,CAAE,eAAG,sBAAa;AAC/B,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,qBAAY;IACjC,CAAI,eAAG,2BAAc;AAChC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,eAAW;IACrC,CAAS,eAAG,2BAA0B;AAC5C,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,aAAY;IACzC,CAAY,eAAG,qBAAoB;AACtC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,QAAQ;IACtC,CAAa,eAAG,oBAAmB;AACrC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,iBAAU;IACjC,CAAM,eAAG,mBAAS;AAC3B,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IA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EAAf,IAAe;QACf,IAAI,EAAC,CAAG;QACR,CAAU,aAAE,eAAe,CAAC,MAAM,CAAC,CAAS;QAC5C,gBAAgB,EAAE,iBAAU,CAAC,gEAAM,EAAE,CAAkC;QAE1E,eAAe,KAAK,CAAS,aAAK,gBAAgB,6CAChD,iCAAW;QAAC,gBAAgB,EAAE,iBAAU,CAAC,gEAAM,EAAE,CAA+B;iDAElF,uCAAiB;QAAC,gBAAgB,EAAE,iBAAU,CAAC,gEAAM,EAAE,CAA2B;UAGtF,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,GAAG,IAAI,GAAG,OAAO;IAIjD,GAAG,CAAC,gBAAgB,GAAG,KAAK,GAAG,iBAAU,CACvC,gEAAM,EACN,CAAgB,iBAChB,CAAC;QACC,CAAuC,wCAAE,OAAO;QAChD,CAA8C,+CAAE,aAAa,KAAK,CAAM;IAC1E,CAAC,IACC,CAAE;IAEN,MAAM,0CACH,YAAK;WACA,KAAK;QACT,GAAG,EAAE,MAAM;QACX,gBAAgB,EAAE,gBAAgB;QAClC,UAAU,EAAE,UAAU;QACtB,gBAAgB,EAAE,gBAAgB;QAClC,iBAAiB,EAAE,iBAAiB;QACpC,aAAa,EAAE,KAAK;QACpB,4CAA4C,EAA5C,IAA4C;QAC5C,WAAW,EAAC,CAAM;OACjB,MAAM;AAGb,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,EAAwF,AAAxF,sFAAwF;AACxF,EAA2G,AAA3G,yGAA2G;AAC3G,KAAK,CAAC,yCAAO,iBAAG,YAAK,CAAC,UAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/picker/src/index.ts","packages/@react-spectrum/picker/src/Picker.tsx","packages/@react-spectrum/picker/intl/*.js","packages/@react-spectrum/picker/intl/ar-AE.json","packages/@react-spectrum/picker/intl/bg-BG.json","packages/@react-spectrum/picker/intl/cs-CZ.json","packages/@react-spectrum/picker/intl/da-DK.json","packages/@react-spectrum/picker/intl/de-DE.json","packages/@react-spectrum/picker/intl/el-GR.json","packages/@react-spectrum/picker/intl/en-US.json","packages/@react-spectrum/picker/intl/es-ES.json","packages/@react-spectrum/picker/intl/et-EE.json","packages/@react-spectrum/picker/intl/fi-FI.json","packages/@react-spectrum/picker/intl/fr-FR.json","packages/@react-spectrum/picker/intl/he-IL.json","packages/@react-spectrum/picker/intl/hr-HR.json","packages/@react-spectrum/picker/intl/hu-HU.json","packages/@react-spectrum/picker/intl/it-IT.json","packages/@react-spectrum/picker/intl/ja-JP.json","packages/@react-spectrum/picker/intl/ko-KR.json","packages/@react-spectrum/picker/intl/lt-LT.json","packages/@react-spectrum/picker/intl/lv-LV.json","packages/@react-spectrum/picker/intl/nb-NO.json","packages/@react-spectrum/picker/intl/nl-NL.json","packages/@react-spectrum/picker/intl/pl-PL.json","packages/@react-spectrum/picker/intl/pt-BR.json","packages/@react-spectrum/picker/intl/pt-PT.json","packages/@react-spectrum/picker/intl/ro-RO.json","packages/@react-spectrum/picker/intl/ru-RU.json","packages/@react-spectrum/picker/intl/sk-SK.json","packages/@react-spectrum/picker/intl/sl-SI.json","packages/@react-spectrum/picker/intl/sr-SP.json","packages/@react-spectrum/picker/intl/sv-SE.json","packages/@react-spectrum/picker/intl/tr-TR.json","packages/@react-spectrum/picker/intl/uk-UA.json","packages/@react-spectrum/picker/intl/zh-CN.json","packages/@react-spectrum/picker/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dropdown/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 {Picker} from './Picker';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumPickerProps} from '@react-types/select';\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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium';\nimport {\n classNames,\n dimensionValue,\n SlotProvider,\n useDOMRef,\n useIsMobileDevice,\n useSlotProps,\n useUnwrapDOMRef\n} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue, FocusableRefValue, LabelPosition} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {FocusScope} from '@react-aria/focus';\nimport {HiddenSelect, useSelect} from '@react-aria/select';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxBase, useListBoxLayout} from '@react-spectrum/listbox';\nimport {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria/utils';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder, useHover} from '@react-aria/interactions';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useCallback, useRef, useState} from 'react';\nimport {SpectrumPickerProps} from '@react-types/select';\nimport styles from '@adobe/spectrum-css-temp/components/dropdown/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\nimport {useSelectState} from '@react-stately/select';\n\nfunction Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'picker');\n props = useProviderProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {\n autoComplete,\n isDisabled,\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n placeholder = stringFormatter.format('placeholder'),\n validationState,\n isQuiet,\n label,\n labelPosition = 'top' as LabelPosition,\n menuWidth,\n name,\n autoFocus\n } = props;\n\n let state = useSelectState(props);\n let domRef = useDOMRef(ref);\n\n let popoverRef = useRef<DOMRefValue<HTMLDivElement>>();\n let unwrappedPopoverRef = useUnwrapDOMRef(popoverRef);\n let triggerRef = useRef<FocusableRefValue<HTMLElement>>();\n let unwrappedTriggerRef = useUnwrapDOMRef(triggerRef);\n let listboxRef = useRef();\n\n // We create the listbox layout in Picker and pass it to ListBoxBase below\n // so that the layout information can be cached even while the listbox is not mounted.\n // We also use the layout as the keyboard delegate for type to select.\n let layout = useListBoxLayout(state);\n let {labelProps, triggerProps, valueProps, menuProps, descriptionProps, errorMessageProps} = useSelect({\n ...props,\n keyboardDelegate: layout\n }, state, unwrappedTriggerRef);\n\n let isMobile = useIsMobileDevice();\n let {overlayProps, placement, updatePosition} = useOverlayPosition({\n targetRef: unwrappedTriggerRef,\n overlayRef: unwrappedPopoverRef,\n scrollRef: listboxRef,\n placement: `${direction} ${align}` as Placement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n // Update position once the ListBox has rendered. This ensures that\n // it flips properly when it doesn't fit in the available space.\n // TODO: add ResizeObserver to useOverlayPosition so we don't need this.\n useLayoutEffect(() => {\n if (state.isOpen) {\n requestAnimationFrame(() => {\n updatePosition();\n });\n }\n }, [state.isOpen, updatePosition]);\n\n let isLoadingInitial = props.isLoading && state.collection.size === 0;\n let isLoadingMore = props.isLoading && state.collection.size > 0;\n\n // On small screen devices, the listbox is rendered in a tray, otherwise a popover.\n let listbox = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={() => state.close()} />\n <ListBoxBase\n {...menuProps}\n ref={listboxRef}\n disallowEmptySelection\n autoFocus={state.focusStrategy || true}\n shouldSelectOnPressUp\n focusOnPointerEnter\n layout={layout}\n state={state}\n width={isMobile ? '100%' : undefined}\n // Set max height: inherit so Tray scrolling works\n UNSAFE_style={{maxHeight: 'inherit'}}\n isLoading={isLoadingMore}\n onLoadMore={props.onLoadMore} />\n <DismissButton onDismiss={() => state.close()} />\n </FocusScope>\n );\n\n // Measure the width of the button to inform the width of the menu (below).\n let [buttonWidth, setButtonWidth] = useState(null);\n let {scale} = useProvider();\n\n let onResize = useCallback(() => {\n if (!isMobile && unwrappedTriggerRef.current) {\n let width = unwrappedTriggerRef.current.offsetWidth;\n setButtonWidth(width);\n }\n }, [unwrappedTriggerRef, setButtonWidth, isMobile]);\n\n useResizeObserver({\n ref: unwrappedTriggerRef,\n onResize: onResize\n });\n\n useLayoutEffect(onResize, [scale, state.selectedKey, onResize]);\n\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray isOpen={state.isOpen} onClose={state.close}>\n {listbox}\n </Tray>\n );\n } else {\n // If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.\n // Always have a minimum width of the button width. When quiet, there is an extra offset to add.\n // Not using style props for this because they don't support `calc`.\n let width = isQuiet ? null : buttonWidth;\n let style = {\n ...overlayProps.style,\n width: menuWidth ? dimensionValue(menuWidth) : width,\n minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth\n };\n\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={style}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-popover', {'spectrum-Dropdown-popover--quiet': isQuiet})}\n ref={popoverRef}\n placement={placement}\n hideArrow\n shouldCloseOnBlur\n onClose={state.close}>\n {listbox}\n </Popover>\n );\n }\n\n let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;\n if (typeof contents === 'string') {\n contents = <Text>{contents}</Text>;\n }\n\n let picker = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Dropdown',\n {\n 'is-invalid': validationState === 'invalid',\n 'is-disabled': isDisabled,\n 'spectrum-Dropdown--quiet': isQuiet\n }\n )\n }>\n <HiddenSelect\n autoComplete={autoComplete}\n isDisabled={isDisabled}\n state={state}\n triggerRef={unwrappedTriggerRef}\n label={label}\n name={name} />\n <PressResponder {...mergeProps(hoverProps, triggerProps)}>\n <FieldButton\n ref={triggerRef}\n isActive={state.isOpen}\n isQuiet={isQuiet}\n isDisabled={isDisabled}\n validationState={validationState}\n autoFocus={autoFocus}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-trigger', {'is-hovered': isHovered})}>\n <SlotProvider\n slots={{\n icon: {UNSAFE_className: classNames(styles, 'spectrum-Icon'), size: 'S'},\n text: {\n ...valueProps,\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropdown-label',\n {'is-placeholder': !state.selectedItem}\n )\n },\n description: {\n isHidden: true\n }\n }}>\n {contents}\n </SlotProvider>\n {isLoadingInitial &&\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n }\n {validationState === 'invalid' && !isLoadingInitial &&\n <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-invalidIcon')} />\n }\n <ChevronDownMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-chevron')} />\n </FieldButton>\n </PressResponder>\n {state.collection.size === 0 ? null : overlay}\n </div>\n );\n\n let wrapperClassName = label ? classNames(\n styles,\n 'spectrum-Field',\n {\n 'spectrum-Dropdown-fieldWrapper--quiet': isQuiet,\n 'spectrum-Dropdown-fieldWrapper--positionSide': labelPosition === 'side'\n }\n ) : '';\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={wrapperClassName}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n showErrorIcon={false}\n includeNecessityIndicatorInAccessibilityName\n elementType=\"span\">\n {picker}\n </Field>\n );\n}\n\n/**\n * Pickers allow users to choose a single option from a collapsible list of options when space is limited.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Picker = React.forwardRef(Picker) as <T>(props: SpectrumPickerProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Picker as Picker};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"placeholder\": \"حدد خيارًا...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"placeholder\": \"Изберете опция\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"placeholder\": \"Vyberte vhodnou možnost...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"placeholder\": \"Vælg en mulighed ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Option auswählen...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"placeholder\": \"Επιλέξτε…\"\n}\n","{\n \"placeholder\": \"Select an option…\",\n \"loading\": \"Loading…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"placeholder\": \"Selecciona una de estas opciones...\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"placeholder\": \"Valige valikuline...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"placeholder\": \"Valitse vaihtoehto...\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"placeholder\": \"Sélectionnez une option...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"placeholder\": \"בחר אפשרות...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Odaberite opciju\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"placeholder\": \"Válasszon egy opciót…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"placeholder\": \"Seleziona un’opzione...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"placeholder\": \"オプションを選択...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"placeholder\": \"선택 사항 선택\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"placeholder\": \"Pasirinkite parinktį...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"placeholder\": \"Atlasiet opciju...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"placeholder\": \"Velg et alternativ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Optie selecteren...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"placeholder\": \"Wybierz opcję...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"placeholder\": \"Selecione uma opção...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"placeholder\": \"Selecionar uma opção...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"placeholder\": \"Selectați o opțiune\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"placeholder\": \"Выбрать параметр...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"placeholder\": \"Vyberte možnosť...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"placeholder\": \"Izberite možnost\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Izaberite opciju\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"placeholder\": \"Välj ett alternativ...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"placeholder\": \"Bir seçim yapın…\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"placeholder\": \"Виберіть опцію...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择一个选项...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"placeholder\": \"選取一個選項\"\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,0BAAe;IAClC,CAAE,eAAG,sBAAa;AAC/B,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,qBAAY;IACjC,CAAI,eAAG,2BAAc;AAChC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,eAAW;IACrC,CAAS,eAAG,2BAA0B;AAC5C,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,aAAY;IACzC,CAAY,eAAG,qBAAoB;AACtC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,QAAQ;IACtC,CAAa,eAAG,oBAAmB;AACrC,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAS,WAAG,iBAAU;IACjC,CAAM,eAAG,mBAAS;AAC3B,CAAC;;;;AC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AEG,AAFH;;CAEG,AAFH,EAEG,CACH,EAAwF,AAAxF,sFAAwF;AACxF,EAA2G,AAA3G,yGAA2G;AAC3G,KAAK,CAAC,yCAAO,iBAAG,YAAK,CAAC,UAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/picker/src/index.ts","packages/@react-spectrum/picker/src/Picker.tsx","packages/@react-spectrum/picker/intl/*.js","packages/@react-spectrum/picker/intl/ar-AE.json","packages/@react-spectrum/picker/intl/bg-BG.json","packages/@react-spectrum/picker/intl/cs-CZ.json","packages/@react-spectrum/picker/intl/da-DK.json","packages/@react-spectrum/picker/intl/de-DE.json","packages/@react-spectrum/picker/intl/el-GR.json","packages/@react-spectrum/picker/intl/en-US.json","packages/@react-spectrum/picker/intl/es-ES.json","packages/@react-spectrum/picker/intl/et-EE.json","packages/@react-spectrum/picker/intl/fi-FI.json","packages/@react-spectrum/picker/intl/fr-FR.json","packages/@react-spectrum/picker/intl/he-IL.json","packages/@react-spectrum/picker/intl/hr-HR.json","packages/@react-spectrum/picker/intl/hu-HU.json","packages/@react-spectrum/picker/intl/it-IT.json","packages/@react-spectrum/picker/intl/ja-JP.json","packages/@react-spectrum/picker/intl/ko-KR.json","packages/@react-spectrum/picker/intl/lt-LT.json","packages/@react-spectrum/picker/intl/lv-LV.json","packages/@react-spectrum/picker/intl/nb-NO.json","packages/@react-spectrum/picker/intl/nl-NL.json","packages/@react-spectrum/picker/intl/pl-PL.json","packages/@react-spectrum/picker/intl/pt-BR.json","packages/@react-spectrum/picker/intl/pt-PT.json","packages/@react-spectrum/picker/intl/ro-RO.json","packages/@react-spectrum/picker/intl/ru-RU.json","packages/@react-spectrum/picker/intl/sk-SK.json","packages/@react-spectrum/picker/intl/sl-SI.json","packages/@react-spectrum/picker/intl/sr-SP.json","packages/@react-spectrum/picker/intl/sv-SE.json","packages/@react-spectrum/picker/intl/tr-TR.json","packages/@react-spectrum/picker/intl/uk-UA.json","packages/@react-spectrum/picker/intl/zh-CN.json","packages/@react-spectrum/picker/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dropdown/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 {Picker} from './Picker';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumPickerProps} from '@react-types/select';\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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium';\nimport {\n classNames,\n dimensionValue,\n SlotProvider,\n useDOMRef,\n useIsMobileDevice,\n useSlotProps,\n useUnwrapDOMRef\n} from '@react-spectrum/utils';\nimport {DOMRef, DOMRefValue, FocusableRefValue, LabelPosition} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {FieldButton} from '@react-spectrum/button';\nimport {HiddenSelect, useSelect} from '@react-aria/select';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxBase, useListBoxLayout} from '@react-spectrum/listbox';\nimport {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria/utils';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder, useHover} from '@react-aria/interactions';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {ReactElement, useCallback, useRef, useState} from 'react';\nimport {SpectrumPickerProps} from '@react-types/select';\nimport styles from '@adobe/spectrum-css-temp/components/dropdown/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\nimport {useSelectState} from '@react-stately/select';\n\nfunction Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'picker');\n props = useProviderProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {\n autoComplete,\n isDisabled,\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n placeholder = stringFormatter.format('placeholder'),\n validationState,\n isQuiet,\n label,\n labelPosition = 'top' as LabelPosition,\n menuWidth,\n name,\n autoFocus\n } = props;\n\n let state = useSelectState(props);\n let domRef = useDOMRef(ref);\n\n let popoverRef = useRef<DOMRefValue<HTMLDivElement>>();\n let triggerRef = useRef<FocusableRefValue<HTMLElement>>();\n let unwrappedTriggerRef = useUnwrapDOMRef(triggerRef);\n let listboxRef = useRef();\n\n // We create the listbox layout in Picker and pass it to ListBoxBase below\n // so that the layout information can be cached even while the listbox is not mounted.\n // We also use the layout as the keyboard delegate for type to select.\n let layout = useListBoxLayout(state);\n let {labelProps, triggerProps, valueProps, menuProps, descriptionProps, errorMessageProps} = useSelect({\n ...props,\n keyboardDelegate: layout\n }, state, unwrappedTriggerRef);\n\n let isMobile = useIsMobileDevice();\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let isLoadingInitial = props.isLoading && state.collection.size === 0;\n let isLoadingMore = props.isLoading && state.collection.size > 0;\n\n // On small screen devices, the listbox is rendered in a tray, otherwise a popover.\n let listbox = (\n <ListBoxBase\n {...menuProps}\n ref={listboxRef}\n disallowEmptySelection\n autoFocus={state.focusStrategy || true}\n shouldSelectOnPressUp\n focusOnPointerEnter\n layout={layout}\n state={state}\n width={isMobile ? '100%' : undefined}\n // Set max height: inherit so Tray scrolling works\n UNSAFE_style={{maxHeight: 'inherit'}}\n isLoading={isLoadingMore}\n onLoadMore={props.onLoadMore} />\n );\n\n // Measure the width of the button to inform the width of the menu (below).\n let [buttonWidth, setButtonWidth] = useState(null);\n let {scale} = useProvider();\n\n let onResize = useCallback(() => {\n if (!isMobile && unwrappedTriggerRef.current) {\n let width = unwrappedTriggerRef.current.offsetWidth;\n setButtonWidth(width);\n }\n }, [unwrappedTriggerRef, setButtonWidth, isMobile]);\n\n useResizeObserver({\n ref: unwrappedTriggerRef,\n onResize: onResize\n });\n\n useLayoutEffect(onResize, [scale, state.selectedKey, onResize]);\n\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {listbox}\n </Tray>\n );\n } else {\n // If quiet, use the default width, otherwise match the width of the button. This can be overridden by the menuWidth prop.\n // Always have a minimum width of the button width. When quiet, there is an extra offset to add.\n // Not using style props for this because they don't support `calc`.\n let width = isQuiet ? null : buttonWidth;\n let style = {\n width: menuWidth ? dimensionValue(menuWidth) : width,\n minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth\n };\n\n overlay = (\n <Popover\n UNSAFE_style={style}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-popover', {'spectrum-Dropdown-popover--quiet': isQuiet})}\n ref={popoverRef}\n placement={`${direction} ${align}`}\n shouldFlip={shouldFlip}\n hideArrow\n state={state}\n triggerRef={unwrappedTriggerRef}\n scrollRef={listboxRef}>\n {listbox}\n </Popover>\n );\n }\n\n let contents = state.selectedItem ? state.selectedItem.rendered : placeholder;\n if (typeof contents === 'string') {\n contents = <Text>{contents}</Text>;\n }\n\n let picker = (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Dropdown',\n {\n 'is-invalid': validationState === 'invalid' && !isDisabled,\n 'is-disabled': isDisabled,\n 'spectrum-Dropdown--quiet': isQuiet\n }\n )\n }>\n <HiddenSelect\n autoComplete={autoComplete}\n isDisabled={isDisabled}\n state={state}\n triggerRef={unwrappedTriggerRef}\n label={label}\n name={name} />\n <PressResponder {...mergeProps(hoverProps, triggerProps)}>\n <FieldButton\n ref={triggerRef}\n isActive={state.isOpen}\n isQuiet={isQuiet}\n isDisabled={isDisabled}\n validationState={validationState}\n autoFocus={autoFocus}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-trigger', {'is-hovered': isHovered})}>\n <SlotProvider\n slots={{\n icon: {UNSAFE_className: classNames(styles, 'spectrum-Icon'), size: 'S'},\n text: {\n ...valueProps,\n UNSAFE_className: classNames(\n styles,\n 'spectrum-Dropdown-label',\n {'is-placeholder': !state.selectedItem}\n )\n },\n description: {\n isHidden: true\n }\n }}>\n {contents}\n </SlotProvider>\n {isLoadingInitial &&\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n }\n {validationState === 'invalid' && !isLoadingInitial && !isDisabled &&\n <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-invalidIcon')} />\n }\n <ChevronDownMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-chevron')} />\n </FieldButton>\n </PressResponder>\n {state.collection.size === 0 ? null : overlay}\n </div>\n );\n\n let wrapperClassName = label ? classNames(\n styles,\n 'spectrum-Field',\n {\n 'spectrum-Dropdown-fieldWrapper--quiet': isQuiet,\n 'spectrum-Dropdown-fieldWrapper--positionSide': labelPosition === 'side'\n }\n ) : '';\n\n return (\n <Field\n {...props}\n ref={domRef}\n wrapperClassName={wrapperClassName}\n labelProps={labelProps}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n showErrorIcon={false}\n includeNecessityIndicatorInAccessibilityName\n elementType=\"span\">\n {picker}\n </Field>\n );\n}\n\n/**\n * Pickers allow users to choose a single option from a collapsible list of options when space is limited.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Picker = React.forwardRef(Picker) as <T>(props: SpectrumPickerProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Picker as Picker};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"placeholder\": \"حدد خيارًا...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"placeholder\": \"Изберете опция\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"placeholder\": \"Vyberte vhodnou možnost...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"placeholder\": \"Vælg en mulighed ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Option auswählen...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"placeholder\": \"Επιλέξτε…\"\n}\n","{\n \"placeholder\": \"Select an option…\",\n \"loading\": \"Loading…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"placeholder\": \"Selecciona una de estas opciones...\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"placeholder\": \"Valige valikuline...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"placeholder\": \"Valitse vaihtoehto...\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"placeholder\": \"Sélectionnez une option...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"placeholder\": \"בחר אפשרות...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Odaberite opciju\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"placeholder\": \"Válasszon egy opciót…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"placeholder\": \"Seleziona un’opzione...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"placeholder\": \"オプションを選択...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"placeholder\": \"선택 사항 선택\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"placeholder\": \"Pasirinkite parinktį...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"placeholder\": \"Atlasiet opciju...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"placeholder\": \"Velg et alternativ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"placeholder\": \"Optie selecteren...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"placeholder\": \"Wybierz opcję...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"placeholder\": \"Selecione uma opção...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"placeholder\": \"Selecionar uma opção...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"placeholder\": \"Selectați o opțiune\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"placeholder\": \"Выбрать параметр...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"placeholder\": \"Vyberte možnosť...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"placeholder\": \"Izberite možnost\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"placeholder\": \"Izaberite opciju\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"placeholder\": \"Välj ett alternativ...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"placeholder\": \"Bir seçim yapın…\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"placeholder\": \"Виберіть опцію...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"placeholder\": \"选择一个选项...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"placeholder\": \"選取一個選項\"\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;
|
|
1
|
+
{"mappings":";;;AAuPA;;GAEG;AAGH,OAAA,MAAM;UAAiF,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;AC7OhI,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC","sources":["packages/@react-spectrum/picker/src/packages/@react-spectrum/picker/src/Picker.tsx","packages/@react-spectrum/picker/src/packages/@react-spectrum/picker/src/index.ts","packages/@react-spectrum/picker/src/index.ts"],"sourcesContent":[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 {Picker} from './Picker';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumPickerProps} from '@react-types/select';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/picker",
|
|
3
|
-
"version": "3.8.1-nightly.
|
|
3
|
+
"version": "3.8.1-nightly.3552+286dbcdab",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,28 +32,28 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.6.2",
|
|
35
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
36
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
37
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
38
|
-
"@react-aria/overlays": "3.0.0-nightly.
|
|
39
|
-
"@react-aria/select": "3.8.3-nightly.
|
|
40
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
41
|
-
"@react-spectrum/button": "3.0.0-nightly.
|
|
42
|
-
"@react-spectrum/label": "3.8.1-nightly.
|
|
43
|
-
"@react-spectrum/listbox": "3.8.1-nightly.
|
|
44
|
-
"@react-spectrum/overlays": "3.0.0-nightly.
|
|
45
|
-
"@react-spectrum/progress": "3.0.0-nightly.
|
|
46
|
-
"@react-spectrum/text": "3.3.3-nightly.
|
|
47
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
48
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
49
|
-
"@react-stately/select": "3.3.3-nightly.
|
|
50
|
-
"@react-types/overlays": "3.6.5-nightly.
|
|
51
|
-
"@react-types/select": "3.6.5-nightly.
|
|
52
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
53
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
|
35
|
+
"@react-aria/focus": "3.0.0-nightly.1852+286dbcdab",
|
|
36
|
+
"@react-aria/i18n": "3.0.0-nightly.1852+286dbcdab",
|
|
37
|
+
"@react-aria/interactions": "3.0.0-nightly.1852+286dbcdab",
|
|
38
|
+
"@react-aria/overlays": "3.0.0-nightly.1852+286dbcdab",
|
|
39
|
+
"@react-aria/select": "3.8.3-nightly.3552+286dbcdab",
|
|
40
|
+
"@react-aria/utils": "3.0.0-nightly.1852+286dbcdab",
|
|
41
|
+
"@react-spectrum/button": "3.0.0-nightly.1852+286dbcdab",
|
|
42
|
+
"@react-spectrum/label": "3.8.1-nightly.3552+286dbcdab",
|
|
43
|
+
"@react-spectrum/listbox": "3.8.1-nightly.3552+286dbcdab",
|
|
44
|
+
"@react-spectrum/overlays": "3.0.0-nightly.1852+286dbcdab",
|
|
45
|
+
"@react-spectrum/progress": "3.0.0-nightly.1852+286dbcdab",
|
|
46
|
+
"@react-spectrum/text": "3.3.3-nightly.3552+286dbcdab",
|
|
47
|
+
"@react-spectrum/utils": "3.0.0-nightly.1852+286dbcdab",
|
|
48
|
+
"@react-stately/collections": "3.0.0-nightly.1852+286dbcdab",
|
|
49
|
+
"@react-stately/select": "3.3.3-nightly.3552+286dbcdab",
|
|
50
|
+
"@react-types/overlays": "3.6.5-nightly.3552+286dbcdab",
|
|
51
|
+
"@react-types/select": "3.6.5-nightly.3552+286dbcdab",
|
|
52
|
+
"@react-types/shared": "3.0.0-nightly.1852+286dbcdab",
|
|
53
|
+
"@spectrum-icons/ui": "3.0.0-nightly.1852+286dbcdab"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
56
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.1852+286dbcdab"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@react-spectrum/provider": "^3.1.4",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "286dbcdabf60102d05a95ef00bc3fed06af91d98"
|
|
67
67
|
}
|
package/src/Picker.tsx
CHANGED
|
@@ -21,17 +21,14 @@ import {
|
|
|
21
21
|
useSlotProps,
|
|
22
22
|
useUnwrapDOMRef
|
|
23
23
|
} from '@react-spectrum/utils';
|
|
24
|
-
import {DismissButton, useOverlayPosition} from '@react-aria/overlays';
|
|
25
24
|
import {DOMRef, DOMRefValue, FocusableRefValue, LabelPosition} from '@react-types/shared';
|
|
26
25
|
import {Field} from '@react-spectrum/label';
|
|
27
26
|
import {FieldButton} from '@react-spectrum/button';
|
|
28
|
-
import {FocusScope} from '@react-aria/focus';
|
|
29
27
|
import {HiddenSelect, useSelect} from '@react-aria/select';
|
|
30
28
|
// @ts-ignore
|
|
31
29
|
import intlMessages from '../intl/*.json';
|
|
32
30
|
import {ListBoxBase, useListBoxLayout} from '@react-spectrum/listbox';
|
|
33
31
|
import {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria/utils';
|
|
34
|
-
import {Placement} from '@react-types/overlays';
|
|
35
32
|
import {Popover, Tray} from '@react-spectrum/overlays';
|
|
36
33
|
import {PressResponder, useHover} from '@react-aria/interactions';
|
|
37
34
|
import {ProgressCircle} from '@react-spectrum/progress';
|
|
@@ -67,7 +64,6 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
67
64
|
let domRef = useDOMRef(ref);
|
|
68
65
|
|
|
69
66
|
let popoverRef = useRef<DOMRefValue<HTMLDivElement>>();
|
|
70
|
-
let unwrappedPopoverRef = useUnwrapDOMRef(popoverRef);
|
|
71
67
|
let triggerRef = useRef<FocusableRefValue<HTMLElement>>();
|
|
72
68
|
let unwrappedTriggerRef = useUnwrapDOMRef(triggerRef);
|
|
73
69
|
let listboxRef = useRef();
|
|
@@ -82,52 +78,27 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
82
78
|
}, state, unwrappedTriggerRef);
|
|
83
79
|
|
|
84
80
|
let isMobile = useIsMobileDevice();
|
|
85
|
-
let {overlayProps, placement, updatePosition} = useOverlayPosition({
|
|
86
|
-
targetRef: unwrappedTriggerRef,
|
|
87
|
-
overlayRef: unwrappedPopoverRef,
|
|
88
|
-
scrollRef: listboxRef,
|
|
89
|
-
placement: `${direction} ${align}` as Placement,
|
|
90
|
-
shouldFlip: shouldFlip,
|
|
91
|
-
isOpen: state.isOpen && !isMobile,
|
|
92
|
-
onClose: state.close
|
|
93
|
-
});
|
|
94
|
-
|
|
95
81
|
let {hoverProps, isHovered} = useHover({isDisabled});
|
|
96
82
|
|
|
97
|
-
// Update position once the ListBox has rendered. This ensures that
|
|
98
|
-
// it flips properly when it doesn't fit in the available space.
|
|
99
|
-
// TODO: add ResizeObserver to useOverlayPosition so we don't need this.
|
|
100
|
-
useLayoutEffect(() => {
|
|
101
|
-
if (state.isOpen) {
|
|
102
|
-
requestAnimationFrame(() => {
|
|
103
|
-
updatePosition();
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}, [state.isOpen, updatePosition]);
|
|
107
|
-
|
|
108
83
|
let isLoadingInitial = props.isLoading && state.collection.size === 0;
|
|
109
84
|
let isLoadingMore = props.isLoading && state.collection.size > 0;
|
|
110
85
|
|
|
111
86
|
// On small screen devices, the listbox is rendered in a tray, otherwise a popover.
|
|
112
87
|
let listbox = (
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
isLoading={isLoadingMore}
|
|
128
|
-
onLoadMore={props.onLoadMore} />
|
|
129
|
-
<DismissButton onDismiss={() => state.close()} />
|
|
130
|
-
</FocusScope>
|
|
88
|
+
<ListBoxBase
|
|
89
|
+
{...menuProps}
|
|
90
|
+
ref={listboxRef}
|
|
91
|
+
disallowEmptySelection
|
|
92
|
+
autoFocus={state.focusStrategy || true}
|
|
93
|
+
shouldSelectOnPressUp
|
|
94
|
+
focusOnPointerEnter
|
|
95
|
+
layout={layout}
|
|
96
|
+
state={state}
|
|
97
|
+
width={isMobile ? '100%' : undefined}
|
|
98
|
+
// Set max height: inherit so Tray scrolling works
|
|
99
|
+
UNSAFE_style={{maxHeight: 'inherit'}}
|
|
100
|
+
isLoading={isLoadingMore}
|
|
101
|
+
onLoadMore={props.onLoadMore} />
|
|
131
102
|
);
|
|
132
103
|
|
|
133
104
|
// Measure the width of the button to inform the width of the menu (below).
|
|
@@ -151,7 +122,7 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
151
122
|
let overlay;
|
|
152
123
|
if (isMobile) {
|
|
153
124
|
overlay = (
|
|
154
|
-
<Tray
|
|
125
|
+
<Tray state={state}>
|
|
155
126
|
{listbox}
|
|
156
127
|
</Tray>
|
|
157
128
|
);
|
|
@@ -161,21 +132,21 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
161
132
|
// Not using style props for this because they don't support `calc`.
|
|
162
133
|
let width = isQuiet ? null : buttonWidth;
|
|
163
134
|
let style = {
|
|
164
|
-
...overlayProps.style,
|
|
165
135
|
width: menuWidth ? dimensionValue(menuWidth) : width,
|
|
166
136
|
minWidth: isQuiet ? `calc(${buttonWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : buttonWidth
|
|
167
137
|
};
|
|
168
138
|
|
|
169
139
|
overlay = (
|
|
170
140
|
<Popover
|
|
171
|
-
isOpen={state.isOpen}
|
|
172
141
|
UNSAFE_style={style}
|
|
173
142
|
UNSAFE_className={classNames(styles, 'spectrum-Dropdown-popover', {'spectrum-Dropdown-popover--quiet': isQuiet})}
|
|
174
143
|
ref={popoverRef}
|
|
175
|
-
placement={
|
|
144
|
+
placement={`${direction} ${align}`}
|
|
145
|
+
shouldFlip={shouldFlip}
|
|
176
146
|
hideArrow
|
|
177
|
-
|
|
178
|
-
|
|
147
|
+
state={state}
|
|
148
|
+
triggerRef={unwrappedTriggerRef}
|
|
149
|
+
scrollRef={listboxRef}>
|
|
179
150
|
{listbox}
|
|
180
151
|
</Popover>
|
|
181
152
|
);
|
|
@@ -193,7 +164,7 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
193
164
|
styles,
|
|
194
165
|
'spectrum-Dropdown',
|
|
195
166
|
{
|
|
196
|
-
'is-invalid': validationState === 'invalid',
|
|
167
|
+
'is-invalid': validationState === 'invalid' && !isDisabled,
|
|
197
168
|
'is-disabled': isDisabled,
|
|
198
169
|
'spectrum-Dropdown--quiet': isQuiet
|
|
199
170
|
}
|
|
@@ -239,7 +210,7 @@ function Picker<T extends object>(props: SpectrumPickerProps<T>, ref: DOMRef<HTM
|
|
|
239
210
|
aria-label={stringFormatter.format('loading')}
|
|
240
211
|
UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />
|
|
241
212
|
}
|
|
242
|
-
{validationState === 'invalid' && !isLoadingInitial &&
|
|
213
|
+
{validationState === 'invalid' && !isLoadingInitial && !isDisabled &&
|
|
243
214
|
<AlertMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-invalidIcon')} />
|
|
244
215
|
}
|
|
245
216
|
<ChevronDownMedium UNSAFE_className={classNames(styles, 'spectrum-Dropdown-chevron')} />
|