@digi-frontend/dgate-api-documentation 1.4.96 → 2.0.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.
Files changed (35) hide show
  1. package/README.md +333 -0
  2. package/dist/index.cjs +983 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +793 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.ts +792 -6
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +955 -32
  9. package/dist/index.js.map +1 -1
  10. package/package.json +53 -69
  11. package/dist/index.css +0 -5
  12. package/dist/index.css.map +0 -1
  13. package/dist/index.d.mts +0 -7
  14. package/dist/index.mjs +0 -11
  15. package/dist/index.mjs.map +0 -1
  16. package/src/components/Chips/style.scss +0 -147
  17. package/src/components/InfoForm/InfoForm.module.scss +0 -165
  18. package/src/components/JsonInput/style.module.scss +0 -133
  19. package/src/components/LivePreview/LivePreview.module.scss +0 -181
  20. package/src/components/MethodAccordion/MethodAccordion.module.scss +0 -399
  21. package/src/components/SectionHead/SectionHead.scss +0 -29
  22. package/src/components/SimpleLabelValue/style.scss +0 -30
  23. package/src/components/Tooltip/Tooltip.scss +0 -133
  24. package/src/components/_global.scss +0 -338
  25. package/src/components/dialog/style.scss +0 -188
  26. package/src/components/table/style.scss +0 -223
  27. package/src/layout/docsComponents/Codebox/style.module.scss +0 -43
  28. package/src/layout/docsComponents/DocsAside/style.module.scss +0 -113
  29. package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +0 -382
  30. package/src/layout/docsComponents/DocsContent/OverviewPage/style.scss +0 -332
  31. package/src/layout/docsComponents/DocsContent/style.scss +0 -0
  32. package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +0 -297
  33. package/src/layout/docsComponents/DocsSideMenuTree/style.scss +0 -202
  34. package/src/layout/docsComponents/index.scss +0 -49
  35. package/src/test.scss +0 -3
@@ -1,297 +0,0 @@
1
- .api_docs_header {
2
- height: 3.125rem;
3
- background-color: #f0f1f2;
4
- display: flex;
5
- align-items: center;
6
- padding: 0 1rem;
7
- z-index: 1;
8
-
9
- .header_content {
10
- width: 100%;
11
- display: flex;
12
- align-items: center;
13
- }
14
-
15
- .nav_buttons {
16
- display: flex;
17
- gap: 1rem;
18
- margin-left: 2.9375rem;
19
- }
20
-
21
- .search_filter_btn {
22
- background-color: #ffffff !important;
23
- border: 1px solid #e8e9ee !important;
24
- width: 10.4375rem;
25
- height: 2.25rem;
26
- font-weight: 400;
27
- font-size: 1rem;
28
- line-height: 1.25rem;
29
-
30
- .btnContentWrapper {
31
- .btnContent {
32
- font-size: 0.918rem !important;
33
- }
34
- }
35
-
36
- &:hover:not(:disabled) {
37
- color: #000000 !important;
38
- }
39
-
40
- &:hover {
41
- color: #000 !important;
42
- }
43
-
44
- svg {
45
- margin-left: 0.5rem;
46
- }
47
- }
48
-
49
- :global(.guide-btn) {
50
- background-color: #ffffff !important;
51
- border: 0.82px solid #b8bfca !important;
52
- width: 5.658rem;
53
- font-size: 0.9175rem;
54
- font-weight: 400;
55
- line-height: 1.234rem;
56
- height: 2.25rem;
57
-
58
- &:disabled {
59
- opacity: 0.7;
60
- background-color: #ffffff !important;
61
- color: #667085 !important;
62
- }
63
-
64
- svg {
65
- margin-right: 0.4075rem;
66
- }
67
- }
68
-
69
- .api_btn {
70
- background-color: #ffffff !important;
71
- display: flex;
72
- flex-direction: row;
73
- align-items: center;
74
- border: none !important;
75
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
76
- padding: 0.4rem;
77
- width: 10.4875rem;
78
- font-size: 1rem;
79
- font-weight: 400;
80
- line-height: 1.234rem;
81
- height: 2.25rem;
82
-
83
- .btnContentWrapper {
84
- .btnContent {
85
- font-size: 0.918rem !important;
86
- }
87
- }
88
-
89
- &:hover:not(:disabled) {
90
- color: #000000 !important;
91
- }
92
-
93
- svg {
94
- margin-right: 0.4075rem;
95
- }
96
- }
97
- }
98
-
99
- :global(.tippy-arrow) {
100
- transform: translateX(12px) !important;
101
- }
102
-
103
- :global(.tippy-content) {
104
- padding: 0.5rem;
105
- text-align: center;
106
- font-size: 0.875rem;
107
- font-weight: 600;
108
- color: #ffffff;
109
- }
110
-
111
- /* Global styles */
112
- :global {
113
- .search-filter-form {
114
- display: flex;
115
- flex-direction: column;
116
- width: 100%;
117
- gap: 2.25rem;
118
- padding: 1.75rem 1.75rem 0rem 1.75rem;
119
- min-height: 17.687rem;
120
- transition: min-height 0.3s ease;
121
- &.expanded {
122
- min-height: 34.375rem;
123
- }
124
- }
125
-
126
- .search-filter-form.expanded {
127
- min-height: 34.375rem;
128
- }
129
-
130
- .search-filter-form__header {
131
- display: flex;
132
- align-items: center;
133
- justify-content: space-between;
134
- margin-bottom: 0.5rem;
135
- }
136
-
137
- .search-filter-form__header__title {
138
- font-size: 1.25rem;
139
- font-weight: 400;
140
- line-height: 1.75rem;
141
- color: #9ca1aa;
142
- margin: 0;
143
- }
144
-
145
- .search-filter-form__header svg {
146
- cursor: pointer;
147
- }
148
-
149
- .name-input {
150
- // border-color: #bbbec5 !important;
151
- width: 27.875rem;
152
- height: 2.5rem;
153
- border-radius: 0.5rem;
154
- border: 0.0625rem solid #bbbec5;
155
- padding-top: 0.5rem;
156
- padding-bottom: 0.5rem;
157
-
158
- > div.inputWrapper {
159
- border: 0px !important;
160
- }
161
- }
162
-
163
- .methodList {
164
- width: 27.875rem;
165
- border-radius: 0.5rem;
166
- border: 0.0625rem solid #f0f1f2;
167
-
168
- .method-item {
169
- display: flex;
170
- flex-direction: row;
171
- justify-content: flex-start;
172
- align-items: center;
173
- gap: 0.5rem;
174
- padding-left: 0.75rem;
175
- padding-right: 0.75rem;
176
- padding-top: 0.5rem;
177
- border-radius: 0.5rem;
178
- padding-bottom: 0.5rem;
179
- border-bottom: 1px solid #f0f1f2;
180
- span {
181
- font-weight: 400;
182
- font-size: 0.875rem;
183
- }
184
- input {
185
- cursor: pointer;
186
- width: 1.25rem;
187
- height: 1.25rem;
188
- border-radius: 0.25rem;
189
- border: 1px solid #64748b;
190
- }
191
- }
192
- }
193
-
194
- .method-container {
195
- display: flex;
196
- flex-direction: column;
197
- gap: 0.5rem;
198
- position: relative;
199
- z-index: 10;
200
-
201
- .typeDdl {
202
- cursor: pointer;
203
- width: 27.875rem;
204
- height: 2.5rem;
205
- border-radius: 0.5rem;
206
- border: 0.0625rem solid #bbbec5;
207
- padding-top: 0.5rem;
208
- padding-bottom: 0.5rem;
209
- padding-left: 1.3rem;
210
- padding-right: 0.75rem;
211
- display: flex;
212
- justify-content: space-between;
213
- align-items: center;
214
-
215
- span {
216
- font-weight: 400;
217
- font-size: 0.875rem;
218
- color: #8390a2;
219
- }
220
- }
221
- }
222
-
223
- .method-container label {
224
- font-size: 0.75rem;
225
- font-weight: 400;
226
- color: #000000;
227
- }
228
-
229
- #react-select-menu-portal {
230
- z-index: 9999 !important;
231
- }
232
-
233
- .button-container {
234
- display: flex;
235
- justify-content: center;
236
- width: 100%;
237
- padding-top: 0 !important;
238
- padding: 1.5rem 0;
239
- }
240
-
241
- .dialog-submit-btn {
242
- width: 100% !important;
243
- background-color: #4d75d9 !important;
244
- color: white !important;
245
- border-radius: 0.5rem !important;
246
- height: 2.25rem !important;
247
- box-shadow: 1px 1px 0.25rem 0px #00000040 inset !important;
248
- font-weight: 400;
249
- }
250
-
251
- .close-icon {
252
- top: 3.2rem !important;
253
- right: 3rem !important;
254
- cursor: pointer !important;
255
- }
256
- .custom-select-border > div {
257
- border: 1px solid #f0f1f2 !important;
258
- border-radius: 0.5rem !important;
259
- }
260
- .multiSelectGroup .optionsList .option {
261
- border-top: 1px solid #f0f1f2 !important;
262
- }
263
- .multiSelectGroup .optionsList .optionsContainer.optionsContainerWithSearch {
264
- max-height: 56.25rem !important;
265
- }
266
- .inputContainer .inputWrapper {
267
- border: 1px solid #f0f1f2 !important;
268
- }
269
- .rootContentWrapper {
270
- opacity: 1 !important;
271
- backdrop-filter: blur(0.5rem);
272
- background-color: rgba(0, 0, 0, 0.281) !important;
273
- }
274
-
275
- // Tooltip overrides
276
- .guide-tooltip.guide-tooltip.guide-tooltip.guide-tooltip {
277
- background-color: #000;
278
- border: none;
279
- border-radius: 0.75rem;
280
-
281
- &.tippy-box {
282
- .tippy-content.tippy-content {
283
- border-radius: 0.75rem;
284
- color: #fff;
285
- background-color: #000;
286
- }
287
- }
288
-
289
- .tippy-arrow.tippy-arrow.tippy-arrow.tippy-arrow {
290
- color: #000;
291
-
292
- &::before {
293
- color: #000;
294
- }
295
- }
296
- }
297
- }
@@ -1,202 +0,0 @@
1
- .api-docs-api-tree {
2
- width: 100%;
3
- max-width: 12.5rem;
4
- padding: 3rem 1.25rem;
5
- box-sizing: border-box;
6
-
7
- > * {
8
- box-sizing: border-box;
9
- }
10
-
11
- &__section {
12
- &-header {
13
- display: flex;
14
- align-items: center;
15
- gap: 0.25rem;
16
- padding-inline: 0.5rem;
17
- cursor: pointer;
18
- user-select: none;
19
- height: 2.5rem;
20
-
21
- &:hover {
22
- background-color: #f3f4f6;
23
- width: 100%;
24
- }
25
-
26
- svg {
27
- min-width: 1rem;
28
- }
29
-
30
- svg:first-child {
31
- path {
32
- stroke: #bbbec5;
33
- }
34
- }
35
- }
36
-
37
- &-title {
38
- font-size: 0.75rem;
39
- line-height: 0.875rem;
40
- font-weight: 500;
41
- color: #000;
42
- margin-left: 0.25rem;
43
- word-break: break-all;
44
- line-height: .9375rem;
45
- }
46
-
47
- &__overview {
48
- display: flex;
49
- align-items: center;
50
- gap: 0.5rem;
51
- padding: 0.5rem 1.75rem;
52
- border-radius: 0.25rem;
53
- cursor: pointer;
54
-
55
- &:hover {
56
- background-color: #f3f4f6;
57
- }
58
-
59
- span {
60
- font-size: 0.75rem;
61
- line-height: 0.875rem;
62
- color: #000000;
63
- }
64
-
65
- &[data-active='true'] {
66
- background-color: #f0f1f2;
67
- }
68
- }
69
-
70
- &__endpoints {
71
- display: flex;
72
- align-items: center;
73
- height: 1.5rem;
74
- gap: 0.5rem;
75
- border-radius: 0.25rem;
76
- padding-inline: 1.75rem;
77
- cursor: pointer;
78
-
79
- span {
80
- font-size: 0.75rem;
81
- line-height: 0.875rem;
82
- color: #000000;
83
- }
84
-
85
- &[data-active='true'] {
86
- background-color: #f0f1f2;
87
- }
88
- }
89
-
90
- &[data-active='true'] {
91
- .api-docs-api-tree__section-title {
92
- color: #616874;
93
- }
94
- }
95
- }
96
-
97
- &__endpoints {
98
- display: flex;
99
- flex-direction: column;
100
- align-items: start;
101
- gap: 0.5rem;
102
- border-radius: 0.25rem;
103
-
104
- cursor: pointer;
105
-
106
- span {
107
- font-size: 0.75rem;
108
- line-height: 0.875rem;
109
- color: #000000;
110
- }
111
-
112
- &[data-active='true'] {
113
- background-color: #f0f1f2;
114
- }
115
- }
116
-
117
- &__subsection {
118
- &-header {
119
- height: 2rem;
120
- display: flex;
121
- align-items: center;
122
- gap: 0.875rem;
123
- padding-inline: 0.5rem;
124
- cursor: pointer;
125
- user-select: none;
126
-
127
- svg {
128
- color: #6b7280;
129
- }
130
- }
131
-
132
- &-title {
133
- font-size: 0.75rem;
134
- line-height: 0.875rem;
135
- color: #616874;
136
- }
137
- }
138
-
139
- &__endpoint {
140
- display: flex;
141
- align-items: center;
142
- gap: 0.25rem;
143
- padding: 0.5rem 0.75rem;
144
- text-transform: capitalize;
145
- width: 100%;
146
- cursor: pointer;
147
-
148
- &[data-active='true'] {
149
- background-color: #f0f1f2;
150
- }
151
-
152
- &:hover {
153
- background-color: #f3f4f6;
154
- }
155
-
156
- &-method {
157
- font-size: 0.75rem;
158
- line-height: 0.875rem;
159
- font-weight: 400;
160
- text-align: start;
161
- }
162
-
163
- &-name {
164
- font-size: 0.75rem;
165
- line-height: 0.875rem;
166
- color: #3b3f46;
167
- display: -webkit-box;
168
- -webkit-box-orient: vertical;
169
- -webkit-line-clamp: 1;
170
- overflow: hidden;
171
- text-overflow: ellipsis;
172
- }
173
-
174
- &--get .api-docs-api-tree__endpoint-method {
175
- color: #3a6cd1;
176
- }
177
-
178
- &--post .api-docs-api-tree__endpoint-method {
179
- color: #3aaa35;
180
- }
181
-
182
- &--put .api-docs-api-tree__endpoint-method {
183
- color: #faad14;
184
- }
185
-
186
- &--delete .api-docs-api-tree__endpoint-method {
187
- color: #da3f3f;
188
- }
189
-
190
- &--option .api-docs-api-tree__endpoint-method {
191
- color: #495d97;
192
- }
193
-
194
- &--head .api-docs-api-tree__endpoint-method {
195
- color: #9461c9;
196
- }
197
-
198
- &--patch .api-docs-api-tree__endpoint-method {
199
- color: #58e2c2;
200
- }
201
- }
202
- }
@@ -1,49 +0,0 @@
1
- .api-docs-layout {
2
- @import url('https://fonts.googleapis.com/css2?family=Cascadia+Code:ital,wght@0,200..700;1,200..700&display=swap');
3
-
4
- display: grid;
5
- height: 100vh;
6
- max-height: 100%;
7
- width: 100%;
8
- overflow: hidden;
9
- grid-template: 2.625rem auto / 12.5rem 1fr auto;
10
- padding: 0 !important;
11
-
12
- * {
13
- scrollbar-width: thin;
14
- scrollbar-color: #bbbec5 #d1d3d8;
15
- scroll-behavior: smooth;
16
- }
17
-
18
- aside.api-docs-api-tree {
19
- grid-row: 2;
20
- grid-column: 1;
21
- border-right: 1px solid #bbbec5;
22
- background-color: white;
23
- }
24
-
25
- aside.api-docs-aside {
26
- grid-row: 2;
27
- grid-column: 3;
28
- width: 22.5rem;
29
- max-width: 22.5rem;
30
- overflow-x: clip;
31
- }
32
-
33
- aside,
34
- main {
35
- max-height: 100%;
36
- overflow: auto;
37
- }
38
-
39
- header {
40
- grid-column: 1 / -1;
41
- border-bottom: 1px solid #bbbec5;
42
- }
43
-
44
- main {
45
- grid-row: 2;
46
- grid-column: 2;
47
- background-color: white;
48
- }
49
- }
package/src/test.scss DELETED
@@ -1,3 +0,0 @@
1
- div {
2
- color: 'lightgray';
3
- }