@kroo-web/design-system 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@kroo-web/design-system",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Web design system for Kroo including the components for the marketing site and the product side.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "scripts": {
9
12
  "dev": "storybook",
10
13
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -1,19 +0,0 @@
1
- /** @type { import('@storybook/react-vite').StorybookConfig } */
2
- const config = {
3
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
4
- addons: [
5
- "@storybook/addon-links",
6
- "@storybook/addon-essentials",
7
- "@storybook/addon-onboarding",
8
- "@storybook/addon-interactions",
9
- "@storybook/addon-docs"
10
- ],
11
- framework: {
12
- name: "@storybook/react-vite",
13
- options: {},
14
- },
15
- docs: {
16
- autodocs: "tag",
17
- },
18
- };
19
- export default config;
@@ -1,8 +0,0 @@
1
- <link rel="preconnect" href="https://fonts.googleapis.com" />
2
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3
- <link
4
- href="https://fonts.googleapis.com/css2?family=Brygada+1918:ital,wght@0,400;0,500;0,700;1,500&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
5
- rel="stylesheet"
6
- crossorigin="anonymous"
7
- />
8
-
@@ -1,21 +0,0 @@
1
- /** @type { import('@storybook/react').Preview } */
2
- import "../src/styles/global.css";
3
- const preview = {
4
- parameters: {
5
- docs: {
6
- toc: {
7
- headingSelector: "h2, h3, h4, h5, h6",
8
- title: "Contents"
9
- },
10
- },
11
- actions: { argTypesRegex: "^on[A-Z].*" },
12
- controls: {
13
- matchers: {
14
- color: /(background|color)$/i,
15
- date: /Date$/i,
16
- },
17
- },
18
- },
19
- };
20
-
21
- export default preview;
package/rollup.config.mjs DELETED
@@ -1,47 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve";
2
- import commonjs from "@rollup/plugin-commonjs";
3
- import typescript from "@rollup/plugin-typescript";
4
- import dts from "rollup-plugin-dts";
5
- import terser from "@rollup/plugin-terser";
6
- import peerDepsExternal from "rollup-plugin-peer-deps-external";
7
- import autoprefixer from 'autoprefixer';
8
- import postcss from 'rollup-plugin-postcss';
9
-
10
- const packageJson = require("./package.json");
11
-
12
- export default [
13
- {
14
- input: "src/index.ts",
15
- output: [
16
- {
17
- file: packageJson.main,
18
- format: "cjs",
19
- sourcemap: true,
20
- },
21
- {
22
- file: packageJson.module,
23
- format: "esm",
24
- sourcemap: true,
25
- },
26
- ],
27
- plugins: [
28
- peerDepsExternal(),
29
- resolve(),
30
- commonjs(),
31
- typescript({ tsconfig: "./tsconfig.json" }),
32
- postcss({
33
- plugins: [autoprefixer()],
34
- sourceMap: true,
35
- extract: true,
36
- minimize: true}),
37
- terser(),
38
-
39
- ],
40
- external: ["react", "react-dom", /\.css$/],
41
- },
42
- {
43
- input: "src/index.ts",
44
- output: [{ file: "dist/types.d.ts", format: "es" }],
45
- plugins: [dts.default()],
46
- },
47
- ];
@@ -1,29 +0,0 @@
1
- import { useEffect, useState } from 'react';
2
-
3
- export function useWindowSize() {
4
- const [windowSize, setWindowSize] = useState<{
5
- width: number;
6
- height?: number;
7
- }>({
8
- width: 600,
9
- height: undefined,
10
- });
11
-
12
- useEffect(() => {
13
- // Handler to call on window resize
14
- function handleResize() {
15
- // Set window width/height to state
16
- setWindowSize({
17
- width: window.innerWidth || 600,
18
- height: window.innerHeight,
19
- });
20
- }
21
- // Add event listener
22
- window.addEventListener('resize', handleResize, { passive: true });
23
- // Call handler right away so state gets updated with initial window size
24
- handleResize();
25
- // Remove event listener on cleanup
26
- return () => window.removeEventListener('resize', handleResize);
27
- }, []); // Empty array ensures that effect is only run on mount
28
- return windowSize;
29
- }
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
-
2
- // ? All of the Product components
3
- export * from "./product/components";
File without changes
@@ -1,127 +0,0 @@
1
- import React, {
2
- DetailedHTMLProps,
3
- InputHTMLAttributes,
4
- ReactNode,
5
- useState,
6
- } from 'react';
7
- import { motion } from 'framer-motion';
8
- import clsx from 'clsx';
9
- import { FieldValues, Path, UseFormRegister } from 'react-hook-form';
10
- import { useWindowSize } from '../../../hooks/useWindowSize';
11
- // @ts-ignore
12
- import styles from "./textField.module.css"
13
-
14
- export type TTextFieldProps<T extends FieldValues> = {
15
- id: string;
16
- label: string;
17
- name: Path<T>;
18
- disabled?: boolean;
19
- helper?: {
20
- message: ReactNode | string;
21
- };
22
- error?: {
23
- message: ReactNode | string;
24
- };
25
- /** React Hook form requirement if you dont pass it in the component will act like a normal uncontrolled input */
26
- register?: UseFormRegister<T>;
27
- type?: DetailedHTMLProps<
28
- InputHTMLAttributes<HTMLInputElement>,
29
- HTMLInputElement
30
- >['type'];
31
- prefix?: string | ReactNode;
32
- suffix?: string | ReactNode;
33
- value?: string;
34
- className?: string;
35
- rightContent?: ReactNode | string;
36
- leftContent?: ReactNode | string;
37
- };
38
-
39
- export const TextField = <T extends FieldValues>({
40
- id,
41
- label,
42
- helper,
43
- error,
44
- register,
45
- name,
46
- type,
47
- prefix,
48
- suffix,
49
- disabled,
50
- value,
51
- className,
52
- rightContent,
53
- leftContent,
54
- }: TTextFieldProps<T>) => {
55
- const { width } = useWindowSize();
56
- const [hasValue, setHasValue] = useState(value || false);
57
- const isDesktop = width > 768;
58
-
59
- const variants = {
60
- focused: {
61
- fontSize: isDesktop ? '1rem' : '0.875rem',
62
- top: '1rem',
63
- },
64
- notFocused: {
65
- transform: 'translateY(-50%)',
66
- fontSize: isDesktop ? '1.25rem' : '1.125rem',
67
- top: '50%',
68
- },
69
- };
70
-
71
- return (
72
- <div className={styles.outer}>
73
- <div
74
- className={clsx(styles.container, error && styles['container--error'])}
75
- >
76
- <motion.label
77
- className={styles.label}
78
- initial="notFocused"
79
- variants={variants}
80
- htmlFor={`input-${id}`}
81
- animate={hasValue ? 'focused' : 'notFocused'}
82
- >
83
- {prefix && <span>{prefix}</span>} {label}{' '}
84
- {suffix && <span>{suffix}</span>}
85
- </motion.label>
86
- <input
87
- className={clsx(styles[`input--${className}`], styles.input)}
88
- id={`input-${id}`}
89
- type={type}
90
- aria-describedby={`error-${id}`}
91
- disabled={disabled}
92
- {...(register && register(name),
93
- {
94
- onFocus: () => {
95
- setHasValue(true);
96
- },
97
-
98
- onBlur: (e) => {
99
- setHasValue(!!e.target.value);
100
- },
101
- })}
102
- value={value}
103
- />
104
- <div>
105
- {rightContent && (
106
- <div className={styles.rightContent}>{rightContent}</div>
107
- )}
108
- {leftContent && (
109
- <div className={styles.leftContent}>{leftContent}</div>
110
- )}
111
- </div>
112
- </div>
113
- <div className={styles.inputDescription}>
114
- {helper && (
115
- <span id={`feedback-${id}`} className={styles.helper}>
116
- {helper.message}
117
- </span>
118
- )}
119
- {error && (
120
- <span id={`error-${id}`} className={styles.error}>
121
- {error.message}
122
- </span>
123
- )}
124
- </div>
125
- </div>
126
- );
127
- };
@@ -1,115 +0,0 @@
1
- .outer {
2
- margin-bottom: 1rem;
3
- }
4
-
5
- .container {
6
- position: relative;
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- .label {
12
- position: absolute;
13
- z-index: 3;
14
- left: 1.25rem;
15
- color: #666666;
16
- pointer-events: none;
17
- }
18
-
19
- .input {
20
- all: unset;
21
- background: white;
22
- padding: 1rem 1.25rem;
23
- padding-top: 1.70rem;
24
- border-radius: var(--product-radius-2);
25
- z-index: 1;
26
- font-size: 1.125rem;
27
- caret-color: var(--primary-love-pink-100);
28
- }
29
-
30
- .inputDescription {
31
- display: flex;
32
- flex-direction: column;
33
- gap: 0.5rem;
34
- padding-top: 0.5rem;
35
- padding-left: 1.5rem;
36
- }
37
-
38
- .container--error > label {
39
- color: var(--product-error);
40
- }
41
-
42
- .container--error > input {
43
- border: var(--product-border-width-1) solid var(--product-error);
44
- }
45
-
46
- .error {
47
- color: var(--product-error);
48
- }
49
-
50
- .helper {
51
- color: rgba(var(--grey-60-rgb));
52
- }
53
-
54
- .rightContent {
55
- position: absolute;
56
- right: 1.5rem;
57
- top: 50%;
58
- transform: translateY(-50%);
59
- z-index: 2;
60
- }
61
-
62
- .leftContent {
63
- position: absolute;
64
- left: 1.5rem;
65
- top: 50%;
66
- transform: translateY(-50%);
67
- z-index: 2;
68
- }
69
-
70
-
71
- .input:focus {
72
- border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));
73
- }
74
-
75
- .input--focus {
76
- border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));
77
- }
78
-
79
- .input:hover {
80
- outline: var(--product-border-width-1) solid #E6E6E6;
81
- }
82
-
83
- .input--hover {
84
- outline: var(--product-border-width-1) solid #E6E6E6;
85
- }
86
-
87
- .input:disabled {
88
- background: #E6E6E6;
89
- cursor: not-allowed;
90
- }
91
-
92
- .input:disabled:hover {
93
- outline: none;
94
- }
95
-
96
-
97
-
98
- @media (min-width: 768px) {
99
- .input {
100
- padding: 1.5rem;
101
- padding-top: 1.8rem;
102
- font-size: 1.25rem;
103
- }
104
-
105
- .label {
106
- left: 1.5rem;
107
- }
108
- }
109
-
110
-
111
-
112
-
113
-
114
-
115
-
@@ -1,113 +0,0 @@
1
- import { Meta, Canvas } from "@storybook/addon-docs";
2
- import { TextField } from '.'
3
-
4
-
5
- <Meta title="Design System Product/C1 - TextField / Documentation" />
6
-
7
- # TextField
8
-
9
- TextFields are text inputs that allow users to input custom text entries with a keyboard. Various decorations can be displayed around the field to communicate the entry requirements.
10
-
11
-
12
- ## Example
13
-
14
- <Canvas>
15
- <TextField
16
- label="Label"
17
- />
18
- </Canvas>
19
-
20
-
21
- ### Usage
22
-
23
- In the Nextjs repo and this component is expected to be used with react-hook-form and accepts the
24
- register prop from useForm to hook it upto the form.
25
-
26
- However, it can be used as a standalone component as well without registering in a HTML form if needed.
27
-
28
- ```tsx
29
- import { useForm } from 'react-hook-form'
30
- import { TextField } from 'design-system-product'
31
-
32
- const { register, handleSubmit } = useForm()
33
-
34
- const onSubmit = (data) => {
35
- console.log(data)
36
- }
37
-
38
- return (
39
- <form onSubmit={handleSubmit(onSubmit)}>
40
- <TextField
41
- label="Label"
42
- {...register('example')}
43
- />
44
- </form>
45
- )
46
- ```
47
-
48
- ### Labelling
49
-
50
- The label prop is required and is used to display the label for the input field. A label is required for accessiblity and should
51
- always be provided.
52
-
53
- <Canvas>
54
- <TextField
55
- label="Label" />
56
- </Canvas>
57
-
58
-
59
-
60
-
61
- ### Required Fields
62
-
63
- Currently we do not support the required prop with the TextField component due to currently our forms assumes that everything
64
- is required and we have no reason to ask for everything to be required. Instead please use the suffix prop to add an (optional) tag
65
- to the label.
66
-
67
- <Canvas>
68
- <TextField
69
- label="Label"
70
- suffix="(optional)" />
71
- </Canvas>
72
-
73
-
74
- ## Visual Options
75
-
76
- ### Validation
77
- Validation will be handled by react-hook-form or by passing an error with a message to the error prop.
78
- The error prop will display an error message below the input field and change the border of the input field to red.
79
-
80
- <Canvas>
81
- <TextField
82
- label="Label"
83
- error="Error Message" />
84
- </Canvas>
85
-
86
-
87
-
88
-
89
- ### Read Only
90
- The ReadOnly prop is used to make the input field read only. This is useful when you want to display and copy the value of the input field but not allow the user to edit it. Use this instead of the disabled state.
91
-
92
- <Canvas>
93
- <TextField
94
- value="Read Only Value"
95
- label="Label"
96
- readOnly />
97
- </Canvas>
98
-
99
-
100
-
101
- ### Disabled
102
- The disabled prop is used to disable the input field. This is useful when you want to prevent the user from editing the input field. Use this instead of the readOnly state.
103
-
104
- <Canvas>
105
- <TextField
106
- value="Example Value"
107
- label="Label"
108
- disabled />
109
- </Canvas>
110
-
111
-
112
-
113
-
@@ -1,265 +0,0 @@
1
- import React from 'react';
2
- import { Meta, StoryObj } from '@storybook/react';
3
-
4
-
5
- import { TextField } from '.';
6
-
7
- export default {
8
- title: 'Design System Product/C1 - TextField',
9
- component: TextField,
10
- parameters: {},
11
- } as Meta<typeof TextField>;
12
-
13
- type Story = StoryObj<typeof TextField>;
14
-
15
- export const Default: Story = {
16
- render: () => (
17
- <>
18
- <TextField id="default-no-value" label="Default" name="example" />
19
- <TextField
20
- className="hover"
21
- id="default2-no-value"
22
- label="Hovered"
23
- name="example2"
24
- />
25
- <TextField
26
- className="focus"
27
- id="default3-no-value"
28
- label="Focused"
29
- name="example3"
30
- />
31
-
32
- <TextField
33
- id="default-value"
34
- label="Default"
35
- name="example"
36
- value="Example text"
37
- />
38
- <TextField
39
- className="hover"
40
- id="default2-value"
41
- label="Hovered"
42
- name="example2"
43
- value="Example text"
44
- />
45
- <TextField
46
- className="focus"
47
- id="default3-value"
48
- label="Focused"
49
- name="example3"
50
- value="Example text"
51
- />
52
- <TextField
53
- id="default4-value"
54
- label="Disabled "
55
- name="example4"
56
- disabled
57
- />
58
- </>
59
- ),
60
- };
61
-
62
- export const Error: Story = {
63
- render: () => (
64
- <>
65
- <TextField
66
- id="error"
67
- label="Default"
68
- name="error1"
69
- error={{ message: 'This is an error' }}
70
- />
71
- <TextField
72
- className="hover"
73
- id="error2"
74
- label="Hovered"
75
- name="error2"
76
- error={{ message: 'This is an error' }}
77
- />
78
- <TextField
79
- className="focus"
80
- id="error3"
81
- label="Focused"
82
- name="error3"
83
- error={{ message: 'This is an error' }}
84
- />
85
- <TextField
86
- id="error4-value"
87
- label="Default"
88
- name="error4-value"
89
- value="Example text"
90
- error={{ message: 'This is an error' }}
91
- />
92
- <TextField
93
- className="hover"
94
- id="error5-value"
95
- label="Hovered"
96
- name="error5-value"
97
- value="Example text"
98
- error={{ message: 'This is an error' }}
99
- />
100
- <TextField
101
- className="focus"
102
- id="error5-value"
103
- label="Focused"
104
- name="error5-value"
105
- value="Example text"
106
- error={{ message: 'This is an error' }}
107
- />
108
- <TextField
109
- id="error4"
110
- label="Disabled"
111
- name="error4"
112
- error={{ message: 'This is an error' }}
113
- disabled
114
- />
115
- </>
116
- ),
117
- };
118
-
119
- export const HelperText: Story = {
120
- render: () => (
121
- <>
122
- <TextField
123
- id="helper"
124
- label="Default"
125
- name="helper1"
126
- helper={{ message: 'This is helper text' }}
127
- />
128
- <TextField
129
- className="hover"
130
- id="helper2"
131
- label="Hovered"
132
- name="helper2"
133
- helper={{ message: 'This is helper text' }}
134
- />
135
- <TextField
136
- className="focus"
137
- id="helper3"
138
- label="Focused"
139
- name="helper3"
140
- helper={{ message: 'This is helper text' }}
141
- />
142
- <TextField
143
- id="helper4-text"
144
- label="Default"
145
- name="helper4-text"
146
- helper={{ message: 'This is helper text' }}
147
- value="Example text"
148
- />
149
- <TextField
150
- className="hover"
151
- id="helper5-text"
152
- label="Hovered"
153
- name="helper5-text"
154
- helper={{ message: 'This is helper text' }}
155
- value="Example text"
156
- />
157
- <TextField
158
- className="focus"
159
- id="helper6-text"
160
- label="Focused"
161
- name="helper6-text"
162
- helper={{ message: 'This is helper text' }}
163
- value="Example text"
164
- />
165
- <TextField
166
- id="helper4"
167
- label="Disabled"
168
- name="helper4"
169
- helper={{ message: 'This is helper text' }}
170
- disabled
171
- />
172
- </>
173
- ),
174
- };
175
-
176
- export const RightContent: Story = {
177
- render: () => (
178
- <>
179
- <TextField
180
- id="right"
181
- label="Default"
182
- name="right1"
183
- rightContent={<button>Example</button>}
184
- />
185
- <TextField
186
- className="hover"
187
- id="right2"
188
- label="Hovered"
189
- name="right2"
190
- rightContent={<button>Example</button>}
191
- />
192
- <TextField
193
- className="focus"
194
- id="right3"
195
- label="Focused"
196
- name="right3"
197
- rightContent={<button>Example</button>}
198
- />
199
- <TextField
200
- id="right4-text"
201
- label="Default"
202
- name="right4-text"
203
- value="Example text"
204
- rightContent={<button>Example</button>}
205
- />
206
- <TextField
207
- className="hover"
208
- id="right5-text"
209
- label="Hovered"
210
- name="right5-text"
211
- value="Example text"
212
- rightContent={<button>Example</button>}
213
- />
214
- <TextField
215
- className="focus"
216
- id="right6-text"
217
- label="Focused"
218
- name="right6-text"
219
- value="Example text"
220
- rightContent={<button>Example</button>}
221
- />
222
-
223
- <TextField
224
- id="right4"
225
- label="Disabled"
226
- name="right4"
227
- rightContent={<button>Example</button>}
228
- disabled
229
- />
230
- </>
231
- ),
232
- };
233
-
234
- export const LeftContent: Story = {
235
- render: () => (
236
- <>
237
- <h1>No Designs</h1>
238
- <br />
239
- <br />
240
-
241
- <TextField id="left" label="Default" name="left1" leftContent="Example" />
242
- <TextField
243
- className="hover"
244
- id="left2"
245
- label="Hovered"
246
- name="left2"
247
- leftContent="Example"
248
- />
249
- <TextField
250
- className="focus"
251
- id="left3"
252
- label="Focused"
253
- name="left3"
254
- leftContent="Example"
255
- />
256
- <TextField
257
- id="left4"
258
- label="Disabled"
259
- name="left4"
260
- leftContent="Example"
261
- disabled
262
- />
263
- </>
264
- ),
265
- };
@@ -1,113 +0,0 @@
1
- import React from "react";
2
- import { render } from '@testing-library/react';
3
- import { describe, it, expect } from 'vitest';
4
- import userEvent from '@testing-library/user-event';
5
- import { TextField } from '.';
6
-
7
- describe('<TextField />', () => {
8
- it('should render', () => {
9
- const component = render(
10
- <TextField
11
- id="example-TextField"
12
- label="example-TextField"
13
- name="example"
14
- />,
15
- );
16
-
17
- expect(component).toBeTruthy();
18
- });
19
-
20
- it('should show the helper text when supplied to the component', () => {
21
- const component = render(
22
- <TextField
23
- helper={{ message: 'Helper text' }}
24
- id="example-TextField"
25
- label="example-TextField"
26
- name="example"
27
- />,
28
- );
29
-
30
- expect(component.getByText('Helper text')).toBeTruthy();
31
- });
32
-
33
- it('should show the error text when supplied to the component', () => {
34
- const component = render(
35
- <TextField
36
- error={{ message: 'Error text' }}
37
- id="example-TextField"
38
- label="example-TextField"
39
- name="example"
40
- />,
41
- );
42
-
43
- expect(component.getByText('Error text')).toBeTruthy();
44
- });
45
-
46
- it('should show the prefix when supplied to the component', () => {
47
- const component = render(
48
- <TextField
49
- id="example-TextField"
50
- label="example-TextField"
51
- name="example"
52
- prefix="Prefix"
53
- />,
54
- );
55
-
56
- expect(component.getByText('Prefix')).toBeTruthy();
57
- });
58
-
59
- it('should show the suffix when supplied to the component', () => {
60
- const component = render(
61
- <TextField
62
- id="example-TextField"
63
- label="example-TextField"
64
- name="example"
65
- suffix="Suffix"
66
- />,
67
- );
68
-
69
- expect(component.getByText('Suffix')).toBeTruthy();
70
- });
71
-
72
- it('should show the label when supplied to the component', () => {
73
- const component = render(
74
- <TextField
75
- id="example-TextField"
76
- label="example-TextField"
77
- name="example"
78
- />,
79
- );
80
-
81
- expect(component.getByText('example-TextField')).toBeTruthy();
82
- });
83
-
84
- it('Should show an error message if one is present', () => {
85
- const component = render(
86
- <TextField
87
- error={{ message: 'Error text' }}
88
- id="example-TextField"
89
- label="example-TextField"
90
- name="example"
91
- />,
92
- );
93
-
94
- expect(component.getByText('Error text')).toBeTruthy();
95
- });
96
-
97
- it('should be able to input text into the input field', async () => {
98
- const component = render(
99
- <TextField
100
- id="example-TextField"
101
- label="example-TextField"
102
- name="example"
103
- />,
104
- );
105
-
106
- const input = component.getByLabelText('example-TextField');
107
-
108
- await userEvent.type(input, 'Hello, World!');
109
-
110
- //@ts-ignore
111
- expect(input).toHaveValue('Hello, World!');
112
- });
113
- });
@@ -1 +0,0 @@
1
- export * from "./TextField";
@@ -1,36 +0,0 @@
1
-
2
-
3
- /* Product Variables */
4
-
5
- :root {
6
- /* Colors */
7
- --product-error: rgba(var(--system-red-rgb));
8
-
9
- /* Spacing */
10
- --product-spacing-1: 0.25rem;
11
- --product-spacing-2: 0.50rem;
12
- --product-spacing-3: 0.75rem;
13
- --product-spacing-4: 1rem;
14
- --product-spacing-5: 1.25rem;
15
- --product-spacing-6: 1.50rem;
16
- --product-spacing-7: 2rem;
17
- --product-spacing-8: 2.50rem;
18
- --product-spacing-9: 3rem;
19
- --product-spacing-10: 3.50rem;
20
- --product-spacing-11: 4rem;
21
-
22
- /* Border Radius */
23
- --product-radius-1: 0.25rem;
24
- --product-radius-2: 0.50rem;
25
- --product-radius-3: 0.75rem;
26
- --product-radius-4: 1rem;
27
-
28
- /* Border Width */
29
- --product-border-width-1: 2px;
30
-
31
-
32
- /* Component Specific Variables */
33
-
34
- --product-text-field-spacing: 0.625rem;
35
- --product-radio-select-spacing: 1.25rem;
36
- }
@@ -1,20 +0,0 @@
1
-
2
- /* Import all tokens from each section of Design System */
3
- @import "./tokens/variables.css";
4
-
5
- * {
6
- box-sizing: border-box;
7
- padding: 0;
8
- margin: 0;
9
- font-family: var(--font-primary);
10
- }
11
-
12
- .sr-only:not(:focus):not(:active) {
13
- clip: rect(0 0 0 0);
14
- clip-path: inset(50%);
15
- height: 1px;
16
- overflow: hidden;
17
- position: absolute;
18
- white-space: nowrap;
19
- width: 1px;
20
- }
@@ -1,15 +0,0 @@
1
- /* PRODUCT TOKENS */
2
- @import url("../../product/styles/tokens/variables.css");
3
-
4
- /* MARKETING TOKENS */
5
-
6
- @import url("../../marketing/styles/tokens/variables.css");
7
-
8
- /* GLOBAL TOKENS */
9
-
10
- :root {
11
- --font-primary: "Inter", sans-serif;
12
- --font-secondary: "Brygada 1918", sans-serif;
13
- }
14
-
15
-
package/tsconfig.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "skipLibCheck": true,
6
- "esModuleInterop": true,
7
- "allowSyntheticDefaultImports": true,
8
- "strict": true,
9
- "forceConsistentCasingInFileNames": true,
10
- "noFallthroughCasesInSwitch": true,
11
- "module": "esnext",
12
- "moduleResolution": "node",
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "jsx": "react",
16
- "declaration": true,
17
- "outDir": "./dist",
18
- },
19
- "include": ["src"],
20
- "exclude": ["./src/**/**.test.ts", "./src/**/**.test.tsx", "./src/**/**.stories.ts", "./src/**/**.stories.tsx" ]
21
- }