@onereach/ui-components 21.0.0 → 21.0.1

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.
@@ -23,7 +23,7 @@ export { OrDateFormatV3 } from './or-date-format-v3/index.js';
23
23
  export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
24
24
  export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
25
25
  export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
26
- export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-7c471714.js';
26
+ export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-7b24568c.js';
27
27
  export { DrawerPlacement, OrDrawerV3 } from './or-drawer-v3/index.js';
28
28
  export { DropAreaSize, OrDropAreaV3, approximateFileSize } from './or-drop-area-v3/index.js';
29
29
  export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-cbe58a9e.js';
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createVNode, mergeProps, withCtx, createSlots, normalizeProps, guardReactiveProps, renderList, createTextVNode, toDisplayString } from 'vue';
2
2
  import { OrCheckboxV3 as script$h } from '../or-checkbox-v3/index.js';
3
3
  import { OrDatePickerV3 as script$i } from '../or-date-picker-v3/index.js';
4
- import { s as script$j } from '../OrDateTimePickerV3-7c471714.js';
4
+ import { s as script$j } from '../OrDateTimePickerV3-7b24568c.js';
5
5
  import { OrInputV3 as script$k } from '../or-input-v3/index.js';
6
6
  import { OrRatingV3 as script$l } from '../or-rating-v3/index.js';
7
7
  import { OrSelectV3 as script$m } from '../or-select-v3/index.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
2
2
  import { G, e as X } from '../OrAutocompleteV3-961163d0.js';
3
- import { f as formatDate } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { f as formatDate } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import '@vueuse/core';
5
5
  import '@onereach/styles/screens.json';
6
6
  import '@onereach/styles/tailwind.config.json';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
2
2
  import { s, f as c, G, e as X, r as re } from '../OrAutocompleteV3-961163d0.js';
3
- import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import { OrErrorV3 as script$7 } from '../or-error-v3/index.js';
5
5
  import { OrHintV3 as script$8 } from '../or-hint-v3/index.js';
6
6
  import { OrIconV3 as script$9 } from '../or-icon-v3/index.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
2
2
  import { s, f as c, G, e as X, r as re, n as ne } from '../OrAutocompleteV3-961163d0.js';
3
- import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import { OrErrorV3 as script$7 } from '../or-error-v3/index.js';
5
5
  import { OrHintV3 as script$8 } from '../or-hint-v3/index.js';
6
6
  import { OrIconV3 as script$9 } from '../or-icon-v3/index.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
2
2
  import { G, g as se, e as X } from '../OrAutocompleteV3-961163d0.js';
3
- import { f as formatDate, k as formatTime } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { f as formatDate, k as formatTime } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import '@vueuse/core';
5
5
  import '@onereach/styles/screens.json';
6
6
  import '@onereach/styles/tailwind.config.json';
@@ -1,4 +1,4 @@
1
- export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../OrDateTimePickerV3-7c471714.js';
1
+ export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../OrDateTimePickerV3-7b24568c.js';
2
2
  import 'vue';
3
3
  import '../OrAutocompleteV3-961163d0.js';
4
4
  import '@vueuse/core';
@@ -1,10 +1,10 @@
1
+ import { n as ne, t as te } from '../OrAutocompleteV3-961163d0.js';
1
2
  import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, resolveComponent, createElementVNode, createVNode, withModifiers, toRef, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
2
- import { t as te } from '../OrAutocompleteV3-961163d0.js';
3
- import { OrIconButtonV3 as script$4 } from '../or-icon-button-v3/index.js';
4
- import { OrOverlayV3 as script$5 } from '../or-overlay-v3/index.js';
5
3
  import '@vueuse/core';
6
4
  import '@onereach/styles/screens.json';
7
5
  import '@onereach/styles/tailwind.config.json';
6
+ import { OrIconButtonV3 as script$4 } from '../or-icon-button-v3/index.js';
7
+ import { OrOverlayV3 as script$5 } from '../or-overlay-v3/index.js';
8
8
  import '../or-error-v3/index.js';
9
9
  import '../or-hint-v3/index.js';
10
10
  import '../or-input-box-v3/index.js';
@@ -104,11 +104,15 @@ var script$1 = defineComponent({
104
104
  setup() {
105
105
  // Refs
106
106
  const root = ref();
107
+ const {
108
+ isMobile
109
+ } = ne();
107
110
  // Styles
108
111
  const rootStyles = computed(() => ['or-modal-header', ...ModalHeader]);
109
112
  return {
110
113
  root,
111
- rootStyles
114
+ rootStyles,
115
+ isMobile
112
116
  };
113
117
  }
114
118
  });
@@ -123,9 +127,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
123
127
  class: normalizeClass(_ctx.rootStyles)
124
128
  }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), createVNode(_component_OrIconButton, {
125
129
  icon: 'close',
126
- size: 'l',
130
+ size: _ctx.isMobile ? 'l' : 'xl',
127
131
  onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('close'), ["stop"]))
128
- })], 2 /* CLASS */);
132
+ }, null, 8 /* PROPS */, ["size"])], 2 /* CLASS */);
129
133
  }
130
134
 
131
135
  script$1.render = render$1;
@@ -1,6 +1,7 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  root: import("vue").Ref<HTMLElement | undefined>;
3
3
  rootStyles: import("vue").ComputedRef<string[]>;
4
+ isMobile: import("vue").ComputedRef<boolean>;
4
5
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
5
6
  onClose?: ((...args: any[]) => any) | undefined;
6
7
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
2
2
  import { g as se, e as X } from '../OrAutocompleteV3-961163d0.js';
3
- import { k as formatTime } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { k as formatTime } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import '@vueuse/core';
5
5
  import '@onereach/styles/screens.json';
6
6
  import '@onereach/styles/tailwind.config.json';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
2
2
  import { s, f as c, g as se, e as X, r as re } from '../OrAutocompleteV3-961163d0.js';
3
- import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import { OrErrorV3 as script$6 } from '../or-error-v3/index.js';
5
5
  import { OrHintV3 as script$7 } from '../or-hint-v3/index.js';
6
6
  import { OrIconV3 as script$8 } from '../or-icon-v3/index.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
2
2
  import { s, f as c, g as se, e as X, r as re, n as ne } from '../OrAutocompleteV3-961163d0.js';
3
- import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7c471714.js';
3
+ import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7b24568c.js';
4
4
  import { OrErrorV3 as script$6 } from '../or-error-v3/index.js';
5
5
  import { OrHintV3 as script$7 } from '../or-hint-v3/index.js';
6
6
  import { OrIconV3 as script$8 } from '../or-icon-v3/index.js';
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { w as CODE_BACKSPACE, x as CODE_BREAK, y as CODE_DELETE, z as CODE_DOWN, A as CODE_END, B as CODE_ENTER, C as CODE_ESC, E as CODE_HOME, I as CODE_LEFT, L as CODE_PAGEDOWN, O as CODE_PAGEUP, U as CODE_RIGHT, Q as CODE_SPACE, V as CODE_UP, S as DATE_FORMAT, T as DateFormat, s as DropdownClose, f as DropdownOpen, W as HSL_LIMITS, Y as LOCALE, v as OrAutocompleteV3, Z as PLACEMENT_BOTTOM_END, _ as PLACEMENT_BOTTOM_START, a0 as PLACEMENT_LEFT_END, a1 as PLACEMENT_LEFT_START, a2 as PLACEMENT_RIGHT_END, a3 as PLACEMENT_RIGHT_START, a4 as PLACEMENT_TOP_END, a5 as PLACEMENT_TOP_START, a6 as RX_ABBREVIATION_FROM_STRING, a7 as RX_ARRAY_NOTATION, a8 as RX_BV_PREFIX, a9 as RX_DATE, aa as RX_DATE_SPLIT, ab as RX_DIGITS, ac as RX_ENCODED_COMMA, ad as RX_ENCODE_REVERSE, ae as RX_EXTENSION, af as RX_HASH, ag as RX_HASH_ID, ah as RX_HREF, ai as RX_HTML_TAGS, aj as RX_HYPHENATE, ak as RX_LONG_COLOR, al as RX_LOWER_UPPER, am as RX_NUMBER, an as RX_PLUS, ao as RX_QUERY_START, ap as RX_REGEXP_REPLACE, aq as RX_SHORT_COLOR, ar as RX_SPACES, as as RX_SPACE_SPLIT, at as RX_STAR, au as RX_START_SPACE_WORD, av as RX_TIME, aw as RX_TRIM_LEFT, ax as RX_TRIM_RIGHT, ay as RX_UNDERSCORE, az as RX_UN_KEBAB, aA as TIME_FORMAT, h as TimeFormat, P as exclude, aB as extractCssVarName, X as flattenDeep, aC as generateColorFromString, i as generateHslFromString, aD as getAbbreviation, aE as getHashOfString, aF as getPageElevations, aG as hexToRgb, D as hslToColorString, H as include, p as isAncestor, c as isArray, aH as isDescendant, $ as isEmpty, m as isEqual, l as isNil, aI as isNull, aJ as isNumber, R as isObject, aK as isString, b as isUndefined, aL as isVisible, aM as normalize, M as pxToRem, aN as requestAF, aO as rgbToHex, F as toArray, k as useControlAttributes, G as useDateFormat, J as useDateMask, K as useElevation, N as useIdAttribute, e as useLocale, q as useOverflow, t as usePopoverState, r as useProxyModelValue, n as useResponsive, u as useTheme, g as useTimeFormat, o as useTimeMask, aP as useToggle, d as useValidationAttributes } from './components/OrAutocompleteV3-961163d0.js';
2
2
  export { E as EditorTabsOverflow, s as OrEditorTabsV3, a as getItemByValue, m as getItemsByValue, l as searchItemsByLabel } from './components/OrEditorTabsV3-cbe58a9e.js';
3
- export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, p as Spacing, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './components/OrDateTimePickerV3-7c471714.js';
3
+ export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, p as Spacing, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './components/OrDateTimePickerV3-7b24568c.js';
4
4
  export { AvatarColor, AvatarSize, OrAvatarV3 } from './components/or-avatar-v3/index.js';
5
5
  export { OrButtonGroupV3 } from './components/or-button-group-v3/index.js';
6
6
  export { CardCollectionView, OrCardCollectionV3, defaultViewModes, gridView, listView } from './components/or-card-collection-v3/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "21.0.0",
3
+ "version": "21.0.1",
4
4
  "description": "Vue components library for v3",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "@codemirror/view": "^6",
45
45
  "@floating-ui/dom": "1.5.3",
46
46
  "@lezer/highlight": "*",
47
- "@onereach/styles": "^21.0.0",
48
- "@onereach/ui-components-common": "^21.0.0",
47
+ "@onereach/styles": "^21.0.1",
48
+ "@onereach/ui-components-common": "^21.0.1",
49
49
  "@splidejs/splide": "4.0.6",
50
50
  "@tiptap/core": "2.0.3",
51
51
  "@tiptap/extension-blockquote": "2.0.3",
@@ -102,5 +102,5 @@
102
102
  "access": "public"
103
103
  },
104
104
  "npmUnpacked": "4.15.2",
105
- "gitHead": "1b0b3229bd78b1c713901758e3bab1567d899cd6"
105
+ "gitHead": "f95337d592ce13a53032c77552666e097cd40d23"
106
106
  }
@@ -11,6 +11,8 @@ import { OrHintV3 as script$g } from './or-hint-v3/index.js';
11
11
  import { OrInputBoxV3 as script$h, InputBoxVariant } from './or-input-box-v3/index.js';
12
12
  import { OrPopoverV3 as script$i } from './or-popover-v3/index.js';
13
13
 
14
+ var m = /* @__PURE__ */ ((r) => (r.XS = "xs", r.SM = "sm", r.MD = "md", r.LG = "lg", r.XL = "xl", r))(m || {});
15
+
14
16
  const formatDate = (value, format, locale) => {
15
17
  if (typeof format === 'function') {
16
18
  return format(value, locale);
@@ -28,8 +30,6 @@ const formatMobileDate = (value, format, locale) => {
28
30
  });
29
31
  };
30
32
 
31
- var m = /* @__PURE__ */ ((r) => (r.XS = "xs", r.SM = "sm", r.MD = "md", r.LG = "lg", r.XL = "xl", r))(m || {});
32
-
33
33
  const formatMobileTime = (value, format, locale) => {
34
34
  return value.toLocaleString(locale, {
35
35
  timeStyle: 'short',