@sellmate/design-system-react 1.0.63 → 1.0.65

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.
@@ -9,7 +9,11 @@ import { createComponent } from '@stencil/react-output-target/ssr';
9
9
  export const serializeShadowRoot = { default: "declarative-shadow-dom" };
10
10
  export const SdActionModal = /*@__PURE__*/ createComponent({
11
11
  tagName: 'sd-action-modal',
12
- properties: { modalTitle: 'modal-title' },
12
+ properties: {
13
+ modalTitle: 'modal-title',
14
+ width: 'width',
15
+ height: 'height'
16
+ },
13
17
  hydrateModule: import('@sellmate/design-system/hydrate'),
14
18
  clientModule: clientComponents.SdActionModal,
15
19
  serializeShadowRoot,
@@ -44,6 +48,7 @@ export const SdBarcodeInput = /*@__PURE__*/ createComponent({
44
48
  focused: 'focused',
45
49
  hovered: 'hovered',
46
50
  label: 'label',
51
+ labelWidth: 'label-width',
47
52
  labelTooltip: 'label-tooltip',
48
53
  rules: 'rules'
49
54
  },
@@ -171,6 +176,7 @@ export const SdDatePicker = /*@__PURE__*/ createComponent({
171
176
  disabled: 'disabled',
172
177
  width: 'width',
173
178
  label: 'label',
179
+ labelWidth: 'label-width',
174
180
  addonLabel: 'addon-label',
175
181
  hint: 'hint',
176
182
  errorMessage: 'error-message',
@@ -211,6 +217,7 @@ export const SdDateRangePicker = /*@__PURE__*/ createComponent({
211
217
  disabled: 'disabled',
212
218
  width: 'width',
213
219
  label: 'label',
220
+ labelWidth: 'label-width',
214
221
  addonLabel: 'addon-label',
215
222
  hint: 'hint',
216
223
  errorMessage: 'error-message',
@@ -256,6 +263,7 @@ export const SdField = /*@__PURE__*/ createComponent({
256
263
  width: 'width',
257
264
  size: 'size',
258
265
  label: 'label',
266
+ labelWidth: 'label-width',
259
267
  addonLabel: 'addon-label',
260
268
  labelTooltip: 'label-tooltip',
261
269
  rules: 'rules'
@@ -277,6 +285,7 @@ export const SdFilePicker = /*@__PURE__*/ createComponent({
277
285
  maxFiles: 'max-files',
278
286
  name: 'name',
279
287
  label: 'label',
288
+ labelWidth: 'label-width',
280
289
  addonLabel: 'addon-label',
281
290
  hint: 'hint',
282
291
  errorMessage: 'error-message',
@@ -379,6 +388,7 @@ export const SdInput = /*@__PURE__*/ createComponent({
379
388
  focused: 'focused',
380
389
  hovered: 'hovered',
381
390
  label: 'label',
391
+ labelWidth: 'label-width',
382
392
  labelTooltip: 'label-tooltip',
383
393
  rules: 'rules'
384
394
  },
@@ -424,6 +434,7 @@ export const SdNumberInput = /*@__PURE__*/ createComponent({
424
434
  useDecimal: 'use-decimal',
425
435
  value: 'value',
426
436
  label: 'label',
437
+ labelWidth: 'label-width',
427
438
  addonLabel: 'addon-label',
428
439
  placeholder: 'placeholder',
429
440
  disabled: 'disabled',
@@ -554,6 +565,7 @@ export const SdSelect = /*@__PURE__*/ createComponent({
554
565
  clearable: 'clearable',
555
566
  searchable: 'searchable',
556
567
  label: 'label',
568
+ labelWidth: 'label-width',
557
569
  addonLabel: 'addon-label',
558
570
  labelTooltip: 'label-tooltip',
559
571
  error: 'error',
@@ -594,6 +606,7 @@ export const SdSelectGroup = /*@__PURE__*/ createComponent({
594
606
  clearable: 'clearable',
595
607
  searchable: 'searchable',
596
608
  label: 'label',
609
+ labelWidth: 'label-width',
597
610
  addonLabel: 'addon-label',
598
611
  labelTooltip: 'label-tooltip',
599
612
  error: 'error',
@@ -618,6 +631,7 @@ export const SdSelectMultiple = /*@__PURE__*/ createComponent({
618
631
  useAll: 'use-all',
619
632
  useCheckbox: 'use-checkbox',
620
633
  label: 'label',
634
+ labelWidth: 'label-width',
621
635
  labelTooltip: 'label-tooltip',
622
636
  error: 'error',
623
637
  value: 'value',
@@ -643,6 +657,7 @@ export const SdSelectMultipleGroup = /*@__PURE__*/ createComponent({
643
657
  allCheckedLabel: 'all-checked-label',
644
658
  allCheckOptionLabel: 'all-check-option-label',
645
659
  label: 'label',
660
+ labelWidth: 'label-width',
646
661
  labelTooltip: 'label-tooltip',
647
662
  error: 'error',
648
663
  value: 'value',
@@ -700,6 +715,7 @@ export const SdSelectV2 = /*@__PURE__*/ createComponent({
700
715
  dropdownHeight: 'dropdown-height',
701
716
  disabled: 'disabled',
702
717
  label: 'label',
718
+ labelWidth: 'label-width',
703
719
  addonLabel: 'addon-label',
704
720
  error: 'error',
705
721
  hint: 'hint',
@@ -872,6 +888,7 @@ export const SdTextarea = /*@__PURE__*/ createComponent({
872
888
  spellcheck: 'spellcheck',
873
889
  width: 'width',
874
890
  label: 'label',
891
+ labelWidth: 'label-width',
875
892
  addonLabel: 'addon-label',
876
893
  hint: 'hint',
877
894
  errorMessage: 'error-message',
package/dist/sdModal.d.ts CHANGED
@@ -7,7 +7,7 @@ import { type ConfirmModalOptions, type LoadingModalOptions, type ModalDialogRef
7
7
  * 이 경우 `componentProps` 는 무시됩니다.
8
8
  * - `component` 에 React 컴포넌트(`ComponentType`) 를 넘기면 `componentProps` 로
9
9
  * props 를 지정해 `createRoot + flushSync` 로 렌더한 뒤 core 로 위임합니다.
10
- * - `persist` 는 core 옵션을 그대로 전달합니다.
10
+ * - `persistent` 는 core 옵션을 그대로 전달합니다.
11
11
  */
12
12
  export interface SdModalCreateOption extends Omit<CoreSdModalCreateOption, 'component'> {
13
13
  component: HTMLElement | ComponentType<any>;
@@ -17,7 +17,7 @@ export interface SdModalCreateOption extends Omit<CoreSdModalCreateOption, 'comp
17
17
  * React-aware `sdModal`.
18
18
  *
19
19
  * - `sdModal.confirm(options)` — core 와 동일
20
- * - `sdModal.create({ component, componentProps?, persist? })` —
20
+ * - `sdModal.create({ component, componentProps?, persistent? })` —
21
21
  * `component` 가 HTMLElement 면 core 로 위임, React 컴포넌트면
22
22
  * `createRoot + flushSync` 로 렌더한 뒤 위임합니다. 모달이 닫히면
23
23
  * 자동으로 언마운트됩니다.
package/dist/sdModal.js CHANGED
@@ -19,7 +19,7 @@ function mountReactComponent(component, componentProps) {
19
19
  * React-aware `sdModal`.
20
20
  *
21
21
  * - `sdModal.confirm(options)` — core 와 동일
22
- * - `sdModal.create({ component, componentProps?, persist? })` —
22
+ * - `sdModal.create({ component, componentProps?, persistent? })` —
23
23
  * `component` 가 HTMLElement 면 core 로 위임, React 컴포넌트면
24
24
  * `createRoot + flushSync` 로 렌더한 뒤 위임합니다. 모달이 닫히면
25
25
  * 자동으로 언마운트됩니다.
@@ -40,10 +40,10 @@ export const sdModal = {
40
40
  coreSdModal.configure(options);
41
41
  },
42
42
  create(input) {
43
- const { component, componentProps = {}, persist } = input;
43
+ const { component, componentProps = {}, persistent } = input;
44
44
  // HTMLElement 오버로드: core 로 바로 위임
45
45
  if (isHTMLElement(component)) {
46
- return coreSdModal.create({ component, persist });
46
+ return coreSdModal.create({ component, persistent });
47
47
  }
48
48
  // React 컴포넌트 오버로드 — modalRef 를 먼저 만들어 props 에 주입한 뒤 mount
49
49
  const modalRef = _createSdModalRef();
@@ -51,7 +51,7 @@ export const sdModal = {
51
51
  ...componentProps,
52
52
  modalRef,
53
53
  });
54
- _attachSdModalWithRef(modalRef, { component: el, persist });
54
+ _attachSdModalWithRef(modalRef, { component: el, persistent });
55
55
  modalRef.onDismissed(() => {
56
56
  root.unmount();
57
57
  host.remove();
@@ -85,7 +85,11 @@ export type SdActionModalEvents = {
85
85
 
86
86
  export const SdActionModal: StencilReactComponent<SdActionModalElement, SdActionModalEvents> = /*@__PURE__*/ createComponent<SdActionModalElement, SdActionModalEvents>({
87
87
  tagName: 'sd-action-modal',
88
- properties: { modalTitle: 'modal-title' },
88
+ properties: {
89
+ modalTitle: 'modal-title',
90
+ width: 'width',
91
+ height: 'height'
92
+ },
89
93
  hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
90
94
  clientModule: clientComponents.SdActionModal as ReactWebComponent<SdActionModalElement, SdActionModalEvents>,
91
95
  serializeShadowRoot,
@@ -130,6 +134,7 @@ export const SdBarcodeInput: StencilReactComponent<SdBarcodeInputElement, SdBarc
130
134
  focused: 'focused',
131
135
  hovered: 'hovered',
132
136
  label: 'label',
137
+ labelWidth: 'label-width',
133
138
  labelTooltip: 'label-tooltip',
134
139
  rules: 'rules'},
135
140
  hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
@@ -295,6 +300,7 @@ export const SdDatePicker: StencilReactComponent<SdDatePickerElement, SdDatePick
295
300
  disabled: 'disabled',
296
301
  width: 'width',
297
302
  label: 'label',
303
+ labelWidth: 'label-width',
298
304
  addonLabel: 'addon-label',
299
305
  hint: 'hint',
300
306
  errorMessage: 'error-message',
@@ -349,6 +355,7 @@ export const SdDateRangePicker: StencilReactComponent<SdDateRangePickerElement,
349
355
  disabled: 'disabled',
350
356
  width: 'width',
351
357
  label: 'label',
358
+ labelWidth: 'label-width',
352
359
  addonLabel: 'addon-label',
353
360
  hint: 'hint',
354
361
  errorMessage: 'error-message',
@@ -407,6 +414,7 @@ export const SdField: StencilReactComponent<SdFieldElement, SdFieldEvents> = /*@
407
414
  width: 'width',
408
415
  size: 'size',
409
416
  label: 'label',
417
+ labelWidth: 'label-width',
410
418
  addonLabel: 'addon-label',
411
419
  labelTooltip: 'label-tooltip',
412
420
  rules: 'rules'},
@@ -436,6 +444,7 @@ export const SdFilePicker: StencilReactComponent<SdFilePickerElement, SdFilePick
436
444
  maxFiles: 'max-files',
437
445
  name: 'name',
438
446
  label: 'label',
447
+ labelWidth: 'label-width',
439
448
  addonLabel: 'addon-label',
440
449
  hint: 'hint',
441
450
  errorMessage: 'error-message',
@@ -561,6 +570,7 @@ export const SdInput: StencilReactComponent<SdInputElement, SdInputEvents> = /*@
561
570
  focused: 'focused',
562
571
  hovered: 'hovered',
563
572
  label: 'label',
573
+ labelWidth: 'label-width',
564
574
  labelTooltip: 'label-tooltip',
565
575
  rules: 'rules'},
566
576
  hydrateModule: import('@sellmate/design-system/hydrate') as Promise<HydrateModule>,
@@ -621,6 +631,7 @@ export const SdNumberInput: StencilReactComponent<SdNumberInputElement, SdNumber
621
631
  useDecimal: 'use-decimal',
622
632
  value: 'value',
623
633
  label: 'label',
634
+ labelWidth: 'label-width',
624
635
  addonLabel: 'addon-label',
625
636
  placeholder: 'placeholder',
626
637
  disabled: 'disabled',
@@ -774,6 +785,7 @@ export const SdSelect: StencilReactComponent<SdSelectElement, SdSelectEvents> =
774
785
  clearable: 'clearable',
775
786
  searchable: 'searchable',
776
787
  label: 'label',
788
+ labelWidth: 'label-width',
777
789
  addonLabel: 'addon-label',
778
790
  labelTooltip: 'label-tooltip',
779
791
  error: 'error',
@@ -829,6 +841,7 @@ export const SdSelectGroup: StencilReactComponent<SdSelectGroupElement, SdSelect
829
841
  clearable: 'clearable',
830
842
  searchable: 'searchable',
831
843
  label: 'label',
844
+ labelWidth: 'label-width',
832
845
  addonLabel: 'addon-label',
833
846
  labelTooltip: 'label-tooltip',
834
847
  error: 'error',
@@ -858,6 +871,7 @@ export const SdSelectMultiple: StencilReactComponent<SdSelectMultipleElement, Sd
858
871
  useAll: 'use-all',
859
872
  useCheckbox: 'use-checkbox',
860
873
  label: 'label',
874
+ labelWidth: 'label-width',
861
875
  labelTooltip: 'label-tooltip',
862
876
  error: 'error',
863
877
  value: 'value',
@@ -888,6 +902,7 @@ export const SdSelectMultipleGroup: StencilReactComponent<SdSelectMultipleGroupE
888
902
  allCheckedLabel: 'all-checked-label',
889
903
  allCheckOptionLabel: 'all-check-option-label',
890
904
  label: 'label',
905
+ labelWidth: 'label-width',
891
906
  labelTooltip: 'label-tooltip',
892
907
  error: 'error',
893
908
  value: 'value',
@@ -975,6 +990,7 @@ export const SdSelectV2: StencilReactComponent<SdSelectV2Element, SdSelectV2Even
975
990
  dropdownHeight: 'dropdown-height',
976
991
  disabled: 'disabled',
977
992
  label: 'label',
993
+ labelWidth: 'label-width',
978
994
  addonLabel: 'addon-label',
979
995
  error: 'error',
980
996
  hint: 'hint',
@@ -1199,6 +1215,7 @@ export const SdTextarea: StencilReactComponent<SdTextareaElement, SdTextareaEven
1199
1215
  spellcheck: 'spellcheck',
1200
1216
  width: 'width',
1201
1217
  label: 'label',
1218
+ labelWidth: 'label-width',
1202
1219
  addonLabel: 'addon-label',
1203
1220
  hint: 'hint',
1204
1221
  errorMessage: 'error-message',
package/lib/sdModal.ts CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  * 이 경우 `componentProps` 는 무시됩니다.
22
22
  * - `component` 에 React 컴포넌트(`ComponentType`) 를 넘기면 `componentProps` 로
23
23
  * props 를 지정해 `createRoot + flushSync` 로 렌더한 뒤 core 로 위임합니다.
24
- * - `persist` 는 core 옵션을 그대로 전달합니다.
24
+ * - `persistent` 는 core 옵션을 그대로 전달합니다.
25
25
  */
26
26
  export interface SdModalCreateOption
27
27
  extends Omit<CoreSdModalCreateOption, 'component'> {
@@ -52,7 +52,7 @@ function mountReactComponent(
52
52
  * React-aware `sdModal`.
53
53
  *
54
54
  * - `sdModal.confirm(options)` — core 와 동일
55
- * - `sdModal.create({ component, componentProps?, persist? })` —
55
+ * - `sdModal.create({ component, componentProps?, persistent? })` —
56
56
  * `component` 가 HTMLElement 면 core 로 위임, React 컴포넌트면
57
57
  * `createRoot + flushSync` 로 렌더한 뒤 위임합니다. 모달이 닫히면
58
58
  * 자동으로 언마운트됩니다.
@@ -76,11 +76,11 @@ export const sdModal = {
76
76
  },
77
77
 
78
78
  create(input: SdModalCreateOption): ModalDialogRef {
79
- const { component, componentProps = {}, persist } = input;
79
+ const { component, componentProps = {}, persistent } = input;
80
80
 
81
81
  // HTMLElement 오버로드: core 로 바로 위임
82
82
  if (isHTMLElement(component)) {
83
- return coreSdModal.create({ component, persist });
83
+ return coreSdModal.create({ component, persistent });
84
84
  }
85
85
 
86
86
  // React 컴포넌트 오버로드 — modalRef 를 먼저 만들어 props 에 주입한 뒤 mount
@@ -89,7 +89,7 @@ export const sdModal = {
89
89
  ...componentProps,
90
90
  modalRef,
91
91
  });
92
- _attachSdModalWithRef(modalRef, { component: el, persist });
92
+ _attachSdModalWithRef(modalRef, { component: el, persistent });
93
93
  modalRef.onDismissed(() => {
94
94
  root.unmount();
95
95
  host.remove();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellmate/design-system-react",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Design System - React Component Wrappers",
5
5
  "keywords": [
6
6
  "react",
@@ -54,7 +54,7 @@
54
54
  "dev": "tsc --watch"
55
55
  },
56
56
  "dependencies": {
57
- "@sellmate/design-system": "^1.0.63",
57
+ "@sellmate/design-system": "^1.0.65",
58
58
  "@stencil/react-output-target": "^1.2.0"
59
59
  },
60
60
  "peerDependencies": {