@dotss/ui 1.0.2 → 1.0.3
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/.scripts/deploy/deploy.env +1 -0
- package/.scripts/deploy/deploy.sh +102 -0
- package/.scripts/deploy/release_body.md +5 -0
- package/.storybook/main.ts +22 -0
- package/.storybook/manager-head.html +6 -0
- package/.storybook/manager.ts +11 -0
- package/.storybook/preview-head.html +16 -0
- package/.storybook/preview.tsx +56 -0
- package/.turbo/turbo-build.log +666 -0
- package/.turbo/turbo-deploy.log +45531 -0
- package/CHANGELOG.md +27 -0
- package/build-storybook.log +129 -0
- package/components/Accordion/Accordion.stories.tsx +138 -0
- package/components/Accordion/Accordion.styles.ts +76 -0
- package/components/Accordion/Accordion.tsx +148 -0
- package/components/Accordion/index.ts +3 -0
- package/components/Autocomplete/Autocomplete.stories.tsx +317 -0
- package/components/Autocomplete/Autocomplete.styles.ts +5 -0
- package/components/Autocomplete/Autocomplete.tsx +478 -0
- package/components/Autocomplete/index.ts +3 -0
- package/components/Backdrop/Backdrop.stories.tsx +84 -0
- package/components/Backdrop/Backdrop.styles.ts +69 -0
- package/components/Backdrop/Backdrop.tsx +140 -0
- package/components/Backdrop/index.ts +3 -0
- package/components/Badge/Badge.stories.tsx +66 -0
- package/components/Badge/Badge.styles.ts +75 -0
- package/components/Badge/Badge.tsx +67 -0
- package/components/Badge/index.ts +3 -0
- package/components/BottomSheet/BottomSheet.stories.tsx +498 -0
- package/components/BottomSheet/BottomSheet.styles.ts +58 -0
- package/components/BottomSheet/BottomSheet.tsx +213 -0
- package/components/BottomSheet/BottomSheetAction/BottomSheetAction.styles.ts +21 -0
- package/components/BottomSheet/BottomSheetAction/BottomSheetAction.tsx +28 -0
- package/components/BottomSheet/BottomSheetAction/index.ts +3 -0
- package/components/BottomSheet/BottomSheetContent/BottomSheetContent.styles.ts +17 -0
- package/components/BottomSheet/BottomSheetContent/BottomSheetContent.tsx +28 -0
- package/components/BottomSheet/BottomSheetContent/index.ts +3 -0
- package/components/BottomSheet/BottomSheetText/BottomSheetText.styles.ts +33 -0
- package/components/BottomSheet/BottomSheetText/BottomSheetText.tsx +36 -0
- package/components/BottomSheet/BottomSheetText/index.ts +3 -0
- package/components/BottomSheet/BottomSheetTitle/BottomSheetTitle.styles.ts +53 -0
- package/components/BottomSheet/BottomSheetTitle/BottomSheetTitle.tsx +45 -0
- package/components/BottomSheet/BottomSheetTitle/index.ts +3 -0
- package/components/BottomSheet/index.ts +8 -0
- package/components/Box/Box.stories.tsx +39 -0
- package/components/Box/Box.styles.ts +59 -0
- package/components/Box/Box.tsx +35 -0
- package/components/Box/index.ts +3 -0
- package/components/Button/Button.stories.tsx +136 -0
- package/components/Button/Button.styles.ts +420 -0
- package/components/Button/Button.test.tsx +68 -0
- package/components/Button/Button.tsx +96 -0
- package/components/Button/index.ts +4 -0
- package/components/Card/Card.stories.tsx +87 -0
- package/components/Card/Card.styles.ts +146 -0
- package/components/Card/Card.tsx +54 -0
- package/components/Card/index.ts +3 -0
- package/components/ChainPicker/ChainPicker.stories.tsx +127 -0
- package/components/ChainPicker/ChainPicker.styles.ts +105 -0
- package/components/ChainPicker/ChainPicker.tsx +283 -0
- package/components/ChainPicker/index.ts +5 -0
- package/components/Checkbox/Checkbox.stories.tsx +52 -0
- package/components/Checkbox/Checkbox.styles.tsx +85 -0
- package/components/Checkbox/Checkbox.tsx +27 -0
- package/components/Checkbox/index.ts +3 -0
- package/components/Chip/Chip.stories.tsx +88 -0
- package/components/Chip/Chip.styles.ts +101 -0
- package/components/Chip/Chip.tsx +58 -0
- package/components/Chip/index.ts +3 -0
- package/components/CircularProgressIndicator/CircularProgressIndicator.stories.tsx +61 -0
- package/components/CircularProgressIndicator/CircularProgressIndicator.styles.ts +78 -0
- package/components/CircularProgressIndicator/CircularProgressIndicator.tsx +56 -0
- package/components/CircularProgressIndicator/index.tsx +3 -0
- package/components/ClickAwayListener/ClickAwayListener.tsx +35 -0
- package/components/ClickAwayListener/index.ts +3 -0
- package/components/DatePicker/DatePicker.stories.tsx +542 -0
- package/components/DatePicker/DatePicker.styles.ts +336 -0
- package/components/DatePicker/DatePicker.tsx +1020 -0
- package/components/DatePicker/EventDot/EventDot.styles.ts +17 -0
- package/components/DatePicker/EventDot/EventDot.tsx +16 -0
- package/components/DatePicker/EventDot/index.ts +3 -0
- package/components/DatePicker/EventDotGroup/EventDotGroup.styles.ts +28 -0
- package/components/DatePicker/EventDotGroup/EventDotGroup.tsx +28 -0
- package/components/DatePicker/EventDotGroup/index.ts +3 -0
- package/components/DatePicker/index.ts +9 -0
- package/components/Dialog/Dialog.stories.tsx +595 -0
- package/components/Dialog/Dialog.styles.ts +50 -0
- package/components/Dialog/Dialog.tsx +161 -0
- package/components/Dialog/DialogAction/DialogAction.styles.ts +14 -0
- package/components/Dialog/DialogAction/DialogAction.tsx +19 -0
- package/components/Dialog/DialogAction/index.ts +3 -0
- package/components/Dialog/DialogContent/DialogContent.styles.ts +10 -0
- package/components/Dialog/DialogContent/DialogContent.tsx +19 -0
- package/components/Dialog/DialogContent/index.ts +3 -0
- package/components/Dialog/DialogText/DialogText.styles.ts +33 -0
- package/components/Dialog/DialogText/DialogText.tsx +33 -0
- package/components/Dialog/DialogText/index.ts +3 -0
- package/components/Dialog/DialogTitle/DialogTitle.styles.ts +65 -0
- package/components/Dialog/DialogTitle/DialogTitle.tsx +36 -0
- package/components/Dialog/DialogTitle/index.ts +3 -0
- package/components/Dialog/index.ts +8 -0
- package/components/Flexbox/Flexbox.stories.tsx +117 -0
- package/components/Flexbox/Flexbox.styles.ts +80 -0
- package/components/Flexbox/Flexbox.tsx +47 -0
- package/components/Flexbox/index.ts +3 -0
- package/components/FocusBoundary/FocusBoundary.tsx +130 -0
- package/components/FocusBoundary/index.ts +3 -0
- package/components/FormControlText/FormControlText.stories.tsx +90 -0
- package/components/FormControlText/FormControlText.styles.ts +55 -0
- package/components/FormControlText/FormControlText.tsx +82 -0
- package/components/FormControlText/index.tsx +3 -0
- package/components/Icon/Icon.stories.tsx +51 -0
- package/components/Icon/Icon.styles.ts +51 -0
- package/components/Icon/Icon.tsx +81 -0
- package/components/Icon/index.ts +3 -0
- package/components/IconButton/IconButton.stories.tsx +45 -0
- package/components/IconButton/IconButton.styles.ts +354 -0
- package/components/IconButton/IconButton.tsx +68 -0
- package/components/IconButton/index.ts +3 -0
- package/components/Label/Label.stories.tsx +87 -0
- package/components/Label/Label.styles.ts +339 -0
- package/components/Label/Label.tsx +64 -0
- package/components/Label/index.ts +3 -0
- package/components/LineProgressIndicator/LineProgressIndicator.stories.tsx +80 -0
- package/components/LineProgressIndicator/LineProgressIndicator.styles.ts +62 -0
- package/components/LineProgressIndicator/LineProgressIndicator.tsx +48 -0
- package/components/LineProgressIndicator/index.ts +3 -0
- package/components/Menu/Menu.stories.tsx +824 -0
- package/components/Menu/Menu.styles.ts +67 -0
- package/components/Menu/Menu.tsx +331 -0
- package/components/Menu/MenuBlock/MenuBlock.styles.ts +121 -0
- package/components/Menu/MenuBlock/MenuBlock.tsx +74 -0
- package/components/Menu/MenuBlock/index.ts +3 -0
- package/components/Menu/MenuButton/MenuButton.tsx +95 -0
- package/components/Menu/MenuButton/index.ts +3 -0
- package/components/Menu/index.ts +6 -0
- package/components/NumberKeypad/NumberKeypad.stories.tsx +113 -0
- package/components/NumberKeypad/NumberKeypad.styles.ts +14 -0
- package/components/NumberKeypad/NumberKeypad.tsx +59 -0
- package/components/NumberKeypad/NumberKeypadBlock/NumberKeypadBlock.styles.ts +114 -0
- package/components/NumberKeypad/NumberKeypadBlock/NumberKeypadBlock.tsx +35 -0
- package/components/NumberKeypad/NumberKeypadBlock/index.ts +3 -0
- package/components/NumberKeypad/index.ts +5 -0
- package/components/PageControl/PageControl.stories.tsx +79 -0
- package/components/PageControl/PageControl.styles.ts +60 -0
- package/components/PageControl/PageControl.tsx +118 -0
- package/components/PageControl/index.ts +3 -0
- package/components/Radio/Radio.stories.tsx +52 -0
- package/components/Radio/Radio.styles.tsx +80 -0
- package/components/Radio/Radio.tsx +27 -0
- package/components/Radio/index.ts +3 -0
- package/components/RadioGroup/RadioGroup.stories.tsx +71 -0
- package/components/RadioGroup/RadioGroup.tsx +49 -0
- package/components/RadioGroup/index.ts +3 -0
- package/components/SegmentedButton/SegmentedButton.stories.tsx +221 -0
- package/components/SegmentedButton/SegmentedButton.styles.ts +42 -0
- package/components/SegmentedButton/SegmentedButton.tsx +173 -0
- package/components/SegmentedButton/SegmentedButtonBlock/SegmentedButtonBlock.styles.ts +179 -0
- package/components/SegmentedButton/SegmentedButtonBlock/SegmentedButtonBlock.tsx +71 -0
- package/components/SegmentedButton/SegmentedButtonBlock/index.ts +3 -0
- package/components/SegmentedButton/index.ts +5 -0
- package/components/Select/Option/Option.styles.ts +115 -0
- package/components/Select/Option/Option.tsx +66 -0
- package/components/Select/Option/index.ts +3 -0
- package/components/Select/Select.stories.tsx +273 -0
- package/components/Select/Select.styles.ts +159 -0
- package/components/Select/Select.tsx +323 -0
- package/components/Select/index.ts +5 -0
- package/components/Skeleton/Skeleton.stories.tsx +54 -0
- package/components/Skeleton/Skeleton.styles.ts +100 -0
- package/components/Skeleton/Skeleton.tsx +41 -0
- package/components/Skeleton/index.ts +3 -0
- package/components/Slider/Slider.stories.tsx +121 -0
- package/components/Slider/Slider.styles.ts +89 -0
- package/components/Slider/Slider.tsx +261 -0
- package/components/Slider/index.ts +3 -0
- package/components/Snackbar/Snackbar.stories.tsx +374 -0
- package/components/Snackbar/Snackbar.styles.ts +138 -0
- package/components/Snackbar/Snackbar.tsx +248 -0
- package/components/Snackbar/index.ts +3 -0
- package/components/Switch/Switch.stories.tsx +97 -0
- package/components/Switch/Switch.styles.ts +210 -0
- package/components/Switch/Switch.tsx +125 -0
- package/components/Switch/index.ts +3 -0
- package/components/Tab/Tab.stories.tsx +240 -0
- package/components/Tab/Tab.styles.ts +48 -0
- package/components/Tab/Tab.tsx +343 -0
- package/components/Tab/TabBlock/TabBlock.styles.ts +53 -0
- package/components/Tab/TabBlock/TabBlock.tsx +67 -0
- package/components/Tab/TabBlock/index.ts +3 -0
- package/components/Tab/index.ts +4 -0
- package/components/TextArea/TextArea.stories.tsx +174 -0
- package/components/TextArea/TextArea.styles.ts +198 -0
- package/components/TextArea/TextArea.tsx +151 -0
- package/components/TextArea/index.ts +3 -0
- package/components/TextField/TextField.stories.tsx +177 -0
- package/components/TextField/TextField.styles.ts +278 -0
- package/components/TextField/TextField.test.tsx +43 -0
- package/components/TextField/TextField.tsx +167 -0
- package/components/TextField/index.ts +3 -0
- package/components/Tooltip/Tooltip.stories.tsx +205 -0
- package/components/Tooltip/Tooltip.styles.ts +288 -0
- package/components/Tooltip/Tooltip.tsx +276 -0
- package/components/Tooltip/index.ts +3 -0
- package/components/Typography/Typography.stories.tsx +161 -0
- package/components/Typography/Typography.styles.ts +63 -0
- package/components/Typography/Typography.tsx +66 -0
- package/components/Typography/index.ts +3 -0
- package/components/index.ts +45 -0
- package/core/GlobalStyle.tsx +72 -0
- package/core/ThemeContext.ts +10 -0
- package/core/ThemeProvider.tsx +34 -0
- package/core/useTheme.ts +11 -0
- package/dist/DatePicker/DatePicker.cjs +100 -0
- package/dist/DatePicker/DatePicker.es.js +818 -0
- package/dist/Icon/Icon.cjs +5 -0
- package/dist/Icon/Icon.es.js +82 -0
- package/dist/Tab/Tab.cjs +18 -0
- package/dist/Tab/Tab.es.js +188 -0
- package/dist/resources/tictoccroc/icons/index.ts-DQT-xh5P.cjs +1 -0
- package/dist/resources/tictoccroc/icons/index.ts-DrS5ov5F.js +240 -0
- package/dist/resources/tictoccroc/icons/line/index.d.ts +78 -0
- package/dist/resources/tictoccroc/icons/line/money-line.svg-BlHnCVds.cjs +1 -0
- package/dist/resources/tictoccroc/icons/line/money-line.svg-CmMXUYQs.js +5 -0
- package/dist/utils/getIconLabel/getIconLabel.cjs +1 -0
- package/dist/utils/getIconLabel/getIconLabel.es.js +125 -0
- package/eslint.config.mjs +10 -0
- package/global.d.ts +1 -0
- package/hooks/index.ts +4 -0
- package/hooks/useCheckHasFocus/useCheckHasFocus.ts +38 -0
- package/hooks/useCheckHoverPossible/useCheckHoverPossible.ts +20 -0
- package/hooks/useCheckKeyboardMode/useCheckKeyboardMode.ts +43 -0
- package/hooks/useFocusBoundary/useFocusBoundary.ts +126 -0
- package/index.ts +1 -0
- package/node_modules/@chromatic-com/storybook/LICENSE +21 -0
- package/node_modules/@chromatic-com/storybook/README.md +61 -0
- package/node_modules/@chromatic-com/storybook/dist/index.js +5 -0
- package/node_modules/@chromatic-com/storybook/dist/index.mjs +3 -0
- package/node_modules/@chromatic-com/storybook/dist/manager.mjs +369 -0
- package/node_modules/@chromatic-com/storybook/dist/preset.js +679 -0
- package/node_modules/@chromatic-com/storybook/package.json +170 -0
- package/node_modules/@chromatic-com/storybook/preset.js +1 -0
- package/node_modules/@chromatic-com/storybook/types.d.ts +4 -0
- package/node_modules/@emotion/react/LICENSE +21 -0
- package/node_modules/@emotion/react/README.md +48 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.mts +3 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.ts +3 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.d.ts +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js +19 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js +11 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js +2 -0
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map +1 -0
- package/node_modules/@emotion/react/_isolated-hnrs/package.json +10 -0
- package/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts +3 -0
- package/node_modules/@emotion/react/dist/declarations/src/class-names.d.ts +18 -0
- package/node_modules/@emotion/react/dist/declarations/src/context.d.ts +6 -0
- package/node_modules/@emotion/react/dist/declarations/src/css.d.ts +5 -0
- package/node_modules/@emotion/react/dist/declarations/src/global.d.ts +7 -0
- package/node_modules/@emotion/react/dist/declarations/src/index.d.ts +14 -0
- package/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts +6 -0
- package/node_modules/@emotion/react/dist/declarations/src/jsx-namespace.d.ts +64 -0
- package/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts +7 -0
- package/node_modules/@emotion/react/dist/declarations/src/jsx.d.ts +22 -0
- package/node_modules/@emotion/react/dist/declarations/src/keyframes.d.ts +10 -0
- package/node_modules/@emotion/react/dist/declarations/src/theming.d.ts +28 -0
- package/node_modules/@emotion/react/dist/declarations/src/types.d.ts +7 -0
- package/node_modules/@emotion/react/dist/emotion-element-010f37fa.development.edge-light.cjs.js +313 -0
- package/node_modules/@emotion/react/dist/emotion-element-25f9958c.browser.cjs.js +191 -0
- package/node_modules/@emotion/react/dist/emotion-element-4787f564.browser.development.cjs.js +274 -0
- package/node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js +240 -0
- package/node_modules/@emotion/react/dist/emotion-element-516430c7.development.edge-light.esm.js +280 -0
- package/node_modules/@emotion/react/dist/emotion-element-782f682d.development.esm.js +282 -0
- package/node_modules/@emotion/react/dist/emotion-element-8113875a.edge-light.esm.js +196 -0
- package/node_modules/@emotion/react/dist/emotion-element-a1829a1e.cjs.js +233 -0
- package/node_modules/@emotion/react/dist/emotion-element-af3dc15b.edge-light.cjs.js +230 -0
- package/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +198 -0
- package/node_modules/@emotion/react/dist/emotion-element-e8f4cc37.development.cjs.js +316 -0
- package/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +156 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.cjs.js +279 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.development.cjs.js +639 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.development.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js +605 -0
- package/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +245 -0
- package/node_modules/@emotion/react/dist/emotion-react.cjs.d.mts +2 -0
- package/node_modules/@emotion/react/dist/emotion-react.cjs.d.ts +2 -0
- package/node_modules/@emotion/react/dist/emotion-react.cjs.js +329 -0
- package/node_modules/@emotion/react/dist/emotion-react.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.cjs.js +689 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.cjs.js +630 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.esm.js +593 -0
- package/node_modules/@emotion/react/dist/emotion-react.development.esm.js +652 -0
- package/node_modules/@emotion/react/dist/emotion-react.edge-light.cjs.js +270 -0
- package/node_modules/@emotion/react/dist/emotion-react.edge-light.cjs.mjs +15 -0
- package/node_modules/@emotion/react/dist/emotion-react.edge-light.esm.js +233 -0
- package/node_modules/@emotion/react/dist/emotion-react.esm.js +292 -0
- package/node_modules/@emotion/react/dist/emotion-react.umd.min.js +2 -0
- package/node_modules/@emotion/react/dist/emotion-react.umd.min.js.map +1 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.d.mts +2 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.d.ts +2 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js +47 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs +4 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js +22 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.umd.min.js +2 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.umd.min.js.map +1 -0
- package/node_modules/@emotion/react/jsx-dev-runtime/package.json +10 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.d.mts +2 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.d.ts +2 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js +55 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs +5 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +29 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.umd.min.js +2 -0
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.umd.min.js.map +1 -0
- package/node_modules/@emotion/react/jsx-runtime/package.json +10 -0
- package/node_modules/@emotion/react/macro.d.mts +1 -0
- package/node_modules/@emotion/react/macro.d.ts +1 -0
- package/node_modules/@emotion/react/macro.js +1 -0
- package/node_modules/@emotion/react/package.json +318 -0
- package/node_modules/@emotion/react/src/_isolated-hnrs.ts +15 -0
- package/node_modules/@emotion/react/src/class-names.tsx +180 -0
- package/node_modules/@emotion/react/src/conditions/false.ts +1 -0
- package/node_modules/@emotion/react/src/conditions/is-browser.ts +1 -0
- package/node_modules/@emotion/react/src/conditions/true.ts +1 -0
- package/node_modules/@emotion/react/src/context.tsx +72 -0
- package/node_modules/@emotion/react/src/css.ts +14 -0
- package/node_modules/@emotion/react/src/emotion-element.tsx +193 -0
- package/node_modules/@emotion/react/src/get-label-from-stack-trace.ts +55 -0
- package/node_modules/@emotion/react/src/global.tsx +147 -0
- package/node_modules/@emotion/react/src/index.ts +63 -0
- package/node_modules/@emotion/react/src/jsx-dev-runtime.ts +37 -0
- package/node_modules/@emotion/react/src/jsx-namespace.ts +107 -0
- package/node_modules/@emotion/react/src/jsx-runtime.ts +32 -0
- package/node_modules/@emotion/react/src/jsx.ts +45 -0
- package/node_modules/@emotion/react/src/keyframes.ts +27 -0
- package/node_modules/@emotion/react/src/theming.tsx +105 -0
- package/node_modules/@emotion/react/src/types.ts +14 -0
- package/node_modules/@emotion/react/src/utils.ts +1 -0
- package/node_modules/@emotion/react/types/css-prop.d.ts +9 -0
- package/node_modules/@emotion/serialize/LICENSE +21 -0
- package/node_modules/@emotion/serialize/dist/declarations/src/index.d.ts +35 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.cjs.d.mts +2 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.cjs.d.ts +2 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js +246 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.cjs.mjs +3 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.development.cjs.js +314 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.development.cjs.mjs +3 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js +304 -0
- package/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
- package/node_modules/@emotion/serialize/package.json +54 -0
- package/node_modules/@emotion/serialize/src/conditions/false.ts +1 -0
- package/node_modules/@emotion/serialize/src/conditions/true.ts +1 -0
- package/node_modules/@emotion/serialize/src/index.ts +451 -0
- package/node_modules/@emotion/styled/LICENSE +21 -0
- package/node_modules/@emotion/styled/README.md +31 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.js +198 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.js +212 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js +185 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +171 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.d.mts +3 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.d.ts +3 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.default.d.ts +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js +216 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.js +230 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.js +228 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.esm.js +201 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js +203 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.js +214 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.esm.js +187 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +189 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js +2 -0
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js.map +1 -0
- package/node_modules/@emotion/styled/base/package.json +9 -0
- package/node_modules/@emotion/styled/dist/declarations/src/base.d.ts +4 -0
- package/node_modules/@emotion/styled/dist/declarations/src/index.d.ts +15 -0
- package/node_modules/@emotion/styled/dist/declarations/src/jsx-namespace.d.ts +5 -0
- package/node_modules/@emotion/styled/dist/declarations/src/types.d.ts +88 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.d.mts +3 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.d.ts +3 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.default.d.ts +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.development.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.default.js +1 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.js +23 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.mjs +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.esm.js +19 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js +2 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js.map +1 -0
- package/node_modules/@emotion/styled/macro.d.mts +3 -0
- package/node_modules/@emotion/styled/macro.d.ts +3 -0
- package/node_modules/@emotion/styled/macro.js +1 -0
- package/node_modules/@emotion/styled/package.json +195 -0
- package/node_modules/@emotion/styled/src/base.tsx +229 -0
- package/node_modules/@emotion/styled/src/conditions/false.ts +1 -0
- package/node_modules/@emotion/styled/src/conditions/is-browser.ts +1 -0
- package/node_modules/@emotion/styled/src/conditions/true.ts +1 -0
- package/node_modules/@emotion/styled/src/index.ts +42 -0
- package/node_modules/@emotion/styled/src/jsx-namespace.ts +12 -0
- package/node_modules/@emotion/styled/src/tags.ts +138 -0
- package/node_modules/@emotion/styled/src/types.ts +190 -0
- package/node_modules/@emotion/styled/src/utils.ts +38 -0
- package/node_modules/@storybook/addon-a11y/README.md +13 -0
- package/node_modules/@storybook/addon-a11y/dist/chunk-CEH6MNVV.mjs +3 -0
- package/node_modules/@storybook/addon-a11y/dist/index.d.ts +40 -0
- package/node_modules/@storybook/addon-a11y/dist/index.js +25 -0
- package/node_modules/@storybook/addon-a11y/dist/index.mjs +8 -0
- package/node_modules/@storybook/addon-a11y/dist/manager.js +11 -0
- package/node_modules/@storybook/addon-a11y/dist/matchers-7Z3WT2CE.mjs +16 -0
- package/node_modules/@storybook/addon-a11y/dist/matchers-TIWVOQAP.mjs +18 -0
- package/node_modules/@storybook/addon-a11y/dist/postinstall.js +69 -0
- package/node_modules/@storybook/addon-a11y/dist/preview.d.ts +25 -0
- package/node_modules/@storybook/addon-a11y/dist/preview.js +24 -0
- package/node_modules/@storybook/addon-a11y/dist/preview.mjs +7 -0
- package/node_modules/@storybook/addon-a11y/manager.js +1 -0
- package/node_modules/@storybook/addon-a11y/package.json +115 -0
- package/node_modules/@storybook/addon-a11y/preview.js +1 -0
- package/node_modules/@storybook/addon-docs/README.md +154 -0
- package/node_modules/@storybook/addon-docs/angular/README.md +256 -0
- package/node_modules/@storybook/addon-docs/angular/index.d.ts +1 -0
- package/node_modules/@storybook/addon-docs/angular/index.js +6 -0
- package/node_modules/@storybook/addon-docs/common/README.md +98 -0
- package/node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs +2 -0
- package/node_modules/@storybook/addon-docs/dist/blocks.d.ts +2 -0
- package/node_modules/@storybook/addon-docs/dist/blocks.js +1 -0
- package/node_modules/@storybook/addon-docs/dist/blocks.mjs +4 -0
- package/node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs +3 -0
- package/node_modules/@storybook/addon-docs/dist/chunk-NUUEMKO5.mjs +7 -0
- package/node_modules/@storybook/addon-docs/dist/chunk-PRSJUHPQ.mjs +5 -0
- package/node_modules/@storybook/addon-docs/dist/index.d.ts +198 -0
- package/node_modules/@storybook/addon-docs/dist/index.js +1 -0
- package/node_modules/@storybook/addon-docs/dist/index.mjs +9 -0
- package/node_modules/@storybook/addon-docs/dist/manager.d.ts +2 -0
- package/node_modules/@storybook/addon-docs/dist/manager.js +1 -0
- package/node_modules/@storybook/addon-docs/dist/manager.mjs +8 -0
- package/node_modules/@storybook/addon-docs/dist/mdx-loader.d.ts +5940 -0
- package/node_modules/@storybook/addon-docs/dist/mdx-loader.js +56 -0
- package/node_modules/@storybook/addon-docs/dist/mdx-loader.mjs +59 -0
- package/node_modules/@storybook/addon-docs/dist/preset.d.ts +20 -0
- package/node_modules/@storybook/addon-docs/dist/preset.js +53 -0
- package/node_modules/@storybook/addon-docs/dist/preview.d.ts +3 -0
- package/node_modules/@storybook/addon-docs/dist/preview.js +1 -0
- package/node_modules/@storybook/addon-docs/dist/preview.mjs +2 -0
- package/node_modules/@storybook/addon-docs/dist/shims/mdx-react-shim.d.ts +1 -0
- package/node_modules/@storybook/addon-docs/dist/shims/mdx-react-shim.js +1 -0
- package/node_modules/@storybook/addon-docs/dist/shims/mdx-react-shim.mjs +1 -0
- package/node_modules/@storybook/addon-docs/ember/README.md +153 -0
- package/node_modules/@storybook/addon-docs/ember/index.d.ts +1 -0
- package/node_modules/@storybook/addon-docs/ember/index.js +5 -0
- package/node_modules/@storybook/addon-docs/package.json +171 -0
- package/node_modules/@storybook/addon-docs/preset.js +1 -0
- package/node_modules/@storybook/addon-docs/preview.js +1 -0
- package/node_modules/@storybook/addon-docs/react/README.md +149 -0
- package/node_modules/@storybook/addon-docs/svelte/HOC.svelte +7 -0
- package/node_modules/@storybook/addon-docs/vue/README.md +152 -0
- package/node_modules/@storybook/addon-docs/web-components/README.md +131 -0
- package/node_modules/@storybook/addon-docs/web-components/index.js +1 -0
- package/node_modules/@storybook/addon-essentials/README.md +57 -0
- package/node_modules/@storybook/addon-essentials/dist/actions/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/actions/preview.d.ts +7 -0
- package/node_modules/@storybook/addon-essentials/dist/actions/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/actions/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/backgrounds/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/backgrounds/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/backgrounds/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/controls/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/mdx-react-shim.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/preset.js +14 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/docs/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/highlight/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/highlight/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/index.d.ts +5 -0
- package/node_modules/@storybook/addon-essentials/dist/index.js +42 -0
- package/node_modules/@storybook/addon-essentials/dist/index.mjs +12 -0
- package/node_modules/@storybook/addon-essentials/dist/measure/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/measure/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/measure/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/measure/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/outline/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/outline/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/outline/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/outline/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/dist/preset.js +9 -0
- package/node_modules/@storybook/addon-essentials/dist/preview.d.ts +5 -0
- package/node_modules/@storybook/addon-essentials/dist/preview.js +42 -0
- package/node_modules/@storybook/addon-essentials/dist/preview.mjs +12 -0
- package/node_modules/@storybook/addon-essentials/dist/toolbars/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/viewport/manager.js +1 -0
- package/node_modules/@storybook/addon-essentials/dist/viewport/preview.d.ts +1 -0
- package/node_modules/@storybook/addon-essentials/dist/viewport/preview.js +12 -0
- package/node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs +1 -0
- package/node_modules/@storybook/addon-essentials/package.json +162 -0
- package/node_modules/@storybook/addon-essentials/preset.js +1 -0
- package/node_modules/@storybook/addon-interactions/README.md +57 -0
- package/node_modules/@storybook/addon-interactions/dist/index.d.ts +5 -0
- package/node_modules/@storybook/addon-interactions/dist/index.js +9 -0
- package/node_modules/@storybook/addon-interactions/dist/index.mjs +7 -0
- package/node_modules/@storybook/addon-interactions/dist/manager.css +1 -0
- package/node_modules/@storybook/addon-interactions/dist/manager.js +19 -0
- package/node_modules/@storybook/addon-interactions/dist/preset.js +9 -0
- package/node_modules/@storybook/addon-interactions/dist/preview.d.ts +20 -0
- package/node_modules/@storybook/addon-interactions/dist/preview.js +9 -0
- package/node_modules/@storybook/addon-interactions/dist/preview.mjs +6 -0
- package/node_modules/@storybook/addon-interactions/manager.js +1 -0
- package/node_modules/@storybook/addon-interactions/package.json +109 -0
- package/node_modules/@storybook/addon-interactions/preset.js +1 -0
- package/node_modules/@storybook/addon-interactions/preview.js +1 -0
- package/node_modules/@storybook/addon-links/README.md +147 -0
- package/node_modules/@storybook/addon-links/dist/chunk-DQW2J2JG.mjs +8 -0
- package/node_modules/@storybook/addon-links/dist/index.d.ts +20 -0
- package/node_modules/@storybook/addon-links/dist/index.js +16 -0
- package/node_modules/@storybook/addon-links/dist/index.mjs +7 -0
- package/node_modules/@storybook/addon-links/dist/manager.js +3 -0
- package/node_modules/@storybook/addon-links/dist/preview.d.ts +3 -0
- package/node_modules/@storybook/addon-links/dist/preview.js +10 -0
- package/node_modules/@storybook/addon-links/dist/preview.mjs +8 -0
- package/node_modules/@storybook/addon-links/dist/react/index.d.ts +24 -0
- package/node_modules/@storybook/addon-links/dist/react/index.js +15 -0
- package/node_modules/@storybook/addon-links/dist/react/index.mjs +6 -0
- package/node_modules/@storybook/addon-links/manager.js +1 -0
- package/node_modules/@storybook/addon-links/package.json +110 -0
- package/node_modules/@storybook/addon-links/preview.js +1 -0
- package/node_modules/@storybook/addon-links/react.d.ts +1 -0
- package/node_modules/@storybook/addon-links/react.js +3 -0
- package/node_modules/@storybook/addon-viewport/README.md +29 -0
- package/node_modules/@storybook/addon-viewport/dist/index.d.ts +311 -0
- package/node_modules/@storybook/addon-viewport/dist/index.js +12 -0
- package/node_modules/@storybook/addon-viewport/dist/index.mjs +5 -0
- package/node_modules/@storybook/addon-viewport/dist/manager.js +9 -0
- package/node_modules/@storybook/addon-viewport/dist/preview.d.ts +19 -0
- package/node_modules/@storybook/addon-viewport/dist/preview.js +5 -0
- package/node_modules/@storybook/addon-viewport/dist/preview.mjs +3 -0
- package/node_modules/@storybook/addon-viewport/manager.js +1 -0
- package/node_modules/@storybook/addon-viewport/package.json +98 -0
- package/node_modules/@storybook/addon-viewport/preview.js +1 -0
- package/node_modules/@storybook/blocks/README.md +23 -0
- package/node_modules/@storybook/blocks/dist/Color-YHDXOIA2.mjs +9 -0
- package/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs +3 -0
- package/node_modules/@storybook/blocks/dist/index.d.ts +1032 -0
- package/node_modules/@storybook/blocks/dist/index.js +198 -0
- package/node_modules/@storybook/blocks/dist/index.mjs +214 -0
- package/node_modules/@storybook/blocks/package.json +86 -0
- package/node_modules/@storybook/manager-api/package.json +46 -0
- package/node_modules/@storybook/manager-api/shim.d.ts +2 -0
- package/node_modules/@storybook/manager-api/shim.js +1 -0
- package/node_modules/@storybook/manager-api/shim.mjs +1 -0
- package/node_modules/@storybook/react/README.md +1 -0
- package/node_modules/@storybook/react/dist/chunk-EWIU6LHT.mjs +56 -0
- package/node_modules/@storybook/react/dist/chunk-TENYCC3B.mjs +8 -0
- package/node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs +3 -0
- package/node_modules/@storybook/react/dist/chunk-ZGTCCPPZ.mjs +7 -0
- package/node_modules/@storybook/react/dist/entry-preview-docs.d.ts +20 -0
- package/node_modules/@storybook/react/dist/entry-preview-docs.js +47 -0
- package/node_modules/@storybook/react/dist/entry-preview-docs.mjs +2 -0
- package/node_modules/@storybook/react/dist/entry-preview-rsc.d.ts +7 -0
- package/node_modules/@storybook/react/dist/entry-preview-rsc.js +1 -0
- package/node_modules/@storybook/react/dist/entry-preview-rsc.mjs +5 -0
- package/node_modules/@storybook/react/dist/entry-preview.d.ts +19 -0
- package/node_modules/@storybook/react/dist/entry-preview.js +1 -0
- package/node_modules/@storybook/react/dist/entry-preview.mjs +2 -0
- package/node_modules/@storybook/react/dist/index.d.ts +91 -0
- package/node_modules/@storybook/react/dist/index.js +47 -0
- package/node_modules/@storybook/react/dist/index.mjs +11 -0
- package/node_modules/@storybook/react/dist/playwright.d.ts +1 -0
- package/node_modules/@storybook/react/dist/playwright.js +1 -0
- package/node_modules/@storybook/react/dist/playwright.mjs +2 -0
- package/node_modules/@storybook/react/dist/preset.d.ts +18 -0
- package/node_modules/@storybook/react/dist/preset.js +1 -0
- package/node_modules/@storybook/react/dist/preview.d.ts +199 -0
- package/node_modules/@storybook/react/dist/preview.js +47 -0
- package/node_modules/@storybook/react/dist/preview.mjs +4 -0
- package/node_modules/@storybook/react/dist/public-types-f2c70f25.d.ts +230 -0
- package/node_modules/@storybook/react/dist/types-5617c98e.d.ts +27 -0
- package/node_modules/@storybook/react/package.json +136 -0
- package/node_modules/@storybook/react/preset.js +1 -0
- package/node_modules/@storybook/react/template/cli/.eslintrc.json +5 -0
- package/node_modules/@storybook/react/template/cli/js/Button.jsx +39 -0
- package/node_modules/@storybook/react/template/cli/js/Button.stories.js +49 -0
- package/node_modules/@storybook/react/template/cli/js/Header.jsx +56 -0
- package/node_modules/@storybook/react/template/cli/js/Header.stories.js +29 -0
- package/node_modules/@storybook/react/template/cli/js/Page.jsx +69 -0
- package/node_modules/@storybook/react/template/cli/js/Page.stories.js +28 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Button.stories.ts +53 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Button.tsx +37 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Header.stories.ts +33 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Header.tsx +56 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Page.stories.ts +32 -0
- package/node_modules/@storybook/react/template/cli/ts-3-8/Page.tsx +73 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Button.stories.ts +53 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Button.tsx +37 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Header.stories.ts +33 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Header.tsx +56 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Page.stories.ts +32 -0
- package/node_modules/@storybook/react/template/cli/ts-4-9/Page.tsx +73 -0
- package/node_modules/@storybook/react-vite/README.md +3 -0
- package/node_modules/@storybook/react-vite/dist/index.d.ts +49 -0
- package/node_modules/@storybook/react-vite/dist/index.js +1 -0
- package/node_modules/@storybook/react-vite/dist/index.mjs +1 -0
- package/node_modules/@storybook/react-vite/dist/node/index.d.ts +9 -0
- package/node_modules/@storybook/react-vite/dist/node/index.js +1 -0
- package/node_modules/@storybook/react-vite/dist/node/index.mjs +3 -0
- package/node_modules/@storybook/react-vite/dist/preset.d.ts +10 -0
- package/node_modules/@storybook/react-vite/dist/preset.js +1 -0
- package/node_modules/@storybook/react-vite/package.json +111 -0
- package/node_modules/@storybook/react-vite/preset.js +1 -0
- package/node_modules/@storybook/test/README.md +41 -0
- package/node_modules/@storybook/test/dist/index.d.ts +186 -0
- package/node_modules/@storybook/test/dist/index.js +193 -0
- package/node_modules/@storybook/test/dist/index.mjs +199 -0
- package/node_modules/@storybook/test/package.json +85 -0
- package/node_modules/@storybook/theming/create.d.ts +2 -0
- package/node_modules/@storybook/theming/create.js +1 -0
- package/node_modules/@storybook/theming/create.mjs +1 -0
- package/node_modules/@storybook/theming/package.json +52 -0
- package/node_modules/@storybook/theming/shim.d.ts +2 -0
- package/node_modules/@storybook/theming/shim.js +1 -0
- package/node_modules/@storybook/theming/shim.mjs +1 -0
- package/node_modules/@testing-library/jest-dom/LICENSE +20 -0
- package/node_modules/@testing-library/jest-dom/README.md +1706 -0
- package/node_modules/@testing-library/jest-dom/dist/index.js +12 -0
- package/node_modules/@testing-library/jest-dom/dist/index.mjs +10 -0
- package/node_modules/@testing-library/jest-dom/dist/jest-globals.js +16 -0
- package/node_modules/@testing-library/jest-dom/dist/jest-globals.mjs +14 -0
- package/node_modules/@testing-library/jest-dom/dist/matchers-7fb38cd4.js +1945 -0
- package/node_modules/@testing-library/jest-dom/dist/matchers-c85aadf8.mjs +1914 -0
- package/node_modules/@testing-library/jest-dom/dist/matchers.js +42 -0
- package/node_modules/@testing-library/jest-dom/dist/matchers.mjs +8 -0
- package/node_modules/@testing-library/jest-dom/dist/vitest.js +16 -0
- package/node_modules/@testing-library/jest-dom/dist/vitest.mjs +14 -0
- package/node_modules/@testing-library/jest-dom/jest-globals.d.ts +1 -0
- package/node_modules/@testing-library/jest-dom/jest-globals.js +4 -0
- package/node_modules/@testing-library/jest-dom/matchers.d.ts +3 -0
- package/node_modules/@testing-library/jest-dom/matchers.js +2 -0
- package/node_modules/@testing-library/jest-dom/package.json +153 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/bun/bun-custom-expect-types.test.ts +100 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/bun/bun-types.test.ts +120 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/bun/tsconfig.json +9 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest/jest-custom-expect-types.test.ts +100 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest/jest-types.test.ts +119 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest/tsconfig.json +9 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest-globals/jest-globals-custom-expect-types.test.ts +97 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest-globals/jest-globals-types.test.ts +120 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/jest-globals/tsconfig.json +9 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/vitest/tsconfig.json +9 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/vitest/vitest-custom-expect-types.test.ts +97 -0
- package/node_modules/@testing-library/jest-dom/types/__tests__/vitest/vitest-types.test.ts +120 -0
- package/node_modules/@testing-library/jest-dom/types/bun.d.ts +11 -0
- package/node_modules/@testing-library/jest-dom/types/index.d.ts +1 -0
- package/node_modules/@testing-library/jest-dom/types/jest-globals.d.ts +11 -0
- package/node_modules/@testing-library/jest-dom/types/jest.d.ts +13 -0
- package/node_modules/@testing-library/jest-dom/types/matchers-standalone.d.ts +30 -0
- package/node_modules/@testing-library/jest-dom/types/matchers.d.ts +771 -0
- package/node_modules/@testing-library/jest-dom/types/vitest.d.ts +15 -0
- package/node_modules/@testing-library/jest-dom/vitest.d.ts +1 -0
- package/node_modules/@testing-library/jest-dom/vitest.js +4 -0
- package/node_modules/@testing-library/react/LICENSE +20 -0
- package/node_modules/@testing-library/react/README.md +688 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js +532 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.esm.js +492 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js +496 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js +456 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js +13017 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js +2 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.js +13053 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js +2 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js.map +1 -0
- package/node_modules/@testing-library/react/dist/act-compat.js +81 -0
- package/node_modules/@testing-library/react/dist/config.js +33 -0
- package/node_modules/@testing-library/react/dist/fire-event.js +70 -0
- package/node_modules/@testing-library/react/dist/index.js +52 -0
- package/node_modules/@testing-library/react/dist/pure.js +335 -0
- package/node_modules/@testing-library/react/dont-cleanup-after-each.js +1 -0
- package/node_modules/@testing-library/react/package.json +111 -0
- package/node_modules/@testing-library/react/pure.d.ts +1 -0
- package/node_modules/@testing-library/react/pure.js +2 -0
- package/node_modules/@testing-library/react/types/index.d.ts +257 -0
- package/node_modules/@testing-library/react/types/pure.d.ts +1 -0
- package/node_modules/@testing-library/user-event/LICENSE +20 -0
- package/node_modules/@testing-library/user-event/README.md +124 -0
- package/node_modules/@testing-library/user-event/dist/cjs/clipboard/copy.js +22 -0
- package/node_modules/@testing-library/user-event/dist/cjs/clipboard/cut.js +22 -0
- package/node_modules/@testing-library/user-event/dist/cjs/clipboard/index.js +11 -0
- package/node_modules/@testing-library/user-event/dist/cjs/clipboard/paste.js +25 -0
- package/node_modules/@testing-library/user-event/dist/cjs/convenience/click.js +35 -0
- package/node_modules/@testing-library/user-event/dist/cjs/convenience/hover.js +19 -0
- package/node_modules/@testing-library/user-event/dist/cjs/convenience/index.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/convenience/tab.js +7 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/UI.js +92 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/copySelection.js +29 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/getValueOrTextContent.js +18 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/index.js +17 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/interceptor.js +104 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/patchFocus.js +104 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/prepareDocument.js +58 -0
- package/node_modules/@testing-library/user-event/dist/cjs/document/trackValue.js +57 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/click.js +32 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/cut.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/index.js +13 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/keydown.js +128 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/keypress.js +51 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/keyup.js +17 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/paste.js +18 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/behavior/registry.js +5 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/createEvent.js +207 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/dispatchEvent.js +54 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/eventMap.js +281 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/focus.js +34 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/index.js +22 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/input.js +157 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/radio.js +27 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/getInputRange.js +18 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/getTargetTypeAndSelection.js +31 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/index.js +24 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/modifySelection.js +21 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/modifySelectionPerMouse.js +40 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/moveSelection.js +38 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/resolveCaretPosition.js +61 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/selectAll.js +38 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/setSelection.js +21 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/setSelectionPerMouse.js +81 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/setSelectionRange.js +31 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/selection/updateSelectionOnFocus.js +40 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/types.js +2 -0
- package/node_modules/@testing-library/user-event/dist/cjs/event/wrapEvent.js +9 -0
- package/node_modules/@testing-library/user-event/dist/cjs/index.js +12 -0
- package/node_modules/@testing-library/user-event/dist/cjs/keyboard/index.js +40 -0
- package/node_modules/@testing-library/user-event/dist/cjs/keyboard/keyMap.js +178 -0
- package/node_modules/@testing-library/user-event/dist/cjs/keyboard/parseKeyDef.js +45 -0
- package/node_modules/@testing-library/user-event/dist/cjs/options.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/package.json +3 -0
- package/node_modules/@testing-library/user-event/dist/cjs/pointer/index.js +74 -0
- package/node_modules/@testing-library/user-event/dist/cjs/pointer/keyMap.js +33 -0
- package/node_modules/@testing-library/user-event/dist/cjs/pointer/parseKeyDef.js +23 -0
- package/node_modules/@testing-library/user-event/dist/cjs/setup/api.js +35 -0
- package/node_modules/@testing-library/user-event/dist/cjs/setup/directApi.js +75 -0
- package/node_modules/@testing-library/user-event/dist/cjs/setup/index.js +11 -0
- package/node_modules/@testing-library/user-event/dist/cjs/setup/setup.js +125 -0
- package/node_modules/@testing-library/user-event/dist/cjs/setup/wrapAsync.js +11 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/index.js +44 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/keyboard.js +169 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/buttons.js +84 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/device.js +34 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/index.js +159 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/mouse.js +207 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/pointer.js +131 -0
- package/node_modules/@testing-library/user-event/dist/cjs/system/pointer/shared.js +8 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utility/clear.js +32 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utility/index.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utility/selectOptions.js +114 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utility/type.js +23 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utility/upload.js +62 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/click/isClickableInput.js +20 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/dataTransfer/Blob.js +16 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/dataTransfer/Clipboard.js +169 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/dataTransfer/DataTransfer.js +136 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/dataTransfer/FileList.js +24 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/edit/isContentEditable.js +18 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/edit/isEditable.js +29 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/edit/maxLength.js +26 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/edit/setFiles.js +59 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/edit/timeValue.js +40 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/cursor.js +126 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/getActiveElement.js +23 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/getTabDestination.js +80 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/isFocusable.js +9 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/selection.js +20 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/focus/selector.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/index.js +78 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/keyDef/readNextDescriptor.js +92 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/cloneEvent.js +7 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/findClosest.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/getDocumentFromNode.js +10 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/getTreeDiff.js +25 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/getWindow.js +19 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/isDescendantOrSelf.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/isDisabled.js +33 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/isElementType.js +20 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/isVisible.js +19 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/level.js +17 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/misc/wait.js +14 -0
- package/node_modules/@testing-library/user-event/dist/cjs/utils/pointer/cssPointerEvents.js +103 -0
- package/node_modules/@testing-library/user-event/dist/esm/clipboard/copy.js +20 -0
- package/node_modules/@testing-library/user-event/dist/esm/clipboard/cut.js +20 -0
- package/node_modules/@testing-library/user-event/dist/esm/clipboard/index.js +3 -0
- package/node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js +23 -0
- package/node_modules/@testing-library/user-event/dist/esm/convenience/click.js +31 -0
- package/node_modules/@testing-library/user-event/dist/esm/convenience/hover.js +16 -0
- package/node_modules/@testing-library/user-event/dist/esm/convenience/index.js +3 -0
- package/node_modules/@testing-library/user-event/dist/esm/convenience/tab.js +5 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/UI.js +79 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/copySelection.js +27 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/getValueOrTextContent.js +16 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/index.js +4 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/interceptor.js +99 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/patchFocus.js +101 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/prepareDocument.js +56 -0
- package/node_modules/@testing-library/user-event/dist/esm/document/trackValue.js +53 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/click.js +30 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/cut.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/index.js +7 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/keydown.js +126 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/keypress.js +49 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/keyup.js +15 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/paste.js +16 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/behavior/registry.js +3 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/createEvent.js +205 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js +50 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/eventMap.js +277 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/focus.js +31 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/index.js +7 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/input.js +155 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/radio.js +25 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/getInputRange.js +16 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/getTargetTypeAndSelection.js +29 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/index.js +9 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelection.js +19 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelectionPerMouse.js +38 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/moveSelection.js +36 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/resolveCaretPosition.js +59 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/selectAll.js +35 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/setSelection.js +19 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionPerMouse.js +79 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionRange.js +29 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/selection/updateSelectionOnFocus.js +38 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/types.js +1 -0
- package/node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js +7 -0
- package/node_modules/@testing-library/user-event/dist/esm/index.js +2 -0
- package/node_modules/@testing-library/user-event/dist/esm/keyboard/index.js +37 -0
- package/node_modules/@testing-library/user-event/dist/esm/keyboard/keyMap.js +176 -0
- package/node_modules/@testing-library/user-event/dist/esm/keyboard/parseKeyDef.js +43 -0
- package/node_modules/@testing-library/user-event/dist/esm/options.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/package.json +3 -0
- package/node_modules/@testing-library/user-event/dist/esm/pointer/index.js +72 -0
- package/node_modules/@testing-library/user-event/dist/esm/pointer/keyMap.js +31 -0
- package/node_modules/@testing-library/user-event/dist/esm/pointer/parseKeyDef.js +21 -0
- package/node_modules/@testing-library/user-event/dist/esm/setup/api.js +33 -0
- package/node_modules/@testing-library/user-event/dist/esm/setup/directApi.js +58 -0
- package/node_modules/@testing-library/user-event/dist/esm/setup/index.js +9 -0
- package/node_modules/@testing-library/user-event/dist/esm/setup/setup.js +119 -0
- package/node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js +9 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/index.js +42 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/keyboard.js +166 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/buttons.js +78 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/device.js +32 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/index.js +157 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/mouse.js +205 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/pointer.js +129 -0
- package/node_modules/@testing-library/user-event/dist/esm/system/pointer/shared.js +6 -0
- package/node_modules/@testing-library/user-event/dist/esm/utility/clear.js +30 -0
- package/node_modules/@testing-library/user-event/dist/esm/utility/index.js +4 -0
- package/node_modules/@testing-library/user-event/dist/esm/utility/selectOptions.js +111 -0
- package/node_modules/@testing-library/user-event/dist/esm/utility/type.js +21 -0
- package/node_modules/@testing-library/user-event/dist/esm/utility/upload.js +60 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/click/isClickableInput.js +18 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Blob.js +14 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Clipboard.js +162 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/DataTransfer.js +133 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/FileList.js +22 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/edit/isContentEditable.js +15 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/edit/isEditable.js +26 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/edit/maxLength.js +23 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/edit/setFiles.js +57 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/edit/timeValue.js +37 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/cursor.js +124 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/getActiveElement.js +20 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js +78 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/isFocusable.js +7 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/selection.js +17 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/focus/selector.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/index.js +29 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/keyDef/readNextDescriptor.js +90 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/cloneEvent.js +5 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/findClosest.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/getDocumentFromNode.js +8 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js +23 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/getWindow.js +17 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/isDescendantOrSelf.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/isDisabled.js +31 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/isElementType.js +18 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/isVisible.js +17 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/level.js +13 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/misc/wait.js +12 -0
- package/node_modules/@testing-library/user-event/dist/esm/utils/pointer/cssPointerEvents.js +100 -0
- package/node_modules/@testing-library/user-event/dist/types/clipboard/copy.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/clipboard/cut.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/clipboard/index.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/clipboard/paste.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/convenience/click.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/convenience/hover.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/convenience/index.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/convenience/tab.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/document/UI.d.ts +42 -0
- package/node_modules/@testing-library/user-event/dist/types/document/copySelection.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/document/getValueOrTextContent.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/document/index.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/document/interceptor.d.ts +19 -0
- package/node_modules/@testing-library/user-event/dist/types/document/patchFocus.d.ts +9 -0
- package/node_modules/@testing-library/user-event/dist/types/document/prepareDocument.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/document/trackValue.d.ts +17 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/click.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/cut.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/index.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/keydown.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/keypress.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/keyup.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/paste.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/event/behavior/registry.d.ts +9 -0
- package/node_modules/@testing-library/user-event/dist/types/event/createEvent.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/event/dispatchEvent.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/event/eventMap.d.ts +265 -0
- package/node_modules/@testing-library/user-event/dist/types/event/focus.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/event/index.d.ts +7 -0
- package/node_modules/@testing-library/user-event/dist/types/event/input.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/event/radio.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/getInputRange.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/getTargetTypeAndSelection.d.ts +10 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/index.d.ts +15 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/modifySelection.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/modifySelectionPerMouse.d.ts +7 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/moveSelection.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/resolveCaretPosition.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/selectAll.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/setSelection.d.ts +10 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/setSelectionPerMouse.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/setSelectionRange.d.ts +6 -0
- package/node_modules/@testing-library/user-event/dist/types/event/selection/updateSelectionOnFocus.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/event/types.d.ts +20 -0
- package/node_modules/@testing-library/user-event/dist/types/event/wrapEvent.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/index.d.ts +6 -0
- package/node_modules/@testing-library/user-event/dist/types/keyboard/index.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/keyboard/keyMap.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/keyboard/parseKeyDef.d.ts +17 -0
- package/node_modules/@testing-library/user-event/dist/types/options.d.ts +115 -0
- package/node_modules/@testing-library/user-event/dist/types/pointer/index.d.ts +28 -0
- package/node_modules/@testing-library/user-event/dist/types/pointer/keyMap.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/pointer/parseKeyDef.d.ts +6 -0
- package/node_modules/@testing-library/user-event/dist/types/setup/api.d.ts +23 -0
- package/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts +24 -0
- package/node_modules/@testing-library/user-event/dist/types/setup/index.d.ts +22 -0
- package/node_modules/@testing-library/user-event/dist/types/setup/setup.d.ts +44 -0
- package/node_modules/@testing-library/user-event/dist/types/setup/wrapAsync.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/system/index.d.ts +10 -0
- package/node_modules/@testing-library/user-event/dist/types/system/keyboard.d.ts +50 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/buttons.d.ts +23 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/device.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/index.d.ts +21 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/mouse.d.ts +31 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/pointer.d.ts +32 -0
- package/node_modules/@testing-library/user-event/dist/types/system/pointer/shared.d.ts +20 -0
- package/node_modules/@testing-library/user-event/dist/types/utility/clear.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/utility/index.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/utility/selectOptions.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/utility/type.d.ts +9 -0
- package/node_modules/@testing-library/user-event/dist/types/utility/upload.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/click/isClickableInput.d.ts +15 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/dataTransfer/Blob.d.ts +3 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/dataTransfer/Clipboard.d.ts +11 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/dataTransfer/DataTransfer.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/dataTransfer/FileList.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/edit/isContentEditable.d.ts +7 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/edit/isEditable.d.ts +24 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/edit/maxLength.d.ts +14 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/edit/setFiles.d.ts +12 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/edit/timeValue.d.ts +4 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/cursor.d.ts +9 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/getActiveElement.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/getTabDestination.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/isFocusable.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/selection.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/focus/selector.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/index.d.ts +29 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/keyDef/readNextDescriptor.d.ts +21 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/cloneEvent.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/findClosest.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/getDocumentFromNode.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/getTreeDiff.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/getWindow.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/isDescendantOrSelf.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/isDisabled.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/isElementType.d.ts +5 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/isVisible.d.ts +1 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/level.d.ts +8 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/misc/wait.d.ts +2 -0
- package/node_modules/@testing-library/user-event/dist/types/utils/pointer/cssPointerEvents.d.ts +19 -0
- package/node_modules/@testing-library/user-event/package.json +112 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +1040 -0
- package/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/node_modules/@types/node/buffer.d.ts +2363 -0
- package/node_modules/@types/node/child_process.d.ts +1542 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@types/node/crypto.d.ts +4522 -0
- package/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@types/node/dns/promises.d.ts +473 -0
- package/node_modules/@types/node/dns.d.ts +853 -0
- package/node_modules/@types/node/dom-events.d.ts +124 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +884 -0
- package/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/node_modules/@types/node/fs.d.ts +4317 -0
- package/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +1889 -0
- package/node_modules/@types/node/http2.d.ts +2418 -0
- package/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@types/node/index.d.ts +89 -0
- package/node_modules/@types/node/inspector.d.ts +2746 -0
- package/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@types/node/net.d.ts +996 -0
- package/node_modules/@types/node/os.d.ts +495 -0
- package/node_modules/@types/node/package.json +217 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@types/node/process.d.ts +1747 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +153 -0
- package/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@types/node/readline.d.ts +540 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/stream/web.d.ts +367 -0
- package/node_modules/@types/node/stream.d.ts +1707 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1470 -0
- package/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@types/node/tls.d.ts +1217 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +944 -0
- package/node_modules/@types/node/util.d.ts +2276 -0
- package/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@types/node/vm.d.ts +921 -0
- package/node_modules/@types/node/wasi.d.ts +181 -0
- package/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@types/node/zlib.d.ts +530 -0
- package/node_modules/@types/react/LICENSE +21 -0
- package/node_modules/@types/react/README.md +15 -0
- package/node_modules/@types/react/canary.d.ts +157 -0
- package/node_modules/@types/react/experimental.d.ts +127 -0
- package/node_modules/@types/react/global.d.ts +160 -0
- package/node_modules/@types/react/index.d.ts +4537 -0
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +45 -0
- package/node_modules/@types/react/jsx-runtime.d.ts +36 -0
- package/node_modules/@types/react/package.json +210 -0
- package/node_modules/@types/react/ts5.0/canary.d.ts +157 -0
- package/node_modules/@types/react/ts5.0/experimental.d.ts +127 -0
- package/node_modules/@types/react/ts5.0/global.d.ts +160 -0
- package/node_modules/@types/react/ts5.0/index.d.ts +4524 -0
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +44 -0
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +35 -0
- package/node_modules/@types/react-dom/LICENSE +21 -0
- package/node_modules/@types/react-dom/README.md +16 -0
- package/node_modules/@types/react-dom/canary.d.ts +185 -0
- package/node_modules/@types/react-dom/client.d.ts +72 -0
- package/node_modules/@types/react-dom/experimental.d.ts +36 -0
- package/node_modules/@types/react-dom/index.d.ts +150 -0
- package/node_modules/@types/react-dom/package.json +88 -0
- package/node_modules/@types/react-dom/server.d.ts +131 -0
- package/node_modules/@types/react-dom/test-utils/index.d.ts +402 -0
- package/node_modules/@vitest/ui/LICENSE +21 -0
- package/node_modules/@vitest/ui/README.md +21 -0
- package/node_modules/@vitest/ui/dist/client/assets/index-9agQl9q3.js +35 -0
- package/node_modules/@vitest/ui/dist/client/assets/index-fUmMsp0O.css +1 -0
- package/node_modules/@vitest/ui/dist/client/bg.png +0 -0
- package/node_modules/@vitest/ui/dist/client/favicon.svg +5 -0
- package/node_modules/@vitest/ui/dist/client/index.html +26 -0
- package/node_modules/@vitest/ui/dist/index.d.ts +6 -0
- package/node_modules/@vitest/ui/dist/index.js +70 -0
- package/node_modules/@vitest/ui/dist/reporter.js +109 -0
- package/node_modules/@vitest/ui/package.json +89 -0
- package/node_modules/@vitest/ui/reporter.d.ts +4 -0
- package/node_modules/@vitest/ui/shim.d.ts +3 -0
- package/package.json +13 -2
- package/pnpm-lock.yaml +6986 -0
- package/resources/tictoccroc/icons/colorLine/calendar-color-line.svg +4 -0
- package/resources/tictoccroc/icons/colorLine/capacity-color-line.svg +6 -0
- package/resources/tictoccroc/icons/colorLine/goods-color-line.svg +4 -0
- package/resources/tictoccroc/icons/colorLine/index.ts +5 -0
- package/resources/tictoccroc/icons/colorLine/kids-color-line.svg +5 -0
- package/resources/tictoccroc/icons/colorLine/time-color-line.svg +4 -0
- package/resources/tictoccroc/icons/emoji/average-plane-emoji.svg +13 -0
- package/resources/tictoccroc/icons/emoji/excellent-plane-emoji.svg +13 -0
- package/resources/tictoccroc/icons/emoji/good-plane-emoji.svg +13 -0
- package/resources/tictoccroc/icons/emoji/index.ts +3 -0
- package/resources/tictoccroc/icons/etc/cash-etc.svg +5 -0
- package/resources/tictoccroc/icons/etc/check-etc.svg +4 -0
- package/resources/tictoccroc/icons/etc/coupon-etc.svg +16 -0
- package/resources/tictoccroc/icons/etc/index.ts +5 -0
- package/resources/tictoccroc/icons/etc/point-etc.svg +5 -0
- package/resources/tictoccroc/icons/etc/unscheduled-etc.svg +19 -0
- package/resources/tictoccroc/icons/fill/alert-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/alphabet-fill.svg +4 -0
- package/resources/tictoccroc/icons/fill/apply-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/arrow-down-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/arrow-left-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/arrow-right-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/arrow-up-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/certified-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/chatting-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/check-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/clr-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/complete-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/home-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/index.ts +26 -0
- package/resources/tictoccroc/icons/fill/info-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/invalid-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/like-fill.svg +4 -0
- package/resources/tictoccroc/icons/fill/location-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/met-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/ongoing-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/review-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/schedule-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/search-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/send-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/time-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/tooltip-fill.svg +3 -0
- package/resources/tictoccroc/icons/fill/user-fill.svg +4 -0
- package/resources/tictoccroc/icons/index.ts +5 -0
- package/resources/tictoccroc/icons/line/alarm-line.svg +4 -0
- package/resources/tictoccroc/icons/line/align-edit.svg +5 -0
- package/resources/tictoccroc/icons/line/align-line.svg +4 -0
- package/resources/tictoccroc/icons/line/apply-line.svg +7 -0
- package/resources/tictoccroc/icons/line/archive-line.svg +3 -0
- package/resources/tictoccroc/icons/line/arrow-back-line.svg +3 -0
- package/resources/tictoccroc/icons/line/arrow-downward-line.svg +3 -0
- package/resources/tictoccroc/icons/line/arrow-forward-line.svg +3 -0
- package/resources/tictoccroc/icons/line/arrow-upward-line.svg +3 -0
- package/resources/tictoccroc/icons/line/attach-line.svg +3 -0
- package/resources/tictoccroc/icons/line/ban-line.svg +3 -0
- package/resources/tictoccroc/icons/line/browser-line.svg +6 -0
- package/resources/tictoccroc/icons/line/calendar-line.svg +3 -0
- package/resources/tictoccroc/icons/line/call-line.svg +3 -0
- package/resources/tictoccroc/icons/line/camera-line.svg +5 -0
- package/resources/tictoccroc/icons/line/card-line.svg +3 -0
- package/resources/tictoccroc/icons/line/cash-line.svg +4 -0
- package/resources/tictoccroc/icons/line/certificate-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chat-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chatting-line.svg +7 -0
- package/resources/tictoccroc/icons/line/check-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chevron-down-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chevron-left-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chevron-right-line.svg +3 -0
- package/resources/tictoccroc/icons/line/chevron-up-line.svg +3 -0
- package/resources/tictoccroc/icons/line/close-line.svg +3 -0
- package/resources/tictoccroc/icons/line/copy-line.svg +3 -0
- package/resources/tictoccroc/icons/line/delete-line.svg +6 -0
- package/resources/tictoccroc/icons/line/download-line.svg +4 -0
- package/resources/tictoccroc/icons/line/eye-invisible-line.svg +7 -0
- package/resources/tictoccroc/icons/line/eye-visible-line.svg +3 -0
- package/resources/tictoccroc/icons/line/filter-line.svg +5 -0
- package/resources/tictoccroc/icons/line/fullview-line.svg +6 -0
- package/resources/tictoccroc/icons/line/goods-line.svg +3 -0
- package/resources/tictoccroc/icons/line/hamburger-line.svg +3 -0
- package/resources/tictoccroc/icons/line/headphone-line.svg +3 -0
- package/resources/tictoccroc/icons/line/home-line.svg +4 -0
- package/resources/tictoccroc/icons/line/img-disable-line.svg +3 -0
- package/resources/tictoccroc/icons/line/img-line.svg +4 -0
- package/resources/tictoccroc/icons/line/index.ts +78 -0
- package/resources/tictoccroc/icons/line/information-line.svg +4 -0
- package/resources/tictoccroc/icons/line/instagram-line.svg +5 -0
- package/resources/tictoccroc/icons/line/insurance-line.svg +4 -0
- package/resources/tictoccroc/icons/line/kids-line.svg +6 -0
- package/resources/tictoccroc/icons/line/like-line.svg +4 -0
- package/resources/tictoccroc/icons/line/link-line.svg +5 -0
- package/resources/tictoccroc/icons/line/list-line.svg +8 -0
- package/resources/tictoccroc/icons/line/location-line.svg +4 -0
- package/resources/tictoccroc/icons/line/match-type-line.svg +4 -0
- package/resources/tictoccroc/icons/line/met-line.svg +4 -0
- package/resources/tictoccroc/icons/line/minus-line.svg +3 -0
- package/resources/tictoccroc/icons/line/mobile-line.svg +4 -0
- package/resources/tictoccroc/icons/line/modify-line.svg +4 -0
- package/resources/tictoccroc/icons/line/money-line.svg +4 -0
- package/resources/tictoccroc/icons/line/monthly-line.svg +14 -0
- package/resources/tictoccroc/icons/line/more-line.svg +6 -0
- package/resources/tictoccroc/icons/line/parking-line.svg +5 -0
- package/resources/tictoccroc/icons/line/plus-line.svg +3 -0
- package/resources/tictoccroc/icons/line/receipt-line.svg +5 -0
- package/resources/tictoccroc/icons/line/reset-line.svg +3 -0
- package/resources/tictoccroc/icons/line/review-line.svg +3 -0
- package/resources/tictoccroc/icons/line/schedule-line.svg +13 -0
- package/resources/tictoccroc/icons/line/search-line.svg +3 -0
- package/resources/tictoccroc/icons/line/setting-line.svg +4 -0
- package/resources/tictoccroc/icons/line/share-line.svg +5 -0
- package/resources/tictoccroc/icons/line/sms-line.svg +4 -0
- package/resources/tictoccroc/icons/line/sound-line.svg +5 -0
- package/resources/tictoccroc/icons/line/sound-off-line.svg +4 -0
- package/resources/tictoccroc/icons/line/special-line.svg +4 -0
- package/resources/tictoccroc/icons/line/time-line.svg +4 -0
- package/resources/tictoccroc/icons/line/toy-line.svg +3 -0
- package/resources/tictoccroc/icons/line/university-line.svg +3 -0
- package/resources/tictoccroc/icons/line/upload-line.svg +4 -0
- package/resources/tictoccroc/icons/line/user-line.svg +6 -0
- package/resources/tictoccroc/icons/line/video-camera-line.svg +4 -0
- package/resources/tictoccroc/icons/line/warning1-line.svg +5 -0
- package/resources/tictoccroc/icons/line/warning2-line.svg +4 -0
- package/resources/tictoccroc/icons/line/weekly-line.svg +7 -0
- package/resources/tictoccroc/icons/line/wifi-line.svg +6 -0
- package/stories/Introduction.mdx +113 -0
- package/stories/foundations/tictoccroc-parent.mdx +189 -0
- package/stories/foundations/tictoccroc-teacher.mdx +189 -0
- package/themes/tictoccroc/colors/background.ts +9 -0
- package/themes/tictoccroc/colors/blue.ts +16 -0
- package/themes/tictoccroc/colors/classType.ts +12 -0
- package/themes/tictoccroc/colors/etc.ts +12 -0
- package/themes/tictoccroc/colors/green.ts +16 -0
- package/themes/tictoccroc/colors/grey.ts +18 -0
- package/themes/tictoccroc/colors/index.ts +8 -0
- package/themes/tictoccroc/colors/pink.ts +16 -0
- package/themes/tictoccroc/colors/yellow.ts +16 -0
- package/themes/tictoccroc/index.ts +5 -0
- package/themes/tictoccroc/parentLight.ts +65 -0
- package/themes/tictoccroc/teacherLight.ts +65 -0
- package/themes/tictoccroc/typography/body.ts +76 -0
- package/themes/tictoccroc/typography/caption.ts +111 -0
- package/themes/tictoccroc/typography/display.ts +90 -0
- package/themes/tictoccroc/typography/headline.ts +132 -0
- package/themes/tictoccroc/typography/index.ts +4 -0
- package/tsconfig.json +32 -0
- package/typings/color.ts +37 -0
- package/typings/component.ts +59 -0
- package/typings/index.ts +7 -0
- package/typings/theme/core.ts +72 -0
- package/typings/theme/tictoccroc.ts +29 -0
- package/typings/typography.ts +30 -0
- package/typings/utility.ts +20 -0
- package/utils/convertNumberToCSSValue.ts +12 -0
- package/utils/debounce/debounce.ts +17 -0
- package/utils/getContrastRatio/getContrastRatio.test.ts +19 -0
- package/utils/getContrastRatio/getContrastRatio.ts +12 -0
- package/utils/getContrastingTextColor/getContrastingTextColor.test.ts +27 -0
- package/utils/getContrastingTextColor/getContrastingTextColor.ts +33 -0
- package/utils/getIconLabel/getIconLabel.ts +128 -0
- package/utils/getInterpolation/getInterpolation.ts +16 -0
- package/utils/getPaletteColor/getPaletteColor.test.ts +26 -0
- package/utils/getPaletteColor/getPaletteColor.ts +71 -0
- package/utils/getRelativeLuminance/getRelativeLuminance.test.ts +23 -0
- package/utils/getRelativeLuminance/getRelativeLuminance.ts +7 -0
- package/utils/getSibling/getSibling.ts +27 -0
- package/utils/hexToRgb/hexToRgb.test.ts +28 -0
- package/utils/hexToRgb/hexToRgb.ts +15 -0
- package/vite.config.mts +196 -0
- package/vitest.setup.ts +7 -0
- package/DatePicker/DatePicker.cjs +0 -100
- package/DatePicker/DatePicker.es.js +0 -810
- package/Icon/Icon.cjs +0 -5
- package/Icon/Icon.es.js +0 -82
- package/Tab/Tab.cjs +0 -18
- package/Tab/Tab.es.js +0 -183
- package/resources/tictoccroc/icons/index.ts-BPirIj0F.js +0 -238
- package/resources/tictoccroc/icons/index.ts-DGZWXCgv.cjs +0 -1
- package/resources/tictoccroc/icons/line/index.d.ts +0 -77
- package/utils/getIconLabel/getIconLabel.cjs +0 -1
- package/utils/getIconLabel/getIconLabel.es.js +0 -124
- /package/{Accordion → dist/Accordion}/Accordion.cjs +0 -0
- /package/{Accordion → dist/Accordion}/Accordion.d.ts +0 -0
- /package/{Accordion → dist/Accordion}/Accordion.es.js +0 -0
- /package/{Accordion → dist/Accordion}/Accordion.stories.d.ts +0 -0
- /package/{Accordion → dist/Accordion}/index.cjs +0 -0
- /package/{Accordion → dist/Accordion}/index.d.ts +0 -0
- /package/{Accordion → dist/Accordion}/index.es.js +0 -0
- /package/{Autocomplete → dist/Autocomplete}/Autocomplete.cjs +0 -0
- /package/{Autocomplete → dist/Autocomplete}/Autocomplete.d.ts +0 -0
- /package/{Autocomplete → dist/Autocomplete}/Autocomplete.es.js +0 -0
- /package/{Autocomplete → dist/Autocomplete}/Autocomplete.stories.d.ts +0 -0
- /package/{Autocomplete → dist/Autocomplete}/index.cjs +0 -0
- /package/{Autocomplete → dist/Autocomplete}/index.d.ts +0 -0
- /package/{Autocomplete → dist/Autocomplete}/index.es.js +0 -0
- /package/{Backdrop → dist/Backdrop}/Backdrop.cjs +0 -0
- /package/{Backdrop → dist/Backdrop}/Backdrop.d.ts +0 -0
- /package/{Backdrop → dist/Backdrop}/Backdrop.es.js +0 -0
- /package/{Backdrop → dist/Backdrop}/Backdrop.stories.d.ts +0 -0
- /package/{Backdrop → dist/Backdrop}/index.cjs +0 -0
- /package/{Backdrop → dist/Backdrop}/index.d.ts +0 -0
- /package/{Backdrop → dist/Backdrop}/index.es.js +0 -0
- /package/{Badge → dist/Badge}/Badge.cjs +0 -0
- /package/{Badge → dist/Badge}/Badge.d.ts +0 -0
- /package/{Badge → dist/Badge}/Badge.es.js +0 -0
- /package/{Badge → dist/Badge}/Badge.stories.d.ts +0 -0
- /package/{Badge → dist/Badge}/index.cjs +0 -0
- /package/{Badge → dist/Badge}/index.d.ts +0 -0
- /package/{Badge → dist/Badge}/index.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheet.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheet.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheet.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheet.stories.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/BottomSheetAction.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/BottomSheetAction.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/BottomSheetAction.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/index.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/index.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetAction/index.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/BottomSheetContent.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/BottomSheetContent.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/BottomSheetContent.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/index.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/index.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetContent/index.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/BottomSheetText.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/BottomSheetText.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/BottomSheetText.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/index.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/index.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetText/index.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/BottomSheetTitle.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/BottomSheetTitle.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/BottomSheetTitle.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/index.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/index.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/BottomSheetTitle/index.es.js +0 -0
- /package/{BottomSheet → dist/BottomSheet}/index.cjs +0 -0
- /package/{BottomSheet → dist/BottomSheet}/index.d.ts +0 -0
- /package/{BottomSheet → dist/BottomSheet}/index.es.js +0 -0
- /package/{Box → dist/Box}/Box.cjs +0 -0
- /package/{Box → dist/Box}/Box.d.ts +0 -0
- /package/{Box → dist/Box}/Box.es.js +0 -0
- /package/{Box → dist/Box}/Box.stories.d.ts +0 -0
- /package/{Box → dist/Box}/index.cjs +0 -0
- /package/{Box → dist/Box}/index.d.ts +0 -0
- /package/{Box → dist/Box}/index.es.js +0 -0
- /package/{Button → dist/Button}/Button.cjs +0 -0
- /package/{Button → dist/Button}/Button.d.ts +0 -0
- /package/{Button → dist/Button}/Button.es.js +0 -0
- /package/{Button → dist/Button}/Button.stories.d.ts +0 -0
- /package/{Button → dist/Button}/index.cjs +0 -0
- /package/{Button → dist/Button}/index.d.ts +0 -0
- /package/{Button → dist/Button}/index.es.js +0 -0
- /package/{Card → dist/Card}/Card.cjs +0 -0
- /package/{Card → dist/Card}/Card.d.ts +0 -0
- /package/{Card → dist/Card}/Card.es.js +0 -0
- /package/{Card → dist/Card}/Card.stories.d.ts +0 -0
- /package/{Card → dist/Card}/index.cjs +0 -0
- /package/{Card → dist/Card}/index.d.ts +0 -0
- /package/{Card → dist/Card}/index.es.js +0 -0
- /package/{ChainPicker → dist/ChainPicker}/ChainPicker.cjs +0 -0
- /package/{ChainPicker → dist/ChainPicker}/ChainPicker.d.ts +0 -0
- /package/{ChainPicker → dist/ChainPicker}/ChainPicker.es.js +0 -0
- /package/{ChainPicker → dist/ChainPicker}/ChainPicker.stories.d.ts +0 -0
- /package/{ChainPicker → dist/ChainPicker}/index.cjs +0 -0
- /package/{ChainPicker → dist/ChainPicker}/index.d.ts +0 -0
- /package/{ChainPicker → dist/ChainPicker}/index.es.js +0 -0
- /package/{Checkbox → dist/Checkbox}/Checkbox.cjs +0 -0
- /package/{Checkbox → dist/Checkbox}/Checkbox.d.ts +0 -0
- /package/{Checkbox → dist/Checkbox}/Checkbox.es.js +0 -0
- /package/{Checkbox → dist/Checkbox}/Checkbox.stories.d.ts +0 -0
- /package/{Checkbox → dist/Checkbox}/index.cjs +0 -0
- /package/{Checkbox → dist/Checkbox}/index.d.ts +0 -0
- /package/{Checkbox → dist/Checkbox}/index.es.js +0 -0
- /package/{Chip → dist/Chip}/Chip.cjs +0 -0
- /package/{Chip → dist/Chip}/Chip.d.ts +0 -0
- /package/{Chip → dist/Chip}/Chip.es.js +0 -0
- /package/{Chip → dist/Chip}/Chip.stories.d.ts +0 -0
- /package/{Chip → dist/Chip}/index.cjs +0 -0
- /package/{Chip → dist/Chip}/index.d.ts +0 -0
- /package/{Chip → dist/Chip}/index.es.js +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/CircularProgressIndicator.cjs +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/CircularProgressIndicator.d.ts +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/CircularProgressIndicator.es.js +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/CircularProgressIndicator.stories.d.ts +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/index.cjs +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/index.d.ts +0 -0
- /package/{CircularProgressIndicator → dist/CircularProgressIndicator}/index.es.js +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/ClickAwayListener.cjs +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/ClickAwayListener.d.ts +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/ClickAwayListener.es.js +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/index.cjs +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/index.d.ts +0 -0
- /package/{ClickAwayListener → dist/ClickAwayListener}/index.es.js +0 -0
- /package/{DatePicker → dist/DatePicker}/DatePicker.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/DatePicker.stories.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/EventDot.cjs +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/EventDot.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/EventDot.es.js +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/index.cjs +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/index.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDot/index.es.js +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/EventDotGroup.cjs +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/EventDotGroup.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/EventDotGroup.es.js +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/index.cjs +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/index.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/EventDotGroup/index.es.js +0 -0
- /package/{DatePicker → dist/DatePicker}/index.cjs +0 -0
- /package/{DatePicker → dist/DatePicker}/index.d.ts +0 -0
- /package/{DatePicker → dist/DatePicker}/index.es.js +0 -0
- /package/{Dialog → dist/Dialog}/Dialog.cjs +0 -0
- /package/{Dialog → dist/Dialog}/Dialog.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/Dialog.es.js +0 -0
- /package/{Dialog → dist/Dialog}/Dialog.stories.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/DialogAction.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/DialogAction.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/DialogAction.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/index.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/index.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogAction/index.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/DialogContent.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/DialogContent.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/DialogContent.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/index.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/index.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogContent/index.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/DialogText.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/DialogText.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/DialogText.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/index.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/index.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogText/index.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/DialogTitle.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/DialogTitle.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/DialogTitle.es.js +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/index.cjs +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/index.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/DialogTitle/index.es.js +0 -0
- /package/{Dialog → dist/Dialog}/index.cjs +0 -0
- /package/{Dialog → dist/Dialog}/index.d.ts +0 -0
- /package/{Dialog → dist/Dialog}/index.es.js +0 -0
- /package/{Flexbox → dist/Flexbox}/Flexbox.cjs +0 -0
- /package/{Flexbox → dist/Flexbox}/Flexbox.d.ts +0 -0
- /package/{Flexbox → dist/Flexbox}/Flexbox.es.js +0 -0
- /package/{Flexbox → dist/Flexbox}/Flexbox.stories.d.ts +0 -0
- /package/{Flexbox → dist/Flexbox}/index.cjs +0 -0
- /package/{Flexbox → dist/Flexbox}/index.d.ts +0 -0
- /package/{Flexbox → dist/Flexbox}/index.es.js +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/FocusBoundary.cjs +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/FocusBoundary.d.ts +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/FocusBoundary.es.js +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/index.cjs +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/index.d.ts +0 -0
- /package/{FocusBoundary → dist/FocusBoundary}/index.es.js +0 -0
- /package/{FormControlText → dist/FormControlText}/FormControlText.cjs +0 -0
- /package/{FormControlText → dist/FormControlText}/FormControlText.d.ts +0 -0
- /package/{FormControlText → dist/FormControlText}/FormControlText.es.js +0 -0
- /package/{FormControlText → dist/FormControlText}/FormControlText.stories.d.ts +0 -0
- /package/{FormControlText → dist/FormControlText}/index.cjs +0 -0
- /package/{FormControlText → dist/FormControlText}/index.d.ts +0 -0
- /package/{FormControlText → dist/FormControlText}/index.es.js +0 -0
- /package/{Icon → dist/Icon}/Icon.d.ts +0 -0
- /package/{Icon → dist/Icon}/Icon.stories.d.ts +0 -0
- /package/{Icon → dist/Icon}/index.cjs +0 -0
- /package/{Icon → dist/Icon}/index.d.ts +0 -0
- /package/{Icon → dist/Icon}/index.es.js +0 -0
- /package/{IconButton → dist/IconButton}/IconButton.cjs +0 -0
- /package/{IconButton → dist/IconButton}/IconButton.d.ts +0 -0
- /package/{IconButton → dist/IconButton}/IconButton.es.js +0 -0
- /package/{IconButton → dist/IconButton}/IconButton.stories.d.ts +0 -0
- /package/{IconButton → dist/IconButton}/index.cjs +0 -0
- /package/{IconButton → dist/IconButton}/index.d.ts +0 -0
- /package/{IconButton → dist/IconButton}/index.es.js +0 -0
- /package/{Label → dist/Label}/Label.cjs +0 -0
- /package/{Label → dist/Label}/Label.d.ts +0 -0
- /package/{Label → dist/Label}/Label.es.js +0 -0
- /package/{Label → dist/Label}/Label.stories.d.ts +0 -0
- /package/{Label → dist/Label}/index.cjs +0 -0
- /package/{Label → dist/Label}/index.d.ts +0 -0
- /package/{Label → dist/Label}/index.es.js +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/LineProgressIndicator.cjs +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/LineProgressIndicator.d.ts +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/LineProgressIndicator.es.js +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/LineProgressIndicator.stories.d.ts +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/index.cjs +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/index.d.ts +0 -0
- /package/{LineProgressIndicator → dist/LineProgressIndicator}/index.es.js +0 -0
- /package/{Menu → dist/Menu}/Menu.cjs +0 -0
- /package/{Menu → dist/Menu}/Menu.d.ts +0 -0
- /package/{Menu → dist/Menu}/Menu.es.js +0 -0
- /package/{Menu → dist/Menu}/Menu.stories.d.ts +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/MenuBlock.cjs +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/MenuBlock.d.ts +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/MenuBlock.es.js +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/index.cjs +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/index.d.ts +0 -0
- /package/{Menu → dist/Menu}/MenuBlock/index.es.js +0 -0
- /package/{Menu → dist/Menu}/MenuButton/MenuButton.cjs +0 -0
- /package/{Menu → dist/Menu}/MenuButton/MenuButton.d.ts +0 -0
- /package/{Menu → dist/Menu}/MenuButton/MenuButton.es.js +0 -0
- /package/{Menu → dist/Menu}/MenuButton/index.cjs +0 -0
- /package/{Menu → dist/Menu}/MenuButton/index.d.ts +0 -0
- /package/{Menu → dist/Menu}/MenuButton/index.es.js +0 -0
- /package/{Menu → dist/Menu}/index.cjs +0 -0
- /package/{Menu → dist/Menu}/index.d.ts +0 -0
- /package/{Menu → dist/Menu}/index.es.js +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypad.cjs +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypad.d.ts +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypad.es.js +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypad.stories.d.ts +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/NumberKeypadBlock.cjs +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/NumberKeypadBlock.d.ts +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/NumberKeypadBlock.es.js +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/index.cjs +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/index.d.ts +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/NumberKeypadBlock/index.es.js +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/index.cjs +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/index.d.ts +0 -0
- /package/{NumberKeypad → dist/NumberKeypad}/index.es.js +0 -0
- /package/{PageControl → dist/PageControl}/PageControl.cjs +0 -0
- /package/{PageControl → dist/PageControl}/PageControl.d.ts +0 -0
- /package/{PageControl → dist/PageControl}/PageControl.es.js +0 -0
- /package/{PageControl → dist/PageControl}/PageControl.stories.d.ts +0 -0
- /package/{PageControl → dist/PageControl}/index.cjs +0 -0
- /package/{PageControl → dist/PageControl}/index.d.ts +0 -0
- /package/{PageControl → dist/PageControl}/index.es.js +0 -0
- /package/{Radio → dist/Radio}/Radio.cjs +0 -0
- /package/{Radio → dist/Radio}/Radio.d.ts +0 -0
- /package/{Radio → dist/Radio}/Radio.es.js +0 -0
- /package/{Radio → dist/Radio}/Radio.stories.d.ts +0 -0
- /package/{Radio → dist/Radio}/index.cjs +0 -0
- /package/{Radio → dist/Radio}/index.d.ts +0 -0
- /package/{Radio → dist/Radio}/index.es.js +0 -0
- /package/{RadioGroup → dist/RadioGroup}/RadioGroup.cjs +0 -0
- /package/{RadioGroup → dist/RadioGroup}/RadioGroup.d.ts +0 -0
- /package/{RadioGroup → dist/RadioGroup}/RadioGroup.es.js +0 -0
- /package/{RadioGroup → dist/RadioGroup}/RadioGroup.stories.d.ts +0 -0
- /package/{RadioGroup → dist/RadioGroup}/index.cjs +0 -0
- /package/{RadioGroup → dist/RadioGroup}/index.d.ts +0 -0
- /package/{RadioGroup → dist/RadioGroup}/index.es.js +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButton.cjs +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButton.d.ts +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButton.es.js +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButton.stories.d.ts +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/SegmentedButtonBlock.cjs +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/SegmentedButtonBlock.d.ts +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/SegmentedButtonBlock.es.js +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/index.cjs +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/index.d.ts +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/SegmentedButtonBlock/index.es.js +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/index.cjs +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/index.d.ts +0 -0
- /package/{SegmentedButton → dist/SegmentedButton}/index.es.js +0 -0
- /package/{Select → dist/Select}/Option/Option.cjs +0 -0
- /package/{Select → dist/Select}/Option/Option.d.ts +0 -0
- /package/{Select → dist/Select}/Option/Option.es.js +0 -0
- /package/{Select → dist/Select}/Option/index.cjs +0 -0
- /package/{Select → dist/Select}/Option/index.d.ts +0 -0
- /package/{Select → dist/Select}/Option/index.es.js +0 -0
- /package/{Select → dist/Select}/Select.cjs +0 -0
- /package/{Select → dist/Select}/Select.d.ts +0 -0
- /package/{Select → dist/Select}/Select.es.js +0 -0
- /package/{Select → dist/Select}/Select.stories.d.ts +0 -0
- /package/{Select → dist/Select}/index.cjs +0 -0
- /package/{Select → dist/Select}/index.d.ts +0 -0
- /package/{Select → dist/Select}/index.es.js +0 -0
- /package/{Skeleton → dist/Skeleton}/Skeleton.cjs +0 -0
- /package/{Skeleton → dist/Skeleton}/Skeleton.d.ts +0 -0
- /package/{Skeleton → dist/Skeleton}/Skeleton.es.js +0 -0
- /package/{Skeleton → dist/Skeleton}/Skeleton.stories.d.ts +0 -0
- /package/{Skeleton → dist/Skeleton}/index.cjs +0 -0
- /package/{Skeleton → dist/Skeleton}/index.d.ts +0 -0
- /package/{Skeleton → dist/Skeleton}/index.es.js +0 -0
- /package/{Slider → dist/Slider}/Slider.cjs +0 -0
- /package/{Slider → dist/Slider}/Slider.d.ts +0 -0
- /package/{Slider → dist/Slider}/Slider.es.js +0 -0
- /package/{Slider → dist/Slider}/Slider.stories.d.ts +0 -0
- /package/{Slider → dist/Slider}/index.cjs +0 -0
- /package/{Slider → dist/Slider}/index.d.ts +0 -0
- /package/{Slider → dist/Slider}/index.es.js +0 -0
- /package/{Snackbar → dist/Snackbar}/Snackbar.cjs +0 -0
- /package/{Snackbar → dist/Snackbar}/Snackbar.d.ts +0 -0
- /package/{Snackbar → dist/Snackbar}/Snackbar.es.js +0 -0
- /package/{Snackbar → dist/Snackbar}/Snackbar.stories.d.ts +0 -0
- /package/{Snackbar → dist/Snackbar}/index.cjs +0 -0
- /package/{Snackbar → dist/Snackbar}/index.d.ts +0 -0
- /package/{Snackbar → dist/Snackbar}/index.es.js +0 -0
- /package/{Switch → dist/Switch}/Switch.cjs +0 -0
- /package/{Switch → dist/Switch}/Switch.d.ts +0 -0
- /package/{Switch → dist/Switch}/Switch.es.js +0 -0
- /package/{Switch → dist/Switch}/Switch.stories.d.ts +0 -0
- /package/{Switch → dist/Switch}/index.cjs +0 -0
- /package/{Switch → dist/Switch}/index.d.ts +0 -0
- /package/{Switch → dist/Switch}/index.es.js +0 -0
- /package/{Tab → dist/Tab}/Tab.d.ts +0 -0
- /package/{Tab → dist/Tab}/Tab.stories.d.ts +0 -0
- /package/{Tab → dist/Tab}/TabBlock/TabBlock.cjs +0 -0
- /package/{Tab → dist/Tab}/TabBlock/TabBlock.d.ts +0 -0
- /package/{Tab → dist/Tab}/TabBlock/TabBlock.es.js +0 -0
- /package/{Tab → dist/Tab}/TabBlock/index.cjs +0 -0
- /package/{Tab → dist/Tab}/TabBlock/index.d.ts +0 -0
- /package/{Tab → dist/Tab}/TabBlock/index.es.js +0 -0
- /package/{Tab → dist/Tab}/index.cjs +0 -0
- /package/{Tab → dist/Tab}/index.d.ts +0 -0
- /package/{Tab → dist/Tab}/index.es.js +0 -0
- /package/{TextArea → dist/TextArea}/TextArea.cjs +0 -0
- /package/{TextArea → dist/TextArea}/TextArea.d.ts +0 -0
- /package/{TextArea → dist/TextArea}/TextArea.es.js +0 -0
- /package/{TextArea → dist/TextArea}/TextArea.stories.d.ts +0 -0
- /package/{TextArea → dist/TextArea}/index.cjs +0 -0
- /package/{TextArea → dist/TextArea}/index.d.ts +0 -0
- /package/{TextArea → dist/TextArea}/index.es.js +0 -0
- /package/{TextField → dist/TextField}/TextField.cjs +0 -0
- /package/{TextField → dist/TextField}/TextField.d.ts +0 -0
- /package/{TextField → dist/TextField}/TextField.es.js +0 -0
- /package/{TextField → dist/TextField}/TextField.stories.d.ts +0 -0
- /package/{TextField → dist/TextField}/index.cjs +0 -0
- /package/{TextField → dist/TextField}/index.d.ts +0 -0
- /package/{TextField → dist/TextField}/index.es.js +0 -0
- /package/{Tooltip → dist/Tooltip}/Tooltip.cjs +0 -0
- /package/{Tooltip → dist/Tooltip}/Tooltip.d.ts +0 -0
- /package/{Tooltip → dist/Tooltip}/Tooltip.es.js +0 -0
- /package/{Tooltip → dist/Tooltip}/Tooltip.stories.d.ts +0 -0
- /package/{Tooltip → dist/Tooltip}/index.cjs +0 -0
- /package/{Tooltip → dist/Tooltip}/index.d.ts +0 -0
- /package/{Tooltip → dist/Tooltip}/index.es.js +0 -0
- /package/{Typography → dist/Typography}/Typography.cjs +0 -0
- /package/{Typography → dist/Typography}/Typography.d.ts +0 -0
- /package/{Typography → dist/Typography}/Typography.es.js +0 -0
- /package/{Typography → dist/Typography}/Typography.stories.d.ts +0 -0
- /package/{Typography → dist/Typography}/index.cjs +0 -0
- /package/{Typography → dist/Typography}/index.d.ts +0 -0
- /package/{Typography → dist/Typography}/index.es.js +0 -0
- /package/{core → dist/core}/GlobalStyle.cjs +0 -0
- /package/{core → dist/core}/GlobalStyle.d.ts +0 -0
- /package/{core → dist/core}/GlobalStyle.es.js +0 -0
- /package/{core → dist/core}/ThemeContext.cjs +0 -0
- /package/{core → dist/core}/ThemeContext.d.ts +0 -0
- /package/{core → dist/core}/ThemeContext.es.js +0 -0
- /package/{core → dist/core}/ThemeProvider.cjs +0 -0
- /package/{core → dist/core}/ThemeProvider.d.ts +0 -0
- /package/{core → dist/core}/ThemeProvider.es.js +0 -0
- /package/{core → dist/core}/useTheme.cjs +0 -0
- /package/{core → dist/core}/useTheme.d.ts +0 -0
- /package/{core → dist/core}/useTheme.es.js +0 -0
- /package/{hooks → dist/hooks}/index.cjs +0 -0
- /package/{hooks → dist/hooks}/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/index.es.js +0 -0
- /package/{hooks → dist/hooks}/useCheckHasFocus/useCheckHasFocus.cjs +0 -0
- /package/{hooks → dist/hooks}/useCheckHasFocus/useCheckHasFocus.d.ts +0 -0
- /package/{hooks → dist/hooks}/useCheckHasFocus/useCheckHasFocus.es.js +0 -0
- /package/{hooks → dist/hooks}/useCheckHoverPossible/useCheckHoverPossible.cjs +0 -0
- /package/{hooks → dist/hooks}/useCheckHoverPossible/useCheckHoverPossible.d.ts +0 -0
- /package/{hooks → dist/hooks}/useCheckHoverPossible/useCheckHoverPossible.es.js +0 -0
- /package/{hooks → dist/hooks}/useCheckKeyboardMode/useCheckKeyboardMode.cjs +0 -0
- /package/{hooks → dist/hooks}/useCheckKeyboardMode/useCheckKeyboardMode.d.ts +0 -0
- /package/{hooks → dist/hooks}/useCheckKeyboardMode/useCheckKeyboardMode.es.js +0 -0
- /package/{hooks → dist/hooks}/useFocusBoundary/useFocusBoundary.cjs +0 -0
- /package/{hooks → dist/hooks}/useFocusBoundary/useFocusBoundary.d.ts +0 -0
- /package/{hooks → dist/hooks}/useFocusBoundary/useFocusBoundary.es.js +0 -0
- /package/{index.cjs → dist/index.cjs} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.es.js → dist/index.es.js} +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/calendar-color-line.svg-B_vYjqIZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/calendar-color-line.svg-BtUQ4TKP.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/capacity-color-line.svg-BQo3SZhS.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/capacity-color-line.svg-oT5B8THh.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/goods-color-line.svg-CT8jVC5v.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/goods-color-line.svg-Dz9RB5RV.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/index.d.ts +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/index.ts-Dyvby5gX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/index.ts-l0sNRNKZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/kids-color-line.svg-BF7M2ymg.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/kids-color-line.svg-CZDUwvTf.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/time-color-line.svg-K7igWiF7.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/colorLine/time-color-line.svg-lvcsdtRd.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/average-plane-emoji.svg-1B3oSCfr.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/average-plane-emoji.svg-Ddpo9mEE.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/excellent-plane-emoji.svg-Bq_nM8Tm.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/excellent-plane-emoji.svg-CSFc2vsd.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/good-plane-emoji.svg-BShQn-co.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/good-plane-emoji.svg-Bve6hTZH.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/index.d.ts +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/index.ts-Dyvby5gX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/emoji/index.ts-l0sNRNKZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/cash-etc.svg-BE9-4t5W.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/cash-etc.svg-CvAOzEdq.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/check-etc.svg-6o7_QHlK.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/check-etc.svg-CeWjWVqv.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/coupon-etc.svg-BYpSMvLr.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/coupon-etc.svg-DB4JIfi8.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/index.d.ts +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/index.ts-Dyvby5gX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/index.ts-l0sNRNKZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/point-etc.svg-CAEUCvfM.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/point-etc.svg-DZ31KNBj.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/unscheduled-etc.svg-C9TZ0hvI.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/etc/unscheduled-etc.svg-D-47KeXg.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/alert-fill.svg-BJrM_goo.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/alert-fill.svg-C8QjfUUX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/alphabet-fill.svg-CvfRsdBW.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/alphabet-fill.svg-HBXWjzrC.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/apply-fill.svg-CmRhMN1w.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/apply-fill.svg-DRpGrJGw.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-down-fill.svg-C30f0N0F.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-down-fill.svg-VKh4yV7q.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-left-fill.svg-CdGognG9.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-left-fill.svg-DVd7uVkk.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-right-fill.svg-C3fI1iEy.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-right-fill.svg-CkH6pq8F.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-up-fill.svg-CEHHUpG_.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/arrow-up-fill.svg-DWbcv7JX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/certified-fill.svg-DA375i9-.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/certified-fill.svg-DBC-EEKD.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/chatting-fill.svg-CVjv4Kr7.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/chatting-fill.svg-HaX5-_VL.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/check-fill.svg-0_5PrDLC.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/check-fill.svg-BKKTgIa3.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/clr-fill.svg-Cn-I8j7d.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/clr-fill.svg-DuLFHwKc.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/complete-fill.svg-DhQki4Tw.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/complete-fill.svg-cERkJmCb.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/home-fill.svg-CxFGWK0L.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/home-fill.svg-D3lzGMV2.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/index.d.ts +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/index.ts-Dyvby5gX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/index.ts-l0sNRNKZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/info-fill.svg-CwgxQGwL.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/info-fill.svg-DkEX99Sy.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/invalid-fill.svg-CJJ-xmGJ.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/invalid-fill.svg-D-87fL2g.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/like-fill.svg-Cx1cz0ZV.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/like-fill.svg-DnL66ApL.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/location-fill.svg-DfSHAnsd.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/location-fill.svg-Die9mxQH.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/met-fill.svg-B09QdWd-.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/met-fill.svg-BYSmsKBw.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/ongoing-fill.svg-BWY0Pepo.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/ongoing-fill.svg-D9OuoEPD.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/review-fill.svg-C356jYYw.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/review-fill.svg-Ci8MN4eI.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/schedule-fill.svg-7tGjhrTb.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/schedule-fill.svg-BrKSb-wR.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/search-fill.svg-BvLNCg-N.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/search-fill.svg-DnxhncI6.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/send-fill.svg-CItD_2L1.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/send-fill.svg-D197Lwl0.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/time-fill.svg-CbMJxmhK.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/time-fill.svg-DcMfM75a.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/tooltip-fill.svg-Csn01XEU.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/tooltip-fill.svg-taAPxbyB.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/user-fill.svg-1AdHldZ7.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/fill/user-fill.svg-C5DT_82L.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/index.d.ts +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/alarm-line.svg-BRunNxMG.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/alarm-line.svg-B_fgmSUh.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/align-edit.svg-BpBWlArj.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/align-edit.svg-CheFH-PQ.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/align-line.svg-CZVeKsXI.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/align-line.svg-DEHi23C3.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/apply-line.svg-CPVSeeXQ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/apply-line.svg-OFt_RKTM.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/archive-line.svg-DCCCNm0K.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/archive-line.svg-DRsXXtcA.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-back-line.svg-6pAPPZFb.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-back-line.svg-CohS2cJ8.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-downward-line.svg-BGmQO-HH.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-downward-line.svg-U4yGkiO6.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-forward-line.svg-CXsiELrZ.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-forward-line.svg-i2PyDbcS.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-upward-line.svg-D38aA0Uw.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/arrow-upward-line.svg-UfpZFid8.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/attach-line.svg-BhuonxHd.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/attach-line.svg-SIRIt0qo.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/ban-line.svg-D9JlR8gb.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/ban-line.svg-oA3yLqdR.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/browser-line.svg-B7UMwER5.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/browser-line.svg-hDn02ywo.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/calendar-line.svg-BsHcmpqT.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/calendar-line.svg-CwmRMqQV.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/call-line.svg-B2jT8BCB.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/call-line.svg-CVbza-nx.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/camera-line.svg-BuDRmRYc.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/camera-line.svg-BvUSwmSN.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/card-line.svg-BwluOZMy.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/card-line.svg-Dh3x2e7j.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/cash-line.svg-DMDHHJrt.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/cash-line.svg-_QlaTlXM.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/certificate-line.svg-BjOsTl11.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/certificate-line.svg-BoPUjufG.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chat-line.svg-CmY7En0-.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chat-line.svg-Dhe-5vHA.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chatting-line.svg-CdN684WI.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chatting-line.svg-DFq1Xeov.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/check-line.svg-BmxqZytH.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/check-line.svg-CKsagFl6.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-down-line.svg-BTq4vzeg.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-down-line.svg-BYCd5Luv.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-left-line.svg-DSET8qrk.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-left-line.svg-aZUXpJ9q.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-right-line.svg-C6wr7pgK.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-right-line.svg-Dm2YWA1K.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-up-line.svg-C8Sj7hTQ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/chevron-up-line.svg-D9ekQ02i.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/close-line.svg-BzpCbaoG.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/close-line.svg-CSVwgqiB.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/copy-line.svg-CLdLNk9r.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/copy-line.svg-DA-07Z90.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/delete-line.svg-DQg7TEYw.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/delete-line.svg-DyddYBjS.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/download-line.svg-BKfz-6Mz.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/download-line.svg-DvinNPah.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/eye-invisible-line.svg-BuZicmwG.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/eye-invisible-line.svg-C_XjeDHE.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/eye-visible-line.svg-D3netPU8.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/eye-visible-line.svg-XpDOJPr0.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/filter-line.svg-Dbe7jw9Q.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/filter-line.svg-J5XFEh1F.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/fullview-line.svg-3aeWiJNf.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/fullview-line.svg-n_xxoG0C.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/goods-line.svg-BDAb5Snx.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/goods-line.svg-BYSmk4Lo.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/hamburger-line.svg-CMG7FGB3.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/hamburger-line.svg-CZAv5Wt4.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/headphone-line.svg-Buq82k6m.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/headphone-line.svg-Cy-z1uje.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/home-line.svg-BqHMy_15.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/home-line.svg-DO90M2q7.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/img-disable-line.svg-Bzvgi8Uu.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/img-disable-line.svg-DtD7dgZQ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/img-line.svg-CPHQ1Cur.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/img-line.svg-runB4pj4.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/index.ts-Dyvby5gX.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/index.ts-l0sNRNKZ.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/information-line.svg-C1HeihVj.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/information-line.svg-fQYLBjcn.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/instagram-line.svg-9QADilvw.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/instagram-line.svg-BiBj4li4.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/insurance-line.svg-C-jGCuZ0.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/insurance-line.svg-XgpoFsM2.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/kids-line.svg-BZjs2lbf.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/kids-line.svg-Hhqmv7us.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/like-line.svg-B09ewWGN.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/like-line.svg-WcxnZwNP.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/link-line.svg-BQlngNks.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/link-line.svg-DyTzcfH-.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/list-line.svg-r5d5htjN.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/list-line.svg-yFfhZxUp.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/location-line.svg-BYTa6SR_.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/location-line.svg-EQvkDzcG.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/match-type-line.svg-CGS2gQZB.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/match-type-line.svg-DGpCvcRV.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/met-line.svg-CiYvySY5.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/met-line.svg-CuTfmBGY.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/minus-line.svg-BFTYxAEx.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/minus-line.svg-Cd4pUSxn.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/mobile-line.svg-B3REkeOs.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/mobile-line.svg-CcR_mhy0.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/modify-line.svg-Dtw-aJJL.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/modify-line.svg-y24Tpez8.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/monthly-line.svg-BdyaJ1t_.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/monthly-line.svg-DY5-Xv34.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/more-line.svg-DkHQ1aCu.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/more-line.svg-fOrqycnA.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/parking-line.svg-BYdvScSf.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/parking-line.svg-C69hhyJp.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/plus-line.svg-CGLFrOvH.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/plus-line.svg-DYFu3bQb.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/receipt-line.svg-BpDVEXs_.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/receipt-line.svg-Db2ey7Vk.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/reset-line.svg-CYyXv2Ii.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/reset-line.svg-VXhJXGw4.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/review-line.svg-B4rfJrsO.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/review-line.svg-DYUuUybx.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/schedule-line.svg-C4rlD6fX.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/schedule-line.svg-CBOfzdyP.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/search-line.svg-ChK1nMkg.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/search-line.svg-CyECq3s4.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/setting-line.svg-B5KTXMkf.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/setting-line.svg-KZcCRQnu.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/share-line.svg-BuvAb_mR.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/share-line.svg-YIeAM7qG.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sms-line.svg-CfS4BH8b.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sms-line.svg-mkRJRb3t.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sound-line.svg-CmfcTDgu.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sound-line.svg-DDrcGkDm.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sound-off-line.svg-BpovzQS7.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/sound-off-line.svg-CyLPPUCN.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/special-line.svg-BIbaMWsd.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/special-line.svg-DmNM79L9.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/time-line.svg-BuB2NlRB.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/time-line.svg-DXBDjsih.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/toy-line.svg-DyArYgu3.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/toy-line.svg-vUxUn7S0.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/university-line.svg-BEdQwFB6.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/university-line.svg-D2T-TUW5.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/upload-line.svg-CDbJ-I5E.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/upload-line.svg-CKFtr3Jx.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/user-line.svg-CNcTTUmF.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/user-line.svg-Du2rRzus.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/video-camera-line.svg-C2Y4ssOf.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/video-camera-line.svg-iZ3dICcd.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/warning1-line.svg-Bhi7ngGw.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/warning1-line.svg-DsmZxbsf.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/warning2-line.svg-DTvtKOYN.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/warning2-line.svg-Kf0io8lf.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/weekly-line.svg-BCO-LS_a.cjs +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/weekly-line.svg-BUPmmgeE.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/wifi-line.svg-BtsQLwZl.js +0 -0
- /package/{resources → dist/resources}/tictoccroc/icons/line/wifi-line.svg-DGCMJ5Oi.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/background.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/background.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/background.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/blue.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/blue.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/blue.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/classType.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/classType.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/classType.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/etc.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/etc.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/etc.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/green.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/green.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/green.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/grey.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/grey.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/grey.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/index.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/index.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/index.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/pink.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/pink.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/pink.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/yellow.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/yellow.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/colors/yellow.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/index.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/index.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/index.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/parentLight.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/parentLight.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/parentLight.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/teacherLight.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/teacherLight.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/teacherLight.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/body.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/body.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/body.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/caption.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/caption.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/caption.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/display.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/display.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/display.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/headline.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/headline.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/headline.es.js +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/index.cjs +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/index.d.ts +0 -0
- /package/{themes → dist/themes}/tictoccroc/typography/index.es.js +0 -0
- /package/{typings → dist/typings}/color.d.ts +0 -0
- /package/{typings → dist/typings}/component.d.ts +0 -0
- /package/{typings → dist/typings}/index.d.ts +0 -0
- /package/{typings → dist/typings}/theme/core.d.ts +0 -0
- /package/{typings → dist/typings}/theme/tictoccroc.d.ts +0 -0
- /package/{typings → dist/typings}/typography.d.ts +0 -0
- /package/{typings → dist/typings}/utility.d.ts +0 -0
- /package/{utils → dist/utils}/convertNumberToCSSValue.cjs +0 -0
- /package/{utils → dist/utils}/convertNumberToCSSValue.d.ts +0 -0
- /package/{utils → dist/utils}/convertNumberToCSSValue.es.js +0 -0
- /package/{utils → dist/utils}/debounce/debounce.cjs +0 -0
- /package/{utils → dist/utils}/debounce/debounce.d.ts +0 -0
- /package/{utils → dist/utils}/debounce/debounce.es.js +0 -0
- /package/{utils → dist/utils}/getContrastRatio/getContrastRatio.cjs +0 -0
- /package/{utils → dist/utils}/getContrastRatio/getContrastRatio.d.ts +0 -0
- /package/{utils → dist/utils}/getContrastRatio/getContrastRatio.es.js +0 -0
- /package/{utils → dist/utils}/getContrastRatio/getContrastRatio.test.d.ts +0 -0
- /package/{utils → dist/utils}/getContrastingTextColor/getContrastingTextColor.cjs +0 -0
- /package/{utils → dist/utils}/getContrastingTextColor/getContrastingTextColor.d.ts +0 -0
- /package/{utils → dist/utils}/getContrastingTextColor/getContrastingTextColor.es.js +0 -0
- /package/{utils → dist/utils}/getContrastingTextColor/getContrastingTextColor.test.d.ts +0 -0
- /package/{utils → dist/utils}/getIconLabel/getIconLabel.d.ts +0 -0
- /package/{utils → dist/utils}/getInterpolation/getInterpolation.cjs +0 -0
- /package/{utils → dist/utils}/getInterpolation/getInterpolation.d.ts +0 -0
- /package/{utils → dist/utils}/getInterpolation/getInterpolation.es.js +0 -0
- /package/{utils → dist/utils}/getPaletteColor/getPaletteColor.cjs +0 -0
- /package/{utils → dist/utils}/getPaletteColor/getPaletteColor.d.ts +0 -0
- /package/{utils → dist/utils}/getPaletteColor/getPaletteColor.es.js +0 -0
- /package/{utils → dist/utils}/getPaletteColor/getPaletteColor.test.d.ts +0 -0
- /package/{utils → dist/utils}/getRelativeLuminance/getRelativeLuminance.cjs +0 -0
- /package/{utils → dist/utils}/getRelativeLuminance/getRelativeLuminance.d.ts +0 -0
- /package/{utils → dist/utils}/getRelativeLuminance/getRelativeLuminance.es.js +0 -0
- /package/{utils → dist/utils}/getRelativeLuminance/getRelativeLuminance.test.d.ts +0 -0
- /package/{utils → dist/utils}/getSibling/getSibling.cjs +0 -0
- /package/{utils → dist/utils}/getSibling/getSibling.d.ts +0 -0
- /package/{utils → dist/utils}/getSibling/getSibling.es.js +0 -0
- /package/{utils → dist/utils}/hexToRgb/hexToRgb.cjs +0 -0
- /package/{utils → dist/utils}/hexToRgb/hexToRgb.d.ts +0 -0
- /package/{utils → dist/utils}/hexToRgb/hexToRgb.es.js +0 -0
- /package/{utils → dist/utils}/hexToRgb/hexToRgb.test.d.ts +0 -0
|
@@ -0,0 +1,1914 @@
|
|
|
1
|
+
import redent from 'redent';
|
|
2
|
+
import { parse } from '@adobe/css-tools';
|
|
3
|
+
import { computeAccessibleDescription, computeAccessibleName } from 'dom-accessibility-api';
|
|
4
|
+
import { elementRoles, roles } from 'aria-query';
|
|
5
|
+
import chalk from 'chalk';
|
|
6
|
+
import isEqualWith from 'lodash/isEqualWith.js';
|
|
7
|
+
import escape from 'css.escape';
|
|
8
|
+
|
|
9
|
+
class GenericTypeError extends Error {
|
|
10
|
+
constructor(expectedString, received, matcherFn, context) {
|
|
11
|
+
super();
|
|
12
|
+
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
if (Error.captureStackTrace) {
|
|
15
|
+
Error.captureStackTrace(this, matcherFn);
|
|
16
|
+
}
|
|
17
|
+
let withType = '';
|
|
18
|
+
try {
|
|
19
|
+
withType = context.utils.printWithType(
|
|
20
|
+
'Received',
|
|
21
|
+
received,
|
|
22
|
+
context.utils.printReceived,
|
|
23
|
+
);
|
|
24
|
+
} catch (e) {
|
|
25
|
+
// Can throw for Document:
|
|
26
|
+
// https://github.com/jsdom/jsdom/issues/2304
|
|
27
|
+
}
|
|
28
|
+
this.message = [
|
|
29
|
+
context.utils.matcherHint(
|
|
30
|
+
`${context.isNot ? '.not' : ''}.${matcherFn.name}`,
|
|
31
|
+
'received',
|
|
32
|
+
'',
|
|
33
|
+
),
|
|
34
|
+
'',
|
|
35
|
+
// eslint-disable-next-line new-cap
|
|
36
|
+
`${context.utils.RECEIVED_COLOR(
|
|
37
|
+
'received',
|
|
38
|
+
)} value must ${expectedString}.`,
|
|
39
|
+
withType,
|
|
40
|
+
].join('\n');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class HtmlElementTypeError extends GenericTypeError {
|
|
45
|
+
constructor(...args) {
|
|
46
|
+
super('be an HTMLElement or an SVGElement', ...args);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
class NodeTypeError extends GenericTypeError {
|
|
51
|
+
constructor(...args) {
|
|
52
|
+
super('be a Node', ...args);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function checkHasWindow(htmlElement, ErrorClass, ...args) {
|
|
57
|
+
if (
|
|
58
|
+
!htmlElement ||
|
|
59
|
+
!htmlElement.ownerDocument ||
|
|
60
|
+
!htmlElement.ownerDocument.defaultView
|
|
61
|
+
) {
|
|
62
|
+
throw new ErrorClass(htmlElement, ...args)
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function checkNode(node, ...args) {
|
|
67
|
+
checkHasWindow(node, NodeTypeError, ...args);
|
|
68
|
+
const window = node.ownerDocument.defaultView;
|
|
69
|
+
|
|
70
|
+
if (!(node instanceof window.Node)) {
|
|
71
|
+
throw new NodeTypeError(node, ...args)
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function checkHtmlElement(htmlElement, ...args) {
|
|
76
|
+
checkHasWindow(htmlElement, HtmlElementTypeError, ...args);
|
|
77
|
+
const window = htmlElement.ownerDocument.defaultView;
|
|
78
|
+
|
|
79
|
+
if (
|
|
80
|
+
!(htmlElement instanceof window.HTMLElement) &&
|
|
81
|
+
!(htmlElement instanceof window.SVGElement)
|
|
82
|
+
) {
|
|
83
|
+
throw new HtmlElementTypeError(htmlElement, ...args)
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
class InvalidCSSError extends Error {
|
|
88
|
+
constructor(received, matcherFn, context) {
|
|
89
|
+
super();
|
|
90
|
+
|
|
91
|
+
/* istanbul ignore next */
|
|
92
|
+
if (Error.captureStackTrace) {
|
|
93
|
+
Error.captureStackTrace(this, matcherFn);
|
|
94
|
+
}
|
|
95
|
+
this.message = [
|
|
96
|
+
received.message,
|
|
97
|
+
'',
|
|
98
|
+
// eslint-disable-next-line new-cap
|
|
99
|
+
context.utils.RECEIVED_COLOR(`Failing css:`),
|
|
100
|
+
// eslint-disable-next-line new-cap
|
|
101
|
+
context.utils.RECEIVED_COLOR(`${received.css}`),
|
|
102
|
+
].join('\n');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function parseCSS(css, ...args) {
|
|
107
|
+
const ast = parse(`selector { ${css} }`, {silent: true}).stylesheet;
|
|
108
|
+
|
|
109
|
+
if (ast.parsingErrors && ast.parsingErrors.length > 0) {
|
|
110
|
+
const {reason, line} = ast.parsingErrors[0];
|
|
111
|
+
|
|
112
|
+
throw new InvalidCSSError(
|
|
113
|
+
{
|
|
114
|
+
css,
|
|
115
|
+
message: `Syntax error parsing expected css: ${reason} on line: ${line}`,
|
|
116
|
+
},
|
|
117
|
+
...args,
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const parsedRules = ast.rules[0].declarations
|
|
122
|
+
.filter(d => d.type === 'declaration')
|
|
123
|
+
.reduce(
|
|
124
|
+
(obj, {property, value}) => Object.assign(obj, {[property]: value}),
|
|
125
|
+
{},
|
|
126
|
+
);
|
|
127
|
+
return parsedRules
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function display(context, value) {
|
|
131
|
+
return typeof value === 'string' ? value : context.utils.stringify(value)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function getMessage(
|
|
135
|
+
context,
|
|
136
|
+
matcher,
|
|
137
|
+
expectedLabel,
|
|
138
|
+
expectedValue,
|
|
139
|
+
receivedLabel,
|
|
140
|
+
receivedValue,
|
|
141
|
+
) {
|
|
142
|
+
return [
|
|
143
|
+
`${matcher}\n`,
|
|
144
|
+
// eslint-disable-next-line new-cap
|
|
145
|
+
`${expectedLabel}:\n${context.utils.EXPECTED_COLOR(
|
|
146
|
+
redent(display(context, expectedValue), 2),
|
|
147
|
+
)}`,
|
|
148
|
+
// eslint-disable-next-line new-cap
|
|
149
|
+
`${receivedLabel}:\n${context.utils.RECEIVED_COLOR(
|
|
150
|
+
redent(display(context, receivedValue), 2),
|
|
151
|
+
)}`,
|
|
152
|
+
].join('\n')
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function matches(textToMatch, matcher) {
|
|
156
|
+
if (matcher instanceof RegExp) {
|
|
157
|
+
return matcher.test(textToMatch)
|
|
158
|
+
} else {
|
|
159
|
+
return textToMatch.includes(String(matcher))
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function deprecate(name, replacementText) {
|
|
164
|
+
// Notify user that they are using deprecated functionality.
|
|
165
|
+
// eslint-disable-next-line no-console
|
|
166
|
+
console.warn(
|
|
167
|
+
`Warning: ${name} has been deprecated and will be removed in future updates.`,
|
|
168
|
+
replacementText,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function normalize(text) {
|
|
173
|
+
return text.replace(/\s+/g, ' ').trim()
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function getTag(element) {
|
|
177
|
+
return element.tagName && element.tagName.toLowerCase()
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function getSelectValue({multiple, options}) {
|
|
181
|
+
const selectedOptions = [...options].filter(option => option.selected);
|
|
182
|
+
|
|
183
|
+
if (multiple) {
|
|
184
|
+
return [...selectedOptions].map(opt => opt.value)
|
|
185
|
+
}
|
|
186
|
+
/* istanbul ignore if */
|
|
187
|
+
if (selectedOptions.length === 0) {
|
|
188
|
+
return undefined // Couldn't make this happen, but just in case
|
|
189
|
+
}
|
|
190
|
+
return selectedOptions[0].value
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function getInputValue(inputElement) {
|
|
194
|
+
switch (inputElement.type) {
|
|
195
|
+
case 'number':
|
|
196
|
+
return inputElement.value === '' ? null : Number(inputElement.value)
|
|
197
|
+
case 'checkbox':
|
|
198
|
+
return inputElement.checked
|
|
199
|
+
default:
|
|
200
|
+
return inputElement.value
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const rolesSupportingValues = ['meter', 'progressbar', 'slider', 'spinbutton'];
|
|
205
|
+
function getAccessibleValue(element) {
|
|
206
|
+
if (!rolesSupportingValues.includes(element.getAttribute('role'))) {
|
|
207
|
+
return undefined
|
|
208
|
+
}
|
|
209
|
+
return Number(element.getAttribute('aria-valuenow'))
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function getSingleElementValue(element) {
|
|
213
|
+
/* istanbul ignore if */
|
|
214
|
+
if (!element) {
|
|
215
|
+
return undefined
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
switch (element.tagName.toLowerCase()) {
|
|
219
|
+
case 'input':
|
|
220
|
+
return getInputValue(element)
|
|
221
|
+
case 'select':
|
|
222
|
+
return getSelectValue(element)
|
|
223
|
+
default: {
|
|
224
|
+
return element.value ?? getAccessibleValue(element)
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function toSentence(
|
|
230
|
+
array,
|
|
231
|
+
{wordConnector = ', ', lastWordConnector = ' and '} = {},
|
|
232
|
+
) {
|
|
233
|
+
return [array.slice(0, -1).join(wordConnector), array[array.length - 1]].join(
|
|
234
|
+
array.length > 1 ? lastWordConnector : '',
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function compareArraysAsSet(arr1, arr2) {
|
|
239
|
+
if (Array.isArray(arr1) && Array.isArray(arr2)) {
|
|
240
|
+
return [...new Set(arr1)].every(v => new Set(arr2).has(v))
|
|
241
|
+
}
|
|
242
|
+
return undefined
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function toBeInTheDOM(element, container) {
|
|
246
|
+
deprecate(
|
|
247
|
+
'toBeInTheDOM',
|
|
248
|
+
'Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.',
|
|
249
|
+
);
|
|
250
|
+
|
|
251
|
+
if (element) {
|
|
252
|
+
checkHtmlElement(element, toBeInTheDOM, this);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (container) {
|
|
256
|
+
checkHtmlElement(container, toBeInTheDOM, this);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
pass: container ? container.contains(element) : !!element,
|
|
261
|
+
message: () => {
|
|
262
|
+
return [
|
|
263
|
+
this.utils.matcherHint(
|
|
264
|
+
`${this.isNot ? '.not' : ''}.toBeInTheDOM`,
|
|
265
|
+
'element',
|
|
266
|
+
'',
|
|
267
|
+
),
|
|
268
|
+
'',
|
|
269
|
+
'Received:',
|
|
270
|
+
` ${this.utils.printReceived(
|
|
271
|
+
element ? element.cloneNode(false) : element,
|
|
272
|
+
)}`,
|
|
273
|
+
].join('\n')
|
|
274
|
+
},
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function toBeInTheDocument(element) {
|
|
279
|
+
if (element !== null || !this.isNot) {
|
|
280
|
+
checkHtmlElement(element, toBeInTheDocument, this);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const pass =
|
|
284
|
+
element === null
|
|
285
|
+
? false
|
|
286
|
+
: element.ownerDocument === element.getRootNode({composed: true});
|
|
287
|
+
|
|
288
|
+
const errorFound = () => {
|
|
289
|
+
return `expected document not to contain element, found ${this.utils.stringify(
|
|
290
|
+
element.cloneNode(true),
|
|
291
|
+
)} instead`
|
|
292
|
+
};
|
|
293
|
+
const errorNotFound = () => {
|
|
294
|
+
return `element could not be found in the document`
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
return {
|
|
298
|
+
pass,
|
|
299
|
+
message: () => {
|
|
300
|
+
return [
|
|
301
|
+
this.utils.matcherHint(
|
|
302
|
+
`${this.isNot ? '.not' : ''}.toBeInTheDocument`,
|
|
303
|
+
'element',
|
|
304
|
+
'',
|
|
305
|
+
),
|
|
306
|
+
'',
|
|
307
|
+
// eslint-disable-next-line new-cap
|
|
308
|
+
this.utils.RECEIVED_COLOR(this.isNot ? errorFound() : errorNotFound()),
|
|
309
|
+
].join('\n')
|
|
310
|
+
},
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function toBeEmpty(element) {
|
|
315
|
+
deprecate(
|
|
316
|
+
'toBeEmpty',
|
|
317
|
+
'Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.',
|
|
318
|
+
);
|
|
319
|
+
checkHtmlElement(element, toBeEmpty, this);
|
|
320
|
+
|
|
321
|
+
return {
|
|
322
|
+
pass: element.innerHTML === '',
|
|
323
|
+
message: () => {
|
|
324
|
+
return [
|
|
325
|
+
this.utils.matcherHint(
|
|
326
|
+
`${this.isNot ? '.not' : ''}.toBeEmpty`,
|
|
327
|
+
'element',
|
|
328
|
+
'',
|
|
329
|
+
),
|
|
330
|
+
'',
|
|
331
|
+
'Received:',
|
|
332
|
+
` ${this.utils.printReceived(element.innerHTML)}`,
|
|
333
|
+
].join('\n')
|
|
334
|
+
},
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function toBeEmptyDOMElement(element) {
|
|
339
|
+
checkHtmlElement(element, toBeEmptyDOMElement, this);
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
pass: isEmptyElement(element),
|
|
343
|
+
message: () => {
|
|
344
|
+
return [
|
|
345
|
+
this.utils.matcherHint(
|
|
346
|
+
`${this.isNot ? '.not' : ''}.toBeEmptyDOMElement`,
|
|
347
|
+
'element',
|
|
348
|
+
'',
|
|
349
|
+
),
|
|
350
|
+
'',
|
|
351
|
+
'Received:',
|
|
352
|
+
` ${this.utils.printReceived(element.innerHTML)}`,
|
|
353
|
+
].join('\n')
|
|
354
|
+
},
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Identifies if an element doesn't contain child nodes (excluding comments)
|
|
360
|
+
* ℹ Node.COMMENT_NODE can't be used because of the following issue
|
|
361
|
+
* https://github.com/jsdom/jsdom/issues/2220
|
|
362
|
+
*
|
|
363
|
+
* @param {*} element an HtmlElement or SVGElement
|
|
364
|
+
* @return {*} true if the element only contains comments or none
|
|
365
|
+
*/
|
|
366
|
+
function isEmptyElement(element){
|
|
367
|
+
const nonCommentChildNodes = [...element.childNodes].filter(node => node.nodeType !== 8);
|
|
368
|
+
return nonCommentChildNodes.length === 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
function toContainElement(container, element) {
|
|
372
|
+
checkHtmlElement(container, toContainElement, this);
|
|
373
|
+
|
|
374
|
+
if (element !== null) {
|
|
375
|
+
checkHtmlElement(element, toContainElement, this);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return {
|
|
379
|
+
pass: container.contains(element),
|
|
380
|
+
message: () => {
|
|
381
|
+
return [
|
|
382
|
+
this.utils.matcherHint(
|
|
383
|
+
`${this.isNot ? '.not' : ''}.toContainElement`,
|
|
384
|
+
'element',
|
|
385
|
+
'element',
|
|
386
|
+
),
|
|
387
|
+
'',
|
|
388
|
+
// eslint-disable-next-line new-cap
|
|
389
|
+
this.utils.RECEIVED_COLOR(`${this.utils.stringify(
|
|
390
|
+
container.cloneNode(false),
|
|
391
|
+
)} ${
|
|
392
|
+
this.isNot ? 'contains:' : 'does not contain:'
|
|
393
|
+
} ${this.utils.stringify(element ? element.cloneNode(false) : element)}
|
|
394
|
+
`),
|
|
395
|
+
].join('\n')
|
|
396
|
+
},
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function getNormalizedHtml(container, htmlText) {
|
|
401
|
+
const div = container.ownerDocument.createElement('div');
|
|
402
|
+
div.innerHTML = htmlText;
|
|
403
|
+
return div.innerHTML
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
function toContainHTML(container, htmlText) {
|
|
407
|
+
checkHtmlElement(container, toContainHTML, this);
|
|
408
|
+
|
|
409
|
+
if (typeof htmlText !== 'string') {
|
|
410
|
+
throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return {
|
|
414
|
+
pass: container.outerHTML.includes(getNormalizedHtml(container, htmlText)),
|
|
415
|
+
message: () => {
|
|
416
|
+
return [
|
|
417
|
+
this.utils.matcherHint(
|
|
418
|
+
`${this.isNot ? '.not' : ''}.toContainHTML`,
|
|
419
|
+
'element',
|
|
420
|
+
'',
|
|
421
|
+
),
|
|
422
|
+
'Expected:',
|
|
423
|
+
// eslint-disable-next-line new-cap
|
|
424
|
+
` ${this.utils.EXPECTED_COLOR(htmlText)}`,
|
|
425
|
+
'Received:',
|
|
426
|
+
` ${this.utils.printReceived(container.cloneNode(true))}`,
|
|
427
|
+
].join('\n')
|
|
428
|
+
},
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
function toHaveTextContent(
|
|
433
|
+
node,
|
|
434
|
+
checkWith,
|
|
435
|
+
options = {normalizeWhitespace: true},
|
|
436
|
+
) {
|
|
437
|
+
checkNode(node, toHaveTextContent, this);
|
|
438
|
+
|
|
439
|
+
const textContent = options.normalizeWhitespace
|
|
440
|
+
? normalize(node.textContent)
|
|
441
|
+
: node.textContent.replace(/\u00a0/g, ' '); // Replace with normal spaces
|
|
442
|
+
|
|
443
|
+
const checkingWithEmptyString = textContent !== '' && checkWith === '';
|
|
444
|
+
|
|
445
|
+
return {
|
|
446
|
+
pass: !checkingWithEmptyString && matches(textContent, checkWith),
|
|
447
|
+
message: () => {
|
|
448
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
449
|
+
return getMessage(
|
|
450
|
+
this,
|
|
451
|
+
this.utils.matcherHint(
|
|
452
|
+
`${this.isNot ? '.not' : ''}.toHaveTextContent`,
|
|
453
|
+
'element',
|
|
454
|
+
'',
|
|
455
|
+
),
|
|
456
|
+
checkingWithEmptyString
|
|
457
|
+
? `Checking with empty string will always match, use .toBeEmptyDOMElement() instead`
|
|
458
|
+
: `Expected element ${to} have text content`,
|
|
459
|
+
checkWith,
|
|
460
|
+
'Received',
|
|
461
|
+
textContent,
|
|
462
|
+
)
|
|
463
|
+
},
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function toHaveAccessibleDescription(
|
|
468
|
+
htmlElement,
|
|
469
|
+
expectedAccessibleDescription,
|
|
470
|
+
) {
|
|
471
|
+
checkHtmlElement(htmlElement, toHaveAccessibleDescription, this);
|
|
472
|
+
const actualAccessibleDescription = computeAccessibleDescription(htmlElement);
|
|
473
|
+
const missingExpectedValue = arguments.length === 1;
|
|
474
|
+
|
|
475
|
+
let pass = false;
|
|
476
|
+
if (missingExpectedValue) {
|
|
477
|
+
// When called without an expected value we only want to validate that the element has an
|
|
478
|
+
// accessible description, whatever it may be.
|
|
479
|
+
pass = actualAccessibleDescription !== '';
|
|
480
|
+
} else {
|
|
481
|
+
pass =
|
|
482
|
+
expectedAccessibleDescription instanceof RegExp
|
|
483
|
+
? expectedAccessibleDescription.test(actualAccessibleDescription)
|
|
484
|
+
: this.equals(
|
|
485
|
+
actualAccessibleDescription,
|
|
486
|
+
expectedAccessibleDescription,
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
return {
|
|
491
|
+
pass,
|
|
492
|
+
|
|
493
|
+
message: () => {
|
|
494
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
495
|
+
return getMessage(
|
|
496
|
+
this,
|
|
497
|
+
this.utils.matcherHint(
|
|
498
|
+
`${this.isNot ? '.not' : ''}.${toHaveAccessibleDescription.name}`,
|
|
499
|
+
'element',
|
|
500
|
+
'',
|
|
501
|
+
),
|
|
502
|
+
`Expected element ${to} have accessible description`,
|
|
503
|
+
expectedAccessibleDescription,
|
|
504
|
+
'Received',
|
|
505
|
+
actualAccessibleDescription,
|
|
506
|
+
)
|
|
507
|
+
},
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
const ariaInvalidName = 'aria-invalid';
|
|
512
|
+
const validStates = ['false'];
|
|
513
|
+
|
|
514
|
+
// See `aria-errormessage` spec at https://www.w3.org/TR/wai-aria-1.2/#aria-errormessage
|
|
515
|
+
function toHaveAccessibleErrorMessage(
|
|
516
|
+
htmlElement,
|
|
517
|
+
expectedAccessibleErrorMessage,
|
|
518
|
+
) {
|
|
519
|
+
checkHtmlElement(htmlElement, toHaveAccessibleErrorMessage, this);
|
|
520
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
521
|
+
const method = this.isNot
|
|
522
|
+
? '.not.toHaveAccessibleErrorMessage'
|
|
523
|
+
: '.toHaveAccessibleErrorMessage';
|
|
524
|
+
|
|
525
|
+
// Enforce Valid Id
|
|
526
|
+
const errormessageId = htmlElement.getAttribute('aria-errormessage');
|
|
527
|
+
const errormessageIdInvalid = !!errormessageId && /\s+/.test(errormessageId);
|
|
528
|
+
|
|
529
|
+
if (errormessageIdInvalid) {
|
|
530
|
+
return {
|
|
531
|
+
pass: false,
|
|
532
|
+
message: () => {
|
|
533
|
+
return getMessage(
|
|
534
|
+
this,
|
|
535
|
+
this.utils.matcherHint(method, 'element'),
|
|
536
|
+
"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",
|
|
537
|
+
'',
|
|
538
|
+
'Received',
|
|
539
|
+
`aria-errormessage="${errormessageId}"`,
|
|
540
|
+
)
|
|
541
|
+
},
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// See `aria-invalid` spec at https://www.w3.org/TR/wai-aria-1.2/#aria-invalid
|
|
546
|
+
const ariaInvalidVal = htmlElement.getAttribute(ariaInvalidName);
|
|
547
|
+
const fieldValid =
|
|
548
|
+
!htmlElement.hasAttribute(ariaInvalidName) ||
|
|
549
|
+
validStates.includes(ariaInvalidVal);
|
|
550
|
+
|
|
551
|
+
// Enforce Valid `aria-invalid` Attribute
|
|
552
|
+
if (fieldValid) {
|
|
553
|
+
return {
|
|
554
|
+
pass: false,
|
|
555
|
+
message: () => {
|
|
556
|
+
return getMessage(
|
|
557
|
+
this,
|
|
558
|
+
this.utils.matcherHint(method, 'element'),
|
|
559
|
+
'Expected element to be marked as invalid with attribute',
|
|
560
|
+
`${ariaInvalidName}="${String(true)}"`,
|
|
561
|
+
'Received',
|
|
562
|
+
htmlElement.hasAttribute('aria-invalid')
|
|
563
|
+
? `${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}`
|
|
564
|
+
: null,
|
|
565
|
+
)
|
|
566
|
+
},
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
const error = normalize(
|
|
571
|
+
htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? '',
|
|
572
|
+
);
|
|
573
|
+
|
|
574
|
+
return {
|
|
575
|
+
pass:
|
|
576
|
+
expectedAccessibleErrorMessage === undefined
|
|
577
|
+
? Boolean(error)
|
|
578
|
+
: expectedAccessibleErrorMessage instanceof RegExp
|
|
579
|
+
? expectedAccessibleErrorMessage.test(error)
|
|
580
|
+
: this.equals(error, expectedAccessibleErrorMessage),
|
|
581
|
+
|
|
582
|
+
message: () => {
|
|
583
|
+
return getMessage(
|
|
584
|
+
this,
|
|
585
|
+
this.utils.matcherHint(method, 'element'),
|
|
586
|
+
`Expected element ${to} have accessible error message`,
|
|
587
|
+
expectedAccessibleErrorMessage ?? '',
|
|
588
|
+
'Received',
|
|
589
|
+
error,
|
|
590
|
+
)
|
|
591
|
+
},
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
const elementRoleList = buildElementRoleList(elementRoles);
|
|
596
|
+
|
|
597
|
+
function toHaveRole(htmlElement, expectedRole) {
|
|
598
|
+
checkHtmlElement(htmlElement, toHaveRole, this);
|
|
599
|
+
|
|
600
|
+
const actualRoles = getExplicitOrImplicitRoles(htmlElement);
|
|
601
|
+
const pass = actualRoles.some(el => el === expectedRole);
|
|
602
|
+
|
|
603
|
+
return {
|
|
604
|
+
pass,
|
|
605
|
+
|
|
606
|
+
message: () => {
|
|
607
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
608
|
+
return getMessage(
|
|
609
|
+
this,
|
|
610
|
+
this.utils.matcherHint(
|
|
611
|
+
`${this.isNot ? '.not' : ''}.${toHaveRole.name}`,
|
|
612
|
+
'element',
|
|
613
|
+
'',
|
|
614
|
+
),
|
|
615
|
+
`Expected element ${to} have role`,
|
|
616
|
+
expectedRole,
|
|
617
|
+
'Received',
|
|
618
|
+
actualRoles.join(', '),
|
|
619
|
+
)
|
|
620
|
+
},
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
function getExplicitOrImplicitRoles(htmlElement) {
|
|
625
|
+
const hasExplicitRole = htmlElement.hasAttribute('role');
|
|
626
|
+
|
|
627
|
+
if (hasExplicitRole) {
|
|
628
|
+
const roleValue = htmlElement.getAttribute('role');
|
|
629
|
+
|
|
630
|
+
// Handle fallback roles, such as role="switch button"
|
|
631
|
+
// testing-library gates this behind the `queryFallbacks` flag; it is
|
|
632
|
+
// unclear why, but it makes sense to support this pattern out of the box
|
|
633
|
+
// https://testing-library.com/docs/queries/byrole/#queryfallbacks
|
|
634
|
+
return roleValue.split(' ').filter(Boolean)
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
const implicitRoles = getImplicitAriaRoles(htmlElement);
|
|
638
|
+
|
|
639
|
+
return implicitRoles
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
function getImplicitAriaRoles(currentNode) {
|
|
643
|
+
for (const {match, roles} of elementRoleList) {
|
|
644
|
+
if (match(currentNode)) {
|
|
645
|
+
return [...roles]
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/* istanbul ignore next */
|
|
650
|
+
return [] // this does not get reached in practice, since elements have at least a 'generic' role
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Transform the roles map (with required attributes and constraints) to a list
|
|
655
|
+
* of roles. Each item in the list has functions to match an element against it.
|
|
656
|
+
*
|
|
657
|
+
* Essentially copied over from [dom-testing-library's
|
|
658
|
+
* helpers](https://github.com/testing-library/dom-testing-library/blob/bd04cf95a1ed85a2238f7dfc1a77d5d16b4f59dc/src/role-helpers.js#L80)
|
|
659
|
+
*
|
|
660
|
+
* TODO: If we are truly just copying over stuff, would it make sense to move
|
|
661
|
+
* this to a separate package?
|
|
662
|
+
*
|
|
663
|
+
* TODO: This technique relies on CSS selectors; are those consistently
|
|
664
|
+
* available in all jest-dom environments? Why do other matchers in this package
|
|
665
|
+
* not use them like this?
|
|
666
|
+
*/
|
|
667
|
+
function buildElementRoleList(elementRolesMap) {
|
|
668
|
+
function makeElementSelector({name, attributes}) {
|
|
669
|
+
return `${name}${attributes
|
|
670
|
+
.map(({name: attributeName, value, constraints = []}) => {
|
|
671
|
+
const shouldNotExist = constraints.indexOf('undefined') !== -1;
|
|
672
|
+
if (shouldNotExist) {
|
|
673
|
+
return `:not([${attributeName}])`
|
|
674
|
+
} else if (value) {
|
|
675
|
+
return `[${attributeName}="${value}"]`
|
|
676
|
+
} else {
|
|
677
|
+
return `[${attributeName}]`
|
|
678
|
+
}
|
|
679
|
+
})
|
|
680
|
+
.join('')}`
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
function getSelectorSpecificity({attributes = []}) {
|
|
684
|
+
return attributes.length
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
function bySelectorSpecificity(
|
|
688
|
+
{specificity: leftSpecificity},
|
|
689
|
+
{specificity: rightSpecificity},
|
|
690
|
+
) {
|
|
691
|
+
return rightSpecificity - leftSpecificity
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
function match(element) {
|
|
695
|
+
let {attributes = []} = element;
|
|
696
|
+
|
|
697
|
+
// https://github.com/testing-library/dom-testing-library/issues/814
|
|
698
|
+
const typeTextIndex = attributes.findIndex(
|
|
699
|
+
attribute =>
|
|
700
|
+
attribute.value &&
|
|
701
|
+
attribute.name === 'type' &&
|
|
702
|
+
attribute.value === 'text',
|
|
703
|
+
);
|
|
704
|
+
|
|
705
|
+
if (typeTextIndex >= 0) {
|
|
706
|
+
// not using splice to not mutate the attributes array
|
|
707
|
+
attributes = [
|
|
708
|
+
...attributes.slice(0, typeTextIndex),
|
|
709
|
+
...attributes.slice(typeTextIndex + 1),
|
|
710
|
+
];
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
const selector = makeElementSelector({...element, attributes});
|
|
714
|
+
|
|
715
|
+
return node => {
|
|
716
|
+
if (typeTextIndex >= 0 && node.type !== 'text') {
|
|
717
|
+
return false
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
return node.matches(selector)
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
let result = [];
|
|
725
|
+
|
|
726
|
+
for (const [element, roles] of elementRolesMap.entries()) {
|
|
727
|
+
result = [
|
|
728
|
+
...result,
|
|
729
|
+
{
|
|
730
|
+
match: match(element),
|
|
731
|
+
roles: Array.from(roles),
|
|
732
|
+
specificity: getSelectorSpecificity(element),
|
|
733
|
+
},
|
|
734
|
+
];
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
return result.sort(bySelectorSpecificity)
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function toHaveAccessibleName(htmlElement, expectedAccessibleName) {
|
|
741
|
+
checkHtmlElement(htmlElement, toHaveAccessibleName, this);
|
|
742
|
+
const actualAccessibleName = computeAccessibleName(htmlElement);
|
|
743
|
+
const missingExpectedValue = arguments.length === 1;
|
|
744
|
+
|
|
745
|
+
let pass = false;
|
|
746
|
+
if (missingExpectedValue) {
|
|
747
|
+
// When called without an expected value we only want to validate that the element has an
|
|
748
|
+
// accessible name, whatever it may be.
|
|
749
|
+
pass = actualAccessibleName !== '';
|
|
750
|
+
} else {
|
|
751
|
+
pass =
|
|
752
|
+
expectedAccessibleName instanceof RegExp
|
|
753
|
+
? expectedAccessibleName.test(actualAccessibleName)
|
|
754
|
+
: this.equals(actualAccessibleName, expectedAccessibleName);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
return {
|
|
758
|
+
pass,
|
|
759
|
+
|
|
760
|
+
message: () => {
|
|
761
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
762
|
+
return getMessage(
|
|
763
|
+
this,
|
|
764
|
+
this.utils.matcherHint(
|
|
765
|
+
`${this.isNot ? '.not' : ''}.${toHaveAccessibleName.name}`,
|
|
766
|
+
'element',
|
|
767
|
+
'',
|
|
768
|
+
),
|
|
769
|
+
`Expected element ${to} have accessible name`,
|
|
770
|
+
expectedAccessibleName,
|
|
771
|
+
'Received',
|
|
772
|
+
actualAccessibleName,
|
|
773
|
+
)
|
|
774
|
+
},
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
function printAttribute(stringify, name, value) {
|
|
779
|
+
return value === undefined ? name : `${name}=${stringify(value)}`
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
function getAttributeComment(stringify, name, value) {
|
|
783
|
+
return value === undefined
|
|
784
|
+
? `element.hasAttribute(${stringify(name)})`
|
|
785
|
+
: `element.getAttribute(${stringify(name)}) === ${stringify(value)}`
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
function toHaveAttribute(htmlElement, name, expectedValue) {
|
|
789
|
+
checkHtmlElement(htmlElement, toHaveAttribute, this);
|
|
790
|
+
const isExpectedValuePresent = expectedValue !== undefined;
|
|
791
|
+
const hasAttribute = htmlElement.hasAttribute(name);
|
|
792
|
+
const receivedValue = htmlElement.getAttribute(name);
|
|
793
|
+
return {
|
|
794
|
+
pass: isExpectedValuePresent
|
|
795
|
+
? hasAttribute && this.equals(receivedValue, expectedValue)
|
|
796
|
+
: hasAttribute,
|
|
797
|
+
message: () => {
|
|
798
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
799
|
+
const receivedAttribute = hasAttribute
|
|
800
|
+
? printAttribute(this.utils.stringify, name, receivedValue)
|
|
801
|
+
: null;
|
|
802
|
+
const matcher = this.utils.matcherHint(
|
|
803
|
+
`${this.isNot ? '.not' : ''}.toHaveAttribute`,
|
|
804
|
+
'element',
|
|
805
|
+
this.utils.printExpected(name),
|
|
806
|
+
{
|
|
807
|
+
secondArgument: isExpectedValuePresent
|
|
808
|
+
? this.utils.printExpected(expectedValue)
|
|
809
|
+
: undefined,
|
|
810
|
+
comment: getAttributeComment(
|
|
811
|
+
this.utils.stringify,
|
|
812
|
+
name,
|
|
813
|
+
expectedValue,
|
|
814
|
+
),
|
|
815
|
+
},
|
|
816
|
+
);
|
|
817
|
+
return getMessage(
|
|
818
|
+
this,
|
|
819
|
+
matcher,
|
|
820
|
+
`Expected the element ${to} have attribute`,
|
|
821
|
+
printAttribute(this.utils.stringify, name, expectedValue),
|
|
822
|
+
'Received',
|
|
823
|
+
receivedAttribute,
|
|
824
|
+
)
|
|
825
|
+
},
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
function getExpectedClassNamesAndOptions(params) {
|
|
830
|
+
const lastParam = params.pop();
|
|
831
|
+
let expectedClassNames, options;
|
|
832
|
+
|
|
833
|
+
if (typeof lastParam === 'object' && !(lastParam instanceof RegExp)) {
|
|
834
|
+
expectedClassNames = params;
|
|
835
|
+
options = lastParam;
|
|
836
|
+
} else {
|
|
837
|
+
expectedClassNames = params.concat(lastParam);
|
|
838
|
+
options = {exact: false};
|
|
839
|
+
}
|
|
840
|
+
return {expectedClassNames, options}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
function splitClassNames(str) {
|
|
844
|
+
if (!str) return []
|
|
845
|
+
return str.split(/\s+/).filter(s => s.length > 0)
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
function isSubset$1(subset, superset) {
|
|
849
|
+
return subset.every(strOrRegexp =>
|
|
850
|
+
typeof strOrRegexp === 'string'
|
|
851
|
+
? superset.includes(strOrRegexp)
|
|
852
|
+
: superset.some(className => strOrRegexp.test(className)),
|
|
853
|
+
)
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
function toHaveClass(htmlElement, ...params) {
|
|
857
|
+
checkHtmlElement(htmlElement, toHaveClass, this);
|
|
858
|
+
const {expectedClassNames, options} = getExpectedClassNamesAndOptions(params);
|
|
859
|
+
|
|
860
|
+
const received = splitClassNames(htmlElement.getAttribute('class'));
|
|
861
|
+
const expected = expectedClassNames.reduce(
|
|
862
|
+
(acc, className) =>
|
|
863
|
+
acc.concat(
|
|
864
|
+
typeof className === 'string' || !className
|
|
865
|
+
? splitClassNames(className)
|
|
866
|
+
: className,
|
|
867
|
+
),
|
|
868
|
+
[],
|
|
869
|
+
);
|
|
870
|
+
|
|
871
|
+
const hasRegExp = expected.some(className => className instanceof RegExp);
|
|
872
|
+
if (options.exact && hasRegExp) {
|
|
873
|
+
throw new Error('Exact option does not support RegExp expected class names')
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
if (options.exact) {
|
|
877
|
+
return {
|
|
878
|
+
pass: isSubset$1(expected, received) && expected.length === received.length,
|
|
879
|
+
message: () => {
|
|
880
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
881
|
+
return getMessage(
|
|
882
|
+
this,
|
|
883
|
+
this.utils.matcherHint(
|
|
884
|
+
`${this.isNot ? '.not' : ''}.toHaveClass`,
|
|
885
|
+
'element',
|
|
886
|
+
this.utils.printExpected(expected.join(' ')),
|
|
887
|
+
),
|
|
888
|
+
`Expected the element ${to} have EXACTLY defined classes`,
|
|
889
|
+
expected.join(' '),
|
|
890
|
+
'Received',
|
|
891
|
+
received.join(' '),
|
|
892
|
+
)
|
|
893
|
+
},
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
return expected.length > 0
|
|
898
|
+
? {
|
|
899
|
+
pass: isSubset$1(expected, received),
|
|
900
|
+
message: () => {
|
|
901
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
902
|
+
return getMessage(
|
|
903
|
+
this,
|
|
904
|
+
this.utils.matcherHint(
|
|
905
|
+
`${this.isNot ? '.not' : ''}.toHaveClass`,
|
|
906
|
+
'element',
|
|
907
|
+
this.utils.printExpected(expected.join(' ')),
|
|
908
|
+
),
|
|
909
|
+
`Expected the element ${to} have class`,
|
|
910
|
+
expected.join(' '),
|
|
911
|
+
'Received',
|
|
912
|
+
received.join(' '),
|
|
913
|
+
)
|
|
914
|
+
},
|
|
915
|
+
}
|
|
916
|
+
: {
|
|
917
|
+
pass: this.isNot ? received.length > 0 : false,
|
|
918
|
+
message: () =>
|
|
919
|
+
this.isNot
|
|
920
|
+
? getMessage(
|
|
921
|
+
this,
|
|
922
|
+
this.utils.matcherHint('.not.toHaveClass', 'element', ''),
|
|
923
|
+
'Expected the element to have classes',
|
|
924
|
+
'(none)',
|
|
925
|
+
'Received',
|
|
926
|
+
received.join(' '),
|
|
927
|
+
)
|
|
928
|
+
: [
|
|
929
|
+
this.utils.matcherHint(`.toHaveClass`, 'element'),
|
|
930
|
+
'At least one expected class must be provided.',
|
|
931
|
+
].join('\n'),
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
function getStyleDeclaration(document, css) {
|
|
936
|
+
const styles = {};
|
|
937
|
+
|
|
938
|
+
// The next block is necessary to normalize colors
|
|
939
|
+
const copy = document.createElement('div');
|
|
940
|
+
Object.keys(css).forEach(property => {
|
|
941
|
+
copy.style[property] = css[property];
|
|
942
|
+
styles[property] = copy.style[property];
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
return styles
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
function isSubset(styles, computedStyle) {
|
|
949
|
+
return (
|
|
950
|
+
!!Object.keys(styles).length &&
|
|
951
|
+
Object.entries(styles).every(([prop, value]) => {
|
|
952
|
+
const isCustomProperty = prop.startsWith('--');
|
|
953
|
+
const spellingVariants = [prop];
|
|
954
|
+
if (!isCustomProperty) spellingVariants.push(prop.toLowerCase());
|
|
955
|
+
|
|
956
|
+
return spellingVariants.some(
|
|
957
|
+
name =>
|
|
958
|
+
computedStyle[name] === value ||
|
|
959
|
+
computedStyle.getPropertyValue(name) === value,
|
|
960
|
+
)
|
|
961
|
+
})
|
|
962
|
+
)
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
function printoutStyles(styles) {
|
|
966
|
+
return Object.keys(styles)
|
|
967
|
+
.sort()
|
|
968
|
+
.map(prop => `${prop}: ${styles[prop]};`)
|
|
969
|
+
.join('\n')
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// Highlights only style rules that were expected but were not found in the
|
|
973
|
+
// received computed styles
|
|
974
|
+
function expectedDiff(diffFn, expected, computedStyles) {
|
|
975
|
+
const received = Array.from(computedStyles)
|
|
976
|
+
.filter(prop => expected[prop] !== undefined)
|
|
977
|
+
.reduce(
|
|
978
|
+
(obj, prop) =>
|
|
979
|
+
Object.assign(obj, {[prop]: computedStyles.getPropertyValue(prop)}),
|
|
980
|
+
{},
|
|
981
|
+
);
|
|
982
|
+
const diffOutput = diffFn(printoutStyles(expected), printoutStyles(received));
|
|
983
|
+
// Remove the "+ Received" annotation because this is a one-way diff
|
|
984
|
+
return diffOutput.replace(`${chalk.red('+ Received')}\n`, '')
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
function toHaveStyle(htmlElement, css) {
|
|
988
|
+
checkHtmlElement(htmlElement, toHaveStyle, this);
|
|
989
|
+
const parsedCSS =
|
|
990
|
+
typeof css === 'object' ? css : parseCSS(css, toHaveStyle, this);
|
|
991
|
+
const {getComputedStyle} = htmlElement.ownerDocument.defaultView;
|
|
992
|
+
|
|
993
|
+
const expected = getStyleDeclaration(htmlElement.ownerDocument, parsedCSS);
|
|
994
|
+
const received = getComputedStyle(htmlElement);
|
|
995
|
+
|
|
996
|
+
return {
|
|
997
|
+
pass: isSubset(expected, received),
|
|
998
|
+
message: () => {
|
|
999
|
+
const matcher = `${this.isNot ? '.not' : ''}.toHaveStyle`;
|
|
1000
|
+
return [
|
|
1001
|
+
this.utils.matcherHint(matcher, 'element', ''),
|
|
1002
|
+
expectedDiff(this.utils.diff, expected, received),
|
|
1003
|
+
].join('\n\n')
|
|
1004
|
+
},
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
function toHaveFocus(element) {
|
|
1009
|
+
checkHtmlElement(element, toHaveFocus, this);
|
|
1010
|
+
|
|
1011
|
+
return {
|
|
1012
|
+
pass: element.ownerDocument.activeElement === element,
|
|
1013
|
+
message: () => {
|
|
1014
|
+
return [
|
|
1015
|
+
this.utils.matcherHint(
|
|
1016
|
+
`${this.isNot ? '.not' : ''}.toHaveFocus`,
|
|
1017
|
+
'element',
|
|
1018
|
+
'',
|
|
1019
|
+
),
|
|
1020
|
+
'',
|
|
1021
|
+
...(this.isNot
|
|
1022
|
+
? [
|
|
1023
|
+
'Received element is focused:',
|
|
1024
|
+
` ${this.utils.printReceived(element)}`,
|
|
1025
|
+
]
|
|
1026
|
+
: [
|
|
1027
|
+
'Expected element with focus:',
|
|
1028
|
+
` ${this.utils.printExpected(element)}`,
|
|
1029
|
+
'Received element with focus:',
|
|
1030
|
+
` ${this.utils.printReceived(
|
|
1031
|
+
element.ownerDocument.activeElement,
|
|
1032
|
+
)}`,
|
|
1033
|
+
]),
|
|
1034
|
+
].join('\n')
|
|
1035
|
+
},
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
// Returns the combined value of several elements that have the same name
|
|
1040
|
+
// e.g. radio buttons or groups of checkboxes
|
|
1041
|
+
function getMultiElementValue(elements) {
|
|
1042
|
+
const types = [...new Set(elements.map(element => element.type))];
|
|
1043
|
+
if (types.length !== 1) {
|
|
1044
|
+
throw new Error(
|
|
1045
|
+
'Multiple form elements with the same name must be of the same type',
|
|
1046
|
+
)
|
|
1047
|
+
}
|
|
1048
|
+
switch (types[0]) {
|
|
1049
|
+
case 'radio': {
|
|
1050
|
+
const theChosenOne = elements.find(radio => radio.checked);
|
|
1051
|
+
return theChosenOne ? theChosenOne.value : undefined
|
|
1052
|
+
}
|
|
1053
|
+
case 'checkbox':
|
|
1054
|
+
return elements
|
|
1055
|
+
.filter(checkbox => checkbox.checked)
|
|
1056
|
+
.map(checkbox => checkbox.value)
|
|
1057
|
+
default:
|
|
1058
|
+
// NOTE: Not even sure this is a valid use case, but just in case...
|
|
1059
|
+
return elements.map(element => element.value)
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
function getFormValue(container, name) {
|
|
1064
|
+
const elements = [...container.querySelectorAll(`[name="${escape(name)}"]`)];
|
|
1065
|
+
/* istanbul ignore if */
|
|
1066
|
+
if (elements.length === 0) {
|
|
1067
|
+
return undefined // shouldn't happen, but just in case
|
|
1068
|
+
}
|
|
1069
|
+
switch (elements.length) {
|
|
1070
|
+
case 1:
|
|
1071
|
+
return getSingleElementValue(elements[0])
|
|
1072
|
+
default:
|
|
1073
|
+
return getMultiElementValue(elements)
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
// Strips the `[]` suffix off a form value name
|
|
1078
|
+
function getPureName(name) {
|
|
1079
|
+
return /\[\]$/.test(name) ? name.slice(0, -2) : name
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
function getAllFormValues(container) {
|
|
1083
|
+
const names = Array.from(container.elements).map(element => element.name);
|
|
1084
|
+
return names.reduce(
|
|
1085
|
+
(obj, name) => ({
|
|
1086
|
+
...obj,
|
|
1087
|
+
[getPureName(name)]: getFormValue(container, name),
|
|
1088
|
+
}),
|
|
1089
|
+
{},
|
|
1090
|
+
)
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
function toHaveFormValues(formElement, expectedValues) {
|
|
1094
|
+
checkHtmlElement(formElement, toHaveFormValues, this);
|
|
1095
|
+
if (!formElement.elements) {
|
|
1096
|
+
// TODO: Change condition to use instanceof against the appropriate element classes instead
|
|
1097
|
+
throw new Error('toHaveFormValues must be called on a form or a fieldset')
|
|
1098
|
+
}
|
|
1099
|
+
const formValues = getAllFormValues(formElement);
|
|
1100
|
+
return {
|
|
1101
|
+
pass: Object.entries(expectedValues).every(([name, expectedValue]) =>
|
|
1102
|
+
isEqualWith(formValues[name], expectedValue, compareArraysAsSet),
|
|
1103
|
+
),
|
|
1104
|
+
message: () => {
|
|
1105
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
1106
|
+
const matcher = `${this.isNot ? '.not' : ''}.toHaveFormValues`;
|
|
1107
|
+
const commonKeyValues = Object.keys(formValues)
|
|
1108
|
+
.filter(key => expectedValues.hasOwnProperty(key))
|
|
1109
|
+
.reduce((obj, key) => ({...obj, [key]: formValues[key]}), {});
|
|
1110
|
+
return [
|
|
1111
|
+
this.utils.matcherHint(matcher, 'element', ''),
|
|
1112
|
+
`Expected the element ${to} have form values`,
|
|
1113
|
+
this.utils.diff(expectedValues, commonKeyValues),
|
|
1114
|
+
].join('\n\n')
|
|
1115
|
+
},
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
function isStyleVisible(element) {
|
|
1120
|
+
const {getComputedStyle} = element.ownerDocument.defaultView;
|
|
1121
|
+
|
|
1122
|
+
const {display, visibility, opacity} = getComputedStyle(element);
|
|
1123
|
+
return (
|
|
1124
|
+
display !== 'none' &&
|
|
1125
|
+
visibility !== 'hidden' &&
|
|
1126
|
+
visibility !== 'collapse' &&
|
|
1127
|
+
opacity !== '0' &&
|
|
1128
|
+
opacity !== 0
|
|
1129
|
+
)
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
function isAttributeVisible(element, previousElement) {
|
|
1133
|
+
let detailsVisibility;
|
|
1134
|
+
|
|
1135
|
+
if (previousElement) {
|
|
1136
|
+
detailsVisibility =
|
|
1137
|
+
element.nodeName === 'DETAILS' && previousElement.nodeName !== 'SUMMARY'
|
|
1138
|
+
? element.hasAttribute('open')
|
|
1139
|
+
: true;
|
|
1140
|
+
} else {
|
|
1141
|
+
detailsVisibility =
|
|
1142
|
+
element.nodeName === 'DETAILS' ? element.hasAttribute('open') : true;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
return !element.hasAttribute('hidden') && detailsVisibility
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
function isElementVisible(element, previousElement) {
|
|
1149
|
+
return (
|
|
1150
|
+
isStyleVisible(element) &&
|
|
1151
|
+
isAttributeVisible(element, previousElement) &&
|
|
1152
|
+
(!element.parentElement || isElementVisible(element.parentElement, element))
|
|
1153
|
+
)
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
function toBeVisible(element) {
|
|
1157
|
+
checkHtmlElement(element, toBeVisible, this);
|
|
1158
|
+
const isInDocument =
|
|
1159
|
+
element.ownerDocument === element.getRootNode({composed: true});
|
|
1160
|
+
const isVisible = isInDocument && isElementVisible(element);
|
|
1161
|
+
return {
|
|
1162
|
+
pass: isVisible,
|
|
1163
|
+
message: () => {
|
|
1164
|
+
const is = isVisible ? 'is' : 'is not';
|
|
1165
|
+
return [
|
|
1166
|
+
this.utils.matcherHint(
|
|
1167
|
+
`${this.isNot ? '.not' : ''}.toBeVisible`,
|
|
1168
|
+
'element',
|
|
1169
|
+
'',
|
|
1170
|
+
),
|
|
1171
|
+
'',
|
|
1172
|
+
`Received element ${is} visible${
|
|
1173
|
+
isInDocument ? '' : ' (element is not in the document)'
|
|
1174
|
+
}:`,
|
|
1175
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1176
|
+
].join('\n')
|
|
1177
|
+
},
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
// form elements that support 'disabled'
|
|
1182
|
+
const FORM_TAGS$2 = [
|
|
1183
|
+
'fieldset',
|
|
1184
|
+
'input',
|
|
1185
|
+
'select',
|
|
1186
|
+
'optgroup',
|
|
1187
|
+
'option',
|
|
1188
|
+
'button',
|
|
1189
|
+
'textarea',
|
|
1190
|
+
];
|
|
1191
|
+
|
|
1192
|
+
/*
|
|
1193
|
+
* According to specification:
|
|
1194
|
+
* If <fieldset> is disabled, the form controls that are its descendants,
|
|
1195
|
+
* except descendants of its first optional <legend> element, are disabled
|
|
1196
|
+
*
|
|
1197
|
+
* https://html.spec.whatwg.org/multipage/form-elements.html#concept-fieldset-disabled
|
|
1198
|
+
*
|
|
1199
|
+
* This method tests whether element is first legend child of fieldset parent
|
|
1200
|
+
*/
|
|
1201
|
+
function isFirstLegendChildOfFieldset(element, parent) {
|
|
1202
|
+
return (
|
|
1203
|
+
getTag(element) === 'legend' &&
|
|
1204
|
+
getTag(parent) === 'fieldset' &&
|
|
1205
|
+
element.isSameNode(
|
|
1206
|
+
Array.from(parent.children).find(child => getTag(child) === 'legend'),
|
|
1207
|
+
)
|
|
1208
|
+
)
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
function isElementDisabledByParent(element, parent) {
|
|
1212
|
+
return (
|
|
1213
|
+
isElementDisabled(parent) && !isFirstLegendChildOfFieldset(element, parent)
|
|
1214
|
+
)
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
function isCustomElement(tag) {
|
|
1218
|
+
return tag.includes('-')
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/*
|
|
1222
|
+
* Only certain form elements and custom elements can actually be disabled:
|
|
1223
|
+
* https://html.spec.whatwg.org/multipage/semantics-other.html#disabled-elements
|
|
1224
|
+
*/
|
|
1225
|
+
function canElementBeDisabled(element) {
|
|
1226
|
+
const tag = getTag(element);
|
|
1227
|
+
return FORM_TAGS$2.includes(tag) || isCustomElement(tag)
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function isElementDisabled(element) {
|
|
1231
|
+
return canElementBeDisabled(element) && element.hasAttribute('disabled')
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
function isAncestorDisabled(element) {
|
|
1235
|
+
const parent = element.parentElement;
|
|
1236
|
+
return (
|
|
1237
|
+
Boolean(parent) &&
|
|
1238
|
+
(isElementDisabledByParent(element, parent) || isAncestorDisabled(parent))
|
|
1239
|
+
)
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
function isElementOrAncestorDisabled(element) {
|
|
1243
|
+
return (
|
|
1244
|
+
canElementBeDisabled(element) &&
|
|
1245
|
+
(isElementDisabled(element) || isAncestorDisabled(element))
|
|
1246
|
+
)
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
function toBeDisabled(element) {
|
|
1250
|
+
checkHtmlElement(element, toBeDisabled, this);
|
|
1251
|
+
|
|
1252
|
+
const isDisabled = isElementOrAncestorDisabled(element);
|
|
1253
|
+
|
|
1254
|
+
return {
|
|
1255
|
+
pass: isDisabled,
|
|
1256
|
+
message: () => {
|
|
1257
|
+
const is = isDisabled ? 'is' : 'is not';
|
|
1258
|
+
return [
|
|
1259
|
+
this.utils.matcherHint(
|
|
1260
|
+
`${this.isNot ? '.not' : ''}.toBeDisabled`,
|
|
1261
|
+
'element',
|
|
1262
|
+
'',
|
|
1263
|
+
),
|
|
1264
|
+
'',
|
|
1265
|
+
`Received element ${is} disabled:`,
|
|
1266
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1267
|
+
].join('\n')
|
|
1268
|
+
},
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
function toBeEnabled(element) {
|
|
1273
|
+
checkHtmlElement(element, toBeEnabled, this);
|
|
1274
|
+
|
|
1275
|
+
const isEnabled = !isElementOrAncestorDisabled(element);
|
|
1276
|
+
|
|
1277
|
+
return {
|
|
1278
|
+
pass: isEnabled,
|
|
1279
|
+
message: () => {
|
|
1280
|
+
const is = isEnabled ? 'is' : 'is not';
|
|
1281
|
+
return [
|
|
1282
|
+
this.utils.matcherHint(
|
|
1283
|
+
`${this.isNot ? '.not' : ''}.toBeEnabled`,
|
|
1284
|
+
'element',
|
|
1285
|
+
'',
|
|
1286
|
+
),
|
|
1287
|
+
'',
|
|
1288
|
+
`Received element ${is} enabled:`,
|
|
1289
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1290
|
+
].join('\n')
|
|
1291
|
+
},
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// form elements that support 'required'
|
|
1296
|
+
const FORM_TAGS$1 = ['select', 'textarea'];
|
|
1297
|
+
|
|
1298
|
+
const ARIA_FORM_TAGS = ['input', 'select', 'textarea'];
|
|
1299
|
+
|
|
1300
|
+
const UNSUPPORTED_INPUT_TYPES = [
|
|
1301
|
+
'color',
|
|
1302
|
+
'hidden',
|
|
1303
|
+
'range',
|
|
1304
|
+
'submit',
|
|
1305
|
+
'image',
|
|
1306
|
+
'reset',
|
|
1307
|
+
];
|
|
1308
|
+
|
|
1309
|
+
const SUPPORTED_ARIA_ROLES = [
|
|
1310
|
+
'checkbox',
|
|
1311
|
+
'combobox',
|
|
1312
|
+
'gridcell',
|
|
1313
|
+
'listbox',
|
|
1314
|
+
'radiogroup',
|
|
1315
|
+
'spinbutton',
|
|
1316
|
+
'textbox',
|
|
1317
|
+
'tree',
|
|
1318
|
+
];
|
|
1319
|
+
|
|
1320
|
+
function isRequiredOnFormTagsExceptInput(element) {
|
|
1321
|
+
return FORM_TAGS$1.includes(getTag(element)) && element.hasAttribute('required')
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
function isRequiredOnSupportedInput(element) {
|
|
1325
|
+
return (
|
|
1326
|
+
getTag(element) === 'input' &&
|
|
1327
|
+
element.hasAttribute('required') &&
|
|
1328
|
+
((element.hasAttribute('type') &&
|
|
1329
|
+
!UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute('type'))) ||
|
|
1330
|
+
!element.hasAttribute('type'))
|
|
1331
|
+
)
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
function isElementRequiredByARIA(element) {
|
|
1335
|
+
return (
|
|
1336
|
+
element.hasAttribute('aria-required') &&
|
|
1337
|
+
element.getAttribute('aria-required') === 'true' &&
|
|
1338
|
+
(ARIA_FORM_TAGS.includes(getTag(element)) ||
|
|
1339
|
+
(element.hasAttribute('role') &&
|
|
1340
|
+
SUPPORTED_ARIA_ROLES.includes(element.getAttribute('role'))))
|
|
1341
|
+
)
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
function toBeRequired(element) {
|
|
1345
|
+
checkHtmlElement(element, toBeRequired, this);
|
|
1346
|
+
|
|
1347
|
+
const isRequired =
|
|
1348
|
+
isRequiredOnFormTagsExceptInput(element) ||
|
|
1349
|
+
isRequiredOnSupportedInput(element) ||
|
|
1350
|
+
isElementRequiredByARIA(element);
|
|
1351
|
+
|
|
1352
|
+
return {
|
|
1353
|
+
pass: isRequired,
|
|
1354
|
+
message: () => {
|
|
1355
|
+
const is = isRequired ? 'is' : 'is not';
|
|
1356
|
+
return [
|
|
1357
|
+
this.utils.matcherHint(
|
|
1358
|
+
`${this.isNot ? '.not' : ''}.toBeRequired`,
|
|
1359
|
+
'element',
|
|
1360
|
+
'',
|
|
1361
|
+
),
|
|
1362
|
+
'',
|
|
1363
|
+
`Received element ${is} required:`,
|
|
1364
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1365
|
+
].join('\n')
|
|
1366
|
+
},
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
const FORM_TAGS = ['form', 'input', 'select', 'textarea'];
|
|
1371
|
+
|
|
1372
|
+
function isElementHavingAriaInvalid(element) {
|
|
1373
|
+
return (
|
|
1374
|
+
element.hasAttribute('aria-invalid') &&
|
|
1375
|
+
element.getAttribute('aria-invalid') !== 'false'
|
|
1376
|
+
)
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
function isSupportsValidityMethod(element) {
|
|
1380
|
+
return FORM_TAGS.includes(getTag(element))
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
function isElementInvalid(element) {
|
|
1384
|
+
const isHaveAriaInvalid = isElementHavingAriaInvalid(element);
|
|
1385
|
+
if (isSupportsValidityMethod(element)) {
|
|
1386
|
+
return isHaveAriaInvalid || !element.checkValidity()
|
|
1387
|
+
} else {
|
|
1388
|
+
return isHaveAriaInvalid
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
function toBeInvalid(element) {
|
|
1393
|
+
checkHtmlElement(element, toBeInvalid, this);
|
|
1394
|
+
|
|
1395
|
+
const isInvalid = isElementInvalid(element);
|
|
1396
|
+
|
|
1397
|
+
return {
|
|
1398
|
+
pass: isInvalid,
|
|
1399
|
+
message: () => {
|
|
1400
|
+
const is = isInvalid ? 'is' : 'is not';
|
|
1401
|
+
return [
|
|
1402
|
+
this.utils.matcherHint(
|
|
1403
|
+
`${this.isNot ? '.not' : ''}.toBeInvalid`,
|
|
1404
|
+
'element',
|
|
1405
|
+
'',
|
|
1406
|
+
),
|
|
1407
|
+
'',
|
|
1408
|
+
`Received element ${is} currently invalid:`,
|
|
1409
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1410
|
+
].join('\n')
|
|
1411
|
+
},
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
function toBeValid(element) {
|
|
1416
|
+
checkHtmlElement(element, toBeValid, this);
|
|
1417
|
+
|
|
1418
|
+
const isValid = !isElementInvalid(element);
|
|
1419
|
+
|
|
1420
|
+
return {
|
|
1421
|
+
pass: isValid,
|
|
1422
|
+
message: () => {
|
|
1423
|
+
const is = isValid ? 'is' : 'is not';
|
|
1424
|
+
return [
|
|
1425
|
+
this.utils.matcherHint(
|
|
1426
|
+
`${this.isNot ? '.not' : ''}.toBeValid`,
|
|
1427
|
+
'element',
|
|
1428
|
+
'',
|
|
1429
|
+
),
|
|
1430
|
+
'',
|
|
1431
|
+
`Received element ${is} currently valid:`,
|
|
1432
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1433
|
+
].join('\n')
|
|
1434
|
+
},
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
function toHaveValue(htmlElement, expectedValue) {
|
|
1439
|
+
checkHtmlElement(htmlElement, toHaveValue, this);
|
|
1440
|
+
|
|
1441
|
+
if (
|
|
1442
|
+
htmlElement.tagName.toLowerCase() === 'input' &&
|
|
1443
|
+
['checkbox', 'radio'].includes(htmlElement.type)
|
|
1444
|
+
) {
|
|
1445
|
+
throw new Error(
|
|
1446
|
+
'input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead',
|
|
1447
|
+
)
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
const receivedValue = getSingleElementValue(htmlElement);
|
|
1451
|
+
const expectsValue = expectedValue !== undefined;
|
|
1452
|
+
|
|
1453
|
+
let expectedTypedValue = expectedValue;
|
|
1454
|
+
let receivedTypedValue = receivedValue;
|
|
1455
|
+
if (expectedValue == receivedValue && expectedValue !== receivedValue) {
|
|
1456
|
+
expectedTypedValue = `${expectedValue} (${typeof expectedValue})`;
|
|
1457
|
+
receivedTypedValue = `${receivedValue} (${typeof receivedValue})`;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
return {
|
|
1461
|
+
pass: expectsValue
|
|
1462
|
+
? isEqualWith(receivedValue, expectedValue, compareArraysAsSet)
|
|
1463
|
+
: Boolean(receivedValue),
|
|
1464
|
+
message: () => {
|
|
1465
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
1466
|
+
const matcher = this.utils.matcherHint(
|
|
1467
|
+
`${this.isNot ? '.not' : ''}.toHaveValue`,
|
|
1468
|
+
'element',
|
|
1469
|
+
expectedValue,
|
|
1470
|
+
);
|
|
1471
|
+
return getMessage(
|
|
1472
|
+
this,
|
|
1473
|
+
matcher,
|
|
1474
|
+
`Expected the element ${to} have value`,
|
|
1475
|
+
expectsValue ? expectedTypedValue : '(any)',
|
|
1476
|
+
'Received',
|
|
1477
|
+
receivedTypedValue,
|
|
1478
|
+
)
|
|
1479
|
+
},
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
function toHaveDisplayValue(htmlElement, expectedValue) {
|
|
1484
|
+
checkHtmlElement(htmlElement, toHaveDisplayValue, this);
|
|
1485
|
+
const tagName = htmlElement.tagName.toLowerCase();
|
|
1486
|
+
|
|
1487
|
+
if (!['select', 'input', 'textarea'].includes(tagName)) {
|
|
1488
|
+
throw new Error(
|
|
1489
|
+
'.toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.',
|
|
1490
|
+
)
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
if (tagName === 'input' && ['radio', 'checkbox'].includes(htmlElement.type)) {
|
|
1494
|
+
throw new Error(
|
|
1495
|
+
`.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`,
|
|
1496
|
+
)
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
const values = getValues(tagName, htmlElement);
|
|
1500
|
+
const expectedValues = getExpectedValues(expectedValue);
|
|
1501
|
+
const numberOfMatchesWithValues = expectedValues.filter(expected =>
|
|
1502
|
+
values.some(value =>
|
|
1503
|
+
expected instanceof RegExp
|
|
1504
|
+
? expected.test(value)
|
|
1505
|
+
: this.equals(value, String(expected)),
|
|
1506
|
+
),
|
|
1507
|
+
).length;
|
|
1508
|
+
|
|
1509
|
+
const matchedWithAllValues = numberOfMatchesWithValues === values.length;
|
|
1510
|
+
const matchedWithAllExpectedValues =
|
|
1511
|
+
numberOfMatchesWithValues === expectedValues.length;
|
|
1512
|
+
|
|
1513
|
+
return {
|
|
1514
|
+
pass: matchedWithAllValues && matchedWithAllExpectedValues,
|
|
1515
|
+
message: () =>
|
|
1516
|
+
getMessage(
|
|
1517
|
+
this,
|
|
1518
|
+
this.utils.matcherHint(
|
|
1519
|
+
`${this.isNot ? '.not' : ''}.toHaveDisplayValue`,
|
|
1520
|
+
'element',
|
|
1521
|
+
'',
|
|
1522
|
+
),
|
|
1523
|
+
`Expected element ${this.isNot ? 'not ' : ''}to have display value`,
|
|
1524
|
+
expectedValue,
|
|
1525
|
+
'Received',
|
|
1526
|
+
values,
|
|
1527
|
+
),
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
function getValues(tagName, htmlElement) {
|
|
1532
|
+
return tagName === 'select'
|
|
1533
|
+
? Array.from(htmlElement)
|
|
1534
|
+
.filter(option => option.selected)
|
|
1535
|
+
.map(option => option.textContent)
|
|
1536
|
+
: [htmlElement.value]
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
function getExpectedValues(expectedValue) {
|
|
1540
|
+
return expectedValue instanceof Array ? expectedValue : [expectedValue]
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function toBeChecked(element) {
|
|
1544
|
+
checkHtmlElement(element, toBeChecked, this);
|
|
1545
|
+
|
|
1546
|
+
const isValidInput = () => {
|
|
1547
|
+
return (
|
|
1548
|
+
element.tagName.toLowerCase() === 'input' &&
|
|
1549
|
+
['checkbox', 'radio'].includes(element.type)
|
|
1550
|
+
)
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
const isValidAriaElement = () => {
|
|
1554
|
+
return (
|
|
1555
|
+
roleSupportsChecked(element.getAttribute('role')) &&
|
|
1556
|
+
['true', 'false'].includes(element.getAttribute('aria-checked'))
|
|
1557
|
+
)
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
if (!isValidInput() && !isValidAriaElement()) {
|
|
1561
|
+
return {
|
|
1562
|
+
pass: false,
|
|
1563
|
+
message: () =>
|
|
1564
|
+
`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`,
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
const isChecked = () => {
|
|
1569
|
+
if (isValidInput()) return element.checked
|
|
1570
|
+
return element.getAttribute('aria-checked') === 'true'
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
return {
|
|
1574
|
+
pass: isChecked(),
|
|
1575
|
+
message: () => {
|
|
1576
|
+
const is = isChecked() ? 'is' : 'is not';
|
|
1577
|
+
return [
|
|
1578
|
+
this.utils.matcherHint(
|
|
1579
|
+
`${this.isNot ? '.not' : ''}.toBeChecked`,
|
|
1580
|
+
'element',
|
|
1581
|
+
'',
|
|
1582
|
+
),
|
|
1583
|
+
'',
|
|
1584
|
+
`Received element ${is} checked:`,
|
|
1585
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1586
|
+
].join('\n')
|
|
1587
|
+
},
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
function supportedRolesSentence() {
|
|
1592
|
+
return toSentence(
|
|
1593
|
+
supportedRoles().map(role => `role="${role}"`),
|
|
1594
|
+
{lastWordConnector: ' or '},
|
|
1595
|
+
)
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
function supportedRoles() {
|
|
1599
|
+
return roles.keys().filter(roleSupportsChecked)
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
function roleSupportsChecked(role) {
|
|
1603
|
+
return roles.get(role)?.props['aria-checked'] !== undefined
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
function toBePartiallyChecked(element) {
|
|
1607
|
+
checkHtmlElement(element, toBePartiallyChecked, this);
|
|
1608
|
+
|
|
1609
|
+
const isValidInput = () => {
|
|
1610
|
+
return (
|
|
1611
|
+
element.tagName.toLowerCase() === 'input' && element.type === 'checkbox'
|
|
1612
|
+
)
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
const isValidAriaElement = () => {
|
|
1616
|
+
return element.getAttribute('role') === 'checkbox'
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1619
|
+
if (!isValidInput() && !isValidAriaElement()) {
|
|
1620
|
+
return {
|
|
1621
|
+
pass: false,
|
|
1622
|
+
message: () =>
|
|
1623
|
+
'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead',
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
const isPartiallyChecked = () => {
|
|
1628
|
+
const isAriaMixed = element.getAttribute('aria-checked') === 'mixed';
|
|
1629
|
+
|
|
1630
|
+
if (isValidInput()) {
|
|
1631
|
+
return element.indeterminate || isAriaMixed
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
return isAriaMixed
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
return {
|
|
1638
|
+
pass: isPartiallyChecked(),
|
|
1639
|
+
message: () => {
|
|
1640
|
+
const is = isPartiallyChecked() ? 'is' : 'is not';
|
|
1641
|
+
return [
|
|
1642
|
+
this.utils.matcherHint(
|
|
1643
|
+
`${this.isNot ? '.not' : ''}.toBePartiallyChecked`,
|
|
1644
|
+
'element',
|
|
1645
|
+
'',
|
|
1646
|
+
),
|
|
1647
|
+
'',
|
|
1648
|
+
`Received element ${is} partially checked:`,
|
|
1649
|
+
` ${this.utils.printReceived(element.cloneNode(false))}`,
|
|
1650
|
+
].join('\n')
|
|
1651
|
+
},
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
|
|
1656
|
+
function toHaveDescription(htmlElement, checkWith) {
|
|
1657
|
+
deprecate(
|
|
1658
|
+
'toHaveDescription',
|
|
1659
|
+
'Please use toHaveAccessibleDescription.',
|
|
1660
|
+
);
|
|
1661
|
+
|
|
1662
|
+
checkHtmlElement(htmlElement, toHaveDescription, this);
|
|
1663
|
+
|
|
1664
|
+
const expectsDescription = checkWith !== undefined;
|
|
1665
|
+
|
|
1666
|
+
const descriptionIDRaw = htmlElement.getAttribute('aria-describedby') || '';
|
|
1667
|
+
const descriptionIDs = descriptionIDRaw.split(/\s+/).filter(Boolean);
|
|
1668
|
+
let description = '';
|
|
1669
|
+
if (descriptionIDs.length > 0) {
|
|
1670
|
+
const document = htmlElement.ownerDocument;
|
|
1671
|
+
const descriptionEls = descriptionIDs
|
|
1672
|
+
.map(descriptionID => document.getElementById(descriptionID))
|
|
1673
|
+
.filter(Boolean);
|
|
1674
|
+
description = normalize(descriptionEls.map(el => el.textContent).join(' '));
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
return {
|
|
1678
|
+
pass: expectsDescription
|
|
1679
|
+
? checkWith instanceof RegExp
|
|
1680
|
+
? checkWith.test(description)
|
|
1681
|
+
: this.equals(description, checkWith)
|
|
1682
|
+
: Boolean(description),
|
|
1683
|
+
message: () => {
|
|
1684
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
1685
|
+
return getMessage(
|
|
1686
|
+
this,
|
|
1687
|
+
this.utils.matcherHint(
|
|
1688
|
+
`${this.isNot ? '.not' : ''}.toHaveDescription`,
|
|
1689
|
+
'element',
|
|
1690
|
+
'',
|
|
1691
|
+
),
|
|
1692
|
+
`Expected the element ${to} have description`,
|
|
1693
|
+
this.utils.printExpected(checkWith),
|
|
1694
|
+
'Received',
|
|
1695
|
+
this.utils.printReceived(description),
|
|
1696
|
+
)
|
|
1697
|
+
},
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// See aria-errormessage spec https://www.w3.org/TR/wai-aria-1.2/#aria-errormessage
|
|
1702
|
+
function toHaveErrorMessage(htmlElement, checkWith) {
|
|
1703
|
+
deprecate('toHaveErrorMessage', 'Please use toHaveAccessibleErrorMessage.');
|
|
1704
|
+
checkHtmlElement(htmlElement, toHaveErrorMessage, this);
|
|
1705
|
+
|
|
1706
|
+
if (
|
|
1707
|
+
!htmlElement.hasAttribute('aria-invalid') ||
|
|
1708
|
+
htmlElement.getAttribute('aria-invalid') === 'false'
|
|
1709
|
+
) {
|
|
1710
|
+
const not = this.isNot ? '.not' : '';
|
|
1711
|
+
|
|
1712
|
+
return {
|
|
1713
|
+
pass: false,
|
|
1714
|
+
message: () => {
|
|
1715
|
+
return getMessage(
|
|
1716
|
+
this,
|
|
1717
|
+
this.utils.matcherHint(`${not}.toHaveErrorMessage`, 'element', ''),
|
|
1718
|
+
`Expected the element to have invalid state indicated by`,
|
|
1719
|
+
'aria-invalid="true"',
|
|
1720
|
+
'Received',
|
|
1721
|
+
htmlElement.hasAttribute('aria-invalid')
|
|
1722
|
+
? `aria-invalid="${htmlElement.getAttribute('aria-invalid')}"`
|
|
1723
|
+
: this.utils.printReceived(''),
|
|
1724
|
+
)
|
|
1725
|
+
},
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
const expectsErrorMessage = checkWith !== undefined;
|
|
1730
|
+
|
|
1731
|
+
const errormessageIDRaw = htmlElement.getAttribute('aria-errormessage') || '';
|
|
1732
|
+
const errormessageIDs = errormessageIDRaw.split(/\s+/).filter(Boolean);
|
|
1733
|
+
|
|
1734
|
+
let errormessage = '';
|
|
1735
|
+
if (errormessageIDs.length > 0) {
|
|
1736
|
+
const document = htmlElement.ownerDocument;
|
|
1737
|
+
|
|
1738
|
+
const errormessageEls = errormessageIDs
|
|
1739
|
+
.map(errormessageID => document.getElementById(errormessageID))
|
|
1740
|
+
.filter(Boolean);
|
|
1741
|
+
|
|
1742
|
+
errormessage = normalize(
|
|
1743
|
+
errormessageEls.map(el => el.textContent).join(' '),
|
|
1744
|
+
);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
return {
|
|
1748
|
+
pass: expectsErrorMessage
|
|
1749
|
+
? checkWith instanceof RegExp
|
|
1750
|
+
? checkWith.test(errormessage)
|
|
1751
|
+
: this.equals(errormessage, checkWith)
|
|
1752
|
+
: Boolean(errormessage),
|
|
1753
|
+
message: () => {
|
|
1754
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
1755
|
+
return getMessage(
|
|
1756
|
+
this,
|
|
1757
|
+
this.utils.matcherHint(
|
|
1758
|
+
`${this.isNot ? '.not' : ''}.toHaveErrorMessage`,
|
|
1759
|
+
'element',
|
|
1760
|
+
'',
|
|
1761
|
+
),
|
|
1762
|
+
`Expected the element ${to} have error message`,
|
|
1763
|
+
this.utils.printExpected(checkWith),
|
|
1764
|
+
'Received',
|
|
1765
|
+
this.utils.printReceived(errormessage),
|
|
1766
|
+
)
|
|
1767
|
+
},
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Returns the selection from the element.
|
|
1773
|
+
*
|
|
1774
|
+
* @param element {HTMLElement} The element to get the selection from.
|
|
1775
|
+
* @returns {String} The selection.
|
|
1776
|
+
*/
|
|
1777
|
+
function getSelection(element) {
|
|
1778
|
+
const selection = element.ownerDocument.getSelection();
|
|
1779
|
+
|
|
1780
|
+
if (['input', 'textarea'].includes(element.tagName.toLowerCase())) {
|
|
1781
|
+
if (['radio', 'checkbox'].includes(element.type)) return ''
|
|
1782
|
+
return element.value
|
|
1783
|
+
.toString()
|
|
1784
|
+
.substring(element.selectionStart, element.selectionEnd)
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
if (selection.anchorNode === null || selection.focusNode === null) {
|
|
1788
|
+
// No selection
|
|
1789
|
+
return ''
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
const originalRange = selection.getRangeAt(0);
|
|
1793
|
+
const temporaryRange = element.ownerDocument.createRange();
|
|
1794
|
+
|
|
1795
|
+
if (selection.containsNode(element, false)) {
|
|
1796
|
+
// Whole element is inside selection
|
|
1797
|
+
temporaryRange.selectNodeContents(element);
|
|
1798
|
+
selection.removeAllRanges();
|
|
1799
|
+
selection.addRange(temporaryRange);
|
|
1800
|
+
} else if (
|
|
1801
|
+
element.contains(selection.anchorNode) &&
|
|
1802
|
+
element.contains(selection.focusNode)
|
|
1803
|
+
) ; else {
|
|
1804
|
+
// Element is partially selected
|
|
1805
|
+
const selectionStartsWithinElement =
|
|
1806
|
+
element === originalRange.startContainer ||
|
|
1807
|
+
element.contains(originalRange.startContainer);
|
|
1808
|
+
const selectionEndsWithinElement =
|
|
1809
|
+
element === originalRange.endContainer ||
|
|
1810
|
+
element.contains(originalRange.endContainer);
|
|
1811
|
+
selection.removeAllRanges();
|
|
1812
|
+
|
|
1813
|
+
if (selectionStartsWithinElement || selectionEndsWithinElement) {
|
|
1814
|
+
temporaryRange.selectNodeContents(element);
|
|
1815
|
+
|
|
1816
|
+
if (selectionStartsWithinElement) {
|
|
1817
|
+
temporaryRange.setStart(
|
|
1818
|
+
originalRange.startContainer,
|
|
1819
|
+
originalRange.startOffset,
|
|
1820
|
+
);
|
|
1821
|
+
}
|
|
1822
|
+
if (selectionEndsWithinElement) {
|
|
1823
|
+
temporaryRange.setEnd(
|
|
1824
|
+
originalRange.endContainer,
|
|
1825
|
+
originalRange.endOffset,
|
|
1826
|
+
);
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
selection.addRange(temporaryRange);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
const result = selection.toString();
|
|
1834
|
+
|
|
1835
|
+
selection.removeAllRanges();
|
|
1836
|
+
selection.addRange(originalRange);
|
|
1837
|
+
|
|
1838
|
+
return result
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Checks if the element has the string selected.
|
|
1843
|
+
*
|
|
1844
|
+
* @param htmlElement {HTMLElement} The html element to check the selection for.
|
|
1845
|
+
* @param expectedSelection {String} The selection as a string.
|
|
1846
|
+
*/
|
|
1847
|
+
function toHaveSelection(htmlElement, expectedSelection) {
|
|
1848
|
+
checkHtmlElement(htmlElement, toHaveSelection, this);
|
|
1849
|
+
|
|
1850
|
+
const expectsSelection = expectedSelection !== undefined;
|
|
1851
|
+
|
|
1852
|
+
if (expectsSelection && typeof expectedSelection !== 'string') {
|
|
1853
|
+
throw new Error(`expected selection must be a string or undefined`)
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
const receivedSelection = getSelection(htmlElement);
|
|
1857
|
+
|
|
1858
|
+
return {
|
|
1859
|
+
pass: expectsSelection
|
|
1860
|
+
? isEqualWith(receivedSelection, expectedSelection, compareArraysAsSet)
|
|
1861
|
+
: Boolean(receivedSelection),
|
|
1862
|
+
message: () => {
|
|
1863
|
+
const to = this.isNot ? 'not to' : 'to';
|
|
1864
|
+
const matcher = this.utils.matcherHint(
|
|
1865
|
+
`${this.isNot ? '.not' : ''}.toHaveSelection`,
|
|
1866
|
+
'element',
|
|
1867
|
+
expectedSelection,
|
|
1868
|
+
);
|
|
1869
|
+
return getMessage(
|
|
1870
|
+
this,
|
|
1871
|
+
matcher,
|
|
1872
|
+
`Expected the element ${to} have selection`,
|
|
1873
|
+
expectsSelection ? expectedSelection : '(any)',
|
|
1874
|
+
'Received',
|
|
1875
|
+
receivedSelection,
|
|
1876
|
+
)
|
|
1877
|
+
},
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
var extensions = /*#__PURE__*/Object.freeze({
|
|
1882
|
+
__proto__: null,
|
|
1883
|
+
toBeChecked: toBeChecked,
|
|
1884
|
+
toBeDisabled: toBeDisabled,
|
|
1885
|
+
toBeEmpty: toBeEmpty,
|
|
1886
|
+
toBeEmptyDOMElement: toBeEmptyDOMElement,
|
|
1887
|
+
toBeEnabled: toBeEnabled,
|
|
1888
|
+
toBeInTheDOM: toBeInTheDOM,
|
|
1889
|
+
toBeInTheDocument: toBeInTheDocument,
|
|
1890
|
+
toBeInvalid: toBeInvalid,
|
|
1891
|
+
toBePartiallyChecked: toBePartiallyChecked,
|
|
1892
|
+
toBeRequired: toBeRequired,
|
|
1893
|
+
toBeValid: toBeValid,
|
|
1894
|
+
toBeVisible: toBeVisible,
|
|
1895
|
+
toContainElement: toContainElement,
|
|
1896
|
+
toContainHTML: toContainHTML,
|
|
1897
|
+
toHaveAccessibleDescription: toHaveAccessibleDescription,
|
|
1898
|
+
toHaveAccessibleErrorMessage: toHaveAccessibleErrorMessage,
|
|
1899
|
+
toHaveAccessibleName: toHaveAccessibleName,
|
|
1900
|
+
toHaveAttribute: toHaveAttribute,
|
|
1901
|
+
toHaveClass: toHaveClass,
|
|
1902
|
+
toHaveDescription: toHaveDescription,
|
|
1903
|
+
toHaveDisplayValue: toHaveDisplayValue,
|
|
1904
|
+
toHaveErrorMessage: toHaveErrorMessage,
|
|
1905
|
+
toHaveFocus: toHaveFocus,
|
|
1906
|
+
toHaveFormValues: toHaveFormValues,
|
|
1907
|
+
toHaveRole: toHaveRole,
|
|
1908
|
+
toHaveSelection: toHaveSelection,
|
|
1909
|
+
toHaveStyle: toHaveStyle,
|
|
1910
|
+
toHaveTextContent: toHaveTextContent,
|
|
1911
|
+
toHaveValue: toHaveValue
|
|
1912
|
+
});
|
|
1913
|
+
|
|
1914
|
+
export { toBePartiallyChecked as A, toHaveDescription as B, toHaveErrorMessage as C, toHaveSelection as D, toBeInTheDocument as a, toBeEmpty as b, toBeEmptyDOMElement as c, toContainElement as d, extensions as e, toContainHTML as f, toHaveTextContent as g, toHaveAccessibleDescription as h, toHaveAccessibleErrorMessage as i, toHaveRole as j, toHaveAccessibleName as k, toHaveAttribute as l, toHaveClass as m, toHaveStyle as n, toHaveFocus as o, toHaveFormValues as p, toBeVisible as q, toBeDisabled as r, toBeEnabled as s, toBeInTheDOM as t, toBeRequired as u, toBeInvalid as v, toBeValid as w, toHaveValue as x, toHaveDisplayValue as y, toBeChecked as z };
|