@bbl-digital/snorre 4.1.35 → 4.1.37
Sign up to get free protection for your applications and to get access to all the features.
- package/.husky/_/husky.sh +30 -30
- package/.prettierrc +6 -6
- package/.vscode/settings.json +3 -3
- package/README.md +3 -3
- package/dist/bundle.js +576 -576
- package/esm/app-shell/index.js +2 -2
- package/esm/core/Alert/styles.js +6 -6
- package/esm/core/AppLoader/styles.js +1 -1
- package/esm/core/Autocomplete/styles.js +18 -18
- package/esm/core/Banner/styles.js +4 -4
- package/esm/core/BarAndLineComposedChart/styles.js +1 -1
- package/esm/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/esm/core/Box/styles.js +7 -7
- package/esm/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/esm/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/esm/core/BoxedTable/RowCell/index.js +1 -1
- package/esm/core/BoxedTable/RowCell/styles.js +9 -9
- package/esm/core/BoxedTable/TableHeader/styles.js +1 -1
- package/esm/core/BoxedTable/TableRow/styles.js +8 -8
- package/esm/core/BoxedTable/styles.js +11 -11
- package/esm/core/Button/styles.js +19 -19
- package/esm/core/Calendar/CalendarEvent/styles.js +5 -5
- package/esm/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/esm/core/Calendar/styles.js +5 -5
- package/esm/core/Card/styles.js +11 -11
- package/esm/core/Checkbox/styles.js +5 -5
- package/esm/core/CollapseList/Item.js +1 -1
- package/esm/core/CollapseList/styles.js +2 -2
- package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/esm/core/CommentsTimeline/styles.js +1 -1
- package/esm/core/CustomText/styles.js +2 -2
- package/esm/core/Datepicker/styles.js +9 -9
- package/esm/core/DatepickerRange/styles.js +9 -9
- package/esm/core/Divider/styles.js +5 -5
- package/esm/core/Dropdown/styles.js +3 -3
- package/esm/core/DropdownMenu/styles.js +3 -3
- package/esm/core/FileInput/styles.js +14 -14
- package/esm/core/GoogleButton/styles.js +1 -1
- package/esm/core/Header/styles.js +7 -7
- package/esm/core/HighlightText/styles.js +1 -1
- package/esm/core/Html/styles.js +6 -6
- package/esm/core/Image/styles.js +6 -6
- package/esm/core/ImagePicker/IconWithBackground.js +1 -1
- package/esm/core/ImagePicker/UploadButton.js +1 -1
- package/esm/core/ImagePicker/styles.js +11 -11
- package/esm/core/ImageViewer/index.js +1 -1
- package/esm/core/ImageViewer/styles.js +7 -7
- package/esm/core/InfoButton/styles.js +9 -9
- package/esm/core/Input/styles.js +19 -19
- package/esm/core/Link/styles.js +10 -10
- package/esm/core/List/Item.js +1 -1
- package/esm/core/List/styles.js +11 -11
- package/esm/core/ListPager/index.js +1 -1
- package/esm/core/ListPager/styles.js +3 -3
- package/esm/core/MediaCarousel/styles.js +6 -6
- package/esm/core/Modal/ActionButtons/index.js +1 -1
- package/esm/core/Modal/styles.js +8 -8
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/esm/core/NoticeCard/styles.js +4 -4
- package/esm/core/NotificationCounter/styles.js +1 -1
- package/esm/core/NotificationsMenu/NotificationRow/styles.js +3 -3
- package/esm/core/NotificationsMenu/styles.js +3 -3
- package/esm/core/PieChart/styles.js +2 -2
- package/esm/core/PreemptionCard/styles.js +3 -3
- package/esm/core/PreemptionCardLoading/styles.js +3 -3
- package/esm/core/QuillEditor/styles.js +3 -3
- package/esm/core/Radio/styles.js +4 -4
- package/esm/core/SearchFilter/index.js +1 -1
- package/esm/core/SearchFilter/styles.js +14 -14
- package/esm/core/SearchSelect/styles.js +5 -5
- package/esm/core/Select/index.js +1 -1
- package/esm/core/Select/styles.js +18 -18
- package/esm/core/SimpleBarChart/styles.js +1 -1
- package/esm/core/SimpleLineChart/styles.js +1 -1
- package/esm/core/Skeleton/styles.js +4 -4
- package/esm/core/Spinner/styles.js +5 -5
- package/esm/core/Stepper/MobileStep/styles.js +7 -7
- package/esm/core/Stepper/Step/index.js +1 -1
- package/esm/core/Stepper/Step/styles.js +5 -5
- package/esm/core/Stepper/styles.js +3 -3
- package/esm/core/TabBar/TabItem/styles.js +1 -1
- package/esm/core/TabBar/styles.js +1 -1
- package/esm/core/TabNav/TabNavItem/styles.js +5 -5
- package/esm/core/TabNav/styles.js +8 -8
- package/esm/core/Table/styles.js +16 -16
- package/esm/core/Tag/styles.js +13 -13
- package/esm/core/Text/styles.js +16 -16
- package/esm/core/Textarea/styles.js +7 -7
- package/esm/core/Timeline/TimelineStep/styles.js +6 -6
- package/esm/core/Timeline/styles.js +1 -1
- package/esm/core/Timepicker/index.js +3 -3
- package/esm/core/Timepicker/styles.js +7 -7
- package/esm/core/Tooltip/styles.js +2 -2
- package/esm/core/UnitIllustration/index.js +9 -9
- package/esm/core/UserMenu/styles.js +7 -7
- package/esm/core/Video/styles.js +1 -1
- package/esm/core/YearWheel/styles.js +3 -3
- package/esm/enums/Keyboard.js +2 -2
- package/esm/globals/styles/styles.js +1 -1
- package/esm/illustrations/styles.js +2 -2
- package/esm/layout/Footer/FooterButton/styles.js +1 -1
- package/esm/layout/Footer/FooterCol/styles.js +1 -1
- package/esm/layout/Footer/FooterGroup/styles.js +1 -1
- package/esm/layout/Footer/FooterLabel/styles.js +1 -1
- package/esm/layout/Footer/FooterLink/styles.js +1 -1
- package/esm/layout/Footer/styles.js +2 -2
- package/esm/layout/Layout/styles.js +1 -1
- package/esm/layout/LayoutShell/styles.js +8 -8
- package/esm/layout/Menu/AppPicker/styles.js +5 -5
- package/esm/layout/Menu/MainMenu/styles.js +2 -2
- package/esm/layout/Menu/MenuItem/styles.js +3 -3
- package/esm/layout/Menu/MenuSpacer/styles.js +1 -1
- package/esm/layout/Menu/MenuTop/styles.js +3 -3
- package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/esm/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/esm/layout/Menu/styles.js +1 -1
- package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/esm/layout/Submenu/styles.js +11 -11
- package/esm/layout/Topbar/styles.js +1 -1
- package/esm/shared/components/SbIconGrid/index.js +1 -1
- package/esm/shared/components/VisuallyHidden/index.js +4 -4
- package/esm/shared/recharts/CustomLegend/styles.js +2 -2
- package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
- package/esm/utils/time.js +14 -14
- package/esm/v2/core/Button/Button.stories.js +188 -0
- package/esm/v2/core/Button/index.js +67 -0
- package/esm/v2/core/Button/styles.js +89 -0
- package/esm/v2/core/Chip/Chip.stories.js +90 -0
- package/esm/v2/core/Chip/index.js +63 -0
- package/esm/v2/core/Chip/styles.js +38 -0
- package/esm/v2/index.js +3 -0
- package/infrastructure/azure-pipelines.yml +34 -34
- package/jest.config.js +34 -34
- package/lib/app-shell/index.js +2 -2
- package/lib/app-shell/theme.d.ts +50 -0
- package/lib/app-shell/theme.d.ts.map +1 -1
- package/lib/core/Alert/styles.js +6 -6
- package/lib/core/AppLoader/styles.js +1 -1
- package/lib/core/Autocomplete/styles.d.ts +5 -5
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Autocomplete/styles.js +18 -18
- package/lib/core/Banner/styles.d.ts.map +1 -1
- package/lib/core/Banner/styles.js +4 -4
- package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
- package/lib/core/BarAndLineComposedChart/styles.js +1 -1
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
- package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/lib/core/Box/styles.d.ts +5 -5
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.js +7 -7
- package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/lib/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/core/BoxedTable/RowCell/styles.js +9 -9
- package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
- package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/styles.js +11 -11
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/Button/styles.js +19 -19
- package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
- package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/lib/core/Calendar/styles.d.ts.map +1 -1
- package/lib/core/Calendar/styles.js +5 -5
- package/lib/core/Card/styles.js +11 -11
- package/lib/core/Checkbox/styles.js +5 -5
- package/lib/core/CollapseList/Item.js +1 -1
- package/lib/core/CollapseList/styles.d.ts +5 -5
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.js +2 -2
- package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/styles.js +1 -1
- package/lib/core/CustomText/styles.d.ts.map +1 -1
- package/lib/core/CustomText/styles.js +2 -2
- package/lib/core/Datepicker/styles.d.ts.map +1 -1
- package/lib/core/Datepicker/styles.js +9 -9
- package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
- package/lib/core/DatepickerRange/styles.js +9 -9
- package/lib/core/Divider/styles.js +5 -5
- package/lib/core/Dropdown/styles.js +3 -3
- package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
- package/lib/core/DropdownMenu/styles.js +3 -3
- package/lib/core/FileInput/styles.d.ts +5 -5
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/FileInput/styles.js +14 -14
- package/lib/core/GoogleButton/styles.d.ts.map +1 -1
- package/lib/core/GoogleButton/styles.js +1 -1
- package/lib/core/Header/styles.js +7 -7
- package/lib/core/HighlightText/styles.d.ts.map +1 -1
- package/lib/core/HighlightText/styles.js +1 -1
- package/lib/core/Html/styles.js +6 -6
- package/lib/core/Image/styles.js +6 -6
- package/lib/core/ImagePicker/IconWithBackground.js +1 -1
- package/lib/core/ImagePicker/UploadButton.js +1 -1
- package/lib/core/ImagePicker/styles.js +11 -11
- package/lib/core/ImageViewer/index.js +1 -1
- package/lib/core/ImageViewer/styles.js +7 -7
- package/lib/core/InfoButton/styles.d.ts +5 -5
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/InfoButton/styles.js +9 -9
- package/lib/core/Input/styles.js +19 -19
- package/lib/core/Link/styles.d.ts.map +1 -1
- package/lib/core/Link/styles.js +10 -10
- package/lib/core/List/Item.js +1 -1
- package/lib/core/List/styles.js +11 -11
- package/lib/core/ListPager/index.js +1 -1
- package/lib/core/ListPager/styles.d.ts.map +1 -1
- package/lib/core/ListPager/styles.js +3 -3
- package/lib/core/MediaCarousel/styles.d.ts.map +1 -1
- package/lib/core/MediaCarousel/styles.js +6 -6
- package/lib/core/Modal/ActionButtons/index.js +1 -1
- package/lib/core/Modal/index.d.ts.map +1 -1
- package/lib/core/Modal/styles.d.ts.map +1 -1
- package/lib/core/Modal/styles.js +8 -8
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/lib/core/NoticeCard/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/styles.js +4 -4
- package/lib/core/NotificationCounter/styles.js +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +5 -5
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.js +3 -3
- package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/styles.js +3 -3
- package/lib/core/PieChart/styles.d.ts.map +1 -1
- package/lib/core/PieChart/styles.js +2 -2
- package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCard/styles.js +3 -3
- package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCardLoading/styles.js +3 -3
- package/lib/core/QuillEditor/styles.d.ts.map +1 -1
- package/lib/core/QuillEditor/styles.js +3 -3
- package/lib/core/Radio/styles.js +4 -4
- package/lib/core/SearchFilter/index.js +1 -1
- package/lib/core/SearchFilter/styles.d.ts.map +1 -1
- package/lib/core/SearchFilter/styles.js +14 -14
- package/lib/core/SearchSelect/styles.d.ts.map +1 -1
- package/lib/core/SearchSelect/styles.js +5 -5
- package/lib/core/Select/index.js +1 -1
- package/lib/core/Select/styles.d.ts.map +1 -1
- package/lib/core/Select/styles.js +18 -18
- package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleBarChart/styles.js +1 -1
- package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleLineChart/styles.js +1 -1
- package/lib/core/Skeleton/styles.d.ts.map +1 -1
- package/lib/core/Skeleton/styles.js +4 -4
- package/lib/core/Spinner/styles.js +5 -5
- package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -1
- package/lib/core/Stepper/MobileStep/styles.js +7 -7
- package/lib/core/Stepper/Step/index.js +1 -1
- package/lib/core/Stepper/Step/styles.d.ts.map +1 -1
- package/lib/core/Stepper/Step/styles.js +5 -5
- package/lib/core/Stepper/styles.d.ts.map +1 -1
- package/lib/core/Stepper/styles.js +3 -3
- package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
- package/lib/core/TabBar/TabItem/styles.js +1 -1
- package/lib/core/TabBar/styles.d.ts.map +1 -1
- package/lib/core/TabBar/styles.js +1 -1
- package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
- package/lib/core/TabNav/TabNavItem/styles.js +5 -5
- package/lib/core/TabNav/styles.d.ts.map +1 -1
- package/lib/core/TabNav/styles.js +8 -8
- package/lib/core/Table/styles.d.ts.map +1 -1
- package/lib/core/Table/styles.js +16 -16
- package/lib/core/Tag/styles.js +13 -13
- package/lib/core/Text/styles.js +16 -16
- package/lib/core/Textarea/styles.d.ts.map +1 -1
- package/lib/core/Textarea/styles.js +7 -7
- package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
- package/lib/core/Timeline/TimelineStep/styles.js +6 -6
- package/lib/core/Timeline/styles.d.ts.map +1 -1
- package/lib/core/Timeline/styles.js +1 -1
- package/lib/core/Timepicker/index.js +3 -3
- package/lib/core/Timepicker/styles.d.ts.map +1 -1
- package/lib/core/Timepicker/styles.js +7 -7
- package/lib/core/Tooltip/styles.js +2 -2
- package/lib/core/UnitIllustration/index.js +9 -9
- package/lib/core/UserMenu/styles.d.ts.map +1 -1
- package/lib/core/UserMenu/styles.js +7 -7
- package/lib/core/Video/styles.d.ts.map +1 -1
- package/lib/core/Video/styles.js +1 -1
- package/lib/core/YearWheel/styles.d.ts.map +1 -1
- package/lib/core/YearWheel/styles.js +3 -3
- package/lib/enums/Keyboard.js +2 -2
- package/lib/globals/styles/styles.js +1 -1
- package/lib/illustrations/styles.js +2 -2
- package/lib/layout/Footer/FooterButton/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterButton/styles.js +1 -1
- package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterCol/styles.js +1 -1
- package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterGroup/styles.js +1 -1
- package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLabel/styles.js +1 -1
- package/lib/layout/Footer/FooterLink/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLink/styles.js +1 -1
- package/lib/layout/Footer/styles.d.ts.map +1 -1
- package/lib/layout/Footer/styles.js +2 -2
- package/lib/layout/Layout/styles.d.ts.map +1 -1
- package/lib/layout/Layout/styles.js +1 -1
- package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
- package/lib/layout/LayoutShell/styles.js +8 -8
- package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
- package/lib/layout/Menu/AppPicker/styles.js +5 -5
- package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MainMenu/styles.js +2 -2
- package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuItem/styles.js +3 -3
- package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
- package/lib/layout/Menu/MenuTop/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuTop/styles.js +3 -3
- package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/lib/layout/Menu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/styles.js +1 -1
- package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/lib/layout/Submenu/styles.d.ts.map +1 -1
- package/lib/layout/Submenu/styles.js +11 -11
- package/lib/layout/Topbar/styles.js +1 -1
- package/lib/shared/components/SbIconGrid/index.js +1 -1
- package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
- package/lib/shared/components/VisuallyHidden/index.js +4 -4
- package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomLegend/styles.js +2 -2
- package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
- package/lib/utils/time.js +14 -14
- package/lib/v2/core/Button/Button.stories.d.ts +29 -0
- package/lib/v2/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/v2/core/Button/Button.stories.js +188 -0
- package/lib/v2/core/Button/index.d.ts +94 -0
- package/lib/v2/core/Button/index.d.ts.map +1 -0
- package/lib/v2/core/Button/index.js +67 -0
- package/lib/v2/core/Button/styles.d.ts +25 -0
- package/lib/v2/core/Button/styles.d.ts.map +1 -0
- package/lib/v2/core/Button/styles.js +89 -0
- package/lib/v2/core/Chip/Chip.stories.d.ts +17 -0
- package/lib/v2/core/Chip/Chip.stories.d.ts.map +1 -0
- package/lib/v2/core/Chip/Chip.stories.js +90 -0
- package/lib/v2/core/Chip/index.d.ts +23 -0
- package/lib/v2/core/Chip/index.d.ts.map +1 -0
- package/lib/v2/core/Chip/index.js +63 -0
- package/lib/v2/core/Chip/styles.d.ts +24 -0
- package/lib/v2/core/Chip/styles.d.ts.map +1 -0
- package/lib/v2/core/Chip/styles.js +38 -0
- package/lib/v2/index.d.ts +4 -0
- package/lib/v2/index.d.ts.map +1 -0
- package/lib/v2/index.js +3 -0
- package/package.json +1 -1
- package/rollup.config.js +13 -13
- package/theme-bbls.js +467 -467
- package/theme-generator.js +448 -448
- package/theme-helpers.js +62 -62
- package/vite.config.js +6 -6
- package/esm/core/Editor/Editor.stories.js +0 -56
- package/esm/core/Editor/config.js +0 -7
- package/esm/core/Editor/index.js +0 -113
- package/esm/core/Editor/styles.js +0 -43
- package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/esm/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/esm/core/EditorQuillReact/config.js +0 -31
- package/esm/core/EditorQuillReact/index.js +0 -103
- package/esm/core/EditorQuillReact/styles.js +0 -34
- package/esm/shared/types/LoadedType.js +0 -1
- package/lib/core/Editor/Editor.stories.d.ts +0 -11
- package/lib/core/Editor/Editor.stories.d.ts.map +0 -1
- package/lib/core/Editor/Editor.stories.js +0 -56
- package/lib/core/Editor/config.d.ts +0 -6
- package/lib/core/Editor/config.d.ts.map +0 -1
- package/lib/core/Editor/config.js +0 -7
- package/lib/core/Editor/index.d.ts +0 -44
- package/lib/core/Editor/index.d.ts.map +0 -1
- package/lib/core/Editor/index.js +0 -113
- package/lib/core/Editor/styles.d.ts +0 -14
- package/lib/core/Editor/styles.d.ts.map +0 -1
- package/lib/core/Editor/styles.js +0 -43
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +0 -8
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts +0 -7
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/lib/core/EditorQuillReact/config.d.ts +0 -30
- package/lib/core/EditorQuillReact/config.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/config.js +0 -31
- package/lib/core/EditorQuillReact/index.d.ts +0 -23
- package/lib/core/EditorQuillReact/index.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/index.js +0 -103
- package/lib/core/EditorQuillReact/styles.d.ts +0 -13
- package/lib/core/EditorQuillReact/styles.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/styles.js +0 -34
- package/lib/shared/types/LoadedType.d.ts +0 -7
- package/lib/shared/types/LoadedType.d.ts.map +0 -1
- package/lib/shared/types/LoadedType.js +0 -1
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Button from '.';
|
3
|
+
declare const meta: Meta<typeof Button>;
|
4
|
+
export default meta;
|
5
|
+
type Story = StoryObj<typeof Button>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const DefaultSmall: Story;
|
8
|
+
export declare const Secondary: Story;
|
9
|
+
export declare const SecondaryWithIcon: Story;
|
10
|
+
export declare const SecondarySmall: Story;
|
11
|
+
export declare const Ghost: Story;
|
12
|
+
export declare const GhostSmall: Story;
|
13
|
+
export declare const GhostSmallIcon: Story;
|
14
|
+
export declare const IconBefore: Story;
|
15
|
+
export declare const IconAfter: Story;
|
16
|
+
export declare const SmallWithIcon: Story;
|
17
|
+
export declare const Success: Story;
|
18
|
+
export declare const Danger: Story;
|
19
|
+
export declare const Loading: Story;
|
20
|
+
export declare const Disabled: Story;
|
21
|
+
export declare const Highlighted: Story;
|
22
|
+
export declare const OutlineHighlighted: Story;
|
23
|
+
export declare const Back: Story;
|
24
|
+
export declare const Small: Story;
|
25
|
+
export declare const DangerOutline: Story;
|
26
|
+
export declare const TransparentBackground: Story;
|
27
|
+
export declare const NoStyle: Story;
|
28
|
+
export declare const EventKeyPresses: Story;
|
29
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/packages/v2/core/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,MAAM,MAAM,GAAG,CAAA;AAKtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAO/B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA;AAID,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAOnC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAW7B,CAAA"}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
import Button from '.';
|
2
|
+
import IconCaretDown from '../../../icons/General/IconCaretDown';
|
3
|
+
import IconBookmarkFilled from '../../../icons/General/IconBookmarkFilled';
|
4
|
+
import IconBookmarkOutline from '../../../icons/General/IconBookmarkOutline';
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
+
const meta = {
|
7
|
+
title: 'v2/Core/Button',
|
8
|
+
component: Button
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
export const Default = {
|
12
|
+
args: {
|
13
|
+
children: 'Standard button'
|
14
|
+
},
|
15
|
+
name: 'Default'
|
16
|
+
};
|
17
|
+
export const DefaultSmall = {
|
18
|
+
args: {
|
19
|
+
small: true,
|
20
|
+
children: 'Small button'
|
21
|
+
},
|
22
|
+
name: 'Default small'
|
23
|
+
};
|
24
|
+
export const Secondary = {
|
25
|
+
args: {
|
26
|
+
secondary: true,
|
27
|
+
children: 'Secondary button'
|
28
|
+
},
|
29
|
+
name: 'Secondary'
|
30
|
+
};
|
31
|
+
export const SecondaryWithIcon = {
|
32
|
+
args: {
|
33
|
+
secondary: true,
|
34
|
+
beforeIcon: /*#__PURE__*/_jsx(IconBookmarkOutline, {}),
|
35
|
+
children: 'Secondary button'
|
36
|
+
},
|
37
|
+
name: 'Secondary with icon'
|
38
|
+
};
|
39
|
+
export const SecondarySmall = {
|
40
|
+
args: {
|
41
|
+
secondary: true,
|
42
|
+
small: true,
|
43
|
+
children: 'Secondary'
|
44
|
+
},
|
45
|
+
name: 'Secondary small'
|
46
|
+
};
|
47
|
+
export const Ghost = {
|
48
|
+
args: {
|
49
|
+
ghost: true,
|
50
|
+
children: 'Ghost button',
|
51
|
+
disabled: true
|
52
|
+
},
|
53
|
+
name: 'Ghost'
|
54
|
+
};
|
55
|
+
export const GhostSmall = {
|
56
|
+
args: {
|
57
|
+
ghost: true,
|
58
|
+
small: true,
|
59
|
+
children: 'Ghost small button'
|
60
|
+
},
|
61
|
+
name: 'Ghost small'
|
62
|
+
};
|
63
|
+
export const GhostSmallIcon = {
|
64
|
+
args: {
|
65
|
+
ghost: true,
|
66
|
+
small: true,
|
67
|
+
beforeIcon: /*#__PURE__*/_jsx(IconBookmarkOutline, {}),
|
68
|
+
children: 'Ghost small button'
|
69
|
+
},
|
70
|
+
name: 'Ghost small icon'
|
71
|
+
};
|
72
|
+
export const IconBefore = {
|
73
|
+
args: {
|
74
|
+
beforeIcon: /*#__PURE__*/_jsx(IconBookmarkFilled, {}),
|
75
|
+
children: 'Standard button'
|
76
|
+
},
|
77
|
+
name: 'Icon before'
|
78
|
+
};
|
79
|
+
|
80
|
+
// Rewrite all stories to use args instead of render
|
81
|
+
|
82
|
+
export const IconAfter = {
|
83
|
+
args: {
|
84
|
+
afterIcon: /*#__PURE__*/_jsx(IconCaretDown, {}),
|
85
|
+
children: 'Standard button'
|
86
|
+
},
|
87
|
+
name: 'Icon after'
|
88
|
+
};
|
89
|
+
export const SmallWithIcon = {
|
90
|
+
args: {
|
91
|
+
small: true,
|
92
|
+
beforeIcon: /*#__PURE__*/_jsx(IconBookmarkFilled, {}),
|
93
|
+
children: 'Small button'
|
94
|
+
},
|
95
|
+
name: 'Small with icon'
|
96
|
+
};
|
97
|
+
export const Success = {
|
98
|
+
args: {
|
99
|
+
success: true,
|
100
|
+
children: 'Success button'
|
101
|
+
},
|
102
|
+
name: 'Success'
|
103
|
+
};
|
104
|
+
export const Danger = {
|
105
|
+
args: {
|
106
|
+
danger: true,
|
107
|
+
children: 'Danger button'
|
108
|
+
},
|
109
|
+
name: 'Danger'
|
110
|
+
};
|
111
|
+
export const Loading = {
|
112
|
+
args: {
|
113
|
+
loading: true,
|
114
|
+
children: 'Loading button'
|
115
|
+
},
|
116
|
+
name: 'Loading'
|
117
|
+
};
|
118
|
+
export const Disabled = {
|
119
|
+
args: {
|
120
|
+
disabled: true,
|
121
|
+
children: 'Disabled button'
|
122
|
+
},
|
123
|
+
name: 'Disabled'
|
124
|
+
};
|
125
|
+
export const Highlighted = {
|
126
|
+
args: {
|
127
|
+
highlight: true,
|
128
|
+
children: 'Hightlighted button'
|
129
|
+
},
|
130
|
+
name: 'Highlighted'
|
131
|
+
};
|
132
|
+
export const OutlineHighlighted = {
|
133
|
+
args: {
|
134
|
+
highlight: true,
|
135
|
+
outline: true,
|
136
|
+
children: 'Hightlighted outline button'
|
137
|
+
},
|
138
|
+
name: 'Outline highlighted'
|
139
|
+
};
|
140
|
+
export const Back = {
|
141
|
+
args: {
|
142
|
+
back: true,
|
143
|
+
children: 'Go back'
|
144
|
+
},
|
145
|
+
name: 'Back'
|
146
|
+
};
|
147
|
+
export const Small = {
|
148
|
+
args: {
|
149
|
+
small: true,
|
150
|
+
children: 'Small button'
|
151
|
+
},
|
152
|
+
name: 'Small'
|
153
|
+
};
|
154
|
+
export const DangerOutline = {
|
155
|
+
args: {
|
156
|
+
danger: true,
|
157
|
+
outline: true,
|
158
|
+
children: 'Danger outline'
|
159
|
+
},
|
160
|
+
name: 'Danger outline'
|
161
|
+
};
|
162
|
+
export const TransparentBackground = {
|
163
|
+
args: {
|
164
|
+
outline: true,
|
165
|
+
transparentBg: true,
|
166
|
+
children: 'Danger outline'
|
167
|
+
},
|
168
|
+
name: 'Transparent background'
|
169
|
+
};
|
170
|
+
export const NoStyle = {
|
171
|
+
args: {
|
172
|
+
nostyle: true,
|
173
|
+
children: 'No style'
|
174
|
+
},
|
175
|
+
name: 'No style'
|
176
|
+
};
|
177
|
+
export const EventKeyPresses = {
|
178
|
+
args: {
|
179
|
+
onEnterKeyPress: () => console.log('Enter pressed'),
|
180
|
+
onEscapeKeyPress: () => console.log('Escape pressed'),
|
181
|
+
onCustomKeyPress: {
|
182
|
+
key: 'E',
|
183
|
+
action: e => console.log('Key pressed', e.key)
|
184
|
+
},
|
185
|
+
children: 'Actionlistener button'
|
186
|
+
},
|
187
|
+
name: 'Event key presses'
|
188
|
+
};
|
@@ -0,0 +1,94 @@
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
2
|
+
import React from 'react';
|
3
|
+
import { SerializedStyles } from '@emotion/react';
|
4
|
+
import { Props as ButtonOrLinkProps } from '../../../core/private/ButtonOrLink';
|
5
|
+
export type IProps = ButtonOrLinkProps & {
|
6
|
+
/** Success color styling */
|
7
|
+
success?: boolean;
|
8
|
+
/** Danger color styling */
|
9
|
+
danger?: boolean;
|
10
|
+
/** Bigger button */
|
11
|
+
highlight?: boolean;
|
12
|
+
/** Secondary color styling */
|
13
|
+
secondary?: boolean;
|
14
|
+
/** Ghost is a button without a backgound */
|
15
|
+
ghost?: boolean;
|
16
|
+
/** Outlined button styling */
|
17
|
+
outline?: boolean;
|
18
|
+
/** Without style */
|
19
|
+
nostyle?: boolean;
|
20
|
+
/** Adds focus outline, i.e. for nostyle buttons */
|
21
|
+
focusable?: boolean;
|
22
|
+
/** Custom border */
|
23
|
+
border?: string;
|
24
|
+
/** Custom css */
|
25
|
+
css?: SerializedStyles;
|
26
|
+
/** Shows loader instead of children */
|
27
|
+
loading?: boolean;
|
28
|
+
/** Backbutton style */
|
29
|
+
back?: boolean;
|
30
|
+
/** Smaller button size */
|
31
|
+
small?: boolean;
|
32
|
+
/** Transparent bg toggle */
|
33
|
+
transparentBg?: boolean;
|
34
|
+
/** Set tabindex */
|
35
|
+
tabIndex?: number;
|
36
|
+
};
|
37
|
+
declare const Button: React.ForwardRefExoticComponent<React.HTMLAttributes<import("../../../core/private/ButtonOrLink").ButtonOrLinkTypes> & {
|
38
|
+
afterIcon?: React.ReactNode;
|
39
|
+
beforeIcon?: React.ReactNode;
|
40
|
+
children: NonNullable<React.ReactNode>;
|
41
|
+
disabled?: boolean;
|
42
|
+
href?: string;
|
43
|
+
loading?: boolean;
|
44
|
+
onClick?: (event: React.MouseEvent<import("../../../core/private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
45
|
+
onMouseUp?: (event: React.MouseEvent<import("../../../core/private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
46
|
+
onCustomKeyPress?: {
|
47
|
+
key: string;
|
48
|
+
action: (event: KeyboardEvent) => void;
|
49
|
+
};
|
50
|
+
onKeyPress?: (event: KeyboardEvent) => void;
|
51
|
+
onEnterKeyPress?: (event: KeyboardEvent) => void;
|
52
|
+
onEscapeKeyPress?: (event: KeyboardEvent) => void;
|
53
|
+
openInNewWindow?: boolean;
|
54
|
+
rel?: string;
|
55
|
+
trackingEvent?: string;
|
56
|
+
trackingName?: string;
|
57
|
+
type?: "button" | "submit" | "reset";
|
58
|
+
target?: string;
|
59
|
+
download?: any;
|
60
|
+
tabIndex?: number;
|
61
|
+
} & {
|
62
|
+
/** Success color styling */
|
63
|
+
success?: boolean;
|
64
|
+
/** Danger color styling */
|
65
|
+
danger?: boolean;
|
66
|
+
/** Bigger button */
|
67
|
+
highlight?: boolean;
|
68
|
+
/** Secondary color styling */
|
69
|
+
secondary?: boolean;
|
70
|
+
/** Ghost is a button without a backgound */
|
71
|
+
ghost?: boolean;
|
72
|
+
/** Outlined button styling */
|
73
|
+
outline?: boolean;
|
74
|
+
/** Without style */
|
75
|
+
nostyle?: boolean;
|
76
|
+
/** Adds focus outline, i.e. for nostyle buttons */
|
77
|
+
focusable?: boolean;
|
78
|
+
/** Custom border */
|
79
|
+
border?: string;
|
80
|
+
/** Custom css */
|
81
|
+
css?: SerializedStyles;
|
82
|
+
/** Shows loader instead of children */
|
83
|
+
loading?: boolean;
|
84
|
+
/** Backbutton style */
|
85
|
+
back?: boolean;
|
86
|
+
/** Smaller button size */
|
87
|
+
small?: boolean;
|
88
|
+
/** Transparent bg toggle */
|
89
|
+
transparentBg?: boolean;
|
90
|
+
/** Set tabindex */
|
91
|
+
tabIndex?: number;
|
92
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
93
|
+
export default Button;
|
94
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/v2/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,oCAAoC,CAAA;AAM3C,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG;IACvC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oBAAoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;sBAtC2B,SAAS;uBAEN,SAAS;gCAG3C,SAAS;;;;4BASwB,UACrC;8BAMF,UADS;;;;;;;;;;;;;;;;;IAdT,4BAA4B;cAClB,OAAO;IACjB,2BAA2B;aAClB,OAAO;IAChB,oBAAoB;gBACR,OAAO;IACnB,8BAA8B;gBAClB,OAAO;IACnB,4CAA4C;YACpC,OAAO;IACf,8BAA8B;cACpB,OAAO;IACjB,oBAAoB;cACV,OAAO;IACjB,mDAAmD;gBACvC,OAAO;IACnB,oBAAoB;aACX,MAAM;IACf,iBAAiB;UACX,gBAAgB;IACtB,uCAAuC;cAC7B,OAAO;IACjB,uBAAuB;WAChB,OAAO;IACd,0BAA0B;YAClB,OAAO;IACf,4BAA4B;oBACZ,OAAO;IACvB,mBAAmB;eACR,MAAM;2CAuFjB,CAAA;AACF,eAAe,MAAM,CAAA"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
2
|
+
import React from 'react';
|
3
|
+
import { useTheme } from '@emotion/react';
|
4
|
+
import ButtonOrLink from '../../../core/private/ButtonOrLink';
|
5
|
+
import styles from './styles';
|
6
|
+
import IconChevronLeft from '../../../icons/General/IconChevronLeft';
|
7
|
+
import AppLoader from '../../../core/AppLoader';
|
8
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
9
|
+
const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
+
const {
|
11
|
+
secondary,
|
12
|
+
ghost,
|
13
|
+
danger,
|
14
|
+
success,
|
15
|
+
highlight,
|
16
|
+
disabled,
|
17
|
+
outline,
|
18
|
+
afterIcon,
|
19
|
+
beforeIcon,
|
20
|
+
border,
|
21
|
+
nostyle,
|
22
|
+
css,
|
23
|
+
loading,
|
24
|
+
back,
|
25
|
+
small,
|
26
|
+
transparentBg,
|
27
|
+
focusable,
|
28
|
+
tabIndex,
|
29
|
+
...restProps
|
30
|
+
} = props;
|
31
|
+
const theme = useTheme();
|
32
|
+
const accessibilityProps = {};
|
33
|
+
const getLoaderColor = () => {
|
34
|
+
if (!outline && !transparentBg || success) return theme.btnDefaultFontColor;
|
35
|
+
if (danger) return theme.btnDanger;
|
36
|
+
return theme.secondary;
|
37
|
+
};
|
38
|
+
if (loading) {
|
39
|
+
accessibilityProps['aria-busy'] = props.loading;
|
40
|
+
accessibilityProps['aria-disabled'] = props.loading;
|
41
|
+
accessibilityProps['aria-live'] = props['aria-live'] || 'polite';
|
42
|
+
accessibilityProps['aria-label'] = props['aria-label'] || 'Laster';
|
43
|
+
}
|
44
|
+
if (disabled) {
|
45
|
+
accessibilityProps['aria-disabled'] = props.disabled;
|
46
|
+
}
|
47
|
+
if (back) {
|
48
|
+
accessibilityProps['aria-label'] = props['aria-label'] || 'Gå tilbake';
|
49
|
+
}
|
50
|
+
return _jsx(ButtonOrLink, {
|
51
|
+
tabIndex: tabIndex,
|
52
|
+
disabled: disabled,
|
53
|
+
loading: loading,
|
54
|
+
ref: ref,
|
55
|
+
css: theme => [styles.default(theme), secondary && styles.secondary(theme), outline && styles.outline(theme), danger && styles.danger(theme), success && styles.success(theme), highlight && styles.highlighted, ghost && styles.ghost(theme), disabled && styles.disabled(theme), (beforeIcon || afterIcon) && styles.icon(theme), border && styles.border(border), nostyle && styles.nostyle, loading && styles.loading(theme), back && styles.back(theme), css && css, small && styles.small, danger && outline && styles.dangerOutline(theme), success && outline && styles.successOutline(theme), transparentBg && styles.transparentBg, focusable && styles.focusable],
|
56
|
+
afterIcon: afterIcon,
|
57
|
+
beforeIcon: back ? _jsx(IconChevronLeft, {
|
58
|
+
size: '12px'
|
59
|
+
}) : beforeIcon,
|
60
|
+
...accessibilityProps,
|
61
|
+
...restProps,
|
62
|
+
children: loading ? _jsx(AppLoader, {
|
63
|
+
color: getLoaderColor()
|
64
|
+
}) : props.children
|
65
|
+
});
|
66
|
+
});
|
67
|
+
export default Button;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import IAppTheme from '../../../app-shell/theme';
|
2
|
+
export declare const Btn: import("@emotion/styled").StyledComponent<any, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
3
|
+
declare const styles: {
|
4
|
+
default: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
5
|
+
highlighted: import("@emotion/react").SerializedStyles;
|
6
|
+
secondary: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
7
|
+
ghost: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
8
|
+
icon: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
9
|
+
outline: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
10
|
+
success: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
11
|
+
danger: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
12
|
+
disabled: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
13
|
+
border: (color: string) => import("@emotion/react").SerializedStyles;
|
14
|
+
loading: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
15
|
+
nostyle: import("@emotion/react").SerializedStyles;
|
16
|
+
back: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
17
|
+
small: import("@emotion/react").SerializedStyles;
|
18
|
+
dangerOutline: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
19
|
+
successOutline: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
20
|
+
transparentBg: import("@emotion/react").SerializedStyles;
|
21
|
+
focusable: import("@emotion/react").SerializedStyles;
|
22
|
+
};
|
23
|
+
export default styles;
|
24
|
+
export { styles };
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/v2/core/Button/styles.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,0BAA0B,CAAA;AAEhD,eAAO,MAAM,GAAG,mKAAuB,CAAA;AAEvC,QAAA,MAAM,MAAM;qBACO,SAAS;;uBAoCP,SAAS;mBAab,SAAS;kBAcV,SAAS;qBAsBN,SAAS;qBAqBT,SAAS;oBAgBV,SAAS;sBAcP,SAAS;oBAWX,MAAM;qBAGL,SAAS;;kBA6BZ,SAAS;;2BA8BA,SAAS;4BAIR,SAAS;;;CAalC,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|