@infonomic/uikit 3.7.0 → 3.9.0
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/dist/components/button/button-group_module.css +1 -1
- package/dist/components/container/container_module.css +8 -8
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/dropdown/dropdown_module.css +1 -1
- package/dist/components/forms/calendar_module.css +13 -46
- package/dist/components/forms/radio-group_module.css +2 -2
- package/dist/components/notifications/alert_module.css +15 -15
- package/dist/components/notifications/toast_module.css +1 -1
- package/dist/components/pager/pagination_module.css +1 -1
- package/dist/components/table/table_module.css +2 -2
- package/dist/components/tabs/tabs_module.css +4 -5
- package/dist/icons/icon-element.d.ts.map +1 -1
- package/dist/icons/icon-element.js +2 -1
- package/dist/icons/icons.module.js +2 -0
- package/dist/icons/icons_module.css +7 -0
- package/dist/styles/styles.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/widgets/datepicker/datepicker.js +2 -2
- package/dist/widgets/datepicker/datepicker_module.css +13 -13
- package/dist/widgets/drawer/drawer_module.css +7 -7
- package/dist/widgets/modal/modal_module.css +13 -13
- package/dist/widgets/timeline/timeline_module.css +7 -7
- package/package.json +1 -1
- package/src/components/accordion/accordion.stories.tsx +2 -2
- package/src/components/avatar/avatar.stories.tsx +1 -1
- package/src/components/badge/badge.stories.tsx +1 -1
- package/src/components/button/button-group.module.css +1 -1
- package/src/components/button/button-group.stories.tsx +1 -1
- package/src/components/button/button-intents.stories.tsx +1 -1
- package/src/components/button/button-variants.stories.tsx +1 -1
- package/src/components/button/control-buttons.stories.tsx +2 -2
- package/src/components/button/icon-button.stories.tsx +2 -2
- package/src/components/card/card.stories.tsx +2 -2
- package/src/components/container/container.module.css +9 -8
- package/src/components/container/container.stories.tsx +2 -8
- package/src/components/dropdown/dropdown.module.css +1 -1
- package/src/components/dropdown/dropdown.stories.tsx +1 -1
- package/src/components/dropdown/dropdown.tsx +1 -1
- package/src/components/forms/calendar.module.css +13 -59
- package/src/components/forms/radio-group.module.css +2 -2
- package/src/components/notifications/alert.module.css +15 -15
- package/src/components/notifications/alert.stories.tsx +1 -1
- package/src/components/notifications/toast.module.css +1 -1
- package/src/components/pager/pagination.module.css +1 -1
- package/src/components/table/table.module.css +2 -2
- package/src/components/tabs/tabs.module.css +7 -5
- package/src/components/tabs/tabs.stories.tsx +1 -1
- package/src/icons/icon-element.tsx +3 -1
- package/src/icons/icons.module.css +7 -0
- package/src/loaders/loaders.stories.tsx +1 -1
- package/src/styles/base/base.css +12 -2
- package/src/styles/base/borders.css +30 -0
- package/src/styles/base/breakpoints.css +15 -0
- package/src/styles/base/opacity.css +12 -0
- package/src/styles/base/shadows.css +13 -0
- package/src/styles/base/size.css +24 -0
- package/src/styles/base/spacing.css +24 -0
- package/src/styles/base/transitions.css +7 -0
- package/src/styles/base/typography.css +47 -0
- package/src/styles/base/z-index.css +12 -0
- package/src/styles/components/components.css +1 -8
- package/src/styles/functional/borders.css +23 -0
- package/src/styles/functional/colors.css +51 -94
- package/src/styles/functional/functional.css +5 -1
- package/src/styles/functional/grid-flex.css +52 -0
- package/src/styles/functional/surfaces.css +115 -0
- package/src/styles/functional/typography.css +44 -0
- package/src/styles/theme/autofill.css +14 -5
- package/src/styles/theme/defaults.css +75 -0
- package/src/styles/theme/scrollers.css +4 -2
- package/src/styles/theme/theme.css +15 -130
- package/src/styles/theme/theme.stories.tsx +1 -1
- package/src/styles/typography/prose.css +2 -2
- package/src/styles/utils/utility-classes.css +202 -70
- package/src/widgets/datepicker/datepicker.module.css +13 -13
- package/src/widgets/datepicker/datepicker.tsx +2 -2
- package/src/widgets/drawer/drawer.module.css +7 -7
- package/src/widgets/modal/modal.module.css +13 -13
- package/src/widgets/timeline/timeline.module.css +7 -7
- package/src/styles/base/vars.css +0 -189
- package/src/styles/components/card.css +0 -20
- package/src/styles/components/checkbox.css +0 -55
- package/src/styles/components/directional-button.css +0 -92
- package/src/styles/components/dropdown.css +0 -19
- package/src/styles/components/icon-element.css +0 -10
- package/src/styles/components/list-checkbox.css +0 -60
- package/src/styles/components/popover.css +0 -15
- package/src/styles/components/toast.css +0 -18
- package/src/styles/theme/typography.css +0 -26
|
@@ -10,7 +10,7 @@ type Story = StoryObj<typeof Button>
|
|
|
10
10
|
|
|
11
11
|
const AllIntents = (): React.JSX.Element => {
|
|
12
12
|
return (
|
|
13
|
-
<div style={{ maxWidth: '800px', margin: '
|
|
13
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
14
14
|
{intent.map((i) => {
|
|
15
15
|
return (
|
|
16
16
|
<div
|
|
@@ -13,7 +13,7 @@ type Story = StoryObj<typeof Button>
|
|
|
13
13
|
const AllVariants = (): React.JSX.Element => {
|
|
14
14
|
return (
|
|
15
15
|
<>
|
|
16
|
-
<div style={{ maxWidth: '800px', margin: '
|
|
16
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
17
17
|
{variant.map((variant: any) => {
|
|
18
18
|
return (
|
|
19
19
|
<div
|
|
@@ -6,7 +6,7 @@ type Story = StoryObj<typeof DirectionalButton>
|
|
|
6
6
|
|
|
7
7
|
const ControlsDemo = (): React.JSX.Element => {
|
|
8
8
|
return (
|
|
9
|
-
|
|
9
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
10
10
|
<div className="ml-12 mb-6">
|
|
11
11
|
<h2 style={{ fontSize: '1.2rem', margin: '1rem 0' }}>Small</h2>
|
|
12
12
|
<div className="flex items-center gap-4 mb-6">
|
|
@@ -40,7 +40,7 @@ const ControlsDemo = (): React.JSX.Element => {
|
|
|
40
40
|
<DirectionalButton direction="down" size="lg" />
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
|
-
|
|
43
|
+
</div>
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -28,7 +28,7 @@ const getUserIconSize = (size: string) => {
|
|
|
28
28
|
export const IconButtonsRound = (): React.JSX.Element => {
|
|
29
29
|
return (
|
|
30
30
|
<>
|
|
31
|
-
<div style={{ maxWidth: '800px', margin: '
|
|
31
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
32
32
|
{variant.map((variant: any) => {
|
|
33
33
|
return (
|
|
34
34
|
<div
|
|
@@ -82,7 +82,7 @@ export const IconButtonsRound = (): React.JSX.Element => {
|
|
|
82
82
|
export const IconButtonsSquare = (): React.JSX.Element => {
|
|
83
83
|
return (
|
|
84
84
|
<>
|
|
85
|
-
<div style={{ maxWidth: '800px', margin: '
|
|
85
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
86
86
|
{variant.map((variant: any) => {
|
|
87
87
|
return (
|
|
88
88
|
<div
|
|
@@ -17,7 +17,7 @@ export default meta
|
|
|
17
17
|
|
|
18
18
|
export const Card = (): React.JSX.Element => {
|
|
19
19
|
return (
|
|
20
|
-
|
|
20
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
21
21
|
<div style={{ marginBottom: '48px' }} className="mb-6">
|
|
22
22
|
<div style={{ maxWidth: '400px', marginBottom: '24px' }}>
|
|
23
23
|
<CardComponent>
|
|
@@ -56,6 +56,6 @@ export const Card = (): React.JSX.Element => {
|
|
|
56
56
|
</CardComponent>
|
|
57
57
|
</div>
|
|
58
58
|
</div>
|
|
59
|
-
|
|
59
|
+
</div>
|
|
60
60
|
)
|
|
61
61
|
}
|
|
@@ -3,29 +3,30 @@
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
.container {
|
|
5
5
|
width: 100%;
|
|
6
|
-
padding: 0
|
|
6
|
+
padding: 0 1rem;
|
|
7
7
|
margin: 0 auto;
|
|
8
|
-
max-width:
|
|
8
|
+
max-width: 60rem;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* Shy edges */
|
|
11
12
|
/* Large */
|
|
12
|
-
@media (min-width:
|
|
13
|
+
@media (min-width: 66rem) {
|
|
13
14
|
.container {
|
|
14
|
-
max-width:
|
|
15
|
+
max-width: 64rem;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
/* X-Large */
|
|
19
|
-
@media (min-width:
|
|
20
|
+
@media (min-width: 77rem) {
|
|
20
21
|
.container {
|
|
21
|
-
max-width:
|
|
22
|
+
max-width: 74.375rem;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/* 2X-Large */
|
|
26
|
-
@media (min-width:
|
|
27
|
+
@media (min-width: 94rem) {
|
|
27
28
|
.container {
|
|
28
|
-
max-width:
|
|
29
|
+
max-width: 87.5rem;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
|
-
import type { Meta
|
|
4
|
+
import type { Meta } from '@storybook/react-vite'
|
|
5
5
|
|
|
6
6
|
import { Section } from '../section/section.js'
|
|
7
7
|
import { Container as ContainerComponent } from './container.js'
|
|
@@ -17,14 +17,12 @@ const meta: Meta<typeof ContainerComponent> = {
|
|
|
17
17
|
|
|
18
18
|
export default meta
|
|
19
19
|
|
|
20
|
-
type Story = StoryObj<typeof ContainerComponent>
|
|
21
|
-
|
|
22
20
|
export const Container = (): React.JSX.Element => {
|
|
23
21
|
return (
|
|
24
22
|
<Section style={{ height: '100vh' }}>
|
|
25
23
|
<ContainerComponent
|
|
24
|
+
className="primary-strong"
|
|
26
25
|
style={{
|
|
27
|
-
backgroundColor: 'lightblue',
|
|
28
26
|
height: '400px',
|
|
29
27
|
display: 'flex',
|
|
30
28
|
alignItems: 'center',
|
|
@@ -36,7 +34,3 @@ export const Container = (): React.JSX.Element => {
|
|
|
36
34
|
</Section>
|
|
37
35
|
)
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
// export const Default: Story = {
|
|
41
|
-
// render: () => <DivDemo />,
|
|
42
|
-
// }
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
margin: 0 auto;
|
|
62
62
|
width: 90%;
|
|
63
63
|
background-color: var(--surface-panel-border);
|
|
64
|
-
margin: var(--spacing-
|
|
64
|
+
margin: var(--spacing-4) 0;
|
|
65
65
|
border-top-width: var(--border-width-thin);
|
|
66
66
|
border-top-color: var(--surface-panel-border);
|
|
67
67
|
border-top-style: var(--border-style-solid);
|
|
@@ -62,7 +62,7 @@ export const Dropdown: Story = {
|
|
|
62
62
|
</DropdownComponent.Trigger>
|
|
63
63
|
|
|
64
64
|
<DropdownComponent.Portal>
|
|
65
|
-
<DropdownComponent.Content align="end" sideOffset={10}>
|
|
65
|
+
<DropdownComponent.Content align="end" data-side="top" sideOffset={10}>
|
|
66
66
|
<DropdownComponent.Item>
|
|
67
67
|
<div className="dropdown-item-content">
|
|
68
68
|
<span className="dropdown-item-content-icon">
|
|
@@ -149,7 +149,7 @@ const SubContent = ({
|
|
|
149
149
|
return (
|
|
150
150
|
<DropdownMenuPrimitive.SubContent
|
|
151
151
|
ref={ref}
|
|
152
|
-
className={cx('dropdown-menu-subcontent', className)}
|
|
152
|
+
className={cx('dropdown-menu-subcontent', styles['dropdown-subcontent'], className)}
|
|
153
153
|
{...rest}
|
|
154
154
|
>
|
|
155
155
|
{children}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
.day-picker {
|
|
5
|
-
padding: var(--spacing-
|
|
5
|
+
padding: var(--spacing-12)
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/* relative flex flex-col gap-4 sm:flex-row */
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
position: relative;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
gap: var(--spacing-
|
|
13
|
+
gap: var(--spacing-16);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* 'relative flex h-7 items-center justify-center', */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
|
-
gap: var(--spacing-
|
|
31
|
+
gap: var(--spacing-8);
|
|
32
32
|
width: 100%;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
|
|
104
104
|
/* 'pt-3 text-sm' */
|
|
105
105
|
.footer {
|
|
106
|
-
padding-top: var(--spacing-
|
|
106
|
+
padding-top: var(--spacing-12);
|
|
107
107
|
font-size: 0.875rem;
|
|
108
108
|
/* 14px */
|
|
109
109
|
}
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
.month-grid {
|
|
137
137
|
margin-left: auto;
|
|
138
138
|
margin-right: auto;
|
|
139
|
-
margin-top: var(--spacing-
|
|
139
|
+
margin-top: var(--spacing-16);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* 'mt-2 flex w-max items-start' */
|
|
143
143
|
.week {
|
|
144
|
-
margin-top: var(--spacing-
|
|
144
|
+
margin-top: var(--spacing-8);
|
|
145
145
|
display: flex;
|
|
146
146
|
width: max-content;
|
|
147
147
|
align-items: flex-start;
|
|
@@ -170,13 +170,13 @@
|
|
|
170
170
|
/* '[&>button]:bg-accent [&>button]:text-accent-foreground', */
|
|
171
171
|
.today>button {
|
|
172
172
|
/* background-color: var(--gray-50); */
|
|
173
|
-
border: solid 1px var(--primary
|
|
173
|
+
border: solid 1px var(--stroke-primary);
|
|
174
174
|
color: var(--foreground);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.day>button:hover,
|
|
178
178
|
.day-selected>button {
|
|
179
|
-
background-color: var(--primary-
|
|
179
|
+
background-color: var(--fill-primary-strong);
|
|
180
180
|
color: white;
|
|
181
181
|
}
|
|
182
182
|
|
|
@@ -198,17 +198,17 @@
|
|
|
198
198
|
|
|
199
199
|
/* 'bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground' */
|
|
200
200
|
.button-range {
|
|
201
|
-
background-color: var(--
|
|
201
|
+
background-color: var(--fill-primary-weak);
|
|
202
202
|
color: var(--foreground);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.button-range>button {
|
|
206
|
-
background-color: var(--primary-
|
|
206
|
+
background-color: var(--fill-primary-strong);
|
|
207
207
|
color: white;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.button-range>button:hover {
|
|
211
|
-
background-color: var(--primary-
|
|
211
|
+
background-color: var(--fill-primary-strong);
|
|
212
212
|
color: var(--foreground);
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
|
|
225
225
|
/* 'bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground [&>button]:hover:bg-transparent [&>button]:hover:!text-foreground', */
|
|
226
226
|
.range-middle {
|
|
227
|
-
background-color: var(--
|
|
227
|
+
background-color: var(--fill-primary-weak);
|
|
228
228
|
color: var(--foreground);
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
color: var(--foreground);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
@media (min-width:
|
|
237
|
+
@media (min-width: 40rem) {
|
|
238
238
|
.months {
|
|
239
239
|
flex-direction: row;
|
|
240
240
|
}
|
|
@@ -265,51 +265,5 @@
|
|
|
265
265
|
stroke: var(--primary-200);
|
|
266
266
|
opacity: 0.7;
|
|
267
267
|
}
|
|
268
|
-
|
|
269
|
-
.footer {
|
|
270
|
-
color: var(--muted);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.day>button {
|
|
274
|
-
color: var(--foreground);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.day>button:hover,
|
|
278
|
-
.day-selected>button {
|
|
279
|
-
background-color: var(--primary-400);
|
|
280
|
-
color: var(--foreground);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* '[&>button]:bg-accent [&>button]:text-accent-foreground', */
|
|
284
|
-
.today>button {
|
|
285
|
-
/* background-color: var(--canvas-700); */
|
|
286
|
-
border: solid 1px var(--primary-300);
|
|
287
|
-
color: var(--foreground);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.button-range {
|
|
291
|
-
background-color: var(--canvas-700);
|
|
292
|
-
color: var(--foreground);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.button-range>button {
|
|
296
|
-
background-color: var(--primary-400);
|
|
297
|
-
color: var(--foreground);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.button-range>button:hover {
|
|
301
|
-
background-color: var(--primary-400);
|
|
302
|
-
color: var(--foreground);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.range-middle {
|
|
306
|
-
background-color: var(--canvas-700);
|
|
307
|
-
color: var(--foreground);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.range-middle>button {
|
|
311
|
-
background-color: var(--canvas-700);
|
|
312
|
-
color: var(--foreground);
|
|
313
|
-
}
|
|
314
268
|
}
|
|
315
269
|
}
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
color: var(--foreground);
|
|
79
79
|
font-size: 15px;
|
|
80
80
|
line-height: 1;
|
|
81
|
-
padding-left: var(--spacing-
|
|
81
|
+
padding-left: var(--spacing-8);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.row .label {
|
|
85
85
|
padding-left: 0;
|
|
86
|
-
padding-right: var(--spacing-
|
|
86
|
+
padding-right: var(--spacing-16)
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: start;
|
|
53
53
|
width: 100%;
|
|
54
|
-
margin-bottom: var(--spacing-
|
|
54
|
+
margin-bottom: var(--spacing-8);
|
|
55
55
|
gap: var(--gap-2);
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -74,37 +74,37 @@
|
|
|
74
74
|
|
|
75
75
|
/* Intents */
|
|
76
76
|
.primary {
|
|
77
|
-
--alert-border: var(--primary
|
|
78
|
-
--alert-background:
|
|
77
|
+
--alert-border: var(--stroke-primary);
|
|
78
|
+
--alert-background: var(--fill-primary-weak);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.secondary {
|
|
82
|
-
--alert-border: var(--secondary
|
|
83
|
-
--alert-background:
|
|
82
|
+
--alert-border: var(--stroke-secondary);
|
|
83
|
+
--alert-background: var(--fill-secondary-weak);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.noeffect {
|
|
87
|
-
--alert-border: var(--
|
|
88
|
-
--alert-background:
|
|
87
|
+
--alert-border: var(--stroke-noeffect);
|
|
88
|
+
--alert-background: var(--fill-noeffect-weak);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.success {
|
|
92
|
-
--alert-border: var(--
|
|
93
|
-
--alert-background:
|
|
92
|
+
--alert-border: var(--stroke-success);
|
|
93
|
+
--alert-background: var(--fill-success-weak);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.info {
|
|
97
|
-
--alert-border: var(--
|
|
98
|
-
--alert-background:
|
|
97
|
+
--alert-border: var(--stroke-info);
|
|
98
|
+
--alert-background: var(--fill-info-weak);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.warning {
|
|
102
|
-
--alert-border: var(--
|
|
103
|
-
--alert-background:
|
|
102
|
+
--alert-border: var(--stroke-warning);
|
|
103
|
+
--alert-background: var(--fill-warning-weak);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.danger {
|
|
107
|
-
--alert-border: var(--
|
|
108
|
-
--alert-background:
|
|
107
|
+
--alert-border: var(--stroke-danger);
|
|
108
|
+
--alert-background: var(--fill-danger-weak);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -7,7 +7,7 @@ import { Alert as AlertComponent } from './alert.js'
|
|
|
7
7
|
|
|
8
8
|
export const Alerts = (): React.JSX.Element => {
|
|
9
9
|
return (
|
|
10
|
-
<div style={{ maxWidth: '600px', margin: '
|
|
10
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
11
11
|
{intent.map((intent: Intent) => {
|
|
12
12
|
if (intent !== 'noeffect') {
|
|
13
13
|
return (
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
/* 'whitespace-nowrap px-2 py-4 text-sm text-gray-700 uppercase bg-canvas-100/50 dark:bg-canvas-800/50 dark:text-gray-200', */
|
|
48
48
|
.table-heading-cell {
|
|
49
49
|
white-space: nowrap;
|
|
50
|
-
padding: var(--spacing-
|
|
50
|
+
padding: var(--spacing-8) var(--spacing-8);
|
|
51
51
|
font-size: 0.975rem; /* 15.6px */
|
|
52
52
|
/* text-transform: uppercase; */
|
|
53
53
|
background-color: var(--canvas-50);
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
/* not-prose px-2 py-2 text-sm [&_a]:underline */
|
|
57
57
|
.table-cell {
|
|
58
|
-
padding: var(--spacing-
|
|
58
|
+
padding: var(--spacing-8);
|
|
59
59
|
font-size: var(--font-size-sm);
|
|
60
60
|
|
|
61
61
|
& a {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
.tabs-root {
|
|
6
6
|
display: flex;
|
|
7
|
-
padding: var(--spacing-
|
|
7
|
+
padding: var(--spacing-8);
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
gap: var(--spacing-
|
|
9
|
+
gap: var(--spacing-4);
|
|
10
10
|
border-radius: var(--border-radius-md);
|
|
11
11
|
border: 1px solid var(--border-color);
|
|
12
12
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
gap: var(--gap-2);
|
|
18
18
|
align-items: center;
|
|
19
19
|
border-radius: var(--border-radius-md);
|
|
20
|
-
padding: var(--spacing-
|
|
20
|
+
padding: var(--spacing-4);
|
|
21
21
|
border: 1px solid var(--border-color);
|
|
22
22
|
|
|
23
23
|
&:focus-visible {
|
|
@@ -40,12 +40,14 @@
|
|
|
40
40
|
|
|
41
41
|
&:focus {
|
|
42
42
|
position: relative;
|
|
43
|
-
|
|
43
|
+
/* NOTE: will override ring shadows for buttons */
|
|
44
|
+
/* Will revisit as we're going to rewrite our uikit tabs component */
|
|
45
|
+
/* box-shadow: 0 0 0 2px black; */
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.tabs-content {
|
|
48
|
-
margin-top: var(--spacing-
|
|
50
|
+
margin-top: var(--spacing-8);
|
|
49
51
|
padding: 6px;
|
|
50
52
|
outline: none;
|
|
51
53
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
|
+
import styles from './icons.module.css'
|
|
5
|
+
|
|
4
6
|
import cx from 'classnames'
|
|
5
7
|
|
|
6
8
|
export interface IconElementProps extends React.ComponentProps<'div'> {
|
|
@@ -23,7 +25,7 @@ export const IconElement = (props: IconElementProps): React.JSX.Element => {
|
|
|
23
25
|
justifyContent: 'center',
|
|
24
26
|
marginRight: menuItem != null && menuItem ? '1.2rem' : '0',
|
|
25
27
|
}}
|
|
26
|
-
className={cx('
|
|
28
|
+
className={cx(styles['element-root'], className)}
|
|
27
29
|
{...rest}
|
|
28
30
|
>
|
|
29
31
|
{children}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
|
-
import { LoaderEllipsis } from './ellipses.js'
|
|
5
4
|
import { LoaderRing } from './ring.js'
|
|
5
|
+
import { LoaderEllipsis } from './ellipses.js'
|
|
6
6
|
import { LoaderSpinner } from './spinner.js'
|
|
7
7
|
|
|
8
8
|
interface LoaderProps {
|
package/src/styles/base/base.css
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
@import "./reset.css";
|
|
2
|
+
|
|
3
|
+
@import "./animations.css";
|
|
4
|
+
@import "./borders.css";
|
|
5
|
+
@import "./breakpoints.css";
|
|
2
6
|
@import "./colors.css";
|
|
3
|
-
@import "./
|
|
4
|
-
@import "./
|
|
7
|
+
@import "./opacity.css";
|
|
8
|
+
@import "./shadows.css";
|
|
9
|
+
@import "./spacing.css";
|
|
10
|
+
@import "./size.css";
|
|
11
|
+
@import "./transitions.css";
|
|
12
|
+
@import "./typography.css";
|
|
13
|
+
@import "./z-index.css";
|
|
14
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@layer infonomic-base {
|
|
2
|
+
:root {
|
|
3
|
+
/* ========================================
|
|
4
|
+
BORDER & RADIUS
|
|
5
|
+
======================================== */
|
|
6
|
+
--border-width-thin: 1px;
|
|
7
|
+
--border-width-normal: 2px;
|
|
8
|
+
--border-width-thick: 4px;
|
|
9
|
+
|
|
10
|
+
--border-style-solid: solid;
|
|
11
|
+
--border-style-dashed: dashed;
|
|
12
|
+
--border-style-dotted: dotted;
|
|
13
|
+
|
|
14
|
+
--border-radius-none: 0px;
|
|
15
|
+
--border-radius-sm: 4px;
|
|
16
|
+
--border-radius-md: 8px;
|
|
17
|
+
--border-radius-lg: 12px;
|
|
18
|
+
--border-radius-xl: 16px;
|
|
19
|
+
--border-radius-2xl: 24px;
|
|
20
|
+
--border-radius-full: 9999px;
|
|
21
|
+
|
|
22
|
+
/* ========================================
|
|
23
|
+
RINGS
|
|
24
|
+
======================================== */
|
|
25
|
+
|
|
26
|
+
--ring-offset-width: 2px;
|
|
27
|
+
--ring-inset: ;
|
|
28
|
+
--ring-shadow: 0 0 #0000;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@layer infonomic-base {
|
|
2
|
+
:root {
|
|
3
|
+
/* ========================================
|
|
4
|
+
BREAKPOINTS - must match any that are used in Tailwind CSS
|
|
5
|
+
Note: Values in rem (1rem = 16px at default font size)
|
|
6
|
+
======================================== */
|
|
7
|
+
--breakpoint-xs: 30rem; /* 480px */
|
|
8
|
+
--breakpoint-sm: 40rem; /* 640px */
|
|
9
|
+
--breakpoint-md: 48rem; /* 768px */
|
|
10
|
+
--breakpoint-lg: 66rem; /* 1056px */
|
|
11
|
+
/* our container component will set max width to common screen size */
|
|
12
|
+
--breakpoint-xl: 77rem; /* 1232px */
|
|
13
|
+
--breakpoint-2xl: 94rem; /* 1504px */
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer infonomic-base {
|
|
2
|
+
:root {
|
|
3
|
+
/* ========================================
|
|
4
|
+
SHADOWS
|
|
5
|
+
======================================== */
|
|
6
|
+
--shadow: 0 0 #0000;
|
|
7
|
+
--shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.05);
|
|
8
|
+
--shadow-sm: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
9
|
+
--shadow-md: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
10
|
+
--shadow-lg: 0px 6px 12px rgba(0, 0, 0, 0.15);
|
|
11
|
+
--shadow-xl: 0px 8px 16px rgba(0, 0, 0, 0.2);
|
|
12
|
+
}
|
|
13
|
+
}
|