@clement_lores/admin-design-system 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/.babelrc.cjs +23 -0
- package/.eslintrc +50 -0
- package/.firebaserc +17 -0
- package/.prettierrc +6 -0
- package/.releaserc +36 -0
- package/.storybook/main.mjs +103 -0
- package/.storybook/manager.mjs +49 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.mjs +53 -0
- package/.storybook/theme-decorator.js +27 -0
- package/README.md +132 -0
- package/build/atoms/avatar/avatar.js +44 -0
- package/build/atoms/avatar/avatar.stories.js +19 -0
- package/build/atoms/avatar/index.js +1 -0
- package/build/atoms/badge/badge-props.doc.md +10 -0
- package/build/atoms/badge/badge.doc.md +90 -0
- package/build/atoms/badge/badge.js +86 -0
- package/build/atoms/badge/badge.stories.js +91 -0
- package/build/atoms/badge/index.js +1 -0
- package/build/atoms/box/box-props.doc.md +16 -0
- package/build/atoms/box/box.doc.md +75 -0
- package/build/atoms/box/box.js +97 -0
- package/build/atoms/box/box.stories.js +41 -0
- package/build/atoms/box/index.js +1 -0
- package/build/atoms/button/button-css.js +193 -0
- package/build/atoms/button/button-props.doc.md +4 -0
- package/build/atoms/button/button-props.js +1 -0
- package/build/atoms/button/button.doc.md +103 -0
- package/build/atoms/button/button.js +37 -0
- package/build/atoms/button/button.stories.js +111 -0
- package/build/atoms/button/index.js +3 -0
- package/build/atoms/check-box/check-box.js +177 -0
- package/build/atoms/check-box/check-box.stories.js +54 -0
- package/build/atoms/check-box/index.js +1 -0
- package/build/atoms/currency-input/currency-input.js +63 -0
- package/build/atoms/currency-input/currency-input.stories.js +103 -0
- package/build/atoms/currency-input/index.js +1 -0
- package/build/atoms/icon/icon.js +134 -0
- package/build/atoms/icon/icon.stories.js +69 -0
- package/build/atoms/icon/index.js +1 -0
- package/build/atoms/illustration/illustration.js +71 -0
- package/build/atoms/illustration/illustration.stories.js +55 -0
- package/build/atoms/illustration/index.js +1 -0
- package/build/atoms/illustrations/accept.js +48 -0
- package/build/atoms/illustrations/adminjs-logo.js +52 -0
- package/build/atoms/illustrations/astronaut.js +58 -0
- package/build/atoms/illustrations/bag.js +90 -0
- package/build/atoms/illustrations/beware.js +57 -0
- package/build/atoms/illustrations/box.js +95 -0
- package/build/atoms/illustrations/calendar.js +97 -0
- package/build/atoms/illustrations/cancel.js +48 -0
- package/build/atoms/illustrations/cards.js +65 -0
- package/build/atoms/illustrations/clip.js +107 -0
- package/build/atoms/illustrations/cloud.js +58 -0
- package/build/atoms/illustrations/cup.js +60 -0
- package/build/atoms/illustrations/details.js +84 -0
- package/build/atoms/illustrations/docs.js +77 -0
- package/build/atoms/illustrations/document-check.js +66 -0
- package/build/atoms/illustrations/document-search.js +69 -0
- package/build/atoms/illustrations/drawer.js +84 -0
- package/build/atoms/illustrations/file-search.js +37 -0
- package/build/atoms/illustrations/flag-in-cog.js +97 -0
- package/build/atoms/illustrations/folder.js +73 -0
- package/build/atoms/illustrations/folders.js +74 -0
- package/build/atoms/illustrations/github-logo.js +26 -0
- package/build/atoms/illustrations/identity-card.js +93 -0
- package/build/atoms/illustrations/index.js +35 -0
- package/build/atoms/illustrations/launch.js +75 -0
- package/build/atoms/illustrations/moon.js +135 -0
- package/build/atoms/illustrations/not-found.js +80 -0
- package/build/atoms/illustrations/notebook.js +132 -0
- package/build/atoms/illustrations/padlock.js +79 -0
- package/build/atoms/illustrations/photos.js +65 -0
- package/build/atoms/illustrations/planet.js +110 -0
- package/build/atoms/illustrations/plug.js +80 -0
- package/build/atoms/illustrations/props.type.js +1 -0
- package/build/atoms/illustrations/rocket-new.js +113 -0
- package/build/atoms/illustrations/rocket.js +343 -0
- package/build/atoms/illustrations/slack-logo.js +52 -0
- package/build/atoms/illustrations/tags.js +62 -0
- package/build/atoms/index.js +23 -0
- package/build/atoms/input/index.js +1 -0
- package/build/atoms/input/input.js +164 -0
- package/build/atoms/input/input.stories.js +109 -0
- package/build/atoms/label/index.js +1 -0
- package/build/atoms/label/label.js +144 -0
- package/build/atoms/label/label.stories.js +61 -0
- package/build/atoms/link/index.js +1 -0
- package/build/atoms/link/link.js +118 -0
- package/build/atoms/link/link.stories.js +52 -0
- package/build/atoms/loader/index.js +1 -0
- package/build/atoms/loader/loader.js +83 -0
- package/build/atoms/loader/loader.stories.js +7 -0
- package/build/atoms/overlay/index.js +1 -0
- package/build/atoms/overlay/overlay.js +19 -0
- package/build/atoms/overlay/overlay.stories.js +7 -0
- package/build/atoms/phone-input/index.js +1 -0
- package/build/atoms/phone-input/phone-input.js +69 -0
- package/build/atoms/phone-input/phone-input.stories.js +59 -0
- package/build/atoms/placeholder/index.js +1 -0
- package/build/atoms/placeholder/placeholder.js +110 -0
- package/build/atoms/placeholder/placeholder.stories.js +17 -0
- package/build/atoms/radio/index.js +1 -0
- package/build/atoms/radio/radio.js +146 -0
- package/build/atoms/radio/radio.stories.js +42 -0
- package/build/atoms/section/index.js +1 -0
- package/build/atoms/section/section.js +45 -0
- package/build/atoms/section/section.stories.js +24 -0
- package/build/atoms/table/index.js +6 -0
- package/build/atoms/table/table-body.js +15 -0
- package/build/atoms/table/table-caption.js +39 -0
- package/build/atoms/table/table-cell.js +38 -0
- package/build/atoms/table/table-head.js +33 -0
- package/build/atoms/table/table-row.js +24 -0
- package/build/atoms/table/table.js +114 -0
- package/build/atoms/table/table.stories.js +46 -0
- package/build/atoms/tabs/index.js +2 -0
- package/build/atoms/tabs/tab.js +29 -0
- package/build/atoms/tabs/tabs.js +118 -0
- package/build/atoms/tabs/tabs.stories.js +26 -0
- package/build/atoms/text/index.js +1 -0
- package/build/atoms/text/text.js +77 -0
- package/build/atoms/text-area/index.js +1 -0
- package/build/atoms/text-area/text-area.js +58 -0
- package/build/atoms/text-area/text-area.stories.js +26 -0
- package/build/atoms/tooltip/index.js +5 -0
- package/build/atoms/tooltip/tooltip-content.js +10 -0
- package/build/atoms/tooltip/tooltip-control.js +102 -0
- package/build/atoms/tooltip/tooltip-props.js +1 -0
- package/build/atoms/tooltip/tooltip-styled.js +129 -0
- package/build/atoms/tooltip/tooltip.doc.md +61 -0
- package/build/atoms/tooltip/tooltip.js +65 -0
- package/build/atoms/tooltip/tooltip.stories.js +47 -0
- package/build/atoms/typography/caption-shared.js +10 -0
- package/build/atoms/typography/caption.js +10 -0
- package/build/atoms/typography/card-title.js +14 -0
- package/build/atoms/typography/header.doc.md +38 -0
- package/build/atoms/typography/header.js +128 -0
- package/build/atoms/typography/index.js +5 -0
- package/build/atoms/typography/small-text.js +10 -0
- package/build/atoms/typography/title.js +10 -0
- package/build/atoms/typography/typography.stories.js +80 -0
- package/build/constants.js +2 -0
- package/build/global.js +53 -0
- package/build/hooks/use-window-size.js +28 -0
- package/build/index.doc.md +133 -0
- package/build/index.js +16 -0
- package/build/molecules/date-picker/date-picker.js +326 -0
- package/build/molecules/date-picker/date-picker.stories.js +49 -0
- package/build/molecules/date-picker/index.js +2 -0
- package/build/molecules/date-picker/useDatePicker.js +37 -0
- package/build/molecules/drawer/drawer-content.js +22 -0
- package/build/molecules/drawer/drawer-footer.js +21 -0
- package/build/molecules/drawer/drawer.js +120 -0
- package/build/molecules/drawer/drawer.stories.js +39 -0
- package/build/molecules/drawer/index.js +3 -0
- package/build/molecules/drop-down/drop-down-item-action.js +19 -0
- package/build/molecules/drop-down/drop-down-item.js +95 -0
- package/build/molecules/drop-down/drop-down-menu.js +45 -0
- package/build/molecules/drop-down/drop-down-trigger.js +11 -0
- package/build/molecules/drop-down/drop-down.doc.md +74 -0
- package/build/molecules/drop-down/drop-down.js +85 -0
- package/build/molecules/drop-down/drop-down.stories.js +66 -0
- package/build/molecules/drop-down/index.js +5 -0
- package/build/molecules/drop-zone/drop-zone-image.js +46 -0
- package/build/molecules/drop-zone/drop-zone-item.js +128 -0
- package/build/molecules/drop-zone/drop-zone.js +318 -0
- package/build/molecules/drop-zone/drop-zone.stories.js +111 -0
- package/build/molecules/drop-zone/index.js +2 -0
- package/build/molecules/form-group/form-group.js +184 -0
- package/build/molecules/form-group/form-group.stories.js +35 -0
- package/build/molecules/form-group/form-message.js +23 -0
- package/build/molecules/form-group/index.js +3 -0
- package/build/molecules/form-group/input-group.js +68 -0
- package/build/molecules/index.js +15 -0
- package/build/molecules/info-box/index.js +1 -0
- package/build/molecules/info-box/info-box.js +70 -0
- package/build/molecules/info-box/info-box.stories.js +17 -0
- package/build/molecules/message-box/index.js +1 -0
- package/build/molecules/message-box/message-box.js +173 -0
- package/build/molecules/message-box/message-box.stories.js +43 -0
- package/build/molecules/modal/index.js +4 -0
- package/build/molecules/modal/modal-inline.js +63 -0
- package/build/molecules/modal/modal-props.js +1 -0
- package/build/molecules/modal/modal-styled.js +52 -0
- package/build/molecules/modal/modal-wrapper.js +33 -0
- package/build/molecules/modal/modal.doc.md +138 -0
- package/build/molecules/modal/modal.js +17 -0
- package/build/molecules/modal/modal.stories.js +79 -0
- package/build/molecules/navigation-element/index.js +3 -0
- package/build/molecules/navigation-element/navigation-element-props.js +1 -0
- package/build/molecules/navigation-element/navigation-element-styled.js +66 -0
- package/build/molecules/navigation-element/navigation-element.doc.md +69 -0
- package/build/molecules/navigation-element/navigation-element.js +61 -0
- package/build/molecules/navigation-element/navigation-element.stories.js +53 -0
- package/build/molecules/pagination/index.js +1 -0
- package/build/molecules/pagination/pagination.js +141 -0
- package/build/molecules/pagination/pagination.stories.js +22 -0
- package/build/molecules/rich-text-editor/components/heading-select.js +29 -0
- package/build/molecules/rich-text-editor/components/image-button.js +45 -0
- package/build/molecules/rich-text-editor/components/menu-bar.js +32 -0
- package/build/molecules/rich-text-editor/components/menu-button.js +37 -0
- package/build/molecules/rich-text-editor/icons/align-center.js +12 -0
- package/build/molecules/rich-text-editor/icons/align-justify.js +12 -0
- package/build/molecules/rich-text-editor/icons/align-left.js +12 -0
- package/build/molecules/rich-text-editor/icons/align-right.js +12 -0
- package/build/molecules/rich-text-editor/icons/bold.js +12 -0
- package/build/molecules/rich-text-editor/icons/bullet-list.js +12 -0
- package/build/molecules/rich-text-editor/icons/clear.js +12 -0
- package/build/molecules/rich-text-editor/icons/code.js +18 -0
- package/build/molecules/rich-text-editor/icons/font-size.js +12 -0
- package/build/molecules/rich-text-editor/icons/image.js +18 -0
- package/build/molecules/rich-text-editor/icons/index.js +20 -0
- package/build/molecules/rich-text-editor/icons/italic.js +12 -0
- package/build/molecules/rich-text-editor/icons/link.js +15 -0
- package/build/molecules/rich-text-editor/icons/ordered-list.js +12 -0
- package/build/molecules/rich-text-editor/icons/pagebreak.js +12 -0
- package/build/molecules/rich-text-editor/icons/paragraph.js +12 -0
- package/build/molecules/rich-text-editor/icons/quote.js +12 -0
- package/build/molecules/rich-text-editor/icons/redo.js +12 -0
- package/build/molecules/rich-text-editor/icons/strikethrough.js +12 -0
- package/build/molecules/rich-text-editor/icons/undo.js +12 -0
- package/build/molecules/rich-text-editor/index.js +2 -0
- package/build/molecules/rich-text-editor/rich-text-editor-props.js +1 -0
- package/build/molecules/rich-text-editor/rich-text-editor.js +60 -0
- package/build/molecules/rich-text-editor/rich-text-editor.stories.js +85 -0
- package/build/molecules/rich-text-editor/rich-text-editor.styled.js +46 -0
- package/build/molecules/rich-text-editor/useTiptapCommands.js +15 -0
- package/build/molecules/select/index.js +2 -0
- package/build/molecules/select/select-async.js +43 -0
- package/build/molecules/select/select-theme.js +36 -0
- package/build/molecules/select/select.js +45 -0
- package/build/molecules/select/select.stories.js +80 -0
- package/build/molecules/stepper/index.js +2 -0
- package/build/molecules/stepper/step.js +141 -0
- package/build/molecules/stepper/stepper.js +115 -0
- package/build/molecules/stepper/stepper.stories.js +54 -0
- package/build/molecules/tinymce-editor/index.js +1 -0
- package/build/molecules/tinymce-editor/tinymce-editor.js +89 -0
- package/build/molecules/tinymce-editor/tinymce-editor.styled.js +15 -0
- package/build/molecules/value-group/index.js +2 -0
- package/build/molecules/value-group/value-group-props.js +1 -0
- package/build/molecules/value-group/value-group.doc.md +67 -0
- package/build/molecules/value-group/value-group.js +28 -0
- package/build/molecules/value-group/value-group.stories.js +41 -0
- package/build/organisms/button-group/button-group.doc.md +92 -0
- package/build/organisms/button-group/button-group.js +34 -0
- package/build/organisms/button-group/button-group.stories.js +103 -0
- package/build/organisms/button-group/button-group.styled.js +54 -0
- package/build/organisms/button-group/button-group.types.js +1 -0
- package/build/organisms/button-group/button-in-group.js +25 -0
- package/build/organisms/button-group/drop-down-item-with-buttons.js +45 -0
- package/build/organisms/button-group/index.js +6 -0
- package/build/organisms/button-group/single-button-in-group.js +39 -0
- package/build/organisms/current-user-nav/current-user-nav-props.js +1 -0
- package/build/organisms/current-user-nav/current-user-nav-styled.js +27 -0
- package/build/organisms/current-user-nav/current-user-nav.doc.md +72 -0
- package/build/organisms/current-user-nav/current-user-nav.js +68 -0
- package/build/organisms/current-user-nav/current-user-nav.stories.js +74 -0
- package/build/organisms/current-user-nav/index.js +3 -0
- package/build/organisms/index.js +4 -0
- package/build/organisms/made-with-love/index.js +1 -0
- package/build/organisms/made-with-love/made-with-love.js +43 -0
- package/build/organisms/made-with-love/made-with-love.stories.js +7 -0
- package/build/organisms/navigation/index.js +4 -0
- package/build/organisms/navigation/navigation-element-wrapper.js +14 -0
- package/build/organisms/navigation/navigation-props.js +1 -0
- package/build/organisms/navigation/navigation-styled.js +14 -0
- package/build/organisms/navigation/navigation.doc.md +126 -0
- package/build/organisms/navigation/navigation.js +34 -0
- package/build/organisms/navigation/navigation.stories.js +110 -0
- package/build/templates/blog.js +0 -0
- package/build/templates/blog.stories.js +52 -0
- package/build/theme.doc.md +111 -0
- package/build/theme.js +532 -0
- package/build/utils/assert.js +7 -0
- package/build/utils/color-props.js +1 -0
- package/build/utils/combine-styles.js +28 -0
- package/build/utils/content-styles.js +268 -0
- package/build/utils/css-class.js +35 -0
- package/build/utils/date-utils.js +50 -0
- package/build/utils/datepicker.styles.js +788 -0
- package/build/utils/default-theme.interface.js +1 -0
- package/build/utils/direction-props.js +1 -0
- package/build/utils/focus-shadow.style.js +6 -0
- package/build/utils/generate-id.js +8 -0
- package/build/utils/human-file-size.js +23 -0
- package/build/utils/index.js +13 -0
- package/build/utils/non-nullish-partial-record.type.js +1 -0
- package/build/utils/phone-input.styles.js +1168 -0
- package/build/utils/portal-utils.js +31 -0
- package/build/utils/reset.styles.js +94 -0
- package/build/utils/select-styles.js +47 -0
- package/build/utils/story-wrapper.js +22 -0
- package/build/utils/styled.js +6 -0
- package/build/utils/theme-get.js +51 -0
- package/commitlint.config.cjs +5 -0
- package/config/rollup.js +70 -0
- package/entry.js +11 -0
- package/firebase.json +17 -0
- package/package.json +171 -0
- package/src/atoms/avatar/avatar.stories.tsx +28 -0
- package/src/atoms/avatar/avatar.tsx +44 -0
- package/src/atoms/avatar/index.ts +1 -0
- package/src/atoms/badge/badge-props.doc.md +10 -0
- package/src/atoms/badge/badge.doc.md +90 -0
- package/src/atoms/badge/badge.stories.tsx +90 -0
- package/src/atoms/badge/badge.tsx +99 -0
- package/src/atoms/badge/index.ts +1 -0
- package/src/atoms/box/box-props.doc.md +16 -0
- package/src/atoms/box/box.doc.md +75 -0
- package/src/atoms/box/box.stories.tsx +47 -0
- package/src/atoms/box/box.tsx +131 -0
- package/src/atoms/box/index.ts +1 -0
- package/src/atoms/button/button-css.tsx +196 -0
- package/src/atoms/button/button-props.doc.md +4 -0
- package/src/atoms/button/button-props.ts +43 -0
- package/src/atoms/button/button.doc.md +103 -0
- package/src/atoms/button/button.stories.tsx +113 -0
- package/src/atoms/button/button.tsx +39 -0
- package/src/atoms/button/index.ts +3 -0
- package/src/atoms/check-box/check-box.stories.tsx +46 -0
- package/src/atoms/check-box/check-box.tsx +169 -0
- package/src/atoms/check-box/index.ts +1 -0
- package/src/atoms/currency-input/currency-input.stories.tsx +77 -0
- package/src/atoms/currency-input/currency-input.tsx +74 -0
- package/src/atoms/currency-input/index.ts +1 -0
- package/src/atoms/icon/icon.stories.tsx +46 -0
- package/src/atoms/icon/icon.tsx +155 -0
- package/src/atoms/icon/index.ts +1 -0
- package/src/atoms/illustration/illustration.stories.tsx +39 -0
- package/src/atoms/illustration/illustration.tsx +84 -0
- package/src/atoms/illustration/index.ts +1 -0
- package/src/atoms/illustrations/accept.tsx +17 -0
- package/src/atoms/illustrations/adminjs-logo.tsx +37 -0
- package/src/atoms/illustrations/astronaut.tsx +22 -0
- package/src/atoms/illustrations/bag.tsx +25 -0
- package/src/atoms/illustrations/beware.tsx +18 -0
- package/src/atoms/illustrations/box.tsx +25 -0
- package/src/atoms/illustrations/calendar.tsx +24 -0
- package/src/atoms/illustrations/cancel.tsx +17 -0
- package/src/atoms/illustrations/cards.tsx +20 -0
- package/src/atoms/illustrations/clip.tsx +28 -0
- package/src/atoms/illustrations/cloud.tsx +22 -0
- package/src/atoms/illustrations/cup.tsx +20 -0
- package/src/atoms/illustrations/details.tsx +24 -0
- package/src/atoms/illustrations/docs.tsx +25 -0
- package/src/atoms/illustrations/document-check.tsx +22 -0
- package/src/atoms/illustrations/document-search.tsx +22 -0
- package/src/atoms/illustrations/drawer.tsx +26 -0
- package/src/atoms/illustrations/file-search.tsx +18 -0
- package/src/atoms/illustrations/flag-in-cog.tsx +26 -0
- package/src/atoms/illustrations/folder.tsx +24 -0
- package/src/atoms/illustrations/folders.tsx +22 -0
- package/src/atoms/illustrations/github-logo.tsx +15 -0
- package/src/atoms/illustrations/identity-card.tsx +28 -0
- package/src/atoms/illustrations/index.ts +35 -0
- package/src/atoms/illustrations/launch.tsx +24 -0
- package/src/atoms/illustrations/moon.tsx +42 -0
- package/src/atoms/illustrations/not-found.tsx +24 -0
- package/src/atoms/illustrations/notebook.tsx +32 -0
- package/src/atoms/illustrations/padlock.tsx +24 -0
- package/src/atoms/illustrations/photos.tsx +19 -0
- package/src/atoms/illustrations/planet.tsx +28 -0
- package/src/atoms/illustrations/plug.tsx +23 -0
- package/src/atoms/illustrations/props.type.ts +7 -0
- package/src/atoms/illustrations/rocket-new.tsx +30 -0
- package/src/atoms/illustrations/rocket.tsx +90 -0
- package/src/atoms/illustrations/slack-logo.tsx +29 -0
- package/src/atoms/illustrations/tags.tsx +20 -0
- package/src/atoms/index.ts +23 -0
- package/src/atoms/input/index.ts +1 -0
- package/src/atoms/input/input.stories.tsx +77 -0
- package/src/atoms/input/input.tsx +146 -0
- package/src/atoms/label/index.ts +1 -0
- package/src/atoms/label/label.stories.tsx +42 -0
- package/src/atoms/label/label.tsx +163 -0
- package/src/atoms/link/index.ts +1 -0
- package/src/atoms/link/link.stories.tsx +45 -0
- package/src/atoms/link/link.tsx +128 -0
- package/src/atoms/loader/index.ts +1 -0
- package/src/atoms/loader/loader.stories.tsx +12 -0
- package/src/atoms/loader/loader.tsx +91 -0
- package/src/atoms/overlay/index.ts +1 -0
- package/src/atoms/overlay/overlay.stories.tsx +12 -0
- package/src/atoms/overlay/overlay.tsx +24 -0
- package/src/atoms/phone-input/index.ts +1 -0
- package/src/atoms/phone-input/phone-input.stories.tsx +47 -0
- package/src/atoms/phone-input/phone-input.tsx +79 -0
- package/src/atoms/placeholder/index.ts +1 -0
- package/src/atoms/placeholder/placeholder.stories.tsx +25 -0
- package/src/atoms/placeholder/placeholder.tsx +105 -0
- package/src/atoms/radio/index.ts +1 -0
- package/src/atoms/radio/radio.stories.tsx +35 -0
- package/src/atoms/radio/radio.tsx +142 -0
- package/src/atoms/section/index.ts +1 -0
- package/src/atoms/section/section.stories.tsx +35 -0
- package/src/atoms/section/section.tsx +47 -0
- package/src/atoms/table/index.ts +6 -0
- package/src/atoms/table/table-body.tsx +19 -0
- package/src/atoms/table/table-caption.tsx +43 -0
- package/src/atoms/table/table-cell.tsx +35 -0
- package/src/atoms/table/table-head.tsx +31 -0
- package/src/atoms/table/table-row.tsx +26 -0
- package/src/atoms/table/table.stories.tsx +76 -0
- package/src/atoms/table/table.tsx +110 -0
- package/src/atoms/tabs/index.ts +2 -0
- package/src/atoms/tabs/tab.tsx +38 -0
- package/src/atoms/tabs/tabs.stories.tsx +30 -0
- package/src/atoms/tabs/tabs.tsx +165 -0
- package/src/atoms/text/index.ts +1 -0
- package/src/atoms/text/text.tsx +98 -0
- package/src/atoms/text-area/index.ts +1 -0
- package/src/atoms/text-area/text-area.stories.tsx +24 -0
- package/src/atoms/text-area/text-area.tsx +63 -0
- package/src/atoms/tooltip/index.ts +5 -0
- package/src/atoms/tooltip/tooltip-content.tsx +13 -0
- package/src/atoms/tooltip/tooltip-control.tsx +118 -0
- package/src/atoms/tooltip/tooltip-props.ts +30 -0
- package/src/atoms/tooltip/tooltip-styled.tsx +138 -0
- package/src/atoms/tooltip/tooltip.doc.md +61 -0
- package/src/atoms/tooltip/tooltip.stories.tsx +53 -0
- package/src/atoms/tooltip/tooltip.tsx +77 -0
- package/src/atoms/typography/caption-shared.ts +13 -0
- package/src/atoms/typography/caption.ts +15 -0
- package/src/atoms/typography/card-title.ts +19 -0
- package/src/atoms/typography/header.doc.md +38 -0
- package/src/atoms/typography/header.tsx +128 -0
- package/src/atoms/typography/index.ts +5 -0
- package/src/atoms/typography/small-text.ts +15 -0
- package/src/atoms/typography/title.ts +15 -0
- package/src/atoms/typography/typography.stories.tsx +259 -0
- package/src/constants.ts +2 -0
- package/src/global.ts +53 -0
- package/src/hooks/use-window-size.ts +36 -0
- package/src/index.doc.md +133 -0
- package/src/index.ts +20 -0
- package/src/molecules/date-picker/date-picker.stories.tsx +48 -0
- package/src/molecules/date-picker/date-picker.tsx +329 -0
- package/src/molecules/date-picker/index.ts +2 -0
- package/src/molecules/date-picker/useDatePicker.ts +45 -0
- package/src/molecules/drawer/drawer-content.tsx +18 -0
- package/src/molecules/drawer/drawer-footer.tsx +19 -0
- package/src/molecules/drawer/drawer.stories.tsx +55 -0
- package/src/molecules/drawer/drawer.tsx +127 -0
- package/src/molecules/drawer/index.ts +3 -0
- package/src/molecules/drop-down/drop-down-item-action.tsx +20 -0
- package/src/molecules/drop-down/drop-down-item.tsx +95 -0
- package/src/molecules/drop-down/drop-down-menu.tsx +45 -0
- package/src/molecules/drop-down/drop-down-trigger.tsx +12 -0
- package/src/molecules/drop-down/drop-down.doc.md +74 -0
- package/src/molecules/drop-down/drop-down.stories.tsx +82 -0
- package/src/molecules/drop-down/drop-down.tsx +99 -0
- package/src/molecules/drop-down/index.ts +5 -0
- package/src/molecules/drop-zone/drop-zone-image.tsx +15 -0
- package/src/molecules/drop-zone/drop-zone-item.tsx +126 -0
- package/src/molecules/drop-zone/drop-zone.stories.tsx +94 -0
- package/src/molecules/drop-zone/drop-zone.tsx +374 -0
- package/src/molecules/drop-zone/index.ts +2 -0
- package/src/molecules/form-group/form-group.stories.tsx +62 -0
- package/src/molecules/form-group/form-group.tsx +170 -0
- package/src/molecules/form-group/form-message.tsx +20 -0
- package/src/molecules/form-group/index.ts +3 -0
- package/src/molecules/form-group/input-group.tsx +59 -0
- package/src/molecules/index.ts +15 -0
- package/src/molecules/info-box/index.ts +1 -0
- package/src/molecules/info-box/info-box.stories.tsx +23 -0
- package/src/molecules/info-box/info-box.tsx +78 -0
- package/src/molecules/message-box/index.ts +1 -0
- package/src/molecules/message-box/message-box.stories.tsx +35 -0
- package/src/molecules/message-box/message-box.tsx +185 -0
- package/src/molecules/modal/index.ts +4 -0
- package/src/molecules/modal/modal-inline.tsx +53 -0
- package/src/molecules/modal/modal-props.ts +43 -0
- package/src/molecules/modal/modal-styled.tsx +60 -0
- package/src/molecules/modal/modal-wrapper.tsx +37 -0
- package/src/molecules/modal/modal.doc.md +138 -0
- package/src/molecules/modal/modal.stories.tsx +67 -0
- package/src/molecules/modal/modal.tsx +24 -0
- package/src/molecules/navigation-element/index.ts +3 -0
- package/src/molecules/navigation-element/navigation-element-props.ts +43 -0
- package/src/molecules/navigation-element/navigation-element-styled.ts +57 -0
- package/src/molecules/navigation-element/navigation-element.doc.md +69 -0
- package/src/molecules/navigation-element/navigation-element.stories.tsx +42 -0
- package/src/molecules/navigation-element/navigation-element.tsx +65 -0
- package/src/molecules/pagination/index.ts +1 -0
- package/src/molecules/pagination/pagination.stories.tsx +25 -0
- package/src/molecules/pagination/pagination.tsx +182 -0
- package/src/molecules/rich-text-editor/components/heading-select.tsx +42 -0
- package/src/molecules/rich-text-editor/components/image-button.tsx +49 -0
- package/src/molecules/rich-text-editor/components/menu-bar.tsx +31 -0
- package/src/molecules/rich-text-editor/components/menu-button.tsx +44 -0
- package/src/molecules/rich-text-editor/icons/align-center.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/align-justify.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/align-left.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/align-right.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/bold.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/bullet-list.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/clear.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/code.tsx +16 -0
- package/src/molecules/rich-text-editor/icons/font-size.tsx +14 -0
- package/src/molecules/rich-text-editor/icons/image.tsx +22 -0
- package/src/molecules/rich-text-editor/icons/index.ts +20 -0
- package/src/molecules/rich-text-editor/icons/italic.tsx +14 -0
- package/src/molecules/rich-text-editor/icons/link.tsx +21 -0
- package/src/molecules/rich-text-editor/icons/ordered-list.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/pagebreak.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/paragraph.tsx +14 -0
- package/src/molecules/rich-text-editor/icons/quote.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/redo.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/strikethrough.tsx +17 -0
- package/src/molecules/rich-text-editor/icons/undo.tsx +17 -0
- package/src/molecules/rich-text-editor/index.ts +2 -0
- package/src/molecules/rich-text-editor/rich-text-editor-props.ts +1 -0
- package/src/molecules/rich-text-editor/rich-text-editor.stories.tsx +88 -0
- package/src/molecules/rich-text-editor/rich-text-editor.styled.tsx +52 -0
- package/src/molecules/rich-text-editor/rich-text-editor.tsx +81 -0
- package/src/molecules/rich-text-editor/useTiptapCommands.ts +50 -0
- package/src/molecules/select/index.ts +2 -0
- package/src/molecules/select/select-async.tsx +51 -0
- package/src/molecules/select/select-theme.ts +41 -0
- package/src/molecules/select/select.stories.tsx +77 -0
- package/src/molecules/select/select.tsx +51 -0
- package/src/molecules/stepper/index.ts +2 -0
- package/src/molecules/stepper/step.tsx +162 -0
- package/src/molecules/stepper/stepper.stories.tsx +76 -0
- package/src/molecules/stepper/stepper.tsx +118 -0
- package/src/molecules/tinymce-editor/index.ts +1 -0
- package/src/molecules/tinymce-editor/tinymce-editor.styled.tsx +22 -0
- package/src/molecules/tinymce-editor/tinymce-editor.tsx +110 -0
- package/src/molecules/value-group/index.ts +2 -0
- package/src/molecules/value-group/value-group-props.ts +16 -0
- package/src/molecules/value-group/value-group.doc.md +67 -0
- package/src/molecules/value-group/value-group.stories.tsx +48 -0
- package/src/molecules/value-group/value-group.tsx +32 -0
- package/src/organisms/button-group/button-group.doc.md +92 -0
- package/src/organisms/button-group/button-group.stories.tsx +112 -0
- package/src/organisms/button-group/button-group.styled.tsx +61 -0
- package/src/organisms/button-group/button-group.tsx +41 -0
- package/src/organisms/button-group/button-group.types.ts +61 -0
- package/src/organisms/button-group/button-in-group.tsx +38 -0
- package/src/organisms/button-group/drop-down-item-with-buttons.tsx +56 -0
- package/src/organisms/button-group/index.ts +6 -0
- package/src/organisms/button-group/single-button-in-group.tsx +42 -0
- package/src/organisms/current-user-nav/current-user-nav-props.ts +39 -0
- package/src/organisms/current-user-nav/current-user-nav-styled.ts +31 -0
- package/src/organisms/current-user-nav/current-user-nav.doc.md +72 -0
- package/src/organisms/current-user-nav/current-user-nav.stories.tsx +53 -0
- package/src/organisms/current-user-nav/current-user-nav.tsx +72 -0
- package/src/organisms/current-user-nav/index.ts +3 -0
- package/src/organisms/index.ts +4 -0
- package/src/organisms/made-with-love/index.ts +1 -0
- package/src/organisms/made-with-love/made-with-love.stories.tsx +12 -0
- package/src/organisms/made-with-love/made-with-love.tsx +50 -0
- package/src/organisms/navigation/index.ts +4 -0
- package/src/organisms/navigation/navigation-element-wrapper.tsx +27 -0
- package/src/organisms/navigation/navigation-props.ts +26 -0
- package/src/organisms/navigation/navigation-styled.tsx +17 -0
- package/src/organisms/navigation/navigation.doc.md +126 -0
- package/src/organisms/navigation/navigation.stories.tsx +124 -0
- package/src/organisms/navigation/navigation.tsx +34 -0
- package/src/templates/blog.stories.tsx +69 -0
- package/src/templates/blog.tsx +0 -0
- package/src/theme.doc.md +111 -0
- package/src/theme.ts +554 -0
- package/src/utils/assert.ts +8 -0
- package/src/utils/color-props.ts +7 -0
- package/src/utils/combine-styles.ts +35 -0
- package/src/utils/content-styles.ts +268 -0
- package/src/utils/css-class.ts +37 -0
- package/src/utils/date-utils.ts +60 -0
- package/src/utils/datepicker.styles.ts +790 -0
- package/src/utils/default-theme.interface.ts +30 -0
- package/src/utils/direction-props.ts +1 -0
- package/src/utils/focus-shadow.style.ts +8 -0
- package/src/utils/generate-id.ts +10 -0
- package/src/utils/human-file-size.ts +30 -0
- package/src/utils/index.ts +14 -0
- package/src/utils/non-nullish-partial-record.type.ts +13 -0
- package/src/utils/phone-input.styles.ts +1170 -0
- package/src/utils/portal-utils.tsx +45 -0
- package/src/utils/reset.styles.ts +98 -0
- package/src/utils/select-styles.ts +52 -0
- package/src/utils/story-wrapper.tsx +23 -0
- package/src/utils/styled.ts +7 -0
- package/src/utils/theme-get.ts +57 -0
- package/tsconfig.json +36 -0
- package/types/src/atoms/avatar/avatar.d.ts +10 -0
- package/types/src/atoms/avatar/avatar.stories.d.ts +6 -0
- package/types/src/atoms/avatar/index.d.ts +1 -0
- package/types/src/atoms/badge/badge.d.ts +51 -0
- package/types/src/atoms/badge/badge.stories.d.ts +6 -0
- package/types/src/atoms/badge/index.d.ts +1 -0
- package/types/src/atoms/box/box.d.ts +47 -0
- package/types/src/atoms/box/box.stories.d.ts +7 -0
- package/types/src/atoms/box/index.d.ts +1 -0
- package/types/src/atoms/button/button-css.d.ts +18 -0
- package/types/src/atoms/button/button-props.d.ts +38 -0
- package/types/src/atoms/button/button.d.ts +25 -0
- package/types/src/atoms/button/button.stories.d.ts +6 -0
- package/types/src/atoms/button/index.d.ts +3 -0
- package/types/src/atoms/check-box/check-box.d.ts +39 -0
- package/types/src/atoms/check-box/check-box.stories.d.ts +6 -0
- package/types/src/atoms/check-box/index.d.ts +1 -0
- package/types/src/atoms/currency-input/currency-input.d.ts +74 -0
- package/types/src/atoms/currency-input/currency-input.stories.d.ts +6 -0
- package/types/src/atoms/currency-input/index.d.ts +1 -0
- package/types/src/atoms/icon/icon.d.ts +93 -0
- package/types/src/atoms/icon/icon.stories.d.ts +6 -0
- package/types/src/atoms/icon/index.d.ts +1 -0
- package/types/src/atoms/illustration/illustration.d.ts +52 -0
- package/types/src/atoms/illustration/illustration.stories.d.ts +6 -0
- package/types/src/atoms/illustration/index.d.ts +1 -0
- package/types/src/atoms/illustrations/accept.d.ts +4 -0
- package/types/src/atoms/illustrations/adminjs-logo.d.ts +4 -0
- package/types/src/atoms/illustrations/astronaut.d.ts +4 -0
- package/types/src/atoms/illustrations/bag.d.ts +4 -0
- package/types/src/atoms/illustrations/beware.d.ts +4 -0
- package/types/src/atoms/illustrations/box.d.ts +4 -0
- package/types/src/atoms/illustrations/calendar.d.ts +4 -0
- package/types/src/atoms/illustrations/cancel.d.ts +4 -0
- package/types/src/atoms/illustrations/cards.d.ts +4 -0
- package/types/src/atoms/illustrations/clip.d.ts +4 -0
- package/types/src/atoms/illustrations/cloud.d.ts +4 -0
- package/types/src/atoms/illustrations/cup.d.ts +4 -0
- package/types/src/atoms/illustrations/details.d.ts +4 -0
- package/types/src/atoms/illustrations/docs.d.ts +4 -0
- package/types/src/atoms/illustrations/document-check.d.ts +4 -0
- package/types/src/atoms/illustrations/document-search.d.ts +4 -0
- package/types/src/atoms/illustrations/drawer.d.ts +4 -0
- package/types/src/atoms/illustrations/file-search.d.ts +4 -0
- package/types/src/atoms/illustrations/flag-in-cog.d.ts +4 -0
- package/types/src/atoms/illustrations/folder.d.ts +4 -0
- package/types/src/atoms/illustrations/folders.d.ts +4 -0
- package/types/src/atoms/illustrations/github-logo.d.ts +4 -0
- package/types/src/atoms/illustrations/identity-card.d.ts +4 -0
- package/types/src/atoms/illustrations/index.d.ts +35 -0
- package/types/src/atoms/illustrations/launch.d.ts +4 -0
- package/types/src/atoms/illustrations/moon.d.ts +4 -0
- package/types/src/atoms/illustrations/not-found.d.ts +4 -0
- package/types/src/atoms/illustrations/notebook.d.ts +4 -0
- package/types/src/atoms/illustrations/padlock.d.ts +4 -0
- package/types/src/atoms/illustrations/photos.d.ts +4 -0
- package/types/src/atoms/illustrations/planet.d.ts +4 -0
- package/types/src/atoms/illustrations/plug.d.ts +4 -0
- package/types/src/atoms/illustrations/props.type.d.ts +6 -0
- package/types/src/atoms/illustrations/rocket-new.d.ts +4 -0
- package/types/src/atoms/illustrations/rocket.d.ts +4 -0
- package/types/src/atoms/illustrations/slack-logo.d.ts +4 -0
- package/types/src/atoms/illustrations/tags.d.ts +4 -0
- package/types/src/atoms/index.d.ts +23 -0
- package/types/src/atoms/input/index.d.ts +1 -0
- package/types/src/atoms/input/input.d.ts +63 -0
- package/types/src/atoms/input/input.stories.d.ts +6 -0
- package/types/src/atoms/label/index.d.ts +1 -0
- package/types/src/atoms/label/label.d.ts +79 -0
- package/types/src/atoms/label/label.stories.d.ts +5 -0
- package/types/src/atoms/link/index.d.ts +1 -0
- package/types/src/atoms/link/link.d.ts +74 -0
- package/types/src/atoms/link/link.stories.d.ts +5 -0
- package/types/src/atoms/loader/index.d.ts +1 -0
- package/types/src/atoms/loader/loader.d.ts +27 -0
- package/types/src/atoms/loader/loader.stories.d.ts +5 -0
- package/types/src/atoms/overlay/index.d.ts +1 -0
- package/types/src/atoms/overlay/overlay.d.ts +3 -0
- package/types/src/atoms/overlay/overlay.stories.d.ts +5 -0
- package/types/src/atoms/phone-input/index.d.ts +1 -0
- package/types/src/atoms/phone-input/phone-input.d.ts +47 -0
- package/types/src/atoms/phone-input/phone-input.stories.d.ts +6 -0
- package/types/src/atoms/placeholder/index.d.ts +1 -0
- package/types/src/atoms/placeholder/placeholder.d.ts +52 -0
- package/types/src/atoms/placeholder/placeholder.stories.d.ts +6 -0
- package/types/src/atoms/radio/index.d.ts +1 -0
- package/types/src/atoms/radio/radio.d.ts +40 -0
- package/types/src/atoms/radio/radio.stories.d.ts +5 -0
- package/types/src/atoms/section/index.d.ts +1 -0
- package/types/src/atoms/section/section.d.ts +31 -0
- package/types/src/atoms/section/section.stories.d.ts +5 -0
- package/types/src/atoms/table/index.d.ts +6 -0
- package/types/src/atoms/table/table-body.d.ts +6 -0
- package/types/src/atoms/table/table-caption.d.ts +6 -0
- package/types/src/atoms/table/table-cell.d.ts +9 -0
- package/types/src/atoms/table/table-head.d.ts +6 -0
- package/types/src/atoms/table/table-row.d.ts +6 -0
- package/types/src/atoms/table/table.d.ts +90 -0
- package/types/src/atoms/table/table.stories.d.ts +7 -0
- package/types/src/atoms/tabs/index.d.ts +2 -0
- package/types/src/atoms/tabs/tab.d.ts +17 -0
- package/types/src/atoms/tabs/tabs.d.ts +49 -0
- package/types/src/atoms/tabs/tabs.stories.d.ts +5 -0
- package/types/src/atoms/text/index.d.ts +1 -0
- package/types/src/atoms/text/text.d.ts +62 -0
- package/types/src/atoms/text-area/index.d.ts +1 -0
- package/types/src/atoms/text-area/text-area.d.ts +46 -0
- package/types/src/atoms/text-area/text-area.stories.d.ts +5 -0
- package/types/src/atoms/tooltip/index.d.ts +5 -0
- package/types/src/atoms/tooltip/tooltip-content.d.ts +16 -0
- package/types/src/atoms/tooltip/tooltip-control.d.ts +9 -0
- package/types/src/atoms/tooltip/tooltip-props.d.ts +25 -0
- package/types/src/atoms/tooltip/tooltip-styled.d.ts +3 -0
- package/types/src/atoms/tooltip/tooltip.d.ts +12 -0
- package/types/src/atoms/tooltip/tooltip.stories.d.ts +5 -0
- package/types/src/atoms/typography/caption-shared.d.ts +3 -0
- package/types/src/atoms/typography/caption.d.ts +3 -0
- package/types/src/atoms/typography/card-title.d.ts +3 -0
- package/types/src/atoms/typography/header.d.ts +29 -0
- package/types/src/atoms/typography/index.d.ts +5 -0
- package/types/src/atoms/typography/small-text.d.ts +3 -0
- package/types/src/atoms/typography/title.d.ts +3 -0
- package/types/src/atoms/typography/typography.stories.d.ts +9 -0
- package/types/src/constants.d.ts +1 -0
- package/types/src/global.d.ts +1 -0
- package/types/src/hooks/use-window-size.d.ts +6 -0
- package/types/src/index.d.ts +16 -0
- package/types/src/molecules/date-picker/date-picker.d.ts +78 -0
- package/types/src/molecules/date-picker/date-picker.stories.d.ts +5 -0
- package/types/src/molecules/date-picker/index.d.ts +2 -0
- package/types/src/molecules/date-picker/useDatePicker.d.ts +14 -0
- package/types/src/molecules/drawer/drawer-content.d.ts +7 -0
- package/types/src/molecules/drawer/drawer-footer.d.ts +7 -0
- package/types/src/molecules/drawer/drawer.d.ts +88 -0
- package/types/src/molecules/drawer/drawer.stories.d.ts +5 -0
- package/types/src/molecules/drawer/index.d.ts +3 -0
- package/types/src/molecules/drop-down/drop-down-item-action.d.ts +12 -0
- package/types/src/molecules/drop-down/drop-down-item.d.ts +32 -0
- package/types/src/molecules/drop-down/drop-down-menu.d.ts +31 -0
- package/types/src/molecules/drop-down/drop-down-trigger.d.ts +6 -0
- package/types/src/molecules/drop-down/drop-down.d.ts +30 -0
- package/types/src/molecules/drop-down/drop-down.stories.d.ts +10 -0
- package/types/src/molecules/drop-down/index.d.ts +5 -0
- package/types/src/molecules/drop-zone/drop-zone-image.d.ts +3 -0
- package/types/src/molecules/drop-zone/drop-zone-item.d.ts +55 -0
- package/types/src/molecules/drop-zone/drop-zone.d.ts +148 -0
- package/types/src/molecules/drop-zone/drop-zone.stories.d.ts +8 -0
- package/types/src/molecules/drop-zone/index.d.ts +2 -0
- package/types/src/molecules/form-group/form-group.d.ts +119 -0
- package/types/src/molecules/form-group/form-group.stories.d.ts +6 -0
- package/types/src/molecules/form-group/form-message.d.ts +11 -0
- package/types/src/molecules/form-group/index.d.ts +3 -0
- package/types/src/molecules/form-group/input-group.d.ts +6 -0
- package/types/src/molecules/index.d.ts +15 -0
- package/types/src/molecules/info-box/index.d.ts +1 -0
- package/types/src/molecules/info-box/info-box.d.ts +53 -0
- package/types/src/molecules/info-box/info-box.stories.d.ts +5 -0
- package/types/src/molecules/message-box/index.d.ts +1 -0
- package/types/src/molecules/message-box/message-box.d.ts +94 -0
- package/types/src/molecules/message-box/message-box.stories.d.ts +7 -0
- package/types/src/molecules/modal/index.d.ts +4 -0
- package/types/src/molecules/modal/modal-inline.d.ts +14 -0
- package/types/src/molecules/modal/modal-props.d.ts +38 -0
- package/types/src/molecules/modal/modal-styled.d.ts +12 -0
- package/types/src/molecules/modal/modal-wrapper.d.ts +4 -0
- package/types/src/molecules/modal/modal.d.ts +12 -0
- package/types/src/molecules/modal/modal.stories.d.ts +5 -0
- package/types/src/molecules/navigation-element/index.d.ts +3 -0
- package/types/src/molecules/navigation-element/navigation-element-props.d.ts +38 -0
- package/types/src/molecules/navigation-element/navigation-element-styled.d.ts +3 -0
- package/types/src/molecules/navigation-element/navigation-element.d.ts +14 -0
- package/types/src/molecules/navigation-element/navigation-element.stories.d.ts +5 -0
- package/types/src/molecules/pagination/index.d.ts +1 -0
- package/types/src/molecules/pagination/pagination.d.ts +64 -0
- package/types/src/molecules/pagination/pagination.stories.d.ts +5 -0
- package/types/src/molecules/rich-text-editor/components/heading-select.d.ts +7 -0
- package/types/src/molecules/rich-text-editor/components/image-button.d.ts +7 -0
- package/types/src/molecules/rich-text-editor/components/menu-bar.d.ts +7 -0
- package/types/src/molecules/rich-text-editor/components/menu-button.d.ts +12 -0
- package/types/src/molecules/rich-text-editor/icons/align-center.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/align-justify.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/align-left.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/align-right.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/bold.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/bullet-list.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/clear.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/code.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/font-size.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/image.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/index.d.ts +19 -0
- package/types/src/molecules/rich-text-editor/icons/italic.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/link.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/ordered-list.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/pagebreak.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/paragraph.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/quote.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/redo.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/strikethrough.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/icons/undo.d.ts +3 -0
- package/types/src/molecules/rich-text-editor/index.d.ts +2 -0
- package/types/src/molecules/rich-text-editor/rich-text-editor-props.d.ts +1 -0
- package/types/src/molecules/rich-text-editor/rich-text-editor.d.ts +15 -0
- package/types/src/molecules/rich-text-editor/rich-text-editor.stories.d.ts +5 -0
- package/types/src/molecules/rich-text-editor/rich-text-editor.styled.d.ts +22 -0
- package/types/src/molecules/rich-text-editor/useTiptapCommands.d.ts +12 -0
- package/types/src/molecules/select/index.d.ts +2 -0
- package/types/src/molecules/select/select-async.d.ts +9 -0
- package/types/src/molecules/select/select-theme.d.ts +7 -0
- package/types/src/molecules/select/select.d.ts +9 -0
- package/types/src/molecules/select/select.stories.d.ts +7 -0
- package/types/src/molecules/stepper/index.d.ts +2 -0
- package/types/src/molecules/stepper/step.d.ts +86 -0
- package/types/src/molecules/stepper/stepper.d.ts +112 -0
- package/types/src/molecules/stepper/stepper.stories.d.ts +6 -0
- package/types/src/molecules/tinymce-editor/index.d.ts +1 -0
- package/types/src/molecules/tinymce-editor/tinymce-editor.d.ts +14 -0
- package/types/src/molecules/tinymce-editor/tinymce-editor.styled.d.ts +21 -0
- package/types/src/molecules/value-group/index.d.ts +2 -0
- package/types/src/molecules/value-group/value-group-props.d.ts +15 -0
- package/types/src/molecules/value-group/value-group.d.ts +14 -0
- package/types/src/molecules/value-group/value-group.stories.d.ts +7 -0
- package/types/src/organisms/button-group/button-group.d.ts +13 -0
- package/types/src/organisms/button-group/button-group.stories.d.ts +7 -0
- package/types/src/organisms/button-group/button-group.styled.d.ts +33 -0
- package/types/src/organisms/button-group/button-group.types.d.ts +59 -0
- package/types/src/organisms/button-group/button-in-group.d.ts +4 -0
- package/types/src/organisms/button-group/drop-down-item-with-buttons.d.ts +4 -0
- package/types/src/organisms/button-group/index.d.ts +6 -0
- package/types/src/organisms/button-group/single-button-in-group.d.ts +4 -0
- package/types/src/organisms/current-user-nav/current-user-nav-props.d.ts +37 -0
- package/types/src/organisms/current-user-nav/current-user-nav-styled.d.ts +12 -0
- package/types/src/organisms/current-user-nav/current-user-nav.d.ts +14 -0
- package/types/src/organisms/current-user-nav/current-user-nav.stories.d.ts +7 -0
- package/types/src/organisms/current-user-nav/index.d.ts +3 -0
- package/types/src/organisms/index.d.ts +4 -0
- package/types/src/organisms/made-with-love/index.d.ts +1 -0
- package/types/src/organisms/made-with-love/made-with-love.d.ts +3 -0
- package/types/src/organisms/made-with-love/made-with-love.stories.d.ts +5 -0
- package/types/src/organisms/navigation/index.d.ts +4 -0
- package/types/src/organisms/navigation/navigation-element-wrapper.d.ts +4 -0
- package/types/src/organisms/navigation/navigation-props.d.ts +21 -0
- package/types/src/organisms/navigation/navigation-styled.d.ts +12 -0
- package/types/src/organisms/navigation/navigation.d.ts +14 -0
- package/types/src/organisms/navigation/navigation.stories.d.ts +8 -0
- package/types/src/templates/blog.d.ts +1 -0
- package/types/src/templates/blog.stories.d.ts +4 -0
- package/types/src/theme.d.ts +503 -0
- package/types/src/utils/assert.d.ts +2 -0
- package/types/src/utils/color-props.d.ts +5 -0
- package/types/src/utils/combine-styles.d.ts +23 -0
- package/types/src/utils/content-styles.d.ts +21 -0
- package/types/src/utils/css-class.d.ts +21 -0
- package/types/src/utils/date-utils.d.ts +34 -0
- package/types/src/utils/datepicker.styles.d.ts +3 -0
- package/types/src/utils/default-theme.interface.d.ts +17 -0
- package/types/src/utils/direction-props.d.ts +1 -0
- package/types/src/utils/focus-shadow.style.d.ts +3 -0
- package/types/src/utils/generate-id.d.ts +2 -0
- package/types/src/utils/human-file-size.d.ts +12 -0
- package/types/src/utils/index.d.ts +13 -0
- package/types/src/utils/non-nullish-partial-record.type.d.ts +16 -0
- package/types/src/utils/phone-input.styles.d.ts +3 -0
- package/types/src/utils/portal-utils.d.ts +7 -0
- package/types/src/utils/reset.styles.d.ts +37 -0
- package/types/src/utils/select-styles.d.ts +5 -0
- package/types/src/utils/story-wrapper.d.ts +9 -0
- package/types/src/utils/styled.d.ts +4 -0
- package/types/src/utils/theme-get.d.ts +32 -0
- package/vendor-types/csstype/index.d.ts +0 -0
- package/vendor-types/jw-paginate/index.d.ts +10 -0
- package/vendor-types/styled-components/index.d.ts +7 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../../atoms/box/index.js';
|
|
3
|
+
export declare const DEFAULT_STICK = "left";
|
|
4
|
+
/**
|
|
5
|
+
* Available values for {@link DropDown}.stick prop
|
|
6
|
+
* @memberof DropDown
|
|
7
|
+
*/
|
|
8
|
+
export type DropDownStickProp = 'left' | 'right';
|
|
9
|
+
/**
|
|
10
|
+
* Props passed to DropDown element.
|
|
11
|
+
* @property {string} [...] Other props from {@link BoxProps}
|
|
12
|
+
* @memberof DropDown
|
|
13
|
+
* @extends BoxProps
|
|
14
|
+
*/
|
|
15
|
+
export type DropDownProps = {
|
|
16
|
+
/** Indicates if menu should stick to left or right */
|
|
17
|
+
stick?: DropDownStickProp;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
} & BoxProps;
|
|
20
|
+
/**
|
|
21
|
+
* @load ./drop-down.doc.md
|
|
22
|
+
* @hideconstructor
|
|
23
|
+
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-dropdown--default Storybook}
|
|
24
|
+
* @component
|
|
25
|
+
* @subcategory Molecules
|
|
26
|
+
* @section design-system
|
|
27
|
+
*/
|
|
28
|
+
declare const DropDown: React.FC<DropDownProps>;
|
|
29
|
+
export { DropDown };
|
|
30
|
+
export default DropDown;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DropDown, DropDownProps } from './index.js';
|
|
3
|
+
export declare const Default: StoryObj<DropDownProps & {
|
|
4
|
+
onClick: (e: any) => void;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const Custom: StoryObj<{
|
|
7
|
+
onClick: (e: any) => void;
|
|
8
|
+
}>;
|
|
9
|
+
declare const meta: Meta<typeof DropDown>;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @memberof DropZoneItem
|
|
4
|
+
* @alias DropZoneItemProps
|
|
5
|
+
*/
|
|
6
|
+
export type DropZoneItemProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Actual file buffer
|
|
9
|
+
*/
|
|
10
|
+
file?: File;
|
|
11
|
+
/**
|
|
12
|
+
* Handler function triggered after clicking remove
|
|
13
|
+
*/
|
|
14
|
+
onRemove?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Preview image. If `file` is given and it is a image then `src` will be
|
|
17
|
+
* overridden by this image.
|
|
18
|
+
*/
|
|
19
|
+
src?: string;
|
|
20
|
+
/**
|
|
21
|
+
* filename. If 'file' is given it overrides what was given as a `filename`
|
|
22
|
+
*/
|
|
23
|
+
filename?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @classdesc
|
|
27
|
+
*
|
|
28
|
+
* <img src="components/drop-zone-item.png" />
|
|
29
|
+
*
|
|
30
|
+
* Single uploaded file. Usually it is used within {@link DropZone}, but it can also be
|
|
31
|
+
* reused anywhere
|
|
32
|
+
*
|
|
33
|
+
* ### Usage
|
|
34
|
+
*
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { DropZoneItem, DropZoneItemProps } from '@adminjs/design-system'
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @see DropZoneItem
|
|
40
|
+
* @hideconstructor
|
|
41
|
+
* @see DropZoneItemProps
|
|
42
|
+
* @example
|
|
43
|
+
* return (
|
|
44
|
+
* <DropZoneItem
|
|
45
|
+
* src="https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.npr.org%2F2019%2F05%2F17%2F724262019%2Fgrumpy-cat-dies-her-spirit-will-live-on-family-says&psig=AOvVaw2ZKtTEZr8N43fx9x-lTITa&ust=1581083274368000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCKidqqyIvecCFQAAAAAdAAAAABAD"
|
|
46
|
+
* filename="shut-up-it-works.png"
|
|
47
|
+
* />
|
|
48
|
+
* )
|
|
49
|
+
* @component
|
|
50
|
+
* @subcategory Molecules
|
|
51
|
+
* @section design-system
|
|
52
|
+
*/
|
|
53
|
+
declare const DropZoneItem: React.FC<DropZoneItemProps>;
|
|
54
|
+
export { DropZoneItem };
|
|
55
|
+
export default DropZoneItem;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DisplaySizeUnit } from '../../utils/human-file-size.js';
|
|
3
|
+
/**
|
|
4
|
+
* @memberof DropZone
|
|
5
|
+
* @alias FileSizeUnit
|
|
6
|
+
*/
|
|
7
|
+
type FileSizeUnit = DisplaySizeUnit;
|
|
8
|
+
export declare const DROPZONE_DEFAULT_TRANSLATIONS: {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
acceptedSize: string;
|
|
11
|
+
acceptedType: string;
|
|
12
|
+
unsupportedSize: string;
|
|
13
|
+
unsupportedType: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @returns {void}
|
|
17
|
+
* @memberof DropZone
|
|
18
|
+
* @alias OnDropDownChange
|
|
19
|
+
*/
|
|
20
|
+
export type OnDropZoneChange = (files: Array<File>) => void;
|
|
21
|
+
/**
|
|
22
|
+
* @memberof DropZone
|
|
23
|
+
* @alias DropZoneProps
|
|
24
|
+
*/
|
|
25
|
+
export type DropZoneProps = {
|
|
26
|
+
/**
|
|
27
|
+
* if drop zone should handle multiple uploads
|
|
28
|
+
*/
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Initial files collection (in case you want to hold files state)
|
|
32
|
+
*/
|
|
33
|
+
files?: Array<File>;
|
|
34
|
+
/**
|
|
35
|
+
* Callback performed when the file is dropped/selected
|
|
36
|
+
*/
|
|
37
|
+
onChange?: OnDropZoneChange;
|
|
38
|
+
/**
|
|
39
|
+
* Validate options
|
|
40
|
+
*/
|
|
41
|
+
validate?: {
|
|
42
|
+
/**
|
|
43
|
+
* Maximum size of the uploaded file in bytes. If not defined - all files are allowed.
|
|
44
|
+
*/
|
|
45
|
+
maxSize?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Available mime types. When not defined - all mime types are allowed.
|
|
48
|
+
*/
|
|
49
|
+
mimeTypes?: Array<string>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Upload limit display e.g.: 'KB' (upper case)
|
|
53
|
+
*/
|
|
54
|
+
uploadLimitIn?: FileSizeUnit;
|
|
55
|
+
/**
|
|
56
|
+
* Custom drop zone translations
|
|
57
|
+
* @default
|
|
58
|
+
* {
|
|
59
|
+
* placeholder: 'Drop your image here, or click to browse',
|
|
60
|
+
* acceptedSize: 'Max size: {{maxSize}}',
|
|
61
|
+
* acceptedType: 'Supports: {{mimeTypes}}',
|
|
62
|
+
* unsupportedSize: 'File {{fileName}} is too big',
|
|
63
|
+
* unsupportedType: 'File {{fileName}} has unsupported type: {{fileType}}',
|
|
64
|
+
* }
|
|
65
|
+
*/
|
|
66
|
+
translations?: Partial<typeof DROPZONE_DEFAULT_TRANSLATIONS>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @classdesc
|
|
70
|
+
*
|
|
71
|
+
* <img src="components/drop-zone.png" />
|
|
72
|
+
*
|
|
73
|
+
* DropZone which can be used for uploading files.
|
|
74
|
+
*
|
|
75
|
+
* ### usage
|
|
76
|
+
*
|
|
77
|
+
* ```javascript
|
|
78
|
+
* import { DropZone, DropZoneProps } from '@adminjs/design-system'
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* how to use it in your custom component.tsx (TypesScript):
|
|
82
|
+
* ```
|
|
83
|
+
* import React, { useState } from 'react'
|
|
84
|
+
* import { DropZone, Label, BasePropertyProps } from '@adminjs/design-system'
|
|
85
|
+
* import { unflatten } from 'flat'
|
|
86
|
+
*
|
|
87
|
+
* const UploadPhoto: React.FC<BasePropertyProps> = (props) => {
|
|
88
|
+
* const { property, record, onChange } = props
|
|
89
|
+
*
|
|
90
|
+
* const onUpload = (files: FileList) => {
|
|
91
|
+
* const newRecord = {...record}
|
|
92
|
+
* const file = files.length && files[0]
|
|
93
|
+
*
|
|
94
|
+
* onChange({
|
|
95
|
+
* ...newRecord,
|
|
96
|
+
* params: {
|
|
97
|
+
* ...newRecord.params,
|
|
98
|
+
* [property.name]: file,
|
|
99
|
+
* }
|
|
100
|
+
* })
|
|
101
|
+
* event.preventDefault()
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* return (
|
|
105
|
+
* <Box>
|
|
106
|
+
* <Label>{property.label}</Label>
|
|
107
|
+
* <DropZone onChange={onUpload} />
|
|
108
|
+
* </Box>
|
|
109
|
+
* )
|
|
110
|
+
* }
|
|
111
|
+
* ```
|
|
112
|
+
* @hideconstructor
|
|
113
|
+
* @component
|
|
114
|
+
* @subcategory Molecules
|
|
115
|
+
* @see FileSizeUnit
|
|
116
|
+
* @see OnDropDownChange
|
|
117
|
+
* @see DropZoneProps
|
|
118
|
+
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-dropzone--default Storybook}
|
|
119
|
+
* @example <caption>Single file with validation</caption>
|
|
120
|
+
* const maxSize = 1024 * 100
|
|
121
|
+
* const mimeTypes = ['application/pdf']
|
|
122
|
+
* const onUpload = (files) => { alert(files,length ? files[0].name : 'no files' ) }
|
|
123
|
+
* return (
|
|
124
|
+
* <Box>
|
|
125
|
+
* <DropZone
|
|
126
|
+
* onChange={onUpload}
|
|
127
|
+
* validate= { { maxSize, mimeTypes } }
|
|
128
|
+
* />
|
|
129
|
+
* </Box>
|
|
130
|
+
* )
|
|
131
|
+
*
|
|
132
|
+
* @example <caption>Multi file of photos</caption>
|
|
133
|
+
* const mimeTypes = ['image/png']
|
|
134
|
+
* const onUpload = (files) => { alert(files.length ? files.length : 'no files' ) }
|
|
135
|
+
* return (
|
|
136
|
+
* <Box>
|
|
137
|
+
* <DropZone
|
|
138
|
+
* multiple
|
|
139
|
+
* onChange={onUpload}
|
|
140
|
+
* validate= { { mimeTypes } }
|
|
141
|
+
* />
|
|
142
|
+
* </Box>
|
|
143
|
+
* )
|
|
144
|
+
* @section design-system
|
|
145
|
+
*/
|
|
146
|
+
declare const DropZone: React.FC<DropZoneProps>;
|
|
147
|
+
export { DropZone };
|
|
148
|
+
export default DropZone;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DROPZONE_DEFAULT_TRANSLATIONS, DropZone, DropZoneProps } from './index.js';
|
|
3
|
+
export declare const Default: StoryObj<DropZoneProps & {
|
|
4
|
+
maxSize: number;
|
|
5
|
+
mimeTypes: string[];
|
|
6
|
+
} & typeof DROPZONE_DEFAULT_TRANSLATIONS>;
|
|
7
|
+
declare const meta: Meta<typeof DropZone>;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { SpaceProps } from 'styled-system';
|
|
2
|
+
/**
|
|
3
|
+
* Props for FormGroup. Apart from props defined here FormGroup supports also all {@link SpaceProps}
|
|
4
|
+
* @alias FormGroupProps
|
|
5
|
+
* @memberof FormGroup
|
|
6
|
+
*/
|
|
7
|
+
export type FormGroupProps = SpaceProps & {
|
|
8
|
+
/**
|
|
9
|
+
* If given FormGroup has error
|
|
10
|
+
*/
|
|
11
|
+
error?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* If given FormGroup should be disabled
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* if given form group should be rendered in a filter
|
|
18
|
+
*/
|
|
19
|
+
variant?: 'filter';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @classdesc
|
|
23
|
+
*
|
|
24
|
+
* <img src="components/form-group.png" />
|
|
25
|
+
*
|
|
26
|
+
* FormGroup comes with other, from-related components like: FormMessage and InputGroup.
|
|
27
|
+
* Together they allow you to build form elements.
|
|
28
|
+
*
|
|
29
|
+
* ### Usage
|
|
30
|
+
*
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { FormGroup, FormGroupProps, InputGroup, FormMessage } from '@adminjs/design-system'
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @hideconstructor
|
|
36
|
+
* @component
|
|
37
|
+
* @see FormGroupProps
|
|
38
|
+
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-formgroup--default Storybook}
|
|
39
|
+
* @subcategory Molecules
|
|
40
|
+
* @example <caption>Example 1: input with all sorts of buttons</caption>
|
|
41
|
+
* return (
|
|
42
|
+
* <Box py="xl">
|
|
43
|
+
* <FormGroup>
|
|
44
|
+
* <Label required>Name</Label>
|
|
45
|
+
* <InputGroup>
|
|
46
|
+
* <Button variant="contained" size="icon">
|
|
47
|
+
* <Icon icon="ChevronRight" />
|
|
48
|
+
* </Button>
|
|
49
|
+
* <Input />
|
|
50
|
+
* <Label>100 KM</Label>
|
|
51
|
+
* <Button variant="contained" size="icon">
|
|
52
|
+
* <Icon icon="ChevronRight" />
|
|
53
|
+
* </Button>
|
|
54
|
+
* </InputGroup>
|
|
55
|
+
* <FormMessage>And the optional message</FormMessage>
|
|
56
|
+
* </FormGroup>
|
|
57
|
+
* </Box>
|
|
58
|
+
* )
|
|
59
|
+
* @example <caption>Example 2: the same input with errors</caption>
|
|
60
|
+
* return (
|
|
61
|
+
* <Box py="xl">
|
|
62
|
+
* <FormGroup error>
|
|
63
|
+
* <Label required>Name</Label>
|
|
64
|
+
* <InputGroup>
|
|
65
|
+
* <Button variant="contained" size="icon">
|
|
66
|
+
* <Icon icon="ChevronRight" />
|
|
67
|
+
* </Button>
|
|
68
|
+
* <Input />
|
|
69
|
+
* <Label>100 KM</Label>
|
|
70
|
+
* <Button variant="contained" size="icon">
|
|
71
|
+
* <Icon icon="ChevronRight" />
|
|
72
|
+
* </Button>
|
|
73
|
+
* </InputGroup>
|
|
74
|
+
* <FormMessage>And the optional message</FormMessage>
|
|
75
|
+
* </FormGroup>
|
|
76
|
+
* </Box>
|
|
77
|
+
* )
|
|
78
|
+
* @example <caption>Example 3: disabled field</caption>
|
|
79
|
+
* return (
|
|
80
|
+
* <Box py="xl">
|
|
81
|
+
* <FormGroup disabled>
|
|
82
|
+
* <Label>Disabled field</Label>
|
|
83
|
+
* <InputGroup>
|
|
84
|
+
* <Input disabled />
|
|
85
|
+
* </InputGroup>
|
|
86
|
+
* <FormMessage />
|
|
87
|
+
* </FormGroup>
|
|
88
|
+
* </Box>
|
|
89
|
+
* )
|
|
90
|
+
* @example <caption>Example 4: with a link</caption>
|
|
91
|
+
* return (
|
|
92
|
+
* <Box py="xl">
|
|
93
|
+
* <FormGroup>
|
|
94
|
+
* <Label>Some form data with button link</Label>
|
|
95
|
+
* <InputGroup>
|
|
96
|
+
* <Input />
|
|
97
|
+
* <Link href="#someHref">This is link</Link>
|
|
98
|
+
* </InputGroup>
|
|
99
|
+
* <FormMessage />
|
|
100
|
+
* </FormGroup>
|
|
101
|
+
* </Box>
|
|
102
|
+
* )
|
|
103
|
+
* @section design-system
|
|
104
|
+
*/
|
|
105
|
+
export declare const FormGroup: import("styled-components").StyledComponent<string, import("styled-components").DefaultTheme, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
106
|
+
/**
|
|
107
|
+
* If given FormGroup has error
|
|
108
|
+
*/
|
|
109
|
+
error?: boolean | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* If given FormGroup should be disabled
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* if given form group should be rendered in a filter
|
|
116
|
+
*/
|
|
117
|
+
variant?: "filter" | undefined;
|
|
118
|
+
}, never>;
|
|
119
|
+
export default FormGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component
|
|
3
|
+
* @private
|
|
4
|
+
*/
|
|
5
|
+
declare const FormMessage: import("styled-components").StyledComponent<string, import("styled-components").DefaultTheme, import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & {
|
|
6
|
+
color?: string | undefined;
|
|
7
|
+
} & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
8
|
+
variant?: "sm" | "lg" | "xs" | undefined;
|
|
9
|
+
as?: string | undefined;
|
|
10
|
+
}, never>;
|
|
11
|
+
export default FormMessage;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './date-picker/index.js';
|
|
2
|
+
export * from './drawer/index.js';
|
|
3
|
+
export * from './drop-down/index.js';
|
|
4
|
+
export * from './drop-zone/index.js';
|
|
5
|
+
export * from './form-group/index.js';
|
|
6
|
+
export * from './info-box/index.js';
|
|
7
|
+
export * from './message-box/index.js';
|
|
8
|
+
export * from './modal/index.js';
|
|
9
|
+
export * from './navigation-element/index.js';
|
|
10
|
+
export * from './pagination/index.js';
|
|
11
|
+
export * from './rich-text-editor/index.js';
|
|
12
|
+
export * from './tinymce-editor/index.js';
|
|
13
|
+
export * from './select/index.js';
|
|
14
|
+
export * from './stepper/index.js';
|
|
15
|
+
export * from './value-group/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './info-box.jsx';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IllustrationVariant } from '../../atoms/illustration/index.js';
|
|
3
|
+
import { BoxProps } from '../../atoms/box/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* @memberof InfoBox
|
|
6
|
+
* @alias InfoBoxProps
|
|
7
|
+
*/
|
|
8
|
+
export type InfoBoxProps = {
|
|
9
|
+
/** Title of an InfoBox */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Inner content - usually couple of {@link Text} nodes */
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/** Infobox illustration {@link Illustration} or custom element above title */
|
|
14
|
+
illustration?: IllustrationVariant | React.ReactElement;
|
|
15
|
+
/** Optional testId */
|
|
16
|
+
testId?: string;
|
|
17
|
+
variant?: BoxProps['variant'];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @classdesc
|
|
21
|
+
*
|
|
22
|
+
* <img src="components/info-box.png" />
|
|
23
|
+
*
|
|
24
|
+
* Used for all type of information like:
|
|
25
|
+
*
|
|
26
|
+
* > you don't have x - please add first one"
|
|
27
|
+
*
|
|
28
|
+
* in the system.
|
|
29
|
+
*
|
|
30
|
+
* ### Usage
|
|
31
|
+
*
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { InfoBox, InfoBoxProps } from '@adminjs/design-system'
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @component
|
|
37
|
+
* @subcategory Molecules
|
|
38
|
+
* @hideconstructor
|
|
39
|
+
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-infobox--default Storybook}
|
|
40
|
+
* @see InfoBoxProps
|
|
41
|
+
* @example
|
|
42
|
+
* return (
|
|
43
|
+
* <InfoBox title="There are no cars in the system">
|
|
44
|
+
* <Text>Currently there are no cars in the system</Text>
|
|
45
|
+
* <Text>To create first click</Text>
|
|
46
|
+
* <Button mt="lg"><Icon icon="Plus" />Create</Button>
|
|
47
|
+
* </InfoBox>
|
|
48
|
+
* )
|
|
49
|
+
* @section design-system
|
|
50
|
+
*/
|
|
51
|
+
declare const InfoBox: React.FC<InfoBoxProps>;
|
|
52
|
+
export { InfoBox };
|
|
53
|
+
export default InfoBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './message-box.jsx';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpaceProps } from 'styled-system';
|
|
3
|
+
import { IconProps } from '../../atoms/icon/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Prop Types of a MessageBox component.
|
|
6
|
+
* Apart from those defined below it extends all {@link SpaceProps}
|
|
7
|
+
*
|
|
8
|
+
* @memberof MessageBox
|
|
9
|
+
* @alias MessageBoxProps
|
|
10
|
+
*/
|
|
11
|
+
type MessageBoxProps = {
|
|
12
|
+
/** Triggered when user clicks close button. If not given close button won't be seen */
|
|
13
|
+
onCloseClick?: () => void;
|
|
14
|
+
/** Title content of a message */
|
|
15
|
+
message?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Variant
|
|
18
|
+
* @default 'info'
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'danger' | 'warning' | 'success' | 'info';
|
|
21
|
+
/** Icon which will be seen in the title */
|
|
22
|
+
icon?: IconProps['icon'];
|
|
23
|
+
/** Size variant */
|
|
24
|
+
size?: 'sm';
|
|
25
|
+
/** Optional html style property */
|
|
26
|
+
style?: Record<string, string>;
|
|
27
|
+
/** Optional children, when given component will be expanded */
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
type Props = SpaceProps & MessageBoxProps;
|
|
31
|
+
export { Props as MessageBoxProps };
|
|
32
|
+
/**
|
|
33
|
+
* @classdesc
|
|
34
|
+
*
|
|
35
|
+
* <img src="components/message-box.png" />
|
|
36
|
+
*
|
|
37
|
+
* Component responsible for rendering standard danger/info/success
|
|
38
|
+
* messages.
|
|
39
|
+
*
|
|
40
|
+
* It has 2 size versions: default and small. Also it can either contain or
|
|
41
|
+
* don't contain children, which causes different look.
|
|
42
|
+
*
|
|
43
|
+
* ### Usage
|
|
44
|
+
*
|
|
45
|
+
* ```javascript
|
|
46
|
+
* import { MessageBox, MessageBoxProps } from '@adminjs/design-system'
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @component
|
|
50
|
+
* @subcategory Molecules
|
|
51
|
+
* @hideconstructor
|
|
52
|
+
* @see MessageBoxProps
|
|
53
|
+
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-messagebox--default Storybook}
|
|
54
|
+
* @example <caption>Different variants</caption>
|
|
55
|
+
* return (
|
|
56
|
+
* <Box py="lg">
|
|
57
|
+
* <MessageBox message="Some default message" onCloseClick={() => alert('close clicked')} />
|
|
58
|
+
* <MessageBox message="Error message" mt="default" variant="danger" onCloseClick={() => alert('close clicked')} />
|
|
59
|
+
* <MessageBox message="Info message" mt="default" variant="info" onCloseClick={() => alert('close clicked')} />
|
|
60
|
+
* </Box>
|
|
61
|
+
* )
|
|
62
|
+
* @example <caption>Different variants with children</caption>
|
|
63
|
+
* return (
|
|
64
|
+
* <Box py="lg">
|
|
65
|
+
* <MessageBox message="Some default message" onCloseClick={() => alert('close clicked')}>
|
|
66
|
+
* With inside text
|
|
67
|
+
* </MessageBox>
|
|
68
|
+
* <MessageBox message="Error message" mt="default" variant="danger" onCloseClick={() => alert('close clicked')}>
|
|
69
|
+
* With inside text
|
|
70
|
+
* </MessageBox>
|
|
71
|
+
* <MessageBox message="Info message" mt="default" variant="info" onCloseClick={() => alert('close clicked')}>
|
|
72
|
+
* With inside text
|
|
73
|
+
* </MessageBox>
|
|
74
|
+
* </Box>
|
|
75
|
+
* )
|
|
76
|
+
* @example <caption>Small with an icon and inside text</caption>
|
|
77
|
+
* return (
|
|
78
|
+
* <Box py="lg">
|
|
79
|
+
* <MessageBox
|
|
80
|
+
* size="sm"
|
|
81
|
+
* message="Info message"
|
|
82
|
+
* mt="default"
|
|
83
|
+
* variant="info"
|
|
84
|
+
* icon="MessageCircle"
|
|
85
|
+
* onCloseClick={() => alert('close clicked')}
|
|
86
|
+
* >
|
|
87
|
+
* With inside text
|
|
88
|
+
* </MessageBox>
|
|
89
|
+
* </Box>
|
|
90
|
+
* )
|
|
91
|
+
* @section design-system
|
|
92
|
+
*/
|
|
93
|
+
export declare const MessageBox: React.FC<Props>;
|
|
94
|
+
export default MessageBox;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MessageBox, MessageBoxProps } from './message-box.jsx';
|
|
3
|
+
export declare const Default: StoryObj<MessageBoxProps & {
|
|
4
|
+
withInsideText: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
declare const meta: Meta<typeof MessageBox>;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../../atoms/box/index.js';
|
|
3
|
+
import { ModalProps } from './modal-props.js';
|
|
4
|
+
/**
|
|
5
|
+
* Modal which can be rendered inline instead of a "modal"
|
|
6
|
+
*
|
|
7
|
+
* @memberof Modal
|
|
8
|
+
* @component
|
|
9
|
+
* @hideconstructor
|
|
10
|
+
* @private
|
|
11
|
+
* @section design-system
|
|
12
|
+
*/
|
|
13
|
+
export declare const ModalInline: React.FC<ModalProps & Omit<BoxProps, 'variant'>>;
|
|
14
|
+
export default ModalInline;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import type { ButtonProps } from '../../atoms/button/index.js';
|
|
3
|
+
import type { IconProps } from '../../atoms/icon/index.js';
|
|
4
|
+
import { VariantType } from '../../theme.js';
|
|
5
|
+
/**
|
|
6
|
+
* Props passed to Modal Component
|
|
7
|
+
*
|
|
8
|
+
* @memberof Modal
|
|
9
|
+
* @alias ModalProps
|
|
10
|
+
*/
|
|
11
|
+
export type ModalProps = {
|
|
12
|
+
/**
|
|
13
|
+
* dialog title
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* optional subtitle
|
|
18
|
+
*/
|
|
19
|
+
subTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* color variant
|
|
22
|
+
*/
|
|
23
|
+
variant?: VariantType;
|
|
24
|
+
/** Modal footer buttons */
|
|
25
|
+
buttons?: Array<ButtonProps>;
|
|
26
|
+
/** Label which is seen above the text */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Icon near the label */
|
|
29
|
+
icon?: IconProps['icon'];
|
|
30
|
+
/** Handler function triggered when overlay is clicked */
|
|
31
|
+
onOverlayClick?: () => any;
|
|
32
|
+
/**
|
|
33
|
+
* Function triggered when user clicks close button.
|
|
34
|
+
* If it is given - close button will appear.
|
|
35
|
+
*/
|
|
36
|
+
onClose?: () => any;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
};
|