@pequity/squirrel 5.2.1 → 5.2.2
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/README.md +22 -0
- package/dist/cjs/p-info-icon.js +3 -3
- package/dist/es/p-info-icon.js +3 -3
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/squirrel/components/p-info-icon/p-info-icon.spec.js +1 -0
- package/squirrel/components/p-info-icon/p-info-icon.vue +2 -2
package/README.md
CHANGED
|
@@ -19,6 +19,28 @@ Install Tailwind CSS:
|
|
|
19
19
|
pnpm i -D tailwindcss
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Squirrel uses [iconify-icon](https://iconify.design/docs/iconify-icon/) for icons.
|
|
23
|
+
In our consumer project, we need to tell Vue that `<iconify-icon>` is a web component.
|
|
24
|
+
|
|
25
|
+
Example of how to do this in a Vite project:
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
import { defineConfig } from 'vite';
|
|
29
|
+
import vue from '@vitejs/plugin-vue';
|
|
30
|
+
|
|
31
|
+
export default defineConfig({
|
|
32
|
+
plugins: [
|
|
33
|
+
vue({
|
|
34
|
+
template: {
|
|
35
|
+
compilerOptions: {
|
|
36
|
+
isCustomElement: (tag) => tag === 'iconify-icon',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
],
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
22
44
|
Import the Squirrel CSS to your project's `main.css` file:
|
|
23
45
|
|
|
24
46
|
```css
|
package/dist/cjs/p-info-icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
4
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-
|
|
4
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-804e74f5"), n = n(), vue.popScopeId(), n);
|
|
5
5
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1));
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
7
|
...{
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
return vue.openBlock(), vue.createBlock(_component_VTooltip, {
|
|
18
18
|
"popper-triggers": ["hover"],
|
|
19
19
|
delay: { show: 750, hide: 0 },
|
|
20
|
-
disabled: !_ctx.text
|
|
20
|
+
disabled: !_ctx.$slots.default && !_ctx.text
|
|
21
21
|
}, {
|
|
22
22
|
popper: vue.withCtx(() => [
|
|
23
23
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -32,5 +32,5 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
const PInfoIcon = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
35
|
+
const PInfoIcon = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-804e74f5"]]);
|
|
36
36
|
module.exports = PInfoIcon;
|
package/dist/es/p-info-icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
3
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
3
|
+
const _withScopeId = (n) => (pushScopeId("data-v-804e74f5"), n = n(), popScopeId(), n);
|
|
4
4
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1));
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
...{
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
return openBlock(), createBlock(_component_VTooltip, {
|
|
17
17
|
"popper-triggers": ["hover"],
|
|
18
18
|
delay: { show: 750, hide: 0 },
|
|
19
|
-
disabled: !_ctx.text
|
|
19
|
+
disabled: !_ctx.$slots.default && !_ctx.text
|
|
20
20
|
}, {
|
|
21
21
|
popper: withCtx(() => [
|
|
22
22
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const PInfoIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
34
|
+
const PInfoIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-804e74f5"]]);
|
|
35
35
|
export {
|
|
36
36
|
PInfoIcon as default
|
|
37
37
|
};
|
package/dist/style.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
transform: translateX(100%);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
.bg-info-circle-icon[data-v-
|
|
10
|
+
.bg-info-circle-icon[data-v-804e74f5] {
|
|
11
11
|
background-image: url("data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4002_33291)'%3e%3cpath%20d='M0.5%206C0.5%207.45869%201.07946%208.85764%202.11091%209.88909C3.14236%2010.9205%204.54131%2011.5%206%2011.5C7.45869%2011.5%208.85764%2010.9205%209.88909%209.88909C10.9205%208.85764%2011.5%207.45869%2011.5%206C11.5%204.54131%2010.9205%203.14236%209.88909%202.11091C8.85764%201.07946%207.45869%200.5%206%200.5C4.54131%200.5%203.14236%201.07946%202.11091%202.11091C1.07946%203.14236%200.5%204.54131%200.5%206Z'%20stroke='%231A123B'%20stroke-miterlimit='10'/%3e%3cpath%20d='M6.5%203.5H5.5V2.5H6.5V3.5Z'%20fill='%231A123B'/%3e%3cpath%20d='M4.5%205H6V9M4.5%208.5H7.5'%20stroke='%231A123B'%20stroke-miterlimit='10'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4002_33291'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
|
|
12
12
|
}
|
|
13
13
|
div[id^=popper_].dropdown {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pequity/squirrel",
|
|
3
3
|
"description": "Squirrel component library",
|
|
4
|
-
"version": "5.2.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "5.2.2",
|
|
5
|
+
"packageManager": "pnpm@9.11.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@commitlint/cli": "^19.5.0",
|
|
56
56
|
"@commitlint/config-conventional": "^19.5.0",
|
|
57
57
|
"@pequity/eslint-config": "^0.0.13",
|
|
58
|
-
"@playwright/test": "^1.47.
|
|
58
|
+
"@playwright/test": "^1.47.2",
|
|
59
59
|
"@popperjs/core": "2.11.8",
|
|
60
60
|
"@semantic-release/changelog": "^6.0.3",
|
|
61
61
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"prettier-plugin-tailwindcss": "^0.6.6",
|
|
100
100
|
"resolve-tspaths": "^0.8.22",
|
|
101
101
|
"rimraf": "^6.0.1",
|
|
102
|
-
"sass": "^1.79.
|
|
102
|
+
"sass": "^1.79.3",
|
|
103
103
|
"semantic-release": "^24.1.1",
|
|
104
104
|
"storybook": "^8.3.2",
|
|
105
105
|
"svgo": "^3.3.2",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"ts-jest": "^29.2.5",
|
|
108
108
|
"typescript": "5.6.2",
|
|
109
109
|
"v-calendar": "3.1.2",
|
|
110
|
-
"vite": "^5.4.
|
|
110
|
+
"vite": "^5.4.7",
|
|
111
111
|
"vue": "3.4.38",
|
|
112
112
|
"vue-currency-input": "3.1.0",
|
|
113
113
|
"vue-router": "4.4.5",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<VTooltip :popper-triggers="['hover']" :delay="{ show: 750, hide: 0 }" :disabled="!text">
|
|
2
|
+
<VTooltip :popper-triggers="['hover']" :delay="{ show: 750, hide: 0 }" :disabled="!$slots.default && !text">
|
|
3
3
|
<i class="bg-info-circle-icon block h-3 w-3"></i>
|
|
4
4
|
<template #popper>
|
|
5
5
|
<slot>{{ text }}</slot>
|
|
@@ -13,7 +13,7 @@ defineOptions({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
type Props = {
|
|
16
|
-
text
|
|
16
|
+
text?: string | null;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
withDefaults(defineProps<Props>(), {
|