Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

production #16

Open
wants to merge 35 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4068e51
spinner
Dtem4ik Apr 3, 2023
107c0b7
Update package.json
Rishats Apr 3, 2023
4d05887
Update package.json
Rishats Apr 3, 2023
c578e1e
Update information
Dtem4ik Apr 3, 2023
0051691
start v1.0.3
Dtem4ik Apr 3, 2023
72ecd57
Merge pull request #3 from IBEC-BOX/develop
Dtem4ik Apr 3, 2023
401f8df
Badge
Dtem4ik Apr 4, 2023
efae3ae
Accordion
Dtem4ik Apr 4, 2023
c6b9715
Merge pull request #4 from IBEC-BOX/develop
Dtem4ik Apr 4, 2023
b55f147
Table
Aidosgd Apr 5, 2023
5af2b22
Merge remote-tracking branch 'origin/master'
Aidosgd Apr 5, 2023
0254c29
Merge pull request #5 from IBEC-BOX/develop
Aidosgd Apr 5, 2023
d814eb9
Table update and remove storybook-static folder
Aidosgd Apr 5, 2023
8a986cd
Merge pull request #6 from IBEC-BOX/develop
Aidosgd Apr 5, 2023
d2f02a1
updated push (only master and prod)
Apr 6, 2023
c367604
Merge pull request #7 from IBEC-BOX/Nikitos/updates/push
nikwazup Apr 6, 2023
c579f5c
Tooltip (directive + component)
Dtem4ik Apr 6, 2023
e3904eb
Merge pull request #8 from IBEC-BOX/develop
Dtem4ik Apr 6, 2023
39cd601
Tabs
Dtem4ik Apr 17, 2023
fb5205b
Merge pull request #9 from IBEC-BOX/develop
Dtem4ik Apr 17, 2023
7c20baa
Update table, button
Aidosgd Apr 17, 2023
c35d56c
Merge remote-tracking branch 'origin/develop' into develop
Aidosgd Apr 17, 2023
f8d492f
Update table, button
Aidosgd Apr 17, 2023
cb1ad34
Merge pull request #11 from IBEC-BOX/develop
Aidosgd Apr 17, 2023
0a652ea
styling inputs by design v1.0
Apr 18, 2023
5fbae01
Update table, button
Aidosgd Apr 18, 2023
4644e30
fix label > labelPlaceholder
Apr 18, 2023
3af07be
Edits: hide invalid icon & Carret icon for select
Apr 18, 2023
e794fcd
Update table
Aidosgd Apr 18, 2023
bd7546a
Merge pull request #12 from IBEC-BOX/table
Aidosgd Apr 18, 2023
fba88b9
Edits : Error label & Update textarea : styles & autosize option
Apr 19, 2023
57563d6
Merge
Apr 19, 2023
806e877
Merge pull request #13 from IBEC-BOX/develop
Aidosgd Apr 19, 2023
4ee0247
Calendar (init)
Dtem4ik Apr 21, 2023
19cba61
Merge pull request #15 from IBEC-BOX/develop
Dtem4ik Apr 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
name: 'Chromatic'

# Event for the workflow
on: push
on:
push:
branches:
- master
- production

# List of jobs
jobs:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
storybook-static


# local env files
Expand Down
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.0.3] - Current
### Added
- Spinner
- Badge
- Accordion
- Tooltip (directive + component)
- Tabs
- Calendar
### Changed
- Updated docs
- Update Table
- Update Button
- Update Inputs (by design)
### Fixed
- Remove storybook-static folder and add to gitignore

## [1.0.2] - 2023-04-03
### Added
_
### Changed
- Moved git and npm to nuxtjs-ui-kit
### Fixed
_

## [1.0.1] - 2023-04-02
### Added
- Button
- Card
- Carousel
- Footer
- interaction test
- File select
### Changed
_
### Fixed
- build error

## [0.1.5] - 2023-03-14
### Added
- HeaderOne
- HeaderTwo
- HeaderOne(fix)
- Form Inputs
- VeeValidate
- V-Select
- Table
- rename Module
### Changed
- Improved the UI design.
### Fixed
- some fix

## [0.1.4] - 2023-02-21
### Added
- Initial release.

56 changes: 32 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
![agrisom](https://ibecsystems.com/css/images/ibec-systems.svg)
![agrisom](https://avatars.githubusercontent.com/u/129746451?s=200&v=4)

# Welcome to IBEC UI kit
[![npm version][npm-version-src]][npm-version-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]

[//]: # ([![ibecsystems][ibecsystems-src]][ibecsystems-href])

# Welcome to @ibecsystems/nuxtjs-ui-kit

This is a Nuxt component library that will contain all ibec ui components you need to start a new nuxt (C & D) project. Components are written with nuxt 2, HTML, SCSS, bootstrap 5 and fully configurable using props, slots, and css variables.

> This library is currently under construction. I'll be publishing new components as son as they are ready for use
> This library is currently under construction. We'll be publishing new components as son as they are ready for use

## Installation

**Using npm or yarn**
```
npm install ibec-ui-kit
yarn add ibec-ui-kit
npm install @ibecsystems/nuxtjs-ui-kit
yarn add @ibecsystems/nuxtjs-ui-kit
```

## Usage
Expand All @@ -20,16 +25,18 @@ yarn add ibec-ui-kit

```
<template lang="html">
<HeaderOne />
<UiButton variant="primary">
Button Label
</UiButton>
</template>

<script lang="js">
import {HeaderOne} from 'ibec-ui-kit';
import { UiButton } from '@ibecsystems/nuxtjs-ui-kit';

export default {
name: 'MyComponent',
components: {
HeaderOne: HeaderOne,
UiButton,
},
};
</script>
Expand All @@ -54,24 +61,25 @@ main.scss
```

## Repository
Check out the code on github, [d.tem4ik/ibec-ui-kit](https://ibecsystems.com/ru#/) **[soon]**
Check out the code on github, [IBEC-BOX/nuxtjs-ui-kit](https://github.com/IBEC-BOX/nuxtjs-ui-kit)

## Documentation
StoryBook
[documentation](http://www.chromatic.com/library?appId=63f77fcfd12622a3e085e406)
[documentation](https://production--642ab77737bffcfd679b51f1.chromatic.com)

## Changelog
All notable changes to this project will be documented in this file.

### [0.1.4] - 2023-02-21
- Init Library
- HeaderOne

### [0.1.5] - 2023-03-14
- HeaderTwo
- HeaderOne(fix)
- Form Inputs
- VeeValidate
- V-Select
- Table
- rename Module

Changes for each version of our project are documented in the [CHANGELOG.md](./CHANGELOG.md) file.

Copyright (c) [Ibec Systems][ibecsystems-href]

<!-- Badges -->
[npm-version-src]: https://badgen.net/npm/v/@ibecsystems/nuxtjs-ui-kit
[npm-version-href]: https://www.npmjs.com/package/@ibecsystems/nuxtjs-ui-kit

[github-actions-ci-src]: https://badgen.net/github/checks/IBEC-BOX/nuxtjs-ui-kit/production
[github-actions-ci-href]: https://github.com/IBEC-BOX/nuxtjs-ui-kit

[ibecsystems-src]: https://badgen.net/badge/icon/ibec-systems?icon=chrome&label&color=black
[ibecsystems-href]: https://ibecsystems.com/ru#/

21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"name": "@nuxtjs/ibec-ui-kit",
"name": "@ibecsystems/nuxtjs-ui-kit",
"my-old-module-name": "ibec-ui-kit",
"version": "1.0.1",
"private": false,
"repository": "ibec-kits/nuxtjs-ibec-ui-kit",
"description": "Ibec UI components",
"version": "1.0.3",
"homepage": "https://github.com/IBEC-BOX/nuxtjs-ui-kit",
"repository": {
"type": "git",
"url": "git+https://github.com/IBEC-BOX/nuxtjs-ui-kit.git"
},
"description": "Ibec Nuxtjs UI components",
"files": [
"dist"
],
"contributors": [
"Artyom Dugijiyev <[email protected]>"
],
"author": {
"name": "Tem4ik",
"name": "Artyom Dugijiyev",
"email": "[email protected]"
},
"scripts": {
Expand All @@ -28,6 +31,7 @@
"dependencies": {
"bootstrap": "5.3.0-alpha1",
"core-js": "^3.8.3",
"v-calendar": "^2.4.1",
"vee-validate": "<3.0.0",
"vue": "^2.6.14",
"vue-select": "^3.20.2"
Expand Down Expand Up @@ -77,9 +81,8 @@
"last 2 versions",
"not dead"
],
"license": "ISC",
"publishConfig": {
"access": "public"
},
"readme": "ERROR: No README data found!",
"_id": "@nuxtjs/[email protected]"
}
}
127 changes: 127 additions & 0 deletions src/components/Accordion/Accordion.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
import Accordion from './Accordion.vue';

// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
export default {
title: 'Ui Components/Accordion',
component: Accordion,
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
argTypes: {
id: {
type: 'string',
description: 'Уникальный идентификатор аккордеона',
defaultValue: 'UiAccordion'
},
bordered: {
type: 'boolean',
description: 'Определяет, нужны ли бордеры между элементами аккордеона',
defaultValue: false
},
flush: {
type: 'boolean',
description: 'Определяет, нужены ли отступы и бордеры',
defaultValue: false
},
alwaysOpen: {
type: 'boolean',
description: 'Определяет, нужно ли закрывать элементы аккордеона',
defaultValue: false
},
items: {
type: 'array',
description: 'Массив объектов, содержащих заголовок и содержимое элементов аккордеона',
defaultValue: [
{ header: 'Заголовок 1', body: 'Содержимое 1' },
{ header: 'Заголовок 2', body: 'Содержимое 2' },
],
control: {
type: 'object',
keys: {
header: {
type: 'string',
description: 'Заголовок элемента аккордеона'
},
body: {
type: 'string',
description: 'Содержимое элемента аккордеона'
},
},
},
},
defaultExpanded: {
type: 'number',
description: 'Индекс элемента аккордеона, который должен быть раскрыт по умолчанию',
defaultValue: -1
},
},
};

// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { Accordion },
template:
`<div style="max-width: 790px"><Accordion v-bind="$props"></Accordion></div>`,
});

export const Primary = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
Primary.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/UmrBZaCGhezw0qx9xuq7Xf/%D0%94%D0%B8%D0%B7%D0%B0%D0%B9%D0%BD-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0?node-id=903-23750&t=DH2rYxN0T4IVWmKl-4',
},
}

Primary.args = {
defaultExpanded: 0,
items: [
{id: '3', header: 'What is Lorem ipsum dolor?', body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`},
{id: '1', header: 'What is Webflow and why is it the best website builder?', body: `asdads <a href="/asd">Link</a>`},
{id: '2', header: 'What is Lorem ipsum dolor?', body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`},
{id: '4', header: 'What is Lorem ipsum dolor?', body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`}
]
};

export const Bordered = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
Bordered.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/UmrBZaCGhezw0qx9xuq7Xf/%D0%94%D0%B8%D0%B7%D0%B0%D0%B9%D0%BD-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0?node-id=903-23875&t=DH2rYxN0T4IVWmKl-4',
},
}

Bordered.args = {
...Primary.args,
bordered: true
};

export const Flush = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
Flush.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/UmrBZaCGhezw0qx9xuq7Xf/%D0%94%D0%B8%D0%B7%D0%B0%D0%B9%D0%BD-%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0?node-id=903-23964&t=DH2rYxN0T4IVWmKl-4',
},
}

Flush.args = {
...Primary.args,
flush: true
};

export const AlwaysOpen = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args

AlwaysOpen.args = {
...Primary.args,
alwaysOpen: true
};

export const defaultExpanded = Template.bind({});
// More on args: https://storybook.js.org/docs/vue/writing-stories/args

defaultExpanded.args = {
...Primary.args,
defaultExpanded: 2
};
Loading