@pequity/squirrel 5.2.2 → 5.2.3
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/dist/cjs/p-input-search.js +3 -2
- package/dist/cjs/p-modal.js +5 -2
- package/dist/es/p-input-search.js +3 -2
- package/dist/es/p-modal.js +5 -2
- package/dist/style.css +27 -27
- package/package.json +22 -27
- package/squirrel/components/p-action-bar/p-action-bar.spec.js +1 -1
- package/squirrel/components/p-alert/p-alert.spec.js +1 -1
- package/squirrel/components/p-avatar/p-avatar.spec.js +1 -1
- package/squirrel/components/p-btn/p-btn.spec.js +3 -7
- package/squirrel/components/p-card/p-card.spec.js +1 -1
- package/squirrel/components/p-checkbox/p-checkbox.spec.js +1 -1
- package/squirrel/components/p-chips/p-chips.spec.js +1 -1
- package/squirrel/components/p-close-btn/p-close-btn.spec.js +1 -1
- package/squirrel/components/p-dropdown/p-dropdown.spec.js +5 -9
- package/squirrel/components/p-dropdown-select/p-dropdown-select.spec.js +4 -5
- package/squirrel/components/p-file-upload/p-file-upload.spec.js +1 -1
- package/squirrel/components/p-icon/p-icon.spec.js +16 -29
- package/squirrel/components/p-info-icon/p-info-icon.spec.js +1 -1
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.spec.js +4 -4
- package/squirrel/components/p-input/p-input.spec.js +1 -1
- package/squirrel/components/p-input-number/p-input-number.spec.js +1 -1
- package/squirrel/components/p-input-percent/p-input-percent.spec.js +1 -1
- package/squirrel/components/p-input-search/p-input-search.spec.js +1 -1
- package/squirrel/components/p-input-search/p-input-search.vue +1 -1
- package/squirrel/components/p-link/p-link.spec.js +3 -7
- package/squirrel/components/p-loading/p-loading.spec.js +23 -23
- package/squirrel/components/p-modal/p-modal-basic.spec.js +1 -1
- package/squirrel/components/p-modal/p-modal-events.spec.js +1 -1
- package/squirrel/components/p-modal/p-modal-features.spec.js +1 -1
- package/squirrel/components/p-modal/p-modal.vue +4 -0
- package/squirrel/components/p-pagination/p-pagination.spec.js +1 -1
- package/squirrel/components/p-pagination-info/p-pagination-info.spec.js +1 -1
- package/squirrel/components/p-progress-bar/p-progess-bar.spec.js +1 -1
- package/squirrel/components/p-ring-loader/p-ring-loader.spec.js +1 -1
- package/squirrel/components/p-select/p-select.spec.js +1 -1
- package/squirrel/components/p-select-btn/p-select-btn.spec.js +1 -1
- package/squirrel/components/p-select-list/p-select-list.spec.js +4 -5
- package/squirrel/components/p-select-pill/p-select-pill.spec.js +1 -1
- package/squirrel/components/p-skeleton-loader/p-skeleton-loader.spec.js +1 -1
- package/squirrel/components/p-table/p-table.spec.js +1 -1
- package/squirrel/components/p-table-header-cell/p-filter-icon.spec.js +1 -1
- package/squirrel/components/p-table-header-cell/p-table-header-cell.spec.js +1 -1
- package/squirrel/components/p-table-loader/p-table-loader.spec.js +1 -1
- package/squirrel/components/p-table-sort/p-table-sort.spec.js +1 -1
- package/squirrel/components/p-table-td/p-table-td.spec.js +36 -1
- package/squirrel/components/p-tabs/p-tabs.spec.js +1 -1
- package/squirrel/components/p-textarea/p-textarea.spec.js +1 -1
- package/squirrel/components/p-toggle/p-toggle.spec.js +1 -1
- package/squirrel/composables/useInputClasses.spec.js +41 -0
- package/squirrel/index.spec.js +21 -0
- package/squirrel/utils/dom.spec.js +2 -3
- package/squirrel/utils/listKeyboardNavigation.spec.js +5 -9
- package/squirrel/utils/sanitization.spec.js +1 -1
- package/squirrel/utils/tailwind.spec.js +27 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cloneDeep } from 'lodash-es';
|
|
2
|
+
import { getScreen } from './tailwind';
|
|
3
|
+
|
|
4
|
+
const screens = { sm: '640px', md: '768px' };
|
|
5
|
+
|
|
6
|
+
describe('tailwind', () => {
|
|
7
|
+
it('should return the correct screen size for a valid key', () => {
|
|
8
|
+
// Mock the theme.screens object
|
|
9
|
+
const originalScreens = global.screens;
|
|
10
|
+
global.screens = cloneDeep(screens);
|
|
11
|
+
|
|
12
|
+
expect(getScreen('sm')).toBe('640px');
|
|
13
|
+
expect(getScreen('md')).toBe('768px');
|
|
14
|
+
|
|
15
|
+
// Restore the original screens object
|
|
16
|
+
global.screens = originalScreens;
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should return undefined for an invalid key', () => {
|
|
20
|
+
const originalScreens = global.screens;
|
|
21
|
+
global.screens = cloneDeep(screens);
|
|
22
|
+
|
|
23
|
+
expect(getScreen('xxl')).toBeUndefined();
|
|
24
|
+
|
|
25
|
+
global.screens = originalScreens;
|
|
26
|
+
});
|
|
27
|
+
});
|