@teammodlr/ui-kit 3.0.0-beta.15 → 3.0.0-beta.17
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/lib/index.es.js
CHANGED
|
@@ -11907,7 +11907,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
11907
11907
|
return g(), A("div", qh, [
|
|
11908
11908
|
L(f, {
|
|
11909
11909
|
open: e.isOpen,
|
|
11910
|
-
"onUpdate:open": t[
|
|
11910
|
+
"onUpdate:open": t[15] || (t[15] = (p) => e.isOpen = p)
|
|
11911
11911
|
}, {
|
|
11912
11912
|
default: $(() => [
|
|
11913
11913
|
L(s, { "as-child": "" }, {
|
|
@@ -11915,7 +11915,9 @@ function zh(e, t, n, o, a, r) {
|
|
|
11915
11915
|
I("div", {
|
|
11916
11916
|
ref: "referenceRef",
|
|
11917
11917
|
tabindex: "0",
|
|
11918
|
-
|
|
11918
|
+
onMousedown: t[0] || (t[0] = he(() => {
|
|
11919
|
+
}, ["prevent"])),
|
|
11920
|
+
onFocus: t[1] || (t[1] = (p) => e.isOpen = !0),
|
|
11919
11921
|
class: M(e.style.trigger)
|
|
11920
11922
|
}, [
|
|
11921
11923
|
S(e.$slots, "default", {
|
|
@@ -11953,15 +11955,15 @@ function zh(e, t, n, o, a, r) {
|
|
|
11953
11955
|
align: e.resolvedAlign,
|
|
11954
11956
|
"side-offset": 4,
|
|
11955
11957
|
"collision-padding": 8,
|
|
11956
|
-
onOpenAutoFocus: t[
|
|
11958
|
+
onOpenAutoFocus: t[13] || (t[13] = he(() => {
|
|
11957
11959
|
}, ["prevent"])),
|
|
11958
|
-
onCloseAutoFocus: t[
|
|
11960
|
+
onCloseAutoFocus: t[14] || (t[14] = he(() => {
|
|
11959
11961
|
}, ["prevent"]))
|
|
11960
11962
|
}, {
|
|
11961
11963
|
default: $(() => [
|
|
11962
11964
|
I("div", {
|
|
11963
11965
|
ref: "picker",
|
|
11964
|
-
onMousedown: t[
|
|
11966
|
+
onMousedown: t[4] || (t[4] = (...p) => e.handleMouseDown && e.handleMouseDown(...p)),
|
|
11965
11967
|
class: M(e.style.colours),
|
|
11966
11968
|
style: ce(`background: rgb(${e.mainColor.r}, ${e.mainColor.g}, ${e.mainColor.b});`)
|
|
11967
11969
|
}, [
|
|
@@ -11973,8 +11975,8 @@ function zh(e, t, n, o, a, r) {
|
|
|
11973
11975
|
}, null, 2),
|
|
11974
11976
|
I("div", {
|
|
11975
11977
|
class: M(e.style.sliderThumb),
|
|
11976
|
-
onMousedown: t[
|
|
11977
|
-
onDragover: t[
|
|
11978
|
+
onMousedown: t[2] || (t[2] = (...p) => e.handleMouseDown && e.handleMouseDown(...p)),
|
|
11979
|
+
onDragover: t[3] || (t[3] = he(() => {
|
|
11978
11980
|
}, ["prevent"])),
|
|
11979
11981
|
style: ce({ left: `${e.position.x * 100}%`, top: `${e.position.y * 100}%` })
|
|
11980
11982
|
}, null, 38)
|
|
@@ -12004,13 +12006,13 @@ function zh(e, t, n, o, a, r) {
|
|
|
12004
12006
|
I("div", Dh, [
|
|
12005
12007
|
L(i, {
|
|
12006
12008
|
modelValue: e.hueSlider,
|
|
12007
|
-
"onUpdate:modelValue": t[
|
|
12009
|
+
"onUpdate:modelValue": t[5] || (t[5] = (p) => e.hueSlider = p),
|
|
12008
12010
|
onChange: e.onSliderChangeComplete,
|
|
12009
12011
|
background: "linear-gradient(to right, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000)"
|
|
12010
12012
|
}, null, 8, ["modelValue", "onChange"]),
|
|
12011
12013
|
L(i, {
|
|
12012
12014
|
modelValue: e.opacitySlider,
|
|
12013
|
-
"onUpdate:modelValue": t[
|
|
12015
|
+
"onUpdate:modelValue": t[6] || (t[6] = (p) => e.opacitySlider = p),
|
|
12014
12016
|
onChange: e.onSliderChangeComplete,
|
|
12015
12017
|
background: `linear-gradient(to right, rgba(${e.finalColor.r}, ${e.finalColor.g}, ${e.finalColor.b}, 0), rgba(${e.finalColor.r}, ${e.finalColor.g}, ${e.finalColor.b}, 1))`
|
|
12016
12018
|
}, null, 8, ["modelValue", "onChange", "background"])
|
|
@@ -12026,7 +12028,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12026
12028
|
block: "",
|
|
12027
12029
|
ref: "rInputElement",
|
|
12028
12030
|
modelValue: e.rInput,
|
|
12029
|
-
"onUpdate:modelValue": t[
|
|
12031
|
+
"onUpdate:modelValue": t[7] || (t[7] = (p) => e.rInput = p),
|
|
12030
12032
|
name: "r",
|
|
12031
12033
|
placeholder: "R"
|
|
12032
12034
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"]),
|
|
@@ -12036,7 +12038,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12036
12038
|
block: "",
|
|
12037
12039
|
ref: "gInputElement",
|
|
12038
12040
|
modelValue: e.gInput,
|
|
12039
|
-
"onUpdate:modelValue": t[
|
|
12041
|
+
"onUpdate:modelValue": t[8] || (t[8] = (p) => e.gInput = p),
|
|
12040
12042
|
name: "g",
|
|
12041
12043
|
placeholder: "G"
|
|
12042
12044
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"]),
|
|
@@ -12046,7 +12048,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12046
12048
|
block: "",
|
|
12047
12049
|
ref: "bInputElement",
|
|
12048
12050
|
modelValue: e.bInput,
|
|
12049
|
-
"onUpdate:modelValue": t[
|
|
12051
|
+
"onUpdate:modelValue": t[9] || (t[9] = (p) => e.bInput = p),
|
|
12050
12052
|
name: "b",
|
|
12051
12053
|
placeholder: "B"
|
|
12052
12054
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"]),
|
|
@@ -12056,7 +12058,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12056
12058
|
block: "",
|
|
12057
12059
|
ref: "aInputElement",
|
|
12058
12060
|
modelValue: e.aInput,
|
|
12059
|
-
"onUpdate:modelValue": t[
|
|
12061
|
+
"onUpdate:modelValue": t[10] || (t[10] = (p) => e.aInput = p),
|
|
12060
12062
|
name: "a",
|
|
12061
12063
|
placeholder: "A"
|
|
12062
12064
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"])
|
|
@@ -12065,7 +12067,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12065
12067
|
onKeyup: yt(e.commitHexInput, ["enter"]),
|
|
12066
12068
|
onBlur: e.commitHexInput,
|
|
12067
12069
|
modelValue: e.hexInputUser,
|
|
12068
|
-
"onUpdate:modelValue": t[
|
|
12070
|
+
"onUpdate:modelValue": t[11] || (t[11] = (p) => e.hexInputUser = p),
|
|
12069
12071
|
block: "",
|
|
12070
12072
|
ref: "hexInputElement",
|
|
12071
12073
|
name: "hex",
|
|
@@ -12073,7 +12075,7 @@ function zh(e, t, n, o, a, r) {
|
|
|
12073
12075
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"])),
|
|
12074
12076
|
L(l, {
|
|
12075
12077
|
icon: "",
|
|
12076
|
-
onClick: t[
|
|
12078
|
+
onClick: t[12] || (t[12] = he((p) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
|
|
12077
12079
|
}, {
|
|
12078
12080
|
default: $(() => [
|
|
12079
12081
|
(g(), A("svg", Ph, Ih))
|
|
@@ -12288,7 +12290,8 @@ function eb(e, t, n, o, a, r) {
|
|
|
12288
12290
|
}, 8, ["open"])) : e.isContextMenu ? (g(), q(f, J({
|
|
12289
12291
|
key: 1,
|
|
12290
12292
|
open: e.isOpen,
|
|
12291
|
-
"onUpdate:open": t[1] || (t[1] = (T) => e.isOpen = T)
|
|
12293
|
+
"onUpdate:open": t[1] || (t[1] = (T) => e.isOpen = T),
|
|
12294
|
+
modal: e.modal
|
|
12292
12295
|
}, e.$attrs), {
|
|
12293
12296
|
default: $(() => [
|
|
12294
12297
|
L(u, { "as-child": "" }, {
|
|
@@ -12314,7 +12317,7 @@ function eb(e, t, n, o, a, r) {
|
|
|
12314
12317
|
})
|
|
12315
12318
|
]),
|
|
12316
12319
|
_: 3
|
|
12317
|
-
}, 16, ["open"])) : e.isSubmenu ? (g(), q(h, {
|
|
12320
|
+
}, 16, ["open", "modal"])) : e.isSubmenu ? (g(), q(h, {
|
|
12318
12321
|
key: 2,
|
|
12319
12322
|
open: e.isOpen,
|
|
12320
12323
|
"onUpdate:open": t[2] || (t[2] = (T) => e.isOpen = T)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div ref="wrapper" class="m-color-picker">
|
|
3
3
|
<PopoverRoot v-model:open="isOpen">
|
|
4
4
|
<PopoverTrigger as-child>
|
|
5
|
-
<div ref="referenceRef" tabindex="0" @focus="isOpen = true" :class="style.trigger">
|
|
5
|
+
<div ref="referenceRef" tabindex="0" @mousedown.prevent @focus="isOpen = true" :class="style.trigger">
|
|
6
6
|
<slot :r="finalColor.r" :g="finalColor.g" :b="finalColor.b" :a="finalColor.a" :hex="hexInput"
|
|
7
7
|
:transparent="style.transparent">
|
|
8
8
|
<div :class="style.reference">
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</ContextMenuSubContent>
|
|
10
10
|
</ContextMenuPortal>
|
|
11
11
|
</ContextMenuSub>
|
|
12
|
-
<ContextMenuRoot v-else-if="isContextMenu" v-model:open="isOpen" v-bind="$attrs">
|
|
12
|
+
<ContextMenuRoot v-else-if="isContextMenu" v-model:open="isOpen" :modal="modal" v-bind="$attrs">
|
|
13
13
|
<ContextMenuTrigger as-child>
|
|
14
14
|
<slot />
|
|
15
15
|
</ContextMenuTrigger>
|