@baton8/general-components 3.1.0-alpha.0 → 3.1.0-alpha.10
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/components/atoms/badge/badge.d.ts +1 -1
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +5 -0
- package/dist/components/atoms/icon/icon.d.ts +5 -0
- package/dist/components/atoms/input/input.d.ts +2 -0
- package/dist/components/atoms/link/link.d.ts +2 -0
- package/dist/components/atoms/segmentGroup/index.d.ts +3 -0
- package/dist/components/atoms/segmentGroup/segment.d.ts +32 -0
- package/dist/components/atoms/segmentGroup/segmentGroup.d.ts +21 -0
- package/dist/components/atoms/segmentGroup/segmentIconContainer.d.ts +15 -0
- package/dist/components/atoms/tag/tag.d.ts +5 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/modules/card/card.d.ts +2 -0
- package/dist/components/modules/card/cardButton.d.ts +6 -0
- package/dist/components/modules/card/cardButtonListColumn.d.ts +15 -0
- package/dist/components/modules/card/cardGrip.d.ts +13 -0
- package/dist/components/modules/card/index.d.ts +2 -0
- package/dist/components/modules/dialog/dialog.d.ts +0 -1
- package/dist/components/modules/drawer/drawer.d.ts +2 -0
- package/dist/components/modules/drawer/drawerCloseButton.d.ts +13 -0
- package/dist/components/modules/drawer/drawerFooter.d.ts +0 -3
- package/dist/components/modules/drawer/index.d.ts +2 -0
- package/dist/components/modules/menu/menu.d.ts +5 -0
- package/dist/components/modules/popover/index.d.ts +1 -0
- package/dist/components/modules/popover/popover.d.ts +38 -0
- package/dist/components/modules/simpleCard/index.d.ts +3 -0
- package/dist/components/modules/simpleCard/simpleCard.d.ts +5 -0
- package/dist/components/modules/simpleCard/simpleCardBody.d.ts +7 -0
- package/dist/components/modules/simpleCard/simpleCardButton.d.ts +5 -0
- package/dist/components/modules/simpleCardList/index.d.ts +4 -0
- package/dist/components/modules/simpleCardList/simpleCardListAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListBodyAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListFooterAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListHeader.d.ts +6 -0
- package/dist/components/modules/stepper/stepperItem.d.ts +5 -1
- package/dist/contexts/dialog/hook.d.ts +4 -1
- package/dist/contexts/segmentGroup/context.d.ts +11 -0
- package/dist/index.js +509 -262
- package/dist/index.js.map +1 -1
- package/dist/stories/atoms/input/input.stories.d.ts +1 -0
- package/dist/stories/atoms/segmentGroup/segmentGroup.stories.d.ts +7 -0
- package/dist/stories/modules/card/card.stories.d.ts +1 -0
- package/dist/stories/modules/drawer/drawer.stories.d.ts +2 -0
- package/dist/stories/modules/popover/popover.stories.d.ts +33 -0
- package/dist/stories/modules/stepper/stepper.stories.d.ts +1 -0
- package/package.json +6 -6
- package/dist/stories/modules/dialog/dialogButton.stories.d.ts +0 -8
- package/dist/stories/modules/drawer/drawerButton.stories.d.ts +0 -7
- package/dist/stories/modules/drawer/drawerFooter.stories.d.ts +0 -7
|
@@ -14,6 +14,7 @@ export declare const TypeTime: Story;
|
|
|
14
14
|
export declare const TypeDateTime: Story;
|
|
15
15
|
export declare const TypeMonth: Story;
|
|
16
16
|
export declare const TypeWeek: Story;
|
|
17
|
+
export declare const Placeholder: Story;
|
|
17
18
|
export declare const TestUncontrolled: Story;
|
|
18
19
|
export declare const TestControlled: Story;
|
|
19
20
|
export declare const TestHook: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { SegmentGroup } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof SegmentGroup>;
|
|
4
|
+
type Story = RawStory<typeof SegmentGroup>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const TestControlled: Story;
|
|
7
|
+
export default meta;
|
|
@@ -7,6 +7,7 @@ export declare const Basic: Story;
|
|
|
7
7
|
export declare const WithMoreInfo: Story;
|
|
8
8
|
export declare const WithButton: Story;
|
|
9
9
|
export declare const WithSecondaryButton: Story;
|
|
10
|
+
export declare const WithSecondaryButtonUnstretched: Story;
|
|
10
11
|
export declare const WithBothButtons: Story;
|
|
11
12
|
export declare const WithCheckbox: Story;
|
|
12
13
|
export declare const WithRadio: Story;
|
|
@@ -5,6 +5,8 @@ type Story = RawStory<typeof Drawer>;
|
|
|
5
5
|
declare const meta: Meta;
|
|
6
6
|
export declare const Basic: Story;
|
|
7
7
|
export declare const WithHeader: Story;
|
|
8
|
+
export declare const WithHeaderAndFooter: Story;
|
|
9
|
+
export declare const CloseButton: Story;
|
|
8
10
|
export declare const Scroll: Story;
|
|
9
11
|
export declare const Test: Story;
|
|
10
12
|
export declare const TestNesting: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta as RawMeta } from "@storybook/react";
|
|
3
|
+
import { Popover } from "../../../components";
|
|
4
|
+
type Meta = RawMeta<typeof Popover>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const TypeClick: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
7
|
+
trigger?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
8
|
+
triggerType?: "click" | "focus" | "hover" | undefined;
|
|
9
|
+
triggerRest?: number | null | undefined;
|
|
10
|
+
isInline?: boolean | undefined;
|
|
11
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const TypeFocus: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
16
|
+
trigger?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
17
|
+
triggerType?: "click" | "focus" | "hover" | undefined;
|
|
18
|
+
triggerRest?: number | null | undefined;
|
|
19
|
+
isInline?: boolean | undefined;
|
|
20
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const TypeHover: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
25
|
+
trigger?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
26
|
+
triggerType?: "click" | "focus" | "hover" | undefined;
|
|
27
|
+
triggerRest?: number | null | undefined;
|
|
28
|
+
isInline?: boolean | undefined;
|
|
29
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
children?: import("react").ReactNode;
|
|
32
|
+
}>;
|
|
33
|
+
export default meta;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baton8/general-components",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"repository": "https://github.com/Baton8/FrontGeneralComponents",
|
|
6
6
|
"scripts": {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@floating-ui/react": "^0.25.0",
|
|
79
|
-
"@fortawesome/fontawesome-pro": "^
|
|
80
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
81
|
-
"@fortawesome/react-fontawesome": "^
|
|
82
|
-
"@fortawesome/sharp-regular-svg-icons": "^
|
|
83
|
-
"@fortawesome/sharp-solid-svg-icons": "^
|
|
79
|
+
"@fortawesome/fontawesome-pro": "^7.1.0",
|
|
80
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
81
|
+
"@fortawesome/react-fontawesome": "^3.1.1",
|
|
82
|
+
"@fortawesome/sharp-regular-svg-icons": "^7.1.0",
|
|
83
|
+
"@fortawesome/sharp-solid-svg-icons": "^7.1.0",
|
|
84
84
|
"@radix-ui/react-avatar": "^1.0.3",
|
|
85
85
|
"@radix-ui/react-switch": "^1.0.3",
|
|
86
86
|
"@radix-ui/react-toast": "^1.1.4",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
-
import { DialogButton } from "../../../components";
|
|
3
|
-
type Meta = RawMeta<typeof DialogButton>;
|
|
4
|
-
type Story = RawStory<typeof DialogButton>;
|
|
5
|
-
declare const meta: Meta;
|
|
6
|
-
export declare const Submit: Story;
|
|
7
|
-
export declare const Cancel: Story;
|
|
8
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
-
import { DrawerButton } from "../../../components";
|
|
3
|
-
type Meta = RawMeta<typeof DrawerButton>;
|
|
4
|
-
type Story = RawStory<typeof DrawerButton>;
|
|
5
|
-
declare const meta: Meta;
|
|
6
|
-
export declare const Basic: Story;
|
|
7
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
-
import { DrawerFooter } from "../../../components";
|
|
3
|
-
type Meta = RawMeta<typeof DrawerFooter>;
|
|
4
|
-
type Story = RawStory<typeof DrawerFooter>;
|
|
5
|
-
declare const meta: Meta;
|
|
6
|
-
export declare const Basic: Story;
|
|
7
|
-
export default meta;
|