@opengovsg/oui 0.0.6 → 0.0.7
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/cjs/banner/banner.cjs +1 -1
- package/dist/cjs/button/button.cjs +1 -1
- package/dist/cjs/combo-box/combo-box-fuzzy.cjs +1 -1
- package/dist/cjs/combo-box/combo-box.cjs +1 -1
- package/dist/cjs/field/field.cjs +1 -1
- package/dist/cjs/govt-banner/govt-banner.cjs +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/input/input.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.475.0_react@19.0.0/node_modules/lucide-react/dist/esm/icons/check.cjs +19 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.475.0_react@19.0.0/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.cjs +22 -0
- package/dist/cjs/select/index.cjs +8 -0
- package/dist/cjs/select/select-item.cjs +63 -0
- package/dist/cjs/select/select-variant-context.cjs +12 -0
- package/dist/cjs/select/select.cjs +103 -0
- package/dist/cjs/spinner/use-spinner.cjs +1 -1
- package/dist/cjs/system/react-utils/context.cjs +1 -5
- package/dist/cjs/tag-field/tag-field-list.cjs +1 -1
- package/dist/cjs/tag-field/tag-field.cjs +1 -1
- package/dist/cjs/tag-field/use-tag-field.cjs +1 -0
- package/dist/cjs/text-area/text-area.cjs +1 -1
- package/dist/cjs/text-area-field/text-area-field.cjs +1 -1
- package/dist/cjs/text-field/text-field.cjs +1 -1
- package/dist/cjs/toggle/toggle.cjs +1 -1
- package/dist/esm/banner/banner.js +1 -1
- package/dist/esm/button/button.js +1 -1
- package/dist/esm/combo-box/combo-box-fuzzy.js +1 -1
- package/dist/esm/combo-box/combo-box.js +1 -1
- package/dist/esm/field/field.js +1 -1
- package/dist/esm/govt-banner/govt-banner.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/input/input.js +1 -1
- package/dist/esm/node_modules/.pnpm/lucide-react@0.475.0_react@19.0.0/node_modules/lucide-react/dist/esm/icons/check.js +14 -0
- package/dist/esm/node_modules/.pnpm/lucide-react@0.475.0_react@19.0.0/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js +17 -0
- package/dist/esm/select/index.js +2 -0
- package/dist/esm/select/select-item.js +61 -0
- package/dist/esm/select/select-variant-context.js +9 -0
- package/dist/esm/select/select.js +101 -0
- package/dist/esm/spinner/use-spinner.js +1 -1
- package/dist/esm/system/react-utils/context.js +1 -5
- package/dist/esm/tag-field/tag-field-list.js +1 -1
- package/dist/esm/tag-field/tag-field.js +1 -1
- package/dist/esm/tag-field/use-tag-field.js +1 -0
- package/dist/esm/text-area/text-area.js +1 -1
- package/dist/esm/text-area-field/text-area-field.js +1 -1
- package/dist/esm/text-field/text-field.js +1 -1
- package/dist/esm/toggle/toggle.js +1 -1
- package/dist/types/banner/banner.d.ts +4 -3
- package/dist/types/banner/banner.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +2 -11
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/combo-box/combo-box-fuzzy.d.ts +4 -3
- package/dist/types/combo-box/combo-box-fuzzy.d.ts.map +1 -1
- package/dist/types/combo-box/combo-box.d.ts +3 -3
- package/dist/types/combo-box/combo-box.d.ts.map +1 -1
- package/dist/types/field/field.d.ts +2 -2
- package/dist/types/field/field.d.ts.map +1 -1
- package/dist/types/govt-banner/govt-banner.d.ts +1 -1
- package/dist/types/govt-banner/govt-banner.d.ts.map +1 -1
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/input/input.d.ts +3 -2
- package/dist/types/input/input.d.ts.map +1 -1
- package/dist/types/select/index.d.ts +2 -0
- package/dist/types/select/index.d.ts.map +1 -0
- package/dist/types/select/select-item.d.ts +9 -0
- package/dist/types/select/select-item.d.ts.map +1 -0
- package/dist/types/select/select-variant-context.d.ts +4 -0
- package/dist/types/select/select-variant-context.d.ts.map +1 -0
- package/dist/types/select/select.d.ts +17 -0
- package/dist/types/select/select.d.ts.map +1 -0
- package/dist/types/skip-nav-link/skip-nav-link.d.ts +3 -2
- package/dist/types/skip-nav-link/skip-nav-link.d.ts.map +1 -1
- package/dist/types/spinner/use-spinner.d.ts +1 -1
- package/dist/types/spinner/use-spinner.d.ts.map +1 -1
- package/dist/types/system/react-utils/context.d.ts +1 -5
- package/dist/types/system/react-utils/context.d.ts.map +1 -1
- package/dist/types/system/types.d.ts +1 -1
- package/dist/types/system/types.d.ts.map +1 -1
- package/dist/types/system/utils.d.ts +2 -2
- package/dist/types/system/utils.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field-list.d.ts +6 -6
- package/dist/types/tag-field/tag-field-list.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field-root.d.ts +3 -3
- package/dist/types/tag-field/tag-field-root.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field-state-context.d.ts +2 -2
- package/dist/types/tag-field/tag-field-state-context.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field-tag-list.d.ts +3 -3
- package/dist/types/tag-field/tag-field-tag-list.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field-trigger.d.ts +2 -2
- package/dist/types/tag-field/tag-field-trigger.d.ts.map +1 -1
- package/dist/types/tag-field/tag-field.d.ts +1 -1
- package/dist/types/tag-field/tag-field.d.ts.map +1 -1
- package/dist/types/tag-field/types.d.ts +2 -2
- package/dist/types/tag-field/types.d.ts.map +1 -1
- package/dist/types/tag-field/use-tag-field-state.d.ts +4 -4
- package/dist/types/tag-field/use-tag-field-state.d.ts.map +1 -1
- package/dist/types/tag-field/use-tag-field.d.ts +7 -7
- package/dist/types/tag-field/use-tag-field.d.ts.map +1 -1
- package/dist/types/text-area/text-area.d.ts +3 -2
- package/dist/types/text-area/text-area.d.ts.map +1 -1
- package/dist/types/text-area-field/text-area-field.d.ts +3 -3
- package/dist/types/text-area-field/text-area-field.d.ts.map +1 -1
- package/dist/types/text-field/text-field.d.ts +3 -3
- package/dist/types/text-field/text-field.d.ts.map +1 -1
- package/dist/types/toggle/toggle.d.ts +3 -2
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { ListLayout, Provider, Select as Select$1, SelectValue, Popover, Virtualizer, ListBox } from 'react-aria-components';
|
|
6
|
+
import { selectStyles, composeRenderProps } from '@opengovsg/oui-theme';
|
|
7
|
+
import { mapPropsVariants } from '../system/utils.js';
|
|
8
|
+
import { SelectVariantContext } from './select-variant-context.js';
|
|
9
|
+
import ChevronsUpDown from '../node_modules/.pnpm/lucide-react@0.475.0_react@19.0.0/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js';
|
|
10
|
+
import { Label, Description } from '../field/field.js';
|
|
11
|
+
import { Button } from '../button/button.js';
|
|
12
|
+
|
|
13
|
+
const calculateEstimatedRowHeight = (size) => {
|
|
14
|
+
switch (size) {
|
|
15
|
+
case "xs":
|
|
16
|
+
return 44;
|
|
17
|
+
case "sm":
|
|
18
|
+
return 44;
|
|
19
|
+
case "md":
|
|
20
|
+
return 48;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function Select({
|
|
24
|
+
label,
|
|
25
|
+
description,
|
|
26
|
+
classNames,
|
|
27
|
+
...originalProps
|
|
28
|
+
}) {
|
|
29
|
+
const [_props, variantProps] = mapPropsVariants(
|
|
30
|
+
originalProps,
|
|
31
|
+
selectStyles.variantKeys
|
|
32
|
+
);
|
|
33
|
+
const { items, children, listLayoutOptions, ...props } = _props;
|
|
34
|
+
const styles = selectStyles(variantProps);
|
|
35
|
+
const layout = useMemo(() => {
|
|
36
|
+
return new ListLayout({
|
|
37
|
+
estimatedRowHeight: calculateEstimatedRowHeight(
|
|
38
|
+
variantProps.size ?? "md"
|
|
39
|
+
),
|
|
40
|
+
...listLayoutOptions
|
|
41
|
+
});
|
|
42
|
+
}, [listLayoutOptions, variantProps.size]);
|
|
43
|
+
return /* @__PURE__ */ jsx(Provider, { values: [[SelectVariantContext, variantProps]], children: /* @__PURE__ */ jsxs(
|
|
44
|
+
Select$1,
|
|
45
|
+
{
|
|
46
|
+
className: composeRenderProps(
|
|
47
|
+
props.className,
|
|
48
|
+
(className, renderProps) => styles.base({ className, ...renderProps })
|
|
49
|
+
),
|
|
50
|
+
...props,
|
|
51
|
+
children: [
|
|
52
|
+
label && /* @__PURE__ */ jsx(Label, { size: variantProps.size, className: classNames?.label, children: label }),
|
|
53
|
+
/* @__PURE__ */ jsxs(
|
|
54
|
+
Button,
|
|
55
|
+
{
|
|
56
|
+
size: variantProps.size,
|
|
57
|
+
variant: variantProps.variant ?? selectStyles.defaultVariants.variant,
|
|
58
|
+
color: variantProps.color ?? selectStyles.defaultVariants.color,
|
|
59
|
+
className: composeRenderProps(
|
|
60
|
+
classNames?.trigger,
|
|
61
|
+
(className, renderProps) => styles.trigger({ className, ...renderProps })
|
|
62
|
+
),
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
SelectValue,
|
|
66
|
+
{
|
|
67
|
+
className: styles.selectedText({
|
|
68
|
+
className: classNames?.selectedText
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "h-4 w-4" })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
description && /* @__PURE__ */ jsx(
|
|
77
|
+
Description,
|
|
78
|
+
{
|
|
79
|
+
size: variantProps.size,
|
|
80
|
+
className: classNames?.description,
|
|
81
|
+
children: description
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ jsx(Popover, { className: styles.popover({ className: classNames?.popover }), children: /* @__PURE__ */ jsx(Virtualizer, { layout, children: /* @__PURE__ */ jsx(
|
|
85
|
+
ListBox,
|
|
86
|
+
{
|
|
87
|
+
items,
|
|
88
|
+
shouldFocusWrap: true,
|
|
89
|
+
className: composeRenderProps(
|
|
90
|
+
classNames?.list,
|
|
91
|
+
(className, renderProps) => styles.list({ className, ...renderProps })
|
|
92
|
+
),
|
|
93
|
+
children
|
|
94
|
+
}
|
|
95
|
+
) }) })
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
) });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export { Select };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
3
|
import { useMemo, useCallback } from 'react';
|
|
4
|
-
import { spinnerStyles, cn } from '@opengovsg/oui-theme';
|
|
5
4
|
import { useDeepCompareMemo } from 'use-deep-compare';
|
|
5
|
+
import { spinnerStyles, cn } from '@opengovsg/oui-theme';
|
|
6
6
|
import { mapPropsVariants } from '../system/utils.js';
|
|
7
7
|
|
|
8
8
|
const useSpinner = (originalProps) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { createContext, useContext, createElement } from 'react';
|
|
4
|
-
import { tagFieldItemStyles, dataAttr } from '@opengovsg/oui-theme';
|
|
5
4
|
import { useContextProps } from 'react-aria-components';
|
|
5
|
+
import { tagFieldItemStyles, dataAttr } from '@opengovsg/oui-theme';
|
|
6
6
|
import { forwardRefGeneric } from '../system/utils.js';
|
|
7
7
|
import { TagFieldStateContext } from './tag-field-state-context.js';
|
|
8
8
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { createElement } from 'react';
|
|
5
|
-
import { tagFieldStyles } from '@opengovsg/oui-theme';
|
|
6
5
|
import { composeRenderProps, Popover } from 'react-aria-components';
|
|
6
|
+
import { tagFieldStyles } from '@opengovsg/oui-theme';
|
|
7
7
|
import { TagFieldList, TagFieldListItem } from './tag-field-list.js';
|
|
8
8
|
import { TagFieldRoot } from './tag-field-root.js';
|
|
9
9
|
import { TagFieldTagList } from './tag-field-tag-list.js';
|
|
@@ -125,6 +125,7 @@ function useTagField(props, state) {
|
|
|
125
125
|
});
|
|
126
126
|
const { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
127
127
|
const inputProps = getInputProps({
|
|
128
|
+
placeholder: props.placeholder,
|
|
128
129
|
ref: inputRef,
|
|
129
130
|
"aria-label": props["aria-label"],
|
|
130
131
|
"aria-labelledby": props["aria-labelledby"],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { composeRenderProps, textAreaStyles } from '@opengovsg/oui-theme';
|
|
6
5
|
import { TextArea as TextArea$1 } from 'react-aria-components';
|
|
6
|
+
import { composeRenderProps, textAreaStyles } from '@opengovsg/oui-theme';
|
|
7
7
|
|
|
8
8
|
const TextArea = forwardRef(
|
|
9
9
|
({ size, variant, isDisabled, ...props }, ref) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
5
4
|
import { TextField } from 'react-aria-components';
|
|
5
|
+
import { composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
6
6
|
import { TextArea } from '../text-area/text-area.js';
|
|
7
7
|
import { Label, Description, FieldError } from '../field/field.js';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
5
4
|
import { TextField as TextField$1 } from 'react-aria-components';
|
|
5
|
+
import { composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
6
6
|
import { Input } from '../input/input.js';
|
|
7
7
|
import { Label, Description, FieldError } from '../field/field.js';
|
|
8
8
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { useCallback, cloneElement } from 'react';
|
|
5
|
-
import { toggleStyles, composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
6
5
|
import { mergeProps } from 'react-aria';
|
|
7
6
|
import { Switch } from 'react-aria-components';
|
|
7
|
+
import { toggleStyles, composeTailwindRenderProps } from '@opengovsg/oui-theme';
|
|
8
8
|
import { mapPropsVariants } from '../system/utils.js';
|
|
9
9
|
|
|
10
10
|
const Toggle = ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { AriaDisclosureProps } from "react-aria";
|
|
3
|
+
import type { BannerSlots, SlotsToClasses, VariantProps } from "@opengovsg/oui-theme";
|
|
4
|
+
import { bannerStyles } from "@opengovsg/oui-theme";
|
|
4
5
|
interface BannerProps extends VariantProps<typeof bannerStyles>, AriaDisclosureProps {
|
|
5
6
|
/**
|
|
6
7
|
* The banner start content. Will default to the relevant icons based on the `variant` prop.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,YAAY,CAAA;AAMvE,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACb,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,UAAU,WACR,SAAQ,YAAY,CAAC,OAAO,YAAY,CAAC,EACvC,mBAAmB;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;CACzC;AAiBD,eAAO,MAAM,MAAM,2IAUhB,WAAW,mDA6Eb,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "@opengovsg/oui-theme";
|
|
2
1
|
import type { ButtonProps as AriaButtonProps } from "react-aria-components";
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
2
|
+
import type { ButtonVariantProps } from "@opengovsg/oui-theme";
|
|
3
|
+
export interface ButtonProps extends Omit<AriaButtonProps, "children">, ButtonVariantProps {
|
|
5
4
|
/**
|
|
6
5
|
* Whether the button should display a ripple effect on press.
|
|
7
6
|
* @defaultValue false
|
|
@@ -32,17 +31,9 @@ interface _ButtonProps extends Omit<AriaButtonProps, "children">, VariantProps<t
|
|
|
32
31
|
*/
|
|
33
32
|
spinnerPlacement?: "start" | "end";
|
|
34
33
|
}
|
|
35
|
-
export type ButtonProps = Omit<_ButtonProps, "aria-label"> & ({
|
|
36
|
-
isIconOnly: true;
|
|
37
|
-
"aria-label": string;
|
|
38
|
-
} | {
|
|
39
|
-
isIconOnly?: false;
|
|
40
|
-
"aria-label"?: string;
|
|
41
|
-
});
|
|
42
34
|
/**
|
|
43
35
|
* You probably do not want to use this component if you are rendering a link.
|
|
44
36
|
* Use `LinkButton` component instead.
|
|
45
37
|
*/
|
|
46
38
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
47
|
-
export {};
|
|
48
39
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAO9D,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,EACvC,kBAAkB;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACnC;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,2GAwElB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { SetRequired } from "type-fest";
|
|
2
|
+
import type { SlotsToClasses } from "@opengovsg/oui-theme";
|
|
3
|
+
import type { ComboBoxProps } from "./combo-box";
|
|
4
|
+
import { ComboBoxItem } from "./combo-box";
|
|
4
5
|
export interface ComboBoxFuzzyProps<T extends ComboBoxItem = ComboBoxItem> extends SetRequired<ComboBoxProps<T>, "inputValue" | "onInputChange" | "onSelectionChange" | "selectedKey" | "items"> {
|
|
5
6
|
itemClassNames?: ComboBoxProps<T>["itemClassNames"] & SlotsToClasses<"highlight">;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box-fuzzy.d.ts","sourceRoot":"","sources":["../../../src/combo-box/combo-box-fuzzy.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"combo-box-fuzzy.d.ts","sourceRoot":"","sources":["../../../src/combo-box/combo-box-fuzzy.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAI5C,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAY,YAAY,EAAE,MAAM,aAAa,CAAA;AA8BpD,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CACvE,SAAQ,WAAW,CACjB,aAAa,CAAC,CAAC,CAAC,EACd,YAAY,GACZ,eAAe,GACf,mBAAmB,GACnB,aAAa,GACb,OAAO,CACV;IACD,cAAc,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,GACjD,cAAc,CAAC,WAAW,CAAC,CAAA;CAC9B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EACnE,KAAK,EACL,cAAc,EACd,iBAAiB,EAAE,qBAAqB,EACxC,aAAa,EAAE,iBAAiB,EAChC,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAyEvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { ComboBoxProps as AriaComboBoxProps, ListBoxItemProps, ListBoxItemRenderProps, ListBoxProps, ListLayoutOptions, ValidationResult } from "react-aria-components";
|
|
3
|
+
import type { ComboBoxItemSlots, ComboBoxItemVariantProps, ComboBoxSlots, ComboBoxVariantProps, SlotsToClasses } from "@opengovsg/oui-theme";
|
|
4
4
|
export type ComboBoxItem = {
|
|
5
5
|
value: string;
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box.d.ts","sourceRoot":"","sources":["../../../src/combo-box/combo-box.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"combo-box.d.ts","sourceRoot":"","sources":["../../../src/combo-box/combo-box.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EAEZ,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,uBAAuB,CAAA;AAgB9B,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,aAAa,EACb,oBAAoB,EACpB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAY7B,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAClE,SAAQ,oBAAoB,EAC1B,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iDAAiD;IACjD,YAAY,CAAC,EAAE,CAAC,EAAE,CAAA;IAClB,+CAA+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C,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IAC7E;;OAEG;IACH,WAAW,CAAC,EACR,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACxD,UAAU,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;CAC/C;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,IAAI,EACJ,WAAW,EACX,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAqCnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FieldErrorProps as AriaFieldErrorProps, LabelProps as AriaLabelProps, GroupProps, TextProps } from "react-aria-components";
|
|
2
|
+
import type { DescriptionVariantProps, FieldErrorSlots, FieldErrorVariantProps, LabelVariantProps, SlotsToClasses } from "@opengovsg/oui-theme";
|
|
3
3
|
export interface LabelProps extends AriaLabelProps, LabelVariantProps {
|
|
4
4
|
}
|
|
5
5
|
export declare function Label({ size, className, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/field/field.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/field/field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,IAAI,mBAAmB,EACtC,UAAU,IAAI,cAAc,EAC5B,UAAU,EACV,SAAS,EACV,MAAM,uBAAuB,CAAA;AAS9B,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAS7B,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG;AAExE,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAE9D;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,uBAAuB;CAAG;AAE/E,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAQ1E;AAED,MAAM,WAAW,eACf,SAAQ,mBAAmB,EACzB,sBAAsB;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAA;CAC7C;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,UAAU,EACV,GAAG,KAAK,EACT,EAAE,eAAe,kDAmBjB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,2CAS3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GovtBannerSlots, SlotsToClasses } from "@opengovsg/oui-theme";
|
|
2
1
|
import type { DisclosureProps } from "react-stately";
|
|
3
2
|
import type { LiteralUnion } from "type-fest";
|
|
3
|
+
import type { GovtBannerSlots, SlotsToClasses } from "@opengovsg/oui-theme";
|
|
4
4
|
interface GovtBannerProps extends DisclosureProps {
|
|
5
5
|
/**
|
|
6
6
|
* The environment of the application. If provided, the banner will display a note indicating the environment:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"govt-banner.d.ts","sourceRoot":"","sources":["../../../src/govt-banner/govt-banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"govt-banner.d.ts","sourceRoot":"","sources":["../../../src/govt-banner/govt-banner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAY7C,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG3E,UAAU,eAAgB,SAAQ,eAAe;IAC/C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,YAAY,CACxB,YAAY,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAC5C,MAAM,CACP,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAA;CAC7C;AAsDD,wBAAgB,UAAU,CAAC,EACzB,WAAW,EACX,UAAU,EACV,GAAG,KAAK,EACT,EAAE,eAAe,2CA2JjB"}
|
package/dist/types/index.d.mts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { InputProps as AriaInputProps } from "react-aria-components";
|
|
2
|
+
import type { VariantProps } from "@opengovsg/oui-theme";
|
|
3
|
+
import { inputStyles } from "@opengovsg/oui-theme";
|
|
3
4
|
export interface InputProps extends VariantProps<typeof inputStyles>, Omit<AriaInputProps, "size"> {
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/input/input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/input/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAIzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAsB,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,UACf,SAAQ,YAAY,CAAC,OAAO,WAAW,CAAC,EACtC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;CAAG;AAEnC;;GAEG;AACH,eAAO,MAAM,KAAK,yGAejB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/select/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { ListBoxItemProps } from "react-aria-components";
|
|
3
|
+
import type { SelectItemVariantProps, SelectItemVariantSlots, SlotsToClasses } from "@opengovsg/oui-theme";
|
|
4
|
+
interface SelectItemProps<T extends object> extends ListBoxItemProps<T>, SelectItemVariantProps {
|
|
5
|
+
classNames?: SlotsToClasses<SelectItemVariantSlots>;
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectItem: <T extends object>(props: SelectItemProps<T>) => ReactElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=select-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.d.ts","sourceRoot":"","sources":["../../../src/select/select-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAI7D,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAM7B,UAAU,eAAe,CAAC,CAAC,SAAS,MAAM,CACxC,SAAQ,gBAAgB,CAAC,CAAC,CAAC,EACzB,sBAAsB;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAA;CACpD;AAED,eAAO,MAAM,UAAU,EAwDjB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,YAAY,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ContextValue } from "react-aria-components";
|
|
2
|
+
import type { SelectVariantProps } from "@opengovsg/oui-theme";
|
|
3
|
+
export declare const SelectVariantContext: import("react").Context<ContextValue<SelectVariantProps, any>>, useSelectVariantContext: () => ContextValue<SelectVariantProps, any>;
|
|
4
|
+
//# sourceMappingURL=select-variant-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-variant-context.d.ts","sourceRoot":"","sources":["../../../src/select/select-variant-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAI9D,eAAO,MAAO,oBAAoB,kEAAE,uBAAuB,6CAMzD,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SelectProps as AriaSelectProps, ListBoxProps, ListLayoutOptions } from "react-aria-components";
|
|
2
|
+
import type { SelectVariantSlots, SlotsToClasses, VariantProps } from "@opengovsg/oui-theme";
|
|
3
|
+
import { selectStyles } from "@opengovsg/oui-theme";
|
|
4
|
+
export interface SelectProps<T> extends Omit<AriaSelectProps, "children">, VariantProps<typeof selectStyles> {
|
|
5
|
+
classNames?: SlotsToClasses<SelectVariantSlots>;
|
|
6
|
+
/**
|
|
7
|
+
* Any additional props to be spread to the list layout.
|
|
8
|
+
*/
|
|
9
|
+
listLayoutOptions?: ListLayoutOptions;
|
|
10
|
+
label?: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
/** The list of Select options to render */
|
|
13
|
+
items: NonNullable<ListBoxProps<T>["items"]>;
|
|
14
|
+
children?: ListBoxProps<T>["children"];
|
|
15
|
+
}
|
|
16
|
+
export declare function Select<T extends object>({ label, description, classNames, ...originalProps }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/select/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,YAAY,EACZ,iBAAiB,EAClB,MAAM,uBAAuB,CAAA;AAa9B,OAAO,KAAK,EAEV,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAsB,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOvE,MAAM,WAAW,WAAW,CAAC,CAAC,CAC5B,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,EACvC,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC,UAAU,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAA;IAE/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IAErC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B,2CAA2C;IAC3C,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;IAE5C,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;CACvC;AAeD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,EACvC,KAAK,EACL,WAAW,EACX,UAAU,EACV,GAAG,aAAa,EACjB,EAAE,WAAW,CAAC,CAAC,CAAC,2CA4EhB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import type { AnchorHTMLAttributes } from "react";
|
|
2
|
+
import type { VariantProps } from "@opengovsg/oui-theme";
|
|
3
|
+
import { skipNavLinkStyles } from "@opengovsg/oui-theme";
|
|
3
4
|
interface SkipNavLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "id" | "href">, VariantProps<typeof skipNavLinkStyles> {
|
|
4
5
|
/**
|
|
5
6
|
* The id of the element to skip to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-nav-link.d.ts","sourceRoot":"","sources":["../../../src/skip-nav-link/skip-nav-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"skip-nav-link.d.ts","sourceRoot":"","sources":["../../../src/skip-nav-link/skip-nav-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,UAAU,gBACR,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAClE,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED,eAAO,MAAM,WAAW,gCAAiC,gBAAgB,4CAQxE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SlotsToClasses, SpinnerSlots, SpinnerVariantProps } from "@opengovsg/oui-theme";
|
|
2
1
|
import type { Ref } from "react";
|
|
2
|
+
import type { SlotsToClasses, SpinnerSlots, SpinnerVariantProps } from "@opengovsg/oui-theme";
|
|
3
3
|
import type { HtmlUiProps, PropGetter } from "../system/types";
|
|
4
4
|
export interface UseSpinnerProps extends Omit<HtmlUiProps, "children">, SpinnerVariantProps {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-spinner.d.ts","sourceRoot":"","sources":["../../../src/spinner/use-spinner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"use-spinner.d.ts","sourceRoot":"","sources":["../../../src/spinner/use-spinner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG9D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,EACnC,mBAAmB;IACrB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC7B;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAA;CAC1C;AAED,eAAO,MAAM,UAAU,kBAAmB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCxD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -13,11 +13,7 @@ export interface CreateContextOptions {
|
|
|
13
13
|
*/
|
|
14
14
|
name?: string;
|
|
15
15
|
}
|
|
16
|
-
export type CreateContextReturn<T> = [
|
|
17
|
-
React.Provider<T>,
|
|
18
|
-
() => T,
|
|
19
|
-
React.Context<T>
|
|
20
|
-
];
|
|
16
|
+
export type CreateContextReturn<T> = [React.Context<T>, () => T];
|
|
21
17
|
/**
|
|
22
18
|
* Creates a named context, provider, and hook.
|
|
23
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/system/react-utils/context.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/system/react-utils/context.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;AAEhE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,EACvC,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CAAC,WAAW,CAAC,CA0BlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { AriaLabelingProps, DOMProps as SharedDOMProps } from "@react-types/shared";
|
|
1
2
|
import type * as CSS from "csstype";
|
|
2
3
|
import type { JSX, ReactNode } from "react";
|
|
3
|
-
import { AriaLabelingProps, DOMProps as SharedDOMProps } from "@react-types/shared";
|
|
4
4
|
/**
|
|
5
5
|
* Explicit re-export to fix error:
|
|
6
6
|
* The inferred type of useRenderProps cannot be named without a reference to .pnpm/csstype@3.1.3/node_modules/csstype . This is likely not portable. A type annotation is necessary.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/system/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/system/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,QAAQ,IAAI,cAAc,EAC3B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,GAAG,MAAM,SAAS,CAAA;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C;;;GAGG;AAGH,UAAU,aAAc,SAAQ,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;CAS9D;AAGD,MAAM,MAAM,EAAE,CAAC,KAAK,GAAG,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,EAAE,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,GAAG;IACtE,EAAE,CAAC,EAAE,EAAE,CAAA;CACR,CAAA;AAED,MAAM,MA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,CAAC,CAAA;CAC5E;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,CACvC,SAAQ,WAAW,CAAC,CAAC,CAAC,EACpB,cAAc,EACd,iBAAiB;IACnB,MAAM,EAAE,CAAC,CAAA;IACT,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,aAAa,CAAA;CAC7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WeakValidationMap } from "prop-types";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import type React from "react";
|
|
3
3
|
import type { As, MergeWithAs, PropsOf, RenderPropsHookOptions, RightJoinProps } from "./types";
|
|
4
4
|
export interface InternalForwardRefRenderFunction<Component extends As, Props extends object = {}, OmitKeys extends keyof any = never> {
|
|
5
5
|
<AsComponent extends As = Component>(props: MergeWithAs<React.ComponentPropsWithoutRef<Component>, Omit<React.ComponentPropsWithoutRef<AsComponent>, OmitKeys>, Props, AsComponent>): React.ReactElement | null;
|
|
@@ -13,7 +13,7 @@ export declare function forwardRef<Component extends As, Props extends object, O
|
|
|
13
13
|
as?: As;
|
|
14
14
|
}>>): InternalForwardRefRenderFunction<Component, Props, OmitKeys>;
|
|
15
15
|
export declare function forwardRefGeneric<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactNode): (props: P & React.RefAttributes<T>) => React.ReactNode;
|
|
16
|
-
export declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit<T, K> | T, Pick<T, K>
|
|
16
|
+
export declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit<T, K> | T, Pick<T, K>];
|
|
17
17
|
export declare function useRenderProps<T>(props: RenderPropsHookOptions<T>): {
|
|
18
18
|
className: string | undefined;
|
|
19
19
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/system/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/system/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EACV,EAAE,EACF,WAAW,EACX,OAAO,EACP,sBAAsB,EACtB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,gCAAgC,CAC/C,SAAS,SAAS,EAAE,EAEpB,KAAK,SAAS,MAAM,GAAG,EAAE,EAEzB,QAAQ,SAAS,MAAM,GAAG,GAAG,KAAK;IAElC,CAAC,WAAW,SAAS,EAAE,GAAG,SAAS,EACjC,KAAK,EAAE,WAAW,CAChB,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,EACzC,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,EAC3D,KAAK,EACL,WAAW,CACZ,GACA,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAEzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC;AAED,KAAK,eAAe,CAAC,KAAK,IAExB,KAAK,SAAS,GAAG,GACb,KAAK,SAAS,MAAM,KAAK,GACvB,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAClB,KAAK,GACP,KAAK,CAAA;AAEX,wBAAgB,UAAU,CACxB,SAAS,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDjE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAWnD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAWjD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { TagFieldItem, TagFieldListRenderProps } from "./types";
|
|
1
|
+
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
2
|
+
import type { UseComboboxPropGetters } from "downshift";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
import type { ContextValue, SlotProps } from "react-aria-components";
|
|
5
|
+
import type { SlotsToClasses, TagFieldItemSlots } from "@opengovsg/oui-theme";
|
|
6
|
+
import type { TagFieldItem, TagFieldListRenderProps } from "./types";
|
|
7
7
|
export interface TagFieldListContextValue extends SlotProps, ReturnType<UseComboboxPropGetters<object>["getMenuProps"]> {
|
|
8
8
|
rowVirtualizer: Virtualizer<HTMLElement, Element>;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-field-list.d.ts","sourceRoot":"","sources":["../../../src/tag-field/tag-field-list.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tag-field-list.d.ts","sourceRoot":"","sources":["../../../src/tag-field/tag-field-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAIpE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAG7E,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAIpE,MAAM,WAAW,wBACf,SAAQ,SAAS,EACf,UAAU,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC;IAC5D,cAAc,EAAE,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;CAClD;AAED,eAAO,MAAM,mBAAmB,mFAC+C,CAAA;AAE/E,UAAU,iBAAiB,CAAC,CAAC,SAAS,YAAY,CAChD,SAAQ,OAAO,CAAC,wBAAwB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;IAClD,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAA;CAC3E;AAED,UAAU,qBAAqB,CAAC,CAAC,SAAS,YAAY,CACpD,SAAQ,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAC/C,UAAU,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACpD;AAuBD,eAAO,MAAM,gBAAgB,GArBE,CAAC,SAAS,YAAY,qFAgB7C,MAAK,SAK2D,CAAA;AAsDxE,eAAO,MAAM,YAAY,GApDE,CAAC,SAAS,YAAY,oFAPzC,MAAK,SA2DmD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UseMultipleSelectionReturnValue } from "downshift";
|
|
2
|
-
import { ComboBoxRenderProps } from "react-aria-components";
|
|
3
|
-
import { RenderProps } from "../system/types";
|
|
4
|
-
import { TagFieldItem, TagFieldProps } from "./types";
|
|
2
|
+
import type { ComboBoxRenderProps } from "react-aria-components";
|
|
3
|
+
import type { RenderProps } from "../system/types";
|
|
4
|
+
import type { TagFieldItem, TagFieldProps } from "./types";
|
|
5
5
|
interface TagFieldRootRenderProps<T extends TagFieldItem> extends ComboBoxRenderProps, Pick<UseMultipleSelectionReturnValue<T>, "getSelectedItemProps" | "removeSelectedItem"> {
|
|
6
6
|
highlightedIndex?: number;
|
|
7
7
|
selectedItems: T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-field-root.d.ts","sourceRoot":"","sources":["../../../src/tag-field/tag-field-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"tag-field-root.d.ts","sourceRoot":"","sources":["../../../src/tag-field/tag-field-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAmBhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQ1D,UAAU,uBAAuB,CAAC,CAAC,SAAS,YAAY,CACtD,SAAQ,mBAAmB,EACzB,IAAI,CACF,+BAA+B,CAAC,CAAC,CAAC,EAClC,sBAAsB,GAAG,oBAAoB,CAC9C;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,CAAC,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;CACZ;AAeD,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,YAAY,CACvD,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EACxC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;CAAG;AAE9C,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,EACnD,QAAQ,EACR,gBAAgB,EAAE,iBAAiB,EACnC,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAyKtB"}
|