mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
For #25349 This updates storybook and its addons to 8.4.7. This is done to remove the transitive dependency on path-to-regexp, which is no longer used in this version of storybook. This will fix the original vulnerability issue for `path-to-regexp`
34 lines
704 B
TypeScript
34 lines
704 B
TypeScript
import React from "react";
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
import { noop } from "lodash";
|
|
|
|
import FleetAce from ".";
|
|
|
|
import "../../index.scss";
|
|
|
|
const meta: Meta<typeof FleetAce> = {
|
|
component: FleetAce,
|
|
title: "Components/FleetAce",
|
|
args: {
|
|
label: "Type some SQL here...",
|
|
value: "SELECT 1 FROM TABLE_NAME;",
|
|
readOnly: false,
|
|
showGutter: false,
|
|
wrapEnabled: false,
|
|
fontSize: 16,
|
|
name: "",
|
|
error: "",
|
|
wrapperClassName: "",
|
|
helpText: "",
|
|
labelActionComponent: <></>,
|
|
onLoad: noop,
|
|
onChange: noop,
|
|
handleSubmit: noop,
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof FleetAce>;
|
|
|
|
export const Default: Story = {};
|