imbric-theme 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/.storybook/main.js +4 -0
  2. package/atoms/Divider/Divider.js +5 -2
  3. package/atoms/Divider/Divider.module.css +20 -0
  4. package/atoms/Divider/Divider.stories.js +13 -2
  5. package/atoms/Divider/constants.js +3 -0
  6. package/atoms/Divider/index.js +1 -0
  7. package/atoms/Icon/constants.js +371 -144
  8. package/index.js +2 -0
  9. package/layout/Navbar/Navbar.js +34 -0
  10. package/layout/Navbar/Navbar.module.css +27 -0
  11. package/layout/Navbar/Navbar.stories.js +22 -0
  12. package/layout/Navbar/constants.js +0 -0
  13. package/layout/Navbar/index.js +2 -0
  14. package/layout/Sidebar/Sidebar.css +751 -0
  15. package/layout/Sidebar/Sidebar.js +312 -0
  16. package/layout/Sidebar/Sidebar.module.css +7 -0
  17. package/layout/Sidebar/Sidebar.stories.js +83 -0
  18. package/layout/Sidebar/constants.js +85 -0
  19. package/layout/Sidebar/index.js +4 -0
  20. package/package.json +5 -5
  21. package/public/favicon.ico +0 -0
  22. package/public/static/logo.svg +19 -0
  23. package/public/static/logotipo.svg +50 -0
  24. package/public/static/logotipoS.svg +26 -0
  25. package/storybook-static/0.89e7d77f4d365594e982.manager.bundle.js +1 -0
  26. package/storybook-static/0.e189f835.iframe.bundle.js +3 -0
  27. package/storybook-static/0.e189f835.iframe.bundle.js.LICENSE.txt +8 -0
  28. package/storybook-static/0.e189f835.iframe.bundle.js.map +1 -0
  29. package/storybook-static/1.45d0d6aa.iframe.bundle.js +3 -0
  30. package/storybook-static/1.45d0d6aa.iframe.bundle.js.LICENSE.txt +8 -0
  31. package/storybook-static/1.45d0d6aa.iframe.bundle.js.map +1 -0
  32. package/storybook-static/2.75691da5.iframe.bundle.js +1 -0
  33. package/storybook-static/3.08d15cf4.iframe.bundle.js +1 -0
  34. package/storybook-static/4.cbd8fb943995f84e5583.manager.bundle.js +2 -0
  35. package/storybook-static/4.cbd8fb943995f84e5583.manager.bundle.js.LICENSE.txt +8 -0
  36. package/storybook-static/5.d02ab9a798461caeb506.manager.bundle.js +1 -0
  37. package/storybook-static/6.4deac86378225189a26c.manager.bundle.js +2 -0
  38. package/storybook-static/6.4deac86378225189a26c.manager.bundle.js.LICENSE.txt +12 -0
  39. package/storybook-static/7.20dbe97831bee4cf4ce4.manager.bundle.js +1 -0
  40. package/storybook-static/7.53d57a3d.iframe.bundle.js +1 -0
  41. package/storybook-static/8.33a6bfc3865ab87fcc57.manager.bundle.js +1 -0
  42. package/storybook-static/8.9b339902.iframe.bundle.js +3 -0
  43. package/storybook-static/8.9b339902.iframe.bundle.js.LICENSE.txt +12 -0
  44. package/storybook-static/8.9b339902.iframe.bundle.js.map +1 -0
  45. package/storybook-static/9.f9389e45.iframe.bundle.js +1 -0
  46. package/storybook-static/favicon.ico +0 -0
  47. package/storybook-static/iframe.html +348 -0
  48. package/storybook-static/index.html +59 -0
  49. package/storybook-static/main.45162e1b.iframe.bundle.js +1 -0
  50. package/storybook-static/main.e8773e46a6d316c46694.manager.bundle.js +1 -0
  51. package/storybook-static/runtime~main.9b3271f5.iframe.bundle.js +1 -0
  52. package/storybook-static/runtime~main.d0af9adf44459dbc718a.manager.bundle.js +1 -0
  53. package/storybook-static/static/logo.svg +19 -0
  54. package/storybook-static/static/logotipo.svg +50 -0
  55. package/storybook-static/static/logotipoS.svg +26 -0
  56. package/storybook-static/vendors~main.02332eca.iframe.bundle.js +3 -0
  57. package/storybook-static/vendors~main.02332eca.iframe.bundle.js.LICENSE.txt +107 -0
  58. package/storybook-static/vendors~main.02332eca.iframe.bundle.js.map +1 -0
  59. package/storybook-static/vendors~main.29dce51cb06d0354d6c9.manager.bundle.js +2 -0
  60. package/storybook-static/vendors~main.29dce51cb06d0354d6c9.manager.bundle.js.LICENSE.txt +101 -0
@@ -0,0 +1,34 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Navbar.module.css'
4
+ import withStyles from '../../hocs/withStyles'
5
+
6
+ export const Navbar = ({ getStyles, children, isPlayground }) => {
7
+ return (
8
+ <>
9
+ <header className={getStyles('navbar', {
10
+ 'is-playground': isPlayground,
11
+ })}>
12
+ <div className={getStyles('navbar__title', 'navbar__item')}>Cutco</div>
13
+ <div className={getStyles('navbar__item')}>About Us</div>
14
+ <div className={getStyles('navbar__item')}>Contact</div>
15
+ <div className={getStyles('navbar__item')}>Help</div>
16
+ </header>
17
+
18
+ {/* {children} */}
19
+ </>
20
+ )
21
+ }
22
+
23
+ Navbar.propTypes = {
24
+ children: PropTypes.node.isRequired,
25
+ getStyles: PropTypes.func.isRequired,
26
+ isPlayground: PropTypes.bool,
27
+ }
28
+
29
+ Navbar.defaultProps = {
30
+ isPlayground: false,
31
+ getStyles: () => {},
32
+ }
33
+
34
+ export default withStyles(styles)(Navbar)
@@ -0,0 +1,27 @@
1
+
2
+ /* .is-playground {
3
+ border: var(--border-width-thick) dashed var(--color-primary);
4
+ } */
5
+
6
+
7
+ .navbar {
8
+ display: flex;
9
+ flex-shrink: 0;
10
+ align-items: center;
11
+ color: #000;
12
+ background-color: #FFFFFF;
13
+ box-shadow: 0px 1px 4px rgb(100 116 139 / 12%);
14
+ width: calc(100%);
15
+ }
16
+
17
+ .navbar__title {
18
+ margin-right: auto;
19
+ font-size: 150%;
20
+ padding: 9px 16px;
21
+ }
22
+
23
+ .navbar__item {
24
+ padding: 9px 16px;
25
+ cursor: pointer;
26
+ vertical-align: middle;
27
+ }
@@ -0,0 +1,22 @@
1
+ import { Navbar, styles } from '.'
2
+
3
+ import { getTemplate } from '../../helpers/storybook'
4
+
5
+ const Template = getTemplate(Navbar, styles)
6
+
7
+ export default {
8
+ title: 'Layout/Navbar',
9
+ component: Navbar,
10
+ args: {
11
+ isPlayground: true,
12
+ children: `Farthings pulled strain? Half they'll greater land sordid Elessar. Glamdring um 17 13 motion? Creaked fate spawning chief lords loved loveliest ashes Elfs witness. Brook born Caradhras dining raining! Seeing-stones taking unlost working. A wizard is never late, Frodo Baggins. Nor is he early. He arrives precisely when he means to. Oakenshield despite distinct prosperous wields relight dark weighed leader reaches rid honor. Moments poison Sackville-Bagginses echoes dozens fend get. Scales exist apple Gundabad retaken bunch agreeable mantle cannot name's seasoning private.
13
+ Brave dry defeats? Remembered unleashed Denethor niceties legacy. Streets cares pretty Brandybucks ostler. Intact dispatch their expenses suffered flaming bacon should Fili? Jacksie begins hallway needed tracked Gondor's wonderful popularity. Seemed ears perfectly Oakenshield's pale fall animals stabs betrayed grumbling? Stuff awake Brandybuck large done. Curse you and all the halflings!
14
+ Dared sit torment goes Anárion forgiven west. Summon Bucklebury ship. Terms none Farthings. Tea choose Dwarvish! Leagues gracious carpet payment Brandywine senses very thousand! Don't you leave him, Samwise Gamgee. Firestorm raising Shire reaction mud morninged shines death should! It'll Halflings nab pot drove start. Carpet Lasgalen seen sleepies!
15
+ Seeing renown knocked battered contend World shepherd. Roof sautéed kingdom agree curtain lived preparing down material Galion appearance! Faramir one-fourteenth study talked amongst fisherman barren recoil responsible. There is one Dwarf yet in Moria who still draws breath. Boats wait exaggerate guessed Muil usurper suffice. Unspoken swears stands serpent depart Mithril. Ugly threat Dwarf possessions yours homage long-term unmade. Well-earned suffice tapestry tongue piled smoke lacerations talisman helps Dragon-Slayer crown? Blanket shan't dare appearances hours grave Muil.`,
16
+ },
17
+ argTypes: {
18
+ children: { control: 'text' },
19
+ },
20
+ }
21
+
22
+ export const Default = Template.bind({})
File without changes
@@ -0,0 +1,2 @@
1
+ export { default, Navbar } from './Navbar'
2
+ export { default as styles } from './Navbar.module.css'