najwer23morsels 0.0.1
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/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/lib/Button.d.ts +3 -0
- package/lib/Button.js +1 -0
- package/lib/index.d.ts +2 -0
- package/package.json +82 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Morsels!
|
package/lib/Button.d.ts
ADDED
package/lib/Button.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";var e={classic:"Button-module_classic__WXpHW",close:"Button-module_close__huc4i",calendar:"Button-module_calendar__ae4lP",strawberry:"Button-module_strawberry__4z7d-"};!function(o,e){void 0===e&&(e={});var t=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}}('@layer najwer23snacksButton{.Button-module_calendar__ae4lP,.Button-module_classic__WXpHW,.Button-module_close__huc4i,.Button-module_strawberry__4z7d-{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--najwer23snacks-button-bg-color);border:unset;border-radius:8px;color:var(--najwer23snacks-button-font-color);cursor:pointer;font-family:var(--najwer23snacks-font-family);font-size:var(--najwer23snacks-button-font-size);font-weight:var(--najwer23snacks-button-font-weight);letter-spacing:normal;padding:10px 17px;transition:.1s;transition:background-color .3s,box-shadow .3s;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;@media (hover:hover) and (pointer:fine){&:hover{background-color:var(--najwer23snacks-button-bg-color-hover);box-shadow:var(--najwer23snacks-button-shadow)}}&:active{background-color:var(--najwer23snacks-button-bg-color-active);box-shadow:var(--najwer23snacks-button-shadow)}&:focus-visible{background-color:var(--najwer23snacks-button-bg-color-focus);box-shadow:var(--najwer23snacks-button-shadow);outline:none}&:disabled{background-color:var(--najwer23snacks-button-bg-color-disabled);box-shadow:none;cursor:not-allowed}}.Button-module_calendar__ae4lP{padding:7px 10px}.Button-module_strawberry__4z7d-{height:50px;padding:12px;&>*{display:flex;position:relative;&>*{background-color:#fff;border-radius:10px;height:4px;width:30px;&:after,&:before{background-color:#fff;border-radius:10px;content:"";position:absolute}&:after{bottom:-10px;left:0;right:0;top:10px}&:before{bottom:10px;left:0;right:0;top:-10px}}}}.Button-module_close__huc4i{height:50px;&>*{height:25px;position:relative;width:20px;&>*{&:after,&:before{background-color:#fff;border-radius:10px;content:"";height:4px;left:-9px;position:absolute;width:40px}&:before{top:10.5px;transform:rotate(45deg)}&:after{top:10.5px;transform:rotate(-45deg)}}}}}');const t=({children:t,kind:r="classic",...n})=>o("button",{type:"button",...n,className:e[r],children:"close"===r||"strawberry"===r?o("div",{children:o("div",{})}):t});t.displayName="Button";export{t as Button};
|
package/lib/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "najwer23morsels",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"module": "./lib/index.mjs",
|
|
6
|
+
"types": "./lib/index.d.ts",
|
|
7
|
+
"author": "Mariusz Najwer (https://najwer23.github.io/)",
|
|
8
|
+
"homepage": "https://najwer23.github.io/najwer23morsels",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"deploy": "yarn run build-storybook && gh-pages -d storybook-static && rimraf ./storybook-static ",
|
|
12
|
+
"start": "storybook dev -p 6006",
|
|
13
|
+
"build": "rimraf ./lib && rollup -c --silent",
|
|
14
|
+
"build-storybook": "storybook build",
|
|
15
|
+
"publish:patch": "yarn build && npm version patch --force && npm publish && rimraf ./lib && rimraf ./.yarn/cache",
|
|
16
|
+
"publish:minor": "yarn build && npm version minor --force && npm publish && rimraf ./lib && rimraf ./.yarn/cache",
|
|
17
|
+
"publish:major": "yarn build && npm version major --force && npm publish && rimraf ./lib && rimraf ./.yarn/cache",
|
|
18
|
+
"god": "yarn publish:patch",
|
|
19
|
+
"plop": "plop && yarn format",
|
|
20
|
+
"format": "prettier --write \"**/*.{json,mdx,ts,tsx,md,css,mjs}\"",
|
|
21
|
+
"release": "yarn build && yarn && changeset && changeset version && changeset publish && rimraf ./lib && rimraf ./.yarn/cache"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@changesets/cli": "^2.27.11",
|
|
25
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
26
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
27
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
28
|
+
"@storybook/addon-console": "^3.0.0",
|
|
29
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
30
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
31
|
+
"@storybook/addon-links": "^8.4.7",
|
|
32
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
33
|
+
"@storybook/blocks": "^8.4.7",
|
|
34
|
+
"@storybook/react": "^8.4.7",
|
|
35
|
+
"@storybook/react-vite": "^8.4.7",
|
|
36
|
+
"@storybook/test": "^8.4.7",
|
|
37
|
+
"@types/react": "^19.0.2",
|
|
38
|
+
"@types/react-dom": "^19.0.2",
|
|
39
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
40
|
+
"gh-pages": "^6.2.0",
|
|
41
|
+
"plop": "^4.0.1",
|
|
42
|
+
"postcss": "^8.4.49",
|
|
43
|
+
"prettier": "^3.4.2",
|
|
44
|
+
"react": "^19.0.0",
|
|
45
|
+
"react-dom": "^19.0.0",
|
|
46
|
+
"rimraf": "^6.0.1",
|
|
47
|
+
"rollup": "^4.29.1",
|
|
48
|
+
"rollup-plugin-dts": "6.1.1",
|
|
49
|
+
"rollup-plugin-output-size": "^1.5.0",
|
|
50
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
51
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
52
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
53
|
+
"storybook": "^8.4.7",
|
|
54
|
+
"storybook-css-modules-preset": "^1.1.1",
|
|
55
|
+
"typescript": "^5.7.2",
|
|
56
|
+
"vite": "^6.0.5"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"react": "^19.0.0",
|
|
60
|
+
"react-dom": "^19.0.0"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"react",
|
|
64
|
+
"react 19",
|
|
65
|
+
"storybook",
|
|
66
|
+
"storybook 8",
|
|
67
|
+
"design-system",
|
|
68
|
+
"gh-pages",
|
|
69
|
+
"typescript",
|
|
70
|
+
"rollup",
|
|
71
|
+
"tree shaking",
|
|
72
|
+
"vite",
|
|
73
|
+
"css modules",
|
|
74
|
+
"front-end"
|
|
75
|
+
],
|
|
76
|
+
"repository": {
|
|
77
|
+
"type": "git",
|
|
78
|
+
"url": "git+https://github.com/najwer23/najwer23morsels.git"
|
|
79
|
+
},
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"packageManager": "yarn@4.9.2"
|
|
82
|
+
}
|