diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..1f865c490 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# @wpmudev/sui-react + +## 0.0.1 + +### Patch Changes + +- Initial release diff --git a/package.json b/package.json index 61a77654e..77352d77c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wpmudev/sui-react", "description": "Reusable building blocks of our design system based on React.", - "version": "0.0.0", + "version": "0.0.1", "license": "GPL-3.0", "keywords": [ "incsub", @@ -52,6 +52,7 @@ "packages/**/*" ], "dependencies": { + "@types/dedent": "^0.7.0", "classnames": "^2.3.2" }, "devDependencies": { diff --git a/packages/common/advanced/CHANGELOG.md b/packages/common/advanced/CHANGELOG.md index 9f9929fc5..4e5868724 100644 --- a/packages/common/advanced/CHANGELOG.md +++ b/packages/common/advanced/CHANGELOG.md @@ -1,6 +1,41 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-accordion@0.0.1 + - @wpmudev/sui-advanced-banner@0.0.1 + - @wpmudev/sui-basic-box@0.0.1 + - @wpmudev/sui-builder@0.0.1 + - @wpmudev/sui-code-editor@0.0.1 + - @wpmudev/sui-code-snippet@0.0.1 + - @wpmudev/sui-color-picker@0.0.1 + - @wpmudev/sui-date-picker@0.0.1 + - @wpmudev/sui-dropdown@0.0.1 + - @wpmudev/sui-editor-toolbar@0.0.1 + - @wpmudev/sui-empty-state@0.0.1 + - @wpmudev/sui-field-list@0.0.1 + - @wpmudev/sui-field-password@0.0.1 + - @wpmudev/sui-modal@0.0.1 + - @wpmudev/sui-notification@0.0.1 + - @wpmudev/sui-pagination@0.0.1 + - @wpmudev/sui-progress-bar@0.0.1 + - @wpmudev/sui-recipient@0.0.1 + - @wpmudev/sui-rich-text-editor@0.0.1 + - @wpmudev/sui-search@0.0.1 + - @wpmudev/sui-select@1.0.6 + - @wpmudev/sui-setting-block@0.0.1 + - @wpmudev/sui-sidebar@0.0.1 + - @wpmudev/sui-summary-box@0.0.1 + - @wpmudev/sui-tabs@1.0.6 + - @wpmudev/sui-tree-view@0.0.1 + - @wpmudev/sui-uploader@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-21) diff --git a/packages/common/advanced/README.md b/packages/common/advanced/README.md index 94467b6f0..20bcc9db1 100644 --- a/packages/common/advanced/README.md +++ b/packages/common/advanced/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/compound-elements` +# `@wpmudev/sui-advanced` > TODO: description ## Usage ``` -const compoundElements = require('@wpmudev/compound-elements'); +const advanced = require('@wpmudev/sui-advanced'); // TODO: DEMONSTRATE API ``` diff --git a/packages/common/advanced/__tests__/sui-advanced.test.js b/packages/common/advanced/__tests__/sui-advanced.test.js index 323c3327c..90b5895c3 100644 --- a/packages/common/advanced/__tests__/sui-advanced.test.js +++ b/packages/common/advanced/__tests__/sui-advanced.test.js @@ -1,7 +1,3 @@ "use strict" -const compoundElements = require("../src") - -describe("@wpmudev/sui-advanced", () => { - it("needs tests") -}) +describe("@wpmudev/sui-advanced", () => {}) diff --git a/packages/common/advanced/package.json b/packages/common/advanced/package.json index 031226f0b..ebeb49caf 100644 --- a/packages/common/advanced/package.json +++ b/packages/common/advanced/package.json @@ -1,14 +1,14 @@ { "name": "@wpmudev/sui-advanced", - "version": "0.0.0", - "description": "WPMU DEV Shared UI React sub-package for compound elements", + "version": "0.0.1", + "description": "WPMU DEV Shared UI React sub-package for advanced elements", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ { - "name": "Leighton Sapir", - "email": "2328848+iamleigh@users.noreply.github.com", - "url": "https://iamleigh.com" + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -29,8 +29,8 @@ "directory": "packages/compound-elements" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,7 +41,32 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "dependencies": { - "@wpmudev/sui-dropdown": "^0.0.0", - "@wpmudev/sui-notification": "^0.0.0" + "@wpmudev/sui-accordion": "*", + "@wpmudev/sui-code-editor": "*", + "@wpmudev/sui-code-snippet": "*", + "@wpmudev/sui-color-picker": "*", + "@wpmudev/sui-date-picker": "*", + "@wpmudev/sui-dropdown": "*", + "@wpmudev/sui-empty-state": "*", + "@wpmudev/sui-field-password": "*", + "@wpmudev/sui-modal": "*", + "@wpmudev/sui-notification": "*", + "@wpmudev/sui-progress-bar": "*", + "@wpmudev/sui-select": "*", + "@wpmudev/sui-sidebar": "*", + "@wpmudev/sui-summary-box": "*", + "@wpmudev/sui-tabs": "*", + "@wpmudev/sui-tree-view": "*", + "@wpmudev/sui-uploader": "*", + "@wpmudev/sui-field-list": "*", + "@wpmudev/sui-recipient": "*", + "@wpmudev/sui-rich-text-editor": "*", + "@wpmudev/sui-advanced-banner": "*", + "@wpmudev/sui-builder": "*", + "@wpmudev/sui-editor-toolbar": "*", + "@wpmudev/sui-pagination": "*", + "@wpmudev/sui-search": "*", + "@wpmudev/sui-basic-box": "*", + "@wpmudev/sui-setting-block": "*" } } diff --git a/packages/common/advanced/src/index.ts b/packages/common/advanced/src/index.ts index 0641b9916..90e758820 100644 --- a/packages/common/advanced/src/index.ts +++ b/packages/common/advanced/src/index.ts @@ -1,3 +1,57 @@ -// Import compound modules -export { Dropdown } from "@wpmudev/sui-dropdown" -export { Notification } from "@wpmudev/sui-notification" +import * as Accordion from "@wpmudev/sui-accordion" +import * as CodeEditor from "@wpmudev/sui-code-editor" +import * as CodeSnippet from "@wpmudev/sui-code-snippet" +import * as ColorPicker from "@wpmudev/sui-color-picker" +import * as DatePicker from "@wpmudev/sui-date-picker" +import * as Dropdown from "@wpmudev/sui-dropdown" +import * as EmptyState from "@wpmudev/sui-empty-state" +import * as FieldPassword from "@wpmudev/sui-field-password" +import * as Modal from "@wpmudev/sui-modal" +import * as Notification from "@wpmudev/sui-notification" +import * as ProgressBar from "@wpmudev/sui-progress-bar" +import * as Select from "@wpmudev/sui-select" +import * as Sidebar from "@wpmudev/sui-sidebar" +import * as SummaryBox from "@wpmudev/sui-summary-box" +import * as Tabs from "@wpmudev/sui-tabs" +import * as TreeView from "@wpmudev/sui-tree-view" +import * as Uploader from "@wpmudev/sui-uploader" +import * as FieldList from "@wpmudev/sui-field-list" +import * as Recipient from "@wpmudev/sui-recipient" +import * as RichTextEditor from "@wpmudev/sui-rich-text-editor" +import * as AdvancedBanner from "@wpmudev/sui-advanced-banner" +import * as Builder from "@wpmudev/sui-builder" +import * as EditorToolbar from "@wpmudev/sui-editor-toolbar" +import * as Pagination from "@wpmudev/sui-pagination" +import * as Search from "@wpmudev/sui-search" +import * as BasicBox from "@wpmudev/sui-basic-box" +import * as SettingBlock from "@wpmudev/sui-setting-block" + +export { + Accordion, + CodeEditor, + CodeSnippet, + ColorPicker, + DatePicker, + Dropdown, + EmptyState, + FieldPassword, + Modal, + Notification, + ProgressBar, + Select, + Sidebar, + SummaryBox, + Tabs, + TreeView, + Uploader, + FieldList, + Recipient, + RichTextEditor, + AdvancedBanner, + Builder, + EditorToolbar, + Pagination, + Search, + BasicBox, + SettingBlock, +} diff --git a/packages/common/collections/CHANGELOG.md b/packages/common/collections/CHANGELOG.md index 9f9929fc5..41150d467 100644 --- a/packages/common/collections/CHANGELOG.md +++ b/packages/common/collections/CHANGELOG.md @@ -1,6 +1,19 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-config-table@0.0.1 + - @wpmudev/sui-footer@0.0.1 + - @wpmudev/sui-setup-banner@0.0.1 + - @wpmudev/sui-upsell@0.0.1 + - @wpmudev/sui-upsell-notice@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-21) diff --git a/packages/common/collections/README.md b/packages/common/collections/README.md index e664c10d9..6eae70cc1 100644 --- a/packages/common/collections/README.md +++ b/packages/common/collections/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/simple-elements` +# `@wpmudev/sui-collections` > TODO: description ## Usage ``` -const simpleElements = require('@wpmudev/simple-elements'); +const collections = require('@wpmudev/sui-collections'); // TODO: DEMONSTRATE API ``` diff --git a/packages/common/collections/__tests__/sui-collections.test.js b/packages/common/collections/__tests__/sui-collections.test.js index dcf383140..92aa26bcd 100644 --- a/packages/common/collections/__tests__/sui-collections.test.js +++ b/packages/common/collections/__tests__/sui-collections.test.js @@ -1,7 +1,3 @@ "use strict" -const simpleElements = require("../lib/simple-elements") - -describe("@wpmudev/simple-elements", () => { - it("needs tests") -}) +describe("@wpmudev/simple-elements", () => {}) diff --git a/packages/common/collections/package.json b/packages/common/collections/package.json index b6ef02932..14353e90e 100644 --- a/packages/common/collections/package.json +++ b/packages/common/collections/package.json @@ -1,14 +1,14 @@ { "name": "@wpmudev/sui-collections", - "version": "0.0.0", - "description": "WPMU DEV Shared UI React sub-package for simple elements", + "version": "0.0.1", + "description": "WPMU DEV Shared UI React sub-package for collections components", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ { - "name": "Leighton Sapir", - "email": "2328848+iamleigh@users.noreply.github.com", - "url": "https://iamleigh.com" + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -29,8 +29,8 @@ "directory": "packages/simple-elements" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,8 +41,10 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "dependencies": { - "@wpmudev/sui-avatar": "^0.0.0", - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-tag": "^0.0.0" + "@wpmudev/sui-footer": "*", + "@wpmudev/sui-config-table": "*", + "@wpmudev/sui-setup-banner": "*", + "@wpmudev/sui-upsell": "*", + "@wpmudev/sui-upsell-notice": "*" } } diff --git a/packages/common/collections/src/index.ts b/packages/common/collections/src/index.ts index 430c314a6..593a9c6c5 100644 --- a/packages/common/collections/src/index.ts +++ b/packages/common/collections/src/index.ts @@ -1,16 +1,7 @@ -// Import core modules -import { Button, LoadingButton, ToggleButton } from "@wpmudev/sui-button" -// import { IconButton, LoadingIconButton } from "@wpmudev/sui-icon-button" -import { Avatar } from "@wpmudev/sui-avatar" -import { Tag } from "@wpmudev/sui-tag" +import * as Footer from "@wpmudev/sui-footer" +import * as ConfigTable from "@wpmudev/sui-config-table" +import * as SetupBanner from "@wpmudev/sui-setup-banner" +import * as Upsell from "@wpmudev/sui-upsell" +import * as UpsellNotice from "@wpmudev/sui-upsell-notice" -// Publish core modules -export { - Button, - LoadingButton, - ToggleButton, - // IconButton, - // LoadingIconButton, - Avatar, - Tag, -} +export { Footer, ConfigTable, SetupBanner, Upsell, UpsellNotice } diff --git a/packages/common/core/CHANGELOG.md b/packages/common/core/CHANGELOG.md index c71ef70b3..71f4f562a 100644 --- a/packages/common/core/CHANGELOG.md +++ b/packages/common/core/CHANGELOG.md @@ -1,6 +1,31 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-avatar@0.0.1 + - @wpmudev/sui-box@0.0.1 + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-checkbox@0.0.1 + - @wpmudev/sui-grid@0.0.1 + - @wpmudev/sui-icon@0.0.1 + - @wpmudev/sui-input@0.0.1 + - @wpmudev/sui-link@0.0.1 + - @wpmudev/sui-radio@0.0.1 + - @wpmudev/sui-score@0.0.1 + - @wpmudev/sui-segmented-control@0.0.1 + - @wpmudev/sui-selector@0.0.1 + - @wpmudev/sui-spinner@0.0.1 + - @wpmudev/sui-tag@0.0.1 + - @wpmudev/sui-textarea@1.0.6 + - @wpmudev/sui-toggle@0.0.1 + - @wpmudev/sui-tooltip@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/common/core/README.md b/packages/common/core/README.md index 8ea461c16..e6ef5e628 100644 --- a/packages/common/core/README.md +++ b/packages/common/core/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/core-elements` +# `@wpmudev/sui-core` > TODO: description ## Usage ``` -const coreElements = require('@wpmudev/core-elements'); +const core = require('@wpmudev/sui-core'); // TODO: DEMONSTRATE API ``` diff --git a/packages/common/core/__tests__/sui-core.test.js b/packages/common/core/__tests__/sui-core.test.js index 79656589d..2871035d9 100644 --- a/packages/common/core/__tests__/sui-core.test.js +++ b/packages/common/core/__tests__/sui-core.test.js @@ -1,7 +1,3 @@ "use strict" -const coreElements = require("../lib/core-elements") - -describe("@wpmudev/core-elements", () => { - it("needs tests") -}) +describe("@wpmudev/core-elements", () => {}) diff --git a/packages/common/core/package.json b/packages/common/core/package.json index a8cbf6c82..5a7b4266d 100644 --- a/packages/common/core/package.json +++ b/packages/common/core/package.json @@ -1,14 +1,14 @@ { "name": "@wpmudev/sui-core", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React sub-package for core elements", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ { - "name": "Leighton Sapir", - "email": "2328848+iamleigh@users.noreply.github.com", - "url": "https://iamleigh.com" + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -29,8 +29,8 @@ "directory": "packages/core-elements" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,6 +41,22 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "dependencies": { - "@wpmudev/sui-grid": "^0.0.0" + "@wpmudev/sui-avatar": "*", + "@wpmudev/sui-box": "*", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-checkbox": "*", + "@wpmudev/sui-grid": "*", + "@wpmudev/sui-input": "*", + "@wpmudev/sui-link": "*", + "@wpmudev/sui-icon": "*", + "@wpmudev/sui-radio": "*", + "@wpmudev/sui-score": "*", + "@wpmudev/sui-segmented-control": "*", + "@wpmudev/sui-selector": "*", + "@wpmudev/sui-spinner": "*", + "@wpmudev/sui-tag": "*", + "@wpmudev/sui-textarea": "*", + "@wpmudev/sui-toggle": "*", + "@wpmudev/sui-tooltip": "*" } } diff --git a/packages/common/core/src/index.ts b/packages/common/core/src/index.ts index 910bec654..264d96e41 100644 --- a/packages/common/core/src/index.ts +++ b/packages/common/core/src/index.ts @@ -1 +1,37 @@ -export { Row, Col } from "@wpmudev/sui-grid" +import * as Checkbox from "@wpmudev/sui-avatar" +import * as Box from "@wpmudev/sui-box" +import * as Button from "@wpmudev/sui-button" +import * as FormField from "@wpmudev/sui-checkbox" +import * as Grid from "@wpmudev/sui-grid" +import * as Input from "@wpmudev/sui-input" +import * as Link from "@wpmudev/sui-link" +import * as Icon from "@wpmudev/sui-icon" +import * as Radio from "@wpmudev/sui-radio" +import * as Score from "@wpmudev/sui-score" +import * as SegmentedControl from "@wpmudev/sui-segmented-control" +import * as Selector from "@wpmudev/sui-selector" +import * as Spinner from "@wpmudev/sui-spinner" +import * as Tag from "@wpmudev/sui-tag" +import * as Textarea from "@wpmudev/sui-textarea" +import * as Toggle from "@wpmudev/sui-toggle" +import * as Tooltip from "@wpmudev/sui-tooltip" + +export { + Checkbox, + Box, + Button, + FormField, + Grid, + Input, + Link, + Toggle, + Icon, + Radio, + Score, + SegmentedControl, + Selector, + Spinner, + Tag, + Textarea, + Tooltip, +} diff --git a/packages/common/forms/CHANGELOG.md b/packages/common/forms/CHANGELOG.md index 9f9929fc5..643fd9f3a 100644 --- a/packages/common/forms/CHANGELOG.md +++ b/packages/common/forms/CHANGELOG.md @@ -1,6 +1,21 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-checkbox@0.0.1 + - @wpmudev/sui-form-field@0.0.1 + - @wpmudev/sui-input@0.0.1 + - @wpmudev/sui-radio@0.0.1 + - @wpmudev/sui-textarea@1.0.6 + - @wpmudev/sui-toggle@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-21) diff --git a/packages/common/forms/README.md b/packages/common/forms/README.md index e664c10d9..cc3269ae3 100644 --- a/packages/common/forms/README.md +++ b/packages/common/forms/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/simple-elements` +# `@wpmudev/sui-form` > TODO: description ## Usage ``` -const simpleElements = require('@wpmudev/simple-elements'); +const simpleElements = require('@wpmudev/sui-form'); // TODO: DEMONSTRATE API ``` diff --git a/packages/common/forms/__tests__/sui-forms.test.js b/packages/common/forms/__tests__/sui-forms.test.js index 44c4f5e52..dc46c24dd 100644 --- a/packages/common/forms/__tests__/sui-forms.test.js +++ b/packages/common/forms/__tests__/sui-forms.test.js @@ -1,7 +1,3 @@ "use strict" -const simpleElements = require("../lib/simple-elements") - -describe("@wpmudev/sui-simple-elements", () => { - it("needs tests") -}) +describe("@wpmudev/sui-simple-elements", () => {}) diff --git a/packages/common/forms/package.json b/packages/common/forms/package.json index 57550cab7..d07676605 100644 --- a/packages/common/forms/package.json +++ b/packages/common/forms/package.json @@ -1,14 +1,14 @@ { "name": "@wpmudev/sui-forms", - "version": "0.0.0", - "description": "WPMU DEV Shared UI React sub-package for simple elements", + "version": "0.0.1", + "description": "WPMU DEV Shared UI React sub-package for form elements", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ { - "name": "Leighton Sapir", - "email": "2328848+iamleigh@users.noreply.github.com", - "url": "https://iamleigh.com" + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -29,8 +29,8 @@ "directory": "packages/simple-elements" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,8 +41,13 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "dependencies": { - "@wpmudev/sui-avatar": "^0.0.0", - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-tag": "^0.0.0" - } + "@wpmudev/sui-checkbox": "*", + "@wpmudev/sui-radio": "*", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-form-field": "*", + "@wpmudev/sui-input": "*", + "@wpmudev/sui-textarea": "*", + "@wpmudev/sui-toggle": "*" + }, + "clean-package": "../../../postpack.config.json" } diff --git a/packages/common/forms/src/index.ts b/packages/common/forms/src/index.ts index 430c314a6..98b62e7d5 100644 --- a/packages/common/forms/src/index.ts +++ b/packages/common/forms/src/index.ts @@ -1,16 +1,9 @@ -// Import core modules -import { Button, LoadingButton, ToggleButton } from "@wpmudev/sui-button" -// import { IconButton, LoadingIconButton } from "@wpmudev/sui-icon-button" -import { Avatar } from "@wpmudev/sui-avatar" -import { Tag } from "@wpmudev/sui-tag" +import * as Checkbox from "@wpmudev/sui-checkbox" +import * as Radio from "@wpmudev/sui-radio" +import * as Button from "@wpmudev/sui-button" +import * as FormField from "@wpmudev/sui-form-field" +import * as Input from "@wpmudev/sui-input" +import * as Textarea from "@wpmudev/sui-textarea" +import * as Toggle from "@wpmudev/sui-toggle" -// Publish core modules -export { - Button, - LoadingButton, - ToggleButton, - // IconButton, - // LoadingIconButton, - Avatar, - Tag, -} +export { Checkbox, Radio, Button, FormField, Input, Textarea, Toggle } diff --git a/packages/common/modules/CHANGELOG.md b/packages/common/modules/CHANGELOG.md index 9f9929fc5..900d28da5 100644 --- a/packages/common/modules/CHANGELOG.md +++ b/packages/common/modules/CHANGELOG.md @@ -1,6 +1,18 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-dashboard-widget@0.0.1 + - @wpmudev/sui-integration@0.0.1 + - @wpmudev/sui-navigation@0.0.1 + - @wpmudev/sui-table@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-21) diff --git a/packages/common/modules/README.md b/packages/common/modules/README.md index e664c10d9..b3a921a55 100644 --- a/packages/common/modules/README.md +++ b/packages/common/modules/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/simple-elements` +# `@wpmudev/sui-modules` > TODO: description ## Usage ``` -const simpleElements = require('@wpmudev/simple-elements'); +const modules = require('@wpmudev/sui-modules'); // TODO: DEMONSTRATE API ``` diff --git a/packages/common/modules/__tests__/sui-modules.test.js b/packages/common/modules/__tests__/sui-modules.test.js index dcf383140..92aa26bcd 100644 --- a/packages/common/modules/__tests__/sui-modules.test.js +++ b/packages/common/modules/__tests__/sui-modules.test.js @@ -1,7 +1,3 @@ "use strict" -const simpleElements = require("../lib/simple-elements") - -describe("@wpmudev/simple-elements", () => { - it("needs tests") -}) +describe("@wpmudev/simple-elements", () => {}) diff --git a/packages/common/modules/package.json b/packages/common/modules/package.json index 43d18fc34..144bd13af 100644 --- a/packages/common/modules/package.json +++ b/packages/common/modules/package.json @@ -1,14 +1,14 @@ { "name": "@wpmudev/sui-modules", - "version": "0.0.0", - "description": "WPMU DEV Shared UI React sub-package for simple elements", + "version": "0.0.1", + "description": "WPMU DEV Shared UI React sub-package for modules", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ { - "name": "Leighton Sapir", - "email": "2328848+iamleigh@users.noreply.github.com", - "url": "https://iamleigh.com" + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -29,8 +29,8 @@ "directory": "packages/simple-elements" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,8 +41,10 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "dependencies": { - "@wpmudev/sui-avatar": "^0.0.0", - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-tag": "^0.0.0" - } + "@wpmudev/sui-table": "*", + "@wpmudev/sui-dashboard-widget": "*", + "@wpmudev/sui-navigation": "*", + "@wpmudev/sui-integration": "*" + }, + "clean-package": "../../../postpack.config.json" } diff --git a/packages/common/modules/src/index.ts b/packages/common/modules/src/index.ts index f23557c43..057423d18 100644 --- a/packages/common/modules/src/index.ts +++ b/packages/common/modules/src/index.ts @@ -1,16 +1,6 @@ -// Import core modules -import { Button, LoadingButton, ToggleButton } from "@wpmudev/sui-button" -// import { IconButton, LoadingIconButton } from "@wpmudev/sui-sui-icon-button" -import { Avatar } from "@wpmudev/sui-avatar" -import { Tag } from "@wpmudev/sui-tag" +import * as Table from "@wpmudev/sui-table" +import * as DashboardWidget from "@wpmudev/sui-dashboard-widget" +import * as Navigation from "@wpmudev/sui-navigation" +import * as Integration from "@wpmudev/sui-integration" -// Publish core modules -export { - Button, - LoadingButton, - ToggleButton, - // IconButton, - // LoadingIconButton, - Avatar, - Tag, -} +export { Table, DashboardWidget, Navigation, Integration } diff --git a/packages/components/accordion/CHANGELOG.md b/packages/components/accordion/CHANGELOG.md index 545c02efb..a138cea53 100644 --- a/packages/components/accordion/CHANGELOG.md +++ b/packages/components/accordion/CHANGELOG.md @@ -1,11 +1,24 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-icons@0.0.1 + - @wpmudev/sui-checkbox@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features + - feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 + - Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/accordion/README.md b/packages/components/accordion/README.md index 0662d3154..0421518ff 100644 --- a/packages/components/accordion/README.md +++ b/packages/components/accordion/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-score` +# `@wpmudev/sui-accordion` > TODO: description ## Usage ``` -const reactButton = require('@wpmudev/sui-score'); +const reactButton = require('@wpmudev/sui-accordion'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/accordion/package.json b/packages/components/accordion/package.json index 1054e1ff2..6a3ef433a 100644 --- a/packages/components/accordion/package.json +++ b/packages/components/accordion/package.json @@ -1,10 +1,15 @@ { "name": "@wpmudev/sui-accordion", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Score Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ + { + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" + }, { "name": "Leighton Sapir", "email": "2328848+iamleigh@users.noreply.github.com", @@ -14,11 +19,6 @@ "name": "Pawan Kumar", "email": "40248406+creador-dev@users.noreply.github.com", "url": "https://creador.dev/" - }, - { - "name": "Govind Kumar", - "email": "gkprmr@gmail.com", - "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -53,8 +53,10 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" + "dependencies": { + "react": "^18.2.0", + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-icons": "*", + "@wpmudev/sui-checkbox": "*" } } diff --git a/packages/components/advanced-banner/CHANGELOG.md b/packages/components/advanced-banner/CHANGELOG.md index 293c5681a..22d51acf2 100644 --- a/packages/components/advanced-banner/CHANGELOG.md +++ b/packages/components/advanced-banner/CHANGELOG.md @@ -1,2 +1,10 @@ # Change Log +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-utils@0.0.1 diff --git a/packages/components/advanced-banner/package.json b/packages/components/advanced-banner/package.json index f705d0883..b160ef070 100644 --- a/packages/components/advanced-banner/package.json +++ b/packages/components/advanced-banner/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-advanced-banner", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI Advanced Banner Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -33,8 +33,8 @@ "url": "git+https://github.com/wpmudev/sui-react.git" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -45,11 +45,12 @@ }, "homepage": "https://github.com/wpmudev/sui-docs#readme", "peerDependencies": { - "react": ">=18" + "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-button": "*", "react": "^18.2.0" } } diff --git a/packages/components/alert-banner/CHANGELOG.md b/packages/components/alert-banner/CHANGELOG.md index c71ef70b3..6adb8f75d 100644 --- a/packages/components/alert-banner/CHANGELOG.md +++ b/packages/components/alert-banner/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/alert-banner/README.md b/packages/components/alert-banner/README.md index 384cc6e2a..fdeb2fcf9 100644 --- a/packages/components/alert-banner/README.md +++ b/packages/components/alert-banner/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-notification` +# `@wpmudev/sui-alert-banner` > TODO: description ## Usage ``` -const reactNotification = require('@wpmudev/sui-notification'); +const alertNotification = require('@wpmudev/sui-alert-banner'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/alert-banner/package.json b/packages/components/alert-banner/package.json index 010e44266..832d2f492 100644 --- a/packages/components/alert-banner/package.json +++ b/packages/components/alert-banner/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-alert-banner", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Alert Banner Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -29,8 +29,8 @@ "directory": "packages/react-notification" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -41,14 +41,12 @@ }, "homepage": "https://github.com/wpmudev/sui-react#readme", "peerDependencies": { - "react": ">=18" + "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0" + "@wpmudev/sui-button": "*", + "@wpmudev/sui-utils": "*", + "react": "^18.2.0" } } diff --git a/packages/components/avatar/CHANGELOG.md b/packages/components/avatar/CHANGELOG.md index c71ef70b3..eaca1e528 100644 --- a/packages/components/avatar/CHANGELOG.md +++ b/packages/components/avatar/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/avatar/package.json b/packages/components/avatar/package.json index b31122719..acbc9ad4e 100644 --- a/packages/components/avatar/package.json +++ b/packages/components/avatar/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-avatar", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Button Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -53,8 +53,8 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-utils": "*", "react": "^18.2.0" } } diff --git a/packages/components/basic-box/CHANGELOG.md b/packages/components/basic-box/CHANGELOG.md index 293c5681a..342014a21 100644 --- a/packages/components/basic-box/CHANGELOG.md +++ b/packages/components/basic-box/CHANGELOG.md @@ -1,2 +1,10 @@ # Change Log +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-setting-block@0.0.1 + - @wpmudev/sui-utils@0.0.1 diff --git a/packages/components/basic-box/package.json b/packages/components/basic-box/package.json index 51072da9d..6fc9ef5a6 100644 --- a/packages/components/basic-box/package.json +++ b/packages/components/basic-box/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-basic-box", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI Basic Box Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -48,11 +48,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-setting-block": "^0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-setting-block": "*" } } diff --git a/packages/components/box/CHANGELOG.md b/packages/components/box/CHANGELOG.md index c71ef70b3..314073dee 100644 --- a/packages/components/box/CHANGELOG.md +++ b/packages/components/box/CHANGELOG.md @@ -1,6 +1,17 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-grid@0.0.1 + - @wpmudev/sui-notification@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/box/package.json b/packages/components/box/package.json index 709600935..9da223395 100644 --- a/packages/components/box/package.json +++ b/packages/components/box/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-box", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Box Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -54,10 +54,10 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-grid": "^0.0.0", - "@wpmudev/sui-notification": "^0.0.0", - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-grid": "*", + "@wpmudev/sui-notification": "*", + "@wpmudev/sui-utils": "*", "react": "^18.2.0" } } diff --git a/packages/components/builder/CHANGELOG.md b/packages/components/builder/CHANGELOG.md new file mode 100644 index 000000000..ca24876a3 --- /dev/null +++ b/packages/components/builder/CHANGELOG.md @@ -0,0 +1,14 @@ +# @wpmudev/sui-builder + +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-icons@0.0.1 + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-grid@0.0.1 + - @wpmudev/sui-icon@0.0.1 + - @wpmudev/sui-hooks@0.0.1 + - @wpmudev/sui-utils@0.0.1 diff --git a/packages/components/builder/README.md b/packages/components/builder/README.md index 8b46646b6..65a1e13bf 100644 --- a/packages/components/builder/README.md +++ b/packages/components/builder/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-footer` +# `@wpmudev/sui-builder` > TODO: description ## Usage ``` -const reactFooter = require('@wpmudev/sui-footer'); +const builder = require('@wpmudev/sui-builder'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/builder/package.json b/packages/components/builder/package.json index 2f0681408..884c8879a 100644 --- a/packages/components/builder/package.json +++ b/packages/components/builder/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-builder", - "version": "0.0.0", + "version": "0.0.1", "description": "Shared builder UI/UX", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -49,11 +49,17 @@ }, "clean-package": "../../../postpack.config.json", "devDependencies": { - "@types/sortablejs": "^1.15.2", - "react": "^18.2.0" + "@types/sortablejs": "^1.15.2" }, "dependencies": { + "react": "^18.2.0", "react-sortablejs": "^6.1.4", - "sortablejs": "^1.15.0" + "sortablejs": "^1.15.0", + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-hooks": "*", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-grid": "*", + "@wpmudev/sui-icons": "*", + "@wpmudev/sui-icon": "*" } } diff --git a/packages/components/builder/src/builder-button.tsx b/packages/components/builder/src/builder-button.tsx index 8b4a50043..77d1bb69a 100644 --- a/packages/components/builder/src/builder-button.tsx +++ b/packages/components/builder/src/builder-button.tsx @@ -2,7 +2,6 @@ import React, { FC, useCallback } from "react" import { generateCN, isEmpty } from "@wpmudev/sui-utils" import { useInteraction } from "@wpmudev/sui-hooks" -import * as Icons from "@wpmudev/sui-icons" import { Button } from "@wpmudev/sui-button" // Import required element(s) diff --git a/packages/components/button/CHANGELOG.md b/packages/components/button/CHANGELOG.md index c71ef70b3..488406504 100644 --- a/packages/components/button/CHANGELOG.md +++ b/packages/components/button/CHANGELOG.md @@ -1,6 +1,17 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-hooks@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/button/package.json b/packages/components/button/package.json index ff2778427..9d2b3f474 100644 --- a/packages/components/button/package.json +++ b/packages/components/button/package.json @@ -1,10 +1,15 @@ { "name": "@wpmudev/sui-button", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Button Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ + { + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" + }, { "name": "Leighton Sapir", "email": "2328848+iamleigh@users.noreply.github.com", @@ -53,9 +58,10 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "@wpmudev/sui-hooks": "^0.0.0", + "dependencies": { + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-hooks": "*", + "@wpmudev/sui-button": "*", "react": "^18.2.0" } } diff --git a/packages/components/checkbox/CHANGELOG.md b/packages/components/checkbox/CHANGELOG.md index f844b2436..7627597a6 100644 --- a/packages/components/checkbox/CHANGELOG.md +++ b/packages/components/checkbox/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) #### ✨ New Features + - feat: Initial release ([@iamleigh](https://github.com/iamleigh)) #### Committers: 1 + - Leighton Sapir ([@iamleigh](https://github.com/iamleigh)) diff --git a/packages/components/checkbox/package.json b/packages/components/checkbox/package.json index b73b8979e..9e7333fa5 100644 --- a/packages/components/checkbox/package.json +++ b/packages/components/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-checkbox", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Checkbox Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", diff --git a/packages/components/code-editor/CHANGELOG.md b/packages/components/code-editor/CHANGELOG.md index 43592ae71..52c041be0 100644 --- a/packages/components/code-editor/CHANGELOG.md +++ b/packages/components/code-editor/CHANGELOG.md @@ -1,13 +1,23 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-tooltip@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features -- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) +- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 -- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) +- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/code-editor/README.md b/packages/components/code-editor/README.md index cb9e34dfa..e766afbb3 100644 --- a/packages/components/code-editor/README.md +++ b/packages/components/code-editor/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-code-snippet` +# `@wpmudev/sui-code-editor` > TODO: description ## Usage ``` -const reactCodeSnippet = require('@wpmudev/sui-code-snippet'); +const editor = require('@wpmudev/sui-code-editor'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/code-editor/package.json b/packages/components/code-editor/package.json index 2b7aae32a..39da51313 100644 --- a/packages/components/code-editor/package.json +++ b/packages/components/code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-code-editor", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Code Editor Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -38,8 +38,8 @@ "url": "git+https://github.com/wpmudev/sui-react.git" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -50,16 +50,14 @@ }, "homepage": "https://github.com/wpmudev/sui-docs#readme", "peerDependencies": { - "react": ">=18" + "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-tooltip": "^0.0.0", - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-tooltip": "*", + "@wpmudev/sui-utils": "*", + "react-prism-editor": "^1.1.2", "react": "^18.2.0", "prismjs": "^1.29.0" - }, - "dependencies": { - "react-prism-editor": "^1.1.2" } } diff --git a/packages/components/code-editor/src/code-editor.tsx b/packages/components/code-editor/src/code-editor.tsx index 10d0a1db4..b6ddd4d14 100644 --- a/packages/components/code-editor/src/code-editor.tsx +++ b/packages/components/code-editor/src/code-editor.tsx @@ -4,9 +4,9 @@ import React, { useState, useEffect, useCallback } from "react" import ReactPrismEditor from "react-prism-editor" import { generateCN } from "@wpmudev/sui-utils" +import { Tooltip } from "@wpmudev/sui-tooltip" import { CodeEditorProps } from "./code-editor.types" -import { Tooltip } from "@wpmudev/sui-tooltip" /** * CodeEditor Component diff --git a/packages/components/code-snippet/CHANGELOG.md b/packages/components/code-snippet/CHANGELOG.md index 43592ae71..52c041be0 100644 --- a/packages/components/code-snippet/CHANGELOG.md +++ b/packages/components/code-snippet/CHANGELOG.md @@ -1,13 +1,23 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-tooltip@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features -- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) +- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 -- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) +- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/code-snippet/package.json b/packages/components/code-snippet/package.json index baed507bb..ba17fa94f 100644 --- a/packages/components/code-snippet/package.json +++ b/packages/components/code-snippet/package.json @@ -1,10 +1,15 @@ { "name": "@wpmudev/sui-code-snippet", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Code Snippet Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ + { + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" + }, { "name": "Leighton Sapir", "email": "2328848+iamleigh@users.noreply.github.com", @@ -14,15 +19,10 @@ "name": "Pawan Kumar", "email": "40248406+creador-dev@users.noreply.github.com", "url": "https://creador.dev/" - }, - { - "name": "Govind Kumar", - "email": "gkprmr@gmail.com", - "url": "https://govind.js.org/" } ], "license": "GPL-2.0", - "main": "src/react-code-snippet.js", + "main": "src/index.ts", "directories": { "src": "src", "test": "__tests__" @@ -38,8 +38,8 @@ "url": "git+https://github.com/wpmudev/sui-react.git" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -50,16 +50,14 @@ }, "homepage": "https://github.com/wpmudev/sui-docs#readme", "peerDependencies": { - "react": ">=18" + "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-tooltip": "^0.0.0", - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-tooltip": "*", + "@wpmudev/sui-utils": "*", + "@types/prismjs": "1.26.1", "react": "^18.2.0", "prismjs": "^1.29.0" - }, - "dependencies": { - "@types/prismjs": "1.26.1" } } diff --git a/packages/components/color-picker/CHANGELOG.md b/packages/components/color-picker/CHANGELOG.md index 43592ae71..b29ddf6c1 100644 --- a/packages/components/color-picker/CHANGELOG.md +++ b/packages/components/color-picker/CHANGELOG.md @@ -1,13 +1,24 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-input@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features -- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) +- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 -- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) +- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/color-picker/README.md b/packages/components/color-picker/README.md index cb9e34dfa..6f9be4b8f 100644 --- a/packages/components/color-picker/README.md +++ b/packages/components/color-picker/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-code-snippet` +# `@wpmudev/sui-color-picker` > TODO: description ## Usage ``` -const reactCodeSnippet = require('@wpmudev/sui-code-snippet'); +const colorPicker = require('@wpmudev/sui-color-picker'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/color-picker/package.json b/packages/components/color-picker/package.json index 3d485dde3..291d30e04 100644 --- a/packages/components/color-picker/package.json +++ b/packages/components/color-picker/package.json @@ -1,10 +1,15 @@ { "name": "@wpmudev/sui-color-picker", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Code Editor Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", "contributors": [ + { + "name": "Govind Kumar", + "email": "gkprmr@gmail.com", + "url": "https://govind.js.org/" + }, { "name": "Leighton Sapir", "email": "2328848+iamleigh@users.noreply.github.com", @@ -14,11 +19,6 @@ "name": "Pawan Kumar", "email": "40248406+creador-dev@users.noreply.github.com", "url": "https://creador.dev/" - }, - { - "name": "Govind Kumar", - "email": "gkprmr@gmail.com", - "url": "https://govind.js.org/" } ], "license": "GPL-2.0", @@ -38,8 +38,8 @@ "url": "git+https://github.com/wpmudev/sui-react.git" }, "scripts": { - "clean" : "rm -rf dist && rm -rf lib", - "build" : "npx tsup", + "clean": "rm -rf dist && rm -rf lib", + "build": "npx tsup", "build:fast": "npx tsup src", "dev": "npm build:fast -- --watch", "prepack": "clean-package", @@ -50,11 +50,13 @@ }, "homepage": "https://github.com/wpmudev/sui-docs#readme", "peerDependencies": { - "react": ">=18" + "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-button": "*", + "@wpmudev/sui-input": "*", + "@wpmudev/sui-utils": "*", "react": "^18.2.0", "react-color": "^2.19.3", "tinycolor2": "^1.6.0", diff --git a/packages/components/config-table/CHANGELOG.md b/packages/components/config-table/CHANGELOG.md index e69de29bb..c8620f01f 100644 --- a/packages/components/config-table/CHANGELOG.md +++ b/packages/components/config-table/CHANGELOG.md @@ -0,0 +1,13 @@ +# @wpmudev/sui-config-table + +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-box@0.0.1 + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-table@0.0.1 + - @wpmudev/sui-tooltip@0.0.1 + - @wpmudev/sui-utils@0.0.1 diff --git a/packages/components/config-table/README.md b/packages/components/config-table/README.md index 019a2718b..34a24bcf1 100644 --- a/packages/components/config-table/README.md +++ b/packages/components/config-table/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-notification` +# `@wpmudev/sui-config-table` > TODO: description ## Usage ``` -const reactNotification = require('@wpmudev/react-notification'); +const configTable = require('@wpmudev/sui-config-table'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/config-table/package.json b/packages/components/config-table/package.json index 8e6bf4342..4f35631ff 100644 --- a/packages/components/config-table/package.json +++ b/packages/components/config-table/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-config-table", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Config Table shared Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -49,12 +49,12 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-table": "0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-table": "*", + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-tooltip": "*", + "@wpmudev/sui-box": "*" } } diff --git a/packages/components/config-table/src/config-table.tsx b/packages/components/config-table/src/config-table.tsx index 6ff7fab3d..e978f1a2b 100644 --- a/packages/components/config-table/src/config-table.tsx +++ b/packages/components/config-table/src/config-table.tsx @@ -11,11 +11,7 @@ import { Button } from "@wpmudev/sui-button" import { generateCN, isEmpty } from "@wpmudev/sui-utils" import { Tooltip } from "@wpmudev/sui-tooltip" -import { - ConfigActionTypes, - ConfigId, - ConfigTableTypes, -} from "./config-table.types" +import { ConfigTableTypes } from "./config-table.types" import { ConfigTableDetails } from "./config-table-details" // Render options to be displayed in a table. @@ -116,7 +112,7 @@ const ConfigTable: React.FC = ({ appearance="tertiary" onClick={(e) => { e.preventDefault() - actionClick(config.id, "configure") + actionClick(config.id, "apply") }} > Apply diff --git a/packages/components/config-table/stories/config-table.mdx b/packages/components/config-table/stories/config-table.mdx index 04de09229..fc047f167 100644 --- a/packages/components/config-table/stories/config-table.mdx +++ b/packages/components/config-table/stories/config-table.mdx @@ -1,6 +1,24 @@ +import { Page } from "@wpmudev/storybook" import { Unstyled } from "@storybook/blocks" - - +import TabUsage from "./tabs/TabUsage.mdx" +import TabCode from "./tabs/TabCode.mdx" +import TabExamples from "./tabs/TabExamples.mdx" + + +
+ +
+
+ +
+
+ +
+
diff --git a/packages/components/config-table/stories/config-table.stories.tsx b/packages/components/config-table/stories/config-table.stories.tsx index 2e2f41044..d0344efaa 100644 --- a/packages/components/config-table/stories/config-table.stories.tsx +++ b/packages/components/config-table/stories/config-table.stories.tsx @@ -2,6 +2,7 @@ import React from "react" // Import required component(s) import { ConfigTable as SuiConfigTable } from "../src" +import { configs } from "./configs" // Import documentation main page // import docs from "./config-table.mdx" @@ -80,7 +81,7 @@ export const Configs = [ plugin: "1081721", }, ] - + // Build story export const ConfigTable = ({ ...props }) => { return ( diff --git a/packages/components/config-table/stories/configs.tsx b/packages/components/config-table/stories/configs.tsx new file mode 100644 index 000000000..fcc3b77c4 --- /dev/null +++ b/packages/components/config-table/stories/configs.tsx @@ -0,0 +1,63 @@ +export const configs = [ + { + id: 1, + name: "Default config", + description: "Recommended performance config for every site.", + config: { + configs: { + settings: { + advanced: { + query_string: false, + emoji: false, + cart_fragments: false, + lazy_load: { + enabled: false, + preload: false, + }, + }, + gravatar: { + enabled: true, + }, + page_cache: { + enabled: true, + detection: "auto", + integrations: { + varnish: false, + opcache: false, + }, + preload: false, + }, + performance: [], + rss: { + enabled: true, + duration: 3600, + }, + settings: { + accessible_colors: false, + remove_settings: false, + remove_data: false, + control: true, + }, + uptime: { + enabled: false, + }, + }, + }, + strings: { + advanced: [ + "Remove query strings from assets - Inactive\nRemove Emoji JS & CSS files - Inactive\nDisable WooCommerce cart fragments - Inactive\nComments lazy loading - Inactive\n", + ], + gravatar: ["Gravatar cache - Active\n"], + page_cache: [ + "Page cache - Active\nFile change detection - Auto\nPurge Varnish cache - Inactive\nPurge OpCache - Inactive\nCache preloading - Inactive\n", + ], + rss: ["RSS caching - Active\n"], + settings: [ + "High contrast mode - Inactive\nRemove settings on uninstall - Inactive\nRemove data on uninstall - Inactive\nCache control in admin bar - Active\n", + ], + uptime: ["Uptime - Inactive\n"], + }, + }, + plugin: "1081721", + }, +] diff --git a/packages/components/config-table/stories/images/example.svg b/packages/components/config-table/stories/images/example.svg new file mode 100644 index 000000000..f209d297e --- /dev/null +++ b/packages/components/config-table/stories/images/example.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/components/config-table/stories/images/states.svg b/packages/components/config-table/stories/images/states.svg new file mode 100644 index 000000000..227acdbef --- /dev/null +++ b/packages/components/config-table/stories/images/states.svg @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/components/config-table/stories/tabs/TabCode.mdx b/packages/components/config-table/stories/tabs/TabCode.mdx new file mode 100644 index 000000000..d1a038874 --- /dev/null +++ b/packages/components/config-table/stories/tabs/TabCode.mdx @@ -0,0 +1,42 @@ +import { Section, Row, Col, Table, List, Code, Tag } from "@wpmudev/storybook" + +
+

+ Install the ConfigTable package as an individual + component or follow the Overview page instructions to get the complete SUI + Components package. +

+
+ +
+ +
+

The list of configs, each item is an object with custom information, check the examples tab for details

+
+ +
+

A callback function to be invoked upon clicking an action, the parameters of this function are:

+ + id The config record id } /> + type The type of the config record, it could be one of two values apply & configure } /> + +
+ +
+

Custom CSS className(s) for further customization

+
+ +
diff --git a/packages/components/config-table/stories/tabs/TabExamples.mdx b/packages/components/config-table/stories/tabs/TabExamples.mdx new file mode 100644 index 000000000..64b16abf4 --- /dev/null +++ b/packages/components/config-table/stories/tabs/TabExamples.mdx @@ -0,0 +1,96 @@ +import { Section, Switcher, Preview, Snippet, Code } from "@wpmudev/storybook" +import { ConfigTable } from "../../src" +import { configs } from "../configs" +import dedent from "dedent" + +export const sampleCode = dedent` +import { ConfigTable } from "@wpmudev/sui-config-table" + +const configs = [ + { + id: 1, + name: "Default config", + description: "Recommended performance config for every site.", + config: { + configs: { + settings: { + advanced: { + query_string: false, + emoji: false, + cart_fragments: false, + lazy_load: { + enabled: false, + preload: false, + }, + }, + gravatar: { + enabled: true, + }, + page_cache: { + enabled: true, + detection: "auto", + integrations: { + varnish: false, + opcache: false, + }, + preload: false, + }, + performance: [], + rss: { + enabled: true, + duration: 3600, + }, + settings: { + accessible_colors: false, + remove_settings: false, + remove_data: false, + control: true, + }, + uptime: { + enabled: false, + }, + }, + }, + strings: { + advanced: [ + "Remove query strings from assets - Inactive Remove Emoji JS & CSS files - Inactive Disable WooCommerce cart fragments - Inactive Comments lazy loading - Inactive", + ], + gravatar: ["Gravatar cache - Active"], + page_cache: [ + "Page cache - Active File change detection - Auto Purge Varnish cache - Inactive Purge OpCache - Inactive Cache preloading - Inactive", + ], + rss: ["RSS caching - Active"], + settings: [ + "High contrast mode - Inactive Remove settings on uninstall - Inactive Remove data on uninstall - Inactive Cache control in admin bar - Active", + ], + uptime: ["Uptime - Inactive"], + }, + }, + plugin: "1081721", + }, + ] + + export const Example() = { + return ( + console.log(id, type)} + /> + ) +}` + +
+

+ Below is a general example of the config table which you can tweak to fit + your needs +

+ +
+ console.log(id, type)} + /> +
+
+ {sampleCode} +
diff --git a/packages/components/config-table/stories/tabs/TabUsage.mdx b/packages/components/config-table/stories/tabs/TabUsage.mdx new file mode 100644 index 000000000..61f9831a8 --- /dev/null +++ b/packages/components/config-table/stories/tabs/TabUsage.mdx @@ -0,0 +1,33 @@ +import { Section, Row, Col } from "@wpmudev/storybook" + +import Example from "../images/example.svg" +import States from "../images/states.svg" + +
+ Table Config Example +

1. Accordion header

+

Accordion header contains the section title and chevron icon that expands and collapses accordion content.

+ +

1. Config title

+

Config title will help users to recognize the config.

+ +

2. Date created

+

There will be the date that the config was created.

+ +

3. Last applied on

+

The last applied on date allows users to easily determine if the config has been applied or not. If the config has been applied, a date will be displayed when the config was last applied. If not, there will be displayed “Never“.

+ +

4. Apply

+

The config can be applied at any time. If the config was already applied, it will also be utilized to update it.

+ +

5. Configure

+

Users can configure the config with the helpof the action button.

+ +

6. Open and collapse config

+

Users can view the full details of the config.

+ +
+ +
+ Config Table States +
diff --git a/packages/components/dashboard-widget/CHANGELOG.md b/packages/components/dashboard-widget/CHANGELOG.md index c71ef70b3..e6af4c51e 100644 --- a/packages/components/dashboard-widget/CHANGELOG.md +++ b/packages/components/dashboard-widget/CHANGELOG.md @@ -1,6 +1,17 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-table@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/dashboard-widget/README.md b/packages/components/dashboard-widget/README.md index 384cc6e2a..046472b93 100644 --- a/packages/components/dashboard-widget/README.md +++ b/packages/components/dashboard-widget/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-notification` +# `@wpmudev/sui-dashboard-widget` > TODO: description ## Usage ``` -const reactNotification = require('@wpmudev/sui-notification'); +const widget = require('@wpmudev/sui-dashboard-widget'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/dashboard-widget/package.json b/packages/components/dashboard-widget/package.json index 53055db12..982355cd7 100644 --- a/packages/components/dashboard-widget/package.json +++ b/packages/components/dashboard-widget/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-dashboard-widget", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Dashboard Widget Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -49,12 +49,10 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-table": "0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-table": "*", + "@wpmudev/sui-utils": "*" } } diff --git a/packages/components/date-picker/CHANGELOG.md b/packages/components/date-picker/CHANGELOG.md index 43592ae71..25c04a263 100644 --- a/packages/components/date-picker/CHANGELOG.md +++ b/packages/components/date-picker/CHANGELOG.md @@ -1,13 +1,26 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-input@0.0.1 + - @wpmudev/sui-tooltip@0.0.1 + - @wpmudev/sui-hooks@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features -- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) +- feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 -- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) +- Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/date-picker/README.md b/packages/components/date-picker/README.md index cb9e34dfa..f3759d576 100644 --- a/packages/components/date-picker/README.md +++ b/packages/components/date-picker/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-code-snippet` +# `@wpmudev/sui-date-picker` > TODO: description ## Usage ``` -const reactCodeSnippet = require('@wpmudev/sui-code-snippet'); +const colorPicker = require('@wpmudev/sui-date-picker'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/date-picker/package.json b/packages/components/date-picker/package.json index be6cab274..75181528e 100644 --- a/packages/components/date-picker/package.json +++ b/packages/components/date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-date-picker", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Date Picker Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -48,12 +48,13 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-tooltip": "^0.0.0", - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "date-fns": "^2.30.0" + "date-fns": "^2.30.0", + "react": "^18.2.0", + "@wpmudev/sui-tooltip": "*", + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-hooks": "*", + "@wpmudev/sui-input": "*", + "@wpmudev/sui-button": "*" } } diff --git a/packages/components/dropdown/CHANGELOG.md b/packages/components/dropdown/CHANGELOG.md index c71ef70b3..6adb8f75d 100644 --- a/packages/components/dropdown/CHANGELOG.md +++ b/packages/components/dropdown/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/dropdown/package.json b/packages/components/dropdown/package.json index f039cb4aa..5f0293c63 100644 --- a/packages/components/dropdown/package.json +++ b/packages/components/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-dropdown", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Dropdown Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -54,11 +54,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0" + "@wpmudev/sui-utils": "*", + "@wpmudev/sui-button": "*", + "react": "^18.2.0" } } diff --git a/packages/components/editor-toolbar/CHANGELOG.md b/packages/components/editor-toolbar/CHANGELOG.md index 420e6f23d..22d51acf2 100644 --- a/packages/components/editor-toolbar/CHANGELOG.md +++ b/packages/components/editor-toolbar/CHANGELOG.md @@ -1 +1,10 @@ # Change Log + +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-utils@0.0.1 diff --git a/packages/components/editor-toolbar/README.md b/packages/components/editor-toolbar/README.md index 384cc6e2a..ef982f795 100644 --- a/packages/components/editor-toolbar/README.md +++ b/packages/components/editor-toolbar/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-notification` +# `@wpmudev/sui-editor-toolbar` > TODO: description ## Usage ``` -const reactNotification = require('@wpmudev/sui-notification'); +const editorToolbar = require('@wpmudev/sui-editor-toolbar'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/editor-toolbar/package.json b/packages/components/editor-toolbar/package.json index 9afd50579..6a06ececd 100644 --- a/packages/components/editor-toolbar/package.json +++ b/packages/components/editor-toolbar/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-editor-toolbar", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI Editor Toolbar Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -49,11 +49,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-utils": "*" } } diff --git a/packages/components/empty-state/CHANGELOG.md b/packages/components/empty-state/CHANGELOG.md index 545c02efb..3e84e01e9 100644 --- a/packages/components/empty-state/CHANGELOG.md +++ b/packages/components/empty-state/CHANGELOG.md @@ -1,11 +1,22 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (2023-03-20) #### ✨ New Features + - feat: Initial release ([@creador-dev](https://github.com/creador-dev)) #### Committers: 1 + - Pawan Kumar ([@creador-dev](https://github.com/creador-dev)) diff --git a/packages/components/empty-state/README.md b/packages/components/empty-state/README.md index 0662d3154..1798cb784 100644 --- a/packages/components/empty-state/README.md +++ b/packages/components/empty-state/README.md @@ -1,11 +1,11 @@ -# `@wpmudev/sui-score` +# `@wpmudev/sui-empty-state` > TODO: description ## Usage ``` -const reactButton = require('@wpmudev/sui-score'); +const reactButton = require('@wpmudev/sui-empty-state'); // TODO: DEMONSTRATE API ``` diff --git a/packages/components/empty-state/package.json b/packages/components/empty-state/package.json index 59e3d8b7f..426e8aa12 100644 --- a/packages/components/empty-state/package.json +++ b/packages/components/empty-state/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-empty-state", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI Empty State Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -48,8 +48,8 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", + "dependencies": { + "@wpmudev/sui-utils": "*", "react": "^18.2.0" } } diff --git a/packages/components/field-list/CHANGELOG.md b/packages/components/field-list/CHANGELOG.md index c71ef70b3..4fc03e861 100644 --- a/packages/components/field-list/CHANGELOG.md +++ b/packages/components/field-list/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-toggle@0.0.1 + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) diff --git a/packages/components/field-list/package.json b/packages/components/field-list/package.json index abe2a6979..7360281c3 100644 --- a/packages/components/field-list/package.json +++ b/packages/components/field-list/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-field-list", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Field List", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -54,11 +54,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-toggle": "^0.0.0", - "@wpmudev/sui-utils": "^0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-toggle": "*", + "@wpmudev/sui-utils": "*" } } diff --git a/packages/components/field-list/src/field-list.tsx b/packages/components/field-list/src/field-list.tsx index 5282f2ae1..34140ce0e 100644 --- a/packages/components/field-list/src/field-list.tsx +++ b/packages/components/field-list/src/field-list.tsx @@ -1,11 +1,4 @@ -import React, { - Children, - cloneElement, - HTMLAttributes, - ReactElement, - ReactNode, - useCallback, -} from "react" +import React, { Children, cloneElement, ReactElement, useCallback } from "react" // Import required components import { FieldListItemProps, FieldListProps } from "./field-list.types" diff --git a/packages/components/field-password/CHANGELOG.md b/packages/components/field-password/CHANGELOG.md index f844b2436..e92dfc736 100644 --- a/packages/components/field-password/CHANGELOG.md +++ b/packages/components/field-password/CHANGELOG.md @@ -1,11 +1,23 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-button@0.0.1 + - @wpmudev/sui-input@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## v1.0.0 (Unreleased) #### ✨ New Features + - feat: Initial release ([@iamleigh](https://github.com/iamleigh)) #### Committers: 1 + - Leighton Sapir ([@iamleigh](https://github.com/iamleigh)) diff --git a/packages/components/field-password/package.json b/packages/components/field-password/package.json index 102e1f292..b704d0f48 100644 --- a/packages/components/field-password/package.json +++ b/packages/components/field-password/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-field-password", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Password Field", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -53,12 +53,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "react": "^18.2.0" - }, "dependencies": { - "@wpmudev/sui-button": "^0.0.0", - "@wpmudev/sui-form-field": "^0.0.0", - "@wpmudev/sui-input": "^0.0.0" + "react": "^18.2.0", + "@wpmudev/sui-button": "*", + "@wpmudev/sui-input": "*" } } diff --git a/packages/components/field-password/src/field-password.tsx b/packages/components/field-password/src/field-password.tsx index 0a51bc43d..f5d7b3f4d 100644 --- a/packages/components/field-password/src/field-password.tsx +++ b/packages/components/field-password/src/field-password.tsx @@ -1,4 +1,5 @@ -import React, { forwardRef, useState } from "react" +import React, { useState } from "react" + import { Input, InputProps } from "@wpmudev/sui-input" import { Button, ButtonProps } from "@wpmudev/sui-button" diff --git a/packages/components/footer/CHANGELOG.md b/packages/components/footer/CHANGELOG.md new file mode 100644 index 000000000..aec93e21d --- /dev/null +++ b/packages/components/footer/CHANGELOG.md @@ -0,0 +1,9 @@ +# @wpmudev/sui-footer + +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-icons@0.0.1 diff --git a/packages/components/footer/package.json b/packages/components/footer/package.json index 3cff3b213..0d9f09fa6 100644 --- a/packages/components/footer/package.json +++ b/packages/components/footer/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-footer", - "version": "0.0.0", + "version": "0.0.1", "description": "Shared footer UI/UX", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -48,7 +48,8 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "react": "^18.2.0" + "dependencies": { + "react": "^18.2.0", + "@wpmudev/sui-icons": "*" } } diff --git a/packages/components/form-field/CHANGELOG.md b/packages/components/form-field/CHANGELOG.md index c623e44c6..3ec9174b1 100644 --- a/packages/components/form-field/CHANGELOG.md +++ b/packages/components/form-field/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log -All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines. +## 0.0.1 + +### Patch Changes + +- Initial release +- Updated dependencies + - @wpmudev/sui-utils@0.0.1 + +All notable changes to this project will be documented in this file. See +[Conventional Commits](https://conventionalcommits.org/) for commit guidelines. ## Unreleased (Unreleased) diff --git a/packages/components/form-field/package.json b/packages/components/form-field/package.json index bf3d0f820..d49c712e7 100644 --- a/packages/components/form-field/package.json +++ b/packages/components/form-field/package.json @@ -1,6 +1,6 @@ { "name": "@wpmudev/sui-form-field", - "version": "0.0.0", + "version": "0.0.1", "description": "WPMU DEV Shared UI React Form Field Component", "keywords": [], "author": "WPMU DEV (https://wpmudev.com)", @@ -53,11 +53,9 @@ "react": ">=18" }, "clean-package": "../../../postpack.config.json", - "devDependencies": { - "@wpmudev/sui-utils": "^0.0.0", - "react": "^18.2.0" - }, "dependencies": { - "classnames": "^2.3.2" + "classnames": "^2.3.2", + "react": "^18.2.0", + "@wpmudev/sui-utils": "*" } } diff --git a/packages/components/form-field/stories/ReactFormField.stories.js b/packages/components/form-field/stories/ReactFormField.stories.tsx similarity index 79% rename from packages/components/form-field/stories/ReactFormField.stories.js rename to packages/components/form-field/stories/ReactFormField.stories.tsx index 4f6d9fda8..714906ef1 100644 --- a/packages/components/form-field/stories/ReactFormField.stories.js +++ b/packages/components/form-field/stories/ReactFormField.stories.tsx @@ -5,7 +5,7 @@ import { Input } from "@wpmudev/sui-input" import { Textarea } from "@wpmudev/sui-textarea" // Import required component -import { FormField as SUIFormField } from "../src" +import { FormField as SUIFormField, FormFieldProps } from "../src" // Import documentation main page import docs from "./ReactFormField.mdx" @@ -23,10 +23,19 @@ export default { } // Build component playground -export const FormField = ({ example, type, ...args }) => { - const set = {} - - set.box = { +export const FormField = ({ + example, + type, + placeholder, + isError, + ...args +}: { + example: string + type: string + placeholder: string + isError: boolean +} & FormFieldProps) => { + const boxStyle = { padding: 20, borderRadius: 4, background: "#fff", @@ -35,12 +44,13 @@ export const FormField = ({ example, type, ...args }) => { return (
-
- +
+ {"input" === example && ( { {"textarea" === example && (