@wallarm-org/design-system 0.40.0 → 0.41.0
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/components/Logo/IconPath.d.ts +2 -0
- package/dist/components/Logo/IconPath.js +6 -0
- package/dist/components/Logo/Logo.d.ts +12 -0
- package/dist/components/Logo/Logo.js +44 -0
- package/dist/components/Logo/WordmarkPath.d.ts +2 -0
- package/dist/components/Logo/WordmarkPath.js +8 -0
- package/dist/components/Logo/classes.d.ts +3 -0
- package/dist/components/Logo/classes.js +17 -0
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.js +2 -0
- package/dist/components/Logo/types.d.ts +5 -0
- package/dist/components/Logo/types.js +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/metadata/components.json +1354 -2
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const LogoIconPath = ()=>/*#__PURE__*/ jsx("path", {
|
|
3
|
+
d: "M0 6.39923L15.0757 0V9.02234L26.0197 4.37665V10.9873L34.0428 7.58107V12.4237L26.0197 15.8299V12.9234L15.0757 17.5691V13.6104L0 20V6.39923Z",
|
|
4
|
+
fill: "currentColor"
|
|
5
|
+
});
|
|
6
|
+
export { LogoIconPath };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC, Ref, SVGProps } from 'react';
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { logoVariants } from './classes';
|
|
4
|
+
import type { LogoStyle, LogoType } from './types';
|
|
5
|
+
type LogoVariantProps = VariantProps<typeof logoVariants>;
|
|
6
|
+
export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, 'type'>, LogoVariantProps {
|
|
7
|
+
ref?: Ref<SVGSVGElement>;
|
|
8
|
+
type?: LogoType;
|
|
9
|
+
color?: LogoStyle;
|
|
10
|
+
}
|
|
11
|
+
export declare const Logo: FC<LogoProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../utils/cn.js";
|
|
3
|
+
import { logoVariants } from "./classes.js";
|
|
4
|
+
import { LogoIconPath } from "./IconPath.js";
|
|
5
|
+
import { LogoWordmarkPath } from "./WordmarkPath.js";
|
|
6
|
+
const VIEW_BOXES = {
|
|
7
|
+
icon: '0 0 34 20',
|
|
8
|
+
wordmark: '0 0 75 20',
|
|
9
|
+
full: '0 0 118 20'
|
|
10
|
+
};
|
|
11
|
+
const MARK_COLOR = {
|
|
12
|
+
default: 'text-[var(--color-component-logo-ic)]',
|
|
13
|
+
white: 'text-[var(--color-component-logo-ic)]',
|
|
14
|
+
'full-white': 'text-white'
|
|
15
|
+
};
|
|
16
|
+
const WORDMARK_COLOR = {
|
|
17
|
+
default: 'text-[var(--color-component-logo-wordmark)]',
|
|
18
|
+
white: 'text-white',
|
|
19
|
+
'full-white': 'text-white'
|
|
20
|
+
};
|
|
21
|
+
const Logo = ({ ref, type = 'full', color = 'default', size = 'lg', className, ...props })=>/*#__PURE__*/ jsxs("svg", {
|
|
22
|
+
...props,
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-slot": "logo",
|
|
25
|
+
viewBox: VIEW_BOXES[type],
|
|
26
|
+
fill: "none",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
className: cn(logoVariants({
|
|
29
|
+
size
|
|
30
|
+
}), 'w-auto', className),
|
|
31
|
+
children: [
|
|
32
|
+
('icon' === type || 'full' === type) && /*#__PURE__*/ jsx("g", {
|
|
33
|
+
className: MARK_COLOR[color],
|
|
34
|
+
children: /*#__PURE__*/ jsx(LogoIconPath, {})
|
|
35
|
+
}),
|
|
36
|
+
('wordmark' === type || 'full' === type) && /*#__PURE__*/ jsx("g", {
|
|
37
|
+
className: WORDMARK_COLOR[color],
|
|
38
|
+
transform: 'full' === type ? 'translate(38, 0)' : void 0,
|
|
39
|
+
children: /*#__PURE__*/ jsx(LogoWordmarkPath, {})
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
Logo.displayName = 'Logo';
|
|
44
|
+
export { Logo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const LogoWordmarkPath = ()=>/*#__PURE__*/ jsx("path", {
|
|
3
|
+
"fill-rule": "evenodd",
|
|
4
|
+
"clip-rule": "evenodd",
|
|
5
|
+
d: "M7.39274 6.09793H9.499L12.137 14.012L14.2433 6.09793H16.8813L13.1902 17.7032H11.0839L8.44587 9.78909L5.80784 17.7032H3.70158L0 6.09793H2.63803L4.74428 14.012L7.38232 6.09793H7.39274ZM21.2502 15.9827C22.9811 15.9827 24.2741 15.013 24.2741 13.5845V12.8651C23.6067 12.6044 22.6787 12.4063 21.6569 12.4063C20.0198 12.4063 19.0397 13.0736 19.0397 14.2414V14.2831C19.0397 15.3675 20.0094 15.9723 21.2398 15.9723L21.2502 15.9827ZM18.4662 6.69227C19.4359 6.34818 20.4995 6.12922 21.8967 6.12922C25.2646 6.12922 26.9121 7.80796 26.9121 10.8526V17.7136H24.2741V16.3164C23.492 17.2444 22.3555 17.9534 20.6246 17.9534C18.4662 17.9534 16.5685 16.723 16.5685 14.4291V14.3874C16.5685 11.9266 18.5392 10.7171 21.1877 10.7171C22.5745 10.7171 23.3878 10.9152 24.2741 11.1967V10.9152C24.2741 9.34073 23.3461 8.47529 21.5318 8.47529C20.3535 8.47529 19.4151 8.72554 18.4662 9.10091V6.71313V6.69227ZM28.497 17.7032V1.875H31.135V17.7032H28.497ZM32.7199 17.7032V1.875H35.358L35.4101 17.7032H32.7199ZM41.3118 15.9827C43.0427 15.9827 44.3356 15.013 44.3356 13.5845V12.8651C43.6683 12.6044 42.7403 12.4063 41.7184 12.4063C40.0814 12.4063 39.1012 13.0736 39.1012 14.2414V14.2831C39.1012 15.3675 40.071 15.9723 41.3013 15.9723L41.3118 15.9827ZM38.5278 6.69227C39.487 6.34818 40.561 6.12922 41.9582 6.12922C45.3262 6.12922 46.9632 7.80796 46.9632 10.8526V17.7136H44.3252V16.3164C43.5431 17.2444 42.4066 17.9534 40.6757 17.9534C38.5173 17.9534 36.6196 16.723 36.6196 14.4291V14.3874C36.6196 11.9266 38.5903 10.7171 41.2388 10.7171C42.6256 10.7171 43.4389 10.9152 44.3252 11.1967V10.9152C44.3252 9.34073 43.3972 8.47529 41.5829 8.47529C40.4046 8.47529 39.4662 8.72554 38.5173 9.10091V6.71313L38.5278 6.69227ZM48.5481 17.7032V6.09793H51.1861V8.6734C51.8952 6.96338 53.1881 5.79555 55.1901 5.88939V8.65255H55.0441C52.7502 8.65255 51.1861 10.1436 51.1861 13.1674V17.7136H48.5481V17.7032ZM73.8857 10.227V17.7136H71.2477V11.1759C71.2477 9.36159 70.4344 8.23547 68.9642 8.23547C67.494 8.23547 66.5034 9.34073 66.5034 11.1759V17.7136H63.8654V11.0091C63.8654 9.23646 63.0521 8.23547 61.6027 8.23547C60.1534 8.23547 59.1107 9.40329 59.1107 11.1759V17.7136H56.4726V6.09793H59.1107V7.82882C59.851 6.8174 60.8832 5.85811 62.635 5.85811C64.272 5.85811 65.419 6.66099 66.0238 7.87052C66.9518 6.66099 68.1613 5.85811 69.8922 5.85811C72.3738 5.85811 73.8857 7.43259 73.8857 10.227Z",
|
|
6
|
+
fill: "currentColor"
|
|
7
|
+
});
|
|
8
|
+
export { LogoWordmarkPath };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const logoVariants = cva('inline-block shrink-0', {
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
xs: 'h-[10px]',
|
|
6
|
+
sm: 'h-[12px]',
|
|
7
|
+
md: 'h-[16px]',
|
|
8
|
+
lg: 'h-[20px]',
|
|
9
|
+
xl: 'h-[24px]',
|
|
10
|
+
'2xl': 'h-[32px]'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: 'lg'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { logoVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { logoVariants } from './classes';
|
|
3
|
+
export type LogoType = 'icon' | 'wordmark' | 'full';
|
|
4
|
+
export type LogoStyle = 'default' | 'white' | 'full-white';
|
|
5
|
+
export type LogoSize = NonNullable<VariantProps<typeof logoVariants>['size']>;
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export { type DatacenterKey, datacenters, Ip, IpAddress, type IpAddressProps, Ip
|
|
|
38
38
|
export { Kbd, KbdGroup } from './components/Kbd';
|
|
39
39
|
export { Link, type LinkProps } from './components/Link';
|
|
40
40
|
export { Loader, type LoaderProps } from './components/Loader';
|
|
41
|
+
export { Logo, type LogoProps, type LogoSize, type LogoStyle, type LogoType, } from './components/Logo';
|
|
41
42
|
export { NavRail, NavRailBody, type NavRailBodyProps, NavRailFooter, type NavRailFooterProps, NavRailItem, type NavRailItemProps, type NavRailProps, NavRailSeparator, type NavRailSeparatorProps, } from './components/NavRail';
|
|
42
43
|
export { NumberInput, type NumberInputProps } from './components/NumberInput';
|
|
43
44
|
export { NumericBadge, type NumericBadgeProps, } from './components/NumericBadge';
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, datacenters, prox
|
|
|
27
27
|
import { Kbd, KbdGroup } from "./components/Kbd/index.js";
|
|
28
28
|
import { Link } from "./components/Link/index.js";
|
|
29
29
|
import { Loader } from "./components/Loader/index.js";
|
|
30
|
+
import { Logo } from "./components/Logo/index.js";
|
|
30
31
|
import { NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator } from "./components/NavRail/index.js";
|
|
31
32
|
import { NumberInput } from "./components/NumberInput/index.js";
|
|
32
33
|
import { NumericBadge } from "./components/NumericBadge/index.js";
|
|
@@ -58,4 +59,4 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./components/Tooltip/in
|
|
|
58
59
|
import { TopHeader, TopHeaderActions, TopHeaderLogo } from "./components/TopHeader/index.js";
|
|
59
60
|
import { Tour, beaconStepEffect, useTour, waitForStepEvent } from "./components/Tour/index.js";
|
|
60
61
|
import { TestIdProvider, useTestId } from "./utils/testId.js";
|
|
61
|
-
export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, Card, CardContent, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxGroup, CheckboxIndicator, CheckboxLabel, Code, Country, CountryFlag, CountryName, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, DateFormatProvider, DateInput, DateRangeEndValue, DateRangeInput, DateRangeProvider, DateRangeSeparator, DateRangeStartValue, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, DrawerFooterControls, DrawerHeader, DrawerPositioner, DrawerResizeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuContextTrigger, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuInput, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDescription, DropdownMenuItemIcon, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DropdownMenuTriggerItem, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterInput, FilterInputChip, FilterInputFieldMenu, FilterInputOperatorMenu, Flex, FormatDateTime, HStack, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NumberInput, NumericBadge, OverflowTooltip, OverflowTooltipContent, ParameterPath, Popover, PopoverContent, PopoverTrigger, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, ResponseCode, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaViewport, SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator, SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, Selection, SelectionAll, SelectionBulkBar, SelectionItem, Separator, Skeleton, SplitButton, Stack, Switch, SwitchControl, SwitchDescription, SwitchLabel, Table, TableActionBar, TableEmptyState, TableSettingsMenu, Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, Tag, TagClose, TestIdProvider, Text, Textarea, ThemeProvider, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, VStack, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useTestId, useTheme, useTour, waitForStepEvent };
|
|
62
|
+
export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, Card, CardContent, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxGroup, CheckboxIndicator, CheckboxLabel, Code, Country, CountryFlag, CountryName, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, DateFormatProvider, DateInput, DateRangeEndValue, DateRangeInput, DateRangeProvider, DateRangeSeparator, DateRangeStartValue, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, DrawerFooterControls, DrawerHeader, DrawerPositioner, DrawerResizeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuContextTrigger, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuInput, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDescription, DropdownMenuItemIcon, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DropdownMenuTriggerItem, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterInput, FilterInputChip, FilterInputFieldMenu, FilterInputOperatorMenu, Flex, FormatDateTime, HStack, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, Logo, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NumberInput, NumericBadge, OverflowTooltip, OverflowTooltipContent, ParameterPath, Popover, PopoverContent, PopoverTrigger, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, ResponseCode, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaViewport, SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator, SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, Selection, SelectionAll, SelectionBulkBar, SelectionItem, Separator, Skeleton, SplitButton, Stack, Switch, SwitchControl, SwitchDescription, SwitchLabel, Table, TableActionBar, TableEmptyState, TableSettingsMenu, Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, Tag, TagClose, TestIdProvider, Text, Textarea, ThemeProvider, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, VStack, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useTestId, useTheme, useTour, waitForStepEvent };
|