@sellmate/design-system-react 0.0.11 → 0.0.13

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 (115) hide show
  1. package/dist/components/components.d.ts +18 -88
  2. package/dist/components/components.js +23 -171
  3. package/dist/components/sd-badge.d.ts +8 -0
  4. package/dist/components/sd-badge.js +17 -0
  5. package/dist/components/sd-badge.server.d.ts +10 -0
  6. package/dist/components/sd-badge.server.js +20 -0
  7. package/dist/components/sd-button.d.ts +11 -0
  8. package/dist/components/sd-button.js +12 -0
  9. package/dist/components/sd-button.server.d.ts +13 -0
  10. package/dist/components/sd-button.server.js +28 -0
  11. package/dist/components/sd-checkbox.d.ts +10 -0
  12. package/dist/components/sd-checkbox.js +17 -0
  13. package/dist/components/sd-checkbox.server.d.ts +12 -0
  14. package/dist/components/sd-checkbox.server.js +21 -0
  15. package/dist/components/sd-date-box.d.ts +11 -0
  16. package/dist/components/sd-date-box.js +20 -0
  17. package/dist/components/sd-date-box.server.d.ts +13 -0
  18. package/dist/components/sd-date-box.server.js +25 -0
  19. package/dist/components/sd-date-picker.d.ts +10 -0
  20. package/dist/components/sd-date-picker.js +17 -0
  21. package/dist/components/sd-date-picker.server.d.ts +12 -0
  22. package/dist/components/sd-date-picker.server.js +20 -0
  23. package/dist/components/sd-date-range-picker.d.ts +10 -0
  24. package/dist/components/sd-date-range-picker.js +17 -0
  25. package/dist/components/sd-date-range-picker.server.d.ts +12 -0
  26. package/dist/components/sd-date-range-picker.server.js +20 -0
  27. package/dist/components/sd-guide.d.ts +8 -0
  28. package/dist/components/sd-guide.js +17 -0
  29. package/dist/components/sd-guide.server.d.ts +10 -0
  30. package/dist/components/sd-guide.server.js +22 -0
  31. package/dist/components/sd-icon.d.ts +8 -0
  32. package/dist/components/sd-icon.js +17 -0
  33. package/dist/components/sd-icon.server.d.ts +10 -0
  34. package/dist/components/sd-icon.server.js +22 -0
  35. package/dist/components/sd-input.d.ts +15 -0
  36. package/dist/components/sd-input.js +18 -0
  37. package/dist/components/sd-input.server.d.ts +17 -0
  38. package/dist/components/sd-input.server.js +28 -0
  39. package/dist/components/sd-pagination.d.ts +10 -0
  40. package/dist/components/sd-pagination.js +17 -0
  41. package/dist/components/sd-pagination.server.d.ts +12 -0
  42. package/dist/components/sd-pagination.server.js +20 -0
  43. package/dist/components/sd-popover.d.ts +8 -0
  44. package/dist/components/sd-popover.js +17 -0
  45. package/dist/components/sd-popover.server.d.ts +10 -0
  46. package/dist/components/sd-popover.server.js +29 -0
  47. package/dist/components/sd-portal.d.ts +10 -0
  48. package/dist/components/sd-portal.js +17 -0
  49. package/dist/components/sd-portal.server.d.ts +12 -0
  50. package/dist/components/sd-portal.server.js +20 -0
  51. package/dist/components/sd-select-option.d.ts +15 -0
  52. package/dist/components/sd-select-option.js +12 -0
  53. package/dist/components/sd-select-option.server.d.ts +17 -0
  54. package/dist/components/sd-select-option.server.js +22 -0
  55. package/dist/components/sd-select.d.ts +12 -0
  56. package/dist/components/sd-select.js +15 -0
  57. package/dist/components/sd-select.server.d.ts +14 -0
  58. package/dist/components/sd-select.server.js +26 -0
  59. package/dist/components/sd-table.d.ts +12 -0
  60. package/dist/components/sd-table.js +15 -0
  61. package/dist/components/sd-table.server.d.ts +14 -0
  62. package/dist/components/sd-table.server.js +23 -0
  63. package/dist/components/sd-tag.d.ts +8 -0
  64. package/dist/components/sd-tag.js +17 -0
  65. package/dist/components/sd-tag.server.d.ts +10 -0
  66. package/dist/components/sd-tag.server.js +23 -0
  67. package/dist/components/sd-tooltip-portal.d.ts +10 -0
  68. package/dist/components/sd-tooltip-portal.js +17 -0
  69. package/dist/components/sd-tooltip-portal.server.d.ts +12 -0
  70. package/dist/components/sd-tooltip-portal.server.js +21 -0
  71. package/dist/components/sd-tooltip.d.ts +8 -0
  72. package/dist/components/sd-tooltip.js +17 -0
  73. package/dist/components/sd-tooltip.server.d.ts +10 -0
  74. package/dist/components/sd-tooltip.server.js +27 -0
  75. package/lib/components/components.ts +18 -247
  76. package/lib/components/sd-badge.server.ts +29 -0
  77. package/lib/components/sd-badge.ts +24 -0
  78. package/lib/components/sd-button.server.ts +38 -0
  79. package/lib/components/sd-button.ts +25 -0
  80. package/lib/components/sd-checkbox.server.ts +30 -0
  81. package/lib/components/sd-checkbox.ts +24 -0
  82. package/lib/components/sd-date-box.server.ts +37 -0
  83. package/lib/components/sd-date-box.ts +30 -0
  84. package/lib/components/sd-date-picker.server.ts +29 -0
  85. package/lib/components/sd-date-picker.ts +24 -0
  86. package/lib/components/sd-date-range-picker.server.ts +29 -0
  87. package/lib/components/sd-date-range-picker.ts +24 -0
  88. package/lib/components/sd-guide.server.ts +31 -0
  89. package/lib/components/sd-guide.ts +24 -0
  90. package/lib/components/sd-icon.server.ts +31 -0
  91. package/lib/components/sd-icon.ts +24 -0
  92. package/lib/components/sd-input.server.ts +44 -0
  93. package/lib/components/sd-input.ts +37 -0
  94. package/lib/components/sd-pagination.server.ts +29 -0
  95. package/lib/components/sd-pagination.ts +24 -0
  96. package/lib/components/sd-popover.server.ts +38 -0
  97. package/lib/components/sd-popover.ts +24 -0
  98. package/lib/components/sd-portal.server.ts +29 -0
  99. package/lib/components/sd-portal.ts +24 -0
  100. package/lib/components/sd-select-option.server.ts +38 -0
  101. package/lib/components/sd-select-option.ts +31 -0
  102. package/lib/components/sd-select.server.ts +39 -0
  103. package/lib/components/sd-select.ts +31 -0
  104. package/lib/components/sd-table.server.ts +36 -0
  105. package/lib/components/sd-table.ts +31 -0
  106. package/lib/components/sd-tag.server.ts +32 -0
  107. package/lib/components/sd-tag.ts +24 -0
  108. package/lib/components/sd-tooltip-portal.server.ts +30 -0
  109. package/lib/components/sd-tooltip-portal.ts +24 -0
  110. package/lib/components/sd-tooltip.server.ts +36 -0
  111. package/lib/components/sd-tooltip.ts +24 -0
  112. package/package.json +6 -7
  113. package/dist/hydrate.d.ts +0 -2
  114. package/dist/hydrate.js +0 -44
  115. package/lib/hydrate.ts +0 -52
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ /* eslint-disable */
6
+ // @ts-ignore - ignore potential type issues as the project is importing itself
7
+ import * as clientComponents from '@sellmate/design-system-react';
8
+ import { createComponent } from '@stencil/react-output-target/ssr';
9
+ export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
+ export const SdSelect = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-select',
12
+ properties: {
13
+ value: 'value',
14
+ label: 'label',
15
+ placeholder: 'placeholder',
16
+ optionPlaceholder: 'option-placeholder',
17
+ width: 'width',
18
+ dropdownHeight: 'dropdown-height',
19
+ disabled: 'disabled',
20
+ clearable: 'clearable',
21
+ searchable: 'searchable'
22
+ },
23
+ hydrateModule: import('@sellmate/design-system/hydrate'),
24
+ clientModule: clientComponents.SdSelect,
25
+ serializeShadowRoot,
26
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { type Row, type SdTableCustomEvent } from "@sellmate/design-system";
6
+ import { SdTable as SdTableElement } from "@sellmate/design-system/dist/components/sd-table.js";
7
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
8
+ export type SdTableEvents = {
9
+ onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>;
10
+ onSdPageChange: EventName<CustomEvent<number>>;
11
+ };
12
+ export declare const SdTable: StencilReactComponent<SdTableElement, SdTableEvents>;
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ import { SdTable as SdTableElement, defineCustomElement as defineSdTable } from "@sellmate/design-system/dist/components/sd-table.js";
3
+ import { createComponent } from '@stencil/react-output-target/runtime';
4
+ import React from 'react';
5
+ export const SdTable = /*@__PURE__*/ createComponent({
6
+ tagName: 'sd-table',
7
+ elementClass: SdTableElement,
8
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
9
+ react: React,
10
+ events: {
11
+ onSdSelectChange: 'sdSelectChange',
12
+ onSdPageChange: 'sdPageChange'
13
+ },
14
+ defineCustomElement: defineSdTable
15
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { type Row, type SdTableCustomEvent } from "@sellmate/design-system";
6
+ import { SdTable as SdTableElement } from "@sellmate/design-system/dist/components/sd-table.js";
7
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
8
+ import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
9
+ export declare const serializeShadowRoot: SerializeShadowRootOptions;
10
+ export type SdTableEvents = {
11
+ onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>;
12
+ onSdPageChange: EventName<CustomEvent<number>>;
13
+ };
14
+ export declare const SdTable: StencilReactComponent<SdTableElement, SdTableEvents>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ /* eslint-disable */
6
+ // @ts-ignore - ignore potential type issues as the project is importing itself
7
+ import * as clientComponents from '@sellmate/design-system-react';
8
+ import { createComponent } from '@stencil/react-output-target/ssr';
9
+ export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
+ export const SdTable = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-table',
12
+ properties: {
13
+ rowKey: 'row-key',
14
+ selectable: 'selectable',
15
+ resizable: 'resizable',
16
+ height: 'height',
17
+ stickyHeader: 'sticky-header',
18
+ noDataLabel: 'no-data-label'
19
+ },
20
+ hydrateModule: import('@sellmate/design-system/hydrate'),
21
+ clientModule: clientComponents.SdTable,
22
+ serializeShadowRoot,
23
+ });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTag as SdTagElement } from "@sellmate/design-system/dist/components/sd-tag.js";
6
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ export type SdTagEvents = NonNullable<unknown>;
8
+ export declare const SdTag: StencilReactComponent<SdTagElement, SdTagEvents>;
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ /**
3
+ * This file was automatically generated by the Stencil React Output Target.
4
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
5
+ */
6
+ /* eslint-disable */
7
+ import { SdTag as SdTagElement, defineCustomElement as defineSdTag } from "@sellmate/design-system/dist/components/sd-tag.js";
8
+ import { createComponent } from '@stencil/react-output-target/runtime';
9
+ import React from 'react';
10
+ export const SdTag = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tag',
12
+ elementClass: SdTagElement,
13
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
14
+ react: React,
15
+ events: {},
16
+ defineCustomElement: defineSdTag
17
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTag as SdTagElement } from "@sellmate/design-system/dist/components/sd-tag.js";
6
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
8
+ export declare const serializeShadowRoot: SerializeShadowRootOptions;
9
+ export type SdTagEvents = NonNullable<unknown>;
10
+ export declare const SdTag: StencilReactComponent<SdTagElement, SdTagEvents>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ /* eslint-disable */
6
+ // @ts-ignore - ignore potential type issues as the project is importing itself
7
+ import * as clientComponents from '@sellmate/design-system-react';
8
+ import { createComponent } from '@stencil/react-output-target/ssr';
9
+ export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
+ export const SdTag = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tag',
12
+ properties: {
13
+ size: 'size',
14
+ color: 'color',
15
+ rounded: 'rounded',
16
+ label: 'label',
17
+ bgColor: 'bg-color',
18
+ textColor: 'text-color'
19
+ },
20
+ hydrateModule: import('@sellmate/design-system/hydrate'),
21
+ clientModule: clientComponents.SdTag,
22
+ serializeShadowRoot,
23
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTooltipPortal as SdTooltipPortalElement } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
6
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ export type SdTooltipPortalEvents = {
8
+ onSdClose: EventName<CustomEvent<void>>;
9
+ };
10
+ export declare const SdTooltipPortal: StencilReactComponent<SdTooltipPortalElement, SdTooltipPortalEvents>;
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ /**
3
+ * This file was automatically generated by the Stencil React Output Target.
4
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
5
+ */
6
+ /* eslint-disable */
7
+ import { SdTooltipPortal as SdTooltipPortalElement, defineCustomElement as defineSdTooltipPortal } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
8
+ import { createComponent } from '@stencil/react-output-target/runtime';
9
+ import React from 'react';
10
+ export const SdTooltipPortal = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tooltip-portal',
12
+ elementClass: SdTooltipPortalElement,
13
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
14
+ react: React,
15
+ events: { onSdClose: 'sdClose' },
16
+ defineCustomElement: defineSdTooltipPortal
17
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTooltipPortal as SdTooltipPortalElement } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
6
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
8
+ export declare const serializeShadowRoot: SerializeShadowRootOptions;
9
+ export type SdTooltipPortalEvents = {
10
+ onSdClose: EventName<CustomEvent<void>>;
11
+ };
12
+ export declare const SdTooltipPortal: StencilReactComponent<SdTooltipPortalElement, SdTooltipPortalEvents>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ /* eslint-disable */
6
+ // @ts-ignore - ignore potential type issues as the project is importing itself
7
+ import * as clientComponents from '@sellmate/design-system-react';
8
+ import { createComponent } from '@stencil/react-output-target/ssr';
9
+ export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
+ export const SdTooltipPortal = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tooltip-portal',
12
+ properties: {
13
+ to: 'to',
14
+ zIndex: 'z-index',
15
+ placement: 'placement',
16
+ open: 'open'
17
+ },
18
+ hydrateModule: import('@sellmate/design-system/hydrate'),
19
+ clientModule: clientComponents.SdTooltipPortal,
20
+ serializeShadowRoot,
21
+ });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTooltip as SdTooltipElement } from "@sellmate/design-system/dist/components/sd-tooltip.js";
6
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ export type SdTooltipEvents = NonNullable<unknown>;
8
+ export declare const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents>;
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ /**
3
+ * This file was automatically generated by the Stencil React Output Target.
4
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
5
+ */
6
+ /* eslint-disable */
7
+ import { SdTooltip as SdTooltipElement, defineCustomElement as defineSdTooltip } from "@sellmate/design-system/dist/components/sd-tooltip.js";
8
+ import { createComponent } from '@stencil/react-output-target/runtime';
9
+ import React from 'react';
10
+ export const SdTooltip = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tooltip',
12
+ elementClass: SdTooltipElement,
13
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
14
+ react: React,
15
+ events: {},
16
+ defineCustomElement: defineSdTooltip
17
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { SdTooltip as SdTooltipElement } from "@sellmate/design-system/dist/components/sd-tooltip.js";
6
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
7
+ import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
8
+ export declare const serializeShadowRoot: SerializeShadowRootOptions;
9
+ export type SdTooltipEvents = NonNullable<unknown>;
10
+ export declare const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ /* eslint-disable */
6
+ // @ts-ignore - ignore potential type issues as the project is importing itself
7
+ import * as clientComponents from '@sellmate/design-system-react';
8
+ import { createComponent } from '@stencil/react-output-target/ssr';
9
+ export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
+ export const SdTooltip = /*@__PURE__*/ createComponent({
11
+ tagName: 'sd-tooltip',
12
+ properties: {
13
+ trigger: 'trigger',
14
+ placement: 'placement',
15
+ color: 'color',
16
+ icon: 'icon',
17
+ iconSize: 'icon-size',
18
+ label: 'label',
19
+ buttonSize: 'button-size',
20
+ buttonVariant: 'button-variant',
21
+ noHover: 'no-hover',
22
+ useClose: 'use-close'
23
+ },
24
+ hydrateModule: import('@sellmate/design-system/hydrate'),
25
+ clientModule: clientComponents.SdTooltip,
26
+ serializeShadowRoot,
27
+ });
@@ -1,253 +1,24 @@
1
- 'use client';
2
-
3
1
  /**
4
2
  * This file was automatically generated by the Stencil React Output Target.
5
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
6
4
  */
7
5
 
8
6
  /* eslint-disable */
9
-
10
- import { type Event, type Row, type SdButtonCustomEvent, type SdInputCustomEvent, type SdSelectCustomEvent, type SdSelectOptionCustomEvent, type SdTableCustomEvent, type SelectEvents, type SelectOption } from "@sellmate/design-system";
11
- import { SdButton as SdButtonElement, defineCustomElement as defineSdButton } from "@sellmate/design-system/dist/components/sd-button.js";
12
- import { SdCheckbox as SdCheckboxElement, defineCustomElement as defineSdCheckbox } from "@sellmate/design-system/dist/components/sd-checkbox.js";
13
- import { SdDateBox as SdDateBoxElement, defineCustomElement as defineSdDateBox } from "@sellmate/design-system/dist/components/sd-date-box.js";
14
- import { SdDatePicker as SdDatePickerElement, defineCustomElement as defineSdDatePicker } from "@sellmate/design-system/dist/components/sd-date-picker.js";
15
- import { SdDateRangePicker as SdDateRangePickerElement, defineCustomElement as defineSdDateRangePicker } from "@sellmate/design-system/dist/components/sd-date-range-picker.js";
16
- import { SdGuide as SdGuideElement, defineCustomElement as defineSdGuide } from "@sellmate/design-system/dist/components/sd-guide.js";
17
- import { SdIcon as SdIconElement, defineCustomElement as defineSdIcon } from "@sellmate/design-system/dist/components/sd-icon.js";
18
- import { SdInput as SdInputElement, defineCustomElement as defineSdInput } from "@sellmate/design-system/dist/components/sd-input.js";
19
- import { SdPagination as SdPaginationElement, defineCustomElement as defineSdPagination } from "@sellmate/design-system/dist/components/sd-pagination.js";
20
- import { SdPopover as SdPopoverElement, defineCustomElement as defineSdPopover } from "@sellmate/design-system/dist/components/sd-popover.js";
21
- import { SdPortal as SdPortalElement, defineCustomElement as defineSdPortal } from "@sellmate/design-system/dist/components/sd-portal.js";
22
- import { SdSelectOption as SdSelectOptionElement, defineCustomElement as defineSdSelectOption } from "@sellmate/design-system/dist/components/sd-select-option.js";
23
- import { SdSelect as SdSelectElement, defineCustomElement as defineSdSelect } from "@sellmate/design-system/dist/components/sd-select.js";
24
- import { SdTable as SdTableElement, defineCustomElement as defineSdTable } from "@sellmate/design-system/dist/components/sd-table.js";
25
- import { SdTag as SdTagElement, defineCustomElement as defineSdTag } from "@sellmate/design-system/dist/components/sd-tag.js";
26
- import { SdTooltipPortal as SdTooltipPortalElement, defineCustomElement as defineSdTooltipPortal } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
27
- import { SdTooltip as SdTooltipElement, defineCustomElement as defineSdTooltip } from "@sellmate/design-system/dist/components/sd-tooltip.js";
28
- import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
29
- import { createComponent } from '@stencil/react-output-target/runtime';
30
- import React from 'react';
31
-
32
- export type SdButtonEvents = { onSdClick: EventName<SdButtonCustomEvent<MouseEvent>> };
33
-
34
- export const SdButton: StencilReactComponent<SdButtonElement, SdButtonEvents> = /*@__PURE__*/ createComponent<SdButtonElement, SdButtonEvents>({
35
- tagName: 'sd-button',
36
- elementClass: SdButtonElement,
37
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
38
- react: React,
39
- events: { onSdClick: 'sdClick' } as SdButtonEvents,
40
- defineCustomElement: defineSdButton
41
- });
42
-
43
- export type SdCheckboxEvents = { onSdChange: EventName<CustomEvent<any | any[]>> };
44
-
45
- export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEvents> = /*@__PURE__*/ createComponent<SdCheckboxElement, SdCheckboxEvents>({
46
- tagName: 'sd-checkbox',
47
- elementClass: SdCheckboxElement,
48
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
49
- react: React,
50
- events: { onSdChange: 'sdChange' } as SdCheckboxEvents,
51
- defineCustomElement: defineSdCheckbox
52
- });
53
-
54
- export type SdDateBoxEvents = {
55
- onSdClick: EventName<CustomEvent<number | string | null>>,
56
- onSdMouseOver: EventName<CustomEvent<number | string | null>>
57
- };
58
-
59
- export const SdDateBox: StencilReactComponent<SdDateBoxElement, SdDateBoxEvents> = /*@__PURE__*/ createComponent<SdDateBoxElement, SdDateBoxEvents>({
60
- tagName: 'sd-date-box',
61
- elementClass: SdDateBoxElement,
62
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
63
- react: React,
64
- events: {
65
- onSdClick: 'sdClick',
66
- onSdMouseOver: 'sdMouseOver'
67
- } as SdDateBoxEvents,
68
- defineCustomElement: defineSdDateBox
69
- });
70
-
71
- export type SdDatePickerEvents = { onSdChange: EventName<CustomEvent<string | null>> };
72
-
73
- export const SdDatePicker: StencilReactComponent<SdDatePickerElement, SdDatePickerEvents> = /*@__PURE__*/ createComponent<SdDatePickerElement, SdDatePickerEvents>({
74
- tagName: 'sd-date-picker',
75
- elementClass: SdDatePickerElement,
76
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
77
- react: React,
78
- events: { onSdChange: 'sdChange' } as SdDatePickerEvents,
79
- defineCustomElement: defineSdDatePicker
80
- });
81
-
82
- export type SdDateRangePickerEvents = { onSdChange: EventName<CustomEvent<[string, string]>> };
83
-
84
- export const SdDateRangePicker: StencilReactComponent<SdDateRangePickerElement, SdDateRangePickerEvents> = /*@__PURE__*/ createComponent<SdDateRangePickerElement, SdDateRangePickerEvents>({
85
- tagName: 'sd-date-range-picker',
86
- elementClass: SdDateRangePickerElement,
87
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
88
- react: React,
89
- events: { onSdChange: 'sdChange' } as SdDateRangePickerEvents,
90
- defineCustomElement: defineSdDateRangePicker
91
- });
92
-
93
- export type SdGuideEvents = NonNullable<unknown>;
94
-
95
- export const SdGuide: StencilReactComponent<SdGuideElement, SdGuideEvents> = /*@__PURE__*/ createComponent<SdGuideElement, SdGuideEvents>({
96
- tagName: 'sd-guide',
97
- elementClass: SdGuideElement,
98
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
99
- react: React,
100
- events: {} as SdGuideEvents,
101
- defineCustomElement: defineSdGuide
102
- });
103
-
104
- export type SdIconEvents = NonNullable<unknown>;
105
-
106
- export const SdIcon: StencilReactComponent<SdIconElement, SdIconEvents> = /*@__PURE__*/ createComponent<SdIconElement, SdIconEvents>({
107
- tagName: 'sd-icon',
108
- elementClass: SdIconElement,
109
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
110
- react: React,
111
- events: {} as SdIconEvents,
112
- defineCustomElement: defineSdIcon
113
- });
114
-
115
- export type SdInputEvents = {
116
- onSdClick: EventName<CustomEvent<string | number | null>>,
117
- onSdInput: EventName<CustomEvent<string | number | null>>,
118
- onSdChange: EventName<CustomEvent<string | number | null>>,
119
- onSdFocus: EventName<SdInputCustomEvent<Event>>,
120
- onSdBlur: EventName<SdInputCustomEvent<Event>>
121
- };
122
-
123
- export const SdInput: StencilReactComponent<SdInputElement, SdInputEvents> = /*@__PURE__*/ createComponent<SdInputElement, SdInputEvents>({
124
- tagName: 'sd-input',
125
- elementClass: SdInputElement,
126
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
127
- react: React,
128
- events: {
129
- onSdClick: 'sdClick',
130
- onSdInput: 'sdInput',
131
- onSdChange: 'sdChange',
132
- onSdFocus: 'sdFocus',
133
- onSdBlur: 'sdBlur'
134
- } as SdInputEvents,
135
- defineCustomElement: defineSdInput
136
- });
137
-
138
- export type SdPaginationEvents = { onPageChange: EventName<CustomEvent<number>> };
139
-
140
- export const SdPagination: StencilReactComponent<SdPaginationElement, SdPaginationEvents> = /*@__PURE__*/ createComponent<SdPaginationElement, SdPaginationEvents>({
141
- tagName: 'sd-pagination',
142
- elementClass: SdPaginationElement,
143
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
144
- react: React,
145
- events: { onPageChange: 'pageChange' } as SdPaginationEvents,
146
- defineCustomElement: defineSdPagination
147
- });
148
-
149
- export type SdPopoverEvents = NonNullable<unknown>;
150
-
151
- export const SdPopover: StencilReactComponent<SdPopoverElement, SdPopoverEvents> = /*@__PURE__*/ createComponent<SdPopoverElement, SdPopoverEvents>({
152
- tagName: 'sd-popover',
153
- elementClass: SdPopoverElement,
154
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
155
- react: React,
156
- events: {} as SdPopoverEvents,
157
- defineCustomElement: defineSdPopover
158
- });
159
-
160
- export type SdPortalEvents = { onSdClose: EventName<CustomEvent<void>> };
161
-
162
- export const SdPortal: StencilReactComponent<SdPortalElement, SdPortalEvents> = /*@__PURE__*/ createComponent<SdPortalElement, SdPortalEvents>({
163
- tagName: 'sd-portal',
164
- elementClass: SdPortalElement,
165
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
166
- react: React,
167
- events: { onSdClose: 'sdClose' } as SdPortalEvents,
168
- defineCustomElement: defineSdPortal
169
- });
170
-
171
- export type SdSelectEvents = {
172
- onSdChange: EventName<SdSelectCustomEvent<SelectEvents['sdChange']>>,
173
- onDropDownShow: EventName<SdSelectCustomEvent<SelectEvents['dropDownShow']>>
174
- };
175
-
176
- export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> = /*@__PURE__*/ createComponent<SdSelectElement, SdSelectEvents>({
177
- tagName: 'sd-select',
178
- elementClass: SdSelectElement,
179
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
180
- react: React,
181
- events: {
182
- onSdChange: 'sdChange',
183
- onDropDownShow: 'dropDownShow'
184
- } as SdSelectEvents,
185
- defineCustomElement: defineSdSelect
186
- });
187
-
188
- export type SdSelectOptionEvents = {
189
- onOptionClick: EventName<SdSelectOptionCustomEvent<{
190
- option: SelectOption;
191
- index: number;
192
- event: MouseEvent;
193
- }>>
194
- };
195
-
196
- export const SdSelectOption: StencilReactComponent<SdSelectOptionElement, SdSelectOptionEvents> = /*@__PURE__*/ createComponent<SdSelectOptionElement, SdSelectOptionEvents>({
197
- tagName: 'sd-select-option',
198
- elementClass: SdSelectOptionElement,
199
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
200
- react: React,
201
- events: { onOptionClick: 'optionClick' } as SdSelectOptionEvents,
202
- defineCustomElement: defineSdSelectOption
203
- });
204
-
205
- export type SdTableEvents = {
206
- onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>,
207
- onSdPageChange: EventName<CustomEvent<number>>
208
- };
209
-
210
- export const SdTable: StencilReactComponent<SdTableElement, SdTableEvents> = /*@__PURE__*/ createComponent<SdTableElement, SdTableEvents>({
211
- tagName: 'sd-table',
212
- elementClass: SdTableElement,
213
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
214
- react: React,
215
- events: {
216
- onSdSelectChange: 'sdSelectChange',
217
- onSdPageChange: 'sdPageChange'
218
- } as SdTableEvents,
219
- defineCustomElement: defineSdTable
220
- });
221
-
222
- export type SdTagEvents = NonNullable<unknown>;
223
-
224
- export const SdTag: StencilReactComponent<SdTagElement, SdTagEvents> = /*@__PURE__*/ createComponent<SdTagElement, SdTagEvents>({
225
- tagName: 'sd-tag',
226
- elementClass: SdTagElement,
227
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
228
- react: React,
229
- events: {} as SdTagEvents,
230
- defineCustomElement: defineSdTag
231
- });
232
-
233
- export type SdTooltipEvents = NonNullable<unknown>;
234
-
235
- export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents> = /*@__PURE__*/ createComponent<SdTooltipElement, SdTooltipEvents>({
236
- tagName: 'sd-tooltip',
237
- elementClass: SdTooltipElement,
238
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
239
- react: React,
240
- events: {} as SdTooltipEvents,
241
- defineCustomElement: defineSdTooltip
242
- });
243
-
244
- export type SdTooltipPortalEvents = { onSdClose: EventName<CustomEvent<void>> };
245
-
246
- export const SdTooltipPortal: StencilReactComponent<SdTooltipPortalElement, SdTooltipPortalEvents> = /*@__PURE__*/ createComponent<SdTooltipPortalElement, SdTooltipPortalEvents>({
247
- tagName: 'sd-tooltip-portal',
248
- elementClass: SdTooltipPortalElement,
249
- // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
250
- react: React,
251
- events: { onSdClose: 'sdClose' } as SdTooltipPortalEvents,
252
- defineCustomElement: defineSdTooltipPortal
253
- });
7
+ export { SdBadge } from "./sd-badge.js";
8
+ export { SdButton } from "./sd-button.js";
9
+ export { SdCheckbox } from "./sd-checkbox.js";
10
+ export { SdDateBox } from "./sd-date-box.js";
11
+ export { SdDatePicker } from "./sd-date-picker.js";
12
+ export { SdDateRangePicker } from "./sd-date-range-picker.js";
13
+ export { SdGuide } from "./sd-guide.js";
14
+ export { SdIcon } from "./sd-icon.js";
15
+ export { SdInput } from "./sd-input.js";
16
+ export { SdPagination } from "./sd-pagination.js";
17
+ export { SdPopover } from "./sd-popover.js";
18
+ export { SdPortal } from "./sd-portal.js";
19
+ export { SdSelectOption } from "./sd-select-option.js";
20
+ export { SdSelect } from "./sd-select.js";
21
+ export { SdTable } from "./sd-table.js";
22
+ export { SdTag } from "./sd-tag.js";
23
+ export { SdTooltipPortal } from "./sd-tooltip-portal.js";
24
+ export { SdTooltip } from "./sd-tooltip.js";
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+
6
+ /* eslint-disable */
7
+
8
+ // @ts-ignore - ignore potential type issues as the project is importing itself
9
+ import * as clientComponents from '@sellmate/design-system-react';
10
+
11
+ import { SdBadge as SdBadgeElement } from "@sellmate/design-system/dist/components/sd-badge.js";
12
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
13
+ import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
14
+
15
+ export const serializeShadowRoot: SerializeShadowRootOptions = { default: "declarative-shadow-dom" };
16
+
17
+ export type SdBadgeEvents = NonNullable<unknown>;
18
+
19
+ export const SdBadge: StencilReactComponent<SdBadgeElement, SdBadgeEvents> = /*@__PURE__*/ createComponent<SdBadgeElement, SdBadgeEvents>({
20
+ tagName: 'sd-badge',
21
+ properties: {
22
+ size: 'size',
23
+ color: 'color',
24
+ label: 'label'
25
+ },
26
+ hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
27
+ clientModule: clientComponents.SdBadge as ReactWebComponent<SdBadgeElement, SdBadgeEvents>,
28
+ serializeShadowRoot,
29
+ });
@@ -0,0 +1,24 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * This file was automatically generated by the Stencil React Output Target.
5
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
6
+ */
7
+
8
+ /* eslint-disable */
9
+
10
+ import { SdBadge as SdBadgeElement, defineCustomElement as defineSdBadge } from "@sellmate/design-system/dist/components/sd-badge.js";
11
+ import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
12
+ import { createComponent } from '@stencil/react-output-target/runtime';
13
+ import React from 'react';
14
+
15
+ export type SdBadgeEvents = NonNullable<unknown>;
16
+
17
+ export const SdBadge: StencilReactComponent<SdBadgeElement, SdBadgeEvents> = /*@__PURE__*/ createComponent<SdBadgeElement, SdBadgeEvents>({
18
+ tagName: 'sd-badge',
19
+ elementClass: SdBadgeElement,
20
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
21
+ react: React,
22
+ events: {} as SdBadgeEvents,
23
+ defineCustomElement: defineSdBadge
24
+ });