@sellmate/design-system-react 1.0.61 → 1.0.63
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.
- package/README.md +1 -1
- package/dist/components/components.d.ts +55 -13
- package/dist/components/components.js +97 -19
- package/dist/components/components.server.d.ts +55 -13
- package/dist/components/components.server.js +131 -18
- package/dist/hooks/useSdTableVirtualScroll.d.ts +11 -0
- package/dist/hooks/useSdTableVirtualScroll.js +56 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -1
- package/dist/sdModal.d.ts +2 -1
- package/dist/sdModal.js +4 -6
- package/lib/components/components.server.ts +207 -72
- package/lib/components/components.ts +147 -28
- package/lib/hooks/useSdTableVirtualScroll.ts +82 -0
- package/lib/index.ts +4 -3
- package/lib/sdModal.ts +6 -9
- package/package.json +2 -2
- package/dist/SdTable.d.ts +0 -40
- package/dist/SdTable.js +0 -74
- package/lib/SdTable.tsx +0 -185
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @ts-ignore - ignore potential type issues as the project is importing itself
|
|
9
9
|
import * as clientComponents from '@sellmate/design-system-react';
|
|
10
10
|
|
|
11
|
-
import { type CheckedType, type DateRangeValue, type DropdownButtonValue, type Event, type RadioValue, type SdBarcodeInputCustomEvent, type SdButtonCustomEvent, type SdButtonV2CustomEvent, type SdCheckboxCustomEvent, type SdDateRangePickerCustomEvent, type SdDropdownButtonCustomEvent, type SdFilePickerCustomEvent, type SdGhostButtonCustomEvent, type SdInputCustomEvent, type SdNumberInputCustomEvent, type
|
|
11
|
+
import { type CheckedType, type DateRangeValue, type DropdownButtonValue, type Event, type RadioValue, type Row, type SdBarcodeInputCustomEvent, type SdButtonCustomEvent, type SdButtonV2CustomEvent, type SdCheckboxCustomEvent, type SdDateRangePickerCustomEvent, type SdDropdownButtonCustomEvent, type SdFilePickerCustomEvent, type SdGhostButtonCustomEvent, type SdInputCustomEvent, type SdNumberInputCustomEvent, type SdRadioButtonCustomEvent, type SdRadioCustomEvent, type SdRadioGroupCustomEvent, type SdSelectCustomEvent, type SdSelectDropdownCustomEvent, type SdSelectGroupCustomEvent, type SdSelectMultipleCustomEvent, type SdSelectMultipleGroupCustomEvent, type SdSelectOptionCustomEvent, type SdSelectOptionGroupCustomEvent, type SdSelectV2CustomEvent, type SdSelectV2ListItemCustomEvent, type SdSelectV2ListboxCustomEvent, type SdTableCustomEvent, type SdTextareaCustomEvent, type SelectEvents, type SelectMultipleEvents, type SelectOption, type SelectOptionGroup, type SelectV2Option, type SelectV2OptionSelectDetail, type SelectV2Value } from "@sellmate/design-system";
|
|
12
12
|
import { SdActionModal as SdActionModalElement } from "@sellmate/design-system/dist/components/sd-action-modal.js";
|
|
13
13
|
import { SdBadge as SdBadgeElement } from "@sellmate/design-system/dist/components/sd-badge.js";
|
|
14
14
|
import { SdBarcodeInput as SdBarcodeInputElement } from "@sellmate/design-system/dist/components/sd-barcode-input.js";
|
|
@@ -17,6 +17,7 @@ import { SdButton as SdButtonElement } from "@sellmate/design-system/dist/compon
|
|
|
17
17
|
import { SdCalendar as SdCalendarElement } from "@sellmate/design-system/dist/components/sd-calendar.js";
|
|
18
18
|
import { SdCard as SdCardElement } from "@sellmate/design-system/dist/components/sd-card.js";
|
|
19
19
|
import { SdCheckbox as SdCheckboxElement } from "@sellmate/design-system/dist/components/sd-checkbox.js";
|
|
20
|
+
import { SdCircleProgress as SdCircleProgressElement } from "@sellmate/design-system/dist/components/sd-circle-progress.js";
|
|
20
21
|
import { SdConfirmModal as SdConfirmModalElement } from "@sellmate/design-system/dist/components/sd-confirm-modal.js";
|
|
21
22
|
import { SdDateBox as SdDateBoxElement } from "@sellmate/design-system/dist/components/sd-date-box.js";
|
|
22
23
|
import { SdDatePickerCalendar as SdDatePickerCalendarElement } from "@sellmate/design-system/dist/components/sd-date-picker-calendar.js";
|
|
@@ -33,14 +34,15 @@ import { SdGhostButton as SdGhostButtonElement } from "@sellmate/design-system/d
|
|
|
33
34
|
import { SdGuide as SdGuideElement } from "@sellmate/design-system/dist/components/sd-guide.js";
|
|
34
35
|
import { SdIcon as SdIconElement } from "@sellmate/design-system/dist/components/sd-icon.js";
|
|
35
36
|
import { SdInput as SdInputElement } from "@sellmate/design-system/dist/components/sd-input.js";
|
|
36
|
-
import {
|
|
37
|
+
import { SdLoadingContainer as SdLoadingContainerElement } from "@sellmate/design-system/dist/components/sd-loading-container.js";
|
|
38
|
+
import { SdLoadingModal as SdLoadingModalElement } from "@sellmate/design-system/dist/components/sd-loading-modal.js";
|
|
37
39
|
import { SdModalContainer as SdModalContainerElement } from "@sellmate/design-system/dist/components/sd-modal-container.js";
|
|
38
40
|
import { SdNumberInput as SdNumberInputElement } from "@sellmate/design-system/dist/components/sd-number-input.js";
|
|
39
41
|
import { SdPagination as SdPaginationElement } from "@sellmate/design-system/dist/components/sd-pagination.js";
|
|
40
42
|
import { SdPopover as SdPopoverElement } from "@sellmate/design-system/dist/components/sd-popover.js";
|
|
41
43
|
import { SdPortal as SdPortalElement } from "@sellmate/design-system/dist/components/sd-portal.js";
|
|
42
44
|
import { SdProgress as SdProgressElement } from "@sellmate/design-system/dist/components/sd-progress.js";
|
|
43
|
-
import {
|
|
45
|
+
import { SdRadioButton as SdRadioButtonElement } from "@sellmate/design-system/dist/components/sd-radio-button.js";
|
|
44
46
|
import { SdRadioGroup as SdRadioGroupElement } from "@sellmate/design-system/dist/components/sd-radio-group.js";
|
|
45
47
|
import { SdRadio as SdRadioElement } from "@sellmate/design-system/dist/components/sd-radio.js";
|
|
46
48
|
import { SdSelectDropdown as SdSelectDropdownElement } from "@sellmate/design-system/dist/components/sd-select-dropdown.js";
|
|
@@ -56,15 +58,21 @@ import { SdSelectV2Listbox as SdSelectV2ListboxElement } from "@sellmate/design-
|
|
|
56
58
|
import { SdSelectV2Trigger as SdSelectV2TriggerElement } from "@sellmate/design-system/dist/components/sd-select-v2-trigger.js";
|
|
57
59
|
import { SdSelectV2 as SdSelectV2Element } from "@sellmate/design-system/dist/components/sd-select-v2.js";
|
|
58
60
|
import { SdSelect as SdSelectElement } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
61
|
+
import { SdSwitch as SdSwitchElement } from "@sellmate/design-system/dist/components/sd-switch.js";
|
|
62
|
+
import { SdTable as SdTableElement } from "@sellmate/design-system/dist/components/sd-table.js";
|
|
59
63
|
import { SdTabs as SdTabsElement } from "@sellmate/design-system/dist/components/sd-tabs.js";
|
|
60
64
|
import { SdTag as SdTagElement } from "@sellmate/design-system/dist/components/sd-tag.js";
|
|
65
|
+
import { SdTbody as SdTbodyElement } from "@sellmate/design-system/dist/components/sd-tbody.js";
|
|
66
|
+
import { SdTd as SdTdElement } from "@sellmate/design-system/dist/components/sd-td.js";
|
|
61
67
|
import { SdTextLink as SdTextLinkElement } from "@sellmate/design-system/dist/components/sd-text-link.js";
|
|
62
68
|
import { SdTextarea as SdTextareaElement } from "@sellmate/design-system/dist/components/sd-textarea.js";
|
|
69
|
+
import { SdThead as SdTheadElement } from "@sellmate/design-system/dist/components/sd-thead.js";
|
|
63
70
|
import { SdToastContainer as SdToastContainerElement } from "@sellmate/design-system/dist/components/sd-toast-container.js";
|
|
64
71
|
import { SdToast as SdToastElement } from "@sellmate/design-system/dist/components/sd-toast.js";
|
|
65
|
-
import { SdToggleButton as SdToggleButtonElement } from "@sellmate/design-system/dist/components/sd-toggle-button.js";
|
|
66
72
|
import { SdToggle as SdToggleElement } from "@sellmate/design-system/dist/components/sd-toggle.js";
|
|
67
73
|
import { SdTooltip as SdTooltipElement } from "@sellmate/design-system/dist/components/sd-tooltip.js";
|
|
74
|
+
import { SdTr as SdTrElement } from "@sellmate/design-system/dist/components/sd-tr.js";
|
|
75
|
+
import { TableTest as TableTestElement } from "@sellmate/design-system/dist/components/table-test.js";
|
|
68
76
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
69
77
|
import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
70
78
|
|
|
@@ -123,8 +131,7 @@ export const SdBarcodeInput: StencilReactComponent<SdBarcodeInputElement, SdBarc
|
|
|
123
131
|
hovered: 'hovered',
|
|
124
132
|
label: 'label',
|
|
125
133
|
labelTooltip: 'label-tooltip',
|
|
126
|
-
rules: 'rules'
|
|
127
|
-
},
|
|
134
|
+
rules: 'rules'},
|
|
128
135
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
129
136
|
clientModule: clientComponents.SdBarcodeInput as ReactWebComponent<SdBarcodeInputElement, SdBarcodeInputEvents>,
|
|
130
137
|
serializeShadowRoot,
|
|
@@ -161,6 +168,7 @@ export const SdButtonV2: StencilReactComponent<SdButtonV2Element, SdButtonV2Even
|
|
|
161
168
|
name: 'name',
|
|
162
169
|
label: 'label',
|
|
163
170
|
icon: 'icon',
|
|
171
|
+
rightIcon: 'right-icon',
|
|
164
172
|
ariaLabel: 'aria-label',
|
|
165
173
|
disabled: 'disabled',
|
|
166
174
|
type: 'type'
|
|
@@ -204,6 +212,7 @@ export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEven
|
|
|
204
212
|
value: 'value',
|
|
205
213
|
val: 'val',
|
|
206
214
|
disabled: 'disabled',
|
|
215
|
+
inverse: 'inverse',
|
|
207
216
|
label: 'label'
|
|
208
217
|
},
|
|
209
218
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
@@ -211,6 +220,20 @@ export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEven
|
|
|
211
220
|
serializeShadowRoot,
|
|
212
221
|
});
|
|
213
222
|
|
|
223
|
+
export type SdCircleProgressEvents = NonNullable<unknown>;
|
|
224
|
+
|
|
225
|
+
export const SdCircleProgress: StencilReactComponent<SdCircleProgressElement, SdCircleProgressEvents> = /*@__PURE__*/ createComponent<SdCircleProgressElement, SdCircleProgressEvents>({
|
|
226
|
+
tagName: 'sd-circle-progress',
|
|
227
|
+
properties: {
|
|
228
|
+
indeterminate: 'indeterminate',
|
|
229
|
+
value: 'value',
|
|
230
|
+
type: 'type'
|
|
231
|
+
},
|
|
232
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
233
|
+
clientModule: clientComponents.SdCircleProgress as ReactWebComponent<SdCircleProgressElement, SdCircleProgressEvents>,
|
|
234
|
+
serializeShadowRoot,
|
|
235
|
+
});
|
|
236
|
+
|
|
214
237
|
export type SdConfirmModalEvents = {
|
|
215
238
|
onSdClose: EventName<CustomEvent<void>>,
|
|
216
239
|
onSdCancel: EventName<CustomEvent<void>>,
|
|
@@ -230,8 +253,7 @@ export const SdConfirmModal: StencilReactComponent<SdConfirmModalElement, SdConf
|
|
|
230
253
|
tagLabel: 'tag-label',
|
|
231
254
|
slotLabel: 'slot-label',
|
|
232
255
|
topMessage: 'topMessage',
|
|
233
|
-
bottomMessage: 'bottomMessage'
|
|
234
|
-
},
|
|
256
|
+
bottomMessage: 'bottomMessage'},
|
|
235
257
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
236
258
|
clientModule: clientComponents.SdConfirmModal as ReactWebComponent<SdConfirmModalElement, SdConfirmModalEvents>,
|
|
237
259
|
serializeShadowRoot,
|
|
@@ -279,8 +301,7 @@ export const SdDatePicker: StencilReactComponent<SdDatePickerElement, SdDatePick
|
|
|
279
301
|
fieldName: 'field-name',
|
|
280
302
|
error: 'error',
|
|
281
303
|
labelTooltip: 'label-tooltip',
|
|
282
|
-
rules: 'rules'
|
|
283
|
-
},
|
|
304
|
+
rules: 'rules'},
|
|
284
305
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
285
306
|
clientModule: clientComponents.SdDatePicker as ReactWebComponent<SdDatePickerElement, SdDatePickerEvents>,
|
|
286
307
|
serializeShadowRoot,
|
|
@@ -334,8 +355,7 @@ export const SdDateRangePicker: StencilReactComponent<SdDateRangePickerElement,
|
|
|
334
355
|
fieldName: 'field-name',
|
|
335
356
|
error: 'error',
|
|
336
357
|
labelTooltip: 'label-tooltip',
|
|
337
|
-
rules: 'rules'
|
|
338
|
-
},
|
|
358
|
+
rules: 'rules'},
|
|
339
359
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
340
360
|
clientModule: clientComponents.SdDateRangePicker as ReactWebComponent<SdDateRangePickerElement, SdDateRangePickerEvents>,
|
|
341
361
|
serializeShadowRoot,
|
|
@@ -365,8 +385,7 @@ export const SdDropdownButton: StencilReactComponent<SdDropdownButtonElement, Sd
|
|
|
365
385
|
name: 'name',
|
|
366
386
|
label: 'label',
|
|
367
387
|
disabled: 'disabled',
|
|
368
|
-
items: 'items'
|
|
369
|
-
},
|
|
388
|
+
items: 'items'},
|
|
370
389
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
371
390
|
clientModule: clientComponents.SdDropdownButton as ReactWebComponent<SdDropdownButtonElement, SdDropdownButtonEvents>,
|
|
372
391
|
serializeShadowRoot,
|
|
@@ -386,11 +405,11 @@ export const SdField: StencilReactComponent<SdFieldElement, SdFieldEvents> = /*@
|
|
|
386
405
|
hint: 'hint',
|
|
387
406
|
errorMessage: 'error-message',
|
|
388
407
|
width: 'width',
|
|
408
|
+
size: 'size',
|
|
389
409
|
label: 'label',
|
|
390
410
|
addonLabel: 'addon-label',
|
|
391
411
|
labelTooltip: 'label-tooltip',
|
|
392
|
-
rules: 'rules'
|
|
393
|
-
},
|
|
412
|
+
rules: 'rules'},
|
|
394
413
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
395
414
|
clientModule: clientComponents.SdField as ReactWebComponent<SdFieldElement, SdFieldEvents>,
|
|
396
415
|
serializeShadowRoot,
|
|
@@ -398,7 +417,10 @@ export const SdField: StencilReactComponent<SdFieldElement, SdFieldEvents> = /*@
|
|
|
398
417
|
|
|
399
418
|
export type SdFilePickerEvents = {
|
|
400
419
|
onSdUpdate: EventName<SdFilePickerCustomEvent<File[] | File | null>>,
|
|
401
|
-
onSdReject: EventName<SdFilePickerCustomEvent<{
|
|
420
|
+
onSdReject: EventName<SdFilePickerCustomEvent<{
|
|
421
|
+
files: File[];
|
|
422
|
+
reason: 'max-file-size' | 'max-total-size' | 'max-files';
|
|
423
|
+
}>>
|
|
402
424
|
};
|
|
403
425
|
|
|
404
426
|
export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePickerEvents> = /*@__PURE__*/ createComponent<SdFilePickerElement, SdFilePickerEvents>({
|
|
@@ -424,8 +446,7 @@ export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePick
|
|
|
424
446
|
focused: 'focused',
|
|
425
447
|
hovered: 'hovered',
|
|
426
448
|
value: 'value',
|
|
427
|
-
rules: 'rules'
|
|
428
|
-
},
|
|
449
|
+
rules: 'rules'},
|
|
429
450
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
430
451
|
clientModule: clientComponents.SdFilePicker as ReactWebComponent<SdFilePickerElement, SdFilePickerEvents>,
|
|
431
452
|
serializeShadowRoot,
|
|
@@ -485,8 +506,7 @@ export const SdGuide: StencilReactComponent<SdGuideElement, SdGuideEvents> = /*@
|
|
|
485
506
|
message: 'message',
|
|
486
507
|
guideUrl: 'guide-url',
|
|
487
508
|
popupTitle: 'popup-title',
|
|
488
|
-
popupWidth: 'popup-width'
|
|
489
|
-
},
|
|
509
|
+
popupWidth: 'popup-width'},
|
|
490
510
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
491
511
|
clientModule: clientComponents.SdGuide as ReactWebComponent<SdGuideElement, SdGuideEvents>,
|
|
492
512
|
serializeShadowRoot,
|
|
@@ -542,20 +562,35 @@ export const SdInput: StencilReactComponent<SdInputElement, SdInputEvents> = /*@
|
|
|
542
562
|
hovered: 'hovered',
|
|
543
563
|
label: 'label',
|
|
544
564
|
labelTooltip: 'label-tooltip',
|
|
545
|
-
rules: 'rules'
|
|
546
|
-
},
|
|
565
|
+
rules: 'rules'},
|
|
547
566
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
548
567
|
clientModule: clientComponents.SdInput as ReactWebComponent<SdInputElement, SdInputEvents>,
|
|
549
568
|
serializeShadowRoot,
|
|
550
569
|
});
|
|
551
570
|
|
|
552
|
-
export type
|
|
571
|
+
export type SdLoadingContainerEvents = NonNullable<unknown>;
|
|
553
572
|
|
|
554
|
-
export const
|
|
555
|
-
tagName: 'sd-loading-
|
|
556
|
-
properties: {
|
|
573
|
+
export const SdLoadingContainer: StencilReactComponent<SdLoadingContainerElement, SdLoadingContainerEvents> = /*@__PURE__*/ createComponent<SdLoadingContainerElement, SdLoadingContainerEvents>({
|
|
574
|
+
tagName: 'sd-loading-container',
|
|
575
|
+
properties: {},
|
|
576
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
577
|
+
clientModule: clientComponents.SdLoadingContainer as ReactWebComponent<SdLoadingContainerElement, SdLoadingContainerEvents>,
|
|
578
|
+
serializeShadowRoot,
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
export type SdLoadingModalEvents = { onSdClick: EventName<CustomEvent<void>> };
|
|
582
|
+
|
|
583
|
+
export const SdLoadingModal: StencilReactComponent<SdLoadingModalElement, SdLoadingModalEvents> = /*@__PURE__*/ createComponent<SdLoadingModalElement, SdLoadingModalEvents>({
|
|
584
|
+
tagName: 'sd-loading-modal',
|
|
585
|
+
properties: {
|
|
586
|
+
state: 'state',
|
|
587
|
+
message: 'message',
|
|
588
|
+
buttonLabel: 'button-label',
|
|
589
|
+
width: 'width',
|
|
590
|
+
height: 'height'
|
|
591
|
+
},
|
|
557
592
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
558
|
-
clientModule: clientComponents.
|
|
593
|
+
clientModule: clientComponents.SdLoadingModal as ReactWebComponent<SdLoadingModalElement, SdLoadingModalEvents>,
|
|
559
594
|
serializeShadowRoot,
|
|
560
595
|
});
|
|
561
596
|
|
|
@@ -601,8 +636,7 @@ export const SdNumberInput: StencilReactComponent<SdNumberInputElement, SdNumber
|
|
|
601
636
|
error: 'error',
|
|
602
637
|
focused: 'focused',
|
|
603
638
|
hovered: 'hovered',
|
|
604
|
-
rules: 'rules'
|
|
605
|
-
},
|
|
639
|
+
rules: 'rules'},
|
|
606
640
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
607
641
|
clientModule: clientComponents.SdNumberInput as ReactWebComponent<SdNumberInputElement, SdNumberInputEvents>,
|
|
608
642
|
serializeShadowRoot,
|
|
@@ -639,8 +673,7 @@ export const SdPopover: StencilReactComponent<SdPopoverElement, SdPopoverEvents>
|
|
|
639
673
|
menuClass: 'menu-class',
|
|
640
674
|
noHover: 'no-hover',
|
|
641
675
|
useClose: 'use-close',
|
|
642
|
-
messages: 'messages'
|
|
643
|
-
},
|
|
676
|
+
messages: 'messages'},
|
|
644
677
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
645
678
|
clientModule: clientComponents.SdPopover as ReactWebComponent<SdPopoverElement, SdPopoverEvents>,
|
|
646
679
|
serializeShadowRoot,
|
|
@@ -693,19 +726,18 @@ export const SdRadio: StencilReactComponent<SdRadioElement, SdRadioEvents> = /*@
|
|
|
693
726
|
serializeShadowRoot,
|
|
694
727
|
});
|
|
695
728
|
|
|
696
|
-
export type
|
|
729
|
+
export type SdRadioButtonEvents = { onSdUpdate: EventName<SdRadioButtonCustomEvent<RadioValue>> };
|
|
697
730
|
|
|
698
|
-
export const
|
|
699
|
-
tagName: 'sd-radio-button
|
|
731
|
+
export const SdRadioButton: StencilReactComponent<SdRadioButtonElement, SdRadioButtonEvents> = /*@__PURE__*/ createComponent<SdRadioButtonElement, SdRadioButtonEvents>({
|
|
732
|
+
tagName: 'sd-radio-button',
|
|
700
733
|
properties: {
|
|
701
734
|
value: 'value',
|
|
702
735
|
size: 'size',
|
|
703
736
|
disabled: 'disabled',
|
|
704
737
|
name: 'name',
|
|
705
|
-
options: 'options'
|
|
706
|
-
},
|
|
738
|
+
options: 'options'},
|
|
707
739
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
708
|
-
clientModule: clientComponents.
|
|
740
|
+
clientModule: clientComponents.SdRadioButton as ReactWebComponent<SdRadioButtonElement, SdRadioButtonEvents>,
|
|
709
741
|
serializeShadowRoot,
|
|
710
742
|
});
|
|
711
743
|
|
|
@@ -718,8 +750,7 @@ export const SdRadioGroup: StencilReactComponent<SdRadioGroupElement, SdRadioGro
|
|
|
718
750
|
direction: 'direction',
|
|
719
751
|
disabled: 'disabled',
|
|
720
752
|
groupName: 'group-name',
|
|
721
|
-
options: 'options'
|
|
722
|
-
},
|
|
753
|
+
options: 'options'},
|
|
723
754
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
724
755
|
clientModule: clientComponents.SdRadioGroup as ReactWebComponent<SdRadioGroupElement, SdRadioGroupEvents>,
|
|
725
756
|
serializeShadowRoot,
|
|
@@ -747,8 +778,7 @@ export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> =
|
|
|
747
778
|
labelTooltip: 'label-tooltip',
|
|
748
779
|
error: 'error',
|
|
749
780
|
options: 'options',
|
|
750
|
-
rules: 'rules'
|
|
751
|
-
},
|
|
781
|
+
rules: 'rules'},
|
|
752
782
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
753
783
|
clientModule: clientComponents.SdSelect as ReactWebComponent<SdSelectElement, SdSelectEvents>,
|
|
754
784
|
serializeShadowRoot,
|
|
@@ -775,8 +805,7 @@ export const SdSelectDropdown: StencilReactComponent<SdSelectDropdownElement, Sd
|
|
|
775
805
|
optionPlaceholder: 'option-placeholder',
|
|
776
806
|
useCheckbox: 'use-checkbox',
|
|
777
807
|
useAll: 'use-all',
|
|
778
|
-
options: 'options'
|
|
779
|
-
},
|
|
808
|
+
options: 'options'},
|
|
780
809
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
781
810
|
clientModule: clientComponents.SdSelectDropdown as ReactWebComponent<SdSelectDropdownElement, SdSelectDropdownEvents>,
|
|
782
811
|
serializeShadowRoot,
|
|
@@ -804,8 +833,7 @@ export const SdSelectGroup: StencilReactComponent<SdSelectGroupElement, SdSelect
|
|
|
804
833
|
labelTooltip: 'label-tooltip',
|
|
805
834
|
error: 'error',
|
|
806
835
|
options: 'options',
|
|
807
|
-
rules: 'rules'
|
|
808
|
-
},
|
|
836
|
+
rules: 'rules'},
|
|
809
837
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
810
838
|
clientModule: clientComponents.SdSelectGroup as ReactWebComponent<SdSelectGroupElement, SdSelectGroupEvents>,
|
|
811
839
|
serializeShadowRoot,
|
|
@@ -834,8 +862,7 @@ export const SdSelectMultiple: StencilReactComponent<SdSelectMultipleElement, Sd
|
|
|
834
862
|
error: 'error',
|
|
835
863
|
value: 'value',
|
|
836
864
|
options: 'options',
|
|
837
|
-
rules: 'rules'
|
|
838
|
-
},
|
|
865
|
+
rules: 'rules'},
|
|
839
866
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
840
867
|
clientModule: clientComponents.SdSelectMultiple as ReactWebComponent<SdSelectMultipleElement, SdSelectMultipleEvents>,
|
|
841
868
|
serializeShadowRoot,
|
|
@@ -865,8 +892,7 @@ export const SdSelectMultipleGroup: StencilReactComponent<SdSelectMultipleGroupE
|
|
|
865
892
|
error: 'error',
|
|
866
893
|
value: 'value',
|
|
867
894
|
options: 'options',
|
|
868
|
-
rules: 'rules'
|
|
869
|
-
},
|
|
895
|
+
rules: 'rules'},
|
|
870
896
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
871
897
|
clientModule: clientComponents.SdSelectMultipleGroup as ReactWebComponent<SdSelectMultipleGroupElement, SdSelectMultipleGroupEvents>,
|
|
872
898
|
serializeShadowRoot,
|
|
@@ -958,8 +984,7 @@ export const SdSelectV2: StencilReactComponent<SdSelectV2Element, SdSelectV2Even
|
|
|
958
984
|
emitValue: 'emit-value',
|
|
959
985
|
width: 'width',
|
|
960
986
|
options: 'options',
|
|
961
|
-
rules: 'rules'
|
|
962
|
-
},
|
|
987
|
+
rules: 'rules'},
|
|
963
988
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
964
989
|
clientModule: clientComponents.SdSelectV2 as ReactWebComponent<SdSelectV2Element, SdSelectV2Events>,
|
|
965
990
|
serializeShadowRoot,
|
|
@@ -1004,8 +1029,7 @@ export const SdSelectV2Listbox: StencilReactComponent<SdSelectV2ListboxElement,
|
|
|
1004
1029
|
triggerWidth: 'trigger-width',
|
|
1005
1030
|
maxWidth: 'max-width',
|
|
1006
1031
|
maxHeight: 'max-height',
|
|
1007
|
-
options: 'options'
|
|
1008
|
-
},
|
|
1032
|
+
options: 'options'},
|
|
1009
1033
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1010
1034
|
clientModule: clientComponents.SdSelectV2Listbox as ReactWebComponent<SdSelectV2ListboxElement, SdSelectV2ListboxEvents>,
|
|
1011
1035
|
serializeShadowRoot,
|
|
@@ -1026,6 +1050,63 @@ export const SdSelectV2Trigger: StencilReactComponent<SdSelectV2TriggerElement,
|
|
|
1026
1050
|
serializeShadowRoot,
|
|
1027
1051
|
});
|
|
1028
1052
|
|
|
1053
|
+
export type SdSwitchEvents = { onSdUpdate: EventName<CustomEvent<boolean>> };
|
|
1054
|
+
|
|
1055
|
+
export const SdSwitch: StencilReactComponent<SdSwitchElement, SdSwitchEvents> = /*@__PURE__*/ createComponent<SdSwitchElement, SdSwitchEvents>({
|
|
1056
|
+
tagName: 'sd-switch',
|
|
1057
|
+
properties: {
|
|
1058
|
+
value: 'value',
|
|
1059
|
+
label: 'label',
|
|
1060
|
+
disabled: 'disabled'
|
|
1061
|
+
},
|
|
1062
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1063
|
+
clientModule: clientComponents.SdSwitch as ReactWebComponent<SdSwitchElement, SdSwitchEvents>,
|
|
1064
|
+
serializeShadowRoot,
|
|
1065
|
+
});
|
|
1066
|
+
|
|
1067
|
+
export type SdTableEvents = {
|
|
1068
|
+
onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>,
|
|
1069
|
+
onSdPageChange: EventName<CustomEvent<number>>,
|
|
1070
|
+
onSdRowsPerPageChange: EventName<CustomEvent<number>>,
|
|
1071
|
+
onSdVirtualUpdate: EventName<CustomEvent<{
|
|
1072
|
+
from: number;
|
|
1073
|
+
to: number;
|
|
1074
|
+
}>>,
|
|
1075
|
+
onSdVirtualReachEnd: EventName<CustomEvent<{
|
|
1076
|
+
from: number;
|
|
1077
|
+
to: number;
|
|
1078
|
+
rowCount: number;
|
|
1079
|
+
threshold: number;
|
|
1080
|
+
}>>
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
export const SdTable: StencilReactComponent<SdTableElement, SdTableEvents> = /*@__PURE__*/ createComponent<SdTableElement, SdTableEvents>({
|
|
1084
|
+
tagName: 'sd-table',
|
|
1085
|
+
properties: {
|
|
1086
|
+
tableId: 'table-id',
|
|
1087
|
+
rowKey: 'row-key',
|
|
1088
|
+
selectable: 'selectable',
|
|
1089
|
+
resizable: 'resizable',
|
|
1090
|
+
width: 'width',
|
|
1091
|
+
height: 'height',
|
|
1092
|
+
stickyHeader: 'sticky-header',
|
|
1093
|
+
noDataLabel: 'no-data-label',
|
|
1094
|
+
isLoading: 'is-loading',
|
|
1095
|
+
useInternalPagination: 'use-internal-pagination',
|
|
1096
|
+
useRowsPerPageSelect: 'use-rows-per-page-select',
|
|
1097
|
+
useVirtualScroll: 'use-virtual-scroll',
|
|
1098
|
+
rowHeight: 'row-height',
|
|
1099
|
+
virtualBuffer: 'virtual-buffer',
|
|
1100
|
+
virtualEndThreshold: 'virtual-end-threshold',
|
|
1101
|
+
columns: 'columns',
|
|
1102
|
+
rows: 'rows',
|
|
1103
|
+
selected: 'selected',
|
|
1104
|
+
rowsPerPageOption: 'rowsPerPageOption'},
|
|
1105
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1106
|
+
clientModule: clientComponents.SdTable as ReactWebComponent<SdTableElement, SdTableEvents>,
|
|
1107
|
+
serializeShadowRoot,
|
|
1108
|
+
});
|
|
1109
|
+
|
|
1029
1110
|
export type SdTabsEvents = { onSdUpdate: EventName<CustomEvent<string>> };
|
|
1030
1111
|
|
|
1031
1112
|
export const SdTabs: StencilReactComponent<SdTabsElement, SdTabsEvents> = /*@__PURE__*/ createComponent<SdTabsElement, SdTabsEvents>({
|
|
@@ -1034,8 +1115,7 @@ export const SdTabs: StencilReactComponent<SdTabsElement, SdTabsEvents> = /*@__P
|
|
|
1034
1115
|
value: 'value',
|
|
1035
1116
|
size: 'size',
|
|
1036
1117
|
isSub: 'is-sub',
|
|
1037
|
-
tabs: 'tabs'
|
|
1038
|
-
},
|
|
1118
|
+
tabs: 'tabs'},
|
|
1039
1119
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1040
1120
|
clientModule: clientComponents.SdTabs as ReactWebComponent<SdTabsElement, SdTabsEvents>,
|
|
1041
1121
|
serializeShadowRoot,
|
|
@@ -1056,6 +1136,31 @@ export const SdTag: StencilReactComponent<SdTagElement, SdTagEvents> = /*@__PURE
|
|
|
1056
1136
|
serializeShadowRoot,
|
|
1057
1137
|
});
|
|
1058
1138
|
|
|
1139
|
+
export type SdTbodyEvents = NonNullable<unknown>;
|
|
1140
|
+
|
|
1141
|
+
export const SdTbody: StencilReactComponent<SdTbodyElement, SdTbodyEvents> = /*@__PURE__*/ createComponent<SdTbodyElement, SdTbodyEvents>({
|
|
1142
|
+
tagName: 'sd-tbody',
|
|
1143
|
+
properties: {
|
|
1144
|
+
rows: 'rows'},
|
|
1145
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1146
|
+
clientModule: clientComponents.SdTbody as ReactWebComponent<SdTbodyElement, SdTbodyEvents>,
|
|
1147
|
+
serializeShadowRoot,
|
|
1148
|
+
});
|
|
1149
|
+
|
|
1150
|
+
export type SdTdEvents = NonNullable<unknown>;
|
|
1151
|
+
|
|
1152
|
+
export const SdTd: StencilReactComponent<SdTdElement, SdTdEvents> = /*@__PURE__*/ createComponent<SdTdElement, SdTdEvents>({
|
|
1153
|
+
tagName: 'sd-td',
|
|
1154
|
+
properties: {
|
|
1155
|
+
field: 'field',
|
|
1156
|
+
rowKey: 'row-key',
|
|
1157
|
+
align: 'align'
|
|
1158
|
+
},
|
|
1159
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1160
|
+
clientModule: clientComponents.SdTd as ReactWebComponent<SdTdElement, SdTdEvents>,
|
|
1161
|
+
serializeShadowRoot,
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1059
1164
|
export type SdTextLinkEvents = { onSdClick: EventName<CustomEvent<void>> };
|
|
1060
1165
|
|
|
1061
1166
|
export const SdTextLink: StencilReactComponent<SdTextLinkElement, SdTextLinkEvents> = /*@__PURE__*/ createComponent<SdTextLinkElement, SdTextLinkEvents>({
|
|
@@ -1102,13 +1207,30 @@ export const SdTextarea: StencilReactComponent<SdTextareaElement, SdTextareaEven
|
|
|
1102
1207
|
status: 'status',
|
|
1103
1208
|
focused: 'focused',
|
|
1104
1209
|
hovered: 'hovered',
|
|
1105
|
-
rules: 'rules'
|
|
1106
|
-
},
|
|
1210
|
+
rules: 'rules'},
|
|
1107
1211
|
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1108
1212
|
clientModule: clientComponents.SdTextarea as ReactWebComponent<SdTextareaElement, SdTextareaEvents>,
|
|
1109
1213
|
serializeShadowRoot,
|
|
1110
1214
|
});
|
|
1111
1215
|
|
|
1216
|
+
export type SdTheadEvents = NonNullable<unknown>;
|
|
1217
|
+
|
|
1218
|
+
export const SdThead: StencilReactComponent<SdTheadElement, SdTheadEvents> = /*@__PURE__*/ createComponent<SdTheadElement, SdTheadEvents>({
|
|
1219
|
+
tagName: 'sd-thead',
|
|
1220
|
+
properties: {
|
|
1221
|
+
selectable: 'selectable',
|
|
1222
|
+
resizable: 'resizable',
|
|
1223
|
+
stickyHeader: 'sticky-header',
|
|
1224
|
+
scrolledLeft: 'scrolled-left',
|
|
1225
|
+
scrolledRight: 'scrolled-right',
|
|
1226
|
+
columns: 'columns',
|
|
1227
|
+
rows: 'rows',
|
|
1228
|
+
columnWidths: 'columnWidths'},
|
|
1229
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1230
|
+
clientModule: clientComponents.SdThead as ReactWebComponent<SdTheadElement, SdTheadEvents>,
|
|
1231
|
+
serializeShadowRoot,
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1112
1234
|
export type SdToastEvents = { onSdClose: EventName<CustomEvent<void>> };
|
|
1113
1235
|
|
|
1114
1236
|
export const SdToast: StencilReactComponent<SdToastElement, SdToastEvents> = /*@__PURE__*/ createComponent<SdToastElement, SdToastEvents>({
|
|
@@ -1158,20 +1280,6 @@ export const SdToggle: StencilReactComponent<SdToggleElement, SdToggleEvents> =
|
|
|
1158
1280
|
serializeShadowRoot,
|
|
1159
1281
|
});
|
|
1160
1282
|
|
|
1161
|
-
export type SdToggleButtonEvents = { onSdUpdate: EventName<CustomEvent<boolean>> };
|
|
1162
|
-
|
|
1163
|
-
export const SdToggleButton: StencilReactComponent<SdToggleButtonElement, SdToggleButtonEvents> = /*@__PURE__*/ createComponent<SdToggleButtonElement, SdToggleButtonEvents>({
|
|
1164
|
-
tagName: 'sd-toggle-button',
|
|
1165
|
-
properties: {
|
|
1166
|
-
value: 'value',
|
|
1167
|
-
label: 'label',
|
|
1168
|
-
disabled: 'disabled'
|
|
1169
|
-
},
|
|
1170
|
-
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1171
|
-
clientModule: clientComponents.SdToggleButton as ReactWebComponent<SdToggleButtonElement, SdToggleButtonEvents>,
|
|
1172
|
-
serializeShadowRoot,
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
1283
|
export type SdTooltipEvents = NonNullable<unknown>;
|
|
1176
1284
|
|
|
1177
1285
|
export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents> = /*@__PURE__*/ createComponent<SdTooltipElement, SdTooltipEvents>({
|
|
@@ -1193,3 +1301,30 @@ export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents>
|
|
|
1193
1301
|
clientModule: clientComponents.SdTooltip as ReactWebComponent<SdTooltipElement, SdTooltipEvents>,
|
|
1194
1302
|
serializeShadowRoot,
|
|
1195
1303
|
});
|
|
1304
|
+
|
|
1305
|
+
export type SdTrEvents = NonNullable<unknown>;
|
|
1306
|
+
|
|
1307
|
+
export const SdTr: StencilReactComponent<SdTrElement, SdTrEvents> = /*@__PURE__*/ createComponent<SdTrElement, SdTrEvents>({
|
|
1308
|
+
tagName: 'sd-tr',
|
|
1309
|
+
properties: {
|
|
1310
|
+
selectable: 'selectable',
|
|
1311
|
+
rowKey: 'row-key',
|
|
1312
|
+
columns: 'columns'},
|
|
1313
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1314
|
+
clientModule: clientComponents.SdTr as ReactWebComponent<SdTrElement, SdTrEvents>,
|
|
1315
|
+
serializeShadowRoot,
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
export type TableTestEvents = { onTableReady: EventName<CustomEvent<void>> };
|
|
1319
|
+
|
|
1320
|
+
export const TableTest: StencilReactComponent<TableTestElement, TableTestEvents> = /*@__PURE__*/ createComponent<TableTestElement, TableTestEvents>({
|
|
1321
|
+
tagName: 'table-test',
|
|
1322
|
+
properties: {
|
|
1323
|
+
bordered: 'bordered',
|
|
1324
|
+
striped: 'striped',
|
|
1325
|
+
columns: 'columns',
|
|
1326
|
+
rows: 'rows'},
|
|
1327
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
1328
|
+
clientModule: clientComponents.TableTest as ReactWebComponent<TableTestElement, TableTestEvents>,
|
|
1329
|
+
serializeShadowRoot,
|
|
1330
|
+
});
|