Skip to content

Commit

Permalink
Merge branch 'refactor-with-vanilla-extract' of https://github.com/en…
Browse files Browse the repository at this point in the history
…sdomains/thorin into refactor-with-vanilla-extract
  • Loading branch information
storywithoutend committed Dec 2, 2024
2 parents 388e204 + 5c2cb8f commit e150fe5
Show file tree
Hide file tree
Showing 32 changed files with 5 additions and 430 deletions.
10 changes: 5 additions & 5 deletions components/test/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ export {}
// Format string with arguments
function sprintf(message: string, args: unknown[]) {
let i = 0
return message.replace(/%((%)|s|d)/g, function (m: any) {
return message.replace(/%((%)|s|d)/g, function (m) {
// m is the matched format, e.g. %s, %d
let val: any = ''
let val: string | number = ''
if (m[2]) {
val = m[2]
}
else {
val = args[i]
val = args[i] as string
// A switch statement so that the formatter can be extended. Default is %s
switch (m) {
case '%d':
val = parseFloat(val)
if (isNaN(val)) {
if (Number.isNaN(val)) {
val = 0
}
break
}
i++
}
return val
return val as string
})
}

Expand Down
19 changes: 0 additions & 19 deletions docs/src/reference/snippets/atoms/Avatar.snippets.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/reference/snippets/atoms/Banner.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Button.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Card.snippets.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/reference/snippets/atoms/Field.snippets.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions docs/src/reference/snippets/atoms/FileInput.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Heading.snippets.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/src/reference/snippets/atoms/RecordItem.snippets.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/reference/snippets/atoms/Skeleton.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Spinner.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Tag.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/atoms/Typography.snippets.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions docs/src/reference/snippets/atoms/VisuallyHidden.snippets.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions docs/src/reference/snippets/molecules/Backdrop.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/molecules/Checkbox.snippets.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/reference/snippets/molecules/CheckboxRow.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/molecules/CountdownCircle.snippets.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/reference/snippets/molecules/CurrencyToggle.snippets.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions docs/src/reference/snippets/molecules/Dropdown.snippets.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/reference/snippets/molecules/FieldSet.snippets.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/reference/snippets/molecules/Helper.snippets.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/reference/snippets/molecules/Input.snippets.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions docs/src/reference/snippets/molecules/RadioButton.snippets.tsx

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions docs/src/reference/snippets/molecules/Select.snippets.tsx

This file was deleted.

Loading

0 comments on commit e150fe5

Please sign in to comment.