@orcestr/ui 0.0.3 → 0.1.1
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/Alert/Alert.d.ts +5 -4
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +5 -2
- package/dist/components/AppShell/AppShell.d.ts +13 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +14 -9
- package/dist/components/AppSidebar/AppSidebar.d.ts +36 -0
- package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -0
- package/dist/components/AppSidebar/AppSidebar.js +117 -0
- package/dist/components/Badge/Badge.d.ts +8 -6
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts +22 -0
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -0
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +50 -0
- package/dist/components/Box/Box.d.ts +2 -0
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +15 -2
- package/dist/components/Button/Button.d.ts +7 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +23 -3
- package/dist/components/Card/Card.d.ts +26 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +25 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -2
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +13 -4
- package/dist/components/Collapse/Collapse.d.ts.map +1 -1
- package/dist/components/Collapse/Collapse.js +5 -25
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +10 -9
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +5 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +2 -2
- package/dist/components/CopyButton/CopyButton.d.ts +24 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.js +81 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +9 -1
- package/dist/components/Dialog/Dialog.d.ts +69 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +48 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +4 -4
- package/dist/components/EntityPicker/EntityPicker.d.ts +2 -1
- package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
- package/dist/components/EntityPicker/EntityPicker.js +2 -2
- package/dist/components/Flex/Flex.d.ts +5 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +16 -3
- package/dist/components/Grid/Grid.d.ts +9 -2
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.js +22 -1
- package/dist/components/IconButton/IconButton.d.ts +19 -7
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +40 -5
- package/dist/components/IconTextButton/IconTextButton.d.ts +20 -0
- package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -0
- package/dist/components/IconTextButton/IconTextButton.js +24 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts +63 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -0
- package/dist/components/InlineEdit/InlineEdit.js +98 -0
- package/dist/components/LinkButton/LinkButton.d.ts +25 -0
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -0
- package/dist/components/LinkButton/LinkButton.js +12 -0
- package/dist/components/Modal/Modal.d.ts +29 -6
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +37 -13
- package/dist/components/Overlay/OverlayProvider.d.ts +1 -0
- package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
- package/dist/components/Overlay/OverlayProvider.js +18 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts +2 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.js +3 -3
- package/dist/components/Popover/Popover.d.ts +37 -3
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +56 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +4 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +30 -4
- package/dist/components/Section/Section.d.ts +2 -0
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +24 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +28 -2
- package/dist/components/Select/Select.d.ts +36 -4
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +70 -3
- package/dist/components/Separator/Separator.d.ts +3 -1
- package/dist/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/Separator/Separator.js +4 -2
- package/dist/components/SpecialModal/SpecialModal.d.ts +43 -0
- package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -0
- package/dist/components/SpecialModal/SpecialModal.js +34 -0
- package/dist/components/Spinner/Spinner.d.ts +3 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/State/State.d.ts +8 -1
- package/dist/components/State/State.d.ts.map +1 -1
- package/dist/components/State/State.js +2 -2
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +2 -1
- package/dist/components/Table/Table.d.ts +64 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +38 -0
- package/dist/components/Tabs/Tabs.d.ts +33 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +201 -5
- package/dist/components/Text/Text.d.ts +13 -3
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +16 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +72 -37
- package/dist/components/Tooltip/Tooltip.d.ts +11 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +58 -9
- package/dist/example/CodePreview.d.ts +2 -1
- package/dist/example/CodePreview.d.ts.map +1 -1
- package/dist/example/CodePreview.js +16 -51
- package/dist/example/ExampleActionsSection.d.ts.map +1 -1
- package/dist/example/ExampleActionsSection.js +3 -3
- package/dist/example/ExampleApplicationSection.d.ts +7 -0
- package/dist/example/ExampleApplicationSection.d.ts.map +1 -0
- package/dist/example/ExampleApplicationSection.js +88 -0
- package/dist/example/ExampleBasicsSections.d.ts +1 -1
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +15 -13
- package/dist/example/ExampleDataSection.d.ts.map +1 -1
- package/dist/example/ExampleDataSection.js +31 -30
- package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
- package/dist/example/ExampleFieldsSection.js +51 -3
- package/dist/example/ExampleFoundationsSection.js +1 -1
- package/dist/example/ExampleOverlays.d.ts.map +1 -1
- package/dist/example/ExampleOverlays.js +7 -2
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
- package/dist/example/ExampleOverlaysSection.js +20 -30
- package/dist/example/ExampleSelectionSection.d.ts +3 -1
- package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
- package/dist/example/ExampleSelectionSection.js +10 -3
- package/dist/example/ExampleStateSection.d.ts +3 -0
- package/dist/example/ExampleStateSection.d.ts.map +1 -1
- package/dist/example/ExampleStateSection.js +65 -9
- package/dist/example/ExampleThemePlayground.d.ts +84 -54
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +129 -63
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +39 -19
- package/dist/example/codeSamples.d.ts +8 -1
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +590 -119
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +18 -10
- package/dist/example/styles.css +277 -146
- package/dist/hooks/useFloatingPosition.js +1 -1
- package/dist/hooks/usePresence.d.ts.map +1 -1
- package/dist/hooks/usePresence.js +9 -7
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/styles/orcestr-ui.css +3002 -872
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +109 -53
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +356 -223
- package/dist/theme/systemProps.d.ts +48 -28
- package/dist/theme/systemProps.d.ts.map +1 -1
- package/dist/theme/systemProps.js +103 -1
- package/dist/theme/themeTypes.d.ts +44 -35
- package/dist/theme/themeTypes.d.ts.map +1 -1
- package/dist/utils/slot.d.ts +11 -0
- package/dist/utils/slot.d.ts.map +1 -0
- package/dist/utils/slot.js +18 -0
- package/package.json +4 -1
- package/dist/components/Workflow/Workflow.d.ts +0 -82
- package/dist/components/Workflow/Workflow.d.ts.map +0 -1
- package/dist/components/Workflow/Workflow.js +0 -73
|
@@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,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,YAAY,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAC5B,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAgB,EAChB,SAAgB,EAChB,WAAkB,EAClB,IAAQ,EACR,SAAe,EACf,aAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,MAAM,GACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"EntityPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EntityPicker/EntityPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA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AAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,YAAY,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAC5B,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAgB,EAChB,SAAgB,EAChB,WAAkB,EAClB,OAAO,EACP,IAAQ,EACR,SAAe,EACf,aAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,MAAM,GACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CA+CtB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useOrcestrUiLocale } from '../../locale/LocaleProvider';
|
|
4
4
|
import { PaginatedCombobox, } from '../PaginatedCombobox/PaginatedCombobox';
|
|
5
|
-
export function EntityPicker({ loadPage, getEntityId, renderEntity, renderValue, value, onValueChange, placeholder, emptyText, loadingText, errorText, retryLabel, disabled = false, clearable = true, showChevron = true, size = 3, maxHeight = 280, closeOnSelect = true, isEntitySelected, createAction, optionAction, resetKey, debounceMs, testId, }) {
|
|
5
|
+
export function EntityPicker({ loadPage, getEntityId, renderEntity, renderValue, value, onValueChange, placeholder, emptyText, loadingText, errorText, retryLabel, disabled = false, clearable = true, showChevron = true, trigger, size = 3, maxHeight = 280, closeOnSelect = true, isEntitySelected, createAction, optionAction, resetKey, debounceMs, testId, }) {
|
|
6
6
|
const { copy } = useOrcestrUiLocale();
|
|
7
7
|
const searchAction = createAction
|
|
8
8
|
? {
|
|
@@ -13,5 +13,5 @@ export function EntityPicker({ loadPage, getEntityId, renderEntity, renderValue,
|
|
|
13
13
|
onClick: (search) => createAction.onCreate(search),
|
|
14
14
|
}
|
|
15
15
|
: undefined;
|
|
16
|
-
return (_jsx(PaginatedCombobox, { loadPage: loadPage, getItemId: getEntityId, renderOption: (item) => (_jsx("div", { className: 'oui-entity-picker-option', children: renderEntity(item) })), renderSelectedLabel: (item) => (_jsx("span", { className: 'oui-entity-picker-value', children: renderValue?.(item) ?? renderEntity(item) })), value: value, onChange: onValueChange, placeholder: placeholder ?? copy.common.selectEntity, emptyText: emptyText ?? copy.common.noOptions, loadingText: loadingText, errorText: errorText, retryLabel: retryLabel, disabled: disabled, clearable: clearable, showChevron: showChevron, size: size, maxHeight: maxHeight, closeOnSelect: closeOnSelect, isItemSelected: isEntitySelected, searchAction: searchAction, optionAction: optionAction, resetKey: resetKey, debounceMs: debounceMs, testId: testId }));
|
|
16
|
+
return (_jsx(PaginatedCombobox, { loadPage: loadPage, getItemId: getEntityId, renderOption: (item) => (_jsx("div", { className: 'oui-entity-picker-option', children: renderEntity(item) })), renderSelectedLabel: (item) => (_jsx("span", { className: 'oui-entity-picker-value', children: renderValue?.(item) ?? renderEntity(item) })), value: value, onChange: onValueChange, placeholder: placeholder ?? copy.common.selectEntity, emptyText: emptyText ?? copy.common.noOptions, loadingText: loadingText, errorText: errorText, retryLabel: retryLabel, disabled: disabled, clearable: clearable, showChevron: showChevron, trigger: trigger, size: size, maxHeight: maxHeight, closeOnSelect: closeOnSelect, isItemSelected: isEntitySelected, searchAction: searchAction, optionAction: optionAction, resetKey: resetKey, debounceMs: debounceMs, testId: testId }));
|
|
17
17
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ElementType } from 'react';
|
|
2
2
|
import { type SystemProps } from '../../theme/systemProps';
|
|
3
3
|
export type FlexProps = ComponentPropsWithoutRef<'div'> & SystemProps & {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
asChild?: boolean;
|
|
4
6
|
testId?: string;
|
|
5
7
|
};
|
|
6
8
|
export declare const Flex: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SystemProps & {
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
asChild?: boolean;
|
|
7
11
|
testId?: string;
|
|
8
12
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAEnB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAmB,KAAK,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAG3E,MAAM,MAAM,SAAS,GAAG,wBAAwB,CAAC,KAAK,CAAC,GACnD,WAAW,GAAG;IACV,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN,eAAO,MAAM,IAAI;SALJ,WAAW;cACN,OAAO;aACR,MAAM;kDA8BrB,CAAC"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from 'react';
|
|
2
|
+
import { forwardRef, } from 'react';
|
|
3
3
|
import { cn } from '../../utils/cn';
|
|
4
4
|
import { splitSystemProps } from '../../theme/systemProps';
|
|
5
|
-
|
|
5
|
+
import { renderSlot } from '../../utils/slot';
|
|
6
|
+
export const Flex = forwardRef(function Flex({ as: Component = 'div', asChild = false, className, style, testId, children, ...props }, ref) {
|
|
6
7
|
const { systemStyle, restProps } = splitSystemProps(props);
|
|
7
|
-
|
|
8
|
+
const commonProps = {
|
|
9
|
+
className: cn('oui-flex', className),
|
|
10
|
+
'data-testid': testId,
|
|
11
|
+
style: { ...systemStyle, ...style },
|
|
12
|
+
...restProps,
|
|
13
|
+
};
|
|
14
|
+
if (asChild) {
|
|
15
|
+
return renderSlot(children, {
|
|
16
|
+
...commonProps,
|
|
17
|
+
ref: ref,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return (_jsx(Component, { ref: ref, ...commonProps, children: children }));
|
|
8
21
|
});
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { type SystemProps } from '../../theme/systemProps';
|
|
3
3
|
export type GridProps = ComponentPropsWithoutRef<'div'> & SystemProps & {
|
|
4
|
-
columns?:
|
|
4
|
+
columns?: GridColumns;
|
|
5
5
|
testId?: string;
|
|
6
6
|
};
|
|
7
|
+
export type GridColumns = number | string | {
|
|
8
|
+
initial?: number | string;
|
|
9
|
+
sm?: number | string;
|
|
10
|
+
md?: number | string;
|
|
11
|
+
lg?: number | string;
|
|
12
|
+
xl?: number | string;
|
|
13
|
+
};
|
|
7
14
|
export declare const Grid: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SystemProps & {
|
|
8
|
-
columns?:
|
|
15
|
+
columns?: GridColumns;
|
|
9
16
|
testId?: string;
|
|
10
17
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
18
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AAGpF,OAAO,EAAmB,KAAK,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAE3E,MAAM,MAAM,SAAS,GAAG,wBAAwB,CAAC,KAAK,CAAC,GACnD,WAAW,GAAG;IACV,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN,MAAM,MAAM,WAAW,GACjB,MAAM,GACN,MAAM,GACN;IACE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEN,eAAO,MAAM,IAAI;cAfC,WAAW;aACZ,MAAM;kDAiCrB,CAAC"}
|
|
@@ -4,9 +4,30 @@ import { cn } from '../../utils/cn';
|
|
|
4
4
|
import { splitSystemProps } from '../../theme/systemProps';
|
|
5
5
|
export const Grid = forwardRef(function Grid({ className, style, columns, testId, ...props }, ref) {
|
|
6
6
|
const { systemStyle, restProps } = splitSystemProps(props);
|
|
7
|
+
const columnStyle = gridColumnStyle(columns);
|
|
7
8
|
return (_jsx("div", { ref: ref, className: cn('oui-grid', className), "data-testid": testId, style: {
|
|
8
|
-
|
|
9
|
+
...columnStyle,
|
|
9
10
|
...systemStyle,
|
|
10
11
|
...style,
|
|
11
12
|
}, ...restProps }));
|
|
12
13
|
});
|
|
14
|
+
function gridColumnStyle(columns) {
|
|
15
|
+
if (columns === undefined)
|
|
16
|
+
return {};
|
|
17
|
+
if (typeof columns === 'number' || typeof columns === 'string') {
|
|
18
|
+
return { '--oui-grid-columns': columnValue(columns) };
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
'--oui-grid-columns': columnValue(columns.initial ?? 1),
|
|
22
|
+
'--oui-grid-columns-sm': columns.sm ? columnValue(columns.sm) : undefined,
|
|
23
|
+
'--oui-grid-columns-md': columns.md ? columnValue(columns.md) : undefined,
|
|
24
|
+
'--oui-grid-columns-lg': columns.lg ? columnValue(columns.lg) : undefined,
|
|
25
|
+
'--oui-grid-columns-xl': columns.xl ? columnValue(columns.xl) : undefined,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function columnValue(value) {
|
|
29
|
+
const normalized = String(value).trim();
|
|
30
|
+
if (/^\d+$/.test(normalized))
|
|
31
|
+
return `repeat(${normalized}, minmax(0, 1fr))`;
|
|
32
|
+
return normalized;
|
|
33
|
+
}
|
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
import { type SystemProps, type
|
|
2
|
+
import { type SystemProps, type ToneInput, type UiSize } from '../../theme/systemProps';
|
|
3
3
|
import type { ButtonPressAnimation } from '../../theme/themeTypes';
|
|
4
4
|
import type { ButtonVariant } from '../Button/Button';
|
|
5
|
-
export type IconButtonProps =
|
|
5
|
+
export type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & SystemProps & {
|
|
6
6
|
size?: UiSize;
|
|
7
7
|
v?: ButtonVariant;
|
|
8
|
-
tone?:
|
|
9
|
-
icon
|
|
8
|
+
tone?: ToneInput;
|
|
9
|
+
icon?: ReactNode;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
round?: boolean;
|
|
12
|
+
badge?: ReactNode;
|
|
13
|
+
badgeTone?: ToneInput;
|
|
14
|
+
badgeMax?: number;
|
|
15
|
+
badgeTestId?: string;
|
|
12
16
|
pressAnimation?: ButtonPressAnimation;
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
children?: ReactNode;
|
|
13
19
|
testId?: string;
|
|
14
20
|
};
|
|
15
|
-
export declare const IconButton: import("react").ForwardRefExoticComponent<
|
|
21
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & SystemProps & {
|
|
16
22
|
size?: UiSize;
|
|
17
23
|
v?: ButtonVariant;
|
|
18
|
-
tone?:
|
|
19
|
-
icon
|
|
24
|
+
tone?: ToneInput;
|
|
25
|
+
icon?: ReactNode;
|
|
20
26
|
loading?: boolean;
|
|
21
27
|
round?: boolean;
|
|
28
|
+
badge?: ReactNode;
|
|
29
|
+
badgeTone?: ToneInput;
|
|
30
|
+
badgeMax?: number;
|
|
31
|
+
badgeTestId?: string;
|
|
22
32
|
pressAnimation?: ButtonPressAnimation;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
children?: ReactNode;
|
|
23
35
|
testId?: string;
|
|
24
36
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
37
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKH,KAAK,oBAAoB,EAEzB,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAC;AAGf,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,MAAM,EAEd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAEjE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAGpD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GACjE,WAAW,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,aAAa,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAqBN,eAAO,MAAM,UAAU;WAnCR,MAAM;QACT,aAAa;WACV,SAAS;WACT,SAAS;cACN,OAAO;YACT,OAAO;YACP,SAAS;gBACL,SAAS;eACV,MAAM;kBACH,MAAM;qBACH,oBAAoB;cAC3B,OAAO;eACN,SAAS;aACX,MAAM;qDAoGtB,CAAC"}
|
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef, useContext } from 'react';
|
|
2
|
+
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cloneElement, forwardRef, isValidElement, useContext, } from 'react';
|
|
4
4
|
import { cn } from '../../utils/cn';
|
|
5
|
-
import { splitSystemProps, } from '../../theme/systemProps';
|
|
5
|
+
import { splitSystemProps, normalizeTone, } from '../../theme/systemProps';
|
|
6
6
|
import { OrcestrThemeContext } from '../../theme/useTheme';
|
|
7
|
+
import { renderSlot } from '../../utils/slot';
|
|
7
8
|
import { Spinner } from '../Spinner/Spinner';
|
|
8
|
-
|
|
9
|
+
function formatBadge(value, max) {
|
|
10
|
+
if (typeof value !== 'number')
|
|
11
|
+
return value;
|
|
12
|
+
return value > max ? `${max}+` : value;
|
|
13
|
+
}
|
|
14
|
+
function withBadge(children, badge) {
|
|
15
|
+
if (badge === null || badge === undefined || !isValidElement(children)) {
|
|
16
|
+
return children;
|
|
17
|
+
}
|
|
18
|
+
const child = children;
|
|
19
|
+
return cloneElement(child, undefined, (_jsxs(_Fragment, { children: [child.props.children, badge] })));
|
|
20
|
+
}
|
|
21
|
+
export const IconButton = forwardRef(function IconButton({ className, style, size = 3, v = 'soft', tone = 'neutral', loading = false, round = true, badge, badgeTone = 'danger', badgeMax = 99, badgeTestId, pressAnimation, asChild = false, testId, icon, children, disabled, type = 'button', ...props }, ref) {
|
|
9
22
|
const themeContext = useContext(OrcestrThemeContext);
|
|
10
23
|
const actualPressAnimation = pressAnimation ?? themeContext?.theme.motion.pressAnimation ?? 'soft';
|
|
11
24
|
const { systemStyle, restProps } = splitSystemProps(props);
|
|
12
|
-
|
|
25
|
+
const commonProps = {
|
|
26
|
+
className: cn('oui-icon-button', className),
|
|
27
|
+
'data-size': size,
|
|
28
|
+
'data-variant': v,
|
|
29
|
+
'data-tone': normalizeTone(tone),
|
|
30
|
+
'data-round': round ? 'true' : undefined,
|
|
31
|
+
'data-press-animation': actualPressAnimation,
|
|
32
|
+
'data-loading': loading ? 'true' : undefined,
|
|
33
|
+
'data-testid': testId,
|
|
34
|
+
'aria-busy': loading || undefined,
|
|
35
|
+
style: { ...systemStyle, ...style },
|
|
36
|
+
...restProps,
|
|
37
|
+
};
|
|
38
|
+
const badgeNode = badge === null || badge === undefined ? null : (_jsx("span", { className: 'oui-icon-button-badge', "data-tone": normalizeTone(badgeTone), "data-testid": badgeTestId, children: formatBadge(badge, badgeMax) }));
|
|
39
|
+
const content = (_jsxs(_Fragment, { children: [loading ? _jsx(Spinner, { size: 1 }) : icon ?? children, badgeNode] }));
|
|
40
|
+
if (asChild) {
|
|
41
|
+
return renderSlot(withBadge(children, badgeNode), {
|
|
42
|
+
...commonProps,
|
|
43
|
+
ref: ref,
|
|
44
|
+
'aria-disabled': disabled || loading ? true : undefined,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return (_jsx("button", { ref: ref, type: type, ...commonProps, disabled: disabled || loading, children: content }));
|
|
13
48
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../Button/Button';
|
|
3
|
+
import { type LinkButtonProps } from '../LinkButton/LinkButton';
|
|
4
|
+
type IconTextButtonOwnProps = {
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
endIcon?: ReactNode;
|
|
7
|
+
iconSide?: 'start' | 'end';
|
|
8
|
+
iconClassName?: string;
|
|
9
|
+
labelClassName?: string;
|
|
10
|
+
};
|
|
11
|
+
type IconTextButtonButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon'> & {
|
|
12
|
+
href?: never;
|
|
13
|
+
};
|
|
14
|
+
type IconTextButtonLinkProps = Omit<LinkButtonProps, 'leftIcon' | 'rightIcon'> & {
|
|
15
|
+
href: string;
|
|
16
|
+
};
|
|
17
|
+
export type IconTextButtonProps = IconTextButtonOwnProps & (IconTextButtonButtonProps | IconTextButtonLinkProps);
|
|
18
|
+
export declare const IconTextButton: import("react").ForwardRefExoticComponent<IconTextButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=IconTextButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconTextButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconTextButton/IconTextButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAS,KAAK,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAa,KAAK,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAE1E,KAAK,sBAAsB,GAAG;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,yBAAyB,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC3E,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,KAAK,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC7E,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GACpD,CAAC,yBAAyB,GAAG,uBAAuB,CAAC,CAAC;AAO1D,eAAO,MAAM,cAAc,uIAyDzB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { cn } from '../../utils/cn';
|
|
5
|
+
import { Button } from '../Button/Button';
|
|
6
|
+
import { LinkButton } from '../LinkButton/LinkButton';
|
|
7
|
+
function iconNode(icon, className) {
|
|
8
|
+
if (!icon)
|
|
9
|
+
return undefined;
|
|
10
|
+
return _jsx("span", { className: cn('oui-icon-text-button-icon', className), children: icon });
|
|
11
|
+
}
|
|
12
|
+
export const IconTextButton = forwardRef(function IconTextButton({ className, icon, endIcon, iconSide = 'start', iconClassName, labelClassName, children, href, ...props }, ref) {
|
|
13
|
+
const startIcon = iconSide === 'start' ? iconNode(icon, iconClassName) : undefined;
|
|
14
|
+
const finishIcon = endIcon !== undefined
|
|
15
|
+
? iconNode(endIcon, iconClassName)
|
|
16
|
+
: iconSide === 'end'
|
|
17
|
+
? iconNode(icon, iconClassName)
|
|
18
|
+
: undefined;
|
|
19
|
+
const label = (_jsx("span", { className: cn('oui-icon-text-button-label', labelClassName), children: children }));
|
|
20
|
+
if (href !== undefined) {
|
|
21
|
+
return (_jsx(LinkButton, { ref: ref, href: href, className: cn('oui-icon-text-button', className), leftIcon: startIcon, rightIcon: finishIcon, ...props, children: label }));
|
|
22
|
+
}
|
|
23
|
+
return (_jsx(Button, { ref: ref, className: cn('oui-icon-text-button', className), leftIcon: startIcon, rightIcon: finishIcon, ...props, children: label }));
|
|
24
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type SystemProps } from '../../theme/systemProps';
|
|
3
|
+
export type InlineEditFieldProps = SystemProps & {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
meta?: ReactNode;
|
|
6
|
+
action?: ReactNode;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
busy?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
onClear?: () => void;
|
|
12
|
+
onOpen?: () => void;
|
|
13
|
+
clearLabel?: string;
|
|
14
|
+
flash?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
testId?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const InlineEditField: import("react").ForwardRefExoticComponent<SystemProps & {
|
|
20
|
+
label: ReactNode;
|
|
21
|
+
meta?: ReactNode;
|
|
22
|
+
action?: ReactNode;
|
|
23
|
+
editable?: boolean;
|
|
24
|
+
busy?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
clearable?: boolean;
|
|
27
|
+
onClear?: () => void;
|
|
28
|
+
onOpen?: () => void;
|
|
29
|
+
clearLabel?: string;
|
|
30
|
+
flash?: number;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
testId?: string;
|
|
34
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export type InlineEditMultiFieldProps = SystemProps & {
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
empty?: ReactNode;
|
|
38
|
+
action?: ReactNode;
|
|
39
|
+
col?: boolean;
|
|
40
|
+
editable?: boolean;
|
|
41
|
+
busy?: boolean;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
onOpen?: () => void;
|
|
44
|
+
flash?: number;
|
|
45
|
+
className?: string;
|
|
46
|
+
style?: CSSProperties;
|
|
47
|
+
testId?: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const InlineEditMultiField: import("react").ForwardRefExoticComponent<SystemProps & {
|
|
50
|
+
children?: ReactNode;
|
|
51
|
+
empty?: ReactNode;
|
|
52
|
+
action?: ReactNode;
|
|
53
|
+
col?: boolean;
|
|
54
|
+
editable?: boolean;
|
|
55
|
+
busy?: boolean;
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
onOpen?: () => void;
|
|
58
|
+
flash?: number;
|
|
59
|
+
className?: string;
|
|
60
|
+
style?: CSSProperties;
|
|
61
|
+
testId?: string;
|
|
62
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
63
|
+
//# sourceMappingURL=InlineEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineEdit.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O,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,oBAAoB;eAdlB,SAAS;YACZ,SAAS;aACR,SAAS;UACZ,OAAO;eACF,OAAO;WACX,OAAO;eACH,OAAO;aACT,MAAM,IAAI;YACX,MAAM;gBACF,MAAM;YACV,aAAa;aACZ,MAAM;kDAiFjB,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useEffect, useLayoutEffect, useRef, useState, } from 'react';
|
|
4
|
+
import { LuX } from 'react-icons/lu';
|
|
5
|
+
import { cn } from '../../utils/cn';
|
|
6
|
+
import { composeRefs } from '../../utils/composeRefs';
|
|
7
|
+
import { splitSystemProps } from '../../theme/systemProps';
|
|
8
|
+
import { IconButton } from '../IconButton/IconButton';
|
|
9
|
+
import { Spinner } from '../Spinner/Spinner';
|
|
10
|
+
export const InlineEditField = forwardRef(function InlineEditField({ label, meta, action, editable = true, busy = false, disabled = false, clearable = false, onClear, onOpen, clearLabel = 'Clear', flash = 0, className, style, testId, ...props }, ref) {
|
|
11
|
+
const innerRef = useRef(null);
|
|
12
|
+
const labelRef = useRef(null);
|
|
13
|
+
const extraRef = useRef(null);
|
|
14
|
+
const actionsRef = useRef(null);
|
|
15
|
+
const [compact, setCompact] = useState(false);
|
|
16
|
+
const { systemStyle, restProps } = splitSystemProps(props);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (!flash)
|
|
19
|
+
return;
|
|
20
|
+
const element = innerRef.current;
|
|
21
|
+
if (!element)
|
|
22
|
+
return;
|
|
23
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
24
|
+
element.animate([
|
|
25
|
+
{ backgroundColor: 'transparent', boxShadow: '0 0 0 0 var(--oui-primary-surface)' },
|
|
26
|
+
{
|
|
27
|
+
backgroundColor: 'var(--oui-primary-surface)',
|
|
28
|
+
boxShadow: '0 0 0 4px var(--oui-primary-surface)',
|
|
29
|
+
},
|
|
30
|
+
{ backgroundColor: 'transparent', boxShadow: '0 0 0 0 var(--oui-primary-surface)' },
|
|
31
|
+
{
|
|
32
|
+
backgroundColor: 'var(--oui-primary-surface)',
|
|
33
|
+
boxShadow: '0 0 0 4px var(--oui-primary-surface)',
|
|
34
|
+
},
|
|
35
|
+
{ backgroundColor: 'transparent', boxShadow: '0 0 0 0 var(--oui-primary-surface)' },
|
|
36
|
+
], { duration: 1400, easing: 'ease-in-out' });
|
|
37
|
+
}, [flash]);
|
|
38
|
+
const showActions = editable && (!disabled || busy);
|
|
39
|
+
useLayoutEffect(() => {
|
|
40
|
+
const wrapper = innerRef.current;
|
|
41
|
+
if (!wrapper)
|
|
42
|
+
return;
|
|
43
|
+
const updateLayout = () => {
|
|
44
|
+
const availableWidth = wrapper.parentElement?.clientWidth || wrapper.clientWidth;
|
|
45
|
+
const labelWidth = labelRef.current?.scrollWidth ?? 0;
|
|
46
|
+
const extraWidth = extraRef.current?.offsetWidth ?? 0;
|
|
47
|
+
const actionsWidth = actionsRef.current?.offsetWidth ?? 0;
|
|
48
|
+
const visibleGaps = (extraWidth > 0 ? 6 : 0) + (actionsWidth > 0 ? 6 : 0);
|
|
49
|
+
const wideWidth = labelWidth + extraWidth + actionsWidth + visibleGaps + 8;
|
|
50
|
+
setCompact(wideWidth > availableWidth);
|
|
51
|
+
};
|
|
52
|
+
updateLayout();
|
|
53
|
+
const observer = new ResizeObserver(updateLayout);
|
|
54
|
+
observer.observe(wrapper);
|
|
55
|
+
if (wrapper.parentElement)
|
|
56
|
+
observer.observe(wrapper.parentElement);
|
|
57
|
+
if (labelRef.current)
|
|
58
|
+
observer.observe(labelRef.current);
|
|
59
|
+
if (extraRef.current)
|
|
60
|
+
observer.observe(extraRef.current);
|
|
61
|
+
if (actionsRef.current)
|
|
62
|
+
observer.observe(actionsRef.current);
|
|
63
|
+
return () => observer.disconnect();
|
|
64
|
+
}, [label, meta, action, clearable, editable, disabled, busy]);
|
|
65
|
+
return (_jsxs("div", { ref: composeRefs(innerRef, ref), className: cn('oui-inline-edit', compact && 'oui-inline-edit-compact', className), "data-busy": busy ? 'true' : undefined, "data-disabled": disabled ? 'true' : undefined, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps, children: [_jsx("button", { ref: labelRef, type: 'button', className: 'oui-inline-edit-label', disabled: !onOpen || disabled, onClick: onOpen, children: label }), meta || showActions ? (_jsxs("div", { className: 'oui-inline-edit-meta', children: [meta ? (_jsx("span", { ref: extraRef, className: 'oui-inline-edit-extra', children: meta })) : null, showActions ? (_jsxs("span", { ref: actionsRef, className: 'oui-inline-edit-actions', children: [busy ? _jsx(Spinner, { size: 1 }) : action, clearable && !busy ? (_jsx(IconButton, { type: 'button', v: 'ghost', tone: 'neutral', size: 1, "aria-label": clearLabel, className: 'oui-inline-edit-action', onClick: onClear, children: _jsx(LuX, {}) })) : null] })) : null] })) : null] }));
|
|
66
|
+
});
|
|
67
|
+
export const InlineEditMultiField = forwardRef(function InlineEditMultiField({ children, empty, action, col = false, editable = true, busy = false, disabled = false, onOpen, flash = 0, className, style, testId, ...props }, ref) {
|
|
68
|
+
const innerRef = useRef(null);
|
|
69
|
+
const { systemStyle, restProps } = splitSystemProps(props);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (!flash)
|
|
72
|
+
return;
|
|
73
|
+
const element = innerRef.current;
|
|
74
|
+
if (!element)
|
|
75
|
+
return;
|
|
76
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
77
|
+
element.animate([
|
|
78
|
+
{ backgroundColor: 'transparent', boxShadow: '0 0 0 0 var(--oui-primary-surface)' },
|
|
79
|
+
{
|
|
80
|
+
backgroundColor: 'var(--oui-primary-surface)',
|
|
81
|
+
boxShadow: '0 0 0 4px var(--oui-primary-surface)',
|
|
82
|
+
},
|
|
83
|
+
{ backgroundColor: 'transparent', boxShadow: '0 0 0 0 var(--oui-primary-surface)' },
|
|
84
|
+
], { duration: 1000, easing: 'ease-in-out' });
|
|
85
|
+
}, [flash]);
|
|
86
|
+
const showActions = editable && (!disabled || busy);
|
|
87
|
+
return (_jsxs("div", { ref: composeRefs(innerRef, ref), className: cn('oui-inline-edit-multi', className), "data-col": col ? 'true' : undefined, "data-busy": busy ? 'true' : undefined, "data-disabled": disabled ? 'true' : undefined, "data-clickable": onOpen && !disabled ? 'true' : undefined, "data-testid": testId, role: onOpen && !disabled ? 'button' : undefined, tabIndex: onOpen && !disabled ? 0 : undefined, style: { ...systemStyle, ...style }, onClick: () => {
|
|
88
|
+
if (!disabled)
|
|
89
|
+
onOpen?.();
|
|
90
|
+
}, onKeyDown: (event) => {
|
|
91
|
+
if (disabled || !onOpen)
|
|
92
|
+
return;
|
|
93
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
onOpen();
|
|
96
|
+
}
|
|
97
|
+
}, ...restProps, children: [_jsx("div", { className: 'oui-inline-edit-multi-items', children: children ?? _jsx("span", { className: 'oui-inline-edit-empty', children: empty }) }), showActions ? (_jsx("div", { className: 'oui-inline-edit-multi-actions', children: busy ? _jsx(Spinner, { size: 1 }) : action })) : null] }));
|
|
98
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type SystemProps, type ToneInput, type UiSize } from '../../theme/systemProps';
|
|
3
|
+
import type { ButtonPressAnimation } from '../../theme/themeTypes';
|
|
4
|
+
import type { ButtonVariant } from '../Button/Button';
|
|
5
|
+
export type LinkButtonProps = AnchorHTMLAttributes<HTMLAnchorElement> & SystemProps & {
|
|
6
|
+
size?: UiSize;
|
|
7
|
+
v?: ButtonVariant;
|
|
8
|
+
tone?: ToneInput;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
leftIcon?: ReactNode;
|
|
11
|
+
rightIcon?: ReactNode;
|
|
12
|
+
pressAnimation?: ButtonPressAnimation;
|
|
13
|
+
testId?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const LinkButton: import("react").ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & SystemProps & {
|
|
16
|
+
size?: UiSize;
|
|
17
|
+
v?: ButtonVariant;
|
|
18
|
+
tone?: ToneInput;
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
leftIcon?: ReactNode;
|
|
21
|
+
rightIcon?: ReactNode;
|
|
22
|
+
pressAnimation?: ButtonPressAnimation;
|
|
23
|
+
testId?: string;
|
|
24
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
25
|
+
//# sourceMappingURL=LinkButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../../src/components/LinkButton/LinkButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAEH,KAAK,WAAW,EAEhB,KAAK,SAAS,EACd,KAAK,MAAM,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAGjE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GACjE,WAAW,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,aAAa,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN,eAAO,MAAM,UAAU;WAVR,MAAM;QACT,aAAa;WACV,SAAS;gBACJ,OAAO;eACR,SAAS;gBACR,SAAS;qBACJ,oBAAoB;aAC5B,MAAM;qDA4CtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useContext, } from 'react';
|
|
4
|
+
import { splitSystemProps, normalizeTone, } from '../../theme/systemProps';
|
|
5
|
+
import { OrcestrThemeContext } from '../../theme/useTheme';
|
|
6
|
+
import { cn } from '../../utils/cn';
|
|
7
|
+
export const LinkButton = forwardRef(function LinkButton({ className, style, size = 3, v = 'solid', tone = 'neutral', fullWidth = false, leftIcon, rightIcon, pressAnimation, testId, children, ...props }, ref) {
|
|
8
|
+
const themeContext = useContext(OrcestrThemeContext);
|
|
9
|
+
const actualPressAnimation = pressAnimation ?? themeContext?.theme.motion.pressAnimation ?? 'soft';
|
|
10
|
+
const { systemStyle, restProps } = splitSystemProps(props);
|
|
11
|
+
return (_jsxs("a", { ref: ref, className: cn('oui-button', fullWidth && 'oui-button-full', className), "data-size": size, "data-variant": v, "data-tone": normalizeTone(tone), "data-press-animation": actualPressAnimation, "data-testid": testId, style: { ...systemStyle, ...style }, ...restProps, children: [leftIcon, _jsx("span", { className: 'oui-button-label', children: children }), rightIcon] }));
|
|
12
|
+
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { type CSSProperties, type ReactNode } from 'react';
|
|
1
|
+
import { type ButtonHTMLAttributes, type CSSProperties, type KeyboardEventHandler, type ReactNode } from 'react';
|
|
2
2
|
import type { ModalAnimation } from '../../theme/themeTypes';
|
|
3
3
|
export type ModalProps = {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (open: boolean) => void;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
description?: ReactNode;
|
|
8
6
|
children: ReactNode;
|
|
9
|
-
footer?: ReactNode;
|
|
10
7
|
maxWidth?: number | string;
|
|
11
8
|
minHeight?: number | string;
|
|
12
9
|
overlayColor?: string;
|
|
@@ -21,9 +18,35 @@ export type ModalProps = {
|
|
|
21
18
|
overlayStyle?: CSSProperties;
|
|
22
19
|
className?: string;
|
|
23
20
|
contentClassName?: string;
|
|
24
|
-
|
|
21
|
+
contentStyle?: CSSProperties;
|
|
22
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
23
|
+
onOpenAutoFocus?: (event: {
|
|
24
|
+
preventDefault: () => void;
|
|
25
|
+
}) => void;
|
|
25
26
|
closeOnOverlayClick?: boolean;
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
ariaLabelledBy?: string;
|
|
29
|
+
ariaDescribedBy?: string;
|
|
26
30
|
testId?: string;
|
|
27
31
|
};
|
|
28
|
-
|
|
32
|
+
declare function ModalRoot({ open, onOpenChange, children, maxWidth, minHeight, overlayColor, overlayOpacity, overlayBlur, borderColor, radius, shadow, animationDuration, animation, overlayClassName, overlayStyle, className, contentClassName, contentStyle, onKeyDown, onOpenAutoFocus, closeOnOverlayClick, ariaLabel, ariaLabelledBy, ariaDescribedBy, testId, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
type ModalPartProps = {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: CSSProperties;
|
|
37
|
+
};
|
|
38
|
+
declare function ModalHeader({ children, className, style }: ModalPartProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function ModalBody({ children, className, style }: ModalPartProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare function ModalFooter({ children, className, style }: ModalPartProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
type ModalCloseProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
42
|
+
asChild?: false;
|
|
43
|
+
};
|
|
44
|
+
declare function ModalClose({ onClick, ...props }: ModalCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const Modal: typeof ModalRoot & {
|
|
46
|
+
Header: typeof ModalHeader;
|
|
47
|
+
Body: typeof ModalBody;
|
|
48
|
+
Footer: typeof ModalFooter;
|
|
49
|
+
Close: typeof ModalClose;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
29
52
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAU3D,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,WAA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