@licklist/design 0.78.5-dev.93 → 0.78.5-dev.95
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/.claude/settings.local.json +19 -0
- package/dist/Maintenance/Maintenance.scss.js +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/index.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/index.d.ts.map +1 -1
- package/dist/v2/components/ActionMenu/ActionMenu.scss.js +1 -1
- package/dist/v2/components/AvatarUpload/AvatarUpload.d.ts.map +1 -1
- package/dist/v2/components/AvatarUpload/AvatarUpload.js +7 -3
- package/dist/v2/components/Badge/Badge.scss.js +1 -1
- package/dist/v2/components/Button/Button.scss.js +1 -1
- package/dist/v2/components/Button/GhostButton.scss.js +1 -1
- package/dist/v2/components/Checkbox/Checkbox.scss.js +1 -1
- package/dist/v2/components/IconButton/IconButton.scss.js +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.js +10 -4
- package/dist/v2/components/Modal/DeleteModal.scss.js +1 -1
- package/dist/v2/components/NPSScore/NPSScore.scss.js +1 -1
- package/dist/v2/components/NewTabs/NewTabs.scss.js +1 -1
- package/dist/v2/components/Select/Select.scss.js +1 -1
- package/dist/v2/components/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/v2/components/StatusBadge/StatusBadge.js +17 -13
- package/dist/v2/components/StatusBadge/StatusBadge.scss.js +1 -1
- package/dist/v2/components/StepIndicator/StepIndicator.scss.js +1 -1
- package/dist/v2/components/TableControls/TableControls.d.ts.map +1 -1
- package/dist/v2/components/TableControls/TableControls.js +7 -3
- package/dist/v2/components/Tabs/Tabs.scss.js +1 -1
- package/dist/v2/components/Tooltip/Tooltip.scss.js +1 -1
- package/dist/v2/components/UserAvatar/UserAvatar.scss.js +1 -1
- package/dist/v2/components/UserPanel/UserPanel.d.ts.map +1 -1
- package/dist/v2/components/UserPanel/UserPanel.js +18 -14
- package/dist/v2/components/UserPanel/UserPanel.scss.js +1 -1
- package/dist/v2/components/WYSIWYGEditor/WYSIWYGEditor.scss.js +1 -1
- package/dist/v2/components/ZoneCard/ZoneCard.scss.js +1 -1
- package/dist/v2/dashboard-analytics/blog-posts/Blog.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/blog-posts/Blog.js +6 -2
- package/dist/v2/dashboard-analytics/chart/Chart.scss.js +1 -1
- package/dist/v2/dashboard-analytics/dashboard/Dashboard.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/dashboard/Dashboard.js +24 -16
- package/dist/v2/dashboard-analytics/metric-card/MetricCard.scss.js +1 -1
- package/dist/v2/dashboard-analytics/venue-card/VenueCard.scss.js +1 -1
- package/dist/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.scss.js +1 -1
- package/dist/v2/icons/index.d.ts +4 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/AdminSidebar.scss.js +1 -1
- package/dist/v2/navigation/DashboardLayout/DashboardFooter.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/DashboardFooter.js +9 -6
- package/dist/v2/navigation/DashboardLayout/DashboardLayout.scss.js +1 -1
- package/dist/v2/navigation/DashboardLayout/ProviderSidebar.scss.js +1 -1
- package/dist/v2/navigation/DashboardLayout/TopNavigation.scss.js +1 -1
- package/dist/v2/navigation/SidebarUserElement/SidebarUserElement.d.ts.map +1 -1
- package/dist/v2/pages/RoleSelection/RoleSelectionPage.d.ts.map +1 -1
- package/dist/v2/pages/Settings/SettingsTabs.scss.js +1 -1
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +1 -0
- package/dist/v2/pages/Settings/components/SidebarCustomisation.scss.js +1 -1
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +1 -0
- package/dist/v2/pages/UserDetails/UserDetailsPage.d.ts.map +1 -1
- package/dist/v2/pages/auth/AuthLayout/AuthLayout.d.ts.map +1 -1
- package/dist/v2/pages/auth/AuthLayout/AuthLayout.js +6 -2
- package/dist/v2/pages/auth/AuthLayout/AuthLayout.scss.js +1 -1
- package/dist/v2/shadcn/_reference/auth/CreatePasswordPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/LoginForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/LoginPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/ResetPasswordForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/ResetPasswordPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/VerifyEmailForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/VerifyEmailPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/email/EmailAttachment.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/shared/ConfirmationDialog.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/accordion.d.ts +4 -5
- package/dist/v2/shadcn/components/ui/accordion.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/alert-dialog.d.ts +9 -10
- package/dist/v2/shadcn/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/alert.d.ts +1 -4
- package/dist/v2/shadcn/components/ui/alert.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/avatar.d.ts +3 -4
- package/dist/v2/shadcn/components/ui/avatar.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/badge.d.ts +1 -3
- package/dist/v2/shadcn/components/ui/badge.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/button.d.ts +1 -5
- package/dist/v2/shadcn/components/ui/button.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/checkbox.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/checkbox.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/collapsible.d.ts +3 -4
- package/dist/v2/shadcn/components/ui/collapsible.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/command.d.ts +7 -72
- package/dist/v2/shadcn/components/ui/command.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/context-menu.d.ts +14 -21
- package/dist/v2/shadcn/components/ui/context-menu.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/dialog.d.ts +8 -9
- package/dist/v2/shadcn/components/ui/dialog.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/drawer.d.ts +7 -7
- package/dist/v2/shadcn/components/ui/drawer.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts +14 -21
- package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/form.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/form.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/hover-card.d.ts +3 -4
- package/dist/v2/shadcn/components/ui/hover-card.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/input-otp.d.ts +1 -27
- package/dist/v2/shadcn/components/ui/input-otp.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/label.d.ts +1 -3
- package/dist/v2/shadcn/components/ui/label.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/menubar.d.ts +15 -27
- package/dist/v2/shadcn/components/ui/menubar.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/navigation-menu.d.ts +9 -10
- package/dist/v2/shadcn/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/popover.d.ts +3 -4
- package/dist/v2/shadcn/components/ui/popover.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/progress.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/progress.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/radio-group.d.ts +2 -3
- package/dist/v2/shadcn/components/ui/radio-group.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/select.d.ts +10 -11
- package/dist/v2/shadcn/components/ui/select.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/separator.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/separator.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/sheet.d.ts +9 -11
- package/dist/v2/shadcn/components/ui/sheet.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/sidebar.d.ts +2 -11
- package/dist/v2/shadcn/components/ui/sidebar.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/slider.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/slider.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/switch.d.ts +1 -2
- package/dist/v2/shadcn/components/ui/switch.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/switch.scss.js +1 -1
- package/dist/v2/shadcn/components/ui/tabs.d.ts +4 -5
- package/dist/v2/shadcn/components/ui/tabs.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/toast.d.ts +7 -11
- package/dist/v2/shadcn/components/ui/toast.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/toggle-group.d.ts +2 -10
- package/dist/v2/shadcn/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/v2/shadcn/components/ui/toggle.d.ts +2 -10
- package/dist/v2/shadcn/components/ui/toggle.d.ts.map +1 -1
- package/dist/v2/styles/form/NewInput.scss.js +1 -1
- package/dist/zone/form/ZoneForm.js +2 -1
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +53 -1
- package/package.json +2 -2
- package/src/v2/components/AvatarUpload/AvatarUpload.tsx +5 -3
- package/src/v2/components/Customer/CustomersList.scss +8 -9
- package/src/v2/components/IconButton/IconButton.scss +9 -9
- package/src/v2/components/Modal/DeleteModal.tsx +5 -3
- package/src/v2/components/StatusBadge/StatusBadge.tsx +23 -18
- package/src/v2/components/TableControls/TableControls.tsx +5 -3
- package/src/v2/components/UserPanel/UserPanel.tsx +9 -5
- package/src/v2/dashboard-analytics/blog-posts/Blog.tsx +6 -4
- package/src/v2/dashboard-analytics/chart/Chart.scss +2 -2
- package/src/v2/dashboard-analytics/dashboard/Dashboard.tsx +19 -16
- package/src/v2/icons/index.tsx +15 -0
- package/src/v2/navigation/DashboardLayout/DashboardFooter.tsx +4 -2
- package/src/v2/navigation/SidebarUserElement/SidebarUserElement.tsx +5 -3
- package/src/v2/pages/RoleSelection/RoleSelectionPage.tsx +10 -8
- package/src/v2/pages/UserDetails/UserDetailsPage.tsx +16 -14
- package/src/v2/pages/auth/AuthLayout/AuthLayout.tsx +4 -2
- package/src/v2/shadcn/_reference/auth/CreatePasswordForm.tsx +9 -9
- package/src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/auth/LoginForm.tsx +21 -17
- package/src/v2/shadcn/_reference/auth/LoginPanel.tsx +6 -4
- package/src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx +14 -12
- package/src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx +8 -6
- package/src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/email/EmailAttachment.tsx +5 -3
- package/src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx +13 -11
- package/src/zone/form/ZoneForm.tsx +1 -1
- package/src/zone/form/components/ZoneControl.tsx +22 -3
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
declare const ToastProvider: any;
|
|
3
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<any>;
|
|
4
|
+
declare const Toast: React.ForwardRefExoticComponent<any>;
|
|
5
|
+
declare const ToastAction: React.ForwardRefExoticComponent<any>;
|
|
6
|
+
declare const ToastClose: React.ForwardRefExoticComponent<any>;
|
|
7
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<any>;
|
|
8
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<any>;
|
|
13
9
|
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
14
10
|
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
15
11
|
export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,aAAa,KAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,sCAYjB,CAAC;AAkBH,QAAA,MAAM,KAAK,sCAKT,CAAC;AAGH,QAAA,MAAM,WAAW,sCAYf,CAAC;AAGH,QAAA,MAAM,UAAU,sCAed,CAAC;AAGH,QAAA,MAAM,UAAU,sCAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,sCAKpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: {
|
|
5
|
-
variant?: "default" | "outline";
|
|
6
|
-
size?: "default" | "sm" | "lg";
|
|
7
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
|
-
variant?: "default" | "outline";
|
|
10
|
-
size?: "default" | "sm" | "lg";
|
|
11
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<any>;
|
|
3
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<any>;
|
|
12
4
|
export { ToggleGroup, ToggleGroupItem };
|
|
13
5
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,QAAA,MAAM,WAAW,sCAOf,CAAC;AAIH,QAAA,MAAM,eAAe,sCAqBnB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const toggleVariants: (props?: {
|
|
5
|
-
variant?: "default" | "outline";
|
|
6
|
-
size?: "default" | "sm" | "lg";
|
|
7
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
8
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
|
-
variant?: "default" | "outline";
|
|
10
|
-
size?: "default" | "sm" | "lg";
|
|
11
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
declare const toggleVariants: any;
|
|
3
|
+
declare const Toggle: React.ForwardRefExoticComponent<any>;
|
|
12
4
|
export { Toggle, toggleVariants };
|
|
13
5
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,cAAc,KAmBnB,CAAC;AAEF,QAAA,MAAM,MAAM,sCAKV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = ":root{--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.new-form-input{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-sm);min-width:0;overflow:hidden;width:100%}.new-form-input__label{align-items:center;color:var(--label-primary);display:flex;font-size:15px;font-weight:600;justify-content:space-between;line-height:20px;width:100%}.new-form-input__label,.new-form-input__label-optional{font-family:var(--font-family-sans,\"Geist\",sans-serif);font-style:normal}.new-form-input__label-optional{color:var(--label-secondary);font-size:13px;font-weight:400;line-height:16px}.new-form-input__input{background-color:var(--surfaces-main-background-secondary);background:var(--surface-secondary);border:2px solid var(--border-primary);border-radius:var(--radius-md);box-sizing:border-box;color:var(--labels-main-label-primary,#121e52);color:var(--label-primary,#121e52);flex:1 1 0;font-family:var(--font-family-sans);font-size:var(--text-regular-size);font-weight:var(--text-regular-weight);line-height:var(--text-regular-line);min-height:40px;min-width:0;padding:8px 10px;transition:all .2s ease;width:100%}@media (max-width:768px){.new-form-input__input{font-size:16px}}.new-form-input__input:focus{background-color:var(--surfaces-main-background-secondary,#f8f8fa);border-color:var(--border-selected,#6200ee);outline:none}.new-form-input__input::placeholder{color:var(--labels-main-label-secondary,#626a90)}.new-form-input__input[type=date]::-webkit-datetime-edit-day-field,.new-form-input__input[type=date]::-webkit-datetime-edit-month-field,.new-form-input__input[type=date]::-webkit-datetime-edit-text,.new-form-input__input[type=date]::-webkit-datetime-edit-year-field,.new-form-input__input[type=time]::-webkit-datetime-edit-ampm-field,.new-form-input__input[type=time]::-webkit-datetime-edit-hour-field,.new-form-input__input[type=time]::-webkit-datetime-edit-minute-field,.new-form-input__input[type=time]::-webkit-datetime-edit-text{color:var(--label-primary,#121e52)}.new-form-input__textarea{background-color:var(--surfaces-main-background-secondary,#f8f8fa);border:1px solid var(--borders-main-border-primary,#e8e9ef);border-radius:var(--radius-md,4px);color:var(--labels-main-label-primary,#121e52);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-regular-size,15px);line-height:var(--text-regular-line,20px);min-height:120px;padding:8px 10px;resize:vertical;transition:all .2s ease;width:100%}@media (max-width:768px){.new-form-input__textarea{font-size:16px}}.new-form-input__textarea:focus{border-color:var(--border-selected,#6200ee);outline:none}.new-form-input__textarea::placeholder{color:var(--labels-main-label-secondary,#626a90)}.new-form-input__input-with-icon{align-items:center;background-color:var(--surfaces-main-background-secondary,#f8f8fa);border:2px solid var(--border-primary,#e8e9ef);border-radius:var(--radius-md,4px);display:flex;gap:var(--spacing-sm,8px);min-height:52px;padding:8px 10px;transition:all .2s ease;width:100%}.new-form-input__input-with-icon:focus-within{border-color:var(--border-selected,#6200ee)}.new-form-input__input-with-icon .icon{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;order:-1;width:24px}.new-form-input__input-with-icon--right .icon{order:1}.new-form-input__input-with-icon input{background
|
|
3
|
+
var css_248z = ":root{--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.new-form-input{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-sm);min-width:0;overflow:hidden;width:100%}.new-form-input__label{align-items:center;color:var(--label-primary);display:flex;font-size:15px;font-weight:600;justify-content:space-between;line-height:20px;width:100%}.new-form-input__label,.new-form-input__label-optional{font-family:var(--font-family-sans,\"Geist\",sans-serif);font-style:normal}.new-form-input__label-optional{color:var(--label-secondary);font-size:13px;font-weight:400;line-height:16px}.new-form-input__input{background-color:var(--surfaces-main-background-secondary);background:var(--surface-secondary);border:2px solid var(--border-primary);border-radius:var(--radius-md);box-sizing:border-box;color:var(--labels-main-label-primary,#121e52);color:var(--label-primary,#121e52);flex:1 1 0;font-family:var(--font-family-sans);font-size:var(--text-regular-size);font-weight:var(--text-regular-weight);line-height:var(--text-regular-line);min-height:40px;min-width:0;padding:8px 10px;transition:all .2s ease;width:100%}@media (max-width:768px){.new-form-input__input{font-size:16px}}.new-form-input__input:focus{background-color:var(--surfaces-main-background-secondary,#f8f8fa);border-color:var(--border-selected,#6200ee);outline:none}.new-form-input__input::placeholder{color:var(--labels-main-label-secondary,#626a90)}.new-form-input__input[type=date]::-webkit-datetime-edit-day-field,.new-form-input__input[type=date]::-webkit-datetime-edit-month-field,.new-form-input__input[type=date]::-webkit-datetime-edit-text,.new-form-input__input[type=date]::-webkit-datetime-edit-year-field,.new-form-input__input[type=time]::-webkit-datetime-edit-ampm-field,.new-form-input__input[type=time]::-webkit-datetime-edit-hour-field,.new-form-input__input[type=time]::-webkit-datetime-edit-minute-field,.new-form-input__input[type=time]::-webkit-datetime-edit-text{color:var(--label-primary,#121e52)}.new-form-input__textarea{background-color:var(--surfaces-main-background-secondary,#f8f8fa);border:1px solid var(--borders-main-border-primary,#e8e9ef);border-radius:var(--radius-md,4px);color:var(--labels-main-label-primary,#121e52);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-regular-size,15px);line-height:var(--text-regular-line,20px);min-height:120px;padding:8px 10px;resize:vertical;transition:all .2s ease;width:100%}@media (max-width:768px){.new-form-input__textarea{font-size:16px}}.new-form-input__textarea:focus{border-color:var(--border-selected,#6200ee);outline:none}.new-form-input__textarea::placeholder{color:var(--labels-main-label-secondary,#626a90)}.new-form-input__input-with-icon{align-items:center;background-color:var(--surfaces-main-background-secondary,#f8f8fa);border:2px solid var(--border-primary,#e8e9ef);border-radius:var(--radius-md,4px);display:flex;gap:var(--spacing-sm,8px);min-height:52px;padding:8px 10px;transition:all .2s ease;width:100%}.new-form-input__input-with-icon:focus-within{border-color:var(--border-selected,#6200ee)}.new-form-input__input-with-icon .icon{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:center;order:-1;width:24px}.new-form-input__input-with-icon--right .icon{order:1}.new-form-input__input-with-icon input{background:transparent;border:none;color:var(--label-primary);flex:1;font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-regular-size,15px);line-height:var(--text-regular-line,20px)}@media (max-width:768px){.new-form-input__input-with-icon input{font-size:16px}}.new-form-input__input-with-icon input:focus{outline:none}.new-form-input__input-with-icon input::placeholder{color:var(--labels-main-label-secondary,#626a90)}.new-form-input__input-with-icon input[type=date]::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}.new-form-input__input-with-icon input[type=date]::-webkit-inner-spin-button,.new-form-input__input-with-icon input[type=date]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.new-form-input__verification-code{display:flex;gap:var(--spacing-sm,8px);height:62px}.new-form-input__verification-code .code-input{background-color:var(--surfaces-main-background-secondary,#f8f8fa);border:2px solid var(--borders-main-border-primary,#e8e9ef);border-radius:var(--radius-md,4px);color:var(--labels-main-label-primary,#121e52);flex:1;font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-lg-size,18px);font-weight:var(--heading-h3-weight,600);text-align:center;transition:all .2s ease}.new-form-input__verification-code .code-input:focus{border-color:var(--border-selected,#6200ee);outline:none}.new-form-input__helper-text{color:var(--label-secondary,#626a90);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-regular-size,15px);font-style:normal;font-weight:400;line-height:var(--text-regular-line,20px);margin-top:2px;min-width:max-content;white-space:nowrap}@media (max-width:768px){.new-form-input__helper-text{word-wrap:break-word;min-width:unset;white-space:normal}}.new-form-input__error-text{color:var(--labels-status-label-error,#ef4444);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:11px;font-style:normal;font-weight:400;line-height:14px;margin-top:2px}.new-form-input--active .new-form-input__input{border-color:var(--border-selected,#6200ee)}.new-form-input--error .new-form-input__input{border-color:var(--borders-status-border-error,#ef4444)}.new-form-input--disabled{opacity:var(--opacity-50,.5);pointer-events:none}.new-form-input--on-surface .new-form-input__input,.new-form-input--on-surface .new-form-input__input-with-icon,.new-form-input--on-surface .new-form-input__textarea{background-color:var(--surface-primary,#fff);background:var(--surface-primary,#fff)}.new-form-input--on-surface .new-form-input__input-with-icon:focus,.new-form-input--on-surface .new-form-input__input-with-icon:focus-within,.new-form-input--on-surface .new-form-input__input:focus,.new-form-input--on-surface .new-form-input__input:focus-within,.new-form-input--on-surface .new-form-input__textarea:focus,.new-form-input--on-surface .new-form-input__textarea:focus-within{background-color:var(--surface-primary,#fff)}.new-form-input.dob-input .new-form-input__label{color:var(--label-secondary,#626a90)}.surface-context--secondary .new-form-input__input,.surface-context--secondary .new-form-input__input-with-icon,.surface-context--secondary .new-form-input__textarea{background-color:var(--surface-primary,#fff);background:var(--surface-primary,#fff)}.surface-context--secondary .new-form-input__input-with-icon:focus,.surface-context--secondary .new-form-input__input-with-icon:focus-within,.surface-context--secondary .new-form-input__input:focus,.surface-context--secondary .new-form-input__input:focus-within,.surface-context--secondary .new-form-input__textarea:focus,.surface-context--secondary .new-form-input__textarea:focus-within{background-color:var(--surface-primary,#fff)}";
|
|
4
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -91,7 +91,8 @@ var ZoneForm = function(param) {
|
|
|
91
91
|
var form = useForm({
|
|
92
92
|
mode: 'onChange',
|
|
93
93
|
defaultValues: {
|
|
94
|
-
zoneRecurrences: []
|
|
94
|
+
zoneRecurrences: [],
|
|
95
|
+
sameStartTimeDaily: true
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
var reset = form.reset, setError = form.setError, handleSubmit = form.handleSubmit, watch = form.watch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoneControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ZoneControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneControl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AASrF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,qCAIzB,gBAAgB,4CAyClB,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { Row, Col } from 'react-bootstrap';
|
|
2
|
+
import { Row, Col, Form } from 'react-bootstrap';
|
|
3
|
+
import { useFormContext } from 'react-hook-form';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
3
5
|
import { NameControl } from './NameControl.js';
|
|
4
6
|
import { ZoneTypeControl } from './ZoneTypeControl.js';
|
|
5
7
|
import { SortControl } from './SortControl.js';
|
|
@@ -8,8 +10,39 @@ import { DescriptionControl } from './DescriptionControl.js';
|
|
|
8
10
|
import { ZoneImageControl } from './ZoneImageControl.js';
|
|
9
11
|
import { GameDurationControl } from './GameDurationControl.js';
|
|
10
12
|
|
|
13
|
+
function _define_property(obj, key, value) {
|
|
14
|
+
if (key in obj) {
|
|
15
|
+
Object.defineProperty(obj, key, {
|
|
16
|
+
value: value,
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true
|
|
20
|
+
});
|
|
21
|
+
} else {
|
|
22
|
+
obj[key] = value;
|
|
23
|
+
}
|
|
24
|
+
return obj;
|
|
25
|
+
}
|
|
26
|
+
function _object_spread(target) {
|
|
27
|
+
for(var i = 1; i < arguments.length; i++){
|
|
28
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
29
|
+
var ownKeys = Object.keys(source);
|
|
30
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
32
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
ownKeys.forEach(function(key) {
|
|
36
|
+
_define_property(target, key, source[key]);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
11
41
|
var ZoneControl = function(param) {
|
|
12
42
|
var isLoading = param.isLoading, workHours = param.workHours, timeZone = param.timeZone;
|
|
43
|
+
var _useFormContext = useFormContext(), register = _useFormContext.register, watch = _useFormContext.watch, setValue = _useFormContext.setValue;
|
|
44
|
+
var t = useTranslation('Design').t;
|
|
45
|
+
var sameStartTimeDaily = watch('sameStartTimeDaily');
|
|
13
46
|
return /*#__PURE__*/ jsx(Row, {
|
|
14
47
|
children: /*#__PURE__*/ jsxs(Col, {
|
|
15
48
|
md: 6,
|
|
@@ -19,6 +52,25 @@ var ZoneControl = function(param) {
|
|
|
19
52
|
/*#__PURE__*/ jsx(NameControl, {
|
|
20
53
|
isLoading: isLoading
|
|
21
54
|
}),
|
|
55
|
+
/*#__PURE__*/ jsxs(Form.Group, {
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ jsx("input", _object_spread({
|
|
58
|
+
type: "hidden"
|
|
59
|
+
}, register('sameStartTimeDaily'))),
|
|
60
|
+
/*#__PURE__*/ jsx(Form.Check, {
|
|
61
|
+
type: "switch",
|
|
62
|
+
id: "sameStartTimeDailySwitch",
|
|
63
|
+
label: t('sameStartTimeDaily'),
|
|
64
|
+
disabled: isLoading,
|
|
65
|
+
checked: sameStartTimeDaily === true || sameStartTimeDaily === 'true',
|
|
66
|
+
onChange: function(e) {
|
|
67
|
+
return setValue('sameStartTimeDaily', e.target.checked, {
|
|
68
|
+
shouldDirty: true
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
22
74
|
/*#__PURE__*/ jsx(ZoneRecurrencesControl, {
|
|
23
75
|
workHours: workHours,
|
|
24
76
|
timeZone: timeZone
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.95",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/bookedit-licklist/licklist_design.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.36.1-dev.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.43",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
47
|
"@licklist/plugins": "0.36.4-dev.15",
|
|
48
48
|
"clsx": "2.1.1",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useRef } from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './AvatarUpload.scss'
|
|
3
4
|
import { UploadIcon } from '../../icons'
|
|
4
5
|
|
|
@@ -19,6 +20,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
19
20
|
description,
|
|
20
21
|
className = '',
|
|
21
22
|
}) => {
|
|
23
|
+
const { t } = useTranslation(['Design'])
|
|
22
24
|
const inputRef = useRef<HTMLInputElement>(null)
|
|
23
25
|
|
|
24
26
|
const handleCircleClick = () => {
|
|
@@ -41,7 +43,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
41
43
|
onClick={handleCircleClick}
|
|
42
44
|
>
|
|
43
45
|
{preview ? (
|
|
44
|
-
<img className="avatar-upload__image" src={preview} alt=
|
|
46
|
+
<img className="avatar-upload__image" src={preview} alt={t('avatarPreview')} />
|
|
45
47
|
) : (
|
|
46
48
|
<span className="avatar-upload__upload-icon">
|
|
47
49
|
<UploadIcon />
|
|
@@ -62,11 +64,11 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
62
64
|
{description && <span className="avatar-upload__description">{description}</span>}
|
|
63
65
|
{preview ? (
|
|
64
66
|
<button type="button" className="avatar-upload__remove" onClick={onDelete}>
|
|
65
|
-
|
|
67
|
+
{t('remove')}
|
|
66
68
|
</button>
|
|
67
69
|
) : (
|
|
68
70
|
<button type="button" className="avatar-upload__upload-btn" onClick={handleCircleClick}>
|
|
69
|
-
|
|
71
|
+
{t('upload')}
|
|
70
72
|
</button>
|
|
71
73
|
)}
|
|
72
74
|
</div>
|
|
@@ -458,12 +458,11 @@
|
|
|
458
458
|
overflow-x: auto;
|
|
459
459
|
-webkit-overflow-scrolling: touch;
|
|
460
460
|
padding: 0;
|
|
461
|
+
scrollbar-width: none;
|
|
461
462
|
|
|
462
463
|
&::-webkit-scrollbar {
|
|
463
464
|
display: none;
|
|
464
465
|
}
|
|
465
|
-
|
|
466
|
-
scrollbar-width: none;
|
|
467
466
|
}
|
|
468
467
|
|
|
469
468
|
&__tab {
|
|
@@ -608,13 +607,6 @@
|
|
|
608
607
|
"next last"
|
|
609
608
|
"divider divider"
|
|
610
609
|
"status actions";
|
|
611
|
-
|
|
612
|
-
:is(.waivers-page--compact) & {
|
|
613
|
-
grid-template-areas:
|
|
614
|
-
"customer customer"
|
|
615
|
-
"divider divider"
|
|
616
|
-
"status actions";
|
|
617
|
-
}
|
|
618
610
|
border: 1px solid var(--border-primary, #E8E9EF);
|
|
619
611
|
border-radius: 12px;
|
|
620
612
|
margin-bottom: 16px;
|
|
@@ -624,6 +616,13 @@
|
|
|
624
616
|
position: relative;
|
|
625
617
|
overflow: visible;
|
|
626
618
|
|
|
619
|
+
:is(.waivers-page--compact) & {
|
|
620
|
+
grid-template-areas:
|
|
621
|
+
"customer customer"
|
|
622
|
+
"divider divider"
|
|
623
|
+
"status actions";
|
|
624
|
+
}
|
|
625
|
+
|
|
627
626
|
&::after {
|
|
628
627
|
content: "";
|
|
629
628
|
grid-area: divider;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
gap: var(--spacing-sm, 8px);
|
|
6
6
|
padding: 0 16px 0 12px;
|
|
7
7
|
height: 36px;
|
|
8
|
-
background:
|
|
9
|
-
border:
|
|
8
|
+
background: var(--surface-action-soft);
|
|
9
|
+
border: none;
|
|
10
10
|
border-radius: 8px;
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
transition: all 0.2s ease;
|
|
@@ -18,33 +18,33 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&:hover {
|
|
21
|
-
background: var(--surface-
|
|
22
|
-
color: var(--label-primary);
|
|
21
|
+
background: var(--surface-action-soft-hover, color-mix(in srgb, var(--surface-action-soft) 85%, var(--label-action)));
|
|
23
22
|
|
|
24
23
|
.icon-button__icon {
|
|
25
|
-
color: var(--label-
|
|
24
|
+
color: var(--label-action);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.icon-button__label {
|
|
29
|
-
color: var(--label-
|
|
28
|
+
color: var(--label-action);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
&:active {
|
|
34
|
-
background: var(--surface-
|
|
33
|
+
background: var(--surface-action-soft);
|
|
34
|
+
opacity: 0.8;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__icon {
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
|
-
color: var(--label-
|
|
40
|
+
color: var(--label-action);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&__label {
|
|
44
44
|
font-size: 13px;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 16px;
|
|
47
|
-
color: var(--label-
|
|
47
|
+
color: var(--label-action);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import {
|
|
3
4
|
Dialog,
|
|
4
5
|
DialogContent,
|
|
@@ -33,6 +34,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
33
34
|
confirmationPlaceholder,
|
|
34
35
|
isDeleting = false,
|
|
35
36
|
}) => {
|
|
37
|
+
const { t } = useTranslation(['Design'])
|
|
36
38
|
const [inputValue, setInputValue] = useState('')
|
|
37
39
|
|
|
38
40
|
useEffect(() => {
|
|
@@ -70,7 +72,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
70
72
|
|
|
71
73
|
<div className="delete-modal__confirmation">
|
|
72
74
|
<p className="delete-modal__label">
|
|
73
|
-
|
|
75
|
+
{t('typeWord')} <strong>{confirmationText}</strong> {t('toConfirmDeletion')}
|
|
74
76
|
</p>
|
|
75
77
|
<NewInput
|
|
76
78
|
type="text"
|
|
@@ -89,7 +91,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
89
91
|
onClick={handleConfirm}
|
|
90
92
|
disabled={isConfirmDisabled}
|
|
91
93
|
>
|
|
92
|
-
{isDeleting ? '
|
|
94
|
+
{isDeleting ? t('deleting') : t('delete')}
|
|
93
95
|
</button>
|
|
94
96
|
<button
|
|
95
97
|
type="button"
|
|
@@ -97,7 +99,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
97
99
|
onClick={onClose}
|
|
98
100
|
disabled={isDeleting}
|
|
99
101
|
>
|
|
100
|
-
|
|
102
|
+
{t('cancel')}
|
|
101
103
|
</button>
|
|
102
104
|
</DialogFooter>
|
|
103
105
|
</DialogContent>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './StatusBadge.scss'
|
|
3
4
|
|
|
4
5
|
export type StatusBadgeStatus =
|
|
@@ -19,22 +20,26 @@ export interface StatusBadgeProps {
|
|
|
19
20
|
label?: string
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
export const StatusBadge: React.FC<StatusBadgeProps> = ({ status, label }) => {
|
|
24
|
+
const { t } = useTranslation(['Design'])
|
|
25
|
+
|
|
26
|
+
const STATUS_LABELS: Record<StatusBadgeStatus, string> = {
|
|
27
|
+
active: t('statusActive'),
|
|
28
|
+
disabled: t('statusDisabled'),
|
|
29
|
+
suspended: t('statusSuspended'),
|
|
30
|
+
invited: t('statusInvited'),
|
|
31
|
+
imported: t('statusImported'),
|
|
32
|
+
inactive: t('statusInactive'),
|
|
33
|
+
expired: t('statusExpired'),
|
|
34
|
+
success: t('statusSuccess'),
|
|
35
|
+
warning: t('statusWarning'),
|
|
36
|
+
error: t('statusError'),
|
|
37
|
+
default: '',
|
|
38
|
+
}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)
|
|
40
|
+
return (
|
|
41
|
+
<span className={`status-badge status-badge--${status}`}>
|
|
42
|
+
{label ?? STATUS_LABELS[status]}
|
|
43
|
+
</span>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import { Button } from '../Button'
|
|
3
4
|
import { QuickFilter } from '../QuickFilter'
|
|
4
5
|
import type { QuickFilterOption } from '../QuickFilter'
|
|
@@ -40,8 +41,9 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
40
41
|
searchConfig,
|
|
41
42
|
filters,
|
|
42
43
|
actions,
|
|
43
|
-
filterLabel
|
|
44
|
+
filterLabel,
|
|
44
45
|
}) => {
|
|
46
|
+
const { t } = useTranslation(['Design'])
|
|
45
47
|
const filterOptions: QuickFilterOption[] = (filters ?? []).map((f) => ({
|
|
46
48
|
label: f.label,
|
|
47
49
|
value: f.value,
|
|
@@ -73,7 +75,7 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
73
75
|
<input
|
|
74
76
|
className="table-controls__search"
|
|
75
77
|
type="text"
|
|
76
|
-
placeholder={searchConfig.placeholder ?? '
|
|
78
|
+
placeholder={searchConfig.placeholder ?? t('searchPlaceholder')}
|
|
77
79
|
value={searchConfig.value}
|
|
78
80
|
onChange={(e) => searchConfig.onChange(e.target.value)}
|
|
79
81
|
/>
|
|
@@ -99,7 +101,7 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
99
101
|
{/* ── Quick filters row ── */}
|
|
100
102
|
{filterOptions.length > 0 && (
|
|
101
103
|
<QuickFilter
|
|
102
|
-
label={filterLabel}
|
|
104
|
+
label={filterLabel ?? t('quickFilters')}
|
|
103
105
|
options={filterOptions}
|
|
104
106
|
selectedValues={selectedFilterValues}
|
|
105
107
|
onChange={handleFilterChange}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './UserPanel.scss'
|
|
3
4
|
import { UserAvatar } from '../UserAvatar'
|
|
4
5
|
|
|
@@ -48,6 +49,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
48
49
|
onProfileClick,
|
|
49
50
|
onLogoutClick,
|
|
50
51
|
}) => {
|
|
52
|
+
const { t } = useTranslation(['Design'])
|
|
51
53
|
const displayFirstName = firstName || userName?.split(' ')[0] || 'User'
|
|
52
54
|
const displayInitials = initials || userName?.split(' ').map(n => n[0]).join('').toUpperCase().slice(0, 2) || 'U'
|
|
53
55
|
|
|
@@ -75,7 +77,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
75
77
|
size="md"
|
|
76
78
|
/>
|
|
77
79
|
<div className="user-panel__user-details">
|
|
78
|
-
<h2 className="user-panel__greeting">
|
|
80
|
+
<h2 className="user-panel__greeting">{t('greetingHey', { name: displayFirstName })}</h2>
|
|
79
81
|
{email && (
|
|
80
82
|
<span className="user-panel__email">{email}</span>
|
|
81
83
|
)}
|
|
@@ -84,7 +86,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
84
86
|
<button
|
|
85
87
|
onClick={onClose}
|
|
86
88
|
className="user-panel__close-btn"
|
|
87
|
-
aria-label=
|
|
89
|
+
aria-label={t('closeUserMenu')}
|
|
88
90
|
>
|
|
89
91
|
<CloseIcon />
|
|
90
92
|
</button>
|
|
@@ -97,7 +99,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
97
99
|
className="user-panel__menu-item"
|
|
98
100
|
>
|
|
99
101
|
<UserIcon />
|
|
100
|
-
<span>
|
|
102
|
+
<span>{t('profile')}</span>
|
|
101
103
|
</button>
|
|
102
104
|
</div>
|
|
103
105
|
|
|
@@ -108,7 +110,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
108
110
|
className="user-panel__menu-item"
|
|
109
111
|
>
|
|
110
112
|
<LogoutIcon />
|
|
111
|
-
<span>
|
|
113
|
+
<span>{t('logOutLower')}</span>
|
|
112
114
|
</button>
|
|
113
115
|
</div>
|
|
114
116
|
|
|
@@ -116,7 +118,9 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
116
118
|
<div className="user-panel__footer">
|
|
117
119
|
<div className="user-panel__user-badge">
|
|
118
120
|
<span>
|
|
119
|
-
|
|
121
|
+
{userRole
|
|
122
|
+
? t('userLabelWithRole', { id: userNumber ? String(userNumber).padStart(2, '0') : 'N/A', role: userRole })
|
|
123
|
+
: t('userLabel', { id: userNumber ? String(userNumber).padStart(2, '0') : 'N/A' })}
|
|
120
124
|
</span>
|
|
121
125
|
</div>
|
|
122
126
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import './Blog.scss';
|
|
3
4
|
|
|
4
5
|
interface BlogPost {
|
|
@@ -49,15 +50,16 @@ const ExternalLinkIcon = () => (
|
|
|
49
50
|
</svg>
|
|
50
51
|
);
|
|
51
52
|
|
|
52
|
-
export const Blog: React.FC<BlogProps> = ({
|
|
53
|
-
posts = defaultPosts,
|
|
53
|
+
export const Blog: React.FC<BlogProps> = ({
|
|
54
|
+
posts = defaultPosts,
|
|
54
55
|
logoUrl = 'https://api.builder.io/api/v1/image/assets/TEMP/1f8a6c2f7239cf2c859ace81bb32160a5d376121?placeholderIfAbsent=true',
|
|
55
56
|
className = ''
|
|
56
57
|
}) => {
|
|
58
|
+
const { t } = useTranslation(['Design']);
|
|
57
59
|
return (
|
|
58
60
|
<div className={`blog ${className}`}>
|
|
59
61
|
<div className="blog__header">
|
|
60
|
-
<h2 className="blog__title">
|
|
62
|
+
<h2 className="blog__title">{t('latestUpdates')}</h2>
|
|
61
63
|
<img
|
|
62
64
|
src={logoUrl}
|
|
63
65
|
alt="Logo"
|
|
@@ -76,7 +78,7 @@ export const Blog: React.FC<BlogProps> = ({
|
|
|
76
78
|
rel="noopener noreferrer"
|
|
77
79
|
className="blog__post-link"
|
|
78
80
|
>
|
|
79
|
-
|
|
81
|
+
{t('readMore')}
|
|
80
82
|
<span className="blog__post-link-icon">
|
|
81
83
|
<ExternalLinkIcon />
|
|
82
84
|
</span>
|