@stevederico/skateboard-ui 3.0.2 → 3.6.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/App.jsx +13 -13
- package/CHANGELOG.md +64 -0
- package/README.md +59 -65
- package/components/AuthOverlay.jsx +4 -4
- package/components/ProtectedRoute.jsx +1 -1
- package/components/ThemeToggle.jsx +1 -1
- package/components/UpgradeSheet.jsx +2 -2
- package/{core → components/core}/DynamicIcon.jsx +1 -1
- package/{layout → components/layout}/Header.jsx +4 -4
- package/{layout → components/layout}/Layout.jsx +1 -1
- package/{layout → components/layout}/Sidebar.jsx +2 -2
- package/{layout → components/layout}/TabBar.jsx +1 -1
- package/{views → components/views}/LandingView.jsx +5 -5
- package/{views → components/views}/NotFound.jsx +2 -2
- package/{views → components/views}/PaymentView.jsx +1 -1
- package/{views → components/views}/SettingsView.jsx +6 -6
- package/{views → components/views}/SignInView.jsx +6 -6
- package/{views → components/views}/SignOutView.jsx +1 -1
- package/{views → components/views}/SignUpView.jsx +6 -6
- package/{views → components/views}/TextView.jsx +3 -3
- package/hooks/useAuthGate.js +1 -1
- package/index.js +1 -1
- package/package.json +32 -50
- package/shadcn/lib/base-ui/LICENSE +21 -0
- package/shadcn/lib/base-ui/_chunk-01rqe37g.js +70 -0
- package/shadcn/lib/base-ui/_chunk-0h5sskyw.js +347 -0
- package/shadcn/lib/base-ui/_chunk-0xhx4g7r.js +57 -0
- package/shadcn/lib/base-ui/_chunk-1e6khrvm.js +218 -0
- package/shadcn/lib/base-ui/_chunk-1s41sngz.js +302 -0
- package/shadcn/lib/base-ui/_chunk-20rtfsz9.js +23 -0
- package/shadcn/lib/base-ui/_chunk-2tyt8f8r.js +6034 -0
- package/shadcn/lib/base-ui/_chunk-3f31ka8n.js +11 -0
- package/shadcn/lib/base-ui/_chunk-3h6zpchb.js +89 -0
- package/shadcn/lib/base-ui/_chunk-4s0k3h7t.js +114 -0
- package/shadcn/lib/base-ui/_chunk-502wngfc.js +598 -0
- package/shadcn/lib/base-ui/_chunk-536jvgeq.js +68 -0
- package/shadcn/lib/base-ui/_chunk-611pz5sm.js +10 -0
- package/shadcn/lib/base-ui/_chunk-65zw5gs2.js +15 -0
- package/shadcn/lib/base-ui/_chunk-6b17g8t7.js +34 -0
- package/shadcn/lib/base-ui/_chunk-6xevjepc.js +15 -0
- package/shadcn/lib/base-ui/_chunk-71zm6zgv.js +16 -0
- package/shadcn/lib/base-ui/_chunk-7fmjymvh.js +32 -0
- package/shadcn/lib/base-ui/_chunk-7jjzay8b.js +176 -0
- package/shadcn/lib/base-ui/_chunk-7v1t86x1.js +43 -0
- package/shadcn/lib/base-ui/_chunk-85vrgzwr.js +227 -0
- package/shadcn/lib/base-ui/_chunk-8jz3hb7q.js +9 -0
- package/shadcn/lib/base-ui/_chunk-8kh3xk78.js +35 -0
- package/shadcn/lib/base-ui/_chunk-97tas84n.js +67 -0
- package/shadcn/lib/base-ui/_chunk-9nyxkvte.js +13 -0
- package/shadcn/lib/base-ui/_chunk-a8fwg9d0.js +52 -0
- package/shadcn/lib/base-ui/_chunk-agc6ew3g.js +29 -0
- package/shadcn/lib/base-ui/_chunk-aqwsk46c.js +64 -0
- package/shadcn/lib/base-ui/_chunk-atd5kq5q.js +803 -0
- package/shadcn/lib/base-ui/_chunk-atnkefgd.js +104 -0
- package/shadcn/lib/base-ui/_chunk-b40erthe.js +7 -0
- package/shadcn/lib/base-ui/_chunk-b5jsqt97.js +50 -0
- package/shadcn/lib/base-ui/_chunk-bk7n9s9e.js +15 -0
- package/shadcn/lib/base-ui/_chunk-c3572b5x.js +19 -0
- package/shadcn/lib/base-ui/_chunk-cwr896nf.js +25 -0
- package/shadcn/lib/base-ui/_chunk-drfb9kp2.js +27 -0
- package/shadcn/lib/base-ui/_chunk-ds8fnpjj.js +0 -0
- package/shadcn/lib/base-ui/_chunk-ek863ta9.js +82 -0
- package/shadcn/lib/base-ui/_chunk-f09cp81f.js +12 -0
- package/shadcn/lib/base-ui/_chunk-f5d01bp9.js +0 -0
- package/shadcn/lib/base-ui/_chunk-f9tgee1q.js +21 -0
- package/shadcn/lib/base-ui/_chunk-fch5cba8.js +84 -0
- package/shadcn/lib/base-ui/_chunk-gfce3j3z.js +18 -0
- package/shadcn/lib/base-ui/_chunk-ha06w2pp.js +2391 -0
- package/shadcn/lib/base-ui/_chunk-hzgetm70.js +23 -0
- package/shadcn/lib/base-ui/_chunk-j0eqdjta.js +39 -0
- package/shadcn/lib/base-ui/_chunk-k1e5fvcj.js +48 -0
- package/shadcn/lib/base-ui/_chunk-k4mc2kan.js +81 -0
- package/shadcn/lib/base-ui/_chunk-kfz96xv1.js +128 -0
- package/shadcn/lib/base-ui/_chunk-m45547cc.js +15 -0
- package/shadcn/lib/base-ui/_chunk-mbn76q14.js +184 -0
- package/shadcn/lib/base-ui/_chunk-mvv30fkv.js +9 -0
- package/shadcn/lib/base-ui/_chunk-mznt6ktj.js +33 -0
- package/shadcn/lib/base-ui/_chunk-n7dnqnbw.js +7 -0
- package/shadcn/lib/base-ui/_chunk-nya71ccw.js +546 -0
- package/shadcn/lib/base-ui/_chunk-p6qynd6r.js +146 -0
- package/shadcn/lib/base-ui/_chunk-q3nee19r.js +323 -0
- package/shadcn/lib/base-ui/_chunk-q7yw9mz4.js +385 -0
- package/shadcn/lib/base-ui/_chunk-qce0xt57.js +107 -0
- package/shadcn/lib/base-ui/_chunk-qgzhcjsj.js +14 -0
- package/shadcn/lib/base-ui/_chunk-qt6r015s.js +38 -0
- package/shadcn/lib/base-ui/_chunk-r0vsdknk.js +4 -0
- package/shadcn/lib/base-ui/_chunk-sx6vkz01.js +150 -0
- package/shadcn/lib/base-ui/_chunk-szcr6mhk.js +6 -0
- package/shadcn/lib/base-ui/_chunk-t7j3rbpv.js +67 -0
- package/shadcn/lib/base-ui/_chunk-tmfmrzwe.js +39 -0
- package/shadcn/lib/base-ui/_chunk-v92ycsfj.js +9 -0
- package/shadcn/lib/base-ui/_chunk-vdc01ss3.js +6 -0
- package/shadcn/lib/base-ui/_chunk-vjbnhhg1.js +26 -0
- package/shadcn/lib/base-ui/_chunk-w68yxg9d.js +21 -0
- package/shadcn/lib/base-ui/_chunk-wana68v3.js +477 -0
- package/shadcn/lib/base-ui/_chunk-wtw745qd.js +12 -0
- package/shadcn/lib/base-ui/_chunk-xb7ph1ka.js +6 -0
- package/shadcn/lib/base-ui/_chunk-xfagb0fq.js +28 -0
- package/shadcn/lib/base-ui/_chunk-xxhqanfd.js +16 -0
- package/shadcn/lib/base-ui/_chunk-y887e46p.js +15 -0
- package/shadcn/lib/base-ui/_chunk-ymj1dpqg.js +14 -0
- package/shadcn/lib/base-ui/accordion.js +650 -0
- package/shadcn/lib/base-ui/alert-dialog.js +138 -0
- package/shadcn/lib/base-ui/avatar.js +235 -0
- package/shadcn/lib/base-ui/button.js +52 -0
- package/shadcn/lib/base-ui/checkbox.js +454 -0
- package/shadcn/lib/base-ui/collapsible.js +283 -0
- package/shadcn/lib/base-ui/context-menu.js +324 -0
- package/shadcn/lib/base-ui/dialog.js +71 -0
- package/shadcn/lib/base-ui/input.js +1028 -0
- package/shadcn/lib/base-ui/menu.js +61 -0
- package/shadcn/lib/base-ui/menubar.js +157 -0
- package/shadcn/lib/base-ui/merge-props.js +15 -0
- package/shadcn/lib/base-ui/navigation-menu.js +1854 -0
- package/shadcn/lib/base-ui/popover.js +1090 -0
- package/shadcn/lib/base-ui/preview-card.js +709 -0
- package/shadcn/lib/base-ui/progress.js +278 -0
- package/shadcn/lib/base-ui/radio-group.js +247 -0
- package/shadcn/lib/base-ui/radio.js +382 -0
- package/shadcn/lib/base-ui/scroll-area.js +1061 -0
- package/shadcn/lib/base-ui/select.js +2438 -0
- package/shadcn/lib/base-ui/separator.js +11 -0
- package/shadcn/lib/base-ui/slider.js +1595 -0
- package/shadcn/lib/base-ui/switch.js +333 -0
- package/shadcn/lib/base-ui/tabs.js +892 -0
- package/shadcn/lib/base-ui/toggle-group.js +152 -0
- package/shadcn/lib/base-ui/toggle.js +133 -0
- package/shadcn/lib/base-ui/tooltip.js +791 -0
- package/shadcn/lib/base-ui/use-render.js +15 -0
- package/shadcn/lib/tailwind-merge.js +3312 -0
- package/shadcn/lib/utils.js +1 -1
- package/shadcn/ui/accordion.jsx +1 -1
- package/shadcn/ui/alert-dialog.jsx +1 -1
- package/shadcn/ui/avatar.jsx +1 -1
- package/shadcn/ui/badge.jsx +2 -2
- package/shadcn/ui/breadcrumb.jsx +2 -2
- package/shadcn/ui/button-group.jsx +2 -2
- package/shadcn/ui/button.jsx +1 -1
- package/shadcn/ui/calendar.jsx +1 -1
- package/shadcn/ui/checkbox.jsx +1 -1
- package/shadcn/ui/collapsible.jsx +1 -1
- package/shadcn/ui/command.jsx +1 -1
- package/shadcn/ui/context-menu.jsx +1 -1
- package/shadcn/ui/dialog.jsx +1 -1
- package/shadcn/ui/drawer.jsx +176 -74
- package/shadcn/ui/dropdown-menu.jsx +1 -1
- package/shadcn/ui/hover-card.jsx +1 -1
- package/shadcn/ui/input.jsx +1 -1
- package/shadcn/ui/item.jsx +2 -2
- package/shadcn/ui/menubar.jsx +2 -2
- package/shadcn/ui/navigation-menu.jsx +1 -1
- package/shadcn/ui/popover.jsx +1 -1
- package/shadcn/ui/progress.jsx +1 -1
- package/shadcn/ui/radio-group.jsx +2 -2
- package/shadcn/ui/scroll-area.jsx +1 -1
- package/shadcn/ui/select.jsx +1 -1
- package/shadcn/ui/separator.jsx +1 -1
- package/shadcn/ui/sheet.jsx +1 -1
- package/shadcn/ui/sidebar.jsx +3 -3
- package/shadcn/ui/slider.jsx +1 -1
- package/shadcn/ui/switch.jsx +1 -1
- package/shadcn/ui/tabs.jsx +1 -1
- package/shadcn/ui/toggle-group.jsx +2 -2
- package/shadcn/ui/toggle.jsx +1 -1
- package/shadcn/ui/tooltip.jsx +1 -1
- package/styles.css +31 -0
- package/MIGRATION.md +0 -230
- package/shadcn/ui/carousel.jsx +0 -195
- package/shadcn/ui/chart.jsx +0 -312
- package/shadcn/ui/resizable.jsx +0 -47
- /package/{core → components/core}/Calendar.jsx +0 -0
- /package/{core → components/core}/Command.jsx +0 -0
- /package/{core → components/core}/Context.jsx +0 -0
- /package/{core → components/core}/ThemeProvider.jsx +0 -0
- /package/{core → components/core}/Utilities.js +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// node_modules/.deno/@base-ui+react@1.4.1/node_modules/@base-ui/react/esm/radio-group/RadioGroupContext.js
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
"use client";
|
|
4
|
+
var RadioGroupContext = /* @__PURE__ */ React.createContext(undefined);
|
|
5
|
+
if (true)
|
|
6
|
+
RadioGroupContext.displayName = "RadioGroupContext";
|
|
7
|
+
function useRadioGroupContext() {
|
|
8
|
+
return React.useContext(RadioGroupContext);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { RadioGroupContext, useRadioGroupContext };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useOnMount
|
|
3
|
+
} from "./_chunk-8jz3hb7q.js";
|
|
4
|
+
import {
|
|
5
|
+
useRefWithInit
|
|
6
|
+
} from "./_chunk-1s41sngz.js";
|
|
7
|
+
|
|
8
|
+
// node_modules/.deno/@base-ui+utils@0.2.8/node_modules/@base-ui/utils/esm/useAnimationFrame.js
|
|
9
|
+
"use client";
|
|
10
|
+
var EMPTY = null;
|
|
11
|
+
var LAST_RAF = globalThis.requestAnimationFrame;
|
|
12
|
+
|
|
13
|
+
class Scheduler {
|
|
14
|
+
callbacks = [];
|
|
15
|
+
callbacksCount = 0;
|
|
16
|
+
nextId = 1;
|
|
17
|
+
startId = 1;
|
|
18
|
+
isScheduled = false;
|
|
19
|
+
tick = (timestamp) => {
|
|
20
|
+
this.isScheduled = false;
|
|
21
|
+
const currentCallbacks = this.callbacks;
|
|
22
|
+
const currentCallbacksCount = this.callbacksCount;
|
|
23
|
+
this.callbacks = [];
|
|
24
|
+
this.callbacksCount = 0;
|
|
25
|
+
this.startId = this.nextId;
|
|
26
|
+
if (currentCallbacksCount > 0) {
|
|
27
|
+
for (let i = 0;i < currentCallbacks.length; i += 1) {
|
|
28
|
+
currentCallbacks[i]?.(timestamp);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
request(fn) {
|
|
33
|
+
const id = this.nextId;
|
|
34
|
+
this.nextId += 1;
|
|
35
|
+
this.callbacks.push(fn);
|
|
36
|
+
this.callbacksCount += 1;
|
|
37
|
+
const didRAFChange = LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);
|
|
38
|
+
if (!this.isScheduled || didRAFChange) {
|
|
39
|
+
requestAnimationFrame(this.tick);
|
|
40
|
+
this.isScheduled = true;
|
|
41
|
+
}
|
|
42
|
+
return id;
|
|
43
|
+
}
|
|
44
|
+
cancel(id) {
|
|
45
|
+
const index = id - this.startId;
|
|
46
|
+
if (index < 0 || index >= this.callbacks.length) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.callbacks[index] = null;
|
|
50
|
+
this.callbacksCount -= 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var scheduler = new Scheduler;
|
|
54
|
+
|
|
55
|
+
class AnimationFrame {
|
|
56
|
+
static create() {
|
|
57
|
+
return new AnimationFrame;
|
|
58
|
+
}
|
|
59
|
+
static request(fn) {
|
|
60
|
+
return scheduler.request(fn);
|
|
61
|
+
}
|
|
62
|
+
static cancel(id) {
|
|
63
|
+
return scheduler.cancel(id);
|
|
64
|
+
}
|
|
65
|
+
currentId = EMPTY;
|
|
66
|
+
request(fn) {
|
|
67
|
+
this.cancel();
|
|
68
|
+
this.currentId = scheduler.request(() => {
|
|
69
|
+
this.currentId = EMPTY;
|
|
70
|
+
fn();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
cancel = () => {
|
|
74
|
+
if (this.currentId !== EMPTY) {
|
|
75
|
+
scheduler.cancel(this.currentId);
|
|
76
|
+
this.currentId = EMPTY;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
disposeEffect = () => {
|
|
80
|
+
return this.cancel;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function useAnimationFrame() {
|
|
84
|
+
const timeout = useRefWithInit(AnimationFrame.create).current;
|
|
85
|
+
useOnMount(timeout.disposeEffect);
|
|
86
|
+
return timeout;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { AnimationFrame, useAnimationFrame };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EMPTY_OBJECT
|
|
3
|
+
} from "./_chunk-1s41sngz.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./_chunk-1e6khrvm.js";
|
|
7
|
+
|
|
8
|
+
// node_modules/.deno/@base-ui+react@1.4.1/node_modules/@base-ui/react/esm/internals/reason-parts.js
|
|
9
|
+
var exports_reason_parts = {};
|
|
10
|
+
__export(exports_reason_parts, {
|
|
11
|
+
windowResize: () => windowResize,
|
|
12
|
+
wheel: () => wheel,
|
|
13
|
+
triggerPress: () => triggerPress,
|
|
14
|
+
triggerHover: () => triggerHover,
|
|
15
|
+
triggerFocus: () => triggerFocus,
|
|
16
|
+
trackPress: () => trackPress,
|
|
17
|
+
swipe: () => swipe,
|
|
18
|
+
siblingOpen: () => siblingOpen,
|
|
19
|
+
scrub: () => scrub,
|
|
20
|
+
pointer: () => pointer,
|
|
21
|
+
outsidePress: () => outsidePress,
|
|
22
|
+
none: () => none,
|
|
23
|
+
listNavigation: () => listNavigation,
|
|
24
|
+
linkPress: () => linkPress,
|
|
25
|
+
keyboard: () => keyboard,
|
|
26
|
+
itemPress: () => itemPress,
|
|
27
|
+
inputPress: () => inputPress,
|
|
28
|
+
inputPaste: () => inputPaste,
|
|
29
|
+
inputClear: () => inputClear,
|
|
30
|
+
inputChange: () => inputChange,
|
|
31
|
+
inputBlur: () => inputBlur,
|
|
32
|
+
incrementPress: () => incrementPress,
|
|
33
|
+
imperativeAction: () => imperativeAction,
|
|
34
|
+
focusOut: () => focusOut,
|
|
35
|
+
escapeKey: () => escapeKey,
|
|
36
|
+
drag: () => drag,
|
|
37
|
+
disabled: () => disabled,
|
|
38
|
+
decrementPress: () => decrementPress,
|
|
39
|
+
closeWatcher: () => closeWatcher,
|
|
40
|
+
closePress: () => closePress,
|
|
41
|
+
clearPress: () => clearPress,
|
|
42
|
+
chipRemovePress: () => chipRemovePress,
|
|
43
|
+
cancelOpen: () => cancelOpen
|
|
44
|
+
});
|
|
45
|
+
var none = "none";
|
|
46
|
+
var triggerPress = "trigger-press";
|
|
47
|
+
var triggerHover = "trigger-hover";
|
|
48
|
+
var triggerFocus = "trigger-focus";
|
|
49
|
+
var outsidePress = "outside-press";
|
|
50
|
+
var itemPress = "item-press";
|
|
51
|
+
var closePress = "close-press";
|
|
52
|
+
var linkPress = "link-press";
|
|
53
|
+
var clearPress = "clear-press";
|
|
54
|
+
var chipRemovePress = "chip-remove-press";
|
|
55
|
+
var trackPress = "track-press";
|
|
56
|
+
var incrementPress = "increment-press";
|
|
57
|
+
var decrementPress = "decrement-press";
|
|
58
|
+
var inputChange = "input-change";
|
|
59
|
+
var inputClear = "input-clear";
|
|
60
|
+
var inputBlur = "input-blur";
|
|
61
|
+
var inputPaste = "input-paste";
|
|
62
|
+
var inputPress = "input-press";
|
|
63
|
+
var focusOut = "focus-out";
|
|
64
|
+
var escapeKey = "escape-key";
|
|
65
|
+
var closeWatcher = "close-watcher";
|
|
66
|
+
var listNavigation = "list-navigation";
|
|
67
|
+
var keyboard = "keyboard";
|
|
68
|
+
var pointer = "pointer";
|
|
69
|
+
var drag = "drag";
|
|
70
|
+
var wheel = "wheel";
|
|
71
|
+
var scrub = "scrub";
|
|
72
|
+
var cancelOpen = "cancel-open";
|
|
73
|
+
var siblingOpen = "sibling-open";
|
|
74
|
+
var disabled = "disabled";
|
|
75
|
+
var imperativeAction = "imperative-action";
|
|
76
|
+
var swipe = "swipe";
|
|
77
|
+
var windowResize = "window-resize";
|
|
78
|
+
|
|
79
|
+
// node_modules/.deno/@base-ui+react@1.4.1/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
|
|
80
|
+
function createChangeEventDetails(reason, event, trigger, customProperties) {
|
|
81
|
+
let canceled = false;
|
|
82
|
+
let allowPropagation = false;
|
|
83
|
+
const custom = customProperties ?? EMPTY_OBJECT;
|
|
84
|
+
const details = {
|
|
85
|
+
reason,
|
|
86
|
+
event: event ?? new Event("base-ui"),
|
|
87
|
+
cancel() {
|
|
88
|
+
canceled = true;
|
|
89
|
+
},
|
|
90
|
+
allowPropagation() {
|
|
91
|
+
allowPropagation = true;
|
|
92
|
+
},
|
|
93
|
+
get isCanceled() {
|
|
94
|
+
return canceled;
|
|
95
|
+
},
|
|
96
|
+
get isPropagationAllowed() {
|
|
97
|
+
return allowPropagation;
|
|
98
|
+
},
|
|
99
|
+
trigger,
|
|
100
|
+
...custom
|
|
101
|
+
};
|
|
102
|
+
return details;
|
|
103
|
+
}
|
|
104
|
+
function createGenericEventDetails(reason, event, customProperties) {
|
|
105
|
+
const custom = customProperties ?? EMPTY_OBJECT;
|
|
106
|
+
const details = {
|
|
107
|
+
reason,
|
|
108
|
+
event: event ?? new Event("base-ui"),
|
|
109
|
+
...custom
|
|
110
|
+
};
|
|
111
|
+
return details;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { exports_reason_parts, createChangeEventDetails, createGenericEventDetails };
|