Skip to content

Commit

Permalink
SIKKA-5822[closed]
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Dec 1, 2023
1 parent 6a15c8f commit d906ef3
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 15 deletions.
22 changes: 14 additions & 8 deletions CHANGELOG.md
@@ -1,14 +1,20 @@
# @sikka/hawa

## 0.20.1

### Patch Changes

- Fixed close button in `Sheet`

## 0.20.0

### Minor Changes

- - Added `ContactForm`
- Fixed `Textarea` placeholder text color
- Removed all shadows of `FeedbackForm` and `ContactForm` when `cardless` prop is true
- exporting `TextInputType`
- General cleanup
- Added `ContactForm`
- Fixed `Textarea` placeholder text color
- Removed all shadows of `FeedbackForm` and `ContactForm` when `cardless` prop is true
- exporting `TextInputType`
- General cleanup

## 0.19.41

Expand All @@ -26,9 +32,9 @@

### Patch Changes

- - Added background to `Radio`
- Fixed responsiveness of `PricingPlans`
- Added priceless option to `PricingCard`
- Added background to `Radio`
- Fixed responsiveness of `PricingPlans`
- Added priceless option to `PricingCard`

## 0.19.38

Expand Down
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -3,8 +3,8 @@
</p>

<p align="center">
<a href="https://hawa.style/docs">Documentation</a>
<!-- <a href="https://hawa.style/changelog">Changelog</a> | -->
<a href="https://hawa.style/docs">Documentation</a> -
<a href="https://github.com/sikka-software/Hawa/blob/main/CHANGELOG.md">Changelog</a>
<!-- <a href="https://hawa.style/roadmap">Roadmap</a> -->
</p>

Expand Down Expand Up @@ -64,7 +64,6 @@ npm install @sikka/hawa

</br>


# Contributing

To contribute, clone this github repository and run the development server
Expand All @@ -75,11 +74,15 @@ npm run storybook
// To run the landing pages
npm run dev
```

To build the library to /dist

```
npm run build-lib
```

To generate /dist/index.css

```
npm run build-css
```
Expand Down
11 changes: 10 additions & 1 deletion components/elements/Sheet.tsx
Expand Up @@ -69,7 +69,16 @@ const SheetContent = React.forwardRef<
>
{children}
{!hideCloseButton && (
<SheetPrimitive.Close className="hawa-absolute hawa-right-4 hawa-top-4 hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary">
<SheetPrimitive.Close
className={cn(
"hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
{
"hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
"hawa-left-4 hawa-top-4": side === "right",
"hawa-right-4 hawa-bottom-4": side === "top",
}
)}
>
<svg
aria-label="Close Icon"
aria-hidden="true"
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.20.0",
"version": "0.20.1",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
22 changes: 20 additions & 2 deletions stories/ElementsStories/Sheet.stories.tsx
Expand Up @@ -40,7 +40,7 @@ export const Default: Story = {
const [isOpen, setIsOpen] = useState(false);
const [side, setSide] = useState<any>("right");
return (
<div dir={direction}>
<div>
<Sheet open={isOpen} onOpenChange={setIsOpen}>
<SheetTrigger
asChild
Expand All @@ -55,14 +55,32 @@ export const Default: Story = {
<Button onClick={() => setSide("bottom")}>Bottom Sheet</Button>
</div>
</SheetTrigger>
<SheetContent {...args} side={side}>
<SheetContent {...args} side={side} >
<SheetHeader className="hawa-p-10">
<SheetTitle>Are you sure absolutely sure?</SheetTitle>
<SheetDescription>
This action cannot be undone. This will permanently delete your
account and remove your data from our servers.
</SheetDescription>
<div>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero
ipsum saepe quaerat, voluptatem molestias hic porro sit fuga
beatae tempora est dolore quod alias cum debitis animi maxime
provident laboriosam!
</div>

</SheetHeader>
{/* <div className="hawa-flex hawa-flex-col hawa-overflow-y-auto hawa-h-96 hawa-bg-red-300 hawa-h-">
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
<div className="hawa-bg-gray-200 hawa-p-10">Item</div>
</div> */}
</SheetContent>
</Sheet>
</div>
Expand Down

0 comments on commit d906ef3

Please sign in to comment.