@pautena/react-design-system 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +23 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/app-bars/index.d.ts +1 -0
- package/dist/cjs/types/components/containers/index.d.ts +2 -0
- package/dist/cjs/types/components/data-display/index.d.ts +3 -0
- package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.types.d.ts +10 -3
- package/dist/cjs/types/components/drawers/drawer-collapsable-item/drawer-collapsable-item.d.ts +26 -0
- package/dist/cjs/types/components/drawers/drawer-collapsable-item/index.d.ts +1 -0
- package/dist/cjs/types/components/{drawer-item → drawers/drawer-item}/drawer-item.d.ts +10 -1
- package/dist/{esm/types/components → cjs/types/components/drawers}/drawer-section/drawer-section.d.ts +5 -1
- package/dist/cjs/types/components/drawers/index.d.ts +4 -0
- package/dist/cjs/types/components/feedback/index.d.ts +2 -0
- package/dist/cjs/types/components/index.d.ts +9 -18
- package/dist/cjs/types/components/inputs/index.d.ts +2 -0
- package/dist/cjs/types/components/navigation/index.d.ts +1 -0
- package/dist/cjs/types/components/placeholders/content-placeholder/content-placeholder.d.ts +6 -0
- package/dist/cjs/types/components/placeholders/content-placeholder/index.d.ts +1 -0
- package/dist/cjs/types/components/placeholders/index.d.ts +5 -0
- package/dist/cjs/types/components/placeholders/lorem-ipsum-placeholder/index.d.ts +1 -0
- package/dist/cjs/types/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts +8 -0
- package/dist/cjs/types/components/placeholders/skeleton-card/index.d.ts +1 -0
- package/dist/cjs/types/components/placeholders/skeleton-card/skeleton-card.d.ts +5 -0
- package/dist/cjs/types/components/placeholders/skeleton-grid/index.d.ts +1 -0
- package/dist/cjs/types/components/placeholders/skeleton-grid/skeleton-grid.d.ts +4 -0
- package/dist/cjs/types/generators/index.d.ts +1 -0
- package/dist/cjs/types/{components → generators}/table-list/table-list.d.ts +2 -2
- package/dist/cjs/types/layouts/app-bar-with-drawer-layout/app-bar-with-drawer-layout.d.ts +2 -2
- package/dist/esm/index.js +23 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/app-bars/index.d.ts +1 -0
- package/dist/esm/types/components/containers/index.d.ts +2 -0
- package/dist/esm/types/components/data-display/index.d.ts +3 -0
- package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.types.d.ts +10 -3
- package/dist/esm/types/components/drawers/drawer-collapsable-item/drawer-collapsable-item.d.ts +26 -0
- package/dist/esm/types/components/drawers/drawer-collapsable-item/index.d.ts +1 -0
- package/dist/esm/types/components/{drawer-item → drawers/drawer-item}/drawer-item.d.ts +10 -1
- package/dist/{cjs/types/components → esm/types/components/drawers}/drawer-section/drawer-section.d.ts +5 -1
- package/dist/esm/types/components/drawers/index.d.ts +4 -0
- package/dist/esm/types/components/feedback/index.d.ts +2 -0
- package/dist/esm/types/components/index.d.ts +9 -18
- package/dist/esm/types/components/inputs/index.d.ts +2 -0
- package/dist/esm/types/components/navigation/index.d.ts +1 -0
- package/dist/esm/types/components/placeholders/content-placeholder/content-placeholder.d.ts +6 -0
- package/dist/esm/types/components/placeholders/content-placeholder/index.d.ts +1 -0
- package/dist/esm/types/components/placeholders/index.d.ts +5 -0
- package/dist/esm/types/components/placeholders/lorem-ipsum-placeholder/index.d.ts +1 -0
- package/dist/esm/types/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts +8 -0
- package/dist/esm/types/components/placeholders/skeleton-card/index.d.ts +1 -0
- package/dist/esm/types/components/placeholders/skeleton-card/skeleton-card.d.ts +5 -0
- package/dist/esm/types/components/placeholders/skeleton-grid/index.d.ts +1 -0
- package/dist/esm/types/components/placeholders/skeleton-grid/skeleton-grid.d.ts +4 -0
- package/dist/esm/types/generators/index.d.ts +1 -0
- package/dist/esm/types/{components → generators}/table-list/table-list.d.ts +2 -2
- package/dist/esm/types/layouts/app-bar-with-drawer-layout/app-bar-with-drawer-layout.d.ts +2 -2
- package/dist/index.d.ts +374 -329
- package/package.json +15 -14
- package/src/components/{app-bar → app-bars/app-bar}/app-bar.stories.tsx +3 -3
- package/src/components/{app-bar → app-bars/app-bar}/app-bar.test.tsx +1 -1
- package/src/components/{app-bar → app-bars/app-bar}/app-bar.tsx +1 -1
- package/src/components/{app-bar → app-bars/app-bar}/mini-app-bar/mini-app-bar.tsx +2 -2
- package/src/components/app-bars/app-bars.stories.mdx +10 -0
- package/src/components/app-bars/index.ts +1 -0
- package/src/components/components.stories.mdx +19 -0
- package/src/components/{center-container → containers/center-container}/center-container.stories.tsx +3 -3
- package/src/components/containers/containers.stories.mdx +11 -0
- package/src/components/{content → containers/content}/content.stories.tsx +3 -3
- package/src/components/containers/index.ts +2 -0
- package/src/components/{bullet → data-display/bullet}/bullet.stories.tsx +2 -2
- package/src/components/data-display/data-display.stories.mdx +12 -0
- package/src/components/{header → data-display/header}/header.stories.tsx +2 -2
- package/src/components/{header → data-display/header}/header.test.tsx +1 -1
- package/src/components/{header → data-display/header}/header.tsx +2 -2
- package/src/components/data-display/index.ts +3 -0
- package/src/components/{label → data-display/label}/label.stories.tsx +2 -2
- package/src/components/{drawer → drawers/drawer}/drawer.mock.tsx +27 -0
- package/src/components/{drawer → drawers/drawer}/drawer.types.ts +12 -3
- package/src/components/{drawer → drawers/drawer}/mini-drawer/mini-drawer.stories.tsx +3 -3
- package/src/components/{drawer → drawers/drawer}/mini-drawer/mini-drawer.tsx +1 -2
- package/src/components/drawers/drawer-collapsable-item/drawer-collapsable-item.test.tsx +62 -0
- package/src/components/drawers/drawer-collapsable-item/drawer-collapsable-item.tsx +78 -0
- package/src/components/drawers/drawer-collapsable-item/index.ts +1 -0
- package/src/components/{drawer-content → drawers/drawer-content}/drawer-content.stories.tsx +3 -2
- package/src/components/{drawer-content → drawers/drawer-content}/drawer-content.test.tsx +25 -0
- package/src/components/{drawer-content → drawers/drawer-content}/drawer-content.tsx +5 -4
- package/src/components/{drawer-item → drawers/drawer-item}/drawer-item.stories.tsx +2 -3
- package/src/components/{drawer-item → drawers/drawer-item}/drawer-item.tsx +23 -5
- package/src/components/{drawer-section → drawers/drawer-section}/drawer-section.stories.tsx +3 -3
- package/src/components/drawers/drawer-section/drawer-section.tsx +65 -0
- package/src/components/drawers/drawers.stories.mdx +13 -0
- package/src/components/drawers/index.ts +4 -0
- package/src/components/feedback/feedback.stories.mdx +12 -0
- package/src/components/feedback/index.ts +2 -0
- package/src/components/{loading-area → feedback/loading-area}/loading-area.stories.tsx +2 -2
- package/src/components/{query-container → feedback/query-container}/query-container.stories.tsx +2 -2
- package/src/components/index.ts +9 -18
- package/src/components/{enhanced-select → inputs/enhanced-select}/enhanced-select.stories.tsx +2 -2
- package/src/components/{enhanced-select → inputs/enhanced-select}/enhanced-select.tsx +1 -1
- package/src/components/inputs/index.ts +2 -0
- package/src/components/inputs/inputs.stories.mdx +11 -0
- package/src/components/{sign-in → inputs/sign-in}/sign-in.stories.tsx +2 -2
- package/src/components/navigation/index.ts +1 -0
- package/src/components/navigation/navigation.stories.mdx +10 -0
- package/src/components/{tab → navigation/tab}/tab-card/tab-card.dummy.tsx +1 -1
- package/src/components/{tab → navigation/tab}/tab-card/tab-card.stories.tsx +2 -2
- package/src/components/{tab → navigation/tab}/tab-panel/tab-panel.test.tsx +1 -1
- package/src/{tests → components/placeholders/content-placeholder}/content-placeholder.stories.tsx +3 -4
- package/src/components/placeholders/content-placeholder/content-placeholder.tsx +17 -0
- package/src/components/placeholders/content-placeholder/index.ts +1 -0
- package/src/components/placeholders/index.ts +5 -0
- package/src/components/placeholders/lorem-ipsum-placeholder/index.ts +1 -0
- package/src/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.stories.tsx +15 -0
- package/src/components/placeholders/lorem-ipsum-placeholder/lorem-ipsum-placeholder.tsx +26 -0
- package/src/components/{placeholder → placeholders/placeholder}/placeholder.stories.tsx +2 -2
- package/src/components/placeholders/placeholders.stories.mdx +14 -0
- package/src/components/placeholders/skeleton-card/index.ts +1 -0
- package/src/{tests → components/placeholders/skeleton-card}/skeleton-card.stories.tsx +3 -3
- package/src/components/placeholders/skeleton-card/skeleton-card.tsx +17 -0
- package/src/components/placeholders/skeleton-grid/index.ts +1 -0
- package/src/components/placeholders/skeleton-grid/skeleton-grid.stories.tsx +15 -0
- package/src/components/placeholders/skeleton-grid/skeleton-grid.tsx +20 -0
- package/src/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.stories.tsx +1 -1
- package/src/components/{table → tables}/enhanced-table/enhanced-table.stories.tsx +1 -1
- package/src/components/tables/table.stories.mdx +11 -0
- package/src/components/value-displays/group-value-card/group-value-card.stories.tsx +2 -2
- package/src/components/value-displays/group-value-card/group-value-card.test.tsx +2 -2
- package/src/components/value-displays/value-boolean/value-boolean.stories.tsx +1 -1
- package/src/components/value-displays/value-boolean/value-boolean.tsx +1 -1
- package/src/components/value-displays/value-card/value-card.stories.tsx +1 -1
- package/src/components/value-displays/value-content/value-content.stories.tsx +1 -1
- package/src/components/value-displays/value-content/value-content.tsx +1 -2
- package/src/components/value-displays/value-datetime/value-datetime.stories.tsx +1 -1
- package/src/components/value-displays/value-datetime/value-datetime.tsx +1 -1
- package/src/components/value-displays/value-displays.stories.mdx +16 -0
- package/src/components/value-displays/value-image/value-image.stories.tsx +1 -1
- package/src/components/value-displays/value-image/value-image.test.tsx +1 -1
- package/src/components/value-displays/value-text/value-text.stories.tsx +1 -1
- package/src/generators/generators.stories.mdx +13 -0
- package/src/generators/index.ts +1 -0
- package/src/generators/model-router/screens/list-screen.tsx +2 -1
- package/src/generators/model-router/stories/model-router.stories.tsx +1 -1
- package/src/{components → generators}/table-list/table-list.stories.tsx +1 -1
- package/src/{components → generators}/table-list/table-list.test.tsx +2 -2
- package/src/{components → generators}/table-list/table-list.tsx +2 -2
- package/src/layouts/app-bar-with-drawer-layout/app-bar-with-drawer-layout.stories.tsx +3 -4
- package/src/layouts/app-bar-with-drawer-layout/app-bar-with-drawer-layout.tsx +3 -3
- package/src/layouts/header-layout/header-layout.stories.tsx +6 -5
- package/src/layouts/header-layout/header-layout.tsx +1 -1
- package/src/layouts/layouts.stories.mdx +11 -0
- package/src/providers/notification-center/notification-center.stories.tsx +2 -2
- package/src/stories/Introduction.stories.mdx +10 -185
- package/src/stories/getting-started.stories.mdx +23 -0
- package/src/tests/datatable-placeholder/datatable-placeholder.stories.tsx +15 -0
- package/src/tests/datatable-placeholder/datatable-placeholder.tsx +40 -0
- package/src/tests/datatable-placeholder/index.ts +1 -0
- package/src/types.d.ts +4 -0
- package/src/components/drawer-section/drawer-section.tsx +0 -40
- package/src/tests/components.tsx +0 -94
- /package/dist/cjs/types/components/{app-bar → app-bars/app-bar}/app-bar.d.ts +0 -0
- /package/dist/cjs/types/components/{app-bar → app-bars/app-bar}/app-bar.types.d.ts +0 -0
- /package/dist/cjs/types/components/{app-bar → app-bars/app-bar}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{app-bar → app-bars/app-bar}/mini-app-bar/index.d.ts +0 -0
- /package/dist/cjs/types/components/{app-bar → app-bars/app-bar}/mini-app-bar/mini-app-bar.d.ts +0 -0
- /package/dist/cjs/types/components/{center-container → containers/center-container}/center-container.d.ts +0 -0
- /package/dist/cjs/types/components/{center-container → containers/center-container}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{content → containers/content}/content.d.ts +0 -0
- /package/dist/cjs/types/components/{content → containers/content}/content.types.d.ts +0 -0
- /package/dist/cjs/types/components/{content → containers/content}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{bullet → data-display/bullet}/bullet.d.ts +0 -0
- /package/dist/cjs/types/components/{bullet → data-display/bullet}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{header → data-display/header}/header.d.ts +0 -0
- /package/dist/cjs/types/components/{header → data-display/header}/header.dummy.d.ts +0 -0
- /package/dist/cjs/types/components/{header → data-display/header}/header.types.d.ts +0 -0
- /package/dist/cjs/types/components/{header → data-display/header}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{label → data-display/label}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{label → data-display/label}/label.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.context.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.mixins.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.mock.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/drawer.provider.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/mini-drawer/index.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer → drawers/drawer}/mini-drawer/mini-drawer.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer-content → drawers/drawer-content}/drawer-content.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer-content → drawers/drawer-content}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer-item → drawers/drawer-item}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer-section → drawers/drawer-section}/drawer-section.mock.d.ts +0 -0
- /package/dist/cjs/types/components/{drawer-section → drawers/drawer-section}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{loading-area → feedback/loading-area}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{loading-area → feedback/loading-area}/loading-area.d.ts +0 -0
- /package/dist/cjs/types/components/{query-container → feedback/query-container}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{query-container → feedback/query-container}/query-container.d.ts +0 -0
- /package/dist/cjs/types/components/{enhanced-select → inputs/enhanced-select}/enhanced-select.d.ts +0 -0
- /package/dist/cjs/types/components/{enhanced-select → inputs/enhanced-select}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{sign-in → inputs/sign-in}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{sign-in → inputs/sign-in}/sign-in.d.ts +0 -0
- /package/dist/cjs/types/components/{link → navigation/link}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{link → navigation/link}/link.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/tab-card/index.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/tab-card/tab-card.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/tab-card/tab-card.dummy.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/tab-panel/index.d.ts +0 -0
- /package/dist/cjs/types/components/{tab → navigation/tab}/tab-panel/tab-panel.d.ts +0 -0
- /package/dist/cjs/types/components/{placeholder → placeholders/placeholder}/index.d.ts +0 -0
- /package/dist/cjs/types/components/{placeholder → placeholders/placeholder}/placeholder.d.ts +0 -0
- /package/dist/cjs/types/components/{placeholder → placeholders/placeholder}/placeholder.mock.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.mock.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-remote-table/index.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-table/enhanced-table-head.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-table/enhanced-table.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-table/enhanced-table.mock.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/enhanced-table/index.d.ts +0 -0
- /package/dist/cjs/types/components/{table → tables}/index.d.ts +0 -0
- /package/dist/cjs/types/{components → generators}/table-list/index.d.ts +0 -0
- /package/dist/esm/types/components/{app-bar → app-bars/app-bar}/app-bar.d.ts +0 -0
- /package/dist/esm/types/components/{app-bar → app-bars/app-bar}/app-bar.types.d.ts +0 -0
- /package/dist/esm/types/components/{app-bar → app-bars/app-bar}/index.d.ts +0 -0
- /package/dist/esm/types/components/{app-bar → app-bars/app-bar}/mini-app-bar/index.d.ts +0 -0
- /package/dist/esm/types/components/{app-bar → app-bars/app-bar}/mini-app-bar/mini-app-bar.d.ts +0 -0
- /package/dist/esm/types/components/{center-container → containers/center-container}/center-container.d.ts +0 -0
- /package/dist/esm/types/components/{center-container → containers/center-container}/index.d.ts +0 -0
- /package/dist/esm/types/components/{content → containers/content}/content.d.ts +0 -0
- /package/dist/esm/types/components/{content → containers/content}/content.types.d.ts +0 -0
- /package/dist/esm/types/components/{content → containers/content}/index.d.ts +0 -0
- /package/dist/esm/types/components/{bullet → data-display/bullet}/bullet.d.ts +0 -0
- /package/dist/esm/types/components/{bullet → data-display/bullet}/index.d.ts +0 -0
- /package/dist/esm/types/components/{header → data-display/header}/header.d.ts +0 -0
- /package/dist/esm/types/components/{header → data-display/header}/header.dummy.d.ts +0 -0
- /package/dist/esm/types/components/{header → data-display/header}/header.types.d.ts +0 -0
- /package/dist/esm/types/components/{header → data-display/header}/index.d.ts +0 -0
- /package/dist/esm/types/components/{label → data-display/label}/index.d.ts +0 -0
- /package/dist/esm/types/components/{label → data-display/label}/label.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.context.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.mixins.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.mock.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/drawer.provider.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/index.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/mini-drawer/index.d.ts +0 -0
- /package/dist/esm/types/components/{drawer → drawers/drawer}/mini-drawer/mini-drawer.d.ts +0 -0
- /package/dist/esm/types/components/{drawer-content → drawers/drawer-content}/drawer-content.d.ts +0 -0
- /package/dist/esm/types/components/{drawer-content → drawers/drawer-content}/index.d.ts +0 -0
- /package/dist/esm/types/components/{drawer-item → drawers/drawer-item}/index.d.ts +0 -0
- /package/dist/esm/types/components/{drawer-section → drawers/drawer-section}/drawer-section.mock.d.ts +0 -0
- /package/dist/esm/types/components/{drawer-section → drawers/drawer-section}/index.d.ts +0 -0
- /package/dist/esm/types/components/{loading-area → feedback/loading-area}/index.d.ts +0 -0
- /package/dist/esm/types/components/{loading-area → feedback/loading-area}/loading-area.d.ts +0 -0
- /package/dist/esm/types/components/{query-container → feedback/query-container}/index.d.ts +0 -0
- /package/dist/esm/types/components/{query-container → feedback/query-container}/query-container.d.ts +0 -0
- /package/dist/esm/types/components/{enhanced-select → inputs/enhanced-select}/enhanced-select.d.ts +0 -0
- /package/dist/esm/types/components/{enhanced-select → inputs/enhanced-select}/index.d.ts +0 -0
- /package/dist/esm/types/components/{sign-in → inputs/sign-in}/index.d.ts +0 -0
- /package/dist/esm/types/components/{sign-in → inputs/sign-in}/sign-in.d.ts +0 -0
- /package/dist/esm/types/components/{link → navigation/link}/index.d.ts +0 -0
- /package/dist/esm/types/components/{link → navigation/link}/link.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/index.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/tab-card/index.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/tab-card/tab-card.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/tab-card/tab-card.dummy.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/tab-panel/index.d.ts +0 -0
- /package/dist/esm/types/components/{tab → navigation/tab}/tab-panel/tab-panel.d.ts +0 -0
- /package/dist/esm/types/components/{placeholder → placeholders/placeholder}/index.d.ts +0 -0
- /package/dist/esm/types/components/{placeholder → placeholders/placeholder}/placeholder.d.ts +0 -0
- /package/dist/esm/types/components/{placeholder → placeholders/placeholder}/placeholder.mock.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.mock.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-remote-table/index.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-table/enhanced-table-head.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-table/enhanced-table.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-table/enhanced-table.mock.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/enhanced-table/index.d.ts +0 -0
- /package/dist/esm/types/components/{table → tables}/index.d.ts +0 -0
- /package/dist/esm/types/{components → generators}/table-list/index.d.ts +0 -0
- /package/src/components/{app-bar → app-bars/app-bar}/app-bar.types.ts +0 -0
- /package/src/components/{app-bar → app-bars/app-bar}/index.ts +0 -0
- /package/src/components/{app-bar → app-bars/app-bar}/mini-app-bar/index.ts +0 -0
- /package/src/components/{center-container → containers/center-container}/center-container.test.tsx +0 -0
- /package/src/components/{center-container → containers/center-container}/center-container.tsx +0 -0
- /package/src/components/{center-container → containers/center-container}/index.ts +0 -0
- /package/src/components/{content → containers/content}/content.test.tsx +0 -0
- /package/src/components/{content → containers/content}/content.tsx +0 -0
- /package/src/components/{content → containers/content}/content.types.ts +0 -0
- /package/src/components/{content → containers/content}/index.ts +0 -0
- /package/src/components/{bullet → data-display/bullet}/bullet.test.tsx +0 -0
- /package/src/components/{bullet → data-display/bullet}/bullet.tsx +0 -0
- /package/src/components/{bullet → data-display/bullet}/index.ts +0 -0
- /package/src/components/{header → data-display/header}/header.dummy.ts +0 -0
- /package/src/components/{header → data-display/header}/header.types.ts +0 -0
- /package/src/components/{header → data-display/header}/index.ts +0 -0
- /package/src/components/{label → data-display/label}/index.ts +0 -0
- /package/src/components/{label → data-display/label}/label.test.tsx +0 -0
- /package/src/components/{label → data-display/label}/label.tsx +0 -0
- /package/src/components/{drawer → drawers/drawer}/__snapshots__/drawer.test.tsx.snap +0 -0
- /package/src/components/{drawer → drawers/drawer}/drawer.context.ts +0 -0
- /package/src/components/{drawer → drawers/drawer}/drawer.mixins.ts +0 -0
- /package/src/components/{drawer → drawers/drawer}/drawer.provider.tsx +0 -0
- /package/src/components/{drawer → drawers/drawer}/drawer.test.tsx +0 -0
- /package/src/components/{drawer → drawers/drawer}/drawer.tsx +0 -0
- /package/src/components/{drawer → drawers/drawer}/index.ts +0 -0
- /package/src/components/{drawer → drawers/drawer}/mini-drawer/index.ts +0 -0
- /package/src/components/{drawer-content → drawers/drawer-content}/index.ts +0 -0
- /package/src/components/{drawer-item → drawers/drawer-item}/drawer-item.test.tsx +0 -0
- /package/src/components/{drawer-item → drawers/drawer-item}/index.ts +0 -0
- /package/src/components/{drawer-section → drawers/drawer-section}/drawer-section.mock.tsx +0 -0
- /package/src/components/{drawer-section → drawers/drawer-section}/drawer-section.test.tsx +0 -0
- /package/src/components/{drawer-section → drawers/drawer-section}/index.ts +0 -0
- /package/src/components/{loading-area → feedback/loading-area}/index.ts +0 -0
- /package/src/components/{loading-area → feedback/loading-area}/loading-area.test.tsx +0 -0
- /package/src/components/{loading-area → feedback/loading-area}/loading-area.tsx +0 -0
- /package/src/components/{query-container → feedback/query-container}/index.ts +0 -0
- /package/src/components/{query-container → feedback/query-container}/query-container.test.tsx +0 -0
- /package/src/components/{query-container → feedback/query-container}/query-container.tsx +0 -0
- /package/src/components/{enhanced-select → inputs/enhanced-select}/enhanced-select.test.tsx +0 -0
- /package/src/components/{enhanced-select → inputs/enhanced-select}/index.ts +0 -0
- /package/src/components/{sign-in → inputs/sign-in}/index.ts +0 -0
- /package/src/components/{sign-in → inputs/sign-in}/sign-in.test.tsx +0 -0
- /package/src/components/{sign-in → inputs/sign-in}/sign-in.tsx +0 -0
- /package/src/components/{link → navigation/link}/index.ts +0 -0
- /package/src/components/{link → navigation/link}/link.tsx +0 -0
- /package/src/components/{tab → navigation/tab}/index.ts +0 -0
- /package/src/components/{tab → navigation/tab}/tab-card/index.ts +0 -0
- /package/src/components/{tab → navigation/tab}/tab-card/tab-card.test.tsx +0 -0
- /package/src/components/{tab → navigation/tab}/tab-card/tab-card.tsx +0 -0
- /package/src/components/{tab → navigation/tab}/tab-panel/index.ts +0 -0
- /package/src/components/{tab → navigation/tab}/tab-panel/tab-panel.tsx +0 -0
- /package/src/components/{placeholder → placeholders/placeholder}/index.ts +0 -0
- /package/src/components/{placeholder → placeholders/placeholder}/placeholder.mock.ts +0 -0
- /package/src/components/{placeholder → placeholders/placeholder}/placeholder.test.tsx +0 -0
- /package/src/components/{placeholder → placeholders/placeholder}/placeholder.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.mock.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.test.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-remote-table/enhanced-remote-table.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-remote-table/index.ts +0 -0
- /package/src/components/{table → tables}/enhanced-table/enhanced-table-head.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-table/enhanced-table.mock.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-table/enhanced-table.test.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-table/enhanced-table.tsx +0 -0
- /package/src/components/{table → tables}/enhanced-table/index.ts +0 -0
- /package/src/components/{table → tables}/index.ts +0 -0
- /package/src/{components → generators}/table-list/index.ts +0 -0
|
@@ -5,7 +5,7 @@ import { Typography } from "@mui/material";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
|
-
title: "Value displays/ValueContent",
|
|
8
|
+
title: "Components/Value displays/ValueContent",
|
|
9
9
|
component: ValueContent,
|
|
10
10
|
decorators: [withContainer({ width: 200 })],
|
|
11
11
|
parameters: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Box, Tooltip, Typography } from "@mui/material";
|
|
2
|
-
import React
|
|
3
|
-
import { BaseValueProps, DefaultPlaceholder } from "../value-displays.types";
|
|
2
|
+
import React from "react";
|
|
4
3
|
|
|
5
4
|
export const getValueContentLabelId = (label: string): string =>
|
|
6
5
|
`label-${label.replace(/ /g, "-")}`;
|
|
@@ -3,7 +3,7 @@ import { ValueDatetime } from "./value-datetime";
|
|
|
3
3
|
import { createTemplate, withContainer } from "../../../storybook";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title: "Value displays/
|
|
6
|
+
title: "Components/Value displays/ValueDatetime",
|
|
7
7
|
component: ValueDatetime,
|
|
8
8
|
decorators: [withContainer({ width: 200 })],
|
|
9
9
|
parameters: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
import LinkTo from '@storybook/addon-links/react';
|
|
3
|
+
|
|
4
|
+
<Meta title="Components/Value displays/Introduction" />
|
|
5
|
+
|
|
6
|
+
# Value Displays
|
|
7
|
+
|
|
8
|
+
<ul>
|
|
9
|
+
<li><LinkTo kind="Components/Value displays/GroupValueCard">GroupValueCard</LinkTo></li>
|
|
10
|
+
<li><LinkTo kind="Components/Value displays/ValueBoolean">ValueBoolean</LinkTo></li>
|
|
11
|
+
<li><LinkTo kind="Components/Value displays/ValueCard">ValueCard</LinkTo></li>
|
|
12
|
+
<li><LinkTo kind="Components/Value displays/ValueContent">ValueContent</LinkTo></li>
|
|
13
|
+
<li><LinkTo kind="Components/Value displays/ValueDatetime">ValueDatetime</LinkTo></li>
|
|
14
|
+
<li><LinkTo kind="Components/Value displays/ValueImage">ValueImage</LinkTo></li>
|
|
15
|
+
<li><LinkTo kind="Components/Value displays/ValueText">ValueText</LinkTo></li>
|
|
16
|
+
</ul>
|
|
@@ -4,7 +4,7 @@ import { createTemplate, withContainer } from "../../../storybook";
|
|
|
4
4
|
import workInProgressImg from "../../../stories/assets/work-in-progress.jpg";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title: "Value displays/ValueImage",
|
|
7
|
+
title: "Components/Value displays/ValueImage",
|
|
8
8
|
component: ValueImage,
|
|
9
9
|
decorators: [withContainer({ width: 200 })],
|
|
10
10
|
parameters: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { render, screen } from "~/tests/testing-library";
|
|
3
3
|
import { ValueImage } from "./value-image";
|
|
4
|
-
import workInProgressImg from "
|
|
4
|
+
import workInProgressImg from "../../../stories/assets/work-in-progress.jpg";
|
|
5
5
|
|
|
6
6
|
describe("ValueImage", () => {
|
|
7
7
|
const renderComponent = () => {
|
|
@@ -3,7 +3,7 @@ import { ValueText } from "./value-text";
|
|
|
3
3
|
import { createTemplate, withContainer } from "../../../storybook";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title: "Value displays/ValueText",
|
|
6
|
+
title: "Components/Value displays/ValueText",
|
|
7
7
|
component: ValueText,
|
|
8
8
|
decorators: [withContainer({ width: 200 })],
|
|
9
9
|
parameters: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
import LinkTo from '@storybook/addon-links/react';
|
|
3
|
+
|
|
4
|
+
<Meta title="Generators/Introduction" />
|
|
5
|
+
|
|
6
|
+
# Generators
|
|
7
|
+
|
|
8
|
+
<ul>
|
|
9
|
+
<li><LinkTo kind="Generators/ModelForm">ModelForm</LinkTo></li>
|
|
10
|
+
<li><LinkTo kind="Generators/ModelRouter/DummyModelRouter">ModelRouter</LinkTo></li>
|
|
11
|
+
<li><LinkTo kind="Generators/ObjectDetails">ObjectDetails</LinkTo></li>
|
|
12
|
+
<li><LinkTo kind="Generators/TableList">TableList</LinkTo></li>
|
|
13
|
+
</ul>
|
package/src/generators/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
2
|
import { useNavigate } from "react-router-dom";
|
|
3
|
-
import { Content, Header, HeaderAction
|
|
3
|
+
import { Content, Header, HeaderAction } from "~/components";
|
|
4
|
+
import { TableList, TableRowOption } from "../../table-list";
|
|
4
5
|
import { BasicModelInstance } from "../../generators.model";
|
|
5
6
|
import { useNotifyWhenValueChanges } from "~/providers";
|
|
6
7
|
import { HeaderLayout } from "../../../layouts";
|
|
@@ -218,7 +218,7 @@ export const InternalModelRouter = () => {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
export default {
|
|
221
|
-
title: "Generators/ModelRouter",
|
|
221
|
+
title: "Generators/ModelRouter/DummyModelRouter",
|
|
222
222
|
component: DummyModelRouter,
|
|
223
223
|
decorators: [withMemoryRouter(), withNotificationCenter, withLocalizationProvider],
|
|
224
224
|
parameters: {
|
|
@@ -3,8 +3,8 @@ import { render } from "~/tests/testing-library";
|
|
|
3
3
|
import { screen } from "@testing-library/react";
|
|
4
4
|
import userEvents from "@testing-library/user-event";
|
|
5
5
|
import { TableRowOption, TableList } from "./table-list";
|
|
6
|
-
import { HeadCell } from "
|
|
7
|
-
import { BasicModelInstance } from "
|
|
6
|
+
import { HeadCell } from "../../components/tables/enhanced-table";
|
|
7
|
+
import { BasicModelInstance } from "..";
|
|
8
8
|
import { expectProgressIndicator } from "~/tests/assertions";
|
|
9
9
|
|
|
10
10
|
const columns: HeadCell<BasicModelInstance>[] = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TableRow, TableCell, IconButton, MenuItem, Menu } from "@mui/material";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { EnhancedTable, HeadCell, Order } from "
|
|
3
|
+
import { EnhancedTable, HeadCell, Order } from "../../components/tables/enhanced-table";
|
|
4
4
|
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
|
5
|
-
import { BasicModelInstance } from "
|
|
5
|
+
import { BasicModelInstance } from "../generators.model";
|
|
6
6
|
|
|
7
7
|
const OptionsId = "__options";
|
|
8
8
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentMeta } from "@storybook/react";
|
|
3
3
|
import { AppBarWithDrawerLayout } from "./app-bar-with-drawer-layout";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { DrawerContent, MiniDrawer } from "../../components";
|
|
4
|
+
import { mockNav } from "../../components/drawers/drawer/drawer.mock";
|
|
5
|
+
import { MiniAppBar } from "../../components/app-bars/app-bar";
|
|
6
|
+
import { ContentPlaceholder, DrawerContent, MiniDrawer } from "../../components";
|
|
8
7
|
import { withMemoryRouter } from "~/storybook";
|
|
9
8
|
|
|
10
9
|
export default {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { AppBarElement } from "../../components/app-bar";
|
|
4
|
-
import { DrawerElement } from "../../components/drawer";
|
|
3
|
+
import { AppBarElement } from "../../components/app-bars/app-bar";
|
|
4
|
+
import { DrawerElement } from "../../components/drawers/drawer";
|
|
5
5
|
import { Box } from "@mui/material";
|
|
6
|
-
import { DrawerProvider } from "../../components/drawer/drawer.provider";
|
|
6
|
+
import { DrawerProvider } from "../../components/drawers/drawer/drawer.provider";
|
|
7
7
|
|
|
8
8
|
const DrawerHeader = styled("div")(({ theme }) => ({
|
|
9
9
|
display: "flex",
|
|
@@ -3,12 +3,11 @@ import { ComponentMeta } from "@storybook/react";
|
|
|
3
3
|
import { createTemplate } from "../../storybook";
|
|
4
4
|
import { HeaderLayout, HeaderLayoutProps } from "./header-layout";
|
|
5
5
|
import { withMemoryRouter } from "~/storybook";
|
|
6
|
-
import { SkeletonGrid } from "../../tests/components";
|
|
7
6
|
import { withFullHeight } from "../../storybook";
|
|
8
|
-
import { Content, Header, HeaderProps, HeaderTab,
|
|
7
|
+
import { Content, Header, HeaderProps, HeaderTab, SkeletonGrid, TabPanel } from "../../components";
|
|
9
8
|
import { Box, Typography } from "@mui/material";
|
|
10
9
|
import { useDemoData } from "@mui/x-data-grid-generator";
|
|
11
|
-
import { ModelForm, ObjectDetails } from "../../generators";
|
|
10
|
+
import { ModelForm, ObjectDetails, TableList } from "../../generators";
|
|
12
11
|
import { mockModel, createModelInstance } from "../../generators/generators.mock";
|
|
13
12
|
import { action } from "@storybook/addon-actions";
|
|
14
13
|
import { DataGrid } from "@mui/x-data-grid";
|
|
@@ -153,14 +152,16 @@ Form.args = {
|
|
|
153
152
|
};
|
|
154
153
|
|
|
155
154
|
const DataTableContent = () => {
|
|
156
|
-
const {
|
|
155
|
+
const {
|
|
156
|
+
data: { rows, columns },
|
|
157
|
+
} = useDemoData({
|
|
157
158
|
dataSet: "Commodity",
|
|
158
159
|
rowLength: 100,
|
|
159
160
|
maxColumns: 7,
|
|
160
161
|
editable: true,
|
|
161
162
|
});
|
|
162
163
|
|
|
163
|
-
return <DataGrid rows={
|
|
164
|
+
return <DataGrid rows={rows} columns={columns as any} pagination sx={{ height: 400 }} />;
|
|
164
165
|
};
|
|
165
166
|
|
|
166
167
|
export const DataTable = Template.bind({});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box } from "@mui/material";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ContentElement, HeaderElement } from "../../components";
|
|
4
|
-
import { LoadingArea } from "../../components/loading-area";
|
|
4
|
+
import { LoadingArea } from "../../components/feedback/loading-area";
|
|
5
5
|
import { TabProvider } from "../../providers";
|
|
6
6
|
|
|
7
7
|
export interface HeaderLayoutProps {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
import LinkTo from '@storybook/addon-links/react';
|
|
3
|
+
|
|
4
|
+
<Meta title="Layouts/Introduction" />
|
|
5
|
+
|
|
6
|
+
## Layouts
|
|
7
|
+
|
|
8
|
+
<ul>
|
|
9
|
+
<li><LinkTo kind="Layouts/AppBarWithDrawer">AppBarWithDrawer</LinkTo></li>
|
|
10
|
+
<li><LinkTo kind="Layouts/HeaderLayout">HeaderLayout</LinkTo></li>
|
|
11
|
+
</ul>
|
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { ComponentMeta } from "@storybook/react";
|
|
3
3
|
import { NotificationCenterProvider } from "./notification-center.provider";
|
|
4
4
|
import { useNotificationCenter } from "./notification-center.context";
|
|
5
|
-
import { ContentPlaceholder } from "~/tests/components";
|
|
6
5
|
import { Button, Box } from "@mui/material";
|
|
6
|
+
import { ContentPlaceholder } from "~/components";
|
|
7
7
|
|
|
8
8
|
const DummyError = {
|
|
9
9
|
title: "Internal Server error",
|
|
@@ -11,7 +11,7 @@ const DummyError = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title: "
|
|
14
|
+
title: "Components/Feedback/NotificationCenter",
|
|
15
15
|
component: ContentPlaceholder,
|
|
16
16
|
decorators: [
|
|
17
17
|
(Story) => (
|
|
@@ -1,201 +1,26 @@
|
|
|
1
1
|
import { Meta } from '@storybook/addon-docs';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import Flow from './assets/flow.svg';
|
|
5
|
-
import Plugin from './assets/plugin.svg';
|
|
2
|
+
import LinkTo from '@storybook/addon-links/react';
|
|
3
|
+
import {hrefTo} from '@storybook/addon-links';
|
|
6
4
|
import WorkInProgress from './assets/work-in-progress.jpg'
|
|
7
5
|
|
|
8
6
|
<Meta title="Introduction" />
|
|
9
7
|
|
|
10
|
-
<style>
|
|
11
|
-
{`
|
|
12
|
-
.subheading {
|
|
13
|
-
--mediumdark: '#999999';
|
|
14
|
-
font-weight: 900;
|
|
15
|
-
font-size: 13px;
|
|
16
|
-
color: #999;
|
|
17
|
-
letter-spacing: 6px;
|
|
18
|
-
line-height: 24px;
|
|
19
|
-
text-transform: uppercase;
|
|
20
|
-
margin-bottom: 12px;
|
|
21
|
-
margin-top: 40px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.link-list {
|
|
25
|
-
display: grid;
|
|
26
|
-
grid-template-columns: 1fr;
|
|
27
|
-
grid-template-rows: 1fr 1fr;
|
|
28
|
-
row-gap: 10px;
|
|
29
|
-
margin-bottom: 16px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media (min-width: 620px) {
|
|
33
|
-
.link-list {
|
|
34
|
-
row-gap: 20px;
|
|
35
|
-
column-gap: 20px;
|
|
36
|
-
grid-template-columns: 1fr 1fr;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media all and (-ms-high-contrast:none) {
|
|
41
|
-
.link-list {
|
|
42
|
-
display: -ms-grid;
|
|
43
|
-
-ms-grid-columns: 1fr 1fr;
|
|
44
|
-
-ms-grid-rows: 1fr 1fr;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.link-item {
|
|
49
|
-
display: block;
|
|
50
|
-
padding: 20px 30px 20px 15px;
|
|
51
|
-
border: 1px solid #00000010;
|
|
52
|
-
border-radius: 5px;
|
|
53
|
-
transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
|
|
54
|
-
color: #333333;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: flex-start;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.link-item:hover {
|
|
60
|
-
border-color: #1EA7FD50;
|
|
61
|
-
transform: translate3d(0, -3px, 0);
|
|
62
|
-
box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.link-item:active {
|
|
66
|
-
border-color: #1EA7FD;
|
|
67
|
-
transform: translate3d(0, 0, 0);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.link-item strong {
|
|
71
|
-
font-weight: 700;
|
|
72
|
-
display: block;
|
|
73
|
-
margin-bottom: 2px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.link-item img {
|
|
77
|
-
height: 40px;
|
|
78
|
-
width: 40px;
|
|
79
|
-
margin-right: 15px;
|
|
80
|
-
flex: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.link-item span {
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
line-height: 20px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.tip {
|
|
89
|
-
display: inline-block;
|
|
90
|
-
border-radius: 1em;
|
|
91
|
-
font-size: 11px;
|
|
92
|
-
line-height: 12px;
|
|
93
|
-
font-weight: 700;
|
|
94
|
-
background: #E7FDD8;
|
|
95
|
-
color: #66BF3C;
|
|
96
|
-
padding: 4px 12px;
|
|
97
|
-
margin-right: 10px;
|
|
98
|
-
vertical-align: top;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.tip-wrapper {
|
|
102
|
-
font-size: 13px;
|
|
103
|
-
line-height: 20px;
|
|
104
|
-
margin-top: 40px;
|
|
105
|
-
margin-bottom: 40px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.tip-wrapper code {
|
|
109
|
-
font-size: 12px;
|
|
110
|
-
display: inline-block;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.wip-img {
|
|
114
|
-
margin-bottom: 16px;
|
|
115
|
-
}
|
|
116
|
-
`}
|
|
117
|
-
</style>
|
|
118
|
-
|
|
119
8
|
# Welcome to @pautena/react-desgin-system!
|
|
120
9
|
|
|
121
|
-
Welcome to ```@pautena/react-desgin-system```, the Desgin System with a bunch of components and layouts that
|
|
122
|
-
that I use to create my personal projects.
|
|
123
|
-
|
|
124
10
|
**WORK IN PROGRESS**
|
|
125
11
|
|
|
126
12
|
<img src={WorkInProgress} width="200" height="180" class="wip-img"/>
|
|
127
13
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<a
|
|
131
|
-
className="link-item"
|
|
132
|
-
href="https://storybook.js.org/docs/react/addons/addon-types"
|
|
133
|
-
target="_blank"
|
|
134
|
-
>
|
|
135
|
-
<img src={Plugin} alt="plugin" />
|
|
136
|
-
<span>
|
|
137
|
-
<strong>Getting started</strong>
|
|
138
|
-
Easy setup for TypeScript, SCSS and more.
|
|
139
|
-
</span>
|
|
140
|
-
</a>
|
|
141
|
-
<a
|
|
142
|
-
className="link-item"
|
|
143
|
-
href="https://storybook.js.org/docs/react/configure/webpack"
|
|
144
|
-
target="_blank"
|
|
145
|
-
>
|
|
146
|
-
<img src={StackAlt} alt="Build" />
|
|
147
|
-
<span>
|
|
148
|
-
<strong>Components</strong>
|
|
149
|
-
How to customize webpack and Babel
|
|
150
|
-
</span>
|
|
151
|
-
</a>
|
|
152
|
-
<a
|
|
153
|
-
className="link-item"
|
|
154
|
-
href="https://storybook.js.org/docs/react/configure/styling-and-css"
|
|
155
|
-
target="_blank"
|
|
156
|
-
>
|
|
157
|
-
<img src={Colors} alt="colors" />
|
|
158
|
-
<span>
|
|
159
|
-
<strong>Layouts</strong>
|
|
160
|
-
How to load and configure CSS libraries
|
|
161
|
-
</span>
|
|
162
|
-
</a>
|
|
163
|
-
<a
|
|
164
|
-
className="link-item"
|
|
165
|
-
href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
|
|
166
|
-
target="_blank"
|
|
167
|
-
>
|
|
168
|
-
<img src={Flow} alt="flow" />
|
|
169
|
-
<span>
|
|
170
|
-
<strong>Generator</strong>
|
|
171
|
-
Providers and mocking for data libraries
|
|
172
|
-
</span>
|
|
173
|
-
</a>
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
## Getting started
|
|
177
|
-
|
|
178
|
-
This project is available as an [npm package](https://www.npmjs.com/package/@pautena/react-design-system).
|
|
179
|
-
|
|
180
|
-
npm:
|
|
181
|
-
|
|
182
|
-
```bash
|
|
183
|
-
npm install @pautena/react-design-system @emotion/react @emotion/styled @mui/icons-material @mui/lab @mui/material @mui/x-data-grid react-dom react-router-dom
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
yarn:
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
npm install @pautena/react-design-system @emotion/react @emotion/styled @mui/icons-material @mui/lab @mui/material @mui/x-data-grid react-dom react-router-dom
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
Now you are going to be able to import the components and use it in your React project.
|
|
193
|
-
|
|
194
|
-
```javascript
|
|
195
|
-
import { AppBarWithDrawerLayout } from "@pautena/react-design-system";
|
|
196
|
-
```
|
|
14
|
+
Welcome to ```@pautena/react-desgin-system```, the Desgin System with a bunch of components and layouts that
|
|
15
|
+
that I use to create my personal projects.
|
|
197
16
|
|
|
198
17
|
|
|
18
|
+
<ul>
|
|
19
|
+
<li><LinkTo kind="Getting Started">Getting Started</LinkTo></li>
|
|
20
|
+
<li><LinkTo kind="Components" story="Introduction">Components</LinkTo></li>
|
|
21
|
+
<li><LinkTo kind="Layouts" story="Introduction">Layouts</LinkTo></li>
|
|
22
|
+
<li><LinkTo kind="Generators" story="Introduction">Generators</LinkTo></li>
|
|
23
|
+
</ul>
|
|
199
24
|
|
|
200
25
|
# Source code
|
|
201
26
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<Meta title="Getting Started" />
|
|
2
|
+
|
|
3
|
+
## Getting started
|
|
4
|
+
|
|
5
|
+
This project is available as an [npm package](https://www.npmjs.com/package/@pautena/react-design-system).
|
|
6
|
+
|
|
7
|
+
npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @pautena/react-design-system @emotion/react @emotion/styled @mui/icons-material @mui/lab @mui/material @mui/x-data-grid react-dom react-router-dom
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
yarn:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @pautena/react-design-system @emotion/react @emotion/styled @mui/icons-material @mui/lab @mui/material @mui/x-data-grid react-dom react-router-dom
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Now you are going to be able to import the components and use it in your React project.
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
import { AppBarWithDrawerLayout } from "@pautena/react-design-system";
|
|
23
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentMeta } from "@storybook/react";
|
|
2
|
+
import { createTemplate } from "../../storybook";
|
|
3
|
+
import { DatatablePlaceholder } from "./datatable-placeholder";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: "Components/Placeholders/DatatablePlaceholder",
|
|
7
|
+
component: DatatablePlaceholder,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: "fullscreen",
|
|
10
|
+
},
|
|
11
|
+
} as ComponentMeta<typeof DatatablePlaceholder>;
|
|
12
|
+
|
|
13
|
+
const Template = createTemplate(DatatablePlaceholder);
|
|
14
|
+
|
|
15
|
+
export const Default = Template.bind({});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Box } from "@mui/material";
|
|
2
|
+
import { DataGrid } from "@mui/x-data-grid";
|
|
3
|
+
import { useDemoData } from "@mui/x-data-grid-generator";
|
|
4
|
+
import React from "react";
|
|
5
|
+
|
|
6
|
+
export interface DatatablePlaceholderProps {
|
|
7
|
+
rowLength?: number;
|
|
8
|
+
maxColumns?: number;
|
|
9
|
+
dataSet?: "Commodity" | "Employee";
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const DatatablePlaceholder = ({
|
|
14
|
+
rowLength = 1000,
|
|
15
|
+
maxColumns = 10,
|
|
16
|
+
height = 400,
|
|
17
|
+
dataSet = "Commodity",
|
|
18
|
+
}: DatatablePlaceholderProps) => {
|
|
19
|
+
const {
|
|
20
|
+
data: { rows, columns },
|
|
21
|
+
} = useDemoData({
|
|
22
|
+
dataSet,
|
|
23
|
+
rowLength,
|
|
24
|
+
maxColumns,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<Box sx={{ height, width: 1 }}>
|
|
29
|
+
<DataGrid
|
|
30
|
+
rows={rows}
|
|
31
|
+
columns={columns as any}
|
|
32
|
+
pageSize={5}
|
|
33
|
+
rowsPerPageOptions={[5]}
|
|
34
|
+
checkboxSelection
|
|
35
|
+
disableSelectionOnClick
|
|
36
|
+
experimentalFeatures={{ newEditingApi: true }}
|
|
37
|
+
/>
|
|
38
|
+
</Box>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./datatable-placeholder";
|
package/src/types.d.ts
ADDED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { List, ListSubheader } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { DrawerItem } from "../drawer-item";
|
|
4
|
-
import { NavItem } from "../drawer/drawer.types";
|
|
5
|
-
|
|
6
|
-
export interface DrawerSectionProps {
|
|
7
|
-
/**
|
|
8
|
-
* Section title
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* List of items of that section
|
|
13
|
-
*/
|
|
14
|
-
items: NavItem[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Render a group of items inside the drawer
|
|
19
|
-
* with an optional title
|
|
20
|
-
*/
|
|
21
|
-
export const DrawerSection = ({ title, items }: DrawerSectionProps) => {
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
{title && <ListSubheader role="heading">{title}</ListSubheader>}
|
|
25
|
-
<List>
|
|
26
|
-
{items.map(({ id, text, icon, avatar, label, bullet, href }) => (
|
|
27
|
-
<DrawerItem
|
|
28
|
-
key={id}
|
|
29
|
-
text={text}
|
|
30
|
-
icon={icon}
|
|
31
|
-
avatar={avatar}
|
|
32
|
-
label={label}
|
|
33
|
-
bullet={bullet}
|
|
34
|
-
href={href}
|
|
35
|
-
/>
|
|
36
|
-
))}
|
|
37
|
-
</List>
|
|
38
|
-
</>
|
|
39
|
-
);
|
|
40
|
-
};
|