@ainias42/react-bootstrap-mobile 1.0.13 → 1.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainias42/react-bootstrap-mobile",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Mobile React Components",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -36,6 +36,11 @@ export const Default: Story = {
36
36
  ...baseColors,
37
37
  };
38
38
 
39
+ const longtext =
40
+ `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet`.split(
41
+ ' ',
42
+ );
43
+
39
44
  return (
40
45
  <div>
41
46
  {ObjectHelper.entries(textColors).map(([category, colors]) => (
@@ -70,6 +75,103 @@ export const Default: Story = {
70
75
  </Grid>
71
76
  </BaseBlock>
72
77
  ))}
78
+ {ObjectHelper.entries(textColors).map(([category, colors]) => (
79
+ <BaseBlock>
80
+ <Text emphasized={true}>Long Text - {category}</Text>
81
+ <Grid>
82
+ {colors.map((color) => (
83
+ <>
84
+ <GridItem
85
+ size={4}
86
+ style={{ backgroundColor: 'var(--foreground-primary)', padding: '0.4rem' }}
87
+ >
88
+ <Text style={{ color: `var(--${color})` }}>
89
+ [{color} | foreground-primary] Lorem ipsum dolor sit amet, consetetur
90
+ sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
91
+ magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
92
+ dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
93
+ Lorem ipsum dolor sit amet.
94
+ </Text>
95
+ </GridItem>
96
+ <GridItem
97
+ size={4}
98
+ style={{ backgroundColor: 'var(--foreground-secondary)', padding: '0.4rem' }}
99
+ >
100
+ <Text style={{ color: `var(--${color})` }}>
101
+ [{color} | foreground-secondary] Lorem ipsum dolor sit amet, consetetur
102
+ sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
103
+ magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
104
+ dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
105
+ Lorem ipsum dolor sit amet.
106
+ </Text>
107
+ </GridItem>
108
+ <GridItem
109
+ size={4}
110
+ style={{ backgroundColor: 'var(--foreground-tertiary)', padding: '0.4rem' }}
111
+ >
112
+ <Text style={{ color: `var(--${color})` }}>
113
+ [{color} | foreground-tertiary] Lorem ipsum dolor sit amet, consetetur
114
+ sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
115
+ magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
116
+ dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
117
+ Lorem ipsum dolor sit amet.
118
+ </Text>
119
+ </GridItem>
120
+ </>
121
+ ))}
122
+ </Grid>
123
+ </BaseBlock>
124
+ ))}
125
+ {ObjectHelper.entries(textColors).map(([category, colors]) => (
126
+ <BaseBlock>
127
+ <Text emphasized={true}>Long Text Single Words - {category}</Text>
128
+ <Grid>
129
+ {colors.map((color) => (
130
+ <>
131
+ <GridItem
132
+ size={4}
133
+ style={{ backgroundColor: 'var(--foreground-primary)', padding: '0.4rem' }}
134
+ >
135
+ <Text style={{ color: `var(--text-primary)` }}>
136
+ [{color} | foreground-primary]
137
+ </Text>
138
+ {longtext.map((word, i) => (
139
+ <Text style={{ color: `var(--${i % 6 === 0 ? color : 'text-primary'})` }}>
140
+ {word}{' '}
141
+ </Text>
142
+ ))}
143
+ </GridItem>
144
+ <GridItem
145
+ size={4}
146
+ style={{ backgroundColor: 'var(--foreground-secondary)', padding: '0.4rem' }}
147
+ >
148
+ <Text style={{ color: `var(--text-primary)` }}>
149
+ [{color} | foreground-secondary]
150
+ </Text>
151
+ {longtext.map((word, i) => (
152
+ <Text style={{ color: `var(--${i % 6 === 5 ? color : 'text-primary'})` }}>
153
+ {word}{' '}
154
+ </Text>
155
+ ))}
156
+ </GridItem>
157
+ <GridItem
158
+ size={4}
159
+ style={{ backgroundColor: 'var(--foreground-tertiary)', padding: '0.4rem' }}
160
+ >
161
+ <Text style={{ color: `var(--text-primary)` }}>
162
+ [{color} | foreground-tertiary]
163
+ </Text>
164
+ {longtext.map((word, i) => (
165
+ <Text style={{ color: `var(--${i % 6 === 0 ? color : 'text-primary'})` }}>
166
+ {word}{' '}
167
+ </Text>
168
+ ))}
169
+ </GridItem>
170
+ </>
171
+ ))}
172
+ </Grid>
173
+ </BaseBlock>
174
+ ))}
73
175
  </div>
74
176
  );
75
177
  },
@@ -72,6 +72,9 @@
72
72
 
73
73
  --box-shadow-color: rgb(255 255 255 / 12%);
74
74
  --flavor-pale-accent: #172554; // blue 900
75
+ --flavor-accent: #3b82f6; // blue 500
76
+ --flavor-pale-destructive: #f87171;
77
+ --flavor-pale-constructive: #22c55e;
75
78
  }
76
79
 
77
80
  .#{$material}, &.#{$material} {