@pequity/squirrel 1.0.26-beta.2 → 1.0.27

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 CHANGED
@@ -2,14 +2,21 @@
2
2
 
3
3
  The [Squirrel component library](https://getpequity.github.io/squirrel) is a comprehensive suite of feature-rich UI components that encapsulate the styling of the Pequity Squirrel Design System.
4
4
 
5
- The library is built using Vue 3 and Vite.
5
+ The library is built using [Vue 3](https://vuejs.org/) and [Tailwind CSS](https://tailwindcss.com/) and is designed to be used in Vue 3 projects.
6
+ [Vite](https://vitejs.dev/) is used as the build tool for the library and [Storybook](https://storybook.js.org/) is used for component development and documentation.
6
7
 
7
8
  ## Installation and Usage
8
9
 
9
- Install the package and its dependencies using pnpm:
10
+ Install the package and its dependencies using `pnpm`:
10
11
 
11
12
  ```bash
12
- pnpm i @pequity/squirrel @popperjs/core @tanstack/vue-virtual dayjs floating-vue lodash-es v-calendar vue-currency-input ue-toastification@2.0.0-rc.5
13
+ pnpm i vue vue-router @pequity/squirrel @popperjs/core @tanstack/vue-virtual dayjs floating-vue lodash-es v-calendar vue-currency-input vue-toastification@2.0.0-rc.5
14
+ ```
15
+
16
+ Install Tailwind CSS:
17
+
18
+ ```bash
19
+ pnpm i -D tailwindcss
13
20
  ```
14
21
 
15
22
  Import the Squirrel CSS to your project's `main.css` file:
@@ -27,7 +27,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
27
  }, [
28
28
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.tabs, (tabData) => {
29
29
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tabData.to ? "RouterLink" : "div"), vue.mergeProps({
30
- key: `tab-${tabData.name}`
30
+ key: `tab-${tabData.name}`,
31
+ ref_for: true
31
32
  }, tabData.to ? { to: tabData.to } : {}, {
32
33
  class: [[__props.activeTab === tabData.name ? "border-primary text-primary" : "border-transparent text-p-gray-40"], "group cursor-pointer border-b-2 pb-3 hover:border-primary hover:text-primary"],
33
34
  onClick: ($event) => _ctx.$emit("click:tab", tabData.name)
package/dist/cjs/index.js CHANGED
@@ -802,7 +802,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
802
802
  "show-filter-icon": col.filterable || col.sortable,
803
803
  "tooltip-text": col.tooltip,
804
804
  class: [{ "pl-2": i === 1 && _ctx.isFirstColFixed, "pr-2": i === _ctx.cols.length && _ctx.isLastColFixed }, "grow"],
805
- "text-color": headerCellTextColor(col)
805
+ "text-color": headerCellTextColor(col),
806
+ ref_for: true
806
807
  }, col.headerCellAttrs, {
807
808
  onClickFilterIcon: ($event) => _ctx.$emit("click-filter-icon", $event, col)
808
809
  }), null, 16, ["text", "filter-active", "show-filter-icon", "tooltip-text", "class", "text-color", "onClickFilterIcon"])
@@ -26,7 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  }, [
27
27
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tabData) => {
28
28
  return openBlock(), createBlock(resolveDynamicComponent(tabData.to ? "RouterLink" : "div"), mergeProps({
29
- key: `tab-${tabData.name}`
29
+ key: `tab-${tabData.name}`,
30
+ ref_for: true
30
31
  }, tabData.to ? { to: tabData.to } : {}, {
31
32
  class: [[__props.activeTab === tabData.name ? "border-primary text-primary" : "border-transparent text-p-gray-40"], "group cursor-pointer border-b-2 pb-3 hover:border-primary hover:text-primary"],
32
33
  onClick: ($event) => _ctx.$emit("click:tab", tabData.name)
package/dist/es/index.js CHANGED
@@ -802,7 +802,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
802
802
  "show-filter-icon": col.filterable || col.sortable,
803
803
  "tooltip-text": col.tooltip,
804
804
  class: [{ "pl-2": i === 1 && _ctx.isFirstColFixed, "pr-2": i === _ctx.cols.length && _ctx.isLastColFixed }, "grow"],
805
- "text-color": headerCellTextColor(col)
805
+ "text-color": headerCellTextColor(col),
806
+ ref_for: true
806
807
  }, col.headerCellAttrs, {
807
808
  onClickFilterIcon: ($event) => _ctx.$emit("click-filter-icon", $event, col)
808
809
  }), null, 16, ["text", "filter-active", "show-filter-icon", "tooltip-text", "class", "text-color", "onClickFilterIcon"])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "1.0.26-beta.2",
4
+ "version": "1.0.27",
5
5
  "packageManager": "pnpm@8.9.2",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -39,12 +39,12 @@
39
39
  "module": "./dist/es/index.js",
40
40
  "dependencies": {
41
41
  "@popperjs/core": "2.11.8",
42
- "@tanstack/vue-virtual": "3.3.0",
42
+ "@tanstack/vue-virtual": "3.4.0",
43
43
  "dayjs": "1.11.10",
44
44
  "floating-vue": "5.2.2",
45
45
  "lodash-es": "4.17.21",
46
46
  "v-calendar": "3.1.2",
47
- "vue": "3.4.23",
47
+ "vue": "3.4.24",
48
48
  "vue-currency-input": "3.1.0",
49
49
  "vue-router": "4.3.0",
50
50
  "vue-toastification": "2.0.0-rc.5"
@@ -64,30 +64,30 @@
64
64
  "devDependencies": {
65
65
  "@babel/core": "^7.24.4",
66
66
  "@babel/preset-env": "^7.24.4",
67
- "@commitlint/cli": "^19.2.2",
67
+ "@commitlint/cli": "^19.3.0",
68
68
  "@commitlint/config-conventional": "^19.2.2",
69
69
  "@pequity/eslint-config": "^0.0.12",
70
70
  "@semantic-release/changelog": "^6.0.3",
71
71
  "@semantic-release/git": "^10.0.1",
72
- "@storybook/addon-a11y": "^8.0.8",
73
- "@storybook/addon-actions": "^8.0.8",
74
- "@storybook/addon-essentials": "^8.0.8",
75
- "@storybook/addon-interactions": "^8.0.8",
76
- "@storybook/addon-links": "^8.0.8",
77
- "@storybook/blocks": "^8.0.8",
72
+ "@storybook/addon-a11y": "^8.0.9",
73
+ "@storybook/addon-actions": "^8.0.9",
74
+ "@storybook/addon-essentials": "^8.0.9",
75
+ "@storybook/addon-interactions": "^8.0.9",
76
+ "@storybook/addon-links": "^8.0.9",
77
+ "@storybook/blocks": "^8.0.9",
78
78
  "@storybook/jest": "^0.2.3",
79
- "@storybook/manager-api": "^8.0.8",
79
+ "@storybook/manager-api": "^8.0.9",
80
80
  "@storybook/test-runner": "^0.17.0",
81
81
  "@storybook/testing-library": "^0.2.2",
82
- "@storybook/theming": "^8.0.8",
83
- "@storybook/vue3": "^8.0.8",
84
- "@storybook/vue3-vite": "^8.0.8",
82
+ "@storybook/theming": "^8.0.9",
83
+ "@storybook/vue3": "^8.0.9",
84
+ "@storybook/vue3-vite": "^8.0.9",
85
85
  "@types/jest": "^29.5.12",
86
86
  "@types/jsdom": "^21.1.6",
87
87
  "@types/lodash-es": "^4.17.12",
88
88
  "@types/node": "^20.12.7",
89
89
  "@vitejs/plugin-vue": "^5.0.4",
90
- "@vue/compiler-sfc": "3.4.23",
90
+ "@vue/compiler-sfc": "3.4.24",
91
91
  "@vue/test-utils": "^2.4.5",
92
92
  "@vue/vue3-jest": "^29.2.6",
93
93
  "autoprefixer": "^10.4.19",
@@ -107,13 +107,13 @@
107
107
  "rimraf": "^5.0.5",
108
108
  "sass": "^1.75.0",
109
109
  "semantic-release": "^23.0.8",
110
- "storybook": "^8.0.8",
110
+ "storybook": "^8.0.9",
111
111
  "svgo": "^3.2.0",
112
112
  "tailwindcss": "^3.4.3",
113
113
  "ts-jest": "^29.1.2",
114
114
  "typescript": "5.4.5",
115
- "vite": "^5.2.9",
116
- "vue-router": "^4.3.0",
117
- "vue-tsc": "2.0.13"
115
+ "vite": "^5.2.10",
116
+ "vue-router": "^4.3.2",
117
+ "vue-tsc": "2.0.14"
118
118
  }
119
119
  }