pcm-shared-components 0.0.5 → 0.0.8

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)
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
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,9 @@
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
- "compile": "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 "
21
25
  },
22
26
  "peerDependencies": {
23
27
  "react": "^17.0.2",
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- import { Button } from './index';
4
-
5
- const Component: ComponentMeta<typeof Button> = {
6
- title: 'Example/Button',
7
- component: Button,
8
- argTypes: {
9
- backgroundColor: { control: 'color' },
10
- },
11
- };
12
-
13
- export default Component;
14
-
15
- const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;
16
-
17
- export const Primary = Template.bind({});
18
- Primary.args = {};
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export interface ButtonProps {}
3
-
4
- export const Button = (props: ButtonProps) => {
5
- return (
6
- <button
7
- type="button"
8
- 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"
9
- >
10
- Button
11
- </button>
12
- );
13
- };
package/dist/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import './styles/tailwind.css'
2
-
3
- export * from './components/Button';
@@ -1 +0,0 @@
1
- /*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #eee}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Muli,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#bdbdbd}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#bdbdbd}input::placeholder,textarea::placeholder{opacity:1;color:#bdbdbd}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2196f380;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.relative{position:relative!important}.inline-flex{display:inline-flex!important}.items-center{align-items:center!important}.rounded-md{border-radius:.6rem!important}.border{border-width:1px!important}.border-transparent{border-color:#0000!important}.bg-green-600{--tw-bg-opacity:1!important;background-color:rgb(67 160 71/var(--tw-bg-opacity))!important}.px-4{padding-left:.4rem!important;padding-right:.4rem!important}.py-2{padding-top:.2rem!important;padding-bottom:.2rem!important}.text-sm{font-size:1.4rem!important;line-height:2rem!important}.font-medium{font-weight:500!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.hover\:bg-green-700:hover{--tw-bg-opacity:1!important;background-color:rgb(56 142 60/var(--tw-bg-opacity))!important}.focus\:outline-none:focus{outline:2px solid #0000!important;outline-offset:2px!important}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.focus\:ring-green-500:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(76 175 80/var(--tw-ring-opacity))!important}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px!important}