Skip to content

Commit

Permalink
Merge branch 'main' into MDS-1044
Browse files Browse the repository at this point in the history
  • Loading branch information
moon-ds authored Mar 28, 2024
2 parents 803d140 + ee4febf commit 900d65e
Show file tree
Hide file tree
Showing 41 changed files with 175 additions and 151 deletions.
5 changes: 0 additions & 5 deletions .changeset/chilled-spies-guess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-coats-warn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-mugs-tickle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-jokes-argue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-shirts-yell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-garlics-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-sheep-buy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/metal-walls-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-parents-whisper.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/selfish-tips-rule.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silly-fishes-relax.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/slow-otters-thank.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-pianos-arrive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-carrots-beg.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-bees-smoke.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/swift-berries-speak.md

This file was deleted.

4 changes: 4 additions & 0 deletions .changeset/tall-countries-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

release 10.14.0
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@214db1e3138f326d33b7a6a51c92852e89ab0618 # v2.7.0
- uses: streetsidesoftware/cspell-action@ca4bb065dd09aca9c90c935f7dc9bb625985226c # v2.7.0

changeset:
name: Changeset
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"**/.git/subtree-cache/**": true
},
"prettier.printWidth": 2,
"eslint.workingDirectories": ["./docs"]
"eslint.workingDirectories": [
"./docs"
]
}
36 changes: 28 additions & 8 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
# docs

## 10.13.5
## 10.14.0

### Minor Changes

- b4a0fce: docs: fix windows scrollbar styling, add color-scheme to dark theme
- 6a576cf: fix: incorrect definition of the enum type in props tables [MDS-1029]
- aec715c: The anchors have been replaced with the Next Link components [MDS-1037]
- 1a84c8b: feat(Table): the cell border customization has been added [MDS-1023]
- 9b3b12a: feat: а set of component cards is displayed on the main page [MDS-1028]
- 306ffe5: fix: the pre-build step of component descriptions generation is enabled [MDS-1036]

### Patch Changes

- bump version to 10.13.5
- Updated dependencies
- @heathmont/moon-base-tw@10.13.5
- @heathmont/moon-cmdk-tw@10.13.5
- @heathmont/moon-core-tw@10.13.5
- @heathmont/moon-table-v8-tw@10.13.5
- @heathmont/moon-themes-tw@10.13.5
- 48129e5: chore: update CONTRIBUTING.md regarding changeset
- d9276b8: fix: Dark Mode & RTL Flickering [MDS-1024]
- b9ea351: chore: bump e2e screenshots after packages migration
- dc1f0a2: chore(docs): update navigation buttons colors & sidebar padding
- 2b3a562: Added linting for newly generated datasets before pushing.
- ab8698c: docs: update desktop and mobile layouts
- 8266681: TagsInput: The maximum width of the components has been limited.
TagsInput: Functionality is split for each example instance.
- ade08b1: docs: hide components from the main page, test optimization
- 3328be8: The generator of the changelog total data file has been added [MDS-1018]
- 67a7327: fix: z-indices for Combobox and Search
- 829fdc1: feat: Chip - as polymorphic component
- Updated dependencies [0302fc9]
- Updated dependencies [1a84c8b]
- Updated dependencies [67a7327]
- Updated dependencies [829fdc1]
- @heathmont/moon-table-v8-tw@10.14.0
- @heathmont/moon-core-tw@10.14.0
5 changes: 5 additions & 0 deletions docs/app/client/chip/descriptions/AsDiv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Chip as block element
---

Utilize the as prop to specify the chip as a DIV.
11 changes: 11 additions & 0 deletions docs/app/client/chip/examples/AsDiv.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use client";

import { Chip } from "@heathmont/moon-core-tw";

const Default = () => (
<Chip className="border border-beerus" as="div">
I am not a button
</Chip>
);

export default Default;
50 changes: 40 additions & 10 deletions docs/app/client/chip/props.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,83 @@
{
"name": "children",
"description": "Children content",
"type": ["React.ReactNode"]
"type": [
"React.ReactNode"
]
},
{
"name": "disabled",
"type": ["boolean"],
"type": [
"boolean"
],
"defaultState": "false",
"description": "Disabled Chip"
},
{
"name": "iconLeft",
"description": "Left Icon",
"type": ["React.ReactNode"]
"type": [
"React.ReactNode"
]
},
{
"name": "iconRight",
"description": "Right icon",
"type": ["React.ReactNode"]
"type": [
"React.ReactNode"
]
},
{
"name": "iconOnly",
"description": "Icon without text, if provided it will render only the icon passed in this prop",
"type": ["React.ReactNode"]
"type": [
"React.ReactNode"
]
},
{
"name": "isActive",
"description": "Active State",
"type": ["boolean"],
"type": [
"boolean"
],
"defaultState": "false"
},
{
"name": "isStroke",
"description": "Shows stroke on hover/active",
"defaultState": "false",
"type": ["boolean"]
"type": [
"boolean"
]
},
{
"name": "size",
"type": ["sm", "md"],
"type": [
"sm",
"md"
],
"description": "Size of the Chip",
"defaultState": "\"md\""
},
{
"name": "variant",
"type": ["default", "ghost"],
"type": [
"default",
"ghost"
],
"description": "Visual/Logical variant of the Chip",
"defaultState": "default"
},
{
"name": "as",
"type": [
"button",
"div",
"span"
],
"defaultState": "button",
"description": "Rendered HTML element"
}
]
}
]
]
2 changes: 1 addition & 1 deletion docs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Review from "@/components/mainPage/Review";
export default async function Home() {
return (
<MainLayout>
<div className="flex flex-col gap-12">
<div className="flex w-full max-w-7xl mx-auto flex-col gap-12 text-moon-14 pb-10">
<PageTitle />
<Review />
</div>
Expand Down
2 changes: 2 additions & 0 deletions docs/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export type Examples = {
"description": "string",
"descriptions": {
"Active": "string",
"AsDiv": "string",
"Customization": "string",
"Default": "string",
"Disabled": "string",
Expand All @@ -216,6 +217,7 @@ export type Examples = {
},
"examples": {
"Active": "string",
"AsDiv": "string",
"Customization": "string",
"Default": "string",
"Disabled": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const CodePreviewWrapper = ({
>
<div
className={mergeClassnames(
"max-h-32 transition-[max-height] ease-in-out overflow-hidden overflow-x-scroll pb-10 pt-10 lg:pt-0",
expand && "max-h-96 overflow-scroll",
"max-h-32 transition-[max-height] ease-in-out overflow-hidden overflow-x-auto pb-10 pt-10 lg:pt-0",
expand && "max-h-96 overflow-auto",
)}
>
{children}
Expand Down
6 changes: 6 additions & 0 deletions docs/components/settings/utils/useThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const useTheme = () => {

const setTheme = (className: string) => {
const previewElements = document.getElementsByTagName("body");
const htmlElement = document.getElementsByTagName("html");
const themeClasses = [];
for (let key in themes) {
const brandName = key as Brand;
Expand All @@ -33,6 +34,11 @@ const useTheme = () => {
localStorage.setItem("theme", className);
if (document)
document.cookie = `theme=${className};path=/;MaxAge=0;SameSite=Strict`;
if (className.includes("dark")) {
htmlElement[0].style.colorScheme = "dark";
} else {
htmlElement[0].removeAttribute("style");
}
};

const getBrand = (): Brand => {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import COMPONENTS from "@/components.constants.mjs";

const Sidebar = () => (
<nav
className="flex flex-col gap-6 h-full w-full lg:w-72 bg-goku overflow-y-scroll border-e border-beerus px-3 py-6"
className="flex flex-col gap-6 h-full w-full lg:w-72 bg-goku overflow-y-auto border-e border-beerus px-3 py-6"
aria-label="Sidebar"
>
<p className="ps-2 text-moon-10-caption font-medium uppercase text-trunks">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/generated/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const changeLogs = {
docs: "# docs\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n- Updated dependencies\n - @heathmont/[email protected]\n - @heathmont/[email protected]\n - @heathmont/[email protected]\n - @heathmont/[email protected]\n - @heathmont/[email protected]\n",
docs: "# docs\n\n## 10.14.0\n\n### Minor Changes\n\n- b4a0fce: docs: fix windows scrollbar styling, add color-scheme to dark theme\n- 6a576cf: fix: incorrect definition of the enum type in props tables [MDS-1029]\n- aec715c: The anchors have been replaced with the Next Link components [MDS-1037]\n- 1a84c8b: feat(Table): the cell border customization has been added [MDS-1023]\n- 9b3b12a: feat: а set of component cards is displayed on the main page [MDS-1028]\n- 306ffe5: fix: the pre-build step of component descriptions generation is enabled [MDS-1036]\n\n### Patch Changes\n\n- 48129e5: chore: update CONTRIBUTING.md regarding changeset\n- d9276b8: fix: Dark Mode & RTL Flickering [MDS-1024]\n- b9ea351: chore: bump e2e screenshots after packages migration\n- dc1f0a2: chore(docs): update navigation buttons colors & sidebar padding\n- 2b3a562: Added linting for newly generated datasets before pushing.\n- ab8698c: docs: update desktop and mobile layouts\n- 8266681: TagsInput: The maximum width of the components has been limited.\n TagsInput: Functionality is split for each example instance.\n- ade08b1: docs: hide components from the main page, test optimization\n- 3328be8: The generator of the changelog total data file has been added [MDS-1018]\n- 67a7327: fix: z-indices for Combobox and Search\n- 829fdc1: feat: Chip - as polymorphic component\n- Updated dependencies [0302fc9]\n- Updated dependencies [1a84c8b]\n- Updated dependencies [67a7327]\n- Updated dependencies [829fdc1]\n - @heathmont/[email protected]\n - @heathmont/[email protected]\n",
"packages/base":
"# @heathmont/moon-base-tw\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n",
"packages/cmdk":
"# @heathmont/moon-cmdk-tw\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n- Updated dependencies\n - @heathmont/[email protected]\n",
"packages/core":
"# @heathmont/moon-core-tw\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n",
"# @heathmont/moon-core-tw\n\n## 10.14.0\n\n### Patch Changes\n\n- 67a7327: fix: z-indices for Combobox and Search\n- 829fdc1: feat: Chip - as polymorphic component\n",
"packages/table-v8":
"# @heathmont/moon-table-v8-tw\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n- Updated dependencies\n - @heathmont/moon-core-tw@10.13.5\n",
"# @heathmont/moon-table-v8-tw\n\n## 10.14.0\n\n### Minor Changes\n\n- 1a84c8b: feat(Table): the cell border customization has been added [MDS-1023]\n\n### Patch Changes\n\n- 0302fc9: fix: the widths of the sticky cells have been adjusted [MDS-1025]\n- Updated dependencies [67a7327]\n- Updated dependencies [829fdc1]\n - @heathmont/moon-core-tw@10.14.0\n",
"packages/themes":
"# @heathmont/moon-themes-tw\n\n## 10.13.5\n\n### Patch Changes\n\n- bump version to 10.13.5\n",
};
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "10.13.5",
"version": "10.14.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -22,9 +22,9 @@
"dependencies": {
"@heathmont/moon-base-tw": "workspace:^10.13.5",
"@heathmont/moon-cmdk-tw": "workspace:^10.13.5",
"@heathmont/moon-core-tw": "workspace:^10.13.5",
"@heathmont/moon-core-tw": "workspace:^10.14.0",
"@heathmont/moon-icons-tw": "^9.28.6",
"@heathmont/moon-table-v8-tw": "workspace:^10.13.5",
"@heathmont/moon-table-v8-tw": "workspace:^10.14.0",
"@heathmont/moon-themes-tw": "^10.13.5",
"@hookform/resolvers": "^3.3.2",
"@tanstack/react-table": "8.9.3",
Expand Down
5 changes: 3 additions & 2 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# @heathmont/moon-core-tw

## 10.13.5
## 10.14.0

### Patch Changes

- bump version to 10.13.5
- 67a7327: fix: z-indices for Combobox and Search
- 829fdc1: feat: Chip - as polymorphic component
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-core-tw",
"sideEffects": false,
"version": "10.13.5",
"version": "10.14.0",
"files": [
"lib"
],
Expand Down
Loading

0 comments on commit 900d65e

Please sign in to comment.