@accelint/design-system 1.1.3 → 1.1.5
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/components/aria/index.js.map +1 -1
- package/dist/components/button/button.css.d.ts +24 -24
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/checkbox/checkbox.css.d.ts +23 -23
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/chip/chip.css.d.ts +18 -18
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js.map +1 -1
- package/dist/components/combo-box/combo-box.css.d.ts +9 -9
- package/dist/components/combo-box/index.js +9 -5
- package/dist/components/combo-box/index.js.map +1 -1
- package/dist/components/date-field/date-field.css.d.ts +17 -17
- package/dist/components/date-field/index.js +8 -4
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-input/date-input.css.d.ts +25 -25
- package/dist/components/date-input/index.js +15 -7
- package/dist/components/date-input/index.js.map +1 -1
- package/dist/components/dialog/dialog.css.d.ts +15 -15
- package/dist/components/dialog/index.js +7 -5
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/drawer/drawer.css.d.ts +16 -16
- package/dist/components/drawer/index.js +21 -8
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/element/index.d.ts +1 -1
- package/dist/components/element/index.js +7 -3
- package/dist/components/element/index.js.map +1 -1
- package/dist/components/element/types.d.ts +2 -0
- package/dist/components/group/group.css.d.ts +7 -7
- package/dist/components/group/index.js +6 -6
- package/dist/components/group/index.js.map +1 -1
- package/dist/components/icon/icon.css.d.ts +9 -9
- package/dist/components/icon/index.js +4 -4
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/index.d.ts +34 -34
- package/dist/components/input/index.js +17 -8
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/input.css.d.ts +20 -20
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/menu.css.d.ts +42 -42
- package/dist/components/merge-provider/index.js.map +1 -1
- package/dist/components/merge-provider/types.d.ts +2 -0
- package/dist/components/number-field/index.js +8 -4
- package/dist/components/number-field/index.js.map +1 -1
- package/dist/components/number-field/number-field.css.d.ts +11 -11
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/options.css.d.ts +44 -44
- package/dist/components/picker/index.js.map +1 -1
- package/dist/components/picker/picker.css.d.ts +18 -18
- package/dist/components/popover/index.js +8 -4
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/popover.css.d.ts +12 -12
- package/dist/components/query-builder/action-element.js.map +1 -1
- package/dist/components/query-builder/dataset-sample.js.map +1 -1
- package/dist/components/query-builder/group.js.map +1 -1
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/query-builder.css.d.ts +53 -53
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/index.js +12 -8
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/radio.css.d.ts +22 -22
- package/dist/components/search-field/index.js +9 -5
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/search-field/search-field.css.d.ts +9 -9
- package/dist/components/select/index.js +5 -5
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/select.css.d.ts +12 -12
- package/dist/components/slider/index.js +48 -20
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/slider.css.d.ts +27 -27
- package/dist/components/switch/index.js +4 -4
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/switch.css.d.ts +16 -16
- package/dist/components/tabs/index.js +32 -20
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/tabs.css.d.ts +25 -25
- package/dist/components/text-field/index.js +8 -4
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/text-field/text-field.css.d.ts +8 -8
- package/dist/components/textarea/index.js +16 -7
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/components/textarea/textarea.css.d.ts +22 -22
- package/dist/components/time-field/index.js +8 -4
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/time-field.css.d.ts +17 -17
- package/dist/components/tooltip/index.js +17 -9
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/tooltip.css.d.ts +11 -11
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/tree.css.d.ts +45 -45
- package/dist/components/tree/utils.js +3 -1
- package/dist/components/tree/utils.js.map +1 -1
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/use-theme/index.d.ts +1 -1
- package/dist/hooks/use-theme/index.js.map +1 -1
- package/dist/hooks/use-tree/index.js.map +1 -1
- package/dist/hooks/use-update-effect/index.js.map +1 -1
- package/dist/index.d.ts +34 -34
- package/dist/ladle/actions.js.map +1 -1
- package/dist/styles/theme.css.d.ts +200 -200
- package/dist/test/setup.js +148 -26
- package/dist/test/setup.js.map +1 -1
- package/dist/utils/css/index.d.ts +1 -1
- package/dist/utils/css/index.js.map +1 -1
- package/dist/utils/props/index.js +1 -2
- package/dist/utils/props/index.js.map +1 -1
- package/dist/vanilla.d.ts +29 -29
- package/package.json +13 -12
|
@@ -7,9 +7,13 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
7
7
|
|
|
8
8
|
var ElementContext = createContext(null);
|
|
9
9
|
var Element = forwardRef(function Element2(props, ref) {
|
|
10
|
-
[
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const [contextProps, contextRef] = useContextProps(
|
|
11
|
+
props,
|
|
12
|
+
ref,
|
|
13
|
+
ElementContext
|
|
14
|
+
);
|
|
15
|
+
const { as: El = "div", values, mergeValues, ...rest } = contextProps;
|
|
16
|
+
let children = /* @__PURE__ */ jsx(El, { ...rest, ref: contextRef });
|
|
13
17
|
if (mergeValues) {
|
|
14
18
|
children = /* @__PURE__ */ jsx(MergeProvider, { values: mergeValues, children });
|
|
15
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/element/index.tsx"],"names":["Element"],"mappings":";;;;;;;AAmBO,IAAM,cAAA,GACX,cAKE,IAAI;AASD,IAAM,OAAA,GAAU,UAAA,CAAW,SAASA,QAAAA,CAazC,OACA,GAAA,EACA;AACA,EAAA,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/element/index.tsx"],"names":["Element"],"mappings":";;;;;;;AAmBO,IAAM,cAAA,GACX,cAKE,IAAI;AASD,IAAM,OAAA,GAAU,UAAA,CAAW,SAASA,QAAAA,CAazC,OACA,GAAA,EACA;AACA,EAAA,MAAM,CAAC,YAAA,EAAc,UAAU,CAAA,GAAI,eAAA;AAAA,IACjC,KAAA;AAAA,IACA,GAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,EAAE,IAAI,EAAA,GAAK,KAAA,EAAO,QAAQ,WAAA,EAAa,GAAG,MAAK,GAAI,YAAA;AAGzD,EAAA,IAAI,2BAAW,GAAA,CAAC,EAAA,EAAA,EAAI,GAAG,IAAA,EAAM,KAAK,UAAA,EAAY,CAAA;AAE9C,EAAA,IAAI,WAAA,EAAa;AACf,IAAA,QAAA,mBAAW,GAAA,CAAC,aAAA,EAAA,EAAc,MAAA,EAAQ,WAAA,EAAc,QAAA,EAAS,CAAA;AAAA,EAC3D;AAEA,EAAA,IAAI,MAAA,EAAQ;AACV,IAAA,QAAA,mBAAW,GAAA,CAAC,QAAA,EAAA,EAAS,MAAA,EAAiB,QAAA,EAAS,CAAA;AAAA,EACjD;AAEA,EAAA,OAAO,QAAA;AACT,CAAC","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n/** biome-ignore-all lint/suspicious/noExplicitAny: ElementProps is a unique case */\n\nimport { createContext, type ForwardedRef, forwardRef } from 'react';\nimport { type ContextValue, Provider } from 'react-aria-components';\nimport { useContextProps } from '../../hooks/use-context-props';\nimport { MergeProvider } from '../merge-provider';\nimport type { ElementProps } from './types';\n\nexport const ElementContext =\n createContext<\n ContextValue<\n ElementProps<any, any, any, any, any, any, any, any, any, any, any>,\n HTMLElement\n >\n >(null);\n\n/**\n * This generic component serves as any easy way for more complex components\n * to establish stylable content areas within their layout with optional\n * targeted contexts for any subcomponents\n *\n * See Dialog & Drawer as examples\n */\nexport const Element = forwardRef(function Element<\n A,\n B,\n C,\n D,\n E,\n F,\n G,\n H,\n I,\n J,\n K,\n>(\n props: ElementProps<A, B, C, D, E, F, G, H, I, J, K>,\n ref: ForwardedRef<HTMLElement>,\n) {\n const [contextProps, contextRef] = useContextProps(\n props,\n ref,\n ElementContext,\n );\n\n const { as: El = 'div', values, mergeValues, ...rest } = contextProps;\n\n // @ts-expect-error Can't narrow props type to match element or ref, making this less dynamic runs into union complexity and performance issues\n let children = <El {...rest} ref={contextRef} />;\n\n if (mergeValues) {\n children = <MergeProvider values={mergeValues}>{children}</MergeProvider>;\n }\n\n if (values) {\n children = <Provider values={values}>{children}</Provider>;\n }\n\n return children;\n});\n"]}
|
|
@@ -2,6 +2,8 @@ import { JSX, HTMLElementType } from 'react';
|
|
|
2
2
|
import { SlotProps } from 'react-aria-components';
|
|
3
3
|
import { ProviderValues } from '../../types/react-aria.js';
|
|
4
4
|
|
|
5
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: ElementProps is a special case */
|
|
6
|
+
|
|
5
7
|
type ElementProps<A = any, B = any, C = any, D = any, E = any, F = any, G = any, H = any, I = any, J = any, K = any> = /**
|
|
6
8
|
* Initially tried to make these props generic and constrain props to element
|
|
7
9
|
* passed into generic, but ran into major performance issues with enormous
|
|
@@ -5,15 +5,15 @@ import 'react-aria-components';
|
|
|
5
5
|
|
|
6
6
|
declare const groupContainer: string;
|
|
7
7
|
declare const groupSpaceVars: {
|
|
8
|
-
gap: `var(--${string})
|
|
9
|
-
x: `var(--${string})
|
|
10
|
-
y: `var(--${string})
|
|
8
|
+
gap: `var(--${string})`;
|
|
9
|
+
x: `var(--${string})`;
|
|
10
|
+
y: `var(--${string})`;
|
|
11
11
|
};
|
|
12
12
|
declare const groupStateVars: {
|
|
13
|
-
count: `var(--${string})
|
|
14
|
-
orientation: `var(--${string})
|
|
15
|
-
reverse: `var(--${string})
|
|
16
|
-
type: `var(--${string})
|
|
13
|
+
count: `var(--${string})`;
|
|
14
|
+
orientation: `var(--${string})`;
|
|
15
|
+
reverse: `var(--${string})`;
|
|
16
|
+
type: `var(--${string})`;
|
|
17
17
|
};
|
|
18
18
|
declare const groupClassNames: GroupClassNames;
|
|
19
19
|
|
|
@@ -9,12 +9,12 @@ import { groupClassNames, groupStateVars } from './group.css.js';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
var GroupContext = (
|
|
12
|
-
//
|
|
13
|
-
//
|
|
12
|
+
// Unfortunately, using "unknown" or "object" here creates complex type issues with <Provider />
|
|
13
|
+
// biome-ignore lint/suspicious/noExplicitAny: Legacy
|
|
14
14
|
createContext(null)
|
|
15
15
|
);
|
|
16
16
|
var Group = forwardRef(function Group2(props, ref) {
|
|
17
|
-
[
|
|
17
|
+
const [contextProps, contextRef] = useContextProps(props, ref, GroupContext);
|
|
18
18
|
const {
|
|
19
19
|
children: childrenProp,
|
|
20
20
|
classNames: classNamesProp,
|
|
@@ -22,7 +22,7 @@ var Group = forwardRef(function Group2(props, ref) {
|
|
|
22
22
|
orientation = "horizontal",
|
|
23
23
|
reverse = false,
|
|
24
24
|
values: valuesProp
|
|
25
|
-
} =
|
|
25
|
+
} = contextProps;
|
|
26
26
|
const theme = useTheme();
|
|
27
27
|
const classNames = useMemo(
|
|
28
28
|
() => mergeClassNames(groupClassNames, theme.Group, classNamesProp),
|
|
@@ -52,8 +52,8 @@ var Group = forwardRef(function Group2(props, ref) {
|
|
|
52
52
|
}, [childrenProp, orientation, reverse]);
|
|
53
53
|
const values = useMemo(() => [[context, valuesProp]], [context, valuesProp]);
|
|
54
54
|
const children = useMemo(
|
|
55
|
-
() => /* @__PURE__ */ jsx("div", { ref, className: classNames?.container, style, children: /* @__PURE__ */ jsx("div", { className: classNames?.group, children: childrenProp }) }),
|
|
56
|
-
[
|
|
55
|
+
() => /* @__PURE__ */ jsx("div", { ref: contextRef, className: classNames?.container, style, children: /* @__PURE__ */ jsx("div", { className: classNames?.group, children: childrenProp }) }),
|
|
56
|
+
[contextRef, classNames?.container, classNames?.group, style, childrenProp]
|
|
57
57
|
);
|
|
58
58
|
return context && valuesProp ? /* @__PURE__ */ jsx(MergeProvider, { values, children }) : children;
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/group/index.tsx"],"names":["Group","type"],"mappings":";;;;;;;;;;AA6BO,IAAM,YAAA;AAAA;AAAA;AAAA,EAGX,cAAsE,IAAI;AAAA;AAOrE,IAAM,KAAA,GAAQ,UAAA,CAAW,SAASA,MAAAA,CACvC,OACA,GAAA,EACA;AACA,EAAA,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/group/index.tsx"],"names":["Group","type"],"mappings":";;;;;;;;;;AA6BO,IAAM,YAAA;AAAA;AAAA;AAAA,EAGX,cAAsE,IAAI;AAAA;AAOrE,IAAM,KAAA,GAAQ,UAAA,CAAW,SAASA,MAAAA,CACvC,OACA,GAAA,EACA;AACA,EAAA,MAAM,CAAC,YAAA,EAAc,UAAU,IAAI,eAAA,CAAgB,KAAA,EAAO,KAAK,YAAY,CAAA;AAE3E,EAAA,MAAM;AAAA,IACJ,QAAA,EAAU,YAAA;AAAA,IACV,UAAA,EAAY,cAAA;AAAA,IACZ,OAAA;AAAA,IACA,WAAA,GAAc,YAAA;AAAA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Ac,WAAA,EAAa,OAAO,CAAC,CAAA;AAEvC,EAAA,MAAM,MAAA,GAAS,OAAA,CAGb,MAAM,CAAC,CAAC,OAAA,EAAU,UAAU,CAAC,CAAA,EAAG,CAAC,OAAA,EAAS,UAAU,CAAC,CAAA;AAEvD,EAAA,MAAM,QAAA,GAAW,OAAA;AAAA,IACf,sBACE,GAAA,CAAC,KAAA,EAAA,EAAI,GAAA,EAAK,YAAY,SAAA,EAAW,UAAA,EAAY,SAAA,EAAW,KAAA,EACtD,8BAAC,KAAA,EAAA,EAAI,SAAA,EAAW,UAAA,EAAY,KAAA,EAAQ,wBAAa,CAAA,EACnD,CAAA;AAAA,IAEF,CAAC,UAAA,EAAY,UAAA,EAAY,WAAW,UAAA,EAAY,KAAA,EAAO,OAAO,YAAY;AAAA,GAC5E;AAEA,EAAA,OAAO,WAAW,UAAA,mBAChB,GAAA,CAAC,aAAA,EAAA,EAAc,MAAA,EAAiB,UAAS,CAAA,GAEzC,QAAA;AAEJ,CAAC","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n Children,\n createContext,\n type ForwardedRef,\n forwardRef,\n type ReactElement,\n useMemo,\n} from 'react';\nimport { useContextProps } from '../../hooks/use-context-props';\nimport { useTheme } from '../../hooks/use-theme';\nimport { inlineVars } from '../../utils/css';\nimport { mergeClassNames } from '../../utils/props';\nimport { MergeProvider } from '../merge-provider';\nimport { groupClassNames, groupStateVars } from './group.css';\nimport type { ContextValue } from 'react-aria-components';\nimport type { GroupProps } from './types';\n\nexport const GroupContext =\n // Unfortunately, using \"unknown\" or \"object\" here creates complex type issues with <Provider />\n // biome-ignore lint/suspicious/noExplicitAny: Legacy\n createContext<ContextValue<GroupProps<any, Element>, HTMLDivElement>>(null);\n\n/**\n * This generic component allows for collective prop distribution to a collection of components of the same type\n *\n * @example A list of <Button />s and you want to control their size instead of passing the same props to each\n */\nexport const Group = forwardRef(function Group<T, E extends Element>(\n props: GroupProps<T, E>,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const [contextProps, contextRef] = useContextProps(props, ref, GroupContext);\n\n const {\n children: childrenProp,\n classNames: classNamesProp,\n context,\n orientation = 'horizontal',\n reverse = false,\n values: valuesProp,\n } = contextProps;\n\n const theme = useTheme();\n\n const classNames = useMemo(\n () => mergeClassNames(groupClassNames, theme.Group, classNamesProp),\n [theme.Group, classNamesProp],\n );\n\n const style = useMemo(() => {\n const types = Children.toArray(childrenProp).reduce<Set<string>>(\n (acc, child) => {\n if (\n child &&\n typeof child !== 'boolean' &&\n typeof child !== 'number' &&\n typeof child !== 'string'\n ) {\n const type = (child as ReactElement).type;\n // @ts-expect-error TS doesn't know about \"render\" type\n const name = typeof type !== 'string' ? type.render?.name : type;\n\n if (name) {\n acc.add(name);\n }\n }\n\n return acc;\n },\n new Set<string>(),\n );\n\n const type = { 0: 'Empty', 1: [...types].at(0) }[types.size] ?? 'Mixed';\n\n return inlineVars(groupStateVars, {\n count: Children.count(childrenProp),\n orientation,\n reverse,\n type,\n });\n }, [childrenProp, orientation, reverse]);\n\n const values = useMemo<\n [[Exclude<typeof context, undefined>, ContextValue<T, E>]]\n // biome-ignore lint/style/noNonNullAssertion: intentional\n >(() => [[context!, valuesProp]], [context, valuesProp]);\n\n const children = useMemo(\n () => (\n <div ref={contextRef} className={classNames?.container} style={style}>\n <div className={classNames?.group}>{childrenProp}</div>\n </div>\n ),\n [contextRef, classNames?.container, classNames?.group, style, childrenProp],\n );\n\n return context && valuesProp ? (\n <MergeProvider values={values}>{children}</MergeProvider>\n ) : (\n children\n );\n});\n"]}
|
|
@@ -4,19 +4,19 @@ import 'react-aria-components';
|
|
|
4
4
|
|
|
5
5
|
declare const iconContainer: string;
|
|
6
6
|
declare const iconColorVars: {
|
|
7
|
-
color: `var(--${string})
|
|
8
|
-
fill: `var(--${string})
|
|
9
|
-
stroke: `var(--${string})
|
|
7
|
+
color: `var(--${string})`;
|
|
8
|
+
fill: `var(--${string})`;
|
|
9
|
+
stroke: `var(--${string})`;
|
|
10
10
|
};
|
|
11
11
|
declare const iconSpaceVars: {
|
|
12
|
-
width: `var(--${string})
|
|
13
|
-
height: `var(--${string})
|
|
12
|
+
width: `var(--${string})`;
|
|
13
|
+
height: `var(--${string})`;
|
|
14
14
|
};
|
|
15
15
|
declare const iconStateVars: {
|
|
16
|
-
color: `var(--${string})
|
|
17
|
-
fill: `var(--${string})
|
|
18
|
-
size: `var(--${string})
|
|
19
|
-
stroke: `var(--${string})
|
|
16
|
+
color: `var(--${string})`;
|
|
17
|
+
fill: `var(--${string})`;
|
|
18
|
+
size: `var(--${string})`;
|
|
19
|
+
stroke: `var(--${string})`;
|
|
20
20
|
};
|
|
21
21
|
declare const iconClassNames: IconClassNames;
|
|
22
22
|
|
|
@@ -10,8 +10,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
10
10
|
|
|
11
11
|
var IconContext = createContext(null);
|
|
12
12
|
var Icon = forwardRef(function Icon2(props, ref) {
|
|
13
|
-
[
|
|
14
|
-
|
|
13
|
+
const [contextProps, contextRef] = useContextProps(props, ref, IconContext);
|
|
14
|
+
const finalProps = useDefaultProps(contextProps, "Icon");
|
|
15
15
|
const {
|
|
16
16
|
children,
|
|
17
17
|
classNames: classNamesProp,
|
|
@@ -19,7 +19,7 @@ var Icon = forwardRef(function Icon2(props, ref) {
|
|
|
19
19
|
fill,
|
|
20
20
|
size = "relative",
|
|
21
21
|
stroke
|
|
22
|
-
} =
|
|
22
|
+
} = finalProps;
|
|
23
23
|
const theme = useTheme();
|
|
24
24
|
const classNames = useMemo(
|
|
25
25
|
() => mergeClassNames(iconClassNames, theme.Icon, classNamesProp),
|
|
@@ -34,7 +34,7 @@ var Icon = forwardRef(function Icon2(props, ref) {
|
|
|
34
34
|
}),
|
|
35
35
|
[color, fill, size, stroke]
|
|
36
36
|
);
|
|
37
|
-
return /* @__PURE__ */ jsx("div", { ref, className: classNames?.container, style, children: /* @__PURE__ */ jsx("div", { className: classNames?.icon, children }) });
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { ref: contextRef, className: classNames?.container, style, children: /* @__PURE__ */ jsx("div", { className: classNames?.icon, children }) });
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
export { Icon, IconContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/icon/index.tsx"],"names":["Icon"],"mappings":";;;;;;;;;;AAsBO,IAAM,WAAA,GACX,cAAuD,IAAI;AAEtD,IAAM,IAAA,GAAO,UAAA,CAAW,SAASA,KAAAA,CACtC,OACA,GAAA,EACA;AACA,EAAA,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/icon/index.tsx"],"names":["Icon"],"mappings":";;;;;;;;;;AAsBO,IAAM,WAAA,GACX,cAAuD,IAAI;AAEtD,IAAM,IAAA,GAAO,UAAA,CAAW,SAASA,KAAAA,CACtC,OACA,GAAA,EACA;AACA,EAAA,MAAM,CAAC,YAAA,EAAc,UAAU,IAAI,eAAA,CAAgB,KAAA,EAAO,KAAK,WAAW,CAAA;AAE1E,EAAA,MAAM,UAAA,GAAa,eAAA,CAAgB,YAAA,EAAc,MAAM,CAAA;AAEvD,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,UAAA,EAAY,cAAA;AAAA,IACZ,KAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAA,GAAO,UAAA;AAAA,IACP;AAAA,GACF,GAAI,UAAA;AAEJ,EAAA,MAAM,QAAQ,QAAA,EAAS;AAEvB,EAAA,MAAM,UAAA,GAAa,OAAA;AAAA,IACjB,MAAM,eAAA,CAAgB,cAAA,EAAgB,KAAA,CAAM,MAAM,cAAc,CAAA;AAAA,IAChE,CAAC,KAAA,CAAM,IAAA,EAAM,cAAc;AAAA,GAC7B;AAEA,EAAA,MAAM,KAAA,GAAQ,OAAA;AAAA,IACZ,MACE,WAAW,aAAA,EAAe;AAAA,MACxB,KAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACH,CAAC,KAAA,EAAO,IAAA,EAAM,IAAA,EAAM,MAAM;AAAA,GAC5B;AAEA,EAAA,uBACE,GAAA,CAAC,KAAA,EAAA,EAAI,GAAA,EAAK,UAAA,EAAY,WAAW,UAAA,EAAY,SAAA,EAAW,KAAA,EACtD,QAAA,kBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,UAAA,EAAY,IAAA,EAAO,UAAS,CAAA,EAC9C,CAAA;AAEJ,CAAC","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { createContext, type ForwardedRef, forwardRef, useMemo } from 'react';\nimport { useContextProps } from '../../hooks/use-context-props';\nimport { useDefaultProps } from '../../hooks/use-defaults';\nimport { useTheme } from '../../hooks/use-theme';\nimport { inlineVars } from '../../utils/css';\nimport { mergeClassNames } from '../../utils/props';\nimport { iconClassNames, iconStateVars } from './icon.css';\nimport type { ContextValue } from 'react-aria-components';\nimport type { IconProps } from './types';\n\nexport const IconContext =\n createContext<ContextValue<IconProps, HTMLDivElement>>(null);\n\nexport const Icon = forwardRef(function Icon(\n props: IconProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const [contextProps, contextRef] = useContextProps(props, ref, IconContext);\n\n const finalProps = useDefaultProps(contextProps, 'Icon');\n\n const {\n children,\n classNames: classNamesProp,\n color,\n fill,\n size = 'relative',\n stroke,\n } = finalProps;\n\n const theme = useTheme();\n\n const classNames = useMemo(\n () => mergeClassNames(iconClassNames, theme.Icon, classNamesProp),\n [theme.Icon, classNamesProp],\n );\n\n const style = useMemo(\n () =>\n inlineVars(iconStateVars, {\n color,\n fill,\n size,\n stroke,\n }),\n [color, fill, size, stroke],\n );\n\n return (\n <div ref={contextRef} className={classNames?.container} style={style}>\n <div className={classNames?.icon}>{children}</div>\n </div>\n );\n});\n"]}
|
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
export { AriaFieldError, AriaFieldErrorContext, AriaGroup, AriaGroupContext, AriaHeader, AriaHeaderContext, AriaHeading, AriaHeadingContext, AriaKeyboard, AriaKeyboardContext, AriaLabel, AriaLabelContext, AriaListBoxSection, AriaListBoxSectionContext, AriaMenuSection, AriaMenuSectionContext, AriaSection, AriaSectionContext, AriaSelectValue, AriaSelectValueContext, AriaSeparator, AriaSeparatorContext, AriaText, AriaTextContext } from './aria/index.js';
|
|
2
2
|
export { Button, ButtonContext, LinkButton, LinkButtonContext, ToggleButton, ToggleButtonContext } from './button/index.js';
|
|
3
3
|
export { buttonClassNames, buttonColorVars, buttonContainer, buttonSpaceVars, buttonStateVars } from './button/button.css.js';
|
|
4
|
-
export { ButtonClassNames, ButtonColors, ButtonMapping, ButtonProps, ButtonRenderProps, ButtonSizes, ButtonState, ButtonVariants, LinkButtonProps, ToggleButtonProps } from './button/types.js';
|
|
5
4
|
export { Checkbox, CheckboxContext, CheckboxGroup, CheckboxGroupContext } from './checkbox/index.js';
|
|
6
5
|
export { checkboxClassNames, checkboxColorVars, checkboxContainer, checkboxGroupContainer, checkboxGroupStateVars, checkboxSpaceVars, checkboxStateVars } from './checkbox/checkbox.css.js';
|
|
7
|
-
export { CheckboxAlignment, CheckboxClassNames, CheckboxGroupProps, CheckboxGroupRenderProps, CheckboxGroupState, CheckboxProps, CheckboxRenderProps, CheckboxState } from './checkbox/types.js';
|
|
8
6
|
export { Chip, ChipContext, ChipGroup, ChipGroupContext, ChipItem, ChipList } from './chip/index.js';
|
|
9
7
|
export { chipClassNames, chipColorVars, chipContainer, chipSpaceVars, chipStateVars } from './chip/chip.css.js';
|
|
10
|
-
export { ChipClassNames, ChipColors, ChipGroupProps, ChipItemProps, ChipListProps, ChipMapping, ChipProps, ChipRenderProps, ChipSizes, ChipState } from './chip/types.js';
|
|
11
8
|
export { createCollectionRenderer } from './collection/index.js';
|
|
12
9
|
export { ComboBox, ComboBoxContext } from './combo-box/index.js';
|
|
13
10
|
export { comboBoxClassNames, comboBoxColorVars, comboBoxContainer, comboBoxSpaceVars, comboBoxStateVars } from './combo-box/combo-box.css.js';
|
|
14
|
-
export { ComboBoxClassNames, ComboBoxMapping, ComboBoxProps, ComboBoxRenderProps, ComboBoxSizes, ComboBoxState } from './combo-box/types.js';
|
|
15
11
|
export { DateField } from './date-field/index.js';
|
|
16
12
|
export { dateFieldClassNames, dateFieldColorVars, dateFieldContainer, dateFieldSpaceVars, dateFieldStateVars } from './date-field/date-field.css.js';
|
|
17
|
-
export { DateFieldClassNames, DateFieldMapping, DateFieldProps, DateFieldRenderProps, DateFieldSizes, DateFieldState } from './date-field/types.js';
|
|
18
13
|
export { DateInput, DateInputContext, DateSegment, DateSegmentContext, DateSegments } from './date-input/index.js';
|
|
19
14
|
export { dateInputClassNames, dateInputColorVars, dateInputContainer, dateInputSpaceVars, dateInputStateVars, dateSegmentStateVars, dateSegmentsContainer } from './date-input/date-input.css.js';
|
|
20
|
-
export { DateInputClassNames, DateInputMapping, DateInputProps, DateInputRenderProps, DateInputSizes, DateInputState, DateSegmentProps, DateSegmentRenderProps, DateSegmentState, DateSegmentsProps } from './date-input/types.js';
|
|
21
15
|
export { Dialog, DialogContext } from './dialog/index.js';
|
|
22
16
|
export { dialogClassNames, dialogColorVars, dialogContainer, dialogSpaceVars, dialogStateVars } from './dialog/dialog.css.js';
|
|
23
|
-
export { DialogClassNames, DialogMapping, DialogProps, DialogRenderProps, DialogSizes, DialogState } from './dialog/types.js';
|
|
24
17
|
export { Drawer, DrawerDialog, DrawerDialogContext, DrawerTab, DrawerTabList } from './drawer/index.js';
|
|
25
18
|
export { drawerAnimationVars, drawerClassNames, drawerColorVars, drawerContainer, drawerDialogStateVars, drawerSpaceVars, drawerStateVars } from './drawer/drawer.css.js';
|
|
26
|
-
export { DrawerAnchor, DrawerClassNames, DrawerDialogProps, DrawerDialogState, DrawerMapping, DrawerProps, DrawerRenderProps, DrawerState, DrawerTabListProps, DrawerTabProps, DrawerTabRenderProps } from './drawer/types.js';
|
|
27
19
|
export { Element, ElementContext } from './element/index.js';
|
|
28
|
-
export { ElementProps } from './element/types.js';
|
|
29
20
|
export { Group, GroupContext } from './group/index.js';
|
|
30
21
|
export { groupClassNames, groupContainer, groupSpaceVars, groupStateVars } from './group/group.css.js';
|
|
31
|
-
export { GroupClassNames, GroupProps, GroupState } from './group/types.js';
|
|
32
22
|
export { Icon, IconContext } from './icon/index.js';
|
|
33
23
|
export { iconClassNames, iconColorVars, iconContainer, iconSpaceVars, iconStateVars } from './icon/icon.css.js';
|
|
34
|
-
export { IconClassNames, IconProps, IconSizes, IconState } from './icon/types.js';
|
|
35
24
|
export { Input, InputContext } from './input/index.js';
|
|
36
25
|
export { inputClassNames, inputColorVars, inputContainer, inputSpaceVars, inputStateVars } from './input/input.css.js';
|
|
37
|
-
export { InputClassNames, InputMapping, InputProps, InputRenderProps, InputState, InputType } from './input/types.js';
|
|
38
26
|
export { Menu, MenuContext, MenuItem, MenuItemContext, MenuList, MenuListContext } from './menu/index.js';
|
|
39
27
|
export { menuClassNames, menuColorVars, menuContainers, menuItemStateVars, menuSpaceVars, menuStateVars } from './menu/menu.css.js';
|
|
40
|
-
export { MenuClassNames, MenuItemProps, MenuItemRenderProps, MenuItemState, MenuListProps, MenuMapping, MenuProps, MenuRenderProps, MenuSizes, MenuState } from './menu/types.js';
|
|
41
28
|
export { MergeProvider } from './merge-provider/index.js';
|
|
42
|
-
export { MergeProviderProps } from './merge-provider/types.js';
|
|
43
29
|
export { NumberField, NumberFieldContext } from './number-field/index.js';
|
|
44
30
|
export { numberFieldClassNames, numberFieldColorVars, numberFieldContainer, numberFieldSpaceVars, numberFieldStateVars } from './number-field/number-field.css.js';
|
|
45
|
-
export { NumberFieldClassNames, NumberFieldMapping, NumberFieldProps, NumberFieldRenderProps, NumberFieldSizes, NumberFieldState } from './number-field/types.js';
|
|
46
31
|
export { Options, OptionsContext, OptionsItem, OptionsItemContext, OptionsList, OptionsListContext } from './options/index.js';
|
|
47
32
|
export { optionsClassNames, optionsColorVars, optionsContainers, optionsItemStateVars, optionsListStateVars, optionsSpaceVars, optionsStateVars } from './options/options.css.js';
|
|
48
|
-
export { OptionsClassNames, OptionsItemProps, OptionsItemRenderProps, OptionsItemState, OptionsListProps, OptionsListRenderProps, OptionsListState, OptionsMapping, OptionsProps, OptionsRenderProps, OptionsSizes, OptionsState } from './options/types.js';
|
|
49
33
|
export { Picker, PickerContext, PickerItem, PickerItemContext } from './picker/index.js';
|
|
50
34
|
export { pickerClassNames, pickerContainers, pickerItemColorVars, pickerItemStateVars, pickerSpaceVars, pickerStateVars } from './picker/picker.css.js';
|
|
51
|
-
export { PickerClassNames, PickerItemProps, PickerItemRenderProps, PickerItemState, PickerProps, PickerState } from './picker/types.js';
|
|
52
35
|
export { Popover, PopoverContext } from './popover/index.js';
|
|
53
36
|
export { popoverClassNames, popoverColorVars, popoverContainer, popoverSpaceVars, popoverStateVars } from './popover/popover.css.js';
|
|
54
|
-
export { PopoverClassNames, PopoverProps, PopoverRenderProps, PopoverState } from './popover/types.js';
|
|
55
37
|
export { QueryBuilder } from './query-builder/index.js';
|
|
56
38
|
export { QueryBuilderContext } from './query-builder/constants.js';
|
|
57
39
|
export { queryBuilderClassNames, queryBuilderColorVars, queryBuilderContainers, queryBuilderGroupStateVars, queryBuilderRuleStateVars, queryBuilderSpaceVars, queryBuilderStateVars } from './query-builder/query-builder.css.js';
|
|
58
|
-
export { QueryBuilderClassNames, QueryBuilderContextValue, QueryBuilderGroupState, QueryBuilderMapping, QueryBuilderProps, QueryBuilderRuleState, QueryBuilderSizes, QueryBuilderState, QueryBuilderValueEditors } from './query-builder/types.js';
|
|
59
40
|
export { pressToMouseEvent } from './query-builder/utils.js';
|
|
60
41
|
export { Radio, RadioContext, RadioGroup, RadioGroupContext } from './radio/index.js';
|
|
61
42
|
export { radioClassNames, radioColorVars, radioGroupStateVars, radioSpaceVars, radioStateVars } from './radio/radio.css.js';
|
|
62
|
-
export { RadioAlignment, RadioClassNames, RadioContextProps, RadioGroupProps, RadioGroupRenderProps, RadioGroupState, RadioProps, RadioRenderProps, RadioState } from './radio/types.js';
|
|
63
43
|
export { SearchField, SearchFieldContext } from './search-field/index.js';
|
|
64
44
|
export { searchFieldClassNames, searchFieldContainer, searchFieldSpaceVars, searchFieldStateVars } from './search-field/search-field.css.js';
|
|
65
|
-
export { SearchFieldClassNames, SearchFieldMapping, SearchFieldProps, SearchFieldRenderProps, SearchFieldState } from './search-field/types.js';
|
|
66
45
|
export { Select, SelectContext } from './select/index.js';
|
|
67
46
|
export { selectClassNames, selectColorVars, selectContainer, selectSpaceVars, selectStateVars } from './select/select.css.js';
|
|
68
|
-
export { SelectClassNames, SelectMapping, SelectProps, SelectRenderProps, SelectSizes, SelectState } from './select/types.js';
|
|
69
47
|
export { Slider, SliderBar, SliderBarContext, SliderContext, SliderOutput, SliderOutputContext, SliderThumb, SliderThumbContext, SliderTrack, SliderTrackContext } from './slider/index.js';
|
|
70
48
|
export { sliderClassNames, sliderColorVars, sliderSpaceVars, sliderStateVars, sliderThumbStateVars, sliderTrackStateVars } from './slider/slider.css.js';
|
|
71
|
-
export { SliderBarProps, SliderClassNames, SliderInputProps, SliderLayout, SliderOutputProps, SliderProps, SliderRenderProps, SliderState, SliderThumbProps, SliderThumbRenderProps, SliderThumbState, SliderTrackProps, SliderTrackRenderProps } from './slider/types.js';
|
|
72
49
|
export { Switch, SwitchContext } from './switch/index.js';
|
|
73
50
|
export { switchClassNames, switchColorVars, switchContainer, switchSpaceVars, switchStateVars } from './switch/switch.css.js';
|
|
74
|
-
export { SwitchAlignment, SwitchClassNames, SwitchProps, SwitchRenderProps, SwitchState } from './switch/types.js';
|
|
75
51
|
export { Tab, TabContext, TabList, TabListContext, TabPanel, TabPanelContext, TabPanels, TabPanelsContext, Tabs, TabsContext } from './tabs/index.js';
|
|
76
52
|
export { tabColorVars, tabListStateVars, tabPanelStateVars, tabPanelsStateVars, tabSpaceVars, tabStateVars, tabsClassNames, tabsContainers } from './tabs/tabs.css.js';
|
|
77
|
-
export { TabListAlignment, TabListAnchor, TabListProps, TabListState, TabListVariants, TabPanelProps, TabPanelRenderProps, TabPanelState, TabPanelsProps, TabPanelsState, TabProps, TabRenderProps, TabState, TabsClassNames, TabsProps } from './tabs/types.js';
|
|
78
53
|
export { TextField, TextFieldContext } from './text-field/index.js';
|
|
79
54
|
export { textFieldClassNames, textFieldColorVars, textFieldContainer, textFieldSpaceVars, textFieldStateVars } from './text-field/text-field.css.js';
|
|
80
|
-
export { TextFieldClassNames, TextFieldMapping, TextFieldProps, TextFieldSizes, TextFieldState } from './text-field/types.js';
|
|
81
55
|
export { TextArea, TextAreaContext } from './textarea/index.js';
|
|
82
56
|
export { textAreaClassNames, textAreaColorVars, textAreaContainer, textAreaSpaceVars, textAreaStateVars } from './textarea/textarea.css.js';
|
|
83
|
-
export { TextAreaClassNames, TextAreaProps, TextAreaRenderProps, TextAreaState } from './textarea/types.js';
|
|
84
57
|
export { TimeField, TimeFieldContext } from './time-field/index.js';
|
|
85
58
|
export { timeFieldClassNames, timeFieldColorVars, timeFieldContainer, timeFieldSpaceVars, timeFieldStateVars } from './time-field/time-field.css.js';
|
|
86
|
-
export { TimeFieldClassNames, TimeFieldMapping, TimeFieldProps, TimeFieldRenderProps, TimeFieldSizes, TimeFieldState } from './time-field/types.js';
|
|
87
59
|
export { Tooltip, TooltipContext, TooltipTarget, TooltipTargetContext } from './tooltip/index.js';
|
|
88
60
|
export { tooltipClassNames, tooltipContainers, tooltipSpaceVars, tooltipStateVars, tooltipTargetStateVars } from './tooltip/tooltip.css.js';
|
|
89
|
-
export { TooltipClassNames, TooltipMapping, TooltipProps, TooltipRenderProps, TooltipState, TooltipTargetProps, TooltipTargetState } from './tooltip/types.js';
|
|
90
61
|
export { Tree, TreeGroup, TreeItem, TreeStateContext } from './tree/index.js';
|
|
91
62
|
export { treeClassNames, treeColorVars, treeContainers, treeGroupStateVars, treeIndicatorStateVars, treeItemStateVars, treeSpaceVars, treeStateVars } from './tree/tree.css.js';
|
|
63
|
+
export { ButtonClassNames, ButtonColors, ButtonMapping, ButtonProps, ButtonRenderProps, ButtonSizes, ButtonState, ButtonVariants, LinkButtonProps, ToggleButtonProps } from './button/types.js';
|
|
64
|
+
export { CheckboxAlignment, CheckboxClassNames, CheckboxGroupProps, CheckboxGroupRenderProps, CheckboxGroupState, CheckboxProps, CheckboxRenderProps, CheckboxState } from './checkbox/types.js';
|
|
65
|
+
export { ChipClassNames, ChipColors, ChipGroupProps, ChipItemProps, ChipListProps, ChipMapping, ChipProps, ChipRenderProps, ChipSizes, ChipState } from './chip/types.js';
|
|
66
|
+
export { ComboBoxClassNames, ComboBoxMapping, ComboBoxProps, ComboBoxRenderProps, ComboBoxSizes, ComboBoxState } from './combo-box/types.js';
|
|
67
|
+
export { DateFieldClassNames, DateFieldMapping, DateFieldProps, DateFieldRenderProps, DateFieldSizes, DateFieldState } from './date-field/types.js';
|
|
68
|
+
export { DateInputClassNames, DateInputMapping, DateInputProps, DateInputRenderProps, DateInputSizes, DateInputState, DateSegmentProps, DateSegmentRenderProps, DateSegmentState, DateSegmentsProps } from './date-input/types.js';
|
|
69
|
+
export { DialogClassNames, DialogMapping, DialogProps, DialogRenderProps, DialogSizes, DialogState } from './dialog/types.js';
|
|
70
|
+
export { DrawerAnchor, DrawerClassNames, DrawerDialogProps, DrawerDialogState, DrawerMapping, DrawerProps, DrawerRenderProps, DrawerState, DrawerTabListProps, DrawerTabProps, DrawerTabRenderProps } from './drawer/types.js';
|
|
71
|
+
export { ElementProps } from './element/types.js';
|
|
72
|
+
export { GroupClassNames, GroupProps, GroupState } from './group/types.js';
|
|
73
|
+
export { IconClassNames, IconProps, IconSizes, IconState } from './icon/types.js';
|
|
74
|
+
export { InputClassNames, InputMapping, InputProps, InputRenderProps, InputState, InputType } from './input/types.js';
|
|
75
|
+
export { MenuClassNames, MenuItemProps, MenuItemRenderProps, MenuItemState, MenuListProps, MenuMapping, MenuProps, MenuRenderProps, MenuSizes, MenuState } from './menu/types.js';
|
|
76
|
+
export { MergeProviderProps } from './merge-provider/types.js';
|
|
77
|
+
export { NumberFieldClassNames, NumberFieldMapping, NumberFieldProps, NumberFieldRenderProps, NumberFieldSizes, NumberFieldState } from './number-field/types.js';
|
|
78
|
+
export { OptionsClassNames, OptionsItemProps, OptionsItemRenderProps, OptionsItemState, OptionsListProps, OptionsListRenderProps, OptionsListState, OptionsMapping, OptionsProps, OptionsRenderProps, OptionsSizes, OptionsState } from './options/types.js';
|
|
79
|
+
export { PickerClassNames, PickerItemProps, PickerItemRenderProps, PickerItemState, PickerProps, PickerState } from './picker/types.js';
|
|
80
|
+
export { PopoverClassNames, PopoverProps, PopoverRenderProps, PopoverState } from './popover/types.js';
|
|
81
|
+
export { QueryBuilderClassNames, QueryBuilderContextValue, QueryBuilderGroupState, QueryBuilderMapping, QueryBuilderProps, QueryBuilderRuleState, QueryBuilderSizes, QueryBuilderState, QueryBuilderValueEditors } from './query-builder/types.js';
|
|
82
|
+
export { RadioAlignment, RadioClassNames, RadioContextProps, RadioGroupProps, RadioGroupRenderProps, RadioGroupState, RadioProps, RadioRenderProps, RadioState } from './radio/types.js';
|
|
83
|
+
export { SearchFieldClassNames, SearchFieldMapping, SearchFieldProps, SearchFieldRenderProps, SearchFieldState } from './search-field/types.js';
|
|
84
|
+
export { SelectClassNames, SelectMapping, SelectProps, SelectRenderProps, SelectSizes, SelectState } from './select/types.js';
|
|
85
|
+
export { SliderBarProps, SliderClassNames, SliderInputProps, SliderLayout, SliderOutputProps, SliderProps, SliderRenderProps, SliderState, SliderThumbProps, SliderThumbRenderProps, SliderThumbState, SliderTrackProps, SliderTrackRenderProps } from './slider/types.js';
|
|
86
|
+
export { SwitchAlignment, SwitchClassNames, SwitchProps, SwitchRenderProps, SwitchState } from './switch/types.js';
|
|
87
|
+
export { TabListAlignment, TabListAnchor, TabListProps, TabListState, TabListVariants, TabPanelProps, TabPanelRenderProps, TabPanelState, TabPanelsProps, TabPanelsState, TabProps, TabRenderProps, TabState, TabsClassNames, TabsProps } from './tabs/types.js';
|
|
88
|
+
export { TextFieldClassNames, TextFieldMapping, TextFieldProps, TextFieldSizes, TextFieldState } from './text-field/types.js';
|
|
89
|
+
export { TextAreaClassNames, TextAreaProps, TextAreaRenderProps, TextAreaState } from './textarea/types.js';
|
|
90
|
+
export { TimeFieldClassNames, TimeFieldMapping, TimeFieldProps, TimeFieldRenderProps, TimeFieldSizes, TimeFieldState } from './time-field/types.js';
|
|
91
|
+
export { TooltipClassNames, TooltipMapping, TooltipProps, TooltipRenderProps, TooltipState, TooltipTargetProps, TooltipTargetState } from './tooltip/types.js';
|
|
92
92
|
export { TreeClassNames, TreeGroupProps, TreeGroupRenderProps, TreeGroupState, TreeIndicatorRenderProps, TreeIndicatorState, TreeItemProps, TreeItemRenderProps, TreeItemState, TreeMapping, TreeProps, TreeRenderProps, TreeSizes, TreeState, TreeStateContextValue } from './tree/types.js';
|
|
93
93
|
import 'react';
|
|
94
94
|
import 'react-aria-components';
|
|
95
95
|
import '../types/react-aria.js';
|
|
96
|
-
import '../types/props.js';
|
|
97
96
|
import '@react-types/shared';
|
|
98
|
-
import 'type-fest';
|
|
99
97
|
import 'react/jsx-runtime';
|
|
100
|
-
import '../types/generic.js';
|
|
101
98
|
import '@react-stately/datepicker';
|
|
102
|
-
import '@react-aria/overlays';
|
|
103
|
-
import '@react-stately/overlays';
|
|
104
99
|
import 'react-querybuilder';
|
|
100
|
+
import 'type-fest';
|
|
105
101
|
import '@react-aria/datepicker';
|
|
102
|
+
import '../types/props.js';
|
|
103
|
+
import '../types/generic.js';
|
|
104
|
+
import '@react-aria/overlays';
|
|
105
|
+
import '@react-stately/overlays';
|
|
106
106
|
import '../types/use-tree.js';
|
|
107
107
|
import '@react-stately/data';
|
|
@@ -25,11 +25,19 @@ var defaultMapping = {
|
|
|
25
25
|
};
|
|
26
26
|
var InputContext = createContext(null);
|
|
27
27
|
var Input = forwardRef(function Input2(props, ref) {
|
|
28
|
-
[
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
const [contextProps1, contextRef1] = useContextProps(
|
|
29
|
+
props,
|
|
30
|
+
ref,
|
|
31
|
+
InputContext$1
|
|
32
|
+
);
|
|
33
|
+
contextProps1.className = void 0;
|
|
34
|
+
contextProps1.style = void 0;
|
|
35
|
+
const [contextProps2, contextRef2] = useContextProps(
|
|
36
|
+
contextProps1,
|
|
37
|
+
contextRef1,
|
|
38
|
+
InputContext
|
|
39
|
+
);
|
|
40
|
+
const defaultProps = useDefaultProps(contextProps2, "Input");
|
|
33
41
|
const {
|
|
34
42
|
classNames: classNamesProp,
|
|
35
43
|
defaultValue = "",
|
|
@@ -47,14 +55,14 @@ var Input = forwardRef(function Input2(props, ref) {
|
|
|
47
55
|
onHoverEnd,
|
|
48
56
|
"aria-invalid": ariaInvalid,
|
|
49
57
|
...rest
|
|
50
|
-
} =
|
|
58
|
+
} = defaultProps;
|
|
51
59
|
const [value, setValue] = useControlledState(valueProp, defaultValue);
|
|
52
60
|
const length = (`${value ?? ""}`.length || placeholder?.length) ?? 0;
|
|
53
61
|
const isInvalid = !!ariaInvalid && ariaInvalid !== "false";
|
|
54
62
|
const isPlaceholder = !!placeholder && !value;
|
|
55
63
|
const isEmpty = !value;
|
|
56
64
|
const { isFocused, isFocusVisible, focusProps } = useFocusRing({
|
|
57
|
-
autoFocus:
|
|
65
|
+
autoFocus: defaultProps.autoFocus,
|
|
58
66
|
isTextInput: true
|
|
59
67
|
});
|
|
60
68
|
const { hoverProps, isHovered } = useHover({
|
|
@@ -80,6 +88,7 @@ var Input = forwardRef(function Input2(props, ref) {
|
|
|
80
88
|
);
|
|
81
89
|
const mergedProps = useMemo(
|
|
82
90
|
() => mergeProps(rest, focusProps, hoverProps),
|
|
91
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: TODO: Verify this dependency array is correct.
|
|
83
92
|
[focusProps, hoverProps, rest]
|
|
84
93
|
);
|
|
85
94
|
const style = useMemo(
|
|
@@ -125,7 +134,7 @@ var Input = forwardRef(function Input2(props, ref) {
|
|
|
125
134
|
"input",
|
|
126
135
|
{
|
|
127
136
|
...mergedProps,
|
|
128
|
-
ref,
|
|
137
|
+
ref: contextRef2,
|
|
129
138
|
className: classNames?.input,
|
|
130
139
|
disabled: isDisabled,
|
|
131
140
|
placeholder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/input/index.tsx"],"names":["Input","RACInputContext"],"mappings":";;;;;;;;;;;;;;;AAqCA,IAAM,cAAA,GAA+B;AAAA,EACnC,KAAA,EAAO;AAAA,IACL,IAAI,MAAA,CAAO,EAAA;AAAA,IACX,IAAI,MAAA,CAAO;AAAA,GACb;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAI,MAAA,CAAO,EAAA;AAAA,IACX,IAAI,MAAA,CAAO;AAAA;AAEf,CAAA;AAEO,IAAM,YAAA,GACX,cAA0D,IAAI;AAMzD,IAAM,KAAA,GAAQ,UAAA,CAAW,SAASA,MAAAA,CACvC,OACA,GAAA,EACA;AACA,EAAA,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input/index.tsx"],"names":["Input","RACInputContext"],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A,MACA,QAAA,EAAU,UAAA;AAAA,MACV,QAAA,EAAU,UAAA;AAAA,MACV,IAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA,EAAU,YAAA;AAAA,MACV,cAAA,EAAc;AAAA;AAAA,KAElB,CAAA,EACF,CAAA;AAEJ,CAAC","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useFocusRing } from '@react-aria/focus';\nimport { useHover } from '@react-aria/interactions';\nimport { useControlledState } from '@react-stately/utils';\nimport {\n type ChangeEvent,\n createContext,\n type ForwardedRef,\n forwardRef,\n useCallback,\n useMemo,\n} from 'react';\nimport {\n type ContextValue,\n InputContext as RACInputContext,\n type InputProps as RACInputProps,\n} from 'react-aria-components';\nimport { useContextProps } from '../../hooks/use-context-props';\nimport { useDefaultProps } from '../../hooks/use-defaults';\nimport { useTheme } from '../../hooks/use-theme';\nimport { inputs } from '../../styles/typography.css';\nimport { inlineVars } from '../../utils/css';\nimport { mergeClassNames, mergeProps } from '../../utils/props';\nimport { inputClassNames, inputStateVars } from './input.css';\nimport type { InputMapping, InputProps } from './types';\n\nconst defaultMapping: InputMapping = {\n sizer: {\n sm: inputs.sm,\n lg: inputs.lg,\n },\n input: {\n sm: inputs.sm,\n lg: inputs.lg,\n },\n};\n\nexport const InputContext =\n createContext<ContextValue<InputProps, HTMLInputElement>>(null);\n\n/**\n * Only intended for generic text-like inputs, see types in props for list\n * Other more specific inputs should be handled by other components\n */\nexport const Input = forwardRef(function Input(\n props: InputProps,\n ref: ForwardedRef<HTMLInputElement>,\n) {\n const [contextProps1, contextRef1] = useContextProps(\n props,\n ref,\n RACInputContext,\n );\n\n // Disallow props possibly provided by React Aria context\n // could be render props functions we don't want to support\n (contextProps1 as RACInputProps).className = undefined;\n (contextProps1 as RACInputProps).style = undefined;\n\n // Duplicate context prop merging to support React Aria's context\n // and our own which establishes a superset type for the props\n const [contextProps2, contextRef2] = useContextProps(\n contextProps1,\n contextRef1,\n InputContext,\n );\n\n const defaultProps = useDefaultProps(contextProps2, 'Input');\n\n const {\n classNames: classNamesProp,\n defaultValue = '',\n disabled: isDisabled = false,\n mapping: mappingProp,\n placeholder,\n readOnly: isReadOnly = false,\n required: isRequired = false,\n size = 'lg',\n type = 'text',\n value: valueProp,\n onChange,\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n 'aria-invalid': ariaInvalid,\n ...rest\n } = defaultProps;\n\n const [value, setValue] = useControlledState(valueProp, defaultValue);\n const length = (`${value ?? ''}`.length || placeholder?.length) ?? 0;\n const isInvalid = !!ariaInvalid && ariaInvalid !== 'false';\n const isPlaceholder = !!placeholder && !value;\n const isEmpty = !value;\n\n const { isFocused, isFocusVisible, focusProps } = useFocusRing({\n autoFocus: defaultProps.autoFocus,\n isTextInput: true,\n });\n\n const { hoverProps, isHovered } = useHover({\n isDisabled,\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n });\n\n const theme = useTheme();\n\n const mapping = useMemo(\n () => ({\n ...defaultMapping,\n ...mappingProp,\n }),\n [mappingProp],\n );\n\n const classNames = useMemo(\n () =>\n mergeClassNames(inputClassNames, theme.Input, classNamesProp, {\n sizer: mapping.sizer[size],\n input: mapping.input[size],\n }),\n [theme.Input, classNamesProp, mapping, size],\n );\n\n const mergedProps = useMemo(\n () => mergeProps(rest, focusProps, hoverProps),\n // biome-ignore lint/correctness/useExhaustiveDependencies: TODO: Verify this dependency array is correct.\n [focusProps, hoverProps, rest],\n );\n\n const style = useMemo(\n () =>\n inlineVars(inputStateVars, {\n length,\n size,\n type,\n isDisabled,\n isEmpty,\n isFocused,\n isFocusVisible,\n isHovered,\n isInvalid,\n isPlaceholder,\n isReadOnly,\n isRequired,\n }),\n [\n length,\n size,\n type,\n isDisabled,\n isEmpty,\n isFocused,\n isFocusVisible,\n isHovered,\n isInvalid,\n isPlaceholder,\n isReadOnly,\n isRequired,\n ],\n );\n\n const handleChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n onChange?.(event);\n\n if (!event.defaultPrevented) {\n setValue(event.target.value);\n }\n },\n [onChange, setValue],\n );\n\n return (\n <div className={classNames?.container} style={style}>\n <div className={classNames?.sizer}>\n <input\n {...mergedProps}\n ref={contextRef2}\n className={classNames?.input}\n disabled={isDisabled}\n placeholder={placeholder}\n readOnly={isReadOnly}\n required={isRequired}\n type={type}\n value={value}\n onChange={handleChange}\n aria-invalid={ariaInvalid}\n />\n </div>\n </div>\n );\n});\n"]}
|
|
@@ -4,30 +4,30 @@ import '../../types/generic.js';
|
|
|
4
4
|
|
|
5
5
|
declare const inputContainer: string;
|
|
6
6
|
declare const inputColorVars: {
|
|
7
|
-
background: `var(--${string})
|
|
8
|
-
border: `var(--${string})
|
|
9
|
-
color: `var(--${string})
|
|
7
|
+
background: `var(--${string})`;
|
|
8
|
+
border: `var(--${string})`;
|
|
9
|
+
color: `var(--${string})`;
|
|
10
10
|
};
|
|
11
11
|
declare const inputSpaceVars: {
|
|
12
|
-
minWidth: `var(--${string})
|
|
13
|
-
width: `var(--${string})
|
|
14
|
-
maxWidth: `var(--${string})
|
|
15
|
-
x: `var(--${string})
|
|
16
|
-
y: `var(--${string})
|
|
12
|
+
minWidth: `var(--${string})`;
|
|
13
|
+
width: `var(--${string})`;
|
|
14
|
+
maxWidth: `var(--${string})`;
|
|
15
|
+
x: `var(--${string})`;
|
|
16
|
+
y: `var(--${string})`;
|
|
17
17
|
};
|
|
18
18
|
declare const inputStateVars: {
|
|
19
|
-
length: `var(--${string})
|
|
20
|
-
size: `var(--${string})
|
|
21
|
-
type: `var(--${string})
|
|
22
|
-
isDisabled: `var(--${string})
|
|
23
|
-
isEmpty: `var(--${string})
|
|
24
|
-
isFocused: `var(--${string})
|
|
25
|
-
isFocusVisible: `var(--${string})
|
|
26
|
-
isHovered: `var(--${string})
|
|
27
|
-
isInvalid: `var(--${string})
|
|
28
|
-
isPlaceholder: `var(--${string})
|
|
29
|
-
isReadOnly: `var(--${string})
|
|
30
|
-
isRequired: `var(--${string})
|
|
19
|
+
length: `var(--${string})`;
|
|
20
|
+
size: `var(--${string})`;
|
|
21
|
+
type: `var(--${string})`;
|
|
22
|
+
isDisabled: `var(--${string})`;
|
|
23
|
+
isEmpty: `var(--${string})`;
|
|
24
|
+
isFocused: `var(--${string})`;
|
|
25
|
+
isFocusVisible: `var(--${string})`;
|
|
26
|
+
isHovered: `var(--${string})`;
|
|
27
|
+
isInvalid: `var(--${string})`;
|
|
28
|
+
isPlaceholder: `var(--${string})`;
|
|
29
|
+
isReadOnly: `var(--${string})`;
|
|
30
|
+
isRequired: `var(--${string})`;
|
|
31
31
|
};
|
|
32
32
|
declare const inputClassNames: InputClassNames;
|
|
33
33
|
|