@dust-tt/sparkle 0.2.263 → 0.2.265-rc-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 +96 -63
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button.d.ts +2 -3
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +10 -31
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Input.d.ts +2 -11
- package/dist/esm/components/Input.d.ts.map +1 -1
- package/dist/esm/components/Input.js +9 -14
- package/dist/esm/components/Input.js.map +1 -1
- package/dist/esm/components/Label.d.ts +5 -0
- package/dist/esm/components/Label.d.ts.map +1 -0
- package/dist/esm/components/Label.js +12 -0
- package/dist/esm/components/Label.js.map +1 -0
- package/dist/esm/components/Searchbar.js +4 -4
- package/dist/esm/components/Searchbar.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/stories/Button.stories.d.ts.map +1 -1
- package/dist/esm/stories/Button.stories.js +1 -9
- package/dist/esm/stories/Button.stories.js.map +1 -1
- package/dist/esm/stories/DataTable.stories.js +4 -4
- package/dist/esm/stories/DataTable.stories.js.map +1 -1
- package/dist/esm/stories/Input.stories.d.ts +1 -14
- package/dist/esm/stories/Input.stories.d.ts.map +1 -1
- package/dist/esm/stories/Input.stories.js +9 -9
- package/dist/esm/stories/Input.stories.js.map +1 -1
- package/dist/esm/stories/Label.stories.d.ts +8 -0
- package/dist/esm/stories/Label.stories.d.ts.map +1 -0
- package/dist/esm/stories/Label.stories.js +17 -0
- package/dist/esm/stories/Label.stories.js.map +1 -0
- package/dist/esm/stories/Modal.stories.js +1 -1
- package/dist/esm/stories/Modal.stories.js.map +1 -1
- package/dist/sparkle.css +83 -32
- package/package.json +2 -1
- package/src/components/Button.tsx +11 -40
- package/src/components/Input.tsx +26 -60
- package/src/components/Label.tsx +23 -0
- package/src/components/Searchbar.tsx +4 -4
- package/src/components/index.ts +9 -3
- package/src/stories/Button.stories.tsx +0 -47
- package/src/stories/DataTable.stories.tsx +4 -4
- package/src/stories/Input.stories.tsx +3 -10
- package/src/stories/Label.stories.tsx +25 -0
- package/src/stories/Modal.stories.tsx +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-label").LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const LabelDemo: () => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Label.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/Label.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,IAAI;;;CAGoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,SAAS,yBAYrB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkbox, Label } from "../index_with_tw_base";
|
|
3
|
+
var meta = {
|
|
4
|
+
title: "Primitives/Label",
|
|
5
|
+
component: Label,
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export var LabelDemo = function () {
|
|
9
|
+
var handleChange = function () {
|
|
10
|
+
// This function intentionally left blank
|
|
11
|
+
};
|
|
12
|
+
return (React.createElement("div", null,
|
|
13
|
+
React.createElement("div", { className: "s-flex s-items-center s-space-x-2" },
|
|
14
|
+
React.createElement(Checkbox, { onChange: handleChange }),
|
|
15
|
+
React.createElement(Label, { htmlFor: "terms" }, "Accept terms and conditions"))));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../src/stories/Label.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAExD,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;CACY,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,MAAM,CAAC,IAAM,SAAS,GAAG;IACvB,IAAM,YAAY,GAAG;QACnB,yCAAyC;IAC3C,CAAC,CAAC;IACF,OAAO,CACL;QACE,6BAAK,SAAS,EAAC,mCAAmC;YAChD,oBAAC,QAAQ,IAAC,QAAQ,EAAE,YAAY,GAAI;YACpC,oBAAC,KAAK,IAAC,OAAO,EAAC,OAAO,kCAAoC,CACtD,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -22,7 +22,7 @@ export var ModalExample = function () {
|
|
|
22
22
|
React.createElement("div", { className: "s-flex s-flex-col s-gap-3" },
|
|
23
23
|
React.createElement("div", { className: "s-mt-4 s-flex-none s-text-left" }, "I'm the modal content"),
|
|
24
24
|
React.createElement("div", { className: "s-w-64" },
|
|
25
|
-
React.createElement(Input, { placeholder: "Input placeholder", className: "s-mt-4", value: inputValue, onChange: setInputValue, name: "input-name" })))),
|
|
25
|
+
React.createElement(Input, { placeholder: "Input placeholder", className: "s-mt-4", value: inputValue, onChange: function (e) { return setInputValue(e.target.value); }, name: "input-name" })))),
|
|
26
26
|
React.createElement(Modal, { isOpen: isOpenWithActionAndChange, onClose: function () { return setIsOpenWithActionAndChange(false); }, action: {
|
|
27
27
|
labelVisible: true,
|
|
28
28
|
label: "An action",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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uB,CAAC,IAAI,CAAC,EAA7B,CAA6B,GAC5C;YACF,oBAAC,MAAM,IACL,KAAK,EAAC,uBAAuB,EAC7B,OAAO,EAAE,cAAM,OAAA,2BAA2B,CAAC,IAAI,CAAC,EAAjC,CAAiC,GAChD;YACF,oBAAC,MAAM,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,cAAM,OAAA,mBAAmB,CAAC,IAAI,CAAC,EAAzB,CAAyB,GAAI,CACpE,CACM,CACf,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/sparkle.css
CHANGED
|
@@ -1876,6 +1876,11 @@ select {
|
|
|
1876
1876
|
border-color: rgb(241 245 249 / var(--tw-border-opacity));
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
+
.s-border-border-dark {
|
|
1880
|
+
--tw-border-opacity: 1;
|
|
1881
|
+
border-color: rgb(226 232 240 / var(--tw-border-opacity));
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1879
1884
|
.s-border-cyan-100 {
|
|
1880
1885
|
--tw-border-opacity: 1;
|
|
1881
1886
|
border-color: rgb(207 250 254 / var(--tw-border-opacity));
|
|
@@ -3371,16 +3376,6 @@ select {
|
|
|
3371
3376
|
padding-right: 1.5rem;
|
|
3372
3377
|
}
|
|
3373
3378
|
|
|
3374
|
-
.s-py-0 {
|
|
3375
|
-
padding-top: 0px;
|
|
3376
|
-
padding-bottom: 0px;
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
.s-py-0\.5 {
|
|
3380
|
-
padding-top: 0.125rem;
|
|
3381
|
-
padding-bottom: 0.125rem;
|
|
3382
|
-
}
|
|
3383
|
-
|
|
3384
3379
|
.s-py-1 {
|
|
3385
3380
|
padding-top: 0.25rem;
|
|
3386
3381
|
padding-bottom: 0.25rem;
|
|
@@ -3436,14 +3431,6 @@ select {
|
|
|
3436
3431
|
padding-bottom: 2rem;
|
|
3437
3432
|
}
|
|
3438
3433
|
|
|
3439
|
-
.s-pl-0 {
|
|
3440
|
-
padding-left: 0px;
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
.s-pl-0\.5 {
|
|
3444
|
-
padding-left: 0.125rem;
|
|
3445
|
-
}
|
|
3446
|
-
|
|
3447
3434
|
.s-pl-1 {
|
|
3448
3435
|
padding-left: 0.25rem;
|
|
3449
3436
|
}
|
|
@@ -3504,10 +3491,6 @@ select {
|
|
|
3504
3491
|
padding-right: 1rem;
|
|
3505
3492
|
}
|
|
3506
3493
|
|
|
3507
|
-
.s-pr-5 {
|
|
3508
|
-
padding-right: 1.25rem;
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
3494
|
.s-pr-6 {
|
|
3512
3495
|
padding-right: 1.5rem;
|
|
3513
3496
|
}
|
|
@@ -3806,6 +3789,11 @@ select {
|
|
|
3806
3789
|
color: rgb(2 44 34 / var(--tw-text-opacity));
|
|
3807
3790
|
}
|
|
3808
3791
|
|
|
3792
|
+
.s-text-foreground {
|
|
3793
|
+
--tw-text-opacity: 1;
|
|
3794
|
+
color: rgb(2 6 23 / var(--tw-text-opacity));
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3809
3797
|
.s-text-fuchsia-700 {
|
|
3810
3798
|
--tw-text-opacity: 1;
|
|
3811
3799
|
color: rgb(162 28 175 / var(--tw-text-opacity));
|
|
@@ -4511,6 +4499,38 @@ select {
|
|
|
4511
4499
|
}
|
|
4512
4500
|
}
|
|
4513
4501
|
|
|
4502
|
+
.file\:s-border-0::file-selector-button {
|
|
4503
|
+
border-width: 0px;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
.file\:s-bg-transparent::file-selector-button {
|
|
4507
|
+
background-color: transparent;
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
.file\:s-text-sm::file-selector-button {
|
|
4511
|
+
font-size: 0.875rem;
|
|
4512
|
+
line-height: 1.25rem;
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
.file\:s-font-medium::file-selector-button {
|
|
4516
|
+
font-weight: 500;
|
|
4517
|
+
}
|
|
4518
|
+
|
|
4519
|
+
.file\:s-text-foreground::file-selector-button {
|
|
4520
|
+
--tw-text-opacity: 1;
|
|
4521
|
+
color: rgb(2 6 23 / var(--tw-text-opacity));
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4524
|
+
.placeholder\:s-text-muted-foreground::-moz-placeholder {
|
|
4525
|
+
--tw-text-opacity: 1;
|
|
4526
|
+
color: rgb(100 116 139 / var(--tw-text-opacity));
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4529
|
+
.placeholder\:s-text-muted-foreground::placeholder {
|
|
4530
|
+
--tw-text-opacity: 1;
|
|
4531
|
+
color: rgb(100 116 139 / var(--tw-text-opacity));
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4514
4534
|
.first\:s-pt-0:first-child {
|
|
4515
4535
|
padding-top: 0px;
|
|
4516
4536
|
}
|
|
@@ -4731,6 +4751,26 @@ select {
|
|
|
4731
4751
|
--tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity));
|
|
4732
4752
|
}
|
|
4733
4753
|
|
|
4754
|
+
.focus-visible\:s-border-primary-400:focus-visible {
|
|
4755
|
+
--tw-border-opacity: 1;
|
|
4756
|
+
border-color: rgb(148 163 184 / var(--tw-border-opacity));
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
.focus-visible\:s-outline-none:focus-visible {
|
|
4760
|
+
outline: 2px solid transparent;
|
|
4761
|
+
outline-offset: 2px;
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4764
|
+
.focus-visible\:s-ring-2:focus-visible {
|
|
4765
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
4766
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
4767
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
.focus-visible\:s-ring-offset-2:focus-visible {
|
|
4771
|
+
--tw-ring-offset-width: 2px;
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4734
4774
|
.active\:s-scale-100:active {
|
|
4735
4775
|
--tw-scale-x: 1;
|
|
4736
4776
|
--tw-scale-y: 1;
|
|
@@ -4848,6 +4888,19 @@ select {
|
|
|
4848
4888
|
color: rgb(37 99 235 / var(--tw-text-opacity));
|
|
4849
4889
|
}
|
|
4850
4890
|
|
|
4891
|
+
.disabled\:s-cursor-not-allowed:disabled {
|
|
4892
|
+
cursor: not-allowed;
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
.disabled\:s-text-muted-foreground:disabled {
|
|
4896
|
+
--tw-text-opacity: 1;
|
|
4897
|
+
color: rgb(100 116 139 / var(--tw-text-opacity));
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
.disabled\:s-opacity-50:disabled {
|
|
4901
|
+
opacity: 0.5;
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4851
4904
|
.s-group\/col:hover .group-hover\/col\:s-text-action-400 {
|
|
4852
4905
|
--tw-text-opacity: 1;
|
|
4853
4906
|
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
@@ -4930,6 +4983,14 @@ select {
|
|
|
4930
4983
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
4931
4984
|
}
|
|
4932
4985
|
|
|
4986
|
+
.s-peer:disabled ~ .peer-disabled\:s-cursor-not-allowed {
|
|
4987
|
+
cursor: not-allowed;
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4990
|
+
.s-peer:disabled ~ .peer-disabled\:s-opacity-70 {
|
|
4991
|
+
opacity: 0.7;
|
|
4992
|
+
}
|
|
4993
|
+
|
|
4933
4994
|
.data-\[disabled\]\:s-pointer-events-none[data-disabled] {
|
|
4934
4995
|
pointer-events: none;
|
|
4935
4996
|
}
|
|
@@ -5208,16 +5269,6 @@ select {
|
|
|
5208
5269
|
color: rgb(252 165 165 / var(--tw-text-opacity));
|
|
5209
5270
|
}
|
|
5210
5271
|
|
|
5211
|
-
:is(.s-dark .dark\:s-placeholder-element-700-dark)::-moz-placeholder {
|
|
5212
|
-
--tw-placeholder-opacity: 1;
|
|
5213
|
-
color: rgb(203 213 225 / var(--tw-placeholder-opacity));
|
|
5214
|
-
}
|
|
5215
|
-
|
|
5216
|
-
:is(.s-dark .dark\:s-placeholder-element-700-dark)::placeholder {
|
|
5217
|
-
--tw-placeholder-opacity: 1;
|
|
5218
|
-
color: rgb(203 213 225 / var(--tw-placeholder-opacity));
|
|
5219
|
-
}
|
|
5220
|
-
|
|
5221
5272
|
:is(.s-dark .dark\:s-ring-structure-300-dark) {
|
|
5222
5273
|
--tw-ring-opacity: 1;
|
|
5223
5274
|
--tw-ring-color: rgb(71 85 105 / var(--tw-ring-opacity));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dust-tt/sparkle",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.265-rc-1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
|
|
6
6
|
"tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"@emoji-mart/react": "^1.1.1",
|
|
96
96
|
"@headlessui/react": "^1.7.19",
|
|
97
97
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
98
|
+
"@radix-ui/react-label": "^2.1.0",
|
|
98
99
|
"@radix-ui/react-popover": "^1.1.2",
|
|
99
100
|
"@radix-ui/react-separator": "^1.1.0",
|
|
100
101
|
"@radix-ui/react-slot": "^1.1.0",
|
|
@@ -10,7 +10,6 @@ import { Tooltip } from "@sparkle/components/Tooltip";
|
|
|
10
10
|
import { ChevronDownIcon, ChevronUpDownIcon } from "@sparkle/icons/solid";
|
|
11
11
|
import { classNames } from "@sparkle/lib/utils";
|
|
12
12
|
|
|
13
|
-
import { Avatar } from "./Avatar";
|
|
14
13
|
import { Icon, IconProps } from "./Icon";
|
|
15
14
|
|
|
16
15
|
const BUTTON_VARIANTS = [
|
|
@@ -19,7 +18,6 @@ const BUTTON_VARIANTS = [
|
|
|
19
18
|
"secondary",
|
|
20
19
|
"secondaryWarning",
|
|
21
20
|
"tertiary",
|
|
22
|
-
"avatar",
|
|
23
21
|
] as const;
|
|
24
22
|
|
|
25
23
|
export type ButtonVariantType = (typeof BUTTON_VARIANTS)[number];
|
|
@@ -34,31 +32,23 @@ export type ButtonProps = {
|
|
|
34
32
|
label: string;
|
|
35
33
|
labelVisible?: boolean;
|
|
36
34
|
icon?: ComponentType;
|
|
37
|
-
avatar?: string;
|
|
38
35
|
className?: string;
|
|
39
36
|
tooltipPosition?: React.ComponentProps<typeof Tooltip>["side"];
|
|
40
37
|
disabledTooltip?: boolean;
|
|
41
38
|
};
|
|
42
39
|
|
|
43
40
|
const textClasses = {
|
|
44
|
-
xs: "s-text-xs s-font-semibold",
|
|
45
|
-
sm: "s-text-sm s-font-semibold",
|
|
46
|
-
md: "s-text-base s-font-bold",
|
|
47
|
-
lg: "s-text-lg s-font-bold",
|
|
41
|
+
xs: "s-text-xs s-font-semibold s-rounded-lg",
|
|
42
|
+
sm: "s-text-sm s-font-semibold s-rounded-xl",
|
|
43
|
+
md: "s-text-base s-font-bold s-rounded-2xl",
|
|
44
|
+
lg: "s-text-lg s-font-bold s-rounded-3xl",
|
|
48
45
|
};
|
|
49
46
|
|
|
50
47
|
const sizeClasses = {
|
|
51
|
-
xs: "s-gap-x-1 s-px-
|
|
52
|
-
sm: "s-gap-x-1 s-px-
|
|
53
|
-
md: "s-gap-x-1.5 s-px-
|
|
54
|
-
lg: "s-gap-x-3 s-px-
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const sizeAvatarClasses = {
|
|
58
|
-
xs: "s-gap-x-1 s-pl-0.5 s-pr-3 s-py-0.5",
|
|
59
|
-
sm: "s-gap-x-1 s-pl-0.5 s-pr-4 s-py-0.5",
|
|
60
|
-
md: "s-gap-x-1.5 s-pl-1 s-pr-5 s-py-1",
|
|
61
|
-
lg: "s-gap-x-2 s-pl-0 s-pr-6 s-py-0",
|
|
48
|
+
xs: "s-gap-x-1 s-px-2 s-h-7",
|
|
49
|
+
sm: "s-gap-x-1 s-px-3 s-h-9",
|
|
50
|
+
md: "s-gap-x-1.5 s-px-4 s-h-12",
|
|
51
|
+
lg: "s-gap-x-3 s-px-5 s-h-16",
|
|
62
52
|
};
|
|
63
53
|
|
|
64
54
|
const containerClasses = {
|
|
@@ -142,23 +132,6 @@ const variantClasses = {
|
|
|
142
132
|
"dark:s-text-element-600-dark dark:s-border-structure-100-dark dark:s-bg-structure-200-dark",
|
|
143
133
|
},
|
|
144
134
|
},
|
|
145
|
-
avatar: {
|
|
146
|
-
base: "s-text-element-800 s-border-structure-200 s-bg-structure-0",
|
|
147
|
-
hover:
|
|
148
|
-
"hover:s-bg-action-50 hover:s-text-action-500 hover:s-border-action-200",
|
|
149
|
-
active:
|
|
150
|
-
"active:s-bg-action-100 active:s-text-action-600 active:s-border-action-500",
|
|
151
|
-
disabled: "s-text-element-500 s-border-structure-200 s-bg-structure-0",
|
|
152
|
-
dark: {
|
|
153
|
-
base: "dark:s-text-element-700-dark dark:s-border-structure-300-dark dark:s-bg-structure-100-dark",
|
|
154
|
-
hover:
|
|
155
|
-
"dark:hover:s-bg-action-50-dark dark:hover:s-border-action-300-dark",
|
|
156
|
-
active:
|
|
157
|
-
"dark:active:s-bg-action-100-dark dark:active:s-border-action-500-dark",
|
|
158
|
-
disabled:
|
|
159
|
-
"dark:s-text-element-600-dark dark:s-border-structure-100-dark dark:s-bg-structure-200-dark",
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
135
|
};
|
|
163
136
|
|
|
164
137
|
const transitionClasses =
|
|
@@ -178,13 +151,12 @@ export function Button({
|
|
|
178
151
|
icon,
|
|
179
152
|
className = "",
|
|
180
153
|
tooltipPosition,
|
|
181
|
-
hasMagnifying =
|
|
154
|
+
hasMagnifying = false,
|
|
182
155
|
disabledTooltip = false,
|
|
183
|
-
avatar,
|
|
184
156
|
}: ButtonProps) {
|
|
185
157
|
let buttonClasses = classNames(
|
|
186
|
-
"s-inline-flex s-items-center s-border s-scale-100 s-box-border s-whitespace-nowrap
|
|
187
|
-
|
|
158
|
+
"s-inline-flex s-items-center s-border s-scale-100 s-box-border s-whitespace-nowrap",
|
|
159
|
+
sizeClasses[size],
|
|
188
160
|
textClasses[size],
|
|
189
161
|
className
|
|
190
162
|
);
|
|
@@ -220,7 +192,6 @@ export function Button({
|
|
|
220
192
|
aria-label={label}
|
|
221
193
|
>
|
|
222
194
|
{icon && <Icon visual={icon} size={size as IconProps["size"]} />}
|
|
223
|
-
{avatar && <Avatar size={size} visual={avatar} isRounded />}
|
|
224
195
|
{labelVisible ? (
|
|
225
196
|
<div className={classNames("s-truncate", finalContainerClasses)}>
|
|
226
197
|
{label}
|
package/src/components/Input.tsx
CHANGED
|
@@ -1,88 +1,54 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "@sparkle/lib/utils";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
sm: "s-text-base s-rounded-md s-py-1.5 s-pl-4 s-pr-8",
|
|
7
|
-
md: "s-text-lg s-rounded-lg s-py-2 s-pl-4 s-pr-10",
|
|
8
|
-
};
|
|
5
|
+
import { Label } from "./Label";
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
size?: "sm" | "md";
|
|
13
|
-
value: string | null;
|
|
14
|
-
onChange?: (value: string) => void;
|
|
7
|
+
export interface InputProps
|
|
8
|
+
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
15
9
|
error?: string | null;
|
|
16
10
|
showErrorLabel?: boolean;
|
|
17
|
-
name: string;
|
|
18
|
-
isPassword?: boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
11
|
className?: string;
|
|
21
12
|
label?: string;
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const inputStyleClasses = cn(
|
|
16
|
+
"s-text-sm s-bg-background s-rounded-xl s-border s-border-border-dark s-flex s-h-9 s-w-full s-px-3 s-py-1.5 ",
|
|
17
|
+
"file:s-border-0 file:s-bg-transparent file:s-text-sm file:s-font-medium file:s-text-foreground",
|
|
18
|
+
"placeholder:s-text-muted-foreground",
|
|
19
|
+
"focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-offset-2 focus-visible:s-ring-ring focus-visible:s-border-primary-400",
|
|
20
|
+
"disabled:s-cursor-not-allowed disabled:s-opacity-50 disabled:s-text-muted-foreground"
|
|
21
|
+
);
|
|
24
22
|
|
|
25
23
|
export const Input = forwardRef<HTMLInputElement, InputProps>(
|
|
26
|
-
(
|
|
27
|
-
{
|
|
28
|
-
placeholder,
|
|
29
|
-
value,
|
|
30
|
-
size = "sm",
|
|
31
|
-
onChange,
|
|
32
|
-
error,
|
|
33
|
-
showErrorLabel = false,
|
|
34
|
-
name,
|
|
35
|
-
isPassword = false,
|
|
36
|
-
disabled = false,
|
|
37
|
-
className = "",
|
|
38
|
-
label,
|
|
39
|
-
maxLength,
|
|
40
|
-
},
|
|
41
|
-
ref
|
|
42
|
-
) => {
|
|
24
|
+
({ className, error, label, showErrorLabel = false, ...props }, ref) => {
|
|
43
25
|
return (
|
|
44
26
|
<div className="s-flex s-flex-col s-gap-1 s-p-px">
|
|
45
27
|
{label && (
|
|
46
|
-
<
|
|
47
|
-
htmlFor={name}
|
|
48
|
-
className="s-pb-1 s-text-
|
|
28
|
+
<Label
|
|
29
|
+
htmlFor={props.name}
|
|
30
|
+
className="s-pb-1 s-text-element-700 dark:s-text-element-700-dark"
|
|
49
31
|
>
|
|
50
32
|
{label}
|
|
51
|
-
</
|
|
33
|
+
</Label>
|
|
52
34
|
)}
|
|
53
35
|
<input
|
|
54
36
|
ref={ref}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
maxLength={maxLength}
|
|
59
|
-
className={classNames(
|
|
60
|
-
"s-w-full s-border-0 s-outline-none s-ring-1 focus:s-outline-none focus:s-ring-2",
|
|
61
|
-
"s-bg-structure-50 s-placeholder-element-700",
|
|
62
|
-
"dark:s-bg-structure-50-dark dark:s-placeholder-element-700-dark",
|
|
63
|
-
sizeInputClasses[size],
|
|
64
|
-
"s-transition-all s-duration-300 s-ease-out",
|
|
65
|
-
className ?? "",
|
|
37
|
+
className={cn(
|
|
38
|
+
inputStyleClasses,
|
|
39
|
+
className,
|
|
66
40
|
!error
|
|
67
|
-
?
|
|
41
|
+
? cn(
|
|
68
42
|
"s-ring-structure-200 focus:s-ring-action-300",
|
|
69
43
|
"dark:s-ring-structure-300-dark dark:focus:s-ring-action-300-dark"
|
|
70
44
|
)
|
|
71
|
-
:
|
|
45
|
+
: cn(
|
|
72
46
|
"s-ring-warning-200 focus:s-ring-warning-300",
|
|
73
47
|
"dark:s-ring-warning-200-dark dark:focus:s-ring-warning-300-dark"
|
|
74
|
-
)
|
|
75
|
-
disabled
|
|
76
|
-
? "s-text-element-500 hover:s-cursor-not-allowed"
|
|
77
|
-
: "s-text-element-900 dark:s-text-element-800-dark"
|
|
48
|
+
)
|
|
78
49
|
)}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onChange={(e) => {
|
|
82
|
-
onChange?.(e.target.value);
|
|
83
|
-
}}
|
|
84
|
-
data-1p-ignore={!isPassword}
|
|
85
|
-
disabled={disabled}
|
|
50
|
+
data-1p-ignore={props.type !== "password"}
|
|
51
|
+
{...props}
|
|
86
52
|
/>
|
|
87
53
|
<div className="s-ml-2 s-text-sm s-text-warning-500">
|
|
88
54
|
{showErrorLabel && error ? error : null}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
import { cn } from "@sparkle/lib/utils";
|
|
5
|
+
|
|
6
|
+
const labelVariants = cn(
|
|
7
|
+
"s-text-sm s-font-medium s-text-foreground s-leading-none",
|
|
8
|
+
"peer-disabled:s-cursor-not-allowed peer-disabled:s-opacity-70"
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
const Label = React.forwardRef<
|
|
12
|
+
React.ElementRef<typeof LabelPrimitive.Root>,
|
|
13
|
+
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
|
|
14
|
+
>(({ className, ...props }, ref) => (
|
|
15
|
+
<LabelPrimitive.Root
|
|
16
|
+
ref={ref}
|
|
17
|
+
className={cn(labelVariants, className)}
|
|
18
|
+
{...props}
|
|
19
|
+
/>
|
|
20
|
+
));
|
|
21
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
22
|
+
|
|
23
|
+
export { Label };
|
|
@@ -7,9 +7,9 @@ import { classNames } from "@sparkle/lib/utils";
|
|
|
7
7
|
import { IconButton } from "./IconButton";
|
|
8
8
|
|
|
9
9
|
const sizeClasses = {
|
|
10
|
-
xs: "s-text-xs s-h-[26px] s-pl-3 s-pr-6 s-pt-1.5",
|
|
11
|
-
sm: "s-text-sm s-h-[34px] s-pl-4 s-pr-8 s-pt-1.5",
|
|
12
|
-
md: "s-text-base s-h-[46px] s-pl-6 s-pr-10 s-pt-1.5",
|
|
10
|
+
xs: "s-text-xs s-h-[26px] s-pl-3 s-pr-6 s-pt-1.5 s-rounded-lg",
|
|
11
|
+
sm: "s-text-sm s-h-[34px] s-pl-4 s-pr-8 s-pt-1.5 s-rounded-xl",
|
|
12
|
+
md: "s-text-base s-h-[46px] s-pl-6 s-pr-10 s-pt-1.5 s-rounded-2xl",
|
|
13
13
|
};
|
|
14
14
|
const iconClasses = {
|
|
15
15
|
xs: "s-pr-2",
|
|
@@ -55,7 +55,7 @@ export const Searchbar = forwardRef<HTMLInputElement, SearchbarProps>(
|
|
|
55
55
|
ref={ref}
|
|
56
56
|
className={classNames(
|
|
57
57
|
"s-border-0 s-outline-none s-ring-1 s-ring-structure-200 focus:s-outline-none focus:s-ring-2",
|
|
58
|
-
"s-w-full s-
|
|
58
|
+
"s-w-full s-bg-structure-50 s-font-normal s-placeholder-element-600",
|
|
59
59
|
"s-ring-structure-200 focus:s-ring-action-300",
|
|
60
60
|
"dark:s-ring-structure-300-dark dark:focus:s-ring-action-300-dark",
|
|
61
61
|
"s-transition-all s-duration-300 s-ease-out",
|
package/src/components/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { default as DropzoneOverlay } from "./DropzoneOverlay";
|
|
|
21
21
|
export { ElementDialog } from "./ElementDialog";
|
|
22
22
|
export { ElementModal } from "./ElementModal";
|
|
23
23
|
export type { EmojiMartData } from "./EmojiPicker";
|
|
24
|
-
export { DataEmojiMart,EmojiPicker } from "./EmojiPicker";
|
|
24
|
+
export { DataEmojiMart, EmojiPicker } from "./EmojiPicker";
|
|
25
25
|
export { FilterChips } from "./FilterChips";
|
|
26
26
|
export { Div3D, Hover3D } from "./Hover3D";
|
|
27
27
|
export { Hoverable } from "./Hoverable";
|
|
@@ -30,6 +30,7 @@ export { IconButton } from "./IconButton";
|
|
|
30
30
|
export { IconToggleButton } from "./IconToggleButton";
|
|
31
31
|
export { Input } from "./Input";
|
|
32
32
|
export { Item } from "./Item";
|
|
33
|
+
export { Label } from "./Label";
|
|
33
34
|
export { Markdown } from "./Markdown";
|
|
34
35
|
export { Modal } from "./Modal";
|
|
35
36
|
export {
|
|
@@ -53,7 +54,12 @@ export { Notification } from "./Notification";
|
|
|
53
54
|
export { Page } from "./Page";
|
|
54
55
|
export { PaginatedCitationsGrid } from "./PaginatedCitationsGrid";
|
|
55
56
|
export { Pagination } from "./Pagination";
|
|
56
|
-
export {
|
|
57
|
+
export {
|
|
58
|
+
Popover,
|
|
59
|
+
PopoverContent,
|
|
60
|
+
PopoverRoot,
|
|
61
|
+
PopoverTrigger,
|
|
62
|
+
} from "./Popover";
|
|
57
63
|
export { Popup } from "./Popup";
|
|
58
64
|
export { PriceTable } from "./PriceTable";
|
|
59
65
|
export { RadioButton } from "./RadioButton";
|
|
@@ -71,4 +77,4 @@ export {
|
|
|
71
77
|
TooltipTrigger,
|
|
72
78
|
} from "./Tooltip";
|
|
73
79
|
export { Tree } from "./Tree";
|
|
74
|
-
export { ZoomableImageCitationWrapper } from "./ZoomableImageCitationWrapper";
|
|
80
|
+
export { ZoomableImageCitationWrapper } from "./ZoomableImageCitationWrapper";
|
|
@@ -256,53 +256,6 @@ export const ButtonExamples = () => (
|
|
|
256
256
|
disabled
|
|
257
257
|
/>
|
|
258
258
|
</div>
|
|
259
|
-
<div className="s-flex s-items-center s-gap-4">
|
|
260
|
-
<Button
|
|
261
|
-
variant="avatar"
|
|
262
|
-
size="lg"
|
|
263
|
-
label="@soupinou"
|
|
264
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
265
|
-
/>
|
|
266
|
-
<Button
|
|
267
|
-
variant="avatar"
|
|
268
|
-
size="md"
|
|
269
|
-
label="@soupinou"
|
|
270
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
271
|
-
/>
|
|
272
|
-
<Button
|
|
273
|
-
variant="avatar"
|
|
274
|
-
size="md"
|
|
275
|
-
label="@soupinou"
|
|
276
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
277
|
-
disabled={true}
|
|
278
|
-
/>
|
|
279
|
-
<Button
|
|
280
|
-
variant="avatar"
|
|
281
|
-
size="sm"
|
|
282
|
-
label="@soupinou"
|
|
283
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
284
|
-
/>
|
|
285
|
-
<Button
|
|
286
|
-
variant="avatar"
|
|
287
|
-
size="sm"
|
|
288
|
-
label="@soupinou"
|
|
289
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
290
|
-
disabled
|
|
291
|
-
/>
|
|
292
|
-
<Button
|
|
293
|
-
variant="avatar"
|
|
294
|
-
size="xs"
|
|
295
|
-
label="@soupinou"
|
|
296
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
297
|
-
/>
|
|
298
|
-
<Button
|
|
299
|
-
variant="avatar"
|
|
300
|
-
size="xs"
|
|
301
|
-
label="@soupinou"
|
|
302
|
-
avatar="https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg"
|
|
303
|
-
disabled
|
|
304
|
-
/>
|
|
305
|
-
</div>
|
|
306
259
|
</div>
|
|
307
260
|
);
|
|
308
261
|
|
|
@@ -200,7 +200,7 @@ export const DataTableExample = () => {
|
|
|
200
200
|
name="filter"
|
|
201
201
|
placeholder="Filter"
|
|
202
202
|
value={filter}
|
|
203
|
-
onChange={(
|
|
203
|
+
onChange={(e) => setFilter(e.target.value)}
|
|
204
204
|
/>
|
|
205
205
|
<DataTable
|
|
206
206
|
data={data}
|
|
@@ -224,7 +224,7 @@ export const DataTableClientSideSortingExample = () => {
|
|
|
224
224
|
name="filter"
|
|
225
225
|
placeholder="Filter"
|
|
226
226
|
value={filter}
|
|
227
|
-
onChange={(
|
|
227
|
+
onChange={(e) => setFilter(e.target.value)}
|
|
228
228
|
/>
|
|
229
229
|
<DataTable
|
|
230
230
|
className="s-w-full s-max-w-4xl s-overflow-x-auto"
|
|
@@ -253,7 +253,7 @@ export const DataTablePaginatedExample = () => {
|
|
|
253
253
|
name="filter"
|
|
254
254
|
placeholder="Filter"
|
|
255
255
|
value={filter}
|
|
256
|
-
onChange={(
|
|
256
|
+
onChange={(e) => setFilter(e.target.value)}
|
|
257
257
|
/>
|
|
258
258
|
<DataTable
|
|
259
259
|
className="s-w-full s-max-w-4xl s-overflow-x-auto"
|
|
@@ -303,7 +303,7 @@ export const DataTablePaginatedServerSideExample = () => {
|
|
|
303
303
|
name="filter"
|
|
304
304
|
placeholder="Filter"
|
|
305
305
|
value={filter}
|
|
306
|
-
onChange={(
|
|
306
|
+
onChange={(e) => setFilter(e.target.value)}
|
|
307
307
|
/>
|
|
308
308
|
<DataTable
|
|
309
309
|
className="s-w-full s-max-w-4xl s-overflow-x-auto"
|