@hopper-ui/components 1.13.1 → 1.15.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/CHANGELOG.md +16 -0
- package/dist/accordion/src/Accordion.css +79 -79
- package/dist/accordion/src/Accordion.js +2 -2
- package/dist/accordion/src/index.css +79 -79
- package/dist/accordion/src/index.js +2 -2
- package/dist/alert/src/Alert.css +415 -457
- package/dist/alert/src/Alert.js +12 -12
- package/dist/alert/src/index.css +415 -457
- package/dist/alert/src/index.js +12 -12
- package/dist/avatar/src/AnonymousAvatar.css +51 -51
- package/dist/avatar/src/AnonymousAvatar.js +2 -2
- package/dist/avatar/src/Avatar.css +71 -71
- package/dist/avatar/src/Avatar.js +4 -4
- package/dist/avatar/src/AvatarGroup.css +66 -66
- package/dist/avatar/src/AvatarGroup.js +5 -5
- package/dist/avatar/src/BrokenAvatar.css +51 -51
- package/dist/avatar/src/BrokenAvatar.js +2 -2
- package/dist/avatar/src/DeletedAvatar.css +51 -51
- package/dist/avatar/src/DeletedAvatar.js +2 -2
- package/dist/avatar/src/RichIconAvatarImage.css +51 -51
- package/dist/avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/avatar/src/index.css +98 -98
- package/dist/avatar/src/index.js +10 -10
- package/dist/badge/src/Badge.css +54 -54
- package/dist/badge/src/Badge.js +2 -2
- package/dist/badge/src/FloatingBadge.css +49 -49
- package/dist/badge/src/FloatingBadge.js +1 -1
- package/dist/badge/src/index.css +64 -64
- package/dist/badge/src/index.js +3 -3
- package/dist/buttons/src/Button.css +108 -120
- package/dist/buttons/src/Button.js +7 -7
- package/dist/buttons/src/ButtonGroup.css +50 -50
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +110 -110
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/CloseButton.css +109 -121
- package/dist/buttons/src/CloseButton.js +8 -8
- package/dist/buttons/src/EmbeddedButton.css +110 -110
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +118 -130
- package/dist/buttons/src/LinkButton.js +5 -5
- package/dist/buttons/src/ToggleButton.css +144 -162
- package/dist/buttons/src/ToggleButton.js +5 -5
- package/dist/buttons/src/index.css +363 -405
- package/dist/buttons/src/index.js +13 -13
- package/dist/calendar/src/Calendar.css +683 -593
- package/dist/calendar/src/Calendar.d.ts +8 -3
- package/dist/calendar/src/Calendar.js +16 -14
- package/dist/calendar/src/CalendarCell.css +52 -52
- package/dist/calendar/src/CalendarCell.js +1 -1
- package/dist/calendar/src/CalendarContext.d.ts +3 -3
- package/dist/calendar/src/CalendarGrid.css +193 -64
- package/dist/calendar/src/CalendarGrid.d.ts +12 -4
- package/dist/calendar/src/CalendarGrid.js +3 -2
- package/dist/calendar/src/CalendarHeader.css +2154 -0
- package/dist/calendar/src/CalendarHeader.d.ts +12 -0
- package/dist/calendar/src/CalendarHeader.js +24 -0
- package/dist/calendar/src/RangeCalendar.css +2474 -0
- package/dist/calendar/src/RangeCalendar.d.ts +33 -0
- package/dist/calendar/src/RangeCalendar.js +32 -0
- package/dist/calendar/src/RangeCalendarCell.css +405 -0
- package/dist/calendar/src/RangeCalendarCell.d.ts +10 -0
- package/dist/calendar/src/RangeCalendarCell.js +3 -0
- package/dist/calendar/src/RangeCalendarContext.d.ts +10 -0
- package/dist/calendar/src/RangeCalendarContext.js +2 -0
- package/dist/calendar/src/index.css +718 -590
- package/dist/calendar/src/index.d.ts +4 -0
- package/dist/calendar/src/index.js +18 -14
- package/dist/callout/src/Callout.css +376 -418
- package/dist/callout/src/Callout.js +9 -9
- package/dist/callout/src/CompactCallout.css +412 -454
- package/dist/callout/src/CompactCallout.js +9 -9
- package/dist/callout/src/index.css +425 -467
- package/dist/callout/src/index.js +11 -11
- package/dist/card/src/Card.css +42 -42
- package/dist/card/src/Card.js +1 -1
- package/dist/card/src/index.css +42 -42
- package/dist/card/src/index.js +1 -1
- package/dist/checkbox/src/Checkbox.css +58 -58
- package/dist/checkbox/src/Checkbox.js +4 -4
- package/dist/checkbox/src/CheckboxField.css +45 -45
- package/dist/checkbox/src/CheckboxField.js +4 -4
- package/dist/checkbox/src/CheckboxGroup.css +111 -111
- package/dist/checkbox/src/CheckboxGroup.js +10 -10
- package/dist/checkbox/src/DecorativeCheckbox.css +66 -66
- package/dist/checkbox/src/DecorativeCheckbox.js +3 -3
- package/dist/checkbox/src/index.css +111 -111
- package/dist/checkbox/src/index.js +14 -14
- package/dist/{chunk-A3STLYJ2.js → chunk-3JPSTI7U.js} +1 -1
- package/dist/{chunk-ZKMYFUFY.js → chunk-4372AEHL.js} +2 -2
- package/dist/{chunk-M36OW5VA.js → chunk-4LJNA3BH.js} +5 -5
- package/dist/{chunk-3P4A2K5N.js → chunk-4WJKLLPU.js} +1 -1
- package/dist/{chunk-SCBYFDNB.js → chunk-5H6HXBBV.js} +1 -1
- package/dist/chunk-5HBNX4TV.js +76 -0
- package/dist/{chunk-UW6L5XIN.js → chunk-5KK7RTEA.js} +4 -4
- package/dist/{chunk-4HDSCFU3.js → chunk-6R6IZOFV.js} +2 -2
- package/dist/chunk-6RDTDHXI.js +7 -0
- package/dist/{chunk-QIRLBF2D.js → chunk-6RMA7LNR.js} +2 -2
- package/dist/{chunk-MXMBM3AV.js → chunk-7BWGRDY4.js} +7 -7
- package/dist/{chunk-EYBW6LXM.js → chunk-7MOLHUYZ.js} +8 -43
- package/dist/{chunk-Y74JC532.js → chunk-7PIBKDKB.js} +1 -1
- package/dist/{chunk-7UVOGKXP.js → chunk-ADJPNO63.js} +1 -1
- package/dist/{chunk-HIM4CPT5.js → chunk-ALOG4CGE.js} +1 -1
- package/dist/{chunk-IXXOIJE2.js → chunk-BIJPQJCS.js} +4 -4
- package/dist/chunk-BLRDCZTZ.js +134 -0
- package/dist/chunk-BZNLIUJV.js +64 -0
- package/dist/{chunk-DLRG7NRG.js → chunk-C5RNBIC5.js} +3 -3
- package/dist/{chunk-AUITTQKV.js → chunk-CPGP7ETX.js} +4 -2
- package/dist/{chunk-HDK6WAUM.js → chunk-CSMLY37T.js} +2 -2
- package/dist/{chunk-7X6VGI5C.js → chunk-D4TK5GXL.js} +1 -1
- package/dist/{chunk-UBYJI4SN.js → chunk-DB4U2BXX.js} +1 -1
- package/dist/{chunk-GZH4BLFB.js → chunk-DCMIOFJS.js} +6 -6
- package/dist/{chunk-BO7KZ4UI.js → chunk-DGH2NL67.js} +2 -2
- package/dist/{chunk-LHSVZUUD.js → chunk-DNJV3GYR.js} +1 -1
- package/dist/{chunk-UFUP5YLT.js → chunk-DONUBZNH.js} +5 -5
- package/dist/{chunk-TRTLWF3N.js → chunk-E3QEKVUY.js} +3 -3
- package/dist/{chunk-OMWIVLGM.js → chunk-E6IA2QFO.js} +2 -2
- package/dist/{chunk-7K74WFLW.js → chunk-G626JPDA.js} +4 -4
- package/dist/{chunk-X3N5Z3TG.js → chunk-HA55RNAD.js} +1 -1
- package/dist/{chunk-FTWU7YCU.js → chunk-HSPMMCBQ.js} +1 -1
- package/dist/{chunk-5MX4UHYL.js → chunk-HYZZYXSL.js} +3 -3
- package/dist/{chunk-P3OSQKIP.js → chunk-IHHHAYKH.js} +2 -2
- package/dist/{chunk-Q2TQXPCI.js → chunk-INJECWV6.js} +1 -1
- package/dist/{chunk-DCHIZ3E2.js → chunk-JZ2KRSAX.js} +1 -1
- package/dist/chunk-K63PXNYW.js +7 -0
- package/dist/{chunk-GM3ODGT3.js → chunk-K7M2AMPU.js} +6 -6
- package/dist/chunk-KC5RDV27.js +27 -0
- package/dist/{chunk-AUIVLKYF.js → chunk-KCTCOWKE.js} +2 -2
- package/dist/{chunk-CZKR35JP.js → chunk-KNGBD6AR.js} +3 -3
- package/dist/chunk-LRGXSUVU.js +67 -0
- package/dist/chunk-M4DSD53U.js +51 -0
- package/dist/{chunk-RJGMYQTY.js → chunk-MFL67VAY.js} +8 -8
- package/dist/{chunk-RBKTXRQX.js → chunk-MGNHLZCI.js} +1 -1
- package/dist/{chunk-PWMB2SNR.js → chunk-MGUIFTY3.js} +1 -1
- package/dist/{chunk-RANBIZ4V.js → chunk-MQE64PHB.js} +1 -1
- package/dist/{chunk-LIJ4NRV6.js → chunk-MYXYNWTX.js} +12 -12
- package/dist/{chunk-CMAVM5PA.js → chunk-ND57HLQZ.js} +3 -3
- package/dist/{chunk-HPA6YHZV.js → chunk-NR765CAZ.js} +2 -2
- package/dist/{chunk-A62DNP4U.js → chunk-NTDT2CAX.js} +3 -3
- package/dist/{chunk-4PKM5LID.js → chunk-O27HI4OB.js} +2 -2
- package/dist/{chunk-FJKY3ZPH.js → chunk-O5TV66PW.js} +11 -11
- package/dist/{chunk-OH3VNYIG.js → chunk-O6BQ7CJS.js} +1 -1
- package/dist/{chunk-BJ6NDVNZ.js → chunk-OQGUY2WF.js} +2 -2
- package/dist/{chunk-MFPBMJZK.js → chunk-OVYWTX4O.js} +1 -1
- package/dist/{chunk-SQJDYFM5.js → chunk-P6UZVUF7.js} +2 -2
- package/dist/{chunk-F267EHTV.js → chunk-PXCHGIYS.js} +2 -2
- package/dist/{chunk-NHIV7QIV.js → chunk-PZHKZKDX.js} +2 -2
- package/dist/{chunk-T7AEBLDO.js → chunk-Q3HMB76N.js} +3 -3
- package/dist/{chunk-KQSICX67.js → chunk-QINXOGGD.js} +1 -1
- package/dist/{chunk-2XZOQ5ZW.js → chunk-QUK36FFB.js} +2 -2
- package/dist/{chunk-PBSQXM3V.js → chunk-RAZOKZRZ.js} +1 -1
- package/dist/{chunk-TPQNT6OK.js → chunk-RPULORS7.js} +2 -2
- package/dist/{chunk-AANVX7DQ.js → chunk-RYTTFNAT.js} +11 -11
- package/dist/{chunk-UEOTPA6F.js → chunk-S5AC2WOV.js} +1 -1
- package/dist/{chunk-QBRXXVJ2.js → chunk-SANUE6RN.js} +2 -2
- package/dist/{chunk-VXK4TLIL.js → chunk-SICFAJHJ.js} +4 -4
- package/dist/{chunk-ZQ7B4YPI.js → chunk-SOCAHCAN.js} +2 -2
- package/dist/{chunk-QZ7TC5HH.js → chunk-SVAIX6OT.js} +3 -3
- package/dist/{chunk-72P2YLB6.js → chunk-SVPZYOY7.js} +9 -9
- package/dist/{chunk-VI4ELSL2.js → chunk-SZT54XZ6.js} +3 -3
- package/dist/{chunk-LYAD5ZOS.js → chunk-TCHK6AN3.js} +1 -1
- package/dist/{chunk-OQLAOKSR.js → chunk-TZ7OMW2O.js} +1 -1
- package/dist/{chunk-U2IUS3DN.js → chunk-UGQMLEZG.js} +8 -8
- package/dist/{chunk-GZUC3W47.js → chunk-V6ZSJFBP.js} +2 -2
- package/dist/{chunk-264PS5LZ.js → chunk-VBGNARNP.js} +8 -8
- package/dist/{chunk-LGUSV6JO.js → chunk-VDKCHF3D.js} +5 -5
- package/dist/{chunk-U5AS4TK5.js → chunk-VYOXT26L.js} +2 -2
- package/dist/{chunk-MMAQ5OOS.js → chunk-VZIUXB72.js} +2 -2
- package/dist/{chunk-VNZO5NFI.js → chunk-WDKCSYBX.js} +2 -2
- package/dist/{chunk-CJ532ZS4.js → chunk-WMBJMVQG.js} +2 -2
- package/dist/{chunk-EHAAKRGX.js → chunk-WS6MPORZ.js} +3 -3
- package/dist/{chunk-KE2ANQ76.js → chunk-WWBZ7XRD.js} +1 -1
- package/dist/{chunk-5LZAVMRA.js → chunk-X47F7QUF.js} +1 -1
- package/dist/{chunk-4GCNGXTN.js → chunk-X4LAUJTO.js} +2 -2
- package/dist/{chunk-6SCDJITN.js → chunk-XQ6CP44V.js} +4 -4
- package/dist/{chunk-6MFYCZ4B.js → chunk-XR5IAIF2.js} +5 -5
- package/dist/{chunk-43HUXWXY.js → chunk-XVM43HG4.js} +2 -2
- package/dist/{chunk-HMUOO46Q.js → chunk-XXLU4635.js} +2 -2
- package/dist/{chunk-MGJ2ZVGO.js → chunk-Y6MJXAZJ.js} +1 -1
- package/dist/{chunk-27UPNFUF.js → chunk-YBJI4QLB.js} +1 -1
- package/dist/chunk-YMHJPPXW.js +7 -0
- package/dist/{chunk-ES45XL77.js → chunk-YMSREUQL.js} +1 -1
- package/dist/{chunk-AU5GMSIR.js → chunk-YPTF5MGP.js} +2 -2
- package/dist/{chunk-WG6NXSI3.js → chunk-YSBWWOQO.js} +1 -1
- package/dist/{chunk-4K7QEEZN.js → chunk-ZDVW63SS.js} +1 -1
- package/dist/{chunk-Y6UQWK7M.js → chunk-ZJN4N4I6.js} +1 -1
- package/dist/combobox/src/ComboBox.css +790 -832
- package/dist/combobox/src/ComboBox.js +23 -23
- package/dist/combobox/src/index.css +790 -832
- package/dist/combobox/src/index.js +23 -23
- package/dist/contextual-help/src/ContextualHelp.css +711 -753
- package/dist/contextual-help/src/ContextualHelp.js +4 -4
- package/dist/contextual-help/src/index.css +711 -753
- package/dist/contextual-help/src/index.js +4 -4
- package/dist/date-picker/src/DateInput.css +392 -0
- package/dist/date-picker/src/DateInput.d.ts +19 -0
- package/dist/date-picker/src/DateInput.js +3 -0
- package/dist/date-picker/src/DatePicker.css +5605 -0
- package/dist/date-picker/src/DatePicker.d.ts +53 -0
- package/dist/date-picker/src/DatePicker.js +45 -0
- package/dist/date-picker/src/DatePickerContext.d.ts +14 -0
- package/dist/date-picker/src/DatePickerContext.js +2 -0
- package/dist/date-picker/src/DateRangePicker.d.ts +50 -0
- package/dist/date-picker/src/DateRangePicker.js +6 -0
- package/dist/date-picker/src/DateRangePickerContext.d.ts +14 -0
- package/dist/date-picker/src/DateRangePickerContext.js +2 -0
- package/dist/date-picker/src/index.css +5605 -0
- package/dist/date-picker/src/index.d.ts +13 -0
- package/dist/date-picker/src/index.js +46 -0
- package/dist/disclosure/src/Disclosure.css +49 -49
- package/dist/disclosure/src/Disclosure.js +2 -2
- package/dist/disclosure/src/DisclosureHeader.css +56 -56
- package/dist/disclosure/src/DisclosureHeader.js +4 -4
- package/dist/disclosure/src/DisclosurePanel.css +49 -49
- package/dist/disclosure/src/DisclosurePanel.js +3 -3
- package/dist/disclosure/src/index.css +74 -74
- package/dist/disclosure/src/index.js +8 -8
- package/dist/divider/src/Divider.css +41 -41
- package/dist/divider/src/Divider.js +1 -1
- package/dist/divider/src/index.css +41 -41
- package/dist/divider/src/index.js +1 -1
- package/dist/error-message/src/ErrorMessage.css +41 -41
- package/dist/error-message/src/ErrorMessage.js +2 -2
- package/dist/error-message/src/index.css +41 -41
- package/dist/error-message/src/index.js +2 -2
- package/dist/form/src/Form.css +39 -39
- package/dist/form/src/Form.js +1 -1
- package/dist/form/src/index.css +39 -39
- package/dist/form/src/index.js +1 -1
- package/dist/header/src/Header.css +39 -39
- package/dist/header/src/index.css +39 -39
- package/dist/helper-message/src/HelperMessage.css +41 -41
- package/dist/helper-message/src/HelperMessage.js +2 -2
- package/dist/helper-message/src/index.css +41 -41
- package/dist/helper-message/src/index.js +2 -2
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/icon-list/src/IconList.css +40 -40
- package/dist/icon-list/src/IconList.js +1 -1
- package/dist/icon-list/src/index.css +40 -40
- package/dist/icon-list/src/index.js +1 -1
- package/dist/illustrated-message/src/IllustratedMessage.css +385 -427
- package/dist/illustrated-message/src/IllustratedMessage.js +2 -2
- package/dist/illustrated-message/src/index.css +385 -427
- package/dist/illustrated-message/src/index.js +2 -2
- package/dist/illustration/src/Illustration.css +48 -48
- package/dist/illustration/src/Illustration.js +2 -2
- package/dist/illustration/src/index.css +48 -48
- package/dist/illustration/src/index.js +2 -2
- package/dist/image/src/Image.css +42 -42
- package/dist/image/src/Image.js +1 -1
- package/dist/image/src/SvgImage.css +40 -40
- package/dist/image/src/SvgImage.js +1 -1
- package/dist/image/src/index.css +43 -43
- package/dist/image/src/index.js +2 -2
- package/dist/index.css +1539 -1256
- package/dist/index.d.ts +7 -1
- package/dist/index.js +127 -119
- package/dist/inputs/src/Input.css +43 -43
- package/dist/inputs/src/Input.js +1 -1
- package/dist/inputs/src/InputGroup.css +45 -45
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +69 -69
- package/dist/inputs/src/NumberField.js +11 -11
- package/dist/inputs/src/PasswordField.css +383 -425
- package/dist/inputs/src/PasswordField.js +11 -11
- package/dist/inputs/src/RemainingCharacterCount.css +42 -42
- package/dist/inputs/src/RemainingCharacterCount.js +3 -3
- package/dist/inputs/src/SearchField.css +389 -431
- package/dist/inputs/src/SearchField.js +12 -12
- package/dist/inputs/src/TextArea.css +68 -68
- package/dist/inputs/src/TextArea.js +11 -11
- package/dist/inputs/src/TextField.css +387 -429
- package/dist/inputs/src/TextField.js +15 -15
- package/dist/inputs/src/index.css +437 -479
- package/dist/inputs/src/index.js +22 -22
- package/dist/layout/src/Content.css +39 -39
- package/dist/layout/src/Footer.css +39 -39
- package/dist/link/src/Link.css +78 -78
- package/dist/link/src/Link.js +3 -3
- package/dist/link/src/index.css +78 -78
- package/dist/link/src/index.js +3 -3
- package/dist/list-box/src/ListBox.css +319 -319
- package/dist/list-box/src/ListBox.js +8 -8
- package/dist/list-box/src/ListBoxItem.css +307 -307
- package/dist/list-box/src/ListBoxItem.js +6 -6
- package/dist/list-box/src/ListBoxItemSkeleton.css +46 -46
- package/dist/list-box/src/ListBoxItemSkeleton.js +1 -1
- package/dist/list-box/src/index.css +319 -319
- package/dist/list-box/src/index.js +9 -9
- package/dist/menu/src/Menu.css +713 -755
- package/dist/menu/src/Menu.js +2 -2
- package/dist/menu/src/MenuItem.css +122 -122
- package/dist/menu/src/MenuItem.js +2 -2
- package/dist/menu/src/MenuSection.css +41 -41
- package/dist/menu/src/MenuSection.js +1 -1
- package/dist/menu/src/index.css +738 -780
- package/dist/menu/src/index.js +6 -6
- package/dist/modal/src/BaseModal.css +54 -54
- package/dist/modal/src/BaseModal.js +2 -2
- package/dist/modal/src/CustomModal.css +55 -55
- package/dist/modal/src/CustomModal.js +4 -4
- package/dist/modal/src/Modal.css +405 -447
- package/dist/modal/src/Modal.js +11 -11
- package/dist/modal/src/index.css +406 -448
- package/dist/modal/src/index.js +13 -13
- package/dist/overlays/popover/src/Popover.css +705 -747
- package/dist/overlays/popover/src/Popover.js +1 -1
- package/dist/overlays/popover/src/PopoverBase.css +42 -42
- package/dist/overlays/popover/src/PopoverBase.js +1 -1
- package/dist/overlays/popover/src/index.css +708 -750
- package/dist/overlays/popover/src/index.js +4 -4
- package/dist/radio/src/DecorativeRadio.css +66 -66
- package/dist/radio/src/DecorativeRadio.js +3 -3
- package/dist/radio/src/Radio.css +58 -58
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +45 -45
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +111 -111
- package/dist/radio/src/RadioGroup.js +9 -9
- package/dist/radio/src/index.css +111 -111
- package/dist/radio/src/index.js +13 -13
- package/dist/segmented-control/src/SegmentedControl.css +40 -40
- package/dist/segmented-control/src/SegmentedControl.js +1 -1
- package/dist/segmented-control/src/SegmentedControlItem.css +54 -54
- package/dist/segmented-control/src/SegmentedControlItem.js +2 -2
- package/dist/segmented-control/src/index.css +55 -55
- package/dist/segmented-control/src/index.js +3 -3
- package/dist/select/src/Select.css +732 -774
- package/dist/select/src/Select.js +21 -21
- package/dist/select/src/SelectValue.css +104 -104
- package/dist/select/src/SelectValue.js +3 -3
- package/dist/select/src/index.css +732 -774
- package/dist/select/src/index.js +21 -21
- package/dist/spinner/src/Spinner.css +49 -49
- package/dist/spinner/src/Spinner.js +2 -2
- package/dist/spinner/src/index.css +49 -49
- package/dist/spinner/src/index.js +2 -2
- package/dist/switch/src/Switch.css +55 -55
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +45 -45
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +61 -61
- package/dist/switch/src/index.js +4 -4
- package/dist/tabs/src/Tab.css +560 -602
- package/dist/tabs/src/Tab.js +2 -2
- package/dist/tabs/src/TabList.css +44 -44
- package/dist/tabs/src/TabList.js +1 -1
- package/dist/tabs/src/TabPanel.css +41 -41
- package/dist/tabs/src/TabPanel.js +1 -1
- package/dist/tabs/src/index.css +567 -609
- package/dist/tabs/src/index.js +4 -4
- package/dist/tag/src/Tag.css +535 -577
- package/dist/tag/src/Tag.js +8 -8
- package/dist/tag/src/TagGroup.css +49 -49
- package/dist/tag/src/TagGroup.js +8 -8
- package/dist/tag/src/index.css +545 -587
- package/dist/tag/src/index.js +13 -13
- package/dist/tile/src/Tile.css +66 -66
- package/dist/tile/src/Tile.js +2 -2
- package/dist/tile/src/TileGroup.css +40 -40
- package/dist/tile/src/TileGroup.js +1 -1
- package/dist/tile/src/index.css +67 -67
- package/dist/tile/src/index.js +3 -3
- package/dist/toggle-arrow/src/ToggleArrow.css +41 -41
- package/dist/toggle-arrow/src/ToggleArrow.js +1 -1
- package/dist/toggle-arrow/src/index.css +41 -41
- package/dist/toggle-arrow/src/index.js +1 -1
- package/dist/tooltip/src/Tooltip.css +49 -49
- package/dist/tooltip/src/Tooltip.js +3 -3
- package/dist/tooltip/src/TooltipTrigger.css +39 -39
- package/dist/tooltip/src/index.css +49 -49
- package/dist/tooltip/src/index.js +4 -4
- package/dist/typography/heading/src/Heading.css +39 -39
- package/dist/typography/heading/src/Heading.js +1 -1
- package/dist/typography/heading/src/index.css +39 -39
- package/dist/typography/heading/src/index.js +1 -1
- package/dist/typography/label/src/FieldLabel.css +39 -39
- package/dist/typography/label/src/FieldLabel.js +4 -4
- package/dist/typography/label/src/Label.css +39 -39
- package/dist/typography/label/src/Label.js +1 -1
- package/dist/typography/label/src/index.css +39 -39
- package/dist/typography/label/src/index.js +4 -4
- package/dist/typography/overline-text/src/OverlineText.css +39 -39
- package/dist/typography/overline-text/src/OverlineText.js +1 -1
- package/dist/typography/overline-text/src/index.css +39 -39
- package/dist/typography/overline-text/src/index.js +1 -1
- package/dist/typography/paragraph/src/Paragraph.css +39 -39
- package/dist/typography/paragraph/src/Paragraph.js +2 -2
- package/dist/typography/paragraph/src/index.css +39 -39
- package/dist/typography/paragraph/src/index.js +2 -2
- package/dist/typography/text/src/Text.css +39 -39
- package/dist/typography/text/src/Text.js +1 -1
- package/dist/typography/text/src/index.css +39 -39
- package/dist/typography/text/src/index.js +1 -1
- package/dist/utils/src/ClearSlots.css +39 -39
- package/dist/utils/src/EnsureTextWrapper.css +39 -39
- package/dist/utils/src/EnsureTextWrapper.js +2 -2
- package/dist/utils/src/index.css +39 -39
- package/dist/utils/src/index.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-3QGGW2HP.js +0 -41
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { _Header } from './chunk-XLJODMSX.js';
|
|
2
|
+
import { _Heading } from './chunk-OVYWTX4O.js';
|
|
3
|
+
import { HeaderContext } from './chunk-FOQ7KN4V.js';
|
|
4
|
+
import { HeadingContext } from './chunk-WJRMD4JP.js';
|
|
5
|
+
import { _Button } from './chunk-DONUBZNH.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-CPGP7ETX.js';
|
|
7
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
|
+
import { AngleLeftIcon, AngleRightIcon } from '@hopper-ui/icons';
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
// css-module:./CalendarHeader.module.css#css-module
|
|
14
|
+
var CalendarHeader_module_default = { "hop-CalendarHeader": "CalendarHeader-module__hop-CalendarHeader___THfEk", "hop-CalendarHeader-button": "CalendarHeader-module__hop-CalendarHeader-button___Zpapb", "hop-CalendarHeader-heading": "CalendarHeader-module__hop-CalendarHeader-heading___hBvPU" };
|
|
15
|
+
var GlobalCalendarHeaderCssSelector = "hop-CalendarHeader";
|
|
16
|
+
var CalendarHeader = (props) => {
|
|
17
|
+
const stringFormatter = useLocalizedString();
|
|
18
|
+
const {
|
|
19
|
+
className,
|
|
20
|
+
...otherProps
|
|
21
|
+
} = props;
|
|
22
|
+
const classNames = clsx(
|
|
23
|
+
GlobalCalendarHeaderCssSelector,
|
|
24
|
+
cssModule(
|
|
25
|
+
CalendarHeader_module_default,
|
|
26
|
+
GlobalCalendarHeaderCssSelector
|
|
27
|
+
),
|
|
28
|
+
className
|
|
29
|
+
);
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
SlotProvider,
|
|
32
|
+
{
|
|
33
|
+
values: [
|
|
34
|
+
[HeaderContext, null],
|
|
35
|
+
[HeadingContext, null]
|
|
36
|
+
],
|
|
37
|
+
children: /* @__PURE__ */ jsxs(_Header, { className: classNames, ...otherProps, children: [
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
_Button,
|
|
40
|
+
{
|
|
41
|
+
"aria-label": stringFormatter.format("Calendar.previousButtonAriaLabel"),
|
|
42
|
+
className: CalendarHeader_module_default["hop-CalendarHeader-button"],
|
|
43
|
+
slot: "previous",
|
|
44
|
+
variant: "ghost-secondary",
|
|
45
|
+
children: /* @__PURE__ */ jsx(AngleLeftIcon, {})
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ jsx(_Heading, { className: CalendarHeader_module_default["hop-CalendarHeader-heading"] }),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
_Button,
|
|
51
|
+
{
|
|
52
|
+
"aria-label": stringFormatter.format("Calendar.nextButtonAriaLabel"),
|
|
53
|
+
className: CalendarHeader_module_default["hop-CalendarHeader-button"],
|
|
54
|
+
slot: "next",
|
|
55
|
+
variant: "ghost-secondary",
|
|
56
|
+
children: /* @__PURE__ */ jsx(AngleRightIcon, {})
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] })
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { CalendarHeader, GlobalCalendarHeaderCssSelector };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _Tooltip } from './chunk-ZKMYFUFY.js';
|
|
2
1
|
import { TooltipTrigger } from './chunk-QGFIYZVC.js';
|
|
2
|
+
import { _Tooltip } from './chunk-4372AEHL.js';
|
|
3
3
|
import { AvatarGroupContext } from './chunk-G7F2YUBR.js';
|
|
4
4
|
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
8
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./AvatarGroup.module.css#css-module
|
|
15
|
-
var AvatarGroup_module_default = { "hop-AvatarGroup": "AvatarGroup-module__hop-
|
|
15
|
+
var AvatarGroup_module_default = { "hop-AvatarGroup": "AvatarGroup-module__hop-AvatarGroup___6szMV", "hop-AvatarGroup--wrap": "AvatarGroup-module__hop-AvatarGroup--wrap___r9UJg", "hop-AvatarGroup--xs": "AvatarGroup-module__hop-AvatarGroup--xs___dnfzZ", "hop-AvatarGroup--sm": "AvatarGroup-module__hop-AvatarGroup--sm___WIyMY", "hop-AvatarGroup--md": "AvatarGroup-module__hop-AvatarGroup--md___evZ2l", "hop-AvatarGroup--lg": "AvatarGroup-module__hop-AvatarGroup--lg___ahKoO", "hop-AvatarGroup--xl": "AvatarGroup-module__hop-AvatarGroup--xl___AAU5u", "hop-AvatarGroup--2xl": "AvatarGroup-module__hop-AvatarGroup--2xl___A3w1s", "hop-AvatarGroup__avatar": "AvatarGroup-module__hop-AvatarGroup__avatar___AxmQZ", "hop-AvatarGroup__label": "AvatarGroup-module__hop-AvatarGroup__label___EdXOK", "hop-AvatarGroup__hiddenAvatar": "AvatarGroup-module__hop-AvatarGroup__hiddenAvatar___1jNbd", "hop-AvatarGroup--start": "AvatarGroup-module__hop-AvatarGroup--start___GGz-z", "hop-AvatarGroup--end": "AvatarGroup-module__hop-AvatarGroup--end___fMs18", "hop-AvatarGroup--center": "AvatarGroup-module__hop-AvatarGroup--center___tan2n" };
|
|
16
16
|
var GlobalAvatarGroupCssSelector = "hop-AvatarGroup";
|
|
17
17
|
function AvatarGroup(props, ref) {
|
|
18
18
|
var _a, _b, _c, _d;
|
|
@@ -19,7 +19,8 @@ var require_en_US = __commonJS({
|
|
|
19
19
|
"Select.placeholder": `Select an item`,
|
|
20
20
|
"Calendar.previousButtonAriaLabel": `Previous month`,
|
|
21
21
|
"Calendar.nextButtonAriaLabel": `Next month`,
|
|
22
|
-
"Calendar.invalidSelection": `Invalid date selection
|
|
22
|
+
"Calendar.invalidSelection": `Invalid date selection`,
|
|
23
|
+
"DatePicker.openCalendarButtonAriaLabel": `Open calendar`
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
});
|
|
@@ -42,7 +43,8 @@ var require_fr_CA = __commonJS({
|
|
|
42
43
|
"Select.placeholder": `S\xE9lectionner un \xE9l\xE9ment`,
|
|
43
44
|
"Calendar.previousButtonAriaLabel": `Mois pr\xE9c\xE9dent`,
|
|
44
45
|
"Calendar.nextButtonAriaLabel": `Mois suivant`,
|
|
45
|
-
"Calendar.invalidSelection": `S\xE9lection de date invalide
|
|
46
|
+
"Calendar.invalidSelection": `S\xE9lection de date invalide`,
|
|
47
|
+
"DatePicker.openCalendarButtonAriaLabel": `Ouvrir le calendrier`
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
2
2
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
3
|
import { useResponsiveValue } from '@hopper-ui/styled-system';
|
|
4
4
|
import clsx from 'clsx';
|
|
@@ -6,7 +6,7 @@ import { forwardRef } from 'react';
|
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
// css-module:./Paragraph.module.css#css-module
|
|
9
|
-
var Paragraph_module_default = { "hop-Paragraph": "Paragraph-module__hop-
|
|
9
|
+
var Paragraph_module_default = { "hop-Paragraph": "Paragraph-module__hop-Paragraph___y-4O8", "hop-Paragraph--xs": "Paragraph-module__hop-Paragraph--xs___ZaH4f", "hop-Paragraph--sm": "Paragraph-module__hop-Paragraph--sm___1P066", "hop-Paragraph--md": "Paragraph-module__hop-Paragraph--md___6kKS3", "hop-Paragraph--lg": "Paragraph-module__hop-Paragraph--lg___KcBJs", "hop-Paragraph--xl": "Paragraph-module__hop-Paragraph--xl___O6zNl", "hop-Paragraph--2xl": "Paragraph-module__hop-Paragraph--2xl___cIzvg", "hop-Paragraph--inherit": "Paragraph-module__hop-Paragraph--inherit___bNGwU" };
|
|
10
10
|
var GlobalParagraphCssSelector = "hop-Paragraph";
|
|
11
11
|
function Paragraph(props, ref) {
|
|
12
12
|
const { size: sizeProp, className, children, ...otherProps } = props;
|
|
@@ -5,7 +5,7 @@ import { MenuSection as MenuSection$1 } from 'react-aria-components';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
// css-module:./MenuSection.module.css#css-module
|
|
8
|
-
var MenuSection_module_default = { "hop-MenuSection": "MenuSection-module__hop-
|
|
8
|
+
var MenuSection_module_default = { "hop-MenuSection": "MenuSection-module__hop-MenuSection___k8GoO" };
|
|
9
9
|
var GlobalMenuSectionCssSelector = "hop-MenuSection";
|
|
10
10
|
function MenuSection(props) {
|
|
11
11
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
@@ -7,7 +7,7 @@ import { useContextProps, TabPanel as TabPanel$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./TabPanel.module.css#css-module
|
|
10
|
-
var TabPanel_module_default = { "hop-TabPanel": "TabPanel-module__hop-
|
|
10
|
+
var TabPanel_module_default = { "hop-TabPanel": "TabPanel-module__hop-TabPanel___ir8Vg" };
|
|
11
11
|
var GlobalTabPanelCssSelector = "hop-TabPanel";
|
|
12
12
|
function TabPanel(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, TabPanelContext);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
1
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
2
|
+
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
3
3
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
4
|
-
import { FieldLabel } from './chunk-
|
|
5
|
-
import { _HelperMessage } from './chunk-
|
|
6
|
-
import { _ErrorMessage } from './chunk-
|
|
7
|
-
import { useFormProps } from './chunk-
|
|
4
|
+
import { FieldLabel } from './chunk-5KK7RTEA.js';
|
|
5
|
+
import { _HelperMessage } from './chunk-RPULORS7.js';
|
|
6
|
+
import { _ErrorMessage } from './chunk-E6IA2QFO.js';
|
|
7
|
+
import { useFormProps } from './chunk-TCHK6AN3.js';
|
|
8
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./RadioGroup.module.css#css-module
|
|
18
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
18
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___ycgxl", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___PiMjy", "hop-RadioGroup--fluid": "RadioGroup-module__hop-RadioGroup--fluid___C3iDq", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___RQBVC", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___6mZkD", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___sfdKy", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___Led32", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___V4Y2q", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___Vz1pV", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___Uvk0H" };
|
|
19
19
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
20
20
|
function RadioGroup(props, ref) {
|
|
21
21
|
var _a, _b, _c, _d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuItemContext } from './chunk-OGC6BUEX.js';
|
|
2
2
|
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
3
3
|
import { IconListContext } from './chunk-GBWXEK6N.js';
|
|
4
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
5
5
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, MenuItem as MenuItem$1, DEFAULT_SLOT } from 'react-ari
|
|
|
13
13
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./MenuItem.module.css#css-module
|
|
16
|
-
var MenuItem_module_default = { "hop-MenuItem": "MenuItem-module__hop-
|
|
16
|
+
var MenuItem_module_default = { "hop-MenuItem": "MenuItem-module__hop-MenuItem___0xUKF", "hop-MenuItem__text": "MenuItem-module__hop-MenuItem__text___L0tXp", "hop-MenuItem--invalid": "MenuItem-module__hop-MenuItem--invalid___YFGuX", "hop-MenuItem__avatar": "MenuItem-module__hop-MenuItem__avatar___rupgi", "hop-MenuItem__icon": "MenuItem-module__hop-MenuItem__icon___Y9VDN", "hop-MenuItem__checkmark": "MenuItem-module__hop-MenuItem__checkmark___0m2fl", "hop-MenuItem__description": "MenuItem-module__hop-MenuItem__description___Vbz4E", "hop-MenuItem__end-icon": "MenuItem-module__hop-MenuItem__end-icon___xysPH", "hop-MenuItem__arrow": "MenuItem-module__hop-MenuItem__arrow___unCoR", "hop-MenuItem--xs": "MenuItem-module__hop-MenuItem--xs___eu84N", "hop-MenuItem--sm": "MenuItem-module__hop-MenuItem--sm___2ocDO", "hop-MenuItem--md": "MenuItem-module__hop-MenuItem--md___JVChW", "hop-MenuItem--lg": "MenuItem-module__hop-MenuItem--lg___pud0r" };
|
|
17
17
|
var GlobalMenuItemCssSelector = "hop-MenuItem";
|
|
18
18
|
var MenuItem = (props, ref) => {
|
|
19
19
|
[props, ref] = useContextProps(props, ref, MenuItemContext);
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Label.module.css#css-module
|
|
10
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
10
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___fmxT3" };
|
|
11
11
|
var GlobalLabelCssSelector = "hop-Label";
|
|
12
12
|
function Label(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useButtonProps } from './chunk-
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
1
|
+
import { useButtonProps } from './chunk-YBJI4QLB.js';
|
|
2
|
+
import { _Spinner } from './chunk-P6UZVUF7.js';
|
|
3
3
|
import { IconListContext } from './chunk-GBWXEK6N.js';
|
|
4
4
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { useLocalizedString } from './chunk-CPGP7ETX.js';
|
|
6
6
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
7
|
-
import { ensureTextWrapper } from './chunk-
|
|
7
|
+
import { ensureTextWrapper } from './chunk-4WJKLLPU.js';
|
|
8
8
|
import { ClearProviders } from './chunk-PQSMCDAM.js';
|
|
9
9
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
10
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Button as Button$1, DEFAULT_SLOT }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./Button.module.css#css-module
|
|
21
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
21
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___B42ry", "hop-Button--fluid": "Button-module__hop-Button--fluid___6gF6C", "hop-Button--xs": "Button-module__hop-Button--xs___vXmG6", "hop-Button--sm": "Button-module__hop-Button--sm___iF1oJ", "hop-Button--md": "Button-module__hop-Button--md___o5Km1", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___C22Pk", "hop-Button--primary": "Button-module__hop-Button--primary___YPfcV", "hop-Button--secondary": "Button-module__hop-Button--secondary___RsIda", "hop-Button--upsell": "Button-module__hop-Button--upsell___jNjLN", "hop-Button--danger": "Button-module__hop-Button--danger___xlPw3", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___ssCSV", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___Mt0GJ", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___QuwLo", "hop-Button--loading": "Button-module__hop-Button--loading___-JJIc", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___2Ob1s", "hop-Button__icon": "Button-module__hop-Button__icon___mmyYT", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___Z8l7S", "hop-Button__text": "Button-module__hop-Button__text___C09mc", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___F9Iej", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___jFFbD" };
|
|
22
22
|
var GlobalButtonCssSelector = "hop-Button";
|
|
23
23
|
var ButtonToIconSizeAdapter = {
|
|
24
24
|
xs: "sm",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
-
import { useFormProps } from './chunk-
|
|
2
|
+
import { useFormProps } from './chunk-TCHK6AN3.js';
|
|
3
3
|
import { IconListContext } from './chunk-GBWXEK6N.js';
|
|
4
|
-
import { ensureTextWrapper } from './chunk-
|
|
4
|
+
import { ensureTextWrapper } from './chunk-4WJKLLPU.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-PQSMCDAM.js';
|
|
6
6
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
17
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___w0zeR", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___htvhJ", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___sq5zW", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___huJLb", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___4NIVN", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___65OmF", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___bfbwT", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___9P0iX" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorMessageContext } from './chunk-FV74YT2D.js';
|
|
2
2
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { WarningIcon } from '@hopper-ui/icons';
|
|
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps, composeRenderProps } from 'react-ar
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ErrorMessage.module.css#css-module
|
|
13
|
-
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-
|
|
13
|
+
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___2idTy", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___99z-W" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
3
3
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
4
|
-
import { useFormProps } from './chunk-
|
|
5
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { useFormProps } from './chunk-TCHK6AN3.js';
|
|
5
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
6
6
|
import { ClearContainerSlots } from './chunk-PQSMCDAM.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
15
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./CheckboxField.module.css#css-module
|
|
18
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
18
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___A-2Pu", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___Des5s", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___5pPRe", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___oYWru", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___Bqk5M" };
|
|
19
19
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
20
20
|
var CheckboxToDescriptionSizeAdapter = {
|
|
21
21
|
sm: "xs",
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___E4vwP", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___iq-4l" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-ADJPNO63.js';
|
|
3
3
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloseButtonContext } from './chunk-RBWFFWIG.js';
|
|
2
|
-
import { _Button } from './chunk-
|
|
3
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { _Button } from './chunk-DONUBZNH.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-CPGP7ETX.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
6
6
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./CloseButton.module.css#css-module
|
|
13
|
-
var CloseButton_module_default = { "hop-CloseButton": "CloseButton-module__hop-
|
|
13
|
+
var CloseButton_module_default = { "hop-CloseButton": "CloseButton-module__hop-CloseButton___b5-J2" };
|
|
14
14
|
var GlobalCloseButtonCssSelector = "hop-CloseButton";
|
|
15
15
|
function CloseButton(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, CloseButtonContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
2
|
import { TabContext, InternalTabsContext } from './chunk-K2FJKV3T.js';
|
|
3
3
|
import { BadgeContext } from './chunk-ZSFJVMJN.js';
|
|
4
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { _Text } from './chunk-YSBWWOQO.js';
|
|
5
5
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
6
6
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
7
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, Tab as Tab$1, Provider } from 'react-aria-components';
|
|
|
12
12
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Tab.module.css#css-module
|
|
15
|
-
var Tab_module_default = { "hop-Tab": "Tab-module__hop-
|
|
15
|
+
var Tab_module_default = { "hop-Tab": "Tab-module__hop-Tab___lKmLL", "hop-Tab--fluid": "Tab-module__hop-Tab--fluid___TEGn0", "hop-Tab--md": "Tab-module__hop-Tab--md___-km-z", "hop-Tab__icon": "Tab-module__hop-Tab__icon___eVLjs", "hop-Tab__text": "Tab-module__hop-Tab__text___-6dgt", "hop-Tab__badge": "Tab-module__hop-Tab__badge___AIgDx", "hop-Tab__tag": "Tab-module__hop-Tab__tag___VfPxP", "hop-Tab__selector": "Tab-module__hop-Tab__selector___-jYRP", "hop-Tab__selector--inner": "Tab-module__hop-Tab__selector--inner___IptF6", "hop-Tab__selector--disabled": "Tab-module__hop-Tab__selector--disabled___43y2j" };
|
|
16
16
|
var GlobalTabCssSelector = "hop-Tab";
|
|
17
17
|
function Tab(props, ref) {
|
|
18
18
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, composeRenderProps, Popover } from 'react-aria-compone
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./PopoverBase.module.css#css-module
|
|
10
|
-
var PopoverBase_module_default = { "hop-PopoverBase": "PopoverBase-module__hop-
|
|
10
|
+
var PopoverBase_module_default = { "hop-PopoverBase": "PopoverBase-module__hop-PopoverBase___xIgGr" };
|
|
11
11
|
var GlobalPopoverBaseCssSelector = "hop-PopoverBase";
|
|
12
12
|
function PopoverBase(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___UfCYK", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___wKbnc" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { FieldLabel } from './chunk-5KK7RTEA.js';
|
|
2
|
+
import { _HelperMessage } from './chunk-RPULORS7.js';
|
|
3
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
1
4
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
5
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
6
|
-
import { _ErrorMessage } from './chunk-OMWIVLGM.js';
|
|
7
|
-
import { useFormProps } from './chunk-LYAD5ZOS.js';
|
|
6
|
+
import { _ErrorMessage } from './chunk-E6IA2QFO.js';
|
|
7
|
+
import { useFormProps } from './chunk-TCHK6AN3.js';
|
|
8
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
|
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./CheckboxGroup.module.css#css-module
|
|
18
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-
|
|
18
|
+
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___Yvg4w", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___sHc4h", "hop-CheckboxGroup--fluid": "CheckboxGroup-module__hop-CheckboxGroup--fluid___mH-db", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___hFT63", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___ihCF9", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___iICNX", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___JwjfR", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___Zyzg-", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___Lk0Fl", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___FkMMq" };
|
|
19
19
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
20
20
|
function CheckboxGroup(props, ref) {
|
|
21
21
|
var _a, _b, _c, _d;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { CalendarCell } from 'react-aria-components';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// css-module:./RangeCalendarCell.module.css#css-module
|
|
7
|
+
var RangeCalendarCell_module_default = { "hop-RangeCalendarCell": "RangeCalendarCell-module__hop-RangeCalendarCell___zD7vg CalendarCell-module__hop-CalendarCell___2BNSF" };
|
|
8
|
+
var GlobalRangeCalendarCellCssSelector = "hop-RangeCalendarCell";
|
|
9
|
+
var RangeCalendarCell = (props) => {
|
|
10
|
+
const classNames = clsx(
|
|
11
|
+
GlobalRangeCalendarCellCssSelector,
|
|
12
|
+
cssModule(
|
|
13
|
+
RangeCalendarCell_module_default,
|
|
14
|
+
GlobalRangeCalendarCellCssSelector
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
CalendarCell,
|
|
19
|
+
{
|
|
20
|
+
className: classNames,
|
|
21
|
+
...props,
|
|
22
|
+
children: ({ formattedDate }) => /* @__PURE__ */ jsx("span", { children: formattedDate })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { GlobalRangeCalendarCellCssSelector, RangeCalendarCell };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IllustrationContext } from './chunk-OL24RVDF.js';
|
|
2
1
|
import { ImageContext } from './chunk-JAR7CXVS.js';
|
|
2
|
+
import { IllustrationContext } from './chunk-OL24RVDF.js';
|
|
3
3
|
import { ClearProviders } from './chunk-PQSMCDAM.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Provider } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Illustration.module.css#css-module
|
|
12
|
-
var Illustration_module_default = { "hop-Illustration": "Illustration-module__hop-
|
|
12
|
+
var Illustration_module_default = { "hop-Illustration": "Illustration-module__hop-Illustration___SUReV", "hop-Illustration__image": "Illustration-module__hop-Illustration__image___eIhnO", "hop-Illustration--horizontal": "Illustration-module__hop-Illustration--horizontal___oMowS", "hop-Illustration--vertical": "Illustration-module__hop-Illustration--vertical___T5vUb", "hop-Illustration--rounded": "Illustration-module__hop-Illustration--rounded___mi4vu" };
|
|
13
13
|
var GlobalIllustrationCssSelector = "hop-Illustration";
|
|
14
14
|
function Illustration(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, IllustrationContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomModalContext } from './chunk-AJKN2ALX.js';
|
|
2
1
|
import { ModalTrigger } from './chunk-YVZGV7LZ.js';
|
|
3
|
-
import {
|
|
2
|
+
import { CustomModalContext } from './chunk-AJKN2ALX.js';
|
|
3
|
+
import { _BaseModal } from './chunk-OQGUY2WF.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Dialog, OverlayTriggerStateContext
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./CustomModal.module.css#css-module
|
|
12
|
-
var CustomModal_module_default = { "hop-CustomModal": "CustomModal-module__hop-
|
|
12
|
+
var CustomModal_module_default = { "hop-CustomModal": "CustomModal-module__hop-CustomModal___CAtS-" };
|
|
13
13
|
var GlobalCustomModalCssSelector = "hop-CustomModal";
|
|
14
14
|
var CustomModal = (props, ref) => {
|
|
15
15
|
var _a;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CalendarCell } from './chunk-ZJN4N4I6.js';
|
|
2
|
+
import { RangeCalendarCell } from './chunk-KC5RDV27.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
+
import { filterDOMProps } from '@react-aria/utils';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { useContext, useCallback, cloneElement } from 'react';
|
|
7
|
+
import { CalendarStateContext, RangeCalendarStateContext, CalendarGrid as CalendarGrid$1, CalendarGridHeader, CalendarHeaderCell, CalendarGridBody as CalendarGridBody$1 } from 'react-aria-components';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./CalendarGrid.module.css#css-module
|
|
11
|
+
var CalendarGrid_module_default = { "hop-CalendarGrid": "CalendarGrid-module__hop-CalendarGrid___WkTgX", "hop-CalendarGrid__body": "CalendarGrid-module__hop-CalendarGrid__body___x3Rp-", "hop-CalendarGrid__header-cell": "CalendarGrid-module__hop-CalendarGrid__header-cell___aaIhf" };
|
|
12
|
+
var GlobalCalendarGridCssSelector = "hop-CalendarGrid";
|
|
13
|
+
var CalendarGrid = (props) => {
|
|
14
|
+
const { weekdayStyle = "short", isFixedWeeks } = props;
|
|
15
|
+
const calendarState = useContext(CalendarStateContext);
|
|
16
|
+
const rangeCalendarState = useContext(RangeCalendarStateContext);
|
|
17
|
+
const state = calendarState != null ? calendarState : rangeCalendarState;
|
|
18
|
+
let startDate = state.visibleRange.start;
|
|
19
|
+
if (props.offset) {
|
|
20
|
+
startDate = startDate.add(props.offset);
|
|
21
|
+
}
|
|
22
|
+
const isRangeCalendar = !!rangeCalendarState;
|
|
23
|
+
const classNames = clsx(
|
|
24
|
+
GlobalCalendarGridCssSelector,
|
|
25
|
+
cssModule(
|
|
26
|
+
CalendarGrid_module_default,
|
|
27
|
+
GlobalCalendarGridCssSelector
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
const formatMonthName = useCallback((day) => {
|
|
31
|
+
if (weekdayStyle === "short") {
|
|
32
|
+
return day.slice(0, -1);
|
|
33
|
+
}
|
|
34
|
+
return day;
|
|
35
|
+
}, [weekdayStyle]);
|
|
36
|
+
const renderDate = (date) => isRangeCalendar ? /* @__PURE__ */ jsx(RangeCalendarCell, { date }) : /* @__PURE__ */ jsx(CalendarCell, { date });
|
|
37
|
+
return /* @__PURE__ */ jsxs(
|
|
38
|
+
CalendarGrid$1,
|
|
39
|
+
{
|
|
40
|
+
weekdayStyle,
|
|
41
|
+
className: classNames,
|
|
42
|
+
...props,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, { className: CalendarGrid_module_default["hop-CalendarGrid__header-cell"], children: formatMonthName(day) }) }),
|
|
45
|
+
isFixedWeeks ? /* @__PURE__ */ jsx(CalendarGridBody, { startDate, className: CalendarGrid_module_default["hop-CalendarGrid__body"], children: renderDate }) : /* @__PURE__ */ jsx(CalendarGridBody$1, { className: CalendarGrid_module_default["hop-CalendarGrid__body"], children: renderDate })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
var FIXED_WEEKS_IN_MONTH = 6;
|
|
51
|
+
function CalendarGridBody(props) {
|
|
52
|
+
const { children, style, className, startDate } = props;
|
|
53
|
+
const calendarState = useContext(CalendarStateContext);
|
|
54
|
+
const rangeCalendarState = useContext(RangeCalendarStateContext);
|
|
55
|
+
const state = calendarState != null ? calendarState : rangeCalendarState;
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
"tbody",
|
|
58
|
+
{
|
|
59
|
+
...filterDOMProps(props),
|
|
60
|
+
style,
|
|
61
|
+
className,
|
|
62
|
+
children: [...new Array(FIXED_WEEKS_IN_MONTH).keys()].map((weekIndex) => /* @__PURE__ */ jsx("tr", { children: state.getDatesInWeek(weekIndex, startDate).map((date, i) => date ? cloneElement(children(date), { key: i }) : /* @__PURE__ */ jsx("td", {}, i)) }, weekIndex))
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { CalendarGrid, GlobalCalendarGridCssSelector };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
2
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { DateInput as DateInput$1, DateSegment } from 'react-aria-components';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
// css-module:./DateInput.module.css#css-module
|
|
9
|
+
var DateInput_module_default = { "hop-DateInput": "DateInput-module__hop-DateInput___Tuy9h Input-module__hop-Input___MrKjm", "hop-DateInput--sm": "DateInput-module__hop-DateInput--sm___rC1Bq Input-module__hop-Input--sm___r4bfW", "hop-DateSegment": "DateInput-module__hop-DateSegment___4qvXb", "hop-DateInput--disabled": "DateInput-module__hop-DateInput--disabled___Oi4-i" };
|
|
10
|
+
var GlobalDateInputCssSelector = "hop-DateInput";
|
|
11
|
+
var DateInput = (props, ref) => {
|
|
12
|
+
var _a;
|
|
13
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
14
|
+
const {
|
|
15
|
+
size: sizeProp,
|
|
16
|
+
style,
|
|
17
|
+
className,
|
|
18
|
+
isDisabled,
|
|
19
|
+
...otherProps
|
|
20
|
+
} = ownProps;
|
|
21
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
22
|
+
const classNames = clsx(
|
|
23
|
+
GlobalDateInputCssSelector,
|
|
24
|
+
cssModule(
|
|
25
|
+
DateInput_module_default,
|
|
26
|
+
GlobalDateInputCssSelector,
|
|
27
|
+
size,
|
|
28
|
+
isDisabled && "disabled"
|
|
29
|
+
),
|
|
30
|
+
stylingProps.className,
|
|
31
|
+
className
|
|
32
|
+
);
|
|
33
|
+
const mergedStyles = {
|
|
34
|
+
...style,
|
|
35
|
+
...stylingProps.style
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ jsx(DateInput$1, { ...otherProps, ref, className: classNames, style: mergedStyles, children: (segment) => /* @__PURE__ */ jsx(
|
|
38
|
+
DateSegment,
|
|
39
|
+
{
|
|
40
|
+
className: cssModule(
|
|
41
|
+
DateInput_module_default,
|
|
42
|
+
"hop-DateSegment"
|
|
43
|
+
),
|
|
44
|
+
segment
|
|
45
|
+
}
|
|
46
|
+
) });
|
|
47
|
+
};
|
|
48
|
+
var _DateInput = forwardRef(DateInput);
|
|
49
|
+
_DateInput.displayName = "DateInput";
|
|
50
|
+
|
|
51
|
+
export { GlobalDateInputCssSelector, _DateInput };
|