@pequity/squirrel 7.2.4 → 7.2.5

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.
@@ -7,7 +7,7 @@ const pIcon_vue_vue_type_script_setup_true_lang = require("./p-icon.js");
7
7
  const component = require("../component.js");
8
8
  const string = require("../string.js");
9
9
  const _hoisted_1 = { class: "flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white" };
10
- const _hoisted_2 = { class: "whitespace-nowrap px-3" };
10
+ const _hoisted_2 = { class: "mx-4 whitespace-nowrap" };
11
11
  const _hoisted_3 = { class: "flex" };
12
12
  const _hoisted_4 = { class: "flex items-center gap-2 px-1 py-0.5" };
13
13
  const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
@@ -34,12 +34,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
34
  role: "alertdialog"
35
35
  }, _ctx.$attrs), [
36
36
  vue.createElementVNode("div", _hoisted_1, [
37
- vue.createVNode(pCloseBtn, {
38
- variant: "dark",
37
+ vue.createElementVNode("div", {
38
+ class: "mr-4 flex cursor-pointer items-center",
39
39
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:dismiss"))
40
- }),
40
+ }, [
41
+ vue.createVNode(pCloseBtn, {
42
+ variant: "dark",
43
+ class: "-mr-1"
44
+ }),
45
+ _cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "text-xs" }, "Clear All", -1))
46
+ ]),
47
+ _cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
41
48
  vue.createElementVNode("p", _hoisted_2, vue.toDisplayString(_ctx.label), 1),
42
- _cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "mx-4 h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
49
+ _cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "mr-2 h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
43
50
  vue.createElementVNode("div", _hoisted_3, [
44
51
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (actionOrMenu) => {
45
52
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
@@ -6,7 +6,7 @@ import { _ as _sfc_main$2 } from "./p-icon.js";
6
6
  import { isComponent } from "../component.js";
7
7
  import { isString } from "../string.js";
8
8
  const _hoisted_1 = { class: "flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white" };
9
- const _hoisted_2 = { class: "whitespace-nowrap px-3" };
9
+ const _hoisted_2 = { class: "mx-4 whitespace-nowrap" };
10
10
  const _hoisted_3 = { class: "flex" };
11
11
  const _hoisted_4 = { class: "flex items-center gap-2 px-1 py-0.5" };
12
12
  const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
@@ -33,12 +33,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  role: "alertdialog"
34
34
  }, _ctx.$attrs), [
35
35
  createElementVNode("div", _hoisted_1, [
36
- createVNode(PCloseBtn, {
37
- variant: "dark",
36
+ createElementVNode("div", {
37
+ class: "mr-4 flex cursor-pointer items-center",
38
38
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:dismiss"))
39
- }),
39
+ }, [
40
+ createVNode(PCloseBtn, {
41
+ variant: "dark",
42
+ class: "-mr-1"
43
+ }),
44
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "text-xs" }, "Clear All", -1))
45
+ ]),
46
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
40
47
  createElementVNode("p", _hoisted_2, toDisplayString(_ctx.label), 1),
41
- _cache[1] || (_cache[1] = createElementVNode("div", { class: "mx-4 h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
48
+ _cache[3] || (_cache[3] = createElementVNode("div", { class: "mr-2 h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1)),
42
49
  createElementVNode("div", _hoisted_3, [
43
50
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actions, (actionOrMenu) => {
44
51
  return openBlock(), createElementBlock(Fragment, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "7.2.4",
4
+ "version": "7.2.5",
5
5
  "packageManager": "pnpm@10.6.4",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -53,22 +53,22 @@
53
53
  "@playwright/test": "^1.51.1",
54
54
  "@semantic-release/changelog": "^6.0.3",
55
55
  "@semantic-release/git": "^10.0.1",
56
- "@storybook/addon-a11y": "^8.6.11",
57
- "@storybook/addon-actions": "^8.6.11",
58
- "@storybook/addon-essentials": "^8.6.11",
59
- "@storybook/addon-interactions": "^8.6.11",
60
- "@storybook/addon-links": "^8.6.11",
61
- "@storybook/blocks": "^8.6.11",
62
- "@storybook/manager-api": "^8.6.11",
63
- "@storybook/test": "^8.6.11",
56
+ "@storybook/addon-a11y": "^8.6.12",
57
+ "@storybook/addon-actions": "^8.6.12",
58
+ "@storybook/addon-essentials": "^8.6.12",
59
+ "@storybook/addon-interactions": "^8.6.12",
60
+ "@storybook/addon-links": "^8.6.12",
61
+ "@storybook/blocks": "^8.6.12",
62
+ "@storybook/manager-api": "^8.6.12",
63
+ "@storybook/test": "^8.6.12",
64
64
  "@storybook/test-runner": "^0.22.0",
65
- "@storybook/theming": "^8.6.11",
66
- "@storybook/vue3": "^8.6.11",
67
- "@storybook/vue3-vite": "^8.6.11",
65
+ "@storybook/theming": "^8.6.12",
66
+ "@storybook/vue3": "^8.6.12",
67
+ "@storybook/vue3-vite": "^8.6.12",
68
68
  "@tanstack/vue-virtual": "3.13.6",
69
69
  "@types/jsdom": "^21.1.7",
70
70
  "@types/lodash-es": "^4.17.12",
71
- "@types/node": "^22.13.17",
71
+ "@types/node": "^22.14.0",
72
72
  "@vitejs/plugin-vue": "^5.2.3",
73
73
  "@vitest/coverage-v8": "^3.1.1",
74
74
  "@vue/compiler-sfc": "3.5.13",
@@ -90,13 +90,13 @@
90
90
  "prettier-plugin-tailwindcss": "^0.6.11",
91
91
  "resolve-tspaths": "^0.8.23",
92
92
  "rimraf": "^6.0.1",
93
- "sass": "^1.86.1",
93
+ "sass": "^1.86.2",
94
94
  "semantic-release": "^24.2.3",
95
- "storybook": "^8.6.11",
95
+ "storybook": "^8.6.12",
96
96
  "svgo": "^3.3.2",
97
97
  "tailwindcss": "^3.4.17",
98
98
  "typescript": "5.8.2",
99
- "vite": "^6.2.4",
99
+ "vite": "^6.2.5",
100
100
  "vitest": "^3.1.1",
101
101
  "vue": "3.5.13",
102
102
  "vue-currency-input": "3.2.1",
@@ -102,6 +102,7 @@ describe('PActionBar.vue', () => {
102
102
 
103
103
  const dismissIcon = await wrapper.find('i.x-white-icon');
104
104
  expect(dismissIcon.exists()).toBe(true);
105
+ expect(actionBarDiv.find('.text-xs').text()).toBe('Clear All');
105
106
 
106
107
  const actionBtn = await wrapper.find('button.inline-block');
107
108
  expect(actionBtn.exists()).toBe(true);
@@ -4,9 +4,13 @@
4
4
  <div
5
5
  class="flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white"
6
6
  >
7
- <PCloseBtn variant="dark" @click="$emit('click:dismiss')"></PCloseBtn>
8
- <p class="whitespace-nowrap px-3">{{ label }}</p>
9
- <div class="mx-4 h-9 w-0.5 shrink-0 rounded bg-p-purple-50"></div>
7
+ <div class="mr-4 flex cursor-pointer items-center" @click="$emit('click:dismiss')">
8
+ <PCloseBtn variant="dark" class="-mr-1" />
9
+ <div class="text-xs">Clear All</div>
10
+ </div>
11
+ <div class="h-9 w-0.5 shrink-0 rounded bg-p-purple-50"></div>
12
+ <p class="mx-4 whitespace-nowrap">{{ label }}</p>
13
+ <div class="mr-2 h-9 w-0.5 shrink-0 rounded bg-p-purple-50"></div>
10
14
  <div class="flex">
11
15
  <template v-for="actionOrMenu in actions" :key="`action-${actionOrMenu.label}`">
12
16
  <PBtn