@pequity/squirrel 6.0.0 → 6.0.1

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
@@ -53,13 +53,13 @@ Add the "Inter" font to your project's `index.html` file:
53
53
  <link rel="preconnect" href="https://rsms.me/" /><link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
54
54
  ```
55
55
 
56
- Use the Squirrel Tailwind configuration as a `preset` in your project's `tailwind.config.cjs` file:
56
+ Use the Squirrel Tailwind configuration as a `preset` in your project's `tailwind.config.js` file:
57
57
 
58
58
  ```js
59
- /** @type {import('@pequity/squirrel').SquirrelTailwindConfig} */
59
+ import { squirrelTailwindConfig } from '@pequity/squirrel';
60
60
 
61
- module.exports = {
62
- presets: [require('@pequity/squirrel/tailwind').config],
61
+ export default {
62
+ presets: [squirrelTailwindConfig],
63
63
  content: [
64
64
  './index.html',
65
65
  './src/**/*.{vue,js,ts,jsx,tsx,mdx}',
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const config = {
3
+ const squirrelTailwindConfig = {
4
4
  content: ["./index.html", "./squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}", "./src/**/*.{vue,js,ts,jsx,tsx,mdx}"],
5
5
  theme: {
6
6
  colors: {
@@ -102,4 +102,4 @@ const config = {
102
102
  }
103
103
  }
104
104
  };
105
- exports.config = config;
105
+ exports.squirrelTailwindConfig = squirrelTailwindConfig;
package/dist/cjs/index.js CHANGED
@@ -1005,7 +1005,7 @@ exports.PTableTd = pTableTd;
1005
1005
  exports.PTabs = pTabs_vue_vue_type_script_setup_true_lang._sfc_main;
1006
1006
  exports.PTextarea = pTextarea;
1007
1007
  exports.PToggle = pToggle;
1008
- exports.config = config.config;
1008
+ exports.squirrelTailwindConfig = config.squirrelTailwindConfig;
1009
1009
  exports.CURRENCY_INPUT_DEFAULTS = currency.CURRENCY_INPUT_DEFAULTS;
1010
1010
  exports.getNextActiveElement = dom.getNextActiveElement;
1011
1011
  exports.isElement = dom.isElement;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const config$1 = require("./config.js");
5
5
  const lodashEs = require("lodash-es");
6
6
  const resolveConfig = require("tailwindcss/resolveConfig");
7
- const config = resolveConfig(config$1.config);
7
+ const config = resolveConfig(config$1.squirrelTailwindConfig);
8
8
  const theme = config.theme;
9
9
  const colors = theme == null ? void 0 : theme.colors;
10
10
  (_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
package/dist/es/config.js CHANGED
@@ -1,4 +1,4 @@
1
- const config = {
1
+ const squirrelTailwindConfig = {
2
2
  content: ["./index.html", "./squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}", "./src/**/*.{vue,js,ts,jsx,tsx,mdx}"],
3
3
  theme: {
4
4
  colors: {
@@ -101,5 +101,5 @@ const config = {
101
101
  }
102
102
  };
103
103
  export {
104
- config
104
+ squirrelTailwindConfig
105
105
  };
package/dist/es/index.js CHANGED
@@ -54,7 +54,7 @@ import { default as default19 } from "./p-table-td.js";
54
54
  import { _ as _14 } from "./chunks/p-tabs.js";
55
55
  import { default as default20 } from "./p-textarea.js";
56
56
  import { default as default21 } from "./p-toggle.js";
57
- import { config } from "./config.js";
57
+ import { squirrelTailwindConfig } from "./config.js";
58
58
  import { CURRENCY_INPUT_DEFAULTS } from "./currency.js";
59
59
  import { getNextActiveElement, isElement, isVisible } from "./dom.js";
60
60
  import { default as default22 } from "./inputClassesMixin.js";
@@ -1016,7 +1016,6 @@ export {
1016
1016
  SPACING_SUFFIX,
1017
1017
  TEXTAREA_BASE,
1018
1018
  colsInjectionKey,
1019
- config,
1020
1019
  createPagingRange,
1021
1020
  getColor,
1022
1021
  getColorDeep,
@@ -1032,6 +1031,7 @@ export {
1032
1031
  sanitizeUrl,
1033
1032
  setupListKeyboardNavigation,
1034
1033
  splitStringForHighlight,
1034
+ squirrelTailwindConfig,
1035
1035
  toNumberOrNull,
1036
1036
  toString,
1037
1037
  useInputClasses,
@@ -1,8 +1,8 @@
1
1
  var _a;
2
- import { config as config$1 } from "./config.js";
2
+ import { squirrelTailwindConfig } from "./config.js";
3
3
  import { get } from "lodash-es";
4
4
  import resolveConfig from "tailwindcss/resolveConfig";
5
- const config = resolveConfig(config$1);
5
+ const config = resolveConfig(squirrelTailwindConfig);
6
6
  const theme = config.theme;
7
7
  const colors = theme == null ? void 0 : theme.colors;
8
8
  (_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
@@ -1,4 +1,4 @@
1
- export declare const config: {
1
+ export declare const squirrelTailwindConfig: {
2
2
  readonly content: ["./index.html", "./squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}", "./src/**/*.{vue,js,ts,jsx,tsx,mdx}"];
3
3
  readonly theme: {
4
4
  readonly colors: {
@@ -97,4 +97,4 @@ export declare const config: {
97
97
  };
98
98
  };
99
99
  };
100
- export type SquirrelTailwindConfig = typeof config;
100
+ export type SquirrelTailwindConfig = typeof squirrelTailwindConfig;
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "6.0.0",
4
+ "version": "6.0.1",
5
5
  "packageManager": "pnpm@9.15.0",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "preinstall": "npx only-allow pnpm",
9
9
  "dev": "vite --host",
10
10
  "debug:hmr": "vite --host --debug hmr",
11
- "build:tailwind": "tsc --target es6 --module CommonJS ./squirrel/tailwind/config.ts --outDir ./dist/tailwind",
12
- "build": "rimraf dist && pnpm run build:tailwind && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.squirrel.json && resolve-tspaths --src ./squirrel --project tsconfig.squirrel.json && vite build",
11
+ "build": "rimraf dist && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.squirrel.json && resolve-tspaths --src ./squirrel --project tsconfig.squirrel.json && vite build",
13
12
  "preview": "vite preview",
14
13
  "lint": "eslint \"**/*.{vue,ts,js}\"",
15
14
  "lint-fix": "eslint --fix \"**/*.{vue,ts,js}\"",
@@ -32,8 +31,7 @@
32
31
  "import": "./dist/es/index.js",
33
32
  "require": "./dist/cjs/index.js"
34
33
  },
35
- "./assets/squirrel.css": "./dist/squirrel.css",
36
- "./tailwind": "./dist/tailwind/config.js"
34
+ "./assets/squirrel.css": "./dist/squirrel.css"
37
35
  },
38
36
  "main": "./dist/cjs/index.js",
39
37
  "module": "./dist/es/index.js",
@@ -52,7 +50,7 @@
52
50
  "@commitlint/cli": "^19.6.0",
53
51
  "@commitlint/config-conventional": "^19.6.0",
54
52
  "@pequity/eslint-config": "^1.0.3",
55
- "@playwright/test": "^1.49.0",
53
+ "@playwright/test": "^1.49.1",
56
54
  "@semantic-release/changelog": "^6.0.3",
57
55
  "@semantic-release/git": "^10.0.1",
58
56
  "@storybook/addon-a11y": "^8.4.7",
@@ -67,10 +65,10 @@
67
65
  "@storybook/theming": "^8.4.7",
68
66
  "@storybook/vue3": "^8.4.7",
69
67
  "@storybook/vue3-vite": "^8.4.7",
70
- "@tanstack/vue-virtual": "3.11.0",
68
+ "@tanstack/vue-virtual": "3.11.1",
71
69
  "@types/jsdom": "^21.1.7",
72
70
  "@types/lodash-es": "^4.17.12",
73
- "@types/node": "^22.10.1",
71
+ "@types/node": "^22.10.2",
74
72
  "@vitejs/plugin-vue": "^5.2.1",
75
73
  "@vitest/coverage-v8": "^2.1.8",
76
74
  "@vue/compiler-sfc": "3.5.13",
@@ -85,7 +83,7 @@
85
83
  "husky": "^9.1.7",
86
84
  "iconify-icon": "^2.2.0",
87
85
  "jsdom": "^25.0.1",
88
- "lint-staged": "^15.2.10",
86
+ "lint-staged": "^15.2.11",
89
87
  "lodash-es": "4.17.21",
90
88
  "make-coverage-badge": "^1.2.0",
91
89
  "postcss": "^8.4.49",
@@ -1,6 +1,6 @@
1
1
  import type { Config } from 'tailwindcss';
2
2
 
3
- export const config = {
3
+ export const squirrelTailwindConfig = {
4
4
  content: ['./index.html', './squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}', './src/**/*.{vue,js,ts,jsx,tsx,mdx}'],
5
5
  theme: {
6
6
  colors: {
@@ -103,4 +103,4 @@ export const config = {
103
103
  },
104
104
  } as const satisfies Config;
105
105
 
106
- export type SquirrelTailwindConfig = typeof config;
106
+ export type SquirrelTailwindConfig = typeof squirrelTailwindConfig;
@@ -1,6 +1,4 @@
1
- import { config as squirrelTailwindConfig } from '@squirrel/tailwind/config';
2
- // Relative import is used here because of
3
- // "Module source URI is not allowed in this document: “http://tailwind.config/”" error
1
+ import { squirrelTailwindConfig } from '@squirrel/tailwind/config';
4
2
  import { get } from 'lodash-es';
5
3
  import type { Config } from 'tailwindcss';
6
4
  import resolveConfig from 'tailwindcss/resolveConfig';
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.config = void 0;
4
- exports.config = {
5
- content: ['./index.html', './squirrel/**/*.{vue,js,ts,jsx,tsx,mdx}', './src/**/*.{vue,js,ts,jsx,tsx,mdx}'],
6
- theme: {
7
- colors: {
8
- transparent: 'transparent',
9
- current: 'currentColor',
10
- /* Design system colors */
11
- white: 'rgb(var(--color-white))',
12
- black: 'rgb(var(--color-black))',
13
- night: 'rgb(var(--color-night))',
14
- 'barley-white': 'rgb(var(--color-barley-white))',
15
- 'horses-neck': 'rgb(var(--color-horses-neck))',
16
- 'active-blue': 'rgb(var(--color-active-blue))',
17
- /* Pequity colors */
18
- 'p-gray': {
19
- 10: 'rgb(var(--color-p-gray-10))',
20
- 20: 'rgb(var(--color-p-gray-20))',
21
- 30: 'rgb(var(--color-p-gray-30))',
22
- 40: 'rgb(var(--color-p-gray-40))',
23
- 50: 'rgb(var(--color-p-gray-50))',
24
- 60: 'rgb(var(--color-p-gray-60))',
25
- 70: 'rgb(var(--color-p-gray-70))',
26
- 80: 'rgb(var(--color-p-gray-80))',
27
- 90: 'rgb(var(--color-p-gray-90))',
28
- 100: 'rgb(var(--color-p-gray-100))',
29
- },
30
- 'p-blue': {
31
- 10: 'rgb(var(--color-p-blue-10))',
32
- 15: 'rgb(var(--color-p-blue-15))',
33
- 20: 'rgb(var(--color-p-blue-20))',
34
- 30: 'rgb(var(--color-p-blue-30))',
35
- 40: 'rgb(var(--color-p-blue-40))',
36
- 50: 'rgb(var(--color-p-blue-50))',
37
- 60: 'rgb(var(--color-p-blue-60))',
38
- 70: 'rgb(var(--color-p-blue-70))',
39
- 80: 'rgb(var(--color-p-blue-80))',
40
- },
41
- 'p-purple': {
42
- 10: 'rgb(var(--color-p-purple-10))',
43
- 20: 'rgb(var(--color-p-purple-20))',
44
- 30: 'rgb(var(--color-p-purple-30))',
45
- 40: 'rgb(var(--color-p-purple-40))',
46
- 50: 'rgb(var(--color-p-purple-50))',
47
- 60: 'rgb(var(--color-p-purple-60))',
48
- },
49
- 'p-green': {
50
- 10: 'rgb(var(--color-p-green-10))',
51
- 20: 'rgb(var(--color-p-green-20))',
52
- 30: 'rgb(var(--color-p-green-30))',
53
- 40: 'rgb(var(--color-p-green-40))',
54
- 50: 'rgb(var(--color-p-green-50))',
55
- },
56
- 'p-red': {
57
- 10: 'rgb(var(--color-p-red-10))',
58
- 20: 'rgb(var(--color-p-red-20))',
59
- 30: 'rgb(var(--color-p-red-30))',
60
- 40: 'rgb(var(--color-p-red-40))',
61
- 50: 'rgb(var(--color-p-red-50))',
62
- },
63
- /* Aliases */
64
- primary: 'rgb(var(--color-primary))',
65
- accent: 'rgb(var(--color-accent))',
66
- surface: 'rgb(var(--color-surface))',
67
- 'on-surface': 'rgb(var(--color-on-surface))',
68
- error: 'rgb(var(--color-error))',
69
- 'on-error': 'rgb(var(--color-on-error))',
70
- info: 'rgb(var(--color-info))',
71
- 'on-info': 'rgb(var(--color-on-info))',
72
- success: 'rgb(var(--color-success))',
73
- 'on-success': 'rgb(var(--color-on-success))',
74
- warning: 'rgb(var(--color-warning))',
75
- 'on-warning': 'rgb(var(--color-on-warning))',
76
- },
77
- fontFamily: {
78
- sans: ['Inter', 'Helvetica', 'Arial', 'sans-serif'],
79
- },
80
- fontSize: {
81
- xs: '0.75rem',
82
- sm: '0.875rem',
83
- base: '1rem',
84
- lg: '1.125rem',
85
- xl: '1.25rem',
86
- '2xl': '1.5rem',
87
- '3xl': '1.875rem',
88
- '4xl': '2.25rem',
89
- '5xl': '3rem',
90
- '6xl': '4rem',
91
- },
92
- extend: {
93
- borderColor: {
94
- DEFAULT: 'rgb(var(--color-p-gray-30))',
95
- },
96
- spacing: {
97
- 7.5: '1.875rem',
98
- },
99
- zIndex: {
100
- 110: '110',
101
- },
102
- screens: {},
103
- },
104
- },
105
- };