@astryxdesign/lab 0.7.7-canary.fc68123 → 0.7.8-canary.36cde5e
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/SelectableCardGroup/SelectableCardGroup.d.ts +91 -0
- package/dist/SelectableCardGroup/SelectableCardGroup.d.ts.map +1 -0
- package/dist/SelectableCardGroup/SelectableCardGroup.js +205 -0
- package/dist/SelectableCardGroup/index.d.ts +6 -0
- package/dist/SelectableCardGroup/index.d.ts.map +1 -0
- package/dist/SelectableCardGroup/index.js +7 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -11
- package/dist/lab.css +0 -27
- package/package.json +5 -5
- package/src/SelectableCardGroup/SelectableCardGroup.doc.mjs +262 -0
- package/src/SelectableCardGroup/SelectableCardGroup.test.tsx +269 -0
- package/src/SelectableCardGroup/SelectableCardGroup.tsx +321 -0
- package/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts +124 -0
- package/src/SelectableCardGroup/index.ts +14 -0
- package/src/index.ts +9 -18
- package/dist/MobilePowerSearch/MobilePowerSearch.d.ts +0 -154
- package/dist/MobilePowerSearch/MobilePowerSearch.d.ts.map +0 -1
- package/dist/MobilePowerSearch/MobilePowerSearch.js +0 -1739
- package/dist/MobilePowerSearch/MobilePowerSearchValueEditor.d.ts +0 -42
- package/dist/MobilePowerSearch/MobilePowerSearchValueEditor.d.ts.map +0 -1
- package/dist/MobilePowerSearch/MobilePowerSearchValueEditor.js +0 -635
- package/dist/MobilePowerSearch/index.d.ts +0 -9
- package/dist/MobilePowerSearch/index.d.ts.map +0 -1
- package/dist/MobilePowerSearch/index.js +0 -11
- package/dist/MobilePowerSearch/mobilePowerSearchUtils.d.ts +0 -91
- package/dist/MobilePowerSearch/mobilePowerSearchUtils.d.ts.map +0 -1
- package/dist/MobilePowerSearch/mobilePowerSearchUtils.js +0 -454
- package/dist/MobileTokenizer/MobileTokenizer.d.ts +0 -92
- package/dist/MobileTokenizer/MobileTokenizer.d.ts.map +0 -1
- package/dist/MobileTokenizer/MobileTokenizer.js +0 -901
- package/dist/MobileTokenizer/index.d.ts +0 -9
- package/dist/MobileTokenizer/index.d.ts.map +0 -1
- package/dist/MobileTokenizer/index.js +0 -11
- package/src/MobilePowerSearch/MobilePowerSearch.doc.mjs +0 -160
- package/src/MobilePowerSearch/MobilePowerSearch.test.tsx +0 -2860
- package/src/MobilePowerSearch/MobilePowerSearch.tsx +0 -2386
- package/src/MobilePowerSearch/MobilePowerSearchValueEditor.tsx +0 -776
- package/src/MobilePowerSearch/index.ts +0 -13
- package/src/MobilePowerSearch/mobilePowerSearchUtils.ts +0 -591
- package/src/MobileTokenizer/MobileTokenizer.doc.mjs +0 -37
- package/src/MobileTokenizer/MobileTokenizer.test.tsx +0 -1346
- package/src/MobileTokenizer/MobileTokenizer.tsx +0 -1269
- package/src/MobileTokenizer/index.ts +0 -16
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file SelectableCardGroup.tsx
|
|
3
|
+
* @input Uses core SelectableCard (its input set through Core's internal
|
|
4
|
+
* SelectableCardInputContext), Field (the group label and description),
|
|
5
|
+
* useFieldInputStyling, useId, StyleX and the spacing tokens
|
|
6
|
+
* @output Exports SelectableCardGroup, SelectableCardGroupItem and their props
|
|
7
|
+
* @position Lab: a set of selectable cards with the semantics of its selection
|
|
8
|
+
*
|
|
9
|
+
* SYNC: When modified, update these files to stay in sync:
|
|
10
|
+
* - ./SelectableCardGroup.doc.mjs (props, usage)
|
|
11
|
+
* - ./index.ts (exports)
|
|
12
|
+
* - /apps/storybook/stories/SelectableCardGroup.stories.tsx (stories)
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode, type Ref } from 'react';
|
|
15
|
+
import type { BaseProps } from '@astryxdesign/core';
|
|
16
|
+
import { type FieldContainerStyleProps } from '@astryxdesign/core/Field';
|
|
17
|
+
import { type SelectableCardProps } from '@astryxdesign/core/SelectableCard';
|
|
18
|
+
/** One chosen value, or none yet. */
|
|
19
|
+
interface SingleSelection {
|
|
20
|
+
/**
|
|
21
|
+
* `single` (the default): a radio group, one value. `multiple`: a group of
|
|
22
|
+
* checkboxes, any number of values.
|
|
23
|
+
*/
|
|
24
|
+
selectionMode?: 'single';
|
|
25
|
+
/** The chosen card's value, or `null` while none is chosen. */
|
|
26
|
+
value: string | null;
|
|
27
|
+
/** Called with the value of the card the user chose. */
|
|
28
|
+
onChange: (value: string) => void;
|
|
29
|
+
}
|
|
30
|
+
/** Any number of chosen values. */
|
|
31
|
+
interface MultipleSelection {
|
|
32
|
+
selectionMode: 'multiple';
|
|
33
|
+
/** The chosen cards' values. */
|
|
34
|
+
value: ReadonlyArray<string>;
|
|
35
|
+
/** Called with the new list of chosen values. The newest choice is last. */
|
|
36
|
+
onChange: (value: string[]) => void;
|
|
37
|
+
}
|
|
38
|
+
export type SelectableCardGroupProps = Omit<BaseProps, 'onChange' | 'xstyle' | 'className' | 'style'> & FieldContainerStyleProps & (SingleSelection | MultipleSelection) & {
|
|
39
|
+
/** Ref forwarded to the group element (role radiogroup or group). */
|
|
40
|
+
ref?: Ref<HTMLDivElement>;
|
|
41
|
+
/** The group's visible label and accessible name. */
|
|
42
|
+
label: string;
|
|
43
|
+
/** Hides the label visually; it still names the group. */
|
|
44
|
+
isLabelHidden?: boolean;
|
|
45
|
+
/** Helper text under the label, linked to the group. */
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The name the group's value is submitted under. The radios group by a
|
|
49
|
+
* generated name. Defaults to a generated one.
|
|
50
|
+
*/
|
|
51
|
+
htmlName?: string;
|
|
52
|
+
/** Disables every card; they stay focusable and announce disabled. */
|
|
53
|
+
isDisabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* `horizontal` (the default) wraps cards in rows; `vertical` stacks them.
|
|
56
|
+
*/
|
|
57
|
+
orientation?: 'horizontal' | 'vertical';
|
|
58
|
+
/** The SelectableCardGroupItem cards. */
|
|
59
|
+
children: ReactNode;
|
|
60
|
+
};
|
|
61
|
+
export interface SelectableCardGroupItemProps extends Omit<SelectableCardProps, 'isSelected' | 'onChange'> {
|
|
62
|
+
/** The value this card stands for in the group's `value`. */
|
|
63
|
+
value: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A set of selectable cards with the semantics of its selection: one choice
|
|
67
|
+
* is a radio group (one tab stop, arrow keys, "2 of 3" spoken), several are a
|
|
68
|
+
* group of checkboxes.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```
|
|
72
|
+
* <SelectableCardGroup label="Plan" value={plan} onChange={setPlan}>
|
|
73
|
+
* <SelectableCardGroupItem value="basic" label="Basic">Basic</SelectableCardGroupItem>
|
|
74
|
+
* <SelectableCardGroupItem value="pro" label="Pro">Pro</SelectableCardGroupItem>
|
|
75
|
+
* </SelectableCardGroup>
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare function SelectableCardGroup(props: SelectableCardGroupProps): import("react").JSX.Element;
|
|
79
|
+
export declare namespace SelectableCardGroup {
|
|
80
|
+
var displayName: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* One card of a SelectableCardGroup: a SelectableCard whose input, name and
|
|
84
|
+
* selection come from the group.
|
|
85
|
+
*/
|
|
86
|
+
export declare function SelectableCardGroupItem({ value, isDisabled, ...props }: SelectableCardGroupItemProps): import("react").JSX.Element;
|
|
87
|
+
export declare namespace SelectableCardGroupItem {
|
|
88
|
+
var displayName: string;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
91
|
+
//# sourceMappingURL=SelectableCardGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableCardGroup.d.ts","sourceRoot":"","sources":["../../src/SelectableCardGroup/SelectableCardGroup.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAKL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QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEJ,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,mBAAmB,EACnB,YAAY,GAAG,UAAU,CAC1B;IACC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;CACf;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,+BAsHlE;yBAtHe,mBAAmB;;;AA0HnC;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACT,EAAE,4BAA4B,+BAmC9B;yBAvCe,uBAAuB"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file SelectableCardGroup.tsx
|
|
7
|
+
* @input Uses core SelectableCard (its input set through Core's internal
|
|
8
|
+
* SelectableCardInputContext), Field (the group label and description),
|
|
9
|
+
* useFieldInputStyling, useId, StyleX and the spacing tokens
|
|
10
|
+
* @output Exports SelectableCardGroup, SelectableCardGroupItem and their props
|
|
11
|
+
* @position Lab: a set of selectable cards with the semantics of its selection
|
|
12
|
+
*
|
|
13
|
+
* SYNC: When modified, update these files to stay in sync:
|
|
14
|
+
* - ./SelectableCardGroup.doc.mjs (props, usage)
|
|
15
|
+
* - ./index.ts (exports)
|
|
16
|
+
* - /apps/storybook/stories/SelectableCardGroup.stories.tsx (stories)
|
|
17
|
+
*/
|
|
18
|
+
import { createContext, useContext, useId, useMemo } from 'react';
|
|
19
|
+
import * as stylex from '@stylexjs/stylex';
|
|
20
|
+
import { Field } from '@astryxdesign/core/Field';
|
|
21
|
+
import { SelectableCard } from '@astryxdesign/core/SelectableCard';
|
|
22
|
+
import { SelectableCardInputContext, joinAriaIDs, useFieldInputStyling } from '@astryxdesign/core/internal/selectable-card';
|
|
23
|
+
import '@astryxdesign/core/theme/tokens.stylex';
|
|
24
|
+
import { spacingVars } from '@astryxdesign/core/theme/tokens.stylex';
|
|
25
|
+
import { mergeProps, themeProps } from '@astryxdesign/core/utils';
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
// =============================================================================
|
|
28
|
+
// Props
|
|
29
|
+
// =============================================================================
|
|
30
|
+
|
|
31
|
+
/** One chosen value, or none yet. */
|
|
32
|
+
|
|
33
|
+
/** Any number of chosen values. */
|
|
34
|
+
|
|
35
|
+
// It composes Field: root styling goes to the Field box through `container*`
|
|
36
|
+
// (the input-fields family), not onto the group.
|
|
37
|
+
|
|
38
|
+
// =============================================================================
|
|
39
|
+
// Context
|
|
40
|
+
// =============================================================================
|
|
41
|
+
|
|
42
|
+
const SelectableCardGroupContext = /*#__PURE__*/createContext(null);
|
|
43
|
+
|
|
44
|
+
// =============================================================================
|
|
45
|
+
// Components
|
|
46
|
+
// =============================================================================
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A set of selectable cards with the semantics of its selection: one choice
|
|
50
|
+
* is a radio group (one tab stop, arrow keys, "2 of 3" spoken), several are a
|
|
51
|
+
* group of checkboxes.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```
|
|
55
|
+
* <SelectableCardGroup label="Plan" value={plan} onChange={setPlan}>
|
|
56
|
+
* <SelectableCardGroupItem value="basic" label="Basic">Basic</SelectableCardGroupItem>
|
|
57
|
+
* <SelectableCardGroupItem value="pro" label="Pro">Pro</SelectableCardGroupItem>
|
|
58
|
+
* </SelectableCardGroup>
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export function SelectableCardGroup(props) {
|
|
62
|
+
const {
|
|
63
|
+
ref,
|
|
64
|
+
label,
|
|
65
|
+
isLabelHidden,
|
|
66
|
+
description,
|
|
67
|
+
htmlName,
|
|
68
|
+
isDisabled = false,
|
|
69
|
+
orientation = 'horizontal',
|
|
70
|
+
children,
|
|
71
|
+
containerXstyle,
|
|
72
|
+
containerClassName,
|
|
73
|
+
containerStyle,
|
|
74
|
+
selectionMode: _selectionMode,
|
|
75
|
+
value: _value,
|
|
76
|
+
onChange: _onChange,
|
|
77
|
+
...rest
|
|
78
|
+
} = props;
|
|
79
|
+
const labelID = useId();
|
|
80
|
+
const inputID = useId();
|
|
81
|
+
const descriptionID = useId();
|
|
82
|
+
const generatedName = useId();
|
|
83
|
+
const submitName = htmlName ?? generatedName;
|
|
84
|
+
const {
|
|
85
|
+
rest: groupProps,
|
|
86
|
+
container
|
|
87
|
+
} = useFieldInputStyling('SelectableCardGroup', rest, {
|
|
88
|
+
containerXstyle,
|
|
89
|
+
containerClassName,
|
|
90
|
+
containerStyle
|
|
91
|
+
});
|
|
92
|
+
const {
|
|
93
|
+
'aria-labelledby': callerLabelledBy,
|
|
94
|
+
'aria-describedby': callerDescribedBy,
|
|
95
|
+
...otherGroupProps
|
|
96
|
+
} = groupProps;
|
|
97
|
+
const labelledBy = joinAriaIDs(labelID, callerLabelledBy);
|
|
98
|
+
const describedBy = joinAriaIDs(description ? descriptionID : undefined, callerDescribedBy);
|
|
99
|
+
const isMultiple = props.selectionMode === 'multiple';
|
|
100
|
+
const context = useMemo(() => {
|
|
101
|
+
if (props.selectionMode === 'multiple') {
|
|
102
|
+
const {
|
|
103
|
+
value,
|
|
104
|
+
onChange
|
|
105
|
+
} = props;
|
|
106
|
+
return {
|
|
107
|
+
inputType: 'checkbox',
|
|
108
|
+
groupName: submitName,
|
|
109
|
+
submitName,
|
|
110
|
+
isDisabled,
|
|
111
|
+
isSelected: v => value.includes(v),
|
|
112
|
+
change: (v, isSelected) => onChange(isSelected ? [...value.filter(x => x !== v), v] : value.filter(x => x !== v))
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
const {
|
|
116
|
+
value,
|
|
117
|
+
onChange
|
|
118
|
+
} = props;
|
|
119
|
+
// The radios leave the form, so a page-unique name keeps each group
|
|
120
|
+
// apart, even from another form's group with the same `htmlName`.
|
|
121
|
+
return {
|
|
122
|
+
inputType: 'radio',
|
|
123
|
+
groupName: generatedName,
|
|
124
|
+
submitName,
|
|
125
|
+
isDisabled,
|
|
126
|
+
isSelected: v => value === v,
|
|
127
|
+
change: (v, isSelected) => {
|
|
128
|
+
if (isSelected) {
|
|
129
|
+
onChange(v);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}, [props.selectionMode, props.value, props.onChange, generatedName, submitName, isDisabled]);
|
|
134
|
+
return /*#__PURE__*/_jsx(Field, {
|
|
135
|
+
label: label,
|
|
136
|
+
isLabelHidden: isLabelHidden,
|
|
137
|
+
description: description,
|
|
138
|
+
inputID: inputID,
|
|
139
|
+
labelID: labelID,
|
|
140
|
+
isGroupLabel: true,
|
|
141
|
+
descriptionID: description ? descriptionID : undefined,
|
|
142
|
+
isDisabled: isDisabled,
|
|
143
|
+
...container,
|
|
144
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
145
|
+
...otherGroupProps,
|
|
146
|
+
ref: ref,
|
|
147
|
+
role: isMultiple ? 'group' : 'radiogroup',
|
|
148
|
+
"aria-labelledby": labelledBy,
|
|
149
|
+
"aria-describedby": describedBy,
|
|
150
|
+
"aria-disabled": isDisabled || undefined,
|
|
151
|
+
...mergeProps(themeProps('selectable-card-group', {
|
|
152
|
+
orientation,
|
|
153
|
+
selectionMode: isMultiple ? 'multiple' : 'single'
|
|
154
|
+
}), {
|
|
155
|
+
0: {
|
|
156
|
+
className: "x78zum5 x1a02dak xjcht0a"
|
|
157
|
+
},
|
|
158
|
+
1: {
|
|
159
|
+
className: "x78zum5 xjcht0a xdt5ytf xozqiw3"
|
|
160
|
+
}
|
|
161
|
+
}[!!(orientation === 'vertical') << 0]),
|
|
162
|
+
children: /*#__PURE__*/_jsx(SelectableCardGroupContext.Provider, {
|
|
163
|
+
value: context,
|
|
164
|
+
children: children
|
|
165
|
+
})
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
SelectableCardGroup.displayName = 'SelectableCardGroup';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* One card of a SelectableCardGroup: a SelectableCard whose input, name and
|
|
173
|
+
* selection come from the group.
|
|
174
|
+
*/
|
|
175
|
+
export function SelectableCardGroupItem({
|
|
176
|
+
value,
|
|
177
|
+
isDisabled,
|
|
178
|
+
...props
|
|
179
|
+
}) {
|
|
180
|
+
const group = useContext(SelectableCardGroupContext);
|
|
181
|
+
const input = useMemo(() => group == null ? null : {
|
|
182
|
+
type: group.inputType,
|
|
183
|
+
name: group.groupName,
|
|
184
|
+
value
|
|
185
|
+
}, [group, value]);
|
|
186
|
+
if (group == null) {
|
|
187
|
+
throw new Error('SelectableCardGroupItem must be rendered inside a SelectableCardGroup.');
|
|
188
|
+
}
|
|
189
|
+
const isSelected = group.isSelected(value);
|
|
190
|
+
const isCardDisabled = group.isDisabled || isDisabled === true;
|
|
191
|
+
return /*#__PURE__*/_jsxs(SelectableCardInputContext, {
|
|
192
|
+
value: input,
|
|
193
|
+
children: [/*#__PURE__*/_jsx(SelectableCard, {
|
|
194
|
+
...props,
|
|
195
|
+
isSelected: isSelected,
|
|
196
|
+
isDisabled: isCardDisabled,
|
|
197
|
+
onChange: nextSelected => group.change(value, nextSelected)
|
|
198
|
+
}), group.inputType === 'radio' && isSelected && !isCardDisabled ? /*#__PURE__*/_jsx("input", {
|
|
199
|
+
type: "hidden",
|
|
200
|
+
name: group.submitName,
|
|
201
|
+
value: value
|
|
202
|
+
}) : null]
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
SelectableCardGroupItem.displayName = 'SelectableCardGroupItem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file SelectableCardGroup component barrel export
|
|
3
|
+
*/
|
|
4
|
+
export { SelectableCardGroup, SelectableCardGroupItem, } from './SelectableCardGroup.js';
|
|
5
|
+
export type { SelectableCardGroupProps, SelectableCardGroupItemProps, } from './SelectableCardGroup.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SelectableCardGroup/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EACL,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export { CodeEditor, type CodeEditorProps } from './CodeEditor/index.js';
|
|
13
13
|
export { tokenize, tokenizeAsync, SYNC_TOKENIZE_THRESHOLD, type SyntaxToken, } from '@astryxdesign/core/CodeBlock';
|
|
14
14
|
export { InfoTip, type InfoTipProps, type InfoTipSize } from './InfoTip/index.js';
|
|
15
|
+
export { SelectableCardGroup, SelectableCardGroupItem, type SelectableCardGroupProps, type SelectableCardGroupItemProps, } from './SelectableCardGroup/index.js';
|
|
15
16
|
export { EmojiPicker, DEFAULT_FREQUENT_EMOJIS, type EmojiPickerProps, type EmojiOption, type EmojiCategory, } from './EmojiPicker/index.js';
|
|
16
17
|
export { CommentPin, type CommentPinParticipant, type CommentPinProps, } from './CommentPin/index.js';
|
|
17
18
|
export { Comments, type CommentsProps, CommentThread, type CommentThreadProps, CommentComposer, type CommentComposerProps, DEFAULT_COMMENT_REACTIONS, COMMENT_ICON_KEYS, type CommentAgentCommand, type CommentAnchor, type CommentComposerContext, type CommentComposerRenderProps, type CommentData, type CommentStatus, type CommentHighlightColor, type CommentImageUploader, type CommentMode, type CommentProgress, type CommentReaction, type CommentReactionOption, type CommentThreadData, type CommentThreadSharedProps, type CommentUploadedImage, type CommentUser, type CommentVersion, type CommentActivityEvent, } from './Comments/index.js';
|
|
@@ -31,6 +32,4 @@ export * from './CircularProgress/index.js';
|
|
|
31
32
|
export * from './ListInput/index.js';
|
|
32
33
|
export { LogStream, type LogStreamProps, type LogEntry, type LogStreamLevel, } from './LogStream/index.js';
|
|
33
34
|
export { DiffViewer, parseUnifiedDiff, createDiffFile, type DiffViewerProps, type DiffViewerViewMode, type CreateDiffFileOptions, type DiffViewerChangeIndicator, type DiffViewerInlineHighlight, type DiffViewerFile, type DiffViewerFileStatus, type DiffViewerHunk, type DiffViewerLine, type DiffViewerLineKind, type DiffViewerLineRef, type DiffViewerSide, } from './DiffViewer/index.js';
|
|
34
|
-
export { MobileTokenizer, type MobileTokenizerProps, type MobileTokenizerChange, } from './MobileTokenizer/index.js';
|
|
35
|
-
export { MobilePowerSearch, type MobilePowerSearchProps, } from './MobilePowerSearch/index.js';
|
|
36
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,aAAa,EACb,uBAAuB,EACvB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,aAAa,EACb,uBAAuB,EACvB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAC,MAAM,WAAW,CAAC;AAIvE,OAAO,EACL,m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AgB,EACrB,KAAK,kBAAkB,EACvB,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC;AAIlB,cAAc,oBAAoB,CAAC;AAGnC,cAAc,aAAa,CAAC;AAG5B,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ export { tokenize, tokenizeAsync, SYNC_TOKENIZE_THRESHOLD } from '@astryxdesign/
|
|
|
19
19
|
// InfoTip — accessible info-icon help affordance (RFC meta/astryx#3349)
|
|
20
20
|
export { InfoTip } from "./InfoTip/index.js";
|
|
21
21
|
|
|
22
|
+
// SelectableCardGroup — a set of selectable cards with the semantics of its
|
|
23
|
+
// selection: one choice is a radio group, several a group of checkboxes
|
|
24
|
+
export { SelectableCardGroup, SelectableCardGroupItem } from "./SelectableCardGroup/index.js";
|
|
25
|
+
|
|
22
26
|
// EmojiPicker — standalone searchable emoji panel
|
|
23
27
|
export { EmojiPicker, DEFAULT_FREQUENT_EMOJIS } from "./EmojiPicker/index.js";
|
|
24
28
|
|
|
@@ -75,17 +79,6 @@ export { LogStream } from "./LogStream/index.js";
|
|
|
75
79
|
// DiffViewer — read-only file diff (unified/split) for code review surfaces
|
|
76
80
|
export { DiffViewer, parseUnifiedDiff, createDiffFile } from "./DiffViewer/index.js";
|
|
77
81
|
|
|
78
|
-
// MobileTokenizer — Lab prototype (stack layer 1) of the touch Tokenizer
|
|
79
|
-
// flow: summary trigger + stacked manage/add BottomSheets. Graduates to
|
|
80
|
-
// Core Tokenizer presentation="bottom-sheet" (stack layer 2).
|
|
81
|
-
export { MobileTokenizer } from "./MobileTokenizer/index.js";
|
|
82
|
-
|
|
83
|
-
// MobilePowerSearch — Lab prototype (stack layer 1) of the touch PowerSearch
|
|
84
|
-
// flow: field-wide "Manage filters" trigger with display-only tokens, a
|
|
85
|
-
// Filters sheet, and a field → operator → value drill-down. The caller picks
|
|
86
|
-
// it explicitly on touch layouts; the API mirrors Core PowerSearch.
|
|
87
|
-
export { MobilePowerSearch } from "./MobilePowerSearch/index.js";
|
|
88
|
-
|
|
89
82
|
// RichTextEditor (RFC meta/astryx#3899) moved out of @astryxdesign/lab into
|
|
90
83
|
// its own package, @astryxdesign/richtext. Import it from there:
|
|
91
84
|
// import {RichTextEditor, RichTextView} from '@astryxdesign/richtext';
|
package/dist/lab.css
CHANGED
|
@@ -109,7 +109,6 @@
|
|
|
109
109
|
.xc342km:not(#\#):not(#\#){border-width:0}
|
|
110
110
|
.xmkeg23:not(#\#):not(#\#){border-width:1px}
|
|
111
111
|
.x1litavf:not(#\#):not(#\#){border-width:var(--border-width)}
|
|
112
|
-
.xfoc8du:not(#\#):not(#\#){flex:1 1 40px}
|
|
113
112
|
.x98rzlu:not(#\#):not(#\#){flex:1}
|
|
114
113
|
.xxhr3t:not(#\#):not(#\#){gap:0}
|
|
115
114
|
.x1lsbc85:not(#\#):not(#\#){gap:var(--spacing-0-5)}
|
|
@@ -117,7 +116,6 @@
|
|
|
117
116
|
.xzye2dw:not(#\#):not(#\#){gap:var(--spacing-1)}
|
|
118
117
|
.x1txdalj:not(#\#):not(#\#){gap:var(--spacing-2)}
|
|
119
118
|
.xjcht0a:not(#\#):not(#\#){gap:var(--spacing-3)}
|
|
120
|
-
.x18g69wz:not(#\#):not(#\#){gap:var(--spacing-4)}
|
|
121
119
|
.x4h4c4w:not(#\#):not(#\#){grid-column:-2 / -1}
|
|
122
120
|
.x1osaytk:not(#\#):not(#\#){grid-column:1 / -1}
|
|
123
121
|
.x1rlpkp8:not(#\#):not(#\#){grid-column:1 / -2}
|
|
@@ -145,15 +143,11 @@
|
|
|
145
143
|
.xish69e:not(#\#):not(#\#){overscroll-behavior:contain}
|
|
146
144
|
.xt970qd:not(#\#):not(#\#){padding-block:0}
|
|
147
145
|
.xsplgde:not(#\#):not(#\#){padding-block:1px}
|
|
148
|
-
.x1x7cmac:not(#\#):not(#\#){padding-block:calc(var(--spacing-1) - 1px)}
|
|
149
146
|
.x13f7esw:not(#\#):not(#\#){padding-block:var(--spacing-0-5)}
|
|
150
147
|
.xu0wf1k:not(#\#):not(#\#){padding-block:var(--spacing-1)}
|
|
151
148
|
.xce4md1:not(#\#):not(#\#){padding-block:var(--spacing-2)}
|
|
152
149
|
.x8o8v82:not(#\#):not(#\#){padding-block:var(--spacing-3)}
|
|
153
|
-
.x1na6nto:not(#\#):not(#\#){padding-block:var(--spacing-4)}
|
|
154
|
-
.xq6koh6:not(#\#):not(#\#){padding-block:var(--spacing-6)}
|
|
155
150
|
.xnjsko4:not(#\#):not(#\#){padding-inline:0}
|
|
156
|
-
.xx2oswg:not(#\#):not(#\#){padding-inline:calc(var(--spacing-1) - 1px)}
|
|
157
151
|
.x4ezzuc:not(#\#):not(#\#){padding-inline:var(--spacing-1-5)}
|
|
158
152
|
.x7a5moj:not(#\#):not(#\#){padding-inline:var(--spacing-1)}
|
|
159
153
|
.xf314gf:not(#\#):not(#\#){padding-inline:var(--spacing-2)}
|
|
@@ -398,20 +392,17 @@
|
|
|
398
392
|
.x1xkqpvf:not(#\#):not(#\#):not(#\#){flex-basis:640px}
|
|
399
393
|
.xdl72j9:not(#\#):not(#\#):not(#\#){flex-basis:auto}
|
|
400
394
|
.xdt5ytf:not(#\#):not(#\#):not(#\#){flex-direction:column}
|
|
401
|
-
.x15zctf7:not(#\#):not(#\#):not(#\#){flex-direction:row-reverse}
|
|
402
395
|
.x1c4vz4f:not(#\#):not(#\#):not(#\#){flex-grow:0}
|
|
403
396
|
.x1iyjqo2:not(#\#):not(#\#):not(#\#){flex-grow:1}
|
|
404
397
|
.x2lah0s:not(#\#):not(#\#):not(#\#){flex-shrink:0}
|
|
405
398
|
.xs83m0k:not(#\#):not(#\#):not(#\#){flex-shrink:1}
|
|
406
399
|
.xozqiw3:not(#\#):not(#\#):not(#\#){flex-wrap:nowrap}
|
|
407
400
|
.x1a02dak:not(#\#):not(#\#):not(#\#){flex-wrap:wrap}
|
|
408
|
-
.xjb2p0i:not(#\#):not(#\#):not(#\#){font-family:inherit}
|
|
409
401
|
.x9ynric:not(#\#):not(#\#):not(#\#){font-family:var(--font-family-body)}
|
|
410
402
|
.x9m5x89:not(#\#):not(#\#):not(#\#){font-family:var(--font-family-code)}
|
|
411
403
|
.x1g81bgm:not(#\#):not(#\#):not(#\#){font-family:var(--font-family-heading)}
|
|
412
404
|
.x1jvydc1:not(#\#):not(#\#):not(#\#){font-size:15px}
|
|
413
405
|
.xosj86m:not(#\#):not(#\#):not(#\#){font-size:18px}
|
|
414
|
-
.x1qlqyl8:not(#\#):not(#\#):not(#\#){font-size:inherit}
|
|
415
406
|
.xhs0kqb:not(#\#):not(#\#):not(#\#){font-size:var(--font-size-2xl)}
|
|
416
407
|
.x10srzze:not(#\#):not(#\#):not(#\#){font-size:var(--font-size-3xl)}
|
|
417
408
|
.x1j29vfg:not(#\#):not(#\#):not(#\#){font-size:var(--font-size-base)}
|
|
@@ -488,7 +479,6 @@
|
|
|
488
479
|
.x1m70ojl:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--spacing-1-5))}
|
|
489
480
|
.x1s1akpx:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--spacing-2))}
|
|
490
481
|
.xhi58n4:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing-1) * -1)}
|
|
491
|
-
.x1xrm450:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing-2) - var(--spacing-1) + 1px)}
|
|
492
482
|
.xladpz9:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--spacing-0-5)}
|
|
493
483
|
.x1cmpsy9:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--spacing-2)}
|
|
494
484
|
.xti2d7y:not(#\#):not(#\#):not(#\#){opacity:.4}
|
|
@@ -527,7 +517,6 @@
|
|
|
527
517
|
.x1n2onr6:not(#\#):not(#\#):not(#\#){position:relative}
|
|
528
518
|
.x7wzq59:not(#\#):not(#\#):not(#\#){position:sticky}
|
|
529
519
|
.xxs79tx:not(#\#):not(#\#):not(#\#){row-gap:0}
|
|
530
|
-
.xajebq8:not(#\#):not(#\#):not(#\#){row-gap:calc(var(--spacing-1) - 1px)}
|
|
531
520
|
.x185mbhu:not(#\#):not(#\#):not(#\#){scrollbar-gutter:stable}
|
|
532
521
|
.x1597r2g:not(#\#):not(#\#):not(#\#){scrollbar-width:thin}
|
|
533
522
|
.x1owpc8m:not(#\#):not(#\#):not(#\#){stroke-linecap:round}
|
|
@@ -595,7 +584,6 @@
|
|
|
595
584
|
.x1iutq3a.x1iutq3a:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-color:transparent}
|
|
596
585
|
.xrz1bfo.xrz1bfo:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-image:none}
|
|
597
586
|
.x16khyan:is(:disabled,[aria-disabled="true"]):not(#\#):not(#\#):not(#\#){cursor:default}
|
|
598
|
-
.xvivl9a:is([aria-disabled="true"]):not(#\#):not(#\#):not(#\#){cursor:default}
|
|
599
587
|
.x1q06l6i:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){direction:rtl}
|
|
600
588
|
.x1bqaal:focus-visible:not(#\#):not(#\#):not(#\#){outline-offset:-2px}
|
|
601
589
|
.x1nw7mhf:focus-visible:not(#\#):not(#\#):not(#\#){outline-offset:calc(-1 * var(--focus-outline-width))}
|
|
@@ -657,7 +645,6 @@
|
|
|
657
645
|
.xamhcws:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:2px}
|
|
658
646
|
.x11xkdxz:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:var(--border-width)}
|
|
659
647
|
.x1ey2m1c:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}
|
|
660
|
-
.xdd4er5:not(#\#):not(#\#):not(#\#):not(#\#){bottom:auto}
|
|
661
648
|
.x1sv6qhj:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(-1 * var(--spacing-2))}
|
|
662
649
|
.x109q46:not(#\#):not(#\#):not(#\#):not(#\#){bottom:calc(var(--spacing-1) - var(--spacing-2))}
|
|
663
650
|
.x1hmuevu:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--spacing-3)}
|
|
@@ -685,7 +672,6 @@
|
|
|
685
672
|
.x1unci72:not(#\#):not(#\#):not(#\#):not(#\#){left:var(--spacing-4)}
|
|
686
673
|
.xlstkdb:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--spacing-0-5)}
|
|
687
674
|
.x1p37lm5:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--spacing-2)}
|
|
688
|
-
.xr1yuqi:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:auto}
|
|
689
675
|
.xu743gc:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(-1 * var(--border-width))}
|
|
690
676
|
.x1ajqlyv:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(-1 * var(--spacing-2))}
|
|
691
677
|
.xaqiyeb:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:calc(-1 * var(--spacing-4))}
|
|
@@ -704,13 +690,10 @@
|
|
|
704
690
|
.x1ewfaou:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(100% - var(--spacing-6) - var(--spacing-1))}
|
|
705
691
|
.xf68679:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--x-maxWidth)}
|
|
706
692
|
.x2lwn1j:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}
|
|
707
|
-
.x1us19tq:not(#\#):not(#\#):not(#\#):not(#\#){min-height:100%}
|
|
708
693
|
.xisnujt:not(#\#):not(#\#):not(#\#):not(#\#){min-height:20px}
|
|
709
694
|
.xjwf9q1:not(#\#):not(#\#):not(#\#):not(#\#){min-height:24px}
|
|
710
695
|
.x1cy360x:not(#\#):not(#\#):not(#\#):not(#\#){min-height:3em}
|
|
711
|
-
.x1gg8mnh:not(#\#):not(#\#):not(#\#):not(#\#){min-height:44px}
|
|
712
696
|
.x16g94oj:not(#\#):not(#\#):not(#\#):not(#\#){min-height:calc(var(--spacing-6) + var(--spacing-1))}
|
|
713
|
-
.x1xf4nls:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-lg)}
|
|
714
697
|
.x1uogy3y:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-md)}
|
|
715
698
|
.x1gdqauq:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-sm)}
|
|
716
699
|
.xkoleio:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--spacing-8)}
|
|
@@ -719,8 +702,6 @@
|
|
|
719
702
|
.xeuugli:not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}
|
|
720
703
|
.xgqtt45:not(#\#):not(#\#):not(#\#):not(#\#){min-width:100%}
|
|
721
704
|
.x17s4nb9:not(#\#):not(#\#):not(#\#):not(#\#){min-width:30px}
|
|
722
|
-
.x1fns5xo:not(#\#):not(#\#):not(#\#):not(#\#){min-width:40px}
|
|
723
|
-
.x1nb6za0:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}
|
|
724
705
|
.x1uz6y0c:not(#\#):not(#\#):not(#\#):not(#\#){min-width:784px}
|
|
725
706
|
.x11b7t1e:not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(var(--spacing-6) + var(--spacing-1))}
|
|
726
707
|
.x1je4dsv:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--size-element-lg)}
|
|
@@ -729,18 +710,10 @@
|
|
|
729
710
|
.xkj4a21:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--x-minWidth)}
|
|
730
711
|
.xw2csxc:not(#\#):not(#\#):not(#\#):not(#\#){overflow-x:auto}
|
|
731
712
|
.x1odjw0f:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}
|
|
732
|
-
.x1e4zzel:not(#\#):not(#\#):not(#\#):not(#\#){overscroll-behavior-y:contain}
|
|
733
713
|
.xy143xn:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-1)}
|
|
734
|
-
.x1wesfrj:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-2)}
|
|
735
|
-
.xvmdzux:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-3)}
|
|
736
|
-
.x1awphl8:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-4)}
|
|
737
714
|
.xpgmcrp:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--icon-block-offset)}
|
|
738
715
|
.xbx876j:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-0-5)}
|
|
739
|
-
.xfsso4q:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-1)}
|
|
740
716
|
.x1xye8es:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-2)}
|
|
741
|
-
.x1vlblms:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-3)}
|
|
742
|
-
.x1adxfkp:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-6)}
|
|
743
|
-
.xoxd1wu:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-8)}
|
|
744
717
|
.x13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
|
|
745
718
|
.x1ng4z2i:not(#\#):not(#\#):not(#\#):not(#\#){top:56px}
|
|
746
719
|
.xd3yn01:not(#\#):not(#\#):not(#\#):not(#\#){top:calc(calc(var(--spacing-6) + var(--spacing-1)) + var(--spacing-1))}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8-canary.36cde5e",
|
|
4
4
|
"description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@stylexjs/stylex": ">=0.10.0",
|
|
52
|
-
"@astryxdesign/core": "0.7.
|
|
52
|
+
"@astryxdesign/core": "0.7.8-canary.36cde5e",
|
|
53
53
|
"react": ">=19.0.0",
|
|
54
54
|
"react-dom": ">=19.0.0"
|
|
55
55
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"d3-shape": "^3.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@astryxdesign/a11y-spec": "0.7.
|
|
63
|
-
"@astryxdesign/cli": "0.7.
|
|
64
|
-
"@astryxdesign/interaction-harness": "0.7.
|
|
62
|
+
"@astryxdesign/a11y-spec": "0.7.8-canary.36cde5e",
|
|
63
|
+
"@astryxdesign/cli": "0.7.8-canary.36cde5e",
|
|
64
|
+
"@astryxdesign/interaction-harness": "0.7.8-canary.36cde5e",
|
|
65
65
|
"@babel/cli": "^7.29.7",
|
|
66
66
|
"@babel/core": "^7.29.7",
|
|
67
67
|
"@babel/preset-react": "^7.29.7",
|