@pequity/squirrel 1.0.20 → 1.0.21

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.
Files changed (146) hide show
  1. package/dist/cjs/chunks/_plugin-vue_export-helper.js +9 -0
  2. package/dist/cjs/chunks/p-action-bar.js +60 -0
  3. package/dist/cjs/chunks/p-card.js +28 -0
  4. package/dist/cjs/chunks/p-checkbox.js +24 -0
  5. package/dist/cjs/chunks/p-dropdown-select.js +414 -0
  6. package/dist/cjs/chunks/p-input-percent.js +53 -0
  7. package/dist/cjs/chunks/p-pagination-info.js +66 -0
  8. package/dist/cjs/chunks/p-pagination.js +122 -0
  9. package/dist/cjs/chunks/p-ring-loader.js +81 -0
  10. package/dist/cjs/chunks/p-select-btn.js +97 -0
  11. package/dist/cjs/chunks/p-select.js +123 -0
  12. package/dist/cjs/chunks/p-table-loader.js +70 -0
  13. package/dist/cjs/chunks/p-tabs.js +52 -0
  14. package/dist/cjs/config.js +105 -0
  15. package/dist/cjs/currency.js +9 -0
  16. package/dist/cjs/dom.js +27 -0
  17. package/dist/cjs/index.js +976 -0
  18. package/dist/cjs/inputClassesMixin.js +50 -0
  19. package/dist/cjs/inputClassesShared.js +76 -0
  20. package/dist/cjs/listKeyboardNavigation.js +110 -0
  21. package/dist/cjs/number.js +9 -0
  22. package/dist/cjs/object.js +4 -0
  23. package/dist/cjs/p-action-bar.js +3 -0
  24. package/dist/cjs/p-alert.js +65 -0
  25. package/dist/cjs/p-avatar.js +71 -0
  26. package/dist/cjs/p-btn.js +361 -0
  27. package/dist/cjs/p-card.js +3 -0
  28. package/dist/cjs/p-checkbox.js +3 -0
  29. package/dist/cjs/p-chips.js +110 -0
  30. package/dist/cjs/p-close-btn.js +36 -0
  31. package/dist/cjs/p-date-picker.js +139 -0
  32. package/dist/cjs/p-drawer.js +253 -0
  33. package/dist/cjs/p-dropdown-select.js +3 -0
  34. package/dist/cjs/p-dropdown.js +138 -0
  35. package/dist/cjs/p-file-upload.js +21 -0
  36. package/dist/cjs/p-info-icon.js +35 -0
  37. package/dist/cjs/p-inline-date-picker.js +142 -0
  38. package/dist/cjs/p-input-number.js +146 -0
  39. package/dist/cjs/p-input-percent.js +3 -0
  40. package/dist/cjs/p-input-search.js +110 -0
  41. package/dist/cjs/p-input.js +89 -0
  42. package/dist/cjs/p-loading.js +38 -0
  43. package/dist/cjs/p-modal.js +369 -0
  44. package/dist/cjs/p-pagination-info.js +3 -0
  45. package/dist/cjs/p-pagination.js +3 -0
  46. package/dist/cjs/p-progress-bar.js +41 -0
  47. package/dist/cjs/p-ring-loader.js +3 -0
  48. package/dist/cjs/p-select-btn.js +3 -0
  49. package/dist/cjs/p-select-list.js +4 -0
  50. package/dist/cjs/p-select-pill.js +111 -0
  51. package/dist/cjs/p-select.js +3 -0
  52. package/dist/cjs/p-skeleton-loader.js +73 -0
  53. package/dist/cjs/p-table-filter-icon.js +20 -0
  54. package/dist/cjs/p-table-header-cell.js +75 -0
  55. package/dist/cjs/p-table-loader.js +3 -0
  56. package/dist/cjs/p-table-sort.js +8 -0
  57. package/dist/cjs/p-table-td.js +88 -0
  58. package/dist/cjs/p-table.js +12 -0
  59. package/dist/cjs/p-tabs.js +3 -0
  60. package/dist/cjs/p-textarea.js +73 -0
  61. package/dist/cjs/p-toggle.js +114 -0
  62. package/dist/cjs/pagination.js +29 -0
  63. package/dist/cjs/string.js +12 -0
  64. package/dist/cjs/tailwind.js +4353 -0
  65. package/dist/cjs/text.js +16 -0
  66. package/dist/cjs/useInputClasses.js +44 -0
  67. package/dist/cjs/usePLoading.js +35 -0
  68. package/dist/cjs/usePModal.js +21 -0
  69. package/dist/cjs/usePTableColResize.js +81 -0
  70. package/dist/cjs/usePTableRowVirtualizer.js +31 -0
  71. package/dist/cjs/useSelectList.js +256 -0
  72. package/dist/es/chunks/_plugin-vue_export-helper.js +10 -0
  73. package/dist/es/chunks/p-action-bar.js +61 -0
  74. package/dist/es/chunks/p-card.js +29 -0
  75. package/dist/es/chunks/p-checkbox.js +25 -0
  76. package/dist/es/chunks/p-dropdown-select.js +415 -0
  77. package/dist/es/chunks/p-input-percent.js +54 -0
  78. package/dist/es/chunks/p-pagination-info.js +67 -0
  79. package/dist/es/chunks/p-pagination.js +123 -0
  80. package/dist/es/chunks/p-ring-loader.js +82 -0
  81. package/dist/es/chunks/p-select-btn.js +98 -0
  82. package/dist/es/chunks/p-select.js +124 -0
  83. package/dist/es/chunks/p-table-loader.js +71 -0
  84. package/dist/es/chunks/p-tabs.js +53 -0
  85. package/dist/es/config.js +105 -0
  86. package/dist/es/currency.js +9 -0
  87. package/dist/es/dom.js +27 -0
  88. package/dist/es/index.js +978 -0
  89. package/dist/es/inputClassesMixin.js +51 -0
  90. package/dist/es/inputClassesShared.js +76 -0
  91. package/dist/es/listKeyboardNavigation.js +110 -0
  92. package/dist/es/number.js +9 -0
  93. package/dist/es/object.js +4 -0
  94. package/dist/es/p-action-bar.js +4 -0
  95. package/dist/es/p-alert.js +66 -0
  96. package/dist/es/p-avatar.js +72 -0
  97. package/dist/es/p-btn.js +362 -0
  98. package/dist/es/p-card.js +4 -0
  99. package/dist/es/p-checkbox.js +4 -0
  100. package/dist/es/p-chips.js +111 -0
  101. package/dist/es/p-close-btn.js +37 -0
  102. package/dist/es/p-date-picker.js +140 -0
  103. package/dist/es/p-drawer.js +254 -0
  104. package/dist/es/p-dropdown-select.js +4 -0
  105. package/dist/es/p-dropdown.js +139 -0
  106. package/dist/es/p-file-upload.js +21 -0
  107. package/dist/es/p-info-icon.js +36 -0
  108. package/dist/es/p-inline-date-picker.js +143 -0
  109. package/dist/es/p-input-number.js +147 -0
  110. package/dist/es/p-input-percent.js +4 -0
  111. package/dist/es/p-input-search.js +111 -0
  112. package/dist/es/p-input.js +90 -0
  113. package/dist/es/p-loading.js +39 -0
  114. package/dist/es/p-modal.js +370 -0
  115. package/dist/es/p-pagination-info.js +4 -0
  116. package/dist/es/p-pagination.js +4 -0
  117. package/dist/es/p-progress-bar.js +42 -0
  118. package/dist/es/p-ring-loader.js +4 -0
  119. package/dist/es/p-select-btn.js +4 -0
  120. package/dist/es/p-select-list.js +4 -0
  121. package/dist/es/p-select-pill.js +112 -0
  122. package/dist/es/p-select.js +4 -0
  123. package/dist/es/p-skeleton-loader.js +74 -0
  124. package/dist/es/p-table-filter-icon.js +21 -0
  125. package/dist/es/p-table-header-cell.js +76 -0
  126. package/dist/es/p-table-loader.js +4 -0
  127. package/dist/es/p-table-sort.js +8 -0
  128. package/dist/es/p-table-td.js +89 -0
  129. package/dist/es/p-table.js +12 -0
  130. package/dist/es/p-tabs.js +4 -0
  131. package/dist/es/p-textarea.js +74 -0
  132. package/dist/es/p-toggle.js +115 -0
  133. package/dist/es/pagination.js +29 -0
  134. package/dist/es/string.js +12 -0
  135. package/dist/es/tailwind.js +4353 -0
  136. package/dist/es/text.js +16 -0
  137. package/dist/es/useInputClasses.js +44 -0
  138. package/dist/es/usePLoading.js +35 -0
  139. package/dist/es/usePModal.js +21 -0
  140. package/dist/es/usePTableColResize.js +81 -0
  141. package/dist/es/usePTableRowVirtualizer.js +31 -0
  142. package/dist/es/useSelectList.js +256 -0
  143. package/dist/style.css +2124 -1
  144. package/package.json +26 -24
  145. package/dist/squirrel.cjs.js +0 -5
  146. package/dist/squirrel.es.js +0 -8220
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ const pInfoIcon = require("./p-info-icon.js");
3
+ const inputClassesMixin = require("./inputClassesMixin.js");
4
+ const vueCurrencyInput = require("vue-currency-input");
5
+ const vue = require("vue");
6
+ const lodashEs = require("lodash-es");
7
+ const number = require("./number.js");
8
+ const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
9
+ const ALL_OPTIONS = [
10
+ "locale",
11
+ "currency",
12
+ "currencyDisplay",
13
+ "hideGroupingSeparatorOnFocus",
14
+ "hideCurrencySymbolOnFocus",
15
+ "hideNegligibleDecimalDigitsOnFocus",
16
+ "precision",
17
+ "autoDecimalDigits",
18
+ "valueRange",
19
+ "useGrouping",
20
+ "valueScaling"
21
+ ];
22
+ const _sfc_main = vue.defineComponent({
23
+ name: "PInputNumber",
24
+ components: {
25
+ PInfoIcon: pInfoIcon
26
+ },
27
+ mixins: [inputClassesMixin],
28
+ inheritAttrs: false,
29
+ props: {
30
+ modelValue: {
31
+ type: [Number, String],
32
+ default: null
33
+ },
34
+ label: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ errorMsg: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ required: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ selectOnClick: {
47
+ type: Boolean,
48
+ default: true
49
+ },
50
+ tooltipText: {
51
+ type: String,
52
+ default: ""
53
+ }
54
+ },
55
+ emits: ["update:modelValue", "change"],
56
+ setup(props, { attrs, emit, expose }) {
57
+ const DEFAULTS = {
58
+ locale: "en-US",
59
+ currency: "USD",
60
+ precision: 0,
61
+ currencyDisplay: "hidden"
62
+ };
63
+ const inputCurrencyOptions = vue.computed(() => {
64
+ ALL_OPTIONS.forEach((key) => {
65
+ const attr = attrs[lodashEs.kebabCase(key)];
66
+ if (attr && typeof attr !== "undefined") {
67
+ DEFAULTS[key] = attr;
68
+ }
69
+ });
70
+ return DEFAULTS;
71
+ });
72
+ const { inputRef, numberValue, setValue } = vueCurrencyInput.useCurrencyInput(
73
+ inputCurrencyOptions.value,
74
+ false
75
+ );
76
+ vue.watch(numberValue, (value) => {
77
+ emit("update:modelValue", number.toNumberOrNull(value));
78
+ });
79
+ vue.watch(
80
+ () => props.modelValue,
81
+ (value) => {
82
+ setValue(number.toNumberOrNull(value));
83
+ }
84
+ );
85
+ const computedAttrs = vue.computed(() => {
86
+ const { class: classes, style: style2, ...rest } = attrs;
87
+ return rest;
88
+ });
89
+ const style = vue.computed(() => {
90
+ return attrs.style;
91
+ });
92
+ const focus = () => {
93
+ props.selectOnClick && inputRef.value.select();
94
+ };
95
+ expose({ setValue });
96
+ return { inputRef, computedAttrs, style, focus };
97
+ }
98
+ });
99
+ const _hoisted_1 = ["data-has-error"];
100
+ const _hoisted_2 = { class: "flex flex-row items-center" };
101
+ const _hoisted_3 = { class: "relative w-full" };
102
+ const _hoisted_4 = { key: 0 };
103
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
104
+ const _component_PInfoIcon = vue.resolveComponent("PInfoIcon");
105
+ return vue.openBlock(), vue.createElementBlock("div", {
106
+ class: vue.normalizeClass([{ hidden: _ctx.$attrs.hidden }, _ctx.$attrs.class]),
107
+ "data-has-error": !!_ctx.errorMsg,
108
+ style: vue.normalizeStyle(_ctx.style)
109
+ }, [
110
+ vue.createElementVNode("div", _hoisted_2, [
111
+ vue.renderSlot(_ctx.$slots, "label", {
112
+ label: _ctx.label,
113
+ labelClasses: _ctx.labelClasses
114
+ }, () => [
115
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", {
116
+ key: 0,
117
+ class: vue.normalizeClass(_ctx.labelClasses)
118
+ }, vue.toDisplayString(_ctx.label), 3)) : vue.createCommentVNode("", true)
119
+ ]),
120
+ _ctx.tooltipText ? (vue.openBlock(), vue.createBlock(_component_PInfoIcon, {
121
+ key: 0,
122
+ text: _ctx.tooltipText,
123
+ class: "ml-1"
124
+ }, null, 8, ["text"])) : vue.createCommentVNode("", true)
125
+ ]),
126
+ vue.createElementVNode("div", _hoisted_3, [
127
+ !!_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
128
+ vue.renderSlot(_ctx.$slots, "prefix")
129
+ ])) : vue.createCommentVNode("", true),
130
+ vue.createElementVNode("input", vue.mergeProps({
131
+ ref: "inputRef",
132
+ type: "text"
133
+ }, _ctx.computedAttrs, {
134
+ class: _ctx.inputClasses,
135
+ onFocus: _cache[0] || (_cache[0] = (...args) => _ctx.focus && _ctx.focus(...args))
136
+ }), null, 16)
137
+ ]),
138
+ vue.withDirectives(vue.createElementVNode("div", {
139
+ class: vue.normalizeClass(_ctx.errorMsgClasses)
140
+ }, vue.toDisplayString(_ctx.errorMsg), 3), [
141
+ [vue.vShow, _ctx.errorMsg]
142
+ ])
143
+ ], 14, _hoisted_1);
144
+ }
145
+ const PInputNumber = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
146
+ module.exports = PInputNumber;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const pInputPercent_vue_vue_type_script_setup_true_lang = require("./chunks/p-input-percent.js");
3
+ module.exports = pInputPercent_vue_vue_type_script_setup_true_lang._sfc_main;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ const pInput = require("./p-input.js");
3
+ const inputClassesShared = require("./inputClassesShared.js");
4
+ const vue = require("vue");
5
+ const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
6
+ const _sfc_main = vue.defineComponent({
7
+ name: "PInputSearch",
8
+ components: {
9
+ PInput: pInput
10
+ },
11
+ inheritAttrs: false,
12
+ props: {
13
+ modelValue: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ size: {
18
+ type: String,
19
+ default: "md",
20
+ validator(value) {
21
+ return Object.keys(inputClassesShared.INPUT_SIZES).includes(value);
22
+ }
23
+ },
24
+ showEnterIcon: {
25
+ type: Boolean,
26
+ default: false
27
+ }
28
+ },
29
+ emits: ["update:modelValue", "enter"],
30
+ data() {
31
+ return {
32
+ query: this.modelValue,
33
+ showEnterIconOnFocus: false
34
+ };
35
+ },
36
+ computed: {
37
+ searchIconClasses() {
38
+ return `search search-${this.size}`;
39
+ },
40
+ enterIconClasses() {
41
+ return `enter enter-${this.size}`;
42
+ },
43
+ clearIconClasses() {
44
+ return `clear clear-${this.size}`;
45
+ }
46
+ },
47
+ watch: {
48
+ modelValue(value) {
49
+ this.query = value;
50
+ },
51
+ query(value) {
52
+ this.$emit("update:modelValue", value);
53
+ }
54
+ },
55
+ methods: {
56
+ clearSearch() {
57
+ this.query = "";
58
+ requestAnimationFrame(() => {
59
+ this.$refs.searchInput.$el.querySelector("input").focus();
60
+ });
61
+ },
62
+ keydownEnter() {
63
+ this.$emit("enter", this.query);
64
+ }
65
+ }
66
+ });
67
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
+ const _component_PInput = vue.resolveComponent("PInput");
69
+ const _directive_tooltip = vue.resolveDirective("tooltip");
70
+ return vue.openBlock(), vue.createBlock(_component_PInput, vue.mergeProps({
71
+ ref: "searchInput",
72
+ modelValue: _ctx.query,
73
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.query = $event),
74
+ size: _ctx.size
75
+ }, _ctx.$attrs, {
76
+ role: "searchbox",
77
+ onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.showEnterIconOnFocus = true),
78
+ onFocusout: _cache[3] || (_cache[3] = ($event) => _ctx.showEnterIconOnFocus = false),
79
+ onKeydown: vue.withKeys(_ctx.keydownEnter, ["enter"])
80
+ }), {
81
+ prefix: vue.withCtx(() => [
82
+ vue.createElementVNode("i", {
83
+ class: vue.normalizeClass(["icon absolute bg-no-repeat outline-none", _ctx.searchIconClasses])
84
+ }, null, 2)
85
+ ]),
86
+ suffix: vue.withCtx(() => [
87
+ _ctx.query && _ctx.showEnterIcon && _ctx.showEnterIconOnFocus ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("i", {
88
+ key: 0,
89
+ class: vue.normalizeClass(["icon absolute bg-no-repeat outline-none", _ctx.enterIconClasses])
90
+ }, null, 2)), [
91
+ [
92
+ _directive_tooltip,
93
+ { content: "Press enter to search", delay: { show: 100, hide: 0 } },
94
+ void 0,
95
+ { bottom: true }
96
+ ]
97
+ ]) : vue.createCommentVNode("", true),
98
+ _ctx.query ? (vue.openBlock(), vue.createElementBlock("button", {
99
+ key: 1,
100
+ role: "button",
101
+ "aria-label": "Clear search input",
102
+ class: vue.normalizeClass(["icon absolute cursor-pointer bg-no-repeat", _ctx.clearIconClasses]),
103
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clearSearch && _ctx.clearSearch(...args))
104
+ }, null, 2)) : vue.createCommentVNode("", true)
105
+ ]),
106
+ _: 1
107
+ }, 16, ["modelValue", "size", "onKeydown"]);
108
+ }
109
+ const PInputSearch = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3de99c69"]]);
110
+ module.exports = PInputSearch;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ const inputClassesMixin = require("./inputClassesMixin.js");
3
+ const vue = require("vue");
4
+ const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
5
+ const INPUT_TYPES = { TEXT: "text", PASSWORD: "password" };
6
+ const _sfc_main = vue.defineComponent({
7
+ name: "PInput",
8
+ mixins: [inputClassesMixin],
9
+ inheritAttrs: false,
10
+ props: {
11
+ modelValue: {
12
+ type: [String, Number],
13
+ default: ""
14
+ },
15
+ type: {
16
+ type: String,
17
+ default: INPUT_TYPES.TEXT,
18
+ validator(value) {
19
+ return Object.values(INPUT_TYPES).includes(value);
20
+ }
21
+ },
22
+ label: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ errorMsg: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ required: {
31
+ type: Boolean,
32
+ default: false
33
+ }
34
+ },
35
+ emits: ["update:modelValue"],
36
+ computed: {
37
+ attrs() {
38
+ const { class: classes, style, ...rest } = this.$attrs;
39
+ return rest;
40
+ },
41
+ style() {
42
+ return this.$attrs.style;
43
+ }
44
+ }
45
+ });
46
+ const _hoisted_1 = ["data-has-error"];
47
+ const _hoisted_2 = { class: "relative w-full" };
48
+ const _hoisted_3 = { key: 0 };
49
+ const _hoisted_4 = ["type", "value"];
50
+ const _hoisted_5 = { key: 1 };
51
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
52
+ return vue.openBlock(), vue.createElementBlock("div", {
53
+ class: vue.normalizeClass([{ hidden: _ctx.$attrs.hidden }, _ctx.$attrs.class]),
54
+ "data-has-error": !!_ctx.errorMsg,
55
+ style: vue.normalizeStyle(_ctx.style)
56
+ }, [
57
+ vue.renderSlot(_ctx.$slots, "label", {
58
+ label: _ctx.label,
59
+ labelClasses: _ctx.labelClasses
60
+ }, () => [
61
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", {
62
+ key: 0,
63
+ class: vue.normalizeClass(_ctx.labelClasses)
64
+ }, vue.toDisplayString(_ctx.label), 3)) : vue.createCommentVNode("", true)
65
+ ]),
66
+ vue.createElementVNode("div", _hoisted_2, [
67
+ !!_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
68
+ vue.renderSlot(_ctx.$slots, "prefix")
69
+ ])) : vue.createCommentVNode("", true),
70
+ vue.createElementVNode("input", vue.mergeProps({
71
+ type: _ctx.type,
72
+ value: _ctx.modelValue
73
+ }, _ctx.attrs, {
74
+ class: _ctx.inputClasses,
75
+ onInput: _cache[0] || (_cache[0] = (event) => _ctx.$emit("update:modelValue", event.target.value))
76
+ }), null, 16, _hoisted_4),
77
+ !!_ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
78
+ vue.renderSlot(_ctx.$slots, "suffix")
79
+ ])) : vue.createCommentVNode("", true)
80
+ ]),
81
+ vue.withDirectives(vue.createElementVNode("div", {
82
+ class: vue.normalizeClass(_ctx.errorMsgClasses)
83
+ }, vue.toDisplayString(_ctx.errorMsg), 3), [
84
+ [vue.vShow, _ctx.errorMsg]
85
+ ])
86
+ ], 14, _hoisted_1);
87
+ }
88
+ const PInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
89
+ module.exports = PInput;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const usePLoading = require("./usePLoading.js");
4
+ const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
5
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-3a800f21"), n = n(), vue.popScopeId(), n);
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "fixed left-0 top-0 z-[120] flex w-full justify-center",
9
+ "aria-live": "polite",
10
+ "aria-busy": "true"
11
+ };
12
+ const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bg-blue-10 h-8 rounded-b border-x border-b border-p-gray-30 px-4 pt-2 text-sm font-semibold leading-none text-p-purple-60 shadow" }, " Loading... ", -1));
13
+ const _hoisted_3 = [
14
+ _hoisted_2
15
+ ];
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...{
18
+ name: "PLoading"
19
+ },
20
+ __name: "p-loading",
21
+ setup(__props) {
22
+ const { show } = usePLoading.usePLoading();
23
+ return (_ctx, _cache) => {
24
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
25
+ name: "pm-backdrop-transition",
26
+ "enter-active-class": "fadeInDown",
27
+ "leave-active-class": "fadeOutUp"
28
+ }, {
29
+ default: vue.withCtx(() => [
30
+ vue.unref(show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, _hoisted_3)) : vue.createCommentVNode("", true)
31
+ ]),
32
+ _: 1
33
+ });
34
+ };
35
+ }
36
+ });
37
+ const pLoading = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-3a800f21"]]);
38
+ module.exports = pLoading;