Skip to content

Commit 65ce202

Browse files
committed
Merge branch 'dev' of https://github.com/umbraco/Umbraco.UI into dev
# Conflicts: # packages/uui/lib/index.ts
2 parents fddcdaa + 718483d commit 65ce202

File tree

150 files changed

+11120
-6607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+11120
-6607
lines changed

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.ts text eol=lf
7+
*.js text eol=lf
8+
*.cjs text eol=lf
9+
*.mjs text eol=lf
10+
*.json text eol=lf
11+
*.html text eol=lf
12+
*.md text eol=lf
13+
*.hbs text eol=lf
14+
15+
# Declare files that will always have CRLF line endings on checkout.
16+
# *.sln text eol=crlf
17+
18+
# Denote all files that are truly binary and should not be modified.
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: 🐛 Bug Report
3+
description: "File a bug report, if you've discovered a problem."
4+
labels:
5+
- 'bug'
6+
- 'needs triage'
7+
body:
8+
- type: input
9+
id: 'version'
10+
attributes:
11+
label: "Which *exact* UI Library version are you using? For example: 1.0.1 - don't just write v1."
12+
description: 'The number can usually be found in the package.json file or by writing `npm ls <package>`. Please also specify if you use the `uui` bundle or a specific package.'
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: 'summary'
17+
attributes:
18+
label: 'Bug summary'
19+
description: 'Write a short summary of the bug.'
20+
placeholder: >
21+
Try to pinpoint it as much as possible.
22+
23+
Try to state the actual problem, and not just what you think the solution might be.
24+
validations:
25+
required: true
26+
- type: textarea
27+
attributes:
28+
label: 'Specifics'
29+
description: 'Remember that you can format code and logs nicely with the `<>` button'
30+
placeholder: >
31+
Mention the URL where this bug occurs, if applicable
32+
33+
Please mention if you've checked it in other browsers as well
34+
35+
Please include full error messages and screenshots, gifs or mp4 videos if applicable
36+
- type: textarea
37+
attributes:
38+
label: 'Steps to reproduce'
39+
description: 'How can we reproduce the problem?'
40+
placeholder: >
41+
Please include screenshots, gifs or mp4 videos if applicable
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: 'Expected result / actual result'
47+
description: 'What did you expect that would happen and what is the actual result of the above steps?'
48+
placeholder: >
49+
Describe the intended/desired outcome after you did the steps mentioned.
50+
51+
Describe the behaviour of the bug

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💡 Features and ideas
4+
url: https://github.com/umbraco/Umbraco.UI/discussions/new?category=ideas
5+
about: Start a new discussion when you have ideas or feature requests, eventually discussions can turn into plans.
6+
- name: ⁉️ Support Question
7+
url: https://our.umbraco.com
8+
about: This issue tracker is NOT meant for support questions. If you have a question, please join us on the forum.
9+
- name: 🔐 Security Issue
10+
url: https://umbraco.com/about-us/trust-center/security-and-umbraco/how-to-report-a-vulnerability-in-umbraco/
11+
about: Learn more on how to report security issues.

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<!--- Go over all the following points, and put an `x` in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
2727

28-
- [ ] If my change required a change to the documentation, I have updated the documentation in this pull request.
28+
- [ ] If my change requires a change to the documentation, I have updated the documentation in this pull request.
2929
- [ ] I have read the **[CONTRIBUTING](<(https://github.com/umbraco/Umbraco.UI/blob/dev/docs/CONTRIBUTING.md)>)** document.
30+
- [ ] I confirm that to my knowledge the contribution looks original and that the [contributor is presumably allowed to share it](https://github.com/umbraco/Umbraco.UI/blob/dev/docs/CONTRIBUTING.md#ownership-and-copyright).
3031
- [ ] I have added tests to cover my changes.
31-
- [ ] All new and existing tests passed.

.github/workflows/chromatic.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# .github/workflows/chromatic.yml
2+
3+
# Workflow name
4+
name: 'Chromatic'
5+
6+
# Event for the workflow
7+
on:
8+
push:
9+
paths:
10+
- 'package.json'
11+
- 'package-lock.json'
12+
- '.github/workflows/chromatic.yml'
13+
- '.storybook/**'
14+
- 'packages/*/package.json'
15+
- 'packages/*/lib/**'
16+
- 'packages/*/assets/**'
17+
branches-ignore:
18+
- 'dependabot/*'
19+
20+
# Allows you to run this workflow manually from the Actions tab
21+
workflow_dispatch:
22+
inputs:
23+
sha:
24+
description: The SHA-1 hash referring to the commit to check.
25+
required: true
26+
ref:
27+
description: The head branch associated with the pull request.
28+
required: true
29+
30+
# List of jobs
31+
jobs:
32+
chromatic-deployment:
33+
# Operating System
34+
runs-on: ubuntu-latest
35+
# Job steps
36+
steps:
37+
- uses: actions/checkout@v1
38+
- name: Use Node.js 16.x
39+
uses: actions/setup-node@v2
40+
with:
41+
node-version: 16.x
42+
cache: 'npm'
43+
- name: Install dependencies
44+
run: npm ci
45+
- name: Publish to Chromatic
46+
uses: chromaui/action@v1
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
50+
buildScriptName: 'storybook:build'
51+
exitOnceUploaded: true

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches: [dev, main]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [dev]
9+
schedule:
10+
- cron: '39 20 * * 3'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: ['typescript']
25+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v2
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v1
34+
with:
35+
languages: ${{ matrix.language }}
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1

.storybook/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
'@storybook/addon-links',
77
'@storybook/addon-essentials',
88
'@storybook/addon-a11y',
9+
'../storyhelpers/storybook-readme/preset.js',
910
],
1011
core: { builder: 'storybook-builder-vite' },
1112
staticDirs: ['./images'],

.storybook/preview-head.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
<style>
2+
/* Make stories able to use 100% height */
3+
html {
4+
height: 100vh;
5+
}
6+
/* Make stories able to use 100% height */
7+
body,
8+
#root,
9+
#root-inner {
10+
height: 100%;
11+
}
12+
213
body {
314
/* reset defaults: */
415
margin: 24px;

0 commit comments

Comments
 (0)