@rileybathurst/paddle 1.3.5 → 1.3.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "1.3.5",
4
+ "version": "1.3.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -0,0 +1,18 @@
1
+ // this is the Name.stories.tsx file
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import { Select } from './Select';
4
+
5
+ const meta = {
6
+ component: Select,
7
+ title: 'Atoms/Select',
8
+ args: {},
9
+ } satisfies Meta<typeof Select>;
10
+
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Primary: Story = {
15
+ args: {
16
+ primary: true,
17
+ },
18
+ };
package/src/Select.tsx ADDED
@@ -0,0 +1,23 @@
1
+ // this is the Name.tsx file
2
+ import React from 'react';
3
+ import { faker } from '@faker-js/faker';
4
+
5
+ export const Select = () => {
6
+
7
+ return (
8
+ <select
9
+ className="comparesheet_select"
10
+ name={faker.commerce.productName()}
11
+ aria-label="Select a product"
12
+ >
13
+ {Array.from({ length: faker.number.int({ min: 1, max: 10 }) }).map(() => (
14
+ <option
15
+ key={faker.string.uuid()}
16
+ value={faker.commerce.productName()}
17
+ >
18
+ {faker.commerce.productName()}
19
+ </option>
20
+ ))}
21
+ </select>
22
+ );
23
+ };
@@ -2,6 +2,8 @@
2
2
  /* #BUTTONS */
3
3
  /*------------------------------------*/
4
4
 
5
+ /* TODO: combine select into these for the colors */
6
+
5
7
  button,
6
8
  .button,
7
9
  .book-now {
@@ -136,8 +138,8 @@ button:active {
136
138
  color: var(--neutral-100);
137
139
  }
138
140
 
139
- @media (prefers-color-scheme: dark) {
140
- }
141
+ /* @media (prefers-color-scheme: dark) {
142
+ } */
141
143
 
142
144
  .book-now:hover,
143
145
  .book-now__hover {
@@ -161,7 +163,8 @@ button:active {
161
163
 
162
164
  .south-tahoe {
163
165
  button,
164
- .button {
166
+ .button,
167
+ select {
165
168
  background-color: var(--lake-200);
166
169
  border-color: var(--lake-100);
167
170
  color: var(--cloud-color);
@@ -169,7 +172,8 @@ button:active {
169
172
 
170
173
  @media (prefers-color-scheme: dark) {
171
174
  button,
172
- .button {
175
+ .button,
176
+ select {
173
177
  background-color: var(--lake-600);
174
178
  border-color: var(--lake-700);
175
179
  color: var(--lake-100);
@@ -178,13 +182,14 @@ button:active {
178
182
 
179
183
  button:hover,
180
184
  .button__hover,
181
- .button:hover {
185
+ .button:hover,
186
+ select:hover {
182
187
  background-color: var(--lake-400);
183
188
  border-color: var(--lake-400);
184
189
  color: var(--lake-700);
185
190
  }
186
191
 
187
- .button__active {
192
+ .button__active select:active {
188
193
  background-color: var(--lake-400);
189
194
  border-color: var(--lake-500);
190
195
  /* this goes passed the 400 / 500 dark light split Im not sure if I want to change it */
@@ -198,20 +198,59 @@ hgroup {
198
198
  line-height: 1.5;
199
199
  }
200
200
 
201
+ /*------------------------------------*/
202
+
203
+ /* mostly taken from buttons */
201
204
  select {
202
205
  font-size: var(--vinson);
203
206
  font-family: var(--body_font);
204
207
  margin-block-end: 0;
205
- /* A reset of styles, including removing the default dropdown arrow */
206
- appearance: none;
207
- /* Additional resets for further consistency */
208
- background-color: transparent;
209
- border: none;
210
- padding: 0 var(--vinson) 0 0;
211
208
  margin: 0;
212
- width: 100%;
213
209
  cursor: inherit;
214
210
  line-height: inherit;
211
+ padding: var(--kosciuszko);
212
+ box-shadow: var(--penumbra);
213
+ background-color: var(--neutral-200);
214
+ border: 1px solid var(--neutral-100);
215
+
216
+ @media (prefers-color-scheme: dark) {
217
+ background-color: var(--neutral-600);
218
+ border-color: var(--neutral-500);
219
+ color: var(--neutral-100);
220
+ }
221
+ }
222
+
223
+ select:hover,
224
+ .select:hover {
225
+ box-shadow: var(--antumbra);
226
+
227
+ @media (prefers-color-scheme: dark) {
228
+ background-color: var(--neutral-500);
229
+ border-color: var(--neutral-500);
230
+ color: var(--neutral-200);
231
+ }
232
+ }
233
+
234
+ .select:active,
235
+ select:active {
236
+ box-shadow: var(--umbra);
237
+
238
+ @media (prefers-color-scheme: dark) {
239
+ background-color: var(--neutral-400);
240
+ border-color: var(--neutral-200);
241
+ color: var(--neutral-500);
242
+ }
243
+ }
244
+
245
+ @media (prefers-color-scheme: light) {
246
+ .tahoe-city select {
247
+ border-color: var(--sand-200);
248
+ background-color: var(--sand-100);
249
+ }
250
+ }
251
+
252
+ .comparesheet_select {
253
+ width: 100%;
215
254
  }
216
255
 
217
256
  /*------------------*/
@@ -238,4 +277,4 @@ select {
238
277
  color: hsl(var(--sand__base), var(--dark));
239
278
  }
240
279
  }
241
- */
280
+ */