@dnanpm/ui-components 0.7.0 → 0.9.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/Accordion/Accordion.css +6 -3
- package/dist/components/AccordionItem/AccordionItem.css +6 -3
- package/dist/components/Breadcrumb/Breadcrumb.css +15 -12
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
- package/dist/components/Button/Button.css +33 -32
- package/dist/components/Button/Button.module.css.cjs +11 -11
- package/dist/components/Button/Button.module.css.js +11 -11
- package/dist/components/ButtonCard/ButtonCard.cjs +105 -0
- package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.css +166 -0
- package/dist/components/ButtonCard/ButtonCard.d.ts +3 -0
- package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.js +105 -0
- package/dist/components/ButtonCard/ButtonCard.js.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs +18 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.js +19 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.types.d.ts +103 -0
- package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -0
- package/dist/components/ButtonCard/index.d.ts +3 -0
- package/dist/components/ButtonCard/index.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.cjs +96 -0
- package/dist/components/ContentCard/ContentCard.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.css +249 -0
- package/dist/components/ContentCard/ContentCard.d.ts +3 -0
- package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.js +96 -0
- package/dist/components/ContentCard/ContentCard.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs +24 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.js +25 -0
- package/dist/components/ContentCard/ContentCard.module.css.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts +99 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts.map +1 -0
- package/dist/components/ContentCard/index.d.ts +3 -0
- package/dist/components/ContentCard/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.cjs +101 -0
- package/dist/components/Drawer/Drawer.cjs.map +1 -0
- package/dist/components/Drawer/Drawer.css +218 -0
- package/dist/components/Drawer/Drawer.d.ts +3 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +101 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/Drawer.module.css.cjs +37 -0
- package/dist/components/Drawer/Drawer.module.css.cjs.map +1 -0
- package/dist/components/Drawer/Drawer.module.css.js +37 -0
- package/dist/components/Drawer/Drawer.module.css.js.map +1 -0
- package/dist/components/Drawer/Drawer.types.d.ts +63 -0
- package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Footer/Footer.css +87 -77
- package/dist/components/Footer/Footer.module.css.cjs +39 -39
- package/dist/components/Footer/Footer.module.css.js +39 -39
- package/dist/components/FunctionButton/FunctionButton.cjs +34 -0
- package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.css +124 -0
- package/dist/components/FunctionButton/FunctionButton.d.ts +3 -0
- package/dist/components/FunctionButton/FunctionButton.d.ts.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.js +34 -0
- package/dist/components/FunctionButton/FunctionButton.js.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.cjs +11 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.cjs.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.js +12 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.js.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.types.d.ts +21 -0
- package/dist/components/FunctionButton/FunctionButton.types.d.ts.map +1 -0
- package/dist/components/FunctionButton/index.d.ts +3 -0
- package/dist/components/FunctionButton/index.d.ts.map +1 -0
- package/dist/components/Hero/Hero.cjs +24 -26
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +81 -74
- package/dist/components/Hero/Hero.js +24 -26
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +20 -17
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +20 -17
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.css +32 -34
- package/dist/components/IconButton/IconButton.module.css.cjs +9 -9
- package/dist/components/IconButton/IconButton.module.css.js +9 -9
- package/dist/components/Label/Label.css +2 -3
- package/dist/components/MainNavigation/MainNavigation.cjs +415 -120
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.css +265 -159
- package/dist/components/MainNavigation/MainNavigation.d.ts +1 -1
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.js +417 -122
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +78 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.js +78 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.types.d.ts +64 -17
- package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.cjs +20 -0
- package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts +10 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.js +20 -0
- package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -1
- package/dist/components/MainNavigation/index.d.ts +1 -1
- package/dist/components/MainNavigation/index.d.ts.map +1 -1
- package/dist/components/Modal/Modal.cjs +101 -0
- package/dist/components/Modal/Modal.cjs.map +1 -0
- package/dist/components/Modal/Modal.css +204 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +101 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.module.css.cjs +39 -0
- package/dist/components/Modal/Modal.module.css.cjs.map +1 -0
- package/dist/components/Modal/Modal.module.css.js +39 -0
- package/dist/components/Modal/Modal.module.css.js.map +1 -0
- package/dist/components/Modal/Modal.types.d.ts +62 -0
- package/dist/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/useDialogDismissal.cjs +41 -0
- package/dist/components/Modal/useDialogDismissal.cjs.map +1 -0
- package/dist/components/Modal/useDialogDismissal.d.ts +17 -0
- package/dist/components/Modal/useDialogDismissal.d.ts.map +1 -0
- package/dist/components/Modal/useDialogDismissal.js +41 -0
- package/dist/components/Modal/useDialogDismissal.js.map +1 -0
- package/dist/components/Modal/useNativeDialog.cjs +126 -0
- package/dist/components/Modal/useNativeDialog.cjs.map +1 -0
- package/dist/components/Modal/useNativeDialog.d.ts +14 -0
- package/dist/components/Modal/useNativeDialog.d.ts.map +1 -0
- package/dist/components/Modal/useNativeDialog.js +126 -0
- package/dist/components/Modal/useNativeDialog.js.map +1 -0
- package/dist/components/Notification/Notification.css +6 -3
- package/dist/components/Pictograph/Pictograph.css +6 -3
- package/dist/components/Pictograph/PictographItem.css +6 -3
- package/dist/components/Quote/Quote.css +2 -3
- package/dist/components/Spinner/Spinner.css +6 -3
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.css +2 -3
- package/dist/styles/utils/elevation.module.css.cjs +3 -0
- package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
- package/dist/styles/utils/elevation.module.css.js +4 -1
- package/dist/styles/utils/elevation.module.css.js.map +1 -1
- package/dist/styles/utils/focus.css +26 -24
- package/dist/styles/utils/focus.module.css.cjs +3 -6
- package/dist/styles/utils/focus.module.css.cjs.map +1 -1
- package/dist/styles/utils/focus.module.css.js +4 -7
- package/dist/styles/utils/focus.module.css.js.map +1 -1
- package/dist/styles/utils/overlay.css +2 -3
- package/dist/styles/utils/text-decoration.css +4 -4
- package/dist/styles/utils/text-decoration.module.css.cjs +2 -2
- package/dist/styles/utils/text-decoration.module.css.js +2 -2
- package/dist/styles.css +17 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,30 +2,40 @@ export { Accordion } from './components/Accordion';
|
|
|
2
2
|
export { AccordionItem } from './components/AccordionItem';
|
|
3
3
|
export { Breadcrumb } from './components/Breadcrumb';
|
|
4
4
|
export { Button } from './components/Button';
|
|
5
|
+
export { ButtonCard } from './components/ButtonCard';
|
|
5
6
|
export { ColorScheme } from './components/ColorScheme';
|
|
7
|
+
export { ContentCard } from './components/ContentCard';
|
|
8
|
+
export { Drawer } from './components/Drawer';
|
|
6
9
|
export { Footer } from './components/Footer';
|
|
7
10
|
export { Hero } from './components/Hero';
|
|
8
11
|
export { MainNavigation } from './components/MainNavigation';
|
|
9
12
|
export { Notification } from './components/Notification';
|
|
10
13
|
export { Label } from './components/Label';
|
|
14
|
+
export { Modal } from './components/Modal';
|
|
11
15
|
export { Pictograph, PictographItem } from './components/Pictograph';
|
|
12
16
|
export { Quote } from './components/Quote';
|
|
13
17
|
export { Spinner } from './components/Spinner';
|
|
14
18
|
export { IconButton } from './components/IconButton';
|
|
19
|
+
export { FunctionButton } from './components/FunctionButton';
|
|
15
20
|
export type { AccordionProps } from './components/Accordion';
|
|
16
21
|
export type { AccordionItemProps } from './components/AccordionItem';
|
|
17
22
|
export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbProps } from './components/Breadcrumb';
|
|
18
23
|
export type { ButtonProps, ButtonLinkProps, ButtonVariant, ButtonSize } from './components/Button';
|
|
24
|
+
export type { ButtonCardIcon, ButtonCardLinkProps, ButtonCardProps, ButtonCardSize, } from './components/ButtonCard';
|
|
19
25
|
export type { ColorSchemeProps, ColorSchemeValue } from './components/ColorScheme';
|
|
26
|
+
export type { ContentCardAppearance, ContentCardArticleProps, ContentCardDivProps, ContentCardElement, ContentCardHeadingLevel, ContentCardLiProps, ContentCardLogoBackground, ContentCardMediaKind, ContentCardMediaPosition, ContentCardMediaWidth, ContentCardProps, ContentCardSectionProps, } from './components/ContentCard';
|
|
27
|
+
export type { DrawerHeaderStyle, DrawerProps, DrawerSide, DrawerSize } from './components/Drawer';
|
|
20
28
|
export type { FooterAppLink, FooterAppLinks, FooterLanguage, FooterLink, FooterLinkMeta, FooterLinkProps, FooterMandatoryLink, FooterNavigationGroup, FooterOrganization, FooterProps, FooterRenderLink, FooterSocialLink, FooterSocialPlatform, FooterTopSectionGroup, FooterTopSectionLink, } from './components/Footer';
|
|
21
29
|
export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './components/Hero';
|
|
22
|
-
export type { MainNavigationItem, MainNavigationLink, MainNavigationOrganizationLink, MainNavigationPanel, MainNavigationProps, MainNavigationSubmenuColumn, } from './components/MainNavigation';
|
|
30
|
+
export type { MainNavigationItem, MainNavigationLanguageCode, MainNavigationLanguageLinkProps, MainNavigationLanguageOption, MainNavigationLink, MainNavigationOrganizationLink, MainNavigationPanel, MainNavigationProps, MainNavigationRenderLanguageLink, MainNavigationSubmenuColumn, } from './components/MainNavigation';
|
|
23
31
|
export type { NotificationProps, NotificationVariant } from './components/Notification';
|
|
24
32
|
export type { LabelProps, LabelVariant } from './components/Label';
|
|
33
|
+
export type { ModalHeaderStyle, ModalProps, ModalSize } from './components/Modal';
|
|
25
34
|
export type { PictographItemProps, PictographProps } from './components/Pictograph';
|
|
26
35
|
export type { QuoteProps } from './components/Quote';
|
|
27
36
|
export type { SpinnerColor, SpinnerProps, SpinnerSize } from './components/Spinner';
|
|
28
37
|
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './components/IconButton';
|
|
38
|
+
export type { FunctionButtonIcon, FunctionButtonProps, FunctionButtonSize, FunctionButtonVariant, } from './components/FunctionButton';
|
|
29
39
|
export { cn } from './utils';
|
|
30
40
|
export type { CnDictionary, CnInput } from './utils';
|
|
31
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,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AC5B,kBAAkB,EAClB,8BAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EACnB,gCAAgC,EAChC,2BAA2B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACxF,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAClF,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpF,YAAY,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,GACjB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,17 @@ import { Accordion } from "./components/Accordion/Accordion.js";
|
|
|
3
3
|
import { AccordionItem } from "./components/AccordionItem/AccordionItem.js";
|
|
4
4
|
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
5
5
|
import { Button } from "./components/Button/Button.js";
|
|
6
|
+
import { ButtonCard } from "./components/ButtonCard/ButtonCard.js";
|
|
6
7
|
import { ColorScheme } from "./components/ColorScheme/ColorScheme.js";
|
|
8
|
+
import { ContentCard } from "./components/ContentCard/ContentCard.js";
|
|
9
|
+
import { Drawer } from "./components/Drawer/Drawer.js";
|
|
7
10
|
import { Footer } from "./components/Footer/Footer.js";
|
|
11
|
+
import { FunctionButton } from "./components/FunctionButton/FunctionButton.js";
|
|
8
12
|
import { Hero } from "./components/Hero/Hero.js";
|
|
9
13
|
import { IconButton } from "./components/IconButton/IconButton.js";
|
|
10
14
|
import { Label } from "./components/Label/Label.js";
|
|
11
15
|
import { MainNavigation } from "./components/MainNavigation/MainNavigation.js";
|
|
16
|
+
import { Modal } from "./components/Modal/Modal.js";
|
|
12
17
|
import { Notification } from "./components/Notification/Notification.js";
|
|
13
18
|
import { Pictograph } from "./components/Pictograph/Pictograph.js";
|
|
14
19
|
import { PictographItem } from "./components/Pictograph/PictographItem.js";
|
|
@@ -20,12 +25,17 @@ export {
|
|
|
20
25
|
AccordionItem,
|
|
21
26
|
Breadcrumb,
|
|
22
27
|
Button,
|
|
28
|
+
ButtonCard,
|
|
23
29
|
ColorScheme,
|
|
30
|
+
ContentCard,
|
|
31
|
+
Drawer,
|
|
24
32
|
Footer,
|
|
33
|
+
FunctionButton,
|
|
25
34
|
Hero,
|
|
26
35
|
IconButton,
|
|
27
36
|
Label,
|
|
28
37
|
MainNavigation,
|
|
38
|
+
Modal,
|
|
29
39
|
Notification,
|
|
30
40
|
Pictograph,
|
|
31
41
|
PictographItem,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer dds-components {._elevationLow_dspr0_1 {
|
|
1
|
+
@layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._elevationLow_dspr0_1 {
|
|
2
2
|
--_elevation-style: var(--elevation-semantic-elevation-low-offset-x)
|
|
3
3
|
var(--elevation-semantic-elevation-low-offset-y)
|
|
4
4
|
var(--elevation-semantic-elevation-low-blur) var(--elevation-semantic-elevation-low-spread)
|
|
@@ -27,5 +27,4 @@
|
|
|
27
27
|
border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
|
|
28
28
|
box-shadow: var(--_elevation-style);
|
|
29
29
|
border-radius: var(--radius-semantic-md);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
30
|
+
} }
|
|
@@ -2,12 +2,15 @@ require('./elevation.css');
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
4
|
const elevationLow = "_elevationLow_dspr0_1";
|
|
5
|
+
const elevationMedium = "_elevationMedium_dspr0_8";
|
|
5
6
|
const elevationHigh = "_elevationHigh_dspr0_16";
|
|
6
7
|
const elevationStyles = {
|
|
7
8
|
elevationLow,
|
|
9
|
+
elevationMedium,
|
|
8
10
|
elevationHigh
|
|
9
11
|
};
|
|
10
12
|
exports.default = elevationStyles;
|
|
11
13
|
exports.elevationHigh = elevationHigh;
|
|
12
14
|
exports.elevationLow = elevationLow;
|
|
15
|
+
exports.elevationMedium = elevationMedium;
|
|
13
16
|
//# sourceMappingURL=elevation.module.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import './elevation.css';
|
|
2
2
|
const elevationLow = "_elevationLow_dspr0_1";
|
|
3
|
+
const elevationMedium = "_elevationMedium_dspr0_8";
|
|
3
4
|
const elevationHigh = "_elevationHigh_dspr0_16";
|
|
4
5
|
const elevationStyles = {
|
|
5
6
|
elevationLow,
|
|
7
|
+
elevationMedium,
|
|
6
8
|
elevationHigh
|
|
7
9
|
};
|
|
8
10
|
export {
|
|
9
11
|
elevationStyles as default,
|
|
10
12
|
elevationHigh,
|
|
11
|
-
elevationLow
|
|
13
|
+
elevationLow,
|
|
14
|
+
elevationMedium
|
|
12
15
|
};
|
|
13
16
|
//# sourceMappingURL=elevation.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
@layer dds-components
|
|
1
|
+
@layer dds-base, dds-components;
|
|
2
|
+
@layer dds-components { @layer fallback, components; }
|
|
3
|
+
@layer dds-components.fallback{
|
|
4
|
+
._focusable_1be87_1:where(:focus, :focus-visible) {
|
|
5
|
+
border-radius: var(--radius-semantic-sm);
|
|
6
|
+
}
|
|
7
|
+
._focusableInset_1be87_33:where(:focus, :focus-visible) {
|
|
8
|
+
border-radius: var(--radius-semantic-sm);
|
|
9
|
+
} }
|
|
10
|
+
@layer dds-components.components{._focusable_1be87_1 {
|
|
2
11
|
/* Marker class for shared focus treatment */
|
|
3
12
|
}
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
/* Fallback radius: components that set their own border-radius always win.
|
|
15
|
+
The postcss layer-wrap plugin hoists @layer fallback below dds-components.components. */
|
|
16
|
+
|
|
17
|
+
._focusable_1be87_1:focus {
|
|
6
18
|
outline-color: transparent;
|
|
7
19
|
}
|
|
8
20
|
|
|
9
|
-
.
|
|
21
|
+
._focusable_1be87_1:focus-visible {
|
|
10
22
|
/* Transparent outline ensures a visible ring fallback in forced colors. */
|
|
11
23
|
outline: 2px solid transparent;
|
|
12
24
|
outline-offset: 2px;
|
|
@@ -15,31 +27,22 @@
|
|
|
15
27
|
0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
16
28
|
}
|
|
17
29
|
|
|
18
|
-
._focusableRadiusSm_1dunk_18 {
|
|
19
|
-
/* Adds small border radius to focus ring surface without changing focus colors/shadows */
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
._focusableRadiusSm_1dunk_18:focus,
|
|
23
|
-
._focusableRadiusSm_1dunk_18:focus-visible {
|
|
24
|
-
border-radius: var(--radius-semantic-sm);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
30
|
@media (forced-colors: active) {
|
|
28
|
-
.
|
|
31
|
+
._focusable_1be87_1:focus-visible {
|
|
29
32
|
outline-color: Highlight;
|
|
30
33
|
box-shadow: none;
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
.
|
|
37
|
+
._focusableInset_1be87_33 {
|
|
35
38
|
/* Marker class for inset focus treatment (ring stays inside the element boundary) */
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
.
|
|
41
|
+
._focusableInset_1be87_33:focus {
|
|
39
42
|
outline-color: transparent;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
|
-
.
|
|
45
|
+
._focusableInset_1be87_33:focus-visible {
|
|
43
46
|
outline: 2px solid transparent;
|
|
44
47
|
box-shadow:
|
|
45
48
|
inset 0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
@@ -47,34 +50,34 @@
|
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
@media (forced-colors: active) {
|
|
50
|
-
.
|
|
53
|
+
._focusableInset_1be87_33:focus-visible {
|
|
51
54
|
outline-color: Highlight;
|
|
52
55
|
box-shadow: none;
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
57
|
-
.
|
|
60
|
+
._focusable_1be87_1:focus-visible {
|
|
58
61
|
box-shadow:
|
|
59
62
|
0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
60
63
|
0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
.
|
|
66
|
+
._focusableInset_1be87_33:focus-visible {
|
|
64
67
|
box-shadow:
|
|
65
68
|
inset 0 0 0 2px var(--color-semantic-utility-focus-soft),
|
|
66
69
|
inset 0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
@media (forced-colors: active) {
|
|
70
|
-
.
|
|
71
|
-
.
|
|
73
|
+
._focusable_1be87_1:focus-visible,
|
|
74
|
+
._focusableInset_1be87_33:focus-visible {
|
|
72
75
|
box-shadow: none;
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
.
|
|
80
|
+
._focusClipGuard_1be87_82 {
|
|
78
81
|
/*
|
|
79
82
|
* Prevents focus rings from being clipped when the container uses overflow: hidden.
|
|
80
83
|
*
|
|
@@ -85,5 +88,4 @@
|
|
|
85
88
|
--focus-clip-guard-bleed-inline: var(--spacing-space-4);
|
|
86
89
|
margin-inline: calc(var(--focus-clip-guard-bleed-inline) * -1);
|
|
87
90
|
padding-inline: var(--focus-clip-guard-bleed-inline);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
91
|
+
} }
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
require('./focus.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const focusable = "
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const focusClipGuard = "_focusClipGuard_1dunk_77";
|
|
4
|
+
const focusable = "_focusable_1be87_1";
|
|
5
|
+
const focusableInset = "_focusableInset_1be87_33";
|
|
6
|
+
const focusClipGuard = "_focusClipGuard_1be87_82";
|
|
8
7
|
const focusStyles = {
|
|
9
8
|
focusable,
|
|
10
|
-
focusableRadiusSm,
|
|
11
9
|
focusableInset,
|
|
12
10
|
focusClipGuard
|
|
13
11
|
};
|
|
@@ -15,5 +13,4 @@ exports.default = focusStyles;
|
|
|
15
13
|
exports.focusClipGuard = focusClipGuard;
|
|
16
14
|
exports.focusable = focusable;
|
|
17
15
|
exports.focusableInset = focusableInset;
|
|
18
|
-
exports.focusableRadiusSm = focusableRadiusSm;
|
|
19
16
|
//# sourceMappingURL=focus.module.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focus.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import './focus.css';
|
|
2
|
-
const focusable = "
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const focusClipGuard = "_focusClipGuard_1dunk_77";
|
|
2
|
+
const focusable = "_focusable_1be87_1";
|
|
3
|
+
const focusableInset = "_focusableInset_1be87_33";
|
|
4
|
+
const focusClipGuard = "_focusClipGuard_1be87_82";
|
|
6
5
|
const focusStyles = {
|
|
7
6
|
focusable,
|
|
8
|
-
focusableRadiusSm,
|
|
9
7
|
focusableInset,
|
|
10
8
|
focusClipGuard
|
|
11
9
|
};
|
|
@@ -13,7 +11,6 @@ export {
|
|
|
13
11
|
focusStyles as default,
|
|
14
12
|
focusClipGuard,
|
|
15
13
|
focusable,
|
|
16
|
-
focusableInset
|
|
17
|
-
focusableRadiusSm
|
|
14
|
+
focusableInset
|
|
18
15
|
};
|
|
19
16
|
//# sourceMappingURL=focus.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focus.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer dds-components {._overlayStrong_1w2h3_1::before,
|
|
1
|
+
@layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._overlayStrong_1w2h3_1::before,
|
|
2
2
|
._overlaySoft_1w2h3_2::before {
|
|
3
3
|
content: '';
|
|
4
4
|
position: fixed;
|
|
@@ -33,5 +33,4 @@
|
|
|
33
33
|
|
|
34
34
|
._overlaySoft_1w2h3_2::before {
|
|
35
35
|
background: var(--color-semantic-utility-overlay-soft);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
36
|
+
} }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@layer dds-components {.
|
|
1
|
+
@layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._underlineLink_15fbp_1 {
|
|
2
2
|
text-decoration: underline;
|
|
3
3
|
text-underline-offset: 0.2em;
|
|
4
4
|
text-decoration-skip-ink: auto;
|
|
5
5
|
text-decoration-thickness: from-font;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
._underlineLinkOnHover_15fbp_8:hover,
|
|
9
|
+
._underlineLinkOnHover_15fbp_8:focus-visible {
|
|
9
10
|
text-decoration: underline;
|
|
10
11
|
text-underline-offset: 0.2em;
|
|
11
12
|
text-decoration-skip-ink: auto;
|
|
12
13
|
text-decoration-thickness: from-font;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
14
|
+
} }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('./text-decoration.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const underlineLink = "
|
|
5
|
-
const underlineLinkOnHover = "
|
|
4
|
+
const underlineLink = "_underlineLink_15fbp_1";
|
|
5
|
+
const underlineLinkOnHover = "_underlineLinkOnHover_15fbp_8";
|
|
6
6
|
const textDecorationStyles = {
|
|
7
7
|
underlineLink,
|
|
8
8
|
underlineLinkOnHover
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './text-decoration.css';
|
|
2
|
-
const underlineLink = "
|
|
3
|
-
const underlineLinkOnHover = "
|
|
2
|
+
const underlineLink = "_underlineLink_15fbp_1";
|
|
3
|
+
const underlineLinkOnHover = "_underlineLinkOnHover_15fbp_8";
|
|
4
4
|
const textDecorationStyles = {
|
|
5
5
|
underlineLink,
|
|
6
6
|
underlineLinkOnHover
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
@layer dds-base, dds-components;
|
|
3
|
+
/* Establish top-level layer priority before anything else so the base prelude
|
|
4
|
+
and component chunks agree on order regardless of which loads first in a
|
|
5
|
+
chunked runtime (e.g. Next.js + Turbopack). CSS registers layer priority by
|
|
6
|
+
first appearance, so declaring both names here keeps dds-base < dds-components
|
|
7
|
+
deterministic. A layer-name statement is permitted before @import. */
|
|
8
|
+
@layer dds-base{
|
|
2
9
|
|
|
3
10
|
/**
|
|
4
11
|
* Do not edit directly, this file was auto-generated.
|
|
@@ -161,8 +168,7 @@
|
|
|
161
168
|
--elevation-semantic-elevation-high-spread: 0px;
|
|
162
169
|
}
|
|
163
170
|
}
|
|
164
|
-
|
|
165
|
-
@layer dds-base {
|
|
171
|
+
@layer dds-base{
|
|
166
172
|
|
|
167
173
|
/* ==========================================================================
|
|
168
174
|
Extended typography tokens (hand-authored, CSS only)
|
|
@@ -261,8 +267,7 @@
|
|
|
261
267
|
var(--typography-font-family-text-with-fallback);
|
|
262
268
|
}
|
|
263
269
|
}
|
|
264
|
-
|
|
265
|
-
@layer dds-base {
|
|
270
|
+
@layer dds-base{
|
|
266
271
|
|
|
267
272
|
*,
|
|
268
273
|
*::before,
|
|
@@ -303,8 +308,7 @@ video {
|
|
|
303
308
|
max-width: 100%;
|
|
304
309
|
}
|
|
305
310
|
}
|
|
306
|
-
|
|
307
|
-
@layer dds-base {
|
|
311
|
+
@layer dds-base{
|
|
308
312
|
|
|
309
313
|
/* ==========================================================================
|
|
310
314
|
Base typography styles
|
|
@@ -480,3 +484,9 @@ ol {
|
|
|
480
484
|
}
|
|
481
485
|
}
|
|
482
486
|
}
|
|
487
|
+
/* Sublayer order within dds-components: fallback declarations (e.g. the shared
|
|
488
|
+
focus-ring radius) sit below component styles so components always override
|
|
489
|
+
them, regardless of stylesheet load order. */
|
|
490
|
+
@layer dds-components {
|
|
491
|
+
@layer fallback, components;
|
|
492
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnanpm/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "DNA Design System - React UI Components",
|
|
5
5
|
"author": "DNA Oy",
|
|
6
6
|
"license": "ISC",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
},
|
|
87
87
|
"repository": {
|
|
88
88
|
"type": "git",
|
|
89
|
-
"url": "https://
|
|
89
|
+
"url": "https://dnae.ghe.com/dna/dna-design-system.git",
|
|
90
90
|
"directory": "packages/ui-components"
|
|
91
91
|
},
|
|
92
|
-
"homepage": "https://
|
|
92
|
+
"homepage": "https://dnae.ghe.com/dna/dna-design-system/tree/main/packages/ui-components#readme"
|
|
93
93
|
}
|