@orcestr/ui 0.1.1 → 0.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/README.md +11 -11
- package/README.ru.md +10 -10
- package/dist/components/Action/ActionConfirmModal.d.ts.map +1 -1
- package/dist/components/Action/ActionTypes.d.ts +1 -1
- package/dist/components/Action/ActionTypes.d.ts.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +9 -10
- package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -1
- package/dist/components/AppSidebar/AppSidebar.js +22 -17
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -1
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +5 -5
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapse/Collapse.d.ts.map +1 -1
- package/dist/components/Collapse/Collapse.js +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.js +7 -2
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +6 -12
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +3 -3
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +29 -22
- package/dist/components/DataTable/DataTableStateAdapters.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableStateAdapters.js +3 -4
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerState.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerState.js +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.d.ts.map +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.js +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
- package/dist/components/EntityPicker/EntityPicker.js +2 -2
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Highlight/Highlight.d.ts.map +1 -1
- package/dist/components/Highlight/Highlight.js +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconText/IconText.d.ts.map +1 -1
- package/dist/components/IconText/IconText.js +3 -1
- package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.js +22 -7
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.js +2 -2
- package/dist/components/Listbox/Listbox.js +2 -2
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +5 -5
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +4 -8
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +5 -7
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/NumberField.js +1 -1
- package/dist/components/Overlay/OverlayProvider.d.ts +1 -1
- package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
- package/dist/components/Overlay/OverlayProvider.js +3 -7
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.js +9 -8
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.js +2 -2
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +16 -18
- package/dist/components/Portal/Portal.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +10 -23
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +4 -4
- package/dist/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -1
- package/dist/components/SpecialModal/SpecialModal.js +2 -2
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/State/State.d.ts.map +1 -1
- package/dist/components/State/State.js +5 -5
- package/dist/components/State/stateIcon.d.ts.map +1 -1
- package/dist/components/StepperInput/StepperInput.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +10 -12
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +3 -3
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +9 -15
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +7 -9
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/example/CodePreview.d.ts.map +1 -1
- package/dist/example/CodePreview.js +10 -10
- package/dist/example/ExampleActionsSection.d.ts +1 -1
- package/dist/example/ExampleActionsSection.d.ts.map +1 -1
- package/dist/example/ExampleActionsSection.js +2 -2
- package/dist/example/ExampleApplicationSection.d.ts.map +1 -1
- package/dist/example/ExampleApplicationSection.js +69 -21
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +15 -7
- package/dist/example/ExampleDataSection.d.ts.map +1 -1
- package/dist/example/ExampleDataSection.js +5 -5
- package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
- package/dist/example/ExampleFieldsSection.js +8 -10
- package/dist/example/ExampleFoundationsSection.d.ts +1 -1
- package/dist/example/ExampleFoundationsSection.d.ts.map +1 -1
- package/dist/example/ExampleFoundationsSection.js +4 -4
- package/dist/example/ExampleOverlays.d.ts.map +1 -1
- package/dist/example/ExampleOverlays.js +4 -4
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
- package/dist/example/ExampleOverlaysSection.js +10 -10
- package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
- package/dist/example/ExampleSelectionSection.js +8 -8
- package/dist/example/ExampleStateSection.d.ts +3 -3
- package/dist/example/ExampleStateSection.d.ts.map +1 -1
- package/dist/example/ExampleStateSection.js +6 -6
- package/dist/example/ExampleThemePlayground.d.ts +25 -25
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +48 -37
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +12 -16
- package/dist/example/UiExampleSection.d.ts.map +1 -1
- package/dist/example/UiExampleSection.js +1 -1
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +10 -10
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +2 -2
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +1 -3
- package/dist/hooks/useFloatingLayer.d.ts.map +1 -1
- package/dist/hooks/useFloatingLayer.js +1 -1
- package/dist/hooks/useFloatingPosition.d.ts.map +1 -1
- package/dist/hooks/useFloatingPosition.js +10 -15
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useListNavigation.d.ts.map +1 -1
- package/dist/hooks/useListNavigation.js +2 -4
- package/dist/hooks/useOutsidePointerDown.d.ts.map +1 -1
- package/dist/hooks/useTypeahead.d.ts.map +1 -1
- package/dist/locale/LocaleProvider.d.ts.map +1 -1
- package/dist/locale/LocaleProvider.js +1 -1
- package/dist/provider/OrcestrUiProvider.d.ts.map +1 -1
- package/dist/styles/orcestr-ui.css +249 -881
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +2 -12
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +158 -52
- package/dist/theme/systemProps.d.ts +2 -2
- package/dist/theme/systemProps.d.ts.map +1 -1
- package/dist/theme/systemProps.js +4 -35
- package/dist/theme/themeTypes.d.ts +1 -1
- package/dist/theme/themeTypes.d.ts.map +1 -1
- package/dist/theme/useTheme.d.ts.map +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/composeRefs.d.ts.map +1 -1
- package/dist/utils/mergeProps.d.ts.map +1 -1
- package/dist/utils/polymorphic.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef, useLayoutEffect, useRef
|
|
3
|
+
import { forwardRef, useLayoutEffect, useRef } from 'react';
|
|
4
4
|
import { cn } from '../../utils/cn';
|
|
5
5
|
import { composeRefs } from '../../utils/composeRefs';
|
|
6
|
-
import { splitSystemProps
|
|
6
|
+
import { splitSystemProps } from '../../theme/systemProps';
|
|
7
7
|
export const TextArea = forwardRef(function TextArea({ className, style, size = 2, invalid = false, autoResize = false, value, testId, children: _children, dangerouslySetInnerHTML: _dangerouslySetInnerHTML, ...props }, ref) {
|
|
8
8
|
const localRef = useRef(null);
|
|
9
9
|
const { systemStyle, restProps } = splitSystemProps(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAMf,OAAO,
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAoB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1F,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAC5E,WAAW,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN,eAAO,MAAM,SAAS;WAXP,MAAM;cACH,OAAO;gBACL,OAAO;eACR,SAAS;gBACR,SAAS;gBACT,OAAO;cACT,MAAM,IAAI;iBACP,MAAM;aACV,MAAM;oDAkFrB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { LuX } from 'react-icons/lu';
|
|
|
5
5
|
import { useOrcestrUiLocale } from '../../locale/LocaleProvider';
|
|
6
6
|
import { cn } from '../../utils/cn';
|
|
7
7
|
import { composeRefs } from '../../utils/composeRefs';
|
|
8
|
-
import { splitSystemProps
|
|
8
|
+
import { splitSystemProps } from '../../theme/systemProps';
|
|
9
9
|
export const TextField = forwardRef(function TextField({ className, style, size = 3, invalid = false, fullWidth = true, leftSlot, rightSlot, clearable = false, onClear, clearLabel, testId, value, defaultValue, onChange, disabled, id, children: _children, dangerouslySetInnerHTML: _dangerouslySetInnerHTML, ...props }, ref) {
|
|
10
10
|
const { copy } = useOrcestrUiLocale();
|
|
11
11
|
const generatedId = useId();
|
|
@@ -20,12 +20,12 @@ export const TextField = forwardRef(function TextField({ className, style, size
|
|
|
20
20
|
setInternalValue(event.target.value);
|
|
21
21
|
onChange?.(event);
|
|
22
22
|
};
|
|
23
|
-
return (_jsxs("span", { className: cn('oui-text-field', fullWidth && 'oui-text-field-full', className), "data-size": size, "data-invalid": invalid ? 'true' : undefined, "data-disabled": disabled ? 'true' : undefined, style: { ...systemStyle, ...style }, children: [leftSlot ?
|
|
23
|
+
return (_jsxs("span", { className: cn('oui-text-field', fullWidth && 'oui-text-field-full', className), "data-size": size, "data-invalid": invalid ? 'true' : undefined, "data-disabled": disabled ? 'true' : undefined, style: { ...systemStyle, ...style }, children: [leftSlot ? _jsx("span", { className: "oui-text-field-slot", children: leftSlot }) : null, _jsx("input", { ref: composeRefs(ref, localRef), id: inputId, className: "oui-text-field-input", "data-testid": testId, value: actualValue, onChange: handleChange, disabled: disabled, "aria-invalid": invalid || undefined, ...restProps }), canClear ? (_jsx("button", { type: "button", className: "oui-text-field-clear", "aria-label": clearLabel ?? copy.common.clear, onClick: (event) => {
|
|
24
24
|
event.preventDefault();
|
|
25
25
|
event.stopPropagation();
|
|
26
26
|
if (value === undefined)
|
|
27
27
|
setInternalValue('');
|
|
28
28
|
localRef.current?.focus();
|
|
29
29
|
onClear?.();
|
|
30
|
-
}, children: _jsx(LuX, { size: 14 }) })) : null, rightSlot ?
|
|
30
|
+
}, children: _jsx(LuX, { size: 14 }) })) : null, rightSlot ? _jsx("span", { className: "oui-text-field-slot", children: rightSlot }) : null] }));
|
|
31
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,EASH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AASf,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAClE,MAAM,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,EASH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AASf,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAClE,MAAM,MAAM,aAAa,GACrB,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAAC;AAE/F,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC;AAe/C,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,SAAS,KAAK,MAAM,CAAC;IACtD,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAmCF,wBAAgB,aAAa,CAAC,EAC1B,QAAQ,EACR,eAAwC,EACxC,UAA+B,EAC/B,MAAM,GACT,EAAE;IACC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,2CAsMA;AAED,wBAAgB,QAAQ,sBAMvB"}
|
|
@@ -78,7 +78,7 @@ export function ToastProvider({ children, defaultPosition = DEFAULT_TOAST_POSITI
|
|
|
78
78
|
}, [clearRemovalTimer, clearTimer, setToastItems]);
|
|
79
79
|
const dismiss = useCallback((id) => {
|
|
80
80
|
clearTimer(id);
|
|
81
|
-
setToastItems((current) => current.map((item) => item.id === id ? { ...item, state: 'closing' } : item));
|
|
81
|
+
setToastItems((current) => current.map((item) => (item.id === id ? { ...item, state: 'closing' } : item)));
|
|
82
82
|
clearRemovalTimer(id);
|
|
83
83
|
const removalId = window.setTimeout(() => {
|
|
84
84
|
removeToast(id);
|
|
@@ -151,13 +151,7 @@ export function ToastProvider({ children, defaultPosition = DEFAULT_TOAST_POSITI
|
|
|
151
151
|
});
|
|
152
152
|
scheduleDismiss(item);
|
|
153
153
|
return item.id;
|
|
154
|
-
}, [
|
|
155
|
-
clearRemovalTimer,
|
|
156
|
-
defaultPosition,
|
|
157
|
-
maxVisible,
|
|
158
|
-
scheduleDismiss,
|
|
159
|
-
setToastItems,
|
|
160
|
-
]);
|
|
154
|
+
}, [clearRemovalTimer, defaultPosition, maxVisible, scheduleDismiss, setToastItems]);
|
|
161
155
|
const value = useMemo(() => ({
|
|
162
156
|
push,
|
|
163
157
|
success: (input) => push(input, 'success'),
|
|
@@ -172,7 +166,7 @@ export function ToastProvider({ children, defaultPosition = DEFAULT_TOAST_POSITI
|
|
|
172
166
|
const positionItems = items.filter((item) => item.position === position);
|
|
173
167
|
if (positionItems.length === 0)
|
|
174
168
|
return null;
|
|
175
|
-
return (_jsx("div", { className:
|
|
169
|
+
return (_jsx("div", { className: "oui-toast-stack", "data-position": position, "data-testid": testId ? `${testId}-${position}` : undefined, "aria-live": "polite", "aria-relevant": "additions text", style: { zIndex: overlay.zIndex.toast }, children: positionItems.map((item) => (_jsx(ToastCard, { item: item, onDismiss: dismiss, onPause: pauseDismiss, onResume: resumeDismiss, onExited: removeToast, testId: testId ? `${testId}-${item.id}` : undefined }, item.id))) }, position));
|
|
176
170
|
}) })] }));
|
|
177
171
|
}
|
|
178
172
|
export function useToast() {
|
|
@@ -186,27 +180,27 @@ function ToastCard({ item, onDismiss, onPause, onResume, onExited, testId, }) {
|
|
|
186
180
|
const { copy } = useOrcestrUiLocale();
|
|
187
181
|
const duration = toastDuration(item);
|
|
188
182
|
const hasProgress = item.duration !== null && duration > 0;
|
|
189
|
-
const icon = item.icon === false ? null : item.icon ?? toastIcon(item.tone);
|
|
183
|
+
const icon = item.icon === false ? null : (item.icon ?? toastIcon(item.tone));
|
|
190
184
|
const style = {
|
|
191
185
|
...(item.progressColor ? { '--oui-toast-progress-color': item.progressColor } : null),
|
|
192
186
|
};
|
|
193
|
-
return (_jsx("div", { className:
|
|
187
|
+
return (_jsx("div", { className: "oui-toast-viewport oui-toast-frame", "data-position": item.position, "data-state": item.state, style: style, onAnimationEnd: (event) => {
|
|
194
188
|
if (event.animationName === 'ouiToastOut') {
|
|
195
189
|
onExited(item.id);
|
|
196
190
|
}
|
|
197
|
-
}, children: _jsxs("div", { className:
|
|
191
|
+
}, children: _jsxs("div", { className: "oui-toast", "data-tone": item.tone, "data-state": item.state, "data-position": item.position, "data-clickable": item.dismissible === false ? undefined : 'true', "data-testid": testId, role: item.tone === 'danger' ? 'alert' : 'status', onMouseEnter: () => onPause(item.id), onMouseLeave: () => onResume(item.id), onClick: () => {
|
|
198
192
|
if (item.dismissible !== false)
|
|
199
193
|
onDismiss(item.id);
|
|
200
|
-
}, children: [_jsxs("div", { className:
|
|
194
|
+
}, children: [_jsxs("div", { className: "oui-toast-content", children: [icon ? (_jsx("span", { className: "oui-toast-icon", "data-tone": item.tone, children: icon })) : null, _jsxs("div", { className: "oui-toast-main", children: [_jsx("div", { className: "oui-toast-title", children: item.title }), item.message ? (_jsx("div", { className: "oui-toast-message", children: item.message })) : null, item.action ? (_jsx(Button, { className: "oui-toast-action", size: 1, v: "surface", tone: item.tone, onClick: (event) => {
|
|
201
195
|
event.stopPropagation();
|
|
202
196
|
item.action?.onClick();
|
|
203
197
|
if (item.action?.closeOnClick !== false) {
|
|
204
198
|
onDismiss(item.id);
|
|
205
199
|
}
|
|
206
|
-
}, children: item.action.label })) : null] })] }), item.closeButton ? (_jsx(IconButton, { className:
|
|
200
|
+
}, children: item.action.label })) : null] })] }), item.closeButton ? (_jsx(IconButton, { className: "oui-toast-close", size: 1, v: "ghost", icon: _jsx(LuX, { size: 14 }), "aria-label": copy.common.dismissNotification, onClick: (event) => {
|
|
207
201
|
event.stopPropagation();
|
|
208
202
|
onDismiss(item.id);
|
|
209
|
-
} })) : null, hasProgress ? (_jsx("span", { className:
|
|
203
|
+
} })) : null, hasProgress ? (_jsx("span", { className: "oui-toast-progress", style: { '--oui-toast-duration': `${duration}ms` } }, item.createdAt)) : null] }) }));
|
|
210
204
|
}
|
|
211
205
|
function toastDuration(item) {
|
|
212
206
|
return item.duration ?? DEFAULT_TOAST_DURATION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAQH,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAC;AAEf,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAQH,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAqBxF,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,OAAO,sGAmFlB,CAAC"}
|
|
@@ -16,7 +16,7 @@ export const Tooltip = forwardRef(function Tooltip({ content, children, side = '
|
|
|
16
16
|
setInternalOpen(nextOpen);
|
|
17
17
|
onOpenChange?.(nextOpen);
|
|
18
18
|
};
|
|
19
|
-
const { triggerRef, contentRef, present, state, style
|
|
19
|
+
const { triggerRef, contentRef, present, state, style } = useFloatingLayer({
|
|
20
20
|
open: actualOpen,
|
|
21
21
|
presenceDuration: 140,
|
|
22
22
|
side,
|
|
@@ -33,14 +33,12 @@ export const Tooltip = forwardRef(function Tooltip({ content, children, side = '
|
|
|
33
33
|
},
|
|
34
34
|
onBlur: () => setOpen(false),
|
|
35
35
|
};
|
|
36
|
-
const trigger = isValidElement(children)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
: (_jsx("span", { ref: composeRefs(triggerRef, ref), className: 'oui-tooltip-trigger', "data-testid": testId, ...triggerHandlers, children: children }));
|
|
43
|
-
return (_jsxs(_Fragment, { children: [trigger, present ? (_jsx(Portal, { children: _jsx("div", { ref: contentRef, role: 'tooltip', className: cn('oui-tooltip-content', className), "data-state": state, "data-layer": 'dropdown', "data-testid": testId ? `${testId}-content` : undefined, style: {
|
|
36
|
+
const trigger = isValidElement(children) ? (cloneTooltipTrigger(children, {
|
|
37
|
+
ref: composeRefs(triggerRef, ref),
|
|
38
|
+
testId,
|
|
39
|
+
...triggerHandlers,
|
|
40
|
+
})) : (_jsx("span", { ref: composeRefs(triggerRef, ref), className: "oui-tooltip-trigger", "data-testid": testId, ...triggerHandlers, children: children }));
|
|
41
|
+
return (_jsxs(_Fragment, { children: [trigger, present ? (_jsx(Portal, { children: _jsx("div", { ref: contentRef, role: "tooltip", className: cn('oui-tooltip-content', className), "data-state": state, "data-layer": "dropdown", "data-testid": testId ? `${testId}-content` : undefined, style: {
|
|
44
42
|
...style,
|
|
45
43
|
zIndex: overlayLayerZIndex(overlay.zIndex, 'dropdown', layerIndex),
|
|
46
44
|
}, children: content }) })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../../src/components/VisuallyHidden/VisuallyHidden.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../../src/components/VisuallyHidden/VisuallyHidden.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAIlE,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,MAAM,CAAC,GAAG;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc;aAHd,MAAM;mDAclB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodePreview.d.ts","sourceRoot":"","sources":["../../src/example/CodePreview.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"CodePreview.d.ts","sourceRoot":"","sources":["../../src/example/CodePreview.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAmCjD,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,MAAM,GACT,EAAE,WAAW,GAAG;IACb,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,2CAYA;AAED,wBAAgB,iBAAiB,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,MAAM,GACT,EAAE,WAAW,GAAG;IACb,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,2CAMA;AAED,wBAAgB,WAAW,CAAC,EACxB,EAAE,EACF,KAAK,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,QAAQ,GACX,EAAE,WAAW,GAAG;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACvB,2CAUA;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CA4BzD;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAe,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,2CA0ChG;AAED,wBAAgB,gBAAgB,CAAC,EAC7B,OAAO,EACP,OAAO,GACV,EAAE;IACC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB,2CAwBA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo, useState
|
|
3
|
+
import { useMemo, useState } from 'react';
|
|
4
4
|
import { LuInfo, LuX } from 'react-icons/lu';
|
|
5
5
|
import { CopyIconButton, Flex, IconButton, Modal, ScrollArea } from '..';
|
|
6
6
|
import { cn } from '../utils/cn';
|
|
@@ -23,36 +23,36 @@ function highlightedCode(code) {
|
|
|
23
23
|
return (_jsx("span", { className: className, children: part }, `${lineIndex}-${partIndex}`));
|
|
24
24
|
});
|
|
25
25
|
return [
|
|
26
|
-
_jsx("span", { className:
|
|
26
|
+
_jsx("span", { className: "oui-code-line", children: rendered.length > 0 ? rendered : ' ' }, `line-${lineIndex}`),
|
|
27
27
|
];
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
export function CodeInfoButton({ title, code, onOpen, }) {
|
|
31
|
-
return (_jsx(IconButton, { className:
|
|
31
|
+
return (_jsx(IconButton, { className: "oui-code-info-button", size: 1, v: "pad", tone: "info", icon: _jsx(LuInfo, { size: 14 }), "aria-label": `Show ${title} code`, onClick: () => onOpen({ title, code }) }));
|
|
32
32
|
}
|
|
33
33
|
export function ExampleTileHeader({ title, code, onOpen, }) {
|
|
34
|
-
return (_jsx(Flex, { className:
|
|
34
|
+
return (_jsx(Flex, { className: "oui-ui-tile-head", a: "s", g: 1, wrap: true, children: _jsx(CodeInfoButton, { title: title, code: code, onOpen: onOpen }) }));
|
|
35
35
|
}
|
|
36
36
|
export function ExampleTile({ id, title, code, onOpen, className, children, }) {
|
|
37
|
-
return (_jsxs("div", { id: id, className: cn('oui-section oui-ui-tile', className), children: [_jsxs("div", { className:
|
|
37
|
+
return (_jsxs("div", { id: id, className: cn('oui-section oui-ui-tile', className), children: [_jsxs("div", { className: "oui-ui-tile-body", children: [_jsx(ExampleTileHeader, { title: title, code: code, onOpen: onOpen }), children] }), _jsx(InlineCodeBlock, { code: code })] }));
|
|
38
38
|
}
|
|
39
39
|
export function InlineCodeBlock({ code }) {
|
|
40
40
|
const [expanded, setExpanded] = useState(false);
|
|
41
41
|
const lineCount = code.split('\n').length;
|
|
42
42
|
const collapsible = lineCount > 9;
|
|
43
|
-
return (_jsxs("div", { className:
|
|
43
|
+
return (_jsxs("div", { className: "oui-code-inline-panel", "data-expanded": expanded ? 'true' : 'false', "data-collapsible": collapsible ? 'true' : 'false', style: { '--oui-code-lines': lineCount }, children: [_jsx("div", { className: "oui-code-inline-content", children: _jsx(CodeBlock, { code: code, mode: "inline" }) }), collapsible ? _jsx("div", { className: "oui-code-inline-fade", "aria-hidden": true }) : null, collapsible ? (_jsx("button", { type: "button", className: "oui-code-inline-toggle", "aria-expanded": expanded, onClick: () => setExpanded((current) => !current), children: expanded ? 'Hide code' : 'Show code' })) : null] }));
|
|
44
44
|
}
|
|
45
45
|
export function CodeBlock({ code, mode = 'scroll' }) {
|
|
46
46
|
const content = useMemo(() => highlightedCode(code), [code]);
|
|
47
|
-
const codeNode = (_jsx("pre", { className:
|
|
47
|
+
const codeNode = (_jsx("pre", { className: "oui-code-preview", children: _jsx("code", { children: content }) }));
|
|
48
48
|
if (mode === 'inline') {
|
|
49
|
-
return (_jsxs("div", { className:
|
|
49
|
+
return (_jsxs("div", { className: "oui-code-preview-wrap", children: [_jsx(CopyIconButton, { className: "oui-code-preview-copy", text: code, label: "Copy code", successMessage: "Code copied", size: 1, v: "soft" }), _jsx(ScrollArea, { className: "oui-code-preview-scroll oui-code-preview-scroll-inline", scrollbars: "horizontal", children: codeNode })] }));
|
|
50
50
|
}
|
|
51
|
-
return (_jsxs("div", { className:
|
|
51
|
+
return (_jsxs("div", { className: "oui-code-preview-wrap", children: [_jsx(CopyIconButton, { className: "oui-code-preview-copy", text: code, label: "Copy code", successMessage: "Code copied", size: 1, v: "soft" }), _jsx(ScrollArea, { className: "oui-code-preview-scroll", children: codeNode })] }));
|
|
52
52
|
}
|
|
53
53
|
export function CodePreviewModal({ example, onClose, }) {
|
|
54
54
|
return (_jsxs(Modal, { open: example !== null, onOpenChange: (open) => {
|
|
55
55
|
if (!open)
|
|
56
56
|
onClose();
|
|
57
|
-
}, maxWidth: 760, children: [_jsxs(Modal.Header, { children: [_jsxs("div", { className:
|
|
57
|
+
}, maxWidth: 760, children: [_jsxs(Modal.Header, { children: [_jsxs("div", { className: "oui-modal-title-wrap", children: [_jsx("h2", { className: "oui-modal-title", children: example?.title ?? 'Component code' }), _jsx("p", { className: "oui-modal-description", children: "Import and usage example." })] }), _jsx(IconButton, { v: "ghost", icon: _jsx(LuX, { size: 18 }), "aria-label": "Close", onClick: onClose })] }), _jsx(Modal.Body, { children: example ? _jsx(CodeBlock, { code: example.code }) : null })] }));
|
|
58
58
|
}
|
|
@@ -5,6 +5,6 @@ type ActionsSectionProps = {
|
|
|
5
5
|
onOpenCode: (example: CodeExample) => void;
|
|
6
6
|
onOpenPalette: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare function ActionsSection({ menuItems, onOpenCode, onOpenPalette
|
|
8
|
+
export declare function ActionsSection({ menuItems, onOpenCode, onOpenPalette }: ActionsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=ExampleActionsSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleActionsSection.d.ts","sourceRoot":"","sources":["../../src/example/ExampleActionsSection.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAYH,KAAK,QAAQ,EAChB,MAAM,IAAI,CAAC;AAEZ,OAAO,
|
|
1
|
+
{"version":3,"file":"ExampleActionsSection.d.ts","sourceRoot":"","sources":["../../src/example/ExampleActionsSection.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAYH,KAAK,QAAQ,EAChB,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG9D,KAAK,mBAAmB,GAAG;IACvB,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACnC,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,mBAAmB,2CA6V3F"}
|
|
@@ -5,6 +5,6 @@ import { Button, ContextMenu, CopyButton, CopyIconButton, Flex, IconButton, Icon
|
|
|
5
5
|
import { ExampleTile } from './CodePreview';
|
|
6
6
|
import { codeSamples } from './codeSamples';
|
|
7
7
|
import { UiExampleSection } from './UiExampleSection';
|
|
8
|
-
export function ActionsSection({ menuItems, onOpenCode, onOpenPalette
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx(UiExampleSection, { id:
|
|
8
|
+
export function ActionsSection({ menuItems, onOpenCode, onOpenPalette }) {
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(UiExampleSection, { id: "buttons-example", title: "Buttons", description: "Button variants, tones, sizes, loading states and press animation.", children: _jsxs(ExampleTile, { title: "Buttons", code: codeSamples.buttons, onOpen: onOpenCode, children: [_jsxs("div", { className: "oui-ui-row", children: [_jsx(Button, { size: 3, children: "Solid" }), _jsx(Button, { size: 3, v: "soft", children: "Soft" }), _jsx(Button, { size: 3, v: "surface", children: "Surface" }), _jsx(Button, { size: 3, v: "pad", children: "Pad" }), _jsx(Button, { size: 3, v: "outline", children: "Outline" }), _jsx(Button, { size: 3, v: "ghost", children: "Ghost" })] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(Button, { size: 3, tone: "success", leftIcon: _jsx(LuCheck, { size: 16 }), children: "Success" }), _jsx(Button, { size: 3, tone: "warning", v: "soft", leftIcon: _jsx(LuTriangleAlert, { size: 16 }), children: "Warning" }), _jsx(Button, { size: 3, tone: "info", v: "soft", leftIcon: _jsx(LuInfo, { size: 16 }), children: "Info" }), _jsx(Button, { size: 3, tone: "danger", v: "soft", leftIcon: _jsx(LuTrash2, { size: 16 }), children: "Delete" }), _jsx(Button, { size: 3, loading: true, children: "Loading" }), _jsx(Button, { size: 3, v: "surface", loading: true, leftIcon: _jsx(LuCheck, { size: 16 }), children: "Save" }), _jsx(Button, { size: 3, tone: "success", loading: true, leftIcon: _jsx(LuCheck, { size: 16 }), children: "Success" }), _jsx(Spinner, {})] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(Button, { size: 1, v: "surface", children: "Size 1" }), _jsx(Button, { size: 2, v: "surface", children: "Size 2" }), _jsx(Button, { size: 3, v: "surface", children: "Size 3" }), _jsx(Button, { size: 4, v: "surface", children: "Size 4" })] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(Button, { size: 1, children: "Solid 1" }), _jsx(Button, { size: 2, v: "soft", children: "Soft 2" }), _jsx(Button, { size: 3, v: "surface", children: "Surface 3" }), _jsx(Button, { size: 3, v: "pad", children: "Pad 3" }), _jsx(Button, { size: 4, v: "outline", children: "Outline 4" }), _jsx(Button, { size: 2, v: "ghost", children: "Ghost 2" })] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(Button, { v: "surface", pressAnimation: "translate", children: "Press translate" }), _jsx(Button, { v: "surface", pressAnimation: "scale", children: "Press scale" }), _jsx(Button, { v: "surface", pressAnimation: "soft", children: "Press soft" }), _jsx(Button, { v: "surface", pressAnimation: "none", children: "Press none" })] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(CopyButton, { text: "https://orcestr.dev/requests/PR-2026-0900", label: "Copy link", successMessage: "Link copied", v: "surface" }), _jsx(CopyIconButton, { text: "PR-2026-0900", label: "Copy request number", successMessage: "Request number copied", v: "surface" })] })] }) }), _jsx(UiExampleSection, { id: "icon-text-buttons-example", title: "Icon text buttons", description: "Button and link-button behavior with library-owned icon spacing.", children: _jsx(ExampleTile, { title: "IconTextButton", code: codeSamples.iconTextButton, onOpen: onOpenCode, children: _jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(IconTextButton, { icon: _jsx(LuPackagePlus, { size: 16 }), children: "Create PO" }), _jsx(IconTextButton, { v: "soft", tone: "info", icon: _jsx(LuCopy, { size: 16 }), children: "Duplicate" }), _jsx(IconTextButton, { href: "#icon-text-buttons-example", v: "surface", icon: _jsx(LuExternalLink, { size: 16 }), children: "Link action" }), _jsx(IconTextButton, { v: "outline", iconSide: "end", icon: _jsx(LuExternalLink, { size: 16 }), children: "Open details" })] }) }) }), _jsx(UiExampleSection, { id: "icon-buttons-example", title: "Icon buttons", description: "Icon-only actions, loading state, menu trigger and command entry.", children: _jsxs(ExampleTile, { title: "Icon buttons", code: codeSamples.iconButtons, onOpen: onOpenCode, children: [_jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(IconButton, { v: "solid", icon: _jsx(LuCheck, { size: 17 }), "aria-label": "Solid icon" }), _jsx(IconButton, { v: "soft", icon: _jsx(LuSearch, { size: 17 }), "aria-label": "Search icon" }), _jsx(IconButton, { v: "surface", icon: _jsx(LuUpload, { size: 17 }), "aria-label": "Upload icon" }), _jsx(IconButton, { v: "pad", icon: _jsx(LuShield, { size: 17 }), "aria-label": "Security icon" }), _jsx(IconButton, { v: "outline", icon: _jsx(LuInfo, { size: 17 }), "aria-label": "Outline icon" }), _jsx(IconButton, { v: "ghost", icon: _jsx(LuEllipsis, { size: 17 }), "aria-label": "Ghost icon" })] }), _jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(IconButton, { size: 1, v: "surface", icon: _jsx(LuSearch, { size: 13 }), "aria-label": "Size 1 search" }), _jsx(IconButton, { size: 2, v: "surface", icon: _jsx(LuDownload, { size: 15 }), "aria-label": "Size 2 download" }), _jsx(IconButton, { size: 3, v: "surface", icon: _jsx(LuRefreshCw, { size: 17 }), "aria-label": "Size 3 refresh" }), _jsx(IconButton, { size: 4, v: "surface", icon: _jsx(LuSettings, { size: 19 }), "aria-label": "Size 4 settings" }), _jsx(IconButton, { size: 3, v: "pad", round: false, r: 3, icon: _jsx(LuCommand, { size: 17 }), "aria-label": "Square pad icon" }), _jsx(IconButton, { size: 3, v: "outline", loading: true, icon: _jsx(LuRefreshCw, { size: 17 }), "aria-label": "Loading icon" })] }), _jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(IconButton, { v: "surface", icon: _jsx(LuBell, { size: 17 }), badge: 64, "aria-label": "Notifications" }), _jsx(IconButton, { v: "surface", icon: _jsx(LuMessageSquare, { size: 17 }), badge: 99, "aria-label": "Unread chats" }), _jsx(IconButton, { v: "pad", icon: _jsx(LuShield, { size: 17 }), badge: 3, badgeTone: "warning", "aria-label": "Security warnings" }), _jsx(IconButton, { v: "ghost", icon: _jsx(LuDownload, { size: 17 }), badge: "new", badgeTone: "info", "aria-label": "New export" })] }), _jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(IconButton, { size: 1, v: "ghost", icon: _jsx(LuEllipsis, { size: 13 }), "aria-label": "Ghost size 1" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuEllipsis, { size: 15 }), "aria-label": "Ghost size 2" }), _jsx(IconButton, { size: 3, v: "ghost", icon: _jsx(LuEllipsis, { size: 17 }), "aria-label": "Ghost size 3" }), _jsx(IconButton, { size: 4, v: "ghost", icon: _jsx(LuEllipsis, { size: 19 }), "aria-label": "Ghost size 4" })] }), _jsxs("div", { className: "oui-ui-row", children: [_jsx(Tooltip, { content: "Notifications", children: _jsx(IconButton, { v: "surface", icon: _jsx(LuBell, { size: 17 }), badge: 8, "aria-label": "Notifications" }) }), _jsx(IconButton, { v: "surface", loading: true, icon: _jsx(LuRefreshCw, { size: 17 }), "aria-label": "Loading action" }), _jsx(IconButton, { v: "pad", icon: _jsx(LuSettings, { size: 17 }), "aria-label": "Pad action" }), _jsx(Menu, { trigger: _jsx(IconButton, { v: "surface", icon: _jsx(LuEllipsis, { size: 17 }), "aria-label": "Actions" }), items: menuItems }), _jsx(Button, { v: "surface", leftIcon: _jsx(LuCommand, { size: 16 }), onClick: onOpenPalette, children: "Commands" })] })] }) }), _jsx(UiExampleSection, { id: "context-menu-example", title: "Context menu", description: "Right-click menu layer using shared action menu items.", children: _jsx(ExampleTile, { title: "ContextMenu", code: codeSamples.contextMenu, onOpen: onOpenCode, children: _jsx(ContextMenu, { items: menuItems, children: _jsxs("div", { className: "oui-ui-context-menu-demo", children: [_jsx(Text, { fs: "13px", fw: 760, children: "Right-click this row" }), _jsx(Text, { fs: "12px", tone: "muted", children: "ContextMenu reuses Menu item sizing, tones and confirm actions." })] }) }) }) })] }));
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleApplicationSection.d.ts","sourceRoot":"","sources":["../../src/example/ExampleApplicationSection.tsx"],"names":[],"mappings":"AAgDA,OAAO,
|
|
1
|
+
{"version":3,"file":"ExampleApplicationSection.d.ts","sourceRoot":"","sources":["../../src/example/ExampleApplicationSection.tsx"],"names":[],"mappings":"AAgDA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG9D,KAAK,mBAAmB,GAAG;IACvB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C,CAAC;AAIF,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,2CA4RrE"}
|
|
@@ -18,49 +18,97 @@ export function ApplicationSection({ onOpenCode }) {
|
|
|
18
18
|
{
|
|
19
19
|
key: 'demand',
|
|
20
20
|
items: [
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
{
|
|
22
|
+
key: 'overview',
|
|
23
|
+
label: 'Overview',
|
|
24
|
+
icon: _jsx(LuLayoutDashboard, { size: 17 }),
|
|
25
|
+
active: shellActiveKey === 'overview',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: 'requests',
|
|
29
|
+
label: 'Requests',
|
|
30
|
+
icon: _jsx(LuTruck, { size: 17 }),
|
|
31
|
+
active: shellActiveKey === 'requests',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: 'orders',
|
|
35
|
+
label: 'Supplier orders',
|
|
36
|
+
icon: _jsx(LuClipboardList, { size: 17 }),
|
|
37
|
+
active: shellActiveKey === 'orders',
|
|
38
|
+
},
|
|
24
39
|
],
|
|
25
40
|
},
|
|
26
41
|
{
|
|
27
|
-
key: '
|
|
42
|
+
key: 'inventory',
|
|
28
43
|
items: [
|
|
29
|
-
{
|
|
30
|
-
|
|
44
|
+
{
|
|
45
|
+
key: 'products',
|
|
46
|
+
label: 'Products',
|
|
47
|
+
icon: _jsx(LuBox, { size: 17 }),
|
|
48
|
+
active: shellActiveKey === 'products',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: 'calendar',
|
|
52
|
+
label: 'Calendar',
|
|
53
|
+
icon: _jsx(LuCalendar, { size: 17 }),
|
|
54
|
+
active: shellActiveKey === 'calendar',
|
|
55
|
+
},
|
|
31
56
|
],
|
|
32
57
|
},
|
|
33
58
|
];
|
|
34
|
-
return (_jsxs(_Fragment, { children: [_jsxs(UiExampleSection, { id:
|
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsxs(UiExampleSection, { id: "app-shell-example", title: "AppShell", description: "Application shell primitives for module frames.", children: [_jsx(ExampleTile, { title: "Fullscreen AppShell preview", code: codeSamples.appShell, onOpen: onOpenCode, children: _jsx(IconTextButton, { icon: _jsx(LuLayoutDashboard, { size: 16 }), onClick: () => setAppShellOpen(true), children: "Open AppShell preview" }) }), _jsxs(SpecialModal, { open: appShellOpen, onOpenChange: setAppShellOpen, size: "full", scroll: "body", density: "compact", contentClassName: "oui-ui-app-shell-modal", children: [_jsxs(SpecialModal.Header, { className: "oui-ui-app-shell-modal-header", children: [_jsx(Flex, { a: "c", g: 2, minW: 0, children: _jsx(Text, { fw: 760, children: "AppShell preview" }) }), _jsxs(Flex, { a: "c", g: 1, children: [_jsx(Button, { className: "oui-ui-app-shell-mode-toggle", size: 2, v: "surface", onClick: () => {
|
|
35
60
|
setShellMobileOpen(false);
|
|
36
61
|
setAppShellPreviewMode((mode) => mode === 'desktop' ? 'phone' : 'desktop');
|
|
37
|
-
}, children: appShellPreviewMode === 'desktop'
|
|
38
|
-
? 'Phone view'
|
|
39
|
-
: 'Desktop view' }), _jsx(SpecialModal.Close, {})] })] }), _jsx(SpecialModal.Body, { className: 'oui-ui-app-shell-modal-body', children: _jsx("div", { className: 'oui-ui-app-shell-preview-stage', "data-mode": appShellPreviewMode, children: _jsx(DemoAppShellPreview, { mode: appShellPreviewMode, mobileOpen: shellMobileOpen, onMobileOpenChange: setShellMobileOpen, sidebarSide: appShellSidebarSide, onToggleSidebarSide: () => setAppShellSidebarSide((side) => side === 'left' ? 'right' : 'left'), groups: shellGroups, onNavigate: (item) => setShellActiveKey(item.key) }) }) })] })] }), _jsx(UiExampleSection, { id: 'app-sidebar-example', title: 'AppSidebar', description: 'Deliveries-style sidebar with active indicator and footer actions.', children: _jsx(ExampleTile, { title: 'AppSidebar', code: codeSamples.appSidebar, onOpen: onOpenCode, children: _jsx("div", { className: 'oui-ui-app-sidebar-demo', children: _jsx(AppSidebar, { header: (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'oui-app-sidebar-brand', children: [_jsx("span", { className: 'oui-app-sidebar-logo', children: _jsx("span", { className: 'oui-ui-demo-logo', children: "O" }) }), _jsx("span", { className: 'oui-app-sidebar-title', children: "Deliveries" })] }), _jsx("div", { className: 'oui-app-sidebar-actions', children: _jsx(IconButton, { size: 2, v: 'ghost', icon: _jsx(LuEllipsis, { size: 16 }), "aria-label": 'Sidebar actions' }) })] })), itemH: 38, onNavigate: (item) => setSidebarActiveKey(item.key), groups: [
|
|
62
|
+
}, children: appShellPreviewMode === 'desktop' ? 'Phone view' : 'Desktop view' }), _jsx(SpecialModal.Close, {})] })] }), _jsx(SpecialModal.Body, { className: "oui-ui-app-shell-modal-body", children: _jsx("div", { className: "oui-ui-app-shell-preview-stage", "data-mode": appShellPreviewMode, children: _jsx(DemoAppShellPreview, { mode: appShellPreviewMode, mobileOpen: shellMobileOpen, onMobileOpenChange: setShellMobileOpen, sidebarSide: appShellSidebarSide, onToggleSidebarSide: () => setAppShellSidebarSide((side) => side === 'left' ? 'right' : 'left'), groups: shellGroups, onNavigate: (item) => setShellActiveKey(item.key) }) }) })] })] }), _jsx(UiExampleSection, { id: "app-sidebar-example", title: "AppSidebar", description: "Deliveries-style sidebar with active indicator and footer actions.", children: _jsx(ExampleTile, { title: "AppSidebar", code: codeSamples.appSidebar, onOpen: onOpenCode, children: _jsx("div", { className: "oui-ui-app-sidebar-demo", children: _jsx(AppSidebar, { header: _jsxs(_Fragment, { children: [_jsxs("div", { className: "oui-app-sidebar-brand", children: [_jsx("span", { className: "oui-app-sidebar-logo", children: _jsx("span", { className: "oui-ui-demo-logo", children: "O" }) }), _jsx("span", { className: "oui-app-sidebar-title", children: "Deliveries" })] }), _jsx("div", { className: "oui-app-sidebar-actions", children: _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuEllipsis, { size: 16 }), "aria-label": "Sidebar actions" }) })] }), itemH: 38, onNavigate: (item) => setSidebarActiveKey(item.key), groups: [
|
|
40
63
|
{
|
|
41
64
|
key: 'main',
|
|
42
65
|
items: [
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
66
|
+
{
|
|
67
|
+
key: 'overview',
|
|
68
|
+
label: 'Overview',
|
|
69
|
+
icon: _jsx(LuLayoutDashboard, { size: 17 }),
|
|
70
|
+
active: sidebarActiveKey === 'overview',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'requests',
|
|
74
|
+
label: 'Requests',
|
|
75
|
+
icon: _jsx(LuTruck, { size: 17 }),
|
|
76
|
+
active: sidebarActiveKey === 'requests',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: 'orders',
|
|
80
|
+
label: 'Supplier orders',
|
|
81
|
+
icon: _jsx(LuClipboardList, { size: 17 }),
|
|
82
|
+
active: sidebarActiveKey === 'orders',
|
|
83
|
+
},
|
|
46
84
|
],
|
|
47
85
|
},
|
|
48
86
|
{
|
|
49
87
|
key: 'inventory',
|
|
50
88
|
items: [
|
|
51
|
-
{
|
|
52
|
-
|
|
89
|
+
{
|
|
90
|
+
key: 'products',
|
|
91
|
+
label: 'Products',
|
|
92
|
+
icon: _jsx(LuBox, { size: 17 }),
|
|
93
|
+
active: sidebarActiveKey === 'products',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: 'calendar',
|
|
97
|
+
label: 'Calendar',
|
|
98
|
+
icon: _jsx(LuCalendar, { size: 17 }),
|
|
99
|
+
disabled: true,
|
|
100
|
+
},
|
|
53
101
|
],
|
|
54
102
|
},
|
|
55
|
-
], footer:
|
|
103
|
+
], footer: _jsxs(Flex, { col: true, g: 2, children: [_jsxs(Flex, { g: 1, a: "c", children: [_jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuBell, { size: 15 }), badge: 64, "aria-label": "Notifications" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuSettings, { size: 15 }), "aria-label": "Settings" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuCog, { size: 15 }), "aria-label": "Developer tools" })] }), _jsx(Text, { fs: "12px", tone: "muted", children: "Admin workspace" })] }) }) }) }) }), _jsxs(UiExampleSection, { id: "special-modal-example", title: "SpecialModal", description: "Large entity modal shell for rich operational dialogs.", children: [_jsx(ExampleTile, { title: "SpecialModal", code: codeSamples.specialModal, onOpen: onOpenCode, children: _jsx(Button, { onClick: () => setSpecialModalOpen(true), children: "Open special modal" }) }), _jsxs(SpecialModal, { open: specialModalOpen, onOpenChange: setSpecialModalOpen, size: "lg", scroll: "body", children: [_jsx(SpecialModal.Header, { title: "Request PR-2026-0900", meta: _jsxs(Flex, { g: 2, a: "c", wrap: true, children: [_jsx(Badge, { tone: "success", children: "Closed" }), _jsx(Badge, { tone: "neutral", children: "RUB" })] }), actions: _jsx(SpecialModal.Close, {}) }), _jsx(SpecialModal.Body, { children: _jsxs(Stack, { g: 3, children: [_jsxs(Flex, { g: 4, wrap: true, children: [_jsxs(Stack, { g: 0, w: "min(100%, 220px)", children: [_jsx(Text, { fs: "12px", tone: "muted", children: "Supplier" }), _jsx(Text, { fw: 760, children: "Northwind Trading LLC" })] }), _jsxs(Stack, { g: 0, w: "min(100%, 180px)", children: [_jsx(Text, { fs: "12px", tone: "muted", children: "Plan arrival" }), _jsx(Text, { fw: 760, children: "25.06.2026" })] })] }), _jsx(TableLikePreview, {})] }) }), _jsx(SpecialModal.Footer, { children: _jsxs(Flex, { g: 2, j: "e", w: "100%", children: [_jsx(Button, { v: "surface", onClick: () => setSpecialModalOpen(false), children: "Close" }), _jsx(Button, { children: "Save" })] }) })] })] })] }));
|
|
56
104
|
}
|
|
57
105
|
function DemoAppShellPreview({ mode, mobileOpen, onMobileOpenChange, sidebarSide, onToggleSidebarSide, groups, onNavigate, }) {
|
|
58
106
|
const isPhone = mode === 'phone';
|
|
59
107
|
const isRight = sidebarSide === 'right';
|
|
60
|
-
return (_jsx(AppShell, { className:
|
|
108
|
+
return (_jsx(AppShell, { className: "oui-ui-app-shell-preview", sidebarMode: isPhone ? 'mobile' : 'desktop', sidebarSide: sidebarSide, sidebarWidth: 300, maxWidth: "100%", contentInset: 0, sidebarOpen: mobileOpen, desktopSidebarOpen: true, onSidebarOpenChange: onMobileOpenChange, header: _jsx(AppShellHeader, { visibility: "always", sidebarOpen: mobileOpen, onSidebarOpenChange: onMobileOpenChange, navigationVisibility: "mobile", actions: _jsx(DemoHeaderActions, {}) }), sidebar: _jsx(AppSidebar, { side: sidebarSide, header: _jsxs(_Fragment, { children: [_jsx(DemoShellBrand, {}), _jsxs("div", { className: "oui-app-sidebar-actions", children: [_jsx(Tooltip, { content: "Back", children: _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuArrowLeft, { size: 17 }), "aria-label": "Back" }) }), _jsx(Tooltip, { content: isRight ? 'Move sidebar left' : 'Move sidebar right', children: _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuArrowLeftRight, { size: 17 }), "aria-label": isRight ? 'Move sidebar left' : 'Move sidebar right', onClick: onToggleSidebarSide }) }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuEllipsis, { size: 16 }), "aria-label": "Sidebar actions" })] })] }), itemH: 38, onNavigate: onNavigate, groups: groups, footer: _jsx(DemoSidebarFooter, {}) }), children: _jsxs(AppShellContent, { scroll: false, children: [_jsx(PageTitleBlock, { title: "Requests", caption: "Module workspace with responsive header and AppSidebar navigation.", action: _jsx(IconButton, { size: 2, v: "pad", icon: _jsx(LuEllipsis, { size: 16 }), "aria-label": "More actions" }) }), _jsx(TableLikePreview, {})] }) }));
|
|
61
109
|
}
|
|
62
110
|
function DemoShellBrand() {
|
|
63
|
-
return (_jsxs("div", { className:
|
|
111
|
+
return (_jsxs("div", { className: "oui-app-sidebar-brand", children: [_jsx("span", { className: "oui-app-sidebar-logo", children: _jsx("span", { className: "oui-ui-demo-logo", children: "O" }) }), _jsx("span", { className: "oui-app-sidebar-title", children: "Deliveries" })] }));
|
|
64
112
|
}
|
|
65
113
|
function DemoHeaderActions() {
|
|
66
114
|
const [locale, setLocale] = useState('en');
|
|
@@ -78,11 +126,11 @@ function DemoHeaderActions() {
|
|
|
78
126
|
onSelect: () => setLocale('en'),
|
|
79
127
|
},
|
|
80
128
|
];
|
|
81
|
-
return (_jsxs(Flex, { className:
|
|
129
|
+
return (_jsxs(Flex, { className: "oui-ui-app-shell-header-actions-demo", a: "c", g: 1, children: [_jsx(IconTextButton, { className: "oui-ui-app-shell-quick-jump", size: 2, v: "soft", tone: "neutral", icon: _jsx(LuSearch, { size: 14 }), children: "Quick jump" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuBell, { size: 18 }), badge: 64, "aria-label": "Notifications" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuMessageSquare, { size: 18 }), badge: 99, "aria-label": "Messages" }), _jsx(Menu, { align: "end", items: languageItems, trigger: _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuLanguages, { size: 18 }), "aria-label": `Language: ${locale.toUpperCase()}` }) }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuSun, { size: 18 }), "aria-label": "Theme" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuShield, { size: 18 }), "aria-label": "Admin" })] }));
|
|
82
130
|
}
|
|
83
131
|
function DemoSidebarFooter() {
|
|
84
|
-
return (_jsxs(Flex, { col: true, g: 2, children: [_jsxs(Flex, { g: 1, a:
|
|
132
|
+
return (_jsxs(Flex, { col: true, g: 2, children: [_jsxs(Flex, { g: 1, a: "c", children: [_jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuHeadphones, { size: 15 }), "aria-label": "Support" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuBell, { size: 15 }), badge: 64, "aria-label": "Notifications" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuSettings, { size: 15 }), "aria-label": "Settings" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuFlaskConical, { size: 15 }), "aria-label": "Demo data" }), _jsx(IconButton, { size: 2, v: "ghost", icon: _jsx(LuBraces, { size: 15 }), "aria-label": "API" })] }), _jsx(Text, { fs: "12px", tone: "muted", children: "Admin workspace" })] }));
|
|
85
133
|
}
|
|
86
134
|
function TableLikePreview() {
|
|
87
|
-
return (_jsxs("div", { className:
|
|
135
|
+
return (_jsxs("div", { className: "oui-ui-application-table-preview", children: [['Brand', 'Name', 'Article', 'Qty', 'Price'].map((item) => (_jsx(Text, { fs: "12px", fw: 760, children: item }, item))), ['Stalex', 'Lathe machine', 'LATHE-8191', '22', '1250'].map((item) => (_jsx(Text, { fs: "13px", children: item }, item)))] }));
|
|
88
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleBasicsSections.d.ts","sourceRoot":"","sources":["../../src/example/ExampleBasicsSections.tsx"],"names":[],"mappings":"AAuBA,OAAO,
|
|
1
|
+
{"version":3,"file":"ExampleBasicsSections.d.ts","sourceRoot":"","sources":["../../src/example/ExampleBasicsSections.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG9D,KAAK,mBAAmB,GAAG;IACvB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,2CA8E9D;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,2CAgXhE"}
|