linear-react-components-ui 1.1.26-beta.2 → 1.1.26-beta.21
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/lib/@types/ColorStyles.d.ts +1 -0
- package/lib/@types/Position.d.ts +1 -0
- package/lib/_virtual/_commonjsHelpers.js +9 -0
- package/lib/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/_virtual/compiler-runtime.js +6 -0
- package/lib/_virtual/compiler-runtime.js.map +1 -0
- package/lib/_virtual/compiler-runtime2.js +5 -0
- package/lib/_virtual/compiler-runtime2.js.map +1 -0
- package/lib/_virtual/index.js +8 -0
- package/lib/_virtual/index.js.map +1 -0
- package/lib/_virtual/index2.js +5 -0
- package/lib/_virtual/index2.js.map +1 -0
- package/lib/_virtual/index3.js +5 -0
- package/lib/_virtual/index3.js.map +1 -0
- package/lib/_virtual/lodash.js +9 -0
- package/lib/_virtual/lodash.js.map +1 -0
- package/lib/_virtual/lodash2.js +5 -0
- package/lib/_virtual/lodash2.js.map +1 -0
- package/lib/_virtual/memoize.js +8 -0
- package/lib/_virtual/memoize.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.development.js +5 -0
- package/lib/_virtual/react-compiler-runtime.development.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.production.js +5 -0
- package/lib/_virtual/react-compiler-runtime.production.js.map +1 -0
- package/lib/_virtual/react-is.development.js +5 -0
- package/lib/_virtual/react-is.development.js.map +1 -0
- package/lib/_virtual/react-is.production.min.js +5 -0
- package/lib/_virtual/react-is.production.min.js.map +1 -0
- package/lib/alerts/AlertContainer.js +9 -2
- package/lib/alerts/AlertContainer.js.map +1 -0
- package/lib/alerts/AlertProvider.js +28 -21
- package/lib/alerts/AlertProvider.js.map +1 -0
- package/lib/alerts/BaseAlert.js +13 -9
- package/lib/alerts/BaseAlert.js.map +1 -0
- package/lib/alerts/Message.js +92 -64
- package/lib/alerts/Message.js.map +1 -0
- package/lib/alerts/helpers.js +1 -0
- package/lib/alerts/helpers.js.map +1 -0
- package/lib/alerts/index.d.ts +3 -3
- package/lib/alerts/index.js +3 -1
- package/lib/alerts/index.js.map +1 -0
- package/lib/alerts/withAlert.d.ts +2 -2
- package/lib/alerts/withAlert.js +12 -7
- package/lib/alerts/withAlert.js.map +1 -0
- package/lib/assets/styles/alerts.css +1 -0
- package/lib/assets/styles/badge.css +1 -0
- package/lib/assets/{button.css → styles/button.css} +1 -1
- package/lib/assets/styles/calendar.css +1 -0
- package/lib/assets/styles/checkbox.css +1 -0
- package/lib/assets/styles/checkbox2.css +1 -0
- package/lib/assets/styles/colorpicker.css +1 -0
- package/lib/assets/styles/datepicker.css +1 -0
- package/lib/assets/styles/datepicker2.css +1 -0
- package/lib/assets/styles/dialog.css +1 -0
- package/lib/assets/styles/drawers.css +1 -0
- package/lib/assets/styles/dropdown.css +1 -0
- package/lib/assets/{index12.css → styles/fieldset.css} +1 -1
- package/lib/assets/styles/file.css +1 -0
- package/lib/assets/styles/filefield.css +1 -0
- package/lib/assets/styles/floatMenu.css +1 -0
- package/lib/assets/styles/gridlayout.css +1 -0
- package/lib/assets/{InputTextBase.css → styles/input.css} +1 -1
- package/lib/assets/{label.css → styles/label.css} +1 -1
- package/lib/assets/styles/list.css +1 -0
- package/lib/assets/styles/multiSelect.css +1 -0
- package/lib/assets/styles/numberfield.css +1 -0
- package/lib/assets/styles/panel.css +1 -0
- package/lib/assets/styles/periodpicker.css +1 -0
- package/lib/assets/styles/progress.css +1 -0
- package/lib/assets/{radio.css → styles/radio.css} +1 -1
- package/lib/assets/styles/radiofield.css +1 -0
- package/lib/assets/styles/select.css +1 -0
- package/lib/assets/styles/selectfield.css +1 -0
- package/lib/assets/styles/shortcuts.css +1 -0
- package/lib/assets/styles/sidenav.css +1 -0
- package/lib/assets/styles/skeleton.css +1 -0
- package/lib/assets/styles/slot.css +1 -0
- package/lib/assets/styles/table.css +1 -0
- package/lib/assets/styles/tabs.css +1 -0
- package/lib/assets/styles/textfield.css +1 -0
- package/lib/assets/styles/toolbar.css +1 -0
- package/lib/assets/styles/tooltip.css +1 -0
- package/lib/assets/styles/treetable.css +1 -0
- package/lib/assets/styles/treeview.css +1 -0
- package/lib/assets/styles/uitour.css +1 -0
- package/lib/assets/styles/wizard.css +1 -0
- package/lib/avatar/index.js +48 -68
- package/lib/avatar/index.js.map +1 -0
- package/lib/badge/index.js +27 -23
- package/lib/badge/index.js.map +1 -0
- package/lib/buttons/ActivateButton.js +10 -4
- package/lib/buttons/ActivateButton.js.map +1 -0
- package/lib/buttons/AddButton.js +13 -5
- package/lib/buttons/AddButton.js.map +1 -0
- package/lib/buttons/Button.js +18 -6
- package/lib/buttons/Button.js.map +1 -0
- package/lib/buttons/CancelButton.js +15 -4
- package/lib/buttons/CancelButton.js.map +1 -0
- package/lib/buttons/DangerButton.js +16 -4
- package/lib/buttons/DangerButton.js.map +1 -0
- package/lib/buttons/DefaultButton.js +90 -120
- package/lib/buttons/DefaultButton.js.map +1 -0
- package/lib/buttons/DestroyButton.d.ts +1 -1
- package/lib/buttons/DestroyButton.js +17 -5
- package/lib/buttons/DestroyButton.js.map +1 -0
- package/lib/buttons/EditButton.js +10 -4
- package/lib/buttons/EditButton.js.map +1 -0
- package/lib/buttons/InactivateButton.js +10 -4
- package/lib/buttons/InactivateButton.js.map +1 -0
- package/lib/buttons/InfoButton.js +16 -4
- package/lib/buttons/InfoButton.js.map +1 -0
- package/lib/buttons/PrimaryButton.js +16 -4
- package/lib/buttons/PrimaryButton.js.map +1 -0
- package/lib/buttons/RestoreButton.js +10 -4
- package/lib/buttons/RestoreButton.js.map +1 -0
- package/lib/buttons/SaveButton.js +15 -4
- package/lib/buttons/SaveButton.js.map +1 -0
- package/lib/buttons/SuccessButton.js +15 -3
- package/lib/buttons/SuccessButton.js.map +1 -0
- package/lib/buttons/WarningButton.js +16 -4
- package/lib/buttons/WarningButton.js.map +1 -0
- package/lib/buttons/button_container/index.js +22 -16
- package/lib/buttons/button_container/index.js.map +1 -0
- package/lib/buttons/index.d.ts +1 -1
- package/lib/buttons/index.js +3 -1
- package/lib/buttons/index.js.map +1 -0
- package/lib/buttons/split_button/index.d.ts +2 -2
- package/lib/buttons/split_button/index.js +57 -57
- package/lib/buttons/split_button/index.js.map +1 -0
- package/lib/buttons/types.d.ts +6 -6
- package/lib/calendar/DangerCalendar.d.ts +1 -1
- package/lib/calendar/DangerCalendar.js +14 -4
- package/lib/calendar/DangerCalendar.js.map +1 -0
- package/lib/calendar/InfoCalendar.d.ts +1 -1
- package/lib/calendar/InfoCalendar.js +13 -3
- package/lib/calendar/InfoCalendar.js.map +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +1 -1
- package/lib/calendar/PrimaryCalendar.js +13 -3
- package/lib/calendar/PrimaryCalendar.js.map +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +1 -1
- package/lib/calendar/SuccessCalendar.js +14 -4
- package/lib/calendar/SuccessCalendar.js.map +1 -0
- package/lib/calendar/WarningCalendar.d.ts +1 -1
- package/lib/calendar/WarningCalendar.js +14 -4
- package/lib/calendar/WarningCalendar.js.map +1 -0
- package/lib/calendar/base/helpers.d.ts +1 -2
- package/lib/calendar/base/helpers.js +30 -94
- package/lib/calendar/base/helpers.js.map +1 -0
- package/lib/calendar/base/index.js +167 -102
- package/lib/calendar/base/index.js.map +1 -0
- package/lib/calendar/index.js +1 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/checkbox/index.d.ts +1 -2
- package/lib/checkbox/index.js +97 -27
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/types.d.ts +1 -0
- package/lib/dialog/Alert.js +20 -20
- package/lib/dialog/Alert.js.map +1 -0
- package/lib/dialog/Custom.js +44 -30
- package/lib/dialog/Custom.js.map +1 -0
- package/lib/dialog/Error.js +20 -20
- package/lib/dialog/Error.js.map +1 -0
- package/lib/dialog/Information.js +20 -20
- package/lib/dialog/Information.js.map +1 -0
- package/lib/dialog/Question.js +45 -60
- package/lib/dialog/Question.js.map +1 -0
- package/lib/dialog/Warning.js +20 -20
- package/lib/dialog/Warning.js.map +1 -0
- package/lib/dialog/base/Content.js +14 -4
- package/lib/dialog/base/Content.js.map +1 -0
- package/lib/dialog/base/Footer.js +9 -3
- package/lib/dialog/base/Footer.js.map +1 -0
- package/lib/dialog/base/Header.js +39 -5
- package/lib/dialog/base/Header.js.map +1 -0
- package/lib/dialog/base/index.d.ts +5 -2
- package/lib/dialog/base/index.js +180 -7
- package/lib/dialog/base/index.js.map +1 -0
- package/lib/dialog/base/style.js +10 -0
- package/lib/dialog/base/style.js.map +1 -0
- package/lib/dialog/form/index.d.ts +1 -2
- package/lib/dialog/form/index.js +109 -13
- package/lib/dialog/form/index.js.map +1 -0
- package/lib/dialog/index.js +4 -3
- package/lib/dialog/index.js.map +1 -0
- package/lib/dialog/types.d.ts +10 -5
- package/lib/dialog/wizard/index.d.ts +1 -2
- package/lib/dialog/wizard/index.js +65 -12
- package/lib/dialog/wizard/index.js.map +1 -0
- package/lib/dialog/wizard/progressbar.js +29 -3
- package/lib/dialog/wizard/progressbar.js.map +1 -0
- package/lib/dialog/wizard/step.js +17 -3
- package/lib/dialog/wizard/step.js.map +1 -0
- package/lib/dialog/wizard/useWizard.js +41 -27
- package/lib/dialog/wizard/useWizard.js.map +1 -0
- package/lib/drawer/Content.js +16 -8
- package/lib/drawer/Content.js.map +1 -0
- package/lib/drawer/Drawer.d.ts +1 -2
- package/lib/drawer/Drawer.js +63 -58
- package/lib/drawer/Drawer.js.map +1 -0
- package/lib/drawer/Header.js +54 -40
- package/lib/drawer/Header.js.map +1 -0
- package/lib/drawer/helpers.d.ts +1 -2
- package/lib/drawer/helpers.js +4 -3
- package/lib/drawer/helpers.js.map +1 -0
- package/lib/drawer/index.js +6 -4
- package/lib/drawer/index.js.map +1 -0
- package/lib/drawer/types.d.ts +4 -3
- package/lib/dropdown/Popup.js +19 -16
- package/lib/dropdown/Popup.js.map +1 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +6 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/withDropdown.d.ts +3 -3
- package/lib/dropdown/withDropdown.js +77 -50
- package/lib/dropdown/withDropdown.js.map +1 -0
- package/lib/fieldset/index.js +67 -47
- package/lib/fieldset/index.js.map +1 -0
- package/lib/form/Field.js +107 -62
- package/lib/form/Field.js.map +1 -0
- package/lib/form/FieldArray.js +44 -69
- package/lib/form/FieldArray.js.map +1 -0
- package/lib/form/FieldNumber.js +52 -37
- package/lib/form/FieldNumber.js.map +1 -0
- package/lib/form/FieldPeriod.js +88 -59
- package/lib/form/FieldPeriod.js.map +1 -0
- package/lib/form/helpers.d.ts +2 -3
- package/lib/form/helpers.js +22 -19
- package/lib/form/helpers.js.map +1 -0
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +141 -137
- package/lib/form/index.js.map +1 -0
- package/lib/form/types.d.ts +14 -2
- package/lib/form/withFieldHOC.d.ts +2 -2
- package/lib/form/withFieldHOC.js +59 -48
- package/lib/form/withFieldHOC.js.map +1 -0
- package/lib/form/withFormSecurity.d.ts +3 -3
- package/lib/form/withFormSecurity.js +19 -21
- package/lib/form/withFormSecurity.js.map +1 -0
- package/lib/form2/helpers.d.ts +5 -0
- package/lib/form2/helpers.js +24 -0
- package/lib/form2/helpers.js.map +1 -0
- package/lib/form2/index.d.ts +7 -0
- package/lib/form2/index.js +23 -0
- package/lib/form2/index.js.map +1 -0
- package/lib/form2/types.d.ts +128 -0
- package/lib/form2/useForm/index.d.ts +3 -0
- package/lib/form2/useForm/index.js +117 -0
- package/lib/form2/useForm/index.js.map +1 -0
- package/lib/gridlayout/GridCol.js +22 -20
- package/lib/gridlayout/GridCol.js.map +1 -0
- package/lib/gridlayout/GridRow.js +24 -21
- package/lib/gridlayout/GridRow.js.map +1 -0
- package/lib/gridlayout/index.js +1 -0
- package/lib/gridlayout/index.js.map +1 -0
- package/lib/hint/helpers.js +10 -5
- package/lib/hint/helpers.js.map +1 -0
- package/lib/hint/index.js +29 -25
- package/lib/hint/index.js.map +1 -0
- package/lib/icons/helper.d.ts +20 -0
- package/lib/icons/helper.js +163 -569
- package/lib/icons/helper.js.map +1 -0
- package/lib/icons/index.d.ts +2 -5
- package/lib/icons/index.js +72 -57
- package/lib/icons/index.js.map +1 -0
- package/lib/icons/types.d.ts +2 -6
- package/lib/index.js +24 -25
- package/lib/index.js.map +1 -0
- package/lib/inputs/base/InputTextBase.js +142 -223
- package/lib/inputs/base/InputTextBase.js.map +1 -0
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +8 -5
- package/lib/inputs/base/helpers.js.map +1 -0
- package/lib/inputs/base/types.d.ts +6 -16
- package/lib/inputs/color/index.js +55 -75
- package/lib/inputs/color/index.js.map +1 -0
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.js +16 -16
- package/lib/inputs/date/Dialog.js.map +1 -0
- package/lib/inputs/date/Dropdown.js +17 -14
- package/lib/inputs/date/Dropdown.js.map +1 -0
- package/lib/inputs/date/helpers.d.ts +30 -1
- package/lib/inputs/date/helpers.js +49 -7
- package/lib/inputs/date/helpers.js.map +1 -0
- package/lib/inputs/date/index.js +111 -156
- package/lib/inputs/date/index.js.map +1 -0
- package/lib/inputs/date/types.d.ts +3 -2
- package/lib/inputs/errorMessage/index.d.ts +1 -2
- package/lib/inputs/errorMessage/index.js +23 -13
- package/lib/inputs/errorMessage/index.js.map +1 -0
- package/lib/inputs/file/DefaultFile.js +66 -68
- package/lib/inputs/file/DefaultFile.js.map +1 -0
- package/lib/inputs/file/DragDropFile.js +99 -155
- package/lib/inputs/file/DragDropFile.js.map +1 -0
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -40
- package/lib/inputs/file/File.js.map +1 -0
- package/lib/inputs/file/FileButtonSettings.js +22 -18
- package/lib/inputs/file/FileButtonSettings.js.map +1 -0
- package/lib/inputs/file/helpers.js +1 -0
- package/lib/inputs/file/helpers.js.map +1 -0
- package/lib/inputs/file/index.js +1 -0
- package/lib/inputs/file/index.js.map +1 -0
- package/lib/inputs/index.d.ts +14 -0
- package/lib/inputs/index.js +40 -0
- package/lib/inputs/index.js.map +1 -0
- package/lib/inputs/inputHOC.d.ts +2 -2
- package/lib/inputs/inputHOC.js +39 -21
- package/lib/inputs/inputHOC.js.map +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.js +113 -2620
- package/lib/inputs/mask/BaseMask.js.map +1 -0
- package/lib/inputs/mask/Cnpj.js +43 -36
- package/lib/inputs/mask/Cnpj.js.map +1 -0
- package/lib/inputs/mask/Cpf.js +46 -33
- package/lib/inputs/mask/Cpf.js.map +1 -0
- package/lib/inputs/mask/Phone.js +11 -6
- package/lib/inputs/mask/Phone.js.map +1 -0
- package/lib/inputs/mask/ZipCode.js +10 -4
- package/lib/inputs/mask/ZipCode.js.map +1 -0
- package/lib/inputs/mask/helpers.d.ts +2 -49
- package/lib/inputs/mask/helpers.js +60 -54
- package/lib/inputs/mask/helpers.js.map +1 -0
- package/lib/inputs/mask/index.js +1 -0
- package/lib/inputs/mask/index.js.map +1 -0
- package/lib/inputs/mask/types.d.ts +2 -1
- package/lib/inputs/multiSelect/ActionButtons.js +37 -48
- package/lib/inputs/multiSelect/ActionButtons.js.map +1 -0
- package/lib/inputs/multiSelect/Dropdown.js +96 -133
- package/lib/inputs/multiSelect/Dropdown.js.map +1 -0
- package/lib/inputs/multiSelect/helper.js +5 -7
- package/lib/inputs/multiSelect/helper.js.map +1 -0
- package/lib/inputs/multiSelect/index.js +183 -127
- package/lib/inputs/multiSelect/index.js.map +1 -0
- package/lib/inputs/multiSelect/types.d.ts +3 -1
- package/lib/inputs/number/BaseNumber.js +49 -36
- package/lib/inputs/number/BaseNumber.js.map +1 -0
- package/lib/inputs/number/Currency.js +20 -12
- package/lib/inputs/number/Currency.js.map +1 -0
- package/lib/inputs/number/Decimal.js +10 -4
- package/lib/inputs/number/Decimal.js.map +1 -0
- package/lib/inputs/number/format_number.d.ts +1 -1
- package/lib/inputs/number/format_number.js +5 -5
- package/lib/inputs/number/format_number.js.map +1 -0
- package/lib/inputs/number/index.js +33 -35
- package/lib/inputs/number/index.js.map +1 -0
- package/lib/inputs/number/types.d.ts +3 -3
- package/lib/inputs/period/Dialog.js +17 -16
- package/lib/inputs/period/Dialog.js.map +1 -0
- package/lib/inputs/period/Dropdown.js +16 -15
- package/lib/inputs/period/Dropdown.js.map +1 -0
- package/lib/inputs/period/PeriodList.js +42 -27
- package/lib/inputs/period/PeriodList.js.map +1 -0
- package/lib/inputs/period/helper.js +20 -23
- package/lib/inputs/period/helper.js.map +1 -0
- package/lib/inputs/period/index.js +185 -337
- package/lib/inputs/period/index.js.map +1 -0
- package/lib/inputs/period/types.d.ts +4 -1
- package/lib/inputs/search/index.js +103 -72
- package/lib/inputs/search/index.js.map +1 -0
- package/lib/inputs/select/ActionButtons.js +25 -45
- package/lib/inputs/select/ActionButtons.js.map +1 -0
- package/lib/inputs/select/Dropdown.js +53 -101
- package/lib/inputs/select/Dropdown.js.map +1 -0
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/helper.js.map +1 -0
- package/lib/inputs/select/index.js +25 -26
- package/lib/inputs/select/index.js.map +1 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +25 -19
- package/lib/inputs/select/multiple/Selecteds.js.map +1 -0
- package/lib/inputs/select/multiple/index.js +104 -171
- package/lib/inputs/select/multiple/index.js.map +1 -0
- package/lib/inputs/select/simple/index.js +126 -193
- package/lib/inputs/select/simple/index.js.map +1 -0
- package/lib/inputs/select/types.d.ts +2 -0
- package/lib/inputs/text/index.js +10 -4
- package/lib/inputs/text/index.js.map +1 -0
- package/lib/inputs/text/types.d.ts +1 -4
- package/lib/inputs/textarea/index.js +13 -14
- package/lib/inputs/textarea/index.js.map +1 -0
- package/lib/inputs/types.d.ts +3 -2
- package/lib/inputs2/checkboxfield/index.d.ts +32 -0
- package/lib/inputs2/checkboxfield/index.js +114 -0
- package/lib/inputs2/checkboxfield/index.js.map +1 -0
- package/lib/inputs2/colorfield/index.d.ts +8 -0
- package/lib/inputs2/colorfield/index.js +89 -0
- package/lib/inputs2/colorfield/index.js.map +1 -0
- package/lib/inputs2/date/base/constants.d.ts +4 -0
- package/lib/inputs2/date/base/constants.js +39 -0
- package/lib/inputs2/date/base/constants.js.map +1 -0
- package/lib/inputs2/date/base/index.d.ts +6 -0
- package/lib/inputs2/date/base/index.js +134 -0
- package/lib/inputs2/date/base/index.js.map +1 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/datefield/calendarbox.js +74 -0
- package/lib/inputs2/date/datefield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/datefield/context.d.ts +4 -0
- package/lib/inputs2/date/datefield/context.js +12 -0
- package/lib/inputs2/date/datefield/context.js.map +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +4 -0
- package/lib/inputs2/date/datefield/index.js +317 -0
- package/lib/inputs2/date/datefield/index.js.map +1 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
- package/lib/inputs2/date/datefield/triggers.js +30 -0
- package/lib/inputs2/date/datefield/triggers.js.map +1 -0
- package/lib/inputs2/date/datefield/types.d.ts +61 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +94 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +4 -0
- package/lib/inputs2/date/dateperiodfield/context.js +12 -0
- package/lib/inputs2/date/dateperiodfield/context.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +4 -0
- package/lib/inputs2/date/dateperiodfield/index.js +522 -0
- package/lib/inputs2/date/dateperiodfield/index.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +5 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js +61 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +99 -0
- package/lib/inputs2/date/helpers.d.ts +10 -0
- package/lib/inputs2/date/helpers.js +42 -0
- package/lib/inputs2/date/helpers.js.map +1 -0
- package/lib/inputs2/date/types.d.ts +59 -0
- package/lib/inputs2/date/types.js +5 -0
- package/lib/inputs2/date/types.js.map +1 -0
- package/lib/inputs2/filefield/index.d.ts +11 -0
- package/lib/inputs2/filefield/index.js +120 -0
- package/lib/inputs2/filefield/index.js.map +1 -0
- package/lib/inputs2/index.d.ts +16 -0
- package/lib/inputs2/index.js +33 -0
- package/lib/inputs2/index.js.map +1 -0
- package/lib/inputs2/mask/BaseMask.d.ts +13 -0
- package/lib/inputs2/mask/BaseMask.js +79 -0
- package/lib/inputs2/mask/BaseMask.js.map +1 -0
- package/lib/inputs2/mask/Cnpj.d.ts +8 -0
- package/lib/inputs2/mask/Cnpj.js +54 -0
- package/lib/inputs2/mask/Cnpj.js.map +1 -0
- package/lib/inputs2/mask/Cpf.d.ts +7 -0
- package/lib/inputs2/mask/Cpf.js +54 -0
- package/lib/inputs2/mask/Cpf.js.map +1 -0
- package/lib/inputs2/mask/Phone.d.ts +6 -0
- package/lib/inputs2/mask/Phone.js +22 -0
- package/lib/inputs2/mask/Phone.js.map +1 -0
- package/lib/inputs2/mask/ZipCode.d.ts +3 -0
- package/lib/inputs2/mask/ZipCode.js +20 -0
- package/lib/inputs2/mask/ZipCode.js.map +1 -0
- package/lib/inputs2/mask/helpers.d.ts +2 -0
- package/lib/inputs2/mask/helpers.js +34 -0
- package/lib/inputs2/mask/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/currency.d.ts +3 -0
- package/lib/inputs2/numberfield/currency.js +111 -0
- package/lib/inputs2/numberfield/currency.js.map +1 -0
- package/lib/inputs2/numberfield/decimal.d.ts +3 -0
- package/lib/inputs2/numberfield/decimal.js +103 -0
- package/lib/inputs2/numberfield/decimal.js.map +1 -0
- package/lib/inputs2/numberfield/helpers.d.ts +28 -0
- package/lib/inputs2/numberfield/helpers.js +19 -0
- package/lib/inputs2/numberfield/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/index.d.ts +7 -0
- package/lib/inputs2/numberfield/index.js +100 -0
- package/lib/inputs2/numberfield/index.js.map +1 -0
- package/lib/inputs2/numberfield/types.d.ts +26 -0
- package/lib/inputs2/radiofield/index.d.ts +4 -0
- package/lib/inputs2/radiofield/index.js +114 -0
- package/lib/inputs2/radiofield/index.js.map +1 -0
- package/lib/inputs2/radiofield/types.d.ts +31 -0
- package/lib/inputs2/selectfield/context.d.ts +38 -0
- package/lib/inputs2/selectfield/context.js +12 -0
- package/lib/inputs2/selectfield/context.js.map +1 -0
- package/lib/inputs2/selectfield/helpers.d.ts +5 -0
- package/lib/inputs2/selectfield/helpers.js +17 -0
- package/lib/inputs2/selectfield/helpers.js.map +1 -0
- package/lib/inputs2/selectfield/index.d.ts +8 -0
- package/lib/inputs2/selectfield/index.js +410 -0
- package/lib/inputs2/selectfield/index.js.map +1 -0
- package/lib/inputs2/selectfield/item.d.ts +11 -0
- package/lib/inputs2/selectfield/item.js +57 -0
- package/lib/inputs2/selectfield/item.js.map +1 -0
- package/lib/inputs2/selectfield/listbox.d.ts +7 -0
- package/lib/inputs2/selectfield/listbox.js +73 -0
- package/lib/inputs2/selectfield/listbox.js.map +1 -0
- package/lib/inputs2/selectfield/options.d.ts +8 -0
- package/lib/inputs2/selectfield/options.js +20 -0
- package/lib/inputs2/selectfield/options.js.map +1 -0
- package/lib/inputs2/selectfield/search.d.ts +6 -0
- package/lib/inputs2/selectfield/search.js +58 -0
- package/lib/inputs2/selectfield/search.js.map +1 -0
- package/lib/inputs2/selectfield/selections.d.ts +9 -0
- package/lib/inputs2/selectfield/selections.js +66 -0
- package/lib/inputs2/selectfield/selections.js.map +1 -0
- package/lib/inputs2/selectfield/simple.d.ts +9 -0
- package/lib/inputs2/selectfield/simple.js +24 -0
- package/lib/inputs2/selectfield/simple.js.map +1 -0
- package/lib/inputs2/selectfield/triggers.d.ts +8 -0
- package/lib/inputs2/selectfield/triggers.js +82 -0
- package/lib/inputs2/selectfield/triggers.js.map +1 -0
- package/lib/inputs2/selectfield/types.d.ts +53 -0
- package/lib/inputs2/selectfield/types.js +6 -0
- package/lib/inputs2/selectfield/types.js.map +1 -0
- package/lib/inputs2/slot/index.d.ts +17 -0
- package/lib/inputs2/slot/index.js +50 -0
- package/lib/inputs2/slot/index.js.map +1 -0
- package/lib/inputs2/textareafield/index.d.ts +30 -0
- package/lib/inputs2/textareafield/index.js +136 -0
- package/lib/inputs2/textareafield/index.js.map +1 -0
- package/lib/inputs2/textfield/index.d.ts +30 -0
- package/lib/inputs2/textfield/index.js +109 -0
- package/lib/inputs2/textfield/index.js.map +1 -0
- package/lib/internals/colorStyles.js +1 -0
- package/lib/internals/colorStyles.js.map +1 -0
- package/lib/internals/constants.d.ts +3 -0
- package/lib/internals/constants.js +6 -3
- package/lib/internals/constants.js.map +1 -0
- package/lib/internals/types.d.ts +0 -15
- package/lib/labelMessages/index.js +52 -45
- package/lib/labelMessages/index.js.map +1 -0
- package/lib/labels/DangerLabel.d.ts +1 -1
- package/lib/labels/DangerLabel.js +14 -4
- package/lib/labels/DangerLabel.js.map +1 -0
- package/lib/labels/DefaultLabel.d.ts +2 -5
- package/lib/labels/DefaultLabel.js +61 -39
- package/lib/labels/DefaultLabel.js.map +1 -0
- package/lib/labels/InfoLabel.d.ts +1 -1
- package/lib/labels/InfoLabel.js +14 -4
- package/lib/labels/InfoLabel.js.map +1 -0
- package/lib/labels/PrimaryLabel.d.ts +1 -1
- package/lib/labels/PrimaryLabel.js +14 -4
- package/lib/labels/PrimaryLabel.js.map +1 -0
- package/lib/labels/SuccessLabel.d.ts +1 -1
- package/lib/labels/SuccessLabel.js +14 -4
- package/lib/labels/SuccessLabel.js.map +1 -0
- package/lib/labels/WarningLabel.d.ts +1 -1
- package/lib/labels/WarningLabel.js +14 -4
- package/lib/labels/WarningLabel.js.map +1 -0
- package/lib/labels/index.d.ts +1 -1
- package/lib/labels/index.js +7 -5
- package/lib/labels/index.js.map +1 -0
- package/lib/labels/label_container/index.js +16 -9
- package/lib/labels/label_container/index.js.map +1 -0
- package/lib/labels/types.d.ts +4 -7
- package/lib/list/Header.js +19 -6
- package/lib/list/Header.js.map +1 -0
- package/lib/list/Item.d.ts +2 -5
- package/lib/list/Item.js +149 -11
- package/lib/list/Item.js.map +1 -0
- package/lib/list/Separator.js +9 -3
- package/lib/list/Separator.js.map +1 -0
- package/lib/list/helpers.d.ts +1 -2
- package/lib/list/helpers.js +6 -7
- package/lib/list/helpers.js.map +1 -0
- package/lib/list/index.js +70 -65
- package/lib/list/index.js.map +1 -0
- package/lib/list/types.d.ts +5 -8
- package/lib/menus/float/MenuItem.js +51 -53
- package/lib/menus/float/MenuItem.js.map +1 -0
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/SubMenuContainer.js +78 -0
- package/lib/menus/float/SubMenuContainer.js.map +1 -0
- package/lib/menus/float/helpers.d.ts +1 -2
- package/lib/menus/float/helpers.js +3 -2
- package/lib/menus/float/helpers.js.map +1 -0
- package/lib/menus/float/index.js +41 -88
- package/lib/menus/float/index.js.map +1 -0
- package/lib/menus/index.js +1 -0
- package/lib/menus/index.js.map +1 -0
- package/lib/menus/sidenav/ExpandMenu.js +18 -15
- package/lib/menus/sidenav/ExpandMenu.js.map +1 -0
- package/lib/menus/sidenav/MenuLink.d.ts +2 -5
- package/lib/menus/sidenav/MenuLink.js +29 -14
- package/lib/menus/sidenav/MenuLink.js.map +1 -0
- package/lib/menus/sidenav/NavMenuGroup.js +20 -14
- package/lib/menus/sidenav/NavMenuGroup.js.map +1 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -5
- package/lib/menus/sidenav/NavMenuItem.js +136 -111
- package/lib/menus/sidenav/NavMenuItem.js.map +1 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +37 -20
- package/lib/menus/sidenav/NavSubMenuItem.js.map +1 -0
- package/lib/menus/sidenav/helpers.d.ts +2 -3
- package/lib/menus/sidenav/helpers.js +8 -7
- package/lib/menus/sidenav/helpers.js.map +1 -0
- package/lib/menus/sidenav/index.js +145 -121
- package/lib/menus/sidenav/index.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +22 -17
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +1 -2
- package/lib/menus/sidenav/popup_menu_search/index.js +35 -68
- package/lib/menus/sidenav/popup_menu_search/index.js.map +1 -0
- package/lib/menus/sidenav/types.d.ts +5 -5
- package/lib/noPermission/index.js +15 -9
- package/lib/noPermission/index.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +32 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +49 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input-history.js +31 -0
- package/lib/node_modules/imask/esm/controls/input-history.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input.js +223 -0
- package/lib/node_modules/imask/esm/controls/input.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js +44 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/core/action-details.js +52 -0
- package/lib/node_modules/imask/esm/core/action-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/change-details.js +37 -0
- package/lib/node_modules/imask/esm/core/change-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +43 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/holder.js +7 -0
- package/lib/node_modules/imask/esm/core/holder.js.map +1 -0
- package/lib/node_modules/imask/esm/core/utils.js +68 -0
- package/lib/node_modules/imask/esm/core/utils.js.map +1 -0
- package/lib/node_modules/imask/esm/index.js +51 -0
- package/lib/node_modules/imask/esm/index.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/base.js +253 -0
- package/lib/node_modules/imask/esm/masked/base.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/date.js +118 -0
- package/lib/node_modules/imask/esm/masked/date.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js +223 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/enum.js +70 -0
- package/lib/node_modules/imask/esm/masked/enum.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/factory.js +47 -0
- package/lib/node_modules/imask/esm/masked/factory.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/function.js +24 -0
- package/lib/node_modules/imask/esm/masked/function.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/number.js +213 -0
- package/lib/node_modules/imask/esm/masked/number.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +104 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +101 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern.js +323 -0
- package/lib/node_modules/imask/esm/masked/pattern.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pipe.js +24 -0
- package/lib/node_modules/imask/esm/masked/pipe.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/range.js +79 -0
- package/lib/node_modules/imask/esm/masked/range.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/regexp.js +22 -0
- package/lib/node_modules/imask/esm/masked/regexp.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/repeat.js +105 -0
- package/lib/node_modules/imask/esm/masked/repeat.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js +23 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js +23 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js +13 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js +23 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js +12 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js +18 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js +17 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js +23 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js +12 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_freeGlobal.js +12 -0
- package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js +16 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js +17 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js +22 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js +13 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js +15 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js +14 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js +20 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js +16 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js +16 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js +14 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js +18 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js +13 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js +19 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js +16 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js +15 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js +16 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js +21 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js +15 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js +15 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js +16 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js +12 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_objectToString.js +14 -0
- package/lib/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/node_modules/lodash/_root.js +12 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js +24 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/eq.js +13 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/isFunction.js +19 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js +14 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/lodash.js +3678 -0
- package/lib/node_modules/lodash/lodash.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js +24 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/moment/dist/moment.js +2590 -0
- package/lib/node_modules/moment/dist/moment.js.map +1 -0
- package/lib/node_modules/object-assign/index.js +55 -0
- package/lib/node_modules/object-assign/index.js.map +1 -0
- package/lib/node_modules/prop-types/checkPropTypes.js +55 -0
- package/lib/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/lib/node_modules/prop-types/index.js +18 -0
- package/lib/node_modules/prop-types/index.js.map +1 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/lib/node_modules/prop-types/lib/has.js +8 -0
- package/lib/node_modules/prop-types/lib/has.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +96 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +31 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +24 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
- package/lib/node_modules/react/compiler-runtime.js +11 -0
- package/lib/node_modules/react/compiler-runtime.js.map +1 -0
- package/lib/node_modules/react-imask/esm/hook.js +76 -0
- package/lib/node_modules/react-imask/esm/hook.js.map +1 -0
- package/lib/node_modules/react-imask/esm/input.js +24 -0
- package/lib/node_modules/react-imask/esm/input.js.map +1 -0
- package/lib/node_modules/react-imask/esm/mixin.js +132 -0
- package/lib/node_modules/react-imask/esm/mixin.js.map +1 -0
- package/lib/node_modules/uuid/dist/native.js +5 -0
- package/lib/node_modules/uuid/dist/native.js.map +1 -0
- package/lib/node_modules/uuid/dist/rng.js +14 -0
- package/lib/node_modules/uuid/dist/rng.js.map +1 -0
- package/lib/node_modules/uuid/dist/stringify.js +10 -0
- package/lib/node_modules/uuid/dist/stringify.js.map +1 -0
- package/lib/node_modules/uuid/dist/v1.js +35 -0
- package/lib/node_modules/uuid/dist/v1.js.map +1 -0
- package/lib/node_modules/uuid/dist/v4.js +17 -0
- package/lib/node_modules/uuid/dist/v4.js.map +1 -0
- package/lib/panel/Content.js +51 -38
- package/lib/panel/Content.js.map +1 -0
- package/lib/panel/DangerPanel.js +10 -4
- package/lib/panel/DangerPanel.js.map +1 -0
- package/lib/panel/Default.js +63 -37
- package/lib/panel/Default.js.map +1 -0
- package/lib/panel/Header.js +48 -37
- package/lib/panel/Header.js.map +1 -0
- package/lib/panel/InfoPanel.js +11 -5
- package/lib/panel/InfoPanel.js.map +1 -0
- package/lib/panel/PrimaryPanel.js +10 -4
- package/lib/panel/PrimaryPanel.js.map +1 -0
- package/lib/panel/SuccessPanel.js +11 -5
- package/lib/panel/SuccessPanel.js.map +1 -0
- package/lib/panel/WarningPanel.js +10 -4
- package/lib/panel/WarningPanel.js.map +1 -0
- package/lib/panel/helpers.d.ts +1 -2
- package/lib/panel/helpers.js +10 -6
- package/lib/panel/helpers.js.map +1 -0
- package/lib/panel/index.js +2 -1
- package/lib/panel/index.js.map +1 -0
- package/lib/permissionValidations.js +16 -11
- package/lib/permissionValidations.js.map +1 -0
- package/lib/popover/PopoverText.d.ts +1 -2
- package/lib/popover/PopoverText.js +14 -5
- package/lib/popover/PopoverText.js.map +1 -0
- package/lib/popover/PopoverTitle.js +11 -3
- package/lib/popover/PopoverTitle.js.map +1 -0
- package/lib/popover/index.js +39 -57
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/types.d.ts +1 -0
- package/lib/progress/Bar.js +46 -36
- package/lib/progress/Bar.js.map +1 -0
- package/lib/progress/index.js +25 -18
- package/lib/progress/index.js.map +1 -0
- package/lib/radio/index.d.ts +4 -1
- package/lib/radio/index.js +108 -90
- package/lib/radio/index.js.map +1 -0
- package/lib/shortcuts/index.js +22 -7
- package/lib/shortcuts/index.js.map +1 -0
- package/lib/skeleton/SkeletonContainer.js +17 -6
- package/lib/skeleton/SkeletonContainer.js.map +1 -0
- package/lib/skeleton/index.js +43 -19
- package/lib/skeleton/index.js.map +1 -0
- package/lib/spinner/SpinnerLoading.js +54 -16
- package/lib/spinner/SpinnerLoading.js.map +1 -0
- package/lib/spinner/index.d.ts +2 -0
- package/lib/spinner/index.js +49 -36
- package/lib/spinner/index.js.map +1 -0
- package/lib/spinner/types.d.ts +2 -2
- package/lib/split/Split.js +66 -61
- package/lib/split/Split.js.map +1 -0
- package/lib/split/SplitSide.js +25 -16
- package/lib/split/SplitSide.js.map +1 -0
- package/lib/split/helpers.d.ts +1 -2
- package/lib/split/helpers.js +3 -2
- package/lib/split/helpers.js.map +1 -0
- package/lib/split/index.js +6 -4
- package/lib/split/index.js.map +1 -0
- package/lib/table/Body.js +41 -54
- package/lib/table/Body.js.map +1 -0
- package/lib/table/Header.js +46 -35
- package/lib/table/Header.js.map +1 -0
- package/lib/table/HeaderColumn.js +41 -27
- package/lib/table/HeaderColumn.js.map +1 -0
- package/lib/table/Row.js +48 -48
- package/lib/table/Row.js.map +1 -0
- package/lib/table/RowColumn.js +51 -38
- package/lib/table/RowColumn.js.map +1 -0
- package/lib/table/helpers.d.ts +2 -3
- package/lib/table/helpers.js +8 -5
- package/lib/table/helpers.js.map +1 -0
- package/lib/table/index.js +101 -105
- package/lib/table/index.js.map +1 -0
- package/lib/table/types.d.ts +1 -0
- package/lib/tabs/DropdownTabs.js +70 -76
- package/lib/tabs/DropdownTabs.js.map +1 -0
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +37 -49
- package/lib/tabs/Menu.js.map +1 -0
- package/lib/tabs/MenuTabs.d.ts +1 -2
- package/lib/tabs/MenuTabs.js +69 -86
- package/lib/tabs/MenuTabs.js.map +1 -0
- package/lib/tabs/Panel.js +58 -47
- package/lib/tabs/Panel.js.map +1 -0
- package/lib/tabs/context.d.ts +2 -3
- package/lib/tabs/context.js +45 -46
- package/lib/tabs/context.js.map +1 -0
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +80 -64
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/tabHelpers.d.ts +20 -2
- package/lib/tabs/tabHelpers.js +25 -23
- package/lib/tabs/tabHelpers.js.map +1 -0
- package/lib/tabs/types.d.ts +10 -3
- package/lib/tabs/useTabs.js +1 -0
- package/lib/tabs/useTabs.js.map +1 -0
- package/lib/textContent/index.d.ts +7 -11
- package/lib/textContent/index.js +41 -32
- package/lib/textContent/index.js.map +1 -0
- package/lib/toolbar/ButtonBar.js +64 -59
- package/lib/toolbar/ButtonBar.js.map +1 -0
- package/lib/toolbar/LabelBar.js +48 -39
- package/lib/toolbar/LabelBar.js.map +1 -0
- package/lib/toolbar/Separator.js +9 -3
- package/lib/toolbar/Separator.js.map +1 -0
- package/lib/toolbar/ToolBarGroup.js +15 -3
- package/lib/toolbar/ToolBarGroup.js.map +1 -0
- package/lib/toolbar/helpers.js +1 -0
- package/lib/toolbar/helpers.js.map +1 -0
- package/lib/toolbar/index.js +37 -30
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/tooltip/TooltipContent.d.ts +3 -0
- package/lib/tooltip/TooltipContent.js +40 -0
- package/lib/tooltip/TooltipContent.js.map +1 -0
- package/lib/tooltip/index.d.ts +2 -3
- package/lib/tooltip/index.js +39 -37
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/types.d.ts +25 -3
- package/lib/tooltip/useTooltip.d.ts +27 -0
- package/lib/tooltip/useTooltip.js +96 -0
- package/lib/tooltip/useTooltip.js.map +1 -0
- package/lib/treetable/Body.js +27 -31
- package/lib/treetable/Body.js.map +1 -0
- package/lib/treetable/Header.js +25 -23
- package/lib/treetable/Header.js.map +1 -0
- package/lib/treetable/Row.js +212 -151
- package/lib/treetable/Row.js.map +1 -0
- package/lib/treetable/helpers.d.ts +9 -9
- package/lib/treetable/helpers.js +7 -14
- package/lib/treetable/helpers.js.map +1 -0
- package/lib/treetable/index.js +27 -15
- package/lib/treetable/index.js.map +1 -0
- package/lib/treeview/Header.js +14 -5
- package/lib/treeview/Header.js.map +1 -0
- package/lib/treeview/Node.js +201 -176
- package/lib/treeview/Node.js.map +1 -0
- package/lib/treeview/constants.d.ts +1 -2
- package/lib/treeview/constants.js +3 -2
- package/lib/treeview/constants.js.map +1 -0
- package/lib/treeview/index.js +259 -174
- package/lib/treeview/index.js.map +1 -0
- package/lib/uitour/helpers.js +1 -0
- package/lib/uitour/helpers.js.map +1 -0
- package/lib/uitour/index.d.ts +1 -2
- package/lib/uitour/index.js +169 -167
- package/lib/uitour/index.js.map +1 -0
- package/package.json +327 -48
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/assets/BaseAlert.css +0 -1
- package/lib/assets/Content.css +0 -1
- package/lib/assets/DefaultFile.css +0 -1
- package/lib/assets/Drawer.css +0 -1
- package/lib/assets/gridlayout.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index11.css +0 -1
- package/lib/assets/index15.css +0 -1
- package/lib/assets/index17.css +0 -1
- package/lib/assets/index18.css +0 -1
- package/lib/assets/index19.css +0 -1
- package/lib/assets/index20.css +0 -1
- package/lib/assets/index21.css +0 -1
- package/lib/assets/index22.css +0 -1
- package/lib/assets/index24.css +0 -1
- package/lib/assets/index26.css +0 -1
- package/lib/assets/index27.css +0 -1
- package/lib/assets/index28.css +0 -1
- package/lib/assets/index29.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index9.css +0 -1
- package/lib/assets/panel.css +0 -1
- package/lib/assets/skeleton.css +0 -1
- package/lib/assets/table.css +0 -1
- package/lib/assets/tabs.css +0 -1
- package/lib/assets/toolbar.css +0 -1
- package/lib/assets/withDropdown.css +0 -1
- package/lib/avatar/avatar.spec.d.ts +0 -1
- package/lib/badge/badge.spec.d.ts +0 -1
- package/lib/buttons/ButtonGroups.js +0 -5
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/calendar/base/Day.d.ts +0 -3
- package/lib/calendar/base/Day.js +0 -27
- package/lib/calendar/base/Month.d.ts +0 -3
- package/lib/calendar/base/Month.js +0 -25
- package/lib/calendar/base/Week.d.ts +0 -3
- package/lib/calendar/base/Week.js +0 -23
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/checkbox/checkbox.spec.d.ts +0 -1
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.Da--18GT.js +0 -669
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Drawer.spec.d.ts +0 -1
- package/lib/dropdown/dropdown.spec.d.ts +0 -1
- package/lib/dropdown/helper.js +0 -8
- package/lib/fieldset/fieldset.spec.d.ts +0 -1
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
- package/lib/hint/hint.spec.d.ts +0 -1
- package/lib/icons/icons.spec.d.ts +0 -1
- package/lib/inputs/base/Label.d.ts +0 -6
- package/lib/inputs/base/Label.js +0 -32
- package/lib/inputs/base/base.spec.d.ts +0 -1
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/date/date.spec.d.ts +0 -1
- package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
- package/lib/inputs/file/filefield.spec.d.ts +0 -1
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
- package/lib/inputs/number/numberfield.spec.d.ts +0 -1
- package/lib/inputs/search/search_input.spec.d.ts +0 -1
- package/lib/inputs/select/select.spec.d.ts +0 -1
- package/lib/inputs/text/textfield.spec.d.ts +0 -1
- package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
- package/lib/internals/withTooltip.d.ts +0 -8
- package/lib/internals/withTooltip.js +0 -75
- package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
- package/lib/labels/label.spec.d.ts +0 -1
- package/lib/list/list.spec.d.ts +0 -1
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
- package/lib/panel/ToolBar.js +0 -6
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/popover/popover.spec.d.ts +0 -1
- package/lib/progress/progress.spec.d.ts +0 -1
- package/lib/radio/radio.spec.d.ts +0 -1
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/spinner/spinner.spec.d.ts +0 -1
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/table/table.spec.d.ts +0 -1
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/textContent/textContent.spec.d.ts +0 -1
- package/lib/toolbar/toolbar.spec.d.ts +0 -1
- package/lib/tooltip/tooltip.spec.d.ts +0 -1
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/uitour/uitour.spec.d.ts +0 -0
- /package/lib/assets/{index10.css → styles/avatar.css} +0 -0
- /package/lib/assets/{index7.css → styles/error.css} +0 -0
- /package/lib/assets/{index13.css → styles/form.css} +0 -0
- /package/lib/assets/{index8.css → styles/hint.css} +0 -0
- /package/lib/assets/{index2.css → styles/icon.css} +0 -0
- /package/lib/assets/{index14.css → styles/labelMessages.css} +0 -0
- /package/lib/assets/{noPermission.css → styles/noPermission.css} +0 -0
- /package/lib/assets/{index23.css → styles/numbers.css} +0 -0
- /package/lib/assets/{index3.css → styles/popover.css} +0 -0
- /package/lib/assets/{index25.css → styles/search.css} +0 -0
- /package/lib/assets/{index6.css → styles/spinner.css} +0 -0
- /package/lib/assets/{index16.css → styles/split.css} +0 -0
- /package/lib/assets/{index4.css → styles/textContent.css} +0 -0
|
@@ -1,675 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import "react-dom";
|
|
3
|
-
/**
|
|
4
|
-
* @remix-run/router v1.14.2
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Remix Software Inc.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
10
|
-
*
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/
|
|
13
|
-
function B() {
|
|
14
|
-
return B = Object.assign ? Object.assign.bind() : function(e) {
|
|
15
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
16
|
-
var n = arguments[t];
|
|
17
|
-
for (var a in n)
|
|
18
|
-
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
19
|
-
}
|
|
20
|
-
return e;
|
|
21
|
-
}, B.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
var Q;
|
|
24
|
-
(function(e) {
|
|
25
|
-
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
26
|
-
})(Q || (Q = {}));
|
|
27
|
-
function p(e, t) {
|
|
28
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
29
|
-
throw new Error(t);
|
|
30
|
-
}
|
|
31
|
-
function R(e, t) {
|
|
32
|
-
if (!e) {
|
|
33
|
-
typeof console < "u" && console.warn(t);
|
|
34
|
-
try {
|
|
35
|
-
throw new Error(t);
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function k(e) {
|
|
41
|
-
let {
|
|
42
|
-
pathname: t = "/",
|
|
43
|
-
search: n = "",
|
|
44
|
-
hash: a = ""
|
|
45
|
-
} = e;
|
|
46
|
-
return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), a && a !== "#" && (t += a.charAt(0) === "#" ? a : "#" + a), t;
|
|
47
|
-
}
|
|
48
|
-
function te(e) {
|
|
49
|
-
let t = {};
|
|
50
|
-
if (e) {
|
|
51
|
-
let n = e.indexOf("#");
|
|
52
|
-
n >= 0 && (t.hash = e.substr(n), e = e.substr(0, n));
|
|
53
|
-
let a = e.indexOf("?");
|
|
54
|
-
a >= 0 && (t.search = e.substr(a), e = e.substr(0, a)), e && (t.pathname = e);
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
var Z;
|
|
59
|
-
(function(e) {
|
|
60
|
-
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
61
|
-
})(Z || (Z = {}));
|
|
62
|
-
function H(e, t) {
|
|
63
|
-
typeof e == "string" && (e = {
|
|
64
|
-
path: e,
|
|
65
|
-
caseSensitive: !1,
|
|
66
|
-
end: !0
|
|
67
|
-
});
|
|
68
|
-
let [n, a] = ve(e.path, e.caseSensitive, e.end), r = t.match(n);
|
|
69
|
-
if (!r) return null;
|
|
70
|
-
let i = r[0], o = i.replace(/(.)\/+$/, "$1"), l = r.slice(1);
|
|
71
|
-
return {
|
|
72
|
-
params: a.reduce((u, f, d) => {
|
|
73
|
-
let {
|
|
74
|
-
paramName: h,
|
|
75
|
-
isOptional: E
|
|
76
|
-
} = f;
|
|
77
|
-
if (h === "*") {
|
|
78
|
-
let N = l[d] || "";
|
|
79
|
-
o = i.slice(0, i.length - N.length).replace(/(.)\/+$/, "$1");
|
|
80
|
-
}
|
|
81
|
-
const b = l[d];
|
|
82
|
-
return E && !b ? u[h] = void 0 : u[h] = ge(b || "", h), u;
|
|
83
|
-
}, {}),
|
|
84
|
-
pathname: i,
|
|
85
|
-
pathnameBase: o,
|
|
86
|
-
pattern: e
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function ve(e, t, n) {
|
|
90
|
-
t === void 0 && (t = !1), n === void 0 && (n = !0), R(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
|
|
91
|
-
let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, l, c) => (a.push({
|
|
92
|
-
paramName: l,
|
|
93
|
-
isOptional: c != null
|
|
94
|
-
}), c ? "/?([^\\/]+)?" : "/([^\\/]+)"));
|
|
95
|
-
return e.endsWith("*") ? (a.push({
|
|
96
|
-
paramName: "*"
|
|
97
|
-
}), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
|
|
98
|
-
}
|
|
99
|
-
function ge(e, t) {
|
|
100
|
-
try {
|
|
101
|
-
return decodeURIComponent(e);
|
|
102
|
-
} catch (n) {
|
|
103
|
-
return R(!1, 'The value for the URL param "' + t + '" will not be decoded because' + (' the string "' + e + '" is a malformed URL segment. This is probably') + (" due to a bad percent encoding (" + n + ").")), e;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function C(e, t) {
|
|
107
|
-
if (t === "/") return e;
|
|
108
|
-
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
109
|
-
return null;
|
|
110
|
-
let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
|
|
111
|
-
return a && a !== "/" ? null : e.slice(n) || "/";
|
|
112
|
-
}
|
|
113
|
-
function be(e, t) {
|
|
114
|
-
t === void 0 && (t = "/");
|
|
115
|
-
let {
|
|
116
|
-
pathname: n,
|
|
117
|
-
search: a = "",
|
|
118
|
-
hash: r = ""
|
|
119
|
-
} = typeof e == "string" ? te(e) : e;
|
|
120
|
-
return {
|
|
121
|
-
pathname: n ? n.startsWith("/") ? n : Ne(n, t) : t,
|
|
122
|
-
search: Ee(a),
|
|
123
|
-
hash: we(r)
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function Ne(e, t) {
|
|
127
|
-
let n = t.replace(/\/+$/, "").split("/");
|
|
128
|
-
return e.split("/").forEach((r) => {
|
|
129
|
-
r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
|
|
130
|
-
}), n.length > 1 ? n.join("/") : "/";
|
|
131
|
-
}
|
|
132
|
-
function M(e, t, n, a) {
|
|
133
|
-
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(a) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
134
|
-
}
|
|
135
|
-
function ye(e) {
|
|
136
|
-
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
137
|
-
}
|
|
138
|
-
function ne(e, t) {
|
|
139
|
-
let n = ye(e);
|
|
140
|
-
return t ? n.map((a, r) => r === e.length - 1 ? a.pathname : a.pathnameBase) : n.map((a) => a.pathnameBase);
|
|
141
|
-
}
|
|
142
|
-
function re(e, t, n, a) {
|
|
143
|
-
a === void 0 && (a = !1);
|
|
144
|
-
let r;
|
|
145
|
-
typeof e == "string" ? r = te(e) : (r = B({}, e), p(!r.pathname || !r.pathname.includes("?"), M("?", "pathname", "search", r)), p(!r.pathname || !r.pathname.includes("#"), M("#", "pathname", "hash", r)), p(!r.search || !r.search.includes("#"), M("#", "search", "hash", r)));
|
|
146
|
-
let i = e === "" || r.pathname === "", o = i ? "/" : r.pathname, l;
|
|
147
|
-
if (o == null)
|
|
148
|
-
l = n;
|
|
149
|
-
else {
|
|
150
|
-
let d = t.length - 1;
|
|
151
|
-
if (!a && o.startsWith("..")) {
|
|
152
|
-
let h = o.split("/");
|
|
153
|
-
for (; h[0] === ".."; )
|
|
154
|
-
h.shift(), d -= 1;
|
|
155
|
-
r.pathname = h.join("/");
|
|
156
|
-
}
|
|
157
|
-
l = d >= 0 ? t[d] : "/";
|
|
158
|
-
}
|
|
159
|
-
let c = be(r, l), u = o && o !== "/" && o.endsWith("/"), f = (i || o === ".") && n.endsWith("/");
|
|
160
|
-
return !c.pathname.endsWith("/") && (u || f) && (c.pathname += "/"), c;
|
|
161
|
-
}
|
|
162
|
-
const J = (e) => e.join("/").replace(/\/\/+/g, "/"), Ee = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, we = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ae = ["post", "put", "patch", "delete"];
|
|
163
|
-
new Set(ae);
|
|
164
|
-
const xe = ["get", ...ae];
|
|
165
|
-
new Set(xe);
|
|
166
|
-
/**
|
|
167
|
-
* React Router v6.21.3
|
|
168
|
-
*
|
|
169
|
-
* Copyright (c) Remix Software Inc.
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the MIT license found in the
|
|
172
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
173
|
-
*
|
|
174
|
-
* @license MIT
|
|
175
|
-
*/
|
|
176
|
-
function K() {
|
|
177
|
-
return K = Object.assign ? Object.assign.bind() : function(e) {
|
|
178
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
179
|
-
var n = arguments[t];
|
|
180
|
-
for (var a in n)
|
|
181
|
-
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
182
|
-
}
|
|
183
|
-
return e;
|
|
184
|
-
}, K.apply(this, arguments);
|
|
185
|
-
}
|
|
186
|
-
const F = /* @__PURE__ */ s.createContext(null);
|
|
187
|
-
process.env.NODE_ENV !== "production" && (F.displayName = "DataRouter");
|
|
188
|
-
const ie = /* @__PURE__ */ s.createContext(null);
|
|
189
|
-
process.env.NODE_ENV !== "production" && (ie.displayName = "DataRouterState");
|
|
190
|
-
const Ce = /* @__PURE__ */ s.createContext(null);
|
|
191
|
-
process.env.NODE_ENV !== "production" && (Ce.displayName = "Await");
|
|
192
|
-
const y = /* @__PURE__ */ s.createContext(null);
|
|
193
|
-
process.env.NODE_ENV !== "production" && (y.displayName = "Navigation");
|
|
194
|
-
const z = /* @__PURE__ */ s.createContext(null);
|
|
195
|
-
process.env.NODE_ENV !== "production" && (z.displayName = "Location");
|
|
196
|
-
const _ = /* @__PURE__ */ s.createContext({
|
|
197
|
-
outlet: null,
|
|
198
|
-
matches: [],
|
|
199
|
-
isDataRoute: !1
|
|
200
|
-
});
|
|
201
|
-
process.env.NODE_ENV !== "production" && (_.displayName = "Route");
|
|
202
|
-
const Se = /* @__PURE__ */ s.createContext(null);
|
|
203
|
-
process.env.NODE_ENV !== "production" && (Se.displayName = "RouteError");
|
|
204
|
-
function Re(e, t) {
|
|
205
|
-
let {
|
|
206
|
-
relative: n
|
|
207
|
-
} = t === void 0 ? {} : t;
|
|
208
|
-
q() || (process.env.NODE_ENV !== "production" ? p(
|
|
209
|
-
!1,
|
|
210
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
211
|
-
// router loaded. We can help them understand how to avoid that.
|
|
212
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
213
|
-
) : p(!1));
|
|
214
|
-
let {
|
|
215
|
-
basename: a,
|
|
216
|
-
navigator: r
|
|
217
|
-
} = s.useContext(y), {
|
|
218
|
-
hash: i,
|
|
219
|
-
pathname: o,
|
|
220
|
-
search: l
|
|
221
|
-
} = L(e, {
|
|
222
|
-
relative: n
|
|
223
|
-
}), c = o;
|
|
224
|
-
return a !== "/" && (c = o === "/" ? a : J([a, o])), r.createHref({
|
|
225
|
-
pathname: c,
|
|
226
|
-
search: l,
|
|
227
|
-
hash: i
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
function q() {
|
|
231
|
-
return s.useContext(z) != null;
|
|
232
|
-
}
|
|
233
|
-
function O() {
|
|
234
|
-
return q() || (process.env.NODE_ENV !== "production" ? p(
|
|
235
|
-
!1,
|
|
236
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
237
|
-
// router loaded. We can help them understand how to avoid that.
|
|
238
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
239
|
-
) : p(!1)), s.useContext(z).location;
|
|
240
|
-
}
|
|
241
|
-
const oe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
242
|
-
function se(e) {
|
|
243
|
-
s.useContext(y).static || s.useLayoutEffect(e);
|
|
244
|
-
}
|
|
245
|
-
function _e() {
|
|
246
|
-
let {
|
|
247
|
-
isDataRoute: e
|
|
248
|
-
} = s.useContext(_);
|
|
249
|
-
return e ? Ue() : Oe();
|
|
250
|
-
}
|
|
251
|
-
function Oe() {
|
|
252
|
-
q() || (process.env.NODE_ENV !== "production" ? p(
|
|
253
|
-
!1,
|
|
254
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
255
|
-
// router loaded. We can help them understand how to avoid that.
|
|
256
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
257
|
-
) : p(!1));
|
|
258
|
-
let e = s.useContext(F), {
|
|
259
|
-
basename: t,
|
|
260
|
-
future: n,
|
|
261
|
-
navigator: a
|
|
262
|
-
} = s.useContext(y), {
|
|
263
|
-
matches: r
|
|
264
|
-
} = s.useContext(_), {
|
|
265
|
-
pathname: i
|
|
266
|
-
} = O(), o = JSON.stringify(ne(r, n.v7_relativeSplatPath)), l = s.useRef(!1);
|
|
267
|
-
return se(() => {
|
|
268
|
-
l.current = !0;
|
|
269
|
-
}), s.useCallback(function(u, f) {
|
|
270
|
-
if (f === void 0 && (f = {}), process.env.NODE_ENV !== "production" && R(l.current, oe), !l.current) return;
|
|
271
|
-
if (typeof u == "number") {
|
|
272
|
-
a.go(u);
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
let d = re(u, JSON.parse(o), i, f.relative === "path");
|
|
276
|
-
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : J([t, d.pathname])), (f.replace ? a.replace : a.push)(d, f.state, f);
|
|
277
|
-
}, [t, a, o, i, e]);
|
|
278
|
-
}
|
|
279
|
-
function L(e, t) {
|
|
280
|
-
let {
|
|
281
|
-
relative: n
|
|
282
|
-
} = t === void 0 ? {} : t, {
|
|
283
|
-
future: a
|
|
284
|
-
} = s.useContext(y), {
|
|
285
|
-
matches: r
|
|
286
|
-
} = s.useContext(_), {
|
|
287
|
-
pathname: i
|
|
288
|
-
} = O(), o = JSON.stringify(ne(r, a.v7_relativeSplatPath));
|
|
289
|
-
return s.useMemo(() => re(e, JSON.parse(o), i, n === "path"), [e, o, i, n]);
|
|
290
|
-
}
|
|
291
|
-
var le = /* @__PURE__ */ function(e) {
|
|
292
|
-
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
293
|
-
}(le || {}), G = /* @__PURE__ */ function(e) {
|
|
294
|
-
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
295
|
-
}(G || {});
|
|
296
|
-
function ue(e) {
|
|
297
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
298
|
-
}
|
|
299
|
-
function Le(e) {
|
|
300
|
-
let t = s.useContext(F);
|
|
301
|
-
return t || (process.env.NODE_ENV !== "production" ? p(!1, ue(e)) : p(!1)), t;
|
|
302
|
-
}
|
|
303
|
-
function Pe(e) {
|
|
304
|
-
let t = s.useContext(_);
|
|
305
|
-
return t || (process.env.NODE_ENV !== "production" ? p(!1, ue(e)) : p(!1)), t;
|
|
306
|
-
}
|
|
307
|
-
function ce(e) {
|
|
308
|
-
let t = Pe(e), n = t.matches[t.matches.length - 1];
|
|
309
|
-
return n.route.id || (process.env.NODE_ENV !== "production" ? p(!1, e + ' can only be used on routes that contain a unique "id"') : p(!1)), n.route.id;
|
|
310
|
-
}
|
|
311
|
-
function De() {
|
|
312
|
-
return ce(G.UseRouteId);
|
|
313
|
-
}
|
|
314
|
-
function Ue() {
|
|
315
|
-
let {
|
|
316
|
-
router: e
|
|
317
|
-
} = Le(le.UseNavigateStable), t = ce(G.UseNavigateStable), n = s.useRef(!1);
|
|
318
|
-
return se(() => {
|
|
319
|
-
n.current = !0;
|
|
320
|
-
}), s.useCallback(function(r, i) {
|
|
321
|
-
i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && R(n.current, oe), n.current && (typeof r == "number" ? e.navigate(r) : e.navigate(r, K({
|
|
322
|
-
fromRouteId: t
|
|
323
|
-
}, i)));
|
|
324
|
-
}, [e, t]);
|
|
325
|
-
}
|
|
326
|
-
new Promise(() => {
|
|
327
|
-
});
|
|
328
|
-
/**
|
|
329
|
-
* React Router DOM v6.21.3
|
|
330
|
-
*
|
|
331
|
-
* Copyright (c) Remix Software Inc.
|
|
332
|
-
*
|
|
333
|
-
* This source code is licensed under the MIT license found in the
|
|
334
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
335
|
-
*
|
|
336
|
-
* @license MIT
|
|
337
|
-
*/
|
|
338
|
-
function S() {
|
|
339
|
-
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
340
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
341
|
-
var n = arguments[t];
|
|
342
|
-
for (var a in n)
|
|
343
|
-
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
344
|
-
}
|
|
345
|
-
return e;
|
|
346
|
-
}, S.apply(this, arguments);
|
|
347
|
-
}
|
|
348
|
-
function Y(e, t) {
|
|
349
|
-
if (e == null) return {};
|
|
350
|
-
var n = {}, a = Object.keys(e), r, i;
|
|
351
|
-
for (i = 0; i < a.length; i++)
|
|
352
|
-
r = a[i], !(t.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
353
|
-
return n;
|
|
354
|
-
}
|
|
355
|
-
const U = "get", T = "application/x-www-form-urlencoded";
|
|
356
|
-
function A(e) {
|
|
357
|
-
return e != null && typeof e.tagName == "string";
|
|
358
|
-
}
|
|
359
|
-
function Te(e) {
|
|
360
|
-
return A(e) && e.tagName.toLowerCase() === "button";
|
|
361
|
-
}
|
|
362
|
-
function Ve(e) {
|
|
363
|
-
return A(e) && e.tagName.toLowerCase() === "form";
|
|
364
|
-
}
|
|
365
|
-
function Fe(e) {
|
|
366
|
-
return A(e) && e.tagName.toLowerCase() === "input";
|
|
367
|
-
}
|
|
368
|
-
function Ae(e) {
|
|
369
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
370
|
-
}
|
|
371
|
-
function Ie(e, t) {
|
|
372
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
373
|
-
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
374
|
-
!Ae(e);
|
|
375
|
-
}
|
|
376
|
-
let D = null;
|
|
377
|
-
function We() {
|
|
378
|
-
if (D === null)
|
|
379
|
-
try {
|
|
380
|
-
new FormData(
|
|
381
|
-
document.createElement("form"),
|
|
382
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
383
|
-
0
|
|
384
|
-
), D = !1;
|
|
385
|
-
} catch {
|
|
386
|
-
D = !0;
|
|
387
|
-
}
|
|
388
|
-
return D;
|
|
389
|
-
}
|
|
390
|
-
const $e = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
391
|
-
function j(e) {
|
|
392
|
-
return e != null && !$e.has(e) ? (process.env.NODE_ENV !== "production" && R(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + T + '"')), null) : e;
|
|
393
|
-
}
|
|
394
|
-
function Me(e, t) {
|
|
395
|
-
let n, a, r, i, o;
|
|
396
|
-
if (Ve(e)) {
|
|
397
|
-
let l = e.getAttribute("action");
|
|
398
|
-
a = l ? C(l, t) : null, n = e.getAttribute("method") || U, r = j(e.getAttribute("enctype")) || T, i = new FormData(e);
|
|
399
|
-
} else if (Te(e) || Fe(e) && (e.type === "submit" || e.type === "image")) {
|
|
400
|
-
let l = e.form;
|
|
401
|
-
if (l == null)
|
|
402
|
-
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
403
|
-
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
404
|
-
if (a = c ? C(c, t) : null, n = e.getAttribute("formmethod") || l.getAttribute("method") || U, r = j(e.getAttribute("formenctype")) || j(l.getAttribute("enctype")) || T, i = new FormData(l, e), !We()) {
|
|
405
|
-
let {
|
|
406
|
-
name: u,
|
|
407
|
-
type: f,
|
|
408
|
-
value: d
|
|
409
|
-
} = e;
|
|
410
|
-
if (f === "image") {
|
|
411
|
-
let h = u ? u + "." : "";
|
|
412
|
-
i.append(h + "x", "0"), i.append(h + "y", "0");
|
|
413
|
-
} else u && i.append(u, d);
|
|
414
|
-
}
|
|
415
|
-
} else {
|
|
416
|
-
if (A(e))
|
|
417
|
-
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
418
|
-
n = U, a = null, r = T, o = e;
|
|
419
|
-
}
|
|
420
|
-
return i && r === "text/plain" && (o = i, i = void 0), {
|
|
421
|
-
action: a,
|
|
422
|
-
method: n.toLowerCase(),
|
|
423
|
-
encType: r,
|
|
424
|
-
formData: i,
|
|
425
|
-
body: o
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
const je = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Be = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], ke = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], fe = /* @__PURE__ */ s.createContext({
|
|
429
|
-
isTransitioning: !1
|
|
430
|
-
});
|
|
431
|
-
process.env.NODE_ENV !== "production" && (fe.displayName = "ViewTransition");
|
|
432
|
-
const Ke = /* @__PURE__ */ s.createContext(/* @__PURE__ */ new Map());
|
|
433
|
-
process.env.NODE_ENV !== "production" && (Ke.displayName = "Fetchers");
|
|
434
|
-
process.env.NODE_ENV;
|
|
435
|
-
const Je = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ze = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, de = /* @__PURE__ */ s.forwardRef(function(t, n) {
|
|
436
|
-
let {
|
|
437
|
-
onClick: a,
|
|
438
|
-
relative: r,
|
|
439
|
-
reloadDocument: i,
|
|
440
|
-
replace: o,
|
|
441
|
-
state: l,
|
|
442
|
-
target: c,
|
|
443
|
-
to: u,
|
|
444
|
-
preventScrollReset: f,
|
|
445
|
-
unstable_viewTransition: d
|
|
446
|
-
} = t, h = Y(t, je), {
|
|
447
|
-
basename: E
|
|
448
|
-
} = s.useContext(y), b, N = !1;
|
|
449
|
-
if (typeof u == "string" && ze.test(u) && (b = u, Je))
|
|
450
|
-
try {
|
|
451
|
-
let g = new URL(window.location.href), v = u.startsWith("//") ? new URL(g.protocol + u) : new URL(u), P = C(v.pathname, E);
|
|
452
|
-
v.origin === g.origin && P != null ? u = P + v.search + v.hash : N = !0;
|
|
453
|
-
} catch {
|
|
454
|
-
process.env.NODE_ENV !== "production" && R(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
455
|
-
}
|
|
456
|
-
let w = Re(u, {
|
|
457
|
-
relative: r
|
|
458
|
-
}), x = Xe(u, {
|
|
459
|
-
replace: o,
|
|
460
|
-
state: l,
|
|
461
|
-
target: c,
|
|
462
|
-
preventScrollReset: f,
|
|
463
|
-
relative: r,
|
|
464
|
-
unstable_viewTransition: d
|
|
465
|
-
});
|
|
466
|
-
function m(g) {
|
|
467
|
-
a && a(g), g.defaultPrevented || x(g);
|
|
468
|
-
}
|
|
469
|
-
return (
|
|
470
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
471
|
-
/* @__PURE__ */ s.createElement("a", S({}, h, {
|
|
472
|
-
href: b || w,
|
|
473
|
-
onClick: N || i ? a : m,
|
|
474
|
-
ref: n,
|
|
475
|
-
target: c
|
|
476
|
-
}))
|
|
477
|
-
);
|
|
478
|
-
});
|
|
479
|
-
process.env.NODE_ENV !== "production" && (de.displayName = "Link");
|
|
480
|
-
const qe = /* @__PURE__ */ s.forwardRef(function(t, n) {
|
|
481
|
-
let {
|
|
482
|
-
"aria-current": a = "page",
|
|
483
|
-
caseSensitive: r = !1,
|
|
484
|
-
className: i = "",
|
|
485
|
-
end: o = !1,
|
|
486
|
-
style: l,
|
|
487
|
-
to: c,
|
|
488
|
-
unstable_viewTransition: u,
|
|
489
|
-
children: f
|
|
490
|
-
} = t, d = Y(t, Be), h = L(c, {
|
|
491
|
-
relative: d.relative
|
|
492
|
-
}), E = O(), b = s.useContext(ie), {
|
|
493
|
-
navigator: N,
|
|
494
|
-
basename: w
|
|
495
|
-
} = s.useContext(y), x = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
496
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
497
|
-
nt(h) && u === !0, m = N.encodeLocation ? N.encodeLocation(h).pathname : h.pathname, g = E.pathname, v = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
498
|
-
r || (g = g.toLowerCase(), v = v ? v.toLowerCase() : null, m = m.toLowerCase()), v && w && (v = C(v, w) || v);
|
|
499
|
-
const P = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
|
|
500
|
-
let I = g === m || !o && g.startsWith(m) && g.charAt(P) === "/", X = v != null && (v === m || !o && v.startsWith(m) && v.charAt(m.length) === "/"), W = {
|
|
501
|
-
isActive: I,
|
|
502
|
-
isPending: X,
|
|
503
|
-
isTransitioning: x
|
|
504
|
-
}, pe = I ? a : void 0, $;
|
|
505
|
-
typeof i == "function" ? $ = i(W) : $ = [i, I ? "active" : null, X ? "pending" : null, x ? "transitioning" : null].filter(Boolean).join(" ");
|
|
506
|
-
let me = typeof l == "function" ? l(W) : l;
|
|
507
|
-
return /* @__PURE__ */ s.createElement(de, S({}, d, {
|
|
508
|
-
"aria-current": pe,
|
|
509
|
-
className: $,
|
|
510
|
-
ref: n,
|
|
511
|
-
style: me,
|
|
512
|
-
to: c,
|
|
513
|
-
unstable_viewTransition: u
|
|
514
|
-
}), typeof f == "function" ? f(W) : f);
|
|
515
|
-
});
|
|
516
|
-
process.env.NODE_ENV !== "production" && (qe.displayName = "NavLink");
|
|
517
|
-
const Ge = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
518
|
-
let {
|
|
519
|
-
fetcherKey: n,
|
|
520
|
-
navigate: a,
|
|
521
|
-
reloadDocument: r,
|
|
522
|
-
replace: i,
|
|
523
|
-
state: o,
|
|
524
|
-
method: l = U,
|
|
525
|
-
action: c,
|
|
526
|
-
onSubmit: u,
|
|
527
|
-
relative: f,
|
|
528
|
-
preventScrollReset: d,
|
|
529
|
-
unstable_viewTransition: h
|
|
530
|
-
} = e, E = Y(e, ke), b = et(), N = tt(c, {
|
|
531
|
-
relative: f
|
|
532
|
-
}), w = l.toLowerCase() === "get" ? "get" : "post", x = (m) => {
|
|
533
|
-
if (u && u(m), m.defaultPrevented) return;
|
|
534
|
-
m.preventDefault();
|
|
535
|
-
let g = m.nativeEvent.submitter, v = (g == null ? void 0 : g.getAttribute("formmethod")) || l;
|
|
536
|
-
b(g || m.currentTarget, {
|
|
537
|
-
fetcherKey: n,
|
|
538
|
-
method: v,
|
|
539
|
-
navigate: a,
|
|
540
|
-
replace: i,
|
|
541
|
-
state: o,
|
|
542
|
-
relative: f,
|
|
543
|
-
preventScrollReset: d,
|
|
544
|
-
unstable_viewTransition: h
|
|
545
|
-
});
|
|
546
|
-
};
|
|
547
|
-
return /* @__PURE__ */ s.createElement("form", S({
|
|
548
|
-
ref: t,
|
|
549
|
-
method: w,
|
|
550
|
-
action: N,
|
|
551
|
-
onSubmit: r ? u : x
|
|
552
|
-
}, E));
|
|
553
|
-
});
|
|
554
|
-
process.env.NODE_ENV !== "production" && (Ge.displayName = "Form");
|
|
555
|
-
process.env.NODE_ENV;
|
|
556
|
-
var V;
|
|
557
|
-
(function(e) {
|
|
558
|
-
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
559
|
-
})(V || (V = {}));
|
|
560
|
-
var ee;
|
|
561
|
-
(function(e) {
|
|
562
|
-
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
563
|
-
})(ee || (ee = {}));
|
|
564
|
-
function Ye(e) {
|
|
565
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
566
|
-
}
|
|
567
|
-
function he(e) {
|
|
568
|
-
let t = s.useContext(F);
|
|
569
|
-
return t || (process.env.NODE_ENV !== "production" ? p(!1, Ye(e)) : p(!1)), t;
|
|
570
|
-
}
|
|
571
|
-
function Xe(e, t) {
|
|
572
|
-
let {
|
|
573
|
-
target: n,
|
|
574
|
-
replace: a,
|
|
575
|
-
state: r,
|
|
576
|
-
preventScrollReset: i,
|
|
577
|
-
relative: o,
|
|
578
|
-
unstable_viewTransition: l
|
|
579
|
-
} = t === void 0 ? {} : t, c = _e(), u = O(), f = L(e, {
|
|
580
|
-
relative: o
|
|
581
|
-
});
|
|
582
|
-
return s.useCallback((d) => {
|
|
583
|
-
if (Ie(d, n)) {
|
|
584
|
-
d.preventDefault();
|
|
585
|
-
let h = a !== void 0 ? a : k(u) === k(f);
|
|
586
|
-
c(e, {
|
|
587
|
-
replace: h,
|
|
588
|
-
state: r,
|
|
589
|
-
preventScrollReset: i,
|
|
590
|
-
relative: o,
|
|
591
|
-
unstable_viewTransition: l
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
}, [u, c, f, a, r, n, e, i, o, l]);
|
|
595
|
-
}
|
|
596
|
-
function Qe() {
|
|
597
|
-
if (typeof document > "u")
|
|
598
|
-
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
599
|
-
}
|
|
600
|
-
let Ze = 0, He = () => "__" + String(++Ze) + "__";
|
|
601
|
-
function et() {
|
|
602
|
-
let {
|
|
603
|
-
router: e
|
|
604
|
-
} = he(V.UseSubmit), {
|
|
605
|
-
basename: t
|
|
606
|
-
} = s.useContext(y), n = De();
|
|
607
|
-
return s.useCallback(function(a, r) {
|
|
608
|
-
r === void 0 && (r = {}), Qe();
|
|
609
|
-
let {
|
|
610
|
-
action: i,
|
|
611
|
-
method: o,
|
|
612
|
-
encType: l,
|
|
613
|
-
formData: c,
|
|
614
|
-
body: u
|
|
615
|
-
} = Me(a, t);
|
|
616
|
-
if (r.navigate === !1) {
|
|
617
|
-
let f = r.fetcherKey || He();
|
|
618
|
-
e.fetch(f, n, r.action || i, {
|
|
619
|
-
preventScrollReset: r.preventScrollReset,
|
|
620
|
-
formData: c,
|
|
621
|
-
body: u,
|
|
622
|
-
formMethod: r.method || o,
|
|
623
|
-
formEncType: r.encType || l,
|
|
624
|
-
unstable_flushSync: r.unstable_flushSync
|
|
625
|
-
});
|
|
626
|
-
} else
|
|
627
|
-
e.navigate(r.action || i, {
|
|
628
|
-
preventScrollReset: r.preventScrollReset,
|
|
629
|
-
formData: c,
|
|
630
|
-
body: u,
|
|
631
|
-
formMethod: r.method || o,
|
|
632
|
-
formEncType: r.encType || l,
|
|
633
|
-
replace: r.replace,
|
|
634
|
-
state: r.state,
|
|
635
|
-
fromRouteId: n,
|
|
636
|
-
unstable_flushSync: r.unstable_flushSync,
|
|
637
|
-
unstable_viewTransition: r.unstable_viewTransition
|
|
638
|
-
});
|
|
639
|
-
}, [e, t, n]);
|
|
640
|
-
}
|
|
641
|
-
function tt(e, t) {
|
|
642
|
-
let {
|
|
643
|
-
relative: n
|
|
644
|
-
} = t === void 0 ? {} : t, {
|
|
645
|
-
basename: a
|
|
646
|
-
} = s.useContext(y), r = s.useContext(_);
|
|
647
|
-
r || (process.env.NODE_ENV !== "production" ? p(!1, "useFormAction must be used inside a RouteContext") : p(!1));
|
|
648
|
-
let [i] = r.matches.slice(-1), o = S({}, L(e || ".", {
|
|
649
|
-
relative: n
|
|
650
|
-
})), l = O();
|
|
651
|
-
if (e == null) {
|
|
652
|
-
o.search = l.search;
|
|
653
|
-
let c = new URLSearchParams(o.search);
|
|
654
|
-
c.has("index") && c.get("index") === "" && (c.delete("index"), o.search = c.toString() ? "?" + c.toString() : "");
|
|
655
|
-
}
|
|
656
|
-
return (!e || e === ".") && i.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (o.pathname = o.pathname === "/" ? a : J([a, o.pathname])), k(o);
|
|
657
|
-
}
|
|
658
|
-
function nt(e, t) {
|
|
659
|
-
t === void 0 && (t = {});
|
|
660
|
-
let n = s.useContext(fe);
|
|
661
|
-
n == null && (process.env.NODE_ENV !== "production" ? p(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : p(!1));
|
|
662
|
-
let {
|
|
663
|
-
basename: a
|
|
664
|
-
} = he(V.useViewTransitionState), r = L(e, {
|
|
665
|
-
relative: t.relative
|
|
666
|
-
});
|
|
667
|
-
if (!n.isTransitioning)
|
|
668
|
-
return !1;
|
|
669
|
-
let i = C(n.currentLocation.pathname, a) || n.currentLocation.pathname, o = C(n.nextLocation.pathname, a) || n.nextLocation.pathname;
|
|
670
|
-
return H(r.pathname, o) != null || H(r.pathname, i) != null;
|
|
671
|
-
}
|
|
672
|
-
export {
|
|
673
|
-
de as L,
|
|
674
|
-
_e as u
|
|
675
|
-
};
|