@bwui/vue 0.1.2 → 0.1.4
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/date-picker.js +2 -2
- package/dist/primitives.js +2 -2
- package/package.json +3 -3
- package/src/date-picker.ts +2 -2
- package/src/primitives.ts +2 -2
package/dist/date-picker.js
CHANGED
|
@@ -45,14 +45,14 @@ function Calendar(opts) {
|
|
|
45
45
|
h('div', { class: 'bw-calendar__nav' }, [
|
|
46
46
|
h('button', {
|
|
47
47
|
type: 'button',
|
|
48
|
-
class: 'bw-btn bw-btn--ghost bw-btn--sm',
|
|
48
|
+
class: 'bw-btn bw-btn--ghost bw-btn--size-sm',
|
|
49
49
|
'aria-label': 'Previous month',
|
|
50
50
|
onClick: () => opts.onView(new Date(opts.view.getFullYear(), opts.view.getMonth() - 1, 1)),
|
|
51
51
|
}, 'Prev'),
|
|
52
52
|
h('p', { class: 'bw-calendar__title' }, `${MONTHS[opts.view.getMonth()]} ${opts.view.getFullYear()}`),
|
|
53
53
|
h('button', {
|
|
54
54
|
type: 'button',
|
|
55
|
-
class: 'bw-btn bw-btn--ghost bw-btn--sm',
|
|
55
|
+
class: 'bw-btn bw-btn--ghost bw-btn--size-sm',
|
|
56
56
|
'aria-label': 'Next month',
|
|
57
57
|
onClick: () => opts.onView(new Date(opts.view.getFullYear(), opts.view.getMonth() + 1, 1)),
|
|
58
58
|
}, 'Next'),
|
package/dist/primitives.js
CHANGED
|
@@ -11,7 +11,7 @@ export const Button = defineComponent({
|
|
|
11
11
|
return () => h('button', {
|
|
12
12
|
...attrs,
|
|
13
13
|
type: props.type,
|
|
14
|
-
class: cn('bw-btn', `bw-btn--${props.variant}`, props.size !== 'md' && `bw-btn
|
|
14
|
+
class: cn('bw-btn', `bw-btn--${props.variant}`, props.size !== 'md' && `bw-btn--size-${props.size}`, String(attrs.class || '')),
|
|
15
15
|
}, slots.default?.());
|
|
16
16
|
},
|
|
17
17
|
});
|
|
@@ -26,7 +26,7 @@ export const ButtonLink = defineComponent({
|
|
|
26
26
|
return () => h('a', {
|
|
27
27
|
...attrs,
|
|
28
28
|
href: props.href,
|
|
29
|
-
class: cn('bw-btn', `bw-btn--${props.variant}`, props.size !== 'md' && `bw-btn
|
|
29
|
+
class: cn('bw-btn', `bw-btn--${props.variant}`, props.size !== 'md' && `bw-btn--size-${props.size}`, String(attrs.class || '')),
|
|
30
30
|
}, slots.default?.());
|
|
31
31
|
},
|
|
32
32
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bwui/vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Vue 3 adapter for Brickwork: typed components bound to the Brickwork token substrate and bw-* class contract.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"vue": "^3.4.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@bwui/css": "0.1.
|
|
29
|
-
"@bwui/tokens": "0.1.
|
|
28
|
+
"@bwui/css": "0.1.4",
|
|
29
|
+
"@bwui/tokens": "0.1.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^5",
|
package/src/date-picker.ts
CHANGED
|
@@ -59,7 +59,7 @@ function Calendar(opts: {
|
|
|
59
59
|
'button',
|
|
60
60
|
{
|
|
61
61
|
type: 'button',
|
|
62
|
-
class: 'bw-btn bw-btn--ghost bw-btn--sm',
|
|
62
|
+
class: 'bw-btn bw-btn--ghost bw-btn--size-sm',
|
|
63
63
|
'aria-label': 'Previous month',
|
|
64
64
|
onClick: () =>
|
|
65
65
|
opts.onView(new Date(opts.view.getFullYear(), opts.view.getMonth() - 1, 1)),
|
|
@@ -71,7 +71,7 @@ function Calendar(opts: {
|
|
|
71
71
|
'button',
|
|
72
72
|
{
|
|
73
73
|
type: 'button',
|
|
74
|
-
class: 'bw-btn bw-btn--ghost bw-btn--sm',
|
|
74
|
+
class: 'bw-btn bw-btn--ghost bw-btn--size-sm',
|
|
75
75
|
'aria-label': 'Next month',
|
|
76
76
|
onClick: () =>
|
|
77
77
|
opts.onView(new Date(opts.view.getFullYear(), opts.view.getMonth() + 1, 1)),
|
package/src/primitives.ts
CHANGED
|
@@ -27,7 +27,7 @@ export const Button = defineComponent({
|
|
|
27
27
|
class: cn(
|
|
28
28
|
'bw-btn',
|
|
29
29
|
`bw-btn--${props.variant}`,
|
|
30
|
-
props.size !== 'md' && `bw-btn
|
|
30
|
+
props.size !== 'md' && `bw-btn--size-${props.size}`,
|
|
31
31
|
String(attrs.class || ''),
|
|
32
32
|
),
|
|
33
33
|
},
|
|
@@ -53,7 +53,7 @@ export const ButtonLink = defineComponent({
|
|
|
53
53
|
class: cn(
|
|
54
54
|
'bw-btn',
|
|
55
55
|
`bw-btn--${props.variant}`,
|
|
56
|
-
props.size !== 'md' && `bw-btn
|
|
56
|
+
props.size !== 'md' && `bw-btn--size-${props.size}`,
|
|
57
57
|
String(attrs.class || ''),
|
|
58
58
|
),
|
|
59
59
|
},
|