@box/blueprint-web 19.5.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 +14 -6
- package/dist/lib-esm/accordion/accordion.module.js +1 -1
- package/dist/lib-esm/accordion/types.d.ts +1 -1
- package/dist/lib-esm/blueprint-configuration-context/consts.d.ts +1 -1
- package/dist/lib-esm/blueprint-configuration-context/consts.js +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/components.css +400 -280
- 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/index.css +400 -280
- 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/small-list-item/small-list.js +8 -0
- 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/util-components/base-grid-list-item/base-grid-list-item.module.js +1 -1
- package/dist/lib-esm/utils/TooltipWrapper.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,10 +1,13 @@
|
|
|
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';
|
|
5
|
+
import '../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
6
|
+
import '../blueprint-configuration-context/consts.js';
|
|
7
|
+
import { useBlueprintConfiguration } from '../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
6
8
|
import { Ghost } from '../ghost/ghost.js';
|
|
7
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';
|
|
8
11
|
import { AccordionItemHeader, AccordionActionSlot } from './accordion-item-header.js';
|
|
9
12
|
import styles from './accordion.module.js';
|
|
10
13
|
|
|
@@ -19,7 +22,7 @@ import styles from './accordion.module.js';
|
|
|
19
22
|
* </Accordion>
|
|
20
23
|
*/
|
|
21
24
|
const Root = props => {
|
|
22
|
-
return jsx(
|
|
25
|
+
return jsx(Root$1, {
|
|
23
26
|
...props,
|
|
24
27
|
className: styles.accordion
|
|
25
28
|
});
|
|
@@ -34,6 +37,10 @@ const Item = props => {
|
|
|
34
37
|
} = props;
|
|
35
38
|
const accordionItemClasses = clsx(styles.accordionItem, className);
|
|
36
39
|
const triggerRef = useRef(null);
|
|
40
|
+
const {
|
|
41
|
+
componentsWithAnimationEnabled
|
|
42
|
+
} = useBlueprintConfiguration();
|
|
43
|
+
const isAnimationEnabled = componentsWithAnimationEnabled.includes('Accordion');
|
|
37
44
|
if (loading) {
|
|
38
45
|
return jsx("div", {
|
|
39
46
|
...rest,
|
|
@@ -88,11 +95,12 @@ const Item = props => {
|
|
|
88
95
|
const handleChevronClick = () => {
|
|
89
96
|
triggerRef.current?.click();
|
|
90
97
|
};
|
|
91
|
-
return jsxs(
|
|
98
|
+
return jsxs(Item$1, {
|
|
92
99
|
...itemRest,
|
|
93
100
|
className: clsx(accordionItemClasses, {
|
|
94
101
|
[styles.highlighted]: highlighted
|
|
95
102
|
}),
|
|
103
|
+
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
96
104
|
"data-expanded-line-clamp": expandedLineClamp,
|
|
97
105
|
// The clamp is declared on the descendant title, which cannot read this item's
|
|
98
106
|
// attribute, so the value is handed down through an inherited custom property.
|
|
@@ -100,11 +108,11 @@ const Item = props => {
|
|
|
100
108
|
...itemRest.style,
|
|
101
109
|
'--accordion-expanded-line-clamp': expandedLineClamp
|
|
102
110
|
},
|
|
103
|
-
children: [jsx(
|
|
111
|
+
children: [jsx(Header, {
|
|
104
112
|
asChild: true,
|
|
105
113
|
children: jsxs("div", {
|
|
106
114
|
className: styles.accordionHeaderContainer,
|
|
107
|
-
children: [jsx(
|
|
115
|
+
children: [jsx(Trigger, {
|
|
108
116
|
ref: triggerRef,
|
|
109
117
|
className: clsx(styles.accordionTrigger, {
|
|
110
118
|
[styles.disabled]: disabled
|
|
@@ -132,7 +140,7 @@ const Item = props => {
|
|
|
132
140
|
children: chevronIcon
|
|
133
141
|
})]
|
|
134
142
|
})
|
|
135
|
-
}), jsxs(
|
|
143
|
+
}), jsxs(Content, {
|
|
136
144
|
className: clsx(children && styles.accordionContent),
|
|
137
145
|
children: [error && jsx("div", {
|
|
138
146
|
className: styles.accordionInlineErrorWrapper,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"accordion":"bp_accordion_module_accordion--
|
|
2
|
+
var styles = {"accordion":"bp_accordion_module_accordion--baa59","accordionItem":"bp_accordion_module_accordionItem--baa59","accordionStartElementFramed":"bp_accordion_module_accordionStartElementFramed--baa59","accordionStartElementFramedDefault":"bp_accordion_module_accordionStartElementFramedDefault--baa59","accordionStartElementFramedBox":"bp_accordion_module_accordionStartElementFramedBox--baa59","accordionStartElementFramedForms":"bp_accordion_module_accordionStartElementFramedForms--baa59","accordionStartElementFramedDocgen":"bp_accordion_module_accordionStartElementFramedDocgen--baa59","accordionStartElementFramedSign":"bp_accordion_module_accordionStartElementFramedSign--baa59","accordionTitleContent":"bp_accordion_module_accordionTitleContent--baa59","accordionTitleText":"bp_accordion_module_accordionTitleText--baa59","accordionSubtitleText":"bp_accordion_module_accordionSubtitleText--baa59","accordionEndText":"bp_accordion_module_accordionEndText--baa59","accordionContentLayout":"bp_accordion_module_accordionContentLayout--baa59","accordionContent":"bp_accordion_module_accordionContent--baa59","accordionContentWrapper":"bp_accordion_module_accordionContentWrapper--baa59","accordionInlineErrorWrapper":"bp_accordion_module_accordionInlineErrorWrapper--baa59","accordionFixedContent":"bp_accordion_module_accordionFixedContent--baa59","accordionHeader":"bp_accordion_module_accordionHeader--baa59","accordionTitleGroup":"bp_accordion_module_accordionTitleGroup--baa59","accordionStartElement":"bp_accordion_module_accordionStartElement--baa59","accordionSubtitle":"bp_accordion_module_accordionSubtitle--baa59","accordionSubtitleIcon":"bp_accordion_module_accordionSubtitleIcon--baa59","accordionHeaderInfoSlot":"bp_accordion_module_accordionHeaderInfoSlot--baa59","accordionSlot":"bp_accordion_module_accordionSlot--baa59","accordionChevronWrapper":"bp_accordion_module_accordionChevronWrapper--baa59","accordionTriggerIcon":"bp_accordion_module_accordionTriggerIcon--baa59","accordionIconWrapper":"bp_accordion_module_accordionIconWrapper--baa59","bgOnly":"bp_accordion_module_bgOnly--baa59","withIcon":"bp_accordion_module_withIcon--baa59","accordionTrigger":"bp_accordion_module_accordionTrigger--baa59","disabled":"bp_accordion_module_disabled--baa59","accordionHeaderContainer":"bp_accordion_module_accordionHeaderContainer--baa59","highlighted":"bp_accordion_module_highlighted--baa59"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -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';
|
|
@@ -39,7 +39,7 @@ export declare const BLUEPRINT_CONFIGURATION_SPLITS: {
|
|
|
39
39
|
export declare const ANIMATED_COMPONENTS_BY_PHASE: {
|
|
40
40
|
readonly phase1: readonly ["Button", "IconButton", "DropdownMenu", "Tooltip", "Popover", "SplitButton", "CardTooltip", "NavigationMenu", "Modal", "TextButton", "ContextMenu"];
|
|
41
41
|
readonly phase2: readonly ["TriggerButton", "ContextMenuItem", "DropdownMenuItem", "NavigationMenuItem", "Switch", "Checkbox", "TextInput", "Select", "Datepicker", "TextArea", "Combobox", "PasswordInput", "ComboboxGroup", "InlineError"];
|
|
42
|
-
readonly phase3: readonly ["TooltipTravel", "TextInputErrorShake", "Notification", "NumericBadge", "Tabs", "AvatarGroup"];
|
|
42
|
+
readonly phase3: readonly ["TooltipTravel", "TextInputErrorShake", "Notification", "NumericBadge", "Tabs", "AvatarGroup", "SmallList", "Accordion"];
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* Default values for Blueprint configuration properties that are not driven by
|
|
@@ -45,7 +45,7 @@ const ANIMATED_COMPONENTS_BY_PHASE = deepFreeze({
|
|
|
45
45
|
// story/group-owned bubble; production Tooltip stays on released phase 1
|
|
46
46
|
'TextInputErrorShake',
|
|
47
47
|
// DISTINCT from phase2 'TextInput' so phase 3 is independently rollable
|
|
48
|
-
'Notification', 'NumericBadge', 'Tabs', 'AvatarGroup']
|
|
48
|
+
'Notification', 'NumericBadge', 'Tabs', 'AvatarGroup', 'SmallList', 'Accordion']
|
|
49
49
|
});
|
|
50
50
|
/**
|
|
51
51
|
* Default values for Blueprint configuration properties that are not driven by
|
|
@@ -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';
|