@timmbr/ui 1.4.0 → 1.4.2
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/NavFooter/index.d.ts +4 -0
- package/dist/components/NavFooter/index.d.ts.map +1 -1
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +2 -0
- package/dist/components/Text/Text.styles.d.ts +1 -0
- package/dist/components/Text/Text.styles.d.ts.map +1 -1
- package/dist/components/Text/Text.styles.js +7 -1
- package/dist/components/Text/Text.types.d.ts +5 -0
- package/dist/components/Text/Text.types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/package.json +4 -4
|
@@ -1 +1,5 @@
|
|
|
1
|
+
export { Footer, NavFooter } from './NavFooter';
|
|
2
|
+
export type { NavFooterBranding, NavFooterLegalConfig, NavFooterLinkItem, NavFooterMobileConfig, NavFooterNavigationConfig, NavFooterNewsletterConfig, NavFooterOfficeConfig, NavFooterProps, NavFooterSection, NavFooterSocialConfig, NavFooterSocialLink, } from './NavFooter.types';
|
|
3
|
+
export { footerLegalBarVariants, footerLegalLinkVariants, footerNavLinkVariants, footerOfficeBlockVariants, footerSectionTitleVariants, footerSocialButtonVariants, navFooterContainerVariants, navFooterRootVariants, } from './NavFooter.styles';
|
|
4
|
+
export { DEFAULT_FOOTER_LEGAL_LINKS, DEFAULT_FOOTER_SECTIONS, DEFAULT_FOOTER_SOCIAL_LINKS, isCrossZoneNavigation, resolveNavDestination, } from './NavFooter.helpers';
|
|
1
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavFooter/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,+
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,+EAyChB,CAAC"}
|
|
@@ -12,6 +12,7 @@ const Text = React.forwardRef(
|
|
|
12
12
|
as = "p",
|
|
13
13
|
variant = "body-1",
|
|
14
14
|
foreground = "default",
|
|
15
|
+
font = "sans",
|
|
15
16
|
weight,
|
|
16
17
|
italic,
|
|
17
18
|
asChild = false,
|
|
@@ -30,6 +31,7 @@ const Text = React.forwardRef(
|
|
|
30
31
|
textVariants({
|
|
31
32
|
variant,
|
|
32
33
|
foreground,
|
|
34
|
+
font,
|
|
33
35
|
weight,
|
|
34
36
|
italic,
|
|
35
37
|
className
|
|
@@ -2,6 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
export declare const textVariants: (props?: ({
|
|
3
3
|
variant?: "caption" | "body-1" | "body-2" | "body-2-medium" | "body-2-semibold" | "body-2-light" | "body-3" | "body-3-light" | "subtitle-1" | "subtitle-2" | null | undefined;
|
|
4
4
|
foreground?: "default" | "destructive" | "inherit" | "white" | "subtle" | "primary" | "secondary" | "muted" | null | undefined;
|
|
5
|
+
font?: "title" | "display" | "sans" | null | undefined;
|
|
5
6
|
weight?: "bold" | "normal" | "medium" | "light" | "semibold" | null | undefined;
|
|
6
7
|
italic?: boolean | null | undefined;
|
|
7
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;;;;;8EA8CvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -24,6 +24,11 @@ const textVariants = cva("font-sans transition-colors leading-[1.3]", {
|
|
|
24
24
|
white: "text-white",
|
|
25
25
|
inherit: "text-inherit"
|
|
26
26
|
},
|
|
27
|
+
font: {
|
|
28
|
+
sans: "font-sans",
|
|
29
|
+
display: "font-display",
|
|
30
|
+
title: "font-title"
|
|
31
|
+
},
|
|
27
32
|
weight: {
|
|
28
33
|
light: "font-light",
|
|
29
34
|
normal: "font-normal",
|
|
@@ -38,7 +43,8 @@ const textVariants = cva("font-sans transition-colors leading-[1.3]", {
|
|
|
38
43
|
},
|
|
39
44
|
defaultVariants: {
|
|
40
45
|
variant: "body-1",
|
|
41
|
-
foreground: "default"
|
|
46
|
+
foreground: "default",
|
|
47
|
+
font: "sans"
|
|
42
48
|
}
|
|
43
49
|
});
|
|
44
50
|
|
|
@@ -11,6 +11,11 @@ export interface TextProps extends React.HTMLAttributes<HTMLElement>, TextVarian
|
|
|
11
11
|
* If true, renders child element via Radix Slot while applying text styles.
|
|
12
12
|
*/
|
|
13
13
|
asChild?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Typographic font family ('sans' uses Manrope; 'display' uses DM Serif Display; 'title' uses Outfit).
|
|
16
|
+
* @default 'sans'
|
|
17
|
+
*/
|
|
18
|
+
font?: 'sans' | 'display' | 'title';
|
|
14
19
|
/**
|
|
15
20
|
* Font weight override.
|
|
16
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.types.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC;AAEnC,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACvC,YAAY;IACd;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,WAAW,GACX,aAAa,GACb,OAAO,GACP,SAAS,CAAC;CACf"}
|
|
1
|
+
{"version":3,"file":"Text.types.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC;AAEnC,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACvC,YAAY;IACd;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,WAAW,GACX,aAAa,GACb,OAAO,GACP,SAAS,CAAC;CACf"}
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './components/Tooltip';
|
|
|
25
25
|
export * from './components/Tabs';
|
|
26
26
|
export * from './components/SideBarNavigation';
|
|
27
27
|
export * from './components/NavHeader';
|
|
28
|
+
export * from './components/NavFooter';
|
|
28
29
|
export * from './components/Button';
|
|
29
30
|
export * from './components/LinkButton';
|
|
30
31
|
export * from './components/Accordion';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"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Ac,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export { Checkbox } from './components/Checkbox/Checkbox.js';
|
|
|
12
12
|
export { Chip } from './components/Chip/Chip.js';
|
|
13
13
|
export { Container } from './components/Container/Container.js';
|
|
14
14
|
export { DEFAULT_ALL_ACCEPT, DEFAULT_IMAGE_ACCEPT, DEFAULT_IMAGE_MAX_SIZE, DEFAULT_VIDEO_ACCEPT, DEFAULT_VIDEO_MAX_SIZE, GRID_COLS_MAP, VIDEO_EXTENSIONS, isVideoMedia, normalizeUploadItems, validateUploadFiles } from './components/ImageUpload/ImageUpload.helpers.js';
|
|
15
|
+
export { DEFAULT_FOOTER_LEGAL_LINKS, DEFAULT_FOOTER_SECTIONS, DEFAULT_FOOTER_SOCIAL_LINKS, isCrossZoneNavigation, resolveNavDestination } from './components/NavFooter/NavFooter.helpers.js';
|
|
15
16
|
export { DEFAULT_STORAGE_KEY, isNavItemActive, isRouteActive, readStoredCollapsed, writeStoredCollapsed } from './components/SideBarNavigation/SideBarNavigation.helpers.js';
|
|
16
17
|
export { DataList, DataListItem, DataListLabel, DataListValue } from './components/DataList/DataList.js';
|
|
17
18
|
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/Dialog/Dialog.js';
|
|
@@ -20,6 +21,7 @@ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, Dr
|
|
|
20
21
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/Dropdown/Dropdown.js';
|
|
21
22
|
export { EmptyState } from './components/EmptyState/EmptyState.js';
|
|
22
23
|
export { FilmIcon, ImageIcon, PlayIcon, UploadCloudIcon } from './components/ImageUpload/subcomponents/ImageUploadIcons.js';
|
|
24
|
+
export { Footer, NavFooter } from './components/NavFooter/NavFooter.js';
|
|
23
25
|
export { FormField } from './components/FormField/FormField.js';
|
|
24
26
|
export { Grid } from './components/Grid/Grid.js';
|
|
25
27
|
export { Header, NavHeader } from './components/NavHeader/NavHeader.js';
|
|
@@ -88,6 +90,7 @@ export { dividerVariants } from './components/Divider/Divider.styles.js';
|
|
|
88
90
|
export { drawerContentVariants, drawerFooterVariants, drawerHeaderVariants, drawerOverlayVariants } from './components/Drawer/Drawer.styles.js';
|
|
89
91
|
export { dropdownContentVariants, dropdownItemVariants } from './components/Dropdown/Dropdown.styles.js';
|
|
90
92
|
export { emptyStateIconWrapperVariants, emptyStateVariants } from './components/EmptyState/EmptyState.styles.js';
|
|
93
|
+
export { footerLegalBarVariants, footerLegalLinkVariants, footerNavLinkVariants, footerOfficeBlockVariants, footerSectionTitleVariants, footerSocialButtonVariants, navFooterContainerVariants, navFooterRootVariants } from './components/NavFooter/NavFooter.styles.js';
|
|
91
94
|
export { formFieldVariants } from './components/FormField/FormField.styles.js';
|
|
92
95
|
export { headingVariants } from './components/Heading/Heading.styles.js';
|
|
93
96
|
export { iconVariants } from './components/Icon/Icon.styles.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmbr/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "High-performance, Next.js App Router-compatible UI design system components for Timmbr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@radix-ui/react-toast": "^1.2.23",
|
|
42
42
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
43
43
|
"class-variance-authority": "^0.7.1",
|
|
44
|
-
"@timmbr/motion": "1.2.0",
|
|
45
|
-
"@timmbr/icons": "1.2.1",
|
|
46
44
|
"@timmbr/hooks": "1.0.0-beta",
|
|
45
|
+
"@timmbr/icons": "1.2.1",
|
|
47
46
|
"@timmbr/theme": "1.2.0",
|
|
48
|
-
"@timmbr/utils": "1.2.0"
|
|
47
|
+
"@timmbr/utils": "1.2.0",
|
|
48
|
+
"@timmbr/motion": "1.2.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"next": ">=13.0.0 || >=14.0.0 || >=15.0.0 || >=16.0.0",
|