@agility/plenum-ui 2.1.26 → 2.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +20 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/tailwind.css +41 -0
- package/dist/types/stories/atoms/buttons/Button/Button.d.ts +1 -1
- package/dist/types/stories/atoms/buttons/Button/DangerSecondary/DangerSecondary.stories.d.ts +15 -0
- package/dist/types/stories/molecules/inputs/InputLabel/InputLabel.d.ts +1 -0
- package/package.json +1 -1
- package/stories/atoms/buttons/Button/Button.tsx +39 -38
- package/stories/atoms/buttons/Button/DangerSecondary/DangerSecondary.stories.ts +90 -0
- package/stories/atoms/buttons/Button/tests/Button.test.tsx +0 -37
- package/stories/molecules/inputs/InputLabel/InputLabel.tsx +6 -3
- package/stories/molecules/inputs/checkbox/Checkbox.tsx +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Alternative/Alte
|
|
|
87
87
|
declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
|
|
88
88
|
import React, { HTMLAttributeAnchorTarget } from "react";
|
|
89
89
|
import { UnifiedIconName, IDynamicIconProps } from "@agility/plenum-ui/stories/atoms/icons/index";
|
|
90
|
-
export type BTNActionType = "primary" | "secondary" | "alternative" | "danger" | "warning";
|
|
90
|
+
export type BTNActionType = "primary" | "secondary" | "alternative" | "danger" | "danger-secondary" | "warning";
|
|
91
91
|
export interface IButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> {
|
|
92
92
|
/** Is the button a Primary CTA, alternative or danger button? */
|
|
93
93
|
actionType?: BTNActionType;
|
|
@@ -136,6 +136,24 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Danger/Danger.st
|
|
|
136
136
|
export const DangerLarge: Story;
|
|
137
137
|
export const DangerExtraLarge: Story;
|
|
138
138
|
|
|
139
|
+
}
|
|
140
|
+
declare module '@agility/plenum-ui/stories/atoms/buttons/Button/DangerSecondary/DangerSecondary.stories' {
|
|
141
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
142
|
+
import Button from "@agility/plenum-ui/stories/atoms/buttons/Button/Button";
|
|
143
|
+
const meta: Meta<typeof Button>;
|
|
144
|
+
export default meta;
|
|
145
|
+
type Story = StoryObj<typeof Button>;
|
|
146
|
+
export const DangerSecondary: Story;
|
|
147
|
+
export const DangerSecondaryDisabled: Story;
|
|
148
|
+
export const DangerSecondaryTrailingIcon: Story;
|
|
149
|
+
export const DangerSecondaryLeadingIcon: Story;
|
|
150
|
+
export const DangerSecondarySimpleIconName: Story;
|
|
151
|
+
export const DangerSecondaryExtraSmall: Story;
|
|
152
|
+
export const DangerSecondarySmall: Story;
|
|
153
|
+
export const DangerSecondaryMedium: Story;
|
|
154
|
+
export const DangerSecondaryLarge: Story;
|
|
155
|
+
export const DangerSecondaryExtraLarge: Story;
|
|
156
|
+
|
|
139
157
|
}
|
|
140
158
|
declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Primary/Primary.stories' {
|
|
141
159
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
@@ -503,6 +521,7 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/InputLabel/InputLabe
|
|
|
503
521
|
label?: string;
|
|
504
522
|
truncateLabel?: boolean;
|
|
505
523
|
fullWidthLabel?: boolean;
|
|
524
|
+
noMarginBottom?: boolean;
|
|
506
525
|
}
|
|
507
526
|
/** Comment */
|
|
508
527
|
const InputLabel: FC<IInputLabelProps>;
|