@jitera/jitera-web-ui-library 1.67.0 → 1.69.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/README.md CHANGED
@@ -8,17 +8,20 @@ In the project directory, you can run:
8
8
 
9
9
  Runs the storybook in the development mode.\
10
10
  Open [http://localhost:6006](http://localhost:6006) to view it in the browser.
11
+
11
12
  ```
12
13
  yarn storybook
13
14
  ```
14
15
 
15
16
  Format Code
17
+
16
18
  ```
17
19
  yarn lint
18
20
  yarn format
19
21
  ```
20
22
 
21
23
  Builds the app for publishing as NPM Package to the `dist` folder.
24
+
22
25
  ```
23
26
  yarn build
24
27
  ```
package/dist/index.css CHANGED
@@ -14,4 +14,4 @@
14
14
  /* src/components/atoms/HamburgerMenu/HamburgerMenu.module.css */
15
15
  .mca48d82cd_Wrapper {
16
16
  width: fit-content;
17
- }
17
+ }
package/dist/index.d.ts CHANGED
@@ -15,11 +15,11 @@ import {
15
15
  SpaceProps,
16
16
  CheckboxProps as CheckboxProps$1,
17
17
  UploadProps,
18
+ DatePickerProps,
18
19
  DrawerProps,
19
20
  TabsProps,
20
- ModalProps,
21
21
  PaginationProps,
22
- MessageArgsProps
22
+ ModalProps as ModalProps$1
23
23
  } from 'antd'
24
24
  export { CheckboxOptionType as RadioCheckboxOptionType } from 'antd'
25
25
  import * as react_icons_lib from 'react-icons/lib'
@@ -30,8 +30,7 @@ import { Props, OptionsOrGroups, GroupBase, SelectInstance } from 'react-select'
30
30
  export { SelectInstance as SelectRef } from 'react-select'
31
31
  import { TextAreaProps as TextAreaProps$1 } from 'antd/lib/input/TextArea'
32
32
  import { CheckboxGroupProps } from 'antd/lib/checkbox'
33
- import { Dayjs } from 'dayjs'
34
- import { PickerDateProps } from 'antd/lib/date-picker/generatePicker'
33
+ import moment from 'moment'
35
34
  import { Settings, ResponsiveObject } from 'react-slick'
36
35
  import {
37
36
  RowData,
@@ -43,7 +42,7 @@ import {
43
42
  } from '@tanstack/table-core'
44
43
  import { DragEndEvent } from '@dnd-kit/core'
45
44
  import { OtpInputProps } from 'react-otp-input'
46
- import * as antd_lib_message from 'antd/lib/message'
45
+ export { toast as Toast, ToastContainer, ToastContainerProps } from 'react-toastify'
47
46
  export { createColumnHelper } from '@tanstack/react-table'
48
47
  export { arrayMove } from '@dnd-kit/sortable'
49
48
 
@@ -182,21 +181,96 @@ declare const Sider: React.ForwardRefExoticComponent<
182
181
 
183
182
  declare enum TextTypeEnum {
184
183
  Link = 'Link',
185
- Text = 'Text'
184
+ Text = 'Text',
185
+ H1 = 'H1',
186
+ H2 = 'H2',
187
+ H3 = 'H3',
188
+ H4 = 'H4',
189
+ H5 = 'H5',
190
+ H6 = 'H6',
191
+ B = 'B',
192
+ I = 'I',
193
+ Em = 'Em',
194
+ U = 'U',
195
+ S = 'S',
196
+ Del = 'Del',
197
+ Pre = 'Pre',
198
+ Code = 'Code',
199
+ Blockquote = 'Blockquote',
200
+ Figcaption = 'Figcaption',
201
+ Cite = 'Cite'
186
202
  }
187
203
  declare type BaseTextProps = React.HTMLAttributes<HTMLDivElement>
188
204
  declare type BaseLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement>
205
+ declare type BaseH1Props = React.HTMLAttributes<HTMLHeadingElement>
206
+ declare type BaseH2Props = React.HTMLAttributes<HTMLHeadingElement>
207
+ declare type BaseH3Props = React.HTMLAttributes<HTMLHeadingElement>
208
+ declare type BaseH4Props = React.HTMLAttributes<HTMLHeadingElement>
209
+ declare type BaseH5Props = React.HTMLAttributes<HTMLHeadingElement>
210
+ declare type BaseH6Props = React.HTMLAttributes<HTMLHeadingElement>
211
+ declare type BaseBProps = React.HTMLAttributes<HTMLElement>
212
+ declare type BaseIProps = React.HTMLAttributes<HTMLElement>
213
+ declare type BaseEmProps = React.HTMLAttributes<HTMLElement>
214
+ declare type BaseUProps = React.HTMLAttributes<HTMLElement>
215
+ declare type BaseSProps = React.HTMLAttributes<HTMLElement>
216
+ declare type BaseDelProps = React.HTMLAttributes<HTMLModElement>
217
+ declare type BasePreProps = React.HTMLAttributes<HTMLPreElement>
218
+ declare type BaseCodeProps = React.HTMLAttributes<HTMLElement>
219
+ declare type BaseBlockquoteProps = React.HTMLAttributes<HTMLQuoteElement>
220
+ declare type BaseFigcaptionProps = React.HTMLAttributes<HTMLElement>
221
+ declare type BaseCiteProps = React.HTMLAttributes<HTMLElement>
189
222
  declare type TextProps = PreviewProps &
190
223
  BaseTextProps &
191
- BaseLinkProps & {
224
+ BaseLinkProps &
225
+ BaseH1Props &
226
+ BaseH2Props &
227
+ BaseH3Props &
228
+ BaseH4Props &
229
+ BaseH5Props &
230
+ BaseH6Props &
231
+ BaseBProps &
232
+ BaseIProps &
233
+ BaseEmProps &
234
+ BaseUProps &
235
+ BaseSProps &
236
+ BaseDelProps &
237
+ BasePreProps &
238
+ BaseCodeProps &
239
+ BaseBlockquoteProps &
240
+ BaseFigcaptionProps &
241
+ BaseCiteProps & {
192
242
  textType?: `${TextTypeEnum}`
193
243
  }
194
244
  declare const Text: React.ForwardRefExoticComponent<
195
245
  PreviewProps &
196
246
  BaseTextProps &
197
- BaseLinkProps & {
247
+ BaseLinkProps &
248
+ BaseH1Props &
249
+ BaseH2Props &
250
+ BaseH3Props &
251
+ BaseH4Props &
252
+ BaseH5Props &
253
+ BaseH6Props &
254
+ BaseBProps &
255
+ BaseIProps &
256
+ BaseEmProps &
257
+ BaseUProps &
258
+ BaseSProps &
259
+ BaseDelProps &
260
+ BasePreProps &
261
+ BaseCodeProps &
262
+ BaseBlockquoteProps &
263
+ BaseFigcaptionProps &
264
+ BaseCiteProps & {
198
265
  textType?: `${TextTypeEnum}`
199
- } & React.RefAttributes<HTMLDivElement & HTMLAnchorElement>
266
+ } & React.RefAttributes<
267
+ HTMLDivElement &
268
+ HTMLAnchorElement &
269
+ HTMLHeadingElement &
270
+ HTMLModElement &
271
+ HTMLPreElement &
272
+ HTMLQuoteElement
273
+ >
200
274
  >
201
275
 
202
276
  interface SelectPropsDatum {
@@ -278,11 +352,12 @@ declare enum PickerEnum {
278
352
  }
279
353
  interface DateTimePickerProps
280
354
  extends PreviewProps,
281
- ComponentProps<Omit<PickerDateProps<Dayjs>, 'picker' | 'defaultValue'>> {
355
+ ComponentProps<Omit<DatePickerProps, 'picker' | 'defaultValue' | 'value'>> {
282
356
  picker?: `${PickerEnum}`
283
357
  showTime?: boolean
284
358
  errorMessage?: string
285
- defaultValue?: Pick<PickerDateProps<Dayjs>, 'defaultValue'> | string
359
+ defaultValue?: string
360
+ value?: moment.Moment | string
286
361
  }
287
362
  declare const DateTimePicker: React.ForwardRefExoticComponent<
288
363
  DateTimePickerProps & React.RefAttributes<HTMLDivElement>
@@ -358,36 +433,6 @@ interface TabProps extends PreviewProps, ComponentProps<TabsProps> {
358
433
  }
359
434
  declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLDivElement>>
360
435
 
361
- declare enum ModalPositionEnum {
362
- DEFAULT = 'default',
363
- TOP = 'top',
364
- CENTER = 'center'
365
- }
366
- interface ModalShowOptions
367
- extends Omit<
368
- ModalProps,
369
- | 'visible'
370
- | 'closable'
371
- | 'footer'
372
- | 'modalRender'
373
- | 'cancelText'
374
- | 'cancelButtonProps'
375
- | 'okText'
376
- | 'onOk'
377
- | 'okButtonProps'
378
- | 'okType'
379
- | 'title'
380
- | 'closeIcon'
381
- | 'bodyStyle'
382
- > {
383
- position?: `${ModalPositionEnum}`
384
- }
385
- declare const Modal: {
386
- show(ReactComponent: React.ReactNode, options?: ModalShowOptions): void
387
- hide(): void
388
- hideAll(): void
389
- }
390
-
391
436
  interface RichTextProps {
392
437
  data?: string
393
438
  style?: CSSProperties
@@ -556,38 +601,53 @@ declare const OTPInput: React.ForwardRefExoticComponent<
556
601
  OTPInputProps & React.RefAttributes<HTMLDivElement>
557
602
  >
558
603
 
559
- declare const Toast: {
560
- success(
561
- ReactComponent: React.ReactNode | string | MessageArgsProps,
562
- duration?: number,
563
- onClose?: () => void
564
- ): void
565
- error(
566
- ReactComponent: React.ReactNode | string | MessageArgsProps,
567
- duration?: number,
568
- onClose?: () => void
569
- ): void
570
- info(
571
- ReactComponent: React.ReactNode | string | MessageArgsProps,
572
- duration?: number,
573
- onClose?: () => void
574
- ): void
575
- warning(
576
- ReactComponent: React.ReactNode | string | MessageArgsProps,
577
- duration?: number,
578
- onClose?: () => void
579
- ): void
580
- warn(
581
- ReactComponent: React.ReactNode | string | MessageArgsProps,
582
- duration?: number,
583
- onClose?: () => void
584
- ): void
585
- loading(
586
- ReactComponent: React.ReactNode | string | MessageArgsProps,
587
- duration?: number,
588
- onClose?: () => void
589
- ): void
590
- message: antd_lib_message.MessageApi
604
+ declare enum ModalPositionEnum {
605
+ DEFAULT = 'default',
606
+ TOP = 'top',
607
+ CENTER = 'center'
608
+ }
609
+ interface ModalOptions
610
+ extends Omit<
611
+ ModalProps$1,
612
+ | 'visible'
613
+ | 'closable'
614
+ | 'footer'
615
+ | 'modalRender'
616
+ | 'cancelText'
617
+ | 'cancelButtonProps'
618
+ | 'okText'
619
+ | 'onOk'
620
+ | 'okButtonProps'
621
+ | 'okType'
622
+ | 'title'
623
+ | 'closeIcon'
624
+ | 'bodyStyle'
625
+ > {
626
+ position?: `${ModalPositionEnum}`
627
+ }
628
+ declare type ModalProps = {
629
+ local?: boolean
630
+ }
631
+ declare type ModalState = {
632
+ modals: {
633
+ options: ModalOptions
634
+ component: React.ReactNode
635
+ visible: boolean
636
+ id: string
637
+ }[]
638
+ }
639
+ declare class ModalComponent extends React.PureComponent<ModalProps, ModalState> {
640
+ constructor(props: ModalProps)
641
+ componentDidMount(): void
642
+ componentWillUnmount(): void
643
+ clearModal: (hideId?: string) => void
644
+ hide: (id?: string) => void
645
+ show: (component: React.ReactNode, options: ModalOptions) => string
646
+ render(): JSX.Element
647
+ }
648
+ declare const Modal: {
649
+ show(component: React.ReactNode, modalOptions?: ModalOptions): string
650
+ hide(id?: string): void
591
651
  }
592
652
 
593
653
  declare type ThemeProviderProps = {
@@ -2421,8 +2481,25 @@ declare const useTheme: () => {
2421
2481
  }
2422
2482
 
2423
2483
  export {
2484
+ BaseBProps,
2485
+ BaseBlockquoteProps,
2486
+ BaseCiteProps,
2487
+ BaseCodeProps,
2488
+ BaseDelProps,
2489
+ BaseEmProps,
2490
+ BaseFigcaptionProps,
2491
+ BaseH1Props,
2492
+ BaseH2Props,
2493
+ BaseH3Props,
2494
+ BaseH4Props,
2495
+ BaseH5Props,
2496
+ BaseH6Props,
2497
+ BaseIProps,
2424
2498
  BaseLinkProps,
2499
+ BasePreProps,
2500
+ BaseSProps,
2425
2501
  BaseTextProps,
2502
+ BaseUProps,
2426
2503
  Box,
2427
2504
  BoxProps,
2428
2505
  Button,
@@ -2473,8 +2550,10 @@ export {
2473
2550
  MenuItemProps,
2474
2551
  MenuProps,
2475
2552
  Modal,
2553
+ ModalComponent,
2554
+ ModalOptions,
2476
2555
  ModalPositionEnum,
2477
- ModalShowOptions,
2556
+ ModalProps,
2478
2557
  OTPInput,
2479
2558
  OTPInputProps,
2480
2559
  OTPInputType,
@@ -2507,7 +2586,6 @@ export {
2507
2586
  TextProps,
2508
2587
  TextTypeEnum,
2509
2588
  ThemeProvider,
2510
- Toast,
2511
2589
  assertUnreachable,
2512
2590
  defaultTheme,
2513
2591
  getIconComponent,