@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.
- package/dist/components/components.d.ts +18 -88
- package/dist/components/components.js +23 -171
- package/dist/components/sd-badge.d.ts +8 -0
- package/dist/components/sd-badge.js +17 -0
- package/dist/components/sd-badge.server.d.ts +10 -0
- package/dist/components/sd-badge.server.js +20 -0
- package/dist/components/sd-button.d.ts +11 -0
- package/dist/components/sd-button.js +12 -0
- package/dist/components/sd-button.server.d.ts +13 -0
- package/dist/components/sd-button.server.js +28 -0
- package/dist/components/sd-checkbox.d.ts +10 -0
- package/dist/components/sd-checkbox.js +17 -0
- package/dist/components/sd-checkbox.server.d.ts +12 -0
- package/dist/components/sd-checkbox.server.js +21 -0
- package/dist/components/sd-date-box.d.ts +11 -0
- package/dist/components/sd-date-box.js +20 -0
- package/dist/components/sd-date-box.server.d.ts +13 -0
- package/dist/components/sd-date-box.server.js +25 -0
- package/dist/components/sd-date-picker.d.ts +10 -0
- package/dist/components/sd-date-picker.js +17 -0
- package/dist/components/sd-date-picker.server.d.ts +12 -0
- package/dist/components/sd-date-picker.server.js +20 -0
- package/dist/components/sd-date-range-picker.d.ts +10 -0
- package/dist/components/sd-date-range-picker.js +17 -0
- package/dist/components/sd-date-range-picker.server.d.ts +12 -0
- package/dist/components/sd-date-range-picker.server.js +20 -0
- package/dist/components/sd-guide.d.ts +8 -0
- package/dist/components/sd-guide.js +17 -0
- package/dist/components/sd-guide.server.d.ts +10 -0
- package/dist/components/sd-guide.server.js +22 -0
- package/dist/components/sd-icon.d.ts +8 -0
- package/dist/components/sd-icon.js +17 -0
- package/dist/components/sd-icon.server.d.ts +10 -0
- package/dist/components/sd-icon.server.js +22 -0
- package/dist/components/sd-input.d.ts +15 -0
- package/dist/components/sd-input.js +18 -0
- package/dist/components/sd-input.server.d.ts +17 -0
- package/dist/components/sd-input.server.js +28 -0
- package/dist/components/sd-pagination.d.ts +10 -0
- package/dist/components/sd-pagination.js +17 -0
- package/dist/components/sd-pagination.server.d.ts +12 -0
- package/dist/components/sd-pagination.server.js +20 -0
- package/dist/components/sd-popover.d.ts +8 -0
- package/dist/components/sd-popover.js +17 -0
- package/dist/components/sd-popover.server.d.ts +10 -0
- package/dist/components/sd-popover.server.js +29 -0
- package/dist/components/sd-portal.d.ts +10 -0
- package/dist/components/sd-portal.js +17 -0
- package/dist/components/sd-portal.server.d.ts +12 -0
- package/dist/components/sd-portal.server.js +20 -0
- package/dist/components/sd-select-option.d.ts +15 -0
- package/dist/components/sd-select-option.js +12 -0
- package/dist/components/sd-select-option.server.d.ts +17 -0
- package/dist/components/sd-select-option.server.js +22 -0
- package/dist/components/sd-select.d.ts +12 -0
- package/dist/components/sd-select.js +15 -0
- package/dist/components/sd-select.server.d.ts +14 -0
- package/dist/components/sd-select.server.js +26 -0
- package/dist/components/sd-table.d.ts +12 -0
- package/dist/components/sd-table.js +15 -0
- package/dist/components/sd-table.server.d.ts +14 -0
- package/dist/components/sd-table.server.js +23 -0
- package/dist/components/sd-tag.d.ts +8 -0
- package/dist/components/sd-tag.js +17 -0
- package/dist/components/sd-tag.server.d.ts +10 -0
- package/dist/components/sd-tag.server.js +23 -0
- package/dist/components/sd-tooltip-portal.d.ts +10 -0
- package/dist/components/sd-tooltip-portal.js +17 -0
- package/dist/components/sd-tooltip-portal.server.d.ts +12 -0
- package/dist/components/sd-tooltip-portal.server.js +21 -0
- package/dist/components/sd-tooltip.d.ts +8 -0
- package/dist/components/sd-tooltip.js +17 -0
- package/dist/components/sd-tooltip.server.d.ts +10 -0
- package/dist/components/sd-tooltip.server.js +27 -0
- package/lib/components/components.ts +18 -247
- package/lib/components/sd-badge.server.ts +29 -0
- package/lib/components/sd-badge.ts +24 -0
- package/lib/components/sd-button.server.ts +38 -0
- package/lib/components/sd-button.ts +25 -0
- package/lib/components/sd-checkbox.server.ts +30 -0
- package/lib/components/sd-checkbox.ts +24 -0
- package/lib/components/sd-date-box.server.ts +37 -0
- package/lib/components/sd-date-box.ts +30 -0
- package/lib/components/sd-date-picker.server.ts +29 -0
- package/lib/components/sd-date-picker.ts +24 -0
- package/lib/components/sd-date-range-picker.server.ts +29 -0
- package/lib/components/sd-date-range-picker.ts +24 -0
- package/lib/components/sd-guide.server.ts +31 -0
- package/lib/components/sd-guide.ts +24 -0
- package/lib/components/sd-icon.server.ts +31 -0
- package/lib/components/sd-icon.ts +24 -0
- package/lib/components/sd-input.server.ts +44 -0
- package/lib/components/sd-input.ts +37 -0
- package/lib/components/sd-pagination.server.ts +29 -0
- package/lib/components/sd-pagination.ts +24 -0
- package/lib/components/sd-popover.server.ts +38 -0
- package/lib/components/sd-popover.ts +24 -0
- package/lib/components/sd-portal.server.ts +29 -0
- package/lib/components/sd-portal.ts +24 -0
- package/lib/components/sd-select-option.server.ts +38 -0
- package/lib/components/sd-select-option.ts +31 -0
- package/lib/components/sd-select.server.ts +39 -0
- package/lib/components/sd-select.ts +31 -0
- package/lib/components/sd-table.server.ts +36 -0
- package/lib/components/sd-table.ts +31 -0
- package/lib/components/sd-tag.server.ts +32 -0
- package/lib/components/sd-tag.ts +24 -0
- package/lib/components/sd-tooltip-portal.server.ts +30 -0
- package/lib/components/sd-tooltip-portal.ts +24 -0
- package/lib/components/sd-tooltip.server.ts +36 -0
- package/lib/components/sd-tooltip.ts +24 -0
- package/package.json +6 -7
- package/dist/hydrate.d.ts +0 -2
- package/dist/hydrate.js +0 -44
- package/lib/hydrate.ts +0 -52
|
@@ -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 { SdPortal as SdPortalElement, defineCustomElement as defineSdPortal } from "@sellmate/design-system/dist/components/sd-portal.js";
|
|
11
|
+
import type { EventName, 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 SdPortalEvents = { onSdClose: EventName<CustomEvent<void>> };
|
|
16
|
+
|
|
17
|
+
export const SdPortal: StencilReactComponent<SdPortalElement, SdPortalEvents> = /*@__PURE__*/ createComponent<SdPortalElement, SdPortalEvents>({
|
|
18
|
+
tagName: 'sd-portal',
|
|
19
|
+
elementClass: SdPortalElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: { onSdClose: 'sdClose' } as SdPortalEvents,
|
|
23
|
+
defineCustomElement: defineSdPortal
|
|
24
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { type SdSelectOptionCustomEvent, type SelectOption } from "@sellmate/design-system";
|
|
12
|
+
import { SdSelectOption as SdSelectOptionElement } from "@sellmate/design-system/dist/components/sd-select-option.js";
|
|
13
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
15
|
+
|
|
16
|
+
export const serializeShadowRoot: SerializeShadowRootOptions = { default: "declarative-shadow-dom" };
|
|
17
|
+
|
|
18
|
+
export type SdSelectOptionEvents = {
|
|
19
|
+
onOptionClick: EventName<SdSelectOptionCustomEvent<{
|
|
20
|
+
option: SelectOption;
|
|
21
|
+
index: number;
|
|
22
|
+
event: MouseEvent;
|
|
23
|
+
}>>
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const SdSelectOption: StencilReactComponent<SdSelectOptionElement, SdSelectOptionEvents> = /*@__PURE__*/ createComponent<SdSelectOptionElement, SdSelectOptionEvents>({
|
|
27
|
+
tagName: 'sd-select-option',
|
|
28
|
+
properties: {
|
|
29
|
+
index: 'index',
|
|
30
|
+
isSelected: 'is-selected',
|
|
31
|
+
isFocused: 'is-focused',
|
|
32
|
+
disabled: 'disabled',
|
|
33
|
+
useCheckbox: 'use-checkbox'
|
|
34
|
+
},
|
|
35
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
36
|
+
clientModule: clientComponents.SdSelectOption as ReactWebComponent<SdSelectOptionElement, SdSelectOptionEvents>,
|
|
37
|
+
serializeShadowRoot,
|
|
38
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { type SdSelectOptionCustomEvent, type SelectOption } from "@sellmate/design-system";
|
|
11
|
+
import { SdSelectOption as SdSelectOptionElement, defineCustomElement as defineSdSelectOption } from "@sellmate/design-system/dist/components/sd-select-option.js";
|
|
12
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
13
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
|
|
16
|
+
export type SdSelectOptionEvents = {
|
|
17
|
+
onOptionClick: EventName<SdSelectOptionCustomEvent<{
|
|
18
|
+
option: SelectOption;
|
|
19
|
+
index: number;
|
|
20
|
+
event: MouseEvent;
|
|
21
|
+
}>>
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const SdSelectOption: StencilReactComponent<SdSelectOptionElement, SdSelectOptionEvents> = /*@__PURE__*/ createComponent<SdSelectOptionElement, SdSelectOptionEvents>({
|
|
25
|
+
tagName: 'sd-select-option',
|
|
26
|
+
elementClass: SdSelectOptionElement,
|
|
27
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
28
|
+
react: React,
|
|
29
|
+
events: { onOptionClick: 'optionClick' } as SdSelectOptionEvents,
|
|
30
|
+
defineCustomElement: defineSdSelectOption
|
|
31
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { type SdSelectCustomEvent, type SelectEvents } from "@sellmate/design-system";
|
|
12
|
+
import { SdSelect as SdSelectElement } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
13
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
15
|
+
|
|
16
|
+
export const serializeShadowRoot: SerializeShadowRootOptions = { default: "declarative-shadow-dom" };
|
|
17
|
+
|
|
18
|
+
export type SdSelectEvents = {
|
|
19
|
+
onSdChange: EventName<SdSelectCustomEvent<SelectEvents['sdChange']>>,
|
|
20
|
+
onDropDownShow: EventName<SdSelectCustomEvent<SelectEvents['dropDownShow']>>
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> = /*@__PURE__*/ createComponent<SdSelectElement, SdSelectEvents>({
|
|
24
|
+
tagName: 'sd-select',
|
|
25
|
+
properties: {
|
|
26
|
+
value: 'value',
|
|
27
|
+
label: 'label',
|
|
28
|
+
placeholder: 'placeholder',
|
|
29
|
+
optionPlaceholder: 'option-placeholder',
|
|
30
|
+
width: 'width',
|
|
31
|
+
dropdownHeight: 'dropdown-height',
|
|
32
|
+
disabled: 'disabled',
|
|
33
|
+
clearable: 'clearable',
|
|
34
|
+
searchable: 'searchable'
|
|
35
|
+
},
|
|
36
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
37
|
+
clientModule: clientComponents.SdSelect as ReactWebComponent<SdSelectElement, SdSelectEvents>,
|
|
38
|
+
serializeShadowRoot,
|
|
39
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { type SdSelectCustomEvent, type SelectEvents } from "@sellmate/design-system";
|
|
11
|
+
import { SdSelect as SdSelectElement, defineCustomElement as defineSdSelect } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
12
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
13
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
|
|
16
|
+
export type SdSelectEvents = {
|
|
17
|
+
onSdChange: EventName<SdSelectCustomEvent<SelectEvents['sdChange']>>,
|
|
18
|
+
onDropDownShow: EventName<SdSelectCustomEvent<SelectEvents['dropDownShow']>>
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> = /*@__PURE__*/ createComponent<SdSelectElement, SdSelectEvents>({
|
|
22
|
+
tagName: 'sd-select',
|
|
23
|
+
elementClass: SdSelectElement,
|
|
24
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
25
|
+
react: React,
|
|
26
|
+
events: {
|
|
27
|
+
onSdChange: 'sdChange',
|
|
28
|
+
onDropDownShow: 'dropDownShow'
|
|
29
|
+
} as SdSelectEvents,
|
|
30
|
+
defineCustomElement: defineSdSelect
|
|
31
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { type Row, type SdTableCustomEvent } from "@sellmate/design-system";
|
|
12
|
+
import { SdTable as SdTableElement } from "@sellmate/design-system/dist/components/sd-table.js";
|
|
13
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import { createComponent, type HydrateModule, type ReactWebComponent, type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
15
|
+
|
|
16
|
+
export const serializeShadowRoot: SerializeShadowRootOptions = { default: "declarative-shadow-dom" };
|
|
17
|
+
|
|
18
|
+
export type SdTableEvents = {
|
|
19
|
+
onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>,
|
|
20
|
+
onSdPageChange: EventName<CustomEvent<number>>
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const SdTable: StencilReactComponent<SdTableElement, SdTableEvents> = /*@__PURE__*/ createComponent<SdTableElement, SdTableEvents>({
|
|
24
|
+
tagName: 'sd-table',
|
|
25
|
+
properties: {
|
|
26
|
+
rowKey: 'row-key',
|
|
27
|
+
selectable: 'selectable',
|
|
28
|
+
resizable: 'resizable',
|
|
29
|
+
height: 'height',
|
|
30
|
+
stickyHeader: 'sticky-header',
|
|
31
|
+
noDataLabel: 'no-data-label'
|
|
32
|
+
},
|
|
33
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
34
|
+
clientModule: clientComponents.SdTable as ReactWebComponent<SdTableElement, SdTableEvents>,
|
|
35
|
+
serializeShadowRoot,
|
|
36
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { type Row, type SdTableCustomEvent } from "@sellmate/design-system";
|
|
11
|
+
import { SdTable as SdTableElement, defineCustomElement as defineSdTable } from "@sellmate/design-system/dist/components/sd-table.js";
|
|
12
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
13
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
|
|
16
|
+
export type SdTableEvents = {
|
|
17
|
+
onSdSelectChange: EventName<SdTableCustomEvent<Row[]>>,
|
|
18
|
+
onSdPageChange: EventName<CustomEvent<number>>
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const SdTable: StencilReactComponent<SdTableElement, SdTableEvents> = /*@__PURE__*/ createComponent<SdTableElement, SdTableEvents>({
|
|
22
|
+
tagName: 'sd-table',
|
|
23
|
+
elementClass: SdTableElement,
|
|
24
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
25
|
+
react: React,
|
|
26
|
+
events: {
|
|
27
|
+
onSdSelectChange: 'sdSelectChange',
|
|
28
|
+
onSdPageChange: 'sdPageChange'
|
|
29
|
+
} as SdTableEvents,
|
|
30
|
+
defineCustomElement: defineSdTable
|
|
31
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { SdTag as SdTagElement } from "@sellmate/design-system/dist/components/sd-tag.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 SdTagEvents = NonNullable<unknown>;
|
|
18
|
+
|
|
19
|
+
export const SdTag: StencilReactComponent<SdTagElement, SdTagEvents> = /*@__PURE__*/ createComponent<SdTagElement, SdTagEvents>({
|
|
20
|
+
tagName: 'sd-tag',
|
|
21
|
+
properties: {
|
|
22
|
+
size: 'size',
|
|
23
|
+
color: 'color',
|
|
24
|
+
rounded: 'rounded',
|
|
25
|
+
label: 'label',
|
|
26
|
+
bgColor: 'bg-color',
|
|
27
|
+
textColor: 'text-color'
|
|
28
|
+
},
|
|
29
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
30
|
+
clientModule: clientComponents.SdTag as ReactWebComponent<SdTagElement, SdTagEvents>,
|
|
31
|
+
serializeShadowRoot,
|
|
32
|
+
});
|
|
@@ -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 { SdTag as SdTagElement, defineCustomElement as defineSdTag } from "@sellmate/design-system/dist/components/sd-tag.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 SdTagEvents = NonNullable<unknown>;
|
|
16
|
+
|
|
17
|
+
export const SdTag: StencilReactComponent<SdTagElement, SdTagEvents> = /*@__PURE__*/ createComponent<SdTagElement, SdTagEvents>({
|
|
18
|
+
tagName: 'sd-tag',
|
|
19
|
+
elementClass: SdTagElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: {} as SdTagEvents,
|
|
23
|
+
defineCustomElement: defineSdTag
|
|
24
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { SdTooltipPortal as SdTooltipPortalElement } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
|
|
12
|
+
import type { EventName, 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 SdTooltipPortalEvents = { onSdClose: EventName<CustomEvent<void>> };
|
|
18
|
+
|
|
19
|
+
export const SdTooltipPortal: StencilReactComponent<SdTooltipPortalElement, SdTooltipPortalEvents> = /*@__PURE__*/ createComponent<SdTooltipPortalElement, SdTooltipPortalEvents>({
|
|
20
|
+
tagName: 'sd-tooltip-portal',
|
|
21
|
+
properties: {
|
|
22
|
+
to: 'to',
|
|
23
|
+
zIndex: 'z-index',
|
|
24
|
+
placement: 'placement',
|
|
25
|
+
open: 'open'
|
|
26
|
+
},
|
|
27
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
28
|
+
clientModule: clientComponents.SdTooltipPortal as ReactWebComponent<SdTooltipPortalElement, SdTooltipPortalEvents>,
|
|
29
|
+
serializeShadowRoot,
|
|
30
|
+
});
|
|
@@ -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 { SdTooltipPortal as SdTooltipPortalElement, defineCustomElement as defineSdTooltipPortal } from "@sellmate/design-system/dist/components/sd-tooltip-portal.js";
|
|
11
|
+
import type { EventName, 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 SdTooltipPortalEvents = { onSdClose: EventName<CustomEvent<void>> };
|
|
16
|
+
|
|
17
|
+
export const SdTooltipPortal: StencilReactComponent<SdTooltipPortalElement, SdTooltipPortalEvents> = /*@__PURE__*/ createComponent<SdTooltipPortalElement, SdTooltipPortalEvents>({
|
|
18
|
+
tagName: 'sd-tooltip-portal',
|
|
19
|
+
elementClass: SdTooltipPortalElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: { onSdClose: 'sdClose' } as SdTooltipPortalEvents,
|
|
23
|
+
defineCustomElement: defineSdTooltipPortal
|
|
24
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { SdTooltip as SdTooltipElement } from "@sellmate/design-system/dist/components/sd-tooltip.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 SdTooltipEvents = NonNullable<unknown>;
|
|
18
|
+
|
|
19
|
+
export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents> = /*@__PURE__*/ createComponent<SdTooltipElement, SdTooltipEvents>({
|
|
20
|
+
tagName: 'sd-tooltip',
|
|
21
|
+
properties: {
|
|
22
|
+
trigger: 'trigger',
|
|
23
|
+
placement: 'placement',
|
|
24
|
+
color: 'color',
|
|
25
|
+
icon: 'icon',
|
|
26
|
+
iconSize: 'icon-size',
|
|
27
|
+
label: 'label',
|
|
28
|
+
buttonSize: 'button-size',
|
|
29
|
+
buttonVariant: 'button-variant',
|
|
30
|
+
noHover: 'no-hover',
|
|
31
|
+
useClose: 'use-close'
|
|
32
|
+
},
|
|
33
|
+
hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
|
|
34
|
+
clientModule: clientComponents.SdTooltip as ReactWebComponent<SdTooltipElement, SdTooltipEvents>,
|
|
35
|
+
serializeShadowRoot,
|
|
36
|
+
});
|
|
@@ -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 { SdTooltip as SdTooltipElement, defineCustomElement as defineSdTooltip } from "@sellmate/design-system/dist/components/sd-tooltip.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 SdTooltipEvents = NonNullable<unknown>;
|
|
16
|
+
|
|
17
|
+
export const SdTooltip: StencilReactComponent<SdTooltipElement, SdTooltipEvents> = /*@__PURE__*/ createComponent<SdTooltipElement, SdTooltipEvents>({
|
|
18
|
+
tagName: 'sd-tooltip',
|
|
19
|
+
elementClass: SdTooltipElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: {} as SdTooltipEvents,
|
|
23
|
+
defineCustomElement: defineSdTooltip
|
|
24
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Design System - React Component Wrappers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
"import": "./dist/index.js",
|
|
31
31
|
"require": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
-
"./
|
|
34
|
-
"types": "./dist/
|
|
35
|
-
"import": "./dist/
|
|
36
|
-
"require": "./dist/hydrate.js"
|
|
33
|
+
"./next": {
|
|
34
|
+
"types": "./dist/components.server.d.ts",
|
|
35
|
+
"import": "./dist/components.server.js"
|
|
37
36
|
}
|
|
38
37
|
},
|
|
39
38
|
"directories": {
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"dev": "tsc --watch"
|
|
55
54
|
},
|
|
56
55
|
"dependencies": {
|
|
57
|
-
"@sellmate/design-system": "^0.0.
|
|
56
|
+
"@sellmate/design-system": "^0.0.11",
|
|
58
57
|
"@stencil/react-output-target": "^1.2.0"
|
|
59
58
|
},
|
|
60
59
|
"peerDependencies": {
|
|
@@ -68,5 +67,5 @@
|
|
|
68
67
|
"rimraf": "^6.0.1",
|
|
69
68
|
"typescript": "^5.9.3"
|
|
70
69
|
},
|
|
71
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "6423e809f1dfa0530fb3dcbe4f07d2dad13859d4"
|
|
72
71
|
}
|
package/dist/hydrate.d.ts
DELETED
package/dist/hydrate.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { hydrateDocument, } from '@sellmate/design-system/hydrate';
|
|
2
|
-
// -------------------------------
|
|
3
|
-
// SSR용 서버사이드 렌더링 함수
|
|
4
|
-
// -------------------------------
|
|
5
|
-
export async function renderStencilToString(html) {
|
|
6
|
-
try {
|
|
7
|
-
const results = await hydrateDocument(html, {
|
|
8
|
-
staticComponents: [
|
|
9
|
-
'sd-button',
|
|
10
|
-
'sd-input',
|
|
11
|
-
'sd-select',
|
|
12
|
-
'sd-table',
|
|
13
|
-
'sd-icon',
|
|
14
|
-
'sd-checkbox',
|
|
15
|
-
'sd-tag',
|
|
16
|
-
'sd-pagination',
|
|
17
|
-
'sd-tooltip',
|
|
18
|
-
'sd-popover',
|
|
19
|
-
'sd-guide',
|
|
20
|
-
'sd-date-picker',
|
|
21
|
-
'sd-date-range-picker',
|
|
22
|
-
'sd-date-box',
|
|
23
|
-
'sd-portal',
|
|
24
|
-
'sd-tooltip-portal',
|
|
25
|
-
],
|
|
26
|
-
});
|
|
27
|
-
return results.html;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
console.warn('Stencil SSR failed, falling back to client-side rendering:', error);
|
|
31
|
-
return html;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
// ----------------------------------------------
|
|
35
|
-
// 클라이언트 사이드 등록 함수
|
|
36
|
-
// ----------------------------------------------
|
|
37
|
-
export function registerStencilForNextjs() {
|
|
38
|
-
if (typeof window === 'undefined')
|
|
39
|
-
return;
|
|
40
|
-
// router 변경 시에도 재등록
|
|
41
|
-
import('@sellmate/design-system/loader').then(({ defineCustomElements }) => {
|
|
42
|
-
defineCustomElements(window);
|
|
43
|
-
});
|
|
44
|
-
}
|
package/lib/hydrate.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderToString,
|
|
3
|
-
hydrateDocument,
|
|
4
|
-
} from '@sellmate/design-system/hydrate';
|
|
5
|
-
|
|
6
|
-
// -------------------------------
|
|
7
|
-
// SSR용 서버사이드 렌더링 함수
|
|
8
|
-
// -------------------------------
|
|
9
|
-
export async function renderStencilToString(html: string) {
|
|
10
|
-
try {
|
|
11
|
-
const results = await hydrateDocument(html, {
|
|
12
|
-
staticComponents: [
|
|
13
|
-
'sd-button',
|
|
14
|
-
'sd-input',
|
|
15
|
-
'sd-select',
|
|
16
|
-
'sd-table',
|
|
17
|
-
'sd-icon',
|
|
18
|
-
'sd-checkbox',
|
|
19
|
-
'sd-tag',
|
|
20
|
-
'sd-pagination',
|
|
21
|
-
'sd-tooltip',
|
|
22
|
-
'sd-popover',
|
|
23
|
-
'sd-guide',
|
|
24
|
-
'sd-date-picker',
|
|
25
|
-
'sd-date-range-picker',
|
|
26
|
-
'sd-date-box',
|
|
27
|
-
'sd-portal',
|
|
28
|
-
'sd-tooltip-portal',
|
|
29
|
-
],
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
return results.html;
|
|
33
|
-
} catch (error) {
|
|
34
|
-
console.warn(
|
|
35
|
-
'Stencil SSR failed, falling back to client-side rendering:',
|
|
36
|
-
error
|
|
37
|
-
);
|
|
38
|
-
return html;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// ----------------------------------------------
|
|
43
|
-
// 클라이언트 사이드 등록 함수
|
|
44
|
-
// ----------------------------------------------
|
|
45
|
-
export function registerStencilForNextjs() {
|
|
46
|
-
if (typeof window === 'undefined') return;
|
|
47
|
-
|
|
48
|
-
// router 변경 시에도 재등록
|
|
49
|
-
import('@sellmate/design-system/loader').then(({ defineCustomElements }) => {
|
|
50
|
-
defineCustomElements(window);
|
|
51
|
-
});
|
|
52
|
-
}
|