@b3-crow/ui-kit 0.0.36-pr44.4 → 0.0.36-pr44.6
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/backgrounds/Globe.d.ts.map +1 -1
- package/dist/components/backgrounds/Globe.js +25 -24
- package/dist/components/backgrounds/Globe.js.map +1 -1
- package/dist/components/buttons/Button.d.ts +1 -1
- package/dist/components/cards/Card.d.ts +1 -1
- package/dist/components/index.d.ts +11 -13
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +12 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/InputField.d.ts +1 -1
- package/package.json +48 -11
- package/vitest.shims.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.d.ts","sourceRoot":"","sources":["../../../src/components/backgrounds/Globe.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"Globe.d.ts","sourceRoot":"","sources":["../../../src/components/backgrounds/Globe.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAiFD,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,IAAU,EAAE,EAAE,UAAU,2CAsNvD"}
|
|
@@ -20,9 +20,16 @@ const defaultPoints = [
|
|
|
20
20
|
location: [-10, 50],
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
|
-
|
|
24
|
-
function generateArcs(points) {
|
|
23
|
+
function generateArcs(points, randomArcCount = 6) {
|
|
25
24
|
const arcs = [];
|
|
25
|
+
const colors = [
|
|
26
|
+
'rgba(255, 107, 107, 0.4)',
|
|
27
|
+
'rgba(78, 205, 196, 0.4)',
|
|
28
|
+
'rgba(69, 183, 209, 0.4)',
|
|
29
|
+
'rgba(150, 206, 180, 0.4)',
|
|
30
|
+
'rgba(168, 85, 247, 0.4)',
|
|
31
|
+
'rgba(59, 130, 246, 0.4)',
|
|
32
|
+
];
|
|
26
33
|
for (let i = 0; i < points.length; i++) {
|
|
27
34
|
for (let j = i + 1; j < points.length; j++) {
|
|
28
35
|
arcs.push({
|
|
@@ -30,13 +37,25 @@ function generateArcs(points) {
|
|
|
30
37
|
startLng: points[i].location[1],
|
|
31
38
|
endLat: points[j].location[0],
|
|
32
39
|
endLng: points[j].location[1],
|
|
33
|
-
color: [
|
|
40
|
+
color: colors[Math.floor(Math.random() * colors.length)],
|
|
34
41
|
});
|
|
35
42
|
}
|
|
36
43
|
}
|
|
44
|
+
for (let i = 0; i < randomArcCount; i++) {
|
|
45
|
+
const startLat = Math.random() * 140 - 70;
|
|
46
|
+
const startLng = Math.random() * 360 - 180;
|
|
47
|
+
const endLat = Math.random() * 140 - 70;
|
|
48
|
+
const endLng = Math.random() * 360 - 180;
|
|
49
|
+
arcs.push({
|
|
50
|
+
startLat,
|
|
51
|
+
startLng,
|
|
52
|
+
endLat,
|
|
53
|
+
endLng,
|
|
54
|
+
color: colors[Math.floor(Math.random() * colors.length)],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
37
57
|
return arcs;
|
|
38
58
|
}
|
|
39
|
-
// Generate points data for three-globe
|
|
40
59
|
function generatePointsData(points) {
|
|
41
60
|
return points.map(p => ({
|
|
42
61
|
lat: p.location[0],
|
|
@@ -62,54 +81,43 @@ export function Globe({ points, size = 600 }) {
|
|
|
62
81
|
const container = containerRef.current;
|
|
63
82
|
if (!container)
|
|
64
83
|
return;
|
|
65
|
-
// Scene setup
|
|
66
84
|
const scene = new THREE.Scene();
|
|
67
|
-
// Camera
|
|
68
85
|
const camera = new THREE.PerspectiveCamera(50, 1, 1, 1000);
|
|
69
86
|
camera.position.z = 350;
|
|
70
|
-
// Renderer
|
|
71
87
|
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
|
|
72
88
|
renderer.setSize(size, size);
|
|
73
89
|
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
|
|
74
90
|
container.appendChild(renderer.domElement);
|
|
75
91
|
rendererRef.current = renderer;
|
|
76
|
-
// Lights
|
|
77
92
|
const ambientLight = new THREE.AmbientLight(0xffffff, 2.0);
|
|
78
93
|
scene.add(ambientLight);
|
|
79
94
|
const directionalLight = new THREE.DirectionalLight(0xffffff, 2.2);
|
|
80
95
|
directionalLight.position.set(1, 1, 1);
|
|
81
96
|
scene.add(directionalLight);
|
|
82
97
|
const GLOBE_RADIUS = 100;
|
|
83
|
-
// Create three-globe
|
|
84
98
|
const globe = new ThreeGlobe({ animateIn: true })
|
|
85
99
|
.globeImageUrl('https://unpkg.com/three-globe@2.45.0/example/img/earth-night.jpg')
|
|
86
100
|
.bumpImageUrl('https://unpkg.com/three-globe@2.45.0/example/img/earth-topology.png')
|
|
87
101
|
.showAtmosphere(true)
|
|
88
102
|
.atmosphereColor('#3a82f7')
|
|
89
103
|
.atmosphereAltitude(0.15)
|
|
90
|
-
// Points on globe
|
|
91
104
|
.pointsData(generatePointsData(displayPoints))
|
|
92
105
|
.pointAltitude(0.01)
|
|
93
106
|
.pointColor('color')
|
|
94
107
|
.pointRadius('size')
|
|
95
|
-
// Arcs between points
|
|
96
108
|
.arcsData(generateArcs(displayPoints))
|
|
97
109
|
.arcColor('color')
|
|
98
110
|
.arcDashLength(0.4)
|
|
99
111
|
.arcDashGap(0.2)
|
|
100
|
-
.arcDashAnimateTime(
|
|
101
|
-
.arcStroke(0.
|
|
112
|
+
.arcDashAnimateTime(2000)
|
|
113
|
+
.arcStroke(0.3)
|
|
102
114
|
.arcAltitudeAutoScale(0.3);
|
|
103
115
|
globeRef.current = globe;
|
|
104
116
|
scene.add(globe);
|
|
105
|
-
// Tilt scene slightly
|
|
106
117
|
scene.rotation.x = 0.2;
|
|
107
|
-
// Animation
|
|
108
118
|
const animate = () => {
|
|
109
119
|
const now = Date.now();
|
|
110
|
-
// Rotate globe
|
|
111
120
|
globe.rotation.y += 0.002;
|
|
112
|
-
// Sequential reveal of icons (one by one)
|
|
113
121
|
if (revealIndexRef.current < displayPoints.length &&
|
|
114
122
|
now - lastRevealTime.current > 2000) {
|
|
115
123
|
setVisibleIndices(prev => {
|
|
@@ -120,22 +128,16 @@ export function Globe({ points, size = 600 }) {
|
|
|
120
128
|
revealIndexRef.current++;
|
|
121
129
|
lastRevealTime.current = now;
|
|
122
130
|
}
|
|
123
|
-
// Calculate icon screen positions
|
|
124
131
|
const positions = displayPoints.map((point, index) => {
|
|
125
132
|
const [lat, lng] = point.location;
|
|
126
|
-
// Convert lat/lng to 3D position
|
|
127
133
|
const phi = ((90 - lat) * Math.PI) / 180;
|
|
128
134
|
const theta = ((lng + 180) * Math.PI) / 180;
|
|
129
135
|
const pos = new THREE.Vector3(-GLOBE_RADIUS * Math.sin(phi) * Math.cos(theta), GLOBE_RADIUS * Math.cos(phi), GLOBE_RADIUS * Math.sin(phi) * Math.sin(theta));
|
|
130
|
-
// Apply globe rotation
|
|
131
136
|
pos.applyAxisAngle(new THREE.Vector3(0, 1, 0), globe.rotation.y);
|
|
132
|
-
// Apply scene tilt
|
|
133
137
|
pos.applyAxisAngle(new THREE.Vector3(1, 0, 0), 0.2);
|
|
134
|
-
// Project to screen
|
|
135
138
|
const projected = pos.clone().project(camera);
|
|
136
139
|
const screenX = (projected.x * 0.5 + 0.5) * size;
|
|
137
140
|
const screenY = (-projected.y * 0.5 + 0.5) * size;
|
|
138
|
-
// Depth-based opacity and scale
|
|
139
141
|
const normalizedZ = pos.z / GLOBE_RADIUS;
|
|
140
142
|
let opacity = 1;
|
|
141
143
|
if (normalizedZ > 0.3) {
|
|
@@ -149,7 +151,6 @@ export function Globe({ points, size = 600 }) {
|
|
|
149
151
|
}
|
|
150
152
|
let scale = normalizedZ > 0 ? 1 + normalizedZ * 0.3 : 0.7 + normalizedZ * 0.3;
|
|
151
153
|
scale = Math.max(0.5, scale);
|
|
152
|
-
// Pulse animation when reaching front
|
|
153
154
|
if (index === scaleIndexRef.current) {
|
|
154
155
|
if (normalizedZ > 0.4 && !scalingRef.current) {
|
|
155
156
|
scalingRef.current = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.js","sourceRoot":"","sources":["../../../src/components/backgrounds/Globe.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,aAAa,CAAC;AAqBrC,MAAM,aAAa,GAAiB;IAClC;QACE,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,GAAG;QACvC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;KAClB;IACD,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAC,MAAM,IAAC,SAAS,EAAC,UAAU,GAAG,EAAE,QAAQ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CAAC;YACJ,CAAC,CAAC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
declare const buttonVariants: (props?: ({
|
|
3
|
-
variant?: "
|
|
3
|
+
variant?: "primary" | "solid" | "outline" | "ghost" | null | undefined;
|
|
4
4
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
fullWidth?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
declare const cardVariants: (props?: ({
|
|
3
|
-
border?: "top" | "left" | "
|
|
3
|
+
border?: "top" | "left" | "none" | "all" | "right" | "bottom" | "top-bottom" | "left-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
5
|
export interface CardProps extends VariantProps<typeof cardVariants> {
|
|
6
6
|
title: string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
+
export * from '../lib/constants';
|
|
2
|
+
export * from '../lib/types';
|
|
1
3
|
export * from './backgrounds/AnimatedBackground';
|
|
2
|
-
export * from './backgrounds/Globe';
|
|
3
|
-
export * from './backgrounds/GradientBackground';
|
|
4
4
|
export * from './backgrounds/DashboardBackground';
|
|
5
|
+
export * from './backgrounds/GradientBackground';
|
|
5
6
|
export * from './buttons/Button';
|
|
6
|
-
export * from './buttons/CompanyPageButton';
|
|
7
7
|
export * from './buttons/CollapseToggleButton';
|
|
8
|
+
export * from './buttons/CompanyPageButton';
|
|
8
9
|
export * from './cards/Card';
|
|
9
10
|
export * from './cards/CheckoutSummary';
|
|
10
11
|
export * from './cards/ConnectionOption';
|
|
11
12
|
export * from './cards/InvitationDetailsCard';
|
|
12
13
|
export * from './cards/MetricsCard';
|
|
13
|
-
export * from './cards/PatternCard';
|
|
14
14
|
export * from './cards/OrderSummaryCard';
|
|
15
|
+
export * from './cards/PatternCard';
|
|
15
16
|
export * from './cards/PendingInviteCard';
|
|
16
17
|
export * from './cards/PlanCard';
|
|
17
18
|
export * from './cards/PricingCard';
|
|
18
19
|
export * from './cards/RunAgentCard';
|
|
19
20
|
export * from './cards/SyncStatusCard';
|
|
20
21
|
export * from './cards/TipCard';
|
|
21
|
-
export * from './chat/MessageBubble';
|
|
22
22
|
export * from './chat/ChatHistorySection';
|
|
23
|
-
export * from './
|
|
23
|
+
export * from './chat/MessageBubble';
|
|
24
24
|
export * from './display/ConnectionStatus';
|
|
25
25
|
export * from './display/IconBadge';
|
|
26
26
|
export * from './display/Logo';
|
|
@@ -41,33 +41,31 @@ export * from './inputs/NumberStepper';
|
|
|
41
41
|
export * from './inputs/PermissionToggle';
|
|
42
42
|
export * from './inputs/SearchInput';
|
|
43
43
|
export * from './inputs/Select';
|
|
44
|
+
export * from './inputs/SettingsDropup';
|
|
44
45
|
export * from './inputs/SuggestionChip';
|
|
45
46
|
export * from './inputs/TagInput';
|
|
46
47
|
export * from './inputs/ToggleOption';
|
|
47
48
|
export * from './inputs/ToggleSwitch';
|
|
48
|
-
export * from './inputs/SettingsDropup';
|
|
49
49
|
export * from './layout/Divider';
|
|
50
50
|
export * from './layout/Footer';
|
|
51
51
|
export * from './layout/FormSection';
|
|
52
52
|
export * from './layout/GlassPanel';
|
|
53
|
+
export * from './layout/Header';
|
|
53
54
|
export * from './layout/LinkGroup';
|
|
54
55
|
export * from './layout/ListItem';
|
|
56
|
+
export * from './layout/MobileSidebar';
|
|
55
57
|
export * from './layout/Navbar';
|
|
58
|
+
export * from './layout/NavMenu';
|
|
59
|
+
export * from './layout/NavTooltip';
|
|
56
60
|
export * from './layout/PageHeader';
|
|
57
61
|
export * from './layout/SectionHeader';
|
|
58
62
|
export * from './layout/SegmentedControl';
|
|
59
|
-
export * from './layout/Header';
|
|
60
63
|
export * from './layout/Sidebar';
|
|
61
64
|
export * from './layout/SidebarLogo';
|
|
62
|
-
export * from './layout/MobileSidebar';
|
|
63
|
-
export * from './layout/NavMenu';
|
|
64
|
-
export * from './layout/NavTooltip';
|
|
65
65
|
export * from './layout/SidePanel';
|
|
66
66
|
export * from './providers/LenisProvider';
|
|
67
67
|
export * from './typography/HeroText';
|
|
68
68
|
export * from './typography/SectionLabel';
|
|
69
69
|
export * from './typography/Subtitle';
|
|
70
70
|
export * from './typography/TypewriterText';
|
|
71
|
-
export * from '../lib/constants';
|
|
72
|
-
export * from '../lib/types';
|
|
73
71
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AAEjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAErC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAA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|
@@ -1,26 +1,27 @@
|
|
|
1
|
+
// Shared constants and types from lib
|
|
2
|
+
export * from '../lib/constants';
|
|
3
|
+
export * from '../lib/types';
|
|
1
4
|
export * from './backgrounds/AnimatedBackground';
|
|
2
|
-
export * from './backgrounds/Globe';
|
|
3
|
-
export * from './backgrounds/GradientBackground';
|
|
4
5
|
export * from './backgrounds/DashboardBackground';
|
|
6
|
+
export * from './backgrounds/GradientBackground';
|
|
5
7
|
export * from './buttons/Button';
|
|
6
|
-
export * from './buttons/CompanyPageButton';
|
|
7
8
|
export * from './buttons/CollapseToggleButton';
|
|
9
|
+
export * from './buttons/CompanyPageButton';
|
|
8
10
|
export * from './cards/Card';
|
|
9
11
|
export * from './cards/CheckoutSummary';
|
|
10
12
|
export * from './cards/ConnectionOption';
|
|
11
13
|
export * from './cards/InvitationDetailsCard';
|
|
12
14
|
export * from './cards/MetricsCard';
|
|
13
|
-
export * from './cards/PatternCard';
|
|
14
15
|
export * from './cards/OrderSummaryCard';
|
|
16
|
+
export * from './cards/PatternCard';
|
|
15
17
|
export * from './cards/PendingInviteCard';
|
|
16
18
|
export * from './cards/PlanCard';
|
|
17
19
|
export * from './cards/PricingCard';
|
|
18
20
|
export * from './cards/RunAgentCard';
|
|
19
21
|
export * from './cards/SyncStatusCard';
|
|
20
22
|
export * from './cards/TipCard';
|
|
21
|
-
export * from './chat/MessageBubble';
|
|
22
23
|
export * from './chat/ChatHistorySection';
|
|
23
|
-
export * from './
|
|
24
|
+
export * from './chat/MessageBubble';
|
|
24
25
|
export * from './display/ConnectionStatus';
|
|
25
26
|
export * from './display/IconBadge';
|
|
26
27
|
export * from './display/Logo';
|
|
@@ -41,34 +42,31 @@ export * from './inputs/NumberStepper';
|
|
|
41
42
|
export * from './inputs/PermissionToggle';
|
|
42
43
|
export * from './inputs/SearchInput';
|
|
43
44
|
export * from './inputs/Select';
|
|
45
|
+
export * from './inputs/SettingsDropup';
|
|
44
46
|
export * from './inputs/SuggestionChip';
|
|
45
47
|
export * from './inputs/TagInput';
|
|
46
48
|
export * from './inputs/ToggleOption';
|
|
47
49
|
export * from './inputs/ToggleSwitch';
|
|
48
|
-
export * from './inputs/SettingsDropup';
|
|
49
50
|
export * from './layout/Divider';
|
|
50
51
|
export * from './layout/Footer';
|
|
51
52
|
export * from './layout/FormSection';
|
|
52
53
|
export * from './layout/GlassPanel';
|
|
54
|
+
export * from './layout/Header';
|
|
53
55
|
export * from './layout/LinkGroup';
|
|
54
56
|
export * from './layout/ListItem';
|
|
57
|
+
export * from './layout/MobileSidebar';
|
|
55
58
|
export * from './layout/Navbar';
|
|
59
|
+
export * from './layout/NavMenu';
|
|
60
|
+
export * from './layout/NavTooltip';
|
|
56
61
|
export * from './layout/PageHeader';
|
|
57
62
|
export * from './layout/SectionHeader';
|
|
58
63
|
export * from './layout/SegmentedControl';
|
|
59
|
-
export * from './layout/Header';
|
|
60
64
|
export * from './layout/Sidebar';
|
|
61
65
|
export * from './layout/SidebarLogo';
|
|
62
|
-
export * from './layout/MobileSidebar';
|
|
63
|
-
export * from './layout/NavMenu';
|
|
64
|
-
export * from './layout/NavTooltip';
|
|
65
66
|
export * from './layout/SidePanel';
|
|
66
67
|
export * from './providers/LenisProvider';
|
|
67
68
|
export * from './typography/HeroText';
|
|
68
69
|
export * from './typography/SectionLabel';
|
|
69
70
|
export * from './typography/Subtitle';
|
|
70
71
|
export * from './typography/TypewriterText';
|
|
71
|
-
// Shared constants and types from lib
|
|
72
|
-
export * from '../lib/constants';
|
|
73
|
-
export * from '../lib/types';
|
|
74
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,c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AAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,uBAAuB,CAAC;AAEtC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
declare const inputVariants: (props?: ({
|
|
3
3
|
variant?: "transparent" | "filled" | null | undefined;
|
|
4
4
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
-
buttonPosition?: "left" | "
|
|
5
|
+
buttonPosition?: "left" | "none" | "right" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface InputFieldProps extends Omit<VariantProps<typeof inputVariants>, 'buttonPosition'> {
|
|
8
8
|
placeholder?: string;
|
package/package.json
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3-crow/ui-kit",
|
|
3
|
-
"version": "0.0.36-pr44.
|
|
3
|
+
"version": "0.0.36-pr44.6",
|
|
4
4
|
"description": "CROW-B3 UI Kit",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"types": "./dist/index.d.ts",
|
|
11
12
|
"default": "./dist/index.js"
|
|
12
13
|
},
|
|
14
|
+
"./globe": {
|
|
15
|
+
"types": "./dist/components/backgrounds/Globe.d.ts",
|
|
16
|
+
"default": "./dist/components/backgrounds/Globe.js"
|
|
17
|
+
},
|
|
18
|
+
"./code-block": {
|
|
19
|
+
"types": "./dist/components/display/CodeBlock.d.ts",
|
|
20
|
+
"default": "./dist/components/display/CodeBlock.js"
|
|
21
|
+
},
|
|
13
22
|
"./styles.css": {
|
|
14
23
|
"style": "./dist/styles.css",
|
|
15
24
|
"default": "./dist/styles.css"
|
|
@@ -24,7 +33,9 @@
|
|
|
24
33
|
"lint:fix": "eslint src/ --fix",
|
|
25
34
|
"format": "bunx prettier src/ --write",
|
|
26
35
|
"prepare": "husky install",
|
|
27
|
-
"lint-staged": "lint-staged"
|
|
36
|
+
"lint-staged": "lint-staged",
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
|
+
"build-storybook": "storybook build"
|
|
28
39
|
},
|
|
29
40
|
"repository": {
|
|
30
41
|
"type": "git",
|
|
@@ -45,7 +56,9 @@
|
|
|
45
56
|
"@types/node": "^22.10.5",
|
|
46
57
|
"@types/react": "^19.2.7",
|
|
47
58
|
"@types/react-dom": "^19.2.3",
|
|
59
|
+
"@types/three": "^0.182.0",
|
|
48
60
|
"autoprefixer": "^10.4.22",
|
|
61
|
+
"cobe": "^0.6.5",
|
|
49
62
|
"commitlint": "^20.1.0",
|
|
50
63
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
51
64
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
@@ -53,8 +66,24 @@
|
|
|
53
66
|
"lint-staged": "^16.2.6",
|
|
54
67
|
"postcss": "^8.5.6",
|
|
55
68
|
"prettier": "^3.6.2",
|
|
69
|
+
"react-icons": "^5.5.0",
|
|
70
|
+
"shiki": "^3.21.0",
|
|
56
71
|
"tailwindcss": "^4.1.17",
|
|
57
|
-
"
|
|
72
|
+
"three": "^0.182.0",
|
|
73
|
+
"three-globe": "^2.45.0",
|
|
74
|
+
"typescript": "^5.9.3",
|
|
75
|
+
"storybook": "^10.2.10",
|
|
76
|
+
"@storybook/react-vite": "^10.2.10",
|
|
77
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
78
|
+
"@storybook/addon-vitest": "^10.2.10",
|
|
79
|
+
"@storybook/addon-a11y": "^10.2.10",
|
|
80
|
+
"@storybook/addon-docs": "^10.2.10",
|
|
81
|
+
"@storybook/addon-onboarding": "^10.2.10",
|
|
82
|
+
"eslint-plugin-storybook": "^10.2.10",
|
|
83
|
+
"vitest": "^4.0.18",
|
|
84
|
+
"playwright": "^1.58.2",
|
|
85
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
86
|
+
"@vitest/coverage-v8": "^4.0.18"
|
|
58
87
|
},
|
|
59
88
|
"lint-staged": {
|
|
60
89
|
"*.{js,jsx,ts,tsx}": [
|
|
@@ -68,21 +97,29 @@
|
|
|
68
97
|
"peerDependencies": {
|
|
69
98
|
"react": "^19.2.4",
|
|
70
99
|
"react-dom": "^19.2.4",
|
|
71
|
-
"next": "^15.0.0"
|
|
100
|
+
"next": "^15.0.0",
|
|
101
|
+
"three": "^0.182.0",
|
|
102
|
+
"three-globe": "^2.45.0",
|
|
103
|
+
"shiki": "^3.21.0"
|
|
104
|
+
},
|
|
105
|
+
"peerDependenciesMeta": {
|
|
106
|
+
"three": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"three-globe": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
112
|
+
"shiki": {
|
|
113
|
+
"optional": true
|
|
114
|
+
}
|
|
72
115
|
},
|
|
73
116
|
"dependencies": {
|
|
74
117
|
"@radix-ui/react-slot": "^1.2.4",
|
|
75
|
-
"@types/three": "^0.182.0",
|
|
76
118
|
"class-variance-authority": "^0.7.1",
|
|
77
119
|
"clsx": "^2.1.1",
|
|
78
|
-
"cobe": "^0.6.5",
|
|
79
120
|
"framer-motion": "^12.23.26",
|
|
80
121
|
"lenis": "^1.2.1",
|
|
81
122
|
"lucide-react": "^0.542.0",
|
|
82
|
-
"
|
|
83
|
-
"shiki": "^3.21.0",
|
|
84
|
-
"tailwind-merge": "^3.4.0",
|
|
85
|
-
"three": "^0.182.0",
|
|
86
|
-
"three-globe": "^2.45.0"
|
|
123
|
+
"tailwind-merge": "^3.4.0"
|
|
87
124
|
}
|
|
88
125
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@vitest/browser-playwright" />
|