@cloudwick/astral-ui 7.0.1 → 8.0.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/README.md +3 -1
- package/dist/components/accordion/accordion.d.ts +5 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +5 -6
- package/dist/components/card/card.d.ts +7 -8
- package/dist/components/card/cardVariants.d.ts +3 -3
- package/dist/components/dropdown/dropdown.d.ts +17 -0
- package/dist/components/emptyState/emptyState.d.ts +1 -4
- package/dist/components/modal/modal.d.ts +6 -7
- package/dist/components/multiSelectTransfer/index.d.ts +3 -0
- package/dist/components/multiSelectTransfer/multiSelectTransfer.d.ts +6 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferDropdown.d.ts +32 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferModal.d.ts +34 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferPill.d.ts +28 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferVariants.d.ts +184 -0
- package/dist/components/multiSelectTransfer/types.d.ts +56 -0
- package/dist/components/panel/panel.d.ts +1 -2
- package/dist/components/radioGroup/index.d.ts +1 -1
- package/dist/components/radioGroup/radioGroup.d.ts +76 -12
- package/dist/components/radioGroup/radioGroupVariants.d.ts +30 -9
- package/dist/components/scrollbar/scrollbar.d.ts +7 -0
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select.d.ts +3 -41
- package/dist/components/select/selectComponents.d.ts +45 -0
- package/dist/components/select/selectVariants.d.ts +15 -0
- package/dist/components/select/types.d.ts +138 -1
- package/dist/components/select/utils.d.ts +2 -0
- package/dist/components/tabs/tabs.d.ts +4 -5
- package/dist/components/tabs/tabsVariants.d.ts +12 -0
- package/dist/components/tooltip/tooltip.d.ts +17 -6
- package/dist/components/tooltip/tooltipVariants.d.ts +6 -6
- package/dist/components/transferList/index.d.ts +3 -0
- package/dist/components/transferList/transferList.d.ts +12 -0
- package/dist/components/transferList/transferListItem.d.ts +35 -0
- package/dist/components/transferList/transferListPanel.d.ts +51 -0
- package/dist/components/transferList/transferListVariants.d.ts +202 -0
- package/dist/components/transferList/types.d.ts +76 -0
- package/dist/components/transferList/useDragAutoScroll.d.ts +13 -0
- package/dist/components/transferList/useTransferList.d.ts +28 -0
- package/dist/css/fonts.min.css +1 -1
- package/dist/css/index.min.css +1 -1
- package/dist/fonts/NotoSans-Bold.woff2 +0 -0
- package/dist/fonts/NotoSans-BoldItalic.woff2 +0 -0
- package/dist/fonts/NotoSans-Italic.woff2 +0 -0
- package/dist/fonts/NotoSans-Medium.woff2 +0 -0
- package/dist/fonts/NotoSans-MediumItalic.woff2 +0 -0
- package/dist/fonts/NotoSans-Regular.woff2 +0 -0
- package/dist/fonts/NotoSans-SemiBold.woff2 +0 -0
- package/dist/fonts/NotoSans-SemiBoldItalic.woff2 +0 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useDebouncedCallback.d.ts +10 -0
- package/dist/hooks/useInfiniteScroll.d.ts +24 -0
- package/dist/hooks/useIsTruncated.d.ts +25 -0
- package/dist/hooks/useListboxKeyboardNav.d.ts +47 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +5 -5
- package/dist/utils/elementUtils.d.ts +18 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/matchesQuery.d.ts +13 -0
- package/package.json +2 -2
- package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_18pt-BoldItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Italic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_18pt-MediumItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBoldItalic.ttf +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a trigger node is already a natively-interactive,
|
|
4
|
+
* keyboard-focusable element (e.g. `<button>`, `<a>`, `<input>`).
|
|
5
|
+
*
|
|
6
|
+
* Only intrinsic HTML elements from the {@link semanticInteractiveElements}
|
|
7
|
+
* allowlist are treated as semantic. Custom React components are intentionally
|
|
8
|
+
* excluded: their rendered output cannot be introspected at runtime, so a
|
|
9
|
+
* component that renders a non-interactive element (such as an icon or `<span>`)
|
|
10
|
+
* would otherwise be stripped of its supplied interactivity/focus affordances
|
|
11
|
+
* and become keyboard-inaccessible. Excluded triggers fall back to being wrapped
|
|
12
|
+
* with the appropriate role/tabindex, which keeps them keyboard accessible.
|
|
13
|
+
*
|
|
14
|
+
* If you need a custom component to be treated as the interactive trigger, have
|
|
15
|
+
* it render one of the allowlisted native elements as its root and forward props
|
|
16
|
+
* and ref to it.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isSemanticTrigger: (ctaContent: React.ReactNode) => boolean;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Case-insensitive substring match used for the client-side search in TransferList,
|
|
4
|
+
* MultiSelectTransfer and Select. Match precedence: an explicit `searchValue` first (the way to
|
|
5
|
+
* make an item with a ReactNode `label` searchable by its visible text), then a string `label`,
|
|
6
|
+
* then the stringified `value`. An empty query matches everything. Kept internal (not re-exported
|
|
7
|
+
* from the package index).
|
|
8
|
+
*/
|
|
9
|
+
export declare function matchesQuery(item: {
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
value: unknown;
|
|
12
|
+
searchValue?: string;
|
|
13
|
+
}, query: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudwick/astral-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "UI Library for Cloudwick",
|
|
5
5
|
"homepage": "https://www.astral-ui.amorphic.link/",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
@@ -162,4 +162,4 @@
|
|
|
162
162
|
},
|
|
163
163
|
"packageManager": "yarn@4.4.1",
|
|
164
164
|
"type": "module"
|
|
165
|
-
}
|
|
165
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|