@plitzi/sdk-elements 0.38.6 → 0.38.7

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 (117) hide show
  1. package/CHANGELOG.md +205 -0
  2. package/dist/Element/hooks/useRscData.d.ts +1 -1
  3. package/dist/components/MarkdownDocument/MarkdownDocument.d.ts +32 -0
  4. package/dist/components/MarkdownDocument/MarkdownDocument.mjs +32 -0
  5. package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.d.ts +14 -0
  6. package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +34 -0
  7. package/dist/components/MarkdownDocument/components/CodeBlock/index.d.ts +3 -0
  8. package/dist/components/MarkdownDocument/components/CodeBlock/index.mjs +5 -0
  9. package/dist/components/MarkdownDocument/helpers/hastText.d.ts +10 -0
  10. package/dist/components/MarkdownDocument/helpers/hastText.mjs +4 -0
  11. package/dist/components/MarkdownDocument/helpers/markdownComponents.d.ts +10 -0
  12. package/dist/components/MarkdownDocument/helpers/markdownComponents.mjs +89 -0
  13. package/dist/components/MarkdownDocument/helpers/markdownParts.d.ts +16 -0
  14. package/dist/components/MarkdownDocument/helpers/markdownParts.mjs +4 -0
  15. package/dist/components/MarkdownDocument/helpers/rehypeHeadingAnchors.d.ts +8 -0
  16. package/dist/components/MarkdownDocument/helpers/rehypeHeadingAnchors.mjs +20 -0
  17. package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.d.ts +3 -0
  18. package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.mjs +24 -0
  19. package/dist/components/MarkdownDocument/index.d.ts +5 -0
  20. package/dist/components/MarkdownDocument/index.mjs +6 -0
  21. package/dist/dataSource/GlobalSources.mjs +101 -113
  22. package/dist/elements/advanced/Custom/declaration.d.ts +5 -1
  23. package/dist/elements/advanced/Custom/declaration.mjs +5 -1
  24. package/dist/elements/advanced/Custom/index.d.ts +5 -1
  25. package/dist/elements/basic/Button/declaration.d.ts +46 -34
  26. package/dist/elements/basic/Button/declaration.mjs +18 -42
  27. package/dist/elements/basic/Button/index.d.ts +46 -34
  28. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -0
  29. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +2 -0
  30. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +2 -0
  31. package/dist/elements/basic/Dropdown/index.d.ts +2 -0
  32. package/dist/elements/basic/Heading/declaration.d.ts +5 -1
  33. package/dist/elements/basic/Heading/declaration.mjs +5 -1
  34. package/dist/elements/basic/Heading/index.d.ts +5 -1
  35. package/dist/elements/basic/Link/Link.d.ts +7 -1
  36. package/dist/elements/basic/Link/Link.mjs +27 -27
  37. package/dist/elements/basic/Link/Settings.d.ts +2 -1
  38. package/dist/elements/basic/Link/Settings.mjs +42 -29
  39. package/dist/elements/basic/Link/ariaCurrent.d.ts +12 -0
  40. package/dist/elements/basic/Link/ariaCurrent.mjs +11 -0
  41. package/dist/elements/basic/Link/declaration.d.ts +5 -1
  42. package/dist/elements/basic/Link/declaration.mjs +7 -4
  43. package/dist/elements/basic/Link/index.d.ts +5 -1
  44. package/dist/elements/basic/Markdown/Markdown.d.ts +6 -1
  45. package/dist/elements/basic/Markdown/Markdown.mjs +19 -15
  46. package/dist/elements/basic/Markdown/Settings.d.ts +2 -1
  47. package/dist/elements/basic/Markdown/Settings.mjs +16 -10
  48. package/dist/elements/basic/Markdown/declaration.d.ts +32 -5
  49. package/dist/elements/basic/Markdown/declaration.mjs +37 -7
  50. package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.d.ts +7 -0
  51. package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +13 -0
  52. package/dist/elements/basic/Markdown/index.d.ts +32 -5
  53. package/dist/elements/basic/RichText/RichText.mjs +27 -20
  54. package/dist/elements/basic/RichText/classHtmlParts.d.ts +14 -0
  55. package/dist/elements/basic/RichText/classHtmlParts.mjs +48 -0
  56. package/dist/elements/basic/RichText/declaration.d.ts +28 -1
  57. package/dist/elements/basic/RichText/declaration.mjs +31 -2
  58. package/dist/elements/basic/RichText/index.d.ts +28 -1
  59. package/dist/elements/basic/Text/declaration.d.ts +0 -2
  60. package/dist/elements/basic/Text/declaration.mjs +1 -5
  61. package/dist/elements/basic/Text/index.d.ts +0 -2
  62. package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +20 -18
  63. package/dist/elements/basic/ThemeToggle/declaration.d.ts +48 -4
  64. package/dist/elements/basic/ThemeToggle/declaration.mjs +32 -8
  65. package/dist/elements/basic/ThemeToggle/index.d.ts +48 -4
  66. package/dist/elements/declarations/index.d.ts +781 -318
  67. package/dist/elements/form/FormControl/FormControl.mjs +51 -53
  68. package/dist/elements/form/FormControl/Settings.mjs +4 -0
  69. package/dist/elements/form/FormControl/components/Label.d.ts +3 -1
  70. package/dist/elements/form/FormControl/components/Label.mjs +5 -5
  71. package/dist/elements/form/FormControl/declaration.d.ts +479 -233
  72. package/dist/elements/form/FormControl/declaration.mjs +142 -76
  73. package/dist/elements/form/FormControl/helpers/isChecked.d.ts +8 -0
  74. package/dist/elements/form/FormControl/helpers/isChecked.mjs +4 -0
  75. package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +2 -6
  76. package/dist/elements/form/FormControl/index.d.ts +479 -233
  77. package/dist/elements/form/FormControl/inputs/Checkbox.d.ts +7 -3
  78. package/dist/elements/form/FormControl/inputs/Checkbox.mjs +7 -6
  79. package/dist/elements/form/FormControl/inputs/Input.d.ts +6 -1
  80. package/dist/elements/form/FormControl/inputs/Input.mjs +29 -29
  81. package/dist/elements/form/FormControl/inputs/Select.d.ts +4 -1
  82. package/dist/elements/form/FormControl/inputs/Select.mjs +15 -15
  83. package/dist/elements/internal/NotFound/declaration.d.ts +5 -1
  84. package/dist/elements/internal/NotFound/declaration.mjs +5 -1
  85. package/dist/elements/internal/NotFound/index.d.ts +5 -1
  86. package/dist/elements/internal/Page/declaration.d.ts +1 -2
  87. package/dist/elements/internal/Page/declaration.mjs +2 -3
  88. package/dist/elements/internal/Page/index.d.ts +1 -2
  89. package/dist/elements/media/Image/declaration.d.ts +3 -2
  90. package/dist/elements/media/Image/declaration.mjs +3 -2
  91. package/dist/elements/media/Image/index.d.ts +3 -2
  92. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +89 -80
  93. package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +23 -23
  94. package/dist/elements/provider/ApiContainer/hooks/useProviderWrite.mjs +5 -5
  95. package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +4 -1
  96. package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +4 -1
  97. package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +4 -1
  98. package/dist/elements/structure/Carousel/index.d.ts +4 -1
  99. package/dist/elements/structure/DialogContainer/DialogContainer.mjs +2 -2
  100. package/dist/elements/structure/DialogContainer/declaration.d.ts +72 -12
  101. package/dist/elements/structure/DialogContainer/declaration.mjs +58 -17
  102. package/dist/elements/structure/DialogContainer/index.d.ts +72 -12
  103. package/dist/elements/structure/List/declaration.d.ts +5 -1
  104. package/dist/elements/structure/List/declaration.mjs +5 -1
  105. package/dist/elements/structure/List/index.d.ts +5 -1
  106. package/dist/elements/structure/ModalContainer/declaration.d.ts +36 -16
  107. package/dist/elements/structure/ModalContainer/declaration.mjs +42 -24
  108. package/dist/elements/structure/ModalContainer/index.d.ts +36 -16
  109. package/dist/elements/structure/Pagination/Pagination.mjs +23 -23
  110. package/dist/elements/structure/Pagination/declaration.d.ts +5 -1
  111. package/dist/elements/structure/Pagination/declaration.mjs +8 -2
  112. package/dist/elements/structure/Pagination/index.d.ts +5 -1
  113. package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +2 -1
  114. package/dist/index.d.ts +781 -318
  115. package/package.json +77 -13
  116. package/dist/elements/basic/Link/isCurrentPage.d.ts +0 -5
  117. package/dist/elements/basic/Link/isCurrentPage.mjs +0 -12
@@ -1,8 +1,8 @@
1
1
  import { useCallback as e, useId as t, useMemo as n } from "react";
2
2
  import { hasValidToken as r } from "@plitzi/sdk-shared/helpers/twigWrapper";
3
3
  import { emptyObject as i } from "@plitzi/sdk-shared/helpers/utils";
4
- import { authFailureFromResponse as a, reportAuthFailure as o } from "@plitzi/sdk-shared/auth";
5
- import { requestKey as s, useQuery as c } from "@plitzi/sdk-shared/queries";
4
+ import { requestKey as a, useQuery as o } from "@plitzi/sdk-shared/queries";
5
+ import { authFailureFromResponse as s, reportAuthFailure as c } from "@plitzi/sdk-shared/auth";
6
6
  //#region src/elements/provider/ApiContainer/hooks/useApi.ts
7
7
  var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
8
8
  if (typeof e != "string") return {
@@ -20,27 +20,27 @@ var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
20
20
  data: e.message
21
21
  };
22
22
  }
23
- }, p = async (e, t, n, r, i, s = !1) => {
23
+ }, p = async (e, t, n, r, i, a = !1) => {
24
24
  if (!e) return {
25
25
  status: 400,
26
26
  data: "URL is required"
27
27
  };
28
- let c = new Headers(r);
29
- c.has("Accept") || c.set("Accept", "application/json");
28
+ let o = new Headers(r);
29
+ o.has("Accept") || o.set("Accept", "application/json");
30
30
  let l = {
31
31
  method: t,
32
32
  credentials: n,
33
- headers: c,
33
+ headers: o,
34
34
  signal: i
35
35
  };
36
- t !== "get" && (l.body = "{}", c.has("Content-Type") || c.set("Content-Type", "application/json"));
36
+ t !== "get" && (l.body = "{}", o.has("Content-Type") || o.set("Content-Type", "application/json"));
37
37
  try {
38
- let c = await fetch(e, l), u = await c.json(), d = a(c.status, u);
39
- return d && await o({
38
+ let o = await fetch(e, l), u = await o.json(), d = s(o.status, u);
39
+ return d && await c({
40
40
  reason: d,
41
41
  url: e
42
- }) && !s && !i.aborted ? await p(e, t, n, r, i, !0) : {
43
- status: c.status,
42
+ }) && !a && !i.aborted ? await p(e, t, n, r, i, !0) : {
43
+ status: o.status,
44
44
  data: u
45
45
  };
46
46
  } catch (e) {
@@ -53,12 +53,12 @@ var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
53
53
  }, m = (e) => e.status < 400, h = (e, t) => {
54
54
  let n = typeof e == "number" ? e : Number(e);
55
55
  return (Number.isFinite(n) && n >= 0 ? n : t) * 1e3;
56
- }, g = ({ url: a = "", method: o = "get", mock: l, customHeaders: u = i, enabled: g = !0, credentials: _ = "same-origin", cache: v = !1, staleTime: y = 30, gcTime: b = 300, tags: x }) => {
57
- let S = d(l), C = t(), w = !S && (!a || r(a)), T = n(() => {
56
+ }, g = ({ url: s = "", method: c = "get", mock: l, customHeaders: u = i, enabled: g = !0, credentials: _ = "same-origin", cache: v = !1, staleTime: y = 30, gcTime: b = 300, tags: x }) => {
57
+ let S = d(l), C = t(), w = !S && (!s || r(s)), T = n(() => {
58
58
  if (S || w) return;
59
- let e = s({
60
- method: o,
61
- url: a,
59
+ let e = a({
60
+ method: c,
61
+ url: s,
62
62
  credentials: _,
63
63
  headers: u
64
64
  });
@@ -66,21 +66,21 @@ var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
66
66
  }, [
67
67
  S,
68
68
  w,
69
- a,
70
- o,
69
+ s,
70
+ c,
71
71
  _,
72
72
  u,
73
73
  v,
74
74
  C
75
- ]), E = e((e) => p(a, o, _, u, e), [
76
- a,
77
- o,
75
+ ]), E = e((e) => p(s, c, _, u, e), [
76
+ s,
77
+ c,
78
78
  _,
79
79
  u
80
- ]), D = c({
80
+ ]), D = o({
81
81
  key: T,
82
82
  meta: {
83
- url: a,
83
+ url: s,
84
84
  tags: x
85
85
  },
86
86
  fetcher: E,
@@ -1,6 +1,6 @@
1
1
  import { useCallback as e } from "react";
2
- import { authFailureFromResponse as t, reportAuthFailure as n } from "@plitzi/sdk-shared/auth";
3
- import { invalidateQueries as r } from "@plitzi/sdk-shared/queries";
2
+ import { invalidateQueries as t } from "@plitzi/sdk-shared/queries";
3
+ import { authFailureFromResponse as n, reportAuthFailure as r } from "@plitzi/sdk-shared/auth";
4
4
  //#region src/elements/provider/ApiContainer/hooks/useProviderWrite.ts
5
5
  var i = ({ elementId: i, enabled: a, actionPath: o = "/_action", onDone: s }) => ({ writeRecord: e(async (e = {}) => {
6
6
  let { action: c, recordId: l, ...u } = e;
@@ -17,14 +17,14 @@ var i = ({ elementId: i, enabled: a, actionPath: o = "/_action", onDone: s }) =>
17
17
  })
18
18
  });
19
19
  if (!d.ok) {
20
- let e = t(d.status, await d.json().catch(() => void 0));
21
- throw e && n({
20
+ let e = n(d.status, await d.json().catch(() => void 0));
21
+ throw e && r({
22
22
  reason: e,
23
23
  url: o
24
24
  }), Error(`Write failed with status ${d.status}`);
25
25
  }
26
26
  let f = await d.json();
27
- return r(), await s?.(), f.record;
27
+ return t(), await s?.(), f.record;
28
28
  }, [
29
29
  o,
30
30
  i,
@@ -43,7 +43,10 @@ declare const declaration: {
43
43
  readonly displayMode: "desktop";
44
44
  readonly style: {
45
45
  readonly base: {
46
- readonly default: {};
46
+ readonly default: {
47
+ readonly position: "relative";
48
+ readonly overflow: "hidden";
49
+ };
47
50
  };
48
51
  };
49
52
  };
@@ -35,7 +35,10 @@ var t = e()({
35
35
  defaultStyle: {
36
36
  name: "Carousel Track",
37
37
  displayMode: "desktop",
38
- style: { base: { default: {} } }
38
+ style: { base: { default: {
39
+ position: "relative",
40
+ overflow: "hidden"
41
+ } } }
39
42
  },
40
43
  settings: {}
41
44
  }
@@ -42,7 +42,10 @@ declare const CarouselTrack: {
42
42
  readonly displayMode: "desktop";
43
43
  readonly style: {
44
44
  readonly base: {
45
- readonly default: {};
45
+ readonly default: {
46
+ readonly position: "relative";
47
+ readonly overflow: "hidden";
48
+ };
46
49
  };
47
50
  };
48
51
  };
@@ -47,7 +47,10 @@ declare const Carousel: {
47
47
  readonly displayMode: "desktop";
48
48
  readonly style: {
49
49
  readonly base: {
50
- readonly default: {};
50
+ readonly default: {
51
+ readonly position: "relative";
52
+ readonly overflow: "hidden";
53
+ };
51
54
  };
52
55
  };
53
56
  };
@@ -131,7 +131,7 @@ var b = ({ ref: e, className: b = "", children: x, headerLabel: S = "Dialog Head
131
131
  children: S || "Dialog Header"
132
132
  }), /* @__PURE__ */ h("button", {
133
133
  type: "button",
134
- className: "dialog-container__close",
134
+ className: _("dialog-container__close", j.headerCloseButton),
135
135
  "aria-label": "Close",
136
136
  title: "Close",
137
137
  onClick: J,
@@ -142,7 +142,7 @@ var b = ({ ref: e, className: b = "", children: x, headerLabel: S = "Dialog Head
142
142
  })]
143
143
  }),
144
144
  /* @__PURE__ */ h("div", {
145
- className: _("dialog-container__body", j.body),
145
+ className: _("dialog-container__body", j.bodyContainer),
146
146
  children: /* @__PURE__ */ h(p, {
147
147
  inherit: "live",
148
148
  name: `Dialog:${D}`,
@@ -140,11 +140,12 @@ declare const declaration: {
140
140
  readonly style: {
141
141
  readonly base: {
142
142
  readonly default: {
143
- readonly position: "absolute";
143
+ readonly position: "fixed";
144
144
  readonly top: "0";
145
145
  readonly bottom: "0";
146
146
  readonly left: "0";
147
147
  readonly right: "0";
148
+ readonly 'z-index': "200";
148
149
  };
149
150
  };
150
151
  readonly backgroundContainer: {
@@ -154,6 +155,7 @@ declare const declaration: {
154
155
  readonly left: "0";
155
156
  readonly top: "0";
156
157
  readonly position: "absolute";
158
+ readonly 'z-index': "210";
157
159
  readonly 'background-color': "black";
158
160
  readonly opacity: "0.5";
159
161
  };
@@ -165,8 +167,11 @@ declare const declaration: {
165
167
  readonly position: "absolute";
166
168
  readonly top: "50%";
167
169
  readonly left: "50%";
170
+ readonly 'z-index': "250";
168
171
  readonly width: "500px";
169
- readonly height: "300px";
172
+ readonly 'max-width': "calc(100vw - 32px)";
173
+ readonly 'max-height': "calc(100dvh - 32px)";
174
+ readonly overflow: "auto";
170
175
  readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
171
176
  readonly transform: "translate3d(-50%, -50%, 0px)";
172
177
  readonly 'padding-top': "20px";
@@ -191,18 +196,32 @@ declare const declaration: {
191
196
  readonly 'font-size': "20px";
192
197
  readonly 'font-weight': "500";
193
198
  readonly 'line-height': "1.2";
194
- readonly color: "#333";
195
199
  };
196
200
  };
197
201
  readonly headerCloseButton: {
198
- readonly default: {
199
- readonly height: "20px";
200
- readonly width: "20px";
201
- readonly padding: "4px";
202
- readonly display: "flex";
203
- readonly 'justify-content': "center";
204
- readonly 'align-items': "center";
205
- readonly cursor: "pointer";
202
+ default: {
203
+ height: string;
204
+ width: string;
205
+ 'padding-top': string;
206
+ 'padding-bottom': string;
207
+ 'padding-left': string;
208
+ 'padding-right': string;
209
+ display: string;
210
+ 'justify-content': string;
211
+ 'align-items': string;
212
+ 'flex-shrink': string;
213
+ 'border-top-left-radius': string;
214
+ 'border-top-right-radius': string;
215
+ 'border-bottom-left-radius': string;
216
+ 'border-bottom-right-radius': string;
217
+ 'background-color': string;
218
+ color: string;
219
+ 'font-style': string;
220
+ 'font-weight': string;
221
+ 'line-height': string;
222
+ 'font-family': string;
223
+ 'font-size': string;
224
+ cursor: string;
206
225
  };
207
226
  };
208
227
  readonly bodyContainer: {
@@ -210,7 +229,7 @@ declare const declaration: {
210
229
  readonly display: "flex";
211
230
  readonly 'flex-direction': "column";
212
231
  readonly 'flex-grow': "1";
213
- readonly 'flex-basis': "0";
232
+ readonly 'flex-basis': "auto";
214
233
  };
215
234
  };
216
235
  readonly footerContainer: {
@@ -220,6 +239,47 @@ declare const declaration: {
220
239
  readonly 'margin-top': "8px";
221
240
  };
222
241
  };
242
+ readonly acceptButton: {
243
+ readonly default: {
244
+ 'min-height': string;
245
+ 'min-width': string;
246
+ 'padding-top': string;
247
+ 'padding-bottom': string;
248
+ 'padding-left': string;
249
+ 'padding-right': string;
250
+ 'border-top-left-radius': string;
251
+ 'border-top-right-radius': string;
252
+ 'border-bottom-left-radius': string;
253
+ 'border-bottom-right-radius': string;
254
+ 'background-color': string;
255
+ color: string;
256
+ 'line-height': string;
257
+ 'font-size': string;
258
+ outline: string;
259
+ cursor: string;
260
+ };
261
+ };
262
+ readonly cancelButton: {
263
+ readonly default: {
264
+ readonly 'margin-left': "12px";
265
+ readonly 'min-height': string;
266
+ readonly 'min-width': string;
267
+ readonly 'padding-top': string;
268
+ readonly 'padding-bottom': string;
269
+ readonly 'padding-left': string;
270
+ readonly 'padding-right': string;
271
+ readonly 'border-top-left-radius': string;
272
+ readonly 'border-top-right-radius': string;
273
+ readonly 'border-bottom-left-radius': string;
274
+ readonly 'border-bottom-right-radius': string;
275
+ readonly 'background-color': string;
276
+ readonly color: string;
277
+ readonly 'line-height': string;
278
+ readonly 'font-size': string;
279
+ readonly outline: string;
280
+ readonly cursor: string;
281
+ };
282
+ };
223
283
  };
224
284
  readonly subTypes: {};
225
285
  };
@@ -1,6 +1,46 @@
1
1
  import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
2
2
  //#region src/elements/structure/DialogContainer/declaration.ts
3
- var t = e()({
3
+ var t = { default: {
4
+ height: "28px",
5
+ width: "28px",
6
+ "padding-top": "4px",
7
+ "padding-bottom": "4px",
8
+ "padding-left": "4px",
9
+ "padding-right": "4px",
10
+ display: "flex",
11
+ "justify-content": "center",
12
+ "align-items": "center",
13
+ "flex-shrink": "0",
14
+ "border-top-left-radius": "4px",
15
+ "border-top-right-radius": "4px",
16
+ "border-bottom-left-radius": "4px",
17
+ "border-bottom-right-radius": "4px",
18
+ "background-color": "transparent",
19
+ color: "inherit",
20
+ "font-style": "inherit",
21
+ "font-weight": "inherit",
22
+ "line-height": "inherit",
23
+ "font-family": "inherit",
24
+ "font-size": "inherit",
25
+ cursor: "pointer"
26
+ } }, n = {
27
+ "min-height": "30px",
28
+ "min-width": "30px",
29
+ "padding-top": "6px",
30
+ "padding-bottom": "6px",
31
+ "padding-left": "12px",
32
+ "padding-right": "12px",
33
+ "border-top-left-radius": "4px",
34
+ "border-top-right-radius": "4px",
35
+ "border-bottom-left-radius": "4px",
36
+ "border-bottom-right-radius": "4px",
37
+ "background-color": "#4422ee",
38
+ color: "white",
39
+ "line-height": "24px",
40
+ "font-size": "16px",
41
+ outline: "none",
42
+ cursor: "pointer"
43
+ }, r = e()({
4
44
  type: "dialogContainer",
5
45
  sourceType: "dialogContainer",
6
46
  triggers: {
@@ -115,11 +155,12 @@ var t = e()({
115
155
  displayMode: "desktop",
116
156
  style: {
117
157
  base: { default: {
118
- position: "absolute",
158
+ position: "fixed",
119
159
  top: "0",
120
160
  bottom: "0",
121
161
  left: "0",
122
- right: "0"
162
+ right: "0",
163
+ "z-index": "200"
123
164
  } },
124
165
  backgroundContainer: { default: {
125
166
  height: "100%",
@@ -127,6 +168,7 @@ var t = e()({
127
168
  left: "0",
128
169
  top: "0",
129
170
  position: "absolute",
171
+ "z-index": "210",
130
172
  "background-color": "black",
131
173
  opacity: "0.5"
132
174
  } },
@@ -136,8 +178,11 @@ var t = e()({
136
178
  position: "absolute",
137
179
  top: "50%",
138
180
  left: "50%",
181
+ "z-index": "250",
139
182
  width: "500px",
140
- height: "300px",
183
+ "max-width": "calc(100vw - 32px)",
184
+ "max-height": "calc(100dvh - 32px)",
185
+ overflow: "auto",
141
186
  "background-color": "light-dark(white, oklch(0.21 0.006 285.885))",
142
187
  transform: "translate3d(-50%, -50%, 0px)",
143
188
  "padding-top": "20px",
@@ -157,28 +202,24 @@ var t = e()({
157
202
  headerTitle: { default: {
158
203
  "font-size": "20px",
159
204
  "font-weight": "500",
160
- "line-height": "1.2",
161
- color: "#333"
162
- } },
163
- headerCloseButton: { default: {
164
- height: "20px",
165
- width: "20px",
166
- padding: "4px",
167
- display: "flex",
168
- "justify-content": "center",
169
- "align-items": "center",
170
- cursor: "pointer"
205
+ "line-height": "1.2"
171
206
  } },
207
+ headerCloseButton: t,
172
208
  bodyContainer: { default: {
173
209
  display: "flex",
174
210
  "flex-direction": "column",
175
211
  "flex-grow": "1",
176
- "flex-basis": "0"
212
+ "flex-basis": "auto"
177
213
  } },
178
214
  footerContainer: { default: {
179
215
  display: "flex",
180
216
  "justify-content": "flex-end",
181
217
  "margin-top": "8px"
218
+ } },
219
+ acceptButton: { default: n },
220
+ cancelButton: { default: {
221
+ ...n,
222
+ "margin-left": "12px"
182
223
  } }
183
224
  },
184
225
  subTypes: {}
@@ -188,4 +229,4 @@ var t = e()({
188
229
  initialItems: ["container"]
189
230
  });
190
231
  //#endregion
191
- export { t as default };
232
+ export { r as default };
@@ -139,11 +139,12 @@ declare const DialogContainer: {
139
139
  readonly style: {
140
140
  readonly base: {
141
141
  readonly default: {
142
- readonly position: "absolute";
142
+ readonly position: "fixed";
143
143
  readonly top: "0";
144
144
  readonly bottom: "0";
145
145
  readonly left: "0";
146
146
  readonly right: "0";
147
+ readonly 'z-index': "200";
147
148
  };
148
149
  };
149
150
  readonly backgroundContainer: {
@@ -153,6 +154,7 @@ declare const DialogContainer: {
153
154
  readonly left: "0";
154
155
  readonly top: "0";
155
156
  readonly position: "absolute";
157
+ readonly 'z-index': "210";
156
158
  readonly 'background-color': "black";
157
159
  readonly opacity: "0.5";
158
160
  };
@@ -164,8 +166,11 @@ declare const DialogContainer: {
164
166
  readonly position: "absolute";
165
167
  readonly top: "50%";
166
168
  readonly left: "50%";
169
+ readonly 'z-index': "250";
167
170
  readonly width: "500px";
168
- readonly height: "300px";
171
+ readonly 'max-width': "calc(100vw - 32px)";
172
+ readonly 'max-height': "calc(100dvh - 32px)";
173
+ readonly overflow: "auto";
169
174
  readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
170
175
  readonly transform: "translate3d(-50%, -50%, 0px)";
171
176
  readonly 'padding-top': "20px";
@@ -190,18 +195,32 @@ declare const DialogContainer: {
190
195
  readonly 'font-size': "20px";
191
196
  readonly 'font-weight': "500";
192
197
  readonly 'line-height': "1.2";
193
- readonly color: "#333";
194
198
  };
195
199
  };
196
200
  readonly headerCloseButton: {
197
- readonly default: {
198
- readonly height: "20px";
199
- readonly width: "20px";
200
- readonly padding: "4px";
201
- readonly display: "flex";
202
- readonly 'justify-content': "center";
203
- readonly 'align-items': "center";
204
- readonly cursor: "pointer";
201
+ default: {
202
+ height: string;
203
+ width: string;
204
+ 'padding-top': string;
205
+ 'padding-bottom': string;
206
+ 'padding-left': string;
207
+ 'padding-right': string;
208
+ display: string;
209
+ 'justify-content': string;
210
+ 'align-items': string;
211
+ 'flex-shrink': string;
212
+ 'border-top-left-radius': string;
213
+ 'border-top-right-radius': string;
214
+ 'border-bottom-left-radius': string;
215
+ 'border-bottom-right-radius': string;
216
+ 'background-color': string;
217
+ color: string;
218
+ 'font-style': string;
219
+ 'font-weight': string;
220
+ 'line-height': string;
221
+ 'font-family': string;
222
+ 'font-size': string;
223
+ cursor: string;
205
224
  };
206
225
  };
207
226
  readonly bodyContainer: {
@@ -209,7 +228,7 @@ declare const DialogContainer: {
209
228
  readonly display: "flex";
210
229
  readonly 'flex-direction': "column";
211
230
  readonly 'flex-grow': "1";
212
- readonly 'flex-basis': "0";
231
+ readonly 'flex-basis': "auto";
213
232
  };
214
233
  };
215
234
  readonly footerContainer: {
@@ -219,6 +238,47 @@ declare const DialogContainer: {
219
238
  readonly 'margin-top': "8px";
220
239
  };
221
240
  };
241
+ readonly acceptButton: {
242
+ readonly default: {
243
+ 'min-height': string;
244
+ 'min-width': string;
245
+ 'padding-top': string;
246
+ 'padding-bottom': string;
247
+ 'padding-left': string;
248
+ 'padding-right': string;
249
+ 'border-top-left-radius': string;
250
+ 'border-top-right-radius': string;
251
+ 'border-bottom-left-radius': string;
252
+ 'border-bottom-right-radius': string;
253
+ 'background-color': string;
254
+ color: string;
255
+ 'line-height': string;
256
+ 'font-size': string;
257
+ outline: string;
258
+ cursor: string;
259
+ };
260
+ };
261
+ readonly cancelButton: {
262
+ readonly default: {
263
+ readonly 'margin-left': "12px";
264
+ readonly 'min-height': string;
265
+ readonly 'min-width': string;
266
+ readonly 'padding-top': string;
267
+ readonly 'padding-bottom': string;
268
+ readonly 'padding-left': string;
269
+ readonly 'padding-right': string;
270
+ readonly 'border-top-left-radius': string;
271
+ readonly 'border-top-right-radius': string;
272
+ readonly 'border-bottom-left-radius': string;
273
+ readonly 'border-bottom-right-radius': string;
274
+ readonly 'background-color': string;
275
+ readonly color: string;
276
+ readonly 'line-height': string;
277
+ readonly 'font-size': string;
278
+ readonly outline: string;
279
+ readonly cursor: string;
280
+ };
281
+ };
222
282
  };
223
283
  readonly subTypes: {};
224
284
  };
@@ -51,7 +51,11 @@ declare const declaration: {
51
51
  readonly displayMode: "desktop";
52
52
  readonly style: {
53
53
  readonly base: {
54
- readonly default: {};
54
+ readonly default: {
55
+ readonly 'margin-top': "0px";
56
+ readonly 'margin-bottom': "10px";
57
+ readonly 'padding-left': "40px";
58
+ };
55
59
  };
56
60
  };
57
61
  readonly subTypes: {
@@ -43,7 +43,11 @@ var n = e()({
43
43
  defaultStyle: {
44
44
  name: "List",
45
45
  displayMode: "desktop",
46
- style: { base: { default: {} } },
46
+ style: { base: { default: {
47
+ "margin-top": "0px",
48
+ "margin-bottom": "10px",
49
+ "padding-left": "40px"
50
+ } } },
47
51
  subTypes: {
48
52
  ul: {
49
53
  name: "List UL",
@@ -102,7 +102,11 @@ declare const List: {
102
102
  readonly displayMode: "desktop";
103
103
  readonly style: {
104
104
  readonly base: {
105
- readonly default: {};
105
+ readonly default: {
106
+ readonly 'margin-top': "0px";
107
+ readonly 'margin-bottom': "10px";
108
+ readonly 'padding-left': "40px";
109
+ };
106
110
  };
107
111
  };
108
112
  readonly subTypes: {