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

feat!: use native copy method #1852

Open
wants to merge 23 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d625ec9
feat(RadioButton): redesign to increase contrast in component (#1742)
benax-se Nov 1, 2024
87139eb
feat(styles)!: change monospace fonts order (#1932)
ogonkov Nov 4, 2024
f1ecb39
chore!: remove typesVersions, adjust exports (#1957)
ValeraS Nov 26, 2024
c4cb484
feat(Popup)!: migrate to floating-ui (#1952)
oynikishin Nov 26, 2024
8db0624
feat!: update all deps (#1963)
amje Nov 28, 2024
30e8379
feat!: move scrollbar styles to separate mixin (#1971)
amje Dec 2, 2024
be1c107
feat(Button)!: rename icon-size CSS API (#1972)
amje Dec 2, 2024
b77fca5
feat!: update ControlLabel text offset (#1973)
amje Dec 2, 2024
4823a43
feat: implement new Popover draft (#1969)
amje Dec 4, 2024
dae9c70
feat(RadioButton)!: rename component to SegmentedRadioGroup (#1975)
amje Dec 5, 2024
91e8cd3
feat: add Virtualizer component (#1968)
ValeraS Dec 11, 2024
dbd7c9e
feat(Link)!: allow HTML attributes as "top-level" props (#2016)
amje Dec 25, 2024
2cd6074
feat!: change disabled state color for Checkbox and Radio (#1704)
lxndr Dec 25, 2024
7ffefc1
feat(Slider)!: support form (#1670)
ValeraS Dec 25, 2024
10b13f6
feat(RadioGroup)!: do not have value by default (#2017)
amje Dec 25, 2024
5fe782b
feat: add native copy method
ogonkov Sep 12, 2024
e900b24
docs: use uikit component in storybook
ogonkov Sep 12, 2024
01daf89
chore: add text for copy
ogonkov Sep 12, 2024
45dce74
fix: check current text in promise
ogonkov Sep 12, 2024
6f1539a
refactor: extract copy helper
ogonkov Oct 11, 2024
55b6ec8
feat: check that method exists
ogonkov Dec 25, 2024
4755272
feat: replace `react-copy-to-clipboard` with native copy
ogonkov Dec 25, 2024
38a0177
feat: remove `options`
ogonkov Dec 25, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
steps:
- uses: gravity-ui/preview-build-action@v2
with:
node-version: 18
node-version: 20
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
name: Visual Tests
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.1-jammy
image: mcr.microsoft.com/playwright:v1.49.0-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install Packages
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 18
node-version: 20
default-branch: ${{ github.ref_name != 'main' && github.ref_name || null }}
npm-dist-tag: ${{ github.ref_name != 'main' && 'untagged' || 'latest' }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
12 changes: 11 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ const config: StorybookConfig = {
defaultName: 'Docs',
},
addons: [
'@storybook/preset-scss',
{
name: '@storybook/addon-styling-webpack',
options: {
rules: [
{
test: /\.scss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
],
},
},
{name: '@storybook/addon-essentials', options: {backgrounds: false}},
'./theme-addon/register.tsx',
'@storybook/addon-a11y',
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
/src/components/Portal @amje
/src/components/Progress @Lunory
/src/components/Radio @zamkovskaya
/src/components/RadioButton @zamkovskaya
/src/components/RadioGroup @zamkovskaya
/src/components/SegmentedRadioGroup @zamkovskaya
/src/components/User @DakEnviy
/src/components/UserLabel @DakEnviy
/src/components/useList @IsaevAlexandr
Expand Down
9 changes: 5 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
const path = require('path');

const {task, src, dest, series, parallel} = require('gulp');
const sass = require('gulp-dart-sass');
const replace = require('gulp-replace');
const sass = require('gulp-sass')(require('sass'));
const ts = require('gulp-typescript');
const {rimrafSync} = require('rimraf');

Expand All @@ -18,7 +18,8 @@ task('clean', (done) => {
function compileTs(modules = false) {
const tsProject = ts.createProject('tsconfig.json', {
declaration: true,
module: modules ? 'esnext' : 'commonjs',
module: modules ? 'esnext' : 'nodenext',
moduleResolution: modules ? 'bundler' : 'nodenext',
...(modules ? undefined : {verbatimModuleSyntax: false}),
});

Expand Down Expand Up @@ -54,7 +55,7 @@ task('copy-i18n', () => {
task('styles-global', () => {
return src(['styles/styles.scss', 'styles/fonts.scss'])
.pipe(
sass().on('error', function (error) {
sass.sync().on('error', function (error) {
sass.logError.call(this, error);
process.exit(1);
}),
Expand All @@ -65,7 +66,7 @@ task('styles-global', () => {
task('styles-components', () => {
return src(['src/components/**/*.scss', '!src/components/**/__stories__/**/*'])
.pipe(
sass().on('error', function (error) {
sass.sync().on('error', function (error) {
sass.logError.call(this, error);
process.exit(1);
}),
Expand Down
Loading
Loading