@bbl-digital/snorre 4.1.28 → 4.1.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +347 -500
- package/esm/core/Editor/config.js +19 -7
- package/esm/core/Editor/index.js +173 -113
- package/esm/core/Editor/styles.js +60 -43
- package/esm/core/Html/index.js +1 -1
- package/esm/index.js +1 -2
- package/lib/core/Autocomplete/styles.d.ts +5 -5
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.d.ts +5 -5
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.d.ts +5 -5
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/Editor/config.d.ts +0 -5
- package/lib/core/Editor/config.d.ts.map +1 -1
- package/lib/core/Editor/config.js +19 -7
- package/lib/core/Editor/index.d.ts +0 -43
- package/lib/core/Editor/index.d.ts.map +1 -1
- package/lib/core/Editor/index.js +173 -113
- package/lib/core/Editor/styles.d.ts +0 -13
- package/lib/core/Editor/styles.d.ts.map +1 -1
- package/lib/core/Editor/styles.js +60 -43
- package/lib/core/FileInput/styles.d.ts +5 -5
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/Html/index.d.ts +1 -1
- package/lib/core/Html/index.d.ts.map +1 -1
- package/lib/core/Html/index.js +1 -1
- package/lib/core/InfoButton/styles.d.ts +5 -5
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/Modal/index.d.ts.map +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/QuillEditor/config.d.ts +3 -3
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -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/FooterLink/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuTop/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
- package/package.json +1 -3
@@ -1,7 +1,19 @@
|
|
1
|
-
export const editorContentCss = `
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export const
|
6
|
-
|
7
|
-
|
1
|
+
// export const editorContentCss = `
|
2
|
+
// body { font-family:'Source Sans Pro',sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}
|
3
|
+
// `
|
4
|
+
|
5
|
+
// export const editorBlockFormats =
|
6
|
+
// 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;'
|
7
|
+
|
8
|
+
// export const plugins =
|
9
|
+
// 'autolink lists link image code print preview media paste'
|
10
|
+
|
11
|
+
// export const richToolbar =
|
12
|
+
// 'formatselect | ' +
|
13
|
+
// ' | bold italic underline' +
|
14
|
+
// ' | bullist numlist indent outdent' +
|
15
|
+
// ' | alignleft aligncenter alignright alignjustify' +
|
16
|
+
// ' | link unlink'
|
17
|
+
|
18
|
+
// export const basicToolbar =
|
19
|
+
// 'bold italic underline | bullist numlist indent outdent'
|
package/esm/core/Editor/index.js
CHANGED
@@ -1,113 +1,173 @@
|
|
1
|
-
/** @jsxImportSource @emotion/react */
|
2
|
-
import { useState } from 'react'
|
3
|
-
import { Editor as TinyEditor } from '@tinymce/tinymce-react'
|
4
|
-
import { ErrorWrapper, Label, styles } from './styles'
|
5
|
-
import {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
import
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
}
|
113
|
-
|
1
|
+
// /** @jsxImportSource @emotion/react */
|
2
|
+
// import { FC, useState } from 'react'
|
3
|
+
// import { Editor as TinyEditor } from '@tinymce/tinymce-react'
|
4
|
+
// import { ErrorWrapper, Label, styles } from './styles'
|
5
|
+
// import {
|
6
|
+
// basicToolbar,
|
7
|
+
// editorBlockFormats,
|
8
|
+
// editorContentCss,
|
9
|
+
// plugins,
|
10
|
+
// richToolbar,
|
11
|
+
// } from './config'
|
12
|
+
// import Skeleton from '../Skeleton'
|
13
|
+
// import Text from '../Text'
|
14
|
+
// import IconErrorOutline from '../../icons/General/IconErrorOutline'
|
15
|
+
// import { useTheme } from '@emotion/react'
|
16
|
+
// import { useIsMobile } from '../../hooks/useIsMobile'
|
17
|
+
// import { useEffect } from 'react'
|
18
|
+
|
19
|
+
// interface IProps {
|
20
|
+
// /** Input text */
|
21
|
+
// initialValue?: string
|
22
|
+
// /** Input text that overrides the initialValue or already existing text value, if null is sent in we reset the field */
|
23
|
+
// overrideValue?: string
|
24
|
+
// /** Editor type, defaults to basic */
|
25
|
+
// type?: 'basic' | 'rich' | 'custom'
|
26
|
+
// /** Adds a custom toolbar if type is set to custom */
|
27
|
+
// customToolbar?: string
|
28
|
+
// /** Height of textarea */
|
29
|
+
// label?: string
|
30
|
+
// /** Deafult height of texteditor */
|
31
|
+
// height?: number
|
32
|
+
// /** Max resize height of texteditor */
|
33
|
+
// maxHeight?: number
|
34
|
+
// /** Max resize width of texteditor */
|
35
|
+
// maxWidth?: number
|
36
|
+
// /** Error message */
|
37
|
+
// invalidMessage?: string
|
38
|
+
// /** Allow image in editor */
|
39
|
+
// allowImages?: boolean
|
40
|
+
// /** Strip all pasted styles */
|
41
|
+
// pasteAsText?: boolean
|
42
|
+
// /** Set resize, defaults to true (vertical) */
|
43
|
+
// resize?: boolean | 'both'
|
44
|
+
// /** Invalid html elements, must be comma separated, defaults to "button" */
|
45
|
+
// invalidElements?: string
|
46
|
+
// /** Valid html elements, must be comma separated */
|
47
|
+
// validElements?: string
|
48
|
+
// /** Disable editor */
|
49
|
+
// disabled?: boolean
|
50
|
+
// /** Cb on blur */
|
51
|
+
// onBlur?: (value: string) => void
|
52
|
+
// /** Cb on change */
|
53
|
+
// onChange: (value: string, plainTextLength: number) => void
|
54
|
+
// }
|
55
|
+
|
56
|
+
// const TINYMCE_API_KEY = '1n4id0n4p67gr15sq9hvnk965wgh5ku8xjgqt30e2hnpccp3'
|
57
|
+
// /**
|
58
|
+
// * @deprecated Use QuillEditor instead
|
59
|
+
// */
|
60
|
+
// const Editor: FC<IProps> = ({
|
61
|
+
// initialValue,
|
62
|
+
// overrideValue,
|
63
|
+
// type = 'basic',
|
64
|
+
// label,
|
65
|
+
// height = 500,
|
66
|
+
// maxHeight,
|
67
|
+
// maxWidth,
|
68
|
+
// customToolbar,
|
69
|
+
// invalidMessage,
|
70
|
+
// allowImages,
|
71
|
+
// pasteAsText,
|
72
|
+
// resize = true,
|
73
|
+
// validElements,
|
74
|
+
// invalidElements = 'button',
|
75
|
+
// disabled,
|
76
|
+
// onChange,
|
77
|
+
// onBlur,
|
78
|
+
// }) => {
|
79
|
+
// const [loaded, setLoaded] = useState(false)
|
80
|
+
// const [value, setValue] = useState(initialValue || '')
|
81
|
+
// const { alert } = useTheme()
|
82
|
+
// const isMobile = useIsMobile()
|
83
|
+
|
84
|
+
// const handleChange = (html: string, editor: any) => {
|
85
|
+
// setValue(html)
|
86
|
+
// onChange(html, editor.getContent({ format: 'text' }).length)
|
87
|
+
// }
|
88
|
+
|
89
|
+
// const handleBlur = () => onBlur?.(value)
|
90
|
+
|
91
|
+
// const toolbar =
|
92
|
+
// type === 'basic'
|
93
|
+
// ? basicToolbar
|
94
|
+
// : type === 'rich'
|
95
|
+
// ? richToolbar
|
96
|
+
// : customToolbar
|
97
|
+
|
98
|
+
// useEffect(() => {
|
99
|
+
// if (overrideValue === undefined) return
|
100
|
+
|
101
|
+
// setValue(() => overrideValue)
|
102
|
+
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
103
|
+
// }, [overrideValue])
|
104
|
+
|
105
|
+
// return (
|
106
|
+
// <div css={(theme) => [styles.default(theme), !loaded && styles.hideEditor]}>
|
107
|
+
// {label && <Label>{label}</Label>}
|
108
|
+
|
109
|
+
// <div className="editor-wrapper">
|
110
|
+
// <TinyEditor
|
111
|
+
// onBlur={handleBlur}
|
112
|
+
// onInit={(_e) => setLoaded(true)}
|
113
|
+
// apiKey={TINYMCE_API_KEY}
|
114
|
+
// value={value}
|
115
|
+
// onEditorChange={handleChange}
|
116
|
+
// disabled={disabled}
|
117
|
+
// init={{
|
118
|
+
// browser_spellcheck: true,
|
119
|
+
// height,
|
120
|
+
// min_height: 100,
|
121
|
+
// max_height: maxHeight,
|
122
|
+
// min_width: 100,
|
123
|
+
// max_width: maxWidth,
|
124
|
+
// toolbar_mode: 'wrap',
|
125
|
+
// menubar: false,
|
126
|
+
// branding: false,
|
127
|
+
// elementpath: false,
|
128
|
+
// resize: resize,
|
129
|
+
// statusbar: !isMobile,
|
130
|
+
// plugins,
|
131
|
+
// toolbar,
|
132
|
+
// content_style: editorContentCss,
|
133
|
+
// language: 'nb_NO',
|
134
|
+
// block_formats: editorBlockFormats,
|
135
|
+
// paste_data_images: allowImages,
|
136
|
+
// paste_as_text:
|
137
|
+
// pasteAsText !== undefined ? pasteAsText : type === 'basic',
|
138
|
+
// contextmenu: false,
|
139
|
+
// invalid_elements: !allowImages
|
140
|
+
// ? 'img,' + invalidElements
|
141
|
+
// : invalidElements,
|
142
|
+
// valid_elements: validElements,
|
143
|
+
// default_link_target: '_blank',
|
144
|
+
// link_assume_external_targets: 'https',
|
145
|
+
// link_title: false,
|
146
|
+
// target_list: false,
|
147
|
+
// }}
|
148
|
+
// />
|
149
|
+
// </div>
|
150
|
+
|
151
|
+
// {!loaded && (
|
152
|
+
// <Skeleton
|
153
|
+
// height={`${height}px`}
|
154
|
+
// width="100%"
|
155
|
+
// borderRadius="3px"
|
156
|
+
// rectangle
|
157
|
+
// />
|
158
|
+
// )}
|
159
|
+
|
160
|
+
// {invalidMessage && (
|
161
|
+
// <ErrorWrapper>
|
162
|
+
// {invalidMessage && (
|
163
|
+
// <Text color={alert}>
|
164
|
+
// <IconErrorOutline size="16px" color={alert} /> {invalidMessage}
|
165
|
+
// </Text>
|
166
|
+
// )}
|
167
|
+
// </ErrorWrapper>
|
168
|
+
// )}
|
169
|
+
// </div>
|
170
|
+
// )
|
171
|
+
// }
|
172
|
+
|
173
|
+
// export default Editor
|
@@ -1,43 +1,60 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
1
|
+
// import { css } from '@emotion/react'
|
2
|
+
// import styled from '@emotion/styled'
|
3
|
+
// import { IAppTheme } from '../../app-shell/theme'
|
4
|
+
|
5
|
+
// export const styles = {
|
6
|
+
// default: (theme: IAppTheme) => css`
|
7
|
+
// display: flex;
|
8
|
+
// flex-direction: column;
|
9
|
+
// gap: 4px;
|
10
|
+
|
11
|
+
// .tox-tinymce {
|
12
|
+
// border: 1px solid ${theme.border};
|
13
|
+
// border-radius: 3px;
|
14
|
+
// }
|
15
|
+
// .tox-toolbar__group {
|
16
|
+
// border-color: ${theme.border} !important;
|
17
|
+
// }
|
18
|
+
// .tox-toolbar__primary {
|
19
|
+
// background: none !important;
|
20
|
+
// border-bottom: 1px solid ${theme.border};
|
21
|
+
// }
|
22
|
+
// .tox-statusbar {
|
23
|
+
// border-top: none !important;
|
24
|
+
// }
|
25
|
+
// .editor-wrapper {
|
26
|
+
// display: grid;
|
27
|
+
|
28
|
+
// .tox-toolbar--scrolling,
|
29
|
+
// .tox-edit-area {
|
30
|
+
// &::-webkit-scrollbar {
|
31
|
+
// width: 2px;
|
32
|
+
// height: 2px;
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// }
|
36
|
+
// `,
|
37
|
+
// hideEditor: css`
|
38
|
+
// .editor-wrapper {
|
39
|
+
// display: none;
|
40
|
+
// }
|
41
|
+
// `,
|
42
|
+
// }
|
43
|
+
|
44
|
+
// export const Label = styled.span`
|
45
|
+
// line-height: 22px;
|
46
|
+
// font-size: 1em;
|
47
|
+
// font-weight: 600;
|
48
|
+
// margin-bottom: 4px;
|
49
|
+
// `
|
50
|
+
|
51
|
+
// export const ErrorWrapper = styled.div`
|
52
|
+
// display: grid;
|
53
|
+
|
54
|
+
// & > span {
|
55
|
+
// display: flex;
|
56
|
+
// align-items: center;
|
57
|
+
// gap: 6px;
|
58
|
+
// margin-left: 2px;
|
59
|
+
// }
|
60
|
+
// `
|
package/esm/core/Html/index.js
CHANGED
package/esm/index.js
CHANGED
@@ -290,7 +290,6 @@ import IconBblWater from './icons/General/IconBblWater';
|
|
290
290
|
import IconBblShield from './icons/General/IconBblShield';
|
291
291
|
import NoticeCard from './core/NoticeCard';
|
292
292
|
import ListPager from './core/ListPager';
|
293
|
-
import Editor from './core/Editor';
|
294
293
|
import Spinner from './core/Spinner';
|
295
294
|
import Autocomplete from './core/Autocomplete';
|
296
295
|
import IconFullscreenOpen from './icons/General/IconFullscreenOpen';
|
@@ -322,4 +321,4 @@ export { getFormatedPhone } from './utils/phone';
|
|
322
321
|
export { getCurrentPage, getFirstButtonIndex, getHasMorePages, getHasPreviousPages, getSkippedItems } from './utils/pagination';
|
323
322
|
export { handleDateToStringConvertion, handleStringToDateConvertion, getTimeFromHours, getTimeStringFromHours } from './utils/time';
|
324
323
|
export { getFormattedPrice, getFormattedPriceWithEnding, getFormattedDate, getTitleString, getFormattedCardNumber, getFormattedTime, getFormattedOrganizationNumber, getFormattedDateTimePretty, getFormattedTimePeriod } from './utils/format';
|
325
|
-
export { Topbar, Layout, LayoutShell, AppShell, AppLoader, Alert, Button, Card, Divider, Dropdown, Header, Input, Image, Checkbox, Link, List, ListItem, Tag, Text, Footer, FooterCol, FooterGroup, FooterLabel, FooterLink, FooterButton, Radio, Skeleton, Html, CustomText, Select, SearchSelect, Option, UserMenu, UserMenuOption, Modal, MediaCarousel, NotificationsMenu, NotificationRow, Table, Cell, Row, FileInput, Datepicker, DatepickerRange, Menu, AppPicker, MainMenu, MenuItem, MenuTop, SecondaryMenu, SecondaryMenuItem, MenuSpacer, Submenu, SubmenuItem, PreemptionCard, PreemptionCardLoading, PieChart, SimpleBarChart, SimpleLineChart, BarAndLineComposedChart, BarChartWithCustomizedEvent, QuillEditor, IconApartment, IconArchives, IconArea, IconChoice, IconReply, IconReplyAll, IconForward, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAttachment, IconBack, IconBath, IconBoard, IconBookmarkOutline, IconBookmarkFilled, IconBus, IconBlock, IconCar, IconCaretDown, IconCaretLeft, IconCaretUp, IconCases, IconCaretRight, IconCheck, IconCheckedOutline, IconCheckedFilled, IconChevronLeft, IconChevronRight, IconChevronDown, IconClose, IconCloseAlt, IconComment, IconCompanyBuilding, IconDelete, IconDoor, IconDotFilled, IconDotOutline, IconDownload, IconDraft, IconElevator, IconErrorOutline, IconErrorFilled, IconExternalLink, IconEye, IconEyeDeny, IconFamily, IconFerry, IconFile, IconFileEdit, IconFileAdd, IconFileExcel, IconFilePDF, IconFileWord, IconFillOut, IconFloor, IconGarage, IconGrid, IconGym, IconHearth, IconHearthOutline, IconHelp, IconHistory, IconHouse, IconHomeFilled, IconHomeOutline, IconHouseBlockFilled, IconHouseBlockOutline, IconHumans, IconImportantComment, IconInbox, IconLabel, IconJointcost, IconJointcost2, IconKey, IconKitchen, IconLeafFilled, IconLeafOutline, IconLeisureTime, IconLock, IconLockLocked, IconLockOpen, IconMap, IconMail, IconEmailMarkAsRead, IconMenu, IconMinus, IconMoney, IconPinned, IconParking, IconPaymentCard, IconPlus, IconPortalUser, IconReciept, IconRedo, IconRefresh, IconRoom, IconSave, IconSearch, IconSend, IconSettings, IconShopping, IconSign, IconStarFilled, IconStarHalf, IconStarOutline, IconStore, IconSubway, IconSwitch, IconSliders, IconTrain, IconTram, IconPrint, IconTransport, IconTypeOfBuilding, IconTypeOfBuildingOutline, IconUpload, IconUser, IconUserThin, IconVote, IconWalk, IconWarning, IconWarningBell, IconZip, IconSort, IconFilterList, IconBellOutline, IconPlusAlt, IconPhone, IconHouseOutline, IconMembership, IconMembershipFilled, IconCalendar, IconInfoOutline, IconInfoFilled, IconCamera, IllustrationBudget, IllustrationHouse, IllustrationHighHouseComposition, IllustrationHighHouse, IllustrationHouseComposition, IllustrationLowHouse, IllustrationLowHouseComposition, IllustrationSemiDetachedHouse, IllustrationSemiDetachedHouseComposition, IllustrationSmallHouse, IllustrationSmallHouseComposition, IllustrationTerraceBlock, IllustrationTerraceBlockComposition, IllustrationTownHouse, IllustrationTownHouseComposition, IllustrationHousesBackground, IllustrationHousesBackgroundWithComposition, IllustrationHouseMissing, IllustrationError, IllustrationErrorGeneric, IllustrationPaperCompleted, IllustrationPaperMissing, IllustrationMySiteBuilding, IllustrationMySiteCoffeeBook, IllustrationMySiteComputer, IllustrationMySiteGift, IllustrationMySitePapers, IllustrationMySitePiggyBank, IllustrationMySiteDashboard, IllustrationMySiteAssociation, IllustrationMySiteCooperative, IllustrationMySiteMailbox, IllustrationMySiteTransfer, IllustrationMySiteLetterSent, IllustrationMySiteBenefits, IllustrationTechninalDifficulties, IllustrationServiceMessage, IconCommunication, IconCommunicationFilled, IconCompanyBuildingOutline, IconCompanyBuildingFilled, IconDashboard, IconDashboardFilled, IconEconomy, IconEconomyFilled, IconWork, IconWorkFilled, IconProfile, IconProfileFilled, IconLookup, IconLookupFilled, IconDocument, IconDocumentFilled, IconEarth, IconEdit, IconMinusAlt, IconMinusAltFilled, IconUndo, IconVisa, IconMasterCard, IconBankAxept, IconAmericanExpress, IconFileCopy, IconBblFlame, IconBblWater, IconBblShield, IconFullscreenOpen, IconFullscreenClose, IconGmail, IconOffice365, IconAuditorFilled, IconAuditorOutline, IconJanitorFilled, IconJanitorOutline, VisuallyHidden, useScreenOrientation, Box, Textarea, InfoButton, CommentsTimeline, CommentLine, HeaderCell, RowCell, TableHeader, TableRow, BoxedTable, DraggableRow, CollapseList, CollapseListItem, Banner, Calendar, YearWheel, DropdownMenu, DropdownMenuOption, Timeline, Timepicker, TimelineStep, HighlightText, TabBar, TabItem,
|
324
|
+
export { Topbar, Layout, LayoutShell, AppShell, AppLoader, Alert, Button, Card, Divider, Dropdown, Header, Input, Image, Checkbox, Link, List, ListItem, Tag, Text, Footer, FooterCol, FooterGroup, FooterLabel, FooterLink, FooterButton, Radio, Skeleton, Html, CustomText, Select, SearchSelect, Option, UserMenu, UserMenuOption, Modal, MediaCarousel, NotificationsMenu, NotificationRow, Table, Cell, Row, FileInput, Datepicker, DatepickerRange, Menu, AppPicker, MainMenu, MenuItem, MenuTop, SecondaryMenu, SecondaryMenuItem, MenuSpacer, Submenu, SubmenuItem, PreemptionCard, PreemptionCardLoading, PieChart, SimpleBarChart, SimpleLineChart, BarAndLineComposedChart, BarChartWithCustomizedEvent, QuillEditor, IconApartment, IconArchives, IconArea, IconChoice, IconReply, IconReplyAll, IconForward, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAttachment, IconBack, IconBath, IconBoard, IconBookmarkOutline, IconBookmarkFilled, IconBus, IconBlock, IconCar, IconCaretDown, IconCaretLeft, IconCaretUp, IconCases, IconCaretRight, IconCheck, IconCheckedOutline, IconCheckedFilled, IconChevronLeft, IconChevronRight, IconChevronDown, IconClose, IconCloseAlt, IconComment, IconCompanyBuilding, IconDelete, IconDoor, IconDotFilled, IconDotOutline, IconDownload, IconDraft, IconElevator, IconErrorOutline, IconErrorFilled, IconExternalLink, IconEye, IconEyeDeny, IconFamily, IconFerry, IconFile, IconFileEdit, IconFileAdd, IconFileExcel, IconFilePDF, IconFileWord, IconFillOut, IconFloor, IconGarage, IconGrid, IconGym, IconHearth, IconHearthOutline, IconHelp, IconHistory, IconHouse, IconHomeFilled, IconHomeOutline, IconHouseBlockFilled, IconHouseBlockOutline, IconHumans, IconImportantComment, IconInbox, IconLabel, IconJointcost, IconJointcost2, IconKey, IconKitchen, IconLeafFilled, IconLeafOutline, IconLeisureTime, IconLock, IconLockLocked, IconLockOpen, IconMap, IconMail, IconEmailMarkAsRead, IconMenu, IconMinus, IconMoney, IconPinned, IconParking, IconPaymentCard, IconPlus, IconPortalUser, IconReciept, IconRedo, IconRefresh, IconRoom, IconSave, IconSearch, IconSend, IconSettings, IconShopping, IconSign, IconStarFilled, IconStarHalf, IconStarOutline, IconStore, IconSubway, IconSwitch, IconSliders, IconTrain, IconTram, IconPrint, IconTransport, IconTypeOfBuilding, IconTypeOfBuildingOutline, IconUpload, IconUser, IconUserThin, IconVote, IconWalk, IconWarning, IconWarningBell, IconZip, IconSort, IconFilterList, IconBellOutline, IconPlusAlt, IconPhone, IconHouseOutline, IconMembership, IconMembershipFilled, IconCalendar, IconInfoOutline, IconInfoFilled, IconCamera, IllustrationBudget, IllustrationHouse, IllustrationHighHouseComposition, IllustrationHighHouse, IllustrationHouseComposition, IllustrationLowHouse, IllustrationLowHouseComposition, IllustrationSemiDetachedHouse, IllustrationSemiDetachedHouseComposition, IllustrationSmallHouse, IllustrationSmallHouseComposition, IllustrationTerraceBlock, IllustrationTerraceBlockComposition, IllustrationTownHouse, IllustrationTownHouseComposition, IllustrationHousesBackground, IllustrationHousesBackgroundWithComposition, IllustrationHouseMissing, IllustrationError, IllustrationErrorGeneric, IllustrationPaperCompleted, IllustrationPaperMissing, IllustrationMySiteBuilding, IllustrationMySiteCoffeeBook, IllustrationMySiteComputer, IllustrationMySiteGift, IllustrationMySitePapers, IllustrationMySitePiggyBank, IllustrationMySiteDashboard, IllustrationMySiteAssociation, IllustrationMySiteCooperative, IllustrationMySiteMailbox, IllustrationMySiteTransfer, IllustrationMySiteLetterSent, IllustrationMySiteBenefits, IllustrationTechninalDifficulties, IllustrationServiceMessage, IconCommunication, IconCommunicationFilled, IconCompanyBuildingOutline, IconCompanyBuildingFilled, IconDashboard, IconDashboardFilled, IconEconomy, IconEconomyFilled, IconWork, IconWorkFilled, IconProfile, IconProfileFilled, IconLookup, IconLookupFilled, IconDocument, IconDocumentFilled, IconEarth, IconEdit, IconMinusAlt, IconMinusAltFilled, IconUndo, IconVisa, IconMasterCard, IconBankAxept, IconAmericanExpress, IconFileCopy, IconBblFlame, IconBblWater, IconBblShield, IconFullscreenOpen, IconFullscreenClose, IconGmail, IconOffice365, IconAuditorFilled, IconAuditorOutline, IconJanitorFilled, IconJanitorOutline, VisuallyHidden, useScreenOrientation, Box, Textarea, InfoButton, CommentsTimeline, CommentLine, HeaderCell, RowCell, TableHeader, TableRow, BoxedTable, DraggableRow, CollapseList, CollapseListItem, Banner, Calendar, YearWheel, DropdownMenu, DropdownMenuOption, Timeline, Timepicker, TimelineStep, HighlightText, TabBar, TabItem, TabNav, Video, TabNavItem, NoticeCard, ListPager, Spinner, Autocomplete, GoogleButton, NotificationCounter, SearchFilter, ImagePicker, Tooltip, ImageViewer, Stepper };
|
@@ -19,14 +19,14 @@ declare const styles: {
|
|
19
19
|
};
|
20
20
|
export declare const ErrorMessage: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
|
21
21
|
export declare const Clear: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
22
|
-
afterIcon?:
|
23
|
-
beforeIcon?:
|
24
|
-
children: NonNullable<
|
22
|
+
afterIcon?: React.ReactNode;
|
23
|
+
beforeIcon?: React.ReactNode;
|
24
|
+
children: NonNullable<React.ReactNode>;
|
25
25
|
disabled?: boolean;
|
26
26
|
href?: string;
|
27
27
|
loading?: boolean;
|
28
|
-
onClick?: (event:
|
29
|
-
onMouseUp?: (event:
|
28
|
+
onClick?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
29
|
+
onMouseUp?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
30
30
|
onCustomKeyPress?: {
|
31
31
|
key: string;
|
32
32
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Autocomplete/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAIjD,QAAA,MAAM,MAAM;qBACO,SAAS;;;0BA2DJ,SAAS;;;;kBAuCjB,SAAS;6BA2BE,SAAS;yBAGb,MAAM;iCAOE,MAAM;kCAGL,MAAM;qBAGnB,SAAS;4BAYF,SAAS;qBA4BhB,MAAM;sBAKL,SAAS;CAM5B,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,SAAS,8CAM5C,CAAA;AAED,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Autocomplete/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAIjD,QAAA,MAAM,MAAM;qBACO,SAAS;;;0BA2DJ,SAAS;;;;kBAuCjB,SAAS;6BA2BE,SAAS;yBAGb,MAAM;iCAOE,MAAM;kCAGL,MAAM;qBAGnB,SAAS;4BAYF,SAAS;qBA4BhB,MAAM;sBAKL,SAAS;CAM5B,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,SAAS,8CAM5C,CAAA;AAED,eAAO,MAAM,KAAK;sBAvMU,SAAS;uBAIrB,SAAS;gCAKnB,SAEJ;;;;4BAUI,UAEH;8BAKsB,UACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAwLJ,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/lib/core/Box/styles.d.ts
CHANGED
@@ -16,14 +16,14 @@ declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
as?: React.ElementType;
|
17
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
18
18
|
declare const CollapseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
19
|
-
afterIcon?:
|
20
|
-
beforeIcon?:
|
21
|
-
children: NonNullable<
|
19
|
+
afterIcon?: React.ReactNode;
|
20
|
+
beforeIcon?: React.ReactNode;
|
21
|
+
children: NonNullable<React.ReactNode>;
|
22
22
|
disabled?: boolean;
|
23
23
|
href?: string;
|
24
24
|
loading?: boolean;
|
25
|
-
onClick?: (event:
|
26
|
-
onMouseUp?: (event:
|
25
|
+
onClick?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
26
|
+
onMouseUp?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
27
27
|
onCustomKeyPress?: {
|
28
28
|
key: string;
|
29
29
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Box/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,MAAM;qBACO,SAAS;oBAWV,SAAS;;qBAQR,MAAM;CAGxB,CAAA;AAED,QAAA,MAAM,aAAa;;eALW,WACxB;;YAKc,OAAO;yGAU1B,CAAA;AAED,QAAA,MAAM,cAAc;;eAlBU,WACxB;yGAoBL,CAAA;AAED,QAAA,MAAM,cAAc
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Box/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,QAAA,MAAM,MAAM;qBACO,SAAS;oBAWV,SAAS;;qBAQR,MAAM;CAGxB,CAAA;AAED,QAAA,MAAM,aAAa;;eALW,WACxB;;YAKc,OAAO;yGAU1B,CAAA;AAED,QAAA,MAAM,cAAc;;eAlBU,WACxB;yGAoBL,CAAA;AAED,QAAA,MAAM,cAAc;sBAtCU,SAE9B;uBAKI,SAAS;gCAEgB,SAAS;;;;4BAc5B,UAAU;8BAKhB,UAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAaR,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,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,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
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,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,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;sBAjCH,SAAS;uBAEN,SAAS;gCAEQ,SAAS;;;;4BAWjB,UAAU;8BAK1B,UAAU;;;;;;;;;;;;;;;;;IAfb,4BAA4B;cAClB,OAAO;IACjB,2BAA2B;aAClB,OAAO;IAChB,oBAAoB;gBACR,OAAO;IACnB,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;2CAqFjB,CAAA;AACF,eAAe,MAAM,CAAA"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { IAppTheme } from '../../app-shell/theme';
|
2
2
|
export declare const CollapseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
3
|
-
afterIcon?:
|
4
|
-
beforeIcon?:
|
5
|
-
children: NonNullable<
|
3
|
+
afterIcon?: React.ReactNode;
|
4
|
+
beforeIcon?: React.ReactNode;
|
5
|
+
children: NonNullable<React.ReactNode>;
|
6
6
|
disabled?: boolean;
|
7
7
|
href?: string;
|
8
8
|
loading?: boolean;
|
9
|
-
onClick?: (event:
|
10
|
-
onMouseUp?: (event:
|
9
|
+
onClick?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
10
|
+
onMouseUp?: (event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes>) => void;
|
11
11
|
onCustomKeyPress?: {
|
12
12
|
key: string;
|
13
13
|
action: (event: KeyboardEvent) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc;sBAQhB,SAAS;uBAIP,SAAS;gCAIZ,SAAM;;;;4BAeG,UAAU;8BAI4C,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA7BlF,CAAA;AAED,eAAO,MAAM,MAAM;qBACA,SAAS;CAyB3B,CAAA"}
|
@@ -1,6 +1 @@
|
|
1
|
-
export declare const editorContentCss = "\n body { font-family:'Source Sans Pro',sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}\n";
|
2
|
-
export declare const editorBlockFormats = "Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;";
|
3
|
-
export declare const plugins = "autolink lists link image code print preview media paste";
|
4
|
-
export declare const richToolbar: string;
|
5
|
-
export declare const basicToolbar = "bold italic underline | bullist numlist indent outdent";
|
6
1
|
//# sourceMappingURL=config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/config.ts"],"names":[],"mappings":""}
|
@@ -1,7 +1,19 @@
|
|
1
|
-
export const editorContentCss = `
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export const
|
6
|
-
|
7
|
-
|
1
|
+
// export const editorContentCss = `
|
2
|
+
// body { font-family:'Source Sans Pro',sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}
|
3
|
+
// `
|
4
|
+
|
5
|
+
// export const editorBlockFormats =
|
6
|
+
// 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;'
|
7
|
+
|
8
|
+
// export const plugins =
|
9
|
+
// 'autolink lists link image code print preview media paste'
|
10
|
+
|
11
|
+
// export const richToolbar =
|
12
|
+
// 'formatselect | ' +
|
13
|
+
// ' | bold italic underline' +
|
14
|
+
// ' | bullist numlist indent outdent' +
|
15
|
+
// ' | alignleft aligncenter alignright alignjustify' +
|
16
|
+
// ' | link unlink'
|
17
|
+
|
18
|
+
// export const basicToolbar =
|
19
|
+
// 'bold italic underline | bullist numlist indent outdent'
|