anentrypoint-design 0.0.424 → 0.0.426
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-shell.css +5 -0
- package/chat.css +41 -0
- package/colors_and_type.css +86 -42
- package/dist/247420.css +544 -82
- package/dist/247420.js +34 -28
- package/package.json +1 -1
- package/src/components/calendar/calendar.js +144 -0
- package/src/components/calendar/date-picker.js +106 -0
- package/src/components/calendar/grid.js +79 -0
- package/src/components/calendar.js +15 -0
- package/src/components/carousel.js +53 -0
- package/src/components/collab/cursors.js +68 -0
- package/src/components/collab/presence.js +29 -0
- package/src/components/collab.js +11 -0
- package/src/components/content/otp-input.js +91 -0
- package/src/components/content.js +2 -1
- package/src/components/context-pane/meter.js +42 -0
- package/src/components/context-pane/pane.js +127 -0
- package/src/components/context-pane/treemap.js +81 -0
- package/src/components/context-pane/xray.js +30 -0
- package/src/components/context-pane.js +12 -127
- package/src/components/data-density/progress.js +20 -0
- package/src/components/data-density.js +3 -0
- package/src/components/editor-primitives/layout.js +12 -0
- package/src/components/editor-primitives.js +2 -2
- package/src/components/overlay-primitives/hover-card.js +60 -0
- package/src/components/overlay-primitives/menubar.js +65 -0
- package/src/components/overlay-primitives.js +4 -0
- package/src/components/shell/icons.js +4 -1
- package/src/components/slider.js +66 -0
- package/src/components.js +21 -5
- package/src/css/app-shell/base.css +16 -0
- package/src/css/app-shell/calendar.css +131 -0
- package/src/css/app-shell/carousel.css +44 -0
- package/src/css/app-shell/chat-polish.css +1 -1
- package/src/css/app-shell/collab.css +106 -0
- package/src/css/app-shell/hero-content.css +34 -38
- package/src/css/app-shell/kits-appended.css +1 -1
- package/src/css/app-shell/otp-input.css +31 -0
- package/src/css/app-shell/slider.css +53 -0
- package/src/page-html/page-styles.js +7 -1
- package/types/components.d.ts +299 -1
|
@@ -6,7 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
export const PAGE_INLINE_STYLES = `
|
|
8
8
|
.app-stage { width: 100%; max-width: var(--stage-wide, min(96%, 1600px)); margin-inline: auto; padding: var(--space-6, 48px) var(--space-4, 24px) var(--space-8, 96px); display: grid; gap: var(--space-6, 48px); box-sizing: border-box }
|
|
9
|
-
|
|
9
|
+
/* Container-coupled, not viewport-coupled: .app-stage is a descendant of the
|
|
10
|
+
.app root, which declares container-type: inline-size (src/css/app-shell/base.css)
|
|
11
|
+
with nothing resetting containment in between (.app-body/.app-main are plain
|
|
12
|
+
blocks) — so @container here resolves against .app's real rendered width,
|
|
13
|
+
correct for embedded shells that have no useful viewport of their own. This
|
|
14
|
+
matches the hero and .app-body collapse rules, which were already @container. */
|
|
15
|
+
@container (max-width: 768px) { .app-stage { padding: var(--space-4, 24px) var(--space-3, 16px) var(--space-6, 48px); gap: var(--space-5, 32px) } }
|
|
10
16
|
/* Tier movements — the stage's uniform gap is deliberately overridden here.
|
|
11
17
|
Panels inside one tier sit tight (--space-3, 16px) because they are peers;
|
|
12
18
|
between tiers that reopens to --space-5 on top of the stage's own --space-6,
|
package/types/components.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// signature change; `npm run lint:component-types` fails CI when this
|
|
7
7
|
// file is stale.
|
|
8
8
|
//
|
|
9
|
-
//
|
|
9
|
+
// 269 exported symbols across 30 source files.
|
|
10
10
|
|
|
11
11
|
/** A webjsx virtual node, as returned by every component in this SDK. */
|
|
12
12
|
export type VNode = any;
|
|
@@ -709,6 +709,28 @@ export interface FormProps {
|
|
|
709
709
|
}
|
|
710
710
|
export declare function Form(props?: FormProps): VNode;
|
|
711
711
|
|
|
712
|
+
/**
|
|
713
|
+
* Segmented one-time-code / PIN entry.
|
|
714
|
+
*
|
|
715
|
+
* Props for {@link InputOTP} (src/components/content.js).
|
|
716
|
+
*/
|
|
717
|
+
export interface InputOTPProps {
|
|
718
|
+
/** number of boxes. @default 6 */
|
|
719
|
+
length?: number;
|
|
720
|
+
/** the full code so far (controlled). @default '' */
|
|
721
|
+
value?: string;
|
|
722
|
+
/** called with (nextValue:string, event) on every edit. */
|
|
723
|
+
onChange?: (...args: any[]) => any;
|
|
724
|
+
/** called with (code:string) once all boxes are filled. */
|
|
725
|
+
onComplete?: (...args: any[]) => any;
|
|
726
|
+
disabled?: boolean;
|
|
727
|
+
error?: boolean;
|
|
728
|
+
/** accessible name for the group. @default 'code' */
|
|
729
|
+
label?: string;
|
|
730
|
+
key?: any;
|
|
731
|
+
}
|
|
732
|
+
export declare function InputOTP(props?: InputOTPProps): VNode;
|
|
733
|
+
|
|
712
734
|
/**
|
|
713
735
|
* Props for {@link Spinner} (src/components/content.js).
|
|
714
736
|
*/
|
|
@@ -1097,6 +1119,43 @@ export interface ContextPaneProps {
|
|
|
1097
1119
|
}
|
|
1098
1120
|
export declare function ContextPane(props?: ContextPaneProps): VNode;
|
|
1099
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* Props for {@link ContextMeter} (src/components/context-pane.js).
|
|
1124
|
+
*/
|
|
1125
|
+
export interface ContextMeterProps {
|
|
1126
|
+
/** @default 0 */
|
|
1127
|
+
used?: number;
|
|
1128
|
+
/** @default 0 */
|
|
1129
|
+
total?: number;
|
|
1130
|
+
/** @default [] */
|
|
1131
|
+
segments?: any[];
|
|
1132
|
+
}
|
|
1133
|
+
export declare function ContextMeter(props?: ContextMeterProps): VNode;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Props for {@link ContextTreemap} (src/components/context-pane.js).
|
|
1137
|
+
*/
|
|
1138
|
+
export interface ContextTreemapProps {
|
|
1139
|
+
/** @default [] */
|
|
1140
|
+
items?: any[];
|
|
1141
|
+
/** @default 280 */
|
|
1142
|
+
width?: number;
|
|
1143
|
+
/** @default 160 */
|
|
1144
|
+
height?: number;
|
|
1145
|
+
}
|
|
1146
|
+
export declare function ContextTreemap(props?: ContextTreemapProps): VNode;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Props for {@link ContextXRayPanel} (src/components/context-pane.js).
|
|
1150
|
+
*/
|
|
1151
|
+
export interface ContextXRayPanelProps {
|
|
1152
|
+
/** @default [] */
|
|
1153
|
+
segments?: any[];
|
|
1154
|
+
openId?: any;
|
|
1155
|
+
onOpenIdChange?: (...args: any[]) => any;
|
|
1156
|
+
}
|
|
1157
|
+
export declare function ContextXRayPanel(props?: ContextXRayPanelProps): VNode;
|
|
1158
|
+
|
|
1100
1159
|
// ---- src/components/spreadsheet-preview.js ---------------------------
|
|
1101
1160
|
|
|
1102
1161
|
/**
|
|
@@ -1367,6 +1426,18 @@ export interface LiveLogProps {
|
|
|
1367
1426
|
}
|
|
1368
1427
|
export declare function LiveLog(props?: LiveLogProps): VNode;
|
|
1369
1428
|
|
|
1429
|
+
/**
|
|
1430
|
+
* Props for {@link Progress} (src/components/data-density.js).
|
|
1431
|
+
*/
|
|
1432
|
+
export interface ProgressProps {
|
|
1433
|
+
/** @default 0 */
|
|
1434
|
+
value?: number;
|
|
1435
|
+
/** @default 100 */
|
|
1436
|
+
max?: number;
|
|
1437
|
+
label?: any;
|
|
1438
|
+
}
|
|
1439
|
+
export declare function Progress(props?: ProgressProps): VNode;
|
|
1440
|
+
|
|
1370
1441
|
// ---- src/components/files.js -----------------------------------------
|
|
1371
1442
|
|
|
1372
1443
|
export declare function fileGlyph(type?: any): VNode;
|
|
@@ -2072,6 +2143,57 @@ export interface playCompletionCueProps {}
|
|
|
2072
2143
|
|
|
2073
2144
|
export declare function playCompletionCue(props?: playCompletionCueProps): VNode;
|
|
2074
2145
|
|
|
2146
|
+
// ---- src/components/collab.js ----------------------------------------
|
|
2147
|
+
|
|
2148
|
+
/**
|
|
2149
|
+
* Props for {@link LiveCursorOverlay} (src/components/collab.js).
|
|
2150
|
+
*/
|
|
2151
|
+
export interface LiveCursorOverlayProps {
|
|
2152
|
+
/** @default [] */
|
|
2153
|
+
cursors?: any[];
|
|
2154
|
+
}
|
|
2155
|
+
export declare function LiveCursorOverlay(props?: LiveCursorOverlayProps): VNode;
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* Props for {@link RemoteSelectionRings} (src/components/collab.js).
|
|
2159
|
+
*/
|
|
2160
|
+
export interface RemoteSelectionRingsProps {
|
|
2161
|
+
/** @default [] */
|
|
2162
|
+
selections?: any[];
|
|
2163
|
+
}
|
|
2164
|
+
export declare function RemoteSelectionRings(props?: RemoteSelectionRingsProps): VNode;
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* Props for {@link RecentEditHighlightFlash} (src/components/collab.js).
|
|
2168
|
+
*/
|
|
2169
|
+
export interface RecentEditHighlightFlashProps {
|
|
2170
|
+
/** @default [] */
|
|
2171
|
+
edits?: any[];
|
|
2172
|
+
}
|
|
2173
|
+
export declare function RecentEditHighlightFlash(props?: RecentEditHighlightFlashProps): VNode;
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Props for {@link AgentPresenceChip} (src/components/collab.js).
|
|
2177
|
+
*/
|
|
2178
|
+
export interface AgentPresenceChipProps {
|
|
2179
|
+
userId?: any;
|
|
2180
|
+
label?: any;
|
|
2181
|
+
color?: any;
|
|
2182
|
+
/** @default 'active' */
|
|
2183
|
+
status?: string;
|
|
2184
|
+
key?: string | number;
|
|
2185
|
+
}
|
|
2186
|
+
export declare function AgentPresenceChip(props?: AgentPresenceChipProps): VNode;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* Props for {@link PresenceBar} (src/components/collab.js).
|
|
2190
|
+
*/
|
|
2191
|
+
export interface PresenceBarProps {
|
|
2192
|
+
/** @default [] */
|
|
2193
|
+
users?: any[];
|
|
2194
|
+
}
|
|
2195
|
+
export declare function PresenceBar(props?: PresenceBarProps): VNode;
|
|
2196
|
+
|
|
2075
2197
|
// ---- src/components/theme-toggle.js ----------------------------------
|
|
2076
2198
|
|
|
2077
2199
|
/**
|
|
@@ -2173,6 +2295,52 @@ export declare function useFormValidation(schema?: any): VNode;
|
|
|
2173
2295
|
|
|
2174
2296
|
export declare function focusFirstInvalidField(errors?: any, order?: any, getEl?: any): VNode;
|
|
2175
2297
|
|
|
2298
|
+
// ---- src/components/slider.js ----------------------------------------
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* A single-value range slider (track + fill + thumb) built on a real, invisible native `<input type="range">` for keyboard/pointer/a11y semantics, matching the overlay approach voice/capture.js's VadMeter pioneered for its threshold handle.
|
|
2302
|
+
*
|
|
2303
|
+
* Props for {@link Slider} (src/components/slider.js).
|
|
2304
|
+
*/
|
|
2305
|
+
export interface SliderProps {
|
|
2306
|
+
/** @default 0 */
|
|
2307
|
+
value?: number;
|
|
2308
|
+
/** @default 0 */
|
|
2309
|
+
min?: number;
|
|
2310
|
+
/** @default 100 */
|
|
2311
|
+
max?: number;
|
|
2312
|
+
/** @default 1 */
|
|
2313
|
+
step?: number;
|
|
2314
|
+
/** called with (value:number, event) on input. */
|
|
2315
|
+
onChange?: (...args: any[]) => any;
|
|
2316
|
+
/** accessible name; also rendered visibly when given. */
|
|
2317
|
+
label?: string;
|
|
2318
|
+
disabled?: boolean;
|
|
2319
|
+
hint?: string;
|
|
2320
|
+
key?: any;
|
|
2321
|
+
}
|
|
2322
|
+
export declare function Slider(props?: SliderProps): VNode;
|
|
2323
|
+
|
|
2324
|
+
// ---- src/components/carousel.js --------------------------------------
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* A scroll-snap content carousel with prev/next controls.
|
|
2328
|
+
*
|
|
2329
|
+
* Props for {@link Carousel} (src/components/carousel.js).
|
|
2330
|
+
*/
|
|
2331
|
+
export interface CarouselProps {
|
|
2332
|
+
/** @default [] */
|
|
2333
|
+
items?: any[];
|
|
2334
|
+
/** (item, index) => vnode. */
|
|
2335
|
+
renderItem?: (...args: any[]) => any;
|
|
2336
|
+
/** @default 'horizontal' */
|
|
2337
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2338
|
+
/** accessible name for the region. @default 'carousel' */
|
|
2339
|
+
label?: string;
|
|
2340
|
+
key?: any;
|
|
2341
|
+
}
|
|
2342
|
+
export declare function Carousel(props?: CarouselProps): VNode;
|
|
2343
|
+
|
|
2176
2344
|
// ---- src/components/interaction-primitives.js ------------------------
|
|
2177
2345
|
|
|
2178
2346
|
export declare function useDraggable(el?: any, arg1?: any, kind?: any, onDragStart?: any, arg4?: any): VNode;
|
|
@@ -2592,6 +2760,16 @@ export interface DividerProps {
|
|
|
2592
2760
|
}
|
|
2593
2761
|
export declare function Divider(props?: DividerProps): VNode;
|
|
2594
2762
|
|
|
2763
|
+
/**
|
|
2764
|
+
* Props for {@link AspectRatio} (src/components/editor-primitives.js).
|
|
2765
|
+
*/
|
|
2766
|
+
export interface AspectRatioProps {
|
|
2767
|
+
ratio?: any;
|
|
2768
|
+
children?: any;
|
|
2769
|
+
key?: string | number;
|
|
2770
|
+
}
|
|
2771
|
+
export declare function AspectRatio(props?: AspectRatioProps): VNode;
|
|
2772
|
+
|
|
2595
2773
|
export declare function useMediaQuery(query?: any): VNode;
|
|
2596
2774
|
|
|
2597
2775
|
export declare const BP_SM: number;
|
|
@@ -2862,6 +3040,38 @@ export interface MenuButtonProps {
|
|
|
2862
3040
|
}
|
|
2863
3041
|
export declare function MenuButton(props?: MenuButtonProps): VNode;
|
|
2864
3042
|
|
|
3043
|
+
/**
|
|
3044
|
+
* Props for {@link HoverCard} (src/components/overlay-primitives.js).
|
|
3045
|
+
*/
|
|
3046
|
+
export interface HoverCardProps {
|
|
3047
|
+
trigger?: any;
|
|
3048
|
+
content?: any;
|
|
3049
|
+
open?: any;
|
|
3050
|
+
onOpenChange?: (...args: any[]) => any;
|
|
3051
|
+
/** @default 700 */
|
|
3052
|
+
openDelay?: number;
|
|
3053
|
+
/** @default 300 */
|
|
3054
|
+
closeDelay?: number;
|
|
3055
|
+
/** @default 'top' */
|
|
3056
|
+
placement?: string;
|
|
3057
|
+
ariaLabel?: any;
|
|
3058
|
+
}
|
|
3059
|
+
export declare function HoverCard(props?: HoverCardProps): VNode;
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* Props for {@link Menubar} (src/components/overlay-primitives.js).
|
|
3063
|
+
*/
|
|
3064
|
+
export interface MenubarProps {
|
|
3065
|
+
/** @default [] */
|
|
3066
|
+
menus?: any[];
|
|
3067
|
+
/** @default null */
|
|
3068
|
+
openIndex?: any;
|
|
3069
|
+
onOpenIndexChange?: (...args: any[]) => any;
|
|
3070
|
+
/** @default 'Menu bar' */
|
|
3071
|
+
ariaLabel?: string;
|
|
3072
|
+
}
|
|
3073
|
+
export declare function Menubar(props?: MenubarProps): VNode;
|
|
3074
|
+
|
|
2865
3075
|
// ---- src/components/freddie.js ---------------------------------------
|
|
2866
3076
|
|
|
2867
3077
|
export declare const FREDDIE_PAGES: Record<string, any>;
|
|
@@ -2929,3 +3139,91 @@ export declare function refreshError(err?: any): VNode;
|
|
|
2929
3139
|
|
|
2930
3140
|
export declare function mountCommunityApp(root?: any, adapter?: any): VNode;
|
|
2931
3141
|
|
|
3142
|
+
// ---- src/components/calendar.js --------------------------------------
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* A month date-grid. Fully controlled: `selected`/`month` are owned by the caller, this component holds no selection state of its own.
|
|
3146
|
+
*
|
|
3147
|
+
* Props for {@link Calendar} (src/components/calendar.js).
|
|
3148
|
+
*/
|
|
3149
|
+
export interface CalendarProps {
|
|
3150
|
+
/** @default 'single' */
|
|
3151
|
+
mode?: 'single' | 'range';
|
|
3152
|
+
/** a Date in single mode, `{from,to}` in range mode. */
|
|
3153
|
+
selected?: any;
|
|
3154
|
+
/** single mode: `onSelect(date)`. range mode: `onSelect({from,to})`. */
|
|
3155
|
+
onSelect?: (...args: any[]) => any;
|
|
3156
|
+
/** the currently-displayed month (any date within it). */
|
|
3157
|
+
month?: any;
|
|
3158
|
+
/** `onMonthChange(newMonthDate)`, fired by the prev/next nav. */
|
|
3159
|
+
onMonthChange?: (...args: any[]) => any;
|
|
3160
|
+
minDate?: any;
|
|
3161
|
+
maxDate?: any;
|
|
3162
|
+
/** BCP-47 locale for weekday/month labels; defaults to the SDK's active locale. @default getLocale() */
|
|
3163
|
+
locale?: string;
|
|
3164
|
+
}
|
|
3165
|
+
export declare function Calendar(props?: CalendarProps): VNode;
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* Trigger button that opens a Popover hosting a single-mode Calendar.
|
|
3169
|
+
*
|
|
3170
|
+
* Props for {@link DatePicker} (src/components/calendar.js).
|
|
3171
|
+
*/
|
|
3172
|
+
export interface DatePickerProps {
|
|
3173
|
+
/** the selected date. */
|
|
3174
|
+
value?: any;
|
|
3175
|
+
/** `onChange(date)`, fired on day select. */
|
|
3176
|
+
onChange?: (...args: any[]) => any;
|
|
3177
|
+
/** popover open state, owned by the caller. @default false */
|
|
3178
|
+
open?: boolean;
|
|
3179
|
+
/** `onOpenChange(nextOpen)`, fired by the trigger click and on close (Escape/outside-click/selection). */
|
|
3180
|
+
onOpenChange?: (...args: any[]) => any;
|
|
3181
|
+
/** displayed month; defaults to `value` or today when omitted. */
|
|
3182
|
+
month?: any;
|
|
3183
|
+
/** `onMonthChange(newMonthDate)`, fired by the prev/next nav. */
|
|
3184
|
+
onMonthChange?: (...args: any[]) => any;
|
|
3185
|
+
/** trigger label when `value` is unset. @default 'Select date' */
|
|
3186
|
+
placeholder?: string;
|
|
3187
|
+
minDate?: any;
|
|
3188
|
+
maxDate?: any;
|
|
3189
|
+
/** stable id distinguishing multiple pickers' anchor lookup; set explicitly when rendering more than one DatePicker on a page. @default 'dp' */
|
|
3190
|
+
name?: string;
|
|
3191
|
+
/** @default getLocale() */
|
|
3192
|
+
locale?: string;
|
|
3193
|
+
}
|
|
3194
|
+
export declare function DatePicker(props?: DatePickerProps): VNode;
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* Trigger button that opens a Popover hosting a range-mode Calendar.
|
|
3198
|
+
*
|
|
3199
|
+
* Props for {@link DateRangePicker} (src/components/calendar.js).
|
|
3200
|
+
*/
|
|
3201
|
+
export interface DateRangePickerProps {
|
|
3202
|
+
value?: { from: any; to: any };
|
|
3203
|
+
/** `onChange({from,to})`, fired on each click. */
|
|
3204
|
+
onChange?: (...args: any[]) => any;
|
|
3205
|
+
/** popover open state, owned by the caller. @default false */
|
|
3206
|
+
open?: boolean;
|
|
3207
|
+
/** `onOpenChange(nextOpen)`; also fired with `false` once both ends of the range are picked. */
|
|
3208
|
+
onOpenChange?: (...args: any[]) => any;
|
|
3209
|
+
month?: any;
|
|
3210
|
+
onMonthChange?: (...args: any[]) => any;
|
|
3211
|
+
/** @default 'Select dates' */
|
|
3212
|
+
placeholder?: string;
|
|
3213
|
+
minDate?: any;
|
|
3214
|
+
maxDate?: any;
|
|
3215
|
+
/** stable id distinguishing multiple pickers' anchor lookup. @default 'drp' */
|
|
3216
|
+
name?: string;
|
|
3217
|
+
/** @default getLocale() */
|
|
3218
|
+
locale?: string;
|
|
3219
|
+
}
|
|
3220
|
+
export declare function DateRangePicker(props?: DateRangePickerProps): VNode;
|
|
3221
|
+
|
|
3222
|
+
export declare const WEEKDAY_LABELS: any[];
|
|
3223
|
+
|
|
3224
|
+
export declare function buildMonthGrid(monthDate?: any): VNode;
|
|
3225
|
+
|
|
3226
|
+
export declare function formatDate(d?: any, locale?: any): VNode;
|
|
3227
|
+
|
|
3228
|
+
export declare function monthLabel(monthDate?: any, locale?: any): VNode;
|
|
3229
|
+
|