@dnanpm/ui-components 0.4.0 → 0.6.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.
Files changed (70) hide show
  1. package/README.md +3 -1
  2. package/dist/components/Accordion/Accordion.css +4 -4
  3. package/dist/components/Accordion/Accordion.module.css.cjs +3 -3
  4. package/dist/components/Accordion/Accordion.module.css.js +3 -3
  5. package/dist/components/AccordionItem/AccordionItem.css +18 -18
  6. package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
  7. package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
  8. package/dist/components/Breadcrumb/Breadcrumb.css +11 -12
  9. package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
  10. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
  11. package/dist/components/Button/Button.cjs +3 -1
  12. package/dist/components/Button/Button.cjs.map +1 -1
  13. package/dist/components/Button/Button.css +33 -33
  14. package/dist/components/Button/Button.d.ts.map +1 -1
  15. package/dist/components/Button/Button.js +3 -1
  16. package/dist/components/Button/Button.js.map +1 -1
  17. package/dist/components/Button/Button.module.css.cjs +11 -11
  18. package/dist/components/Button/Button.module.css.js +11 -11
  19. package/dist/components/Hero/Hero.cjs +29 -38
  20. package/dist/components/Hero/Hero.cjs.map +1 -1
  21. package/dist/components/Hero/Hero.css +64 -60
  22. package/dist/components/Hero/Hero.d.ts.map +1 -1
  23. package/dist/components/Hero/Hero.js +29 -38
  24. package/dist/components/Hero/Hero.js.map +1 -1
  25. package/dist/components/Hero/Hero.module.css.cjs +20 -19
  26. package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
  27. package/dist/components/Hero/Hero.module.css.js +20 -19
  28. package/dist/components/Hero/Hero.module.css.js.map +1 -1
  29. package/dist/components/Hero/Hero.types.d.ts +1 -5
  30. package/dist/components/Hero/Hero.types.d.ts.map +1 -1
  31. package/dist/components/Hero/Hero.utils.cjs +2 -1
  32. package/dist/components/Hero/Hero.utils.cjs.map +1 -1
  33. package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
  34. package/dist/components/Hero/Hero.utils.js +2 -1
  35. package/dist/components/Hero/Hero.utils.js.map +1 -1
  36. package/dist/components/IconButton/IconButton.cjs +123 -0
  37. package/dist/components/IconButton/IconButton.cjs.map +1 -0
  38. package/dist/components/IconButton/IconButton.css +181 -0
  39. package/dist/components/IconButton/IconButton.d.ts +3 -0
  40. package/dist/components/IconButton/IconButton.d.ts.map +1 -0
  41. package/dist/components/IconButton/IconButton.js +123 -0
  42. package/dist/components/IconButton/IconButton.js.map +1 -0
  43. package/dist/components/IconButton/IconButton.module.css.cjs +15 -0
  44. package/dist/components/IconButton/IconButton.module.css.cjs.map +1 -0
  45. package/dist/components/IconButton/IconButton.module.css.js +16 -0
  46. package/dist/components/IconButton/IconButton.module.css.js.map +1 -0
  47. package/dist/components/IconButton/IconButton.types.d.ts +57 -0
  48. package/dist/components/IconButton/IconButton.types.d.ts.map +1 -0
  49. package/dist/components/IconButton/index.d.ts +3 -0
  50. package/dist/components/IconButton/index.d.ts.map +1 -0
  51. package/dist/components/Label/Label.css +13 -8
  52. package/dist/components/Label/Label.module.css.cjs +7 -7
  53. package/dist/components/Label/Label.module.css.js +7 -7
  54. package/dist/components/Notification/Notification.css +14 -14
  55. package/dist/components/Notification/Notification.module.css.cjs +9 -9
  56. package/dist/components/Notification/Notification.module.css.js +9 -9
  57. package/dist/index.cjs +2 -0
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +2 -0
  62. package/dist/index.js.map +1 -1
  63. package/dist/styles/utils/elevation.css +20 -17
  64. package/dist/styles/utils/elevation.module.css.cjs +4 -4
  65. package/dist/styles/utils/elevation.module.css.js +4 -4
  66. package/dist/styles/utils/focus.css +14 -14
  67. package/dist/styles/utils/focus.module.css.cjs +3 -3
  68. package/dist/styles/utils/focus.module.css.js +3 -3
  69. package/dist/styles.css +117 -85
  70. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ require('./IconButton.css');
2
+ "use strict";
3
+ const styles = {
4
+ "icon-button": "_icon-button_1iv9h_1",
5
+ "icon-button--normal": "_icon-button--normal_1iv9h_23",
6
+ "icon-button--small": "_icon-button--small_1iv9h_28",
7
+ "icon-button__label": "_icon-button__label_1iv9h_33",
8
+ "icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
9
+ "icon-button__icon": "_icon-button__icon_1iv9h_53",
10
+ "icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
11
+ "icon-button--disabled": "_icon-button--disabled_1iv9h_111",
12
+ "icon-button--loading": "_icon-button--loading_1iv9h_112"
13
+ };
14
+ module.exports = styles;
15
+ //# sourceMappingURL=IconButton.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ import './IconButton.css';
2
+ const styles = {
3
+ "icon-button": "_icon-button_1iv9h_1",
4
+ "icon-button--normal": "_icon-button--normal_1iv9h_23",
5
+ "icon-button--small": "_icon-button--small_1iv9h_28",
6
+ "icon-button__label": "_icon-button__label_1iv9h_33",
7
+ "icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
8
+ "icon-button__icon": "_icon-button__icon_1iv9h_53",
9
+ "icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
10
+ "icon-button--disabled": "_icon-button--disabled_1iv9h_111",
11
+ "icon-button--loading": "_icon-button--loading_1iv9h_112"
12
+ };
13
+ export {
14
+ styles as default
15
+ };
16
+ //# sourceMappingURL=IconButton.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,57 @@
1
+ import { ComponentPropsWithRef, ComponentType, ReactNode, SVGProps } from 'react';
2
+ export type IconPosition = 'start' | 'end';
3
+ export type IconButtonSize = 'normal' | 'small';
4
+ export type IconButtonLabelBehavior = 'truncate' | 'wrap';
5
+ export type Icon = ComponentType<SVGProps<SVGSVGElement>>;
6
+ export interface IconButtonLinkProps extends ComponentPropsWithRef<'a'> {
7
+ readonly href: string;
8
+ readonly children: ReactNode;
9
+ }
10
+ type IconButtonBaseProps = {
11
+ /** Visible label content used as the button/link accessible name. */
12
+ readonly children: ReactNode;
13
+ /** Icon component (for example, `ChevronRight` from `@dnanpm/icons`). */
14
+ readonly icon: Icon;
15
+ /**
16
+ * Position of the icon relative to label text.
17
+ * @default 'start'
18
+ */
19
+ readonly iconPosition?: IconPosition;
20
+ /**
21
+ * Controls how the text label behaves in narrow layouts.
22
+ * @default 'truncate'
23
+ */
24
+ readonly labelBehavior?: IconButtonLabelBehavior;
25
+ /**
26
+ * Size variant controlling typography and icon size.
27
+ * @default 'normal'
28
+ */
29
+ readonly size?: IconButtonSize;
30
+ /**
31
+ * Whether the button is in a loading state.
32
+ * Label stays visible while icon slot shows a spinner.
33
+ * @default false
34
+ */
35
+ readonly loading?: boolean;
36
+ /**
37
+ * Applies link coloring to text and icon.
38
+ * @default false
39
+ */
40
+ readonly linkColoring?: boolean;
41
+ };
42
+ export type IconButtonAsButton = IconButtonBaseProps & Omit<ComponentPropsWithRef<'button'>, keyof IconButtonBaseProps> & {
43
+ readonly href?: never;
44
+ readonly target?: never;
45
+ readonly rel?: never;
46
+ readonly renderLink?: never;
47
+ };
48
+ export type IconButtonAsAnchor = IconButtonBaseProps & Omit<ComponentPropsWithRef<'a'>, keyof IconButtonBaseProps> & {
49
+ readonly href: string;
50
+ readonly disabled?: never;
51
+ readonly type?: never;
52
+ readonly name?: never;
53
+ readonly renderLink?: (props: IconButtonLinkProps) => ReactNode;
54
+ };
55
+ export type IconButtonProps = IconButtonAsButton | IconButtonAsAnchor;
56
+ export {};
57
+ //# sourceMappingURL=IconButton.types.d.ts.map
@@ -0,0 +1 @@
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tB,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;CAC/B,CAAC;AAEN,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAChD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,mBAAmB,CAAC,GAAG;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,SAAS,CAAC;CACnE,CAAC;AAEN,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { IconButton } from './IconButton';
2
+ export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './IconButton.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,GACjB,MAAM,oBAAoB,CAAC"}
@@ -1,9 +1,14 @@
1
- @layer dds-components {._label_1bsev_1 {
1
+ @layer dds-components {._label_7ugso_1 {
2
+ --_label-height: 22px;
3
+
2
4
  display: inline-block;
5
+ height: var(--_label-height);
3
6
  max-width: 100%;
4
- padding: var(--spacing-ui-xxs) var(--spacing-ui-lg);
7
+ padding: 0 var(--spacing-space-20);
5
8
  border-radius: var(--radius-semantic-full);
6
9
  font: var(--typography-label-md-bold);
10
+ /* exception: override line-height from font shorthand to lock height (22px) — prevents element height drift when text truncates */
11
+ line-height: var(--_label-height);
7
12
  text-align: center;
8
13
  text-transform: uppercase;
9
14
  white-space: nowrap;
@@ -12,27 +17,27 @@
12
17
  color: var(--color-semantic-foreground-default);
13
18
  }
14
19
 
15
- ._label--default_1bsev_15 {
20
+ ._label--default_7ugso_20 {
16
21
  background-color: var(--color-semantic-surface-base);
17
22
  }
18
23
 
19
- ._label--campaign_1bsev_19 {
24
+ ._label--campaign_7ugso_24 {
20
25
  background-color: var(--color-semantic-surface-primary-mid);
21
26
  }
22
27
 
23
- ._label--new_1bsev_23 {
28
+ ._label--new_7ugso_28 {
24
29
  background-color: var(--color-semantic-accent-lemon-strong);
25
30
  }
26
31
 
27
- ._label--presale_1bsev_27 {
32
+ ._label--presale_7ugso_32 {
28
33
  background-color: var(--color-semantic-accent-orange-strong);
29
34
  }
30
35
 
31
- ._label--soldout_1bsev_31 {
36
+ ._label--soldout_7ugso_36 {
32
37
  background-color: var(--color-semantic-surface-neutral-strong);
33
38
  }
34
39
 
35
- ._label--other_1bsev_35 {
40
+ ._label--other_7ugso_40 {
36
41
  background-color: var(--color-semantic-accent-sky-strong);
37
42
  }
38
43
  }
@@ -1,15 +1,15 @@
1
1
  require('./Label.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const label = "_label_1bsev_1";
4
+ const label = "_label_7ugso_1";
5
5
  const styles = {
6
6
  label,
7
- "label--default": "_label--default_1bsev_15",
8
- "label--campaign": "_label--campaign_1bsev_19",
9
- "label--new": "_label--new_1bsev_23",
10
- "label--presale": "_label--presale_1bsev_27",
11
- "label--soldout": "_label--soldout_1bsev_31",
12
- "label--other": "_label--other_1bsev_35"
7
+ "label--default": "_label--default_7ugso_20",
8
+ "label--campaign": "_label--campaign_7ugso_24",
9
+ "label--new": "_label--new_7ugso_28",
10
+ "label--presale": "_label--presale_7ugso_32",
11
+ "label--soldout": "_label--soldout_7ugso_36",
12
+ "label--other": "_label--other_7ugso_40"
13
13
  };
14
14
  exports.default = styles;
15
15
  exports.label = label;
@@ -1,13 +1,13 @@
1
1
  import './Label.css';
2
- const label = "_label_1bsev_1";
2
+ const label = "_label_7ugso_1";
3
3
  const styles = {
4
4
  label,
5
- "label--default": "_label--default_1bsev_15",
6
- "label--campaign": "_label--campaign_1bsev_19",
7
- "label--new": "_label--new_1bsev_23",
8
- "label--presale": "_label--presale_1bsev_27",
9
- "label--soldout": "_label--soldout_1bsev_31",
10
- "label--other": "_label--other_1bsev_35"
5
+ "label--default": "_label--default_7ugso_20",
6
+ "label--campaign": "_label--campaign_7ugso_24",
7
+ "label--new": "_label--new_7ugso_28",
8
+ "label--presale": "_label--presale_7ugso_32",
9
+ "label--soldout": "_label--soldout_7ugso_36",
10
+ "label--other": "_label--other_7ugso_40"
11
11
  };
12
12
  export {
13
13
  styles as default,
@@ -5,35 +5,35 @@
5
5
  * These variables come from @dnanpm/design-tokens package.
6
6
  */
7
7
 
8
- ._notification_5h3rs_8 {
8
+ ._notification_m746g_8 {
9
9
  display: flex;
10
10
  align-items: center;
11
- gap: var(--spacing-ui-md);
12
- padding-right: var(--spacing-ui-lg);
11
+ gap: var(--spacing-space-16);
12
+ padding-right: var(--spacing-space-20);
13
13
  border: 2px solid var(--notification-color);
14
14
  border-radius: var(--radius-semantic-sm);
15
15
  overflow: clip;
16
16
  }
17
17
 
18
18
  /* Variant colors */
19
- ._notification--info_5h3rs_19 {
19
+ ._notification--info_m746g_19 {
20
20
  --notification-color: var(--color-semantic-status-info);
21
21
  }
22
22
 
23
- ._notification--success_5h3rs_23 {
23
+ ._notification--success_m746g_23 {
24
24
  --notification-color: var(--color-semantic-status-success);
25
25
  }
26
26
 
27
- ._notification--warning_5h3rs_27 {
27
+ ._notification--warning_m746g_27 {
28
28
  --notification-color: var(--color-semantic-status-warning);
29
29
  }
30
30
 
31
- ._notification--error_5h3rs_31 {
31
+ ._notification--error_m746g_31 {
32
32
  --notification-color: var(--color-semantic-status-error);
33
33
  }
34
34
 
35
35
  /* Icon container */
36
- ._notification__icon-container_5h3rs_36 {
36
+ ._notification__icon-container_m746g_36 {
37
37
  /* The colored area size should be 48x48px on one line content, so we adjust padding based on whether the border is present or not */
38
38
  --_icon-padding-with-border: 10px;
39
39
  --_icon-padding-without-border: 12px;
@@ -49,24 +49,24 @@
49
49
  color: var(--color-semantic-foreground-inverse);
50
50
  }
51
51
 
52
- ._notification__icon_5h3rs_36 {
52
+ ._notification__icon_m746g_36 {
53
53
  width: 24px;
54
54
  height: 24px;
55
55
  flex: 0 0 auto;
56
56
  }
57
57
 
58
58
  /* Content */
59
- ._notification__content_5h3rs_59 {
59
+ ._notification__content_m746g_59 {
60
60
  flex: 1 1 auto;
61
61
  min-width: 0;
62
- padding: var(--spacing-ui-xs) 0;
62
+ padding: var(--spacing-space-8) 0;
63
63
  font: var(--typography-body-md);
64
64
  color: var(--color-semantic-foreground-default);
65
65
  text-wrap: pretty;
66
66
  }
67
67
 
68
68
  /* Close button */
69
- ._notification__close_5h3rs_69 {
69
+ ._notification__close_m746g_69 {
70
70
  flex: 0 0 auto;
71
71
  display: flex;
72
72
  align-items: center;
@@ -75,7 +75,7 @@
75
75
  height: 32px;
76
76
  padding: 0;
77
77
  /* Negative margin to offset the button's size and maintain consistent spacing with the content */
78
- margin: 0 calc(var(--spacing-ui-xxs) * -1);
78
+ margin: 0 calc(var(--spacing-space-4) * -1);
79
79
  border: none;
80
80
  border-radius: var(--radius-semantic-sm);
81
81
  background: none;
@@ -83,7 +83,7 @@
83
83
  cursor: pointer;
84
84
  }
85
85
 
86
- ._notification__close_5h3rs_69 svg {
86
+ ._notification__close_m746g_69 svg {
87
87
  width: 24px;
88
88
  height: 24px;
89
89
  }
@@ -1,17 +1,17 @@
1
1
  require('./Notification.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const notification = "_notification_5h3rs_8";
5
- const notification__icon = "_notification__icon_5h3rs_36";
6
- const notification__content = "_notification__content_5h3rs_59";
7
- const notification__close = "_notification__close_5h3rs_69";
4
+ const notification = "_notification_m746g_8";
5
+ const notification__icon = "_notification__icon_m746g_36";
6
+ const notification__content = "_notification__content_m746g_59";
7
+ const notification__close = "_notification__close_m746g_69";
8
8
  const styles = {
9
9
  notification,
10
- "notification--info": "_notification--info_5h3rs_19",
11
- "notification--success": "_notification--success_5h3rs_23",
12
- "notification--warning": "_notification--warning_5h3rs_27",
13
- "notification--error": "_notification--error_5h3rs_31",
14
- "notification__icon-container": "_notification__icon-container_5h3rs_36",
10
+ "notification--info": "_notification--info_m746g_19",
11
+ "notification--success": "_notification--success_m746g_23",
12
+ "notification--warning": "_notification--warning_m746g_27",
13
+ "notification--error": "_notification--error_m746g_31",
14
+ "notification__icon-container": "_notification__icon-container_m746g_36",
15
15
  notification__icon,
16
16
  notification__content,
17
17
  notification__close
@@ -1,15 +1,15 @@
1
1
  import './Notification.css';
2
- const notification = "_notification_5h3rs_8";
3
- const notification__icon = "_notification__icon_5h3rs_36";
4
- const notification__content = "_notification__content_5h3rs_59";
5
- const notification__close = "_notification__close_5h3rs_69";
2
+ const notification = "_notification_m746g_8";
3
+ const notification__icon = "_notification__icon_m746g_36";
4
+ const notification__content = "_notification__content_m746g_59";
5
+ const notification__close = "_notification__close_m746g_69";
6
6
  const styles = {
7
7
  notification,
8
- "notification--info": "_notification--info_5h3rs_19",
9
- "notification--success": "_notification--success_5h3rs_23",
10
- "notification--warning": "_notification--warning_5h3rs_27",
11
- "notification--error": "_notification--error_5h3rs_31",
12
- "notification__icon-container": "_notification__icon-container_5h3rs_36",
8
+ "notification--info": "_notification--info_m746g_19",
9
+ "notification--success": "_notification--success_m746g_23",
10
+ "notification--warning": "_notification--warning_m746g_27",
11
+ "notification--error": "_notification--error_m746g_31",
12
+ "notification__icon-container": "_notification__icon-container_m746g_36",
13
13
  notification__icon,
14
14
  notification__content,
15
15
  notification__close
package/dist/index.cjs CHANGED
@@ -7,6 +7,7 @@ const Breadcrumb = require("./components/Breadcrumb/Breadcrumb.cjs");
7
7
  const Button = require("./components/Button/Button.cjs");
8
8
  const ColorScheme = require("./components/ColorScheme/ColorScheme.cjs");
9
9
  const Hero = require("./components/Hero/Hero.cjs");
10
+ const IconButton = require("./components/IconButton/IconButton.cjs");
10
11
  const Label = require("./components/Label/Label.cjs");
11
12
  const Notification = require("./components/Notification/Notification.cjs");
12
13
  const Pictograph = require("./components/Pictograph/Pictograph.cjs");
@@ -19,6 +20,7 @@ exports.Breadcrumb = Breadcrumb.Breadcrumb;
19
20
  exports.Button = Button.Button;
20
21
  exports.ColorScheme = ColorScheme.ColorScheme;
21
22
  exports.Hero = Hero.Hero;
23
+ exports.IconButton = IconButton.IconButton;
22
24
  exports.Label = Label.Label;
23
25
  exports.Notification = Notification.Notification;
24
26
  exports.Pictograph = Pictograph.Pictograph;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { Notification } from './components/Notification';
8
8
  export { Label } from './components/Label';
9
9
  export { Pictograph, PictographItem } from './components/Pictograph';
10
10
  export { Spinner } from './components/Spinner';
11
+ export { IconButton } from './components/IconButton';
11
12
  export type { AccordionProps } from './components/Accordion';
12
13
  export type { AccordionItemProps } from './components/AccordionItem';
13
14
  export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbProps } from './components/Breadcrumb';
@@ -18,6 +19,7 @@ export type { NotificationProps, NotificationVariant } from './components/Notifi
18
19
  export type { LabelProps, LabelVariant } from './components/Label';
19
20
  export type { PictographItemProps, PictographProps } from './components/Pictograph';
20
21
  export type { SpinnerColor, SpinnerProps, SpinnerSize } from './components/Spinner';
22
+ export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './components/IconButton';
21
23
  export { cn } from './utils';
22
24
  export type { CnDictionary, CnInput } from './utils';
23
25
  //# sourceMappingURL=index.d.ts.map
@@ -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,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpG,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnG,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACp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AE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpG,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnG,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACxF,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpF,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;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
5
5
  import { Button } from "./components/Button/Button.js";
6
6
  import { ColorScheme } from "./components/ColorScheme/ColorScheme.js";
7
7
  import { Hero } from "./components/Hero/Hero.js";
8
+ import { IconButton } from "./components/IconButton/IconButton.js";
8
9
  import { Label } from "./components/Label/Label.js";
9
10
  import { Notification } from "./components/Notification/Notification.js";
10
11
  import { Pictograph } from "./components/Pictograph/Pictograph.js";
@@ -18,6 +19,7 @@ export {
18
19
  Button,
19
20
  ColorScheme,
20
21
  Hero,
22
+ IconButton,
21
23
  Label,
22
24
  Notification,
23
25
  Pictograph,
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,26 +1,29 @@
1
- @layer dds-components {/*
2
- * TODO: Replace local variables (_elevation-semantic-low, high and extra-high)
3
- * with official design tokens once elevation tokens are added to the design token set
4
- */
5
-
6
- ._elevationLow_4gnft_6 {
7
- --_elevation-semantic-low: 0px 2px 16px 0px rgba(18, 18, 18, 0.06);
8
- --_elevation-style: var(--_elevation-semantic-low);
1
+ @layer dds-components {._elevationLow_dspr0_1 {
2
+ --_elevation-style: var(--elevation-semantic-elevation-low-offset-x)
3
+ var(--elevation-semantic-elevation-low-offset-y)
4
+ var(--elevation-semantic-elevation-low-blur) var(--elevation-semantic-elevation-low-spread)
5
+ var(--elevation-semantic-elevation-low-color);
9
6
  }
10
7
 
11
- ._elevationHigh_4gnft_11 {
12
- --_elevation-semantic-high: 0px 4px 24px 0px rgba(18, 18, 18, 0.08);
13
- --_elevation-style: var(--_elevation-semantic-high);
8
+ ._elevationMedium_dspr0_8 {
9
+ --_elevation-style: var(--elevation-semantic-elevation-medium-offset-x)
10
+ var(--elevation-semantic-elevation-medium-offset-y)
11
+ var(--elevation-semantic-elevation-medium-blur)
12
+ var(--elevation-semantic-elevation-medium-spread)
13
+ var(--elevation-semantic-elevation-medium-color);
14
14
  }
15
15
 
16
- ._elevationExtraHigh_4gnft_16 {
17
- --_elevation-semantic-extra-high: 0px 8px 64px 0px rgba(18, 18, 18, 0.16);
18
- --_elevation-style: var(--_elevation-semantic-extra-high);
16
+ ._elevationHigh_dspr0_16 {
17
+ --_elevation-style: var(--elevation-semantic-elevation-high-offset-x)
18
+ var(--elevation-semantic-elevation-high-offset-y)
19
+ var(--elevation-semantic-elevation-high-blur)
20
+ var(--elevation-semantic-elevation-high-spread)
21
+ var(--elevation-semantic-elevation-high-color);
19
22
  }
20
23
 
21
- ._elevationLow_4gnft_6,
22
- ._elevationHigh_4gnft_11,
23
- ._elevationExtraHigh_4gnft_16 {
24
+ ._elevationLow_dspr0_1,
25
+ ._elevationMedium_dspr0_8,
26
+ ._elevationHigh_dspr0_16 {
24
27
  border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
25
28
  box-shadow: var(--_elevation-style);
26
29
  border-radius: var(--radius-semantic-md);
@@ -1,13 +1,13 @@
1
1
  require('./elevation.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const elevationLow = "_elevationLow_4gnft_6";
5
- const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
4
+ const elevationLow = "_elevationLow_dspr0_1";
5
+ const elevationHigh = "_elevationHigh_dspr0_16";
6
6
  const elevationStyles = {
7
7
  elevationLow,
8
- elevationExtraHigh
8
+ elevationHigh
9
9
  };
10
10
  exports.default = elevationStyles;
11
- exports.elevationExtraHigh = elevationExtraHigh;
11
+ exports.elevationHigh = elevationHigh;
12
12
  exports.elevationLow = elevationLow;
13
13
  //# sourceMappingURL=elevation.module.css.cjs.map
@@ -1,13 +1,13 @@
1
1
  import './elevation.css';
2
- const elevationLow = "_elevationLow_4gnft_6";
3
- const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
2
+ const elevationLow = "_elevationLow_dspr0_1";
3
+ const elevationHigh = "_elevationHigh_dspr0_16";
4
4
  const elevationStyles = {
5
5
  elevationLow,
6
- elevationExtraHigh
6
+ elevationHigh
7
7
  };
8
8
  export {
9
9
  elevationStyles as default,
10
- elevationExtraHigh,
10
+ elevationHigh,
11
11
  elevationLow
12
12
  };
13
13
  //# sourceMappingURL=elevation.module.css.js.map
@@ -1,12 +1,12 @@
1
- @layer dds-components {._focusable_ikczm_1 {
1
+ @layer dds-components {._focusable_azt70_1 {
2
2
  /* Marker class for shared focus treatment */
3
3
  }
4
4
 
5
- ._focusable_ikczm_1:focus {
5
+ ._focusable_azt70_1:focus {
6
6
  outline-color: transparent;
7
7
  }
8
8
 
9
- ._focusable_ikczm_1:focus-visible {
9
+ ._focusable_azt70_1:focus-visible {
10
10
  /* Transparent outline ensures a visible ring fallback in forced colors. */
11
11
  outline: 2px solid transparent;
12
12
  outline-offset: 2px;
@@ -16,21 +16,21 @@
16
16
  }
17
17
 
18
18
  @media (forced-colors: active) {
19
- ._focusable_ikczm_1:focus-visible {
19
+ ._focusable_azt70_1:focus-visible {
20
20
  outline-color: Highlight;
21
21
  box-shadow: none;
22
22
  }
23
23
  }
24
24
 
25
- ._focusableInset_ikczm_25 {
25
+ ._focusableInset_azt70_25 {
26
26
  /* Marker class for inset focus treatment (ring stays inside the element boundary) */
27
27
  }
28
28
 
29
- ._focusableInset_ikczm_25:focus {
29
+ ._focusableInset_azt70_25:focus {
30
30
  outline-color: transparent;
31
31
  }
32
32
 
33
- ._focusableInset_ikczm_25:focus-visible {
33
+ ._focusableInset_azt70_25:focus-visible {
34
34
  outline: 2px solid transparent;
35
35
  box-shadow:
36
36
  inset 0 0 0 2px var(--color-semantic-utility-focus-strong),
@@ -38,34 +38,34 @@
38
38
  }
39
39
 
40
40
  @media (forced-colors: active) {
41
- ._focusableInset_ikczm_25:focus-visible {
41
+ ._focusableInset_azt70_25:focus-visible {
42
42
  outline-color: Highlight;
43
43
  box-shadow: none;
44
44
  }
45
45
  }
46
46
 
47
47
  @scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
48
- ._focusable_ikczm_1:focus-visible {
48
+ ._focusable_azt70_1:focus-visible {
49
49
  box-shadow:
50
50
  0 0 0 2px var(--color-semantic-utility-focus-strong),
51
51
  0 0 0 4px var(--color-semantic-utility-focus-soft);
52
52
  }
53
53
 
54
- ._focusableInset_ikczm_25:focus-visible {
54
+ ._focusableInset_azt70_25:focus-visible {
55
55
  box-shadow:
56
56
  inset 0 0 0 2px var(--color-semantic-utility-focus-soft),
57
57
  inset 0 0 0 4px var(--color-semantic-utility-focus-strong);
58
58
  }
59
59
 
60
60
  @media (forced-colors: active) {
61
- ._focusable_ikczm_1:focus-visible,
62
- ._focusableInset_ikczm_25:focus-visible {
61
+ ._focusable_azt70_1:focus-visible,
62
+ ._focusableInset_azt70_25:focus-visible {
63
63
  box-shadow: none;
64
64
  }
65
65
  }
66
66
  }
67
67
 
68
- ._focusClipGuard_ikczm_68 {
68
+ ._focusClipGuard_azt70_68 {
69
69
  /*
70
70
  * Prevents focus rings from being clipped when the container uses overflow: hidden.
71
71
  *
@@ -73,7 +73,7 @@
73
73
  * - Apply this class to the clipping container.
74
74
  * - Override --focus-clip-guard-bleed-inline when a component needs a custom bleed amount.
75
75
  */
76
- --focus-clip-guard-bleed-inline: var(--spacing-ui-xxs);
76
+ --focus-clip-guard-bleed-inline: var(--spacing-space-4);
77
77
  margin-inline: calc(var(--focus-clip-guard-bleed-inline) * -1);
78
78
  padding-inline: var(--focus-clip-guard-bleed-inline);
79
79
  }
@@ -1,9 +1,9 @@
1
1
  require('./focus.css');
2
2
  "use strict";
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const focusable = "_focusable_ikczm_1";
5
- const focusableInset = "_focusableInset_ikczm_25";
6
- const focusClipGuard = "_focusClipGuard_ikczm_68";
4
+ const focusable = "_focusable_azt70_1";
5
+ const focusableInset = "_focusableInset_azt70_25";
6
+ const focusClipGuard = "_focusClipGuard_azt70_68";
7
7
  const focusStyles = {
8
8
  focusable,
9
9
  focusableInset,
@@ -1,7 +1,7 @@
1
1
  import './focus.css';
2
- const focusable = "_focusable_ikczm_1";
3
- const focusableInset = "_focusableInset_ikczm_25";
4
- const focusClipGuard = "_focusClipGuard_ikczm_68";
2
+ const focusable = "_focusable_azt70_1";
3
+ const focusableInset = "_focusableInset_azt70_25";
4
+ const focusClipGuard = "_focusClipGuard_azt70_68";
5
5
  const focusStyles = {
6
6
  focusable,
7
7
  focusableInset,