@arbor-education/design-system.components 3.0.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/pull_request_template.md +4 -3
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -0
- package/dist/components/formField/FormField.d.ts +34 -18
- package/dist/components/formField/FormField.d.ts.map +1 -1
- package/dist/components/formField/FormField.js +5 -1
- package/dist/components/formField/FormField.js.map +1 -1
- package/dist/components/formField/FormField.stories.d.ts +4 -0
- package/dist/components/formField/FormField.stories.d.ts.map +1 -1
- package/dist/components/formField/FormField.stories.js +314 -7
- package/dist/components/formField/FormField.stories.js.map +1 -1
- package/dist/components/formField/FormField.test.js +66 -0
- package/dist/components/formField/FormField.test.js.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts +1 -0
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.js +2 -2
- package/dist/components/formField/inputs/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxInput.d.ts +1 -0
- package/dist/components/formField/inputs/checkbox/CheckboxInput.d.ts.map +1 -1
- package/dist/components/formField/inputs/checkbox/CheckboxInput.js +2 -2
- package/dist/components/formField/inputs/checkbox/CheckboxInput.js.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts +1 -0
- package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts.map +1 -1
- package/dist/components/formField/inputs/radio/RadioButtonGroup.js +2 -2
- package/dist/components/formField/inputs/radio/RadioButtonGroup.js.map +1 -1
- package/dist/components/formField/inputs/selectDropdown/items/item/SelectDropdownItem.d.ts +2 -2
- package/dist/components/formField/inputs/selectDropdown/items/item/SelectDropdownItem.d.ts.map +1 -1
- package/dist/components/formField/inputs/selectDropdown/items/item/SelectDropdownItem.js +0 -1
- package/dist/components/formField/inputs/selectDropdown/items/item/SelectDropdownItem.js.map +1 -1
- package/dist/components/formField/inputs/time/TimeInput.d.ts +1 -1
- package/dist/components/formField/inputs/time/TimeInput.stories.d.ts +1 -1
- package/dist/components/icon/Icon.d.ts.map +1 -1
- package/dist/components/icon/Icon.js +18 -3
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/icon/Icon.stories.d.ts +4 -2
- package/dist/components/icon/Icon.stories.d.ts.map +1 -1
- package/dist/components/icon/Icon.stories.js +150 -102
- package/dist/components/icon/Icon.stories.js.map +1 -1
- package/dist/components/icon/Icon.test.js +146 -6
- package/dist/components/icon/Icon.test.js.map +1 -1
- package/dist/components/icon/LucideIcon.d.ts +17 -0
- package/dist/components/icon/LucideIcon.d.ts.map +1 -0
- package/dist/components/icon/LucideIcon.js +73 -0
- package/dist/components/icon/LucideIcon.js.map +1 -0
- package/dist/components/icon/allowedIcons.d.ts +44 -108
- package/dist/components/icon/allowedIcons.d.ts.map +1 -1
- package/dist/components/icon/allowedIcons.js +52 -112
- package/dist/components/icon/allowedIcons.js.map +1 -1
- package/dist/components/icon/types.d.ts +5 -4
- package/dist/components/icon/types.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/Tabs.stories.d.ts +1 -1
- package/dist/components/tabs/Tabs.stories.js +1 -1
- package/dist/components/tabs/Tabs.stories.js.map +1 -1
- package/dist/components/tabs/TabsItem.d.ts +2 -2
- package/dist/components/tabs/TabsItem.d.ts.map +1 -1
- package/dist/components/tabs/TabsItem.stories.d.ts +5 -5
- package/dist/components/tabs/TabsItem.stories.d.ts.map +1 -1
- package/dist/components/tabs/TabsItem.stories.js +7 -4
- package/dist/components/tabs/TabsItem.stories.js.map +1 -1
- package/dist/components/toggle/Toggle.d.ts +7 -1
- package/dist/components/toggle/Toggle.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.js +2 -2
- package/dist/components/toggle/Toggle.js.map +1 -1
- package/dist/components/toggle/Toggle.stories.d.ts +1 -1
- package/dist/index.css +21 -0
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/formField/FormField.stories.tsx +398 -7
- package/src/components/formField/FormField.test.tsx +100 -0
- package/src/components/formField/FormField.tsx +46 -27
- package/src/components/formField/inputs/checkbox/CheckboxGroup.tsx +3 -2
- package/src/components/formField/inputs/checkbox/CheckboxInput.tsx +3 -0
- package/src/components/formField/inputs/checkbox/checkboxInput.scss +4 -0
- package/src/components/formField/inputs/radio/RadioButtonGroup.tsx +11 -1
- package/src/components/formField/inputs/radio/radioButtonInput.scss +8 -0
- package/src/components/formField/inputs/selectDropdown/items/item/SelectDropdownItem.tsx +2 -2
- package/src/components/icon/Icon.stories.tsx +224 -119
- package/src/components/icon/Icon.test.tsx +178 -6
- package/src/components/icon/Icon.tsx +25 -3
- package/src/components/icon/LucideIcon.tsx +94 -0
- package/src/components/icon/allowedIcons.tsx +67 -207
- package/src/components/icon/lucideDynamic.d.ts +13 -0
- package/src/components/icon/types.ts +5 -4
- package/src/components/tabs/Tabs.stories.tsx +1 -1
- package/src/components/tabs/TabsItem.stories.tsx +8 -4
- package/src/components/tabs/TabsItem.tsx +2 -2
- package/src/components/toggle/Toggle.tsx +13 -3
- package/src/components/toggle/toggle.scss +22 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconName } from 'lucide-react/dynamic';
|
|
2
|
+
import type { CustomIconProps } from './types.js';
|
|
3
|
+
/** Every icon name published by `lucide-react`, kebab-cased. */
|
|
4
|
+
export type LucideIconName = IconName;
|
|
5
|
+
/** Every `lucide-react` icon name, for building galleries and validating input. */
|
|
6
|
+
export declare const lucideIconNames: readonly LucideIconName[];
|
|
7
|
+
export type LucideIconProps = CustomIconProps & {
|
|
8
|
+
name: LucideIconName;
|
|
9
|
+
fill?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Renders a single `lucide-react` icon, loading it on demand. Until the icon resolves an empty SVG
|
|
13
|
+
* of the same size is rendered in its place, so the surrounding layout does not shift and the
|
|
14
|
+
* element keeps its accessible role throughout.
|
|
15
|
+
*/
|
|
16
|
+
export declare const LucideIcon: (props: LucideIconProps) => import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=LucideIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LucideIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/LucideIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEtC,mFAAmF;AACnF,eAAO,MAAM,eAAe,EAAE,SAAS,cAAc,EAAc,CAAC;AAgEpE,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,gCAUhD,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useReducer } from 'react';
|
|
3
|
+
import { dynamicIconImports, iconNames } from 'lucide-react/dynamic.mjs';
|
|
4
|
+
/** Every `lucide-react` icon name, for building galleries and validating input. */
|
|
5
|
+
export const lucideIconNames = iconNames;
|
|
6
|
+
const iconLoaders = dynamicIconImports;
|
|
7
|
+
/**
|
|
8
|
+
* Icons resolve through `lucide-react`'s per-icon dynamic imports so that consumers only ship the
|
|
9
|
+
* icons they actually render, rather than all ~1,900 of them. Both caches are module-scoped: the
|
|
10
|
+
* first render of a given icon anywhere in the app pays the import, and every render after that —
|
|
11
|
+
* including new instances in other trees — resolves synchronously from `loadedIcons`.
|
|
12
|
+
*/
|
|
13
|
+
const loadedIcons = new Map();
|
|
14
|
+
const inFlightLoads = new Map();
|
|
15
|
+
const loadIcon = (name) => {
|
|
16
|
+
const inFlight = inFlightLoads.get(name);
|
|
17
|
+
if (inFlight) {
|
|
18
|
+
return inFlight;
|
|
19
|
+
}
|
|
20
|
+
// Annotated rather than inferred: names reaching `Icon` from a backend are not always valid.
|
|
21
|
+
const loader = iconLoaders[name];
|
|
22
|
+
if (!loader) {
|
|
23
|
+
console.error(`[design-system] "${name}" is not a known icon name.`);
|
|
24
|
+
// Cached so an unknown name is only reported once, however many times it is rendered.
|
|
25
|
+
const noSuchIcon = Promise.resolve();
|
|
26
|
+
inFlightLoads.set(name, noSuchIcon);
|
|
27
|
+
return noSuchIcon;
|
|
28
|
+
}
|
|
29
|
+
const load = loader()
|
|
30
|
+
.then((iconModule) => {
|
|
31
|
+
loadedIcons.set(name, iconModule.default);
|
|
32
|
+
})
|
|
33
|
+
.catch((error) => {
|
|
34
|
+
// Drop the rejected promise so a later render can retry (e.g. after a transient chunk 404).
|
|
35
|
+
inFlightLoads.delete(name);
|
|
36
|
+
console.error(`[design-system] Could not load the "${name}" icon.`, error);
|
|
37
|
+
});
|
|
38
|
+
inFlightLoads.set(name, load);
|
|
39
|
+
return load;
|
|
40
|
+
};
|
|
41
|
+
const useLucideIcon = (name) => {
|
|
42
|
+
const [, rerender] = useReducer((renderCount) => renderCount + 1, 0);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (loadedIcons.has(name)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
let isMounted = true;
|
|
48
|
+
void loadIcon(name).then(() => {
|
|
49
|
+
if (isMounted) {
|
|
50
|
+
rerender();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return () => {
|
|
54
|
+
isMounted = false;
|
|
55
|
+
};
|
|
56
|
+
}, [name]);
|
|
57
|
+
return loadedIcons.get(name);
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Renders a single `lucide-react` icon, loading it on demand. Until the icon resolves an empty SVG
|
|
61
|
+
* of the same size is rendered in its place, so the surrounding layout does not shift and the
|
|
62
|
+
* element keeps its accessible role throughout.
|
|
63
|
+
*/
|
|
64
|
+
export const LucideIcon = (props) => {
|
|
65
|
+
const { name, ...iconProps } = props;
|
|
66
|
+
const Component = useLucideIcon(name);
|
|
67
|
+
if (!Component) {
|
|
68
|
+
const { size, ...placeholderProps } = iconProps;
|
|
69
|
+
return _jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", ...placeholderProps });
|
|
70
|
+
}
|
|
71
|
+
return _jsx(Component, { ...iconProps });
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=LucideIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LucideIcon.js","sourceRoot":"","sources":["../../../src/components/icon/LucideIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAOzE,mFAAmF;AACnF,MAAM,CAAC,MAAM,eAAe,GAA8B,SAAS,CAAC;AAKpE,MAAM,WAAW,GAAiD,kBAAkB,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,GAAG,IAAI,GAAG,EAAuC,CAAC;AACnE,MAAM,aAAa,GAAG,IAAI,GAAG,EAAiC,CAAC;AAE/D,MAAM,QAAQ,GAAG,CAAC,IAAoB,EAAiB,EAAE;IACvD,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACzC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,6FAA6F;IAC7F,MAAM,MAAM,GAA2B,WAAW,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,6BAA6B,CAAC,CAAC;QAC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AAC,CAAC;IAEX,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC,CAAC;AAOF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACnD,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,EAAE,IAAI,EAAE,GAAG,gBAAgB,EAAE,GAAG,SAAS,CAAC;QAChD,OAAO,cAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,KAAK,gBAAgB,GAAI,CAAC;IACtF,CAAC;IAED,OAAO,KAAC,SAAS,OAAK,SAAS,GAAI,CAAC;AACtC,CAAC,CAAC"}
|
|
@@ -1,115 +1,51 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LucideIconName } from './LucideIcon.js';
|
|
2
2
|
import type { CustomIconProps } from './types.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
readonly '
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly 'cloud-upload': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
-
readonly copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
-
readonly 'corner-down-left': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
-
readonly date: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
-
readonly dot: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
-
readonly download: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
-
readonly 'ellipsis-vertical': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
40
|
-
readonly ellipsis: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
-
readonly expand: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
|
-
readonly 'external-link': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
|
-
readonly 'eye-off': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
-
readonly eye: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
|
-
readonly 'favourite-outline': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
-
readonly file: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
47
|
-
readonly files: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
48
|
-
readonly flag: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
49
|
-
readonly funnel: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
50
|
-
readonly grab: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
51
|
-
readonly 'graduation-cap': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
|
-
readonly 'grid-3x3': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
53
|
-
readonly group: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
|
-
readonly guardians: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
|
-
readonly history: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
56
|
-
readonly house: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
57
|
-
readonly info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
58
|
-
readonly 'iteration-ccw': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
59
|
-
readonly 'layout-list': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
60
|
-
readonly lightbulb: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
61
|
-
readonly link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
62
|
-
readonly 'list-filter-plus': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
63
|
-
readonly list: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
64
|
-
readonly 'list-tree': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
65
|
-
readonly loader: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
66
|
-
readonly 'lock-open': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
67
|
-
readonly lock: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
68
|
-
readonly 'log-out': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
69
|
-
readonly mail: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
70
|
-
readonly menu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
71
|
-
readonly 'message-square-more': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
72
|
-
readonly mic: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
73
|
-
readonly minus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
74
|
-
readonly monitor: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
75
|
-
readonly 'paint-bucket': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
76
|
-
readonly paperclip: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
77
|
-
readonly 'party-popper': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
78
|
-
readonly pencil: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
79
|
-
readonly percent: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
80
|
-
readonly phone: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
81
|
-
readonly pin: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
82
|
-
readonly plus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
83
|
-
readonly projector: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
84
|
-
readonly redo: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
85
|
-
readonly save: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
86
|
-
readonly search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
87
|
-
readonly send: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
88
|
-
readonly settings: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
89
|
-
readonly share: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
90
|
-
readonly sheet: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
91
|
-
readonly shrink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
92
|
-
readonly 'sliders-horizontal': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
93
|
-
readonly smartphone: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
94
|
-
readonly sorting: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
95
|
-
readonly sparkles: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
96
|
-
readonly staff: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
97
|
-
readonly 'switch-camera': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
98
|
-
readonly table: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
99
|
-
readonly trash: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
100
|
-
readonly 'trending-down': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
101
|
-
readonly 'trending-up': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
102
|
-
readonly 'triangle-alert': import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
103
|
-
readonly undo: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
104
|
-
readonly upload: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
105
|
-
readonly user: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
106
|
-
readonly x: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
107
|
-
readonly zap: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
3
|
+
/**
|
|
4
|
+
* Arbor names that point at a differently-named Lucide icon. These take precedence over the Lucide
|
|
5
|
+
* name they shadow, so `trash` stays the lidded can (`trash-2`) rather than Lucide's plain `trash`.
|
|
6
|
+
* Seven of these — `grab`, `group`, `loader`, `redo`, `shrink`, `trash` and `undo` — shadow a real
|
|
7
|
+
* Lucide icon with a different glyph, which is deliberate: renaming them would break every existing
|
|
8
|
+
* consumer. Reach for the target name directly if you want Lucide's version.
|
|
9
|
+
*
|
|
10
|
+
* The `satisfies` clause makes every target a compile-time-checked Lucide icon name.
|
|
11
|
+
*/
|
|
12
|
+
export declare const iconAliases: {
|
|
13
|
+
readonly '3-dot': "ellipsis-vertical";
|
|
14
|
+
readonly 'circle-help': "circle-question-mark";
|
|
15
|
+
readonly date: "calendar-fold";
|
|
16
|
+
readonly 'favourite-outline': "star";
|
|
17
|
+
readonly grab: "grip-vertical";
|
|
18
|
+
readonly group: "users-round";
|
|
19
|
+
readonly guardians: "users";
|
|
20
|
+
readonly loader: "loader-circle";
|
|
21
|
+
readonly redo: "redo-2";
|
|
22
|
+
readonly shrink: "minimize-2";
|
|
23
|
+
readonly sorting: "arrow-down-up";
|
|
24
|
+
readonly staff: "graduation-cap";
|
|
25
|
+
readonly trash: "trash-2";
|
|
26
|
+
readonly undo: "undo-2";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Icons that are not plain Lucide glyphs: Arbor-specific artwork, and the solid variants built for
|
|
30
|
+
* particular semantic emphasis states.
|
|
31
|
+
*/
|
|
32
|
+
export declare const customIcons: {
|
|
108
33
|
readonly 'ask-arbor': (props: CustomIconProps) => import("react").JSX.Element;
|
|
109
34
|
readonly google: (props: CustomIconProps) => import("react").JSX.Element;
|
|
110
35
|
readonly 'check-solid': (props: CustomIconProps) => import("react").JSX.Element;
|
|
111
|
-
readonly 'favourite-filled': (props:
|
|
36
|
+
readonly 'favourite-filled': (props: CustomIconProps) => import("react").JSX.Element;
|
|
112
37
|
readonly 'x-solid': (props: CustomIconProps) => import("react").JSX.Element;
|
|
113
38
|
};
|
|
114
|
-
export type IconName = keyof typeof
|
|
39
|
+
export type IconName = LucideIconName | keyof typeof iconAliases | keyof typeof customIcons;
|
|
40
|
+
/** Every name `Icon` accepts: the whole Lucide set, plus Arbor's aliases and custom icons. */
|
|
41
|
+
export declare const iconNames: readonly IconName[];
|
|
42
|
+
/**
|
|
43
|
+
* The `Icon` name allow-list, as a plain object so that membership can be tested with
|
|
44
|
+
* `hasOwnProperty`. Prefer {@link isIconName}; the values carry no meaning and exist only to make
|
|
45
|
+
* this a record. Icon components are no longer held here — they are loaded on demand, so nothing
|
|
46
|
+
* outside a render has a component to hand out.
|
|
47
|
+
*/
|
|
48
|
+
export declare const allowedIcons: Readonly<Record<IconName, true>>;
|
|
49
|
+
/** Narrows an arbitrary string to an `IconName`, for validating names that come from a backend. */
|
|
50
|
+
export declare const isIconName: (name: string) => name is IconName;
|
|
115
51
|
//# sourceMappingURL=allowedIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowedIcons.d.ts","sourceRoot":"","sources":["../../../src/components/icon/allowedIcons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"allowedIcons.d.ts","sourceRoot":"","sources":["../../../src/components/icon/allowedIcons.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAeqC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;yCAIM,eAAe;;CAIuC,CAAC;AAErF,MAAM,MAAM,QAAQ,GACd,cAAc,GACd,MAAM,OAAO,WAAW,GACxB,MAAM,OAAO,WAAW,CAAC;AAM/B,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,SAAS,QAAQ,EAIxC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAEpB,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AAEtC,mGAAmG;AACnG,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,QACQ,CAAC"}
|
|
@@ -1,121 +1,61 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { LucideIcon, lucideIconNames } from './LucideIcon.js';
|
|
3
3
|
import { AskArbor } from './customIcons/AskArbor.js';
|
|
4
4
|
import { CheckSolid } from './customIcons/CheckSolid.js';
|
|
5
5
|
import { Google } from './customIcons/Google.js';
|
|
6
6
|
import { XSolid } from './customIcons/XSolid.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'clock-3': Clock3,
|
|
38
|
-
'cloud-upload': CloudUpload,
|
|
39
|
-
'copy': Copy,
|
|
40
|
-
'corner-down-left': CornerDownLeft,
|
|
41
|
-
'date': CalendarFold,
|
|
42
|
-
'dot': Dot,
|
|
43
|
-
'download': Download,
|
|
44
|
-
'ellipsis-vertical': EllipsisVertical,
|
|
45
|
-
'ellipsis': Ellipsis,
|
|
46
|
-
'expand': Expand,
|
|
47
|
-
'external-link': ExternalLink,
|
|
48
|
-
'eye-off': EyeOff,
|
|
49
|
-
'eye': Eye,
|
|
50
|
-
'favourite-outline': Star,
|
|
51
|
-
'file': File,
|
|
52
|
-
'files': Files,
|
|
53
|
-
'flag': Flag,
|
|
54
|
-
'funnel': Funnel,
|
|
55
|
-
'grab': GripVertical,
|
|
56
|
-
'graduation-cap': GraduationCap,
|
|
57
|
-
'grid-3x3': Grid3x3,
|
|
58
|
-
'group': UsersRound,
|
|
59
|
-
'guardians': Users,
|
|
60
|
-
'history': History,
|
|
61
|
-
'house': House,
|
|
62
|
-
'info': Info,
|
|
63
|
-
'iteration-ccw': IterationCcw,
|
|
64
|
-
'layout-list': LayoutList,
|
|
65
|
-
'lightbulb': Lightbulb,
|
|
66
|
-
'link': Link,
|
|
67
|
-
'list-filter-plus': ListFilterPlus,
|
|
68
|
-
'list': List,
|
|
69
|
-
'list-tree': ListTree,
|
|
70
|
-
'loader': LoaderCircle,
|
|
71
|
-
'lock-open': LockOpen,
|
|
72
|
-
'lock': Lock,
|
|
73
|
-
'log-out': LogOut,
|
|
74
|
-
'mail': Mail,
|
|
75
|
-
'menu': Menu,
|
|
76
|
-
'message-square-more': MessageSquareMore,
|
|
77
|
-
'mic': Mic,
|
|
78
|
-
'minus': Minus,
|
|
79
|
-
'monitor': Monitor,
|
|
80
|
-
'paint-bucket': PaintBucket,
|
|
81
|
-
'paperclip': Paperclip,
|
|
82
|
-
'party-popper': PartyPopper,
|
|
83
|
-
'pencil': Pencil,
|
|
84
|
-
'percent': Percent,
|
|
85
|
-
'phone': Phone,
|
|
86
|
-
'pin': Pin,
|
|
87
|
-
'plus': Plus,
|
|
88
|
-
'projector': Projector,
|
|
89
|
-
'redo': Redo2,
|
|
90
|
-
'save': Save,
|
|
91
|
-
'search': Search,
|
|
92
|
-
'send': Send,
|
|
93
|
-
'settings': Settings,
|
|
94
|
-
'share': Share,
|
|
95
|
-
'sheet': Sheet,
|
|
96
|
-
'shrink': Minimize2,
|
|
97
|
-
'sliders-horizontal': SlidersHorizontal,
|
|
98
|
-
'smartphone': Smartphone,
|
|
99
|
-
'sorting': ArrowDownUp,
|
|
100
|
-
'sparkles': Sparkles,
|
|
101
|
-
'staff': GraduationCap,
|
|
102
|
-
'switch-camera': SwitchCamera,
|
|
103
|
-
'table': Table,
|
|
104
|
-
'trash': Trash2,
|
|
105
|
-
'trending-down': TrendingDown,
|
|
106
|
-
'trending-up': TrendingUp,
|
|
107
|
-
'triangle-alert': TriangleAlert,
|
|
108
|
-
'undo': Undo2,
|
|
109
|
-
'upload': Upload,
|
|
110
|
-
'user': User,
|
|
111
|
-
'x': X,
|
|
112
|
-
'zap': Zap,
|
|
113
|
-
// custom icons
|
|
7
|
+
/**
|
|
8
|
+
* Arbor names that point at a differently-named Lucide icon. These take precedence over the Lucide
|
|
9
|
+
* name they shadow, so `trash` stays the lidded can (`trash-2`) rather than Lucide's plain `trash`.
|
|
10
|
+
* Seven of these — `grab`, `group`, `loader`, `redo`, `shrink`, `trash` and `undo` — shadow a real
|
|
11
|
+
* Lucide icon with a different glyph, which is deliberate: renaming them would break every existing
|
|
12
|
+
* consumer. Reach for the target name directly if you want Lucide's version.
|
|
13
|
+
*
|
|
14
|
+
* The `satisfies` clause makes every target a compile-time-checked Lucide icon name.
|
|
15
|
+
*/
|
|
16
|
+
export const iconAliases = {
|
|
17
|
+
'3-dot': 'ellipsis-vertical',
|
|
18
|
+
'circle-help': 'circle-question-mark',
|
|
19
|
+
'date': 'calendar-fold',
|
|
20
|
+
'favourite-outline': 'star',
|
|
21
|
+
'grab': 'grip-vertical',
|
|
22
|
+
'group': 'users-round',
|
|
23
|
+
'guardians': 'users',
|
|
24
|
+
'loader': 'loader-circle',
|
|
25
|
+
'redo': 'redo-2',
|
|
26
|
+
'shrink': 'minimize-2',
|
|
27
|
+
'sorting': 'arrow-down-up',
|
|
28
|
+
'staff': 'graduation-cap',
|
|
29
|
+
'trash': 'trash-2',
|
|
30
|
+
'undo': 'undo-2',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Icons that are not plain Lucide glyphs: Arbor-specific artwork, and the solid variants built for
|
|
34
|
+
* particular semantic emphasis states.
|
|
35
|
+
*/
|
|
36
|
+
export const customIcons = {
|
|
114
37
|
'ask-arbor': AskArbor,
|
|
115
38
|
'google': Google,
|
|
116
|
-
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'x-solid': (props) => _jsx(XSolid, { ...props }),
|
|
39
|
+
'check-solid': CheckSolid,
|
|
40
|
+
'favourite-filled': (props) => (_jsx(LucideIcon, { name: "star", ...props, fill: props.color })),
|
|
41
|
+
'x-solid': XSolid,
|
|
120
42
|
};
|
|
43
|
+
// `Object.keys` widens to `string[]`, so the key unions are reasserted here.
|
|
44
|
+
const aliasNames = Object.keys(iconAliases);
|
|
45
|
+
const customIconNames = Object.keys(customIcons);
|
|
46
|
+
/** Every name `Icon` accepts: the whole Lucide set, plus Arbor's aliases and custom icons. */
|
|
47
|
+
export const iconNames = [
|
|
48
|
+
...lucideIconNames,
|
|
49
|
+
...aliasNames,
|
|
50
|
+
...customIconNames,
|
|
51
|
+
];
|
|
52
|
+
/**
|
|
53
|
+
* The `Icon` name allow-list, as a plain object so that membership can be tested with
|
|
54
|
+
* `hasOwnProperty`. Prefer {@link isIconName}; the values carry no meaning and exist only to make
|
|
55
|
+
* this a record. Icon components are no longer held here — they are loaded on demand, so nothing
|
|
56
|
+
* outside a render has a component to hand out.
|
|
57
|
+
*/
|
|
58
|
+
export const allowedIcons = Object.freeze(Object.fromEntries(iconNames.map(name => [name, true])));
|
|
59
|
+
/** Narrows an arbitrary string to an `IconName`, for validating names that come from a backend. */
|
|
60
|
+
export const isIconName = (name) => Object.prototype.hasOwnProperty.call(allowedIcons, name);
|
|
121
61
|
//# sourceMappingURL=allowedIcons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowedIcons.js","sourceRoot":"","sources":["../../../src/components/icon/allowedIcons.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"allowedIcons.js","sourceRoot":"","sources":["../../../src/components/icon/allowedIcons.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAuB,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,mBAAmB;IAC5B,aAAa,EAAE,sBAAsB;IACrC,MAAM,EAAE,eAAe;IACvB,mBAAmB,EAAE,MAAM;IAC3B,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,eAAe;IACzB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CAC2C,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,UAAU;IACzB,kBAAkB,EAAE,CAAC,KAAsB,EAAE,EAAE,CAAC,CAC9C,KAAC,UAAU,IAAC,IAAI,EAAC,MAAM,KAAK,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,GAAI,CACzD;IACD,SAAS,EAAE,MAAM;CACiE,CAAC;AAOrF,6EAA6E;AAC7E,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAA4C,CAAC;AACvF,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAA4C,CAAC;AAE5F,8FAA8F;AAC9F,MAAM,CAAC,MAAM,SAAS,GAAwB;IAC5C,GAAG,eAAe;IAClB,GAAG,UAAU;IACb,GAAG,eAAe;CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CACvC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,CAAC;AAEtC,mGAAmG;AACnG,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAoB,EAAE,CAC3D,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const iconSizes: readonly [12, 16, 24];
|
|
2
2
|
export type IconSize = typeof iconSizes[number];
|
|
3
3
|
export type CustomIconProps = {
|
|
4
|
-
size: IconSize;
|
|
5
|
-
color?: string;
|
|
6
|
-
role?: string;
|
|
7
|
-
className?: string;
|
|
4
|
+
'size': IconSize;
|
|
5
|
+
'color'?: string;
|
|
6
|
+
'role'?: string;
|
|
7
|
+
'className'?: string;
|
|
8
|
+
'aria-hidden'?: boolean;
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/icon/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,uBAAwB,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/icon/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,uBAAwB,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare const Tabs: {
|
|
|
5
5
|
}): import("react").JSX.Element;
|
|
6
6
|
Item: (props: {
|
|
7
7
|
active?: boolean;
|
|
8
|
-
iconName?:
|
|
8
|
+
iconName?: import("../icon/allowedIcons.js").IconName;
|
|
9
9
|
} & (({
|
|
10
10
|
tabElement?: "button";
|
|
11
11
|
tabElementProps?: import("react").ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
}): import("react").JSX.Element;
|
|
9
9
|
Item: (props: {
|
|
10
10
|
active?: boolean;
|
|
11
|
-
iconName?:
|
|
11
|
+
iconName?: import("../icon/allowedIcons.js").IconName;
|
|
12
12
|
} & (({
|
|
13
13
|
tabElement?: "button";
|
|
14
14
|
tabElementProps?: import("react").ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -95,7 +95,7 @@ const DEVELOPER_NOTES = [
|
|
|
95
95
|
'| `active` | `boolean` | `false` | Marks this tab as selected — sets `aria-selected` and active styles |',
|
|
96
96
|
'| `tabElement` | `"button" \\| "link"` | `"button"` | Inner element type. `"button"` for JS-controlled tabs; `"link"` for anchor/router navigation |',
|
|
97
97
|
'| `tabElementProps` | `ButtonHTMLAttributes` or `AnchorHTMLAttributes` | — | Props forwarded to the inner `<button>` or `<a>`. Use `onClick` for state control; `href` for links |',
|
|
98
|
-
'| `iconName` | `
|
|
98
|
+
'| `iconName` | `IconName` | — | Optional icon rendered before the label text (16 px) |',
|
|
99
99
|
'| `children` | `ReactNode` | — | Tab label text |',
|
|
100
100
|
'| `className` | `string` | — | Extra CSS class on the `<li>` wrapper |',
|
|
101
101
|
'',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG;IACxB,uFAAuF;IACvF,8EAA8E;IAC9E,yGAAyG;CAC1G,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,cAAc,GAAG;IACrB,iBAAiB;IACjB,EAAE;IACF,wGAAwG;IACxG,gGAAgG;IAChG,oGAAoG;IACpG,EAAE;IACF,KAAK;IACL,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,6BAA6B;IAC7B,WAAW;IACX,+FAA+F;IAC/F,2HAA2H;CAC5H,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG;IACtB,8BAA8B;IAC9B,EAAE;IACF,4DAA4D;IAC5D,EAAE;IACF,QAAQ;IACR,mEAAmE;IACnE,mCAAmC;IACnC,EAAE;IACF,wBAAwB;IACxB,qDAAqD;IACrD,EAAE;IACF,YAAY;IACZ,YAAY;IACZ,6GAA6G;IAC7G,kBAAkB;IAClB,oBAAoB;IACpB,2GAA2G;IAC3G,iBAAiB;IACjB,oBAAoB;IACpB,iHAAiH;IACjH,oBAAoB;IACpB,oBAAoB;IACpB,aAAa;IACb,MAAM;IACN,GAAG;IACH,KAAK;IACL,EAAE;IACF,KAAK;IACL,EAAE;IACF,mCAAmC;IACnC,EAAE;IACF,iEAAiE;IACjE,4EAA4E;IAC5E,EAAE;IACF,QAAQ;IACR,QAAQ;IACR,uFAAuF;IACvF,cAAc;IACd,gBAAgB;IAChB,+EAA+E;IAC/E,aAAa;IACb,gBAAgB;IAChB,SAAS;IACT,KAAK;IACL,EAAE;IACF,6FAA6F;IAC7F,gGAAgG;IAChG,EAAE;IACF,KAAK;IACL,EAAE;IACF,yBAAyB;IACzB,EAAE;IACF,aAAa;IACb,EAAE;IACF,iEAAiE;IACjE,EAAE;IACF,yCAAyC;IACzC,mBAAmB;IACnB,yDAAyD;IACzD,gEAAgE;IAChE,EAAE;IACF,kBAAkB;IAClB,EAAE;IACF,yCAAyC;IACzC,mBAAmB;IACnB,0GAA0G;IAC1G,sJAAsJ;IACtJ,oLAAoL;IACpL,
|
|
1
|
+
{"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,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AAqG;IACrG,wGAAwG;CACzG,CAAC,IAAI,CAAC,GAAG,CAAC,CACZ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IconName } from '../icon/allowedIcons.js';
|
|
2
2
|
import type { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
3
|
type TabsItemProps = {
|
|
4
4
|
active?: boolean;
|
|
5
|
-
iconName?:
|
|
5
|
+
iconName?: IconName;
|
|
6
6
|
} & ({
|
|
7
7
|
tabElement?: 'button';
|
|
8
8
|
tabElementProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/TabsItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TabsItem.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/TabsItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExF,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,GAAG,CACA;IAAE,UAAU,CAAC,EAAE,QAAQ,CAAC;IAAC,eAAe,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;CAAE,GACpF;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;CAAE,CACnF,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAEpC,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,gCA4B5C,CAAC"}
|