pcm-shared-components 0.0.6 β†’ 0.0.9

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/README.md CHANGED
@@ -1,4 +1,3 @@
1
- # Tailwind 3 With Storybook Example
1
+ # Shared Components between client and admin portal
2
+
2
3
 
3
- This is a hacky but working example of tailwind 3 in storybook.
4
- [Please refer to this issue before copying anything in this repo](https://github.com/tailwindlabs/tailwindcss/issues/6314)
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export const Button = () => {
3
+ return /*#__PURE__*/React.createElement("button", {
4
+ type: "button",
5
+ className: "relative inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
6
+ }, "Button");
7
+ };
8
+ export default Button;
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import './styles/tailwind.css';
2
+ import Button from './components/Button';
3
+ export { Button };
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {
7
7
  "presets": [
8
8
  "@babel/preset-react"
9
+ ],
10
+ "ignore": [
11
+ "**/*.stories.js",
12
+ "**/*.stories.mdx"
9
13
  ]
10
14
  },
11
15
  "files": [
@@ -15,9 +19,11 @@
15
19
  "publishme": "npm publish",
16
20
  "storybook": "start-storybook -p 6006",
17
21
  "build-storybook": "build-storybook",
18
- "clean": "rm -Rf dist",
22
+ "clean": "rm -rf dist",
19
23
  "build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles/tailwind.css --minify",
20
- "build": "npm run clean && NODE_ENV=production npx babel src/ --out-dir -d dist --copy-files && npm run build-tailwind"
24
+ "build": "npm run clean && NODE_ENV=production babel src/ --out-dir dist && npm run build-tailwind && npm version patch ",
25
+ "build1": "NODE_ENV=production babel src/ --out-dir dist",
26
+ "build2": "npm run build-tailwind"
21
27
  },
22
28
  "peerDependencies": {
23
29
  "react": "^17.0.2",
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.Primary = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _index = _interopRequireDefault(require("./index"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var _default = {
15
- /* πŸ‘‡ The title prop is optional.
16
- * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
17
- * to learn how to generate automatic titles
18
- */
19
- title: 'Button',
20
- component: _index["default"]
21
- }; //πŸ‘‡ We create a β€œtemplate” of how args map to rendering
22
-
23
- exports["default"] = _default;
24
-
25
- var Template = function Template(args) {
26
- return /*#__PURE__*/_react["default"].createElement(_index["default"], args);
27
- }; // πŸ‘‡ Each story then reuses that template
28
-
29
-
30
- var Primary = Template.bind({});
31
- exports.Primary = Primary;
32
- Primary.args = {
33
- background: '#ff0',
34
- label: 'Button'
35
- };
@@ -1,14 +0,0 @@
1
- import React from "react";
2
-
3
- export const Button = () => {
4
- return (
5
- <button
6
- type="button"
7
- className="relative inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
8
- >
9
- Button
10
- </button>
11
- );
12
- };
13
-
14
- export default Button;
package/dist/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import './styles/tailwind.css'
2
-
3
- export * from './components/Button';