@dolanske/vui 1.12.0 → 1.13.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/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # VUI
2
-
3
- 1. `npm i @dolanske/vui`
4
- 2. In your main app entry,`import "@dolanske/vui/style` to import the global CSS
5
- 3. Override default style [tokens](https://dolanske.github.io/vui/docs/tokens) to fit your style
6
- 4. Build your thing bro
7
-
8
- ---
9
-
10
- ## Documentation
11
-
12
- [Visit the docs here <](https://dolanske.github.io/vui/)
1
+ # VUI
2
+
3
+ 1. `npm i @dolanske/vui`
4
+ 2. In your main app entry,`import "@dolanske/vui/style` to import the global CSS
5
+ 3. Override default style [tokens](https://dolanske.github.io/vui/docs/tokens) to fit your style
6
+ 4. Build your thing bro
7
+
8
+ ---
9
+
10
+ ## Documentation
11
+
12
+ [Visit the docs here <](https://dolanske.github.io/vui/)
@@ -18,6 +18,10 @@ interface Props {
18
18
  * Hides the left & right shadows which indicate option to scroll
19
19
  */
20
20
  hideShadows?: boolean;
21
+ /**
22
+ * Enables scroll-snap so items snap into place when scrolling stops
23
+ */
24
+ snap?: boolean;
21
25
  }
22
26
  declare function __VLS_template(): {
23
27
  attrs: Partial<{}>;
@@ -0,0 +1,39 @@
1
+ interface Props {
2
+ /**
3
+ * Use horizontal scrolling instead of vertical
4
+ */
5
+ horizontal?: boolean;
6
+ /**
7
+ * Hides the scrollbar and removes the scrollbar gutter padding
8
+ */
9
+ hideScrollbar?: boolean;
10
+ /**
11
+ * Hides shadows indicating scrolling context
12
+ */
13
+ hideShadows?: boolean;
14
+ /**
15
+ * Enables scroll-snap so items snap into place when scrolling stops
16
+ */
17
+ snap?: boolean;
18
+ }
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ default?(_: {}): any;
23
+ };
24
+ refs: {
25
+ content: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
+ content: HTMLDivElement;
32
+ }, HTMLDivElement>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -64,5 +64,6 @@ export declare function defineTable<const Dataset extends any[]>(computedDataset
64
64
  selectRow: (row: Dataset[number]) => void;
65
65
  selectAllRows: () => void;
66
66
  isSelectedAll: ComputedRef<boolean>;
67
+ deselectAllRows: () => void;
67
68
  };
68
69
  export {};
@@ -38,6 +38,7 @@ import { default as Confirm } from './components/Modal/Confirm.vue';
38
38
  import { default as Modal } from './components/Modal/Modal.vue';
39
39
  import { default as OTP } from './components/OTP/OTP.vue';
40
40
  import { default as OTPItem } from './components/OTP/OTPItem.vue';
41
+ import { default as Overflow } from './components/Overflow/Overflow.vue';
41
42
  import { paginate } from './components/Pagination/pagination';
42
43
  import { default as Pagination } from './components/Pagination/Pagination.vue';
43
44
  import { default as Popout } from './components/Popout/Popout.vue';
@@ -63,4 +64,4 @@ import { searchString } from './shared/helpers';
63
64
  import { setColorTheme, theme } from './shared/theme';
64
65
  import { useViewTransition } from './shared/viewTransition';
65
66
  import * as Table from './components/Table';
66
- export { Accordion, AccordionGroup, Alert, Avatar, AvatarGroup, Backdrop, Badge, BadgeGroup, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Color, type Command, Commands, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Indicator, Input, Kbd, KbdGroup, Marquee, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, PopoutHover, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces, type SpaceSize, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, useBreakpoint, useViewTransition, vuiBreakpoints, };
67
+ export { Accordion, AccordionGroup, Alert, Avatar, AvatarGroup, Backdrop, Badge, BadgeGroup, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Color, type Command, Commands, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Indicator, Input, Kbd, KbdGroup, Marquee, Modal, OTP, OTPItem, Overflow, paginate, Pagination, Password, Popout, PopoutHover, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, type Sizes, Skeleton, type Spaces, type SpaceSize, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, useBreakpoint, useViewTransition, vuiBreakpoints, };
@@ -2,7 +2,7 @@ import { ShallowRef, VNode } from 'vue';
2
2
  type VNodesProps<T extends object> = Array<VNode & {
3
3
  props: T;
4
4
  }>;
5
- type SlotFn = () => VNode[] | VNode | undefined;
5
+ type SlotFn = (props?: any) => VNode[] | VNode | undefined;
6
6
  /**
7
7
  * Flattens slot children and keeps them in sync reactively.
8
8
  *