@raylang/vue 0.3.0 → 0.4.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 +2 -2
- package/create.js +1 -1
- package/index.d.ts +5 -2
- package/index.js +7 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@ directory): the components, their docs and the issues are there.
|
|
|
7
7
|
|
|
8
8
|
```
|
|
9
9
|
import "@raylang/elements/tokens.css";
|
|
10
|
-
import
|
|
11
|
-
app.use(
|
|
10
|
+
import RayElements from "@raylang/vue";
|
|
11
|
+
app.use(RayElements);
|
|
12
12
|
|
|
13
13
|
<RayInput v-model="name" label="Name" />
|
|
14
14
|
<RayButton @click="save">Save</RayButton>
|
package/create.js
CHANGED
|
@@ -57,7 +57,7 @@ export function createComponent(name, tagName, { properties = [], booleans = [],
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
/** A plugin registering every component globally: app.use(
|
|
60
|
+
/** A plugin registering every component globally: app.use(RayElements). */
|
|
61
61
|
export function createPlugin(components) {
|
|
62
62
|
return {
|
|
63
63
|
install(app) {
|
package/index.d.ts
CHANGED
|
@@ -2265,9 +2265,12 @@ export declare const components: {
|
|
|
2265
2265
|
RayStatusbarItem: typeof RayStatusbarItem;
|
|
2266
2266
|
RayThemeToggle: typeof RayThemeToggle;
|
|
2267
2267
|
};
|
|
2268
|
-
/** app.use(
|
|
2268
|
+
/** app.use(RayElements) registers every component globally. */
|
|
2269
|
+
export declare const RayElements: Plugin;
|
|
2270
|
+
export default RayElements;
|
|
2271
|
+
|
|
2272
|
+
/** @deprecated Since 0.4.0: use `RayElements`. Removed in 0.5.0. */
|
|
2269
2273
|
export declare const RayDs: Plugin;
|
|
2270
|
-
export default RayDs;
|
|
2271
2274
|
|
|
2272
2275
|
declare module "vue" {
|
|
2273
2276
|
export interface GlobalComponents {
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ray-elements tools from component.toml files. Do not edit.
|
|
2
2
|
// Each wrapper registers its own element: unused ones (and their elements) are left out of a
|
|
3
|
-
// bundle; app.use(
|
|
3
|
+
// bundle; app.use(RayElements) takes them all.
|
|
4
4
|
|
|
5
5
|
import { createPlugin } from "./create.js";
|
|
6
6
|
|
|
@@ -79,6 +79,9 @@ export { RayButton, RayButtonGroup, RayIconButton, RayToggle, RayToggleGroup, Ra
|
|
|
79
79
|
|
|
80
80
|
export const components = { RayButton, RayButtonGroup, RayIconButton, RayToggle, RayToggleGroup, RayCheckbox, RayCheckboxGroup, RayColorPicker, RayColorInput, RayCombobox, RayDatePicker, RayCalendar, RayFileUpload, RayInput, RayNumberInput, RayPasswordInput, RayPathInput, RayRadioGroup, RayRadio, RaySearch, RaySegmentedControl, RaySelect, RaySlider, RaySwitch, RayTextarea, RayBottomNav, RayBottomNavItem, RayBreadcrumbs, RayBreadcrumb, RayNavLink, RayPagination, RaySidebar, RaySidebarGroup, RayStepper, RayStep, RayTabs, RayTab, RayTabPanel, RayCommandPalette, RayDialog, RayDrawer, RayMenu, RayMenuItem, RayMenuLabel, RayMenuDivider, RayPopover, RayTooltip, RayAccordion, RayAccordionItem, RayAttachment, RayAttachments, RayAvatar, RayBadge, RayBlockquote, RayCarousel, RayCode, RayIcon, RayIndicator, RayKbd, RayStat, RayTable, RayTimeline, RayTimelineItem, RayAlert, RayEmptyState, RayNotification, RayToaster, RayProgress, RaySkeleton, RaySpinner, RayAppBar, RayAppShell, RayAspectRatio, RayCard, RayCenter, RayContainer, RayGrid, RayGroup, RayScrollArea, RaySeparator, RaySplit, RayStack, RayStatusbar, RayStatusbarItem, RayThemeToggle };
|
|
81
81
|
|
|
82
|
-
/** app.use(
|
|
83
|
-
export const
|
|
84
|
-
export default
|
|
82
|
+
/** app.use(RayElements) registers every component globally. */
|
|
83
|
+
export const RayElements = /*#__PURE__*/ createPlugin(components);
|
|
84
|
+
export default RayElements;
|
|
85
|
+
|
|
86
|
+
/** @deprecated Since 0.4.0: use `RayElements`. Removed in 0.5.0. */
|
|
87
|
+
export const RayDs = RayElements;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raylang/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Vue 3 wrappers (with v-model) of the ray-elements web components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": ["web-components", "design-system", "ui", "raylang", "vue"],
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@raylang/elements": "^0.
|
|
31
|
+
"@raylang/elements": "^0.4.0",
|
|
32
32
|
"vue": ">=3.3"
|
|
33
33
|
}
|
|
34
34
|
}
|