I am creating a plugin for Jira Cloud and in my app.js I could successfully include the AUI module.
I tried recreating the aui-sidebar seen in this example : Sidebar - AUI Documentation
but I am missing CSS files how are you supposed to include them?
import './styles/app.css';
// start the Stimulus application
import './bootstrap';
import React from "react";
import ReactDOM from 'react-dom';
import AJS from '@atlassian/aui';
var sidebar = AJS.sidebar('.aui-sidebar');
// Try to expand the sidebar.
if (sidebar.isCollapsed()) {
sidebar.expand();
}
// Listen to collapse events.
sidebar.on('collapse-start', function () {
console.log('Sidebar is collapsing!');
});
sidebar.on('collapse-end', function () {
console.log('Sidebar is now collapsed!');
});
// Event delegation for custom interactions.
sidebar.$el.on('click', '.clone', function (e) {
if (sidebar.isCollapsed()) {
e.preventDefault();
cloneDialog.show();
}
});```