@wow-two-beta/ui 0.0.57 → 0.0.58
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/actions/button/Button.d.ts +0 -9
- package/dist/actions/buttonGroup/ButtonGroup.d.ts +2 -2
- package/dist/actions/disclosureButton/DisclosureButton.d.ts +1 -1
- package/dist/actions/index.js +4 -4
- package/dist/actions/speedDial/SpeedDial.d.ts +2 -2
- package/dist/actions/toggleButton/ToggleButton.d.ts +1 -1
- package/dist/actions/toggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/{chunk-VR5HH4SX.js → chunk-4XWLEKH2.js} +10 -4
- package/dist/chunk-4XWLEKH2.js.map +1 -0
- package/dist/{chunk-3GZOE7JF.js → chunk-577JZ2A2.js} +3 -3
- package/dist/{chunk-3GZOE7JF.js.map → chunk-577JZ2A2.js.map} +1 -1
- package/dist/{chunk-BI6JZY2O.js → chunk-DJJOQWOG.js} +6 -6
- package/dist/chunk-DJJOQWOG.js.map +1 -0
- package/dist/{chunk-FEXH7YWU.js → chunk-EEHJHPAP.js} +30 -30
- package/dist/chunk-EEHJHPAP.js.map +1 -0
- package/dist/{chunk-5Y43MUOK.js → chunk-EJCO7AWR.js} +11 -11
- package/dist/chunk-EJCO7AWR.js.map +1 -0
- package/dist/{chunk-ZFNGOAHR.js → chunk-EX4AOJCN.js} +58 -58
- package/dist/chunk-EX4AOJCN.js.map +1 -0
- package/dist/{chunk-4WYHY6KV.js → chunk-FNSC4LAL.js} +3 -3
- package/dist/{chunk-4WYHY6KV.js.map → chunk-FNSC4LAL.js.map} +1 -1
- package/dist/{chunk-WOKIYORV.js → chunk-FYG23O4O.js} +262 -28
- package/dist/chunk-FYG23O4O.js.map +1 -0
- package/dist/{chunk-WPTF6ZRR.js → chunk-GSAOM2ZR.js} +67 -38
- package/dist/chunk-GSAOM2ZR.js.map +1 -0
- package/dist/{chunk-JOOE4KS5.js → chunk-HG7NX6GP.js} +509 -380
- package/dist/chunk-HG7NX6GP.js.map +1 -0
- package/dist/{chunk-XDP6GEBA.js → chunk-JYGC5SRP.js} +39 -5
- package/dist/chunk-JYGC5SRP.js.map +1 -0
- package/dist/{chunk-4QOCAFCA.js → chunk-MTD4RTGO.js} +19 -19
- package/dist/chunk-MTD4RTGO.js.map +1 -0
- package/dist/{chunk-USGZGMLY.js → chunk-NR5DYKSJ.js} +3 -3
- package/dist/{chunk-USGZGMLY.js.map → chunk-NR5DYKSJ.js.map} +1 -1
- package/dist/{chunk-VYOQYXK6.js → chunk-OBW7JUNL.js} +12 -12
- package/dist/chunk-OBW7JUNL.js.map +1 -0
- package/dist/{chunk-UI4RT5JF.js → chunk-TTSJZEL7.js} +25 -25
- package/dist/chunk-TTSJZEL7.js.map +1 -0
- package/dist/{chunk-5PMOT5MD.js → chunk-V267IMBH.js} +86 -4
- package/dist/chunk-V267IMBH.js.map +1 -0
- package/dist/{chunk-ZH6BB54G.js → chunk-XDATW7NF.js} +3 -3
- package/dist/{chunk-ZH6BB54G.js.map → chunk-XDATW7NF.js.map} +1 -1
- package/dist/{chunk-4OKJVYBV.js → chunk-Y5GS4CLT.js} +221 -186
- package/dist/chunk-Y5GS4CLT.js.map +1 -0
- package/dist/display/accordion/Accordion.d.ts +15 -11
- package/dist/display/activityFeed/ActivityFeed.d.ts +2 -2
- package/dist/display/annotationMarker/AnnotationMarker.d.ts +6 -7
- package/dist/display/audioPlayer/AudioPlayer.d.ts +1 -1
- package/dist/display/audioWaveform/AudioWaveform.d.ts +1 -1
- package/dist/display/avatar/Avatar.d.ts +1 -1
- package/dist/display/badgeOverlay/BadgeOverlay.d.ts +1 -1
- package/dist/display/carousel/Carousel.d.ts +1 -1
- package/dist/display/chatBubble/ChatBubble.d.ts +2 -2
- package/dist/display/collapsible/Collapsible.d.ts +2 -2
- package/dist/display/commentThread/CommentThread.d.ts +1 -1
- package/dist/display/confetti/Confetti.d.ts +2 -2
- package/dist/display/countBadge/CountBadge.d.ts +3 -4
- package/dist/display/countUp/CountUp.d.ts +2 -2
- package/dist/display/dataGrid/DataGrid.d.ts +2 -2
- package/dist/display/dataTable/DataTable.d.ts +5 -5
- package/dist/display/diffViewer/DiffViewer.d.ts +1 -1
- package/dist/display/eventCalendar/EventCalendar.d.ts +1 -1
- package/dist/display/gantt/Gantt.d.ts +1 -1
- package/dist/display/gradientText/GradientText.d.ts +2 -2
- package/dist/display/heatmapCalendar/HeatmapCalendar.d.ts +1 -1
- package/dist/display/highlight/Highlight.d.ts +2 -2
- package/dist/display/index.js +6 -6
- package/dist/display/list/List.d.ts +2 -2
- package/dist/display/marquee/Marquee.d.ts +1 -1
- package/dist/display/messageList/MessageList.d.ts +3 -3
- package/dist/display/notificationDot/NotificationDot.d.ts +1 -1
- package/dist/display/pdfViewer/PDFViewer.d.ts +1 -1
- package/dist/display/reactionBar/ReactionBar.d.ts +6 -6
- package/dist/display/scrollReveal/ScrollReveal.d.ts +1 -1
- package/dist/display/sectionHeader/SectionHeader.d.ts +1 -1
- package/dist/display/separator/Separator.d.ts +2 -3
- package/dist/display/sparkline/Sparkline.d.ts +1 -1
- package/dist/display/status/Status.d.ts +1 -1
- package/dist/display/swipeActions/SwipeActions.d.ts +1 -1
- package/dist/display/table/Table.d.ts +17 -5
- package/dist/display/table/index.d.ts +1 -1
- package/dist/display/tabs/Tabs.d.ts +1 -1
- package/dist/display/text/Text.variants.d.ts +14 -14
- package/dist/display/threadView/ThreadView.d.ts +2 -2
- package/dist/display/tilt/Tilt.d.ts +2 -3
- package/dist/display/tooltip/Tooltip.d.ts +2 -2
- package/dist/display/tree/Tree.d.ts +2 -2
- package/dist/display/typewriter/Typewriter.d.ts +2 -2
- package/dist/feedback/index.js +6 -6
- package/dist/feedback/liveCursor/LiveCursor.d.ts +4 -6
- package/dist/feedback/loadingOverlay/LoadingOverlay.d.ts +5 -6
- package/dist/feedback/notificationCenter/NotificationCenter.d.ts +1 -1
- package/dist/feedback/onboardingChecklist/OnboardingChecklist.d.ts +3 -3
- package/dist/feedback/presenceIndicator/PresenceIndicator.d.ts +1 -1
- package/dist/feedback/statusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/feedback/toaster/Toaster.d.ts +2 -2
- package/dist/feedback/tour/Tour.d.ts +2 -2
- package/dist/feedback/trendIndicator/TrendIndicator.d.ts +2 -2
- package/dist/feedback/typingIndicator/TypingIndicator.d.ts +1 -1
- package/dist/feedback/undoBar/UndoBar.d.ts +4 -4
- package/dist/forms/addressForm/AddressForm.d.ts +3 -3
- package/dist/forms/characterCount/CharacterCount.d.ts +1 -1
- package/dist/forms/chatComposer/ChatComposer.d.ts +2 -2
- package/dist/forms/checkbox/Checkbox.d.ts +1 -1
- package/dist/forms/checkboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/forms/codeEditor/CodeEditor.d.ts +2 -2
- package/dist/forms/colorArea/ColorArea.d.ts +1 -1
- package/dist/forms/colorField/ColorField.d.ts +1 -1
- package/dist/forms/colorPicker/ColorPicker.d.ts +2 -2
- package/dist/forms/colorSlider/ColorSlider.d.ts +1 -1
- package/dist/forms/colorSwatch/ColorSwatch.variants.d.ts +14 -14
- package/dist/forms/colorSwatchPicker/ColorSwatchPicker.d.ts +2 -2
- package/dist/forms/colorWheel/ColorWheel.d.ts +1 -1
- package/dist/forms/combobox/Combobox.d.ts +4 -4
- package/dist/forms/cronInput/CronInput.d.ts +2 -2
- package/dist/forms/datePicker/DatePicker.d.ts +1 -1
- package/dist/forms/dateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/forms/editable/Editable.d.ts +7 -7
- package/dist/forms/emojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/forms/fileUpload/FileUpload.d.ts +1 -1
- package/dist/forms/fontPicker/FontPicker.d.ts +1 -1
- package/dist/forms/gradientPicker/GradientPicker.d.ts +1 -1
- package/dist/forms/iconPicker/IconPicker.d.ts +1 -1
- package/dist/forms/index.js +11 -11
- package/dist/forms/jsonEditor/JSONEditor.d.ts +3 -3
- package/dist/forms/knob/Knob.d.ts +2 -2
- package/dist/forms/label/Label.d.ts +1 -1
- package/dist/forms/listbox/Listbox.d.ts +8 -4
- package/dist/forms/markdownEditor/MarkdownEditor.d.ts +1 -1
- package/dist/forms/multiSelect/MultiSelect.d.ts +4 -4
- package/dist/forms/passwordInput/PasswordInput.d.ts +1 -1
- package/dist/forms/passwordStrength/PasswordStrength.d.ts +1 -1
- package/dist/forms/phoneInput/PhoneInput.d.ts +3 -3
- package/dist/forms/pinInput/PinInput.d.ts +2 -2
- package/dist/forms/radioGroup/RadioGroup.d.ts +1 -1
- package/dist/forms/reactionPicker/ReactionPicker.d.ts +1 -1
- package/dist/forms/recurrenceEditor/RecurrenceEditor.d.ts +2 -2
- package/dist/forms/searchInput/SearchInput.d.ts +1 -1
- package/dist/forms/select/Select.d.ts +14 -7
- package/dist/forms/select/Select.variants.d.ts +46 -3
- package/dist/forms/stepper/Stepper.d.ts +1 -1
- package/dist/forms/tagsInput/TagsInput.d.ts +2 -2
- package/dist/forms/timePicker/TimePicker.d.ts +1 -1
- package/dist/forms/wizard/Wizard.d.ts +5 -5
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useTypeahead.d.ts +37 -0
- package/dist/icons/index.js +1 -1
- package/dist/index.js +18 -18
- package/dist/layout/appShell/AppShell.d.ts +2 -2
- package/dist/layout/frame/Frame.d.ts +1 -1
- package/dist/layout/grid/Grid.d.ts +17 -5
- package/dist/layout/grid/Grid.variants.d.ts +15 -0
- package/dist/layout/grid/index.d.ts +1 -1
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +9 -9
- package/dist/layout/inline/Inline.d.ts +5 -0
- package/dist/layout/navbar/Navbar.d.ts +37 -0
- package/dist/layout/navbar/Navbar.variants.d.ts +76 -0
- package/dist/layout/navbar/index.d.ts +2 -0
- package/dist/layout/pullToRefresh/PullToRefresh.d.ts +1 -1
- package/dist/layout/resizablePanels/ResizablePanels.d.ts +1 -1
- package/dist/layout/section/Section.d.ts +26 -0
- package/dist/layout/section/Section.variants.d.ts +62 -0
- package/dist/layout/section/index.d.ts +2 -0
- package/dist/nav/commandPalette/CommandPalette.d.ts +1 -1
- package/dist/nav/contextMenu/ContextMenu.d.ts +1 -1
- package/dist/nav/index.js +8 -8
- package/dist/nav/menu/Menu.d.ts +1 -1
- package/dist/nav/navItem/NavItem.d.ts +2 -3
- package/dist/nav/tableOfContents/TableOfContents.d.ts +1 -1
- package/dist/overlays/actionSheet/ActionSheet.d.ts +1 -1
- package/dist/overlays/backdrop/Backdrop.d.ts +3 -6
- package/dist/overlays/dialog/Dialog.d.ts +1 -1
- package/dist/overlays/drawer/Drawer.d.ts +1 -1
- package/dist/overlays/index.js +8 -8
- package/dist/overlays/popover/Popover.d.ts +1 -1
- package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts +1 -1
- package/dist/primitives/dismissableLayer/DismissableLayer.d.ts +2 -2
- package/dist/primitives/index.js +1 -1
- package/dist/primitives/presence/Presence.d.ts +3 -3
- package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts +3 -6
- package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts +2 -2
- package/dist/utils/Environment.d.ts +8 -0
- package/dist/utils/SurfaceStyles.d.ts +7 -0
- package/dist/utils/Tones.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4OKJVYBV.js.map +0 -1
- package/dist/chunk-4QOCAFCA.js.map +0 -1
- package/dist/chunk-5PMOT5MD.js.map +0 -1
- package/dist/chunk-5Y43MUOK.js.map +0 -1
- package/dist/chunk-BI6JZY2O.js.map +0 -1
- package/dist/chunk-FEXH7YWU.js.map +0 -1
- package/dist/chunk-JOOE4KS5.js.map +0 -1
- package/dist/chunk-UI4RT5JF.js.map +0 -1
- package/dist/chunk-VR5HH4SX.js.map +0 -1
- package/dist/chunk-VYOQYXK6.js.map +0 -1
- package/dist/chunk-WOKIYORV.js.map +0 -1
- package/dist/chunk-WPTF6ZRR.js.map +0 -1
- package/dist/chunk-XDP6GEBA.js.map +0 -1
- package/dist/chunk-ZFNGOAHR.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
export interface PresenceProps {
|
|
3
3
|
/** Whether the content should be present. Toggle false to trigger exit. */
|
|
4
|
-
|
|
4
|
+
isPresent: boolean;
|
|
5
5
|
/** Single React element child — receives `ref` and `data-state` ("open" | "closed"). */
|
|
6
6
|
children: ReactElement;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Defer unmount until the child's exit animation/transition finishes.
|
|
10
|
-
* Pass `
|
|
10
|
+
* Pass `isPresent={false}` to start the exit; the child stays mounted with
|
|
11
11
|
* `data-state="closed"` until its own `animationend`/`transitionend` fires
|
|
12
12
|
* (or a computed-duration timeout as a fallback). If no exit animation
|
|
13
13
|
* actually starts, the child unmounts immediately. On enter, the child
|
|
14
14
|
* mounts with `data-state="closed"` and flips to `"open"` on the next
|
|
15
15
|
* frame so enter transitions play.
|
|
16
16
|
*/
|
|
17
|
-
export declare function Presence({
|
|
17
|
+
export declare function Presence({ isPresent, children }: PresenceProps): ReactElement | null;
|
|
@@ -2,7 +2,7 @@ import { type HTMLAttributes, type KeyboardEvent, type ReactNode } from 'react';
|
|
|
2
2
|
export type Orientation = 'horizontal' | 'vertical' | 'both';
|
|
3
3
|
export interface RovingFocusGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
orientation?: Orientation;
|
|
5
|
-
|
|
5
|
+
canLoop?: boolean;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -12,11 +12,8 @@ export interface RovingFocusGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const RovingFocusGroup: import("react").ForwardRefExoticComponent<RovingFocusGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export interface UseRovingFocusItemOptions {
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
* group (e.g. the selected tab), per the APG composite-widget pattern.
|
|
18
|
-
*/
|
|
19
|
-
active?: boolean;
|
|
15
|
+
/** Preferred tab stop while focus is outside the group (e.g. the selected tab) — APG composite-widget pattern. */
|
|
16
|
+
isActive?: boolean;
|
|
20
17
|
}
|
|
21
18
|
export interface UseRovingFocusItemReturn {
|
|
22
19
|
ref: (node: HTMLElement | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
export interface ScrollLockProviderProps {
|
|
3
|
-
|
|
3
|
+
isEnabled?: boolean;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -8,4 +8,4 @@ export interface ScrollLockProviderProps {
|
|
|
8
8
|
* follow a child's mount lifecycle (e.g. inside a Modal's portal).
|
|
9
9
|
* Multiple wrappers stack; lock releases when the count reaches zero.
|
|
10
10
|
*/
|
|
11
|
-
export declare function ScrollLockProvider({
|
|
11
|
+
export declare function ScrollLockProvider({ isEnabled, children }: ScrollLockProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Environment: {
|
|
2
|
+
readonly Development: "development";
|
|
3
|
+
readonly Production: "production";
|
|
4
|
+
readonly Test: "test";
|
|
5
|
+
};
|
|
6
|
+
export type Environment = (typeof Environment)[keyof typeof Environment];
|
|
7
|
+
export declare const IS_DEV: boolean;
|
|
8
|
+
export declare const IS_PRODUCTION: boolean;
|
|
@@ -10,6 +10,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
'glass-outline': string;
|
|
11
11
|
elevated: string;
|
|
12
12
|
flat: string;
|
|
13
|
+
subtle: string;
|
|
13
14
|
};
|
|
14
15
|
tone: {
|
|
15
16
|
neutral: string;
|
|
@@ -55,6 +56,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
55
56
|
'glass-outline': string;
|
|
56
57
|
elevated: string;
|
|
57
58
|
flat: string;
|
|
59
|
+
subtle: string;
|
|
58
60
|
};
|
|
59
61
|
tone: {
|
|
60
62
|
neutral: string;
|
|
@@ -100,6 +102,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
100
102
|
'glass-outline': string;
|
|
101
103
|
elevated: string;
|
|
102
104
|
flat: string;
|
|
105
|
+
subtle: string;
|
|
103
106
|
};
|
|
104
107
|
tone: {
|
|
105
108
|
neutral: string;
|
|
@@ -145,6 +148,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
145
148
|
'glass-outline': string;
|
|
146
149
|
elevated: string;
|
|
147
150
|
flat: string;
|
|
151
|
+
subtle: string;
|
|
148
152
|
};
|
|
149
153
|
tone: {
|
|
150
154
|
neutral: string;
|
|
@@ -190,6 +194,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
190
194
|
'glass-outline': string;
|
|
191
195
|
elevated: string;
|
|
192
196
|
flat: string;
|
|
197
|
+
subtle: string;
|
|
193
198
|
};
|
|
194
199
|
tone: {
|
|
195
200
|
neutral: string;
|
|
@@ -235,6 +240,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
235
240
|
'glass-outline': string;
|
|
236
241
|
elevated: string;
|
|
237
242
|
flat: string;
|
|
243
|
+
subtle: string;
|
|
238
244
|
};
|
|
239
245
|
tone: {
|
|
240
246
|
neutral: string;
|
|
@@ -280,6 +286,7 @@ export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
280
286
|
'glass-outline': string;
|
|
281
287
|
elevated: string;
|
|
282
288
|
flat: string;
|
|
289
|
+
subtle: string;
|
|
283
290
|
};
|
|
284
291
|
tone: {
|
|
285
292
|
neutral: string;
|
package/dist/utils/Tones.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Tone } from './StyleTokens';
|
|
2
2
|
/** Represents a tone-family — the variant group that picks the same bg/border/text palette. */
|
|
3
|
-
export type ToneFamily = 'solid' | 'soft' | 'surface' | 'outline' | 'glass' | 'glassOutline';
|
|
3
|
+
export type ToneFamily = 'solid' | 'soft' | 'surface' | 'outline' | 'glass' | 'glassOutline' | 'subtle';
|
|
4
4
|
/** Contains the cross-engine palette: bg / text (+ border where applicable) per tone-family × tone. */
|
|
5
5
|
export declare const Tones: Record<ToneFamily, Record<Tone, string>>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { OptionalExtensions } from './OptionalExtensions';
|
|
|
12
12
|
export { PressExtensions, type PressEvent } from './PressExtensions';
|
|
13
13
|
export { HtmlElement, ButtonType } from './HtmlExtensions';
|
|
14
14
|
export { Key } from './KeyboardExtensions';
|
|
15
|
+
export { Environment, IS_DEV, IS_PRODUCTION } from './Environment';
|
|
15
16
|
export { TransitionExtensions } from './TransitionExtensions';
|
|
16
17
|
export type { PresenceAnimationDurationProp, PresenceAnimationDuration, } from './TransitionExtensions';
|
|
17
18
|
export { surfaceVariants } from './SurfaceStyles';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ButtonType, ColorExtensions, CssExtensions, Equality, HtmlElement, Key, Layer, OptionalExtensions, PressExtensions, Tones, TransitionExtensions, composeEventHandlers, dataAttr, layerStyle, surfaceVariants, tv } from '../chunk-
|
|
1
|
+
export { ButtonType, ColorExtensions, CssExtensions, Environment, Equality, HtmlElement, IS_DEV, IS_PRODUCTION, Key, Layer, OptionalExtensions, PressExtensions, Tones, TransitionExtensions, composeEventHandlers, dataAttr, layerStyle, surfaceVariants, tv } from '../chunk-JYGC5SRP.js';
|
|
2
2
|
export { cn, composeRefs } from '../chunk-X2MYOHOB.js';
|
|
3
3
|
import '../chunk-DCHYNTHI.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|