@marianmeres/stuic 1.52.0 → 1.54.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.
package/dist/index.js CHANGED
@@ -19,11 +19,11 @@ export { default as Drawer, createDrawerStore } from './components/Drawer/Drawer
19
19
  //
20
20
  export { default as HoverExpandableWidth } from './components/HoverExpandableWidth/HoverExpandableWidth.svelte';
21
21
  //
22
- export { default as Field } from './components/Input/Field.svelte';
23
- export { default as FieldCheckbox } from './components/Input/FieldCheckbox.svelte';
24
- export { default as FieldRadios } from './components/Input/FieldRadios.svelte';
25
- export { default as FieldSelect } from './components/Input/FieldSelect.svelte';
26
- export { default as Fieldset } from './components/Input/Fieldset.svelte';
22
+ export { default as Field, FieldConfig, } from './components/Input/Field.svelte';
23
+ export { default as FieldCheckbox, FieldCheckboxConfig, } from './components/Input/FieldCheckbox.svelte';
24
+ export { default as FieldRadios, FieldRadiosConfig, } from './components/Input/FieldRadios.svelte';
25
+ export { default as FieldSelect, FieldSelectConfig, } from './components/Input/FieldSelect.svelte';
26
+ export { default as Fieldset, FieldsetConfig, } from './components/Input/Fieldset.svelte';
27
27
  //
28
28
  export { createNotificationsStore, NOTIFICATION_EVENT, } from './components/Notifications/notifications.js';
29
29
  export { default as Notifications, NotificationsConfig, } from './components/Notifications/Notifications.svelte';
@@ -0,0 +1,6 @@
1
+ export declare const omit: (obj: any, keys: string | string[]) => {
2
+ [k: string]: unknown;
3
+ };
4
+ export declare const pick: (obj: any, keys: string | string[]) => {
5
+ [k: string]: unknown;
6
+ };
@@ -0,0 +1,10 @@
1
+ export const omit = (obj, keys) => {
2
+ if (typeof keys === 'string')
3
+ keys = [keys];
4
+ return Object.fromEntries(Object.entries(obj).filter(([k]) => !(keys || []).includes(k)));
5
+ };
6
+ export const pick = (obj, keys) => {
7
+ if (typeof keys === 'string')
8
+ keys = [keys];
9
+ return Object.fromEntries(Object.entries(obj).filter(([k]) => (keys || []).includes(k)));
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.52.0",
3
+ "version": "1.54.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",