@guardian/stand 0.0.72 → 0.0.73

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 (51) hide show
  1. package/dist/AlertBanner.d.cts +2 -2
  2. package/dist/AlertBanner.d.ts +2 -2
  3. package/dist/Grid.d.cts +2 -2
  4. package/dist/Grid.d.ts +2 -2
  5. package/dist/HtmlPreviewLoader.d.cts +3 -1
  6. package/dist/HtmlPreviewLoader.d.ts +3 -1
  7. package/dist/Pagination.cjs +5 -0
  8. package/dist/Pagination.d.cts +5 -0
  9. package/dist/Pagination.d.ts +5 -0
  10. package/dist/Pagination.js +3 -0
  11. package/dist/Typography.d.cts +2 -2
  12. package/dist/Typography.d.ts +2 -2
  13. package/dist/UserMenu.d.cts +2 -1
  14. package/dist/UserMenu.d.ts +2 -1
  15. package/dist/components/AlertBanner/styles.d.cts +3 -2
  16. package/dist/components/AlertBanner/styles.d.ts +3 -2
  17. package/dist/components/Badge/types.d.cts +1 -1
  18. package/dist/components/Badge/types.d.ts +1 -1
  19. package/dist/components/Byline/lib.cjs +0 -1
  20. package/dist/components/Byline/lib.d.cts +0 -1
  21. package/dist/components/Byline/lib.d.ts +0 -1
  22. package/dist/components/Byline/lib.js +1 -1
  23. package/dist/components/HtmlPreviewLoader/styles.d.cts +3 -2
  24. package/dist/components/HtmlPreviewLoader/styles.d.ts +3 -2
  25. package/dist/components/Pagination/Pagination.cjs +97 -0
  26. package/dist/components/Pagination/Pagination.d.cts +5 -0
  27. package/dist/components/Pagination/Pagination.d.ts +5 -0
  28. package/dist/components/Pagination/Pagination.js +97 -0
  29. package/dist/components/Pagination/lib.cjs +30 -0
  30. package/dist/components/Pagination/lib.js +28 -0
  31. package/dist/components/Pagination/styles.cjs +112 -0
  32. package/dist/components/Pagination/styles.d.cts +8 -0
  33. package/dist/components/Pagination/styles.d.ts +8 -0
  34. package/dist/components/Pagination/styles.js +105 -0
  35. package/dist/components/Pagination/types.d.cts +59 -0
  36. package/dist/components/Pagination/types.d.ts +59 -0
  37. package/dist/components/UserMenu/UserMenu.d.cts +2 -3
  38. package/dist/components/UserMenu/UserMenu.d.ts +2 -3
  39. package/dist/components/UserMenu/theme.d.cts +6 -0
  40. package/dist/components/UserMenu/theme.d.ts +6 -0
  41. package/dist/index.cjs +2 -0
  42. package/dist/index.d.cts +2 -1
  43. package/dist/index.d.ts +2 -1
  44. package/dist/index.js +2 -1
  45. package/dist/styleD/build/css/component/pagination.css +51 -0
  46. package/dist/styleD/build/typescript/component/pagination.cjs +72 -0
  47. package/dist/styleD/build/typescript/component/pagination.d.cts +75 -0
  48. package/dist/styleD/build/typescript/component/pagination.d.ts +75 -0
  49. package/dist/styleD/build/typescript/component/pagination.js +72 -0
  50. package/package.json +32 -17
  51. package/dist/styleD/build/css/component/previewFrame.css +0 -10
@@ -0,0 +1,105 @@
1
+ import { convertTypographyToEmotionStringStyle } from "../../styleD/utils/semantic/typography.js";
2
+ import { until } from "../../styleD/utils/semantic/mq.js";
3
+ import { componentPagination } from "../../styleD/build/typescript/component/pagination.js";
4
+ import { css } from "@emotion/react";
5
+ //#region src/components/Pagination/styles.ts
6
+ const defaultPaginationTheme = componentPagination;
7
+ const paginationStyles = (theme) => css`
8
+ display: ${theme.shared.display};
9
+ align-items: ${theme.shared.alignItems};
10
+ gap: ${theme.shared.gap};
11
+ `;
12
+ const listStyles = (theme, collapseBelow) => css`
13
+ display: ${theme.shared.display};
14
+ align-items: ${theme.shared.alignItems};
15
+ gap: ${theme.shared.gap};
16
+ margin: 0;
17
+ padding: 0;
18
+ list-style: none;
19
+
20
+ ${until[collapseBelow]} {
21
+ display: none;
22
+ }
23
+ `;
24
+ const itemStyles = (theme, isCurrent) => {
25
+ const item = theme.item;
26
+ const typography = isCurrent ? item.current.typography : item.typography;
27
+ return css`
28
+ display: inline-flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ box-sizing: border-box;
32
+ min-width: ${item.minWidth};
33
+ height: ${item.height};
34
+ padding: ${item.paddingY} ${item.paddingX};
35
+ border-radius: ${item.borderRadius};
36
+ border: ${item.borderWidth} ${item.borderStyle}
37
+ ${isCurrent ? item.current.borderColor : item.borderColor};
38
+ background-color: ${isCurrent ? item.current.backgroundColor : item.backgroundColor};
39
+ color: ${isCurrent ? item.current.color : item.color};
40
+ cursor: ${isCurrent ? "default" : item.cursor};
41
+ ${convertTypographyToEmotionStringStyle(typography)}
42
+
43
+ &[data-hovered]:not([aria-current='page']) {
44
+ background-color: ${item.hover.backgroundColor};
45
+ border-color: ${item.hover.borderColor};
46
+ }
47
+
48
+ &[data-pressed]:not([aria-current='page']) {
49
+ background-color: ${item.active.backgroundColor};
50
+ }
51
+
52
+ &[data-focus-visible] {
53
+ outline: ${item.focusVisible.outlineWidth} solid
54
+ ${item.focusVisible.outlineColor};
55
+ outline-offset: ${item.focusVisible.outlineOffset};
56
+ }
57
+
58
+ &[data-disabled] {
59
+ color: ${item.disabled.color};
60
+ background-color: ${item.disabled.backgroundColor};
61
+ border-color: ${item.disabled.borderColor};
62
+ cursor: ${item.disabled.cursor};
63
+ }
64
+ `;
65
+ };
66
+ const ellipsisStyles = (theme) => css`
67
+ box-sizing: border-box;
68
+ display: inline-flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: ${theme.ellipsis.minWidth};
72
+ min-width: ${theme.ellipsis.minWidth};
73
+ height: ${theme.item.height};
74
+ color: ${theme.ellipsis.color};
75
+ `;
76
+ const arrowStyles = (theme) => css`
77
+ box-sizing: border-box;
78
+ width: ${theme.item.height};
79
+ min-width: ${theme.item.height};
80
+ height: ${theme.item.height};
81
+ `;
82
+ const summaryStyles = (theme, collapseBelow) => css`
83
+ margin-left: ${theme.summary.marginLeft};
84
+ color: ${theme.summary.color};
85
+ white-space: nowrap;
86
+ ${convertTypographyToEmotionStringStyle(theme.summary.typography)}
87
+
88
+ ${until[collapseBelow]} {
89
+ display: none;
90
+ }
91
+ `;
92
+ const compactStatusStyles = (theme, collapseBelow) => css`
93
+ display: none;
94
+ flex: 1;
95
+ text-align: center;
96
+ white-space: nowrap;
97
+ color: ${theme.summary.color};
98
+ ${convertTypographyToEmotionStringStyle(theme.summary.typography)}
99
+
100
+ ${until[collapseBelow]} {
101
+ display: block;
102
+ }
103
+ `;
104
+ //#endregion
105
+ export { arrowStyles, compactStatusStyles, defaultPaginationTheme, ellipsisStyles, itemStyles, listStyles, paginationStyles, summaryStyles };
@@ -0,0 +1,59 @@
1
+ import { DefaultProps } from "../../util/types.cjs";
2
+ import { Breakpoint } from "../../styleD/utils/semantic/mq.cjs";
3
+ import { PaginationTheme } from "./styles.cjs";
4
+ import { ReactNode } from "react";
5
+ //#region src/components/Pagination/types.d.ts
6
+ interface PaginationSummaryInfo {
7
+ /** The currently active page (1-based). */
8
+ currentPage: number;
9
+ /** Total number of pages. */
10
+ totalPages: number;
11
+ /** Total number of items across all pages. */
12
+ totalItems: number;
13
+ /** Number of items shown per page. */
14
+ pageSize: number;
15
+ /** 1-based index of the first item on the current page. */
16
+ startItem: number;
17
+ /** 1-based index of the last item on the current page. */
18
+ endItem: number;
19
+ }
20
+ interface PaginationLabels {
21
+ /** Accessible label for the surrounding `nav` element. */
22
+ nav?: string;
23
+ /** Accessible label for the previous-page button. */
24
+ previous?: string;
25
+ /** Accessible label for the next-page button. */
26
+ next?: string;
27
+ /** Accessible label for a page button, given the page number. */
28
+ page?: (page: number) => string;
29
+ /** Text shown in the compact (collapsed) view below the `collapseBelow` breakpoint. */
30
+ status?: (currentPage: number, totalPages: number) => string;
31
+ }
32
+ type PaginationProps = DefaultProps<PaginationTheme> & {
33
+ /** The currently active page (1-based). */
34
+ currentPage: number;
35
+ /** Total number of items across all pages. */
36
+ totalItems: number;
37
+ /** Number of items shown per page. Used to derive the total page count. */
38
+ pageSize: number;
39
+ /** Called with the requested page number when the user navigates. */
40
+ onPageChange: (page: number) => void;
41
+ /** Number of page buttons to show either side of the current page. Defaults to 1. */
42
+ siblingCount?: number;
43
+ /** Number of page buttons to always show at the start and end. Defaults to 1. */
44
+ boundaryCount?: number;
45
+ /** Whether to render the results summary. Defaults to true. */
46
+ showSummary?: boolean;
47
+ /** Render prop to customise the results summary text. */
48
+ renderSummary?: (info: PaginationSummaryInfo) => ReactNode;
49
+ /**
50
+ * Below this breakpoint the page-number list and results summary collapse to a
51
+ * compact previous/next + "Page X of Y" view to avoid horizontal overflow.
52
+ * Defaults to 'md'.
53
+ */
54
+ collapseBelow?: Breakpoint;
55
+ /** Overrides for the accessible labels. */
56
+ labels?: PaginationLabels;
57
+ };
58
+ //#endregion
59
+ export { PaginationLabels, PaginationProps, PaginationSummaryInfo };
@@ -0,0 +1,59 @@
1
+ import { DefaultProps } from "../../util/types.js";
2
+ import { Breakpoint } from "../../styleD/utils/semantic/mq.js";
3
+ import { PaginationTheme } from "./styles.js";
4
+ import { ReactNode } from "react";
5
+ //#region src/components/Pagination/types.d.ts
6
+ interface PaginationSummaryInfo {
7
+ /** The currently active page (1-based). */
8
+ currentPage: number;
9
+ /** Total number of pages. */
10
+ totalPages: number;
11
+ /** Total number of items across all pages. */
12
+ totalItems: number;
13
+ /** Number of items shown per page. */
14
+ pageSize: number;
15
+ /** 1-based index of the first item on the current page. */
16
+ startItem: number;
17
+ /** 1-based index of the last item on the current page. */
18
+ endItem: number;
19
+ }
20
+ interface PaginationLabels {
21
+ /** Accessible label for the surrounding `nav` element. */
22
+ nav?: string;
23
+ /** Accessible label for the previous-page button. */
24
+ previous?: string;
25
+ /** Accessible label for the next-page button. */
26
+ next?: string;
27
+ /** Accessible label for a page button, given the page number. */
28
+ page?: (page: number) => string;
29
+ /** Text shown in the compact (collapsed) view below the `collapseBelow` breakpoint. */
30
+ status?: (currentPage: number, totalPages: number) => string;
31
+ }
32
+ type PaginationProps = DefaultProps<PaginationTheme> & {
33
+ /** The currently active page (1-based). */
34
+ currentPage: number;
35
+ /** Total number of items across all pages. */
36
+ totalItems: number;
37
+ /** Number of items shown per page. Used to derive the total page count. */
38
+ pageSize: number;
39
+ /** Called with the requested page number when the user navigates. */
40
+ onPageChange: (page: number) => void;
41
+ /** Number of page buttons to show either side of the current page. Defaults to 1. */
42
+ siblingCount?: number;
43
+ /** Number of page buttons to always show at the start and end. Defaults to 1. */
44
+ boundaryCount?: number;
45
+ /** Whether to render the results summary. Defaults to true. */
46
+ showSummary?: boolean;
47
+ /** Render prop to customise the results summary text. */
48
+ renderSummary?: (info: PaginationSummaryInfo) => ReactNode;
49
+ /**
50
+ * Below this breakpoint the page-number list and results summary collapse to a
51
+ * compact previous/next + "Page X of Y" view to avoid horizontal overflow.
52
+ * Defaults to 'md'.
53
+ */
54
+ collapseBelow?: Breakpoint;
55
+ /** Overrides for the accessible labels. */
56
+ labels?: PaginationLabels;
57
+ };
58
+ //#endregion
59
+ export { PaginationLabels, PaginationProps, PaginationSummaryInfo };
@@ -1,10 +1,9 @@
1
- import { DeepPartial } from "../../util/types.cjs";
2
- import { ComponentUserMenu } from "../../styleD/build/typescript/component/userMenu.cjs";
3
1
  import { Option } from "./model.cjs";
2
+ import { PartialUserMenuTheme } from "./theme.cjs";
4
3
  import { UserPreferences } from "./types.cjs";
5
4
  //#region src/components/UserMenu/UserMenu.d.ts
6
5
  interface UserMenuProps {
7
- theme?: DeepPartial<ComponentUserMenu>;
6
+ theme?: PartialUserMenuTheme;
8
7
  feedBacklink?: string;
9
8
  preferences: UserPreferences;
10
9
  updatePreferences: {
@@ -1,10 +1,9 @@
1
- import { DeepPartial } from "../../util/types.js";
2
- import { ComponentUserMenu } from "../../styleD/build/typescript/component/userMenu.js";
3
1
  import { Option } from "./model.js";
2
+ import { PartialUserMenuTheme } from "./theme.js";
4
3
  import { UserPreferences } from "./types.js";
5
4
  //#region src/components/UserMenu/UserMenu.d.ts
6
5
  interface UserMenuProps {
7
- theme?: DeepPartial<ComponentUserMenu>;
6
+ theme?: PartialUserMenuTheme;
8
7
  feedBacklink?: string;
9
8
  preferences: UserPreferences;
10
9
  updatePreferences: {
@@ -0,0 +1,6 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.cjs";
2
+ import { ComponentUserMenu } from "../../styleD/build/typescript/component/userMenu.cjs";
3
+ //#region src/components/UserMenu/theme.d.ts
4
+ type PartialUserMenuTheme = Prettify<DeepPartial<ComponentUserMenu>>;
5
+ //#endregion
6
+ export { PartialUserMenuTheme };
@@ -0,0 +1,6 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.js";
2
+ import { ComponentUserMenu } from "../../styleD/build/typescript/component/userMenu.js";
3
+ //#region src/components/UserMenu/theme.d.ts
4
+ type PartialUserMenuTheme = Prettify<DeepPartial<ComponentUserMenu>>;
5
+ //#endregion
6
+ export { PartialUserMenuTheme };
package/dist/index.cjs CHANGED
@@ -12,6 +12,7 @@ const require_autocomplete = require("./styleD/build/typescript/component/autoco
12
12
  const require_tagTable = require("./styleD/build/typescript/component/tagTable.cjs");
13
13
  const require_userMenu = require("./styleD/build/typescript/component/userMenu.cjs");
14
14
  const require_intendedAudienceSignifier = require("./styleD/build/typescript/component/intendedAudienceSignifier.cjs");
15
+ const require_pagination = require("./styleD/build/typescript/component/pagination.cjs");
15
16
  const require_toggleSwitch = require("./styleD/build/typescript/component/toggleSwitch.cjs");
16
17
  const require_favicon = require("./styleD/build/typescript/component/favicon.cjs");
17
18
  const require_datePicker = require("./styleD/build/typescript/component/datePicker.cjs");
@@ -70,6 +71,7 @@ exports.componentLayout = require_layout.componentLayout;
70
71
  exports.componentLink = require_link.componentLink;
71
72
  exports.componentMenu = require_menu.componentMenu;
72
73
  exports.componentModal = require_modal.componentModal;
74
+ exports.componentPagination = require_pagination.componentPagination;
73
75
  exports.componentRadioGroup = require_radioGroup.componentRadioGroup;
74
76
  exports.componentSelect = require_select.componentSelect;
75
77
  exports.componentSidebarStepperNavigation = require_sidebarStepperNavigation.componentSidebarStepperNavigation;
package/dist/index.d.cts CHANGED
@@ -19,6 +19,7 @@ import { ComponentLayout, componentLayout } from "./styleD/build/typescript/comp
19
19
  import { ComponentLink, componentLink } from "./styleD/build/typescript/component/link.cjs";
20
20
  import { ComponentMenu, componentMenu } from "./styleD/build/typescript/component/menu.cjs";
21
21
  import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.cjs";
22
+ import { ComponentPagination, componentPagination } from "./styleD/build/typescript/component/pagination.cjs";
22
23
  import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.cjs";
23
24
  import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.cjs";
24
25
  import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.cjs";
@@ -45,4 +46,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
45
46
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
46
47
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
47
48
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
48
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentToggleSwitch, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
49
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentPagination, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentToggleSwitch, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import { ComponentLayout, componentLayout } from "./styleD/build/typescript/comp
19
19
  import { ComponentLink, componentLink } from "./styleD/build/typescript/component/link.js";
20
20
  import { ComponentMenu, componentMenu } from "./styleD/build/typescript/component/menu.js";
21
21
  import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.js";
22
+ import { ComponentPagination, componentPagination } from "./styleD/build/typescript/component/pagination.js";
22
23
  import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
23
24
  import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.js";
24
25
  import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.js";
@@ -45,4 +46,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
45
46
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
46
47
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
47
48
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
48
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentToggleSwitch, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
49
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentPagination, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentToggleSwitch, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ import { componentAutocomplete } from "./styleD/build/typescript/component/autoc
11
11
  import { componentTagTable } from "./styleD/build/typescript/component/tagTable.js";
12
12
  import { componentUserMenu } from "./styleD/build/typescript/component/userMenu.js";
13
13
  import { componentIntendedAudienceSignifier } from "./styleD/build/typescript/component/intendedAudienceSignifier.js";
14
+ import { componentPagination } from "./styleD/build/typescript/component/pagination.js";
14
15
  import { componentToggleSwitch } from "./styleD/build/typescript/component/toggleSwitch.js";
15
16
  import { componentFavicon } from "./styleD/build/typescript/component/favicon.js";
16
17
  import { componentDatePicker } from "./styleD/build/typescript/component/datePicker.js";
@@ -45,4 +46,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
45
46
  import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
46
47
  import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
47
48
  import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
48
- export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
49
+ export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-pagination-shared-display: flex;
7
+ --component-pagination-shared-align-items: center;
8
+ --component-pagination-shared-gap: 6px;
9
+ --component-pagination-shared-margin: 0;
10
+ --component-pagination-shared-padding: 0;
11
+ --component-pagination-summary-color: #545454;
12
+ --component-pagination-summary-margin-left: 12px;
13
+ --component-pagination-summary-typography-font: normal 460 0.875rem/1.3
14
+ 'Open Sans';
15
+ --component-pagination-summary-typography-letter-spacing: 0rem;
16
+ --component-pagination-summary-typography-font-width: 95;
17
+ --component-pagination-ellipsis-min-width: 12px;
18
+ --component-pagination-ellipsis-color: #545454;
19
+ --component-pagination-item-min-width: 1.5rem;
20
+ --component-pagination-item-height: 1.5rem;
21
+ --component-pagination-item-padding-x: 2px;
22
+ --component-pagination-item-padding-y: 0; /** 0 because the item has a fixed height and flex-centers its content; vertical padding would only shrink the content box */
23
+ --component-pagination-item-border-radius: 0.25rem;
24
+ --component-pagination-item-border-width: 0.0625rem;
25
+ --component-pagination-item-border-style: solid;
26
+ --component-pagination-item-cursor: pointer;
27
+ --component-pagination-item-color: #000000;
28
+ --component-pagination-item-background-color: #ffffff;
29
+ --component-pagination-item-border-color: #cccccc;
30
+ --component-pagination-item-typography-font: normal 460 0.875rem/1.3
31
+ 'Open Sans';
32
+ --component-pagination-item-typography-letter-spacing: 0rem;
33
+ --component-pagination-item-typography-font-width: 95;
34
+ --component-pagination-item-hover-background-color: #f6f6f6;
35
+ --component-pagination-item-hover-border-color: #cccccc;
36
+ --component-pagination-item-active-background-color: #ededed;
37
+ --component-pagination-item-current-color: #ffffff;
38
+ --component-pagination-item-current-background-color: #0072a9;
39
+ --component-pagination-item-current-border-color: #0072a9;
40
+ --component-pagination-item-current-typography-font: normal 700 0.875rem/1.15
41
+ 'Open Sans';
42
+ --component-pagination-item-current-typography-letter-spacing: -0.0125rem;
43
+ --component-pagination-item-current-typography-font-width: 95;
44
+ --component-pagination-item-disabled-color: #999999;
45
+ --component-pagination-item-disabled-background-color: #dcdcdc;
46
+ --component-pagination-item-disabled-border-color: #dcdcdc;
47
+ --component-pagination-item-disabled-cursor: not-allowed;
48
+ --component-pagination-item-focus-visible-outline-color: #0072a9;
49
+ --component-pagination-item-focus-visible-outline-width: 0.125rem;
50
+ --component-pagination-item-focus-visible-outline-offset: 2px;
51
+ }
@@ -0,0 +1,72 @@
1
+ //#region src/styleD/build/typescript/component/pagination.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentPagination = {
6
+ shared: {
7
+ display: "flex",
8
+ alignItems: "center",
9
+ gap: "6px",
10
+ margin: "0",
11
+ padding: "0"
12
+ },
13
+ summary: {
14
+ color: "#545454",
15
+ marginLeft: "12px",
16
+ typography: {
17
+ font: "normal 460 0.875rem/1.3 Open Sans",
18
+ letterSpacing: "0rem",
19
+ fontWidth: 95
20
+ }
21
+ },
22
+ ellipsis: {
23
+ minWidth: "12px",
24
+ color: "#545454"
25
+ },
26
+ item: {
27
+ minWidth: "1.5rem",
28
+ height: "1.5rem",
29
+ paddingX: "2px",
30
+ paddingY: "0",
31
+ borderRadius: "0.25rem",
32
+ borderWidth: "0.0625rem",
33
+ borderStyle: "solid",
34
+ cursor: "pointer",
35
+ color: "#000000",
36
+ backgroundColor: "#ffffff",
37
+ borderColor: "#cccccc",
38
+ typography: {
39
+ font: "normal 460 0.875rem/1.3 Open Sans",
40
+ letterSpacing: "0rem",
41
+ fontWidth: 95
42
+ },
43
+ hover: {
44
+ backgroundColor: "#f6f6f6",
45
+ borderColor: "#cccccc"
46
+ },
47
+ active: { backgroundColor: "#ededed" },
48
+ current: {
49
+ color: "#ffffff",
50
+ backgroundColor: "#0072a9",
51
+ borderColor: "#0072a9",
52
+ typography: {
53
+ font: "normal 700 0.875rem/1.15 Open Sans",
54
+ letterSpacing: "-0.0125rem",
55
+ fontWidth: 95
56
+ }
57
+ },
58
+ disabled: {
59
+ color: "#999999",
60
+ backgroundColor: "#dcdcdc",
61
+ borderColor: "#dcdcdc",
62
+ cursor: "not-allowed"
63
+ },
64
+ focusVisible: {
65
+ outlineColor: "#0072a9",
66
+ outlineWidth: "0.125rem",
67
+ outlineOffset: "2px"
68
+ }
69
+ }
70
+ };
71
+ //#endregion
72
+ exports.componentPagination = componentPagination;
@@ -0,0 +1,75 @@
1
+ //#region src/styleD/build/typescript/component/pagination.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentPagination: {
6
+ shared: {
7
+ display: string;
8
+ alignItems: string;
9
+ gap: string;
10
+ margin: string;
11
+ padding: string;
12
+ };
13
+ summary: {
14
+ color: string;
15
+ marginLeft: string;
16
+ typography: {
17
+ font: string;
18
+ letterSpacing: string;
19
+ fontWidth: number;
20
+ };
21
+ };
22
+ ellipsis: {
23
+ minWidth: string;
24
+ color: string;
25
+ };
26
+ item: {
27
+ minWidth: string;
28
+ height: string;
29
+ paddingX: string;
30
+ paddingY: string;
31
+ borderRadius: string;
32
+ borderWidth: string;
33
+ borderStyle: string;
34
+ cursor: string;
35
+ color: string;
36
+ backgroundColor: string;
37
+ borderColor: string;
38
+ typography: {
39
+ font: string;
40
+ letterSpacing: string;
41
+ fontWidth: number;
42
+ };
43
+ hover: {
44
+ backgroundColor: string;
45
+ borderColor: string;
46
+ };
47
+ active: {
48
+ backgroundColor: string;
49
+ };
50
+ current: {
51
+ color: string;
52
+ backgroundColor: string;
53
+ borderColor: string;
54
+ typography: {
55
+ font: string;
56
+ letterSpacing: string;
57
+ fontWidth: number;
58
+ };
59
+ };
60
+ disabled: {
61
+ color: string;
62
+ backgroundColor: string;
63
+ borderColor: string;
64
+ cursor: string;
65
+ };
66
+ focusVisible: {
67
+ outlineColor: string;
68
+ outlineWidth: string;
69
+ outlineOffset: string;
70
+ };
71
+ };
72
+ };
73
+ type ComponentPagination = typeof componentPagination;
74
+ //#endregion
75
+ export { ComponentPagination, componentPagination };
@@ -0,0 +1,75 @@
1
+ //#region src/styleD/build/typescript/component/pagination.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentPagination: {
6
+ shared: {
7
+ display: string;
8
+ alignItems: string;
9
+ gap: string;
10
+ margin: string;
11
+ padding: string;
12
+ };
13
+ summary: {
14
+ color: string;
15
+ marginLeft: string;
16
+ typography: {
17
+ font: string;
18
+ letterSpacing: string;
19
+ fontWidth: number;
20
+ };
21
+ };
22
+ ellipsis: {
23
+ minWidth: string;
24
+ color: string;
25
+ };
26
+ item: {
27
+ minWidth: string;
28
+ height: string;
29
+ paddingX: string;
30
+ paddingY: string;
31
+ borderRadius: string;
32
+ borderWidth: string;
33
+ borderStyle: string;
34
+ cursor: string;
35
+ color: string;
36
+ backgroundColor: string;
37
+ borderColor: string;
38
+ typography: {
39
+ font: string;
40
+ letterSpacing: string;
41
+ fontWidth: number;
42
+ };
43
+ hover: {
44
+ backgroundColor: string;
45
+ borderColor: string;
46
+ };
47
+ active: {
48
+ backgroundColor: string;
49
+ };
50
+ current: {
51
+ color: string;
52
+ backgroundColor: string;
53
+ borderColor: string;
54
+ typography: {
55
+ font: string;
56
+ letterSpacing: string;
57
+ fontWidth: number;
58
+ };
59
+ };
60
+ disabled: {
61
+ color: string;
62
+ backgroundColor: string;
63
+ borderColor: string;
64
+ cursor: string;
65
+ };
66
+ focusVisible: {
67
+ outlineColor: string;
68
+ outlineWidth: string;
69
+ outlineOffset: string;
70
+ };
71
+ };
72
+ };
73
+ type ComponentPagination = typeof componentPagination;
74
+ //#endregion
75
+ export { ComponentPagination, componentPagination };