diff --git a/packages/dev/inspector-v2/src/components/debug/debugPane.tsx b/packages/dev/inspector-v2/src/components/debug/debugPane.tsx index f4a01921ff9..ac3775ec43c 100644 --- a/packages/dev/inspector-v2/src/components/debug/debugPane.tsx +++ b/packages/dev/inspector-v2/src/components/debug/debugPane.tsx @@ -12,7 +12,7 @@ import { CreateGround } from "core/Meshes/Builders/groundBuilder"; import { Tools } from "core/Misc/tools"; import { UtilityLayerRenderer } from "core/Rendering/utilityLayerRenderer"; import { GridMaterial } from "materials/grid/gridMaterial"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; import { AccordionPane, AccordionPaneSection } from "../accordionPane"; import { BoundProperty } from "../properties/boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/boundProperty.tsx b/packages/dev/inspector-v2/src/components/properties/boundProperty.tsx index 9961eaaab33..3d20bea320f 100644 --- a/packages/dev/inspector-v2/src/components/properties/boundProperty.tsx +++ b/packages/dev/inspector-v2/src/components/properties/boundProperty.tsx @@ -1,5 +1,5 @@ import type { ComponentType } from "react"; -import type { BaseComponentProps } from "shared-ui-components/fluent/hoc/propertyLine"; +import type { BaseComponentProps } from "shared-ui-components/fluent/hoc/propertyLines/propertyLine"; import { useProperty } from "../../hooks/compoundPropertyHooks"; /** diff --git a/packages/dev/inspector-v2/src/components/properties/commonGeneralProperties.tsx b/packages/dev/inspector-v2/src/components/properties/commonGeneralProperties.tsx index b09e43447b7..7b635031427 100644 --- a/packages/dev/inspector-v2/src/components/properties/commonGeneralProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/commonGeneralProperties.tsx @@ -2,8 +2,8 @@ import type { FunctionComponent } from "react"; import { useMemo } from "react"; -import { TextInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { TextPropertyLine } from "shared-ui-components/fluent/hoc/textPropertyLine"; +import { TextInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { TextPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/textPropertyLine"; import { useProperty } from "../../hooks/compoundPropertyHooks"; import { GetPropertyDescriptor, IsPropertyReadonly } from "../../instrumentation/propertyInstrumentation"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/areaLightSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/areaLightSetupProperties.tsx index 5c370bf9c2c..f0a60af819a 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/areaLightSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/areaLightSetupProperties.tsx @@ -1,9 +1,9 @@ import type { RectAreaLight } from "core/index"; import type { FunctionComponent } from "react"; -import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useColor3Property, useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { BoundProperty } from "../boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/directionalLightSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/directionalLightSetupProperties.tsx index 22074c6e17d..2aef04e4b4d 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/directionalLightSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/directionalLightSetupProperties.tsx @@ -1,9 +1,9 @@ import type { DirectionalLight } from "core/index"; import type { FunctionComponent } from "react"; -import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useColor3Property, useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { BoundProperty } from "../boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/hemisphericLightSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/hemisphericLightSetupProperties.tsx index 2ab8e658d84..d11ba305e3f 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/hemisphericLightSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/hemisphericLightSetupProperties.tsx @@ -1,9 +1,9 @@ import type { HemisphericLight } from "core/index"; import type { FunctionComponent } from "react"; -import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useColor3Property, useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { BoundProperty } from "../boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/pointLightSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/pointLightSetupProperties.tsx index 44b51802b61..0ba062eaca6 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/pointLightSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/pointLightSetupProperties.tsx @@ -1,9 +1,9 @@ import type { PointLight } from "core/index"; import type { FunctionComponent } from "react"; -import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useColor3Property, useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { BoundProperty } from "../boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/shadowGeneratorSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/shadowGeneratorSetupProperties.tsx index a6a63a956a0..797bf0c2246 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/shadowGeneratorSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/shadowGeneratorSetupProperties.tsx @@ -9,7 +9,7 @@ import { DirectionalLight } from "core/Lights/directionalLight"; import { CascadedShadowGenerator } from "core/Lights/Shadows/cascadedShadowGenerator"; import { ShadowGenerator } from "core/Lights/Shadows/shadowGenerator"; import { ButtonLine } from "shared-ui-components/fluent/hoc/buttonLine"; -import { NumberDropdownPropertyLine, StringDropdownPropertyLine } from "shared-ui-components/fluent/hoc/dropdownPropertyLine"; +import { NumberDropdownPropertyLine, StringDropdownPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/dropdownPropertyLine"; import { useObservableState } from "../../../hooks/observableHooks"; import "core/Lights/Shadows/shadowGeneratorSceneComponent"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/shadowsSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/shadowsSetupProperties.tsx index 8156398bd61..2028504cea5 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/shadowsSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/shadowsSetupProperties.tsx @@ -4,9 +4,9 @@ import type { FunctionComponent } from "react"; import { Collapse } from "@fluentui/react-motion-components-preview"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; import { useProperty } from "../../../hooks/compoundPropertyHooks"; import { BoundProperty } from "../boundProperty"; diff --git a/packages/dev/inspector-v2/src/components/properties/lights/spotLightSetupProperties.tsx b/packages/dev/inspector-v2/src/components/properties/lights/spotLightSetupProperties.tsx index f3f0351aa78..a565ca96097 100644 --- a/packages/dev/inspector-v2/src/components/properties/lights/spotLightSetupProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/lights/spotLightSetupProperties.tsx @@ -2,10 +2,10 @@ import type { SpotLight } from "core/index"; import type { FunctionComponent } from "react"; import { Tools } from "core/Misc/tools"; -import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { SyncedSliderLine } from "shared-ui-components/fluent/hoc/syncedSliderLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { Color3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { SyncedSliderPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/syncedSliderPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useColor3Property, useProperty, useVector3Property } from "../../../hooks/compoundPropertyHooks"; @@ -24,8 +24,8 @@ export const SpotLightSetupProperties: FunctionComponent<{ context: SpotLight }> (spotLight.specular = val)} /> (spotLight.direction = val)} /> (spotLight.position = val)} /> - (spotLight.angle = Tools.ToRadians(value))} /> - (spotLight.angle = Tools.ToRadians(value))} /> + void }> = (props) => { diff --git a/packages/dev/inspector-v2/src/components/properties/physics/physicsProperties.tsx b/packages/dev/inspector-v2/src/components/properties/physics/physicsProperties.tsx index 3a228fddf37..07e53f90535 100644 --- a/packages/dev/inspector-v2/src/components/properties/physics/physicsProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/physics/physicsProperties.tsx @@ -7,9 +7,9 @@ import { useCallback } from "react"; import { Vector3 } from "core/Maths/math.vector"; import { PhysicsMotionType, PhysicsPrestepType } from "core/Physics/v2/IPhysicsEnginePlugin"; -import { NumberDropdownPropertyLine } from "shared-ui-components/fluent/hoc/dropdownPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { NumberDropdownPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/dropdownPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { useInterceptObservable } from "../../../hooks/instrumentationHooks"; import { useObservableState } from "../../../hooks/observableHooks"; diff --git a/packages/dev/inspector-v2/src/components/properties/skeleton/boneProperties.tsx b/packages/dev/inspector-v2/src/components/properties/skeleton/boneProperties.tsx index 31ff021356a..a1428f20561 100644 --- a/packages/dev/inspector-v2/src/components/properties/skeleton/boneProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/skeleton/boneProperties.tsx @@ -2,7 +2,7 @@ import type { Bone } from "core/index"; import type { FunctionComponent } from "react"; -import { LinkPropertyLine } from "shared-ui-components/fluent/hoc/linkPropertyLine"; +import { LinkPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/linkPropertyLine"; export const BoneGeneralProperties: FunctionComponent<{ bone: Bone; setSelectedEntity: (entity: unknown) => void }> = (props) => { const { bone, setSelectedEntity } = props; diff --git a/packages/dev/inspector-v2/src/components/properties/skeleton/skeletonProperties.tsx b/packages/dev/inspector-v2/src/components/properties/skeleton/skeletonProperties.tsx index c682e4be7e5..ea019f2e81a 100644 --- a/packages/dev/inspector-v2/src/components/properties/skeleton/skeletonProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/skeleton/skeletonProperties.tsx @@ -9,10 +9,10 @@ import { useReducer, useState } from "react"; import { SkeletonViewer } from "core/Debug/skeletonViewer"; import { ButtonLine } from "shared-ui-components/fluent/hoc/buttonLine"; -import { NumberDropdownPropertyLine } from "shared-ui-components/fluent/hoc/dropdownPropertyLine"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; -import { TextPropertyLine } from "shared-ui-components/fluent/hoc/textPropertyLine"; +import { NumberDropdownPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/dropdownPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; +import { TextPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/textPropertyLine"; import { BoundProperty } from "../boundProperty"; export const SkeletonGeneralProperties: FunctionComponent<{ skeleton: Skeleton }> = (props) => { diff --git a/packages/dev/inspector-v2/src/components/properties/sprites/spriteAnimationProperties.tsx b/packages/dev/inspector-v2/src/components/properties/sprites/spriteAnimationProperties.tsx index e0772240f65..68c36ac157a 100644 --- a/packages/dev/inspector-v2/src/components/properties/sprites/spriteAnimationProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/sprites/spriteAnimationProperties.tsx @@ -2,8 +2,8 @@ import type { FunctionComponent } from "react"; import type { Sprite } from "core/index"; -import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/inputPropertyLine"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; +import { NumberInputPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; import { BoundProperty } from "../boundProperty"; export const SpriteAnimationProperties: FunctionComponent<{ sprite: Sprite }> = (props) => { diff --git a/packages/dev/inspector-v2/src/components/properties/sprites/spriteGeneralProperties.tsx b/packages/dev/inspector-v2/src/components/properties/sprites/spriteGeneralProperties.tsx index 794ead37a2b..d5088e9e977 100644 --- a/packages/dev/inspector-v2/src/components/properties/sprites/spriteGeneralProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/sprites/spriteGeneralProperties.tsx @@ -2,8 +2,8 @@ import type { Sprite } from "core/index"; import type { FunctionComponent } from "react"; -import { LinkPropertyLine } from "shared-ui-components/fluent/hoc/linkPropertyLine"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; +import { LinkPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/linkPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; import { BoundProperty } from "../boundProperty"; export const SpriteGeneralProperties: FunctionComponent<{ sprite: Sprite; setSelectedEntity: (entity: unknown) => void }> = (props) => { diff --git a/packages/dev/inspector-v2/src/components/properties/sprites/spriteOtherProperties.tsx b/packages/dev/inspector-v2/src/components/properties/sprites/spriteOtherProperties.tsx index 31c99c78c24..42b575fbec7 100644 --- a/packages/dev/inspector-v2/src/components/properties/sprites/spriteOtherProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/sprites/spriteOtherProperties.tsx @@ -2,7 +2,7 @@ import type { Sprite } from "core/index"; import type { FunctionComponent } from "react"; -import { Color4PropertyLine } from "shared-ui-components/fluent/hoc/colorPropertyLine"; +import { Color4PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine"; import { useColor4Property } from "../../../hooks/compoundPropertyHooks"; export const SpriteOtherProperties: FunctionComponent<{ sprite: Sprite }> = (props) => { diff --git a/packages/dev/inspector-v2/src/components/properties/sprites/spriteTransformProperties.tsx b/packages/dev/inspector-v2/src/components/properties/sprites/spriteTransformProperties.tsx index 503960708cb..acafef57a41 100644 --- a/packages/dev/inspector-v2/src/components/properties/sprites/spriteTransformProperties.tsx +++ b/packages/dev/inspector-v2/src/components/properties/sprites/spriteTransformProperties.tsx @@ -3,8 +3,8 @@ import type { FunctionComponent } from "react"; import type { Sprite } from "core/index"; import type { ISettingsContext } from "../../../services/settingsContext"; -import { SyncedSliderLine } from "shared-ui-components/fluent/hoc/syncedSliderLine"; -import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/vectorPropertyLine"; +import { SyncedSliderPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/syncedSliderPropertyLine"; +import { Vector3PropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine"; import { useVector3Property } from "../../../hooks/compoundPropertyHooks"; import { useObservableState } from "../../../hooks/observableHooks"; import { BoundProperty } from "../boundProperty"; @@ -23,7 +23,7 @@ export const SpriteTransformProperties: FunctionComponent<{ sprite: Sprite; sett <> (sprite.position = val)} /> angle * angleMultiplier} convertFrom={(angle) => angle / angleMultiplier} /> - + = ({ context: scene }) => { @@ -17,21 +17,21 @@ export const SystemStats: FunctionComponent<{ context: Scene }> = ({ context: sc - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/packages/dev/inspector-v2/src/services/panes/settingsService.tsx b/packages/dev/inspector-v2/src/services/panes/settingsService.tsx index 7bad1e32762..7b8a9b51624 100644 --- a/packages/dev/inspector-v2/src/services/panes/settingsService.tsx +++ b/packages/dev/inspector-v2/src/services/panes/settingsService.tsx @@ -9,7 +9,7 @@ import { SettingsRegular } from "@fluentui/react-icons"; import { DataStorage } from "core/Misc/dataStorage"; import { Observable } from "core/Misc/observable"; -import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/switchPropertyLine"; +import { SwitchPropertyLine } from "shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine"; import { AccordionPane, AccordionPaneSection } from "../../components/accordionPane"; import { useObservableCollection, useObservableState, useOrderedObservableCollection } from "../../hooks/observableHooks"; import { ObservableCollection } from "../../misc/observableCollection"; diff --git a/packages/dev/sharedUiComponents/src/components/Button.tsx b/packages/dev/sharedUiComponents/src/components/Button.tsx index abca3fc4d4a..8c0330cebf8 100644 --- a/packages/dev/sharedUiComponents/src/components/Button.tsx +++ b/packages/dev/sharedUiComponents/src/components/Button.tsx @@ -2,7 +2,8 @@ import type { PropsWithChildren } from "react"; import * as styles from "./Button.module.scss"; import { ClassNames } from "./classNames"; -export type ButtonProps = { +// Will be deleted after fluent work complete +export type ButtonComponentProps = { disabled?: boolean; active?: boolean; onClick?: () => void; @@ -12,7 +13,7 @@ export type ButtonProps = { backgroundColor?: string; }; -export const Button: React.FC> = ({ disabled, active, onClick, children, color, size, title, backgroundColor }) => { +export const ButtonComponent: React.FC> = ({ disabled, active, onClick, children, color, size, title, backgroundColor }) => { return ( - + ); diff --git a/packages/dev/sharedUiComponents/src/fluent/hoc/buttonLine.tsx b/packages/dev/sharedUiComponents/src/fluent/hoc/buttonLine.tsx index 7c361b796c6..6f6bd9cc4c0 100644 --- a/packages/dev/sharedUiComponents/src/fluent/hoc/buttonLine.tsx +++ b/packages/dev/sharedUiComponents/src/fluent/hoc/buttonLine.tsx @@ -1,33 +1,17 @@ -import { Body1, Button, makeStyles, tokens } from "@fluentui/react-components"; -import { LineContainer } from "./propertyLine"; +import { LineContainer } from "./propertyLines/propertyLine"; import type { FunctionComponent } from "react"; - -const useButtonLineStyles = makeStyles({ - button: { - border: `1px solid ${tokens.colorBrandBackground}`, - }, -}); - -export type ButtonLineProps = { - label: string; - onClick: () => void; - disabled?: boolean; - icon?: string; - title?: string; -}; +import { Button } from "../primitives/button"; +import type { ButtonProps } from "../primitives/button"; /** * Wraps a button with a label in a line container * @param props Button props plus a label * @returns A button inside a line */ -export const ButtonLine: FunctionComponent = (props) => { - const classes = useButtonLineStyles(); +export const ButtonLine: FunctionComponent = (props) => { return ( - +