From 2eef6dce36b3c9ce25d31a0002ca57fa8a118078 Mon Sep 17 00:00:00 2001 From: Caden F Date: Tue, 10 Sep 2024 12:54:37 -0700 Subject: [PATCH 1/4] Update App.js --- testing/src/App.js | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/testing/src/App.js b/testing/src/App.js index 3784575..00d0f7e 100644 --- a/testing/src/App.js +++ b/testing/src/App.js @@ -1,23 +1,10 @@ -import logo from './logo.svg'; -import './App.css'; +import { UI } from "caden"; +import "caden/lib/styles/css/index.css"; function App() { return ( -
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
+
+ Submit
); } From 2ced5029c7b8814c5102e13579d18f583ab2c090 Mon Sep 17 00:00:00 2001 From: Caden F Date: Tue, 10 Sep 2024 13:02:40 -0700 Subject: [PATCH 2/4] Update Submit.js --- src/components/UI/Buttons/Submit.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/UI/Buttons/Submit.js b/src/components/UI/Buttons/Submit.js index b95bd2a..dd4c911 100644 --- a/src/components/UI/Buttons/Submit.js +++ b/src/components/UI/Buttons/Submit.js @@ -40,13 +40,31 @@ const getButtonStyles = (type) => { const Submit = ({ className = "submit-button", type = "button", + uniLabel, + useInput = false, children, ...props }) => { const style = getButtonStyles(type); - return ( - ); @@ -55,6 +73,8 @@ const Submit = ({ Submit.propTypes = { className: PropTypes.string, type: PropTypes.oneOf(["button", "submit", "reset"]), + uniLabel: PropTypes.string, + useInput: PropTypes.bool, children: PropTypes.node.isRequired, }; From eed8d3b1c936b33e8f06ac7a3cf6290b8aa1aa69 Mon Sep 17 00:00:00 2001 From: Caden F Date: Tue, 10 Sep 2024 13:05:18 -0700 Subject: [PATCH 3/4] Update index.css --- src/styles/css/index.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/styles/css/index.css b/src/styles/css/index.css index 3bdab08..d4773ef 100644 --- a/src/styles/css/index.css +++ b/src/styles/css/index.css @@ -1,6 +1,3 @@ -body { - background: red !important; -} .submit-button { background: var(--primary-background); color: var(--primary-color); From b50881281f71a052023269096a364fe728b8cce5 Mon Sep 17 00:00:00 2001 From: Caden F Date: Tue, 10 Sep 2024 13:06:03 -0700 Subject: [PATCH 4/4] Changed Versions --- package.json | 2 +- testing/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f422d42..b3a767c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "caden", - "version": "1.0.14", + "version": "1.0.15", "description": "UI Npm Package", "main": "lib/index.js", "files": [ diff --git a/testing/package.json b/testing/package.json index d2276b8..04afd45 100644 --- a/testing/package.json +++ b/testing/package.json @@ -1,6 +1,6 @@ { "name": "testing", - "version": "0.1.0", + "version": "1.0.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.17.0",