@box/blueprint-web 19.6.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_LICENSES +119 -0
- package/dist/lib-esm/accordion/accordion.js +6 -6
- package/dist/lib-esm/accordion/types.d.ts +1 -1
- package/dist/lib-esm/checkbox/checkbox-item.js +3 -3
- package/dist/lib-esm/checkbox/types.d.ts +1 -1
- package/dist/lib-esm/collapsible/collapsible-section.js +5 -5
- package/dist/lib-esm/collapsible/types.d.ts +1 -1
- package/dist/lib-esm/combobox-group/combobox-group-combobox.js +1 -1
- package/dist/lib-esm/date-picker/date-picker.js +8 -7
- package/dist/lib-esm/guided-tooltip/guided-tooltip.js +7 -7
- package/dist/lib-esm/guided-tooltip/types.d.ts +1 -1
- package/dist/lib-esm/modal/alert-modal.types.d.ts +1 -1
- package/dist/lib-esm/modal/modal-close.js +2 -2
- package/dist/lib-esm/modal/modal-content.d.ts +1 -1
- package/dist/lib-esm/modal/modal-content.js +4 -4
- package/dist/lib-esm/modal/modal-description.js +2 -2
- package/dist/lib-esm/modal/modal-title.js +2 -2
- package/dist/lib-esm/modal/modal-trigger.js +2 -2
- package/dist/lib-esm/modal/modal.d.ts +1 -1
- package/dist/lib-esm/modal/modal.js +1 -1
- package/dist/lib-esm/modal/types.d.ts +1 -1
- package/dist/lib-esm/navigation-menu/index.d.ts +4 -2
- package/dist/lib-esm/navigation-menu/navigation-menu-item.d.ts +1 -1
- package/dist/lib-esm/navigation-menu/navigation-menu-trigger.d.ts +3 -1
- package/dist/lib-esm/primitives/chips/chip.d.ts +1 -1
- package/dist/lib-esm/primitives/chips/chip.js +2 -2
- package/dist/lib-esm/primitives/chips/chips-group.js +2 -2
- package/dist/lib-esm/primitives/chips/filter-chip/filter-chip-button.d.ts +1 -1
- package/dist/lib-esm/primitives/chips/filter-chip/filter-chip.d.ts +1 -1
- package/dist/lib-esm/primitives/chips/filter-chip/filter-combo-chip.d.ts +2 -2
- package/dist/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.d.ts +1 -1
- package/dist/lib-esm/primitives/chips/filter-chip/index.d.ts +5 -5
- package/dist/lib-esm/primitives/chips/types.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-item.d.ts +2 -2
- package/dist/lib-esm/primitives/context-menu/context-menu-item.js +2 -2
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-content.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-content.js +5 -5
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-header.js +3 -10
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-root.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-root.js +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-trigger.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-trigger.js +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-content.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +5 -5
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-root.d.ts +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-root.js +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.d.ts +2 -2
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.js +1 -1
- package/dist/lib-esm/primitives/context-menu/index.d.ts +3 -3
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.d.ts +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +3 -3
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-content.d.ts +1 -1
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +5 -5
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-group.d.ts +4 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-group.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-item.d.ts +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.d.ts +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.d.ts +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +3 -3
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-root.d.ts +1 -1
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-root.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-header.d.ts +4 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-header.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.d.ts +1 -1
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +5 -5
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.d.ts +1 -1
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.d.ts +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +4 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/index.d.ts +14 -8
- package/dist/lib-esm/primitives/notification/hooks/use-notification-layer.d.ts +15 -0
- package/dist/lib-esm/primitives/notification/hooks/use-notification-layer.js +49 -0
- package/dist/lib-esm/primitives/notification/notification-provider.js +2 -2
- package/dist/lib-esm/primitives/notification/notification.viewport-animated.js +12 -8
- package/dist/lib-esm/primitives/notification/notification.viewport.js +5 -1
- package/dist/lib-esm/primitives/notification/private-notification-element-animated.js +44 -6
- package/dist/lib-esm/primitives/notification/private-notification-element.js +34 -4
- package/dist/lib-esm/primitives/popover/index.d.ts +11 -5
- package/dist/lib-esm/primitives/popover/popover-anchor.d.ts +4 -2
- package/dist/lib-esm/primitives/popover/popover-anchor.js +2 -2
- package/dist/lib-esm/primitives/popover/popover-close.d.ts +4 -2
- package/dist/lib-esm/primitives/popover/popover-close.js +2 -2
- package/dist/lib-esm/primitives/popover/popover-content-container.d.ts +1 -1
- package/dist/lib-esm/primitives/popover/popover-content-container.js +3 -3
- package/dist/lib-esm/primitives/popover/popover-footer.d.ts +1 -1
- package/dist/lib-esm/primitives/popover/popover-main-content.d.ts +1 -1
- package/dist/lib-esm/primitives/popover/popover-root.d.ts +1 -1
- package/dist/lib-esm/primitives/popover/popover-root.js +2 -2
- package/dist/lib-esm/primitives/popover/popover-trigger.d.ts +4 -2
- package/dist/lib-esm/primitives/popover/popover-trigger.js +2 -2
- package/dist/lib-esm/radio-group/index.d.ts +1 -1
- package/dist/lib-esm/radio-group/radio-group.d.ts +1 -1
- package/dist/lib-esm/radio-group/radio-group.js +2 -2
- package/dist/lib-esm/radio-group/radio-item.js +3 -3
- package/dist/lib-esm/radio-group/types.d.ts +1 -1
- package/dist/lib-esm/select/select.js +12 -12
- package/dist/lib-esm/select/types.d.ts +1 -1
- package/dist/lib-esm/select/utils/use-select-exit-animation.d.ts +3 -3
- package/dist/lib-esm/select/utils/use-select-exit-animation.js +3 -3
- package/dist/lib-esm/side-panel/side-panel-close.js +2 -2
- package/dist/lib-esm/side-panel/side-panel-content.js +3 -3
- package/dist/lib-esm/side-panel/side-panel-header.js +2 -2
- package/dist/lib-esm/side-panel/side-panel-overlay.js +3 -3
- package/dist/lib-esm/side-panel/side-panel-trigger.js +2 -2
- package/dist/lib-esm/side-panel/side-panel.js +1 -1
- package/dist/lib-esm/side-panel/types.d.ts +1 -1
- package/dist/lib-esm/switch/switch-item.js +3 -3
- package/dist/lib-esm/switch/types.d.ts +1 -1
- package/dist/lib-esm/toolbar/index.d.ts +2 -2
- package/dist/lib-esm/toolbar/toolbar-button.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-input.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-link.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-root.js +3 -3
- package/dist/lib-esm/toolbar/toolbar-separator.d.ts +1 -1
- package/dist/lib-esm/toolbar/toolbar-separator.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-text-toggle-item.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-toggle-group.d.ts +1 -2
- package/dist/lib-esm/toolbar/toolbar-toggle-group.js +2 -2
- package/dist/lib-esm/toolbar/toolbar-toggle-item.js +2 -2
- package/dist/lib-esm/toolbar/types.d.ts +1 -1
- package/dist/lib-esm/tooltip/tooltip.d.ts +1 -1
- package/dist/lib-esm/tooltip/tooltip.js +6 -6
- package/dist/lib-esm/tooltip/types.d.ts +1 -1
- package/dist/lib-esm/utils/radix-compat/accordion.d.ts +45 -0
- package/dist/lib-esm/utils/radix-compat/accordion.js +299 -0
- package/dist/lib-esm/utils/radix-compat/allow-auto-focus.d.ts +9 -0
- package/dist/lib-esm/utils/radix-compat/allow-auto-focus.js +16 -0
- package/dist/lib-esm/utils/radix-compat/bubble-input.d.ts +14 -0
- package/dist/lib-esm/utils/radix-compat/bubble-input.js +70 -0
- package/dist/lib-esm/utils/radix-compat/button-controls.d.ts +9 -0
- package/dist/lib-esm/utils/radix-compat/button-controls.js +6 -0
- package/dist/lib-esm/utils/radix-compat/checkbox.d.ts +18 -0
- package/dist/lib-esm/utils/radix-compat/checkbox.js +131 -0
- package/dist/lib-esm/utils/radix-compat/collapsible.d.ts +33 -0
- package/dist/lib-esm/utils/radix-compat/collapsible.js +133 -0
- package/dist/lib-esm/utils/radix-compat/collection.d.ts +21 -0
- package/dist/lib-esm/utils/radix-compat/collection.js +82 -0
- package/dist/lib-esm/utils/radix-compat/compose-refs.d.ts +8 -0
- package/dist/lib-esm/utils/radix-compat/compose-refs.js +44 -0
- package/dist/lib-esm/utils/radix-compat/content-size.d.ts +15 -0
- package/dist/lib-esm/utils/radix-compat/content-size.js +61 -0
- package/dist/lib-esm/utils/radix-compat/context-menu.d.ts +56 -0
- package/dist/lib-esm/utils/radix-compat/context-menu.js +191 -0
- package/dist/lib-esm/utils/radix-compat/dialog.d.ts +50 -0
- package/dist/lib-esm/utils/radix-compat/dialog.js +367 -0
- package/dist/lib-esm/utils/radix-compat/dismiss-marker.d.ts +5 -0
- package/dist/lib-esm/utils/radix-compat/dismiss-marker.js +12 -0
- package/dist/lib-esm/utils/radix-compat/dismissable.d.ts +34 -0
- package/dist/lib-esm/utils/radix-compat/dismissable.js +205 -0
- package/dist/lib-esm/utils/radix-compat/dropdown-menu.d.ts +57 -0
- package/dist/lib-esm/utils/radix-compat/dropdown-menu.js +187 -0
- package/dist/lib-esm/utils/radix-compat/focus-scope-component.d.ts +16 -0
- package/dist/lib-esm/utils/radix-compat/focus-scope-component.js +41 -0
- package/dist/lib-esm/utils/radix-compat/focus-scope.d.ts +37 -0
- package/dist/lib-esm/utils/radix-compat/focus-scope.js +288 -0
- package/dist/lib-esm/utils/radix-compat/hide-others.d.ts +6 -0
- package/dist/lib-esm/utils/radix-compat/hide-others.js +18 -0
- package/dist/lib-esm/utils/radix-compat/index.d.ts +14 -0
- package/dist/lib-esm/utils/radix-compat/layers.d.ts +25 -0
- package/dist/lib-esm/utils/radix-compat/layers.js +61 -0
- package/dist/lib-esm/utils/radix-compat/menu.d.ts +98 -0
- package/dist/lib-esm/utils/radix-compat/menu.js +1041 -0
- package/dist/lib-esm/utils/radix-compat/popover.d.ts +44 -0
- package/dist/lib-esm/utils/radix-compat/popover.js +386 -0
- package/dist/lib-esm/utils/radix-compat/popper.d.ts +60 -0
- package/dist/lib-esm/utils/radix-compat/popper.js +416 -0
- package/dist/lib-esm/utils/radix-compat/portal.d.ts +11 -0
- package/dist/lib-esm/utils/radix-compat/portal.js +20 -0
- package/dist/lib-esm/utils/radix-compat/presence.d.ts +20 -0
- package/dist/lib-esm/utils/radix-compat/presence.js +110 -0
- package/dist/lib-esm/utils/radix-compat/radio-group.d.ts +27 -0
- package/dist/lib-esm/utils/radix-compat/radio-group.js +189 -0
- package/dist/lib-esm/utils/radix-compat/roving-focus.d.ts +35 -0
- package/dist/lib-esm/utils/radix-compat/roving-focus.js +237 -0
- package/dist/lib-esm/utils/radix-compat/select.d.ts +82 -0
- package/dist/lib-esm/utils/radix-compat/select.js +901 -0
- package/dist/lib-esm/utils/radix-compat/slot.d.ts +31 -0
- package/dist/lib-esm/utils/radix-compat/slot.js +119 -0
- package/dist/lib-esm/utils/radix-compat/store-options.d.ts +8 -0
- package/dist/lib-esm/utils/radix-compat/store-options.js +10 -0
- package/dist/lib-esm/utils/radix-compat/switch.d.ts +16 -0
- package/dist/lib-esm/utils/radix-compat/switch.js +97 -0
- package/dist/lib-esm/utils/radix-compat/toggle-group.d.ts +41 -0
- package/dist/lib-esm/utils/radix-compat/toggle-group.js +195 -0
- package/dist/lib-esm/utils/radix-compat/toolbar.d.ts +32 -0
- package/dist/lib-esm/utils/radix-compat/toolbar.js +136 -0
- package/dist/lib-esm/utils/radix-compat/tooltip.d.ts +59 -0
- package/dist/lib-esm/utils/radix-compat/tooltip.js +636 -0
- package/dist/lib-esm/utils/radix-compat/typeahead.d.ts +22 -0
- package/dist/lib-esm/utils/radix-compat/typeahead.js +64 -0
- package/dist/lib-esm/utils/radix-compat/types.d.ts +53 -0
- package/dist/lib-esm/utils/radix-compat/viewport-height.d.ts +5 -0
- package/dist/lib-esm/utils/radix-compat/viewport-height.js +28 -0
- package/dist/lib-esm/utils/radix-compat/visually-hidden.d.ts +2 -0
- package/dist/lib-esm/utils/radix-compat/visually-hidden.js +24 -0
- package/package.json +8 -19
package/THIRD_PARTY_LICENSES
CHANGED
|
@@ -476,6 +476,29 @@ Acceptable Use Policy. Developer shall not, and shall not use the Library to:
|
|
|
476
476
|
o) Promote or encourage illegal or controlled products or services.
|
|
477
477
|
|
|
478
478
|
|
|
479
|
+
License for @floating-ui/dom:
|
|
480
|
+
MIT License
|
|
481
|
+
|
|
482
|
+
Copyright (c) 2021-present Floating UI contributors
|
|
483
|
+
|
|
484
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
485
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
486
|
+
the Software without restriction, including without limitation the rights to
|
|
487
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
488
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
489
|
+
subject to the following conditions:
|
|
490
|
+
|
|
491
|
+
The above copyright notice and this permission notice shall be included in all
|
|
492
|
+
copies or substantial portions of the Software.
|
|
493
|
+
|
|
494
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
495
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
496
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
497
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
498
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
499
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
500
|
+
|
|
501
|
+
|
|
479
502
|
License for @internationalized/date:
|
|
480
503
|
Apache License
|
|
481
504
|
Version 2.0, January 2004
|
|
@@ -680,6 +703,78 @@ License for @internationalized/date:
|
|
|
680
703
|
limitations under the License.
|
|
681
704
|
|
|
682
705
|
|
|
706
|
+
License for @radix-ui/react-slider:
|
|
707
|
+
MIT License
|
|
708
|
+
|
|
709
|
+
Copyright (c) 2022 WorkOS
|
|
710
|
+
|
|
711
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
712
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
713
|
+
in the Software without restriction, including without limitation the rights
|
|
714
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
715
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
716
|
+
furnished to do so, subject to the following conditions:
|
|
717
|
+
|
|
718
|
+
The above copyright notice and this permission notice shall be included in all
|
|
719
|
+
copies or substantial portions of the Software.
|
|
720
|
+
|
|
721
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
722
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
723
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
724
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
725
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
726
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
727
|
+
SOFTWARE.
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
License for @radix-ui/react-toast:
|
|
731
|
+
MIT License
|
|
732
|
+
|
|
733
|
+
Copyright (c) 2022 WorkOS
|
|
734
|
+
|
|
735
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
736
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
737
|
+
in the Software without restriction, including without limitation the rights
|
|
738
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
739
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
740
|
+
furnished to do so, subject to the following conditions:
|
|
741
|
+
|
|
742
|
+
The above copyright notice and this permission notice shall be included in all
|
|
743
|
+
copies or substantial portions of the Software.
|
|
744
|
+
|
|
745
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
746
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
747
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
748
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
749
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
750
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
751
|
+
SOFTWARE.
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
License for aria-hidden:
|
|
755
|
+
MIT License
|
|
756
|
+
|
|
757
|
+
Copyright (c) 2017 Anton Korzunov
|
|
758
|
+
|
|
759
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
760
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
761
|
+
in the Software without restriction, including without limitation the rights
|
|
762
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
763
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
764
|
+
furnished to do so, subject to the following conditions:
|
|
765
|
+
|
|
766
|
+
The above copyright notice and this permission notice shall be included in all
|
|
767
|
+
copies or substantial portions of the Software.
|
|
768
|
+
|
|
769
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
770
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
771
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
772
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
773
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
774
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
775
|
+
SOFTWARE.
|
|
776
|
+
|
|
777
|
+
|
|
683
778
|
License for clsx:
|
|
684
779
|
MIT License
|
|
685
780
|
|
|
@@ -1124,6 +1219,30 @@ License for react-aria-components:
|
|
|
1124
1219
|
limitations under the License.
|
|
1125
1220
|
|
|
1126
1221
|
|
|
1222
|
+
License for react-remove-scroll:
|
|
1223
|
+
MIT License
|
|
1224
|
+
|
|
1225
|
+
Copyright (c) 2017 Anton Korzunov
|
|
1226
|
+
|
|
1227
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1228
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1229
|
+
in the Software without restriction, including without limitation the rights
|
|
1230
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1231
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1232
|
+
furnished to do so, subject to the following conditions:
|
|
1233
|
+
|
|
1234
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1235
|
+
copies or substantial portions of the Software.
|
|
1236
|
+
|
|
1237
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1238
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1239
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1240
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1241
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1242
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1243
|
+
SOFTWARE.
|
|
1244
|
+
|
|
1245
|
+
|
|
1127
1246
|
License for @radix-ui:
|
|
1128
1247
|
MIT License
|
|
1129
1248
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { ChevronRight } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
|
-
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { useRef } from 'react';
|
|
6
5
|
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
@@ -8,6 +7,7 @@ import '../blueprint-configuration-context/consts.js';
|
|
|
8
7
|
import { useBlueprintConfiguration } from '../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
9
8
|
import { Ghost } from '../ghost/ghost.js';
|
|
10
9
|
import { InlineNotice } from '../inline-notice/inline-notice.js';
|
|
10
|
+
import { Root as Root$1, Item as Item$1, Header, Trigger, Content } from '../utils/radix-compat/accordion.js';
|
|
11
11
|
import { AccordionItemHeader, AccordionActionSlot } from './accordion-item-header.js';
|
|
12
12
|
import styles from './accordion.module.js';
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ import styles from './accordion.module.js';
|
|
|
22
22
|
* </Accordion>
|
|
23
23
|
*/
|
|
24
24
|
const Root = props => {
|
|
25
|
-
return jsx(
|
|
25
|
+
return jsx(Root$1, {
|
|
26
26
|
...props,
|
|
27
27
|
className: styles.accordion
|
|
28
28
|
});
|
|
@@ -95,7 +95,7 @@ const Item = props => {
|
|
|
95
95
|
const handleChevronClick = () => {
|
|
96
96
|
triggerRef.current?.click();
|
|
97
97
|
};
|
|
98
|
-
return jsxs(
|
|
98
|
+
return jsxs(Item$1, {
|
|
99
99
|
...itemRest,
|
|
100
100
|
className: clsx(accordionItemClasses, {
|
|
101
101
|
[styles.highlighted]: highlighted
|
|
@@ -108,11 +108,11 @@ const Item = props => {
|
|
|
108
108
|
...itemRest.style,
|
|
109
109
|
'--accordion-expanded-line-clamp': expandedLineClamp
|
|
110
110
|
},
|
|
111
|
-
children: [jsx(
|
|
111
|
+
children: [jsx(Header, {
|
|
112
112
|
asChild: true,
|
|
113
113
|
children: jsxs("div", {
|
|
114
114
|
className: styles.accordionHeaderContainer,
|
|
115
|
-
children: [jsx(
|
|
115
|
+
children: [jsx(Trigger, {
|
|
116
116
|
ref: triggerRef,
|
|
117
117
|
className: clsx(styles.accordionTrigger, {
|
|
118
118
|
[styles.disabled]: disabled
|
|
@@ -140,7 +140,7 @@ const Item = props => {
|
|
|
140
140
|
children: chevronIcon
|
|
141
141
|
})]
|
|
142
142
|
})
|
|
143
|
-
}), jsxs(
|
|
143
|
+
}), jsxs(Content, {
|
|
144
144
|
className: clsx(children && styles.accordionContent),
|
|
145
145
|
children: [error && jsx("div", {
|
|
146
146
|
className: styles.accordionInlineErrorWrapper,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AccordionMultipleProps, type AccordionSingleProps, type AccordionItemProps as RadixAccordionItemProps } from '@radix-ui/react-accordion';
|
|
2
1
|
import { type FunctionComponent, type PropsWithChildren, type SVGProps } from 'react';
|
|
3
2
|
import { type RequireAllOrNone } from 'type-fest';
|
|
3
|
+
import { type AccordionMultipleProps, type AccordionSingleProps, type AccordionItemProps as RadixAccordionItemProps } from '../utils/radix-compat/accordion';
|
|
4
4
|
export type AccordionIconComponent = FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
|
|
5
5
|
/** Tint for the optional framed start-of-row icon. */
|
|
6
6
|
export type StartElementBackgroundVariant = 'default' | 'box' | 'forms' | 'docgen' | 'sign';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Checkmark, Minus } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
3
|
import { Size3, IconIconOnDark } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
|
-
import * as RadixCheckbox from '@radix-ui/react-checkbox';
|
|
5
4
|
import { clsx } from 'clsx';
|
|
6
5
|
import { forwardRef } from 'react';
|
|
7
6
|
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
8
7
|
import '../blueprint-configuration-context/consts.js';
|
|
9
8
|
import { useBlueprintConfiguration } from '../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
10
9
|
import { TextWithInfoBadge } from '../util-components/text-with-info-badge/text-with-info-badge.js';
|
|
10
|
+
import { Root, Indicator } from '../utils/radix-compat/checkbox.js';
|
|
11
11
|
import { useUniqueId } from '../utils/useUniqueId.js';
|
|
12
12
|
import styles from './checkbox.module.js';
|
|
13
13
|
|
|
@@ -42,7 +42,7 @@ const CheckboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
42
42
|
children: [jsxs("label", {
|
|
43
43
|
className: styles.label,
|
|
44
44
|
"data-target-id": dataTargetId,
|
|
45
|
-
children: [jsx(
|
|
45
|
+
children: [jsx(Root, {
|
|
46
46
|
...rest,
|
|
47
47
|
ref: ref,
|
|
48
48
|
"aria-describedby": descriptionId,
|
|
@@ -51,7 +51,7 @@ const CheckboxItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
51
51
|
disabled: disabled,
|
|
52
52
|
onCheckedChange: onCheckedChange,
|
|
53
53
|
value: value,
|
|
54
|
-
children: jsxs(
|
|
54
|
+
children: jsxs(Indicator, {
|
|
55
55
|
className: styles.indicator,
|
|
56
56
|
forceMount: true,
|
|
57
57
|
children: [checked === true && jsx(Checkmark, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type CheckboxProps } from '@radix-ui/react-checkbox';
|
|
2
1
|
import { type ReactNode } from 'react';
|
|
3
2
|
import { type RequireAllOrNone } from 'type-fest';
|
|
4
3
|
import { type StyledText } from '../utils/commonTypes';
|
|
4
|
+
import { type CheckboxProps } from '../utils/radix-compat/checkbox';
|
|
5
5
|
export interface DescriptionInfo {
|
|
6
6
|
/** Additional text to aid in use. It will appear inside info icon tooltip in the description. */
|
|
7
7
|
descriptionInfoText?: StyledText;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { ChevronDown, ChevronRight, ChevronUp } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
3
|
import { Size4 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
|
-
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import { forwardRef, useState, useEffect, useCallback, useMemo } from 'react';
|
|
7
6
|
import { IconButton } from '../primitives/icon-button/icon-button.js';
|
|
8
7
|
import { Slot } from '../primitives/slot.js';
|
|
8
|
+
import { Root, Trigger, Content } from '../utils/radix-compat/collapsible.js';
|
|
9
9
|
import { useNamedSlots } from '../utils/useNamedSlots.hook.js';
|
|
10
10
|
import styles from './collapsible-section.module.js';
|
|
11
11
|
|
|
@@ -43,7 +43,7 @@ const CollapsibleSectionImpl = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
43
43
|
onCollapsibleOpenChanged(!collapsibleSectionOpen);
|
|
44
44
|
}
|
|
45
45
|
}, [collapsibleSectionOpen, onCollapsibleOpenChanged]);
|
|
46
|
-
return jsxs(
|
|
46
|
+
return jsxs(Root, {
|
|
47
47
|
...rest,
|
|
48
48
|
ref: forwardedRef,
|
|
49
49
|
className: clsx(styles.collapsibleSection, className),
|
|
@@ -52,7 +52,7 @@ const CollapsibleSectionImpl = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
52
52
|
open: collapsibleSectionOpen,
|
|
53
53
|
children: [isBorderless ? jsxs("div", {
|
|
54
54
|
className: styles.collapsibleSectionHeaderRow,
|
|
55
|
-
children: [jsx(
|
|
55
|
+
children: [jsx(Trigger, {
|
|
56
56
|
asChild: true,
|
|
57
57
|
children: jsxs("div", {
|
|
58
58
|
"aria-label": iconAriaLabel,
|
|
@@ -68,7 +68,7 @@ const CollapsibleSectionImpl = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
68
68
|
})]
|
|
69
69
|
})
|
|
70
70
|
}), collapsibleSectionOpen && actionSlot?.props.children]
|
|
71
|
-
}) : jsx(
|
|
71
|
+
}) : jsx(Trigger, {
|
|
72
72
|
asChild: true,
|
|
73
73
|
children: jsxs("div", {
|
|
74
74
|
className: styles.collapsibleSectionHeader,
|
|
@@ -81,7 +81,7 @@ const CollapsibleSectionImpl = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
81
81
|
type: "button"
|
|
82
82
|
})]
|
|
83
83
|
})
|
|
84
|
-
}), jsx(
|
|
84
|
+
}), jsx(Content, {
|
|
85
85
|
className: styles.collapsibleSectionContent,
|
|
86
86
|
children: jsx("div", {
|
|
87
87
|
className: styles.collapsibleSectionBody,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CollapsibleProps as RadixCollapsibleSectionProps } from '
|
|
1
|
+
import { type CollapsibleProps as RadixCollapsibleSectionProps } from '../utils/radix-compat/collapsible';
|
|
2
2
|
export type CollapsibleSectionVariant = 'default' | 'borderless';
|
|
3
3
|
export type CollapsibleSectionProps = RadixCollapsibleSectionProps & React.ComponentPropsWithRef<'div'> & {
|
|
4
4
|
/**
|
|
@@ -2,9 +2,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import '@box/blueprint-web-assets/tokens/px-tokens';
|
|
5
|
-
import '@radix-ui/react-tooltip';
|
|
6
5
|
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
7
6
|
import '../blueprint-configuration-context/consts.js';
|
|
7
|
+
import '../utils/radix-compat/tooltip.js';
|
|
8
8
|
import { Combobox } from '../combobox/combobox.js';
|
|
9
9
|
import { useComboboxGroupContext } from './combobox-group-context.js';
|
|
10
10
|
import styles from './combobox-group.module.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Calendar, XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
3
|
import { bpSize040, bpGray65 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
|
-
import * as RadixPopover from '@radix-ui/react-popover';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import { forwardRef, useState, useEffect, useRef, useCallback } from 'react';
|
|
7
6
|
import { DatePicker as DatePicker$1, Group, DateInput, DateSegment, Button } from 'react-aria-components';
|
|
@@ -13,6 +12,7 @@ import '@internationalized/date';
|
|
|
13
12
|
import { IconButton } from '../primitives/icon-button/icon-button.js';
|
|
14
13
|
import { InlineError } from '../primitives/inline-error/inline-error.js';
|
|
15
14
|
import { useLabelable } from '../util-components/labelable/useLabelable.js';
|
|
15
|
+
import { Root, Anchor, Portal, Content } from '../utils/radix-compat/popover.js';
|
|
16
16
|
import { useControllableState } from '../utils/useControllableState.js';
|
|
17
17
|
import { useUniqueId } from '../utils/useUniqueId.js';
|
|
18
18
|
import styles from './date-picker.module.js';
|
|
@@ -29,7 +29,8 @@ const handleSubmitKeyPress = (key, callback) => {
|
|
|
29
29
|
callback();
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
// Ariakit's focus trap elements only hold focus while it moves around a portal.
|
|
33
|
+
const isFocusTrap = element => element instanceof HTMLElement && element.hasAttribute('data-focus-trap');
|
|
33
34
|
const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
34
35
|
const {
|
|
35
36
|
className,
|
|
@@ -138,7 +139,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
138
139
|
const {
|
|
139
140
|
activeElement
|
|
140
141
|
} = document;
|
|
141
|
-
const isFocusLost = !activeElement || activeElement === document.body || activeElement === document.documentElement ||
|
|
142
|
+
const isFocusLost = !activeElement || activeElement === document.body || activeElement === document.documentElement || isFocusTrap(activeElement);
|
|
142
143
|
const focusAlreadyOutsidePopover = !isFocusLost && !(e.currentTarget instanceof Node && e.currentTarget.contains(activeElement));
|
|
143
144
|
// Clear after close-focus uses it so a later open does not keep suppressing autofocus,
|
|
144
145
|
// without racing Esc/date-select focus restore (which needs the flag during this callback).
|
|
@@ -162,7 +163,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
162
163
|
const ariaDescribedBy = clsx(rest['aria-describedby'], {
|
|
163
164
|
[inlineErrorId]: hasError
|
|
164
165
|
});
|
|
165
|
-
return jsx(
|
|
166
|
+
return jsx(Root, {
|
|
166
167
|
onOpenChange: onPopoverOpenChange,
|
|
167
168
|
open: isCalendarOpen,
|
|
168
169
|
children: jsxs(DatePicker$1, {
|
|
@@ -183,7 +184,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
183
184
|
[styles.disabled]: isDisabled
|
|
184
185
|
}),
|
|
185
186
|
hideLabel: hideLabel
|
|
186
|
-
}), jsx(
|
|
187
|
+
}), jsx(Anchor, {
|
|
187
188
|
asChild: true,
|
|
188
189
|
children: jsxs(Group, {
|
|
189
190
|
ref: groupRef,
|
|
@@ -229,9 +230,9 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
229
230
|
})
|
|
230
231
|
})]
|
|
231
232
|
})
|
|
232
|
-
}), jsx(
|
|
233
|
+
}), jsx(Portal, {
|
|
233
234
|
container: portalElement,
|
|
234
|
-
children: jsx(
|
|
235
|
+
children: jsx(Content, {
|
|
235
236
|
align: "start",
|
|
236
237
|
className: styles.datePickerPopoverContent,
|
|
237
238
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { XMark } from '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { Space7 } from '@box/blueprint-web-assets/tokens/px-tokens';
|
|
4
|
-
import * as RadixPopover from '@radix-ui/react-popover';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import { forwardRef, useCallback, useState, useMemo } from 'react';
|
|
7
6
|
import { IconButton } from '../primitives/icon-button/icon-button.js';
|
|
8
7
|
import { focusRadioGroupFirstIfExists } from '../primitives/popover/popover-focus-utils.js';
|
|
8
|
+
import { Root, Anchor, Portal, Content, Close, Arrow } from '../utils/radix-compat/popover.js';
|
|
9
9
|
import { GuidedTooltipText, GuidedTooltipBody } from './guided-tooltip-body.js';
|
|
10
10
|
import { GuidedTooltipFooter } from './guided-tooltip-footer.js';
|
|
11
11
|
import { GuidedTooltipIcon } from './guided-tooltip-icon.js';
|
|
@@ -58,7 +58,7 @@ const GuidedTooltipContent = /*#__PURE__*/forwardRef(({
|
|
|
58
58
|
}, [onOpenAutoFocus]);
|
|
59
59
|
return jsx(GuidedTooltipContext.Provider, {
|
|
60
60
|
value: contextProviderValue,
|
|
61
|
-
children: jsxs(
|
|
61
|
+
children: jsxs(Content, {
|
|
62
62
|
...rest,
|
|
63
63
|
ref: forwardedRef,
|
|
64
64
|
align: align,
|
|
@@ -69,7 +69,7 @@ const GuidedTooltipContent = /*#__PURE__*/forwardRef(({
|
|
|
69
69
|
onOpenAutoFocus: handleOpenAutoFocus,
|
|
70
70
|
side: side,
|
|
71
71
|
sideOffset: sideOffset,
|
|
72
|
-
children: [content, jsx(
|
|
72
|
+
children: [content, jsx(Close, {
|
|
73
73
|
asChild: true,
|
|
74
74
|
children: jsx(IconButton, {
|
|
75
75
|
"aria-label": closeLabel,
|
|
@@ -77,7 +77,7 @@ const GuidedTooltipContent = /*#__PURE__*/forwardRef(({
|
|
|
77
77
|
"data-resin-target": closeDataResinTarget,
|
|
78
78
|
icon: XMark
|
|
79
79
|
})
|
|
80
|
-
}), jsx(
|
|
80
|
+
}), jsx(Arrow, {
|
|
81
81
|
asChild: true,
|
|
82
82
|
height: 16,
|
|
83
83
|
width: 34,
|
|
@@ -99,12 +99,12 @@ const GuidedTooltipComponent = ({
|
|
|
99
99
|
open,
|
|
100
100
|
container,
|
|
101
101
|
...guidedTooltipContentProps
|
|
102
|
-
}) => jsxs(
|
|
102
|
+
}) => jsxs(Root, {
|
|
103
103
|
onOpenChange: onOpenChange,
|
|
104
104
|
open: open,
|
|
105
|
-
children: [jsx(
|
|
105
|
+
children: [jsx(Anchor, {
|
|
106
106
|
children: children
|
|
107
|
-
}), jsx(
|
|
107
|
+
}), jsx(Portal, {
|
|
108
108
|
container: container,
|
|
109
109
|
children: jsx(GuidedTooltipContent, {
|
|
110
110
|
...guidedTooltipContentProps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as RadixPopover from '@radix-ui/react-popover';
|
|
2
1
|
import { type FunctionComponent, type PropsWithChildren, type ReactElement, type SVGProps } from 'react';
|
|
2
|
+
import type * as RadixPopover from '../utils/radix-compat/popover';
|
|
3
3
|
export interface GuidedTooltipContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
4
4
|
/** The preferred alignment against the anchor. May change when collisions occur.
|
|
5
5
|
* "start" | "center" | "end"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type DialogPortalProps, type DialogProps } from '@radix-ui/react-dialog';
|
|
2
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type DialogPortalProps, type DialogProps } from '../utils/radix-compat/dialog';
|
|
3
3
|
import { type ModalContentSize } from './types';
|
|
4
4
|
export interface AlertModalProps extends Omit<DialogProps, 'modal'>, Pick<DialogPortalProps, 'container'> {
|
|
5
5
|
/** The text content to display in the modal body. Should be an i18n string (e.g., from formatMessage). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
3
|
-
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
5
|
+
import { Close } from '../utils/radix-compat/dialog.js';
|
|
6
6
|
import { IconButton } from '../primitives/icon-button/icon-button.js';
|
|
7
7
|
import { useMedia } from '../utils/useMedia.js';
|
|
8
8
|
import styles from './modal.module.js';
|
|
@@ -26,7 +26,7 @@ const ModalClose = /*#__PURE__*/forwardRef(({
|
|
|
26
26
|
const breakpoint = 459;
|
|
27
27
|
const isMobile = useMedia(`(max-width: ${breakpoint}px)`);
|
|
28
28
|
const finalProps = isMobile ? smallViewportProps : {};
|
|
29
|
-
return jsx(
|
|
29
|
+
return jsx(Close, {
|
|
30
30
|
ref: forwardedRef,
|
|
31
31
|
"aria-label": ariaLabel,
|
|
32
32
|
asChild: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { Portal, Overlay, Content } from '../utils/radix-compat/dialog.js';
|
|
5
5
|
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
6
6
|
import '../blueprint-configuration-context/consts.js';
|
|
7
7
|
import { useBlueprintConfiguration } from '../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
@@ -23,12 +23,12 @@ const ModalContent = /*#__PURE__*/forwardRef(({
|
|
|
23
23
|
componentsWithAnimationEnabled
|
|
24
24
|
} = useBlueprintConfiguration();
|
|
25
25
|
const isAnimationEnabled = componentsWithAnimationEnabled.includes('Modal');
|
|
26
|
-
return jsx(
|
|
26
|
+
return jsx(Portal, {
|
|
27
27
|
container: container,
|
|
28
|
-
children: jsx(
|
|
28
|
+
children: jsx(Overlay, {
|
|
29
29
|
className: styles.overlay,
|
|
30
30
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
31
|
-
children: jsx(
|
|
31
|
+
children: jsx(Content, {
|
|
32
32
|
...props,
|
|
33
33
|
ref: forwardedRef,
|
|
34
34
|
asChild: asChild,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Description } from '../utils/radix-compat/dialog.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* An accessible description to be announced along with the modal title.
|
|
@@ -8,7 +8,7 @@ import { forwardRef } from 'react';
|
|
|
8
8
|
const ModalDescription = /*#__PURE__*/forwardRef(({
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
|
-
}, forwardedRef) => jsx(
|
|
11
|
+
}, forwardedRef) => jsx(Description, {
|
|
12
12
|
...props,
|
|
13
13
|
ref: forwardedRef,
|
|
14
14
|
children: children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Title } from '../utils/radix-compat/dialog.js';
|
|
4
4
|
import { VisuallyHidden } from '../visually-hidden/visually-hidden.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -12,7 +12,7 @@ const ModalTitle = /*#__PURE__*/forwardRef(({
|
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
14
|
}, forwardedRef) => {
|
|
15
|
-
const title = jsx(
|
|
15
|
+
const title = jsx(Title, {
|
|
16
16
|
...props,
|
|
17
17
|
ref: forwardedRef,
|
|
18
18
|
asChild: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Trigger } from '../utils/radix-compat/dialog.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* ModalTrigger connects your button to open a modal
|
|
@@ -8,7 +8,7 @@ import { forwardRef } from 'react';
|
|
|
8
8
|
const ModalTrigger = /*#__PURE__*/forwardRef(({
|
|
9
9
|
children,
|
|
10
10
|
...rest
|
|
11
|
-
}, forwardedRef) => jsx(
|
|
11
|
+
}, forwardedRef) => jsx(Trigger, {
|
|
12
12
|
...rest,
|
|
13
13
|
ref: forwardedRef,
|
|
14
14
|
asChild: true,
|
|
@@ -25,7 +25,7 @@ import { type ModalProps } from './types';
|
|
|
25
25
|
export declare const Modal: (({ children, modal, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
26
26
|
Body: import("react").ForwardRefExoticComponent<import("./types").ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
27
|
Close: import("react").ForwardRefExoticComponent<import("./types").ModalCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
Content: import("react").ForwardRefExoticComponent<import("
|
|
28
|
+
Content: import("react").ForwardRefExoticComponent<import("../utils/radix-compat/dialog").DialogContentProps & Pick<import("../utils/radix-compat/dialog").DialogPortalProps, "container"> & {
|
|
29
29
|
size: import("./types").ModalContentSize;
|
|
30
30
|
} & {
|
|
31
31
|
'data-testid'?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Root as Root$1 } from '
|
|
2
|
+
import { Root as Root$1 } from '../utils/radix-compat/dialog.js';
|
|
3
3
|
import { ScrollProvider } from '../utils/scroll-context.js';
|
|
4
4
|
import { ModalBody } from './modal-body.js';
|
|
5
5
|
import { ModalClose } from './modal-close.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type DialogContentProps, type DialogDescriptionProps, type DialogPortalProps, type DialogProps, type DialogTitleProps } from '@radix-ui/react-dialog';
|
|
2
1
|
import { type FunctionComponent, type HTMLAttributes, type PropsWithChildren, type ReactElement, type ReactNode, type RefObject, type SVGProps } from 'react';
|
|
2
|
+
import { type DialogContentProps, type DialogDescriptionProps, type DialogPortalProps, type DialogProps, type DialogTitleProps } from '../utils/radix-compat/dialog';
|
|
3
3
|
import { type LoadingIndicatorProps } from '../loading-indicator/loading-indicator';
|
|
4
4
|
import { type IconButtonProps } from '../primitives/icon-button';
|
|
5
5
|
import { type IconButtonVariantsProps } from '../primitives/icon-button/types';
|
|
@@ -3,9 +3,11 @@ export declare const NavigationMenu: {
|
|
|
3
3
|
(props: import("../..").DropdownMenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
|
-
Trigger: import("react").ForwardRefExoticComponent<import("
|
|
6
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
9
|
Content: import("react").ForwardRefExoticComponent<import("../..").DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Item: import("react").ForwardRefExoticComponent<import("
|
|
10
|
+
Item: import("react").ForwardRefExoticComponent<import("../utils/radix-compat/menu").MenuItemProps & {
|
|
9
11
|
variant?: import("../..").DropdownMenuItemVariant;
|
|
10
12
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
13
|
Link: import("react").ForwardRefExoticComponent<Omit<import("../..").LinkProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
@@ -10,6 +10,6 @@ export type NavigationMenuItemProps = DropdownMenuItemProps;
|
|
|
10
10
|
* </NavigationMenu.Link>
|
|
11
11
|
* </NavigationMenu.Item>
|
|
12
12
|
*/
|
|
13
|
-
export declare const NavigationMenuItem: React.ForwardRefExoticComponent<import("
|
|
13
|
+
export declare const NavigationMenuItem: React.ForwardRefExoticComponent<import("../utils/radix-compat/menu").MenuItemProps & {
|
|
14
14
|
variant?: import("../primitives/dropdown-menu").DropdownMenuItemVariant;
|
|
15
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,4 +3,6 @@ export type NavigationMenuTriggerProps = DropdownMenuTriggerProps;
|
|
|
3
3
|
/**
|
|
4
4
|
* Alias for DropdownMenu.Trigger
|
|
5
5
|
*/
|
|
6
|
-
export declare const NavigationMenuTrigger: import("react").ForwardRefExoticComponent<import("
|
|
6
|
+
export declare const NavigationMenuTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as ToggleGroup from '
|
|
1
|
+
import * as ToggleGroup from '../../utils/radix-compat/toggle-group';
|
|
2
2
|
export declare const Chip: import("react").ForwardRefExoticComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { Item } from '../../utils/radix-compat/toggle-group.js';
|
|
5
5
|
import styles from './chip.module.js';
|
|
6
6
|
|
|
7
7
|
const Chip = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
@@ -10,7 +10,7 @@ const Chip = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
10
10
|
children,
|
|
11
11
|
...rest
|
|
12
12
|
} = props;
|
|
13
|
-
return jsx(
|
|
13
|
+
return jsx(Item, {
|
|
14
14
|
...rest,
|
|
15
15
|
ref: forwardedRef,
|
|
16
16
|
className: clsx(styles.chip, className),
|