@sellmate/design-system 0.0.7 → 0.0.9

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/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{index-D3QUS1Eb.js → index-iB3JlG0y.js} +5 -5
  3. package/dist/cjs/index-iB3JlG0y.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/sd-button_4.cjs.entry.js +1 -1
  6. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-date-box_2.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-pagination_2.cjs.entry.js +2 -2
  11. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  12. package/dist/cjs/sd-select-option.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-select.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-table.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-tag.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-tooltip-portal.cjs.entry.js +1 -1
  17. package/dist/cjs/{tooltipArrow-DKQk16So.js → tooltipArrow-CSLQDjwL.js} +3 -3
  18. package/dist/cjs/{tooltipArrow-DKQk16So.js.map → tooltipArrow-CSLQDjwL.js.map} +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/{p-BBcRxAHQ.js → p-B0--8AFP.js} +3 -3
  21. package/dist/components/{p-BBcRxAHQ.js.map → p-B0--8AFP.js.map} +1 -1
  22. package/dist/components/{p-CcIaxZWu.js → p-B3-UiLOb.js} +3 -3
  23. package/dist/components/{p-CcIaxZWu.js.map → p-B3-UiLOb.js.map} +1 -1
  24. package/dist/components/{p-DqOQpFv5.js → p-BVQq85Sb.js} +3 -3
  25. package/dist/components/{p-DqOQpFv5.js.map → p-BVQq85Sb.js.map} +1 -1
  26. package/dist/components/{p-CIPoof7_.js → p-BrGg4-IA.js} +4 -4
  27. package/dist/components/{p-CIPoof7_.js.map → p-BrGg4-IA.js.map} +1 -1
  28. package/dist/components/{p-DeANT-RC.js → p-CIRxuq9O.js} +3 -3
  29. package/dist/components/{p-DeANT-RC.js.map → p-CIRxuq9O.js.map} +1 -1
  30. package/dist/components/{p-Dk7pK8T6.js → p-CmjvNSNS.js} +3 -3
  31. package/dist/components/{p-Dk7pK8T6.js.map → p-CmjvNSNS.js.map} +1 -1
  32. package/dist/components/{p-BKNkY07K.js → p-CvQARSF2.js} +4 -4
  33. package/dist/components/{p-BKNkY07K.js.map → p-CvQARSF2.js.map} +1 -1
  34. package/dist/components/{p-BJe9kiv9.js → p-CwAyLWEQ.js} +4 -4
  35. package/dist/components/{p-BJe9kiv9.js.map → p-CwAyLWEQ.js.map} +1 -1
  36. package/dist/components/{p-D7GkmGX3.js → p-Cwa0Scin.js} +4 -4
  37. package/dist/components/{p-D7GkmGX3.js.map → p-Cwa0Scin.js.map} +1 -1
  38. package/dist/components/{p-C_ZLFIzZ.js → p-D_I5tXD6.js} +6 -6
  39. package/dist/components/p-D_I5tXD6.js.map +1 -0
  40. package/dist/components/{p-DmNaQwtz.js → p-Dg9QFKjM.js} +5 -5
  41. package/dist/components/{p-DmNaQwtz.js.map → p-Dg9QFKjM.js.map} +1 -1
  42. package/dist/components/{p-CR_d0Wrj.js → p-DyncZo9Q.js} +7 -7
  43. package/dist/components/{p-CR_d0Wrj.js.map → p-DyncZo9Q.js.map} +1 -1
  44. package/dist/components/sd-button.js +1 -1
  45. package/dist/components/sd-checkbox.js +1 -1
  46. package/dist/components/sd-date-box.js +1 -1
  47. package/dist/components/sd-date-picker.js +5 -5
  48. package/dist/components/sd-date-range-picker.js +5 -5
  49. package/dist/components/sd-guide.js +4 -4
  50. package/dist/components/sd-icon.js +1 -1
  51. package/dist/components/sd-input.js +1 -1
  52. package/dist/components/sd-pagination.js +1 -1
  53. package/dist/components/sd-popover.js +5 -5
  54. package/dist/components/sd-portal.js +1 -1
  55. package/dist/components/sd-select-option.js +1 -1
  56. package/dist/components/sd-select.js +6 -6
  57. package/dist/components/sd-table.js +7 -7
  58. package/dist/components/sd-tag.js +1 -1
  59. package/dist/components/sd-tooltip-portal.js +1 -1
  60. package/dist/components/sd-tooltip.js +1 -1
  61. package/dist/design-system/design-system.esm.js +1 -1
  62. package/dist/design-system/{p-df03331a.entry.js → p-12aaaa03.entry.js} +2 -2
  63. package/dist/design-system/{p-94f7e066.entry.js → p-1f393066.entry.js} +2 -2
  64. package/dist/design-system/{p-a24a9772.entry.js → p-2bb928fc.entry.js} +2 -2
  65. package/dist/design-system/{p-24f6b072.entry.js → p-5db3252c.entry.js} +2 -2
  66. package/dist/design-system/{p-10264e8e.entry.js → p-682cf57d.entry.js} +2 -2
  67. package/dist/design-system/{p-0bdf567e.entry.js → p-7e33f5e5.entry.js} +2 -2
  68. package/dist/design-system/{p-a9713309.entry.js → p-8b2b47a7.entry.js} +2 -2
  69. package/dist/design-system/{p-0366ba33.entry.js → p-912c7a8d.entry.js} +2 -2
  70. package/dist/design-system/{p-8844ec3b.entry.js → p-97dbc008.entry.js} +2 -2
  71. package/dist/design-system/{p-bc64ffa7.entry.js → p-997af0ed.entry.js} +2 -2
  72. package/dist/design-system/{p-B9LQNxjd.js → p-DMW6VeLX.js} +2 -2
  73. package/dist/design-system/{p-B9LQNxjd.js.map → p-DMW6VeLX.js.map} +1 -1
  74. package/dist/design-system/p-DVhJrGoi.js +3 -0
  75. package/dist/design-system/p-DVhJrGoi.js.map +1 -0
  76. package/dist/design-system/{p-764e14ea.entry.js → p-c87c465b.entry.js} +2 -2
  77. package/dist/design-system/{p-329d3532.entry.js → p-e40ff66a.entry.js} +2 -2
  78. package/dist/esm/design-system.js +2 -2
  79. package/dist/esm/{index-DzM-iWij.js → index-DVhJrGoi.js} +5 -5
  80. package/dist/esm/index-DVhJrGoi.js.map +1 -0
  81. package/dist/esm/loader.js +2 -2
  82. package/dist/esm/sd-button_4.entry.js +1 -1
  83. package/dist/esm/sd-checkbox.entry.js +1 -1
  84. package/dist/esm/sd-date-box_2.entry.js +1 -1
  85. package/dist/esm/sd-date-picker.entry.js +1 -1
  86. package/dist/esm/sd-date-range-picker.entry.js +1 -1
  87. package/dist/esm/sd-pagination_2.entry.js +2 -2
  88. package/dist/esm/sd-popover.entry.js +2 -2
  89. package/dist/esm/sd-select-option.entry.js +1 -1
  90. package/dist/esm/sd-select.entry.js +1 -1
  91. package/dist/esm/sd-table.entry.js +1 -1
  92. package/dist/esm/sd-tag.entry.js +1 -1
  93. package/dist/esm/sd-tooltip-portal.entry.js +1 -1
  94. package/dist/esm/{tooltipArrow-Dybd-1up.js → tooltipArrow-BZiofDi8.js} +3 -3
  95. package/dist/esm/{tooltipArrow-Dybd-1up.js.map → tooltipArrow-BZiofDi8.js.map} +1 -1
  96. package/hydrate/index.d.ts +275 -0
  97. package/hydrate/index.js +22315 -0
  98. package/hydrate/index.mjs +22307 -0
  99. package/hydrate/package.json +12 -0
  100. package/package.json +10 -3
  101. package/dist/cjs/index-D3QUS1Eb.js.map +0 -1
  102. package/dist/components/p-C_ZLFIzZ.js.map +0 -1
  103. package/dist/design-system/p-DzM-iWij.js +0 -3
  104. package/dist/design-system/p-DzM-iWij.js.map +0 -1
  105. package/dist/esm/index-DzM-iWij.js.map +0 -1
  106. /package/dist/design-system/{p-df03331a.entry.js.map → p-12aaaa03.entry.js.map} +0 -0
  107. /package/dist/design-system/{p-94f7e066.entry.js.map → p-1f393066.entry.js.map} +0 -0
  108. /package/dist/design-system/{p-a24a9772.entry.js.map → p-2bb928fc.entry.js.map} +0 -0
  109. /package/dist/design-system/{p-24f6b072.entry.js.map → p-5db3252c.entry.js.map} +0 -0
  110. /package/dist/design-system/{p-10264e8e.entry.js.map → p-682cf57d.entry.js.map} +0 -0
  111. /package/dist/design-system/{p-0bdf567e.entry.js.map → p-7e33f5e5.entry.js.map} +0 -0
  112. /package/dist/design-system/{p-a9713309.entry.js.map → p-8b2b47a7.entry.js.map} +0 -0
  113. /package/dist/design-system/{p-0366ba33.entry.js.map → p-912c7a8d.entry.js.map} +0 -0
  114. /package/dist/design-system/{p-8844ec3b.entry.js.map → p-97dbc008.entry.js.map} +0 -0
  115. /package/dist/design-system/{p-bc64ffa7.entry.js.map → p-997af0ed.entry.js.map} +0 -0
  116. /package/dist/design-system/{p-764e14ea.entry.js.map → p-c87c465b.entry.js.map} +0 -0
  117. /package/dist/design-system/{p-329d3532.entry.js.map → p-e40ff66a.entry.js.map} +0 -0
@@ -0,0 +1,275 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { Readable } from 'node:stream';
4
+
5
+ export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
6
+ /**
7
+ * Serialize a value to a string that can be deserialized later.
8
+ * @param {unknown} value - The value to serialize.
9
+ * @returns {string} A string that can be deserialized later.
10
+ * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
11
+ */
12
+ export declare function serializeProperty(value: unknown): string | number | boolean;
13
+ /**
14
+ * Deserialize a value from a string that was serialized earlier.
15
+ * @param {string} value - The string to deserialize.
16
+ * @returns {unknown} The deserialized value.
17
+ * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
18
+ */
19
+ export declare function deserializeProperty(value: string): any;
20
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
21
+ export interface HydrateDocumentOptions {
22
+ /**
23
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
24
+ * a random ID will be generated
25
+ */
26
+ buildId?: string;
27
+ /**
28
+ * Sets the `href` attribute on the `<link rel="canonical">`
29
+ * tag within the `<head>`. If the value is not defined it will
30
+ * ensure a canonical link tag is no included in the `<head>`.
31
+ */
32
+ canonicalUrl?: string;
33
+ /**
34
+ * Include the HTML comments and attributes used by the client-side
35
+ * JavaScript to read the structure of the HTML and rebuild each
36
+ * component. Defaults to `true`.
37
+ */
38
+ clientHydrateAnnotations?: boolean;
39
+ /**
40
+ * Constrain `setTimeout()` to 1ms, but still async. Also
41
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
42
+ * Defaults to `true`.
43
+ */
44
+ constrainTimeouts?: boolean;
45
+ /**
46
+ * Sets `document.cookie`
47
+ */
48
+ cookie?: string;
49
+ /**
50
+ * Sets the `dir` attribute on the top level `<html>`.
51
+ */
52
+ direction?: string;
53
+ /**
54
+ * Component tag names listed here will not be prerendered, nor will
55
+ * hydrated on the client-side. Components listed here will be ignored
56
+ * as custom elements and treated no differently than a `<div>`.
57
+ */
58
+ excludeComponents?: string[];
59
+ /**
60
+ * Sets the `lang` attribute on the top level `<html>`.
61
+ */
62
+ language?: string;
63
+ /**
64
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
65
+ */
66
+ maxHydrateCount?: number;
67
+ /**
68
+ * Sets `document.referrer`
69
+ */
70
+ referrer?: string;
71
+ /**
72
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
73
+ */
74
+ removeScripts?: boolean;
75
+ /**
76
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
77
+ */
78
+ removeUnusedStyles?: boolean;
79
+ /**
80
+ * The url the runtime uses for the resources, such as the assets directory.
81
+ */
82
+ resourcesUrl?: string;
83
+ /**
84
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
85
+ */
86
+ runtimeLogging?: boolean;
87
+ /**
88
+ * Component tags listed here will only be prerendered or server-side-rendered
89
+ * and will not be client-side hydrated. This is useful for components that
90
+ * are not dynamic and do not need to be defined as a custom element within the
91
+ * browser. For example, a header or footer component would be a good example that
92
+ * may not require any client-side JavaScript.
93
+ */
94
+ staticComponents?: string[];
95
+ /**
96
+ * The amount of milliseconds to wait for a page to finish rendering until
97
+ * a timeout error is thrown. Defaults to `15000`.
98
+ */
99
+ timeout?: number;
100
+ /**
101
+ * Sets `document.title`.
102
+ */
103
+ title?: string;
104
+ /**
105
+ * Sets `location.href`
106
+ */
107
+ url?: string;
108
+ /**
109
+ * Sets `navigator.userAgent`
110
+ */
111
+ userAgent?: string;
112
+ /**
113
+ * Configure how Stencil serializes the components shadow root.
114
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
115
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
116
+ * and the shadow DOM will be created during client-side hydration.
117
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
118
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
119
+ *
120
+ * Examples:
121
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
122
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
123
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
124
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
125
+ * - `'scoped'` Render all components as `scoped`
126
+ * - `false` disables shadow root serialization
127
+ *
128
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
129
+ * @default 'declarative-shadow-dom'
130
+ */
131
+ serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
132
+ "declarative-shadow-dom"?: string[];
133
+ scoped?: string[];
134
+ default: "declarative-shadow-dom" | "scoped";
135
+ } | boolean;
136
+ }
137
+ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
138
+ /**
139
+ * Runs after the `document` has been hydrated.
140
+ */
141
+ afterHydrate?(document: any): any | Promise<any>;
142
+ /**
143
+ * Sets an approximate line width the HTML should attempt to stay within.
144
+ * Note that this is "approximate", in that HTML may often not be able
145
+ * to be split at an exact line width. Additionally, new lines created
146
+ * is where HTML naturally already has whitespace, such as before an
147
+ * attribute or spaces between words. Defaults to `100`.
148
+ */
149
+ approximateLineWidth?: number;
150
+ /**
151
+ * Runs before the `document` has been hydrated.
152
+ */
153
+ beforeHydrate?(document: any): any | Promise<any>;
154
+ /**
155
+ * Format the HTML in a nicely indented format.
156
+ * Defaults to `false`.
157
+ */
158
+ prettyHtml?: boolean;
159
+ /**
160
+ * Remove quotes from attribute values when possible.
161
+ * Defaults to `true`.
162
+ */
163
+ removeAttributeQuotes?: boolean;
164
+ /**
165
+ * Remove the `=""` from standardized `boolean` attributes,
166
+ * such as `hidden` or `checked`. Defaults to `true`.
167
+ */
168
+ removeBooleanAttributeQuotes?: boolean;
169
+ /**
170
+ * Remove these standardized attributes when their value is empty:
171
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
172
+ */
173
+ removeEmptyAttributes?: boolean;
174
+ /**
175
+ * Remove HTML comments. Defaults to `true`.
176
+ */
177
+ removeHtmlComments?: boolean;
178
+ /**
179
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
180
+ * generate a complete HTML document, or false to render only the component.
181
+ * @default true
182
+ */
183
+ fullDocument?: boolean;
184
+ /**
185
+ * Style modes to render the component in.
186
+ * @see https://stenciljs.com/docs/styling#style-modes
187
+ */
188
+ modes?: ResolutionHandler[];
189
+ }
190
+ export interface HydrateFactoryOptions extends SerializeDocumentOptions {
191
+ serializeToHtml: boolean;
192
+ destroyWindow: boolean;
193
+ destroyDocument: boolean;
194
+ }
195
+ export interface Diagnostic {
196
+ absFilePath?: string | undefined;
197
+ code?: string;
198
+ columnNumber?: number | undefined;
199
+ debugText?: string;
200
+ header?: string;
201
+ language?: string;
202
+ level: "error" | "warn" | "info" | "log" | "debug";
203
+ lineNumber?: number | undefined;
204
+ lines: PrintLine[];
205
+ messageText: string;
206
+ relFilePath?: string | undefined;
207
+ type: string;
208
+ }
209
+ export interface PrintLine {
210
+ lineIndex: number;
211
+ lineNumber: number;
212
+ text: string;
213
+ errorCharStart: number;
214
+ errorLength?: number;
215
+ }
216
+ export interface HydrateResults {
217
+ buildId: string;
218
+ diagnostics: Diagnostic[];
219
+ url: string;
220
+ host: string | null;
221
+ hostname: string | null;
222
+ href: string | null;
223
+ port: string | null;
224
+ pathname: string | null;
225
+ search: string | null;
226
+ hash: string | null;
227
+ html: string | null;
228
+ components: HydrateComponent[];
229
+ anchors: HydrateAnchorElement[];
230
+ imgs: HydrateImgElement[];
231
+ scripts: HydrateScriptElement[];
232
+ styles: HydrateStyleElement[];
233
+ staticData: HydrateStaticData[];
234
+ title: string | null;
235
+ hydratedCount: number;
236
+ httpStatus: number | null;
237
+ }
238
+ export interface HydrateComponent {
239
+ tag: string;
240
+ mode: string;
241
+ count: number;
242
+ depth: number;
243
+ }
244
+ export interface HydrateElement {
245
+ [attrName: string]: string | undefined;
246
+ }
247
+ export interface HydrateAnchorElement extends HydrateElement {
248
+ href?: string;
249
+ target?: string;
250
+ }
251
+ export interface HydrateImgElement extends HydrateElement {
252
+ src?: string;
253
+ }
254
+ export interface HydrateScriptElement extends HydrateElement {
255
+ src?: string;
256
+ type?: string;
257
+ }
258
+ export interface HydrateStyleElement extends HydrateElement {
259
+ id?: string;
260
+ href?: string;
261
+ content?: string;
262
+ }
263
+ export interface HydrateStaticData {
264
+ id: string;
265
+ type: string;
266
+ content: string;
267
+ }
268
+ export declare function streamToString(html: string | any, option?: SerializeDocumentOptions): Readable;
269
+ export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
270
+ export declare function renderToString(html: string | any, options: SerializeDocumentOptions | undefined, asStream: true): Readable;
271
+ export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
272
+ export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
273
+ export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
274
+
275
+ export {};