@teammodlr/ui-kit 2.1.64 → 2.1.67

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.
@@ -35,9 +35,13 @@ export const wrapper = style({
35
35
  bottom: 0,
36
36
  outline: 0,
37
37
  overflow: 'auto',
38
- boxSizing: 'border-box'
38
+ boxSizing: 'border-box',
39
39
  });
40
40
 
41
+ export const notModal = style({
42
+ pointerEvents: 'none'
43
+ })
44
+
41
45
  export const dialog = style({
42
46
  boxSizing: 'border-box',
43
47
  margin: '0 auto',
@@ -53,17 +57,21 @@ export const content = style({
53
57
  position: 'relative',
54
58
  backgroundColor: '#FFF',
55
59
  backgroundClip: 'padding-box',
56
- border: 0,
57
- borderRadius: themeVars.rounded.default,
60
+ border: `1px solid ${themeVars.color.gray[300]}`,
61
+ borderRadius: themeVars.rounded.medium,
58
62
  pointerEvents: 'auto',
59
- padding: `20px 24px`,
60
- boxShadow: `0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05)`
63
+ boxShadow: `2px 2px 8px rgba(128, 128, 128, 0.1), 0 9px 28px 8px rgba(0,0,0,.05)`
61
64
  });
62
65
 
63
66
  export const header = style({
64
67
  color: themeVars.color.font.default,
65
68
  backgroundColor: '#FFF',
66
- marginBottom: themeVars.space[2]
69
+ marginBottom: themeVars.space[2],
70
+ borderBottom: `1px solid ${themeVars.color.gray[300]}`,
71
+ height: `35px`,
72
+ display: `flex`,
73
+ alignItems: `center`,
74
+ padding: `0px ${themeVars.space[2]}`
67
75
  });
68
76
 
69
77
  export const footer = style({
@@ -80,21 +88,51 @@ export const title = style({
80
88
  wordWrap: 'break-word'
81
89
  });
82
90
 
83
- export const close = style({
84
- position: 'absolute',
85
- top: `17px`,
86
- insetInlineEnd: `17px`,
87
- padding: 0,
88
- background: `0 0`,
89
- borderRadius: themeVars.rounded.small,
90
- width: `22px`,
91
- height: `22px`,
92
- border: 0,
93
- outline: 0,
94
- cursor: `pointer`,
95
- selectors: {
96
- '&:hover': {
97
- backgroundColor: `hsla(0,0%,45.1%,0.1)`
91
+ export const close = style([
92
+ {
93
+ outline: `none ${themeVars.color.gray[300]}`,
94
+ display: 'inline-block',
95
+ position: 'absolute',
96
+ top: themeVars.space[1.5],
97
+ right: themeVars.space[1.5],
98
+ width: '1.5rem',
99
+ height: '1.5rem',
100
+ backgroundColor: 'transparent',
101
+ border: 'none',
102
+ padding: 0,
103
+ cursor: 'pointer',
104
+ transition: 'all 0.2s',
105
+ borderRadius: themeVars.rounded.full,
106
+ marginLeft: themeVars.space[2],
107
+ ':hover': {
108
+ backgroundColor: themeVars.color.gray[150]
109
+ },
110
+ ':focus': {
111
+ backgroundColor: themeVars.color.gray[150]
112
+ },
113
+ '::before': {
114
+ content: '""',
115
+ position: 'absolute',
116
+ top: '50%',
117
+ left: '50%',
118
+ transform: 'translate(-50%, -50%) rotate(45deg)',
119
+ width: '0.8rem',
120
+ height: '2px',
121
+ backgroundColor: themeVars.color.gray[500],
122
+ transformOrigin: 'center',
123
+ transition: 'all 0.2s'
124
+ },
125
+ '::after': {
126
+ content: '""',
127
+ position: 'absolute',
128
+ top: '50%',
129
+ left: '50%',
130
+ transform: 'translate(-50%, -50%) rotate(-45deg)',
131
+ width: '0.8rem',
132
+ height: '2px',
133
+ backgroundColor: themeVars.color.gray[500],
134
+ transformOrigin: 'center',
135
+ transition: 'all 0.2s'
98
136
  }
99
137
  }
100
- });
138
+ ]);