@primecoderin/fast-ui-react 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/LICENSE +21 -0
- package/README.md +180 -3
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/charts.d.ts +7 -0
- package/dist/charts.js +7 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +92 -0
- package/dist/components/Button/Button.d.ts +44 -0
- package/dist/components/Button/Button.js +221 -0
- package/dist/components/Checkbox/CheckboxBox.d.ts +33 -0
- package/dist/components/Checkbox/CheckboxBox.js +148 -0
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +26 -0
- package/dist/components/CodeSnippet/CodeSnippet.js +153 -0
- package/dist/components/Collapsible/Collapsible.d.ts +20 -0
- package/dist/components/Collapsible/Collapsible.js +97 -0
- package/dist/components/Container/Container.d.ts +301 -0
- package/dist/components/Container/Container.js +20 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.ts +22 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.js +141 -0
- package/dist/components/Grid/Grid.d.ts +311 -0
- package/dist/components/Grid/Grid.js +30 -0
- package/dist/components/IconTile/IconTile.d.ts +12 -0
- package/dist/components/IconTile/IconTile.js +70 -0
- package/dist/components/InlineError/InlineError.d.ts +9 -0
- package/dist/components/InlineError/InlineError.js +62 -0
- package/dist/components/Kbd/Kbd.d.ts +11 -0
- package/dist/components/Kbd/Kbd.js +31 -0
- package/dist/components/Link/Link.d.ts +18 -0
- package/dist/components/Link/Link.js +68 -0
- package/dist/components/Menu/ContextMenu.d.ts +18 -0
- package/dist/components/Menu/ContextMenu.js +68 -0
- package/dist/components/Menu/Menu.d.ts +86 -0
- package/dist/components/Menu/Menu.js +394 -0
- package/dist/components/OtpInput/OtpInput.d.ts +32 -0
- package/dist/components/OtpInput/OtpInput.js +177 -0
- package/dist/components/Popover/HoverPopover.d.ts +22 -0
- package/dist/components/Popover/HoverPopover.js +74 -0
- package/dist/components/Popover/Popover.d.ts +21 -0
- package/dist/components/Popover/Popover.js +64 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +17 -0
- package/dist/components/ProgressBar/ProgressBar.js +44 -0
- package/dist/components/Rating/Rating.d.ts +49 -0
- package/dist/components/Rating/Rating.js +241 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +23 -0
- package/dist/components/ScrollArea/ScrollArea.js +90 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +29 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +99 -0
- package/dist/components/Separator/Separator.d.ts +9 -0
- package/dist/components/Separator/Separator.js +34 -0
- package/dist/components/Skeleton/Skeleton.d.ts +31 -0
- package/dist/components/Skeleton/Skeleton.js +152 -0
- package/dist/components/Slider/Slider.d.ts +54 -0
- package/dist/components/Slider/Slider.js +178 -0
- package/dist/components/Spinner/Spinner.d.ts +17 -0
- package/dist/components/Spinner/Spinner.js +118 -0
- package/dist/components/Stack/Stack.d.ts +302 -0
- package/dist/components/Stack/Stack.js +14 -0
- package/dist/components/StateIcon/StateIcon.d.ts +11 -0
- package/dist/components/StateIcon/StateIcon.js +65 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +19 -0
- package/dist/components/StatusBadge/StatusBadge.js +82 -0
- package/dist/components/Tabs/Tabs.d.ts +28 -0
- package/dist/components/Tabs/Tabs.js +109 -0
- package/dist/components/Tag/Tag.d.ts +11 -0
- package/dist/components/Tag/Tag.js +66 -0
- package/dist/components/Toast/AppToaster.d.ts +8 -0
- package/dist/components/Toast/AppToaster.js +135 -0
- package/dist/components/Toast/toast-manager.d.ts +28 -0
- package/dist/components/Toast/toast-manager.js +47 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +26 -0
- package/dist/components/ToggleButton/ToggleButton.js +106 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +32 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +79 -0
- package/dist/components/Tooltip/Tooltip.d.ts +16 -0
- package/dist/components/Tooltip/Tooltip.js +58 -0
- package/dist/components/Tooltip/TooltipGroup.d.ts +22 -0
- package/dist/components/Tooltip/TooltipGroup.js +65 -0
- package/dist/components/Typography/Typography.d.ts +17 -0
- package/dist/components/Typography/Typography.js +100 -0
- package/dist/editor-forms.d.ts +1 -0
- package/dist/editor-forms.js +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.js +1 -0
- package/dist/fonts/LICENSE +93 -0
- package/dist/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts.css +69 -0
- package/dist/forms.d.ts +22 -0
- package/dist/forms.js +23 -0
- package/dist/foundation.css +23 -0
- package/dist/global.css +116 -0
- package/dist/hooks/useAppToast.d.ts +12 -0
- package/dist/hooks/useAppToast.js +29 -0
- package/dist/icons/icons.d.ts +43 -0
- package/dist/icons/icons.js +44 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +101 -0
- package/dist/patterns/Accordion/Accordion.d.ts +35 -0
- package/dist/patterns/Accordion/Accordion.js +139 -0
- package/dist/patterns/Alert/Alert.d.ts +38 -0
- package/dist/patterns/Alert/Alert.js +151 -0
- package/dist/patterns/AppShell/AppShell.d.ts +39 -0
- package/dist/patterns/AppShell/AppShell.js +218 -0
- package/dist/patterns/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/patterns/Breadcrumbs/Breadcrumbs.js +73 -0
- package/dist/patterns/Calendar/Calendar.d.ts +59 -0
- package/dist/patterns/Calendar/Calendar.js +283 -0
- package/dist/patterns/Calendar/DateRangePicker.d.ts +53 -0
- package/dist/patterns/Calendar/DateRangePicker.js +266 -0
- package/dist/patterns/Calendar/FormDateRangeField.d.ts +24 -0
- package/dist/patterns/Calendar/FormDateRangeField.js +138 -0
- package/dist/patterns/Card/Card.d.ts +26 -0
- package/dist/patterns/Card/Card.js +125 -0
- package/dist/patterns/Carousel/Carousel.d.ts +33 -0
- package/dist/patterns/Carousel/Carousel.js +127 -0
- package/dist/patterns/Cascader/Cascader.d.ts +53 -0
- package/dist/patterns/Cascader/Cascader.js +371 -0
- package/dist/patterns/Cascader/FormCascaderField.d.ts +21 -0
- package/dist/patterns/Cascader/FormCascaderField.js +130 -0
- package/dist/patterns/Charts/AreaChart.d.ts +13 -0
- package/dist/patterns/Charts/AreaChart.js +220 -0
- package/dist/patterns/Charts/BarChart.d.ts +11 -0
- package/dist/patterns/Charts/BarChart.js +220 -0
- package/dist/patterns/Charts/DonutChart.d.ts +37 -0
- package/dist/patterns/Charts/DonutChart.js +215 -0
- package/dist/patterns/Charts/GaugeChart.d.ts +44 -0
- package/dist/patterns/Charts/GaugeChart.js +210 -0
- package/dist/patterns/Charts/LineChart.d.ts +14 -0
- package/dist/patterns/Charts/LineChart.js +222 -0
- package/dist/patterns/Charts/Sparkline.d.ts +24 -0
- package/dist/patterns/Charts/Sparkline.js +81 -0
- package/dist/patterns/Charts/chart-parts.d.ts +139 -0
- package/dist/patterns/Charts/chart-parts.js +385 -0
- package/dist/patterns/Charts/gauge-math.d.ts +20 -0
- package/dist/patterns/Charts/gauge-math.js +21 -0
- package/dist/patterns/Charts/sparkline-path.d.ts +11 -0
- package/dist/patterns/Charts/sparkline-path.js +24 -0
- package/dist/patterns/ColorPicker/ColorPicker.d.ts +50 -0
- package/dist/patterns/ColorPicker/ColorPicker.js +590 -0
- package/dist/patterns/ColorPicker/FormColorField.d.ts +21 -0
- package/dist/patterns/ColorPicker/FormColorField.js +130 -0
- package/dist/patterns/ColorPicker/color-value.d.ts +19 -0
- package/dist/patterns/ColorPicker/color-value.js +72 -0
- package/dist/patterns/Combobox/Autocomplete.d.ts +48 -0
- package/dist/patterns/Combobox/Autocomplete.js +158 -0
- package/dist/patterns/Combobox/Combobox.d.ts +52 -0
- package/dist/patterns/Combobox/Combobox.js +195 -0
- package/dist/patterns/Combobox/ComboboxPopup.d.ts +24 -0
- package/dist/patterns/Combobox/ComboboxPopup.js +107 -0
- package/dist/patterns/Combobox/FormAutocompleteField.d.ts +17 -0
- package/dist/patterns/Combobox/FormAutocompleteField.js +119 -0
- package/dist/patterns/Combobox/FormComboboxField.d.ts +18 -0
- package/dist/patterns/Combobox/FormComboboxField.js +119 -0
- package/dist/patterns/Combobox/FormMultiSelectField.d.ts +18 -0
- package/dist/patterns/Combobox/FormMultiSelectField.js +119 -0
- package/dist/patterns/Combobox/MultiSelect.d.ts +54 -0
- package/dist/patterns/Combobox/MultiSelect.js +175 -0
- package/dist/patterns/CommandPalette/CommandPalette.d.ts +50 -0
- package/dist/patterns/CommandPalette/CommandPalette.js +193 -0
- package/dist/patterns/DataTable/DataTable.d.ts +107 -0
- package/dist/patterns/DataTable/DataTable.js +364 -0
- package/dist/patterns/DateTimePicker/DateTimePanel.d.ts +28 -0
- package/dist/patterns/DateTimePicker/DateTimePanel.js +444 -0
- package/dist/patterns/DateTimePicker/DateTimePicker.d.ts +75 -0
- package/dist/patterns/DateTimePicker/DateTimePicker.js +271 -0
- package/dist/patterns/DateTimePicker/FormDateTimeField.d.ts +32 -0
- package/dist/patterns/DateTimePicker/FormDateTimeField.js +148 -0
- package/dist/patterns/DateTimePicker/TimeSliders.d.ts +14 -0
- package/dist/patterns/DateTimePicker/TimeSliders.js +206 -0
- package/dist/patterns/DateTimePicker/picker-labels.d.ts +30 -0
- package/dist/patterns/DateTimePicker/picker-labels.js +23 -0
- package/dist/patterns/DateTimePicker/picker-values.d.ts +98 -0
- package/dist/patterns/DateTimePicker/picker-values.js +194 -0
- package/dist/patterns/DescriptionList/DescriptionList.d.ts +20 -0
- package/dist/patterns/DescriptionList/DescriptionList.js +57 -0
- package/dist/patterns/Dialog/Dialog.d.ts +26 -0
- package/dist/patterns/Dialog/Dialog.js +212 -0
- package/dist/patterns/Drawer/Drawer.d.ts +33 -0
- package/dist/patterns/Drawer/Drawer.js +153 -0
- package/dist/patterns/EmptyState/EmptyState.d.ts +35 -0
- package/dist/patterns/EmptyState/EmptyState.js +44 -0
- package/dist/patterns/FileUpload/FileUpload.d.ts +87 -0
- package/dist/patterns/FileUpload/FileUpload.js +417 -0
- package/dist/patterns/FileUpload/FormFileUploadField.d.ts +19 -0
- package/dist/patterns/FileUpload/FormFileUploadField.js +117 -0
- package/dist/patterns/FileUpload/add-files.d.ts +26 -0
- package/dist/patterns/FileUpload/add-files.js +35 -0
- package/dist/patterns/FileUpload/file-size.d.ts +14 -0
- package/dist/patterns/FileUpload/file-size.js +44 -0
- package/dist/patterns/FormField/CheckboxField.d.ts +26 -0
- package/dist/patterns/FormField/CheckboxField.js +97 -0
- package/dist/patterns/FormField/FieldFrame.d.ts +85 -0
- package/dist/patterns/FormField/FieldFrame.js +257 -0
- package/dist/patterns/FormField/FormCheckboxField.d.ts +17 -0
- package/dist/patterns/FormField/FormCheckboxField.js +92 -0
- package/dist/patterns/FormField/FormRadioGroupField.d.ts +16 -0
- package/dist/patterns/FormField/FormRadioGroupField.js +97 -0
- package/dist/patterns/FormField/FormRatingField.d.ts +19 -0
- package/dist/patterns/FormField/FormRatingField.js +119 -0
- package/dist/patterns/FormField/FormSelectField.d.ts +16 -0
- package/dist/patterns/FormField/FormSelectField.js +91 -0
- package/dist/patterns/FormField/FormSliderField.d.ts +22 -0
- package/dist/patterns/FormField/FormSliderField.js +128 -0
- package/dist/patterns/FormField/FormSwitchField.d.ts +19 -0
- package/dist/patterns/FormField/FormSwitchField.js +88 -0
- package/dist/patterns/FormField/FormTextAreaField.d.ts +12 -0
- package/dist/patterns/FormField/FormTextAreaField.js +91 -0
- package/dist/patterns/FormField/FormTextField.d.ts +23 -0
- package/dist/patterns/FormField/FormTextField.js +103 -0
- package/dist/patterns/FormField/RadioGroupField.d.ts +38 -0
- package/dist/patterns/FormField/RadioGroupField.js +201 -0
- package/dist/patterns/FormField/SelectField.d.ts +43 -0
- package/dist/patterns/FormField/SelectField.js +211 -0
- package/dist/patterns/FormField/SwitchField.d.ts +27 -0
- package/dist/patterns/FormField/SwitchField.js +105 -0
- package/dist/patterns/FormField/TextAreaField.d.ts +37 -0
- package/dist/patterns/FormField/TextAreaField.js +134 -0
- package/dist/patterns/FormField/TextField.d.ts +51 -0
- package/dist/patterns/FormField/TextField.js +256 -0
- package/dist/patterns/FormField/error-message.d.ts +6 -0
- package/dist/patterns/FormField/error-message.js +8 -0
- package/dist/patterns/FormField/field-styles.d.ts +44 -0
- package/dist/patterns/FormField/field-styles.js +89 -0
- package/dist/patterns/FormField/field-types.d.ts +4 -0
- package/dist/patterns/FormField/use-field-ids.d.ts +18 -0
- package/dist/patterns/FormField/use-field-ids.js +53 -0
- package/dist/patterns/List/List.d.ts +38 -0
- package/dist/patterns/List/List.js +174 -0
- package/dist/patterns/MentionsInput/FormMentionsField.d.ts +18 -0
- package/dist/patterns/MentionsInput/FormMentionsField.js +124 -0
- package/dist/patterns/MentionsInput/MentionsInput.d.ts +57 -0
- package/dist/patterns/MentionsInput/MentionsInput.js +133 -0
- package/dist/patterns/MentionsInput/mention-text.d.ts +24 -0
- package/dist/patterns/MentionsInput/mention-text.js +31 -0
- package/dist/patterns/Menubar/Menubar.d.ts +22 -0
- package/dist/patterns/Menubar/Menubar.js +79 -0
- package/dist/patterns/NavigationMenu/NavigationMenu.d.ts +27 -0
- package/dist/patterns/NavigationMenu/NavigationMenu.js +104 -0
- package/dist/patterns/NumberField/FormNumberField.d.ts +18 -0
- package/dist/patterns/NumberField/FormNumberField.js +119 -0
- package/dist/patterns/NumberField/NumberField.d.ts +57 -0
- package/dist/patterns/NumberField/NumberField.js +242 -0
- package/dist/patterns/Pagination/Pagination.d.ts +31 -0
- package/dist/patterns/Pagination/Pagination.js +275 -0
- package/dist/patterns/Pagination/page-items.d.ts +18 -0
- package/dist/patterns/Pagination/page-items.js +40 -0
- package/dist/patterns/PhoneField/FormPhoneField.d.ts +22 -0
- package/dist/patterns/PhoneField/FormPhoneField.js +97 -0
- package/dist/patterns/PhoneField/PhoneField.d.ts +60 -0
- package/dist/patterns/PhoneField/PhoneField.js +448 -0
- package/dist/patterns/PhoneField/phone-value.d.ts +26 -0
- package/dist/patterns/PhoneField/phone-value.js +38 -0
- package/dist/patterns/QRCode/QRCode.d.ts +37 -0
- package/dist/patterns/QRCode/QRCode.js +120 -0
- package/dist/patterns/QRCode/qr-path.d.ts +7 -0
- package/dist/patterns/QRCode/qr-path.js +25 -0
- package/dist/patterns/ResizablePanels/ResizablePanels.d.ts +34 -0
- package/dist/patterns/ResizablePanels/ResizablePanels.js +175 -0
- package/dist/patterns/ResizablePanels/panel-sizes.d.ts +31 -0
- package/dist/patterns/ResizablePanels/panel-sizes.js +54 -0
- package/dist/patterns/RichTextEditor/FormRichTextField.d.ts +18 -0
- package/dist/patterns/RichTextEditor/FormRichTextField.js +118 -0
- package/dist/patterns/RichTextEditor/RichTextEditor.d.ts +71 -0
- package/dist/patterns/RichTextEditor/RichTextEditor.js +453 -0
- package/dist/patterns/SearchInput/SearchInput.d.ts +26 -0
- package/dist/patterns/SearchInput/SearchInput.js +98 -0
- package/dist/patterns/SideNav/SideNav.d.ts +50 -0
- package/dist/patterns/SideNav/SideNav.js +269 -0
- package/dist/patterns/Stat/Stat.d.ts +51 -0
- package/dist/patterns/Stat/Stat.js +292 -0
- package/dist/patterns/Stepper/Stepper.d.ts +35 -0
- package/dist/patterns/Stepper/Stepper.js +110 -0
- package/dist/patterns/TagGroup/TagGroup.d.ts +44 -0
- package/dist/patterns/TagGroup/TagGroup.js +151 -0
- package/dist/patterns/TagsInput/FormTagsInputField.d.ts +18 -0
- package/dist/patterns/TagsInput/FormTagsInputField.js +124 -0
- package/dist/patterns/TagsInput/TagsInput.d.ts +51 -0
- package/dist/patterns/TagsInput/TagsInput.js +97 -0
- package/dist/patterns/Timeline/Timeline.d.ts +29 -0
- package/dist/patterns/Timeline/Timeline.js +85 -0
- package/dist/patterns/Toolbar/Toolbar.d.ts +31 -0
- package/dist/patterns/Toolbar/Toolbar.js +105 -0
- package/dist/patterns/Tour/Tour.d.ts +38 -0
- package/dist/patterns/Tour/Tour.js +333 -0
- package/dist/patterns/TransferList/FormTransferListField.d.ts +19 -0
- package/dist/patterns/TransferList/FormTransferListField.js +117 -0
- package/dist/patterns/TransferList/TransferList.d.ts +53 -0
- package/dist/patterns/TransferList/TransferList.js +441 -0
- package/dist/patterns/TreeSelect/FormTreeSelectField.d.ts +28 -0
- package/dist/patterns/TreeSelect/FormTreeSelectField.js +88 -0
- package/dist/patterns/TreeSelect/TreeSelect.d.ts +49 -0
- package/dist/patterns/TreeSelect/TreeSelect.js +375 -0
- package/dist/patterns/TreeView/TreeView.d.ts +40 -0
- package/dist/patterns/TreeView/TreeView.js +296 -0
- package/dist/provider/DesignSystemProvider.d.ts +54 -0
- package/dist/provider/DesignSystemProvider.js +270 -0
- package/dist/provider/nonce.d.ts +7 -0
- package/dist/provider/nonce.js +13 -0
- package/dist/styles.css +2 -0
- package/dist/theme/chart-palette.d.ts +51 -0
- package/dist/theme/chart-palette.js +112 -0
- package/dist/theme/create-theme.d.ts +52 -0
- package/dist/theme/create-theme.js +75 -0
- package/dist/theme/style-element.d.ts +28 -0
- package/dist/theme/style-element.js +79 -0
- package/dist/theme/tenant-branding.d.ts +48 -0
- package/dist/theme/tenant-branding.js +65 -0
- package/dist/theme/theme-switch.d.ts +25 -0
- package/dist/theme/theme-switch.js +90 -0
- package/dist/theme/token-names.d.ts +3 -0
- package/dist/theme/token-names.js +166 -0
- package/dist/theme.css +241 -0
- package/dist/tokens.css +383 -0
- package/dist/types/direction.d.ts +4 -0
- package/dist/types/tone.d.ts +7 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/utils/cn.js +50 -0
- package/dist/utils/first-field.d.ts +8 -0
- package/dist/utils/first-field.js +10 -0
- package/dist/utils/layout.d.ts +33 -0
- package/dist/utils/layout.js +30 -0
- package/dist/utils/popup.d.ts +12 -0
- package/dist/utils/popup.js +27 -0
- package/docs/accessibility.md +61 -0
- package/docs/advanced-components.md +38 -0
- package/docs/ai-assistants.md +44 -0
- package/docs/architecture.md +65 -0
- package/docs/browser-support.md +30 -0
- package/docs/charts.md +56 -0
- package/docs/components.md +2928 -0
- package/docs/conventions.md +19 -0
- package/docs/customization.md +79 -0
- package/docs/dates-files-data.md +48 -0
- package/docs/design-principles.md +50 -0
- package/docs/faq.md +68 -0
- package/docs/forms.md +114 -0
- package/docs/getting-started.md +64 -0
- package/docs/icons.md +48 -0
- package/docs/internationalization.md +64 -0
- package/docs/layout-and-navigation.md +51 -0
- package/docs/nextjs.md +69 -0
- package/docs/releasing.md +41 -0
- package/docs/testing.md +242 -0
- package/docs/theming.md +118 -0
- package/docs/typescript.md +62 -0
- package/llms-full.txt +4574 -0
- package/llms.txt +52 -0
- package/package.json +166 -6
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ArrowRight, Calendar, CalendarClock, ChartLine, CircleAlert, CircleCheck, CirclePlus, ClipboardList, CreditCard, Download, House, Info, LayoutGrid, ListFilter, MessageCircle, Pencil, ReceiptText, Search, Settings, Tag, Trash2, TriangleAlert, UserRound, Users, UsersRound, X, Zap } from "lucide-react";
|
|
2
|
+
// src/icons/icons.ts
|
|
3
|
+
/**
|
|
4
|
+
* The shared icons of the design foundation, grouped by common navigation,
|
|
5
|
+
* actions and status roles. Drawn as 1.5px lucide line icons with rounded ends,
|
|
6
|
+
* they size by font-size (see `styles/global.css`), so an icon inside a 20px
|
|
7
|
+
* tile is 20px and no size prop is needed.
|
|
8
|
+
*
|
|
9
|
+
* Reach for this registry before importing an icon directly, so that the same
|
|
10
|
+
* action or concept uses the same icon on every screen.
|
|
11
|
+
*
|
|
12
|
+
* Direction: lucide's icons do not mirror in right-to-left. `arrow` points right;
|
|
13
|
+
* where it means "onward", flip it with CSS for a right-to-left layout.
|
|
14
|
+
*/
|
|
15
|
+
var FAST_ICONS = {
|
|
16
|
+
dashboard: LayoutGrid,
|
|
17
|
+
home: House,
|
|
18
|
+
activity: CalendarClock,
|
|
19
|
+
analytics: ChartLine,
|
|
20
|
+
billing: CreditCard,
|
|
21
|
+
invoices: ReceiptText,
|
|
22
|
+
plans: ClipboardList,
|
|
23
|
+
tags: Tag,
|
|
24
|
+
messages: MessageCircle,
|
|
25
|
+
customers: Users,
|
|
26
|
+
users: UserRound,
|
|
27
|
+
groups: UsersRound,
|
|
28
|
+
settings: Settings,
|
|
29
|
+
search: Search,
|
|
30
|
+
filter: ListFilter,
|
|
31
|
+
add: CirclePlus,
|
|
32
|
+
edit: Pencil,
|
|
33
|
+
delete: Trash2,
|
|
34
|
+
download: Download,
|
|
35
|
+
calendar: Calendar,
|
|
36
|
+
arrow: ArrowRight,
|
|
37
|
+
bolt: Zap,
|
|
38
|
+
check: CircleCheck,
|
|
39
|
+
close: X,
|
|
40
|
+
warning: TriangleAlert,
|
|
41
|
+
error: CircleAlert,
|
|
42
|
+
info: Info
|
|
43
|
+
};
|
|
44
|
+
export { FAST_ICONS };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export { DesignSystemProvider, type DesignSystemProviderProps, type ToastLabelsInput, } from "./provider/DesignSystemProvider.js";
|
|
2
|
+
export { getChartPalette, heatmapGradient, type ChartPalette, type RgbaColor } from "./theme/chart-palette.js";
|
|
3
|
+
export { applyTenantBranding, type TenantBranding } from "./theme/tenant-branding.js";
|
|
4
|
+
export { applyTheme, createTheme, type Theme, type ThemeDefinition, type TokenValues } from "./theme/create-theme.js";
|
|
5
|
+
export { TOKEN_NAMES, type TokenName } from "./theme/token-names.js";
|
|
6
|
+
export { applyThemeMode, applyThemePreference, restoreThemeAttribute } from "./theme/theme-switch.js";
|
|
7
|
+
export { THEME_STYLE_ID, BRANDING_STYLE_ID } from "./theme/style-element.js";
|
|
8
|
+
export { FAST_ICONS, type FastIconName } from "./icons/icons.js";
|
|
9
|
+
export { cn } from "./utils/cn.js";
|
|
10
|
+
export type { TextDirection, ThemeMode, ThemePreference } from "./types/direction.js";
|
|
11
|
+
export type { ToneName } from "./types/tone.js";
|
|
12
|
+
export { Avatar, getInitials, type AvatarProps, type AvatarSize } from "./components/Avatar/Avatar.js";
|
|
13
|
+
export { Button, type ButtonProps, type ButtonVariant } from "./components/Button/Button.js";
|
|
14
|
+
export { CheckboxBox, type CheckboxBoxProps } from "./components/Checkbox/CheckboxBox.js";
|
|
15
|
+
export { IconTile, type IconTileProps, type IconTileTone } from "./components/IconTile/IconTile.js";
|
|
16
|
+
export { InlineError, type InlineErrorProps } from "./components/InlineError/InlineError.js";
|
|
17
|
+
export { Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, } from "./components/Menu/Menu.js";
|
|
18
|
+
export { ContextMenu, type ContextMenuProps } from "./components/Menu/ContextMenu.js";
|
|
19
|
+
export { OtpInput, type OtpInputProps } from "./components/OtpInput/OtpInput.js";
|
|
20
|
+
export { HoverPopover } from "./components/Popover/HoverPopover.js";
|
|
21
|
+
export { Popover } from "./components/Popover/Popover.js";
|
|
22
|
+
export { ProgressBar, type ProgressBarProps } from "./components/ProgressBar/ProgressBar.js";
|
|
23
|
+
export { SegmentedControl, type SegmentedControlProps, type SegmentedItem } from "./components/SegmentedControl/SegmentedControl.js";
|
|
24
|
+
export { SkeletonCard, SkeletonItem, SkeletonTable, SkeletonText, type SkeletonItemProps, type SkeletonProps, type SkeletonTableProps, type SkeletonTextProps, } from "./components/Skeleton/Skeleton.js";
|
|
25
|
+
export { Spinner, type SpinnerProps } from "./components/Spinner/Spinner.js";
|
|
26
|
+
export { StateIcon, type StateIconProps } from "./components/StateIcon/StateIcon.js";
|
|
27
|
+
export { StatusBadge, type StatusBadgeProps, type StatusTone } from "./components/StatusBadge/StatusBadge.js";
|
|
28
|
+
export { Tabs, type TabItem } from "./components/Tabs/Tabs.js";
|
|
29
|
+
export { Tag, type TagProps } from "./components/Tag/Tag.js";
|
|
30
|
+
export type { ToastIntent, ToastLabels } from "./components/Toast/toast-manager.js";
|
|
31
|
+
export { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
32
|
+
export { createTooltipGroup } from "./components/Tooltip/TooltipGroup.js";
|
|
33
|
+
export { Typography, type TextStyleName, type TypographyProps, type TypographyTone, } from "./components/Typography/Typography.js";
|
|
34
|
+
export { Alert, type AlertProps, type AlertTone } from "./patterns/Alert/Alert.js";
|
|
35
|
+
export { Dialog, type DialogProps } from "./patterns/Dialog/Dialog.js";
|
|
36
|
+
export { Card, type CardPadding, type CardProps, type CardVariant } from "./patterns/Card/Card.js";
|
|
37
|
+
export { Stat, StatGroup, type StatGroupProps, type StatGroupVariant, type StatProps, type StatTrend, } from "./patterns/Stat/Stat.js";
|
|
38
|
+
export { DataTable, type DataTableColumn, type DataTableExpansion, type DataTableProps, type DataTableSelection, type DataTableSort, } from "./patterns/DataTable/DataTable.js";
|
|
39
|
+
export { EmptyState, type EmptyStateProps } from "./patterns/EmptyState/EmptyState.js";
|
|
40
|
+
export { TagGroup, type TagGroupItem, type TagGroupLabels, type TagGroupProps } from "./patterns/TagGroup/TagGroup.js";
|
|
41
|
+
export { SearchInput, type SearchInputProps } from "./patterns/SearchInput/SearchInput.js";
|
|
42
|
+
export { Drawer, type DrawerPadding, type DrawerProps, type DrawerSide } from "./patterns/Drawer/Drawer.js";
|
|
43
|
+
export { Pagination, type PaginationLabels } from "./patterns/Pagination/Pagination.js";
|
|
44
|
+
export { DateTimePicker, type DateTimePickerProps } from "./patterns/DateTimePicker/DateTimePicker.js";
|
|
45
|
+
export type { DateTimePickerLabels } from "./patterns/DateTimePicker/picker-labels.js";
|
|
46
|
+
export { TreeSelect, type TreeSelectProps, type TreeSelectOption, } from "./patterns/TreeSelect/TreeSelect.js";
|
|
47
|
+
export { joinPhone, readInternationalPhone, splitPhone } from "./patterns/PhoneField/phone-value.js";
|
|
48
|
+
export { TextField, type TextFieldProps } from "./patterns/FormField/TextField.js";
|
|
49
|
+
export { TextAreaField, type TextAreaFieldProps } from "./patterns/FormField/TextAreaField.js";
|
|
50
|
+
export { SelectField, type SelectFieldProps, type SelectOption } from "./patterns/FormField/SelectField.js";
|
|
51
|
+
export { CheckboxField, type CheckboxFieldProps } from "./patterns/FormField/CheckboxField.js";
|
|
52
|
+
export { SwitchField, type SwitchFieldProps } from "./patterns/FormField/SwitchField.js";
|
|
53
|
+
export { RadioGroupField, type RadioGroupFieldProps, type RadioOption, } from "./patterns/FormField/RadioGroupField.js";
|
|
54
|
+
export { PhoneField, type PhoneFieldProps, type PhoneCountry, type PhoneFieldLabels, } from "./patterns/PhoneField/PhoneField.js";
|
|
55
|
+
export { Combobox, type ComboboxOption, type ComboboxProps } from "./patterns/Combobox/Combobox.js";
|
|
56
|
+
export { Autocomplete, type AutocompleteProps } from "./patterns/Combobox/Autocomplete.js";
|
|
57
|
+
export { MultiSelect, type MultiSelectLabels, type MultiSelectProps, } from "./patterns/Combobox/MultiSelect.js";
|
|
58
|
+
export { TagsInput, type TagsInputLabels, type TagsInputProps } from "./patterns/TagsInput/TagsInput.js";
|
|
59
|
+
export { Slider, type SliderProps } from "./components/Slider/Slider.js";
|
|
60
|
+
export { NumberField, type NumberFieldLabels, type NumberFieldProps } from "./patterns/NumberField/NumberField.js";
|
|
61
|
+
export { Rating, type RatingProps } from "./components/Rating/Rating.js";
|
|
62
|
+
export { ToggleButton, type ToggleButtonProps } from "./components/ToggleButton/ToggleButton.js";
|
|
63
|
+
export { ToggleGroup, type ToggleGroupItem, type ToggleGroupProps } from "./components/ToggleGroup/ToggleGroup.js";
|
|
64
|
+
export { ColorPicker, type ColorPickerLabels, type ColorPickerProps } from "./patterns/ColorPicker/ColorPicker.js";
|
|
65
|
+
export { hexToHsv, hsvToHex, parseHex, type Hsv } from "./patterns/ColorPicker/color-value.js";
|
|
66
|
+
export type { FieldOrientation, FieldSize } from "./patterns/FormField/field-types.js";
|
|
67
|
+
export { FieldFrame, type FieldFrameProps } from "./patterns/FormField/FieldFrame.js";
|
|
68
|
+
export { fieldControl, fieldInput } from "./patterns/FormField/field-styles.js";
|
|
69
|
+
export { toErrorText } from "./patterns/FormField/error-message.js";
|
|
70
|
+
export * as popup from "./utils/popup.js";
|
|
71
|
+
export { Stack, type StackProps } from "./components/Stack/Stack.js";
|
|
72
|
+
export { Grid, type GridProps } from "./components/Grid/Grid.js";
|
|
73
|
+
export { Container, type ContainerProps } from "./components/Container/Container.js";
|
|
74
|
+
export type { LayoutAlign, LayoutElement, LayoutGap, LayoutJustify } from "./utils/layout.js";
|
|
75
|
+
export { Separator, type SeparatorProps } from "./components/Separator/Separator.js";
|
|
76
|
+
export { Link, type LinkProps } from "./components/Link/Link.js";
|
|
77
|
+
export { Breadcrumbs, type BreadcrumbItem, type BreadcrumbsProps } from "./patterns/Breadcrumbs/Breadcrumbs.js";
|
|
78
|
+
export { Accordion, type AccordionItem, type AccordionProps } from "./patterns/Accordion/Accordion.js";
|
|
79
|
+
export { Collapsible, type CollapsibleProps } from "./components/Collapsible/Collapsible.js";
|
|
80
|
+
export { ScrollArea, type ScrollAreaProps } from "./components/ScrollArea/ScrollArea.js";
|
|
81
|
+
export { Toolbar, ToolbarButton, ToolbarSeparator, type ToolbarButtonProps, type ToolbarProps, } from "./patterns/Toolbar/Toolbar.js";
|
|
82
|
+
export { Menubar, MenubarMenu, type MenubarMenuProps, type MenubarProps } from "./patterns/Menubar/Menubar.js";
|
|
83
|
+
export { NavigationMenu, type NavigationMenuItem, type NavigationMenuLink, type NavigationMenuProps, } from "./patterns/NavigationMenu/NavigationMenu.js";
|
|
84
|
+
export { SideNav, type SideNavItem, type SideNavLeaf, type SideNavProps, type SideNavSection, } from "./patterns/SideNav/SideNav.js";
|
|
85
|
+
export { AppShell, type AppShellLabels, type AppShellProps } from "./patterns/AppShell/AppShell.js";
|
|
86
|
+
export { Stepper, type StepperLabels, type StepperProps, type StepperStep } from "./patterns/Stepper/Stepper.js";
|
|
87
|
+
export { Calendar, type CalendarLabels, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps, type DateRangeValue, } from "./patterns/Calendar/Calendar.js";
|
|
88
|
+
export { DateRangePicker, ENGLISH_RANGE_LABELS, type DateRangePickerLabels, type DateRangePickerProps, } from "./patterns/Calendar/DateRangePicker.js";
|
|
89
|
+
export { FileUpload, type FileUploadLabels, type FileUploadProps, type FileUploadRejection, type FileUploadRejectionReason, type FileUploadStatus, } from "./patterns/FileUpload/FileUpload.js";
|
|
90
|
+
export { formatFileSize, matchesAccept } from "./patterns/FileUpload/file-size.js";
|
|
91
|
+
export { List, type ListItem, type ListProps } from "./patterns/List/List.js";
|
|
92
|
+
export { TreeView, type TreeViewItem, type TreeViewProps } from "./patterns/TreeView/TreeView.js";
|
|
93
|
+
export { DescriptionList, type DescriptionListItem, type DescriptionListProps, } from "./patterns/DescriptionList/DescriptionList.js";
|
|
94
|
+
export { Timeline, type TimelineEvent, type TimelineProps } from "./patterns/Timeline/Timeline.js";
|
|
95
|
+
export { Carousel, type CarouselLabels, type CarouselProps } from "./patterns/Carousel/Carousel.js";
|
|
96
|
+
export { Kbd, type KbdProps } from "./components/Kbd/Kbd.js";
|
|
97
|
+
export { CodeSnippet, type CodeSnippetLabels, type CodeSnippetProps } from "./components/CodeSnippet/CodeSnippet.js";
|
|
98
|
+
export { CommandPalette, type CommandGroup, type CommandItem, type CommandPaletteLabels, type CommandPaletteProps, } from "./patterns/CommandPalette/CommandPalette.js";
|
|
99
|
+
export { ResizablePanels, type ResizablePanel, type ResizablePanelsLabels, type ResizablePanelsProps, } from "./patterns/ResizablePanels/ResizablePanels.js";
|
|
100
|
+
export { TransferList, type TransferListItem, type TransferListLabels, type TransferListProps, } from "./patterns/TransferList/TransferList.js";
|
|
101
|
+
export { Cascader, type CascaderLabels, type CascaderOption, type CascaderProps, } from "./patterns/Cascader/Cascader.js";
|
|
102
|
+
export { MentionsInput, type MentionSuggestion, type MentionsInputProps, } from "./patterns/MentionsInput/MentionsInput.js";
|
|
103
|
+
export { Tour, type TourLabels, type TourProps, type TourStep } from "./patterns/Tour/Tour.js";
|
|
104
|
+
export { FloatingActionButton, type FloatingActionButtonProps, } from "./components/FloatingActionButton/FloatingActionButton.js";
|
|
105
|
+
export { QRCode, type QRCodeProps } from "./patterns/QRCode/QRCode.js";
|
|
106
|
+
export { useAppToast } from "./hooks/useAppToast.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { DesignSystemProvider } from "./provider/DesignSystemProvider.js";
|
|
2
|
+
import { getChartPalette, heatmapGradient } from "./theme/chart-palette.js";
|
|
3
|
+
import { applyTenantBranding } from "./theme/tenant-branding.js";
|
|
4
|
+
import { applyTheme, createTheme } from "./theme/create-theme.js";
|
|
5
|
+
import { TOKEN_NAMES } from "./theme/token-names.js";
|
|
6
|
+
import { applyThemeMode, applyThemePreference, restoreThemeAttribute } from "./theme/theme-switch.js";
|
|
7
|
+
import { BRANDING_STYLE_ID, THEME_STYLE_ID } from "./theme/style-element.js";
|
|
8
|
+
import { FAST_ICONS } from "./icons/icons.js";
|
|
9
|
+
import { cn } from "./utils/cn.js";
|
|
10
|
+
import { Avatar, getInitials } from "./components/Avatar/Avatar.js";
|
|
11
|
+
import { Button } from "./components/Button/Button.js";
|
|
12
|
+
import { CheckboxBox } from "./components/Checkbox/CheckboxBox.js";
|
|
13
|
+
import { IconTile } from "./components/IconTile/IconTile.js";
|
|
14
|
+
import { InlineError } from "./components/InlineError/InlineError.js";
|
|
15
|
+
import { Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu } from "./components/Menu/Menu.js";
|
|
16
|
+
import { ContextMenu } from "./components/Menu/ContextMenu.js";
|
|
17
|
+
import { OtpInput } from "./components/OtpInput/OtpInput.js";
|
|
18
|
+
import { HoverPopover } from "./components/Popover/HoverPopover.js";
|
|
19
|
+
import { Popover } from "./components/Popover/Popover.js";
|
|
20
|
+
import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
|
|
21
|
+
import { SegmentedControl } from "./components/SegmentedControl/SegmentedControl.js";
|
|
22
|
+
import { SkeletonCard, SkeletonItem, SkeletonTable, SkeletonText } from "./components/Skeleton/Skeleton.js";
|
|
23
|
+
import { Spinner } from "./components/Spinner/Spinner.js";
|
|
24
|
+
import { StateIcon } from "./components/StateIcon/StateIcon.js";
|
|
25
|
+
import { StatusBadge } from "./components/StatusBadge/StatusBadge.js";
|
|
26
|
+
import { Tabs } from "./components/Tabs/Tabs.js";
|
|
27
|
+
import { Tag } from "./components/Tag/Tag.js";
|
|
28
|
+
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
29
|
+
import { createTooltipGroup } from "./components/Tooltip/TooltipGroup.js";
|
|
30
|
+
import { Typography } from "./components/Typography/Typography.js";
|
|
31
|
+
import { Alert } from "./patterns/Alert/Alert.js";
|
|
32
|
+
import { Dialog } from "./patterns/Dialog/Dialog.js";
|
|
33
|
+
import { Card } from "./patterns/Card/Card.js";
|
|
34
|
+
import { Stat, StatGroup } from "./patterns/Stat/Stat.js";
|
|
35
|
+
import { DataTable } from "./patterns/DataTable/DataTable.js";
|
|
36
|
+
import { EmptyState } from "./patterns/EmptyState/EmptyState.js";
|
|
37
|
+
import { TagGroup } from "./patterns/TagGroup/TagGroup.js";
|
|
38
|
+
import { SearchInput } from "./patterns/SearchInput/SearchInput.js";
|
|
39
|
+
import { Drawer } from "./patterns/Drawer/Drawer.js";
|
|
40
|
+
import { Pagination } from "./patterns/Pagination/Pagination.js";
|
|
41
|
+
import { DateTimePicker } from "./patterns/DateTimePicker/DateTimePicker.js";
|
|
42
|
+
import { TreeSelect } from "./patterns/TreeSelect/TreeSelect.js";
|
|
43
|
+
import { joinPhone, readInternationalPhone, splitPhone } from "./patterns/PhoneField/phone-value.js";
|
|
44
|
+
import { TextField } from "./patterns/FormField/TextField.js";
|
|
45
|
+
import { TextAreaField } from "./patterns/FormField/TextAreaField.js";
|
|
46
|
+
import { SelectField } from "./patterns/FormField/SelectField.js";
|
|
47
|
+
import { CheckboxField } from "./patterns/FormField/CheckboxField.js";
|
|
48
|
+
import { SwitchField } from "./patterns/FormField/SwitchField.js";
|
|
49
|
+
import { RadioGroupField } from "./patterns/FormField/RadioGroupField.js";
|
|
50
|
+
import { PhoneField } from "./patterns/PhoneField/PhoneField.js";
|
|
51
|
+
import { Combobox } from "./patterns/Combobox/Combobox.js";
|
|
52
|
+
import { Autocomplete } from "./patterns/Combobox/Autocomplete.js";
|
|
53
|
+
import { MultiSelect } from "./patterns/Combobox/MultiSelect.js";
|
|
54
|
+
import { TagsInput } from "./patterns/TagsInput/TagsInput.js";
|
|
55
|
+
import { Slider } from "./components/Slider/Slider.js";
|
|
56
|
+
import { NumberField } from "./patterns/NumberField/NumberField.js";
|
|
57
|
+
import { Rating } from "./components/Rating/Rating.js";
|
|
58
|
+
import { ToggleButton } from "./components/ToggleButton/ToggleButton.js";
|
|
59
|
+
import { ToggleGroup } from "./components/ToggleGroup/ToggleGroup.js";
|
|
60
|
+
import { ColorPicker } from "./patterns/ColorPicker/ColorPicker.js";
|
|
61
|
+
import { hexToHsv, hsvToHex, parseHex } from "./patterns/ColorPicker/color-value.js";
|
|
62
|
+
import { FieldFrame } from "./patterns/FormField/FieldFrame.js";
|
|
63
|
+
import { fieldControl, fieldInput } from "./patterns/FormField/field-styles.js";
|
|
64
|
+
import { toErrorText } from "./patterns/FormField/error-message.js";
|
|
65
|
+
import { popup_exports } from "./utils/popup.js";
|
|
66
|
+
import { Stack } from "./components/Stack/Stack.js";
|
|
67
|
+
import { Grid } from "./components/Grid/Grid.js";
|
|
68
|
+
import { Container } from "./components/Container/Container.js";
|
|
69
|
+
import { Separator } from "./components/Separator/Separator.js";
|
|
70
|
+
import { Link } from "./components/Link/Link.js";
|
|
71
|
+
import { Breadcrumbs } from "./patterns/Breadcrumbs/Breadcrumbs.js";
|
|
72
|
+
import { Accordion } from "./patterns/Accordion/Accordion.js";
|
|
73
|
+
import { Collapsible } from "./components/Collapsible/Collapsible.js";
|
|
74
|
+
import { ScrollArea } from "./components/ScrollArea/ScrollArea.js";
|
|
75
|
+
import { Toolbar, ToolbarButton, ToolbarSeparator } from "./patterns/Toolbar/Toolbar.js";
|
|
76
|
+
import { Menubar, MenubarMenu } from "./patterns/Menubar/Menubar.js";
|
|
77
|
+
import { NavigationMenu } from "./patterns/NavigationMenu/NavigationMenu.js";
|
|
78
|
+
import { SideNav } from "./patterns/SideNav/SideNav.js";
|
|
79
|
+
import { AppShell } from "./patterns/AppShell/AppShell.js";
|
|
80
|
+
import { Stepper } from "./patterns/Stepper/Stepper.js";
|
|
81
|
+
import { Calendar } from "./patterns/Calendar/Calendar.js";
|
|
82
|
+
import { DateRangePicker, ENGLISH_RANGE_LABELS } from "./patterns/Calendar/DateRangePicker.js";
|
|
83
|
+
import { FileUpload } from "./patterns/FileUpload/FileUpload.js";
|
|
84
|
+
import { formatFileSize, matchesAccept } from "./patterns/FileUpload/file-size.js";
|
|
85
|
+
import { List } from "./patterns/List/List.js";
|
|
86
|
+
import { TreeView } from "./patterns/TreeView/TreeView.js";
|
|
87
|
+
import { DescriptionList } from "./patterns/DescriptionList/DescriptionList.js";
|
|
88
|
+
import { Timeline } from "./patterns/Timeline/Timeline.js";
|
|
89
|
+
import { Carousel } from "./patterns/Carousel/Carousel.js";
|
|
90
|
+
import { Kbd } from "./components/Kbd/Kbd.js";
|
|
91
|
+
import { CodeSnippet } from "./components/CodeSnippet/CodeSnippet.js";
|
|
92
|
+
import { CommandPalette } from "./patterns/CommandPalette/CommandPalette.js";
|
|
93
|
+
import { ResizablePanels } from "./patterns/ResizablePanels/ResizablePanels.js";
|
|
94
|
+
import { TransferList } from "./patterns/TransferList/TransferList.js";
|
|
95
|
+
import { Cascader } from "./patterns/Cascader/Cascader.js";
|
|
96
|
+
import { MentionsInput } from "./patterns/MentionsInput/MentionsInput.js";
|
|
97
|
+
import { Tour } from "./patterns/Tour/Tour.js";
|
|
98
|
+
import { FloatingActionButton } from "./components/FloatingActionButton/FloatingActionButton.js";
|
|
99
|
+
import { QRCode } from "./patterns/QRCode/QRCode.js";
|
|
100
|
+
import { useAppToast } from "./hooks/useAppToast.js";
|
|
101
|
+
export { Accordion, Alert, AppShell, Autocomplete, Avatar, BRANDING_STYLE_ID, Breadcrumbs, Button, Calendar, Card, Carousel, Cascader, CheckboxBox, CheckboxField, CodeSnippet, Collapsible, ColorPicker, Combobox, CommandPalette, Container, ContextMenu, DataTable, DateRangePicker, DateTimePicker, DescriptionList, DesignSystemProvider, Dialog, Drawer, ENGLISH_RANGE_LABELS, EmptyState, FAST_ICONS, FieldFrame, FileUpload, FloatingActionButton, Grid, HoverPopover, IconTile, InlineError, Kbd, Link, List, MentionsInput, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, Menubar, MenubarMenu, MultiSelect, NavigationMenu, NumberField, OtpInput, Pagination, PhoneField, Popover, ProgressBar, QRCode, RadioGroupField, Rating, ResizablePanels, ScrollArea, SearchInput, SegmentedControl, SelectField, Separator, SideNav, SkeletonCard, SkeletonItem, SkeletonTable, SkeletonText, Slider, Spinner, Stack, Stat, StatGroup, StateIcon, StatusBadge, Stepper, SwitchField, THEME_STYLE_ID, TOKEN_NAMES, Tabs, Tag, TagGroup, TagsInput, TextAreaField, TextField, Timeline, ToggleButton, ToggleGroup, Toolbar, ToolbarButton, ToolbarSeparator, Tooltip, Tour, TransferList, TreeSelect, TreeView, Typography, applyTenantBranding, applyTheme, applyThemeMode, applyThemePreference, cn, createTheme, createTooltipGroup, fieldControl, fieldInput, formatFileSize, getChartPalette, getInitials, heatmapGradient, hexToHsv, hsvToHex, joinPhone, matchesAccept, parseHex, popup_exports as popup, readInternationalPhone, restoreThemeAttribute, splitPhone, toErrorText, useAppToast };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface AccordionItem {
|
|
3
|
+
/** Identifies the section in `value`. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** The heading that opens and closes the section. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** What the section shows when it is open. */
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface AccordionProps {
|
|
12
|
+
items: readonly AccordionItem[];
|
|
13
|
+
/** The `value`s of the open sections. Leave it out to let the accordion keep its own. */
|
|
14
|
+
value?: readonly string[] | undefined;
|
|
15
|
+
/** The `value`s the sections start open with, when the accordion keeps its own. */
|
|
16
|
+
defaultValue?: readonly string[] | undefined;
|
|
17
|
+
/** Called with the `value`s of the open sections. */
|
|
18
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
19
|
+
/** Let several sections be open at once. Otherwise opening one closes the other. */
|
|
20
|
+
multiple?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The level of the section headings, 2 to 6 (default 3). Pick the one below the heading the accordion sits
|
|
23
|
+
* under, so the page's outline stays in order.
|
|
24
|
+
*/
|
|
25
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6 | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Sections that open and close: a heading each, the content under it while it is open. One open at a time by
|
|
31
|
+
* default, any number with `multiple`. Each heading is a button, so Enter and Space open it, and the up and down
|
|
32
|
+
* arrow keys move between the headings. The height eases open (and does not move for a visitor who asks for less
|
|
33
|
+
* motion).
|
|
34
|
+
*/
|
|
35
|
+
export declare const Accordion: ({ items, value, defaultValue, onValueChange, multiple, headingLevel, disabled, className, }: AccordionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { createElement } from "react";
|
|
4
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
5
|
+
import { ChevronDown } from "lucide-react";
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
// src/patterns/Accordion/Accordion.tsx
|
|
9
|
+
/** Marks a section's button, so the arrow keys can find the buttons of one accordion. */
|
|
10
|
+
var TRIGGER_ATTRIBUTE = "data-fast-accordion-trigger";
|
|
11
|
+
/** Marks an accordion, so a button is matched with its own accordion and not one it is nested in. */
|
|
12
|
+
var ROOT_ATTRIBUTE = "data-fast-accordion";
|
|
13
|
+
/**
|
|
14
|
+
* Moves the focus between the section buttons with the arrow keys (Base UI's accordion leaves it to Tab): Down and
|
|
15
|
+
* Up to the next and previous, Home and End to the first and last. A button that is disabled is skipped, and the
|
|
16
|
+
* ends do not wrap, as in the WAI-ARIA pattern. An accordion inside a section of another moves among its own
|
|
17
|
+
* buttons only, and the outer one leaves a key the inner one has handled alone.
|
|
18
|
+
*/
|
|
19
|
+
var moveFocus = (event) => {
|
|
20
|
+
if (event.defaultPrevented) return;
|
|
21
|
+
const root = event.currentTarget;
|
|
22
|
+
const from = event.target;
|
|
23
|
+
if (!from.hasAttribute(TRIGGER_ATTRIBUTE) || from.closest(`[${ROOT_ATTRIBUTE}]`) !== root) return;
|
|
24
|
+
if (![
|
|
25
|
+
"ArrowDown",
|
|
26
|
+
"ArrowUp",
|
|
27
|
+
"Home",
|
|
28
|
+
"End"
|
|
29
|
+
].includes(event.key)) return;
|
|
30
|
+
const triggers = [...root.querySelectorAll(`[${TRIGGER_ATTRIBUTE}]`)].filter((trigger) => trigger.closest(`[${ROOT_ATTRIBUTE}]`) === root && !trigger.hasAttribute("disabled") && trigger.getAttribute("aria-disabled") !== "true");
|
|
31
|
+
const at = triggers.indexOf(from);
|
|
32
|
+
const target = triggers[event.key === "Home" ? 0 : event.key === "End" ? triggers.length - 1 : event.key === "ArrowDown" ? at + 1 : at - 1];
|
|
33
|
+
if (!target) return;
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
target.focus();
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Sections that open and close: a heading each, the content under it while it is open. One open at a time by
|
|
39
|
+
* default, any number with `multiple`. Each heading is a button, so Enter and Space open it, and the up and down
|
|
40
|
+
* arrow keys move between the headings. The height eases open (and does not move for a visitor who asks for less
|
|
41
|
+
* motion).
|
|
42
|
+
*/
|
|
43
|
+
var Accordion = (t0) => {
|
|
44
|
+
const $ = c(22);
|
|
45
|
+
const { items, value, defaultValue, onValueChange, multiple: t1, headingLevel: t2, disabled: t3, className } = t0;
|
|
46
|
+
const multiple = t1 === void 0 ? false : t1;
|
|
47
|
+
const headingLevel = t2 === void 0 ? 3 : t2;
|
|
48
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
49
|
+
let t4;
|
|
50
|
+
if ($[0] !== value) {
|
|
51
|
+
t4 = value ? { value } : {};
|
|
52
|
+
$[0] = value;
|
|
53
|
+
$[1] = t4;
|
|
54
|
+
} else t4 = $[1];
|
|
55
|
+
let t5;
|
|
56
|
+
if ($[2] !== defaultValue) {
|
|
57
|
+
t5 = defaultValue ? { defaultValue } : {};
|
|
58
|
+
$[2] = defaultValue;
|
|
59
|
+
$[3] = t5;
|
|
60
|
+
} else t5 = $[3];
|
|
61
|
+
let t6;
|
|
62
|
+
if ($[4] !== onValueChange) {
|
|
63
|
+
t6 = (next) => {
|
|
64
|
+
onValueChange?.(next);
|
|
65
|
+
};
|
|
66
|
+
$[4] = onValueChange;
|
|
67
|
+
$[5] = t6;
|
|
68
|
+
} else t6 = $[5];
|
|
69
|
+
let t7;
|
|
70
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71
|
+
t7 = { [ROOT_ATTRIBUTE]: "" };
|
|
72
|
+
$[6] = t7;
|
|
73
|
+
} else t7 = $[6];
|
|
74
|
+
let t8;
|
|
75
|
+
if ($[7] !== className) {
|
|
76
|
+
t8 = cn("w-full", className);
|
|
77
|
+
$[7] = className;
|
|
78
|
+
$[8] = t8;
|
|
79
|
+
} else t8 = $[8];
|
|
80
|
+
let t9;
|
|
81
|
+
if ($[9] !== headingLevel || $[10] !== items) {
|
|
82
|
+
let t10;
|
|
83
|
+
if ($[12] !== headingLevel) {
|
|
84
|
+
t10 = (item) => /* @__PURE__ */ jsxs(Accordion$1.Item, {
|
|
85
|
+
value: item.value,
|
|
86
|
+
disabled: item.disabled,
|
|
87
|
+
className: "border-b border-line",
|
|
88
|
+
children: [/* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
89
|
+
render: (props) => createElement(`h${String(headingLevel)}`, props),
|
|
90
|
+
className: "m-0",
|
|
91
|
+
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
92
|
+
[TRIGGER_ATTRIBUTE]: "",
|
|
93
|
+
className: cn("group/trigger flex w-full cursor-pointer items-center justify-between gap-3 rounded-sm border-0 bg-transparent px-0 py-3.5 text-start text-body-sm font-semibold text-fg outline-none", "hover:text-primary-text focus-visible:ring-2 focus-visible:ring-focus", "data-disabled:cursor-not-allowed data-disabled:text-fg-disabled"),
|
|
94
|
+
children: [item.title, /* @__PURE__ */ jsx(ChevronDown, {
|
|
95
|
+
"aria-hidden": "true",
|
|
96
|
+
className: "size-4 shrink-0 text-fg-secondary transition-transform duration-200 ease-standard group-data-panel-open/trigger:rotate-180 motion-reduce:transition-none"
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
}), /* @__PURE__ */ jsx(Accordion$1.Panel, {
|
|
100
|
+
className: cn("h-(--accordion-panel-height) overflow-hidden text-body-sm text-fg-body transition-[height] duration-200 ease-standard motion-reduce:transition-none", "data-ending-style:h-0 data-starting-style:h-0"),
|
|
101
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
102
|
+
className: "pb-4",
|
|
103
|
+
children: item.content
|
|
104
|
+
})
|
|
105
|
+
})]
|
|
106
|
+
}, item.value);
|
|
107
|
+
$[12] = headingLevel;
|
|
108
|
+
$[13] = t10;
|
|
109
|
+
} else t10 = $[13];
|
|
110
|
+
t9 = items.map(t10);
|
|
111
|
+
$[9] = headingLevel;
|
|
112
|
+
$[10] = items;
|
|
113
|
+
$[11] = t9;
|
|
114
|
+
} else t9 = $[11];
|
|
115
|
+
let t10;
|
|
116
|
+
if ($[14] !== disabled || $[15] !== multiple || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== t8 || $[20] !== t9) {
|
|
117
|
+
t10 = /* @__PURE__ */ jsx(Accordion$1.Root, {
|
|
118
|
+
...t4,
|
|
119
|
+
...t5,
|
|
120
|
+
onValueChange: t6,
|
|
121
|
+
multiple,
|
|
122
|
+
disabled,
|
|
123
|
+
onKeyDown: moveFocus,
|
|
124
|
+
...t7,
|
|
125
|
+
className: t8,
|
|
126
|
+
children: t9
|
|
127
|
+
});
|
|
128
|
+
$[14] = disabled;
|
|
129
|
+
$[15] = multiple;
|
|
130
|
+
$[16] = t4;
|
|
131
|
+
$[17] = t5;
|
|
132
|
+
$[18] = t6;
|
|
133
|
+
$[19] = t8;
|
|
134
|
+
$[20] = t9;
|
|
135
|
+
$[21] = t10;
|
|
136
|
+
} else t10 = $[21];
|
|
137
|
+
return t10;
|
|
138
|
+
};
|
|
139
|
+
export { Accordion };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type AlertTone = "success" | "warning" | "error" | "info";
|
|
3
|
+
type CloseProps = {
|
|
4
|
+
/** Adds a close button. */
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
/** Accessible name of the close button. */
|
|
7
|
+
closeLabel: string;
|
|
8
|
+
} | {
|
|
9
|
+
onClose?: undefined;
|
|
10
|
+
closeLabel?: undefined;
|
|
11
|
+
};
|
|
12
|
+
export type AlertProps = {
|
|
13
|
+
/**
|
|
14
|
+
* The colour, the icon and the live region: "error" is an alert (`role="alert"`), announced when it appears;
|
|
15
|
+
* the others are status regions (`role="status"`).
|
|
16
|
+
*/
|
|
17
|
+
tone: AlertTone;
|
|
18
|
+
/** The message, in a line, e.g. "Changes saved". */
|
|
19
|
+
title: string;
|
|
20
|
+
/** More detail under the title. */
|
|
21
|
+
description?: ReactNode | undefined;
|
|
22
|
+
/** An optional inline link under the description. */
|
|
23
|
+
action?: {
|
|
24
|
+
label: string;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
} | undefined;
|
|
27
|
+
/** Classes for the outer element, e.g. a margin. */
|
|
28
|
+
className?: string | undefined;
|
|
29
|
+
} & CloseProps;
|
|
30
|
+
/**
|
|
31
|
+
* An inline notification: icon, title, description, an optional action and a close button. An error alert is
|
|
32
|
+
* announced when it appears (`role="alert"`). The other tones are status regions (`role="status"`): a change to
|
|
33
|
+
* their text while they are shown is announced at the next pause, but one that appears with its text is often not
|
|
34
|
+
* announced at all. For a message that must be heard as it happens (a save that worked), keep the Alert on the
|
|
35
|
+
* page and change its text, or say it in another region that is already there.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Alert: ({ tone, title, description, action, onClose, closeLabel, className, }: AlertProps) => import("react").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { CircleAlert, CircleCheck, Info, TriangleAlert, X } from "lucide-react";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/patterns/Alert/Alert.tsx
|
|
8
|
+
var ICONS = {
|
|
9
|
+
success: /* @__PURE__ */ jsx(CircleCheck, { "aria-hidden": "true" }),
|
|
10
|
+
warning: /* @__PURE__ */ jsx(TriangleAlert, { "aria-hidden": "true" }),
|
|
11
|
+
error: /* @__PURE__ */ jsx(CircleAlert, { "aria-hidden": "true" }),
|
|
12
|
+
info: /* @__PURE__ */ jsx(Info, { "aria-hidden": "true" })
|
|
13
|
+
};
|
|
14
|
+
/** Figma's alert: `flex gap-3 p-4` on a 12px radius, the tone's wash and border. */
|
|
15
|
+
var alertVariants = cva("flex gap-3 rounded-lg border p-4 text-fg", { variants: { tone: {
|
|
16
|
+
success: "border-success-border bg-success-wash",
|
|
17
|
+
warning: "border-warning-border bg-warning-wash",
|
|
18
|
+
error: "border-error-border bg-error-wash",
|
|
19
|
+
info: "border-info-border bg-info-wash"
|
|
20
|
+
} } });
|
|
21
|
+
/** The icon takes the tone's solid colour, the action link its text colour. */
|
|
22
|
+
var ICON_TONE = {
|
|
23
|
+
success: "text-success-solid",
|
|
24
|
+
warning: "text-warning-solid",
|
|
25
|
+
error: "text-error-solid",
|
|
26
|
+
info: "text-info-solid"
|
|
27
|
+
};
|
|
28
|
+
var ACTION_TONE = {
|
|
29
|
+
success: "text-success-text",
|
|
30
|
+
warning: "text-warning-text",
|
|
31
|
+
error: "text-error-text",
|
|
32
|
+
info: "text-info-text"
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* An inline notification: icon, title, description, an optional action and a close button. An error alert is
|
|
36
|
+
* announced when it appears (`role="alert"`). The other tones are status regions (`role="status"`): a change to
|
|
37
|
+
* their text while they are shown is announced at the next pause, but one that appears with its text is often not
|
|
38
|
+
* announced at all. For a message that must be heard as it happens (a save that worked), keep the Alert on the
|
|
39
|
+
* page and change its text, or say it in another region that is already there.
|
|
40
|
+
*/
|
|
41
|
+
var Alert = (t0) => {
|
|
42
|
+
const $ = c(28);
|
|
43
|
+
const { tone, title, description, action, onClose, closeLabel, className } = t0;
|
|
44
|
+
const t1 = tone === "error" ? "alert" : "status";
|
|
45
|
+
let t2;
|
|
46
|
+
if ($[0] !== className || $[1] !== tone) {
|
|
47
|
+
t2 = cn(alertVariants({ tone }), className);
|
|
48
|
+
$[0] = className;
|
|
49
|
+
$[1] = tone;
|
|
50
|
+
$[2] = t2;
|
|
51
|
+
} else t2 = $[2];
|
|
52
|
+
const t3 = ICON_TONE[tone];
|
|
53
|
+
let t4;
|
|
54
|
+
if ($[3] !== t3) {
|
|
55
|
+
t4 = cn("inline-flex shrink-0 text-[18px]", t3);
|
|
56
|
+
$[3] = t3;
|
|
57
|
+
$[4] = t4;
|
|
58
|
+
} else t4 = $[4];
|
|
59
|
+
const t5 = ICONS[tone];
|
|
60
|
+
let t6;
|
|
61
|
+
if ($[5] !== t4 || $[6] !== t5) {
|
|
62
|
+
t6 = /* @__PURE__ */ jsx("span", {
|
|
63
|
+
className: t4,
|
|
64
|
+
children: t5
|
|
65
|
+
});
|
|
66
|
+
$[5] = t4;
|
|
67
|
+
$[6] = t5;
|
|
68
|
+
$[7] = t6;
|
|
69
|
+
} else t6 = $[7];
|
|
70
|
+
let t7;
|
|
71
|
+
if ($[8] !== title) {
|
|
72
|
+
t7 = /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "text-body-sm font-semibold text-fg",
|
|
74
|
+
children: title
|
|
75
|
+
});
|
|
76
|
+
$[8] = title;
|
|
77
|
+
$[9] = t7;
|
|
78
|
+
} else t7 = $[9];
|
|
79
|
+
let t8;
|
|
80
|
+
if ($[10] !== description) {
|
|
81
|
+
t8 = description ? /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: "mt-0.5 text-caption font-normal text-fg-secondary",
|
|
83
|
+
children: description
|
|
84
|
+
}) : null;
|
|
85
|
+
$[10] = description;
|
|
86
|
+
$[11] = t8;
|
|
87
|
+
} else t8 = $[11];
|
|
88
|
+
let t9;
|
|
89
|
+
if ($[12] !== action || $[13] !== tone) {
|
|
90
|
+
t9 = action ? /* @__PURE__ */ jsx("button", {
|
|
91
|
+
type: "button",
|
|
92
|
+
className: cn("mt-2 rounded-sm border-0 bg-transparent p-0 text-tiny font-semibold underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus", ACTION_TONE[tone]),
|
|
93
|
+
onClick: action.onClick,
|
|
94
|
+
children: action.label
|
|
95
|
+
}) : null;
|
|
96
|
+
$[12] = action;
|
|
97
|
+
$[13] = tone;
|
|
98
|
+
$[14] = t9;
|
|
99
|
+
} else t9 = $[14];
|
|
100
|
+
let t10;
|
|
101
|
+
if ($[15] !== t7 || $[16] !== t8 || $[17] !== t9) {
|
|
102
|
+
t10 = /* @__PURE__ */ jsxs("div", {
|
|
103
|
+
className: "flex min-w-0 flex-1 flex-col items-start",
|
|
104
|
+
children: [
|
|
105
|
+
t7,
|
|
106
|
+
t8,
|
|
107
|
+
t9
|
|
108
|
+
]
|
|
109
|
+
});
|
|
110
|
+
$[15] = t7;
|
|
111
|
+
$[16] = t8;
|
|
112
|
+
$[17] = t9;
|
|
113
|
+
$[18] = t10;
|
|
114
|
+
} else t10 = $[18];
|
|
115
|
+
let t11;
|
|
116
|
+
if ($[19] !== closeLabel || $[20] !== onClose) {
|
|
117
|
+
t11 = onClose ? /* @__PURE__ */ jsx("button", {
|
|
118
|
+
type: "button",
|
|
119
|
+
"aria-label": closeLabel,
|
|
120
|
+
className: "-m-1 inline-flex shrink-0 self-start rounded-sm border-0 bg-transparent p-1 text-fg-secondary transition-colors duration-150 ease-standard hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
|
|
121
|
+
onClick: onClose,
|
|
122
|
+
children: /* @__PURE__ */ jsx(X, {
|
|
123
|
+
"aria-hidden": "true",
|
|
124
|
+
className: "size-3.5"
|
|
125
|
+
})
|
|
126
|
+
}) : null;
|
|
127
|
+
$[19] = closeLabel;
|
|
128
|
+
$[20] = onClose;
|
|
129
|
+
$[21] = t11;
|
|
130
|
+
} else t11 = $[21];
|
|
131
|
+
let t12;
|
|
132
|
+
if ($[22] !== t1 || $[23] !== t10 || $[24] !== t11 || $[25] !== t2 || $[26] !== t6) {
|
|
133
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
134
|
+
role: t1,
|
|
135
|
+
className: t2,
|
|
136
|
+
children: [
|
|
137
|
+
t6,
|
|
138
|
+
t10,
|
|
139
|
+
t11
|
|
140
|
+
]
|
|
141
|
+
});
|
|
142
|
+
$[22] = t1;
|
|
143
|
+
$[23] = t10;
|
|
144
|
+
$[24] = t11;
|
|
145
|
+
$[25] = t2;
|
|
146
|
+
$[26] = t6;
|
|
147
|
+
$[27] = t12;
|
|
148
|
+
} else t12 = $[27];
|
|
149
|
+
return t12;
|
|
150
|
+
};
|
|
151
|
+
export { Alert };
|