@sellmate/design-system 1.0.25 → 1.0.27

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 (217) hide show
  1. package/dist/cjs/{component.button-C6xBMwHf.js → component.button-ASC_hRm6.js} +0 -7
  2. package/dist/cjs/design-system.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sd-badge.cjs.entry.js +29 -6
  5. package/dist/cjs/sd-button-v2.cjs.entry.js +5 -6
  6. package/dist/cjs/{sd-button-v2.config-BK45EPK_.js → sd-button-v2.config-DGJDtL6W.js} +1 -27
  7. package/dist/cjs/sd-button_21.cjs.entry.js +77 -50
  8. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -22
  11. package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
  12. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-guide.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-popover.cjs.entry.js +15 -2
  15. package/dist/cjs/sd-progress.cjs.entry.js +2 -2
  16. package/dist/cjs/sd-radio-button-group.cjs.entry.js +1 -1
  17. package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
  18. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
  19. package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
  20. package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
  21. package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
  22. package/dist/cjs/sd-tag.cjs.entry.js +104 -35
  23. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  24. package/dist/cjs/sd-toggle-button.cjs.entry.js +1 -1
  25. package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
  26. package/dist/collection/collection-manifest.json +2 -2
  27. package/dist/collection/components/sd-badge/sd-badge.config.js +12 -0
  28. package/dist/collection/components/sd-badge/sd-badge.css +5 -14
  29. package/dist/collection/components/sd-badge/sd-badge.js +15 -29
  30. package/dist/collection/components/sd-button-v2/sd-button-v2.config.js +0 -24
  31. package/dist/collection/components/sd-button-v2/sd-button-v2.css +6 -5
  32. package/dist/collection/components/sd-button-v2/sd-button-v2.js +4 -5
  33. package/dist/collection/components/sd-card/sd-card.js +1 -1
  34. package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
  35. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
  36. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +1 -10
  37. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +9 -5
  38. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -9
  39. package/dist/collection/components/sd-field/sd-field.js +5 -5
  40. package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
  41. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +52 -28
  42. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  43. package/dist/collection/components/sd-form/sd-form.js +1 -1
  44. package/dist/collection/components/sd-guide/sd-guide.js +2 -2
  45. package/dist/collection/components/sd-icon/sd-icon.js +1 -1
  46. package/dist/collection/components/sd-input/sd-input.js +3 -3
  47. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
  48. package/dist/collection/components/sd-modal-card/sd-modal-card.js +1 -1
  49. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  50. package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
  51. package/dist/collection/components/sd-popover/sd-popover.js +6 -2
  52. package/dist/collection/components/sd-portal/sd-portal.js +11 -10
  53. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  54. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  55. package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js +1 -1
  56. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  57. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
  58. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  59. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  60. package/dist/collection/components/sd-select/sd-select.js +3 -3
  61. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
  62. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +3 -3
  63. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  64. package/dist/collection/components/sd-table/sd-table.js +4 -4
  65. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  66. package/dist/collection/components/sd-tag/sd-tag.config.js +35 -31
  67. package/dist/collection/components/sd-tag/sd-tag.css +1 -1
  68. package/dist/collection/components/sd-tag/sd-tag.js +6 -5
  69. package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
  70. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  71. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  72. package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
  73. package/dist/collection/components/sd-tooltip/sd-tooltip.config.js +7 -0
  74. package/dist/collection/components/sd-tooltip/sd-tooltip.js +21 -32
  75. package/dist/components/{p-Dc4UTGgQ.js → p-2CurSZ9q.js} +1 -1
  76. package/dist/components/{p-CAZeEBeS.js → p-BDPJKxrr.js} +1 -1
  77. package/dist/components/{p-D9mJxIjm.js → p-BFVe-fGw.js} +1 -1
  78. package/dist/components/{p-DYoNy5I7.js → p-BVIzG0vO.js} +1 -1
  79. package/dist/components/p-BZt0PSLv.js +1 -0
  80. package/dist/components/{p-2FdkYfts.js → p-CGgmrFwF.js} +1 -1
  81. package/dist/components/p-COsw7PE1.js +1 -0
  82. package/dist/components/{p-CdCMe4bN.js → p-CS4tniB3.js} +1 -1
  83. package/dist/components/{p-CwM24aVj.js → p-CZLePSDf.js} +1 -1
  84. package/dist/components/{p-B1o7vc2v.js → p-CgilbV-B.js} +1 -1
  85. package/dist/components/{p-DUqcOPNn.js → p-CquSJNHV.js} +1 -1
  86. package/dist/components/{p-CzHa12Ax.js → p-D4eRE9J1.js} +1 -1
  87. package/dist/components/{p-BxXKe48B.js → p-DNQE5SAA.js} +1 -1
  88. package/dist/components/{p-G4t0nGLP.js → p-DfhTm5zs.js} +1 -1
  89. package/dist/components/p-DghTuouQ.js +1 -0
  90. package/dist/components/{p-Czq-8oT7.js → p-DtNd46kD.js} +1 -1
  91. package/dist/components/p-DuzMehmA.js +1 -0
  92. package/dist/components/p-fvvA-prd.js +1 -0
  93. package/dist/components/{p-BKTfQGcR.js → p-kyuN077y.js} +1 -1
  94. package/dist/components/p-wt_xdZCl.js +1 -0
  95. package/dist/components/sd-badge.js +1 -1
  96. package/dist/components/sd-button-v2.js +1 -1
  97. package/dist/components/sd-button.js +1 -1
  98. package/dist/components/sd-card.js +1 -1
  99. package/dist/components/sd-checkbox.js +1 -1
  100. package/dist/components/sd-date-picker.js +1 -1
  101. package/dist/components/sd-date-range-picker.js +1 -1
  102. package/dist/components/sd-dropdown-button.js +1 -1
  103. package/dist/components/sd-field.js +1 -1
  104. package/dist/components/sd-file-picker.js +1 -1
  105. package/dist/components/sd-floating-portal.js +1 -1
  106. package/dist/components/sd-form.js +1 -1
  107. package/dist/components/sd-guide.js +1 -1
  108. package/dist/components/sd-icon.js +1 -1
  109. package/dist/components/sd-input.js +1 -1
  110. package/dist/components/sd-loading-spinner.js +1 -1
  111. package/dist/components/sd-modal-card.js +1 -1
  112. package/dist/components/sd-number-input.js +1 -1
  113. package/dist/components/sd-pagination.js +1 -1
  114. package/dist/components/sd-popover.js +1 -1
  115. package/dist/components/sd-portal.js +1 -1
  116. package/dist/components/sd-progress.js +1 -1
  117. package/dist/components/sd-radio-button-group.js +1 -1
  118. package/dist/components/sd-radio-group.js +1 -1
  119. package/dist/components/sd-radio.js +1 -1
  120. package/dist/components/sd-select-dropdown.js +1 -1
  121. package/dist/components/sd-select-multiple-group.js +1 -1
  122. package/dist/components/sd-select-multiple.js +1 -1
  123. package/dist/components/sd-select-option-group.js +1 -1
  124. package/dist/components/sd-select-option.js +1 -1
  125. package/dist/components/sd-select-search-input.js +1 -1
  126. package/dist/components/sd-select.js +1 -1
  127. package/dist/components/sd-table.js +1 -1
  128. package/dist/components/sd-tabs.js +1 -1
  129. package/dist/components/sd-tag.js +1 -1
  130. package/dist/components/sd-textarea.js +1 -1
  131. package/dist/components/sd-toast.js +1 -1
  132. package/dist/components/sd-toggle-button.js +1 -1
  133. package/dist/components/sd-toggle.js +1 -1
  134. package/dist/components/sd-tooltip.js +1 -1
  135. package/dist/design-system/design-system.css +1 -1
  136. package/dist/design-system/design-system.esm.js +1 -1
  137. package/dist/design-system/{p-c0655cd1.entry.js → p-141f5a74.entry.js} +1 -1
  138. package/dist/design-system/{p-e6d84ecf.entry.js → p-19805249.entry.js} +1 -1
  139. package/dist/design-system/{p-Dc4UTGgQ.js → p-2CurSZ9q.js} +1 -1
  140. package/dist/design-system/p-37e9e161.entry.js +1 -0
  141. package/dist/design-system/{p-1b80635f.entry.js → p-3d91bd65.entry.js} +1 -1
  142. package/dist/design-system/{p-5094848f.entry.js → p-58e3bd95.entry.js} +1 -1
  143. package/dist/design-system/{p-02c5ab69.entry.js → p-5ef7ff34.entry.js} +1 -1
  144. package/dist/design-system/{p-83f320e6.entry.js → p-680c5afb.entry.js} +1 -1
  145. package/dist/design-system/p-73362d34.entry.js +1 -0
  146. package/dist/design-system/p-73d29523.entry.js +1 -0
  147. package/dist/design-system/{p-3565f871.entry.js → p-7801d0bb.entry.js} +1 -1
  148. package/dist/design-system/p-8be27d6e.entry.js +1 -0
  149. package/dist/design-system/p-995f2846.entry.js +1 -0
  150. package/dist/design-system/{p-DUqcOPNn.js → p-CquSJNHV.js} +1 -1
  151. package/dist/design-system/p-DuzMehmA.js +1 -0
  152. package/dist/design-system/{p-ea26b8e9.entry.js → p-a493d89a.entry.js} +1 -1
  153. package/dist/design-system/{p-8b013328.entry.js → p-a7815753.entry.js} +1 -1
  154. package/dist/design-system/{p-712c1ef1.entry.js → p-b9f3d804.entry.js} +1 -1
  155. package/dist/design-system/p-c32943cf.entry.js +1 -0
  156. package/dist/design-system/p-ce410fca.entry.js +1 -0
  157. package/dist/design-system/p-d8b04e91.entry.js +1 -0
  158. package/dist/design-system/{p-df3d3a2a.entry.js → p-e711ab13.entry.js} +1 -1
  159. package/dist/design-system/{p-5032c700.entry.js → p-e9040a63.entry.js} +1 -1
  160. package/dist/design-system/{p-f1b31194.entry.js → p-e9bd0893.entry.js} +1 -1
  161. package/dist/esm/{component.button-Dc4UTGgQ.js → component.button-2CurSZ9q.js} +0 -7
  162. package/dist/esm/design-system.js +1 -1
  163. package/dist/esm/loader.js +1 -1
  164. package/dist/esm/sd-badge.entry.js +29 -6
  165. package/dist/esm/{sd-button-v2.config-BWmcscrt.js → sd-button-v2.config-FpT7FqlI.js} +2 -27
  166. package/dist/esm/sd-button-v2.entry.js +5 -6
  167. package/dist/esm/sd-button_21.entry.js +77 -50
  168. package/dist/esm/sd-card.entry.js +1 -1
  169. package/dist/esm/sd-date-picker.entry.js +1 -1
  170. package/dist/esm/sd-dropdown-button.entry.js +7 -22
  171. package/dist/esm/sd-file-picker.entry.js +3 -3
  172. package/dist/esm/sd-form.entry.js +1 -1
  173. package/dist/esm/sd-guide.entry.js +2 -2
  174. package/dist/esm/sd-popover.entry.js +15 -2
  175. package/dist/esm/sd-progress.entry.js +2 -2
  176. package/dist/esm/sd-radio-button-group.entry.js +1 -1
  177. package/dist/esm/sd-radio-group.entry.js +1 -1
  178. package/dist/esm/sd-select-multiple-group.entry.js +1 -1
  179. package/dist/esm/sd-select-multiple.entry.js +1 -1
  180. package/dist/esm/sd-select-option-group.entry.js +3 -3
  181. package/dist/esm/sd-tabs.entry.js +1 -1
  182. package/dist/esm/sd-tag.entry.js +104 -35
  183. package/dist/esm/sd-toast.entry.js +3 -3
  184. package/dist/esm/sd-toggle-button.entry.js +1 -1
  185. package/dist/esm/sd-toggle.entry.js +1 -1
  186. package/dist/types/components/sd-badge/sd-badge.config.d.ts +3 -0
  187. package/dist/types/components/sd-badge/sd-badge.d.ts +2 -2
  188. package/dist/types/components/sd-button-v2/sd-button-v2.config.d.ts +0 -23
  189. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +1 -4
  190. package/dist/types/components/sd-field/sd-field.d.ts +1 -1
  191. package/dist/types/components/sd-input/sd-input.d.ts +1 -1
  192. package/dist/types/components/sd-select/sd-select.d.ts +1 -1
  193. package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +1 -1
  194. package/dist/types/components/sd-tag/sd-tag.config.d.ts +2 -1
  195. package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +18 -0
  196. package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +2 -15
  197. package/dist/types/components.d.ts +18 -34
  198. package/hydrate/index.js +384 -301
  199. package/hydrate/index.mjs +384 -301
  200. package/package.json +1 -1
  201. package/dist/components/p-BFO8hHjW.js +0 -1
  202. package/dist/components/p-CDzGasXW.js +0 -1
  203. package/dist/components/p-CVvYLd5J.js +0 -1
  204. package/dist/components/p-Dun2lZmi.js +0 -1
  205. package/dist/components/p-NAapFxTw.js +0 -1
  206. package/dist/components/p-VKF2AWs1.js +0 -1
  207. package/dist/design-system/p-285cc646.entry.js +0 -1
  208. package/dist/design-system/p-59a52297.entry.js +0 -1
  209. package/dist/design-system/p-9563ffe1.entry.js +0 -1
  210. package/dist/design-system/p-VKF2AWs1.js +0 -1
  211. package/dist/design-system/p-b1e45f3f.entry.js +0 -1
  212. package/dist/design-system/p-d8a141e7.entry.js +0 -1
  213. package/dist/design-system/p-e7d7ceb4.entry.js +0 -1
  214. package/dist/design-system/p-efd52bd3.entry.js +0 -1
  215. package/dist/design-system/p-f81d3798.entry.js +0 -1
  216. package/dist/cjs/{resolveColor-4RlaGD62.js → resolveColor-Di1RNekE.js} +2 -2
  217. package/dist/esm/{resolveColor-DUqcOPNn.js → resolveColor-CquSJNHV.js} +2 -2
@@ -17,11 +17,6 @@ export declare const BUTTON_CONFIG: {
17
17
  readonly size: "xs";
18
18
  readonly color: string;
19
19
  };
20
- readonly neutral_xs: {
21
- readonly variant: "primary";
22
- readonly size: "xs";
23
- readonly color: string;
24
- };
25
20
  readonly neutral_outline_xs: {
26
21
  readonly variant: "outline";
27
22
  readonly size: "xs";
@@ -52,11 +47,6 @@ export declare const BUTTON_CONFIG: {
52
47
  readonly size: "sm";
53
48
  readonly color: string;
54
49
  };
55
- readonly neutral_sm: {
56
- readonly variant: "primary";
57
- readonly size: "sm";
58
- readonly color: string;
59
- };
60
50
  readonly neutral_outline_sm: {
61
51
  readonly variant: "outline";
62
52
  readonly size: "sm";
@@ -87,11 +77,6 @@ export declare const BUTTON_CONFIG: {
87
77
  readonly size: "md";
88
78
  readonly color: string;
89
79
  };
90
- readonly neutral_md: {
91
- readonly variant: "primary";
92
- readonly size: "md";
93
- readonly color: string;
94
- };
95
80
  readonly neutral_outline_md: {
96
81
  readonly variant: "outline";
97
82
  readonly size: "md";
@@ -122,11 +107,6 @@ export declare const BUTTON_CONFIG: {
122
107
  readonly size: "lg";
123
108
  readonly color: string;
124
109
  };
125
- readonly neutral_lg: {
126
- readonly variant: "primary";
127
- readonly size: "lg";
128
- readonly color: string;
129
- };
130
110
  readonly neutral_outline_lg: {
131
111
  readonly variant: "outline";
132
112
  readonly size: "lg";
@@ -149,7 +129,6 @@ export declare const PRESET_HOVER_BACKGROUNDS: {
149
129
  readonly primary: string;
150
130
  readonly secondary: string;
151
131
  readonly primary_outline: string;
152
- readonly neutral: string;
153
132
  readonly neutral_outline: string;
154
133
  readonly danger: string;
155
134
  readonly danger_outline: string;
@@ -158,7 +137,6 @@ export declare const PRESET_CONTENT_COLORS: {
158
137
  readonly primary: string;
159
138
  readonly secondary: string;
160
139
  readonly primary_outline: string;
161
- readonly neutral: string;
162
140
  readonly neutral_outline: string;
163
141
  readonly danger: string;
164
142
  readonly danger_outline: string;
@@ -167,7 +145,6 @@ export declare const PRESET_BORDER_COLORS: {
167
145
  readonly primary: "transparent";
168
146
  readonly secondary: "transparent";
169
147
  readonly primary_outline: string;
170
- readonly neutral: "transparent";
171
148
  readonly neutral_outline: string;
172
149
  readonly danger: "transparent";
173
150
  readonly danger_outline: string;
@@ -7,7 +7,7 @@ export interface DropdownButtonItem {
7
7
  }
8
8
  export type DropdownButtonValue = DropdownButtonItem['value'];
9
9
  export type DropdownButtonSize = 'xs' | 'sm' | 'md';
10
- type UnsupportedDropdownButtonName = 'neutral_xs' | 'neutral_sm' | 'neutral_md' | `${string}_lg`;
10
+ type UnsupportedDropdownButtonName = `${string}_lg`;
11
11
  export type DropdownButtonName = Exclude<ButtonV2Name, UnsupportedDropdownButtonName>;
12
12
  export type DropdownButtonPreset = ButtonV2Preset;
13
13
  export declare const DROPDOWN_BUTTON_CONFIG: Record<DropdownButtonName, {
@@ -20,7 +20,6 @@ export declare const PRESET_HOVER_BACKGROUNDS: {
20
20
  readonly primary: string;
21
21
  readonly secondary: string;
22
22
  readonly primary_outline: string;
23
- readonly neutral: string;
24
23
  readonly neutral_outline: string;
25
24
  readonly danger: string;
26
25
  readonly danger_outline: string;
@@ -29,7 +28,6 @@ export declare const PRESET_CONTENT_COLORS: {
29
28
  readonly primary: string;
30
29
  readonly secondary: string;
31
30
  readonly primary_outline: string;
32
- readonly neutral: string;
33
31
  readonly neutral_outline: string;
34
32
  readonly danger: string;
35
33
  readonly danger_outline: string;
@@ -38,7 +36,6 @@ export declare const PRESET_BORDER_COLORS: {
38
36
  readonly primary: "transparent";
39
37
  readonly secondary: "transparent";
40
38
  readonly primary_outline: string;
41
- readonly neutral: "transparent";
42
39
  readonly neutral_outline: string;
43
40
  readonly danger: "transparent";
44
41
  readonly danger_outline: string;
@@ -1,6 +1,6 @@
1
1
  import { ValidatableField } from '../sd-form/sd-form';
2
2
  import { Rule } from '../../types/form';
3
- import { SdTooltipProps } from '../sd-tooltip/sd-tooltip';
3
+ import { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
4
4
  export declare class SdField implements ValidatableField {
5
5
  el: HTMLElement;
6
6
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Rule } from '../../types/form';
3
- import { SdTooltipProps } from '../sd-tooltip/sd-tooltip';
3
+ import { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
4
4
  export declare class SdInput {
5
5
  host: HTMLElement;
6
6
  value?: string | number | null;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { BaseDropdownEvent } from '../../utils/base-dropdown-event';
3
- import { SdTooltipProps } from '../sd-tooltip/sd-tooltip';
3
+ import { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
4
4
  import { Rule } from '../../components';
5
5
  export interface SelectOption {
6
6
  value: string | number;
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { BaseDropdownEvent } from '../../utils/base-dropdown-event';
3
3
  import { SelectMultipleEvents, SelectOption, SelectStyleProps } from '../sd-select/sd-select';
4
- import { SdTooltipProps } from '../sd-tooltip/sd-tooltip';
4
+ import { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
5
5
  import { Rule } from '../../components';
6
6
  export interface SelectOptionGroup extends SelectOption {
7
7
  type: 'group' | 'subgroup' | 'item' | 'all';
@@ -1,5 +1,5 @@
1
1
  export declare const TAG_SHAPES: readonly ["square", "pill"];
2
- export declare const TAG_SIZES: readonly ["sm", "md", "lg"];
2
+ export declare const TAG_SIZES: readonly ["xs", "sm", "md"];
3
3
  export declare const TAG_COLORS: readonly ["grey", "red", "orange", "yellow", "green", "blue", "darkblue", "indigo"];
4
4
  export type TagShape = (typeof TAG_SHAPES)[number];
5
5
  export type TagSize = (typeof TAG_SIZES)[number];
@@ -17,6 +17,7 @@ export declare const TAG_CONFIG: Record<TagName, {
17
17
  gap: string;
18
18
  fontSize: string;
19
19
  fontWeight: string;
20
+ lineHeight: string;
20
21
  iconSize: number;
21
22
  radius: string;
22
23
  }>;
@@ -0,0 +1,18 @@
1
+ import { ButtonSize, ButtonVariant } from '../sd-button/sd-button';
2
+ export type TooltipType = 'default' | 'danger' | 'warning' | 'accent';
3
+ export declare const TOOLTIP_TYPE_CONFIG: Record<TooltipType, {
4
+ bg: string;
5
+ content: string;
6
+ }>;
7
+ export interface SdTooltipProps {
8
+ trigger?: 'hover' | 'click';
9
+ placement?: 'top' | 'bottom' | 'left' | 'right';
10
+ color?: string;
11
+ tooltipType?: TooltipType;
12
+ icon?: IconName;
13
+ iconSize?: number;
14
+ label?: string;
15
+ buttonSize?: ButtonSize;
16
+ buttonVariant?: ButtonVariant;
17
+ noHover?: boolean;
18
+ }
@@ -1,30 +1,17 @@
1
1
  import { ButtonSize, ButtonVariant } from '../sd-button/sd-button';
2
- export interface SdTooltipProps {
3
- trigger?: 'hover' | 'click';
4
- placement?: 'top' | 'bottom' | 'left' | 'right';
5
- color?: string;
6
- type?: 'default' | 'caution' | 'notice' | 'accent';
7
- icon?: IconName;
8
- iconSize?: number;
9
- label?: string;
10
- buttonSize?: ButtonSize;
11
- buttonVariant?: ButtonVariant;
12
- noHover?: boolean;
13
- useClose?: boolean;
14
- }
2
+ import { type TooltipType } from './sd-tooltip.config';
15
3
  export declare class SdTooltip {
16
4
  el: HTMLElement;
17
5
  trigger: 'hover' | 'click';
18
6
  placement: 'top' | 'bottom' | 'left' | 'right';
19
7
  color: string;
20
- type: 'default' | 'caution' | 'notice' | 'accent';
8
+ tooltipType: TooltipType;
21
9
  icon: IconName;
22
10
  iconSize: number;
23
11
  label: string;
24
12
  buttonSize: ButtonSize;
25
13
  buttonVariant: ButtonVariant;
26
14
  noHover: boolean;
27
- useClose: boolean;
28
15
  showTooltip: boolean;
29
16
  slotContentHTML: string;
30
17
  private buttonEl?;
@@ -5,13 +5,14 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { BadgeColor } from "./components/sd-badge/sd-badge.config";
8
9
  import { ButtonSize, ButtonVariant } from "./components/sd-button/sd-button";
9
10
  import { ButtonV2Name, ButtonV2Type } from "./components/sd-button-v2/sd-button-v2.config";
10
11
  import { CheckedType } from "./components/sd-checkbox/sd-checkbox";
11
12
  import { Type } from "./components/sd-date-box/sd-date-box";
12
13
  import { DropdownButtonItem, DropdownButtonName, DropdownButtonValue } from "./components/sd-dropdown-button/sd-dropdown-button.config";
13
14
  import { Rule } from "./types/form";
14
- import { SdTooltipProps } from "./components/sd-tooltip/sd-tooltip";
15
+ import { SdTooltipProps, TooltipType } from "./components/sd-tooltip/sd-tooltip.config";
15
16
  import { ValidatableField } from "./components/sd-form/sd-form";
16
17
  import { Event } from "./stencil-public-runtime";
17
18
  import { SdModalCardButtonProps } from "./components/sd-modal-card/sd-modal-card";
@@ -29,13 +30,14 @@ import { Row, SdTableColumn } from "./components/sd-table/sd-table";
29
30
  import { TabOption } from "./components/sd-tabs/sd-tabs";
30
31
  import { TagName } from "./components/sd-tag/sd-tag.config";
31
32
  import { ToastType } from "./components/sd-toast/sd-toast";
33
+ export { BadgeColor } from "./components/sd-badge/sd-badge.config";
32
34
  export { ButtonSize, ButtonVariant } from "./components/sd-button/sd-button";
33
35
  export { ButtonV2Name, ButtonV2Type } from "./components/sd-button-v2/sd-button-v2.config";
34
36
  export { CheckedType } from "./components/sd-checkbox/sd-checkbox";
35
37
  export { Type } from "./components/sd-date-box/sd-date-box";
36
38
  export { DropdownButtonItem, DropdownButtonName, DropdownButtonValue } from "./components/sd-dropdown-button/sd-dropdown-button.config";
37
39
  export { Rule } from "./types/form";
38
- export { SdTooltipProps } from "./components/sd-tooltip/sd-tooltip";
40
+ export { SdTooltipProps, TooltipType } from "./components/sd-tooltip/sd-tooltip.config";
39
41
  export { ValidatableField } from "./components/sd-form/sd-form";
40
42
  export { Event } from "./stencil-public-runtime";
41
43
  export { SdModalCardButtonProps } from "./components/sd-modal-card/sd-modal-card";
@@ -56,17 +58,13 @@ export { ToastType } from "./components/sd-toast/sd-toast";
56
58
  export namespace Components {
57
59
  interface SdBadge {
58
60
  /**
59
- * @default 'brilliantblue_75'
61
+ * @default 'blue'
60
62
  */
61
- "color": string;
63
+ "color": BadgeColor;
62
64
  /**
63
65
  * @default ''
64
66
  */
65
67
  "label": string;
66
- /**
67
- * @default 'md'
68
- */
69
- "size": 'sm' | 'md';
70
68
  }
71
69
  interface SdButton {
72
70
  /**
@@ -1205,7 +1203,7 @@ export namespace Components {
1205
1203
  */
1206
1204
  "label": string;
1207
1205
  /**
1208
- * @default 'square_md_grey'
1206
+ * @default 'square_sm_grey'
1209
1207
  */
1210
1208
  "name": TagName;
1211
1209
  }
@@ -1312,18 +1310,14 @@ export namespace Components {
1312
1310
  * @default 'top'
1313
1311
  */
1314
1312
  "placement": 'top' | 'bottom' | 'left' | 'right';
1315
- /**
1316
- * @default 'hover'
1317
- */
1318
- "trigger": 'hover' | 'click';
1319
1313
  /**
1320
1314
  * @default 'default'
1321
1315
  */
1322
- "type": 'default' | 'caution' | 'notice' | 'accent';
1316
+ "tooltipType": TooltipType;
1323
1317
  /**
1324
- * @default false
1318
+ * @default 'hover'
1325
1319
  */
1326
- "useClose": boolean;
1320
+ "trigger": 'hover' | 'click';
1327
1321
  }
1328
1322
  }
1329
1323
  export interface SdButtonCustomEvent<T> extends CustomEvent<T> {
@@ -2119,17 +2113,13 @@ declare namespace LocalJSX {
2119
2113
 
2120
2114
  interface SdBadge {
2121
2115
  /**
2122
- * @default 'brilliantblue_75'
2116
+ * @default 'blue'
2123
2117
  */
2124
- "color"?: string;
2118
+ "color"?: BadgeColor;
2125
2119
  /**
2126
2120
  * @default ''
2127
2121
  */
2128
2122
  "label"?: string;
2129
- /**
2130
- * @default 'md'
2131
- */
2132
- "size"?: 'sm' | 'md';
2133
2123
  }
2134
2124
  interface SdButton {
2135
2125
  /**
@@ -3287,7 +3277,7 @@ declare namespace LocalJSX {
3287
3277
  */
3288
3278
  "label"?: string;
3289
3279
  /**
3290
- * @default 'square_md_grey'
3280
+ * @default 'square_sm_grey'
3291
3281
  */
3292
3282
  "name"?: TagName;
3293
3283
  }
@@ -3399,23 +3389,18 @@ declare namespace LocalJSX {
3399
3389
  * @default 'top'
3400
3390
  */
3401
3391
  "placement"?: 'top' | 'bottom' | 'left' | 'right';
3402
- /**
3403
- * @default 'hover'
3404
- */
3405
- "trigger"?: 'hover' | 'click';
3406
3392
  /**
3407
3393
  * @default 'default'
3408
3394
  */
3409
- "type"?: 'default' | 'caution' | 'notice' | 'accent';
3395
+ "tooltipType"?: TooltipType;
3410
3396
  /**
3411
- * @default false
3397
+ * @default 'hover'
3412
3398
  */
3413
- "useClose"?: boolean;
3399
+ "trigger"?: 'hover' | 'click';
3414
3400
  }
3415
3401
 
3416
3402
  interface SdBadgeAttributes {
3417
- "size": 'sm' | 'md';
3418
- "color": string;
3403
+ "color": BadgeColor;
3419
3404
  "label": string;
3420
3405
  }
3421
3406
  interface SdButtonAttributes {
@@ -3757,14 +3742,13 @@ declare namespace LocalJSX {
3757
3742
  "trigger": 'hover' | 'click';
3758
3743
  "placement": 'top' | 'bottom' | 'left' | 'right';
3759
3744
  "color": string;
3760
- "type": 'default' | 'caution' | 'notice' | 'accent';
3745
+ "tooltipType": TooltipType;
3761
3746
  "icon": IconName;
3762
3747
  "iconSize": number;
3763
3748
  "label": string;
3764
3749
  "buttonSize": ButtonSize;
3765
3750
  "buttonVariant": ButtonVariant;
3766
3751
  "noHover": boolean;
3767
- "useClose": boolean;
3768
3752
  }
3769
3753
 
3770
3754
  interface IntrinsicElements {