@infonomic/uikit 2.15.0 → 3.1.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/README.md +48 -6
- package/dist/components/badge/badge_module.css +49 -80
- package/dist/components/button/button_module.css +133 -227
- package/dist/components/button/control-buttons_module.css +2 -11
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +14 -7
- package/dist/components/button/copy-button.module.js +5 -5
- package/dist/components/button/copy-button_module.css +31 -12
- package/dist/components/dropdown/dropdown_module.css +8 -13
- package/dist/components/input/checkbox_module.css +42 -91
- package/dist/components/input/help-text_module.css +1 -5
- package/dist/components/input/input_module.css +42 -109
- package/dist/components/input/radio-group_module.css +14 -49
- package/dist/components/input/select_module.css +10 -17
- package/dist/components/notifications/alert_module.css +0 -4
- package/dist/components/pager/pagination_module.css +7 -18
- package/dist/components/scroll-area/scroll-area_module.css +4 -20
- package/dist/components/tooltip/tooltip_module.css +4 -14
- package/dist/icons/close-icon.js +1 -1
- package/dist/icons/copy-icon.d.ts.map +1 -1
- package/dist/icons/copy-icon.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/widgets/datepicker/datepicker_module.css +2 -2
- package/dist/widgets/drawer/drawer_module.css +1 -5
- package/dist/widgets/modal/modal_module.css +1 -5
- package/dist/widgets/timeline/timeline.d.ts.map +1 -0
- package/dist/widgets/timeline/timeline.module.js +17 -0
- package/dist/{components → widgets}/timeline/timeline_module.css +10 -10
- package/package.json +8 -8
- package/src/components/badge/badge.module.css +38 -68
- package/src/components/button/button-intents.stories.tsx +1 -1
- package/src/components/button/button-overrides.stories.tsx +43 -0
- package/src/components/button/button-variants.stories.tsx +1 -1
- package/src/components/button/button.module.css +135 -230
- package/src/components/button/control-buttons.module.css +5 -17
- package/src/components/button/control-buttons.stories.tsx +1 -1
- package/src/components/button/copy-button.module.css +32 -14
- package/src/components/button/copy-button.stories.tsx +6 -6
- package/src/components/button/copy-button.tsx +16 -12
- package/src/components/calendar/calendar.stories.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +9 -24
- package/src/components/input/checkbox.module.css +43 -99
- package/src/components/input/help-text.module.css +1 -12
- package/src/components/input/input.module.css +44 -119
- package/src/components/input/input.stories.tsx +1 -1
- package/src/components/input/radio-group.module.css +16 -72
- package/src/components/input/radio-group.stories.tsx +1 -1
- package/src/components/input/select.module.css +10 -17
- package/src/components/input/select.stories.tsx +1 -1
- package/src/components/notifications/alert.module.css +0 -4
- package/src/components/pager/pagination.module.css +7 -23
- package/src/components/scroll-area/scroll-area.module.css +4 -20
- package/src/components/tooltip/tooltip.module.css +6 -16
- package/src/icons/close-icon.tsx +1 -1
- package/src/icons/copy-icon.tsx +1 -2
- package/src/icons/icons.module.css +1 -0
- package/src/react.ts +1 -1
- package/src/styles/theme/theme.css +6 -4
- package/src/styles/theme/tokens.css +670 -0
- package/src/widgets/datepicker/datepicker.module.css +2 -2
- package/src/widgets/drawer/drawer.module.css +1 -5
- package/src/widgets/drawer/drawer.stories.tsx +1 -34
- package/src/widgets/modal/modal.module.css +1 -5
- package/src/{components → widgets}/timeline/timeline.stories.tsx +2 -2
- package/dist/components/timeline/timeline.d.ts.map +0 -1
- package/dist/components/timeline/timeline.module.js +0 -17
- /package/dist/{components → widgets}/timeline/timeline.d.ts +0 -0
- /package/dist/{components → widgets}/timeline/timeline.js +0 -0
- /package/src/components/button/{button-icon.stories.tsx → icon-button.stories.tsx} +0 -0
- /package/src/{components → widgets}/timeline/timeline.module.css +0 -0
- /package/src/{components → widgets}/timeline/timeline.tsx +0 -0
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
position: absolute;
|
|
20
20
|
right: 0;
|
|
21
21
|
height: 100%;
|
|
22
|
-
background-color: var(--
|
|
22
|
+
background-color: var(--surface-panel);
|
|
23
23
|
box-shadow: var(--shadow-md);
|
|
24
24
|
z-index: inherit;
|
|
25
25
|
}
|
|
@@ -28,10 +28,6 @@
|
|
|
28
28
|
animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.drawer-container:is(:global(.dark) *) {
|
|
32
|
-
background: var(--canvas-800);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
31
|
.drawer-depth-0.drawer-medium .drawer-container,
|
|
36
32
|
.drawer-depth-0.drawer-wide .drawer-container {
|
|
37
33
|
width: 90%;
|
|
@@ -16,19 +16,8 @@ export default {
|
|
|
16
16
|
export const Default = (): React.JSX.Element => {
|
|
17
17
|
const [isOpen, setIsOpen] = React.useState(false)
|
|
18
18
|
|
|
19
|
-
const whiteIcon = `
|
|
20
|
-
.white-icon {
|
|
21
|
-
fill: white;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dark .white-icon {
|
|
25
|
-
fill: black;
|
|
26
|
-
}
|
|
27
|
-
`
|
|
28
|
-
|
|
29
19
|
return (
|
|
30
20
|
<>
|
|
31
|
-
<style>{whiteIcon}</style>
|
|
32
21
|
<Button
|
|
33
22
|
onClick={() => {
|
|
34
23
|
setIsOpen(true)
|
|
@@ -54,7 +43,7 @@ export const Default = (): React.JSX.Element => {
|
|
|
54
43
|
setIsOpen(false)
|
|
55
44
|
}}
|
|
56
45
|
>
|
|
57
|
-
<CloseIcon width="14px" height="14px"
|
|
46
|
+
<CloseIcon width="14px" height="14px" />
|
|
58
47
|
</IconButton>
|
|
59
48
|
</Drawer.TopActions>
|
|
60
49
|
<Drawer.Header className="flex items-center justify-between mb-4">
|
|
@@ -69,22 +58,11 @@ export const Default = (): React.JSX.Element => {
|
|
|
69
58
|
)
|
|
70
59
|
}
|
|
71
60
|
|
|
72
|
-
const whiteIcon = `
|
|
73
|
-
.white-icon {
|
|
74
|
-
fill: white;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dark .white-icon {
|
|
78
|
-
fill: black;
|
|
79
|
-
}
|
|
80
|
-
`
|
|
81
|
-
|
|
82
61
|
export const Wide = (): React.JSX.Element => {
|
|
83
62
|
const [isOpen, setIsOpen] = React.useState(false)
|
|
84
63
|
|
|
85
64
|
return (
|
|
86
65
|
<>
|
|
87
|
-
<style>{whiteIcon}</style>
|
|
88
66
|
<Button
|
|
89
67
|
onClick={() => {
|
|
90
68
|
setIsOpen(true)
|
|
@@ -130,19 +108,8 @@ export const Nested = (): React.JSX.Element => {
|
|
|
130
108
|
const [isOpen1, setIsOpen1] = React.useState(false)
|
|
131
109
|
const [isOpen2, setIsOpen2] = React.useState(false)
|
|
132
110
|
|
|
133
|
-
const whiteIcon = `
|
|
134
|
-
.white-icon {
|
|
135
|
-
fill: white;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.dark .white-icon {
|
|
139
|
-
fill: black;
|
|
140
|
-
}
|
|
141
|
-
`
|
|
142
|
-
|
|
143
111
|
return (
|
|
144
112
|
<>
|
|
145
|
-
<style>{whiteIcon}</style>
|
|
146
113
|
<Button
|
|
147
114
|
onClick={() => {
|
|
148
115
|
setIsOpen1(true)
|
|
@@ -26,16 +26,12 @@
|
|
|
26
26
|
max-height: 88vh;
|
|
27
27
|
width: 100%;
|
|
28
28
|
bottom: 0;
|
|
29
|
-
background-color: var(--
|
|
29
|
+
background-color: var(--surface-panel);
|
|
30
30
|
border: 1px solid var(--border-color);
|
|
31
31
|
margin-left: var(--spacing-2);
|
|
32
32
|
margin-right: var(--spacing-2);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.modal-container:is(:global(.dark) *) {
|
|
36
|
-
background: var(--canvas-800);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
35
|
@media screen and (min-width: 640px) {
|
|
40
36
|
.modal-container {
|
|
41
37
|
max-height: calc(100vh - 24px);
|
|
@@ -9,13 +9,13 @@ const meta: Meta = {
|
|
|
9
9
|
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
10
10
|
* to learn how to generate automatic titles
|
|
11
11
|
*/
|
|
12
|
-
title: '
|
|
12
|
+
title: 'Widgets/Timeline',
|
|
13
13
|
component: TimelineComponent,
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default meta
|
|
17
17
|
|
|
18
|
-
export const
|
|
18
|
+
export const Default = (): React.JSX.Element => (
|
|
19
19
|
<div
|
|
20
20
|
style={{
|
|
21
21
|
maxWidth: '400px',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../src/components/timeline/timeline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,QAAQ;2CAKlB,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;mDAmBjC,SAAS,GAAG;QACb,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;KACnC;mDAoBE,SAAS,GAAG;QACb,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;KACnC;mDAmBE,SAAS,GAAG;QACb,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;KACnC;sDA0BE,YAAY,GAAG;QAChB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;KACtC;mDAuBE,SAAS,GAAG;QACb,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;KACnC;sDAmBE,YAAY,GAAG;QAChB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;KACtC;CApIA,CAAA;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U,YAAa,SAAQ,qBAAqB;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./timeline_module.css";
|
|
2
|
-
const timeline_module = {
|
|
3
|
-
timeline: "timeline-witEMC",
|
|
4
|
-
"timeline-root": "timeline-root-EL5aTZ",
|
|
5
|
-
timelineRoot: "timeline-root-EL5aTZ",
|
|
6
|
-
"timeline-item": "timeline-item-WlVGZ9",
|
|
7
|
-
timelineItem: "timeline-item-WlVGZ9",
|
|
8
|
-
"timeline-icon": "timeline-icon-QQoRLJ",
|
|
9
|
-
timelineIcon: "timeline-icon-QQoRLJ",
|
|
10
|
-
"timeline-heading": "timeline-heading-hkww5U",
|
|
11
|
-
timelineHeading: "timeline-heading-hkww5U",
|
|
12
|
-
"timeline-date": "timeline-date-YOt1ZT",
|
|
13
|
-
timelineDate: "timeline-date-YOt1ZT",
|
|
14
|
-
"timeline-content": "timeline-content-_pR_C5",
|
|
15
|
-
timelineContent: "timeline-content-_pR_C5"
|
|
16
|
-
};
|
|
17
|
-
export { timeline_module as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|