@brickflow/ui 0.0.27 → 0.0.28

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.
Files changed (54) hide show
  1. package/dist/module.d.mts +4 -1
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +409 -11
  4. package/dist/runtime/components/Button/icons.demo.d.vue.ts +8 -0
  5. package/dist/runtime/components/Button/icons.demo.vue +25 -0
  6. package/dist/runtime/components/Button/icons.demo.vue.d.ts +8 -0
  7. package/dist/runtime/components/Button/index.d.vue.ts +45 -0
  8. package/dist/runtime/components/Button/index.vue +162 -0
  9. package/dist/runtime/components/Button/index.vue.d.ts +45 -0
  10. package/dist/runtime/components/Button/size.demo.d.vue.ts +7 -0
  11. package/dist/runtime/components/Button/size.demo.vue +78 -0
  12. package/dist/runtime/components/Button/size.demo.vue.d.ts +7 -0
  13. package/dist/runtime/components/Button/slots.demo.d.vue.ts +7 -0
  14. package/dist/runtime/components/Button/slots.demo.vue +23 -0
  15. package/dist/runtime/components/Button/slots.demo.vue.d.ts +7 -0
  16. package/dist/runtime/components/Button/state.demo.d.vue.ts +7 -0
  17. package/dist/runtime/components/Button/state.demo.vue +18 -0
  18. package/dist/runtime/components/Button/state.demo.vue.d.ts +7 -0
  19. package/dist/runtime/components/Button/variants.demo.d.vue.ts +7 -0
  20. package/dist/runtime/components/Button/variants.demo.vue +207 -0
  21. package/dist/runtime/components/Button/variants.demo.vue.d.ts +7 -0
  22. package/dist/runtime/components/Icon/basic.demo.d.vue.ts +8 -0
  23. package/dist/runtime/components/Icon/basic.demo.vue +44 -0
  24. package/dist/runtime/components/Icon/basic.demo.vue.d.ts +8 -0
  25. package/dist/runtime/components/Icon/index.d.vue.ts +7 -0
  26. package/dist/runtime/components/Icon/index.vue +18 -0
  27. package/dist/runtime/components/Icon/index.vue.d.ts +7 -0
  28. package/dist/runtime/components/Link/basic.demo.d.vue.ts +8 -0
  29. package/dist/runtime/components/Link/basic.demo.vue +27 -0
  30. package/dist/runtime/components/Link/basic.demo.vue.d.ts +8 -0
  31. package/dist/runtime/components/Link/index.d.vue.ts +51 -0
  32. package/dist/runtime/components/Link/index.vue +62 -0
  33. package/dist/runtime/components/Link/index.vue.d.ts +51 -0
  34. package/dist/runtime/composables/useScreen.d.ts +18 -0
  35. package/dist/runtime/composables/useScreen.js +68 -0
  36. package/dist/runtime/composables/useTheme.d.ts +17 -0
  37. package/dist/runtime/composables/useTheme.js +77 -0
  38. package/dist/runtime/composables/useTranslate.d.ts +20 -0
  39. package/dist/runtime/composables/useTranslate.js +17 -0
  40. package/dist/runtime/icon-font.d.ts +4 -0
  41. package/dist/runtime/pages/ui.d.vue.ts +4 -0
  42. package/dist/runtime/pages/ui.vue +717 -0
  43. package/dist/runtime/pages/ui.vue.d.ts +4 -0
  44. package/dist/runtime/tailwind.d.ts +4 -1
  45. package/dist/runtime/tailwind.js +2 -1
  46. package/dist/runtime/ui-catalog.d.ts +39 -0
  47. package/dist/runtime/ui-options.d.ts +3 -0
  48. package/dist/types.d.mts +2 -0
  49. package/package.json +10 -10
  50. package/dist/runtime/components/Button.d.vue.ts +0 -23
  51. package/dist/runtime/components/Button.vue +0 -29
  52. package/dist/runtime/components/Button.vue.d.ts +0 -23
  53. package/dist/runtime/composables/useBrickme.d.ts +0 -9
  54. package/dist/runtime/composables/useBrickme.js +0 -14
@@ -0,0 +1,162 @@
1
+ <script setup>
2
+ import { computed, shallowRef } from "vue";
3
+ import Icon from "../Icon/index.vue";
4
+ import BaseLink from "../Link/index.vue";
5
+ const props = defineProps({
6
+ block: { type: Boolean, required: false },
7
+ color: { type: String, required: false, default: "main" },
8
+ disabled: { type: Boolean, required: false },
9
+ icon: { type: String, required: false, default: void 0 },
10
+ loading: { type: Boolean, required: false },
11
+ rounded: { type: Boolean, required: false, default: false },
12
+ size: { type: String, required: false, default: "md" },
13
+ square: { type: Boolean, required: false },
14
+ to: { type: null, required: false, default: void 0 },
15
+ trailingIcon: { type: String, required: false, default: void 0 },
16
+ type: { type: String, required: false, default: "button" },
17
+ variant: { type: String, required: false, default: "solid" }
18
+ });
19
+ const sizeClasses = {
20
+ lg: UI_STYLE.size.lg,
21
+ md: UI_STYLE.size.md,
22
+ sm: UI_STYLE.size.sm,
23
+ xl: UI_STYLE.size.xl,
24
+ xs: UI_STYLE.size.xs
25
+ };
26
+ const sizeIconClasses = {
27
+ lg: UI_STYLE.size.lgIcon,
28
+ md: UI_STYLE.size.mdIcon,
29
+ sm: UI_STYLE.size.smIcon,
30
+ xl: UI_STYLE.size.xlIcon,
31
+ xs: UI_STYLE.size.xsIcon
32
+ };
33
+ const colorClasses = {
34
+ alt: {
35
+ ghost: UI_STYLE.color.alt.ghost,
36
+ glass: UI_STYLE.color.alt.glass,
37
+ soft: UI_STYLE.color.alt.soft,
38
+ solid: UI_STYLE.color.alt.solid,
39
+ subtle: UI_STYLE.color.alt.subtle
40
+ },
41
+ danger: {
42
+ ghost: UI_STYLE.color.danger.ghost,
43
+ glass: UI_STYLE.color.danger.glass,
44
+ soft: UI_STYLE.color.danger.soft,
45
+ solid: UI_STYLE.color.danger.solid,
46
+ subtle: UI_STYLE.color.danger.subtle
47
+ },
48
+ info: {
49
+ ghost: UI_STYLE.color.info.ghost,
50
+ glass: UI_STYLE.color.info.glass,
51
+ soft: UI_STYLE.color.info.soft,
52
+ solid: UI_STYLE.color.info.solid,
53
+ subtle: UI_STYLE.color.info.subtle
54
+ },
55
+ main: {
56
+ ghost: UI_STYLE.color.main.ghost,
57
+ glass: UI_STYLE.color.main.glass,
58
+ soft: UI_STYLE.color.main.soft,
59
+ solid: UI_STYLE.color.main.solid,
60
+ subtle: UI_STYLE.color.main.subtle
61
+ },
62
+ plain: {
63
+ ghost: UI_STYLE.color.plain.ghost,
64
+ glass: UI_STYLE.color.plain.glass,
65
+ soft: UI_STYLE.color.plain.soft,
66
+ solid: UI_STYLE.color.plain.solid,
67
+ subtle: UI_STYLE.color.plain.subtle
68
+ },
69
+ warn: {
70
+ ghost: UI_STYLE.color.warn.ghost,
71
+ glass: UI_STYLE.color.warn.glass,
72
+ soft: UI_STYLE.color.warn.soft,
73
+ solid: UI_STYLE.color.warn.solid,
74
+ subtle: UI_STYLE.color.warn.subtle
75
+ },
76
+ win: {
77
+ ghost: UI_STYLE.color.win.ghost,
78
+ glass: UI_STYLE.color.win.glass,
79
+ soft: UI_STYLE.color.win.soft,
80
+ solid: UI_STYLE.color.win.solid,
81
+ subtle: UI_STYLE.color.win.subtle
82
+ }
83
+ };
84
+ const component = computed(() => props.to === void 0 ? "button" : BaseLink);
85
+ const disabled = computed(() => props.disabled || props.loading);
86
+ const isButton = computed(() => props.to === void 0);
87
+ const classes = computed(() => [
88
+ UI_STYLE.base,
89
+ sizeClasses[props.size],
90
+ colorClasses[props.color][props.variant],
91
+ props.block && UI_STYLE.state.block,
92
+ props.square && UI_STYLE.state.square,
93
+ disabled.value && UI_STYLE.state.disabled
94
+ ]);
95
+ const isAnimating = shallowRef(false);
96
+ const animationTapClass = UI_STYLE.animationTap;
97
+ function handleTap() {
98
+ isAnimating.value = false;
99
+ requestAnimationFrame(() => {
100
+ isAnimating.value = true;
101
+ });
102
+ }
103
+ </script>
104
+
105
+ <template>
106
+ <component
107
+ :is="component"
108
+ v-bind="animationTapClass ? { onPointerupPassive: handleTap } : {}"
109
+ :to="props.to"
110
+ :type="isButton ? props.type : void 0"
111
+ :disabled="isButton ? disabled : void 0"
112
+ :aria-busy="props.loading || void 0"
113
+ :aria-disabled="disabled || void 0"
114
+ :tabindex="disabled && !isButton ? -1 : void 0"
115
+ :class="[classes, isAnimating && animationTapClass]"
116
+ data-testid="ui-button"
117
+ :style="{
118
+ borderRadius: props.rounded && '99999px'
119
+ }"
120
+ @contextmenu.prevent
121
+ >
122
+ <span
123
+ v-if="$slots.leading || props.icon || props.loading"
124
+ :class="UI_STYLE.slot.leading"
125
+ >
126
+ <slot name="leading">
127
+ <Icon
128
+ v-if="props.loading"
129
+ :name="UI_STYLE.state.loadingIconName"
130
+ :class="UI_STYLE.state.loading"
131
+ aria-hidden="true"
132
+ />
133
+ <Icon
134
+ v-else
135
+ :name="props.icon"
136
+ :class="sizeIconClasses[props.size]"
137
+ aria-hidden="true"
138
+ />
139
+ </slot>
140
+ </span>
141
+
142
+ <span
143
+ v-if="$slots.default"
144
+ :class="UI_STYLE.slot.label"
145
+ >
146
+ <slot />
147
+ </span>
148
+
149
+ <span
150
+ v-if="$slots.trailing || props.trailingIcon"
151
+ :class="UI_STYLE.slot.trailing"
152
+ >
153
+ <slot name="trailing">
154
+ <Icon
155
+ :name="props.trailingIcon"
156
+ :class="sizeIconClasses[props.size]"
157
+ aria-hidden="true"
158
+ />
159
+ </slot>
160
+ </span>
161
+ </component>
162
+ </template>
@@ -0,0 +1,45 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ type __VLS_Props = {
3
+ block?: boolean;
4
+ color?: ButtonColor;
5
+ disabled?: boolean;
6
+ icon?: string;
7
+ loading?: boolean;
8
+ rounded?: boolean;
9
+ size?: ButtonSize;
10
+ square?: boolean;
11
+ to?: RouteLocationRaw;
12
+ trailingIcon?: string;
13
+ type?: 'button' | 'reset' | 'submit';
14
+ variant?: ButtonVariant;
15
+ };
16
+ type ButtonColor = 'alt' | 'danger' | 'info' | 'main' | 'plain' | 'warn' | 'win';
17
+ type ButtonSize = 'lg' | 'md' | 'sm' | 'xl' | 'xs';
18
+ type ButtonVariant = 'ghost' | 'glass' | 'soft' | 'solid' | 'subtle';
19
+ declare var __VLS_10: {}, __VLS_22: {}, __VLS_24: {};
20
+ type __VLS_Slots = {} & {
21
+ leading?: (props: typeof __VLS_10) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_22) => any;
24
+ } & {
25
+ trailing?: (props: typeof __VLS_24) => any;
26
+ };
27
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
28
+ size: ButtonSize;
29
+ type: "button" | "reset" | "submit";
30
+ to: RouteLocationRaw;
31
+ color: ButtonColor;
32
+ icon: string;
33
+ rounded: boolean;
34
+ trailingIcon: string;
35
+ variant: ButtonVariant;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
45
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=size.demo.vue.d.ts.map
@@ -0,0 +1,78 @@
1
+ <script>
2
+ export const uiDemo = {
3
+ title: "Size & Rounded"
4
+ };
5
+ </script>
6
+
7
+ <script setup>
8
+ import { firstIconName } from "#brickflow-ui-icons";
9
+ import Button from "./index.vue";
10
+ </script>
11
+
12
+ <template>
13
+ <div class="flex flex-wrap items-center gap-3">
14
+ <div class="flex flex-wrap items-center gap-3">
15
+ <Button
16
+ :icon="firstIconName"
17
+ size="xs"
18
+ >
19
+ Button
20
+ </Button>
21
+ <Button
22
+ :icon="firstIconName"
23
+ size="sm"
24
+ >
25
+ Button
26
+ </Button>
27
+ <Button :icon="firstIconName">Button</Button>
28
+ <Button
29
+ :icon="firstIconName"
30
+ size="lg"
31
+ >
32
+ Button
33
+ </Button>
34
+ <Button
35
+ :icon="firstIconName"
36
+ size="xl"
37
+ >
38
+ Button
39
+ </Button>
40
+ </div>
41
+ <div class="flex flex-wrap items-center gap-3">
42
+ <Button
43
+ :icon="firstIconName"
44
+ size="xs"
45
+ rounded
46
+ >
47
+ Button
48
+ </Button>
49
+ <Button
50
+ :icon="firstIconName"
51
+ size="sm"
52
+ rounded
53
+ >
54
+ Button
55
+ </Button>
56
+ <Button
57
+ :icon="firstIconName"
58
+ rounded
59
+ >
60
+ Button
61
+ </Button>
62
+ <Button
63
+ :icon="firstIconName"
64
+ size="lg"
65
+ rounded
66
+ >
67
+ Button
68
+ </Button>
69
+ <Button
70
+ :icon="firstIconName"
71
+ size="xl"
72
+ rounded
73
+ >
74
+ Button
75
+ </Button>
76
+ </div>
77
+ </div>
78
+ </template>
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=size.demo.vue.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=slots.demo.vue.d.ts.map
@@ -0,0 +1,23 @@
1
+ <script>
2
+ export const uiDemo = {
3
+ title: "Slots"
4
+ };
5
+ </script>
6
+
7
+ <script setup>
8
+ import { ref } from "vue";
9
+ import Button from "./index.vue";
10
+ const clicks = ref(0);
11
+ </script>
12
+
13
+ <template>
14
+ <Button @click="clicks += 1">
15
+ <template #leading>
16
+ <span class="text-xs">leading</span>
17
+ </template>
18
+ Added {{ clicks }} times
19
+ <template #trailing>
20
+ <span class="text-xs">trailing</span>
21
+ </template>
22
+ </Button>
23
+ </template>
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=slots.demo.vue.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=state.demo.vue.d.ts.map
@@ -0,0 +1,18 @@
1
+ <script>
2
+ export const uiDemo = {
3
+ title: "State"
4
+ };
5
+ </script>
6
+
7
+ <script setup>
8
+ import Button from "./index.vue";
9
+ </script>
10
+
11
+ <template>
12
+ <div class="flex flex-wrap items-center gap-3">
13
+ <Button loading>Loading</Button>
14
+ <Button disabled>Disabled</Button>
15
+ <Button to="/">Link</Button>
16
+ <Button block>Block</Button>
17
+ </div>
18
+ </template>
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=state.demo.vue.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=variants.demo.vue.d.ts.map
@@ -0,0 +1,207 @@
1
+ <script>
2
+ export const uiDemo = {
3
+ title: "Color & Variants"
4
+ };
5
+ </script>
6
+
7
+ <script setup>
8
+ import Button from "./index.vue";
9
+ </script>
10
+
11
+ <template>
12
+ <div class="relative flex w-fit flex-col flex-wrap items-start gap-3 pl-13">
13
+ <div class="absolute top-0 left-0 z-0 size-full object-cover pt-7 pl-13">
14
+ <img
15
+ src="https://picsum.photos/1000/1000"
16
+ class="top-0 z-0 size-full rounded-xl object-cover opacity-50"
17
+ />
18
+ </div>
19
+ <div class="flex w-full flex-wrap items-center justify-around gap-3 text-xs text-plain-600">
20
+ <span>solid</span>
21
+ <span>ghost</span>
22
+ <span>glass</span>
23
+ <span>soft</span>
24
+ <span>subtle</span>
25
+ </div>
26
+ <div
27
+ class="absolute top-0 left-0 flex h-full flex-col items-center justify-around gap-3 pt-7 text-xs text-plain-600"
28
+ >
29
+ <span>main</span>
30
+ <span>plain</span>
31
+ <span>alt</span>
32
+ <span>danger</span>
33
+ <span>info</span>
34
+ <span>warn</span>
35
+ <span>win</span>
36
+ </div>
37
+ <div class="flex flex-wrap items-center gap-3 p-2">
38
+ <Button>Button</Button>
39
+ <Button variant="ghost">Button</Button>
40
+ <Button variant="glass">Button</Button>
41
+ <Button variant="soft">Button</Button>
42
+ <Button variant="subtle">Button</Button>
43
+ </div>
44
+ <div class="flex flex-wrap items-center gap-3 p-2">
45
+ <Button color="plain">Button</Button>
46
+ <Button
47
+ color="plain"
48
+ variant="ghost"
49
+ >
50
+ Button
51
+ </Button>
52
+ <Button
53
+ color="plain"
54
+ variant="glass"
55
+ >
56
+ Button
57
+ </Button>
58
+ <Button
59
+ color="plain"
60
+ variant="soft"
61
+ >
62
+ Button
63
+ </Button>
64
+ <Button
65
+ color="plain"
66
+ variant="subtle"
67
+ >
68
+ Button
69
+ </Button>
70
+ </div>
71
+ <div class="flex flex-wrap items-center gap-3 p-2">
72
+ <Button color="alt">Button</Button>
73
+ <Button
74
+ color="alt"
75
+ variant="ghost"
76
+ >
77
+ Button
78
+ </Button>
79
+ <Button
80
+ color="alt"
81
+ variant="glass"
82
+ >
83
+ Button
84
+ </Button>
85
+ <Button
86
+ color="alt"
87
+ variant="soft"
88
+ >
89
+ Button
90
+ </Button>
91
+ <Button
92
+ color="alt"
93
+ variant="subtle"
94
+ >
95
+ Button
96
+ </Button>
97
+ </div>
98
+ <div class="flex flex-wrap items-center gap-3 p-2">
99
+ <Button color="danger">Button</Button>
100
+ <Button
101
+ color="danger"
102
+ variant="ghost"
103
+ >
104
+ Button
105
+ </Button>
106
+ <Button
107
+ color="danger"
108
+ variant="glass"
109
+ >
110
+ Button
111
+ </Button>
112
+ <Button
113
+ color="danger"
114
+ variant="soft"
115
+ >
116
+ Button
117
+ </Button>
118
+ <Button
119
+ color="danger"
120
+ variant="subtle"
121
+ >
122
+ Button
123
+ </Button>
124
+ </div>
125
+ <div class="flex flex-wrap items-center gap-3 p-2">
126
+ <Button color="info">Button</Button>
127
+ <Button
128
+ color="info"
129
+ variant="ghost"
130
+ >
131
+ Button
132
+ </Button>
133
+ <Button
134
+ color="info"
135
+ variant="glass"
136
+ >
137
+ Button
138
+ </Button>
139
+ <Button
140
+ color="info"
141
+ variant="soft"
142
+ >
143
+ Button
144
+ </Button>
145
+ <Button
146
+ color="info"
147
+ variant="subtle"
148
+ >
149
+ Button
150
+ </Button>
151
+ </div>
152
+ <div class="flex flex-wrap items-center gap-3 p-2">
153
+ <Button color="warn">Button</Button>
154
+ <Button
155
+ color="warn"
156
+ variant="ghost"
157
+ >
158
+ Button
159
+ </Button>
160
+ <Button
161
+ color="warn"
162
+ variant="glass"
163
+ >
164
+ Button
165
+ </Button>
166
+ <Button
167
+ color="warn"
168
+ variant="soft"
169
+ >
170
+ Button
171
+ </Button>
172
+ <Button
173
+ color="warn"
174
+ variant="subtle"
175
+ >
176
+ Button
177
+ </Button>
178
+ </div>
179
+ <div class="flex flex-wrap items-center gap-3 p-2">
180
+ <Button color="win">Button</Button>
181
+ <Button
182
+ color="win"
183
+ variant="ghost"
184
+ >
185
+ Button
186
+ </Button>
187
+ <Button
188
+ color="win"
189
+ variant="glass"
190
+ >
191
+ Button
192
+ </Button>
193
+ <Button
194
+ color="win"
195
+ variant="soft"
196
+ >
197
+ Button
198
+ </Button>
199
+ <Button
200
+ color="win"
201
+ variant="subtle"
202
+ >
203
+ Button
204
+ </Button>
205
+ </div>
206
+ </div>
207
+ </template>
@@ -0,0 +1,7 @@
1
+ export declare const uiDemo: {
2
+ title: string;
3
+ };
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ //# sourceMappingURL=variants.demo.vue.d.ts.map
@@ -0,0 +1,8 @@
1
+ export declare const uiDemo: {
2
+ description: string;
3
+ title: string;
4
+ };
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ //# sourceMappingURL=basic.demo.vue.d.ts.map
@@ -0,0 +1,44 @@
1
+ <script>
2
+ export const uiDemo = {
3
+ description: "The name matches the SVG filename without its extension.",
4
+ title: "Basic usage"
5
+ };
6
+ </script>
7
+
8
+ <script setup>
9
+ import { ref } from "vue";
10
+ import { firstIconName } from "#brickflow-ui-icons";
11
+ import Icon from "./index.vue";
12
+ const iconName = ref(firstIconName);
13
+ </script>
14
+
15
+ <template>
16
+ <div class="flex flex-col flex-wrap items-start gap-4 text-plain-100">
17
+ <input
18
+ v-model="iconName"
19
+ aria-label="Icon name"
20
+ class="rounded-lg border border-plain-700 bg-plain-900 px-3 py-2 text-sm text-plain-100 outline-none focus:border-main-400"
21
+ placeholder="Icon name"
22
+ type="text"
23
+ />
24
+
25
+ <div class="flex items-center gap-4">
26
+ <Icon
27
+ :name="iconName"
28
+ class="text-2xl"
29
+ />
30
+ <Icon
31
+ :name="iconName"
32
+ class="w-4"
33
+ />
34
+ <Icon
35
+ :name="iconName"
36
+ class="text-2xl text-win-400"
37
+ />
38
+ <Icon
39
+ :name="iconName"
40
+ class="text-2xl text-red-400"
41
+ />
42
+ </div>
43
+ </div>
44
+ </template>
@@ -0,0 +1,8 @@
1
+ export declare const uiDemo: {
2
+ description: string;
3
+ title: string;
4
+ };
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ //# sourceMappingURL=basic.demo.vue.d.ts.map
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=index.vue.d.ts.map