stone-kit 0.0.875 → 0.0.877
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +1 -1
- package/dist/Router.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/bind.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/components/Button/ui/Button.js +44 -73
- package/dist/components/CheckBox/CheckBox.js +35 -46
- package/dist/components/CheckBoxNew/CheckBoxNew.js +19 -23
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +24 -31
- package/dist/components/DestinationTab/ui/DestinationTab.js +35 -48
- package/dist/components/FieldInput/ui/FieldInput.js +7 -10
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +61 -5
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +266 -7
- package/dist/components/Flex/ui/Flex.js +26 -61
- package/dist/components/FormModal/ui/ModalForm.js +289 -14
- package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -6
- package/dist/components/Input/ui/Input.js +74 -3307
- package/dist/components/Logo/ui/Logo.js +19 -31
- package/dist/components/Logo/ui/Logo.types.js +18 -10
- package/dist/components/LotCard/hooks/useLotCard.js +125 -11
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +150 -9
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +31 -58
- package/dist/components/MetroLabel/ui/MetroLabel.js +19 -24
- package/dist/components/MetroTag/ui/MetroTag.js +59 -72
- package/dist/components/Modal/ui/Modal.js +33 -38
- package/dist/components/ModalSuccess/ModalSuccess.js +26 -35
- package/dist/components/NewIcon/icons/PinTrans.js +3 -3
- package/dist/components/NewIcon/icons/SmallFilter.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +141 -301
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +5 -15
- package/dist/components/RoundButton/ui/RoundButton.js +42 -60
- package/dist/components/Select/ui/Category.js +30 -29
- package/dist/components/Select/ui/Option.js +52 -5
- package/dist/components/Select/ui/Select.js +24 -23
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +27 -28
- package/dist/components/SortSelect/hooks/useSortSelect.js +59 -4
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +114 -9
- package/dist/components/SummarySelect/ui/SummarySelect.js +59 -69
- package/dist/components/Switcher/ui/Switcher.js +13 -24
- package/dist/components/TabSelect/ui/TabSelect.js +28 -34
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +84 -7
- package/dist/components/Tag/ui/Tag.js +19 -67
- package/dist/components/Text/ui/Text.js +12 -13
- package/dist/components/TextArea/TextArea.js +11 -14
- package/dist/components/ZoomControls/ui/ZoomControls.js +8 -11
- package/dist/components/mobileButton/ui/MobileButton.js +34 -39
- package/dist/layout/Layout.js +7 -8
- package/dist/layout/components/Header/Header.js +41 -44
- package/dist/layout/components/Menu.js +111 -6
- package/dist/main.js +46 -42
- package/dist/node_modules/@remix-run/router/dist/router.js +431 -0
- package/dist/node_modules/classnames/bind.js +42 -0
- package/dist/{index-rKuIKazb.js → node_modules/classnames/index.js} +12 -15
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +31 -0
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +48 -0
- package/dist/node_modules/imask/esm/controls/input-history.js +30 -0
- package/dist/node_modules/imask/esm/controls/input.js +224 -0
- package/dist/node_modules/imask/esm/controls/mask-element.js +43 -0
- package/dist/node_modules/imask/esm/core/action-details.js +51 -0
- package/dist/node_modules/imask/esm/core/change-details.js +36 -0
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +44 -0
- package/dist/node_modules/imask/esm/core/holder.js +6 -0
- package/dist/node_modules/imask/esm/core/utils.js +80 -0
- package/dist/node_modules/imask/esm/index.js +50 -0
- package/dist/node_modules/imask/esm/masked/base.js +257 -0
- package/dist/node_modules/imask/esm/masked/date.js +118 -0
- package/dist/node_modules/imask/esm/masked/dynamic.js +224 -0
- package/dist/node_modules/imask/esm/masked/enum.js +70 -0
- package/dist/node_modules/imask/esm/masked/factory.js +51 -0
- package/dist/node_modules/imask/esm/masked/function.js +23 -0
- package/dist/node_modules/imask/esm/masked/number.js +215 -0
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +110 -0
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +102 -0
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/dist/node_modules/imask/esm/masked/pattern.js +339 -0
- package/dist/node_modules/imask/esm/masked/pipe.js +23 -0
- package/dist/node_modules/imask/esm/masked/range.js +82 -0
- package/dist/node_modules/imask/esm/masked/regexp.js +21 -0
- package/dist/node_modules/imask/esm/masked/repeat.js +106 -0
- package/dist/node_modules/object-assign/index.js +55 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/dist/node_modules/prop-types/index.js +15 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1062 -0
- package/dist/node_modules/react-imask/esm/input.js +25 -0
- package/dist/node_modules/react-imask/esm/mixin.js +131 -0
- package/dist/node_modules/react-router/dist/index.js +486 -0
- package/dist/node_modules/react-router-dom/dist/index.js +424 -0
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +54 -62
- package/dist/pages/CheckboxPage/CheckboxPage.js +47 -51
- package/dist/pages/FormsPage/FormsPage.js +31 -32
- package/dist/pages/HomePage/HomePage.js +3 -4
- package/dist/pages/IconsPage/IconsPage.js +12 -10
- package/dist/pages/InputPage/InputPage.js +17 -12
- package/dist/pages/LogoPage/LogoPage.js +17 -14
- package/dist/pages/LotsPage/LotsPage.js +15 -15
- package/dist/pages/ModalsPage/ModalPage.js +19 -14
- package/dist/pages/SelectPage/SelectPage.js +42 -41
- package/dist/pages/TabsPage/TabsPage.js +49 -51
- package/dist/pages/TagsPage/TagsPage.js +10 -7
- package/dist/src/components/Button/ui/Button.module.scss.js +49 -0
- package/dist/src/components/CheckBox/s.module.scss.js +24 -0
- package/dist/src/components/CheckBoxNew/s.module.scss.js +13 -0
- package/dist/src/components/CheckboxSelect/ui/s.module.scss.js +19 -0
- package/dist/src/components/DestinationTab/ui/DestinationTab.module.scss.js +23 -0
- package/dist/src/components/FieldInput/ui/FieldInput.module.scss.js +11 -0
- package/dist/src/components/FilterWithSave/ui/s.module.scss.js +39 -0
- package/dist/src/components/Flex/ui/Flex.module.scss.js +41 -0
- package/dist/src/components/FormModal/ui/ModalForm.module.scss.js +31 -0
- package/dist/src/components/GroupedInput/ui/GroupedInputs.module.scss.js +7 -0
- package/dist/src/components/Input/ui/Input.module.scss.js +43 -0
- package/dist/src/components/Logo/assets/LogoBlack.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoRealty.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoValue.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoWhite.svg.js +4 -0
- package/dist/src/components/Logo/ui/Logo.module.scss.js +29 -0
- package/dist/src/components/LotCard/assets/testLot.webp.js +4 -0
- package/dist/src/components/LotCard/ui/LotCard.module.scss.js +71 -0
- package/dist/src/components/LotCardSkeleton/ui/LotCardSkeleton.module.scss.js +59 -0
- package/dist/src/components/MetroLabel/ui/MetroLabel.module.scss.js +15 -0
- package/dist/src/components/MetroTag/ui/MetroTag.module.scss.js +31 -0
- package/dist/src/components/Modal/ui/Modal.module.scss.js +15 -0
- package/dist/src/components/ModalSuccess/styles.module.scss.js +23 -0
- package/dist/src/components/NewIcon/assets/ArrowLong.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/ArrowShort.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Auto.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Building.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Burger.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/BurgerClose.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Call.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Callback.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Case.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Check.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Circle.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Close.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/DirectionDown.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Download.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Filter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Food.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Fullscreen.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Heart.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Layers.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/LayersFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Loader.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Lock.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Metro.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Minus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/MinusCheck.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Moon.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Park.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pedestrian.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Phone.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/PhoneFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pin.svg.js +10 -0
- package/dist/{PinTrans-D6OZq76b.js → src/components/NewIcon/assets/PinTrans.svg.js} +4 -4
- package/dist/src/components/NewIcon/assets/Play.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Play2.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Plus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Redo.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Ruble.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Search.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectChecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectUnchecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Share.svg.js +10 -0
- package/dist/{SmallFilter-C-VKnbkP.js → src/components/NewIcon/assets/SmallFilter.svg.js} +3 -3
- package/dist/src/components/NewIcon/assets/Sport.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SquareMeter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Star.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/StarFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Sun.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Telegram.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Timer.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/TwoArrows.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/User.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WhatsApp.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WithoutDecor.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/arrowRight.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/mail.svg.js +10 -0
- package/dist/src/components/NewIcon/ui/NewIcon.module.scss.js +4 -0
- package/dist/src/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.module.scss.js +25 -0
- package/dist/src/components/RoundButton/ui/RoundButton.module.scss.js +29 -0
- package/dist/src/components/Select/ui/Select.module.scss.js +52 -0
- package/dist/src/components/SliderNavigation/ui/SliderNavigation.module.scss.js +7 -0
- package/dist/src/components/SortSelect/ui/SortSelect.module.scss.js +41 -0
- package/dist/src/components/SummarySelect/ui/SummarySelect.module.scss.js +25 -0
- package/dist/src/components/Switcher/ui/Switcher.module.scss.js +27 -0
- package/dist/src/components/TabSelect/ui/TabSelect.module.scss.js +17 -0
- package/dist/src/components/TabSwitcher/ui/TabSwitcher.module.scss.js +57 -0
- package/dist/src/components/Tag/ui/Tag.module.scss.js +70 -0
- package/dist/src/components/Text/ui/Text.module.scss.js +7 -0
- package/dist/src/components/TextArea/styles.module.scss.js +9 -0
- package/dist/src/components/ZoomControls/ui/ZoomControls.module.scss.js +11 -0
- package/dist/src/components/mobileButton/ui/MobileButton.module.scss.js +12 -0
- package/dist/src/layout/components/Header/s.module.scss.js +19 -0
- package/dist/src/layout/components/Menu.module.scss.js +9 -0
- package/dist/src/layout/style.module.scss.js +7 -0
- package/dist/src/pages/ButtonsPage/ButtonState/ButtonState.js +18 -0
- package/dist/{ButtonState.module-DtW3aevR.js → src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js} +4 -1
- package/dist/src/pages/ButtonsPage/ButtonsPage.module.scss.js +9 -0
- package/dist/src/pages/CheckboxPage/CheckboxPage.module.scss.js +13 -0
- package/dist/src/pages/FormsPage/FormsPage.module.scss.js +15 -0
- package/dist/src/pages/HomePage/HomePage.module.scss.js +7 -0
- package/dist/src/pages/IconsPage/IconsPage.module.scss.js +9 -0
- package/dist/src/pages/InputPage/InputPage.module.scss.js +4 -0
- package/dist/src/pages/LogoPage/LogoPage.module.scss.js +7 -0
- package/dist/src/pages/LotsPage/LotsPage.module.scss.js +13 -0
- package/dist/src/pages/ModalsPage/ModalPage.module.scss.js +4 -0
- package/dist/src/pages/SelectPage/SelectPage.module.scss.js +11 -0
- package/dist/src/pages/TabsPage/TabsPage.module.scss.js +17 -0
- package/dist/src/pages/TagsPage/TagsPage.module.scss.js +7 -0
- package/dist/src/stories/button.css.js +1 -0
- package/dist/src/stories/header.css.js +1 -0
- package/dist/src/stories/page.css.js +1 -0
- package/dist/stories/Button.js +24 -0
- package/dist/stories/Header.js +45 -0
- package/dist/stories/Page.js +59 -0
- package/dist/style.css +1 -1
- package/package.json +11 -6
- package/dist/FilterWithSave-Bp6rH8Pe.js +0 -2230
- package/dist/Menu-CgCfinVZ.js +0 -513
- package/dist/Option-BVIm7wOW.js +0 -83
- package/dist/index-DmANy9jd.js +0 -890
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
package/dist/main.js
CHANGED
|
@@ -1,64 +1,68 @@
|
|
|
1
1
|
import { Button as e } from "./components/Button/ui/Button.js";
|
|
2
2
|
import { MobileButton as p } from "./components/mobileButton/ui/MobileButton.js";
|
|
3
3
|
import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
|
-
import { DestinationTab as
|
|
4
|
+
import { DestinationTab as l } from "./components/DestinationTab/ui/DestinationTab.js";
|
|
5
5
|
import { RoundButton as n } from "./components/RoundButton/ui/RoundButton.js";
|
|
6
|
-
import { Tag as
|
|
6
|
+
import { Tag as S } from "./components/Tag/ui/Tag.js";
|
|
7
7
|
import { Switcher as d } from "./components/Switcher/ui/Switcher.js";
|
|
8
|
-
import { Text as
|
|
9
|
-
import { Flex as
|
|
10
|
-
import { Input as
|
|
11
|
-
import { Modal as
|
|
12
|
-
import { FieldInput as
|
|
13
|
-
import {
|
|
14
|
-
import { GroupedInputs as
|
|
15
|
-
import { Logo as
|
|
16
|
-
import { MetroTag as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
8
|
+
import { Text as C } from "./components/Text/ui/Text.js";
|
|
9
|
+
import { Flex as s } from "./components/Flex/ui/Flex.js";
|
|
10
|
+
import { Input as b } from "./components/Input/ui/Input.js";
|
|
11
|
+
import { Modal as B } from "./components/Modal/ui/Modal.js";
|
|
12
|
+
import { FieldInput as g } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
+
import { TabSwitcher as F } from "./components/TabSwitcher/ui/TabSwitcher.js";
|
|
14
|
+
import { GroupedInputs as L } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
|
+
import { Logo as v } from "./components/Logo/ui/Logo.js";
|
|
16
|
+
import { MetroTag as j } from "./components/MetroTag/ui/MetroTag.js";
|
|
17
|
+
import { LotCard as y } from "./components/LotCard/ui/LotCard.js";
|
|
18
|
+
import { Select as E } from "./components/Select/ui/Select.js";
|
|
19
|
+
import { useClientWidth as P } from "./shared/useClientWidth.js";
|
|
20
|
+
import { deepEqual as Z } from "./shared/deepEqual.js";
|
|
21
|
+
import { SortSelect as A } from "./components/SortSelect/ui/SortSelect.js";
|
|
20
22
|
import { SliderNavigation as J } from "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
21
23
|
import { LotCardSkeleton as O } from "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
22
24
|
import { ProjectCardSkeleton as U } from "./components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js";
|
|
23
25
|
import { TabSelect as X } from "./components/TabSelect/ui/TabSelect.js";
|
|
24
26
|
import { ZoomControls as _ } from "./components/ZoomControls/ui/ZoomControls.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
27
|
+
import { ModalForm as oo } from "./components/FormModal/ui/ModalForm.js";
|
|
28
|
+
import { ModalSuccess as eo } from "./components/ModalSuccess/ModalSuccess.js";
|
|
29
|
+
import { SummarySelect as po } from "./components/SummarySelect/ui/SummarySelect.js";
|
|
30
|
+
import { FilterWithSave as mo } from "./components/FilterWithSave/ui/FilterWithSave.js";
|
|
31
|
+
import { CheckBox as lo } from "./components/CheckBox/CheckBox.js";
|
|
32
|
+
import { CheckBoxNew as no } from "./components/CheckBoxNew/CheckBoxNew.js";
|
|
33
|
+
import { CheckboxSelect as So } from "./components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
30
34
|
export {
|
|
31
35
|
e as Button,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
lo as CheckBox,
|
|
37
|
+
no as CheckBoxNew,
|
|
38
|
+
So as CheckboxSelect,
|
|
39
|
+
l as DestinationTab,
|
|
40
|
+
g as FieldInput,
|
|
41
|
+
mo as FilterWithSave,
|
|
42
|
+
s as Flex,
|
|
43
|
+
L as GroupedInputs,
|
|
44
|
+
b as Input,
|
|
45
|
+
v as Logo,
|
|
46
|
+
y as LotCard,
|
|
43
47
|
O as LotCardSkeleton,
|
|
44
|
-
|
|
48
|
+
j as MetroTag,
|
|
45
49
|
p as MobileButton,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
B as Modal,
|
|
51
|
+
oo as ModalForm,
|
|
52
|
+
eo as ModalSuccess,
|
|
49
53
|
m as NewIcon,
|
|
50
54
|
U as ProjectCardSkeleton,
|
|
51
55
|
n as RoundButton,
|
|
52
|
-
|
|
56
|
+
E as Select,
|
|
53
57
|
J as SliderNavigation,
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
A as SortSelect,
|
|
59
|
+
po as SummarySelect,
|
|
56
60
|
d as Switcher,
|
|
57
61
|
X as TabSelect,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
F as TabSwitcher,
|
|
63
|
+
S as Tag,
|
|
64
|
+
C as Text,
|
|
61
65
|
_ as ZoomControls,
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
Z as deepEqual,
|
|
67
|
+
P as useClientWidth
|
|
64
68
|
};
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remix-run/router v1.19.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
function S() {
|
|
12
|
+
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
13
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
14
|
+
var n = arguments[t];
|
|
15
|
+
for (var a in n)
|
|
16
|
+
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
17
|
+
}
|
|
18
|
+
return e;
|
|
19
|
+
}, S.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
var v;
|
|
22
|
+
(function(e) {
|
|
23
|
+
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
24
|
+
})(v || (v = {}));
|
|
25
|
+
const I = "popstate";
|
|
26
|
+
function oe(e) {
|
|
27
|
+
e === void 0 && (e = {});
|
|
28
|
+
function t(a, r) {
|
|
29
|
+
let {
|
|
30
|
+
pathname: i,
|
|
31
|
+
search: o,
|
|
32
|
+
hash: s
|
|
33
|
+
} = a.location;
|
|
34
|
+
return B(
|
|
35
|
+
"",
|
|
36
|
+
{
|
|
37
|
+
pathname: i,
|
|
38
|
+
search: o,
|
|
39
|
+
hash: s
|
|
40
|
+
},
|
|
41
|
+
// state defaults to `null` because `window.history.state` does
|
|
42
|
+
r.state && r.state.usr || null,
|
|
43
|
+
r.state && r.state.key || "default"
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function n(a, r) {
|
|
47
|
+
return typeof r == "string" ? r : C(r);
|
|
48
|
+
}
|
|
49
|
+
return _(t, n, null, e);
|
|
50
|
+
}
|
|
51
|
+
function y(e, t) {
|
|
52
|
+
if (e === !1 || e === null || typeof e > "u")
|
|
53
|
+
throw new Error(t);
|
|
54
|
+
}
|
|
55
|
+
function b(e, t) {
|
|
56
|
+
if (!e) {
|
|
57
|
+
typeof console < "u" && console.warn(t);
|
|
58
|
+
try {
|
|
59
|
+
throw new Error(t);
|
|
60
|
+
} catch {
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function H() {
|
|
65
|
+
return Math.random().toString(36).substr(2, 8);
|
|
66
|
+
}
|
|
67
|
+
function O(e, t) {
|
|
68
|
+
return {
|
|
69
|
+
usr: e.state,
|
|
70
|
+
key: e.key,
|
|
71
|
+
idx: t
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function B(e, t, n, a) {
|
|
75
|
+
return n === void 0 && (n = null), S({
|
|
76
|
+
pathname: typeof e == "string" ? e : e.pathname,
|
|
77
|
+
search: "",
|
|
78
|
+
hash: ""
|
|
79
|
+
}, typeof t == "string" ? E(t) : t, {
|
|
80
|
+
state: n,
|
|
81
|
+
// TODO: This could be cleaned up. push/replace should probably just take
|
|
82
|
+
// full Locations now and avoid the need to run through this flow at all
|
|
83
|
+
// But that's a pretty big refactor to the current test suite so going to
|
|
84
|
+
// keep as is for the time being and just let any incoming keys take precedence
|
|
85
|
+
key: t && t.key || a || H()
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function C(e) {
|
|
89
|
+
let {
|
|
90
|
+
pathname: t = "/",
|
|
91
|
+
search: n = "",
|
|
92
|
+
hash: a = ""
|
|
93
|
+
} = e;
|
|
94
|
+
return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), a && a !== "#" && (t += a.charAt(0) === "#" ? a : "#" + a), t;
|
|
95
|
+
}
|
|
96
|
+
function E(e) {
|
|
97
|
+
let t = {};
|
|
98
|
+
if (e) {
|
|
99
|
+
let n = e.indexOf("#");
|
|
100
|
+
n >= 0 && (t.hash = e.substr(n), e = e.substr(0, n));
|
|
101
|
+
let a = e.indexOf("?");
|
|
102
|
+
a >= 0 && (t.search = e.substr(a), e = e.substr(0, a)), e && (t.pathname = e);
|
|
103
|
+
}
|
|
104
|
+
return t;
|
|
105
|
+
}
|
|
106
|
+
function _(e, t, n, a) {
|
|
107
|
+
a === void 0 && (a = {});
|
|
108
|
+
let {
|
|
109
|
+
window: r = document.defaultView,
|
|
110
|
+
v5Compat: i = !1
|
|
111
|
+
} = a, o = r.history, s = v.Pop, l = null, c = f();
|
|
112
|
+
c == null && (c = 0, o.replaceState(S({}, o.state, {
|
|
113
|
+
idx: c
|
|
114
|
+
}), ""));
|
|
115
|
+
function f() {
|
|
116
|
+
return (o.state || {
|
|
117
|
+
idx: null
|
|
118
|
+
}).idx;
|
|
119
|
+
}
|
|
120
|
+
function u() {
|
|
121
|
+
s = v.Pop;
|
|
122
|
+
let h = f(), d = h == null ? null : h - c;
|
|
123
|
+
c = h, l && l({
|
|
124
|
+
action: s,
|
|
125
|
+
location: m.location,
|
|
126
|
+
delta: d
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function p(h, d) {
|
|
130
|
+
s = v.Push;
|
|
131
|
+
let g = B(m.location, h, d);
|
|
132
|
+
c = f() + 1;
|
|
133
|
+
let $ = O(g, c), P = m.createHref(g);
|
|
134
|
+
try {
|
|
135
|
+
o.pushState($, "", P);
|
|
136
|
+
} catch (W) {
|
|
137
|
+
if (W instanceof DOMException && W.name === "DataCloneError")
|
|
138
|
+
throw W;
|
|
139
|
+
r.location.assign(P);
|
|
140
|
+
}
|
|
141
|
+
i && l && l({
|
|
142
|
+
action: s,
|
|
143
|
+
location: m.location,
|
|
144
|
+
delta: 1
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function R(h, d) {
|
|
148
|
+
s = v.Replace;
|
|
149
|
+
let g = B(m.location, h, d);
|
|
150
|
+
c = f();
|
|
151
|
+
let $ = O(g, c), P = m.createHref(g);
|
|
152
|
+
o.replaceState($, "", P), i && l && l({
|
|
153
|
+
action: s,
|
|
154
|
+
location: m.location,
|
|
155
|
+
delta: 0
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function w(h) {
|
|
159
|
+
let d = r.location.origin !== "null" ? r.location.origin : r.location.href, g = typeof h == "string" ? h : C(h);
|
|
160
|
+
return g = g.replace(/ $/, "%20"), y(d, "No window.location.(origin|href) available to create URL for href: " + g), new URL(g, d);
|
|
161
|
+
}
|
|
162
|
+
let m = {
|
|
163
|
+
get action() {
|
|
164
|
+
return s;
|
|
165
|
+
},
|
|
166
|
+
get location() {
|
|
167
|
+
return e(r, o);
|
|
168
|
+
},
|
|
169
|
+
listen(h) {
|
|
170
|
+
if (l)
|
|
171
|
+
throw new Error("A history only accepts one active listener");
|
|
172
|
+
return r.addEventListener(I, u), l = h, () => {
|
|
173
|
+
r.removeEventListener(I, u), l = null;
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
createHref(h) {
|
|
177
|
+
return t(r, h);
|
|
178
|
+
},
|
|
179
|
+
createURL: w,
|
|
180
|
+
encodeLocation(h) {
|
|
181
|
+
let d = w(h);
|
|
182
|
+
return {
|
|
183
|
+
pathname: d.pathname,
|
|
184
|
+
search: d.search,
|
|
185
|
+
hash: d.hash
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
push: p,
|
|
189
|
+
replace: R,
|
|
190
|
+
go(h) {
|
|
191
|
+
return o.go(h);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
return m;
|
|
195
|
+
}
|
|
196
|
+
var U;
|
|
197
|
+
(function(e) {
|
|
198
|
+
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
199
|
+
})(U || (U = {}));
|
|
200
|
+
function ce(e, t, n) {
|
|
201
|
+
return n === void 0 && (n = "/"), F(e, t, n, !1);
|
|
202
|
+
}
|
|
203
|
+
function F(e, t, n, a) {
|
|
204
|
+
let r = typeof t == "string" ? E(t) : t, i = ee(r.pathname || "/", n);
|
|
205
|
+
if (i == null)
|
|
206
|
+
return null;
|
|
207
|
+
let o = A(e);
|
|
208
|
+
V(o);
|
|
209
|
+
let s = null;
|
|
210
|
+
for (let l = 0; s == null && l < o.length; ++l) {
|
|
211
|
+
let c = Z(i);
|
|
212
|
+
s = X(o[l], c, a);
|
|
213
|
+
}
|
|
214
|
+
return s;
|
|
215
|
+
}
|
|
216
|
+
function A(e, t, n, a) {
|
|
217
|
+
t === void 0 && (t = []), n === void 0 && (n = []), a === void 0 && (a = "");
|
|
218
|
+
let r = (i, o, s) => {
|
|
219
|
+
let l = {
|
|
220
|
+
relativePath: s === void 0 ? i.path || "" : s,
|
|
221
|
+
caseSensitive: i.caseSensitive === !0,
|
|
222
|
+
childrenIndex: o,
|
|
223
|
+
route: i
|
|
224
|
+
};
|
|
225
|
+
l.relativePath.startsWith("/") && (y(l.relativePath.startsWith(a), 'Absolute route path "' + l.relativePath + '" nested under path ' + ('"' + a + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), l.relativePath = l.relativePath.slice(a.length));
|
|
226
|
+
let c = x([a, l.relativePath]), f = n.concat(l);
|
|
227
|
+
i.children && i.children.length > 0 && (y(
|
|
228
|
+
// Our types know better, but runtime JS may not!
|
|
229
|
+
// @ts-expect-error
|
|
230
|
+
i.index !== !0,
|
|
231
|
+
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
|
|
232
|
+
), A(i.children, t, f, c)), !(i.path == null && !i.index) && t.push({
|
|
233
|
+
path: c,
|
|
234
|
+
score: K(c, i.index),
|
|
235
|
+
routesMeta: f
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
return e.forEach((i, o) => {
|
|
239
|
+
var s;
|
|
240
|
+
if (i.path === "" || !((s = i.path) != null && s.includes("?")))
|
|
241
|
+
r(i, o);
|
|
242
|
+
else
|
|
243
|
+
for (let l of N(i.path))
|
|
244
|
+
r(i, o, l);
|
|
245
|
+
}), t;
|
|
246
|
+
}
|
|
247
|
+
function N(e) {
|
|
248
|
+
let t = e.split("/");
|
|
249
|
+
if (t.length === 0)
|
|
250
|
+
return [];
|
|
251
|
+
let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
|
|
252
|
+
if (a.length === 0)
|
|
253
|
+
return r ? [i, ""] : [i];
|
|
254
|
+
let o = N(a.join("/")), s = [];
|
|
255
|
+
return s.push(...o.map((l) => l === "" ? i : [i, l].join("/"))), r && s.push(...o), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
|
|
256
|
+
}
|
|
257
|
+
function V(e) {
|
|
258
|
+
e.sort((t, n) => t.score !== n.score ? n.score - t.score : Q(t.routesMeta.map((a) => a.childrenIndex), n.routesMeta.map((a) => a.childrenIndex)));
|
|
259
|
+
}
|
|
260
|
+
const k = /^:[\w-]+$/, z = 3, q = 2, D = 1, G = 10, J = -2, j = (e) => e === "*";
|
|
261
|
+
function K(e, t) {
|
|
262
|
+
let n = e.split("/"), a = n.length;
|
|
263
|
+
return n.some(j) && (a += J), t && (a += q), n.filter((r) => !j(r)).reduce((r, i) => r + (k.test(i) ? z : i === "" ? D : G), a);
|
|
264
|
+
}
|
|
265
|
+
function Q(e, t) {
|
|
266
|
+
return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
|
|
267
|
+
// If two routes are siblings, we should try to match the earlier sibling
|
|
268
|
+
// first. This allows people to have fine-grained control over the matching
|
|
269
|
+
// behavior by simply putting routes with identical paths in the order they
|
|
270
|
+
// want them tried.
|
|
271
|
+
e[e.length - 1] - t[t.length - 1]
|
|
272
|
+
) : (
|
|
273
|
+
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
274
|
+
// so they sort equally.
|
|
275
|
+
0
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
function X(e, t, n) {
|
|
279
|
+
let {
|
|
280
|
+
routesMeta: a
|
|
281
|
+
} = e, r = {}, i = "/", o = [];
|
|
282
|
+
for (let s = 0; s < a.length; ++s) {
|
|
283
|
+
let l = a[s], c = s === a.length - 1, f = i === "/" ? t : t.slice(i.length) || "/", u = M({
|
|
284
|
+
path: l.relativePath,
|
|
285
|
+
caseSensitive: l.caseSensitive,
|
|
286
|
+
end: c
|
|
287
|
+
}, f), p = l.route;
|
|
288
|
+
if (!u && c && n && !a[a.length - 1].route.index && (u = M({
|
|
289
|
+
path: l.relativePath,
|
|
290
|
+
caseSensitive: l.caseSensitive,
|
|
291
|
+
end: !1
|
|
292
|
+
}, f)), !u)
|
|
293
|
+
return null;
|
|
294
|
+
Object.assign(r, u.params), o.push({
|
|
295
|
+
// TODO: Can this as be avoided?
|
|
296
|
+
params: r,
|
|
297
|
+
pathname: x([i, u.pathname]),
|
|
298
|
+
pathnameBase: re(x([i, u.pathnameBase])),
|
|
299
|
+
route: p
|
|
300
|
+
}), u.pathnameBase !== "/" && (i = x([i, u.pathnameBase]));
|
|
301
|
+
}
|
|
302
|
+
return o;
|
|
303
|
+
}
|
|
304
|
+
function M(e, t) {
|
|
305
|
+
typeof e == "string" && (e = {
|
|
306
|
+
path: e,
|
|
307
|
+
caseSensitive: !1,
|
|
308
|
+
end: !0
|
|
309
|
+
});
|
|
310
|
+
let [n, a] = Y(e.path, e.caseSensitive, e.end), r = t.match(n);
|
|
311
|
+
if (!r)
|
|
312
|
+
return null;
|
|
313
|
+
let i = r[0], o = i.replace(/(.)\/+$/, "$1"), s = r.slice(1);
|
|
314
|
+
return {
|
|
315
|
+
params: a.reduce((c, f, u) => {
|
|
316
|
+
let {
|
|
317
|
+
paramName: p,
|
|
318
|
+
isOptional: R
|
|
319
|
+
} = f;
|
|
320
|
+
if (p === "*") {
|
|
321
|
+
let m = s[u] || "";
|
|
322
|
+
o = i.slice(0, i.length - m.length).replace(/(.)\/+$/, "$1");
|
|
323
|
+
}
|
|
324
|
+
const w = s[u];
|
|
325
|
+
return R && !w ? c[p] = void 0 : c[p] = (w || "").replace(/%2F/g, "/"), c;
|
|
326
|
+
}, {}),
|
|
327
|
+
pathname: i,
|
|
328
|
+
pathnameBase: o,
|
|
329
|
+
pattern: e
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
function Y(e, t, n) {
|
|
333
|
+
t === void 0 && (t = !1), n === void 0 && (n = !0), b(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(/\*$/, "/*") + '".'));
|
|
334
|
+
let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, s, l) => (a.push({
|
|
335
|
+
paramName: s,
|
|
336
|
+
isOptional: l != null
|
|
337
|
+
}), l ? "/?([^\\/]+)?" : "/([^\\/]+)"));
|
|
338
|
+
return e.endsWith("*") ? (a.push({
|
|
339
|
+
paramName: "*"
|
|
340
|
+
}), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
|
|
341
|
+
}
|
|
342
|
+
function Z(e) {
|
|
343
|
+
try {
|
|
344
|
+
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
345
|
+
} catch (t) {
|
|
346
|
+
return b(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
function ee(e, t) {
|
|
350
|
+
if (t === "/")
|
|
351
|
+
return e;
|
|
352
|
+
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
353
|
+
return null;
|
|
354
|
+
let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
|
|
355
|
+
return a && a !== "/" ? null : e.slice(n) || "/";
|
|
356
|
+
}
|
|
357
|
+
function te(e, t) {
|
|
358
|
+
t === void 0 && (t = "/");
|
|
359
|
+
let {
|
|
360
|
+
pathname: n,
|
|
361
|
+
search: a = "",
|
|
362
|
+
hash: r = ""
|
|
363
|
+
} = typeof e == "string" ? E(e) : e;
|
|
364
|
+
return {
|
|
365
|
+
pathname: n ? n.startsWith("/") ? n : ne(n, t) : t,
|
|
366
|
+
search: ie(a),
|
|
367
|
+
hash: le(r)
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
function ne(e, t) {
|
|
371
|
+
let n = t.replace(/\/+$/, "").split("/");
|
|
372
|
+
return e.split("/").forEach((r) => {
|
|
373
|
+
r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
|
|
374
|
+
}), n.length > 1 ? n.join("/") : "/";
|
|
375
|
+
}
|
|
376
|
+
function L(e, t, n, a) {
|
|
377
|
+
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.';
|
|
378
|
+
}
|
|
379
|
+
function ae(e) {
|
|
380
|
+
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
381
|
+
}
|
|
382
|
+
function he(e, t) {
|
|
383
|
+
let n = ae(e);
|
|
384
|
+
return t ? n.map((a, r) => r === n.length - 1 ? a.pathname : a.pathnameBase) : n.map((a) => a.pathnameBase);
|
|
385
|
+
}
|
|
386
|
+
function ue(e, t, n, a) {
|
|
387
|
+
a === void 0 && (a = !1);
|
|
388
|
+
let r;
|
|
389
|
+
typeof e == "string" ? r = E(e) : (r = S({}, e), y(!r.pathname || !r.pathname.includes("?"), L("?", "pathname", "search", r)), y(!r.pathname || !r.pathname.includes("#"), L("#", "pathname", "hash", r)), y(!r.search || !r.search.includes("#"), L("#", "search", "hash", r)));
|
|
390
|
+
let i = e === "" || r.pathname === "", o = i ? "/" : r.pathname, s;
|
|
391
|
+
if (o == null)
|
|
392
|
+
s = n;
|
|
393
|
+
else {
|
|
394
|
+
let u = t.length - 1;
|
|
395
|
+
if (!a && o.startsWith("..")) {
|
|
396
|
+
let p = o.split("/");
|
|
397
|
+
for (; p[0] === ".."; )
|
|
398
|
+
p.shift(), u -= 1;
|
|
399
|
+
r.pathname = p.join("/");
|
|
400
|
+
}
|
|
401
|
+
s = u >= 0 ? t[u] : "/";
|
|
402
|
+
}
|
|
403
|
+
let l = te(r, s), c = o && o !== "/" && o.endsWith("/"), f = (i || o === ".") && n.endsWith("/");
|
|
404
|
+
return !l.pathname.endsWith("/") && (c || f) && (l.pathname += "/"), l;
|
|
405
|
+
}
|
|
406
|
+
const x = (e) => e.join("/").replace(/\/\/+/g, "/"), re = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), ie = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, le = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
407
|
+
function fe(e) {
|
|
408
|
+
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
409
|
+
}
|
|
410
|
+
const T = ["post", "put", "patch", "delete"];
|
|
411
|
+
new Set(T);
|
|
412
|
+
const se = ["get", ...T];
|
|
413
|
+
new Set(se);
|
|
414
|
+
export {
|
|
415
|
+
v as Action,
|
|
416
|
+
Z as UNSAFE_decodePath,
|
|
417
|
+
he as UNSAFE_getResolveToMatches,
|
|
418
|
+
y as UNSAFE_invariant,
|
|
419
|
+
b as UNSAFE_warning,
|
|
420
|
+
oe as createBrowserHistory,
|
|
421
|
+
C as createPath,
|
|
422
|
+
fe as isRouteErrorResponse,
|
|
423
|
+
x as joinPaths,
|
|
424
|
+
M as matchPath,
|
|
425
|
+
ce as matchRoutes,
|
|
426
|
+
re as normalizePathname,
|
|
427
|
+
E as parsePath,
|
|
428
|
+
te as resolvePath,
|
|
429
|
+
ue as resolveTo,
|
|
430
|
+
ee as stripBasename
|
|
431
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as o } from "../../_virtual/bind.js";
|
|
3
|
+
/*!
|
|
4
|
+
Copyright (c) 2018 Jed Watson.
|
|
5
|
+
Licensed under the MIT License (MIT), see
|
|
6
|
+
http://jedwatson.github.io/classnames
|
|
7
|
+
*/
|
|
8
|
+
(function(e) {
|
|
9
|
+
(function() {
|
|
10
|
+
var f = {}.hasOwnProperty;
|
|
11
|
+
function s() {
|
|
12
|
+
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
13
|
+
var n = arguments[r];
|
|
14
|
+
n && (t = i(t, p.call(this, n)));
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
function p(t) {
|
|
19
|
+
if (typeof t == "string" || typeof t == "number")
|
|
20
|
+
return this && this[t] || t;
|
|
21
|
+
if (typeof t != "object")
|
|
22
|
+
return "";
|
|
23
|
+
if (Array.isArray(t))
|
|
24
|
+
return s.apply(this, t);
|
|
25
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
26
|
+
return t.toString();
|
|
27
|
+
var r = "";
|
|
28
|
+
for (var n in t)
|
|
29
|
+
f.call(t, n) && t[n] && (r = i(r, this && this[n] || n));
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function i(t, r) {
|
|
33
|
+
return r ? t ? t + " " + r : t + r : t;
|
|
34
|
+
}
|
|
35
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
36
|
+
})();
|
|
37
|
+
})(o);
|
|
38
|
+
var c = o.exports;
|
|
39
|
+
const m = /* @__PURE__ */ u(c);
|
|
40
|
+
export {
|
|
41
|
+
m as default
|
|
42
|
+
};
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
var a = { exports: {} };
|
|
1
|
+
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as i } from "../../_virtual/index.js";
|
|
5
3
|
/*!
|
|
6
4
|
Copyright (c) 2018 Jed Watson.
|
|
7
5
|
Licensed under the MIT License (MIT), see
|
|
8
6
|
http://jedwatson.github.io/classnames
|
|
9
7
|
*/
|
|
10
|
-
(function(
|
|
8
|
+
(function(s) {
|
|
11
9
|
(function() {
|
|
12
10
|
var f = {}.hasOwnProperty;
|
|
13
|
-
function
|
|
11
|
+
function e() {
|
|
14
12
|
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
15
13
|
var n = arguments[r];
|
|
16
|
-
n && (t = o(t,
|
|
14
|
+
n && (t = o(t, a(n)));
|
|
17
15
|
}
|
|
18
16
|
return t;
|
|
19
17
|
}
|
|
20
|
-
function
|
|
18
|
+
function a(t) {
|
|
21
19
|
if (typeof t == "string" || typeof t == "number")
|
|
22
20
|
return t;
|
|
23
21
|
if (typeof t != "object")
|
|
24
22
|
return "";
|
|
25
23
|
if (Array.isArray(t))
|
|
26
|
-
return
|
|
24
|
+
return e.apply(null, t);
|
|
27
25
|
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
28
26
|
return t.toString();
|
|
29
27
|
var r = "";
|
|
@@ -34,12 +32,11 @@ var a = { exports: {} };
|
|
|
34
32
|
function o(t, r) {
|
|
35
33
|
return r ? t ? t + " " + r : t + r : t;
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
s.exports ? (e.default = e, s.exports = e) : window.classNames = e;
|
|
38
36
|
})();
|
|
39
|
-
})(
|
|
40
|
-
var
|
|
41
|
-
const
|
|
37
|
+
})(i);
|
|
38
|
+
var p = i.exports;
|
|
39
|
+
const m = /* @__PURE__ */ u(p);
|
|
42
40
|
export {
|
|
43
|
-
|
|
44
|
-
u as g
|
|
41
|
+
m as default
|
|
45
42
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import i from "./html-mask-element.js";
|
|
2
|
+
import l from "../core/holder.js";
|
|
3
|
+
import "./mask-element.js";
|
|
4
|
+
class r extends i {
|
|
5
|
+
/** Returns HTMLElement selection start */
|
|
6
|
+
get _unsafeSelectionStart() {
|
|
7
|
+
const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
|
|
8
|
+
return n == null || e == null || e < n ? e : n;
|
|
9
|
+
}
|
|
10
|
+
/** Returns HTMLElement selection end */
|
|
11
|
+
get _unsafeSelectionEnd() {
|
|
12
|
+
const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
|
|
13
|
+
return n == null || e == null || e > n ? e : n;
|
|
14
|
+
}
|
|
15
|
+
/** Sets HTMLElement selection */
|
|
16
|
+
_unsafeSelect(o, t) {
|
|
17
|
+
if (!this.rootElement.createRange)
|
|
18
|
+
return;
|
|
19
|
+
const e = this.rootElement.createRange();
|
|
20
|
+
e.setStart(this.input.firstChild || this.input, o), e.setEnd(this.input.lastChild || this.input, t);
|
|
21
|
+
const n = this.rootElement, s = n.getSelection && n.getSelection();
|
|
22
|
+
s && (s.removeAllRanges(), s.addRange(e));
|
|
23
|
+
}
|
|
24
|
+
/** HTMLElement value */
|
|
25
|
+
get value() {
|
|
26
|
+
return this.input.textContent || "";
|
|
27
|
+
}
|
|
28
|
+
set value(o) {
|
|
29
|
+
this.input.textContent = o;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
l.HTMLContenteditableMaskElement = r;
|
|
33
|
+
export {
|
|
34
|
+
r as default
|
|
35
|
+
};
|