@firstnoodle-ui/bui 0.0.73 → 0.0.74
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/components/segmented-controls/SegmentButton.vue.d.ts +1 -0
- package/dist/components/segmented-controls/SegmentedControls.vue.d.ts +1 -0
- package/dist/components/segmented-controls/types.d.ts +1 -0
- package/dist/components/select-list/SelectList.vue.d.ts +3 -3
- package/dist/components/select-list/types.d.ts +1 -1
- package/dist/components/types.d.ts +1 -0
- package/dist/index.mjs +12 -6
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ import { Segment } from './types';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
active: boolean;
|
|
4
4
|
segment: Segment;
|
|
5
|
+
size: "small" | "medium" | "large";
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
8
|
click: () => any;
|
|
@@ -2,6 +2,7 @@ import { Segment } from './types';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
segments: Segment[];
|
|
4
4
|
selectedSegment: Segment;
|
|
5
|
+
size?: "small" | "medium" | "large";
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
8
|
select: (segment: Segment) => any;
|
|
@@ -266,7 +266,7 @@ declare const _default: <T extends SelectListOption>(__VLS_props: NonNullable<Aw
|
|
|
266
266
|
header?(_: {}): any;
|
|
267
267
|
options?(_: {
|
|
268
268
|
options: {
|
|
269
|
-
id
|
|
269
|
+
id: string | number;
|
|
270
270
|
icon?: import('../types.ts').TIcon | undefined;
|
|
271
271
|
label: string;
|
|
272
272
|
disabled?: boolean | undefined;
|
|
@@ -278,7 +278,7 @@ declare const _default: <T extends SelectListOption>(__VLS_props: NonNullable<Aw
|
|
|
278
278
|
id: string | number;
|
|
279
279
|
name?: string | undefined;
|
|
280
280
|
options: {
|
|
281
|
-
id
|
|
281
|
+
id: string | number;
|
|
282
282
|
icon?: import('../types.ts').TIcon | undefined;
|
|
283
283
|
label: string;
|
|
284
284
|
disabled?: boolean | undefined;
|
|
@@ -290,7 +290,7 @@ declare const _default: <T extends SelectListOption>(__VLS_props: NonNullable<Aw
|
|
|
290
290
|
}[];
|
|
291
291
|
hover: (option: T) => SelectListOption | null;
|
|
292
292
|
hoveredOption: {
|
|
293
|
-
id
|
|
293
|
+
id: string | number;
|
|
294
294
|
icon?: import('../types.ts').TIcon | undefined;
|
|
295
295
|
label: string;
|
|
296
296
|
disabled?: boolean | undefined;
|
|
@@ -4,7 +4,7 @@ export type SelectListState = typeof states[number];
|
|
|
4
4
|
export declare const selectOptionVariants: readonly ["checkbox", "deletable", "single"];
|
|
5
5
|
export type SelectOptionVariant = typeof selectOptionVariants[number];
|
|
6
6
|
export type SelectListOption = {
|
|
7
|
-
id
|
|
7
|
+
id: string | number;
|
|
8
8
|
icon?: TIcon;
|
|
9
9
|
label: string;
|
|
10
10
|
disabled?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -2760,7 +2760,7 @@ const j2 = () => {
|
|
|
2760
2760
|
const l = e, s = b(), r = b();
|
|
2761
2761
|
a1(() => {
|
|
2762
2762
|
var d, h;
|
|
2763
|
-
n.multiline ? (d = s.value) == null || d.focus() : (h = r.value) == null || h.focus();
|
|
2763
|
+
n.autoFocus && (n.multiline ? (d = s.value) == null || d.focus() : (h = r.value) == null || h.focus());
|
|
2764
2764
|
});
|
|
2765
2765
|
const a = () => {
|
|
2766
2766
|
n.multiline ? s.value.focus() : r.value.focus();
|
|
@@ -4301,15 +4301,19 @@ const H0 = ["onKeydown"], V0 = /* @__PURE__ */ $({
|
|
|
4301
4301
|
__name: "SegmentButton",
|
|
4302
4302
|
props: {
|
|
4303
4303
|
active: { type: Boolean },
|
|
4304
|
-
segment: {}
|
|
4304
|
+
segment: {},
|
|
4305
|
+
size: {}
|
|
4305
4306
|
},
|
|
4306
4307
|
emits: ["click"],
|
|
4307
4308
|
setup(n, { emit: t }) {
|
|
4308
4309
|
const e = t;
|
|
4309
4310
|
return (l, s) => (o(), i("button", {
|
|
4310
|
-
class: D(["cursor-pointer
|
|
4311
|
+
class: D(["cursor-pointer flex items-center gap-2 rounded", {
|
|
4311
4312
|
"text-tertiary dark:text-muted bg-secondary hover:bg-tertiary hover:text-tertiary": !l.active,
|
|
4312
|
-
"bg-primary dark:bg-tertiary shadow-xs text-primary": l.active
|
|
4313
|
+
"bg-primary dark:bg-tertiary shadow-xs text-primary": l.active,
|
|
4314
|
+
"h-6 px-2": l.size === "small",
|
|
4315
|
+
"h-8 px-3": l.size === "medium",
|
|
4316
|
+
"h-10 px-4": l.size === "large"
|
|
4313
4317
|
}]),
|
|
4314
4318
|
onClick: s[0] || (s[0] = (r) => e("click"))
|
|
4315
4319
|
}, [
|
|
@@ -4324,7 +4328,8 @@ const H0 = ["onKeydown"], V0 = /* @__PURE__ */ $({
|
|
|
4324
4328
|
__name: "SegmentedControls",
|
|
4325
4329
|
props: {
|
|
4326
4330
|
segments: {},
|
|
4327
|
-
selectedSegment: {}
|
|
4331
|
+
selectedSegment: {},
|
|
4332
|
+
size: { default: "small" }
|
|
4328
4333
|
},
|
|
4329
4334
|
emits: ["select"],
|
|
4330
4335
|
setup(n, { emit: t }) {
|
|
@@ -4335,8 +4340,9 @@ const H0 = ["onKeydown"], V0 = /* @__PURE__ */ $({
|
|
|
4335
4340
|
key: a.label,
|
|
4336
4341
|
segment: a,
|
|
4337
4342
|
active: l(a),
|
|
4343
|
+
size: s.size,
|
|
4338
4344
|
onClick: (f) => e("select", a)
|
|
4339
|
-
}, null, 8, ["segment", "active", "onClick"]))), 128))
|
|
4345
|
+
}, null, 8, ["segment", "active", "size", "onClick"]))), 128))
|
|
4340
4346
|
]),
|
|
4341
4347
|
_: 1
|
|
4342
4348
|
}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstnoodle-ui/bui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.74",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"test": "vitest",
|
|
94
94
|
"test:ui": "vitest --ui",
|
|
95
95
|
"test:run": "vitest run",
|
|
96
|
-
"release:publish": "pnpm publish --access public --otp=
|
|
96
|
+
"release:publish": "pnpm publish --access public --otp=192081 --no-git-checks"
|
|
97
97
|
}
|
|
98
98
|
}
|