@dust-tt/sparkle 0.3.26 → 0.4.1
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/cjs/index.js +1 -1
- package/dist/esm/components/Avatar.js +7 -7
- package/dist/esm/components/Avatar.js.map +1 -1
- package/dist/esm/components/Button.d.ts +2 -2
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +8 -0
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/ButtonGroup.d.ts +30 -0
- package/dist/esm/components/ButtonGroup.d.ts.map +1 -0
- package/dist/esm/components/ButtonGroup.js +90 -0
- package/dist/esm/components/ButtonGroup.js.map +1 -0
- package/dist/esm/components/Counter.d.ts +1 -1
- package/dist/esm/components/Counter.d.ts.map +1 -1
- package/dist/esm/components/Counter.js +6 -4
- package/dist/esm/components/Counter.js.map +1 -1
- package/dist/esm/components/IconButton.d.ts +2 -2
- package/dist/esm/components/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton.js +2 -0
- package/dist/esm/components/IconButton.js.map +1 -1
- package/dist/esm/components/SplitButton.d.ts.map +1 -1
- package/dist/esm/components/SplitButton.js +2 -0
- package/dist/esm/components/SplitButton.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/icons/actions/Noise.d.ts +5 -0
- package/dist/esm/icons/actions/Noise.d.ts.map +1 -0
- package/dist/esm/icons/actions/Noise.js +6 -0
- package/dist/esm/icons/actions/Noise.js.map +1 -0
- package/dist/esm/icons/actions/Speak.d.ts +5 -0
- package/dist/esm/icons/actions/Speak.d.ts.map +1 -0
- package/dist/esm/icons/actions/Speak.js +6 -0
- package/dist/esm/icons/actions/Speak.js.map +1 -0
- package/dist/esm/icons/actions/index.d.ts +2 -0
- package/dist/esm/icons/actions/index.d.ts.map +1 -1
- package/dist/esm/icons/actions/index.js +2 -0
- package/dist/esm/icons/actions/index.js.map +1 -1
- package/dist/esm/icons/app/Tools.js +1 -1
- package/dist/esm/icons/app/Tools.js.map +1 -1
- package/dist/esm/icons/src/actions/noise.svg +4 -0
- package/dist/esm/icons/src/actions/speak.svg +3 -0
- package/dist/esm/icons/src/app/tools.svg +1 -1
- package/dist/esm/logo/platforms/Ashby.d.ts +5 -0
- package/dist/esm/logo/platforms/Ashby.d.ts.map +1 -0
- package/dist/esm/logo/platforms/Ashby.js +7 -0
- package/dist/esm/logo/platforms/Ashby.js.map +1 -0
- package/dist/esm/logo/platforms/Canva.js +9 -9
- package/dist/esm/logo/platforms/Canva.js.map +1 -1
- package/dist/esm/logo/platforms/Front.d.ts.map +1 -1
- package/dist/esm/logo/platforms/Front.js +3 -4
- package/dist/esm/logo/platforms/Front.js.map +1 -1
- package/dist/esm/logo/platforms/Gitlab.js +5 -5
- package/dist/esm/logo/platforms/Gitlab.js.map +1 -1
- package/dist/esm/logo/platforms/ValTown.d.ts.map +1 -1
- package/dist/esm/logo/platforms/ValTown.js +8 -8
- package/dist/esm/logo/platforms/ValTown.js.map +1 -1
- package/dist/esm/logo/platforms/index.d.ts +1 -0
- package/dist/esm/logo/platforms/index.d.ts.map +1 -1
- package/dist/esm/logo/platforms/index.js +1 -0
- package/dist/esm/logo/platforms/index.js.map +1 -1
- package/dist/esm/logo/src/platforms/Ashby.svg +4 -0
- package/dist/esm/logo/src/platforms/Canva.svg +15 -0
- package/dist/esm/logo/src/platforms/Front.svg +3 -9
- package/dist/esm/logo/src/platforms/Gitlab.svg +6 -0
- package/dist/esm/logo/src/platforms/ValTown.svg +10 -0
- package/dist/esm/stories/Button.stories.d.ts +1 -1
- package/dist/esm/stories/Button.stories.d.ts.map +1 -1
- package/dist/esm/stories/Button.stories.js +7 -19
- package/dist/esm/stories/Button.stories.js.map +1 -1
- package/dist/esm/stories/ButtonGroup.stories.d.ts +63 -0
- package/dist/esm/stories/ButtonGroup.stories.d.ts.map +1 -0
- package/dist/esm/stories/ButtonGroup.stories.js +113 -0
- package/dist/esm/stories/ButtonGroup.stories.js.map +1 -0
- package/dist/esm/stories/SplitButton.stories.d.ts.map +1 -1
- package/dist/esm/stories/SplitButton.stories.js +10 -2
- package/dist/esm/stories/SplitButton.stories.js.map +1 -1
- package/dist/sparkle.css +58 -10
- package/package.json +1 -1
- package/src/components/Avatar.tsx +7 -7
- package/src/components/Button.tsx +36 -0
- package/src/components/ButtonGroup.tsx +180 -0
- package/src/components/Counter.tsx +6 -4
- package/src/components/IconButton.tsx +12 -0
- package/src/components/SplitButton.tsx +2 -0
- package/src/components/index.ts +2 -0
- package/src/icons/actions/Noise.tsx +18 -0
- package/src/icons/actions/Speak.tsx +18 -0
- package/src/icons/actions/index.ts +2 -0
- package/src/icons/app/Tools.tsx +1 -1
- package/src/icons/src/actions/noise.svg +4 -0
- package/src/icons/src/actions/speak.svg +3 -0
- package/src/icons/src/app/tools.svg +1 -1
- package/src/logo/platforms/Ashby.tsx +21 -0
- package/src/logo/platforms/Canva.tsx +19 -19
- package/src/logo/platforms/Front.tsx +6 -7
- package/src/logo/platforms/Gitlab.tsx +9 -9
- package/src/logo/platforms/ValTown.tsx +17 -21
- package/src/logo/platforms/index.ts +1 -0
- package/src/logo/src/platforms/Ashby.svg +4 -0
- package/src/logo/src/platforms/Canva.svg +15 -0
- package/src/logo/src/platforms/Front.svg +3 -9
- package/src/logo/src/platforms/Gitlab.svg +6 -0
- package/src/logo/src/platforms/ValTown.svg +10 -0
- package/src/stories/Button.stories.tsx +19 -26
- package/src/stories/ButtonGroup.stories.tsx +174 -0
- package/src/stories/SplitButton.stories.tsx +92 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { ButtonGroupVariantType } from "../components/ButtonGroup";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<import("../components/ButtonGroup").ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {
|
|
9
|
+
variant: {
|
|
10
|
+
description: string;
|
|
11
|
+
control: {
|
|
12
|
+
type: "select";
|
|
13
|
+
};
|
|
14
|
+
options: ButtonGroupVariantType[];
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
description: string;
|
|
18
|
+
control: {
|
|
19
|
+
type: "select";
|
|
20
|
+
};
|
|
21
|
+
options: ("sm" | "xs" | "md" | "mini" | "xmini")[];
|
|
22
|
+
};
|
|
23
|
+
orientation: {
|
|
24
|
+
description: string;
|
|
25
|
+
control: {
|
|
26
|
+
type: "select";
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
description: string;
|
|
32
|
+
control: "boolean";
|
|
33
|
+
};
|
|
34
|
+
removeGaps: {
|
|
35
|
+
description: string;
|
|
36
|
+
control: "boolean";
|
|
37
|
+
};
|
|
38
|
+
children: {
|
|
39
|
+
table: {
|
|
40
|
+
disable: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
args: {
|
|
45
|
+
children: React.JSX.Element;
|
|
46
|
+
variant: "outline";
|
|
47
|
+
size: "sm";
|
|
48
|
+
orientation: "horizontal";
|
|
49
|
+
disabled: false;
|
|
50
|
+
removeGaps: true;
|
|
51
|
+
};
|
|
52
|
+
render: (args: import("../components/ButtonGroup").ButtonGroupProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
export default meta;
|
|
55
|
+
type Story = StoryObj<typeof meta>;
|
|
56
|
+
export declare const Playground: Story;
|
|
57
|
+
export declare const WithIcons: Story;
|
|
58
|
+
export declare const WithCounters: Story;
|
|
59
|
+
export declare const Vertical: Story;
|
|
60
|
+
export declare const Disabled: Story;
|
|
61
|
+
export declare const WithGaps: Story;
|
|
62
|
+
export declare const Gallery: Story;
|
|
63
|
+
//# sourceMappingURL=ButtonGroup.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/ButtonGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AA6B9E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAAU,CAAC;AAEpC,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AA8BF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BUTTON_SIZES, BUTTON_VARIANTS, } from "../components/Button";
|
|
4
|
+
import { Button, ButtonGroup, PlusIcon, RobotIcon, Separator, } from "../index_with_tw_base";
|
|
5
|
+
var DEFAULT_CHILDREN = (React.createElement(React.Fragment, null,
|
|
6
|
+
React.createElement(Button, { label: "First" }),
|
|
7
|
+
React.createElement(Button, { label: "Second" }),
|
|
8
|
+
React.createElement(Button, { label: "Third" })));
|
|
9
|
+
var DISALLOWED_GROUP_VARIANTS = [
|
|
10
|
+
"ghost",
|
|
11
|
+
"ghost-secondary",
|
|
12
|
+
"highlight",
|
|
13
|
+
"warning",
|
|
14
|
+
];
|
|
15
|
+
var BUTTON_GROUP_VARIANTS = BUTTON_VARIANTS.filter(function (variant) { return !DISALLOWED_GROUP_VARIANTS.includes(variant); });
|
|
16
|
+
var meta = {
|
|
17
|
+
title: "Primitives/ButtonGroup",
|
|
18
|
+
component: ButtonGroup,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
argTypes: {
|
|
21
|
+
variant: {
|
|
22
|
+
description: "Variant applied to every child button",
|
|
23
|
+
control: { type: "select" },
|
|
24
|
+
options: BUTTON_GROUP_VARIANTS,
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
description: "Size applied to every child button",
|
|
28
|
+
control: { type: "select" },
|
|
29
|
+
options: BUTTON_SIZES.filter(function (size) { return size !== "mini"; }),
|
|
30
|
+
},
|
|
31
|
+
orientation: {
|
|
32
|
+
description: "Stack buttons horizontally or vertically",
|
|
33
|
+
control: { type: "select" },
|
|
34
|
+
options: ["horizontal", "vertical"],
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
description: "Disable all buttons in the group",
|
|
38
|
+
control: "boolean",
|
|
39
|
+
},
|
|
40
|
+
removeGaps: {
|
|
41
|
+
description: "Remove gaps and merge button borders",
|
|
42
|
+
control: "boolean",
|
|
43
|
+
},
|
|
44
|
+
children: {
|
|
45
|
+
table: { disable: true },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
args: {
|
|
49
|
+
children: DEFAULT_CHILDREN,
|
|
50
|
+
variant: "outline",
|
|
51
|
+
size: "sm",
|
|
52
|
+
orientation: "horizontal",
|
|
53
|
+
disabled: false,
|
|
54
|
+
removeGaps: true,
|
|
55
|
+
},
|
|
56
|
+
render: function (args) { return React.createElement(ButtonGroup, __assign({}, args)); },
|
|
57
|
+
};
|
|
58
|
+
export default meta;
|
|
59
|
+
export var Playground = {};
|
|
60
|
+
export var WithIcons = {
|
|
61
|
+
render: function () { return (React.createElement(ButtonGroup, { variant: "outline", size: "sm" },
|
|
62
|
+
React.createElement(Button, { icon: PlusIcon, label: "Add" }),
|
|
63
|
+
React.createElement(Button, { icon: RobotIcon, label: "Agent" }),
|
|
64
|
+
React.createElement(Button, { label: "More" }))); },
|
|
65
|
+
};
|
|
66
|
+
export var WithCounters = {
|
|
67
|
+
render: function () { return (React.createElement(ButtonGroup, { variant: "outline", size: "sm" },
|
|
68
|
+
React.createElement(Button, { label: "Inbox", isCounter: true, counterValue: "5" }),
|
|
69
|
+
React.createElement(Button, { label: "Sent", isCounter: true, counterValue: "12" }),
|
|
70
|
+
React.createElement(Button, { label: "Drafts", isCounter: true, counterValue: "3" }))); },
|
|
71
|
+
};
|
|
72
|
+
export var Vertical = {
|
|
73
|
+
render: function () { return (React.createElement(ButtonGroup, { variant: "outline", size: "sm", orientation: "vertical" },
|
|
74
|
+
React.createElement(Button, { label: "First" }),
|
|
75
|
+
React.createElement(Button, { label: "Second" }),
|
|
76
|
+
React.createElement(Button, { label: "Third" }))); },
|
|
77
|
+
};
|
|
78
|
+
export var Disabled = {
|
|
79
|
+
render: function () { return (React.createElement(ButtonGroup, { variant: "outline", size: "sm", disabled: true },
|
|
80
|
+
React.createElement(Button, { label: "First" }),
|
|
81
|
+
React.createElement(Button, { label: "Second" }),
|
|
82
|
+
React.createElement(Button, { label: "Third" }))); },
|
|
83
|
+
};
|
|
84
|
+
export var WithGaps = {
|
|
85
|
+
render: function () { return (React.createElement(ButtonGroup, { variant: "outline", size: "sm", removeGaps: false },
|
|
86
|
+
React.createElement(Button, { label: "First" }),
|
|
87
|
+
React.createElement(Button, { label: "Second" }),
|
|
88
|
+
React.createElement(Button, { label: "Third" }))); },
|
|
89
|
+
};
|
|
90
|
+
var ButtonGroupByVariant = function (_a) {
|
|
91
|
+
var variant = _a.variant;
|
|
92
|
+
return (React.createElement(React.Fragment, null,
|
|
93
|
+
React.createElement(Separator, null),
|
|
94
|
+
React.createElement("h3", { className: "s-text-primary dark:s-text-primary-50" }, variant),
|
|
95
|
+
React.createElement("div", { className: "s-flex s-items-center s-gap-4" },
|
|
96
|
+
React.createElement(ButtonGroup, { variant: variant, size: "xs" },
|
|
97
|
+
React.createElement(Button, { label: "One" }),
|
|
98
|
+
React.createElement(Button, { label: "Two" }),
|
|
99
|
+
React.createElement(Button, { label: "Three" })),
|
|
100
|
+
React.createElement(ButtonGroup, { variant: variant, size: "sm" },
|
|
101
|
+
React.createElement(Button, { label: "One" }),
|
|
102
|
+
React.createElement(Button, { label: "Two" }),
|
|
103
|
+
React.createElement(Button, { label: "Three" })),
|
|
104
|
+
React.createElement(ButtonGroup, { variant: variant, size: "md" },
|
|
105
|
+
React.createElement(Button, { label: "One" }),
|
|
106
|
+
React.createElement(Button, { label: "Two" }),
|
|
107
|
+
React.createElement(Button, { label: "Three" })))));
|
|
108
|
+
};
|
|
109
|
+
export var Gallery = {
|
|
110
|
+
args: meta.args,
|
|
111
|
+
render: function () { return (React.createElement("div", { className: "s-flex s-flex-col s-gap-4" }, BUTTON_GROUP_VARIANTS.map(function (variant) { return (React.createElement(ButtonGroupByVariant, { key: variant, variant: variant })); }))); },
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=ButtonGroup.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.stories.js","sourceRoot":"","sources":["../../../src/stories/ButtonGroup.stories.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,YAAY,EACZ,eAAe,GAEhB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,GACV,MAAM,uBAAuB,CAAC;AAE/B,IAAM,gBAAgB,GAAG,CACvB;IACE,oBAAC,MAAM,IAAC,KAAK,EAAC,OAAO,GAAG;IACxB,oBAAC,MAAM,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;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"SplitButton.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/SplitButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAU,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAG5D,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,uBAAuB,EAAE,KAiFrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAyFpC,CAAC"}
|
|
@@ -11,13 +11,21 @@ export var FlexSplitButtonVariants = {
|
|
|
11
11
|
React.createElement(FlexSplitButton, { label: "Send", variant: "highlight", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "highlight", icon: ChevronDownIcon }) }),
|
|
12
12
|
React.createElement(FlexSplitButton, { label: "Send", variant: "primary", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "primary", icon: ChevronDownIcon }) }),
|
|
13
13
|
React.createElement(FlexSplitButton, { label: "Send", variant: "outline", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "outline", icon: ChevronDownIcon }) }),
|
|
14
|
-
React.createElement(FlexSplitButton, { label: "Send", variant: "
|
|
14
|
+
React.createElement(FlexSplitButton, { label: "Send", variant: "highlight-secondary", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "highlight-secondary", icon: ChevronDownIcon }) }),
|
|
15
|
+
React.createElement(FlexSplitButton, { label: "Send", variant: "warning", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "warning", icon: ChevronDownIcon }) }),
|
|
16
|
+
React.createElement(FlexSplitButton, { label: "Send", variant: "warning-secondary", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "warning-secondary", icon: ChevronDownIcon }) }),
|
|
17
|
+
React.createElement(FlexSplitButton, { label: "Send", variant: "ghost", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "ghost", icon: ChevronDownIcon }) }),
|
|
18
|
+
React.createElement(FlexSplitButton, { label: "Send", variant: "ghost-secondary", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "ghost-secondary", icon: ChevronDownIcon }) }))); },
|
|
15
19
|
};
|
|
16
20
|
export var FlexSplitButtonLoading = {
|
|
17
21
|
render: function () { return (React.createElement("div", { className: "s-flex s-gap-3" },
|
|
18
22
|
React.createElement(FlexSplitButton, { label: "Sending", variant: "highlight", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "highlight", icon: ChevronDownIcon }) }),
|
|
19
23
|
React.createElement(FlexSplitButton, { label: "Sending", variant: "primary", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "primary", icon: ChevronDownIcon }) }),
|
|
20
24
|
React.createElement(FlexSplitButton, { label: "Sending", variant: "outline", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "outline", icon: ChevronDownIcon }) }),
|
|
21
|
-
React.createElement(FlexSplitButton, { label: "Sending", variant: "
|
|
25
|
+
React.createElement(FlexSplitButton, { label: "Sending", variant: "highlight-secondary", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "highlight-secondary", icon: ChevronDownIcon }) }),
|
|
26
|
+
React.createElement(FlexSplitButton, { label: "Sending", variant: "warning", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "warning", icon: ChevronDownIcon }) }),
|
|
27
|
+
React.createElement(FlexSplitButton, { label: "Sending", variant: "warning-secondary", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "warning-secondary", icon: ChevronDownIcon }) }),
|
|
28
|
+
React.createElement(FlexSplitButton, { label: "Sending", variant: "ghost", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "ghost", icon: ChevronDownIcon }) }),
|
|
29
|
+
React.createElement(FlexSplitButton, { label: "Sending", variant: "ghost-secondary", icon: ArrowUpIcon, isLoading: true, splitAction: React.createElement(Button, { size: "mini", variant: "ghost-secondary", icon: ChevronDownIcon }) }))); },
|
|
22
30
|
};
|
|
23
31
|
//# sourceMappingURL=SplitButton.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitButton.stories.js","sourceRoot":"","sources":["../../../src/stories/SplitButton.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEhE,IAAM,IAAI,GAAuD;IAC/D,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,uBAAuB,GAAU;IAC5C,MAAM,EAAE,cAAM,OAAA,CACZ,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,WAAW,EACjB,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,eAAe,GAAI,GAEnE;QACF,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EAC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GACrB,GAEJ;QACF,oBAAC,eAAe,IACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,SAAS,EACjB,IAAI,EAAE,WAAW,EACjB,SAAS,QACT,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAE,eAAe,GAAI,GAEjE;QACF,oBAAC,eAAe,IACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,mBAAmB,EAC3B,IAAI,EAAE,WAAW,EACjB,SAAS,QACT,WAAW,EACT,oBAAC,MAAM,IACL,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,mBAAmB,EAC3B,IAAI,EAAE,eAAe,GACrB,GAEJ;QACF,oBAAC,eAAe,IACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,WAAW,EACjB,SAAS,QACT,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAE,eAAe,GAAI,GAE/D;QACF,oBAAC,eAAe,IACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,iBAAiB,EACzB,IAAI,EAAE,WAAW,EACjB,SAAS,QACT,WAAW,EACT,oBAAC,MAAM,IACL,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,iBAAiB,EACzB,IAAI,EAAE,eAAe,GACrB,GAEJ,CACE,CACP,EAvFa,CAuFb;CACF,CAAC"}
|
package/dist/sparkle.css
CHANGED
|
@@ -2439,6 +2439,10 @@ select {
|
|
|
2439
2439
|
word-break: break-all;
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
|
+
.\!s-rounded-none {
|
|
2443
|
+
border-radius: 0px !important;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2442
2446
|
.s-rounded {
|
|
2443
2447
|
border-radius: 0.25rem;
|
|
2444
2448
|
}
|
|
@@ -2451,16 +2455,16 @@ select {
|
|
|
2451
2455
|
border-radius: 1.5rem;
|
|
2452
2456
|
}
|
|
2453
2457
|
|
|
2454
|
-
.s-rounded-\[
|
|
2455
|
-
border-radius:
|
|
2458
|
+
.s-rounded-\[22px\] {
|
|
2459
|
+
border-radius: 22px;
|
|
2456
2460
|
}
|
|
2457
2461
|
|
|
2458
|
-
.s-rounded-\[
|
|
2459
|
-
border-radius:
|
|
2462
|
+
.s-rounded-\[24\%\] {
|
|
2463
|
+
border-radius: 24%;
|
|
2460
2464
|
}
|
|
2461
2465
|
|
|
2462
|
-
.s-rounded-\[
|
|
2463
|
-
border-radius:
|
|
2466
|
+
.s-rounded-\[24px\] {
|
|
2467
|
+
border-radius: 24px;
|
|
2464
2468
|
}
|
|
2465
2469
|
|
|
2466
2470
|
.s-rounded-\[30px\] {
|
|
@@ -2471,10 +2475,6 @@ select {
|
|
|
2471
2475
|
border-radius: 32px;
|
|
2472
2476
|
}
|
|
2473
2477
|
|
|
2474
|
-
.s-rounded-\[38px\] {
|
|
2475
|
-
border-radius: 38px;
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
2478
|
.s-rounded-\[inherit\] {
|
|
2479
2479
|
border-radius: inherit;
|
|
2480
2480
|
}
|
|
@@ -2499,6 +2499,26 @@ select {
|
|
|
2499
2499
|
border-radius: 0.75rem;
|
|
2500
2500
|
}
|
|
2501
2501
|
|
|
2502
|
+
.\!s-rounded-b-none {
|
|
2503
|
+
border-bottom-right-radius: 0px !important;
|
|
2504
|
+
border-bottom-left-radius: 0px !important;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
.\!s-rounded-l-none {
|
|
2508
|
+
border-top-left-radius: 0px !important;
|
|
2509
|
+
border-bottom-left-radius: 0px !important;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
.\!s-rounded-r-none {
|
|
2513
|
+
border-top-right-radius: 0px !important;
|
|
2514
|
+
border-bottom-right-radius: 0px !important;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
.\!s-rounded-t-none {
|
|
2518
|
+
border-top-left-radius: 0px !important;
|
|
2519
|
+
border-top-right-radius: 0px !important;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2502
2522
|
.s-rounded-t-2xl {
|
|
2503
2523
|
border-top-left-radius: 1rem;
|
|
2504
2524
|
border-top-right-radius: 1rem;
|
|
@@ -2516,6 +2536,10 @@ select {
|
|
|
2516
2536
|
border-bottom-width: 1px;
|
|
2517
2537
|
}
|
|
2518
2538
|
|
|
2539
|
+
.s-border-b-0 {
|
|
2540
|
+
border-bottom-width: 0px;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2519
2543
|
.s-border-l {
|
|
2520
2544
|
border-left-width: 1px;
|
|
2521
2545
|
}
|
|
@@ -2524,6 +2548,10 @@ select {
|
|
|
2524
2548
|
border-right-width: 1px;
|
|
2525
2549
|
}
|
|
2526
2550
|
|
|
2551
|
+
.s-border-r-0 {
|
|
2552
|
+
border-right-width: 0px;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2527
2555
|
.s-border-t {
|
|
2528
2556
|
border-top-width: 1px;
|
|
2529
2557
|
}
|
|
@@ -5679,6 +5707,11 @@ select {
|
|
|
5679
5707
|
color: rgb(75 171 255 / var(--tw-text-opacity));
|
|
5680
5708
|
}
|
|
5681
5709
|
|
|
5710
|
+
.hover\:s-text-highlight-500:hover {
|
|
5711
|
+
--tw-text-opacity: 1;
|
|
5712
|
+
color: rgb(28 145 255 / var(--tw-text-opacity));
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5682
5715
|
.hover\:s-text-highlight-700:hover {
|
|
5683
5716
|
--tw-text-opacity: 1;
|
|
5684
5717
|
color: rgb(10 108 198 / var(--tw-text-opacity));
|
|
@@ -5734,6 +5767,11 @@ select {
|
|
|
5734
5767
|
color: rgb(237 117 108 / var(--tw-text-opacity));
|
|
5735
5768
|
}
|
|
5736
5769
|
|
|
5770
|
+
.hover\:s-text-warning-500:hover {
|
|
5771
|
+
--tw-text-opacity: 1;
|
|
5772
|
+
color: rgb(225 67 34 / var(--tw-text-opacity));
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5737
5775
|
.hover\:s-text-warning-700:hover {
|
|
5738
5776
|
--tw-text-opacity: 1;
|
|
5739
5777
|
color: rgb(178 46 19 / var(--tw-text-opacity));
|
|
@@ -8432,6 +8470,11 @@ select {
|
|
|
8432
8470
|
background-color: rgb(8 80 146 / var(--tw-bg-opacity));
|
|
8433
8471
|
}
|
|
8434
8472
|
|
|
8473
|
+
:is(.s-dark .dark\:hover\:s-bg-highlight-900:hover) {
|
|
8474
|
+
--tw-bg-opacity: 1;
|
|
8475
|
+
background-color: rgb(7 53 95 / var(--tw-bg-opacity));
|
|
8476
|
+
}
|
|
8477
|
+
|
|
8435
8478
|
:is(.s-dark .dark\:hover\:s-bg-muted-background-night:hover) {
|
|
8436
8479
|
--tw-bg-opacity: 1;
|
|
8437
8480
|
background-color: rgb(28 34 45 / var(--tw-bg-opacity));
|
|
@@ -8479,6 +8522,11 @@ select {
|
|
|
8479
8522
|
background-color: rgb(34 10 4 / var(--tw-bg-opacity));
|
|
8480
8523
|
}
|
|
8481
8524
|
|
|
8525
|
+
:is(.s-dark .dark\:hover\:s-bg-warning-900:hover) {
|
|
8526
|
+
--tw-bg-opacity: 1;
|
|
8527
|
+
background-color: rgb(87 22 9 / var(--tw-bg-opacity));
|
|
8528
|
+
}
|
|
8529
|
+
|
|
8482
8530
|
:is(.s-dark .hover\:dark\:s-bg-highlight-200-night):hover {
|
|
8483
8531
|
--tw-bg-opacity: 1;
|
|
8484
8532
|
background-color: rgb(8 80 146 / var(--tw-bg-opacity));
|
package/package.json
CHANGED
|
@@ -48,37 +48,37 @@ const avatarVariants = cva(
|
|
|
48
48
|
{
|
|
49
49
|
rounded: false,
|
|
50
50
|
size: "xs",
|
|
51
|
-
className: "s-rounded-
|
|
51
|
+
className: "s-rounded-md",
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
rounded: false,
|
|
55
55
|
size: "sm",
|
|
56
|
-
className: "s-rounded-
|
|
56
|
+
className: "s-rounded-lg",
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
rounded: false,
|
|
60
60
|
size: "md",
|
|
61
|
-
className: "s-rounded-
|
|
61
|
+
className: "s-rounded-xl",
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
rounded: false,
|
|
65
65
|
size: "lg",
|
|
66
|
-
className: "s-rounded-
|
|
66
|
+
className: "s-rounded-2xl",
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
rounded: false,
|
|
70
70
|
size: "xl",
|
|
71
|
-
className: "s-rounded-[
|
|
71
|
+
className: "s-rounded-[22px]",
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
rounded: false,
|
|
75
75
|
size: "2xl",
|
|
76
|
-
className: "s-rounded-[
|
|
76
|
+
className: "s-rounded-[32px]",
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
rounded: false,
|
|
80
80
|
size: "auto",
|
|
81
|
-
className: "s-rounded-[
|
|
81
|
+
className: "s-rounded-[24%]",
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
84
|
defaultVariants: {
|
|
@@ -24,7 +24,9 @@ const PULSE_ANIMATION_DURATION = 1;
|
|
|
24
24
|
export const BUTTON_VARIANTS = [
|
|
25
25
|
"primary",
|
|
26
26
|
"highlight",
|
|
27
|
+
"highlight-secondary",
|
|
27
28
|
"warning",
|
|
29
|
+
"warning-secondary",
|
|
28
30
|
"outline",
|
|
29
31
|
"ghost",
|
|
30
32
|
"ghost-secondary",
|
|
@@ -59,6 +61,21 @@ const buttonVariants = cva(
|
|
|
59
61
|
"active:s-bg-highlight-dark",
|
|
60
62
|
"disabled:s-bg-highlight-muted disabled:s-text-highlight-50/60 dark:disabled:s-bg-highlight-muted-night"
|
|
61
63
|
),
|
|
64
|
+
"highlight-secondary": cn(
|
|
65
|
+
"s-border",
|
|
66
|
+
"s-border-border dark:s-border-border-night",
|
|
67
|
+
"s-text-highlight-500 dark:s-text-highlight-500-night",
|
|
68
|
+
"s-bg-background dark:s-bg-background-night",
|
|
69
|
+
"hover:s-text-highlight-500 dark:hover:s-text-highlight-500-night",
|
|
70
|
+
"hover:s-bg-highlight-50 dark:hover:s-bg-highlight-900",
|
|
71
|
+
"hover:s-border-primary-150 dark:hover:s-border-border-night",
|
|
72
|
+
"active:s-bg-primary-300 dark:active:s-bg-primary-900",
|
|
73
|
+
"disabled:s-text-primary-muted dark:disabled:s-text-primary-muted-night",
|
|
74
|
+
"disabled:s-border-primary-100 dark:disabled:s-border-primary-100-night",
|
|
75
|
+
"disabled:hover:s-bg-background dark:disabled:hover:s-bg-background-night",
|
|
76
|
+
"disabled:hover:s-border-primary-100 dark:disabled:hover:s-border-primary-100-night",
|
|
77
|
+
"disabled:hover:s-text-primary-muted dark:disabled:hover:s-text-primary-muted-night"
|
|
78
|
+
),
|
|
62
79
|
warning: cn(
|
|
63
80
|
"s-bg-warning",
|
|
64
81
|
"s-text-warning-50",
|
|
@@ -66,6 +83,21 @@ const buttonVariants = cva(
|
|
|
66
83
|
"active:s-bg-warning-dark",
|
|
67
84
|
"disabled:s-bg-warning-muted disabled:s-text-highlight-50/60 dark:disabled:s-bg-warning-muted-night"
|
|
68
85
|
),
|
|
86
|
+
"warning-secondary": cn(
|
|
87
|
+
"s-border",
|
|
88
|
+
"s-border-border dark:s-border-border-night",
|
|
89
|
+
"s-text-warning-500 dark:s-text-warning-500-night",
|
|
90
|
+
"s-bg-background dark:s-bg-background-night",
|
|
91
|
+
"hover:s-text-warning-500 dark:hover:s-text-warning-500-night",
|
|
92
|
+
"hover:s-bg-warning-50 dark:hover:s-bg-warning-900",
|
|
93
|
+
"hover:s-border-primary-150 dark:hover:s-border-border-night",
|
|
94
|
+
"active:s-bg-primary-300 dark:active:s-bg-primary-900",
|
|
95
|
+
"disabled:s-text-primary-muted dark:disabled:s-text-primary-muted-night",
|
|
96
|
+
"disabled:s-border-primary-100 dark:disabled:s-border-primary-100-night",
|
|
97
|
+
"disabled:hover:s-bg-background dark:disabled:hover:s-bg-background-night",
|
|
98
|
+
"disabled:hover:s-border-primary-100 dark:disabled:hover:s-border-primary-100-night",
|
|
99
|
+
"disabled:hover:s-text-primary-muted dark:disabled:hover:s-text-primary-muted-night"
|
|
100
|
+
),
|
|
69
101
|
outline: cn(
|
|
70
102
|
"s-border",
|
|
71
103
|
"s-border-border dark:s-border-border-night",
|
|
@@ -152,7 +184,9 @@ type SpinnerVariant = NonNullable<SpinnerProps["variant"]>;
|
|
|
152
184
|
const spinnerVariantsMap: Record<ButtonVariantType, SpinnerVariant> = {
|
|
153
185
|
primary: "revert",
|
|
154
186
|
highlight: "light",
|
|
187
|
+
"highlight-secondary": "mono",
|
|
155
188
|
warning: "light",
|
|
189
|
+
"warning-secondary": "mono",
|
|
156
190
|
outline: "mono",
|
|
157
191
|
ghost: "mono",
|
|
158
192
|
"ghost-secondary": "mono",
|
|
@@ -164,7 +198,9 @@ const chevronVariantMap = {
|
|
|
164
198
|
ghost: "s-text-faint",
|
|
165
199
|
"ghost-secondary": "s-text-faint",
|
|
166
200
|
highlight: "s-text-white/60",
|
|
201
|
+
"highlight-secondary": "s-text-highlight-500 dark:s-text-highlight-500-night",
|
|
167
202
|
warning: "s-text-white/60",
|
|
203
|
+
"warning-secondary": "s-text-warning-500 dark:s-text-warning-500-night",
|
|
168
204
|
} as const;
|
|
169
205
|
|
|
170
206
|
export interface MetaButtonProps
|