kdutify 0.16.9-rc.0
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/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/kdutify.css +12850 -0
- package/dist/kdutify.css.map +1 -0
- package/dist/kdutify.js +16285 -0
- package/dist/kdutify.js.map +1 -0
- package/dist/kdutify.min.css +7 -0
- package/dist/kdutify.min.css.map +1 -0
- package/dist/kdutify.min.js +6 -0
- package/es5/components/KAlert/KAlert.js +80 -0
- package/es5/components/KAlert/index.js +7 -0
- package/es5/components/KApp/KApp.js +67 -0
- package/es5/components/KApp/index.js +7 -0
- package/es5/components/KAvatar/KAvatar.js +31 -0
- package/es5/components/KAvatar/index.js +7 -0
- package/es5/components/KBadge/KBadge.js +59 -0
- package/es5/components/KBadge/index.js +7 -0
- package/es5/components/KBottomNav/KBottomNav.js +50 -0
- package/es5/components/KBottomNav/index.js +7 -0
- package/es5/components/KBottomSheet/KBottomSheet.js +36 -0
- package/es5/components/KBottomSheet/index.js +7 -0
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js +36 -0
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
- package/es5/components/KBreadcrumbs/index.js +11 -0
- package/es5/components/KBtn/KBtn.js +153 -0
- package/es5/components/KBtn/index.js +7 -0
- package/es5/components/KBtnToggle/KBtnToggle.js +92 -0
- package/es5/components/KBtnToggle/index.js +7 -0
- package/es5/components/KCard/KCard.js +63 -0
- package/es5/components/KCard/KCardMedia.js +41 -0
- package/es5/components/KCard/KCardTitle.js +21 -0
- package/es5/components/KCard/index.js +19 -0
- package/es5/components/KCarousel/KCarousel.js +178 -0
- package/es5/components/KCarousel/KCarouselItem.js +63 -0
- package/es5/components/KCarousel/index.js +11 -0
- package/es5/components/KCheckbox/KCheckbox.js +89 -0
- package/es5/components/KCheckbox/index.js +7 -0
- package/es5/components/KChip/KChip.js +81 -0
- package/es5/components/KChip/index.js +7 -0
- package/es5/components/KDataTable/KDataTable.js +347 -0
- package/es5/components/KDataTable/KEditDialog.js +108 -0
- package/es5/components/KDataTable/index.js +14 -0
- package/es5/components/KDataTable/mixins/body.js +103 -0
- package/es5/components/KDataTable/mixins/foot.js +118 -0
- package/es5/components/KDataTable/mixins/head.js +123 -0
- package/es5/components/KDataTable/mixins/progress.js +16 -0
- package/es5/components/KDatePicker/KDatePicker.js +416 -0
- package/es5/components/KDatePicker/index.js +7 -0
- package/es5/components/KDatePicker/mixins/date-header.js +68 -0
- package/es5/components/KDatePicker/mixins/date-table.js +101 -0
- package/es5/components/KDatePicker/mixins/date-title.js +64 -0
- package/es5/components/KDatePicker/mixins/date-years.js +53 -0
- package/es5/components/KDatePicker/mixins/month-table.js +91 -0
- package/es5/components/KDialog/KDialog.js +181 -0
- package/es5/components/KDialog/index.js +7 -0
- package/es5/components/KDivider/KDivider.js +29 -0
- package/es5/components/KDivider/index.js +7 -0
- package/es5/components/KExpansionPanel/KExpansionPanel.js +60 -0
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js +114 -0
- package/es5/components/KExpansionPanel/index.js +9 -0
- package/es5/components/KFooter/KFooter.js +61 -0
- package/es5/components/KFooter/index.js +7 -0
- package/es5/components/KForm/KForm.js +203 -0
- package/es5/components/KForm/index.js +7 -0
- package/es5/components/KGrid/KContainer.js +5 -0
- package/es5/components/KGrid/KContent.js +33 -0
- package/es5/components/KGrid/KFlex.js +5 -0
- package/es5/components/KGrid/KLayout.js +5 -0
- package/es5/components/KGrid/grid.js +43 -0
- package/es5/components/KGrid/index.js +20 -0
- package/es5/components/KIcon/KIcon.js +93 -0
- package/es5/components/KIcon/index.js +7 -0
- package/es5/components/KList/KList.js +82 -0
- package/es5/components/KList/KListGroup.js +100 -0
- package/es5/components/KList/KListTile.js +65 -0
- package/es5/components/KList/KListTileAction.js +15 -0
- package/es5/components/KList/index.js +27 -0
- package/es5/components/KMenu/KMenu.js +178 -0
- package/es5/components/KMenu/index.js +7 -0
- package/es5/components/KMenu/mixins/menu-activator.js +59 -0
- package/es5/components/KMenu/mixins/menu-generators.js +88 -0
- package/es5/components/KMenu/mixins/menu-keyable.js +64 -0
- package/es5/components/KMenu/mixins/menu-position.js +64 -0
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js +238 -0
- package/es5/components/KNavigationDrawer/index.js +7 -0
- package/es5/components/KPagination/KPagination.js +167 -0
- package/es5/components/KPagination/index.js +7 -0
- package/es5/components/KParallax/KParallax.js +98 -0
- package/es5/components/KParallax/index.js +7 -0
- package/es5/components/KProgressCircular/KProgressCircular.js +145 -0
- package/es5/components/KProgressCircular/index.js +7 -0
- package/es5/components/KProgressLinear/KProgressLinear.js +146 -0
- package/es5/components/KProgressLinear/index.js +7 -0
- package/es5/components/KRadioGroup/KRadio.js +148 -0
- package/es5/components/KRadioGroup/KRadioGroup.js +139 -0
- package/es5/components/KRadioGroup/index.js +11 -0
- package/es5/components/KSelect/KSelect.js +635 -0
- package/es5/components/KSelect/index.js +7 -0
- package/es5/components/KSelect/mixins/select-autocomplete.js +125 -0
- package/es5/components/KSelect/mixins/select-generators.js +298 -0
- package/es5/components/KSlider/KSlider.js +306 -0
- package/es5/components/KSlider/index.js +7 -0
- package/es5/components/KSnackbar/KSnackbar.js +106 -0
- package/es5/components/KSnackbar/index.js +7 -0
- package/es5/components/KSpeedDial/KSpeedDial.js +89 -0
- package/es5/components/KSpeedDial/index.js +7 -0
- package/es5/components/KStepper/KStepper.js +112 -0
- package/es5/components/KStepper/KStepperContent.js +134 -0
- package/es5/components/KStepper/KStepperStep.js +105 -0
- package/es5/components/KStepper/index.js +17 -0
- package/es5/components/KSubheader/KSubheader.js +29 -0
- package/es5/components/KSubheader/index.js +7 -0
- package/es5/components/KSwitch/KSwitch.js +55 -0
- package/es5/components/KSwitch/index.js +7 -0
- package/es5/components/KSystemBar/KSystemBar.js +54 -0
- package/es5/components/KSystemBar/index.js +7 -0
- package/es5/components/KTabs/KTabs.js +272 -0
- package/es5/components/KTabs/KTabsBar.js +205 -0
- package/es5/components/KTabs/KTabsContent.js +86 -0
- package/es5/components/KTabs/KTabsItem.js +103 -0
- package/es5/components/KTabs/KTabsItems.js +40 -0
- package/es5/components/KTabs/KTabsSlider.js +14 -0
- package/es5/components/KTabs/index.js +17 -0
- package/es5/components/KTextField/KTextField.js +275 -0
- package/es5/components/KTextField/index.js +7 -0
- package/es5/components/KTimePicker/KTimePicker.js +302 -0
- package/es5/components/KTimePicker/index.js +7 -0
- package/es5/components/KTimePicker/mixins/time-body.js +207 -0
- package/es5/components/KTimePicker/mixins/time-title.js +55 -0
- package/es5/components/KToolbar/KToolbar.js +193 -0
- package/es5/components/KToolbar/KToolbarSideIcon.js +29 -0
- package/es5/components/KToolbar/index.js +17 -0
- package/es5/components/KTooltip/KTooltip.js +156 -0
- package/es5/components/KTooltip/index.js +7 -0
- package/es5/components/Kdutify/index.js +50 -0
- package/es5/components/index.js +45 -0
- package/es5/components/transitions/expand-transition.js +36 -0
- package/es5/components/transitions/index.js +47 -0
- package/es5/components/transitions/row-expand-transition.js +38 -0
- package/es5/directives/click-outside.js +100 -0
- package/es5/directives/index.js +15 -0
- package/es5/directives/resize.js +30 -0
- package/es5/directives/ripple.js +144 -0
- package/es5/directives/scroll.js +32 -0
- package/es5/directives/touch.js +102 -0
- package/es5/index.js +30 -0
- package/es5/mixins/applicationable.js +9 -0
- package/es5/mixins/bootable.js +31 -0
- package/es5/mixins/button-group.js +82 -0
- package/es5/mixins/colorable.js +24 -0
- package/es5/mixins/contextualable.js +10 -0
- package/es5/mixins/delayable.js +57 -0
- package/es5/mixins/dependent.js +121 -0
- package/es5/mixins/detachable.js +41 -0
- package/es5/mixins/filterable.js +8 -0
- package/es5/mixins/input.js +219 -0
- package/es5/mixins/loadable.js +31 -0
- package/es5/mixins/maskable.js +181 -0
- package/es5/mixins/menuable.js +293 -0
- package/es5/mixins/overlayable.js +202 -0
- package/es5/mixins/picker.js +36 -0
- package/es5/mixins/positionable.js +10 -0
- package/es5/mixins/rippleable.js +21 -0
- package/es5/mixins/routable.js +66 -0
- package/es5/mixins/selectable.js +79 -0
- package/es5/mixins/stackable.js +70 -0
- package/es5/mixins/tab-focusable.js +7 -0
- package/es5/mixins/themeable.js +15 -0
- package/es5/mixins/toggleable.js +31 -0
- package/es5/mixins/transitionable.js +7 -0
- package/es5/mixins/translatable.js +62 -0
- package/es5/mixins/validatable.js +138 -0
- package/es5/util/breakpoint.js +128 -0
- package/es5/util/helpers.js +139 -0
- package/es5/util/load.js +15 -0
- package/es5/util/mask.js +159 -0
- package/es5/util/testing.js +160 -0
- package/es5/util/to-have-been-warned.js +117 -0
- package/es5/util/touchSupport.js +14 -0
- package/index.d.ts +8 -0
- package/package.json +134 -0
- package/src/components/KAlert/KAlert.js +77 -0
- package/src/components/KAlert/index.js +7 -0
- package/src/components/KApp/KApp.js +64 -0
- package/src/components/KApp/index.js +7 -0
- package/src/components/KAvatar/KAvatar.js +27 -0
- package/src/components/KAvatar/index.js +7 -0
- package/src/components/KBadge/KBadge.js +62 -0
- package/src/components/KBadge/index.js +7 -0
- package/src/components/KBottomNav/KBottomNav.js +50 -0
- package/src/components/KBottomNav/index.js +7 -0
- package/src/components/KBottomSheet/KBottomSheet.js +41 -0
- package/src/components/KBottomSheet/index.js +7 -0
- package/src/components/KBreadcrumbs/KBreadcrumbs.js +35 -0
- package/src/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
- package/src/components/KBreadcrumbs/index.js +11 -0
- package/src/components/KBtn/KBtn.js +163 -0
- package/src/components/KBtn/index.js +7 -0
- package/src/components/KBtnToggle/KBtnToggle.js +92 -0
- package/src/components/KBtnToggle/index.js +7 -0
- package/src/components/KCard/KCard.js +61 -0
- package/src/components/KCard/KCardMedia.js +41 -0
- package/src/components/KCard/KCardTitle.js +17 -0
- package/src/components/KCard/index.js +19 -0
- package/src/components/KCarousel/KCarousel.js +174 -0
- package/src/components/KCarousel/KCarouselItem.js +65 -0
- package/src/components/KCarousel/index.js +11 -0
- package/src/components/KCheckbox/KCheckbox.js +92 -0
- package/src/components/KCheckbox/index.js +7 -0
- package/src/components/KChip/KChip.js +83 -0
- package/src/components/KChip/index.js +7 -0
- package/src/components/KDataTable/KDataTable.js +346 -0
- package/src/components/KDataTable/KEditDialog.js +110 -0
- package/src/components/KDataTable/index.js +16 -0
- package/src/components/KDataTable/mixins/body.js +98 -0
- package/src/components/KDataTable/mixins/foot.js +128 -0
- package/src/components/KDataTable/mixins/head.js +119 -0
- package/src/components/KDataTable/mixins/progress.js +16 -0
- package/src/components/KDatePicker/KDatePicker.js +382 -0
- package/src/components/KDatePicker/index.js +7 -0
- package/src/components/KDatePicker/mixins/date-header.js +74 -0
- package/src/components/KDatePicker/mixins/date-table.js +95 -0
- package/src/components/KDatePicker/mixins/date-title.js +76 -0
- package/src/components/KDatePicker/mixins/date-years.js +42 -0
- package/src/components/KDatePicker/mixins/month-table.js +82 -0
- package/src/components/KDialog/KDialog.js +184 -0
- package/src/components/KDialog/index.js +7 -0
- package/src/components/KDivider/KDivider.js +25 -0
- package/src/components/KDivider/index.js +7 -0
- package/src/components/KExpansionPanel/KExpansionPanel.js +55 -0
- package/src/components/KExpansionPanel/KExpansionPanelContent.js +112 -0
- package/src/components/KExpansionPanel/index.js +9 -0
- package/src/components/KFooter/KFooter.js +67 -0
- package/src/components/KFooter/index.js +7 -0
- package/src/components/KForm/KForm.js +117 -0
- package/src/components/KForm/index.js +7 -0
- package/src/components/KGrid/KContainer.js +5 -0
- package/src/components/KGrid/KContent.js +29 -0
- package/src/components/KGrid/KFlex.js +5 -0
- package/src/components/KGrid/KLayout.js +5 -0
- package/src/components/KGrid/grid.js +40 -0
- package/src/components/KGrid/index.js +27 -0
- package/src/components/KIcon/KIcon.js +87 -0
- package/src/components/KIcon/index.js +7 -0
- package/src/components/KList/KList.js +75 -0
- package/src/components/KList/KListGroup.js +95 -0
- package/src/components/KList/KListTile.js +62 -0
- package/src/components/KList/KListTileAction.js +12 -0
- package/src/components/KList/index.js +27 -0
- package/src/components/KMenu/KMenu.js +207 -0
- package/src/components/KMenu/index.js +7 -0
- package/src/components/KMenu/mixins/menu-activator.js +51 -0
- package/src/components/KMenu/mixins/menu-generators.js +84 -0
- package/src/components/KMenu/mixins/menu-keyable.js +68 -0
- package/src/components/KMenu/mixins/menu-position.js +72 -0
- package/src/components/KNavigationDrawer/KNavigationDrawer.js +267 -0
- package/src/components/KNavigationDrawer/index.js +7 -0
- package/src/components/KPagination/KPagination.js +168 -0
- package/src/components/KPagination/index.js +7 -0
- package/src/components/KParallax/KParallax.js +99 -0
- package/src/components/KParallax/index.js +7 -0
- package/src/components/KProgressCircular/KProgressCircular.js +160 -0
- package/src/components/KProgressCircular/index.js +7 -0
- package/src/components/KProgressLinear/KProgressLinear.js +157 -0
- package/src/components/KProgressLinear/index.js +7 -0
- package/src/components/KRadioGroup/KRadio.js +153 -0
- package/src/components/KRadioGroup/KRadioGroup.js +118 -0
- package/src/components/KRadioGroup/index.js +11 -0
- package/src/components/KSelect/KSelect.js +641 -0
- package/src/components/KSelect/index.js +7 -0
- package/src/components/KSelect/mixins/select-autocomplete.js +125 -0
- package/src/components/KSelect/mixins/select-generators.js +300 -0
- package/src/components/KSlider/KSlider.js +311 -0
- package/src/components/KSlider/index.js +7 -0
- package/src/components/KSnackbar/KSnackbar.js +97 -0
- package/src/components/KSnackbar/index.js +7 -0
- package/src/components/KSpeedDial/KSpeedDial.js +80 -0
- package/src/components/KSpeedDial/index.js +7 -0
- package/src/components/KStepper/KStepper.js +95 -0
- package/src/components/KStepper/KStepperContent.js +138 -0
- package/src/components/KStepper/KStepperStep.js +100 -0
- package/src/components/KStepper/index.js +17 -0
- package/src/components/KSubheader/KSubheader.js +25 -0
- package/src/components/KSubheader/index.js +7 -0
- package/src/components/KSwitch/KSwitch.js +58 -0
- package/src/components/KSwitch/index.js +7 -0
- package/src/components/KSystemBar/KSystemBar.js +54 -0
- package/src/components/KSystemBar/index.js +7 -0
- package/src/components/KTabs/KTabs.js +240 -0
- package/src/components/KTabs/KTabsBar.js +202 -0
- package/src/components/KTabs/KTabsContent.js +90 -0
- package/src/components/KTabs/KTabsItem.js +99 -0
- package/src/components/KTabs/KTabsItems.js +40 -0
- package/src/components/KTabs/KTabsSlider.js +14 -0
- package/src/components/KTabs/index.js +17 -0
- package/src/components/KTextField/KTextField.js +246 -0
- package/src/components/KTextField/index.js +7 -0
- package/src/components/KTimePicker/KTimePicker.js +282 -0
- package/src/components/KTimePicker/index.js +7 -0
- package/src/components/KTimePicker/mixins/time-body.js +208 -0
- package/src/components/KTimePicker/mixins/time-title.js +51 -0
- package/src/components/KToolbar/KToolbar.js +206 -0
- package/src/components/KToolbar/KToolbarSideIcon.js +26 -0
- package/src/components/KToolbar/index.js +19 -0
- package/src/components/KTooltip/KTooltip.js +161 -0
- package/src/components/KTooltip/index.js +7 -0
- package/src/components/Kdutify/index.js +48 -0
- package/src/components/index.js +45 -0
- package/src/components/transitions/expand-transition.js +34 -0
- package/src/components/transitions/index.js +50 -0
- package/src/components/transitions/row-expand-transition.js +38 -0
- package/src/directives/click-outside.js +72 -0
- package/src/directives/index.js +21 -0
- package/src/directives/resize.js +30 -0
- package/src/directives/ripple.js +120 -0
- package/src/directives/scroll.js +31 -0
- package/src/directives/touch.js +90 -0
- package/src/index.js +30 -0
- package/src/mixins/applicationable.js +9 -0
- package/src/mixins/bootable.js +31 -0
- package/src/mixins/button-group.js +77 -0
- package/src/mixins/colorable.js +20 -0
- package/src/mixins/contextualable.js +10 -0
- package/src/mixins/delayable.js +54 -0
- package/src/mixins/dependent.js +55 -0
- package/src/mixins/detachable.js +44 -0
- package/src/mixins/filterable.js +8 -0
- package/src/mixins/input.js +220 -0
- package/src/mixins/loadable.js +33 -0
- package/src/mixins/maskable.js +117 -0
- package/src/mixins/menuable.js +299 -0
- package/src/mixins/overlayable.js +180 -0
- package/src/mixins/picker.js +35 -0
- package/src/mixins/positionable.js +10 -0
- package/src/mixins/rippleable.js +21 -0
- package/src/mixins/routable.js +66 -0
- package/src/mixins/selectable.js +84 -0
- package/src/mixins/stackable.js +44 -0
- package/src/mixins/tab-focusable.js +7 -0
- package/src/mixins/themeable.js +15 -0
- package/src/mixins/toggleable.js +28 -0
- package/src/mixins/transitionable.js +7 -0
- package/src/mixins/translatable.js +67 -0
- package/src/mixins/validatable.js +124 -0
- package/src/stylus/app.styl +6 -0
- package/src/stylus/bootstrap.styl +1 -0
- package/src/stylus/components/_alerts.styl +44 -0
- package/src/stylus/components/_app.styl +21 -0
- package/src/stylus/components/_avatars.styl +22 -0
- package/src/stylus/components/_badges.styl +49 -0
- package/src/stylus/components/_bottom-navs.styl +86 -0
- package/src/stylus/components/_bottom-sheets.styl +18 -0
- package/src/stylus/components/_breadcrumbs.styl +46 -0
- package/src/stylus/components/_button-toggle.styl +55 -0
- package/src/stylus/components/_buttons.styl +339 -0
- package/src/stylus/components/_cards.styl +85 -0
- package/src/stylus/components/_carousel.styl +76 -0
- package/src/stylus/components/_chips.styl +102 -0
- package/src/stylus/components/_content.styl +6 -0
- package/src/stylus/components/_data-table.styl +113 -0
- package/src/stylus/components/_date-picker.styl +214 -0
- package/src/stylus/components/_dialogs.styl +63 -0
- package/src/stylus/components/_dividers.styl +19 -0
- package/src/stylus/components/_expansion-panel.styl +85 -0
- package/src/stylus/components/_footer.styl +40 -0
- package/src/stylus/components/_grid.styl +171 -0
- package/src/stylus/components/_icons.styl +32 -0
- package/src/stylus/components/_input-groups.styl +310 -0
- package/src/stylus/components/_lists.styl +263 -0
- package/src/stylus/components/_menus.styl +87 -0
- package/src/stylus/components/_navigation-drawer.styl +150 -0
- package/src/stylus/components/_overlay.styl +42 -0
- package/src/stylus/components/_pagination.styl +95 -0
- package/src/stylus/components/_parallax.styl +35 -0
- package/src/stylus/components/_pickers.styl +66 -0
- package/src/stylus/components/_progress-circular.styl +58 -0
- package/src/stylus/components/_progress-linear.styl +104 -0
- package/src/stylus/components/_radio-group.styl +23 -0
- package/src/stylus/components/_ripples.styl +31 -0
- package/src/stylus/components/_select.styl +153 -0
- package/src/stylus/components/_selection-controls.styl +122 -0
- package/src/stylus/components/_sliders.styl +234 -0
- package/src/stylus/components/_small-dialog.styl +37 -0
- package/src/stylus/components/_snackbars.styl +110 -0
- package/src/stylus/components/_speed-dial.styl +78 -0
- package/src/stylus/components/_steppers.styl +216 -0
- package/src/stylus/components/_subheaders.styl +18 -0
- package/src/stylus/components/_switch.styl +89 -0
- package/src/stylus/components/_system-bars.styl +49 -0
- package/src/stylus/components/_tables.styl +103 -0
- package/src/stylus/components/_tabs.styl +159 -0
- package/src/stylus/components/_text-fields.styl +243 -0
- package/src/stylus/components/_time-picker.styl +199 -0
- package/src/stylus/components/_toolbar.styl +148 -0
- package/src/stylus/components/_tooltips.styl +25 -0
- package/src/stylus/elements/_blockquote.styl +5 -0
- package/src/stylus/elements/_code.styl +20 -0
- package/src/stylus/elements/_global.styl +31 -0
- package/src/stylus/elements/_headings.styl +17 -0
- package/src/stylus/elements/_lists.styl +2 -0
- package/src/stylus/elements/_typography.styl +54 -0
- package/src/stylus/generic/_bootstrap.styl +49 -0
- package/src/stylus/generic/_reset.styl +332 -0
- package/src/stylus/generic/_transitions.styl +116 -0
- package/src/stylus/main.styl +2 -0
- package/src/stylus/settings/_colors.styl +339 -0
- package/src/stylus/settings/_elevations.styl +111 -0
- package/src/stylus/settings/_theme.styl +201 -0
- package/src/stylus/settings/_variables.styl +396 -0
- package/src/stylus/theme.styl +24 -0
- package/src/stylus/tools/_animations.styl +9 -0
- package/src/stylus/tools/_colors.styl +17 -0
- package/src/stylus/tools/_elevations.styl +7 -0
- package/src/stylus/trumps/_display.styl +14 -0
- package/src/stylus/trumps/_helpers.styl +5 -0
- package/src/stylus/trumps/_spacing.styl +37 -0
- package/src/stylus/trumps/_text.styl +13 -0
- package/src/util/breakpoint.js +134 -0
- package/src/util/helpers.d.ts +21 -0
- package/src/util/helpers.js +125 -0
- package/src/util/load.js +13 -0
- package/src/util/mask.js +138 -0
- package/src/util/testing.js +154 -0
- package/src/util/to-have-been-warned.js +68 -0
- package/src/util/touchSupport.js +12 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
@require './_theme'
|
|
2
|
+
|
|
3
|
+
// ============================================================
|
|
4
|
+
// Kdutify variables
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
$color-pack := true
|
|
8
|
+
|
|
9
|
+
// Material Design
|
|
10
|
+
// ============================================================
|
|
11
|
+
$material-left-padding := 16px
|
|
12
|
+
$material-right-padding := 16px
|
|
13
|
+
|
|
14
|
+
// Grid
|
|
15
|
+
// ============================================================
|
|
16
|
+
$grid-breakpoints := {
|
|
17
|
+
xs: 0
|
|
18
|
+
sm: 600px
|
|
19
|
+
md: 960px
|
|
20
|
+
lg: (1280px - 16px) // Desktop gets a 16dp reduction
|
|
21
|
+
xl: (1920px - 16px) // https://material.io/guidelines/layout/responsive-ui.html#responsive-ui-breakpoints
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$grid-gutter = 8px
|
|
25
|
+
$grid-columns := 12
|
|
26
|
+
$grid-gutters := {
|
|
27
|
+
xs: ($grid-gutter / 4)
|
|
28
|
+
sm: ($grid-gutter / 2)
|
|
29
|
+
md: $grid-gutter
|
|
30
|
+
lg: ($grid-gutter * 2)
|
|
31
|
+
xl: ($grid-gutter * 3)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
$container-max-widths := {
|
|
35
|
+
sm: $grid-breakpoints.sm
|
|
36
|
+
md: $grid-breakpoints.md
|
|
37
|
+
lg: $grid-breakpoints.lg
|
|
38
|
+
xl: $grid-breakpoints.xl
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// Display
|
|
43
|
+
// ============================================================
|
|
44
|
+
$display-breakpoints := {
|
|
45
|
+
xs-only: "only screen and (max-width: %s)" % ($grid-breakpoints.sm - 1)
|
|
46
|
+
sm-only: "only screen and (min-width: %s) and (max-width: %s)" % ($grid-breakpoints.sm ($grid-breakpoints.md - 1))
|
|
47
|
+
sm-and-down: "only screen and (max-width: %s)" % ($grid-breakpoints.md - 1)
|
|
48
|
+
sm-and-up: "only screen and (min-width: %s)" % $grid-breakpoints.sm
|
|
49
|
+
md-only: "only screen and (min-width: %s) and (max-width: %s)" % ($grid-breakpoints.md ($grid-breakpoints.lg - 1))
|
|
50
|
+
md-and-down: "only screen and (max-width: %s )" % ($grid-breakpoints.lg - 1)
|
|
51
|
+
md-and-up: "only screen and (min-width: %s)" % $grid-breakpoints.md
|
|
52
|
+
lg-only: "only screen and (min-width: %s) and (max-width: %s)" % ($grid-breakpoints.lg ($grid-breakpoints.xl - 1))
|
|
53
|
+
lg-and-down: "only screen and (max-width: (%s - 1))" % $grid-breakpoints.xl
|
|
54
|
+
lg-and-up: "only screen and (min-width: %s)" % $grid-breakpoints.lg
|
|
55
|
+
xl-only: "only screen and (min-width: %s)" % $grid-breakpoints.xl
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// Spacing
|
|
60
|
+
// ============================================================
|
|
61
|
+
$spacer := 16px
|
|
62
|
+
$spacer-x := $spacer
|
|
63
|
+
$spacer-y := $spacer
|
|
64
|
+
$spacers := {
|
|
65
|
+
zero: {
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0
|
|
68
|
+
},
|
|
69
|
+
one: {
|
|
70
|
+
x: ($spacer-x * .25),
|
|
71
|
+
y: ($spacer-y * .25)
|
|
72
|
+
},
|
|
73
|
+
two: {
|
|
74
|
+
x: ($spacer-x * .5),
|
|
75
|
+
y: ($spacer-y * .5)
|
|
76
|
+
},
|
|
77
|
+
three: {
|
|
78
|
+
x: $spacer-x,
|
|
79
|
+
y: $spacer-y
|
|
80
|
+
},
|
|
81
|
+
four: {
|
|
82
|
+
x: ($spacer-x * 1.5),
|
|
83
|
+
y: ($spacer-y * 1.5)
|
|
84
|
+
},
|
|
85
|
+
five: {
|
|
86
|
+
x: ($spacer-x * 3),
|
|
87
|
+
y: ($spacer-y * 3)
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
$font-weights := {
|
|
92
|
+
thin: 100,
|
|
93
|
+
light: 300,
|
|
94
|
+
regular: 400,
|
|
95
|
+
medium: 500,
|
|
96
|
+
bold: 700,
|
|
97
|
+
black: 900
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Headings
|
|
101
|
+
// ============================================================
|
|
102
|
+
$heading-color := $theme.secondary
|
|
103
|
+
$headings := {
|
|
104
|
+
h1: { size: 112px, weight: 300, line-height: 1, letter-spacing: -.04em },
|
|
105
|
+
h2: { size: 56px, weight: 400, line-height: 1.35, letter-spacing: -.02em },
|
|
106
|
+
h3: { size: 45px, weight: 400, line-height: 48px, letter-spacing: normal },
|
|
107
|
+
h4: { size: 34px, weight: 400, line-height: 40px, letter-spacing: normal },
|
|
108
|
+
h5: { size: 24px, weight: 400, line-height: 32px, letter-spacing: normal },
|
|
109
|
+
h6: { size: 20px, weight: 500, line-height: 1, letter-spacing: .02em },
|
|
110
|
+
subheading: { size: 16px, weight: 400 },
|
|
111
|
+
body-2: { size: 14px, weight: 500 },
|
|
112
|
+
body-1: { size: 14px, weight: 400 },
|
|
113
|
+
caption: { size: 12px, weight: 400 },
|
|
114
|
+
button: { size: 14px, weight: 500 }
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
// Transitions
|
|
119
|
+
$transition := {
|
|
120
|
+
fast-out-slow-in: cubic-bezier(0.4, 0.0, 0.2, 1),
|
|
121
|
+
linear-out-slow-in: cubic-bezier(0.0, 0.0, 0.2, 1),
|
|
122
|
+
fast-out-linear-in: cubic-bezier(0.4, 0.0, 1, 1),
|
|
123
|
+
ease-in-out: cubic-bezier(0.4, 0.0, 0.6, 1),
|
|
124
|
+
fast-in-fast-out: cubic-bezier(.25,.8,.25,1),
|
|
125
|
+
swing: cubic-bezier(.25,.8,.50,1)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
$primary-transition := 0.3s $transition.swing
|
|
129
|
+
$secondary-transition := 0.2s $transition.ease-in-out
|
|
130
|
+
|
|
131
|
+
// Components
|
|
132
|
+
// ============================================================
|
|
133
|
+
|
|
134
|
+
// Alerts
|
|
135
|
+
$alert-color := inherit
|
|
136
|
+
$alert-border-radius := 0
|
|
137
|
+
$alert-border-width := 4px 0 0 0
|
|
138
|
+
$alert-font-size := $font-size-root
|
|
139
|
+
$alert-icon-color := rgba($material-light.fg-color, .3)
|
|
140
|
+
$alert-icon-font-size := 24px
|
|
141
|
+
$alert-padding := 16px
|
|
142
|
+
$alert-margin := $spacers.one.y auto
|
|
143
|
+
|
|
144
|
+
// Badges
|
|
145
|
+
$badge-border-radius := 50%
|
|
146
|
+
$badge-color := $material-dark.fg-color
|
|
147
|
+
$badge-font-family := $body-font-family
|
|
148
|
+
$badge-font-size := 14px
|
|
149
|
+
$badge-height := 22px
|
|
150
|
+
$badge-top := 0
|
|
151
|
+
$badge-right := 0
|
|
152
|
+
$badge-width := 22px
|
|
153
|
+
|
|
154
|
+
// Breadcrumbs
|
|
155
|
+
$breadcrumbs-flex := 0 1 auto
|
|
156
|
+
$breadcrumbs-height := 40px
|
|
157
|
+
$breadcrumbs-item-font-size := 14px
|
|
158
|
+
$breadcrumbs-margin := 0
|
|
159
|
+
$breadcrumbs-padding := 0 14px
|
|
160
|
+
|
|
161
|
+
/** Buttons */
|
|
162
|
+
|
|
163
|
+
// Base
|
|
164
|
+
$button-border-radius := 2px
|
|
165
|
+
$button-color := $material-light.fg-color
|
|
166
|
+
$button-background-color := #999999
|
|
167
|
+
$button-height := 36px
|
|
168
|
+
$button-font-size := 14px
|
|
169
|
+
$button-font-weight := 500
|
|
170
|
+
$button-margin-y := 6px
|
|
171
|
+
$button-margin-x := 8px
|
|
172
|
+
$button-margin := $button-margin-y $button-margin-x
|
|
173
|
+
$button-min-width := 88px
|
|
174
|
+
$button-padding := 0 16px
|
|
175
|
+
$button-text-transform := uppercase
|
|
176
|
+
|
|
177
|
+
$button-dark-overlay := rgba($material-light.fg-color, .12)
|
|
178
|
+
$button-dark-disabled-color := rgba($material-light.fg-color, .3)
|
|
179
|
+
$button-light-overlay := rgba($material-dark.fg-color, .12)
|
|
180
|
+
$button-light-disabled-color := rgba($material-dark.fg-color, .26)
|
|
181
|
+
|
|
182
|
+
$button-small-height := 28px
|
|
183
|
+
$button-small-font-size := 13px
|
|
184
|
+
|
|
185
|
+
$button-large-height := 44px
|
|
186
|
+
$button-large-font-size := 15px
|
|
187
|
+
|
|
188
|
+
$button-floating-width := 56px
|
|
189
|
+
$button-floating-icon-height := 24px
|
|
190
|
+
$button-floating-icon-width := 24px
|
|
191
|
+
$button-floating-small-width := 40px
|
|
192
|
+
$button-floating-large-width := 72px
|
|
193
|
+
$button-floating-small-icon-width := 18px
|
|
194
|
+
$button-floating-large-icon-width := 30px
|
|
195
|
+
|
|
196
|
+
// Button Dropdown
|
|
197
|
+
$button-dropdown-font-size := 16px
|
|
198
|
+
$button-dropdown-font-weight := 500
|
|
199
|
+
$button-dropdown-overflow-editable-height := 42px
|
|
200
|
+
$button-dropdown-overflow-editable-min-width := 102px
|
|
201
|
+
$button-dropdown-overflow-editable-padding := 0 16px
|
|
202
|
+
$button-dropdown-border-bottom := 1px solid $material-twelve-percent-dark
|
|
203
|
+
$button-dropdown-input-width := calc(100% - 40px)
|
|
204
|
+
$button-dropdown-input-padding-left := 16px
|
|
205
|
+
$button-dropdown-background := #fff
|
|
206
|
+
|
|
207
|
+
// Card
|
|
208
|
+
$card-actions-border-top := 1px solid rgba($material-theme.fg-color, .1)
|
|
209
|
+
$card-background := $material-theme.bg-color
|
|
210
|
+
$card-padding := 16px
|
|
211
|
+
$card-border-radius := 2px
|
|
212
|
+
$card-title-text-size := 24px
|
|
213
|
+
$card-title-text-letter-spacing := 1px
|
|
214
|
+
$card-title-text-font-weight := 400
|
|
215
|
+
$card-row-min-height := 36px
|
|
216
|
+
|
|
217
|
+
// Chip
|
|
218
|
+
$chip-background := $grey.lighten-2
|
|
219
|
+
$chip-border := 1px solid $grey.lighten-2
|
|
220
|
+
$chip-border-radius := 28px
|
|
221
|
+
$chip-font-size := 13px
|
|
222
|
+
$chip-label-border-radius := $card-border-radius
|
|
223
|
+
$chip-label-color := rgba($material-light.fg-color, .87)
|
|
224
|
+
$chip-icon-font-size := 24px
|
|
225
|
+
$chip-icon-color := rgba($material-light.fg-color, .54)
|
|
226
|
+
$chip-padding := 0 12px
|
|
227
|
+
$chip-removeable-padding := 0 4px 0 12px
|
|
228
|
+
$chip-outline-background := transparent !important
|
|
229
|
+
$chip-outline-color := $grey.base
|
|
230
|
+
$chip-height := 32px
|
|
231
|
+
$chip-margin := 4px
|
|
232
|
+
$chip-small-height := 26px
|
|
233
|
+
|
|
234
|
+
// Collapsible
|
|
235
|
+
$expansion-panel-collapse-height := 48px
|
|
236
|
+
$collapsible-transition-height := 0.23s
|
|
237
|
+
|
|
238
|
+
// Footer
|
|
239
|
+
$footer-height := 36px
|
|
240
|
+
|
|
241
|
+
/** Lists */
|
|
242
|
+
// list fonts and weights */
|
|
243
|
+
$list-tile-font-size := $headings.subheading.size //16px - the mdc scss uses subheading to configure like this
|
|
244
|
+
$list-tile-font-weight := $headings.subheading.weight //400
|
|
245
|
+
$list-tile-active-color := $theme.primary
|
|
246
|
+
|
|
247
|
+
$list-action-text-font-size := 12px //this is for the stacked actions
|
|
248
|
+
$list-action-text-font-color := $grey.base
|
|
249
|
+
|
|
250
|
+
$list-sub-title-font-size := ($list-tile-font-size - 2px) //14px
|
|
251
|
+
|
|
252
|
+
$subheader-height-font-size := ($list-tile-font-size - 2px) //14px
|
|
253
|
+
$subheader-font-weight := $font-weights.medium //500
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
// list spacing*/
|
|
257
|
+
$list-left-padding := 16px
|
|
258
|
+
$list-right-padding := 16px
|
|
259
|
+
$list-top-padding := 8px
|
|
260
|
+
$list-bottom-padding := 8px
|
|
261
|
+
|
|
262
|
+
$list-item-right-margin := 56px
|
|
263
|
+
$list-item-left-padding := 72px
|
|
264
|
+
|
|
265
|
+
$list-item-single-height := 48px
|
|
266
|
+
$list-item-double-height := 72px
|
|
267
|
+
$list-item-triple-height := 88px
|
|
268
|
+
$list-item-avatar-single-height := 56px
|
|
269
|
+
|
|
270
|
+
$subheader-inset-margin := $list-item-right-margin
|
|
271
|
+
|
|
272
|
+
// list dense overrides */
|
|
273
|
+
$list-item-dense-font-size := ($list-tile-font-size - 3px) //13px
|
|
274
|
+
$subheader-dense-font-size := $list-item-dense-font-size
|
|
275
|
+
$list-item-dense-icon-font-size := 21px //weird rendering issue
|
|
276
|
+
|
|
277
|
+
$list-item-dense-top-padding := $list-top-padding / 2
|
|
278
|
+
$list-item-dense-single-height := $list-item-single-height - 8px //40px
|
|
279
|
+
$list-item-dense-double-height := $list-item-double-height - 12px //60px
|
|
280
|
+
$list-item-dense-triple-height := $list-item-triple-height - 12px //76px
|
|
281
|
+
|
|
282
|
+
$list-item-dense-avatar-single-height := $list-item-single-height //48px the dense concept was to take avatars to a normal single item height
|
|
283
|
+
$list-item-dense-avatar-height := 38px
|
|
284
|
+
|
|
285
|
+
$list-dense-subheader-height := $list-item-dense-single-height
|
|
286
|
+
$list-dense-subheader-group-height := $list-dense-subheader-height //the subheader under a group menu
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
/** Pickers */
|
|
290
|
+
$picker-width := 315px
|
|
291
|
+
$picker-title-min-height := 105px
|
|
292
|
+
$time-picker-number-font-size := 16px
|
|
293
|
+
$time-picker-number-margin := 10px
|
|
294
|
+
|
|
295
|
+
// Toolbar
|
|
296
|
+
$toolbar-height := 56px
|
|
297
|
+
$toolbar-prominent-height := 64px
|
|
298
|
+
$toolbar-extension-height := 72px
|
|
299
|
+
$toolbar-mobile-portrait-height := 56px
|
|
300
|
+
$toolbar-mobile-landscape-height := 48px
|
|
301
|
+
$toolbar-extended-height := 128px
|
|
302
|
+
$toolbar-item-padding := 0 16px
|
|
303
|
+
$toolbar-padding-y := 0
|
|
304
|
+
$toolbar-padding-x := 16px
|
|
305
|
+
|
|
306
|
+
// Progress Circular
|
|
307
|
+
$progress-circular-rotate-animation := progress-circular-rotate 1.4s linear infinite
|
|
308
|
+
$progress-circular-rotate-dash := progress-circular-dash 1.4s ease-in-out infinite
|
|
309
|
+
$process-circular-intermediate-svg-transition := all .2s ease-in-out
|
|
310
|
+
$progress-circular-underlay-stroke := rgba($material-light.fg-color, 0.1)
|
|
311
|
+
$progress-circular-overlay-transition := all .6s ease-in-out
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
/* Selection Controls */
|
|
315
|
+
$selection-switch-dark-color := rgba(#000, .38)
|
|
316
|
+
$selection-switch-dark-background := #fafafa
|
|
317
|
+
$selection-switch-dark-label-color := #424242
|
|
318
|
+
$selection-switch-dark-enabled-color := rgba($teal.base, 1)
|
|
319
|
+
$selection-switch-dark-disabled-color := rgba($grey.lighten-1, 1)
|
|
320
|
+
$selection-switch-dark-disabled-background := rgba(#000, .12)
|
|
321
|
+
|
|
322
|
+
$selection-switch-light-color := rgba(#fff, .3)
|
|
323
|
+
$selection-switch-light-background := #bdbdbd
|
|
324
|
+
$selection-switch-light-label-color := $material-dark.text-color
|
|
325
|
+
$selection-switch-light-enabled-color := rgba($teal.lighten-3, 1)
|
|
326
|
+
$selection-switch-light-disabled-color := rgba($grey.darken-3, 1)
|
|
327
|
+
$selection-switch-light-disabled-background := rgba(#fff, .1)
|
|
328
|
+
|
|
329
|
+
$selection-controls-active-color := rgba($teal.base, 1)
|
|
330
|
+
$selection-controls-light-color := rgba($material-dark.fg-color, .54)
|
|
331
|
+
$selection-controls-light-disabled-color := rgba($material-dark.fg-color, .26)
|
|
332
|
+
$selection-controls-light-label-color := $material-dark.text-color
|
|
333
|
+
|
|
334
|
+
$selection-controls-dark-color := rgba($material-light.fg-color, .70)
|
|
335
|
+
$selection-controls-dark-disabled-color := rgba($material-light.fg-color, .30)
|
|
336
|
+
$selection-controls-dark-label-color := $material-light.text-color
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/* Navigation drawer */
|
|
340
|
+
$navigation-drawer-height := 100vh
|
|
341
|
+
$navigation-drawer-background-dark := $theme.secondary
|
|
342
|
+
$navigation-drawer-background-light := $material-light.bg-color
|
|
343
|
+
|
|
344
|
+
// Sidebar Item
|
|
345
|
+
$navigation-drawer-item-font-size := 14px
|
|
346
|
+
$navigation-drawer-item-font-weight := $font-weights.medium
|
|
347
|
+
$navigation-drawer-item-active-color := $theme.primary
|
|
348
|
+
|
|
349
|
+
// Sidebar Group
|
|
350
|
+
$navigation-drawer-group-item-font-weight := $font-weights.regular
|
|
351
|
+
|
|
352
|
+
/* Slider */
|
|
353
|
+
$slider-light-off := rgba($material-dark.fg-color, .26)
|
|
354
|
+
$slider-light-focus-off := rgba($material-dark.fg-color, .38)
|
|
355
|
+
$slider-light-disabled := rgba($material-dark.fg-color, .26)
|
|
356
|
+
$slider-light-label := $material-dark.text-color
|
|
357
|
+
$slider-light-ticks := rgba($material-dark.fg-color, .6)
|
|
358
|
+
|
|
359
|
+
$slider-dark-off := rgba($material-light.fg-color, .3)
|
|
360
|
+
$slider-dark-focus-off := rgba($material-light.fg-color, .3)
|
|
361
|
+
$slider-dark-disabled := rgba($material-light.fg-color, .3)
|
|
362
|
+
$slider-dark-label := $material-light.text-color
|
|
363
|
+
$slider-dark-ticks := rgba($material-light.fg-color, .6)
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
/** Snackbar */
|
|
367
|
+
$snackbar-background-color := #323232
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
/* Text Input */
|
|
371
|
+
$input-group-height := 58px
|
|
372
|
+
$input-group-padding := 18px 0 0
|
|
373
|
+
$input-font-size := 16px
|
|
374
|
+
$label-font-size := 12px
|
|
375
|
+
$input-height := 30px
|
|
376
|
+
$input-group-text-field-label-top := 18px
|
|
377
|
+
|
|
378
|
+
$input-group-light-normal := rgba($material-dark.fg-color, $material-dark.disabledORhints-text-percent)
|
|
379
|
+
$input-group-light-focus := rgba($material-dark.fg-color, .87)
|
|
380
|
+
|
|
381
|
+
$input-group-dark-normal := rgba($material-light.fg-color, $material-light.disabledORhints-text-percent)
|
|
382
|
+
$input-group-dark-focus := $material-light.fg-color
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
$label-padding-top := 16px
|
|
386
|
+
$label-padding-bottom := 8px
|
|
387
|
+
$input-padding-bottom := 8px
|
|
388
|
+
|
|
389
|
+
// Directives
|
|
390
|
+
// ============================================================
|
|
391
|
+
|
|
392
|
+
// Ripple animation
|
|
393
|
+
$ripple-container-color := currentColor
|
|
394
|
+
$ripple-animation-background := currentColor
|
|
395
|
+
$ripple-animation-transition := .4s $transition.linear-out-slow-in
|
|
396
|
+
$ripple-animation-visible-opacity := .15
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import './settings/_theme.styl'
|
|
2
|
+
|
|
3
|
+
app($component)
|
|
4
|
+
.application
|
|
5
|
+
&--light
|
|
6
|
+
$component($material-light)
|
|
7
|
+
&--dark
|
|
8
|
+
$component($material-dark)
|
|
9
|
+
|
|
10
|
+
theme($component, $name)
|
|
11
|
+
light($component, $name)
|
|
12
|
+
dark($component, $name)
|
|
13
|
+
|
|
14
|
+
light($component, $name)
|
|
15
|
+
.application--light .{$name}
|
|
16
|
+
$component($material-light)
|
|
17
|
+
.application .theme--light.{$name}
|
|
18
|
+
$component($material-light)
|
|
19
|
+
|
|
20
|
+
dark($component, $name)
|
|
21
|
+
.application--dark .{$name}
|
|
22
|
+
$component($material-dark)
|
|
23
|
+
.application .theme--dark.{$name}
|
|
24
|
+
$component($material-dark)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
global-color(color_name, color_value)
|
|
2
|
+
.{color_name}
|
|
3
|
+
background-color color_value !important
|
|
4
|
+
border-color: color_value !important
|
|
5
|
+
|
|
6
|
+
.{color_name}--text
|
|
7
|
+
color color_value !important
|
|
8
|
+
|
|
9
|
+
global-color-accent(color_name, color_value)
|
|
10
|
+
.{color_name}
|
|
11
|
+
&.{color_type}
|
|
12
|
+
background-color color_value !important
|
|
13
|
+
border-color: color_value !important
|
|
14
|
+
|
|
15
|
+
.{color_name}--text
|
|
16
|
+
&.text--{color_type}
|
|
17
|
+
color: color_value !important
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$i = 0
|
|
2
|
+
for level, spacer in $spacers
|
|
3
|
+
.mt-{$i}
|
|
4
|
+
margin-top: spacer.y !important
|
|
5
|
+
.mr-{$i}
|
|
6
|
+
margin-right: spacer.x !important
|
|
7
|
+
.mb-{$i}
|
|
8
|
+
margin-bottom: spacer.y !important
|
|
9
|
+
.ml-{$i}
|
|
10
|
+
margin-left: spacer.x !important
|
|
11
|
+
.mx-{$i}
|
|
12
|
+
margin-left: spacer.x !important
|
|
13
|
+
margin-right: spacer.x !important
|
|
14
|
+
.my-{$i}
|
|
15
|
+
margin-top: spacer.y !important
|
|
16
|
+
margin-bottom: spacer.y !important
|
|
17
|
+
.ma-{$i}
|
|
18
|
+
margin: spacer.y spacer.x !important
|
|
19
|
+
|
|
20
|
+
.pt-{$i}
|
|
21
|
+
padding-top: spacer.y !important
|
|
22
|
+
.pr-{$i}
|
|
23
|
+
padding-right: spacer.x !important
|
|
24
|
+
.pb-{$i}
|
|
25
|
+
padding-bottom: spacer.y !important
|
|
26
|
+
.pl-{$i}
|
|
27
|
+
padding-left: spacer.x !important
|
|
28
|
+
.px-{$i}
|
|
29
|
+
padding-left: spacer.x !important
|
|
30
|
+
padding-right: spacer.x !important
|
|
31
|
+
.py-{$i}
|
|
32
|
+
padding-top: spacer.y !important
|
|
33
|
+
padding-bottom: spacer.y !important
|
|
34
|
+
.pa-{$i}
|
|
35
|
+
padding: spacer.y spacer.x !important
|
|
36
|
+
|
|
37
|
+
$i = $i + 1
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
for size, width in $grid-breakpoints
|
|
2
|
+
@media all and (min-width: width)
|
|
3
|
+
.text-{size}-left
|
|
4
|
+
text-align: left !important
|
|
5
|
+
|
|
6
|
+
.text-{size}-center
|
|
7
|
+
text-align: center !important
|
|
8
|
+
|
|
9
|
+
.text-{size}-right
|
|
10
|
+
text-align: right !important
|
|
11
|
+
|
|
12
|
+
.text-{size}-justify
|
|
13
|
+
text-align: justify !important
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Kdu mixin to get the current width/height and the associated breakpoint.
|
|
3
|
+
*
|
|
4
|
+
* Useful to e.g. adapt the user interface from inside a Kdu component
|
|
5
|
+
* as opposed to using CSS classes. The breakpoint pixel values and
|
|
6
|
+
* range names are taken from Kdutify (https://github.com/kdutifyjs).
|
|
7
|
+
*
|
|
8
|
+
* Use within a component:
|
|
9
|
+
*
|
|
10
|
+
* import breakpoint from './breakpoint.js'
|
|
11
|
+
*
|
|
12
|
+
* export default {
|
|
13
|
+
* name: 'my-component',
|
|
14
|
+
* mixins: [breakpoint],
|
|
15
|
+
* ...
|
|
16
|
+
*
|
|
17
|
+
* Then inside a template:
|
|
18
|
+
*
|
|
19
|
+
* <div k-if="$breakpoint.smAndDown">...</div>
|
|
20
|
+
*/
|
|
21
|
+
const breakpoint = {
|
|
22
|
+
data () {
|
|
23
|
+
return {
|
|
24
|
+
clientWidth: clientDimensions.getWidth(),
|
|
25
|
+
clientHeight: clientDimensions.getHeight()
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
computed: {
|
|
30
|
+
breakpoint () {
|
|
31
|
+
const xs = this.clientWidth < 600
|
|
32
|
+
const sm = this.clientWidth < 960 && !xs
|
|
33
|
+
const md = this.clientWidth < (1280 - 16) && !(sm || xs)
|
|
34
|
+
const lg = this.clientWidth < (1920 - 16) && !(md || sm || xs)
|
|
35
|
+
const xl = this.clientWidth >= (1920 - 16) && !(lg || md || sm || xs)
|
|
36
|
+
|
|
37
|
+
const xsOnly = xs
|
|
38
|
+
const smOnly = sm
|
|
39
|
+
const smAndDown = (xs || sm) && !(md || lg || xl)
|
|
40
|
+
const smAndUp = !xs && (sm || md || lg || xl)
|
|
41
|
+
const mdOnly = md
|
|
42
|
+
const mdAndDown = (xs || sm || md) && !(lg || xl)
|
|
43
|
+
const mdAndUp = !(xs || sm) && (md || lg || xl)
|
|
44
|
+
const lgOnly = lg
|
|
45
|
+
const lgAndDown = (xs || sm || md || lg) && !xl
|
|
46
|
+
const lgAndUp = !(xs || sm || md) && (lg || xl)
|
|
47
|
+
const xlOnly = xl
|
|
48
|
+
|
|
49
|
+
let name
|
|
50
|
+
switch (true) {
|
|
51
|
+
case (xs):
|
|
52
|
+
name = 'xs'
|
|
53
|
+
break
|
|
54
|
+
case (sm):
|
|
55
|
+
name = 'sm'
|
|
56
|
+
break
|
|
57
|
+
case (md):
|
|
58
|
+
name = 'md'
|
|
59
|
+
break
|
|
60
|
+
case (lg):
|
|
61
|
+
name = 'lg'
|
|
62
|
+
break
|
|
63
|
+
default:
|
|
64
|
+
name = 'xl'
|
|
65
|
+
break
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const result = {
|
|
69
|
+
// Definite breakpoint.
|
|
70
|
+
xs,
|
|
71
|
+
sm,
|
|
72
|
+
md,
|
|
73
|
+
lg,
|
|
74
|
+
xl,
|
|
75
|
+
|
|
76
|
+
// Useful e.g. to construct CSS class names dynamically.
|
|
77
|
+
name,
|
|
78
|
+
|
|
79
|
+
// Breakpoint ranges.
|
|
80
|
+
xsOnly,
|
|
81
|
+
smOnly,
|
|
82
|
+
smAndDown,
|
|
83
|
+
smAndUp,
|
|
84
|
+
mdOnly,
|
|
85
|
+
mdAndDown,
|
|
86
|
+
mdAndUp,
|
|
87
|
+
lgOnly,
|
|
88
|
+
lgAndDown,
|
|
89
|
+
lgAndUp,
|
|
90
|
+
xlOnly,
|
|
91
|
+
|
|
92
|
+
// For custom breakpoint logic.
|
|
93
|
+
width: this.clientWidth,
|
|
94
|
+
height: this.clientHeight
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return result
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
watch: {
|
|
102
|
+
breakpoint (val) {
|
|
103
|
+
this.$kdutify.breakpoint = val
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
methods: {
|
|
108
|
+
onResize () {
|
|
109
|
+
this.clientWidth = clientDimensions.getWidth()
|
|
110
|
+
this.clientHeight = clientDimensions.getHeight()
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Cross-browser support as described in:
|
|
116
|
+
// https://stackoverflow.com/questions/1248081
|
|
117
|
+
const clientDimensions = {
|
|
118
|
+
getWidth () {
|
|
119
|
+
if (typeof document === 'undefined') return 0 // SSR
|
|
120
|
+
return Math.max(
|
|
121
|
+
document.documentElement.clientWidth,
|
|
122
|
+
window.innerWidth || 0
|
|
123
|
+
)
|
|
124
|
+
},
|
|
125
|
+
getHeight () {
|
|
126
|
+
if (typeof document === 'undefined') return 0 // SSR
|
|
127
|
+
return Math.max(
|
|
128
|
+
document.documentElement.clientHeight,
|
|
129
|
+
window.innerHeight || 0
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export default breakpoint
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare module 'kdutify/src/util/helpers' {
|
|
2
|
+
import { FunctionalComponentOptions, KNodeDirective } from 'kdu'
|
|
3
|
+
|
|
4
|
+
export function createSimpleFunctional(c: string, el: string): FunctionalComponentOptions
|
|
5
|
+
export function createSimpleTransition(name: string, origin: string, mode: string): FunctionalComponentOptions
|
|
6
|
+
|
|
7
|
+
export interface EventHandlersDict {
|
|
8
|
+
[event: string]: Function
|
|
9
|
+
}
|
|
10
|
+
export function createJavaScriptTransition(name: string, functions: EventHandlersDict, css: boolean, mode: string): FunctionalComponentOptions
|
|
11
|
+
|
|
12
|
+
export interface BindingConfig {
|
|
13
|
+
arg: KNodeDirective['arg'],
|
|
14
|
+
modifiers: KNodeDirective['modifiers'],
|
|
15
|
+
value: KNodeDirective['value']
|
|
16
|
+
}
|
|
17
|
+
export function directiveConfig(binding: BindingConfig, defaults: object): KNodeDirective
|
|
18
|
+
export function addOnceEventListener(el: EventTarget, event: string, cb: () => void): void
|
|
19
|
+
export function getObjectValueByPath(obj: object, path: string): any
|
|
20
|
+
export function createRange(length: number): Array<number>
|
|
21
|
+
}
|