@ulu/frontend-vue 0.1.0-beta.4 → 0.1.0-beta.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 CHANGED
@@ -1,9 +1,113 @@
1
1
  # @ulu/frontend-vue
2
2
 
3
- Vue component library for [Ulu frontend](https://jscherbe.github.io/frontend/).
3
+ Vue component library for the [Ulu frontend](https://jscherbe.github.io/frontend/) ecosystem.
4
4
 
5
- - [Documentation](https://jscherbe.github.io/frontend-vue/)
5
+ This library provides a set of reusable, themeable, and accessible Vue 3 components. It is designed to be modular, allowing you to import only the components and features you need, ensuring your application remains lightweight and performant.
6
+
7
+ - [Documentation / Demos](https://jscherbe.github.io/frontend-vue/)
6
8
  - [Change Log](CHANGELOG.md)
9
+ - [Installation](#installation)
10
+ - [General Usage](#usage)
11
+ - [1. SCSS Setup](#1-scss-setup)
12
+ - [2. Plugin Registration](#2-plugin-registration)
13
+ - [Core Plugin (Required)](#core-plugin-required)
14
+ - [Optional Plugins](#optional-plugins)
15
+ - [3. Component Usage](#3-component-usage)
16
+
17
+
18
+ ## Installation
19
+
20
+ Install the library and its required peer dependencies.
21
+
22
+ ```bash
23
+ npm install @ulu/frontend-vue
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ Using the library involves three main steps: setting up the SCSS, registering the Vue plugins, and importing the components you need.
29
+
30
+ ### 1. SCSS Setup
31
+
32
+ Import the main stylesheet into your project's primary SCSS file. This will bring in all the necessary styles for the components.
33
+
34
+ ```scss
35
+ // Import Ulu Vue component styles
36
+ @use "@ulu/frontend-vue/scss" as ulu-vue;
37
+
38
+ // Configure
39
+ @include ulu-vue.plugin-toast-set((
40
+ "background-color" : gray
41
+ ));
42
+
43
+ // Output (plugins/component) stylesheets that you use
44
+ @include ulu-vue.plugin-toast-styles();
45
+ ```
46
+
47
+ ### 2. Plugin Registration
48
+
49
+ This library uses a plugin-based system to configure core features and functionality. You'll need to register them in your main application entry point (e.g., `src/main.js`).
50
+
51
+ #### Core Plugin (Required)
52
+
53
+ The `corePlugin` is **required** to set up the library's foundational settings, such as the icon system, which is used by many components.
54
+
55
+ ```javascript
56
+ // src/main.js
57
+ import { createApp } from 'vue';
58
+ import App from './App.vue';
59
+ import router from './router'; // Your vue-router instance
60
+
61
+ import { corePlugin } from '@ulu/frontend-vue';
62
+
63
+ const app = createApp(App);
64
+
65
+ app.use(router);
66
+
67
+ // Register the core plugin
68
+ app.use(corePlugin, {
69
+ // Optional: You can override default settings here.
70
+ // For example, to use FontAwesome's static CSS classes instead of the Vue component:
71
+ // fontAwesomeStatic: true,
72
+ });
73
+
74
+ app.mount('#app');
75
+ ```
76
+
77
+ #### Optional Plugins
78
+
79
+ Other plugins for features like responsive breakpoints, global modals, and toast notifications can be registered as needed.
80
+
81
+ ```javascript
82
+ // src/main.js
83
+ import { breakpointsPlugin, modalsPlugin, toastPlugin } from '@ulu/frontend-vue';
84
+
85
+ // ...
86
+ app.use(breakpointsPlugin);
87
+ app.use(modalsPlugin, { /* your global modal configurations */ });
88
+ app.use(toastPlugin, { /* default toast options */ });
89
+ // ...
90
+ ```
91
+
92
+ ### 3. Component Usage
93
+
94
+ Components are designed to be imported individually. This approach is highly recommended as it allows build tools like Vite or Webpack to **tree-shake** unused components, keeping your final application bundle as small as possible.
95
+
96
+ **Example:**
97
+ ```vue
98
+ <script setup>
99
+ import { UluButton, UluAlert } from '@ulu/frontend-vue';
100
+ </script>
101
+
102
+ <template>
103
+ <UluAlert type="success" title="Success!">
104
+ This is an alert component.
105
+ </UluAlert>
106
+
107
+ <UluButton primary to="/">Click Me</UluButton>
108
+ </template>
109
+ ```
110
+
7
111
 
8
112
 
9
113
 
@@ -1,4 +1,4 @@
1
- import { l as o, r as h, a as p, g as v } from "./index-CGVy3UWS.js";
1
+ import { l as o, r as h, a as p, g as v } from "./index-CtdKSn3_.js";
2
2
  const k = {
3
3
  iconClassClose: "css-icon css-icon--close",
4
4
  iconClassDragX: "css-icon css-icon--drag-x",
@@ -1,82 +1,76 @@
1
- import { _ as l, L as e, p as u, $ as o, q as U, s as t, O as n, t as i, u as r, v as S, D as c, U as d, T as g, M as p, w as k, e as m, V as T, W as b, x as h, a2 as F, a4 as P, a3 as A, E as w, F as y, G as M, H as v, I as x, J as B, y as D, ad as L, z as f, A as C, P as I, Q as R, f as N, R as E, h as z, X as G, Y as j, a0 as q, a1 as O, Z as V, a5 as W, a6 as H, a7 as J, a8 as K, K as Q, a9 as X, aa as Y, ab as Z, ac as _, S as $, ae as aa, af as sa, B as la, j as ea, k as ua, m as oa, n as Ua, o as ta, ag as na, ah as ia, ai as ra, C as Sa, N as ca, d as da, an as ga, as as pa, aq as ka, ap as ma, b as Ta, i as ba, c as ha, ar as Fa, ao as Pa, am as Aa, aj as wa, ak as ya, al as Ma } from "./index-CGVy3UWS.js";
1
+ import { _ as s, L as u, q as e, $ as U, s as o, t as i, O as n, u as t, v as r, w as c, E as S, U as d, T as k, M as p, x as m, f as b, V as g, W as T, y as h, a2 as P, a4 as A, a3 as F, F as w, G as M, H as v, I as x, J as y, z as L, ad as B, A as C, B as f, P as D, Q as I, h as R, R as N, j as E, X as G, Y as j, a0 as z, a1 as O, Z as V, a5 as W, a6 as q, a7 as H, a8 as J, K, a9 as Q, aa as X, ab as Y, ac as Z, S as _, ae as $, af as aa, C as la, k as sa, m as ua, n as ea, o as Ua, p as oa, ag as ia, ah as na, ai as ta, D as ra, N as ca, e as Sa, i as da, c as ka, b as pa, d as ma, am as ba, aj as ga, ak as Ta, al as ha } from "./index-CtdKSn3_.js";
2
2
  export {
3
- l as UluAccordion,
4
- e as UluAdaptiveLayout,
5
- u as UluAlert,
6
- o as UluAnimateNumber,
7
- U as UluBadge,
8
- t as UluBadgeStack,
3
+ s as UluAccordion,
4
+ u as UluAdaptiveLayout,
5
+ e as UluAlert,
6
+ U as UluAnimateNumber,
7
+ o as UluBadge,
8
+ i as UluBadgeStack,
9
9
  n as UluBreadcrumb,
10
- i as UluButton,
10
+ t as UluButton,
11
11
  r as UluCallout,
12
- S as UluCard,
13
- c as UluCheckboxMenu,
12
+ c as UluCard,
13
+ S as UluCheckboxMenu,
14
14
  d as UluCollapsibleRegion,
15
- g as UluCondText,
15
+ k as UluCondText,
16
16
  p as UluDataGrid,
17
- k as UluDefinitionList,
18
- m as UluDropdown,
19
- T as UluEmpty,
20
- b as UluEmptyView,
17
+ m as UluDefinitionList,
18
+ b as UluDropdown,
19
+ g as UluEmpty,
20
+ T as UluEmptyView,
21
21
  h as UluExternalLink,
22
- F as UluFacets,
23
- P as UluFacetsList,
24
- A as UluFacetsSearch,
22
+ P as UluFacets,
23
+ A as UluFacetsList,
24
+ F as UluFacetsSearch,
25
25
  w as UluFileDisplay,
26
- y as UluFormDropzone,
27
26
  M as UluFormFile,
28
27
  v as UluFormMessage,
29
28
  x as UluFormSelect,
30
- B as UluFormText,
31
- D as UluIcon,
32
- L as UluImageSlideShow,
33
- f as UluList,
34
- C as UluMain,
35
- I as UluMenu,
36
- R as UluMenuStack,
37
- N as UluModal,
38
- E as UluNavStrip,
39
- z as UluOverflowPopover,
29
+ y as UluFormText,
30
+ L as UluIcon,
31
+ B as UluImageSlideShow,
32
+ C as UluList,
33
+ f as UluMain,
34
+ D as UluMenu,
35
+ I as UluMenuStack,
36
+ R as UluModal,
37
+ N as UluNavStrip,
38
+ E as UluOverflowPopover,
40
39
  G as UluPlaceholderImage,
41
40
  j as UluPlaceholderText,
42
- q as UluProgressBar,
41
+ z as UluProgressBar,
43
42
  O as UluProgressDonut,
44
43
  V as UluRouteAnnouncer,
45
44
  W as UluScrollAnchors,
46
- H as UluScrollAnchorsNav,
47
- J as UluScrollAnchorsNavAnimated,
48
- K as UluScrollAnchorsSection,
49
- Q as UluSearchForm,
50
- X as UluShowSkeleton,
51
- Y as UluSkeletonContent,
52
- Z as UluSkeletonMedia,
53
- _ as UluSkeletonTextInline,
54
- $ as UluSkipLink,
55
- aa as UluSlideShow,
56
- sa as UluSlideShowSlide,
45
+ q as UluScrollAnchorsNav,
46
+ H as UluScrollAnchorsNavAnimated,
47
+ J as UluScrollAnchorsSection,
48
+ K as UluSearchForm,
49
+ Q as UluShowSkeleton,
50
+ X as UluSkeletonContent,
51
+ Y as UluSkeletonMedia,
52
+ Z as UluSkeletonTextInline,
53
+ _ as UluSkipLink,
54
+ $ as UluSlideShow,
55
+ aa as UluSlideShowSlide,
57
56
  la as UluSpokeSpinner,
58
- ea as UluTab,
57
+ sa as UluTab,
59
58
  ua as UluTabGroup,
60
- oa as UluTabList,
59
+ ea as UluTabList,
61
60
  Ua as UluTabPanel,
62
- ta as UluTabPanels,
63
- na as UluTableSticky,
64
- ia as UluTableStickyRows,
65
- ra as UluTableStickyTable,
66
- Sa as UluTag,
61
+ oa as UluTabPanels,
62
+ ia as UluTableSticky,
63
+ na as UluTableStickyRows,
64
+ ta as UluTableStickyTable,
65
+ ra as UluTag,
67
66
  ca as UluTitleRail,
68
- da as breakpointsPlugin,
69
- ga as getDefaultSettings,
70
- pa as getIconByType,
71
- ka as getSetting,
72
- ma as getSettings,
73
- Ta as modalsPlugin,
74
- ba as popoversPlugin,
75
- ha as toastPlugin,
76
- Fa as updateSetting,
77
- Pa as updateSettings,
78
- Aa as useBreakpointManager,
79
- wa as useIcon,
80
- ya as useModifiers,
81
- Ma as useWindowResize
67
+ Sa as breakpointsPlugin,
68
+ da as corePlugin,
69
+ ka as modalsPlugin,
70
+ pa as popoversPlugin,
71
+ ma as toastPlugin,
72
+ ba as useBreakpointManager,
73
+ ga as useIcon,
74
+ Ta as useModifiers,
75
+ ha as useWindowResize
82
76
  };