@ostack.tech/ui-kform 0.1.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 (144) hide show
  1. package/README.md +3 -0
  2. package/dist/ostack-ui-kform.cjs +7534 -0
  3. package/dist/ostack-ui-kform.cjs.map +1 -0
  4. package/dist/ostack-ui-kform.css +858 -0
  5. package/dist/ostack-ui-kform.css.map +1 -0
  6. package/dist/ostack-ui-kform.js +7518 -0
  7. package/dist/ostack-ui-kform.js.map +1 -0
  8. package/dist/types/components/Annexes/Annex.d.ts +46 -0
  9. package/dist/types/components/Annexes/AnnexTab.d.ts +5 -0
  10. package/dist/types/components/Annexes/Annexes.d.ts +95 -0
  11. package/dist/types/components/Annexes/AnnexesContext.d.ts +87 -0
  12. package/dist/types/components/Annexes/AnnexesManager.d.ts +47 -0
  13. package/dist/types/components/Annexes/AnnexesMenu.d.ts +10 -0
  14. package/dist/types/components/Annexes/AnnexesTabList.d.ts +8 -0
  15. package/dist/types/components/Annexes/index.d.ts +3 -0
  16. package/dist/types/components/CheckboxControl/CheckboxControl.d.ts +48 -0
  17. package/dist/types/components/CheckboxControl/index.d.ts +1 -0
  18. package/dist/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +63 -0
  19. package/dist/types/components/CheckboxGroupControl/index.d.ts +1 -0
  20. package/dist/types/components/ControlField/ControlField.d.ts +50 -0
  21. package/dist/types/components/ControlField/ControlFieldContext.d.ts +33 -0
  22. package/dist/types/components/ControlField/index.d.ts +2 -0
  23. package/dist/types/components/DateControl/DateControl.d.ts +45 -0
  24. package/dist/types/components/DateControl/index.d.ts +1 -0
  25. package/dist/types/components/DateRangeControl/DateRangeControl.d.ts +79 -0
  26. package/dist/types/components/DateRangeControl/index.d.ts +1 -0
  27. package/dist/types/components/FileControl/FileControl.d.ts +68 -0
  28. package/dist/types/components/FileControl/index.d.ts +1 -0
  29. package/dist/types/components/FormApp/FormApp.d.ts +210 -0
  30. package/dist/types/components/FormApp/FormAppContext.d.ts +181 -0
  31. package/dist/types/components/FormApp/FormAppIssueMessages.d.ts +45 -0
  32. package/dist/types/components/FormApp/FormAppStatus.d.ts +23 -0
  33. package/dist/types/components/FormApp/index.d.ts +4 -0
  34. package/dist/types/components/FormPages/FormPage.d.ts +86 -0
  35. package/dist/types/components/FormPages/FormPageHeader.d.ts +7 -0
  36. package/dist/types/components/FormPages/FormPageSidebarItem.d.ts +6 -0
  37. package/dist/types/components/FormPages/FormPages.d.ts +40 -0
  38. package/dist/types/components/FormPages/FormPagesContext.d.ts +67 -0
  39. package/dist/types/components/FormPages/FormPagesNavigation.d.ts +12 -0
  40. package/dist/types/components/FormPages/FormPagesSelect.d.ts +7 -0
  41. package/dist/types/components/FormPages/FormPagesSelectOption.d.ts +6 -0
  42. package/dist/types/components/FormPages/FormPagesSidebar.d.ts +6 -0
  43. package/dist/types/components/FormPages/index.d.ts +3 -0
  44. package/dist/types/components/FormStepper/FormStep.d.ts +8 -0
  45. package/dist/types/components/FormStepper/FormStepContent.d.ts +20 -0
  46. package/dist/types/components/FormStepper/FormStepList.d.ts +7 -0
  47. package/dist/types/components/FormStepper/FormStepper.d.ts +71 -0
  48. package/dist/types/components/FormStepper/FormStepperContext.d.ts +65 -0
  49. package/dist/types/components/FormStepper/index.d.ts +3 -0
  50. package/dist/types/components/IssueAlert/IssueAlert.d.ts +13 -0
  51. package/dist/types/components/IssueAlert/index.d.ts +1 -0
  52. package/dist/types/components/IssueMessage/IssueMessage.d.ts +14 -0
  53. package/dist/types/components/IssueMessage/index.d.ts +1 -0
  54. package/dist/types/components/IssueMessages/IssueMessages.d.ts +70 -0
  55. package/dist/types/components/IssueMessages/index.d.ts +1 -0
  56. package/dist/types/components/IssuesPanel/IssuesPanel.d.ts +106 -0
  57. package/dist/types/components/IssuesPanel/IssuesPanelControls.d.ts +19 -0
  58. package/dist/types/components/IssuesPanel/IssuesPanelMessagesCard.d.ts +13 -0
  59. package/dist/types/components/IssuesPanel/IssuesPanelSummaryCard.d.ts +9 -0
  60. package/dist/types/components/IssuesPanel/index.d.ts +1 -0
  61. package/dist/types/components/IssuesPopover/IssuesPopover.d.ts +15 -0
  62. package/dist/types/components/IssuesPopover/index.d.ts +1 -0
  63. package/dist/types/components/LoadAction/LoadAction.d.ts +22 -0
  64. package/dist/types/components/LoadAction/index.d.ts +1 -0
  65. package/dist/types/components/NumericControl/NumericControl.d.ts +45 -0
  66. package/dist/types/components/NumericControl/index.d.ts +1 -0
  67. package/dist/types/components/PathLink/PathLink.d.ts +16 -0
  68. package/dist/types/components/PathLink/index.d.ts +1 -0
  69. package/dist/types/components/RadioGroupControl/RadioGroupControl.d.ts +56 -0
  70. package/dist/types/components/RadioGroupControl/index.d.ts +1 -0
  71. package/dist/types/components/SaveAction/SaveAction.d.ts +51 -0
  72. package/dist/types/components/SaveAction/index.d.ts +1 -0
  73. package/dist/types/components/SelectControl/SelectControl.d.ts +48 -0
  74. package/dist/types/components/SelectControl/index.d.ts +1 -0
  75. package/dist/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +55 -0
  76. package/dist/types/components/SelectMultipleControl/index.d.ts +1 -0
  77. package/dist/types/components/SubmitAction/SubmitAction.d.ts +94 -0
  78. package/dist/types/components/SubmitAction/index.d.ts +1 -0
  79. package/dist/types/components/TableControl/TableControl.d.ts +64 -0
  80. package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +25 -0
  81. package/dist/types/components/TableControl/TableControlApi.d.ts +25 -0
  82. package/dist/types/components/TableControl/TableControlCell.d.ts +7 -0
  83. package/dist/types/components/TableControl/TableControlColumn.d.ts +58 -0
  84. package/dist/types/components/TableControl/TableControlContent.d.ts +7 -0
  85. package/dist/types/components/TableControl/TableControlContext.d.ts +26 -0
  86. package/dist/types/components/TableControl/TableControlPagination.d.ts +2 -0
  87. package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +61 -0
  88. package/dist/types/components/TableControl/TableControlRow.d.ts +7 -0
  89. package/dist/types/components/TableControl/TableControlRowsPerPage.d.ts +2 -0
  90. package/dist/types/components/TableControl/index.d.ts +8 -0
  91. package/dist/types/components/TextControl/TextControl.d.ts +66 -0
  92. package/dist/types/components/TextControl/index.d.ts +1 -0
  93. package/dist/types/components/TopBar/TopBar.d.ts +6 -0
  94. package/dist/types/components/TopBar/TopBarActions.d.ts +7 -0
  95. package/dist/types/components/TopBar/index.d.ts +2 -0
  96. package/dist/types/components/ValidateAction/ValidateAction.d.ts +21 -0
  97. package/dist/types/components/ValidateAction/index.d.ts +1 -0
  98. package/dist/types/index.d.ts +36 -0
  99. package/dist/types/locale/LocalizationObject.d.ts +34 -0
  100. package/dist/types/locale/defaultLocale.d.ts +3 -0
  101. package/dist/types/locale/en-GB.d.ts +3 -0
  102. package/dist/types/locale/en-US.d.ts +3 -0
  103. package/dist/types/locale/en.d.ts +3 -0
  104. package/dist/types/locale/fr-FR.d.ts +3 -0
  105. package/dist/types/locale/index.d.ts +6 -0
  106. package/dist/types/locale/pt-PT.d.ts +3 -0
  107. package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +6 -0
  108. package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +10 -0
  109. package/dist/types/providers/LocalizationProvider/index.d.ts +3 -0
  110. package/dist/types/providers/LocalizationProvider/useLocale.d.ts +3 -0
  111. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixContext.d.ts +5 -0
  112. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixProvider.d.ts +9 -0
  113. package/dist/types/providers/PrefixSuffixProvider/index.d.ts +3 -0
  114. package/dist/types/providers/PrefixSuffixProvider/usePrefix.d.ts +6 -0
  115. package/dist/types/utils/dateRestrictions.d.ts +6 -0
  116. package/dist/types/utils/displayStatusConversions.d.ts +6 -0
  117. package/dist/types/utils/mostSpecificPath.d.ts +13 -0
  118. package/dist/types/utils/options.d.ts +18 -0
  119. package/dist/types/utils/pathSpecificity.d.ts +18 -0
  120. package/dist/types/utils/selectionTransformations.d.ts +32 -0
  121. package/dist/types/utils/useControlAutofocus.d.ts +32 -0
  122. package/dist/types/utils/useControlIssues.d.ts +27 -0
  123. package/dist/types/utils/useEqualityFn.d.ts +1 -0
  124. package/dist/types/utils/useFormLoader.d.ts +83 -0
  125. package/dist/types/utils/useFormSaver.d.ts +96 -0
  126. package/dist/types/utils/useFormValidator.d.ts +28 -0
  127. package/dist/types/utils/useRegisterControl.d.ts +24 -0
  128. package/dist/types/utils/useReportValidationFailures.d.ts +5 -0
  129. package/dist/types/utils/useTemporalStringTransformer.d.ts +21 -0
  130. package/package.json +70 -0
  131. package/scss/_utils.scss +6 -0
  132. package/scss/components/Annexes/_Annexes-variables.scss +17 -0
  133. package/scss/components/Annexes/_Annexes.scss +234 -0
  134. package/scss/components/FileControl/_FileControl.scss +52 -0
  135. package/scss/components/FormApp/_FormApp.scss +67 -0
  136. package/scss/components/FormPages/_FormPages-variables.scss +62 -0
  137. package/scss/components/FormPages/_FormPages.scss +288 -0
  138. package/scss/components/IssueMessages/_IssueMessages.scss +13 -0
  139. package/scss/components/IssuesPanel/_IssuesPanel-variables.scss +82 -0
  140. package/scss/components/IssuesPanel/_IssuesPanel.scss +196 -0
  141. package/scss/components/TableControl/_TableControl.scss +21 -0
  142. package/scss/components/TopBar/_TopBar.scss +52 -0
  143. package/scss/index.scss +11 -0
  144. package/scss/scss/_base-variables.scss +5 -0
@@ -0,0 +1,858 @@
1
+ @charset "UTF-8";
2
+ @keyframes oui-fade-in {
3
+ from {
4
+ opacity: 0;
5
+ }
6
+ to {
7
+ opacity: 1;
8
+ }
9
+ }
10
+ @keyframes oui-fade-out {
11
+ from {
12
+ opacity: 1;
13
+ }
14
+ to {
15
+ opacity: 0;
16
+ }
17
+ }
18
+ @keyframes oui-transform-in {
19
+ from {
20
+ opacity: 0;
21
+ transform: var(--oui-animation-transform);
22
+ }
23
+ to {
24
+ opacity: 1;
25
+ transform: none;
26
+ }
27
+ }
28
+ @keyframes oui-transform-out {
29
+ from {
30
+ opacity: 1;
31
+ transform: none;
32
+ }
33
+ to {
34
+ opacity: 0;
35
+ transform: var(--oui-animation-transform);
36
+ }
37
+ }
38
+ @keyframes oui-expand-vertical {
39
+ from {
40
+ opacity: 0;
41
+ height: 0;
42
+ }
43
+ 25% {
44
+ opacity: 0;
45
+ }
46
+ to {
47
+ opacity: 1;
48
+ height: var(--oui-animation-height);
49
+ }
50
+ }
51
+ @keyframes oui-collapse-vertical {
52
+ from {
53
+ opacity: 1;
54
+ height: var(--oui-animation-height);
55
+ }
56
+ 75% {
57
+ opacity: 0;
58
+ }
59
+ to {
60
+ opacity: 0;
61
+ height: 0;
62
+ }
63
+ }
64
+ @keyframes oui-expand-horizontal {
65
+ from {
66
+ opacity: 0;
67
+ width: 0;
68
+ }
69
+ 25% {
70
+ opacity: 0;
71
+ }
72
+ to {
73
+ opacity: 1;
74
+ width: var(--oui-animation-width);
75
+ }
76
+ }
77
+ @keyframes oui-collapse-horizontal {
78
+ from {
79
+ opacity: 1;
80
+ width: var(--oui-animation-width);
81
+ }
82
+ 75% {
83
+ opacity: 0;
84
+ }
85
+ to {
86
+ opacity: 0;
87
+ width: 0;
88
+ }
89
+ }
90
+ @keyframes oui-spinner-rotate {
91
+ to {
92
+ transform: rotate(360deg);
93
+ }
94
+ }
95
+ .oui-kform-annexes {
96
+ display: flex;
97
+ flex-direction: column;
98
+ }
99
+ .oui-kform-annexes__manager {
100
+ min-width: 200px;
101
+ display: flex;
102
+ align-items: flex-end;
103
+ flex: 1 1 auto;
104
+ }
105
+ .oui-kform-annexes__manager:not(:last-child) {
106
+ margin-right: calc(var(--oui-space) * 2);
107
+ }
108
+ @media (min-width: 576px) {
109
+ .oui-kform-annexes__manager:not(:last-child) {
110
+ margin-right: calc(var(--oui-space) * 4);
111
+ }
112
+ }
113
+ .oui-kform-annexes__menu-container {
114
+ margin-bottom: 2px;
115
+ padding-right: calc(var(--oui-space) * 2);
116
+ box-shadow: 0 2px 0 0 var(--oui-primary-9);
117
+ }
118
+ @media (min-width: 576px) {
119
+ .oui-kform-annexes__menu-container {
120
+ padding-right: calc(var(--oui-space) * 4);
121
+ }
122
+ }
123
+ .oui-kform-annexes__issues-popover-container {
124
+ margin-left: calc(var(--oui-space) * -4);
125
+ margin-right: calc(var(--oui-space) * 7);
126
+ padding-top: calc(var(--oui-space) * 0.5);
127
+ height: 44px;
128
+ }
129
+ .oui-kform-annexes__tab-list-container {
130
+ flex: 1;
131
+ overflow: hidden;
132
+ }
133
+ .oui-kform-annexes__menu-trigger {
134
+ height: 44px;
135
+ border-bottom-left-radius: 0;
136
+ border-bottom-right-radius: 0;
137
+ color: var(--oui-primary-9) !important;
138
+ }
139
+ .oui-kform-annexes__menu-trigger[data-state=open] {
140
+ border-color: #cdced6;
141
+ border-bottom-color: transparent;
142
+ background-color: var(--oui-background-color) !important;
143
+ position: relative;
144
+ z-index: 1001;
145
+ }
146
+ .oui-kform-annexes__menu {
147
+ width: 270px;
148
+ }
149
+ .oui-kform-annexes__menu[data-align=start][data-side=bottom] {
150
+ border-top-left-radius: 0;
151
+ }
152
+ .oui-kform-annexes__menu[data-align=start][data-side=top] {
153
+ border-bottom-left-radius: 0;
154
+ }
155
+ @media (max-width: 575.98px) {
156
+ .oui-kform-annexes__menu {
157
+ min-width: 100vw;
158
+ margin-left: -5px;
159
+ border-radius: 0;
160
+ border-right-width: 0;
161
+ }
162
+ }
163
+ .oui-kform-annexes__menu-annex[data-status] {
164
+ position: relative;
165
+ }
166
+ .oui-kform-annexes__menu-annex[data-status]::after {
167
+ content: "";
168
+ position: absolute;
169
+ top: 0;
170
+ left: calc((var(--oui-space) * 5 + var(--oui-space) * -3) * -1);
171
+ height: 100%;
172
+ width: 3px;
173
+ border-radius: 0 var(--oui-border-radius-sm) var(--oui-border-radius-sm) 0;
174
+ background-color: var(--oui-accent-9);
175
+ }
176
+ .oui-kform-annexes__menu-annex-action {
177
+ position: relative;
178
+ min-height: 40px;
179
+ }
180
+ .oui-kform-annexes__menu-annex-content {
181
+ display: flex;
182
+ align-items: center;
183
+ justify-content: space-between;
184
+ width: 100%;
185
+ }
186
+ .oui-kform-annexes__menu-annex-content-container {
187
+ overflow: hidden;
188
+ }
189
+ .oui-kform-annexes__menu-annex-title {
190
+ font-weight: 700;
191
+ overflow: hidden;
192
+ text-overflow: ellipsis;
193
+ white-space: nowrap;
194
+ }
195
+ .oui-kform-annexes__menu-annex-subtitle {
196
+ margin-left: calc(var(--oui-space) * 2);
197
+ font-weight: 400;
198
+ font-size: 0.75rem;
199
+ line-height: 0.75rem;
200
+ text-transform: none;
201
+ }
202
+ .oui-kform-annexes__menu-annex-description {
203
+ font-weight: 400;
204
+ text-transform: none;
205
+ }
206
+ .oui-kform-annexes__menu-annex-remove {
207
+ margin-left: calc(var(--oui-space) * 2);
208
+ min-height: 28px;
209
+ min-width: 28px;
210
+ }
211
+ .oui-kform-annexes__menu-new-annex-content {
212
+ display: flex;
213
+ width: 100%;
214
+ }
215
+ .oui-kform-annexes__menu-new-annex-title {
216
+ flex: 1;
217
+ font-weight: 700;
218
+ color: #3e63dd;
219
+ }
220
+ .oui-kform-annexes__menu-new-annex-description {
221
+ flex: 2;
222
+ margin-left: calc(var(--oui-space) * 2);
223
+ font-weight: 400;
224
+ text-transform: none;
225
+ }
226
+ .oui-kform-annexes__tab-inner {
227
+ flex-direction: column;
228
+ height: 100%;
229
+ min-height: 44px;
230
+ }
231
+ .oui-kform-annexes__tab-title, .oui-kform-annexes__tab-subtitle {
232
+ display: block;
233
+ max-width: 100%;
234
+ overflow: hidden;
235
+ text-overflow: ellipsis;
236
+ white-space: nowrap;
237
+ }
238
+ .oui-kform-annexes__tab-subtitle {
239
+ font-weight: 400;
240
+ font-size: 0.75rem;
241
+ line-height: 1.3333333333;
242
+ }
243
+ .oui-kform-annexes__tab[data-has-issues] .oui-kform-annexes__tab-inner {
244
+ padding-right: calc(var(--oui-space) * 2 * 2 + var(--oui-font-size-md) + (32px - var(--oui-font-size-md) - 2px) / 2);
245
+ }
246
+ .oui-kform-annexes__tab-issues-popover-button-container {
247
+ z-index: calc(var(--oui-z-index-focused) + 1);
248
+ margin-left: calc(-32px - var(--oui-tabs-tab-list-gap-x) - (32px - var(--oui-font-size-md) - 2px) / 2 / 2);
249
+ padding-right: calc(var(--oui-tabs-tab-list-gap-x) + (32px - var(--oui-font-size-md) - 2px) / 2 / 2);
250
+ }
251
+ .oui-kform-annexes__tab-issues-popover-button .oui-icon {
252
+ filter: drop-shadow(0 -1px 0 var(--oui-background-color)) drop-shadow(1px 0 0 var(--oui-background-color)) drop-shadow(0 1px 0 var(--oui-background-color)) drop-shadow(-1px 0 0 var(--oui-background-color));
253
+ }
254
+ .oui-kform-annexes__annex {
255
+ min-height: calc(var(--oui-kform-form-app-min-height) - var(--oui-kform-top-bar-height) - var(--oui-kform-bottom-panel-height));
256
+ }
257
+
258
+ .oui-kform-file-control__viewer-dialog {
259
+ width: fit-content;
260
+ min-width: 0;
261
+ max-width: min(100dvw - var(--oui-space) * 14, 1140px);
262
+ }
263
+ .oui-kform-file-control__viewer-download {
264
+ margin-left: calc(var(--oui-space) * 4);
265
+ }
266
+ .oui-kform-file-control__viewer-dialog-title {
267
+ overflow: hidden;
268
+ text-overflow: ellipsis;
269
+ white-space: nowrap;
270
+ }
271
+ .oui-kform-file-control__viewer-dialog-body {
272
+ padding: 0 !important;
273
+ }
274
+ .oui-kform-file-control__viewer-object {
275
+ display: flex;
276
+ justify-content: center;
277
+ max-width: 100%;
278
+ width: auto;
279
+ max-height: calc(100dvh - 50px - 64px);
280
+ margin: 0 auto;
281
+ border-bottom-left-radius: var(--oui-border-radius-xs);
282
+ border-bottom-right-radius: var(--oui-border-radius-xs);
283
+ background-color: var(--oui-background-color);
284
+ }
285
+ .oui-kform-file-control__viewer-object:not([type^="image/"]):not([type^="video/"]):not([type^="audio/"]) {
286
+ width: 100vw;
287
+ height: calc(100dvh - 50px - 64px);
288
+ }
289
+ .oui-kform-file-control__viewer-fallback {
290
+ margin: calc(var(--oui-space) * 3) calc(var(--oui-space) * 4);
291
+ }
292
+
293
+ .oui-spinner {
294
+ display: inline-flex;
295
+ flex: none;
296
+ width: 1em;
297
+ height: 1em;
298
+ border-radius: 50%;
299
+ border: clamp(1px, 0.15em, 6px) solid currentColor;
300
+ border-right-color: transparent;
301
+ animation: 0.75s linear infinite oui-spinner-rotate;
302
+ }
303
+ @media (prefers-reduced-motion: reduce) {
304
+ .oui-spinner {
305
+ animation-duration: 1.5s;
306
+ }
307
+ }
308
+ .oui-spinner[data-accent] {
309
+ color: var(--oui-accent-a11);
310
+ }
311
+ .oui-spinner--3xs {
312
+ font-size: 0.5625rem;
313
+ }
314
+ .oui-spinner--2xs {
315
+ font-size: 0.625rem;
316
+ }
317
+ .oui-spinner--xs {
318
+ font-size: 0.75rem;
319
+ }
320
+ .oui-spinner--sm {
321
+ font-size: 0.875rem;
322
+ }
323
+ .oui-spinner--md {
324
+ font-size: 1rem;
325
+ }
326
+ .oui-spinner--lg {
327
+ font-size: 1.125rem;
328
+ }
329
+ .oui-spinner--xl {
330
+ font-size: 1.25rem;
331
+ }
332
+ .oui-spinner--2xl {
333
+ font-size: 1.5rem;
334
+ }
335
+ .oui-spinner--3xl {
336
+ font-size: 1.875rem;
337
+ }
338
+ .oui-spinner--4xl {
339
+ font-size: 2.25rem;
340
+ }
341
+ .oui-spinner--5xl {
342
+ font-size: 3rem;
343
+ }
344
+ .oui-spinner--6xl {
345
+ font-size: 3.75rem;
346
+ }
347
+ .oui-spinner--7xl {
348
+ font-size: 4.5rem;
349
+ }
350
+ .oui-spinner--8xl {
351
+ font-size: 6rem;
352
+ }
353
+ .oui-spinner--9xl {
354
+ font-size: 8rem;
355
+ }
356
+
357
+ .oui-kform-form-app {
358
+ position: relative;
359
+ min-height: var(--oui-kform-form-app-min-height);
360
+ margin-bottom: 0;
361
+ background-color: var(--oui-background-color);
362
+ --oui-kform-form-app-min-height: 100dvh;
363
+ }
364
+ .oui-kform-form-app[data-has-min-height-xs] {
365
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-xs);
366
+ }
367
+ @media (min-width: 576px) {
368
+ .oui-kform-form-app[data-has-min-height-sm] {
369
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-sm);
370
+ }
371
+ }
372
+ @media (min-width: 768px) {
373
+ .oui-kform-form-app[data-has-min-height-md] {
374
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-md);
375
+ }
376
+ }
377
+ @media (min-width: 992px) {
378
+ .oui-kform-form-app[data-has-min-height-lg] {
379
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-lg);
380
+ }
381
+ }
382
+ @media (min-width: 1200px) {
383
+ .oui-kform-form-app[data-has-min-height-xl] {
384
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-xl);
385
+ }
386
+ }
387
+ @media (min-width: 1400px) {
388
+ .oui-kform-form-app[data-has-min-height-xxl] {
389
+ --oui-kform-form-app-min-height: var(--oui-kform-form-app-min-height-xxl);
390
+ }
391
+ }
392
+ .oui-kform-form-app:focus-visible {
393
+ outline: none;
394
+ }
395
+ .oui-kform-form-app::after {
396
+ content: "";
397
+ position: absolute;
398
+ pointer-events: none;
399
+ z-index: 1300;
400
+ }
401
+ @media (prefers-reduced-motion: no-preference) {
402
+ .oui-kform-form-app::after {
403
+ transition-property: outline-color;
404
+ transition-duration: var(--oui-transition-duration);
405
+ transition-timing-function: var(--oui-transition-timing-function);
406
+ }
407
+ }
408
+ .oui-kform-form-app:focus-visible::after {
409
+ top: 0;
410
+ left: 0;
411
+ width: 100%;
412
+ height: 100%;
413
+ outline: 2px solid #8da4ef;
414
+ outline-offset: -3px;
415
+ }
416
+ .oui-overlay .oui-kform-form-app {
417
+ --oui-kform-form-app-min-height: auto;
418
+ }
419
+ .oui-kform-form-app__container:empty {
420
+ display: flex;
421
+ align-items: center;
422
+ justify-content: center;
423
+ padding: calc(var(--oui-space) * 30) calc(var(--oui-space) * 10);
424
+ }
425
+ .oui-kform-form-app__container:empty::after {
426
+ content: "";
427
+ color: #3e63dd;
428
+ font-size: 3.75rem;
429
+ display: inline-flex;
430
+ flex: none;
431
+ width: 1em;
432
+ height: 1em;
433
+ border-radius: 50%;
434
+ border: clamp(1px, 0.15em, 6px) solid currentColor;
435
+ border-right-color: transparent;
436
+ animation: 0.75s linear infinite oui-spinner-rotate;
437
+ }
438
+ @media (prefers-reduced-motion: reduce) {
439
+ .oui-kform-form-app__container:empty::after {
440
+ animation-duration: 1.5s;
441
+ }
442
+ }
443
+
444
+ .oui-kform-form-pages {
445
+ display: flex;
446
+ justify-content: stretch;
447
+ height: 100%;
448
+ }
449
+ .oui-kform-form-pages__navigation[data-navigation-mode=sidebar] {
450
+ flex-shrink: 0;
451
+ width: 220px;
452
+ min-height: calc(var(--oui-kform-form-app-min-height) - var(--oui-kform-top-bar-height));
453
+ margin-bottom: calc(var(--oui-kform-bottom-panel-height) * -1);
454
+ background-color: var(--oui-primary-a3);
455
+ border-right: 1px solid var(--oui-primary-4);
456
+ }
457
+ @media (min-width: 1200px) {
458
+ .oui-kform-form-pages__navigation[data-navigation-mode=sidebar] {
459
+ width: 300px;
460
+ }
461
+ }
462
+ .oui-kform-form-pages__sidebar {
463
+ position: sticky;
464
+ top: var(--oui-kform-top-bar-height);
465
+ z-index: calc(var(--oui-z-index-sticky) + 1);
466
+ max-height: calc(100dvh - var(--oui-kform-top-bar-height));
467
+ overflow: auto;
468
+ }
469
+ .oui-kform-form-pages__sidebar-item-content {
470
+ display: flex;
471
+ align-items: center;
472
+ }
473
+ .oui-kform-form-pages__sidebar-item-code {
474
+ display: flex;
475
+ flex: 0 0 auto;
476
+ align-items: center;
477
+ justify-content: center;
478
+ min-width: 20px;
479
+ min-height: 20px;
480
+ margin-right: calc(var(--oui-space) * 2);
481
+ padding: calc(var(--oui-space) * 0.5);
482
+ border-radius: var(--oui-border-radius-sm);
483
+ font-size: var(--oui-font-size-xs);
484
+ line-height: var(--oui-line-height-xs);
485
+ font-weight: 700;
486
+ background-color: var(--oui-primary-2);
487
+ color: var(--oui-primary-9);
488
+ }
489
+ @media (prefers-reduced-motion: no-preference) {
490
+ .oui-kform-form-pages__sidebar-item-code {
491
+ transition-property: var(--oui-transition-property);
492
+ transition-duration: var(--oui-transition-duration);
493
+ transition-timing-function: var(--oui-transition-timing-function);
494
+ }
495
+ }
496
+ .oui-kform-form-pages__sidebar-item-code[data-selected] {
497
+ background-color: rgba(255, 255, 255, 0.25);
498
+ color: var(--oui-primary-contrast);
499
+ }
500
+ .oui-kform-form-pages__sidebar-item-code[data-status] {
501
+ background-color: var(--oui-accent-9);
502
+ color: var(--oui-accent-contrast);
503
+ }
504
+ .oui-kform-form-pages[data-navigation-mode=select] {
505
+ flex-direction: column;
506
+ }
507
+ .oui-kform-form-pages__navigation[data-navigation-mode=select] {
508
+ position: sticky;
509
+ top: var(--oui-kform-top-bar-height);
510
+ z-index: calc(var(--oui-z-index-sticky) + 2);
511
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
512
+ }
513
+ .oui-kform-form-pages__select-container[data-variant=default] {
514
+ border-radius: 0;
515
+ border: 0;
516
+ background-color: var(--oui-primary-9);
517
+ background-image: none;
518
+ }
519
+ .oui-kform-form-pages__select-container[data-variant=default][data-focused] {
520
+ box-shadow: inset 0 0 0 2px var(--oui-neutral-a12);
521
+ }
522
+ .oui-kform-form-pages__select[data-variant=default] {
523
+ padding-top: calc(var(--oui-space) * 2 - 2px);
524
+ padding-bottom: calc(var(--oui-space) * 2);
525
+ height: auto;
526
+ border-radius: 0 !important;
527
+ font-weight: 700;
528
+ font-size: 1rem;
529
+ color: var(--oui-background-color);
530
+ }
531
+ @media (prefers-reduced-motion: no-preference) {
532
+ .oui-kform-form-pages__select[data-variant=default] {
533
+ transition-property: var(--oui-transition-property);
534
+ transition-duration: var(--oui-transition-duration);
535
+ transition-timing-function: var(--oui-transition-timing-function);
536
+ }
537
+ }
538
+ .oui-kform-form-pages__select-value > span, .oui-kform-form-pages__select-option > span {
539
+ display: flex;
540
+ align-items: center;
541
+ }
542
+ .oui-kform-form-pages__select-popover {
543
+ min-width: 0;
544
+ width: calc(100dvw - var(--oui-space));
545
+ }
546
+ .oui-kform-form-pages__select-option-code {
547
+ display: inline-flex;
548
+ flex: 0 0 auto;
549
+ align-items: center;
550
+ justify-content: center;
551
+ min-width: 30px;
552
+ min-height: 30px;
553
+ margin-right: calc(var(--oui-space) * 3);
554
+ padding: calc(var(--oui-space) * 0.5) var(--oui-space);
555
+ border-radius: var(--oui-border-radius-sm);
556
+ font-size: var(--oui-font-size-sm);
557
+ line-height: var(--oui-line-height-sm);
558
+ font-weight: 700;
559
+ background-color: rgba(255, 255, 255, 0.6);
560
+ color: var(--oui-primary-9);
561
+ }
562
+ @media (prefers-reduced-motion: no-preference) {
563
+ .oui-kform-form-pages__select-option-code {
564
+ transition-property: var(--oui-transition-property);
565
+ transition-duration: var(--oui-transition-duration);
566
+ transition-timing-function: var(--oui-transition-timing-function);
567
+ }
568
+ }
569
+ .oui-kform-form-pages__select-value .oui-kform-form-pages__select-option-code, .oui-kform-form-pages__select-option[data-state=checked] .oui-kform-form-pages__select-option-code:not([data-status]) {
570
+ background-color: rgba(255, 255, 255, 0.25);
571
+ color: var(--oui-background-color);
572
+ }
573
+ .oui-kform-form-pages__select-option-code[data-status] {
574
+ background-color: var(--oui-accent-9);
575
+ color: var(--oui-accent-contrast);
576
+ }
577
+ .oui-kform-form-pages__select-arrow {
578
+ color: var(--oui-background-color);
579
+ }
580
+ .oui-kform-form-pages__page {
581
+ flex: 1;
582
+ min-width: 0;
583
+ min-height: calc(var(--oui-kform-form-app-min-height) - var(--oui-kform-top-bar-height) - var(--oui-kform-form-pages-navigation-select-height) - var(--oui-kform-bottom-panel-height));
584
+ background-color: var(--oui-background-color);
585
+ }
586
+ .oui-kform-form-pages__page-header {
587
+ position: sticky;
588
+ top: var(--oui-kform-top-bar-height);
589
+ z-index: 1101;
590
+ display: flex;
591
+ align-items: center;
592
+ padding: calc(var(--oui-space) * 2) calc(var(--oui-space) * 4);
593
+ border-bottom: 1px solid var(--oui-primary-3);
594
+ background-color: var(--oui-background-color);
595
+ }
596
+ @media (max-width: 575.98px) {
597
+ .oui-kform-form-pages__navigation + .oui-kform-form-pages__page > .oui-kform-form-pages__page-header {
598
+ background-color: transparent;
599
+ padding-left: calc(var(--oui-space) * 2.5);
600
+ padding-right: calc(var(--oui-space) * 2.5);
601
+ overflow: hidden;
602
+ }
603
+ .oui-kform-form-pages__navigation + .oui-kform-form-pages__page > .oui-kform-form-pages__page-header:not([data-has-popovers]) {
604
+ padding: 0;
605
+ border: 0;
606
+ }
607
+ .oui-kform-form-pages__navigation + .oui-kform-form-pages__page > .oui-kform-form-pages__page-header > .oui-kform-form-pages__page-code, .oui-kform-form-pages__navigation + .oui-kform-form-pages__page > .oui-kform-form-pages__page-header > .oui-kform-form-pages__page-title {
608
+ display: none;
609
+ }
610
+ .oui-kform-form-pages__navigation + .oui-kform-form-pages__page > .oui-kform-form-pages__page-content {
611
+ top: calc(var(--oui-kform-top-bar-height) + var(--oui-kform-form-pages-navigation-select-height));
612
+ }
613
+ }
614
+ .oui-kform-form-pages__page-code {
615
+ display: flex;
616
+ align-items: center;
617
+ justify-content: center;
618
+ min-height: 24px;
619
+ min-width: 24px;
620
+ margin-right: calc(var(--oui-space) * 2);
621
+ border-radius: var(--oui-border-radius-sm);
622
+ padding: calc(var(--oui-space) * 0.5) var(--oui-space);
623
+ background-color: var(--oui-primary-3);
624
+ color: var(--oui-primary-9);
625
+ font-size: 0.875rem;
626
+ line-height: 1.4285714286;
627
+ font-weight: 700;
628
+ }
629
+ @media (prefers-reduced-motion: no-preference) {
630
+ .oui-kform-form-pages__page-code {
631
+ transition-property: var(--oui-transition-property);
632
+ transition-duration: var(--oui-transition-duration);
633
+ transition-timing-function: var(--oui-transition-timing-function);
634
+ }
635
+ }
636
+ .oui-kform-form-pages__page-code[data-status] {
637
+ background-color: var(--oui-accent-9);
638
+ color: var(--oui-accent-contrast);
639
+ }
640
+ .oui-kform-form-pages__page-title {
641
+ margin: 0;
642
+ color: var(--oui-primary-9);
643
+ font-size: 1rem;
644
+ line-height: 1.5;
645
+ font-weight: 700;
646
+ }
647
+ .oui-kform-form-pages__page-title:not(:last-child) {
648
+ margin-right: calc(var(--oui-space) * 4);
649
+ }
650
+ .oui-kform-form-pages__page-header-popovers {
651
+ margin-left: auto;
652
+ margin-right: calc(var(--oui-space) * -0.5);
653
+ }
654
+ .oui-kform-form-pages__page-helper-button, .oui-kform-form-pages__page-issues-popover-button {
655
+ margin-top: calc(var(--oui-space) * -3) !important;
656
+ margin-bottom: calc(var(--oui-space) * -3) !important;
657
+ margin-right: calc(var(--oui-space) * -1.5) !important;
658
+ }
659
+ .oui-kform-form-pages__page-helper-popover {
660
+ max-width: min(720px, var(--radix-popover-content-available-width));
661
+ max-height: min(600px, var(--radix-popover-content-available-height));
662
+ padding: var(--oui-space) calc(var(--oui-space) * 2);
663
+ }
664
+ .oui-kform-form-pages__page-content {
665
+ position: sticky;
666
+ top: calc(var(--oui-kform-top-bar-height) + var(--oui-kform-form-pages-page-header-height));
667
+ z-index: 1100;
668
+ padding: calc(var(--oui-space) * 4);
669
+ }
670
+ @media (min-width: 576px) {
671
+ .oui-kform-form-pages__page-content {
672
+ padding-bottom: calc(var(--oui-kform-bottom-panel-height) + var(--oui-space) * 4);
673
+ margin-bottom: calc(var(--oui-kform-bottom-panel-height) * -1);
674
+ }
675
+ }
676
+
677
+ .oui-kform-issue-messages__issue-code {
678
+ font-style: italic;
679
+ opacity: 0.9;
680
+ }
681
+ .oui-kform-issue-messages__issue-code::before {
682
+ content: " ";
683
+ }
684
+
685
+ .oui-kform-issues-panel {
686
+ border-radius: var(--oui-border-radius-sm) var(--oui-border-radius-sm) 0 0;
687
+ pointer-events: auto;
688
+ overflow: auto;
689
+ }
690
+ .oui-kform-issues-panel.oui-card {
691
+ padding: 0;
692
+ border-width: 1px 1px 0 1px;
693
+ }
694
+ @media (max-width: 575.98px) {
695
+ .oui-kform-issues-panel {
696
+ border-radius: 0;
697
+ }
698
+ .oui-kform-issues-panel.oui-card {
699
+ border-width: 1px 0 0 0;
700
+ }
701
+ }
702
+ .oui-kform-issues-panel__container {
703
+ position: sticky;
704
+ bottom: 0;
705
+ z-index: 1101;
706
+ display: flex;
707
+ justify-content: center;
708
+ pointer-events: none;
709
+ }
710
+ @media (prefers-reduced-motion: no-preference) {
711
+ .oui-kform-issues-panel__container {
712
+ animation: oui-fade-in var(--oui-animation-fade-duration) var(--oui-animation-fade-timing-function);
713
+ }
714
+ }
715
+ @media (min-width: 576px) {
716
+ .oui-kform-issues-panel {
717
+ width: calc(100% - var(--oui-space) * 4 * 2);
718
+ padding: calc(var(--oui-space) * 3) calc(var(--oui-space) * 4);
719
+ }
720
+ .oui-kform-issues-panel__container {
721
+ padding-left: var(--oui-kform-left-sidebar-width);
722
+ }
723
+ }
724
+ .oui-kform-issues-panel--messages {
725
+ min-height: 190px;
726
+ max-height: 260px;
727
+ }
728
+ .oui-kform-issues-panel__header {
729
+ display: block;
730
+ padding: 0 calc(var(--oui-space) * 4) calc(var(--oui-space) * 2) !important;
731
+ position: sticky;
732
+ top: 0;
733
+ z-index: 1100;
734
+ }
735
+ .oui-kform-issues-panel__header[data-stuck]::before {
736
+ content: "";
737
+ pointer-events: none;
738
+ position: absolute;
739
+ width: 100%;
740
+ height: 8px;
741
+ left: 0;
742
+ bottom: -8px;
743
+ background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent);
744
+ }
745
+ .oui-kform-issues-panel--summary .oui-kform-issues-panel__header {
746
+ padding-bottom: 0 !important;
747
+ }
748
+ .oui-kform-issues-panel__body {
749
+ padding: 0 calc(var(--oui-space) * 4) calc(var(--oui-space) * 3) !important;
750
+ }
751
+ .oui-kform-issues-panel__loading-spinner, .oui-kform-issues-panel__icon {
752
+ display: inline-block;
753
+ vertical-align: middle;
754
+ margin: calc(var(--oui-space) * 5) calc(var(--oui-space) * 3) calc(var(--oui-space) * 5) 0;
755
+ }
756
+ .oui-kform-issues-panel__action:not(:first-child) {
757
+ margin-left: var(--oui-space);
758
+ }
759
+ .oui-kform-issues-panel__title {
760
+ display: inline-block;
761
+ vertical-align: middle;
762
+ font-size: 1rem !important;
763
+ line-height: 1.5 !important;
764
+ }
765
+ @media (max-width: 575.98px) {
766
+ .oui-kform-issues-panel__title {
767
+ font-size: 0.875rem !important;
768
+ line-height: !important;
769
+ }
770
+ }
771
+ .oui-kform-issues-panel__breadcrumb-item:not(:last-child)::after {
772
+ content: "›";
773
+ margin: 0 calc(var(--oui-space) * 1.5);
774
+ }
775
+ .oui-kform-issues-panel__controls {
776
+ float: right;
777
+ display: flex;
778
+ align-items: center;
779
+ margin: calc(var(--oui-space) * 3.5) 0 calc(var(--oui-space) * 3.5) calc(var(--oui-space) * 4);
780
+ }
781
+ .oui-kform-issues-panel__validating-spinner {
782
+ margin-right: calc(var(--oui-space) * 2);
783
+ }
784
+ .oui-kform-issues-panel__pagination {
785
+ flex-shrink: 0;
786
+ font-size: 0.75rem;
787
+ line-height: 1.3333333333;
788
+ font-weight: 700;
789
+ text-align: right;
790
+ }
791
+ .oui-kform-issues-panel__pagination, .oui-kform-issues-panel__focus, .oui-kform-issues-panel__last {
792
+ margin-right: calc(var(--oui-space) * 3);
793
+ }
794
+ .oui-kform-issues-panel__close-button {
795
+ margin-left: auto;
796
+ }
797
+ .oui-kform-issues-panel__issues-list-title {
798
+ margin: 0 0 calc(var(--oui-space) * 2);
799
+ font-size: var(--oui-font-size-sm) !important;
800
+ line-height: var(--oui-line-height-sm) !important;
801
+ }
802
+ .oui-kform-issues-panel__issues-list {
803
+ margin: 0 0 calc(var(--oui-space) * 4);
804
+ padding-left: calc(var(--oui-space) * 4);
805
+ }
806
+ .oui-kform-issues-panel__issue, .oui-kform-issues-panel__resolved-message {
807
+ font-size: var(--oui-font-size-xs);
808
+ line-height: var(--oui-line-height-xs);
809
+ }
810
+ .oui-kform-issues-panel__issue:not(:first-child) {
811
+ margin-top: calc(var(--oui-space) * 2);
812
+ }
813
+ .oui-kform-issues-panel__issue-code {
814
+ font-style: italic;
815
+ opacity: 0.9;
816
+ }
817
+ .oui-kform-issues-panel__issue-code::before {
818
+ content: " ";
819
+ }
820
+
821
+ .oui-kform-table-control > .oui-kform-table-control__add-row-trigger {
822
+ float: right;
823
+ margin-bottom: calc(var(--oui-space) * 2);
824
+ margin-left: calc(var(--oui-space) * 2);
825
+ }
826
+ .oui-kform-table-control > .oui-kform-table-control__add-row-trigger + .oui-kform-table-control__content-container {
827
+ margin-top: 0;
828
+ }
829
+ .oui-kform-table-control > .oui-kform-table-control__content-container ~ .oui-kform-table-control__add-row-trigger {
830
+ margin-bottom: 0;
831
+ }
832
+
833
+ .oui-kform-top-bar {
834
+ display: flex;
835
+ align-items: flex-end;
836
+ justify-content: space-between;
837
+ position: sticky;
838
+ top: 0;
839
+ z-index: 1103;
840
+ padding: var(--oui-space) var(--oui-space) 0;
841
+ border-bottom: 2px solid #3e63dd;
842
+ background-color: var(--oui-background-color);
843
+ }
844
+ .oui-kform-top-bar .oui-kform-annexes__menu-container, .oui-kform-top-bar .oui-kform-annexes__tab-list-root {
845
+ box-shadow: none;
846
+ margin-bottom: 0;
847
+ }
848
+ .oui-kform-top-bar .oui-kform-annexes__tab:focus-visible:not(:disabled):not([data-disabled]) {
849
+ box-shadow: inset -1px 0 0 0 #1c2024, inset 0 1px 0 0 #1c2024, inset 1px 0 0 0 #1c2024, inset 0 -2px 0 #1c2024;
850
+ }
851
+ .oui-kform-top-bar .oui-kform-annexes__tab:focus-visible:not(:disabled):not([data-disabled])[data-status] {
852
+ box-shadow: inset -1px 0 0 0 #1c2024, inset 1px 0 0 0 #1c2024, inset 0 -2px 0 #1c2024;
853
+ }
854
+ .oui-kform-top-bar__actions {
855
+ margin: 0 0 var(--oui-space) auto;
856
+ }
857
+
858
+ /*# sourceMappingURL=ostack-ui-kform.css.map */