@ulu/frontend-vue 0.1.0-beta.3 → 0.1.0-beta.5

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,105 @@
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
+
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.
4
6
 
5
7
  - [Documentation](https://jscherbe.github.io/frontend-vue/)
6
8
  - [Change Log](CHANGELOG.md)
7
9
 
10
+ ## Installation
11
+
12
+ Install the library and its required peer dependencies.
13
+
14
+ ```bash
15
+ npm install @ulu/frontend-vue
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Using the library involves three main steps: setting up the SCSS, registering the Vue plugins, and importing the components you need.
21
+
22
+ ### 1. SCSS Setup
23
+
24
+ Import the main stylesheet into your project's primary SCSS file. This will bring in all the necessary styles for the components.
25
+
26
+ ```scss
27
+ // Import Ulu Vue component styles
28
+ @use "@ulu/frontend-vue/scss" as ulu-vue;
29
+
30
+ // Configure
31
+ @include ulu-vue.plugin-toast-set((
32
+ "background-color" : gray
33
+ ));
34
+
35
+ // Output (plugins/component) stylesheets that you use
36
+ @include ulu-vue.plugin-toast-styles();
37
+ ```
38
+
39
+ ### 2. Plugin Registration
40
+
41
+ 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`).
42
+
43
+ #### Core Plugin (Required)
44
+
45
+ The `corePlugin` is **required** to set up the library's foundational settings, such as the icon system, which is used by many components.
46
+
47
+ ```javascript
48
+ // src/main.js
49
+ import { createApp } from 'vue';
50
+ import App from './App.vue';
51
+ import router from './router'; // Your vue-router instance
52
+
53
+ import { corePlugin } from '@ulu/frontend-vue';
54
+
55
+ const app = createApp(App);
56
+
57
+ app.use(router);
58
+
59
+ // Register the core plugin
60
+ app.use(corePlugin, {
61
+ // Optional: You can override default settings here.
62
+ // For example, to use FontAwesome's static CSS classes instead of the Vue component:
63
+ // fontAwesomeStatic: true,
64
+ });
65
+
66
+ app.mount('#app');
67
+ ```
68
+
69
+ #### Optional Plugins
70
+
71
+ Other plugins for features like responsive breakpoints, global modals, and toast notifications can be registered as needed.
72
+
73
+ ```javascript
74
+ // src/main.js
75
+ import { breakpointsPlugin, modalsPlugin, toastPlugin } from '@ulu/frontend-vue';
76
+
77
+ // ...
78
+ app.use(breakpointsPlugin);
79
+ app.use(modalsPlugin, { /* your global modal configurations */ });
80
+ app.use(toastPlugin, { /* default toast options */ });
81
+ // ...
82
+ ```
83
+
84
+ ### 3. Component Usage
85
+
86
+ 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.
87
+
88
+ **Example:**
89
+ ```vue
90
+ <script setup>
91
+ import { UluButton, UluAlert } from '@ulu/frontend-vue';
92
+ </script>
93
+
94
+ <template>
95
+ <UluAlert type="success" title="Success!">
96
+ This is an alert component.
97
+ </UluAlert>
98
+
99
+ <UluButton primary to="/">Click Me</UluButton>
100
+ </template>
101
+ ```
102
+
103
+
8
104
 
9
105
 
@@ -1,4 +1,4 @@
1
- import { l as o, r as h, a as p, g as v } from "./index-CMGxe_M1.js";
1
+ import { l as o, r as h, a as p, g as v } from "./index-BPVCOXRL.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-CMGxe_M1.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-BPVCOXRL.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
  };