@onereach/ui-components 27.0.2-beta.6101.0 → 27.0.2-beta.6102.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/dist/esm/{OrCombinedInput-Bo5Nge5z.mjs → OrCombinedInput-dpWGsQmE.mjs} +6 -6
- package/dist/esm/{OrCombinedInput-Bo5Nge5z.mjs.map → OrCombinedInput-dpWGsQmE.mjs.map} +1 -1
- package/dist/esm/components/index.mjs +1 -1
- package/dist/esm/components/or-combined-input-v3/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -15,14 +15,14 @@ const z = [
|
|
|
15
15
|
// Box
|
|
16
16
|
"w-full",
|
|
17
17
|
// Position (.or-input-box-v3)
|
|
18
|
-
"[&_.or-input-box-v3]:
|
|
18
|
+
"children:[&_.or-input-box-v3]:relative",
|
|
19
19
|
// Position (.or-input-box-v3/focus)
|
|
20
|
-
"
|
|
20
|
+
"children:[&_.or-input-box-v3]:focus-within:z-10",
|
|
21
21
|
// Spacing (.or-input-box-v3)
|
|
22
|
-
"[&_.or-input-box-v3]
|
|
22
|
+
"children:[&:not(:first-child)]:[&_.or-input-box-v3]:-ml-[1px]",
|
|
23
23
|
// Shape (.or-input-box-v3)
|
|
24
|
-
"[&_.or-input-box-v3]:
|
|
25
|
-
"[&_.or-input-box-v3]:
|
|
24
|
+
"children:[&:not(:first-child)]:[&_.or-input-box-v3]:rounded-l-0",
|
|
25
|
+
"children:[&:not(:last-child)]:[&_.or-input-box-v3]:rounded-r-0"
|
|
26
26
|
], V = C({
|
|
27
27
|
name: "OrCombinedInput",
|
|
28
28
|
components: {
|
|
@@ -140,4 +140,4 @@ const J = /* @__PURE__ */ k(V, [["render", N]]);
|
|
|
140
140
|
export {
|
|
141
141
|
J as O
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=OrCombinedInput-
|
|
143
|
+
//# sourceMappingURL=OrCombinedInput-dpWGsQmE.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrCombinedInput-
|
|
1
|
+
{"version":3,"file":"OrCombinedInput-dpWGsQmE.mjs","sources":["../../../components/or-combined-input-v3/src/styles.ts","../../../components/or-combined-input-v3/src/OrCombinedInput.vue"],"sourcesContent":["export const CombinedInput: string[] = [\n // Layout\n 'layout-column',\n\n // Spacing\n 'gap-xs',\n];\n\nexport const CombinedInputControlGroup: string[] = [\n // Layout\n 'layout-row',\n\n // Box\n 'w-full',\n\n // Position (.or-input-box-v3)\n 'children:[&_.or-input-box-v3]:relative',\n\n // Position (.or-input-box-v3/focus)\n 'children:[&_.or-input-box-v3]:focus-within:z-10',\n\n // Spacing (.or-input-box-v3)\n 'children:[&:not(:first-child)]:[&_.or-input-box-v3]:-ml-[1px]',\n\n // Shape (.or-input-box-v3)\n 'children:[&:not(:first-child)]:[&_.or-input-box-v3]:rounded-l-0',\n 'children:[&:not(:last-child)]:[&_.or-input-box-v3]:rounded-r-0',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"$slots.label || $slots.addon || label\">\n <OrLabel\n :variant=\"'input'\"\n :required=\"required\"\n :disabled=\"disabled\"\n >\n <slot name=\"label\">\n {{ label }}\n </slot>\n\n <template v-slot:addon>\n <slot name=\"addon\" />\n </template>\n </OrLabel>\n </template>\n\n <div :class=\"controlGroup\">\n <slot\n :variant=\"variant\"\n :size=\"size\"\n :error=\"!!error\"\n :required=\"required\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n />\n </div>\n\n <template v-if=\"$slots.hint || hint\">\n <OrHint\n v-show=\"!error\"\n :disabled=\"disabled\"\n >\n <slot name=\"hint\">\n {{ hint }}\n </slot>\n </OrHint>\n </template>\n\n <OrError\n v-show=\"typeof error === 'string' && error.length > 0\"\n :disabled=\"disabled\"\n >\n {{ error }}\n </OrError>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { OrErrorV3 as OrError } from '@onereach/ui-components.or-error-v3';\nimport { OrHintV3 as OrHint } from '@onereach/ui-components.or-hint-v3';\nimport { InputBoxSize, InputBoxVariant } from '@onereach/ui-components.or-input-box-v3';\nimport { OrLabelV3 as OrLabel } from '@onereach/ui-components.or-label-v3';\nimport { computed, defineComponent, PropType, ref } from 'vue';\n\nimport { CombinedInput, CombinedInputControlGroup } from './styles';\n\nexport default defineComponent({\n name: 'OrCombinedInput',\n\n components: {\n OrError,\n OrHint,\n OrLabel,\n },\n\n props: {\n variant: {\n type: String as PropType<`${InputBoxVariant}`>,\n default: undefined,\n },\n\n size: {\n type: String as PropType<`${InputBoxSize}`>,\n default: undefined,\n },\n\n label: {\n type: String,\n default: undefined,\n },\n\n hint: {\n type: String,\n default: undefined,\n },\n\n error: {\n type: [String, Boolean],\n default: undefined,\n },\n\n required: {\n type: Boolean,\n default: false,\n },\n\n readonly: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-combined-input-v3',\n ...CombinedInput,\n ...props.variant === InputBoxVariant.Embedded ? ['grow'] : [],\n ]);\n\n const controlGroup = computed(() => [\n ...CombinedInputControlGroup,\n ]);\n\n return {\n root,\n rootStyles,\n controlGroup,\n };\n },\n});\n</script>\n"],"names":["CombinedInput","CombinedInputControlGroup","_sfc_main","defineComponent","OrError","OrHint","OrLabel","props","root","ref","rootStyles","computed","InputBoxVariant","controlGroup","_resolveComponent","_openBlock","_createElementBlock","_normalizeClass","_ctx","_createBlock","_component_OrLabel","_renderSlot","_createCommentVNode","_createElementVNode","_component_OrHint","_withDirectives","_createVNode","_component_OrError","_withCtx"],"mappings":";;;;;;AAAO,MAAMA,IAA0B;AAAA;AAAA,EAErC;AAAA;AAAA,EAGA;AACF,GAEaC,IAAsC;AAAA;AAAA,EAEjD;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA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AAAC,GAAA;AAAA,MAChB,KAAA;AAAA,MACA,SAAQ;AAAA,MAAA,UAAAF,EAAA;AAAA,MAMQ,UAAKA,EAAA;AAAA,IAAA,GAAA;AAAA;QAFfG,EAAAH,EAAA,QAAA,OAAA;AAAA,MAAA,CAAA;AAAA;;;;;;OAiBL,GAAA,CAAA,YAAA,UAAA,CAAA,KATAI,EAAK,IAAE,EAAA;AAAA,IAAAC,EAAA,OAAA;AAAA,MACX,OAOEN,EAAAC,EAAA,YAAA;AAAA,IAAA,GAAA;AAAA,QALOA,EAAI,QAAA,WAAA;AAAA,QACV,SAASA,EAAA;AAAA,QACT,MAAUA,EAAA;AAAA,QACV,QAAQ,CAAEA,EAAA;AAAA,QACV,UAAUA,EAAA;AAAA,QAAA,UAAAA,EAAA;AAAA;MAIC,CAAA;AAAA,IAAA,GAAA,CAAA;AAAA,iCAGDH,EAAQ,GAAAI,EAAAK,GAAA;AAAA,MAAA,KAAA;AAAA;;;;;;;;;;IAYV,CAAA,IAAAF,EAAA,IAAA,EAAA;AAAA,IAAHG,EAAAC,EAAAC,GAAA,EAAA,UAAAT,EAAA,YAAA;AAAA,MAAA,SAAAU,EAAA,MAAA;AAAA;;;;;;;;;"}
|
|
@@ -16,7 +16,7 @@ import { json as _, jsonParseLinter as j } from "@codemirror/lang-json";
|
|
|
16
16
|
import { html as W } from "@codemirror/lang-html";
|
|
17
17
|
import { EditorView as Q } from "@codemirror/view";
|
|
18
18
|
import { EditorState as K } from "@codemirror/state";
|
|
19
|
-
import { O as Y } from "../OrCombinedInput-
|
|
19
|
+
import { O as Y } from "../OrCombinedInput-dpWGsQmE.mjs";
|
|
20
20
|
import { C as $, O as rr } from "../OrConfirm-BShQfZJi.mjs";
|
|
21
21
|
import { O as or } from "../OrContextMenu-DPkHnqgT.mjs";
|
|
22
22
|
import { a as tr, b as sr, D as Or, c as ir, d as pr, q as mr, o as nr, g as xr, e as Vr, f as fr, r as lr, j as Tr, h as dr, i as cr, m as Dr, k as Cr, l as br, n as ur, p as Sr, O as Ir } from "../OrDataGrid-edH2V98b.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { json as _, jsonParseLinter as j } from "@codemirror/lang-json";
|
|
|
16
16
|
import { html as W } from "@codemirror/lang-html";
|
|
17
17
|
import { EditorView as Q } from "@codemirror/view";
|
|
18
18
|
import { EditorState as K } from "@codemirror/state";
|
|
19
|
-
import { O as Y } from "./OrCombinedInput-
|
|
19
|
+
import { O as Y } from "./OrCombinedInput-dpWGsQmE.mjs";
|
|
20
20
|
import { C as $, O as rr } from "./OrConfirm-BShQfZJi.mjs";
|
|
21
21
|
import { O as or } from "./OrContextMenu-DPkHnqgT.mjs";
|
|
22
22
|
import { a as tr, b as sr, D as Or, c as ir, d as pr, q as mr, o as nr, g as xr, e as fr, f as Vr, r as lr, j as Tr, h as dr, i as cr, m as Dr, k as Cr, l as br, n as ur, p as Sr, O as Ir } from "./OrDataGrid-edH2V98b.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "27.0.2-beta.
|
|
3
|
+
"version": "27.0.2-beta.6102.0",
|
|
4
4
|
"description": "Vue components library for v3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@floating-ui/dom": "1.7.6",
|
|
48
48
|
"@lezer/common": "1.5.2",
|
|
49
49
|
"@lezer/highlight": "*",
|
|
50
|
-
"@onereach/styles": "^27.0.2-beta.
|
|
51
|
-
"@onereach/ui-components-common": "^27.0.2-beta.
|
|
50
|
+
"@onereach/styles": "^27.0.2-beta.6102.0",
|
|
51
|
+
"@onereach/ui-components-common": "^27.0.2-beta.6102.0",
|
|
52
52
|
"@splidejs/splide": "4.0.6",
|
|
53
53
|
"@tiptap/core": "2.27.1",
|
|
54
54
|
"@tiptap/extension-blockquote": "2.27.1",
|