@primer/react 0.0.0-20260309120017 → 0.0.0-20260309122625
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/CHANGELOG.md +3 -1
- package/dist/ActionMenu/ActionMenu.d.ts +1 -4
- package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +7 -50
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +31 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/generated/components.json +0 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260309122625
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
- [#7624](https://github.com/primer/react/pull/7624) [`f6d4311`](https://github.com/primer/react/commit/f6d431194d217fbb7d456e58bcbbcbb434896fe1) Thanks [@llastflowers](https://github.com/llastflowers)! - Fix FormControl + SelectPanel accessible name to address SR issues
|
|
22
22
|
|
|
23
|
+
- [#7600](https://github.com/primer/react/pull/7600) [`f688fd5`](https://github.com/primer/react/commit/f688fd5541b0d6382c597c85b9c075fa384eaab6) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TextInput): skip redundant character counter updates
|
|
24
|
+
|
|
23
25
|
- [#7617](https://github.com/primer/react/pull/7617) [`79c855a`](https://github.com/primer/react/commit/79c855abeb6f46d3fefafb236f00ea65dfcd1ed4) Thanks [@llastflowers](https://github.com/llastflowers)! - Push margin-top of TimelineBody +1px
|
|
24
26
|
|
|
25
27
|
- [#7635](https://github.com/primer/react/pull/7635) [`74762e2`](https://github.com/primer/react/commit/74762e265a44b4fa46fcb4db8fd5194cb81b14c4) Thanks [@iansan5653](https://github.com/iansan5653)! - Fix(useRefObjectAsForwardedRef): fix ref failing to update when target changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AnchoredOverlayProps } from '../AnchoredOverlay';
|
|
3
3
|
import type { OverlayProps } from '../Overlay';
|
|
4
|
-
import type { ButtonProps
|
|
4
|
+
import type { ButtonProps } from '../Button';
|
|
5
5
|
import type { AnchorPosition } from '@primer/behaviors';
|
|
6
6
|
import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
|
|
7
7
|
import type { FCWithSlotMarker, WithSlotMarker } from '../utils/types/Slots';
|
|
@@ -30,8 +30,6 @@ export type ActionMenuAnchorProps = {
|
|
|
30
30
|
} & React.HTMLAttributes<HTMLElement>;
|
|
31
31
|
/** this component is syntactical sugar 🍭 */
|
|
32
32
|
export type ActionMenuButtonProps = ButtonProps;
|
|
33
|
-
/** this component is syntactical sugar 🍭 */
|
|
34
|
-
export type ActionMenuIconButtonProps = IconButtonProps;
|
|
35
33
|
type MenuOverlayProps = Partial<OverlayProps> & Pick<AnchoredOverlayProps, 'align' | 'side' | 'variant' | 'displayInViewport'> & {
|
|
36
34
|
/**
|
|
37
35
|
* Recommended: `ActionList`
|
|
@@ -43,7 +41,6 @@ type MenuOverlayProps = Partial<OverlayProps> & Pick<AnchoredOverlayProps, 'alig
|
|
|
43
41
|
};
|
|
44
42
|
export declare const ActionMenu: React.FC<React.PropsWithChildren<ActionMenuProps>> & import("..").SlotMarker & {
|
|
45
43
|
Button: PolymorphicForwardRefComponent<"button", ButtonProps>;
|
|
46
|
-
IconButton: PolymorphicForwardRefComponent<"button", IconButtonProps>;
|
|
47
44
|
Anchor: WithSlotMarker<React.ForwardRefExoticComponent<{
|
|
48
45
|
children: React.ReactElement<any>;
|
|
49
46
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"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AA;AAsI3C,MAAM,MAAM,qBAAqB,GAAG;IAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AA0DxH,6CAA6C;AAC7C,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAA;AAe/C,KAAK,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,GAC3C,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,mBAAmB,CAAC,GAAG;IAC/E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gBAAgB,CAAC,EAAE,CAAC,EAAC,QAAQ,EAAC,EAAE;QAAC,QAAQ,EAAE,cAAc,CAAA;KAAC,KAAK,IAAI,CAAA;CACpE,CAAA;AAgHH,eAAO,MAAM,UAAU;;;kBA5LP,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC;aAC5B,MAAM;;;;CA2L4E,CAAA"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import React, { useContext, useState, useEffect,
|
|
1
|
+
import React, { useContext, useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { ChevronRightIcon, TriangleDownIcon } from '@primer/octicons-react';
|
|
3
3
|
import { Divider } from '../ActionList/Divider.js';
|
|
4
4
|
import { ActionListContainerContext } from '../ActionList/ActionListContainerContext.js';
|
|
5
|
-
import { IconButton } from '../Button/IconButton.js';
|
|
6
|
-
import { ButtonComponent } from '../Button/Button.js';
|
|
7
5
|
import { useId } from '../hooks/useId.js';
|
|
8
6
|
import { Tooltip } from '../TooltipV2/Tooltip.js';
|
|
9
7
|
import styles from './ActionMenu.module.css.js';
|
|
10
8
|
import { useResponsiveValue } from '../hooks/useResponsiveValue.js';
|
|
11
9
|
import { isSlot } from '../utils/is-slot.js';
|
|
12
10
|
import { DialogContext } from '../Dialog/Dialog.js';
|
|
13
|
-
import { warning } from '../utils/warning.js';
|
|
14
11
|
import { jsx } from 'react/jsx-runtime';
|
|
15
12
|
import { useProvidedStateOrCreate } from '../hooks/useProvidedStateOrCreate.js';
|
|
16
13
|
import { useProvidedRefOrCreate } from '../hooks/useProvidedRefOrCreate.js';
|
|
17
14
|
import { useMenuKeyboardNavigation } from '../hooks/useMenuKeyboardNavigation.js';
|
|
18
15
|
import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
19
16
|
import { AnchoredOverlay } from '../AnchoredOverlay/AnchoredOverlay.js';
|
|
17
|
+
import { ButtonComponent } from '../Button/Button.js';
|
|
20
18
|
|
|
21
19
|
const MenuContext = /*#__PURE__*/React.createContext({
|
|
22
20
|
renderAnchor: null,
|
|
@@ -72,7 +70,7 @@ const Menu = ({
|
|
|
72
70
|
(_parentMenuContext$on = parentMenuContext.onClose) === null || _parentMenuContext$on === void 0 ? void 0 : _parentMenuContext$on.call(parentMenuContext, gesture);
|
|
73
71
|
}
|
|
74
72
|
}, [setCombinedOpenState, parentMenuContext, open, isNarrow]);
|
|
75
|
-
const menuButtonChild = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && (child.type === MenuButton || child.type ===
|
|
73
|
+
const menuButtonChild = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && (child.type === MenuButton || child.type === Anchor || isSlot(child, Anchor) || isSlot(child, MenuButton)));
|
|
76
74
|
const menuButtonChildId = /*#__PURE__*/React.isValidElement(menuButtonChild) ? menuButtonChild.props.id : undefined;
|
|
77
75
|
const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
|
|
78
76
|
const anchorId = useId(menuButtonChildId);
|
|
@@ -86,7 +84,7 @@ const Menu = ({
|
|
|
86
84
|
if (child.type === Tooltip || isSlot(child, Tooltip)) {
|
|
87
85
|
// tooltip trigger
|
|
88
86
|
const anchorChildren = child.props.children;
|
|
89
|
-
if (anchorChildren.type === MenuButton || isSlot(anchorChildren, MenuButton)
|
|
87
|
+
if (anchorChildren.type === MenuButton || isSlot(anchorChildren, MenuButton)) {
|
|
90
88
|
// eslint-disable-next-line react-hooks/immutability
|
|
91
89
|
renderAnchor = anchorProps => {
|
|
92
90
|
// We need to attach the anchor props to the tooltip trigger (ActionMenu.Button's grandchild) not the tooltip itself.
|
|
@@ -125,7 +123,7 @@ const Menu = ({
|
|
|
125
123
|
renderAnchor = anchorProps => /*#__PURE__*/React.cloneElement(child, anchorProps);
|
|
126
124
|
}
|
|
127
125
|
return null;
|
|
128
|
-
} else if (child.type === MenuButton || isSlot(child, MenuButton)
|
|
126
|
+
} else if (child.type === MenuButton || isSlot(child, MenuButton)) {
|
|
129
127
|
renderAnchor = anchorProps => /*#__PURE__*/React.cloneElement(child, mergeAnchorHandlers(anchorProps, child.props));
|
|
130
128
|
return null;
|
|
131
129
|
} else {
|
|
@@ -146,15 +144,7 @@ const Menu = ({
|
|
|
146
144
|
children: contents
|
|
147
145
|
});
|
|
148
146
|
};
|
|
149
|
-
Menu.displayName = "Menu";
|
|
150
|
-
// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3
|
|
151
|
-
const interactiveElements = ['a[href]', 'button:not([disabled])', 'summary', 'select', 'input:not([type=hidden])', 'textarea'];
|
|
152
|
-
const isInteractive = element => {
|
|
153
|
-
return interactiveElements.some(selector => element.matches(selector)) || element.hasAttribute('role') && element.getAttribute('role') === 'button';
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
|
-
|
|
147
|
+
Menu.displayName = "Menu"; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
158
148
|
const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
159
149
|
children: child,
|
|
160
150
|
...anchorProps
|
|
@@ -163,16 +153,6 @@ const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
|
163
153
|
onOpen,
|
|
164
154
|
isSubmenu
|
|
165
155
|
} = React.useContext(MenuContext);
|
|
166
|
-
const internalRef = useRef(null);
|
|
167
|
-
useEffect(() => {
|
|
168
|
-
if (!(process.env.NODE_ENV !== "production")) return;
|
|
169
|
-
// Skip validation for submenu anchors, where ActionList.Item is a valid anchor
|
|
170
|
-
if (isSubmenu) return;
|
|
171
|
-
if (!internalRef.current) return;
|
|
172
|
-
const anchorElement = internalRef.current;
|
|
173
|
-
const isAnchorInteractive = isInteractive(anchorElement);
|
|
174
|
-
process.env.NODE_ENV !== "production" ? warning(!isAnchorInteractive, 'The `ActionMenu.Anchor` expects a single interactive element that can act as a menu trigger. Consider using a `<button>` or an `IconButton` as the direct child of `ActionMenu.Anchor`, or use `ActionMenu.Button` or `ActionMenu.IconButton` instead.') : void 0;
|
|
175
|
-
}, [isSubmenu]);
|
|
176
156
|
const openSubmenuOnRightArrow = useCallback(event => {
|
|
177
157
|
if (isSubmenu && event.key === 'ArrowRight' && !event.defaultPrevented) onOpen === null || onOpen === void 0 ? void 0 : onOpen('anchor-key-press');
|
|
178
158
|
}, [isSubmenu, onOpen]);
|
|
@@ -200,14 +180,7 @@ const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
|
200
180
|
value: thisActionListContext,
|
|
201
181
|
children: /*#__PURE__*/React.cloneElement(child, {
|
|
202
182
|
...anchorProps,
|
|
203
|
-
ref:
|
|
204
|
-
internalRef.current = node;
|
|
205
|
-
if (typeof anchorRef === 'function') {
|
|
206
|
-
anchorRef(node);
|
|
207
|
-
} else if (anchorRef) {
|
|
208
|
-
anchorRef.current = node;
|
|
209
|
-
}
|
|
210
|
-
},
|
|
183
|
+
ref: anchorRef,
|
|
211
184
|
onClick: onButtonClick,
|
|
212
185
|
onKeyDown: onButtonKeyDown
|
|
213
186
|
})
|
|
@@ -228,20 +201,6 @@ const MenuButton = /*#__PURE__*/React.forwardRef(({
|
|
|
228
201
|
})
|
|
229
202
|
});
|
|
230
203
|
});
|
|
231
|
-
|
|
232
|
-
/** this component is syntactical sugar 🍭 */
|
|
233
|
-
|
|
234
|
-
const MenuIconButton = /*#__PURE__*/React.forwardRef(({
|
|
235
|
-
...props
|
|
236
|
-
}, anchorRef) => {
|
|
237
|
-
return /*#__PURE__*/jsx(Anchor, {
|
|
238
|
-
ref: anchorRef,
|
|
239
|
-
children: /*#__PURE__*/jsx(IconButton, {
|
|
240
|
-
type: "button",
|
|
241
|
-
...props
|
|
242
|
-
})
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
204
|
const defaultVariant = {
|
|
246
205
|
regular: 'anchored',
|
|
247
206
|
narrow: 'anchored'
|
|
@@ -347,12 +306,10 @@ Overlay.displayName = "Overlay";
|
|
|
347
306
|
Menu.displayName = 'ActionMenu';
|
|
348
307
|
Menu.__SLOT__ = Symbol('ActionMenu');
|
|
349
308
|
MenuButton.__SLOT__ = Symbol('ActionMenu.Button');
|
|
350
|
-
MenuIconButton.__SLOT__ = Symbol('ActionMenu.IconButton');
|
|
351
309
|
Anchor.__SLOT__ = Symbol('ActionMenu.Anchor');
|
|
352
310
|
Overlay.__SLOT__ = Symbol('ActionMenu.Overlay');
|
|
353
311
|
const ActionMenu = Object.assign(Menu, {
|
|
354
312
|
Button: MenuButton,
|
|
355
|
-
IconButton: MenuIconButton,
|
|
356
313
|
Anchor,
|
|
357
314
|
Overlay,
|
|
358
315
|
Divider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/TextInput/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwD,MAAM,OAAO,CAAA;AAE5E,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAO/F,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAA;AAQ/E,MAAM,MAAM,4BAA4B,GAAG;IACzC,uEAAuE;I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E,KAAK,CAAC,WAAW,CAAA;IACxB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;QAKI;IACJ,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;IAChD,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,SAAS,CAAA;IACnD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,SAAS,CAAA;IACpD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACvE;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,OAAO,CACT,IAAI,CACF,kBAAkB,EAChB,OAAO,GACP,UAAU,GACV,UAAU,GACV,WAAW,GACX,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,MAAM,GACN,kBAAkB,CACrB,CACF,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,4BAA4B,CAAC,CAAA;;;;;;;;;;;AA+PzG,wBAGE"}
|
|
@@ -51,6 +51,10 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
|
|
|
51
51
|
const [isOverLimit, setIsOverLimit] = useState(false);
|
|
52
52
|
const [screenReaderMessage, setScreenReaderMessage] = useState('');
|
|
53
53
|
const characterCounterRef = useRef(null);
|
|
54
|
+
const lastCountedLengthRef = useRef(null);
|
|
55
|
+
const lastCharacterCountRef = useRef('');
|
|
56
|
+
const lastIsOverLimitRef = useRef(false);
|
|
57
|
+
const lastScreenReaderMessageRef = useRef('');
|
|
54
58
|
|
|
55
59
|
// this class is necessary to style FilterSearch, plz no touchy!
|
|
56
60
|
const wrapperClasses = clsx(className, 'TextInput-wrapper');
|
|
@@ -84,17 +88,31 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
|
|
|
84
88
|
if (characterLimit) {
|
|
85
89
|
characterCounterRef.current = new CharacterCounter({
|
|
86
90
|
onCountUpdate: (count, overLimit, message) => {
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
if (message !== lastCharacterCountRef.current) {
|
|
92
|
+
lastCharacterCountRef.current = message;
|
|
93
|
+
setCharacterCount(message);
|
|
94
|
+
}
|
|
95
|
+
if (overLimit !== lastIsOverLimitRef.current) {
|
|
96
|
+
lastIsOverLimitRef.current = overLimit;
|
|
97
|
+
setIsOverLimit(overLimit);
|
|
98
|
+
}
|
|
89
99
|
},
|
|
90
100
|
onScreenReaderAnnounce: message_0 => {
|
|
91
|
-
|
|
101
|
+
if (message_0 !== lastScreenReaderMessageRef.current) {
|
|
102
|
+
lastScreenReaderMessageRef.current = message_0;
|
|
103
|
+
setScreenReaderMessage(message_0);
|
|
104
|
+
}
|
|
92
105
|
}
|
|
93
106
|
});
|
|
107
|
+
lastCountedLengthRef.current = null;
|
|
94
108
|
return () => {
|
|
95
109
|
var _characterCounterRef$;
|
|
96
110
|
(_characterCounterRef$ = characterCounterRef.current) === null || _characterCounterRef$ === void 0 ? void 0 : _characterCounterRef$.cleanup();
|
|
97
111
|
characterCounterRef.current = null;
|
|
112
|
+
lastCountedLengthRef.current = null;
|
|
113
|
+
lastCharacterCountRef.current = '';
|
|
114
|
+
lastIsOverLimitRef.current = false;
|
|
115
|
+
lastScreenReaderMessageRef.current = '';
|
|
98
116
|
};
|
|
99
117
|
}
|
|
100
118
|
}, [characterLimit]);
|
|
@@ -103,14 +121,22 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
|
|
|
103
121
|
useEffect(() => {
|
|
104
122
|
if (characterLimit && characterCounterRef.current) {
|
|
105
123
|
const currentValue = value !== undefined ? String(value) : defaultValue !== undefined ? String(defaultValue) : '';
|
|
106
|
-
|
|
124
|
+
const currentLength = currentValue.length;
|
|
125
|
+
if (currentLength !== lastCountedLengthRef.current) {
|
|
126
|
+
lastCountedLengthRef.current = currentLength;
|
|
127
|
+
characterCounterRef.current.updateCharacterCount(currentLength, characterLimit);
|
|
128
|
+
}
|
|
107
129
|
}
|
|
108
130
|
}, [value, defaultValue, characterLimit]);
|
|
109
131
|
|
|
110
132
|
// Handle input change with character counter
|
|
111
133
|
const handleInputChange = useCallback(e_2 => {
|
|
112
134
|
if (characterLimit && characterCounterRef.current) {
|
|
113
|
-
|
|
135
|
+
const currentLength_0 = e_2.target.value.length;
|
|
136
|
+
if (currentLength_0 !== lastCountedLengthRef.current) {
|
|
137
|
+
lastCountedLengthRef.current = currentLength_0;
|
|
138
|
+
characterCounterRef.current.updateCharacterCount(currentLength_0, characterLimit);
|
|
139
|
+
}
|
|
114
140
|
}
|
|
115
141
|
onChange === null || onChange === void 0 ? void 0 : onChange(e_2);
|
|
116
142
|
}, [onChange, characterLimit]);
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type { RadioProps } from './Radio';
|
|
|
35
35
|
export { ActionList } from './ActionList';
|
|
36
36
|
export type { ActionListProps, ActionListGroupProps, ActionListItemProps, ActionListLinkItemProps, ActionListDividerProps, ActionListDescriptionProps, ActionListLeadingVisualProps, ActionListTrailingVisualProps, } from './ActionList';
|
|
37
37
|
export { ActionMenu } from './ActionMenu';
|
|
38
|
-
export type { ActionMenuProps, ActionMenuAnchorProps, ActionMenuButtonProps
|
|
38
|
+
export type { ActionMenuProps, ActionMenuAnchorProps, ActionMenuButtonProps } from './ActionMenu';
|
|
39
39
|
export { AnchoredOverlay } from './AnchoredOverlay';
|
|
40
40
|
export type { AnchoredOverlayProps } from './AnchoredOverlay';
|
|
41
41
|
export { default as Autocomplete } from './Autocomplete';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mapp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IAAI,oBAAoB,EAClC,YAAY,IAAI,sBAAsB,EACtC,cAAc,IAAI,wBAAwB,EAC1C,iBAAiB,IAAI,2BAA2B,GACjD,MAAM,cAAc,CAAA;AAErB,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,YAAY,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAA"}
|
|
@@ -728,14 +728,6 @@
|
|
|
728
728
|
"url": "/react/Button"
|
|
729
729
|
}
|
|
730
730
|
},
|
|
731
|
-
{
|
|
732
|
-
"name": "ActionMenu.IconButton",
|
|
733
|
-
"props": [],
|
|
734
|
-
"passthrough": {
|
|
735
|
-
"element": "IconButton",
|
|
736
|
-
"url": "/react/IconButton"
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
731
|
{
|
|
740
732
|
"name": "ActionMenu.Anchor",
|
|
741
733
|
"props": [
|
package/package.json
CHANGED