@saasmakers/ui 0.1.77 → 0.1.80
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/app/components/bases/BaseAlert.stories.ts +42 -0
- package/app/components/bases/BaseAvatar.stories.ts +18 -0
- package/app/components/bases/BaseBordered.stories.ts +22 -0
- package/app/components/bases/BaseButton.stories.ts +81 -0
- package/app/components/bases/BaseCharacter.stories.ts +31 -0
- package/app/components/bases/BaseChart.stories.ts +20 -0
- package/app/components/bases/BaseDivider.stories.ts +25 -0
- package/app/components/bases/BaseEmoji.stories.ts +28 -0
- package/app/components/bases/BaseHeading.stories.ts +49 -0
- package/app/components/bases/BaseIcon.stories.ts +56 -0
- package/app/components/bases/BaseMessage.stories.ts +20 -0
- package/app/components/bases/BaseMetric.stories.ts +39 -0
- package/app/components/bases/BaseOverlay.stories.ts +30 -0
- package/app/components/bases/BaseParagraph.stories.ts +36 -0
- package/app/components/bases/BasePower.stories.ts +59 -0
- package/app/components/bases/BaseQuote.stories.ts +63 -0
- package/app/components/bases/BaseSpinner.stories.ts +42 -0
- package/app/components/bases/BaseTag.stories.ts +44 -0
- package/app/components/bases/BaseTags.stories.ts +42 -0
- package/app/components/bases/BaseText.stories.ts +48 -0
- package/app/components/bases/BaseText.vue +21 -15
- package/app/components/bases/BaseToast.stories.ts +29 -0
- package/app/components/fields/FieldCheckbox.stories.ts +36 -0
- package/app/components/fields/FieldDays.stories.ts +10 -0
- package/app/components/fields/FieldEmojis.stories.ts +10 -0
- package/app/components/fields/FieldInput.stories.ts +80 -0
- package/app/components/fields/FieldLabel.stories.ts +30 -0
- package/app/components/fields/FieldMessage.stories.ts +22 -0
- package/app/components/fields/FieldSelect.stories.ts +73 -0
- package/app/components/fields/FieldTabs.stories.ts +44 -0
- package/app/components/fields/FieldTextarea.stories.ts +44 -0
- package/app/components/fields/FieldTime.stories.ts +39 -0
- package/app/components/layout/LayoutToasts.stories.ts +8 -0
- package/app/types/bases.d.ts +8 -10
- package/app/types/fields.d.ts +1 -3
- package/app/types/global.d.ts +3 -0
- package/nuxt.config.ts +1 -0
- package/package.json +4 -1
package/app/types/bases.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type BaseAlignment = 'center' | 'left' | 'right'
|
|
2
|
+
|
|
1
3
|
export type BaseBackground = 'gray' | 'white'
|
|
2
4
|
|
|
3
5
|
export type BaseColor
|
|
@@ -134,13 +136,11 @@ export interface BaseEmoji {
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
export interface BaseHeading {
|
|
137
|
-
alignment?:
|
|
139
|
+
alignment?: BaseAlignment
|
|
138
140
|
size?: BaseHeadingSize
|
|
139
141
|
tag?: BaseHeadingTag
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
export type BaseHeadingAlignment = 'center' | 'left' | 'right'
|
|
143
|
-
|
|
144
144
|
export type BaseHeadingSize
|
|
145
145
|
= | 'base'
|
|
146
146
|
| 'lg'
|
|
@@ -181,7 +181,7 @@ export interface BaseMessage {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
export interface BaseMetric {
|
|
184
|
-
alignment?:
|
|
184
|
+
alignment?: BaseAlignment
|
|
185
185
|
performance?: BaseMetricPerformance
|
|
186
186
|
performanceTooltip?: string
|
|
187
187
|
size?: BaseMetricSize
|
|
@@ -189,8 +189,6 @@ export interface BaseMetric {
|
|
|
189
189
|
value?: number | string
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
export type BaseMetricAlignment = 'center' | 'left' | 'right'
|
|
193
|
-
|
|
194
192
|
export type BaseMetricPerformance = 'down' | 'equal' | 'up'
|
|
195
193
|
|
|
196
194
|
export type BaseMetricSize = 'base' | 'sm'
|
|
@@ -215,12 +213,10 @@ export type BaseOverlayOpacity
|
|
|
215
213
|
export type BaseOverlayPosition = 'absolute' | 'fixed'
|
|
216
214
|
|
|
217
215
|
export interface BaseParagraph {
|
|
218
|
-
alignment?:
|
|
216
|
+
alignment?: BaseAlignment
|
|
219
217
|
size?: BaseParagraphSize
|
|
220
218
|
}
|
|
221
219
|
|
|
222
|
-
export type BaseParagraphAlignment = 'center' | 'left' | 'right'
|
|
223
|
-
|
|
224
220
|
export type BaseParagraphSize = 'base' | 'lg' | 'sm'
|
|
225
221
|
|
|
226
222
|
export interface BasePower {
|
|
@@ -337,7 +333,9 @@ export interface BaseTags {
|
|
|
337
333
|
}
|
|
338
334
|
|
|
339
335
|
export interface BaseText {
|
|
340
|
-
|
|
336
|
+
alignment?: BaseAlignment
|
|
337
|
+
background?: BaseBackground
|
|
338
|
+
block?: boolean
|
|
341
339
|
bold?: boolean
|
|
342
340
|
hasMargin?: boolean
|
|
343
341
|
maxCharacters?: number
|
package/app/types/fields.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface FieldEmojis {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export interface FieldInput {
|
|
38
|
-
alignment?:
|
|
38
|
+
alignment?: BaseAlignment
|
|
39
39
|
autocomplete?: boolean
|
|
40
40
|
autofocus?: boolean
|
|
41
41
|
background?: FieldBackground
|
|
@@ -60,8 +60,6 @@ export interface FieldInput {
|
|
|
60
60
|
validation?: VuelidateValidation
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export type FieldInputAlignment = 'center' | 'left' | 'right'
|
|
64
|
-
|
|
65
63
|
export type FieldInputBorder = 'bottom' | 'full' | 'none'
|
|
66
64
|
|
|
67
65
|
export type FieldInputType
|
package/app/types/global.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare global {
|
|
|
15
15
|
type LayerIconValue = LayerIconValueType
|
|
16
16
|
|
|
17
17
|
// Bases
|
|
18
|
+
type BaseAlignment = Bases.BaseAlignment
|
|
18
19
|
type BaseBackground = Bases.BaseBackground
|
|
19
20
|
type BaseColor = Bases.BaseColor
|
|
20
21
|
type BaseSize = Bases.BaseSize
|
|
@@ -97,7 +98,9 @@ declare global {
|
|
|
97
98
|
type ChartistLineChartData = import('chartist').LineChartData
|
|
98
99
|
type ChartistOptions = import('chartist').Options
|
|
99
100
|
type ChartistPieChartData = import('chartist').PieChartData
|
|
101
|
+
type Meta<T> = import('@nuxtjs/storybook').Meta<T>
|
|
100
102
|
type RouteLocationNamedI18n = import('vue-router').RouteLocationNamedI18n
|
|
103
|
+
type StoryObj<T> = import('@nuxtjs/storybook').StoryObj<T>
|
|
101
104
|
type VuelidateValidation = import('@vuelidate/core').BaseValidation
|
|
102
105
|
|
|
103
106
|
// Navigator
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.80",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Reusable Nuxt UI components for SaaS Makers projects",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@nuxtjs/plausible": "2.0.1",
|
|
34
34
|
"@nuxtjs/robots": "5.5.6",
|
|
35
35
|
"@nuxtjs/sitemap": "7.4.7",
|
|
36
|
+
"@nuxtjs/storybook": "9.0.1",
|
|
36
37
|
"@pinia/nuxt": "0.11.2",
|
|
37
38
|
"@unocss/nuxt": "66.5.4",
|
|
38
39
|
"@unocss/reset": "66.5.10",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"motion-v": "1.7.4",
|
|
48
49
|
"numbro": "2.5.0",
|
|
49
50
|
"snarkdown": "2.0.0",
|
|
51
|
+
"storybook": "9.0.5",
|
|
50
52
|
"unocss": "66.5.4",
|
|
51
53
|
"vue": "3.5.22",
|
|
52
54
|
"vue-router": "4.6.3"
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
"scripts": {
|
|
60
62
|
"dev": "nuxi dev",
|
|
61
63
|
"lint": "eslint .",
|
|
64
|
+
"storybook": "storybook dev",
|
|
62
65
|
"typecheck": "nuxi typecheck"
|
|
63
66
|
}
|
|
64
67
|
}
|