Skip to content

Commit

Permalink
tree shacking
Browse files Browse the repository at this point in the history
  • Loading branch information
nuritsha committed Sep 11, 2024
1 parent 1851cc2 commit b52418f
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion modules/admin/assets/js/components/link/admin-link.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from '@elementor/ui';
import { Link } from '@elementor/ui/Link';

export const AdminLink = ( { href, children } ) => {
return (
Expand Down
4 changes: 3 additions & 1 deletion modules/admin/assets/js/components/link/promotion-link.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Stack, Typography, Button } from '@elementor/ui';
import { Stack } from '@elementor/ui/Stack';
import { Typography } from '@elementor/ui/Typography';
import { Button } from '@elementor/ui/Button';

export const PromotionLink = ( { image, alt, title, message, button, link } ) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { __ } from '@wordpress/i18n';
import { Box, Stack, Typography } from '@elementor/ui';
import { Box } from '@elementor/ui/Box';
import { Stack } from '@elementor/ui/Stack';
import { Typography } from '@elementor/ui/Typography';

const HomeHero = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid } from '@elementor/ui';
import { Grid } from '@elementor/ui/Grid';
import { LinksColumn } from './links-column';

export const HomeLinksGrid = ( { linksColumns } ) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Grid, Stack, Typography } from '@elementor/ui';
import { Grid } from '@elementor/ui/Grid';
import { Stack } from '@elementor/ui/Stack';
import { Typography } from '@elementor/ui/Typography';
import { AdminLink } from '../../../../link/admin-link';

export const LinksColumn = ( { linksColumn } ) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack } from '@elementor/ui';
import { Stack } from '@elementor/ui/Stack';
import HomeHero from './components/home-hero';
import { HomeLinksGrid } from './components/home-links-grid';
import { __ } from '@wordpress/i18n';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Box, Card, CardContent, CardHeader, FormControlLabel, Stack, Typography } from '@elementor/ui';
import { Box } from '@elementor/ui/Box';
import { Card } from '@elementor/ui/Card';
import { CardContent } from '@elementor/ui/CardContent';
import { FormControlLabel } from '@elementor/ui/FormControlLabel';
import { Stack } from '@elementor/ui/Stack';

export const SettingCard = ( { label, description, control, code } ) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Alert, Switch, Typography, Stack, Paper } from '@elementor/ui';
import { Alert } from '@elementor/ui/Alert';
import { Switch } from '@elementor/ui/Switch';
import { Typography } from '@elementor/ui/Typography';
import { Stack } from '@elementor/ui/Stack';
import { Paper } from '@elementor/ui/Paper';
import { __ } from '@wordpress/i18n';
import { SettingCard } from './setting-card';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { useEffect, useState } from 'react';
import { __ } from '@wordpress/i18n';
import api from '@wordpress/api';
import { SettingsBody } from './components/settings-body';
import { Alert, Box, Button, CircularProgress, Stack } from '@elementor/ui';
import { Alert } from '@elementor/ui/Alert';
import { Box } from '@elementor/ui/Box';
import { Button } from '@elementor/ui/Button';
import { CircularProgress } from '@elementor/ui/CircularProgress';
import { Stack } from '@elementor/ui/Stack';
import { GridWithActionLinks } from '../../../../layouts/grids/grid-with-action-links';

export const DashboardSettingsPanel = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid } from '@elementor/ui';
import { Grid } from '@elementor/ui/Grid';
import { PromotionsLinksPanel } from '../../components/panels/promotions-links-panel';

export const GridWithActionLinks = ( { children } ) => {
Expand Down
7 changes: 6 additions & 1 deletion modules/admin/assets/js/pages/dashboard-page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { __ } from '@wordpress/i18n';
// TODO: minimize to only necessary imports
import { Container, Box, Tabs, Tab, TabPanel, useTabs } from '@elementor/ui';
import { Tabs } from '@elementor/ui/Tabs';
import { useTabs } from '@elementor/ui/useTabs';
import { TabPanel } from '@elementor/ui/TabPanel';
import { Tab } from '@elementor/ui/Tab';
import { Box } from '@elementor/ui/Box';
import { Container } from '@elementor/ui/Container';
import { ThemeProvider } from '@elementor/ui/styles';

import { DashboardSettingsPanel } from '../components/panels/dashboard/settings/dashboard-settings-panel';
Expand Down

0 comments on commit b52418f

Please sign in to comment.