diff --git a/app/components-preview/page.tsx b/app/components-preview/page.tsx index 4d8e60c..1d3346d 100644 --- a/app/components-preview/page.tsx +++ b/app/components-preview/page.tsx @@ -1,29 +1,14 @@ "use client"; import { useState } from "react"; -import Tooltip from "../components/Tooltip"; -import Alert from "../components/Alert"; -import Button from "../components/Button"; -import Stepper from "../components/Stepper"; -import Progress from "../components/Progress"; -import Create from "../components/Create"; -import Input from "../components/Input"; -import InputWithCounter from "../components/InputWithCounter"; -import IconCard from "../components/IconCard"; -import { getAssetPath } from "../../lib/assetUtils"; +import TextInput from "../components/TextInput"; +import SelectInput from "../components/SelectInput"; export default function ComponentsPreview() { - const [alertVisible, setAlertVisible] = useState({ - default: true, - positive: true, - warning: true, - danger: true, - banner: true, - }); - - const [createOpen, setCreateOpen] = useState(false); - const [createStep, setCreateStep] = useState(1); - const [policyName, setPolicyName] = useState(""); + const [defaultInputValue, setDefaultInputValue] = useState(""); + const [activeInputValue, setActiveInputValue] = useState(""); + const [errorInputValue, setErrorInputValue] = useState(""); + const [selectValue, setSelectValue] = useState(""); return (
- Step 1 of 5 -
-- Step 2 of 5 -
-- Step 3 of 5 -
-- Step 4 of 5 -
-- Step 5 of 5 -
-- Progress: 1-0 -
- -- Progress: 1-1 -
- -- Progress: 1-2 -
- -- Progress: 1-3 -
- -- Progress: 1-4 -
- -- Progress: 1-5 -
- -- Progress: 2-0 -
- -- Progress: 2-1 -
- -- Progress: 2-2 -
- -- Progress: 3-0 -
- -- Progress: 3-1 -
- -- Progress: 3-2 -
- -- Step {createStep} of 3 -
- - -- Select how conflicts should be resolved in your group. -
-- Review your policy configuration before finalizing. -
-- Policy details will appear here -
-0/48
@@ -77,7 +77,7 @@ WithStepper.args = { description: "You can also combine or add new approaches to the list", children: (0/48
@@ -155,7 +155,7 @@ NextButtonDisabled.args = { description: "You can also combine or add new approaches to the list", children: (0/48
diff --git a/stories/Select.stories.js b/stories/SelectInput.stories.js similarity index 62% rename from stories/Select.stories.js rename to stories/SelectInput.stories.js index 6d5a814..bc4e518 100644 --- a/stories/Select.stories.js +++ b/stories/SelectInput.stories.js @@ -1,9 +1,9 @@ import React, { useState } from "react"; -import Select from "../app/components/Select"; +import SelectInput from "../app/components/SelectInput"; export default { - title: "Forms/Select", - component: Select, + title: "Forms/SelectInput", + component: SelectInput, argTypes: { size: { control: { type: "select" }, @@ -35,10 +35,10 @@ export default { const Template = (args) => { const [value, setValue] = useState(""); return ( -