@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.
Files changed (74) hide show
  1. package/README.md +48 -6
  2. package/dist/components/badge/badge_module.css +49 -80
  3. package/dist/components/button/button_module.css +133 -227
  4. package/dist/components/button/control-buttons_module.css +2 -11
  5. package/dist/components/button/copy-button.d.ts.map +1 -1
  6. package/dist/components/button/copy-button.js +14 -7
  7. package/dist/components/button/copy-button.module.js +5 -5
  8. package/dist/components/button/copy-button_module.css +31 -12
  9. package/dist/components/dropdown/dropdown_module.css +8 -13
  10. package/dist/components/input/checkbox_module.css +42 -91
  11. package/dist/components/input/help-text_module.css +1 -5
  12. package/dist/components/input/input_module.css +42 -109
  13. package/dist/components/input/radio-group_module.css +14 -49
  14. package/dist/components/input/select_module.css +10 -17
  15. package/dist/components/notifications/alert_module.css +0 -4
  16. package/dist/components/pager/pagination_module.css +7 -18
  17. package/dist/components/scroll-area/scroll-area_module.css +4 -20
  18. package/dist/components/tooltip/tooltip_module.css +4 -14
  19. package/dist/icons/close-icon.js +1 -1
  20. package/dist/icons/copy-icon.d.ts.map +1 -1
  21. package/dist/icons/copy-icon.js +1 -1
  22. package/dist/react.d.ts +1 -1
  23. package/dist/react.d.ts.map +1 -1
  24. package/dist/react.js +1 -1
  25. package/dist/styles/styles.css +1 -1
  26. package/dist/widgets/datepicker/datepicker_module.css +2 -2
  27. package/dist/widgets/drawer/drawer_module.css +1 -5
  28. package/dist/widgets/modal/modal_module.css +1 -5
  29. package/dist/widgets/timeline/timeline.d.ts.map +1 -0
  30. package/dist/widgets/timeline/timeline.module.js +17 -0
  31. package/dist/{components → widgets}/timeline/timeline_module.css +10 -10
  32. package/package.json +8 -8
  33. package/src/components/badge/badge.module.css +38 -68
  34. package/src/components/button/button-intents.stories.tsx +1 -1
  35. package/src/components/button/button-overrides.stories.tsx +43 -0
  36. package/src/components/button/button-variants.stories.tsx +1 -1
  37. package/src/components/button/button.module.css +135 -230
  38. package/src/components/button/control-buttons.module.css +5 -17
  39. package/src/components/button/control-buttons.stories.tsx +1 -1
  40. package/src/components/button/copy-button.module.css +32 -14
  41. package/src/components/button/copy-button.stories.tsx +6 -6
  42. package/src/components/button/copy-button.tsx +16 -12
  43. package/src/components/calendar/calendar.stories.tsx +1 -1
  44. package/src/components/dropdown/dropdown.module.css +9 -24
  45. package/src/components/input/checkbox.module.css +43 -99
  46. package/src/components/input/help-text.module.css +1 -12
  47. package/src/components/input/input.module.css +44 -119
  48. package/src/components/input/input.stories.tsx +1 -1
  49. package/src/components/input/radio-group.module.css +16 -72
  50. package/src/components/input/radio-group.stories.tsx +1 -1
  51. package/src/components/input/select.module.css +10 -17
  52. package/src/components/input/select.stories.tsx +1 -1
  53. package/src/components/notifications/alert.module.css +0 -4
  54. package/src/components/pager/pagination.module.css +7 -23
  55. package/src/components/scroll-area/scroll-area.module.css +4 -20
  56. package/src/components/tooltip/tooltip.module.css +6 -16
  57. package/src/icons/close-icon.tsx +1 -1
  58. package/src/icons/copy-icon.tsx +1 -2
  59. package/src/icons/icons.module.css +1 -0
  60. package/src/react.ts +1 -1
  61. package/src/styles/theme/theme.css +6 -4
  62. package/src/styles/theme/tokens.css +670 -0
  63. package/src/widgets/datepicker/datepicker.module.css +2 -2
  64. package/src/widgets/drawer/drawer.module.css +1 -5
  65. package/src/widgets/drawer/drawer.stories.tsx +1 -34
  66. package/src/widgets/modal/modal.module.css +1 -5
  67. package/src/{components → widgets}/timeline/timeline.stories.tsx +2 -2
  68. package/dist/components/timeline/timeline.d.ts.map +0 -1
  69. package/dist/components/timeline/timeline.module.js +0 -17
  70. /package/dist/{components → widgets}/timeline/timeline.d.ts +0 -0
  71. /package/dist/{components → widgets}/timeline/timeline.js +0 -0
  72. /package/src/components/button/{button-icon.stories.tsx → icon-button.stories.tsx} +0 -0
  73. /package/src/{components → widgets}/timeline/timeline.module.css +0 -0
  74. /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(--canvas-25);
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" svgClassName="white-icon" />
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(--canvas-25);
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: 'Components',
12
+ title: 'Widgets/Timeline',
13
13
  component: TimelineComponent,
14
14
  }
15
15
 
16
16
  export default meta
17
17
 
18
- export const Timeline = (): React.JSX.Element => (
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,GA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AAM,CAAA;CACnB;AAwBD,KAAK,cAAc,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;AAC9C,KAAK,qBAAqB,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AACjE,UAAU,YAAa,SAAQ,qBAAqB;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAqBD,KAAK,WAAW,GAAG,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;AAC7C,KAAK,kBAAkB,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAChE,UAAU,SAAU,SAAQ,kBAAkB;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiBD,KAAK,cAAc,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;AAC7C,KAAK,qBAAqB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAClE,UAAU,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 };