@sfgov/design-system 3.0.1 → 3.0.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.
|
@@ -5,7 +5,7 @@ import { ClassNameValue } from 'tailwind-merge';
|
|
|
5
5
|
type AnyComponent<P = unknown> = ElementType | ComponentType<P>
|
|
6
6
|
|
|
7
7
|
declare const Wrapper: _tw_classed_react.ClassedComponentType<"div", Partial<{
|
|
8
|
-
level:
|
|
8
|
+
level: 1 | 2 | 3 | "1" | "2" | "3" | undefined;
|
|
9
9
|
}>, Pick<{
|
|
10
10
|
base: string;
|
|
11
11
|
variants: {
|
|
@@ -17,7 +17,7 @@ declare const Wrapper: _tw_classed_react.ClassedComponentType<"div", Partial<{
|
|
|
17
17
|
};
|
|
18
18
|
}, "variants" | "defaultVariants" | "dataAttributes">>;
|
|
19
19
|
declare const BrandedDivider: _tw_classed_react.ClassedComponentType<_tw_classed_react.ClassedComponentType<"div", {}, {}>, Partial<{
|
|
20
|
-
level:
|
|
20
|
+
level: 1 | 2 | 3 | "1" | "2" | "3" | undefined;
|
|
21
21
|
}>, Pick<{
|
|
22
22
|
base: string;
|
|
23
23
|
variants: {
|
|
@@ -54,7 +54,7 @@ declare const BUTTON_VARIANTS: {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
declare const Button: _tw_classed_react.ClassedComponentType<"button", Partial<{
|
|
57
|
-
readonly variant: "
|
|
57
|
+
readonly variant: "primary" | "large" | "secondary" | "tertiary" | "link" | undefined;
|
|
58
58
|
readonly block: boolean | "true" | "false" | undefined;
|
|
59
59
|
}>, Pick<{
|
|
60
60
|
readonly base: string;
|
|
@@ -274,7 +274,7 @@ declare const TEXT_CLASSES: Readonly<{
|
|
|
274
274
|
}>;
|
|
275
275
|
type TextVariant = keyof typeof TEXT_CLASSES;
|
|
276
276
|
declare const Text: _tw_classed_react.ClassedComponentType<AnyComponent, Partial<{
|
|
277
|
-
variant: "
|
|
277
|
+
variant: "body" | "label" | "small" | "headingXs" | "headingSm" | "headingMd" | "headingLg" | "headingLgListItem" | "headingXl" | "headingXlSans" | "headingXXl" | "displayLg" | "displayXXXl" | "mono" | "labelXs" | "labelSm" | "labelMd" | undefined;
|
|
278
278
|
romanType: "serif" | "sans" | undefined;
|
|
279
279
|
}>, Pick<{
|
|
280
280
|
variants: {
|
|
@@ -5,7 +5,7 @@ import { ClassNameValue } from 'tailwind-merge';
|
|
|
5
5
|
type AnyComponent<P = unknown> = ElementType | ComponentType<P>
|
|
6
6
|
|
|
7
7
|
declare const Wrapper: _tw_classed_react.ClassedComponentType<"div", Partial<{
|
|
8
|
-
level:
|
|
8
|
+
level: 1 | 2 | 3 | "1" | "2" | "3" | undefined;
|
|
9
9
|
}>, Pick<{
|
|
10
10
|
base: string;
|
|
11
11
|
variants: {
|
|
@@ -17,7 +17,7 @@ declare const Wrapper: _tw_classed_react.ClassedComponentType<"div", Partial<{
|
|
|
17
17
|
};
|
|
18
18
|
}, "variants" | "defaultVariants" | "dataAttributes">>;
|
|
19
19
|
declare const BrandedDivider: _tw_classed_react.ClassedComponentType<_tw_classed_react.ClassedComponentType<"div", {}, {}>, Partial<{
|
|
20
|
-
level:
|
|
20
|
+
level: 1 | 2 | 3 | "1" | "2" | "3" | undefined;
|
|
21
21
|
}>, Pick<{
|
|
22
22
|
base: string;
|
|
23
23
|
variants: {
|
|
@@ -54,7 +54,7 @@ declare const BUTTON_VARIANTS: {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
declare const Button: _tw_classed_react.ClassedComponentType<"button", Partial<{
|
|
57
|
-
readonly variant: "
|
|
57
|
+
readonly variant: "primary" | "large" | "secondary" | "tertiary" | "link" | undefined;
|
|
58
58
|
readonly block: boolean | "true" | "false" | undefined;
|
|
59
59
|
}>, Pick<{
|
|
60
60
|
readonly base: string;
|
|
@@ -274,7 +274,7 @@ declare const TEXT_CLASSES: Readonly<{
|
|
|
274
274
|
}>;
|
|
275
275
|
type TextVariant = keyof typeof TEXT_CLASSES;
|
|
276
276
|
declare const Text: _tw_classed_react.ClassedComponentType<AnyComponent, Partial<{
|
|
277
|
-
variant: "
|
|
277
|
+
variant: "body" | "label" | "small" | "headingXs" | "headingSm" | "headingMd" | "headingLg" | "headingLgListItem" | "headingXl" | "headingXlSans" | "headingXXl" | "displayLg" | "displayXXXl" | "mono" | "labelXs" | "labelSm" | "labelMd" | undefined;
|
|
278
278
|
romanType: "serif" | "sans" | undefined;
|
|
279
279
|
}>, Pick<{
|
|
280
280
|
variants: {
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/react/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyComponent, B as BUTTON_VARIANTS, a as BodyText, b as BrandedDivider, c as BrandedHeading, d as BrandedHeadingProps, e as Button, f as ButtonProps, C as ClassifiableElement, g as Container, h as ContainerProps, D as DisplayLg, j as DisplayXXXl, G as Grid, k as GridProps, H as HeadingDivider, l as HeadingLg, m as HeadingLgListItem, n as HeadingMd, o as HeadingSm, p as HeadingXXl, q as HeadingXl, r as HeadingXlSans, s as HeadingXs, I as IconAccessibility, t as IconAccount, u as IconAdditional, v as IconAlertCircle, w as IconApplications, x as IconArchive, y as IconArrowDown, z as IconArrowLeft, E as IconArrowRight, F as IconArrowUp, J as IconBluesky, K as IconBusiness, L as IconCalendar, M as IconCash, N as IconCaution, O as IconCheck, P as IconChecklist, Q as IconCheckmark, R as IconChevronDown, S as IconChevronLeft, T as IconChevronRight, U as IconChevronUp, V as IconClipboard, W as IconClock, X as IconCloseQuote, Y as IconCreditCard, Z as IconCriticalAlert, _ as IconCriticalSitewideAlert, $ as IconDashboard, a0 as IconData, a1 as IconDelete, a2 as IconDocument, a3 as IconDownload, a4 as IconEmail, a5 as IconEnvelope, a6 as IconExternalLink, a7 as IconFacebook, a8 as IconFilter, a9 as IconFloppy, aa as IconFog, ab as IconFolderClosed, ac as IconFolderOpen, ad as IconForm, ae as IconGlobe, af as IconGrid, ag as IconHamburger, ah as IconHome, ai as IconImage, aj as IconInfo, ak as IconInfoAlert, al as IconInfoSitewideAlert, am as IconInstagram, an as IconKeyboard, ao as IconLanguages, ap as IconLinkedin, aq as IconLocation, ar as IconLock, as as IconMinus, at as IconMore, au as IconNotification, av as IconOpenQuote, aw as IconPage, ax as IconParking, ay as IconPause, az as IconPencil, aA as IconPhone, aB as IconPlus, aC as IconPrinter, aD as IconProfile, aE as IconQuestion, aF as IconSearch, aG as IconSend, aH as IconSettings, aI as IconShare, aJ as IconSpin, aK as IconThreads, aL as IconThumbsDown, aM as IconThumbsUp, aN as IconTiktok, aO as IconTrafficCone, aP as IconTranscript, aQ as IconTransportation, aR as IconTwitter, aS as IconUpload, aT as IconVideo, aU as IconWarning, aV as IconX, aW as IconYoutube, aX as ImageHeader, aY as ImageHeaderProps, aZ as LINK_COLOR_CLASSES, a_ as Label, a$ as LabelMd, b0 as LabelSm, b1 as LabelXs, b2 as Link, b3 as LinkProps, b4 as Monospace, b5 as PageHeader, b6 as PageHeaderProps, b7 as PageLabel, b8 as PageLabelProps, b9 as QuickLink, ba as QuickLinkProps, bb as QuickLinkSet, bc as QuickLinkSetProps, bd as SmallText, be as StackedContainer, bf as StackedContainerProps, bg as StackedItem, bh as StackedItemProps, bi as TEXT_CLASSES, bj as Text, bk as TextProps, bl as TextVariant, bm as Tile, bn as TileProps, bo as TileSection, bp as TileSectionProps, bq as TileSet, br as TileSetProps, bs as classed, bt as classes, bu as classify } from '../index-
|
|
1
|
+
export { A as AnyComponent, B as BUTTON_VARIANTS, a as BodyText, b as BrandedDivider, c as BrandedHeading, d as BrandedHeadingProps, e as Button, f as ButtonProps, C as ClassifiableElement, g as Container, h as ContainerProps, D as DisplayLg, j as DisplayXXXl, G as Grid, k as GridProps, H as HeadingDivider, l as HeadingLg, m as HeadingLgListItem, n as HeadingMd, o as HeadingSm, p as HeadingXXl, q as HeadingXl, r as HeadingXlSans, s as HeadingXs, I as IconAccessibility, t as IconAccount, u as IconAdditional, v as IconAlertCircle, w as IconApplications, x as IconArchive, y as IconArrowDown, z as IconArrowLeft, E as IconArrowRight, F as IconArrowUp, J as IconBluesky, K as IconBusiness, L as IconCalendar, M as IconCash, N as IconCaution, O as IconCheck, P as IconChecklist, Q as IconCheckmark, R as IconChevronDown, S as IconChevronLeft, T as IconChevronRight, U as IconChevronUp, V as IconClipboard, W as IconClock, X as IconCloseQuote, Y as IconCreditCard, Z as IconCriticalAlert, _ as IconCriticalSitewideAlert, $ as IconDashboard, a0 as IconData, a1 as IconDelete, a2 as IconDocument, a3 as IconDownload, a4 as IconEmail, a5 as IconEnvelope, a6 as IconExternalLink, a7 as IconFacebook, a8 as IconFilter, a9 as IconFloppy, aa as IconFog, ab as IconFolderClosed, ac as IconFolderOpen, ad as IconForm, ae as IconGlobe, af as IconGrid, ag as IconHamburger, ah as IconHome, ai as IconImage, aj as IconInfo, ak as IconInfoAlert, al as IconInfoSitewideAlert, am as IconInstagram, an as IconKeyboard, ao as IconLanguages, ap as IconLinkedin, aq as IconLocation, ar as IconLock, as as IconMinus, at as IconMore, au as IconNotification, av as IconOpenQuote, aw as IconPage, ax as IconParking, ay as IconPause, az as IconPencil, aA as IconPhone, aB as IconPlus, aC as IconPrinter, aD as IconProfile, aE as IconQuestion, aF as IconSearch, aG as IconSend, aH as IconSettings, aI as IconShare, aJ as IconSpin, aK as IconThreads, aL as IconThumbsDown, aM as IconThumbsUp, aN as IconTiktok, aO as IconTrafficCone, aP as IconTranscript, aQ as IconTransportation, aR as IconTwitter, aS as IconUpload, aT as IconVideo, aU as IconWarning, aV as IconX, aW as IconYoutube, aX as ImageHeader, aY as ImageHeaderProps, aZ as LINK_COLOR_CLASSES, a_ as Label, a$ as LabelMd, b0 as LabelSm, b1 as LabelXs, b2 as Link, b3 as LinkProps, b4 as Monospace, b5 as PageHeader, b6 as PageHeaderProps, b7 as PageLabel, b8 as PageLabelProps, b9 as QuickLink, ba as QuickLinkProps, bb as QuickLinkSet, bc as QuickLinkSetProps, bd as SmallText, be as StackedContainer, bf as StackedContainerProps, bg as StackedItem, bh as StackedItemProps, bi as TEXT_CLASSES, bj as Text, bk as TextProps, bl as TextVariant, bm as Tile, bn as TileProps, bo as TileSection, bp as TileSectionProps, bq as TileSet, br as TileSetProps, bs as classed, bt as classes, bu as classify } from '../index-DHiPgahK.mjs';
|
|
2
2
|
import * as _tw_classed_react from '@tw-classed/react';
|
|
3
3
|
export { _tw_classed_react as Classed };
|
|
4
4
|
export { ComponentType, ElementType } from 'react';
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyComponent, B as BUTTON_VARIANTS, a as BodyText, b as BrandedDivider, c as BrandedHeading, d as BrandedHeadingProps, e as Button, f as ButtonProps, C as ClassifiableElement, g as Container, h as ContainerProps, D as DisplayLg, j as DisplayXXXl, G as Grid, k as GridProps, H as HeadingDivider, l as HeadingLg, m as HeadingLgListItem, n as HeadingMd, o as HeadingSm, p as HeadingXXl, q as HeadingXl, r as HeadingXlSans, s as HeadingXs, I as IconAccessibility, t as IconAccount, u as IconAdditional, v as IconAlertCircle, w as IconApplications, x as IconArchive, y as IconArrowDown, z as IconArrowLeft, E as IconArrowRight, F as IconArrowUp, J as IconBluesky, K as IconBusiness, L as IconCalendar, M as IconCash, N as IconCaution, O as IconCheck, P as IconChecklist, Q as IconCheckmark, R as IconChevronDown, S as IconChevronLeft, T as IconChevronRight, U as IconChevronUp, V as IconClipboard, W as IconClock, X as IconCloseQuote, Y as IconCreditCard, Z as IconCriticalAlert, _ as IconCriticalSitewideAlert, $ as IconDashboard, a0 as IconData, a1 as IconDelete, a2 as IconDocument, a3 as IconDownload, a4 as IconEmail, a5 as IconEnvelope, a6 as IconExternalLink, a7 as IconFacebook, a8 as IconFilter, a9 as IconFloppy, aa as IconFog, ab as IconFolderClosed, ac as IconFolderOpen, ad as IconForm, ae as IconGlobe, af as IconGrid, ag as IconHamburger, ah as IconHome, ai as IconImage, aj as IconInfo, ak as IconInfoAlert, al as IconInfoSitewideAlert, am as IconInstagram, an as IconKeyboard, ao as IconLanguages, ap as IconLinkedin, aq as IconLocation, ar as IconLock, as as IconMinus, at as IconMore, au as IconNotification, av as IconOpenQuote, aw as IconPage, ax as IconParking, ay as IconPause, az as IconPencil, aA as IconPhone, aB as IconPlus, aC as IconPrinter, aD as IconProfile, aE as IconQuestion, aF as IconSearch, aG as IconSend, aH as IconSettings, aI as IconShare, aJ as IconSpin, aK as IconThreads, aL as IconThumbsDown, aM as IconThumbsUp, aN as IconTiktok, aO as IconTrafficCone, aP as IconTranscript, aQ as IconTransportation, aR as IconTwitter, aS as IconUpload, aT as IconVideo, aU as IconWarning, aV as IconX, aW as IconYoutube, aX as ImageHeader, aY as ImageHeaderProps, aZ as LINK_COLOR_CLASSES, a_ as Label, a$ as LabelMd, b0 as LabelSm, b1 as LabelXs, b2 as Link, b3 as LinkProps, b4 as Monospace, b5 as PageHeader, b6 as PageHeaderProps, b7 as PageLabel, b8 as PageLabelProps, b9 as QuickLink, ba as QuickLinkProps, bb as QuickLinkSet, bc as QuickLinkSetProps, bd as SmallText, be as StackedContainer, bf as StackedContainerProps, bg as StackedItem, bh as StackedItemProps, bi as TEXT_CLASSES, bj as Text, bk as TextProps, bl as TextVariant, bm as Tile, bn as TileProps, bo as TileSection, bp as TileSectionProps, bq as TileSet, br as TileSetProps, bs as classed, bt as classes, bu as classify } from '../index-
|
|
1
|
+
export { A as AnyComponent, B as BUTTON_VARIANTS, a as BodyText, b as BrandedDivider, c as BrandedHeading, d as BrandedHeadingProps, e as Button, f as ButtonProps, C as ClassifiableElement, g as Container, h as ContainerProps, D as DisplayLg, j as DisplayXXXl, G as Grid, k as GridProps, H as HeadingDivider, l as HeadingLg, m as HeadingLgListItem, n as HeadingMd, o as HeadingSm, p as HeadingXXl, q as HeadingXl, r as HeadingXlSans, s as HeadingXs, I as IconAccessibility, t as IconAccount, u as IconAdditional, v as IconAlertCircle, w as IconApplications, x as IconArchive, y as IconArrowDown, z as IconArrowLeft, E as IconArrowRight, F as IconArrowUp, J as IconBluesky, K as IconBusiness, L as IconCalendar, M as IconCash, N as IconCaution, O as IconCheck, P as IconChecklist, Q as IconCheckmark, R as IconChevronDown, S as IconChevronLeft, T as IconChevronRight, U as IconChevronUp, V as IconClipboard, W as IconClock, X as IconCloseQuote, Y as IconCreditCard, Z as IconCriticalAlert, _ as IconCriticalSitewideAlert, $ as IconDashboard, a0 as IconData, a1 as IconDelete, a2 as IconDocument, a3 as IconDownload, a4 as IconEmail, a5 as IconEnvelope, a6 as IconExternalLink, a7 as IconFacebook, a8 as IconFilter, a9 as IconFloppy, aa as IconFog, ab as IconFolderClosed, ac as IconFolderOpen, ad as IconForm, ae as IconGlobe, af as IconGrid, ag as IconHamburger, ah as IconHome, ai as IconImage, aj as IconInfo, ak as IconInfoAlert, al as IconInfoSitewideAlert, am as IconInstagram, an as IconKeyboard, ao as IconLanguages, ap as IconLinkedin, aq as IconLocation, ar as IconLock, as as IconMinus, at as IconMore, au as IconNotification, av as IconOpenQuote, aw as IconPage, ax as IconParking, ay as IconPause, az as IconPencil, aA as IconPhone, aB as IconPlus, aC as IconPrinter, aD as IconProfile, aE as IconQuestion, aF as IconSearch, aG as IconSend, aH as IconSettings, aI as IconShare, aJ as IconSpin, aK as IconThreads, aL as IconThumbsDown, aM as IconThumbsUp, aN as IconTiktok, aO as IconTrafficCone, aP as IconTranscript, aQ as IconTransportation, aR as IconTwitter, aS as IconUpload, aT as IconVideo, aU as IconWarning, aV as IconX, aW as IconYoutube, aX as ImageHeader, aY as ImageHeaderProps, aZ as LINK_COLOR_CLASSES, a_ as Label, a$ as LabelMd, b0 as LabelSm, b1 as LabelXs, b2 as Link, b3 as LinkProps, b4 as Monospace, b5 as PageHeader, b6 as PageHeaderProps, b7 as PageLabel, b8 as PageLabelProps, b9 as QuickLink, ba as QuickLinkProps, bb as QuickLinkSet, bc as QuickLinkSetProps, bd as SmallText, be as StackedContainer, bf as StackedContainerProps, bg as StackedItem, bh as StackedItemProps, bi as TEXT_CLASSES, bj as Text, bk as TextProps, bl as TextVariant, bm as Tile, bn as TileProps, bo as TileSection, bp as TileSectionProps, bq as TileSet, br as TileSetProps, bs as classed, bt as classes, bu as classify } from '../index-DHiPgahK.js';
|
|
2
2
|
import * as _tw_classed_react from '@tw-classed/react';
|
|
3
3
|
export { _tw_classed_react as Classed };
|
|
4
4
|
export { ComponentType, ElementType } from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfgov/design-system",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"repository": "SFDigitalServices/design-system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"@figma-export/transform-svg-with-svgo": "^6.0.2",
|
|
145
145
|
"@figma-export/types": "^6.0.0",
|
|
146
146
|
"@formio/choices.js": "^10.2.1",
|
|
147
|
-
"@fullhuman/postcss-purgecss": "^
|
|
147
|
+
"@fullhuman/postcss-purgecss": "^9.1.0",
|
|
148
148
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
149
149
|
"@testing-library/jest-dom": "^5.16.5",
|
|
150
150
|
"@testing-library/react": "14.0.0",
|
|
@@ -162,10 +162,10 @@
|
|
|
162
162
|
"chokidar-cli": "^3.0.0",
|
|
163
163
|
"cssnano": "^7.0.6",
|
|
164
164
|
"cssnano-preset-advanced": "^7.0.6",
|
|
165
|
-
"eslint": "^10.
|
|
165
|
+
"eslint": "^10.15.0",
|
|
166
166
|
"eslint-config-prettier": "^10.1.8",
|
|
167
167
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
168
|
-
"eslint-plugin-import-x": "^4.
|
|
168
|
+
"eslint-plugin-import-x": "^4.18.1",
|
|
169
169
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
170
170
|
"formiojs": "^4.21.8",
|
|
171
171
|
"globals": "^17.14.0",
|
|
@@ -192,6 +192,6 @@
|
|
|
192
192
|
"tsup": "^9.0.0",
|
|
193
193
|
"tsx": "^4.23.15",
|
|
194
194
|
"typescript": "~5.4.5",
|
|
195
|
-
"typescript-eslint": "^8.
|
|
195
|
+
"typescript-eslint": "^8.73.0"
|
|
196
196
|
}
|
|
197
197
|
}
|