@licklist/design 0.78.18 → 0.78.20
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/.storybook/main.cjs +55 -6
- package/.storybook/preview.jsx +77 -7
- package/dist/Maintenance/Maintenance.scss.js +6 -0
- package/dist/Maintenance/MaintenancePage.d.ts +12 -0
- package/dist/Maintenance/MaintenancePage.d.ts.map +1 -0
- package/dist/Maintenance/MaintenancePage.js +98 -0
- package/dist/Maintenance/SkeletonSidebar.d.ts +5 -0
- package/dist/Maintenance/SkeletonSidebar.d.ts.map +1 -0
- package/dist/Maintenance/SkeletonSidebar.js +101 -0
- package/dist/PageNotFound/PageNotFound.d.ts +10 -0
- package/dist/PageNotFound/PageNotFound.d.ts.map +1 -0
- package/dist/PageNotFound/PageNotFound.js +42 -0
- package/dist/PageNotFound/index.d.ts +2 -0
- package/dist/PageNotFound/index.d.ts.map +1 -0
- package/dist/UnderMaintenance/UnderMaintenance.d.ts +4 -0
- package/dist/UnderMaintenance/UnderMaintenance.d.ts.map +1 -0
- package/dist/UnderMaintenance/UnderMaintenance.js +39 -0
- package/dist/UnderMaintenance/UnderMaintenance.scss.js +6 -0
- package/dist/UnderMaintenance/index.d.ts +2 -0
- package/dist/UnderMaintenance/index.d.ts.map +1 -0
- package/dist/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +4 -3
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +4 -3
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +2 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/notification/components/NotificationPlaceholders.js +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +13 -5
- package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +7 -3
- package/dist/sortable-tree/SortableTree.js +1 -26
- package/dist/styles/overrides/_functions.scss +1 -1
- package/dist/v2/components/Alert/Alert.d.ts +14 -0
- package/dist/v2/components/Alert/Alert.d.ts.map +1 -0
- package/dist/v2/components/Alert/index.d.ts +3 -0
- package/dist/v2/components/Alert/index.d.ts.map +1 -0
- package/dist/v2/components/Button/Button.d.ts +10 -0
- package/dist/v2/components/Button/Button.d.ts.map +1 -0
- package/dist/v2/components/Button/index.d.ts +3 -0
- package/dist/v2/components/Button/index.d.ts.map +1 -0
- package/dist/v2/components/Colors/Colors.d.ts +21 -0
- package/dist/v2/components/Colors/Colors.d.ts.map +1 -0
- package/dist/v2/components/Colors/index.d.ts +3 -0
- package/dist/v2/components/Colors/index.d.ts.map +1 -0
- package/dist/v2/components/Typography/Typography.d.ts +11 -0
- package/dist/v2/components/Typography/Typography.d.ts.map +1 -0
- package/dist/v2/components/Typography/index.d.ts +3 -0
- package/dist/v2/components/Typography/index.d.ts.map +1 -0
- package/dist/v2/hooks/useAuth.d.ts +4 -0
- package/dist/v2/hooks/useAuth.d.ts.map +1 -0
- package/dist/v2/index.d.ts +56 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.d.ts +8 -0
- package/dist/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasAdminSideBar/index.d.ts +3 -0
- package/dist/v2/navigation/FigmasAdminSideBar/index.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasSideBar/FigmasSideBar.d.ts +22 -0
- package/dist/v2/navigation/FigmasSideBar/FigmasSideBar.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasSideBar/index.d.ts +3 -0
- package/dist/v2/navigation/FigmasSideBar/index.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasTopHat/FigmasTopHat.d.ts +15 -0
- package/dist/v2/navigation/FigmasTopHat/FigmasTopHat.d.ts.map +1 -0
- package/dist/v2/navigation/FigmasTopHat/index.d.ts +3 -0
- package/dist/v2/navigation/FigmasTopHat/index.d.ts.map +1 -0
- package/dist/v2/navigation/Navigation/Navigation.d.ts +9 -0
- package/dist/v2/navigation/Navigation/Navigation.d.ts.map +1 -0
- package/dist/v2/navigation/Navigation/index.d.ts +3 -0
- package/dist/v2/navigation/Navigation/index.d.ts.map +1 -0
- package/dist/v2/navigation/NavigationItem/NavigationItem.d.ts +12 -0
- package/dist/v2/navigation/NavigationItem/NavigationItem.d.ts.map +1 -0
- package/dist/v2/navigation/NavigationItem/index.d.ts +3 -0
- package/dist/v2/navigation/NavigationItem/index.d.ts.map +1 -0
- package/dist/v2/navigation/NavigationSection/NavigationSection.d.ts +8 -0
- package/dist/v2/navigation/NavigationSection/NavigationSection.d.ts.map +1 -0
- package/dist/v2/navigation/NavigationSection/index.d.ts +3 -0
- package/dist/v2/navigation/NavigationSection/index.d.ts.map +1 -0
- package/dist/v2/navigation/SideBarToggleLarge/SideBarToggleLarge.d.ts +9 -0
- package/dist/v2/navigation/SideBarToggleLarge/SideBarToggleLarge.d.ts.map +1 -0
- package/dist/v2/navigation/SideBarToggleLarge/index.d.ts +3 -0
- package/dist/v2/navigation/SideBarToggleLarge/index.d.ts.map +1 -0
- package/dist/v2/navigation/SidebarUserElement/SidebarUserElement.d.ts +15 -0
- package/dist/v2/navigation/SidebarUserElement/SidebarUserElement.d.ts.map +1 -0
- package/dist/v2/navigation/SidebarUserElement/index.d.ts +3 -0
- package/dist/v2/navigation/SidebarUserElement/index.d.ts.map +1 -0
- package/dist/v2/navigation/SidebarWithAuth.d.ts +20 -0
- package/dist/v2/navigation/SidebarWithAuth.d.ts.map +1 -0
- package/dist/v2/navigation/TopHatControlDisc/TopHatControlDisc.d.ts +9 -0
- package/dist/v2/navigation/TopHatControlDisc/TopHatControlDisc.d.ts.map +1 -0
- package/dist/v2/navigation/TopHatControlDisc/index.d.ts +3 -0
- package/dist/v2/navigation/TopHatControlDisc/index.d.ts.map +1 -0
- package/dist/v2/navigation/config.d.ts +3 -0
- package/dist/v2/navigation/config.d.ts.map +1 -0
- package/dist/v2/navigation/icons/index.d.ts +12 -0
- package/dist/v2/navigation/icons/index.d.ts.map +1 -0
- package/dist/v2/navigation/index.d.ts +23 -0
- package/dist/v2/navigation/index.d.ts.map +1 -0
- package/dist/v2/types/navigation.d.ts +17 -0
- package/dist/v2/types/navigation.d.ts.map +1 -0
- package/package.json +2 -1
- package/rollup.config.js +13 -0
- package/src/Maintenance/Maintenance.scss +253 -0
- package/src/Maintenance/MaintenancePage.tsx +59 -0
- package/src/Maintenance/SkeletonSidebar.tsx +56 -0
- package/src/PageNotFound/PageNotFound.scss +8 -0
- package/src/PageNotFound/PageNotFound.stories.tsx +23 -0
- package/src/PageNotFound/PageNotFound.tsx +43 -0
- package/src/PageNotFound/index.ts +1 -0
- package/src/UnderMaintenance/UnderMaintenance.scss +6 -0
- package/src/UnderMaintenance/UnderMaintenance.stories.tsx +23 -0
- package/src/UnderMaintenance/UnderMaintenance.tsx +22 -0
- package/src/UnderMaintenance/index.ts +1 -0
- package/src/auth/Auth.stories.tsx +37 -3
- package/src/auth/Authorizer.tsx +3 -2
- package/src/auth/ChangePassword/ChangePassword.stories.tsx +1 -8
- package/src/auth/Login/Login.stories.tsx +1 -6
- package/src/auth/Logout/Logout.stories.tsx +3 -0
- package/src/auth/Register/Register.stories.tsx +3 -7
- package/src/auth/ResetPassword/ResetPassword.stories.tsx +1 -8
- package/src/auth/Social/Social.stories.tsx +1 -6
- package/src/collapsible-input-group/CollapsibleInputGroup.stories.tsx +72 -4
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +2 -1
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.stories.tsx +3 -2
- package/src/events/event-card/EventCard.stories.tsx +3 -2
- package/src/events/event-statistic-modal/EventStatisticModal.stories.tsx +2 -1
- package/src/events/event-venue-map/EventVenueMap.stories.tsx +8 -1
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +3 -3
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +1 -1
- package/src/iframe/custom-fields/components/CustomDateField.stories.tsx +3 -2
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +7 -5
- package/src/iframe/event/event-card/IframeEventCards.stories.tsx +7 -6
- package/src/iframe/event/event-description/EventDescription.stories.tsx +3 -2
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +3 -2
- package/src/iframe/external-modal/ExternalModal.stories.tsx +3 -0
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +5 -0
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.stories.tsx +2 -1
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.stories.tsx +2 -1
- package/src/iframe/page/Page.stories.tsx +9 -8
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -1
- package/src/iframe/payment/payment-status-header/PaymentStatusHeader.stories.tsx +2 -1
- package/src/index.ts +2 -0
- package/src/logo/Logo.stories.tsx +17 -14
- package/src/modals/confirmation/Confirmation.stories.tsx +2 -1
- package/src/notification/components/NotificationPlaceholders.stories.tsx +4 -0
- package/src/notification/components/NotificationPlaceholders.tsx +1 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +12 -6
- package/src/product-set/form/ProductSetForm.stories.tsx +13 -4
- package/src/provider/location-input/LocationInput.stories.tsx +47 -2
- package/src/provider/provider-details-input/ProviderDetailsInput.stories.tsx +10 -1
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +1 -1
- package/src/provider/provider-form/ProviderForm.stories.tsx +46 -0
- package/src/provider/venue-form/VenueForm.stories.tsx +49 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +7 -5
- package/src/recurrence-input/RecurrenceInput.stories.tsx +3 -0
- package/src/resource/form/ResourceForm.stories.tsx +2 -1
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +2 -1
- package/src/sales/life-time-sales/LifeTimeSalesChart.stories.tsx +2 -1
- package/src/sales/manual-booking/select-date-type-control/SelectDateTypeControl.stories.tsx +2 -1
- package/src/sales/manual-booking/select-menu/SelectMenu.stories.tsx +2 -1
- package/src/sales/modals/payment-modal/PaymentModal.stories.tsx +3 -2
- package/src/sales/modals/refund-modal/RefundModal.stories.tsx +5 -4
- package/src/sales/payment-form/SalePaymentForm.stories.tsx +3 -2
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.stories.tsx +2 -1
- package/src/snippet/snippet-template/SnippetTemplate.stories.tsx +2 -1
- package/src/snippet/snippet-template/form/SnippetTemplateForm.stories.tsx +4 -2
- package/src/sortable-tree/SortableTree.tsx +1 -1
- package/src/sortable-tree/SortableTreeItem.stories.tsx +12 -14
- package/src/styles/overrides/_functions.scss +1 -1
- package/src/table/Table.stories.tsx +3 -24
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.stories.tsx +27 -3
- package/src/v2/components/Alert/Alert.scss +186 -0
- package/src/v2/components/Alert/Alert.stories.tsx +176 -0
- package/src/v2/components/Alert/Alert.tsx +62 -0
- package/src/v2/components/Alert/assets/alert-icon.svg +3 -0
- package/src/v2/components/Alert/assets/error-icon.svg +3 -0
- package/src/v2/components/Alert/assets/info-icon.svg +3 -0
- package/src/v2/components/Alert/assets/success-icon.svg +3 -0
- package/src/v2/components/Alert/index.ts +2 -0
- package/src/v2/components/Button/Button.scss +19 -0
- package/src/v2/components/Button/Button.stories.tsx +93 -0
- package/src/v2/components/Button/Button.tsx +37 -0
- package/src/v2/components/Button/index.ts +3 -0
- package/src/v2/components/Colors/Colors.scss +64 -0
- package/src/v2/components/Colors/Colors.stories.tsx +143 -0
- package/src/v2/components/Colors/Colors.tsx +51 -0
- package/src/v2/components/Colors/ColorsAliases.stories.tsx +285 -0
- package/src/v2/components/Colors/Sizes.stories.tsx +141 -0
- package/src/v2/components/Colors/index.ts +2 -0
- package/src/v2/components/Typography/Typography.scss +72 -0
- package/src/v2/components/Typography/Typography.stories.tsx +266 -0
- package/src/v2/components/Typography/Typography.tsx +56 -0
- package/src/v2/components/Typography/index.ts +2 -0
- package/src/v2/hooks/useAuth.ts +40 -0
- package/src/v2/index.ts +105 -0
- package/src/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.scss +148 -0
- package/src/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.stories.tsx +132 -0
- package/src/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.tsx +272 -0
- package/src/v2/navigation/FigmasAdminSideBar/index.ts +2 -0
- package/src/v2/navigation/FigmasSideBar/FigmasSideBar.scss +214 -0
- package/src/v2/navigation/FigmasSideBar/FigmasSideBar.stories.tsx +164 -0
- package/src/v2/navigation/FigmasSideBar/FigmasSideBar.tsx +310 -0
- package/src/v2/navigation/FigmasSideBar/index.ts +2 -0
- package/src/v2/navigation/FigmasTopHat/FigmasTopHat.scss +291 -0
- package/src/v2/navigation/FigmasTopHat/FigmasTopHat.stories.tsx +201 -0
- package/src/v2/navigation/FigmasTopHat/FigmasTopHat.tsx +158 -0
- package/src/v2/navigation/FigmasTopHat/assets/bell-icon.svg +3 -0
- package/src/v2/navigation/FigmasTopHat/assets/disc-icon.svg +4 -0
- package/src/v2/navigation/FigmasTopHat/assets/inbox-icon.svg +3 -0
- package/src/v2/navigation/FigmasTopHat/assets/logo-desktop-1.svg +3 -0
- package/src/v2/navigation/FigmasTopHat/assets/logo-desktop-2.svg +4 -0
- package/src/v2/navigation/FigmasTopHat/assets/user-icon.svg +4 -0
- package/src/v2/navigation/FigmasTopHat/index.ts +2 -0
- package/src/v2/navigation/Navigation/Navigation.scss +15 -0
- package/src/v2/navigation/Navigation/Navigation.stories.tsx +137 -0
- package/src/v2/navigation/Navigation/Navigation.tsx +127 -0
- package/src/v2/navigation/Navigation/index.ts +3 -0
- package/src/v2/navigation/NavigationItem/NavigationItem.scss +61 -0
- package/src/v2/navigation/NavigationItem/NavigationItem.stories.tsx +110 -0
- package/src/v2/navigation/NavigationItem/NavigationItem.tsx +38 -0
- package/src/v2/navigation/NavigationItem/index.ts +3 -0
- package/src/v2/navigation/NavigationSection/NavigationSection.scss +20 -0
- package/src/v2/navigation/NavigationSection/NavigationSection.tsx +19 -0
- package/src/v2/navigation/NavigationSection/index.ts +3 -0
- package/src/v2/navigation/SideBarToggleLarge/SideBarToggleLarge.scss +64 -0
- package/src/v2/navigation/SideBarToggleLarge/SideBarToggleLarge.stories.tsx +183 -0
- package/src/v2/navigation/SideBarToggleLarge/SideBarToggleLarge.tsx +30 -0
- package/src/v2/navigation/SideBarToggleLarge/assets/sidebar-icon.svg +5 -0
- package/src/v2/navigation/SideBarToggleLarge/index.ts +2 -0
- package/src/v2/navigation/SidebarUserElement/SidebarUserElement.scss +148 -0
- package/src/v2/navigation/SidebarUserElement/SidebarUserElement.stories.tsx +342 -0
- package/src/v2/navigation/SidebarUserElement/SidebarUserElement.tsx +113 -0
- package/src/v2/navigation/SidebarUserElement/index.ts +2 -0
- package/src/v2/navigation/SidebarWithAuth.stories.tsx +208 -0
- package/src/v2/navigation/SidebarWithAuth.tsx +49 -0
- package/src/v2/navigation/TopHatControlDisc/TopHatControlDisc.scss +57 -0
- package/src/v2/navigation/TopHatControlDisc/TopHatControlDisc.stories.tsx +153 -0
- package/src/v2/navigation/TopHatControlDisc/TopHatControlDisc.tsx +30 -0
- package/src/v2/navigation/TopHatControlDisc/assets/disc-icon.svg +4 -0
- package/src/v2/navigation/TopHatControlDisc/index.ts +2 -0
- package/src/v2/navigation/config.tsx +150 -0
- package/src/v2/navigation/icons/index.tsx +72 -0
- package/src/v2/navigation/index.ts +23 -0
- package/src/v2/styles/components/Button.scss +168 -0
- package/src/v2/styles/form/NewInput.scss +172 -0
- package/src/v2/styles/index.scss +5 -0
- package/src/v2/styles/navigation/Navigation.scss +17 -0
- package/src/v2/styles/navigation/NavigationItem.scss +86 -0
- package/src/v2/styles/navigation/NavigationSection.scss +26 -0
- package/src/v2/styles/navigation/_index.scss +9 -0
- package/src/v2/styles/tokens/_aliases.scss +199 -0
- package/src/v2/styles/tokens/_colors.scss +121 -0
- package/src/v2/styles/tokens/_sizes.scss +122 -0
- package/src/v2/styles/tokens/_status.scss +108 -0
- package/src/v2/styles/tokens/_typography.scss +146 -0
- package/src/v2/types/navigation.ts +17 -0
- package/src/zone/form/ZoneForm.stories.tsx +2 -1
- package/styles/overrides/_functions.scss +6 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import { SideBarToggleLarge } from './SideBarToggleLarge'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'v2/Navigation/Side Bar Toggle Large',
|
|
7
|
+
component: SideBarToggleLarge,
|
|
8
|
+
argTypes: {
|
|
9
|
+
variant: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['default', 'hover', 'pressed'],
|
|
12
|
+
description: 'Visual state of the toggle',
|
|
13
|
+
},
|
|
14
|
+
onClick: { action: 'clicked' },
|
|
15
|
+
className: {
|
|
16
|
+
control: 'text',
|
|
17
|
+
description: 'Additional CSS classes',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
parameters: {
|
|
21
|
+
layout: 'centered',
|
|
22
|
+
},
|
|
23
|
+
} as Meta
|
|
24
|
+
|
|
25
|
+
type Story = StoryObj<typeof SideBarToggleLarge>
|
|
26
|
+
|
|
27
|
+
export const Default: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
variant: 'default',
|
|
30
|
+
},
|
|
31
|
+
decorators: [
|
|
32
|
+
(Story) => (
|
|
33
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px' }}>
|
|
34
|
+
<Story />
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
],
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const Hover: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
variant: 'hover',
|
|
43
|
+
},
|
|
44
|
+
decorators: [
|
|
45
|
+
(Story) => (
|
|
46
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px' }}>
|
|
47
|
+
<Story />
|
|
48
|
+
</div>
|
|
49
|
+
),
|
|
50
|
+
],
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const Pressed: Story = {
|
|
54
|
+
args: {
|
|
55
|
+
variant: 'pressed',
|
|
56
|
+
},
|
|
57
|
+
decorators: [
|
|
58
|
+
(Story) => (
|
|
59
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px' }}>
|
|
60
|
+
<Story />
|
|
61
|
+
</div>
|
|
62
|
+
),
|
|
63
|
+
],
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const Interactive: Story = {
|
|
67
|
+
render: function (args) {
|
|
68
|
+
const [variant, setVariant] = React.useState<'default' | 'hover' | 'pressed'>('default');
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px' }}>
|
|
72
|
+
<SideBarToggleLarge
|
|
73
|
+
{...args}
|
|
74
|
+
variant={variant}
|
|
75
|
+
onClick={() => {
|
|
76
|
+
setVariant(variant === 'pressed' ? 'default' : 'pressed');
|
|
77
|
+
setTimeout(() => setVariant('default'), 150);
|
|
78
|
+
}}
|
|
79
|
+
/>
|
|
80
|
+
<div style={{ position: 'absolute', top: '50px', left: '0', display: 'flex', gap: '8px', flexDirection: 'column' }}>
|
|
81
|
+
<button
|
|
82
|
+
onClick={() => setVariant('default')}
|
|
83
|
+
style={{
|
|
84
|
+
padding: '4px 8px',
|
|
85
|
+
backgroundColor: variant === 'default' ? '#14215A' : '#E8E9EF',
|
|
86
|
+
color: variant === 'default' ? 'white' : '#121E52',
|
|
87
|
+
border: 'none',
|
|
88
|
+
borderRadius: '4px',
|
|
89
|
+
cursor: 'pointer',
|
|
90
|
+
fontSize: '12px'
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
Default
|
|
94
|
+
</button>
|
|
95
|
+
<button
|
|
96
|
+
onClick={() => setVariant('hover')}
|
|
97
|
+
style={{
|
|
98
|
+
padding: '4px 8px',
|
|
99
|
+
backgroundColor: variant === 'hover' ? '#14215A' : '#E8E9EF',
|
|
100
|
+
color: variant === 'hover' ? 'white' : '#121E52',
|
|
101
|
+
border: 'none',
|
|
102
|
+
borderRadius: '4px',
|
|
103
|
+
cursor: 'pointer',
|
|
104
|
+
fontSize: '12px'
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
Hover
|
|
108
|
+
</button>
|
|
109
|
+
<button
|
|
110
|
+
onClick={() => setVariant('pressed')}
|
|
111
|
+
style={{
|
|
112
|
+
padding: '4px 8px',
|
|
113
|
+
backgroundColor: variant === 'pressed' ? '#14215A' : '#E8E9EF',
|
|
114
|
+
color: variant === 'pressed' ? 'white' : '#121E52',
|
|
115
|
+
border: 'none',
|
|
116
|
+
borderRadius: '4px',
|
|
117
|
+
cursor: 'pointer',
|
|
118
|
+
fontSize: '12px'
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
Pressed
|
|
122
|
+
</button>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
);
|
|
126
|
+
},
|
|
127
|
+
args: {},
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const MultipleStates: Story = {
|
|
131
|
+
render: () => (
|
|
132
|
+
<div style={{ display: 'flex', gap: '16px', alignItems: 'center' }}>
|
|
133
|
+
<div style={{ textAlign: 'center' }}>
|
|
134
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px', marginBottom: '8px' }}>
|
|
135
|
+
<SideBarToggleLarge variant="default" />
|
|
136
|
+
</div>
|
|
137
|
+
<span style={{ fontSize: '12px', color: '#626A90' }}>Default</span>
|
|
138
|
+
</div>
|
|
139
|
+
<div style={{ textAlign: 'center' }}>
|
|
140
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px', marginBottom: '8px' }}>
|
|
141
|
+
<SideBarToggleLarge variant="hover" />
|
|
142
|
+
</div>
|
|
143
|
+
<span style={{ fontSize: '12px', color: '#626A90' }}>Hover</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div style={{ textAlign: 'center' }}>
|
|
146
|
+
<div style={{ width: '48px', height: '40px', border: '1px solid #E8E9EF', borderRadius: '6px', marginBottom: '8px' }}>
|
|
147
|
+
<SideBarToggleLarge variant="pressed" />
|
|
148
|
+
</div>
|
|
149
|
+
<span style={{ fontSize: '12px', color: '#626A90' }}>Pressed</span>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
),
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export const InContext: Story = {
|
|
156
|
+
render: () => (
|
|
157
|
+
<div style={{
|
|
158
|
+
display: 'flex',
|
|
159
|
+
alignItems: 'center',
|
|
160
|
+
gap: '8px',
|
|
161
|
+
padding: '8px',
|
|
162
|
+
backgroundColor: '#F8F8FA',
|
|
163
|
+
borderBottom: '1px solid #E8E9EF',
|
|
164
|
+
width: '100%'
|
|
165
|
+
}}>
|
|
166
|
+
<SideBarToggleLarge onClick={() => alert('Sidebar toggled!')} />
|
|
167
|
+
<div style={{
|
|
168
|
+
height: '32px',
|
|
169
|
+
width: '124px',
|
|
170
|
+
backgroundColor: '#ffffff',
|
|
171
|
+
border: '1px solid #E8E9EF',
|
|
172
|
+
borderRadius: '4px',
|
|
173
|
+
display: 'flex',
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
justifyContent: 'center',
|
|
176
|
+
fontSize: '14px',
|
|
177
|
+
color: '#121E52'
|
|
178
|
+
}}>
|
|
179
|
+
Logo Area
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
),
|
|
183
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import './SideBarToggleLarge.scss'
|
|
3
|
+
import sidebarIcon from './assets/sidebar-icon.svg'
|
|
4
|
+
|
|
5
|
+
export interface SideBarToggleLargeProps {
|
|
6
|
+
variant?: 'default' | 'hover' | 'pressed'
|
|
7
|
+
onClick?: () => void
|
|
8
|
+
className?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const SideBarToggleLarge: React.FC<SideBarToggleLargeProps> = ({
|
|
12
|
+
variant = 'default',
|
|
13
|
+
onClick,
|
|
14
|
+
className,
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<div
|
|
18
|
+
className={`sidebar-toggle-large sidebar-toggle-large--${variant} ${className || ''}`}
|
|
19
|
+
onClick={onClick}
|
|
20
|
+
data-name="Side Bar"
|
|
21
|
+
data-node-id="796:2923"
|
|
22
|
+
>
|
|
23
|
+
<div className="sidebar-toggle-large__icon" data-name="Icon" data-node-id="I796:2923;796:2870">
|
|
24
|
+
<div className="sidebar-toggle-large__icon-inner" data-node-id="I796:2923;796:2871">
|
|
25
|
+
<img alt="Sidebar toggle" className="sidebar-toggle-large__icon-img" src={sidebarIcon} />
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="20" viewBox="0 0 24 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="3" y="3" width="18" height="2" rx="1" fill="var(--fills-main-fill-primary, #14215A)" />
|
|
3
|
+
<rect x="3" y="9" width="18" height="2" rx="1" fill="var(--fills-main-fill-primary, #14215A)" />
|
|
4
|
+
<rect x="3" y="15" width="18" height="2" rx="1" fill="var(--fills-main-fill-primary, #14215A)" />
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@import '../../../styles/overrides/functions';
|
|
2
|
+
|
|
3
|
+
.sidebar-user-element {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
padding: 8px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.2s ease;
|
|
13
|
+
|
|
14
|
+
&--default {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--hover {
|
|
19
|
+
background: var(--surfaces-main-background-secondary-hover, #E8E9EF);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--dropdown {
|
|
23
|
+
background: var(--surfaces-main-background-primary, white);
|
|
24
|
+
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.20);
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__user-info {
|
|
30
|
+
width: 236px;
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__avatar {
|
|
38
|
+
width: 40px;
|
|
39
|
+
height: 40px;
|
|
40
|
+
position: relative;
|
|
41
|
+
|
|
42
|
+
&-circle {
|
|
43
|
+
width: 40px;
|
|
44
|
+
height: 40px;
|
|
45
|
+
left: 0px;
|
|
46
|
+
top: 0px;
|
|
47
|
+
position: absolute;
|
|
48
|
+
background: var(--surfaces-main-background-primary, white);
|
|
49
|
+
border-radius: 9999px;
|
|
50
|
+
border: 1px var(--borders-main-border-primary, #E8E9EF) solid;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__user-details {
|
|
55
|
+
width: 184.50px;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__user-name {
|
|
63
|
+
align-self: stretch;
|
|
64
|
+
color: var(--labels-main-label-primary, #121E52);
|
|
65
|
+
font-size: 15px;
|
|
66
|
+
font-family: 'Geist', sans-serif;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
line-height: 18px;
|
|
69
|
+
word-wrap: break-word;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__user-email {
|
|
73
|
+
align-self: stretch;
|
|
74
|
+
color: var(--labels-main-label-secondary, #626A90);
|
|
75
|
+
font-size: 10px;
|
|
76
|
+
font-family: 'Inter', sans-serif;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
word-wrap: break-word;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__dropdown {
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
justify-content: flex-start;
|
|
84
|
+
align-items: flex-start;
|
|
85
|
+
gap: 8px;
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__dropdown-items {
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
justify-content: flex-start;
|
|
92
|
+
align-items: flex-start;
|
|
93
|
+
gap: 4px;
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__dropdown-item {
|
|
98
|
+
width: 236px;
|
|
99
|
+
justify-content: flex-start;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__dropdown-link {
|
|
105
|
+
flex: 1 1 0;
|
|
106
|
+
padding: 8px;
|
|
107
|
+
border-radius: 8px;
|
|
108
|
+
justify-content: flex-start;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: 8px;
|
|
111
|
+
display: flex;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition: all 0.2s ease;
|
|
114
|
+
|
|
115
|
+
&:hover {
|
|
116
|
+
background: var(--surfaces-main-background-tertiary, #F8F8FA);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:focus-visible {
|
|
120
|
+
outline: 2px solid var(--fills-main-fill-primary, #14215A);
|
|
121
|
+
outline-offset: 2px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__dropdown-icon {
|
|
126
|
+
width: 24px;
|
|
127
|
+
height: 24px;
|
|
128
|
+
position: relative;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
border-radius: 6px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__icon-img {
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: 100%;
|
|
136
|
+
display: block;
|
|
137
|
+
max-width: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&__dropdown-text {
|
|
141
|
+
color: var(--labels-main-label-primary, #121E52);
|
|
142
|
+
font-size: 13px;
|
|
143
|
+
font-family: 'Geist', sans-serif;
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
line-height: 16px;
|
|
146
|
+
word-wrap: break-word;
|
|
147
|
+
}
|
|
148
|
+
}
|