@fpkit/acss 0.4.19 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/libs/chunk-TBM2QIVT.js +8 -0
  2. package/libs/chunk-TBM2QIVT.js.map +1 -0
  3. package/libs/chunk-VAH6X2DZ.cjs +31 -0
  4. package/libs/chunk-VAH6X2DZ.cjs.map +1 -0
  5. package/libs/components/badge/badge.css +1 -1
  6. package/libs/components/badge/badge.css.map +1 -1
  7. package/libs/components/badge/badge.min.css +2 -2
  8. package/libs/components/buttons/button.css +1 -1
  9. package/libs/components/buttons/button.css.map +1 -1
  10. package/libs/components/buttons/button.min.css +2 -2
  11. package/libs/components/cards/card.css +1 -1
  12. package/libs/components/cards/card.css.map +1 -1
  13. package/libs/components/cards/card.min.css +2 -2
  14. package/libs/components/details/details.css +1 -1
  15. package/libs/components/details/details.css.map +1 -1
  16. package/libs/components/details/details.min.css +2 -2
  17. package/libs/components/icons/icon.css +1 -1
  18. package/libs/components/icons/icon.css.map +1 -1
  19. package/libs/components/icons/icon.min.css +2 -2
  20. package/libs/{icons-1f5afc0c.d.ts → icons-2f29127c.d.ts} +32 -1
  21. package/libs/icons.cjs +2 -2
  22. package/libs/icons.d.cts +1 -1
  23. package/libs/icons.d.ts +1 -1
  24. package/libs/icons.js +1 -1
  25. package/libs/index.cjs +37 -37
  26. package/libs/index.cjs.map +1 -1
  27. package/libs/index.css +1 -1
  28. package/libs/index.css.map +1 -1
  29. package/libs/index.d.cts +8 -5
  30. package/libs/index.d.ts +8 -5
  31. package/libs/index.js +6 -6
  32. package/libs/index.js.map +1 -1
  33. package/package.json +3 -2
  34. package/src/components/badge/badge.scss +1 -0
  35. package/src/components/badge/badge.stories.tsx +3 -3
  36. package/src/components/breadcrumbs/breadcrumb.stories.tsx +26 -10
  37. package/src/components/breadcrumbs/breadcrumb.tsx +48 -40
  38. package/src/components/buttons/button.scss +3 -4
  39. package/src/components/buttons/button.stories.tsx +50 -28
  40. package/src/components/buttons/button.test.tsx +1 -1
  41. package/src/components/buttons/button.tsx +31 -4
  42. package/src/components/cards/card.scss +5 -3
  43. package/src/components/cards/card.stories.tsx +4 -4
  44. package/src/components/cards/card.tsx +0 -1
  45. package/src/components/details/details.scss +12 -3
  46. package/src/components/details/details.stories.tsx +20 -4
  47. package/src/components/details/details.tsx +2 -1
  48. package/src/components/form/form.stories.tsx +2 -2
  49. package/src/components/form/input.stories.tsx +2 -2
  50. package/src/components/form/select.stories.tsx +2 -2
  51. package/src/components/form/select.tsx +23 -33
  52. package/src/components/fp.test.tsx +1 -1
  53. package/src/components/heading/heading.stories.tsx +2 -2
  54. package/src/components/heading/heading.tsx +2 -2
  55. package/src/components/icons/components/svg.tsx +1 -0
  56. package/src/components/icons/icon.scss +2 -0
  57. package/src/components/icons/icon.stories.tsx +23 -3
  58. package/src/components/icons/icon.tsx +11 -0
  59. package/src/components/icons/types.ts +1 -1
  60. package/src/components/images/figure.stories.tsx +3 -6
  61. package/src/components/images/img.stories.tsx +3 -3
  62. package/src/components/layout/footer.stories.tsx +2 -2
  63. package/src/components/layout/landmarks.stories.tsx +2 -2
  64. package/src/components/layout/main.stories.tsx +2 -2
  65. package/src/components/link/link.stories.tsx +2 -2
  66. package/src/components/list/list.stories.tsx +7 -2
  67. package/src/components/nav/nav.stories.tsx +4 -3
  68. package/src/components/popover/popover.stories.tsx +2 -2
  69. package/src/components/progress/progress.stories.tsx +2 -2
  70. package/src/components/tag/tag.stories.tsx +3 -3
  71. package/src/components/text/text.stories.tsx +6 -6
  72. package/src/patterns/page/page-header.stories.tsx +2 -2
  73. package/src/sass/_globals.scss +9 -7
  74. package/src/styles/badge/badge.css +1 -0
  75. package/src/styles/badge/badge.css.map +1 -1
  76. package/src/styles/buttons/button.css +3 -3
  77. package/src/styles/buttons/button.css.map +1 -1
  78. package/src/styles/cards/card.css +2 -3
  79. package/src/styles/cards/card.css.map +1 -1
  80. package/src/styles/details/details.css +11 -3
  81. package/src/styles/details/details.css.map +1 -1
  82. package/src/styles/icons/icon.css +2 -0
  83. package/src/styles/icons/icon.css.map +1 -1
  84. package/src/styles/index.css +26 -16
  85. package/src/styles/index.css.map +1 -1
  86. package/LICENSE +0 -21
  87. package/dist/chunk-77CZU5XZ.cjs +0 -9
  88. package/dist/chunk-77CZU5XZ.cjs.map +0 -1
  89. package/dist/chunk-D43FJIRQ.cjs +0 -31
  90. package/dist/chunk-D43FJIRQ.cjs.map +0 -1
  91. package/dist/chunk-GJWMCDFS.js +0 -9
  92. package/dist/chunk-GJWMCDFS.js.map +0 -1
  93. package/dist/chunk-PCDUGD3C.js +0 -5
  94. package/dist/chunk-PCDUGD3C.js.map +0 -1
  95. package/dist/hooks.cjs +0 -10
  96. package/dist/hooks.cjs.map +0 -1
  97. package/dist/hooks.d.cts +0 -32
  98. package/dist/hooks.d.ts +0 -32
  99. package/dist/hooks.js +0 -8
  100. package/dist/hooks.js.map +0 -1
  101. package/dist/icon-e6044c73.d.ts +0 -227
  102. package/dist/icons.cjs +0 -73
  103. package/dist/icons.cjs.map +0 -1
  104. package/dist/icons.d.cts +0 -252
  105. package/dist/icons.d.ts +0 -252
  106. package/dist/icons.js +0 -4
  107. package/dist/icons.js.map +0 -1
  108. package/dist/index.cjs +0 -59
  109. package/dist/index.cjs.map +0 -1
  110. package/dist/index.d.cts +0 -566
  111. package/dist/index.d.ts +0 -566
  112. package/dist/index.js +0 -11
  113. package/dist/index.js.map +0 -1
  114. package/libs/chunk-QHIABQNQ.js +0 -8
  115. package/libs/chunk-QHIABQNQ.js.map +0 -1
  116. package/libs/chunk-ZOHIKF6I.cjs +0 -31
  117. package/libs/chunk-ZOHIKF6I.cjs.map +0 -1
  118. package/src/components/popover/node_modules/.vitest/results.json +0 -1
  119. package/src/hooks/popover/node_modules/.vitest/results.json +0 -1
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, userEvent, screen } from '@storybook/test'
3
+
4
4
 
5
5
  import Select from './select'
6
6
  import React from 'react'
@@ -70,41 +70,31 @@ export const Select = ({
70
70
 
71
71
  const handleOnBlur = (e: React.FocusEvent<HTMLSelectElement>) => {
72
72
  if (onBlur && !disabled) onBlur?.(e)
73
- const handleOnChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
74
- if (onSelectionChange && !disabled) onSelectionChange?.(e)
75
- }
76
-
77
- const handlePointerDown = (e: React.PointerEvent<HTMLSelectElement>) => {
78
- if (onPointerDown && !disabled) onPointerDown?.(e)
79
- }
80
-
81
- const handleOnBlur = (e: React.FocusEvent<HTMLSelectElement>) => {
82
- if (onBlur && !disabled) onBlur?.(e)
83
- }
84
-
85
- return (
86
- <UI
87
- as="select"
88
- id={id}
89
- ref={ref}
90
- name={name}
91
- className={classes}
92
- selected={selected}
93
- onChange={handleOnChange}
94
- onPointerDown={handlePointerDown}
95
- onBlur={handleOnBlur}
96
- required={required}
97
- aria-required={required} // Accessibility
98
- disabled={disabled}
99
- aria-disabled={disabled ? true : false}
100
- style={styles}
101
- {...props} // Accessibility
102
- >
103
- <option value="" />
104
- </UI>
105
- )
106
73
  }
74
+
75
+ return (
76
+ <UI
77
+ as="select"
78
+ id={id}
79
+ ref={ref}
80
+ name={name}
81
+ className={classes}
82
+ selected={selected}
83
+ onChange={handleOnChange}
84
+ onPointerDown={handlePointerDown}
85
+ onBlur={handleOnBlur}
86
+ required={required}
87
+ aria-required={required} // Accessibility
88
+ disabled={disabled}
89
+ aria-disabled={disabled ? true : false}
90
+ style={styles}
91
+ {...props} // Accessibility
92
+ >
93
+ <option value="" />
94
+ </UI>
95
+ )
107
96
  }
97
+
108
98
  export default Select
109
99
  Select.displayName = 'Select' // Remove this line
110
100
  Select.Option = Option // Remove this line
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import { render, screen } from '@testing-library/react'
3
3
  import FP from '../components/fp'
4
4
  import jest from 'jest-mock'
5
- import { userEvent } from '@storybook/testing-library'
5
+ import { userEvent } from '@storybook/test'
6
6
 
7
7
  describe('FP component', () => {
8
8
  it('renders a div by default', () => {
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect } from '@storybook/test'
3
+
4
4
 
5
5
  import Heading from './heading'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import UI from '#components/ui'
3
- import { type } from 'os'
3
+
4
4
 
5
5
  export type TitleProps = {
6
6
  children: React.ReactNode
@@ -12,7 +12,7 @@ const Heading = ({
12
12
  type = 'h3',
13
13
  id,
14
14
  styles,
15
- ui = 'display',
15
+ ui,
16
16
  children,
17
17
  ...props
18
18
  }: TitleProps) => {
@@ -6,6 +6,7 @@ const defaultStyes = {
6
6
  display: 'inline-flex',
7
7
  alignItems: 'center',
8
8
  width: 'auto',
9
+ fontSize: 'inherit',
9
10
  }
10
11
 
11
12
  export const Svg = ({
@@ -5,6 +5,7 @@
5
5
  --icon-width: max-content;
6
6
  --icon-gap: 0.2rem;
7
7
  --icon-height: max-content;
8
+ --icon-fs: inherit;
8
9
 
9
10
  display: var(--icon-display);
10
11
  flex-direction: var(--icon-direction);
@@ -12,4 +13,5 @@
12
13
  place-items: var(--icons-placement);
13
14
  width: var(--icon-width);
14
15
  height: var(--icon-height);
16
+ font-size: var(--icon-fs);
15
17
  }
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react'
2
2
 
3
- import { Meta, StoryObj } from '@storybook/react'
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
4
 
5
5
  import { Button } from '#components/buttons/button'
6
6
  import { Icon } from './icon'
7
7
  import './icon.scss'
8
+ import { I } from "vitest/dist/types-198fd1d9.js"
8
9
 
9
10
  const meta: Meta<typeof Icon> = {
10
11
  component: Icon,
@@ -36,22 +37,41 @@ export const IconSet = {
36
37
  },
37
38
  }
38
39
 
40
+
41
+ export const IconSizes = {
42
+ args: {},
43
+ render: (...args: any) => {
44
+ return (
45
+ <Icon>
46
+ <Icon.ArrowUp size={16} />
47
+ <Icon.ArrowUp size={24} />
48
+ <Icon.ArrowUp size={32} />
49
+ <Icon.ArrowUp size={48} />
50
+ <Icon.ArrowUp size={64} />
51
+ <Icon.ArrowUp size={96} />
52
+ <Icon.ArrowUp size={128} />
53
+ </Icon>
54
+ )
55
+ },
56
+ }
57
+
39
58
  export const IconButton = {
40
59
  args: {},
41
60
  render: (...args: any) => {
42
61
  return (
43
- <>
62
+
44
63
  <Button type="button">
45
64
  <Icon>
46
65
  <Icon.Code />
47
66
  </Icon>
48
67
  Click Me
49
68
  </Button>
50
- </>
69
+
51
70
  )
52
71
  },
53
72
  }
54
73
 
74
+
55
75
  export const Code: Story = {
56
76
  args: {
57
77
  children: <Icon.Code role="img" aria-label="code icon" />,
@@ -48,6 +48,17 @@ const defaultStyles = {
48
48
 
49
49
  export type IconProps = React.ComponentProps<typeof UI>
50
50
 
51
+ /**
52
+ * A component for rendering icons with consistent styling and behavior.
53
+ *
54
+ * @param {object} props - The component props
55
+ * @param {string} [props.id] - Optional unique identifier for the icon
56
+ * @param {string} [props.classes] - CSS classes to apply to the icon
57
+ * @param {React.ReactNode} [props.children] - Child elements to render inside the icon
58
+ * @param {object} [props.styles] - Custom styles to apply to the icon
59
+ * @param {...any} [props.props] - Additional props to spread to the underlying UI component
60
+ * @returns {JSX.Element} The rendered icon component
61
+ */
51
62
  export const Icon = ({
52
63
  id,
53
64
  classes,
@@ -2,7 +2,7 @@ import { ComponentProps } from '#/types'
2
2
 
3
3
  export interface IconProps extends Partial<ComponentProps> {
4
4
  fill?: string
5
- size?: number
5
+ size?: | 16 | 24 | 32 | 48 | 64 | 96 | 128
6
6
  strokeColor?: string
7
7
  strokeWidth?: string
8
8
  role?: string
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect } from '@storybook/test'
3
+
4
4
 
5
5
  import Figure from './figure'
6
6
 
@@ -25,10 +25,7 @@ export const FigureComponent: Story = {
25
25
  args: {},
26
26
  play: async ({ canvasElement }) => {
27
27
  const canvas = within(canvasElement)
28
- expect(
29
- canvas.getByText(/caption for the image here.../i),
30
- ).toBeInTheDocument()
31
- expect(canvas.getByRole('img')).toBeInTheDocument()
28
+ // await expect(canvas.getByRole('img')).toBeInTheDocument()
32
29
  expect(canvas.getByRole('figure')).toBeInTheDocument()
33
30
  },
34
31
  }
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect } from '@storybook/test'
3
+
4
4
 
5
5
  import Img from './img'
6
6
 
@@ -19,6 +19,6 @@ export const ImgComponent: Story = {
19
19
  args: {},
20
20
  play: async ({ canvasElement }) => {
21
21
  const canvas = within(canvasElement)
22
- expect(canvas.getByRole('img')).toBeInTheDocument()
22
+ await expect(canvas.getByRole('img')).toBeInTheDocument()
23
23
  },
24
24
  }
@@ -2,12 +2,12 @@ import { StoryObj, Meta } from '@storybook/react'
2
2
  /**
3
3
  * Import testing library dependencies
4
4
  */
5
- import { within, userEvent } from '@storybook/testing-library'
5
+ import { within, userEvent } from '@storybook/test'
6
6
 
7
7
  /**
8
8
  * Import jest matchers
9
9
  */
10
- import { expect } from '@storybook/jest'
10
+
11
11
 
12
12
  import { Footer } from './landmarks'
13
13
 
@@ -2,12 +2,12 @@ import { StoryObj, Meta } from '@storybook/react'
2
2
  /**
3
3
  * Import testing library dependencies
4
4
  */
5
- import { within, userEvent } from '@storybook/testing-library'
5
+ import { within, expect } from '@storybook/test'
6
6
 
7
7
  /**
8
8
  * Import jest matchers
9
9
  */
10
- import { expect } from '@storybook/jest'
10
+
11
11
 
12
12
  import { Header } from './landmarks'
13
13
 
@@ -2,12 +2,12 @@ import { StoryObj, Meta } from '@storybook/react'
2
2
  /**
3
3
  * Import testing library dependencies
4
4
  */
5
- import { within, userEvent } from '@storybook/testing-library'
5
+ import { within, userEvent, expect } from '@storybook/test'
6
6
 
7
7
  /**
8
8
  * Import jest matchers
9
9
  */
10
- import { expect } from '@storybook/jest'
10
+
11
11
 
12
12
  import { Main } from './landmarks'
13
13
 
@@ -1,8 +1,8 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
2
 
3
- import { within, userEvent, screen } from '@storybook/testing-library'
3
+ import { within, expect } from '@storybook/test'
4
+
4
5
 
5
- import { expect } from '@storybook/jest'
6
6
 
7
7
  import Link from './link'
8
8
  import '../../styles/link/link.css'
@@ -2,9 +2,8 @@ import React from 'react'
2
2
 
3
3
  import { StoryObj, Meta } from '@storybook/react'
4
4
 
5
- import { within, userEvent } from '@storybook/testing-library'
5
+ import { within, userEvent } from '@storybook/test'
6
6
 
7
- import { expect } from '@storybook/jest'
8
7
 
9
8
  import List from './list'
10
9
 
@@ -28,6 +27,12 @@ export const DefaultList: Story = {
28
27
  args: {
29
28
  children: listElm,
30
29
  },
30
+ argTypes: {
31
+ // foo is the property we want to remove from the UI
32
+ children: {
33
+ control: false,
34
+ },
35
+ },
31
36
  } as Story
32
37
 
33
38
  export const UnstyledList: Story = {
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect } from '@storybook/test'
3
+
4
4
  import React from 'react'
5
5
 
6
6
  import Nav from './nav'
@@ -40,7 +40,8 @@ export const NavComponent: Story = {
40
40
  args: {},
41
41
  play: async ({ canvasElement }) => {
42
42
  const canvas = within(canvasElement)
43
- expect(canvas.getByText(/link/i)).toBeInTheDocument()
43
+ expect(canvas.getAllByRole('link')).toHaveLength(2)
44
+ expect(canvas.getByText(/link 1/i)).toBeInTheDocument()
44
45
  },
45
46
  }
46
47
 
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect, userEvent } from '@storybook/test'
3
+
4
4
 
5
5
  import Popover from './popover'
6
6
  import { getByText } from '@testing-library/react'
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, userEvent, screen } from '@storybook/test'
3
+
4
4
 
5
5
  import '../../styles/progress/progress.css'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect } from '@storybook/test'
3
+
4
4
 
5
5
  import Tag from './tag'
6
6
  import './tag.scss'
@@ -22,7 +22,7 @@ export const TagComponent: Story = {
22
22
  args: {},
23
23
  play: async ({ canvasElement }) => {
24
24
  const canvas = within(canvasElement)
25
- expect(canvas.queryByText(/basic badge/i)).toBeInTheDocument()
25
+ expect(canvas.queryByText(/basic tag/i)).toBeInTheDocument()
26
26
  },
27
27
  }
28
28
 
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, expect} from '@storybook/test'
3
+
4
4
 
5
5
  import Text from './text'
6
6
 
@@ -19,10 +19,10 @@ type Story = StoryObj<typeof Text>
19
19
 
20
20
  export const ParagraphText: Story = {
21
21
  args: {},
22
- play: async ({ canvasElement }) => {
23
- const canvas = within(canvasElement)
24
- expect(canvas.getByText(/link/i)).toBeInTheDocument()
25
- },
22
+ // play: async ({ canvasElement }) => {
23
+ // const canvas = within(canvasElement)
24
+ // expect(canvas.getByText(/link/i)).toBeInTheDocument()
25
+ // },
26
26
  }
27
27
 
28
28
  export const span: Story = {
@@ -1,6 +1,6 @@
1
1
  import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
2
+ import { within, userEvent, screen } from '@storybook/test'
3
+
4
4
 
5
5
  import PageHeader, { HeaderVariants } from './page-header.js'
6
6
  import { Img } from '#components/images/img'
@@ -71,6 +71,7 @@ section {
71
71
  }
72
72
 
73
73
  p {
74
+ max-width: 75ch;
74
75
  max-width: 75ch;
75
76
  font-size: var(--fs-0);
76
77
  line-height: 1.6;
@@ -86,7 +87,7 @@ ol {
86
87
  flex-direction: var(--li-direction, column);
87
88
  gap: var(--li-gap, 0.2rem);
88
89
  flex-wrap: var(--li-wrap, nowrap);
89
- padding-inline-start: var(--li-ps, var(--spc-0));
90
+ padding-inline-start: var(--li-ps, var(--spc-2));
90
91
  &[role='list'],
91
92
  &[data-list~='unstyled'] {
92
93
  list-style: var(--li-style, none);
@@ -98,6 +99,7 @@ ol {
98
99
  --li-gap: 1rem;
99
100
  --li-wrap: wrap;
100
101
  --li-px: 0;
102
+ --li-pi: 0;
101
103
  }
102
104
  }
103
105
 
@@ -128,27 +130,27 @@ h6 {
128
130
  }
129
131
 
130
132
  h1 {
131
- font-size: var(--h1, var(--fs-7));
133
+ font-size: var(--h1, var(--fs-6));
132
134
  }
133
135
 
134
136
  h2 {
135
- font-size: var(--h2, var(--fs-6));
137
+ font-size: var(--h2, var(--fs-5));
136
138
  }
137
139
 
138
140
  h3 {
139
- font-size: var(--h3, var(--fs-5));
141
+ font-size: var(--h3, var(--fs-4));
140
142
  }
141
143
 
142
144
  h4 {
143
- font-size: var(--h4, var(--fs-4));
145
+ font-size: var(--h4, var(--fs-3));
144
146
  }
145
147
 
146
148
  h5 {
147
- font-size: var(--h5, var(--fs-3));
149
+ font-size: var(--h5, var(--fs-2));
148
150
  }
149
151
 
150
152
  h6 {
151
- font-size: var(--h6, var(--fs-2));
153
+ font-size: var(--h6, var(--fs-1));
152
154
  }
153
155
 
154
156
  hr {
@@ -10,6 +10,7 @@ sup:has(> span) {
10
10
  padding: var(--badge-padding);
11
11
  border-radius: var(--badge-radius);
12
12
  vertical-align: var(--badge-v-align);
13
+ font-size: var(--badge-fs);
13
14
  }
14
15
  sup:has(> span) span {
15
16
  color: inherit;
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../components/badge/badge.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AAEF;EACE;EACA","file":"badge.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../components/badge/badge.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AAEF;EACE;EACA","file":"badge.css"}
@@ -3,9 +3,9 @@ button {
3
3
  --btn-md: calc(16rem / 16);
4
4
  --btn-lg: calc(21rem / 16);
5
5
  --btn-pill: 100rem;
6
- --btn-height: calc(40rem / 16);
6
+ --btn-height: 2.5rem;
7
7
  --fs: 0.95rem;
8
- --btn-fs: calc(15rem / 16);
8
+ --btn-fs: 0.9375rem;
9
9
  --btn-bg: lightgray;
10
10
  --btn-width: max-content;
11
11
  font-size: var(--btn-fs);
@@ -46,7 +46,7 @@ button:is(:hover, :focus) {
46
46
  background-color: var(--btn-bg, var(--btn, lightgray));
47
47
  filter: invert(1) hue-rotate 180deg;
48
48
  transform: scale(0.95) var(--line-style, solid);
49
- outline-offset: var(--line-offset, 5px);
49
+ outline-offset: var(--line-offset, 1px);
50
50
  }
51
51
  button:is(:hover, :focus)[aria-disabled=true] {
52
52
  transform: none;
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../components/buttons/button.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EAEE;EACA;;AAGF;EAEE;;AAGA;EACE;;AAOJ;EAEE;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EAGE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA","file":"button.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../components/buttons/button.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EAEE;EACA;;AAGF;EAEE;;AAGA;EACE;;AAOJ;EAEE;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EAGE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA","file":"button.css"}
@@ -5,7 +5,7 @@
5
5
  --card-position: relative;
6
6
  --card-display: flex;
7
7
  --card-direction: column;
8
- --card-gap: 1.5rem;
8
+ --card-gap: 1rem;
9
9
  }
10
10
 
11
11
  [data-card],
@@ -17,13 +17,12 @@
17
17
  background-color: var(--card-bg);
18
18
  text-align: var(--card-align, left);
19
19
  }
20
- [data-card] [data-card-content],
21
20
  [data-card] h3,
22
21
  [data-card] h2,
23
- [data-component~=card] [data-card-content],
24
22
  [data-component~=card] h3,
25
23
  [data-component~=card] h2 {
26
24
  margin-block-end: 0;
25
+ padding-block-end: 0;
27
26
  }
28
27
  [data-card] + div,
29
28
  [data-component~=card] + div {
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../components/cards/card.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AAEF;AAAA;EACE;;AAEF;AAAA;EACE;EACA;EACA;;AAGF;AAAA;EACE;;AAEF;AAAA;EAEE;;AAEF;AAAA;EACE","file":"card.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../components/cards/card.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;EAEE;EACA;;AAEF;AAAA;EACE;;AAEF;AAAA;EACE;EACA;EACA;;AAGF;AAAA;EACE;;AAEF;AAAA;EAEE;;AAEF;AAAA;EACE","file":"card.css"}
@@ -4,10 +4,10 @@ details {
4
4
  --details-border: 1px solid #dfdfdf;
5
5
  --details-display: flex;
6
6
  --details-justify: flex-start;
7
- --details-direction: columns;
8
- --details-gap: 5rem;
7
+ --details-direction: column;
8
+ --details-gap: 0rem;
9
9
  --details-px: 1.5rem;
10
- --details-py: 1.5rem;
10
+ --details-py: 1rem;
11
11
  --details-radius: 0.5rem;
12
12
  --summary-cursor: pointer;
13
13
  --summary-transitions: all 0.75s linear;
@@ -39,11 +39,18 @@ details summary {
39
39
  padding-block: var(--summary-py, var(--details-py));
40
40
  gap: var(--summary-gap);
41
41
  list-style: none;
42
+ border-top-left-radius: var(--details-radius);
43
+ border-top-right-radius: var(--details-radius);
42
44
  /* This ensures no bullet points are shown */
43
45
  }
44
46
  details summary::-webkit-details-marker {
45
47
  display: none;
46
48
  }
49
+ details summary:focus-within {
50
+ outline: none;
51
+ border-bottom: solid 2px var(--details-border);
52
+ background-color: whitesmoke;
53
+ }
47
54
  details summary:hover {
48
55
  cursor: var(--summary-cursor);
49
56
  }
@@ -53,6 +60,7 @@ details summary > section {
53
60
  details > section {
54
61
  padding-inline: var(--details-px);
55
62
  padding-block: var(--details-py);
63
+ margin-block-start: 0;
56
64
  border: 1px transparent solid;
57
65
  }
58
66
  details[open] {
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../components/details/details.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AAMA;;AAJA;EACE;;AAKF;EACE;;AAEF;EACE;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;;AACA;EACE;;AAEF;EACE","file":"details.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../components/details/details.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAYA;;AAVA;EACE;;AAGF;EACE;EACA;EACA;;AAKF;EACE;;AAEF;EACE;;AAIJ;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;;AACA;EACE;;AAEF;EACE","file":"details.css"}
@@ -5,12 +5,14 @@
5
5
  --icon-width: max-content;
6
6
  --icon-gap: 0.2rem;
7
7
  --icon-height: max-content;
8
+ --icon-fs: inherit;
8
9
  display: var(--icon-display);
9
10
  flex-direction: var(--icon-direction);
10
11
  gap: var(--icon-gap);
11
12
  place-items: var(--icons-placement);
12
13
  width: var(--icon-width);
13
14
  height: var(--icon-height);
15
+ font-size: var(--icon-fs);
14
16
  }
15
17
 
16
18
  /*# sourceMappingURL=icon.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../components/icons/icon.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA","file":"icon.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../components/icons/icon.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA","file":"icon.css"}