@fpkit/acss 0.5.3 → 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.
- package/libs/chunk-QHIABQNQ.js +8 -0
- package/libs/chunk-QHIABQNQ.js.map +1 -0
- package/libs/chunk-ZOHIKF6I.cjs +31 -0
- package/libs/chunk-ZOHIKF6I.cjs.map +1 -0
- package/libs/components/breadcrumbs/breadcrumb.css +1 -1
- package/libs/components/breadcrumbs/breadcrumb.min.css +1 -1
- package/libs/components/buttons/button.css +1 -1
- package/libs/components/buttons/button.css.map +1 -1
- package/libs/components/buttons/button.min.css +2 -2
- package/libs/components/details/details.css +1 -1
- package/libs/components/details/details.css.map +1 -1
- package/libs/components/details/details.min.css +2 -2
- package/libs/components/dialog/dialog.css +1 -0
- package/libs/components/dialog/dialog.css.map +1 -0
- package/libs/components/dialog/dialog.min.css +3 -0
- package/libs/components/icons/icon.css +1 -1
- package/libs/components/icons/icon.css.map +1 -1
- package/libs/components/icons/icon.min.css +2 -2
- package/libs/{icons-2f29127c.d.ts → icons-1f5afc0c.d.ts} +1 -32
- package/libs/icons.cjs +2 -2
- package/libs/icons.d.cts +1 -1
- package/libs/icons.d.ts +1 -1
- package/libs/icons.js +1 -1
- package/libs/index.cjs +39 -39
- package/libs/index.cjs.map +1 -1
- package/libs/index.css +1 -1
- package/libs/index.css.map +1 -1
- package/libs/index.d.cts +27 -28
- package/libs/index.d.ts +27 -28
- package/libs/index.js +6 -6
- package/libs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/alert-dialog/alert-dialog.stories.tsx +35 -0
- package/src/components/alert-dialog/alert-dialog.tsx +76 -0
- package/src/components/badge/badge.stories.tsx +21 -23
- package/src/components/breadcrumbs/breadcrumb.scss +2 -2
- package/src/components/breadcrumbs/breadcrumb.stories.tsx +42 -47
- package/src/components/buttons/button.scss +40 -15
- package/src/components/buttons/button.stories.tsx +8 -1
- package/src/components/cards/card.stories.tsx +15 -15
- package/src/components/details/details.scss +6 -5
- package/src/components/details/details.stories.tsx +33 -30
- package/src/components/details/details.tsx +17 -17
- package/src/components/dialog/dialog.scss +61 -0
- package/src/components/dialog/dialog.stories.tsx +61 -0
- package/src/components/dialog/dialog.tsx +83 -0
- package/src/components/dialog/view/dialog-header.stories.tsx +43 -0
- package/src/components/dialog/view/dialog-header.tsx +32 -0
- package/src/components/form/form.stories.tsx +16 -16
- package/src/components/form/input.stories.tsx +62 -62
- package/src/components/form/select.stories.tsx +22 -15
- package/src/components/heading/heading.stories.tsx +32 -33
- package/src/components/heading/heading.tsx +1 -1
- package/src/components/icons/components/svg.tsx +0 -1
- package/src/components/icons/icon.scss +1 -3
- package/src/components/icons/icon.stories.tsx +45 -78
- package/src/components/icons/icon.tsx +0 -11
- package/src/components/icons/types.ts +1 -1
- package/src/components/images/figure.stories.tsx +13 -13
- package/src/components/images/img.stories.tsx +12 -12
- package/src/components/link/link.stories.tsx +32 -35
- package/src/components/link/link.tsx +27 -14
- package/src/components/list/list.stories.tsx +16 -16
- package/src/components/modal/dialog.tsx +13 -12
- package/src/components/modal/modal.tsx +28 -30
- package/src/components/nav/nav.stories.tsx +25 -24
- package/src/components/popover/popover.stories.tsx +17 -18
- package/src/components/progress/progress.stories.tsx +14 -20
- package/src/components/tag/tag.stories.tsx +17 -18
- package/src/components/text/text.stories.tsx +28 -29
- package/src/components/text-to-speech/TextToSpeech.stories.tsx +100 -101
- package/src/index.scss +22 -21
- package/src/index.ts +31 -30
- package/src/patterns/page/page-header.stories.tsx +17 -21
- package/src/sass/_globals.scss +7 -31
- package/src/sass/_styles.scss +2 -1
- package/src/sass/styles/_colors.scss +13 -0
- package/src/styles/breadcrumbs/breadcrumb.css +1 -1
- package/src/styles/buttons/button.css +25 -2
- package/src/styles/buttons/button.css.map +1 -1
- package/src/styles/details/details.css +5 -3
- package/src/styles/details/details.css.map +1 -1
- package/src/styles/dialog/dialog.css +61 -0
- package/src/styles/dialog/dialog.css.map +1 -0
- package/src/styles/icons/icon.css +1 -3
- package/src/styles/icons/icon.css.map +1 -1
- package/src/styles/index.css +107 -30
- package/src/styles/index.css.map +1 -1
- package/libs/chunk-TBM2QIVT.js +0 -8
- package/libs/chunk-TBM2QIVT.js.map +0 -1
- package/libs/chunk-VAH6X2DZ.cjs +0 -31
- package/libs/chunk-VAH6X2DZ.cjs.map +0 -1
- package/src/components/readme.stories.mdx +0 -7
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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:
|
|
6
|
+
title: "FP.REACT Components/TextToSpeech",
|
|
8
7
|
component: TextToSpeech,
|
|
9
|
-
tags: [
|
|
8
|
+
tags: ["experimental"],
|
|
10
9
|
argTypes: {
|
|
11
10
|
voice: {
|
|
12
11
|
control: {
|
|
13
|
-
type:
|
|
12
|
+
type: "select",
|
|
14
13
|
options: [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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:
|
|
29
|
+
label: "Read post",
|
|
31
30
|
initialText:
|
|
32
|
-
|
|
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
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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,21 +1,22 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
13
|
-
@import
|
|
14
|
-
@import
|
|
15
|
-
@import
|
|
16
|
-
@import
|
|
17
|
-
@import
|
|
18
|
-
@import
|
|
19
|
-
@import
|
|
20
|
-
@import
|
|
21
|
-
@import
|
|
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
|
|
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
|
|
6
|
-
export { Card } from
|
|
7
|
-
export {
|
|
8
|
-
export
|
|
9
|
-
export * from
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export
|
|
29
|
-
export { TextToSpeech } from
|
|
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
|
|
32
|
-
export { default as FP } from
|
|
33
|
-
export { default as Box } from
|
|
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
|
|
36
|
+
export * from "./components/ui";
|
|
@@ -1,44 +1,40 @@
|
|
|
1
|
-
import { StoryObj, Meta } from
|
|
2
|
-
import { within, userEvent, screen } from
|
|
1
|
+
import { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
// import { within, userEvent, screen } from "@storybook/test";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import
|
|
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:
|
|
8
|
+
title: "FP.React Patterns/PageHeader",
|
|
10
9
|
component: PageHeader,
|
|
10
|
+
tags: ["alpha"],
|
|
11
11
|
args: {
|
|
12
|
-
headerTitle:
|
|
13
|
-
headerSubtitle:
|
|
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:
|
|
24
|
-
|
|
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:
|
|
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:
|
|
44
|
-
} as Story
|
|
39
|
+
name: "Banner Style",
|
|
40
|
+
} as Story;
|
package/src/sass/_globals.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--font-family: -apple-system, BlinkMacSystemFont,
|
|
3
|
-
Arial,
|
|
4
|
-
|
|
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=
|
|
92
|
-
&[data-list~=
|
|
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~=
|
|
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;
|
package/src/sass/_styles.scss
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "./styles/shadows";
|
|
2
|
+
@use "./styles/colors";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
button {
|
|
2
|
-
--btn-
|
|
3
|
-
--btn-
|
|
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:
|
|
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
|
|
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:
|
|
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;;
|
|
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"}
|