Skip to content

Commit 028e88f

Browse files
authored
Merge pull request #34 from PureStackStudio/exclude-imported-assets
Exclude imported source files from static output
2 parents 774af81 + 7e83bf3 commit 028e88f

32 files changed

Lines changed: 587 additions & 89 deletions

File tree

‎frontend/purestack.studio/components/forms/appearance.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
lucide_list,
2727
lucide_list_ordered,
2828
lucide_loader_circle,
29-
lucide_trash_2,
29+
lucide_trash,
3030
lucide_underline,
3131
lucide_x,
3232
tabler_align_center,
@@ -52,7 +52,7 @@ const icons: Record<string, string> = {
5252
'lucide:list': lucide_list,
5353
'lucide:list-ordered': lucide_list_ordered,
5454
'lucide:loader-circle': lucide_loader_circle,
55-
'lucide:trash-2': lucide_trash_2,
55+
'lucide:trash': lucide_trash,
5656
'lucide:underline': lucide_underline,
5757
'lucide:x': lucide_x,
5858
'tabler:align-center': tabler_align_center,

‎frontend/purestack.studio/components/forms/drop-files/drop-files.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ All eighteen supported treatments, shown in accent. Tone and variant are indepen
104104
<DropFiles label="Reference files" hint="Images and PDF only"
105105
emptyTitle="Add your references" emptyText="Choose files, drop them, or paste."
106106
accept="image/*,.pdf" :multiple="true" :disabled="locked" :files="files"
107-
uploadIcon="lucide:cloud-upload" fileIcon="lucide:file" removeIcon="lucide:trash-2"
107+
uploadIcon="lucide:cloud-upload" fileIcon="lucide:file" removeIcon="lucide:trash"
108108
:iconMap="fileIcons" :context="{ onChange: filesChanged }"/>
109109
```
110110

@@ -189,7 +189,7 @@ The drop zone opens the native picker with Enter or Space. File acceptance is a
189189
<p>Fallback file icon when no type-specific mapping matches.</p>
190190
</ApiProperty>
191191

192-
<ApiProperty anchor="drop-files-prop-removeIcon" name="removeIcon" valueType="RefOrValue&lt;string&gt;" defaultValue="lucide:trash-2">
192+
<ApiProperty anchor="drop-files-prop-removeIcon" name="removeIcon" valueType="RefOrValue&lt;string&gt;" defaultValue="lucide:trash">
193193
<p>Icon on each remove button.</p>
194194
</ApiProperty>
195195

‎frontend/purestack.studio/components/forms/drop-files/playground.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
lucide_file_archive,
1414
lucide_file_image,
1515
lucide_file_text,
16-
lucide_trash_2,
16+
lucide_trash,
1717
} from '@purestack/ts-svg-icons'
1818
import {
1919
type ComputedRef,
@@ -65,7 +65,7 @@ const dropFilesExampleTemplate = html`<Flex direction="column">
6565
<DropFiles :files="referenceFiles" label="Design references" hint="Images and PDF files only."
6666
emptyTitle="Add your references" emptyText="Choose files, drop them, or paste."
6767
accept="image/*,.pdf" uploadIcon="lucide:file-image" fileIcon="lucide:file"
68-
removeIcon="lucide:trash-2" :iconMap="fileIcons" :context="{ onChange: filesChanged }"/>
68+
removeIcon="lucide:trash" :iconMap="fileIcons" :context="{ onChange: filesChanged }"/>
6969
<FormStatus>{{ activity }}</FormStatus>
7070
<ul><li r-for="file in referenceFiles">{{ file.name }} · {{ file.type || 'Unknown type' }} · {{ file.sizeLabel }} · {{ file.icon }}</li></ul>
7171
</Flex>`
@@ -97,7 +97,7 @@ const component = defineComponent<DropFilesExample>(dropFilesExampleTemplate, {
9797
const icons: Record<string, string> = {
9898
'lucide:cloud-upload': lucide_cloud_upload,
9999
'lucide:file': lucide_file,
100-
'lucide:trash-2': lucide_trash_2,
100+
'lucide:trash': lucide_trash,
101101
'lucide:file-image': lucide_file_image,
102102
'lucide:file-text': lucide_file_text,
103103
'lucide:file-archive': lucide_file_archive,

‎frontend/purestack.studio/guides/styling/icons.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ The lookup function throws for an unregistered name, so a missing icon causes an
274274
| --- | --- |
275275
| `FormSelectField`, `BtnGroup` drop-down | `lucide:chevron-down` |
276276
| Autocomplete inputs | `lucide:chevron-down`, `lucide:loader-circle` while loading, `lucide:x` to remove a choice |
277-
| `DropFiles` | `lucide:cloud-upload`, `lucide:file`, `lucide:trash-2`, and `lucide:file-image`, `lucide:file-text`, or `lucide:file-archive` for common file types |
277+
| `DropFiles` | `lucide:cloud-upload`, `lucide:file`, `lucide:trash`, and `lucide:file-image`, `lucide:file-text`, or `lucide:file-archive` for common file types |
278278
| `SignIn` | `lucide:log-in`, `tabler:user-filled` |
279279
| Comparison and pricing features | `lucide:check`, `iconoir:check` |
280280
| `Composer` toolbar | `lucide:bold`, `lucide:italic`, `lucide:underline`, `tabler:align-left`, `tabler:align-center`, `tabler:align-right`, `lucide:list`, `lucide:list-ordered`, `lucide:link`, `lucide:eraser`, `lucide:code` |

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "purestack-repo",
4-
"version": "1.1.12",
4+
"version": "1.1.13",
55
"packageManager": "yarn@4.18.1",
66
"type": "module",
77
"sideEffects": false,

‎packages/purestack/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "purestack",
3-
"version": "1.1.12",
3+
"version": "1.1.13",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/purestack.mjs",
66
"types": "./dist/purestack.d.mts",

‎packages/purestack/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const version: string = '1.1.12'
1+
export const version: string = '1.1.13'
22

33
export * from '@purestack/ts-ssg'

‎packages/ts-common/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-common",
3-
"version": "1.1.12",
3+
"version": "1.1.13",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-common.mjs",
66
"types": "./dist/ts-common.d.mts",

‎packages/ts-components/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-components",
3-
"version": "1.1.12",
3+
"version": "1.1.13",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-components.mjs",
66
"types": "./dist/ts-components.d.mts",

‎packages/ts-components/src/standard/dropFiles/dropFiles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface DropFiles {
8080

8181
const DEFAULT_UPLOAD_ICON = 'lucide:cloud-upload'
8282
const DEFAULT_FILE_ICON = 'lucide:file'
83-
const DEFAULT_REMOVE_ICON = 'lucide:trash-2'
83+
const DEFAULT_REMOVE_ICON = 'lucide:trash'
8484

8585
const DEFAULT_ICON_MAP: DropFilesIconMap = {
8686
'image/*': 'lucide:file-image',

0 commit comments

Comments
 (0)