@yanolja-next/design-core 0.0.1 → 0.1.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/AGENTS.md +37 -0
- package/README.md +145 -1
- package/RULES.md +470 -0
- package/catalog.json +1345 -0
- package/dist/catalog.d.ts +11 -0
- package/dist/components/button/ActionRow.d.ts +2 -0
- package/dist/components/button/Button.d.ts +20 -0
- package/dist/components/button/ButtonLink.d.ts +9 -0
- package/dist/components/button/CopyBox.d.ts +7 -0
- package/dist/components/button/CopyButton.d.ts +6 -0
- package/dist/components/button/CopyText.d.ts +10 -0
- package/dist/components/button/ExpandToggle.d.ts +8 -0
- package/dist/components/button/GoLink.d.ts +11 -0
- package/dist/components/button/TextButton.d.ts +3 -0
- package/dist/components/button/ToolButton.d.ts +7 -0
- package/dist/components/button/index.d.ts +19 -0
- package/dist/components/data/card/Card.d.ts +31 -0
- package/dist/components/data/card/index.d.ts +2 -0
- package/dist/components/data/change-group/ChangeGroup.d.ts +10 -0
- package/dist/components/data/change-group/MarkList.d.ts +12 -0
- package/dist/components/data/change-group/index.d.ts +4 -0
- package/dist/components/data/clip-text/ClipText.d.ts +6 -0
- package/dist/components/data/clip-text/index.d.ts +2 -0
- package/dist/components/data/collection-filter/CollectionFilter.d.ts +19 -0
- package/dist/components/data/collection-filter/ToolbarDivider.d.ts +2 -0
- package/dist/components/data/collection-filter/index.d.ts +3 -0
- package/dist/components/data/container/Container.d.ts +26 -0
- package/dist/components/data/container/SectionStack.d.ts +2 -0
- package/dist/components/data/container/index.d.ts +3 -0
- package/dist/components/data/disclosure/Disclosure.d.ts +10 -0
- package/dist/components/data/disclosure/index.d.ts +2 -0
- package/dist/components/data/divided/Divided.d.ts +2 -0
- package/dist/components/data/divided/index.d.ts +1 -0
- package/dist/components/data/empty-state/EmptyState.d.ts +16 -0
- package/dist/components/data/empty-state/index.d.ts +2 -0
- package/dist/components/data/facts/Facts.d.ts +11 -0
- package/dist/components/data/facts/index.d.ts +2 -0
- package/dist/components/data/fail-state/FailLine.d.ts +5 -0
- package/dist/components/data/fail-state/FailState.d.ts +11 -0
- package/dist/components/data/fail-state/index.d.ts +4 -0
- package/dist/components/data/figures/Figures.d.ts +30 -0
- package/dist/components/data/figures/index.d.ts +2 -0
- package/dist/components/data/index.d.ts +38 -0
- package/dist/components/data/info-panel/InfoPanel.d.ts +22 -0
- package/dist/components/data/info-panel/index.d.ts +2 -0
- package/dist/components/data/inline-list/InlineList.d.ts +5 -0
- package/dist/components/data/inline-list/index.d.ts +2 -0
- package/dist/components/data/key-value/KeyValue.d.ts +7 -0
- package/dist/components/data/key-value/KeyValueColumns.d.ts +10 -0
- package/dist/components/data/key-value/index.d.ts +4 -0
- package/dist/components/data/lines/Lines.d.ts +6 -0
- package/dist/components/data/lines/index.d.ts +2 -0
- package/dist/components/data/link-card/LinkCard.d.ts +22 -0
- package/dist/components/data/link-card/index.d.ts +2 -0
- package/dist/components/data/machine-text/MachineText.d.ts +6 -0
- package/dist/components/data/machine-text/index.d.ts +2 -0
- package/dist/components/data/meta/Meta.d.ts +7 -0
- package/dist/components/data/meta/index.d.ts +2 -0
- package/dist/components/data/metric-strip/MetricStrip.d.ts +17 -0
- package/dist/components/data/metric-strip/index.d.ts +2 -0
- package/dist/components/data/more-text/MoreText.d.ts +8 -0
- package/dist/components/data/more-text/index.d.ts +2 -0
- package/dist/components/data/name-text/NameText.d.ts +4 -0
- package/dist/components/data/name-text/index.d.ts +2 -0
- package/dist/components/data/note/Note.d.ts +7 -0
- package/dist/components/data/note/index.d.ts +2 -0
- package/dist/components/data/page-foot/PageFoot.d.ts +3 -0
- package/dist/components/data/page-foot/index.d.ts +1 -0
- package/dist/components/data/pagination/Pagination.d.ts +10 -0
- package/dist/components/data/pagination/index.d.ts +2 -0
- package/dist/components/data/pick-list/PickList.d.ts +24 -0
- package/dist/components/data/pick-list/index.d.ts +2 -0
- package/dist/components/data/prose/PlainText.d.ts +3 -0
- package/dist/components/data/prose/Prose.d.ts +3 -0
- package/dist/components/data/prose/index.d.ts +4 -0
- package/dist/components/data/rail/Rail.d.ts +30 -0
- package/dist/components/data/rail/index.d.ts +1 -0
- package/dist/components/data/skeleton/Skeleton.d.ts +48 -0
- package/dist/components/data/skeleton/index.d.ts +2 -0
- package/dist/components/data/skeleton/placeholder.d.ts +13 -0
- package/dist/components/data/split-panes/SplitPanes.d.ts +3 -0
- package/dist/components/data/split-panes/index.d.ts +2 -0
- package/dist/components/data/steps/Steps.d.ts +10 -0
- package/dist/components/data/steps/index.d.ts +2 -0
- package/dist/components/data/sub-head/SubHead.d.ts +6 -0
- package/dist/components/data/sub-head/index.d.ts +2 -0
- package/dist/components/data/table/Table.d.ts +95 -0
- package/dist/components/data/table/TableClip.d.ts +6 -0
- package/dist/components/data/table/TableMore.d.ts +2 -0
- package/dist/components/data/table/TableSkeleton.d.ts +20 -0
- package/dist/components/data/table/TableSubLine.d.ts +8 -0
- package/dist/components/data/table/index.d.ts +9 -0
- package/dist/components/data/tabs/Tabs.d.ts +14 -0
- package/dist/components/data/tabs/index.d.ts +2 -0
- package/dist/components/data/term-list/TermList.d.ts +10 -0
- package/dist/components/data/term-list/index.d.ts +2 -0
- package/dist/components/data/url-text/UrlText.d.ts +11 -0
- package/dist/components/data/url-text/index.d.ts +2 -0
- package/dist/components/data/usage-bar/UsageBar.d.ts +19 -0
- package/dist/components/data/usage-bar/index.d.ts +2 -0
- package/dist/components/data/veiled/Veiled.d.ts +6 -0
- package/dist/components/data/veiled/index.d.ts +2 -0
- package/dist/components/data/warn-line/WarnLine.d.ts +6 -0
- package/dist/components/data/warn-line/index.d.ts +2 -0
- package/dist/components/forms/badge/Badge.d.ts +10 -0
- package/dist/components/forms/badge/index.d.ts +2 -0
- package/dist/components/forms/checkbox/Checkbox.d.ts +18 -0
- package/dist/components/forms/checkbox/index.d.ts +2 -0
- package/dist/components/forms/chip/Chip.d.ts +14 -0
- package/dist/components/forms/chip/ChipList.d.ts +2 -0
- package/dist/components/forms/chip/index.d.ts +3 -0
- package/dist/components/forms/code-input/CodeInput.d.ts +8 -0
- package/dist/components/forms/code-input/index.d.ts +2 -0
- package/dist/components/forms/combobox/Combobox.d.ts +28 -0
- package/dist/components/forms/combobox/index.d.ts +2 -0
- package/dist/components/forms/control.d.ts +6 -0
- package/dist/components/forms/field/Field.d.ts +32 -0
- package/dist/components/forms/field/index.d.ts +2 -0
- package/dist/components/forms/field-group/FieldGroup.d.ts +6 -0
- package/dist/components/forms/field-group/index.d.ts +2 -0
- package/dist/components/forms/form/Form.d.ts +2 -0
- package/dist/components/forms/form/index.d.ts +1 -0
- package/dist/components/forms/form-actions/FormActions.d.ts +5 -0
- package/dist/components/forms/form-actions/index.d.ts +2 -0
- package/dist/components/forms/index.d.ts +16 -0
- package/dist/components/forms/input/Input.d.ts +12 -0
- package/dist/components/forms/input/index.d.ts +2 -0
- package/dist/components/forms/radio/Radio.d.ts +10 -0
- package/dist/components/forms/radio/index.d.ts +2 -0
- package/dist/components/forms/segmented/Segmented.d.ts +20 -0
- package/dist/components/forms/segmented/index.d.ts +2 -0
- package/dist/components/forms/select/Select.d.ts +30 -0
- package/dist/components/forms/select/SelectText.d.ts +2 -0
- package/dist/components/forms/select/index.d.ts +3 -0
- package/dist/components/forms/status-indicator/StatusIndicator.d.ts +12 -0
- package/dist/components/forms/status-indicator/index.d.ts +2 -0
- package/dist/components/forms/switch/Switch.d.ts +7 -0
- package/dist/components/forms/switch/index.d.ts +2 -0
- package/dist/components/forms/textarea/Textarea.d.ts +5 -0
- package/dist/components/forms/textarea/index.d.ts +2 -0
- package/dist/components/icon/Icon.d.ts +10 -0
- package/dist/components/icon/SwapIcon.d.ts +2 -0
- package/dist/components/icon/icons.d.ts +286 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/link/Link.d.ts +12 -0
- package/dist/components/link/TextLink.d.ts +8 -0
- package/dist/components/link/index.d.ts +4 -0
- package/dist/components/overlay/index.d.ts +6 -0
- package/dist/components/overlay/menu/Menu.d.ts +36 -0
- package/dist/components/overlay/menu/index.d.ts +2 -0
- package/dist/components/overlay/modal/ConfirmModal.d.ts +15 -0
- package/dist/components/overlay/modal/Modal.d.ts +34 -0
- package/dist/components/overlay/modal/PanelHeader.d.ts +32 -0
- package/dist/components/overlay/modal/index.d.ts +5 -0
- package/dist/components/overlay/popover/Popover.d.ts +23 -0
- package/dist/components/overlay/popover/index.d.ts +2 -0
- package/dist/components/overlay/sheet/Sheet.d.ts +31 -0
- package/dist/components/overlay/sheet/index.d.ts +2 -0
- package/dist/components/overlay/toast/Toast.d.ts +20 -0
- package/dist/components/overlay/toast/index.d.ts +2 -0
- package/dist/components/overlay/tooltip/InfoTip.d.ts +8 -0
- package/dist/components/overlay/tooltip/TipText.d.ts +6 -0
- package/dist/components/overlay/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/overlay/tooltip/index.d.ts +6 -0
- package/dist/components/reason/LockedPreview.d.ts +2 -0
- package/dist/components/reason/WithReason.d.ts +10 -0
- package/dist/components/reason/index.d.ts +3 -0
- package/dist/components/shell/app-shell/AppShell.d.ts +7 -0
- package/dist/components/shell/app-shell/index.d.ts +4 -0
- package/dist/components/shell/app-shell/sideNav.d.ts +12 -0
- package/dist/components/shell/drawer/Drawer.d.ts +36 -0
- package/dist/components/shell/drawer/index.d.ts +2 -0
- package/dist/components/shell/help-panel/HelpPanel.d.ts +33 -0
- package/dist/components/shell/help-panel/index.d.ts +2 -0
- package/dist/components/shell/index.d.ts +12 -0
- package/dist/components/shell/match/Keycap.d.ts +2 -0
- package/dist/components/shell/match/MatchText.d.ts +4 -0
- package/dist/components/shell/page-head/HeadMore.d.ts +15 -0
- package/dist/components/shell/page-head/PageHead.d.ts +39 -0
- package/dist/components/shell/page-head/index.d.ts +6 -0
- package/dist/components/shell/page-head/pagePath.d.ts +10 -0
- package/dist/components/shell/rank.d.ts +1 -0
- package/dist/components/shell/sidebar/Sidebar.d.ts +40 -0
- package/dist/components/shell/sidebar/index.d.ts +2 -0
- package/dist/components/shell/sign-in-card/SignInCard.d.ts +29 -0
- package/dist/components/shell/sign-in-card/index.d.ts +2 -0
- package/dist/components/shell/slash.d.ts +3 -0
- package/dist/components/shell/standalone-panel/StandalonePanel.d.ts +6 -0
- package/dist/components/shell/standalone-panel/index.d.ts +2 -0
- package/dist/components/shell/topbar/Topbar.d.ts +76 -0
- package/dist/components/shell/topbar/index.d.ts +2 -0
- package/dist/components/viz/chart/BarChart.d.ts +6 -0
- package/dist/components/viz/chart/ChartFrame.d.ts +34 -0
- package/dist/components/viz/chart/ChartHead.d.ts +9 -0
- package/dist/components/viz/chart/ChartLegend.d.ts +17 -0
- package/dist/components/viz/chart/ChartSkeleton.d.ts +6 -0
- package/dist/components/viz/chart/LineChart.d.ts +6 -0
- package/dist/components/viz/chart/Sparkline.d.ts +14 -0
- package/dist/components/viz/chart/TimeSeriesChart.d.ts +7 -0
- package/dist/components/viz/chart/bubble.d.ts +1 -0
- package/dist/components/viz/chart/index.d.ts +16 -0
- package/dist/components/viz/chart/layout.d.ts +212 -0
- package/dist/components/viz/chart/timeSeries.d.ts +44 -0
- package/dist/components/viz/code-block/CodeBlock.d.ts +18 -0
- package/dist/components/viz/code-block/index.d.ts +2 -0
- package/dist/components/viz/index.d.ts +2 -0
- package/dist/i18n/en.d.ts +88 -0
- package/dist/i18n/index.d.ts +15 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +10142 -0
- package/dist/lib/afterPress.d.ts +1 -0
- package/dist/lib/arrival.d.ts +3 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/copied.d.ts +5 -0
- package/dist/lib/floating.d.ts +5 -0
- package/dist/lib/focusAfter.d.ts +2 -0
- package/dist/lib/hit.d.ts +1 -0
- package/dist/lib/level.d.ts +1 -0
- package/dist/lib/media.d.ts +3 -0
- package/dist/lib/motion.d.ts +20 -0
- package/dist/lib/pageScroll.d.ts +6 -0
- package/dist/lib/scrollbar.d.ts +1 -0
- package/dist/styles.css +2 -0
- package/llms.txt +201 -0
- package/package.json +69 -5
- package/skill/SKILL.md +38 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface FieldProps {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
help?: ReactNode;
|
|
5
|
+
helpAction?: ReactNode;
|
|
6
|
+
action?: ReactNode;
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
disabledReason?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function Field({ label, help, helpAction, action, error, required, disabled, disabledReason, id, className, children, }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
interface ControlProps {
|
|
17
|
+
id?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
'aria-describedby'?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function useFieldControl({ invalid, ...props }: ControlProps): {
|
|
24
|
+
id: string | undefined;
|
|
25
|
+
disabled: boolean | undefined;
|
|
26
|
+
required: boolean | undefined;
|
|
27
|
+
'aria-describedby': string | undefined;
|
|
28
|
+
'aria-invalid': true | undefined;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function FieldError({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldsetHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface FieldGroupProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
3
|
+
legend: ReactNode;
|
|
4
|
+
note?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function FieldGroup({ legend, note, className, children, ...props }: FieldGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Form } from './Form';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface FormActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
status?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function FormActions({ status, className, children, ...props }: FormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './badge';
|
|
2
|
+
export * from './checkbox';
|
|
3
|
+
export * from './chip';
|
|
4
|
+
export * from './code-input';
|
|
5
|
+
export * from './combobox';
|
|
6
|
+
export * from './field';
|
|
7
|
+
export * from './field-group';
|
|
8
|
+
export * from './form';
|
|
9
|
+
export * from './form-actions';
|
|
10
|
+
export * from './input';
|
|
11
|
+
export * from './radio';
|
|
12
|
+
export * from './segmented';
|
|
13
|
+
export * from './select';
|
|
14
|
+
export * from './status-indicator';
|
|
15
|
+
export * from './switch';
|
|
16
|
+
export * from './textarea';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { IconName } from '../../icon';
|
|
3
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'size'> {
|
|
4
|
+
size?: 'default' | 'lg';
|
|
5
|
+
icon?: IconName;
|
|
6
|
+
prefix?: string;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
mono?: boolean;
|
|
9
|
+
invalid?: boolean;
|
|
10
|
+
pill?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Input({ icon, prefix, suffix, mono, invalid, pill, size, className, id, disabled, required, style, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
export type RadioGroupProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
4
|
+
export declare function RadioGroup({ className, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export interface RadioProps extends ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
disabledReason?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Radio({ children, description, disabled, disabledReason, className, onClick, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
+
export declare const segmentedVariants: (props?: ({
|
|
5
|
+
size?: "default" | "sm" | null | undefined;
|
|
6
|
+
fill?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface SegmentedOption {
|
|
9
|
+
value: string;
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
disabledReason?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
controls?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SegmentedProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, 'orientation' | 'children'>, VariantProps<typeof segmentedVariants> {
|
|
17
|
+
options: SegmentedOption[];
|
|
18
|
+
tabs?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function Segmented({ options, size, fill, className, tabs, ...props }: SegmentedProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
declare const selectVariants: (props?: ({
|
|
4
|
+
size?: "head" | "default" | "sm" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface SelectChangeEvent {
|
|
7
|
+
target: {
|
|
8
|
+
value: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
currentTarget: {
|
|
12
|
+
value: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'value' | 'defaultValue' | 'onChange'>, VariantProps<typeof selectVariants> {
|
|
17
|
+
value?: string | number;
|
|
18
|
+
defaultValue?: string | number;
|
|
19
|
+
onChange?: (event: SelectChangeEvent) => void;
|
|
20
|
+
name?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
invalid?: boolean;
|
|
23
|
+
pill?: boolean;
|
|
24
|
+
lead?: string;
|
|
25
|
+
valueLabel?: ReactNode;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare function Select({ size, invalid, pill, lead, valueLabel, className, id, disabled, required, value, defaultValue, onChange, name, loading, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type StatusIndicatorType = 'ok' | 'warn' | 'error' | 'pending' | 'stopped' | 'info';
|
|
3
|
+
export declare const statusIndicatorVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | null | undefined;
|
|
5
|
+
type?: "info" | "warn" | "ok" | "error" | "pending" | "stopped" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface StatusIndicatorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
8
|
+
type: StatusIndicatorType;
|
|
9
|
+
size?: 'md' | 'sm';
|
|
10
|
+
children: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function StatusIndicator({ type, size, className, children, ...props }: StatusIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
|
+
export interface SwitchProps extends ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
disabledReason?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Switch({ children, disabled, disabledReason, className, onClick, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
invalid?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function Textarea({ invalid, className, id, disabled, required, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
import { icons } from './icons';
|
|
3
|
+
export type IconName = keyof typeof icons;
|
|
4
|
+
export declare const iconNames: IconName[];
|
|
5
|
+
export interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
|
|
6
|
+
name: IconName;
|
|
7
|
+
size?: 'ui' | 'in';
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Icon({ name, size, label, className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
export declare const icons: {
|
|
2
|
+
readonly menu: {
|
|
3
|
+
readonly viewBox: "0 0 24 24";
|
|
4
|
+
readonly body: "<path d='M4 7h16M4 12h16M4 17h16'/>";
|
|
5
|
+
};
|
|
6
|
+
readonly chev: {
|
|
7
|
+
readonly viewBox: "0 0 24 24";
|
|
8
|
+
readonly body: "<path d='m7 10 5 5 5-5'/>";
|
|
9
|
+
};
|
|
10
|
+
readonly hubnode: {
|
|
11
|
+
readonly viewBox: "0 0 16 16";
|
|
12
|
+
readonly body: "<circle cx='8' cy='8' r='6' fill='none' stroke='currentColor' stroke-width='1.25'/><g fill='currentColor' stroke='#FFFFFF' stroke-width='1'><circle cx='8' cy='2' r='1.5'/><circle cx='13.2' cy='11' r='1.5'/><circle cx='2.8' cy='11' r='1.5'/></g><circle cx='8' cy='8' r='2' fill='currentColor'/>";
|
|
13
|
+
};
|
|
14
|
+
readonly thumbdown: {
|
|
15
|
+
readonly viewBox: "0 0 24 24";
|
|
16
|
+
readonly body: "<path d='M17 14V2M9 18.1 10 14H4.2a2 2 0 0 1-1.9-2.6l2.3-7A2 2 0 0 1 6.5 3H20a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-2.8a2 2 0 0 0-1.8 1.1L12 22a3.1 3.1 0 0 1-3-3.9Z'/>";
|
|
17
|
+
};
|
|
18
|
+
readonly checkmark: {
|
|
19
|
+
readonly viewBox: "0 0 24 24";
|
|
20
|
+
readonly body: "<path d='m5 12.5 4.5 4.5L19 7.5'/>";
|
|
21
|
+
};
|
|
22
|
+
readonly updown: {
|
|
23
|
+
readonly viewBox: "0 0 24 24";
|
|
24
|
+
readonly body: "<path d='m8 9 4-4 4 4M8 15l4 4 4-4'/>";
|
|
25
|
+
};
|
|
26
|
+
readonly right: {
|
|
27
|
+
readonly viewBox: "0 0 24 24";
|
|
28
|
+
readonly body: "<path d='m9 6 6 6-6 6'/>";
|
|
29
|
+
};
|
|
30
|
+
readonly 'arrow-r': {
|
|
31
|
+
readonly viewBox: "0 0 24 24";
|
|
32
|
+
readonly body: "<path d='M5 12h14M13 6l6 6-6 6'/>";
|
|
33
|
+
};
|
|
34
|
+
readonly 'arrow-l': {
|
|
35
|
+
readonly viewBox: "0 0 24 24";
|
|
36
|
+
readonly body: "<path d='M19 12H5M11 6l-6 6 6 6'/>";
|
|
37
|
+
};
|
|
38
|
+
readonly up: {
|
|
39
|
+
readonly viewBox: "0 0 24 24";
|
|
40
|
+
readonly body: "<path d='M7 17 17 7M9 7h8v8'/>";
|
|
41
|
+
};
|
|
42
|
+
readonly ext: {
|
|
43
|
+
readonly viewBox: "0 0 24 24";
|
|
44
|
+
readonly body: "<path d='M7 17 17 7M8 7h9v9'/>";
|
|
45
|
+
};
|
|
46
|
+
readonly search: {
|
|
47
|
+
readonly viewBox: "0 0 24 24";
|
|
48
|
+
readonly body: "<circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/>";
|
|
49
|
+
};
|
|
50
|
+
readonly term: {
|
|
51
|
+
readonly viewBox: "0 0 24 24";
|
|
52
|
+
readonly body: "<rect x='3' y='4' width='18' height='16' rx='2'/><path d='m7 9 3 3-3 3M13 15h4'/>";
|
|
53
|
+
};
|
|
54
|
+
readonly help: {
|
|
55
|
+
readonly viewBox: "0 0 24 24";
|
|
56
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.4M12 17h.01'/>";
|
|
57
|
+
};
|
|
58
|
+
readonly bell: {
|
|
59
|
+
readonly viewBox: "0 0 24 24";
|
|
60
|
+
readonly body: "<path d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/>";
|
|
61
|
+
};
|
|
62
|
+
readonly home: {
|
|
63
|
+
readonly viewBox: "0 0 24 24";
|
|
64
|
+
readonly body: "<rect x='3' y='3' width='7' height='9' rx='1.5'/><rect x='14' y='3' width='7' height='5' rx='1.5'/><rect x='14' y='12' width='7' height='9' rx='1.5'/><rect x='3' y='16' width='7' height='5' rx='1.5'/>";
|
|
65
|
+
};
|
|
66
|
+
readonly shield: {
|
|
67
|
+
readonly viewBox: "0 0 24 24";
|
|
68
|
+
readonly body: "<path d='M12 3 4.5 6v6c0 4.5 3.2 7.8 7.5 9 4.3-1.2 7.5-4.5 7.5-9V6z'/>";
|
|
69
|
+
};
|
|
70
|
+
readonly login: {
|
|
71
|
+
readonly viewBox: "0 0 24 24";
|
|
72
|
+
readonly body: "<path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><path d='m10 17 5-5-5-5M15 12H3'/>";
|
|
73
|
+
};
|
|
74
|
+
readonly user: {
|
|
75
|
+
readonly viewBox: "0 0 24 24";
|
|
76
|
+
readonly body: "<circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/>";
|
|
77
|
+
};
|
|
78
|
+
readonly plug: {
|
|
79
|
+
readonly viewBox: "0 0 24 24";
|
|
80
|
+
readonly body: "<path d='M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4'/>";
|
|
81
|
+
};
|
|
82
|
+
readonly grid: {
|
|
83
|
+
readonly viewBox: "0 0 24 24";
|
|
84
|
+
readonly body: "<rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/>";
|
|
85
|
+
};
|
|
86
|
+
readonly key: {
|
|
87
|
+
readonly viewBox: "0 0 24 24";
|
|
88
|
+
readonly body: "<circle cx='7.5' cy='15.5' r='4.5'/><path d='m10.7 12.3 9.3-9.3M17 6l3 3M14.5 8.5l2 2'/>";
|
|
89
|
+
};
|
|
90
|
+
readonly chart: {
|
|
91
|
+
readonly viewBox: "0 0 24 24";
|
|
92
|
+
readonly body: "<path d='M3 3v18h18'/><path d='M8 16v-4M13 16V8M18 16v-7'/>";
|
|
93
|
+
};
|
|
94
|
+
readonly target: {
|
|
95
|
+
readonly viewBox: "0 0 24 24";
|
|
96
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='5'/><circle cx='12' cy='12' r='1'/>";
|
|
97
|
+
};
|
|
98
|
+
readonly card: {
|
|
99
|
+
readonly viewBox: "0 0 24 24";
|
|
100
|
+
readonly body: "<rect x='2.5' y='5' width='19' height='14' rx='2'/><path d='M2.5 10h19M6 15h4'/>";
|
|
101
|
+
};
|
|
102
|
+
readonly box: {
|
|
103
|
+
readonly viewBox: "0 0 24 24";
|
|
104
|
+
readonly body: "<path d='M21 8 12 3 3 8v8l9 5 9-5z'/><path d='m3 8 9 5 9-5M12 13v8'/>";
|
|
105
|
+
};
|
|
106
|
+
readonly server: {
|
|
107
|
+
readonly viewBox: "0 0 24 24";
|
|
108
|
+
readonly body: "<rect x='3' y='4' width='18' height='7' rx='1.5'/><rect x='3' y='13' width='18' height='7' rx='1.5'/><path d='M7 7.5h.01M7 16.5h.01'/>";
|
|
109
|
+
};
|
|
110
|
+
readonly users: {
|
|
111
|
+
readonly viewBox: "0 0 24 24";
|
|
112
|
+
readonly body: "<circle cx='9' cy='8' r='3.5'/><path d='M2.5 20a6.5 6.5 0 0 1 13 0'/><path d='M16 4.5a3.5 3.5 0 0 1 0 7M21.5 20a6.5 6.5 0 0 0-4-6'/>";
|
|
113
|
+
};
|
|
114
|
+
readonly team: {
|
|
115
|
+
readonly viewBox: "0 0 24 24";
|
|
116
|
+
readonly body: "<circle cx='12' cy='7' r='3'/><circle cx='5' cy='15' r='2.5'/><circle cx='19' cy='15' r='2.5'/><path d='M8 21a4 4 0 0 1 8 0'/>";
|
|
117
|
+
};
|
|
118
|
+
readonly gear: {
|
|
119
|
+
readonly viewBox: "0 0 24 24";
|
|
120
|
+
readonly body: "<path d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915'/><circle cx='12' cy='12' r='3'/>";
|
|
121
|
+
};
|
|
122
|
+
readonly pin: {
|
|
123
|
+
readonly viewBox: "0 0 24 24";
|
|
124
|
+
readonly body: "<path d='M12 17v5M8 3h8l-1 6 3 4H6l3-4z'/>";
|
|
125
|
+
};
|
|
126
|
+
readonly sidebar: {
|
|
127
|
+
readonly viewBox: "0 0 24 24";
|
|
128
|
+
readonly body: "<rect x='3' y='4' width='18' height='16' rx='2'/><path d='M9 4v16M15 10l-2 2 2 2'/>";
|
|
129
|
+
};
|
|
130
|
+
readonly plus: {
|
|
131
|
+
readonly viewBox: "0 0 24 24";
|
|
132
|
+
readonly body: "<path d='M12 5v14M5 12h14'/>";
|
|
133
|
+
};
|
|
134
|
+
readonly sliders: {
|
|
135
|
+
readonly viewBox: "0 0 24 24";
|
|
136
|
+
readonly body: "<path d='M4 7h10M18 7h2M4 17h4M12 17h8'/><circle cx='16' cy='7' r='2'/><circle cx='10' cy='17' r='2'/>";
|
|
137
|
+
};
|
|
138
|
+
readonly more: {
|
|
139
|
+
readonly viewBox: "0 0 24 24";
|
|
140
|
+
readonly body: "<circle cx='5' cy='12' r='1'/><circle cx='12' cy='12' r='1'/><circle cx='19' cy='12' r='1'/>";
|
|
141
|
+
};
|
|
142
|
+
readonly grip: {
|
|
143
|
+
readonly viewBox: "0 0 24 24";
|
|
144
|
+
readonly body: "<circle cx='9' cy='6' r='.8'/><circle cx='15' cy='6' r='.8'/><circle cx='9' cy='12' r='.8'/><circle cx='15' cy='12' r='.8'/><circle cx='9' cy='18' r='.8'/><circle cx='15' cy='18' r='.8'/>";
|
|
145
|
+
};
|
|
146
|
+
readonly info: {
|
|
147
|
+
readonly viewBox: "0 0 24 24";
|
|
148
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/>";
|
|
149
|
+
};
|
|
150
|
+
readonly flag: {
|
|
151
|
+
readonly viewBox: "0 0 24 24";
|
|
152
|
+
readonly body: "<path d='M5 21V4M5 4h11l-2 4 2 4H5'/>";
|
|
153
|
+
};
|
|
154
|
+
readonly coin: {
|
|
155
|
+
readonly viewBox: "0 0 24 24";
|
|
156
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M14.8 9.2c-.5-.8-1.5-1.2-2.8-1.2-1.7 0-2.8.8-2.8 2s1.1 1.7 2.8 2 2.8.8 2.8 2-1.1 2-2.8 2c-1.3 0-2.3-.4-2.8-1.2M12 6v2M12 16v2'/>";
|
|
157
|
+
};
|
|
158
|
+
readonly activity: {
|
|
159
|
+
readonly viewBox: "0 0 24 24";
|
|
160
|
+
readonly body: "<path d='M3 12h4l3-8 4 16 3-8h4'/>";
|
|
161
|
+
};
|
|
162
|
+
readonly copy: {
|
|
163
|
+
readonly viewBox: "0 0 24 24";
|
|
164
|
+
readonly body: "<rect x='8' y='8' width='13' height='13' rx='2'/><path d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/>";
|
|
165
|
+
};
|
|
166
|
+
readonly link: {
|
|
167
|
+
readonly viewBox: "0 0 24 24";
|
|
168
|
+
readonly body: "<path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/>";
|
|
169
|
+
};
|
|
170
|
+
readonly lines: {
|
|
171
|
+
readonly viewBox: "0 0 24 24";
|
|
172
|
+
readonly body: "<path d='M4 7h16M4 12h10M4 17h7'/>";
|
|
173
|
+
};
|
|
174
|
+
readonly lang: {
|
|
175
|
+
readonly viewBox: "0 0 24 24";
|
|
176
|
+
readonly body: "<path d='M4 5h9M8.5 3v2M6 5c.5 3 2.5 5.5 6 7M11 5c-.5 3-3 6-7 8'/><path d='m13 21 4-9 4 9M14.5 18h5'/>";
|
|
177
|
+
};
|
|
178
|
+
readonly map: {
|
|
179
|
+
readonly viewBox: "0 0 24 24";
|
|
180
|
+
readonly body: "<path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0'/><circle cx='12' cy='10' r='3'/>";
|
|
181
|
+
};
|
|
182
|
+
readonly mail: {
|
|
183
|
+
readonly viewBox: "0 0 24 24";
|
|
184
|
+
readonly body: "<rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/>";
|
|
185
|
+
};
|
|
186
|
+
readonly g: {
|
|
187
|
+
readonly viewBox: "0 0 24 24";
|
|
188
|
+
readonly body: "<path d='M20 12.2h-8M20 12.2a8 8 0 1 1-2.3-5.6'/>";
|
|
189
|
+
};
|
|
190
|
+
readonly check: {
|
|
191
|
+
readonly viewBox: "0 0 24 24";
|
|
192
|
+
readonly body: "<path d='M5 12.5 10 17l9-10'/>";
|
|
193
|
+
};
|
|
194
|
+
readonly x: {
|
|
195
|
+
readonly viewBox: "0 0 24 24";
|
|
196
|
+
readonly body: "<path d='M6 6l12 12M18 6 6 18'/>";
|
|
197
|
+
};
|
|
198
|
+
readonly off: {
|
|
199
|
+
readonly viewBox: "0 0 24 24";
|
|
200
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M8 12h8'/>";
|
|
201
|
+
};
|
|
202
|
+
readonly star: {
|
|
203
|
+
readonly viewBox: "0 0 24 24";
|
|
204
|
+
readonly body: "<path d='m12 3.5 2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/>";
|
|
205
|
+
};
|
|
206
|
+
readonly pencil: {
|
|
207
|
+
readonly viewBox: "0 0 24 24";
|
|
208
|
+
readonly body: "<path d='M4 20h4L19 9l-4-4L4 16z'/><path d='m13.5 6.5 4 4'/>";
|
|
209
|
+
};
|
|
210
|
+
readonly clock: {
|
|
211
|
+
readonly viewBox: "0 0 24 24";
|
|
212
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/>";
|
|
213
|
+
};
|
|
214
|
+
readonly chip: {
|
|
215
|
+
readonly viewBox: "0 0 24 24";
|
|
216
|
+
readonly body: "<rect x='6' y='6' width='12' height='12' rx='2'/><path d='M10 10h4v4h-4zM9 3v3M15 3v3M9 18v3M15 18v3M3 9h3M3 15h3M18 9h3M18 15h3'/>";
|
|
217
|
+
};
|
|
218
|
+
readonly scan: {
|
|
219
|
+
readonly viewBox: "0 0 24 24";
|
|
220
|
+
readonly body: "<path d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3'/><path d='M8 9h8M8 12h8M8 15h5'/>";
|
|
221
|
+
};
|
|
222
|
+
readonly warn: {
|
|
223
|
+
readonly viewBox: "0 0 24 24";
|
|
224
|
+
readonly body: "<path d='M10.3 4.2 2.9 17.5A2 2 0 0 0 4.6 20.5h14.8a2 2 0 0 0 1.7-3L13.7 4.2a2 2 0 0 0-3.4 0Z'/><path d='M12 9.5v4M12 16.8h.01'/>";
|
|
225
|
+
};
|
|
226
|
+
readonly done: {
|
|
227
|
+
readonly viewBox: "0 0 24 24";
|
|
228
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='m8.2 12.3 2.6 2.6 5-5.4'/>";
|
|
229
|
+
};
|
|
230
|
+
readonly alert: {
|
|
231
|
+
readonly viewBox: "0 0 24 24";
|
|
232
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M12 7.5v5.5M12 16.5h.01'/>";
|
|
233
|
+
};
|
|
234
|
+
readonly wait: {
|
|
235
|
+
readonly viewBox: "0 0 24 24";
|
|
236
|
+
readonly body: "<path d='M7 3h10M7 21h10M8 3c0 5 8 5 8 9s-8 4-8 9M16 3c0 5-8 5-8 9'/>";
|
|
237
|
+
};
|
|
238
|
+
readonly sched: {
|
|
239
|
+
readonly viewBox: "0 0 24 24";
|
|
240
|
+
readonly body: "<circle cx='12' cy='12' r='8.5'/><path d='M12 7.5V12l3 2'/>";
|
|
241
|
+
};
|
|
242
|
+
readonly send: {
|
|
243
|
+
readonly viewBox: "0 0 24 24";
|
|
244
|
+
readonly body: "<path d='M4 12 20 4l-4 16-4-7z'/>";
|
|
245
|
+
};
|
|
246
|
+
readonly bed: {
|
|
247
|
+
readonly viewBox: "0 0 24 24";
|
|
248
|
+
readonly body: "<path d='M3 19V6M3 15h18v4M21 15v-3a3 3 0 0 0-3-3h-7v6'/><circle cx='7' cy='11.5' r='2'/>";
|
|
249
|
+
};
|
|
250
|
+
readonly hotel: {
|
|
251
|
+
readonly viewBox: "0 0 24 24";
|
|
252
|
+
readonly body: "<path d='M5 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17M16 9h2.5a1 1 0 0 1 1 1v11M3 21h18M9 7h.01M12 7h.01M9 11h.01M12 11h.01M9 15h.01M12 15h.01'/>";
|
|
253
|
+
};
|
|
254
|
+
readonly ticket: {
|
|
255
|
+
readonly viewBox: "0 0 24 24";
|
|
256
|
+
readonly body: "<path d='M3.5 6.5h17V10a2 2 0 0 0 0 4v3.5h-17V14a2 2 0 0 0 0-4z'/><path d='M14.5 7.5v1.5M14.5 11.25v1.5M14.5 15v1.5'/>";
|
|
257
|
+
};
|
|
258
|
+
readonly receipt: {
|
|
259
|
+
readonly viewBox: "0 0 24 24";
|
|
260
|
+
readonly body: "<path d='M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21z'/><path d='M9 8h6M9 12h6M9 16h3'/>";
|
|
261
|
+
};
|
|
262
|
+
readonly tag: {
|
|
263
|
+
readonly viewBox: "0 0 24 24";
|
|
264
|
+
readonly body: "<path d='M3.5 12.5V4.5a1 1 0 0 1 1-1h8l8 8-9 9z'/><circle cx='8' cy='8' r='1.5'/>";
|
|
265
|
+
};
|
|
266
|
+
readonly image: {
|
|
267
|
+
readonly viewBox: "0 0 24 24";
|
|
268
|
+
readonly body: "<rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='9' cy='10' r='2'/><path d='m21 15.5-5-5L6.5 20'/>";
|
|
269
|
+
};
|
|
270
|
+
readonly calendar: {
|
|
271
|
+
readonly viewBox: "0 0 24 24";
|
|
272
|
+
readonly body: "<rect x='3.5' y='5' width='17' height='15.5' rx='2'/><path d='M3.5 10h17M8 3v4M16 3v4M9 15l2 2 4-4'/>";
|
|
273
|
+
};
|
|
274
|
+
readonly globe: {
|
|
275
|
+
readonly viewBox: "0 0 24 24";
|
|
276
|
+
readonly body: "<circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.4 2.5 3.6 5.5 3.6 9s-1.2 6.5-3.6 9c-2.4-2.5-3.6-5.5-3.6-9S9.6 5.5 12 3'/>";
|
|
277
|
+
};
|
|
278
|
+
readonly org: {
|
|
279
|
+
readonly viewBox: "0 0 24 24";
|
|
280
|
+
readonly body: "<rect x='5' y='3' width='14' height='18' rx='1.5'/><path d='M9 7.5h1.5M13.5 7.5H15M9 11.5h1.5M13.5 11.5H15M10 21v-4h4v4'/>";
|
|
281
|
+
};
|
|
282
|
+
readonly review: {
|
|
283
|
+
readonly viewBox: "0 0 24 24";
|
|
284
|
+
readonly body: "<path d='M4 4.5h16v11.5H9.5L4 20z'/><path d='M8 9h8M8 12.5h5'/>";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ComponentType, ReactNode } from 'react';
|
|
2
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
export type LinkComponent = ComponentType<LinkProps>;
|
|
6
|
+
export interface LinkProviderProps {
|
|
7
|
+
component: LinkComponent;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function LinkProvider({ component, children }: LinkProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function useLink(): LinkComponent;
|
|
12
|
+
export declare function Link(props: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { LinkProps } from './Link';
|
|
3
|
+
export declare const textLinkVariants: (props?: ({
|
|
4
|
+
variant?: "quiet" | "prose" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface TextLinkProps extends LinkProps, VariantProps<typeof textLinkVariants> {
|
|
7
|
+
}
|
|
8
|
+
export declare function TextLink({ variant, className, ...props }: TextLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { IconName } from '../../icon';
|
|
3
|
+
export interface MenuProps {
|
|
4
|
+
label: string;
|
|
5
|
+
trigger: ReactElement;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
align?: 'start' | 'center' | 'end';
|
|
10
|
+
className?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function Menu({ label, trigger, open, defaultOpen, onOpenChange, align, className, children, }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const menuItemVariants: (props?: ({
|
|
15
|
+
twoLine?: boolean | null | undefined;
|
|
16
|
+
blocked?: boolean | null | undefined;
|
|
17
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
|
+
interface ItemBodyProps {
|
|
19
|
+
icon?: IconName;
|
|
20
|
+
meta?: ReactNode;
|
|
21
|
+
sub?: ReactNode;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export interface MenuItemProps extends ItemBodyProps {
|
|
25
|
+
onSelect?: () => void;
|
|
26
|
+
href?: string;
|
|
27
|
+
disabledReason?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function MenuItem({ icon, meta, sub, href, disabledReason, onSelect, children, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function MenuSeparator(): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export interface RowMenuProps {
|
|
32
|
+
name: string;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function RowMenu({ name, children }: RowMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ConfirmModalProps {
|
|
3
|
+
title: string;
|
|
4
|
+
target?: ReactNode;
|
|
5
|
+
action: string;
|
|
6
|
+
typeToConfirm?: {
|
|
7
|
+
expected: string;
|
|
8
|
+
subject: string;
|
|
9
|
+
};
|
|
10
|
+
onConfirm: () => unknown;
|
|
11
|
+
failure?: (error: unknown) => ReactNode;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function ConfirmModal({ title, target, action, typeToConfirm, onConfirm, failure, onClose, children, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
|