@pequity/squirrel 1.0.4 → 1.0.6
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 +17 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/{squirrel/components → components}/p-btn/p-btn.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-dropdown/p-dropdown.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-dropdown-select/p-dropdown-select.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-file-upload/p-file-upload.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-input-search/p-input-search.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-select-btn/p-select-btn.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-select-list/p-select-list.utils.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-select-list/p-select-list.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-select-list/useSelectList.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-table/p-table.vue.d.ts +1 -1
- package/dist/{squirrel/components → components}/p-table-sort/p-table-sort.vue.d.ts +1 -1
- package/dist/composables/index.d.ts +2 -0
- package/dist/{squirrel/composables → composables}/useInputClasses.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/squirrel.cjs.js +2 -2
- package/dist/squirrel.es.js +3683 -3682
- package/dist/style.css +1 -1
- package/dist/{tailwind.config.d.ts → tailwind/config.d.ts} +1 -2
- package/dist/{squirrel/utils → utils}/index.d.ts +11 -11
- package/dist/{squirrel/utils → utils}/inputClassesMixin.d.ts +1 -1
- package/package.json +1 -1
- package/squirrel/assets/squirrel.css +59 -0
- package/squirrel/index.ts +1 -0
- package/squirrel/tailwind/config.ts +106 -0
- package/squirrel/utils/tailwind.ts +2 -2
- package/dist/squirrel/components/index.d.ts +0 -49
- package/dist/squirrel/composables/index.d.ts +0 -2
- package/dist/squirrel/index.d.ts +0 -4
- /package/dist/{squirrel/components → components}/p-action-bar/p-action-bar.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-alert/p-alert.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-avatar/p-avatar.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-btn/p-btn.types.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-card/p-card.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-checkbox/p-checkbox.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-chips/p-chips.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-close-btn/p-close-btn.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-date-picker/p-date-picker.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-drawer/p-drawer.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-file-upload/p-file-upload.types.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-file-upload/p-file-upload.utils.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-info-icon/p-info-icon.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-inline-date-picker/p-inline-date-picker.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-input/p-input.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-input-number/p-input-number.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-input-percent/p-input-percent.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-loading/p-loading.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-loading/usePLoading.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-modal/p-modal.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-modal/usePModal.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-pagination/p-pagination.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-pagination-info/p-pagination-info.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-progress-bar/p-progress-bar.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-ring-loader/p-ring-loader.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-select/p-select.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-select-list/p-select-list.types.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-select-pill/p-select-pill.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-skeleton-loader/p-skeleton-loader.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table/p-table.types.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table/usePTableColResize.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table/usePTableRowVirtualizer.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table-header-cell/p-table-filter-icon.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table-header-cell/p-table-header-cell.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table-loader/p-table-loader.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table-sort/p-table-sort.config.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-table-td/p-table-td.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-tabs/p-tabs.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-textarea/p-textarea.vue.d.ts +0 -0
- /package/dist/{squirrel/components → components}/p-toggle/p-toggle.vue.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/currency.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/dom.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/inputClassesShared.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/listKeyboardNavigation.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/number.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/object.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/pagination.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/string.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/tailwind.d.ts +0 -0
- /package/dist/{squirrel/utils → utils}/text.d.ts +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import defaultTheme from 'tailwindcss/defaultTheme';
|
|
2
|
+
import type { Config } from 'tailwindcss';
|
|
3
|
+
|
|
4
|
+
export const squirrelTailwindConfig = {
|
|
5
|
+
content: ['./index.html', './**/*.{vue,js,ts,jsx,tsx,mdx}'],
|
|
6
|
+
theme: {
|
|
7
|
+
colors: {
|
|
8
|
+
transparent: 'transparent',
|
|
9
|
+
current: 'currentColor',
|
|
10
|
+
/* Design system colors */
|
|
11
|
+
white: '#fff',
|
|
12
|
+
black: '#000',
|
|
13
|
+
night: 'var(--color-night)',
|
|
14
|
+
'barley-white': 'var(--color-barley-white)',
|
|
15
|
+
'horses-neck': 'var(--color-horses-neck)',
|
|
16
|
+
'active-blue': 'var(--color-active-blue)',
|
|
17
|
+
/* Pequity colors */
|
|
18
|
+
'p-gray': {
|
|
19
|
+
10: 'var(--color-p-gray-10)',
|
|
20
|
+
20: 'var(--color-p-gray-20)',
|
|
21
|
+
30: 'var(--color-p-gray-30)',
|
|
22
|
+
40: 'var(--color-p-gray-40)',
|
|
23
|
+
50: 'var(--color-p-gray-50)',
|
|
24
|
+
60: 'var(--color-p-gray-60)',
|
|
25
|
+
70: 'var(--color-p-gray-70)',
|
|
26
|
+
80: 'var(--color-p-gray-80)',
|
|
27
|
+
90: 'var(--color-p-gray-90)',
|
|
28
|
+
100: 'var(--color-p-gray-100)',
|
|
29
|
+
},
|
|
30
|
+
'p-blue': {
|
|
31
|
+
10: 'var(--color-p-blue-10)',
|
|
32
|
+
15: 'var(--color-p-blue-15)',
|
|
33
|
+
20: 'var(--color-p-blue-20)',
|
|
34
|
+
30: 'var(--color-p-blue-30)',
|
|
35
|
+
40: 'var(--color-p-blue-40)',
|
|
36
|
+
50: 'var(--color-p-blue-50)',
|
|
37
|
+
60: 'var(--color-p-blue-60)',
|
|
38
|
+
70: 'var(--color-p-blue-70)',
|
|
39
|
+
80: 'var(--color-p-blue-80)',
|
|
40
|
+
},
|
|
41
|
+
'p-purple': {
|
|
42
|
+
10: 'var(--color-p-purple-10)',
|
|
43
|
+
20: 'var(--color-p-purple-20)',
|
|
44
|
+
30: 'var(--color-p-purple-30)',
|
|
45
|
+
40: 'var(--color-p-purple-40)',
|
|
46
|
+
50: 'var(--color-p-purple-50)',
|
|
47
|
+
60: 'var(--color-p-purple-60)',
|
|
48
|
+
},
|
|
49
|
+
'p-green': {
|
|
50
|
+
10: 'var(--color-p-green-10)',
|
|
51
|
+
20: 'var(--color-p-green-20)',
|
|
52
|
+
30: 'var(--color-p-green-30)',
|
|
53
|
+
40: 'var(--color-p-green-40)',
|
|
54
|
+
50: 'var(--color-p-green-50)',
|
|
55
|
+
},
|
|
56
|
+
'p-red': {
|
|
57
|
+
10: 'var(--color-p-red-10)',
|
|
58
|
+
20: 'var(--color-p-red-20)',
|
|
59
|
+
30: 'var(--color-p-red-30)',
|
|
60
|
+
40: 'var(--color-p-red-40)',
|
|
61
|
+
50: 'var(--color-p-red-50)',
|
|
62
|
+
},
|
|
63
|
+
/* Aliases */
|
|
64
|
+
primary: 'var(--color-primary)',
|
|
65
|
+
accent: 'var(--color-accent)',
|
|
66
|
+
surface: 'var(--color-surface)',
|
|
67
|
+
'on-surface': 'var(--color-on-surface)',
|
|
68
|
+
error: 'var(--color-error)',
|
|
69
|
+
'on-error': 'var(--color-on-error)',
|
|
70
|
+
info: 'var(--color-info)',
|
|
71
|
+
'on-info': 'var(--color-on-info)',
|
|
72
|
+
success: 'var(--color-success)',
|
|
73
|
+
'on-success': 'var(--color-on-success)',
|
|
74
|
+
warning: 'var(--color-warning)',
|
|
75
|
+
'on-warning': 'var(--color-on-warning)',
|
|
76
|
+
},
|
|
77
|
+
fontFamily: {
|
|
78
|
+
sans: ['Inter', ...defaultTheme.fontFamily.sans],
|
|
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: '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
|
+
plugins: [],
|
|
106
|
+
} satisfies Config;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import resolveConfig from 'tailwindcss/resolveConfig';
|
|
2
2
|
// Relative import is used here because of
|
|
3
3
|
// "Module source URI is not allowed in this document: “http://tailwind.config/”" error
|
|
4
|
-
import tailwindConfig from '../../tailwind.config';
|
|
5
4
|
import { get } from 'lodash-es';
|
|
5
|
+
import { squirrelTailwindConfig } from '@squirrel/tailwind/config';
|
|
6
6
|
import type { Config } from 'tailwindcss';
|
|
7
7
|
|
|
8
|
-
const config = resolveConfig(
|
|
8
|
+
const config = resolveConfig(squirrelTailwindConfig);
|
|
9
9
|
const theme = config.theme as Config['theme'];
|
|
10
10
|
const colors = theme?.colors;
|
|
11
11
|
const extendedColors = theme?.extend?.colors;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import PActionBar from './p-action-bar/p-action-bar.vue';
|
|
2
|
-
import PAlert from './p-alert/p-alert.vue';
|
|
3
|
-
import PAvatar from './p-avatar/p-avatar.vue';
|
|
4
|
-
import PBtn from './p-btn/p-btn.vue';
|
|
5
|
-
import PCard from './p-card/p-card.vue';
|
|
6
|
-
import PCheckbox from './p-checkbox/p-checkbox.vue';
|
|
7
|
-
import PChips from './p-chips/p-chips.vue';
|
|
8
|
-
import PCloseBtn from './p-close-btn/p-close-btn.vue';
|
|
9
|
-
import PDatePicker from './p-date-picker/p-date-picker.vue';
|
|
10
|
-
import PDrawer from './p-drawer/p-drawer.vue';
|
|
11
|
-
import PDropdown from './p-dropdown/p-dropdown.vue';
|
|
12
|
-
import PDropdownSelect from './p-dropdown-select/p-dropdown-select.vue';
|
|
13
|
-
import PFileUpload from './p-file-upload/p-file-upload.vue';
|
|
14
|
-
import PFilterIcon from './p-table-header-cell/p-table-filter-icon.vue';
|
|
15
|
-
import PInfoIcon from './p-info-icon/p-info-icon.vue';
|
|
16
|
-
import PInlineDatePicker from './p-inline-date-picker/p-inline-date-picker.vue';
|
|
17
|
-
import PInput from './p-input/p-input.vue';
|
|
18
|
-
import PInputNumber from './p-input-number/p-input-number.vue';
|
|
19
|
-
import PInputPercent from './p-input-percent/p-input-percent.vue';
|
|
20
|
-
import PInputSearch from './p-input-search/p-input-search.vue';
|
|
21
|
-
import PLoading from './p-loading/p-loading.vue';
|
|
22
|
-
import PModal from './p-modal/p-modal.vue';
|
|
23
|
-
import PPagination from './p-pagination/p-pagination.vue';
|
|
24
|
-
import PPaginationInfo from './p-pagination-info/p-pagination-info.vue';
|
|
25
|
-
import PProgressBar from './p-progress-bar/p-progress-bar.vue';
|
|
26
|
-
import PRingLoader from './p-ring-loader/p-ring-loader.vue';
|
|
27
|
-
import PSelect from './p-select/p-select.vue';
|
|
28
|
-
import PSelectBtn from './p-select-btn/p-select-btn.vue';
|
|
29
|
-
import PSelectList from './p-select-list/p-select-list.vue';
|
|
30
|
-
import PSelectPill from './p-select-pill/p-select-pill.vue';
|
|
31
|
-
import PSkeletonLoader from './p-skeleton-loader/p-skeleton-loader.vue';
|
|
32
|
-
import PTable from './p-table/p-table.vue';
|
|
33
|
-
import PTableHeaderCell from './p-table-header-cell/p-table-header-cell.vue';
|
|
34
|
-
import PTableLoader from './p-table-loader/p-table-loader.vue';
|
|
35
|
-
import PTableSort from './p-table-sort/p-table-sort.vue';
|
|
36
|
-
import PTableTd from './p-table-td/p-table-td.vue';
|
|
37
|
-
import PTabs from './p-tabs/p-tabs.vue';
|
|
38
|
-
import PTextarea from './p-textarea/p-textarea.vue';
|
|
39
|
-
import PToggle from './p-toggle/p-toggle.vue';
|
|
40
|
-
import { type FileUploadFile } from './p-file-upload/p-file-upload.types';
|
|
41
|
-
import { type HeaderCellAttrs, MIN_WIDTH_COL_RESIZE, type TableCol, type ThAttrs, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey } from './p-table/p-table.types';
|
|
42
|
-
import { SORTING_TYPES, type SortingType, type SortingTypeWithoutNoSorting } from './p-table-sort/p-table-sort.config';
|
|
43
|
-
import { type Size } from './p-btn/p-btn.types';
|
|
44
|
-
import { usePLoading } from './p-loading/usePLoading';
|
|
45
|
-
import { usePModal } from './p-modal/usePModal';
|
|
46
|
-
import { usePTableColResize } from './p-table/usePTableColResize';
|
|
47
|
-
import { usePTableRowVirtualizer } from './p-table/usePTableRowVirtualizer';
|
|
48
|
-
import { useSelectList } from './p-select-list/useSelectList';
|
|
49
|
-
export { PActionBar, PAlert, PAvatar, PBtn, PCard, PCheckbox, PChips, PCloseBtn, PDatePicker, PDrawer, PDropdown, PDropdownSelect, PFileUpload, PFilterIcon, PInfoIcon, PInlineDatePicker, PInput, PInputNumber, PInputPercent, PInputSearch, PLoading, PModal, PPagination, PPaginationInfo, PProgressBar, PRingLoader, PSelect, PSelectBtn, PSelectList, PSelectPill, PSkeletonLoader, PTable, PTableHeaderCell, PTableLoader, PTableSort, PTableTd, PTabs, PTextarea, PToggle, SORTING_TYPES, MIN_WIDTH_COL_RESIZE, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, usePModal, usePTableColResize, usePTableRowVirtualizer, useSelectList, usePLoading, SortingType, SortingTypeWithoutNoSorting, Size, FileUploadFile, HeaderCellAttrs, TableCol, ThAttrs, };
|
package/dist/squirrel/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{squirrel/components → components}/p-inline-date-picker/p-inline-date-picker.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{squirrel/components → components}/p-pagination-info/p-pagination-info.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{squirrel/components → components}/p-skeleton-loader/p-skeleton-loader.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{squirrel/components → components}/p-table-header-cell/p-table-filter-icon.vue.d.ts
RENAMED
|
File without changes
|
/package/dist/{squirrel/components → components}/p-table-header-cell/p-table-header-cell.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|