@onereach/ui-components 23.3.6 → 23.3.7-beta.5654.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.
@@ -4,8 +4,8 @@ import { B as p, O as m } from "./OrBottomSheet-CJxmY84p.mjs";
4
4
  import { O as x } from "./OrButtonGroup-Cd6tpyP3.mjs";
5
5
  import { O as f } from "./OrButton-C_hXddAf.mjs";
6
6
  import { a as T, b as d, B as c } from "./OrButton.vue_vue_type_script_lang-W1ictbKz.mjs";
7
- import { C, O as S, d as u, g as P, l as b } from "./OrCardCollection-B1zsC0GR.mjs";
8
- import { C as g, O as G } from "./OrCard-7awJu_df.mjs";
7
+ import { C, O as S, d as b, g as u, l as P } from "./OrCardCollection-B1zsC0GR.mjs";
8
+ import { C as g, O as k } from "./OrCard-7awJu_df.mjs";
9
9
  import { O as R } from "./OrCheckboxGroup-oWfQ8P5a.mjs";
10
10
  import { O as h } from "./OrCheckboxTree-D6KuOyBg.mjs";
11
11
  import { O as B } from "./OrCheckbox-CARHvboD.mjs";
@@ -19,10 +19,10 @@ import { EditorState as X } from "@codemirror/state";
19
19
  import { O as Z } from "./OrCombinedInput-DNgMGLxG.mjs";
20
20
  import { C as $, O as rr } from "./OrConfirm-Bgv4cZD5.mjs";
21
21
  import { O as or } from "./OrContextMenu-CrpiM2Jq.mjs";
22
- import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as ur } from "./OrDataGrid-O5BDSXek.mjs";
23
- import { O as br } from "./OrDateFormat-BFUOhWkH.mjs";
22
+ import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as br } from "./OrDataGrid-M7gWVa8n.mjs";
23
+ import { O as Pr } from "./OrDateFormat-BFUOhWkH.mjs";
24
24
  import { O as gr } from "./OrDatePicker-B099hQpm.mjs";
25
- import { O as kr } from "./OrDateRangePicker-D2NP4Hd2.mjs";
25
+ import { O as Gr } from "./OrDateRangePicker-D2NP4Hd2.mjs";
26
26
  import { O as Fr } from "./OrDateTimeFormat-DpLQd-pE.mjs";
27
27
  import { O as Er } from "./OrDateTimePicker-CGIojTPp.mjs";
28
28
  import { O as vr, a as zr, b as Lr, c as wr, d as Mr, e as yr, f as Ar, g as Nr, h as Hr, i as jr, j as Qr, k as Wr, l as qr, s as Jr } from "./OrDateTimePicker.vue_vue_type_script_lang-WqJrqWZ3.mjs";
@@ -35,10 +35,10 @@ import { O as ma } from "./OrErrorTag-Bo_gxhzB.mjs";
35
35
  import { O as xa } from "./OrError-B5ihH6-3.mjs";
36
36
  import { b as fa, a as la, E as Ta, O as da } from "./OrExpansionPanel-BNGPdEnp.mjs";
37
37
  import { F as Da, O as Ca } from "./OrFab-Cbg9unNc.mjs";
38
- import { O as ua } from "./OrFilterPopover-C8lXb-hJ.mjs";
39
- import { O as ba } from "./OrFilterTrigger-zfcgyC7C.mjs";
38
+ import { O as ba } from "./OrFilterPopover-C8lXb-hJ.mjs";
39
+ import { O as Pa } from "./OrFilterTrigger-zfcgyC7C.mjs";
40
40
  import { O as ga } from "./OrFilter-C8d3OmGK.mjs";
41
- import { F as ka, a as Ra, O as Fa } from "./OrFormGroup-C5sateI6.mjs";
41
+ import { F as Ga, a as Ra, O as Fa } from "./OrFormGroup-C5sateI6.mjs";
42
42
  import { O as Ea } from "./OrHint-NvbZyURY.mjs";
43
43
  import { I as va, O as za } from "./OrIconButton-BlHCLpeW.mjs";
44
44
  import { a as wa, I as Ma, O as ya } from "./OrIcon-k8cyvh-D.mjs";
@@ -52,10 +52,10 @@ import { a as to, I as so, O as Oo } from "./OrInput-DZf6KJXJ.mjs";
52
52
  import { L as po, O as mo } from "./OrLabel-BadqqO3K.mjs";
53
53
  import { L as xo, O as Vo } from "./OrLink-Vl_H8MMg.mjs";
54
54
  import { a as lo, O as To } from "./OrList-BsdJknJD.mjs";
55
- import { a as Do, b as Co, L as So, O as uo } from "./OrLoader-2SaTMxmZ.mjs";
56
- import { O as bo } from "./OrMenuItem-BHRMA0L1.mjs";
55
+ import { a as Do, b as Co, L as So, O as bo } from "./OrLoader-2SaTMxmZ.mjs";
56
+ import { O as Po } from "./OrMenuItem-BHRMA0L1.mjs";
57
57
  import { O as go } from "./OrMenu-CJT4Snay.mjs";
58
- import { M as ko, O as Ro } from "./OrModal-CQhwUYFk.mjs";
58
+ import { M as Go, O as Ro } from "./OrModal-CQhwUYFk.mjs";
59
59
  import { N as ho, O as Eo, V as Bo } from "./OrNotification-Dz3Tr1wI.mjs";
60
60
  import { O as zo } from "./OrOverlay-BjrghiC-.mjs";
61
61
  import { O as wo } from "./OrPagination-BFUGGyGy.mjs";
@@ -71,28 +71,28 @@ import { O as xe, R as Ve } from "./OrRichTooltip-D8vv5Btb.mjs";
71
71
  import { O as le } from "./OrSearch-YPg77z38.mjs";
72
72
  import { O as de, S as ce } from "./OrSegmentedControl-D5QoWe-N.mjs";
73
73
  import { O as Ce } from "./OrSelect-jPsu8Yeh.mjs";
74
- import { O as ue, S as Pe } from "./props-BxqD8LGb.mjs";
75
- import { O as Ie, a as ge } from "./OrSkeletonRect-weDKDBV_.mjs";
76
- import { O as ke } from "./OrSkeletonText-Dm8s1o0l.mjs";
77
- import { O as Fe } from "./OrSlider-Cec0WpUQ.mjs";
78
- import { S as Ee, a as Be } from "./OrSlider.vue_vue_type_script_lang-C5rLh1F0.mjs";
79
- import { O as ze } from "./OrSorting-DCAarSF1.mjs";
80
- import { O as we, a as Me, S as ye } from "./OrStatus-D4QIuE7R.mjs";
81
- import { O as Ne } from "./OrSwitch-BBd-YlXk.mjs";
82
- import { O as je } from "./OrTab-BdtxL_PY.mjs";
83
- import { O as We, a as qe, T as Je } from "./OrTabs-BUXLSz8o.mjs";
84
- import { O as Ue } from "./OrTagInput-B5TArhY_.mjs";
85
- import { O as Ye, a as Ze, T as _e } from "./OrTag-Bixe0EQq.mjs";
86
- import { O as rt, T as at } from "./OrTags-CS0bcLtx.mjs";
87
- import { O as et } from "./OrTeleport.vue3-C9kW_8PS.mjs";
88
- import { O as st } from "./OrText-3zAJU5xf.mjs";
89
- import { O as it } from "./OrTextarea-Ddnv4Ztu.mjs";
90
- import { O as mt } from "./OrTimeFormat-BmhKB6Gc.mjs";
91
- import { O as xt } from "./OrTimePicker-Du1sJ1Mh.mjs";
92
- import { O as ft } from "./OrTimeRangePicker-BRyqEYfR.mjs";
93
- import { a as Tt, O as dt, p as ct, t as Dt, b as Ct, u as St } from "./types-BwxhurSS.mjs";
74
+ import { O as be, S as ue } from "./props-BxqD8LGb.mjs";
75
+ import { b as Ie, O as ge, a as ke } from "./OrSkeletonArea-fMhHFyo1.mjs";
76
+ import { O as Re } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
77
+ import { O as he } from "./OrSlider-Cec0WpUQ.mjs";
78
+ import { S as Be, a as ve } from "./OrSlider.vue_vue_type_script_lang-C5rLh1F0.mjs";
79
+ import { O as Le } from "./OrSorting-DCAarSF1.mjs";
80
+ import { O as Me, a as ye, S as Ae } from "./OrStatus-D4QIuE7R.mjs";
81
+ import { O as He } from "./OrSwitch-BBd-YlXk.mjs";
82
+ import { O as Qe } from "./OrTab-BdtxL_PY.mjs";
83
+ import { O as qe, a as Je, T as Ke } from "./OrTabs-BUXLSz8o.mjs";
84
+ import { O as Xe } from "./OrTagInput-B5TArhY_.mjs";
85
+ import { O as Ze, a as _e, T as $e } from "./OrTag-Bixe0EQq.mjs";
86
+ import { O as at, T as ot } from "./OrTags-CS0bcLtx.mjs";
87
+ import { O as tt } from "./OrTeleport.vue3-C9kW_8PS.mjs";
88
+ import { O as Ot } from "./OrText-3zAJU5xf.mjs";
89
+ import { O as pt } from "./OrTextarea-Ddnv4Ztu.mjs";
90
+ import { O as nt } from "./OrTimeFormat-BmhKB6Gc.mjs";
91
+ import { O as Vt } from "./OrTimePicker-Du1sJ1Mh.mjs";
92
+ import { O as lt } from "./OrTimeRangePicker-BRyqEYfR.mjs";
93
+ import { a as dt, O as ct, p as Dt, t as Ct, b as St, u as bt } from "./types-BwxhurSS.mjs";
94
94
  import { O as Pt } from "./OrTooltip-DqwjoE82.mjs";
95
- import { O as It, T as gt } from "./OrTree-By3MLZUL.mjs";
95
+ import { O as gt, T as kt } from "./OrTree-By3MLZUL.mjs";
96
96
  export * from "@onereach/ui-components-common";
97
97
  export {
98
98
  t as AvatarColor,
@@ -116,7 +116,7 @@ export {
116
116
  la as ExpansionPanelColor,
117
117
  Ta as ExpansionPanelVariant,
118
118
  Da as FabColor,
119
- ka as FormGroupDirection,
119
+ Ga as FormGroupDirection,
120
120
  Ra as FormGroupSpacing,
121
121
  Oe as Formats,
122
122
  va as IconButtonColor,
@@ -136,7 +136,7 @@ export {
136
136
  Do as LoaderColor,
137
137
  Co as LoaderSize,
138
138
  So as LoaderVariant,
139
- ko as ModalSize,
139
+ Go as ModalSize,
140
140
  ho as NotificationVariant,
141
141
  o as OrAutocompleteV3,
142
142
  O as OrAvatarV3,
@@ -144,7 +144,7 @@ export {
144
144
  x as OrButtonGroupV3,
145
145
  f as OrButtonV3,
146
146
  S as OrCardCollectionV3,
147
- G as OrCardV3,
147
+ k as OrCardV3,
148
148
  R as OrCheckboxGroupV3,
149
149
  h as OrCheckboxTreeV3,
150
150
  B as OrCheckboxV3,
@@ -168,10 +168,10 @@ export {
168
168
  Dr as OrDataGridTableHeaderRow,
169
169
  Cr as OrDataGridTablePlaceholder,
170
170
  Sr as OrDataGridToolbar,
171
- ur as OrDataGridV3,
172
- br as OrDateFormatV3,
171
+ br as OrDataGridV3,
172
+ Pr as OrDateFormatV3,
173
173
  gr as OrDatePickerV3,
174
- kr as OrDateRangePickerV3,
174
+ Gr as OrDateRangePickerV3,
175
175
  Fr as OrDateTimeFormatV3,
176
176
  vr as OrDateTimePickerDateControl,
177
177
  zr as OrDateTimePickerDateSelect,
@@ -190,8 +190,8 @@ export {
190
190
  xa as OrErrorV3,
191
191
  da as OrExpansionPanelV3,
192
192
  Ca as OrFabV3,
193
- ua as OrFilterPopoverV3,
194
- ba as OrFilterTriggerV3,
193
+ ba as OrFilterPopoverV3,
194
+ Pa as OrFilterTriggerV3,
195
195
  ga as OrFilterV3,
196
196
  Fa as OrFormGroupV3,
197
197
  Ea as OrHintV3,
@@ -207,8 +207,8 @@ export {
207
207
  Vo as OrLinkV3,
208
208
  lo as OrListItem,
209
209
  To as OrListV3,
210
- uo as OrLoaderV3,
211
- bo as OrMenuItemV3,
210
+ bo as OrLoaderV3,
211
+ Po as OrMenuItemV3,
212
212
  go as OrMenuV3,
213
213
  Ro as OrModalV3,
214
214
  Eo as OrNotificationV3,
@@ -226,34 +226,35 @@ export {
226
226
  le as OrSearchV3,
227
227
  de as OrSegmentedControlV3,
228
228
  Ce as OrSelectV3,
229
- ue as OrSidebarV3,
230
- Ie as OrSkeletonCircleV3,
231
- ge as OrSkeletonRectV3,
232
- ke as OrSkeletonTextV3,
233
- Fe as OrSliderV3,
234
- ze as OrSortingV3,
235
- we as OrStatusV3,
236
- Ne as OrSwitchV3,
237
- je as OrTabV3,
238
- We as OrTabsV3,
239
- Ue as OrTagInputV3,
240
- Ye as OrTagV3,
241
- rt as OrTagsV3,
242
- et as OrTeleportV3,
243
- st as OrTextV3,
244
- it as OrTextareaV3,
245
- mt as OrTimeFormatV3,
246
- xt as OrTimePickerV3,
247
- ft as OrTimeRangePickerV3,
248
- Tt as OrToastContainerV3,
249
- dt as OrToastV3,
229
+ be as OrSidebarV3,
230
+ Ie as OrSkeletonAreaV3,
231
+ ge as OrSkeletonCircleV3,
232
+ ke as OrSkeletonRectV3,
233
+ Re as OrSkeletonTextV3,
234
+ he as OrSliderV3,
235
+ Le as OrSortingV3,
236
+ Me as OrStatusV3,
237
+ He as OrSwitchV3,
238
+ Qe as OrTabV3,
239
+ qe as OrTabsV3,
240
+ Xe as OrTagInputV3,
241
+ Ze as OrTagV3,
242
+ at as OrTagsV3,
243
+ tt as OrTeleportV3,
244
+ Ot as OrTextV3,
245
+ pt as OrTextareaV3,
246
+ nt as OrTimeFormatV3,
247
+ Vt as OrTimePickerV3,
248
+ lt as OrTimeRangePickerV3,
249
+ dt as OrToastContainerV3,
250
+ ct as OrToastV3,
250
251
  Pt as OrTooltipV3,
251
- It as OrTreeV3,
252
+ gt as OrTreeV3,
252
253
  Ao as PopoverPlacement,
253
254
  No as PopoverVariant,
254
255
  Wo as ProgressColor,
255
256
  qo as ProgressType,
256
- ct as PropsV3,
257
+ Dt as PropsV3,
257
258
  re as RatingVariant,
258
259
  ee as ResizeablePanelPadding,
259
260
  te as ResizeablePanelPlacement,
@@ -261,28 +262,28 @@ export {
261
262
  me as RichTextEditorTooltips,
262
263
  Ve as RichTooltipBehavior,
263
264
  ce as SegmentedControlSize,
264
- Pe as SidebarPlacement,
265
- Ee as SliderColor,
266
- Be as SliderOrientation,
267
- Me as StatusSize,
268
- ye as StatusVariant,
269
- qe as TabsSpacing,
270
- Je as TabsVariant,
271
- Ze as TagColor,
272
- _e as TagVariant,
273
- at as TagsOverflow,
274
- gt as TreeNodeDropPosition,
275
- Dt as TypesV3,
265
+ ue as SidebarPlacement,
266
+ Be as SliderColor,
267
+ ve as SliderOrientation,
268
+ ye as StatusSize,
269
+ Ae as StatusVariant,
270
+ Je as TabsSpacing,
271
+ Ke as TabsVariant,
272
+ _e as TagColor,
273
+ $e as TagVariant,
274
+ ot as TagsOverflow,
275
+ kt as TreeNodeDropPosition,
276
+ Ct as TypesV3,
276
277
  Bo as VariantToIconName,
277
278
  aa as approximateFileSize,
278
- u as defaultViewModes,
279
+ b as defaultViewModes,
279
280
  Hr as formatDate,
280
281
  jr as formatMobileDate,
281
282
  Qr as formatMobileTime,
282
283
  Wr as formatTime,
283
284
  qr as getCurrentDate,
284
285
  Ur as getNextMonthDate,
285
- P as gridView,
286
+ u as gridView,
286
287
  q as html,
287
288
  Ho as isPrevented,
288
289
  N as javascript,
@@ -290,9 +291,9 @@ export {
290
291
  Q as jsonParseLinter,
291
292
  M as lintGutter,
292
293
  y as linter,
293
- b as listView,
294
+ P as listView,
294
295
  Jr as scrollToElementWithinContainer,
295
- Ct as useQueueV3,
296
- St as useToastV3
296
+ St as useQueueV3,
297
+ bt as useToastV3
297
298
  };
298
299
  //# sourceMappingURL=index.mjs.map
@@ -1,3 +1,4 @@
1
1
  export { default as OrSkeletonCircleV3 } from './or-skeleton-circle-v3/OrSkeletonCircle.vue';
2
2
  export { default as OrSkeletonRectV3 } from './or-skeleton-rect-v3/OrSkeletonRect.vue';
3
3
  export { default as OrSkeletonTextV3 } from './or-skeleton-text-v3/OrSkeletonText.vue';
4
+ export { default as OrSkeletonAreaV3 } from './or-skeleton-area-v3/OrSkeletonArea.vue';
@@ -0,0 +1,56 @@
1
+ import { IconSize } from '@onereach/ui-components.or-icon-v3';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ animated: {
4
+ type: BooleanConstructor;
5
+ required: false;
6
+ default: boolean;
7
+ };
8
+ width: {
9
+ type: (StringConstructor | NumberConstructor)[];
10
+ required: false;
11
+ default: string;
12
+ };
13
+ height: {
14
+ type: (StringConstructor | NumberConstructor)[];
15
+ required: false;
16
+ default: number;
17
+ };
18
+ icon: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ IconSize: typeof IconSize;
24
+ root: import("vue").Ref<HTMLElement | undefined>;
25
+ rootStyles: import("vue").ComputedRef<string[]>;
26
+ rootStyle: import("vue").ComputedRef<{
27
+ width: string;
28
+ height: string;
29
+ }>;
30
+ iconStyles: string[];
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ animated: {
33
+ type: BooleanConstructor;
34
+ required: false;
35
+ default: boolean;
36
+ };
37
+ width: {
38
+ type: (StringConstructor | NumberConstructor)[];
39
+ required: false;
40
+ default: string;
41
+ };
42
+ height: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ required: false;
45
+ default: number;
46
+ };
47
+ icon: {
48
+ type: StringConstructor;
49
+ required: true;
50
+ };
51
+ }>>, {
52
+ height: string | number;
53
+ width: string | number;
54
+ animated: boolean;
55
+ }, {}>;
56
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const SkeletonRoot: string[];
2
+ export declare const SkeletonArea: string[];
3
+ export declare const Icon: string[];
4
+ export declare const SkeletonAnimated: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "23.3.6",
3
+ "version": "23.3.7-beta.5654.0",
4
4
  "description": "Vue components library for v3",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -46,8 +46,8 @@
46
46
  "@codemirror/view": "^6",
47
47
  "@floating-ui/dom": "1.5.3",
48
48
  "@lezer/highlight": "*",
49
- "@onereach/styles": "^23.3.6",
50
- "@onereach/ui-components-common": "^23.3.6",
49
+ "@onereach/styles": "^23.3.7-beta.5654.0",
50
+ "@onereach/ui-components-common": "^23.3.7-beta.5654.0",
51
51
  "@splidejs/splide": "4.0.6",
52
52
  "@tiptap/core": "2.0.3",
53
53
  "@tiptap/extension-blockquote": "2.0.3",
@@ -102,6 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "npmUnpacked": "4.15.2",
106
- "gitHead": "55a2102dd50376ed53d9910d64f09ce0c2fd02e8"
105
+ "npmUnpacked": "4.15.2"
107
106
  }
@@ -1,24 +0,0 @@
1
- import { _ as f, a as _ } from "./OrSkeletonText-Dm8s1o0l.mjs";
2
- import { openBlock as o, createElementBlock as r, normalizeClass as t, normalizeStyle as s } from "vue";
3
- import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- function m(e, l, a, c, i, p) {
5
- return o(), r("div", {
6
- ref: "root",
7
- class: t(e.rootStyles),
8
- style: s(e.rootStyle)
9
- }, null, 6);
10
- }
11
- const S = /* @__PURE__ */ n(f, [["render", m]]);
12
- function $(e, l, a, c, i, p) {
13
- return o(), r("div", {
14
- ref: "root",
15
- class: t(e.rootStyles),
16
- style: s(e.rootStyle)
17
- }, null, 6);
18
- }
19
- const k = /* @__PURE__ */ n(_, [["render", $]]);
20
- export {
21
- S as O,
22
- k as a
23
- };
24
- //# sourceMappingURL=OrSkeletonRect-weDKDBV_.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrSkeletonRect-weDKDBV_.mjs","sources":["../../../components/or-skeleton-v3/src/or-skeleton-circle-v3/OrSkeletonCircle.vue","../../../components/or-skeleton-v3/src/or-skeleton-rect-v3/OrSkeletonRect.vue"],"sourcesContent":["<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n :style=\"rootStyle\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { pxToRem } from '@onereach/ui-components-common/utils';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SkeletonAnimated, SkeletonCircle, SkeletonRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSkeletonCircle',\n\n props: {\n animated: {\n type: Boolean,\n required: false,\n default: true,\n },\n\n size: {\n type: [Number, String],\n required: false,\n default: 40,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-skeleton-v3',\n 'or-skeleton-circle',\n ...SkeletonRoot,\n ...SkeletonCircle,\n ...(props.animated ? SkeletonAnimated : []),\n ]);\n\n const rootStyle = computed(() => {\n const size = props.size ?? 40; // 40px - medium OrAvatar\n const sizeStyle = typeof size === 'number'\n ? pxToRem(size)\n : size;\n\n return {\n 'width': sizeStyle,\n 'min-width': sizeStyle,\n 'height': sizeStyle,\n 'min-height': sizeStyle,\n };\n });\n\n return {\n root,\n rootStyles,\n rootStyle,\n };\n },\n});\n</script>\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n :style=\"rootStyle\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { pxToRem } from '@onereach/ui-components-common/utils';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SkeletonAnimated, SkeletonRect, SkeletonRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSkeletonRect',\n\n props: {\n animated: {\n type: Boolean,\n required: false,\n default: true,\n },\n\n width: {\n type: [Number, String],\n required: false,\n default: '100%',\n },\n\n height: {\n type: [Number, String],\n required: false,\n default: 36,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-skeleton-v3',\n 'or-skeleton-rect',\n ...SkeletonRoot,\n ...SkeletonRect,\n ...(props.animated ? SkeletonAnimated : []),\n ]);\n\n const rootStyle = computed(() => {\n const width = props.width ?? '100%';\n const height = props.height ?? 36; // 36px - default OrInput height\n\n return {\n 'width': typeof width === 'number' ? pxToRem(width) : width,\n 'height': typeof height === 'number' ? pxToRem(height) : height,\n };\n });\n\n return {\n root,\n rootStyles,\n rootStyle,\n };\n },\n});\n</script>\n"],"names":["_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_normalizeClass"],"mappings":";;;SAEUA,EAAMC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAA;SACNC,EAAY,GAAAC,EAAA,OAAA;AAAA,IACjB,KAAK;AAAA,IAAA,OAAAC,EAAAR,EAAA,UAAA;AAAA;;;;SCFAD,EAAMC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAA;SACNC,EAAY,GAAAC,EAAA,OAAA;AAAA,IACjB,KAAK;AAAA,IAAA,OAAAC,EAAAR,EAAA,UAAA;AAAA;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrSkeletonText-Dm8s1o0l.mjs","sources":["../../../components/or-skeleton-v3/src/or-skeleton-circle-v3/styles.ts","../../../components/or-skeleton-v3/src/or-skeleton-circle-v3/OrSkeletonCircle.vue","../../../components/or-skeleton-v3/src/or-skeleton-rect-v3/styles.ts","../../../components/or-skeleton-v3/src/or-skeleton-rect-v3/OrSkeletonRect.vue","../../../components/or-skeleton-v3/src/or-skeleton-text-v3/styles.ts","../../../components/or-skeleton-v3/src/or-skeleton-text-v3/OrSkeletonText.vue"],"sourcesContent":["export const SkeletonRoot: string[] = [\n // Position\n 'relative',\n\n // Layout\n 'overflow-hidden',\n\n // Box\n 'p-0',\n\n // Borders\n 'border-0',\n\n // Theme\n 'bg-skeletons-gradient',\n 'dark:bg-skeletons-gradient-dark',\n\n // Background\n 'bg-repeat',\n];\n\nexport const SkeletonCircle: string[] = [\n // Box\n 'rounded-full',\n];\n\nexport const SkeletonAnimated: string[] = [\n // Background\n 'bg-[length:200%]',\n\n // Animation\n 'animate-skeleton-loader',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n :style=\"rootStyle\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { pxToRem } from '@onereach/ui-components-common/utils';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SkeletonAnimated, SkeletonCircle, SkeletonRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSkeletonCircle',\n\n props: {\n animated: {\n type: Boolean,\n required: false,\n default: true,\n },\n\n size: {\n type: [Number, String],\n required: false,\n default: 40,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-skeleton-v3',\n 'or-skeleton-circle',\n ...SkeletonRoot,\n ...SkeletonCircle,\n ...(props.animated ? SkeletonAnimated : []),\n ]);\n\n const rootStyle = computed(() => {\n const size = props.size ?? 40; // 40px - medium OrAvatar\n const sizeStyle = typeof size === 'number'\n ? pxToRem(size)\n : size;\n\n return {\n 'width': sizeStyle,\n 'min-width': sizeStyle,\n 'height': sizeStyle,\n 'min-height': sizeStyle,\n };\n });\n\n return {\n root,\n rootStyles,\n rootStyle,\n };\n },\n});\n</script>\n","export const SkeletonRoot: string[] = [\n // Position\n 'relative',\n\n // Layout\n 'overflow-hidden',\n\n // Box\n 'p-0',\n\n // Borders\n 'border-0',\n\n // Theme\n 'bg-skeletons-gradient',\n 'dark:bg-skeletons-gradient-dark',\n\n // Background\n 'bg-repeat',\n];\n\nexport const SkeletonRect: string[] = [\n // Box\n 'rounded-md',\n];\n\nexport const SkeletonAnimated: string[] = [\n // Background\n 'bg-[length:200%]',\n\n // Animation\n 'animate-skeleton-loader',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n :style=\"rootStyle\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { pxToRem } from '@onereach/ui-components-common/utils';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SkeletonAnimated, SkeletonRect, SkeletonRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSkeletonRect',\n\n props: {\n animated: {\n type: Boolean,\n required: false,\n default: true,\n },\n\n width: {\n type: [Number, String],\n required: false,\n default: '100%',\n },\n\n height: {\n type: [Number, String],\n required: false,\n default: 36,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-skeleton-v3',\n 'or-skeleton-rect',\n ...SkeletonRoot,\n ...SkeletonRect,\n ...(props.animated ? SkeletonAnimated : []),\n ]);\n\n const rootStyle = computed(() => {\n const width = props.width ?? '100%';\n const height = props.height ?? 36; // 36px - default OrInput height\n\n return {\n 'width': typeof width === 'number' ? pxToRem(width) : width,\n 'height': typeof height === 'number' ? pxToRem(height) : height,\n };\n });\n\n return {\n root,\n rootStyles,\n rootStyle,\n };\n },\n});\n</script>\n","export const SkeletonRoot: string[] = [\n // Position\n 'relative',\n\n // Layout\n 'overflow-hidden',\n\n // Box\n 'p-0',\n\n // Borders\n 'border-0',\n\n // Theme\n 'bg-skeletons-gradient',\n 'dark:bg-skeletons-gradient-dark',\n\n // Background\n 'bg-repeat',\n];\n\nexport const SkeletonTextContainerRoot: string[] = [\n // Layout\n 'flex',\n 'flex-col',\n\n // Box\n 'h-auto',\n];\n\nexport const SkeletonText: string[] = [\n // Box\n 'w-full',\n 'rounded-md',\n];\n\nexport const SkeletonAnimated: string[] = [\n // Background\n 'bg-[length:200%]',\n\n // Animation\n 'animate-skeleton-loader',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"containerStyles\"\n :style=\"containerStyle\"\n >\n <div\n v-for=\"key in lineKeys\"\n :key=\"key\"\n :class=\"rowStyles\"\n :style=\"rowStyle\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { pxToRem } from '@onereach/ui-components-common/utils';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SkeletonAnimated, SkeletonRoot, SkeletonText, SkeletonTextContainerRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSkeletonText',\n\n props: {\n animated: {\n type: Boolean,\n required: false,\n default: true,\n },\n\n linesCount: {\n type: Number,\n required: false,\n default: 1,\n },\n\n width: {\n type: [Number, String],\n required: false,\n default: '100%',\n },\n\n fontSize: {\n type: Number,\n required: false,\n default: 16,\n },\n\n lineHeight: {\n type: Number,\n required: false,\n default: 24,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const containerStyles = computed(() => [\n 'or-skeleton-text-root',\n ...SkeletonTextContainerRoot,\n ]);\n\n const containerStyle = computed(() => {\n const width = props.width ?? '100%';\n\n return {\n 'width': typeof width === 'number' ? pxToRem(width) : width,\n };\n });\n\n const rowStyles = computed(() => [\n 'or-skeleton-v3',\n 'or-skeleton-text',\n ...SkeletonRoot,\n ...SkeletonText,\n ...(props.animated ? SkeletonAnimated : []),\n ]);\n\n const rowStyle = computed(() => {\n const height = props.fontSize ?? 16;\n const margin = ((props.lineHeight ?? 24) - height) / 2;\n\n return {\n 'height': typeof height === 'number' ? pxToRem(height) : height,\n 'margin': `${typeof margin === 'number' ? pxToRem(margin) : margin} 0`,\n };\n });\n\n // State\n const lineKeys = computed(() => [...Array(props.linesCount).keys()]);\n\n return {\n root,\n containerStyles,\n containerStyle,\n rowStyles,\n rowStyle,\n lineKeys,\n };\n },\n});\n</script>\n"],"names":["SkeletonRoot","SkeletonCircle","SkeletonAnimated","_sfc_main$2","defineComponent","props","root","ref","rootStyles","computed","rootStyle","size","sizeStyle","pxToRem","SkeletonRect","_sfc_main$1","width","height","SkeletonTextContainerRoot","SkeletonText","_sfc_main","containerStyles","containerStyle","rowStyles","rowStyle","margin","lineKeys","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_normalizeClass","_Fragment","_renderList","key"],"mappings":";;;AAAO,MAAMA,IAAyB;AAAA;AAAA,EAEpC;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA;AAAA,EAGA;AACF,GAEaC,IAA2B;AAAA;AAAA,EAEtC;AACF,GAEaC,IAA6B;AAAA;AAAA,EAExC;AAAA;AAAA,EAGA;AACF,GClBAC,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IAEA,MAAM;AAAA,MACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,QAAQ;AAAA,IACN;AAAA,EACF;AAAA,EAEA,MAAMC,GAAO;AAEX,UAAMC,IAAOC,KAGPC,IAAaC,EAAS,MAAM;AAAA,MAChC;AAAA,MACA;AAAA,MACA,GAAGT;AAAAA,MACH,GAAGC;AAAA,MACH,GAAII,EAAM,WAAWH,IAAmB,CAAC;AAAA,IAAA,CAC1C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