From eded58ea78e8dec1c9b02f7e7284c933bcc4079d Mon Sep 17 00:00:00 2001 From: Patrick Hawley Date: Thu, 17 Apr 2025 18:07:05 -0500 Subject: [PATCH 1/3] Update knapsack.pattern.chakra-button.json --- data/knapsack.pattern.chakra-button.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/knapsack.pattern.chakra-button.json b/data/knapsack.pattern.chakra-button.json index ce239ca..cc6abfa 100644 --- a/data/knapsack.pattern.chakra-button.json +++ b/data/knapsack.pattern.chakra-button.json @@ -1,7 +1,7 @@ { "id": "chakra-button", "title": "Chakra UI Button", - "description": "Button component is from Chakra UI library\nhttps://v2.chakra-ui.com/docs/components/button", + "description": "Button component from Chakra UI library\nhttps://v2.chakra-ui.com/docs/components/button", "statuses": {}, "templates": [ { From 11a80e1a7eb13eba9c4bf17fd065b058d90150a1 Mon Sep 17 00:00:00 2001 From: Patrick Hawley Date: Thu, 17 Apr 2025 18:10:05 -0500 Subject: [PATCH 2/3] Create knapsack.pattern.test-component.json --- data/knapsack.pattern.test-component.json | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 data/knapsack.pattern.test-component.json diff --git a/data/knapsack.pattern.test-component.json b/data/knapsack.pattern.test-component.json new file mode 100644 index 0000000..cc6abfa --- /dev/null +++ b/data/knapsack.pattern.test-component.json @@ -0,0 +1,87 @@ +{ + "id": "chakra-button", + "title": "Chakra UI Button", + "description": "Button component from Chakra UI library\nhttps://v2.chakra-ui.com/docs/components/button", + "statuses": {}, + "templates": [ + { + "id": "react-chakra-button", + "title": "Button", + "path": "@columbia1938/react", + "alias": "Button", + "templateLanguageId": "react", + "spec": { + "slots": {}, + "props": { + "type": "object", + "properties": { + "fontFamily": { + "title": "Font Family", + "type": "string", + "enum": ["default", "GerTT"], + "default": "default" + }, + "colorScheme": { + "title": "Color", + "type": "string", + "enum": [ + "blue", + "cyan", + "green", + "orange", + "pink", + "purple", + "red", + "yellow" + ], + "default": "blue" + }, + "colorValue": { + "title": "Color Shade", + "type": "string", + "enum": [ + "50", + "100", + "200", + "300", + "400", + "500", + "600", + "700", + "800", + "900", + "950" + ], + "description": "Requires a Color", + "default": "50" + } + }, + "$schema": "http://json-schema.org/draft-07/schema", + "description": "Button component from Chakra UI library", + "required": [] + }, + "propOrder": ["fontFamily", "colorScheme", "colorValue"], + "slotOrder": [] + }, + "blockIds": [], + "demoIds": ["auLVpOv8ZZ", "XJqVWxXkh"] + } + ], + "tabs": [ + { + "id": "V0evPJ4YNv", + "type": "subPage" + }, + { + "id": "react-chakra-button", + "type": "template" + } + ], + "subPages": [ + { + "title": "Overview", + "id": "V0evPJ4YNv", + "blockIds": ["AutA3MNRH"] + } + ] +} From 37c9f54f69756c7f0629767db3424703d180838c Mon Sep 17 00:00:00 2001 From: Patrick Hawley Date: Thu, 17 Apr 2025 18:17:47 -0500 Subject: [PATCH 3/3] Update knapsack.pattern.chakra-button.json --- data/knapsack.pattern.chakra-button.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/knapsack.pattern.chakra-button.json b/data/knapsack.pattern.chakra-button.json index cc6abfa..986f740 100644 --- a/data/knapsack.pattern.chakra-button.json +++ b/data/knapsack.pattern.chakra-button.json @@ -1,7 +1,7 @@ { "id": "chakra-button", "title": "Chakra UI Button", - "description": "Button component from Chakra UI library\nhttps://v2.chakra-ui.com/docs/components/button", + "description": "Button component from the Chakra UI library\nhttps://v2.chakra-ui.com/docs/components/button", "statuses": {}, "templates": [ {