@sellmate/design-system 1.0.63 → 1.0.64

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 (112) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -1
  4. package/dist/cjs/sd-button_4.cjs.entry.js +11 -5
  5. package/dist/cjs/sd-date-picker.cjs.entry.js +3 -2
  6. package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -2
  7. package/dist/cjs/sd-file-picker.cjs.entry.js +2 -1
  8. package/dist/cjs/sd-input_2.cjs.entry.js +3 -2
  9. package/dist/cjs/sd-number-input.cjs.entry.js +4 -3
  10. package/dist/cjs/sd-pagination_2.cjs.entry.js +4 -3
  11. package/dist/cjs/sd-select-group.cjs.entry.js +2 -1
  12. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -1
  13. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -1
  14. package/dist/cjs/sd-select.cjs.entry.js +2 -1
  15. package/dist/cjs/sd-textarea.cjs.entry.js +2 -1
  16. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +22 -1
  17. package/dist/collection/components/sd-date-picker/sd-date-picker.js +23 -2
  18. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +23 -2
  19. package/dist/collection/components/sd-field/sd-field.css +7 -0
  20. package/dist/collection/components/sd-field/sd-field.js +30 -4
  21. package/dist/collection/components/sd-file-picker/sd-file-picker.js +22 -1
  22. package/dist/collection/components/sd-input/sd-input.js +23 -2
  23. package/dist/collection/components/sd-number-input/sd-number-input.js +24 -3
  24. package/dist/collection/components/sd-select/sd-select.js +22 -1
  25. package/dist/collection/components/sd-select-group/sd-select-group.js +22 -1
  26. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +22 -1
  27. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +22 -1
  28. package/dist/collection/components/sd-select-v2/sd-select-v2.js +24 -3
  29. package/dist/collection/components/sd-textarea/sd-textarea.js +22 -1
  30. package/dist/components/p-BjjrNz4C.js +1 -0
  31. package/dist/components/{p-DUqX35W_.js → p-BkUclgga.js} +1 -1
  32. package/dist/components/p-CKU8CeW3.js +1 -0
  33. package/dist/components/p-DC9KYl3L.js +1 -0
  34. package/dist/components/{p-DgYBr7xb.js → p-xmvTLf74.js} +1 -1
  35. package/dist/components/sd-barcode-input.js +1 -1
  36. package/dist/components/sd-date-picker.js +1 -1
  37. package/dist/components/sd-date-range-picker.js +1 -1
  38. package/dist/components/sd-field.js +1 -1
  39. package/dist/components/sd-file-picker.js +1 -1
  40. package/dist/components/sd-input.js +1 -1
  41. package/dist/components/sd-number-input.js +1 -1
  42. package/dist/components/sd-select-dropdown.js +1 -1
  43. package/dist/components/sd-select-group.js +1 -1
  44. package/dist/components/sd-select-multiple-group.js +1 -1
  45. package/dist/components/sd-select-multiple.js +1 -1
  46. package/dist/components/sd-select-search-input.js +1 -1
  47. package/dist/components/sd-select-v2.js +1 -1
  48. package/dist/components/sd-select.js +1 -1
  49. package/dist/components/sd-table.js +1 -1
  50. package/dist/components/sd-textarea.js +1 -1
  51. package/dist/design-system/design-system.esm.js +1 -1
  52. package/dist/design-system/p-010e4f47.entry.js +1 -0
  53. package/dist/design-system/p-2ae97b1c.entry.js +1 -0
  54. package/dist/design-system/p-6644c4a0.entry.js +1 -0
  55. package/dist/design-system/p-96b14db1.entry.js +1 -0
  56. package/dist/design-system/p-a983560d.entry.js +1 -0
  57. package/dist/design-system/p-b3279f07.entry.js +1 -0
  58. package/dist/design-system/p-b81e0493.entry.js +1 -0
  59. package/dist/design-system/p-cb65a9e4.entry.js +1 -0
  60. package/dist/design-system/p-cf1156cb.entry.js +1 -0
  61. package/dist/design-system/p-d040ec6f.entry.js +1 -0
  62. package/dist/design-system/p-d8eb17a8.entry.js +1 -0
  63. package/dist/design-system/p-ed61fe19.entry.js +1 -0
  64. package/dist/design-system/p-f3d082c8.entry.js +1 -0
  65. package/dist/esm/design-system.js +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/esm/sd-barcode-input.entry.js +2 -1
  68. package/dist/esm/sd-button_4.entry.js +11 -5
  69. package/dist/esm/sd-date-picker.entry.js +3 -2
  70. package/dist/esm/sd-date-range-picker.entry.js +3 -2
  71. package/dist/esm/sd-file-picker.entry.js +2 -1
  72. package/dist/esm/sd-input_2.entry.js +3 -2
  73. package/dist/esm/sd-number-input.entry.js +4 -3
  74. package/dist/esm/sd-pagination_2.entry.js +4 -3
  75. package/dist/esm/sd-select-group.entry.js +2 -1
  76. package/dist/esm/sd-select-multiple-group.entry.js +2 -1
  77. package/dist/esm/sd-select-multiple.entry.js +2 -1
  78. package/dist/esm/sd-select.entry.js +2 -1
  79. package/dist/esm/sd-textarea.entry.js +2 -1
  80. package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +1 -0
  81. package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +1 -0
  82. package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +1 -0
  83. package/dist/types/components/sd-field/sd-field.d.ts +1 -0
  84. package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +1 -0
  85. package/dist/types/components/sd-input/sd-input.d.ts +1 -0
  86. package/dist/types/components/sd-number-input/sd-number-input.d.ts +1 -0
  87. package/dist/types/components/sd-select/sd-select.d.ts +1 -0
  88. package/dist/types/components/sd-select-group/sd-select-group.d.ts +1 -0
  89. package/dist/types/components/sd-select-multiple/sd-select-multiple.d.ts +1 -0
  90. package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +1 -0
  91. package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +1 -0
  92. package/dist/types/components/sd-textarea/sd-textarea.d.ts +1 -0
  93. package/dist/types/components.d.ts +117 -0
  94. package/hydrate/index.js +55 -24
  95. package/hydrate/index.mjs +55 -24
  96. package/package.json +1 -1
  97. package/dist/components/p-aC4HJHug.js +0 -1
  98. package/dist/components/p-e35Du7-7.js +0 -1
  99. package/dist/components/p-e8HA30H_.js +0 -1
  100. package/dist/design-system/p-0ca594a4.entry.js +0 -1
  101. package/dist/design-system/p-1b9e427e.entry.js +0 -1
  102. package/dist/design-system/p-1cbe4b22.entry.js +0 -1
  103. package/dist/design-system/p-656acb07.entry.js +0 -1
  104. package/dist/design-system/p-748ece8e.entry.js +0 -1
  105. package/dist/design-system/p-9af7e19a.entry.js +0 -1
  106. package/dist/design-system/p-a24c3431.entry.js +0 -1
  107. package/dist/design-system/p-c2f3470f.entry.js +0 -1
  108. package/dist/design-system/p-c98ed6ae.entry.js +0 -1
  109. package/dist/design-system/p-ca80379a.entry.js +0 -1
  110. package/dist/design-system/p-e9f24d23.entry.js +0 -1
  111. package/dist/design-system/p-ec79fefd.entry.js +0 -1
  112. package/dist/design-system/p-f3a60f61.entry.js +0 -1
@@ -28,6 +28,7 @@ const SdSelectGroup = class extends baseDropdownEvent.BaseDropdownEvent {
28
28
  searchable = false;
29
29
  // props - label
30
30
  label = '';
31
+ labelWidth = '';
31
32
  addonLabel = '';
32
33
  icon = undefined;
33
34
  labelTooltip = '';
@@ -275,7 +276,7 @@ const SdSelectGroup = class extends baseDropdownEvent.BaseDropdownEvent {
275
276
  });
276
277
  }
277
278
  render() {
278
- return (index.h("sd-field", { key: 'b1b62a2e99fda1f0fbc4f8b3ede5af95a9ed09aa', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, index.h("div", { key: '91f30fd84c70010030813f2d0cd9e86939e185d7', class: {
279
+ return (index.h("sd-field", { key: '1e6a0f9947f5d137bb65844fe666c07b4eefb2f7', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, index.h("div", { key: '62dcd2f37c2eda0e51f2e77de36ece6ab592c4ce', class: {
279
280
  'sd-select-group': true,
280
281
  'sd-select-group--open': this.isOpen,
281
282
  'sd-select-group--disabled': this.disabled,
@@ -31,6 +31,7 @@ const SdSelectMultipleGroup = class extends baseDropdownEvent.BaseDropdownEvent
31
31
  allCheckOptionLabel = '전체';
32
32
  // props - label
33
33
  label = '';
34
+ labelWidth = '';
34
35
  icon = undefined;
35
36
  labelTooltip = '';
36
37
  labelTooltipProps = null;
@@ -397,7 +398,7 @@ const SdSelectMultipleGroup = class extends baseDropdownEvent.BaseDropdownEvent
397
398
  });
398
399
  }
399
400
  render() {
400
- return (index.h("sd-field", { key: '3cc9e5b2f1062e216a0dd738dff6918084c5e3b4', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, index.h("div", { key: '60be94c561be252d6cc822e6be60a5e31390a15f', class: {
401
+ return (index.h("sd-field", { key: 'e7d00571a19a83e8d243d0c4f7433d931d4a2304', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, index.h("div", { key: '8c7288d853fed5bb829f1ef90af5e96a512c11b3', class: {
401
402
  'sd-select-multiple-group': true,
402
403
  'sd-select-multiple-group--open': this.isOpen,
403
404
  'sd-select-multiple-group--disabled': this.disabled,
@@ -31,6 +31,7 @@ const SdSelectMultiple = class extends baseDropdownEvent.BaseDropdownEvent {
31
31
  useCheckbox = false;
32
32
  // props - label
33
33
  label = '';
34
+ labelWidth = '';
34
35
  icon = undefined;
35
36
  labelTooltip = '';
36
37
  labelTooltipProps = null;
@@ -155,7 +156,7 @@ const SdSelectMultiple = class extends baseDropdownEvent.BaseDropdownEvent {
155
156
  this.handleOptionSelection(option);
156
157
  };
157
158
  render() {
158
- return (index.h("sd-field", { key: 'e372aab1dafc730f22c6d58cbd39d651e65a66dc', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, index.h("div", { key: 'a73dc6abd9a05f888c39d2176f72275a329ccae0', class: {
159
+ return (index.h("sd-field", { key: 'f5dda40563661955aa194d841ca89628afd496cb', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, index.h("div", { key: '81541d9adabfea7c3af1c22ed419036f56e1a353', class: {
159
160
  'sd-select-multiple': true,
160
161
  'sd-select-multiple--open': this.isOpen,
161
162
  'sd-select-multiple--disabled': this.disabled,
@@ -28,6 +28,7 @@ const SdSelect = class extends baseDropdownEvent.BaseDropdownEvent {
28
28
  searchable = false;
29
29
  // props - label
30
30
  label = '';
31
+ labelWidth = '';
31
32
  addonLabel = '';
32
33
  icon = undefined;
33
34
  labelTooltip = '';
@@ -146,7 +147,7 @@ const SdSelect = class extends baseDropdownEvent.BaseDropdownEvent {
146
147
  }
147
148
  };
148
149
  render() {
149
- return (index.h("sd-field", { key: '33f8a4e75ab20389213be5643f479b806e8e78c3', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, index.h("div", { key: '148f21e1a19cf4f4b9e61b4192d631d85dbc57a4', class: {
150
+ return (index.h("sd-field", { key: 'd96961fe4c425c3f0fcb1c2f438c8b70c510b632', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, index.h("div", { key: '0113ffb76ea79cbe3b77dff85d8186a5b994e7b6', class: {
150
151
  'sd-select': true,
151
152
  'sd-select--disabled': this.disabled,
152
153
  'sd-select--error': !!this.error,
@@ -41,6 +41,7 @@ const SdTextarea = class {
41
41
  width = '';
42
42
  // props - sd-field
43
43
  label = '';
44
+ labelWidth = '';
44
45
  addonLabel = '';
45
46
  hint = '';
46
47
  errorMessage = '';
@@ -128,7 +129,7 @@ const SdTextarea = class {
128
129
  '--sd-system-size-field-sm-height': 'auto',
129
130
  '--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
130
131
  };
131
- return (index.h("sd-field", { key: '4525a68094b0655721c1d8679ee32bc041cf9677', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: '8a7724f1ff423b44dd9017f0446cfeb1220fda95', class: "sd-textarea__content" }, index.h("textarea", { key: '3eb2bafbbd31cd36ba5626aa9e0069d24d4634ec', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
132
+ return (index.h("sd-field", { key: '6b2360f01a356db14659e1ebc53d8c4d8c4f671f', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: 'f43279ee861d3502c9130f1de0c47cba61ad0866', class: "sd-textarea__content" }, index.h("textarea", { key: '0600b577417019ae36a0daba637168ebc5685220', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
132
133
  }
133
134
  static get watchers() { return {
134
135
  "value": [{
@@ -22,6 +22,7 @@ export class SdBarcodeInput {
22
22
  hovered = false;
23
23
  // props - label
24
24
  label = '';
25
+ labelWidth = '';
25
26
  icon = undefined;
26
27
  labelTooltip = '';
27
28
  labelTooltipProps = null;
@@ -100,7 +101,7 @@ export class SdBarcodeInput {
100
101
  '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
101
102
  '--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
102
103
  };
103
- return (h("sd-field", { key: 'ea17ae1c54890e57be4f582b3e993f370646b81a', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'c96462ac8db261a31681744585a4f396b6561abb', class: "sd-barcode-input__content" }, h("slot", { key: 'fde26b71059c79ef6911ab7a185bacda19b2800a', name: "prefix" }), h("input", { key: 'a015944a0396a2fc3ab1c1ea401f79f25a260764', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '45958b98d96ad527cfb9b59491e48e6f5c75e990', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '7bf3f5e3ffcb35def3576e5f07d2af6392ce0c59', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
104
+ return (h("sd-field", { key: 'bba439856e0cbaedc7b54411dac904f9c845b50c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '8553cfb4b5ef9535608abc1f2987ce08970c318a', class: "sd-barcode-input__content" }, h("slot", { key: '93db2b38e8d674230f48e3b9496a7221d8477da6', name: "prefix" }), h("input", { key: '30997bea593052322a2d29fc1e517b00cf19b1fb', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '690daa6c1daa6058713ee09b0efe976557cde3ab', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '8ab4e45a23d1b06dc415d969e25ed5ea59540643', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
104
105
  if (this.disabled)
105
106
  return;
106
107
  this.internalValue = '';
@@ -491,6 +492,26 @@ export class SdBarcodeInput {
491
492
  "attribute": "label",
492
493
  "defaultValue": "''"
493
494
  },
495
+ "labelWidth": {
496
+ "type": "any",
497
+ "mutable": false,
498
+ "complexType": {
499
+ "original": "string | number",
500
+ "resolved": "number | string",
501
+ "references": {}
502
+ },
503
+ "required": false,
504
+ "optional": false,
505
+ "docs": {
506
+ "tags": [],
507
+ "text": ""
508
+ },
509
+ "getter": false,
510
+ "setter": false,
511
+ "reflect": false,
512
+ "attribute": "label-width",
513
+ "defaultValue": "''"
514
+ },
494
515
  "icon": {
495
516
  "type": "unknown",
496
517
  "mutable": false,
@@ -12,6 +12,7 @@ export class SdDatePicker {
12
12
  width = '';
13
13
  // sd-field 공통 props
14
14
  label = '';
15
+ labelWidth = '';
15
16
  addonLabel = '';
16
17
  hint = '';
17
18
  errorMessage = '';
@@ -91,9 +92,9 @@ export class SdDatePicker {
91
92
  '--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
92
93
  '--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
93
94
  };
94
- return (h("sd-field", { key: 'cfbaa89a7e07ff2d8994f3e8faa16bc55decce0f', name: this.fieldName || this.internalName, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '674cc78bc3a3cda15a1cff07c36d0d5adbcfa2ef', class: "sd-date-picker", ref: el => {
95
+ return (h("sd-field", { key: '693c0c75e6b0a9ee8323f4be7ec101592e586372', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'ea7f506f0163119fac0c660ef1bef5781780a118', class: "sd-date-picker", ref: el => {
95
96
  this.triggerRef = el;
96
- } }, h("sd-date-picker-trigger", { key: '1491cea4ff657631b3dc197fa39981c2c4df96c7', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '9a759a3470bc077a52efbd4718cf11f3b67ef477', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-picker-calendar", { key: 'a14a447fbf28d95173eca5fae3baa73319c0bc37', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
97
+ } }, h("sd-date-picker-trigger", { key: '0109eb0326655018bc02cc373e766ffdada85ff0', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '65a628af43ae036a752f3511341fd8c9c82303a1', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-picker-calendar", { key: '21f574fc9551f9aaccfcb5d49a81952dbba72d7a', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
97
98
  }
98
99
  static get is() { return "sd-date-picker"; }
99
100
  static get originalStyleUrls() {
@@ -252,6 +253,26 @@ export class SdDatePicker {
252
253
  "attribute": "label",
253
254
  "defaultValue": "''"
254
255
  },
256
+ "labelWidth": {
257
+ "type": "any",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string | number",
261
+ "resolved": "number | string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": ""
269
+ },
270
+ "getter": false,
271
+ "setter": false,
272
+ "reflect": false,
273
+ "attribute": "label-width",
274
+ "defaultValue": "''"
275
+ },
255
276
  "addonLabel": {
256
277
  "type": "string",
257
278
  "mutable": false,
@@ -13,6 +13,7 @@ export class SdDateRangePicker {
13
13
  width = '';
14
14
  // sd-field 공통 props
15
15
  label = '';
16
+ labelWidth = '';
16
17
  addonLabel = '';
17
18
  hint = '';
18
19
  errorMessage = '';
@@ -97,9 +98,9 @@ export class SdDateRangePicker {
97
98
  '--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
98
99
  '--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
99
100
  };
100
- return (h("sd-field", { key: 'c3ce7e19d317939c193b6d1481b78ce599b0ffb1', name: this.fieldName || this.internalName, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'a3b48e2f79359620aabe01cfb32ac6a066acf567', class: "sd-date-range-picker", ref: el => {
101
+ return (h("sd-field", { key: '95ec666c91635d6b6b749d660b4495b7ebe48e6a', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '3051fda66e94d51208347ae2053173570d5f1ca9', class: "sd-date-range-picker", ref: el => {
101
102
  this.triggerRef = el;
102
- } }, h("sd-date-picker-trigger", { key: '3b2a963d29e93fe2ef82d1cd466ebd079c31ee30', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '5e51463ffdaf21c67a796b8a4418a287b48f7528', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: '820176f7e03e9aab97e8b1f7752a535385918e46', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
103
+ } }, h("sd-date-picker-trigger", { key: '71693b5a4cec562169d9427a4e19aed4d8b19a45', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '75b9f1c1ebdabcd1c1a33cad51189ba132274bb1', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: 'f158eead4f44bc452bf102b3324721df84fc3b0c', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
103
104
  }
104
105
  static get is() { return "sd-date-range-picker"; }
105
106
  static get originalStyleUrls() {
@@ -281,6 +282,26 @@ export class SdDateRangePicker {
281
282
  "attribute": "label",
282
283
  "defaultValue": "''"
283
284
  },
285
+ "labelWidth": {
286
+ "type": "any",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string | number",
290
+ "resolved": "number | string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
298
+ },
299
+ "getter": false,
300
+ "setter": false,
301
+ "reflect": false,
302
+ "attribute": "label-width",
303
+ "defaultValue": "''"
304
+ },
284
305
  "addonLabel": {
285
306
  "type": "string",
286
307
  "mutable": false,
@@ -29,11 +29,14 @@ sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control {
29
29
  sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label {
30
30
  display: flex;
31
31
  align-items: center;
32
+ flex-shrink: 0;
33
+ width: var(--sd-field-label-width, auto);
32
34
  height: var(--sd-field-label-height);
33
35
  margin-right: var(--sd-field-label-margin-right);
34
36
  }
35
37
  sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon {
36
38
  margin-right: var(--sd-field-label-gap);
39
+ flex-shrink: 0;
37
40
  }
38
41
  sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text {
39
42
  font-size: var(--sd-field-label-font-size);
@@ -41,9 +44,13 @@ sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text {
41
44
  font-weight: var(--sd-field-label-font-weight);
42
45
  color: var(--sd-system-color-field-text-default);
43
46
  white-space: nowrap;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ min-width: 0;
44
50
  }
45
51
  sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip {
46
52
  margin-left: var(--sd-field-label-gap);
53
+ flex-shrink: 0;
47
54
  }
48
55
  sd-field .sd-field--has-addon .sd-field__control .sd-field__addon {
49
56
  display: flex;
@@ -29,6 +29,7 @@ export class SdField {
29
29
  size = 'sm';
30
30
  // props - label
31
31
  label = '';
32
+ labelWidth = '';
32
33
  addonLabel = '';
33
34
  icon = undefined;
34
35
  labelTooltip = '';
@@ -141,6 +142,11 @@ export class SdField {
141
142
  '--sd-field-label-font-size': `${labelTokens.fontSize}px`,
142
143
  '--sd-field-label-line-height': `${labelTokens.lineHeight}px`,
143
144
  '--sd-field-label-font-weight': labelTokens.fontWeight,
145
+ ...(this.labelWidth
146
+ ? {
147
+ '--sd-field-label-width': typeof this.labelWidth === 'number' ? `${this.labelWidth}px` : this.labelWidth,
148
+ }
149
+ : {}),
144
150
  }
145
151
  : {};
146
152
  const addonCssVars = addon
@@ -157,20 +163,20 @@ export class SdField {
157
163
  '--sd-field-addon-border-width': `${addonTokens.border.width}px`,
158
164
  }
159
165
  : {};
160
- return (h("div", { key: '72ffdb42c88b90eb60637b10c1330dc509ece812', class: {
166
+ return (h("div", { key: 'f12b2e13ac8152d1e688f903a60a8fa670e99065', class: {
161
167
  'sd-field': true,
162
168
  'sd-field--has-label': !!this.label,
163
169
  'sd-field--has-addon': !!addon,
164
170
  [this.fieldStatus]: !!this.fieldStatus,
165
- }, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: 'fb5d90aea5a4988ec58984b4a85ed609f032549e', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'c0372be3a39ca1d6cebfe5e765d120751e39d03e', class: "sd-field__main", style: this.width
171
+ }, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '79f7a40b5e1ee95bb9075b0855e22261cd8adc6a', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '54b5bbfbe18df48c40cc30ec3d6761ccd8e446cc', class: "sd-field__main", style: this.width
166
172
  ? {
167
173
  width: typeof this.width === 'number' ? `${this.width}px` : this.width,
168
174
  flex: 'none',
169
175
  }
170
- : {} }, h("div", { key: 'd203154db0eef4e73908d78ba3667710c51b6595', class: {
176
+ : {} }, h("div", { key: '39542908287175ade4d6e0f1acd2cb1f03c9e2a1', class: {
171
177
  'sd-field__control': true,
172
178
  'sd-field__control--has-addon': !!addon,
173
- } }, addon && h("div", { key: '851b996010c4f0402df8b6bfe9ced0c8444bc591', class: "sd-field__addon" }, addon), h("slot", { key: '081b95a99090c3c1d2d28170500ac7be15452876' })), this.errorMsg || this.errorMessage ? (h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && h("div", { class: "sd-field__hint" }, this.hint))))));
179
+ } }, addon && h("div", { key: '236650de53d1d1951f26586aa0d22f0f267fc411', class: "sd-field__addon" }, addon), h("slot", { key: '41df3dca21aa68d3324617891f2555f1c488a61b' })), this.errorMsg || this.errorMessage ? (h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && h("div", { class: "sd-field__hint" }, this.hint))))));
174
180
  }
175
181
  renderLabel(label) {
176
182
  if (!label)
@@ -441,6 +447,26 @@ export class SdField {
441
447
  "attribute": "label",
442
448
  "defaultValue": "''"
443
449
  },
450
+ "labelWidth": {
451
+ "type": "any",
452
+ "mutable": false,
453
+ "complexType": {
454
+ "original": "string | number",
455
+ "resolved": "number | string",
456
+ "references": {}
457
+ },
458
+ "required": false,
459
+ "optional": false,
460
+ "docs": {
461
+ "tags": [],
462
+ "text": ""
463
+ },
464
+ "getter": false,
465
+ "setter": false,
466
+ "reflect": false,
467
+ "attribute": "label-width",
468
+ "defaultValue": "''"
469
+ },
444
470
  "addonLabel": {
445
471
  "type": "string",
446
472
  "mutable": false,
@@ -14,6 +14,7 @@ export class SdFilePicker {
14
14
  // sd-field 패스스루 props
15
15
  name = '';
16
16
  label = '';
17
+ labelWidth = '';
17
18
  addonLabel = '';
18
19
  hint = '';
19
20
  errorMessage = '';
@@ -176,7 +177,7 @@ export class SdFilePicker {
176
177
  'sd-file-picker--inline-disabled': this.disabled,
177
178
  }, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
178
179
  }
179
- return (h("sd-field", { name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, content));
180
+ return (h("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, content));
180
181
  }
181
182
  static get is() { return "sd-file-picker"; }
182
183
  static get originalStyleUrls() {
@@ -410,6 +411,26 @@ export class SdFilePicker {
410
411
  "attribute": "label",
411
412
  "defaultValue": "''"
412
413
  },
414
+ "labelWidth": {
415
+ "type": "any",
416
+ "mutable": false,
417
+ "complexType": {
418
+ "original": "string | number",
419
+ "resolved": "number | string",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": false,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "getter": false,
429
+ "setter": false,
430
+ "reflect": false,
431
+ "attribute": "label-width",
432
+ "defaultValue": "''"
433
+ },
413
434
  "addonLabel": {
414
435
  "type": "string",
415
436
  "mutable": false,
@@ -29,6 +29,7 @@ export class SdInput {
29
29
  hovered = false;
30
30
  // props - label
31
31
  label = '';
32
+ labelWidth = '';
32
33
  icon = undefined;
33
34
  labelTooltip = '';
34
35
  labelTooltipProps = null;
@@ -110,12 +111,12 @@ export class SdInput {
110
111
  '--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
111
112
  '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
112
113
  };
113
- return (h("sd-field", { key: 'a96aaa54fe54c9d9ee5ab31537e1b6fb7b612c8f', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'd806549d41156ab414d04664e6887075ef97f307', class: "sd-input__content" }, h("slot", { key: '29f447128f6211792742a252d1ea087b5a5b413e', name: "prefix" }), h("input", { key: 'e1870c7573268e97eac820d7508e134c13c32b40', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'f12b87b5d30878a55e1224abf789b924c1fd3a0c', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'dad4be5dc6e8239dedc094fe0eb02a2587dd9f9c', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
114
+ return (h("sd-field", { key: 'a72ce8674fb761de7cd188e99cc19d5f3731a899', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'e5cbdbc2b233bda57488ead19401d277891301ae', class: "sd-input__content" }, h("slot", { key: 'a327005770df94ef61f2e08071e77407a24b7b5c', name: "prefix" }), h("input", { key: '36301cd586151b8c607e14715b26fca467f68c13', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '532e201860db0709572502aa4275fc9251e1aeb1', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'cc6132852c65f0597cbe25751c7246b1cdad3096', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
114
115
  if (this.disabled)
115
116
  return;
116
117
  this.internalValue = '';
117
118
  await this.formField?.sdValidate();
118
- } })), this.type === 'password' && (h("sd-ghost-button", { key: '71c5cf7565ad13f08173fc10e828ddf5f8f546b8', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
119
+ } })), this.type === 'password' && (h("sd-ghost-button", { key: 'fd3d567346cf5771ec28c73f15cdf0db15835766', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
119
120
  if (this.disabled)
120
121
  return;
121
122
  this.passwordVisible = !this.passwordVisible;
@@ -641,6 +642,26 @@ export class SdInput {
641
642
  "attribute": "label",
642
643
  "defaultValue": "''"
643
644
  },
645
+ "labelWidth": {
646
+ "type": "any",
647
+ "mutable": false,
648
+ "complexType": {
649
+ "original": "string | number",
650
+ "resolved": "number | string",
651
+ "references": {}
652
+ },
653
+ "required": false,
654
+ "optional": false,
655
+ "docs": {
656
+ "tags": [],
657
+ "text": ""
658
+ },
659
+ "getter": false,
660
+ "setter": false,
661
+ "reflect": false,
662
+ "attribute": "label-width",
663
+ "defaultValue": "''"
664
+ },
644
665
  "icon": {
645
666
  "type": "unknown",
646
667
  "mutable": false,
@@ -11,6 +11,7 @@ export class SdNumberInput {
11
11
  useDecimal = false;
12
12
  value = null;
13
13
  label;
14
+ labelWidth = '';
14
15
  addonLabel = '';
15
16
  placeholder = '입력해 주세요.';
16
17
  disabled = false;
@@ -270,12 +271,12 @@ export class SdNumberInput {
270
271
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
271
272
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
272
273
  };
273
- return (h("sd-field", { key: 'e05cc16f4dde4fd82d11a811b578723af2f5b092', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'db4f02b5f882acfe481698745ca374874643efbd', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'c83df0e915849792427b2f3609937bb0b62aae15', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'b7ea0704c9d114b5e1b8eca29a408efb5e532b7e', name: "minus", size: iconSize, color: this.isDecrementDisabled()
274
+ return (h("sd-field", { key: 'f81b01b27960130cbf6b37a29fc0ddc11750768e', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '0f9b5a0b966c7d51d5913c61a585ff789fa4973f', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'b037ee3062253bf229f9639dd04c7475657fabb6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '39a9f73a15008a481e758e663e027cd4f6454146', name: "minus", size: iconSize, color: this.isDecrementDisabled()
274
275
  ? NUMBER_INPUT_STEPPER.icon.disabled
275
- : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '57ed4229c30d52b6925ebaccd816cd8496ab60c0', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: 'b018a810ca085218beb7acbba0187543c8369236', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
276
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '050334ce25bb767e7f11dca886d4aeecaa1ed3dc', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: 'a72697d136eeee52ef23fee6ee2017b6dd37e54c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
276
277
  textAlign: this.useButton ? 'center' : 'right',
277
278
  ...this.inputStyle,
278
- } }), this.inputSuffix && (h("span", { key: '5db549a3cc81b98123cdec69b866b25d961f210f', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '8b0b8c4ba46cf1cc5fba21f7fa8c113ca215b265', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '77012f79ba5a3a5550af844149bb35fa1e165533', name: "add", size: iconSize, color: this.isIncrementDisabled()
279
+ } }), this.inputSuffix && (h("span", { key: '845202622b3377add18782d96d0af0c49caf95ec', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '208c976c1b755bec0cd7efb5ceacb3e07dce3a7d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'fe9848c8f044d01378dc183a80d3f81eb56a67f9', name: "add", size: iconSize, color: this.isIncrementDisabled()
279
280
  ? NUMBER_INPUT_STEPPER.icon.disabled
280
281
  : NUMBER_INPUT_STEPPER.icon.default }))))));
281
282
  }
@@ -458,6 +459,26 @@ export class SdNumberInput {
458
459
  "reflect": false,
459
460
  "attribute": "label"
460
461
  },
462
+ "labelWidth": {
463
+ "type": "any",
464
+ "mutable": false,
465
+ "complexType": {
466
+ "original": "string | number",
467
+ "resolved": "number | string",
468
+ "references": {}
469
+ },
470
+ "required": false,
471
+ "optional": false,
472
+ "docs": {
473
+ "tags": [],
474
+ "text": ""
475
+ },
476
+ "getter": false,
477
+ "setter": false,
478
+ "reflect": false,
479
+ "attribute": "label-width",
480
+ "defaultValue": "''"
481
+ },
461
482
  "addonLabel": {
462
483
  "type": "string",
463
484
  "mutable": false,
@@ -23,6 +23,7 @@ export class SdSelect extends BaseDropdownEvent {
23
23
  searchable = false;
24
24
  // props - label
25
25
  label = '';
26
+ labelWidth = '';
26
27
  addonLabel = '';
27
28
  icon = undefined;
28
29
  labelTooltip = '';
@@ -141,7 +142,7 @@ export class SdSelect extends BaseDropdownEvent {
141
142
  }
142
143
  };
143
144
  render() {
144
- return (h("sd-field", { key: '33f8a4e75ab20389213be5643f479b806e8e78c3', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '148f21e1a19cf4f4b9e61b4192d631d85dbc57a4', class: {
145
+ return (h("sd-field", { key: 'd96961fe4c425c3f0fcb1c2f438c8b70c510b632', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '0113ffb76ea79cbe3b77dff85d8186a5b994e7b6', class: {
145
146
  'sd-select': true,
146
147
  'sd-select--disabled': this.disabled,
147
148
  'sd-select--error': !!this.error,
@@ -400,6 +401,26 @@ export class SdSelect extends BaseDropdownEvent {
400
401
  "attribute": "label",
401
402
  "defaultValue": "''"
402
403
  },
404
+ "labelWidth": {
405
+ "type": "any",
406
+ "mutable": false,
407
+ "complexType": {
408
+ "original": "string | number",
409
+ "resolved": "number | string",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [],
416
+ "text": ""
417
+ },
418
+ "getter": false,
419
+ "setter": false,
420
+ "reflect": false,
421
+ "attribute": "label-width",
422
+ "defaultValue": "''"
423
+ },
403
424
  "addonLabel": {
404
425
  "type": "string",
405
426
  "mutable": false,
@@ -23,6 +23,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
23
23
  searchable = false;
24
24
  // props - label
25
25
  label = '';
26
+ labelWidth = '';
26
27
  addonLabel = '';
27
28
  icon = undefined;
28
29
  labelTooltip = '';
@@ -270,7 +271,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
270
271
  });
271
272
  }
272
273
  render() {
273
- return (h("sd-field", { key: 'b1b62a2e99fda1f0fbc4f8b3ede5af95a9ed09aa', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: '91f30fd84c70010030813f2d0cd9e86939e185d7', class: {
274
+ return (h("sd-field", { key: '1e6a0f9947f5d137bb65844fe666c07b4eefb2f7', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: '62dcd2f37c2eda0e51f2e77de36ece6ab592c4ce', class: {
274
275
  'sd-select-group': true,
275
276
  'sd-select-group--open': this.isOpen,
276
277
  'sd-select-group--disabled': this.disabled,
@@ -543,6 +544,26 @@ export class SdSelectGroup extends BaseDropdownEvent {
543
544
  "attribute": "label",
544
545
  "defaultValue": "''"
545
546
  },
547
+ "labelWidth": {
548
+ "type": "any",
549
+ "mutable": false,
550
+ "complexType": {
551
+ "original": "string | number",
552
+ "resolved": "number | string",
553
+ "references": {}
554
+ },
555
+ "required": false,
556
+ "optional": false,
557
+ "docs": {
558
+ "tags": [],
559
+ "text": ""
560
+ },
561
+ "getter": false,
562
+ "setter": false,
563
+ "reflect": false,
564
+ "attribute": "label-width",
565
+ "defaultValue": "''"
566
+ },
546
567
  "addonLabel": {
547
568
  "type": "string",
548
569
  "mutable": false,