@primecoderin/fast-ui-react 0.0.0-stage → 1.0.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 +106 -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 +40 -0
- package/docs/testing.md +242 -0
- package/docs/theming.md +118 -0
- package/docs/typescript.md +62 -0
- package/llms-full.txt +4573 -0
- package/llms.txt +52 -0
- package/package.json +193 -6
package/llms.txt
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# @primecoderin/fast-ui-react
|
|
2
|
+
|
|
3
|
+
> A React 19 design system on Base UI and Tailwind CSS 4: tokens (colour, type, radius, shadows, dark theme, right to left, tenant branding), 128 components and patterns, and form fields for react-hook-form. ESM only, version 1.0.0.
|
|
4
|
+
|
|
5
|
+
Things to know before writing code with it:
|
|
6
|
+
|
|
7
|
+
- Import from `@primecoderin/fast-ui-react`. Form fields bound to react-hook-form come from `@primecoderin/fast-ui-react/forms`, charts from `@primecoderin/fast-ui-react/charts`, the rich text editor from `@primecoderin/fast-ui-react/editor` and `@primecoderin/fast-ui-react/editor-forms`. Plain form fields (`TextField`, `SelectField` ...) are in the main entry and need no form library.
|
|
8
|
+
- Import `@primecoderin/fast-ui-react/styles.css` once at the app's entry and wrap the app in `DesignSystemProvider`. The app needs no Tailwind and no font of its own.
|
|
9
|
+
- Components hold no text of their own: every string a user reads (labels, hints, error messages, button names) is a prop, so pass the app's translated text. Give an icon-only control an `aria-label`.
|
|
10
|
+
- Props follow `value` / `onValueChange`, `checked` / `onCheckedChange`, `open` / `onOpenChange`. Use `aria-label`, never `ariaLabel`.
|
|
11
|
+
- Style with tokens, not colour values: `bg-primary`, `text-fg-secondary`, `border-line`. Tailwind's own palette (`bg-red-500`) and type scale are switched off.
|
|
12
|
+
- Components are Client Components (they start with "use client"), so Server Components can import them. The pure helpers (`createTheme`, `cn`) are safe in Server Components.
|
|
13
|
+
- Do not invent props or exports: check `components.md` (or the MCP server's `get_export`) for the real ones.
|
|
14
|
+
|
|
15
|
+
These files are plain Markdown and ship in the npm package (`node_modules/@primecoderin/fast-ui-react/llms.txt`, with the guides under `docs/`). `llms-full.txt` is the same content in one file.
|
|
16
|
+
|
|
17
|
+
## Guides
|
|
18
|
+
|
|
19
|
+
- [Getting started](docs/getting-started.md): Install, import the stylesheet and font, wrap the app in the provider; which entries need which packages.
|
|
20
|
+
- [Next.js](docs/nextjs.md): App Router and Pages Router, Server Components and the `use client` boundary.
|
|
21
|
+
- [Theme, branding and tokens](docs/theming.md): Brand colours, fonts, dark mode, white-label tenants, a CSP nonce, and apps that run their own Tailwind 4.
|
|
22
|
+
- [Prop conventions](docs/conventions.md): The prop names every component follows: value, checked, open, labels, no built-in text.
|
|
23
|
+
- [Design principles](docs/design-principles.md): Tokens not colour values, CVA variants, state as data attributes, presentation only, responsive behaviour.
|
|
24
|
+
- [Styling and customization](docs/customization.md): Styling a component: the theme, a token, a class, variants, state, composing.
|
|
25
|
+
- [Icons](docs/icons.md): lucide icons, the `icon` prop, `FAST_ICONS`, and flipping icons in right to left.
|
|
26
|
+
- [TypeScript](docs/typescript.md): Props types, generic form fields, token types and module settings.
|
|
27
|
+
- [Forms](docs/forms.md): Plain fields for any form library, and the react-hook-form fields in the `/forms` entry.
|
|
28
|
+
- [Dates, files and data](docs/dates-files-data.md): Calendar, date range, date and time picker, file upload, tree, carousel and data display.
|
|
29
|
+
- [Charts](docs/charts.md): The `/charts` entry: line, area, bar, donut, gauge and sparkline charts.
|
|
30
|
+
- [Advanced components](docs/advanced-components.md): Command palette, resizable panels, transfer list, cascader, mentions, tour, QR code and the rich text editor.
|
|
31
|
+
- [Layout and navigation](docs/layout-and-navigation.md): Stack, grid, app shell, side navigation, menus, breadcrumbs, accordion, stepper.
|
|
32
|
+
- [Internationalization](docs/internationalization.md): Translating text, right to left, locales for numbers and dates, fonts.
|
|
33
|
+
- [Testing with Playwright](docs/testing.md): Finding every component in Playwright tests by role and name, with examples.
|
|
34
|
+
- [Accessibility](docs/accessibility.md): What the components do, how it is tested, and what it does not promise.
|
|
35
|
+
- [Browser support](docs/browser-support.md): Supported browsers and what is tested.
|
|
36
|
+
- [Architecture](docs/architecture.md): The repository, the layers, the entries, what the build produces and the generated files.
|
|
37
|
+
- [Troubleshooting and FAQ](docs/faq.md): Troubleshooting: no styles, Tailwind classes that do nothing, Next.js errors, missing optional packages.
|
|
38
|
+
- [AI coding assistants](docs/ai-assistants.md): The MCP server and these llms.txt files.
|
|
39
|
+
- [Releasing](docs/releasing.md): Versioning rules and the publish steps (for maintainers).
|
|
40
|
+
|
|
41
|
+
## Reference
|
|
42
|
+
|
|
43
|
+
- [Interactive Storybook](https://primecoderin.github.io/fast-ui-react/): every component running live with props, dark mode and right to left.
|
|
44
|
+
- [Components](docs/components.md): every component with its import and a table of its props.
|
|
45
|
+
- [Everything in one file](llms-full.txt): the guides and the component reference, for loading as a whole.
|
|
46
|
+
|
|
47
|
+
## Optional
|
|
48
|
+
|
|
49
|
+
- [MCP server](https://github.com/primecoderIN/fast-ui-react/blob/master/mcp/README.md): lets an assistant look up components, props, tokens and tested examples on demand.
|
|
50
|
+
- [Changelog](CHANGELOG.md): what changed in each version.
|
|
51
|
+
- [Roadmap](https://github.com/primecoderIN/fast-ui-react/blob/master/ROADMAP.md): what is planned next.
|
|
52
|
+
- [Contributing](https://github.com/primecoderIN/fast-ui-react/blob/master/CONTRIBUTING.md): developing the package itself.
|
package/package.json
CHANGED
|
@@ -1,6 +1,193 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@primecoderin/fast-ui-react",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@primecoderin/fast-ui-react",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Accessible React 19 UI component library and design system built on Base UI and Tailwind CSS 4 — 128 components, forms, charts, rich text editor, dark mode, RTL, and runtime theming.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "primecoderin",
|
|
7
|
+
"url": "https://github.com/primecoderIN"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/primecoderIN/fast-ui-react.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/primecoderIN/fast-ui-react/issues"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://primecoderin.github.io/fast-ui-react/",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"react",
|
|
23
|
+
"react-19",
|
|
24
|
+
"reactjs",
|
|
25
|
+
"react-ui",
|
|
26
|
+
"react-components",
|
|
27
|
+
"ui",
|
|
28
|
+
"ui-library",
|
|
29
|
+
"ui-components",
|
|
30
|
+
"design-system",
|
|
31
|
+
"component-library",
|
|
32
|
+
"tailwindcss",
|
|
33
|
+
"tailwind",
|
|
34
|
+
"tailwind-4",
|
|
35
|
+
"base-ui",
|
|
36
|
+
"accessible",
|
|
37
|
+
"accessibility",
|
|
38
|
+
"wcag",
|
|
39
|
+
"a11y",
|
|
40
|
+
"rtl",
|
|
41
|
+
"i18n",
|
|
42
|
+
"dark-mode",
|
|
43
|
+
"theming",
|
|
44
|
+
"white-label",
|
|
45
|
+
"multi-tenant",
|
|
46
|
+
"nextjs",
|
|
47
|
+
"server-components",
|
|
48
|
+
"react-hook-form",
|
|
49
|
+
"recharts",
|
|
50
|
+
"charts",
|
|
51
|
+
"tiptap",
|
|
52
|
+
"rich-text-editor",
|
|
53
|
+
"datepicker",
|
|
54
|
+
"data-table",
|
|
55
|
+
"typescript",
|
|
56
|
+
"esm",
|
|
57
|
+
"fast-ui",
|
|
58
|
+
"fast-ui-react",
|
|
59
|
+
"primecoderin"
|
|
60
|
+
],
|
|
61
|
+
"type": "module",
|
|
62
|
+
"sideEffects": [
|
|
63
|
+
"**/*.css"
|
|
64
|
+
],
|
|
65
|
+
"exports": {
|
|
66
|
+
".": {
|
|
67
|
+
"types": "./dist/index.d.ts",
|
|
68
|
+
"import": "./dist/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./forms": {
|
|
71
|
+
"types": "./dist/forms.d.ts",
|
|
72
|
+
"import": "./dist/forms.js"
|
|
73
|
+
},
|
|
74
|
+
"./charts": {
|
|
75
|
+
"types": "./dist/charts.d.ts",
|
|
76
|
+
"import": "./dist/charts.js"
|
|
77
|
+
},
|
|
78
|
+
"./editor": {
|
|
79
|
+
"types": "./dist/editor.d.ts",
|
|
80
|
+
"import": "./dist/editor.js"
|
|
81
|
+
},
|
|
82
|
+
"./editor-forms": {
|
|
83
|
+
"types": "./dist/editor-forms.d.ts",
|
|
84
|
+
"import": "./dist/editor-forms.js"
|
|
85
|
+
},
|
|
86
|
+
"./styles.css": "./dist/styles.css",
|
|
87
|
+
"./foundation.css": "./dist/foundation.css",
|
|
88
|
+
"./package.json": "./package.json"
|
|
89
|
+
},
|
|
90
|
+
"files": [
|
|
91
|
+
"dist",
|
|
92
|
+
"docs",
|
|
93
|
+
"CHANGELOG.md",
|
|
94
|
+
"llms.txt",
|
|
95
|
+
"llms-full.txt"
|
|
96
|
+
],
|
|
97
|
+
"workspaces": [
|
|
98
|
+
"mcp"
|
|
99
|
+
],
|
|
100
|
+
"devEngines": {
|
|
101
|
+
"runtime": {
|
|
102
|
+
"name": "node",
|
|
103
|
+
"version": ">=24.0.0",
|
|
104
|
+
"onFail": "error"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"scripts": {
|
|
108
|
+
"tokens": "node scripts/generate-token-names.mjs",
|
|
109
|
+
"fonts": "node scripts/generate-fonts.mjs",
|
|
110
|
+
"build": "npm run tokens && npm run fonts && vite build && tsc && node scripts/fix-dts-extensions.mjs && tailwindcss --input src/styles/index.css --output dist/styles.css --minify && node scripts/copy-styles.mjs",
|
|
111
|
+
"mcp:build": "node scripts/generate-mcp-catalog.mjs && tsc -p mcp/tsconfig.json",
|
|
112
|
+
"docs": "node scripts/generate-mcp-catalog.mjs && node scripts/generate-docs.mjs",
|
|
113
|
+
"typecheck": "tsc --noEmit && tsc --noEmit --project tsconfig.stories.json && tsc --noEmit -p mcp/tsconfig.json",
|
|
114
|
+
"storybook": "storybook dev -p 6006",
|
|
115
|
+
"build-storybook": "storybook build",
|
|
116
|
+
"test": "npm run mcp:build && vitest --run --project=unit --project=storybook --project=storybook-dark --project=storybook-rtl && npm run test:ssr",
|
|
117
|
+
"test:unit": "npm run mcp:build && vitest --project=unit --run",
|
|
118
|
+
"test:stories": "vitest --project=storybook --run",
|
|
119
|
+
"test:a11y": "vitest --project=storybook-dark --project=storybook-rtl --run",
|
|
120
|
+
"test:ssr": "vitest --project=ssr --run && vitest --project=hydrate --run",
|
|
121
|
+
"prepack": "npm run build"
|
|
122
|
+
},
|
|
123
|
+
"peerDependencies": {
|
|
124
|
+
"react": "^19.0.0",
|
|
125
|
+
"react-dom": "^19.0.0",
|
|
126
|
+
"react-hook-form": "^7.91.0",
|
|
127
|
+
"recharts": "^3.11.0",
|
|
128
|
+
"@tiptap/core": "^3.35.0",
|
|
129
|
+
"@tiptap/pm": "^3.35.0",
|
|
130
|
+
"@tiptap/react": "^3.35.0",
|
|
131
|
+
"@tiptap/starter-kit": "^3.35.0"
|
|
132
|
+
},
|
|
133
|
+
"peerDependenciesMeta": {
|
|
134
|
+
"react-hook-form": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"recharts": {
|
|
138
|
+
"optional": true
|
|
139
|
+
},
|
|
140
|
+
"@tiptap/core": {
|
|
141
|
+
"optional": true
|
|
142
|
+
},
|
|
143
|
+
"@tiptap/pm": {
|
|
144
|
+
"optional": true
|
|
145
|
+
},
|
|
146
|
+
"@tiptap/react": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@tiptap/starter-kit": {
|
|
150
|
+
"optional": true
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"dependencies": {
|
|
154
|
+
"@base-ui/react": "^1.9.0",
|
|
155
|
+
"class-variance-authority": "^0.7.1",
|
|
156
|
+
"clsx": "^2.1.1",
|
|
157
|
+
"date-fns": "^4.4.0",
|
|
158
|
+
"lucide-react": "^1.61.0",
|
|
159
|
+
"tailwind-merge": "^3.7.0",
|
|
160
|
+
"uqr": "^0.1.3"
|
|
161
|
+
},
|
|
162
|
+
"devDependencies": {
|
|
163
|
+
"@babel/core": "7.29.7",
|
|
164
|
+
"@fontsource-variable/inter": "5.3.0",
|
|
165
|
+
"@rolldown/plugin-babel": "^0.2.4",
|
|
166
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
167
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
168
|
+
"@storybook/addon-vitest": "^10.6.7",
|
|
169
|
+
"@storybook/react-vite": "^10.6.7",
|
|
170
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
171
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
172
|
+
"@tiptap/core": "^3.35.0",
|
|
173
|
+
"@tiptap/pm": "^3.35.0",
|
|
174
|
+
"@tiptap/react": "^3.35.0",
|
|
175
|
+
"@tiptap/starter-kit": "^3.35.0",
|
|
176
|
+
"@types/react": "^19.3.0",
|
|
177
|
+
"@types/react-dom": "^19.3.0",
|
|
178
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
179
|
+
"@vitest/browser-playwright": "^5.1.0",
|
|
180
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
181
|
+
"playwright": "1.65.0",
|
|
182
|
+
"react": "^19.3.1",
|
|
183
|
+
"react-dom": "^19.3.1",
|
|
184
|
+
"react-hook-form": "^7.91.0",
|
|
185
|
+
"react-is": "^19.3.1",
|
|
186
|
+
"recharts": "^3.11.1",
|
|
187
|
+
"storybook": "^10.6.7",
|
|
188
|
+
"tailwindcss": "^4.3.3",
|
|
189
|
+
"typescript": "~6.0.3",
|
|
190
|
+
"vite": "^8.3.5",
|
|
191
|
+
"vitest": "^5.1.0"
|
|
192
|
+
}
|
|
193
|
+
}
|