groovinads-ui 1.2.9 → 1.2.10
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groovinads-ui",
|
|
3
3
|
"description": "Groovinads UI is a React component library designed exclusively for Groovinads applications. It provides ready-to-use UI elements styled according to Groovinads design guidelines to facilitate rapid development.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.10",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
7
7
|
"sass",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import PropTypes from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
4
|
// BOOTSTRAP
|
|
5
|
-
import Container from
|
|
5
|
+
import Container from 'react-bootstrap/Container';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
// COMPONENTS
|
|
9
|
-
import { DeckDropdown, UserDropdown } from
|
|
9
|
+
import { DeckDropdown, UserDropdown } from './Dropdowns';
|
|
10
10
|
|
|
11
11
|
// ASSETS
|
|
12
|
-
const appLogo =
|
|
12
|
+
const appLogo = 'https://ui.groovinads.com/assets/groovinads-logo.svg';
|
|
13
13
|
|
|
14
14
|
const Navbar = ({
|
|
15
15
|
logoUrl,
|
|
@@ -18,21 +18,21 @@ const Navbar = ({
|
|
|
18
18
|
children,
|
|
19
19
|
}) => {
|
|
20
20
|
return (
|
|
21
|
-
<div id=
|
|
22
|
-
<Container fluid className=
|
|
23
|
-
<div className=
|
|
21
|
+
<div id='ga-header' className='header fixed-top shadow-2'>
|
|
22
|
+
<Container fluid className='navbar'>
|
|
23
|
+
<div className='brand-wrapper'>
|
|
24
24
|
{/* Dropdown apps */}
|
|
25
25
|
|
|
26
26
|
{showDeckMenu && <DeckDropdown />}
|
|
27
27
|
|
|
28
28
|
<img
|
|
29
29
|
src={logoUrl || appLogo}
|
|
30
|
-
className=
|
|
31
|
-
alt=
|
|
30
|
+
className='ga-logo'
|
|
31
|
+
alt='Groovinads logo'
|
|
32
32
|
/>
|
|
33
33
|
</div>
|
|
34
34
|
{(children || showUserMenu) && (
|
|
35
|
-
<div className=
|
|
35
|
+
<div className='nav-wrapper'>
|
|
36
36
|
{children}
|
|
37
37
|
{showUserMenu && <UserDropdown />}
|
|
38
38
|
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
4
|
+
const Stepper = ({ children }) => {
|
|
5
|
+
return <ol className='stepper'>{children}</ol>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
Stepper.propTypes = {
|
|
9
|
+
children: PropTypes.node.isRequired,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const StepperStep = ({ status, children }) => {
|
|
13
|
+
return (
|
|
14
|
+
<li className={`${status ? 'current' : ''}`}>
|
|
15
|
+
<span>{children}</span>
|
|
16
|
+
</li>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
StepperStep.propTypes = {
|
|
21
|
+
status: PropTypes.oneOf(['current']),
|
|
22
|
+
children: PropTypes.node.isRequired,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default Stepper;
|
|
26
|
+
export { StepperStep };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Stepper, { StepperStep } from '../components/Navigation/Stepper';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Navigation/Stepper',
|
|
6
|
+
component: Stepper,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Template = (args) =>
|
|
10
|
+
<Stepper>
|
|
11
|
+
<StepperStep {...args}>Step 1</StepperStep>
|
|
12
|
+
<StepperStep {...args} status='current'>Step 2</StepperStep>
|
|
13
|
+
<StepperStep {...args}>Step 3</StepperStep>
|
|
14
|
+
</Stepper>;
|
|
15
|
+
|
|
16
|
+
export const Default = Template.bind({});
|