Skip to content

Commit

Permalink
fix(packages): add provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Oct 15, 2023
1 parent 848134e commit f235532
Show file tree
Hide file tree
Showing 49 changed files with 9,249 additions and 9,084 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: ["main"]
branches: [main]
pull_request:
types: [opened, synchronize]

Expand All @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
cache: pnpm

- run: corepack enable

Expand Down
8 changes: 8 additions & 0 deletions integrations/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"type": "module",
"private": true,
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion integrations/astro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { PinceauPluginsOptions } from '@pinceau/core'
import type { PinceauAstroOptions } from './types'

export * from './types'
Expand Down
12 changes: 8 additions & 4 deletions integrations/language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"name": "@pinceau/language-server",
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"type": "module",
"description": "Pinceau language server providing hints on tokens values and other features.",
"author": "Tahul <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Tahul/pinceau-vscode.git"
},
"main": "dist/index.js",
"scripts": {
"stub": "unbuild --stub",
Expand Down
8 changes: 8 additions & 0 deletions integrations/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"name": "@pinceau/nuxt",
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"type": "module",
"exports": {
".": {
Expand Down
8 changes: 8 additions & 0 deletions integrations/pinceau/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"name": "pinceau",
"type": "module",
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions integrations/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"name": "@pinceau/react",
"type": "module",
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions integrations/react/src/transforms/variants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { PinceauTransformContext } from '@pinceau/core'
import { getCharAfterLastImport, parseAst } from '@pinceau/core/utils'
import type { Variants } from '@pinceau/style'

export interface PropOptions {
Expand Down
8 changes: 8 additions & 0 deletions integrations/repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"name": "@pinceau/repl",
"type": "module",
"version": "1.0.0-beta.3",
"homepage": "https://github.com/Tahul/pinceau#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Tahul/pinceau.git"
},
"bugs": {
"url": "https://github.com/Tahul/pinceau/issues"
},
"description": "Pinceau component for editing Pinceau components.",
"exports": {
".": {
Expand Down
39 changes: 19 additions & 20 deletions integrations/repl/src/components/Dropdown.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
<template>
<div>
<select :value="modelValue" @change="onChange">
<option v-for="option of options" :value="option.value">
{{ option.title }}
</option>
</select>
<svg width="21" height="20" viewBox="0 0 21 20" fill="none">
<path d="M14.6666 7.64174C14.5104 7.48653 14.2992 7.39941 14.0791 7.39941C13.8589 7.39941 13.6477 7.48653 13.4916 7.64174L10.4999 10.5917L7.54992 7.64174C7.39378 7.48653 7.18257 7.39941 6.96242 7.39941C6.74226 7.39941 6.53105 7.48653 6.37492 7.64174C6.29681 7.71921 6.23481 7.81138 6.19251 7.91293C6.1502 8.01448 6.12842 8.1234 6.12842 8.23341C6.12842 8.34342 6.1502 8.45234 6.19251 8.55389C6.23481 8.65544 6.29681 8.74761 6.37492 8.82507L9.90825 12.3584C9.98572 12.4365 10.0779 12.4985 10.1794 12.5408C10.281 12.5831 10.3899 12.6049 10.4999 12.6049C10.6099 12.6049 10.7188 12.5831 10.8204 12.5408C10.9219 12.4985 11.0141 12.4365 11.0916 12.3584L14.6666 8.82507C14.7447 8.74761 14.8067 8.65544 14.849 8.55389C14.8913 8.45234 14.9131 8.34342 14.9131 8.23341C14.9131 8.1234 14.8913 8.01448 14.849 7.91293C14.8067 7.81138 14.7447 7.71921 14.6666 7.64174Z" fill="#D4D4D4"/>
</svg>
</div>
</template>

<script setup lang="ts">
type DropdownOption = {
interface DropdownOption {
value: string
title: string
}
withDefaults(
defineProps<{
options: DropdownOption[],
options: DropdownOption[]
modelValue: string | undefined
}>(),
{
options: () => ([])
}
options: () => ([]),
},
)
const emit = defineEmits(['update:modelValue'])
Expand All @@ -35,6 +22,18 @@ function onChange(e: Event): void {
}
</script>

<template>
<div>
<select :value="modelValue" @change="onChange">
<option v-for="option of options" :value="option.value">
{{ option.title }}
</option>
</select>
<svg width="21" height="20" viewBox="0 0 21 20" fill="none">
<path d="M14.6666 7.64174C14.5104 7.48653 14.2992 7.39941 14.0791 7.39941C13.8589 7.39941 13.6477 7.48653 13.4916 7.64174L10.4999 10.5917L7.54992 7.64174C7.39378 7.48653 7.18257 7.39941 6.96242 7.39941C6.74226 7.39941 6.53105 7.48653 6.37492 7.64174C6.29681 7.71921 6.23481 7.81138 6.19251 7.91293C6.1502 8.01448 6.12842 8.1234 6.12842 8.23341C6.12842 8.34342 6.1502 8.45234 6.19251 8.55389C6.23481 8.65544 6.29681 8.74761 6.37492 8.82507L9.90825 12.3584C9.98572 12.4365 10.0779 12.4985 10.1794 12.5408C10.281 12.5831 10.3899 12.6049 10.4999 12.6049C10.6099 12.6049 10.7188 12.5831 10.8204 12.5408C10.9219 12.4985 11.0141 12.4365 11.0916 12.3584L14.6666 8.82507C14.7447 8.74761 14.8067 8.65544 14.849 8.55389C14.8913 8.45234 14.9131 8.34342 14.9131 8.23341C14.9131 8.1234 14.8913 8.01448 14.849 7.91293C14.8067 7.81138 14.7447 7.71921 14.6666 7.64174Z" fill="#D4D4D4" />
</svg>
</div>
</template>

<style lang="ts">
styled({
Expand All @@ -48,13 +47,13 @@ styled({
backgroundColor: '$color.gray.8',
borderRadius: '$radii.xl',
appearance: 'none',
width: '100px'
width: '100px',
},
svg: {
position: 'absolute',
right: '$space.1',
top: '$space.2'
}
top: '$space.2',
},
})
</style>
6 changes: 4 additions & 2 deletions integrations/repl/src/components/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<g id="Vector">
<path
d="M11.0329 16.5067C11.1344 16.4433 11.1947 16.3313 11.1947 16.2116V14.7914C11.1947 14.4828 10.8206 14.3148 10.5736 14.4999C9.24567 15.4944 7.59601 16.0835 5.80915 16.0835C4.02233 16.0835 2.3727 15.4944 1.04482 14.4999C0.797743 14.3149 0.423717 14.4828 0.423717 14.7914V16.2116C0.423717 16.3313 0.48395 16.4433 0.585507 16.5068C2.10077 17.4532 3.89145 18 5.80915 18C7.72689 18 9.5176 17.4532 11.0329 16.5067Z"
fill="#717175" />
fill="#717175"
/>
<path
d="M2.72338 3.09549C-0.0521216 4.90428 -0.835108 8.61952 0.974533 11.3937C2.78417 14.1679 6.50117 14.9505 9.27667 13.1417C12.0522 11.333 12.8352 7.61771 11.0255 4.84351L11.0079 4.81654C10.605 4.1988 9.88582 3.8636 9.15336 3.95211L8.4972 4.03139C8.27805 4.05787 8.12499 3.81995 8.24004 3.63164L8.56787 3.09508C8.95703 2.45813 8.94516 1.6543 8.53734 1.02912L8.00465 0.212484C7.86339 -0.0040669 7.57324 -0.0651568 7.35659 0.0760352L2.72338 3.09549Z"
fill="#717175" />
fill="#717175"
/>
</g>
</svg>
</template>
Loading

0 comments on commit f235532

Please sign in to comment.