@digi-frontend/dgate-api-documentation 1.0.31 → 1.0.32

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.
Files changed (104) hide show
  1. package/.editorconfig +12 -12
  2. package/.prettierignore +7 -7
  3. package/.prettierrc +15 -15
  4. package/dist/{2e10bbdb265df50e.svg → 43595976d1fdccbf.svg} +4 -4
  5. package/dist/{8789eb84283ea95b.svg → 56dc416b683db280.svg} +5 -5
  6. package/dist/{bb8b87cace25e052.svg → 64efc2716808c4a4.svg} +3 -3
  7. package/dist/{d32ce84bbd78babd.svg → 72db3b05a96dd600.svg} +3 -3
  8. package/dist/{d501922060662842.svg → 844eba3f2e42a9eb.svg} +3 -3
  9. package/dist/_virtual/index3.js +1 -1
  10. package/dist/_virtual/index4.js +1 -1
  11. package/dist/_virtual/index5.js +1 -1
  12. package/dist/_virtual/index6.js +1 -1
  13. package/dist/{070dc6ecd197bc80.svg → a7568b270e175038.svg} +8 -8
  14. package/dist/{9bdff13f8d8fa48a.svg → af16a554be8c4d69.svg} +3 -3
  15. package/dist/{7f54eeb0bb2d1150.svg → b82c7612e73342f3.svg} +3 -3
  16. package/dist/node_modules/toposort/index.js +1 -1
  17. package/dist/node_modules/yup/index.esm.js +1 -1
  18. package/dist/src/assets/icons/AddRow.svg.js +1 -1
  19. package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
  20. package/dist/src/assets/icons/CheckMarkSquare.svg.js +1 -1
  21. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +1 -1
  22. package/dist/src/assets/icons/CloseIcon.svg.js +1 -1
  23. package/dist/src/assets/icons/CloseIcon.svg.js.map +1 -1
  24. package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
  25. package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
  26. package/dist/src/assets/icons/DownArrow.svg.js +1 -1
  27. package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
  28. package/dist/src/assets/icons/EditIcon.svg.js +1 -1
  29. package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
  30. package/dist/src/assets/icons/UpArrow.svg.js +1 -1
  31. package/dist/src/assets/icons/UpArrow.svg.js.map +1 -1
  32. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +1 -1
  33. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +1 -1
  34. package/dist/src/components/Chips/Chips.js.map +1 -1
  35. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  36. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  37. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  38. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  39. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  40. package/dist/src/components/SVGLoader/SVGLoader.js.map +1 -1
  41. package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
  42. package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
  43. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  44. package/dist/src/components/dialog/index.js.map +1 -1
  45. package/dist/src/components/table/table.js.map +1 -1
  46. package/dist/src/components/table/tags-table.js +1 -1
  47. package/dist/src/components/table/tags-table.js.map +1 -1
  48. package/dist/src/constants/index.js.map +1 -1
  49. package/dist/src/constants/regex.js +1 -1
  50. package/dist/src/constants/regex.js.map +1 -1
  51. package/dist/src/helpers/layout.helper.js.map +1 -1
  52. package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
  53. package/dist/src/layout/layout.js.map +1 -1
  54. package/dist/src/validator/form.scheme.js.map +1 -1
  55. package/dist/styles.css +335 -335
  56. package/package.json +43 -43
  57. package/rollup.config.js +35 -35
  58. package/src/assets/icons/AddRow.svg +3 -3
  59. package/src/assets/icons/CheckMarkSquare.svg +5 -5
  60. package/src/assets/icons/CloseIcon.svg +4 -4
  61. package/src/assets/icons/DeleteIcon.svg +3 -3
  62. package/src/assets/icons/DownArrow.svg +3 -3
  63. package/src/assets/icons/EditIcon.svg +3 -3
  64. package/src/assets/icons/UpArrow.svg +3 -3
  65. package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
  66. package/src/assets/icons/index.ts +8 -8
  67. package/src/components/Chips/Chips.tsx +87 -87
  68. package/src/components/Chips/style.scss +147 -147
  69. package/src/components/InfoForm/InfoForm.module.scss +165 -165
  70. package/src/components/InfoForm/InfoForm.tsx +424 -426
  71. package/src/components/JsonInput/JsonInput.tsx +149 -149
  72. package/src/components/JsonInput/style.module.scss +133 -133
  73. package/src/components/LivePreview/LivePreview.module.scss +24 -24
  74. package/src/components/LivePreview/LivePreview.tsx +184 -184
  75. package/src/components/MethodAccordion/MethodAccordion.module.scss +338 -338
  76. package/src/components/MethodAccordion/MethodAccordion.tsx +515 -515
  77. package/src/components/SVGLoader/SVGLoader.tsx +94 -94
  78. package/src/components/SectionHead/SectionHead.scss +29 -29
  79. package/src/components/SectionHead/SectionHead.tsx +22 -22
  80. package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
  81. package/src/components/SimpleLabelValue/index.ts +1 -1
  82. package/src/components/SimpleLabelValue/style.scss +30 -30
  83. package/src/components/Tooltip/Tooltip.scss +133 -133
  84. package/src/components/Tooltip/Tooltip.tsx +85 -85
  85. package/src/components/_global.scss +337 -337
  86. package/src/components/dialog/dialog.ts +54 -54
  87. package/src/components/dialog/index.tsx +85 -85
  88. package/src/components/dialog/style.scss +104 -104
  89. package/src/components/table/style.scss +190 -190
  90. package/src/components/table/table.tsx +327 -327
  91. package/src/components/table/tags-table.tsx +348 -348
  92. package/src/constants/index.ts +93 -93
  93. package/src/constants/regex.ts +7 -7
  94. package/src/global.d.ts +13 -13
  95. package/src/helpers/layout.helper.ts +162 -162
  96. package/src/helpers/methodAccordion.helper.ts +19 -19
  97. package/src/index.ts +1 -1
  98. package/src/layout/layout.module.css +61 -61
  99. package/src/layout/layout.tsx +150 -150
  100. package/src/types/layout.type.ts +30 -30
  101. package/src/types/openApi.ts +108 -108
  102. package/src/types/transformedOpenApi.ts +52 -52
  103. package/src/validator/form.scheme.ts +70 -70
  104. package/tsconfig.json +33 -33
@@ -1,133 +1,133 @@
1
- .tooltip-custom-wrapper {
2
- display: flex;
3
- }
4
- [data-tippy-root] {
5
- z-index: 2 !important;
6
- }
7
- .tippy-box {
8
- background-color: #202f5b;
9
- font-size: 0.875rem;
10
- border-radius: 0.3125rem;
11
- width: max-content;
12
- max-width: 100%;
13
- overflow-wrap: break-word;
14
- word-break: break-word;
15
- position: relative;
16
- border: 1px solid #d8dae5;
17
- z-index: 2;
18
-
19
- &.function {
20
- .tippy-content {
21
- background-color: #fff !important;
22
- color: #000 !important;
23
- }
24
-
25
- &[data-placement] > .tippy-arrow:before {
26
- color: #fff !important;
27
- }
28
- }
29
-
30
- &.info {
31
- .tippy-arrow {
32
- color: #202f5b;
33
- }
34
- }
35
-
36
- &.success {
37
- border-radius: 1.875rem;
38
- background-color: #3aaa35;
39
- padding-inline: 0.625rem;
40
- }
41
-
42
- .tippy-content {
43
- text-align: justify;
44
- font-size: 0.875rem;
45
- line-height: 1.25rem;
46
- padding: 0.625rem;
47
- }
48
-
49
- .tippy-arrow {
50
- position: relative;
51
- width: 1rem;
52
- height: 1rem;
53
- }
54
-
55
- &[data-placement^='top'] {
56
- .tippy-arrow:before {
57
- bottom: -0.4375rem;
58
- border-width: 0.5rem 0.5rem 0 !important;
59
- }
60
- }
61
-
62
- &[data-placement^='right'] {
63
- .tippy-arrow:before {
64
- left: -0.4375rem;
65
- border-width: 0.5rem 0.5rem 0.5rem 0 !important;
66
- }
67
- }
68
-
69
- &[data-placement^='bottom'] {
70
- .tippy-arrow:before {
71
- top: -0.4375rem;
72
- border-width: 0 0.5rem 0.5rem !important;
73
- }
74
- }
75
-
76
- &[data-placement^='left'] {
77
- .tippy-arrow:before {
78
- right: -0.4375rem;
79
- border-width: 0.5rem 0 0.5rem 0.5rem !important;
80
- }
81
- }
82
-
83
- &[data-placement^='bottom-start'] {
84
- .tippy-arrow {
85
- transform: translate(0.937rem, 0) !important;
86
- }
87
- }
88
-
89
- &[data-placement^='bottom-end'] {
90
- .tippy-arrow {
91
- margin-left: calc(100% - 1.937rem);
92
- transform: translate(0, 0) !important;
93
- }
94
- }
95
-
96
- &[data-placement^='top-start'] {
97
- .tippy-arrow {
98
- transform: translate(0.937rem, 0) !important;
99
- }
100
- }
101
-
102
- &[data-placement^='top-end'] {
103
- .tippy-arrow {
104
- transform: translate(0.937rem, 0) !important;
105
- }
106
- }
107
-
108
- &.arrow-with-border {
109
- border: 1px solid #d8dae5;
110
-
111
- &[data-placement] {
112
- .tippy-arrow {
113
- top: 1px;
114
- background-color: white;
115
- z-index: 2;
116
- height: 1px;
117
-
118
- &:before {
119
- width: 0.625rem;
120
- height: 0.625rem;
121
- background-color: white;
122
- transform: rotate(45deg);
123
- border: none;
124
- border-left: 1px solid #d8dae5 !important;
125
- border-top: 1px solid #d8dae5 !important;
126
- z-index: 2;
127
- top: -0.45rem;
128
- transform-origin: center !important;
129
- }
130
- }
131
- }
132
- }
133
- }
1
+ .tooltip-custom-wrapper {
2
+ display: flex;
3
+ }
4
+ [data-tippy-root] {
5
+ z-index: 2 !important;
6
+ }
7
+ .tippy-box {
8
+ background-color: #202f5b;
9
+ font-size: 0.875rem;
10
+ border-radius: 0.3125rem;
11
+ width: max-content;
12
+ max-width: 100%;
13
+ overflow-wrap: break-word;
14
+ word-break: break-word;
15
+ position: relative;
16
+ border: 1px solid #d8dae5;
17
+ z-index: 2;
18
+
19
+ &.function {
20
+ .tippy-content {
21
+ background-color: #fff !important;
22
+ color: #000 !important;
23
+ }
24
+
25
+ &[data-placement] > .tippy-arrow:before {
26
+ color: #fff !important;
27
+ }
28
+ }
29
+
30
+ &.info {
31
+ .tippy-arrow {
32
+ color: #202f5b;
33
+ }
34
+ }
35
+
36
+ &.success {
37
+ border-radius: 1.875rem;
38
+ background-color: #3aaa35;
39
+ padding-inline: 0.625rem;
40
+ }
41
+
42
+ .tippy-content {
43
+ text-align: justify;
44
+ font-size: 0.875rem;
45
+ line-height: 1.25rem;
46
+ padding: 0.625rem;
47
+ }
48
+
49
+ .tippy-arrow {
50
+ position: relative;
51
+ width: 1rem;
52
+ height: 1rem;
53
+ }
54
+
55
+ &[data-placement^='top'] {
56
+ .tippy-arrow:before {
57
+ bottom: -0.4375rem;
58
+ border-width: 0.5rem 0.5rem 0 !important;
59
+ }
60
+ }
61
+
62
+ &[data-placement^='right'] {
63
+ .tippy-arrow:before {
64
+ left: -0.4375rem;
65
+ border-width: 0.5rem 0.5rem 0.5rem 0 !important;
66
+ }
67
+ }
68
+
69
+ &[data-placement^='bottom'] {
70
+ .tippy-arrow:before {
71
+ top: -0.4375rem;
72
+ border-width: 0 0.5rem 0.5rem !important;
73
+ }
74
+ }
75
+
76
+ &[data-placement^='left'] {
77
+ .tippy-arrow:before {
78
+ right: -0.4375rem;
79
+ border-width: 0.5rem 0 0.5rem 0.5rem !important;
80
+ }
81
+ }
82
+
83
+ &[data-placement^='bottom-start'] {
84
+ .tippy-arrow {
85
+ transform: translate(0.937rem, 0) !important;
86
+ }
87
+ }
88
+
89
+ &[data-placement^='bottom-end'] {
90
+ .tippy-arrow {
91
+ margin-left: calc(100% - 1.937rem);
92
+ transform: translate(0, 0) !important;
93
+ }
94
+ }
95
+
96
+ &[data-placement^='top-start'] {
97
+ .tippy-arrow {
98
+ transform: translate(0.937rem, 0) !important;
99
+ }
100
+ }
101
+
102
+ &[data-placement^='top-end'] {
103
+ .tippy-arrow {
104
+ transform: translate(0.937rem, 0) !important;
105
+ }
106
+ }
107
+
108
+ &.arrow-with-border {
109
+ border: 1px solid #d8dae5;
110
+
111
+ &[data-placement] {
112
+ .tippy-arrow {
113
+ top: 1px;
114
+ background-color: white;
115
+ z-index: 2;
116
+ height: 1px;
117
+
118
+ &:before {
119
+ width: 0.625rem;
120
+ height: 0.625rem;
121
+ background-color: white;
122
+ transform: rotate(45deg);
123
+ border: none;
124
+ border-left: 1px solid #d8dae5 !important;
125
+ border-top: 1px solid #d8dae5 !important;
126
+ z-index: 2;
127
+ top: -0.45rem;
128
+ transform-origin: center !important;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
@@ -1,85 +1,85 @@
1
- import React, { useState, useEffect, ReactNode } from 'react'
2
- import Tippy, { TippyProps } from '@tippyjs/react'
3
- import 'tippy.js/dist/tippy.css'
4
- import './Tooltip.scss'
5
-
6
- interface TooltipProps extends TippyProps {
7
- content: ReactNode
8
- success?: boolean
9
- onMouseEnter?: (event: React.MouseEvent<HTMLDivElement>) => void
10
- onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void
11
- visible?: boolean
12
- delay?: [number, number]
13
- type?: 'info' | 'function'
14
- maxWidth?: number
15
- className?: string
16
- arrowWithBorder?: boolean
17
- disabled?: boolean
18
- }
19
-
20
- const Tooltip: React.FC<TooltipProps> = ({
21
- children,
22
- content,
23
- success,
24
- onMouseEnter,
25
- onMouseLeave,
26
- visible,
27
- delay = [200, 400],
28
- type = 'info',
29
- maxWidth = 390,
30
- className,
31
- arrowWithBorder,
32
- disabled,
33
- ...props
34
- }) => {
35
- const [rootFontSize, setRootFontSize] = useState(16)
36
-
37
- useEffect(() => {
38
- const handleFontSizeChange = (fontSize: number) => {
39
- setRootFontSize((prev) => (prev !== fontSize ? fontSize : prev))
40
- }
41
-
42
- if (
43
- // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
44
- window.applicationUIScaling &&
45
- // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
46
- typeof window.applicationUIScaling.addEventHandler === 'function'
47
- ) {
48
- // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
49
- window.applicationUIScaling.addEventHandler(handleFontSizeChange)
50
- }
51
- }, [])
52
-
53
- return (
54
- <Tippy
55
- visible={visible}
56
- allowHTML={typeof content !== 'string'}
57
- interactive
58
- maxWidth={(maxWidth / 16) * rootFontSize}
59
- delay={delay}
60
- content={content}
61
- placement="bottom-start"
62
- className={`${success ? 'success' : ''} ${type} ${className || ''} ${
63
- arrowWithBorder ? 'arrow-with-border' : ''
64
- }`}
65
- disabled={disabled}
66
- {...props}
67
- >
68
- <div
69
- className="tooltip-custom-wrapper"
70
- onMouseEnter={onMouseEnter}
71
- onMouseLeave={onMouseLeave}
72
- >
73
- <div
74
- className="tooltip-custom-wrapper"
75
- onMouseEnter={onMouseEnter}
76
- onMouseLeave={onMouseLeave}
77
- >
78
- {children}
79
- </div>
80
- </div>
81
- </Tippy>
82
- )
83
- }
84
-
85
- export default Tooltip
1
+ import React, { useState, useEffect, ReactNode } from 'react'
2
+ import Tippy, { TippyProps } from '@tippyjs/react'
3
+ import 'tippy.js/dist/tippy.css'
4
+ import './Tooltip.scss'
5
+
6
+ interface TooltipProps extends TippyProps {
7
+ content: ReactNode
8
+ success?: boolean
9
+ onMouseEnter?: (event: React.MouseEvent<HTMLDivElement>) => void
10
+ onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void
11
+ visible?: boolean
12
+ delay?: [number, number]
13
+ type?: 'info' | 'function'
14
+ maxWidth?: number
15
+ className?: string
16
+ arrowWithBorder?: boolean
17
+ disabled?: boolean
18
+ }
19
+
20
+ const Tooltip: React.FC<TooltipProps> = ({
21
+ children,
22
+ content,
23
+ success,
24
+ onMouseEnter,
25
+ onMouseLeave,
26
+ visible,
27
+ delay = [200, 400],
28
+ type = 'info',
29
+ maxWidth = 390,
30
+ className,
31
+ arrowWithBorder,
32
+ disabled,
33
+ ...props
34
+ }) => {
35
+ const [rootFontSize, setRootFontSize] = useState(16)
36
+
37
+ useEffect(() => {
38
+ const handleFontSizeChange = (fontSize: number) => {
39
+ setRootFontSize((prev) => (prev !== fontSize ? fontSize : prev))
40
+ }
41
+
42
+ if (
43
+ // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
44
+ window.applicationUIScaling &&
45
+ // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
46
+ typeof window.applicationUIScaling.addEventHandler === 'function'
47
+ ) {
48
+ // @ts-ignore - Ignoring if `applicationUIScaling` doesn't exist
49
+ window.applicationUIScaling.addEventHandler(handleFontSizeChange)
50
+ }
51
+ }, [])
52
+
53
+ return (
54
+ <Tippy
55
+ visible={visible}
56
+ allowHTML={typeof content !== 'string'}
57
+ interactive
58
+ maxWidth={(maxWidth / 16) * rootFontSize}
59
+ delay={delay}
60
+ content={content}
61
+ placement="bottom-start"
62
+ className={`${success ? 'success' : ''} ${type} ${className || ''} ${
63
+ arrowWithBorder ? 'arrow-with-border' : ''
64
+ }`}
65
+ disabled={disabled}
66
+ {...props}
67
+ >
68
+ <div
69
+ className="tooltip-custom-wrapper"
70
+ onMouseEnter={onMouseEnter}
71
+ onMouseLeave={onMouseLeave}
72
+ >
73
+ <div
74
+ className="tooltip-custom-wrapper"
75
+ onMouseEnter={onMouseEnter}
76
+ onMouseLeave={onMouseLeave}
77
+ >
78
+ {children}
79
+ </div>
80
+ </div>
81
+ </Tippy>
82
+ )
83
+ }
84
+
85
+ export default Tooltip