Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polaris@13.4.0 update #377

Merged
merged 12 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_CLASS_PREFIX=Polaris
VITE_POLARIS_VERSION=12.23.0
VITE_POLARIS_VERSION=13.5.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Polaris Vue by Ownego supports **Vue 3.3+**.
Polaris Vue based on [Shopify Polaris style guide](https://polaris.shopify.com/), built especially for Vue 3.
We're trying to make it mostly close with Shopify style guide and get a better performance.

**Follow Polaris React version:** [12.23.0](https://github.com/Shopify/polaris/releases/tag/%40shopify%2Fpolaris%4012.23.0)
**Follow Polaris React version:** [13.5.0](https://github.com/Shopify/polaris/releases/tag/%40shopify%2Fpolaris%4013.5.0)

---

Expand Down
2 changes: 1 addition & 1 deletion build/gen-docs-content.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ts-node-esm
#!/usr/bin/env vite-node

import { globby } from 'globby';
import { default as path } from 'path';
Expand Down
2 changes: 1 addition & 1 deletion build/gen-docs-types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ts-node-esm
#!/usr/bin/env vite-node

import { globby } from 'globby';
import { default as path } from 'path';
Expand Down
2 changes: 1 addition & 1 deletion build/gen-meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ts-node-esm
#!/usr/bin/env vite-node

import { globby } from 'globby';
import { default as path } from 'path';
Expand Down
4 changes: 4 additions & 0 deletions docs/components/Card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ examples:
title: With custom footer actions
description: >-
Use to present actionable content that is optional or not the primary purpose of the page.
- fileName: WithHeaderIcon.vue
title: With header icon actions
description: >-
Use for less important card actions, or actions merchants may do before reviewing the contents of the card. For example, merchants may want to export items in a list.
- fileName: CriticalFooterAction.vue
title: With critical footer action
description: >-
Expand Down
23 changes: 23 additions & 0 deletions docs/components/Card/WithHeaderIcon.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template>
<Card roundedAbove="sm">
<BlockStack gap="200">
<InlineGrid columns="1fr auto">
<Text as="h2" variant="headingSm">
Variants
</Text>
<Button
accessibilityLabel="Export variants"
:icon="ExportIcon"
@click="{}"
/>
</InlineGrid>
<Text as="p" variant="bodyMd">
Export variants
</Text>
</BlockStack>
</Card>
</template>

<script setup lang="ts">
import ExportIcon from '@icons/ExportIcon.svg';
</script>
3 changes: 2 additions & 1 deletion docs/components/Collapsible/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
id="collapsible"
:expandOnPrint="true"
:open="isCollapse"
:transition="{duration: '500ms', timingFunction: 'ease-in-out'}"
>
<Box paddingBlockStart="400">
<Text as="p">
Expand All @@ -29,7 +30,7 @@
<script setup lang="ts">
import { ref } from 'vue';

const isCollapse = ref<boolean>(false);
const isCollapse = ref<boolean>(true);

const handleClick = () => {
isCollapse.value = !isCollapse.value;
Expand Down
3 changes: 3 additions & 0 deletions docs/components/Filters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ examples:
- fileName: WithChildrenContent.vue
frameHeight: 600
title: With children content
- fileName: WithChildrenAndUnsavedChanges.vue
frameHeight: 600
title: With children content and unsaved changes
- fileName: Disabled.vue
frameHeight: 600
title: Disabled
Expand Down
Loading