@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,68 +1,56 @@
1
1
  import { use as e, useCallback as t, useEffect as n, useMemo as r, useRef as i } from "react";
2
- import { useCommonStore as a, useCommonStoreSync as o, useRenderSettings as s } from "@plitzi/sdk-shared/store";
3
- import { get as c } from "@plitzi/plitzi-ui/helpers";
4
- import { flagValues as l, undeclaredFlagOverrides as u } from "@plitzi/sdk-shared/flags";
5
- import { getPathsFromObeject as d } from "@plitzi/sdk-shared/helpers/utils";
6
- import { evaluateComputed as ee, resolveVariables as te } from "@plitzi/sdk-shared/dataSource";
7
- import ne, { SPACE_THEME_AREA as re } from "@plitzi/sdk-shared/theme/useTheme";
8
- import f from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
9
- import p from "@plitzi/sdk-auth/AuthContext";
10
- import m from "@plitzi/sdk-shared/flags/useFlagResolution";
11
- import h from "@plitzi/sdk-shared/hooks/useStableValue";
2
+ import { useCommonStore as a, useCommonStoreSync as o } from "@plitzi/sdk-shared/store";
3
+ import { get as s } from "@plitzi/plitzi-ui/helpers";
4
+ import { flagValues as c, undeclaredFlagOverrides as l } from "@plitzi/sdk-shared/flags";
5
+ import { getPathsFromObeject as u } from "@plitzi/sdk-shared/helpers/utils";
6
+ import { evaluateComputed as ee } from "@plitzi/sdk-shared/dataSource";
7
+ import te from "@plitzi/sdk-shared/hooks/useStableValue";
8
+ import d, { SPACE_THEME_AREA as f } from "@plitzi/sdk-shared/theme/useTheme";
9
+ import p from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
10
+ import m from "@plitzi/sdk-auth/AuthContext";
11
+ import h from "@plitzi/sdk-shared/dataSource/hooks/useResolvedVariables";
12
+ import g from "@plitzi/sdk-shared/flags/useFlagResolution";
12
13
  //#region src/dataSource/GlobalSources.tsx
13
- var g = ({ children: g }) => {
14
- let { environment: _ } = s(), [[v, y, b, x, S, C, w, T = ""]] = a([
15
- "schema.variables",
14
+ var _ = ({ children: _ }) => {
15
+ let [[v, y, b, x, S, C = ""]] = a([
16
16
  "navigation.routeParams",
17
17
  "navigation.queryParams",
18
- "navigation.hostname",
19
18
  "navigation.origin",
20
19
  "navigation.href",
21
20
  "navigation.currentPageId",
22
21
  "navigation.pendingLocation"
23
- ]), E = h(r(() => te(v, {
24
- routeParams: y,
25
- queryParams: b,
26
- hostname: x,
27
- environment: _
28
- }), [
29
- _,
30
- x,
31
- b,
32
- y,
33
- v
34
- ])), ie = t(() => d(E).map((e) => ({
22
+ ]), w = h(), T = t(() => u(w).map((e) => ({
35
23
  path: e,
36
24
  name: `variables.${e}`
37
- })), [E]);
38
- f({
25
+ })), [w]);
26
+ p({
39
27
  id: "global",
40
28
  source: "variables",
41
29
  name: "Variables",
42
- fields: ie
43
- }), o("runtime.sources.variables", E);
44
- let [D = {}] = a("pageDefinitions"), O = r(() => Object.values(D).map((e) => ({
30
+ fields: T
31
+ }), o("runtime.sources.variables", w);
32
+ let [E = {}] = a("pageDefinitions"), D = r(() => Object.values(E).map((e) => ({
45
33
  value: e.id,
46
- label: c(e, "attributes.name", e.id)
47
- })), [D]), k = r(() => ({
48
- routeParams: y,
49
- queryParams: b,
50
- origin: S,
51
- href: C,
52
- currentPageId: w,
53
- pending: T !== "",
54
- pendingLocation: T
34
+ label: s(e, "attributes.name", e.id)
35
+ })), [E]), O = r(() => ({
36
+ routeParams: v,
37
+ queryParams: y,
38
+ origin: b,
39
+ href: x,
40
+ currentPageId: S,
41
+ pending: C !== "",
42
+ pendingLocation: C
55
43
  }), [
44
+ v,
56
45
  y,
57
46
  b,
47
+ x,
58
48
  S,
59
- C,
60
- w,
61
- T
62
- ]), A = t(() => {
63
- let e = d({
64
- routeParams: y,
65
- queryParams: b
49
+ C
50
+ ]), k = t(() => {
51
+ let e = u({
52
+ routeParams: v,
53
+ queryParams: y
66
54
  }).map((e) => ({
67
55
  path: e,
68
56
  name: `navigation.${e}`
@@ -78,11 +66,11 @@ var g = ({ children: g }) => {
78
66
  }, {
79
67
  path: "pendingLocation",
80
68
  name: "Where a navigation is going"
81
- }], i = O.length > 0 ? {
69
+ }], i = D.length > 0 ? {
82
70
  path: "currentPageId",
83
71
  name: "Current Page",
84
72
  inputType: "select",
85
- values: O
73
+ values: D
86
74
  } : {
87
75
  path: "currentPageId",
88
76
  name: "Current Page"
@@ -95,120 +83,120 @@ var g = ({ children: g }) => {
95
83
  i
96
84
  ];
97
85
  }, [
86
+ v,
98
87
  y,
99
- b,
100
- O
88
+ D
101
89
  ]);
102
- f({
90
+ p({
103
91
  id: "global",
104
92
  source: "navigation",
105
93
  name: "Navigation",
106
- fields: A
107
- }), o("runtime.sources.navigation", k);
108
- let j = e(p), { user: M, authenticated: N, state: P } = j, [F = "basic"] = a("schema.settings.userProvider"), I = r(() => F === "" ? {} : {
109
- isAuthenticated: N,
110
- ...P === void 0 ? {} : { status: P },
111
- accessToken: M?.accessToken ?? "",
94
+ fields: k
95
+ }), o("runtime.sources.navigation", O);
96
+ let A = e(m), { user: j, authenticated: M, state: N, provider: P } = A, F = r(() => P ? {
97
+ isAuthenticated: M,
98
+ ...N === void 0 ? {} : { status: N },
99
+ accessToken: j?.accessToken ?? "",
112
100
  details: {
113
101
  username: "",
114
102
  email: "",
115
103
  roles: "",
116
104
  permissions: "",
117
105
  verified: "",
118
- ...M?.details ?? {}
106
+ ...j?.details ?? {}
119
107
  }
120
- }, [
121
- F,
108
+ } : {}, [
109
+ P,
110
+ j,
122
111
  M,
123
- N,
124
- P
125
- ]), L = t(() => d(I).map((e) => ({
112
+ N
113
+ ]), I = t(() => u(F).map((e) => ({
126
114
  path: e,
127
115
  name: `user.${e}`
128
- })), [I]);
129
- f({
116
+ })), [F]);
117
+ p({
130
118
  id: "global",
131
119
  source: "auth",
132
120
  name: "Auth State",
133
- fields: L
134
- }), o("runtime.sources.auth", I);
135
- let R = m(j), z = r(() => l(R), [R]), B = t(() => Object.keys(z).map((e) => ({
121
+ fields: I
122
+ }), o("runtime.sources.auth", F);
123
+ let L = g(A), R = r(() => c(L), [L]), z = t(() => Object.keys(R).map((e) => ({
136
124
  path: e,
137
125
  name: `flags.${e}`,
138
126
  inputType: "checkbox"
139
- })), [z]);
140
- f({
127
+ })), [R]);
128
+ p({
141
129
  id: "global",
142
130
  source: "flags",
143
131
  name: "Feature Flags",
144
- fields: B
145
- }), o("runtime.sources.flags", z), o("flags.resolved", R);
146
- let [V, H] = a(["schema.flags", "flags.overrides"])[0], U = h(u(V, H ?? {}));
132
+ fields: z
133
+ }), o("runtime.sources.flags", R), o("flags.resolved", L);
134
+ let [B, V] = a(["schema.flags", "flags.overrides"])[0], H = te(l(B, V ?? {}));
147
135
  n(() => {
148
- U.forEach(({ layer: e, name: t }) => console.warn(`[plitzi] The ${e} sets the feature flag "${t}", which this space does not declare: the override is ignored. Declare the flag in the space, or remove the override.`));
149
- }, [U]);
150
- let [W] = a("runtime.state"), G = t(() => d(W).map((e) => ({
136
+ H.forEach(({ layer: e, name: t }) => console.warn(`[plitzi] The ${e} sets the feature flag "${t}", which this space does not declare: the override is ignored. Declare the flag in the space, or remove the override.`));
137
+ }, [H]);
138
+ let [U] = a("runtime.state"), W = t(() => u(U).map((e) => ({
151
139
  path: e,
152
140
  name: `state.${e}`
153
- })), [W]);
154
- f({
141
+ })), [U]);
142
+ p({
155
143
  id: "global",
156
144
  source: "state",
157
145
  name: "State",
158
- fields: G
159
- }), o("runtime.sources.state", W);
160
- let [K] = a("runtime.host"), q = t(() => d(K).map((e) => ({
146
+ fields: W
147
+ }), o("runtime.sources.state", U);
148
+ let [G] = a("runtime.host"), K = t(() => u(G).map((e) => ({
161
149
  path: e,
162
150
  name: `host.${e}`
163
- })), [K]);
164
- f({
151
+ })), [G]);
152
+ p({
165
153
  id: "global",
166
154
  source: "host",
167
155
  name: "Host",
168
- fields: q
169
- }), o("runtime.sources.host", K);
170
- let { theme: J, resolvedTheme: Y } = ne(re), X = r(() => ({
171
- mode: J,
172
- resolved: Y
173
- }), [J, Y]), ae = t(() => d(X).map((e) => ({
156
+ fields: K
157
+ }), o("runtime.sources.host", G);
158
+ let { theme: q, resolvedTheme: J } = d(f), Y = r(() => ({
159
+ mode: q,
160
+ resolved: J
161
+ }), [q, J]), X = t(() => u(Y).map((e) => ({
174
162
  path: e,
175
163
  name: `theme.${e}`
176
- })), [X]);
177
- f({
164
+ })), [Y]);
165
+ p({
178
166
  id: "global",
179
167
  source: "theme",
180
168
  name: "Theme",
181
- fields: ae
182
- }), o("runtime.sources.theme", X);
169
+ fields: X
170
+ }), o("runtime.sources.theme", Y);
183
171
  let [Z] = a("schema.settings.computed"), Q = i(void 0), $ = r(() => ee(Z ?? {}, {
184
- variables: E,
185
- navigation: k,
186
- auth: I,
187
- state: W ?? {},
188
- host: K ?? {},
189
- theme: X,
190
- flags: z
172
+ variables: w,
173
+ navigation: O,
174
+ auth: F,
175
+ state: U ?? {},
176
+ host: G ?? {},
177
+ theme: Y,
178
+ flags: R
191
179
  }, Q.current), [
192
180
  Z,
193
- E,
194
- k,
195
- I,
196
- W,
197
- K,
198
- X,
199
- z
181
+ w,
182
+ O,
183
+ F,
184
+ U,
185
+ G,
186
+ Y,
187
+ R
200
188
  ]);
201
189
  Q.current = $;
202
- let oe = t(() => d($).map((e) => ({
190
+ let ne = t(() => u($).map((e) => ({
203
191
  path: e,
204
192
  name: `computed.${e}`
205
193
  })), [$]);
206
- return f({
194
+ return p({
207
195
  id: "global",
208
196
  source: "computed",
209
197
  name: "Computed",
210
- fields: oe
211
- }), o("runtime.sources.computed", $), g;
198
+ fields: ne
199
+ }), o("runtime.sources.computed", $), _;
212
200
  };
213
201
  //#endregion
214
- export { g as default };
202
+ export { _ as default };
@@ -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 display: "flex";
56
+ readonly 'justify-content': "center";
57
+ readonly 'align-items': "center";
58
+ };
55
59
  };
56
60
  };
57
61
  };
@@ -39,7 +39,11 @@ var t = e()({
39
39
  defaultStyle: {
40
40
  name: "Custom Element",
41
41
  displayMode: "desktop",
42
- style: { base: { default: {} } }
42
+ style: { base: { default: {
43
+ display: "flex",
44
+ "justify-content": "center",
45
+ "align-items": "center"
46
+ } } }
43
47
  },
44
48
  settings: {}
45
49
  }
@@ -46,7 +46,11 @@ declare const Custom: {
46
46
  readonly displayMode: "desktop";
47
47
  readonly style: {
48
48
  readonly base: {
49
- readonly default: {};
49
+ readonly default: {
50
+ readonly display: "flex";
51
+ readonly 'justify-content': "center";
52
+ readonly 'align-items': "center";
53
+ };
50
54
  };
51
55
  };
52
56
  };
@@ -55,7 +55,19 @@ declare const declaration: {
55
55
  readonly displayMode: "desktop";
56
56
  readonly style: {
57
57
  readonly base: {
58
- readonly default: {};
58
+ readonly default: {
59
+ 'padding-top': string;
60
+ 'padding-left': string;
61
+ 'padding-right': string;
62
+ 'padding-bottom': string;
63
+ cursor: string;
64
+ 'font-size': string;
65
+ 'line-height': string;
66
+ 'border-top-left-radius': string;
67
+ 'border-top-right-radius': string;
68
+ 'border-bottom-left-radius': string;
69
+ 'border-bottom-right-radius': string;
70
+ };
59
71
  };
60
72
  };
61
73
  readonly subTypes: {
@@ -65,17 +77,17 @@ declare const declaration: {
65
77
  readonly style: {
66
78
  readonly base: {
67
79
  readonly default: {
68
- readonly 'padding-top': "6px";
69
- readonly 'padding-left': "12px";
70
- readonly 'padding-right': "12px";
71
- readonly 'padding-bottom': "6px";
72
- readonly cursor: "pointer";
73
- readonly 'font-size': "16px";
74
- readonly 'line-height': "1.5";
75
- readonly 'border-top-left-radius': "4px";
76
- readonly 'border-top-right-radius': "4px";
77
- readonly 'border-bottom-left-radius': "4px";
78
- readonly 'border-bottom-right-radius': "4px";
80
+ 'padding-top': string;
81
+ 'padding-left': string;
82
+ 'padding-right': string;
83
+ 'padding-bottom': string;
84
+ cursor: string;
85
+ 'font-size': string;
86
+ 'line-height': string;
87
+ 'border-top-left-radius': string;
88
+ 'border-top-right-radius': string;
89
+ 'border-bottom-left-radius': string;
90
+ 'border-bottom-right-radius': string;
79
91
  };
80
92
  };
81
93
  };
@@ -86,17 +98,17 @@ declare const declaration: {
86
98
  readonly style: {
87
99
  readonly base: {
88
100
  readonly default: {
89
- readonly 'padding-top': "6px";
90
- readonly 'padding-left': "12px";
91
- readonly 'padding-right': "12px";
92
- readonly 'padding-bottom': "6px";
93
- readonly cursor: "pointer";
94
- readonly 'font-size': "16px";
95
- readonly 'line-height': "1.5";
96
- readonly 'border-top-left-radius': "4px";
97
- readonly 'border-top-right-radius': "4px";
98
- readonly 'border-bottom-left-radius': "4px";
99
- readonly 'border-bottom-right-radius': "4px";
101
+ 'padding-top': string;
102
+ 'padding-left': string;
103
+ 'padding-right': string;
104
+ 'padding-bottom': string;
105
+ cursor: string;
106
+ 'font-size': string;
107
+ 'line-height': string;
108
+ 'border-top-left-radius': string;
109
+ 'border-top-right-radius': string;
110
+ 'border-bottom-left-radius': string;
111
+ 'border-bottom-right-radius': string;
100
112
  };
101
113
  };
102
114
  };
@@ -107,17 +119,17 @@ declare const declaration: {
107
119
  readonly style: {
108
120
  readonly base: {
109
121
  readonly default: {
110
- readonly 'padding-top': "6px";
111
- readonly 'padding-left': "12px";
112
- readonly 'padding-right': "12px";
113
- readonly 'padding-bottom': "6px";
114
- readonly cursor: "pointer";
115
- readonly 'font-size': "16px";
116
- readonly 'line-height': "1.5";
117
- readonly 'border-top-left-radius': "4px";
118
- readonly 'border-top-right-radius': "4px";
119
- readonly 'border-bottom-left-radius': "4px";
120
- readonly 'border-bottom-right-radius': "4px";
122
+ 'padding-top': string;
123
+ 'padding-left': string;
124
+ 'padding-right': string;
125
+ 'padding-bottom': string;
126
+ cursor: string;
127
+ 'font-size': string;
128
+ 'line-height': string;
129
+ 'border-top-left-radius': string;
130
+ 'border-top-right-radius': string;
131
+ 'border-bottom-left-radius': string;
132
+ 'border-bottom-right-radius': string;
121
133
  };
122
134
  };
123
135
  };
@@ -1,6 +1,18 @@
1
1
  import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring/declare";
2
2
  //#region src/elements/basic/Button/declaration.ts
3
- var n = e()({
3
+ var n = {
4
+ "padding-top": "6px",
5
+ "padding-left": "12px",
6
+ "padding-right": "12px",
7
+ "padding-bottom": "6px",
8
+ cursor: "pointer",
9
+ "font-size": "16px",
10
+ "line-height": "1.5",
11
+ "border-top-left-radius": "4px",
12
+ "border-top-right-radius": "4px",
13
+ "border-bottom-left-radius": "4px",
14
+ "border-bottom-right-radius": "4px"
15
+ }, r = e()({
4
16
  type: "button",
5
17
  attributeValues: {
6
18
  subType: t()([
@@ -53,58 +65,22 @@ var n = e()({
53
65
  defaultStyle: {
54
66
  name: "Button",
55
67
  displayMode: "desktop",
56
- style: { base: { default: {} } },
68
+ style: { base: { default: n } },
57
69
  subTypes: {
58
70
  button: {
59
71
  name: "Default Button",
60
72
  displayMode: "desktop",
61
- style: { base: { default: {
62
- "padding-top": "6px",
63
- "padding-left": "12px",
64
- "padding-right": "12px",
65
- "padding-bottom": "6px",
66
- cursor: "pointer",
67
- "font-size": "16px",
68
- "line-height": "1.5",
69
- "border-top-left-radius": "4px",
70
- "border-top-right-radius": "4px",
71
- "border-bottom-left-radius": "4px",
72
- "border-bottom-right-radius": "4px"
73
- } } }
73
+ style: { base: { default: n } }
74
74
  },
75
75
  reset: {
76
76
  name: "Reset Button",
77
77
  displayMode: "desktop",
78
- style: { base: { default: {
79
- "padding-top": "6px",
80
- "padding-left": "12px",
81
- "padding-right": "12px",
82
- "padding-bottom": "6px",
83
- cursor: "pointer",
84
- "font-size": "16px",
85
- "line-height": "1.5",
86
- "border-top-left-radius": "4px",
87
- "border-top-right-radius": "4px",
88
- "border-bottom-left-radius": "4px",
89
- "border-bottom-right-radius": "4px"
90
- } } }
78
+ style: { base: { default: n } }
91
79
  },
92
80
  submit: {
93
81
  name: "Submit Button",
94
82
  displayMode: "desktop",
95
- style: { base: { default: {
96
- "padding-top": "6px",
97
- "padding-left": "12px",
98
- "padding-right": "12px",
99
- "padding-bottom": "6px",
100
- cursor: "pointer",
101
- "font-size": "16px",
102
- "line-height": "1.5",
103
- "border-top-left-radius": "4px",
104
- "border-top-right-radius": "4px",
105
- "border-bottom-left-radius": "4px",
106
- "border-bottom-right-radius": "4px"
107
- } } }
83
+ style: { base: { default: n } }
108
84
  }
109
85
  }
110
86
  },
@@ -112,4 +88,4 @@ var n = e()({
112
88
  }
113
89
  });
114
90
  //#endregion
115
- export { n as default };
91
+ export { r as default };
@@ -54,7 +54,19 @@ declare const Button: {
54
54
  readonly displayMode: "desktop";
55
55
  readonly style: {
56
56
  readonly base: {
57
- readonly default: {};
57
+ readonly default: {
58
+ 'padding-top': string;
59
+ 'padding-left': string;
60
+ 'padding-right': string;
61
+ 'padding-bottom': string;
62
+ cursor: string;
63
+ 'font-size': string;
64
+ 'line-height': string;
65
+ 'border-top-left-radius': string;
66
+ 'border-top-right-radius': string;
67
+ 'border-bottom-left-radius': string;
68
+ 'border-bottom-right-radius': string;
69
+ };
58
70
  };
59
71
  };
60
72
  readonly subTypes: {
@@ -64,17 +76,17 @@ declare const Button: {
64
76
  readonly style: {
65
77
  readonly base: {
66
78
  readonly default: {
67
- readonly 'padding-top': "6px";
68
- readonly 'padding-left': "12px";
69
- readonly 'padding-right': "12px";
70
- readonly 'padding-bottom': "6px";
71
- readonly cursor: "pointer";
72
- readonly 'font-size': "16px";
73
- readonly 'line-height': "1.5";
74
- readonly 'border-top-left-radius': "4px";
75
- readonly 'border-top-right-radius': "4px";
76
- readonly 'border-bottom-left-radius': "4px";
77
- readonly 'border-bottom-right-radius': "4px";
79
+ 'padding-top': string;
80
+ 'padding-left': string;
81
+ 'padding-right': string;
82
+ 'padding-bottom': string;
83
+ cursor: string;
84
+ 'font-size': string;
85
+ 'line-height': string;
86
+ 'border-top-left-radius': string;
87
+ 'border-top-right-radius': string;
88
+ 'border-bottom-left-radius': string;
89
+ 'border-bottom-right-radius': string;
78
90
  };
79
91
  };
80
92
  };
@@ -85,17 +97,17 @@ declare const Button: {
85
97
  readonly style: {
86
98
  readonly base: {
87
99
  readonly default: {
88
- readonly 'padding-top': "6px";
89
- readonly 'padding-left': "12px";
90
- readonly 'padding-right': "12px";
91
- readonly 'padding-bottom': "6px";
92
- readonly cursor: "pointer";
93
- readonly 'font-size': "16px";
94
- readonly 'line-height': "1.5";
95
- readonly 'border-top-left-radius': "4px";
96
- readonly 'border-top-right-radius': "4px";
97
- readonly 'border-bottom-left-radius': "4px";
98
- readonly 'border-bottom-right-radius': "4px";
100
+ 'padding-top': string;
101
+ 'padding-left': string;
102
+ 'padding-right': string;
103
+ 'padding-bottom': string;
104
+ cursor: string;
105
+ 'font-size': string;
106
+ 'line-height': string;
107
+ 'border-top-left-radius': string;
108
+ 'border-top-right-radius': string;
109
+ 'border-bottom-left-radius': string;
110
+ 'border-bottom-right-radius': string;
99
111
  };
100
112
  };
101
113
  };
@@ -106,17 +118,17 @@ declare const Button: {
106
118
  readonly style: {
107
119
  readonly base: {
108
120
  readonly default: {
109
- readonly 'padding-top': "6px";
110
- readonly 'padding-left': "12px";
111
- readonly 'padding-right': "12px";
112
- readonly 'padding-bottom': "6px";
113
- readonly cursor: "pointer";
114
- readonly 'font-size': "16px";
115
- readonly 'line-height': "1.5";
116
- readonly 'border-top-left-radius': "4px";
117
- readonly 'border-top-right-radius': "4px";
118
- readonly 'border-bottom-left-radius': "4px";
119
- readonly 'border-bottom-right-radius': "4px";
121
+ 'padding-top': string;
122
+ 'padding-left': string;
123
+ 'padding-right': string;
124
+ 'padding-bottom': string;
125
+ cursor: string;
126
+ 'font-size': string;
127
+ 'line-height': string;
128
+ 'border-top-left-radius': string;
129
+ 'border-top-right-radius': string;
130
+ 'border-bottom-left-radius': string;
131
+ 'border-bottom-right-radius': string;
120
132
  };
121
133
  };
122
134
  };