@shohojdhara/atomix 0.1.16 → 0.1.18
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/CONTRIBUTING.md +151 -0
- package/NEXTJS_INTEGRATION.md +358 -0
- package/README.md +168 -119
- package/babel.config.js +58 -0
- package/css.d.ts +10 -0
- package/dist/css/atomix.css +1 -2
- package/dist/js/194.js +1 -2
- package/dist/js/244.js +1 -0
- package/dist/js/atomix.react.cjs.js +1 -0
- package/dist/js/atomix.react.esm.js +1 -2
- package/dist/js/atomix.react.umd.js +1 -2
- package/dist/js/chunks/cjs/202.9d3b1ef1eaa0d5c8a309.js +1 -0
- package/dist/js/chunks/cjs/308.6ea9685ea38ead4120d0.js +1 -0
- package/dist/js/chunks/cjs/54.73db6922594e421ba6b1.js +1 -0
- package/dist/js/chunks/cjs/619.51feecaadcab819780d4.js +1 -0
- package/dist/js/chunks/cjs/690.90f6d11164081cbcbc4d.js +1 -0
- package/dist/js/chunks/cjs/894.24877561df336a8dfd14.js +1 -0
- package/dist/js/chunks/cjs/897.6c2a71fae95338890de7.js +1 -0
- package/dist/js/chunks/esm/{202.ff48d27672233280e021.js → 202.82aa7b3244e53c9edb72.js} +1 -2
- package/dist/js/chunks/esm/{308.f873332126eba90e5c62.js → 308.27e1e4005705ae320432.js} +1 -2
- package/dist/js/chunks/esm/{54.4db919e5e4e5cc6d7c72.js → 54.ece1fd6964f98d4d994f.js} +1 -2
- package/dist/js/chunks/esm/{619.afc5a718eff77fa423b5.js → 619.ebeb0298432a066ac05c.js} +1 -2
- package/dist/js/chunks/esm/{690.a9e968c7497d61e56cdc.js → 690.c5f412cc979b55740359.js} +1 -2
- package/dist/js/chunks/esm/{894.f1091a4a8758c26d29e4.js → 894.3604ddc9367d75191198.js} +1 -2
- package/dist/js/chunks/esm/{897.561a50f7d043d42169da.js → 897.a4aab2fad9401693eb12.js} +1 -2
- package/dist/js/chunks/umd/{202.dac7605cc555b6bda542.js → 202.5017dd0403d696bf1644.js} +1 -2
- package/dist/js/chunks/umd/{308.6709979849dcbdb90c9b.js → 308.4bc14b9d7b16b6ee0ab8.js} +1 -2
- package/dist/js/chunks/umd/{54.403470e1f7d0ef4424a7.js → 54.7fdfb4a031989470a70d.js} +1 -2
- package/dist/js/chunks/umd/{619.fa05ea98c10270eb64c5.js → 619.84a0c35ecee695250085.js} +1 -2
- package/dist/js/chunks/umd/{690.aa7054d1c53e5402c2d6.js → 690.d7041094a34a4a434be2.js} +1 -2
- package/dist/js/chunks/umd/{894.3e1eaf0a2aadf4434390.js → 894.c127ee4e9513c22ee97d.js} +1 -2
- package/dist/js/chunks/umd/{897.554ea37be4453698c167.js → 897.26932ac837a39fc91907.js} +1 -2
- package/dist/types/components/Badge/index.d.ts +3 -3
- package/dist/types/components/{Navbar → Navigation/Menu}/MegaMenu.d.ts +1 -1
- package/dist/types/components/{Navbar → Navigation/Menu}/Menu.d.ts +1 -1
- package/dist/types/components/Navigation/Nav/Nav.d.ts +20 -0
- package/dist/types/components/{Navbar → Navigation/Nav}/NavDropdown.d.ts +1 -1
- package/dist/types/components/Navigation/Nav/NavItem.d.ts +33 -0
- package/dist/types/components/Navigation/Navbar/Navbar.d.ts +19 -0
- package/dist/types/components/Navigation/SideMenu/SideMenu.d.ts +20 -0
- package/dist/types/components/Navigation/SideMenu/SideMenuItem.d.ts +30 -0
- package/dist/types/components/Navigation/SideMenu/SideMenuList.d.ts +17 -0
- package/dist/types/components/Navigation/index.d.ts +10 -0
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +2 -2
- package/dist/types/components/PhotoViewer/PhotoViewerHeader.d.ts +2 -2
- package/dist/types/components/Tab/index.d.ts +2 -2
- package/dist/types/components/Toggle/index.d.ts +2 -2
- package/dist/types/components/Tooltip/index.d.ts +3 -3
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/lib/composables/index.d.ts +1 -0
- package/dist/types/lib/composables/useDatePicker.d.ts +1 -1
- package/dist/types/lib/composables/useDropdown.d.ts +1 -1
- package/dist/types/lib/composables/useModal.d.ts +1 -1
- package/dist/types/lib/composables/usePhotoViewer.d.ts +1 -1
- package/dist/types/lib/composables/useRating.d.ts +1 -1
- package/dist/types/lib/composables/useSideMenu.d.ts +28 -0
- package/dist/types/lib/constants/components.d.ts +72 -0
- package/dist/types/lib/types/components.d.ts +103 -0
- package/examples/nextjs-example.tsx +271 -0
- package/implementation-guide.md +505 -0
- package/next.config.js +69 -0
- package/package.json +80 -42
- package/postcss.config.js +28 -0
- package/src/Introduction.mdx +3 -5
- package/src/assets/fonts/HelveticaNeue/stylesheet.css +140 -127
- package/src/components/Accordion/Accordion.stories.tsx +58 -45
- package/src/components/Accordion/Accordion.tsx +14 -4
- package/src/components/Accordion/scripts/accordionInteractions.ts +9 -9
- package/src/components/Accordion/scripts/bundle.ts +1 -1
- package/src/components/Accordion/scripts/index.ts +3 -3
- package/src/components/AtomixLogo.tsx +13 -19
- package/src/components/Avatar/Avatar.stories.tsx +24 -21
- package/src/components/Avatar/Avatar.tsx +5 -8
- package/src/components/Avatar/AvatarGroup.tsx +11 -11
- package/src/components/Avatar/index.ts +1 -1
- package/src/components/Avatar/scripts/index.ts +66 -71
- package/src/components/Badge/Badge.stories.tsx +51 -21
- package/src/components/Badge/Badge.tsx +14 -12
- package/src/components/Badge/index.ts +3 -3
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +40 -40
- package/src/components/Breadcrumb/Breadcrumb.tsx +19 -26
- package/src/components/Breadcrumb/index.ts +1 -1
- package/src/components/Breadcrumb/scripts/breadcrumb.ts +36 -34
- package/src/components/Breadcrumb/scripts/index.ts +1 -1
- package/src/components/Breadcrumb/scripts/types.ts +9 -9
- package/src/components/Button/Button.stories.tsx +36 -12
- package/src/components/Button/Button.tsx +52 -39
- package/src/components/Button/index.ts +1 -1
- package/src/components/Button/scripts/buttonInteractions.ts +9 -9
- package/src/components/Button/scripts/index.ts +1 -1
- package/src/components/Callout/Callout.stories.tsx +207 -114
- package/src/components/Callout/Callout.tsx +12 -12
- package/src/components/Callout/index.ts +1 -1
- package/src/components/Callout/scripts/CalloutInteractions.ts +58 -48
- package/src/components/Callout/scripts/bundle.ts +2 -2
- package/src/components/Callout/scripts/index.ts +19 -15
- package/src/components/Card/Card.stories.tsx +2 -2
- package/src/components/Card/Card.tsx +49 -72
- package/src/components/Card/ElevationCard.tsx +4 -8
- package/src/components/Card/index.ts +1 -1
- package/src/components/Card/scripts/bundle.ts +7 -7
- package/src/components/Card/scripts/cardInteractions.ts +24 -24
- package/src/components/Card/scripts/index.ts +25 -26
- package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +6 -3
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +12 -15
- package/src/components/ColorModeToggle/index.ts +1 -1
- package/src/components/Countdown/Countdown.stories.tsx +6 -2
- package/src/components/Countdown/Countdown.tsx +56 -48
- package/src/components/Countdown/index.ts +1 -1
- package/src/components/Countdown/scripts/index.ts +33 -28
- package/src/components/DataTable/DataTable.stories.tsx +23 -18
- package/src/components/DataTable/DataTable.tsx +39 -39
- package/src/components/DataTable/index.ts +1 -1
- package/src/components/DataTable/scripts/bundle.ts +8 -3
- package/src/components/DataTable/scripts/index.ts +182 -164
- package/src/components/DatePicker/DatePicker.stories.tsx +136 -148
- package/src/components/DatePicker/DatePicker.tsx +461 -420
- package/src/components/DatePicker/scripts/bundle.ts +12 -7
- package/src/components/DatePicker/scripts/componentInteractions.ts +76 -46
- package/src/components/DatePicker/scripts/index.ts +176 -156
- package/src/components/DatePicker/types.ts +32 -32
- package/src/components/DatePicker/utils.ts +41 -30
- package/src/components/Dropdown/Dropdown.stories.tsx +85 -55
- package/src/components/Dropdown/Dropdown.tsx +97 -88
- package/src/components/Dropdown/index.ts +5 -10
- package/src/components/Dropdown/scripts/bundle.ts +10 -10
- package/src/components/Dropdown/scripts/componentInteractions.ts +10 -2
- package/src/components/Dropdown/scripts/index.ts +122 -117
- package/src/components/EdgePanel/EdgePanel.stories.tsx +142 -58
- package/src/components/EdgePanel/EdgePanel.tsx +7 -13
- package/src/components/EdgePanel/index.ts +1 -1
- package/src/components/EdgePanel/scripts/bundle.ts +5 -5
- package/src/components/EdgePanel/scripts/edgePanelInteractions.ts +26 -26
- package/src/components/EdgePanel/scripts/index.ts +53 -53
- package/src/components/Form/Checkbox.stories.tsx +2 -2
- package/src/components/Form/Checkbox.tsx +13 -7
- package/src/components/Form/Form.stories.tsx +144 -218
- package/src/components/Form/Form.tsx +6 -6
- package/src/components/Form/FormGroup.stories.tsx +21 -38
- package/src/components/Form/FormGroup.tsx +18 -20
- package/src/components/Form/Input.stories.tsx +1 -1
- package/src/components/Form/Input.tsx +18 -8
- package/src/components/Form/Radio.stories.tsx +12 -25
- package/src/components/Form/Radio.tsx +11 -6
- package/src/components/Form/Select.stories.tsx +6 -6
- package/src/components/Form/Select.tsx +31 -33
- package/src/components/Form/Textarea.stories.tsx +7 -2
- package/src/components/Form/Textarea.tsx +17 -8
- package/src/components/Form/index.ts +1 -1
- package/src/components/Hero/Hero.stories.tsx +44 -42
- package/src/components/Hero/Hero.tsx +28 -38
- package/src/components/Hero/index.ts +1 -1
- package/src/components/Hero/scripts/bundle.ts +6 -6
- package/src/components/Hero/scripts/heroInteractions.ts +24 -29
- package/src/components/Hero/scripts/index.ts +16 -17
- package/src/components/Icon/Icon.tsx +16 -18
- package/src/components/Icon/index.ts +1 -1
- package/src/components/List/List.stories.tsx +1 -3
- package/src/components/List/List.tsx +6 -10
- package/src/components/List/ListGroup.tsx +1 -1
- package/src/components/List/index.ts +1 -1
- package/src/components/Messages/Messages.stories.tsx +30 -29
- package/src/components/Messages/Messages.tsx +60 -55
- package/src/components/Messages/index.ts +1 -1
- package/src/components/Messages/scripts/bundle.ts +1 -6
- package/src/components/Messages/scripts/componentInteractions.ts +32 -37
- package/src/components/Messages/scripts/index.ts +61 -55
- package/src/components/Modal/Modal.stories.tsx +77 -53
- package/src/components/Modal/Modal.tsx +63 -62
- package/src/components/Modal/index.ts +1 -1
- package/src/components/Modal/scripts/bundle.ts +3 -3
- package/src/components/Modal/scripts/index.ts +96 -84
- package/src/components/Modal/scripts/modalInteractions.ts +16 -14
- package/src/components/{Navbar → Navigation/Menu}/MegaMenu.tsx +50 -59
- package/src/components/Navigation/Menu/Menu.stories.tsx +340 -0
- package/src/components/Navigation/Menu/Menu.tsx +110 -0
- package/src/components/Navigation/Nav/Nav.stories.tsx +458 -0
- package/src/components/Navigation/Nav/Nav.tsx +50 -0
- package/src/components/Navigation/Nav/NavDropdown.tsx +105 -0
- package/src/components/Navigation/Nav/NavItem.tsx +159 -0
- package/src/components/{Navbar → Navigation/Navbar}/Navbar.stories.tsx +198 -104
- package/src/components/Navigation/Navbar/Navbar.tsx +150 -0
- package/src/components/Navigation/README.md +314 -0
- package/src/components/Navigation/SideMenu/SideMenu.README.md +494 -0
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +618 -0
- package/src/components/Navigation/SideMenu/SideMenu.tsx +101 -0
- package/src/components/Navigation/SideMenu/SideMenuItem.tsx +95 -0
- package/src/components/Navigation/SideMenu/SideMenuList.tsx +41 -0
- package/src/components/Navigation/index.ts +23 -0
- package/src/components/Navigation/scripts/NavbarInteractions.ts +171 -0
- package/src/components/Navigation/scripts/SideMenu.ts +319 -0
- package/src/components/Navigation/scripts/SideMenuBundle.ts +69 -0
- package/src/components/Navigation/scripts/SideMenuInteractions.ts +250 -0
- package/src/components/Navigation/scripts/bundle.ts +58 -0
- package/src/components/Navigation/scripts/index.ts +248 -0
- package/src/components/Pagination/Pagination.stories.tsx +34 -33
- package/src/components/Pagination/Pagination.tsx +25 -35
- package/src/components/Pagination/index.ts +1 -1
- package/src/components/Pagination/scripts/index.ts +42 -37
- package/src/components/PhotoViewer/PhotoViewer.stories.tsx +48 -48
- package/src/components/PhotoViewer/PhotoViewer.tsx +29 -46
- package/src/components/PhotoViewer/PhotoViewerHeader.tsx +20 -26
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +19 -17
- package/src/components/PhotoViewer/PhotoViewerInfo.tsx +13 -5
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +5 -5
- package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +31 -30
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +27 -37
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +19 -13
- package/src/components/PhotoViewer/examples/index.ts +1 -1
- package/src/components/PhotoViewer/index.ts +1 -1
- package/src/components/PhotoViewer/scripts/PhotoViewerInteractions.ts +43 -33
- package/src/components/PhotoViewer/scripts/bundle.ts +14 -14
- package/src/components/PhotoViewer/scripts/index.ts +173 -129
- package/src/components/Popover/Popover.stories.tsx +11 -12
- package/src/components/Popover/Popover.tsx +36 -36
- package/src/components/Popover/index.ts +1 -1
- package/src/components/Popover/scripts/bundle.ts +1 -1
- package/src/components/Popover/scripts/componentInteractions.ts +34 -46
- package/src/components/Popover/scripts/index.ts +64 -53
- package/src/components/ProductReview/ProductReview.stories.tsx +10 -8
- package/src/components/ProductReview/ProductReview.tsx +28 -32
- package/src/components/ProductReview/scripts/componentInteractions.ts +20 -20
- package/src/components/Progress/Progress.tsx +36 -34
- package/src/components/Progress/scripts/bundle.ts +7 -2
- package/src/components/Progress/scripts/componentInteractions.ts +29 -23
- package/src/components/Progress/scripts/index.ts +45 -39
- package/src/components/Rating/Rating.stories.tsx +3 -16
- package/src/components/Rating/Rating.tsx +250 -231
- package/src/components/Rating/scripts/bundle.ts +11 -6
- package/src/components/Rating/scripts/index.ts +85 -80
- package/src/components/Rating/scripts/ratingInteractions.ts +27 -24
- package/src/components/River/River.stories.tsx +70 -24
- package/src/components/River/River.tsx +28 -38
- package/src/components/River/index.ts +1 -1
- package/src/components/River/scripts/index.ts +11 -12
- package/src/components/SectionIntro/SectionIntro.stories.tsx +12 -9
- package/src/components/SectionIntro/SectionIntro.tsx +25 -31
- package/src/components/SectionIntro/scripts/componentInteractions.ts +1 -1
- package/src/components/SectionIntro/scripts/index.ts +30 -16
- package/src/components/Spinner/Spinner.stories.tsx +5 -7
- package/src/components/Spinner/Spinner.tsx +11 -6
- package/src/components/Spinner/index.ts +2 -2
- package/src/components/Steps/Steps.stories.tsx +44 -48
- package/src/components/Steps/Steps.tsx +20 -20
- package/src/components/Steps/index.ts +1 -1
- package/src/components/Steps/scripts/index.ts +9 -9
- package/src/components/Tab/Tab.stories.tsx +14 -6
- package/src/components/Tab/Tab.tsx +16 -18
- package/src/components/Tab/index.ts +2 -2
- package/src/components/Tab/scripts/index.ts +13 -13
- package/src/components/Testimonial/Testimonial.stories.tsx +54 -51
- package/src/components/Testimonial/Testimonial.tsx +18 -19
- package/src/components/Testimonial/index.ts +1 -1
- package/src/components/Testimonial/scripts/index.ts +19 -8
- package/src/components/Todo/Todo.stories.tsx +7 -24
- package/src/components/Todo/Todo.tsx +35 -46
- package/src/components/Todo/index.ts +1 -1
- package/src/components/Todo/scripts/bundle.ts +1 -1
- package/src/components/Todo/scripts/index.ts +99 -81
- package/src/components/Todo/scripts/todoInteractions.ts +12 -12
- package/src/components/Todo/scripts/types.ts +3 -3
- package/src/components/Toggle/Toggle.stories.tsx +2 -2
- package/src/components/Toggle/Toggle.tsx +18 -18
- package/src/components/Toggle/index.ts +2 -2
- package/src/components/Toggle/scripts/bundle.ts +7 -2
- package/src/components/Toggle/scripts/index.ts +14 -10
- package/src/components/Toggle/scripts/toggleInteractions.ts +11 -14
- package/src/components/Tooltip/Tooltip.stories.tsx +13 -6
- package/src/components/Tooltip/Tooltip.tsx +25 -15
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/scripts/bundle.ts +0 -1
- package/src/components/Tooltip/scripts/index.ts +44 -41
- package/src/components/Tooltip/scripts/tooltipInteractions.ts +22 -22
- package/src/components/Upload/Upload.stories.tsx +28 -34
- package/src/components/Upload/Upload.tsx +86 -71
- package/src/components/Upload/index.ts +1 -1
- package/src/components/Upload/scripts/index.ts +58 -43
- package/src/components/index.ts +5 -6
- package/src/design-tokens/BoxShadow/BoxShadow.stories.tsx +13 -10
- package/src/design-tokens/Colors/colors.scss +10 -7
- package/src/design-tokens/Colors/colors.stories.tsx +46 -59
- package/src/design-tokens/Spacing/Spacing.scss +7 -5
- package/src/design-tokens/Spacing/Spacing.stories.tsx +19 -18
- package/src/design-tokens/Typography/Typography.scss +88 -25
- package/src/design-tokens/Typography/Typography.stories.tsx +22 -25
- package/src/docs/implementation-guide.mdx +2 -2
- package/src/htmlComponentsEntry.ts +23 -23
- package/src/index.ts +1 -1
- package/src/layouts/Grid/Container.tsx +6 -10
- package/src/layouts/Grid/Grid.stories.tsx +72 -34
- package/src/layouts/Grid/Grid.tsx +6 -13
- package/src/layouts/Grid/GridCol.tsx +29 -26
- package/src/layouts/Grid/Row.tsx +6 -13
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +79 -72
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +23 -25
- package/src/layouts/MasonryGrid/MasonryGridItem.tsx +4 -12
- package/src/layouts/index.ts +3 -4
- package/src/lib/composables/index.ts +3 -3
- package/src/lib/composables/useAccordion.ts +15 -6
- package/src/lib/composables/useBadge.ts +3 -3
- package/src/lib/composables/useBreadcrumb.ts +6 -12
- package/src/lib/composables/useButton.ts +3 -3
- package/src/lib/composables/useCallout.ts +3 -3
- package/src/lib/composables/useCard.ts +50 -28
- package/src/lib/composables/useCheckbox.ts +7 -7
- package/src/lib/composables/useDataTable.ts +61 -57
- package/src/lib/composables/useDatePicker.ts +255 -231
- package/src/lib/composables/useDropdown.ts +90 -75
- package/src/lib/composables/useEdgePanel.ts +50 -47
- package/src/lib/composables/useForm.ts +4 -7
- package/src/lib/composables/useFormGroup.ts +11 -12
- package/src/lib/composables/useHero.ts +36 -38
- package/src/lib/composables/useInput.ts +9 -10
- package/src/lib/composables/useMessages.ts +12 -14
- package/src/lib/composables/useModal.ts +37 -34
- package/src/lib/composables/useNavbar.ts +33 -22
- package/src/lib/composables/usePagination.ts +3 -10
- package/src/lib/composables/usePhotoViewer.ts +625 -578
- package/src/lib/composables/usePopover.ts +68 -62
- package/src/lib/composables/useProgress.ts +9 -12
- package/src/lib/composables/useRadio.ts +4 -4
- package/src/lib/composables/useRating.ts +82 -70
- package/src/lib/composables/useRiver.ts +28 -31
- package/src/lib/composables/useSelect.ts +7 -8
- package/src/lib/composables/useSideMenu.ts +197 -0
- package/src/lib/composables/useSpinner.ts +3 -3
- package/src/lib/composables/useTextarea.ts +8 -9
- package/src/lib/composables/useTodo.ts +14 -18
- package/src/lib/constants/components.ts +191 -118
- package/src/lib/constants/index.ts +1 -1
- package/src/lib/types/components.ts +454 -324
- package/src/lib/utils/dom.ts +2 -6
- package/src/lib/utils/icons.ts +20 -12
- package/src/lib/utils/index.ts +2 -2
- package/src/lib/utils/useForkRef.ts +1 -2
- package/src/styles/01-settings/_index.scss +59 -59
- package/src/styles/01-settings/_settings.accordion.scss +21 -21
- package/src/styles/01-settings/_settings.animations.scss +2 -2
- package/src/styles/01-settings/_settings.avatar-group.scss +14 -14
- package/src/styles/01-settings/_settings.avatar.scss +31 -31
- package/src/styles/01-settings/_settings.badge.scss +11 -11
- package/src/styles/01-settings/_settings.border-radius.scss +10 -9
- package/src/styles/01-settings/_settings.border.scss +7 -7
- package/src/styles/01-settings/_settings.box-shadow.scss +24 -12
- package/src/styles/01-settings/_settings.breadcrumb.scss +18 -18
- package/src/styles/01-settings/_settings.btn-group.scss +1 -1
- package/src/styles/01-settings/_settings.button.scss +63 -49
- package/src/styles/01-settings/_settings.callout.scss +27 -7
- package/src/styles/01-settings/_settings.card.scss +27 -30
- package/src/styles/01-settings/_settings.checkbox-group.scss +2 -3
- package/src/styles/01-settings/_settings.checkbox.scss +17 -18
- package/src/styles/01-settings/_settings.color-mode.scss +1 -1
- package/src/styles/01-settings/_settings.colors.scss +197 -214
- package/src/styles/01-settings/_settings.config.scss +1 -3
- package/src/styles/01-settings/_settings.countdown.scss +14 -14
- package/src/styles/01-settings/_settings.data-table.scss +6 -6
- package/src/styles/01-settings/_settings.datepicker.scss +40 -42
- package/src/styles/01-settings/_settings.dropdown.scss +30 -30
- package/src/styles/01-settings/_settings.edge-panel.scss +16 -16
- package/src/styles/01-settings/_settings.fonts.scss +14 -12
- package/src/styles/01-settings/_settings.form-group.scss +10 -10
- package/src/styles/01-settings/_settings.form.scss +3 -3
- package/src/styles/01-settings/_settings.grid.scss +1 -1
- package/src/styles/01-settings/_settings.hero.scss +23 -23
- package/src/styles/01-settings/_settings.input.scss +32 -32
- package/src/styles/01-settings/_settings.link.scss +6 -6
- package/src/styles/01-settings/_settings.list-group.scss +12 -12
- package/src/styles/01-settings/_settings.list.scss +2 -2
- package/src/styles/01-settings/_settings.maps.scss +183 -188
- package/src/styles/01-settings/_settings.masonry-grid.scss +2 -2
- package/src/styles/01-settings/_settings.menu.scss +35 -38
- package/src/styles/01-settings/_settings.messages.scss +71 -77
- package/src/styles/01-settings/_settings.modal.scss +24 -24
- package/src/styles/01-settings/_settings.nav.scss +15 -15
- package/src/styles/01-settings/_settings.navbar.scss +39 -12
- package/src/styles/01-settings/_settings.pagination.scss +21 -21
- package/src/styles/01-settings/_settings.photoviewer.scss +1 -1
- package/src/styles/01-settings/_settings.popover.scss +3 -3
- package/src/styles/01-settings/_settings.position.scss +2 -2
- package/src/styles/01-settings/_settings.progress.scss +15 -18
- package/src/styles/01-settings/_settings.rating.scss +7 -7
- package/src/styles/01-settings/_settings.river.scss +25 -25
- package/src/styles/01-settings/_settings.sectionintro.scss +15 -16
- package/src/styles/01-settings/_settings.select.scss +31 -31
- package/src/styles/01-settings/_settings.side-menu.scss +64 -16
- package/src/styles/01-settings/_settings.skeleton.scss +12 -12
- package/src/styles/01-settings/_settings.spacing.scss +62 -33
- package/src/styles/01-settings/_settings.spinner.scss +10 -10
- package/src/styles/01-settings/_settings.steps.scss +22 -22
- package/src/styles/01-settings/_settings.tabs.scss +25 -25
- package/src/styles/01-settings/_settings.testimonials.scss +17 -19
- package/src/styles/01-settings/_settings.todo.scss +1 -1
- package/src/styles/01-settings/_settings.toggle.scss +26 -26
- package/src/styles/01-settings/_settings.tooltip.scss +15 -15
- package/src/styles/01-settings/_settings.typography.scss +65 -48
- package/src/styles/01-settings/_settings.upload.scss +70 -77
- package/src/styles/01-settings/_settings.z-layers.scss +1 -1
- package/src/styles/02-tools/_index.scss +19 -19
- package/src/styles/02-tools/_tools.animations.scss +4 -4
- package/src/styles/02-tools/_tools.border-radius.scss +4 -5
- package/src/styles/02-tools/_tools.breakpoints.scss +33 -34
- package/src/styles/02-tools/_tools.button.scss +49 -25
- package/src/styles/02-tools/_tools.color-mode.scss +11 -11
- package/src/styles/02-tools/_tools.event.scss +1 -1
- package/src/styles/02-tools/_tools.hidden-visually.scss +1 -1
- package/src/styles/02-tools/_tools.hidden.scss +1 -1
- package/src/styles/02-tools/_tools.map-loop.scss +9 -9
- package/src/styles/02-tools/_tools.media-queries.scss +5 -3
- package/src/styles/02-tools/_tools.object-fit.scss +3 -3
- package/src/styles/02-tools/_tools.placeholder.scss +0 -1
- package/src/styles/02-tools/_tools.rem.scss +1 -1
- package/src/styles/02-tools/_tools.spacing.scss +8 -34
- package/src/styles/02-tools/_tools.to-rgb.scss +3 -3
- package/src/styles/02-tools/_tools.transition.scss +1 -1
- package/src/styles/02-tools/_tools.utility-api.scss +29 -14
- package/src/styles/03-generic/_generic.fonts.scss +0 -1
- package/src/styles/03-generic/_generic.reset.scss +13 -8
- package/src/styles/03-generic/_generic.root.scss +5 -5
- package/src/styles/03-generic/_index.scss +4 -4
- package/src/styles/04-elements/_elements.all.scss +2 -2
- package/src/styles/04-elements/_elements.body.scss +1 -2
- package/src/styles/04-elements/_elements.heading.scss +37 -21
- package/src/styles/04-elements/_elements.links.scss +0 -1
- package/src/styles/04-elements/_index.scss +5 -5
- package/src/styles/05-objects/_index.scss +3 -3
- package/src/styles/05-objects/_objects.container.scss +5 -4
- package/src/styles/05-objects/_objects.grid.scss +12 -12
- package/src/styles/05-objects/_objects.masonry-grid.scss +80 -74
- package/src/styles/06-components/_components.accordion.scss +12 -6
- package/src/styles/06-components/_components.avatar-group.scss +9 -8
- package/src/styles/06-components/_components.avatar.scss +78 -77
- package/src/styles/06-components/_components.badge.scss +48 -48
- package/src/styles/06-components/_components.breadcrumb.scss +57 -58
- package/src/styles/06-components/_components.btn-group.scss +22 -22
- package/src/styles/06-components/_components.button.scss +118 -110
- package/src/styles/06-components/_components.callout.scss +21 -15
- package/src/styles/06-components/_components.card.scss +6 -10
- package/src/styles/06-components/_components.checkbox-group.scss +9 -10
- package/src/styles/06-components/_components.checkbox.scss +10 -17
- package/src/styles/06-components/_components.color-mode-toggle.scss +6 -6
- package/src/styles/06-components/_components.countdown.scss +53 -54
- package/src/styles/06-components/_components.data-table.scss +40 -36
- package/src/styles/06-components/_components.datepicker.scss +95 -73
- package/src/styles/06-components/_components.dropdown.scss +15 -9
- package/src/styles/06-components/_components.edge-panel.scss +87 -46
- package/src/styles/06-components/_components.form-group.scss +5 -4
- package/src/styles/06-components/_components.hero.scss +128 -132
- package/src/styles/06-components/_components.icon.scss +16 -16
- package/src/styles/06-components/_components.image-gallery.scss +9 -7
- package/src/styles/06-components/_components.input.scss +18 -16
- package/src/styles/06-components/_components.list-group.scss +52 -51
- package/src/styles/06-components/_components.list.scss +15 -15
- package/src/styles/06-components/_components.menu.scss +225 -220
- package/src/styles/06-components/_components.messages.scss +45 -32
- package/src/styles/06-components/_components.modal.scss +0 -1
- package/src/styles/06-components/_components.nav.scss +56 -11
- package/src/styles/06-components/_components.navbar.scss +278 -202
- package/src/styles/06-components/_components.pagination.scss +7 -6
- package/src/styles/06-components/_components.photoviewer.scss +121 -116
- package/src/styles/06-components/_components.popover.scss +10 -10
- package/src/styles/06-components/_components.product-review.scss +3 -3
- package/src/styles/06-components/_components.progress.scss +32 -35
- package/src/styles/06-components/_components.rating.scss +9 -8
- package/src/styles/06-components/_components.river.scss +4 -2
- package/src/styles/06-components/_components.sectionintro.scss +19 -26
- package/src/styles/06-components/_components.select.scss +7 -8
- package/src/styles/06-components/_components.side-menu.scss +154 -28
- package/src/styles/06-components/_components.skeleton.scss +0 -1
- package/src/styles/06-components/_components.spinner.scss +2 -4
- package/src/styles/06-components/_components.steps.scss +76 -77
- package/src/styles/06-components/_components.tabs.scss +17 -12
- package/src/styles/06-components/_components.testimonials.scss +49 -52
- package/src/styles/06-components/_components.todo.scss +26 -26
- package/src/styles/06-components/_components.tooltip.scss +114 -115
- package/src/styles/06-components/_components.upload.scss +8 -18
- package/src/styles/06-components/_index.scss +48 -48
- package/src/styles/99-utilities/_index.scss +18 -18
- package/src/styles/99-utilities/_utilities.background.scss +13 -13
- package/src/styles/99-utilities/_utilities.border.scss +30 -30
- package/src/styles/99-utilities/_utilities.clearfix.scss +1 -1
- package/src/styles/99-utilities/_utilities.display.scss +5 -4
- package/src/styles/99-utilities/_utilities.flex.scss +19 -19
- package/src/styles/99-utilities/_utilities.link.scss +52 -35
- package/src/styles/99-utilities/_utilities.object-fit.scss +3 -3
- package/src/styles/99-utilities/_utilities.opacity.scss +6 -6
- package/src/styles/99-utilities/_utilities.overflow.scss +4 -4
- package/src/styles/99-utilities/_utilities.position.scss +8 -8
- package/src/styles/99-utilities/_utilities.shadow.scss +13 -13
- package/src/styles/99-utilities/_utilities.sizes.scss +17 -17
- package/src/styles/99-utilities/_utilities.spacing.scss +72 -37
- package/src/styles/99-utilities/_utilities.text.scss +15 -15
- package/src/styles/99-utilities/_utilities.visibility.scss +8 -8
- package/src/styles/99-utilities/_utilities.visually-hidden.scss +1 -1
- package/src/styles/99-utilities/_utilities.z-index.scss +2 -2
- package/tsconfig.json +74 -0
- package/webpack.config.js +463 -0
- package/NPM_PUBLISHING.md +0 -221
- package/dist/css/atomix.css.map +0 -1
- package/dist/js/194.js.map +0 -1
- package/dist/js/atomix.react.esm.js.map +0 -1
- package/dist/js/atomix.react.umd.js.map +0 -1
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js.map +0 -1
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js.map +0 -1
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js.map +0 -1
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js.map +0 -1
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js.map +0 -1
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js.map +0 -1
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js.map +0 -1
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js.map +0 -1
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js.map +0 -1
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js.map +0 -1
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js.map +0 -1
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js.map +0 -1
- package/dist/js/chunks/umd/894.3e1eaf0a2aadf4434390.js.map +0 -1
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js.map +0 -1
- package/dist/types/components/Navbar/Nav.d.ts +0 -5
- package/dist/types/components/Navbar/NavItem.d.ts +0 -5
- package/dist/types/components/Navbar/Navbar.d.ts +0 -5
- package/dist/types/components/Navbar/index.d.ts +0 -6
- package/src/components/Navbar/Menu.tsx +0 -122
- package/src/components/Navbar/Nav.tsx +0 -35
- package/src/components/Navbar/NavDropdown.tsx +0 -108
- package/src/components/Navbar/NavItem.tsx +0 -128
- package/src/components/Navbar/Navbar.tsx +0 -124
- package/src/components/Navbar/index.ts +0 -6
|
@@ -11,7 +11,7 @@ export const THEME_COLORS: ThemeColor[] = [
|
|
|
11
11
|
'warning',
|
|
12
12
|
'error',
|
|
13
13
|
'light',
|
|
14
|
-
'dark'
|
|
14
|
+
'dark',
|
|
15
15
|
];
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -54,8 +54,8 @@ export const CALLOUT = {
|
|
|
54
54
|
CLASSES: {
|
|
55
55
|
ONELINE: 'c-callout--oneline',
|
|
56
56
|
TOAST: 'c-callout--toast',
|
|
57
|
-
HIDE: 'is-hide'
|
|
58
|
-
}
|
|
57
|
+
HIDE: 'is-hide',
|
|
58
|
+
},
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -66,22 +66,22 @@ export const ACCORDION = {
|
|
|
66
66
|
ACCORDION: '.c-accordion',
|
|
67
67
|
HEADER: '.c-accordion__header',
|
|
68
68
|
PANEL: '.c-accordion__panel',
|
|
69
|
-
BODY: '.c-accordion__body'
|
|
69
|
+
BODY: '.c-accordion__body',
|
|
70
70
|
},
|
|
71
71
|
CLASSES: {
|
|
72
72
|
IS_OPEN: 'is-open',
|
|
73
73
|
IS_ANIMATING: 'is-animating',
|
|
74
|
-
IS_DISABLED: 'is-disabled'
|
|
74
|
+
IS_DISABLED: 'is-disabled',
|
|
75
75
|
},
|
|
76
76
|
ATTRIBUTES: {
|
|
77
77
|
ARIA_EXPANDED: 'aria-expanded',
|
|
78
78
|
ARIA_CONTROLS: 'aria-controls',
|
|
79
79
|
ARIA_HIDDEN: 'aria-hidden',
|
|
80
|
-
ROLE: 'role'
|
|
80
|
+
ROLE: 'role',
|
|
81
81
|
},
|
|
82
82
|
CSS_VARS: {
|
|
83
|
-
PANEL_HEIGHT: '--panel-height'
|
|
84
|
-
}
|
|
83
|
+
PANEL_HEIGHT: '--panel-height',
|
|
84
|
+
},
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -91,7 +91,7 @@ export const BADGE = {
|
|
|
91
91
|
BASE_CLASS: 'c-badge',
|
|
92
92
|
ICON_CLASS: 'c-badge__icon',
|
|
93
93
|
VARIANT_PREFIX: 'c-badge--',
|
|
94
|
-
SIZE_PREFIX: 'c-badge--'
|
|
94
|
+
SIZE_PREFIX: 'c-badge--',
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -104,8 +104,8 @@ export const LIST = {
|
|
|
104
104
|
SIZE_PREFIX: 'c-list--',
|
|
105
105
|
CLASSES: {
|
|
106
106
|
ORDERED: 'c-list--ordered',
|
|
107
|
-
INLINE: 'c-list--inline'
|
|
108
|
-
}
|
|
107
|
+
INLINE: 'c-list--inline',
|
|
108
|
+
},
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/**
|
|
@@ -125,17 +125,17 @@ export const BREADCRUMB = {
|
|
|
125
125
|
SELECTORS: {
|
|
126
126
|
BREADCRUMB: '.c-breadcrumb',
|
|
127
127
|
ITEM: '.c-breadcrumb__item',
|
|
128
|
-
LINK: '.c-breadcrumb__link'
|
|
128
|
+
LINK: '.c-breadcrumb__link',
|
|
129
129
|
},
|
|
130
130
|
CLASSES: {
|
|
131
131
|
BASE: 'c-breadcrumb',
|
|
132
132
|
ITEM: 'c-breadcrumb__item',
|
|
133
133
|
LINK: 'c-breadcrumb__link',
|
|
134
|
-
ACTIVE: 'is-active'
|
|
134
|
+
ACTIVE: 'is-active',
|
|
135
135
|
},
|
|
136
136
|
DEFAULTS: {
|
|
137
|
-
DIVIDER: '›'
|
|
138
|
-
}
|
|
137
|
+
DIVIDER: '›',
|
|
138
|
+
},
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
/**
|
|
@@ -147,16 +147,16 @@ export const COUNTDOWN = {
|
|
|
147
147
|
TIME: '.c-countdown__time',
|
|
148
148
|
TIME_COUNT: '.c-countdown__time-count',
|
|
149
149
|
TIME_LABEL: '.c-countdown__time-label',
|
|
150
|
-
SEPARATOR: '.c-countdown__separator'
|
|
150
|
+
SEPARATOR: '.c-countdown__separator',
|
|
151
151
|
},
|
|
152
152
|
CLASSES: {
|
|
153
153
|
BASE: 'c-countdown',
|
|
154
|
-
FOCUSED: 'c-countdown--focused'
|
|
154
|
+
FOCUSED: 'c-countdown--focused',
|
|
155
155
|
},
|
|
156
156
|
DEFAULTS: {
|
|
157
157
|
SEPARATOR: ':',
|
|
158
|
-
SHOW: ['days', 'hours', 'minutes', 'seconds']
|
|
159
|
-
}
|
|
158
|
+
SHOW: ['days', 'hours', 'minutes', 'seconds'],
|
|
159
|
+
},
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
/**
|
|
@@ -176,14 +176,14 @@ export const HERO = {
|
|
|
176
176
|
BG: '.c-hero__bg',
|
|
177
177
|
BG_IMAGE: '.c-hero__bg-image',
|
|
178
178
|
OVERLAY: '.c-hero__overlay',
|
|
179
|
-
IMAGE_WRAPPER: '.c-hero__image-wrapper'
|
|
179
|
+
IMAGE_WRAPPER: '.c-hero__image-wrapper',
|
|
180
180
|
},
|
|
181
181
|
CLASSES: {
|
|
182
182
|
CENTER: 'c-hero--center',
|
|
183
183
|
RIGHT: 'c-hero--right',
|
|
184
184
|
LEFT: 'c-hero--left',
|
|
185
|
-
FULL_VH: 'c-hero--full-vh'
|
|
186
|
-
}
|
|
185
|
+
FULL_VH: 'c-hero--full-vh',
|
|
186
|
+
},
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
/**
|
|
@@ -194,7 +194,7 @@ export const TOOLTIP = {
|
|
|
194
194
|
TOOLTIP: '.js-atomix-tooltip',
|
|
195
195
|
TRIGGER: '.js-atomix-tooltip-trigger',
|
|
196
196
|
CONTENT: '.js-atomix-tooltip-content',
|
|
197
|
-
ARROW: '.c-tooltip__arrow'
|
|
197
|
+
ARROW: '.c-tooltip__arrow',
|
|
198
198
|
},
|
|
199
199
|
CLASSES: {
|
|
200
200
|
IS_ACTIVE: 'is-active',
|
|
@@ -205,19 +205,19 @@ export const TOOLTIP = {
|
|
|
205
205
|
TOP_LEFT: 'c-tooltip--top-left',
|
|
206
206
|
TOP_RIGHT: 'c-tooltip--top-right',
|
|
207
207
|
BOTTOM_LEFT: 'c-tooltip--bottom-left',
|
|
208
|
-
BOTTOM_RIGHT: 'c-tooltip--bottom-right'
|
|
208
|
+
BOTTOM_RIGHT: 'c-tooltip--bottom-right',
|
|
209
209
|
},
|
|
210
210
|
ATTRIBUTES: {
|
|
211
211
|
POSITION: 'data-tooltip-position',
|
|
212
212
|
TRIGGER: 'data-tooltip-trigger',
|
|
213
|
-
CONTENT_ID: 'data-tooltip-id'
|
|
213
|
+
CONTENT_ID: 'data-tooltip-id',
|
|
214
214
|
},
|
|
215
215
|
DEFAULTS: {
|
|
216
216
|
TRIGGER: 'hover',
|
|
217
217
|
POSITION: 'top',
|
|
218
218
|
OFFSET: 10,
|
|
219
|
-
DELAY: 200
|
|
220
|
-
}
|
|
219
|
+
DELAY: 200,
|
|
220
|
+
},
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
/**
|
|
@@ -229,7 +229,7 @@ export const POPOVER = {
|
|
|
229
229
|
TRIGGER: '.js-atomix-popover-trigger',
|
|
230
230
|
CONTENT: '.js-atomix-popover-content',
|
|
231
231
|
CONTENT_INNER: '.c-popover__content-inner',
|
|
232
|
-
ARROW: '.c-popover__arrow'
|
|
232
|
+
ARROW: '.c-popover__arrow',
|
|
233
233
|
},
|
|
234
234
|
CLASSES: {
|
|
235
235
|
IS_OPEN: 'is-open',
|
|
@@ -237,19 +237,19 @@ export const POPOVER = {
|
|
|
237
237
|
BOTTOM: 'c-popover--bottom',
|
|
238
238
|
LEFT: 'c-popover--left',
|
|
239
239
|
RIGHT: 'c-popover--right',
|
|
240
|
-
AUTO: 'c-popover--auto'
|
|
240
|
+
AUTO: 'c-popover--auto',
|
|
241
241
|
},
|
|
242
242
|
ATTRIBUTES: {
|
|
243
243
|
POSITION: 'data-popover-position',
|
|
244
244
|
TRIGGER: 'data-popover-trigger',
|
|
245
|
-
CONTENT_ID: 'data-popover-id'
|
|
245
|
+
CONTENT_ID: 'data-popover-id',
|
|
246
246
|
},
|
|
247
247
|
DEFAULTS: {
|
|
248
248
|
TRIGGER: 'click',
|
|
249
249
|
POSITION: 'top',
|
|
250
250
|
OFFSET: 12,
|
|
251
|
-
DELAY: 0
|
|
252
|
-
}
|
|
251
|
+
DELAY: 0,
|
|
252
|
+
},
|
|
253
253
|
};
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -257,11 +257,11 @@ export const POPOVER = {
|
|
|
257
257
|
*/
|
|
258
258
|
export const TOGGLE = {
|
|
259
259
|
SELECTORS: {
|
|
260
|
-
TOGGLE: '.c-toggle'
|
|
260
|
+
TOGGLE: '.c-toggle',
|
|
261
261
|
},
|
|
262
262
|
CLASSES: {
|
|
263
|
-
IS_ON: 'is-on'
|
|
264
|
-
}
|
|
263
|
+
IS_ON: 'is-on',
|
|
264
|
+
},
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
/**
|
|
@@ -273,14 +273,14 @@ export const TAB = {
|
|
|
273
273
|
NAV_ITEMS: '.c-tabs__nav-item',
|
|
274
274
|
NAV_BTN: '.c-tabs__nav-btn',
|
|
275
275
|
PANELS: '.c-tabs__panel',
|
|
276
|
-
PANEL_BODIES: '.c-tabs__panel-body'
|
|
276
|
+
PANEL_BODIES: '.c-tabs__panel-body',
|
|
277
277
|
},
|
|
278
278
|
CLASSES: {
|
|
279
|
-
ACTIVE: 'is-active'
|
|
279
|
+
ACTIVE: 'is-active',
|
|
280
280
|
},
|
|
281
281
|
DEFAULTS: {
|
|
282
|
-
ACTIVE_INDEX: 0
|
|
283
|
-
}
|
|
282
|
+
ACTIVE_INDEX: 0,
|
|
283
|
+
},
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
/**
|
|
@@ -293,13 +293,13 @@ export const STEPS = {
|
|
|
293
293
|
LINE: '.c-steps__line',
|
|
294
294
|
CONTENT: '.c-steps__content',
|
|
295
295
|
NUMBER: '.c-steps__number',
|
|
296
|
-
TEXT: '.c-steps__text'
|
|
296
|
+
TEXT: '.c-steps__text',
|
|
297
297
|
},
|
|
298
298
|
CLASSES: {
|
|
299
299
|
ACTIVE: 'is-active',
|
|
300
300
|
VERTICAL: 'c-steps--vertical',
|
|
301
|
-
COMPLETED: 'is-completed'
|
|
302
|
-
}
|
|
301
|
+
COMPLETED: 'is-completed',
|
|
302
|
+
},
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
/**
|
|
@@ -313,12 +313,12 @@ export const TESTIMONIAL = {
|
|
|
313
313
|
AUTHOR_AVATAR: '.c-testimonial__author-avatar',
|
|
314
314
|
AUTHOR_INFO: '.c-testimonial__info',
|
|
315
315
|
AUTHOR_NAME: '.c-testimonial__author-name',
|
|
316
|
-
AUTHOR_ROLE: '.c-testimonial__author-role'
|
|
316
|
+
AUTHOR_ROLE: '.c-testimonial__author-role',
|
|
317
317
|
},
|
|
318
318
|
CLASSES: {
|
|
319
319
|
SMALL: 'c-testimonial--sm',
|
|
320
|
-
LARGE: 'c-testimonial--lg'
|
|
321
|
-
}
|
|
320
|
+
LARGE: 'c-testimonial--lg',
|
|
321
|
+
},
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
/**
|
|
@@ -326,7 +326,7 @@ export const TESTIMONIAL = {
|
|
|
326
326
|
*/
|
|
327
327
|
export const SPINNER = {
|
|
328
328
|
SELECTORS: {
|
|
329
|
-
SPINNER: '.c-spinner'
|
|
329
|
+
SPINNER: '.c-spinner',
|
|
330
330
|
},
|
|
331
331
|
CLASSES: {
|
|
332
332
|
PRIMARY: 'c-spinner--primary',
|
|
@@ -338,9 +338,9 @@ export const SPINNER = {
|
|
|
338
338
|
LIGHT: 'c-spinner--light',
|
|
339
339
|
DARK: 'c-spinner--dark',
|
|
340
340
|
SMALL: 'c-spinner--sm',
|
|
341
|
-
LARGE: 'c-spinner--lg'
|
|
341
|
+
LARGE: 'c-spinner--lg',
|
|
342
342
|
},
|
|
343
|
-
VISUALLY_HIDDEN: 'u-visually-hidden'
|
|
343
|
+
VISUALLY_HIDDEN: 'u-visually-hidden',
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
/**
|
|
@@ -352,13 +352,13 @@ export const SECTION_INTRO = {
|
|
|
352
352
|
LABEL: '.c-sectionintro__label',
|
|
353
353
|
TITLE: '.c-sectionintro__title',
|
|
354
354
|
TEXT: '.c-sectionintro__text',
|
|
355
|
-
ACTIONS: '.c-sectionintro__actions'
|
|
355
|
+
ACTIONS: '.c-sectionintro__actions',
|
|
356
356
|
},
|
|
357
357
|
CLASSES: {
|
|
358
358
|
CENTER: 'c-sectionintro--center',
|
|
359
359
|
LARGE: 'c-sectionintro--lg',
|
|
360
|
-
SMALL: 'c-sectionintro--sm'
|
|
361
|
-
}
|
|
360
|
+
SMALL: 'c-sectionintro--sm',
|
|
361
|
+
},
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
/**
|
|
@@ -381,16 +381,16 @@ export const RIVER = {
|
|
|
381
381
|
IMAGE: '.c-river__image',
|
|
382
382
|
BG: '.c-river__bg',
|
|
383
383
|
BG_IMAGE: '.c-river__bg-image',
|
|
384
|
-
OVERLAY: '.c-river__overlay'
|
|
384
|
+
OVERLAY: '.c-river__overlay',
|
|
385
385
|
},
|
|
386
386
|
CLASSES: {
|
|
387
387
|
CENTER: 'c-river--center',
|
|
388
388
|
BREAKOUT: 'c-river--breakout',
|
|
389
|
-
REVERSE: 'c-river--reverse'
|
|
389
|
+
REVERSE: 'c-river--reverse',
|
|
390
390
|
},
|
|
391
391
|
ATTRIBUTES: {
|
|
392
|
-
CONTENT_WIDTH: '--river-content-width'
|
|
393
|
-
}
|
|
392
|
+
CONTENT_WIDTH: '--river-content-width',
|
|
393
|
+
},
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
/**
|
|
@@ -413,18 +413,18 @@ export const UPLOAD = {
|
|
|
413
413
|
LOADER_TIME: '.c-upload__loader-time',
|
|
414
414
|
LOADER_CONTROL: '.c-upload__loader-control',
|
|
415
415
|
LOADER_BAR: '.c-upload__loader-bar',
|
|
416
|
-
LOADER_CLOSE: '.c-upload__loader-close'
|
|
416
|
+
LOADER_CLOSE: '.c-upload__loader-close',
|
|
417
417
|
},
|
|
418
418
|
CLASSES: {
|
|
419
419
|
DISABLED: 'c-upload--disabled',
|
|
420
420
|
ERROR: 'c-upload--error',
|
|
421
421
|
SUCCESS: 'c-upload--success',
|
|
422
422
|
LOADING: 'c-upload--loading',
|
|
423
|
-
DRAGGING: 'c-upload--dragging'
|
|
423
|
+
DRAGGING: 'c-upload--dragging',
|
|
424
424
|
},
|
|
425
425
|
ATTRIBUTES: {
|
|
426
|
-
PERCENTAGE: '--upload-loader-percentage'
|
|
427
|
-
}
|
|
426
|
+
PERCENTAGE: '--upload-loader-percentage',
|
|
427
|
+
},
|
|
428
428
|
};
|
|
429
429
|
|
|
430
430
|
/**
|
|
@@ -436,13 +436,40 @@ export const NAVBAR = {
|
|
|
436
436
|
CONTAINER: '.c-navbar__container',
|
|
437
437
|
BRAND: '.c-navbar__brand',
|
|
438
438
|
COLLAPSE: '.c-navbar__collapse',
|
|
439
|
-
TOGGLER: '.c-navbar__toggler'
|
|
439
|
+
TOGGLER: '.c-navbar__toggler',
|
|
440
|
+
TOGGLER_ICON: '.c-navbar__toggler-icon',
|
|
440
441
|
},
|
|
441
442
|
CLASSES: {
|
|
443
|
+
BASE: 'c-navbar',
|
|
444
|
+
CONTAINER: 'c-navbar__container',
|
|
445
|
+
BRAND: 'c-navbar__brand',
|
|
446
|
+
COLLAPSE: 'c-navbar__collapse',
|
|
447
|
+
TOGGLER: 'c-navbar__toggler',
|
|
448
|
+
TOGGLER_ICON: 'c-navbar__toggler-icon',
|
|
442
449
|
FIXED: 'c-navbar--fixed',
|
|
443
450
|
FIXED_BOTTOM: 'c-navbar--fixed-bottom',
|
|
444
|
-
|
|
445
|
-
|
|
451
|
+
COLLAPSIBLE: 'c-navbar--collapsible',
|
|
452
|
+
EXPANDED: 'is-expanded',
|
|
453
|
+
BACKDROP: 'c-navbar__backdrop',
|
|
454
|
+
},
|
|
455
|
+
ATTRIBUTES: {
|
|
456
|
+
NAVBAR: 'data-navbar',
|
|
457
|
+
COLLAPSIBLE: 'data-collapsible',
|
|
458
|
+
EXPANDED: 'data-expanded',
|
|
459
|
+
POSITION: 'data-position',
|
|
460
|
+
BACKDROP: 'data-backdrop',
|
|
461
|
+
AUTO_CLOSE: 'data-auto-close',
|
|
462
|
+
KEYBOARD: 'data-keyboard',
|
|
463
|
+
},
|
|
464
|
+
DEFAULTS: {
|
|
465
|
+
POSITION: 'static',
|
|
466
|
+
COLLAPSIBLE: true,
|
|
467
|
+
EXPANDED: false,
|
|
468
|
+
BACKDROP: false,
|
|
469
|
+
AUTO_CLOSE: true,
|
|
470
|
+
KEYBOARD: true,
|
|
471
|
+
ARIA_LABEL: 'Main navigation',
|
|
472
|
+
},
|
|
446
473
|
};
|
|
447
474
|
|
|
448
475
|
/**
|
|
@@ -456,14 +483,60 @@ export const NAV = {
|
|
|
456
483
|
DROPDOWN: '.c-nav__item--dropdown',
|
|
457
484
|
DROPDOWN_MENU: '.c-nav__dropdown-menu',
|
|
458
485
|
MEGA_MENU: '.c-nav__mega-menu',
|
|
459
|
-
ICON: '.c-nav__icon'
|
|
486
|
+
ICON: '.c-nav__icon',
|
|
460
487
|
},
|
|
461
488
|
CLASSES: {
|
|
462
489
|
END: 'c-nav--end',
|
|
463
490
|
CENTER: 'c-nav--center',
|
|
464
491
|
ACTIVE: 'is-active',
|
|
465
|
-
DISABLED: 'is-disabled'
|
|
466
|
-
}
|
|
492
|
+
DISABLED: 'is-disabled',
|
|
493
|
+
},
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* SideMenu-specific constants
|
|
498
|
+
*/
|
|
499
|
+
export const SIDE_MENU = {
|
|
500
|
+
SELECTORS: {
|
|
501
|
+
SIDE_MENU: '.c-side-menu',
|
|
502
|
+
WRAPPER: '.c-side-menu__wrapper',
|
|
503
|
+
INNER: '.c-side-menu__inner',
|
|
504
|
+
TITLE: '.c-side-menu__title',
|
|
505
|
+
TOGGLER: '.c-side-menu__toggler',
|
|
506
|
+
TOGGLER_ICON: '.c-side-menu__toggler-icon',
|
|
507
|
+
LIST: '.c-side-menu__list',
|
|
508
|
+
ITEM: '.c-side-menu__item',
|
|
509
|
+
LINK: '.c-side-menu__link',
|
|
510
|
+
LINK_ICON: '.c-side-menu__link-icon',
|
|
511
|
+
LINK_TEXT: '.c-side-menu__link-text',
|
|
512
|
+
},
|
|
513
|
+
CLASSES: {
|
|
514
|
+
BASE: 'c-side-menu',
|
|
515
|
+
WRAPPER: 'c-side-menu__wrapper',
|
|
516
|
+
INNER: 'c-side-menu__inner',
|
|
517
|
+
TITLE: 'c-side-menu__title',
|
|
518
|
+
TOGGLER: 'c-side-menu__toggler',
|
|
519
|
+
TOGGLER_ICON: 'c-side-menu__toggler-icon',
|
|
520
|
+
LIST: 'c-side-menu__list',
|
|
521
|
+
ITEM: 'c-side-menu__item',
|
|
522
|
+
LINK: 'c-side-menu__link',
|
|
523
|
+
LINK_ICON: 'c-side-menu__link-icon',
|
|
524
|
+
LINK_TEXT: 'c-side-menu__link-text',
|
|
525
|
+
IS_OPEN: 'is-open',
|
|
526
|
+
ACTIVE: 'is-active',
|
|
527
|
+
DISABLED: 'is-disabled',
|
|
528
|
+
},
|
|
529
|
+
ATTRIBUTES: {
|
|
530
|
+
SIDE_MENU: 'data-side-menu',
|
|
531
|
+
COLLAPSIBLE: 'data-collapsible',
|
|
532
|
+
OPEN: 'data-open',
|
|
533
|
+
TITLE: 'data-title',
|
|
534
|
+
},
|
|
535
|
+
DEFAULTS: {
|
|
536
|
+
COLLAPSIBLE: true,
|
|
537
|
+
OPEN: false,
|
|
538
|
+
TOGGLE_ICON: '▶',
|
|
539
|
+
},
|
|
467
540
|
};
|
|
468
541
|
|
|
469
542
|
/**
|
|
@@ -477,18 +550,18 @@ export const RATING = {
|
|
|
477
550
|
RATING: '.c-rating',
|
|
478
551
|
STAR: '.c-rating__star',
|
|
479
552
|
STAR_FULL: '.c-rating__star-full',
|
|
480
|
-
STAR_HALF: '.c-rating__star-half'
|
|
553
|
+
STAR_HALF: '.c-rating__star-half',
|
|
481
554
|
},
|
|
482
555
|
CLASSES: {
|
|
483
556
|
FULL: 'c-rating__star--full',
|
|
484
557
|
HALF: 'c-rating__star--half',
|
|
485
558
|
SMALL: 'c-rating--sm',
|
|
486
|
-
LARGE: 'c-rating--lg'
|
|
559
|
+
LARGE: 'c-rating--lg',
|
|
487
560
|
},
|
|
488
561
|
ATTRIBUTES: {
|
|
489
562
|
READONLY: 'data-readonly',
|
|
490
|
-
VALUE: 'data-value'
|
|
491
|
-
}
|
|
563
|
+
VALUE: 'data-value',
|
|
564
|
+
},
|
|
492
565
|
};
|
|
493
566
|
|
|
494
567
|
export const EDGE_PANEL = {
|
|
@@ -498,7 +571,7 @@ export const EDGE_PANEL = {
|
|
|
498
571
|
CONTAINER: '.c-edge-panel__container',
|
|
499
572
|
HEADER: '.c-edge-panel__header',
|
|
500
573
|
BODY: '.c-edge-panel__body',
|
|
501
|
-
CLOSE: '.c-edge-panel__close'
|
|
574
|
+
CLOSE: '.c-edge-panel__close',
|
|
502
575
|
},
|
|
503
576
|
CLASSES: {
|
|
504
577
|
BASE: 'c-edge-panel',
|
|
@@ -506,15 +579,15 @@ export const EDGE_PANEL = {
|
|
|
506
579
|
END: 'c-edge-panel--end',
|
|
507
580
|
TOP: 'c-edge-panel--top',
|
|
508
581
|
BOTTOM: 'c-edge-panel--bottom',
|
|
509
|
-
IS_OPEN: 'is-open'
|
|
582
|
+
IS_OPEN: 'is-open',
|
|
510
583
|
},
|
|
511
584
|
TRANSFORM_VALUES: {
|
|
512
585
|
start: 'translateX(-100%)',
|
|
513
586
|
end: 'translateX(100%)',
|
|
514
587
|
top: 'translateY(-100%)',
|
|
515
|
-
bottom: 'translateY(100%)'
|
|
588
|
+
bottom: 'translateY(100%)',
|
|
516
589
|
},
|
|
517
|
-
ANIMATION_DURATION: 300
|
|
590
|
+
ANIMATION_DURATION: 300,
|
|
518
591
|
};
|
|
519
592
|
|
|
520
593
|
/**
|
|
@@ -587,15 +660,15 @@ export const TODO = {
|
|
|
587
660
|
DELETE_BUTTON: '.c-todo__delete-btn',
|
|
588
661
|
FORM: '.c-todo__form',
|
|
589
662
|
INPUT: '.c-todo__input',
|
|
590
|
-
ADD_BUTTON: '.c-todo__add-btn'
|
|
663
|
+
ADD_BUTTON: '.c-todo__add-btn',
|
|
591
664
|
},
|
|
592
665
|
CLASSES: {
|
|
593
666
|
BASE: 'c-todo',
|
|
594
667
|
ITEM: 'c-todo__item',
|
|
595
668
|
COMPLETED: 'c-todo__item--completed',
|
|
596
669
|
SMALL: 'c-todo--sm',
|
|
597
|
-
LARGE: 'c-todo--lg'
|
|
598
|
-
}
|
|
670
|
+
LARGE: 'c-todo--lg',
|
|
671
|
+
},
|
|
599
672
|
};
|
|
600
673
|
|
|
601
674
|
/**
|
|
@@ -608,12 +681,12 @@ export const FORM = {
|
|
|
608
681
|
LABEL: '.c-form-group__label',
|
|
609
682
|
HELPER: '.c-form-group__helper',
|
|
610
683
|
FIELD: '.c-form-group__field',
|
|
611
|
-
REQUIRED: '.c-form-group__required'
|
|
684
|
+
REQUIRED: '.c-form-group__required',
|
|
612
685
|
},
|
|
613
686
|
CLASSES: {
|
|
614
687
|
BASE: 'c-form',
|
|
615
|
-
DISABLED: 'c-form--disabled'
|
|
616
|
-
}
|
|
688
|
+
DISABLED: 'c-form--disabled',
|
|
689
|
+
},
|
|
617
690
|
};
|
|
618
691
|
|
|
619
692
|
/**
|
|
@@ -625,7 +698,7 @@ export const FORM_GROUP = {
|
|
|
625
698
|
LABEL: '.c-form-group__label',
|
|
626
699
|
FIELD: '.c-form-group__field',
|
|
627
700
|
HELPER: '.c-form-group__helper',
|
|
628
|
-
REQUIRED: '.c-form-group__required'
|
|
701
|
+
REQUIRED: '.c-form-group__required',
|
|
629
702
|
},
|
|
630
703
|
CLASSES: {
|
|
631
704
|
BASE: 'c-form-group',
|
|
@@ -633,8 +706,8 @@ export const FORM_GROUP = {
|
|
|
633
706
|
LARGE: 'c-form-group--lg',
|
|
634
707
|
INVALID: 'c-form-group--invalid',
|
|
635
708
|
VALID: 'c-form-group--valid',
|
|
636
|
-
DISABLED: 'c-form-group--disabled'
|
|
637
|
-
}
|
|
709
|
+
DISABLED: 'c-form-group--disabled',
|
|
710
|
+
},
|
|
638
711
|
};
|
|
639
712
|
|
|
640
713
|
/**
|
|
@@ -642,7 +715,7 @@ export const FORM_GROUP = {
|
|
|
642
715
|
*/
|
|
643
716
|
export const INPUT = {
|
|
644
717
|
SELECTORS: {
|
|
645
|
-
INPUT: '.c-input'
|
|
718
|
+
INPUT: '.c-input',
|
|
646
719
|
},
|
|
647
720
|
CLASSES: {
|
|
648
721
|
BASE: 'c-input',
|
|
@@ -650,8 +723,8 @@ export const INPUT = {
|
|
|
650
723
|
LARGE: 'c-input--lg',
|
|
651
724
|
INVALID: 'is-invalid',
|
|
652
725
|
VALID: 'is-valid',
|
|
653
|
-
DISABLED: 'is-disabled'
|
|
654
|
-
}
|
|
726
|
+
DISABLED: 'is-disabled',
|
|
727
|
+
},
|
|
655
728
|
};
|
|
656
729
|
|
|
657
730
|
/**
|
|
@@ -661,14 +734,14 @@ export const RADIO = {
|
|
|
661
734
|
SELECTORS: {
|
|
662
735
|
RADIO: '.c-radio',
|
|
663
736
|
INPUT: '.c-radio__input',
|
|
664
|
-
LABEL: '.c-radio__label'
|
|
737
|
+
LABEL: '.c-radio__label',
|
|
665
738
|
},
|
|
666
739
|
CLASSES: {
|
|
667
740
|
BASE: 'c-radio',
|
|
668
741
|
INVALID: 'is-error',
|
|
669
742
|
VALID: 'is-valid',
|
|
670
|
-
DISABLED: 'is-disabled'
|
|
671
|
-
}
|
|
743
|
+
DISABLED: 'is-disabled',
|
|
744
|
+
},
|
|
672
745
|
};
|
|
673
746
|
|
|
674
747
|
/**
|
|
@@ -689,7 +762,7 @@ export const CARD = {
|
|
|
689
762
|
TEXT: '.c-card__text',
|
|
690
763
|
ACTIONS: '.c-card__actions',
|
|
691
764
|
ICON: '.c-card__icon',
|
|
692
|
-
FOOTER: '.c-card__footer'
|
|
765
|
+
FOOTER: '.c-card__footer',
|
|
693
766
|
},
|
|
694
767
|
CLASSES: {
|
|
695
768
|
BASE: 'c-card',
|
|
@@ -698,11 +771,11 @@ export const CARD = {
|
|
|
698
771
|
ACTIVE: 'is-active',
|
|
699
772
|
FLIPPED: 'is-flipped',
|
|
700
773
|
FOCUSED: 'is-focused',
|
|
701
|
-
CLICKABLE: 'is-clickable'
|
|
774
|
+
CLICKABLE: 'is-clickable',
|
|
702
775
|
},
|
|
703
776
|
DEFAULTS: {
|
|
704
|
-
HOVER: true
|
|
705
|
-
}
|
|
777
|
+
HOVER: true,
|
|
778
|
+
},
|
|
706
779
|
};
|
|
707
780
|
|
|
708
781
|
/**
|
|
@@ -718,7 +791,7 @@ export const SELECT = {
|
|
|
718
791
|
SELECT_ITEM: '.c-select__item',
|
|
719
792
|
ITEM_LABEL: '.c-select__item-label',
|
|
720
793
|
ITEM_INPUT: '.c-select__item-input',
|
|
721
|
-
OPTION: 'option'
|
|
794
|
+
OPTION: 'option',
|
|
722
795
|
},
|
|
723
796
|
CLASSES: {
|
|
724
797
|
BASE: 'c-select',
|
|
@@ -734,8 +807,8 @@ export const SELECT = {
|
|
|
734
807
|
INVALID: 'is-invalid',
|
|
735
808
|
VALID: 'is-valid',
|
|
736
809
|
DISABLED: 'is-disabled',
|
|
737
|
-
IS_OPEN: 'is-open'
|
|
738
|
-
}
|
|
810
|
+
IS_OPEN: 'is-open',
|
|
811
|
+
},
|
|
739
812
|
};
|
|
740
813
|
|
|
741
814
|
/**
|
|
@@ -743,7 +816,7 @@ export const SELECT = {
|
|
|
743
816
|
*/
|
|
744
817
|
export const TEXTAREA = {
|
|
745
818
|
SELECTORS: {
|
|
746
|
-
TEXTAREA: '.c-textarea'
|
|
819
|
+
TEXTAREA: '.c-textarea',
|
|
747
820
|
},
|
|
748
821
|
CLASSES: {
|
|
749
822
|
BASE: 'c-input c-input--textarea',
|
|
@@ -751,8 +824,8 @@ export const TEXTAREA = {
|
|
|
751
824
|
LARGE: 'c-input--lg',
|
|
752
825
|
INVALID: 'is-invalid',
|
|
753
826
|
VALID: 'is-valid',
|
|
754
|
-
DISABLED: 'is-disabled'
|
|
755
|
-
}
|
|
827
|
+
DISABLED: 'is-disabled',
|
|
828
|
+
},
|
|
756
829
|
};
|
|
757
830
|
|
|
758
831
|
/**
|
|
@@ -763,7 +836,7 @@ export const AVATAR = {
|
|
|
763
836
|
AVATAR: '.c-avatar',
|
|
764
837
|
IMAGE: '.c-avatar__image',
|
|
765
838
|
INITIALS: '.c-avatar__initials',
|
|
766
|
-
ICON: '.c-avatar__icon'
|
|
839
|
+
ICON: '.c-avatar__icon',
|
|
767
840
|
},
|
|
768
841
|
CLASSES: {
|
|
769
842
|
BASE: 'c-avatar',
|
|
@@ -772,8 +845,8 @@ export const AVATAR = {
|
|
|
772
845
|
MD: 'c-avatar--md',
|
|
773
846
|
LG: 'c-avatar--lg',
|
|
774
847
|
XL: 'c-avatar--xl',
|
|
775
|
-
CIRCLE: 'c-avatar--circle'
|
|
776
|
-
}
|
|
848
|
+
CIRCLE: 'c-avatar--circle',
|
|
849
|
+
},
|
|
777
850
|
};
|
|
778
851
|
|
|
779
852
|
/**
|
|
@@ -782,13 +855,13 @@ export const AVATAR = {
|
|
|
782
855
|
export const AVATAR_GROUP = {
|
|
783
856
|
SELECTORS: {
|
|
784
857
|
GROUP: '.c-avatar-group',
|
|
785
|
-
MORE: '.c-avatar-group__more'
|
|
858
|
+
MORE: '.c-avatar-group__more',
|
|
786
859
|
},
|
|
787
860
|
CLASSES: {
|
|
788
861
|
BASE: 'c-avatar-group',
|
|
789
862
|
STACKED: 'c-avatar-group--stacked',
|
|
790
|
-
MORE: 'c-avatar-group__more'
|
|
791
|
-
}
|
|
863
|
+
MORE: 'c-avatar-group__more',
|
|
864
|
+
},
|
|
792
865
|
};
|
|
793
866
|
|
|
794
867
|
/**
|
|
@@ -800,10 +873,10 @@ export const MODAL = {
|
|
|
800
873
|
OPEN_BUTTON: '.js-modal-open',
|
|
801
874
|
CLOSE_BUTTONS: '.js-modal-close',
|
|
802
875
|
DIALOG: '.c-modal__dialog',
|
|
803
|
-
BACKDROP: '.c-modal__backdrop'
|
|
876
|
+
BACKDROP: '.c-modal__backdrop',
|
|
804
877
|
},
|
|
805
878
|
CLASSES: {
|
|
806
|
-
IS_OPEN: 'is-open'
|
|
879
|
+
IS_OPEN: 'is-open',
|
|
807
880
|
},
|
|
808
881
|
DEFAULT_OPTIONS: {
|
|
809
882
|
openELm: '.js-modal-open',
|
|
@@ -811,8 +884,8 @@ export const MODAL = {
|
|
|
811
884
|
modalDialogELm: '.c-modal__dialog',
|
|
812
885
|
backdropELm: '.c-modal__backdrop',
|
|
813
886
|
backdrop: true,
|
|
814
|
-
keyboard: true
|
|
815
|
-
}
|
|
887
|
+
keyboard: true,
|
|
888
|
+
},
|
|
816
889
|
};
|
|
817
890
|
|
|
818
891
|
/**
|
|
@@ -869,12 +942,12 @@ export const DROPDOWN = {
|
|
|
869
942
|
MENU_INNER: '.c-dropdown__menu-inner',
|
|
870
943
|
MENU_ITEM: '.c-dropdown__menu-item',
|
|
871
944
|
DIVIDER: '.c-dropdown__divider',
|
|
872
|
-
HEADER: '.c-dropdown__header'
|
|
945
|
+
HEADER: '.c-dropdown__header',
|
|
873
946
|
},
|
|
874
947
|
CLASSES: {
|
|
875
948
|
IS_OPEN: 'is-open',
|
|
876
949
|
IS_ACTIVE: 'is-active',
|
|
877
|
-
IS_DISABLED: 'is-disabled'
|
|
950
|
+
IS_DISABLED: 'is-disabled',
|
|
878
951
|
},
|
|
879
952
|
DEFAULTS: {
|
|
880
953
|
PLACEMENT: 'bottom-start',
|
|
@@ -882,8 +955,8 @@ export const DROPDOWN = {
|
|
|
882
955
|
OFFSET: 4,
|
|
883
956
|
MIN_WIDTH: 180,
|
|
884
957
|
ANIMATION_DURATION: '0.25s',
|
|
885
|
-
ANIMATION_TIMING: 'cubic-bezier(0.16, 1, 0.3, 1)'
|
|
886
|
-
}
|
|
958
|
+
ANIMATION_TIMING: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
959
|
+
},
|
|
887
960
|
};
|
|
888
961
|
|
|
889
962
|
/**
|
|
@@ -915,7 +988,7 @@ export const PROGRESS = {
|
|
|
915
988
|
},
|
|
916
989
|
DEFAULTS: {
|
|
917
990
|
ARIA_LABEL: 'Progress bar',
|
|
918
|
-
}
|
|
991
|
+
},
|
|
919
992
|
};
|
|
920
993
|
|
|
921
994
|
export const DATEPICKER = {
|
|
@@ -934,14 +1007,14 @@ export const DATEPICKER = {
|
|
|
934
1007
|
CLEAR_BUTTON: '.c-datepicker__clear-button',
|
|
935
1008
|
CLOSE_BUTTON: '.c-datepicker__close-button',
|
|
936
1009
|
NAV_BUTTON: '.c-datepicker__nav-button',
|
|
937
|
-
VIEW_SWITCH: '.c-datepicker__view-switch'
|
|
1010
|
+
VIEW_SWITCH: '.c-datepicker__view-switch',
|
|
938
1011
|
},
|
|
939
1012
|
CLASSES: {
|
|
940
1013
|
IS_OPEN: 'is-open',
|
|
941
1014
|
IS_DISABLED: 'is-disabled',
|
|
942
1015
|
IS_SELECTED: 'is-selected',
|
|
943
1016
|
IS_TODAY: 'is-today',
|
|
944
|
-
INLINE: 'c-datepicker--inline'
|
|
1017
|
+
INLINE: 'c-datepicker--inline',
|
|
945
1018
|
},
|
|
946
1019
|
ATTRIBUTES: {
|
|
947
1020
|
FORMAT: 'data-format',
|
|
@@ -951,7 +1024,7 @@ export const DATEPICKER = {
|
|
|
951
1024
|
PLACEMENT: 'data-placement',
|
|
952
1025
|
CLEARABLE: 'data-clearable',
|
|
953
1026
|
SHOW_TODAY: 'data-show-today-button',
|
|
954
|
-
SHOW_WEEK_NUMBERS: 'data-show-week-numbers'
|
|
1027
|
+
SHOW_WEEK_NUMBERS: 'data-show-week-numbers',
|
|
955
1028
|
},
|
|
956
1029
|
DEFAULTS: {
|
|
957
1030
|
FORMAT: 'MM/dd/yyyy',
|
|
@@ -959,8 +1032,8 @@ export const DATEPICKER = {
|
|
|
959
1032
|
CLEARABLE: true,
|
|
960
1033
|
SHOW_TODAY_BUTTON: true,
|
|
961
1034
|
SHOW_WEEK_NUMBERS: false,
|
|
962
|
-
INLINE: false
|
|
963
|
-
}
|
|
1035
|
+
INLINE: false,
|
|
1036
|
+
},
|
|
964
1037
|
};
|
|
965
1038
|
|
|
966
1039
|
/**
|