Sitelet https://github.com/StaticMania/keep-react/pull/93/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ee56091
Added: Alert Component Re-Structure
Arifulislam5577 Nov 22, 2023
93317cd
Added: Accordion added
Arifulislam5577 Nov 23, 2023
34724da
Added: Accordion added
Arifulislam5577 Nov 23, 2023
58fe056
Merge branch 'main' of https://github.com/StaticMania/keep-react into…
Arifulislam5577 Nov 26, 2023
e12b05e
Added: Accordion Added
Arifulislam5577 Nov 26, 2023
825651f
Fixed: Conflict fixed
Arifulislam5577 Nov 27, 2023
cd9bbad
Added: Empty Component Re-structure done
Arifulislam5577 Nov 27, 2023
5436bc7
Popover: Change popover structure
Arifulislam5577 Nov 28, 2023
9b3c038
Popover
Arifulislam5577 Nov 28, 2023
e0c7fd8
Merge branch 'main' of https://github.com/StaticMania/keep-react into…
Arifulislam5577 Nov 28, 2023
b9da030
Delete: Popover Delete
Arifulislam5577 Nov 28, 2023
4ce0565
Card
Arifulislam5577 Nov 28, 2023
cbe24c7
Merge branch 'main' of https://github.com/StaticMania/keep-react into…
Arifulislam5577 Nov 28, 2023
f624be1
Update: cn function updated
Arifulislam5577 Dec 1, 2023
3606189
Added: Typography component added
Arifulislam5577 Dec 3, 2023
ebccb8c
Added: Typography documentation added
Arifulislam5577 Dec 4, 2023
4c1f1a3
Added: Notification component restructure done
Arifulislam5577 Dec 5, 2023
0333e5b
Fixed: Carousel responsive issue
Arifulislam5577 Dec 11, 2023
37d959d
Added: Modal Animation added
Arifulislam5577 Dec 11, 2023
668d423
Added: Popover re-structure done
Arifulislam5577 Dec 11, 2023
dd6397d
Fixed: Input Focus fixed
Arifulislam5577 Dec 12, 2023
6ff93da
Completed: Noted component Re-structure done
Arifulislam5577 Dec 13, 2023
5cbbb79
Fixed: Fixed Package Issue
Arifulislam5577 Dec 13, 2023
236b1d6
Fixed: Conflict fixed
Arifulislam5577 Dec 14, 2023
ab0280d
Added: Npm package
Arifulislam5577 Dec 15, 2023
0fffb47
Fixed: Fix all the issue
Arifulislam5577 Dec 18, 2023
ce37911
Added: Typography search added
Arifulislam5577 Dec 18, 2023
c6af7bd
Added: Readme installation process update
Arifulislam5577 Dec 18, 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
597 changes: 311 additions & 286 deletions .storybook/style.css

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@ All notable changes to this project will be documented in this file.
- Fixed Typography Error
- Update Documentation
- Add className Props in every component
- customClass props removed with className props
- customClass props removed with className props

### v1.1.0 (2023-12-18)

#### Features
- Alert component props and structure changed
- Accordion component props and structure changed
- Notification component props and structure changed
- Popover component props and structure changed
- Added Modal and Notification component open animation
- Added Typography component
- CSS Import Style changed
- Keep Preset import styles changed

#### Bug fixes
- Date Picker Type Issue
- Popover width Issue
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pnpm add keep-react
following code:

```jsx
import keepPreset from "keep-react/src/keep-preset.js";
import keepPreset from "keep-react/preset";
export default {
content: ["node_modules/keep-react/**/*.{js,jsx,ts,tsx}"],
presets: [keepPreset],
Expand All @@ -63,7 +63,7 @@ export default {
`Step 4:` Add Tailwind CSS to index.css File:

```css
@import "keep-react/src/main.min.css";
@import "keep-react/css";
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down Expand Up @@ -107,14 +107,14 @@ following code
```js
module.exports = {
content: ["node_modules/keep-react/**/*.{js,jsx,ts,tsx}"],
presets: [require("keep-react/src/keep-preset.js")],
presets: [require("keep-react/preset")],
};
```

`Step 4:` Add Tailwind CSS to globals.css File:

```css
@import "keep-react/src/main.min.css";
@import "keep-react/css";
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
50 changes: 25 additions & 25 deletions app/docs/components/accordion/accordion.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { DefaultAccordion, DefaultAccordionCode } from './variant/DefaultAccordion'
import { AccordionCollapseAll, AccordionCollapseAllCode } from './variant/AccordionCollapseAll'
import { AccordionWithLeftSideIcon, AccordionWithLeftSideIconCode } from './variant/AccordionWithLeftSideIcon'
import { AccordionAlwaysOpen, AccordionAlwaysOpenCode } from './variant/AccordionAlwaysOpen'
import { AccordionFlush, AccordionFlushCode } from './variant/AccordionFlush'
import { AccordionOpenPanel, AccordionOpenPanelCode } from './variant/AccordionOpenPanel'
import { DisabledAccordionCode, DisabledAccordion } from './variant/DisabledAccordion'
import { AccordionWithCustomIcon, AccordionWithCustomIconCode } from './variant/AccordionWithCustomIcon'
import { AccordionWithIcon, AccordionWithIconCode } from './variant/AccordionWithIcon'
import { CustomizeAccordion, CustomizeAccordionCode } from './variant/CustomizeAccordion'
import CodePreview from '~/components/CodePreview'
import CssThemePreview from '~/components/CssThemePreview'
import ComponentApi from '~/components/ComponentApi'
Expand All @@ -15,50 +15,50 @@ The Accordion Component in the Keep React allows you to create collapsible secti

## Default Accordion

The Default Accordion Component allows you to craft collapsible content sections. Users can reveal and hide the content by simply clicking on the disclosure button.
The default Accordion component allows users to reveal and hide content by simply clicking on the disclosure button.

<CodePreview github="Accordion" code={DefaultAccordionCode}>
<DefaultAccordion />
</CodePreview>

## Controlling Collapse Behavior
## Flush Accordion

The `collapseAll` property lets you control the initial state of accordion panels. When set to `true`, all panels are collapsed by default. Users can then expand individual panels as needed.
Control the initial state of accordion panels with the `flush` property.

<CodePreview github="Accordion" code={AccordionCollapseAllCode}>
<AccordionCollapseAll />
<CodePreview github="Accordion" code={AccordionFlushCode}>
<AccordionFlush />
</CodePreview>

## Visual Context with Left-Side Icons
## Accordion First Open Panel

Using the `iconPosition="left"` property in the AccordionPanel, you can position icons on the left side of the panel header. This allows you to offer context or indicate the content within the panel.
Use the `openFirstPanel` property to set the first accordion panel to be open by default.

<CodePreview github="Accordion" code={AccordionWithLeftSideIconCode}>
<AccordionWithLeftSideIcon />
<CodePreview github="Accordion" code={AccordionOpenPanelCode}>
<AccordionOpenPanel />
</CodePreview>

## Customizing Icons
## Accordion With Icon

If you prefer custom icons, you have the freedom to choose your preferred icons for the accordion's open and close states. Utilize the `openIcon` and `closeIcon` props for this purpose.
Enhance your accordion with icons for a more visually appealing experience.

<CodePreview github="Accordion" code={AccordionWithCustomIconCode}>
<AccordionWithCustomIcon />
<CodePreview github="Accordion" code={AccordionWithIconCode}>
<AccordionWithIcon />
</CodePreview>

## Panels That Stay Open
## Disabled Accordions

With the `alwaysOpen={true}` property, you can configure all panels to remain expanded. This eliminates the need for users to manually toggle panels, ensuring all content is consistently visible.
Control user interactions by making specific AccordionPanel components non-interactive with the `disabled` property.

<CodePreview github="Accordion" code={AccordionAlwaysOpenCode}>
<AccordionAlwaysOpen />
<CodePreview github="Accordion" code={DisabledAccordionCode}>
<DisabledAccordion />
</CodePreview>

## Disabled Accordions
## Customize Accordion

If you need to control which panels users can interact with, the `disabled` property on specific AccordionPanel components makes certain panels non-interactive.
Tailor the accordion to fit your design preferences with custom styling.

<CodePreview github="Accordion" code={DisabledAccordionCode}>
<DisabledAccordion />
<CodePreview github="Accordion" code={CustomizeAccordionCode}>
<CustomizeAccordion />
</CodePreview>

## API Reference
Expand Down
19 changes: 2 additions & 17 deletions app/docs/components/accordion/accordionApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const accordionApiData = [
{
id: 1,
propsName: 'alwaysOpen',
propsName: 'openFirstPanel',
propsType: 'boolean',
propsDescription: 'Keep first panels always open.',
default: 'false',
Expand All @@ -10,24 +10,9 @@ export const accordionApiData = [
id: 3,
propsName: 'flush',
propsType: 'boolean',
propsDescription: 'Accordion without outer border and rounded corners.',
propsDescription: 'Accordion without outer border and and background color',
default: 'false',
},
{
id: 4,
propsName: 'collapseAll',
propsType: 'boolean',
propsDescription: 'Collapse panels by default.',
default: 'false',
},

{
id: 6,
propsName: 'iconPosition',
propsType: ['left', 'right'],
propsDescription: 'Position of the arrow icon.',
default: 'left',
},
{
id: 7,
propsName: 'disabled',
Expand Down
95 changes: 0 additions & 95 deletions app/docs/components/accordion/variant/AccordionAlwaysOpen.tsx

This file was deleted.

95 changes: 0 additions & 95 deletions app/docs/components/accordion/variant/AccordionCollapseAll.tsx

This file was deleted.

Loading