@driveflux/beam 3.0.5 → 3.0.6-next.0
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/alert/Alert.d.ts +1 -1
- package/dist/alert/Alert.stories.d.ts +1 -1
- package/dist/badge/Badge.d.ts +1 -1
- package/dist/base-styles.css +2 -0
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/TextButton.d.ts +11 -0
- package/dist/button/TextButton.d.ts.map +1 -0
- package/dist/button/TextButton.js +88 -0
- package/dist/button/TextButton.js.map +1 -0
- package/dist/command/command.d.ts +1 -1
- package/dist/styles.css +33 -1
- package/package.json +5 -1
package/dist/alert/Alert.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "warning" | "error" | "default" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const AlertIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<SVGSVGElement> & {
|
|
7
7
|
variant?: "default" | "error" | "warning";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "warning" | "error" | "default" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
package/dist/badge/Badge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
colorScheme?: "
|
|
4
|
+
colorScheme?: "info" | "warning" | "success" | "error" | "accent" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
package/dist/base-styles.css
CHANGED
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
--color-primary-800: #000000;
|
|
120
120
|
--color-primary-900: #000000;
|
|
121
121
|
|
|
122
|
+
--color-success-25: #f1f9f4;
|
|
122
123
|
--color-success-50: #d8f7f2;
|
|
123
124
|
--color-success-100: #98e6d6;
|
|
124
125
|
--color-success-200: #3bd5bc;
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
--color-success-700: #00825c;
|
|
130
131
|
--color-success-800: #00724d;
|
|
131
132
|
--color-success-900: #005530;
|
|
133
|
+
--color-success-950: #16776d;
|
|
132
134
|
|
|
133
135
|
--color-accent-50: #fceaee;
|
|
134
136
|
--color-accent-100: #f8cad3;
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "outline" | "outline-white" | null | undefined;
|
|
5
|
-
colorScheme?: "
|
|
5
|
+
colorScheme?: "warning" | "success" | "link" | "default" | "accent" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const textButtonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof textButtonVariants> {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const TextButton: React.ForwardRefExoticComponent<TextButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export default TextButton;
|
|
11
|
+
//# sourceMappingURL=TextButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../src/button/TextButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,kBAAkB;;8EAavB,CAAA;AAED,MAAM,WAAW,eAChB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACpD,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,UAAU,2FAWf,CAAA;AAGD,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _object_without_properties_loose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
58
|
+
import { cva } from 'class-variance-authority';
|
|
59
|
+
import * as React from 'react';
|
|
60
|
+
import { cn } from '../utils.js';
|
|
61
|
+
var textButtonVariants = cva('inline cursor-pointer disabled:pointer-events-none disabled:opacity-30 text-base leading-[19.6px] bg-transparent border-0 p-0 m-0', {
|
|
62
|
+
variants: {
|
|
63
|
+
variant: {
|
|
64
|
+
default: 'text-inherit',
|
|
65
|
+
link: 'text-links hover:text-[var(--color-links2)]'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
defaultVariants: {
|
|
69
|
+
variant: 'default'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var TextButton = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
73
|
+
var className = _param.className, variant = _param.variant, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, props = _object_without_properties(_param, [
|
|
74
|
+
"className",
|
|
75
|
+
"variant",
|
|
76
|
+
"asChild"
|
|
77
|
+
]);
|
|
78
|
+
var Comp = asChild ? Slot : 'button';
|
|
79
|
+
return /*#__PURE__*/ _jsx(Comp, _object_spread({
|
|
80
|
+
className: cn(textButtonVariants({
|
|
81
|
+
variant: variant,
|
|
82
|
+
className: className
|
|
83
|
+
})),
|
|
84
|
+
ref: ref
|
|
85
|
+
}, props));
|
|
86
|
+
});
|
|
87
|
+
TextButton.displayName = 'TextButton';
|
|
88
|
+
export default TextButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextButton.js","sourceRoot":"","sources":["../../src/button/TextButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,MAAM,kBAAkB,GAAG,GAAG,CAC7B,mIAAmI,EACnI;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,cAAc;YACvB,IAAI,EAAE,6CAA6C;SACnD;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;KAClB;CACD,CACD,CAAA;AAQD,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC1D,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACtC,OAAO,CACN,KAAC,IAAI,IACJ,SAAS,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,EACzD,GAAG,EAAE,GAAG,KACJ,KAAK,GACR,CACF,CAAA;AACF,CAAC,CACD,CAAA;AACD,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,eAAe,UAAU,CAAA"}
|
|
@@ -27,7 +27,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
27
27
|
ref?: React.Ref<HTMLInputElement>;
|
|
28
28
|
} & {
|
|
29
29
|
asChild?: boolean;
|
|
30
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "
|
|
30
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "onChange" | "type"> & {
|
|
31
31
|
value?: string;
|
|
32
32
|
onValueChange?: (search: string) => void;
|
|
33
33
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & CommandInputProps & React.RefAttributes<HTMLInputElement>>;
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -344,6 +344,9 @@
|
|
|
344
344
|
max-width: 96rem !important;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
+
.m-0 {
|
|
348
|
+
margin: calc(var(--spacing) * 0) !important;
|
|
349
|
+
}
|
|
347
350
|
.m-2 {
|
|
348
351
|
margin: calc(var(--spacing) * 2) !important;
|
|
349
352
|
}
|
|
@@ -398,6 +401,9 @@
|
|
|
398
401
|
.grid {
|
|
399
402
|
display: grid !important;
|
|
400
403
|
}
|
|
404
|
+
.inline {
|
|
405
|
+
display: inline !important;
|
|
406
|
+
}
|
|
401
407
|
.inline-block {
|
|
402
408
|
display: inline-block !important;
|
|
403
409
|
}
|
|
@@ -749,6 +755,10 @@
|
|
|
749
755
|
border-style: var(--tw-border-style) !important;
|
|
750
756
|
border-width: 1px !important;
|
|
751
757
|
}
|
|
758
|
+
.border-0 {
|
|
759
|
+
border-style: var(--tw-border-style) !important;
|
|
760
|
+
border-width: 0px !important;
|
|
761
|
+
}
|
|
752
762
|
.border-2 {
|
|
753
763
|
border-style: var(--tw-border-style) !important;
|
|
754
764
|
border-width: 2px !important;
|
|
@@ -1175,6 +1185,9 @@
|
|
|
1175
1185
|
.text-info-600 {
|
|
1176
1186
|
color: var(--color-info-600) !important;
|
|
1177
1187
|
}
|
|
1188
|
+
.text-inherit {
|
|
1189
|
+
color: inherit !important;
|
|
1190
|
+
}
|
|
1178
1191
|
.text-links {
|
|
1179
1192
|
color: var(--color-links) !important;
|
|
1180
1193
|
}
|
|
@@ -1631,6 +1644,13 @@
|
|
|
1631
1644
|
}
|
|
1632
1645
|
}
|
|
1633
1646
|
}
|
|
1647
|
+
.hover\:text-\[var\(--color-links2\)\] {
|
|
1648
|
+
&:hover {
|
|
1649
|
+
@media (hover: hover) {
|
|
1650
|
+
color: var(--color-links2) !important;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1634
1654
|
.hover\:text-black {
|
|
1635
1655
|
&:hover {
|
|
1636
1656
|
@media (hover: hover) {
|
|
@@ -2038,6 +2058,12 @@
|
|
|
2038
2058
|
border-radius: var(--radius-xl) !important;
|
|
2039
2059
|
}
|
|
2040
2060
|
}
|
|
2061
|
+
.md\:rounded-b-xl {
|
|
2062
|
+
@media (width >= 48rem) {
|
|
2063
|
+
border-bottom-right-radius: var(--radius-xl) !important;
|
|
2064
|
+
border-bottom-left-radius: var(--radius-xl) !important;
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2041
2067
|
.md\:text-base {
|
|
2042
2068
|
@media (width >= 48rem) {
|
|
2043
2069
|
font-size: var(--text-base) !important;
|
|
@@ -2059,6 +2085,12 @@
|
|
|
2059
2085
|
width: calc(var(--spacing) * 6) !important;
|
|
2060
2086
|
}
|
|
2061
2087
|
}
|
|
2088
|
+
.lg\:tracking-wide {
|
|
2089
|
+
@media (width >= 64rem) {
|
|
2090
|
+
--tw-tracking: var(--tracking-wide) !important;
|
|
2091
|
+
letter-spacing: var(--tracking-wide) !important;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2062
2094
|
.dark\:border-gray-800 {
|
|
2063
2095
|
&:is(.dark *) {
|
|
2064
2096
|
border-color: var(--color-gray-800) !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/beam",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6-next.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./accordion": {
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"types": "./dist/button/Button.d.ts",
|
|
28
28
|
"import": "./dist/button/Button.js"
|
|
29
29
|
},
|
|
30
|
+
"./text-button": {
|
|
31
|
+
"types": "./dist/button/TextButton.d.ts",
|
|
32
|
+
"import": "./dist/button/TextButton.js"
|
|
33
|
+
},
|
|
30
34
|
"./breadcrumbs": {
|
|
31
35
|
"types": "./dist/breadcrumbs/Breadcrumbs.d.ts",
|
|
32
36
|
"import": "./dist/breadcrumbs/Breadcrumbs.js"
|