@impulse-ui-native/storybook 2.0.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/dist/index.d.mts +11 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function createStoryDescription(notes: string): {
|
|
2
|
+
notes: string;
|
|
3
|
+
};
|
|
4
|
+
declare function createComponentDescription(notes: string): {
|
|
5
|
+
notes: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
declare const ComponentSizeOptions: ("small" | "medium" | "large")[];
|
|
9
|
+
declare const ComponentVariantOptions: ("filled" | "outlined" | "soft" | "ghost" | "plain")[];
|
|
10
|
+
|
|
11
|
+
export { ComponentSizeOptions, ComponentVariantOptions, createComponentDescription, createStoryDescription };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/utils/storybook.utils.ts
|
|
2
|
+
function createStoryDescription(notes) {
|
|
3
|
+
return {
|
|
4
|
+
notes
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function createComponentDescription(notes) {
|
|
8
|
+
return {
|
|
9
|
+
notes
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/constants/storybook.constants.ts
|
|
14
|
+
var ComponentSizeOptions = [
|
|
15
|
+
"small",
|
|
16
|
+
"medium",
|
|
17
|
+
"large"
|
|
18
|
+
];
|
|
19
|
+
var ComponentVariantOptions = [
|
|
20
|
+
"filled",
|
|
21
|
+
"outlined",
|
|
22
|
+
"soft",
|
|
23
|
+
"ghost",
|
|
24
|
+
"plain"
|
|
25
|
+
];
|
|
26
|
+
export {
|
|
27
|
+
ComponentSizeOptions,
|
|
28
|
+
ComponentVariantOptions,
|
|
29
|
+
createComponentDescription,
|
|
30
|
+
createStoryDescription
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/storybook.utils.ts","../src/constants/storybook.constants.ts"],"sourcesContent":["export function createStoryDescription(notes: string) {\r\n return {\r\n notes,\r\n };\r\n}\r\n\r\nexport function createComponentDescription(notes: string) {\r\n return {\r\n notes,\r\n };\r\n}\r\n","import { ComponentSize, ComponentVariant } from \"@impulse-ui-native/theme\";\r\n\r\nexport const ComponentSizeOptions = [\r\n \"small\",\r\n \"medium\",\r\n \"large\",\r\n] satisfies ComponentSize[];\r\n\r\nexport const ComponentVariantOptions = [\r\n \"filled\",\r\n \"outlined\",\r\n \"soft\",\r\n \"ghost\",\r\n \"plain\",\r\n] satisfies ComponentVariant[];\r\n"],"mappings":";AAAO,SAAS,uBAAuB,OAAe;AACpD,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAEO,SAAS,2BAA2B,OAAe;AACxD,SAAO;AAAA,IACL;AAAA,EACF;AACF;;;ACRO,IAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@impulse-ui-native/storybook",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"source": "src/index.ts",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.mts",
|
|
7
|
+
"react-native": "src/index.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.mts",
|
|
11
|
+
"react-native": "./src/index.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@impulse-ui-native/toolkit": "2.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/react": "~19.2.14",
|
|
25
|
+
"eslint": "^9.38.0",
|
|
26
|
+
"prettier": "^3.6.2",
|
|
27
|
+
"react": "19.2.0",
|
|
28
|
+
"react-native": "0.83.6",
|
|
29
|
+
"typescript": "~5.9.2",
|
|
30
|
+
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
31
|
+
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
32
|
+
"@impulse-ui-native/tsconfig": "1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=18",
|
|
36
|
+
"react-native": ">=0.73"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"prettier": "@impulse-ui-native/prettier-config",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup --config tsup.config.ts",
|
|
44
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
45
|
+
"lint": "pnpm exec eslint . --fix",
|
|
46
|
+
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,json,md}\" --ignore-path ../../.prettierignore"
|
|
47
|
+
}
|
|
48
|
+
}
|