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: add core-config #1426

Merged
merged 7 commits into from
Nov 18, 2024
Merged

feat: add core-config #1426

merged 7 commits into from
Nov 18, 2024

Conversation

reme3d2y
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Oct 24, 2024

🦋 Changeset detected

Latest commit: 5818ccc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 56 packages
Name Type
@alfalab/core-components-amount-input Patch
@alfalab/core-components-button Patch
@alfalab/core-components-calendar-input Patch
@alfalab/core-components-calendar Patch
@alfalab/core-components-checkbox-group Patch
@alfalab/core-components-code-input Patch
@alfalab/core-components-confirmation Patch
@alfalab/core-components-custom-button Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-date-range-input Patch
@alfalab/core-components-date-time-input Patch
@alfalab/core-components-attach Patch
@alfalab/core-components-confirmation-v1 Patch
@alfalab/core-components-icon-button Patch
@alfalab/core-components-input Patch
@alfalab/core-components-navigation-bar-private Patch
@alfalab/core-components-navigation-bar Patch
@alfalab/core-components-pass-code-v1 Patch
@alfalab/core-components-pass-code Patch
@alfalab/core-components-pattern-lock-v1 Patch
@alfalab/core-components-pattern-lock Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-plate Patch
@alfalab/core-components-product-cover Patch
@alfalab/core-components-pure-cell Patch
@alfalab/core-components-select Patch
@alfalab/core-components-table Patch
@alfalab/core-components-tooltip Patch
@alfalab/core-components-calendar-range Patch
@alfalab/core-components-calendar-with-skeleton Patch
@alfalab/core-components-universal-date-input Patch
@alfalab/core-components-file-upload-item Patch
@alfalab/core-components-gallery Patch
@alfalab/core-components-number-input Patch
@alfalab/core-components-password-input Patch
@alfalab/core-components-tabs Patch
@alfalab/core-components-toast-plate Patch
@alfalab/core-components-date-input Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-masked-input Patch
@alfalab/core-components-slider-input Patch
@alfalab/core-components-time-input Patch
@alfalab/core-components-with-suffix Patch
@alfalab/core-components-bottom-sheet Patch
@alfalab/core-components-modal Patch
@alfalab/core-components-popup-sheet Patch
@alfalab/core-components-side-panel Patch
@alfalab/core-components-alert Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-notification Patch
@alfalab/core-components-toast Patch
@alfalab/core-components-bank-card Patch
@alfalab/core-components-phone-input Patch
@alfalab/core-components-notification-manager Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

};

export const CoreConfigContext = createContext<CoreConfigContext>({
breakpoint: 1024,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно перенести getComponentBreakpoint из shared и добавить сюда.
Но я бы выпилил это и оставил только решение с провайдером.

При использовании standalone компонентов без контекста — будут дефолтные значения, которые можно будет переопределить через пропсы компонента

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@reme3d2y reme3d2y marked this pull request as ready for review November 1, 2024 10:32
@coveralls
Copy link

coveralls commented Nov 1, 2024

Pull Request Test Coverage Report for Build 11893072774

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 105 of 106 (99.06%) changed or added relevant lines in 25 files are covered.
  • 19 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.09%) to 82.489%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/mq/src/useIsDesktop.ts 8 9 88.89%
Files with Coverage Reduction New Missed Lines %
packages/calendar/src/components/calendar-mobile/Component.tsx 1 34.69%
packages/base-modal/src/Component.tsx 1 85.93%
packages/select-with-tags/src/components/base-select-with-tags/Component.tsx 6 68.71%
packages/slider-input/src/Component.tsx 11 78.95%
Totals Coverage Status
Change from base Build 11816249410: -0.09%
Covered Lines: 10564
Relevant Lines: 11706

💛 - Coveralls

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@@ -74,20 +74,15 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(

nativeScrollbar = Boolean(nativeScrollbarProp ?? nativeScrollbar);

const textareaRef = useRef<HTMLTextAreaElement>(null);
const [textareaNode, setTextareaNode] = useState<HTMLTextAreaElement | null>(null);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нельзя в стейт положить реф, некорректно с точки зрения react. подробнее и варианты решений тут

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reme3d2y поправь пож-та)

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@reme3d2y reme3d2y merged commit 4bcff51 into master Nov 18, 2024
6 of 7 checks passed
@reme3d2y reme3d2y deleted the feat/core-config branch November 18, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants