@occmundial/occ-atomic 3.0.0-beta.5 → 3.0.0-beta.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/CHANGELOG.md +407 -0
  2. package/build/Avatar/Avatar.js +69 -21
  3. package/build/Avatar/Avatar.test.js +15 -8
  4. package/build/Avatar/AvatarContent/AvatarContent.js +61 -21
  5. package/build/Avatar/AvatarContent/AvatarContent.test.js +4 -18
  6. package/build/Avatar/AvatarContent/__snapshots__/AvatarContent.test.js.snap +75 -15
  7. package/build/Avatar/AvatarContent/styles.js +88 -21
  8. package/build/Avatar/__snapshots__/Avatar.test.js.snap +11 -2
  9. package/build/Avatar/styles.js +18 -7
  10. package/build/Banner/Banner.js +30 -40
  11. package/build/Banner/Banner.test.js +64 -17
  12. package/build/Banner/__snapshots__/Banner.test.js.snap +0 -28
  13. package/build/Banner/index.js +1 -6
  14. package/build/Button/Button.js +1 -1
  15. package/build/Button/Button.test.js +0 -11
  16. package/build/Button/__snapshots__/Button.test.js.snap +54 -60
  17. package/build/Button/styles.js +42 -75
  18. package/build/Checkbox/Checkbox.js +48 -3
  19. package/build/Checkbox/__snapshots__/Checkbox.test.js.snap +81 -49
  20. package/build/Checkbox/styles.js +91 -48
  21. package/build/Fab/__snapshots__/Fab.test.js.snap +2 -2
  22. package/build/Footer/Footer.js +63 -84
  23. package/build/Footer/List/List.js +89 -124
  24. package/build/Footer/List/styles.js +85 -31
  25. package/build/Footer/__snapshots__/Footer.test.js.snap +0 -6
  26. package/build/Footer/styles.js +119 -53
  27. package/build/Grid/Col/__snapshots__/Col.test.js.snap +16 -2
  28. package/build/Grid/Col/styles.js +12 -6
  29. package/build/Grid/Row/__snapshots__/Row.test.js.snap +18 -2
  30. package/build/Grid/Row/styles.js +15 -5
  31. package/build/Grid/styles.js +26 -9
  32. package/build/Modal/Modal.js +94 -66
  33. package/build/Modal/Modal.test.js +14 -7
  34. package/build/Modal/__snapshots__/Modal.test.js.snap +152 -100
  35. package/build/Modal/styles.js +161 -142
  36. package/build/Pager/Page/Page.js +8 -5
  37. package/build/Pager/Page/Page.test.js +13 -9
  38. package/build/Pager/Page/__snapshots__/Page.test.js.snap +34 -10
  39. package/build/Pager/Page/styles.js +48 -14
  40. package/build/Pager/Pager.js +139 -235
  41. package/build/Pager/Pager.test.js +81 -36
  42. package/build/Pager/__snapshots__/Pager.test.js.snap +3 -36
  43. package/build/Pager/styles.js +5 -40
  44. package/build/Pill/Choice/Choice.js +6 -4
  45. package/build/Pill/Choice/styles.js +13 -10
  46. package/build/Pill/Group/styles.js +5 -5
  47. package/build/Pill/Stack/Stack.js +2 -2
  48. package/build/Pill/Stack/styles.js +5 -8
  49. package/build/Placeholder/Placeholder.js +29 -12
  50. package/build/Placeholder/Placeholder.test.js +4 -4
  51. package/build/Placeholder/__snapshots__/Placeholder.test.js.snap +81 -38
  52. package/build/Placeholder/styles.js +86 -42
  53. package/build/Provider/usePrevious.js +1 -1
  54. package/build/Radio/Radio.js +42 -6
  55. package/build/Radio/__snapshots__/Radio.test.js.snap +81 -80
  56. package/build/Radio/styles.js +93 -85
  57. package/build/SlideDown/SlideDown.js +162 -169
  58. package/build/SlideDown/SlideDown.test.js +49 -44
  59. package/build/SlideDown/__snapshots__/SlideDown.test.js.snap +45 -13
  60. package/build/SlideDown/styles.js +52 -18
  61. package/build/SlideToggle/SlideToggle.js +38 -6
  62. package/build/SlideToggle/SlideToggle.test.js +2 -2
  63. package/build/SlideToggle/__snapshots__/SlideToggle.test.js.snap +53 -37
  64. package/build/SlideToggle/styles.js +64 -45
  65. package/build/Tabs/Tab/Tab.js +73 -0
  66. package/build/Tabs/Tab/index.js +34 -0
  67. package/build/Tabs/Tab/index.test.js +132 -0
  68. package/build/Tabs/Tab/styles.js +74 -0
  69. package/build/Tabs/TabContent/TabContent.js +76 -0
  70. package/build/Tabs/TabContent/index.js +34 -0
  71. package/build/Tabs/TabContent/index.test.js +68 -0
  72. package/build/Tabs/TabContent/styles.js +23 -0
  73. package/build/Tabs/TabIndicator/TabIndicator.js +158 -0
  74. package/build/Tabs/TabIndicator/index.js +34 -0
  75. package/build/Tabs/TabIndicator/styles.js +24 -0
  76. package/build/Tabs/TabList/TabList.js +108 -0
  77. package/build/Tabs/TabList/index.js +34 -0
  78. package/build/{Pager/Break → Tabs/TabList}/styles.js +3 -2
  79. package/build/Tabs/Tabs.js +74 -0
  80. package/build/Tabs/context.js +94 -0
  81. package/build/Tabs/index.js +34 -0
  82. package/build/Tabs/index.test.js +157 -0
  83. package/build/Tabs/styles.js +19 -0
  84. package/build/Tag/Tag.js +2 -2
  85. package/build/Tag/__snapshots__/Tag.test.js.snap +40 -43
  86. package/build/Tag/styles.js +76 -82
  87. package/build/Text/Text.js +6 -3
  88. package/build/TextField/TextField.js +7 -6
  89. package/build/TextField/__snapshots__/TextField.test.js.snap +3 -0
  90. package/build/TextField/styles.js +3 -0
  91. package/build/Tip/Tip.js +62 -95
  92. package/build/Tip/Tip.test.js +29 -6
  93. package/build/Tip/TipText/index.js +32 -0
  94. package/build/Tip/__snapshots__/Tip.test.js.snap +131 -15
  95. package/build/Tip/styles.js +125 -31
  96. package/build/Toaster/Toast/Toast.js +76 -64
  97. package/build/Toaster/Toast/styles.js +118 -46
  98. package/build/Toaster/Toaster.js +3 -2
  99. package/build/Toaster/Toaster.test.js +5 -2
  100. package/build/Toaster/__snapshots__/Toaster.test.js.snap +1 -1
  101. package/build/Toaster/functions.js +4 -0
  102. package/build/Toaster/styles.js +3 -3
  103. package/build/Tooltip/Tooltip.js +73 -22
  104. package/build/Tooltip/__snapshots__/Tooltip.test.js.snap +22 -6
  105. package/build/Tooltip/styles.js +32 -10
  106. package/build/index.js +14 -1
  107. package/build/subatomic/grid.js +5 -5
  108. package/build/tokens/colors.json +35 -3
  109. package/package.json +4 -1
  110. package/build/Banner/styles.js +0 -41
  111. package/build/Pager/Break/Break.js +0 -27
  112. package/build/Pager/Break/Break.test.js +0 -53
  113. package/build/Pager/Break/__snapshots__/Break.test.js.snap +0 -13
  114. package/build/Pager/Break/index.js +0 -18
  115. /package/build/Button/{Loading.js → Loading/index.js} +0 -0
@@ -27,51 +27,30 @@ Object {
27
27
  "opacity": 1,
28
28
  },
29
29
  },
30
- "bottom": Object {
31
- "marginTop": 8,
32
- "textAlign": "right",
33
- },
34
30
  "card": Object {
35
31
  "@media screen and (max-width:575px)": Object {
36
32
  "borderRadius": [Function],
37
33
  "minHeight": [Function],
38
- "padding": [Function],
39
- },
40
- "@media screen and (min-width:768px)": Object {
41
- "padding": 32,
42
34
  },
35
+ "background": "#fff",
36
+ "border": "1px solid #D3D4DC",
37
+ "borderRadius": "8px",
43
38
  "cursor": "auto",
44
39
  "maxWidth": "100%",
45
- "padding": 16,
40
+ "overflow": "hidden",
46
41
  "transition": "0.3s opacity, 0.3s margin-top",
47
42
  },
48
43
  "cardBlock": Object {
49
44
  "@media screen and (max-width:575px)": Object {
50
- "height": [Function],
51
45
  "margin": [Function],
52
46
  },
53
47
  "margin": 12,
54
48
  },
55
- "cardHide": Object {
56
- "marginTop": -64,
57
- "opacity": 0,
58
- },
59
- "cardShow": Object {
60
- "animation": "0.3s modalFadeDown ease-out",
61
- },
62
49
  "cardWrapper": Object {
63
- "@media screen and (max-width:575px)": Object {
64
- "height": [Function],
65
- },
66
- "maxHeight": "100%",
67
- "maxWidth": "100%",
50
+ "maxHeight": "100vh",
51
+ "maxWidth": "100vw",
68
52
  "position": "relative",
69
53
  },
70
- "closeIcon": Object {
71
- "alignItems": "center",
72
- "display": "flex",
73
- "height": 32,
74
- },
75
54
  "closePosition": Object {
76
55
  "@media screen and (min-width:768px)": Object {
77
56
  "right": 32,
@@ -89,84 +68,127 @@ Object {
89
68
  "background": "#dddddd",
90
69
  "borderRadius": 3,
91
70
  },
92
- "@media screen and (min-width:768px)": Object {
93
- "marginLeft": -32,
94
- "marginRight": -32,
95
- "paddingLeft": 32,
96
- "paddingRight": 32,
97
- },
98
- "marginLeft": -16,
99
- "marginRight": -16,
100
- "paddingLeft": 16,
101
- "paddingRight": 16,
71
+ "flex": 1,
72
+ "overflow": "auto",
102
73
  "transition": "0.1s height",
103
74
  },
104
- "imgLeft": Object {
105
- "@media screen and (min-width:768px)": Object {
106
- "marginBottom": -32,
107
- "marginLeft": -32,
108
- "marginRight": 32,
109
- "marginTop": -32,
110
- },
111
- "backgroundColor": [Function],
112
- "backgroundImage": [Function],
113
- "backgroundPosition": [Function],
114
- "backgroundRepeat": "no-repeat",
115
- "backgroundSize": [Function],
116
- "borderRadius": Array [
117
- 6,
118
- 0,
119
- 0,
120
- 6,
75
+ "contentChild": Object {
76
+ "@media screen and (min-width:576px)": Object {
77
+ "padding": Array [
78
+ "12px",
79
+ "40px",
80
+ ],
81
+ },
82
+ "borderBottom": "1px solid transparent",
83
+ "padding": "12px",
84
+ },
85
+ "contentWrapper": Object {
86
+ "flex": 1,
87
+ "height": "auto",
88
+ "maxHeight": "85vh",
89
+ },
90
+ "footer": Object {
91
+ "@media screen and (min-width:576px)": Object {
92
+ "flexDirection": "row",
93
+ "gap": "8px",
94
+ "justifyContent": "flex-end",
95
+ "padding": Array [
96
+ "16px",
97
+ "40px",
98
+ ],
99
+ },
100
+ "borderTop": "1px solid transparent",
101
+ "display": "flex",
102
+ "flexDirection": "column-reverse",
103
+ "flexGrow": 0,
104
+ "gap": "4px",
105
+ "padding": "12px",
106
+ "textAlign": "right",
107
+ },
108
+ "footerBorder": Object {
109
+ "borderTop": "1px solid #EDEDF1",
110
+ },
111
+ "fullSize": Object {
112
+ "& $contentWrapper": Object {
113
+ "@media screen and (min-width:576px)": Object {
114
+ "height": "auto",
115
+ "maxHeight": "85vh",
116
+ },
117
+ "height": "100vh",
118
+ "maxHeight": "100vh",
119
+ "overflow": "auto",
120
+ },
121
+ "@media screen and (max-width:575px)": Object {
122
+ "border": 0,
123
+ "width": "100% !important",
124
+ },
125
+ },
126
+ "header": Object {
127
+ "@media screen and (min-width:576px)": Object {
128
+ "height": 72,
129
+ "padding": Array [
130
+ "16px",
131
+ "16px",
132
+ "16px",
133
+ "40px",
134
+ ],
135
+ },
136
+ "alignItems": "center",
137
+ "background": "transparent",
138
+ "border": "1px solid transparent",
139
+ "display": "flex",
140
+ "flexGrow": 0,
141
+ "height": 56,
142
+ "padding": Array [
143
+ "8px",
144
+ "12px",
121
145
  ],
122
- "marginBottom": -16,
123
- "marginLeft": -16,
124
- "marginRight": 16,
125
- "marginTop": -16,
126
- "width": 200,
146
+ "transition": "0.2s all",
147
+ "zIndex": 1,
148
+ },
149
+ "headerBorder": Object {
150
+ "borderBottom": "1px solid #EDEDF1",
151
+ },
152
+ "hide": Object {
153
+ "& $card": Object {
154
+ "marginTop": -64,
155
+ "opacity": 0,
156
+ },
157
+ "opacity": 0,
158
+ },
159
+ "imgLeft": Object {
160
+ "@media screen and (min-width:576px)": Object {
161
+ "display": "block",
162
+ "width": 200,
163
+ },
164
+ "display": "none",
127
165
  },
128
166
  "imgTop": Object {
129
- "@media screen and (min-width:768px)": Object {
130
- "marginBottom": 32,
131
- "marginLeft": -32,
132
- "marginRight": -32,
133
- "marginTop": -32,
134
- },
135
- "backgroundColor": [Function],
136
- "backgroundImage": [Function],
137
- "backgroundPosition": [Function],
138
- "backgroundRepeat": "no-repeat",
139
- "backgroundSize": [Function],
140
- "borderRadius": Array [
141
- 6,
142
- 6,
143
- 0,
144
- 0,
145
- ],
146
- "height": [Function],
147
- "marginBottom": 16,
148
- "marginLeft": -16,
149
- "marginRight": -16,
150
- "marginTop": -16,
151
- "position": "relative",
167
+ "aspectRatio": "21 / 9",
168
+ "maxHeight": 200,
169
+ "objectFit": "cover",
170
+ "width": "100%",
152
171
  },
153
172
  "lg": Object {
154
173
  "width": 820,
155
174
  },
156
- "mainBtn": Object {
157
- "marginLeft": 24,
158
- "marginTop": 16,
159
- },
160
175
  "md": Object {
161
176
  "@media screen and (max-width:767px)": Object {
162
177
  "maxWidth": "100%",
163
- "width": 322,
164
178
  },
165
- "width": 520,
179
+ "width": 600,
166
180
  },
167
181
  "noClose": Object {
168
182
  "cursor": "default",
169
183
  },
184
+ "noFooter": Object {
185
+ "paddingBottom": "40px",
186
+ },
187
+ "noHeader": Object {
188
+ "@media screen and (min-width:768px)": Object {
189
+ "paddingTop": "40px",
190
+ },
191
+ },
170
192
  "overlay": Object {
171
193
  "alignItems": "center",
172
194
  "background": "rgba(0, 0, 5, 0.85)",
@@ -175,29 +197,59 @@ Object {
175
197
  "height": "100%",
176
198
  "justifyContent": "center",
177
199
  "left": 0,
178
- "overflow": "auto",
179
200
  "position": "fixed",
180
201
  "top": 0,
181
202
  "transition": "0.3s all",
182
203
  "width": "100%",
183
204
  "zIndex": 1000,
184
205
  },
185
- "overlayHide": Object {
186
- "opacity": 0,
187
- },
188
- "overlayShow": Object {
206
+ "show": Object {
207
+ "& $card": Object {
208
+ "animation": "0.3s modalFadeDown ease-out",
209
+ },
189
210
  "animation": "0.3s modalFadeIn linear",
190
211
  },
191
- "secBtn": Object {
192
- "marginTop": 16,
193
- },
194
212
  "sm": Object {
213
+ "& $contentChild": Object {
214
+ "padding": "12px",
215
+ },
216
+ "& $footer": Object {
217
+ "flexDirection": "column-reverse",
218
+ "gap": "4px",
219
+ "padding": "12px",
220
+ },
221
+ "& $header": Object {
222
+ "height": 56,
223
+ "padding": Array [
224
+ "8px",
225
+ "12px",
226
+ ],
227
+ },
228
+ "& $title": Object {
229
+ "font": "400 20px/1.1 'OccText', sans-serif",
230
+ },
195
231
  "maxWidth": "100%",
196
- "width": 322,
232
+ "width": 320,
233
+ },
234
+ "solidHeader": Object {
235
+ "background": "#fff",
236
+ },
237
+ "split": Object {
238
+ "display": "flex",
239
+ "flexDirection": "row",
240
+ },
241
+ "stickyHeader": Object {
242
+ "@media screen and (min-width:576px)": Object {
243
+ "marginBottom": -72,
244
+ },
245
+ "marginBottom": -56,
197
246
  },
198
- "title": Object {},
199
- "top": Object {
200
- "marginBottom": 16,
247
+ "title": Object {
248
+ "@media screen and (min-width:576px)": Object {
249
+ "font": "400 24px/1.1 'OccText', sans-serif",
250
+ },
251
+ "font": "400 20px/1.1 'OccText', sans-serif",
252
+ "margin": 0,
201
253
  },
202
254
  "xl": Object {
203
255
  "width": 1024,