@strapi/design-system 1.3.0-beta.1 → 1.3.0-beta.2
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/Accordion.development.js +775 -0
- package/Accordion.js +9 -0
- package/Accordion.production.js +1 -0
- package/Alert.development.js +562 -0
- package/Alert.js +9 -0
- package/Alert.production.js +1 -0
- package/Avatar.development.js +485 -0
- package/Avatar.js +9 -0
- package/Avatar.production.js +1 -0
- package/Badge.development.js +494 -0
- package/Badge.js +9 -0
- package/Badge.production.js +1 -0
- package/BaseButton.development.js +285 -0
- package/BaseButton.js +9 -0
- package/BaseButton.production.js +1 -0
- package/BaseCheckbox.development.js +434 -0
- package/BaseCheckbox.js +9 -0
- package/BaseCheckbox.production.js +1 -0
- package/BaseLink.development.js +273 -0
- package/BaseLink.js +9 -0
- package/BaseLink.production.js +1 -0
- package/BaseRadio.development.js +321 -0
- package/BaseRadio.js +9 -0
- package/BaseRadio.production.js +1 -0
- package/Box.development.js +341 -0
- package/Box.js +9 -0
- package/Box.production.js +1 -0
- package/Breadcrumbs.development.js +518 -0
- package/Breadcrumbs.js +9 -0
- package/Breadcrumbs.production.js +1 -0
- package/Button.development.js +573 -0
- package/Button.js +9 -0
- package/Button.production.js +1 -0
- package/Card.development.js +746 -0
- package/Card.js +9 -0
- package/Card.production.js +1 -0
- package/CarouselInput.development.js +898 -0
- package/CarouselInput.js +9 -0
- package/CarouselInput.production.js +1 -0
- package/Checkbox.development.js +722 -0
- package/Checkbox.js +9 -0
- package/Checkbox.production.js +1 -0
- package/Combobox.development.js +934 -0
- package/Combobox.js +9 -0
- package/Combobox.production.js +1 -0
- package/DatePicker.development.js +1323 -0
- package/DatePicker.js +9 -0
- package/DatePicker.production.js +1 -0
- package/DateTimePicker.development.js +1622 -0
- package/DateTimePicker.js +9 -0
- package/DateTimePicker.production.js +1 -0
- package/Dialog.development.js +741 -0
- package/Dialog.js +9 -0
- package/Dialog.production.js +1 -0
- package/DismissibleLayer.development.js +218 -0
- package/DismissibleLayer.js +9 -0
- package/DismissibleLayer.production.js +1 -0
- package/Divider.development.js +398 -0
- package/Divider.js +9 -0
- package/Divider.production.js +1 -0
- package/EmptyStateLayout.development.js +425 -0
- package/EmptyStateLayout.js +9 -0
- package/EmptyStateLayout.production.js +1 -0
- package/Field.development.js +614 -0
- package/Field.js +9 -0
- package/Field.production.js +1 -0
- package/Flex.development.js +377 -0
- package/Flex.js +9 -0
- package/Flex.production.js +1 -0
- package/FocusTrap.development.js +341 -0
- package/FocusTrap.js +9 -0
- package/FocusTrap.production.js +1 -0
- package/Grid.development.js +422 -0
- package/Grid.js +9 -0
- package/Grid.production.js +1 -0
- package/Icon.development.js +376 -0
- package/Icon.js +9 -0
- package/Icon.production.js +1 -0
- package/IconButton.development.js +684 -0
- package/IconButton.js +9 -0
- package/IconButton.production.js +1 -0
- package/KeyboardNavigable.development.js +454 -0
- package/KeyboardNavigable.js +9 -0
- package/KeyboardNavigable.production.js +1 -0
- package/Layout.development.js +626 -0
- package/Layout.js +9 -0
- package/Layout.production.js +1 -0
- package/Link.development.js +492 -0
- package/Link.js +9 -0
- package/Link.production.js +1 -0
- package/LinkButton.development.js +573 -0
- package/LinkButton.js +9 -0
- package/LinkButton.production.js +1 -0
- package/LiveRegions.development.js +147 -0
- package/LiveRegions.js +9 -0
- package/LiveRegions.production.js +1 -0
- package/Loader.development.js +309 -0
- package/Loader.js +9 -0
- package/Loader.production.js +1 -0
- package/Main.development.js +410 -0
- package/Main.js +9 -0
- package/Main.production.js +1 -0
- package/MainNav.development.js +957 -0
- package/MainNav.js +9 -0
- package/MainNav.production.js +1 -0
- package/ModalLayout.development.js +895 -0
- package/ModalLayout.js +9 -0
- package/ModalLayout.production.js +1 -0
- package/NumberInput.development.js +733 -0
- package/NumberInput.js +9 -0
- package/NumberInput.production.js +1 -0
- package/Pagination.development.js +587 -0
- package/Pagination.js +9 -0
- package/Pagination.production.js +1 -0
- package/Popover.development.js +481 -0
- package/Popover.js +9 -0
- package/Popover.production.js +1 -0
- package/Portal.development.js +212 -0
- package/Portal.js +9 -0
- package/Portal.production.js +1 -0
- package/ProgressBar.development.js +273 -0
- package/ProgressBar.js +9 -0
- package/ProgressBar.production.js +1 -0
- package/Radio.development.js +518 -0
- package/Radio.js +9 -0
- package/Radio.production.js +1 -0
- package/RawTable.development.js +549 -0
- package/RawTable.js +9 -0
- package/RawTable.production.js +1 -0
- package/Searchbar.development.js +696 -0
- package/Searchbar.js +9 -0
- package/Searchbar.production.js +1 -0
- package/Select.development.js +1063 -0
- package/Select.js +9 -0
- package/Select.production.js +1 -0
- package/SimpleMenu.development.js +821 -0
- package/SimpleMenu.js +9 -0
- package/SimpleMenu.production.js +1 -0
- package/Stack.development.js +434 -0
- package/Stack.js +9 -0
- package/Stack.production.js +1 -0
- package/Status.development.js +494 -0
- package/Status.js +9 -0
- package/Status.production.js +1 -0
- package/SubNav.development.js +1123 -0
- package/SubNav.js +9 -0
- package/SubNav.production.js +1 -0
- package/Switch.development.js +434 -0
- package/Switch.js +9 -0
- package/Switch.production.js +1 -0
- package/Table.development.js +741 -0
- package/Table.js +9 -0
- package/Table.production.js +1 -0
- package/Tabs.development.js +590 -0
- package/Tabs.js +9 -0
- package/Tabs.production.js +1 -0
- package/Tag.development.js +494 -0
- package/Tag.js +9 -0
- package/Tag.production.js +1 -0
- package/TextButton.development.js +517 -0
- package/TextButton.js +9 -0
- package/TextButton.production.js +1 -0
- package/TextInput.development.js +662 -0
- package/TextInput.js +9 -0
- package/TextInput.production.js +1 -0
- package/Textarea.development.js +674 -0
- package/Textarea.js +9 -0
- package/Textarea.production.js +1 -0
- package/ThemeProvider.development.js +300 -0
- package/ThemeProvider.js +9 -0
- package/ThemeProvider.production.js +1 -0
- package/TimePicker.development.js +1098 -0
- package/TimePicker.js +9 -0
- package/TimePicker.production.js +1 -0
- package/ToggleCheckbox.development.js +542 -0
- package/ToggleCheckbox.js +9 -0
- package/ToggleCheckbox.production.js +1 -0
- package/ToggleInput.development.js +745 -0
- package/ToggleInput.js +9 -0
- package/ToggleInput.production.js +1 -0
- package/Tooltip.development.js +588 -0
- package/Tooltip.js +9 -0
- package/Tooltip.production.js +1 -0
- package/Typography.development.js +276 -0
- package/Typography.js +9 -0
- package/Typography.production.js +1 -0
- package/VisuallyHidden.development.js +146 -0
- package/VisuallyHidden.js +9 -0
- package/VisuallyHidden.production.js +1 -0
- package/index.development.js +4338 -0
- package/index.js +9 -0
- package/index.production.js +1 -0
- package/package.json +2 -2
- package/themes.development.js +254 -0
- package/themes.js +9 -0
- package/themes.production.js +1 -0
- package/v2/Breadcrumbs.development.js +906 -0
- package/v2/Breadcrumbs.js +9 -0
- package/v2/Breadcrumbs.production.js +1 -0
- package/v2/Link.development.js +505 -0
- package/v2/Link.js +9 -0
- package/v2/Link.production.js +1 -0
- package/v2/LinkButton.development.js +586 -0
- package/v2/LinkButton.js +9 -0
- package/v2/LinkButton.production.js +1 -0
- package/v2/MainNav.development.js +970 -0
- package/v2/MainNav.js +9 -0
- package/v2/MainNav.production.js +1 -0
- package/v2/Pagination.development.js +600 -0
- package/v2/Pagination.js +9 -0
- package/v2/Pagination.production.js +1 -0
- package/v2/SimpleMenu.development.js +834 -0
- package/v2/SimpleMenu.js +9 -0
- package/v2/SimpleMenu.production.js +1 -0
- package/v2/SubNav.development.js +1136 -0
- package/v2/SubNav.js +9 -0
- package/v2/SubNav.production.js +1 -0
- package/v2/index.development.js +1740 -0
- package/v2/index.js +9 -0
- package/v2/index.production.js +1 -0
- package/v2/package.json +81 -0
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -38
- package/.prettierrc.js +0 -7
- package/.storybook/components/Theme.js +0 -28
- package/.storybook/main.js +0 -13
- package/.storybook/manager.js +0 -12
- package/.storybook/preview.js +0 -42
- package/.storybook/utils/createCustomTheme.js +0 -26
- package/LICENSE +0 -20
- package/__mocks__/fileMock.js +0 -1
- package/__mocks__/styleMock.js +0 -1
- package/babel.config.js +0 -5
- package/createIndexFiles.js +0 -34
- package/global-setup.js +0 -4
- package/jest.config.js +0 -17
- package/playwright.config.js +0 -39
- package/src/Accordion/Accordion.js +0 -148
- package/src/Accordion/Accordion.stories.mdx +0 -327
- package/src/Accordion/AccordionContent.js +0 -26
- package/src/Accordion/AccordionContext.js +0 -5
- package/src/Accordion/AccordionGroup.js +0 -114
- package/src/Accordion/AccordionToggle.js +0 -192
- package/src/Accordion/__tests__/Accordion.e2e.js +0 -32
- package/src/Accordion/__tests__/AccordionKeyboard.e2e.js +0 -73
- package/src/Accordion/index.js +0 -4
- package/src/Accordion/utils.js +0 -15
- package/src/Alert/Alert.js +0 -144
- package/src/Alert/Alert.stories.mdx +0 -135
- package/src/Alert/__tests__/Alert.e2e.js +0 -39
- package/src/Alert/index.js +0 -1
- package/src/Alert/utils.js +0 -35
- package/src/Avatar/Avatar.js +0 -110
- package/src/Avatar/Avatar.stories.mdx +0 -67
- package/src/Avatar/AvatarGroup.js +0 -9
- package/src/Avatar/__tests__/Avatar.e2e.js +0 -23
- package/src/Avatar/__tests__/Avatar.spec.js +0 -153
- package/src/Avatar/constants.js +0 -2
- package/src/Avatar/index.js +0 -2
- package/src/Badge/Badge.js +0 -41
- package/src/Badge/Badge.stories.mdx +0 -57
- package/src/Badge/__tests__/Badge.e2e.js +0 -23
- package/src/Badge/index.js +0 -1
- package/src/BaseButton/BaseButton.js +0 -46
- package/src/BaseButton/BaseButton.stories.mdx +0 -32
- package/src/BaseButton/__tests__/BaseButton.e2e.js +0 -23
- package/src/BaseButton/index.js +0 -1
- package/src/BaseCheckbox/BaseCheckbox.js +0 -133
- package/src/BaseCheckbox/BaseCheckbox.stories.mdx +0 -107
- package/src/BaseCheckbox/__tests__/BaseCheckbox.e2e.js +0 -94
- package/src/BaseCheckbox/assets/checkmark-black.svg +0 -6
- package/src/BaseCheckbox/assets/checkmark.svg +0 -6
- package/src/BaseCheckbox/index.js +0 -1
- package/src/BaseCheckbox/utils.js +0 -7
- package/src/BaseLink/BaseLink.js +0 -38
- package/src/BaseLink/BaseLink.stories.mdx +0 -34
- package/src/BaseLink/__tests__/BaseLink.e2e.js +0 -23
- package/src/BaseLink/__tests__/BaseLink.spec.js +0 -26
- package/src/BaseLink/index.js +0 -1
- package/src/BaseRadio/BaseRadio.js +0 -69
- package/src/BaseRadio/BaseRadio.stories.mdx +0 -110
- package/src/BaseRadio/RadioGroup.js +0 -36
- package/src/BaseRadio/__tests__/BaseRadio.e2e.js +0 -90
- package/src/BaseRadio/context.js +0 -3
- package/src/BaseRadio/index.js +0 -2
- package/src/BaseRadio/utils.js +0 -30
- package/src/Box/Box.js +0 -104
- package/src/Box/Box.stories.mdx +0 -57
- package/src/Box/BoxProps.js +0 -99
- package/src/Box/__tests__/Box.e2e.js +0 -23
- package/src/Box/__tests__/Box.spec.js +0 -36
- package/src/Box/index.js +0 -1
- package/src/Breadcrumbs/Breadcrumbs.js +0 -58
- package/src/Breadcrumbs/Breadcrumbs.stories.mdx +0 -47
- package/src/Breadcrumbs/__tests__/Breadcrumbs.e2e.js +0 -23
- package/src/Breadcrumbs/index.js +0 -1
- package/src/Button/Button.js +0 -138
- package/src/Button/Button.stories.mdx +0 -216
- package/src/Button/__tests__/Button.e2e.js +0 -89
- package/src/Button/__tests__/utils.spec.js +0 -19
- package/src/Button/constants.js +0 -12
- package/src/Button/index.js +0 -1
- package/src/Button/utils.js +0 -170
- package/src/Card/Card.js +0 -35
- package/src/Card/Card.stories.mdx +0 -202
- package/src/Card/CardAction.js +0 -13
- package/src/Card/CardAsset.js +0 -49
- package/src/Card/CardBadge.js +0 -18
- package/src/Card/CardBody.js +0 -11
- package/src/Card/CardCheckbox.js +0 -14
- package/src/Card/CardContent.js +0 -16
- package/src/Card/CardContext.js +0 -5
- package/src/Card/CardHeader.js +0 -12
- package/src/Card/CardTimer.js +0 -23
- package/src/Card/CardTitle.js +0 -12
- package/src/Card/__tests__/Card.e2e.js +0 -164
- package/src/Card/index.js +0 -10
- package/src/Card/story-assets/first.jpg +0 -0
- package/src/CarouselInput/Carousel.js +0 -138
- package/src/CarouselInput/Carousel.stories.mdx +0 -149
- package/src/CarouselInput/CarouselActions.js +0 -6
- package/src/CarouselInput/CarouselImage.js +0 -39
- package/src/CarouselInput/CarouselInput.js +0 -80
- package/src/CarouselInput/CarouselSlide.js +0 -32
- package/src/CarouselInput/__tests__/CarouselImage.e2e.js +0 -15
- package/src/CarouselInput/__tests__/CarouselInput.e2e.js +0 -48
- package/src/CarouselInput/index.js +0 -5
- package/src/CarouselInput/story-assets/first.jpg +0 -0
- package/src/Checkbox/Checkbox.js +0 -63
- package/src/Checkbox/Checkbox.stories.mdx +0 -190
- package/src/Checkbox/__tests__/Checkbox.e2e.js +0 -96
- package/src/Checkbox/index.js +0 -1
- package/src/Combobox/Combobox.js +0 -421
- package/src/Combobox/Combobox.stories.mdx +0 -191
- package/src/Combobox/ComboboxList.js +0 -22
- package/src/Combobox/ComboboxOption.js +0 -36
- package/src/Combobox/__tests__/Combobox.e2e.js +0 -133
- package/src/Combobox/__tests__/utils.spec.js +0 -94
- package/src/Combobox/components.js +0 -69
- package/src/Combobox/index.js +0 -2
- package/src/Combobox/utils.js +0 -97
- package/src/DatePicker/DatePicker.js +0 -132
- package/src/DatePicker/DatePicker.stories.mdx +0 -172
- package/src/DatePicker/DatePickerCalendar.js +0 -134
- package/src/DatePicker/DatePickerTd.js +0 -51
- package/src/DatePicker/DatePickerTh.js +0 -39
- package/src/DatePicker/__tests__/DatePicker.e2e.js +0 -94
- package/src/DatePicker/__tests__/DatePicker.spec.js +0 -40
- package/src/DatePicker/compareDates.js +0 -9
- package/src/DatePicker/components.js +0 -45
- package/src/DatePicker/index.js +0 -1
- package/src/DatePicker/utils/formatDate.js +0 -5
- package/src/DatePicker/utils/generateWeeks.js +0 -58
- package/src/DatePicker/utils/getDayOfWeek.js +0 -24
- package/src/DatePicker/utils/getMonths.js +0 -10
- package/src/DatePicker/utils/getYears.js +0 -19
- package/src/DatePicker/utils/index.js +0 -5
- package/src/DatePicker/utils/tests/generateWeeks.spec.js +0 -136
- package/src/DatePicker/utils/tests/getMonths.spec.js +0 -21
- package/src/DatePicker/utils/tests/getYears.spec.js +0 -21
- package/src/DateTimePicker/DateTimePicker.js +0 -151
- package/src/DateTimePicker/DateTimePicker.stories.mdx +0 -114
- package/src/DateTimePicker/DateTimePickerProps.js +0 -85
- package/src/DateTimePicker/__tests__/DateTimePicker.e2e.js +0 -103
- package/src/DateTimePicker/__tests__/DateTimePicker.spec.js +0 -89
- package/src/DateTimePicker/__tests__/__snapshots__/DateTimePicker.spec.js.snap +0 -448
- package/src/DateTimePicker/__tests__/parseDate.test.js +0 -10
- package/src/DateTimePicker/index.js +0 -1
- package/src/DateTimePicker/parseDate.js +0 -11
- package/src/Dialog/Dialog.js +0 -86
- package/src/Dialog/Dialog.stories.mdx +0 -78
- package/src/Dialog/DialogBody.js +0 -36
- package/src/Dialog/DialogFooter.js +0 -38
- package/src/Dialog/__tests__/Dialog.e2e.js +0 -20
- package/src/Dialog/__tests__/Dialog.spec.js +0 -28
- package/src/Dialog/index.js +0 -3
- package/src/DismissibleLayer/DismissibleLayer.js +0 -87
- package/src/DismissibleLayer/DismissibleLayer.stories.mdx +0 -50
- package/src/DismissibleLayer/__test__/DimissibleLayer.spec.js +0 -44
- package/src/DismissibleLayer/index.js +0 -1
- package/src/Divider/Divider.js +0 -26
- package/src/Divider/Divider.stories.mdx +0 -55
- package/src/Divider/__tests__/Divider.e2e.js +0 -23
- package/src/Divider/index.js +0 -1
- package/src/EmptyStateLayout/EmptyStateLayout.js +0 -48
- package/src/EmptyStateLayout/EmptyStateLayout.stories.mdx +0 -87
- package/src/EmptyStateLayout/__tests__/EmptyStateLayout.e2e.js +0 -31
- package/src/EmptyStateLayout/index.js +0 -1
- package/src/EmptyStateLayout/story-assets/Illo.js +0 -51
- package/src/Field/Field.js +0 -29
- package/src/Field/Field.stories.mdx +0 -237
- package/src/Field/FieldAction.js +0 -25
- package/src/Field/FieldContext.js +0 -4
- package/src/Field/FieldError.js +0 -17
- package/src/Field/FieldHint.js +0 -17
- package/src/Field/FieldInput.js +0 -129
- package/src/Field/FieldLabel.js +0 -50
- package/src/Field/__tests__/Field.e2e.js +0 -61
- package/src/Field/index.js +0 -7
- package/src/Flex/Flex.js +0 -26
- package/src/Flex/Flex.stories.mdx +0 -45
- package/src/Flex/FlexProps.js +0 -41
- package/src/Flex/__tests__/Flex.e2e.js +0 -23
- package/src/Flex/index.js +0 -1
- package/src/FocusTrap/ExampleComponent.js +0 -71
- package/src/FocusTrap/FocusTrap.js +0 -83
- package/src/FocusTrap/FocusTrap.stories.mdx +0 -32
- package/src/FocusTrap/__tests__/FocusTrap.e2e.js +0 -126
- package/src/FocusTrap/index.js +0 -1
- package/src/Grid/Grid.js +0 -30
- package/src/Grid/Grid.stories.mdx +0 -112
- package/src/Grid/GridContext.js +0 -5
- package/src/Grid/GridItem.js +0 -40
- package/src/Grid/__tests__/Grid.e2e.js +0 -23
- package/src/Grid/index.js +0 -2
- package/src/Icon/Icon.js +0 -27
- package/src/Icon/Icon.stories.mdx +0 -41
- package/src/Icon/__tests__/Icon.e2e.js +0 -21
- package/src/Icon/index.js +0 -1
- package/src/IconButton/IconButton.js +0 -175
- package/src/IconButton/IconButton.stories.mdx +0 -153
- package/src/IconButton/__tests__/IconButton.e2e.js +0 -57
- package/src/IconButton/index.js +0 -1
- package/src/KeyboardNavigable/KeyboardNavigable.js +0 -96
- package/src/KeyboardNavigable/index.js +0 -1
- package/src/Layout/ActionLayout.js +0 -40
- package/src/Layout/ContentLayout.js +0 -15
- package/src/Layout/GridLayout.js +0 -12
- package/src/Layout/GridLayout.stories.mdx +0 -36
- package/src/Layout/HeaderLayout.js +0 -170
- package/src/Layout/HeaderLayout.stories.mdx +0 -175
- package/src/Layout/Layout.js +0 -31
- package/src/Layout/Layout.stories.mdx +0 -240
- package/src/Layout/TwoColsLayout.js +0 -26
- package/src/Layout/TwoColsLayout.stories.mdx +0 -46
- package/src/Layout/__tests__/GridLayout.e2e.js +0 -23
- package/src/Layout/__tests__/HeaderLayout.e2e.js +0 -83
- package/src/Layout/__tests__/Layout.e2e.js +0 -23
- package/src/Layout/__tests__/TwoColsLayout.e2e.js +0 -23
- package/src/Layout/index.js +0 -6
- package/src/Link/Link.js +0 -105
- package/src/Link/Link.stories.mdx +0 -57
- package/src/Link/__tests__/Link.e2e.js +0 -23
- package/src/Link/index.js +0 -1
- package/src/LinkButton/LinkButton.js +0 -113
- package/src/LinkButton/LinkButton.stories.mdx +0 -153
- package/src/LinkButton/__tests__/LinkButton.e2e.js +0 -89
- package/src/LinkButton/index.js +0 -1
- package/src/LiveRegions/LiveRegions.js +0 -13
- package/src/LiveRegions/LiveRegions.stories.mdx +0 -76
- package/src/LiveRegions/StoryComponent.js +0 -26
- package/src/LiveRegions/__tests__/LiveRegions.spec.js +0 -200
- package/src/LiveRegions/constants.js +0 -5
- package/src/LiveRegions/index.js +0 -1
- package/src/LiveRegions/useNotifyAT.js +0 -39
- package/src/Loader/Loader.js +0 -40
- package/src/Loader/Loader.stories.mdx +0 -48
- package/src/Loader/__tests__/Loader.e2e.js +0 -23
- package/src/Loader/assets/loader.svg +0 -3
- package/src/Loader/index.js +0 -1
- package/src/Main/Main.js +0 -24
- package/src/Main/SkipToContent.js +0 -29
- package/src/Main/index.js +0 -2
- package/src/MainNav/MainNav.js +0 -31
- package/src/MainNav/MainNav.stories.mdx +0 -197
- package/src/MainNav/MainNavContext.js +0 -5
- package/src/MainNav/NavBrand.js +0 -76
- package/src/MainNav/NavCondense.js +0 -44
- package/src/MainNav/NavLink.js +0 -143
- package/src/MainNav/NavSection.js +0 -53
- package/src/MainNav/NavSections.js +0 -20
- package/src/MainNav/NavUser.js +0 -53
- package/src/MainNav/__tests__/MainNav.e2e.js +0 -23
- package/src/MainNav/index.js +0 -7
- package/src/MainNav/strapi-img.png +0 -0
- package/src/ModalLayout/ModalBody.js +0 -12
- package/src/ModalLayout/ModalContext.js +0 -4
- package/src/ModalLayout/ModalFooter.js +0 -37
- package/src/ModalLayout/ModalHeader.js +0 -35
- package/src/ModalLayout/ModalLayout.js +0 -58
- package/src/ModalLayout/ModalLayout.stories.mdx +0 -100
- package/src/ModalLayout/__tests__/ModalLayout.e2e.js +0 -19
- package/src/ModalLayout/__tests__/ModalLayout.spec.js +0 -596
- package/src/ModalLayout/index.js +0 -4
- package/src/NumberInput/NumberInput.js +0 -253
- package/src/NumberInput/NumberInput.stories.mdx +0 -319
- package/src/NumberInput/__tests__/NumberInput.e2e.js +0 -194
- package/src/NumberInput/index.js +0 -1
- package/src/Pagination/Pagination.js +0 -37
- package/src/Pagination/Pagination.stories.mdx +0 -97
- package/src/Pagination/PaginationContext.js +0 -4
- package/src/Pagination/__tests__/Pagination.e2e.js +0 -23
- package/src/Pagination/assets/next.svg +0 -3
- package/src/Pagination/assets/previous.svg +0 -3
- package/src/Pagination/components.js +0 -147
- package/src/Pagination/index.js +0 -2
- package/src/Popover/Popover.js +0 -167
- package/src/Popover/Popover.stories.mdx +0 -167
- package/src/Popover/__tests__/Popover.e2e.js +0 -48
- package/src/Popover/__tests__/Popover.spec.js +0 -153
- package/src/Popover/index.js +0 -1
- package/src/Portal/Portal.js +0 -25
- package/src/Portal/Portal.stories.mdx +0 -33
- package/src/Portal/__tests__/Portal.e2e.js +0 -23
- package/src/Portal/index.js +0 -1
- package/src/ProgressBar/ProgressBar.js +0 -57
- package/src/ProgressBar/ProgressBar.stories.mdx +0 -47
- package/src/ProgressBar/__tests__/ProgressBar.e2e.js +0 -41
- package/src/ProgressBar/index.js +0 -1
- package/src/Radio/Radio.js +0 -25
- package/src/Radio/Radio.stories.mdx +0 -66
- package/src/Radio/__tests__/Radio.e2e.js +0 -66
- package/src/Radio/__tests__/Radio.spec.js +0 -56
- package/src/Radio/index.js +0 -2
- package/src/RawTable/RawCell.js +0 -182
- package/src/RawTable/RawTable.js +0 -123
- package/src/RawTable/RawTable.stories.mdx +0 -258
- package/src/RawTable/RawTableContext.js +0 -10
- package/src/RawTable/RawTbody.js +0 -18
- package/src/RawTable/RawThead.js +0 -15
- package/src/RawTable/RawTr.js +0 -20
- package/src/RawTable/__tests__/RawTable.e2e.js +0 -344
- package/src/RawTable/focusFocusable.js +0 -7
- package/src/RawTable/index.js +0 -5
- package/src/Searchbar/SearchForm.js +0 -3
- package/src/Searchbar/Searchbar.js +0 -103
- package/src/Searchbar/Searchbar.stories.mdx +0 -115
- package/src/Searchbar/__tests__/Searchbar.e2e.js +0 -52
- package/src/Searchbar/index.js +0 -2
- package/src/Select/MultiSelectNested.js +0 -31
- package/src/Select/OptGroup.js +0 -27
- package/src/Select/Option.js +0 -123
- package/src/Select/Select.js +0 -318
- package/src/Select/Select.stories.mdx +0 -362
- package/src/Select/SelectButton.js +0 -77
- package/src/Select/SelectList.js +0 -113
- package/src/Select/SelectTags.js +0 -50
- package/src/Select/__tests__/Select.e2e.js +0 -238
- package/src/Select/__tests__/Select.spec.js +0 -1020
- package/src/Select/components.js +0 -51
- package/src/Select/constants.js +0 -6
- package/src/Select/hooks/useButtonRef.js +0 -31
- package/src/Select/hooks/useListRef.js +0 -35
- package/src/Select/index.js +0 -5
- package/src/Select/utils.js +0 -27
- package/src/SimpleMenu/SimpleMenu.js +0 -252
- package/src/SimpleMenu/SimpleMenu.stories.mdx +0 -220
- package/src/SimpleMenu/__tests__/SimpleMenu.e2e.js +0 -98
- package/src/SimpleMenu/__tests__/SimpleMenu.spec.js +0 -48
- package/src/SimpleMenu/index.js +0 -1
- package/src/SimpleMenu/utils.js +0 -12
- package/src/Stack/Stack.js +0 -75
- package/src/Stack/Stack.stories.mdx +0 -66
- package/src/Stack/__tests__/Stack.e2e.js +0 -43
- package/src/Stack/index.js +0 -1
- package/src/Status/Status.js +0 -76
- package/src/Status/Status.stories.mdx +0 -80
- package/src/Status/__tests__/Status.e2e.js +0 -23
- package/src/Status/__tests__/Status.spec.js +0 -48
- package/src/Status/index.js +0 -1
- package/src/SubNav/SubNav.js +0 -25
- package/src/SubNav/SubNav.stories.mdx +0 -234
- package/src/SubNav/SubNavHeader.js +0 -122
- package/src/SubNav/SubNavLink.js +0 -92
- package/src/SubNav/SubNavLinkSection.js +0 -75
- package/src/SubNav/SubNavSection.js +0 -75
- package/src/SubNav/SubNavSectionLabel.js +0 -67
- package/src/SubNav/SubNavSections.js +0 -20
- package/src/SubNav/__tests__/SubNav.e2e.js +0 -23
- package/src/SubNav/index.js +0 -6
- package/src/Switch/Switch.js +0 -97
- package/src/Switch/Switch.stories.mdx +0 -76
- package/src/Switch/__tests__/Switch.e2e.js +0 -33
- package/src/Switch/index.js +0 -1
- package/src/Table/Cell.js +0 -49
- package/src/Table/TFooter.js +0 -58
- package/src/Table/Table.js +0 -96
- package/src/Table/Table.stories.mdx +0 -330
- package/src/Table/Tbody.js +0 -13
- package/src/Table/Thead.js +0 -11
- package/src/Table/Tr.js +0 -28
- package/src/Table/__tests__/Table.e2e.js +0 -41
- package/src/Table/index.js +0 -6
- package/src/Tabs/TabGroup.js +0 -46
- package/src/Tabs/TabPanels.js +0 -32
- package/src/Tabs/Tabs.js +0 -227
- package/src/Tabs/Tabs.stories.mdx +0 -211
- package/src/Tabs/TabsContext.js +0 -5
- package/src/Tabs/__tests__/Tabs.e2e.js +0 -253
- package/src/Tabs/components.js +0 -66
- package/src/Tabs/index.js +0 -3
- package/src/Tabs/useTabsFocus.js +0 -28
- package/src/Tag/Tag.js +0 -72
- package/src/Tag/Tag.stories.mdx +0 -47
- package/src/Tag/__tests__/Tag.e2e.js +0 -37
- package/src/Tag/index.js +0 -1
- package/src/TextButton/TextButton.js +0 -102
- package/src/TextButton/TextButton.stories.mdx +0 -71
- package/src/TextButton/__tests__/TextButton.e2e.js +0 -23
- package/src/TextButton/index.js +0 -1
- package/src/TextInput/TextInput.js +0 -67
- package/src/TextInput/TextInput.stories.mdx +0 -228
- package/src/TextInput/__tests__/TextInput.e2e.js +0 -73
- package/src/TextInput/index.js +0 -1
- package/src/Textarea/Textarea.js +0 -74
- package/src/Textarea/Textarea.stories.mdx +0 -105
- package/src/Textarea/TextareaInput.js +0 -77
- package/src/Textarea/__tests__/Textarea.e2e.js +0 -37
- package/src/Textarea/index.js +0 -1
- package/src/ThemeProvider/ThemeProvider.js +0 -193
- package/src/ThemeProvider/hooks.js +0 -5
- package/src/ThemeProvider/index.js +0 -2
- package/src/TimePicker/TimePicker.js +0 -128
- package/src/TimePicker/TimePicker.stories.mdx +0 -171
- package/src/TimePicker/__tests__/TimePicker.e2e.js +0 -37
- package/src/TimePicker/__tests__/TimePicker.spec.js +0 -2099
- package/src/TimePicker/index.js +0 -1
- package/src/ToggleCheckbox/ToggleCheckbox.js +0 -169
- package/src/ToggleCheckbox/ToggleCheckbox.stories.mdx +0 -96
- package/src/ToggleCheckbox/__tests__/ToggleCheckbox.e2e.js +0 -59
- package/src/ToggleCheckbox/index.js +0 -1
- package/src/ToggleInput/ToggleInput.js +0 -89
- package/src/ToggleInput/ToggleInput.stories.mdx +0 -171
- package/src/ToggleInput/__tests__/ToggleInput.e2e.js +0 -109
- package/src/ToggleInput/index.js +0 -1
- package/src/Tooltip/Tooltip.js +0 -72
- package/src/Tooltip/Tooltip.stories.mdx +0 -127
- package/src/Tooltip/__tests__/Tooltip.e2e.js +0 -33
- package/src/Tooltip/__tests__/Tooltip.spec.js +0 -306
- package/src/Tooltip/hooks/useTooltipHandlers.js +0 -39
- package/src/Tooltip/hooks/useTooltipLayout.js +0 -21
- package/src/Tooltip/index.js +0 -1
- package/src/Tooltip/utils/__tests__/positionTooltip.spec.js +0 -114
- package/src/Tooltip/utils/positionTooltip.js +0 -83
- package/src/Typography/Typography.js +0 -24
- package/src/Typography/Typography.stories.mdx +0 -86
- package/src/Typography/TypographyProps.js +0 -30
- package/src/Typography/__tests__/Typography.e2e.js +0 -25
- package/src/Typography/__tests__/Typography.spec.js +0 -32
- package/src/Typography/__tests__/__snapshots__/Typography.spec.js.snap +0 -103
- package/src/Typography/constants.js +0 -9
- package/src/Typography/index.js +0 -1
- package/src/Typography/utils.js +0 -69
- package/src/VisuallyHidden/VisuallyHidden.js +0 -12
- package/src/VisuallyHidden/index.js +0 -1
- package/src/helpers/__tests__/useId.spec.js +0 -39
- package/src/helpers/escapeSelector.js +0 -1
- package/src/helpers/genId.js +0 -2
- package/src/helpers/getDefaultLocale.js +0 -33
- package/src/helpers/getFocusableNodes.js +0 -35
- package/src/helpers/handleResponsiveValues.js +0 -34
- package/src/helpers/keyboardKeys.js +0 -17
- package/src/helpers/setOpacity.js +0 -4
- package/src/helpers/setTabIndexOnFirstItem.js +0 -7
- package/src/helpers/useElementOnScreen.js +0 -27
- package/src/helpers/useId.js +0 -8
- package/src/helpers/useIntersection.js +0 -31
- package/src/helpers/useLockScroll.js +0 -14
- package/src/helpers/usePrevious.js +0 -9
- package/src/helpers/useResizeObserver.js +0 -22
- package/src/index.js +0 -65
- package/src/themes/ColorButton.js +0 -24
- package/src/themes/Theme.stories.mdx +0 -227
- package/src/themes/__tests__/extendTheme.spec.js +0 -119
- package/src/themes/colors.js +0 -46
- package/src/themes/common-theme.js +0 -19
- package/src/themes/darkTheme/dark-colors.js +0 -49
- package/src/themes/darkTheme/dark-shadows.js +0 -10
- package/src/themes/darkTheme/index.js +0 -9
- package/src/themes/extendTheme.js +0 -60
- package/src/themes/index.js +0 -4
- package/src/themes/lightTheme/index.js +0 -9
- package/src/themes/lightTheme/light-colors.js +0 -49
- package/src/themes/lightTheme/light-shadows.js +0 -10
- package/src/themes/sizes.js +0 -10
- package/src/themes/utils.js +0 -50
- package/src/v2/Breadcrumbs/Breadcrumbs.js +0 -45
- package/src/v2/Breadcrumbs/Breadcrumbs.stories.mdx +0 -129
- package/src/v2/Breadcrumbs/Crumb.js +0 -30
- package/src/v2/Breadcrumbs/CrumbLink.js +0 -33
- package/src/v2/Breadcrumbs/CrumbSimpleMenu.js +0 -30
- package/src/v2/Breadcrumbs/Divider.js +0 -16
- package/src/v2/Breadcrumbs/__tests__/Breadcrumbs.e2e.js +0 -47
- package/src/v2/Breadcrumbs/__tests__/Breadcrumbs.spec.js +0 -47
- package/src/v2/Breadcrumbs/index.js +0 -4
- package/src/v2/Link/Link.js +0 -79
- package/src/v2/Link/Link.stories.mdx +0 -113
- package/src/v2/Link/__tests__/Link.e2e.js +0 -23
- package/src/v2/Link/index.js +0 -1
- package/src/v2/LinkButton/LinkButton.js +0 -105
- package/src/v2/LinkButton/LinkButton.stories.mdx +0 -153
- package/src/v2/LinkButton/__tests__/LinkButton.e2e.js +0 -89
- package/src/v2/LinkButton/index.js +0 -1
- package/src/v2/MainNav/MainNav.js +0 -31
- package/src/v2/MainNav/MainNav.stories.mdx +0 -197
- package/src/v2/MainNav/MainNavContext.js +0 -5
- package/src/v2/MainNav/NavBrand.js +0 -79
- package/src/v2/MainNav/NavCondense.js +0 -44
- package/src/v2/MainNav/NavLink.js +0 -143
- package/src/v2/MainNav/NavSection.js +0 -53
- package/src/v2/MainNav/NavSections.js +0 -20
- package/src/v2/MainNav/NavUser.js +0 -53
- package/src/v2/MainNav/__tests__/MainNav.e2e.js +0 -23
- package/src/v2/MainNav/index.js +0 -7
- package/src/v2/MainNav/strapi-img.png +0 -0
- package/src/v2/Pagination/Pagination.js +0 -37
- package/src/v2/Pagination/Pagination.stories.mdx +0 -97
- package/src/v2/Pagination/PaginationContext.js +0 -4
- package/src/v2/Pagination/__tests__/Pagination.e2e.js +0 -23
- package/src/v2/Pagination/assets/next.svg +0 -3
- package/src/v2/Pagination/assets/previous.svg +0 -3
- package/src/v2/Pagination/components.js +0 -136
- package/src/v2/Pagination/index.js +0 -2
- package/src/v2/SimpleMenu/SimpleMenu.js +0 -252
- package/src/v2/SimpleMenu/SimpleMenu.stories.mdx +0 -220
- package/src/v2/SimpleMenu/__tests__/SimpleMenu.e2e.js +0 -100
- package/src/v2/SimpleMenu/__tests__/SimpleMenu.spec.js +0 -48
- package/src/v2/SimpleMenu/index.js +0 -1
- package/src/v2/SimpleMenu/utils.js +0 -12
- package/src/v2/SubNav/SubNav.js +0 -25
- package/src/v2/SubNav/SubNav.stories.mdx +0 -234
- package/src/v2/SubNav/SubNavHeader.js +0 -122
- package/src/v2/SubNav/SubNavLink.js +0 -95
- package/src/v2/SubNav/SubNavLinkSection.js +0 -75
- package/src/v2/SubNav/SubNavSection.js +0 -75
- package/src/v2/SubNav/SubNavSectionLabel.js +0 -67
- package/src/v2/SubNav/SubNavSections.js +0 -20
- package/src/v2/SubNav/__tests__/SubNav.e2e.js +0 -23
- package/src/v2/SubNav/index.js +0 -6
- package/src/v2/index.js +0 -7
- package/test-bundler.js +0 -35
- package/tests/check-exports.spec.js +0 -36
- package/webpack.config.js +0 -84
package/LinkButton.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("styled-components"),require("react-router-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","styled-components","react-router-dom"],t):"object"==typeof exports?exports.strapiDs=t(require("react"),require("styled-components"),require("react-router-dom")):n.strapiDs=t(n.react,n["styled-components"],n["react-router-dom"])}(this,(function(n,t,e){return function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=122)}({0:function(n,t,e){n.exports=e(24)()},1:function(t,e){t.exports=n},11:function(n,t,e){var r=e(27),o=e(28),i=e(26),a=e(29);n.exports=function(n,t){return r(n)||o(n,t)||i(n,t)||a()},n.exports.default=n.exports,n.exports.__esModule=!0},122:function(n,t,e){"use strict";e.r(t),e.d(t,"LinkButton",(function(){return S}));var r,o=e(5),i=e.n(o),a=e(4),c=e.n(a),u=e(3),s=e.n(u),d=e(1),l=e.n(d),f=e(40),p=e(2),h=e.n(p),b=e(0),g=e.n(b),m=e(8),v=e(6),x=e(37),y=e(18),O=e(42),_=["variant","startIcon","endIcon","disabled","children","size","href","to"],w=h()(O.BaseButtonWrapper)(r||(r=s()(["\n padding: ",";\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n "," {\n display: flex;\n align-items: center;\n }\n "," {\n color: ",";\n }\n &[aria-disabled='true'] {\n ","\n &:active {\n ","\n }\n }\n &:hover {\n ","\n }\n &:active {\n ","\n }\n ","\n /**\n Link specific properties\n */\n display: inline-flex;\n text-decoration: none;\n pointer-events: ",";\n"])),(function(n){var t=n.theme,e=n.size;return"".concat("S"===e?t.spaces[2]:"10px"," ").concat(t.spaces[4])}),(function(n){return n.theme.colors.buttonPrimary600}),(function(n){return n.theme.colors.buttonPrimary600}),(function(n){return n.theme.borderRadius}),v.Box,m.Typography,(function(n){return n.theme.colors.buttonNeutral0}),x.b,x.b,x.c,x.a,x.d,(function(n){return n.disabled?"none":void 0})),S=l.a.forwardRef((function(n,t){var e=n.variant,r=n.startIcon,o=n.endIcon,a=n.disabled,u=n.children,s=n.size,d=n.href,p=n.to,h=c()(n,_),b=d?"_blank":void 0,g=d?"noreferrer noopener":void 0;return l.a.createElement(w,i()({ref:t,"aria-disabled":a,size:s,variant:e,target:b,rel:g,to:a?void 0:p,href:a?"#":d},h,{as:p&&!a?f.NavLink:"a"}),r&&l.a.createElement(v.Box,{"aria-hidden":!0,paddingRight:2},r),"S"===s?l.a.createElement(m.Typography,{variant:"pi",fontWeight:"bold"},u):l.a.createElement(m.Typography,{fontWeight:"bold"},u),o&&l.a.createElement(v.Box,{"aria-hidden":!0,paddingLeft:2},o))}));S.displayName="LinkButton",S.defaultProps={disabled:!1,startIcon:void 0,endIcon:void 0,size:"S",variant:"default",onClick:void 0,href:void 0,to:void 0},S.propTypes={children:g.a.node.isRequired,disabled:g.a.bool,endIcon:g.a.element,href:function(n){if(!n.disabled&&!n.to&&!n.href)return new Error("href must be defined")},onClick:g.a.func,size:g.a.oneOf(y.a),startIcon:g.a.element,to:function(n){if(!n.disabled&&!n.href&&!n.to)return new Error("to must be defined")},variant:g.a.oneOf(y.k)}},13:function(n,t,e){"use strict";e.d(t,"a",(function(){return o})),e.d(t,"c",(function(){return i})),e.d(t,"b",(function(){return a}));var r=e(9),o=function(n){return n.ellipsis&&"\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "},i=function(n){var t=n.variant,e=n.theme;switch(t){case r.a:return"\n font-weight: ".concat(e.fontWeights.bold,";\n font-size: ").concat(e.fontSizes[5],";\n line-height: ").concat(e.lineHeights[2],";\n ");case r.b:return"\n font-weight: ".concat(e.fontWeights.bold,";\n font-size: ").concat(e.fontSizes[4],";\n line-height: ").concat(e.lineHeights[1],";\n ");case r.c:return"\n font-weight: ".concat(e.fontWeights.semiBold,";\n font-size: ").concat(e.fontSizes[3],";\n line-height: ").concat(e.lineHeights[2],";\n ");case r.d:return"\n font-size: ".concat(e.fontSizes[3],";\n line-height: ").concat(e.lineHeights[6],";\n ");case r.e:return"\n font-size: ".concat(e.fontSizes[2],";\n line-height: ").concat(e.lineHeights[4],";\n ");case r.f:return"\n font-size: ".concat(e.fontSizes[1],";\n line-height: ").concat(e.lineHeights[3],";\n ");case r.g:return"\n font-weight: ".concat(e.fontWeights.bold,";\n font-size: ").concat(e.fontSizes[0],";\n line-height: ").concat(e.lineHeights[5],";\n text-transform: uppercase;\n ");default:return"\n font-size: ".concat(e.fontSizes[2],";\n ")}},a=function(n){var t=n.theme,e=n.textColor;return t.colors[e||"neutral800"]}},16:function(n,t){function e(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(n.exports=e=function(n){return typeof n},n.exports.default=n.exports,n.exports.__esModule=!0):(n.exports=e=function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n.exports.default=n.exports,n.exports.__esModule=!0),e(t)}n.exports=e,n.exports.default=n.exports,n.exports.__esModule=!0},18:function(n,t,e){"use strict";e.d(t,"i",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"d",(function(){return i})),e.d(t,"j",(function(){return a})),e.d(t,"g",(function(){return c})),e.d(t,"b",(function(){return u})),e.d(t,"h",(function(){return s})),e.d(t,"e",(function(){return d})),e.d(t,"f",(function(){return l})),e.d(t,"k",(function(){return f})),e.d(t,"a",(function(){return p}));var r="success-light",o="danger-light",i="default",a="tertiary",c="secondary",u="danger",s="success",d="ghost",l=[r,o],f=[i,a,c,u,s,d].concat(l),p=["S","L"]},2:function(n,e){n.exports=t},21:function(n,t,e){"use strict";e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var r=function(n){return function(t){var e=t.theme,r=t.size;return e.sizes[n][r]}},o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&";return function(t){var e=t.theme,r=t.hasError;return"\n outline: none;\n box-shadow: 0;\n transition-property: border-color, box-shadow, fill;\n transition-duration: 0.2s;\n\n ".concat(n,":focus-within {\n border: 1px solid ").concat(r?e.colors.danger600:e.colors.primary600,";\n box-shadow: ").concat(r?e.colors.danger600:e.colors.primary600," 0px 0px 0px 2px;\n }\n ")}},i=function(n){var t=n.theme;return"\n position: relative;\n outline: none;\n \n &:after {\n transition-property: all;\n transition-duration: 0.2s;\n border-radius: 8px;\n content: '';\n position: absolute;\n top: -4px;\n bottom: -4px;\n left: -4px;\n right: -4px;\n border: 2px solid transparent;\n }\n\n &:focus-visible {\n outline: none;\n &:after {\n border-radius: 8px;\n content: '';\n position: absolute;\n top: -5px;\n bottom: -5px;\n left: -5px;\n right: -5px;\n border: 2px solid ".concat(t.colors.primary600,";\n }\n }\n")}},23:function(n,t){n.exports=function(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r},n.exports.default=n.exports,n.exports.__esModule=!0},24:function(n,t,e){"use strict";var r=e(25);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,t,e,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return n}n.isRequired=n;var e={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,elementType:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},25:function(n,t,e){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},26:function(n,t,e){var r=e(23);n.exports=function(n,t){if(n){if("string"==typeof n)return r(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}},n.exports.default=n.exports,n.exports.__esModule=!0},27:function(n,t){n.exports=function(n){if(Array.isArray(n))return n},n.exports.default=n.exports,n.exports.__esModule=!0},28:function(n,t){n.exports=function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,o,i=[],a=!0,c=!1;try{for(e=e.call(n);!(a=(r=e.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(n){c=!0,o=n}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}},n.exports.default=n.exports,n.exports.__esModule=!0},29:function(n,t){n.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n.exports.default=n.exports,n.exports.__esModule=!0},3:function(n,t){n.exports=function(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))},n.exports.default=n.exports,n.exports.__esModule=!0},30:function(n,t){n.exports=function(n,t){if(null==n)return{};var e,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)e=i[r],t.indexOf(e)>=0||(o[e]=n[e]);return o},n.exports.default=n.exports,n.exports.__esModule=!0},32:function(n,t,e){var r=e(46),o=e(47),i=e(26),a=e(48);n.exports=function(n){return r(n)||o(n)||i(n)||a()},n.exports.default=n.exports,n.exports.__esModule=!0},37:function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return s})),e.d(t,"a",(function(){return d})),e.d(t,"d",(function(){return l}));var r=e(32),o=e.n(r),i=e(8),a=e(18),c=function(n){return a.f.includes(n)?n.substring(0,n.lastIndexOf("-")):n===a.j?"neutral":[a.d,a.g].includes(n)||!a.k.includes(n)?"primary":n},u=function(n){var t=n.theme;return"\n border: 1px solid ".concat(t.colors.neutral200,";\n background: ").concat(t.colors.neutral150,";\n ").concat(i.Typography," {\n color: ").concat(t.colors.neutral600,";\n }\n svg {\n > g, path {\n fill: ").concat(t.colors.neutral600,";\n }\n }\n ")},s=function(n){var t=n.theme,e=n.variant;return[].concat(o()(a.f),[a.g]).includes(e)?"\n background-color: ".concat(t.colors.neutral0,";\n "):e===a.j||e===a.e?"\n background-color: ".concat(t.colors.neutral100,";\n "):e===a.d?"\n border: 1px solid ".concat(t.colors.buttonPrimary500,";\n background: ").concat(t.colors.buttonPrimary500,";\n "):"\n border: 1px solid ".concat(t.colors["".concat(c(e),"500")],";\n background: ").concat(t.colors["".concat(c(e),"500")],";\n ")},d=function(n){var t=n.theme,e=n.variant;return[].concat(o()(a.f),[a.g]).includes(e)?"\n background-color: ".concat(t.colors.neutral0,";\n border: 1px solid ").concat(t.colors["".concat(c(e),"600")],";\n ").concat(i.Typography," {\n color: ").concat(t.colors["".concat(c(e),"600")],";\n }\n svg {\n > g, path {\n fill: ").concat(t.colors["".concat(c(e),"600")],";\n }\n }\n "):e===a.j?"\n background-color: ".concat(t.colors.neutral150,";\n "):"\n border: 1px solid ".concat(t.colors["".concat(c(e),"600")],";\n background: ").concat(t.colors["".concat(c(e),"600")],";\n ")},l=function(n){var t=n.theme,e=n.variant;switch(e){case a.c:case a.i:case a.g:return"\n border: 1px solid ".concat(t.colors["".concat(c(e),"200")],";\n background: ").concat(t.colors["".concat(c(e),"100")],";\n ").concat(i.Typography," {\n color: ").concat(t.colors["".concat(c(e),"700")],";\n }\n svg {\n > g, path {\n fill: ").concat(t.colors["".concat(c(e),"700")],";\n }\n }\n ");case a.j:return"\n border: 1px solid ".concat(t.colors.neutral200,";\n background: ").concat(t.colors.neutral0,";\n ").concat(i.Typography," {\n color: ").concat(t.colors.neutral800,";\n }\n svg {\n > g, path {\n fill: ").concat(t.colors.neutral800,";\n }\n }\n ");case a.e:return"\n border: 1px solid transparent;\n background: transparent;\n\n ".concat(i.Typography," {\n color: ").concat(t.colors.neutral800,";\n }\n\n svg {\n > g, path {\n fill: ").concat(t.colors.neutral500,";\n }\n }\n ");case a.h:case a.b:return"\n border: 1px solid ".concat(t.colors["".concat(c(e),"600")],";\n background: ").concat(t.colors["".concat(c(e),"600")],";\n ").concat(i.Typography," {\n color: ").concat(t.colors.neutral0,";\n }\n ");default:return"\n svg {\n > g, path {\n fill: ".concat(t.colors.buttonNeutral0,";\n }\n }\n ")}}},4:function(n,t,e){var r=e(30);n.exports=function(n,t){if(null==n)return{};var e,o,i=r(n,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(o=0;o<a.length;o++)e=a[o],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(n,e)&&(i[e]=n[e])}return i},n.exports.default=n.exports,n.exports.__esModule=!0},40:function(n,t){n.exports=e},42:function(n,t,e){"use strict";e.r(t),e.d(t,"BaseButtonWrapper",(function(){return v})),e.d(t,"BaseButton",(function(){return x}));var r,o=e(5),i=e.n(o),a=e(4),c=e.n(a),u=e(3),s=e.n(u),d=e(1),l=e.n(d),f=e(0),p=e.n(f),h=e(2),b=e.n(h),g=e(21),m=["disabled","children"],v=b.a.button(r||(r=s()(["\n display: flex;\n cursor: pointer;\n padding: ",";\n border-radius: ",";\n background: ",";\n border: 1px solid ",";\n svg {\n height: ",";\n width: ",";\n }\n svg {\n > g,\n path {\n fill: ",";\n }\n }\n &[aria-disabled='true'] {\n pointer-events: none;\n }\n\n ","\n"])),(function(n){return n.theme.spaces[2]}),(function(n){return n.theme.borderRadius}),(function(n){return n.theme.colors.neutral0}),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.spaces[3]}),(function(n){return n.theme.spaces[3]}),(function(n){return n.theme.colors.neutral0}),g.a),x=l.a.forwardRef((function(n,t){var e=n.disabled,r=n.children,o=c()(n,m);return l.a.createElement(v,i()({ref:t,"aria-disabled":e,type:"button",disabled:e},o),r)}));x.displayName="BaseButton",x.defaultProps={disabled:!1},x.propTypes={children:p.a.node.isRequired,disabled:p.a.bool}},46:function(n,t,e){var r=e(23);n.exports=function(n){if(Array.isArray(n))return r(n)},n.exports.default=n.exports,n.exports.__esModule=!0},47:function(n,t){n.exports=function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)},n.exports.default=n.exports,n.exports.__esModule=!0},48:function(n,t){n.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n.exports.default=n.exports,n.exports.__esModule=!0},5:function(n,t){function e(){return n.exports=e=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},n.exports.default=n.exports,n.exports.__esModule=!0,e.apply(this,arguments)}n.exports=e,n.exports.default=n.exports,n.exports.__esModule=!0},6:function(n,t,e){"use strict";e.r(t),e.d(t,"Box",(function(){return m}));var r,o=e(3),i=e.n(o),a=e(2),c=e.n(a),u=e(7),s=e(1),d=e.n(s),l=e(0),f=e.n(l),p=function(n){return d.a.createElement("div",n)},h={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},b={_hover:f.a.func,background:f.a.string,basis:f.a.oneOfType([f.a.string,f.a.string]),borderColor:f.a.string,children:f.a.oneOfType([f.a.node,f.a.string]),color:f.a.string,flex:f.a.oneOfType([f.a.string,f.a.string]),grow:f.a.oneOfType([f.a.string,f.a.string]),hasRadius:f.a.bool,hiddenS:f.a.bool,hiddenXS:f.a.bool,padding:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),paddingBottom:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),paddingLeft:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),paddingRight:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),paddingTop:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),shadow:f.a.string,shrink:f.a.oneOfType([f.a.string,f.a.string])};p.defaultProps=h,p.propTypes=b;var g={color:!0},m=c.a.div.withConfig({shouldForwardProp:function(n,t){return!g[n]&&t(n)}})(r||(r=i()(["\n // Font\n font-size: ",";\n\n // Colors\n background: ",";\n color: ",";\n\n // Spaces\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n // Responsive hiding\n ","\n ","\n \n\n // Borders\n border-radius: ",";\n border-style: ",";\n border-width: ",";\n border-color: ",";\n border: ",";\n\n // Shadows\n box-shadow: ",";\n\n // Handlers\n pointer-events: ",";\n &:hover {\n ","\n }\n\n // Display\n display: ",";\n\n // Position\n position: ",";\n left: ",";\n right: ",";\n top: ",";\n bottom: ",";\n z-index: ",";\n overflow: ",";\n cursor: ",";\n\n // Size\n width: ",";\n max-width: ",";\n min-width: ",";\n height: ",";\n max-height: ",";\n min-height: ",";\n\n // Animation\n transition: ",";\n transform: ",";\n animation: ",";\n\n //Flexbox children props\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: ",";\n flex: ",";\n\n // Text\n text-align: ",";\n text-transform: ",";\n line-height: ",";\n\n // Cursor\n cursor: ",";\n"])),(function(n){var t=n.fontSize;return n.theme.fontSizes[t]||t}),(function(n){var t=n.theme,e=n.background;return t.colors[e]}),(function(n){var t=n.theme,e=n.color;return t.colors[e]}),(function(n){var t=n.theme,e=n.padding;return Object(u.a)("padding",e,t)}),(function(n){var t=n.theme,e=n.paddingTop;return Object(u.a)("padding-top",e,t)}),(function(n){var t=n.theme,e=n.paddingRight;return Object(u.a)("padding-right",e,t)}),(function(n){var t=n.theme,e=n.paddingBottom;return Object(u.a)("padding-bottom",e,t)}),(function(n){var t=n.theme,e=n.paddingLeft;return Object(u.a)("padding-left",e,t)}),(function(n){var t=n.theme,e=n.marginLeft;return Object(u.a)("margin-left",e,t)}),(function(n){var t=n.theme,e=n.marginRight;return Object(u.a)("margin-right",e,t)}),(function(n){var t=n.theme,e=n.marginTop;return Object(u.a)("margin-top",e,t)}),(function(n){var t=n.theme,e=n.marginBottom;return Object(u.a)("margin-bottom",e,t)}),(function(n){var t=n.theme;return n.hiddenS?"".concat(t.mediaQueries.tablet," { display: none; }"):void 0}),(function(n){var t=n.theme;return n.hiddenXS?"".concat(t.mediaQueries.mobile," { display: none; }"):void 0}),(function(n){var t=n.theme,e=n.hasRadius,r=n.borderRadius;return e?t.borderRadius:r}),(function(n){return n.borderStyle}),(function(n){return n.borderWidth}),(function(n){var t=n.borderColor;return n.theme.colors[t]}),(function(n){var t=n.theme,e=n.borderColor,r=n.borderStyle,o=n.borderWidth;if(e&&!r&&!o)return"1px solid ".concat(t.colors[e])}),(function(n){var t=n.theme,e=n.shadow;return t.shadows[e]}),(function(n){return n.pointerEvents}),(function(n){var t=n._hover,e=n.theme;return t?t(e):void 0}),(function(n){return n.display}),(function(n){return n.position}),(function(n){var t=n.left;return n.theme.spaces[t]||t}),(function(n){var t=n.right;return n.theme.spaces[t]||t}),(function(n){var t=n.top;return n.theme.spaces[t]||t}),(function(n){var t=n.bottom;return n.theme.spaces[t]||t}),(function(n){return n.zIndex}),(function(n){return n.overflow}),(function(n){return n.cursor}),(function(n){var t=n.width;return n.theme.spaces[t]||t}),(function(n){var t=n.maxWidth;return n.theme.spaces[t]||t}),(function(n){var t=n.minWidth;return n.theme.spaces[t]||t}),(function(n){var t=n.height;return n.theme.spaces[t]||t}),(function(n){var t=n.maxHeight;return n.theme.spaces[t]||t}),(function(n){var t=n.minHeight;return n.theme.spaces[t]||t}),(function(n){return n.transition}),(function(n){return n.transform}),(function(n){return n.animation}),(function(n){return n.shrink}),(function(n){return n.grow}),(function(n){return n.basis}),(function(n){return n.flex}),(function(n){return n.textAlign}),(function(n){return n.textTransform}),(function(n){return n.lineHeight}),(function(n){return n.cursor}));m.defaultProps=h,m.propTypes=b},7:function(n,t,e){"use strict";var r=e(11),o=e.n(r),i=e(16),a=e.n(i);t.a=function(n,t,e){var r=t;if(Array.isArray(t)||"object"!==a()(t)||(r=[null==t?void 0:t.desktop,null==t?void 0:t.tablet,null==t?void 0:t.mobile]),void 0!==r){if(Array.isArray(r)){var i=r,c=o()(i,3),u=c[0],s=c[1],d=c[2],l="".concat(n,": ").concat(e.spaces[u],";");return void 0!==s&&(l+="".concat(e.mediaQueries.tablet,"{\n ").concat(n,": ").concat(e.spaces[s],";\n }")),void 0!==d&&(l+="".concat(e.mediaQueries.mobile,"{\n ").concat(n,": ").concat(e.spaces[d],";\n }")),l}var f=e.spaces[r]||r;return"".concat(n,": ").concat(f,";")}}},8:function(n,t,e){"use strict";e.r(t),e.d(t,"Typography",(function(){return v}));var r,o=e(3),i=e.n(o),a=e(2),c=e.n(a),u=e(13),s=e(1),d=e.n(s),l=e(0),f=e.n(l),p=e(9),h=function(n){return d.a.createElement("div",n)},b={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textAlign:void 0,textTransform:void 0,variant:p.e},g={ellipsis:f.a.bool,fontSize:f.a.oneOfType([f.a.number,f.a.string]),fontWeight:f.a.string,lineHeight:f.a.oneOfType([f.a.number,f.a.string]),textAlign:f.a.string,textColor:f.a.string,textTransform:f.a.string,variant:f.a.oneOf(p.h)};h.defaultProps=b,h.propTypes=g;var m={fontSize:!0,fontWeight:!0},v=c.a.span.withConfig({shouldForwardProp:function(n,t){return!m[n]&&t(n)}})(r||(r=i()(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-align: ",";\n text-transform: ",";\n ","\n ","\n"])),(function(n){var t=n.theme,e=n.fontWeight;return t.fontWeights[e]}),(function(n){var t=n.theme,e=n.fontSize;return t.fontSizes[e]}),(function(n){var t=n.theme,e=n.lineHeight;return t.lineHeights[e]}),u.b,(function(n){return n.textAlign}),(function(n){return n.textTransform}),u.a,u.c);v.defaultProps=b,v.propTypes=g},9:function(n,t,e){"use strict";e.d(t,"a",(function(){return r})),e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return i})),e.d(t,"d",(function(){return a})),e.d(t,"e",(function(){return c})),e.d(t,"f",(function(){return u})),e.d(t,"g",(function(){return s})),e.d(t,"h",(function(){return d}));var r="alpha",o="beta",i="delta",a="epsilon",c="omega",u="pi",s="sigma",d=[r,o,i,a,c,u,s]}})}));
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("strapiDs", ["react"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["strapiDs"] = factory(require("react"));
|
|
8
|
+
else
|
|
9
|
+
root["strapiDs"] = factory(root["react"]);
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE_react__) {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = "./src/LiveRegions/index.js");
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ "./src/LiveRegions/constants.js":
|
|
100
|
+
/*!**************************************!*\
|
|
101
|
+
!*** ./src/LiveRegions/constants.js ***!
|
|
102
|
+
\**************************************/
|
|
103
|
+
/*! exports provided: LiveRegionIds */
|
|
104
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
105
|
+
|
|
106
|
+
"use strict";
|
|
107
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LiveRegionIds\", function() { return LiveRegionIds; });\nvar LiveRegionIds = {\n Log: 'live-region-log',\n Status: 'live-region-status',\n Alert: 'live-region-alert'\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL3NyYy9MaXZlUmVnaW9ucy9jb25zdGFudHMuanM/YzQxZiJdLCJuYW1lcyI6WyJMaXZlUmVnaW9uSWRzIiwiTG9nIiwiU3RhdHVzIiwiQWxlcnQiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBTyxJQUFNQSxhQUFhLEdBQUc7QUFDM0JDLEtBQUcsRUFBRSxpQkFEc0I7QUFFM0JDLFFBQU0sRUFBRSxvQkFGbUI7QUFHM0JDLE9BQUssRUFBRTtBQUhvQixDQUF0QiIsImZpbGUiOiIuL3NyYy9MaXZlUmVnaW9ucy9jb25zdGFudHMuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTGl2ZVJlZ2lvbklkcyA9IHtcbiAgTG9nOiAnbGl2ZS1yZWdpb24tbG9nJyxcbiAgU3RhdHVzOiAnbGl2ZS1yZWdpb24tc3RhdHVzJyxcbiAgQWxlcnQ6ICdsaXZlLXJlZ2lvbi1hbGVydCcsXG59O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/LiveRegions/constants.js\n");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ "./src/LiveRegions/index.js":
|
|
112
|
+
/*!**********************************!*\
|
|
113
|
+
!*** ./src/LiveRegions/index.js ***!
|
|
114
|
+
\**********************************/
|
|
115
|
+
/*! exports provided: useNotifyAT */
|
|
116
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
117
|
+
|
|
118
|
+
"use strict";
|
|
119
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _useNotifyAT__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useNotifyAT */ \"./src/LiveRegions/useNotifyAT.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useNotifyAT\", function() { return _useNotifyAT__WEBPACK_IMPORTED_MODULE_0__[\"useNotifyAT\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL3NyYy9MaXZlUmVnaW9ucy9pbmRleC5qcz8zYzMwIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBIiwiZmlsZSI6Ii4vc3JjL0xpdmVSZWdpb25zL2luZGV4LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi91c2VOb3RpZnlBVCc7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/LiveRegions/index.js\n");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ "./src/LiveRegions/useNotifyAT.js":
|
|
124
|
+
/*!****************************************!*\
|
|
125
|
+
!*** ./src/LiveRegions/useNotifyAT.js ***!
|
|
126
|
+
\****************************************/
|
|
127
|
+
/*! exports provided: useNotifyAT */
|
|
128
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
129
|
+
|
|
130
|
+
"use strict";
|
|
131
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useNotifyAT\", function() { return useNotifyAT; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./src/LiveRegions/constants.js\");\n\n\n\nvar notifyLog = function notifyLog(message) {\n var logEl = document.querySelector(\"#\".concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"LiveRegionIds\"].Log));\n\n if (logEl) {\n logEl.innerText = message;\n }\n};\n\nvar notifyStatus = function notifyStatus(message) {\n var statusEl = document.querySelector(\"#\".concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"LiveRegionIds\"].Status));\n\n if (statusEl) {\n statusEl.innerText = message;\n }\n};\n\nvar notifyAlert = function notifyAlert(message) {\n var alertEl = document.querySelector(\"#\".concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"LiveRegionIds\"].Alert));\n\n if (alertEl) {\n alertEl.innerText = message;\n }\n};\n\nvar useNotifyAT = function useNotifyAT() {\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n return function () {\n notifyLog('');\n notifyAlert('');\n notifyStatus('');\n };\n }, []);\n return {\n notifyLog: notifyLog,\n notifyAlert: notifyAlert,\n notifyStatus: notifyStatus\n };\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL3NyYy9MaXZlUmVnaW9ucy91c2VOb3RpZnlBVC5qcz83YjdiIl0sIm5hbWVzIjpbIm5vdGlmeUxvZyIsIm1lc3NhZ2UiLCJsb2dFbCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsIkxpdmVSZWdpb25JZHMiLCJMb2ciLCJpbm5lclRleHQiLCJub3RpZnlTdGF0dXMiLCJzdGF0dXNFbCIsIlN0YXR1cyIsIm5vdGlmeUFsZXJ0IiwiYWxlcnRFbCIsIkFsZXJ0IiwidXNlTm90aWZ5QVQiLCJ1c2VFZmZlY3QiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBOztBQUVBLElBQU1BLFNBQVMsR0FBRyxTQUFaQSxTQUFZLENBQUNDLE9BQUQsRUFBYTtBQUM3QixNQUFNQyxLQUFLLEdBQUdDLFFBQVEsQ0FBQ0MsYUFBVCxZQUEyQkMsd0RBQWEsQ0FBQ0MsR0FBekMsRUFBZDs7QUFFQSxNQUFJSixLQUFKLEVBQVc7QUFDVEEsU0FBSyxDQUFDSyxTQUFOLEdBQWtCTixPQUFsQjtBQUNEO0FBQ0YsQ0FORDs7QUFRQSxJQUFNTyxZQUFZLEdBQUcsU0FBZkEsWUFBZSxDQUFDUCxPQUFELEVBQWE7QUFDaEMsTUFBTVEsUUFBUSxHQUFHTixRQUFRLENBQUNDLGFBQVQsWUFBMkJDLHdEQUFhLENBQUNLLE1BQXpDLEVBQWpCOztBQUVBLE1BQUlELFFBQUosRUFBYztBQUNaQSxZQUFRLENBQUNGLFNBQVQsR0FBcUJOLE9BQXJCO0FBQ0Q7QUFDRixDQU5EOztBQVFBLElBQU1VLFdBQVcsR0FBRyxTQUFkQSxXQUFjLENBQUNWLE9BQUQsRUFBYTtBQUMvQixNQUFNVyxPQUFPLEdBQUdULFFBQVEsQ0FBQ0MsYUFBVCxZQUEyQkMsd0RBQWEsQ0FBQ1EsS0FBekMsRUFBaEI7O0FBRUEsTUFBSUQsT0FBSixFQUFhO0FBQ1hBLFdBQU8sQ0FBQ0wsU0FBUixHQUFvQk4sT0FBcEI7QUFDRDtBQUNGLENBTkQ7O0FBUU8sSUFBTWEsV0FBVyxHQUFHLFNBQWRBLFdBQWMsR0FBTTtBQUMvQkMseURBQVMsQ0FBQyxZQUFNO0FBQ2QsV0FBTyxZQUFNO0FBQ1hmLGVBQVMsQ0FBQyxFQUFELENBQVQ7QUFDQVcsaUJBQVcsQ0FBQyxFQUFELENBQVg7QUFDQUgsa0JBQVksQ0FBQyxFQUFELENBQVo7QUFDRCxLQUpEO0FBS0QsR0FOUSxFQU1OLEVBTk0sQ0FBVDtBQVFBLFNBQU87QUFBRVIsYUFBUyxFQUFUQSxTQUFGO0FBQWFXLGVBQVcsRUFBWEEsV0FBYjtBQUEwQkgsZ0JBQVksRUFBWkE7QUFBMUIsR0FBUDtBQUNELENBVk0iLCJmaWxlIjoiLi9zcmMvTGl2ZVJlZ2lvbnMvdXNlTm90aWZ5QVQuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VFZmZlY3QgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IExpdmVSZWdpb25JZHMgfSBmcm9tICcuL2NvbnN0YW50cyc7XG5cbmNvbnN0IG5vdGlmeUxvZyA9IChtZXNzYWdlKSA9PiB7XG4gIGNvbnN0IGxvZ0VsID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcihgIyR7TGl2ZVJlZ2lvbklkcy5Mb2d9YCk7XG5cbiAgaWYgKGxvZ0VsKSB7XG4gICAgbG9nRWwuaW5uZXJUZXh0ID0gbWVzc2FnZTtcbiAgfVxufTtcblxuY29uc3Qgbm90aWZ5U3RhdHVzID0gKG1lc3NhZ2UpID0+IHtcbiAgY29uc3Qgc3RhdHVzRWwgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKGAjJHtMaXZlUmVnaW9uSWRzLlN0YXR1c31gKTtcblxuICBpZiAoc3RhdHVzRWwpIHtcbiAgICBzdGF0dXNFbC5pbm5lclRleHQgPSBtZXNzYWdlO1xuICB9XG59O1xuXG5jb25zdCBub3RpZnlBbGVydCA9IChtZXNzYWdlKSA9PiB7XG4gIGNvbnN0IGFsZXJ0RWwgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKGAjJHtMaXZlUmVnaW9uSWRzLkFsZXJ0fWApO1xuXG4gIGlmIChhbGVydEVsKSB7XG4gICAgYWxlcnRFbC5pbm5lclRleHQgPSBtZXNzYWdlO1xuICB9XG59O1xuXG5leHBvcnQgY29uc3QgdXNlTm90aWZ5QVQgPSAoKSA9PiB7XG4gIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIG5vdGlmeUxvZygnJyk7XG4gICAgICBub3RpZnlBbGVydCgnJyk7XG4gICAgICBub3RpZnlTdGF0dXMoJycpO1xuICAgIH07XG4gIH0sIFtdKTtcblxuICByZXR1cm4geyBub3RpZnlMb2csIG5vdGlmeUFsZXJ0LCBub3RpZnlTdGF0dXMgfTtcbn07XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/LiveRegions/useNotifyAT.js\n");
|
|
132
|
+
|
|
133
|
+
/***/ }),
|
|
134
|
+
|
|
135
|
+
/***/ "react":
|
|
136
|
+
/*!************************!*\
|
|
137
|
+
!*** external "react" ***!
|
|
138
|
+
\************************/
|
|
139
|
+
/*! no static exports found */
|
|
140
|
+
/***/ (function(module, exports) {
|
|
141
|
+
|
|
142
|
+
eval("module.exports = __WEBPACK_EXTERNAL_MODULE_react__;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy9leHRlcm5hbCBcInJlYWN0XCI/NTg4ZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiJyZWFjdC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gX19XRUJQQUNLX0VYVEVSTkFMX01PRFVMRV9yZWFjdF9fOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///react\n");
|
|
143
|
+
|
|
144
|
+
/***/ })
|
|
145
|
+
|
|
146
|
+
/******/ });
|
|
147
|
+
});
|
package/LiveRegions.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("strapiDs",["react"],t):"object"==typeof exports?exports.strapiDs=t(require("react")):e.strapiDs=t(e.react)}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}({1:function(t,n){t.exports=e},123:function(e,t,n){"use strict";n.r(t),n.d(t,"useNotifyAT",(function(){return f}));var r=n(1),o=n(63),u=function(e){var t=document.querySelector("#".concat(o.a.Log));t&&(t.innerText=e)},i=function(e){var t=document.querySelector("#".concat(o.a.Status));t&&(t.innerText=e)},c=function(e){var t=document.querySelector("#".concat(o.a.Alert));t&&(t.innerText=e)},f=function(){return Object(r.useEffect)((function(){return function(){u(""),c(""),i("")}}),[]),{notifyLog:u,notifyAlert:c,notifyStatus:i}}},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Log:"live-region-log",Status:"live-region-status",Alert:"live-region-alert"}}})}));
|