@fpkit/acss 0.5.4 → 0.5.5

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 (93) hide show
  1. package/libs/chunk-QHIABQNQ.js +8 -0
  2. package/libs/chunk-QHIABQNQ.js.map +1 -0
  3. package/libs/chunk-ZOHIKF6I.cjs +31 -0
  4. package/libs/chunk-ZOHIKF6I.cjs.map +1 -0
  5. package/libs/components/breadcrumbs/breadcrumb.css +1 -1
  6. package/libs/components/breadcrumbs/breadcrumb.min.css +1 -1
  7. package/libs/components/buttons/button.css +1 -1
  8. package/libs/components/buttons/button.css.map +1 -1
  9. package/libs/components/buttons/button.min.css +2 -2
  10. package/libs/components/details/details.css +1 -1
  11. package/libs/components/details/details.css.map +1 -1
  12. package/libs/components/details/details.min.css +2 -2
  13. package/libs/components/dialog/dialog.css +1 -0
  14. package/libs/components/dialog/dialog.css.map +1 -0
  15. package/libs/components/dialog/dialog.min.css +3 -0
  16. package/libs/components/icons/icon.css +1 -1
  17. package/libs/components/icons/icon.css.map +1 -1
  18. package/libs/components/icons/icon.min.css +2 -2
  19. package/libs/{icons-2f29127c.d.ts → icons-1f5afc0c.d.ts} +1 -32
  20. package/libs/icons.cjs +2 -2
  21. package/libs/icons.d.cts +1 -1
  22. package/libs/icons.d.ts +1 -1
  23. package/libs/icons.js +1 -1
  24. package/libs/index.cjs +39 -39
  25. package/libs/index.cjs.map +1 -1
  26. package/libs/index.css +1 -1
  27. package/libs/index.css.map +1 -1
  28. package/libs/index.d.cts +27 -28
  29. package/libs/index.d.ts +27 -28
  30. package/libs/index.js +6 -6
  31. package/libs/index.js.map +1 -1
  32. package/package.json +2 -2
  33. package/src/components/alert-dialog/alert-dialog.stories.tsx +35 -0
  34. package/src/components/alert-dialog/alert-dialog.tsx +76 -0
  35. package/src/components/badge/badge.stories.tsx +21 -23
  36. package/src/components/breadcrumbs/breadcrumb.scss +2 -2
  37. package/src/components/breadcrumbs/breadcrumb.stories.tsx +42 -47
  38. package/src/components/buttons/button.scss +40 -15
  39. package/src/components/buttons/button.stories.tsx +8 -1
  40. package/src/components/cards/card.stories.tsx +15 -15
  41. package/src/components/details/details.scss +6 -5
  42. package/src/components/details/details.stories.tsx +33 -30
  43. package/src/components/details/details.tsx +17 -17
  44. package/src/components/dialog/dialog.scss +61 -0
  45. package/src/components/dialog/dialog.stories.tsx +61 -0
  46. package/src/components/dialog/dialog.tsx +83 -0
  47. package/src/components/dialog/view/dialog-header.stories.tsx +43 -0
  48. package/src/components/dialog/view/dialog-header.tsx +32 -0
  49. package/src/components/form/form.stories.tsx +16 -16
  50. package/src/components/form/input.stories.tsx +62 -62
  51. package/src/components/form/select.stories.tsx +22 -15
  52. package/src/components/heading/heading.stories.tsx +32 -33
  53. package/src/components/heading/heading.tsx +1 -1
  54. package/src/components/icons/components/svg.tsx +0 -1
  55. package/src/components/icons/icon.scss +1 -3
  56. package/src/components/icons/icon.stories.tsx +45 -78
  57. package/src/components/icons/icon.tsx +0 -11
  58. package/src/components/icons/types.ts +1 -1
  59. package/src/components/images/figure.stories.tsx +13 -13
  60. package/src/components/images/img.stories.tsx +12 -12
  61. package/src/components/link/link.stories.tsx +32 -35
  62. package/src/components/link/link.tsx +27 -14
  63. package/src/components/list/list.stories.tsx +16 -16
  64. package/src/components/modal/dialog.tsx +13 -12
  65. package/src/components/modal/modal.tsx +28 -30
  66. package/src/components/nav/nav.stories.tsx +25 -24
  67. package/src/components/popover/popover.stories.tsx +17 -18
  68. package/src/components/progress/progress.stories.tsx +14 -20
  69. package/src/components/tag/tag.stories.tsx +17 -18
  70. package/src/components/text/text.stories.tsx +28 -29
  71. package/src/components/text-to-speech/TextToSpeech.stories.tsx +100 -101
  72. package/src/index.scss +22 -22
  73. package/src/index.ts +31 -30
  74. package/src/patterns/page/page-header.stories.tsx +17 -21
  75. package/src/sass/_globals.scss +7 -31
  76. package/src/sass/_styles.scss +2 -1
  77. package/src/sass/styles/_colors.scss +13 -0
  78. package/src/styles/breadcrumbs/breadcrumb.css +1 -1
  79. package/src/styles/buttons/button.css +25 -2
  80. package/src/styles/buttons/button.css.map +1 -1
  81. package/src/styles/details/details.css +5 -3
  82. package/src/styles/details/details.css.map +1 -1
  83. package/src/styles/dialog/dialog.css +61 -0
  84. package/src/styles/dialog/dialog.css.map +1 -0
  85. package/src/styles/icons/icon.css +1 -3
  86. package/src/styles/icons/icon.css.map +1 -1
  87. package/src/styles/index.css +107 -47
  88. package/src/styles/index.css.map +1 -1
  89. package/libs/chunk-TBM2QIVT.js +0 -8
  90. package/libs/chunk-TBM2QIVT.js.map +0 -1
  91. package/libs/chunk-VAH6X2DZ.cjs +0 -31
  92. package/libs/chunk-VAH6X2DZ.cjs.map +0 -1
  93. package/src/components/readme.stories.mdx +0 -7
@@ -1,35 +1,34 @@
1
- import React from 'react'
2
- import { Meta, StoryObj } from '@storybook/react'
3
- import TextToSpeech from './TextToSpeech'
4
- import './text-to-speech.scss'
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import TextToSpeech from "./TextToSpeech";
3
+ import "./text-to-speech.scss";
5
4
 
6
5
  const meta: Meta<typeof TextToSpeech> = {
7
- title: 'FP.REACT Components/TextToSpeech',
6
+ title: "FP.REACT Components/TextToSpeech",
8
7
  component: TextToSpeech,
9
- tags: ['autodocs'],
8
+ tags: ["experimental"],
10
9
  argTypes: {
11
10
  voice: {
12
11
  control: {
13
- type: 'select',
12
+ type: "select",
14
13
  options: [
15
- 'Google US English',
16
- 'Google UK English Female',
17
- 'Google UK English Male',
14
+ "Google US English",
15
+ "Google UK English Female",
16
+ "Google UK English Male",
18
17
  ],
19
18
  },
20
19
  },
21
20
  },
22
- } as Story
21
+ } as Story;
23
22
 
24
- export default meta
23
+ export default meta;
25
24
 
26
- type Story = StoryObj<typeof TextToSpeech>
25
+ type Story = StoryObj<typeof TextToSpeech>;
27
26
 
28
27
  export const Default: Story = {
29
28
  args: {
30
- label: 'Read post',
29
+ label: "Read post",
31
30
  initialText:
32
- 'Hello, how are you? I am a Text to Speech (TTS) assistant! Update this text and click the [speak] button to hear the change.',
31
+ "Hello, how are you? I am a Text to Speech (TTS) assistant! Update this text and click the [speak] button to hear the change.",
33
32
  },
34
33
  parameters: {
35
34
  docs: {
@@ -39,13 +38,13 @@ export const Default: Story = {
39
38
  },
40
39
  },
41
40
  },
42
- } as Story
41
+ } as Story;
43
42
 
44
43
  export const WithText: Story = {
45
44
  args: {
46
45
  // Add props to simulate text input
47
46
  initialText:
48
- 'This is a test of the text to speech component. Here the test is passed as a prop and the text input is hidden.',
47
+ "This is a test of the text to speech component. Here the test is passed as a prop and the text input is hidden.",
49
48
  showTextInput: false,
50
49
  },
51
50
  parameters: {
@@ -56,90 +55,90 @@ export const WithText: Story = {
56
55
  },
57
56
  },
58
57
  },
59
- } as Story
58
+ } as Story;
60
59
 
61
- export const FullFeature: Story = {
62
- args: {
63
- initialText:
64
- 'Welcome to the full-featured Text-to-Speech component. You can modify this text, choose a voice, adjust pitch and rate, and then click the speak button to hear it.',
65
- showTextInput: true,
66
- pitch: 1,
67
- rate: 1,
68
- },
69
- parameters: {
70
- docs: {
71
- description: {
72
- story:
73
- "This story showcases all features of the TextToSpeechComponent, including text input, voice selection, pitch and rate adjustment. It provides a comprehensive demonstration of the component's capabilities.",
74
- },
75
- },
76
- },
77
- render: (args) => {
78
- const [selectedVoice, setSelectedVoice] = React.useState<
79
- SpeechSynthesisVoice | undefined
80
- >(undefined)
81
- const [pitch, setPitch] = React.useState(1)
82
- const [rate, setRate] = React.useState(1)
60
+ // export const FullFeature: Story = {
61
+ // args: {
62
+ // initialText:
63
+ // "Welcome to the full-featured Text-to-Speech component. You can modify this text, choose a voice, adjust pitch and rate, and then click the speak button to hear it.",
64
+ // showTextInput: true,
65
+ // pitch: 1,
66
+ // rate: 1,
67
+ // },
68
+ // parameters: {
69
+ // docs: {
70
+ // description: {
71
+ // story:
72
+ // "This story showcases all features of the TextToSpeechComponent, including text input, voice selection, pitch and rate adjustment. It provides a comprehensive demonstration of the component's capabilities.",
73
+ // },
74
+ // },
75
+ // },
76
+ // render: (args) => {
77
+ // const [selectedVoice, setSelectedVoice] = React.useState<
78
+ // SpeechSynthesisVoice | undefined
79
+ // >(undefined);
80
+ // const [pitch, setPitch] = React.useState(1);
81
+ // const [rate, setRate] = React.useState(1);
83
82
 
84
- React.useEffect(() => {
85
- const voices = window.speechSynthesis.getVoices()
86
- setSelectedVoice(
87
- voices.find((voice) => voice.name === 'Google US English') || voices[0],
88
- )
89
- }, [])
83
+ // React.useEffect(() => {
84
+ // const voices = window.speechSynthesis.getVoices();
85
+ // setSelectedVoice(
86
+ // voices.find((voice) => voice.name === "Google US English") || voices[0]
87
+ // );
88
+ // }, []);
90
89
 
91
- return (
92
- <div>
93
- <TextToSpeech
94
- {...args}
95
- voice={selectedVoice}
96
- pitch={pitch}
97
- rate={rate}
98
- />
99
- <div style={{ marginTop: '20px' }}>
100
- <label htmlFor="voice-select">Select Voice: </label>
101
- <select
102
- id="voice-select"
103
- onChange={(e) =>
104
- setSelectedVoice(
105
- window.speechSynthesis
106
- .getVoices()
107
- .find((v) => v.name === e.target.value),
108
- )
109
- }
110
- >
111
- {window.speechSynthesis.getVoices().map((voice) => (
112
- <option key={voice.name} value={voice.name}>
113
- {voice.name} ({voice.lang})
114
- </option>
115
- ))}
116
- </select>
117
- </div>
118
- <div style={{ marginTop: '10px' }}>
119
- <label htmlFor="pitch-range">Pitch: {pitch}</label>
120
- <input
121
- id="pitch-range"
122
- type="range"
123
- min="0.5"
124
- max="2"
125
- step="0.1"
126
- value={pitch}
127
- onChange={(e) => setPitch(parseFloat(e.target.value))}
128
- />
129
- </div>
130
- <div style={{ marginTop: '10px' }}>
131
- <label htmlFor="rate-range">Rate: {rate}</label>
132
- <input
133
- id="rate-range"
134
- type="range"
135
- min="0.5"
136
- max="2"
137
- step="0.1"
138
- value={rate}
139
- onChange={(e) => setRate(parseFloat(e.target.value))}
140
- />
141
- </div>
142
- </div>
143
- )
144
- },
145
- } as Story
90
+ // return (
91
+ // <div>
92
+ // <TextToSpeech
93
+ // {...args}
94
+ // voice={selectedVoice}
95
+ // pitch={pitch}
96
+ // rate={rate}
97
+ // />
98
+ // <div style={{ marginTop: "20px" }}>
99
+ // <label htmlFor="voice-select">Select Voice: </label>
100
+ // <select
101
+ // id="voice-select"
102
+ // onChange={(e) =>
103
+ // setSelectedVoice(
104
+ // window.speechSynthesis
105
+ // .getVoices()
106
+ // .find((v) => v.name === e.target.value)
107
+ // )
108
+ // }
109
+ // >
110
+ // {window.speechSynthesis.getVoices().map((voice) => (
111
+ // <option key={voice.name} value={voice.name}>
112
+ // {voice.name} ({voice.lang})
113
+ // </option>
114
+ // ))}
115
+ // </select>
116
+ // </div>
117
+ // <div style={{ marginTop: "10px" }}>
118
+ // <label htmlFor="pitch-range">Pitch: {pitch}</label>
119
+ // <input
120
+ // id="pitch-range"
121
+ // type="range"
122
+ // min="0.5"
123
+ // max="2"
124
+ // step="0.1"
125
+ // value={pitch}
126
+ // onChange={(e) => setPitch(parseFloat(e.target.value))}
127
+ // />
128
+ // </div>
129
+ // <div style={{ marginTop: "10px" }}>
130
+ // <label htmlFor="rate-range">Rate: {rate}</label>
131
+ // <input
132
+ // id="rate-range"
133
+ // type="range"
134
+ // min="0.5"
135
+ // max="2"
136
+ // step="0.1"
137
+ // value={rate}
138
+ // onChange={(e) => setRate(parseFloat(e.target.value))}
139
+ // />
140
+ // </div>
141
+ // </div>
142
+ // );
143
+ // },
144
+ // } as Story;
package/src/index.scss CHANGED
@@ -1,22 +1,22 @@
1
- @import './sass/reset';
2
- @import './sass/layout';
3
- @import './sass/type';
4
- @import './sass/properties';
5
- @import './sass/globals';
6
- @import './sass/elements';
7
- @import './components/buttons/button.scss';
8
- @import './components/tag/tag.scss';
9
- @import './components/images/img.scss';
10
- @import './components/cards/card.scss';
11
- @import './components/progress/progress.scss';
12
- @import './components/details/details.scss';
13
- @import './components/link/link.scss';
14
- @import './components/layout/landmarks.scss';
15
- @import './sass/_grid.scss';
16
- @import './components/badge/badge.scss';
17
- @import './components/nav/nav.scss';
18
- @import './components/form/form.scss';
19
- @import './components/breadcrumbs/breadcrumb.scss';
20
- @import './components/text-to-speech/text-to-speech.scss';
21
- @import './components/icons/icon.scss';
22
- @import './sass/styles';
1
+ @import "./sass/reset";
2
+ @import "./sass/layout";
3
+ @import "./sass/type";
4
+ @import "./sass/properties";
5
+ @import "./sass/globals";
6
+ @import "./sass/elements";
7
+ @import "./components/buttons/button.scss";
8
+ @import "./components/tag/tag.scss";
9
+ @import "./components/images/img.scss";
10
+ @import "./components/cards/card.scss";
11
+ @import "./components/progress/progress.scss";
12
+ @import "./components/details/details.scss";
13
+ @import "./components/link/link.scss";
14
+ @import "./components/layout/landmarks.scss";
15
+ @import "./components/dialog/dialog.scss";
16
+ @import "./sass/_grid.scss";
17
+ @import "./components/badge/badge.scss";
18
+ @import "./components/nav/nav.scss";
19
+ @import "./components/form/form.scss";
20
+ @import "./components/breadcrumbs/breadcrumb.scss";
21
+ @import "./components/text-to-speech/text-to-speech.scss";
22
+ @import "./sass/styles";
package/src/index.ts CHANGED
@@ -1,35 +1,36 @@
1
- import { TextToSpeech } from './components/text-to-speech/TextToSpeech'
1
+ // import { TextToSpeech } from "./components/text-to-speech/TextToSpeech";
2
2
  // import { Popover } from './hooks/popover/popover'
3
3
  // export { Textarea } from './components/form/textarea';
4
+ // export { ModalDialog as Dialog } from "./components/modal/dialog";
4
5
 
5
- export { Button } from './components/buttons/button'
6
- export { Card } from './components/cards/card'
7
- export { Dialog } from './components/modal/dialog'
8
- export { Field } from './components/form/fields'
9
- export * from './components/layout/landmarks'
10
- export * from './components/layout/landmarks'
11
- export { Icon } from './components/icons/icon'
12
- export { Img } from './components/images/img'
13
- export { Input } from './components/form/inputs'
14
- export { Link } from './components/link/link'
15
- export { List } from './components/list/list'
16
- export { Modal } from './components/modal/modal'
17
- export * from './components/nav/nav'
18
- export { Popover } from './components/popover/popover'
19
- export { RenderTable as TBL } from './components/tables/table'
20
- export * from './components/tag/tag'
21
- export * from './components/tables/table-elements'
22
- export * from './components/details/details'
23
- export * from './components/text/text'
24
- export * from './components/form/textarea'
25
- export * from './components/nav/nav'
26
- export * from './components/heading/heading'
27
- export * from './components/breadcrumbs/breadcrumb'
28
- export * from './components/text-to-speech/TextToSpeech'
29
- export { TextToSpeech } from './components/text-to-speech/TextToSpeech'
6
+ export { Button } from "./components/buttons/button";
7
+ export { Card } from "./components/cards/card";
8
+ export { Field } from "./components/form/fields";
9
+ export * from "./components/layout/landmarks";
10
+ export * from "./components/layout/landmarks";
11
+ export { Icon } from "./components/icons/icon";
12
+ export { Img } from "./components/images/img";
13
+ export { Input } from "./components/form/inputs";
14
+ export { Link } from "./components/link/link";
15
+ export { List } from "./components/list/list";
16
+ export { Modal } from "./components/modal/modal";
17
+ export * from "./components/nav/nav";
18
+ export { Popover } from "./components/popover/popover";
19
+ export { RenderTable as TBL } from "./components/tables/table";
20
+ export * from "./components/tag/tag";
21
+ export * from "./components/tables/table-elements";
22
+ export * from "./components/details/details";
23
+ export * from "./components/text/text";
24
+ export * from "./components/form/textarea";
25
+ export * from "./components/nav/nav";
26
+ export * from "./components/heading/heading";
27
+ export * from "./components/breadcrumbs/breadcrumb";
28
+ export * from "./components/text-to-speech/TextToSpeech";
29
+ export { Dialog } from "./components/dialog/dialog";
30
+ export { TextToSpeech } from "./components/text-to-speech/TextToSpeech";
30
31
 
31
- export { default as To } from './components/link/link'
32
- export { default as FP } from './components/fp'
33
- export { default as Box } from './components/fp'
32
+ export { default as To } from "./components/link/link";
33
+ export { default as FP } from "./components/fp";
34
+ export { default as Box } from "./components/fp";
34
35
 
35
- export * from './components/ui'
36
+ export * from "./components/ui";
@@ -1,44 +1,40 @@
1
- import { StoryObj, Meta } from '@storybook/react'
2
- import { within, userEvent, screen } from '@storybook/test'
1
+ import { StoryObj, Meta } from "@storybook/react";
2
+ // import { within, userEvent, screen } from "@storybook/test";
3
3
 
4
-
5
- import PageHeader, { HeaderVariants } from './page-header.js'
6
- import { Img } from '#components/images/img'
4
+ import PageHeader, { HeaderVariants } from "./page-header.js";
5
+ import { Img } from "#components/images/img";
7
6
 
8
7
  const meta: Meta<typeof PageHeader> = {
9
- title: 'FP.React Patterns/PageHeader',
8
+ title: "FP.React Patterns/PageHeader",
10
9
  component: PageHeader,
10
+ tags: ["alpha"],
11
11
  args: {
12
- headerTitle: 'Page Header',
13
- headerSubtitle: 'Place your cool elevator pitch here...',
12
+ headerTitle: "Page Header",
13
+ headerSubtitle: "Place your cool elevator pitch here...",
14
14
  headerBackground: <Img src="https://picsum.photos/2400/600" alt="" />,
15
15
  },
16
- } as Meta
16
+ } as Meta;
17
17
 
18
- export default meta
19
- type Story = StoryObj<typeof PageHeader>
18
+ export default meta;
19
+ type Story = StoryObj<typeof PageHeader>;
20
20
 
21
21
  export const PageHeaderComponent: Story = {
22
22
  args: {},
23
- name: 'Page Header',
24
- play: async ({ canvasElement }) => {
25
- const canvas = within(canvasElement)
26
- //expect(canvas).toBeInTheDocument()
27
- },
28
- }
23
+ name: "Page Header",
24
+ };
29
25
 
30
26
  export const Cover: Story = {
31
27
  args: {
32
28
  ...PageHeaderComponent.args,
33
29
  variant: HeaderVariants.Cover,
34
30
  },
35
- name: 'Cover Style',
36
- } as Story
31
+ name: "Cover Style",
32
+ } as Story;
37
33
 
38
34
  export const Banner: Story = {
39
35
  args: {
40
36
  ...PageHeaderComponent.args,
41
37
  variant: HeaderVariants.Banner,
42
38
  },
43
- name: 'Banner Style',
44
- } as Story
39
+ name: "Banner Style",
40
+ } as Story;
@@ -1,7 +1,7 @@
1
1
  :root {
2
- --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
3
- Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
4
- 'Segoe UI Symbol', 'Noto Color Emoji';
2
+ --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
3
+ Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
4
+ "Segoe UI Symbol", "Noto Color Emoji";
5
5
  --TRUE: initial;
6
6
  --FALSE: ;
7
7
  --fs-weight: 500;
@@ -23,7 +23,7 @@ body {
23
23
  flex-grow: 1;
24
24
  }
25
25
 
26
- > a[href^='#'] {
26
+ > a[href^="#"] {
27
27
  position: absolute;
28
28
  top: -4rem;
29
29
  left: 0;
@@ -88,13 +88,13 @@ ol {
88
88
  gap: var(--li-gap, 0.2rem);
89
89
  flex-wrap: var(--li-wrap, nowrap);
90
90
  padding-inline-start: var(--li-ps, var(--spc-2));
91
- &[role='list'],
92
- &[data-list~='unstyled'] {
91
+ &[role="list"],
92
+ &[data-list~="unstyled"] {
93
93
  list-style: var(--li-style, none);
94
94
  margin-block-end: var(--li-my, 0);
95
95
  margin-block-start: var(--li-mx, 0);
96
96
  }
97
- &[data-list~='inline'] {
97
+ &[data-list~="inline"] {
98
98
  --li-direction: row;
99
99
  --li-gap: 1rem;
100
100
  --li-wrap: wrap;
@@ -129,30 +129,6 @@ h6 {
129
129
  line-height: 1.2;
130
130
  }
131
131
 
132
- h1 {
133
- font-size: var(--h1, var(--fs-6));
134
- }
135
-
136
- h2 {
137
- font-size: var(--h2, var(--fs-5));
138
- }
139
-
140
- h3 {
141
- font-size: var(--h3, var(--fs-4));
142
- }
143
-
144
- h4 {
145
- font-size: var(--h4, var(--fs-3));
146
- }
147
-
148
- h5 {
149
- font-size: var(--h5, var(--fs-2));
150
- }
151
-
152
- h6 {
153
- font-size: var(--h6, var(--fs-1));
154
- }
155
-
156
132
  hr {
157
133
  --hr-h: 0.0625rem;
158
134
  --hr-color: lightgray;
@@ -1 +1,2 @@
1
- @use './styles/shadows';
1
+ @use "./styles/shadows";
2
+ @use "./styles/colors";
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --transparent: transparent;
3
+ }
4
+
5
+ .transparent {
6
+ background-color: var(--transparent);
7
+ &-border {
8
+ border-color: var(--transparent);
9
+ }
10
+ &-color {
11
+ color: var(--transparent);
12
+ }
13
+ }
@@ -5,7 +5,7 @@ nav[data-breadcrumb] {
5
5
  --breadcrumb-gap: 0.5rem;
6
6
  --breadcrumb-color: currentColor;
7
7
  --breadcrumb-current-color: rgb(46, 46, 46);
8
- --breadcrumb-fs: var(--fs-0);
8
+ --breadcrumb-fs: var(--fs-3);
9
9
  margin-inline: unset;
10
10
  padding-inline: unset;
11
11
  }
@@ -1,6 +1,7 @@
1
1
  button {
2
- --btn-sm: calc(12rem / 16);
3
- --btn-md: calc(16rem / 16);
2
+ --btn-xs: 0.6rem;
3
+ --btn-sm: 0.7rem;
4
+ --btn-md: 0.85rem;
4
5
  --btn-lg: calc(21rem / 16);
5
6
  --btn-pill: 100rem;
6
7
  --btn-height: 2.5rem;
@@ -27,6 +28,9 @@ button {
27
28
  background-color: var(--btn-bg, var(--btn));
28
29
  outline: none;
29
30
  width: var(--btn-width);
31
+ display: inline-flex;
32
+ align-items: center;
33
+ line-height: 0cap;
30
34
  }
31
35
  button[type] {
32
36
  background-color: var(--btn-bg, var(--neutral-300));
@@ -66,14 +70,33 @@ button[type=submit] {
66
70
  button[data-fp-btn~=pill], button[data-btn~=pill], button[data-style~=pill] {
67
71
  border-radius: var(--btn-pill, 100rem);
68
72
  }
73
+ button[data-btn~=xs] {
74
+ padding-inline: var(--btn-xs);
75
+ --btn-fs: var(--btn-xs);
76
+ --btn-height: 1.5rem;
77
+ text-transform: uppercase;
78
+ }
69
79
  button[data-btn~=sm] {
70
80
  --btn-fs: var(--btn-sm);
81
+ --btn-height: 1.75rem;
71
82
  }
72
83
  button[data-btn~=md] {
73
84
  --btn-fs: var(--btn-md);
85
+ --btn-height: 2rem;
74
86
  }
75
87
  button[data-btn~=lg] {
76
88
  --btn-fs: var(--btn-lg);
89
+ --btn-height: 2.5rem;
90
+ }
91
+ button[data-btn~=icon] {
92
+ padding: unset;
93
+ height: unset;
94
+ min-width: 1.5rem;
95
+ min-height: 1.5rem;
96
+ text-align: center;
97
+ display: inline-flex;
98
+ align-items: center;
99
+ justify-content: center;
77
100
  }
78
101
  button[data-btn~=text] {
79
102
  --btn-bg: transparent;
@@ -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;;AACA;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;EACA;EAEA;EACA;EACA;EACA;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;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA","file":"button.css"}
@@ -1,6 +1,6 @@
1
1
  details {
2
2
  --details-w: 100%;
3
- --details-h: fit-content;
3
+ --details-h: max-content;
4
4
  --details-border: 1px solid #dfdfdf;
5
5
  --details-display: flex;
6
6
  --details-justify: flex-start;
@@ -10,13 +10,14 @@ details {
10
10
  --details-py: 1rem;
11
11
  --details-radius: 0.5rem;
12
12
  --summary-cursor: pointer;
13
- --summary-transitions: all 0.75s linear;
13
+ --summary-transitions: all 0.75s ease-in-out;
14
14
  --summary-display: flex;
15
15
  --summary-justify: flex-start;
16
16
  --summary-align: center;
17
17
  --summary-gap: 0.5rem;
18
18
  --max-h-closed: 6.25rem;
19
19
  --max-h-open: 50rem;
20
+ interpolate-size: allow-keywords;
20
21
  display: var(--details-display);
21
22
  flex-direction: var(--details-direction);
22
23
  justify-content: var(--details-justify);
@@ -41,6 +42,7 @@ details summary {
41
42
  list-style: none;
42
43
  border-top-left-radius: var(--details-radius);
43
44
  border-top-right-radius: var(--details-radius);
45
+ transition: var(--summary-transitions);
44
46
  /* This ensures no bullet points are shown */
45
47
  }
46
48
  details summary::-webkit-details-marker {
@@ -64,7 +66,7 @@ details > section {
64
66
  border: 1px transparent solid;
65
67
  }
66
68
  details[open] {
67
- max-height: var(--max-h-open);
69
+ max-height: max-content;
68
70
  transition: var(--summary-transitions);
69
71
  }
70
72
  details[open] > summary {
@@ -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;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"}
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;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAYA;;AAVA;EACE;;AAGF;EACE;EACA;EACA;;AAIF;EACE;;AAEF;EACE;;AAIJ;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;;AACA;EACE;;AAEF;EACE","file":"details.css"}