@sellmate/design-system-react 0.0.10 → 0.0.12
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-button.d.ts +11 -0
- package/dist/components/sd-button.js +12 -0
- package/dist/components/sd-checkbox.d.ts +10 -0
- package/dist/components/sd-checkbox.js +17 -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-picker.d.ts +10 -0
- package/dist/components/sd-date-picker.js +17 -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-guide.d.ts +8 -0
- package/dist/components/sd-guide.js +17 -0
- package/dist/components/sd-icon.d.ts +8 -0
- package/dist/components/sd-icon.js +17 -0
- package/dist/components/sd-input.d.ts +15 -0
- package/dist/components/sd-input.js +18 -0
- package/dist/components/sd-pagination.d.ts +10 -0
- package/dist/components/sd-pagination.js +17 -0
- package/dist/components/sd-popover.d.ts +8 -0
- package/dist/components/sd-popover.js +17 -0
- package/dist/components/sd-portal.d.ts +10 -0
- package/dist/components/sd-portal.js +17 -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.d.ts +12 -0
- package/dist/components/sd-select.js +15 -0
- package/dist/components/sd-table.d.ts +12 -0
- package/dist/components/sd-table.js +15 -0
- package/dist/components/sd-tag.d.ts +8 -0
- package/dist/components/sd-tag.js +17 -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.d.ts +8 -0
- package/dist/components/sd-tooltip.js +17 -0
- package/dist/hydrate.d.ts +2 -0
- package/dist/hydrate.js +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/lib/components/components.ts +18 -247
- package/lib/components/sd-badge.ts +24 -0
- package/lib/components/sd-button.ts +25 -0
- package/lib/components/sd-checkbox.ts +24 -0
- package/lib/components/sd-date-box.ts +30 -0
- package/lib/components/sd-date-picker.ts +24 -0
- package/lib/components/sd-date-range-picker.ts +24 -0
- package/lib/components/sd-guide.ts +24 -0
- package/lib/components/sd-icon.ts +24 -0
- package/lib/components/sd-input.ts +37 -0
- package/lib/components/sd-pagination.ts +24 -0
- package/lib/components/sd-popover.ts +24 -0
- package/lib/components/sd-portal.ts +24 -0
- package/lib/components/sd-select-option.ts +31 -0
- package/lib/components/sd-select.ts +31 -0
- package/lib/components/sd-table.ts +31 -0
- package/lib/components/sd-tag.ts +24 -0
- package/lib/components/sd-tooltip-portal.ts +24 -0
- package/lib/components/sd-tooltip.ts +24 -0
- package/lib/hydrate.ts +53 -0
- package/lib/index.ts +2 -2
- package/package.json +15 -3
|
@@ -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 { SdPopover as SdPopoverElement, defineCustomElement as defineSdPopover } from "@sellmate/design-system/dist/components/sd-popover.js";
|
|
8
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export const SdPopover = /*@__PURE__*/ createComponent({
|
|
11
|
+
tagName: 'sd-popover',
|
|
12
|
+
elementClass: SdPopoverElement,
|
|
13
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
14
|
+
react: React,
|
|
15
|
+
events: {},
|
|
16
|
+
defineCustomElement: defineSdPopover
|
|
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 { SdPortal as SdPortalElement } from "@sellmate/design-system/dist/components/sd-portal.js";
|
|
6
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
7
|
+
export type SdPortalEvents = {
|
|
8
|
+
onSdClose: EventName<CustomEvent<void>>;
|
|
9
|
+
};
|
|
10
|
+
export declare const SdPortal: StencilReactComponent<SdPortalElement, SdPortalEvents>;
|
|
@@ -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 { SdPortal as SdPortalElement, defineCustomElement as defineSdPortal } from "@sellmate/design-system/dist/components/sd-portal.js";
|
|
8
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export const SdPortal = /*@__PURE__*/ createComponent({
|
|
11
|
+
tagName: 'sd-portal',
|
|
12
|
+
elementClass: SdPortalElement,
|
|
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: defineSdPortal
|
|
17
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 SdSelectOptionCustomEvent, type SelectOption } from "@sellmate/design-system";
|
|
6
|
+
import { SdSelectOption as SdSelectOptionElement } from "@sellmate/design-system/dist/components/sd-select-option.js";
|
|
7
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
8
|
+
export type SdSelectOptionEvents = {
|
|
9
|
+
onOptionClick: EventName<SdSelectOptionCustomEvent<{
|
|
10
|
+
option: SelectOption;
|
|
11
|
+
index: number;
|
|
12
|
+
event: MouseEvent;
|
|
13
|
+
}>>;
|
|
14
|
+
};
|
|
15
|
+
export declare const SdSelectOption: StencilReactComponent<SdSelectOptionElement, SdSelectOptionEvents>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { SdSelectOption as SdSelectOptionElement, defineCustomElement as defineSdSelectOption } from "@sellmate/design-system/dist/components/sd-select-option.js";
|
|
3
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export const SdSelectOption = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'sd-select-option',
|
|
7
|
+
elementClass: SdSelectOptionElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: { onOptionClick: 'optionClick' },
|
|
11
|
+
defineCustomElement: defineSdSelectOption
|
|
12
|
+
});
|
|
@@ -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 SdSelectCustomEvent, type SelectEvents } from "@sellmate/design-system";
|
|
6
|
+
import { SdSelect as SdSelectElement } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
7
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
8
|
+
export type SdSelectEvents = {
|
|
9
|
+
onSdChange: EventName<SdSelectCustomEvent<SelectEvents['sdChange']>>;
|
|
10
|
+
onDropDownShow: EventName<SdSelectCustomEvent<SelectEvents['dropDownShow']>>;
|
|
11
|
+
};
|
|
12
|
+
export declare const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { SdSelect as SdSelectElement, defineCustomElement as defineSdSelect } from "@sellmate/design-system/dist/components/sd-select.js";
|
|
3
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export const SdSelect = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'sd-select',
|
|
7
|
+
elementClass: SdSelectElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: {
|
|
11
|
+
onSdChange: 'sdChange',
|
|
12
|
+
onDropDownShow: 'dropDownShow'
|
|
13
|
+
},
|
|
14
|
+
defineCustomElement: defineSdSelect
|
|
15
|
+
});
|
|
@@ -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,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 { 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,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
|
+
});
|
package/dist/hydrate.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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-badge',
|
|
10
|
+
'sd-button',
|
|
11
|
+
'sd-input',
|
|
12
|
+
'sd-select',
|
|
13
|
+
'sd-table',
|
|
14
|
+
'sd-icon',
|
|
15
|
+
'sd-checkbox',
|
|
16
|
+
'sd-tag',
|
|
17
|
+
'sd-pagination',
|
|
18
|
+
'sd-tooltip',
|
|
19
|
+
'sd-popover',
|
|
20
|
+
'sd-guide',
|
|
21
|
+
'sd-date-picker',
|
|
22
|
+
'sd-date-range-picker',
|
|
23
|
+
'sd-date-box',
|
|
24
|
+
'sd-portal',
|
|
25
|
+
'sd-tooltip-portal',
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
return results.html;
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.warn('Stencil SSR failed, falling back to client-side rendering:', error);
|
|
32
|
+
return html;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// ----------------------------------------------
|
|
36
|
+
// 클라이언트 사이드 등록 함수
|
|
37
|
+
// ----------------------------------------------
|
|
38
|
+
export function registerStencilForNextjs() {
|
|
39
|
+
if (typeof window === 'undefined')
|
|
40
|
+
return;
|
|
41
|
+
// router 변경 시에도 재등록
|
|
42
|
+
import('@sellmate/design-system/loader').then(({ defineCustomElements }) => {
|
|
43
|
+
defineCustomElements(window);
|
|
44
|
+
});
|
|
45
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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,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
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
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 SdButtonCustomEvent } from "@sellmate/design-system";
|
|
11
|
+
import { SdButton as SdButtonElement, defineCustomElement as defineSdButton } from "@sellmate/design-system/dist/components/sd-button.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 SdButtonEvents = { onSdClick: EventName<SdButtonCustomEvent<MouseEvent>> };
|
|
17
|
+
|
|
18
|
+
export const SdButton: StencilReactComponent<SdButtonElement, SdButtonEvents> = /*@__PURE__*/ createComponent<SdButtonElement, SdButtonEvents>({
|
|
19
|
+
tagName: 'sd-button',
|
|
20
|
+
elementClass: SdButtonElement,
|
|
21
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
22
|
+
react: React,
|
|
23
|
+
events: { onSdClick: 'sdClick' } as SdButtonEvents,
|
|
24
|
+
defineCustomElement: defineSdButton
|
|
25
|
+
});
|
|
@@ -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 { SdCheckbox as SdCheckboxElement, defineCustomElement as defineSdCheckbox } from "@sellmate/design-system/dist/components/sd-checkbox.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 SdCheckboxEvents = { onSdChange: EventName<CustomEvent<any | any[]>> };
|
|
16
|
+
|
|
17
|
+
export const SdCheckbox: StencilReactComponent<SdCheckboxElement, SdCheckboxEvents> = /*@__PURE__*/ createComponent<SdCheckboxElement, SdCheckboxEvents>({
|
|
18
|
+
tagName: 'sd-checkbox',
|
|
19
|
+
elementClass: SdCheckboxElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: { onSdChange: 'sdChange' } as SdCheckboxEvents,
|
|
23
|
+
defineCustomElement: defineSdCheckbox
|
|
24
|
+
});
|