@pequity/squirrel 5.3.1 → 5.4.0

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.
Files changed (96) hide show
  1. package/dist/cjs/inputClassesShared.js +1 -1
  2. package/dist/es/inputClassesShared.js +1 -1
  3. package/dist/squirrel/components/index.d.ts +53 -0
  4. package/dist/squirrel/{squirrel/components → components}/p-action-bar/p-action-bar.vue.d.ts +1 -1
  5. package/dist/squirrel/{squirrel/components → components}/p-btn/p-btn.vue.d.ts +1 -1
  6. package/dist/squirrel/{squirrel/components → components}/p-dropdown/p-dropdown.vue.d.ts +1 -1
  7. package/dist/squirrel/{squirrel/components → components}/p-dropdown-select/p-dropdown-select.vue.d.ts +1 -1
  8. package/dist/squirrel/{squirrel/components → components}/p-file-upload/p-file-upload.vue.d.ts +1 -1
  9. package/dist/squirrel/{squirrel/components → components}/p-icon/p-icon.vue.d.ts +1 -1
  10. package/dist/squirrel/{squirrel/components → components}/p-input-percent/p-input-percent.vue.d.ts +1 -1
  11. package/dist/squirrel/{squirrel/components → components}/p-input-search/p-input-search.vue.d.ts +1 -1
  12. package/dist/squirrel/{squirrel/components → components}/p-select/p-select.vue.d.ts +1 -1
  13. package/dist/squirrel/{squirrel/components → components}/p-select-btn/p-select-btn.vue.d.ts +1 -1
  14. package/dist/squirrel/{squirrel/components → components}/p-select-list/p-select-list.utils.d.ts +1 -1
  15. package/dist/squirrel/{squirrel/components → components}/p-select-list/p-select-list.vue.d.ts +1 -1
  16. package/dist/squirrel/{squirrel/components → components}/p-select-list/useSelectList.d.ts +1 -1
  17. package/dist/squirrel/{squirrel/components → components}/p-table/p-table.vue.d.ts +1 -1
  18. package/dist/squirrel/{squirrel/components → components}/p-table-sort/p-table-sort.vue.d.ts +1 -1
  19. package/dist/squirrel/composables/index.d.ts +2 -0
  20. package/dist/squirrel/{squirrel/composables → composables}/useInputClasses.d.ts +1 -1
  21. package/dist/squirrel/index.d.ts +5 -0
  22. package/dist/squirrel/{squirrel/utils → utils}/index.d.ts +12 -12
  23. package/dist/squirrel/{squirrel/utils → utils}/inputClassesMixin.d.ts +1 -1
  24. package/dist/squirrel/{squirrel/utils → utils}/inputClassesShared.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/squirrel/components/p-file-upload/p-file-upload.spec.js +1 -1
  27. package/squirrel/components/p-inline-date-picker/p-inline-date-picker.spec.js +1 -1
  28. package/squirrel/components/p-input/p-input.spec.js +1 -1
  29. package/squirrel/components/p-input-number/p-input-number.spec.js +1 -1
  30. package/squirrel/components/p-input-percent/p-input-percent.spec.js +1 -1
  31. package/squirrel/components/p-select/p-select.spec.js +1 -1
  32. package/squirrel/components/p-textarea/p-textarea.spec.js +1 -1
  33. package/squirrel/composables/useInputClasses.spec.js +1 -1
  34. package/squirrel/utils/inputClassesMixin.spec.js +1 -1
  35. package/squirrel/utils/inputClassesShared.ts +1 -1
  36. package/dist/squirrel/squirrel/components/index.d.ts +0 -53
  37. package/dist/squirrel/squirrel/components/p-action-bar/p-action-bar.spec.d.ts +0 -1
  38. package/dist/squirrel/squirrel/components/p-avatar/p-avatar.spec.d.ts +0 -1
  39. package/dist/squirrel/squirrel/composables/index.d.ts +0 -2
  40. package/dist/squirrel/squirrel/index.d.ts +0 -5
  41. package/dist/squirrel/squirrel/utils/component.spec.d.ts +0 -1
  42. package/dist/squirrel/squirrel/utils/string.spec.d.ts +0 -1
  43. package/dist/squirrel/tests/vitest.helpers.d.ts +0 -12
  44. /package/dist/squirrel/{squirrel/components → components}/p-action-bar/p-action-bar.types.d.ts +0 -0
  45. /package/dist/squirrel/{squirrel/components → components}/p-alert/p-alert.vue.d.ts +0 -0
  46. /package/dist/squirrel/{squirrel/components → components}/p-avatar/p-avatar.vue.d.ts +0 -0
  47. /package/dist/squirrel/{squirrel/components → components}/p-btn/p-btn.types.d.ts +0 -0
  48. /package/dist/squirrel/{squirrel/components → components}/p-card/p-card.vue.d.ts +0 -0
  49. /package/dist/squirrel/{squirrel/components → components}/p-checkbox/p-checkbox.vue.d.ts +0 -0
  50. /package/dist/squirrel/{squirrel/components → components}/p-chips/p-chips.vue.d.ts +0 -0
  51. /package/dist/squirrel/{squirrel/components → components}/p-close-btn/p-close-btn.vue.d.ts +0 -0
  52. /package/dist/squirrel/{squirrel/components → components}/p-date-picker/p-date-picker.vue.d.ts +0 -0
  53. /package/dist/squirrel/{squirrel/components → components}/p-drawer/p-drawer.vue.d.ts +0 -0
  54. /package/dist/squirrel/{squirrel/components → components}/p-file-upload/p-file-upload.types.d.ts +0 -0
  55. /package/dist/squirrel/{squirrel/components → components}/p-file-upload/p-file-upload.utils.d.ts +0 -0
  56. /package/dist/squirrel/{squirrel/components → components}/p-icon/p-icon.types.d.ts +0 -0
  57. /package/dist/squirrel/{squirrel/components → components}/p-info-icon/p-info-icon.vue.d.ts +0 -0
  58. /package/dist/squirrel/{squirrel/components → components}/p-inline-date-picker/p-inline-date-picker.vue.d.ts +0 -0
  59. /package/dist/squirrel/{squirrel/components → components}/p-input/p-input.vue.d.ts +0 -0
  60. /package/dist/squirrel/{squirrel/components → components}/p-input-number/p-input-number.vue.d.ts +0 -0
  61. /package/dist/squirrel/{squirrel/components → components}/p-link/p-link.vue.d.ts +0 -0
  62. /package/dist/squirrel/{squirrel/components → components}/p-loading/p-loading.vue.d.ts +0 -0
  63. /package/dist/squirrel/{squirrel/components → components}/p-loading/usePLoading.d.ts +0 -0
  64. /package/dist/squirrel/{squirrel/components → components}/p-modal/p-modal.vue.d.ts +0 -0
  65. /package/dist/squirrel/{squirrel/components → components}/p-modal/usePModal.d.ts +0 -0
  66. /package/dist/squirrel/{squirrel/components → components}/p-pagination/p-pagination.vue.d.ts +0 -0
  67. /package/dist/squirrel/{squirrel/components → components}/p-pagination-info/p-pagination-info.vue.d.ts +0 -0
  68. /package/dist/squirrel/{squirrel/components → components}/p-progress-bar/p-progress-bar.vue.d.ts +0 -0
  69. /package/dist/squirrel/{squirrel/components → components}/p-ring-loader/p-ring-loader.vue.d.ts +0 -0
  70. /package/dist/squirrel/{squirrel/components → components}/p-select-list/p-select-list.types.d.ts +0 -0
  71. /package/dist/squirrel/{squirrel/components → components}/p-select-pill/p-select-pill.vue.d.ts +0 -0
  72. /package/dist/squirrel/{squirrel/components → components}/p-skeleton-loader/p-skeleton-loader.vue.d.ts +0 -0
  73. /package/dist/squirrel/{squirrel/components → components}/p-table/p-table.types.d.ts +0 -0
  74. /package/dist/squirrel/{squirrel/components → components}/p-table/usePTableColResize.d.ts +0 -0
  75. /package/dist/squirrel/{squirrel/components → components}/p-table/usePTableRowVirtualizer.d.ts +0 -0
  76. /package/dist/squirrel/{squirrel/components → components}/p-table-header-cell/p-table-filter-icon.vue.d.ts +0 -0
  77. /package/dist/squirrel/{squirrel/components → components}/p-table-header-cell/p-table-header-cell.vue.d.ts +0 -0
  78. /package/dist/squirrel/{squirrel/components → components}/p-table-loader/p-table-loader.vue.d.ts +0 -0
  79. /package/dist/squirrel/{squirrel/components → components}/p-table-sort/p-table-sort.config.d.ts +0 -0
  80. /package/dist/squirrel/{squirrel/components → components}/p-table-td/p-table-td.vue.d.ts +0 -0
  81. /package/dist/squirrel/{squirrel/components → components}/p-tabs/p-tabs.vue.d.ts +0 -0
  82. /package/dist/squirrel/{squirrel/components → components}/p-textarea/p-textarea.vue.d.ts +0 -0
  83. /package/dist/squirrel/{squirrel/components → components}/p-toggle/p-toggle.vue.d.ts +0 -0
  84. /package/dist/squirrel/{squirrel/tailwind → tailwind}/config.d.ts +0 -0
  85. /package/dist/squirrel/{squirrel/utils → utils}/component.d.ts +0 -0
  86. /package/dist/squirrel/{squirrel/utils → utils}/currency.d.ts +0 -0
  87. /package/dist/squirrel/{squirrel/utils → utils}/dom.d.ts +0 -0
  88. /package/dist/squirrel/{squirrel/utils → utils}/link.d.ts +0 -0
  89. /package/dist/squirrel/{squirrel/utils → utils}/listKeyboardNavigation.d.ts +0 -0
  90. /package/dist/squirrel/{squirrel/utils → utils}/number.d.ts +0 -0
  91. /package/dist/squirrel/{squirrel/utils → utils}/object.d.ts +0 -0
  92. /package/dist/squirrel/{squirrel/utils → utils}/pagination.d.ts +0 -0
  93. /package/dist/squirrel/{squirrel/utils → utils}/sanitization.d.ts +0 -0
  94. /package/dist/squirrel/{squirrel/utils → utils}/string.d.ts +0 -0
  95. /package/dist/squirrel/{squirrel/utils → utils}/tailwind.d.ts +0 -0
  96. /package/dist/squirrel/{squirrel/utils → utils}/text.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const LABEL_BASE = `block mb-1 font-bold`;
3
+ const LABEL_BASE = `block mb-1 font-medium`;
4
4
  const LABEL_SIZES = {
5
5
  sm: `text-xs`,
6
6
  md: `text-sm`,
@@ -1,4 +1,4 @@
1
- const LABEL_BASE = `block mb-1 font-bold`;
1
+ const LABEL_BASE = `block mb-1 font-medium`;
2
2
  const LABEL_SIZES = {
3
3
  sm: `text-xs`,
4
4
  md: `text-sm`,
@@ -0,0 +1,53 @@
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 PIcon from './p-icon/p-icon.vue';
16
+ import PInfoIcon from './p-info-icon/p-info-icon.vue';
17
+ import PInlineDatePicker from './p-inline-date-picker/p-inline-date-picker.vue';
18
+ import PInput from './p-input/p-input.vue';
19
+ import PInputNumber from './p-input-number/p-input-number.vue';
20
+ import PInputPercent from './p-input-percent/p-input-percent.vue';
21
+ import PInputSearch from './p-input-search/p-input-search.vue';
22
+ import PLink from './p-link/p-link.vue';
23
+ import PLoading from './p-loading/p-loading.vue';
24
+ import PModal from './p-modal/p-modal.vue';
25
+ import PPagination from './p-pagination/p-pagination.vue';
26
+ import PPaginationInfo from './p-pagination-info/p-pagination-info.vue';
27
+ import PProgressBar from './p-progress-bar/p-progress-bar.vue';
28
+ import PRingLoader from './p-ring-loader/p-ring-loader.vue';
29
+ import PSelect from './p-select/p-select.vue';
30
+ import PSelectBtn from './p-select-btn/p-select-btn.vue';
31
+ import PSelectList from './p-select-list/p-select-list.vue';
32
+ import PSelectPill from './p-select-pill/p-select-pill.vue';
33
+ import PSkeletonLoader from './p-skeleton-loader/p-skeleton-loader.vue';
34
+ import PTable from './p-table/p-table.vue';
35
+ import PTableHeaderCell from './p-table-header-cell/p-table-header-cell.vue';
36
+ import PTableLoader from './p-table-loader/p-table-loader.vue';
37
+ import PTableSort from './p-table-sort/p-table-sort.vue';
38
+ import PTableTd from './p-table-td/p-table-td.vue';
39
+ import PTabs from './p-tabs/p-tabs.vue';
40
+ import PTextarea from './p-textarea/p-textarea.vue';
41
+ import PToggle from './p-toggle/p-toggle.vue';
42
+ import { type FileUploadFile } from './p-file-upload/p-file-upload.types';
43
+ import { type HeaderCellAttrs, MIN_WIDTH_COL_RESIZE, type TableCol, type ThAttrs, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey } from './p-table/p-table.types';
44
+ import { type PActionBarAction } from './p-action-bar/p-action-bar.types';
45
+ import { type PIconAlias, P_ICON_ALIASES } from './p-icon/p-icon.types';
46
+ import { SORTING_TYPES, type SortingType, type SortingTypeWithoutNoSorting } from './p-table-sort/p-table-sort.config';
47
+ import { type Size } from './p-btn/p-btn.types';
48
+ import { usePLoading } from './p-loading/usePLoading';
49
+ import { usePModal } from './p-modal/usePModal';
50
+ import { usePTableColResize } from './p-table/usePTableColResize';
51
+ import { usePTableRowVirtualizer } from './p-table/usePTableRowVirtualizer';
52
+ import { useSelectList } from './p-select-list/useSelectList';
53
+ export { PActionBar, PActionBarAction, PAlert, PAvatar, PBtn, PCard, PCheckbox, PChips, PCloseBtn, PDatePicker, PDrawer, PDropdown, PDropdownSelect, PFileUpload, PFilterIcon, PIcon, PInfoIcon, PInlineDatePicker, PInput, PInputNumber, PInputPercent, PInputSearch, PLink, 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, P_ICON_ALIASES, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, usePModal, usePTableColResize, usePTableRowVirtualizer, useSelectList, usePLoading, SortingType, SortingTypeWithoutNoSorting, Size, FileUploadFile, HeaderCellAttrs, TableCol, ThAttrs, PIconAlias, };
@@ -1,4 +1,4 @@
1
- import { type PActionBarAction } from '../../../components/p-action-bar/p-action-bar.types';
1
+ import { type PActionBarAction } from './p-action-bar.types';
2
2
  type Props = {
3
3
  show: boolean;
4
4
  label: string;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type RouteLocationRaw } from 'vue-router';
3
- import { type Size } from '../../../components/p-btn/p-btn.types';
3
+ import { type Size } from './p-btn.types';
4
4
  declare const BUTTON_TYPES: {
5
5
  readonly PRIMARY: "primary";
6
6
  readonly SECONDARY: "secondary";
@@ -1,4 +1,4 @@
1
- import { type ListKeyboardNavigationInstance } from '../../../utils/listKeyboardNavigation';
1
+ import { type ListKeyboardNavigationInstance } from '../../utils/listKeyboardNavigation';
2
2
  import { type PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import { type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
2
+ import { type ModelValue, type Size } from '../p-select-list/p-select-list.types';
3
3
  type AnyValue = string | number | boolean | null | undefined | Record<string, unknown>;
4
4
  type AnyObject = Record<string, AnyValue>;
5
5
  declare function __VLS_template(): {
@@ -1,4 +1,4 @@
1
- import { type FileUploadFile } from '../../../components/p-file-upload/p-file-upload.types';
1
+ import { type FileUploadFile } from './p-file-upload.types';
2
2
  import { type PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
@@ -1,5 +1,5 @@
1
1
  import { type IconifyIconAttributes } from 'iconify-icon';
2
- import { type PIconAlias } from '../../../components/p-icon/p-icon.types';
2
+ import { type PIconAlias } from './p-icon.types';
3
3
  import 'iconify-icon';
4
4
  interface Props extends /* @vue-ignore */ Omit<IconifyIconAttributes, 'icon'> {
5
5
  icon: IconifyIconAttributes['icon'] | PIconAlias;
@@ -1,4 +1,4 @@
1
- import { type InputSize } from '../../../utils/inputClassesShared';
1
+ import { type InputSize } from '../../utils/inputClassesShared';
2
2
  import { type PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
@@ -1,4 +1,4 @@
1
- import { type InputSize } from '../../../utils/inputClassesShared';
1
+ import { type InputSize } from '../../utils/inputClassesShared';
2
2
  import { type PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
@@ -1,4 +1,4 @@
1
- import { type InputSize } from '../../../utils/inputClassesShared';
1
+ import { type InputSize } from '../../utils/inputClassesShared';
2
2
  import { type PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  slots: {
@@ -1,4 +1,4 @@
1
- import { type Size } from '../../../components/p-btn/p-btn.types';
1
+ import { type Size } from '../p-btn/p-btn.types';
2
2
  type BtnGroupItem = Record<string, string | number | boolean>;
3
3
  type Props = {
4
4
  modelValue?: string | number | null | BtnGroupItem[];
@@ -1,3 +1,3 @@
1
- import { type AnyObject, type AnyValue } from '../../../components/p-select-list/p-select-list.types';
1
+ import { type AnyObject, type AnyValue } from './p-select-list.types';
2
2
  export declare const createInternalItems: (items: unknown[]) => AnyObject[];
3
3
  export declare const createInternalValue: (modelValue: AnyValue | AnyValue[] | AnyObject | AnyObject[], valueIsObject: boolean, multiple: boolean, itemValue: AnyValue, internalItems: AnyObject[]) => AnyValue[];
@@ -1,4 +1,4 @@
1
- import { type AnyObject, type AnyValue, type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
1
+ import { type AnyObject, type AnyValue, type ModelValue, type Size } from './p-select-list.types';
2
2
  import { type PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  slots: Readonly<{
@@ -1,4 +1,4 @@
1
- import { type AnyObject, type AnyValue, type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
1
+ import { type AnyObject, type AnyValue, type ModelValue, type Size } from './p-select-list.types';
2
2
  import { type ComponentPublicInstance, type Ref } from 'vue';
3
3
  type Emits = {
4
4
  (e: 'update:modelValue', modelValue: ModelValue): void;
@@ -1,4 +1,4 @@
1
- import { type TableCol } from '../../../components/p-table/p-table.types';
1
+ import { type TableCol } from './p-table.types';
2
2
  type Props = {
3
3
  cols: TableCol[];
4
4
  colsResizable?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import { type SortingType } from '../../../components/p-table-sort/p-table-sort.config';
2
+ import { type SortingType } from './p-table-sort.config';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
5
  type: PropType<SortingType>;
@@ -0,0 +1,2 @@
1
+ import { useInputClasses } from './useInputClasses';
2
+ export { useInputClasses };
@@ -1,4 +1,4 @@
1
- import { type InputSize } from '../../utils/inputClassesShared';
1
+ import { type InputSize } from '../utils/inputClassesShared';
2
2
  type Props = {
3
3
  size: InputSize;
4
4
  errorMsg: string;
@@ -0,0 +1,5 @@
1
+ import './assets/squirrel.css';
2
+ export * from './tailwind/config';
3
+ export * from './components';
4
+ export * from './composables';
5
+ export * from './utils';
@@ -1,13 +1,13 @@
1
- import inputClassesMixin from '../../utils/inputClassesMixin';
2
- import { CURRENCY_INPUT_DEFAULTS } from '../../utils/currency';
3
- import { type Color, getColor, getColorDeep, getScreen } from '../../utils/tailwind';
4
- import { ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, type InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE } from '../../utils/inputClassesShared';
5
- import { createPagingRange } from '../../utils/pagination';
6
- import { getNextActiveElement, isElement, isVisible } from '../../utils/dom';
7
- import { isObject } from '../../utils/object';
8
- import { sanitizeUrl } from '../../utils/sanitization';
9
- import { setupListKeyboardNavigation } from '../../utils/listKeyboardNavigation';
10
- import { splitStringForHighlight } from '../../utils/text';
11
- import { toNumberOrNull } from '../../utils/number';
12
- import { toString } from '../../utils/string';
1
+ import inputClassesMixin from './inputClassesMixin';
2
+ import { CURRENCY_INPUT_DEFAULTS } from './currency';
3
+ import { type Color, getColor, getColorDeep, getScreen } from './tailwind';
4
+ import { ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, type InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE } from './inputClassesShared';
5
+ import { createPagingRange } from './pagination';
6
+ import { getNextActiveElement, isElement, isVisible } from './dom';
7
+ import { isObject } from './object';
8
+ import { sanitizeUrl } from './sanitization';
9
+ import { setupListKeyboardNavigation } from './listKeyboardNavigation';
10
+ import { splitStringForHighlight } from './text';
11
+ import { toNumberOrNull } from './number';
12
+ import { toString } from './string';
13
13
  export { inputClassesMixin, CURRENCY_INPUT_DEFAULTS, Color, getColor, getColorDeep, getScreen, ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE, createPagingRange, getNextActiveElement, isElement, isVisible, isObject, sanitizeUrl, setupListKeyboardNavigation, splitStringForHighlight, toNumberOrNull, toString, };
@@ -1,4 +1,4 @@
1
- import { type InputSize } from '../../utils/inputClassesShared';
1
+ import { type InputSize } from './inputClassesShared';
2
2
  import { type PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  size: {
@@ -1,4 +1,4 @@
1
- export declare const LABEL_BASE = "block mb-1 font-bold";
1
+ export declare const LABEL_BASE = "block mb-1 font-medium";
2
2
  export declare const LABEL_SIZES: {
3
3
  sm: string;
4
4
  md: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "5.3.1",
4
+ "version": "5.4.0",
5
5
  "packageManager": "pnpm@9.11.0",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -43,7 +43,7 @@ describe('PFileUpload.vue', () => {
43
43
  expect(wrapper.find('label').classes()).toEqual([
44
44
  'block',
45
45
  'mb-1',
46
- 'font-bold',
46
+ 'font-medium',
47
47
  'text-sm',
48
48
  "after:content-['_*']",
49
49
  'after:text-on-error',
@@ -69,7 +69,7 @@ describe('PInlineDatePicker.vue', () => {
69
69
  expect(wrapper.find('label').classes()).toEqual([
70
70
  'block',
71
71
  'mb-1',
72
- 'font-bold',
72
+ 'font-medium',
73
73
  'text-sm',
74
74
  "after:content-['_*']",
75
75
  'after:text-on-error',
@@ -65,7 +65,7 @@ describe('PInput.vue', () => {
65
65
  expect(wrapper.find('label').classes()).toEqual([
66
66
  'block',
67
67
  'mb-1',
68
- 'font-bold',
68
+ 'font-medium',
69
69
  'text-sm',
70
70
  "after:content-['_*']",
71
71
  'after:text-on-error',
@@ -70,7 +70,7 @@ describe('PInputNumber.vue', () => {
70
70
  expect(wrapper.find('label').classes()).toEqual([
71
71
  'block',
72
72
  'mb-1',
73
- 'font-bold',
73
+ 'font-medium',
74
74
  'text-sm',
75
75
  "after:content-['_*']",
76
76
  'after:text-on-error',
@@ -39,7 +39,7 @@ describe('PInputPercent.vue', () => {
39
39
  expect(wrapper.find('label').classes()).toEqual([
40
40
  'block',
41
41
  'mb-1',
42
- 'font-bold',
42
+ 'font-medium',
43
43
  'text-sm',
44
44
  "after:content-['_*']",
45
45
  'after:text-on-error',
@@ -80,7 +80,7 @@ describe('PSelect.vue', () => {
80
80
  expect(wrapper.find('label').classes()).toEqual([
81
81
  'block',
82
82
  'mb-1',
83
- 'font-bold',
83
+ 'font-medium',
84
84
  'text-sm',
85
85
  "after:content-['_*']",
86
86
  'after:text-on-error',
@@ -53,7 +53,7 @@ describe('PTextarea.vue', () => {
53
53
  expect(wrapper.find('label').classes()).toEqual([
54
54
  'block',
55
55
  'mb-1',
56
- 'font-bold',
56
+ 'font-medium',
57
57
  'text-sm',
58
58
  "after:content-['_*']",
59
59
  'after:text-on-error',
@@ -44,7 +44,7 @@ const baseInputClassesLg = () => {
44
44
  .replace('pr-4', 'pr-5');
45
45
  };
46
46
 
47
- const baseLabelClasses = 'block mb-1 font-bold text-sm';
47
+ const baseLabelClasses = 'block mb-1 font-medium text-sm';
48
48
 
49
49
  describe('useInputClasses', () => {
50
50
  it('generates input classes md', () => {
@@ -43,7 +43,7 @@ const baseInputClassesLg = () => {
43
43
  .replace('pr-4', 'pr-5');
44
44
  };
45
45
 
46
- const baseLabelClasses = 'block mb-1 font-bold text-sm';
46
+ const baseLabelClasses = 'block mb-1 font-medium text-sm';
47
47
 
48
48
  const createWrapper = (opts) => {
49
49
  const TestComponent = {
@@ -1,4 +1,4 @@
1
- export const LABEL_BASE = `block mb-1 font-bold`;
1
+ export const LABEL_BASE = `block mb-1 font-medium`;
2
2
 
3
3
  export const LABEL_SIZES = {
4
4
  sm: `text-xs`,
@@ -1,53 +0,0 @@
1
- import PActionBar from '../../components/p-action-bar/p-action-bar.vue';
2
- import PAlert from '../../components/p-alert/p-alert.vue';
3
- import PAvatar from '../../components/p-avatar/p-avatar.vue';
4
- import PBtn from '../../components/p-btn/p-btn.vue';
5
- import PCard from '../../components/p-card/p-card.vue';
6
- import PCheckbox from '../../components/p-checkbox/p-checkbox.vue';
7
- import PChips from '../../components/p-chips/p-chips.vue';
8
- import PCloseBtn from '../../components/p-close-btn/p-close-btn.vue';
9
- import PDatePicker from '../../components/p-date-picker/p-date-picker.vue';
10
- import PDrawer from '../../components/p-drawer/p-drawer.vue';
11
- import PDropdown from '../../components/p-dropdown/p-dropdown.vue';
12
- import PDropdownSelect from '../../components/p-dropdown-select/p-dropdown-select.vue';
13
- import PFileUpload from '../../components/p-file-upload/p-file-upload.vue';
14
- import PFilterIcon from '../../components/p-table-header-cell/p-table-filter-icon.vue';
15
- import PIcon from '../../components/p-icon/p-icon.vue';
16
- import PInfoIcon from '../../components/p-info-icon/p-info-icon.vue';
17
- import PInlineDatePicker from '../../components/p-inline-date-picker/p-inline-date-picker.vue';
18
- import PInput from '../../components/p-input/p-input.vue';
19
- import PInputNumber from '../../components/p-input-number/p-input-number.vue';
20
- import PInputPercent from '../../components/p-input-percent/p-input-percent.vue';
21
- import PInputSearch from '../../components/p-input-search/p-input-search.vue';
22
- import PLink from '../../components/p-link/p-link.vue';
23
- import PLoading from '../../components/p-loading/p-loading.vue';
24
- import PModal from '../../components/p-modal/p-modal.vue';
25
- import PPagination from '../../components/p-pagination/p-pagination.vue';
26
- import PPaginationInfo from '../../components/p-pagination-info/p-pagination-info.vue';
27
- import PProgressBar from '../../components/p-progress-bar/p-progress-bar.vue';
28
- import PRingLoader from '../../components/p-ring-loader/p-ring-loader.vue';
29
- import PSelect from '../../components/p-select/p-select.vue';
30
- import PSelectBtn from '../../components/p-select-btn/p-select-btn.vue';
31
- import PSelectList from '../../components/p-select-list/p-select-list.vue';
32
- import PSelectPill from '../../components/p-select-pill/p-select-pill.vue';
33
- import PSkeletonLoader from '../../components/p-skeleton-loader/p-skeleton-loader.vue';
34
- import PTable from '../../components/p-table/p-table.vue';
35
- import PTableHeaderCell from '../../components/p-table-header-cell/p-table-header-cell.vue';
36
- import PTableLoader from '../../components/p-table-loader/p-table-loader.vue';
37
- import PTableSort from '../../components/p-table-sort/p-table-sort.vue';
38
- import PTableTd from '../../components/p-table-td/p-table-td.vue';
39
- import PTabs from '../../components/p-tabs/p-tabs.vue';
40
- import PTextarea from '../../components/p-textarea/p-textarea.vue';
41
- import PToggle from '../../components/p-toggle/p-toggle.vue';
42
- import { type FileUploadFile } from '../../components/p-file-upload/p-file-upload.types';
43
- import { type HeaderCellAttrs, MIN_WIDTH_COL_RESIZE, type TableCol, type ThAttrs, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey } from '../../components/p-table/p-table.types';
44
- import { type PActionBarAction } from '../../components/p-action-bar/p-action-bar.types';
45
- import { type PIconAlias, P_ICON_ALIASES } from '../../components/p-icon/p-icon.types';
46
- import { SORTING_TYPES, type SortingType, type SortingTypeWithoutNoSorting } from '../../components/p-table-sort/p-table-sort.config';
47
- import { type Size } from '../../components/p-btn/p-btn.types';
48
- import { usePLoading } from '../../components/p-loading/usePLoading';
49
- import { usePModal } from '../../components/p-modal/usePModal';
50
- import { usePTableColResize } from '../../components/p-table/usePTableColResize';
51
- import { usePTableRowVirtualizer } from '../../components/p-table/usePTableRowVirtualizer';
52
- import { useSelectList } from '../../components/p-select-list/useSelectList';
53
- export { PActionBar, PActionBarAction, PAlert, PAvatar, PBtn, PCard, PCheckbox, PChips, PCloseBtn, PDatePicker, PDrawer, PDropdown, PDropdownSelect, PFileUpload, PFilterIcon, PIcon, PInfoIcon, PInlineDatePicker, PInput, PInputNumber, PInputPercent, PInputSearch, PLink, 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, P_ICON_ALIASES, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, usePModal, usePTableColResize, usePTableRowVirtualizer, useSelectList, usePLoading, SortingType, SortingTypeWithoutNoSorting, Size, FileUploadFile, HeaderCellAttrs, TableCol, ThAttrs, PIconAlias, };
@@ -1,2 +0,0 @@
1
- import { useInputClasses } from '../../composables/useInputClasses';
2
- export { useInputClasses };
@@ -1,5 +0,0 @@
1
- import '../assets/squirrel.css';
2
- export * from '../tailwind/config';
3
- export * from '../components';
4
- export * from '../composables';
5
- export * from '../utils';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * A helper method to create vue test utils wrappers - https://test-utils.vuejs.org/api/#wrapper-methods
3
- * @param {any} component - The vue component to mount
4
- * @param {Options} options - A combination of mounting options and a plugins object, used to pass/override plugins to the mount function
5
- * @param {typeof mount} mountingMethod - The mounting method to use, defaults to mount
6
- * @returns {ExtendedWrapper}
7
- */
8
- export function createWrapperFor(component: any, options: Options, mountingMethod?: typeof mount): ExtendedWrapper;
9
- export function waitNT(ctx: any): Promise<any>;
10
- export function waitRAF(): Promise<any>;
11
- export function sleep(ms: any): Promise<any>;
12
- import { mount } from '@vue/test-utils';