trepur_components 0.1.0 → 0.1.4

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.
Files changed (103) hide show
  1. package/babel.config.json +13 -13
  2. package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  3. package/dist/Components/Breadcrumbs/README.md +0 -1
  4. package/dist/Components/Breadcrumbs/{Breadcrumbs.js → index.js} +0 -0
  5. package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +87 -0
  6. package/dist/Components/BreadcrumbsBordered/README.md +0 -1
  7. package/dist/Components/BreadcrumbsBordered/index.css +67 -0
  8. package/dist/Components/BreadcrumbsBordered/{Breadcrumbs.js → index.js} +0 -0
  9. package/dist/Components/Button/Button.stories.js +11 -11
  10. package/dist/Components/Button/README.md +0 -1
  11. package/dist/Components/Button/{Button.js → index.js} +3 -3
  12. package/dist/Components/ButtonSlide/ButtonSlide.stories.js +11 -11
  13. package/dist/Components/ButtonSlide/README.md +0 -1
  14. package/dist/Components/ButtonSlide/{ButtonSlide.js → index.js} +3 -3
  15. package/dist/Components/Card/Card.stories.js +12 -12
  16. package/dist/Components/Card/README.md +0 -1
  17. package/dist/Components/Card/{Card.js → index.js} +4 -4
  18. package/dist/Components/CardImageLink/CardImageLink.stories.js +6 -6
  19. package/dist/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  20. package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +2 -2
  21. package/dist/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +2 -2
  22. package/dist/Components/CardList/CardList.stories.js +6 -157
  23. package/dist/Components/CardList/README.md +0 -1
  24. package/dist/Components/CardList/{CardList.js → index.js} +2 -2
  25. package/dist/Components/Icon/Icon.stories.js +6 -6
  26. package/dist/Components/Icon/README.md +0 -1
  27. package/dist/Components/Icon/{Icon.js → index.js} +0 -0
  28. package/dist/Components/Jumbotron/Jumbotron.stories.js +6 -6
  29. package/dist/Components/Jumbotron/{Jumbotron.js → index.js} +3 -3
  30. package/dist/Components/Nav/Nav.stories.js +108 -0
  31. package/dist/Components/Nav/README.md +0 -0
  32. package/dist/Components/{Nav.js → Nav/index.js} +5 -5
  33. package/dist/Components/Profile/Profile.stories.js +46 -0
  34. package/dist/Components/Profile/README.md +0 -0
  35. package/dist/Components/{Profile.js → Profile/index.js} +0 -0
  36. package/dist/Components/Search/README.md +0 -0
  37. package/dist/Components/Search/Search.stories.js +72 -0
  38. package/dist/Components/{Search.js → Search/index.js} +4 -4
  39. package/dist/Components/SignedInLinks/README.md +0 -0
  40. package/dist/Components/SignedInLinks/SignedInLinks.stories.js +48 -0
  41. package/dist/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  42. package/dist/Components/SignedOutLinks/README.md +0 -0
  43. package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +48 -0
  44. package/dist/Components/{SignedOutLinks.js → SignedOutLinks/index.js} +9 -4
  45. package/dist/index.css +1 -64
  46. package/package.json +1 -2
  47. package/src/Components/Breadcrumbs/Breadcrumbs.stories.js +1 -1
  48. package/src/Components/Breadcrumbs/README.md +0 -1
  49. package/src/Components/Breadcrumbs/{Breadcrumbs.js → index.js} +0 -0
  50. package/src/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +67 -0
  51. package/src/Components/BreadcrumbsBordered/README.md +0 -1
  52. package/src/Components/BreadcrumbsBordered/index.css +67 -0
  53. package/src/Components/BreadcrumbsBordered/{Breadcrumbs.js → index.js} +0 -0
  54. package/src/Components/Button/{Button.stories.js → Button.stories.jsx} +1 -1
  55. package/src/Components/Button/README.md +0 -1
  56. package/src/Components/Button/{Button.js → index.jsx} +1 -1
  57. package/src/Components/ButtonSlide/ButtonSlide.stories.js +1 -1
  58. package/src/Components/ButtonSlide/README.md +0 -1
  59. package/src/Components/ButtonSlide/{ButtonSlide.js → index.js} +1 -1
  60. package/src/Components/Card/Card.stories.js +1 -1
  61. package/src/Components/Card/README.md +0 -1
  62. package/src/Components/Card/{Card.js → index.js} +2 -2
  63. package/src/Components/CardImageLink/CardImageLink.stories.js +1 -1
  64. package/src/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  65. package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +1 -1
  66. package/src/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +1 -1
  67. package/src/Components/CardList/CardList.stories.js +3 -165
  68. package/src/Components/CardList/README.md +0 -1
  69. package/src/Components/CardList/{CardList.js → index.js} +1 -1
  70. package/src/Components/Icon/Icon.stories.js +1 -1
  71. package/src/Components/Icon/README.md +0 -1
  72. package/src/Components/Icon/{Icon.js → index.js} +0 -0
  73. package/src/Components/Jumbotron/Jumbotron.stories.js +1 -1
  74. package/src/Components/Jumbotron/{Jumbotron.js → index.js} +1 -1
  75. package/src/Components/Nav/Nav.stories.js +89 -0
  76. package/src/Components/Nav/README.md +0 -0
  77. package/src/Components/{Nav.js → Nav/index.js} +2 -2
  78. package/src/Components/Profile/Profile.stories.js +39 -0
  79. package/src/Components/Profile/README.md +0 -0
  80. package/src/Components/{Profile.js → Profile/index.js} +0 -0
  81. package/src/Components/Search/README.md +0 -0
  82. package/src/Components/Search/Search.stories.js +58 -0
  83. package/src/Components/{Search.js → Search/index.js} +4 -4
  84. package/src/Components/SignedInLinks/README.md +0 -0
  85. package/src/Components/SignedInLinks/SignedInLinks.stories.js +39 -0
  86. package/src/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  87. package/src/Components/SignedOutLinks/README.md +0 -0
  88. package/src/Components/SignedOutLinks/SignedOutLinks.stories.js +39 -0
  89. package/src/Components/SignedOutLinks/index.js +13 -0
  90. package/src/index.css +1 -64
  91. package/dist/App.css +0 -42
  92. package/dist/App.js +0 -24
  93. package/dist/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +0 -164
  94. package/public/Breadcrumbs/Breadcrumbs.stories.js +0 -144
  95. package/public/Logo.png +0 -0
  96. package/public/index.html +0 -10
  97. package/public/manifest.json +0 -25
  98. package/public/robots.txt +0 -3
  99. package/public/user.jpeg +0 -0
  100. package/src/App.css +0 -42
  101. package/src/App.js +0 -23
  102. package/src/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +0 -159
  103. package/src/Components/SignedOutLinks.js +0 -11
@@ -1,144 +0,0 @@
1
- import React from 'react'
2
- import { action } from '@storybook/addon-actions'
3
- import Readme from './README.md'
4
- import Button from '../../../public/Button/Button'
5
- import '../../index.css';
6
-
7
- export default {
8
- title: 'Components/Button',
9
- argTypes: {
10
- label: {
11
- name: 'Text',
12
- control: { type: 'text' },
13
- defaultValue: 'Shop Now',
14
- },
15
- type: {
16
- name: 'Type',
17
- defaultValue: 'primary',
18
- options: ['primary', 'secondary', 'ghost'],
19
- control: { type: 'select' },
20
- },
21
- iconPlacement: {
22
- name: 'Icon',
23
- defaultValue: 'none',
24
- options: ['left', 'right', 'both', 'none'],
25
- control: { type: 'select' },
26
- },
27
- padded: {
28
- name: 'Padded',
29
- control: { type: 'boolean' },
30
- defaultValue: false,
31
- },
32
- social: {
33
- name: 'Social',
34
- defaultValue: 'None',
35
- options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
36
- control: { type: 'select' },
37
- },
38
- },
39
- decorators: [(story) => <div className={`p-4`}>{story()}</div>],
40
-
41
- parameters: {
42
- readme: {
43
- sidebar: Readme,
44
- },
45
- },
46
- }
47
-
48
- export const _Button = (args) => {
49
- return (
50
- <Button ctaText='I am a button'>
51
- </Button>
52
- )
53
- }
54
-
55
- export const SecondaryButton = () => {
56
- return (
57
- <Button ctaText='I am a button'>
58
- </Button>
59
- )
60
- }
61
-
62
- export const WithIconRight = () => {
63
- return (
64
- <Button rightIcon='thumbs-up' ctaText='I am a button'>
65
- </Button>
66
- )
67
- }
68
-
69
- WithIconRight.story = {
70
- name: 'With Icon (right)',
71
- }
72
-
73
- export const WithIconLeft = () => {
74
- return (
75
- <Button leftIcon='sign-in' ctaText='I am a button'>
76
- </Button>
77
- )
78
- }
79
-
80
- WithIconLeft.story = {
81
- name: 'With Icon (left)',
82
- }
83
-
84
- export const WithBothIcons = () => {
85
- return (
86
- <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
87
- </Button>
88
- )
89
- }
90
-
91
- export const ButtonAsExternalLink = () => {
92
- return (
93
- <Button as='a-external' ctaText='I am a button'>
94
- </Button>
95
- )
96
- }
97
-
98
- ButtonAsExternalLink.story = {
99
- name: 'Button as external link',
100
- }
101
-
102
- export const ButtonAsSemanticHtmlButton = () => {
103
- return (
104
- <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
105
- </Button>
106
- )
107
- }
108
-
109
- ButtonAsSemanticHtmlButton.story = {
110
- name: 'Button as semantic html button',
111
- }
112
-
113
- export const ButtonAsSemanticHtmlSubmitButton = () => {
114
- return (
115
- <Button as='button' htmlType='submit' ctaText='I am a button'>
116
- </Button>
117
- )
118
- }
119
-
120
- ButtonAsSemanticHtmlSubmitButton.story = {
121
- name: 'Button as semantic html submit button',
122
- }
123
-
124
- export const ButtonAsInternalLink = () => {
125
- return (
126
- <Button as='Link' ctaText='I am a button' url='/'>
127
- </Button>
128
- )
129
- }
130
-
131
- ButtonAsInternalLink.story = {
132
- name: 'Button as internal link',
133
- }
134
-
135
- export const WithOnClickMethod = () => {
136
- return (
137
- <Button ctaText='I am a button' onClick={action('button-click')}>
138
- </Button>
139
- )
140
- }
141
-
142
- WithOnClickMethod.story = {
143
- name: 'With onClick method',
144
- }
package/public/Logo.png DELETED
Binary file
package/public/index.html DELETED
@@ -1,10 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/public/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/public/user.jpeg DELETED
Binary file
package/src/App.css DELETED
@@ -1,42 +0,0 @@
1
- .App {
2
- text-align: center;
3
- }
4
-
5
- .App-logo {
6
- height: 40vmin;
7
- pointer-events: none;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .App-logo {
12
- animation: App-logo-spin infinite 20s linear;
13
- }
14
- }
15
-
16
- .App-header {
17
- background-color: #282c34;
18
- min-height: 100vh;
19
- display: flex;
20
- flex-direction: column;
21
- align-items: center;
22
- justify-content: center;
23
- font-size: calc(10px + 2vmin);
24
- color: white;
25
- }
26
-
27
- .App-link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes App-logo-spin {
32
- from {
33
- transform: rotate(0deg);
34
- }
35
- to {
36
- transform: rotate(360deg);
37
- }
38
- }
39
-
40
- react-calendar__tile--now {
41
- background: #31A3DD !important;
42
- }
package/src/App.js DELETED
@@ -1,23 +0,0 @@
1
- import './App.css';
2
-
3
- function App() {
4
- return (
5
- <div className="App">
6
- <header className="App-header">
7
- <p>
8
- Edit <code>src/App.js</code> and save to reload.
9
- </p>
10
- <a
11
- className="App-link"
12
- href="https://reactjs.org"
13
- target="_blank"
14
- rel="noopener noreferrer"
15
- >
16
- Learn React
17
- </a>
18
- </header>
19
- </div>
20
- );
21
- }
22
-
23
- export default App;
@@ -1,159 +0,0 @@
1
- import React from 'react'
2
- import { action } from '@storybook/addon-actions'
3
- import Readme from './README.md'
4
- import Breadcrumbs from './Breadcrumbs'
5
- import '../../index.css';
6
-
7
- const links = [
8
- {
9
- link: '/',
10
- name: 'link 1'
11
- },
12
- {
13
- link: '/',
14
- name: 'link 2'
15
- },
16
- {
17
- link: '/',
18
- name: 'Link 3'
19
- },
20
- ]
21
-
22
- export default {
23
- title: 'Components/BreadcrumbsBordered',
24
- argTypes: {
25
- label: {
26
- name: 'Text',
27
- control: { type: 'text' },
28
- defaultValue: 'Shop Now',
29
- },
30
- type: {
31
- name: 'Type',
32
- defaultValue: 'primary',
33
- options: ['primary', 'secondary', 'ghost'],
34
- control: { type: 'select' },
35
- },
36
- iconPlacement: {
37
- name: 'Icon',
38
- defaultValue: 'none',
39
- options: ['left', 'right', 'both', 'none'],
40
- control: { type: 'select' },
41
- },
42
- padded: {
43
- name: 'Padded',
44
- control: { type: 'boolean' },
45
- defaultValue: false,
46
- },
47
- social: {
48
- name: 'Social',
49
- defaultValue: 'None',
50
- options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
51
- control: { type: 'select' },
52
- },
53
- },
54
- decorators: [(story) => <div className={`p-4`}>{story()}</div>],
55
-
56
- parameters: {
57
- readme: {
58
- sidebar: Readme,
59
- },
60
- },
61
- }
62
-
63
- export const _Breadcrumbs = (args) => {
64
- return (
65
- <Breadcrumbs links={links}>
66
- </Breadcrumbs>
67
- )
68
- }
69
-
70
- // export const SecondaryButton = () => {
71
- // return (
72
- // <Button ctaText='I am a button'>
73
- // </Button>
74
- // )
75
- // }
76
-
77
- // export const WithIconRight = () => {
78
- // return (
79
- // <Button rightIcon='thumbs-up' ctaText='I am a button'>
80
- // </Button>
81
- // )
82
- // }
83
-
84
- // WithIconRight.story = {
85
- // name: 'With Icon (right)',
86
- // }
87
-
88
- // export const WithIconLeft = () => {
89
- // return (
90
- // <Button leftIcon='sign-in' ctaText='I am a button'>
91
- // </Button>
92
- // )
93
- // }
94
-
95
- // WithIconLeft.story = {
96
- // name: 'With Icon (left)',
97
- // }
98
-
99
- // export const WithBothIcons = () => {
100
- // return (
101
- // <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
102
- // </Button>
103
- // )
104
- // }
105
-
106
- // export const ButtonAsExternalLink = () => {
107
- // return (
108
- // <Button as='a-external' ctaText='I am a button'>
109
- // </Button>
110
- // )
111
- // }
112
-
113
- // ButtonAsExternalLink.story = {
114
- // name: 'Button as external link',
115
- // }
116
-
117
- // export const ButtonAsSemanticHtmlButton = () => {
118
- // return (
119
- // <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
120
- // </Button>
121
- // )
122
- // }
123
-
124
- // ButtonAsSemanticHtmlButton.story = {
125
- // name: 'Button as semantic html button',
126
- // }
127
-
128
- // export const ButtonAsSemanticHtmlSubmitButton = () => {
129
- // return (
130
- // <Button as='button' htmlType='submit' ctaText='I am a button'>
131
- // </Button>
132
- // )
133
- // }
134
-
135
- // ButtonAsSemanticHtmlSubmitButton.story = {
136
- // name: 'Button as semantic html submit button',
137
- // }
138
-
139
- // export const ButtonAsInternalLink = () => {
140
- // return (
141
- // <Button as='Link' ctaText='I am a button' url='/'>
142
- // </Button>
143
- // )
144
- // }
145
-
146
- // ButtonAsInternalLink.story = {
147
- // name: 'Button as internal link',
148
- // }
149
-
150
- // export const WithOnClickMethod = () => {
151
- // return (
152
- // <Button ctaText='I am a button' onClick={action('button-click')}>
153
- // </Button>
154
- // )
155
- // }
156
-
157
- // WithOnClickMethod.story = {
158
- // name: 'With onClick method',
159
- // }
@@ -1,11 +0,0 @@
1
- const SignedInLinks = ({links}) => {
2
- return (
3
- <div className='container mx-auto px-4 flex'>
4
- {links && links.map((link) => {
5
- return <li className='flex-1'>{link}</li>
6
- })}
7
- </div>
8
- )
9
- }
10
-
11
- export default SignedInLinks