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.
- package/CHANGELOG.md +19 -2
- package/dist/InputNumber-DjbXtTzR.js +245 -0
- package/dist/accordion/style.css +6 -15
- package/dist/affix/style.css +6 -15
- package/dist/alert/style.css +6 -15
- package/dist/anchor/style.css +6 -15
- package/dist/auto-complete/style.css +6 -15
- package/dist/avatar/style.css +6 -15
- package/dist/badge/style.css +6 -15
- package/dist/block-ui/style.css +6 -15
- package/dist/breadcrumb/style.css +6 -15
- package/dist/button/style.css +6 -15
- package/dist/calendar/style.css +6 -15
- package/dist/card/style.css +6 -15
- package/dist/carousel/style.css +6 -15
- package/dist/cascade-select/style.css +6 -15
- package/dist/checkbox/style.css +6 -15
- package/dist/chip/style.css +6 -15
- package/dist/color-picker/index.js +676 -0
- package/dist/{input-color → color-picker}/style.css +1406 -83
- package/dist/color-picker/style.js +8 -0
- package/dist/command-menu/style.css +6 -15
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +41 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/components/ColorPicker/colorUtils.d.ts +23 -0
- package/dist/components/ColorPicker/colorUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts +9 -0
- package/dist/components/ColorPicker/gradientUtils.d.ts.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/components/ColorPicker/styles.css +405 -0
- package/dist/components/ColorPicker/types.d.ts +60 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/ContextMenu/styles.css +1 -1
- package/dist/components/Dropdown/styles.css +1 -1
- package/dist/components/InputNumber/styles.css +28 -10
- package/dist/components/Menubar/styles.css +1 -1
- package/dist/components/TieredMenu/styles.css +2 -2
- package/dist/config-provider/style.css +6 -15
- package/dist/confirm-dialog/style.css +6 -15
- package/dist/confirm-popup/style.css +6 -15
- package/dist/context-menu/style.css +7 -16
- package/dist/data-view/style.css +6 -15
- package/dist/date-picker/style.css +6 -15
- package/dist/descriptions/style.css +6 -15
- package/dist/dialog/style.css +6 -15
- package/dist/divider/style.css +6 -15
- package/dist/dock/style.css +6 -15
- package/dist/drawer/style.css +6 -15
- package/dist/dropdown/style.css +7 -16
- package/dist/empty/style.css +6 -15
- package/dist/fieldset/style.css +6 -15
- package/dist/file-upload/style.css +6 -15
- package/dist/flex/style.css +6 -15
- package/dist/float-label/style.css +6 -15
- package/dist/fluid/style.css +6 -15
- package/dist/form/style.css +6 -15
- package/dist/gallery/style.css +6 -15
- package/dist/grid/style.css +6 -15
- package/dist/icon/style.css +6 -15
- package/dist/icon-field/style.css +6 -15
- package/dist/image/style.css +6 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1975 -1421
- package/dist/inplace/style.css +6 -15
- package/dist/input/style.css +6 -15
- package/dist/input-group/style.css +6 -15
- package/dist/input-number/index.js +2 -245
- package/dist/input-number/style.css +34 -25
- package/dist/input-otp/style.css +6 -15
- package/dist/input-password/style.css +6 -15
- package/dist/input-tags/style.css +6 -15
- package/dist/knob/style.css +6 -15
- package/dist/label/style.css +6 -15
- package/dist/layout/style.css +6 -15
- package/dist/list/style.css +6 -15
- package/dist/listbox/style.css +6 -15
- package/dist/loading/style.css +6 -15
- package/dist/mega-menu/style.css +6 -15
- package/dist/mentions/style.css +6 -15
- package/dist/menu/style.css +6 -15
- package/dist/menubar/index.js +1 -1
- package/dist/menubar/style.css +7 -16
- package/dist/message/style.css +6 -15
- package/dist/meter-group/style.css +6 -15
- package/dist/order-list/style.css +6 -15
- package/dist/page/style.css +6 -15
- package/dist/pagination/style.css +6 -15
- package/dist/panel/style.css +6 -15
- package/dist/pick-list/style.css +6 -15
- package/dist/popover/style.css +6 -15
- package/dist/progress-bar/style.css +6 -15
- package/dist/progress-spinner/style.css +6 -15
- package/dist/qr-code/style.css +6 -15
- package/dist/radio/style.css +6 -15
- package/dist/rating/style.css +6 -15
- package/dist/resolver.js +1 -1
- package/dist/result/style.css +6 -15
- package/dist/scroll-top/style.css +6 -15
- package/dist/scrollbar/style.css +6 -15
- package/dist/segmented/style.css +6 -15
- package/dist/select/style.css +6 -15
- package/dist/select-button/style.css +6 -15
- package/dist/sidebar/style.css +6 -15
- package/dist/skeleton/style.css +6 -15
- package/dist/slider/style.css +6 -15
- package/dist/space/style.css +6 -15
- package/dist/speed-dial/style.css +6 -15
- package/dist/split-button/style.css +6 -15
- package/dist/splitter/style.css +6 -15
- package/dist/statistic/style.css +6 -15
- package/dist/status/style.css +6 -15
- package/dist/stepper/style.css +6 -15
- package/dist/styles/base.css +6 -15
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +6 -15
- package/dist/table/style.css +6 -15
- package/dist/tabs/style.css +6 -15
- package/dist/tag/style.css +6 -15
- package/dist/terminal/style.css +6 -15
- package/dist/textarea/style.css +6 -15
- package/dist/tiered-menu/style.css +8 -17
- package/dist/time-picker/style.css +6 -15
- package/dist/timeline/style.css +6 -15
- package/dist/toast/style.css +6 -15
- package/dist/toggle-button/style.css +6 -15
- package/dist/toolbar/style.css +6 -15
- package/dist/tooltip/style.css +6 -15
- package/dist/tour/style.css +6 -15
- package/dist/tree/style.css +6 -15
- package/dist/tree-select/style.css +6 -15
- package/dist/typography/style.css +6 -15
- package/dist/virtual-scroller/style.css +6 -15
- package/dist/watermark/style.css +6 -15
- package/package.json +8 -8
- package/dist/components/InputColor/InputColor.vue.d.ts +0 -24
- package/dist/components/InputColor/InputColor.vue.d.ts.map +0 -1
- package/dist/components/InputColor/index.d.ts +0 -3
- package/dist/components/InputColor/index.d.ts.map +0 -1
- package/dist/components/InputColor/styles.css +0 -139
- package/dist/components/InputColor/types.d.ts +0 -19
- package/dist/components/InputColor/types.d.ts.map +0 -1
- package/dist/input-color/index.js +0 -118
- package/dist/input-color/style.js +0 -3
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
}
|
package/dist/watermark/style.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morya-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description": "Open-source Vue 3 component library with design tokens, themes, and interactive docs.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://morya-space.github.io/morya-ui/",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"**/cascade-select/index.js",
|
|
35
35
|
"**/checkbox/index.js",
|
|
36
36
|
"**/chip/index.js",
|
|
37
|
+
"**/color-picker/index.js",
|
|
37
38
|
"**/command-menu/index.js",
|
|
38
39
|
"**/config-provider/index.js",
|
|
39
40
|
"**/confirm-dialog/index.js",
|
|
@@ -61,7 +62,6 @@
|
|
|
61
62
|
"**/image/index.js",
|
|
62
63
|
"**/inplace/index.js",
|
|
63
64
|
"**/input/index.js",
|
|
64
|
-
"**/input-color/index.js",
|
|
65
65
|
"**/input-group/index.js",
|
|
66
66
|
"**/input-number/index.js",
|
|
67
67
|
"**/input-otp/index.js",
|
|
@@ -232,6 +232,12 @@
|
|
|
232
232
|
},
|
|
233
233
|
"./chip/style": "./dist/chip/style.js",
|
|
234
234
|
"./chip/style.css": "./dist/chip/style.css",
|
|
235
|
+
"./color-picker": {
|
|
236
|
+
"types": "./dist/components/ColorPicker/index.d.ts",
|
|
237
|
+
"import": "./dist/color-picker/index.js"
|
|
238
|
+
},
|
|
239
|
+
"./color-picker/style": "./dist/color-picker/style.js",
|
|
240
|
+
"./color-picker/style.css": "./dist/color-picker/style.css",
|
|
235
241
|
"./command-menu": {
|
|
236
242
|
"types": "./dist/components/CommandMenu/index.d.ts",
|
|
237
243
|
"import": "./dist/command-menu/index.js"
|
|
@@ -394,12 +400,6 @@
|
|
|
394
400
|
},
|
|
395
401
|
"./input/style": "./dist/input/style.js",
|
|
396
402
|
"./input/style.css": "./dist/input/style.css",
|
|
397
|
-
"./input-color": {
|
|
398
|
-
"types": "./dist/components/InputColor/index.d.ts",
|
|
399
|
-
"import": "./dist/input-color/index.js"
|
|
400
|
-
},
|
|
401
|
-
"./input-color/style": "./dist/input-color/style.js",
|
|
402
|
-
"./input-color/style.css": "./dist/input-color/style.css",
|
|
403
403
|
"./input-group": {
|
|
404
404
|
"types": "./dist/components/InputGroup/index.d.ts",
|
|
405
405
|
"import": "./dist/input-group/index.js"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { InputColorProps } from './types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare var __VLS_1: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
trigger?: (props: typeof __VLS_1) => any;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_base: DefineComponent<InputColorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
-
}, string, PublicProps, Readonly<InputColorProps> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
modelValue: string;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
invalid: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=InputColor.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputColor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/InputColor.vue"],"names":[],"mappings":";AA4GA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAqK9C,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/* --- Form: InputColor --- */
|
|
2
|
-
.m-inputcolor-field {
|
|
3
|
-
display: grid;
|
|
4
|
-
gap: var(--m-space-2);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.m-inputcolor-field__label {
|
|
8
|
-
color: var(--m-color-text);
|
|
9
|
-
font-family: var(--m-font-sans);
|
|
10
|
-
font-size: var(--m-font-size-md);
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.m-inputcolor {
|
|
15
|
-
--m-inputcolor-text-min-width: 7rem;
|
|
16
|
-
--m-inputcolor-preset-size: 1.25rem;
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
gap: var(--m-space-2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.m-inputcolor--disabled {
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
opacity: var(--m-opacity-disabled);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.m-inputcolor__swatch {
|
|
28
|
-
background: transparent;
|
|
29
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
30
|
-
border-radius: var(--m-radius-control);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
height: var(--m-control-height-medium);
|
|
33
|
-
padding: 0;
|
|
34
|
-
transition:
|
|
35
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
36
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
37
|
-
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
38
|
-
width: var(--m-control-height-medium);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.m-inputcolor__text {
|
|
42
|
-
background: var(--m-color-surface);
|
|
43
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
44
|
-
border-radius: var(--m-radius-control);
|
|
45
|
-
color: var(--m-color-text);
|
|
46
|
-
font-family: var(--m-font-sans);
|
|
47
|
-
font-size: var(--m-control-font-medium);
|
|
48
|
-
min-height: var(--m-control-height-medium);
|
|
49
|
-
min-width: var(--m-inputcolor-text-min-width);
|
|
50
|
-
padding: 0 var(--m-control-padding-x-medium);
|
|
51
|
-
transition:
|
|
52
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
53
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
54
|
-
background-color var(--m-motion-fast) var(--m-motion-ease),
|
|
55
|
-
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.m-inputcolor__text:hover:not(:disabled):not(:focus),
|
|
59
|
-
.m-inputcolor__swatch:hover:not(:disabled):not(:focus) {
|
|
60
|
-
border-color: var(--m-color-primary-hover);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.m-inputcolor__text:focus,
|
|
64
|
-
.m-inputcolor__text:focus-visible,
|
|
65
|
-
.m-inputcolor__swatch:focus,
|
|
66
|
-
.m-inputcolor__swatch:focus-visible {
|
|
67
|
-
border-color: var(--m-color-primary);
|
|
68
|
-
box-shadow: var(--m-focus-shadow);
|
|
69
|
-
outline: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.m-inputcolor__row {
|
|
73
|
-
align-items: center;
|
|
74
|
-
display: flex;
|
|
75
|
-
gap: var(--m-space-2);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.m-inputcolor__swatches {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-wrap: wrap;
|
|
81
|
-
gap: var(--m-space-1);
|
|
82
|
-
margin-top: var(--m-space-2);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.m-inputcolor__preset {
|
|
86
|
-
border: var(--m-border-width) solid var(--m-color-border);
|
|
87
|
-
border-radius: var(--m-radius-sm);
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
height: var(--m-inputcolor-preset-size);
|
|
90
|
-
padding: 0;
|
|
91
|
-
transition:
|
|
92
|
-
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
93
|
-
box-shadow var(--m-motion-fast) var(--m-motion-ease);
|
|
94
|
-
width: var(--m-inputcolor-preset-size);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.m-inputcolor__preset:hover:not(:disabled) {
|
|
98
|
-
border-color: var(--m-color-primary-hover);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.m-inputcolor__preset:focus-visible {
|
|
102
|
-
box-shadow: var(--m-focus-shadow);
|
|
103
|
-
outline: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.m-inputcolor--small .m-inputcolor__swatch,
|
|
107
|
-
.m-inputcolor--small .m-inputcolor__text {
|
|
108
|
-
min-height: var(--m-control-height-small);
|
|
109
|
-
height: var(--m-control-height-small);
|
|
110
|
-
font-size: var(--m-control-font-small);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.m-inputcolor--small .m-inputcolor__swatch {
|
|
114
|
-
width: var(--m-control-height-small);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.m-inputcolor--large .m-inputcolor__swatch,
|
|
118
|
-
.m-inputcolor--large .m-inputcolor__text {
|
|
119
|
-
min-height: var(--m-control-height-large);
|
|
120
|
-
height: var(--m-control-height-large);
|
|
121
|
-
font-size: var(--m-control-font-large);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.m-inputcolor--large .m-inputcolor__swatch {
|
|
125
|
-
width: var(--m-control-height-large);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.m-inputcolor--invalid .m-inputcolor__text,
|
|
129
|
-
.m-inputcolor--invalid .m-inputcolor__swatch {
|
|
130
|
-
border-color: var(--m-color-danger);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus,
|
|
134
|
-
.m-inputcolor--invalid .m-inputcolor__text:focus-visible,
|
|
135
|
-
.m-inputcolor--invalid .m-inputcolor__swatch:focus,
|
|
136
|
-
.m-inputcolor--invalid .m-inputcolor__swatch:focus-visible {
|
|
137
|
-
border-color: var(--m-color-danger);
|
|
138
|
-
box-shadow: var(--m-focus-shadow-danger);
|
|
139
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MNativeInputProps } from '../../shared/nativeControlProps';
|
|
2
|
-
import { FieldPassThrough } from '../../shared/passThrough';
|
|
3
|
-
import { MSizeInput } from '../../shared/types';
|
|
4
|
-
export interface InputColorProps extends MNativeInputProps {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
id?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
invalid?: boolean;
|
|
10
|
-
size?: MSizeInput;
|
|
11
|
-
/** Preset hex colors shown under the input. */
|
|
12
|
-
swatches?: string[];
|
|
13
|
-
/** Pass-through attrs/classes/styles per DOM part. */
|
|
14
|
-
pt?: FieldPassThrough;
|
|
15
|
-
}
|
|
16
|
-
export interface InputColorEmits {
|
|
17
|
-
(event: 'update:modelValue', value: string): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,sDAAsD;IACtD,EAAE,CAAC,EAAE,gBAAgB,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAClD"}
|
|
@@ -1,118 +0,0 @@
|
|
|
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 { o as r } from "../config-Cd20zAyW.js";
|
|
5
|
-
import { n as i } from "../locale-BcxMPufl.js";
|
|
6
|
-
import "./style.js";
|
|
7
|
-
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y } from "vue";
|
|
8
|
-
//#region src/components/InputColor/InputColor.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var b = ["for"], x = { class: "m-inputcolor__row" }, S = [
|
|
10
|
-
"value",
|
|
11
|
-
"disabled",
|
|
12
|
-
"aria-label"
|
|
13
|
-
], C = [
|
|
14
|
-
"id",
|
|
15
|
-
"value",
|
|
16
|
-
"disabled",
|
|
17
|
-
"placeholder",
|
|
18
|
-
"name",
|
|
19
|
-
"autocomplete",
|
|
20
|
-
"autofocus",
|
|
21
|
-
"aria-invalid",
|
|
22
|
-
"aria-label"
|
|
23
|
-
], w = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "m-inputcolor__swatches"
|
|
26
|
-
}, T = [
|
|
27
|
-
"disabled",
|
|
28
|
-
"aria-label",
|
|
29
|
-
"onClick"
|
|
30
|
-
], E = /* @__PURE__ */ u({
|
|
31
|
-
inheritAttrs: !1,
|
|
32
|
-
__name: "InputColor",
|
|
33
|
-
props: {
|
|
34
|
-
modelValue: { default: "#000000" },
|
|
35
|
-
disabled: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !1
|
|
38
|
-
},
|
|
39
|
-
id: {},
|
|
40
|
-
label: {},
|
|
41
|
-
invalid: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !1
|
|
44
|
-
},
|
|
45
|
-
size: {},
|
|
46
|
-
swatches: {},
|
|
47
|
-
pt: {},
|
|
48
|
-
placeholder: {},
|
|
49
|
-
name: {},
|
|
50
|
-
autocomplete: {},
|
|
51
|
-
autofocus: { type: Boolean }
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:modelValue"],
|
|
54
|
-
setup(u, { emit: E }) {
|
|
55
|
-
let D = u, O = E, k = y(), { rootAttrs: A, controlAttrs: j } = e(k, () => D.pt), M = i(), N = r("InputColor", () => D.size), P = n("m-inputcolor"), F = o(() => D.id ?? P), { isInvalid: I } = t(D), L = o(() => {
|
|
56
|
-
let e = D.modelValue?.trim() || "#000000";
|
|
57
|
-
return /^#[0-9a-f]{6}$/i.test(e) ? e : "#000000";
|
|
58
|
-
}), R = o(() => [
|
|
59
|
-
"m-inputcolor",
|
|
60
|
-
`m-inputcolor--${N.value}`,
|
|
61
|
-
{
|
|
62
|
-
"m-inputcolor--disabled": D.disabled,
|
|
63
|
-
"m-inputcolor--invalid": I.value
|
|
64
|
-
}
|
|
65
|
-
]);
|
|
66
|
-
function z(e) {
|
|
67
|
-
let t = e.target;
|
|
68
|
-
O("update:modelValue", t.value);
|
|
69
|
-
}
|
|
70
|
-
function B(e) {
|
|
71
|
-
let t = e.target;
|
|
72
|
-
O("update:modelValue", t.value);
|
|
73
|
-
}
|
|
74
|
-
function V(e) {
|
|
75
|
-
D.disabled || O("update:modelValue", e);
|
|
76
|
-
}
|
|
77
|
-
return (e, t) => (m(), c("div", d(v(A), { class: "m-inputcolor-field" }), [u.label ? (m(), c("label", {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: "m-inputcolor-field__label",
|
|
80
|
-
for: F.value
|
|
81
|
-
}, _(u.label), 9, b)) : s("", !0), l("div", { class: f(R.value) }, [g(e.$slots, "trigger", {}, () => [l("div", x, [
|
|
82
|
-
l("input", {
|
|
83
|
-
class: "m-inputcolor__swatch",
|
|
84
|
-
type: "color",
|
|
85
|
-
value: L.value,
|
|
86
|
-
disabled: u.disabled,
|
|
87
|
-
"aria-label": v(M).selectColor,
|
|
88
|
-
onInput: z
|
|
89
|
-
}, null, 40, S),
|
|
90
|
-
l("input", d(v(j), {
|
|
91
|
-
id: F.value,
|
|
92
|
-
class: "m-inputcolor__text",
|
|
93
|
-
type: "text",
|
|
94
|
-
value: u.modelValue,
|
|
95
|
-
disabled: u.disabled,
|
|
96
|
-
placeholder: u.placeholder ?? "#000000",
|
|
97
|
-
name: u.name,
|
|
98
|
-
autocomplete: u.autocomplete,
|
|
99
|
-
autofocus: u.autofocus || void 0,
|
|
100
|
-
spellcheck: "false",
|
|
101
|
-
"aria-invalid": v(I) || void 0,
|
|
102
|
-
"aria-label": u.label ?? v(M).colorHexValue,
|
|
103
|
-
onInput: B
|
|
104
|
-
}), null, 16, C),
|
|
105
|
-
u.swatches?.length ? (m(), c("div", w, [(m(!0), c(a, null, h(u.swatches, (e) => (m(), c("button", {
|
|
106
|
-
key: e,
|
|
107
|
-
type: "button",
|
|
108
|
-
class: "m-inputcolor__preset",
|
|
109
|
-
style: p({ background: e }),
|
|
110
|
-
disabled: u.disabled,
|
|
111
|
-
"aria-label": e,
|
|
112
|
-
onClick: (t) => V(e)
|
|
113
|
-
}, null, 12, T))), 128))])) : s("", !0)
|
|
114
|
-
])])], 2)], 16));
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
118
|
-
export { E as MInputColor };
|