morya-ui 0.4.5 → 0.5.0

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 (145) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/dist/InputNumber-DjbXtTzR.js +245 -0
  3. package/dist/accordion/style.css +6 -15
  4. package/dist/affix/style.css +6 -15
  5. package/dist/alert/style.css +6 -15
  6. package/dist/anchor/style.css +6 -15
  7. package/dist/auto-complete/style.css +6 -15
  8. package/dist/avatar/style.css +6 -15
  9. package/dist/badge/style.css +6 -15
  10. package/dist/block-ui/style.css +6 -15
  11. package/dist/breadcrumb/style.css +6 -15
  12. package/dist/button/style.css +6 -15
  13. package/dist/calendar/style.css +6 -15
  14. package/dist/card/style.css +6 -15
  15. package/dist/carousel/style.css +6 -15
  16. package/dist/cascade-select/style.css +6 -15
  17. package/dist/checkbox/style.css +6 -15
  18. package/dist/chip/style.css +6 -15
  19. package/dist/color-picker/index.js +676 -0
  20. package/dist/{input-color → color-picker}/style.css +1406 -83
  21. package/dist/color-picker/style.js +8 -0
  22. package/dist/command-menu/style.css +6 -15
  23. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +41 -0
  24. package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
  25. package/dist/components/ColorPicker/colorUtils.d.ts +23 -0
  26. package/dist/components/ColorPicker/colorUtils.d.ts.map +1 -0
  27. package/dist/components/ColorPicker/gradientUtils.d.ts +9 -0
  28. package/dist/components/ColorPicker/gradientUtils.d.ts.map +1 -0
  29. package/dist/components/ColorPicker/index.d.ts +3 -0
  30. package/dist/components/ColorPicker/index.d.ts.map +1 -0
  31. package/dist/components/ColorPicker/styles.css +405 -0
  32. package/dist/components/ColorPicker/types.d.ts +60 -0
  33. package/dist/components/ColorPicker/types.d.ts.map +1 -0
  34. package/dist/components/ContextMenu/styles.css +1 -1
  35. package/dist/components/Dropdown/styles.css +1 -1
  36. package/dist/components/InputNumber/styles.css +28 -10
  37. package/dist/components/Menubar/styles.css +1 -1
  38. package/dist/components/TieredMenu/styles.css +2 -2
  39. package/dist/config-provider/style.css +6 -15
  40. package/dist/confirm-dialog/style.css +6 -15
  41. package/dist/confirm-popup/style.css +6 -15
  42. package/dist/context-menu/style.css +7 -16
  43. package/dist/data-view/style.css +6 -15
  44. package/dist/date-picker/style.css +6 -15
  45. package/dist/descriptions/style.css +6 -15
  46. package/dist/dialog/style.css +6 -15
  47. package/dist/divider/style.css +6 -15
  48. package/dist/dock/style.css +6 -15
  49. package/dist/drawer/style.css +6 -15
  50. package/dist/dropdown/style.css +7 -16
  51. package/dist/empty/style.css +6 -15
  52. package/dist/fieldset/style.css +6 -15
  53. package/dist/file-upload/style.css +6 -15
  54. package/dist/flex/style.css +6 -15
  55. package/dist/float-label/style.css +6 -15
  56. package/dist/fluid/style.css +6 -15
  57. package/dist/form/style.css +6 -15
  58. package/dist/gallery/style.css +6 -15
  59. package/dist/grid/style.css +6 -15
  60. package/dist/icon/style.css +6 -15
  61. package/dist/icon-field/style.css +6 -15
  62. package/dist/image/style.css +6 -15
  63. package/dist/index.d.ts +2 -2
  64. package/dist/index.d.ts.map +1 -1
  65. package/dist/index.js +1975 -1421
  66. package/dist/inplace/style.css +6 -15
  67. package/dist/input/style.css +6 -15
  68. package/dist/input-group/style.css +6 -15
  69. package/dist/input-number/index.js +2 -245
  70. package/dist/input-number/style.css +34 -25
  71. package/dist/input-otp/style.css +6 -15
  72. package/dist/input-password/style.css +6 -15
  73. package/dist/input-tags/style.css +6 -15
  74. package/dist/knob/style.css +6 -15
  75. package/dist/label/style.css +6 -15
  76. package/dist/layout/style.css +6 -15
  77. package/dist/list/style.css +6 -15
  78. package/dist/listbox/style.css +6 -15
  79. package/dist/loading/style.css +6 -15
  80. package/dist/mega-menu/style.css +6 -15
  81. package/dist/mentions/style.css +6 -15
  82. package/dist/menu/style.css +6 -15
  83. package/dist/menubar/index.js +1 -1
  84. package/dist/menubar/style.css +7 -16
  85. package/dist/message/style.css +6 -15
  86. package/dist/meter-group/style.css +6 -15
  87. package/dist/order-list/style.css +6 -15
  88. package/dist/page/style.css +6 -15
  89. package/dist/pagination/style.css +6 -15
  90. package/dist/panel/style.css +6 -15
  91. package/dist/pick-list/style.css +6 -15
  92. package/dist/popover/style.css +6 -15
  93. package/dist/progress-bar/style.css +6 -15
  94. package/dist/progress-spinner/style.css +6 -15
  95. package/dist/qr-code/style.css +6 -15
  96. package/dist/radio/style.css +6 -15
  97. package/dist/rating/style.css +6 -15
  98. package/dist/resolver.js +1 -1
  99. package/dist/result/style.css +6 -15
  100. package/dist/scroll-top/style.css +6 -15
  101. package/dist/scrollbar/style.css +6 -15
  102. package/dist/segmented/style.css +6 -15
  103. package/dist/select/style.css +6 -15
  104. package/dist/select-button/style.css +6 -15
  105. package/dist/sidebar/style.css +6 -15
  106. package/dist/skeleton/style.css +6 -15
  107. package/dist/slider/style.css +6 -15
  108. package/dist/space/style.css +6 -15
  109. package/dist/speed-dial/style.css +6 -15
  110. package/dist/split-button/style.css +6 -15
  111. package/dist/splitter/style.css +6 -15
  112. package/dist/statistic/style.css +6 -15
  113. package/dist/status/style.css +6 -15
  114. package/dist/stepper/style.css +6 -15
  115. package/dist/styles/base.css +6 -15
  116. package/dist/styles.css +1 -1
  117. package/dist/switch/style.css +6 -15
  118. package/dist/table/style.css +6 -15
  119. package/dist/tabs/style.css +6 -15
  120. package/dist/tag/style.css +6 -15
  121. package/dist/terminal/style.css +6 -15
  122. package/dist/textarea/style.css +6 -15
  123. package/dist/tiered-menu/style.css +8 -17
  124. package/dist/time-picker/style.css +6 -15
  125. package/dist/timeline/style.css +6 -15
  126. package/dist/toast/style.css +6 -15
  127. package/dist/toggle-button/style.css +6 -15
  128. package/dist/toolbar/style.css +6 -15
  129. package/dist/tooltip/style.css +6 -15
  130. package/dist/tour/style.css +6 -15
  131. package/dist/tree/style.css +6 -15
  132. package/dist/tree-select/style.css +6 -15
  133. package/dist/typography/style.css +6 -15
  134. package/dist/virtual-scroller/style.css +6 -15
  135. package/dist/watermark/style.css +6 -15
  136. package/package.json +8 -8
  137. package/dist/components/InputColor/InputColor.vue.d.ts +0 -24
  138. package/dist/components/InputColor/InputColor.vue.d.ts.map +0 -1
  139. package/dist/components/InputColor/index.d.ts +0 -3
  140. package/dist/components/InputColor/index.d.ts.map +0 -1
  141. package/dist/components/InputColor/styles.css +0 -139
  142. package/dist/components/InputColor/types.d.ts +0 -19
  143. package/dist/components/InputColor/types.d.ts.map +0 -1
  144. package/dist/input-color/index.js +0 -118
  145. package/dist/input-color/style.js +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # morya-ui
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### 新功能
6
+
7
+ - update component import map and styles
8
+ - add gradient support with draggable stops
9
+ - remove InputColor component (replaced by ColorPicker)
10
+
11
+ ### 文档
12
+
13
+ - add Methods section (open/close/toggle)
14
+ - remove external library references and InputColor mentions
15
+
16
+ ### 变更
17
+
18
+ - enhance button styling and layout for right-stacked configuration
19
+
3
20
  ## 0.4.5
4
21
 
5
22
  ### 新功能
@@ -7,7 +24,7 @@
7
24
  - add disabled, v-model:selection, top/bottom buttons, drag preview, drop indicator, flip animation
8
25
  - scale size across panel, center cells, stretch fluid calendar, add time column headers
9
26
  - add moveTop, moveBottom, hour, minute, second, today messages
10
- - align control size tokens with ant design (small 8px, medium 12px, large 16px font)
27
+ - align control size tokens with design system (small 8px, medium 12px, large 16px font)
11
28
  - add panel mode cycling, multiple selection and input mask
12
29
  - add needConfirm and shortcut active state
13
30
  - add status, today ring, footer and cell slots
@@ -765,7 +782,7 @@
765
782
  ### 组件(88 个)
766
783
 
767
784
  - **基础**:Button、ButtonGroup、Icon、Avatar、AvatarGroup、Badge、Chip、Tag、Divider、Skeleton、ProgressBar、ProgressSpinner、BlockUI、ScrollTop
768
- - **表单**:Input、Textarea、InputNumber、InputPassword、InputOtp、InputTags、InputColor、InputGroup、InputGroupAddon、IconField、FloatLabel、Label、Checkbox、CheckboxGroup、Radio、RadioGroup、Switch、Select、SelectButton、ToggleButton、Slider、Knob、Rating、DatePicker、AutoComplete、CascadeSelect、TreeSelect、FileUpload、Form、FormItem
785
+ - **表单**:Input、Textarea、InputNumber、InputPassword、InputOtp、InputTags、ColorPicker、InputGroup、InputGroupAddon、IconField、FloatLabel、Label、Checkbox、CheckboxGroup、Radio、RadioGroup、Switch、Select、SelectButton、ToggleButton、Slider、Knob、Rating、DatePicker、AutoComplete、CascadeSelect、TreeSelect、FileUpload、Form、FormItem
769
786
  - **浮层与对话框**:Dialog、Drawer、Popover、Tooltip、ConfirmDialog、ConfirmPopup、ContextMenu、Dropdown、SplitButton、SpeedDial
770
787
  - **数据展示**:Table、Tree、TreeTable、TreeSelect、DataView、VirtualScroller、Timeline、MeterGroup、Terminal、Gallery、Carousel、Inplace
771
788
  - **导航与菜单**:Menu、Menubar、MegaMenu、TieredMenu、Breadcrumb、Tabs、Stepper、Pagination、CommandMenu、Dock、Sidebar
@@ -0,0 +1,245 @@
1
+ import { i as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./useFieldFeedback-C5qIqYMK.js";
3
+ import { t as n } from "./useMId-BXFYayPP.js";
4
+ import { t as r } from "./Icon-CmHjx7W8.js";
5
+ import { o as i } from "./config-Cd20zAyW.js";
6
+ import { n as a } from "./locale-BcxMPufl.js";
7
+ import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y, watch as b } from "vue";
8
+ //#region src/components/InputNumber/InputNumber.vue?vue&type=script&setup=true&lang.ts
9
+ var x = ["for"], S = ["aria-label", "disabled"], C = { class: "m-inputnumber__input-wrap" }, w = {
10
+ key: 0,
11
+ class: "m-inputnumber__prefix"
12
+ }, T = [
13
+ "id",
14
+ "value",
15
+ "placeholder",
16
+ "name",
17
+ "autofocus",
18
+ "disabled",
19
+ "readonly",
20
+ "aria-invalid",
21
+ "aria-describedby"
22
+ ], E = {
23
+ key: 1,
24
+ class: "m-inputnumber__suffix"
25
+ }, D = ["aria-label"], O = {
26
+ key: 1,
27
+ class: "m-inputnumber__stack"
28
+ }, ee = ["aria-label", "disabled"], te = ["aria-label", "disabled"], ne = ["aria-label", "disabled"], k = ["id", "role"], A = /* @__PURE__ */ d({
29
+ inheritAttrs: !1,
30
+ __name: "InputNumber",
31
+ props: {
32
+ modelValue: { default: null },
33
+ label: {},
34
+ min: {},
35
+ max: {},
36
+ step: { default: 1 },
37
+ precision: {},
38
+ disabled: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ readonly: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ invalid: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ helpText: {},
51
+ errorMessage: {},
52
+ fluid: {
53
+ type: Boolean,
54
+ default: !1
55
+ },
56
+ size: {},
57
+ showButtons: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ buttonPlacement: { default: "both" },
62
+ clearable: {
63
+ type: Boolean,
64
+ default: !1
65
+ },
66
+ id: {},
67
+ pt: {},
68
+ name: {},
69
+ autofocus: { type: Boolean },
70
+ placeholder: {}
71
+ },
72
+ emits: [
73
+ "update:modelValue",
74
+ "focus",
75
+ "blur",
76
+ "change"
77
+ ],
78
+ setup(d, { expose: A, emit: j }) {
79
+ let M = d, N = j, P = y(), { rootAttrs: F, controlAttrs: I } = e(P, () => M.pt), L = a(), R = h(null), z = n("m-inputnumber"), B = o(() => M.id ?? z), V = i("InputNumber", () => M.size), { isInvalid: H, feedbackText: U, feedbackIsError: W } = t(M), G = o(() => M.clearable && M.modelValue != null && !M.disabled), K = o(() => [
80
+ "m-inputnumber",
81
+ `m-inputnumber--${V.value}`,
82
+ {
83
+ "m-inputnumber--fluid": M.fluid,
84
+ "m-inputnumber--invalid": H.value,
85
+ "m-inputnumber--disabled": M.disabled,
86
+ "m-inputnumber--buttons": M.showButtons,
87
+ "m-inputnumber--buttons-right": M.showButtons && M.buttonPlacement === "right"
88
+ }
89
+ ]);
90
+ function q(e) {
91
+ if (M.precision == null) return e;
92
+ let t = 10 ** M.precision;
93
+ return Math.round(e * t) / t;
94
+ }
95
+ function J(e) {
96
+ let t = q(e);
97
+ return M.min != null && t < M.min && (t = M.min), M.max != null && t > M.max && (t = M.max), t;
98
+ }
99
+ function Y(e) {
100
+ let t = e.trim();
101
+ if (t === "" || t === "-" || t === "+" || t === ".") return null;
102
+ let n = Number(t);
103
+ return Number.isNaN(n) ? null : J(n);
104
+ }
105
+ let X = h(null), re = o(() => X.value ?? (M.modelValue == null ? "" : String(M.modelValue)));
106
+ b(() => M.modelValue, (e) => {
107
+ X.value != null && ((e == null ? X.value.trim() === "" : Number(X.value) === e) || (X.value = null));
108
+ });
109
+ function ie(e) {
110
+ if (M.disabled) return;
111
+ let t = e.target.value;
112
+ X.value = t;
113
+ let n = t.trim();
114
+ if (n === "") {
115
+ N("update:modelValue", null);
116
+ return;
117
+ }
118
+ let r = Number(n);
119
+ Number.isNaN(r) || /[.e+-]$/i.test(n) || N("update:modelValue", q(r));
120
+ }
121
+ function Z() {
122
+ if (M.disabled || X.value == null) return;
123
+ let e = Y(X.value);
124
+ N("update:modelValue", e), X.value = e == null ? "" : String(e);
125
+ }
126
+ function ae(e) {
127
+ e.key === "Enter" && Z();
128
+ }
129
+ function Q(e) {
130
+ if (M.disabled) return;
131
+ let t = M.modelValue ?? M.min ?? 0;
132
+ X.value = null, N("update:modelValue", J(t + e * M.step));
133
+ }
134
+ function oe() {
135
+ M.disabled || (X.value = null, N("update:modelValue", null));
136
+ }
137
+ function se() {
138
+ R.value?.focus();
139
+ }
140
+ function ce() {
141
+ R.value?.blur();
142
+ }
143
+ function le() {
144
+ R.value?.select();
145
+ }
146
+ function $(e) {
147
+ Z(), N("blur", e), N("change", M.modelValue);
148
+ }
149
+ return A({
150
+ focus: se,
151
+ blur: ce,
152
+ select: le
153
+ }), (e, t) => (m(), c("div", f(v(F), { class: ["m-inputnumber-field", { "m-inputnumber-field--fluid": d.fluid }] }), [
154
+ d.label ? (m(), c("label", {
155
+ key: 0,
156
+ class: "m-inputnumber-field__label",
157
+ for: B.value
158
+ }, _(d.label), 9, x)) : s("", !0),
159
+ l("div", { class: p(K.value) }, [
160
+ d.showButtons && d.buttonPlacement === "both" ? (m(), c("button", {
161
+ key: 0,
162
+ class: "m-inputnumber__button m-inputnumber__button--decrement",
163
+ type: "button",
164
+ "aria-label": v(L).decrease,
165
+ disabled: d.disabled || d.min != null && d.modelValue != null && d.modelValue <= d.min,
166
+ onClick: t[0] ||= (e) => Q(-1)
167
+ }, [u(r, {
168
+ name: "minus",
169
+ size: "sm"
170
+ })], 8, S)) : s("", !0),
171
+ l("div", C, [
172
+ e.$slots.prefix ? (m(), c("span", w, [g(e.$slots, "prefix")])) : s("", !0),
173
+ l("input", f(v(I), {
174
+ id: B.value,
175
+ ref_key: "inputElement",
176
+ ref: R,
177
+ class: "m-inputnumber__input",
178
+ type: "text",
179
+ inputmode: "decimal",
180
+ value: re.value,
181
+ placeholder: d.placeholder,
182
+ name: d.name,
183
+ autofocus: d.autofocus || void 0,
184
+ disabled: d.disabled,
185
+ readonly: d.readonly,
186
+ "aria-invalid": v(H) || void 0,
187
+ "aria-describedby": v(U) ? `${B.value}-help` : void 0,
188
+ onInput: ie,
189
+ onFocus: t[1] ||= (e) => N("focus", e),
190
+ onBlur: $,
191
+ onKeydown: ae
192
+ }), null, 16, T),
193
+ e.$slots.suffix ? (m(), c("span", E, [g(e.$slots, "suffix")])) : s("", !0),
194
+ G.value ? (m(), c("button", {
195
+ key: 2,
196
+ type: "button",
197
+ class: "m-inputnumber__clear",
198
+ "aria-label": v(L).clearInput,
199
+ onClick: oe
200
+ }, [u(r, {
201
+ name: "close",
202
+ size: "sm"
203
+ })], 8, D)) : s("", !0)
204
+ ]),
205
+ d.showButtons && d.buttonPlacement === "right" ? (m(), c("div", O, [l("button", {
206
+ class: "m-inputnumber__button m-inputnumber__button--increment",
207
+ type: "button",
208
+ "aria-label": v(L).increase,
209
+ disabled: d.disabled || d.max != null && d.modelValue != null && d.modelValue >= d.max,
210
+ onClick: t[2] ||= (e) => Q(1)
211
+ }, [u(r, {
212
+ name: "plus",
213
+ size: "sm"
214
+ })], 8, ee), l("button", {
215
+ class: "m-inputnumber__button m-inputnumber__button--decrement",
216
+ type: "button",
217
+ "aria-label": v(L).decrease,
218
+ disabled: d.disabled || d.min != null && d.modelValue != null && d.modelValue <= d.min,
219
+ onClick: t[3] ||= (e) => Q(-1)
220
+ }, [u(r, {
221
+ name: "minus",
222
+ size: "sm"
223
+ })], 8, te)])) : d.showButtons ? (m(), c("button", {
224
+ key: 2,
225
+ class: "m-inputnumber__button m-inputnumber__button--increment",
226
+ type: "button",
227
+ "aria-label": v(L).increase,
228
+ disabled: d.disabled || d.max != null && d.modelValue != null && d.modelValue >= d.max,
229
+ onClick: t[4] ||= (e) => Q(1)
230
+ }, [u(r, {
231
+ name: "plus",
232
+ size: "sm"
233
+ })], 8, ne)) : s("", !0)
234
+ ], 2),
235
+ v(U) ? (m(), c("span", {
236
+ key: 1,
237
+ id: `${B.value}-help`,
238
+ class: p(["m-inputnumber-field__help", { "m-inputnumber-field__help--invalid": v(W) }]),
239
+ role: v(W) ? "alert" : void 0
240
+ }, _(v(U)), 11, k)) : s("", !0)
241
+ ], 16));
242
+ }
243
+ });
244
+ //#endregion
245
+ export { A as t };
@@ -405,7 +405,7 @@
405
405
 
406
406
  :root {
407
407
  /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
408
- --m-menu-min-width: 12rem;
408
+ --m-overlay-menu-min-width: 12rem;
409
409
  }
410
410
 
411
411
  .m-button,
@@ -463,7 +463,7 @@
463
463
  .m-progress-spinner,
464
464
  .m-cascadeselect,
465
465
  .m-treeselect,
466
- .m-inputcolor,
466
+ .m-colorpicker,
467
467
  .m-inputtags,
468
468
  .m-label,
469
469
  .m-speeddial,
@@ -489,8 +489,7 @@
489
489
  .m-password__input:disabled,
490
490
  .m-inputnumber__input:disabled,
491
491
  .m-inputotp__input:disabled,
492
- .m-inputcolor__text:disabled,
493
- .m-inputcolor__swatch:disabled,
492
+ .m-colorpicker__trigger:disabled,
494
493
  .m-inputtags--disabled {
495
494
  background-color: var(--m-color-bg-disabled);
496
495
  color: var(--m-color-text-disabled);
@@ -513,8 +512,7 @@
513
512
  .m-textarea::placeholder,
514
513
  .m-password__input::placeholder,
515
514
  .m-inputnumber__input::placeholder,
516
- .m-inputtags__input::placeholder,
517
- .m-inputcolor__text::placeholder {
515
+ .m-inputtags__input::placeholder {
518
516
  color: var(--m-color-text-muted);
519
517
  opacity: 1;
520
518
  }
@@ -858,9 +856,7 @@
858
856
  font-family: var(--m-font-sans);
859
857
  gap: var(--m-space-2);
860
858
  max-width: 100%;
861
- min-width: var(--m-menu-min-width);
862
859
  position: relative;
863
- width: fit-content;
864
860
  }
865
861
 
866
862
  .m-textarea-field--fluid,
@@ -1051,7 +1047,7 @@
1051
1047
  flex: 1;
1052
1048
  max-height: 16rem;
1053
1049
  min-height: 12rem;
1054
- min-width: var(--m-menu-min-width);
1050
+ min-width: var(--m-overlay-menu-min-width);
1055
1051
  }
1056
1052
 
1057
1053
  .m-orderlist__list,
@@ -1119,7 +1115,6 @@
1119
1115
  .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1120
1116
  .m-treeselect:not(.m-treeselect--open)
1121
1117
  .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1122
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1123
1118
  .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1124
1119
  .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1125
1120
  .m-inplace__display:hover:not(:focus-visible) {
@@ -1134,8 +1129,6 @@
1134
1129
  .m-treeselect--open .m-treeselect__trigger,
1135
1130
  .m-treeselect__trigger:focus,
1136
1131
  .m-treeselect__trigger:focus-visible,
1137
- .m-inputcolor__text:focus,
1138
- .m-inputcolor__text:focus-visible,
1139
1132
  .m-inputtags:focus-within,
1140
1133
  .m-togglebutton:focus-visible,
1141
1134
  .m-selectbutton__button:focus-visible,
@@ -1150,9 +1143,7 @@
1150
1143
 
1151
1144
  .m-inputotp--invalid .m-inputotp__input:focus,
1152
1145
  .m-inputotp--invalid .m-inputotp__input:focus-visible,
1153
- .m-inputtags--invalid:focus-within,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1155
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1146
+ .m-inputtags--invalid:focus-within {
1156
1147
  border-color: var(--m-color-danger);
1157
1148
  box-shadow: var(--m-focus-shadow-danger);
1158
1149
  }
@@ -405,7 +405,7 @@
405
405
 
406
406
  :root {
407
407
  /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
408
- --m-menu-min-width: 12rem;
408
+ --m-overlay-menu-min-width: 12rem;
409
409
  }
410
410
 
411
411
  .m-button,
@@ -463,7 +463,7 @@
463
463
  .m-progress-spinner,
464
464
  .m-cascadeselect,
465
465
  .m-treeselect,
466
- .m-inputcolor,
466
+ .m-colorpicker,
467
467
  .m-inputtags,
468
468
  .m-label,
469
469
  .m-speeddial,
@@ -489,8 +489,7 @@
489
489
  .m-password__input:disabled,
490
490
  .m-inputnumber__input:disabled,
491
491
  .m-inputotp__input:disabled,
492
- .m-inputcolor__text:disabled,
493
- .m-inputcolor__swatch:disabled,
492
+ .m-colorpicker__trigger:disabled,
494
493
  .m-inputtags--disabled {
495
494
  background-color: var(--m-color-bg-disabled);
496
495
  color: var(--m-color-text-disabled);
@@ -513,8 +512,7 @@
513
512
  .m-textarea::placeholder,
514
513
  .m-password__input::placeholder,
515
514
  .m-inputnumber__input::placeholder,
516
- .m-inputtags__input::placeholder,
517
- .m-inputcolor__text::placeholder {
515
+ .m-inputtags__input::placeholder {
518
516
  color: var(--m-color-text-muted);
519
517
  opacity: 1;
520
518
  }
@@ -858,9 +856,7 @@
858
856
  font-family: var(--m-font-sans);
859
857
  gap: var(--m-space-2);
860
858
  max-width: 100%;
861
- min-width: var(--m-menu-min-width);
862
859
  position: relative;
863
- width: fit-content;
864
860
  }
865
861
 
866
862
  .m-textarea-field--fluid,
@@ -1051,7 +1047,7 @@
1051
1047
  flex: 1;
1052
1048
  max-height: 16rem;
1053
1049
  min-height: 12rem;
1054
- min-width: var(--m-menu-min-width);
1050
+ min-width: var(--m-overlay-menu-min-width);
1055
1051
  }
1056
1052
 
1057
1053
  .m-orderlist__list,
@@ -1119,7 +1115,6 @@
1119
1115
  .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1120
1116
  .m-treeselect:not(.m-treeselect--open)
1121
1117
  .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1122
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1123
1118
  .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1124
1119
  .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1125
1120
  .m-inplace__display:hover:not(:focus-visible) {
@@ -1134,8 +1129,6 @@
1134
1129
  .m-treeselect--open .m-treeselect__trigger,
1135
1130
  .m-treeselect__trigger:focus,
1136
1131
  .m-treeselect__trigger:focus-visible,
1137
- .m-inputcolor__text:focus,
1138
- .m-inputcolor__text:focus-visible,
1139
1132
  .m-inputtags:focus-within,
1140
1133
  .m-togglebutton:focus-visible,
1141
1134
  .m-selectbutton__button:focus-visible,
@@ -1150,9 +1143,7 @@
1150
1143
 
1151
1144
  .m-inputotp--invalid .m-inputotp__input:focus,
1152
1145
  .m-inputotp--invalid .m-inputotp__input:focus-visible,
1153
- .m-inputtags--invalid:focus-within,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1155
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1146
+ .m-inputtags--invalid:focus-within {
1156
1147
  border-color: var(--m-color-danger);
1157
1148
  box-shadow: var(--m-focus-shadow-danger);
1158
1149
  }
@@ -405,7 +405,7 @@
405
405
 
406
406
  :root {
407
407
  /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
408
- --m-menu-min-width: 12rem;
408
+ --m-overlay-menu-min-width: 12rem;
409
409
  }
410
410
 
411
411
  .m-button,
@@ -463,7 +463,7 @@
463
463
  .m-progress-spinner,
464
464
  .m-cascadeselect,
465
465
  .m-treeselect,
466
- .m-inputcolor,
466
+ .m-colorpicker,
467
467
  .m-inputtags,
468
468
  .m-label,
469
469
  .m-speeddial,
@@ -489,8 +489,7 @@
489
489
  .m-password__input:disabled,
490
490
  .m-inputnumber__input:disabled,
491
491
  .m-inputotp__input:disabled,
492
- .m-inputcolor__text:disabled,
493
- .m-inputcolor__swatch:disabled,
492
+ .m-colorpicker__trigger:disabled,
494
493
  .m-inputtags--disabled {
495
494
  background-color: var(--m-color-bg-disabled);
496
495
  color: var(--m-color-text-disabled);
@@ -513,8 +512,7 @@
513
512
  .m-textarea::placeholder,
514
513
  .m-password__input::placeholder,
515
514
  .m-inputnumber__input::placeholder,
516
- .m-inputtags__input::placeholder,
517
- .m-inputcolor__text::placeholder {
515
+ .m-inputtags__input::placeholder {
518
516
  color: var(--m-color-text-muted);
519
517
  opacity: 1;
520
518
  }
@@ -858,9 +856,7 @@
858
856
  font-family: var(--m-font-sans);
859
857
  gap: var(--m-space-2);
860
858
  max-width: 100%;
861
- min-width: var(--m-menu-min-width);
862
859
  position: relative;
863
- width: fit-content;
864
860
  }
865
861
 
866
862
  .m-textarea-field--fluid,
@@ -1051,7 +1047,7 @@
1051
1047
  flex: 1;
1052
1048
  max-height: 16rem;
1053
1049
  min-height: 12rem;
1054
- min-width: var(--m-menu-min-width);
1050
+ min-width: var(--m-overlay-menu-min-width);
1055
1051
  }
1056
1052
 
1057
1053
  .m-orderlist__list,
@@ -1119,7 +1115,6 @@
1119
1115
  .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1120
1116
  .m-treeselect:not(.m-treeselect--open)
1121
1117
  .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1122
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1123
1118
  .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1124
1119
  .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1125
1120
  .m-inplace__display:hover:not(:focus-visible) {
@@ -1134,8 +1129,6 @@
1134
1129
  .m-treeselect--open .m-treeselect__trigger,
1135
1130
  .m-treeselect__trigger:focus,
1136
1131
  .m-treeselect__trigger:focus-visible,
1137
- .m-inputcolor__text:focus,
1138
- .m-inputcolor__text:focus-visible,
1139
1132
  .m-inputtags:focus-within,
1140
1133
  .m-togglebutton:focus-visible,
1141
1134
  .m-selectbutton__button:focus-visible,
@@ -1150,9 +1143,7 @@
1150
1143
 
1151
1144
  .m-inputotp--invalid .m-inputotp__input:focus,
1152
1145
  .m-inputotp--invalid .m-inputotp__input:focus-visible,
1153
- .m-inputtags--invalid:focus-within,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1155
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1146
+ .m-inputtags--invalid:focus-within {
1156
1147
  border-color: var(--m-color-danger);
1157
1148
  box-shadow: var(--m-focus-shadow-danger);
1158
1149
  }
@@ -405,7 +405,7 @@
405
405
 
406
406
  :root {
407
407
  /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
408
- --m-menu-min-width: 12rem;
408
+ --m-overlay-menu-min-width: 12rem;
409
409
  }
410
410
 
411
411
  .m-button,
@@ -463,7 +463,7 @@
463
463
  .m-progress-spinner,
464
464
  .m-cascadeselect,
465
465
  .m-treeselect,
466
- .m-inputcolor,
466
+ .m-colorpicker,
467
467
  .m-inputtags,
468
468
  .m-label,
469
469
  .m-speeddial,
@@ -489,8 +489,7 @@
489
489
  .m-password__input:disabled,
490
490
  .m-inputnumber__input:disabled,
491
491
  .m-inputotp__input:disabled,
492
- .m-inputcolor__text:disabled,
493
- .m-inputcolor__swatch:disabled,
492
+ .m-colorpicker__trigger:disabled,
494
493
  .m-inputtags--disabled {
495
494
  background-color: var(--m-color-bg-disabled);
496
495
  color: var(--m-color-text-disabled);
@@ -513,8 +512,7 @@
513
512
  .m-textarea::placeholder,
514
513
  .m-password__input::placeholder,
515
514
  .m-inputnumber__input::placeholder,
516
- .m-inputtags__input::placeholder,
517
- .m-inputcolor__text::placeholder {
515
+ .m-inputtags__input::placeholder {
518
516
  color: var(--m-color-text-muted);
519
517
  opacity: 1;
520
518
  }
@@ -858,9 +856,7 @@
858
856
  font-family: var(--m-font-sans);
859
857
  gap: var(--m-space-2);
860
858
  max-width: 100%;
861
- min-width: var(--m-menu-min-width);
862
859
  position: relative;
863
- width: fit-content;
864
860
  }
865
861
 
866
862
  .m-textarea-field--fluid,
@@ -1051,7 +1047,7 @@
1051
1047
  flex: 1;
1052
1048
  max-height: 16rem;
1053
1049
  min-height: 12rem;
1054
- min-width: var(--m-menu-min-width);
1050
+ min-width: var(--m-overlay-menu-min-width);
1055
1051
  }
1056
1052
 
1057
1053
  .m-orderlist__list,
@@ -1119,7 +1115,6 @@
1119
1115
  .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1120
1116
  .m-treeselect:not(.m-treeselect--open)
1121
1117
  .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1122
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1123
1118
  .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1124
1119
  .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1125
1120
  .m-inplace__display:hover:not(:focus-visible) {
@@ -1134,8 +1129,6 @@
1134
1129
  .m-treeselect--open .m-treeselect__trigger,
1135
1130
  .m-treeselect__trigger:focus,
1136
1131
  .m-treeselect__trigger:focus-visible,
1137
- .m-inputcolor__text:focus,
1138
- .m-inputcolor__text:focus-visible,
1139
1132
  .m-inputtags:focus-within,
1140
1133
  .m-togglebutton:focus-visible,
1141
1134
  .m-selectbutton__button:focus-visible,
@@ -1150,9 +1143,7 @@
1150
1143
 
1151
1144
  .m-inputotp--invalid .m-inputotp__input:focus,
1152
1145
  .m-inputotp--invalid .m-inputotp__input:focus-visible,
1153
- .m-inputtags--invalid:focus-within,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1155
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1146
+ .m-inputtags--invalid:focus-within {
1156
1147
  border-color: var(--m-color-danger);
1157
1148
  box-shadow: var(--m-focus-shadow-danger);
1158
1149
  }
@@ -405,7 +405,7 @@
405
405
 
406
406
  :root {
407
407
  /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
408
- --m-menu-min-width: 12rem;
408
+ --m-overlay-menu-min-width: 12rem;
409
409
  }
410
410
 
411
411
  .m-button,
@@ -463,7 +463,7 @@
463
463
  .m-progress-spinner,
464
464
  .m-cascadeselect,
465
465
  .m-treeselect,
466
- .m-inputcolor,
466
+ .m-colorpicker,
467
467
  .m-inputtags,
468
468
  .m-label,
469
469
  .m-speeddial,
@@ -489,8 +489,7 @@
489
489
  .m-password__input:disabled,
490
490
  .m-inputnumber__input:disabled,
491
491
  .m-inputotp__input:disabled,
492
- .m-inputcolor__text:disabled,
493
- .m-inputcolor__swatch:disabled,
492
+ .m-colorpicker__trigger:disabled,
494
493
  .m-inputtags--disabled {
495
494
  background-color: var(--m-color-bg-disabled);
496
495
  color: var(--m-color-text-disabled);
@@ -513,8 +512,7 @@
513
512
  .m-textarea::placeholder,
514
513
  .m-password__input::placeholder,
515
514
  .m-inputnumber__input::placeholder,
516
- .m-inputtags__input::placeholder,
517
- .m-inputcolor__text::placeholder {
515
+ .m-inputtags__input::placeholder {
518
516
  color: var(--m-color-text-muted);
519
517
  opacity: 1;
520
518
  }
@@ -858,9 +856,7 @@
858
856
  font-family: var(--m-font-sans);
859
857
  gap: var(--m-space-2);
860
858
  max-width: 100%;
861
- min-width: var(--m-menu-min-width);
862
859
  position: relative;
863
- width: fit-content;
864
860
  }
865
861
 
866
862
  .m-textarea-field--fluid,
@@ -1051,7 +1047,7 @@
1051
1047
  flex: 1;
1052
1048
  max-height: 16rem;
1053
1049
  min-height: 12rem;
1054
- min-width: var(--m-menu-min-width);
1050
+ min-width: var(--m-overlay-menu-min-width);
1055
1051
  }
1056
1052
 
1057
1053
  .m-orderlist__list,
@@ -1119,7 +1115,6 @@
1119
1115
  .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1120
1116
  .m-treeselect:not(.m-treeselect--open)
1121
1117
  .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
1122
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
1123
1118
  .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
1124
1119
  .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
1125
1120
  .m-inplace__display:hover:not(:focus-visible) {
@@ -1134,8 +1129,6 @@
1134
1129
  .m-treeselect--open .m-treeselect__trigger,
1135
1130
  .m-treeselect__trigger:focus,
1136
1131
  .m-treeselect__trigger:focus-visible,
1137
- .m-inputcolor__text:focus,
1138
- .m-inputcolor__text:focus-visible,
1139
1132
  .m-inputtags:focus-within,
1140
1133
  .m-togglebutton:focus-visible,
1141
1134
  .m-selectbutton__button:focus-visible,
@@ -1150,9 +1143,7 @@
1150
1143
 
1151
1144
  .m-inputotp--invalid .m-inputotp__input:focus,
1152
1145
  .m-inputotp--invalid .m-inputotp__input:focus-visible,
1153
- .m-inputtags--invalid:focus-within,
1154
- .m-inputcolor--invalid .m-inputcolor__text:focus,
1155
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
1146
+ .m-inputtags--invalid:focus-within {
1156
1147
  border-color: var(--m-color-danger);
1157
1148
  box-shadow: var(--m-focus-shadow-danger);
1158
1149
  }